@flamingo-stack/openframe-frontend-core 0.0.538 → 0.0.539
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-ZHW5VLHY.js → chunk-5AVACJ3L.js} +2 -2
- package/dist/{chunk-C6NKOHFW.js → chunk-5BXAGDV5.js} +2 -2
- package/dist/{chunk-R3XO2KO4.cjs → chunk-7HHJACP5.cjs} +4 -4
- package/dist/{chunk-R3XO2KO4.cjs.map → chunk-7HHJACP5.cjs.map} +1 -1
- package/dist/{chunk-7CBQWZAH.js → chunk-CABB5F4R.js} +4 -4
- package/dist/{chunk-LJW7B6GY.cjs → chunk-CJMPFRVH.cjs} +9 -9
- package/dist/{chunk-LJW7B6GY.cjs.map → chunk-CJMPFRVH.cjs.map} +1 -1
- package/dist/{chunk-UBEVU6LS.js → chunk-DR2PFOYX.js} +2 -2
- package/dist/{chunk-56QT3JBZ.js → chunk-EDD6ZOVC.js} +2 -2
- package/dist/{chunk-4BK5Z763.js → chunk-EESFDY5E.js} +2 -2
- package/dist/{chunk-73W4L656.js → chunk-EWO5DH33.js} +2 -2
- package/dist/{chunk-C6776X43.cjs → chunk-F3XRVBGI.cjs} +26 -26
- package/dist/{chunk-C6776X43.cjs.map → chunk-F3XRVBGI.cjs.map} +1 -1
- package/dist/{chunk-F4QOOHZL.cjs → chunk-FXPELLEG.cjs} +11 -11
- package/dist/{chunk-F4QOOHZL.cjs.map → chunk-FXPELLEG.cjs.map} +1 -1
- package/dist/{chunk-QK4SQAYG.js → chunk-GIYY6ALS.js} +6 -6
- package/dist/{chunk-67CKAX7Z.js → chunk-HNNNY6NI.js} +2 -2
- package/dist/{chunk-QQ3HUSDJ.cjs → chunk-I5MSZCOS.cjs} +405 -401
- package/dist/chunk-I5MSZCOS.cjs.map +1 -0
- package/dist/{chunk-EH6LNTOT.js → chunk-LAIABVLE.js} +5 -5
- package/dist/{chunk-YO5BWF4L.cjs → chunk-LPL53U5K.cjs} +14 -14
- package/dist/{chunk-YO5BWF4L.cjs.map → chunk-LPL53U5K.cjs.map} +1 -1
- package/dist/{chunk-NUHDE7CB.cjs → chunk-ME3DCQPR.cjs} +37 -37
- package/dist/{chunk-NUHDE7CB.cjs.map → chunk-ME3DCQPR.cjs.map} +1 -1
- package/dist/{chunk-RBBWKSRC.js → chunk-NDUFYBZG.js} +17 -13
- package/dist/{chunk-RBBWKSRC.js.map → chunk-NDUFYBZG.js.map} +1 -1
- package/dist/{chunk-BUKQ6B65.cjs → chunk-OWFU3G4S.cjs} +87 -87
- package/dist/{chunk-BUKQ6B65.cjs.map → chunk-OWFU3G4S.cjs.map} +1 -1
- package/dist/{chunk-QU6P2U2Q.cjs → chunk-Q3WPMUZA.cjs} +3 -3
- package/dist/{chunk-QU6P2U2Q.cjs.map → chunk-Q3WPMUZA.cjs.map} +1 -1
- package/dist/{chunk-MGYNZ7SA.cjs → chunk-RCGRPTFN.cjs} +31 -31
- package/dist/{chunk-MGYNZ7SA.cjs.map → chunk-RCGRPTFN.cjs.map} +1 -1
- package/dist/{chunk-PFGRHRBO.cjs → chunk-S7L62JWW.cjs} +5 -5
- package/dist/{chunk-PFGRHRBO.cjs.map → chunk-S7L62JWW.cjs.map} +1 -1
- package/dist/{chunk-KUKHUECE.js → chunk-T33MZQQA.js} +2 -2
- package/dist/{chunk-NE67LT3B.cjs → chunk-THFLCYDF.cjs} +7 -7
- package/dist/{chunk-NE67LT3B.cjs.map → chunk-THFLCYDF.cjs.map} +1 -1
- package/dist/{chunk-ZBRKTF6S.js → chunk-TROZIN2D.js} +2 -2
- package/dist/{chunk-ZNWW4WAT.cjs → chunk-XGCXH7SP.cjs} +26 -26
- package/dist/{chunk-ZNWW4WAT.cjs.map → chunk-XGCXH7SP.cjs.map} +1 -1
- package/dist/{chunk-BNF6FZLP.js → chunk-Y5NBRXSK.js} +4 -4
- package/dist/{chunk-TWVRCPWY.cjs → chunk-YKWGJS77.cjs} +61 -61
- package/dist/{chunk-TWVRCPWY.cjs.map → chunk-YKWGJS77.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 +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +132 -132
- package/dist/components/index.js +11 -11
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- package/dist/components/meeting-scheduler/index.js +3 -3
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/navigation/mobile-burger-menu.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar.d.ts.map +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 +6 -6
- package/dist/components/tickets/index.js +5 -5
- 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/dist/types/navigation.d.ts +25 -0
- package/dist/types/navigation.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/navigation/mobile-burger-menu.tsx +5 -0
- package/src/components/navigation/navigation-sidebar.tsx +26 -19
- package/src/types/navigation.ts +23 -0
- package/dist/chunk-QQ3HUSDJ.cjs.map +0 -1
- /package/dist/{chunk-ZHW5VLHY.js.map → chunk-5AVACJ3L.js.map} +0 -0
- /package/dist/{chunk-C6NKOHFW.js.map → chunk-5BXAGDV5.js.map} +0 -0
- /package/dist/{chunk-7CBQWZAH.js.map → chunk-CABB5F4R.js.map} +0 -0
- /package/dist/{chunk-UBEVU6LS.js.map → chunk-DR2PFOYX.js.map} +0 -0
- /package/dist/{chunk-56QT3JBZ.js.map → chunk-EDD6ZOVC.js.map} +0 -0
- /package/dist/{chunk-4BK5Z763.js.map → chunk-EESFDY5E.js.map} +0 -0
- /package/dist/{chunk-73W4L656.js.map → chunk-EWO5DH33.js.map} +0 -0
- /package/dist/{chunk-QK4SQAYG.js.map → chunk-GIYY6ALS.js.map} +0 -0
- /package/dist/{chunk-67CKAX7Z.js.map → chunk-HNNNY6NI.js.map} +0 -0
- /package/dist/{chunk-EH6LNTOT.js.map → chunk-LAIABVLE.js.map} +0 -0
- /package/dist/{chunk-KUKHUECE.js.map → chunk-T33MZQQA.js.map} +0 -0
- /package/dist/{chunk-ZBRKTF6S.js.map → chunk-TROZIN2D.js.map} +0 -0
- /package/dist/{chunk-BNF6FZLP.js.map → chunk-Y5NBRXSK.js.map} +0 -0
|
@@ -41827,18 +41827,21 @@ function NavigationSidebar({ config, disabled = false }) {
|
|
|
41827
41827
|
children: [
|
|
41828
41828
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebarHeader, { minimized }),
|
|
41829
41829
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 flex flex-col justify-between py-4 overflow-y-auto", children: [
|
|
41830
|
-
/* @__PURE__ */ _jsxruntime.
|
|
41831
|
-
|
|
41832
|
-
{
|
|
41833
|
-
|
|
41834
|
-
|
|
41835
|
-
|
|
41836
|
-
|
|
41837
|
-
|
|
41838
|
-
|
|
41839
|
-
|
|
41840
|
-
|
|
41841
|
-
|
|
41830
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
41831
|
+
_optionalChain([config, 'access', _1023 => _1023.topSlot, 'optionalCall', _1024 => _1024({ minimized })]),
|
|
41832
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { className: "flex flex-col", "aria-label": "Primary navigation", "aria-busy": !!loadingRows, children: loadingRows ? loadingRows.primary.map((key) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebarItemSkeleton, { showLabel }, key)) : primaryItems.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
41833
|
+
NavigationSidebarItemButton,
|
|
41834
|
+
{
|
|
41835
|
+
item,
|
|
41836
|
+
isActive: item.id === committedActiveId,
|
|
41837
|
+
isPending: item.id === pendingItemId,
|
|
41838
|
+
showLabel,
|
|
41839
|
+
disabled,
|
|
41840
|
+
onClick: handleItemClick
|
|
41841
|
+
},
|
|
41842
|
+
item.id
|
|
41843
|
+
)) })
|
|
41844
|
+
] }),
|
|
41842
41845
|
(loadingRows ? loadingRows.secondary.length > 0 : secondaryItems.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { className: "flex flex-col", "aria-label": "Secondary navigation", "aria-busy": !!loadingRows, children: loadingRows ? loadingRows.secondary.map((key) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebarItemSkeleton, { showLabel }, key)) : secondaryItems.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
41843
41846
|
NavigationSidebarItemButton,
|
|
41844
41847
|
{
|
|
@@ -41893,11 +41896,11 @@ function HeaderGlobalSearch({
|
|
|
41893
41896
|
};
|
|
41894
41897
|
const handleSubmit = (e) => {
|
|
41895
41898
|
e.preventDefault();
|
|
41896
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
41899
|
+
_optionalChain([onSubmit, 'optionalCall', _1025 => _1025(currentValue)]);
|
|
41897
41900
|
};
|
|
41898
41901
|
const handleKeyDown = (e) => {
|
|
41899
41902
|
if (e.key === "Enter") {
|
|
41900
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
41903
|
+
_optionalChain([onSubmit, 'optionalCall', _1026 => _1026(currentValue)]);
|
|
41901
41904
|
}
|
|
41902
41905
|
};
|
|
41903
41906
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -42000,8 +42003,8 @@ function HeaderOrganizationFilter({
|
|
|
42000
42003
|
className
|
|
42001
42004
|
}) {
|
|
42002
42005
|
const selectedOrg = organizations.find((o) => o.id === selectedOrgId);
|
|
42003
|
-
const displayName = _optionalChain([selectedOrg, 'optionalAccess',
|
|
42004
|
-
const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess',
|
|
42006
|
+
const displayName = _optionalChain([selectedOrg, 'optionalAccess', _1027 => _1027.name]) || "All Organizations";
|
|
42007
|
+
const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess', _1028 => _1028.deviceCount]), () => ( totalDeviceCount));
|
|
42005
42008
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NECEXDFcjs.DropdownMenu, { children: [
|
|
42006
42009
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NECEXDFcjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
42007
42010
|
"button",
|
|
@@ -42027,11 +42030,11 @@ function HeaderOrganizationFilter({
|
|
|
42027
42030
|
}
|
|
42028
42031
|
) }),
|
|
42029
42032
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NECEXDFcjs.DropdownMenuContent, { align: "end", className: "min-w-[240px]", children: [
|
|
42030
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NECEXDFcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall',
|
|
42033
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NECEXDFcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall', _1029 => _1029("")]), children: "All Organizations" }),
|
|
42031
42034
|
organizations.map((org) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42032
42035
|
_chunk3NECEXDFcjs.DropdownMenuItem,
|
|
42033
42036
|
{
|
|
42034
|
-
onClick: () => _optionalChain([onOrgChange, 'optionalCall',
|
|
42037
|
+
onClick: () => _optionalChain([onOrgChange, 'optionalCall', _1030 => _1030(org.id)]),
|
|
42035
42038
|
children: org.name
|
|
42036
42039
|
},
|
|
42037
42040
|
org.id
|
|
@@ -42252,9 +42255,9 @@ var AppHeader = React130.default.memo(function AppHeader2({
|
|
|
42252
42255
|
});
|
|
42253
42256
|
function NotificationsHeaderButton({ fallbackUnreadCount, disabled, dimmedClass }) {
|
|
42254
42257
|
const ctx = useOptionalNotifications();
|
|
42255
|
-
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
42256
|
-
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
42257
|
-
const onClick = _optionalChain([ctx, 'optionalAccess',
|
|
42258
|
+
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _1031 => _1031.unreadCount]), () => ( fallbackUnreadCount))) > 0;
|
|
42259
|
+
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _1032 => _1032.isOpen]), () => ( false));
|
|
42260
|
+
const onClick = _optionalChain([ctx, 'optionalAccess', _1033 => _1033.toggle]);
|
|
42258
42261
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42259
42262
|
HeaderButton,
|
|
42260
42263
|
{
|
|
@@ -42348,7 +42351,7 @@ var MobileBurgerMenu = React130.default.memo(function MobileBurgerMenu2({
|
|
|
42348
42351
|
if (item.onClick) {
|
|
42349
42352
|
item.onClick();
|
|
42350
42353
|
} else if (item.path) {
|
|
42351
|
-
_optionalChain([config, 'access',
|
|
42354
|
+
_optionalChain([config, 'access', _1034 => _1034.onNavigate, 'optionalCall', _1035 => _1035(item.path)]);
|
|
42352
42355
|
}
|
|
42353
42356
|
onClose();
|
|
42354
42357
|
}, [config, onClose]);
|
|
@@ -42478,6 +42481,7 @@ var MobileBurgerMenu = React130.default.memo(function MobileBurgerMenu2({
|
|
|
42478
42481
|
]
|
|
42479
42482
|
}
|
|
42480
42483
|
),
|
|
42484
|
+
_optionalChain([config, 'access', _1036 => _1036.topSlot, 'optionalCall', _1037 => _1037({ minimized: false })]),
|
|
42481
42485
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "Primary navigation", children: renderNavigationGrid(primaryItems) }),
|
|
42482
42486
|
secondaryItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "Secondary navigation", className: "flex flex-col gap-3", children: secondaryItems.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, React130.default.Fragment, { children: renderNavigationItem(item, false) }, item.id)) }),
|
|
42483
42487
|
onLogout && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -42945,7 +42949,7 @@ var ShellTypeBadge = ({
|
|
|
42945
42949
|
className,
|
|
42946
42950
|
iconClassName
|
|
42947
42951
|
}) => {
|
|
42948
|
-
const normalizedType = _optionalChain([shellType, 'optionalAccess',
|
|
42952
|
+
const normalizedType = _optionalChain([shellType, 'optionalAccess', _1038 => _1038.toUpperCase, 'call', _1039 => _1039()]);
|
|
42949
42953
|
const label = getShellLabel(normalizedType);
|
|
42950
42954
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
42951
42955
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
@@ -43332,12 +43336,12 @@ function OnboardingWalkthrough({
|
|
|
43332
43336
|
}
|
|
43333
43337
|
}, [state.completedSteps, markComplete]);
|
|
43334
43338
|
const handleStepSkip = (step) => {
|
|
43335
|
-
_optionalChain([step, 'access',
|
|
43339
|
+
_optionalChain([step, 'access', _1040 => _1040.onSkip, 'optionalCall', _1041 => _1041()]);
|
|
43336
43340
|
markSkipped(step.id);
|
|
43337
43341
|
};
|
|
43338
43342
|
const handleDismiss = () => {
|
|
43339
43343
|
dismissOnboarding();
|
|
43340
|
-
_optionalChain([onDismiss, 'optionalCall',
|
|
43344
|
+
_optionalChain([onDismiss, 'optionalCall', _1042 => _1042()]);
|
|
43341
43345
|
};
|
|
43342
43346
|
if (state.dismissed) {
|
|
43343
43347
|
return null;
|
|
@@ -43467,7 +43471,7 @@ var LogCard = ({ log, isLast, showConnector, onClick }) => {
|
|
|
43467
43471
|
onKeyDown: (e) => {
|
|
43468
43472
|
if (e.key === "Enter" || e.key === " ") {
|
|
43469
43473
|
e.preventDefault();
|
|
43470
|
-
_optionalChain([onClick, 'optionalCall',
|
|
43474
|
+
_optionalChain([onClick, 'optionalCall', _1043 => _1043()]);
|
|
43471
43475
|
}
|
|
43472
43476
|
},
|
|
43473
43477
|
children: [
|
|
@@ -43568,7 +43572,7 @@ var LogsList = React127.forwardRef(({
|
|
|
43568
43572
|
log,
|
|
43569
43573
|
isLast: index === logs.length - 1,
|
|
43570
43574
|
showConnector,
|
|
43571
|
-
onClick: () => _optionalChain([onLogClick, 'optionalCall',
|
|
43575
|
+
onClick: () => _optionalChain([onLogClick, 'optionalCall', _1044 => _1044(log)])
|
|
43572
43576
|
},
|
|
43573
43577
|
log.id
|
|
43574
43578
|
))
|
|
@@ -43680,7 +43684,7 @@ var Slider = React129.forwardRef(
|
|
|
43680
43684
|
({ className, value = [0], onValueChange, min = 0, max = 100, step = 1, ...props }, ref) => {
|
|
43681
43685
|
const handleChange = (e) => {
|
|
43682
43686
|
const newValue = [Number(e.target.value)];
|
|
43683
|
-
_optionalChain([onValueChange, 'optionalCall',
|
|
43687
|
+
_optionalChain([onValueChange, 'optionalCall', _1045 => _1045(newValue)]);
|
|
43684
43688
|
};
|
|
43685
43689
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43686
43690
|
"input",
|
|
@@ -44067,7 +44071,7 @@ function CursorPaginationSimple({
|
|
|
44067
44071
|
{
|
|
44068
44072
|
variant: "transparent",
|
|
44069
44073
|
size: "icon",
|
|
44070
|
-
onClick: () => _optionalChain([onPrevious, 'optionalCall',
|
|
44074
|
+
onClick: () => _optionalChain([onPrevious, 'optionalCall', _1046 => _1046("")]),
|
|
44071
44075
|
disabled: !hasPreviousPage || loading,
|
|
44072
44076
|
className: "h-8 w-8",
|
|
44073
44077
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" }),
|
|
@@ -44079,7 +44083,7 @@ function CursorPaginationSimple({
|
|
|
44079
44083
|
{
|
|
44080
44084
|
variant: "transparent",
|
|
44081
44085
|
size: "icon",
|
|
44082
|
-
onClick: () => _optionalChain([onNext, 'optionalCall',
|
|
44086
|
+
onClick: () => _optionalChain([onNext, 'optionalCall', _1047 => _1047("")]),
|
|
44083
44087
|
disabled: !hasNextPage || loading,
|
|
44084
44088
|
className: "h-8 w-8",
|
|
44085
44089
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
|
|
@@ -44099,8 +44103,8 @@ function TableEmptyState({ message: message2, icon, action, className }) {
|
|
|
44099
44103
|
icon: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, {}))),
|
|
44100
44104
|
title: _nullishCoalesce(message2, () => ( "No results found")),
|
|
44101
44105
|
description: message2 == null ? "Try adjusting your search or filters" : void 0,
|
|
44102
|
-
buttonLabel: _optionalChain([action, 'optionalAccess',
|
|
44103
|
-
onButtonClick: _optionalChain([action, 'optionalAccess',
|
|
44106
|
+
buttonLabel: _optionalChain([action, 'optionalAccess', _1048 => _1048.label]),
|
|
44107
|
+
onButtonClick: _optionalChain([action, 'optionalAccess', _1049 => _1049.onClick]),
|
|
44104
44108
|
className: _chunkKI4EGKNVcjs.cn.call(void 0, "py-[var(--spacing-system-xxl)]", className)
|
|
44105
44109
|
}
|
|
44106
44110
|
);
|
|
@@ -44121,7 +44125,7 @@ function TableColumnFilterDropdown({
|
|
|
44121
44125
|
placement = "bottom-start",
|
|
44122
44126
|
dropdownClassName = "min-w-[240px]"
|
|
44123
44127
|
}) {
|
|
44124
|
-
const activeCount = _optionalChain([filters, 'optionalAccess',
|
|
44128
|
+
const activeCount = _optionalChain([filters, 'optionalAccess', _1050 => _1050[columnKey], 'optionalAccess', _1051 => _1051.length]) || 0;
|
|
44125
44129
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44126
44130
|
FiltersDropdown,
|
|
44127
44131
|
{
|
|
@@ -44164,7 +44168,7 @@ function TableColumnFilterDropdown({
|
|
|
44164
44168
|
delete newFilters[columnKey];
|
|
44165
44169
|
onFilterChange(newFilters);
|
|
44166
44170
|
},
|
|
44167
|
-
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess',
|
|
44171
|
+
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess', _1052 => _1052[columnKey]]) || [] },
|
|
44168
44172
|
placement,
|
|
44169
44173
|
dropdownClassName
|
|
44170
44174
|
}
|
|
@@ -44374,7 +44378,7 @@ function TableCardSkeleton({
|
|
|
44374
44378
|
className,
|
|
44375
44379
|
rowClassName
|
|
44376
44380
|
}) {
|
|
44377
|
-
const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess',
|
|
44381
|
+
const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess', _1053 => _1053.key]);
|
|
44378
44382
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
44379
44383
|
"div",
|
|
44380
44384
|
{
|
|
@@ -44467,7 +44471,7 @@ function TableRow({
|
|
|
44467
44471
|
const keys = column.key.split(".");
|
|
44468
44472
|
let value = item;
|
|
44469
44473
|
for (const key of keys) {
|
|
44470
|
-
value = _optionalChain([value, 'optionalAccess',
|
|
44474
|
+
value = _optionalChain([value, 'optionalAccess', _1054 => _1054[key]]);
|
|
44471
44475
|
}
|
|
44472
44476
|
if (value === null || value === void 0) {
|
|
44473
44477
|
return "-";
|
|
@@ -44556,7 +44560,7 @@ function useTableMotion(enabled) {
|
|
|
44556
44560
|
// src/components/ui/table/table.tsx
|
|
44557
44561
|
|
|
44558
44562
|
function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref) {
|
|
44559
|
-
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess',
|
|
44563
|
+
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess', _1055 => _1055.length])) || Boolean(renderRowActions);
|
|
44560
44564
|
const result = [...columns];
|
|
44561
44565
|
if (hasActions) {
|
|
44562
44566
|
const actionsColumn = {
|
|
@@ -44652,7 +44656,7 @@ function Table({
|
|
|
44652
44656
|
return rowKey(item);
|
|
44653
44657
|
}
|
|
44654
44658
|
const key = item[rowKey];
|
|
44655
|
-
return _optionalChain([key, 'optionalAccess',
|
|
44659
|
+
return _optionalChain([key, 'optionalAccess', _1056 => _1056.toString, 'call', _1057 => _1057()]) || index.toString();
|
|
44656
44660
|
};
|
|
44657
44661
|
const getRowClassName = (item, index) => {
|
|
44658
44662
|
if (typeof rowClassName === "function") {
|
|
@@ -44686,23 +44690,23 @@ function Table({
|
|
|
44686
44690
|
const allSelected = selectedRows.length > 0 && selectedRows.length === data.length;
|
|
44687
44691
|
const someSelected = selectedRows.length > 0 && selectedRows.length < data.length;
|
|
44688
44692
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
44689
|
-
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess',
|
|
44690
|
-
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess',
|
|
44693
|
+
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess', _1058 => _1058.onLoadMore]));
|
|
44694
|
+
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess', _1059 => _1059.onLoadMore]);
|
|
44691
44695
|
_react.useEffect.call(void 0, () => {
|
|
44692
|
-
if (!_optionalChain([infiniteScroll, 'optionalAccess',
|
|
44696
|
+
if (!_optionalChain([infiniteScroll, 'optionalAccess', _1060 => _1060.hasNextPage]) || infiniteScroll.isFetchingNextPage) return;
|
|
44693
44697
|
const sentinel = sentinelRef.current;
|
|
44694
44698
|
if (!sentinel) return;
|
|
44695
44699
|
const observer = new IntersectionObserver(
|
|
44696
44700
|
(entries) => {
|
|
44697
|
-
if (_optionalChain([entries, 'access',
|
|
44698
|
-
_optionalChain([onLoadMoreRef, 'access',
|
|
44701
|
+
if (_optionalChain([entries, 'access', _1061 => _1061[0], 'optionalAccess', _1062 => _1062.isIntersecting])) {
|
|
44702
|
+
_optionalChain([onLoadMoreRef, 'access', _1063 => _1063.current, 'optionalCall', _1064 => _1064()]);
|
|
44699
44703
|
}
|
|
44700
44704
|
},
|
|
44701
44705
|
{ rootMargin: "200px" }
|
|
44702
44706
|
);
|
|
44703
44707
|
observer.observe(sentinel);
|
|
44704
44708
|
return () => observer.disconnect();
|
|
44705
|
-
}, [_optionalChain([infiniteScroll, 'optionalAccess',
|
|
44709
|
+
}, [_optionalChain([infiniteScroll, 'optionalAccess', _1065 => _1065.hasNextPage]), _optionalChain([infiniteScroll, 'optionalAccess', _1066 => _1066.isFetchingNextPage])]);
|
|
44706
44710
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkKI4EGKNVcjs.cn.call(void 0, "flex flex-col gap-1 w-full", containerClassName), children: [
|
|
44707
44711
|
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: [
|
|
44708
44712
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: [
|
|
@@ -44772,14 +44776,14 @@ function Table({
|
|
|
44772
44776
|
selected: isRowSelected(item),
|
|
44773
44777
|
onSelect: handleSelectRow,
|
|
44774
44778
|
animateRowReorder,
|
|
44775
|
-
motionDiv: _optionalChain([tableMotion, 'optionalAccess',
|
|
44779
|
+
motionDiv: _optionalChain([tableMotion, 'optionalAccess', _1067 => _1067.motionDiv])
|
|
44776
44780
|
},
|
|
44777
44781
|
getRowKey(item, index)
|
|
44778
44782
|
));
|
|
44779
|
-
const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess',
|
|
44783
|
+
const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess', _1068 => _1068.LayoutGroup]);
|
|
44780
44784
|
return animateRowReorder && LayoutGroup ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LayoutGroup, { children: rows }) : rows;
|
|
44781
44785
|
})(),
|
|
44782
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
44786
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _1069 => _1069.isFetchingNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44783
44787
|
TableCardSkeleton,
|
|
44784
44788
|
{
|
|
44785
44789
|
columns,
|
|
@@ -44788,7 +44792,7 @@ function Table({
|
|
|
44788
44792
|
hasChevron: Boolean(rowHref)
|
|
44789
44793
|
}
|
|
44790
44794
|
),
|
|
44791
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
44795
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _1070 => _1070.hasNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
|
|
44792
44796
|
!infiniteScroll && Array.from({ length: Math.max(0, skeletonRows - data.length) }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
44793
44797
|
"div",
|
|
44794
44798
|
{
|
|
@@ -45146,7 +45150,7 @@ function QueryReportTable({
|
|
|
45146
45150
|
);
|
|
45147
45151
|
const handleExport = () => {
|
|
45148
45152
|
exportToCSV(data, columns, exportFilename);
|
|
45149
|
-
_optionalChain([onExport, 'optionalCall',
|
|
45153
|
+
_optionalChain([onExport, 'optionalCall', _1071 => _1071()]);
|
|
45150
45154
|
};
|
|
45151
45155
|
const tableMinWidth = columns.length * (columnWidth + 16);
|
|
45152
45156
|
const {
|
|
@@ -45338,7 +45342,7 @@ function DataTableColumnFilter({
|
|
|
45338
45342
|
pending = false
|
|
45339
45343
|
}) {
|
|
45340
45344
|
const currentValue = column.getFilterValue();
|
|
45341
|
-
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess',
|
|
45345
|
+
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _1072 => _1072.length]), () => ( 0));
|
|
45342
45346
|
const sections = _react.useMemo.call(void 0,
|
|
45343
45347
|
() => [
|
|
45344
45348
|
{
|
|
@@ -45473,7 +45477,7 @@ function DataTableHeader({
|
|
|
45473
45477
|
);
|
|
45474
45478
|
}
|
|
45475
45479
|
function keepsCellOnTablet(meta) {
|
|
45476
|
-
return Boolean(_optionalChain([meta, 'optionalAccess',
|
|
45480
|
+
return Boolean(_optionalChain([meta, 'optionalAccess', _1073 => _1073.filter])) || _optionalChain([meta, 'optionalAccess', _1074 => _1074.alwaysShowHeader]) === true;
|
|
45477
45481
|
}
|
|
45478
45482
|
var SHOW_FROM = {
|
|
45479
45483
|
md: "md:flex",
|
|
@@ -45511,11 +45515,11 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
45511
45515
|
if (header.isPlaceholder) return null;
|
|
45512
45516
|
const column = header.column;
|
|
45513
45517
|
const meta = column.columnDef.meta;
|
|
45514
|
-
const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess',
|
|
45518
|
+
const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess', _1075 => _1075.filter]));
|
|
45515
45519
|
const keepOnTablet = keepsCellOnTablet(meta);
|
|
45516
|
-
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
45517
|
-
const canSort = _optionalChain([meta, 'optionalAccess',
|
|
45518
|
-
const sortDir = _optionalChain([sort, 'optionalAccess',
|
|
45520
|
+
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _1076 => _1076.align]), () => ( "left"));
|
|
45521
|
+
const canSort = _optionalChain([meta, 'optionalAccess', _1077 => _1077.sortable]) === true;
|
|
45522
|
+
const sortDir = _optionalChain([sort, 'optionalAccess', _1078 => _1078.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
|
|
45519
45523
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45520
45524
|
"div",
|
|
45521
45525
|
{
|
|
@@ -45523,7 +45527,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
45523
45527
|
"items-stretch",
|
|
45524
45528
|
// Cells are hidden rather than dropped from the tree, so which columns
|
|
45525
45529
|
// exist never depends on when an effect ran.
|
|
45526
|
-
getCellVisibilityClasses(keepOnTablet, _optionalChain([meta, 'optionalAccess',
|
|
45530
|
+
getCellVisibilityClasses(keepOnTablet, _optionalChain([meta, 'optionalAccess', _1079 => _1079.hideAt])),
|
|
45527
45531
|
// Width applies from lg only. Stated as "always, neutralized below lg"
|
|
45528
45532
|
// because `meta.width` is an opaque consumer string that cannot be
|
|
45529
45533
|
// prefixed. Only `keepOnTablet` cells need the override — the rest are
|
|
@@ -45541,9 +45545,9 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
45541
45545
|
// Specificity rather than `!important`: it stays a normal declaration, so a
|
|
45542
45546
|
// consumer that genuinely needs a tablet width can still take it back with a
|
|
45543
45547
|
// more specific rule — `!important` could only be answered with another one.
|
|
45544
|
-
_optionalChain([meta, 'optionalAccess',
|
|
45548
|
+
_optionalChain([meta, 'optionalAccess', _1080 => _1080.width]) || "flex-1 min-w-0",
|
|
45545
45549
|
keepOnTablet && "max-lg:[&&]:w-auto max-lg:[&&]:flex-none max-lg:[&&]:basis-auto",
|
|
45546
|
-
_optionalChain([meta, 'optionalAccess',
|
|
45550
|
+
_optionalChain([meta, 'optionalAccess', _1081 => _1081.headerClassName])
|
|
45547
45551
|
),
|
|
45548
45552
|
children: hasFilter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45549
45553
|
DataTableColumnFilter,
|
|
@@ -45567,7 +45571,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
45567
45571
|
keepOnTablet && "max-lg:justify-start",
|
|
45568
45572
|
canSort && "group cursor-pointer"
|
|
45569
45573
|
),
|
|
45570
|
-
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall',
|
|
45574
|
+
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _1082 => _1082(column.id)]) : void 0,
|
|
45571
45575
|
children: [
|
|
45572
45576
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
45573
45577
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -45633,7 +45637,7 @@ function DataTableSkeleton({
|
|
|
45633
45637
|
}) {
|
|
45634
45638
|
const table = useDataTableContext();
|
|
45635
45639
|
const columns = table.getVisibleFlatColumns();
|
|
45636
|
-
const firstColumnId = _optionalChain([columns, 'access',
|
|
45640
|
+
const firstColumnId = _optionalChain([columns, 'access', _1083 => _1083[0], 'optionalAccess', _1084 => _1084.id]);
|
|
45637
45641
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
45638
45642
|
"div",
|
|
45639
45643
|
{
|
|
@@ -45658,13 +45662,13 @@ function DataTableSkeleton({
|
|
|
45658
45662
|
{
|
|
45659
45663
|
className: _chunkKI4EGKNVcjs.cn.call(void 0,
|
|
45660
45664
|
"flex flex-col justify-center shrink-0",
|
|
45661
|
-
_optionalChain([meta, 'optionalAccess',
|
|
45665
|
+
_optionalChain([meta, 'optionalAccess', _1085 => _1085.width]) || "flex-1",
|
|
45662
45666
|
// Same responsive hiding the real header and row apply.
|
|
45663
45667
|
// Without it a `hideAt` column was drawn in the skeleton and
|
|
45664
45668
|
// absent from the loaded table, so below that breakpoint the
|
|
45665
45669
|
// remaining columns were sized against a different total and
|
|
45666
45670
|
// the whole row re-laid-out the moment data arrived.
|
|
45667
|
-
getHideClasses2(_optionalChain([meta, 'optionalAccess',
|
|
45671
|
+
getHideClasses2(_optionalChain([meta, 'optionalAccess', _1086 => _1086.hideAt]))
|
|
45668
45672
|
),
|
|
45669
45673
|
children: [
|
|
45670
45674
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-5 bg-ods-bg-surface rounded-sm w-3/4 mb-[var(--spacing-system-xxs)]" }),
|
|
@@ -45715,7 +45719,7 @@ function DataTableRowImpl({
|
|
|
45715
45719
|
const handleClick = _react.useCallback.call(void 0,
|
|
45716
45720
|
(e) => {
|
|
45717
45721
|
const target = e.target;
|
|
45718
|
-
if (!_optionalChain([containerRef, 'access',
|
|
45722
|
+
if (!_optionalChain([containerRef, 'access', _1087 => _1087.current, 'optionalAccess', _1088 => _1088.contains, 'call', _1089 => _1089(target)])) {
|
|
45719
45723
|
if (isLinkMode) e.preventDefault();
|
|
45720
45724
|
return;
|
|
45721
45725
|
}
|
|
@@ -45723,7 +45727,7 @@ function DataTableRowImpl({
|
|
|
45723
45727
|
if (isLinkMode) e.preventDefault();
|
|
45724
45728
|
return;
|
|
45725
45729
|
}
|
|
45726
|
-
_optionalChain([onClick, 'optionalCall',
|
|
45730
|
+
_optionalChain([onClick, 'optionalCall', _1090 => _1090(row.original)]);
|
|
45727
45731
|
},
|
|
45728
45732
|
[onClick, row.original, isLinkMode]
|
|
45729
45733
|
);
|
|
@@ -45749,10 +45753,10 @@ function DataTableRowImpl({
|
|
|
45749
45753
|
{
|
|
45750
45754
|
className: _chunkKI4EGKNVcjs.cn.call(void 0,
|
|
45751
45755
|
"flex flex-col overflow-hidden",
|
|
45752
|
-
alignJustify(_optionalChain([meta, 'optionalAccess',
|
|
45753
|
-
_optionalChain([meta, 'optionalAccess',
|
|
45754
|
-
_optionalChain([meta, 'optionalAccess',
|
|
45755
|
-
getHideClasses2(_optionalChain([meta, 'optionalAccess',
|
|
45756
|
+
alignJustify(_optionalChain([meta, 'optionalAccess', _1091 => _1091.align])),
|
|
45757
|
+
_optionalChain([meta, 'optionalAccess', _1092 => _1092.width]) || "flex-1 min-w-0",
|
|
45758
|
+
_optionalChain([meta, 'optionalAccess', _1093 => _1093.cellClassName]),
|
|
45759
|
+
getHideClasses2(_optionalChain([meta, 'optionalAccess', _1094 => _1094.hideAt]))
|
|
45756
45760
|
),
|
|
45757
45761
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CellContent, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) })
|
|
45758
45762
|
},
|
|
@@ -45832,7 +45836,7 @@ function DataTableBody({
|
|
|
45832
45836
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkKI4EGKNVcjs.cn.call(void 0, "flex flex-col gap-[var(--spacing-system-xsf)] w-full", className), children: [
|
|
45833
45837
|
rows.map((row, index) => {
|
|
45834
45838
|
const item = row.original;
|
|
45835
|
-
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall',
|
|
45839
|
+
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _1095 => _1095(item)]), () => ( void 0));
|
|
45836
45840
|
const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
|
|
45837
45841
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45838
45842
|
DataTableRow,
|
|
@@ -45843,7 +45847,7 @@ function DataTableBody({
|
|
|
45843
45847
|
compact,
|
|
45844
45848
|
autoHeight,
|
|
45845
45849
|
className: cls,
|
|
45846
|
-
subRow: _optionalChain([renderSubRow, 'optionalCall',
|
|
45850
|
+
subRow: _optionalChain([renderSubRow, 'optionalCall', _1096 => _1096(item)])
|
|
45847
45851
|
},
|
|
45848
45852
|
row.id
|
|
45849
45853
|
);
|
|
@@ -45900,7 +45904,7 @@ function DataTableInfiniteFooter({
|
|
|
45900
45904
|
if (!sentinel) return;
|
|
45901
45905
|
const observer = new IntersectionObserver(
|
|
45902
45906
|
(entries) => {
|
|
45903
|
-
if (_optionalChain([entries, 'access',
|
|
45907
|
+
if (_optionalChain([entries, 'access', _1097 => _1097[0], 'optionalAccess', _1098 => _1098.isIntersecting])) onLoadMoreRef.current();
|
|
45904
45908
|
},
|
|
45905
45909
|
{ rootMargin }
|
|
45906
45910
|
);
|
|
@@ -45948,7 +45952,7 @@ function DataTableRowCount({
|
|
|
45948
45952
|
const table = useDataTableContext();
|
|
45949
45953
|
const count = _nullishCoalesce(totalCount, () => ( table.getRowModel().rows.length));
|
|
45950
45954
|
if (hideWhenEmpty && count === 0) return null;
|
|
45951
|
-
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall',
|
|
45955
|
+
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _1099 => _1099(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
|
|
45952
45956
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
45953
45957
|
"span",
|
|
45954
45958
|
{
|
|
@@ -46109,7 +46113,7 @@ function SearchInput({
|
|
|
46109
46113
|
if (!showHiddenTags) return;
|
|
46110
46114
|
const handleClick = (e) => {
|
|
46111
46115
|
const target = e.target;
|
|
46112
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
46116
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _1100 => _1100.current, 'optionalAccess', _1101 => _1101.contains, 'call', _1102 => _1102(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _1103 => _1103.current, 'optionalAccess', _1104 => _1104.contains, 'call', _1105 => _1105(target)])) {
|
|
46113
46117
|
setShowHiddenTags(false);
|
|
46114
46118
|
}
|
|
46115
46119
|
};
|
|
@@ -46157,10 +46161,10 @@ function SearchInput({
|
|
|
46157
46161
|
} else {
|
|
46158
46162
|
setInternalValue("");
|
|
46159
46163
|
}
|
|
46160
|
-
_optionalChain([inputRef, 'access',
|
|
46164
|
+
_optionalChain([inputRef, 'access', _1106 => _1106.current, 'optionalAccess', _1107 => _1107.focus, 'call', _1108 => _1108()]);
|
|
46161
46165
|
};
|
|
46162
46166
|
const handleResultClick = (result, e) => {
|
|
46163
|
-
_optionalChain([onResultSelect, 'optionalCall',
|
|
46167
|
+
_optionalChain([onResultSelect, 'optionalCall', _1109 => _1109(
|
|
46164
46168
|
result,
|
|
46165
46169
|
e ? {
|
|
46166
46170
|
metaKey: e.metaKey,
|
|
@@ -46192,7 +46196,7 @@ function SearchInput({
|
|
|
46192
46196
|
if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
|
|
46193
46197
|
handleResultClick(flatResults[highlightedIndex]);
|
|
46194
46198
|
} else {
|
|
46195
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
46199
|
+
_optionalChain([onSubmit, 'optionalCall', _1110 => _1110(currentValue)]);
|
|
46196
46200
|
}
|
|
46197
46201
|
break;
|
|
46198
46202
|
case "Escape":
|
|
@@ -46270,7 +46274,7 @@ function SearchInput({
|
|
|
46270
46274
|
dropdownVisible && "!border-ods-accent"
|
|
46271
46275
|
),
|
|
46272
46276
|
onClick: () => {
|
|
46273
|
-
_optionalChain([inputRef, 'access',
|
|
46277
|
+
_optionalChain([inputRef, 'access', _1111 => _1111.current, 'optionalAccess', _1112 => _1112.focus, 'call', _1113 => _1113()]);
|
|
46274
46278
|
setIsOpen(true);
|
|
46275
46279
|
},
|
|
46276
46280
|
children: [
|
|
@@ -46356,10 +46360,10 @@ function SearchInput({
|
|
|
46356
46360
|
collisionPadding: { bottom: keyboardPadding },
|
|
46357
46361
|
onOpenAutoFocus: (e) => {
|
|
46358
46362
|
e.preventDefault();
|
|
46359
|
-
_optionalChain([inputRef, 'access',
|
|
46363
|
+
_optionalChain([inputRef, 'access', _1114 => _1114.current, 'optionalAccess', _1115 => _1115.focus, 'call', _1116 => _1116()]);
|
|
46360
46364
|
},
|
|
46361
46365
|
onInteractOutside: (e) => {
|
|
46362
|
-
if (_optionalChain([containerRef, 'access',
|
|
46366
|
+
if (_optionalChain([containerRef, 'access', _1117 => _1117.current, 'optionalAccess', _1118 => _1118.contains, 'call', _1119 => _1119(e.target)])) {
|
|
46363
46367
|
e.preventDefault();
|
|
46364
46368
|
}
|
|
46365
46369
|
},
|
|
@@ -46376,10 +46380,10 @@ function SearchInput({
|
|
|
46376
46380
|
ref: hiddenTagsPopupRef,
|
|
46377
46381
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
46378
46382
|
style: {
|
|
46379
|
-
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([containerRef, 'access',
|
|
46383
|
+
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([containerRef, 'access', _1120 => _1120.current, 'optionalAccess', _1121 => _1121.getBoundingClientRect, 'call', _1122 => _1122(), 'access', _1123 => _1123.left]), () => ( 0))) : 0
|
|
46380
46384
|
},
|
|
46381
46385
|
onRemove: (value2) => {
|
|
46382
|
-
_optionalChain([onFilterRemove, 'optionalCall',
|
|
46386
|
+
_optionalChain([onFilterRemove, 'optionalCall', _1124 => _1124(value2)]);
|
|
46383
46387
|
if (hiddenCount <= 1) setShowHiddenTags(false);
|
|
46384
46388
|
}
|
|
46385
46389
|
}
|
|
@@ -46430,7 +46434,7 @@ function FilterListItem({
|
|
|
46430
46434
|
}) {
|
|
46431
46435
|
const handleToggle = () => {
|
|
46432
46436
|
if (disabled) return;
|
|
46433
|
-
_optionalChain([onToggle, 'optionalCall',
|
|
46437
|
+
_optionalChain([onToggle, 'optionalCall', _1125 => _1125(!selected)]);
|
|
46434
46438
|
};
|
|
46435
46439
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
46436
46440
|
"div",
|
|
@@ -46477,7 +46481,7 @@ function FilterListItem({
|
|
|
46477
46481
|
CheckboxPrimitive4.Root,
|
|
46478
46482
|
{
|
|
46479
46483
|
checked: selected,
|
|
46480
|
-
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall',
|
|
46484
|
+
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _1126 => _1126(c === true)]),
|
|
46481
46485
|
onClick: (e) => e.stopPropagation(),
|
|
46482
46486
|
disabled,
|
|
46483
46487
|
"aria-label": title,
|
|
@@ -46576,7 +46580,7 @@ function TagSearchInput({
|
|
|
46576
46580
|
if (!showHiddenTags) return;
|
|
46577
46581
|
const handleClick = (e) => {
|
|
46578
46582
|
const target = e.target;
|
|
46579
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
46583
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _1127 => _1127.current, 'optionalAccess', _1128 => _1128.contains, 'call', _1129 => _1129(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _1130 => _1130.current, 'optionalAccess', _1131 => _1131.contains, 'call', _1132 => _1132(target)])) {
|
|
46580
46584
|
setShowHiddenTags(false);
|
|
46581
46585
|
}
|
|
46582
46586
|
};
|
|
@@ -46592,13 +46596,13 @@ function TagSearchInput({
|
|
|
46592
46596
|
e.preventDefault();
|
|
46593
46597
|
onSubmit(searchValue);
|
|
46594
46598
|
}
|
|
46595
|
-
_optionalChain([onKeyDown, 'optionalCall',
|
|
46599
|
+
_optionalChain([onKeyDown, 'optionalCall', _1133 => _1133(e)]);
|
|
46596
46600
|
};
|
|
46597
46601
|
const handleClearAll = (e) => {
|
|
46598
46602
|
e.stopPropagation();
|
|
46599
46603
|
e.preventDefault();
|
|
46600
|
-
_optionalChain([onClearAll, 'optionalCall',
|
|
46601
|
-
_optionalChain([inputRef, 'access',
|
|
46604
|
+
_optionalChain([onClearAll, 'optionalCall', _1134 => _1134()]);
|
|
46605
|
+
_optionalChain([inputRef, 'access', _1135 => _1135.current, 'optionalAccess', _1136 => _1136.focus, 'call', _1137 => _1137()]);
|
|
46602
46606
|
};
|
|
46603
46607
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: wrapperRef, className: "relative", children: [
|
|
46604
46608
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -46621,7 +46625,7 @@ function TagSearchInput({
|
|
|
46621
46625
|
className
|
|
46622
46626
|
),
|
|
46623
46627
|
onClick: () => {
|
|
46624
|
-
if (!disabled) _optionalChain([inputRef, 'access',
|
|
46628
|
+
if (!disabled) _optionalChain([inputRef, 'access', _1138 => _1138.current, 'optionalAccess', _1139 => _1139.focus, 'call', _1140 => _1140()]);
|
|
46625
46629
|
},
|
|
46626
46630
|
children: [
|
|
46627
46631
|
/* @__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" }) }),
|
|
@@ -46694,7 +46698,7 @@ function TagSearchInput({
|
|
|
46694
46698
|
items: hiddenTags,
|
|
46695
46699
|
disabled,
|
|
46696
46700
|
style: {
|
|
46697
|
-
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access',
|
|
46701
|
+
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access', _1141 => _1141.current, 'optionalAccess', _1142 => _1142.getBoundingClientRect, 'call', _1143 => _1143(), 'access', _1144 => _1144.left]), () => ( 0))) : 0
|
|
46698
46702
|
},
|
|
46699
46703
|
onRemove: (value) => {
|
|
46700
46704
|
onTagRemove(value);
|
|
@@ -46795,7 +46799,7 @@ function MarkdownEditor({
|
|
|
46795
46799
|
const [defaultExtraCommands, setDefaultExtraCommands] = _react.useState.call(void 0, []);
|
|
46796
46800
|
_react.useEffect.call(void 0, () => {
|
|
46797
46801
|
Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor"))).then((mod) => {
|
|
46798
|
-
if (_optionalChain([mod, 'access',
|
|
46802
|
+
if (_optionalChain([mod, 'access', _1145 => _1145.commands, 'optionalAccess', _1146 => _1146.getExtraCommands])) {
|
|
46799
46803
|
setDefaultExtraCommands(mod.commands.getExtraCommands());
|
|
46800
46804
|
}
|
|
46801
46805
|
});
|
|
@@ -46829,7 +46833,7 @@ function MarkdownEditor({
|
|
|
46829
46833
|
const isImage = file.type.startsWith("image/");
|
|
46830
46834
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
46831
46835
|
insertTextAtCursor(markdown);
|
|
46832
|
-
_optionalChain([onFileUploaded, 'optionalCall',
|
|
46836
|
+
_optionalChain([onFileUploaded, 'optionalCall', _1147 => _1147(url, file.name)]);
|
|
46833
46837
|
} catch (error) {
|
|
46834
46838
|
console.error("File upload failed:", error);
|
|
46835
46839
|
setUploadProgress("Upload failed. Please try again.");
|
|
@@ -46842,7 +46846,7 @@ function MarkdownEditor({
|
|
|
46842
46846
|
);
|
|
46843
46847
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
46844
46848
|
(e) => {
|
|
46845
|
-
const file = _optionalChain([e, 'access',
|
|
46849
|
+
const file = _optionalChain([e, 'access', _1148 => _1148.target, 'access', _1149 => _1149.files, 'optionalAccess', _1150 => _1150[0]]);
|
|
46846
46850
|
if (file) {
|
|
46847
46851
|
handleFileUpload(file);
|
|
46848
46852
|
e.target.value = "";
|
|
@@ -46853,7 +46857,7 @@ function MarkdownEditor({
|
|
|
46853
46857
|
const handlePaste = _react.useCallback.call(void 0,
|
|
46854
46858
|
(e) => {
|
|
46855
46859
|
if (!onUploadFile) return;
|
|
46856
|
-
const items = _optionalChain([e, 'access',
|
|
46860
|
+
const items = _optionalChain([e, 'access', _1151 => _1151.clipboardData, 'optionalAccess', _1152 => _1152.items]);
|
|
46857
46861
|
if (!items) return;
|
|
46858
46862
|
for (const item of items) {
|
|
46859
46863
|
if (item.type.startsWith("image/")) {
|
|
@@ -46878,7 +46882,7 @@ function MarkdownEditor({
|
|
|
46878
46882
|
buttonProps: { "aria-label": "Upload file", title: "Upload file" },
|
|
46879
46883
|
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" }),
|
|
46880
46884
|
execute: () => {
|
|
46881
|
-
_optionalChain([fileInputRef, 'access',
|
|
46885
|
+
_optionalChain([fileInputRef, 'access', _1153 => _1153.current, 'optionalAccess', _1154 => _1154.click, 'call', _1155 => _1155()]);
|
|
46882
46886
|
}
|
|
46883
46887
|
} : null;
|
|
46884
46888
|
const extraCommands = uploadCommand ? [...defaultExtraCommands, uploadCommand] : defaultExtraCommands;
|
|
@@ -46890,7 +46894,7 @@ function MarkdownEditor({
|
|
|
46890
46894
|
const EDGE_ZONE = 60;
|
|
46891
46895
|
const MAX_SCROLL_SPEED = 15;
|
|
46892
46896
|
const findScrollParent = _react.useCallback.call(void 0, (el) => {
|
|
46893
|
-
let node = _optionalChain([el, 'optionalAccess',
|
|
46897
|
+
let node = _optionalChain([el, 'optionalAccess', _1156 => _1156.parentElement]);
|
|
46894
46898
|
while (node && node !== document.documentElement) {
|
|
46895
46899
|
const { overflowY } = window.getComputedStyle(node);
|
|
46896
46900
|
if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) {
|
|
@@ -47033,7 +47037,7 @@ function matchesAccept(file, accept) {
|
|
|
47033
47037
|
});
|
|
47034
47038
|
}
|
|
47035
47039
|
function dragHasFiles(e) {
|
|
47036
|
-
const types = _optionalChain([e, 'access',
|
|
47040
|
+
const types = _optionalChain([e, 'access', _1157 => _1157.dataTransfer, 'optionalAccess', _1158 => _1158.types]);
|
|
47037
47041
|
if (!types) return false;
|
|
47038
47042
|
for (let i = 0; i < types.length; i++) {
|
|
47039
47043
|
if (types[i] === "Files") return true;
|
|
@@ -47130,7 +47134,7 @@ function FileUpload({
|
|
|
47130
47134
|
e.stopPropagation();
|
|
47131
47135
|
setDragActive(false);
|
|
47132
47136
|
if (disabled) return;
|
|
47133
|
-
if (_optionalChain([e, 'access',
|
|
47137
|
+
if (_optionalChain([e, 'access', _1159 => _1159.dataTransfer, 'access', _1160 => _1160.files, 'optionalAccess', _1161 => _1161.length])) {
|
|
47134
47138
|
handleFiles(e.dataTransfer.files);
|
|
47135
47139
|
}
|
|
47136
47140
|
};
|
|
@@ -47158,7 +47162,7 @@ function FileUpload({
|
|
|
47158
47162
|
e.preventDefault();
|
|
47159
47163
|
dragCounter = 0;
|
|
47160
47164
|
setDragActive(false);
|
|
47161
|
-
if (_optionalChain([e, 'access',
|
|
47165
|
+
if (_optionalChain([e, 'access', _1162 => _1162.dataTransfer, 'optionalAccess', _1163 => _1163.files, 'optionalAccess', _1164 => _1164.length])) {
|
|
47162
47166
|
handleFilesRef.current(e.dataTransfer.files);
|
|
47163
47167
|
}
|
|
47164
47168
|
};
|
|
@@ -47180,7 +47184,7 @@ function FileUpload({
|
|
|
47180
47184
|
};
|
|
47181
47185
|
}, [acceptWindowDrops, disabled]);
|
|
47182
47186
|
const handleFileSelect = (e) => {
|
|
47183
|
-
if (_optionalChain([e, 'access',
|
|
47187
|
+
if (_optionalChain([e, 'access', _1165 => _1165.target, 'access', _1166 => _1166.files, 'optionalAccess', _1167 => _1167.length])) {
|
|
47184
47188
|
handleFiles(e.target.files);
|
|
47185
47189
|
}
|
|
47186
47190
|
};
|
|
@@ -47198,7 +47202,7 @@ function FileUpload({
|
|
|
47198
47202
|
const openDialog = async () => {
|
|
47199
47203
|
if (disabled) return;
|
|
47200
47204
|
if (!pickFiles) {
|
|
47201
|
-
_optionalChain([fileInputRef, 'access',
|
|
47205
|
+
_optionalChain([fileInputRef, 'access', _1168 => _1168.current, 'optionalAccess', _1169 => _1169.click, 'call', _1170 => _1170()]);
|
|
47202
47206
|
return;
|
|
47203
47207
|
}
|
|
47204
47208
|
try {
|
|
@@ -47268,7 +47272,7 @@ function FileUpload({
|
|
|
47268
47272
|
"button",
|
|
47269
47273
|
{
|
|
47270
47274
|
type: "button",
|
|
47271
|
-
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall',
|
|
47275
|
+
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _1171 => _1171(entry.id)]),
|
|
47272
47276
|
className: "shrink-0 text-ods-error hover:opacity-80 transition-opacity",
|
|
47273
47277
|
"aria-label": `Remove ${entry.fileName}`,
|
|
47274
47278
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.TrashIcon, { className: "size-6" })
|
|
@@ -47400,7 +47404,7 @@ function ImageUploader({
|
|
|
47400
47404
|
onChange(file);
|
|
47401
47405
|
};
|
|
47402
47406
|
const handleFileSelect = (e) => {
|
|
47403
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
47407
|
+
validateAndEmit(_optionalChain([e, 'access', _1172 => _1172.target, 'access', _1173 => _1173.files, 'optionalAccess', _1174 => _1174[0]]));
|
|
47404
47408
|
if (inputRef.current) inputRef.current.value = "";
|
|
47405
47409
|
};
|
|
47406
47410
|
const handleDrag = (e) => {
|
|
@@ -47415,11 +47419,11 @@ function ImageUploader({
|
|
|
47415
47419
|
e.stopPropagation();
|
|
47416
47420
|
setDragActive(false);
|
|
47417
47421
|
if (!interactive) return;
|
|
47418
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
47422
|
+
validateAndEmit(_optionalChain([e, 'access', _1175 => _1175.dataTransfer, 'access', _1176 => _1176.files, 'optionalAccess', _1177 => _1177[0]]));
|
|
47419
47423
|
};
|
|
47420
47424
|
const openDialog = () => {
|
|
47421
47425
|
if (!interactive) return;
|
|
47422
|
-
_optionalChain([inputRef, 'access',
|
|
47426
|
+
_optionalChain([inputRef, 'access', _1178 => _1178.current, 'optionalAccess', _1179 => _1179.click, 'call', _1180 => _1180()]);
|
|
47423
47427
|
};
|
|
47424
47428
|
const handleRootKeyDown = (e) => {
|
|
47425
47429
|
if (hasImage || !interactive) return;
|
|
@@ -47614,8 +47618,8 @@ function ColorPresetSelect({
|
|
|
47614
47618
|
}) {
|
|
47615
47619
|
const selectedPreset = presets.find((p) => p.key === presetKey);
|
|
47616
47620
|
const isCustom = !selectedPreset;
|
|
47617
|
-
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
47618
|
-
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
47621
|
+
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _1181 => _1181.label]), () => ( "Custom"));
|
|
47622
|
+
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _1182 => _1182.color]), () => ( value));
|
|
47619
47623
|
const groups = [
|
|
47620
47624
|
{
|
|
47621
47625
|
items: [
|
|
@@ -47905,7 +47909,7 @@ function TicketStatusConfigRow({
|
|
|
47905
47909
|
_chunk3NECEXDFcjs.Input,
|
|
47906
47910
|
{
|
|
47907
47911
|
value: name,
|
|
47908
|
-
onChange: (e) => _optionalChain([onNameChange, 'optionalCall',
|
|
47912
|
+
onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _1183 => _1183(e.target.value)]),
|
|
47909
47913
|
disabled: isSystem,
|
|
47910
47914
|
readOnly: isSystem,
|
|
47911
47915
|
"aria-label": "Status name",
|
|
@@ -48458,14 +48462,14 @@ function TicketInfoSection({
|
|
|
48458
48462
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48459
48463
|
SquareAvatar,
|
|
48460
48464
|
{
|
|
48461
|
-
src: _optionalChain([organization, 'optionalAccess',
|
|
48462
|
-
alt: _optionalChain([organization, 'optionalAccess',
|
|
48463
|
-
fallback: _optionalChain([organization, 'optionalAccess',
|
|
48465
|
+
src: _optionalChain([organization, 'optionalAccess', _1184 => _1184.imageSrc]),
|
|
48466
|
+
alt: _optionalChain([organization, 'optionalAccess', _1185 => _1185.name]),
|
|
48467
|
+
fallback: _optionalChain([organization, 'optionalAccess', _1186 => _1186.name]) || "Org",
|
|
48464
48468
|
size: "md",
|
|
48465
48469
|
className: "shrink-0"
|
|
48466
48470
|
}
|
|
48467
48471
|
),
|
|
48468
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess',
|
|
48472
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess', _1187 => _1187.name]) || "Unassigned", label: "Organization" })
|
|
48469
48473
|
] }),
|
|
48470
48474
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: assigned ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48471
48475
|
AssigneeDropdown,
|
|
@@ -48486,10 +48490,10 @@ function TicketInfoSection({
|
|
|
48486
48490
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48487
48491
|
InfoCell2,
|
|
48488
48492
|
{
|
|
48489
|
-
value: _optionalChain([device, 'optionalAccess',
|
|
48493
|
+
value: _optionalChain([device, 'optionalAccess', _1188 => _1188.name]) || "Unassigned",
|
|
48490
48494
|
label: "Device",
|
|
48491
|
-
icon: _optionalChain([device, 'optionalAccess',
|
|
48492
|
-
onClick: _optionalChain([device, 'optionalAccess',
|
|
48495
|
+
icon: _optionalChain([device, 'optionalAccess', _1189 => _1189.icon]),
|
|
48496
|
+
onClick: _optionalChain([device, 'optionalAccess', _1190 => _1190.onClick])
|
|
48493
48497
|
}
|
|
48494
48498
|
),
|
|
48495
48499
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-4 min-w-0", children: [
|
|
@@ -48594,7 +48598,7 @@ function TakeOverTicketModal({
|
|
|
48594
48598
|
setStatusId(_nullishCoalesce(initialStatusId, () => ( null)));
|
|
48595
48599
|
setAssigneeId(_nullishCoalesce(initialAssigneeId, () => ( null)));
|
|
48596
48600
|
}, [isOpen, initialStatusId, initialAssigneeId]);
|
|
48597
|
-
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access',
|
|
48601
|
+
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _1191 => _1191[0], 'optionalAccess', _1192 => _1192.value]))), () => ( null));
|
|
48598
48602
|
const selectedStatus = statusOptions.find((o) => o.value === selectedStatusId);
|
|
48599
48603
|
const selectedAssignee = assigneeOptions.find((o) => o.value === assigneeId);
|
|
48600
48604
|
const handleConfirm = () => {
|
|
@@ -48690,7 +48694,7 @@ function ReopenTicketModal({
|
|
|
48690
48694
|
setAssigneeId(_nullishCoalesce(initialAssigneeId, () => ( null)));
|
|
48691
48695
|
setReason("");
|
|
48692
48696
|
}, [isOpen, initialStatusId, initialAssigneeId]);
|
|
48693
|
-
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access',
|
|
48697
|
+
const selectedStatusId = _nullishCoalesce(_nullishCoalesce(statusId, () => ( _optionalChain([statusOptions, 'access', _1193 => _1193[0], 'optionalAccess', _1194 => _1194.value]))), () => ( null));
|
|
48694
48698
|
const selectedStatus = statusOptions.find((o) => o.value === selectedStatusId);
|
|
48695
48699
|
const selectedAssignee = assigneeOptions.find((o) => o.value === assigneeId);
|
|
48696
48700
|
const handleConfirm = () => {
|
|
@@ -49055,7 +49059,7 @@ function RoadmapCard({
|
|
|
49055
49059
|
const compactHref = safeHref(_nullishCoalesce(href, () => ( null)));
|
|
49056
49060
|
const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
|
|
49057
49061
|
const hasFigma = !!item.figmaUrl;
|
|
49058
|
-
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access',
|
|
49062
|
+
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _1195 => _1195.screenshots, 'optionalAccess', _1196 => _1196.length]), () => ( 0))) > 0;
|
|
49059
49063
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
49060
49064
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
49061
49065
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -49074,7 +49078,7 @@ function RoadmapCard({
|
|
|
49074
49078
|
unoptimized: true,
|
|
49075
49079
|
className: "h-8 w-8 object-contain"
|
|
49076
49080
|
}
|
|
49077
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h6 uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
49081
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h6 uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _1197 => _1197.title, 'optionalAccess', _1198 => _1198.substring, 'call', _1199 => _1199(0, 2)]) || "??" })
|
|
49078
49082
|
}
|
|
49079
49083
|
),
|
|
49080
49084
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -49150,7 +49154,7 @@ function RoadmapCard({
|
|
|
49150
49154
|
unoptimized: true,
|
|
49151
49155
|
className: "object-contain p-1"
|
|
49152
49156
|
}
|
|
49153
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
49157
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _1200 => _1200.title, 'optionalAccess', _1201 => _1201.substring, 'call', _1202 => _1202(0, 2)]) || "??" }) }),
|
|
49154
49158
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 flex flex-col", children: [
|
|
49155
49159
|
/* @__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 flex-1 line-clamp-2", children: item.title }) }),
|
|
49156
49160
|
/* @__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 truncate", children: [
|
|
@@ -49661,7 +49665,7 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
49661
49665
|
] }) : null,
|
|
49662
49666
|
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-h6 text-ods-text-secondary", children: item.preview }) }) : null
|
|
49663
49667
|
] }),
|
|
49664
|
-
_optionalChain([anchorProps, 'optionalAccess',
|
|
49668
|
+
_optionalChain([anchorProps, 'optionalAccess', _1203 => _1203.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
|
|
49665
49669
|
] });
|
|
49666
49670
|
if (!anchorProps) {
|
|
49667
49671
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
@@ -49731,7 +49735,7 @@ function getDefaultOptions() {
|
|
|
49731
49735
|
// node_modules/date-fns/startOfWeek.mjs
|
|
49732
49736
|
function startOfWeek(date, options) {
|
|
49733
49737
|
const defaultOptions2 = getDefaultOptions();
|
|
49734
|
-
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
49738
|
+
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1204 => _1204.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _1205 => _1205.locale, 'optionalAccess', _1206 => _1206.options, 'optionalAccess', _1207 => _1207.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _1208 => _1208.locale, 'optionalAccess', _1209 => _1209.options, 'optionalAccess', _1210 => _1210.weekStartsOn]))), () => ( 0));
|
|
49735
49739
|
const _date = toDate2(date);
|
|
49736
49740
|
const day = _date.getDay();
|
|
49737
49741
|
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
@@ -49906,7 +49910,7 @@ var formatDistance = (token, count, options) => {
|
|
|
49906
49910
|
} else {
|
|
49907
49911
|
result = tokenValue.other.replace("{{count}}", count.toString());
|
|
49908
49912
|
}
|
|
49909
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
49913
|
+
if (_optionalChain([options, 'optionalAccess', _1211 => _1211.addSuffix])) {
|
|
49910
49914
|
if (options.comparison && options.comparison > 0) {
|
|
49911
49915
|
return "in " + result;
|
|
49912
49916
|
} else {
|
|
@@ -49973,15 +49977,15 @@ var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale
|
|
|
49973
49977
|
// node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs
|
|
49974
49978
|
function buildLocalizeFn(args) {
|
|
49975
49979
|
return (value, options) => {
|
|
49976
|
-
const context = _optionalChain([options, 'optionalAccess',
|
|
49980
|
+
const context = _optionalChain([options, 'optionalAccess', _1212 => _1212.context]) ? String(options.context) : "standalone";
|
|
49977
49981
|
let valuesArray;
|
|
49978
49982
|
if (context === "formatting" && args.formattingValues) {
|
|
49979
49983
|
const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
|
49980
|
-
const width = _optionalChain([options, 'optionalAccess',
|
|
49984
|
+
const width = _optionalChain([options, 'optionalAccess', _1213 => _1213.width]) ? String(options.width) : defaultWidth;
|
|
49981
49985
|
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
|
|
49982
49986
|
} else {
|
|
49983
49987
|
const defaultWidth = args.defaultWidth;
|
|
49984
|
-
const width = _optionalChain([options, 'optionalAccess',
|
|
49988
|
+
const width = _optionalChain([options, 'optionalAccess', _1214 => _1214.width]) ? String(options.width) : args.defaultWidth;
|
|
49985
49989
|
valuesArray = args.values[width] || args.values[defaultWidth];
|
|
49986
49990
|
}
|
|
49987
49991
|
const index = args.argumentCallback ? args.argumentCallback(value) : value;
|
|
@@ -50361,7 +50365,7 @@ function getWeekYear(date, options) {
|
|
|
50361
50365
|
const _date = toDate2(date);
|
|
50362
50366
|
const year = _date.getFullYear();
|
|
50363
50367
|
const defaultOptions2 = getDefaultOptions();
|
|
50364
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
50368
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1215 => _1215.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _1216 => _1216.locale, 'optionalAccess', _1217 => _1217.options, 'optionalAccess', _1218 => _1218.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _1219 => _1219.locale, 'optionalAccess', _1220 => _1220.options, 'optionalAccess', _1221 => _1221.firstWeekContainsDate]))), () => ( 1));
|
|
50365
50369
|
const firstWeekOfNextYear = constructFrom(date, 0);
|
|
50366
50370
|
firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
|
|
50367
50371
|
firstWeekOfNextYear.setHours(0, 0, 0, 0);
|
|
@@ -50382,7 +50386,7 @@ function getWeekYear(date, options) {
|
|
|
50382
50386
|
// node_modules/date-fns/startOfWeekYear.mjs
|
|
50383
50387
|
function startOfWeekYear(date, options) {
|
|
50384
50388
|
const defaultOptions2 = getDefaultOptions();
|
|
50385
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
50389
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1222 => _1222.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _1223 => _1223.locale, 'optionalAccess', _1224 => _1224.options, 'optionalAccess', _1225 => _1225.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _1226 => _1226.locale, 'optionalAccess', _1227 => _1227.options, 'optionalAccess', _1228 => _1228.firstWeekContainsDate]))), () => ( 1));
|
|
50386
50390
|
const year = getWeekYear(date, options);
|
|
50387
50391
|
const firstWeek = constructFrom(date, 0);
|
|
50388
50392
|
firstWeek.setFullYear(year, 0, firstWeekContainsDate);
|
|
@@ -51197,9 +51201,9 @@ var doubleQuoteRegExp = /''/g;
|
|
|
51197
51201
|
var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
51198
51202
|
function format2(date, formatStr, options) {
|
|
51199
51203
|
const defaultOptions2 = getDefaultOptions();
|
|
51200
|
-
const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
51201
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
51202
|
-
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
51204
|
+
const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1229 => _1229.locale]), () => ( defaultOptions2.locale)), () => ( enUS));
|
|
51205
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1230 => _1230.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _1231 => _1231.locale, 'optionalAccess', _1232 => _1232.options, 'optionalAccess', _1233 => _1233.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _1234 => _1234.locale, 'optionalAccess', _1235 => _1235.options, 'optionalAccess', _1236 => _1236.firstWeekContainsDate]))), () => ( 1));
|
|
51206
|
+
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1237 => _1237.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _1238 => _1238.locale, 'optionalAccess', _1239 => _1239.options, 'optionalAccess', _1240 => _1240.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _1241 => _1241.locale, 'optionalAccess', _1242 => _1242.options, 'optionalAccess', _1243 => _1243.weekStartsOn]))), () => ( 0));
|
|
51203
51207
|
const originalDate = toDate2(date);
|
|
51204
51208
|
if (!isValid(originalDate)) {
|
|
51205
51209
|
throw new RangeError("Invalid time value");
|
|
@@ -51240,7 +51244,7 @@ function format2(date, formatStr, options) {
|
|
|
51240
51244
|
return parts.map((part) => {
|
|
51241
51245
|
if (!part.isToken) return part.value;
|
|
51242
51246
|
const token = part.value;
|
|
51243
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
51247
|
+
if (!_optionalChain([options, 'optionalAccess', _1244 => _1244.useAdditionalWeekYearTokens]) && isProtectedWeekYearToken(token) || !_optionalChain([options, 'optionalAccess', _1245 => _1245.useAdditionalDayOfYearTokens]) && isProtectedDayOfYearToken(token)) {
|
|
51244
51248
|
warnOrThrowProtectedError(token, formatStr, String(date));
|
|
51245
51249
|
}
|
|
51246
51250
|
const formatter = formatters[token[0]];
|
|
@@ -51446,7 +51450,7 @@ function ProgramCard({
|
|
|
51446
51450
|
const itemDate2 = compactDate;
|
|
51447
51451
|
const compactCover = coverImage || placeholderUrl || null;
|
|
51448
51452
|
const typeMeta = compactTypeMeta();
|
|
51449
|
-
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access',
|
|
51453
|
+
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _1246 => _1246.labels, 'optionalAccess', _1247 => _1247.singular])].filter(
|
|
51450
51454
|
(s) => typeof s === "string" && s.length > 0
|
|
51451
51455
|
);
|
|
51452
51456
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkKI4EGKNVcjs.cn.call(void 0, COMPACT_CARD_OUTER, className), children: [
|
|
@@ -51603,7 +51607,7 @@ function ProgramCard({
|
|
|
51603
51607
|
|
|
51604
51608
|
|
|
51605
51609
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
51606
|
-
const goalsCount = _optionalChain([campaign, 'access',
|
|
51610
|
+
const goalsCount = _optionalChain([campaign, 'access', _1248 => _1248.goals, 'optionalAccess', _1249 => _1249.length]) || 0;
|
|
51607
51611
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
51608
51612
|
/* @__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" }) }),
|
|
51609
51613
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -51771,7 +51775,7 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
51771
51775
|
if (row.path && shouldFallbackToPathNav(row) && !row.externalUrl) {
|
|
51772
51776
|
const safePath = sanitizePath(row.path);
|
|
51773
51777
|
if (safePath) {
|
|
51774
|
-
const docTarget = row.documentType ? _optionalChain([ctx, 'access',
|
|
51778
|
+
const docTarget = row.documentType ? _optionalChain([ctx, 'access', _1250 => _1250.docPlatformTargets, 'optionalAccess', _1251 => _1251[row.documentType]]) : void 0;
|
|
51775
51779
|
if (docTarget) {
|
|
51776
51780
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
51777
51781
|
const base = `${_chunkKI4EGKNVcjs.getBaseUrl.call(void 0, docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
@@ -52070,8 +52074,8 @@ function cardMenuGroups(href, discuss, openDetails, externalLink) {
|
|
|
52070
52074
|
if (href) {
|
|
52071
52075
|
items.push({
|
|
52072
52076
|
id: "open-details",
|
|
52073
|
-
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
52074
|
-
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
52077
|
+
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _1252 => _1252.label]), () => ( "Open Details")),
|
|
52078
|
+
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _1253 => _1253.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.EyeIcon, { size: 20 }))),
|
|
52075
52079
|
// Main row → open the entity (same tab, soft Link nav).
|
|
52076
52080
|
href,
|
|
52077
52081
|
// Trailing 40px ↗ side-button → open in a new tab.
|
|
@@ -52131,16 +52135,16 @@ function itemVideoMetadata(item) {
|
|
|
52131
52135
|
for (const v of vals) if (typeof v === "string" && v.length > 0) return v;
|
|
52132
52136
|
return void 0;
|
|
52133
52137
|
};
|
|
52134
|
-
const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52138
|
+
const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1254 => _1254.metadata]), () => ( {}));
|
|
52135
52139
|
const out = {};
|
|
52136
|
-
const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess',
|
|
52137
|
-
const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess',
|
|
52138
|
-
const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess',
|
|
52140
|
+
const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess', _1255 => _1255.custom_video_url]), _optionalChain([item, 'optionalAccess', _1256 => _1256.main_video_url]));
|
|
52141
|
+
const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess', _1257 => _1257.youtube_url]), _optionalChain([item, 'optionalAccess', _1258 => _1258.testimonial_video_url]));
|
|
52142
|
+
const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess', _1259 => _1259.highlight_video_url]));
|
|
52139
52143
|
const videoPoster = pick(
|
|
52140
52144
|
m.videoPoster,
|
|
52141
|
-
_optionalChain([item, 'optionalAccess',
|
|
52142
|
-
_optionalChain([item, 'optionalAccess',
|
|
52143
|
-
_optionalChain([item, 'optionalAccess',
|
|
52145
|
+
_optionalChain([item, 'optionalAccess', _1260 => _1260.main_video_thumbnail]),
|
|
52146
|
+
_optionalChain([item, 'optionalAccess', _1261 => _1261.highlight_video_thumbnail]),
|
|
52147
|
+
_optionalChain([item, 'optionalAccess', _1262 => _1262.featured_image])
|
|
52144
52148
|
);
|
|
52145
52149
|
if (videoUrl) out.videoUrl = videoUrl;
|
|
52146
52150
|
if (youtubeUrl) out.youtubeUrl = youtubeUrl;
|
|
@@ -52174,15 +52178,15 @@ function fetchedItemDisplayRef(item, chatRef) {
|
|
|
52174
52178
|
}
|
|
52175
52179
|
function fetchedFaqDisplayRef(item, chatRef) {
|
|
52176
52180
|
const it = item;
|
|
52177
|
-
const answer = typeof _optionalChain([it, 'optionalAccess',
|
|
52181
|
+
const answer = typeof _optionalChain([it, 'optionalAccess', _1263 => _1263.answer]) === "string" && it.answer.trim().length > 0 ? it.answer.trim() : null;
|
|
52178
52182
|
return {
|
|
52179
52183
|
type: "faq",
|
|
52180
52184
|
id: chatRef.id,
|
|
52181
52185
|
sourceRepo: chatRef.sourceRepo,
|
|
52182
|
-
title: typeof _optionalChain([it, 'optionalAccess',
|
|
52186
|
+
title: typeof _optionalChain([it, 'optionalAccess', _1264 => _1264.question]) === "string" && it.question ? it.question : chatRef.id,
|
|
52183
52187
|
url: _nullishCoalesce(chatRef.url, () => ( null)),
|
|
52184
52188
|
...answer ? { preview: answer.length > 400 ? `${answer.slice(0, 397)}\u2026` : answer } : {},
|
|
52185
|
-
metadata: typeof _optionalChain([it, 'optionalAccess',
|
|
52189
|
+
metadata: typeof _optionalChain([it, 'optionalAccess', _1265 => _1265.section]) === "string" && it.section ? { section: it.section } : {}
|
|
52186
52190
|
};
|
|
52187
52191
|
}
|
|
52188
52192
|
function HubspotTicketChatCard({
|
|
@@ -52190,8 +52194,8 @@ function HubspotTicketChatCard({
|
|
|
52190
52194
|
isNewTab,
|
|
52191
52195
|
discuss
|
|
52192
52196
|
}) {
|
|
52193
|
-
const status = typeof _optionalChain([chatRef, 'access',
|
|
52194
|
-
const statusLabel = typeof _optionalChain([chatRef, 'access',
|
|
52197
|
+
const status = typeof _optionalChain([chatRef, 'access', _1266 => _1266.metadata, 'optionalAccess', _1267 => _1267.status]) === "string" ? chatRef.metadata.status : void 0;
|
|
52198
|
+
const statusLabel = typeof _optionalChain([chatRef, 'access', _1268 => _1268.metadata, 'optionalAccess', _1269 => _1269.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
|
|
52195
52199
|
const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
|
|
52196
52200
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52197
52201
|
MingoInfoCard,
|
|
@@ -52214,7 +52218,7 @@ function FaqChatCard({
|
|
|
52214
52218
|
isNewTab,
|
|
52215
52219
|
discuss
|
|
52216
52220
|
}) {
|
|
52217
|
-
const section = typeof _optionalChain([chatRef, 'access',
|
|
52221
|
+
const section = typeof _optionalChain([chatRef, 'access', _1270 => _1270.metadata, 'optionalAccess', _1271 => _1271.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
|
|
52218
52222
|
const statusLabel = section && section.length > 0 ? section : "FAQ";
|
|
52219
52223
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52220
52224
|
MingoInfoCard,
|
|
@@ -52234,7 +52238,7 @@ function SlackChatCard({
|
|
|
52234
52238
|
isNewTab,
|
|
52235
52239
|
discuss
|
|
52236
52240
|
}) {
|
|
52237
|
-
const channelName = typeof _optionalChain([chatRef, 'access',
|
|
52241
|
+
const channelName = typeof _optionalChain([chatRef, 'access', _1272 => _1272.metadata, 'optionalAccess', _1273 => _1273.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
|
|
52238
52242
|
const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
|
|
52239
52243
|
const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
|
|
52240
52244
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -52274,7 +52278,7 @@ function GenericFinancialChatCard({
|
|
|
52274
52278
|
isNewTab,
|
|
52275
52279
|
discuss
|
|
52276
52280
|
}) {
|
|
52277
|
-
const subtitle = typeof _optionalChain([chatRef, 'access',
|
|
52281
|
+
const subtitle = typeof _optionalChain([chatRef, 'access', _1274 => _1274.metadata, 'optionalAccess', _1275 => _1275.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
|
|
52278
52282
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52279
52283
|
MingoInfoCard,
|
|
52280
52284
|
{
|
|
@@ -52343,12 +52347,12 @@ function ProductReleaseChatCard({
|
|
|
52343
52347
|
discuss
|
|
52344
52348
|
}) {
|
|
52345
52349
|
const releaseProps = buildProps(item);
|
|
52346
|
-
const status = _optionalChain([item, 'optionalAccess',
|
|
52350
|
+
const status = _optionalChain([item, 'optionalAccess', _1276 => _1276.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
|
|
52347
52351
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52348
52352
|
EntityMingoCard,
|
|
52349
52353
|
{
|
|
52350
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52351
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
52354
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1277 => _1277.title]), () => ( "")),
|
|
52355
|
+
description: _optionalChain([item, 'optionalAccess', _1278 => _1278.summary]) || releaseProps.formattedDate || void 0,
|
|
52352
52356
|
cover: releaseProps.coverImage || void 0,
|
|
52353
52357
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.Rocket02Icon, { size: 24 }),
|
|
52354
52358
|
status,
|
|
@@ -52365,17 +52369,17 @@ function CampaignChatCard({
|
|
|
52365
52369
|
isNewTab,
|
|
52366
52370
|
discuss
|
|
52367
52371
|
}) {
|
|
52368
|
-
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
52372
|
+
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _1279 => _1279.goals])) ? item.goals.length : 0;
|
|
52369
52373
|
const meta = [
|
|
52370
|
-
_optionalChain([item, 'optionalAccess',
|
|
52374
|
+
_optionalChain([item, 'optionalAccess', _1280 => _1280.start_date]) ? formatDateShort(item.start_date) : null,
|
|
52371
52375
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
52372
52376
|
"Marketing campaign"
|
|
52373
52377
|
].filter(Boolean).join(" \xB7 ");
|
|
52374
52378
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52375
52379
|
EntityMingoCard,
|
|
52376
52380
|
{
|
|
52377
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52378
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
52381
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1281 => _1281.name]), () => ( "")),
|
|
52382
|
+
description: meta || _optionalChain([item, 'optionalAccess', _1282 => _1282.description]) || void 0,
|
|
52379
52383
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.Megaphone01Icon, { size: 24 }),
|
|
52380
52384
|
chatRef,
|
|
52381
52385
|
isNewTab,
|
|
@@ -52430,14 +52434,14 @@ function BlogChatCard({
|
|
|
52430
52434
|
hasEmbeddedVideo,
|
|
52431
52435
|
discuss
|
|
52432
52436
|
}) {
|
|
52433
|
-
const category = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
52437
|
+
const category = Array.isArray(_optionalChain([item, 'optionalAccess', _1283 => _1283.categories])) ? _optionalChain([item, 'access', _1284 => _1284.categories, 'access', _1285 => _1285.find, 'call', _1286 => _1286((c) => c && c.name), 'optionalAccess', _1287 => _1287.name]) : void 0;
|
|
52434
52438
|
const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
|
|
52435
52439
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52436
52440
|
EntityMingoCard,
|
|
52437
52441
|
{
|
|
52438
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52439
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52440
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
52442
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1288 => _1288.title]), () => ( "")),
|
|
52443
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1289 => _1289.summary]), () => ( void 0)),
|
|
52444
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _1290 => _1290.featured_image]), ogPlaceholder),
|
|
52441
52445
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.NewspaperIcon, { size: 24 }),
|
|
52442
52446
|
status,
|
|
52443
52447
|
chatRef,
|
|
@@ -52454,13 +52458,13 @@ function CaseStudyChatCard({
|
|
|
52454
52458
|
ogPlaceholder,
|
|
52455
52459
|
discuss
|
|
52456
52460
|
}) {
|
|
52457
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
52461
|
+
const meta = [_optionalChain([item, 'optionalAccess', _1291 => _1291.msp, 'optionalAccess', _1292 => _1292.name]), _optionalChain([item, 'optionalAccess', _1293 => _1293.user, 'optionalAccess', _1294 => _1294.full_name])].filter(Boolean).join(" \xB7 ");
|
|
52458
52462
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52459
52463
|
EntityMingoCard,
|
|
52460
52464
|
{
|
|
52461
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52462
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
52463
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
52465
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1295 => _1295.title]), () => ( "")),
|
|
52466
|
+
description: _optionalChain([item, 'optionalAccess', _1296 => _1296.summary]) || meta || void 0,
|
|
52467
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _1297 => _1297.featured_image]), ogPlaceholder),
|
|
52464
52468
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.TrophyIcon, { size: 24 }),
|
|
52465
52469
|
status: { label: "Case study", variant: "grey" },
|
|
52466
52470
|
chatRef,
|
|
@@ -52477,13 +52481,13 @@ function CustomerInterviewChatCard({
|
|
|
52477
52481
|
ogPlaceholder,
|
|
52478
52482
|
discuss
|
|
52479
52483
|
}) {
|
|
52480
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
52484
|
+
const meta = [_optionalChain([item, 'optionalAccess', _1298 => _1298.user, 'optionalAccess', _1299 => _1299.full_name]), _optionalChain([item, 'optionalAccess', _1300 => _1300.msp, 'optionalAccess', _1301 => _1301.name])].filter(Boolean).join(" \xB7 ");
|
|
52481
52485
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52482
52486
|
EntityMingoCard,
|
|
52483
52487
|
{
|
|
52484
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52485
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
52486
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
52488
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1302 => _1302.title]), () => ( "")),
|
|
52489
|
+
description: _optionalChain([item, 'optionalAccess', _1303 => _1303.video_summary]) || meta || void 0,
|
|
52490
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _1304 => _1304.featured_image]), ogPlaceholder),
|
|
52487
52491
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.MicrophoneIcon, { size: 24 }),
|
|
52488
52492
|
status: { label: "Interview", variant: "grey" },
|
|
52489
52493
|
chatRef,
|
|
@@ -52500,13 +52504,13 @@ function InvestorUpdateChatCard({
|
|
|
52500
52504
|
ogPlaceholder,
|
|
52501
52505
|
discuss
|
|
52502
52506
|
}) {
|
|
52503
|
-
const title = _optionalChain([item, 'optionalAccess',
|
|
52507
|
+
const title = _optionalChain([item, 'optionalAccess', _1305 => _1305.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1306 => _1306.update_number]), () => ( "?"))}`;
|
|
52504
52508
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52505
52509
|
EntityMingoCard,
|
|
52506
52510
|
{
|
|
52507
52511
|
title,
|
|
52508
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
52509
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
52512
|
+
description: _optionalChain([item, 'optionalAccess', _1307 => _1307.strategic_update]) || _optionalChain([item, 'optionalAccess', _1308 => _1308.content]) || formatInvestorUpdatePeriod(_optionalChain([item, 'optionalAccess', _1309 => _1309.period_start]), _optionalChain([item, 'optionalAccess', _1310 => _1310.period_end])) || void 0,
|
|
52513
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _1311 => _1311.featured_image]), ogPlaceholder),
|
|
52510
52514
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.PresentationLineIcon, { size: 24 }),
|
|
52511
52515
|
status: { label: "Investor update", variant: "grey" },
|
|
52512
52516
|
chatRef,
|
|
@@ -52523,12 +52527,12 @@ function OnboardingGuideChatCard({
|
|
|
52523
52527
|
ogPlaceholder,
|
|
52524
52528
|
discuss
|
|
52525
52529
|
}) {
|
|
52526
|
-
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess',
|
|
52530
|
+
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _1312 => _1312.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _1313 => _1313.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _1314 => _1314.og_image_url]), ogPlaceholder)));
|
|
52527
52531
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52528
52532
|
EntityMingoCard,
|
|
52529
52533
|
{
|
|
52530
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52531
|
-
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52534
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1315 => _1315.title]), () => ( "")),
|
|
52535
|
+
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1316 => _1316.summary]), () => ( _optionalChain([item, 'optionalAccess', _1317 => _1317.description]))), () => ( void 0)),
|
|
52532
52536
|
cover,
|
|
52533
52537
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.CompassIcon, { size: 24 }),
|
|
52534
52538
|
status: { label: "Guide", variant: "grey" },
|
|
@@ -52549,25 +52553,25 @@ function ProgramChatCard({
|
|
|
52549
52553
|
discuss
|
|
52550
52554
|
}) {
|
|
52551
52555
|
const icon = configKey === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.CalendarIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.MicrophoneIcon, { size: 24 });
|
|
52552
|
-
const isScheduled = _optionalChain([item, 'optionalAccess',
|
|
52556
|
+
const isScheduled = _optionalChain([item, 'optionalAccess', _1318 => _1318.status]) === "scheduled";
|
|
52553
52557
|
let typeMeta;
|
|
52554
|
-
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess',
|
|
52558
|
+
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _1319 => _1319.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
|
|
52555
52559
|
typeMeta = formatDurationCompact(item.duration_seconds);
|
|
52556
|
-
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess',
|
|
52560
|
+
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _1320 => _1320.location_name]) === "string" && item.location_name.trim().length > 0) {
|
|
52557
52561
|
typeMeta = item.location_name;
|
|
52558
|
-
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess',
|
|
52562
|
+
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _1321 => _1321.start_at])) {
|
|
52559
52563
|
const time = formatTimeWithTimezone(item.start_at, _nullishCoalesce(item.timezone, () => ( null)));
|
|
52560
52564
|
const dur = formatDurationFromRange(item.start_at, item.end_at);
|
|
52561
52565
|
typeMeta = dur ? `${time} \xB7 ${dur}` : time;
|
|
52562
52566
|
}
|
|
52563
|
-
const itemDate = formatDateUTC(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52567
|
+
const itemDate = formatDateUTC(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1322 => _1322.date]), () => ( null)), { fallback: "", timezone: "local" });
|
|
52564
52568
|
const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
|
|
52565
52569
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52566
52570
|
EntityMingoCard,
|
|
52567
52571
|
{
|
|
52568
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52569
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
52570
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
52572
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1323 => _1323.title]), () => ( "")),
|
|
52573
|
+
description: meta || _optionalChain([item, 'optionalAccess', _1324 => _1324.description]) || void 0,
|
|
52574
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _1325 => _1325.cover_url]), ogPlaceholder),
|
|
52571
52575
|
fallbackIcon: icon,
|
|
52572
52576
|
status: { label, variant: "grey" },
|
|
52573
52577
|
chatRef,
|
|
@@ -52584,10 +52588,10 @@ function RoadmapChatCard({
|
|
|
52584
52588
|
cardType,
|
|
52585
52589
|
discuss
|
|
52586
52590
|
}) {
|
|
52587
|
-
const logoUrl = typeof _optionalChain([item, 'optionalAccess',
|
|
52588
|
-
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess',
|
|
52591
|
+
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _1326 => _1326.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
52592
|
+
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _1327 => _1327.customItemId]) != null;
|
|
52589
52593
|
const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUTVOBFXRcjs.MapIcon, { size: 24 });
|
|
52590
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess',
|
|
52594
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _1328 => _1328.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
52591
52595
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
52592
52596
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
52593
52597
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: logoUrl, alt: "", className: "size-6 object-contain" })
|
|
@@ -52598,10 +52602,10 @@ function RoadmapChatCard({
|
|
|
52598
52602
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52599
52603
|
EntityMingoCard,
|
|
52600
52604
|
{
|
|
52601
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52602
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52605
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1329 => _1329.title]), () => ( "")),
|
|
52606
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1330 => _1330.description]), () => ( void 0)),
|
|
52603
52607
|
fallbackIcon: icon,
|
|
52604
|
-
status: statusPill(_optionalChain([item, 'optionalAccess',
|
|
52608
|
+
status: statusPill(_optionalChain([item, 'optionalAccess', _1331 => _1331.status])),
|
|
52605
52609
|
chatRef,
|
|
52606
52610
|
isNewTab,
|
|
52607
52611
|
discuss,
|
|
@@ -52617,7 +52621,7 @@ function refHydratedEntry(docType, label, renderRef) {
|
|
|
52617
52621
|
bareInline: true,
|
|
52618
52622
|
contentRefType: docType,
|
|
52619
52623
|
noComposedHref: true,
|
|
52620
|
-
fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
52624
|
+
fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _1332 => _1332.url]), () => ( null)),
|
|
52621
52625
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
|
|
52622
52626
|
render: (item, chatRef, opts) => renderRef(fetchedItemDisplayRef(item, chatRef), opts)
|
|
52623
52627
|
};
|
|
@@ -52690,7 +52694,7 @@ function programRegistryEntries() {
|
|
|
52690
52694
|
discuss: opts.discuss,
|
|
52691
52695
|
configKey: cfg.configKey,
|
|
52692
52696
|
label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
|
|
52693
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
52697
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1333 => _1333.extras, 'optionalAccess', _1334 => _1334.buildOgPlaceholderUrl, 'optionalCall', _1335 => _1335(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1336 => _1336.title]), () => ( "")))]), () => ( null))
|
|
52694
52698
|
}
|
|
52695
52699
|
)
|
|
52696
52700
|
}));
|
|
@@ -52711,7 +52715,7 @@ var ROADMAP_CARD_CONFIGS = {
|
|
|
52711
52715
|
// The card's destination IS the ClickUp deep link, derived from the
|
|
52712
52716
|
// task id post-fetch (the refs frame used to carry it).
|
|
52713
52717
|
noComposedHref: true,
|
|
52714
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
52718
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _1337 => _1337.id]) != null ? clickupTaskUrl(String(item.id)) : null
|
|
52715
52719
|
}
|
|
52716
52720
|
};
|
|
52717
52721
|
function roadmapRegistryEntries() {
|
|
@@ -52753,8 +52757,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
52753
52757
|
DeletedDataCard,
|
|
52754
52758
|
{
|
|
52755
52759
|
title: chatRef.title && chatRef.title !== chatRef.id ? chatRef.title : null,
|
|
52756
|
-
entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access',
|
|
52757
|
-
recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access',
|
|
52760
|
+
entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _1338 => _1338.metadata, 'optionalAccess', _1339 => _1339.entity_label]), () => ( null)),
|
|
52761
|
+
recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _1340 => _1340.metadata, 'optionalAccess', _1341 => _1341.recovery_note]), () => ( null))
|
|
52758
52762
|
}
|
|
52759
52763
|
)
|
|
52760
52764
|
},
|
|
@@ -52768,7 +52772,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
52768
52772
|
bareInline: true,
|
|
52769
52773
|
contentRefType: "faq",
|
|
52770
52774
|
noComposedHref: true,
|
|
52771
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
52775
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _1342 => _1342.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
|
|
52772
52776
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
|
|
52773
52777
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52774
52778
|
FaqChatCard,
|
|
@@ -52852,8 +52856,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
52852
52856
|
chatRef,
|
|
52853
52857
|
isNewTab: opts.isNewTab,
|
|
52854
52858
|
discuss: opts.discuss,
|
|
52855
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
52856
|
-
hasEmbeddedVideo: _optionalChain([chatRef, 'access',
|
|
52859
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1343 => _1343.extras, 'optionalAccess', _1344 => _1344.buildOgPlaceholderUrl, 'optionalCall', _1345 => _1345(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1346 => _1346.title]), () => ( "")))]), () => ( null)),
|
|
52860
|
+
hasEmbeddedVideo: _optionalChain([chatRef, 'access', _1347 => _1347.metadata, 'optionalAccess', _1348 => _1348.hasEmbeddedVideo]) === true
|
|
52857
52861
|
}
|
|
52858
52862
|
)
|
|
52859
52863
|
},
|
|
@@ -52869,7 +52873,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
52869
52873
|
chatRef,
|
|
52870
52874
|
isNewTab: opts.isNewTab,
|
|
52871
52875
|
discuss: opts.discuss,
|
|
52872
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
52876
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1349 => _1349.extras, 'optionalAccess', _1350 => _1350.buildOgPlaceholderUrl, 'optionalCall', _1351 => _1351(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1352 => _1352.title]), () => ( "")))]), () => ( null))
|
|
52873
52877
|
}
|
|
52874
52878
|
)
|
|
52875
52879
|
},
|
|
@@ -52885,7 +52889,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
52885
52889
|
chatRef,
|
|
52886
52890
|
isNewTab: opts.isNewTab,
|
|
52887
52891
|
discuss: opts.discuss,
|
|
52888
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
52892
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1353 => _1353.extras, 'optionalAccess', _1354 => _1354.buildOgPlaceholderUrl, 'optionalCall', _1355 => _1355(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1356 => _1356.title]), () => ( "")))]), () => ( null))
|
|
52889
52893
|
}
|
|
52890
52894
|
)
|
|
52891
52895
|
},
|
|
@@ -52895,7 +52899,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
52895
52899
|
bareInline: true,
|
|
52896
52900
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ProductReleaseCardSkeleton, { size: "sm" }),
|
|
52897
52901
|
render: (item, chatRef, opts) => {
|
|
52898
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
52902
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1357 => _1357.extras, 'optionalAccess', _1358 => _1358.buildProductReleaseCardProps]), () => ( defaultBuildProductReleaseCardProps));
|
|
52899
52903
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52900
52904
|
ProductReleaseChatCard,
|
|
52901
52905
|
{
|
|
@@ -52921,7 +52925,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
52921
52925
|
chatRef,
|
|
52922
52926
|
isNewTab: opts.isNewTab,
|
|
52923
52927
|
discuss: opts.discuss,
|
|
52924
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
52928
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1359 => _1359.extras, 'optionalAccess', _1360 => _1360.buildOgPlaceholderUrl, 'optionalCall', _1361 => _1361(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1362 => _1362.title]), () => ( "")))]), () => ( null))
|
|
52925
52929
|
}
|
|
52926
52930
|
)
|
|
52927
52931
|
},
|
|
@@ -52939,7 +52943,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
52939
52943
|
chatRef,
|
|
52940
52944
|
isNewTab: opts.isNewTab,
|
|
52941
52945
|
discuss: opts.discuss,
|
|
52942
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
52946
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _1363 => _1363.extras, 'optionalAccess', _1364 => _1364.buildOgPlaceholderUrl, 'optionalCall', _1365 => _1365(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _1366 => _1366.title]), () => ( "")))]), () => ( null))
|
|
52943
52947
|
}
|
|
52944
52948
|
)
|
|
52945
52949
|
},
|
|
@@ -52950,7 +52954,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
52950
52954
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, {}),
|
|
52951
52955
|
// No public viewer — synthesize the hub-internal admin URL post-fetch
|
|
52952
52956
|
// so the wrapper + isNewTab computation see the actual destination.
|
|
52953
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
52957
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _1367 => _1367.id]) ? `/admin/campaigns/${encodeURIComponent(item.id)}` : null,
|
|
52954
52958
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52955
52959
|
CampaignChatCard,
|
|
52956
52960
|
{
|
|
@@ -52977,13 +52981,13 @@ function ChatCardNavWrap({
|
|
|
52977
52981
|
if (!href) return;
|
|
52978
52982
|
const targetEl = e.target;
|
|
52979
52983
|
const host = e.currentTarget;
|
|
52980
|
-
if (!_optionalChain([host, 'optionalAccess',
|
|
52981
|
-
if (_optionalChain([targetEl, 'optionalAccess',
|
|
52982
|
-
if (!_optionalChain([targetEl, 'optionalAccess',
|
|
52984
|
+
if (!_optionalChain([host, 'optionalAccess', _1368 => _1368.contains, 'call', _1369 => _1369(targetEl)])) return;
|
|
52985
|
+
if (_optionalChain([targetEl, 'optionalAccess', _1370 => _1370.closest, 'optionalCall', _1371 => _1371("button")])) return;
|
|
52986
|
+
if (!_optionalChain([targetEl, 'optionalAccess', _1372 => _1372.closest, 'optionalCall', _1373 => _1373("a")])) return;
|
|
52983
52987
|
const handled = handleChatNavClick(e, runtime, { href, path, targetPlatform }, router.push);
|
|
52984
52988
|
if (!handled) return;
|
|
52985
52989
|
e.stopPropagation();
|
|
52986
|
-
if (!isNewTab && _optionalChain([panel, 'optionalAccess',
|
|
52990
|
+
if (!isNewTab && _optionalChain([panel, 'optionalAccess', _1374 => _1374.closeChat])) panel.closeChat();
|
|
52987
52991
|
};
|
|
52988
52992
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
|
|
52989
52993
|
}
|
|
@@ -53005,7 +53009,7 @@ function ChatCardLoader({
|
|
|
53005
53009
|
title: chatRef.title,
|
|
53006
53010
|
externalUrl: chatRef.url,
|
|
53007
53011
|
targetPlatform: chatRef.targetPlatform,
|
|
53008
|
-
path: typeof _optionalChain([chatRef, 'access',
|
|
53012
|
+
path: typeof _optionalChain([chatRef, 'access', _1375 => _1375.metadata, 'optionalAccess', _1376 => _1376.path]) === "string" ? chatRef.metadata.path : null
|
|
53009
53013
|
},
|
|
53010
53014
|
sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform })
|
|
53011
53015
|
);
|
|
@@ -53019,11 +53023,11 @@ function ChatCardLoader({
|
|
|
53019
53023
|
const entry = CHAT_CARD_REGISTRY[resolvedChatRef.type];
|
|
53020
53024
|
const fetchEntry = entry && entry.contentRefType ? entry : null;
|
|
53021
53025
|
const { item, isLoading, isError, isFetched } = useChatCardItem(
|
|
53022
|
-
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess',
|
|
53026
|
+
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _1377 => _1377.contentRefType]), () => ( "")),
|
|
53023
53027
|
fetchEntry ? resolvedChatRef.id : ""
|
|
53024
53028
|
);
|
|
53025
53029
|
if (!entry) return null;
|
|
53026
|
-
const composedHref = _optionalChain([fetchEntry, 'optionalAccess',
|
|
53030
|
+
const composedHref = _optionalChain([fetchEntry, 'optionalAccess', _1378 => _1378.contentRefType]) && !resolvedChatRef.url && item && !fetchEntry.fallbackHref && !fetchEntry.noComposedHref ? resolveFetchedCardHref({
|
|
53027
53031
|
contentRefType: fetchEntry.contentRefType,
|
|
53028
53032
|
id: resolvedChatRef.id,
|
|
53029
53033
|
item,
|
|
@@ -53062,7 +53066,7 @@ function ChatCardLoader({
|
|
|
53062
53066
|
isNewTab,
|
|
53063
53067
|
discuss
|
|
53064
53068
|
};
|
|
53065
|
-
const path = typeof _optionalChain([finalChatRef, 'access',
|
|
53069
|
+
const path = typeof _optionalChain([finalChatRef, 'access', _1379 => _1379.metadata, 'optionalAccess', _1380 => _1380.path]) === "string" ? finalChatRef.metadata.path : null;
|
|
53066
53070
|
const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53067
53071
|
ChatCardNavWrap,
|
|
53068
53072
|
{
|
|
@@ -53086,7 +53090,7 @@ function ChatCardLoader({
|
|
|
53086
53090
|
if (!fetchEntry) {
|
|
53087
53091
|
return finish(entry.render(void 0, finalChatRef, renderOpts));
|
|
53088
53092
|
}
|
|
53089
|
-
if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access',
|
|
53093
|
+
if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _1381 => _1381.skeleton, 'optionalCall', _1382 => _1382()]), () => ( null)) });
|
|
53090
53094
|
if (!item) {
|
|
53091
53095
|
if (isError) {
|
|
53092
53096
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Failed to load" });
|
|
@@ -53349,7 +53353,7 @@ function useChunkCatchup({
|
|
|
53349
53353
|
console.error("Error during chunk catchup:", error);
|
|
53350
53354
|
} finally {
|
|
53351
53355
|
if (dialogId2 !== dialogIdRef.current) {
|
|
53352
|
-
if (_optionalChain([pendingCatchupRef, 'access',
|
|
53356
|
+
if (_optionalChain([pendingCatchupRef, 'access', _1383 => _1383.current, 'optionalAccess', _1384 => _1384.dialogId]) === dialogId2) {
|
|
53353
53357
|
pendingCatchupRef.current = null;
|
|
53354
53358
|
}
|
|
53355
53359
|
} else {
|
|
@@ -53362,7 +53366,7 @@ function useChunkCatchup({
|
|
|
53362
53366
|
lastFetchParams.current = null;
|
|
53363
53367
|
bufferUntilInitialCatchupComplete.current = true;
|
|
53364
53368
|
try {
|
|
53365
|
-
await _optionalChain([catchUpChunksRef, 'access',
|
|
53369
|
+
await _optionalChain([catchUpChunksRef, 'access', _1385 => _1385.current, 'optionalCall', _1386 => _1386(pending.fromSequenceId)]);
|
|
53366
53370
|
} catch (rerunError) {
|
|
53367
53371
|
console.error("Queued catch-up re-run failed:", rerunError);
|
|
53368
53372
|
}
|
|
@@ -53426,7 +53430,7 @@ function useChunkCatchup({
|
|
|
53426
53430
|
|
|
53427
53431
|
var EMPTY_FRAME = { messages: [], phase: "idle", typing: false, delayMs: 0 };
|
|
53428
53432
|
function prefersReducedMotion() {
|
|
53429
|
-
return typeof window !== "undefined" && _optionalChain([window, 'access',
|
|
53433
|
+
return typeof window !== "undefined" && _optionalChain([window, 'access', _1387 => _1387.matchMedia, 'optionalCall', _1388 => _1388("(prefers-reduced-motion: reduce)"), 'access', _1389 => _1389.matches]) === true;
|
|
53430
53434
|
}
|
|
53431
53435
|
function useScriptedStream(frames, resetKey, enabled = true) {
|
|
53432
53436
|
const [index, setIndex] = _react.useState.call(void 0, 0);
|
|
@@ -53438,7 +53442,7 @@ function useScriptedStream(frames, resetKey, enabled = true) {
|
|
|
53438
53442
|
}
|
|
53439
53443
|
_react.useEffect.call(void 0, () => {
|
|
53440
53444
|
setReducedMotion(prefersReducedMotion());
|
|
53441
|
-
const mq = _optionalChain([window, 'access',
|
|
53445
|
+
const mq = _optionalChain([window, 'access', _1390 => _1390.matchMedia, 'optionalCall', _1391 => _1391("(prefers-reduced-motion: reduce)")]);
|
|
53442
53446
|
if (!mq) return;
|
|
53443
53447
|
const onChange = () => setReducedMotion(mq.matches);
|
|
53444
53448
|
mq.addEventListener("change", onChange);
|
|
@@ -53574,7 +53578,7 @@ function useJetStreamDialogSubscription({
|
|
|
53574
53578
|
const lifecycle = _chunkKQKU4VXBcjs.startConnectionLifecycle.call(void 0, {
|
|
53575
53579
|
conn: sharedConn,
|
|
53576
53580
|
wsUrl,
|
|
53577
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
53581
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _1392 => _1392.current, 'optionalCall', _1393 => _1393()]),
|
|
53578
53582
|
backoff: reconnectionBackoffRef.current,
|
|
53579
53583
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
53580
53584
|
// JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
|
|
@@ -53589,7 +53593,7 @@ function useJetStreamDialogSubscription({
|
|
|
53589
53593
|
setReconnectionCount((c) => c + 1);
|
|
53590
53594
|
}
|
|
53591
53595
|
hadConnectionBeforeRef.current = true;
|
|
53592
|
-
_optionalChain([onConnectRef, 'access',
|
|
53596
|
+
_optionalChain([onConnectRef, 'access', _1394 => _1394.current, 'optionalCall', _1395 => _1395()]);
|
|
53593
53597
|
}
|
|
53594
53598
|
if (status === "error") {
|
|
53595
53599
|
console.warn("[JetStream] NATS protocol error:", evt.data);
|
|
@@ -53599,7 +53603,7 @@ function useJetStreamDialogSubscription({
|
|
|
53599
53603
|
setIsConnected(false);
|
|
53600
53604
|
setIsSubscribed(false);
|
|
53601
53605
|
tearDownSubscription();
|
|
53602
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
53606
|
+
_optionalChain([onDisconnectRef, 'access', _1396 => _1396.current, 'optionalCall', _1397 => _1397()]);
|
|
53603
53607
|
}
|
|
53604
53608
|
}
|
|
53605
53609
|
});
|
|
@@ -53728,7 +53732,7 @@ function useJetStreamDialogSubscription({
|
|
|
53728
53732
|
}
|
|
53729
53733
|
subscriptionRef.current = handle;
|
|
53730
53734
|
setIsSubscribed(true);
|
|
53731
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
53735
|
+
_optionalChain([onSubscribedRef, 'access', _1398 => _1398.current, 'optionalCall', _1399 => _1399()]);
|
|
53732
53736
|
} catch (e90) {
|
|
53733
53737
|
if (!cancelled) {
|
|
53734
53738
|
setIsSubscribed(false);
|
|
@@ -53842,20 +53846,20 @@ function useNatsDialogSubscription({
|
|
|
53842
53846
|
const tearDownSubscriptions = () => {
|
|
53843
53847
|
subscriptionRefs.current.forEach((sub) => {
|
|
53844
53848
|
try {
|
|
53845
|
-
_optionalChain([sub, 'optionalAccess',
|
|
53849
|
+
_optionalChain([sub, 'optionalAccess', _1400 => _1400.unsubscribe, 'call', _1401 => _1401()]);
|
|
53846
53850
|
} catch (e92) {
|
|
53847
53851
|
}
|
|
53848
53852
|
});
|
|
53849
53853
|
subscriptionRefs.current.clear();
|
|
53850
53854
|
lastSubscribedDialogIdRef.current = null;
|
|
53851
|
-
_optionalChain([abortControllerRef, 'access',
|
|
53855
|
+
_optionalChain([abortControllerRef, 'access', _1402 => _1402.current, 'optionalAccess', _1403 => _1403.abort, 'call', _1404 => _1404()]);
|
|
53852
53856
|
abortControllerRef.current = null;
|
|
53853
53857
|
};
|
|
53854
53858
|
const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
|
|
53855
53859
|
const lifecycle = _chunkKQKU4VXBcjs.startConnectionLifecycle.call(void 0, {
|
|
53856
53860
|
conn: sharedConn,
|
|
53857
53861
|
wsUrl,
|
|
53858
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
53862
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _1405 => _1405.current, 'optionalCall', _1406 => _1406()]),
|
|
53859
53863
|
backoff: reconnectionBackoffRef.current,
|
|
53860
53864
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
53861
53865
|
shouldRetryOn: isDisconnectStatus,
|
|
@@ -53866,7 +53870,7 @@ function useNatsDialogSubscription({
|
|
|
53866
53870
|
setReconnectionCount((c) => c + 1);
|
|
53867
53871
|
}
|
|
53868
53872
|
hadConnectionBeforeRef.current = true;
|
|
53869
|
-
_optionalChain([onConnectRef, 'access',
|
|
53873
|
+
_optionalChain([onConnectRef, 'access', _1407 => _1407.current, 'optionalCall', _1408 => _1408()]);
|
|
53870
53874
|
}
|
|
53871
53875
|
if (status === "error") {
|
|
53872
53876
|
console.warn("[NATS] protocol error:", evt.data);
|
|
@@ -53876,7 +53880,7 @@ function useNatsDialogSubscription({
|
|
|
53876
53880
|
setIsConnected(false);
|
|
53877
53881
|
setIsSubscribed(false);
|
|
53878
53882
|
tearDownSubscriptions();
|
|
53879
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
53883
|
+
_optionalChain([onDisconnectRef, 'access', _1409 => _1409.current, 'optionalCall', _1410 => _1410()]);
|
|
53880
53884
|
}
|
|
53881
53885
|
}
|
|
53882
53886
|
});
|
|
@@ -53909,13 +53913,13 @@ function useNatsDialogSubscription({
|
|
|
53909
53913
|
setIsSubscribed(false);
|
|
53910
53914
|
subscriptionRefs.current.forEach((sub) => {
|
|
53911
53915
|
try {
|
|
53912
|
-
_optionalChain([sub, 'optionalAccess',
|
|
53916
|
+
_optionalChain([sub, 'optionalAccess', _1411 => _1411.unsubscribe, 'call', _1412 => _1412()]);
|
|
53913
53917
|
} catch (e93) {
|
|
53914
53918
|
}
|
|
53915
53919
|
});
|
|
53916
53920
|
subscriptionRefs.current.clear();
|
|
53917
53921
|
lastSubscribedDialogIdRef.current = null;
|
|
53918
|
-
_optionalChain([abortControllerRef, 'access',
|
|
53922
|
+
_optionalChain([abortControllerRef, 'access', _1413 => _1413.current, 'optionalAccess', _1414 => _1414.abort, 'call', _1415 => _1415()]);
|
|
53919
53923
|
abortControllerRef.current = null;
|
|
53920
53924
|
}
|
|
53921
53925
|
return;
|
|
@@ -53927,12 +53931,12 @@ function useNatsDialogSubscription({
|
|
|
53927
53931
|
if (subscriptionRefs.current.size > 0) {
|
|
53928
53932
|
subscriptionRefs.current.forEach((sub) => {
|
|
53929
53933
|
try {
|
|
53930
|
-
_optionalChain([sub, 'optionalAccess',
|
|
53934
|
+
_optionalChain([sub, 'optionalAccess', _1416 => _1416.unsubscribe, 'call', _1417 => _1417()]);
|
|
53931
53935
|
} catch (e94) {
|
|
53932
53936
|
}
|
|
53933
53937
|
});
|
|
53934
53938
|
subscriptionRefs.current.clear();
|
|
53935
|
-
_optionalChain([abortControllerRef, 'access',
|
|
53939
|
+
_optionalChain([abortControllerRef, 'access', _1418 => _1418.current, 'optionalAccess', _1419 => _1419.abort, 'call', _1420 => _1420()]);
|
|
53936
53940
|
}
|
|
53937
53941
|
abortControllerRef.current = new AbortController();
|
|
53938
53942
|
const abort = abortControllerRef.current;
|
|
@@ -53964,7 +53968,7 @@ function useNatsDialogSubscription({
|
|
|
53964
53968
|
});
|
|
53965
53969
|
lastSubscribedDialogIdRef.current = dialogId;
|
|
53966
53970
|
setIsSubscribed(true);
|
|
53967
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
53971
|
+
_optionalChain([onSubscribedRef, 'access', _1421 => _1421.current, 'optionalCall', _1422 => _1422()]);
|
|
53968
53972
|
};
|
|
53969
53973
|
if (isConnectedRef.current) {
|
|
53970
53974
|
createSubscriptions();
|
|
@@ -53974,7 +53978,7 @@ function useNatsDialogSubscription({
|
|
|
53974
53978
|
abort.abort();
|
|
53975
53979
|
subscriptionRefs.current.forEach((sub) => {
|
|
53976
53980
|
try {
|
|
53977
|
-
_optionalChain([sub, 'optionalAccess',
|
|
53981
|
+
_optionalChain([sub, 'optionalAccess', _1423 => _1423.unsubscribe, 'call', _1424 => _1424()]);
|
|
53978
53982
|
} catch (e96) {
|
|
53979
53983
|
}
|
|
53980
53984
|
});
|
|
@@ -54015,7 +54019,7 @@ function useNatsDialogSubscription({
|
|
|
54015
54019
|
});
|
|
54016
54020
|
lastSubscribedDialogIdRef.current = dialogId2;
|
|
54017
54021
|
setIsSubscribed(true);
|
|
54018
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
54022
|
+
_optionalChain([onSubscribedRef, 'access', _1425 => _1425.current, 'optionalCall', _1426 => _1426()]);
|
|
54019
54023
|
} else if (subscriptionRefs.current.size > 0) {
|
|
54020
54024
|
setIsSubscribed(true);
|
|
54021
54025
|
}
|
|
@@ -54023,10 +54027,10 @@ function useNatsDialogSubscription({
|
|
|
54023
54027
|
return { isConnected, isSubscribed, reconnectionCount };
|
|
54024
54028
|
}
|
|
54025
54029
|
function buildNatsWsUrl(apiBaseUrl, options) {
|
|
54026
|
-
const path = _optionalChain([options, 'optionalAccess',
|
|
54030
|
+
const path = _optionalChain([options, 'optionalAccess', _1427 => _1427.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
|
|
54027
54031
|
const u = new URL(path, apiBaseUrl);
|
|
54028
54032
|
u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
|
|
54029
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
54033
|
+
if (_optionalChain([options, 'optionalAccess', _1428 => _1428.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _1429 => _1429.token])) {
|
|
54030
54034
|
u.searchParams.set("authorization", options.token);
|
|
54031
54035
|
}
|
|
54032
54036
|
return u.toString();
|
|
@@ -54044,7 +54048,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
54044
54048
|
const data = await res.json();
|
|
54045
54049
|
return _nullishCoalesce(data.commands, () => ( []));
|
|
54046
54050
|
} catch (err) {
|
|
54047
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
54051
|
+
if (_optionalChain([err, 'optionalAccess', _1430 => _1430.name]) === "AbortError") throw err;
|
|
54048
54052
|
console.warn("[chat] slash-commands fetch failed, showing none:", err);
|
|
54049
54053
|
return [];
|
|
54050
54054
|
}
|
|
@@ -54065,7 +54069,7 @@ function useSlashCommands(prefix, commandsUrl) {
|
|
|
54065
54069
|
const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
|
|
54066
54070
|
if (!cancelled) setCommands(next);
|
|
54067
54071
|
} catch (err) {
|
|
54068
|
-
if (!cancelled && _optionalChain([err, 'optionalAccess',
|
|
54072
|
+
if (!cancelled && _optionalChain([err, 'optionalAccess', _1431 => _1431.name]) !== "AbortError") {
|
|
54069
54073
|
console.warn("[use-slash-commands] fetch failed:", err);
|
|
54070
54074
|
}
|
|
54071
54075
|
} finally {
|
|
@@ -54084,7 +54088,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
|
|
|
54084
54088
|
const query = _reactquery.useQuery.call(void 0, {
|
|
54085
54089
|
queryKey: ["chat-slash-commands", commandsUrl],
|
|
54086
54090
|
queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
|
|
54087
|
-
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
54091
|
+
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1432 => _1432.enabled]), () => ( true)),
|
|
54088
54092
|
staleTime: Infinity,
|
|
54089
54093
|
gcTime: Infinity,
|
|
54090
54094
|
// The commands registry is non-critical chrome — a failure degrades to an
|
|
@@ -54123,21 +54127,21 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
|
|
|
54123
54127
|
}
|
|
54124
54128
|
const data = await res.json();
|
|
54125
54129
|
return {
|
|
54126
|
-
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
54127
|
-
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
54128
|
-
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
54129
|
-
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
54130
|
-
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
54131
|
-
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
54130
|
+
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1433 => _1433.name]), () => ( null)),
|
|
54131
|
+
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1434 => _1434.icon]), () => ( null)),
|
|
54132
|
+
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1435 => _1435.greeting]), () => ( null)),
|
|
54133
|
+
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1436 => _1436.enabledRagTableIds]), () => ( [])),
|
|
54134
|
+
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1437 => _1437.quickActions]), () => ( [])),
|
|
54135
|
+
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1438 => _1438.suggestedQueries]), () => ( []))
|
|
54132
54136
|
};
|
|
54133
54137
|
} catch (err) {
|
|
54134
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
54138
|
+
if (_optionalChain([err, 'optionalAccess', _1439 => _1439.name]) === "AbortError") throw err;
|
|
54135
54139
|
console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
|
|
54136
54140
|
return EMPTY_STATE_FALLBACK;
|
|
54137
54141
|
}
|
|
54138
54142
|
}
|
|
54139
54143
|
function useEmptyStateConfig(emptyStateUrl, options) {
|
|
54140
|
-
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
54144
|
+
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1440 => _1440.enabled]), () => ( true))) && !!emptyStateUrl;
|
|
54141
54145
|
const query = _reactquery.useQuery.call(void 0, {
|
|
54142
54146
|
queryKey: ["chat-empty-state", emptyStateUrl],
|
|
54143
54147
|
queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
|
|
@@ -54166,7 +54170,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
|
|
|
54166
54170
|
var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
|
|
54167
54171
|
function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
54168
54172
|
return new Promise((resolve, reject) => {
|
|
54169
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
54173
|
+
if (_optionalChain([signal, 'optionalAccess', _1441 => _1441.aborted])) {
|
|
54170
54174
|
reject(new Error("Upload cancelled"));
|
|
54171
54175
|
return;
|
|
54172
54176
|
}
|
|
@@ -54180,7 +54184,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
54180
54184
|
xhr.removeEventListener("error", handleError);
|
|
54181
54185
|
xhr.removeEventListener("abort", handleAbort);
|
|
54182
54186
|
xhr.removeEventListener("timeout", handleTimeout);
|
|
54183
|
-
_optionalChain([signal, 'optionalAccess',
|
|
54187
|
+
_optionalChain([signal, 'optionalAccess', _1442 => _1442.removeEventListener, 'call', _1443 => _1443("abort", handleSignalAbort)]);
|
|
54184
54188
|
if (xhr.readyState !== XMLHttpRequest.DONE) xhr.abort();
|
|
54185
54189
|
};
|
|
54186
54190
|
const handleProgress = (event) => {
|
|
@@ -54216,7 +54220,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
54216
54220
|
const handleSignalAbort = () => {
|
|
54217
54221
|
xhr.abort();
|
|
54218
54222
|
};
|
|
54219
|
-
_optionalChain([signal, 'optionalAccess',
|
|
54223
|
+
_optionalChain([signal, 'optionalAccess', _1444 => _1444.addEventListener, 'call', _1445 => _1445("abort", handleSignalAbort, { once: true })]);
|
|
54220
54224
|
xhr.upload.addEventListener("progress", handleProgress);
|
|
54221
54225
|
xhr.addEventListener("load", handleLoad);
|
|
54222
54226
|
xhr.addEventListener("error", handleError);
|
|
@@ -54260,12 +54264,12 @@ function useChatAttachments() {
|
|
|
54260
54264
|
try {
|
|
54261
54265
|
sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
|
|
54262
54266
|
} catch (err) {
|
|
54263
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
54267
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1446 => _1446.signal, 'access', _1447 => _1447.aborted])) return;
|
|
54264
54268
|
throw new Error(
|
|
54265
54269
|
`Could not read file content: ${err instanceof Error ? err.message : String(err)}`
|
|
54266
54270
|
);
|
|
54267
54271
|
}
|
|
54268
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
54272
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1448 => _1448.signal, 'access', _1449 => _1449.aborted])) return;
|
|
54269
54273
|
if (!sniffed) {
|
|
54270
54274
|
throw new Error("Unrecognized file format");
|
|
54271
54275
|
}
|
|
@@ -54279,7 +54283,7 @@ function useChatAttachments() {
|
|
|
54279
54283
|
const urlResp = await _chunk5RJUHUCIcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
|
|
54280
54284
|
method: "POST",
|
|
54281
54285
|
headers: { "Content-Type": "application/json" },
|
|
54282
|
-
signal: _optionalChain([ctrl, 'optionalAccess',
|
|
54286
|
+
signal: _optionalChain([ctrl, 'optionalAccess', _1450 => _1450.signal]),
|
|
54283
54287
|
body: JSON.stringify({
|
|
54284
54288
|
fileName: att.file.name,
|
|
54285
54289
|
// Pass the SNIFFED MIME (not `file.type`, which can be a
|
|
@@ -54305,9 +54309,9 @@ function useChatAttachments() {
|
|
|
54305
54309
|
(pct) => {
|
|
54306
54310
|
updateOne(att.id, { progress: pct });
|
|
54307
54311
|
},
|
|
54308
|
-
_optionalChain([ctrl, 'optionalAccess',
|
|
54312
|
+
_optionalChain([ctrl, 'optionalAccess', _1451 => _1451.signal])
|
|
54309
54313
|
);
|
|
54310
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
54314
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1452 => _1452.signal, 'access', _1453 => _1453.aborted])) return;
|
|
54311
54315
|
updateOne(att.id, {
|
|
54312
54316
|
status: "ready",
|
|
54313
54317
|
progress: 100,
|
|
@@ -54315,7 +54319,7 @@ function useChatAttachments() {
|
|
|
54315
54319
|
viewToken: mintData.viewToken
|
|
54316
54320
|
});
|
|
54317
54321
|
} catch (err) {
|
|
54318
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
54322
|
+
if (_optionalChain([ctrl, 'optionalAccess', _1454 => _1454.signal, 'access', _1455 => _1455.aborted])) return;
|
|
54319
54323
|
const message2 = err instanceof Error ? err.message : String(err);
|
|
54320
54324
|
updateOne(att.id, { status: "error", progress: 0, errorMessage: message2 });
|
|
54321
54325
|
} finally {
|
|
@@ -54502,7 +54506,7 @@ function useSSE({ useMock = true, debugMode = false, streamFn } = {}) {
|
|
|
54502
54506
|
yield chunk;
|
|
54503
54507
|
}
|
|
54504
54508
|
} catch (err) {
|
|
54505
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
54509
|
+
if (_optionalChain([err, 'optionalAccess', _1456 => _1456.name]) === "AbortError" || ctrl.signal.aborted) {
|
|
54506
54510
|
return;
|
|
54507
54511
|
}
|
|
54508
54512
|
const errorMessage = err instanceof Error ? err.message : "An error occurred";
|
|
@@ -54553,7 +54557,7 @@ function useChat({
|
|
|
54553
54557
|
const onMessagesChangeRef = _react.useRef.call(void 0, onMessagesChange);
|
|
54554
54558
|
onMessagesChangeRef.current = onMessagesChange;
|
|
54555
54559
|
_react.useEffect.call(void 0, () => {
|
|
54556
|
-
_optionalChain([onMessagesChangeRef, 'access',
|
|
54560
|
+
_optionalChain([onMessagesChangeRef, 'access', _1457 => _1457.current, 'optionalCall', _1458 => _1458(messages)]);
|
|
54557
54561
|
}, [messages]);
|
|
54558
54562
|
const {
|
|
54559
54563
|
streamMessage,
|
|
@@ -54590,7 +54594,7 @@ function useChat({
|
|
|
54590
54594
|
name: "You",
|
|
54591
54595
|
content: text,
|
|
54592
54596
|
timestamp: /* @__PURE__ */ new Date(),
|
|
54593
|
-
..._optionalChain([options, 'optionalAccess',
|
|
54597
|
+
..._optionalChain([options, 'optionalAccess', _1459 => _1459.hidden]) ? { hidden: true } : {}
|
|
54594
54598
|
};
|
|
54595
54599
|
addMessage(userMessage);
|
|
54596
54600
|
setIsTyping(true);
|
|
@@ -54652,7 +54656,7 @@ function useChat({
|
|
|
54652
54656
|
currentTextSegment = "";
|
|
54653
54657
|
}
|
|
54654
54658
|
const seg = segment;
|
|
54655
|
-
const proposalId = _optionalChain([seg, 'access',
|
|
54659
|
+
const proposalId = _optionalChain([seg, 'access', _1460 => _1460.data, 'optionalAccess', _1461 => _1461.requestId]);
|
|
54656
54660
|
const updateApprovalMessage = (transform) => {
|
|
54657
54661
|
setMessages((prev) => {
|
|
54658
54662
|
for (let i = prev.length - 1; i >= 0; i--) {
|
|
@@ -54661,7 +54665,7 @@ function useChat({
|
|
|
54661
54665
|
if (!Array.isArray(m.content)) continue;
|
|
54662
54666
|
const segments = m.content;
|
|
54663
54667
|
const hasMatch = segments.some(
|
|
54664
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
54668
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1462 => _1462.data, 'optionalAccess', _1463 => _1463.requestId]) === proposalId
|
|
54665
54669
|
);
|
|
54666
54670
|
if (!hasMatch) continue;
|
|
54667
54671
|
const next = [...prev];
|
|
@@ -54703,11 +54707,11 @@ function useChat({
|
|
|
54703
54707
|
if (!Array.isArray(m.content)) continue;
|
|
54704
54708
|
const segments = m.content;
|
|
54705
54709
|
const hasMatch = segments.some(
|
|
54706
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
54710
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1464 => _1464.data, 'optionalAccess', _1465 => _1465.requestId]) === decision.proposalId
|
|
54707
54711
|
);
|
|
54708
54712
|
if (!hasMatch) continue;
|
|
54709
54713
|
const flipped = segments.map(
|
|
54710
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
54714
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _1466 => _1466.data, 'optionalAccess', _1467 => _1467.requestId]) === decision.proposalId ? { ...s, status: decision.action } : s
|
|
54711
54715
|
);
|
|
54712
54716
|
const next = [...prev];
|
|
54713
54717
|
next[i] = { ...m, content: flipped };
|
|
@@ -54835,7 +54839,7 @@ function buildConfirmToolBody(request) {
|
|
|
54835
54839
|
async function readServerErrorMessage(response) {
|
|
54836
54840
|
try {
|
|
54837
54841
|
const body = await response.json();
|
|
54838
|
-
if (typeof _optionalChain([body, 'optionalAccess',
|
|
54842
|
+
if (typeof _optionalChain([body, 'optionalAccess', _1468 => _1468.error]) === "string" && body.error.length > 0) return body.error;
|
|
54839
54843
|
} catch (e98) {
|
|
54840
54844
|
}
|
|
54841
54845
|
return null;
|
|
@@ -55056,7 +55060,7 @@ var STORAGE_KEY2 = "conversation";
|
|
|
55056
55060
|
var namespaceFor = (source) => {
|
|
55057
55061
|
const base = `mingo-chat-${source}`;
|
|
55058
55062
|
const auth = _chunk5RJUHUCIcjs.getEmbedProxyAuth.call(void 0, );
|
|
55059
|
-
return _optionalChain([auth, 'optionalAccess',
|
|
55063
|
+
return _optionalChain([auth, 'optionalAccess', _1469 => _1469.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
|
|
55060
55064
|
};
|
|
55061
55065
|
function createChatConversationStorage(source) {
|
|
55062
55066
|
return _chunk5RJUHUCIcjs.createLocalStorageAdapter.call(void 0, {
|
|
@@ -55118,8 +55122,8 @@ function useChatHistoryHydration({
|
|
|
55118
55122
|
);
|
|
55119
55123
|
if (!res.ok) return;
|
|
55120
55124
|
const payload = await res.json().catch(() => null);
|
|
55121
|
-
const body = _nullishCoalesce(_optionalChain([payload, 'optionalAccess',
|
|
55122
|
-
const rows = Array.isArray(_optionalChain([body, 'optionalAccess',
|
|
55125
|
+
const body = _nullishCoalesce(_optionalChain([payload, 'optionalAccess', _1470 => _1470.data]), () => ( payload));
|
|
55126
|
+
const rows = Array.isArray(_optionalChain([body, 'optionalAccess', _1471 => _1471.messages])) ? body.messages : [];
|
|
55123
55127
|
if (cancelled || rows.length === 0) return;
|
|
55124
55128
|
const hydrated = [];
|
|
55125
55129
|
const sourcesSeed = /* @__PURE__ */ new Map();
|
|
@@ -55226,11 +55230,11 @@ function appendToTrailingAssistant(prev, segments) {
|
|
|
55226
55230
|
for (const seg of segments) {
|
|
55227
55231
|
const tail = merged[merged.length - 1];
|
|
55228
55232
|
const key = upsertKey(seg);
|
|
55229
|
-
if (seg.type === "text" && _optionalChain([tail, 'optionalAccess',
|
|
55233
|
+
if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _1472 => _1472.type]) === "text") {
|
|
55230
55234
|
merged[merged.length - 1] = { type: "text", text: tail.text + seg.text };
|
|
55231
|
-
} else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess',
|
|
55235
|
+
} else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _1473 => _1473.type]) === "thinking") {
|
|
55232
55236
|
merged[merged.length - 1] = { type: "thinking", text: tail.text + seg.text };
|
|
55233
|
-
} else if (seg.type === "guide" && _optionalChain([tail, 'optionalAccess',
|
|
55237
|
+
} else if (seg.type === "guide" && _optionalChain([tail, 'optionalAccess', _1474 => _1474.type]) === "guide") {
|
|
55234
55238
|
merged[merged.length - 1] = { type: "guide", text: tail.text + seg.text };
|
|
55235
55239
|
} else if (key) {
|
|
55236
55240
|
const idx = merged.findIndex((m) => upsertKey(m) === key);
|
|
@@ -55270,7 +55274,7 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
|
|
|
55270
55274
|
}
|
|
55271
55275
|
if (s.type !== "approval_batch") return s;
|
|
55272
55276
|
const isAnchor = s.data.approvalRequestId === requestId;
|
|
55273
|
-
const hasRow = _optionalChain([s, 'access',
|
|
55277
|
+
const hasRow = _optionalChain([s, 'access', _1475 => _1475.data, 'access', _1476 => _1476.toolCalls, 'optionalAccess', _1477 => _1477.some, 'call', _1478 => _1478((c) => c.toolExecutionRequestId === requestId)]);
|
|
55274
55278
|
if (!isAnchor && !hasRow) return s;
|
|
55275
55279
|
const nextResolvedBy = _nullishCoalesce(resolvedByName, () => ( s.resolvedByName));
|
|
55276
55280
|
const nextExecutions = hasRow ? {
|
|
@@ -55292,8 +55296,8 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
|
|
|
55292
55296
|
};
|
|
55293
55297
|
}
|
|
55294
55298
|
function nextBatchExecution(prevExec, toolData) {
|
|
55295
|
-
if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess',
|
|
55296
|
-
return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess',
|
|
55299
|
+
if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _1479 => _1479.status]) === "done") return null;
|
|
55300
|
+
return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _1480 => _1480.result]), success: _optionalChain([prevExec, 'optionalAccess', _1481 => _1481.success]) };
|
|
55297
55301
|
}
|
|
55298
55302
|
function withBatchExecution(seg, execId, state) {
|
|
55299
55303
|
return {
|
|
@@ -55310,11 +55314,11 @@ function projectBatchStatusToMessages(prev, anchorId, status) {
|
|
|
55310
55314
|
}
|
|
55311
55315
|
function projectBatchRowFailureToMessages(prev, rowRequestId) {
|
|
55312
55316
|
return mapSegments(prev, (s) => {
|
|
55313
|
-
if (s.type !== "approval_batch" || !_optionalChain([s, 'access',
|
|
55317
|
+
if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _1482 => _1482.data, 'access', _1483 => _1483.toolCalls, 'optionalAccess', _1484 => _1484.some, 'call', _1485 => _1485((c) => c.toolExecutionRequestId === rowRequestId)])) {
|
|
55314
55318
|
return s;
|
|
55315
55319
|
}
|
|
55316
|
-
const existing = _optionalChain([s, 'access',
|
|
55317
|
-
if (_optionalChain([existing, 'optionalAccess',
|
|
55320
|
+
const existing = _optionalChain([s, 'access', _1486 => _1486.data, 'access', _1487 => _1487.executions, 'optionalAccess', _1488 => _1488[rowRequestId]]);
|
|
55321
|
+
if (_optionalChain([existing, 'optionalAccess', _1489 => _1489.status]) === "done") return s;
|
|
55318
55322
|
return withBatchExecution(s, rowRequestId, { status: "done", success: false });
|
|
55319
55323
|
});
|
|
55320
55324
|
}
|
|
@@ -55353,7 +55357,7 @@ function mergeToolExecutionIfPresent(prev, segment) {
|
|
|
55353
55357
|
for (let j = message2.segments.length - 1; j >= 0; j--) {
|
|
55354
55358
|
const seg = message2.segments[j];
|
|
55355
55359
|
if (execId && seg.type === "approval_batch" && seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId)) {
|
|
55356
|
-
const prevExec = _optionalChain([seg, 'access',
|
|
55360
|
+
const prevExec = _optionalChain([seg, 'access', _1490 => _1490.data, 'access', _1491 => _1491.executions, 'optionalAccess', _1492 => _1492[execId]]);
|
|
55357
55361
|
const nextExec = nextBatchExecution(prevExec, toolData);
|
|
55358
55362
|
if (nextExec === null) return prev;
|
|
55359
55363
|
if (sameExecutionState(prevExec, nextExec)) return prev;
|
|
@@ -55542,9 +55546,9 @@ var MessageSegmentAccumulator = class {
|
|
|
55542
55546
|
type: "tool_execution",
|
|
55543
55547
|
data: {
|
|
55544
55548
|
...toolData,
|
|
55545
|
-
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
55546
|
-
toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
55547
|
-
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess',
|
|
55549
|
+
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _1493 => _1493.data, 'access', _1494 => _1494.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _1495 => _1495.toolTitle]))),
|
|
55550
|
+
toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _1496 => _1496.data, 'access', _1497 => _1497.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _1498 => _1498.toolExplanation]))),
|
|
55551
|
+
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _1499 => _1499.parameters])
|
|
55548
55552
|
}
|
|
55549
55553
|
};
|
|
55550
55554
|
if (existingIndex !== -1) {
|
|
@@ -55568,7 +55572,7 @@ var MessageSegmentAccumulator = class {
|
|
|
55568
55572
|
if (seg.type !== "approval_batch") return seg;
|
|
55569
55573
|
const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
|
|
55570
55574
|
if (!hasCall) return seg;
|
|
55571
|
-
const prev = _optionalChain([seg, 'access',
|
|
55575
|
+
const prev = _optionalChain([seg, 'access', _1500 => _1500.data, 'access', _1501 => _1501.executions, 'optionalAccess', _1502 => _1502[execId]]);
|
|
55572
55576
|
const next = nextBatchExecution(prev, toolData);
|
|
55573
55577
|
matched = true;
|
|
55574
55578
|
if (next === null) return seg;
|
|
@@ -55710,8 +55714,8 @@ var MessageSegmentAccumulator = class {
|
|
|
55710
55714
|
requestId,
|
|
55711
55715
|
{
|
|
55712
55716
|
...pendingApproval,
|
|
55713
|
-
command: _optionalChain([pendingApproval, 'optionalAccess',
|
|
55714
|
-
approvalType: _optionalChain([pendingApproval, 'optionalAccess',
|
|
55717
|
+
command: _optionalChain([pendingApproval, 'optionalAccess', _1503 => _1503.command]) || "",
|
|
55718
|
+
approvalType: _optionalChain([pendingApproval, 'optionalAccess', _1504 => _1504.approvalType]) || approvalType
|
|
55715
55719
|
},
|
|
55716
55720
|
status
|
|
55717
55721
|
);
|
|
@@ -55736,9 +55740,9 @@ var MessageSegmentAccumulator = class {
|
|
|
55736
55740
|
type: "escalation_offer",
|
|
55737
55741
|
// The resolved chunk carries no text/origin — a redelivered offer must
|
|
55738
55742
|
// not blank the card the PENDING chunk already painted.
|
|
55739
|
-
data: { offerId, text: text || _optionalChain([existing, 'optionalAccess',
|
|
55743
|
+
data: { offerId, text: text || _optionalChain([existing, 'optionalAccess', _1505 => _1505.data, 'access', _1506 => _1506.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _1507 => _1507.data, 'access', _1508 => _1508.origin]))) },
|
|
55740
55744
|
status,
|
|
55741
|
-
resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess',
|
|
55745
|
+
resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _1509 => _1509.resolvedByName]))),
|
|
55742
55746
|
onApprove: this.callbacks.onEscalationApprove,
|
|
55743
55747
|
onReject: this.callbacks.onEscalationReject
|
|
55744
55748
|
};
|
|
@@ -55954,7 +55958,7 @@ function createMessageSegmentAccumulator(callbacks) {
|
|
|
55954
55958
|
// src/chat-protocol/events.ts
|
|
55955
55959
|
var GUIDE_ORIGIN = "guide";
|
|
55956
55960
|
function isGuideOrigin(source) {
|
|
55957
|
-
return _optionalChain([source, 'optionalAccess',
|
|
55961
|
+
return _optionalChain([source, 'optionalAccess', _1510 => _1510.origin]) === GUIDE_ORIGIN;
|
|
55958
55962
|
}
|
|
55959
55963
|
var ESCALATION_STATE = {
|
|
55960
55964
|
PENDING: "PENDING",
|
|
@@ -56077,7 +56081,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
56077
56081
|
let stateCache = null;
|
|
56078
56082
|
function invalidate() {
|
|
56079
56083
|
stateCache = null;
|
|
56080
|
-
_optionalChain([onChange, 'optionalCall',
|
|
56084
|
+
_optionalChain([onChange, 'optionalCall', _1511 => _1511()]);
|
|
56081
56085
|
}
|
|
56082
56086
|
function getState() {
|
|
56083
56087
|
if (!stateCache) {
|
|
@@ -56094,7 +56098,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
56094
56098
|
return stateCache;
|
|
56095
56099
|
}
|
|
56096
56100
|
function emit(name, ...args) {
|
|
56097
|
-
_optionalChain([onEffect, 'optionalCall',
|
|
56101
|
+
_optionalChain([onEffect, 'optionalCall', _1512 => _1512({ name, args })]);
|
|
56098
56102
|
}
|
|
56099
56103
|
function setMessagesInternal(next) {
|
|
56100
56104
|
if (next !== messages) {
|
|
@@ -56125,12 +56129,12 @@ function createChatStreamReducer(options = {}) {
|
|
|
56125
56129
|
return [...next.slice(0, -1), { ...last, streamSeq: seq }];
|
|
56126
56130
|
}
|
|
56127
56131
|
function applySegmentsToState(segments, meta) {
|
|
56128
|
-
const seq = _optionalChain([meta, 'optionalAccess',
|
|
56129
|
-
if (_optionalChain([meta, 'optionalAccess',
|
|
56132
|
+
const seq = _optionalChain([meta, 'optionalAccess', _1513 => _1513.streamSeq]);
|
|
56133
|
+
if (_optionalChain([meta, 'optionalAccess', _1514 => _1514.append]) && meta.isCompacting) {
|
|
56130
56134
|
setMessagesInternal(stampTrailingAssistantSeq(upsertTrailingCompaction(messages, segments), seq));
|
|
56131
56135
|
return;
|
|
56132
56136
|
}
|
|
56133
|
-
if (_optionalChain([meta, 'optionalAccess',
|
|
56137
|
+
if (_optionalChain([meta, 'optionalAccess', _1515 => _1515.append])) {
|
|
56134
56138
|
setMessagesInternal(stampTrailingAssistantSeq(appendToTrailingAssistant(messages, segments), seq));
|
|
56135
56139
|
return;
|
|
56136
56140
|
}
|
|
@@ -56142,7 +56146,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
56142
56146
|
adoptTrailingAssistant = false;
|
|
56143
56147
|
const last = messages[messages.length - 1];
|
|
56144
56148
|
if (!last || last.role !== "assistant" || adoptTail) return;
|
|
56145
|
-
const hasContent2 = (_nullishCoalesce(_optionalChain([last, 'access',
|
|
56149
|
+
const hasContent2 = (_nullishCoalesce(_optionalChain([last, 'access', _1516 => _1516.segments, 'optionalAccess', _1517 => _1517.length]), () => ( 0))) > 0 || last.content !== "";
|
|
56146
56150
|
if (!hasContent2) return;
|
|
56147
56151
|
setMessagesInternal([
|
|
56148
56152
|
...messages,
|
|
@@ -56370,13 +56374,13 @@ function createChatStreamReducer(options = {}) {
|
|
|
56370
56374
|
const summary = required ? getCommandText(required) : `Batch of ${toolCalls.length} tool calls`;
|
|
56371
56375
|
pendingEscalated.set(requestId, {
|
|
56372
56376
|
command: summary,
|
|
56373
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
56377
|
+
explanation: _optionalChain([required, 'optionalAccess', _1518 => _1518.toolExplanation]),
|
|
56374
56378
|
approvalType,
|
|
56375
56379
|
toolCalls
|
|
56376
56380
|
});
|
|
56377
56381
|
emit("onEscalatedApproval", requestId, {
|
|
56378
56382
|
command: summary,
|
|
56379
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
56383
|
+
explanation: _optionalChain([required, 'optionalAccess', _1519 => _1519.toolExplanation]),
|
|
56380
56384
|
approvalType
|
|
56381
56385
|
});
|
|
56382
56386
|
break;
|
|
@@ -56565,7 +56569,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
56565
56569
|
let message2;
|
|
56566
56570
|
if (event.details) {
|
|
56567
56571
|
try {
|
|
56568
|
-
message2 = _optionalChain([JSON, 'access',
|
|
56572
|
+
message2 = _optionalChain([JSON, 'access', _1520 => _1520.parse, 'call', _1521 => _1521(event.details), 'optionalAccess', _1522 => _1522.error, 'optionalAccess', _1523 => _1523.message]);
|
|
56569
56573
|
} catch (e103) {
|
|
56570
56574
|
message2 = event.details;
|
|
56571
56575
|
}
|
|
@@ -56782,7 +56786,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
56782
56786
|
const resolveBatch = (status, confirm) => async () => {
|
|
56783
56787
|
setMessagesInternal(projectBatchStatusToMessages(messages, anchorId, status));
|
|
56784
56788
|
for (const id of ids) {
|
|
56785
|
-
const ok = await _optionalChain([confirm, 'optionalCall',
|
|
56789
|
+
const ok = await _optionalChain([confirm, 'optionalCall', _1524 => _1524(id)]);
|
|
56786
56790
|
if (ok === false) {
|
|
56787
56791
|
setMessagesInternal(projectBatchRowFailureToMessages(messages, id));
|
|
56788
56792
|
}
|
|
@@ -56925,8 +56929,8 @@ function createChatStreamReducer(options = {}) {
|
|
|
56925
56929
|
}
|
|
56926
56930
|
}
|
|
56927
56931
|
}
|
|
56928
|
-
hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess',
|
|
56929
|
-
if (_optionalChain([extras, 'optionalAccess',
|
|
56932
|
+
hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _1525 => _1525.resumed]), () => ( messages.length > 0)));
|
|
56933
|
+
if (_optionalChain([extras, 'optionalAccess', _1526 => _1526.agentBusy])) agentBusyState();
|
|
56930
56934
|
invalidate();
|
|
56931
56935
|
}
|
|
56932
56936
|
return {
|
|
@@ -57011,7 +57015,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
57011
57015
|
},
|
|
57012
57016
|
endSseTurn() {
|
|
57013
57017
|
const last = messages[messages.length - 1];
|
|
57014
|
-
if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access',
|
|
57018
|
+
if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _1527 => _1527.segments, 'optionalAccess', _1528 => _1528.length]), () => ( 0))) === 0 && last.content === "") {
|
|
57015
57019
|
messages = messages.slice(0, -1);
|
|
57016
57020
|
}
|
|
57017
57021
|
sseCurrentText = "";
|
|
@@ -57165,10 +57169,10 @@ function createChatDialogStore(options = {}) {
|
|
|
57165
57169
|
if (onEvict) {
|
|
57166
57170
|
const sep = key.indexOf(KEY_SEP);
|
|
57167
57171
|
onEvict(key.slice(0, sep), key.slice(sep + 1), {
|
|
57168
|
-
messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
57169
|
-
approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
57170
|
-
lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
57171
|
-
pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
57172
|
+
messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _1529 => _1529.state, 'access', _1530 => _1530.messages]), () => ( EMPTY_STATE.messages)),
|
|
57173
|
+
approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _1531 => _1531.state, 'access', _1532 => _1532.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
|
|
57174
|
+
lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _1533 => _1533.getLastAppliedSeq, 'call', _1534 => _1534()]), () => ( Number.NEGATIVE_INFINITY)),
|
|
57175
|
+
pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _1535 => _1535.getPendingEchoes, 'call', _1536 => _1536()]), () => ( EMPTY_PENDING_ECHOES))
|
|
57172
57176
|
});
|
|
57173
57177
|
}
|
|
57174
57178
|
}
|
|
@@ -57178,12 +57182,12 @@ function createChatDialogStore(options = {}) {
|
|
|
57178
57182
|
const key = keyOf(dialogId, side);
|
|
57179
57183
|
let reducer2 = reducers.get(key);
|
|
57180
57184
|
if (!reducer2) {
|
|
57181
|
-
const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall',
|
|
57185
|
+
const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _1537 => _1537(dialogId, side)]), () => ( {}));
|
|
57182
57186
|
const userOnChange = base.onChange;
|
|
57183
57187
|
reducer2 = createChatStreamReducer({
|
|
57184
57188
|
...base,
|
|
57185
57189
|
onChange: () => {
|
|
57186
|
-
_optionalChain([userOnChange, 'optionalCall',
|
|
57190
|
+
_optionalChain([userOnChange, 'optionalCall', _1538 => _1538()]);
|
|
57187
57191
|
notify();
|
|
57188
57192
|
}
|
|
57189
57193
|
});
|
|
@@ -57228,7 +57232,7 @@ function createChatDialogStore(options = {}) {
|
|
|
57228
57232
|
};
|
|
57229
57233
|
}
|
|
57230
57234
|
function getSnapshot(dialogId, side = DEFAULT_DIALOG_SIDE) {
|
|
57231
|
-
return _nullishCoalesce(_optionalChain([reducers, 'access',
|
|
57235
|
+
return _nullishCoalesce(_optionalChain([reducers, 'access', _1539 => _1539.get, 'call', _1540 => _1540(keyOf(dialogId, side)), 'optionalAccess', _1541 => _1541.state]), () => ( EMPTY_STATE));
|
|
57232
57236
|
}
|
|
57233
57237
|
function getServerSnapshot() {
|
|
57234
57238
|
return EMPTY_STATE;
|
|
@@ -57320,7 +57324,7 @@ function createDeltaBatcher({
|
|
|
57320
57324
|
pending = [];
|
|
57321
57325
|
const key = pendingKey;
|
|
57322
57326
|
for (const delta of batch) applyOne(delta, key);
|
|
57323
|
-
_optionalChain([onFlushed, 'optionalCall',
|
|
57327
|
+
_optionalChain([onFlushed, 'optionalCall', _1542 => _1542(batch.length)]);
|
|
57324
57328
|
}
|
|
57325
57329
|
function schedule() {
|
|
57326
57330
|
if (raf !== null || timer !== null) return;
|
|
@@ -57344,7 +57348,7 @@ function createDeltaBatcher({
|
|
|
57344
57348
|
}
|
|
57345
57349
|
if (!isDeltaEvent(event)) return false;
|
|
57346
57350
|
const tail = pending[pending.length - 1];
|
|
57347
|
-
const seqAdvances = _optionalChain([tail, 'optionalAccess',
|
|
57351
|
+
const seqAdvances = _optionalChain([tail, 'optionalAccess', _1543 => _1543.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
|
|
57348
57352
|
if (tail && seqAdvances && tail.type === event.type && (tail.type !== "text-delta" || tail.leading === event.leading)) {
|
|
57349
57353
|
pending[pending.length - 1] = {
|
|
57350
57354
|
...tail,
|
|
@@ -57377,7 +57381,7 @@ function useChatStreamReducer({
|
|
|
57377
57381
|
}) {
|
|
57378
57382
|
const optionsRef = _react.useRef.call(void 0, createReducerOptions);
|
|
57379
57383
|
optionsRef.current = createReducerOptions;
|
|
57380
|
-
const reducer2 = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([optionsRef, 'access',
|
|
57384
|
+
const reducer2 = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([optionsRef, 'access', _1544 => _1544.current, 'optionalCall', _1545 => _1545()]), () => ( {})));
|
|
57381
57385
|
const getSnapshot = _react.useCallback.call(void 0, () => store.getSnapshot(dialogId, side), [store, dialogId, side]);
|
|
57382
57386
|
const getServerSnapshot = _react.useCallback.call(void 0, () => store.getServerSnapshot(), [store]);
|
|
57383
57387
|
const subscribe = _react.useCallback.call(void 0, (listener) => store.subscribe(listener), [store]);
|
|
@@ -57437,7 +57441,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57437
57441
|
const { active = true } = runtimeOptions;
|
|
57438
57442
|
const runtime = _chunk7OPWSWEJcjs.useRequiredChatRuntime.call(void 0, );
|
|
57439
57443
|
const source = runtime.source || DEFAULT_CHAT_SOURCE;
|
|
57440
|
-
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
57444
|
+
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1546 => _1546.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
|
|
57441
57445
|
const sendMessageRef = _react.useRef.call(void 0, async () => true);
|
|
57442
57446
|
const cardResolve = _react.useCallback.call(void 0,
|
|
57443
57447
|
(action) => (reqId) => {
|
|
@@ -57472,7 +57476,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57472
57476
|
if (!restoredConversationRef.current) {
|
|
57473
57477
|
restoredConversationRef.current = true;
|
|
57474
57478
|
pruneStaleChatConversationStorage(source);
|
|
57475
|
-
conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access',
|
|
57479
|
+
conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _1547 => _1547.load, 'call', _1548 => _1548(), 'optionalAccess', _1549 => _1549.conversationId]), () => ( null));
|
|
57476
57480
|
}
|
|
57477
57481
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
57478
57482
|
const { commands: slashCommands } = useSlashCommandRegistry(commandsUrl, {
|
|
@@ -57579,7 +57583,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57579
57583
|
const serverMessage = await readServerErrorMessage(response);
|
|
57580
57584
|
throw new Error(_nullishCoalesce(serverMessage, () => ( `Chat request failed: ${response.status}`)));
|
|
57581
57585
|
}
|
|
57582
|
-
const reader = _optionalChain([response, 'access',
|
|
57586
|
+
const reader = _optionalChain([response, 'access', _1550 => _1550.body, 'optionalAccess', _1551 => _1551.getReader, 'call', _1552 => _1552()]);
|
|
57583
57587
|
if (!reader) throw new Error("No response body");
|
|
57584
57588
|
const frameDecoder = createSseFrameDecoder();
|
|
57585
57589
|
let finished = false;
|
|
@@ -57602,7 +57606,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57602
57606
|
}
|
|
57603
57607
|
return true;
|
|
57604
57608
|
} catch (err) {
|
|
57605
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
57609
|
+
if (_optionalChain([err, 'optionalAccess', _1553 => _1553.name]) === "AbortError" || ctrl.signal.aborted) {
|
|
57606
57610
|
return true;
|
|
57607
57611
|
}
|
|
57608
57612
|
flushDeltas();
|
|
@@ -57624,7 +57628,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57624
57628
|
);
|
|
57625
57629
|
sendMessageRef.current = sendMessage;
|
|
57626
57630
|
const stopMessage = _react.useCallback.call(void 0, () => {
|
|
57627
|
-
_optionalChain([abortControllerRef, 'access',
|
|
57631
|
+
_optionalChain([abortControllerRef, 'access', _1554 => _1554.current, 'optionalAccess', _1555 => _1555.abort, 'call', _1556 => _1556()]);
|
|
57628
57632
|
flushDeltas();
|
|
57629
57633
|
mutate((r) => r.setPhase("idle"));
|
|
57630
57634
|
}, [mutate, flushDeltas]);
|
|
@@ -57640,7 +57644,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57640
57644
|
let sendIdx = -1;
|
|
57641
57645
|
return state.messages.map((m) => {
|
|
57642
57646
|
const segments = m.segments;
|
|
57643
|
-
const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess',
|
|
57647
|
+
const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _1557 => _1557.filter, 'call', _1558 => _1558((s) => s.type === "text"), 'access', _1559 => _1559.map, 'call', _1560 => _1560((s) => s.text), 'access', _1561 => _1561.join, 'call', _1562 => _1562("")]), () => ( ""));
|
|
57644
57648
|
let sources;
|
|
57645
57649
|
let scrollAnchor;
|
|
57646
57650
|
if (m.role === "user" && !m.hidden) {
|
|
@@ -57649,7 +57653,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57649
57653
|
if (m.role === "assistant") {
|
|
57650
57654
|
const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
|
|
57651
57655
|
sources = sourcesMap.get(lookupIdx);
|
|
57652
|
-
scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access',
|
|
57656
|
+
scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _1563 => _1563.get, 'call', _1564 => _1564(lookupIdx), 'optionalAccess', _1565 => _1565.scrollAnchor]), () => ( void 0));
|
|
57653
57657
|
}
|
|
57654
57658
|
return {
|
|
57655
57659
|
id: m.id,
|
|
@@ -57678,7 +57682,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57678
57682
|
);
|
|
57679
57683
|
return;
|
|
57680
57684
|
}
|
|
57681
|
-
const refSlug = typeof _optionalChain([reference, 'access',
|
|
57685
|
+
const refSlug = typeof _optionalChain([reference, 'access', _1566 => _1566.metadata, 'optionalAccess', _1567 => _1567.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
|
|
57682
57686
|
const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
|
|
57683
57687
|
const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
57684
57688
|
const text = `/${cmdId} display "${escaped}"`;
|
|
@@ -57728,18 +57732,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
57728
57732
|
/** True while the mount-time rebuild from the server transcript runs. */
|
|
57729
57733
|
isHydratingHistory,
|
|
57730
57734
|
/** Provider key for the lib's `<ModelDisplay>` icon. */
|
|
57731
|
-
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
57732
|
-
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
57733
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
57735
|
+
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1568 => _1568.provider]), () => ( null)),
|
|
57736
|
+
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1569 => _1569.modelLabel]), () => ( null)),
|
|
57737
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1570 => _1570.contextWindowMaxTokens]), () => ( null)),
|
|
57734
57738
|
/** Input tokens (known after server's message_start frame; null until). */
|
|
57735
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
57739
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1571 => _1571.inputTokens]), () => ( null)),
|
|
57736
57740
|
/** Output tokens (known only after server's trailing usage frame). */
|
|
57737
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
57741
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1572 => _1572.outputTokens]), () => ( null)),
|
|
57738
57742
|
/** Cache hit % (read / total-input × 100). null during streaming. */
|
|
57739
|
-
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
57743
|
+
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1573 => _1573.cacheHitRatePct]), () => ( null)),
|
|
57740
57744
|
/** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
|
|
57741
57745
|
* token counts). null until the trailing usage frame lands. */
|
|
57742
|
-
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
57746
|
+
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1574 => _1574.breakdown]), () => ( null)),
|
|
57743
57747
|
// ─── Dialog management — stubs for v1 ────────────────────────────────
|
|
57744
57748
|
// Guide mode keeps ONE server-side conversation per stored id
|
|
57745
57749
|
// (`chat_conversations`, hydrated on mount). Surfacing multiple threads
|
|
@@ -58033,7 +58037,7 @@ function decodeNatsChunk(chunk) {
|
|
|
58033
58037
|
userId: typeof data.userId === "string" ? data.userId : void 0,
|
|
58034
58038
|
// Wire shape carries no label; fall back to the id (parity with
|
|
58035
58039
|
// the history path in `process-historical-messages.ts`).
|
|
58036
|
-
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess',
|
|
58040
|
+
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _1575 => _1575.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _1576 => _1576.id]) === "string").map((it) => ({
|
|
58037
58041
|
type: it.type,
|
|
58038
58042
|
id: it.id,
|
|
58039
58043
|
label: it.id
|
|
@@ -58085,15 +58089,15 @@ function decodeNatsChunk(chunk) {
|
|
|
58085
58089
|
|
|
58086
58090
|
// src/components/chat/utils/process-historical-messages.ts
|
|
58087
58091
|
function getOwnerDisplayName(owner) {
|
|
58088
|
-
if (_optionalChain([owner, 'optionalAccess',
|
|
58092
|
+
if (_optionalChain([owner, 'optionalAccess', _1577 => _1577.type]) === OWNER_TYPE.ADMIN && owner.user) {
|
|
58089
58093
|
const { firstName, lastName } = owner.user;
|
|
58090
58094
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
58091
58095
|
if (name) return name;
|
|
58092
58096
|
}
|
|
58093
|
-
return _optionalChain([owner, 'optionalAccess',
|
|
58097
|
+
return _optionalChain([owner, 'optionalAccess', _1578 => _1578.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
58094
58098
|
}
|
|
58095
58099
|
function getOwnerAvatar(owner) {
|
|
58096
|
-
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess',
|
|
58100
|
+
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _1579 => _1579.user, 'optionalAccess', _1580 => _1580.image, 'optionalAccess', _1581 => _1581.imageUrl]), () => ( void 0));
|
|
58097
58101
|
}
|
|
58098
58102
|
function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
|
|
58099
58103
|
messageDataArray.forEach((data) => {
|
|
@@ -58291,7 +58295,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
58291
58295
|
event.offerId,
|
|
58292
58296
|
event.text,
|
|
58293
58297
|
event.origin,
|
|
58294
|
-
_nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess',
|
|
58298
|
+
_nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _1582 => _1582[event.offerId]]), () => ( "pending"))
|
|
58295
58299
|
);
|
|
58296
58300
|
break;
|
|
58297
58301
|
case "ticket-escalated":
|
|
@@ -58316,7 +58320,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
58316
58320
|
});
|
|
58317
58321
|
break;
|
|
58318
58322
|
case "escalation-offer-resolved":
|
|
58319
|
-
_optionalChain([offerResolutions, 'optionalAccess',
|
|
58323
|
+
_optionalChain([offerResolutions, 'optionalAccess', _1583 => _1583.set, 'call', _1584 => _1584(event.offerId, {
|
|
58320
58324
|
status: event.status,
|
|
58321
58325
|
resolvedByName: event.resolvedByName
|
|
58322
58326
|
})]);
|
|
@@ -58394,7 +58398,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
58394
58398
|
}
|
|
58395
58399
|
}
|
|
58396
58400
|
} else {
|
|
58397
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
58401
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1585 => _1585.set, 'call', _1586 => _1586(event.requestId, {
|
|
58398
58402
|
command: event.command || "",
|
|
58399
58403
|
explanation: event.explanation,
|
|
58400
58404
|
approvalType,
|
|
@@ -58409,8 +58413,8 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
58409
58413
|
const existingStatus = approvalStatuses[requestId];
|
|
58410
58414
|
const status = existingStatus || event.status;
|
|
58411
58415
|
const resolvedByName = event.resolvedByName;
|
|
58412
|
-
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess',
|
|
58413
|
-
if (_optionalChain([escalatedData, 'optionalAccess',
|
|
58416
|
+
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _1587 => _1587.get, 'call', _1588 => _1588(requestId)]);
|
|
58417
|
+
if (_optionalChain([escalatedData, 'optionalAccess', _1589 => _1589.toolCalls]) && escalatedData.toolCalls.length > 0) {
|
|
58414
58418
|
if (batchApprovalsEnabled) {
|
|
58415
58419
|
accumulator.addApprovalBatch(
|
|
58416
58420
|
requestId,
|
|
@@ -58432,7 +58436,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
58432
58436
|
);
|
|
58433
58437
|
}
|
|
58434
58438
|
}
|
|
58435
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
58439
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1590 => _1590.delete, 'call', _1591 => _1591(requestId)]);
|
|
58436
58440
|
break;
|
|
58437
58441
|
}
|
|
58438
58442
|
if (escalatedData) {
|
|
@@ -58441,7 +58445,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
58441
58445
|
explanation: escalatedData.explanation,
|
|
58442
58446
|
approvalType: escalatedData.approvalType
|
|
58443
58447
|
});
|
|
58444
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
58448
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _1592 => _1592.delete, 'call', _1593 => _1593(requestId)]);
|
|
58445
58449
|
}
|
|
58446
58450
|
const before = accumulator.getSegments();
|
|
58447
58451
|
const after = accumulator.updateApprovalStatus(requestId, status, resolvedByName);
|
|
@@ -58458,7 +58462,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
58458
58462
|
let message2;
|
|
58459
58463
|
if (event.details) {
|
|
58460
58464
|
try {
|
|
58461
|
-
message2 = _optionalChain([JSON, 'access',
|
|
58465
|
+
message2 = _optionalChain([JSON, 'access', _1594 => _1594.parse, 'call', _1595 => _1595(event.details), 'optionalAccess', _1596 => _1596.error, 'optionalAccess', _1597 => _1597.message]);
|
|
58462
58466
|
} catch (e104) {
|
|
58463
58467
|
message2 = event.details;
|
|
58464
58468
|
}
|
|
@@ -58544,14 +58548,14 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
58544
58548
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
58545
58549
|
return;
|
|
58546
58550
|
}
|
|
58547
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
58551
|
+
const isUserMessage = _optionalChain([msg, 'access', _1598 => _1598.owner, 'optionalAccess', _1599 => _1599.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1600 => _1600.owner, 'optionalAccess', _1601 => _1601.type]) === OWNER_TYPE.ADMIN;
|
|
58548
58552
|
if (isUserMessage) {
|
|
58549
58553
|
flushAssistantMessage();
|
|
58550
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
58554
|
+
const userAuthorType = _optionalChain([msg, 'access', _1602 => _1602.owner, 'optionalAccess', _1603 => _1603.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
58551
58555
|
messageDataArray.forEach((data) => {
|
|
58552
58556
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
58553
58557
|
const rawContext = data.contextItems;
|
|
58554
|
-
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess',
|
|
58558
|
+
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1604 => _1604.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1605 => _1605.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
|
|
58555
58559
|
processedMessages.push({
|
|
58556
58560
|
id: msg.id,
|
|
58557
58561
|
role: "user",
|
|
@@ -58588,7 +58592,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
58588
58592
|
});
|
|
58589
58593
|
const nextMsg = messages[index + 1];
|
|
58590
58594
|
const isLastMessage = index === messages.length - 1;
|
|
58591
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
58595
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1606 => _1606.owner, 'optionalAccess', _1607 => _1607.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1608 => _1608.owner, 'optionalAccess', _1609 => _1609.type]) === OWNER_TYPE.ADMIN);
|
|
58592
58596
|
if (isLastMessage || nextIsFromUser) {
|
|
58593
58597
|
flushAssistantMessage();
|
|
58594
58598
|
}
|
|
@@ -58700,7 +58704,7 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
58700
58704
|
break;
|
|
58701
58705
|
case "approval_batch": {
|
|
58702
58706
|
const allDone = !!segment.data.executions && segment.data.toolCalls.every(
|
|
58703
|
-
(c) => _optionalChain([segment, 'access',
|
|
58707
|
+
(c) => _optionalChain([segment, 'access', _1610 => _1610.data, 'access', _1611 => _1611.executions, 'optionalAccess', _1612 => _1612[c.toolExecutionRequestId], 'optionalAccess', _1613 => _1613.status]) === "done"
|
|
58704
58708
|
);
|
|
58705
58709
|
if (segment.status !== "rejected" && !allDone) {
|
|
58706
58710
|
hasIncompleteState = true;
|
|
@@ -58736,11 +58740,11 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
58736
58740
|
function extractIncompleteTailState(messages) {
|
|
58737
58741
|
if (!messages || messages.length === 0) return void 0;
|
|
58738
58742
|
let start = messages.length;
|
|
58739
|
-
while (start > 0 && _optionalChain([messages, 'access',
|
|
58743
|
+
while (start > 0 && _optionalChain([messages, 'access', _1614 => _1614[start - 1], 'optionalAccess', _1615 => _1615.role]) === "assistant") start -= 1;
|
|
58740
58744
|
if (start === messages.length) return void 0;
|
|
58741
58745
|
const segments = [];
|
|
58742
58746
|
for (let i = start; i < messages.length; i += 1) {
|
|
58743
|
-
const content = _optionalChain([messages, 'access',
|
|
58747
|
+
const content = _optionalChain([messages, 'access', _1616 => _1616[i], 'optionalAccess', _1617 => _1617.content]);
|
|
58744
58748
|
if (Array.isArray(content)) segments.push(...content);
|
|
58745
58749
|
}
|
|
58746
58750
|
if (segments.length === 0) return void 0;
|
|
@@ -59094,7 +59098,7 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
59094
59098
|
}, [active, fetchDialogs, loadDialogsPage]);
|
|
59095
59099
|
const sendMessage = _react.useCallback.call(void 0,
|
|
59096
59100
|
async (text, sendOptions) => {
|
|
59097
|
-
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess',
|
|
59101
|
+
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _1618 => _1618.hidden]), () => ( false));
|
|
59098
59102
|
mutate((r) => r.pushOptimisticSend(text, hidden));
|
|
59099
59103
|
await publishUserMessage(text, { hidden, dialogId });
|
|
59100
59104
|
},
|
|
@@ -59250,11 +59254,11 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
59250
59254
|
// Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
|
|
59251
59255
|
// contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
|
|
59252
59256
|
// matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
|
|
59253
|
-
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
59254
|
-
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
59255
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
59256
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
59257
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
59257
|
+
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1619 => _1619.provider]), () => ( modelProvider)), () => ( null)),
|
|
59258
|
+
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1620 => _1620.modelLabel]), () => ( modelLabel)), () => ( null)),
|
|
59259
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1621 => _1621.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _1622 => _1622.contextWindowMaxTokens]))), () => ( null)),
|
|
59260
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1623 => _1623.inputTokensSize]), () => ( null)),
|
|
59261
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1624 => _1624.outputTokensSize]), () => ( null)),
|
|
59258
59262
|
currentCacheHitRatePct: null,
|
|
59259
59263
|
currentUsageBreakdown: null,
|
|
59260
59264
|
// Dialog management
|
|
@@ -59391,7 +59395,7 @@ function useUnifiedChat(options) {
|
|
|
59391
59395
|
[]
|
|
59392
59396
|
);
|
|
59393
59397
|
const setDialogScope = _react.useCallback.call(void 0,
|
|
59394
|
-
(scope) => _optionalChain([activeStateRef, 'access',
|
|
59398
|
+
(scope) => _optionalChain([activeStateRef, 'access', _1625 => _1625.current, 'access', _1626 => _1626.setDialogScope, 'optionalCall', _1627 => _1627(scope)]),
|
|
59395
59399
|
[]
|
|
59396
59400
|
);
|
|
59397
59401
|
const reloadDialogs = _react.useCallback.call(void 0,
|
|
@@ -59495,19 +59499,19 @@ function turnRequestKeys(content) {
|
|
|
59495
59499
|
if (!Array.isArray(content)) return keys;
|
|
59496
59500
|
for (const seg of content) {
|
|
59497
59501
|
if (seg.type === "tool_execution") {
|
|
59498
|
-
const id = _optionalChain([seg, 'access',
|
|
59502
|
+
const id = _optionalChain([seg, 'access', _1628 => _1628.data, 'optionalAccess', _1629 => _1629.toolExecutionRequestId]);
|
|
59499
59503
|
if (id) keys.add(id);
|
|
59500
59504
|
} else if (seg.type === "approval_request") {
|
|
59501
|
-
const id = _optionalChain([seg, 'access',
|
|
59505
|
+
const id = _optionalChain([seg, 'access', _1630 => _1630.data, 'optionalAccess', _1631 => _1631.requestId]);
|
|
59502
59506
|
if (id) keys.add(id);
|
|
59503
59507
|
} else if (seg.type === "escalation_offer") {
|
|
59504
|
-
const id = _optionalChain([seg, 'access',
|
|
59508
|
+
const id = _optionalChain([seg, 'access', _1632 => _1632.data, 'optionalAccess', _1633 => _1633.offerId]);
|
|
59505
59509
|
if (id) keys.add(id);
|
|
59506
59510
|
} else if (seg.type === "approval_batch") {
|
|
59507
59511
|
const data = seg.data;
|
|
59508
|
-
if (_optionalChain([data, 'optionalAccess',
|
|
59509
|
-
for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
59510
|
-
if (_optionalChain([call, 'optionalAccess',
|
|
59512
|
+
if (_optionalChain([data, 'optionalAccess', _1634 => _1634.approvalRequestId])) keys.add(data.approvalRequestId);
|
|
59513
|
+
for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1635 => _1635.toolCalls]), () => ( []))) {
|
|
59514
|
+
if (_optionalChain([call, 'optionalAccess', _1636 => _1636.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
|
|
59511
59515
|
}
|
|
59512
59516
|
}
|
|
59513
59517
|
}
|
|
@@ -59559,20 +59563,20 @@ function mergeHistoryWithRealtime(input) {
|
|
|
59559
59563
|
}
|
|
59560
59564
|
}
|
|
59561
59565
|
const trailing = processedHistory[processedHistory.length - 1];
|
|
59562
|
-
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess',
|
|
59563
|
-
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access',
|
|
59566
|
+
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _1637 => _1637.role]) === "assistant" ? trailing : null;
|
|
59567
|
+
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _1638 => _1638.content, 'access', _1639 => _1639.find, 'call', _1640 => _1640((s) => s.type === "approval_batch"), 'optionalAccess', _1641 => _1641.data, 'optionalAccess', _1642 => _1642.approvalRequestId]), () => ( null)) : null;
|
|
59564
59568
|
let processedToUse = processedHistory;
|
|
59565
59569
|
const pinnedSyntheticIds = /* @__PURE__ */ new Set();
|
|
59566
59570
|
const droppedSyntheticIds = /* @__PURE__ */ new Set();
|
|
59567
59571
|
if (historyBatchId) {
|
|
59568
59572
|
const batchTwins = existingMessages.filter(
|
|
59569
59573
|
(m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some(
|
|
59570
|
-
(s) => s.type === "approval_batch" && _optionalChain([s, 'access',
|
|
59574
|
+
(s) => s.type === "approval_batch" && _optionalChain([s, 'access', _1643 => _1643.data, 'optionalAccess', _1644 => _1644.approvalRequestId]) === historyBatchId
|
|
59571
59575
|
)
|
|
59572
59576
|
);
|
|
59573
59577
|
const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
|
|
59574
59578
|
if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
|
|
59575
|
-
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess',
|
|
59579
|
+
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _1645 => _1645.content])) ? historyTrailingAssistant.content.length : 0;
|
|
59576
59580
|
const realtimeSize = existingWithSameBatch.content.length;
|
|
59577
59581
|
if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
|
|
59578
59582
|
processedToUse = processedHistory.slice(0, -1);
|
|
@@ -59614,9 +59618,9 @@ function mergeHistoryWithRealtime(input) {
|
|
|
59614
59618
|
if (pinnedSyntheticIds.has(m.id)) return true;
|
|
59615
59619
|
if (droppedSyntheticIds.has(m.id)) return false;
|
|
59616
59620
|
if (processedIds.has(m.id)) return false;
|
|
59617
|
-
if (_optionalChain([rawHistoryIds, 'optionalAccess',
|
|
59621
|
+
if (_optionalChain([rawHistoryIds, 'optionalAccess', _1646 => _1646.has, 'call', _1647 => _1647(m.id)])) return false;
|
|
59618
59622
|
if (m.role === "user" && m.id.startsWith("optimistic-") && typeof m.content === "string") {
|
|
59619
|
-
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access',
|
|
59623
|
+
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _1648 => _1648.timestamp, 'optionalAccess', _1649 => _1649.getTime, 'call', _1650 => _1650()]), () => ( 0))) <= historyFetchedAt;
|
|
59620
59624
|
return !(canBeInSnapshot && processedToUse.some((pm) => pm.role === "user" && pm.content === m.content));
|
|
59621
59625
|
}
|
|
59622
59626
|
if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
|
|
@@ -59640,7 +59644,7 @@ function mergeHistoryWithRealtime(input) {
|
|
|
59640
59644
|
} else if (typeof m.streamSeq === "number") {
|
|
59641
59645
|
covered = historyMaxStreamSeq > 0 && historyMaxStreamSeq >= m.streamSeq;
|
|
59642
59646
|
} else {
|
|
59643
|
-
covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access',
|
|
59647
|
+
covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _1651 => _1651.timestamp, 'optionalAccess', _1652 => _1652.getTime, 'call', _1653 => _1653()]), () => ( 0))) <= historyFetchedAt;
|
|
59644
59648
|
}
|
|
59645
59649
|
if (covered) return false;
|
|
59646
59650
|
}
|
|
@@ -59696,7 +59700,7 @@ function normalizeHistoricalMessageData(md) {
|
|
|
59696
59700
|
function isHistoricalUserTurn(m) {
|
|
59697
59701
|
return !!m.owner;
|
|
59698
59702
|
}
|
|
59699
|
-
var isTextSegment = (d) => _optionalChain([d, 'optionalAccess',
|
|
59703
|
+
var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _1654 => _1654.type]) === "TEXT" && typeof d.text === "string";
|
|
59700
59704
|
var THINK_MS = 550;
|
|
59701
59705
|
var TOKEN_MS = 55;
|
|
59702
59706
|
var USER_MS = 480;
|
|
@@ -59943,7 +59947,7 @@ function useChatDialogManager({
|
|
|
59943
59947
|
const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
|
|
59944
59948
|
if (restoreTarget) {
|
|
59945
59949
|
try {
|
|
59946
|
-
await _optionalChain([unarchiveDialog, 'optionalCall',
|
|
59950
|
+
await _optionalChain([unarchiveDialog, 'optionalCall', _1655 => _1655(restoreTarget.id)]);
|
|
59947
59951
|
} catch (err) {
|
|
59948
59952
|
console.error("[useChatDialogManager] unarchive failed:", err);
|
|
59949
59953
|
return;
|
|
@@ -60425,7 +60429,7 @@ function EmbeddableChatInner({
|
|
|
60425
60429
|
}),
|
|
60426
60430
|
[commandsUrl]
|
|
60427
60431
|
);
|
|
60428
|
-
const headerUserName = _optionalChain([identityUser, 'optionalAccess',
|
|
60432
|
+
const headerUserName = _optionalChain([identityUser, 'optionalAccess', _1656 => _1656.name, 'optionalAccess', _1657 => _1657.trim, 'call', _1658 => _1658()]) || [_optionalChain([identityUser, 'optionalAccess', _1659 => _1659.firstName]), _optionalChain([identityUser, 'optionalAccess', _1660 => _1660.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([userDisplayName, 'optionalAccess', _1661 => _1661.trim, 'call', _1662 => _1662()]) || void 0;
|
|
60429
60433
|
const effectiveModes = _react.useMemo.call(void 0, () => {
|
|
60430
60434
|
if (modes) return modes;
|
|
60431
60435
|
const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
|
|
@@ -60434,19 +60438,19 @@ function EmbeddableChatInner({
|
|
|
60434
60438
|
const mingoCaps = _react.useMemo.call(void 0, () => {
|
|
60435
60439
|
if (mingoState) {
|
|
60436
60440
|
return {
|
|
60437
|
-
canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
60438
|
-
canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
60439
|
-
fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
60440
|
-
unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
60441
|
-
searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
60442
|
-
onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
60441
|
+
canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1663 => _1663.canRename]), () => ( false)),
|
|
60442
|
+
canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1664 => _1664.canArchive]), () => ( false)),
|
|
60443
|
+
fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1665 => _1665.fetchArchivedDialogs]),
|
|
60444
|
+
unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1666 => _1666.unarchiveDialog]),
|
|
60445
|
+
searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1667 => _1667.searchQuery]),
|
|
60446
|
+
onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1668 => _1668.onSearchChange])
|
|
60443
60447
|
};
|
|
60444
60448
|
}
|
|
60445
60449
|
return {
|
|
60446
|
-
canRename: !!_optionalChain([effectiveModes, 'access',
|
|
60447
|
-
canArchive: !!_optionalChain([effectiveModes, 'access',
|
|
60448
|
-
fetchArchivedDialogs: _optionalChain([effectiveModes, 'access',
|
|
60449
|
-
unarchiveDialog: _optionalChain([effectiveModes, 'access',
|
|
60450
|
+
canRename: !!_optionalChain([effectiveModes, 'access', _1669 => _1669.mingo, 'optionalAccess', _1670 => _1670.renameDialog]),
|
|
60451
|
+
canArchive: !!_optionalChain([effectiveModes, 'access', _1671 => _1671.mingo, 'optionalAccess', _1672 => _1672.archiveDialog]),
|
|
60452
|
+
fetchArchivedDialogs: _optionalChain([effectiveModes, 'access', _1673 => _1673.mingo, 'optionalAccess', _1674 => _1674.fetchArchivedDialogs]),
|
|
60453
|
+
unarchiveDialog: _optionalChain([effectiveModes, 'access', _1675 => _1675.mingo, 'optionalAccess', _1676 => _1676.unarchiveDialog]),
|
|
60450
60454
|
searchQuery: void 0,
|
|
60451
60455
|
onSearchChange: void 0
|
|
60452
60456
|
};
|
|
@@ -60460,7 +60464,7 @@ function EmbeddableChatInner({
|
|
|
60460
60464
|
if (controlledActiveMode === void 0) {
|
|
60461
60465
|
setUncontrolledActiveMode(next);
|
|
60462
60466
|
}
|
|
60463
|
-
_optionalChain([onActiveModeChange, 'optionalCall',
|
|
60467
|
+
_optionalChain([onActiveModeChange, 'optionalCall', _1677 => _1677(next)]);
|
|
60464
60468
|
},
|
|
60465
60469
|
[controlledActiveMode, onActiveModeChange]
|
|
60466
60470
|
);
|
|
@@ -60482,7 +60486,7 @@ function EmbeddableChatInner({
|
|
|
60482
60486
|
const effectiveQuickActions = emptyStateUrl ? emptyStateConfig.quickActions : [];
|
|
60483
60487
|
const effectiveAssistantName = emptyStateConfig.name;
|
|
60484
60488
|
const effectiveAssistantIcon = emptyStateConfig.icon;
|
|
60485
|
-
const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess',
|
|
60489
|
+
const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _1678 => _1678.title]) === "string" ? guideWelcome.title : null)));
|
|
60486
60490
|
const {
|
|
60487
60491
|
messages: rawMessages,
|
|
60488
60492
|
isLoading: chatLoading,
|
|
@@ -60524,7 +60528,7 @@ function EmbeddableChatInner({
|
|
|
60524
60528
|
if (activeMode !== "guide" || guidePromptSentRef.current) return;
|
|
60525
60529
|
guidePromptSentRef.current = true;
|
|
60526
60530
|
void sendMessage(guidePendingPrompt);
|
|
60527
|
-
_optionalChain([onGuidePromptConsumed, 'optionalCall',
|
|
60531
|
+
_optionalChain([onGuidePromptConsumed, 'optionalCall', _1679 => _1679()]);
|
|
60528
60532
|
}, [guidePendingPrompt, activeMode, sendMessage, onGuidePromptConsumed]);
|
|
60529
60533
|
const {
|
|
60530
60534
|
attachments: stagedAttachments,
|
|
@@ -60535,7 +60539,7 @@ function EmbeddableChatInner({
|
|
|
60535
60539
|
clear: clearAttachments
|
|
60536
60540
|
} = useChatAttachments();
|
|
60537
60541
|
const { panelRef: galleryPanelRef, modal: galleryModal } = useChatAttachmentImageGallery();
|
|
60538
|
-
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess',
|
|
60542
|
+
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1680 => _1680.maxItems]), () => ( 10));
|
|
60539
60543
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
60540
60544
|
const [contextItems, setContextItems] = _react.useState.call(void 0, []);
|
|
60541
60545
|
const [contextPickerOpen, setContextPickerOpen] = _react.useState.call(void 0, false);
|
|
@@ -60552,10 +60556,10 @@ function EmbeddableChatInner({
|
|
|
60552
60556
|
}, [activeDialogId, activeMode]);
|
|
60553
60557
|
const mentionMarkerByType = _react.useMemo.call(void 0, () => {
|
|
60554
60558
|
const m = /* @__PURE__ */ new Map();
|
|
60555
|
-
for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess',
|
|
60559
|
+
for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1681 => _1681.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
|
|
60556
60560
|
return m;
|
|
60557
|
-
}, [_optionalChain([contextPicker, 'optionalAccess',
|
|
60558
|
-
const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess',
|
|
60561
|
+
}, [_optionalChain([contextPicker, 'optionalAccess', _1682 => _1682.entityTypes])]);
|
|
60562
|
+
const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _1683 => _1683.entityTypes]);
|
|
60559
60563
|
const resolveContextIcon = _react.useMemo.call(void 0, () => {
|
|
60560
60564
|
const byType = /* @__PURE__ */ new Map();
|
|
60561
60565
|
for (const t of _nullishCoalesce(contextEntityTypes, () => ( []))) byType.set(t.type, t.icon);
|
|
@@ -60567,7 +60571,7 @@ function EmbeddableChatInner({
|
|
|
60567
60571
|
if (mentionActiveRef.current) {
|
|
60568
60572
|
if (contextItems.some((p) => `${p.type}:${p.id}` === key)) return;
|
|
60569
60573
|
if (contextItems.length >= contextMaxItems) return;
|
|
60570
|
-
_optionalChain([chatInputRef, 'access',
|
|
60574
|
+
_optionalChain([chatInputRef, 'access', _1684 => _1684.current, 'optionalAccess', _1685 => _1685.commitMention, 'call', _1686 => _1686(mentionTokenOf(key, mentionMarkerByType), {
|
|
60571
60575
|
label: item.label,
|
|
60572
60576
|
icon: resolveContextIcon(item)
|
|
60573
60577
|
})]);
|
|
@@ -60589,9 +60593,9 @@ function EmbeddableChatInner({
|
|
|
60589
60593
|
setContextItems((prev) => prev.filter((p) => `${p.type}:${p.id}` !== key));
|
|
60590
60594
|
if (mentionKeysRef.current.has(key)) {
|
|
60591
60595
|
mentionKeysRef.current.delete(key);
|
|
60592
|
-
const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access',
|
|
60596
|
+
const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _1687 => _1687.current, 'optionalAccess', _1688 => _1688.getValue, 'call', _1689 => _1689()]), () => ( ""));
|
|
60593
60597
|
const next = cur.replace(`@${mentionTokenOf(key, mentionMarkerByType)}`, "").replace(/\s{2,}/g, " ").trimStart();
|
|
60594
|
-
_optionalChain([chatInputRef, 'access',
|
|
60598
|
+
_optionalChain([chatInputRef, 'access', _1690 => _1690.current, 'optionalAccess', _1691 => _1691.setValue, 'call', _1692 => _1692(next)]);
|
|
60595
60599
|
}
|
|
60596
60600
|
}, [mentionMarkerByType]);
|
|
60597
60601
|
const handleContextValueChange = _react.useCallback.call(void 0, (value) => {
|
|
@@ -60608,7 +60612,7 @@ function EmbeddableChatInner({
|
|
|
60608
60612
|
}, []);
|
|
60609
60613
|
const closeContextPicker = _react.useCallback.call(void 0, () => {
|
|
60610
60614
|
if (mentionActiveRef.current) {
|
|
60611
|
-
_optionalChain([chatInputRef, 'access',
|
|
60615
|
+
_optionalChain([chatInputRef, 'access', _1693 => _1693.current, 'optionalAccess', _1694 => _1694.removeMentionTrigger, 'call', _1695 => _1695()]);
|
|
60612
60616
|
}
|
|
60613
60617
|
setContextPickerOpen(false);
|
|
60614
60618
|
setMentionQuery(null);
|
|
@@ -60642,8 +60646,8 @@ function EmbeddableChatInner({
|
|
|
60642
60646
|
[effectiveAssistantIcon]
|
|
60643
60647
|
);
|
|
60644
60648
|
const timestampCacheRef = _react.useRef.call(void 0, /* @__PURE__ */ new Map());
|
|
60645
|
-
const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess',
|
|
60646
|
-
const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess',
|
|
60649
|
+
const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _1696 => _1696.firstName]), _optionalChain([identityUser, 'optionalAccess', _1697 => _1697.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _1698 => _1698.name, 'optionalAccess', _1699 => _1699.trim, 'call', _1700 => _1700()]) || void 0 : void 0;
|
|
60650
|
+
const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _1701 => _1701.avatarUrl, 'optionalAccess', _1702 => _1702.trim, 'call', _1703 => _1703()]) || void 0 : void 0;
|
|
60647
60651
|
const messages = _react.useMemo.call(void 0, () => {
|
|
60648
60652
|
const cache = timestampCacheRef.current;
|
|
60649
60653
|
const seenIds = /* @__PURE__ */ new Set();
|
|
@@ -60834,9 +60838,9 @@ function EmbeddableChatInner({
|
|
|
60834
60838
|
const lastAssistantMsg = [...rawMessages].reverse().find((m) => m.role === "assistant");
|
|
60835
60839
|
const lastSources = _react.useMemo.call(void 0, () => {
|
|
60836
60840
|
if (chatLoading) return void 0;
|
|
60837
|
-
const sources = _optionalChain([lastAssistantMsg, 'optionalAccess',
|
|
60841
|
+
const sources = _optionalChain([lastAssistantMsg, 'optionalAccess', _1704 => _1704.sources]);
|
|
60838
60842
|
if (!sources || sources.length === 0) return void 0;
|
|
60839
|
-
const content = _optionalChain([lastAssistantMsg, 'optionalAccess',
|
|
60843
|
+
const content = _optionalChain([lastAssistantMsg, 'optionalAccess', _1705 => _1705.content]) || "";
|
|
60840
60844
|
const citationOrder = [...content.matchAll(/\[(\d+)\]/g)].map(
|
|
60841
60845
|
(m) => parseInt(m[1], 10)
|
|
60842
60846
|
);
|
|
@@ -60856,7 +60860,7 @@ function EmbeddableChatInner({
|
|
|
60856
60860
|
const el = panelMeasureRef.current;
|
|
60857
60861
|
if (!el || typeof ResizeObserver === "undefined") return;
|
|
60858
60862
|
const ro = new ResizeObserver((entries) => {
|
|
60859
|
-
const w = _optionalChain([entries, 'access',
|
|
60863
|
+
const w = _optionalChain([entries, 'access', _1706 => _1706[0], 'optionalAccess', _1707 => _1707.contentRect, 'optionalAccess', _1708 => _1708.width]);
|
|
60860
60864
|
if (typeof w === "number") setPanelWidth(w);
|
|
60861
60865
|
});
|
|
60862
60866
|
ro.observe(el);
|
|
@@ -60899,16 +60903,16 @@ function EmbeddableChatInner({
|
|
|
60899
60903
|
const isMingoMode = activeMode === "mingo";
|
|
60900
60904
|
const stackedListView = isMingoMode && !hasConversation && !archiveOpen && !wideMingo && !composeOpen;
|
|
60901
60905
|
const headerShowBack = hasConversation || guideCanReturnToMingo;
|
|
60902
|
-
const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess',
|
|
60906
|
+
const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _1709 => _1709.title]) || "New Chat" : isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "Current Chats";
|
|
60903
60907
|
const headerBackAriaLabel = hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo";
|
|
60904
60908
|
const headerOnBack = hasConversation ? handleBack : () => handleActiveModeChange("mingo");
|
|
60905
60909
|
const headerOnRestore = isViewingArchived && unarchiveDialog && activeDialog ? () => setRestoreTarget(activeDialog) : void 0;
|
|
60906
60910
|
const headerOnRename = activeDialogId && activeDialog && mingoCaps.canRename ? () => setRenameTarget(activeDialog) : void 0;
|
|
60907
60911
|
const headerOnArchive = activeDialogId && activeDialog && mingoCaps.canArchive ? () => setArchiveTarget(activeDialog) : void 0;
|
|
60908
60912
|
const headerOnOpenArchive = fetchArchivedDialogs ? openArchive : void 0;
|
|
60909
|
-
const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess',
|
|
60910
|
-
const headerPersonName = _optionalChain([headerOwner, 'optionalAccess',
|
|
60911
|
-
const headerPersonAvatarUrl = headerOwner ? _optionalChain([headerOwner, 'access',
|
|
60913
|
+
const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _1710 => _1710.owner]) : void 0;
|
|
60914
|
+
const headerPersonName = _optionalChain([headerOwner, 'optionalAccess', _1711 => _1711.name, 'optionalAccess', _1712 => _1712.trim, 'call', _1713 => _1713()]) || headerUserName;
|
|
60915
|
+
const headerPersonAvatarUrl = headerOwner ? _optionalChain([headerOwner, 'access', _1714 => _1714.avatarUrl, 'optionalAccess', _1715 => _1715.trim, 'call', _1716 => _1716()]) || void 0 : _optionalChain([identityUser, 'optionalAccess', _1717 => _1717.avatarUrl, 'optionalAccess', _1718 => _1718.trim, 'call', _1719 => _1719()]) || _optionalChain([userAvatarUrl, 'optionalAccess', _1720 => _1720.trim, 'call', _1721 => _1721()]) || void 0;
|
|
60912
60916
|
const headerAvatar = headerPersonName || headerPersonAvatarUrl ? { name: headerPersonName, avatarUrl: headerPersonAvatarUrl } : void 0;
|
|
60913
60917
|
const handleNewChat = _react.useCallback.call(void 0, () => {
|
|
60914
60918
|
resetToNewChat();
|
|
@@ -61269,9 +61273,9 @@ function EmbeddableChatInner({
|
|
|
61269
61273
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
61270
61274
|
subtitleLoading: emptyStateLoading,
|
|
61271
61275
|
...guideWelcome,
|
|
61272
|
-
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
61273
|
-
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
61274
|
-
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess',
|
|
61276
|
+
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1722 => _1722.title]))),
|
|
61277
|
+
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1723 => _1723.icon]))),
|
|
61278
|
+
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _1724 => _1724.quickActions]), () => ( guideSuggestedActions)),
|
|
61275
61279
|
onQuickAction: (action) => {
|
|
61276
61280
|
setQuickActionPreview(null);
|
|
61277
61281
|
handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
|
|
@@ -61351,8 +61355,8 @@ function EmbeddableChatInner({
|
|
|
61351
61355
|
selectedContextItems: contextItems,
|
|
61352
61356
|
onToggleContextItem: toggleContextItem,
|
|
61353
61357
|
onRemoveContextItem: removeContextItem,
|
|
61354
|
-
contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess',
|
|
61355
|
-
onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess',
|
|
61358
|
+
contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _1725 => _1725.items]),
|
|
61359
|
+
onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _1726 => _1726.onRemove]),
|
|
61356
61360
|
contextPickerOpen,
|
|
61357
61361
|
onOpenContextPicker: openContextPicker,
|
|
61358
61362
|
onCloseContextPicker: closeContextPicker,
|
|
@@ -62548,4 +62552,4 @@ function EmbeddableChatInner({
|
|
|
62548
62552
|
|
|
62549
62553
|
|
|
62550
62554
|
exports.Label = Label; exports.AllowedDomainsInput = AllowedDomainsInput; exports.AnnouncementBarView = AnnouncementBarView; exports.FloatingTooltip = FloatingTooltip; exports.TruncateText = TruncateText; 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.DateFilterPanel = DateFilterPanel; exports.DateFilterMenu = DateFilterMenu; exports.DurationInput = DurationInput; exports.InfoHint = InfoHint; exports.Field = Field; exports.HoneypotField = HoneypotField; 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.JsonDetailList = JsonDetailList; exports.ProgressBar = ProgressBar; exports.InfoCard = InfoCard; exports.InfoRow = InfoRow; exports.DeletedUserAvatar = DeletedUserAvatar; exports.SearchableSelect = SearchableSelect; exports.formatDate = formatDate2; 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.titleCaseFromSlug = titleCaseFromSlug; 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.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getPlatformAccentColor = getPlatformAccentColor; exports.getCurrentPlatform = getCurrentPlatform; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; 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.useScrollFade = useScrollFade; exports.ScrollFadeOverlay = ScrollFadeOverlay; exports.ScrollShadow = ScrollShadow; 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.useConfirm = useConfirm; exports.useGuardedClose = useGuardedClose; exports.UnsavedChangesChip = UnsavedChangesChip; 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.CrossfadePanels = CrossfadePanels; 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.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.MermaidDiagram = MermaidDiagram; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.MarkdownEngine = MarkdownEngine; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.RichMarkdownRuntimeProvider = RichMarkdownRuntimeProvider; exports.useRichMarkdownRuntime = useRichMarkdownRuntime; exports.VideoPlayBadge = VideoPlayBadge; exports.VideoUnmuteGlyph = VideoUnmuteGlyph; exports.fetchPriorityProp = fetchPriorityProp; exports.MUX_STREAM_ORIGIN = MUX_STREAM_ORIGIN; exports.MUX_IMAGE_ORIGIN = MUX_IMAGE_ORIGIN; exports.saveDataEnabled = saveDataEnabled; exports.useVideoOriginPreconnect = useVideoOriginPreconnect; exports.useVideoWarmup = useVideoWarmup; 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.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.EmbedViewerFrame = EmbedViewerFrame; exports.FigmaEmbed = FigmaEmbed; exports.MarkdownImage = MarkdownImage; exports.processShortcodes = processShortcodes; exports.RichMarkdownRenderer = RichMarkdownRenderer; exports.ReleaseChangelogSection = ReleaseChangelogSection; exports.StackedRowsPanel = StackedRowsPanel; exports.SlackChannelChip = SlackChannelChip; exports.statusBadgeVariants = statusBadgeVariants; exports.genBadgeBgOpacity = genBadgeBgOpacity; exports.generationTierFromLabel = generationTierFromLabel; exports.StatusBadge = StatusBadge; exports.StatusIndicator = StatusIndicator; exports.HoverDropdown = HoverDropdown; exports.ExpandChevron = ExpandChevron; exports.useCollapsible = useCollapsible; exports.getCommandText = getCommandText; exports.ArgRow = ArgRow; exports.ResultBlock = ResultBlock; exports.CommandBlock = CommandBlock; exports.ApprovalStatusTag = ApprovalStatusTag; exports.ApprovalBatchMessage = ApprovalBatchMessage; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.ThinkingDisplay = ThinkingDisplay; exports.GuideDisplay = GuideDisplay; exports.AskDisplay = AskDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.MspOrganizationCardSkeleton = MspOrganizationCardSkeleton; 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.ChatMessageList = ChatMessageList; exports.getProxiedImageUrl = getProxiedImageUrl; exports.urlPathLooksLikeSvg = urlPathLooksLikeSvg; exports.shouldProxyImage = shouldProxyImage; exports.generateImageSizes = generateImageSizes; exports.useProxiedImageUrl = useProxiedImageUrl; exports.ChatMessageRow = ChatMessageRow; exports.ChatMessageRowSkeleton = ChatMessageRowSkeleton; exports.FAE_AVATAR_DATA_URI = FAE_AVATAR_DATA_URI; exports.AgentMark = AgentMark; exports.EntityIcon = EntityIcon; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipSkeleton = QuickActionChipSkeleton; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; 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.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.GuideModeBanner = GuideModeBanner; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatHeaderIconButton = ChatHeaderIconButton; exports.ChatHeaderSearchField = ChatHeaderSearchField; 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.ChatContextMemoryBar = ChatContextMemoryBar; 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.useCoverImageFallback = useCoverImageFallback; exports.hideOnError = hideOnError; exports.EntityPortraitCard = EntityPortraitCard; exports.FlamingoLogo = FlamingoLogo2; exports.PlatformBadge = PlatformBadge; exports.AdminContentCard = AdminContentCard; exports.getProxiedImageUrl2 = getProxiedImageUrl2; exports.WhatIShippedCard = WhatIShippedCard; exports.WhatIShippedCardSkeleton = WhatIShippedCardSkeleton; exports.VideoHoverPreviewSurface = VideoHoverPreviewSurface; exports.CardHitLayer = CardHitLayer; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.DEFAULT_VIDEO_BITES_TITLE = DEFAULT_VIDEO_BITES_TITLE; exports.toStripProfile = toStripProfile; exports.sortBitesByCreatedAtDesc = sortBitesByCreatedAtDesc; exports.PAGE_HEADING_CLASS = PAGE_HEADING_CLASS; exports.SECTION_HEADING_CLASS = SECTION_HEADING_CLASS; exports.PageHeading = PageHeading; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.UserDisplay = UserDisplay; exports.VideoBitesStrip = VideoBitesStrip; 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.AvatarStack = AvatarStack; 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.programItemToStripProfile = programItemToStripProfile; exports.transformEventToProgram = transformEventToProgram; exports.transformPodcastToProgram = transformPodcastToProgram; exports.transformWebinarToProgram = transformWebinarToProgram; 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.canonicalContentRefType = canonicalContentRefType; exports.buildListUrl = buildListUrl; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.readFetchedCardTitle = readFetchedCardTitle; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.clickupTaskUrl = clickupTaskUrl; 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.APPROVAL_BLOCK_VARIANT = APPROVAL_BLOCK_VARIANT; exports.CONNECTION_STATUS = CONNECTION_STATUS; exports.isStructuredContent = isStructuredContent; exports.normalizeContent = normalizeContent2; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.useChunkCatchup = useChunkCatchup; exports.useScriptedStream = useScriptedStream; exports.RESYNC_AFTER_HIDDEN_MS = RESYNC_AFTER_HIDDEN_MS; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; 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.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.buildDiscussPrompt = buildDiscussPrompt; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.isGuideApproval = isGuideApproval; exports.guideApprovalOrigin = guideApprovalOrigin; exports.approvalDisplaysInline = approvalDisplaysInline; exports.isGuideApprovalSegment = isGuideApprovalSegment; exports.createEmptyTurnMeta = createEmptyTurnMeta; exports.createChatStreamReducer = createChatStreamReducer; exports.DEFAULT_DIALOG_SIDE = DEFAULT_DIALOG_SIDE; exports.DEFAULT_MAX_REDUCERS = DEFAULT_MAX_REDUCERS; exports.MAX_PENDING_RETAIN_KEYS = MAX_PENDING_RETAIN_KEYS; exports.createChatDialogStore = createChatDialogStore; exports.createDeltaBatcher = createDeltaBatcher; exports.useChatStreamReducer = useChatStreamReducer; exports.useSseChatAdapter = useSseChatAdapter; exports.decodeHistoricalMessageData = decodeHistoricalMessageData; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.extractIncompleteTailState = extractIncompleteTailState; exports.mapProcessedToUnified = mapProcessedToUnified; exports.historicalToUnified = historicalToUnified; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useUnifiedChat = useUnifiedChat; 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.flattenAssistantContent = flattenAssistantContent; exports.normalizeHistoricalMessageData = normalizeHistoricalMessageData; exports.isHistoricalUserTurn = isHistoricalUserTurn; exports.buildStreamFrames = buildStreamFrames; exports.EmbeddableChat = EmbeddableChat; exports.BackButton = BackButton; 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.SEO_DESCRIPTION_MAX_LENGTH = SEO_DESCRIPTION_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.TICKET_OPEN_PARAM = TICKET_OPEN_PARAM; exports.buildTicketOpenHref = buildTicketOpenHref; 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.BITE_ID_RE = BITE_ID_RE; exports.generateBiteId = generateBiteId; exports.ensureBiteIds = ensureBiteIds; exports.matchBiteElement = matchBiteElement; 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.isDismissedCookieValue = isDismissedCookieValue; exports.readDismissCookie = readDismissCookie; exports.writeDismissCookie = writeDismissCookie; exports.clearDismissCookie = clearDismissCookie; exports.announcementDismissCookieName = announcementDismissCookieName; exports.dismissAnnouncement = dismissAnnouncement; exports.isAnnouncementDismissed = isAnnouncementDismissed; exports.clearAnnouncementDismissals = clearAnnouncementDismissals; exports.clearLegacyAnnouncementCache = clearLegacyAnnouncementCache; exports.WALKTHROUGH_VIDEO_DISMISS_KEY = WALKTHROUGH_VIDEO_DISMISS_KEY; exports.walkthroughDismissCookieName = walkthroughDismissCookieName; exports.isWalkthroughDismissed = isWalkthroughDismissed; exports.dismissWalkthrough = dismissWalkthrough; exports.clearWalkthroughDismissal = clearWalkthroughDismissal; exports.WALKTHROUGH_OPEN_QUERY_PARAM = WALKTHROUGH_OPEN_QUERY_PARAM; exports.withWalkthroughOpenParam = withWalkthroughOpenParam; exports.createSseSubscription = createSseSubscription; exports.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.ANNOUNCEMENT_CTA_DEFAULTS = ANNOUNCEMENT_CTA_DEFAULTS; 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.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.extractSections = extractSections; exports.SCHEDULING_SLUG_SHAPE = SCHEDULING_SLUG_SHAPE; exports.MAX_MONTH_OFFSET = MAX_MONTH_OFFSET; exports.isValidSchedulingSlug = isValidSchedulingSlug; exports.parseSchedulingLinkName = parseSchedulingLinkName; exports.isListedSchedulingName = isListedSchedulingName; exports.schedulingAudienceKey = schedulingAudienceKey; exports.SECTION_HERO_ICON_CLASS = SECTION_HERO_ICON_CLASS; exports.FIRST_TOUCH_ATTRIBUTION_KEY = FIRST_TOUCH_ATTRIBUTION_KEY; exports.sanitizeLandingUrl = sanitizeLandingUrl; exports.parseAttributionFromUrl = parseAttributionFromUrl; exports.captureFirstTouchAttribution = captureFirstTouchAttribution; exports.getFirstTouchAttribution = getFirstTouchAttribution; exports.withFirstTouchAttribution = withFirstTouchAttribution; exports.clearFirstTouchAttribution = clearFirstTouchAttribution; 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.DashboardInfoCard = DashboardInfoCard; exports.InfoCardRow = InfoCardRow; exports.OSTypeBadge = OSTypeBadge; exports.OSTypeIcon = OSTypeIcon; exports.OSTypeLabel = OSTypeLabel; exports.DeviceCard = DeviceCard; exports.DeviceCardCompact = DeviceCardCompact; exports.FeatureCardGrid = FeatureCardGrid; exports.FeatureList = FeatureList; 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.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.AuthBenefitsPanel = AuthBenefitsPanel; exports.OpenFrameWordmark = OpenFrameWordmark; exports.PoweredByFlamingo = PoweredByFlamingo; exports.AuthShell = AuthShell; exports.BackToLoginLink = BackToLoginLink; exports.PasswordInput = PasswordInput; exports.PROVIDER_META = PROVIDER_META; exports.SsoProviderButtons = SsoProviderButtons; exports.CompleteAccountForm = CompleteAccountForm; exports.TermsAgreementLabel = TermsAgreementLabel; exports.CreateOrganizationForm = CreateOrganizationForm; exports.InviteLinkInvalidModal = InviteLinkInvalidModal; exports.LoginForm = LoginForm; exports.OpenFrameSsoLoginForm = OpenFrameSsoLoginForm; exports.OpenFrameSsoSignUpForm = OpenFrameSsoSignUpForm; exports.PasswordResetForm = PasswordResetForm; exports.SsoAuthShell = SsoAuthShell; 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.VideoBitesDisplay = VideoBitesDisplay; exports.FloatingWalkthroughVideo = FloatingWalkthroughVideo; exports.useWalkthroughVideo = useWalkthroughVideo; 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.useAppLayoutDrawerContainer = useAppLayoutDrawerContainer; 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.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.UnreadDot = UnreadDot; exports.UnreadCountBadge = UnreadCountBadge; exports.HeaderButton = HeaderButton; exports.TimeTrackerHeaderButton = TimeTrackerHeaderButton; exports.BoardColumnHeader = BoardColumnHeader; exports.tintOnDark = tintOnDark; exports.BoardTicketApproval = BoardTicketApproval; exports.TicketCardBody = TicketCardBody; exports.TicketCardView = TicketCardView; 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.ROW_SHELL_CLASSES = ROW_SHELL_CLASSES; 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.formatTestRunDuration = formatTestRunDuration; exports.TestResultsSkeleton = TestResultsSkeleton; exports.TestResultsTable = TestResultsTable; exports.TestRunErrorBanner = TestRunErrorBanner; exports.TestRunResults = TestRunResults; exports.TimingStat = TimingStat; exports.TestRunStatusStat = TestRunStatusStat; exports.useTestRunState = useTestRunState; exports.TicketDetailSection = TicketDetailSection; exports.TicketAttachmentsList = TicketAttachmentsList; exports.TicketNoteCard = TicketNoteCard; exports.TicketNotesSection = TicketNotesSection; exports.TicketInfoSection = TicketInfoSection; exports.renderTicketStatusOption = renderTicketStatusOption; exports.renderTicketAssigneeOption = renderTicketAssigneeOption; exports.TakeOverTicketModal = TakeOverTicketModal; exports.ReopenTicketModal = ReopenTicketModal; exports.FilterPillRow = FilterPillRow; exports.MingoAiButton = MingoAiButton; exports.MOBILE_NAV_PANEL_ID = MOBILE_NAV_PANEL_ID; exports.MobileNavPanel = MobileNavPanel; exports.useOptionalTicketLive = useOptionalTicketLive; exports.useTicketLive = useTicketLive; exports.TicketLiveProvider = TicketLiveProvider; exports.isOptimistic = isOptimistic; exports.TICKET_TEXT_MAX_CHARS = TICKET_TEXT_MAX_CHARS; exports.TICKET_MARK_READ_DEBOUNCE_MS = TICKET_MARK_READ_DEBOUNCE_MS; exports.TOAST_COPY = TOAST_COPY; exports.TicketAlertsButton = TicketAlertsButton; exports.TopNavigation = TopNavigation; exports.Header = Header2; exports.HeaderSkeleton = HeaderSkeleton; exports.ClientOnlyHeader = ClientOnlyHeader; exports.SlidingSidebar = SlidingSidebar; exports.StickySectionNav = StickySectionNav; exports.useSectionNavigation = useSectionNavigation; exports.NAVIGATION_SIDEBAR_WIDTH_VAR = NAVIGATION_SIDEBAR_WIDTH_VAR; exports.NavigationSidebar = NavigationSidebar; exports.HeaderGlobalSearch = HeaderGlobalSearch; exports.HeaderMingoButton = HeaderMingoButton; exports.HeaderOrganizationFilter = HeaderOrganizationFilter; exports.AppHeader = AppHeader; exports.MobileBurgerMenu = MobileBurgerMenu; exports.AppLayout = AppLayout; 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;
|
|
62551
|
-
//# sourceMappingURL=chunk-
|
|
62555
|
+
//# sourceMappingURL=chunk-I5MSZCOS.cjs.map
|