@carlonicora/nextjs-jsonapi 3.20.1 → 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-FKYWM4NJ.mjs → BlockNoteEditor-CSLA3M32.mjs} +2 -2
- package/dist/{BlockNoteEditor-2M2M7MT4.js → BlockNoteEditor-NRI2TZXY.js} +9 -9
- package/dist/{BlockNoteEditor-2M2M7MT4.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-HP3SPOPP.mjs → chunk-HSVAW3DQ.mjs} +32 -18
- package/dist/chunk-HSVAW3DQ.mjs.map +1 -0
- package/dist/{chunk-XMYHR2EF.js → chunk-U32IWQZM.js} +131 -117
- 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 +56 -26
- package/src/components/tables/__tests__/ContentListTable.spec.tsx +133 -10
- package/src/shadcnui/ui/badge.tsx +2 -0
- package/dist/chunk-HP3SPOPP.mjs.map +0 -1
- package/dist/chunk-XMYHR2EF.js.map +0 -1
- /package/dist/{BlockNoteEditor-FKYWM4NJ.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) {
|
|
@@ -17705,6 +17707,14 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17705
17707
|
data: tableData,
|
|
17706
17708
|
columns: tableColumns,
|
|
17707
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
|
+
},
|
|
17708
17718
|
...props.expandable && {
|
|
17709
17719
|
getExpandedRowModel: _reacttable.getExpandedRowModel.call(void 0, ),
|
|
17710
17720
|
getSubRows: props.getSubRows,
|
|
@@ -17717,7 +17727,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17717
17727
|
});
|
|
17718
17728
|
const rowModel = tableData ? table.getRowModel() : null;
|
|
17719
17729
|
const groupedRows = _react.useMemo.call(void 0, () => {
|
|
17720
|
-
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess',
|
|
17730
|
+
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _542 => _542.rows, 'optionalAccess', _543 => _543.length])) return null;
|
|
17721
17731
|
const groupMap = /* @__PURE__ */ new Map();
|
|
17722
17732
|
for (const row of rowModel.rows) {
|
|
17723
17733
|
const keys = getGroupKeys(row.original, props.groupBy);
|
|
@@ -17786,35 +17796,39 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17786
17796
|
) }),
|
|
17787
17797
|
!props.hideHeader && table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
17788
17798
|
const meta = header.column.columnDef.meta;
|
|
17789
|
-
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);
|
|
17790
17800
|
}) }, headerGroup.id))
|
|
17791
17801
|
] }),
|
|
17792
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access',
|
|
17793
|
-
/* @__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',
|
|
17794
|
-
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,
|
|
17795
17820
|
TableRow,
|
|
17796
17821
|
{
|
|
17797
|
-
onClick: () => _optionalChain([onRowClick, 'optionalCall',
|
|
17822
|
+
onClick: () => _optionalChain([onRowClick, 'optionalCall', _551 => _551(row.original.jsonApiData)]),
|
|
17798
17823
|
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
17799
17824
|
children: row.getVisibleCells().map((cell) => {
|
|
17800
17825
|
const meta = cell.column.columnDef.meta;
|
|
17801
|
-
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);
|
|
17802
17827
|
})
|
|
17803
|
-
}
|
|
17804
|
-
|
|
17805
|
-
))
|
|
17806
|
-
] },
|
|
17807
|
-
TableRow,
|
|
17808
|
-
{
|
|
17809
|
-
onClick: () => _optionalChain([onRowClick, 'optionalCall', _549 => _549(row.original.jsonApiData)]),
|
|
17810
|
-
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
17811
|
-
children: row.getVisibleCells().map((cell) => {
|
|
17812
|
-
const meta = cell.column.columnDef.meta;
|
|
17813
|
-
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);
|
|
17814
|
-
})
|
|
17815
|
-
},
|
|
17816
|
-
row.id
|
|
17817
|
-
)) : /* @__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."))) }) }) }),
|
|
17818
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: [
|
|
17819
17833
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17820
17834
|
Button,
|
|
@@ -17824,7 +17838,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17824
17838
|
onClick: (e) => {
|
|
17825
17839
|
e.preventDefault();
|
|
17826
17840
|
setPendingDirection("prev");
|
|
17827
|
-
_optionalChain([data, 'access',
|
|
17841
|
+
_optionalChain([data, 'access', _553 => _553.previous, 'optionalCall', _554 => _554(true)]);
|
|
17828
17842
|
},
|
|
17829
17843
|
disabled: !data.previous || pendingDirection !== null,
|
|
17830
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" })
|
|
@@ -17839,7 +17853,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17839
17853
|
onClick: (e) => {
|
|
17840
17854
|
e.preventDefault();
|
|
17841
17855
|
setPendingDirection("next");
|
|
17842
|
-
_optionalChain([data, 'access',
|
|
17856
|
+
_optionalChain([data, 'access', _555 => _555.next, 'optionalCall', _556 => _556(true)]);
|
|
17843
17857
|
},
|
|
17844
17858
|
disabled: !data.next || pendingDirection !== null,
|
|
17845
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" })
|
|
@@ -17860,7 +17874,7 @@ function ContentListGrid(props) {
|
|
|
17860
17874
|
if (!data.next || !sentinelRef.current) return;
|
|
17861
17875
|
const observer = new IntersectionObserver(
|
|
17862
17876
|
(entries) => {
|
|
17863
|
-
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()]);
|
|
17864
17878
|
},
|
|
17865
17879
|
{ threshold: 0.1, rootMargin: "200px" }
|
|
17866
17880
|
);
|
|
@@ -18647,7 +18661,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18647
18661
|
newDigits[index] = digit;
|
|
18648
18662
|
setDigits(newDigits);
|
|
18649
18663
|
if (digit && index < 5) {
|
|
18650
|
-
_optionalChain([inputRefs, 'access',
|
|
18664
|
+
_optionalChain([inputRefs, 'access', _561 => _561.current, 'access', _562 => _562[index + 1], 'optionalAccess', _563 => _563.focus, 'call', _564 => _564()]);
|
|
18651
18665
|
}
|
|
18652
18666
|
const code = newDigits.join("");
|
|
18653
18667
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -18656,7 +18670,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18656
18670
|
}, "handleChange");
|
|
18657
18671
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
18658
18672
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
18659
|
-
_optionalChain([inputRefs, 'access',
|
|
18673
|
+
_optionalChain([inputRefs, 'access', _565 => _565.current, 'access', _566 => _566[index - 1], 'optionalAccess', _567 => _567.focus, 'call', _568 => _568()]);
|
|
18660
18674
|
}
|
|
18661
18675
|
}, "handleKeyDown");
|
|
18662
18676
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -18665,7 +18679,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18665
18679
|
if (pastedData.length === 6) {
|
|
18666
18680
|
const newDigits = pastedData.split("");
|
|
18667
18681
|
setDigits(newDigits);
|
|
18668
|
-
_optionalChain([inputRefs, 'access',
|
|
18682
|
+
_optionalChain([inputRefs, 'access', _569 => _569.current, 'access', _570 => _570[5], 'optionalAccess', _571 => _571.focus, 'call', _572 => _572()]);
|
|
18669
18683
|
onComplete(pastedData);
|
|
18670
18684
|
}
|
|
18671
18685
|
}, "handlePaste");
|
|
@@ -18876,8 +18890,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
18876
18890
|
try {
|
|
18877
18891
|
const registrationData = await _chunkMWZCCOTSjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
18878
18892
|
id: _uuid.v4.call(void 0, ),
|
|
18879
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
18880
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
18893
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _573 => _573.email]), () => ( "")),
|
|
18894
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _574 => _574.name])
|
|
18881
18895
|
});
|
|
18882
18896
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
18883
18897
|
await _chunkMWZCCOTSjs.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -19028,7 +19042,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
19028
19042
|
const setup = await _chunkMWZCCOTSjs.TwoFactorService.setupTotp({
|
|
19029
19043
|
id: _uuid.v4.call(void 0, ),
|
|
19030
19044
|
name: name.trim(),
|
|
19031
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
19045
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _575 => _575.email]), () => ( ""))
|
|
19032
19046
|
});
|
|
19033
19047
|
setQrCodeUri(setup.qrCodeUri);
|
|
19034
19048
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -19162,7 +19176,7 @@ function TwoFactorSettings() {
|
|
|
19162
19176
|
if (isLoading) {
|
|
19163
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") }) }) });
|
|
19164
19178
|
}
|
|
19165
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
19179
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _576 => _576.isEnabled]), () => ( false));
|
|
19166
19180
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
19167
19181
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
19168
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" }),
|
|
@@ -19200,7 +19214,7 @@ function TwoFactorSettings() {
|
|
|
19200
19214
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
19201
19215
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
19202
19216
|
] }),
|
|
19203
|
-
/* @__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 })
|
|
19204
19218
|
] }) }),
|
|
19205
19219
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
19206
19220
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -19378,9 +19392,9 @@ function AcceptInvitation() {
|
|
|
19378
19392
|
});
|
|
19379
19393
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
19380
19394
|
try {
|
|
19381
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
19395
|
+
if (!_optionalChain([params, 'optionalAccess', _578 => _578.code])) return;
|
|
19382
19396
|
const payload = {
|
|
19383
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
19397
|
+
code: _optionalChain([params, 'optionalAccess', _579 => _579.code]),
|
|
19384
19398
|
password: values.password
|
|
19385
19399
|
};
|
|
19386
19400
|
await _chunkMWZCCOTSjs.AuthService.acceptInvitation(payload);
|
|
@@ -19751,14 +19765,14 @@ function RefreshUser() {
|
|
|
19751
19765
|
setUser(fullUser);
|
|
19752
19766
|
const token = {
|
|
19753
19767
|
userId: fullUser.id,
|
|
19754
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
19768
|
+
companyId: _optionalChain([fullUser, 'access', _580 => _580.company, 'optionalAccess', _581 => _581.id]),
|
|
19755
19769
|
roles: fullUser.roles.map((role) => role.id),
|
|
19756
|
-
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)]), () => ( [])),
|
|
19757
19771
|
modules: fullUser.modules.map((module) => {
|
|
19758
19772
|
return { id: module.id, permissions: module.permissions };
|
|
19759
19773
|
})
|
|
19760
19774
|
};
|
|
19761
|
-
await _optionalChain([_chunkMWZCCOTSjs.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
19775
|
+
await _optionalChain([_chunkMWZCCOTSjs.getTokenHandler.call(void 0, ), 'optionalAccess', _586 => _586.updateToken, 'call', _587 => _587(token)]);
|
|
19762
19776
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
19763
19777
|
}
|
|
19764
19778
|
}, "loadFullUser");
|
|
@@ -19822,9 +19836,9 @@ function ResetPassword() {
|
|
|
19822
19836
|
});
|
|
19823
19837
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
19824
19838
|
try {
|
|
19825
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
19839
|
+
if (!_optionalChain([params, 'optionalAccess', _588 => _588.code])) return;
|
|
19826
19840
|
const payload = {
|
|
19827
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
19841
|
+
code: _optionalChain([params, 'optionalAccess', _589 => _589.code]),
|
|
19828
19842
|
password: values.password
|
|
19829
19843
|
};
|
|
19830
19844
|
await _chunkMWZCCOTSjs.AuthService.resetPassword(payload);
|
|
@@ -20349,7 +20363,7 @@ function AiConnectionEditor({
|
|
|
20349
20363
|
const registryRows = _react.useMemo.call(void 0, () => _nullishCoalesce(providerRegistry[connectionType], () => ( [])), [providerRegistry, connectionType]);
|
|
20350
20364
|
const providers = _react.useMemo.call(void 0, () => registryRows.map((row) => row.provider), [registryRows]);
|
|
20351
20365
|
const fieldsFor = _react.useCallback.call(void 0,
|
|
20352
|
-
(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]), () => ( [])),
|
|
20353
20367
|
[registryRows]
|
|
20354
20368
|
);
|
|
20355
20369
|
const defaultsFor = _react.useCallback.call(void 0,
|
|
@@ -20358,7 +20372,7 @@ function AiConnectionEditor({
|
|
|
20358
20372
|
const seeded = {};
|
|
20359
20373
|
fieldsFor(provider).forEach((descriptor) => {
|
|
20360
20374
|
if (descriptor.kind === "boolean") {
|
|
20361
|
-
const current2 = _optionalChain([stored, 'optionalAccess',
|
|
20375
|
+
const current2 = _optionalChain([stored, 'optionalAccess', _593 => _593[descriptor.field]]);
|
|
20362
20376
|
seeded[descriptor.field] = current2 !== void 0 && current2 !== null ? current2 === true : descriptor.default === true;
|
|
20363
20377
|
return;
|
|
20364
20378
|
}
|
|
@@ -20366,7 +20380,7 @@ function AiConnectionEditor({
|
|
|
20366
20380
|
seeded[descriptor.field] = "";
|
|
20367
20381
|
return;
|
|
20368
20382
|
}
|
|
20369
|
-
const current = _optionalChain([stored, 'optionalAccess',
|
|
20383
|
+
const current = _optionalChain([stored, 'optionalAccess', _594 => _594[descriptor.field]]);
|
|
20370
20384
|
if (current !== void 0 && current !== null) seeded[descriptor.field] = String(current);
|
|
20371
20385
|
else seeded[descriptor.field] = descriptor.default !== void 0 ? String(descriptor.default) : "";
|
|
20372
20386
|
});
|
|
@@ -20392,7 +20406,7 @@ function AiConnectionEditor({
|
|
|
20392
20406
|
values: _zod3.z.record(_zod3.z.string(), _zod3.z.any())
|
|
20393
20407
|
}).superRefine((data, ctx) => {
|
|
20394
20408
|
fieldsFor(data.provider).filter((descriptor) => descriptor.required).forEach((descriptor) => {
|
|
20395
|
-
const value = _optionalChain([data, 'access',
|
|
20409
|
+
const value = _optionalChain([data, 'access', _595 => _595.values, 'optionalAccess', _596 => _596[descriptor.field]]);
|
|
20396
20410
|
const filled = descriptor.kind === "secret" ? !!value || hasStoredSecret(descriptor.field) : descriptor.kind === "boolean" ? value !== void 0 : value !== void 0 && value !== null && String(value).trim() !== "";
|
|
20397
20411
|
if (filled) return;
|
|
20398
20412
|
ctx.addIssue({
|
|
@@ -20406,11 +20420,11 @@ function AiConnectionEditor({
|
|
|
20406
20420
|
);
|
|
20407
20421
|
const getDefaultValues = _react.useCallback.call(void 0,
|
|
20408
20422
|
() => ({
|
|
20409
|
-
id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20410
|
-
name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20411
|
-
provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20412
|
-
enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20413
|
-
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])), () => ( "")))
|
|
20414
20428
|
}),
|
|
20415
20429
|
[connection, providers, defaultsFor]
|
|
20416
20430
|
);
|
|
@@ -20421,7 +20435,7 @@ function AiConnectionEditor({
|
|
|
20421
20435
|
_react.useEffect.call(void 0, () => {
|
|
20422
20436
|
if (registryRows.length === 0) return;
|
|
20423
20437
|
const currentProvider = form.getValues("provider");
|
|
20424
|
-
const provider = currentProvider || _optionalChain([connection, 'optionalAccess',
|
|
20438
|
+
const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _602 => _602.provider]) || providers[0] || "";
|
|
20425
20439
|
if (!provider) return;
|
|
20426
20440
|
if (provider !== currentProvider) form.setValue("provider", provider);
|
|
20427
20441
|
const currentValues = form.getValues("values");
|
|
@@ -20492,7 +20506,7 @@ function AiConnectionEditor({
|
|
|
20492
20506
|
{
|
|
20493
20507
|
form,
|
|
20494
20508
|
entityType: t("ai_connections.admin.entity"),
|
|
20495
|
-
entityName: _optionalChain([connection, 'optionalAccess',
|
|
20509
|
+
entityName: _optionalChain([connection, 'optionalAccess', _603 => _603.name]),
|
|
20496
20510
|
isEdit,
|
|
20497
20511
|
module: _chunkMWZCCOTSjs.Modules.AiConnection,
|
|
20498
20512
|
size: "md",
|
|
@@ -20500,7 +20514,7 @@ function AiConnectionEditor({
|
|
|
20500
20514
|
onSubmit: async (values) => {
|
|
20501
20515
|
const attributes = {};
|
|
20502
20516
|
fieldsFor(values.provider).forEach((descriptor) => {
|
|
20503
|
-
const coerced = coerce(descriptor, _optionalChain([values, 'access',
|
|
20517
|
+
const coerced = coerce(descriptor, _optionalChain([values, 'access', _604 => _604.values, 'optionalAccess', _605 => _605[descriptor.field]]));
|
|
20504
20518
|
if (coerced !== void 0) attributes[descriptor.field] = coerced;
|
|
20505
20519
|
});
|
|
20506
20520
|
const payload = {
|
|
@@ -20721,7 +20735,7 @@ function AiConnectionTypeCard({ connectionType }) {
|
|
|
20721
20735
|
),
|
|
20722
20736
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-muted/40 flex flex-wrap items-center gap-2 px-3 py-2", children: [
|
|
20723
20737
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGray", children: t("ai_connections.admin.env_fallback") }),
|
|
20724
|
-
/* @__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 ") })
|
|
20725
20739
|
] })
|
|
20726
20740
|
] })
|
|
20727
20741
|
] })
|
|
@@ -20919,7 +20933,7 @@ function extractHeadings(blocks) {
|
|
|
20919
20933
|
function processBlocks(blockArray) {
|
|
20920
20934
|
for (const block of blockArray) {
|
|
20921
20935
|
if (block.type === "heading") {
|
|
20922
|
-
const level = _optionalChain([block, 'access',
|
|
20936
|
+
const level = _optionalChain([block, 'access', _609 => _609.props, 'optionalAccess', _610 => _610.level]) || 1;
|
|
20923
20937
|
const text = extractTextFromContent(block.content);
|
|
20924
20938
|
if (text.trim()) {
|
|
20925
20939
|
headings.push({
|
|
@@ -21261,7 +21275,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
|
|
|
21261
21275
|
})
|
|
21262
21276
|
};
|
|
21263
21277
|
const columns = _react.useMemo.call(void 0, () => {
|
|
21264
|
-
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);
|
|
21265
21279
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
21266
21280
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
21267
21281
|
}, "useHowToTableStructure");
|
|
@@ -21387,7 +21401,7 @@ function HowToSelector({
|
|
|
21387
21401
|
}, "setHowTo");
|
|
21388
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: [
|
|
21389
21403
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
21390
|
-
/* @__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 }) }))) }) }) }),
|
|
21391
21405
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21392
21406
|
_lucidereact.CircleX,
|
|
21393
21407
|
{
|
|
@@ -21680,10 +21694,10 @@ function CitationsTab({ citations, sources }) {
|
|
|
21680
21694
|
] }) }),
|
|
21681
21695
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
|
|
21682
21696
|
const isOpen = expanded.has(chunk.id);
|
|
21683
|
-
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;
|
|
21684
21698
|
const typeLabel = chunk.nodeType ? entityLabel(chunk.nodeType) : t("features.assistant.message.sources.source");
|
|
21685
21699
|
const fallbackName = chunk.nodeId ? `${typeLabel} ${chunk.nodeId.slice(0, 8)}` : typeLabel;
|
|
21686
|
-
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
21700
|
+
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _617 => _617.name]), () => ( fallbackName));
|
|
21687
21701
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
21688
21702
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
|
|
21689
21703
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -21731,7 +21745,7 @@ function ContentsTab({ citations, sources }) {
|
|
|
21731
21745
|
for (const c of citations) {
|
|
21732
21746
|
const id = c.nodeId;
|
|
21733
21747
|
if (!id) continue;
|
|
21734
|
-
const source = _optionalChain([sources, 'optionalAccess',
|
|
21748
|
+
const source = _optionalChain([sources, 'optionalAccess', _618 => _618.get, 'call', _619 => _619(id)]);
|
|
21735
21749
|
if (!source) continue;
|
|
21736
21750
|
const existing = map.get(id);
|
|
21737
21751
|
if (existing) {
|
|
@@ -21798,7 +21812,7 @@ function UsersTab({ users, citations, sources }) {
|
|
|
21798
21812
|
const generate = usePageUrlGenerator();
|
|
21799
21813
|
const userMap = /* @__PURE__ */ new Map();
|
|
21800
21814
|
for (const u of users) {
|
|
21801
|
-
if (!_optionalChain([u, 'optionalAccess',
|
|
21815
|
+
if (!_optionalChain([u, 'optionalAccess', _620 => _620.id])) continue;
|
|
21802
21816
|
userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
|
|
21803
21817
|
}
|
|
21804
21818
|
if (citations && sources) {
|
|
@@ -21903,7 +21917,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
|
|
|
21903
21917
|
}
|
|
21904
21918
|
return ids.size;
|
|
21905
21919
|
}, [message.citations, sources]);
|
|
21906
|
-
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess',
|
|
21920
|
+
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _621 => _621.length]), () => ( 0));
|
|
21907
21921
|
const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
|
|
21908
21922
|
const visibleTabs = [];
|
|
21909
21923
|
if (suggestionsCount > 0) visibleTabs.push("suggested");
|
|
@@ -22046,7 +22060,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
|
|
|
22046
22060
|
return void 0;
|
|
22047
22061
|
}
|
|
22048
22062
|
})()));
|
|
22049
|
-
if (_optionalChain([author, 'optionalAccess',
|
|
22063
|
+
if (_optionalChain([author, 'optionalAccess', _622 => _622.id])) userMap.set(author.id, author);
|
|
22050
22064
|
}
|
|
22051
22065
|
return Array.from(userMap.values());
|
|
22052
22066
|
}, [resolved]);
|
|
@@ -22081,7 +22095,7 @@ function MessageItem({
|
|
|
22081
22095
|
}) {
|
|
22082
22096
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
22083
22097
|
const isUser = message.role === "user";
|
|
22084
|
-
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess',
|
|
22098
|
+
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _623 => _623.has, 'call', _624 => _624(message.id)]);
|
|
22085
22099
|
const markdownComponents = _react.useMemo.call(void 0,
|
|
22086
22100
|
() => ({
|
|
22087
22101
|
a: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ href, children }) => {
|
|
@@ -22098,7 +22112,7 @@ function MessageItem({
|
|
|
22098
22112
|
isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
|
|
22099
22113
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
|
|
22100
22114
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
|
|
22101
|
-
/* @__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") })
|
|
22102
22116
|
] })
|
|
22103
22117
|
] });
|
|
22104
22118
|
}
|
|
@@ -22189,7 +22203,7 @@ function AssistantThread({
|
|
|
22189
22203
|
}) {
|
|
22190
22204
|
const lastMessageRef = _react.useRef.call(void 0, null);
|
|
22191
22205
|
_react.useEffect.call(void 0, () => {
|
|
22192
|
-
_optionalChain([lastMessageRef, 'access',
|
|
22206
|
+
_optionalChain([lastMessageRef, 'access', _626 => _626.current, 'optionalAccess', _627 => _627.scrollIntoView, 'call', _628 => _628({ block: "start", behavior: "smooth" })]);
|
|
22193
22207
|
}, [messages.length, sending]);
|
|
22194
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: [
|
|
22195
22209
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22228,7 +22242,7 @@ ${message.sources.map((source) => `- \`${source}\``).join("\n")}`;
|
|
|
22228
22242
|
return _chunkMWZCCOTSjs.rehydrate.call(void 0, _chunkMWZCCOTSjs.Modules.HandbookThreadMessage, {
|
|
22229
22243
|
jsonApi: {
|
|
22230
22244
|
...dehydrated.jsonApi,
|
|
22231
|
-
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access',
|
|
22245
|
+
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _629 => _629.jsonApi, 'optionalAccess', _630 => _630.attributes]), () => ( {})), content }
|
|
22232
22246
|
},
|
|
22233
22247
|
included: dehydrated.included
|
|
22234
22248
|
});
|
|
@@ -22237,8 +22251,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, withSourcesInContent, "withSourcesInContent
|
|
|
22237
22251
|
function useHandbookAsk(params) {
|
|
22238
22252
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
22239
22253
|
const generateUrl = usePageUrlGenerator();
|
|
22240
|
-
const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess',
|
|
22241
|
-
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]);
|
|
22242
22256
|
const [threads, setThreads] = _react.useState.call(void 0, []);
|
|
22243
22257
|
const [thread, setThread] = _react.useState.call(void 0, void 0);
|
|
22244
22258
|
const [messages, setMessages] = _react.useState.call(void 0, []);
|
|
@@ -22300,12 +22314,12 @@ function useHandbookAsk(params) {
|
|
|
22300
22314
|
]);
|
|
22301
22315
|
setSending(true);
|
|
22302
22316
|
try {
|
|
22303
|
-
let id = _optionalChain([thread, 'optionalAccess',
|
|
22317
|
+
let id = _optionalChain([thread, 'optionalAccess', _633 => _633.id]);
|
|
22304
22318
|
if (id === void 0) {
|
|
22305
22319
|
const created = await _chunkMWZCCOTSjs.HandbookThreadService.create({
|
|
22306
22320
|
id: _uuid.v4.call(void 0, ),
|
|
22307
22321
|
question: trimmed,
|
|
22308
|
-
handbookPageId: _optionalChain([options, 'optionalAccess',
|
|
22322
|
+
handbookPageId: _optionalChain([options, 'optionalAccess', _634 => _634.handbookPageId])
|
|
22309
22323
|
});
|
|
22310
22324
|
id = created.id;
|
|
22311
22325
|
setThreads((current) => [created, ...current]);
|
|
@@ -22314,7 +22328,7 @@ function useHandbookAsk(params) {
|
|
|
22314
22328
|
id: _uuid.v4.call(void 0, ),
|
|
22315
22329
|
threadId: id,
|
|
22316
22330
|
question: trimmed,
|
|
22317
|
-
handbookPageId: _optionalChain([options, 'optionalAccess',
|
|
22331
|
+
handbookPageId: _optionalChain([options, 'optionalAccess', _635 => _635.handbookPageId])
|
|
22318
22332
|
});
|
|
22319
22333
|
}
|
|
22320
22334
|
const loaded = await _chunkMWZCCOTSjs.HandbookThreadService.findOne({ id });
|
|
@@ -22335,7 +22349,7 @@ function useHandbookAsk(params) {
|
|
|
22335
22349
|
setSending(false);
|
|
22336
22350
|
}
|
|
22337
22351
|
},
|
|
22338
|
-
[messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess',
|
|
22352
|
+
[messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess', _636 => _636.id])]
|
|
22339
22353
|
);
|
|
22340
22354
|
return { threads, thread, messages, sending, ask, selectThread, startNew };
|
|
22341
22355
|
}
|
|
@@ -22891,7 +22905,7 @@ function HandbookPageContainer({ handbookPageId }) {
|
|
|
22891
22905
|
};
|
|
22892
22906
|
}, []);
|
|
22893
22907
|
const section = _react.useMemo.call(void 0,
|
|
22894
|
-
() => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess',
|
|
22908
|
+
() => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess', _637 => _637.section])),
|
|
22895
22909
|
[sections, handbookPage]
|
|
22896
22910
|
);
|
|
22897
22911
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -23005,7 +23019,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
|
|
|
23005
23019
|
AssistantSidebar,
|
|
23006
23020
|
{
|
|
23007
23021
|
threads,
|
|
23008
|
-
activeId: _optionalChain([thread, 'optionalAccess',
|
|
23022
|
+
activeId: _optionalChain([thread, 'optionalAccess', _638 => _638.id]),
|
|
23009
23023
|
onSelect: selectThread,
|
|
23010
23024
|
onNew: startNew,
|
|
23011
23025
|
newLabel: t("handbook.chat.new"),
|
|
@@ -23013,7 +23027,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
|
|
|
23013
23027
|
}
|
|
23014
23028
|
) })
|
|
23015
23029
|
),
|
|
23016
|
-
[selectThread, startNew, t, _optionalChain([thread, 'optionalAccess',
|
|
23030
|
+
[selectThread, startNew, t, _optionalChain([thread, 'optionalAccess', _639 => _639.id]), threads]
|
|
23017
23031
|
);
|
|
23018
23032
|
return (
|
|
23019
23033
|
// `RoundPageContainer` reads the page heading from the shared context, and
|
|
@@ -23025,7 +23039,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
|
|
|
23025
23039
|
RoundPageContainer,
|
|
23026
23040
|
{
|
|
23027
23041
|
module: _chunkMWZCCOTSjs.Modules.HandbookPage,
|
|
23028
|
-
id: _optionalChain([thread, 'optionalAccess',
|
|
23042
|
+
id: _optionalChain([thread, 'optionalAccess', _640 => _640.id]),
|
|
23029
23043
|
fullWidth: true,
|
|
23030
23044
|
forceHeader: true,
|
|
23031
23045
|
defaultDetailsOpen: true,
|
|
@@ -23177,7 +23191,7 @@ function AssistantContainer({ renderApprovalAction } = {}) {
|
|
|
23177
23191
|
AssistantSidebar,
|
|
23178
23192
|
{
|
|
23179
23193
|
threads: ctx.threads,
|
|
23180
|
-
activeId: _optionalChain([ctx, 'access',
|
|
23194
|
+
activeId: _optionalChain([ctx, 'access', _641 => _641.assistant, 'optionalAccess', _642 => _642.id]),
|
|
23181
23195
|
onSelect: ctx.selectThread,
|
|
23182
23196
|
onNew: ctx.startNew
|
|
23183
23197
|
}
|
|
@@ -23231,7 +23245,7 @@ function flattenBlocks(blocks) {
|
|
|
23231
23245
|
if (typeof inline === "string") return inline;
|
|
23232
23246
|
if (!inline || typeof inline !== "object") return "";
|
|
23233
23247
|
const node = inline;
|
|
23234
|
-
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]), () => ( ""));
|
|
23235
23249
|
if (typeof node.text === "string") return node.text;
|
|
23236
23250
|
if (Array.isArray(node.content)) return node.content.map(readInline).join("");
|
|
23237
23251
|
return "";
|
|
@@ -23347,7 +23361,7 @@ function AssistantPageContainer({
|
|
|
23347
23361
|
AssistantSidebar,
|
|
23348
23362
|
{
|
|
23349
23363
|
threads: ctx.threads,
|
|
23350
|
-
activeId: _optionalChain([ctx, 'access',
|
|
23364
|
+
activeId: _optionalChain([ctx, 'access', _645 => _645.assistant, 'optionalAccess', _646 => _646.id]),
|
|
23351
23365
|
onSelect: ctx.selectThread,
|
|
23352
23366
|
onNew: ctx.startNew
|
|
23353
23367
|
}
|
|
@@ -23586,12 +23600,12 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
|
|
|
23586
23600
|
const presented = _react.useMemo.call(void 0, () => parseOperatorProposal(actionProposal), [actionProposal]);
|
|
23587
23601
|
const legacy = _react.useMemo.call(void 0, () => presented ? void 0 : parseLegacyProposal(toolArgs), [presented, toolArgs]);
|
|
23588
23602
|
const isUpdate = toolName === "update_entity";
|
|
23589
|
-
const entityLabel = humaniseType(_nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess',
|
|
23590
|
-
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]), () => ( ""));
|
|
23591
23605
|
const rows = _react.useMemo.call(void 0, () => {
|
|
23592
23606
|
const yes = t("features.assistant.approval.proposal.yes");
|
|
23593
23607
|
const no = t("features.assistant.approval.proposal.no");
|
|
23594
|
-
const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess',
|
|
23608
|
+
const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _651 => _651.attributes]), () => ( _optionalChain([legacy, 'optionalAccess', _652 => _652.attributes])));
|
|
23595
23609
|
const attributeRows = Object.entries(_nullishCoalesce(attributes, () => ( {}))).flatMap(([key, value]) => {
|
|
23596
23610
|
const text = formatAttribute(value, yes, no);
|
|
23597
23611
|
return text === void 0 ? [] : [{ key: `attribute:${key}`, label: humaniseKey(key), value: text }];
|
|
@@ -23629,7 +23643,7 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
|
|
|
23629
23643
|
try {
|
|
23630
23644
|
const message = kind === "approve" ? await _chunkMWZCCOTSjs.AssistantActionService.approve({ id: actionId }) : await _chunkMWZCCOTSjs.AssistantActionService.deny({ id: actionId });
|
|
23631
23645
|
setStatus(kind === "approve" ? "executed" : "denied");
|
|
23632
|
-
if (message) _optionalChain([onResolved, 'optionalCall',
|
|
23646
|
+
if (message) _optionalChain([onResolved, 'optionalCall', _653 => _653(message)]);
|
|
23633
23647
|
} catch (error) {
|
|
23634
23648
|
console.error(`ApprovalActionCard: failed to ${kind} assistant action ${actionId}`, error);
|
|
23635
23649
|
setFailed(true);
|
|
@@ -23755,10 +23769,10 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
|
|
|
23755
23769
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
23756
23770
|
const generateUrl = usePageUrlGenerator();
|
|
23757
23771
|
const { loadNotifications } = useNotificationContext();
|
|
23758
|
-
const archived = _optionalChain([params, 'access',
|
|
23772
|
+
const archived = _optionalChain([params, 'access', _654 => _654.context, 'optionalAccess', _655 => _655.archived]) === true;
|
|
23759
23773
|
const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
|
|
23760
23774
|
await _chunkMWZCCOTSjs.NotificationService.archive({ id: notification.id });
|
|
23761
|
-
_optionalChain([params, 'access',
|
|
23775
|
+
_optionalChain([params, 'access', _656 => _656.dataRetriever, 'optionalAccess', _657 => _657.removeElement, 'call', _658 => _658(notification)]);
|
|
23762
23776
|
await loadNotifications();
|
|
23763
23777
|
}, "archiveNotification");
|
|
23764
23778
|
const tableData = _react.useMemo.call(void 0, () => {
|
|
@@ -23797,7 +23811,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
|
|
|
23797
23811
|
const data = generateNotificationData({ notification, generateUrl });
|
|
23798
23812
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-foreground text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
23799
23813
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { className: "font-medium", children: chunks }), "strong"),
|
|
23800
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
23814
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _659 => _659.actor, 'optionalAccess', _660 => _660.name]), () => ( "")),
|
|
23801
23815
|
title: data.title,
|
|
23802
23816
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
23803
23817
|
}) });
|
|
@@ -23852,7 +23866,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
|
|
|
23852
23866
|
})
|
|
23853
23867
|
};
|
|
23854
23868
|
const columns = _react.useMemo.call(void 0, () => {
|
|
23855
|
-
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);
|
|
23856
23870
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
23857
23871
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
23858
23872
|
}, "useNotificationTableStructure");
|
|
@@ -24271,7 +24285,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
24271
24285
|
invalidEmail: "Please enter a valid email address"
|
|
24272
24286
|
};
|
|
24273
24287
|
async function copyToClipboard(text) {
|
|
24274
|
-
if (_optionalChain([navigator, 'access',
|
|
24288
|
+
if (_optionalChain([navigator, 'access', _663 => _663.clipboard, 'optionalAccess', _664 => _664.writeText])) {
|
|
24275
24289
|
try {
|
|
24276
24290
|
await navigator.clipboard.writeText(text);
|
|
24277
24291
|
return true;
|
|
@@ -24313,7 +24327,7 @@ function ReferralWidget({
|
|
|
24313
24327
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
24314
24328
|
const config = _chunkSYQMVTICjs.getReferralConfig.call(void 0, );
|
|
24315
24329
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
24316
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
24330
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _665 => _665.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
24317
24331
|
if (!_chunkSYQMVTICjs.isReferralEnabled.call(void 0, )) {
|
|
24318
24332
|
return null;
|
|
24319
24333
|
}
|
|
@@ -24323,7 +24337,7 @@ function ReferralWidget({
|
|
|
24323
24337
|
if (success) {
|
|
24324
24338
|
setCopied(true);
|
|
24325
24339
|
_chunkMWZCCOTSjs.showToast.call(void 0, t.copiedMessage);
|
|
24326
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
24340
|
+
_optionalChain([onLinkCopied, 'optionalCall', _666 => _666()]);
|
|
24327
24341
|
setTimeout(() => setCopied(false), 2e3);
|
|
24328
24342
|
} else {
|
|
24329
24343
|
_chunkMWZCCOTSjs.showError.call(void 0, t.copyError);
|
|
@@ -24337,12 +24351,12 @@ function ReferralWidget({
|
|
|
24337
24351
|
try {
|
|
24338
24352
|
await sendInvite(email);
|
|
24339
24353
|
_chunkMWZCCOTSjs.showToast.call(void 0, t.inviteSent);
|
|
24340
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
24354
|
+
_optionalChain([onInviteSent, 'optionalCall', _667 => _667(email)]);
|
|
24341
24355
|
setEmail("");
|
|
24342
24356
|
} catch (err) {
|
|
24343
24357
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
24344
24358
|
_chunkMWZCCOTSjs.showError.call(void 0, error2.message);
|
|
24345
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
24359
|
+
_optionalChain([onInviteError, 'optionalCall', _668 => _668(error2)]);
|
|
24346
24360
|
}
|
|
24347
24361
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
24348
24362
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -25096,7 +25110,7 @@ function OAuthClientList({
|
|
|
25096
25110
|
OAuthClientCard,
|
|
25097
25111
|
{
|
|
25098
25112
|
client,
|
|
25099
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
25113
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _669 => _669(client)]),
|
|
25100
25114
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
25101
25115
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
25102
25116
|
},
|
|
@@ -25112,11 +25126,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
|
|
|
25112
25126
|
function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
25113
25127
|
const isEditMode = !!client;
|
|
25114
25128
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
25115
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
25116
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
25117
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
25118
|
-
allowedScopes: _optionalChain([client, 'optionalAccess',
|
|
25119
|
-
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))
|
|
25120
25134
|
});
|
|
25121
25135
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
25122
25136
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -25344,7 +25358,7 @@ function OAuthClientDetail({
|
|
|
25344
25358
|
] }),
|
|
25345
25359
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
25346
25360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
25347
|
-
/* @__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)) })
|
|
25348
25362
|
] }),
|
|
25349
25363
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
25350
25364
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -25488,7 +25502,7 @@ function OAuthConsentScreen({
|
|
|
25488
25502
|
if (error || !clientInfo) {
|
|
25489
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: [
|
|
25490
25504
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
|
|
25491
|
-
/* @__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." })
|
|
25492
25506
|
] }) }) }) });
|
|
25493
25507
|
}
|
|
25494
25508
|
const { client, scopes } = clientInfo;
|
|
@@ -25704,7 +25718,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
25704
25718
|
questionnaire: values.questionnaire
|
|
25705
25719
|
});
|
|
25706
25720
|
setIsSuccess(true);
|
|
25707
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
25721
|
+
_optionalChain([onSuccess, 'optionalCall', _679 => _679()]);
|
|
25708
25722
|
} catch (e) {
|
|
25709
25723
|
errorToast({ error: e });
|
|
25710
25724
|
} finally {
|
|
@@ -26352,7 +26366,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
26352
26366
|
] }),
|
|
26353
26367
|
roleIds.map((roleId) => {
|
|
26354
26368
|
const roleTokens = block[roleId];
|
|
26355
|
-
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
26369
|
+
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _680 => _680[roleId]]), () => ( roleId));
|
|
26356
26370
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
26357
26371
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
|
|
26358
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,
|
|
@@ -26389,7 +26403,7 @@ function RbacContainer() {
|
|
|
26389
26403
|
}, []);
|
|
26390
26404
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
26391
26405
|
if (!matrix) return [];
|
|
26392
|
-
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))));
|
|
26393
26407
|
}, [matrix, moduleNames]);
|
|
26394
26408
|
const roleIds = _react.useMemo.call(void 0, () => {
|
|
26395
26409
|
if (roleNames) {
|
|
@@ -26452,7 +26466,7 @@ function RbacContainer() {
|
|
|
26452
26466
|
id === selectedModuleId && "bg-muted font-medium text-foreground",
|
|
26453
26467
|
id !== selectedModuleId && "text-muted-foreground"
|
|
26454
26468
|
),
|
|
26455
|
-
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
26469
|
+
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _683 => _683[id]]), () => ( id))
|
|
26456
26470
|
}
|
|
26457
26471
|
) }, id)) }) }),
|
|
26458
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,
|
|
@@ -26460,7 +26474,7 @@ function RbacContainer() {
|
|
|
26460
26474
|
{
|
|
26461
26475
|
moduleId: selectedModuleId,
|
|
26462
26476
|
block: selectedBlock,
|
|
26463
|
-
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
26477
|
+
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _684 => _684[selectedModuleId]]), () => ( selectedModuleId)),
|
|
26464
26478
|
roleIds,
|
|
26465
26479
|
roleNames,
|
|
26466
26480
|
onOpenPicker: openPicker
|
|
@@ -26471,12 +26485,12 @@ function RbacContainer() {
|
|
|
26471
26485
|
RbacPermissionPicker,
|
|
26472
26486
|
{
|
|
26473
26487
|
open: !!activePicker,
|
|
26474
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
26488
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _685 => _685.anchor]), () => ( null)),
|
|
26475
26489
|
value: activeValue,
|
|
26476
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
26490
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _686 => _686.isRoleColumn]), () => ( false)),
|
|
26477
26491
|
knownSegments: activeSegments,
|
|
26478
26492
|
onSetValue: handleSetValue,
|
|
26479
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
26493
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _687 => _687.isRoleColumn]) ? handleClear : void 0,
|
|
26480
26494
|
onClose: closePicker
|
|
26481
26495
|
}
|
|
26482
26496
|
)
|
|
@@ -26543,7 +26557,7 @@ function RbacByRoleContainer() {
|
|
|
26543
26557
|
}, [roleNames]);
|
|
26544
26558
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
26545
26559
|
if (!matrix) return [];
|
|
26546
|
-
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))));
|
|
26547
26561
|
}, [matrix, moduleNames]);
|
|
26548
26562
|
_react.useEffect.call(void 0, () => {
|
|
26549
26563
|
if (!selectedRoleId && sortedRoleIds.length > 0) {
|
|
@@ -26592,7 +26606,7 @@ function RbacByRoleContainer() {
|
|
|
26592
26606
|
id === selectedRoleId && "bg-muted font-medium text-foreground",
|
|
26593
26607
|
id !== selectedRoleId && "text-muted-foreground"
|
|
26594
26608
|
),
|
|
26595
|
-
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
26609
|
+
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _690 => _690[id]]), () => ( id))
|
|
26596
26610
|
}
|
|
26597
26611
|
) }, id)) }) }),
|
|
26598
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: [
|
|
@@ -26612,7 +26626,7 @@ function RbacByRoleContainer() {
|
|
|
26612
26626
|
if (!block) return null;
|
|
26613
26627
|
const defaultTokens = _nullishCoalesce(block.default, () => ( []));
|
|
26614
26628
|
const roleTokens = block[selectedRoleId];
|
|
26615
|
-
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
26629
|
+
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _691 => _691[moduleId]]), () => ( moduleId));
|
|
26616
26630
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
26617
26631
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26618
26632
|
"td",
|
|
@@ -26627,7 +26641,7 @@ function RbacByRoleContainer() {
|
|
|
26627
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))
|
|
26628
26642
|
] }),
|
|
26629
26643
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
26630
|
-
/* @__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)) }),
|
|
26631
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,
|
|
26632
26646
|
CellButton3,
|
|
26633
26647
|
{
|
|
@@ -26648,12 +26662,12 @@ function RbacByRoleContainer() {
|
|
|
26648
26662
|
RbacPermissionPicker,
|
|
26649
26663
|
{
|
|
26650
26664
|
open: !!activePicker,
|
|
26651
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
26665
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _693 => _693.anchor]), () => ( null)),
|
|
26652
26666
|
value: activeValue,
|
|
26653
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
26667
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _694 => _694.isRoleColumn]), () => ( false)),
|
|
26654
26668
|
knownSegments: activeSegments,
|
|
26655
26669
|
onSetValue: handleSetValue,
|
|
26656
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
26670
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _695 => _695.isRoleColumn]) ? handleClear : void 0,
|
|
26657
26671
|
onClose: closePicker
|
|
26658
26672
|
}
|
|
26659
26673
|
)
|
|
@@ -27259,4 +27273,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
|
|
|
27259
27273
|
|
|
27260
27274
|
|
|
27261
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;
|
|
27262
|
-
//# sourceMappingURL=chunk-
|
|
27276
|
+
//# sourceMappingURL=chunk-U32IWQZM.js.map
|