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