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