@carlonicora/nextjs-jsonapi 3.20.0 → 3.21.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-CTRQ6JWE.mjs → BlockNoteEditor-CSLA3M32.mjs} +2 -2
- package/dist/{BlockNoteEditor-2WFPGK64.js → BlockNoteEditor-NRI2TZXY.js} +9 -9
- package/dist/{BlockNoteEditor-2WFPGK64.js.map → BlockNoteEditor-NRI2TZXY.js.map} +1 -1
- package/dist/billing/index.js +335 -335
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-CJHBL5AN.mjs → chunk-HSVAW3DQ.mjs} +45 -19
- package/dist/chunk-HSVAW3DQ.mjs.map +1 -0
- package/dist/{chunk-IQMJAYCJ.js → chunk-U32IWQZM.js} +144 -118
- package/dist/chunk-U32IWQZM.js.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +7 -1
- package/dist/components/index.d.ts +7 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/dist/features/help/index.js +31 -31
- package/dist/features/help/index.mjs +1 -1
- package/dist/features/tokenusage/index.js +75 -75
- package/dist/features/tokenusage/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/tables/ContentListTable.tsx +86 -26
- package/src/components/tables/__tests__/ContentListTable.spec.tsx +133 -10
- package/src/shadcnui/ui/badge.tsx +2 -0
- package/dist/chunk-CJHBL5AN.mjs.map +0 -1
- package/dist/chunk-IQMJAYCJ.js.map +0 -1
- /package/dist/{BlockNoteEditor-CTRQ6JWE.mjs.map → BlockNoteEditor-CSLA3M32.mjs.map} +0 -0
|
@@ -531,6 +531,8 @@ var badgeVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
531
531
|
softGray: "bg-gray-500/10 text-gray-700 dark:bg-gray-500/15 dark:text-gray-400",
|
|
532
532
|
softOrange: "bg-orange-500/10 text-orange-700 dark:bg-orange-500/15 dark:text-orange-400",
|
|
533
533
|
softAmber: "bg-amber-500/10 text-amber-700 dark:bg-amber-500/15 dark:text-amber-400",
|
|
534
|
+
softEmerald: "bg-emerald-500/10 text-emerald-700 dark:bg-emerald-500/15 dark:text-emerald-400",
|
|
535
|
+
softPurple: "bg-purple-500/10 text-purple-700 dark:bg-purple-500/15 dark:text-purple-400",
|
|
534
536
|
blue: "bg-sky-500 text-primary-foreground [a]:hover:bg-sky-500/80",
|
|
535
537
|
green: "bg-emerald-500 text-primary-foreground [a]:hover:bg-emerald-500/80",
|
|
536
538
|
red: "bg-red-500 text-primary-foreground [a]:hover:bg-red-500/80",
|
|
@@ -10393,7 +10395,7 @@ FileInput.displayName = "FileInput";
|
|
|
10393
10395
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
10394
10396
|
|
|
10395
10397
|
|
|
10396
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
10398
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-NRI2TZXY.js"))), {
|
|
10397
10399
|
ssr: false
|
|
10398
10400
|
});
|
|
10399
10401
|
var BlockNoteEditorContainer = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -17661,6 +17663,18 @@ function getGroupKeys(item, field) {
|
|
|
17661
17663
|
return [String(_nullishCoalesce(value, () => ( "")))];
|
|
17662
17664
|
}
|
|
17663
17665
|
_chunk7QVYU63Ejs.__name.call(void 0, getGroupKeys, "getGroupKeys");
|
|
17666
|
+
var isClassComponent = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (component) => typeof component === "function" && !!_optionalChain([component, 'access', _537 => _537.prototype, 'optionalAccess', _538 => _538.isReactComponent]), "isClassComponent");
|
|
17667
|
+
function StableCell({ render, context }) {
|
|
17668
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: render(context) });
|
|
17669
|
+
}
|
|
17670
|
+
_chunk7QVYU63Ejs.__name.call(void 0, StableCell, "StableCell");
|
|
17671
|
+
function renderCell(cellDef, context) {
|
|
17672
|
+
if (typeof cellDef === "function" && !isClassComponent(cellDef)) {
|
|
17673
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StableCell, { render: cellDef, context });
|
|
17674
|
+
}
|
|
17675
|
+
return _reacttable.flexRender.call(void 0, cellDef, context);
|
|
17676
|
+
}
|
|
17677
|
+
_chunk7QVYU63Ejs.__name.call(void 0, renderCell, "renderCell");
|
|
17664
17678
|
var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function ContentListTable2(props) {
|
|
17665
17679
|
const { data, fields, checkedIds, toggleId, allowSearch, filters: _filters, fullWidth, onRowClick } = props;
|
|
17666
17680
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
@@ -17672,7 +17686,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17672
17686
|
if (data.isLoaded) setPendingDirection(null);
|
|
17673
17687
|
}, [data.isLoaded]);
|
|
17674
17688
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
17675
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17689
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _539 => _539.data]), () => ( EMPTY_ARRAY)),
|
|
17676
17690
|
fields,
|
|
17677
17691
|
checkedIds,
|
|
17678
17692
|
toggleId,
|
|
@@ -17693,6 +17707,14 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17693
17707
|
data: tableData,
|
|
17694
17708
|
columns: tableColumns,
|
|
17695
17709
|
getCoreRowModel: _reacttable.getCoreRowModel.call(void 0, ),
|
|
17710
|
+
...props.renderExpandedRow && {
|
|
17711
|
+
getExpandedRowModel: _reacttable.getExpandedRowModel.call(void 0, ),
|
|
17712
|
+
// Key rows by record id so an expansion stays with its record when a search or filter reorders the rows.
|
|
17713
|
+
getRowId: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (row, index) => _nullishCoalesce(_optionalChain([row, 'access', _540 => _540.jsonApiData, 'optionalAccess', _541 => _541.id]), () => ( String(index))), "getRowId"),
|
|
17714
|
+
getRowCanExpand: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => true, "getRowCanExpand"),
|
|
17715
|
+
onExpandedChange: setExpanded,
|
|
17716
|
+
state: { expanded }
|
|
17717
|
+
},
|
|
17696
17718
|
...props.expandable && {
|
|
17697
17719
|
getExpandedRowModel: _reacttable.getExpandedRowModel.call(void 0, ),
|
|
17698
17720
|
getSubRows: props.getSubRows,
|
|
@@ -17705,7 +17727,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17705
17727
|
});
|
|
17706
17728
|
const rowModel = tableData ? table.getRowModel() : null;
|
|
17707
17729
|
const groupedRows = _react.useMemo.call(void 0, () => {
|
|
17708
|
-
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess',
|
|
17730
|
+
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _542 => _542.rows, 'optionalAccess', _543 => _543.length])) return null;
|
|
17709
17731
|
const groupMap = /* @__PURE__ */ new Map();
|
|
17710
17732
|
for (const row of rowModel.rows) {
|
|
17711
17733
|
const keys = getGroupKeys(row.original, props.groupBy);
|
|
@@ -17774,35 +17796,39 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17774
17796
|
) }),
|
|
17775
17797
|
!props.hideHeader && table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
17776
17798
|
const meta = header.column.columnDef.meta;
|
|
17777
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess',
|
|
17799
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _544 => _544.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
|
|
17778
17800
|
}) }, headerGroup.id))
|
|
17779
17801
|
] }),
|
|
17780
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access',
|
|
17781
|
-
/* @__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',
|
|
17782
|
-
group.rows.map((row) => /* @__PURE__ */ _jsxruntime.
|
|
17802
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _545 => _545.rows, 'optionalAccess', _546 => _546.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
|
|
17803
|
+
/* @__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', _547 => _547.groupLabel, 'optionalCall', _548 => _548(group.groupKey)]), () => ( group.groupKey)) }) }) }),
|
|
17804
|
+
group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
|
|
17805
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17806
|
+
TableRow,
|
|
17807
|
+
{
|
|
17808
|
+
onClick: () => _optionalChain([onRowClick, 'optionalCall', _549 => _549(row.original.jsonApiData)]),
|
|
17809
|
+
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
17810
|
+
children: row.getVisibleCells().map((cell) => {
|
|
17811
|
+
const meta = cell.column.columnDef.meta;
|
|
17812
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _550 => _550.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
17813
|
+
})
|
|
17814
|
+
}
|
|
17815
|
+
),
|
|
17816
|
+
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) }) })
|
|
17817
|
+
] }, row.id))
|
|
17818
|
+
] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
|
|
17819
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17783
17820
|
TableRow,
|
|
17784
17821
|
{
|
|
17785
|
-
onClick: () => _optionalChain([onRowClick, 'optionalCall',
|
|
17822
|
+
onClick: () => _optionalChain([onRowClick, 'optionalCall', _551 => _551(row.original.jsonApiData)]),
|
|
17786
17823
|
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
17787
17824
|
children: row.getVisibleCells().map((cell) => {
|
|
17788
17825
|
const meta = cell.column.columnDef.meta;
|
|
17789
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
17826
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _552 => _552.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
17790
17827
|
})
|
|
17791
|
-
}
|
|
17792
|
-
|
|
17793
|
-
))
|
|
17794
|
-
] },
|
|
17795
|
-
TableRow,
|
|
17796
|
-
{
|
|
17797
|
-
onClick: () => _optionalChain([onRowClick, 'optionalCall', _547 => _547(row.original.jsonApiData)]),
|
|
17798
|
-
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
17799
|
-
children: row.getVisibleCells().map((cell) => {
|
|
17800
|
-
const meta = cell.column.columnDef.meta;
|
|
17801
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _548 => _548.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
17802
|
-
})
|
|
17803
|
-
},
|
|
17804
|
-
row.id
|
|
17805
|
-
)) : /* @__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."))) }) }) }),
|
|
17828
|
+
}
|
|
17829
|
+
),
|
|
17830
|
+
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) }) })
|
|
17831
|
+
] }, 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."))) }) }) }),
|
|
17806
17832
|
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: [
|
|
17807
17833
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17808
17834
|
Button,
|
|
@@ -17812,7 +17838,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17812
17838
|
onClick: (e) => {
|
|
17813
17839
|
e.preventDefault();
|
|
17814
17840
|
setPendingDirection("prev");
|
|
17815
|
-
_optionalChain([data, 'access',
|
|
17841
|
+
_optionalChain([data, 'access', _553 => _553.previous, 'optionalCall', _554 => _554(true)]);
|
|
17816
17842
|
},
|
|
17817
17843
|
disabled: !data.previous || pendingDirection !== null,
|
|
17818
17844
|
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" })
|
|
@@ -17827,7 +17853,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17827
17853
|
onClick: (e) => {
|
|
17828
17854
|
e.preventDefault();
|
|
17829
17855
|
setPendingDirection("next");
|
|
17830
|
-
_optionalChain([data, 'access',
|
|
17856
|
+
_optionalChain([data, 'access', _555 => _555.next, 'optionalCall', _556 => _556(true)]);
|
|
17831
17857
|
},
|
|
17832
17858
|
disabled: !data.next || pendingDirection !== null,
|
|
17833
17859
|
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" })
|
|
@@ -17848,7 +17874,7 @@ function ContentListGrid(props) {
|
|
|
17848
17874
|
if (!data.next || !sentinelRef.current) return;
|
|
17849
17875
|
const observer = new IntersectionObserver(
|
|
17850
17876
|
(entries) => {
|
|
17851
|
-
if (_optionalChain([entries, 'access',
|
|
17877
|
+
if (_optionalChain([entries, 'access', _557 => _557[0], 'optionalAccess', _558 => _558.isIntersecting])) _optionalChain([data, 'access', _559 => _559.next, 'optionalCall', _560 => _560()]);
|
|
17852
17878
|
},
|
|
17853
17879
|
{ threshold: 0.1, rootMargin: "200px" }
|
|
17854
17880
|
);
|
|
@@ -18635,7 +18661,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18635
18661
|
newDigits[index] = digit;
|
|
18636
18662
|
setDigits(newDigits);
|
|
18637
18663
|
if (digit && index < 5) {
|
|
18638
|
-
_optionalChain([inputRefs, 'access',
|
|
18664
|
+
_optionalChain([inputRefs, 'access', _561 => _561.current, 'access', _562 => _562[index + 1], 'optionalAccess', _563 => _563.focus, 'call', _564 => _564()]);
|
|
18639
18665
|
}
|
|
18640
18666
|
const code = newDigits.join("");
|
|
18641
18667
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -18644,7 +18670,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18644
18670
|
}, "handleChange");
|
|
18645
18671
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
18646
18672
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
18647
|
-
_optionalChain([inputRefs, 'access',
|
|
18673
|
+
_optionalChain([inputRefs, 'access', _565 => _565.current, 'access', _566 => _566[index - 1], 'optionalAccess', _567 => _567.focus, 'call', _568 => _568()]);
|
|
18648
18674
|
}
|
|
18649
18675
|
}, "handleKeyDown");
|
|
18650
18676
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -18653,7 +18679,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18653
18679
|
if (pastedData.length === 6) {
|
|
18654
18680
|
const newDigits = pastedData.split("");
|
|
18655
18681
|
setDigits(newDigits);
|
|
18656
|
-
_optionalChain([inputRefs, 'access',
|
|
18682
|
+
_optionalChain([inputRefs, 'access', _569 => _569.current, 'access', _570 => _570[5], 'optionalAccess', _571 => _571.focus, 'call', _572 => _572()]);
|
|
18657
18683
|
onComplete(pastedData);
|
|
18658
18684
|
}
|
|
18659
18685
|
}, "handlePaste");
|
|
@@ -18864,8 +18890,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
18864
18890
|
try {
|
|
18865
18891
|
const registrationData = await _chunkMWZCCOTSjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
18866
18892
|
id: _uuid.v4.call(void 0, ),
|
|
18867
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
18868
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
18893
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _573 => _573.email]), () => ( "")),
|
|
18894
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _574 => _574.name])
|
|
18869
18895
|
});
|
|
18870
18896
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
18871
18897
|
await _chunkMWZCCOTSjs.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -19016,7 +19042,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
19016
19042
|
const setup = await _chunkMWZCCOTSjs.TwoFactorService.setupTotp({
|
|
19017
19043
|
id: _uuid.v4.call(void 0, ),
|
|
19018
19044
|
name: name.trim(),
|
|
19019
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
19045
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _575 => _575.email]), () => ( ""))
|
|
19020
19046
|
});
|
|
19021
19047
|
setQrCodeUri(setup.qrCodeUri);
|
|
19022
19048
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -19150,7 +19176,7 @@ function TwoFactorSettings() {
|
|
|
19150
19176
|
if (isLoading) {
|
|
19151
19177
|
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") }) }) });
|
|
19152
19178
|
}
|
|
19153
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
19179
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _576 => _576.isEnabled]), () => ( false));
|
|
19154
19180
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
19155
19181
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
19156
19182
|
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" }),
|
|
@@ -19188,7 +19214,7 @@ function TwoFactorSettings() {
|
|
|
19188
19214
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
19189
19215
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
19190
19216
|
] }),
|
|
19191
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
19217
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _577 => _577.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
|
|
19192
19218
|
] }) }),
|
|
19193
19219
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
19194
19220
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -19366,9 +19392,9 @@ function AcceptInvitation() {
|
|
|
19366
19392
|
});
|
|
19367
19393
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
19368
19394
|
try {
|
|
19369
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
19395
|
+
if (!_optionalChain([params, 'optionalAccess', _578 => _578.code])) return;
|
|
19370
19396
|
const payload = {
|
|
19371
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
19397
|
+
code: _optionalChain([params, 'optionalAccess', _579 => _579.code]),
|
|
19372
19398
|
password: values.password
|
|
19373
19399
|
};
|
|
19374
19400
|
await _chunkMWZCCOTSjs.AuthService.acceptInvitation(payload);
|
|
@@ -19739,14 +19765,14 @@ function RefreshUser() {
|
|
|
19739
19765
|
setUser(fullUser);
|
|
19740
19766
|
const token = {
|
|
19741
19767
|
userId: fullUser.id,
|
|
19742
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
19768
|
+
companyId: _optionalChain([fullUser, 'access', _580 => _580.company, 'optionalAccess', _581 => _581.id]),
|
|
19743
19769
|
roles: fullUser.roles.map((role) => role.id),
|
|
19744
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
19770
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _582 => _582.company, 'optionalAccess', _583 => _583.features, 'optionalAccess', _584 => _584.map, 'call', _585 => _585((feature) => feature.id)]), () => ( [])),
|
|
19745
19771
|
modules: fullUser.modules.map((module) => {
|
|
19746
19772
|
return { id: module.id, permissions: module.permissions };
|
|
19747
19773
|
})
|
|
19748
19774
|
};
|
|
19749
|
-
await _optionalChain([_chunkMWZCCOTSjs.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
19775
|
+
await _optionalChain([_chunkMWZCCOTSjs.getTokenHandler.call(void 0, ), 'optionalAccess', _586 => _586.updateToken, 'call', _587 => _587(token)]);
|
|
19750
19776
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
19751
19777
|
}
|
|
19752
19778
|
}, "loadFullUser");
|
|
@@ -19810,9 +19836,9 @@ function ResetPassword() {
|
|
|
19810
19836
|
});
|
|
19811
19837
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
19812
19838
|
try {
|
|
19813
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
19839
|
+
if (!_optionalChain([params, 'optionalAccess', _588 => _588.code])) return;
|
|
19814
19840
|
const payload = {
|
|
19815
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
19841
|
+
code: _optionalChain([params, 'optionalAccess', _589 => _589.code]),
|
|
19816
19842
|
password: values.password
|
|
19817
19843
|
};
|
|
19818
19844
|
await _chunkMWZCCOTSjs.AuthService.resetPassword(payload);
|
|
@@ -20337,7 +20363,7 @@ function AiConnectionEditor({
|
|
|
20337
20363
|
const registryRows = _react.useMemo.call(void 0, () => _nullishCoalesce(providerRegistry[connectionType], () => ( [])), [providerRegistry, connectionType]);
|
|
20338
20364
|
const providers = _react.useMemo.call(void 0, () => registryRows.map((row) => row.provider), [registryRows]);
|
|
20339
20365
|
const fieldsFor = _react.useCallback.call(void 0,
|
|
20340
|
-
(provider) => _nullishCoalesce(_optionalChain([registryRows, 'access',
|
|
20366
|
+
(provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _590 => _590.find, 'call', _591 => _591((row) => row.provider === provider), 'optionalAccess', _592 => _592.fields]), () => ( [])),
|
|
20341
20367
|
[registryRows]
|
|
20342
20368
|
);
|
|
20343
20369
|
const defaultsFor = _react.useCallback.call(void 0,
|
|
@@ -20346,7 +20372,7 @@ function AiConnectionEditor({
|
|
|
20346
20372
|
const seeded = {};
|
|
20347
20373
|
fieldsFor(provider).forEach((descriptor) => {
|
|
20348
20374
|
if (descriptor.kind === "boolean") {
|
|
20349
|
-
const current2 = _optionalChain([stored, 'optionalAccess',
|
|
20375
|
+
const current2 = _optionalChain([stored, 'optionalAccess', _593 => _593[descriptor.field]]);
|
|
20350
20376
|
seeded[descriptor.field] = current2 !== void 0 && current2 !== null ? current2 === true : descriptor.default === true;
|
|
20351
20377
|
return;
|
|
20352
20378
|
}
|
|
@@ -20354,7 +20380,7 @@ function AiConnectionEditor({
|
|
|
20354
20380
|
seeded[descriptor.field] = "";
|
|
20355
20381
|
return;
|
|
20356
20382
|
}
|
|
20357
|
-
const current = _optionalChain([stored, 'optionalAccess',
|
|
20383
|
+
const current = _optionalChain([stored, 'optionalAccess', _594 => _594[descriptor.field]]);
|
|
20358
20384
|
if (current !== void 0 && current !== null) seeded[descriptor.field] = String(current);
|
|
20359
20385
|
else seeded[descriptor.field] = descriptor.default !== void 0 ? String(descriptor.default) : "";
|
|
20360
20386
|
});
|
|
@@ -20380,7 +20406,7 @@ function AiConnectionEditor({
|
|
|
20380
20406
|
values: _zod3.z.record(_zod3.z.string(), _zod3.z.any())
|
|
20381
20407
|
}).superRefine((data, ctx) => {
|
|
20382
20408
|
fieldsFor(data.provider).filter((descriptor) => descriptor.required).forEach((descriptor) => {
|
|
20383
|
-
const value = _optionalChain([data, 'access',
|
|
20409
|
+
const value = _optionalChain([data, 'access', _595 => _595.values, 'optionalAccess', _596 => _596[descriptor.field]]);
|
|
20384
20410
|
const filled = descriptor.kind === "secret" ? !!value || hasStoredSecret(descriptor.field) : descriptor.kind === "boolean" ? value !== void 0 : value !== void 0 && value !== null && String(value).trim() !== "";
|
|
20385
20411
|
if (filled) return;
|
|
20386
20412
|
ctx.addIssue({
|
|
@@ -20394,11 +20420,11 @@ function AiConnectionEditor({
|
|
|
20394
20420
|
);
|
|
20395
20421
|
const getDefaultValues = _react.useCallback.call(void 0,
|
|
20396
20422
|
() => ({
|
|
20397
|
-
id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20398
|
-
name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20399
|
-
provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20400
|
-
enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20401
|
-
values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20423
|
+
id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _597 => _597.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
20424
|
+
name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _598 => _598.name]), () => ( "")),
|
|
20425
|
+
provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _599 => _599.provider]), () => ( providers[0])), () => ( "")),
|
|
20426
|
+
enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _600 => _600.enabled]), () => ( true)),
|
|
20427
|
+
values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _601 => _601.provider]), () => ( providers[0])), () => ( "")))
|
|
20402
20428
|
}),
|
|
20403
20429
|
[connection, providers, defaultsFor]
|
|
20404
20430
|
);
|
|
@@ -20409,7 +20435,7 @@ function AiConnectionEditor({
|
|
|
20409
20435
|
_react.useEffect.call(void 0, () => {
|
|
20410
20436
|
if (registryRows.length === 0) return;
|
|
20411
20437
|
const currentProvider = form.getValues("provider");
|
|
20412
|
-
const provider = currentProvider || _optionalChain([connection, 'optionalAccess',
|
|
20438
|
+
const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _602 => _602.provider]) || providers[0] || "";
|
|
20413
20439
|
if (!provider) return;
|
|
20414
20440
|
if (provider !== currentProvider) form.setValue("provider", provider);
|
|
20415
20441
|
const currentValues = form.getValues("values");
|
|
@@ -20480,7 +20506,7 @@ function AiConnectionEditor({
|
|
|
20480
20506
|
{
|
|
20481
20507
|
form,
|
|
20482
20508
|
entityType: t("ai_connections.admin.entity"),
|
|
20483
|
-
entityName: _optionalChain([connection, 'optionalAccess',
|
|
20509
|
+
entityName: _optionalChain([connection, 'optionalAccess', _603 => _603.name]),
|
|
20484
20510
|
isEdit,
|
|
20485
20511
|
module: _chunkMWZCCOTSjs.Modules.AiConnection,
|
|
20486
20512
|
size: "md",
|
|
@@ -20488,7 +20514,7 @@ function AiConnectionEditor({
|
|
|
20488
20514
|
onSubmit: async (values) => {
|
|
20489
20515
|
const attributes = {};
|
|
20490
20516
|
fieldsFor(values.provider).forEach((descriptor) => {
|
|
20491
|
-
const coerced = coerce(descriptor, _optionalChain([values, 'access',
|
|
20517
|
+
const coerced = coerce(descriptor, _optionalChain([values, 'access', _604 => _604.values, 'optionalAccess', _605 => _605[descriptor.field]]));
|
|
20492
20518
|
if (coerced !== void 0) attributes[descriptor.field] = coerced;
|
|
20493
20519
|
});
|
|
20494
20520
|
const payload = {
|
|
@@ -20709,7 +20735,7 @@ function AiConnectionTypeCard({ connectionType }) {
|
|
|
20709
20735
|
),
|
|
20710
20736
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-muted/40 flex flex-wrap items-center gap-2 px-3 py-2", children: [
|
|
20711
20737
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGray", children: t("ai_connections.admin.env_fallback") }),
|
|
20712
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess',
|
|
20738
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess', _606 => _606.provider]), _optionalChain([envDefault, 'optionalAccess', _607 => _607.model]), _optionalChain([envDefault, 'optionalAccess', _608 => _608.url])].filter(Boolean).join(" \xB7 ") })
|
|
20713
20739
|
] })
|
|
20714
20740
|
] })
|
|
20715
20741
|
] })
|
|
@@ -20907,7 +20933,7 @@ function extractHeadings(blocks) {
|
|
|
20907
20933
|
function processBlocks(blockArray) {
|
|
20908
20934
|
for (const block of blockArray) {
|
|
20909
20935
|
if (block.type === "heading") {
|
|
20910
|
-
const level = _optionalChain([block, 'access',
|
|
20936
|
+
const level = _optionalChain([block, 'access', _609 => _609.props, 'optionalAccess', _610 => _610.level]) || 1;
|
|
20911
20937
|
const text = extractTextFromContent(block.content);
|
|
20912
20938
|
if (text.trim()) {
|
|
20913
20939
|
headings.push({
|
|
@@ -21249,7 +21275,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
|
|
|
21249
21275
|
})
|
|
21250
21276
|
};
|
|
21251
21277
|
const columns = _react.useMemo.call(void 0, () => {
|
|
21252
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
21278
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _611 => _611[field], 'optionalCall', _612 => _612()])).filter((col) => col !== void 0);
|
|
21253
21279
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
21254
21280
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
21255
21281
|
}, "useHowToTableStructure");
|
|
@@ -21375,7 +21401,7 @@ function HowToSelector({
|
|
|
21375
21401
|
}, "setHowTo");
|
|
21376
21402
|
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: [
|
|
21377
21403
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
21378
|
-
/* @__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',
|
|
21404
|
+
/* @__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', _613 => _613.value, 'optionalAccess', _614 => _614.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 }) }))) }) }) }),
|
|
21379
21405
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21380
21406
|
_lucidereact.CircleX,
|
|
21381
21407
|
{
|
|
@@ -21668,10 +21694,10 @@ function CitationsTab({ citations, sources }) {
|
|
|
21668
21694
|
] }) }),
|
|
21669
21695
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
|
|
21670
21696
|
const isOpen = expanded.has(chunk.id);
|
|
21671
|
-
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess',
|
|
21697
|
+
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _615 => _615.get, 'call', _616 => _616(chunk.nodeId)]) : void 0;
|
|
21672
21698
|
const typeLabel = chunk.nodeType ? entityLabel(chunk.nodeType) : t("features.assistant.message.sources.source");
|
|
21673
21699
|
const fallbackName = chunk.nodeId ? `${typeLabel} ${chunk.nodeId.slice(0, 8)}` : typeLabel;
|
|
21674
|
-
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
21700
|
+
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _617 => _617.name]), () => ( fallbackName));
|
|
21675
21701
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
21676
21702
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
|
|
21677
21703
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -21719,7 +21745,7 @@ function ContentsTab({ citations, sources }) {
|
|
|
21719
21745
|
for (const c of citations) {
|
|
21720
21746
|
const id = c.nodeId;
|
|
21721
21747
|
if (!id) continue;
|
|
21722
|
-
const source = _optionalChain([sources, 'optionalAccess',
|
|
21748
|
+
const source = _optionalChain([sources, 'optionalAccess', _618 => _618.get, 'call', _619 => _619(id)]);
|
|
21723
21749
|
if (!source) continue;
|
|
21724
21750
|
const existing = map.get(id);
|
|
21725
21751
|
if (existing) {
|
|
@@ -21786,7 +21812,7 @@ function UsersTab({ users, citations, sources }) {
|
|
|
21786
21812
|
const generate = usePageUrlGenerator();
|
|
21787
21813
|
const userMap = /* @__PURE__ */ new Map();
|
|
21788
21814
|
for (const u of users) {
|
|
21789
|
-
if (!_optionalChain([u, 'optionalAccess',
|
|
21815
|
+
if (!_optionalChain([u, 'optionalAccess', _620 => _620.id])) continue;
|
|
21790
21816
|
userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
|
|
21791
21817
|
}
|
|
21792
21818
|
if (citations && sources) {
|
|
@@ -21891,7 +21917,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
|
|
|
21891
21917
|
}
|
|
21892
21918
|
return ids.size;
|
|
21893
21919
|
}, [message.citations, sources]);
|
|
21894
|
-
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess',
|
|
21920
|
+
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _621 => _621.length]), () => ( 0));
|
|
21895
21921
|
const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
|
|
21896
21922
|
const visibleTabs = [];
|
|
21897
21923
|
if (suggestionsCount > 0) visibleTabs.push("suggested");
|
|
@@ -22034,7 +22060,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
|
|
|
22034
22060
|
return void 0;
|
|
22035
22061
|
}
|
|
22036
22062
|
})()));
|
|
22037
|
-
if (_optionalChain([author, 'optionalAccess',
|
|
22063
|
+
if (_optionalChain([author, 'optionalAccess', _622 => _622.id])) userMap.set(author.id, author);
|
|
22038
22064
|
}
|
|
22039
22065
|
return Array.from(userMap.values());
|
|
22040
22066
|
}, [resolved]);
|
|
@@ -22069,7 +22095,7 @@ function MessageItem({
|
|
|
22069
22095
|
}) {
|
|
22070
22096
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
22071
22097
|
const isUser = message.role === "user";
|
|
22072
|
-
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess',
|
|
22098
|
+
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _623 => _623.has, 'call', _624 => _624(message.id)]);
|
|
22073
22099
|
const markdownComponents = _react.useMemo.call(void 0,
|
|
22074
22100
|
() => ({
|
|
22075
22101
|
a: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ href, children }) => {
|
|
@@ -22086,7 +22112,7 @@ function MessageItem({
|
|
|
22086
22112
|
isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
|
|
22087
22113
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
|
|
22088
22114
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
|
|
22089
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall',
|
|
22115
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _625 => _625(message.id)]), children: t("features.assistant.retry") })
|
|
22090
22116
|
] })
|
|
22091
22117
|
] });
|
|
22092
22118
|
}
|
|
@@ -22177,7 +22203,7 @@ function AssistantThread({
|
|
|
22177
22203
|
}) {
|
|
22178
22204
|
const lastMessageRef = _react.useRef.call(void 0, null);
|
|
22179
22205
|
_react.useEffect.call(void 0, () => {
|
|
22180
|
-
_optionalChain([lastMessageRef, 'access',
|
|
22206
|
+
_optionalChain([lastMessageRef, 'access', _626 => _626.current, 'optionalAccess', _627 => _627.scrollIntoView, 'call', _628 => _628({ block: "start", behavior: "smooth" })]);
|
|
22181
22207
|
}, [messages.length, sending]);
|
|
22182
22208
|
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: [
|
|
22183
22209
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22216,7 +22242,7 @@ ${message.sources.map((source) => `- \`${source}\``).join("\n")}`;
|
|
|
22216
22242
|
return _chunkMWZCCOTSjs.rehydrate.call(void 0, _chunkMWZCCOTSjs.Modules.HandbookThreadMessage, {
|
|
22217
22243
|
jsonApi: {
|
|
22218
22244
|
...dehydrated.jsonApi,
|
|
22219
|
-
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access',
|
|
22245
|
+
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _629 => _629.jsonApi, 'optionalAccess', _630 => _630.attributes]), () => ( {})), content }
|
|
22220
22246
|
},
|
|
22221
22247
|
included: dehydrated.included
|
|
22222
22248
|
});
|
|
@@ -22225,8 +22251,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, withSourcesInContent, "withSourcesInContent
|
|
|
22225
22251
|
function useHandbookAsk(params) {
|
|
22226
22252
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
22227
22253
|
const generateUrl = usePageUrlGenerator();
|
|
22228
|
-
const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess',
|
|
22229
|
-
const handbookThreadId = _optionalChain([params, 'optionalAccess',
|
|
22254
|
+
const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _631 => _631.syncUrl]), () => ( true));
|
|
22255
|
+
const handbookThreadId = _optionalChain([params, 'optionalAccess', _632 => _632.handbookThreadId]);
|
|
22230
22256
|
const [threads, setThreads] = _react.useState.call(void 0, []);
|
|
22231
22257
|
const [thread, setThread] = _react.useState.call(void 0, void 0);
|
|
22232
22258
|
const [messages, setMessages] = _react.useState.call(void 0, []);
|
|
@@ -22288,12 +22314,12 @@ function useHandbookAsk(params) {
|
|
|
22288
22314
|
]);
|
|
22289
22315
|
setSending(true);
|
|
22290
22316
|
try {
|
|
22291
|
-
let id = _optionalChain([thread, 'optionalAccess',
|
|
22317
|
+
let id = _optionalChain([thread, 'optionalAccess', _633 => _633.id]);
|
|
22292
22318
|
if (id === void 0) {
|
|
22293
22319
|
const created = await _chunkMWZCCOTSjs.HandbookThreadService.create({
|
|
22294
22320
|
id: _uuid.v4.call(void 0, ),
|
|
22295
22321
|
question: trimmed,
|
|
22296
|
-
handbookPageId: _optionalChain([options, 'optionalAccess',
|
|
22322
|
+
handbookPageId: _optionalChain([options, 'optionalAccess', _634 => _634.handbookPageId])
|
|
22297
22323
|
});
|
|
22298
22324
|
id = created.id;
|
|
22299
22325
|
setThreads((current) => [created, ...current]);
|
|
@@ -22302,7 +22328,7 @@ function useHandbookAsk(params) {
|
|
|
22302
22328
|
id: _uuid.v4.call(void 0, ),
|
|
22303
22329
|
threadId: id,
|
|
22304
22330
|
question: trimmed,
|
|
22305
|
-
handbookPageId: _optionalChain([options, 'optionalAccess',
|
|
22331
|
+
handbookPageId: _optionalChain([options, 'optionalAccess', _635 => _635.handbookPageId])
|
|
22306
22332
|
});
|
|
22307
22333
|
}
|
|
22308
22334
|
const loaded = await _chunkMWZCCOTSjs.HandbookThreadService.findOne({ id });
|
|
@@ -22323,7 +22349,7 @@ function useHandbookAsk(params) {
|
|
|
22323
22349
|
setSending(false);
|
|
22324
22350
|
}
|
|
22325
22351
|
},
|
|
22326
|
-
[messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess',
|
|
22352
|
+
[messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess', _636 => _636.id])]
|
|
22327
22353
|
);
|
|
22328
22354
|
return { threads, thread, messages, sending, ask, selectThread, startNew };
|
|
22329
22355
|
}
|
|
@@ -22879,7 +22905,7 @@ function HandbookPageContainer({ handbookPageId }) {
|
|
|
22879
22905
|
};
|
|
22880
22906
|
}, []);
|
|
22881
22907
|
const section = _react.useMemo.call(void 0,
|
|
22882
|
-
() => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess',
|
|
22908
|
+
() => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess', _637 => _637.section])),
|
|
22883
22909
|
[sections, handbookPage]
|
|
22884
22910
|
);
|
|
22885
22911
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22993,7 +23019,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
|
|
|
22993
23019
|
AssistantSidebar,
|
|
22994
23020
|
{
|
|
22995
23021
|
threads,
|
|
22996
|
-
activeId: _optionalChain([thread, 'optionalAccess',
|
|
23022
|
+
activeId: _optionalChain([thread, 'optionalAccess', _638 => _638.id]),
|
|
22997
23023
|
onSelect: selectThread,
|
|
22998
23024
|
onNew: startNew,
|
|
22999
23025
|
newLabel: t("handbook.chat.new"),
|
|
@@ -23001,7 +23027,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
|
|
|
23001
23027
|
}
|
|
23002
23028
|
) })
|
|
23003
23029
|
),
|
|
23004
|
-
[selectThread, startNew, t, _optionalChain([thread, 'optionalAccess',
|
|
23030
|
+
[selectThread, startNew, t, _optionalChain([thread, 'optionalAccess', _639 => _639.id]), threads]
|
|
23005
23031
|
);
|
|
23006
23032
|
return (
|
|
23007
23033
|
// `RoundPageContainer` reads the page heading from the shared context, and
|
|
@@ -23013,7 +23039,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
|
|
|
23013
23039
|
RoundPageContainer,
|
|
23014
23040
|
{
|
|
23015
23041
|
module: _chunkMWZCCOTSjs.Modules.HandbookPage,
|
|
23016
|
-
id: _optionalChain([thread, 'optionalAccess',
|
|
23042
|
+
id: _optionalChain([thread, 'optionalAccess', _640 => _640.id]),
|
|
23017
23043
|
fullWidth: true,
|
|
23018
23044
|
forceHeader: true,
|
|
23019
23045
|
defaultDetailsOpen: true,
|
|
@@ -23165,7 +23191,7 @@ function AssistantContainer({ renderApprovalAction } = {}) {
|
|
|
23165
23191
|
AssistantSidebar,
|
|
23166
23192
|
{
|
|
23167
23193
|
threads: ctx.threads,
|
|
23168
|
-
activeId: _optionalChain([ctx, 'access',
|
|
23194
|
+
activeId: _optionalChain([ctx, 'access', _641 => _641.assistant, 'optionalAccess', _642 => _642.id]),
|
|
23169
23195
|
onSelect: ctx.selectThread,
|
|
23170
23196
|
onNew: ctx.startNew
|
|
23171
23197
|
}
|
|
@@ -23219,7 +23245,7 @@ function flattenBlocks(blocks) {
|
|
|
23219
23245
|
if (typeof inline === "string") return inline;
|
|
23220
23246
|
if (!inline || typeof inline !== "object") return "";
|
|
23221
23247
|
const node = inline;
|
|
23222
|
-
if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access',
|
|
23248
|
+
if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _643 => _643.props, 'optionalAccess', _644 => _644.alias]), () => ( ""));
|
|
23223
23249
|
if (typeof node.text === "string") return node.text;
|
|
23224
23250
|
if (Array.isArray(node.content)) return node.content.map(readInline).join("");
|
|
23225
23251
|
return "";
|
|
@@ -23335,7 +23361,7 @@ function AssistantPageContainer({
|
|
|
23335
23361
|
AssistantSidebar,
|
|
23336
23362
|
{
|
|
23337
23363
|
threads: ctx.threads,
|
|
23338
|
-
activeId: _optionalChain([ctx, 'access',
|
|
23364
|
+
activeId: _optionalChain([ctx, 'access', _645 => _645.assistant, 'optionalAccess', _646 => _646.id]),
|
|
23339
23365
|
onSelect: ctx.selectThread,
|
|
23340
23366
|
onNew: ctx.startNew
|
|
23341
23367
|
}
|
|
@@ -23574,12 +23600,12 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
|
|
|
23574
23600
|
const presented = _react.useMemo.call(void 0, () => parseOperatorProposal(actionProposal), [actionProposal]);
|
|
23575
23601
|
const legacy = _react.useMemo.call(void 0, () => presented ? void 0 : parseLegacyProposal(toolArgs), [presented, toolArgs]);
|
|
23576
23602
|
const isUpdate = toolName === "update_entity";
|
|
23577
|
-
const entityLabel = humaniseType(_nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess',
|
|
23578
|
-
const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess',
|
|
23603
|
+
const entityLabel = humaniseType(_nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess', _647 => _647.type]), () => ( _optionalChain([legacy, 'optionalAccess', _648 => _648.type]))), () => ( "")));
|
|
23604
|
+
const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _649 => _649.target, 'optionalAccess', _650 => _650.label]), () => ( ""));
|
|
23579
23605
|
const rows = _react.useMemo.call(void 0, () => {
|
|
23580
23606
|
const yes = t("features.assistant.approval.proposal.yes");
|
|
23581
23607
|
const no = t("features.assistant.approval.proposal.no");
|
|
23582
|
-
const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess',
|
|
23608
|
+
const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _651 => _651.attributes]), () => ( _optionalChain([legacy, 'optionalAccess', _652 => _652.attributes])));
|
|
23583
23609
|
const attributeRows = Object.entries(_nullishCoalesce(attributes, () => ( {}))).flatMap(([key, value]) => {
|
|
23584
23610
|
const text = formatAttribute(value, yes, no);
|
|
23585
23611
|
return text === void 0 ? [] : [{ key: `attribute:${key}`, label: humaniseKey(key), value: text }];
|
|
@@ -23617,7 +23643,7 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
|
|
|
23617
23643
|
try {
|
|
23618
23644
|
const message = kind === "approve" ? await _chunkMWZCCOTSjs.AssistantActionService.approve({ id: actionId }) : await _chunkMWZCCOTSjs.AssistantActionService.deny({ id: actionId });
|
|
23619
23645
|
setStatus(kind === "approve" ? "executed" : "denied");
|
|
23620
|
-
if (message) _optionalChain([onResolved, 'optionalCall',
|
|
23646
|
+
if (message) _optionalChain([onResolved, 'optionalCall', _653 => _653(message)]);
|
|
23621
23647
|
} catch (error) {
|
|
23622
23648
|
console.error(`ApprovalActionCard: failed to ${kind} assistant action ${actionId}`, error);
|
|
23623
23649
|
setFailed(true);
|
|
@@ -23743,10 +23769,10 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
|
|
|
23743
23769
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
23744
23770
|
const generateUrl = usePageUrlGenerator();
|
|
23745
23771
|
const { loadNotifications } = useNotificationContext();
|
|
23746
|
-
const archived = _optionalChain([params, 'access',
|
|
23772
|
+
const archived = _optionalChain([params, 'access', _654 => _654.context, 'optionalAccess', _655 => _655.archived]) === true;
|
|
23747
23773
|
const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
|
|
23748
23774
|
await _chunkMWZCCOTSjs.NotificationService.archive({ id: notification.id });
|
|
23749
|
-
_optionalChain([params, 'access',
|
|
23775
|
+
_optionalChain([params, 'access', _656 => _656.dataRetriever, 'optionalAccess', _657 => _657.removeElement, 'call', _658 => _658(notification)]);
|
|
23750
23776
|
await loadNotifications();
|
|
23751
23777
|
}, "archiveNotification");
|
|
23752
23778
|
const tableData = _react.useMemo.call(void 0, () => {
|
|
@@ -23785,7 +23811,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
|
|
|
23785
23811
|
const data = generateNotificationData({ notification, generateUrl });
|
|
23786
23812
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-foreground text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
23787
23813
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { className: "font-medium", children: chunks }), "strong"),
|
|
23788
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
23814
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _659 => _659.actor, 'optionalAccess', _660 => _660.name]), () => ( "")),
|
|
23789
23815
|
title: data.title,
|
|
23790
23816
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
23791
23817
|
}) });
|
|
@@ -23840,7 +23866,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
|
|
|
23840
23866
|
})
|
|
23841
23867
|
};
|
|
23842
23868
|
const columns = _react.useMemo.call(void 0, () => {
|
|
23843
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
23869
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _661 => _661[field], 'optionalCall', _662 => _662()])).filter((col) => col !== void 0);
|
|
23844
23870
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
23845
23871
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
23846
23872
|
}, "useNotificationTableStructure");
|
|
@@ -24259,7 +24285,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
24259
24285
|
invalidEmail: "Please enter a valid email address"
|
|
24260
24286
|
};
|
|
24261
24287
|
async function copyToClipboard(text) {
|
|
24262
|
-
if (_optionalChain([navigator, 'access',
|
|
24288
|
+
if (_optionalChain([navigator, 'access', _663 => _663.clipboard, 'optionalAccess', _664 => _664.writeText])) {
|
|
24263
24289
|
try {
|
|
24264
24290
|
await navigator.clipboard.writeText(text);
|
|
24265
24291
|
return true;
|
|
@@ -24301,7 +24327,7 @@ function ReferralWidget({
|
|
|
24301
24327
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
24302
24328
|
const config = _chunkSYQMVTICjs.getReferralConfig.call(void 0, );
|
|
24303
24329
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
24304
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
24330
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _665 => _665.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
24305
24331
|
if (!_chunkSYQMVTICjs.isReferralEnabled.call(void 0, )) {
|
|
24306
24332
|
return null;
|
|
24307
24333
|
}
|
|
@@ -24311,7 +24337,7 @@ function ReferralWidget({
|
|
|
24311
24337
|
if (success) {
|
|
24312
24338
|
setCopied(true);
|
|
24313
24339
|
_chunkMWZCCOTSjs.showToast.call(void 0, t.copiedMessage);
|
|
24314
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
24340
|
+
_optionalChain([onLinkCopied, 'optionalCall', _666 => _666()]);
|
|
24315
24341
|
setTimeout(() => setCopied(false), 2e3);
|
|
24316
24342
|
} else {
|
|
24317
24343
|
_chunkMWZCCOTSjs.showError.call(void 0, t.copyError);
|
|
@@ -24325,12 +24351,12 @@ function ReferralWidget({
|
|
|
24325
24351
|
try {
|
|
24326
24352
|
await sendInvite(email);
|
|
24327
24353
|
_chunkMWZCCOTSjs.showToast.call(void 0, t.inviteSent);
|
|
24328
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
24354
|
+
_optionalChain([onInviteSent, 'optionalCall', _667 => _667(email)]);
|
|
24329
24355
|
setEmail("");
|
|
24330
24356
|
} catch (err) {
|
|
24331
24357
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
24332
24358
|
_chunkMWZCCOTSjs.showError.call(void 0, error2.message);
|
|
24333
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
24359
|
+
_optionalChain([onInviteError, 'optionalCall', _668 => _668(error2)]);
|
|
24334
24360
|
}
|
|
24335
24361
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
24336
24362
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -25084,7 +25110,7 @@ function OAuthClientList({
|
|
|
25084
25110
|
OAuthClientCard,
|
|
25085
25111
|
{
|
|
25086
25112
|
client,
|
|
25087
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
25113
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _669 => _669(client)]),
|
|
25088
25114
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
25089
25115
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
25090
25116
|
},
|
|
@@ -25100,11 +25126,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
|
|
|
25100
25126
|
function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
25101
25127
|
const isEditMode = !!client;
|
|
25102
25128
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
25103
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
25104
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
25105
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
25106
|
-
allowedScopes: _optionalChain([client, 'optionalAccess',
|
|
25107
|
-
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess',
|
|
25129
|
+
name: _optionalChain([client, 'optionalAccess', _670 => _670.name]) || "",
|
|
25130
|
+
description: _optionalChain([client, 'optionalAccess', _671 => _671.description]) || "",
|
|
25131
|
+
redirectUris: _optionalChain([client, 'optionalAccess', _672 => _672.redirectUris, 'optionalAccess', _673 => _673.length]) ? client.redirectUris : [""],
|
|
25132
|
+
allowedScopes: _optionalChain([client, 'optionalAccess', _674 => _674.allowedScopes]) || [],
|
|
25133
|
+
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _675 => _675.isConfidential]), () => ( true))
|
|
25108
25134
|
});
|
|
25109
25135
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
25110
25136
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -25332,7 +25358,7 @@ function OAuthClientDetail({
|
|
|
25332
25358
|
] }),
|
|
25333
25359
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
25334
25360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
25335
|
-
/* @__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([_chunkMWZCCOTSjs.OAUTH_SCOPE_DISPLAY, 'access',
|
|
25361
|
+
/* @__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([_chunkMWZCCOTSjs.OAUTH_SCOPE_DISPLAY, 'access', _676 => _676[scope], 'optionalAccess', _677 => _677.name]) || scope }, scope)) })
|
|
25336
25362
|
] }),
|
|
25337
25363
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
25338
25364
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -25476,7 +25502,7 @@ function OAuthConsentScreen({
|
|
|
25476
25502
|
if (error || !clientInfo) {
|
|
25477
25503
|
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: [
|
|
25478
25504
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
|
|
25479
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess',
|
|
25505
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _678 => _678.message]) || "Invalid authorization request. Please try again." })
|
|
25480
25506
|
] }) }) }) });
|
|
25481
25507
|
}
|
|
25482
25508
|
const { client, scopes } = clientInfo;
|
|
@@ -25692,7 +25718,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
25692
25718
|
questionnaire: values.questionnaire
|
|
25693
25719
|
});
|
|
25694
25720
|
setIsSuccess(true);
|
|
25695
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
25721
|
+
_optionalChain([onSuccess, 'optionalCall', _679 => _679()]);
|
|
25696
25722
|
} catch (e) {
|
|
25697
25723
|
errorToast({ error: e });
|
|
25698
25724
|
} finally {
|
|
@@ -26340,7 +26366,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
26340
26366
|
] }),
|
|
26341
26367
|
roleIds.map((roleId) => {
|
|
26342
26368
|
const roleTokens = block[roleId];
|
|
26343
|
-
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
26369
|
+
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _680 => _680[roleId]]), () => ( roleId));
|
|
26344
26370
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
26345
26371
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
|
|
26346
26372
|
_chunkSYQMVTICjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -26377,7 +26403,7 @@ function RbacContainer() {
|
|
|
26377
26403
|
}, []);
|
|
26378
26404
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
26379
26405
|
if (!matrix) return [];
|
|
26380
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
26406
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _681 => _681[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _682 => _682[b]]), () => ( b))));
|
|
26381
26407
|
}, [matrix, moduleNames]);
|
|
26382
26408
|
const roleIds = _react.useMemo.call(void 0, () => {
|
|
26383
26409
|
if (roleNames) {
|
|
@@ -26440,7 +26466,7 @@ function RbacContainer() {
|
|
|
26440
26466
|
id === selectedModuleId && "bg-muted font-medium text-foreground",
|
|
26441
26467
|
id !== selectedModuleId && "text-muted-foreground"
|
|
26442
26468
|
),
|
|
26443
|
-
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
26469
|
+
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _683 => _683[id]]), () => ( id))
|
|
26444
26470
|
}
|
|
26445
26471
|
) }, id)) }) }),
|
|
26446
26472
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -26448,7 +26474,7 @@ function RbacContainer() {
|
|
|
26448
26474
|
{
|
|
26449
26475
|
moduleId: selectedModuleId,
|
|
26450
26476
|
block: selectedBlock,
|
|
26451
|
-
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
26477
|
+
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _684 => _684[selectedModuleId]]), () => ( selectedModuleId)),
|
|
26452
26478
|
roleIds,
|
|
26453
26479
|
roleNames,
|
|
26454
26480
|
onOpenPicker: openPicker
|
|
@@ -26459,12 +26485,12 @@ function RbacContainer() {
|
|
|
26459
26485
|
RbacPermissionPicker,
|
|
26460
26486
|
{
|
|
26461
26487
|
open: !!activePicker,
|
|
26462
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
26488
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _685 => _685.anchor]), () => ( null)),
|
|
26463
26489
|
value: activeValue,
|
|
26464
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
26490
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _686 => _686.isRoleColumn]), () => ( false)),
|
|
26465
26491
|
knownSegments: activeSegments,
|
|
26466
26492
|
onSetValue: handleSetValue,
|
|
26467
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
26493
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _687 => _687.isRoleColumn]) ? handleClear : void 0,
|
|
26468
26494
|
onClose: closePicker
|
|
26469
26495
|
}
|
|
26470
26496
|
)
|
|
@@ -26531,7 +26557,7 @@ function RbacByRoleContainer() {
|
|
|
26531
26557
|
}, [roleNames]);
|
|
26532
26558
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
26533
26559
|
if (!matrix) return [];
|
|
26534
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
26560
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _688 => _688[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _689 => _689[b]]), () => ( b))));
|
|
26535
26561
|
}, [matrix, moduleNames]);
|
|
26536
26562
|
_react.useEffect.call(void 0, () => {
|
|
26537
26563
|
if (!selectedRoleId && sortedRoleIds.length > 0) {
|
|
@@ -26580,7 +26606,7 @@ function RbacByRoleContainer() {
|
|
|
26580
26606
|
id === selectedRoleId && "bg-muted font-medium text-foreground",
|
|
26581
26607
|
id !== selectedRoleId && "text-muted-foreground"
|
|
26582
26608
|
),
|
|
26583
|
-
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
26609
|
+
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _690 => _690[id]]), () => ( id))
|
|
26584
26610
|
}
|
|
26585
26611
|
) }, id)) }) }),
|
|
26586
26612
|
/* @__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: [
|
|
@@ -26600,7 +26626,7 @@ function RbacByRoleContainer() {
|
|
|
26600
26626
|
if (!block) return null;
|
|
26601
26627
|
const defaultTokens = _nullishCoalesce(block.default, () => ( []));
|
|
26602
26628
|
const roleTokens = block[selectedRoleId];
|
|
26603
|
-
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
26629
|
+
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _691 => _691[moduleId]]), () => ( moduleId));
|
|
26604
26630
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
26605
26631
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26606
26632
|
"td",
|
|
@@ -26615,7 +26641,7 @@ function RbacByRoleContainer() {
|
|
|
26615
26641
|
_chunkSYQMVTICjs.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))
|
|
26616
26642
|
] }),
|
|
26617
26643
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
26618
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
26644
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _692 => _692[selectedRoleId]]), () => ( selectedRoleId)) }),
|
|
26619
26645
|
_chunkSYQMVTICjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26620
26646
|
CellButton3,
|
|
26621
26647
|
{
|
|
@@ -26636,12 +26662,12 @@ function RbacByRoleContainer() {
|
|
|
26636
26662
|
RbacPermissionPicker,
|
|
26637
26663
|
{
|
|
26638
26664
|
open: !!activePicker,
|
|
26639
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
26665
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _693 => _693.anchor]), () => ( null)),
|
|
26640
26666
|
value: activeValue,
|
|
26641
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
26667
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _694 => _694.isRoleColumn]), () => ( false)),
|
|
26642
26668
|
knownSegments: activeSegments,
|
|
26643
26669
|
onSetValue: handleSetValue,
|
|
26644
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
26670
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _695 => _695.isRoleColumn]) ? handleClear : void 0,
|
|
26645
26671
|
onClose: closePicker
|
|
26646
26672
|
}
|
|
26647
26673
|
)
|
|
@@ -27247,4 +27273,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
|
|
|
27247
27273
|
|
|
27248
27274
|
|
|
27249
27275
|
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.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.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.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;
|
|
27250
|
-
//# sourceMappingURL=chunk-
|
|
27276
|
+
//# sourceMappingURL=chunk-U32IWQZM.js.map
|