@flamingo-stack/openframe-frontend-core 0.0.340 → 0.0.341
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/{chunk-53MGSWCC.js → chunk-2GROEWOK.js} +4 -4
- package/dist/{chunk-GGFJ5OQ3.js → chunk-4I46HAN5.js} +4 -4
- package/dist/{chunk-DFFOCQFO.cjs → chunk-A37AW6CD.cjs} +5 -5
- package/dist/{chunk-DFFOCQFO.cjs.map → chunk-A37AW6CD.cjs.map} +1 -1
- package/dist/{chunk-NDHQG4I4.js → chunk-AZ3DTQU5.js} +186 -154
- package/dist/chunk-AZ3DTQU5.js.map +1 -0
- package/dist/{chunk-HVYR323G.cjs → chunk-BYAXSMET.cjs} +15 -15
- package/dist/{chunk-HVYR323G.cjs.map → chunk-BYAXSMET.cjs.map} +1 -1
- package/dist/{chunk-TVCBMR3N.cjs → chunk-CJB4NUD6.cjs} +7 -7
- package/dist/{chunk-TVCBMR3N.cjs.map → chunk-CJB4NUD6.cjs.map} +1 -1
- package/dist/{chunk-W7J46YKF.js → chunk-CUQGK4AD.js} +2 -2
- package/dist/{chunk-4K2M2WC4.cjs → chunk-D2ETTYT2.cjs} +26 -26
- package/dist/{chunk-4K2M2WC4.cjs.map → chunk-D2ETTYT2.cjs.map} +1 -1
- package/dist/{chunk-NC3DJLP5.js → chunk-EPVDWAVJ.js} +4 -4
- package/dist/{chunk-SIK5LBUN.cjs → chunk-EYPZ2XLX.cjs} +25 -25
- package/dist/{chunk-SIK5LBUN.cjs.map → chunk-EYPZ2XLX.cjs.map} +1 -1
- package/dist/{chunk-MNLQMAY3.js → chunk-GCYEJLOQ.js} +2 -2
- package/dist/{chunk-ERMMMQET.cjs → chunk-I3CNFZOY.cjs} +351 -319
- package/dist/chunk-I3CNFZOY.cjs.map +1 -0
- package/dist/{chunk-L6YX6D26.cjs → chunk-I4BWBQXX.cjs} +31 -31
- package/dist/{chunk-L6YX6D26.cjs.map → chunk-I4BWBQXX.cjs.map} +1 -1
- package/dist/{chunk-573LTCRV.js → chunk-KE2QKKCN.js} +2 -2
- package/dist/{chunk-T4SW6GOR.js → chunk-KT4KY6OF.js} +4 -4
- package/dist/{chunk-BMSJTLGO.cjs → chunk-LANAE7MY.cjs} +12 -12
- package/dist/{chunk-BMSJTLGO.cjs.map → chunk-LANAE7MY.cjs.map} +1 -1
- package/dist/{chunk-OVN265XQ.js → chunk-N3GFEIWF.js} +2 -2
- package/dist/{chunk-VA3GDVOV.cjs → chunk-NIIN3UH4.cjs} +37 -37
- package/dist/{chunk-VA3GDVOV.cjs.map → chunk-NIIN3UH4.cjs.map} +1 -1
- package/dist/{chunk-EXFHHZ2C.cjs → chunk-OGTHMZIL.cjs} +9 -9
- package/dist/{chunk-EXFHHZ2C.cjs.map → chunk-OGTHMZIL.cjs.map} +1 -1
- package/dist/{chunk-KE2PMD6A.js → chunk-OLR534KB.js} +2 -2
- package/dist/{chunk-DRO773DG.cjs → chunk-QCREN5A5.cjs} +56 -56
- package/dist/{chunk-DRO773DG.cjs.map → chunk-QCREN5A5.cjs.map} +1 -1
- package/dist/{chunk-7TENQYAJ.js → chunk-QYF6LEDF.js} +2 -2
- package/dist/{chunk-YEB5Z76W.cjs → chunk-R3MVYKEL.cjs} +62 -62
- package/dist/{chunk-YEB5Z76W.cjs.map → chunk-R3MVYKEL.cjs.map} +1 -1
- package/dist/{chunk-TOMTBXM7.js → chunk-Y2WHQSF6.js} +2 -2
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/docs/index.js +4 -4
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +20 -20
- package/dist/components/help-center-pages/index.js +11 -11
- package/dist/components/index.cjs +121 -121
- package/dist/components/index.js +9 -9
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +5 -5
- package/dist/components/tickets/index.js +4 -4
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/table/table-row.d.ts +1 -1
- package/dist/components/ui/table/table-row.d.ts.map +1 -1
- package/dist/components/ui/table/table.d.ts +1 -1
- package/dist/components/ui/table/table.d.ts.map +1 -1
- package/dist/components/ui/table/types.d.ts +16 -0
- package/dist/components/ui/table/types.d.ts.map +1 -1
- package/dist/components/ui/table/use-table-motion.d.ts +20 -0
- package/dist/components/ui/table/use-table-motion.d.ts.map +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/ui/table/table-row.tsx +16 -3
- package/src/components/ui/table/table.tsx +34 -15
- package/src/components/ui/table/types.ts +17 -0
- package/src/components/ui/table/use-table-motion.ts +48 -0
- package/dist/chunk-ERMMMQET.cjs.map +0 -1
- package/dist/chunk-NDHQG4I4.js.map +0 -1
- /package/dist/{chunk-53MGSWCC.js.map → chunk-2GROEWOK.js.map} +0 -0
- /package/dist/{chunk-GGFJ5OQ3.js.map → chunk-4I46HAN5.js.map} +0 -0
- /package/dist/{chunk-W7J46YKF.js.map → chunk-CUQGK4AD.js.map} +0 -0
- /package/dist/{chunk-NC3DJLP5.js.map → chunk-EPVDWAVJ.js.map} +0 -0
- /package/dist/{chunk-MNLQMAY3.js.map → chunk-GCYEJLOQ.js.map} +0 -0
- /package/dist/{chunk-573LTCRV.js.map → chunk-KE2QKKCN.js.map} +0 -0
- /package/dist/{chunk-T4SW6GOR.js.map → chunk-KT4KY6OF.js.map} +0 -0
- /package/dist/{chunk-OVN265XQ.js.map → chunk-N3GFEIWF.js.map} +0 -0
- /package/dist/{chunk-KE2PMD6A.js.map → chunk-OLR534KB.js.map} +0 -0
- /package/dist/{chunk-7TENQYAJ.js.map → chunk-QYF6LEDF.js.map} +0 -0
- /package/dist/{chunk-TOMTBXM7.js.map → chunk-Y2WHQSF6.js.map} +0 -0
|
@@ -35653,9 +35653,14 @@ function TableRow({
|
|
|
35653
35653
|
compact,
|
|
35654
35654
|
selectable,
|
|
35655
35655
|
selected,
|
|
35656
|
-
onSelect
|
|
35656
|
+
onSelect,
|
|
35657
|
+
animateRowReorder,
|
|
35658
|
+
motionDiv
|
|
35657
35659
|
}) {
|
|
35658
35660
|
const isLinkMode = Boolean(href) && !onClick;
|
|
35661
|
+
const animate = Boolean(animateRowReorder && motionDiv);
|
|
35662
|
+
const Row = animate ? motionDiv : "div";
|
|
35663
|
+
const motionProps = animate ? { layout: "position", transition: { layout: { duration: 0.35, ease: [0.22, 1, 0.36, 1] } } } : {};
|
|
35659
35664
|
const handleRowClick = (e) => {
|
|
35660
35665
|
const target = e.target;
|
|
35661
35666
|
if (target.closest("[data-no-row-click]")) {
|
|
@@ -35691,8 +35696,9 @@ function TableRow({
|
|
|
35691
35696
|
return String(value);
|
|
35692
35697
|
};
|
|
35693
35698
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
35694
|
-
|
|
35699
|
+
Row,
|
|
35695
35700
|
{
|
|
35701
|
+
...motionProps,
|
|
35696
35702
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
35697
35703
|
"relative rounded-[6px] bg-ods-card border border-ods-border overflow-hidden",
|
|
35698
35704
|
(onClick || isLinkMode) && "cursor-pointer hover:bg-ods-bg-active transition-colors",
|
|
@@ -35744,6 +35750,24 @@ function TableRow({
|
|
|
35744
35750
|
);
|
|
35745
35751
|
}
|
|
35746
35752
|
|
|
35753
|
+
// src/components/ui/table/use-table-motion.ts
|
|
35754
|
+
|
|
35755
|
+
function useTableMotion(enabled) {
|
|
35756
|
+
const [runtime, setRuntime] = _react.useState.call(void 0, null);
|
|
35757
|
+
_react.useEffect.call(void 0, () => {
|
|
35758
|
+
if (!enabled || runtime) return;
|
|
35759
|
+
let active = true;
|
|
35760
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("framer-motion"))).then((m) => {
|
|
35761
|
+
if (active) setRuntime({ motionDiv: m.motion.div, LayoutGroup: m.LayoutGroup });
|
|
35762
|
+
}).catch(() => {
|
|
35763
|
+
});
|
|
35764
|
+
return () => {
|
|
35765
|
+
active = false;
|
|
35766
|
+
};
|
|
35767
|
+
}, [enabled, runtime]);
|
|
35768
|
+
return enabled ? runtime : null;
|
|
35769
|
+
}
|
|
35770
|
+
|
|
35747
35771
|
// src/components/ui/table/table.tsx
|
|
35748
35772
|
|
|
35749
35773
|
function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref) {
|
|
@@ -35829,8 +35853,10 @@ function Table({
|
|
|
35829
35853
|
paginationClassName,
|
|
35830
35854
|
infiniteScroll,
|
|
35831
35855
|
stickyHeader,
|
|
35832
|
-
stickyHeaderOffset
|
|
35856
|
+
stickyHeaderOffset,
|
|
35857
|
+
animateRowReorder
|
|
35833
35858
|
}) {
|
|
35859
|
+
const tableMotion = useTableMotion(Boolean(animateRowReorder));
|
|
35834
35860
|
const columnsWithActions = injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref);
|
|
35835
35861
|
const getRowHref = (item) => {
|
|
35836
35862
|
if (onRowClick || !rowHref) return void 0;
|
|
@@ -35946,23 +35972,29 @@ function Table({
|
|
|
35946
35972
|
hasChevron: Boolean(rowHref)
|
|
35947
35973
|
}
|
|
35948
35974
|
) : data.length === 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableEmptyState, { message: emptyMessage }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
35949
|
-
|
|
35950
|
-
|
|
35951
|
-
|
|
35952
|
-
|
|
35953
|
-
|
|
35954
|
-
|
|
35955
|
-
|
|
35956
|
-
|
|
35957
|
-
|
|
35958
|
-
|
|
35959
|
-
|
|
35960
|
-
|
|
35961
|
-
|
|
35962
|
-
|
|
35963
|
-
|
|
35964
|
-
|
|
35965
|
-
|
|
35975
|
+
(() => {
|
|
35976
|
+
const rows = data.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
35977
|
+
TableRow,
|
|
35978
|
+
{
|
|
35979
|
+
item,
|
|
35980
|
+
columns: columnsWithActions,
|
|
35981
|
+
onClick: onRowClick,
|
|
35982
|
+
href: getRowHref(item),
|
|
35983
|
+
className: getRowClassName(item, index),
|
|
35984
|
+
index,
|
|
35985
|
+
compact,
|
|
35986
|
+
selectable,
|
|
35987
|
+
selected: isRowSelected(item),
|
|
35988
|
+
onSelect: handleSelectRow,
|
|
35989
|
+
animateRowReorder,
|
|
35990
|
+
motionDiv: _optionalChain([tableMotion, 'optionalAccess', _679 => _679.motionDiv])
|
|
35991
|
+
},
|
|
35992
|
+
getRowKey(item, index)
|
|
35993
|
+
));
|
|
35994
|
+
const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess', _680 => _680.LayoutGroup]);
|
|
35995
|
+
return animateRowReorder && LayoutGroup ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LayoutGroup, { children: rows }) : rows;
|
|
35996
|
+
})(),
|
|
35997
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _681 => _681.isFetchingNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
35966
35998
|
TableCardSkeleton,
|
|
35967
35999
|
{
|
|
35968
36000
|
columns,
|
|
@@ -35971,7 +36003,7 @@ function Table({
|
|
|
35971
36003
|
hasChevron: Boolean(rowHref)
|
|
35972
36004
|
}
|
|
35973
36005
|
),
|
|
35974
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
36006
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _682 => _682.hasNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
|
|
35975
36007
|
!infiniteScroll && Array.from({ length: Math.max(0, skeletonRows - data.length) }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
35976
36008
|
"div",
|
|
35977
36009
|
{
|
|
@@ -36329,7 +36361,7 @@ function QueryReportTable({
|
|
|
36329
36361
|
);
|
|
36330
36362
|
const handleExport = () => {
|
|
36331
36363
|
exportToCSV(data, columns, exportFilename);
|
|
36332
|
-
_optionalChain([onExport, 'optionalCall',
|
|
36364
|
+
_optionalChain([onExport, 'optionalCall', _683 => _683()]);
|
|
36333
36365
|
};
|
|
36334
36366
|
const tableMinWidth = columns.length * (columnWidth + 16);
|
|
36335
36367
|
const {
|
|
@@ -36502,7 +36534,7 @@ function DataTableColumnFilter({
|
|
|
36502
36534
|
align = "left"
|
|
36503
36535
|
}) {
|
|
36504
36536
|
const currentValue = column.getFilterValue();
|
|
36505
|
-
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess',
|
|
36537
|
+
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _684 => _684.length]), () => ( 0));
|
|
36506
36538
|
const sections = _react.useMemo.call(void 0,
|
|
36507
36539
|
() => [
|
|
36508
36540
|
{
|
|
@@ -36582,7 +36614,7 @@ function DataTableHeader({
|
|
|
36582
36614
|
const hasVisibleHeaderCell = headerGroup.headers.some((header) => {
|
|
36583
36615
|
if (header.isPlaceholder) return false;
|
|
36584
36616
|
if (isLgUp) return true;
|
|
36585
|
-
return Boolean(_optionalChain([header, 'access',
|
|
36617
|
+
return Boolean(_optionalChain([header, 'access', _685 => _685.column, 'access', _686 => _686.columnDef, 'access', _687 => _687.meta, 'optionalAccess', _688 => _688.filter]));
|
|
36586
36618
|
});
|
|
36587
36619
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36588
36620
|
"div",
|
|
@@ -36612,20 +36644,20 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
|
|
|
36612
36644
|
if (header.isPlaceholder) return null;
|
|
36613
36645
|
const column = header.column;
|
|
36614
36646
|
const meta = column.columnDef.meta;
|
|
36615
|
-
const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess',
|
|
36616
|
-
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
36617
|
-
const canSort = _optionalChain([meta, 'optionalAccess',
|
|
36618
|
-
const sortDir = _optionalChain([sort, 'optionalAccess',
|
|
36647
|
+
const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess', _689 => _689.filter]));
|
|
36648
|
+
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _690 => _690.align]), () => ( "left"));
|
|
36649
|
+
const canSort = _optionalChain([meta, 'optionalAccess', _691 => _691.sortable]) === true;
|
|
36650
|
+
const sortDir = _optionalChain([sort, 'optionalAccess', _692 => _692.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
|
|
36619
36651
|
if (!isLgUp && !hasFilter) return null;
|
|
36620
36652
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36621
36653
|
"div",
|
|
36622
36654
|
{
|
|
36623
36655
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
36624
36656
|
"flex items-stretch",
|
|
36625
|
-
isLgUp && (_optionalChain([meta, 'optionalAccess',
|
|
36626
|
-
_optionalChain([meta, 'optionalAccess',
|
|
36657
|
+
isLgUp && (_optionalChain([meta, 'optionalAccess', _693 => _693.width]) || "flex-1 min-w-0"),
|
|
36658
|
+
_optionalChain([meta, 'optionalAccess', _694 => _694.headerClassName]),
|
|
36627
36659
|
// Don't apply hide classes if column is filterable on tablet (keep filter accessible)
|
|
36628
|
-
!(hasFilter && !isLgUp) && getHideClasses2(_optionalChain([meta, 'optionalAccess',
|
|
36660
|
+
!(hasFilter && !isLgUp) && getHideClasses2(_optionalChain([meta, 'optionalAccess', _695 => _695.hideAt]))
|
|
36629
36661
|
),
|
|
36630
36662
|
children: hasFilter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36631
36663
|
DataTableColumnFilter,
|
|
@@ -36644,7 +36676,7 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
|
|
|
36644
36676
|
isLgUp && alignJustify(align),
|
|
36645
36677
|
canSort && "group cursor-pointer"
|
|
36646
36678
|
),
|
|
36647
|
-
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall',
|
|
36679
|
+
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _696 => _696(column.id)]) : void 0,
|
|
36648
36680
|
children: [
|
|
36649
36681
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
36650
36682
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -36709,7 +36741,7 @@ function DataTableSkeleton({
|
|
|
36709
36741
|
}) {
|
|
36710
36742
|
const table = useDataTableContext();
|
|
36711
36743
|
const columns = table.getVisibleFlatColumns();
|
|
36712
|
-
const firstColumnId = _optionalChain([columns, 'access',
|
|
36744
|
+
const firstColumnId = _optionalChain([columns, 'access', _697 => _697[0], 'optionalAccess', _698 => _698.id]);
|
|
36713
36745
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
36714
36746
|
"div",
|
|
36715
36747
|
{
|
|
@@ -36733,7 +36765,7 @@ function DataTableSkeleton({
|
|
|
36733
36765
|
{
|
|
36734
36766
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
36735
36767
|
"flex flex-col justify-center shrink-0",
|
|
36736
|
-
_optionalChain([meta, 'optionalAccess',
|
|
36768
|
+
_optionalChain([meta, 'optionalAccess', _699 => _699.width]) || "flex-1"
|
|
36737
36769
|
),
|
|
36738
36770
|
children: [
|
|
36739
36771
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-5 bg-ods-bg-surface rounded-sm w-3/4 mb-[var(--spacing-system-xxs)]" }),
|
|
@@ -36782,7 +36814,7 @@ function DataTableRowImpl({
|
|
|
36782
36814
|
const handleClick = _react.useCallback.call(void 0,
|
|
36783
36815
|
(e) => {
|
|
36784
36816
|
const target = e.target;
|
|
36785
|
-
if (!_optionalChain([containerRef, 'access',
|
|
36817
|
+
if (!_optionalChain([containerRef, 'access', _700 => _700.current, 'optionalAccess', _701 => _701.contains, 'call', _702 => _702(target)])) {
|
|
36786
36818
|
if (isLinkMode) e.preventDefault();
|
|
36787
36819
|
return;
|
|
36788
36820
|
}
|
|
@@ -36790,7 +36822,7 @@ function DataTableRowImpl({
|
|
|
36790
36822
|
if (isLinkMode) e.preventDefault();
|
|
36791
36823
|
return;
|
|
36792
36824
|
}
|
|
36793
|
-
_optionalChain([onClick, 'optionalCall',
|
|
36825
|
+
_optionalChain([onClick, 'optionalCall', _703 => _703(row.original)]);
|
|
36794
36826
|
},
|
|
36795
36827
|
[onClick, row.original, isLinkMode]
|
|
36796
36828
|
);
|
|
@@ -36815,10 +36847,10 @@ function DataTableRowImpl({
|
|
|
36815
36847
|
{
|
|
36816
36848
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
36817
36849
|
"flex flex-col overflow-hidden",
|
|
36818
|
-
alignJustify(_optionalChain([meta, 'optionalAccess',
|
|
36819
|
-
_optionalChain([meta, 'optionalAccess',
|
|
36820
|
-
_optionalChain([meta, 'optionalAccess',
|
|
36821
|
-
getHideClasses2(_optionalChain([meta, 'optionalAccess',
|
|
36850
|
+
alignJustify(_optionalChain([meta, 'optionalAccess', _704 => _704.align])),
|
|
36851
|
+
_optionalChain([meta, 'optionalAccess', _705 => _705.width]) || "flex-1 min-w-0",
|
|
36852
|
+
_optionalChain([meta, 'optionalAccess', _706 => _706.cellClassName]),
|
|
36853
|
+
getHideClasses2(_optionalChain([meta, 'optionalAccess', _707 => _707.hideAt]))
|
|
36822
36854
|
),
|
|
36823
36855
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CellContent, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) })
|
|
36824
36856
|
},
|
|
@@ -36897,7 +36929,7 @@ function DataTableBody({
|
|
|
36897
36929
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex flex-col gap-[var(--spacing-system-xsf)] w-full", className), children: [
|
|
36898
36930
|
rows.map((row, index) => {
|
|
36899
36931
|
const item = row.original;
|
|
36900
|
-
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall',
|
|
36932
|
+
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _708 => _708(item)]), () => ( void 0));
|
|
36901
36933
|
const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
|
|
36902
36934
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36903
36935
|
DataTableRow,
|
|
@@ -36907,7 +36939,7 @@ function DataTableBody({
|
|
|
36907
36939
|
href,
|
|
36908
36940
|
compact,
|
|
36909
36941
|
className: cls,
|
|
36910
|
-
subRow: _optionalChain([renderSubRow, 'optionalCall',
|
|
36942
|
+
subRow: _optionalChain([renderSubRow, 'optionalCall', _709 => _709(item)])
|
|
36911
36943
|
},
|
|
36912
36944
|
row.id
|
|
36913
36945
|
);
|
|
@@ -36962,7 +36994,7 @@ function DataTableInfiniteFooter({
|
|
|
36962
36994
|
if (!sentinel) return;
|
|
36963
36995
|
const observer = new IntersectionObserver(
|
|
36964
36996
|
(entries) => {
|
|
36965
|
-
if (_optionalChain([entries, 'access',
|
|
36997
|
+
if (_optionalChain([entries, 'access', _710 => _710[0], 'optionalAccess', _711 => _711.isIntersecting])) onLoadMoreRef.current();
|
|
36966
36998
|
},
|
|
36967
36999
|
{ rootMargin }
|
|
36968
37000
|
);
|
|
@@ -37010,7 +37042,7 @@ function DataTableRowCount({
|
|
|
37010
37042
|
const table = useDataTableContext();
|
|
37011
37043
|
const count = _nullishCoalesce(totalCount, () => ( table.getRowModel().rows.length));
|
|
37012
37044
|
if (hideWhenEmpty && count === 0) return null;
|
|
37013
|
-
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall',
|
|
37045
|
+
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _712 => _712(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
|
|
37014
37046
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
37015
37047
|
"span",
|
|
37016
37048
|
{
|
|
@@ -37169,7 +37201,7 @@ function SearchInput({
|
|
|
37169
37201
|
if (!showHiddenTags) return;
|
|
37170
37202
|
const handleClick = (e) => {
|
|
37171
37203
|
const target = e.target;
|
|
37172
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
37204
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _713 => _713.current, 'optionalAccess', _714 => _714.contains, 'call', _715 => _715(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _716 => _716.current, 'optionalAccess', _717 => _717.contains, 'call', _718 => _718(target)])) {
|
|
37173
37205
|
setShowHiddenTags(false);
|
|
37174
37206
|
}
|
|
37175
37207
|
};
|
|
@@ -37217,10 +37249,10 @@ function SearchInput({
|
|
|
37217
37249
|
} else {
|
|
37218
37250
|
setInternalValue("");
|
|
37219
37251
|
}
|
|
37220
|
-
_optionalChain([inputRef, 'access',
|
|
37252
|
+
_optionalChain([inputRef, 'access', _719 => _719.current, 'optionalAccess', _720 => _720.focus, 'call', _721 => _721()]);
|
|
37221
37253
|
};
|
|
37222
37254
|
const handleResultClick = (result, e) => {
|
|
37223
|
-
_optionalChain([onResultSelect, 'optionalCall',
|
|
37255
|
+
_optionalChain([onResultSelect, 'optionalCall', _722 => _722(
|
|
37224
37256
|
result,
|
|
37225
37257
|
e ? {
|
|
37226
37258
|
metaKey: e.metaKey,
|
|
@@ -37252,7 +37284,7 @@ function SearchInput({
|
|
|
37252
37284
|
if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
|
|
37253
37285
|
handleResultClick(flatResults[highlightedIndex]);
|
|
37254
37286
|
} else {
|
|
37255
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
37287
|
+
_optionalChain([onSubmit, 'optionalCall', _723 => _723(currentValue)]);
|
|
37256
37288
|
}
|
|
37257
37289
|
break;
|
|
37258
37290
|
case "Escape":
|
|
@@ -37330,7 +37362,7 @@ function SearchInput({
|
|
|
37330
37362
|
dropdownVisible && "!border-ods-accent"
|
|
37331
37363
|
),
|
|
37332
37364
|
onClick: () => {
|
|
37333
|
-
_optionalChain([inputRef, 'access',
|
|
37365
|
+
_optionalChain([inputRef, 'access', _724 => _724.current, 'optionalAccess', _725 => _725.focus, 'call', _726 => _726()]);
|
|
37334
37366
|
setIsOpen(true);
|
|
37335
37367
|
},
|
|
37336
37368
|
children: [
|
|
@@ -37414,10 +37446,10 @@ function SearchInput({
|
|
|
37414
37446
|
align: "start",
|
|
37415
37447
|
onOpenAutoFocus: (e) => {
|
|
37416
37448
|
e.preventDefault();
|
|
37417
|
-
_optionalChain([inputRef, 'access',
|
|
37449
|
+
_optionalChain([inputRef, 'access', _727 => _727.current, 'optionalAccess', _728 => _728.focus, 'call', _729 => _729()]);
|
|
37418
37450
|
},
|
|
37419
37451
|
onInteractOutside: (e) => {
|
|
37420
|
-
if (_optionalChain([containerRef, 'access',
|
|
37452
|
+
if (_optionalChain([containerRef, 'access', _730 => _730.current, 'optionalAccess', _731 => _731.contains, 'call', _732 => _732(e.target)])) {
|
|
37421
37453
|
e.preventDefault();
|
|
37422
37454
|
}
|
|
37423
37455
|
},
|
|
@@ -37434,10 +37466,10 @@ function SearchInput({
|
|
|
37434
37466
|
ref: hiddenTagsPopupRef,
|
|
37435
37467
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
37436
37468
|
style: {
|
|
37437
|
-
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([containerRef, 'access',
|
|
37469
|
+
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([containerRef, 'access', _733 => _733.current, 'optionalAccess', _734 => _734.getBoundingClientRect, 'call', _735 => _735(), 'access', _736 => _736.left]), () => ( 0))) : 0
|
|
37438
37470
|
},
|
|
37439
37471
|
onRemove: (value2) => {
|
|
37440
|
-
_optionalChain([onFilterRemove, 'optionalCall',
|
|
37472
|
+
_optionalChain([onFilterRemove, 'optionalCall', _737 => _737(value2)]);
|
|
37441
37473
|
if (hiddenCount <= 1) setShowHiddenTags(false);
|
|
37442
37474
|
}
|
|
37443
37475
|
}
|
|
@@ -37488,7 +37520,7 @@ function FilterListItem({
|
|
|
37488
37520
|
}) {
|
|
37489
37521
|
const handleToggle = () => {
|
|
37490
37522
|
if (disabled) return;
|
|
37491
|
-
_optionalChain([onToggle, 'optionalCall',
|
|
37523
|
+
_optionalChain([onToggle, 'optionalCall', _738 => _738(!selected)]);
|
|
37492
37524
|
};
|
|
37493
37525
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
37494
37526
|
"div",
|
|
@@ -37535,7 +37567,7 @@ function FilterListItem({
|
|
|
37535
37567
|
CheckboxPrimitive4.Root,
|
|
37536
37568
|
{
|
|
37537
37569
|
checked: selected,
|
|
37538
|
-
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall',
|
|
37570
|
+
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _739 => _739(c === true)]),
|
|
37539
37571
|
onClick: (e) => e.stopPropagation(),
|
|
37540
37572
|
disabled,
|
|
37541
37573
|
"aria-label": title,
|
|
@@ -37634,7 +37666,7 @@ function TagSearchInput({
|
|
|
37634
37666
|
if (!showHiddenTags) return;
|
|
37635
37667
|
const handleClick = (e) => {
|
|
37636
37668
|
const target = e.target;
|
|
37637
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
37669
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _740 => _740.current, 'optionalAccess', _741 => _741.contains, 'call', _742 => _742(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _743 => _743.current, 'optionalAccess', _744 => _744.contains, 'call', _745 => _745(target)])) {
|
|
37638
37670
|
setShowHiddenTags(false);
|
|
37639
37671
|
}
|
|
37640
37672
|
};
|
|
@@ -37650,13 +37682,13 @@ function TagSearchInput({
|
|
|
37650
37682
|
e.preventDefault();
|
|
37651
37683
|
onSubmit(searchValue);
|
|
37652
37684
|
}
|
|
37653
|
-
_optionalChain([onKeyDown, 'optionalCall',
|
|
37685
|
+
_optionalChain([onKeyDown, 'optionalCall', _746 => _746(e)]);
|
|
37654
37686
|
};
|
|
37655
37687
|
const handleClearAll = (e) => {
|
|
37656
37688
|
e.stopPropagation();
|
|
37657
37689
|
e.preventDefault();
|
|
37658
|
-
_optionalChain([onClearAll, 'optionalCall',
|
|
37659
|
-
_optionalChain([inputRef, 'access',
|
|
37690
|
+
_optionalChain([onClearAll, 'optionalCall', _747 => _747()]);
|
|
37691
|
+
_optionalChain([inputRef, 'access', _748 => _748.current, 'optionalAccess', _749 => _749.focus, 'call', _750 => _750()]);
|
|
37660
37692
|
};
|
|
37661
37693
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: wrapperRef, className: "relative", children: [
|
|
37662
37694
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -37673,7 +37705,7 @@ function TagSearchInput({
|
|
|
37673
37705
|
className
|
|
37674
37706
|
),
|
|
37675
37707
|
onClick: () => {
|
|
37676
|
-
if (!disabled) _optionalChain([inputRef, 'access',
|
|
37708
|
+
if (!disabled) _optionalChain([inputRef, 'access', _751 => _751.current, 'optionalAccess', _752 => _752.focus, 'call', _753 => _753()]);
|
|
37677
37709
|
},
|
|
37678
37710
|
children: [
|
|
37679
37711
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 flex items-center pl-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, { className: "text-ods-text-secondary size-4 md:size-6" }) }),
|
|
@@ -37745,7 +37777,7 @@ function TagSearchInput({
|
|
|
37745
37777
|
items: hiddenTags,
|
|
37746
37778
|
disabled,
|
|
37747
37779
|
style: {
|
|
37748
|
-
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access',
|
|
37780
|
+
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access', _754 => _754.current, 'optionalAccess', _755 => _755.getBoundingClientRect, 'call', _756 => _756(), 'access', _757 => _757.left]), () => ( 0))) : 0
|
|
37749
37781
|
},
|
|
37750
37782
|
onRemove: (value) => {
|
|
37751
37783
|
onTagRemove(value);
|
|
@@ -37846,7 +37878,7 @@ function MarkdownEditor({
|
|
|
37846
37878
|
const [defaultExtraCommands, setDefaultExtraCommands] = _react.useState.call(void 0, []);
|
|
37847
37879
|
_react.useEffect.call(void 0, () => {
|
|
37848
37880
|
Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor"))).then((mod) => {
|
|
37849
|
-
if (_optionalChain([mod, 'access',
|
|
37881
|
+
if (_optionalChain([mod, 'access', _758 => _758.commands, 'optionalAccess', _759 => _759.getExtraCommands])) {
|
|
37850
37882
|
setDefaultExtraCommands(mod.commands.getExtraCommands());
|
|
37851
37883
|
}
|
|
37852
37884
|
});
|
|
@@ -37880,7 +37912,7 @@ function MarkdownEditor({
|
|
|
37880
37912
|
const isImage = file.type.startsWith("image/");
|
|
37881
37913
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
37882
37914
|
insertTextAtCursor(markdown);
|
|
37883
|
-
_optionalChain([onFileUploaded, 'optionalCall',
|
|
37915
|
+
_optionalChain([onFileUploaded, 'optionalCall', _760 => _760(url, file.name)]);
|
|
37884
37916
|
} catch (error) {
|
|
37885
37917
|
console.error("File upload failed:", error);
|
|
37886
37918
|
setUploadProgress("Upload failed. Please try again.");
|
|
@@ -37893,7 +37925,7 @@ function MarkdownEditor({
|
|
|
37893
37925
|
);
|
|
37894
37926
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
37895
37927
|
(e) => {
|
|
37896
|
-
const file = _optionalChain([e, 'access',
|
|
37928
|
+
const file = _optionalChain([e, 'access', _761 => _761.target, 'access', _762 => _762.files, 'optionalAccess', _763 => _763[0]]);
|
|
37897
37929
|
if (file) {
|
|
37898
37930
|
handleFileUpload(file);
|
|
37899
37931
|
e.target.value = "";
|
|
@@ -37904,7 +37936,7 @@ function MarkdownEditor({
|
|
|
37904
37936
|
const handlePaste = _react.useCallback.call(void 0,
|
|
37905
37937
|
(e) => {
|
|
37906
37938
|
if (!onUploadFile) return;
|
|
37907
|
-
const items = _optionalChain([e, 'access',
|
|
37939
|
+
const items = _optionalChain([e, 'access', _764 => _764.clipboardData, 'optionalAccess', _765 => _765.items]);
|
|
37908
37940
|
if (!items) return;
|
|
37909
37941
|
for (const item of items) {
|
|
37910
37942
|
if (item.type.startsWith("image/")) {
|
|
@@ -37929,7 +37961,7 @@ function MarkdownEditor({
|
|
|
37929
37961
|
buttonProps: { "aria-label": "Upload file", title: "Upload file" },
|
|
37930
37962
|
icon: isUploading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "w-3 h-3 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "w-3 h-3" }),
|
|
37931
37963
|
execute: () => {
|
|
37932
|
-
_optionalChain([fileInputRef, 'access',
|
|
37964
|
+
_optionalChain([fileInputRef, 'access', _766 => _766.current, 'optionalAccess', _767 => _767.click, 'call', _768 => _768()]);
|
|
37933
37965
|
}
|
|
37934
37966
|
} : null;
|
|
37935
37967
|
const extraCommands = uploadCommand ? [...defaultExtraCommands, uploadCommand] : defaultExtraCommands;
|
|
@@ -37941,7 +37973,7 @@ function MarkdownEditor({
|
|
|
37941
37973
|
const EDGE_ZONE = 60;
|
|
37942
37974
|
const MAX_SCROLL_SPEED = 15;
|
|
37943
37975
|
const findScrollParent = _react.useCallback.call(void 0, (el) => {
|
|
37944
|
-
let node = _optionalChain([el, 'optionalAccess',
|
|
37976
|
+
let node = _optionalChain([el, 'optionalAccess', _769 => _769.parentElement]);
|
|
37945
37977
|
while (node && node !== document.documentElement) {
|
|
37946
37978
|
const { overflowY } = window.getComputedStyle(node);
|
|
37947
37979
|
if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) {
|
|
@@ -38084,7 +38116,7 @@ function matchesAccept(file, accept) {
|
|
|
38084
38116
|
});
|
|
38085
38117
|
}
|
|
38086
38118
|
function dragHasFiles(e) {
|
|
38087
|
-
const types = _optionalChain([e, 'access',
|
|
38119
|
+
const types = _optionalChain([e, 'access', _770 => _770.dataTransfer, 'optionalAccess', _771 => _771.types]);
|
|
38088
38120
|
if (!types) return false;
|
|
38089
38121
|
for (let i = 0; i < types.length; i++) {
|
|
38090
38122
|
if (types[i] === "Files") return true;
|
|
@@ -38180,7 +38212,7 @@ function FileUpload({
|
|
|
38180
38212
|
e.stopPropagation();
|
|
38181
38213
|
setDragActive(false);
|
|
38182
38214
|
if (disabled) return;
|
|
38183
|
-
if (_optionalChain([e, 'access',
|
|
38215
|
+
if (_optionalChain([e, 'access', _772 => _772.dataTransfer, 'access', _773 => _773.files, 'optionalAccess', _774 => _774.length])) {
|
|
38184
38216
|
handleFiles(e.dataTransfer.files);
|
|
38185
38217
|
}
|
|
38186
38218
|
};
|
|
@@ -38208,7 +38240,7 @@ function FileUpload({
|
|
|
38208
38240
|
e.preventDefault();
|
|
38209
38241
|
dragCounter = 0;
|
|
38210
38242
|
setDragActive(false);
|
|
38211
|
-
if (_optionalChain([e, 'access',
|
|
38243
|
+
if (_optionalChain([e, 'access', _775 => _775.dataTransfer, 'optionalAccess', _776 => _776.files, 'optionalAccess', _777 => _777.length])) {
|
|
38212
38244
|
handleFilesRef.current(e.dataTransfer.files);
|
|
38213
38245
|
}
|
|
38214
38246
|
};
|
|
@@ -38230,7 +38262,7 @@ function FileUpload({
|
|
|
38230
38262
|
};
|
|
38231
38263
|
}, [acceptWindowDrops, disabled]);
|
|
38232
38264
|
const handleFileSelect = (e) => {
|
|
38233
|
-
if (_optionalChain([e, 'access',
|
|
38265
|
+
if (_optionalChain([e, 'access', _778 => _778.target, 'access', _779 => _779.files, 'optionalAccess', _780 => _780.length])) {
|
|
38234
38266
|
handleFiles(e.target.files);
|
|
38235
38267
|
}
|
|
38236
38268
|
};
|
|
@@ -38247,7 +38279,7 @@ function FileUpload({
|
|
|
38247
38279
|
};
|
|
38248
38280
|
const openDialog = async () => {
|
|
38249
38281
|
if (disabled) return;
|
|
38250
|
-
_optionalChain([fileInputRef, 'access',
|
|
38282
|
+
_optionalChain([fileInputRef, 'access', _781 => _781.current, 'optionalAccess', _782 => _782.click, 'call', _783 => _783()]);
|
|
38251
38283
|
};
|
|
38252
38284
|
const displayError = error || validationError || void 0;
|
|
38253
38285
|
const hasFiles = isManaged ? managedFiles.length > 0 : files.length > 0;
|
|
@@ -38309,7 +38341,7 @@ function FileUpload({
|
|
|
38309
38341
|
"button",
|
|
38310
38342
|
{
|
|
38311
38343
|
type: "button",
|
|
38312
|
-
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall',
|
|
38344
|
+
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _784 => _784(entry.id)]),
|
|
38313
38345
|
className: "shrink-0 text-ods-error hover:opacity-80 transition-opacity",
|
|
38314
38346
|
"aria-label": `Remove ${entry.fileName}`,
|
|
38315
38347
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.TrashIcon, { className: "size-6" })
|
|
@@ -38440,7 +38472,7 @@ function ImageUploader({
|
|
|
38440
38472
|
onChange(file);
|
|
38441
38473
|
};
|
|
38442
38474
|
const handleFileSelect = (e) => {
|
|
38443
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
38475
|
+
validateAndEmit(_optionalChain([e, 'access', _785 => _785.target, 'access', _786 => _786.files, 'optionalAccess', _787 => _787[0]]));
|
|
38444
38476
|
if (inputRef.current) inputRef.current.value = "";
|
|
38445
38477
|
};
|
|
38446
38478
|
const handleDrag = (e) => {
|
|
@@ -38455,11 +38487,11 @@ function ImageUploader({
|
|
|
38455
38487
|
e.stopPropagation();
|
|
38456
38488
|
setDragActive(false);
|
|
38457
38489
|
if (!interactive) return;
|
|
38458
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
38490
|
+
validateAndEmit(_optionalChain([e, 'access', _788 => _788.dataTransfer, 'access', _789 => _789.files, 'optionalAccess', _790 => _790[0]]));
|
|
38459
38491
|
};
|
|
38460
38492
|
const openDialog = () => {
|
|
38461
38493
|
if (!interactive) return;
|
|
38462
|
-
_optionalChain([inputRef, 'access',
|
|
38494
|
+
_optionalChain([inputRef, 'access', _791 => _791.current, 'optionalAccess', _792 => _792.click, 'call', _793 => _793()]);
|
|
38463
38495
|
};
|
|
38464
38496
|
const handleRootKeyDown = (e) => {
|
|
38465
38497
|
if (hasImage || !interactive) return;
|
|
@@ -38650,8 +38682,8 @@ function ColorPresetSelect({
|
|
|
38650
38682
|
}) {
|
|
38651
38683
|
const selectedPreset = presets.find((p) => p.key === presetKey);
|
|
38652
38684
|
const isCustom = !selectedPreset;
|
|
38653
|
-
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
38654
|
-
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
38685
|
+
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _794 => _794.label]), () => ( "Custom"));
|
|
38686
|
+
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _795 => _795.color]), () => ( value));
|
|
38655
38687
|
const groups = [
|
|
38656
38688
|
{
|
|
38657
38689
|
items: [
|
|
@@ -38941,7 +38973,7 @@ function TicketStatusConfigRow({
|
|
|
38941
38973
|
_chunkQJGRP2YEcjs.Input,
|
|
38942
38974
|
{
|
|
38943
38975
|
value: name,
|
|
38944
|
-
onChange: (e) => _optionalChain([onNameChange, 'optionalCall',
|
|
38976
|
+
onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _796 => _796(e.target.value)]),
|
|
38945
38977
|
disabled: isSystem,
|
|
38946
38978
|
readOnly: isSystem,
|
|
38947
38979
|
"aria-label": "Status name",
|
|
@@ -39314,14 +39346,14 @@ function TicketInfoSection({
|
|
|
39314
39346
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39315
39347
|
SquareAvatar,
|
|
39316
39348
|
{
|
|
39317
|
-
src: _optionalChain([organization, 'optionalAccess',
|
|
39318
|
-
alt: _optionalChain([organization, 'optionalAccess',
|
|
39319
|
-
fallback: _optionalChain([organization, 'optionalAccess',
|
|
39349
|
+
src: _optionalChain([organization, 'optionalAccess', _797 => _797.imageSrc]),
|
|
39350
|
+
alt: _optionalChain([organization, 'optionalAccess', _798 => _798.name]),
|
|
39351
|
+
fallback: _optionalChain([organization, 'optionalAccess', _799 => _799.name]) || "Org",
|
|
39320
39352
|
size: "md",
|
|
39321
39353
|
className: "shrink-0"
|
|
39322
39354
|
}
|
|
39323
39355
|
),
|
|
39324
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess',
|
|
39356
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess', _800 => _800.name]) || "Unassigned", label: "Organization" })
|
|
39325
39357
|
] }),
|
|
39326
39358
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: assigned ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39327
39359
|
AssigneeDropdown,
|
|
@@ -39342,10 +39374,10 @@ function TicketInfoSection({
|
|
|
39342
39374
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39343
39375
|
InfoCell2,
|
|
39344
39376
|
{
|
|
39345
|
-
value: _optionalChain([device, 'optionalAccess',
|
|
39377
|
+
value: _optionalChain([device, 'optionalAccess', _801 => _801.name]) || "Unassigned",
|
|
39346
39378
|
label: "Device",
|
|
39347
|
-
icon: _optionalChain([device, 'optionalAccess',
|
|
39348
|
-
onClick: _optionalChain([device, 'optionalAccess',
|
|
39379
|
+
icon: _optionalChain([device, 'optionalAccess', _802 => _802.icon]),
|
|
39380
|
+
onClick: _optionalChain([device, 'optionalAccess', _803 => _803.onClick])
|
|
39349
39381
|
}
|
|
39350
39382
|
),
|
|
39351
39383
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-4 min-w-0", children: [
|
|
@@ -39675,7 +39707,7 @@ function RoadmapCard({
|
|
|
39675
39707
|
const compactHref = safeHref(_nullishCoalesce(href, () => ( null)));
|
|
39676
39708
|
const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
|
|
39677
39709
|
const hasFigma = !!item.figmaUrl;
|
|
39678
|
-
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access',
|
|
39710
|
+
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _804 => _804.screenshots, 'optionalAccess', _805 => _805.length]), () => ( 0))) > 0;
|
|
39679
39711
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
39680
39712
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
39681
39713
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -39694,7 +39726,7 @@ function RoadmapCard({
|
|
|
39694
39726
|
unoptimized: true,
|
|
39695
39727
|
className: "h-8 w-8 object-contain"
|
|
39696
39728
|
}
|
|
39697
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[10px] font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
39729
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[10px] font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _806 => _806.title, 'optionalAccess', _807 => _807.substring, 'call', _808 => _808(0, 2)]) || "??" })
|
|
39698
39730
|
}
|
|
39699
39731
|
),
|
|
39700
39732
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -39769,7 +39801,7 @@ function RoadmapCard({
|
|
|
39769
39801
|
unoptimized: true,
|
|
39770
39802
|
className: "object-contain p-1"
|
|
39771
39803
|
}
|
|
39772
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
39804
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _809 => _809.title, 'optionalAccess', _810 => _810.substring, 'call', _811 => _811(0, 2)]) || "??" }) }),
|
|
39773
39805
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 flex flex-col", children: [
|
|
39774
39806
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[48px] flex items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-h3 text-ods-text-primary tracking-[-0.36px] flex-1 line-clamp-2", children: item.title }) }),
|
|
39775
39807
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[20px] flex items-center", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-h5 text-ods-text-secondary uppercase tracking-[-0.28px] truncate", children: [
|
|
@@ -40279,7 +40311,7 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
40279
40311
|
] }) : null,
|
|
40280
40312
|
item.preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-2 whitespace-pre-wrap break-words text-[13px] leading-5 text-ods-text-secondary", children: item.preview }) }) : null
|
|
40281
40313
|
] }),
|
|
40282
|
-
_optionalChain([anchorProps, 'optionalAccess',
|
|
40314
|
+
_optionalChain([anchorProps, 'optionalAccess', _812 => _812.href]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex shrink-0 items-center self-start h-5 text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "w-3.5 h-3.5" }) }) : null
|
|
40283
40315
|
] });
|
|
40284
40316
|
if (!anchorProps) {
|
|
40285
40317
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
@@ -40349,7 +40381,7 @@ function getDefaultOptions() {
|
|
|
40349
40381
|
// node_modules/date-fns/startOfWeek.mjs
|
|
40350
40382
|
function startOfWeek(date, options) {
|
|
40351
40383
|
const defaultOptions2 = getDefaultOptions();
|
|
40352
|
-
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
40384
|
+
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _813 => _813.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _814 => _814.locale, 'optionalAccess', _815 => _815.options, 'optionalAccess', _816 => _816.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _817 => _817.locale, 'optionalAccess', _818 => _818.options, 'optionalAccess', _819 => _819.weekStartsOn]))), () => ( 0));
|
|
40353
40385
|
const _date = toDate(date);
|
|
40354
40386
|
const day = _date.getDay();
|
|
40355
40387
|
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
@@ -40524,7 +40556,7 @@ var formatDistance = (token, count, options) => {
|
|
|
40524
40556
|
} else {
|
|
40525
40557
|
result = tokenValue.other.replace("{{count}}", count.toString());
|
|
40526
40558
|
}
|
|
40527
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
40559
|
+
if (_optionalChain([options, 'optionalAccess', _820 => _820.addSuffix])) {
|
|
40528
40560
|
if (options.comparison && options.comparison > 0) {
|
|
40529
40561
|
return "in " + result;
|
|
40530
40562
|
} else {
|
|
@@ -40591,15 +40623,15 @@ var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale
|
|
|
40591
40623
|
// node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs
|
|
40592
40624
|
function buildLocalizeFn(args) {
|
|
40593
40625
|
return (value, options) => {
|
|
40594
|
-
const context = _optionalChain([options, 'optionalAccess',
|
|
40626
|
+
const context = _optionalChain([options, 'optionalAccess', _821 => _821.context]) ? String(options.context) : "standalone";
|
|
40595
40627
|
let valuesArray;
|
|
40596
40628
|
if (context === "formatting" && args.formattingValues) {
|
|
40597
40629
|
const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
|
40598
|
-
const width = _optionalChain([options, 'optionalAccess',
|
|
40630
|
+
const width = _optionalChain([options, 'optionalAccess', _822 => _822.width]) ? String(options.width) : defaultWidth;
|
|
40599
40631
|
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
|
|
40600
40632
|
} else {
|
|
40601
40633
|
const defaultWidth = args.defaultWidth;
|
|
40602
|
-
const width = _optionalChain([options, 'optionalAccess',
|
|
40634
|
+
const width = _optionalChain([options, 'optionalAccess', _823 => _823.width]) ? String(options.width) : args.defaultWidth;
|
|
40603
40635
|
valuesArray = args.values[width] || args.values[defaultWidth];
|
|
40604
40636
|
}
|
|
40605
40637
|
const index = args.argumentCallback ? args.argumentCallback(value) : value;
|
|
@@ -40979,7 +41011,7 @@ function getWeekYear(date, options) {
|
|
|
40979
41011
|
const _date = toDate(date);
|
|
40980
41012
|
const year = _date.getFullYear();
|
|
40981
41013
|
const defaultOptions2 = getDefaultOptions();
|
|
40982
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
41014
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _824 => _824.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _825 => _825.locale, 'optionalAccess', _826 => _826.options, 'optionalAccess', _827 => _827.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _828 => _828.locale, 'optionalAccess', _829 => _829.options, 'optionalAccess', _830 => _830.firstWeekContainsDate]))), () => ( 1));
|
|
40983
41015
|
const firstWeekOfNextYear = constructFrom(date, 0);
|
|
40984
41016
|
firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
|
|
40985
41017
|
firstWeekOfNextYear.setHours(0, 0, 0, 0);
|
|
@@ -41000,7 +41032,7 @@ function getWeekYear(date, options) {
|
|
|
41000
41032
|
// node_modules/date-fns/startOfWeekYear.mjs
|
|
41001
41033
|
function startOfWeekYear(date, options) {
|
|
41002
41034
|
const defaultOptions2 = getDefaultOptions();
|
|
41003
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
41035
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _831 => _831.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _832 => _832.locale, 'optionalAccess', _833 => _833.options, 'optionalAccess', _834 => _834.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _835 => _835.locale, 'optionalAccess', _836 => _836.options, 'optionalAccess', _837 => _837.firstWeekContainsDate]))), () => ( 1));
|
|
41004
41036
|
const year = getWeekYear(date, options);
|
|
41005
41037
|
const firstWeek = constructFrom(date, 0);
|
|
41006
41038
|
firstWeek.setFullYear(year, 0, firstWeekContainsDate);
|
|
@@ -41815,9 +41847,9 @@ var doubleQuoteRegExp = /''/g;
|
|
|
41815
41847
|
var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
41816
41848
|
function format(date, formatStr, options) {
|
|
41817
41849
|
const defaultOptions2 = getDefaultOptions();
|
|
41818
|
-
const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
41819
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
41820
|
-
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
41850
|
+
const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _838 => _838.locale]), () => ( defaultOptions2.locale)), () => ( enUS));
|
|
41851
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _839 => _839.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _840 => _840.locale, 'optionalAccess', _841 => _841.options, 'optionalAccess', _842 => _842.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _843 => _843.locale, 'optionalAccess', _844 => _844.options, 'optionalAccess', _845 => _845.firstWeekContainsDate]))), () => ( 1));
|
|
41852
|
+
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _846 => _846.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _847 => _847.locale, 'optionalAccess', _848 => _848.options, 'optionalAccess', _849 => _849.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _850 => _850.locale, 'optionalAccess', _851 => _851.options, 'optionalAccess', _852 => _852.weekStartsOn]))), () => ( 0));
|
|
41821
41853
|
const originalDate = toDate(date);
|
|
41822
41854
|
if (!isValid(originalDate)) {
|
|
41823
41855
|
throw new RangeError("Invalid time value");
|
|
@@ -41858,7 +41890,7 @@ function format(date, formatStr, options) {
|
|
|
41858
41890
|
return parts.map((part) => {
|
|
41859
41891
|
if (!part.isToken) return part.value;
|
|
41860
41892
|
const token = part.value;
|
|
41861
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
41893
|
+
if (!_optionalChain([options, 'optionalAccess', _853 => _853.useAdditionalWeekYearTokens]) && isProtectedWeekYearToken(token) || !_optionalChain([options, 'optionalAccess', _854 => _854.useAdditionalDayOfYearTokens]) && isProtectedDayOfYearToken(token)) {
|
|
41862
41894
|
warnOrThrowProtectedError(token, formatStr, String(date));
|
|
41863
41895
|
}
|
|
41864
41896
|
const formatter = formatters[token[0]];
|
|
@@ -42039,7 +42071,7 @@ function ProgramCard({
|
|
|
42039
42071
|
const dur = formatDurationFromRange(w.start_at, w.end_at);
|
|
42040
42072
|
typeMeta = dur ? `${time} \xB7 ${dur}` : time;
|
|
42041
42073
|
}
|
|
42042
|
-
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access',
|
|
42074
|
+
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _855 => _855.labels, 'optionalAccess', _856 => _856.singular])].filter(
|
|
42043
42075
|
(s) => typeof s === "string" && s.length > 0
|
|
42044
42076
|
);
|
|
42045
42077
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, COMPACT_CARD_OUTER, className), children: [
|
|
@@ -42196,7 +42228,7 @@ function ProgramCard({
|
|
|
42196
42228
|
|
|
42197
42229
|
|
|
42198
42230
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
42199
|
-
const goalsCount = _optionalChain([campaign, 'access',
|
|
42231
|
+
const goalsCount = _optionalChain([campaign, 'access', _857 => _857.goals, 'optionalAccess', _858 => _858.length]) || 0;
|
|
42200
42232
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
42201
42233
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
42202
42234
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -42358,7 +42390,7 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
42358
42390
|
if (row.path && shouldFallbackToPathNav(row) && !row.externalUrl) {
|
|
42359
42391
|
const safePath = sanitizePath(row.path);
|
|
42360
42392
|
if (safePath) {
|
|
42361
|
-
const docTarget = row.documentType ? _optionalChain([ctx, 'access',
|
|
42393
|
+
const docTarget = row.documentType ? _optionalChain([ctx, 'access', _859 => _859.docPlatformTargets, 'optionalAccess', _860 => _860[row.documentType]]) : void 0;
|
|
42362
42394
|
if (docTarget) {
|
|
42363
42395
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
42364
42396
|
const base = `${_chunkFIG2RKZFcjs.getBaseUrl.call(void 0, docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
@@ -42573,8 +42605,8 @@ function cardMenuGroups(href, discuss, openDetails) {
|
|
|
42573
42605
|
if (href) {
|
|
42574
42606
|
items.push({
|
|
42575
42607
|
id: "open-details",
|
|
42576
|
-
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
42577
|
-
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
42608
|
+
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _861 => _861.label]), () => ( "Open Details")),
|
|
42609
|
+
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _862 => _862.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.EyeIcon, { size: 20 }))),
|
|
42578
42610
|
// Main row → open the entity (same tab, soft Link nav).
|
|
42579
42611
|
href,
|
|
42580
42612
|
// Trailing 40px ↗ side-button → open in a new tab.
|
|
@@ -42604,8 +42636,8 @@ function HubspotTicketChatCard({
|
|
|
42604
42636
|
isNewTab,
|
|
42605
42637
|
discuss
|
|
42606
42638
|
}) {
|
|
42607
|
-
const status = typeof _optionalChain([chatRef, 'access',
|
|
42608
|
-
const statusLabel = typeof _optionalChain([chatRef, 'access',
|
|
42639
|
+
const status = typeof _optionalChain([chatRef, 'access', _863 => _863.metadata, 'optionalAccess', _864 => _864.status]) === "string" ? chatRef.metadata.status : void 0;
|
|
42640
|
+
const statusLabel = typeof _optionalChain([chatRef, 'access', _865 => _865.metadata, 'optionalAccess', _866 => _866.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
|
|
42609
42641
|
const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
|
|
42610
42642
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42611
42643
|
MingoInfoCard,
|
|
@@ -42628,7 +42660,7 @@ function FaqChatCard({
|
|
|
42628
42660
|
isNewTab,
|
|
42629
42661
|
discuss
|
|
42630
42662
|
}) {
|
|
42631
|
-
const section = typeof _optionalChain([chatRef, 'access',
|
|
42663
|
+
const section = typeof _optionalChain([chatRef, 'access', _867 => _867.metadata, 'optionalAccess', _868 => _868.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
|
|
42632
42664
|
const statusLabel = section && section.length > 0 ? section : "FAQ";
|
|
42633
42665
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42634
42666
|
MingoInfoCard,
|
|
@@ -42648,7 +42680,7 @@ function SlackChatCard({
|
|
|
42648
42680
|
isNewTab,
|
|
42649
42681
|
discuss
|
|
42650
42682
|
}) {
|
|
42651
|
-
const channelName = typeof _optionalChain([chatRef, 'access',
|
|
42683
|
+
const channelName = typeof _optionalChain([chatRef, 'access', _869 => _869.metadata, 'optionalAccess', _870 => _870.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
|
|
42652
42684
|
const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
|
|
42653
42685
|
const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
|
|
42654
42686
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -42688,7 +42720,7 @@ function GenericFinancialChatCard({
|
|
|
42688
42720
|
isNewTab,
|
|
42689
42721
|
discuss
|
|
42690
42722
|
}) {
|
|
42691
|
-
const subtitle = typeof _optionalChain([chatRef, 'access',
|
|
42723
|
+
const subtitle = typeof _optionalChain([chatRef, 'access', _871 => _871.metadata, 'optionalAccess', _872 => _872.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
|
|
42692
42724
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42693
42725
|
MingoInfoCard,
|
|
42694
42726
|
{
|
|
@@ -42757,12 +42789,12 @@ function ProductReleaseChatCard({
|
|
|
42757
42789
|
discuss
|
|
42758
42790
|
}) {
|
|
42759
42791
|
const releaseProps = buildProps(item);
|
|
42760
|
-
const status = _optionalChain([item, 'optionalAccess',
|
|
42792
|
+
const status = _optionalChain([item, 'optionalAccess', _873 => _873.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
|
|
42761
42793
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42762
42794
|
EntityMingoCard,
|
|
42763
42795
|
{
|
|
42764
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
42765
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
42796
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _874 => _874.title]), () => ( "")),
|
|
42797
|
+
description: _optionalChain([item, 'optionalAccess', _875 => _875.summary]) || releaseProps.formattedDate || void 0,
|
|
42766
42798
|
cover: releaseProps.coverImage || void 0,
|
|
42767
42799
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.Rocket02Icon, { size: 24 }),
|
|
42768
42800
|
status,
|
|
@@ -42779,17 +42811,17 @@ function CampaignChatCard({
|
|
|
42779
42811
|
isNewTab,
|
|
42780
42812
|
discuss
|
|
42781
42813
|
}) {
|
|
42782
|
-
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
42814
|
+
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _876 => _876.goals])) ? item.goals.length : 0;
|
|
42783
42815
|
const meta = [
|
|
42784
|
-
_optionalChain([item, 'optionalAccess',
|
|
42816
|
+
_optionalChain([item, 'optionalAccess', _877 => _877.start_date]) ? formatDateShort(item.start_date) : null,
|
|
42785
42817
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
42786
42818
|
"Marketing campaign"
|
|
42787
42819
|
].filter(Boolean).join(" \xB7 ");
|
|
42788
42820
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42789
42821
|
EntityMingoCard,
|
|
42790
42822
|
{
|
|
42791
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
42792
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
42823
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _878 => _878.name]), () => ( "")),
|
|
42824
|
+
description: meta || _optionalChain([item, 'optionalAccess', _879 => _879.description]) || void 0,
|
|
42793
42825
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.Megaphone01Icon, { size: 24 }),
|
|
42794
42826
|
chatRef,
|
|
42795
42827
|
isNewTab,
|
|
@@ -42842,14 +42874,14 @@ function BlogChatCard({
|
|
|
42842
42874
|
hasEmbeddedVideo,
|
|
42843
42875
|
discuss
|
|
42844
42876
|
}) {
|
|
42845
|
-
const category = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
42877
|
+
const category = Array.isArray(_optionalChain([item, 'optionalAccess', _880 => _880.categories])) ? _optionalChain([item, 'access', _881 => _881.categories, 'access', _882 => _882.find, 'call', _883 => _883((c) => c && c.name), 'optionalAccess', _884 => _884.name]) : void 0;
|
|
42846
42878
|
const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
|
|
42847
42879
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42848
42880
|
EntityMingoCard,
|
|
42849
42881
|
{
|
|
42850
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
42851
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
42852
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
42882
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _885 => _885.title]), () => ( "")),
|
|
42883
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _886 => _886.summary]), () => ( void 0)),
|
|
42884
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _887 => _887.featured_image]), ogPlaceholder),
|
|
42853
42885
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.NewspaperIcon, { size: 24 }),
|
|
42854
42886
|
status,
|
|
42855
42887
|
chatRef,
|
|
@@ -42866,13 +42898,13 @@ function CaseStudyChatCard({
|
|
|
42866
42898
|
ogPlaceholder,
|
|
42867
42899
|
discuss
|
|
42868
42900
|
}) {
|
|
42869
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
42901
|
+
const meta = [_optionalChain([item, 'optionalAccess', _888 => _888.msp, 'optionalAccess', _889 => _889.name]), _optionalChain([item, 'optionalAccess', _890 => _890.user, 'optionalAccess', _891 => _891.full_name])].filter(Boolean).join(" \xB7 ");
|
|
42870
42902
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42871
42903
|
EntityMingoCard,
|
|
42872
42904
|
{
|
|
42873
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
42874
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
42875
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
42905
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _892 => _892.title]), () => ( "")),
|
|
42906
|
+
description: _optionalChain([item, 'optionalAccess', _893 => _893.summary]) || meta || void 0,
|
|
42907
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _894 => _894.featured_image]), ogPlaceholder),
|
|
42876
42908
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.TrophyIcon, { size: 24 }),
|
|
42877
42909
|
status: { label: "Case study", variant: "grey" },
|
|
42878
42910
|
chatRef,
|
|
@@ -42889,13 +42921,13 @@ function CustomerInterviewChatCard({
|
|
|
42889
42921
|
ogPlaceholder,
|
|
42890
42922
|
discuss
|
|
42891
42923
|
}) {
|
|
42892
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
42924
|
+
const meta = [_optionalChain([item, 'optionalAccess', _895 => _895.user, 'optionalAccess', _896 => _896.full_name]), _optionalChain([item, 'optionalAccess', _897 => _897.msp, 'optionalAccess', _898 => _898.name])].filter(Boolean).join(" \xB7 ");
|
|
42893
42925
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42894
42926
|
EntityMingoCard,
|
|
42895
42927
|
{
|
|
42896
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
42897
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
42898
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
42928
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _899 => _899.title]), () => ( "")),
|
|
42929
|
+
description: _optionalChain([item, 'optionalAccess', _900 => _900.video_summary]) || meta || void 0,
|
|
42930
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _901 => _901.featured_image]), ogPlaceholder),
|
|
42899
42931
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.MicrophoneIcon, { size: 24 }),
|
|
42900
42932
|
status: { label: "Interview", variant: "grey" },
|
|
42901
42933
|
chatRef,
|
|
@@ -42912,13 +42944,13 @@ function InvestorUpdateChatCard({
|
|
|
42912
42944
|
ogPlaceholder,
|
|
42913
42945
|
discuss
|
|
42914
42946
|
}) {
|
|
42915
|
-
const title = _optionalChain([item, 'optionalAccess',
|
|
42947
|
+
const title = _optionalChain([item, 'optionalAccess', _902 => _902.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _903 => _903.update_number]), () => ( "?"))}`;
|
|
42916
42948
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42917
42949
|
EntityMingoCard,
|
|
42918
42950
|
{
|
|
42919
42951
|
title,
|
|
42920
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
42921
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
42952
|
+
description: _optionalChain([item, 'optionalAccess', _904 => _904.strategic_update]) || _optionalChain([item, 'optionalAccess', _905 => _905.content]) || formatInvestorUpdatePeriod(_optionalChain([item, 'optionalAccess', _906 => _906.period_start]), _optionalChain([item, 'optionalAccess', _907 => _907.period_end])) || void 0,
|
|
42953
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _908 => _908.featured_image]), ogPlaceholder),
|
|
42922
42954
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.PresentationLineIcon, { size: 24 }),
|
|
42923
42955
|
status: { label: "Investor update", variant: "grey" },
|
|
42924
42956
|
chatRef,
|
|
@@ -42935,12 +42967,12 @@ function OnboardingGuideChatCard({
|
|
|
42935
42967
|
ogPlaceholder,
|
|
42936
42968
|
discuss
|
|
42937
42969
|
}) {
|
|
42938
|
-
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess',
|
|
42970
|
+
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _909 => _909.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _910 => _910.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _911 => _911.og_image_url]), ogPlaceholder)));
|
|
42939
42971
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42940
42972
|
EntityMingoCard,
|
|
42941
42973
|
{
|
|
42942
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
42943
|
-
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
42974
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _912 => _912.title]), () => ( "")),
|
|
42975
|
+
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _913 => _913.summary]), () => ( _optionalChain([item, 'optionalAccess', _914 => _914.description]))), () => ( void 0)),
|
|
42944
42976
|
cover,
|
|
42945
42977
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.CompassIcon, { size: 24 }),
|
|
42946
42978
|
status: { label: "Guide", variant: "grey" },
|
|
@@ -42961,25 +42993,25 @@ function ProgramChatCard({
|
|
|
42961
42993
|
discuss
|
|
42962
42994
|
}) {
|
|
42963
42995
|
const icon = configKey === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.CalendarIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.MicrophoneIcon, { size: 24 });
|
|
42964
|
-
const isScheduled = _optionalChain([item, 'optionalAccess',
|
|
42996
|
+
const isScheduled = _optionalChain([item, 'optionalAccess', _915 => _915.status]) === "scheduled";
|
|
42965
42997
|
let typeMeta;
|
|
42966
|
-
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess',
|
|
42998
|
+
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _916 => _916.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
|
|
42967
42999
|
typeMeta = formatDurationCompact(item.duration_seconds);
|
|
42968
|
-
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess',
|
|
43000
|
+
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _917 => _917.location_name]) === "string" && item.location_name.trim().length > 0) {
|
|
42969
43001
|
typeMeta = item.location_name;
|
|
42970
|
-
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess',
|
|
43002
|
+
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _918 => _918.start_at])) {
|
|
42971
43003
|
const time = formatTimeWithTimezone(item.start_at, _nullishCoalesce(item.timezone, () => ( null)));
|
|
42972
43004
|
const dur = formatDurationFromRange(item.start_at, item.end_at);
|
|
42973
43005
|
typeMeta = dur ? `${time} \xB7 ${dur}` : time;
|
|
42974
43006
|
}
|
|
42975
|
-
const itemDate = formatDateUTC(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
43007
|
+
const itemDate = formatDateUTC(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _919 => _919.date]), () => ( null)), { fallback: "", timezone: "local" });
|
|
42976
43008
|
const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
|
|
42977
43009
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42978
43010
|
EntityMingoCard,
|
|
42979
43011
|
{
|
|
42980
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
42981
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
42982
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
43012
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _920 => _920.title]), () => ( "")),
|
|
43013
|
+
description: meta || _optionalChain([item, 'optionalAccess', _921 => _921.description]) || void 0,
|
|
43014
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _922 => _922.cover_url]), ogPlaceholder),
|
|
42983
43015
|
fallbackIcon: icon,
|
|
42984
43016
|
status: { label, variant: "grey" },
|
|
42985
43017
|
chatRef,
|
|
@@ -42996,10 +43028,10 @@ function RoadmapChatCard({
|
|
|
42996
43028
|
cardType,
|
|
42997
43029
|
discuss
|
|
42998
43030
|
}) {
|
|
42999
|
-
const logoUrl = typeof _optionalChain([item, 'optionalAccess',
|
|
43000
|
-
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess',
|
|
43031
|
+
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _923 => _923.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
43032
|
+
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _924 => _924.customItemId]) != null;
|
|
43001
43033
|
const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.MapIcon, { size: 24 });
|
|
43002
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess',
|
|
43034
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _925 => _925.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
43003
43035
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
43004
43036
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
43005
43037
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: logoUrl, alt: "", className: "size-6 object-contain" })
|
|
@@ -43007,10 +43039,10 @@ function RoadmapChatCard({
|
|
|
43007
43039
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43008
43040
|
EntityMingoCard,
|
|
43009
43041
|
{
|
|
43010
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
43011
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
43042
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _926 => _926.title]), () => ( "")),
|
|
43043
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _927 => _927.description]), () => ( void 0)),
|
|
43012
43044
|
fallbackIcon: icon,
|
|
43013
|
-
status: statusPill(_optionalChain([item, 'optionalAccess',
|
|
43045
|
+
status: statusPill(_optionalChain([item, 'optionalAccess', _928 => _928.status])),
|
|
43014
43046
|
chatRef,
|
|
43015
43047
|
isNewTab,
|
|
43016
43048
|
discuss,
|
|
@@ -43096,7 +43128,7 @@ function programRegistryEntries() {
|
|
|
43096
43128
|
discuss: opts.discuss,
|
|
43097
43129
|
configKey: cfg.configKey,
|
|
43098
43130
|
label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
|
|
43099
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
43131
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _929 => _929.extras, 'optionalAccess', _930 => _930.buildOgPlaceholderUrl, 'optionalCall', _931 => _931(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _932 => _932.title]), () => ( "")))]), () => ( null))
|
|
43100
43132
|
}
|
|
43101
43133
|
)
|
|
43102
43134
|
};
|
|
@@ -43248,8 +43280,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
43248
43280
|
chatRef,
|
|
43249
43281
|
isNewTab: opts.isNewTab,
|
|
43250
43282
|
discuss: opts.discuss,
|
|
43251
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
43252
|
-
hasEmbeddedVideo: _optionalChain([chatRef, 'access',
|
|
43283
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _933 => _933.extras, 'optionalAccess', _934 => _934.buildOgPlaceholderUrl, 'optionalCall', _935 => _935(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _936 => _936.title]), () => ( "")))]), () => ( null)),
|
|
43284
|
+
hasEmbeddedVideo: _optionalChain([chatRef, 'access', _937 => _937.metadata, 'optionalAccess', _938 => _938.hasEmbeddedVideo]) === true
|
|
43253
43285
|
}
|
|
43254
43286
|
)
|
|
43255
43287
|
},
|
|
@@ -43266,7 +43298,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
43266
43298
|
chatRef,
|
|
43267
43299
|
isNewTab: opts.isNewTab,
|
|
43268
43300
|
discuss: opts.discuss,
|
|
43269
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
43301
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _939 => _939.extras, 'optionalAccess', _940 => _940.buildOgPlaceholderUrl, 'optionalCall', _941 => _941(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _942 => _942.title]), () => ( "")))]), () => ( null))
|
|
43270
43302
|
}
|
|
43271
43303
|
)
|
|
43272
43304
|
},
|
|
@@ -43283,7 +43315,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
43283
43315
|
chatRef,
|
|
43284
43316
|
isNewTab: opts.isNewTab,
|
|
43285
43317
|
discuss: opts.discuss,
|
|
43286
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
43318
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _943 => _943.extras, 'optionalAccess', _944 => _944.buildOgPlaceholderUrl, 'optionalCall', _945 => _945(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _946 => _946.title]), () => ( "")))]), () => ( null))
|
|
43287
43319
|
}
|
|
43288
43320
|
)
|
|
43289
43321
|
},
|
|
@@ -43294,7 +43326,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
43294
43326
|
bareInline: true,
|
|
43295
43327
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ProductReleaseCardSkeleton, { size: "sm" }),
|
|
43296
43328
|
render: (item, chatRef, opts) => {
|
|
43297
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
43329
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _947 => _947.extras, 'optionalAccess', _948 => _948.buildProductReleaseCardProps]), () => ( defaultBuildProductReleaseCardProps));
|
|
43298
43330
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43299
43331
|
ProductReleaseChatCard,
|
|
43300
43332
|
{
|
|
@@ -43321,7 +43353,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
43321
43353
|
chatRef,
|
|
43322
43354
|
isNewTab: opts.isNewTab,
|
|
43323
43355
|
discuss: opts.discuss,
|
|
43324
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
43356
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _949 => _949.extras, 'optionalAccess', _950 => _950.buildOgPlaceholderUrl, 'optionalCall', _951 => _951(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _952 => _952.title]), () => ( "")))]), () => ( null))
|
|
43325
43357
|
}
|
|
43326
43358
|
)
|
|
43327
43359
|
},
|
|
@@ -43340,7 +43372,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
43340
43372
|
chatRef,
|
|
43341
43373
|
isNewTab: opts.isNewTab,
|
|
43342
43374
|
discuss: opts.discuss,
|
|
43343
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
43375
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _953 => _953.extras, 'optionalAccess', _954 => _954.buildOgPlaceholderUrl, 'optionalCall', _955 => _955(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _956 => _956.title]), () => ( "")))]), () => ( null))
|
|
43344
43376
|
}
|
|
43345
43377
|
)
|
|
43346
43378
|
},
|
|
@@ -43352,7 +43384,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
43352
43384
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, {}),
|
|
43353
43385
|
// No public viewer — synthesize the hub-internal admin URL post-fetch
|
|
43354
43386
|
// so the wrapper + isNewTab computation see the actual destination.
|
|
43355
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
43387
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _957 => _957.id]) ? `/admin/campaigns/${encodeURIComponent(item.id)}` : null,
|
|
43356
43388
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43357
43389
|
CampaignChatCard,
|
|
43358
43390
|
{
|
|
@@ -43378,12 +43410,12 @@ function ChatCardNavWrap({
|
|
|
43378
43410
|
const onClickCapture = (e) => {
|
|
43379
43411
|
if (!href) return;
|
|
43380
43412
|
const targetEl = e.target;
|
|
43381
|
-
if (_optionalChain([targetEl, 'optionalAccess',
|
|
43382
|
-
if (!_optionalChain([targetEl, 'optionalAccess',
|
|
43413
|
+
if (_optionalChain([targetEl, 'optionalAccess', _958 => _958.closest, 'optionalCall', _959 => _959("button")])) return;
|
|
43414
|
+
if (!_optionalChain([targetEl, 'optionalAccess', _960 => _960.closest, 'optionalCall', _961 => _961("a")])) return;
|
|
43383
43415
|
const handled = handleChatNavClick(e, runtime, { href, path, targetPlatform }, router.push);
|
|
43384
43416
|
if (!handled) return;
|
|
43385
43417
|
e.stopPropagation();
|
|
43386
|
-
if (!isNewTab && _optionalChain([panel, 'optionalAccess',
|
|
43418
|
+
if (!isNewTab && _optionalChain([panel, 'optionalAccess', _962 => _962.closeChat])) panel.closeChat();
|
|
43387
43419
|
};
|
|
43388
43420
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
|
|
43389
43421
|
}
|
|
@@ -43405,7 +43437,7 @@ function ChatCardLoader({
|
|
|
43405
43437
|
title: chatRef.title,
|
|
43406
43438
|
externalUrl: chatRef.url,
|
|
43407
43439
|
targetPlatform: chatRef.targetPlatform,
|
|
43408
|
-
path: typeof _optionalChain([chatRef, 'access',
|
|
43440
|
+
path: typeof _optionalChain([chatRef, 'access', _963 => _963.metadata, 'optionalAccess', _964 => _964.path]) === "string" ? chatRef.metadata.path : null
|
|
43409
43441
|
},
|
|
43410
43442
|
sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform })
|
|
43411
43443
|
);
|
|
@@ -43419,7 +43451,7 @@ function ChatCardLoader({
|
|
|
43419
43451
|
const entry = CHAT_CARD_REGISTRY[resolvedChatRef.type];
|
|
43420
43452
|
const fetchEntry = entry && entry.mode === "fetch" ? entry : null;
|
|
43421
43453
|
const { item, isLoading } = useChatCardItem(
|
|
43422
|
-
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess',
|
|
43454
|
+
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _965 => _965.contentRefType]), () => ( "")),
|
|
43423
43455
|
fetchEntry ? resolvedChatRef.id : ""
|
|
43424
43456
|
);
|
|
43425
43457
|
if (!entry) return null;
|
|
@@ -43450,7 +43482,7 @@ function ChatCardLoader({
|
|
|
43450
43482
|
isNewTab,
|
|
43451
43483
|
discuss
|
|
43452
43484
|
};
|
|
43453
|
-
const path = typeof _optionalChain([finalChatRef, 'access',
|
|
43485
|
+
const path = typeof _optionalChain([finalChatRef, 'access', _966 => _966.metadata, 'optionalAccess', _967 => _967.path]) === "string" ? finalChatRef.metadata.path : null;
|
|
43454
43486
|
const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43455
43487
|
ChatCardNavWrap,
|
|
43456
43488
|
{
|
|
@@ -43836,7 +43868,7 @@ function useJetStreamDialogSubscription({
|
|
|
43836
43868
|
const lifecycle = _chunkPXXS27EEcjs.startConnectionLifecycle.call(void 0, {
|
|
43837
43869
|
conn: sharedConn,
|
|
43838
43870
|
wsUrl,
|
|
43839
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
43871
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _968 => _968.current, 'optionalCall', _969 => _969()]),
|
|
43840
43872
|
backoff: reconnectionBackoffRef.current,
|
|
43841
43873
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
43842
43874
|
// JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
|
|
@@ -43851,7 +43883,7 @@ function useJetStreamDialogSubscription({
|
|
|
43851
43883
|
setReconnectionCount((c) => c + 1);
|
|
43852
43884
|
}
|
|
43853
43885
|
hadConnectionBeforeRef.current = true;
|
|
43854
|
-
_optionalChain([onConnectRef, 'access',
|
|
43886
|
+
_optionalChain([onConnectRef, 'access', _970 => _970.current, 'optionalCall', _971 => _971()]);
|
|
43855
43887
|
}
|
|
43856
43888
|
if (status === "error") {
|
|
43857
43889
|
console.warn("[JetStream] NATS protocol error:", evt.data);
|
|
@@ -43861,7 +43893,7 @@ function useJetStreamDialogSubscription({
|
|
|
43861
43893
|
setIsConnected(false);
|
|
43862
43894
|
setIsSubscribed(false);
|
|
43863
43895
|
tearDownSubscription();
|
|
43864
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
43896
|
+
_optionalChain([onDisconnectRef, 'access', _972 => _972.current, 'optionalCall', _973 => _973()]);
|
|
43865
43897
|
}
|
|
43866
43898
|
}
|
|
43867
43899
|
});
|
|
@@ -43940,7 +43972,7 @@ function useJetStreamDialogSubscription({
|
|
|
43940
43972
|
}
|
|
43941
43973
|
subscriptionRef.current = handle;
|
|
43942
43974
|
setIsSubscribed(true);
|
|
43943
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
43975
|
+
_optionalChain([onSubscribedRef, 'access', _974 => _974.current, 'optionalCall', _975 => _975()]);
|
|
43944
43976
|
} catch (e44) {
|
|
43945
43977
|
if (!cancelled) {
|
|
43946
43978
|
setIsSubscribed(false);
|
|
@@ -44053,20 +44085,20 @@ function useNatsDialogSubscription({
|
|
|
44053
44085
|
const tearDownSubscriptions = () => {
|
|
44054
44086
|
subscriptionRefs.current.forEach((sub) => {
|
|
44055
44087
|
try {
|
|
44056
|
-
_optionalChain([sub, 'optionalAccess',
|
|
44088
|
+
_optionalChain([sub, 'optionalAccess', _976 => _976.unsubscribe, 'call', _977 => _977()]);
|
|
44057
44089
|
} catch (e46) {
|
|
44058
44090
|
}
|
|
44059
44091
|
});
|
|
44060
44092
|
subscriptionRefs.current.clear();
|
|
44061
44093
|
lastSubscribedDialogIdRef.current = null;
|
|
44062
|
-
_optionalChain([abortControllerRef, 'access',
|
|
44094
|
+
_optionalChain([abortControllerRef, 'access', _978 => _978.current, 'optionalAccess', _979 => _979.abort, 'call', _980 => _980()]);
|
|
44063
44095
|
abortControllerRef.current = null;
|
|
44064
44096
|
};
|
|
44065
44097
|
const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
|
|
44066
44098
|
const lifecycle = _chunkPXXS27EEcjs.startConnectionLifecycle.call(void 0, {
|
|
44067
44099
|
conn: sharedConn,
|
|
44068
44100
|
wsUrl,
|
|
44069
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
44101
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _981 => _981.current, 'optionalCall', _982 => _982()]),
|
|
44070
44102
|
backoff: reconnectionBackoffRef.current,
|
|
44071
44103
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
44072
44104
|
shouldRetryOn: isDisconnectStatus,
|
|
@@ -44077,7 +44109,7 @@ function useNatsDialogSubscription({
|
|
|
44077
44109
|
setReconnectionCount((c) => c + 1);
|
|
44078
44110
|
}
|
|
44079
44111
|
hadConnectionBeforeRef.current = true;
|
|
44080
|
-
_optionalChain([onConnectRef, 'access',
|
|
44112
|
+
_optionalChain([onConnectRef, 'access', _983 => _983.current, 'optionalCall', _984 => _984()]);
|
|
44081
44113
|
}
|
|
44082
44114
|
if (status === "error") {
|
|
44083
44115
|
console.warn("[NATS] protocol error:", evt.data);
|
|
@@ -44087,7 +44119,7 @@ function useNatsDialogSubscription({
|
|
|
44087
44119
|
setIsConnected(false);
|
|
44088
44120
|
setIsSubscribed(false);
|
|
44089
44121
|
tearDownSubscriptions();
|
|
44090
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
44122
|
+
_optionalChain([onDisconnectRef, 'access', _985 => _985.current, 'optionalCall', _986 => _986()]);
|
|
44091
44123
|
}
|
|
44092
44124
|
}
|
|
44093
44125
|
});
|
|
@@ -44118,13 +44150,13 @@ function useNatsDialogSubscription({
|
|
|
44118
44150
|
setIsSubscribed(false);
|
|
44119
44151
|
subscriptionRefs.current.forEach((sub) => {
|
|
44120
44152
|
try {
|
|
44121
|
-
_optionalChain([sub, 'optionalAccess',
|
|
44153
|
+
_optionalChain([sub, 'optionalAccess', _987 => _987.unsubscribe, 'call', _988 => _988()]);
|
|
44122
44154
|
} catch (e47) {
|
|
44123
44155
|
}
|
|
44124
44156
|
});
|
|
44125
44157
|
subscriptionRefs.current.clear();
|
|
44126
44158
|
lastSubscribedDialogIdRef.current = null;
|
|
44127
|
-
_optionalChain([abortControllerRef, 'access',
|
|
44159
|
+
_optionalChain([abortControllerRef, 'access', _989 => _989.current, 'optionalAccess', _990 => _990.abort, 'call', _991 => _991()]);
|
|
44128
44160
|
abortControllerRef.current = null;
|
|
44129
44161
|
}
|
|
44130
44162
|
return;
|
|
@@ -44136,12 +44168,12 @@ function useNatsDialogSubscription({
|
|
|
44136
44168
|
if (subscriptionRefs.current.size > 0) {
|
|
44137
44169
|
subscriptionRefs.current.forEach((sub) => {
|
|
44138
44170
|
try {
|
|
44139
|
-
_optionalChain([sub, 'optionalAccess',
|
|
44171
|
+
_optionalChain([sub, 'optionalAccess', _992 => _992.unsubscribe, 'call', _993 => _993()]);
|
|
44140
44172
|
} catch (e48) {
|
|
44141
44173
|
}
|
|
44142
44174
|
});
|
|
44143
44175
|
subscriptionRefs.current.clear();
|
|
44144
|
-
_optionalChain([abortControllerRef, 'access',
|
|
44176
|
+
_optionalChain([abortControllerRef, 'access', _994 => _994.current, 'optionalAccess', _995 => _995.abort, 'call', _996 => _996()]);
|
|
44145
44177
|
}
|
|
44146
44178
|
abortControllerRef.current = new AbortController();
|
|
44147
44179
|
const abort = abortControllerRef.current;
|
|
@@ -44173,7 +44205,7 @@ function useNatsDialogSubscription({
|
|
|
44173
44205
|
});
|
|
44174
44206
|
lastSubscribedDialogIdRef.current = dialogId;
|
|
44175
44207
|
setIsSubscribed(true);
|
|
44176
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
44208
|
+
_optionalChain([onSubscribedRef, 'access', _997 => _997.current, 'optionalCall', _998 => _998()]);
|
|
44177
44209
|
};
|
|
44178
44210
|
if (isConnectedRef.current) {
|
|
44179
44211
|
createSubscriptions();
|
|
@@ -44183,7 +44215,7 @@ function useNatsDialogSubscription({
|
|
|
44183
44215
|
abort.abort();
|
|
44184
44216
|
subscriptionRefs.current.forEach((sub) => {
|
|
44185
44217
|
try {
|
|
44186
|
-
_optionalChain([sub, 'optionalAccess',
|
|
44218
|
+
_optionalChain([sub, 'optionalAccess', _999 => _999.unsubscribe, 'call', _1000 => _1000()]);
|
|
44187
44219
|
} catch (e50) {
|
|
44188
44220
|
}
|
|
44189
44221
|
});
|
|
@@ -44224,7 +44256,7 @@ function useNatsDialogSubscription({
|
|
|
44224
44256
|
});
|
|
44225
44257
|
lastSubscribedDialogIdRef.current = dialogId2;
|
|
44226
44258
|
setIsSubscribed(true);
|
|
44227
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
44259
|
+
_optionalChain([onSubscribedRef, 'access', _1001 => _1001.current, 'optionalCall', _1002 => _1002()]);
|
|
44228
44260
|
} else if (subscriptionRefs.current.size > 0) {
|
|
44229
44261
|
setIsSubscribed(true);
|
|
44230
44262
|
}
|
|
@@ -44232,10 +44264,10 @@ function useNatsDialogSubscription({
|
|
|
44232
44264
|
return { isConnected, isSubscribed, reconnectionCount };
|
|
44233
44265
|
}
|
|
44234
44266
|
function buildNatsWsUrl(apiBaseUrl, options) {
|
|
44235
|
-
const path = _optionalChain([options, 'optionalAccess',
|
|
44267
|
+
const path = _optionalChain([options, 'optionalAccess', _1003 => _1003.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
|
|
44236
44268
|
const u = new URL(path, apiBaseUrl);
|
|
44237
44269
|
u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
|
|
44238
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
44270
|
+
if (_optionalChain([options, 'optionalAccess', _1004 => _1004.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _1005 => _1005.token])) {
|
|
44239
44271
|
u.searchParams.set("authorization", options.token);
|
|
44240
44272
|
}
|
|
44241
44273
|
return u.toString();
|
|
@@ -44371,7 +44403,7 @@ function parseChunkToAction(chunk) {
|
|
|
44371
44403
|
// is REQUIRED on `ChatContextItem`, so fall back to the id (same as the
|
|
44372
44404
|
// historical path in `process-historical-messages.ts`) — keeps both
|
|
44373
44405
|
// message sources producing an identical shape.
|
|
44374
|
-
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess',
|
|
44406
|
+
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _1006 => _1006.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _1007 => _1007.id]) === "string").map((it) => ({ type: it.type, id: it.id, label: it.id })) : void 0
|
|
44375
44407
|
};
|
|
44376
44408
|
case MESSAGE_TYPE.TOKEN_USAGE:
|
|
44377
44409
|
return {
|
|
@@ -44563,8 +44595,8 @@ var MessageSegmentAccumulator = class {
|
|
|
44563
44595
|
type: "tool_execution",
|
|
44564
44596
|
data: {
|
|
44565
44597
|
...toolData,
|
|
44566
|
-
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
44567
|
-
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess',
|
|
44598
|
+
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _1008 => _1008.data, 'access', _1009 => _1009.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _1010 => _1010.toolTitle]))),
|
|
44599
|
+
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _1011 => _1011.parameters])
|
|
44568
44600
|
}
|
|
44569
44601
|
};
|
|
44570
44602
|
if (existingIndex !== -1) {
|
|
@@ -44588,8 +44620,8 @@ var MessageSegmentAccumulator = class {
|
|
|
44588
44620
|
if (seg.type !== "approval_batch") return seg;
|
|
44589
44621
|
const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
|
|
44590
44622
|
if (!hasCall) return seg;
|
|
44591
|
-
const prev = _optionalChain([seg, 'access',
|
|
44592
|
-
const next = toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prev, 'optionalAccess',
|
|
44623
|
+
const prev = _optionalChain([seg, 'access', _1012 => _1012.data, 'access', _1013 => _1013.executions, 'optionalAccess', _1014 => _1014[execId]]);
|
|
44624
|
+
const next = toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prev, 'optionalAccess', _1015 => _1015.result]), success: _optionalChain([prev, 'optionalAccess', _1016 => _1016.success]) };
|
|
44593
44625
|
matched = true;
|
|
44594
44626
|
return {
|
|
44595
44627
|
...seg,
|
|
@@ -44711,10 +44743,10 @@ var MessageSegmentAccumulator = class {
|
|
|
44711
44743
|
const segment = {
|
|
44712
44744
|
type: "approval_request",
|
|
44713
44745
|
data: {
|
|
44714
|
-
command: _optionalChain([pendingApproval, 'optionalAccess',
|
|
44715
|
-
explanation: _optionalChain([pendingApproval, 'optionalAccess',
|
|
44746
|
+
command: _optionalChain([pendingApproval, 'optionalAccess', _1017 => _1017.command]) || "",
|
|
44747
|
+
explanation: _optionalChain([pendingApproval, 'optionalAccess', _1018 => _1018.explanation]),
|
|
44716
44748
|
requestId,
|
|
44717
|
-
approvalType: _optionalChain([pendingApproval, 'optionalAccess',
|
|
44749
|
+
approvalType: _optionalChain([pendingApproval, 'optionalAccess', _1019 => _1019.approvalType]) || approvalType
|
|
44718
44750
|
},
|
|
44719
44751
|
status,
|
|
44720
44752
|
onApprove: this.callbacks.onApprove,
|
|
@@ -44906,7 +44938,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
44906
44938
|
if (initialState.escalatedApprovals) {
|
|
44907
44939
|
pendingEscalatedRef.current = new Map(initialState.escalatedApprovals);
|
|
44908
44940
|
initialState.escalatedApprovals.forEach((data, requestId) => {
|
|
44909
|
-
_optionalChain([callbacks, 'access',
|
|
44941
|
+
_optionalChain([callbacks, 'access', _1020 => _1020.onEscalatedApproval, 'optionalCall', _1021 => _1021(requestId, data)]);
|
|
44910
44942
|
});
|
|
44911
44943
|
}
|
|
44912
44944
|
hasEverStreamedRef.current = true;
|
|
@@ -44927,12 +44959,12 @@ function useRealtimeChunkProcessor(options) {
|
|
|
44927
44959
|
if (!action) return;
|
|
44928
44960
|
const accumulator = accumulatorRef.current;
|
|
44929
44961
|
const streamSeq = chunk && typeof chunk === "object" && typeof chunk.streamSeq === "number" ? chunk.streamSeq : void 0;
|
|
44930
|
-
const emitSegments = (s, meta) => _optionalChain([callbacks, 'access',
|
|
44962
|
+
const emitSegments = (s, meta) => _optionalChain([callbacks, 'access', _1022 => _1022.onSegmentsUpdate, 'optionalCall', _1023 => _1023(s, streamSeq != null ? { ...meta, streamSeq } : meta)]);
|
|
44931
44963
|
if (action.action === "direct_message") sawDirectMessageRef.current = true;
|
|
44932
44964
|
if ((directModeFlagRef.current || sawDirectMessageRef.current) && !DIRECT_MODE_ALLOWED.has(action.action)) {
|
|
44933
44965
|
if (isInStreamRef.current) {
|
|
44934
44966
|
isInStreamRef.current = false;
|
|
44935
|
-
_optionalChain([callbacks, 'access',
|
|
44967
|
+
_optionalChain([callbacks, 'access', _1024 => _1024.onStreamEnd, 'optionalCall', _1025 => _1025()]);
|
|
44936
44968
|
accumulator.resetSegments();
|
|
44937
44969
|
}
|
|
44938
44970
|
return;
|
|
@@ -44941,16 +44973,16 @@ function useRealtimeChunkProcessor(options) {
|
|
|
44941
44973
|
case "message_start":
|
|
44942
44974
|
isInStreamRef.current = true;
|
|
44943
44975
|
hasEverStreamedRef.current = true;
|
|
44944
|
-
_optionalChain([callbacks, 'access',
|
|
44976
|
+
_optionalChain([callbacks, 'access', _1026 => _1026.onStreamStart, 'optionalCall', _1027 => _1027()]);
|
|
44945
44977
|
accumulator.resetSegments();
|
|
44946
44978
|
break;
|
|
44947
44979
|
case "message_end":
|
|
44948
44980
|
isInStreamRef.current = false;
|
|
44949
|
-
_optionalChain([callbacks, 'access',
|
|
44981
|
+
_optionalChain([callbacks, 'access', _1028 => _1028.onStreamEnd, 'optionalCall', _1029 => _1029()]);
|
|
44950
44982
|
accumulator.resetSegments();
|
|
44951
44983
|
break;
|
|
44952
44984
|
case "metadata":
|
|
44953
|
-
_optionalChain([callbacks, 'access',
|
|
44985
|
+
_optionalChain([callbacks, 'access', _1030 => _1030.onMetadata, 'optionalCall', _1031 => _1031(action)]);
|
|
44954
44986
|
break;
|
|
44955
44987
|
case "text": {
|
|
44956
44988
|
const segments = accumulator.appendText(action.text);
|
|
@@ -44993,7 +45025,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
44993
45025
|
emitSegments(segments);
|
|
44994
45026
|
} else {
|
|
44995
45027
|
pendingEscalatedRef.current.set(requestId, { command, explanation, approvalType });
|
|
44996
|
-
_optionalChain([callbacks, 'access',
|
|
45028
|
+
_optionalChain([callbacks, 'access', _1032 => _1032.onEscalatedApproval, 'optionalCall', _1033 => _1033(requestId, { command, explanation, approvalType })]);
|
|
44997
45029
|
}
|
|
44998
45030
|
break;
|
|
44999
45031
|
}
|
|
@@ -45005,13 +45037,13 @@ function useRealtimeChunkProcessor(options) {
|
|
|
45005
45037
|
const summary = required ? getCommandText(required) : `Batch of ${toolCalls.length} tool calls`;
|
|
45006
45038
|
pendingEscalatedRef.current.set(requestId, {
|
|
45007
45039
|
command: summary,
|
|
45008
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
45040
|
+
explanation: _optionalChain([required, 'optionalAccess', _1034 => _1034.toolExplanation]),
|
|
45009
45041
|
approvalType,
|
|
45010
45042
|
toolCalls
|
|
45011
45043
|
});
|
|
45012
|
-
_optionalChain([callbacks, 'access',
|
|
45044
|
+
_optionalChain([callbacks, 'access', _1035 => _1035.onEscalatedApproval, 'optionalCall', _1036 => _1036(requestId, {
|
|
45013
45045
|
command: summary,
|
|
45014
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
45046
|
+
explanation: _optionalChain([required, 'optionalAccess', _1037 => _1037.toolExplanation]),
|
|
45015
45047
|
approvalType
|
|
45016
45048
|
})]);
|
|
45017
45049
|
break;
|
|
@@ -45041,7 +45073,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
45041
45073
|
const status = approved ? "approved" : "rejected";
|
|
45042
45074
|
if (escalatedData) {
|
|
45043
45075
|
pendingEscalatedRef.current.delete(requestId);
|
|
45044
|
-
_optionalChain([callbacks, 'access',
|
|
45076
|
+
_optionalChain([callbacks, 'access', _1038 => _1038.onEscalatedApprovalResult, 'optionalCall', _1039 => _1039(requestId, approved, {
|
|
45045
45077
|
command: escalatedData.command,
|
|
45046
45078
|
explanation: escalatedData.explanation,
|
|
45047
45079
|
approvalType: escalatedData.approvalType
|
|
@@ -45087,29 +45119,29 @@ function useRealtimeChunkProcessor(options) {
|
|
|
45087
45119
|
emitSegments(accumulator.getSegments());
|
|
45088
45120
|
}
|
|
45089
45121
|
}
|
|
45090
|
-
_optionalChain([callbacks, 'access',
|
|
45122
|
+
_optionalChain([callbacks, 'access', _1040 => _1040.onApprovalResolved, 'optionalCall', _1041 => _1041(requestId, status, approvalType, resolvedByName)]);
|
|
45091
45123
|
break;
|
|
45092
45124
|
}
|
|
45093
45125
|
case "error": {
|
|
45094
45126
|
let message2;
|
|
45095
|
-
if ("details" in action && _optionalChain([action, 'optionalAccess',
|
|
45127
|
+
if ("details" in action && _optionalChain([action, 'optionalAccess', _1042 => _1042.details])) {
|
|
45096
45128
|
try {
|
|
45097
|
-
message2 = _optionalChain([JSON, 'access',
|
|
45129
|
+
message2 = _optionalChain([JSON, 'access', _1043 => _1043.parse, 'call', _1044 => _1044(action.details), 'optionalAccess', _1045 => _1045.error, 'optionalAccess', _1046 => _1046.message]);
|
|
45098
45130
|
} catch (e52) {
|
|
45099
45131
|
message2 = action.details;
|
|
45100
45132
|
}
|
|
45101
45133
|
}
|
|
45102
45134
|
const segments = accumulator.addError(action.error, message2);
|
|
45103
45135
|
emitSegments(segments);
|
|
45104
|
-
_optionalChain([callbacks, 'access',
|
|
45136
|
+
_optionalChain([callbacks, 'access', _1047 => _1047.onError, 'optionalCall', _1048 => _1048(action.error, message2)]);
|
|
45105
45137
|
break;
|
|
45106
45138
|
}
|
|
45107
45139
|
case "system": {
|
|
45108
|
-
_optionalChain([callbacks, 'access',
|
|
45140
|
+
_optionalChain([callbacks, 'access', _1049 => _1049.onSystemMessage, 'optionalCall', _1050 => _1050(action.text, { streamSeq })]);
|
|
45109
45141
|
break;
|
|
45110
45142
|
}
|
|
45111
45143
|
case "direct_message": {
|
|
45112
|
-
_optionalChain([callbacks, 'access',
|
|
45144
|
+
_optionalChain([callbacks, 'access', _1051 => _1051.onDirectMessage, 'optionalCall', _1052 => _1052(action.text, {
|
|
45113
45145
|
ownerType: action.ownerType,
|
|
45114
45146
|
displayName: action.displayName,
|
|
45115
45147
|
userId: action.userId,
|
|
@@ -45118,7 +45150,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
45118
45150
|
break;
|
|
45119
45151
|
}
|
|
45120
45152
|
case "message_request":
|
|
45121
|
-
_optionalChain([callbacks, 'access',
|
|
45153
|
+
_optionalChain([callbacks, 'access', _1053 => _1053.onUserMessage, 'optionalCall', _1054 => _1054(action.text, {
|
|
45122
45154
|
ownerType: action.ownerType,
|
|
45123
45155
|
displayName: action.displayName,
|
|
45124
45156
|
userId: action.userId,
|
|
@@ -45127,7 +45159,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
45127
45159
|
})]);
|
|
45128
45160
|
break;
|
|
45129
45161
|
case "token_usage":
|
|
45130
|
-
_optionalChain([callbacks, 'access',
|
|
45162
|
+
_optionalChain([callbacks, 'access', _1055 => _1055.onTokenUsage, 'optionalCall', _1056 => _1056(action.data)]);
|
|
45131
45163
|
break;
|
|
45132
45164
|
case "context_compaction_start": {
|
|
45133
45165
|
const standalone = !isInStreamRef.current;
|
|
@@ -45142,7 +45174,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
45142
45174
|
break;
|
|
45143
45175
|
}
|
|
45144
45176
|
case "dialog_closed":
|
|
45145
|
-
_optionalChain([callbacks, 'access',
|
|
45177
|
+
_optionalChain([callbacks, 'access', _1057 => _1057.onDialogClosed, 'optionalCall', _1058 => _1058()]);
|
|
45146
45178
|
break;
|
|
45147
45179
|
default:
|
|
45148
45180
|
break;
|
|
@@ -45189,7 +45221,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
45189
45221
|
const data = await res.json();
|
|
45190
45222
|
return _nullishCoalesce(data.commands, () => ( []));
|
|
45191
45223
|
} catch (err) {
|
|
45192
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
45224
|
+
if (_optionalChain([err, 'optionalAccess', _1059 => _1059.name]) === "AbortError") throw err;
|
|
45193
45225
|
console.warn("[chat] slash-commands fetch failed, showing none:", err);
|
|
45194
45226
|
return [];
|
|
45195
45227
|
}
|
|
@@ -45210,7 +45242,7 @@ function useSlashCommands(prefix, commandsUrl) {
|
|
|
45210
45242
|
const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
|
|
45211
45243
|
if (!cancelled) setCommands(next);
|
|
45212
45244
|
} catch (err) {
|
|
45213
|
-
if (!cancelled && _optionalChain([err, 'optionalAccess',
|
|
45245
|
+
if (!cancelled && _optionalChain([err, 'optionalAccess', _1060 => _1060.name]) !== "AbortError") {
|
|
45214
45246
|
console.warn("[use-slash-commands] fetch failed:", err);
|
|
45215
45247
|
}
|
|
45216
45248
|
} finally {
|
|
@@ -45229,7 +45261,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
|
|
|
45229
45261
|
const query = _reactquery.useQuery.call(void 0, {
|
|
45230
45262
|
queryKey: ["chat-slash-commands", commandsUrl],
|
|
45231
45263
|
queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
|
|
45232
|
-
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
45264
|
+
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1061 => _1061.enabled]), () => ( true)),
|
|
45233
45265
|
staleTime: Infinity,
|
|
45234
45266
|
gcTime: Infinity,
|
|
45235
45267
|
// The commands registry is non-critical chrome — a failure degrades to an
|
|
@@ -45265,18 +45297,18 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
|
|
|
45265
45297
|
}
|
|
45266
45298
|
const data = await res.json();
|
|
45267
45299
|
return {
|
|
45268
|
-
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
45269
|
-
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
45270
|
-
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
45300
|
+
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1062 => _1062.greeting]), () => ( null)),
|
|
45301
|
+
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1063 => _1063.enabledRagTableIds]), () => ( [])),
|
|
45302
|
+
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1064 => _1064.suggestedQueries]), () => ( []))
|
|
45271
45303
|
};
|
|
45272
45304
|
} catch (err) {
|
|
45273
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
45305
|
+
if (_optionalChain([err, 'optionalAccess', _1065 => _1065.name]) === "AbortError") throw err;
|
|
45274
45306
|
console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
|
|
45275
45307
|
return EMPTY_STATE_FALLBACK;
|
|
45276
45308
|
}
|
|
45277
45309
|
}
|
|
45278
45310
|
function useEmptyStateConfig(emptyStateUrl, options) {
|
|
45279
|
-
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
45311
|
+
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1066 => _1066.enabled]), () => ( true))) && !!emptyStateUrl;
|
|
45280
45312
|
const query = _reactquery.useQuery.call(void 0, {
|
|
45281
45313
|
queryKey: ["chat-empty-state", emptyStateUrl],
|
|
45282
45314
|
queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
|
|
@@ -45305,7 +45337,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
|
|
|
45305
45337
|
var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
|
|
45306
45338
|
function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
45307
45339
|
return new Promise((resolve, reject) => {
|
|
45308
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
45340
|
+
if (_optionalChain([signal, 'optionalAccess', _1067 => _1067.aborted])) {
|
|
45309
45341
|
reject(new Error("Upload cancelled"));
|
|
45310
45342
|
return;
|
|
45311
45343
|
}
|
|
@@ -45319,7 +45351,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
45319
45351
|
xhr.removeEventListener("error", handleError);
|
|
45320
45352
|
xhr.removeEventListener("abort", handleAbort);
|
|
45321
45353
|
xhr.removeEventListener("timeout", handleTimeout);
|
|
45322
|
-
_optionalChain([signal, 'optionalAccess',
|
|
45354
|
+
_optionalChain([signal, 'optionalAccess', _1068 => _1068.removeEventListener, 'call', _1069 => _1069("abort", handleSignalAbort)]);
|
|
45323
45355
|
if (xhr.readyState !== XMLHttpRequest.DONE) xhr.abort();
|
|
45324
45356
|
};
|
|
45325
45357
|
const handleProgress = (event) => {
|
|
@@ -45355,7 +45387,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
45355
45387
|
const handleSignalAbort = () => {
|
|
45356
45388
|
xhr.abort();
|
|
45357
45389
|
};
|
|
45358
|
-
_optionalChain([signal, 'optionalAccess',
|
|
45390
|
+
_optionalChain([signal, 'optionalAccess', _1070 => _1070.addEventListener, 'call', _1071 => _1071("abort", handleSignalAbort, { once: true })]);
|
|
45359
45391
|
xhr.upload.addEventListener("progress", handleProgress);
|
|
45360
45392
|
xhr.addEventListener("load", handleLoad);
|
|
45361
45393
|
xhr.addEventListener("error", handleError);
|
|
@@ -45399,12 +45431,12 @@ function useChatAttachments() {
|
|
|
45399
45431
|
try {
|
|
45400
45432
|
sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
|
|
45401
45433
|
} catch (err) {
|
|
45402
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
45434
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1072 => _1072.signal, 'access', _1073 => _1073.aborted])) return;
|
|
45403
45435
|
throw new Error(
|
|
45404
45436
|
`Could not read file content: ${err instanceof Error ? err.message : String(err)}`
|
|
45405
45437
|
);
|
|
45406
45438
|
}
|
|
45407
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
45439
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1074 => _1074.signal, 'access', _1075 => _1075.aborted])) return;
|
|
45408
45440
|
if (!sniffed) {
|
|
45409
45441
|
throw new Error("Unrecognized file format");
|
|
45410
45442
|
}
|
|
@@ -45418,7 +45450,7 @@ function useChatAttachments() {
|
|
|
45418
45450
|
const urlResp = await _chunkDCIB6AK3cjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
|
|
45419
45451
|
method: "POST",
|
|
45420
45452
|
headers: { "Content-Type": "application/json" },
|
|
45421
|
-
signal: _optionalChain([ctrl, 'optionalAccess',
|
|
45453
|
+
signal: _optionalChain([ctrl, 'optionalAccess', _1076 => _1076.signal]),
|
|
45422
45454
|
body: JSON.stringify({
|
|
45423
45455
|
fileName: att.file.name,
|
|
45424
45456
|
// Pass the SNIFFED MIME (not `file.type`, which can be a
|
|
@@ -45444,9 +45476,9 @@ function useChatAttachments() {
|
|
|
45444
45476
|
(pct) => {
|
|
45445
45477
|
updateOne(att.id, { progress: pct });
|
|
45446
45478
|
},
|
|
45447
|
-
_optionalChain([ctrl, 'optionalAccess',
|
|
45479
|
+
_optionalChain([ctrl, 'optionalAccess', _1077 => _1077.signal])
|
|
45448
45480
|
);
|
|
45449
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
45481
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1078 => _1078.signal, 'access', _1079 => _1079.aborted])) return;
|
|
45450
45482
|
updateOne(att.id, {
|
|
45451
45483
|
status: "ready",
|
|
45452
45484
|
progress: 100,
|
|
@@ -45454,7 +45486,7 @@ function useChatAttachments() {
|
|
|
45454
45486
|
viewToken: mintData.viewToken
|
|
45455
45487
|
});
|
|
45456
45488
|
} catch (err) {
|
|
45457
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
45489
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1080 => _1080.signal, 'access', _1081 => _1081.aborted])) return;
|
|
45458
45490
|
const message2 = err instanceof Error ? err.message : String(err);
|
|
45459
45491
|
updateOne(att.id, { status: "error", progress: 0, errorMessage: message2 });
|
|
45460
45492
|
} finally {
|
|
@@ -45605,7 +45637,7 @@ var ANON_DEFAULTS = {
|
|
|
45605
45637
|
function useResolveChatIdentity(enabled) {
|
|
45606
45638
|
const runtime = _chunkN2DVKXN4cjs.useRequiredChatRuntime.call(void 0, );
|
|
45607
45639
|
const url = runtime.endpoints.identityUrl;
|
|
45608
|
-
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkDCIB6AK3cjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess',
|
|
45640
|
+
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkDCIB6AK3cjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _1082 => _1082.email]), () => ( null));
|
|
45609
45641
|
const [data, setData] = _react.useState.call(void 0, ANON_DEFAULTS);
|
|
45610
45642
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, enabled);
|
|
45611
45643
|
_react.useEffect.call(void 0, () => {
|
|
@@ -45696,7 +45728,7 @@ function useSSE({ useMock = true, debugMode = false, streamFn } = {}) {
|
|
|
45696
45728
|
yield chunk;
|
|
45697
45729
|
}
|
|
45698
45730
|
} catch (err) {
|
|
45699
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
45731
|
+
if (_optionalChain([err, 'optionalAccess', _1083 => _1083.name]) === "AbortError" || ctrl.signal.aborted) {
|
|
45700
45732
|
return;
|
|
45701
45733
|
}
|
|
45702
45734
|
const errorMessage = err instanceof Error ? err.message : "An error occurred";
|
|
@@ -45747,7 +45779,7 @@ function useChat({
|
|
|
45747
45779
|
const onMessagesChangeRef = _react.useRef.call(void 0, onMessagesChange);
|
|
45748
45780
|
onMessagesChangeRef.current = onMessagesChange;
|
|
45749
45781
|
_react.useEffect.call(void 0, () => {
|
|
45750
|
-
_optionalChain([onMessagesChangeRef, 'access',
|
|
45782
|
+
_optionalChain([onMessagesChangeRef, 'access', _1084 => _1084.current, 'optionalCall', _1085 => _1085(messages)]);
|
|
45751
45783
|
}, [messages]);
|
|
45752
45784
|
const {
|
|
45753
45785
|
streamMessage,
|
|
@@ -45784,7 +45816,7 @@ function useChat({
|
|
|
45784
45816
|
name: "You",
|
|
45785
45817
|
content: text,
|
|
45786
45818
|
timestamp: /* @__PURE__ */ new Date(),
|
|
45787
|
-
..._optionalChain([options, 'optionalAccess',
|
|
45819
|
+
..._optionalChain([options, 'optionalAccess', _1086 => _1086.hidden]) ? { hidden: true } : {}
|
|
45788
45820
|
};
|
|
45789
45821
|
addMessage(userMessage);
|
|
45790
45822
|
setIsTyping(true);
|
|
@@ -45846,7 +45878,7 @@ function useChat({
|
|
|
45846
45878
|
currentTextSegment = "";
|
|
45847
45879
|
}
|
|
45848
45880
|
const seg = segment;
|
|
45849
|
-
const proposalId = _optionalChain([seg, 'access',
|
|
45881
|
+
const proposalId = _optionalChain([seg, 'access', _1087 => _1087.data, 'optionalAccess', _1088 => _1088.requestId]);
|
|
45850
45882
|
const updateApprovalMessage = (transform) => {
|
|
45851
45883
|
setMessages((prev) => {
|
|
45852
45884
|
for (let i = prev.length - 1; i >= 0; i--) {
|
|
@@ -45855,7 +45887,7 @@ function useChat({
|
|
|
45855
45887
|
if (!Array.isArray(m.content)) continue;
|
|
45856
45888
|
const segments = m.content;
|
|
45857
45889
|
const hasMatch = segments.some(
|
|
45858
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
45890
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1089 => _1089.data, 'optionalAccess', _1090 => _1090.requestId]) === proposalId
|
|
45859
45891
|
);
|
|
45860
45892
|
if (!hasMatch) continue;
|
|
45861
45893
|
const next = [...prev];
|
|
@@ -45897,11 +45929,11 @@ function useChat({
|
|
|
45897
45929
|
if (!Array.isArray(m.content)) continue;
|
|
45898
45930
|
const segments = m.content;
|
|
45899
45931
|
const hasMatch = segments.some(
|
|
45900
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
45932
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1091 => _1091.data, 'optionalAccess', _1092 => _1092.requestId]) === decision.proposalId
|
|
45901
45933
|
);
|
|
45902
45934
|
if (!hasMatch) continue;
|
|
45903
45935
|
const flipped = segments.map(
|
|
45904
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
45936
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1093 => _1093.data, 'optionalAccess', _1094 => _1094.requestId]) === decision.proposalId ? { ...s, status: decision.action } : s
|
|
45905
45937
|
);
|
|
45906
45938
|
const next = [...prev];
|
|
45907
45939
|
next[i] = { ...m, content: flipped };
|
|
@@ -46063,8 +46095,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
46063
46095
|
})),
|
|
46064
46096
|
{ role: "user", content: message2 }
|
|
46065
46097
|
];
|
|
46066
|
-
const targetPath = _optionalChain([extra, 'optionalAccess',
|
|
46067
|
-
const requestBody = _optionalChain([extra, 'optionalAccess',
|
|
46098
|
+
const targetPath = _optionalChain([extra, 'optionalAccess', _1095 => _1095.approvalAction]) ? endpoints.approvalToolUrl : endpoints.chatStreamUrl;
|
|
46099
|
+
const requestBody = _optionalChain([extra, 'optionalAccess', _1096 => _1096.approvalAction]) ? {
|
|
46068
46100
|
proposal_id: extra.approvalAction.proposalId,
|
|
46069
46101
|
action: extra.approvalAction.action,
|
|
46070
46102
|
messages: currentMessages.filter((m) => (m.role === "user" || m.role === "assistant") && !m.hidden).map((m) => ({
|
|
@@ -46073,8 +46105,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
46073
46105
|
}))
|
|
46074
46106
|
} : {
|
|
46075
46107
|
messages: apiMessages,
|
|
46076
|
-
..._optionalChain([extra, 'optionalAccess',
|
|
46077
|
-
..._optionalChain([extra, 'optionalAccess',
|
|
46108
|
+
..._optionalChain([extra, 'optionalAccess', _1097 => _1097.commandOverride]) ? { commandOverride: extra.commandOverride } : {},
|
|
46109
|
+
..._optionalChain([extra, 'optionalAccess', _1098 => _1098.pendingAttachments]) && extra.pendingAttachments.length > 0 ? { pendingAttachments: extra.pendingAttachments } : {}
|
|
46078
46110
|
};
|
|
46079
46111
|
const response = await _chunkDCIB6AK3cjs.embedAuthedFetch.call(void 0, targetPath, {
|
|
46080
46112
|
method: "POST",
|
|
@@ -46084,7 +46116,7 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
46084
46116
|
if (!response.ok) {
|
|
46085
46117
|
throw new Error(`Chat request failed: ${response.status}`);
|
|
46086
46118
|
}
|
|
46087
|
-
const reader = _optionalChain([response, 'access',
|
|
46119
|
+
const reader = _optionalChain([response, 'access', _1099 => _1099.body, 'optionalAccess', _1100 => _1100.getReader, 'call', _1101 => _1101()]);
|
|
46088
46120
|
if (!reader) throw new Error("No response body");
|
|
46089
46121
|
const decoder = new TextDecoder();
|
|
46090
46122
|
let buffer = "";
|
|
@@ -46167,7 +46199,7 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
46167
46199
|
const toolName = typeof meta.tool_name === "string" ? meta.tool_name : void 0;
|
|
46168
46200
|
const result = _nullishCoalesce(meta.result, () => ( null));
|
|
46169
46201
|
const card = _nullishCoalesce(meta.card, () => ( null));
|
|
46170
|
-
if (_optionalChain([card, 'optionalAccess',
|
|
46202
|
+
if (_optionalChain([card, 'optionalAccess', _1102 => _1102.ref, 'optionalAccess', _1103 => _1103.id]) && _optionalChain([card, 'optionalAccess', _1104 => _1104.type])) {
|
|
46171
46203
|
const existing = _nullishCoalesce(refsMapRef.current.get(sendIdx), () => ( {}));
|
|
46172
46204
|
const key = buildChatRefKey(card.type, card.ref.id);
|
|
46173
46205
|
refsMapRef.current.set(sendIdx, { ...existing, [key]: card.ref });
|
|
@@ -46180,8 +46212,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
46180
46212
|
willAutoContinue: meta.willAutoContinue === true,
|
|
46181
46213
|
...toolName ? { toolName } : {},
|
|
46182
46214
|
...result ? { result } : {},
|
|
46183
|
-
..._optionalChain([card, 'optionalAccess',
|
|
46184
|
-
..._optionalChain([card, 'optionalAccess',
|
|
46215
|
+
..._optionalChain([card, 'optionalAccess', _1105 => _1105.marker]) ? { marker: card.marker } : {},
|
|
46216
|
+
..._optionalChain([card, 'optionalAccess', _1106 => _1106.ref]) ? { cardRef: card.ref } : {},
|
|
46185
46217
|
...typeof meta.receiptText === "string" ? { receiptText: meta.receiptText } : {},
|
|
46186
46218
|
proposalId: typeof meta.proposalId === "string" ? meta.proposalId : void 0
|
|
46187
46219
|
};
|
|
@@ -46300,7 +46332,7 @@ var DEFAULT_CHAT_SOURCE = "embed";
|
|
|
46300
46332
|
var chatStorageKey = (source) => {
|
|
46301
46333
|
const base = `mingo-chat-${source}-v${CHAT_STORAGE_VERSION}`;
|
|
46302
46334
|
const auth = _chunkDCIB6AK3cjs.getEmbedProxyAuth.call(void 0, );
|
|
46303
|
-
if (_optionalChain([auth, 'optionalAccess',
|
|
46335
|
+
if (_optionalChain([auth, 'optionalAccess', _1107 => _1107.email])) {
|
|
46304
46336
|
return `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}`;
|
|
46305
46337
|
}
|
|
46306
46338
|
return base;
|
|
@@ -46355,7 +46387,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
46355
46387
|
const { active = true } = runtimeOptions;
|
|
46356
46388
|
const runtime = _chunkN2DVKXN4cjs.useRequiredChatRuntime.call(void 0, );
|
|
46357
46389
|
const source = runtime.source || DEFAULT_CHAT_SOURCE;
|
|
46358
|
-
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
46390
|
+
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1108 => _1108.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
|
|
46359
46391
|
const persistedRef = _react.useRef.call(void 0, null);
|
|
46360
46392
|
if (persistedRef.current === null) {
|
|
46361
46393
|
pruneStaleChatStorage(source);
|
|
@@ -46460,7 +46492,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
46460
46492
|
const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
|
|
46461
46493
|
sources = sourcesMapRef.current.get(lookupIdx);
|
|
46462
46494
|
chatRefs = _nullishCoalesce(m.chatRefs, () => ( refsMapRef.current.get(lookupIdx)));
|
|
46463
|
-
scrollAnchor = _nullishCoalesce(_optionalChain([metaMapRef, 'access',
|
|
46495
|
+
scrollAnchor = _nullishCoalesce(_optionalChain([metaMapRef, 'access', _1109 => _1109.current, 'access', _1110 => _1110.get, 'call', _1111 => _1111(lookupIdx), 'optionalAccess', _1112 => _1112.scrollAnchor]), () => ( void 0));
|
|
46464
46496
|
}
|
|
46465
46497
|
return {
|
|
46466
46498
|
id: m.id,
|
|
@@ -46508,7 +46540,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
46508
46540
|
);
|
|
46509
46541
|
return;
|
|
46510
46542
|
}
|
|
46511
|
-
const refSlug = typeof _optionalChain([reference, 'access',
|
|
46543
|
+
const refSlug = typeof _optionalChain([reference, 'access', _1113 => _1113.metadata, 'optionalAccess', _1114 => _1114.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
|
|
46512
46544
|
const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
|
|
46513
46545
|
const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
46514
46546
|
const text = `/${cmdId} display "${escaped}"`;
|
|
@@ -46580,18 +46612,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
46580
46612
|
clearMessages,
|
|
46581
46613
|
streamingPhase,
|
|
46582
46614
|
/** Provider key for the lib's `<ModelDisplay>` icon. */
|
|
46583
|
-
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
46584
|
-
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
46585
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
46615
|
+
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1115 => _1115.provider]), () => ( null)),
|
|
46616
|
+
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1116 => _1116.modelLabel]), () => ( null)),
|
|
46617
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1117 => _1117.contextWindowMaxTokens]), () => ( null)),
|
|
46586
46618
|
/** Input tokens (known after server's message_start frame; null until). */
|
|
46587
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
46619
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1118 => _1118.inputTokens]), () => ( null)),
|
|
46588
46620
|
/** Output tokens (known only after server's trailing usage frame). */
|
|
46589
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
46621
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1119 => _1119.outputTokens]), () => ( null)),
|
|
46590
46622
|
/** Cache hit % (read / total-input × 100). null during streaming. */
|
|
46591
|
-
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
46623
|
+
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1120 => _1120.cacheHitRatePct]), () => ( null)),
|
|
46592
46624
|
/** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
|
|
46593
46625
|
* token counts). null until the trailing usage frame lands. */
|
|
46594
|
-
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
46626
|
+
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1121 => _1121.breakdown]), () => ( null)),
|
|
46595
46627
|
// ─── Dialog management — stubs for v1 ────────────────────────────────
|
|
46596
46628
|
// Guide mode currently keeps its history in `localStorage` opaquely
|
|
46597
46629
|
// under the hood (`runtime.source` namespaced key). Surfacing that
|
|
@@ -46649,15 +46681,15 @@ var noopRejectRequest = async (_id, _reason) => {
|
|
|
46649
46681
|
|
|
46650
46682
|
// src/components/chat/utils/process-historical-messages.ts
|
|
46651
46683
|
function getOwnerDisplayName(owner) {
|
|
46652
|
-
if (_optionalChain([owner, 'optionalAccess',
|
|
46684
|
+
if (_optionalChain([owner, 'optionalAccess', _1122 => _1122.type]) === OWNER_TYPE.ADMIN && owner.user) {
|
|
46653
46685
|
const { firstName, lastName } = owner.user;
|
|
46654
46686
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
46655
46687
|
if (name) return name;
|
|
46656
46688
|
}
|
|
46657
|
-
return _optionalChain([owner, 'optionalAccess',
|
|
46689
|
+
return _optionalChain([owner, 'optionalAccess', _1123 => _1123.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
46658
46690
|
}
|
|
46659
46691
|
function getOwnerAvatar(owner) {
|
|
46660
|
-
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess',
|
|
46692
|
+
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _1124 => _1124.user, 'optionalAccess', _1125 => _1125.image, 'optionalAccess', _1126 => _1126.imageUrl]), () => ( void 0));
|
|
46661
46693
|
}
|
|
46662
46694
|
function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
|
|
46663
46695
|
messageDataArray.forEach((data) => {
|
|
@@ -46720,14 +46752,14 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
46720
46752
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
46721
46753
|
return;
|
|
46722
46754
|
}
|
|
46723
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
46755
|
+
const isUserMessage = _optionalChain([msg, 'access', _1127 => _1127.owner, 'optionalAccess', _1128 => _1128.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1129 => _1129.owner, 'optionalAccess', _1130 => _1130.type]) === OWNER_TYPE.ADMIN;
|
|
46724
46756
|
if (isUserMessage) {
|
|
46725
46757
|
flushAssistantMessage();
|
|
46726
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
46758
|
+
const userAuthorType = _optionalChain([msg, 'access', _1131 => _1131.owner, 'optionalAccess', _1132 => _1132.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
46727
46759
|
messageDataArray.forEach((data) => {
|
|
46728
46760
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
46729
46761
|
const rawContext = data.contextItems;
|
|
46730
|
-
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess',
|
|
46762
|
+
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1133 => _1133.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1134 => _1134.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
|
|
46731
46763
|
processedMessages.push({
|
|
46732
46764
|
id: msg.id,
|
|
46733
46765
|
role: "user",
|
|
@@ -46751,7 +46783,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
46751
46783
|
});
|
|
46752
46784
|
const nextMsg = messages[index + 1];
|
|
46753
46785
|
const isLastMessage = index === messages.length - 1;
|
|
46754
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
46786
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1135 => _1135.owner, 'optionalAccess', _1136 => _1136.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1137 => _1137.owner, 'optionalAccess', _1138 => _1138.type]) === OWNER_TYPE.ADMIN);
|
|
46755
46787
|
if (isLastMessage || nextIsFromUser) {
|
|
46756
46788
|
flushAssistantMessage();
|
|
46757
46789
|
}
|
|
@@ -46861,7 +46893,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
46861
46893
|
}
|
|
46862
46894
|
}
|
|
46863
46895
|
} else {
|
|
46864
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
46896
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1139 => _1139.set, 'call', _1140 => _1140(data.approvalRequestId, {
|
|
46865
46897
|
command: data.command || "",
|
|
46866
46898
|
explanation: data.explanation,
|
|
46867
46899
|
approvalType,
|
|
@@ -46875,8 +46907,8 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
46875
46907
|
const existingStatus = approvalStatuses[data.approvalRequestId];
|
|
46876
46908
|
const status = existingStatus || (data.approved ? "approved" : "rejected");
|
|
46877
46909
|
const resolvedByName = "resolvedByName" in data ? data.resolvedByName : void 0;
|
|
46878
|
-
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess',
|
|
46879
|
-
if (_optionalChain([escalatedData, 'optionalAccess',
|
|
46910
|
+
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _1141 => _1141.get, 'call', _1142 => _1142(data.approvalRequestId)]);
|
|
46911
|
+
if (_optionalChain([escalatedData, 'optionalAccess', _1143 => _1143.toolCalls]) && escalatedData.toolCalls.length > 0) {
|
|
46880
46912
|
if (batchApprovalsEnabled) {
|
|
46881
46913
|
accumulator.addApprovalBatch(
|
|
46882
46914
|
data.approvalRequestId,
|
|
@@ -46898,7 +46930,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
46898
46930
|
);
|
|
46899
46931
|
}
|
|
46900
46932
|
}
|
|
46901
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
46933
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1144 => _1144.delete, 'call', _1145 => _1145(data.approvalRequestId)]);
|
|
46902
46934
|
break;
|
|
46903
46935
|
}
|
|
46904
46936
|
if (escalatedData) {
|
|
@@ -46907,7 +46939,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
46907
46939
|
explanation: escalatedData.explanation,
|
|
46908
46940
|
approvalType: escalatedData.approvalType
|
|
46909
46941
|
});
|
|
46910
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
46942
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1146 => _1146.delete, 'call', _1147 => _1147(data.approvalRequestId)]);
|
|
46911
46943
|
}
|
|
46912
46944
|
const before = accumulator.getSegments();
|
|
46913
46945
|
const after = accumulator.updateApprovalStatus(data.approvalRequestId, status, resolvedByName);
|
|
@@ -46923,9 +46955,9 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
46923
46955
|
case MESSAGE_TYPE.ERROR:
|
|
46924
46956
|
if ("error" in data) {
|
|
46925
46957
|
let message2;
|
|
46926
|
-
if ("details" in data && _optionalChain([data, 'optionalAccess',
|
|
46958
|
+
if ("details" in data && _optionalChain([data, 'optionalAccess', _1148 => _1148.details])) {
|
|
46927
46959
|
try {
|
|
46928
|
-
message2 = _optionalChain([JSON, 'access',
|
|
46960
|
+
message2 = _optionalChain([JSON, 'access', _1149 => _1149.parse, 'call', _1150 => _1150(data.details), 'optionalAccess', _1151 => _1151.error, 'optionalAccess', _1152 => _1152.message]);
|
|
46929
46961
|
} catch (e59) {
|
|
46930
46962
|
message2 = data.details;
|
|
46931
46963
|
}
|
|
@@ -47008,14 +47040,14 @@ function processHistoricalMessagesWithErrors(messages, options = {}) {
|
|
|
47008
47040
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
47009
47041
|
return;
|
|
47010
47042
|
}
|
|
47011
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
47043
|
+
const isUserMessage = _optionalChain([msg, 'access', _1153 => _1153.owner, 'optionalAccess', _1154 => _1154.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1155 => _1155.owner, 'optionalAccess', _1156 => _1156.type]) === OWNER_TYPE.ADMIN;
|
|
47012
47044
|
if (isUserMessage) {
|
|
47013
47045
|
flushAssistantMessage();
|
|
47014
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
47046
|
+
const userAuthorType = _optionalChain([msg, 'access', _1157 => _1157.owner, 'optionalAccess', _1158 => _1158.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
47015
47047
|
messageDataArray.forEach((data) => {
|
|
47016
47048
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
47017
47049
|
const rawContext = data.contextItems;
|
|
47018
|
-
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess',
|
|
47050
|
+
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1159 => _1159.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1160 => _1160.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
|
|
47019
47051
|
processedMessages.push({
|
|
47020
47052
|
id: msg.id,
|
|
47021
47053
|
role: "user",
|
|
@@ -47039,7 +47071,7 @@ function processHistoricalMessagesWithErrors(messages, options = {}) {
|
|
|
47039
47071
|
});
|
|
47040
47072
|
const nextMsg = messages[index + 1];
|
|
47041
47073
|
const isLastMessage = index === messages.length - 1;
|
|
47042
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
47074
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1161 => _1161.owner, 'optionalAccess', _1162 => _1162.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1163 => _1163.owner, 'optionalAccess', _1164 => _1164.type]) === OWNER_TYPE.ADMIN);
|
|
47043
47075
|
if (isLastMessage || nextIsFromUser) {
|
|
47044
47076
|
flushAssistantMessage();
|
|
47045
47077
|
}
|
|
@@ -47375,7 +47407,7 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
47375
47407
|
}, [active, fetchDialogs, loadDialogsPage]);
|
|
47376
47408
|
const sendMessage = _react.useCallback.call(void 0,
|
|
47377
47409
|
async (text, sendOptions) => {
|
|
47378
|
-
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess',
|
|
47410
|
+
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _1165 => _1165.hidden]), () => ( false));
|
|
47379
47411
|
setMessages((prev) => [
|
|
47380
47412
|
...prev,
|
|
47381
47413
|
{
|
|
@@ -47539,11 +47571,11 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
47539
47571
|
// Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
|
|
47540
47572
|
// contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
|
|
47541
47573
|
// matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
|
|
47542
|
-
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
47543
|
-
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
47544
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
47545
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
47546
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
47574
|
+
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1166 => _1166.provider]), () => ( modelProvider)), () => ( null)),
|
|
47575
|
+
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1167 => _1167.modelLabel]), () => ( modelLabel)), () => ( null)),
|
|
47576
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1168 => _1168.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _1169 => _1169.contextWindowMaxTokens]))), () => ( null)),
|
|
47577
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1170 => _1170.inputTokensSize]), () => ( null)),
|
|
47578
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1171 => _1171.outputTokensSize]), () => ( null)),
|
|
47547
47579
|
currentCacheHitRatePct: null,
|
|
47548
47580
|
currentUsageBreakdown: null,
|
|
47549
47581
|
// Dialog management
|
|
@@ -47791,7 +47823,7 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
47791
47823
|
break;
|
|
47792
47824
|
case "approval_batch": {
|
|
47793
47825
|
const allDone = !!segment.data.executions && segment.data.toolCalls.every(
|
|
47794
|
-
(c) => _optionalChain([segment, 'access',
|
|
47826
|
+
(c) => _optionalChain([segment, 'access', _1172 => _1172.data, 'access', _1173 => _1173.executions, 'optionalAccess', _1174 => _1174[c.toolExecutionRequestId], 'optionalAccess', _1175 => _1175.status]) === "done"
|
|
47795
47827
|
);
|
|
47796
47828
|
if (segment.status !== "rejected" && !allDone) {
|
|
47797
47829
|
hasIncompleteState = true;
|
|
@@ -47859,20 +47891,20 @@ function mergeHistoryWithRealtime(input) {
|
|
|
47859
47891
|
const seqCoverageKnown = realtimeSeenStreamSeq > 0 && historyMaxStreamSeq > 0;
|
|
47860
47892
|
const historyCoversRealtime = seqCoverageKnown ? historyMaxStreamSeq >= realtimeSeenStreamSeq : null;
|
|
47861
47893
|
const trailing = processedHistory[processedHistory.length - 1];
|
|
47862
|
-
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess',
|
|
47863
|
-
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access',
|
|
47894
|
+
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _1176 => _1176.role]) === "assistant" ? trailing : null;
|
|
47895
|
+
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _1177 => _1177.content, 'access', _1178 => _1178.find, 'call', _1179 => _1179((s) => s.type === "approval_batch"), 'optionalAccess', _1180 => _1180.data, 'optionalAccess', _1181 => _1181.approvalRequestId]), () => ( null)) : null;
|
|
47864
47896
|
let processedToUse = processedHistory;
|
|
47865
47897
|
const pinnedSyntheticIds = /* @__PURE__ */ new Set();
|
|
47866
47898
|
const droppedSyntheticIds = /* @__PURE__ */ new Set();
|
|
47867
47899
|
if (historyBatchId) {
|
|
47868
47900
|
const batchTwins = existingMessages.filter(
|
|
47869
47901
|
(m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some(
|
|
47870
|
-
(s) => s.type === "approval_batch" && _optionalChain([s, 'access',
|
|
47902
|
+
(s) => s.type === "approval_batch" && _optionalChain([s, 'access', _1182 => _1182.data, 'optionalAccess', _1183 => _1183.approvalRequestId]) === historyBatchId
|
|
47871
47903
|
)
|
|
47872
47904
|
);
|
|
47873
47905
|
const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
|
|
47874
47906
|
if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
|
|
47875
|
-
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess',
|
|
47907
|
+
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _1184 => _1184.content])) ? historyTrailingAssistant.content.length : 0;
|
|
47876
47908
|
const realtimeSize = existingWithSameBatch.content.length;
|
|
47877
47909
|
if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
|
|
47878
47910
|
processedToUse = processedHistory.slice(0, -1);
|
|
@@ -47888,16 +47920,16 @@ function mergeHistoryWithRealtime(input) {
|
|
|
47888
47920
|
if (pinnedSyntheticIds.has(m.id)) return true;
|
|
47889
47921
|
if (droppedSyntheticIds.has(m.id)) return false;
|
|
47890
47922
|
if (processedIds.has(m.id)) return false;
|
|
47891
|
-
if (_optionalChain([rawHistoryIds, 'optionalAccess',
|
|
47923
|
+
if (_optionalChain([rawHistoryIds, 'optionalAccess', _1185 => _1185.has, 'call', _1186 => _1186(m.id)])) return false;
|
|
47892
47924
|
if (m.role === "user" && m.id.startsWith("optimistic-") && typeof m.content === "string") {
|
|
47893
|
-
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access',
|
|
47925
|
+
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _1187 => _1187.timestamp, 'optionalAccess', _1188 => _1188.getTime, 'call', _1189 => _1189()]), () => ( 0))) <= historyFetchedAt;
|
|
47894
47926
|
return !(canBeInSnapshot && processedToUse.some((pm) => pm.role === "user" && pm.content === m.content));
|
|
47895
47927
|
}
|
|
47896
47928
|
if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
|
|
47897
47929
|
if (m.role === "assistant" && trailingAssistantText && assistantAnswerText(m.content) === trailingAssistantText) {
|
|
47898
47930
|
return false;
|
|
47899
47931
|
}
|
|
47900
|
-
const covered = typeof m.streamSeq === "number" && historyMaxStreamSeq > 0 ? historyMaxStreamSeq >= m.streamSeq : historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access',
|
|
47932
|
+
const covered = typeof m.streamSeq === "number" && historyMaxStreamSeq > 0 ? historyMaxStreamSeq >= m.streamSeq : historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _1190 => _1190.timestamp, 'optionalAccess', _1191 => _1191.getTime, 'call', _1192 => _1192()]), () => ( 0))) <= historyFetchedAt;
|
|
47901
47933
|
if (covered) return false;
|
|
47902
47934
|
}
|
|
47903
47935
|
return true;
|
|
@@ -48117,7 +48149,7 @@ function useChatDialogManager({
|
|
|
48117
48149
|
const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
|
|
48118
48150
|
if (restoreTarget) {
|
|
48119
48151
|
try {
|
|
48120
|
-
await _optionalChain([unarchiveDialog, 'optionalCall',
|
|
48152
|
+
await _optionalChain([unarchiveDialog, 'optionalCall', _1193 => _1193(restoreTarget.id)]);
|
|
48121
48153
|
} catch (err) {
|
|
48122
48154
|
console.error("[useChatDialogManager] unarchive failed:", err);
|
|
48123
48155
|
return;
|
|
@@ -48527,7 +48559,7 @@ function EmbeddableChatInner({
|
|
|
48527
48559
|
}),
|
|
48528
48560
|
[commandsUrl]
|
|
48529
48561
|
);
|
|
48530
|
-
const userName = _optionalChain([identityUser, 'optionalAccess',
|
|
48562
|
+
const userName = _optionalChain([identityUser, 'optionalAccess', _1194 => _1194.firstName, 'optionalAccess', _1195 => _1195.trim, 'call', _1196 => _1196()]) || _optionalChain([identityUser, 'optionalAccess', _1197 => _1197.name, 'optionalAccess', _1198 => _1198.split, 'call', _1199 => _1199(" "), 'access', _1200 => _1200[0], 'optionalAccess', _1201 => _1201.trim, 'call', _1202 => _1202()]) || void 0;
|
|
48531
48563
|
const effectiveModes = _react.useMemo.call(void 0, () => {
|
|
48532
48564
|
if (modes) return modes;
|
|
48533
48565
|
const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
|
|
@@ -48536,19 +48568,19 @@ function EmbeddableChatInner({
|
|
|
48536
48568
|
const mingoCaps = _react.useMemo.call(void 0, () => {
|
|
48537
48569
|
if (mingoState) {
|
|
48538
48570
|
return {
|
|
48539
|
-
canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
48540
|
-
canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
48541
|
-
fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
48542
|
-
unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
48543
|
-
searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
48544
|
-
onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
48571
|
+
canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1203 => _1203.canRename]), () => ( false)),
|
|
48572
|
+
canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1204 => _1204.canArchive]), () => ( false)),
|
|
48573
|
+
fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1205 => _1205.fetchArchivedDialogs]),
|
|
48574
|
+
unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1206 => _1206.unarchiveDialog]),
|
|
48575
|
+
searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1207 => _1207.searchQuery]),
|
|
48576
|
+
onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1208 => _1208.onSearchChange])
|
|
48545
48577
|
};
|
|
48546
48578
|
}
|
|
48547
48579
|
return {
|
|
48548
|
-
canRename: !!_optionalChain([effectiveModes, 'access',
|
|
48549
|
-
canArchive: !!_optionalChain([effectiveModes, 'access',
|
|
48550
|
-
fetchArchivedDialogs: _optionalChain([effectiveModes, 'access',
|
|
48551
|
-
unarchiveDialog: _optionalChain([effectiveModes, 'access',
|
|
48580
|
+
canRename: !!_optionalChain([effectiveModes, 'access', _1209 => _1209.mingo, 'optionalAccess', _1210 => _1210.renameDialog]),
|
|
48581
|
+
canArchive: !!_optionalChain([effectiveModes, 'access', _1211 => _1211.mingo, 'optionalAccess', _1212 => _1212.archiveDialog]),
|
|
48582
|
+
fetchArchivedDialogs: _optionalChain([effectiveModes, 'access', _1213 => _1213.mingo, 'optionalAccess', _1214 => _1214.fetchArchivedDialogs]),
|
|
48583
|
+
unarchiveDialog: _optionalChain([effectiveModes, 'access', _1215 => _1215.mingo, 'optionalAccess', _1216 => _1216.unarchiveDialog]),
|
|
48552
48584
|
searchQuery: void 0,
|
|
48553
48585
|
onSearchChange: void 0
|
|
48554
48586
|
};
|
|
@@ -48562,7 +48594,7 @@ function EmbeddableChatInner({
|
|
|
48562
48594
|
if (controlledActiveMode === void 0) {
|
|
48563
48595
|
setUncontrolledActiveMode(next);
|
|
48564
48596
|
}
|
|
48565
|
-
_optionalChain([onActiveModeChange, 'optionalCall',
|
|
48597
|
+
_optionalChain([onActiveModeChange, 'optionalCall', _1217 => _1217(next)]);
|
|
48566
48598
|
},
|
|
48567
48599
|
[controlledActiveMode, onActiveModeChange]
|
|
48568
48600
|
);
|
|
@@ -48616,7 +48648,7 @@ function EmbeddableChatInner({
|
|
|
48616
48648
|
clear: clearAttachments
|
|
48617
48649
|
} = useChatAttachments();
|
|
48618
48650
|
const { panelRef: galleryPanelRef, modal: galleryModal } = useChatAttachmentImageGallery();
|
|
48619
|
-
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess',
|
|
48651
|
+
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1218 => _1218.maxItems]), () => ( 10));
|
|
48620
48652
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
48621
48653
|
const [contextItems, setContextItems] = _react.useState.call(void 0, []);
|
|
48622
48654
|
const [contextPickerOpen, setContextPickerOpen] = _react.useState.call(void 0, false);
|
|
@@ -48633,10 +48665,10 @@ function EmbeddableChatInner({
|
|
|
48633
48665
|
}, [activeDialogId, activeMode]);
|
|
48634
48666
|
const mentionMarkerByType = _react.useMemo.call(void 0, () => {
|
|
48635
48667
|
const m = /* @__PURE__ */ new Map();
|
|
48636
|
-
for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess',
|
|
48668
|
+
for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1219 => _1219.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
|
|
48637
48669
|
return m;
|
|
48638
|
-
}, [_optionalChain([contextPicker, 'optionalAccess',
|
|
48639
|
-
const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess',
|
|
48670
|
+
}, [_optionalChain([contextPicker, 'optionalAccess', _1220 => _1220.entityTypes])]);
|
|
48671
|
+
const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _1221 => _1221.entityTypes]);
|
|
48640
48672
|
const resolveContextIcon = _react.useMemo.call(void 0, () => {
|
|
48641
48673
|
const byType = /* @__PURE__ */ new Map();
|
|
48642
48674
|
for (const t of _nullishCoalesce(contextEntityTypes, () => ( []))) byType.set(t.type, t.icon);
|
|
@@ -48648,7 +48680,7 @@ function EmbeddableChatInner({
|
|
|
48648
48680
|
if (mentionActiveRef.current) {
|
|
48649
48681
|
if (contextItems.some((p) => `${p.type}:${p.id}` === key)) return;
|
|
48650
48682
|
if (contextItems.length >= contextMaxItems) return;
|
|
48651
|
-
_optionalChain([chatInputRef, 'access',
|
|
48683
|
+
_optionalChain([chatInputRef, 'access', _1222 => _1222.current, 'optionalAccess', _1223 => _1223.commitMention, 'call', _1224 => _1224(mentionTokenOf(key, mentionMarkerByType), {
|
|
48652
48684
|
label: item.label,
|
|
48653
48685
|
icon: resolveContextIcon(item)
|
|
48654
48686
|
})]);
|
|
@@ -48670,9 +48702,9 @@ function EmbeddableChatInner({
|
|
|
48670
48702
|
setContextItems((prev) => prev.filter((p) => `${p.type}:${p.id}` !== key));
|
|
48671
48703
|
if (mentionKeysRef.current.has(key)) {
|
|
48672
48704
|
mentionKeysRef.current.delete(key);
|
|
48673
|
-
const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access',
|
|
48705
|
+
const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _1225 => _1225.current, 'optionalAccess', _1226 => _1226.getValue, 'call', _1227 => _1227()]), () => ( ""));
|
|
48674
48706
|
const next = cur.replace(`@${mentionTokenOf(key, mentionMarkerByType)}`, "").replace(/\s{2,}/g, " ").trimStart();
|
|
48675
|
-
_optionalChain([chatInputRef, 'access',
|
|
48707
|
+
_optionalChain([chatInputRef, 'access', _1228 => _1228.current, 'optionalAccess', _1229 => _1229.setValue, 'call', _1230 => _1230(next)]);
|
|
48676
48708
|
}
|
|
48677
48709
|
}, [mentionMarkerByType]);
|
|
48678
48710
|
const handleContextValueChange = _react.useCallback.call(void 0, (value) => {
|
|
@@ -48689,7 +48721,7 @@ function EmbeddableChatInner({
|
|
|
48689
48721
|
}, []);
|
|
48690
48722
|
const closeContextPicker = _react.useCallback.call(void 0, () => {
|
|
48691
48723
|
if (mentionActiveRef.current) {
|
|
48692
|
-
_optionalChain([chatInputRef, 'access',
|
|
48724
|
+
_optionalChain([chatInputRef, 'access', _1231 => _1231.current, 'optionalAccess', _1232 => _1232.removeMentionTrigger, 'call', _1233 => _1233()]);
|
|
48693
48725
|
}
|
|
48694
48726
|
setContextPickerOpen(false);
|
|
48695
48727
|
setMentionQuery(null);
|
|
@@ -48723,8 +48755,8 @@ function EmbeddableChatInner({
|
|
|
48723
48755
|
[]
|
|
48724
48756
|
);
|
|
48725
48757
|
const timestampCacheRef = _react.useRef.call(void 0, /* @__PURE__ */ new Map());
|
|
48726
|
-
const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess',
|
|
48727
|
-
const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess',
|
|
48758
|
+
const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _1234 => _1234.firstName]), _optionalChain([identityUser, 'optionalAccess', _1235 => _1235.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _1236 => _1236.name, 'optionalAccess', _1237 => _1237.trim, 'call', _1238 => _1238()]) || void 0 : void 0;
|
|
48759
|
+
const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _1239 => _1239.avatarUrl, 'optionalAccess', _1240 => _1240.trim, 'call', _1241 => _1241()]) || void 0 : void 0;
|
|
48728
48760
|
const messages = _react.useMemo.call(void 0, () => {
|
|
48729
48761
|
const cache = timestampCacheRef.current;
|
|
48730
48762
|
const seenIds = /* @__PURE__ */ new Set();
|
|
@@ -48872,9 +48904,9 @@ function EmbeddableChatInner({
|
|
|
48872
48904
|
const lastAssistantMsg = [...rawMessages].reverse().find((m) => m.role === "assistant");
|
|
48873
48905
|
const lastSources = _react.useMemo.call(void 0, () => {
|
|
48874
48906
|
if (chatLoading) return void 0;
|
|
48875
|
-
const sources = _optionalChain([lastAssistantMsg, 'optionalAccess',
|
|
48907
|
+
const sources = _optionalChain([lastAssistantMsg, 'optionalAccess', _1242 => _1242.sources]);
|
|
48876
48908
|
if (!sources || sources.length === 0) return void 0;
|
|
48877
|
-
const content = _optionalChain([lastAssistantMsg, 'optionalAccess',
|
|
48909
|
+
const content = _optionalChain([lastAssistantMsg, 'optionalAccess', _1243 => _1243.content]) || "";
|
|
48878
48910
|
const citationOrder = [...content.matchAll(/\[(\d+)\]/g)].map(
|
|
48879
48911
|
(m) => parseInt(m[1], 10)
|
|
48880
48912
|
);
|
|
@@ -48921,7 +48953,7 @@ function EmbeddableChatInner({
|
|
|
48921
48953
|
ChatPanelHeader,
|
|
48922
48954
|
{
|
|
48923
48955
|
showBack: hasConversation || guideCanReturnToMingo,
|
|
48924
|
-
title: hasConversation ? _optionalChain([activeDialog, 'optionalAccess',
|
|
48956
|
+
title: hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _1244 => _1244.title]) || "New Chat" : isGuideEmpty ? "Mingo Guide" : "Current Chats",
|
|
48925
48957
|
backAriaLabel: hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo",
|
|
48926
48958
|
isArchivedView: isViewingArchived,
|
|
48927
48959
|
onBack: hasConversation ? handleBack : () => handleActiveModeChange("mingo"),
|
|
@@ -49039,21 +49071,21 @@ function EmbeddableChatInner({
|
|
|
49039
49071
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
49040
49072
|
subtitleLoading: emptyStateLoading,
|
|
49041
49073
|
...guideWelcome,
|
|
49042
|
-
quickActions: _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess',
|
|
49074
|
+
quickActions: _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _1245 => _1245.quickActions]), () => ( guideSuggestedActions)),
|
|
49043
49075
|
onQuickAction: (action) => {
|
|
49044
49076
|
quickActionDraftRef.current = null;
|
|
49045
|
-
_optionalChain([chatInputRef, 'access',
|
|
49077
|
+
_optionalChain([chatInputRef, 'access', _1246 => _1246.current, 'optionalAccess', _1247 => _1247.setValue, 'call', _1248 => _1248("")]);
|
|
49046
49078
|
handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
|
|
49047
49079
|
},
|
|
49048
49080
|
onQuickActionHover: (action) => {
|
|
49049
49081
|
if (quickActionDraftRef.current === null) {
|
|
49050
|
-
quickActionDraftRef.current = _nullishCoalesce(_optionalChain([chatInputRef, 'access',
|
|
49082
|
+
quickActionDraftRef.current = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _1249 => _1249.current, 'optionalAccess', _1250 => _1250.getValue, 'call', _1251 => _1251()]), () => ( ""));
|
|
49051
49083
|
}
|
|
49052
|
-
_optionalChain([chatInputRef, 'access',
|
|
49084
|
+
_optionalChain([chatInputRef, 'access', _1252 => _1252.current, 'optionalAccess', _1253 => _1253.setValue, 'call', _1254 => _1254(_nullishCoalesce(action.prompt, () => ( action.label)))]);
|
|
49053
49085
|
},
|
|
49054
49086
|
onQuickActionHoverEnd: () => {
|
|
49055
49087
|
if (quickActionDraftRef.current !== null) {
|
|
49056
|
-
_optionalChain([chatInputRef, 'access',
|
|
49088
|
+
_optionalChain([chatInputRef, 'access', _1255 => _1255.current, 'optionalAccess', _1256 => _1256.setValue, 'call', _1257 => _1257(quickActionDraftRef.current)]);
|
|
49057
49089
|
quickActionDraftRef.current = null;
|
|
49058
49090
|
}
|
|
49059
49091
|
},
|
|
@@ -50130,4 +50162,4 @@ function EmbeddableChatInner({
|
|
|
50130
50162
|
|
|
50131
50163
|
|
|
50132
50164
|
exports.Label = Label; exports.AllowedDomainsInput = AllowedDomainsInput; exports.HiddenTagsPopup = HiddenTagsPopup; exports.tagVariants = tagVariants; exports.Tag = Tag; exports.Autocomplete = Autocomplete; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.CardHorizontal = CardHorizontal; exports.CheckboxBlock = CheckboxBlock; exports.CheckboxWithDescription = CheckboxWithDescription; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.DatePicker = DatePicker; exports.DatePickerInput = DatePickerInput; exports.DatePickerInputSimple = DatePickerInputSimple; exports.DateFilterMenu = DateFilterMenu; exports.DurationInput = DurationInput; exports.HoneypotField = HoneypotField; exports.ProgressBar = ProgressBar; exports.InfoCard = InfoCard; exports.InfoRow = InfoRow; exports.formatDate = formatDate; exports.formatNumber = formatNumber; exports.formatPrice = formatPrice; exports.formatBytes = formatBytes; exports.formatBytesShort = formatBytesShort; exports.formatFileSize = formatFileSize; exports.formatLargeNumber = formatLargeNumber; exports.formatAbbreviatedNumber = formatAbbreviatedNumber; exports.getFirstLastInitials = getFirstLastInitials; exports.nameInitials = nameInitials; exports.formatDurationMMSS = formatDurationMMSS; exports.formatDurationCompact = formatDurationCompact; exports.formatTimeWithTimezone = formatTimeWithTimezone; exports.formatDurationFromRange = formatDurationFromRange; exports.formatDateUTC = formatDateUTC; exports.formatEntryMonthUTC = formatEntryMonthUTC; exports.formatLegalDate = formatLegalDate; exports.formatCurrency = formatCurrency; exports.formatPercent = formatPercent; exports.formatWholeDollars = formatWholeDollars; exports.formatCompactMetric = formatCompactMetric; exports.getTrendColors = getTrendColors; exports.formatDateRange = formatDateRange; exports.formatDateTimeAt = formatDateTimeAt; exports.formatDurationFromMs = formatDurationFromMs; exports.formatDuration = formatDuration; exports.formatUnderscoreText = formatUnderscoreText; exports.stripHtml = stripHtml; exports.formatClassification = formatClassification; exports.formatPricingModel = formatPricingModel; exports.formatBioText = formatBioText; exports.SquareAvatar = SquareAvatar; exports.AssigneeDropdown = AssigneeDropdown; exports.ActionsMenu = ActionsMenu; exports.ActionsMenuDropdown = ActionsMenuDropdown; exports.ColorSwatch = ColorSwatch; exports.getPlatformAccentColor = getPlatformAccentColor; exports.getCurrentPlatform = getCurrentPlatform; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.resolveTicketStatus = resolveTicketStatus; exports.getTicketStatusConfig = getTicketStatusConfig; exports.getTicketStatusTag = getTicketStatusTag; exports.kindToCanonicalStatus = kindToCanonicalStatus; exports.usesCanonicalStatusStyle = usesCanonicalStatusStyle; exports.resolveStatusTagProps = resolveStatusTagProps; exports.TicketStatusTag = TicketStatusTag; exports.InfoSection = InfoSection; exports.InputTrigger = InputTrigger; exports.InteractiveCard = InteractiveCard; exports.MediaTypeSelector = MediaTypeSelector; exports.noDataIconClasses = noDataIconClasses; exports.noDataActionsVariants = noDataActionsVariants; exports.NoDataMessage = NoDataMessage; exports.NoDataAction = NoDataAction; exports.NoDataActions = NoDataActions; exports.NoData = NoData; exports.PageLoader = PageLoader; exports.CompactPageLoader = CompactPageLoader; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.RadioGroupBlock = RadioGroupBlock; exports.Switch = Switch; exports.TagSelectDropdown = TagSelectDropdown; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.TagsInput = TagsInput; exports.TagsManager = TagsManager; exports.Textarea = Textarea; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.AspectRatio = AspectRatio; 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.ImageGalleryModal = ImageGalleryModal; exports.Modal = Modal2; exports.ModalContent = ModalContent2; exports.ModalHeader = ModalHeader2; exports.ModalTitle = ModalTitle2; exports.ModalFooter = ModalFooter2; exports.Modal2 = Modal; exports.ModalContent2 = ModalContent; exports.ModalHeader2 = ModalHeader; exports.ModalTitle2 = ModalTitle; exports.ModalFooter2 = ModalFooter; exports.Separator = Separator2; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetPortal = SheetPortal; exports.SheetOverlay = SheetOverlay; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerClose = DrawerClose; exports.DrawerPortal = DrawerPortal; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DrawerBody = DrawerBody; exports.DrawerFooter = DrawerFooter; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.MenubarMenu = MenubarMenu; exports.MenubarGroup = MenubarGroup; exports.MenubarPortal = MenubarPortal; exports.MenubarSub = MenubarSub; exports.MenubarRadioGroup = MenubarRadioGroup; exports.Menubar = Menubar; exports.MenubarTrigger = MenubarTrigger; exports.MenubarSubTrigger = MenubarSubTrigger; exports.MenubarSubContent = MenubarSubContent; exports.MenubarContent = MenubarContent; exports.MenubarItem = MenubarItem; exports.MenubarCheckboxItem = MenubarCheckboxItem; exports.MenubarRadioItem = MenubarRadioItem; exports.MenubarLabel = MenubarLabel; exports.MenubarSeparator = MenubarSeparator; exports.MenubarShortcut = MenubarShortcut; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuViewport = NavigationMenuViewport; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.TabContent = TabContent; exports.TabNavigation = TabNavigation; exports.getTabById = getTabById; exports.getTabComponent = getTabComponent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AIGeneratedBadge = AIGeneratedBadge; exports.Progress = Progress; exports.fetchPriorityProp = fetchPriorityProp; exports.extractYouTubeId = extractYouTubeId; exports.Video = Video; exports.MediaCarousel = MediaCarousel; exports.EMBED_SIZES = EMBED_SIZES; exports.EmbedContainer = EmbedContainer; exports.YouTubeContainer = YouTubeContainer; exports.TwitterContainer = TwitterContainer; exports.RedditContainer = RedditContainer; exports.LinkPreviewContainer = LinkPreviewContainer; exports.LinkedInContainer = LinkedInContainer; exports.RichMarkdownRuntimeProvider = RichMarkdownRuntimeProvider; exports.useRichMarkdownRuntime = useRichMarkdownRuntime; exports.RedditEmbedClient = RedditEmbedClient; exports.TwitterEmbedClient = TwitterEmbedClient; exports.LinkedInEmbedClient = LinkedInEmbedClient; exports.OGLinkErrorBoundary = OGLinkErrorBoundary; exports.OGLinkPreview = OGLinkPreview; exports.toGoogleSheetsEmbedUrl = toGoogleSheetsEmbedUrl; exports.toGoogleSheetsOriginalUrl = toGoogleSheetsOriginalUrl; exports.toFigmaEmbedUrl = toFigmaEmbedUrl; exports.isFigmaSlidesUrl = isFigmaSlidesUrl; exports.toFigmaOriginalUrl = toFigmaOriginalUrl; exports.EmbedIframe = EmbedIframe; exports.FigmaEmbed = FigmaEmbed; exports.MarkdownImage = MarkdownImage; exports.RichMarkdownRenderer = RichMarkdownRenderer; exports.ReleaseChangelogSection = ReleaseChangelogSection; exports.statusBadgeVariants = statusBadgeVariants; exports.StatusBadge = StatusBadge; exports.StatusIndicator = StatusIndicator; exports.HoverDropdown = HoverDropdown; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.ExpandChevron = ExpandChevron; exports.useCollapsible = useCollapsible; exports.getCommandText = getCommandText; exports.ArgRow = ArgRow; exports.ResultBlock = ResultBlock; exports.ApprovalBatchMessage = ApprovalBatchMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ThinkingDisplay = ThinkingDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.ChatTypingIndicator = ChatTypingIndicator; exports.MingoOnboardingCard = MingoOnboardingCard; exports.ONBOARDING_ICONS = ONBOARDING_ICONS; exports.resolveOnboardingIcon = resolveOnboardingIcon; exports.ONBOARDING_ICON_OPTIONS = ONBOARDING_ICON_OPTIONS; exports.SlashCommandSuggestions = SlashCommandSuggestions; exports.ChatInput = ChatInput; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.BlockCard = BlockCard; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_CLASS = CONTEXT_BACK_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsSkeleton = ContextItemsSkeleton; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.ChatMessageSkeleton = ChatMessageSkeleton; exports.ChatMessageListSkeleton = ChatMessageListSkeleton; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.ChatMessageList = ChatMessageList; exports.getProxiedImageUrl = getProxiedImageUrl; exports.urlPathLooksLikeSvg = urlPathLooksLikeSvg; exports.shouldProxyImage = shouldProxyImage; exports.generateImageSizes = generateImageSizes; exports.useProxiedImageUrl = useProxiedImageUrl; exports.ChatMessageRow = ChatMessageRow; exports.ChatMessageRowSkeleton = ChatMessageRowSkeleton; exports.ChatQuickAction = ChatQuickAction; exports.ChatQuickActionRow = ChatQuickActionRow; exports.ChatQuickActionRowSkeleton = ChatQuickActionRowSkeleton; exports.ChatTicketItem = ChatTicketItem; exports.ChatTicketList = ChatTicketList; exports.MingoOnboardingCardSkeleton = MingoOnboardingCardSkeleton; exports.MingoOnboardingListSkeleton = MingoOnboardingListSkeleton; exports.MingoChatHistorySkeleton = MingoChatHistorySkeleton; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.MspOrganizationCard = MspOrganizationCard; exports.MspOrganizationCardSkeleton = MspOrganizationCardSkeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.GuideModeBanner = GuideModeBanner; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatHeaderIconButton = ChatHeaderIconButton; exports.COMPACT_HEADER_BUTTON = COMPACT_HEADER_BUTTON; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ModelDisplaySkeleton = ModelDisplaySkeleton; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.isCrossOriginUrl = isCrossOriginUrl; exports.decideNewTab = decideNewTab; exports.computeIsNewTab = computeIsNewTab; exports.newTabAnchorAttrs = newTabAnchorAttrs; exports.buildAnchorProps = buildAnchorProps; exports.NEW_TAB_FEATURES = NEW_TAB_FEATURES; exports.isModifierClick = isModifierClick; exports.stripSameOriginToPath = stripSameOriginToPath; exports.resolveExternalNavigation = resolveExternalNavigation; exports.executeNavigation = executeNavigation; exports.executeNavigationImperative = executeNavigationImperative; exports.handleChatNavClick = handleChatNavClick; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.EMPTY_AUTHOR_PLACEHOLDER = EMPTY_AUTHOR_PLACEHOLDER; exports.EntityMetadataValueCell = EntityMetadataValueCell; exports.EntityMetadataAuthorCell = EntityMetadataAuthorCell; exports.EntityAuthorCard = EntityAuthorCard; exports.BlogImagePlaceholder = BlogImagePlaceholder; exports.FlamingoLogo = FlamingoLogo; exports.OpenmspLogo = OpenmspLogo; exports.PlatformBadge = PlatformBadge; exports.AdminContentCard = AdminContentCard; exports.getProxiedImageUrl2 = getProxiedImageUrl2; exports.WhatIShippedCard = WhatIShippedCard; exports.WhatIShippedCardSkeleton = WhatIShippedCardSkeleton; exports.PAGE_HEADING_CLASS = PAGE_HEADING_CLASS; exports.SECTION_HEADING_CLASS = SECTION_HEADING_CLASS; exports.PageHeading = PageHeading; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_DISPLAY_GRID_CLASS = RATIO_DISPLAY_GRID_CLASS; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VideoBitesDisplay = VideoBitesDisplay; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.ProductReleaseCard = ProductReleaseCard; exports.ProductReleaseCardSkeleton = ProductReleaseCardSkeleton; exports.formatReleaseDate = formatReleaseDate; exports.formatDateShort = formatDateShort; exports.formatDateSlashUTC = formatDateSlashUTC; exports.resolveReleaseCover = resolveReleaseCover; exports.releaseTypeToBadgeColor = releaseTypeToBadgeColor; exports.defaultBuildProductReleaseCardProps = defaultBuildProductReleaseCardProps; exports.buildProductReleaseCardProps = buildProductReleaseCardProps; exports.useEntityCardLink = useEntityCardLink; exports.COMPACT_CARD_OUTER = COMPACT_CARD_OUTER; exports.COMPACT_CARD_OUTER_STATIC = COMPACT_CARD_OUTER_STATIC; exports.COMPACT_CARD_SKELETON_OUTER = COMPACT_CARD_SKELETON_OUTER; exports.COMPACT_CARD_IMAGE_SLOT = COMPACT_CARD_IMAGE_SLOT; exports.COMPACT_CARD_SKELETON_IMAGE_SLOT = COMPACT_CARD_SKELETON_IMAGE_SLOT; exports.COMPACT_CARD_ICON_SLOT = COMPACT_CARD_ICON_SLOT; exports.COMPACT_CARD_TEXT_COL = COMPACT_CARD_TEXT_COL; exports.COMPACT_CARD_TITLE_ROW = COMPACT_CARD_TITLE_ROW; exports.COMPACT_CARD_META_ROW_BOX = COMPACT_CARD_META_ROW_BOX; exports.COMPACT_CARD_TITLE = COMPACT_CARD_TITLE; exports.COMPACT_CARD_SUBTITLE = COMPACT_CARD_SUBTITLE; exports.COMPACT_CARD_SUMMARY = COMPACT_CARD_SUMMARY; exports.COMPACT_CARD_META_ROW = COMPACT_CARD_META_ROW; exports.COMPACT_CARD_ROW_FILLER = COMPACT_CARD_ROW_FILLER; exports.safeHref = safeHref; exports.BlogCardSkeleton = BlogCardSkeleton; exports.BlogCard = BlogCard; exports.CaseStudyCardSkeleton = CaseStudyCardSkeleton; exports.CaseStudyCard = CaseStudyCard; exports.CustomerInterviewCardSkeleton = CustomerInterviewCardSkeleton; exports.CustomerInterviewCard = CustomerInterviewCard; exports.formatInvestorUpdatePeriod = formatInvestorUpdatePeriod; exports.InvestorUpdateCardSkeleton = InvestorUpdateCardSkeleton; exports.InvestorUpdateCard = InvestorUpdateCard; exports.OnboardingGuideCardSkeleton = OnboardingGuideCardSkeleton; exports.OnboardingGuideCard = OnboardingGuideCard; exports.RoadmapVoteButton = RoadmapVoteButton; exports.getStatusColorScheme = getStatusColorScheme; exports.CUSTOM_ITEM_ID = CUSTOM_ITEM_ID; exports.getTaskTypeLabel = getTaskTypeLabel; exports.TaskTypeIcon = TaskTypeIcon; exports.RoadmapCardSkeleton = RoadmapCardSkeleton; exports.RoadmapCard = RoadmapCard; exports.GitHubActivityCard = GitHubActivityCard; exports.GitHubActivityCardSkeleton = GitHubActivityCardSkeleton; exports.SlackMessageCard = SlackMessageCard; exports.SlackMessageCardSkeleton = SlackMessageCardSkeleton; exports.HubspotTicketCard = HubspotTicketCard; exports.HubspotTicketCardSkeleton = HubspotTicketCardSkeleton; exports.DataRoomDocCard = DataRoomDocCard; exports.DataRoomDocCardSkeleton = DataRoomDocCardSkeleton; exports.ProgramCardSkeleton = ProgramCardSkeleton; exports.ProgramCard = ProgramCard; exports.CampaignCardAdmin = CampaignCardAdmin; exports.CampaignCardAdminSkeleton = CampaignCardAdminSkeleton; exports.GenericEntityCard = GenericEntityCard; exports.GenericEntityCardSkeleton = GenericEntityCardSkeleton; exports.extractItems = extractItems; exports.extractItemId = extractItemId; exports.useChatCardItem = useChatCardItem; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.ICON_REGISTRY = ICON_REGISTRY; exports.normalizeIconKey = normalizeIconKey; exports.getIconComponent = getIconComponent; exports.getDynamicIcon = getDynamicIcon; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.CHAT_TYPE = CHAT_TYPE; exports.OWNER_TYPE = OWNER_TYPE; exports.MESSAGE_ROLE = MESSAGE_ROLE; exports.ASSISTANT_TYPE = ASSISTANT_TYPE; exports.AUTHOR_TYPE = AUTHOR_TYPE; exports.APPROVAL_STATUS = APPROVAL_STATUS; exports.CONNECTION_STATUS = CONNECTION_STATUS; exports.buildChatRefKey = buildChatRefKey; exports.isStructuredContent = isStructuredContent; exports.normalizeContent = normalizeContent2; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.transformEventToProgram = transformEventToProgram; exports.transformPodcastToProgram = transformPodcastToProgram; exports.transformWebinarToProgram = transformWebinarToProgram; exports.useChunkCatchup = useChunkCatchup; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.parseChunkToAction = parseChunkToAction; exports.isControlChunk = isControlChunk; exports.isErrorChunk = isErrorChunk; exports.isMetadataChunk = isMetadataChunk; exports.extractTextFromChunk = extractTextFromChunk; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.useRealtimeChunkProcessor = useRealtimeChunkProcessor; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useSSE = useSSE; exports.useChat = useChat; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.useSseChatAdapter = useSseChatAdapter; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useUnifiedChat = useUnifiedChat; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.SYNTHETIC_REALTIME_ID_PREFIXES = SYNTHETIC_REALTIME_ID_PREFIXES; exports.flattenMessagePagesChronological = flattenMessagePagesChronological; exports.maxPersistedStreamSeq = maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = mergeHistoryWithRealtime; exports.computeHistoryPrepend = computeHistoryPrepend; exports.CHIP_ACTION_BUTTON_CLASS = CHIP_ACTION_BUTTON_CLASS; exports.chatChipClass = chatChipClass; exports.clickupTaskUrl = clickupTaskUrl; exports.EmbeddableChat = EmbeddableChat; exports.FilterCheckboxItem = FilterCheckboxItem; exports.TagKeyValueFilter = TagKeyValueFilter; exports.FilterModal = FilterModal; exports.PageActions = PageActions; exports.usePageActionsBottomPadding = usePageActionsBottomPadding; exports.PageContainer = PageContainer; exports.ListPageContainer = ListPageContainer; exports.DetailPageContainer = DetailPageContainer; exports.FormPageContainer = FormPageContainer; exports.ContentPageContainer = ContentPageContainer; exports.ListPageLayout = ListPageLayout; exports.EntityImage = EntityImage; exports.TITLE_BLOCK_MIN_HEIGHT = TITLE_BLOCK_MIN_HEIGHT; exports.TitleBlock = TitleBlock; exports.PageLayout = PageLayout; exports.PageShell = PageShell; exports.ArticleDetailLayout = ArticleDetailLayout; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.ToggleGroup = ToggleGroup; exports.ToggleGroupItem = ToggleGroupItem; exports.delay = delay; exports.generateRandomString = generateRandomString; exports.truncateString = truncateString; exports.serializeJsonLd = serializeJsonLd; exports.deepClone = deepClone; exports.getSlackCommunityJoinUrl = getSlackCommunityJoinUrl; exports.SEO_TITLE_MAX_LENGTH = SEO_TITLE_MAX_LENGTH; exports.BRAND_MARK_SVGS = BRAND_MARK_SVGS; exports.brandMarkDataUri = brandMarkDataUri; exports.OS_PLATFORMS = OS_PLATFORMS; exports.DEFAULT_OS_PLATFORM = DEFAULT_OS_PLATFORM; exports.isValidEmailDomain = isValidEmailDomain; exports.validateEmailDomain = validateEmailDomain; exports.validateEmailDomainList = validateEmailDomainList; exports.cleanEmailDomain = cleanEmailDomain; exports.getConfidenceColorClass = getConfidenceColorClass; exports.getConfidenceLevel = getConfidenceLevel; exports.getConfidenceBorderClass = getConfidenceBorderClass; exports.getConfidenceTextClass = getConfidenceTextClass; exports.getConfidenceBgClass = getConfidenceBgClass; exports.getConfidenceLabel = getConfidenceLabel; exports.DEV_SECTION_PARAM_KEYS = DEV_SECTION_PARAM_KEYS; exports.devSectionAnchorId = devSectionAnchorId; exports.normalizeToolType = normalizeToolType; exports.normalizeToolTypeWithFallback = normalizeToolTypeWithFallback; exports.toToolLabel = toToolLabel; exports.isValidToolType = isValidToolType; exports.getToolTypeAliases = getToolTypeAliases; exports.getToolLabel = getToolLabel; exports.ShellTypeValues = ShellTypeValues; exports.SHELL_TYPES = SHELL_TYPES; exports.shellLabels = shellLabels; exports.getShellLabel = getShellLabel; exports.getShellIcon = getShellIcon; exports.OSTypeValues = OSTypeValues; exports.OS_TYPES = OS_TYPES; exports.osLabels = osLabels; exports.normalizeOSType = normalizeOSType; exports.getOSLabel = getOSLabel; exports.getOSIcon = getOSIcon; exports.getOSTypeDefinition = getOSTypeDefinition; exports.getOSPlatformId = getOSPlatformId; exports.isOSPlatform = isOSPlatform; exports.getCountryPhoneData = getCountryPhoneData; exports.getCountryByCode = getCountryByCode; exports.validatePhoneNumber = validatePhoneNumber; exports.formatPhoneE164 = formatPhoneE164; exports.GENERIC_EMAIL_DOMAINS = GENERIC_EMAIL_DOMAINS; exports.extractDomainFromEmail = extractDomainFromEmail; exports.normalizeDomain = normalizeDomain; exports.isGenericDomain = isGenericDomain; exports.hasGenericEmailDomain = hasGenericEmailDomain; exports.isGenericWebsiteDomain = isGenericWebsiteDomain; exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.formatTicketRelativeTime = formatTicketRelativeTime; exports.formatTicketFullTimestamp = formatTicketFullTimestamp; exports.formatRelativeTime = formatRelativeTime; exports.formatAbsoluteDate = formatAbsoluteDate; exports.formatDateTime = formatDateTime; exports.getDetailedTimeDifference = getDetailedTimeDifference; exports.isToday = isToday; exports.isWithinMinutes = isWithinMinutes; exports.createUTCTimestamp = createUTCTimestamp; exports.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.AVAILABLE_SVG_ICONS = AVAILABLE_SVG_ICONS; exports.releaseTypeOptions = releaseTypeOptions; exports.releaseStatusOptions = releaseStatusOptions; exports.changelogLabels = changelogLabels; exports.SEMVER_REGEX = SEMVER_REGEX; exports.TASK_TYPE_LABELS = TASK_TYPE_LABELS; exports.TASK_TYPE_TEXT_COLORS = TASK_TYPE_TEXT_COLORS; exports.TMCG_ROLES = TMCG_ROLES; exports.TMCG_ROLE_DISPLAY_NAMES = TMCG_ROLE_DISPLAY_NAMES; exports.TMCG_SOCIAL_PLATFORMS = TMCG_SOCIAL_PLATFORMS; exports.ROADMAP_STATUS_OPTIONS = ROADMAP_STATUS_OPTIONS; exports.DELIVERY_TASK_TYPE_OPTIONS = DELIVERY_TASK_TYPE_OPTIONS; exports.TICKET_STATUS_OPTIONS = TICKET_STATUS_OPTIONS; exports.OPENFRAME_DEV_SECTIONS = OPENFRAME_DEV_SECTIONS; exports.canonicalContentRefType = canonicalContentRefType; exports.buildListUrl = buildListUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.CONTENT_REF_GROUPS = CONTENT_REF_GROUPS; exports.getContentRefLabel = getContentRefLabel; exports.getContentRefLabelOrTitleCase = getContentRefLabelOrTitleCase; exports.orderContentRefTypes = orderContentRefTypes; exports.buildSuggestionUrl = buildSuggestionUrl; exports.DEFAULT_CONTENT_SUFFIXES = DEFAULT_CONTENT_SUFFIXES; exports.makeComposeContentUrl = makeComposeContentUrl; exports.buildDefaultHref = buildDefaultHref; exports.resolveContentHref = resolveContentHref; exports.DEFAULT_FOLDER_INDEX_FILE = DEFAULT_FOLDER_INDEX_FILE; exports.stripFolderIndexFromPath = stripFolderIndexFromPath; exports.findDocNodeByPath = findDocNodeByPath; exports.getDocAncestorNodeIds = getDocAncestorNodeIds; exports.resolveContentFetchPath = resolveContentFetchPath; exports.getInitialExpandedNodeIds = getInitialExpandedNodeIds; exports.getDocSourceDefaultPath = getDocSourceDefaultPath; exports.toDocSlug = toDocSlug; exports.pathToNodeId = pathToNodeId; exports.normalizeDocPath = normalizeDocPath; exports.formatDocName = formatDocName; exports.sortTreeChildren = sortTreeChildren; exports.buildDocumentTree = buildDocumentTree; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.extractSections = extractSections; exports.SECTION_HERO_ICON_CLASS = SECTION_HERO_ICON_CLASS; exports.BenefitCard = BenefitCard; exports.BenefitCardGrid = BenefitCardGrid; exports.BrandAssociationCard = BrandAssociationCard; exports.BrandAssociationGrid = BrandAssociationGrid; exports.BulletList = BulletList; exports.ChevronButton = ChevronButton; exports.CircularProgress = CircularProgress; exports.CheckIcon = CheckIcon2; exports.XIcon = XIcon2; exports.MinusIcon = MinusIcon; exports.CheckCircleIcon = CheckCircleIcon2; exports.XCircleIcon = XCircleIcon; exports.FloatingTooltip = FloatingTooltip; exports.DashboardInfoCard = DashboardInfoCard; exports.OSTypeBadge = OSTypeBadge; exports.OSTypeIcon = OSTypeIcon; exports.OSTypeLabel = OSTypeLabel; exports.DeviceCard = DeviceCard; exports.DeviceCardCompact = DeviceCardCompact; exports.FeatureCardGrid = FeatureCardGrid; exports.FeatureList = FeatureList; exports.TruncateText = TruncateText; exports.HighlightCard = HighlightCard; exports.HighlightCardGrid = HighlightCardGrid; exports.IconsBlock = IconsBlock; exports.DropdownButton = DropdownButton; exports.MoreActionsMenu = MoreActionsMenu; exports.OrganizationCard = OrganizationCard; exports.ServiceCard = ServiceCard; exports.Slider = Slider; exports.TabSelector = TabSelector; exports.TitleContentBlock = TitleContentBlock; exports.ErrorState = ErrorState; exports.PageError = PageError; exports.LoadError = LoadError; exports.NotFoundError = NotFoundError; exports.ContentLoader = ContentLoader; exports.CardLoader = CardLoader; exports.FormLoader = FormLoader; exports.DetailLoader = DetailLoader; exports.ListLoader = ListLoader; exports.Pagination = Pagination; exports.PaginationContent = PaginationContent; exports.PaginationItem = PaginationItem; exports.PaginationLink = PaginationLink; exports.PaginationEllipsis = PaginationEllipsis; exports.PaginationPrevious = PaginationPrevious; exports.PaginationNext = PaginationNext; exports.init_pagination = init_pagination; exports.CursorPagination = CursorPagination; exports.CursorPaginationSimple = CursorPaginationSimple; exports.TableEmptyState = TableEmptyState; exports.DynamicThemeProvider = DynamicThemeProvider; exports.useDynamicTheme = useDynamicTheme; exports.THEME_STORAGE_KEY = THEME_STORAGE_KEY; exports.THEME_ATTRIBUTE = THEME_ATTRIBUTE; exports.DEFAULT_THEME = DEFAULT_THEME; exports.ThemeProvider = ThemeProvider; exports.useTheme = useTheme; exports.useThemeToggle = useThemeToggle; exports.ArrayEntryManager = ArrayEntryManager; exports.ProviderButton = ProviderButton; exports.AuthProvidersList = AuthProvidersList; exports.ChangelogManager = ChangelogManager; exports.ChangelogSectionsManager = ChangelogSectionsManager; exports.ClickUpTasksManager = ClickUpTasksManager; exports.CommandBox = CommandBox; exports.TAG_BADGE_CLASS = TAG_BADGE_CLASS; exports.EntityTagBadges = EntityTagBadges; exports.ErrorBoundary = ErrorBoundary; exports.SectionSelector = SectionSelector; exports.FigmaPrototypeViewer = FigmaPrototypeViewer; exports.FiltersDropdown = FiltersDropdown; exports.useFiltersDropdown = useFiltersDropdown; exports.GitHubReleasesManager = GitHubReleasesManager; exports.KnowledgeBaseLinksManager = KnowledgeBaseLinksManager; exports.LoadingProvider = LoadingProvider; exports.useLoading = useLoading; exports.MediaGalleryManager = MediaGalleryManager; exports.MoreAboutButton = MoreAboutButton; exports.OSTypeBadgeGroup = OSTypeBadgeGroup; exports.ParallaxImageShowcase = ParallaxImageShowcase; exports.PathsDisplay = PathsDisplay; exports.OPENFRAME_PATHS = OPENFRAME_PATHS; exports.getOpenFramePaths = getOpenFramePaths; exports.OPENFRAME_DOCTOR_COMMANDS = OPENFRAME_DOCTOR_COMMANDS; exports.getOpenFrameDoctorCommand = getOpenFrameDoctorCommand; exports.PlatformFilterComponent = PlatformFilterComponent; exports.PushButtonSelector = PushButtonSelector; exports.ReleaseMediaManager = ReleaseMediaManager; exports.SelectButton = SelectButton; exports.SEOEditorPreview = SEOEditorPreview; exports.SocialLinksManager = SocialLinksManager; exports.StartWithOpenFrameButton = StartWithOpenFrameButton; exports.StatusFilterComponent = StatusFilterComponent; exports.TagsSelector = TagsSelector; exports.WarningBlock = WarningBlock; exports.MUX_STREAM_ORIGIN = MUX_STREAM_ORIGIN; exports.MUX_IMAGE_ORIGIN = MUX_IMAGE_ORIGIN; exports.useVideoOriginPreconnect = useVideoOriginPreconnect; exports.useVideoWarmup = useVideoWarmup; exports.getCaptionsUrl = getCaptionsUrl; exports.VideoSourceSelector = VideoSourceSelector; exports.ConfidenceBadge = ConfidenceBadge; exports.TranscriptSummaryEditor = TranscriptSummaryEditor; exports.AIEnrichButton = AIEnrichButton; exports.AIWarningsSection = AIWarningsSection; exports.AIEnrichSection = AIEnrichSection; exports.HighlightVideoSection = HighlightVideoSection; exports.HighlightConfigSection = HighlightConfigSection; exports.EntitySummaryEditor = EntitySummaryEditor; exports.AIStatusIndicator = AIStatusIndicator; exports.AIRequiredBadge = AIRequiredBadge; exports.TranscribeSummarizeSection = TranscribeSummarizeSection; exports.VideoClipsSection = VideoClipsSection; exports.HighlightGenerationSection = HighlightGenerationSection; exports.HighlightVideoPreview = HighlightVideoPreview; exports.TranscribeAndSummarizeCombinedSection = TranscribeAndSummarizeCombinedSection; exports.HighlightVideoCombinedSection = HighlightVideoCombinedSection; exports.ViewToggle = ViewToggle; exports.PolicyConfigurationPanel = PolicyConfigurationPanel; exports.PhoneInput = PhoneInput; exports.WaitlistForm = WaitlistForm; exports.NotificationsProvider = NotificationsProvider; exports.useNotifications = useNotifications; exports.useOptionalNotifications = useOptionalNotifications; exports.NotificationTile = NotificationTile; exports.NotificationDrawer = NotificationDrawer; exports.NotificationPopups = NotificationPopups; exports.ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE = ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE; exports.isApprovalNotification = isApprovalNotification; exports.getApprovalMeta = getApprovalMeta; exports.resolutionToStatus = resolutionToStatus; exports.approvalMetaToBatchData = approvalMetaToBatchData; exports.ApprovalRequestNotificationTile = ApprovalRequestNotificationTile; exports.TimeTrackerProvider = TimeTrackerProvider; exports.useTimeTracker = useTimeTracker; exports.useOptionalTimeTracker = useOptionalTimeTracker; exports.useTrackerClock = useTrackerClock; exports.TimeTrackerPanel = TimeTrackerPanel; exports.HeaderButton = HeaderButton; exports.TimeTrackerHeaderButton = TimeTrackerHeaderButton; exports.BoardColumnHeader = BoardColumnHeader; exports.tintOnDark = tintOnDark; exports.BoardTicketApproval = BoardTicketApproval; exports.TicketCard = TicketCard; exports.TicketCardSkeleton = TicketCardSkeleton; exports.BoardColumn = BoardColumn; exports.useBoardCollapse = useBoardCollapse; exports.Board = Board; exports.columnFromTicketStatus = columnFromTicketStatus; exports.groupTicketsByStatus = groupTicketsByStatus; exports.TicketStatusConfigList = TicketStatusConfigList; exports.TableHeader = TableHeader; exports.TableCell = TableCell; exports.TableCardSkeleton = TableCardSkeleton; exports.TableRow = TableRow; exports.Table = Table; exports.TableDescriptionCell = TableDescriptionCell; exports.TableTimestampCell = TableTimestampCell; exports.QueryReportTableHeader = QueryReportTableHeader; exports.QueryReportTableRow = QueryReportTableRow; exports.QueryReportTableSkeleton = QueryReportTableSkeleton; exports.deriveColumns = deriveColumns; exports.exportToCSV = exportToCSV; exports.QueryReportTable = QueryReportTable; exports.useDataTableContext = useDataTableContext; exports.DataTableRoot = DataTableRoot; exports.getHideClasses = getHideClasses2; exports.alignJustify = alignJustify; exports.multiSelectFilterFn = multiSelectFilterFn; exports.DataTableHeader = DataTableHeader; exports.DataTableEmpty = DataTableEmpty; exports.ROW_HEIGHT_DESKTOP = ROW_HEIGHT_DESKTOP2; exports.ROW_HEIGHT_MOBILE = ROW_HEIGHT_MOBILE2; exports.DataTableSkeleton = DataTableSkeleton; exports.DataTableRow = DataTableRow; exports.DataTableBody = DataTableBody; exports.DataTableInfiniteFooter = DataTableInfiniteFooter; exports.DataTableCursorFooter = DataTableCursorFooter; exports.DataTableRowCount = DataTableRowCount; exports.useDataTable = useDataTable; exports.DataTable = DataTable; exports.flexRender = _reacttable.flexRender; exports.createColumnHelper = _reacttable.createColumnHelper; exports.getCoreRowModel = _reacttable.getCoreRowModel; exports.getExpandedRowModel = _reacttable.getExpandedRowModel; exports.getFacetedRowModel = _reacttable.getFacetedRowModel; exports.getFacetedUniqueValues = _reacttable.getFacetedUniqueValues; exports.getFilteredRowModel = _reacttable.getFilteredRowModel; exports.getGroupedRowModel = _reacttable.getGroupedRowModel; exports.getPaginationRowModel = _reacttable.getPaginationRowModel; exports.getSortedRowModel = _reacttable.getSortedRowModel; exports.SearchInput = SearchInput; exports.FilterListItem = FilterListItem; exports.FilterList = FilterList; exports.TagSearchInput = TagSearchInput; exports.MarkdownEditor = MarkdownEditor; exports.FileUpload = FileUpload; exports.ImageUploader = ImageUploader; exports.TICKET_STATUS_COLOR_PRESETS = TICKET_STATUS_COLOR_PRESETS; exports.CUSTOM_PRESET_KEY = CUSTOM_PRESET_KEY; exports.DEFAULT_CUSTOM_STATUS_COLOR = DEFAULT_CUSTOM_STATUS_COLOR; exports.ColorPresetSelect = ColorPresetSelect; exports.ColorPickerInput = ColorPickerInput; exports.TicketStatusConfigRow = TicketStatusConfigRow; exports.TicketDetailSection = TicketDetailSection; exports.TicketAttachmentsList = TicketAttachmentsList; exports.TicketNoteCard = TicketNoteCard; exports.TicketNotesSection = TicketNotesSection; exports.TicketInfoSection = TicketInfoSection; exports.FilterPillRow = FilterPillRow; exports.Header = Header2; exports.HeaderSkeleton = HeaderSkeleton; exports.ClientOnlyHeader = ClientOnlyHeader; exports.MobileNavPanel = MobileNavPanel; exports.SlidingSidebar = SlidingSidebar; exports.StickySectionNav = StickySectionNav; exports.useSectionNavigation = useSectionNavigation; exports.NavigationSidebar = NavigationSidebar; exports.HeaderGlobalSearch = HeaderGlobalSearch; exports.HeaderMingoButton = HeaderMingoButton; exports.HeaderOrganizationFilter = HeaderOrganizationFilter; exports.AppHeader = AppHeader; exports.MobileBurgerMenu = MobileBurgerMenu; exports.useAppLayoutDrawerContainer = useAppLayoutDrawerContainer; exports.AppLayout = AppLayout; exports.AppLayoutDrawerRoot = AppLayoutDrawerRoot; exports.AppLayoutDrawerTrigger = AppLayoutDrawerTrigger; exports.AppLayoutDrawerClose = AppLayoutDrawerClose; exports.AppLayoutDrawerContent = AppLayoutDrawerContent; exports.AppLayoutDrawerHeader = AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = AppLayoutDrawerTitle; exports.AppLayoutDrawerDescription = AppLayoutDrawerDescription; exports.AppLayoutDrawerBody = AppLayoutDrawerBody; exports.AppLayoutDrawerFooter = AppLayoutDrawerFooter; exports.MultiLevelNavigation = MultiLevelNavigation; exports.MobileNavigationDropdown = MobileNavigationDropdown; exports.SoftwareInfo = SoftwareInfo; exports.SoftwareSourceBadge = SoftwareSourceBadge; exports.CveLink = CveLink; exports.ToolBadge = ToolBadge; exports.ShellTypeBadge = ShellTypeBadge; exports.ScriptInfoSection = ScriptInfoSection; exports.ScriptArguments = ScriptArguments; exports.OnboardingStepCard = OnboardingStepCard; exports.OnboardingWalkthrough = OnboardingWalkthrough; exports.LOG_SEVERITY_COLORS = LOG_SEVERITY_COLORS; exports.LOG_SEVERITY_LABELS = LOG_SEVERITY_LABELS; exports.LogSeverityDot = LogSeverityDot; exports.LogsList = LogsList; exports.FAE_AVATAR_DATA_URI = FAE_AVATAR_DATA_URI; exports.assets = assets;
|
|
50133
|
-
//# sourceMappingURL=chunk-
|
|
50165
|
+
//# sourceMappingURL=chunk-I3CNFZOY.cjs.map
|