@flamingo-stack/openframe-frontend-core 0.0.373-snapshot.20260706145330 → 0.0.373
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-VS4RCAXP.cjs → chunk-3N34BFBP.cjs} +15 -15
- package/dist/{chunk-VS4RCAXP.cjs.map → chunk-3N34BFBP.cjs.map} +1 -1
- package/dist/{chunk-ZEYGYL76.cjs → chunk-3QTBIUB7.cjs} +12 -12
- package/dist/{chunk-ZEYGYL76.cjs.map → chunk-3QTBIUB7.cjs.map} +1 -1
- package/dist/{chunk-NMESBNMS.cjs → chunk-4JIVPFPK.cjs} +25 -25
- package/dist/{chunk-NMESBNMS.cjs.map → chunk-4JIVPFPK.cjs.map} +1 -1
- package/dist/{chunk-V653GV4M.cjs → chunk-4RUTFRJ6.cjs} +332 -365
- package/dist/chunk-4RUTFRJ6.cjs.map +1 -0
- package/dist/{chunk-EPR4XXRC.js → chunk-4YQY3YBQ.js} +2 -2
- package/dist/{chunk-4DXWRLC4.cjs → chunk-6OJHTN7B.cjs} +57 -57
- package/dist/{chunk-4DXWRLC4.cjs.map → chunk-6OJHTN7B.cjs.map} +1 -1
- package/dist/{chunk-HA3KJN4J.cjs → chunk-7YKIXCV3.cjs} +7 -7
- package/dist/{chunk-HA3KJN4J.cjs.map → chunk-7YKIXCV3.cjs.map} +1 -1
- package/dist/{chunk-64TM6YLI.cjs → chunk-AFF6QBKL.cjs} +37 -37
- package/dist/{chunk-64TM6YLI.cjs.map → chunk-AFF6QBKL.cjs.map} +1 -1
- package/dist/{chunk-QOPI56UU.cjs → chunk-ANKXC5RY.cjs} +31 -31
- package/dist/{chunk-QOPI56UU.cjs.map → chunk-ANKXC5RY.cjs.map} +1 -1
- package/dist/{chunk-6LKITKDS.js → chunk-CCBQGC44.js} +4 -4
- package/dist/{chunk-UHO2TI5O.js → chunk-DDI7FFA5.js} +152 -185
- package/dist/{chunk-UHO2TI5O.js.map → chunk-DDI7FFA5.js.map} +1 -1
- package/dist/{chunk-BJX5HYBU.js → chunk-DUFK7RSU.js} +2 -2
- package/dist/{chunk-5SCIL5IK.cjs → chunk-FCPUM5S2.cjs} +62 -62
- package/dist/{chunk-5SCIL5IK.cjs.map → chunk-FCPUM5S2.cjs.map} +1 -1
- package/dist/{chunk-PUUB3ETT.js → chunk-IDYD2EIV.js} +2 -2
- package/dist/{chunk-LDLRTG7B.js → chunk-IH4IPKF2.js} +4 -4
- package/dist/{chunk-USUHSONY.js → chunk-JDYNGJSD.js} +2 -2
- package/dist/{chunk-7ZAFRNT4.js → chunk-LD7WDZQC.js} +2 -2
- package/dist/{chunk-NVFKRKYO.js → chunk-M4O75TCN.js} +4 -4
- package/dist/{chunk-L7VRUDAP.cjs → chunk-MTT4SFN6.cjs} +5 -5
- package/dist/{chunk-L7VRUDAP.cjs.map → chunk-MTT4SFN6.cjs.map} +1 -1
- package/dist/{chunk-BCIETCTQ.js → chunk-OTSWZF3C.js} +4 -4
- package/dist/{chunk-NP3VAQE5.js → chunk-RHKIYRJJ.js} +2 -2
- package/dist/{chunk-CTHA7BMH.js → chunk-TH2LDBFE.js} +2 -2
- package/dist/{chunk-2GRR6GSO.cjs → chunk-X274IBXR.cjs} +26 -26
- package/dist/{chunk-2GRR6GSO.cjs.map → chunk-X274IBXR.cjs.map} +1 -1
- package/dist/{chunk-YZLZ35DX.cjs → chunk-XNP2LIYD.cjs} +9 -9
- package/dist/{chunk-YZLZ35DX.cjs.map → chunk-XNP2LIYD.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 +120 -120
- package/dist/components/index.js +9 -9
- package/dist/components/navigation/app-layout-drawer.d.ts.map +1 -1
- package/dist/components/navigation/app-layout.d.ts +0 -20
- package/dist/components/navigation/app-layout.d.ts.map +1 -1
- 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/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/navigation/app-layout-drawer.tsx +1 -23
- package/src/components/navigation/app-layout.tsx +2 -50
- package/dist/chunk-V653GV4M.cjs.map +0 -1
- /package/dist/{chunk-EPR4XXRC.js.map → chunk-4YQY3YBQ.js.map} +0 -0
- /package/dist/{chunk-6LKITKDS.js.map → chunk-CCBQGC44.js.map} +0 -0
- /package/dist/{chunk-BJX5HYBU.js.map → chunk-DUFK7RSU.js.map} +0 -0
- /package/dist/{chunk-PUUB3ETT.js.map → chunk-IDYD2EIV.js.map} +0 -0
- /package/dist/{chunk-LDLRTG7B.js.map → chunk-IH4IPKF2.js.map} +0 -0
- /package/dist/{chunk-USUHSONY.js.map → chunk-JDYNGJSD.js.map} +0 -0
- /package/dist/{chunk-7ZAFRNT4.js.map → chunk-LD7WDZQC.js.map} +0 -0
- /package/dist/{chunk-NVFKRKYO.js.map → chunk-M4O75TCN.js.map} +0 -0
- /package/dist/{chunk-BCIETCTQ.js.map → chunk-OTSWZF3C.js.map} +0 -0
- /package/dist/{chunk-NP3VAQE5.js.map → chunk-RHKIYRJJ.js.map} +0 -0
- /package/dist/{chunk-CTHA7BMH.js.map → chunk-TH2LDBFE.js.map} +0 -0
|
@@ -33829,10 +33829,6 @@ var AppLayoutDrawerContainerContext = _react.createContext.call(void 0, null);
|
|
|
33829
33829
|
function useAppLayoutDrawerContainer() {
|
|
33830
33830
|
return _react.useContext.call(void 0, AppLayoutDrawerContainerContext);
|
|
33831
33831
|
}
|
|
33832
|
-
var AppLayoutDrawerCoordinationContext = _react.createContext.call(void 0, null);
|
|
33833
|
-
function useAppLayoutDrawerCoordination() {
|
|
33834
|
-
return _react.useContext.call(void 0, AppLayoutDrawerCoordinationContext);
|
|
33835
|
-
}
|
|
33836
33832
|
function AppLayout({
|
|
33837
33833
|
children,
|
|
33838
33834
|
sidebarConfig,
|
|
@@ -33846,27 +33842,13 @@ function AppLayout({
|
|
|
33846
33842
|
}) {
|
|
33847
33843
|
const [mobileMenuOpen, setMobileMenuOpen] = _react.useState.call(void 0, false);
|
|
33848
33844
|
const [drawerContainer, setDrawerContainer] = _react.useState.call(void 0, null);
|
|
33849
|
-
const mobileMenuOpenRef = _react.useRef.call(void 0, mobileMenuOpen);
|
|
33850
|
-
mobileMenuOpenRef.current = mobileMenuOpen;
|
|
33851
|
-
const drawerHandlesRef = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
33852
33845
|
const handleToggleMobileMenu = _react.useCallback.call(void 0, () => {
|
|
33853
|
-
|
|
33854
|
-
if (opening) {
|
|
33855
|
-
for (const handle of drawerHandlesRef.current) handle.close();
|
|
33856
|
-
}
|
|
33857
|
-
setMobileMenuOpen(opening);
|
|
33846
|
+
setMobileMenuOpen((prev) => !prev);
|
|
33858
33847
|
}, []);
|
|
33859
33848
|
const handleCloseMobileMenu = _react.useCallback.call(void 0, () => {
|
|
33860
33849
|
setMobileMenuOpen(false);
|
|
33861
33850
|
}, []);
|
|
33862
|
-
|
|
33863
|
-
notifyDrawerDidOpen: () => setMobileMenuOpen(false),
|
|
33864
|
-
registerDrawer: (handle) => {
|
|
33865
|
-
drawerHandlesRef.current.add(handle);
|
|
33866
|
-
return () => drawerHandlesRef.current.delete(handle);
|
|
33867
|
-
}
|
|
33868
|
-
}), []);
|
|
33869
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLayoutDrawerContainerContext.Provider, { value: drawerContainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLayoutDrawerCoordinationContext.Provider, { value: drawerCoordination, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex h-screen bg-ods-bg", className), children: [
|
|
33851
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLayoutDrawerContainerContext.Provider, { value: drawerContainer, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex h-screen bg-ods-bg", className), children: [
|
|
33870
33852
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebar, { config: sidebarConfig, disabled }),
|
|
33871
33853
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33872
33854
|
MobileBurgerMenu,
|
|
@@ -33901,7 +33883,7 @@ function AppLayout({
|
|
|
33901
33883
|
}
|
|
33902
33884
|
)
|
|
33903
33885
|
] })
|
|
33904
|
-
] }) })
|
|
33886
|
+
] }) });
|
|
33905
33887
|
}
|
|
33906
33888
|
|
|
33907
33889
|
// src/components/navigation/app-layout-drawer.tsx
|
|
@@ -33929,21 +33911,6 @@ var AppLayoutDrawerRoot = ({
|
|
|
33929
33911
|
},
|
|
33930
33912
|
[isControlled, onOpenChange]
|
|
33931
33913
|
);
|
|
33932
|
-
const coordination = useAppLayoutDrawerCoordination();
|
|
33933
|
-
const openRef = React110.useRef(open);
|
|
33934
|
-
openRef.current = open;
|
|
33935
|
-
const handleOpenChangeRef = React110.useRef(handleOpenChange);
|
|
33936
|
-
handleOpenChangeRef.current = handleOpenChange;
|
|
33937
|
-
React110.useEffect(() => {
|
|
33938
|
-
if (open) _optionalChain([coordination, 'optionalAccess', _660 => _660.notifyDrawerDidOpen, 'call', _661 => _661()]);
|
|
33939
|
-
}, [open, coordination]);
|
|
33940
|
-
React110.useEffect(() => {
|
|
33941
|
-
return _optionalChain([coordination, 'optionalAccess', _662 => _662.registerDrawer, 'call', _663 => _663({
|
|
33942
|
-
close: () => {
|
|
33943
|
-
if (openRef.current) handleOpenChangeRef.current(false);
|
|
33944
|
-
}
|
|
33945
|
-
})]);
|
|
33946
|
-
}, [coordination]);
|
|
33947
33914
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DrawerOpenContext.Provider, { value: open, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33948
33915
|
DialogPrimitive3.Root,
|
|
33949
33916
|
{
|
|
@@ -34322,10 +34289,10 @@ var AppLayoutDrawerContent = React110.forwardRef(
|
|
|
34322
34289
|
),
|
|
34323
34290
|
style,
|
|
34324
34291
|
onInteractOutside: (event) => {
|
|
34325
|
-
_optionalChain([onInteractOutside, 'optionalCall',
|
|
34292
|
+
_optionalChain([onInteractOutside, 'optionalCall', _660 => _660(event)]);
|
|
34326
34293
|
if (event.defaultPrevented) return;
|
|
34327
34294
|
const target = event.target;
|
|
34328
|
-
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess',
|
|
34295
|
+
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _661 => _661.contains, 'call', _662 => _662(target)]);
|
|
34329
34296
|
if (!isInsideContainer) {
|
|
34330
34297
|
event.preventDefault();
|
|
34331
34298
|
return;
|
|
@@ -34738,7 +34705,7 @@ var ShellTypeBadge = ({
|
|
|
34738
34705
|
className,
|
|
34739
34706
|
iconClassName
|
|
34740
34707
|
}) => {
|
|
34741
|
-
const normalizedType = _optionalChain([shellType, 'optionalAccess',
|
|
34708
|
+
const normalizedType = _optionalChain([shellType, 'optionalAccess', _663 => _663.toUpperCase, 'call', _664 => _664()]);
|
|
34742
34709
|
const label = getShellLabel(normalizedType);
|
|
34743
34710
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
34744
34711
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
@@ -35125,12 +35092,12 @@ function OnboardingWalkthrough({
|
|
|
35125
35092
|
}
|
|
35126
35093
|
}, [state.completedSteps, markComplete]);
|
|
35127
35094
|
const handleStepSkip = (step) => {
|
|
35128
|
-
_optionalChain([step, 'access',
|
|
35095
|
+
_optionalChain([step, 'access', _665 => _665.onSkip, 'optionalCall', _666 => _666()]);
|
|
35129
35096
|
markSkipped(step.id);
|
|
35130
35097
|
};
|
|
35131
35098
|
const handleDismiss = () => {
|
|
35132
35099
|
dismissOnboarding();
|
|
35133
|
-
_optionalChain([onDismiss, 'optionalCall',
|
|
35100
|
+
_optionalChain([onDismiss, 'optionalCall', _667 => _667()]);
|
|
35134
35101
|
};
|
|
35135
35102
|
if (state.dismissed) {
|
|
35136
35103
|
return null;
|
|
@@ -35260,7 +35227,7 @@ var LogCard = ({ log, isLast, showConnector, onClick }) => {
|
|
|
35260
35227
|
onKeyDown: (e) => {
|
|
35261
35228
|
if (e.key === "Enter" || e.key === " ") {
|
|
35262
35229
|
e.preventDefault();
|
|
35263
|
-
_optionalChain([onClick, 'optionalCall',
|
|
35230
|
+
_optionalChain([onClick, 'optionalCall', _668 => _668()]);
|
|
35264
35231
|
}
|
|
35265
35232
|
},
|
|
35266
35233
|
children: [
|
|
@@ -35361,7 +35328,7 @@ var LogsList = React114.forwardRef(({
|
|
|
35361
35328
|
log,
|
|
35362
35329
|
isLast: index === logs.length - 1,
|
|
35363
35330
|
showConnector,
|
|
35364
|
-
onClick: () => _optionalChain([onLogClick, 'optionalCall',
|
|
35331
|
+
onClick: () => _optionalChain([onLogClick, 'optionalCall', _669 => _669(log)])
|
|
35365
35332
|
},
|
|
35366
35333
|
log.id
|
|
35367
35334
|
))
|
|
@@ -35462,7 +35429,7 @@ var Slider = React116.forwardRef(
|
|
|
35462
35429
|
({ className, value = [0], onValueChange, min = 0, max = 100, step = 1, ...props }, ref) => {
|
|
35463
35430
|
const handleChange = (e) => {
|
|
35464
35431
|
const newValue = [Number(e.target.value)];
|
|
35465
|
-
_optionalChain([onValueChange, 'optionalCall',
|
|
35432
|
+
_optionalChain([onValueChange, 'optionalCall', _670 => _670(newValue)]);
|
|
35466
35433
|
};
|
|
35467
35434
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
35468
35435
|
"input",
|
|
@@ -35893,7 +35860,7 @@ function CursorPaginationSimple({
|
|
|
35893
35860
|
{
|
|
35894
35861
|
variant: "transparent",
|
|
35895
35862
|
size: "icon",
|
|
35896
|
-
onClick: () => _optionalChain([onPrevious, 'optionalCall',
|
|
35863
|
+
onClick: () => _optionalChain([onPrevious, 'optionalCall', _671 => _671("")]),
|
|
35897
35864
|
disabled: !hasPreviousPage || loading,
|
|
35898
35865
|
className: "h-8 w-8",
|
|
35899
35866
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" }),
|
|
@@ -35905,7 +35872,7 @@ function CursorPaginationSimple({
|
|
|
35905
35872
|
{
|
|
35906
35873
|
variant: "transparent",
|
|
35907
35874
|
size: "icon",
|
|
35908
|
-
onClick: () => _optionalChain([onNext, 'optionalCall',
|
|
35875
|
+
onClick: () => _optionalChain([onNext, 'optionalCall', _672 => _672("")]),
|
|
35909
35876
|
disabled: !hasNextPage || loading,
|
|
35910
35877
|
className: "h-8 w-8",
|
|
35911
35878
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
|
|
@@ -35925,8 +35892,8 @@ function TableEmptyState({ message: message2, icon, action, className }) {
|
|
|
35925
35892
|
icon: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, {}))),
|
|
35926
35893
|
title: _nullishCoalesce(message2, () => ( "No results found")),
|
|
35927
35894
|
description: message2 == null ? "Try adjusting your search or filters" : void 0,
|
|
35928
|
-
buttonLabel: _optionalChain([action, 'optionalAccess',
|
|
35929
|
-
onButtonClick: _optionalChain([action, 'optionalAccess',
|
|
35895
|
+
buttonLabel: _optionalChain([action, 'optionalAccess', _673 => _673.label]),
|
|
35896
|
+
onButtonClick: _optionalChain([action, 'optionalAccess', _674 => _674.onClick]),
|
|
35930
35897
|
className: _chunkFIG2RKZFcjs.cn.call(void 0, "py-[var(--spacing-system-xxl)]", className)
|
|
35931
35898
|
}
|
|
35932
35899
|
);
|
|
@@ -35947,7 +35914,7 @@ function TableColumnFilterDropdown({
|
|
|
35947
35914
|
placement = "bottom-start",
|
|
35948
35915
|
dropdownClassName = "min-w-[240px]"
|
|
35949
35916
|
}) {
|
|
35950
|
-
const activeCount = _optionalChain([filters, 'optionalAccess',
|
|
35917
|
+
const activeCount = _optionalChain([filters, 'optionalAccess', _675 => _675[columnKey], 'optionalAccess', _676 => _676.length]) || 0;
|
|
35951
35918
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
35952
35919
|
FiltersDropdown,
|
|
35953
35920
|
{
|
|
@@ -35990,7 +35957,7 @@ function TableColumnFilterDropdown({
|
|
|
35990
35957
|
delete newFilters[columnKey];
|
|
35991
35958
|
onFilterChange(newFilters);
|
|
35992
35959
|
},
|
|
35993
|
-
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess',
|
|
35960
|
+
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess', _677 => _677[columnKey]]) || [] },
|
|
35994
35961
|
placement,
|
|
35995
35962
|
dropdownClassName
|
|
35996
35963
|
}
|
|
@@ -36200,7 +36167,7 @@ function TableCardSkeleton({
|
|
|
36200
36167
|
className,
|
|
36201
36168
|
rowClassName
|
|
36202
36169
|
}) {
|
|
36203
|
-
const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess',
|
|
36170
|
+
const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess', _678 => _678.key]);
|
|
36204
36171
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
36205
36172
|
"div",
|
|
36206
36173
|
{
|
|
@@ -36293,7 +36260,7 @@ function TableRow({
|
|
|
36293
36260
|
const keys = column.key.split(".");
|
|
36294
36261
|
let value = item;
|
|
36295
36262
|
for (const key of keys) {
|
|
36296
|
-
value = _optionalChain([value, 'optionalAccess',
|
|
36263
|
+
value = _optionalChain([value, 'optionalAccess', _679 => _679[key]]);
|
|
36297
36264
|
}
|
|
36298
36265
|
if (value === null || value === void 0) {
|
|
36299
36266
|
return "-";
|
|
@@ -36382,7 +36349,7 @@ function useTableMotion(enabled) {
|
|
|
36382
36349
|
// src/components/ui/table/table.tsx
|
|
36383
36350
|
|
|
36384
36351
|
function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref) {
|
|
36385
|
-
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess',
|
|
36352
|
+
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess', _680 => _680.length])) || Boolean(renderRowActions);
|
|
36386
36353
|
const result = [...columns];
|
|
36387
36354
|
if (hasActions) {
|
|
36388
36355
|
const actionsColumn = {
|
|
@@ -36478,7 +36445,7 @@ function Table({
|
|
|
36478
36445
|
return rowKey(item);
|
|
36479
36446
|
}
|
|
36480
36447
|
const key = item[rowKey];
|
|
36481
|
-
return _optionalChain([key, 'optionalAccess',
|
|
36448
|
+
return _optionalChain([key, 'optionalAccess', _681 => _681.toString, 'call', _682 => _682()]) || index.toString();
|
|
36482
36449
|
};
|
|
36483
36450
|
const getRowClassName = (item, index) => {
|
|
36484
36451
|
if (typeof rowClassName === "function") {
|
|
@@ -36512,23 +36479,23 @@ function Table({
|
|
|
36512
36479
|
const allSelected = selectedRows.length > 0 && selectedRows.length === data.length;
|
|
36513
36480
|
const someSelected = selectedRows.length > 0 && selectedRows.length < data.length;
|
|
36514
36481
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
36515
|
-
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess',
|
|
36516
|
-
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess',
|
|
36482
|
+
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess', _683 => _683.onLoadMore]));
|
|
36483
|
+
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess', _684 => _684.onLoadMore]);
|
|
36517
36484
|
_react.useEffect.call(void 0, () => {
|
|
36518
|
-
if (!_optionalChain([infiniteScroll, 'optionalAccess',
|
|
36485
|
+
if (!_optionalChain([infiniteScroll, 'optionalAccess', _685 => _685.hasNextPage]) || infiniteScroll.isFetchingNextPage) return;
|
|
36519
36486
|
const sentinel = sentinelRef.current;
|
|
36520
36487
|
if (!sentinel) return;
|
|
36521
36488
|
const observer = new IntersectionObserver(
|
|
36522
36489
|
(entries) => {
|
|
36523
|
-
if (_optionalChain([entries, 'access',
|
|
36524
|
-
_optionalChain([onLoadMoreRef, 'access',
|
|
36490
|
+
if (_optionalChain([entries, 'access', _686 => _686[0], 'optionalAccess', _687 => _687.isIntersecting])) {
|
|
36491
|
+
_optionalChain([onLoadMoreRef, 'access', _688 => _688.current, 'optionalCall', _689 => _689()]);
|
|
36525
36492
|
}
|
|
36526
36493
|
},
|
|
36527
36494
|
{ rootMargin: "200px" }
|
|
36528
36495
|
);
|
|
36529
36496
|
observer.observe(sentinel);
|
|
36530
36497
|
return () => observer.disconnect();
|
|
36531
|
-
}, [_optionalChain([infiniteScroll, 'optionalAccess',
|
|
36498
|
+
}, [_optionalChain([infiniteScroll, 'optionalAccess', _690 => _690.hasNextPage]), _optionalChain([infiniteScroll, 'optionalAccess', _691 => _691.isFetchingNextPage])]);
|
|
36532
36499
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex flex-col gap-1 w-full", containerClassName), children: [
|
|
36533
36500
|
showToolbar && bulkActions && selectedRows.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between bg-ods-card border border-ods-border rounded-[6px] p-3 mb-2", children: [
|
|
36534
36501
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary text-sm", children: [
|
|
@@ -36598,14 +36565,14 @@ function Table({
|
|
|
36598
36565
|
selected: isRowSelected(item),
|
|
36599
36566
|
onSelect: handleSelectRow,
|
|
36600
36567
|
animateRowReorder,
|
|
36601
|
-
motionDiv: _optionalChain([tableMotion, 'optionalAccess',
|
|
36568
|
+
motionDiv: _optionalChain([tableMotion, 'optionalAccess', _692 => _692.motionDiv])
|
|
36602
36569
|
},
|
|
36603
36570
|
getRowKey(item, index)
|
|
36604
36571
|
));
|
|
36605
|
-
const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess',
|
|
36572
|
+
const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess', _693 => _693.LayoutGroup]);
|
|
36606
36573
|
return animateRowReorder && LayoutGroup ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LayoutGroup, { children: rows }) : rows;
|
|
36607
36574
|
})(),
|
|
36608
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
36575
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _694 => _694.isFetchingNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36609
36576
|
TableCardSkeleton,
|
|
36610
36577
|
{
|
|
36611
36578
|
columns,
|
|
@@ -36614,7 +36581,7 @@ function Table({
|
|
|
36614
36581
|
hasChevron: Boolean(rowHref)
|
|
36615
36582
|
}
|
|
36616
36583
|
),
|
|
36617
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
36584
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _695 => _695.hasNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
|
|
36618
36585
|
!infiniteScroll && Array.from({ length: Math.max(0, skeletonRows - data.length) }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
36619
36586
|
"div",
|
|
36620
36587
|
{
|
|
@@ -36972,7 +36939,7 @@ function QueryReportTable({
|
|
|
36972
36939
|
);
|
|
36973
36940
|
const handleExport = () => {
|
|
36974
36941
|
exportToCSV(data, columns, exportFilename);
|
|
36975
|
-
_optionalChain([onExport, 'optionalCall',
|
|
36942
|
+
_optionalChain([onExport, 'optionalCall', _696 => _696()]);
|
|
36976
36943
|
};
|
|
36977
36944
|
const tableMinWidth = columns.length * (columnWidth + 16);
|
|
36978
36945
|
const {
|
|
@@ -37145,7 +37112,7 @@ function DataTableColumnFilter({
|
|
|
37145
37112
|
align = "left"
|
|
37146
37113
|
}) {
|
|
37147
37114
|
const currentValue = column.getFilterValue();
|
|
37148
|
-
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess',
|
|
37115
|
+
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _697 => _697.length]), () => ( 0));
|
|
37149
37116
|
const sections = _react.useMemo.call(void 0,
|
|
37150
37117
|
() => [
|
|
37151
37118
|
{
|
|
@@ -37225,7 +37192,7 @@ function DataTableHeader({
|
|
|
37225
37192
|
const hasVisibleHeaderCell = headerGroup.headers.some((header) => {
|
|
37226
37193
|
if (header.isPlaceholder) return false;
|
|
37227
37194
|
if (isLgUp) return true;
|
|
37228
|
-
return Boolean(_optionalChain([header, 'access',
|
|
37195
|
+
return Boolean(_optionalChain([header, 'access', _698 => _698.column, 'access', _699 => _699.columnDef, 'access', _700 => _700.meta, 'optionalAccess', _701 => _701.filter]));
|
|
37229
37196
|
});
|
|
37230
37197
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
37231
37198
|
"div",
|
|
@@ -37255,20 +37222,20 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
|
|
|
37255
37222
|
if (header.isPlaceholder) return null;
|
|
37256
37223
|
const column = header.column;
|
|
37257
37224
|
const meta = column.columnDef.meta;
|
|
37258
|
-
const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess',
|
|
37259
|
-
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
37260
|
-
const canSort = _optionalChain([meta, 'optionalAccess',
|
|
37261
|
-
const sortDir = _optionalChain([sort, 'optionalAccess',
|
|
37225
|
+
const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess', _702 => _702.filter]));
|
|
37226
|
+
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _703 => _703.align]), () => ( "left"));
|
|
37227
|
+
const canSort = _optionalChain([meta, 'optionalAccess', _704 => _704.sortable]) === true;
|
|
37228
|
+
const sortDir = _optionalChain([sort, 'optionalAccess', _705 => _705.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
|
|
37262
37229
|
if (!isLgUp && !hasFilter) return null;
|
|
37263
37230
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
37264
37231
|
"div",
|
|
37265
37232
|
{
|
|
37266
37233
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
37267
37234
|
"flex items-stretch",
|
|
37268
|
-
isLgUp && (_optionalChain([meta, 'optionalAccess',
|
|
37269
|
-
_optionalChain([meta, 'optionalAccess',
|
|
37235
|
+
isLgUp && (_optionalChain([meta, 'optionalAccess', _706 => _706.width]) || "flex-1 min-w-0"),
|
|
37236
|
+
_optionalChain([meta, 'optionalAccess', _707 => _707.headerClassName]),
|
|
37270
37237
|
// Don't apply hide classes if column is filterable on tablet (keep filter accessible)
|
|
37271
|
-
!(hasFilter && !isLgUp) && getHideClasses2(_optionalChain([meta, 'optionalAccess',
|
|
37238
|
+
!(hasFilter && !isLgUp) && getHideClasses2(_optionalChain([meta, 'optionalAccess', _708 => _708.hideAt]))
|
|
37272
37239
|
),
|
|
37273
37240
|
children: hasFilter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
37274
37241
|
DataTableColumnFilter,
|
|
@@ -37287,7 +37254,7 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
|
|
|
37287
37254
|
isLgUp && alignJustify(align),
|
|
37288
37255
|
canSort && "group cursor-pointer"
|
|
37289
37256
|
),
|
|
37290
|
-
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall',
|
|
37257
|
+
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _709 => _709(column.id)]) : void 0,
|
|
37291
37258
|
children: [
|
|
37292
37259
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
37293
37260
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -37352,7 +37319,7 @@ function DataTableSkeleton({
|
|
|
37352
37319
|
}) {
|
|
37353
37320
|
const table = useDataTableContext();
|
|
37354
37321
|
const columns = table.getVisibleFlatColumns();
|
|
37355
|
-
const firstColumnId = _optionalChain([columns, 'access',
|
|
37322
|
+
const firstColumnId = _optionalChain([columns, 'access', _710 => _710[0], 'optionalAccess', _711 => _711.id]);
|
|
37356
37323
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
37357
37324
|
"div",
|
|
37358
37325
|
{
|
|
@@ -37376,7 +37343,7 @@ function DataTableSkeleton({
|
|
|
37376
37343
|
{
|
|
37377
37344
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
37378
37345
|
"flex flex-col justify-center shrink-0",
|
|
37379
|
-
_optionalChain([meta, 'optionalAccess',
|
|
37346
|
+
_optionalChain([meta, 'optionalAccess', _712 => _712.width]) || "flex-1"
|
|
37380
37347
|
),
|
|
37381
37348
|
children: [
|
|
37382
37349
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-5 bg-ods-bg-surface rounded-sm w-3/4 mb-[var(--spacing-system-xxs)]" }),
|
|
@@ -37425,7 +37392,7 @@ function DataTableRowImpl({
|
|
|
37425
37392
|
const handleClick = _react.useCallback.call(void 0,
|
|
37426
37393
|
(e) => {
|
|
37427
37394
|
const target = e.target;
|
|
37428
|
-
if (!_optionalChain([containerRef, 'access',
|
|
37395
|
+
if (!_optionalChain([containerRef, 'access', _713 => _713.current, 'optionalAccess', _714 => _714.contains, 'call', _715 => _715(target)])) {
|
|
37429
37396
|
if (isLinkMode) e.preventDefault();
|
|
37430
37397
|
return;
|
|
37431
37398
|
}
|
|
@@ -37433,7 +37400,7 @@ function DataTableRowImpl({
|
|
|
37433
37400
|
if (isLinkMode) e.preventDefault();
|
|
37434
37401
|
return;
|
|
37435
37402
|
}
|
|
37436
|
-
_optionalChain([onClick, 'optionalCall',
|
|
37403
|
+
_optionalChain([onClick, 'optionalCall', _716 => _716(row.original)]);
|
|
37437
37404
|
},
|
|
37438
37405
|
[onClick, row.original, isLinkMode]
|
|
37439
37406
|
);
|
|
@@ -37458,10 +37425,10 @@ function DataTableRowImpl({
|
|
|
37458
37425
|
{
|
|
37459
37426
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
37460
37427
|
"flex flex-col overflow-hidden",
|
|
37461
|
-
alignJustify(_optionalChain([meta, 'optionalAccess',
|
|
37462
|
-
_optionalChain([meta, 'optionalAccess',
|
|
37463
|
-
_optionalChain([meta, 'optionalAccess',
|
|
37464
|
-
getHideClasses2(_optionalChain([meta, 'optionalAccess',
|
|
37428
|
+
alignJustify(_optionalChain([meta, 'optionalAccess', _717 => _717.align])),
|
|
37429
|
+
_optionalChain([meta, 'optionalAccess', _718 => _718.width]) || "flex-1 min-w-0",
|
|
37430
|
+
_optionalChain([meta, 'optionalAccess', _719 => _719.cellClassName]),
|
|
37431
|
+
getHideClasses2(_optionalChain([meta, 'optionalAccess', _720 => _720.hideAt]))
|
|
37465
37432
|
),
|
|
37466
37433
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CellContent, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) })
|
|
37467
37434
|
},
|
|
@@ -37540,7 +37507,7 @@ function DataTableBody({
|
|
|
37540
37507
|
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: [
|
|
37541
37508
|
rows.map((row, index) => {
|
|
37542
37509
|
const item = row.original;
|
|
37543
|
-
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall',
|
|
37510
|
+
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _721 => _721(item)]), () => ( void 0));
|
|
37544
37511
|
const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
|
|
37545
37512
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
37546
37513
|
DataTableRow,
|
|
@@ -37550,7 +37517,7 @@ function DataTableBody({
|
|
|
37550
37517
|
href,
|
|
37551
37518
|
compact,
|
|
37552
37519
|
className: cls,
|
|
37553
|
-
subRow: _optionalChain([renderSubRow, 'optionalCall',
|
|
37520
|
+
subRow: _optionalChain([renderSubRow, 'optionalCall', _722 => _722(item)])
|
|
37554
37521
|
},
|
|
37555
37522
|
row.id
|
|
37556
37523
|
);
|
|
@@ -37605,7 +37572,7 @@ function DataTableInfiniteFooter({
|
|
|
37605
37572
|
if (!sentinel) return;
|
|
37606
37573
|
const observer = new IntersectionObserver(
|
|
37607
37574
|
(entries) => {
|
|
37608
|
-
if (_optionalChain([entries, 'access',
|
|
37575
|
+
if (_optionalChain([entries, 'access', _723 => _723[0], 'optionalAccess', _724 => _724.isIntersecting])) onLoadMoreRef.current();
|
|
37609
37576
|
},
|
|
37610
37577
|
{ rootMargin }
|
|
37611
37578
|
);
|
|
@@ -37653,7 +37620,7 @@ function DataTableRowCount({
|
|
|
37653
37620
|
const table = useDataTableContext();
|
|
37654
37621
|
const count = _nullishCoalesce(totalCount, () => ( table.getRowModel().rows.length));
|
|
37655
37622
|
if (hideWhenEmpty && count === 0) return null;
|
|
37656
|
-
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall',
|
|
37623
|
+
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _725 => _725(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
|
|
37657
37624
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
37658
37625
|
"span",
|
|
37659
37626
|
{
|
|
@@ -37812,7 +37779,7 @@ function SearchInput({
|
|
|
37812
37779
|
if (!showHiddenTags) return;
|
|
37813
37780
|
const handleClick = (e) => {
|
|
37814
37781
|
const target = e.target;
|
|
37815
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
37782
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _726 => _726.current, 'optionalAccess', _727 => _727.contains, 'call', _728 => _728(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _729 => _729.current, 'optionalAccess', _730 => _730.contains, 'call', _731 => _731(target)])) {
|
|
37816
37783
|
setShowHiddenTags(false);
|
|
37817
37784
|
}
|
|
37818
37785
|
};
|
|
@@ -37860,10 +37827,10 @@ function SearchInput({
|
|
|
37860
37827
|
} else {
|
|
37861
37828
|
setInternalValue("");
|
|
37862
37829
|
}
|
|
37863
|
-
_optionalChain([inputRef, 'access',
|
|
37830
|
+
_optionalChain([inputRef, 'access', _732 => _732.current, 'optionalAccess', _733 => _733.focus, 'call', _734 => _734()]);
|
|
37864
37831
|
};
|
|
37865
37832
|
const handleResultClick = (result, e) => {
|
|
37866
|
-
_optionalChain([onResultSelect, 'optionalCall',
|
|
37833
|
+
_optionalChain([onResultSelect, 'optionalCall', _735 => _735(
|
|
37867
37834
|
result,
|
|
37868
37835
|
e ? {
|
|
37869
37836
|
metaKey: e.metaKey,
|
|
@@ -37895,7 +37862,7 @@ function SearchInput({
|
|
|
37895
37862
|
if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
|
|
37896
37863
|
handleResultClick(flatResults[highlightedIndex]);
|
|
37897
37864
|
} else {
|
|
37898
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
37865
|
+
_optionalChain([onSubmit, 'optionalCall', _736 => _736(currentValue)]);
|
|
37899
37866
|
}
|
|
37900
37867
|
break;
|
|
37901
37868
|
case "Escape":
|
|
@@ -37973,7 +37940,7 @@ function SearchInput({
|
|
|
37973
37940
|
dropdownVisible && "!border-ods-accent"
|
|
37974
37941
|
),
|
|
37975
37942
|
onClick: () => {
|
|
37976
|
-
_optionalChain([inputRef, 'access',
|
|
37943
|
+
_optionalChain([inputRef, 'access', _737 => _737.current, 'optionalAccess', _738 => _738.focus, 'call', _739 => _739()]);
|
|
37977
37944
|
setIsOpen(true);
|
|
37978
37945
|
},
|
|
37979
37946
|
children: [
|
|
@@ -38057,10 +38024,10 @@ function SearchInput({
|
|
|
38057
38024
|
align: "start",
|
|
38058
38025
|
onOpenAutoFocus: (e) => {
|
|
38059
38026
|
e.preventDefault();
|
|
38060
|
-
_optionalChain([inputRef, 'access',
|
|
38027
|
+
_optionalChain([inputRef, 'access', _740 => _740.current, 'optionalAccess', _741 => _741.focus, 'call', _742 => _742()]);
|
|
38061
38028
|
},
|
|
38062
38029
|
onInteractOutside: (e) => {
|
|
38063
|
-
if (_optionalChain([containerRef, 'access',
|
|
38030
|
+
if (_optionalChain([containerRef, 'access', _743 => _743.current, 'optionalAccess', _744 => _744.contains, 'call', _745 => _745(e.target)])) {
|
|
38064
38031
|
e.preventDefault();
|
|
38065
38032
|
}
|
|
38066
38033
|
},
|
|
@@ -38077,10 +38044,10 @@ function SearchInput({
|
|
|
38077
38044
|
ref: hiddenTagsPopupRef,
|
|
38078
38045
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
38079
38046
|
style: {
|
|
38080
|
-
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([containerRef, 'access',
|
|
38047
|
+
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([containerRef, 'access', _746 => _746.current, 'optionalAccess', _747 => _747.getBoundingClientRect, 'call', _748 => _748(), 'access', _749 => _749.left]), () => ( 0))) : 0
|
|
38081
38048
|
},
|
|
38082
38049
|
onRemove: (value2) => {
|
|
38083
|
-
_optionalChain([onFilterRemove, 'optionalCall',
|
|
38050
|
+
_optionalChain([onFilterRemove, 'optionalCall', _750 => _750(value2)]);
|
|
38084
38051
|
if (hiddenCount <= 1) setShowHiddenTags(false);
|
|
38085
38052
|
}
|
|
38086
38053
|
}
|
|
@@ -38131,7 +38098,7 @@ function FilterListItem({
|
|
|
38131
38098
|
}) {
|
|
38132
38099
|
const handleToggle = () => {
|
|
38133
38100
|
if (disabled) return;
|
|
38134
|
-
_optionalChain([onToggle, 'optionalCall',
|
|
38101
|
+
_optionalChain([onToggle, 'optionalCall', _751 => _751(!selected)]);
|
|
38135
38102
|
};
|
|
38136
38103
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
38137
38104
|
"div",
|
|
@@ -38178,7 +38145,7 @@ function FilterListItem({
|
|
|
38178
38145
|
CheckboxPrimitive4.Root,
|
|
38179
38146
|
{
|
|
38180
38147
|
checked: selected,
|
|
38181
|
-
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall',
|
|
38148
|
+
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _752 => _752(c === true)]),
|
|
38182
38149
|
onClick: (e) => e.stopPropagation(),
|
|
38183
38150
|
disabled,
|
|
38184
38151
|
"aria-label": title,
|
|
@@ -38277,7 +38244,7 @@ function TagSearchInput({
|
|
|
38277
38244
|
if (!showHiddenTags) return;
|
|
38278
38245
|
const handleClick = (e) => {
|
|
38279
38246
|
const target = e.target;
|
|
38280
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
38247
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _753 => _753.current, 'optionalAccess', _754 => _754.contains, 'call', _755 => _755(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _756 => _756.current, 'optionalAccess', _757 => _757.contains, 'call', _758 => _758(target)])) {
|
|
38281
38248
|
setShowHiddenTags(false);
|
|
38282
38249
|
}
|
|
38283
38250
|
};
|
|
@@ -38293,13 +38260,13 @@ function TagSearchInput({
|
|
|
38293
38260
|
e.preventDefault();
|
|
38294
38261
|
onSubmit(searchValue);
|
|
38295
38262
|
}
|
|
38296
|
-
_optionalChain([onKeyDown, 'optionalCall',
|
|
38263
|
+
_optionalChain([onKeyDown, 'optionalCall', _759 => _759(e)]);
|
|
38297
38264
|
};
|
|
38298
38265
|
const handleClearAll = (e) => {
|
|
38299
38266
|
e.stopPropagation();
|
|
38300
38267
|
e.preventDefault();
|
|
38301
|
-
_optionalChain([onClearAll, 'optionalCall',
|
|
38302
|
-
_optionalChain([inputRef, 'access',
|
|
38268
|
+
_optionalChain([onClearAll, 'optionalCall', _760 => _760()]);
|
|
38269
|
+
_optionalChain([inputRef, 'access', _761 => _761.current, 'optionalAccess', _762 => _762.focus, 'call', _763 => _763()]);
|
|
38303
38270
|
};
|
|
38304
38271
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: wrapperRef, className: "relative", children: [
|
|
38305
38272
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -38316,7 +38283,7 @@ function TagSearchInput({
|
|
|
38316
38283
|
className
|
|
38317
38284
|
),
|
|
38318
38285
|
onClick: () => {
|
|
38319
|
-
if (!disabled) _optionalChain([inputRef, 'access',
|
|
38286
|
+
if (!disabled) _optionalChain([inputRef, 'access', _764 => _764.current, 'optionalAccess', _765 => _765.focus, 'call', _766 => _766()]);
|
|
38320
38287
|
},
|
|
38321
38288
|
children: [
|
|
38322
38289
|
/* @__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" }) }),
|
|
@@ -38388,7 +38355,7 @@ function TagSearchInput({
|
|
|
38388
38355
|
items: hiddenTags,
|
|
38389
38356
|
disabled,
|
|
38390
38357
|
style: {
|
|
38391
|
-
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access',
|
|
38358
|
+
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access', _767 => _767.current, 'optionalAccess', _768 => _768.getBoundingClientRect, 'call', _769 => _769(), 'access', _770 => _770.left]), () => ( 0))) : 0
|
|
38392
38359
|
},
|
|
38393
38360
|
onRemove: (value) => {
|
|
38394
38361
|
onTagRemove(value);
|
|
@@ -38489,7 +38456,7 @@ function MarkdownEditor({
|
|
|
38489
38456
|
const [defaultExtraCommands, setDefaultExtraCommands] = _react.useState.call(void 0, []);
|
|
38490
38457
|
_react.useEffect.call(void 0, () => {
|
|
38491
38458
|
Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor"))).then((mod) => {
|
|
38492
|
-
if (_optionalChain([mod, 'access',
|
|
38459
|
+
if (_optionalChain([mod, 'access', _771 => _771.commands, 'optionalAccess', _772 => _772.getExtraCommands])) {
|
|
38493
38460
|
setDefaultExtraCommands(mod.commands.getExtraCommands());
|
|
38494
38461
|
}
|
|
38495
38462
|
});
|
|
@@ -38523,7 +38490,7 @@ function MarkdownEditor({
|
|
|
38523
38490
|
const isImage = file.type.startsWith("image/");
|
|
38524
38491
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
38525
38492
|
insertTextAtCursor(markdown);
|
|
38526
|
-
_optionalChain([onFileUploaded, 'optionalCall',
|
|
38493
|
+
_optionalChain([onFileUploaded, 'optionalCall', _773 => _773(url, file.name)]);
|
|
38527
38494
|
} catch (error) {
|
|
38528
38495
|
console.error("File upload failed:", error);
|
|
38529
38496
|
setUploadProgress("Upload failed. Please try again.");
|
|
@@ -38536,7 +38503,7 @@ function MarkdownEditor({
|
|
|
38536
38503
|
);
|
|
38537
38504
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
38538
38505
|
(e) => {
|
|
38539
|
-
const file = _optionalChain([e, 'access',
|
|
38506
|
+
const file = _optionalChain([e, 'access', _774 => _774.target, 'access', _775 => _775.files, 'optionalAccess', _776 => _776[0]]);
|
|
38540
38507
|
if (file) {
|
|
38541
38508
|
handleFileUpload(file);
|
|
38542
38509
|
e.target.value = "";
|
|
@@ -38547,7 +38514,7 @@ function MarkdownEditor({
|
|
|
38547
38514
|
const handlePaste = _react.useCallback.call(void 0,
|
|
38548
38515
|
(e) => {
|
|
38549
38516
|
if (!onUploadFile) return;
|
|
38550
|
-
const items = _optionalChain([e, 'access',
|
|
38517
|
+
const items = _optionalChain([e, 'access', _777 => _777.clipboardData, 'optionalAccess', _778 => _778.items]);
|
|
38551
38518
|
if (!items) return;
|
|
38552
38519
|
for (const item of items) {
|
|
38553
38520
|
if (item.type.startsWith("image/")) {
|
|
@@ -38572,7 +38539,7 @@ function MarkdownEditor({
|
|
|
38572
38539
|
buttonProps: { "aria-label": "Upload file", title: "Upload file" },
|
|
38573
38540
|
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" }),
|
|
38574
38541
|
execute: () => {
|
|
38575
|
-
_optionalChain([fileInputRef, 'access',
|
|
38542
|
+
_optionalChain([fileInputRef, 'access', _779 => _779.current, 'optionalAccess', _780 => _780.click, 'call', _781 => _781()]);
|
|
38576
38543
|
}
|
|
38577
38544
|
} : null;
|
|
38578
38545
|
const extraCommands = uploadCommand ? [...defaultExtraCommands, uploadCommand] : defaultExtraCommands;
|
|
@@ -38584,7 +38551,7 @@ function MarkdownEditor({
|
|
|
38584
38551
|
const EDGE_ZONE = 60;
|
|
38585
38552
|
const MAX_SCROLL_SPEED = 15;
|
|
38586
38553
|
const findScrollParent = _react.useCallback.call(void 0, (el) => {
|
|
38587
|
-
let node = _optionalChain([el, 'optionalAccess',
|
|
38554
|
+
let node = _optionalChain([el, 'optionalAccess', _782 => _782.parentElement]);
|
|
38588
38555
|
while (node && node !== document.documentElement) {
|
|
38589
38556
|
const { overflowY } = window.getComputedStyle(node);
|
|
38590
38557
|
if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) {
|
|
@@ -38727,7 +38694,7 @@ function matchesAccept(file, accept) {
|
|
|
38727
38694
|
});
|
|
38728
38695
|
}
|
|
38729
38696
|
function dragHasFiles(e) {
|
|
38730
|
-
const types = _optionalChain([e, 'access',
|
|
38697
|
+
const types = _optionalChain([e, 'access', _783 => _783.dataTransfer, 'optionalAccess', _784 => _784.types]);
|
|
38731
38698
|
if (!types) return false;
|
|
38732
38699
|
for (let i = 0; i < types.length; i++) {
|
|
38733
38700
|
if (types[i] === "Files") return true;
|
|
@@ -38823,7 +38790,7 @@ function FileUpload({
|
|
|
38823
38790
|
e.stopPropagation();
|
|
38824
38791
|
setDragActive(false);
|
|
38825
38792
|
if (disabled) return;
|
|
38826
|
-
if (_optionalChain([e, 'access',
|
|
38793
|
+
if (_optionalChain([e, 'access', _785 => _785.dataTransfer, 'access', _786 => _786.files, 'optionalAccess', _787 => _787.length])) {
|
|
38827
38794
|
handleFiles(e.dataTransfer.files);
|
|
38828
38795
|
}
|
|
38829
38796
|
};
|
|
@@ -38851,7 +38818,7 @@ function FileUpload({
|
|
|
38851
38818
|
e.preventDefault();
|
|
38852
38819
|
dragCounter = 0;
|
|
38853
38820
|
setDragActive(false);
|
|
38854
|
-
if (_optionalChain([e, 'access',
|
|
38821
|
+
if (_optionalChain([e, 'access', _788 => _788.dataTransfer, 'optionalAccess', _789 => _789.files, 'optionalAccess', _790 => _790.length])) {
|
|
38855
38822
|
handleFilesRef.current(e.dataTransfer.files);
|
|
38856
38823
|
}
|
|
38857
38824
|
};
|
|
@@ -38873,7 +38840,7 @@ function FileUpload({
|
|
|
38873
38840
|
};
|
|
38874
38841
|
}, [acceptWindowDrops, disabled]);
|
|
38875
38842
|
const handleFileSelect = (e) => {
|
|
38876
|
-
if (_optionalChain([e, 'access',
|
|
38843
|
+
if (_optionalChain([e, 'access', _791 => _791.target, 'access', _792 => _792.files, 'optionalAccess', _793 => _793.length])) {
|
|
38877
38844
|
handleFiles(e.target.files);
|
|
38878
38845
|
}
|
|
38879
38846
|
};
|
|
@@ -38890,7 +38857,7 @@ function FileUpload({
|
|
|
38890
38857
|
};
|
|
38891
38858
|
const openDialog = async () => {
|
|
38892
38859
|
if (disabled) return;
|
|
38893
|
-
_optionalChain([fileInputRef, 'access',
|
|
38860
|
+
_optionalChain([fileInputRef, 'access', _794 => _794.current, 'optionalAccess', _795 => _795.click, 'call', _796 => _796()]);
|
|
38894
38861
|
};
|
|
38895
38862
|
const displayError = error || validationError || void 0;
|
|
38896
38863
|
const hasFiles = isManaged ? managedFiles.length > 0 : files.length > 0;
|
|
@@ -38952,7 +38919,7 @@ function FileUpload({
|
|
|
38952
38919
|
"button",
|
|
38953
38920
|
{
|
|
38954
38921
|
type: "button",
|
|
38955
|
-
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall',
|
|
38922
|
+
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _797 => _797(entry.id)]),
|
|
38956
38923
|
className: "shrink-0 text-ods-error hover:opacity-80 transition-opacity",
|
|
38957
38924
|
"aria-label": `Remove ${entry.fileName}`,
|
|
38958
38925
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQXHTYNAWcjs.TrashIcon, { className: "size-6" })
|
|
@@ -39083,7 +39050,7 @@ function ImageUploader({
|
|
|
39083
39050
|
onChange(file);
|
|
39084
39051
|
};
|
|
39085
39052
|
const handleFileSelect = (e) => {
|
|
39086
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
39053
|
+
validateAndEmit(_optionalChain([e, 'access', _798 => _798.target, 'access', _799 => _799.files, 'optionalAccess', _800 => _800[0]]));
|
|
39087
39054
|
if (inputRef.current) inputRef.current.value = "";
|
|
39088
39055
|
};
|
|
39089
39056
|
const handleDrag = (e) => {
|
|
@@ -39098,11 +39065,11 @@ function ImageUploader({
|
|
|
39098
39065
|
e.stopPropagation();
|
|
39099
39066
|
setDragActive(false);
|
|
39100
39067
|
if (!interactive) return;
|
|
39101
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
39068
|
+
validateAndEmit(_optionalChain([e, 'access', _801 => _801.dataTransfer, 'access', _802 => _802.files, 'optionalAccess', _803 => _803[0]]));
|
|
39102
39069
|
};
|
|
39103
39070
|
const openDialog = () => {
|
|
39104
39071
|
if (!interactive) return;
|
|
39105
|
-
_optionalChain([inputRef, 'access',
|
|
39072
|
+
_optionalChain([inputRef, 'access', _804 => _804.current, 'optionalAccess', _805 => _805.click, 'call', _806 => _806()]);
|
|
39106
39073
|
};
|
|
39107
39074
|
const handleRootKeyDown = (e) => {
|
|
39108
39075
|
if (hasImage || !interactive) return;
|
|
@@ -39293,8 +39260,8 @@ function ColorPresetSelect({
|
|
|
39293
39260
|
}) {
|
|
39294
39261
|
const selectedPreset = presets.find((p) => p.key === presetKey);
|
|
39295
39262
|
const isCustom = !selectedPreset;
|
|
39296
|
-
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
39297
|
-
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
39263
|
+
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _807 => _807.label]), () => ( "Custom"));
|
|
39264
|
+
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _808 => _808.color]), () => ( value));
|
|
39298
39265
|
const groups = [
|
|
39299
39266
|
{
|
|
39300
39267
|
items: [
|
|
@@ -39584,7 +39551,7 @@ function TicketStatusConfigRow({
|
|
|
39584
39551
|
_chunkQJGRP2YEcjs.Input,
|
|
39585
39552
|
{
|
|
39586
39553
|
value: name,
|
|
39587
|
-
onChange: (e) => _optionalChain([onNameChange, 'optionalCall',
|
|
39554
|
+
onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _809 => _809(e.target.value)]),
|
|
39588
39555
|
disabled: isSystem,
|
|
39589
39556
|
readOnly: isSystem,
|
|
39590
39557
|
"aria-label": "Status name",
|
|
@@ -39957,14 +39924,14 @@ function TicketInfoSection({
|
|
|
39957
39924
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39958
39925
|
SquareAvatar,
|
|
39959
39926
|
{
|
|
39960
|
-
src: _optionalChain([organization, 'optionalAccess',
|
|
39961
|
-
alt: _optionalChain([organization, 'optionalAccess',
|
|
39962
|
-
fallback: _optionalChain([organization, 'optionalAccess',
|
|
39927
|
+
src: _optionalChain([organization, 'optionalAccess', _810 => _810.imageSrc]),
|
|
39928
|
+
alt: _optionalChain([organization, 'optionalAccess', _811 => _811.name]),
|
|
39929
|
+
fallback: _optionalChain([organization, 'optionalAccess', _812 => _812.name]) || "Org",
|
|
39963
39930
|
size: "md",
|
|
39964
39931
|
className: "shrink-0"
|
|
39965
39932
|
}
|
|
39966
39933
|
),
|
|
39967
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess',
|
|
39934
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess', _813 => _813.name]) || "Unassigned", label: "Organization" })
|
|
39968
39935
|
] }),
|
|
39969
39936
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: assigned ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39970
39937
|
AssigneeDropdown,
|
|
@@ -39985,10 +39952,10 @@ function TicketInfoSection({
|
|
|
39985
39952
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39986
39953
|
InfoCell2,
|
|
39987
39954
|
{
|
|
39988
|
-
value: _optionalChain([device, 'optionalAccess',
|
|
39955
|
+
value: _optionalChain([device, 'optionalAccess', _814 => _814.name]) || "Unassigned",
|
|
39989
39956
|
label: "Device",
|
|
39990
|
-
icon: _optionalChain([device, 'optionalAccess',
|
|
39991
|
-
onClick: _optionalChain([device, 'optionalAccess',
|
|
39957
|
+
icon: _optionalChain([device, 'optionalAccess', _815 => _815.icon]),
|
|
39958
|
+
onClick: _optionalChain([device, 'optionalAccess', _816 => _816.onClick])
|
|
39992
39959
|
}
|
|
39993
39960
|
),
|
|
39994
39961
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-4 min-w-0", children: [
|
|
@@ -40318,7 +40285,7 @@ function RoadmapCard({
|
|
|
40318
40285
|
const compactHref = safeHref(_nullishCoalesce(href, () => ( null)));
|
|
40319
40286
|
const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
|
|
40320
40287
|
const hasFigma = !!item.figmaUrl;
|
|
40321
|
-
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access',
|
|
40288
|
+
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _817 => _817.screenshots, 'optionalAccess', _818 => _818.length]), () => ( 0))) > 0;
|
|
40322
40289
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
40323
40290
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
40324
40291
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -40337,7 +40304,7 @@ function RoadmapCard({
|
|
|
40337
40304
|
unoptimized: true,
|
|
40338
40305
|
className: "h-8 w-8 object-contain"
|
|
40339
40306
|
}
|
|
40340
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[10px] font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
40307
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[10px] font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _819 => _819.title, 'optionalAccess', _820 => _820.substring, 'call', _821 => _821(0, 2)]) || "??" })
|
|
40341
40308
|
}
|
|
40342
40309
|
),
|
|
40343
40310
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -40412,7 +40379,7 @@ function RoadmapCard({
|
|
|
40412
40379
|
unoptimized: true,
|
|
40413
40380
|
className: "object-contain p-1"
|
|
40414
40381
|
}
|
|
40415
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
40382
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _822 => _822.title, 'optionalAccess', _823 => _823.substring, 'call', _824 => _824(0, 2)]) || "??" }) }),
|
|
40416
40383
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 flex flex-col", children: [
|
|
40417
40384
|
/* @__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 }) }),
|
|
40418
40385
|
/* @__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: [
|
|
@@ -40922,7 +40889,7 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
40922
40889
|
] }) : null,
|
|
40923
40890
|
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
|
|
40924
40891
|
] }),
|
|
40925
|
-
_optionalChain([anchorProps, 'optionalAccess',
|
|
40892
|
+
_optionalChain([anchorProps, 'optionalAccess', _825 => _825.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
|
|
40926
40893
|
] });
|
|
40927
40894
|
if (!anchorProps) {
|
|
40928
40895
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
@@ -40992,7 +40959,7 @@ function getDefaultOptions() {
|
|
|
40992
40959
|
// node_modules/date-fns/startOfWeek.mjs
|
|
40993
40960
|
function startOfWeek(date, options) {
|
|
40994
40961
|
const defaultOptions2 = getDefaultOptions();
|
|
40995
|
-
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
40962
|
+
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _826 => _826.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _827 => _827.locale, 'optionalAccess', _828 => _828.options, 'optionalAccess', _829 => _829.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _830 => _830.locale, 'optionalAccess', _831 => _831.options, 'optionalAccess', _832 => _832.weekStartsOn]))), () => ( 0));
|
|
40996
40963
|
const _date = toDate(date);
|
|
40997
40964
|
const day = _date.getDay();
|
|
40998
40965
|
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
@@ -41167,7 +41134,7 @@ var formatDistance = (token, count, options) => {
|
|
|
41167
41134
|
} else {
|
|
41168
41135
|
result = tokenValue.other.replace("{{count}}", count.toString());
|
|
41169
41136
|
}
|
|
41170
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
41137
|
+
if (_optionalChain([options, 'optionalAccess', _833 => _833.addSuffix])) {
|
|
41171
41138
|
if (options.comparison && options.comparison > 0) {
|
|
41172
41139
|
return "in " + result;
|
|
41173
41140
|
} else {
|
|
@@ -41234,15 +41201,15 @@ var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale
|
|
|
41234
41201
|
// node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs
|
|
41235
41202
|
function buildLocalizeFn(args) {
|
|
41236
41203
|
return (value, options) => {
|
|
41237
|
-
const context = _optionalChain([options, 'optionalAccess',
|
|
41204
|
+
const context = _optionalChain([options, 'optionalAccess', _834 => _834.context]) ? String(options.context) : "standalone";
|
|
41238
41205
|
let valuesArray;
|
|
41239
41206
|
if (context === "formatting" && args.formattingValues) {
|
|
41240
41207
|
const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
|
41241
|
-
const width = _optionalChain([options, 'optionalAccess',
|
|
41208
|
+
const width = _optionalChain([options, 'optionalAccess', _835 => _835.width]) ? String(options.width) : defaultWidth;
|
|
41242
41209
|
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
|
|
41243
41210
|
} else {
|
|
41244
41211
|
const defaultWidth = args.defaultWidth;
|
|
41245
|
-
const width = _optionalChain([options, 'optionalAccess',
|
|
41212
|
+
const width = _optionalChain([options, 'optionalAccess', _836 => _836.width]) ? String(options.width) : args.defaultWidth;
|
|
41246
41213
|
valuesArray = args.values[width] || args.values[defaultWidth];
|
|
41247
41214
|
}
|
|
41248
41215
|
const index = args.argumentCallback ? args.argumentCallback(value) : value;
|
|
@@ -41622,7 +41589,7 @@ function getWeekYear(date, options) {
|
|
|
41622
41589
|
const _date = toDate(date);
|
|
41623
41590
|
const year = _date.getFullYear();
|
|
41624
41591
|
const defaultOptions2 = getDefaultOptions();
|
|
41625
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
41592
|
+
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));
|
|
41626
41593
|
const firstWeekOfNextYear = constructFrom(date, 0);
|
|
41627
41594
|
firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
|
|
41628
41595
|
firstWeekOfNextYear.setHours(0, 0, 0, 0);
|
|
@@ -41643,7 +41610,7 @@ function getWeekYear(date, options) {
|
|
|
41643
41610
|
// node_modules/date-fns/startOfWeekYear.mjs
|
|
41644
41611
|
function startOfWeekYear(date, options) {
|
|
41645
41612
|
const defaultOptions2 = getDefaultOptions();
|
|
41646
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
41613
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _844 => _844.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _845 => _845.locale, 'optionalAccess', _846 => _846.options, 'optionalAccess', _847 => _847.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _848 => _848.locale, 'optionalAccess', _849 => _849.options, 'optionalAccess', _850 => _850.firstWeekContainsDate]))), () => ( 1));
|
|
41647
41614
|
const year = getWeekYear(date, options);
|
|
41648
41615
|
const firstWeek = constructFrom(date, 0);
|
|
41649
41616
|
firstWeek.setFullYear(year, 0, firstWeekContainsDate);
|
|
@@ -42458,9 +42425,9 @@ var doubleQuoteRegExp = /''/g;
|
|
|
42458
42425
|
var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
42459
42426
|
function format(date, formatStr, options) {
|
|
42460
42427
|
const defaultOptions2 = getDefaultOptions();
|
|
42461
|
-
const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
42462
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
42463
|
-
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
42428
|
+
const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _851 => _851.locale]), () => ( defaultOptions2.locale)), () => ( enUS));
|
|
42429
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _852 => _852.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _853 => _853.locale, 'optionalAccess', _854 => _854.options, 'optionalAccess', _855 => _855.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _856 => _856.locale, 'optionalAccess', _857 => _857.options, 'optionalAccess', _858 => _858.firstWeekContainsDate]))), () => ( 1));
|
|
42430
|
+
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _859 => _859.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _860 => _860.locale, 'optionalAccess', _861 => _861.options, 'optionalAccess', _862 => _862.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _863 => _863.locale, 'optionalAccess', _864 => _864.options, 'optionalAccess', _865 => _865.weekStartsOn]))), () => ( 0));
|
|
42464
42431
|
const originalDate = toDate(date);
|
|
42465
42432
|
if (!isValid(originalDate)) {
|
|
42466
42433
|
throw new RangeError("Invalid time value");
|
|
@@ -42501,7 +42468,7 @@ function format(date, formatStr, options) {
|
|
|
42501
42468
|
return parts.map((part) => {
|
|
42502
42469
|
if (!part.isToken) return part.value;
|
|
42503
42470
|
const token = part.value;
|
|
42504
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
42471
|
+
if (!_optionalChain([options, 'optionalAccess', _866 => _866.useAdditionalWeekYearTokens]) && isProtectedWeekYearToken(token) || !_optionalChain([options, 'optionalAccess', _867 => _867.useAdditionalDayOfYearTokens]) && isProtectedDayOfYearToken(token)) {
|
|
42505
42472
|
warnOrThrowProtectedError(token, formatStr, String(date));
|
|
42506
42473
|
}
|
|
42507
42474
|
const formatter = formatters[token[0]];
|
|
@@ -42682,7 +42649,7 @@ function ProgramCard({
|
|
|
42682
42649
|
const dur = formatDurationFromRange(w.start_at, w.end_at);
|
|
42683
42650
|
typeMeta = dur ? `${time} \xB7 ${dur}` : time;
|
|
42684
42651
|
}
|
|
42685
|
-
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access',
|
|
42652
|
+
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _868 => _868.labels, 'optionalAccess', _869 => _869.singular])].filter(
|
|
42686
42653
|
(s) => typeof s === "string" && s.length > 0
|
|
42687
42654
|
);
|
|
42688
42655
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, COMPACT_CARD_OUTER, className), children: [
|
|
@@ -42839,7 +42806,7 @@ function ProgramCard({
|
|
|
42839
42806
|
|
|
42840
42807
|
|
|
42841
42808
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
42842
|
-
const goalsCount = _optionalChain([campaign, 'access',
|
|
42809
|
+
const goalsCount = _optionalChain([campaign, 'access', _870 => _870.goals, 'optionalAccess', _871 => _871.length]) || 0;
|
|
42843
42810
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
42844
42811
|
/* @__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" }) }),
|
|
42845
42812
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -43001,7 +42968,7 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
43001
42968
|
if (row.path && shouldFallbackToPathNav(row) && !row.externalUrl) {
|
|
43002
42969
|
const safePath = sanitizePath(row.path);
|
|
43003
42970
|
if (safePath) {
|
|
43004
|
-
const docTarget = row.documentType ? _optionalChain([ctx, 'access',
|
|
42971
|
+
const docTarget = row.documentType ? _optionalChain([ctx, 'access', _872 => _872.docPlatformTargets, 'optionalAccess', _873 => _873[row.documentType]]) : void 0;
|
|
43005
42972
|
if (docTarget) {
|
|
43006
42973
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
43007
42974
|
const base = `${_chunkFIG2RKZFcjs.getBaseUrl.call(void 0, docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
@@ -43216,8 +43183,8 @@ function cardMenuGroups(href, discuss, openDetails) {
|
|
|
43216
43183
|
if (href) {
|
|
43217
43184
|
items.push({
|
|
43218
43185
|
id: "open-details",
|
|
43219
|
-
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
43220
|
-
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
43186
|
+
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _874 => _874.label]), () => ( "Open Details")),
|
|
43187
|
+
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _875 => _875.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQXHTYNAWcjs.EyeIcon, { size: 20 }))),
|
|
43221
43188
|
// Main row → open the entity (same tab, soft Link nav).
|
|
43222
43189
|
href,
|
|
43223
43190
|
// Trailing 40px ↗ side-button → open in a new tab.
|
|
@@ -43247,8 +43214,8 @@ function HubspotTicketChatCard({
|
|
|
43247
43214
|
isNewTab,
|
|
43248
43215
|
discuss
|
|
43249
43216
|
}) {
|
|
43250
|
-
const status = typeof _optionalChain([chatRef, 'access',
|
|
43251
|
-
const statusLabel = typeof _optionalChain([chatRef, 'access',
|
|
43217
|
+
const status = typeof _optionalChain([chatRef, 'access', _876 => _876.metadata, 'optionalAccess', _877 => _877.status]) === "string" ? chatRef.metadata.status : void 0;
|
|
43218
|
+
const statusLabel = typeof _optionalChain([chatRef, 'access', _878 => _878.metadata, 'optionalAccess', _879 => _879.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
|
|
43252
43219
|
const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
|
|
43253
43220
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43254
43221
|
MingoInfoCard,
|
|
@@ -43271,7 +43238,7 @@ function FaqChatCard({
|
|
|
43271
43238
|
isNewTab,
|
|
43272
43239
|
discuss
|
|
43273
43240
|
}) {
|
|
43274
|
-
const section = typeof _optionalChain([chatRef, 'access',
|
|
43241
|
+
const section = typeof _optionalChain([chatRef, 'access', _880 => _880.metadata, 'optionalAccess', _881 => _881.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
|
|
43275
43242
|
const statusLabel = section && section.length > 0 ? section : "FAQ";
|
|
43276
43243
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43277
43244
|
MingoInfoCard,
|
|
@@ -43291,7 +43258,7 @@ function SlackChatCard({
|
|
|
43291
43258
|
isNewTab,
|
|
43292
43259
|
discuss
|
|
43293
43260
|
}) {
|
|
43294
|
-
const channelName = typeof _optionalChain([chatRef, 'access',
|
|
43261
|
+
const channelName = typeof _optionalChain([chatRef, 'access', _882 => _882.metadata, 'optionalAccess', _883 => _883.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
|
|
43295
43262
|
const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
|
|
43296
43263
|
const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
|
|
43297
43264
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -43331,7 +43298,7 @@ function GenericFinancialChatCard({
|
|
|
43331
43298
|
isNewTab,
|
|
43332
43299
|
discuss
|
|
43333
43300
|
}) {
|
|
43334
|
-
const subtitle = typeof _optionalChain([chatRef, 'access',
|
|
43301
|
+
const subtitle = typeof _optionalChain([chatRef, 'access', _884 => _884.metadata, 'optionalAccess', _885 => _885.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
|
|
43335
43302
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43336
43303
|
MingoInfoCard,
|
|
43337
43304
|
{
|
|
@@ -43400,12 +43367,12 @@ function ProductReleaseChatCard({
|
|
|
43400
43367
|
discuss
|
|
43401
43368
|
}) {
|
|
43402
43369
|
const releaseProps = buildProps(item);
|
|
43403
|
-
const status = _optionalChain([item, 'optionalAccess',
|
|
43370
|
+
const status = _optionalChain([item, 'optionalAccess', _886 => _886.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
|
|
43404
43371
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43405
43372
|
EntityMingoCard,
|
|
43406
43373
|
{
|
|
43407
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
43408
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
43374
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _887 => _887.title]), () => ( "")),
|
|
43375
|
+
description: _optionalChain([item, 'optionalAccess', _888 => _888.summary]) || releaseProps.formattedDate || void 0,
|
|
43409
43376
|
cover: releaseProps.coverImage || void 0,
|
|
43410
43377
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQXHTYNAWcjs.Rocket02Icon, { size: 24 }),
|
|
43411
43378
|
status,
|
|
@@ -43422,17 +43389,17 @@ function CampaignChatCard({
|
|
|
43422
43389
|
isNewTab,
|
|
43423
43390
|
discuss
|
|
43424
43391
|
}) {
|
|
43425
|
-
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
43392
|
+
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _889 => _889.goals])) ? item.goals.length : 0;
|
|
43426
43393
|
const meta = [
|
|
43427
|
-
_optionalChain([item, 'optionalAccess',
|
|
43394
|
+
_optionalChain([item, 'optionalAccess', _890 => _890.start_date]) ? formatDateShort(item.start_date) : null,
|
|
43428
43395
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
43429
43396
|
"Marketing campaign"
|
|
43430
43397
|
].filter(Boolean).join(" \xB7 ");
|
|
43431
43398
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43432
43399
|
EntityMingoCard,
|
|
43433
43400
|
{
|
|
43434
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
43435
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
43401
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _891 => _891.name]), () => ( "")),
|
|
43402
|
+
description: meta || _optionalChain([item, 'optionalAccess', _892 => _892.description]) || void 0,
|
|
43436
43403
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQXHTYNAWcjs.Megaphone01Icon, { size: 24 }),
|
|
43437
43404
|
chatRef,
|
|
43438
43405
|
isNewTab,
|
|
@@ -43485,14 +43452,14 @@ function BlogChatCard({
|
|
|
43485
43452
|
hasEmbeddedVideo,
|
|
43486
43453
|
discuss
|
|
43487
43454
|
}) {
|
|
43488
|
-
const category = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
43455
|
+
const category = Array.isArray(_optionalChain([item, 'optionalAccess', _893 => _893.categories])) ? _optionalChain([item, 'access', _894 => _894.categories, 'access', _895 => _895.find, 'call', _896 => _896((c) => c && c.name), 'optionalAccess', _897 => _897.name]) : void 0;
|
|
43489
43456
|
const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
|
|
43490
43457
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43491
43458
|
EntityMingoCard,
|
|
43492
43459
|
{
|
|
43493
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
43494
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
43495
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
43460
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _898 => _898.title]), () => ( "")),
|
|
43461
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _899 => _899.summary]), () => ( void 0)),
|
|
43462
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _900 => _900.featured_image]), ogPlaceholder),
|
|
43496
43463
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQXHTYNAWcjs.NewspaperIcon, { size: 24 }),
|
|
43497
43464
|
status,
|
|
43498
43465
|
chatRef,
|
|
@@ -43509,13 +43476,13 @@ function CaseStudyChatCard({
|
|
|
43509
43476
|
ogPlaceholder,
|
|
43510
43477
|
discuss
|
|
43511
43478
|
}) {
|
|
43512
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
43479
|
+
const meta = [_optionalChain([item, 'optionalAccess', _901 => _901.msp, 'optionalAccess', _902 => _902.name]), _optionalChain([item, 'optionalAccess', _903 => _903.user, 'optionalAccess', _904 => _904.full_name])].filter(Boolean).join(" \xB7 ");
|
|
43513
43480
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43514
43481
|
EntityMingoCard,
|
|
43515
43482
|
{
|
|
43516
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
43517
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
43518
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
43483
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _905 => _905.title]), () => ( "")),
|
|
43484
|
+
description: _optionalChain([item, 'optionalAccess', _906 => _906.summary]) || meta || void 0,
|
|
43485
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _907 => _907.featured_image]), ogPlaceholder),
|
|
43519
43486
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQXHTYNAWcjs.TrophyIcon, { size: 24 }),
|
|
43520
43487
|
status: { label: "Case study", variant: "grey" },
|
|
43521
43488
|
chatRef,
|
|
@@ -43532,13 +43499,13 @@ function CustomerInterviewChatCard({
|
|
|
43532
43499
|
ogPlaceholder,
|
|
43533
43500
|
discuss
|
|
43534
43501
|
}) {
|
|
43535
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
43502
|
+
const meta = [_optionalChain([item, 'optionalAccess', _908 => _908.user, 'optionalAccess', _909 => _909.full_name]), _optionalChain([item, 'optionalAccess', _910 => _910.msp, 'optionalAccess', _911 => _911.name])].filter(Boolean).join(" \xB7 ");
|
|
43536
43503
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43537
43504
|
EntityMingoCard,
|
|
43538
43505
|
{
|
|
43539
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
43540
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
43541
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
43506
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _912 => _912.title]), () => ( "")),
|
|
43507
|
+
description: _optionalChain([item, 'optionalAccess', _913 => _913.video_summary]) || meta || void 0,
|
|
43508
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _914 => _914.featured_image]), ogPlaceholder),
|
|
43542
43509
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQXHTYNAWcjs.MicrophoneIcon, { size: 24 }),
|
|
43543
43510
|
status: { label: "Interview", variant: "grey" },
|
|
43544
43511
|
chatRef,
|
|
@@ -43555,13 +43522,13 @@ function InvestorUpdateChatCard({
|
|
|
43555
43522
|
ogPlaceholder,
|
|
43556
43523
|
discuss
|
|
43557
43524
|
}) {
|
|
43558
|
-
const title = _optionalChain([item, 'optionalAccess',
|
|
43525
|
+
const title = _optionalChain([item, 'optionalAccess', _915 => _915.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _916 => _916.update_number]), () => ( "?"))}`;
|
|
43559
43526
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43560
43527
|
EntityMingoCard,
|
|
43561
43528
|
{
|
|
43562
43529
|
title,
|
|
43563
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
43564
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
43530
|
+
description: _optionalChain([item, 'optionalAccess', _917 => _917.strategic_update]) || _optionalChain([item, 'optionalAccess', _918 => _918.content]) || formatInvestorUpdatePeriod(_optionalChain([item, 'optionalAccess', _919 => _919.period_start]), _optionalChain([item, 'optionalAccess', _920 => _920.period_end])) || void 0,
|
|
43531
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _921 => _921.featured_image]), ogPlaceholder),
|
|
43565
43532
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQXHTYNAWcjs.PresentationLineIcon, { size: 24 }),
|
|
43566
43533
|
status: { label: "Investor update", variant: "grey" },
|
|
43567
43534
|
chatRef,
|
|
@@ -43578,12 +43545,12 @@ function OnboardingGuideChatCard({
|
|
|
43578
43545
|
ogPlaceholder,
|
|
43579
43546
|
discuss
|
|
43580
43547
|
}) {
|
|
43581
|
-
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess',
|
|
43548
|
+
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _922 => _922.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _923 => _923.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _924 => _924.og_image_url]), ogPlaceholder)));
|
|
43582
43549
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43583
43550
|
EntityMingoCard,
|
|
43584
43551
|
{
|
|
43585
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
43586
|
-
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
43552
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _925 => _925.title]), () => ( "")),
|
|
43553
|
+
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _926 => _926.summary]), () => ( _optionalChain([item, 'optionalAccess', _927 => _927.description]))), () => ( void 0)),
|
|
43587
43554
|
cover,
|
|
43588
43555
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQXHTYNAWcjs.CompassIcon, { size: 24 }),
|
|
43589
43556
|
status: { label: "Guide", variant: "grey" },
|
|
@@ -43604,25 +43571,25 @@ function ProgramChatCard({
|
|
|
43604
43571
|
discuss
|
|
43605
43572
|
}) {
|
|
43606
43573
|
const icon = configKey === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQXHTYNAWcjs.PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQXHTYNAWcjs.CalendarIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQXHTYNAWcjs.MicrophoneIcon, { size: 24 });
|
|
43607
|
-
const isScheduled = _optionalChain([item, 'optionalAccess',
|
|
43574
|
+
const isScheduled = _optionalChain([item, 'optionalAccess', _928 => _928.status]) === "scheduled";
|
|
43608
43575
|
let typeMeta;
|
|
43609
|
-
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess',
|
|
43576
|
+
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _929 => _929.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
|
|
43610
43577
|
typeMeta = formatDurationCompact(item.duration_seconds);
|
|
43611
|
-
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess',
|
|
43578
|
+
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _930 => _930.location_name]) === "string" && item.location_name.trim().length > 0) {
|
|
43612
43579
|
typeMeta = item.location_name;
|
|
43613
|
-
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess',
|
|
43580
|
+
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _931 => _931.start_at])) {
|
|
43614
43581
|
const time = formatTimeWithTimezone(item.start_at, _nullishCoalesce(item.timezone, () => ( null)));
|
|
43615
43582
|
const dur = formatDurationFromRange(item.start_at, item.end_at);
|
|
43616
43583
|
typeMeta = dur ? `${time} \xB7 ${dur}` : time;
|
|
43617
43584
|
}
|
|
43618
|
-
const itemDate = formatDateUTC(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
43585
|
+
const itemDate = formatDateUTC(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _932 => _932.date]), () => ( null)), { fallback: "", timezone: "local" });
|
|
43619
43586
|
const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
|
|
43620
43587
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43621
43588
|
EntityMingoCard,
|
|
43622
43589
|
{
|
|
43623
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
43624
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
43625
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
43590
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _933 => _933.title]), () => ( "")),
|
|
43591
|
+
description: meta || _optionalChain([item, 'optionalAccess', _934 => _934.description]) || void 0,
|
|
43592
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _935 => _935.cover_url]), ogPlaceholder),
|
|
43626
43593
|
fallbackIcon: icon,
|
|
43627
43594
|
status: { label, variant: "grey" },
|
|
43628
43595
|
chatRef,
|
|
@@ -43639,10 +43606,10 @@ function RoadmapChatCard({
|
|
|
43639
43606
|
cardType,
|
|
43640
43607
|
discuss
|
|
43641
43608
|
}) {
|
|
43642
|
-
const logoUrl = typeof _optionalChain([item, 'optionalAccess',
|
|
43643
|
-
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess',
|
|
43609
|
+
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _936 => _936.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
43610
|
+
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _937 => _937.customItemId]) != null;
|
|
43644
43611
|
const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQXHTYNAWcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQXHTYNAWcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQXHTYNAWcjs.MapIcon, { size: 24 });
|
|
43645
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess',
|
|
43612
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _938 => _938.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
43646
43613
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
43647
43614
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
43648
43615
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: logoUrl, alt: "", className: "size-6 object-contain" })
|
|
@@ -43650,10 +43617,10 @@ function RoadmapChatCard({
|
|
|
43650
43617
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43651
43618
|
EntityMingoCard,
|
|
43652
43619
|
{
|
|
43653
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
43654
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
43620
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _939 => _939.title]), () => ( "")),
|
|
43621
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _940 => _940.description]), () => ( void 0)),
|
|
43655
43622
|
fallbackIcon: icon,
|
|
43656
|
-
status: statusPill(_optionalChain([item, 'optionalAccess',
|
|
43623
|
+
status: statusPill(_optionalChain([item, 'optionalAccess', _941 => _941.status])),
|
|
43657
43624
|
chatRef,
|
|
43658
43625
|
isNewTab,
|
|
43659
43626
|
discuss,
|
|
@@ -43739,7 +43706,7 @@ function programRegistryEntries() {
|
|
|
43739
43706
|
discuss: opts.discuss,
|
|
43740
43707
|
configKey: cfg.configKey,
|
|
43741
43708
|
label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
|
|
43742
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
43709
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _942 => _942.extras, 'optionalAccess', _943 => _943.buildOgPlaceholderUrl, 'optionalCall', _944 => _944(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _945 => _945.title]), () => ( "")))]), () => ( null))
|
|
43743
43710
|
}
|
|
43744
43711
|
)
|
|
43745
43712
|
};
|
|
@@ -43891,8 +43858,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
43891
43858
|
chatRef,
|
|
43892
43859
|
isNewTab: opts.isNewTab,
|
|
43893
43860
|
discuss: opts.discuss,
|
|
43894
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
43895
|
-
hasEmbeddedVideo: _optionalChain([chatRef, 'access',
|
|
43861
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _946 => _946.extras, 'optionalAccess', _947 => _947.buildOgPlaceholderUrl, 'optionalCall', _948 => _948(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _949 => _949.title]), () => ( "")))]), () => ( null)),
|
|
43862
|
+
hasEmbeddedVideo: _optionalChain([chatRef, 'access', _950 => _950.metadata, 'optionalAccess', _951 => _951.hasEmbeddedVideo]) === true
|
|
43896
43863
|
}
|
|
43897
43864
|
)
|
|
43898
43865
|
},
|
|
@@ -43909,7 +43876,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
43909
43876
|
chatRef,
|
|
43910
43877
|
isNewTab: opts.isNewTab,
|
|
43911
43878
|
discuss: opts.discuss,
|
|
43912
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
43879
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _952 => _952.extras, 'optionalAccess', _953 => _953.buildOgPlaceholderUrl, 'optionalCall', _954 => _954(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _955 => _955.title]), () => ( "")))]), () => ( null))
|
|
43913
43880
|
}
|
|
43914
43881
|
)
|
|
43915
43882
|
},
|
|
@@ -43926,7 +43893,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
43926
43893
|
chatRef,
|
|
43927
43894
|
isNewTab: opts.isNewTab,
|
|
43928
43895
|
discuss: opts.discuss,
|
|
43929
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
43896
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _956 => _956.extras, 'optionalAccess', _957 => _957.buildOgPlaceholderUrl, 'optionalCall', _958 => _958(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _959 => _959.title]), () => ( "")))]), () => ( null))
|
|
43930
43897
|
}
|
|
43931
43898
|
)
|
|
43932
43899
|
},
|
|
@@ -43937,7 +43904,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
43937
43904
|
bareInline: true,
|
|
43938
43905
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ProductReleaseCardSkeleton, { size: "sm" }),
|
|
43939
43906
|
render: (item, chatRef, opts) => {
|
|
43940
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
43907
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _960 => _960.extras, 'optionalAccess', _961 => _961.buildProductReleaseCardProps]), () => ( defaultBuildProductReleaseCardProps));
|
|
43941
43908
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43942
43909
|
ProductReleaseChatCard,
|
|
43943
43910
|
{
|
|
@@ -43964,7 +43931,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
43964
43931
|
chatRef,
|
|
43965
43932
|
isNewTab: opts.isNewTab,
|
|
43966
43933
|
discuss: opts.discuss,
|
|
43967
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
43934
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _962 => _962.extras, 'optionalAccess', _963 => _963.buildOgPlaceholderUrl, 'optionalCall', _964 => _964(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _965 => _965.title]), () => ( "")))]), () => ( null))
|
|
43968
43935
|
}
|
|
43969
43936
|
)
|
|
43970
43937
|
},
|
|
@@ -43983,7 +43950,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
43983
43950
|
chatRef,
|
|
43984
43951
|
isNewTab: opts.isNewTab,
|
|
43985
43952
|
discuss: opts.discuss,
|
|
43986
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
43953
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _966 => _966.extras, 'optionalAccess', _967 => _967.buildOgPlaceholderUrl, 'optionalCall', _968 => _968(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _969 => _969.title]), () => ( "")))]), () => ( null))
|
|
43987
43954
|
}
|
|
43988
43955
|
)
|
|
43989
43956
|
},
|
|
@@ -43995,7 +43962,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
43995
43962
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, {}),
|
|
43996
43963
|
// No public viewer — synthesize the hub-internal admin URL post-fetch
|
|
43997
43964
|
// so the wrapper + isNewTab computation see the actual destination.
|
|
43998
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
43965
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _970 => _970.id]) ? `/admin/campaigns/${encodeURIComponent(item.id)}` : null,
|
|
43999
43966
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44000
43967
|
CampaignChatCard,
|
|
44001
43968
|
{
|
|
@@ -44021,12 +43988,12 @@ function ChatCardNavWrap({
|
|
|
44021
43988
|
const onClickCapture = (e) => {
|
|
44022
43989
|
if (!href) return;
|
|
44023
43990
|
const targetEl = e.target;
|
|
44024
|
-
if (_optionalChain([targetEl, 'optionalAccess',
|
|
44025
|
-
if (!_optionalChain([targetEl, 'optionalAccess',
|
|
43991
|
+
if (_optionalChain([targetEl, 'optionalAccess', _971 => _971.closest, 'optionalCall', _972 => _972("button")])) return;
|
|
43992
|
+
if (!_optionalChain([targetEl, 'optionalAccess', _973 => _973.closest, 'optionalCall', _974 => _974("a")])) return;
|
|
44026
43993
|
const handled = handleChatNavClick(e, runtime, { href, path, targetPlatform }, router.push);
|
|
44027
43994
|
if (!handled) return;
|
|
44028
43995
|
e.stopPropagation();
|
|
44029
|
-
if (!isNewTab && _optionalChain([panel, 'optionalAccess',
|
|
43996
|
+
if (!isNewTab && _optionalChain([panel, 'optionalAccess', _975 => _975.closeChat])) panel.closeChat();
|
|
44030
43997
|
};
|
|
44031
43998
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
|
|
44032
43999
|
}
|
|
@@ -44048,7 +44015,7 @@ function ChatCardLoader({
|
|
|
44048
44015
|
title: chatRef.title,
|
|
44049
44016
|
externalUrl: chatRef.url,
|
|
44050
44017
|
targetPlatform: chatRef.targetPlatform,
|
|
44051
|
-
path: typeof _optionalChain([chatRef, 'access',
|
|
44018
|
+
path: typeof _optionalChain([chatRef, 'access', _976 => _976.metadata, 'optionalAccess', _977 => _977.path]) === "string" ? chatRef.metadata.path : null
|
|
44052
44019
|
},
|
|
44053
44020
|
sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform })
|
|
44054
44021
|
);
|
|
@@ -44062,7 +44029,7 @@ function ChatCardLoader({
|
|
|
44062
44029
|
const entry = CHAT_CARD_REGISTRY[resolvedChatRef.type];
|
|
44063
44030
|
const fetchEntry = entry && entry.mode === "fetch" ? entry : null;
|
|
44064
44031
|
const { item, isLoading } = useChatCardItem(
|
|
44065
|
-
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess',
|
|
44032
|
+
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _978 => _978.contentRefType]), () => ( "")),
|
|
44066
44033
|
fetchEntry ? resolvedChatRef.id : ""
|
|
44067
44034
|
);
|
|
44068
44035
|
if (!entry) return null;
|
|
@@ -44093,7 +44060,7 @@ function ChatCardLoader({
|
|
|
44093
44060
|
isNewTab,
|
|
44094
44061
|
discuss
|
|
44095
44062
|
};
|
|
44096
|
-
const path = typeof _optionalChain([finalChatRef, 'access',
|
|
44063
|
+
const path = typeof _optionalChain([finalChatRef, 'access', _979 => _979.metadata, 'optionalAccess', _980 => _980.path]) === "string" ? finalChatRef.metadata.path : null;
|
|
44097
44064
|
const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44098
44065
|
ChatCardNavWrap,
|
|
44099
44066
|
{
|
|
@@ -44479,7 +44446,7 @@ function useJetStreamDialogSubscription({
|
|
|
44479
44446
|
const lifecycle = _chunkPXXS27EEcjs.startConnectionLifecycle.call(void 0, {
|
|
44480
44447
|
conn: sharedConn,
|
|
44481
44448
|
wsUrl,
|
|
44482
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
44449
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _981 => _981.current, 'optionalCall', _982 => _982()]),
|
|
44483
44450
|
backoff: reconnectionBackoffRef.current,
|
|
44484
44451
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
44485
44452
|
// JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
|
|
@@ -44494,7 +44461,7 @@ function useJetStreamDialogSubscription({
|
|
|
44494
44461
|
setReconnectionCount((c) => c + 1);
|
|
44495
44462
|
}
|
|
44496
44463
|
hadConnectionBeforeRef.current = true;
|
|
44497
|
-
_optionalChain([onConnectRef, 'access',
|
|
44464
|
+
_optionalChain([onConnectRef, 'access', _983 => _983.current, 'optionalCall', _984 => _984()]);
|
|
44498
44465
|
}
|
|
44499
44466
|
if (status === "error") {
|
|
44500
44467
|
console.warn("[JetStream] NATS protocol error:", evt.data);
|
|
@@ -44504,7 +44471,7 @@ function useJetStreamDialogSubscription({
|
|
|
44504
44471
|
setIsConnected(false);
|
|
44505
44472
|
setIsSubscribed(false);
|
|
44506
44473
|
tearDownSubscription();
|
|
44507
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
44474
|
+
_optionalChain([onDisconnectRef, 'access', _985 => _985.current, 'optionalCall', _986 => _986()]);
|
|
44508
44475
|
}
|
|
44509
44476
|
}
|
|
44510
44477
|
});
|
|
@@ -44583,7 +44550,7 @@ function useJetStreamDialogSubscription({
|
|
|
44583
44550
|
}
|
|
44584
44551
|
subscriptionRef.current = handle;
|
|
44585
44552
|
setIsSubscribed(true);
|
|
44586
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
44553
|
+
_optionalChain([onSubscribedRef, 'access', _987 => _987.current, 'optionalCall', _988 => _988()]);
|
|
44587
44554
|
} catch (e44) {
|
|
44588
44555
|
if (!cancelled) {
|
|
44589
44556
|
setIsSubscribed(false);
|
|
@@ -44696,20 +44663,20 @@ function useNatsDialogSubscription({
|
|
|
44696
44663
|
const tearDownSubscriptions = () => {
|
|
44697
44664
|
subscriptionRefs.current.forEach((sub) => {
|
|
44698
44665
|
try {
|
|
44699
|
-
_optionalChain([sub, 'optionalAccess',
|
|
44666
|
+
_optionalChain([sub, 'optionalAccess', _989 => _989.unsubscribe, 'call', _990 => _990()]);
|
|
44700
44667
|
} catch (e46) {
|
|
44701
44668
|
}
|
|
44702
44669
|
});
|
|
44703
44670
|
subscriptionRefs.current.clear();
|
|
44704
44671
|
lastSubscribedDialogIdRef.current = null;
|
|
44705
|
-
_optionalChain([abortControllerRef, 'access',
|
|
44672
|
+
_optionalChain([abortControllerRef, 'access', _991 => _991.current, 'optionalAccess', _992 => _992.abort, 'call', _993 => _993()]);
|
|
44706
44673
|
abortControllerRef.current = null;
|
|
44707
44674
|
};
|
|
44708
44675
|
const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
|
|
44709
44676
|
const lifecycle = _chunkPXXS27EEcjs.startConnectionLifecycle.call(void 0, {
|
|
44710
44677
|
conn: sharedConn,
|
|
44711
44678
|
wsUrl,
|
|
44712
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
44679
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _994 => _994.current, 'optionalCall', _995 => _995()]),
|
|
44713
44680
|
backoff: reconnectionBackoffRef.current,
|
|
44714
44681
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
44715
44682
|
shouldRetryOn: isDisconnectStatus,
|
|
@@ -44720,7 +44687,7 @@ function useNatsDialogSubscription({
|
|
|
44720
44687
|
setReconnectionCount((c) => c + 1);
|
|
44721
44688
|
}
|
|
44722
44689
|
hadConnectionBeforeRef.current = true;
|
|
44723
|
-
_optionalChain([onConnectRef, 'access',
|
|
44690
|
+
_optionalChain([onConnectRef, 'access', _996 => _996.current, 'optionalCall', _997 => _997()]);
|
|
44724
44691
|
}
|
|
44725
44692
|
if (status === "error") {
|
|
44726
44693
|
console.warn("[NATS] protocol error:", evt.data);
|
|
@@ -44730,7 +44697,7 @@ function useNatsDialogSubscription({
|
|
|
44730
44697
|
setIsConnected(false);
|
|
44731
44698
|
setIsSubscribed(false);
|
|
44732
44699
|
tearDownSubscriptions();
|
|
44733
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
44700
|
+
_optionalChain([onDisconnectRef, 'access', _998 => _998.current, 'optionalCall', _999 => _999()]);
|
|
44734
44701
|
}
|
|
44735
44702
|
}
|
|
44736
44703
|
});
|
|
@@ -44761,13 +44728,13 @@ function useNatsDialogSubscription({
|
|
|
44761
44728
|
setIsSubscribed(false);
|
|
44762
44729
|
subscriptionRefs.current.forEach((sub) => {
|
|
44763
44730
|
try {
|
|
44764
|
-
_optionalChain([sub, 'optionalAccess',
|
|
44731
|
+
_optionalChain([sub, 'optionalAccess', _1000 => _1000.unsubscribe, 'call', _1001 => _1001()]);
|
|
44765
44732
|
} catch (e47) {
|
|
44766
44733
|
}
|
|
44767
44734
|
});
|
|
44768
44735
|
subscriptionRefs.current.clear();
|
|
44769
44736
|
lastSubscribedDialogIdRef.current = null;
|
|
44770
|
-
_optionalChain([abortControllerRef, 'access',
|
|
44737
|
+
_optionalChain([abortControllerRef, 'access', _1002 => _1002.current, 'optionalAccess', _1003 => _1003.abort, 'call', _1004 => _1004()]);
|
|
44771
44738
|
abortControllerRef.current = null;
|
|
44772
44739
|
}
|
|
44773
44740
|
return;
|
|
@@ -44779,12 +44746,12 @@ function useNatsDialogSubscription({
|
|
|
44779
44746
|
if (subscriptionRefs.current.size > 0) {
|
|
44780
44747
|
subscriptionRefs.current.forEach((sub) => {
|
|
44781
44748
|
try {
|
|
44782
|
-
_optionalChain([sub, 'optionalAccess',
|
|
44749
|
+
_optionalChain([sub, 'optionalAccess', _1005 => _1005.unsubscribe, 'call', _1006 => _1006()]);
|
|
44783
44750
|
} catch (e48) {
|
|
44784
44751
|
}
|
|
44785
44752
|
});
|
|
44786
44753
|
subscriptionRefs.current.clear();
|
|
44787
|
-
_optionalChain([abortControllerRef, 'access',
|
|
44754
|
+
_optionalChain([abortControllerRef, 'access', _1007 => _1007.current, 'optionalAccess', _1008 => _1008.abort, 'call', _1009 => _1009()]);
|
|
44788
44755
|
}
|
|
44789
44756
|
abortControllerRef.current = new AbortController();
|
|
44790
44757
|
const abort = abortControllerRef.current;
|
|
@@ -44816,7 +44783,7 @@ function useNatsDialogSubscription({
|
|
|
44816
44783
|
});
|
|
44817
44784
|
lastSubscribedDialogIdRef.current = dialogId;
|
|
44818
44785
|
setIsSubscribed(true);
|
|
44819
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
44786
|
+
_optionalChain([onSubscribedRef, 'access', _1010 => _1010.current, 'optionalCall', _1011 => _1011()]);
|
|
44820
44787
|
};
|
|
44821
44788
|
if (isConnectedRef.current) {
|
|
44822
44789
|
createSubscriptions();
|
|
@@ -44826,7 +44793,7 @@ function useNatsDialogSubscription({
|
|
|
44826
44793
|
abort.abort();
|
|
44827
44794
|
subscriptionRefs.current.forEach((sub) => {
|
|
44828
44795
|
try {
|
|
44829
|
-
_optionalChain([sub, 'optionalAccess',
|
|
44796
|
+
_optionalChain([sub, 'optionalAccess', _1012 => _1012.unsubscribe, 'call', _1013 => _1013()]);
|
|
44830
44797
|
} catch (e50) {
|
|
44831
44798
|
}
|
|
44832
44799
|
});
|
|
@@ -44867,7 +44834,7 @@ function useNatsDialogSubscription({
|
|
|
44867
44834
|
});
|
|
44868
44835
|
lastSubscribedDialogIdRef.current = dialogId2;
|
|
44869
44836
|
setIsSubscribed(true);
|
|
44870
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
44837
|
+
_optionalChain([onSubscribedRef, 'access', _1014 => _1014.current, 'optionalCall', _1015 => _1015()]);
|
|
44871
44838
|
} else if (subscriptionRefs.current.size > 0) {
|
|
44872
44839
|
setIsSubscribed(true);
|
|
44873
44840
|
}
|
|
@@ -44875,10 +44842,10 @@ function useNatsDialogSubscription({
|
|
|
44875
44842
|
return { isConnected, isSubscribed, reconnectionCount };
|
|
44876
44843
|
}
|
|
44877
44844
|
function buildNatsWsUrl(apiBaseUrl, options) {
|
|
44878
|
-
const path = _optionalChain([options, 'optionalAccess',
|
|
44845
|
+
const path = _optionalChain([options, 'optionalAccess', _1016 => _1016.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
|
|
44879
44846
|
const u = new URL(path, apiBaseUrl);
|
|
44880
44847
|
u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
|
|
44881
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
44848
|
+
if (_optionalChain([options, 'optionalAccess', _1017 => _1017.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _1018 => _1018.token])) {
|
|
44882
44849
|
u.searchParams.set("authorization", options.token);
|
|
44883
44850
|
}
|
|
44884
44851
|
return u.toString();
|
|
@@ -45014,7 +44981,7 @@ function parseChunkToAction(chunk) {
|
|
|
45014
44981
|
// is REQUIRED on `ChatContextItem`, so fall back to the id (same as the
|
|
45015
44982
|
// historical path in `process-historical-messages.ts`) — keeps both
|
|
45016
44983
|
// message sources producing an identical shape.
|
|
45017
|
-
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess',
|
|
44984
|
+
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _1019 => _1019.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _1020 => _1020.id]) === "string").map((it) => ({ type: it.type, id: it.id, label: it.id })) : void 0
|
|
45018
44985
|
};
|
|
45019
44986
|
case MESSAGE_TYPE.TOKEN_USAGE:
|
|
45020
44987
|
return {
|
|
@@ -45206,8 +45173,8 @@ var MessageSegmentAccumulator = class {
|
|
|
45206
45173
|
type: "tool_execution",
|
|
45207
45174
|
data: {
|
|
45208
45175
|
...toolData,
|
|
45209
|
-
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
45210
|
-
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess',
|
|
45176
|
+
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _1021 => _1021.data, 'access', _1022 => _1022.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _1023 => _1023.toolTitle]))),
|
|
45177
|
+
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _1024 => _1024.parameters])
|
|
45211
45178
|
}
|
|
45212
45179
|
};
|
|
45213
45180
|
if (existingIndex !== -1) {
|
|
@@ -45231,8 +45198,8 @@ var MessageSegmentAccumulator = class {
|
|
|
45231
45198
|
if (seg.type !== "approval_batch") return seg;
|
|
45232
45199
|
const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
|
|
45233
45200
|
if (!hasCall) return seg;
|
|
45234
|
-
const prev = _optionalChain([seg, 'access',
|
|
45235
|
-
const next = toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prev, 'optionalAccess',
|
|
45201
|
+
const prev = _optionalChain([seg, 'access', _1025 => _1025.data, 'access', _1026 => _1026.executions, 'optionalAccess', _1027 => _1027[execId]]);
|
|
45202
|
+
const next = toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prev, 'optionalAccess', _1028 => _1028.result]), success: _optionalChain([prev, 'optionalAccess', _1029 => _1029.success]) };
|
|
45236
45203
|
matched = true;
|
|
45237
45204
|
return {
|
|
45238
45205
|
...seg,
|
|
@@ -45354,10 +45321,10 @@ var MessageSegmentAccumulator = class {
|
|
|
45354
45321
|
const segment = {
|
|
45355
45322
|
type: "approval_request",
|
|
45356
45323
|
data: {
|
|
45357
|
-
command: _optionalChain([pendingApproval, 'optionalAccess',
|
|
45358
|
-
explanation: _optionalChain([pendingApproval, 'optionalAccess',
|
|
45324
|
+
command: _optionalChain([pendingApproval, 'optionalAccess', _1030 => _1030.command]) || "",
|
|
45325
|
+
explanation: _optionalChain([pendingApproval, 'optionalAccess', _1031 => _1031.explanation]),
|
|
45359
45326
|
requestId,
|
|
45360
|
-
approvalType: _optionalChain([pendingApproval, 'optionalAccess',
|
|
45327
|
+
approvalType: _optionalChain([pendingApproval, 'optionalAccess', _1032 => _1032.approvalType]) || approvalType
|
|
45361
45328
|
},
|
|
45362
45329
|
status,
|
|
45363
45330
|
onApprove: this.callbacks.onApprove,
|
|
@@ -45549,7 +45516,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
45549
45516
|
if (initialState.escalatedApprovals) {
|
|
45550
45517
|
pendingEscalatedRef.current = new Map(initialState.escalatedApprovals);
|
|
45551
45518
|
initialState.escalatedApprovals.forEach((data, requestId) => {
|
|
45552
|
-
_optionalChain([callbacks, 'access',
|
|
45519
|
+
_optionalChain([callbacks, 'access', _1033 => _1033.onEscalatedApproval, 'optionalCall', _1034 => _1034(requestId, data)]);
|
|
45553
45520
|
});
|
|
45554
45521
|
}
|
|
45555
45522
|
hasEverStreamedRef.current = true;
|
|
@@ -45570,12 +45537,12 @@ function useRealtimeChunkProcessor(options) {
|
|
|
45570
45537
|
if (!action) return;
|
|
45571
45538
|
const accumulator = accumulatorRef.current;
|
|
45572
45539
|
const streamSeq = chunk && typeof chunk === "object" && typeof chunk.streamSeq === "number" ? chunk.streamSeq : void 0;
|
|
45573
|
-
const emitSegments = (s, meta) => _optionalChain([callbacks, 'access',
|
|
45540
|
+
const emitSegments = (s, meta) => _optionalChain([callbacks, 'access', _1035 => _1035.onSegmentsUpdate, 'optionalCall', _1036 => _1036(s, streamSeq != null ? { ...meta, streamSeq } : meta)]);
|
|
45574
45541
|
if (action.action === "direct_message") sawDirectMessageRef.current = true;
|
|
45575
45542
|
if ((directModeFlagRef.current || sawDirectMessageRef.current) && !DIRECT_MODE_ALLOWED.has(action.action)) {
|
|
45576
45543
|
if (isInStreamRef.current) {
|
|
45577
45544
|
isInStreamRef.current = false;
|
|
45578
|
-
_optionalChain([callbacks, 'access',
|
|
45545
|
+
_optionalChain([callbacks, 'access', _1037 => _1037.onStreamEnd, 'optionalCall', _1038 => _1038()]);
|
|
45579
45546
|
accumulator.resetSegments();
|
|
45580
45547
|
}
|
|
45581
45548
|
return;
|
|
@@ -45584,16 +45551,16 @@ function useRealtimeChunkProcessor(options) {
|
|
|
45584
45551
|
case "message_start":
|
|
45585
45552
|
isInStreamRef.current = true;
|
|
45586
45553
|
hasEverStreamedRef.current = true;
|
|
45587
|
-
_optionalChain([callbacks, 'access',
|
|
45554
|
+
_optionalChain([callbacks, 'access', _1039 => _1039.onStreamStart, 'optionalCall', _1040 => _1040()]);
|
|
45588
45555
|
accumulator.resetSegments();
|
|
45589
45556
|
break;
|
|
45590
45557
|
case "message_end":
|
|
45591
45558
|
isInStreamRef.current = false;
|
|
45592
|
-
_optionalChain([callbacks, 'access',
|
|
45559
|
+
_optionalChain([callbacks, 'access', _1041 => _1041.onStreamEnd, 'optionalCall', _1042 => _1042()]);
|
|
45593
45560
|
accumulator.resetSegments();
|
|
45594
45561
|
break;
|
|
45595
45562
|
case "metadata":
|
|
45596
|
-
_optionalChain([callbacks, 'access',
|
|
45563
|
+
_optionalChain([callbacks, 'access', _1043 => _1043.onMetadata, 'optionalCall', _1044 => _1044(action)]);
|
|
45597
45564
|
break;
|
|
45598
45565
|
case "text": {
|
|
45599
45566
|
const segments = accumulator.appendText(action.text);
|
|
@@ -45636,7 +45603,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
45636
45603
|
emitSegments(segments);
|
|
45637
45604
|
} else {
|
|
45638
45605
|
pendingEscalatedRef.current.set(requestId, { command, explanation, approvalType });
|
|
45639
|
-
_optionalChain([callbacks, 'access',
|
|
45606
|
+
_optionalChain([callbacks, 'access', _1045 => _1045.onEscalatedApproval, 'optionalCall', _1046 => _1046(requestId, { command, explanation, approvalType })]);
|
|
45640
45607
|
}
|
|
45641
45608
|
break;
|
|
45642
45609
|
}
|
|
@@ -45648,13 +45615,13 @@ function useRealtimeChunkProcessor(options) {
|
|
|
45648
45615
|
const summary = required ? getCommandText(required) : `Batch of ${toolCalls.length} tool calls`;
|
|
45649
45616
|
pendingEscalatedRef.current.set(requestId, {
|
|
45650
45617
|
command: summary,
|
|
45651
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
45618
|
+
explanation: _optionalChain([required, 'optionalAccess', _1047 => _1047.toolExplanation]),
|
|
45652
45619
|
approvalType,
|
|
45653
45620
|
toolCalls
|
|
45654
45621
|
});
|
|
45655
|
-
_optionalChain([callbacks, 'access',
|
|
45622
|
+
_optionalChain([callbacks, 'access', _1048 => _1048.onEscalatedApproval, 'optionalCall', _1049 => _1049(requestId, {
|
|
45656
45623
|
command: summary,
|
|
45657
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
45624
|
+
explanation: _optionalChain([required, 'optionalAccess', _1050 => _1050.toolExplanation]),
|
|
45658
45625
|
approvalType
|
|
45659
45626
|
})]);
|
|
45660
45627
|
break;
|
|
@@ -45684,7 +45651,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
45684
45651
|
const status = approved ? "approved" : "rejected";
|
|
45685
45652
|
if (escalatedData) {
|
|
45686
45653
|
pendingEscalatedRef.current.delete(requestId);
|
|
45687
|
-
_optionalChain([callbacks, 'access',
|
|
45654
|
+
_optionalChain([callbacks, 'access', _1051 => _1051.onEscalatedApprovalResult, 'optionalCall', _1052 => _1052(requestId, approved, {
|
|
45688
45655
|
command: escalatedData.command,
|
|
45689
45656
|
explanation: escalatedData.explanation,
|
|
45690
45657
|
approvalType: escalatedData.approvalType
|
|
@@ -45730,29 +45697,29 @@ function useRealtimeChunkProcessor(options) {
|
|
|
45730
45697
|
emitSegments(accumulator.getSegments());
|
|
45731
45698
|
}
|
|
45732
45699
|
}
|
|
45733
|
-
_optionalChain([callbacks, 'access',
|
|
45700
|
+
_optionalChain([callbacks, 'access', _1053 => _1053.onApprovalResolved, 'optionalCall', _1054 => _1054(requestId, status, approvalType, resolvedByName)]);
|
|
45734
45701
|
break;
|
|
45735
45702
|
}
|
|
45736
45703
|
case "error": {
|
|
45737
45704
|
let message2;
|
|
45738
|
-
if ("details" in action && _optionalChain([action, 'optionalAccess',
|
|
45705
|
+
if ("details" in action && _optionalChain([action, 'optionalAccess', _1055 => _1055.details])) {
|
|
45739
45706
|
try {
|
|
45740
|
-
message2 = _optionalChain([JSON, 'access',
|
|
45707
|
+
message2 = _optionalChain([JSON, 'access', _1056 => _1056.parse, 'call', _1057 => _1057(action.details), 'optionalAccess', _1058 => _1058.error, 'optionalAccess', _1059 => _1059.message]);
|
|
45741
45708
|
} catch (e52) {
|
|
45742
45709
|
message2 = action.details;
|
|
45743
45710
|
}
|
|
45744
45711
|
}
|
|
45745
45712
|
const segments = accumulator.addError(action.error, message2);
|
|
45746
45713
|
emitSegments(segments);
|
|
45747
|
-
_optionalChain([callbacks, 'access',
|
|
45714
|
+
_optionalChain([callbacks, 'access', _1060 => _1060.onError, 'optionalCall', _1061 => _1061(action.error, message2)]);
|
|
45748
45715
|
break;
|
|
45749
45716
|
}
|
|
45750
45717
|
case "system": {
|
|
45751
|
-
_optionalChain([callbacks, 'access',
|
|
45718
|
+
_optionalChain([callbacks, 'access', _1062 => _1062.onSystemMessage, 'optionalCall', _1063 => _1063(action.text, { streamSeq })]);
|
|
45752
45719
|
break;
|
|
45753
45720
|
}
|
|
45754
45721
|
case "direct_message": {
|
|
45755
|
-
_optionalChain([callbacks, 'access',
|
|
45722
|
+
_optionalChain([callbacks, 'access', _1064 => _1064.onDirectMessage, 'optionalCall', _1065 => _1065(action.text, {
|
|
45756
45723
|
ownerType: action.ownerType,
|
|
45757
45724
|
displayName: action.displayName,
|
|
45758
45725
|
userId: action.userId,
|
|
@@ -45761,7 +45728,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
45761
45728
|
break;
|
|
45762
45729
|
}
|
|
45763
45730
|
case "message_request":
|
|
45764
|
-
_optionalChain([callbacks, 'access',
|
|
45731
|
+
_optionalChain([callbacks, 'access', _1066 => _1066.onUserMessage, 'optionalCall', _1067 => _1067(action.text, {
|
|
45765
45732
|
ownerType: action.ownerType,
|
|
45766
45733
|
displayName: action.displayName,
|
|
45767
45734
|
userId: action.userId,
|
|
@@ -45770,7 +45737,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
45770
45737
|
})]);
|
|
45771
45738
|
break;
|
|
45772
45739
|
case "token_usage":
|
|
45773
|
-
_optionalChain([callbacks, 'access',
|
|
45740
|
+
_optionalChain([callbacks, 'access', _1068 => _1068.onTokenUsage, 'optionalCall', _1069 => _1069(action.data)]);
|
|
45774
45741
|
break;
|
|
45775
45742
|
case "context_compaction_start": {
|
|
45776
45743
|
const standalone = !isInStreamRef.current;
|
|
@@ -45785,7 +45752,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
45785
45752
|
break;
|
|
45786
45753
|
}
|
|
45787
45754
|
case "dialog_closed":
|
|
45788
|
-
_optionalChain([callbacks, 'access',
|
|
45755
|
+
_optionalChain([callbacks, 'access', _1070 => _1070.onDialogClosed, 'optionalCall', _1071 => _1071()]);
|
|
45789
45756
|
break;
|
|
45790
45757
|
default:
|
|
45791
45758
|
break;
|
|
@@ -45832,7 +45799,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
45832
45799
|
const data = await res.json();
|
|
45833
45800
|
return _nullishCoalesce(data.commands, () => ( []));
|
|
45834
45801
|
} catch (err) {
|
|
45835
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
45802
|
+
if (_optionalChain([err, 'optionalAccess', _1072 => _1072.name]) === "AbortError") throw err;
|
|
45836
45803
|
console.warn("[chat] slash-commands fetch failed, showing none:", err);
|
|
45837
45804
|
return [];
|
|
45838
45805
|
}
|
|
@@ -45853,7 +45820,7 @@ function useSlashCommands(prefix, commandsUrl) {
|
|
|
45853
45820
|
const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
|
|
45854
45821
|
if (!cancelled) setCommands(next);
|
|
45855
45822
|
} catch (err) {
|
|
45856
|
-
if (!cancelled && _optionalChain([err, 'optionalAccess',
|
|
45823
|
+
if (!cancelled && _optionalChain([err, 'optionalAccess', _1073 => _1073.name]) !== "AbortError") {
|
|
45857
45824
|
console.warn("[use-slash-commands] fetch failed:", err);
|
|
45858
45825
|
}
|
|
45859
45826
|
} finally {
|
|
@@ -45872,7 +45839,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
|
|
|
45872
45839
|
const query = _reactquery.useQuery.call(void 0, {
|
|
45873
45840
|
queryKey: ["chat-slash-commands", commandsUrl],
|
|
45874
45841
|
queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
|
|
45875
|
-
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
45842
|
+
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1074 => _1074.enabled]), () => ( true)),
|
|
45876
45843
|
staleTime: Infinity,
|
|
45877
45844
|
gcTime: Infinity,
|
|
45878
45845
|
// The commands registry is non-critical chrome — a failure degrades to an
|
|
@@ -45911,21 +45878,21 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
|
|
|
45911
45878
|
}
|
|
45912
45879
|
const data = await res.json();
|
|
45913
45880
|
return {
|
|
45914
|
-
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
45915
|
-
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
45916
|
-
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
45917
|
-
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
45918
|
-
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
45919
|
-
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
45881
|
+
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1075 => _1075.name]), () => ( null)),
|
|
45882
|
+
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1076 => _1076.icon]), () => ( null)),
|
|
45883
|
+
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1077 => _1077.greeting]), () => ( null)),
|
|
45884
|
+
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1078 => _1078.enabledRagTableIds]), () => ( [])),
|
|
45885
|
+
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1079 => _1079.quickActions]), () => ( [])),
|
|
45886
|
+
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1080 => _1080.suggestedQueries]), () => ( []))
|
|
45920
45887
|
};
|
|
45921
45888
|
} catch (err) {
|
|
45922
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
45889
|
+
if (_optionalChain([err, 'optionalAccess', _1081 => _1081.name]) === "AbortError") throw err;
|
|
45923
45890
|
console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
|
|
45924
45891
|
return EMPTY_STATE_FALLBACK;
|
|
45925
45892
|
}
|
|
45926
45893
|
}
|
|
45927
45894
|
function useEmptyStateConfig(emptyStateUrl, options) {
|
|
45928
|
-
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
45895
|
+
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1082 => _1082.enabled]), () => ( true))) && !!emptyStateUrl;
|
|
45929
45896
|
const query = _reactquery.useQuery.call(void 0, {
|
|
45930
45897
|
queryKey: ["chat-empty-state", emptyStateUrl],
|
|
45931
45898
|
queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
|
|
@@ -45954,7 +45921,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
|
|
|
45954
45921
|
var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
|
|
45955
45922
|
function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
45956
45923
|
return new Promise((resolve, reject) => {
|
|
45957
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
45924
|
+
if (_optionalChain([signal, 'optionalAccess', _1083 => _1083.aborted])) {
|
|
45958
45925
|
reject(new Error("Upload cancelled"));
|
|
45959
45926
|
return;
|
|
45960
45927
|
}
|
|
@@ -45968,7 +45935,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
45968
45935
|
xhr.removeEventListener("error", handleError);
|
|
45969
45936
|
xhr.removeEventListener("abort", handleAbort);
|
|
45970
45937
|
xhr.removeEventListener("timeout", handleTimeout);
|
|
45971
|
-
_optionalChain([signal, 'optionalAccess',
|
|
45938
|
+
_optionalChain([signal, 'optionalAccess', _1084 => _1084.removeEventListener, 'call', _1085 => _1085("abort", handleSignalAbort)]);
|
|
45972
45939
|
if (xhr.readyState !== XMLHttpRequest.DONE) xhr.abort();
|
|
45973
45940
|
};
|
|
45974
45941
|
const handleProgress = (event) => {
|
|
@@ -46004,7 +45971,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
46004
45971
|
const handleSignalAbort = () => {
|
|
46005
45972
|
xhr.abort();
|
|
46006
45973
|
};
|
|
46007
|
-
_optionalChain([signal, 'optionalAccess',
|
|
45974
|
+
_optionalChain([signal, 'optionalAccess', _1086 => _1086.addEventListener, 'call', _1087 => _1087("abort", handleSignalAbort, { once: true })]);
|
|
46008
45975
|
xhr.upload.addEventListener("progress", handleProgress);
|
|
46009
45976
|
xhr.addEventListener("load", handleLoad);
|
|
46010
45977
|
xhr.addEventListener("error", handleError);
|
|
@@ -46048,12 +46015,12 @@ function useChatAttachments() {
|
|
|
46048
46015
|
try {
|
|
46049
46016
|
sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
|
|
46050
46017
|
} catch (err) {
|
|
46051
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
46018
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1088 => _1088.signal, 'access', _1089 => _1089.aborted])) return;
|
|
46052
46019
|
throw new Error(
|
|
46053
46020
|
`Could not read file content: ${err instanceof Error ? err.message : String(err)}`
|
|
46054
46021
|
);
|
|
46055
46022
|
}
|
|
46056
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
46023
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1090 => _1090.signal, 'access', _1091 => _1091.aborted])) return;
|
|
46057
46024
|
if (!sniffed) {
|
|
46058
46025
|
throw new Error("Unrecognized file format");
|
|
46059
46026
|
}
|
|
@@ -46067,7 +46034,7 @@ function useChatAttachments() {
|
|
|
46067
46034
|
const urlResp = await _chunk6PHV4NREcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
|
|
46068
46035
|
method: "POST",
|
|
46069
46036
|
headers: { "Content-Type": "application/json" },
|
|
46070
|
-
signal: _optionalChain([ctrl, 'optionalAccess',
|
|
46037
|
+
signal: _optionalChain([ctrl, 'optionalAccess', _1092 => _1092.signal]),
|
|
46071
46038
|
body: JSON.stringify({
|
|
46072
46039
|
fileName: att.file.name,
|
|
46073
46040
|
// Pass the SNIFFED MIME (not `file.type`, which can be a
|
|
@@ -46093,9 +46060,9 @@ function useChatAttachments() {
|
|
|
46093
46060
|
(pct) => {
|
|
46094
46061
|
updateOne(att.id, { progress: pct });
|
|
46095
46062
|
},
|
|
46096
|
-
_optionalChain([ctrl, 'optionalAccess',
|
|
46063
|
+
_optionalChain([ctrl, 'optionalAccess', _1093 => _1093.signal])
|
|
46097
46064
|
);
|
|
46098
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
46065
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1094 => _1094.signal, 'access', _1095 => _1095.aborted])) return;
|
|
46099
46066
|
updateOne(att.id, {
|
|
46100
46067
|
status: "ready",
|
|
46101
46068
|
progress: 100,
|
|
@@ -46103,7 +46070,7 @@ function useChatAttachments() {
|
|
|
46103
46070
|
viewToken: mintData.viewToken
|
|
46104
46071
|
});
|
|
46105
46072
|
} catch (err) {
|
|
46106
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
46073
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1096 => _1096.signal, 'access', _1097 => _1097.aborted])) return;
|
|
46107
46074
|
const message2 = err instanceof Error ? err.message : String(err);
|
|
46108
46075
|
updateOne(att.id, { status: "error", progress: 0, errorMessage: message2 });
|
|
46109
46076
|
} finally {
|
|
@@ -46254,7 +46221,7 @@ var ANON_DEFAULTS = {
|
|
|
46254
46221
|
function useResolveChatIdentity(enabled) {
|
|
46255
46222
|
const runtime = _chunk3KEBI6TPcjs.useRequiredChatRuntime.call(void 0, );
|
|
46256
46223
|
const url = runtime.endpoints.identityUrl;
|
|
46257
|
-
const proxyEmail = _nullishCoalesce(_optionalChain([_chunk6PHV4NREcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess',
|
|
46224
|
+
const proxyEmail = _nullishCoalesce(_optionalChain([_chunk6PHV4NREcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _1098 => _1098.email]), () => ( null));
|
|
46258
46225
|
const [data, setData] = _react.useState.call(void 0, ANON_DEFAULTS);
|
|
46259
46226
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, enabled);
|
|
46260
46227
|
_react.useEffect.call(void 0, () => {
|
|
@@ -46345,7 +46312,7 @@ function useSSE({ useMock = true, debugMode = false, streamFn } = {}) {
|
|
|
46345
46312
|
yield chunk;
|
|
46346
46313
|
}
|
|
46347
46314
|
} catch (err) {
|
|
46348
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
46315
|
+
if (_optionalChain([err, 'optionalAccess', _1099 => _1099.name]) === "AbortError" || ctrl.signal.aborted) {
|
|
46349
46316
|
return;
|
|
46350
46317
|
}
|
|
46351
46318
|
const errorMessage = err instanceof Error ? err.message : "An error occurred";
|
|
@@ -46396,7 +46363,7 @@ function useChat({
|
|
|
46396
46363
|
const onMessagesChangeRef = _react.useRef.call(void 0, onMessagesChange);
|
|
46397
46364
|
onMessagesChangeRef.current = onMessagesChange;
|
|
46398
46365
|
_react.useEffect.call(void 0, () => {
|
|
46399
|
-
_optionalChain([onMessagesChangeRef, 'access',
|
|
46366
|
+
_optionalChain([onMessagesChangeRef, 'access', _1100 => _1100.current, 'optionalCall', _1101 => _1101(messages)]);
|
|
46400
46367
|
}, [messages]);
|
|
46401
46368
|
const {
|
|
46402
46369
|
streamMessage,
|
|
@@ -46433,7 +46400,7 @@ function useChat({
|
|
|
46433
46400
|
name: "You",
|
|
46434
46401
|
content: text,
|
|
46435
46402
|
timestamp: /* @__PURE__ */ new Date(),
|
|
46436
|
-
..._optionalChain([options, 'optionalAccess',
|
|
46403
|
+
..._optionalChain([options, 'optionalAccess', _1102 => _1102.hidden]) ? { hidden: true } : {}
|
|
46437
46404
|
};
|
|
46438
46405
|
addMessage(userMessage);
|
|
46439
46406
|
setIsTyping(true);
|
|
@@ -46495,7 +46462,7 @@ function useChat({
|
|
|
46495
46462
|
currentTextSegment = "";
|
|
46496
46463
|
}
|
|
46497
46464
|
const seg = segment;
|
|
46498
|
-
const proposalId = _optionalChain([seg, 'access',
|
|
46465
|
+
const proposalId = _optionalChain([seg, 'access', _1103 => _1103.data, 'optionalAccess', _1104 => _1104.requestId]);
|
|
46499
46466
|
const updateApprovalMessage = (transform) => {
|
|
46500
46467
|
setMessages((prev) => {
|
|
46501
46468
|
for (let i = prev.length - 1; i >= 0; i--) {
|
|
@@ -46504,7 +46471,7 @@ function useChat({
|
|
|
46504
46471
|
if (!Array.isArray(m.content)) continue;
|
|
46505
46472
|
const segments = m.content;
|
|
46506
46473
|
const hasMatch = segments.some(
|
|
46507
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
46474
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1105 => _1105.data, 'optionalAccess', _1106 => _1106.requestId]) === proposalId
|
|
46508
46475
|
);
|
|
46509
46476
|
if (!hasMatch) continue;
|
|
46510
46477
|
const next = [...prev];
|
|
@@ -46546,11 +46513,11 @@ function useChat({
|
|
|
46546
46513
|
if (!Array.isArray(m.content)) continue;
|
|
46547
46514
|
const segments = m.content;
|
|
46548
46515
|
const hasMatch = segments.some(
|
|
46549
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
46516
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1107 => _1107.data, 'optionalAccess', _1108 => _1108.requestId]) === decision.proposalId
|
|
46550
46517
|
);
|
|
46551
46518
|
if (!hasMatch) continue;
|
|
46552
46519
|
const flipped = segments.map(
|
|
46553
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
46520
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1109 => _1109.data, 'optionalAccess', _1110 => _1110.requestId]) === decision.proposalId ? { ...s, status: decision.action } : s
|
|
46554
46521
|
);
|
|
46555
46522
|
const next = [...prev];
|
|
46556
46523
|
next[i] = { ...m, content: flipped };
|
|
@@ -46712,8 +46679,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
46712
46679
|
})),
|
|
46713
46680
|
{ role: "user", content: message2 }
|
|
46714
46681
|
];
|
|
46715
|
-
const targetPath = _optionalChain([extra, 'optionalAccess',
|
|
46716
|
-
const requestBody = _optionalChain([extra, 'optionalAccess',
|
|
46682
|
+
const targetPath = _optionalChain([extra, 'optionalAccess', _1111 => _1111.approvalAction]) ? endpoints.approvalToolUrl : endpoints.chatStreamUrl;
|
|
46683
|
+
const requestBody = _optionalChain([extra, 'optionalAccess', _1112 => _1112.approvalAction]) ? {
|
|
46717
46684
|
proposal_id: extra.approvalAction.proposalId,
|
|
46718
46685
|
action: extra.approvalAction.action,
|
|
46719
46686
|
messages: currentMessages.filter((m) => (m.role === "user" || m.role === "assistant") && !m.hidden).map((m) => ({
|
|
@@ -46722,8 +46689,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
46722
46689
|
}))
|
|
46723
46690
|
} : {
|
|
46724
46691
|
messages: apiMessages,
|
|
46725
|
-
..._optionalChain([extra, 'optionalAccess',
|
|
46726
|
-
..._optionalChain([extra, 'optionalAccess',
|
|
46692
|
+
..._optionalChain([extra, 'optionalAccess', _1113 => _1113.commandOverride]) ? { commandOverride: extra.commandOverride } : {},
|
|
46693
|
+
..._optionalChain([extra, 'optionalAccess', _1114 => _1114.pendingAttachments]) && extra.pendingAttachments.length > 0 ? { pendingAttachments: extra.pendingAttachments } : {}
|
|
46727
46694
|
};
|
|
46728
46695
|
const response = await _chunk6PHV4NREcjs.embedAuthedFetch.call(void 0, targetPath, {
|
|
46729
46696
|
method: "POST",
|
|
@@ -46733,7 +46700,7 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
46733
46700
|
if (!response.ok) {
|
|
46734
46701
|
throw new Error(`Chat request failed: ${response.status}`);
|
|
46735
46702
|
}
|
|
46736
|
-
const reader = _optionalChain([response, 'access',
|
|
46703
|
+
const reader = _optionalChain([response, 'access', _1115 => _1115.body, 'optionalAccess', _1116 => _1116.getReader, 'call', _1117 => _1117()]);
|
|
46737
46704
|
if (!reader) throw new Error("No response body");
|
|
46738
46705
|
const decoder = new TextDecoder();
|
|
46739
46706
|
let buffer = "";
|
|
@@ -46816,7 +46783,7 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
46816
46783
|
const toolName = typeof meta.tool_name === "string" ? meta.tool_name : void 0;
|
|
46817
46784
|
const result = _nullishCoalesce(meta.result, () => ( null));
|
|
46818
46785
|
const card = _nullishCoalesce(meta.card, () => ( null));
|
|
46819
|
-
if (_optionalChain([card, 'optionalAccess',
|
|
46786
|
+
if (_optionalChain([card, 'optionalAccess', _1118 => _1118.ref, 'optionalAccess', _1119 => _1119.id]) && _optionalChain([card, 'optionalAccess', _1120 => _1120.type])) {
|
|
46820
46787
|
const existing = _nullishCoalesce(refsMapRef.current.get(sendIdx), () => ( {}));
|
|
46821
46788
|
const key = buildChatRefKey(card.type, card.ref.id);
|
|
46822
46789
|
refsMapRef.current.set(sendIdx, { ...existing, [key]: card.ref });
|
|
@@ -46829,8 +46796,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
46829
46796
|
willAutoContinue: meta.willAutoContinue === true,
|
|
46830
46797
|
...toolName ? { toolName } : {},
|
|
46831
46798
|
...result ? { result } : {},
|
|
46832
|
-
..._optionalChain([card, 'optionalAccess',
|
|
46833
|
-
..._optionalChain([card, 'optionalAccess',
|
|
46799
|
+
..._optionalChain([card, 'optionalAccess', _1121 => _1121.marker]) ? { marker: card.marker } : {},
|
|
46800
|
+
..._optionalChain([card, 'optionalAccess', _1122 => _1122.ref]) ? { cardRef: card.ref } : {},
|
|
46834
46801
|
...typeof meta.receiptText === "string" ? { receiptText: meta.receiptText } : {},
|
|
46835
46802
|
proposalId: typeof meta.proposalId === "string" ? meta.proposalId : void 0
|
|
46836
46803
|
};
|
|
@@ -46949,7 +46916,7 @@ var DEFAULT_CHAT_SOURCE = "embed";
|
|
|
46949
46916
|
var chatStorageKey = (source) => {
|
|
46950
46917
|
const base = `mingo-chat-${source}-v${CHAT_STORAGE_VERSION}`;
|
|
46951
46918
|
const auth = _chunk6PHV4NREcjs.getEmbedProxyAuth.call(void 0, );
|
|
46952
|
-
if (_optionalChain([auth, 'optionalAccess',
|
|
46919
|
+
if (_optionalChain([auth, 'optionalAccess', _1123 => _1123.email])) {
|
|
46953
46920
|
return `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}`;
|
|
46954
46921
|
}
|
|
46955
46922
|
return base;
|
|
@@ -47004,7 +46971,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
47004
46971
|
const { active = true } = runtimeOptions;
|
|
47005
46972
|
const runtime = _chunk3KEBI6TPcjs.useRequiredChatRuntime.call(void 0, );
|
|
47006
46973
|
const source = runtime.source || DEFAULT_CHAT_SOURCE;
|
|
47007
|
-
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
46974
|
+
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1124 => _1124.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
|
|
47008
46975
|
const persistedRef = _react.useRef.call(void 0, null);
|
|
47009
46976
|
if (persistedRef.current === null) {
|
|
47010
46977
|
pruneStaleChatStorage(source);
|
|
@@ -47109,7 +47076,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
47109
47076
|
const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
|
|
47110
47077
|
sources = sourcesMapRef.current.get(lookupIdx);
|
|
47111
47078
|
chatRefs = _nullishCoalesce(m.chatRefs, () => ( refsMapRef.current.get(lookupIdx)));
|
|
47112
|
-
scrollAnchor = _nullishCoalesce(_optionalChain([metaMapRef, 'access',
|
|
47079
|
+
scrollAnchor = _nullishCoalesce(_optionalChain([metaMapRef, 'access', _1125 => _1125.current, 'access', _1126 => _1126.get, 'call', _1127 => _1127(lookupIdx), 'optionalAccess', _1128 => _1128.scrollAnchor]), () => ( void 0));
|
|
47113
47080
|
}
|
|
47114
47081
|
return {
|
|
47115
47082
|
id: m.id,
|
|
@@ -47157,7 +47124,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
47157
47124
|
);
|
|
47158
47125
|
return;
|
|
47159
47126
|
}
|
|
47160
|
-
const refSlug = typeof _optionalChain([reference, 'access',
|
|
47127
|
+
const refSlug = typeof _optionalChain([reference, 'access', _1129 => _1129.metadata, 'optionalAccess', _1130 => _1130.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
|
|
47161
47128
|
const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
|
|
47162
47129
|
const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
47163
47130
|
const text = `/${cmdId} display "${escaped}"`;
|
|
@@ -47229,18 +47196,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
47229
47196
|
clearMessages,
|
|
47230
47197
|
streamingPhase,
|
|
47231
47198
|
/** Provider key for the lib's `<ModelDisplay>` icon. */
|
|
47232
|
-
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
47233
|
-
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
47234
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
47199
|
+
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1131 => _1131.provider]), () => ( null)),
|
|
47200
|
+
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1132 => _1132.modelLabel]), () => ( null)),
|
|
47201
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1133 => _1133.contextWindowMaxTokens]), () => ( null)),
|
|
47235
47202
|
/** Input tokens (known after server's message_start frame; null until). */
|
|
47236
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
47203
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1134 => _1134.inputTokens]), () => ( null)),
|
|
47237
47204
|
/** Output tokens (known only after server's trailing usage frame). */
|
|
47238
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
47205
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1135 => _1135.outputTokens]), () => ( null)),
|
|
47239
47206
|
/** Cache hit % (read / total-input × 100). null during streaming. */
|
|
47240
|
-
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
47207
|
+
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1136 => _1136.cacheHitRatePct]), () => ( null)),
|
|
47241
47208
|
/** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
|
|
47242
47209
|
* token counts). null until the trailing usage frame lands. */
|
|
47243
|
-
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
47210
|
+
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1137 => _1137.breakdown]), () => ( null)),
|
|
47244
47211
|
// ─── Dialog management — stubs for v1 ────────────────────────────────
|
|
47245
47212
|
// Guide mode currently keeps its history in `localStorage` opaquely
|
|
47246
47213
|
// under the hood (`runtime.source` namespaced key). Surfacing that
|
|
@@ -47298,15 +47265,15 @@ var noopRejectRequest = async (_id, _reason) => {
|
|
|
47298
47265
|
|
|
47299
47266
|
// src/components/chat/utils/process-historical-messages.ts
|
|
47300
47267
|
function getOwnerDisplayName(owner) {
|
|
47301
|
-
if (_optionalChain([owner, 'optionalAccess',
|
|
47268
|
+
if (_optionalChain([owner, 'optionalAccess', _1138 => _1138.type]) === OWNER_TYPE.ADMIN && owner.user) {
|
|
47302
47269
|
const { firstName, lastName } = owner.user;
|
|
47303
47270
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
47304
47271
|
if (name) return name;
|
|
47305
47272
|
}
|
|
47306
|
-
return _optionalChain([owner, 'optionalAccess',
|
|
47273
|
+
return _optionalChain([owner, 'optionalAccess', _1139 => _1139.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
47307
47274
|
}
|
|
47308
47275
|
function getOwnerAvatar(owner) {
|
|
47309
|
-
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess',
|
|
47276
|
+
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _1140 => _1140.user, 'optionalAccess', _1141 => _1141.image, 'optionalAccess', _1142 => _1142.imageUrl]), () => ( void 0));
|
|
47310
47277
|
}
|
|
47311
47278
|
function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
|
|
47312
47279
|
messageDataArray.forEach((data) => {
|
|
@@ -47369,14 +47336,14 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
47369
47336
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
47370
47337
|
return;
|
|
47371
47338
|
}
|
|
47372
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
47339
|
+
const isUserMessage = _optionalChain([msg, 'access', _1143 => _1143.owner, 'optionalAccess', _1144 => _1144.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1145 => _1145.owner, 'optionalAccess', _1146 => _1146.type]) === OWNER_TYPE.ADMIN;
|
|
47373
47340
|
if (isUserMessage) {
|
|
47374
47341
|
flushAssistantMessage();
|
|
47375
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
47342
|
+
const userAuthorType = _optionalChain([msg, 'access', _1147 => _1147.owner, 'optionalAccess', _1148 => _1148.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
47376
47343
|
messageDataArray.forEach((data) => {
|
|
47377
47344
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
47378
47345
|
const rawContext = data.contextItems;
|
|
47379
|
-
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess',
|
|
47346
|
+
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1149 => _1149.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1150 => _1150.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
|
|
47380
47347
|
processedMessages.push({
|
|
47381
47348
|
id: msg.id,
|
|
47382
47349
|
role: "user",
|
|
@@ -47400,7 +47367,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
47400
47367
|
});
|
|
47401
47368
|
const nextMsg = messages[index + 1];
|
|
47402
47369
|
const isLastMessage = index === messages.length - 1;
|
|
47403
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
47370
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1151 => _1151.owner, 'optionalAccess', _1152 => _1152.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1153 => _1153.owner, 'optionalAccess', _1154 => _1154.type]) === OWNER_TYPE.ADMIN);
|
|
47404
47371
|
if (isLastMessage || nextIsFromUser) {
|
|
47405
47372
|
flushAssistantMessage();
|
|
47406
47373
|
}
|
|
@@ -47510,7 +47477,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
47510
47477
|
}
|
|
47511
47478
|
}
|
|
47512
47479
|
} else {
|
|
47513
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
47480
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1155 => _1155.set, 'call', _1156 => _1156(data.approvalRequestId, {
|
|
47514
47481
|
command: data.command || "",
|
|
47515
47482
|
explanation: data.explanation,
|
|
47516
47483
|
approvalType,
|
|
@@ -47524,8 +47491,8 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
47524
47491
|
const existingStatus = approvalStatuses[data.approvalRequestId];
|
|
47525
47492
|
const status = existingStatus || (data.approved ? "approved" : "rejected");
|
|
47526
47493
|
const resolvedByName = "resolvedByName" in data ? data.resolvedByName : void 0;
|
|
47527
|
-
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess',
|
|
47528
|
-
if (_optionalChain([escalatedData, 'optionalAccess',
|
|
47494
|
+
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _1157 => _1157.get, 'call', _1158 => _1158(data.approvalRequestId)]);
|
|
47495
|
+
if (_optionalChain([escalatedData, 'optionalAccess', _1159 => _1159.toolCalls]) && escalatedData.toolCalls.length > 0) {
|
|
47529
47496
|
if (batchApprovalsEnabled) {
|
|
47530
47497
|
accumulator.addApprovalBatch(
|
|
47531
47498
|
data.approvalRequestId,
|
|
@@ -47547,7 +47514,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
47547
47514
|
);
|
|
47548
47515
|
}
|
|
47549
47516
|
}
|
|
47550
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
47517
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1160 => _1160.delete, 'call', _1161 => _1161(data.approvalRequestId)]);
|
|
47551
47518
|
break;
|
|
47552
47519
|
}
|
|
47553
47520
|
if (escalatedData) {
|
|
@@ -47556,7 +47523,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
47556
47523
|
explanation: escalatedData.explanation,
|
|
47557
47524
|
approvalType: escalatedData.approvalType
|
|
47558
47525
|
});
|
|
47559
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
47526
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1162 => _1162.delete, 'call', _1163 => _1163(data.approvalRequestId)]);
|
|
47560
47527
|
}
|
|
47561
47528
|
const before = accumulator.getSegments();
|
|
47562
47529
|
const after = accumulator.updateApprovalStatus(data.approvalRequestId, status, resolvedByName);
|
|
@@ -47572,9 +47539,9 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
47572
47539
|
case MESSAGE_TYPE.ERROR:
|
|
47573
47540
|
if ("error" in data) {
|
|
47574
47541
|
let message2;
|
|
47575
|
-
if ("details" in data && _optionalChain([data, 'optionalAccess',
|
|
47542
|
+
if ("details" in data && _optionalChain([data, 'optionalAccess', _1164 => _1164.details])) {
|
|
47576
47543
|
try {
|
|
47577
|
-
message2 = _optionalChain([JSON, 'access',
|
|
47544
|
+
message2 = _optionalChain([JSON, 'access', _1165 => _1165.parse, 'call', _1166 => _1166(data.details), 'optionalAccess', _1167 => _1167.error, 'optionalAccess', _1168 => _1168.message]);
|
|
47578
47545
|
} catch (e59) {
|
|
47579
47546
|
message2 = data.details;
|
|
47580
47547
|
}
|
|
@@ -47657,14 +47624,14 @@ function processHistoricalMessagesWithErrors(messages, options = {}) {
|
|
|
47657
47624
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
47658
47625
|
return;
|
|
47659
47626
|
}
|
|
47660
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
47627
|
+
const isUserMessage = _optionalChain([msg, 'access', _1169 => _1169.owner, 'optionalAccess', _1170 => _1170.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1171 => _1171.owner, 'optionalAccess', _1172 => _1172.type]) === OWNER_TYPE.ADMIN;
|
|
47661
47628
|
if (isUserMessage) {
|
|
47662
47629
|
flushAssistantMessage();
|
|
47663
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
47630
|
+
const userAuthorType = _optionalChain([msg, 'access', _1173 => _1173.owner, 'optionalAccess', _1174 => _1174.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
47664
47631
|
messageDataArray.forEach((data) => {
|
|
47665
47632
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
47666
47633
|
const rawContext = data.contextItems;
|
|
47667
|
-
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess',
|
|
47634
|
+
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1175 => _1175.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1176 => _1176.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
|
|
47668
47635
|
processedMessages.push({
|
|
47669
47636
|
id: msg.id,
|
|
47670
47637
|
role: "user",
|
|
@@ -47688,7 +47655,7 @@ function processHistoricalMessagesWithErrors(messages, options = {}) {
|
|
|
47688
47655
|
});
|
|
47689
47656
|
const nextMsg = messages[index + 1];
|
|
47690
47657
|
const isLastMessage = index === messages.length - 1;
|
|
47691
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
47658
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1177 => _1177.owner, 'optionalAccess', _1178 => _1178.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1179 => _1179.owner, 'optionalAccess', _1180 => _1180.type]) === OWNER_TYPE.ADMIN);
|
|
47692
47659
|
if (isLastMessage || nextIsFromUser) {
|
|
47693
47660
|
flushAssistantMessage();
|
|
47694
47661
|
}
|
|
@@ -48024,7 +47991,7 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
48024
47991
|
}, [active, fetchDialogs, loadDialogsPage]);
|
|
48025
47992
|
const sendMessage = _react.useCallback.call(void 0,
|
|
48026
47993
|
async (text, sendOptions) => {
|
|
48027
|
-
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess',
|
|
47994
|
+
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _1181 => _1181.hidden]), () => ( false));
|
|
48028
47995
|
setMessages((prev) => [
|
|
48029
47996
|
...prev,
|
|
48030
47997
|
{
|
|
@@ -48188,11 +48155,11 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
48188
48155
|
// Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
|
|
48189
48156
|
// contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
|
|
48190
48157
|
// matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
|
|
48191
|
-
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
48192
|
-
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
48193
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
48194
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
48195
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
48158
|
+
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1182 => _1182.provider]), () => ( modelProvider)), () => ( null)),
|
|
48159
|
+
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1183 => _1183.modelLabel]), () => ( modelLabel)), () => ( null)),
|
|
48160
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1184 => _1184.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _1185 => _1185.contextWindowMaxTokens]))), () => ( null)),
|
|
48161
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1186 => _1186.inputTokensSize]), () => ( null)),
|
|
48162
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1187 => _1187.outputTokensSize]), () => ( null)),
|
|
48196
48163
|
currentCacheHitRatePct: null,
|
|
48197
48164
|
currentUsageBreakdown: null,
|
|
48198
48165
|
// Dialog management
|
|
@@ -48440,7 +48407,7 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
48440
48407
|
break;
|
|
48441
48408
|
case "approval_batch": {
|
|
48442
48409
|
const allDone = !!segment.data.executions && segment.data.toolCalls.every(
|
|
48443
|
-
(c) => _optionalChain([segment, 'access',
|
|
48410
|
+
(c) => _optionalChain([segment, 'access', _1188 => _1188.data, 'access', _1189 => _1189.executions, 'optionalAccess', _1190 => _1190[c.toolExecutionRequestId], 'optionalAccess', _1191 => _1191.status]) === "done"
|
|
48444
48411
|
);
|
|
48445
48412
|
if (segment.status !== "rejected" && !allDone) {
|
|
48446
48413
|
hasIncompleteState = true;
|
|
@@ -48508,20 +48475,20 @@ function mergeHistoryWithRealtime(input) {
|
|
|
48508
48475
|
const seqCoverageKnown = realtimeSeenStreamSeq > 0 && historyMaxStreamSeq > 0;
|
|
48509
48476
|
const historyCoversRealtime = seqCoverageKnown ? historyMaxStreamSeq >= realtimeSeenStreamSeq : null;
|
|
48510
48477
|
const trailing = processedHistory[processedHistory.length - 1];
|
|
48511
|
-
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess',
|
|
48512
|
-
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access',
|
|
48478
|
+
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _1192 => _1192.role]) === "assistant" ? trailing : null;
|
|
48479
|
+
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _1193 => _1193.content, 'access', _1194 => _1194.find, 'call', _1195 => _1195((s) => s.type === "approval_batch"), 'optionalAccess', _1196 => _1196.data, 'optionalAccess', _1197 => _1197.approvalRequestId]), () => ( null)) : null;
|
|
48513
48480
|
let processedToUse = processedHistory;
|
|
48514
48481
|
const pinnedSyntheticIds = /* @__PURE__ */ new Set();
|
|
48515
48482
|
const droppedSyntheticIds = /* @__PURE__ */ new Set();
|
|
48516
48483
|
if (historyBatchId) {
|
|
48517
48484
|
const batchTwins = existingMessages.filter(
|
|
48518
48485
|
(m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some(
|
|
48519
|
-
(s) => s.type === "approval_batch" && _optionalChain([s, 'access',
|
|
48486
|
+
(s) => s.type === "approval_batch" && _optionalChain([s, 'access', _1198 => _1198.data, 'optionalAccess', _1199 => _1199.approvalRequestId]) === historyBatchId
|
|
48520
48487
|
)
|
|
48521
48488
|
);
|
|
48522
48489
|
const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
|
|
48523
48490
|
if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
|
|
48524
|
-
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess',
|
|
48491
|
+
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _1200 => _1200.content])) ? historyTrailingAssistant.content.length : 0;
|
|
48525
48492
|
const realtimeSize = existingWithSameBatch.content.length;
|
|
48526
48493
|
if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
|
|
48527
48494
|
processedToUse = processedHistory.slice(0, -1);
|
|
@@ -48537,16 +48504,16 @@ function mergeHistoryWithRealtime(input) {
|
|
|
48537
48504
|
if (pinnedSyntheticIds.has(m.id)) return true;
|
|
48538
48505
|
if (droppedSyntheticIds.has(m.id)) return false;
|
|
48539
48506
|
if (processedIds.has(m.id)) return false;
|
|
48540
|
-
if (_optionalChain([rawHistoryIds, 'optionalAccess',
|
|
48507
|
+
if (_optionalChain([rawHistoryIds, 'optionalAccess', _1201 => _1201.has, 'call', _1202 => _1202(m.id)])) return false;
|
|
48541
48508
|
if (m.role === "user" && m.id.startsWith("optimistic-") && typeof m.content === "string") {
|
|
48542
|
-
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access',
|
|
48509
|
+
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _1203 => _1203.timestamp, 'optionalAccess', _1204 => _1204.getTime, 'call', _1205 => _1205()]), () => ( 0))) <= historyFetchedAt;
|
|
48543
48510
|
return !(canBeInSnapshot && processedToUse.some((pm) => pm.role === "user" && pm.content === m.content));
|
|
48544
48511
|
}
|
|
48545
48512
|
if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
|
|
48546
48513
|
if (m.role === "assistant" && trailingAssistantText && assistantAnswerText(m.content) === trailingAssistantText) {
|
|
48547
48514
|
return false;
|
|
48548
48515
|
}
|
|
48549
|
-
const covered = typeof m.streamSeq === "number" && historyMaxStreamSeq > 0 ? historyMaxStreamSeq >= m.streamSeq : historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access',
|
|
48516
|
+
const covered = typeof m.streamSeq === "number" && historyMaxStreamSeq > 0 ? historyMaxStreamSeq >= m.streamSeq : historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _1206 => _1206.timestamp, 'optionalAccess', _1207 => _1207.getTime, 'call', _1208 => _1208()]), () => ( 0))) <= historyFetchedAt;
|
|
48550
48517
|
if (covered) return false;
|
|
48551
48518
|
}
|
|
48552
48519
|
return true;
|
|
@@ -48766,7 +48733,7 @@ function useChatDialogManager({
|
|
|
48766
48733
|
const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
|
|
48767
48734
|
if (restoreTarget) {
|
|
48768
48735
|
try {
|
|
48769
|
-
await _optionalChain([unarchiveDialog, 'optionalCall',
|
|
48736
|
+
await _optionalChain([unarchiveDialog, 'optionalCall', _1209 => _1209(restoreTarget.id)]);
|
|
48770
48737
|
} catch (err) {
|
|
48771
48738
|
console.error("[useChatDialogManager] unarchive failed:", err);
|
|
48772
48739
|
return;
|
|
@@ -49183,7 +49150,7 @@ function EmbeddableChatInner({
|
|
|
49183
49150
|
}),
|
|
49184
49151
|
[commandsUrl]
|
|
49185
49152
|
);
|
|
49186
|
-
const userName = _optionalChain([identityUser, 'optionalAccess',
|
|
49153
|
+
const userName = _optionalChain([identityUser, 'optionalAccess', _1210 => _1210.firstName, 'optionalAccess', _1211 => _1211.trim, 'call', _1212 => _1212()]) || _optionalChain([identityUser, 'optionalAccess', _1213 => _1213.name, 'optionalAccess', _1214 => _1214.split, 'call', _1215 => _1215(" "), 'access', _1216 => _1216[0], 'optionalAccess', _1217 => _1217.trim, 'call', _1218 => _1218()]) || void 0;
|
|
49187
49154
|
const effectiveModes = _react.useMemo.call(void 0, () => {
|
|
49188
49155
|
if (modes) return modes;
|
|
49189
49156
|
const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
|
|
@@ -49192,19 +49159,19 @@ function EmbeddableChatInner({
|
|
|
49192
49159
|
const mingoCaps = _react.useMemo.call(void 0, () => {
|
|
49193
49160
|
if (mingoState) {
|
|
49194
49161
|
return {
|
|
49195
|
-
canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
49196
|
-
canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
49197
|
-
fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
49198
|
-
unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
49199
|
-
searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
49200
|
-
onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
49162
|
+
canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1219 => _1219.canRename]), () => ( false)),
|
|
49163
|
+
canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1220 => _1220.canArchive]), () => ( false)),
|
|
49164
|
+
fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1221 => _1221.fetchArchivedDialogs]),
|
|
49165
|
+
unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1222 => _1222.unarchiveDialog]),
|
|
49166
|
+
searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1223 => _1223.searchQuery]),
|
|
49167
|
+
onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1224 => _1224.onSearchChange])
|
|
49201
49168
|
};
|
|
49202
49169
|
}
|
|
49203
49170
|
return {
|
|
49204
|
-
canRename: !!_optionalChain([effectiveModes, 'access',
|
|
49205
|
-
canArchive: !!_optionalChain([effectiveModes, 'access',
|
|
49206
|
-
fetchArchivedDialogs: _optionalChain([effectiveModes, 'access',
|
|
49207
|
-
unarchiveDialog: _optionalChain([effectiveModes, 'access',
|
|
49171
|
+
canRename: !!_optionalChain([effectiveModes, 'access', _1225 => _1225.mingo, 'optionalAccess', _1226 => _1226.renameDialog]),
|
|
49172
|
+
canArchive: !!_optionalChain([effectiveModes, 'access', _1227 => _1227.mingo, 'optionalAccess', _1228 => _1228.archiveDialog]),
|
|
49173
|
+
fetchArchivedDialogs: _optionalChain([effectiveModes, 'access', _1229 => _1229.mingo, 'optionalAccess', _1230 => _1230.fetchArchivedDialogs]),
|
|
49174
|
+
unarchiveDialog: _optionalChain([effectiveModes, 'access', _1231 => _1231.mingo, 'optionalAccess', _1232 => _1232.unarchiveDialog]),
|
|
49208
49175
|
searchQuery: void 0,
|
|
49209
49176
|
onSearchChange: void 0
|
|
49210
49177
|
};
|
|
@@ -49218,7 +49185,7 @@ function EmbeddableChatInner({
|
|
|
49218
49185
|
if (controlledActiveMode === void 0) {
|
|
49219
49186
|
setUncontrolledActiveMode(next);
|
|
49220
49187
|
}
|
|
49221
|
-
_optionalChain([onActiveModeChange, 'optionalCall',
|
|
49188
|
+
_optionalChain([onActiveModeChange, 'optionalCall', _1233 => _1233(next)]);
|
|
49222
49189
|
},
|
|
49223
49190
|
[controlledActiveMode, onActiveModeChange]
|
|
49224
49191
|
);
|
|
@@ -49240,7 +49207,7 @@ function EmbeddableChatInner({
|
|
|
49240
49207
|
const effectiveQuickActions = emptyStateUrl ? emptyStateConfig.quickActions : [];
|
|
49241
49208
|
const effectiveAssistantName = emptyStateConfig.name;
|
|
49242
49209
|
const effectiveAssistantIcon = emptyStateConfig.icon;
|
|
49243
|
-
const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess',
|
|
49210
|
+
const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _1234 => _1234.title]) === "string" ? guideWelcome.title : null)));
|
|
49244
49211
|
const {
|
|
49245
49212
|
messages: rawMessages,
|
|
49246
49213
|
isLoading: chatLoading,
|
|
@@ -49280,7 +49247,7 @@ function EmbeddableChatInner({
|
|
|
49280
49247
|
if (activeMode !== "guide" || guidePromptSentRef.current) return;
|
|
49281
49248
|
guidePromptSentRef.current = true;
|
|
49282
49249
|
void sendMessage(guidePendingPrompt);
|
|
49283
|
-
_optionalChain([onGuidePromptConsumed, 'optionalCall',
|
|
49250
|
+
_optionalChain([onGuidePromptConsumed, 'optionalCall', _1235 => _1235()]);
|
|
49284
49251
|
}, [guidePendingPrompt, activeMode, sendMessage, onGuidePromptConsumed]);
|
|
49285
49252
|
const {
|
|
49286
49253
|
attachments: stagedAttachments,
|
|
@@ -49291,7 +49258,7 @@ function EmbeddableChatInner({
|
|
|
49291
49258
|
clear: clearAttachments
|
|
49292
49259
|
} = useChatAttachments();
|
|
49293
49260
|
const { panelRef: galleryPanelRef, modal: galleryModal } = useChatAttachmentImageGallery();
|
|
49294
|
-
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess',
|
|
49261
|
+
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1236 => _1236.maxItems]), () => ( 10));
|
|
49295
49262
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
49296
49263
|
const [contextItems, setContextItems] = _react.useState.call(void 0, []);
|
|
49297
49264
|
const [contextPickerOpen, setContextPickerOpen] = _react.useState.call(void 0, false);
|
|
@@ -49308,10 +49275,10 @@ function EmbeddableChatInner({
|
|
|
49308
49275
|
}, [activeDialogId, activeMode]);
|
|
49309
49276
|
const mentionMarkerByType = _react.useMemo.call(void 0, () => {
|
|
49310
49277
|
const m = /* @__PURE__ */ new Map();
|
|
49311
|
-
for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess',
|
|
49278
|
+
for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1237 => _1237.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
|
|
49312
49279
|
return m;
|
|
49313
|
-
}, [_optionalChain([contextPicker, 'optionalAccess',
|
|
49314
|
-
const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess',
|
|
49280
|
+
}, [_optionalChain([contextPicker, 'optionalAccess', _1238 => _1238.entityTypes])]);
|
|
49281
|
+
const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _1239 => _1239.entityTypes]);
|
|
49315
49282
|
const resolveContextIcon = _react.useMemo.call(void 0, () => {
|
|
49316
49283
|
const byType = /* @__PURE__ */ new Map();
|
|
49317
49284
|
for (const t of _nullishCoalesce(contextEntityTypes, () => ( []))) byType.set(t.type, t.icon);
|
|
@@ -49323,7 +49290,7 @@ function EmbeddableChatInner({
|
|
|
49323
49290
|
if (mentionActiveRef.current) {
|
|
49324
49291
|
if (contextItems.some((p) => `${p.type}:${p.id}` === key)) return;
|
|
49325
49292
|
if (contextItems.length >= contextMaxItems) return;
|
|
49326
|
-
_optionalChain([chatInputRef, 'access',
|
|
49293
|
+
_optionalChain([chatInputRef, 'access', _1240 => _1240.current, 'optionalAccess', _1241 => _1241.commitMention, 'call', _1242 => _1242(mentionTokenOf(key, mentionMarkerByType), {
|
|
49327
49294
|
label: item.label,
|
|
49328
49295
|
icon: resolveContextIcon(item)
|
|
49329
49296
|
})]);
|
|
@@ -49345,9 +49312,9 @@ function EmbeddableChatInner({
|
|
|
49345
49312
|
setContextItems((prev) => prev.filter((p) => `${p.type}:${p.id}` !== key));
|
|
49346
49313
|
if (mentionKeysRef.current.has(key)) {
|
|
49347
49314
|
mentionKeysRef.current.delete(key);
|
|
49348
|
-
const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access',
|
|
49315
|
+
const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _1243 => _1243.current, 'optionalAccess', _1244 => _1244.getValue, 'call', _1245 => _1245()]), () => ( ""));
|
|
49349
49316
|
const next = cur.replace(`@${mentionTokenOf(key, mentionMarkerByType)}`, "").replace(/\s{2,}/g, " ").trimStart();
|
|
49350
|
-
_optionalChain([chatInputRef, 'access',
|
|
49317
|
+
_optionalChain([chatInputRef, 'access', _1246 => _1246.current, 'optionalAccess', _1247 => _1247.setValue, 'call', _1248 => _1248(next)]);
|
|
49351
49318
|
}
|
|
49352
49319
|
}, [mentionMarkerByType]);
|
|
49353
49320
|
const handleContextValueChange = _react.useCallback.call(void 0, (value) => {
|
|
@@ -49364,7 +49331,7 @@ function EmbeddableChatInner({
|
|
|
49364
49331
|
}, []);
|
|
49365
49332
|
const closeContextPicker = _react.useCallback.call(void 0, () => {
|
|
49366
49333
|
if (mentionActiveRef.current) {
|
|
49367
|
-
_optionalChain([chatInputRef, 'access',
|
|
49334
|
+
_optionalChain([chatInputRef, 'access', _1249 => _1249.current, 'optionalAccess', _1250 => _1250.removeMentionTrigger, 'call', _1251 => _1251()]);
|
|
49368
49335
|
}
|
|
49369
49336
|
setContextPickerOpen(false);
|
|
49370
49337
|
setMentionQuery(null);
|
|
@@ -49398,8 +49365,8 @@ function EmbeddableChatInner({
|
|
|
49398
49365
|
[]
|
|
49399
49366
|
);
|
|
49400
49367
|
const timestampCacheRef = _react.useRef.call(void 0, /* @__PURE__ */ new Map());
|
|
49401
|
-
const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess',
|
|
49402
|
-
const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess',
|
|
49368
|
+
const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _1252 => _1252.firstName]), _optionalChain([identityUser, 'optionalAccess', _1253 => _1253.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _1254 => _1254.name, 'optionalAccess', _1255 => _1255.trim, 'call', _1256 => _1256()]) || void 0 : void 0;
|
|
49369
|
+
const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _1257 => _1257.avatarUrl, 'optionalAccess', _1258 => _1258.trim, 'call', _1259 => _1259()]) || void 0 : void 0;
|
|
49403
49370
|
const messages = _react.useMemo.call(void 0, () => {
|
|
49404
49371
|
const cache = timestampCacheRef.current;
|
|
49405
49372
|
const seenIds = /* @__PURE__ */ new Set();
|
|
@@ -49568,9 +49535,9 @@ function EmbeddableChatInner({
|
|
|
49568
49535
|
const lastAssistantMsg = [...rawMessages].reverse().find((m) => m.role === "assistant");
|
|
49569
49536
|
const lastSources = _react.useMemo.call(void 0, () => {
|
|
49570
49537
|
if (chatLoading) return void 0;
|
|
49571
|
-
const sources = _optionalChain([lastAssistantMsg, 'optionalAccess',
|
|
49538
|
+
const sources = _optionalChain([lastAssistantMsg, 'optionalAccess', _1260 => _1260.sources]);
|
|
49572
49539
|
if (!sources || sources.length === 0) return void 0;
|
|
49573
|
-
const content = _optionalChain([lastAssistantMsg, 'optionalAccess',
|
|
49540
|
+
const content = _optionalChain([lastAssistantMsg, 'optionalAccess', _1261 => _1261.content]) || "";
|
|
49574
49541
|
const citationOrder = [...content.matchAll(/\[(\d+)\]/g)].map(
|
|
49575
49542
|
(m) => parseInt(m[1], 10)
|
|
49576
49543
|
);
|
|
@@ -49617,7 +49584,7 @@ function EmbeddableChatInner({
|
|
|
49617
49584
|
ChatPanelHeader,
|
|
49618
49585
|
{
|
|
49619
49586
|
showBack: hasConversation || guideCanReturnToMingo,
|
|
49620
|
-
title: hasConversation ? _optionalChain([activeDialog, 'optionalAccess',
|
|
49587
|
+
title: hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _1262 => _1262.title]) || "New Chat" : isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "Current Chats",
|
|
49621
49588
|
backAriaLabel: hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo",
|
|
49622
49589
|
isArchivedView: isViewingArchived,
|
|
49623
49590
|
onBack: hasConversation ? handleBack : () => handleActiveModeChange("mingo"),
|
|
@@ -49738,9 +49705,9 @@ function EmbeddableChatInner({
|
|
|
49738
49705
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
49739
49706
|
subtitleLoading: emptyStateLoading,
|
|
49740
49707
|
...guideWelcome,
|
|
49741
|
-
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
49742
|
-
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
49743
|
-
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess',
|
|
49708
|
+
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1263 => _1263.title]))),
|
|
49709
|
+
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1264 => _1264.icon]))),
|
|
49710
|
+
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _1265 => _1265.quickActions]), () => ( guideSuggestedActions)),
|
|
49744
49711
|
onQuickAction: (action) => {
|
|
49745
49712
|
setQuickActionPreview(null);
|
|
49746
49713
|
handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
|
|
@@ -50833,4 +50800,4 @@ function EmbeddableChatInner({
|
|
|
50833
50800
|
|
|
50834
50801
|
|
|
50835
50802
|
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.OVERLAY_BACKDROP_CLASS = OVERLAY_BACKDROP_CLASS; 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.FadePreview = FadePreview; exports.Progress = Progress; exports.fetchPriorityProp = fetchPriorityProp; exports.extractYouTubeId = extractYouTubeId; exports.Video = Video2; 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.StackedRowsPanel = StackedRowsPanel; exports.SlackChannelChip = SlackChannelChip; 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.CommandBlock = CommandBlock; 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.ICON_REGISTRY = ICON_REGISTRY; exports.normalizeIconKey = normalizeIconKey; exports.getIconComponent = getIconComponent; exports.getDynamicIcon = getDynamicIcon; exports.ICON_ALIASES = ICON_ALIASES; exports.resolveIcon = resolveIcon; exports.ICON_OPTIONS = 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.FAE_AVATAR_DATA_URI = FAE_AVATAR_DATA_URI; exports.AgentMark = AgentMark; exports.EntityIcon = EntityIcon; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipSkeleton = QuickActionChipSkeleton; exports.QuickActionChipButton = QuickActionChipButton; exports.ChatQuickActionRow = ChatQuickActionRow; exports.ChatQuickActionRowSkeleton = ChatQuickActionRowSkeleton; exports.QuickActionMarquee = QuickActionMarquee; 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 = FlamingoLogo2; 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.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.assets = assets;
|
|
50836
|
-
//# sourceMappingURL=chunk-
|
|
50803
|
+
//# sourceMappingURL=chunk-4RUTFRJ6.cjs.map
|