@flamingo-stack/openframe-frontend-core 0.0.619-snapshot.20260913210426 → 0.0.619
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-LNF5W3QJ.js → chunk-3BNNYHP2.js} +3 -3
- package/dist/{chunk-5AB6QLIQ.js → chunk-3Z5ZIKDX.js} +3 -3
- package/dist/{chunk-T5ZKUSVJ.cjs → chunk-4ZGUSO7M.cjs} +5 -5
- package/dist/{chunk-T5ZKUSVJ.cjs.map → chunk-4ZGUSO7M.cjs.map} +1 -1
- package/dist/{chunk-G6LYVK64.js → chunk-5DUTXG6P.js} +3 -3
- package/dist/{chunk-7FPWMX26.js → chunk-65SWJSQX.js} +7 -39
- package/dist/chunk-65SWJSQX.js.map +1 -0
- package/dist/{chunk-TMGTVVE2.js → chunk-7HWVD42H.js} +2 -2
- package/dist/{chunk-RBV63HZO.cjs → chunk-AU2Q75HU.cjs} +6 -6
- package/dist/{chunk-RBV63HZO.cjs.map → chunk-AU2Q75HU.cjs.map} +1 -1
- package/dist/{chunk-T7FTSJM2.js → chunk-D4ARG53E.js} +6 -6
- package/dist/{chunk-ZLILFOPN.cjs → chunk-DXR23SLZ.cjs} +198 -198
- package/dist/{chunk-ZLILFOPN.cjs.map → chunk-DXR23SLZ.cjs.map} +1 -1
- package/dist/{chunk-KMWB52KV.cjs → chunk-EIFU6N5L.cjs} +29 -29
- package/dist/{chunk-KMWB52KV.cjs.map → chunk-EIFU6N5L.cjs.map} +1 -1
- package/dist/{chunk-CS7MVDUF.cjs → chunk-EYKTKDRK.cjs} +2 -3
- package/dist/chunk-EYKTKDRK.cjs.map +1 -0
- package/dist/{chunk-VRN27OMD.cjs → chunk-GAPXVAS6.cjs} +368 -400
- package/dist/chunk-GAPXVAS6.cjs.map +1 -0
- package/dist/{chunk-HC6FZJMM.cjs → chunk-GNWKLE7O.cjs} +32 -32
- package/dist/{chunk-HC6FZJMM.cjs.map → chunk-GNWKLE7O.cjs.map} +1 -1
- package/dist/{chunk-SGAMQ4G7.cjs → chunk-HF4EZICZ.cjs} +3 -3
- package/dist/{chunk-SGAMQ4G7.cjs.map → chunk-HF4EZICZ.cjs.map} +1 -1
- package/dist/{chunk-4SH2L3HO.js → chunk-HPIRQWNK.js} +3 -3
- package/dist/{chunk-GMBETTTE.js → chunk-I7RWVDN4.js} +5 -5
- package/dist/{chunk-POSO6GYC.js → chunk-J27HVNT2.js} +3 -3
- package/dist/{chunk-BR5PVFWG.js → chunk-JA2SIJ7T.js} +4 -4
- package/dist/{chunk-XGVWMJQD.js → chunk-JBXNDB5U.js} +7 -7
- package/dist/{chunk-Z5OZCZYH.cjs → chunk-KQDGZS3U.cjs} +33 -33
- package/dist/{chunk-Z5OZCZYH.cjs.map → chunk-KQDGZS3U.cjs.map} +1 -1
- package/dist/{chunk-ZBXPNBKB.js → chunk-LPGBA4UZ.js} +3 -3
- package/dist/{chunk-ECOJUPXO.cjs → chunk-M4V2O2MT.cjs} +10 -10
- package/dist/{chunk-ECOJUPXO.cjs.map → chunk-M4V2O2MT.cjs.map} +1 -1
- package/dist/{chunk-KLAL4FTU.js → chunk-MJRXGAXS.js} +5 -5
- package/dist/{chunk-YKHVTESH.cjs → chunk-NOW7NGUH.cjs} +15 -15
- package/dist/{chunk-YKHVTESH.cjs.map → chunk-NOW7NGUH.cjs.map} +1 -1
- package/dist/{chunk-CKH4SLD5.js → chunk-OD4JKGQG.js} +6 -6
- package/dist/{chunk-FCMCCPQI.cjs → chunk-P3I5KY4A.cjs} +20 -20
- package/dist/{chunk-FCMCCPQI.cjs.map → chunk-P3I5KY4A.cjs.map} +1 -1
- package/dist/{chunk-5NYMTTUB.cjs → chunk-QVOS4BPC.cjs} +57 -57
- package/dist/{chunk-5NYMTTUB.cjs.map → chunk-QVOS4BPC.cjs.map} +1 -1
- package/dist/{chunk-GZFVTFMU.js → chunk-RTC3H5RW.js} +4 -4
- package/dist/{chunk-43JQ3SJS.js → chunk-S44BHDOI.js} +2 -3
- package/dist/{chunk-43JQ3SJS.js.map → chunk-S44BHDOI.js.map} +1 -1
- package/dist/{chunk-UY4EFV3P.js → chunk-SKRI6QJ5.js} +2 -2
- package/dist/{chunk-CSQZMK3O.cjs → chunk-U7MQS4CR.cjs} +80 -80
- package/dist/{chunk-CSQZMK3O.cjs.map → chunk-U7MQS4CR.cjs.map} +1 -1
- package/dist/{chunk-PTANIWHA.cjs → chunk-UP2OB7RI.cjs} +11 -11
- package/dist/{chunk-PTANIWHA.cjs.map → chunk-UP2OB7RI.cjs.map} +1 -1
- package/dist/{chunk-4NKJRJU4.cjs → chunk-UWPZT3FY.cjs} +6 -6
- package/dist/{chunk-4NKJRJU4.cjs.map → chunk-UWPZT3FY.cjs.map} +1 -1
- package/dist/{chunk-IVFU4RFK.cjs → chunk-XRWY5ETC.cjs} +22 -22
- package/dist/{chunk-IVFU4RFK.cjs.map → chunk-XRWY5ETC.cjs.map} +1 -1
- package/dist/{chunk-RSGFPFSM.cjs → chunk-YNA7ZCDS.cjs} +28 -28
- package/dist/{chunk-RSGFPFSM.cjs.map → chunk-YNA7ZCDS.cjs.map} +1 -1
- package/dist/{chunk-DJVN7IW6.js → chunk-ZPJ6KYAW.js} +3 -3
- package/dist/components/case-studies/index.cjs +10 -10
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/entity-cards/dispatch.d.ts +0 -6
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/index.d.ts +1 -1
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +3 -5
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +2 -4
- package/dist/components/chat/utils/icon-registry.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/docs/index.js +7 -7
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/features/index.js +3 -3
- package/dist/components/help-center-pages/index.cjs +24 -24
- package/dist/components/help-center-pages/index.js +15 -15
- package/dist/components/index.cjs +53 -55
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +15 -17
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- package/dist/components/meeting-scheduler/index.js +3 -3
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/navigation/index.js +6 -6
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/tickets/index.js +7 -7
- package/dist/components/ui/index.cjs +4 -6
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +3 -5
- package/dist/index.cjs +8 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -9
- package/dist/index.js.map +1 -1
- package/dist/types/video-processing.d.ts +1 -1
- package/dist/types/video-processing.d.ts.map +1 -1
- package/dist/utils/index.cjs +3 -8
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +4 -9
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/list-url.d.ts.map +1 -1
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +4 -40
- package/src/components/chat/entity-cards/index.ts +0 -1
- package/src/components/chat/utils/icon-registry.ts +0 -3
- package/src/types/video-processing.ts +1 -2
- package/src/utils/__tests__/list-url.test.ts +0 -1
- package/src/utils/list-url.ts +0 -1
- package/src/utils/source-icons.ts +0 -3
- package/dist/chunk-7FPWMX26.js.map +0 -1
- package/dist/chunk-CS7MVDUF.cjs.map +0 -1
- package/dist/chunk-VRN27OMD.cjs.map +0 -1
- package/src/__tests__/chat-card-label.test.tsx +0 -24
- /package/dist/{chunk-LNF5W3QJ.js.map → chunk-3BNNYHP2.js.map} +0 -0
- /package/dist/{chunk-5AB6QLIQ.js.map → chunk-3Z5ZIKDX.js.map} +0 -0
- /package/dist/{chunk-G6LYVK64.js.map → chunk-5DUTXG6P.js.map} +0 -0
- /package/dist/{chunk-TMGTVVE2.js.map → chunk-7HWVD42H.js.map} +0 -0
- /package/dist/{chunk-T7FTSJM2.js.map → chunk-D4ARG53E.js.map} +0 -0
- /package/dist/{chunk-4SH2L3HO.js.map → chunk-HPIRQWNK.js.map} +0 -0
- /package/dist/{chunk-GMBETTTE.js.map → chunk-I7RWVDN4.js.map} +0 -0
- /package/dist/{chunk-POSO6GYC.js.map → chunk-J27HVNT2.js.map} +0 -0
- /package/dist/{chunk-BR5PVFWG.js.map → chunk-JA2SIJ7T.js.map} +0 -0
- /package/dist/{chunk-XGVWMJQD.js.map → chunk-JBXNDB5U.js.map} +0 -0
- /package/dist/{chunk-ZBXPNBKB.js.map → chunk-LPGBA4UZ.js.map} +0 -0
- /package/dist/{chunk-KLAL4FTU.js.map → chunk-MJRXGAXS.js.map} +0 -0
- /package/dist/{chunk-CKH4SLD5.js.map → chunk-OD4JKGQG.js.map} +0 -0
- /package/dist/{chunk-GZFVTFMU.js.map → chunk-RTC3H5RW.js.map} +0 -0
- /package/dist/{chunk-UY4EFV3P.js.map → chunk-SKRI6QJ5.js.map} +0 -0
- /package/dist/{chunk-DJVN7IW6.js.map → chunk-ZPJ6KYAW.js.map} +0 -0
|
@@ -120,7 +120,6 @@ var _chunkKOQCA5X5cjs = require('./chunk-KOQCA5X5.cjs');
|
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
|
|
123
|
-
|
|
124
123
|
|
|
125
124
|
|
|
126
125
|
var _chunkGSQM4PDRcjs = require('./chunk-GSQM4PDR.cjs');
|
|
@@ -172,7 +171,7 @@ var _chunkGSQM4PDRcjs = require('./chunk-GSQM4PDR.cjs');
|
|
|
172
171
|
|
|
173
172
|
|
|
174
173
|
|
|
175
|
-
var
|
|
174
|
+
var _chunkEYKTKDRKcjs = require('./chunk-EYKTKDRK.cjs');
|
|
176
175
|
|
|
177
176
|
|
|
178
177
|
var _chunkWLSFBRT5cjs = require('./chunk-WLSFBRT5.cjs');
|
|
@@ -4783,7 +4782,7 @@ function MspOrganizationCard({
|
|
|
4783
4782
|
className
|
|
4784
4783
|
),
|
|
4785
4784
|
children: [
|
|
4786
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4785
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
|
|
4787
4786
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
4788
4787
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h3", children: _nullishCoalesce(title, () => ( `Your IT is managed by ${name}`)) }),
|
|
4789
4788
|
website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
|
|
@@ -4916,7 +4915,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4916
4915
|
] })
|
|
4917
4916
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
4918
4917
|
userIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-ods-accent", children: userIcon }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4919
|
-
|
|
4918
|
+
_chunkEYKTKDRKcjs.SquareAvatar,
|
|
4920
4919
|
{
|
|
4921
4920
|
src: userAvatar,
|
|
4922
4921
|
alt: userName,
|
|
@@ -5209,7 +5208,6 @@ function MingoOnboardingCard({
|
|
|
5209
5208
|
|
|
5210
5209
|
|
|
5211
5210
|
|
|
5212
|
-
|
|
5213
5211
|
|
|
5214
5212
|
|
|
5215
5213
|
var OpenFrameLogoIcon = ({ className }) => _react.createElement.call(void 0, _chunk63QUMV72cjs.OpenFrameLogo, { className, upperPathColor: "currentColor" });
|
|
@@ -5250,7 +5248,6 @@ var ICON_REGISTRY = {
|
|
|
5250
5248
|
newspaper: _lucidereact.Newspaper,
|
|
5251
5249
|
package: _lucidereact.Package,
|
|
5252
5250
|
"pen-square": _lucidereact.PenSquare,
|
|
5253
|
-
phone: _lucidereact.Phone,
|
|
5254
5251
|
rocket: _lucidereact.Rocket,
|
|
5255
5252
|
search: _lucidereact.Search,
|
|
5256
5253
|
send: _lucidereact.Send,
|
|
@@ -5300,7 +5297,6 @@ var PASCAL_TO_KEBAB_ALIASES = {
|
|
|
5300
5297
|
Newspaper: "newspaper",
|
|
5301
5298
|
Package: "package",
|
|
5302
5299
|
PenSquare: "pen-square",
|
|
5303
|
-
Phone: "phone",
|
|
5304
5300
|
Rocket: "rocket",
|
|
5305
5301
|
Search: "search",
|
|
5306
5302
|
Send: "send",
|
|
@@ -7300,7 +7296,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
7300
7296
|
// Host-supplied brand icon (e.g. Mingo): render it directly,
|
|
7301
7297
|
// no filled pill — the icon carries its own brand accent.
|
|
7302
7298
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-shrink-0 items-center justify-center", children: assistantIcon })
|
|
7303
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7299
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.SquareAvatar, { ...avatarProps })),
|
|
7304
7300
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7305
7301
|
"span",
|
|
7306
7302
|
{
|
|
@@ -8096,7 +8092,7 @@ ChatMessageList.displayName = "ChatMessageList";
|
|
|
8096
8092
|
// src/components/chat/hooks/use-proxied-image-url.ts
|
|
8097
8093
|
function useProxiedImageUrl(url) {
|
|
8098
8094
|
const r = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
|
|
8099
|
-
return _nullishCoalesce(
|
|
8095
|
+
return _nullishCoalesce(_chunkEYKTKDRKcjs.getProxiedImageUrl.call(void 0, _nullishCoalesce(url, () => ( "")), {
|
|
8100
8096
|
proxyPrefix: r.endpoints.imageProxyUrlPrefix,
|
|
8101
8097
|
skipDomains: r.endpoints.imageProxySkipDomains,
|
|
8102
8098
|
directHttps: true
|
|
@@ -8122,7 +8118,7 @@ function ChatMessageRow({ displayName, avatarUrl, timeLabel, body, footer }) {
|
|
|
8122
8118
|
height: 40,
|
|
8123
8119
|
onError: () => setFailedSrc(_nullishCoalesce(resolvedAvatar, () => ( null)))
|
|
8124
8120
|
}
|
|
8125
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg text-ods-text-primary text-h6 md:h-10 md:w-10", children:
|
|
8121
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg text-ods-text-primary text-h6 md:h-10 md:w-10", children: _chunkEYKTKDRKcjs.personInitials.call(void 0, displayName) || "?" }),
|
|
8126
8122
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 max-w-full flex-1", children: [
|
|
8127
8123
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-1 flex min-w-0 max-w-full items-center gap-2", children: [
|
|
8128
8124
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-body text-[14px] font-bold leading-[1.33] tracking-[-0.02em] text-ods-text-primary md:text-[15px]", children: displayName }),
|
|
@@ -9426,7 +9422,7 @@ function MingoChatHistoryRow({
|
|
|
9426
9422
|
hasMenu && (menuOpen ? "pointer-events-none opacity-0" : "md:group-hover/row:pointer-events-none md:group-hover/row:opacity-0 md:peer-[:focus-within]/menu:pointer-events-none md:peer-[:focus-within]/menu:opacity-0")
|
|
9427
9423
|
),
|
|
9428
9424
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9429
|
-
|
|
9425
|
+
_chunkEYKTKDRKcjs.SquareAvatar,
|
|
9430
9426
|
{
|
|
9431
9427
|
variant: "round",
|
|
9432
9428
|
sizePx: 24,
|
|
@@ -10567,7 +10563,7 @@ function ChatPanelHeader({
|
|
|
10567
10563
|
avatar && (avatar.name || avatar.avatarUrl) ? (
|
|
10568
10564
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
10569
10565
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10570
|
-
|
|
10566
|
+
_chunkEYKTKDRKcjs.SquareAvatar,
|
|
10571
10567
|
{
|
|
10572
10568
|
variant: "round",
|
|
10573
10569
|
sizePx: 32,
|
|
@@ -10781,8 +10777,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size: size2 = "default
|
|
|
10781
10777
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
|
|
10782
10778
|
(!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
|
|
10783
10779
|
status === "sniffing" && "Checking\u2026",
|
|
10784
|
-
status === "uploading" && `${progress}% \xB7 ${
|
|
10785
|
-
status === "ready" &&
|
|
10780
|
+
status === "uploading" && `${progress}% \xB7 ${_chunkEYKTKDRKcjs.formatFileSize.call(void 0, file.size)}`,
|
|
10781
|
+
status === "ready" && _chunkEYKTKDRKcjs.formatFileSize.call(void 0, file.size),
|
|
10786
10782
|
status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
|
|
10787
10783
|
] })
|
|
10788
10784
|
] }),
|
|
@@ -11579,10 +11575,10 @@ function resolveExternalNavigation(args) {
|
|
|
11579
11575
|
|
|
11580
11576
|
// src/components/chat/utils/execute-navigation.ts
|
|
11581
11577
|
function isForeignOriginHref(href) {
|
|
11582
|
-
return /^https?:\/\//i.test(href) && !
|
|
11578
|
+
return /^https?:\/\//i.test(href) && !_chunkEYKTKDRKcjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
11583
11579
|
}
|
|
11584
11580
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
11585
|
-
const isNewTab = runtime ?
|
|
11581
|
+
const isNewTab = runtime ? _chunkEYKTKDRKcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
11586
11582
|
if (isNewTab) {
|
|
11587
11583
|
if (_optionalChain([runtime, 'optionalAccess', _204 => _204.navigation, 'access', _205 => _205.openExternal])) runtime.navigation.openExternal(href);
|
|
11588
11584
|
else window.open(href, "_blank", NEW_TAB_FEATURES);
|
|
@@ -11641,7 +11637,7 @@ function NavLinkAnchorViaRuntime({
|
|
|
11641
11637
|
const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
|
|
11642
11638
|
const panel = useChatPanel();
|
|
11643
11639
|
const resolvedHref = resolveHrefForRuntime(href, runtime);
|
|
11644
|
-
const isNewTab =
|
|
11640
|
+
const isNewTab = _chunkEYKTKDRKcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
11645
11641
|
const onClick = (e) => {
|
|
11646
11642
|
const handled = executeNavigation({
|
|
11647
11643
|
event: e,
|
|
@@ -11653,7 +11649,7 @@ function NavLinkAnchorViaRuntime({
|
|
|
11653
11649
|
});
|
|
11654
11650
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _209 => _209.closeChat])) panel.closeChat();
|
|
11655
11651
|
};
|
|
11656
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: resolvedHref, ...
|
|
11652
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: resolvedHref, ..._chunkEYKTKDRKcjs.newTabAnchorAttrs.call(void 0, isNewTab), onClick, className, children });
|
|
11657
11653
|
}
|
|
11658
11654
|
|
|
11659
11655
|
// src/components/chat/source-action-button.tsx
|
|
@@ -12895,9 +12891,9 @@ function UserDisplay({
|
|
|
12895
12891
|
}) {
|
|
12896
12892
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
12897
12893
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12898
|
-
|
|
12894
|
+
_chunkEYKTKDRKcjs.SquareAvatar,
|
|
12899
12895
|
{
|
|
12900
|
-
src: avatarUrl ?
|
|
12896
|
+
src: avatarUrl ? _chunkEYKTKDRKcjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
|
|
12901
12897
|
fallback: name,
|
|
12902
12898
|
alt: name,
|
|
12903
12899
|
sizePx: size2,
|
|
@@ -13397,7 +13393,7 @@ function VideoHoverPreviewSurface({
|
|
|
13397
13393
|
return () => io.disconnect();
|
|
13398
13394
|
}, [gateControlled]);
|
|
13399
13395
|
const showMedia = continuation || (gateControlled ? playerMounted : isNear);
|
|
13400
|
-
const { src: posterSrc, onError: onPosterError } =
|
|
13396
|
+
const { src: posterSrc, onError: onPosterError } = _chunkEYKTKDRKcjs.useCoverImageFallback.call(void 0, posterUrl);
|
|
13401
13397
|
const facadeSkipped = preload === "none" && !posterSrc;
|
|
13402
13398
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootElRef, className: _chunk23V5BSHDcjs.cn.call(void 0, "absolute inset-0", className), inert: isClone || void 0, children: showMedia ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13403
13399
|
posterSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13515,7 +13511,7 @@ function groupByAspectRatio(items, getAspectRatio) {
|
|
|
13515
13511
|
|
|
13516
13512
|
function VideoBitesStrip({
|
|
13517
13513
|
bites,
|
|
13518
|
-
title =
|
|
13514
|
+
title = _chunkEYKTKDRKcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
13519
13515
|
showTitle = true,
|
|
13520
13516
|
filterPublished = true,
|
|
13521
13517
|
profile = null,
|
|
@@ -13528,7 +13524,7 @@ function VideoBitesStrip({
|
|
|
13528
13524
|
cardHeightMobile = 300,
|
|
13529
13525
|
showChevrons = true,
|
|
13530
13526
|
onBiteNavigate,
|
|
13531
|
-
sortComparator =
|
|
13527
|
+
sortComparator = _chunkEYKTKDRKcjs.sortBitesByCreatedAtDesc,
|
|
13532
13528
|
className
|
|
13533
13529
|
}) {
|
|
13534
13530
|
const items = _react.useMemo.call(void 0, () => {
|
|
@@ -13753,7 +13749,7 @@ function EntityVideoSection({
|
|
|
13753
13749
|
title = "Video",
|
|
13754
13750
|
videoSummary,
|
|
13755
13751
|
videoBites,
|
|
13756
|
-
bitesTitle =
|
|
13752
|
+
bitesTitle = _chunkEYKTKDRKcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
13757
13753
|
filterPublishedBites = true,
|
|
13758
13754
|
bitesProfile = null,
|
|
13759
13755
|
bitesHref,
|
|
@@ -13992,7 +13988,7 @@ function ReviewStateBadge({ state, className = "" }) {
|
|
|
13992
13988
|
function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
|
|
13993
13989
|
const kind = _nullishCoalesce(item.kind, () => ( "commit"));
|
|
13994
13990
|
const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
|
|
13995
|
-
const dateText =
|
|
13991
|
+
const dateText = _chunkEYKTKDRKcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
13996
13992
|
const idLabel = formatActivityId(item.id, kind);
|
|
13997
13993
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
13998
13994
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
@@ -14026,26 +14022,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
14026
14022
|
metaParts.push(
|
|
14027
14023
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
14028
14024
|
);
|
|
14029
|
-
const href =
|
|
14025
|
+
const href = _chunkEYKTKDRKcjs.safeHref.call(void 0, item.url);
|
|
14030
14026
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14031
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14032
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14033
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14027
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
14028
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14029
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
14034
14030
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
14035
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14031
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
14036
14032
|
] }),
|
|
14037
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14033
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
14038
14034
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
14039
14035
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
14040
14036
|
] }, i)) }) }),
|
|
14041
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14037
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SUMMARY, children: _chunkEYKTKDRKcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
14042
14038
|
] }),
|
|
14043
14039
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
14044
14040
|
] });
|
|
14045
14041
|
if (anchorProps) {
|
|
14046
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14042
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
14047
14043
|
}
|
|
14048
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
14044
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
14049
14045
|
}
|
|
14050
14046
|
function GitHubActivityCardSkeleton({
|
|
14051
14047
|
variant = "compact",
|
|
@@ -14062,12 +14058,12 @@ function GitHubActivityCardSkeleton({
|
|
|
14062
14058
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
14063
14059
|
] });
|
|
14064
14060
|
}
|
|
14065
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14066
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14067
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14068
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14069
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14070
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14061
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14062
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
14063
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14064
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
|
|
14065
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
14066
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SUMMARY, children: _chunkEYKTKDRKcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
14071
14067
|
] }),
|
|
14072
14068
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
14073
14069
|
] });
|
|
@@ -14091,7 +14087,7 @@ function parseChannelFromUrl(url) {
|
|
|
14091
14087
|
}
|
|
14092
14088
|
function SlackMessageCard({ item, variant = "compact", className, anchorProps }) {
|
|
14093
14089
|
const channel = _nullishCoalesce(_nullishCoalesce(item.channel, () => ( parseChannelFromUrl(item.url))), () => ( null));
|
|
14094
|
-
const dateText =
|
|
14090
|
+
const dateText = _chunkEYKTKDRKcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
14095
14091
|
if (variant === "row") {
|
|
14096
14092
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14097
14093
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKOQCA5X5cjs.SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
@@ -14117,23 +14113,23 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
|
|
|
14117
14113
|
metaParts.push(
|
|
14118
14114
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
14119
14115
|
);
|
|
14120
|
-
const href =
|
|
14116
|
+
const href = _chunkEYKTKDRKcjs.safeHref.call(void 0, item.url);
|
|
14121
14117
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14122
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14123
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14124
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14125
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14126
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14118
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKOQCA5X5cjs.SlackIcon, { className: "h-5 w-5" }) }),
|
|
14119
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14120
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE, children: item.title }) }),
|
|
14121
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunkEYKTKDRKcjs.COMPACT_CARD_ROW_FILLER }) }),
|
|
14122
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
14127
14123
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
14128
14124
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
14129
|
-
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14125
|
+
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SUMMARY, children: _chunkEYKTKDRKcjs.COMPACT_CARD_ROW_FILLER }) }) })
|
|
14130
14126
|
] }),
|
|
14131
14127
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
14132
14128
|
] });
|
|
14133
14129
|
if (anchorProps) {
|
|
14134
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14130
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
14135
14131
|
}
|
|
14136
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
14132
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
14137
14133
|
}
|
|
14138
14134
|
function SlackMessageCardSkeleton({
|
|
14139
14135
|
variant = "compact",
|
|
@@ -14148,12 +14144,12 @@ function SlackMessageCardSkeleton({
|
|
|
14148
14144
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
14149
14145
|
] });
|
|
14150
14146
|
}
|
|
14151
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14152
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14153
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14154
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14155
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14156
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14147
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14148
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
14149
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14150
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
|
|
14151
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }) }),
|
|
14152
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
|
|
14157
14153
|
] }),
|
|
14158
14154
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
14159
14155
|
] });
|
|
@@ -14184,12 +14180,12 @@ function statusScheme(status) {
|
|
|
14184
14180
|
function HubspotTicketCard({ item, variant = "compact", className, anchorProps }) {
|
|
14185
14181
|
const statusText = _nullishCoalesce(item.statusLabel, () => ( formatToken(item.status)));
|
|
14186
14182
|
const priorityText = formatToken(item.priority);
|
|
14187
|
-
const dateText =
|
|
14183
|
+
const dateText = _chunkEYKTKDRKcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
14188
14184
|
if (variant === "row") {
|
|
14189
14185
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14190
14186
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-[260px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
|
|
14191
14187
|
item.preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h6", children: item.preview }) : null,
|
|
14192
|
-
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14188
|
+
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
|
|
14193
14189
|
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-24 shrink-0 text-right text-ods-text-secondary text-h6", children: dateText }) : null
|
|
14194
14190
|
] });
|
|
14195
14191
|
}
|
|
@@ -14203,13 +14199,13 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
14203
14199
|
metaParts.push(
|
|
14204
14200
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
14205
14201
|
);
|
|
14206
|
-
const href =
|
|
14202
|
+
const href = _chunkEYKTKDRKcjs.safeHref.call(void 0, item.url);
|
|
14207
14203
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14208
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14204
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14209
14205
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
14210
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
14206
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
14211
14207
|
priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14212
|
-
|
|
14208
|
+
_chunkEYKTKDRKcjs.StatusBadge,
|
|
14213
14209
|
{
|
|
14214
14210
|
text: priorityText,
|
|
14215
14211
|
variant: "button",
|
|
@@ -14218,7 +14214,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
14218
14214
|
}
|
|
14219
14215
|
) : null,
|
|
14220
14216
|
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14221
|
-
|
|
14217
|
+
_chunkEYKTKDRKcjs.StatusBadge,
|
|
14222
14218
|
{
|
|
14223
14219
|
text: statusText,
|
|
14224
14220
|
variant: "button",
|
|
@@ -14232,7 +14228,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
14232
14228
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: item.customerEmail })
|
|
14233
14229
|
] }) : null,
|
|
14234
14230
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-4 whitespace-pre-wrap break-words text-ods-text-secondary text-h6", children: item.preview || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "italic text-ods-text-secondary/60", children: "No description provided." }) }) }),
|
|
14235
|
-
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14231
|
+
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
14236
14232
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
14237
14233
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
14238
14234
|
] }, i)) }) }) : null
|
|
@@ -14240,9 +14236,9 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
14240
14236
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
14241
14237
|
] });
|
|
14242
14238
|
if (anchorProps) {
|
|
14243
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14239
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
14244
14240
|
}
|
|
14245
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
14241
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
14246
14242
|
}
|
|
14247
14243
|
function HubspotTicketCardSkeleton({
|
|
14248
14244
|
variant = "compact",
|
|
@@ -14256,8 +14252,8 @@ function HubspotTicketCardSkeleton({
|
|
|
14256
14252
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
14257
14253
|
] });
|
|
14258
14254
|
}
|
|
14259
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14260
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14255
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14256
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14261
14257
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
14262
14258
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
14263
14259
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-12 rounded-full bg-ods-bg/60" }),
|
|
@@ -14270,7 +14266,7 @@ function HubspotTicketCardSkeleton({
|
|
|
14270
14266
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-3/4 rounded bg-ods-bg/60" }),
|
|
14271
14267
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-2/5 rounded bg-ods-bg/60" })
|
|
14272
14268
|
] }),
|
|
14273
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14269
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
|
|
14274
14270
|
] }),
|
|
14275
14271
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
14276
14272
|
] });
|
|
@@ -14281,10 +14277,10 @@ function HubspotTicketCardSkeleton({
|
|
|
14281
14277
|
|
|
14282
14278
|
function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
14283
14279
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14284
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14280
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14285
14281
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
14286
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
14287
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14282
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
14283
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
|
|
14288
14284
|
] }),
|
|
14289
14285
|
item.path ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1 text-ods-text-secondary text-h6", children: [
|
|
14290
14286
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
|
|
@@ -14295,13 +14291,13 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
14295
14291
|
_optionalChain([anchorProps, 'optionalAccess', _344 => _344.href]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
14296
14292
|
] });
|
|
14297
14293
|
if (!anchorProps) {
|
|
14298
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
14294
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
14299
14295
|
}
|
|
14300
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14296
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
14301
14297
|
}
|
|
14302
14298
|
function DataRoomDocCardSkeleton({ className }) {
|
|
14303
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14304
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14299
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14300
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14305
14301
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
14306
14302
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
14307
14303
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
|
|
@@ -14322,29 +14318,29 @@ function DataRoomDocCardSkeleton({ className }) {
|
|
|
14322
14318
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
14323
14319
|
const goalsCount = _optionalChain([campaign, 'access', _345 => _345.goals, 'optionalAccess', _346 => _346.length]) || 0;
|
|
14324
14320
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14326
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14327
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14328
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14329
|
-
campaign.start_date ?
|
|
14321
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
14322
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14323
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
14324
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
14325
|
+
campaign.start_date ? _chunkEYKTKDRKcjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
14330
14326
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
14331
14327
|
"Marketing campaign"
|
|
14332
14328
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
14333
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14329
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkEYKTKDRKcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
14334
14330
|
] })
|
|
14335
14331
|
] });
|
|
14336
14332
|
if (anchorProps) {
|
|
14337
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14333
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
14338
14334
|
}
|
|
14339
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
14335
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
14340
14336
|
}
|
|
14341
14337
|
function CampaignCardAdminSkeleton({ className }) {
|
|
14342
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14343
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14344
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14345
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14346
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14347
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14338
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14339
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
14340
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14341
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
14342
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
14343
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
14348
14344
|
] })
|
|
14349
14345
|
] });
|
|
14350
14346
|
}
|
|
@@ -14353,14 +14349,14 @@ function CampaignCardAdminSkeleton({ className }) {
|
|
|
14353
14349
|
|
|
14354
14350
|
|
|
14355
14351
|
function GenericEntityCard({ item, className, anchorProps }) {
|
|
14356
|
-
const href =
|
|
14357
|
-
const dateText =
|
|
14352
|
+
const href = _chunkEYKTKDRKcjs.safeHref.call(void 0, item.url);
|
|
14353
|
+
const dateText = _chunkEYKTKDRKcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
14358
14354
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14359
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14355
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14360
14356
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
14361
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
14357
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
14362
14358
|
item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14363
|
-
|
|
14359
|
+
_chunkEYKTKDRKcjs.StatusBadge,
|
|
14364
14360
|
{
|
|
14365
14361
|
text: item.badge.text,
|
|
14366
14362
|
variant: "button",
|
|
@@ -14378,18 +14374,18 @@ function GenericEntityCard({ item, className, anchorProps }) {
|
|
|
14378
14374
|
] }),
|
|
14379
14375
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-medium text-ods-text-primary", children: f.value })
|
|
14380
14376
|
] }, i)) }) : null,
|
|
14381
|
-
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14377
|
+
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
|
|
14382
14378
|
] }),
|
|
14383
14379
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
14384
14380
|
] });
|
|
14385
14381
|
if (anchorProps) {
|
|
14386
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14382
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
14387
14383
|
}
|
|
14388
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, className: `${
|
|
14384
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
14389
14385
|
}
|
|
14390
14386
|
function GenericEntityCardSkeleton({ className }) {
|
|
14391
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14392
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14387
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14388
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14393
14389
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
14394
14390
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
14395
14391
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
|
|
@@ -14438,8 +14434,8 @@ function useChatCardItem(type, id) {
|
|
|
14438
14434
|
const res = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, url);
|
|
14439
14435
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
14440
14436
|
const data = await res.json();
|
|
14441
|
-
const items =
|
|
14442
|
-
const match = items.find((it) =>
|
|
14437
|
+
const items = _chunkEYKTKDRKcjs.extractItems.call(void 0, data);
|
|
14438
|
+
const match = items.find((it) => _chunkEYKTKDRKcjs.extractItemId.call(void 0, type, it) === id);
|
|
14443
14439
|
return _nullishCoalesce(match, () => ( null));
|
|
14444
14440
|
},
|
|
14445
14441
|
enabled: !!url && id.length > 0,
|
|
@@ -14472,7 +14468,7 @@ function useChatCardItem(type, id) {
|
|
|
14472
14468
|
function CardMedia({ imageSrc, imageAlt, icon }) {
|
|
14473
14469
|
if (imageSrc) {
|
|
14474
14470
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
|
|
14475
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute inset-0 flex items-center justify-center rounded-sm border border-ods-border bg-ods-bg text-ods-text-primary text-h6", children:
|
|
14471
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute inset-0 flex items-center justify-center rounded-sm border border-ods-border bg-ods-bg text-ods-text-primary text-h6", children: _chunkEYKTKDRKcjs.personInitials.call(void 0, imageAlt) || "?" }),
|
|
14476
14472
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14477
14473
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
14478
14474
|
{
|
|
@@ -14630,7 +14626,7 @@ function resolveFetchedCardHref({
|
|
|
14630
14626
|
composeContentUrl
|
|
14631
14627
|
}) {
|
|
14632
14628
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
14633
|
-
const canonicalType =
|
|
14629
|
+
const canonicalType = _chunkEYKTKDRKcjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
14634
14630
|
return composeContentUrl({
|
|
14635
14631
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
14636
14632
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -14689,8 +14685,7 @@ var SOURCE_ICON_NAMES = {
|
|
|
14689
14685
|
"ai-prompts": "message-square",
|
|
14690
14686
|
// Product-hub internal
|
|
14691
14687
|
"design-docs": "file-text",
|
|
14692
|
-
"openframe-tenants": "globe"
|
|
14693
|
-
"prospect-calls": "phone"
|
|
14688
|
+
"openframe-tenants": "globe"
|
|
14694
14689
|
};
|
|
14695
14690
|
function getSourceIconName(tableId) {
|
|
14696
14691
|
if (!tableId) return void 0;
|
|
@@ -14746,8 +14741,7 @@ var SOURCE_LABELS_BY_TABLE = {
|
|
|
14746
14741
|
"ai-prompts": "Squawkbox",
|
|
14747
14742
|
// Product-hub internal
|
|
14748
14743
|
"design-docs": "Design Docs",
|
|
14749
|
-
"openframe-tenants": "OpenFrame Tenants"
|
|
14750
|
-
"prospect-calls": "Prospect calls"
|
|
14744
|
+
"openframe-tenants": "OpenFrame Tenants"
|
|
14751
14745
|
};
|
|
14752
14746
|
function getSourceLabel(tableId) {
|
|
14753
14747
|
return _nullishCoalesce(SOURCE_LABELS_BY_TABLE[tableId], () => ( tableId));
|
|
@@ -14796,8 +14790,7 @@ var DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = {
|
|
|
14796
14790
|
ai_prompt: "ai-prompts",
|
|
14797
14791
|
// Product-hub internal
|
|
14798
14792
|
design_doc: "design-docs",
|
|
14799
|
-
openframe_tenant: "openframe-tenants"
|
|
14800
|
-
prospect_call: "prospect-calls"
|
|
14793
|
+
openframe_tenant: "openframe-tenants"
|
|
14801
14794
|
};
|
|
14802
14795
|
function defaultTableIdForDocumentType(documentType) {
|
|
14803
14796
|
return _nullishCoalesce(DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID[documentType], () => ( null));
|
|
@@ -14840,16 +14833,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
14840
14833
|
if (docTarget) {
|
|
14841
14834
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
14842
14835
|
const base = `${_chunk23V5BSHDcjs.getBaseUrl.call(void 0, docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
14843
|
-
href = _nullishCoalesce(
|
|
14836
|
+
href = _nullishCoalesce(_chunkEYKTKDRKcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
14844
14837
|
targetPlatform = docTarget.platform;
|
|
14845
14838
|
} else if (ctx.chipBasePlatform) {
|
|
14846
14839
|
const base = `${_chunk23V5BSHDcjs.getBaseUrl.call(void 0, ctx.chipBasePlatform)}/knowledge-base/`;
|
|
14847
|
-
href = _nullishCoalesce(
|
|
14840
|
+
href = _nullishCoalesce(_chunkEYKTKDRKcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
14848
14841
|
targetPlatform = ctx.chipBasePlatform;
|
|
14849
14842
|
} else if (ctx.baseRoute) {
|
|
14850
14843
|
const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
|
|
14851
14844
|
const absolute = new URL(safePath, synthetic).toString();
|
|
14852
|
-
href = _nullishCoalesce(
|
|
14845
|
+
href = _nullishCoalesce(_chunkEYKTKDRKcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
|
|
14853
14846
|
targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
|
|
14854
14847
|
}
|
|
14855
14848
|
}
|
|
@@ -14858,15 +14851,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
14858
14851
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
14859
14852
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
14860
14853
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
14861
|
-
type:
|
|
14854
|
+
type: _chunkEYKTKDRKcjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
14862
14855
|
identifier: idValue,
|
|
14863
14856
|
externalUrl: row.externalUrl,
|
|
14864
14857
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
14865
14858
|
});
|
|
14866
|
-
href = composed.href ? _nullishCoalesce(
|
|
14859
|
+
href = composed.href ? _nullishCoalesce(_chunkEYKTKDRKcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
14867
14860
|
targetPlatform = composed.targetPlatform;
|
|
14868
14861
|
} else if (row.externalUrl) {
|
|
14869
|
-
href = _nullishCoalesce(
|
|
14862
|
+
href = _nullishCoalesce(_chunkEYKTKDRKcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
14870
14863
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
14871
14864
|
}
|
|
14872
14865
|
const documentType = row.documentType;
|
|
@@ -14901,11 +14894,11 @@ function resolveSourceIcon(input, ctx = {}) {
|
|
|
14901
14894
|
|
|
14902
14895
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
14903
14896
|
const label = entityLabel || "Item";
|
|
14904
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
14905
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
14906
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
14907
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
14908
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
14897
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14898
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
14899
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14900
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkEYKTKDRKcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
14901
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkEYKTKDRKcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
14909
14902
|
label,
|
|
14910
14903
|
" deleted",
|
|
14911
14904
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -14951,7 +14944,7 @@ function GitHubChatCard({
|
|
|
14951
14944
|
const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
|
|
14952
14945
|
const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
|
|
14953
14946
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
14954
|
-
const dateText =
|
|
14947
|
+
const dateText = _chunkEYKTKDRKcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
|
|
14955
14948
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
14956
14949
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14957
14950
|
MingoInfoCard,
|
|
@@ -14960,7 +14953,7 @@ function GitHubChatCard({
|
|
|
14960
14953
|
description,
|
|
14961
14954
|
icon: githubKindIcon(kind),
|
|
14962
14955
|
status,
|
|
14963
|
-
anchorProps:
|
|
14956
|
+
anchorProps: _chunkEYKTKDRKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
14964
14957
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14965
14958
|
menuAriaLabel: "Activity actions"
|
|
14966
14959
|
}
|
|
@@ -15107,7 +15100,7 @@ function HubspotTicketChatCard({
|
|
|
15107
15100
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
15108
15101
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.TagIcon, { size: 24 }),
|
|
15109
15102
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
15110
|
-
anchorProps:
|
|
15103
|
+
anchorProps: _chunkEYKTKDRKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15111
15104
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
15112
15105
|
label: "Open Ticket Details",
|
|
15113
15106
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.TagIcon, { size: 20 })
|
|
@@ -15130,7 +15123,7 @@ function FaqChatCard({
|
|
|
15130
15123
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
15131
15124
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.QuestionCircleIcon, { size: 24 }),
|
|
15132
15125
|
status: { label: statusLabel, variant: "grey" },
|
|
15133
|
-
anchorProps:
|
|
15126
|
+
anchorProps: _chunkEYKTKDRKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15134
15127
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15135
15128
|
menuAriaLabel: "FAQ actions"
|
|
15136
15129
|
}
|
|
@@ -15150,7 +15143,7 @@ function SlackChatCard({
|
|
|
15150
15143
|
title,
|
|
15151
15144
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
15152
15145
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
15153
|
-
anchorProps:
|
|
15146
|
+
anchorProps: _chunkEYKTKDRKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15154
15147
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15155
15148
|
menuAriaLabel: "Message actions"
|
|
15156
15149
|
}
|
|
@@ -15168,7 +15161,7 @@ function GlyphChatCard({
|
|
|
15168
15161
|
title: chatRef.title,
|
|
15169
15162
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
15170
15163
|
icon,
|
|
15171
|
-
anchorProps:
|
|
15164
|
+
anchorProps: _chunkEYKTKDRKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15172
15165
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15173
15166
|
menuAriaLabel: "Card actions"
|
|
15174
15167
|
}
|
|
@@ -15187,7 +15180,7 @@ function DataRoomDocChatCard({
|
|
|
15187
15180
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
15188
15181
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.FileContentIcon, { size: 24 }),
|
|
15189
15182
|
status: { label: badgeText, variant: "grey" },
|
|
15190
|
-
anchorProps:
|
|
15183
|
+
anchorProps: _chunkEYKTKDRKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15191
15184
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15192
15185
|
menuAriaLabel: "Document actions"
|
|
15193
15186
|
}
|
|
@@ -15206,7 +15199,7 @@ function GenericFinancialChatCard({
|
|
|
15206
15199
|
title: chatRef.title,
|
|
15207
15200
|
description: subtitle,
|
|
15208
15201
|
icon,
|
|
15209
|
-
anchorProps:
|
|
15202
|
+
anchorProps: _chunkEYKTKDRKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15210
15203
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15211
15204
|
menuAriaLabel: "Document actions"
|
|
15212
15205
|
}
|
|
@@ -15292,7 +15285,7 @@ function CampaignChatCard({
|
|
|
15292
15285
|
}) {
|
|
15293
15286
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _378 => _378.goals])) ? item.goals.length : 0;
|
|
15294
15287
|
const meta = [
|
|
15295
|
-
_optionalChain([item, 'optionalAccess', _379 => _379.start_date]) ?
|
|
15288
|
+
_optionalChain([item, 'optionalAccess', _379 => _379.start_date]) ? _chunkEYKTKDRKcjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
15296
15289
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
15297
15290
|
"Marketing campaign"
|
|
15298
15291
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -15331,7 +15324,7 @@ function EntityMingoCard({
|
|
|
15331
15324
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
15332
15325
|
icon: fallbackIcon,
|
|
15333
15326
|
status,
|
|
15334
|
-
anchorProps:
|
|
15327
|
+
anchorProps: _chunkEYKTKDRKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15335
15328
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
15336
15329
|
menuAriaLabel
|
|
15337
15330
|
}
|
|
@@ -15343,7 +15336,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
15343
15336
|
function statusPill(status) {
|
|
15344
15337
|
const s = typeof status === "string" ? status.trim() : "";
|
|
15345
15338
|
if (!s) return void 0;
|
|
15346
|
-
const scheme =
|
|
15339
|
+
const scheme = _chunkEYKTKDRKcjs.getStatusColorScheme.call(void 0, s);
|
|
15347
15340
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
15348
15341
|
return { label: s, variant };
|
|
15349
15342
|
}
|
|
@@ -15430,7 +15423,7 @@ function InvestorUpdateChatCard({
|
|
|
15430
15423
|
EntityMingoCard,
|
|
15431
15424
|
{
|
|
15432
15425
|
title,
|
|
15433
|
-
description: _optionalChain([item, 'optionalAccess', _407 => _407.strategic_update]) || _optionalChain([item, 'optionalAccess', _408 => _408.content]) ||
|
|
15426
|
+
description: _optionalChain([item, 'optionalAccess', _407 => _407.strategic_update]) || _optionalChain([item, 'optionalAccess', _408 => _408.content]) || _chunkEYKTKDRKcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _409 => _409.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _410 => _410.period_end]), () => ( null))) || void 0,
|
|
15434
15427
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _411 => _411.featured_image]), ogPlaceholder),
|
|
15435
15428
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.PresentationLineIcon, { size: 24 }),
|
|
15436
15429
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -15477,15 +15470,15 @@ function ProgramChatCard({
|
|
|
15477
15470
|
const isScheduled = _optionalChain([item, 'optionalAccess', _418 => _418.status]) === "scheduled";
|
|
15478
15471
|
let typeMeta;
|
|
15479
15472
|
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _419 => _419.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
|
|
15480
|
-
typeMeta =
|
|
15473
|
+
typeMeta = _chunkEYKTKDRKcjs.formatDurationCompact.call(void 0, item.duration_seconds);
|
|
15481
15474
|
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _420 => _420.location_name]) === "string" && item.location_name.trim().length > 0) {
|
|
15482
15475
|
typeMeta = item.location_name;
|
|
15483
15476
|
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _421 => _421.start_at])) {
|
|
15484
|
-
const time =
|
|
15485
|
-
const dur =
|
|
15477
|
+
const time = _chunkEYKTKDRKcjs.formatTimeWithTimezone.call(void 0, item.start_at, _nullishCoalesce(item.timezone, () => ( null)));
|
|
15478
|
+
const dur = _chunkEYKTKDRKcjs.formatDurationFromRange.call(void 0, item.start_at, item.end_at);
|
|
15486
15479
|
typeMeta = dur ? `${time} \xB7 ${dur}` : time;
|
|
15487
15480
|
}
|
|
15488
|
-
const itemDate =
|
|
15481
|
+
const itemDate = _chunkEYKTKDRKcjs.formatDateUTC.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _422 => _422.date]), () => ( null)), { fallback: "", timezone: "local" });
|
|
15489
15482
|
const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
|
|
15490
15483
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15491
15484
|
EntityMingoCard,
|
|
@@ -15512,7 +15505,7 @@ function RoadmapChatCard({
|
|
|
15512
15505
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _426 => _426.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
15513
15506
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _427 => _427.customItemId]) != null;
|
|
15514
15507
|
const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.MapIcon, { size: 24 });
|
|
15515
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15508
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _428 => _428.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
15516
15509
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
15517
15510
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
15518
15511
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWLSFBRT5cjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
|
|
@@ -15583,40 +15576,19 @@ var GITHUB_CARD_CONFIGS = {
|
|
|
15583
15576
|
};
|
|
15584
15577
|
var REF_GLYPH_CARD_CONFIGS = {
|
|
15585
15578
|
design_doc: { label: "Design doc", icon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.FileContentIcon, { size: 24 }) },
|
|
15586
|
-
openframe_tenant: { label: "OpenFrame tenant", icon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.BuildingsIcon, { size: 24 }) }
|
|
15587
|
-
prospect_call: { label: "Prospect call", icon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.CallIcon, { size: 24 }), media: true }
|
|
15579
|
+
openframe_tenant: { label: "OpenFrame tenant", icon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.BuildingsIcon, { size: 24 }) }
|
|
15588
15580
|
};
|
|
15589
15581
|
function refGlyphRegistryEntries() {
|
|
15590
15582
|
return registryEntries(
|
|
15591
15583
|
REF_GLYPH_CARD_CONFIGS,
|
|
15592
|
-
(cfg, docType) => refHydratedEntry(
|
|
15593
|
-
docType,
|
|
15594
|
-
cfg.label,
|
|
15595
|
-
(displayRef, opts) => cfg.media ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15596
|
-
EntityMingoCard,
|
|
15597
|
-
{
|
|
15598
|
-
title: displayRef.title,
|
|
15599
|
-
description: _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
15600
|
-
cover: entityCover(
|
|
15601
|
-
_optionalChain([displayRef, 'access', _433 => _433.metadata, 'optionalAccess', _434 => _434.videoPoster]),
|
|
15602
|
-
_nullishCoalesce(_optionalChain([opts, 'access', _435 => _435.extras, 'optionalAccess', _436 => _436.buildOgPlaceholderUrl, 'optionalCall', _437 => _437(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
|
|
15603
|
-
),
|
|
15604
|
-
fallbackIcon: cfg.icon(),
|
|
15605
|
-
status: { label: cfg.label, variant: "grey" },
|
|
15606
|
-
chatRef: displayRef,
|
|
15607
|
-
isNewTab: opts.isNewTab,
|
|
15608
|
-
discuss: opts.discuss,
|
|
15609
|
-
menuAriaLabel: `${cfg.label} actions`
|
|
15610
|
-
}
|
|
15611
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GlyphChatCard, { chatRef: displayRef, icon: cfg.icon(), isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
15612
|
-
)
|
|
15584
|
+
(cfg, docType) => refHydratedEntry(docType, cfg.label, (displayRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GlyphChatCard, { chatRef: displayRef, icon: cfg.icon(), isNewTab: opts.isNewTab, discuss: opts.discuss }))
|
|
15613
15585
|
);
|
|
15614
15586
|
}
|
|
15615
15587
|
function fetchedEmployeeEntryDisplayRef(item, chatRef) {
|
|
15616
15588
|
const it = item;
|
|
15617
|
-
const title = typeof _optionalChain([it, 'optionalAccess',
|
|
15618
|
-
const author = typeof _optionalChain([it, 'optionalAccess',
|
|
15619
|
-
const summary = typeof _optionalChain([it, 'optionalAccess',
|
|
15589
|
+
const title = typeof _optionalChain([it, 'optionalAccess', _433 => _433.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
|
|
15590
|
+
const author = typeof _optionalChain([it, 'optionalAccess', _434 => _434.author, 'optionalAccess', _435 => _435.full_name]) === "string" ? it.author.full_name.trim() : "";
|
|
15591
|
+
const summary = typeof _optionalChain([it, 'optionalAccess', _436 => _436.summary]) === "string" ? it.summary.trim() : "";
|
|
15620
15592
|
const preview = [author, summary].filter((x) => x.length > 0).join(" \xB7 ");
|
|
15621
15593
|
return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
|
|
15622
15594
|
}
|
|
@@ -15658,7 +15630,7 @@ function programRegistryEntries() {
|
|
|
15658
15630
|
label: cfg.label,
|
|
15659
15631
|
contentRefType: cfg.contentRefType,
|
|
15660
15632
|
bareInline: true,
|
|
15661
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15633
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.ProgramCardSkeleton, { size: "sm" }),
|
|
15662
15634
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15663
15635
|
ProgramChatCard,
|
|
15664
15636
|
{
|
|
@@ -15668,7 +15640,7 @@ function programRegistryEntries() {
|
|
|
15668
15640
|
discuss: opts.discuss,
|
|
15669
15641
|
configKey: cfg.configKey,
|
|
15670
15642
|
label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
|
|
15671
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
15643
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _437 => _437.extras, 'optionalAccess', _438 => _438.buildOgPlaceholderUrl, 'optionalCall', _439 => _439(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _440 => _440.title]), () => ( "")))]), () => ( null))
|
|
15672
15644
|
}
|
|
15673
15645
|
)
|
|
15674
15646
|
}));
|
|
@@ -15689,7 +15661,7 @@ var ROADMAP_CARD_CONFIGS = {
|
|
|
15689
15661
|
// The card's destination IS the ClickUp deep link, derived from the
|
|
15690
15662
|
// task id post-fetch (the refs frame used to carry it).
|
|
15691
15663
|
noComposedHref: true,
|
|
15692
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
15664
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _441 => _441.id]) != null ? clickupTaskUrl(String(item.id)) : null
|
|
15693
15665
|
}
|
|
15694
15666
|
};
|
|
15695
15667
|
function roadmapRegistryEntries() {
|
|
@@ -15699,7 +15671,7 @@ function roadmapRegistryEntries() {
|
|
|
15699
15671
|
bareInline: true,
|
|
15700
15672
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
15701
15673
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
15702
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15674
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.RoadmapCardSkeleton, { size: "sm" }),
|
|
15703
15675
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15704
15676
|
RoadmapChatCard,
|
|
15705
15677
|
{
|
|
@@ -15731,8 +15703,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15731
15703
|
DeletedDataCard,
|
|
15732
15704
|
{
|
|
15733
15705
|
title: chatRef.title && chatRef.title !== chatRef.id ? chatRef.title : null,
|
|
15734
|
-
entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access',
|
|
15735
|
-
recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access',
|
|
15706
|
+
entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _442 => _442.metadata, 'optionalAccess', _443 => _443.entity_label]), () => ( null)),
|
|
15707
|
+
recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _444 => _444.metadata, 'optionalAccess', _445 => _445.recovery_note]), () => ( null))
|
|
15736
15708
|
}
|
|
15737
15709
|
)
|
|
15738
15710
|
},
|
|
@@ -15749,7 +15721,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15749
15721
|
bareInline: true,
|
|
15750
15722
|
contentRefType: "faq",
|
|
15751
15723
|
noComposedHref: true,
|
|
15752
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
15724
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _446 => _446.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
|
|
15753
15725
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
|
|
15754
15726
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqChatCard, { chatRef: fetchedFaqDisplayRef(item, chatRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
15755
15727
|
},
|
|
@@ -15775,7 +15747,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15775
15747
|
label: "Blog post",
|
|
15776
15748
|
contentRefType: "blog_post_existing",
|
|
15777
15749
|
bareInline: true,
|
|
15778
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15750
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.BlogCardSkeleton, { size: "sm" }),
|
|
15779
15751
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15780
15752
|
BlogChatCard,
|
|
15781
15753
|
{
|
|
@@ -15783,8 +15755,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15783
15755
|
chatRef,
|
|
15784
15756
|
isNewTab: opts.isNewTab,
|
|
15785
15757
|
discuss: opts.discuss,
|
|
15786
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
15787
|
-
hasEmbeddedVideo: _optionalChain([chatRef, 'access',
|
|
15758
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _447 => _447.extras, 'optionalAccess', _448 => _448.buildOgPlaceholderUrl, 'optionalCall', _449 => _449(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _450 => _450.title]), () => ( "")))]), () => ( null)),
|
|
15759
|
+
hasEmbeddedVideo: _optionalChain([chatRef, 'access', _451 => _451.metadata, 'optionalAccess', _452 => _452.hasEmbeddedVideo]) === true
|
|
15788
15760
|
}
|
|
15789
15761
|
)
|
|
15790
15762
|
},
|
|
@@ -15792,7 +15764,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15792
15764
|
label: "Case study",
|
|
15793
15765
|
contentRefType: "case_study",
|
|
15794
15766
|
bareInline: true,
|
|
15795
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15767
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.CaseStudyCardSkeleton, { size: "sm" }),
|
|
15796
15768
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15797
15769
|
CaseStudyChatCard,
|
|
15798
15770
|
{
|
|
@@ -15800,7 +15772,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15800
15772
|
chatRef,
|
|
15801
15773
|
isNewTab: opts.isNewTab,
|
|
15802
15774
|
discuss: opts.discuss,
|
|
15803
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
15775
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _453 => _453.extras, 'optionalAccess', _454 => _454.buildOgPlaceholderUrl, 'optionalCall', _455 => _455(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _456 => _456.title]), () => ( "")))]), () => ( null))
|
|
15804
15776
|
}
|
|
15805
15777
|
)
|
|
15806
15778
|
},
|
|
@@ -15808,7 +15780,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15808
15780
|
label: "Customer interview",
|
|
15809
15781
|
contentRefType: "customer_interview",
|
|
15810
15782
|
bareInline: true,
|
|
15811
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15783
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.CustomerInterviewCardSkeleton, { size: "sm" }),
|
|
15812
15784
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15813
15785
|
CustomerInterviewChatCard,
|
|
15814
15786
|
{
|
|
@@ -15816,7 +15788,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15816
15788
|
chatRef,
|
|
15817
15789
|
isNewTab: opts.isNewTab,
|
|
15818
15790
|
discuss: opts.discuss,
|
|
15819
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
15791
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _457 => _457.extras, 'optionalAccess', _458 => _458.buildOgPlaceholderUrl, 'optionalCall', _459 => _459(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _460 => _460.title]), () => ( "")))]), () => ( null))
|
|
15820
15792
|
}
|
|
15821
15793
|
)
|
|
15822
15794
|
},
|
|
@@ -15824,9 +15796,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15824
15796
|
label: "Product release",
|
|
15825
15797
|
contentRefType: "product_release",
|
|
15826
15798
|
bareInline: true,
|
|
15827
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15799
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.ProductReleaseCardSkeleton, { size: "sm" }),
|
|
15828
15800
|
render: (item, chatRef, opts) => {
|
|
15829
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
15801
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _461 => _461.extras, 'optionalAccess', _462 => _462.buildProductReleaseCardProps]), () => ( _chunkEYKTKDRKcjs.defaultBuildProductReleaseCardProps));
|
|
15830
15802
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15831
15803
|
ProductReleaseChatCard,
|
|
15832
15804
|
{
|
|
@@ -15844,7 +15816,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15844
15816
|
label: "Investor update",
|
|
15845
15817
|
contentRefType: "investor_update",
|
|
15846
15818
|
bareInline: true,
|
|
15847
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15819
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.InvestorUpdateCardSkeleton, { size: "sm" }),
|
|
15848
15820
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15849
15821
|
InvestorUpdateChatCard,
|
|
15850
15822
|
{
|
|
@@ -15852,7 +15824,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15852
15824
|
chatRef,
|
|
15853
15825
|
isNewTab: opts.isNewTab,
|
|
15854
15826
|
discuss: opts.discuss,
|
|
15855
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
15827
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _463 => _463.extras, 'optionalAccess', _464 => _464.buildOgPlaceholderUrl, 'optionalCall', _465 => _465(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _466 => _466.title]), () => ( "")))]), () => ( null))
|
|
15856
15828
|
}
|
|
15857
15829
|
)
|
|
15858
15830
|
},
|
|
@@ -15862,7 +15834,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15862
15834
|
bareInline: true,
|
|
15863
15835
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
15864
15836
|
displayAction: true,
|
|
15865
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15837
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEYKTKDRKcjs.OnboardingGuideCardSkeleton, { size: "sm" }),
|
|
15866
15838
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15867
15839
|
OnboardingGuideChatCard,
|
|
15868
15840
|
{
|
|
@@ -15870,7 +15842,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15870
15842
|
chatRef,
|
|
15871
15843
|
isNewTab: opts.isNewTab,
|
|
15872
15844
|
discuss: opts.discuss,
|
|
15873
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
15845
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _467 => _467.extras, 'optionalAccess', _468 => _468.buildOgPlaceholderUrl, 'optionalCall', _469 => _469(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _470 => _470.title]), () => ( "")))]), () => ( null))
|
|
15874
15846
|
}
|
|
15875
15847
|
)
|
|
15876
15848
|
},
|
|
@@ -15881,14 +15853,11 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15881
15853
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, {}),
|
|
15882
15854
|
// No public viewer — synthesize the hub-internal admin URL post-fetch
|
|
15883
15855
|
// so the wrapper + isNewTab computation see the actual destination.
|
|
15884
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
15856
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _471 => _471.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
|
|
15885
15857
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
15886
15858
|
},
|
|
15887
15859
|
...roadmapRegistryEntries()
|
|
15888
15860
|
};
|
|
15889
|
-
function chatCardLabel(docType) {
|
|
15890
|
-
return _optionalChain([CHAT_CARD_REGISTRY, 'access', _477 => _477[docType], 'optionalAccess', _478 => _478.label]);
|
|
15891
|
-
}
|
|
15892
15861
|
function ChatCardNavWrap({
|
|
15893
15862
|
href,
|
|
15894
15863
|
path,
|
|
@@ -15903,13 +15872,13 @@ function ChatCardNavWrap({
|
|
|
15903
15872
|
if (!href) return;
|
|
15904
15873
|
const targetEl = e.target;
|
|
15905
15874
|
const host = e.currentTarget;
|
|
15906
|
-
if (!_optionalChain([host, 'optionalAccess',
|
|
15907
|
-
if (_optionalChain([targetEl, 'optionalAccess',
|
|
15908
|
-
if (!_optionalChain([targetEl, 'optionalAccess',
|
|
15875
|
+
if (!_optionalChain([host, 'optionalAccess', _472 => _472.contains, 'call', _473 => _473(targetEl)])) return;
|
|
15876
|
+
if (_optionalChain([targetEl, 'optionalAccess', _474 => _474.closest, 'optionalCall', _475 => _475("button")])) return;
|
|
15877
|
+
if (!_optionalChain([targetEl, 'optionalAccess', _476 => _476.closest, 'optionalCall', _477 => _477("a")])) return;
|
|
15909
15878
|
const handled = executeNavigation({ event: e, runtime, href, path, targetPlatform, fallbackNavigate: router.push });
|
|
15910
15879
|
if (!handled) return;
|
|
15911
15880
|
e.stopPropagation();
|
|
15912
|
-
if (!isNewTab && _optionalChain([panel, 'optionalAccess',
|
|
15881
|
+
if (!isNewTab && _optionalChain([panel, 'optionalAccess', _478 => _478.closeChat])) panel.closeChat();
|
|
15913
15882
|
};
|
|
15914
15883
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
|
|
15915
15884
|
}
|
|
@@ -15931,7 +15900,7 @@ function ChatCardLoader({
|
|
|
15931
15900
|
title: chatRef.title,
|
|
15932
15901
|
externalUrl: chatRef.url,
|
|
15933
15902
|
targetPlatform: chatRef.targetPlatform,
|
|
15934
|
-
path: typeof _optionalChain([chatRef, 'access',
|
|
15903
|
+
path: typeof _optionalChain([chatRef, 'access', _479 => _479.metadata, 'optionalAccess', _480 => _480.path]) === "string" ? chatRef.metadata.path : null
|
|
15935
15904
|
},
|
|
15936
15905
|
sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform })
|
|
15937
15906
|
);
|
|
@@ -15945,11 +15914,11 @@ function ChatCardLoader({
|
|
|
15945
15914
|
const entry = CHAT_CARD_REGISTRY[resolvedChatRef.type];
|
|
15946
15915
|
const fetchEntry = entry && entry.contentRefType ? entry : null;
|
|
15947
15916
|
const { item, isLoading, isError, isFetched } = useChatCardItem(
|
|
15948
|
-
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess',
|
|
15917
|
+
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _481 => _481.contentRefType]), () => ( "")),
|
|
15949
15918
|
fetchEntry ? resolvedChatRef.id : ""
|
|
15950
15919
|
);
|
|
15951
15920
|
if (!entry) return null;
|
|
15952
|
-
const composedHref = _optionalChain([fetchEntry, 'optionalAccess',
|
|
15921
|
+
const composedHref = _optionalChain([fetchEntry, 'optionalAccess', _482 => _482.contentRefType]) && !resolvedChatRef.url && item ? resolveFetchedCardHref({
|
|
15953
15922
|
contentRefType: fetchEntry.contentRefType,
|
|
15954
15923
|
id: resolvedChatRef.id,
|
|
15955
15924
|
item,
|
|
@@ -15957,18 +15926,18 @@ function ChatCardLoader({
|
|
|
15957
15926
|
}) : null;
|
|
15958
15927
|
const hrefChoice = fetchEntry && !resolvedChatRef.url && item ? pickFetchedCardHref({
|
|
15959
15928
|
composed: composedHref,
|
|
15960
|
-
itemHref: _nullishCoalesce(_optionalChain([fetchEntry, 'access',
|
|
15929
|
+
itemHref: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _483 => _483.fallbackHref, 'optionalCall', _484 => _484(item)]), () => ( null)),
|
|
15961
15930
|
allowComposed: !fetchEntry.noComposedHref
|
|
15962
15931
|
}) : null;
|
|
15963
15932
|
const hrefResolvedChatRef = hrefChoice ? {
|
|
15964
15933
|
...resolvedChatRef,
|
|
15965
|
-
url:
|
|
15934
|
+
url: _chunkEYKTKDRKcjs.safeHref.call(void 0, hrefChoice.href),
|
|
15966
15935
|
// The `item` branch carries no platform of its own — keep the ref's.
|
|
15967
15936
|
targetPlatform: _nullishCoalesce(_nullishCoalesce(hrefChoice.targetPlatform, () => ( resolvedChatRef.targetPlatform)), () => ( null))
|
|
15968
15937
|
} : resolvedChatRef;
|
|
15969
15938
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
15970
15939
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
15971
|
-
const isNewTab =
|
|
15940
|
+
const isNewTab = _chunkEYKTKDRKcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
15972
15941
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
15973
15942
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
15974
15943
|
const discuss = discussFn ? {
|
|
@@ -15991,7 +15960,7 @@ function ChatCardLoader({
|
|
|
15991
15960
|
isNewTab,
|
|
15992
15961
|
discuss
|
|
15993
15962
|
};
|
|
15994
|
-
const path = typeof _optionalChain([finalChatRef, 'access',
|
|
15963
|
+
const path = typeof _optionalChain([finalChatRef, 'access', _485 => _485.metadata, 'optionalAccess', _486 => _486.path]) === "string" ? finalChatRef.metadata.path : null;
|
|
15995
15964
|
const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15996
15965
|
ChatCardNavWrap,
|
|
15997
15966
|
{
|
|
@@ -16015,7 +15984,7 @@ function ChatCardLoader({
|
|
|
16015
15984
|
if (!fetchEntry) {
|
|
16016
15985
|
return finish(entry.render(void 0, finalChatRef, renderOpts));
|
|
16017
15986
|
}
|
|
16018
|
-
if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access',
|
|
15987
|
+
if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _487 => _487.skeleton, 'optionalCall', _488 => _488()]), () => ( null)) });
|
|
16019
15988
|
if (!item) {
|
|
16020
15989
|
if (isError) {
|
|
16021
15990
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Failed to load" });
|
|
@@ -16378,7 +16347,7 @@ function useChunkCatchup({
|
|
|
16378
16347
|
if (catchupRun.current === run) {
|
|
16379
16348
|
if (currentDialogId !== dialogIdRef.current) {
|
|
16380
16349
|
catchupRun.current = null;
|
|
16381
|
-
if (_optionalChain([pendingCatchupRef, 'access',
|
|
16350
|
+
if (_optionalChain([pendingCatchupRef, 'access', _489 => _489.current, 'optionalAccess', _490 => _490.dialogId]) === currentDialogId) {
|
|
16382
16351
|
pendingCatchupRef.current = null;
|
|
16383
16352
|
}
|
|
16384
16353
|
} else {
|
|
@@ -16389,7 +16358,7 @@ function useChunkCatchup({
|
|
|
16389
16358
|
if (pending.dialogId === currentDialogId) {
|
|
16390
16359
|
rearmForQueuedCatchup();
|
|
16391
16360
|
try {
|
|
16392
|
-
await _optionalChain([catchUpChunksRef, 'access',
|
|
16361
|
+
await _optionalChain([catchUpChunksRef, 'access', _491 => _491.current, 'optionalCall', _492 => _492(pending.fromSequenceId)]);
|
|
16393
16362
|
} catch (rerunError) {
|
|
16394
16363
|
console.error("Queued catch-up re-run failed:", rerunError);
|
|
16395
16364
|
}
|
|
@@ -16456,7 +16425,7 @@ function useChunkCatchup({
|
|
|
16456
16425
|
|
|
16457
16426
|
var EMPTY_FRAME = { messages: [], phase: "idle", typing: false, delayMs: 0 };
|
|
16458
16427
|
function prefersReducedMotion() {
|
|
16459
|
-
return typeof window !== "undefined" && _optionalChain([window, 'access',
|
|
16428
|
+
return typeof window !== "undefined" && _optionalChain([window, 'access', _493 => _493.matchMedia, 'optionalCall', _494 => _494("(prefers-reduced-motion: reduce)"), 'access', _495 => _495.matches]) === true;
|
|
16460
16429
|
}
|
|
16461
16430
|
function useScriptedStream(frames, resetKey, enabled = true) {
|
|
16462
16431
|
const [index, setIndex] = _react.useState.call(void 0, 0);
|
|
@@ -16467,7 +16436,7 @@ function useScriptedStream(frames, resetKey, enabled = true) {
|
|
|
16467
16436
|
setIndex(0);
|
|
16468
16437
|
}
|
|
16469
16438
|
_react.useEffect.call(void 0, () => {
|
|
16470
|
-
const mq = _optionalChain([window, 'access',
|
|
16439
|
+
const mq = _optionalChain([window, 'access', _496 => _496.matchMedia, 'optionalCall', _497 => _497("(prefers-reduced-motion: reduce)")]);
|
|
16471
16440
|
const sync = () => setReducedMotion(mq ? mq.matches : prefersReducedMotion());
|
|
16472
16441
|
sync();
|
|
16473
16442
|
if (!mq) return void 0;
|
|
@@ -16610,7 +16579,7 @@ function useJetStreamDialogSubscription({
|
|
|
16610
16579
|
const lifecycle = _chunkI5JVSFNVcjs.startConnectionLifecycle.call(void 0, {
|
|
16611
16580
|
conn: sharedConn,
|
|
16612
16581
|
wsUrl,
|
|
16613
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
16582
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _498 => _498.current, 'optionalCall', _499 => _499()]),
|
|
16614
16583
|
backoff: reconnectionBackoffRef.current,
|
|
16615
16584
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
16616
16585
|
// JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
|
|
@@ -16625,7 +16594,7 @@ function useJetStreamDialogSubscription({
|
|
|
16625
16594
|
setReconnectionCount((c) => c + 1);
|
|
16626
16595
|
}
|
|
16627
16596
|
hadConnectionBeforeRef.current = true;
|
|
16628
|
-
_optionalChain([onConnectRef, 'access',
|
|
16597
|
+
_optionalChain([onConnectRef, 'access', _500 => _500.current, 'optionalCall', _501 => _501()]);
|
|
16629
16598
|
}
|
|
16630
16599
|
if (status === "error") {
|
|
16631
16600
|
console.warn("[JetStream] NATS protocol error:", evt.data);
|
|
@@ -16635,7 +16604,7 @@ function useJetStreamDialogSubscription({
|
|
|
16635
16604
|
setIsConnected(false);
|
|
16636
16605
|
setIsSubscribed(false);
|
|
16637
16606
|
tearDownSubscription();
|
|
16638
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
16607
|
+
_optionalChain([onDisconnectRef, 'access', _502 => _502.current, 'optionalCall', _503 => _503()]);
|
|
16639
16608
|
}
|
|
16640
16609
|
}
|
|
16641
16610
|
});
|
|
@@ -16761,7 +16730,7 @@ function useJetStreamDialogSubscription({
|
|
|
16761
16730
|
}
|
|
16762
16731
|
subscriptionRef.current = handle;
|
|
16763
16732
|
setIsSubscribed(true);
|
|
16764
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
16733
|
+
_optionalChain([onSubscribedRef, 'access', _504 => _504.current, 'optionalCall', _505 => _505()]);
|
|
16765
16734
|
} catch (e50) {
|
|
16766
16735
|
if (!cancelled) {
|
|
16767
16736
|
setIsSubscribed(false);
|
|
@@ -16877,20 +16846,20 @@ function useNatsDialogSubscription({
|
|
|
16877
16846
|
const tearDownSubscriptions = () => {
|
|
16878
16847
|
subscriptionRefs.current.forEach((sub) => {
|
|
16879
16848
|
try {
|
|
16880
|
-
_optionalChain([sub, 'optionalAccess',
|
|
16849
|
+
_optionalChain([sub, 'optionalAccess', _506 => _506.unsubscribe, 'call', _507 => _507()]);
|
|
16881
16850
|
} catch (e52) {
|
|
16882
16851
|
}
|
|
16883
16852
|
});
|
|
16884
16853
|
subscriptionRefs.current.clear();
|
|
16885
16854
|
lastSubscribedDialogIdRef.current = null;
|
|
16886
|
-
_optionalChain([abortControllerRef, 'access',
|
|
16855
|
+
_optionalChain([abortControllerRef, 'access', _508 => _508.current, 'optionalAccess', _509 => _509.abort, 'call', _510 => _510()]);
|
|
16887
16856
|
abortControllerRef.current = null;
|
|
16888
16857
|
};
|
|
16889
16858
|
const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
|
|
16890
16859
|
const lifecycle = _chunkI5JVSFNVcjs.startConnectionLifecycle.call(void 0, {
|
|
16891
16860
|
conn: sharedConn,
|
|
16892
16861
|
wsUrl,
|
|
16893
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
16862
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _511 => _511.current, 'optionalCall', _512 => _512()]),
|
|
16894
16863
|
backoff: reconnectionBackoffRef.current,
|
|
16895
16864
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
16896
16865
|
shouldRetryOn: isDisconnectStatus,
|
|
@@ -16901,7 +16870,7 @@ function useNatsDialogSubscription({
|
|
|
16901
16870
|
setReconnectionCount((c) => c + 1);
|
|
16902
16871
|
}
|
|
16903
16872
|
hadConnectionBeforeRef.current = true;
|
|
16904
|
-
_optionalChain([onConnectRef, 'access',
|
|
16873
|
+
_optionalChain([onConnectRef, 'access', _513 => _513.current, 'optionalCall', _514 => _514()]);
|
|
16905
16874
|
}
|
|
16906
16875
|
if (status === "error") {
|
|
16907
16876
|
console.warn("[NATS] protocol error:", evt.data);
|
|
@@ -16911,7 +16880,7 @@ function useNatsDialogSubscription({
|
|
|
16911
16880
|
setIsConnected(false);
|
|
16912
16881
|
setIsSubscribed(false);
|
|
16913
16882
|
tearDownSubscriptions();
|
|
16914
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
16883
|
+
_optionalChain([onDisconnectRef, 'access', _515 => _515.current, 'optionalCall', _516 => _516()]);
|
|
16915
16884
|
}
|
|
16916
16885
|
}
|
|
16917
16886
|
});
|
|
@@ -16942,13 +16911,13 @@ function useNatsDialogSubscription({
|
|
|
16942
16911
|
setIsSubscribed(false);
|
|
16943
16912
|
subscriptionRefs.current.forEach((sub) => {
|
|
16944
16913
|
try {
|
|
16945
|
-
_optionalChain([sub, 'optionalAccess',
|
|
16914
|
+
_optionalChain([sub, 'optionalAccess', _517 => _517.unsubscribe, 'call', _518 => _518()]);
|
|
16946
16915
|
} catch (e53) {
|
|
16947
16916
|
}
|
|
16948
16917
|
});
|
|
16949
16918
|
subscriptionRefs.current.clear();
|
|
16950
16919
|
lastSubscribedDialogIdRef.current = null;
|
|
16951
|
-
_optionalChain([abortControllerRef, 'access',
|
|
16920
|
+
_optionalChain([abortControllerRef, 'access', _519 => _519.current, 'optionalAccess', _520 => _520.abort, 'call', _521 => _521()]);
|
|
16952
16921
|
abortControllerRef.current = null;
|
|
16953
16922
|
}
|
|
16954
16923
|
return void 0;
|
|
@@ -16960,12 +16929,12 @@ function useNatsDialogSubscription({
|
|
|
16960
16929
|
if (subscriptionRefs.current.size > 0) {
|
|
16961
16930
|
subscriptionRefs.current.forEach((sub) => {
|
|
16962
16931
|
try {
|
|
16963
|
-
_optionalChain([sub, 'optionalAccess',
|
|
16932
|
+
_optionalChain([sub, 'optionalAccess', _522 => _522.unsubscribe, 'call', _523 => _523()]);
|
|
16964
16933
|
} catch (e54) {
|
|
16965
16934
|
}
|
|
16966
16935
|
});
|
|
16967
16936
|
subscriptionRefs.current.clear();
|
|
16968
|
-
_optionalChain([abortControllerRef, 'access',
|
|
16937
|
+
_optionalChain([abortControllerRef, 'access', _524 => _524.current, 'optionalAccess', _525 => _525.abort, 'call', _526 => _526()]);
|
|
16969
16938
|
}
|
|
16970
16939
|
abortControllerRef.current = new AbortController();
|
|
16971
16940
|
const abort = abortControllerRef.current;
|
|
@@ -16995,7 +16964,7 @@ function useNatsDialogSubscription({
|
|
|
16995
16964
|
});
|
|
16996
16965
|
lastSubscribedDialogIdRef.current = dialogId;
|
|
16997
16966
|
setIsSubscribed(true);
|
|
16998
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
16967
|
+
_optionalChain([onSubscribedRef, 'access', _527 => _527.current, 'optionalCall', _528 => _528()]);
|
|
16999
16968
|
};
|
|
17000
16969
|
if (isConnectedRef.current) {
|
|
17001
16970
|
createSubscriptions();
|
|
@@ -17006,7 +16975,7 @@ function useNatsDialogSubscription({
|
|
|
17006
16975
|
abort.abort();
|
|
17007
16976
|
subscriptions.forEach((sub) => {
|
|
17008
16977
|
try {
|
|
17009
|
-
_optionalChain([sub, 'optionalAccess',
|
|
16978
|
+
_optionalChain([sub, 'optionalAccess', _529 => _529.unsubscribe, 'call', _530 => _530()]);
|
|
17010
16979
|
} catch (e56) {
|
|
17011
16980
|
}
|
|
17012
16981
|
});
|
|
@@ -17045,7 +17014,7 @@ function useNatsDialogSubscription({
|
|
|
17045
17014
|
});
|
|
17046
17015
|
lastSubscribedDialogIdRef.current = currentDialogId;
|
|
17047
17016
|
setIsSubscribed(true);
|
|
17048
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
17017
|
+
_optionalChain([onSubscribedRef, 'access', _531 => _531.current, 'optionalCall', _532 => _532()]);
|
|
17049
17018
|
} else if (subscriptionRefs.current.size > 0) {
|
|
17050
17019
|
setIsSubscribed(true);
|
|
17051
17020
|
}
|
|
@@ -17053,10 +17022,10 @@ function useNatsDialogSubscription({
|
|
|
17053
17022
|
return { isConnected, isSubscribed, reconnectionCount };
|
|
17054
17023
|
}
|
|
17055
17024
|
function buildNatsWsUrl(apiBaseUrl, options) {
|
|
17056
|
-
const path = _optionalChain([options, 'optionalAccess',
|
|
17025
|
+
const path = _optionalChain([options, 'optionalAccess', _533 => _533.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
|
|
17057
17026
|
const u = new URL(path, apiBaseUrl);
|
|
17058
17027
|
u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
|
|
17059
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
17028
|
+
if (_optionalChain([options, 'optionalAccess', _534 => _534.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _535 => _535.token])) {
|
|
17060
17029
|
u.searchParams.set("authorization", options.token);
|
|
17061
17030
|
}
|
|
17062
17031
|
return u.toString();
|
|
@@ -17074,7 +17043,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
17074
17043
|
const data = await res.json();
|
|
17075
17044
|
return _nullishCoalesce(data.commands, () => ( []));
|
|
17076
17045
|
} catch (err) {
|
|
17077
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
17046
|
+
if (_optionalChain([err, 'optionalAccess', _536 => _536.name]) === "AbortError") throw err;
|
|
17078
17047
|
console.warn("[chat] slash-commands fetch failed, showing none:", err);
|
|
17079
17048
|
return [];
|
|
17080
17049
|
}
|
|
@@ -17082,8 +17051,8 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
17082
17051
|
var NO_COMMANDS = [];
|
|
17083
17052
|
function useSlashCommands(prefix, commandsUrl) {
|
|
17084
17053
|
const [answered, setAnswered] = _react.useState.call(void 0, null);
|
|
17085
|
-
const commands = prefix != null && _optionalChain([answered, 'optionalAccess',
|
|
17086
|
-
const loading = prefix != null && _optionalChain([answered, 'optionalAccess',
|
|
17054
|
+
const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _537 => _537.prefix]) === prefix ? answered.commands : NO_COMMANDS;
|
|
17055
|
+
const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _538 => _538.prefix]) !== prefix;
|
|
17087
17056
|
_react.useEffect.call(void 0, () => {
|
|
17088
17057
|
if (prefix == null) return void 0;
|
|
17089
17058
|
let cancelled = false;
|
|
@@ -17093,7 +17062,7 @@ function useSlashCommands(prefix, commandsUrl) {
|
|
|
17093
17062
|
const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
|
|
17094
17063
|
if (!cancelled) setAnswered({ prefix, commands: next });
|
|
17095
17064
|
} catch (err) {
|
|
17096
|
-
if (!cancelled && _optionalChain([err, 'optionalAccess',
|
|
17065
|
+
if (!cancelled && _optionalChain([err, 'optionalAccess', _539 => _539.name]) !== "AbortError") {
|
|
17097
17066
|
console.warn("[use-slash-commands] fetch failed:", err);
|
|
17098
17067
|
setAnswered({ prefix, commands: NO_COMMANDS });
|
|
17099
17068
|
}
|
|
@@ -17116,7 +17085,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
|
|
|
17116
17085
|
const query = _reactquery.useQuery.call(void 0, {
|
|
17117
17086
|
queryKey: ["chat-slash-commands", commandsUrl],
|
|
17118
17087
|
queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
|
|
17119
|
-
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
17088
|
+
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _540 => _540.enabled]), () => ( true)),
|
|
17120
17089
|
staleTime: Infinity,
|
|
17121
17090
|
gcTime: Infinity,
|
|
17122
17091
|
// The commands registry is non-critical chrome — a failure degrades to an
|
|
@@ -17155,21 +17124,21 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
|
|
|
17155
17124
|
}
|
|
17156
17125
|
const data = await res.json();
|
|
17157
17126
|
return {
|
|
17158
|
-
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17159
|
-
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17160
|
-
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17161
|
-
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17162
|
-
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17163
|
-
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17127
|
+
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _541 => _541.name]), () => ( null)),
|
|
17128
|
+
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _542 => _542.icon]), () => ( null)),
|
|
17129
|
+
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _543 => _543.greeting]), () => ( null)),
|
|
17130
|
+
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _544 => _544.enabledRagTableIds]), () => ( [])),
|
|
17131
|
+
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _545 => _545.quickActions]), () => ( [])),
|
|
17132
|
+
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _546 => _546.suggestedQueries]), () => ( []))
|
|
17164
17133
|
};
|
|
17165
17134
|
} catch (err) {
|
|
17166
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
17135
|
+
if (_optionalChain([err, 'optionalAccess', _547 => _547.name]) === "AbortError") throw err;
|
|
17167
17136
|
console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
|
|
17168
17137
|
return EMPTY_STATE_FALLBACK;
|
|
17169
17138
|
}
|
|
17170
17139
|
}
|
|
17171
17140
|
function useEmptyStateConfig(emptyStateUrl, options) {
|
|
17172
|
-
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
17141
|
+
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _548 => _548.enabled]), () => ( true))) && !!emptyStateUrl;
|
|
17173
17142
|
const query = _reactquery.useQuery.call(void 0, {
|
|
17174
17143
|
queryKey: ["chat-empty-state", emptyStateUrl],
|
|
17175
17144
|
queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
|
|
@@ -17198,7 +17167,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
|
|
|
17198
17167
|
var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
|
|
17199
17168
|
function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
17200
17169
|
return new Promise((resolve, reject) => {
|
|
17201
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
17170
|
+
if (_optionalChain([signal, 'optionalAccess', _549 => _549.aborted])) {
|
|
17202
17171
|
reject(new Error("Upload cancelled"));
|
|
17203
17172
|
return;
|
|
17204
17173
|
}
|
|
@@ -17240,7 +17209,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
17240
17209
|
const handleSignalAbort = () => {
|
|
17241
17210
|
xhr.abort();
|
|
17242
17211
|
};
|
|
17243
|
-
_optionalChain([signal, 'optionalAccess',
|
|
17212
|
+
_optionalChain([signal, 'optionalAccess', _550 => _550.addEventListener, 'call', _551 => _551("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
|
|
17244
17213
|
xhr.upload.addEventListener("progress", handleProgress, { signal: listeners.signal });
|
|
17245
17214
|
xhr.addEventListener("load", handleLoad, { signal: listeners.signal });
|
|
17246
17215
|
xhr.addEventListener("error", handleError, { signal: listeners.signal });
|
|
@@ -17284,10 +17253,10 @@ function useChatAttachments() {
|
|
|
17284
17253
|
try {
|
|
17285
17254
|
sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
|
|
17286
17255
|
} catch (err) {
|
|
17287
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
17256
|
+
if (_optionalChain([ctrl, 'optionalAccess', _552 => _552.signal, 'access', _553 => _553.aborted])) return;
|
|
17288
17257
|
throw new Error(`Could not read file content: ${err instanceof Error ? err.message : String(err)}`);
|
|
17289
17258
|
}
|
|
17290
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
17259
|
+
if (_optionalChain([ctrl, 'optionalAccess', _554 => _554.signal, 'access', _555 => _555.aborted])) return;
|
|
17291
17260
|
if (!sniffed) {
|
|
17292
17261
|
throw new Error("Unrecognized file format");
|
|
17293
17262
|
}
|
|
@@ -17301,7 +17270,7 @@ function useChatAttachments() {
|
|
|
17301
17270
|
const urlResp = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
|
|
17302
17271
|
method: "POST",
|
|
17303
17272
|
headers: { "Content-Type": "application/json" },
|
|
17304
|
-
signal: _optionalChain([ctrl, 'optionalAccess',
|
|
17273
|
+
signal: _optionalChain([ctrl, 'optionalAccess', _556 => _556.signal]),
|
|
17305
17274
|
body: JSON.stringify({
|
|
17306
17275
|
fileName: att.file.name,
|
|
17307
17276
|
// Pass the SNIFFED MIME (not `file.type`, which can be a
|
|
@@ -17330,9 +17299,9 @@ function useChatAttachments() {
|
|
|
17330
17299
|
(pct) => {
|
|
17331
17300
|
updateOne(att.id, { progress: pct });
|
|
17332
17301
|
},
|
|
17333
|
-
_optionalChain([ctrl, 'optionalAccess',
|
|
17302
|
+
_optionalChain([ctrl, 'optionalAccess', _557 => _557.signal])
|
|
17334
17303
|
);
|
|
17335
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
17304
|
+
if (_optionalChain([ctrl, 'optionalAccess', _558 => _558.signal, 'access', _559 => _559.aborted])) return;
|
|
17336
17305
|
updateOne(att.id, {
|
|
17337
17306
|
status: "ready",
|
|
17338
17307
|
progress: 100,
|
|
@@ -17340,7 +17309,7 @@ function useChatAttachments() {
|
|
|
17340
17309
|
viewToken: mintData.viewToken
|
|
17341
17310
|
});
|
|
17342
17311
|
} catch (err) {
|
|
17343
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
17312
|
+
if (_optionalChain([ctrl, 'optionalAccess', _560 => _560.signal, 'access', _561 => _561.aborted])) return;
|
|
17344
17313
|
const message = err instanceof Error ? err.message : String(err);
|
|
17345
17314
|
updateOne(att.id, { status: "error", progress: 0, errorMessage: message });
|
|
17346
17315
|
} finally {
|
|
@@ -17462,7 +17431,7 @@ function useChatAttachmentImageGallery() {
|
|
|
17462
17431
|
return () => root.removeEventListener("click", onClick);
|
|
17463
17432
|
}, [viewUrlPrefix]);
|
|
17464
17433
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17465
|
-
|
|
17434
|
+
_chunkEYKTKDRKcjs.ImageGalleryModal,
|
|
17466
17435
|
{
|
|
17467
17436
|
images: state.images,
|
|
17468
17437
|
isOpen: state.isOpen,
|
|
@@ -17489,11 +17458,11 @@ var ANON_DEFAULTS = {
|
|
|
17489
17458
|
function useResolveChatIdentity(enabled) {
|
|
17490
17459
|
const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
|
|
17491
17460
|
const url = runtime.endpoints.identityUrl;
|
|
17492
|
-
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess',
|
|
17461
|
+
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _562 => _562.email]), () => ( null));
|
|
17493
17462
|
const requestKey = enabled ? `${url}\0${_nullishCoalesce(proxyEmail, () => ( ""))}` : null;
|
|
17494
17463
|
const [resolved, setResolved] = _react.useState.call(void 0, null);
|
|
17495
|
-
const data = _optionalChain([resolved, 'optionalAccess',
|
|
17496
|
-
const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess',
|
|
17464
|
+
const data = _optionalChain([resolved, 'optionalAccess', _563 => _563.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
|
|
17465
|
+
const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _564 => _564.key]) !== requestKey;
|
|
17497
17466
|
_react.useEffect.call(void 0, () => {
|
|
17498
17467
|
if (requestKey === null) return void 0;
|
|
17499
17468
|
let cancelled = false;
|
|
@@ -17640,7 +17609,7 @@ function useChat({
|
|
|
17640
17609
|
onMessagesChangeRef.current = onMessagesChange;
|
|
17641
17610
|
});
|
|
17642
17611
|
_react.useEffect.call(void 0, () => {
|
|
17643
|
-
_optionalChain([onMessagesChangeRef, 'access',
|
|
17612
|
+
_optionalChain([onMessagesChangeRef, 'access', _565 => _565.current, 'optionalCall', _566 => _566(messages)]);
|
|
17644
17613
|
}, [messages]);
|
|
17645
17614
|
const {
|
|
17646
17615
|
streamMessage,
|
|
@@ -17677,7 +17646,7 @@ function useChat({
|
|
|
17677
17646
|
name: "You",
|
|
17678
17647
|
content: text2,
|
|
17679
17648
|
timestamp: /* @__PURE__ */ new Date(),
|
|
17680
|
-
..._optionalChain([options, 'optionalAccess',
|
|
17649
|
+
..._optionalChain([options, 'optionalAccess', _567 => _567.hidden]) ? { hidden: true } : {}
|
|
17681
17650
|
};
|
|
17682
17651
|
addMessage(userMessage);
|
|
17683
17652
|
setIsTyping(true);
|
|
@@ -17891,7 +17860,7 @@ function buildConfirmToolBody(request) {
|
|
|
17891
17860
|
async function readServerErrorMessage(response) {
|
|
17892
17861
|
try {
|
|
17893
17862
|
const body = await response.json();
|
|
17894
|
-
if (typeof _optionalChain([body, 'optionalAccess',
|
|
17863
|
+
if (typeof _optionalChain([body, 'optionalAccess', _568 => _568.error]) === "string" && body.error.length > 0) return body.error;
|
|
17895
17864
|
} catch (e58) {
|
|
17896
17865
|
}
|
|
17897
17866
|
return null;
|
|
@@ -18198,7 +18167,7 @@ function youtubeVideoId(value) {
|
|
|
18198
18167
|
const hostname = parsed.hostname.toLowerCase();
|
|
18199
18168
|
const isYoutubeHost = hostname === "youtu.be" || hostname === "youtube.com" || hostname.endsWith(".youtube.com");
|
|
18200
18169
|
if (!isYoutubeHost) return void 0;
|
|
18201
|
-
const fromPath = hostname === "youtu.be" ? parsed.pathname.split("/").filter(Boolean)[0] : _optionalChain([/^\/(?:embed|v|shorts)\/([A-Za-z0-9_-]{11})(?:\/|$)/, 'access',
|
|
18170
|
+
const fromPath = hostname === "youtu.be" ? parsed.pathname.split("/").filter(Boolean)[0] : _optionalChain([/^\/(?:embed|v|shorts)\/([A-Za-z0-9_-]{11})(?:\/|$)/, 'access', _569 => _569.exec, 'call', _570 => _570(parsed.pathname), 'optionalAccess', _571 => _571[1]]);
|
|
18202
18171
|
const id = _nullishCoalesce(_nullishCoalesce(fromPath, () => ( parsed.searchParams.get("v"))), () => ( void 0));
|
|
18203
18172
|
return id && YOUTUBE_ID.test(id) ? id : void 0;
|
|
18204
18173
|
}
|
|
@@ -18317,11 +18286,11 @@ function cards(value, decodedSources) {
|
|
|
18317
18286
|
{
|
|
18318
18287
|
type,
|
|
18319
18288
|
id,
|
|
18320
|
-
title: _nullishCoalesce(_optionalChain([source, 'optionalAccess',
|
|
18321
|
-
url: _nullishCoalesce(_optionalChain([source, 'optionalAccess',
|
|
18322
|
-
..._optionalChain([source, 'optionalAccess',
|
|
18323
|
-
..._optionalChain([source, 'optionalAccess',
|
|
18324
|
-
..._optionalChain([source, 'optionalAccess',
|
|
18289
|
+
title: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _572 => _572.name]), () => ( id)),
|
|
18290
|
+
url: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _573 => _573.externalUrl]), () => ( null)),
|
|
18291
|
+
..._optionalChain([source, 'optionalAccess', _574 => _574.sourceRepo]) ? { sourceRepo: source.sourceRepo } : {},
|
|
18292
|
+
..._optionalChain([source, 'optionalAccess', _575 => _575.targetPlatform]) !== void 0 ? { targetPlatform: source.targetPlatform } : {},
|
|
18293
|
+
..._optionalChain([source, 'optionalAccess', _576 => _576.path]) ? { metadata: { path: source.path } } : {}
|
|
18325
18294
|
}
|
|
18326
18295
|
];
|
|
18327
18296
|
});
|
|
@@ -18347,11 +18316,11 @@ function sourceMetadataEvent(payload) {
|
|
|
18347
18316
|
}
|
|
18348
18317
|
function mergeSourceMetadata(previous, event) {
|
|
18349
18318
|
const byIndex = /* @__PURE__ */ new Map();
|
|
18350
|
-
for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess',
|
|
18319
|
+
for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _577 => _577.sources]), () => ( [])), ..._nullishCoalesce(event.sources, () => ( []))]) {
|
|
18351
18320
|
if (!byIndex.has(source.index)) byIndex.set(source.index, source);
|
|
18352
18321
|
}
|
|
18353
18322
|
const byIdentity = /* @__PURE__ */ new Map();
|
|
18354
|
-
for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess',
|
|
18323
|
+
for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _578 => _578.refs]), () => ( [])), ..._nullishCoalesce(event.refs, () => ( []))]) {
|
|
18355
18324
|
const identity = `${ref.type}:${ref.id}`;
|
|
18356
18325
|
if (!byIdentity.has(identity)) byIdentity.set(identity, ref);
|
|
18357
18326
|
}
|
|
@@ -18437,9 +18406,9 @@ function appendToTrailingAssistant(prev, segments) {
|
|
|
18437
18406
|
for (const seg of segments) {
|
|
18438
18407
|
const tail = merged[merged.length - 1];
|
|
18439
18408
|
const key = upsertKey(seg);
|
|
18440
|
-
if (seg.type === "text" && _optionalChain([tail, 'optionalAccess',
|
|
18409
|
+
if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _579 => _579.type]) === "text") {
|
|
18441
18410
|
merged[merged.length - 1] = { type: "text", text: tail.text + seg.text };
|
|
18442
|
-
} else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess',
|
|
18411
|
+
} else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _580 => _580.type]) === "thinking") {
|
|
18443
18412
|
merged[merged.length - 1] = { type: "thinking", text: tail.text + seg.text };
|
|
18444
18413
|
} else if (key) {
|
|
18445
18414
|
let idx = merged.findIndex((m) => upsertKey(m) === key);
|
|
@@ -18480,7 +18449,7 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
|
|
|
18480
18449
|
}
|
|
18481
18450
|
if (s.type !== "approval_batch") return s;
|
|
18482
18451
|
const isAnchor = s.data.approvalRequestId === requestId;
|
|
18483
|
-
const hasRow = _optionalChain([s, 'access',
|
|
18452
|
+
const hasRow = _optionalChain([s, 'access', _581 => _581.data, 'access', _582 => _582.toolCalls, 'optionalAccess', _583 => _583.some, 'call', _584 => _584((c) => c.toolExecutionRequestId === requestId)]);
|
|
18484
18453
|
if (!isAnchor && !hasRow) return s;
|
|
18485
18454
|
const nextResolvedBy = _nullishCoalesce(resolvedByName, () => ( s.resolvedByName));
|
|
18486
18455
|
const nextExecutions = hasRow ? {
|
|
@@ -18502,8 +18471,8 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
|
|
|
18502
18471
|
};
|
|
18503
18472
|
}
|
|
18504
18473
|
function nextBatchExecution(prevExec, toolData) {
|
|
18505
|
-
if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess',
|
|
18506
|
-
return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess',
|
|
18474
|
+
if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _585 => _585.status]) === "done") return null;
|
|
18475
|
+
return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _586 => _586.result]), success: _optionalChain([prevExec, 'optionalAccess', _587 => _587.success]) };
|
|
18507
18476
|
}
|
|
18508
18477
|
function withBatchExecution(seg, execId, state) {
|
|
18509
18478
|
return {
|
|
@@ -18520,11 +18489,11 @@ function projectBatchStatusToMessages(prev, anchorId, status) {
|
|
|
18520
18489
|
}
|
|
18521
18490
|
function projectBatchRowFailureToMessages(prev, rowRequestId) {
|
|
18522
18491
|
return mapSegments(prev, (s) => {
|
|
18523
|
-
if (s.type !== "approval_batch" || !_optionalChain([s, 'access',
|
|
18492
|
+
if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _588 => _588.data, 'access', _589 => _589.toolCalls, 'optionalAccess', _590 => _590.some, 'call', _591 => _591((c) => c.toolExecutionRequestId === rowRequestId)])) {
|
|
18524
18493
|
return s;
|
|
18525
18494
|
}
|
|
18526
|
-
const existing = _optionalChain([s, 'access',
|
|
18527
|
-
if (_optionalChain([existing, 'optionalAccess',
|
|
18495
|
+
const existing = _optionalChain([s, 'access', _592 => _592.data, 'access', _593 => _593.executions, 'optionalAccess', _594 => _594[rowRequestId]]);
|
|
18496
|
+
if (_optionalChain([existing, 'optionalAccess', _595 => _595.status]) === "done") return s;
|
|
18528
18497
|
return withBatchExecution(s, rowRequestId, { status: "done", success: false });
|
|
18529
18498
|
});
|
|
18530
18499
|
}
|
|
@@ -18560,7 +18529,7 @@ function mergeToolExecutionIfPresent(prev, segment) {
|
|
|
18560
18529
|
for (let j = message.segments.length - 1; j >= 0; j--) {
|
|
18561
18530
|
const seg = message.segments[j];
|
|
18562
18531
|
if (execId && seg.type === "approval_batch" && seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId)) {
|
|
18563
|
-
const prevExec = _optionalChain([seg, 'access',
|
|
18532
|
+
const prevExec = _optionalChain([seg, 'access', _596 => _596.data, 'access', _597 => _597.executions, 'optionalAccess', _598 => _598[execId]]);
|
|
18564
18533
|
const nextExec = nextBatchExecution(prevExec, toolData);
|
|
18565
18534
|
if (nextExec === null) return prev;
|
|
18566
18535
|
if (sameExecutionState(prevExec, nextExec)) return prev;
|
|
@@ -18733,9 +18702,9 @@ var MessageSegmentAccumulator = class {
|
|
|
18733
18702
|
type: "tool_execution",
|
|
18734
18703
|
data: {
|
|
18735
18704
|
...toolData,
|
|
18736
|
-
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
18737
|
-
toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
18738
|
-
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess',
|
|
18705
|
+
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _599 => _599.data, 'access', _600 => _600.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _601 => _601.toolTitle]))),
|
|
18706
|
+
toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _602 => _602.data, 'access', _603 => _603.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _604 => _604.toolExplanation]))),
|
|
18707
|
+
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _605 => _605.parameters])
|
|
18739
18708
|
}
|
|
18740
18709
|
};
|
|
18741
18710
|
if (existingIndex !== -1) {
|
|
@@ -18759,7 +18728,7 @@ var MessageSegmentAccumulator = class {
|
|
|
18759
18728
|
if (seg.type !== "approval_batch") return seg;
|
|
18760
18729
|
const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
|
|
18761
18730
|
if (!hasCall) return seg;
|
|
18762
|
-
const prev = _optionalChain([seg, 'access',
|
|
18731
|
+
const prev = _optionalChain([seg, 'access', _606 => _606.data, 'access', _607 => _607.executions, 'optionalAccess', _608 => _608[execId]]);
|
|
18763
18732
|
const next = nextBatchExecution(prev, toolData);
|
|
18764
18733
|
matched = true;
|
|
18765
18734
|
if (next === null) return seg;
|
|
@@ -18893,8 +18862,8 @@ var MessageSegmentAccumulator = class {
|
|
|
18893
18862
|
requestId,
|
|
18894
18863
|
{
|
|
18895
18864
|
...pendingApproval,
|
|
18896
|
-
command: _optionalChain([pendingApproval, 'optionalAccess',
|
|
18897
|
-
approvalType: _optionalChain([pendingApproval, 'optionalAccess',
|
|
18865
|
+
command: _optionalChain([pendingApproval, 'optionalAccess', _609 => _609.command]) || "",
|
|
18866
|
+
approvalType: _optionalChain([pendingApproval, 'optionalAccess', _610 => _610.approvalType]) || approvalType
|
|
18898
18867
|
},
|
|
18899
18868
|
status
|
|
18900
18869
|
);
|
|
@@ -18919,9 +18888,9 @@ var MessageSegmentAccumulator = class {
|
|
|
18919
18888
|
type: "escalation_offer",
|
|
18920
18889
|
// The resolved chunk carries no text/origin — a redelivered offer must
|
|
18921
18890
|
// not blank the card the PENDING chunk already painted.
|
|
18922
|
-
data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess',
|
|
18891
|
+
data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess', _611 => _611.data, 'access', _612 => _612.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _613 => _613.data, 'access', _614 => _614.origin]))) },
|
|
18923
18892
|
status,
|
|
18924
|
-
resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess',
|
|
18893
|
+
resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _615 => _615.resolvedByName]))),
|
|
18925
18894
|
onApprove: this.callbacks.onEscalationApprove,
|
|
18926
18895
|
onReject: this.callbacks.onEscalationReject
|
|
18927
18896
|
};
|
|
@@ -19246,7 +19215,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
19246
19215
|
let stateCache = null;
|
|
19247
19216
|
function invalidate() {
|
|
19248
19217
|
stateCache = null;
|
|
19249
|
-
_optionalChain([onChange, 'optionalCall',
|
|
19218
|
+
_optionalChain([onChange, 'optionalCall', _616 => _616()]);
|
|
19250
19219
|
}
|
|
19251
19220
|
function getState() {
|
|
19252
19221
|
if (!stateCache) {
|
|
@@ -19262,7 +19231,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
19262
19231
|
return stateCache;
|
|
19263
19232
|
}
|
|
19264
19233
|
function emit(name, ...args) {
|
|
19265
|
-
_optionalChain([onEffect, 'optionalCall',
|
|
19234
|
+
_optionalChain([onEffect, 'optionalCall', _617 => _617({ name, args })]);
|
|
19266
19235
|
}
|
|
19267
19236
|
function setMessagesInternal(next) {
|
|
19268
19237
|
if (next !== messages) {
|
|
@@ -19305,12 +19274,12 @@ function createChatStreamReducer(options = {}) {
|
|
|
19305
19274
|
return stampTrailingAssistantSourceMetadata(stampTrailingAssistantSeq(next, seq));
|
|
19306
19275
|
}
|
|
19307
19276
|
function applySegmentsToState(segments, meta) {
|
|
19308
|
-
const seq = _optionalChain([meta, 'optionalAccess',
|
|
19309
|
-
if (_optionalChain([meta, 'optionalAccess',
|
|
19277
|
+
const seq = _optionalChain([meta, 'optionalAccess', _618 => _618.streamSeq]);
|
|
19278
|
+
if (_optionalChain([meta, 'optionalAccess', _619 => _619.append]) && meta.isCompacting) {
|
|
19310
19279
|
setMessagesInternal(commitTrailingAssistant(upsertTrailingCompaction(messages, segments), seq));
|
|
19311
19280
|
return;
|
|
19312
19281
|
}
|
|
19313
|
-
if (_optionalChain([meta, 'optionalAccess',
|
|
19282
|
+
if (_optionalChain([meta, 'optionalAccess', _620 => _620.append])) {
|
|
19314
19283
|
setMessagesInternal(commitTrailingAssistant(appendToTrailingAssistant(messages, segments), seq));
|
|
19315
19284
|
return;
|
|
19316
19285
|
}
|
|
@@ -19322,7 +19291,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
19322
19291
|
adoptTrailingAssistant = false;
|
|
19323
19292
|
const last = messages[messages.length - 1];
|
|
19324
19293
|
if (!last || last.role !== "assistant" || adoptTail) return;
|
|
19325
|
-
const hasContent = (_nullishCoalesce(_optionalChain([last, 'access',
|
|
19294
|
+
const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _621 => _621.segments, 'optionalAccess', _622 => _622.length]), () => ( 0))) > 0 || last.content !== "";
|
|
19326
19295
|
if (!hasContent) return;
|
|
19327
19296
|
setMessagesInternal([...messages, { id: nextId("assistant"), role: "assistant", content: "", segments: [] }]);
|
|
19328
19297
|
}
|
|
@@ -19541,13 +19510,13 @@ function createChatStreamReducer(options = {}) {
|
|
|
19541
19510
|
const summary = required ? getCommandText(required) : `Batch of ${toolCalls.length} tool calls`;
|
|
19542
19511
|
pendingEscalated.set(requestId, {
|
|
19543
19512
|
command: summary,
|
|
19544
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
19513
|
+
explanation: _optionalChain([required, 'optionalAccess', _623 => _623.toolExplanation]),
|
|
19545
19514
|
approvalType,
|
|
19546
19515
|
toolCalls
|
|
19547
19516
|
});
|
|
19548
19517
|
emit("onEscalatedApproval", requestId, {
|
|
19549
19518
|
command: summary,
|
|
19550
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
19519
|
+
explanation: _optionalChain([required, 'optionalAccess', _624 => _624.toolExplanation]),
|
|
19551
19520
|
approvalType
|
|
19552
19521
|
});
|
|
19553
19522
|
break;
|
|
@@ -19931,7 +19900,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
19931
19900
|
const resolveBatch = (status, confirm) => async () => {
|
|
19932
19901
|
setMessagesInternal(projectBatchStatusToMessages(messages, anchorId, status));
|
|
19933
19902
|
for (const id of ids) {
|
|
19934
|
-
const ok = await _optionalChain([confirm, 'optionalCall',
|
|
19903
|
+
const ok = await _optionalChain([confirm, 'optionalCall', _625 => _625(id)]);
|
|
19935
19904
|
if (ok === false) {
|
|
19936
19905
|
setMessagesInternal(projectBatchRowFailureToMessages(messages, id));
|
|
19937
19906
|
}
|
|
@@ -20067,8 +20036,8 @@ function createChatStreamReducer(options = {}) {
|
|
|
20067
20036
|
}
|
|
20068
20037
|
}
|
|
20069
20038
|
}
|
|
20070
|
-
hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess',
|
|
20071
|
-
if (_optionalChain([extras, 'optionalAccess',
|
|
20039
|
+
hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _626 => _626.resumed]), () => ( messages.length > 0)));
|
|
20040
|
+
if (_optionalChain([extras, 'optionalAccess', _627 => _627.agentBusy])) agentBusyState();
|
|
20072
20041
|
invalidate();
|
|
20073
20042
|
}
|
|
20074
20043
|
return {
|
|
@@ -20153,7 +20122,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
20153
20122
|
},
|
|
20154
20123
|
endSseTurn() {
|
|
20155
20124
|
const last = messages[messages.length - 1];
|
|
20156
|
-
if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access',
|
|
20125
|
+
if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _628 => _628.segments, 'optionalAccess', _629 => _629.length]), () => ( 0))) === 0 && last.content === "") {
|
|
20157
20126
|
messages = messages.slice(0, -1);
|
|
20158
20127
|
}
|
|
20159
20128
|
sseCurrentText = "";
|
|
@@ -20306,10 +20275,10 @@ function createChatDialogStore(options = {}) {
|
|
|
20306
20275
|
if (onEvict) {
|
|
20307
20276
|
const sep = key.indexOf(KEY_SEP);
|
|
20308
20277
|
onEvict(key.slice(0, sep), key.slice(sep + 1), {
|
|
20309
|
-
messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
20310
|
-
approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
20311
|
-
lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
20312
|
-
pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
20278
|
+
messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _630 => _630.state, 'access', _631 => _631.messages]), () => ( EMPTY_STATE.messages)),
|
|
20279
|
+
approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _632 => _632.state, 'access', _633 => _633.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
|
|
20280
|
+
lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _634 => _634.getLastAppliedSeq, 'call', _635 => _635()]), () => ( Number.NEGATIVE_INFINITY)),
|
|
20281
|
+
pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _636 => _636.getPendingEchoes, 'call', _637 => _637()]), () => ( EMPTY_PENDING_ECHOES))
|
|
20313
20282
|
});
|
|
20314
20283
|
}
|
|
20315
20284
|
}
|
|
@@ -20319,12 +20288,12 @@ function createChatDialogStore(options = {}) {
|
|
|
20319
20288
|
const key = keyOf(dialogId, side);
|
|
20320
20289
|
let reducer = reducers.get(key);
|
|
20321
20290
|
if (!reducer) {
|
|
20322
|
-
const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall',
|
|
20291
|
+
const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _638 => _638(dialogId, side)]), () => ( {}));
|
|
20323
20292
|
const userOnChange = base.onChange;
|
|
20324
20293
|
reducer = createChatStreamReducer({
|
|
20325
20294
|
...base,
|
|
20326
20295
|
onChange: () => {
|
|
20327
|
-
_optionalChain([userOnChange, 'optionalCall',
|
|
20296
|
+
_optionalChain([userOnChange, 'optionalCall', _639 => _639()]);
|
|
20328
20297
|
notify();
|
|
20329
20298
|
}
|
|
20330
20299
|
});
|
|
@@ -20369,7 +20338,7 @@ function createChatDialogStore(options = {}) {
|
|
|
20369
20338
|
};
|
|
20370
20339
|
}
|
|
20371
20340
|
function getSnapshot2(dialogId, side = DEFAULT_DIALOG_SIDE) {
|
|
20372
|
-
return _nullishCoalesce(_optionalChain([reducers, 'access',
|
|
20341
|
+
return _nullishCoalesce(_optionalChain([reducers, 'access', _640 => _640.get, 'call', _641 => _641(keyOf(dialogId, side)), 'optionalAccess', _642 => _642.state]), () => ( EMPTY_STATE));
|
|
20373
20342
|
}
|
|
20374
20343
|
function getServerSnapshot2() {
|
|
20375
20344
|
return EMPTY_STATE;
|
|
@@ -20461,7 +20430,7 @@ function createDeltaBatcher({
|
|
|
20461
20430
|
pending = [];
|
|
20462
20431
|
const key = pendingKey;
|
|
20463
20432
|
for (const delta of batch) applyOne(delta, key);
|
|
20464
|
-
_optionalChain([onFlushed, 'optionalCall',
|
|
20433
|
+
_optionalChain([onFlushed, 'optionalCall', _643 => _643(batch.length)]);
|
|
20465
20434
|
}
|
|
20466
20435
|
function schedule() {
|
|
20467
20436
|
if (raf !== null || timer !== null) return;
|
|
@@ -20485,7 +20454,7 @@ function createDeltaBatcher({
|
|
|
20485
20454
|
}
|
|
20486
20455
|
if (!isDeltaEvent(event)) return false;
|
|
20487
20456
|
const tail = pending[pending.length - 1];
|
|
20488
|
-
const seqAdvances = _optionalChain([tail, 'optionalAccess',
|
|
20457
|
+
const seqAdvances = _optionalChain([tail, 'optionalAccess', _644 => _644.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
|
|
20489
20458
|
if (tail && seqAdvances && tail.type === event.type && (tail.type !== "text-delta" || tail.leading === event.leading)) {
|
|
20490
20459
|
pending[pending.length - 1] = {
|
|
20491
20460
|
...tail,
|
|
@@ -20516,7 +20485,7 @@ function useChatStreamReducer({
|
|
|
20516
20485
|
side = DEFAULT_DIALOG_SIDE,
|
|
20517
20486
|
createReducerOptions
|
|
20518
20487
|
}) {
|
|
20519
|
-
const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall',
|
|
20488
|
+
const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _645 => _645()]), () => ( {})));
|
|
20520
20489
|
const getSnapshot2 = _react.useCallback.call(void 0, () => store.getSnapshot(dialogId, side), [store, dialogId, side]);
|
|
20521
20490
|
const getServerSnapshot2 = _react.useCallback.call(void 0, () => store.getServerSnapshot(), [store]);
|
|
20522
20491
|
const subscribe2 = _react.useCallback.call(void 0, (listener) => store.subscribe(listener), [store]);
|
|
@@ -20555,7 +20524,7 @@ var STORAGE_KEY = "conversation";
|
|
|
20555
20524
|
var namespaceFor = (source) => {
|
|
20556
20525
|
const base = `mingo-chat-${source}`;
|
|
20557
20526
|
const auth = _chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, );
|
|
20558
|
-
return _optionalChain([auth, 'optionalAccess',
|
|
20527
|
+
return _optionalChain([auth, 'optionalAccess', _646 => _646.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
|
|
20559
20528
|
};
|
|
20560
20529
|
function createChatConversationStorage(source) {
|
|
20561
20530
|
return _chunkEHAYNUOLcjs.createLocalStorageAdapter.call(void 0, {
|
|
@@ -20667,7 +20636,7 @@ function formatSingularLookupInvocation(cmdId, value) {
|
|
|
20667
20636
|
return safe ? `/${cmdId} "${safe}"` : `/${cmdId}`;
|
|
20668
20637
|
}
|
|
20669
20638
|
function extractEntityIdFilter(override, expectedTableId) {
|
|
20670
|
-
const f = _optionalChain([override, 'optionalAccess',
|
|
20639
|
+
const f = _optionalChain([override, 'optionalAccess', _647 => _647.entityIdFilter]);
|
|
20671
20640
|
if (!f) return null;
|
|
20672
20641
|
const tableId = typeof f.tableId === "string" ? f.tableId : "";
|
|
20673
20642
|
const id = typeof f.id === "string" ? f.id : "";
|
|
@@ -20706,7 +20675,7 @@ var AUTO_CONTINUATION_DIRECTIVE_PREFIX = "[internal-auto-continuation]";
|
|
|
20706
20675
|
function buildAutoContinuationDirective(toolName, opts = {}) {
|
|
20707
20676
|
const ticketRef = opts.ticketId ? ` (ticket #${opts.ticketId})` : "";
|
|
20708
20677
|
const ticketHash = opts.ticketId ? ` #${opts.ticketId}` : "";
|
|
20709
|
-
const isClose = toolName === "update_ticket" && _optionalChain([opts, 'access',
|
|
20678
|
+
const isClose = toolName === "update_ticket" && _optionalChain([opts, 'access', _648 => _648.status, 'optionalAccess', _649 => _649.toUpperCase, 'call', _650 => _650()]) === "CLOSED";
|
|
20710
20679
|
if (toolName === "create_ticket") {
|
|
20711
20680
|
return `${AUTO_CONTINUATION_DIRECTIVE_PREFIX} The user just approved create_ticket${ticketRef}. Per ticket-protocol \xA71a, ask 2-4 SHORT, issue-specific diagnostic follow-up questions tailored to the symptom they reported in their original message. When they answer, propose an update_ticket with content_addendum carrying a clean Q&A digest. Do NOT call any tool in this turn \u2014 just write the questions as prose.`;
|
|
20712
20681
|
}
|
|
@@ -20756,7 +20725,7 @@ function useChatHistoryHydration({
|
|
|
20756
20725
|
if (cancelled) return;
|
|
20757
20726
|
if (rows.length === 0) {
|
|
20758
20727
|
const found = isRecord(body) ? body.found : void 0;
|
|
20759
|
-
if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall',
|
|
20728
|
+
if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _651 => _651(conversationId)]);
|
|
20760
20729
|
return;
|
|
20761
20730
|
}
|
|
20762
20731
|
const hydrated = [];
|
|
@@ -20900,7 +20869,7 @@ function useManagedDialogList({
|
|
|
20900
20869
|
try {
|
|
20901
20870
|
await deleteDialogCallback(id);
|
|
20902
20871
|
removeLocal(id);
|
|
20903
|
-
_optionalChain([onDialogRemovedRef, 'access',
|
|
20872
|
+
_optionalChain([onDialogRemovedRef, 'access', _652 => _652.current, 'optionalCall', _653 => _653(id, "deleted")]);
|
|
20904
20873
|
} catch (err) {
|
|
20905
20874
|
console.error(`${logTag} deleteDialog failed:`, err);
|
|
20906
20875
|
throw err;
|
|
@@ -20911,7 +20880,7 @@ function useManagedDialogList({
|
|
|
20911
20880
|
const renameDialog = _react.useCallback.call(void 0,
|
|
20912
20881
|
async (id, title) => {
|
|
20913
20882
|
if (!renameDialogCallback) return;
|
|
20914
|
-
const previous = _optionalChain([dialogsRef, 'access',
|
|
20883
|
+
const previous = _optionalChain([dialogsRef, 'access', _654 => _654.current, 'access', _655 => _655.find, 'call', _656 => _656((d) => d.id === id), 'optionalAccess', _657 => _657.title]);
|
|
20915
20884
|
setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title } : d));
|
|
20916
20885
|
try {
|
|
20917
20886
|
await renameDialogCallback(id, title);
|
|
@@ -20930,7 +20899,7 @@ function useManagedDialogList({
|
|
|
20930
20899
|
try {
|
|
20931
20900
|
await archiveDialogCallback(id);
|
|
20932
20901
|
removeLocal(id);
|
|
20933
|
-
_optionalChain([onDialogRemovedRef, 'access',
|
|
20902
|
+
_optionalChain([onDialogRemovedRef, 'access', _658 => _658.current, 'optionalCall', _659 => _659(id, "archived")]);
|
|
20934
20903
|
} catch (err) {
|
|
20935
20904
|
console.error(`${logTag} archiveDialog failed:`, err);
|
|
20936
20905
|
throw err;
|
|
@@ -21022,7 +20991,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21022
20991
|
const { active = true } = runtimeOptions;
|
|
21023
20992
|
const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
|
|
21024
20993
|
const source = runtime.source || DEFAULT_CHAT_SOURCE;
|
|
21025
|
-
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
20994
|
+
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _660 => _660.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
|
|
21026
20995
|
const sendMessageRef = _react.useRef.call(void 0,
|
|
21027
20996
|
() => Promise.resolve(true)
|
|
21028
20997
|
);
|
|
@@ -21058,7 +21027,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21058
21027
|
if (!restoredConversationRef.current) {
|
|
21059
21028
|
restoredConversationRef.current = true;
|
|
21060
21029
|
pruneStaleChatConversationStorage(source);
|
|
21061
|
-
conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access',
|
|
21030
|
+
conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _661 => _661.load, 'call', _662 => _662(), 'optionalAccess', _663 => _663.conversationId]), () => ( null));
|
|
21062
21031
|
}
|
|
21063
21032
|
const [conversationId, setConversationId] = _react.useState.call(void 0, () => conversationIdRef.current);
|
|
21064
21033
|
const commitConversationId = _react.useCallback.call(void 0,
|
|
@@ -21149,7 +21118,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21149
21118
|
const abortControllerRef = _react.useRef.call(void 0, null);
|
|
21150
21119
|
const switchConversation = _react.useCallback.call(void 0,
|
|
21151
21120
|
(id) => {
|
|
21152
|
-
_optionalChain([abortControllerRef, 'access',
|
|
21121
|
+
_optionalChain([abortControllerRef, 'access', _664 => _664.current, 'optionalAccess', _665 => _665.abort, 'call', _666 => _666()]);
|
|
21153
21122
|
flushDeltas();
|
|
21154
21123
|
mutate((r) => r.reset());
|
|
21155
21124
|
hydrationSendCountRef.current = 0;
|
|
@@ -21186,8 +21155,8 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21186
21155
|
} = useManagedDialogList({
|
|
21187
21156
|
autoLoad: active,
|
|
21188
21157
|
fetchDialogs: fetchActiveDialogs,
|
|
21189
|
-
renameDialog: _optionalChain([conversationsApi, 'optionalAccess',
|
|
21190
|
-
archiveDialog: _optionalChain([conversationsApi, 'optionalAccess',
|
|
21158
|
+
renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _667 => _667.renameDialog]),
|
|
21159
|
+
archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _668 => _668.archiveDialog]),
|
|
21191
21160
|
pageSize: 20,
|
|
21192
21161
|
search: conversationsApi ? dialogSearch : void 0,
|
|
21193
21162
|
logTag: "[useSseChatAdapter]",
|
|
@@ -21251,7 +21220,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21251
21220
|
const serverMessage = await readServerErrorMessage(response);
|
|
21252
21221
|
throw new Error(_nullishCoalesce(serverMessage, () => ( `Chat request failed: ${response.status}`)));
|
|
21253
21222
|
}
|
|
21254
|
-
const reader = _optionalChain([response, 'access',
|
|
21223
|
+
const reader = _optionalChain([response, 'access', _669 => _669.body, 'optionalAccess', _670 => _670.getReader, 'call', _671 => _671()]);
|
|
21255
21224
|
if (!reader) throw new Error("No response body");
|
|
21256
21225
|
const frameDecoder = createSseFrameDecoder();
|
|
21257
21226
|
let finished = false;
|
|
@@ -21280,7 +21249,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21280
21249
|
}
|
|
21281
21250
|
return true;
|
|
21282
21251
|
} catch (err) {
|
|
21283
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
21252
|
+
if (_optionalChain([err, 'optionalAccess', _672 => _672.name]) === "AbortError" || ctrl.signal.aborted) {
|
|
21284
21253
|
return true;
|
|
21285
21254
|
}
|
|
21286
21255
|
flushDeltas();
|
|
@@ -21316,7 +21285,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21316
21285
|
);
|
|
21317
21286
|
sendMessageRef.current = sendMessage;
|
|
21318
21287
|
const stopMessage = _react.useCallback.call(void 0, () => {
|
|
21319
|
-
_optionalChain([abortControllerRef, 'access',
|
|
21288
|
+
_optionalChain([abortControllerRef, 'access', _673 => _673.current, 'optionalAccess', _674 => _674.abort, 'call', _675 => _675()]);
|
|
21320
21289
|
flushDeltas();
|
|
21321
21290
|
mutate((r) => r.setPhase("idle"));
|
|
21322
21291
|
}, [mutate, flushDeltas]);
|
|
@@ -21352,7 +21321,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21352
21321
|
let sendIdx = -1;
|
|
21353
21322
|
return state.messages.map((m) => {
|
|
21354
21323
|
const segments = m.segments;
|
|
21355
|
-
const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess',
|
|
21324
|
+
const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _676 => _676.filter, 'call', _677 => _677((s) => s.type === "text"), 'access', _678 => _678.map, 'call', _679 => _679((s) => s.text), 'access', _680 => _680.join, 'call', _681 => _681("")]), () => ( ""));
|
|
21356
21325
|
let sources2;
|
|
21357
21326
|
let scrollAnchor;
|
|
21358
21327
|
if (m.role === "user" && !m.hidden) {
|
|
@@ -21361,7 +21330,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21361
21330
|
if (m.role === "assistant") {
|
|
21362
21331
|
const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
|
|
21363
21332
|
sources2 = sourcesMap.get(lookupIdx);
|
|
21364
|
-
scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access',
|
|
21333
|
+
scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _682 => _682.get, 'call', _683 => _683(lookupIdx), 'optionalAccess', _684 => _684.scrollAnchor]), () => ( void 0));
|
|
21365
21334
|
}
|
|
21366
21335
|
return {
|
|
21367
21336
|
id: m.id,
|
|
@@ -21388,7 +21357,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21388
21357
|
);
|
|
21389
21358
|
return;
|
|
21390
21359
|
}
|
|
21391
|
-
const refSlug = typeof _optionalChain([reference, 'access',
|
|
21360
|
+
const refSlug = typeof _optionalChain([reference, 'access', _685 => _685.metadata, 'optionalAccess', _686 => _686.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
|
|
21392
21361
|
const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
|
|
21393
21362
|
const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
21394
21363
|
const text2 = `/${cmdId} display "${escaped}"`;
|
|
@@ -21434,18 +21403,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21434
21403
|
/** True while the mount-time rebuild from the server transcript runs. */
|
|
21435
21404
|
isHydratingHistory,
|
|
21436
21405
|
/** Provider key for the lib's `<ModelDisplay>` icon. */
|
|
21437
|
-
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
21438
|
-
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
21439
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
21406
|
+
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _687 => _687.provider]), () => ( null)),
|
|
21407
|
+
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _688 => _688.modelLabel]), () => ( null)),
|
|
21408
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _689 => _689.contextWindowMaxTokens]), () => ( null)),
|
|
21440
21409
|
/** Input tokens (known after server's message_start frame; null until). */
|
|
21441
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
21410
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _690 => _690.inputTokens]), () => ( null)),
|
|
21442
21411
|
/** Output tokens (known only after server's trailing usage frame). */
|
|
21443
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
21412
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _691 => _691.outputTokens]), () => ( null)),
|
|
21444
21413
|
/** Cache hit % (read / total-input × 100). null during streaming. */
|
|
21445
|
-
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
21414
|
+
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _692 => _692.cacheHitRatePct]), () => ( null)),
|
|
21446
21415
|
/** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
|
|
21447
21416
|
* token counts). null until the trailing usage frame lands. */
|
|
21448
|
-
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
21417
|
+
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _693 => _693.breakdown]), () => ( null)),
|
|
21449
21418
|
// ─── Dialog management ───────────────────────────────────────────────
|
|
21450
21419
|
// With `chatConversationsUrl` the server transcript store IS the dialog
|
|
21451
21420
|
// list (shared `useManagedDialogList`); selecting a row re-hydrates through
|
|
@@ -21700,7 +21669,7 @@ function decodeNatsChunk(chunk) {
|
|
|
21700
21669
|
userId: typeof data.userId === "string" ? data.userId : void 0,
|
|
21701
21670
|
// Wire shape carries no label; fall back to the id (parity with
|
|
21702
21671
|
// the history path in `process-historical-messages.ts`).
|
|
21703
|
-
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess',
|
|
21672
|
+
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _694 => _694.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _695 => _695.id]) === "string").map((it) => ({
|
|
21704
21673
|
type: it.type,
|
|
21705
21674
|
id: it.id,
|
|
21706
21675
|
label: it.id
|
|
@@ -21791,7 +21760,7 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
21791
21760
|
}
|
|
21792
21761
|
break;
|
|
21793
21762
|
case "approval_batch": {
|
|
21794
|
-
const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access',
|
|
21763
|
+
const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _696 => _696.data, 'access', _697 => _697.executions, 'optionalAccess', _698 => _698[c.toolExecutionRequestId], 'optionalAccess', _699 => _699.status]) === "done");
|
|
21795
21764
|
if (segment.status !== "rejected" && !allDone) {
|
|
21796
21765
|
hasIncompleteState = true;
|
|
21797
21766
|
}
|
|
@@ -21853,11 +21822,11 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
21853
21822
|
function extractIncompleteTailState(messages) {
|
|
21854
21823
|
if (!messages || messages.length === 0) return void 0;
|
|
21855
21824
|
let start = messages.length;
|
|
21856
|
-
while (start > 0 && _optionalChain([messages, 'access',
|
|
21825
|
+
while (start > 0 && _optionalChain([messages, 'access', _700 => _700[start - 1], 'optionalAccess', _701 => _701.role]) === "assistant") start -= 1;
|
|
21857
21826
|
if (start === messages.length) return void 0;
|
|
21858
21827
|
const segments = [];
|
|
21859
21828
|
for (let i = start; i < messages.length; i += 1) {
|
|
21860
|
-
const content = _optionalChain([messages, 'access',
|
|
21829
|
+
const content = _optionalChain([messages, 'access', _702 => _702[i], 'optionalAccess', _703 => _703.content]);
|
|
21861
21830
|
if (Array.isArray(content)) segments.push(...content);
|
|
21862
21831
|
}
|
|
21863
21832
|
if (segments.length === 0) return void 0;
|
|
@@ -21870,15 +21839,15 @@ function extractIncompleteTailState(messages) {
|
|
|
21870
21839
|
|
|
21871
21840
|
// src/components/chat/utils/process-historical-messages.ts
|
|
21872
21841
|
function getOwnerDisplayName(owner) {
|
|
21873
|
-
if (_optionalChain([owner, 'optionalAccess',
|
|
21842
|
+
if (_optionalChain([owner, 'optionalAccess', _704 => _704.type]) === OWNER_TYPE.ADMIN && owner.user) {
|
|
21874
21843
|
const { firstName, lastName } = owner.user;
|
|
21875
21844
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
21876
21845
|
if (name) return name;
|
|
21877
21846
|
}
|
|
21878
|
-
return _optionalChain([owner, 'optionalAccess',
|
|
21847
|
+
return _optionalChain([owner, 'optionalAccess', _705 => _705.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
21879
21848
|
}
|
|
21880
21849
|
function getOwnerAvatar(owner) {
|
|
21881
|
-
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess',
|
|
21850
|
+
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _706 => _706.user, 'optionalAccess', _707 => _707.image, 'optionalAccess', _708 => _708.imageUrl]), () => ( void 0));
|
|
21882
21851
|
}
|
|
21883
21852
|
function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
|
|
21884
21853
|
messageDataArray.forEach((data) => {
|
|
@@ -22068,7 +22037,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
22068
22037
|
event.offerId,
|
|
22069
22038
|
event.text,
|
|
22070
22039
|
event.origin,
|
|
22071
|
-
_nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess',
|
|
22040
|
+
_nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _709 => _709[event.offerId]]), () => ( "pending"))
|
|
22072
22041
|
);
|
|
22073
22042
|
break;
|
|
22074
22043
|
case "ticket-escalated":
|
|
@@ -22102,7 +22071,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
22102
22071
|
);
|
|
22103
22072
|
break;
|
|
22104
22073
|
case "escalation-offer-resolved":
|
|
22105
|
-
_optionalChain([offerResolutions, 'optionalAccess',
|
|
22074
|
+
_optionalChain([offerResolutions, 'optionalAccess', _710 => _710.set, 'call', _711 => _711(event.offerId, {
|
|
22106
22075
|
status: event.status,
|
|
22107
22076
|
resolvedByName: event.resolvedByName
|
|
22108
22077
|
})]);
|
|
@@ -22166,7 +22135,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
22166
22135
|
}
|
|
22167
22136
|
}
|
|
22168
22137
|
} else {
|
|
22169
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
22138
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _712 => _712.set, 'call', _713 => _713(event.requestId, {
|
|
22170
22139
|
command: event.command || "",
|
|
22171
22140
|
explanation: event.explanation,
|
|
22172
22141
|
approvalType,
|
|
@@ -22181,8 +22150,8 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
22181
22150
|
const existingStatus = approvalStatuses[requestId];
|
|
22182
22151
|
const status = existingStatus || event.status;
|
|
22183
22152
|
const resolvedByName = event.resolvedByName;
|
|
22184
|
-
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess',
|
|
22185
|
-
if (_optionalChain([escalatedData, 'optionalAccess',
|
|
22153
|
+
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _714 => _714.get, 'call', _715 => _715(requestId)]);
|
|
22154
|
+
if (_optionalChain([escalatedData, 'optionalAccess', _716 => _716.toolCalls]) && escalatedData.toolCalls.length > 0) {
|
|
22186
22155
|
if (batchApprovalsEnabled) {
|
|
22187
22156
|
accumulator.addApprovalBatch(
|
|
22188
22157
|
requestId,
|
|
@@ -22204,7 +22173,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
22204
22173
|
);
|
|
22205
22174
|
}
|
|
22206
22175
|
}
|
|
22207
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
22176
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _717 => _717.delete, 'call', _718 => _718(requestId)]);
|
|
22208
22177
|
break;
|
|
22209
22178
|
}
|
|
22210
22179
|
if (escalatedData) {
|
|
@@ -22213,7 +22182,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
22213
22182
|
explanation: escalatedData.explanation,
|
|
22214
22183
|
approvalType: escalatedData.approvalType
|
|
22215
22184
|
});
|
|
22216
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
22185
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _719 => _719.delete, 'call', _720 => _720(requestId)]);
|
|
22217
22186
|
}
|
|
22218
22187
|
const before = accumulator.getSegments();
|
|
22219
22188
|
const after = accumulator.updateApprovalStatus(requestId, status, resolvedByName);
|
|
@@ -22305,14 +22274,14 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
22305
22274
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
22306
22275
|
return;
|
|
22307
22276
|
}
|
|
22308
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
22277
|
+
const isUserMessage = _optionalChain([msg, 'access', _721 => _721.owner, 'optionalAccess', _722 => _722.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _723 => _723.owner, 'optionalAccess', _724 => _724.type]) === OWNER_TYPE.ADMIN;
|
|
22309
22278
|
if (isUserMessage) {
|
|
22310
22279
|
flushAssistantMessage();
|
|
22311
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
22280
|
+
const userAuthorType = _optionalChain([msg, 'access', _725 => _725.owner, 'optionalAccess', _726 => _726.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
22312
22281
|
messageDataArray.forEach((data) => {
|
|
22313
22282
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
22314
22283
|
const rawContext = data.contextItems;
|
|
22315
|
-
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess',
|
|
22284
|
+
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _727 => _727.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _728 => _728.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
|
|
22316
22285
|
processedMessages.push({
|
|
22317
22286
|
id: msg.id,
|
|
22318
22287
|
role: "user",
|
|
@@ -22359,7 +22328,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
22359
22328
|
});
|
|
22360
22329
|
const nextMsg = messages[index + 1];
|
|
22361
22330
|
const isLastMessage = index === messages.length - 1;
|
|
22362
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
22331
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _729 => _729.owner, 'optionalAccess', _730 => _730.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _731 => _731.owner, 'optionalAccess', _732 => _732.type]) === OWNER_TYPE.ADMIN);
|
|
22363
22332
|
if (isLastMessage || nextIsFromUser) {
|
|
22364
22333
|
flushAssistantMessage();
|
|
22365
22334
|
}
|
|
@@ -22742,7 +22711,7 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
22742
22711
|
const connectionState = !active || !dialogId ? "connected" : connectedForDialog === dialogId ? "connected" : "connecting";
|
|
22743
22712
|
const sendMessage = _react.useCallback.call(void 0,
|
|
22744
22713
|
async (text2, sendOptions) => {
|
|
22745
|
-
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess',
|
|
22714
|
+
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _733 => _733.hidden]), () => ( false));
|
|
22746
22715
|
mutate((r) => r.pushOptimisticSend(text2, hidden));
|
|
22747
22716
|
await publishUserMessage(text2, { hidden, dialogId });
|
|
22748
22717
|
},
|
|
@@ -22835,11 +22804,11 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
22835
22804
|
// Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
|
|
22836
22805
|
// contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
|
|
22837
22806
|
// matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
|
|
22838
|
-
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
22839
|
-
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
22840
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
22841
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
22842
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
22807
|
+
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _734 => _734.provider]), () => ( modelProvider)), () => ( null)),
|
|
22808
|
+
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _735 => _735.modelLabel]), () => ( modelLabel)), () => ( null)),
|
|
22809
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _736 => _736.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _737 => _737.contextWindowMaxTokens]))), () => ( null)),
|
|
22810
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _738 => _738.inputTokensSize]), () => ( null)),
|
|
22811
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _739 => _739.outputTokensSize]), () => ( null)),
|
|
22843
22812
|
currentCacheHitRatePct: null,
|
|
22844
22813
|
currentUsageBreakdown: null,
|
|
22845
22814
|
// Dialog management
|
|
@@ -22961,7 +22930,7 @@ function useUnifiedChat(options) {
|
|
|
22961
22930
|
[]
|
|
22962
22931
|
);
|
|
22963
22932
|
const displayRefForward = _react.useCallback.call(void 0,
|
|
22964
|
-
(ref) => _optionalChain([activeStateRef, 'access',
|
|
22933
|
+
(ref) => _optionalChain([activeStateRef, 'access', _740 => _740.current, 'access', _741 => _741.displayRef, 'optionalCall', _742 => _742(ref)]),
|
|
22965
22934
|
[]
|
|
22966
22935
|
);
|
|
22967
22936
|
const displayRef = activeState.displayRef ? displayRefForward : void 0;
|
|
@@ -22971,7 +22940,7 @@ function useUnifiedChat(options) {
|
|
|
22971
22940
|
const renameDialog = _react.useCallback.call(void 0, (id, title) => activeStateRef.current.renameDialog(id, title), []);
|
|
22972
22941
|
const archiveDialog = _react.useCallback.call(void 0, (id) => activeStateRef.current.archiveDialog(id), []);
|
|
22973
22942
|
const loadMoreDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreDialogs(), []);
|
|
22974
|
-
const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access',
|
|
22943
|
+
const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _743 => _743.current, 'access', _744 => _744.setDialogScope, 'optionalCall', _745 => _745(scope)]), []);
|
|
22975
22944
|
const reloadDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.reloadDialogs(), []);
|
|
22976
22945
|
const loadMoreMessages = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreMessages(), []);
|
|
22977
22946
|
const approveRequest = _react.useCallback.call(void 0, (requestId) => activeStateRef.current.approveRequest(requestId), []);
|
|
@@ -23079,19 +23048,19 @@ function turnRequestKeys(content) {
|
|
|
23079
23048
|
if (!Array.isArray(content)) return keys;
|
|
23080
23049
|
for (const seg of content) {
|
|
23081
23050
|
if (seg.type === "tool_execution") {
|
|
23082
|
-
const id = _optionalChain([seg, 'access',
|
|
23051
|
+
const id = _optionalChain([seg, 'access', _746 => _746.data, 'optionalAccess', _747 => _747.toolExecutionRequestId]);
|
|
23083
23052
|
if (id) keys.add(id);
|
|
23084
23053
|
} else if (seg.type === "approval_request") {
|
|
23085
|
-
const id = _optionalChain([seg, 'access',
|
|
23054
|
+
const id = _optionalChain([seg, 'access', _748 => _748.data, 'optionalAccess', _749 => _749.requestId]);
|
|
23086
23055
|
if (id) keys.add(id);
|
|
23087
23056
|
} else if (seg.type === "escalation_offer") {
|
|
23088
|
-
const id = _optionalChain([seg, 'access',
|
|
23057
|
+
const id = _optionalChain([seg, 'access', _750 => _750.data, 'optionalAccess', _751 => _751.offerId]);
|
|
23089
23058
|
if (id) keys.add(id);
|
|
23090
23059
|
} else if (seg.type === "approval_batch") {
|
|
23091
23060
|
const data = seg.data;
|
|
23092
|
-
if (_optionalChain([data, 'optionalAccess',
|
|
23093
|
-
for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
23094
|
-
if (_optionalChain([call, 'optionalAccess',
|
|
23061
|
+
if (_optionalChain([data, 'optionalAccess', _752 => _752.approvalRequestId])) keys.add(data.approvalRequestId);
|
|
23062
|
+
for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _753 => _753.toolCalls]), () => ( []))) {
|
|
23063
|
+
if (_optionalChain([call, 'optionalAccess', _754 => _754.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
|
|
23095
23064
|
}
|
|
23096
23065
|
}
|
|
23097
23066
|
}
|
|
@@ -23175,18 +23144,18 @@ function mergeHistoryWithRealtime(input) {
|
|
|
23175
23144
|
}
|
|
23176
23145
|
}
|
|
23177
23146
|
const trailing = processedHistory[processedHistory.length - 1];
|
|
23178
|
-
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess',
|
|
23179
|
-
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access',
|
|
23147
|
+
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _755 => _755.role]) === "assistant" ? trailing : null;
|
|
23148
|
+
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _756 => _756.content, 'access', _757 => _757.find, 'call', _758 => _758((s) => s.type === "approval_batch"), 'optionalAccess', _759 => _759.data, 'optionalAccess', _760 => _760.approvalRequestId]), () => ( null)) : null;
|
|
23180
23149
|
let processedToUse = processedHistory;
|
|
23181
23150
|
const pinnedSyntheticIds = /* @__PURE__ */ new Set();
|
|
23182
23151
|
const droppedSyntheticIds = /* @__PURE__ */ new Set();
|
|
23183
23152
|
if (historyBatchId) {
|
|
23184
23153
|
const batchTwins = existingMessages.filter(
|
|
23185
|
-
(m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some((s) => s.type === "approval_batch" && _optionalChain([s, 'access',
|
|
23154
|
+
(m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some((s) => s.type === "approval_batch" && _optionalChain([s, 'access', _761 => _761.data, 'optionalAccess', _762 => _762.approvalRequestId]) === historyBatchId)
|
|
23186
23155
|
);
|
|
23187
23156
|
const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
|
|
23188
23157
|
if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
|
|
23189
|
-
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess',
|
|
23158
|
+
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _763 => _763.content])) ? historyTrailingAssistant.content.length : 0;
|
|
23190
23159
|
const realtimeSize = existingWithSameBatch.content.length;
|
|
23191
23160
|
if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
|
|
23192
23161
|
processedToUse = processedHistory.slice(0, -1);
|
|
@@ -23219,9 +23188,9 @@ function mergeHistoryWithRealtime(input) {
|
|
|
23219
23188
|
const trailingAssistantText = lastProcessed && lastProcessed.role === "assistant" ? assistantAnswerText(lastProcessed.content) : "";
|
|
23220
23189
|
const windowSignals = collectTwinSignals(processedToUse);
|
|
23221
23190
|
const seenUserSyntheticByContent = /* @__PURE__ */ new Map();
|
|
23222
|
-
const isInWindow = (m) => processedIds.has(m.id) || (_nullishCoalesce(_optionalChain([rawHistoryIds, 'optionalAccess',
|
|
23191
|
+
const isInWindow = (m) => processedIds.has(m.id) || (_nullishCoalesce(_optionalChain([rawHistoryIds, 'optionalAccess', _764 => _764.has, 'call', _765 => _765(m.id)]), () => ( false)));
|
|
23223
23192
|
const firstWindowIndex = existingMessages.findIndex(isInWindow);
|
|
23224
|
-
const isPersistedOlder = (m) => !isClientMintedId(m.id) && (_nullishCoalesce(_optionalChain([m, 'access',
|
|
23193
|
+
const isPersistedOlder = (m) => !isClientMintedId(m.id) && (_nullishCoalesce(_optionalChain([m, 'access', _766 => _766.timestamp, 'optionalAccess', _767 => _767.getTime, 'call', _768 => _768()]), () => ( 0))) <= historyFetchedAt;
|
|
23225
23194
|
let lastOlderPersistedIndex = -1;
|
|
23226
23195
|
if (firstWindowIndex < 0) {
|
|
23227
23196
|
for (const [index, m] of existingMessages.entries()) {
|
|
@@ -23239,7 +23208,7 @@ function mergeHistoryWithRealtime(input) {
|
|
|
23239
23208
|
} else if (pm.role === "assistant") {
|
|
23240
23209
|
windowHasUnstampedAssistant = true;
|
|
23241
23210
|
}
|
|
23242
|
-
const time = _optionalChain([pm, 'access',
|
|
23211
|
+
const time = _optionalChain([pm, 'access', _769 => _769.timestamp, 'optionalAccess', _770 => _770.getTime, 'call', _771 => _771()]);
|
|
23243
23212
|
if (typeof time === "number" && time < windowMinTime) windowMinTime = time;
|
|
23244
23213
|
}
|
|
23245
23214
|
const threadHasClientMintedRow = existingMessages.some((m) => isClientMintedId(m.id));
|
|
@@ -23257,14 +23226,14 @@ function mergeHistoryWithRealtime(input) {
|
|
|
23257
23226
|
const verdict = twinVerdict(windowSignals, m);
|
|
23258
23227
|
return verdict === "unknown" ? !seqCanMislead(m) : verdict === "distinct";
|
|
23259
23228
|
}
|
|
23260
|
-
const time = _optionalChain([m, 'access',
|
|
23229
|
+
const time = _optionalChain([m, 'access', _772 => _772.timestamp, 'optionalAccess', _773 => _773.getTime, 'call', _774 => _774()]);
|
|
23261
23230
|
if (typeof time !== "number" || time > historyFetchedAt) return false;
|
|
23262
23231
|
if (!Number.isFinite(windowMinTime) || time >= windowMinTime) return false;
|
|
23263
23232
|
return twinVerdict(windowSignals, m) === "distinct";
|
|
23264
23233
|
};
|
|
23265
23234
|
const keepRealtime = (m) => {
|
|
23266
23235
|
if (m.role === "user" && isOptimisticId(m.id) && typeof m.content === "string") {
|
|
23267
|
-
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access',
|
|
23236
|
+
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _775 => _775.timestamp, 'optionalAccess', _776 => _776.getTime, 'call', _777 => _777()]), () => ( 0))) <= historyFetchedAt;
|
|
23268
23237
|
return !(canBeInSnapshot && windowSignals.userContents.has(m.content));
|
|
23269
23238
|
}
|
|
23270
23239
|
if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
|
|
@@ -23288,7 +23257,7 @@ function mergeHistoryWithRealtime(input) {
|
|
|
23288
23257
|
} else if (typeof m.streamSeq === "number") {
|
|
23289
23258
|
covered = historyMaxStreamSeq > 0 && historyMaxStreamSeq >= m.streamSeq;
|
|
23290
23259
|
} else {
|
|
23291
|
-
covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access',
|
|
23260
|
+
covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _778 => _778.timestamp, 'optionalAccess', _779 => _779.getTime, 'call', _780 => _780()]), () => ( 0))) <= historyFetchedAt;
|
|
23292
23261
|
}
|
|
23293
23262
|
if (covered) return false;
|
|
23294
23263
|
}
|
|
@@ -23397,7 +23366,7 @@ function normalizeHistoricalMessageData(md) {
|
|
|
23397
23366
|
function isHistoricalUserTurn(m) {
|
|
23398
23367
|
return !!m.owner;
|
|
23399
23368
|
}
|
|
23400
|
-
var isTextSegment = (d) => _optionalChain([d, 'optionalAccess',
|
|
23369
|
+
var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _781 => _781.type]) === "TEXT" && typeof d.text === "string";
|
|
23401
23370
|
var THINK_MS = 550;
|
|
23402
23371
|
var TOKEN_MS = 55;
|
|
23403
23372
|
var USER_MS = 480;
|
|
@@ -24017,7 +23986,7 @@ function useChatDialogManager({
|
|
|
24017
23986
|
const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
|
|
24018
23987
|
if (restoreTarget) {
|
|
24019
23988
|
try {
|
|
24020
|
-
await _optionalChain([unarchiveDialog, 'optionalCall',
|
|
23989
|
+
await _optionalChain([unarchiveDialog, 'optionalCall', _782 => _782(restoreTarget.id)]);
|
|
24021
23990
|
} catch (err) {
|
|
24022
23991
|
console.error("[useChatDialogManager] unarchive failed:", err);
|
|
24023
23992
|
return;
|
|
@@ -24266,7 +24235,7 @@ function SourceChip({
|
|
|
24266
24235
|
const Icon = cta.icon;
|
|
24267
24236
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
24268
24237
|
const chipClass = chatChipClass({ tone: "secondary" });
|
|
24269
|
-
const decideTab = (href, targetPlatform) =>
|
|
24238
|
+
const decideTab = (href, targetPlatform) => _chunkEYKTKDRKcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
|
|
24270
24239
|
if (src.items && src.items.length > 0) {
|
|
24271
24240
|
const dropdownItems = src.items.map((item) => {
|
|
24272
24241
|
const itemCta = resolveSourceRowCTA(
|
|
@@ -24355,7 +24324,7 @@ function SourceChip({
|
|
|
24355
24324
|
"a",
|
|
24356
24325
|
{
|
|
24357
24326
|
href: resolvedHref,
|
|
24358
|
-
...
|
|
24327
|
+
..._chunkEYKTKDRKcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
24359
24328
|
onClick: buildClickHandler(resolvedHref, null, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
24360
24329
|
className: chipClass,
|
|
24361
24330
|
children: chipBody(src.name)
|
|
@@ -24371,7 +24340,7 @@ function SourceChip({
|
|
|
24371
24340
|
"a",
|
|
24372
24341
|
{
|
|
24373
24342
|
href: resolvedHref,
|
|
24374
|
-
...
|
|
24343
|
+
..._chunkEYKTKDRKcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
24375
24344
|
onClick: buildClickHandler(resolvedHref, src.path, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
24376
24345
|
className: chipClass,
|
|
24377
24346
|
title: displayName,
|
|
@@ -24563,7 +24532,7 @@ function EmbeddableChatInner({
|
|
|
24563
24532
|
}),
|
|
24564
24533
|
[commandsUrl]
|
|
24565
24534
|
);
|
|
24566
|
-
const headerUserName = _optionalChain([identityUser, 'optionalAccess',
|
|
24535
|
+
const headerUserName = _optionalChain([identityUser, 'optionalAccess', _783 => _783.name, 'optionalAccess', _784 => _784.trim, 'call', _785 => _785()]) || [_optionalChain([identityUser, 'optionalAccess', _786 => _786.firstName]), _optionalChain([identityUser, 'optionalAccess', _787 => _787.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([userDisplayName, 'optionalAccess', _788 => _788.trim, 'call', _789 => _789()]) || void 0;
|
|
24567
24536
|
const effectiveModes = _react.useMemo.call(void 0, () => {
|
|
24568
24537
|
if (modes) return modes;
|
|
24569
24538
|
const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
|
|
@@ -24578,7 +24547,7 @@ function EmbeddableChatInner({
|
|
|
24578
24547
|
if (controlledActiveMode === void 0) {
|
|
24579
24548
|
setUncontrolledActiveMode(next);
|
|
24580
24549
|
}
|
|
24581
|
-
_optionalChain([onActiveModeChange, 'optionalCall',
|
|
24550
|
+
_optionalChain([onActiveModeChange, 'optionalCall', _790 => _790(next)]);
|
|
24582
24551
|
},
|
|
24583
24552
|
[controlledActiveMode, onActiveModeChange]
|
|
24584
24553
|
);
|
|
@@ -24605,7 +24574,7 @@ function EmbeddableChatInner({
|
|
|
24605
24574
|
);
|
|
24606
24575
|
const effectiveAssistantName = emptyStateConfig.name;
|
|
24607
24576
|
const effectiveAssistantIcon = emptyStateConfig.icon;
|
|
24608
|
-
const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess',
|
|
24577
|
+
const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _791 => _791.title]) === "string" ? guideWelcome.title : null)));
|
|
24609
24578
|
const {
|
|
24610
24579
|
messages: rawMessages,
|
|
24611
24580
|
isLoading: chatLoading,
|
|
@@ -24648,8 +24617,8 @@ function EmbeddableChatInner({
|
|
|
24648
24617
|
const mingoCaps = _react.useMemo.call(void 0,
|
|
24649
24618
|
() => ({
|
|
24650
24619
|
...dialogCapabilities,
|
|
24651
|
-
canRename: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess',
|
|
24652
|
-
canArchive: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess',
|
|
24620
|
+
canRename: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _792 => _792.canRename]), () => ( false)),
|
|
24621
|
+
canArchive: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _793 => _793.canArchive]), () => ( false))
|
|
24653
24622
|
}),
|
|
24654
24623
|
[dialogCapabilities]
|
|
24655
24624
|
);
|
|
@@ -24664,7 +24633,7 @@ function EmbeddableChatInner({
|
|
|
24664
24633
|
void sendMessage(guidePendingPrompt).catch((err) => {
|
|
24665
24634
|
console.error("[EmbeddableChat] guide launcher prompt failed:", err);
|
|
24666
24635
|
});
|
|
24667
|
-
_optionalChain([onGuidePromptConsumed, 'optionalCall',
|
|
24636
|
+
_optionalChain([onGuidePromptConsumed, 'optionalCall', _794 => _794()]);
|
|
24668
24637
|
}, [guidePendingPrompt, activeMode, sendMessage, onGuidePromptConsumed]);
|
|
24669
24638
|
const {
|
|
24670
24639
|
attachments: stagedAttachments,
|
|
@@ -24675,7 +24644,7 @@ function EmbeddableChatInner({
|
|
|
24675
24644
|
clear: clearAttachments
|
|
24676
24645
|
} = useChatAttachments();
|
|
24677
24646
|
const { panelRef: galleryPanelRef, modal: galleryModal } = useChatAttachmentImageGallery();
|
|
24678
|
-
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess',
|
|
24647
|
+
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _795 => _795.maxItems]), () => ( 10));
|
|
24679
24648
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
24680
24649
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
24681
24650
|
const [contextPickerOpen, setContextPickerOpen] = _react.useState.call(void 0, false);
|
|
@@ -24696,10 +24665,10 @@ function EmbeddableChatInner({
|
|
|
24696
24665
|
}, [activeDialogId, activeMode]);
|
|
24697
24666
|
const mentionMarkerByType = _react.useMemo.call(void 0, () => {
|
|
24698
24667
|
const m = /* @__PURE__ */ new Map();
|
|
24699
|
-
for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess',
|
|
24668
|
+
for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _796 => _796.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
|
|
24700
24669
|
return m;
|
|
24701
|
-
}, [_optionalChain([contextPicker, 'optionalAccess',
|
|
24702
|
-
const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess',
|
|
24670
|
+
}, [_optionalChain([contextPicker, 'optionalAccess', _797 => _797.entityTypes])]);
|
|
24671
|
+
const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _798 => _798.entityTypes]);
|
|
24703
24672
|
const resolveContextIcon = _react.useMemo.call(void 0, () => {
|
|
24704
24673
|
const byType = /* @__PURE__ */ new Map();
|
|
24705
24674
|
for (const t of _nullishCoalesce(contextEntityTypes, () => ( []))) byType.set(t.type, t.icon);
|
|
@@ -24711,7 +24680,7 @@ function EmbeddableChatInner({
|
|
|
24711
24680
|
if (mentionActiveRef.current) {
|
|
24712
24681
|
if (contextItems.some((p) => `${p.type}:${p.id}` === key)) return;
|
|
24713
24682
|
if (contextItems.length >= contextMaxItems) return;
|
|
24714
|
-
_optionalChain([chatInputRef, 'access',
|
|
24683
|
+
_optionalChain([chatInputRef, 'access', _799 => _799.current, 'optionalAccess', _800 => _800.commitMention, 'call', _801 => _801(mentionTokenOf(key, mentionMarkerByType), {
|
|
24715
24684
|
label: item.label,
|
|
24716
24685
|
icon: resolveContextIcon(item)
|
|
24717
24686
|
})]);
|
|
@@ -24734,9 +24703,9 @@ function EmbeddableChatInner({
|
|
|
24734
24703
|
setContextItems((prev) => prev.filter((p) => `${p.type}:${p.id}` !== key));
|
|
24735
24704
|
if (mentionKeysRef.current.has(key)) {
|
|
24736
24705
|
mentionKeysRef.current.delete(key);
|
|
24737
|
-
const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access',
|
|
24706
|
+
const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _802 => _802.current, 'optionalAccess', _803 => _803.getValue, 'call', _804 => _804()]), () => ( ""));
|
|
24738
24707
|
const next = cur.replace(`@${mentionTokenOf(key, mentionMarkerByType)}`, "").replace(/\s{2,}/g, " ").trimStart();
|
|
24739
|
-
_optionalChain([chatInputRef, 'access',
|
|
24708
|
+
_optionalChain([chatInputRef, 'access', _805 => _805.current, 'optionalAccess', _806 => _806.setValue, 'call', _807 => _807(next)]);
|
|
24740
24709
|
}
|
|
24741
24710
|
},
|
|
24742
24711
|
[mentionMarkerByType]
|
|
@@ -24758,7 +24727,7 @@ function EmbeddableChatInner({
|
|
|
24758
24727
|
}, []);
|
|
24759
24728
|
const closeContextPicker = _react.useCallback.call(void 0, () => {
|
|
24760
24729
|
if (mentionActiveRef.current) {
|
|
24761
|
-
_optionalChain([chatInputRef, 'access',
|
|
24730
|
+
_optionalChain([chatInputRef, 'access', _808 => _808.current, 'optionalAccess', _809 => _809.removeMentionTrigger, 'call', _810 => _810()]);
|
|
24762
24731
|
}
|
|
24763
24732
|
setContextPickerOpen(false);
|
|
24764
24733
|
setMentionQuery(null);
|
|
@@ -24792,8 +24761,8 @@ function EmbeddableChatInner({
|
|
|
24792
24761
|
[effectiveAssistantIcon]
|
|
24793
24762
|
);
|
|
24794
24763
|
const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
24795
|
-
const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess',
|
|
24796
|
-
const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess',
|
|
24764
|
+
const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _811 => _811.firstName]), _optionalChain([identityUser, 'optionalAccess', _812 => _812.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _813 => _813.name, 'optionalAccess', _814 => _814.trim, 'call', _815 => _815()]) || void 0 : void 0;
|
|
24765
|
+
const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _816 => _816.avatarUrl, 'optionalAccess', _817 => _817.trim, 'call', _818 => _818()]) || void 0 : void 0;
|
|
24797
24766
|
const messages = _react.useMemo.call(void 0, () => {
|
|
24798
24767
|
const options = { userName: guideUserName, userAvatar: guideUserAvatar, timestampCache };
|
|
24799
24768
|
const mapped = rawMessages.map((m) => mapHostMessage(m, options));
|
|
@@ -24967,7 +24936,7 @@ function EmbeddableChatInner({
|
|
|
24967
24936
|
_react.useEffect.call(void 0, () => {
|
|
24968
24937
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
24969
24938
|
const ro = new ResizeObserver((entries) => {
|
|
24970
|
-
const w = _optionalChain([entries, 'access',
|
|
24939
|
+
const w = _optionalChain([entries, 'access', _819 => _819[0], 'optionalAccess', _820 => _820.contentRect, 'optionalAccess', _821 => _821.width]);
|
|
24971
24940
|
if (typeof w === "number") setPanelWidth(w);
|
|
24972
24941
|
});
|
|
24973
24942
|
ro.observe(panelBoundary);
|
|
@@ -25011,17 +24980,17 @@ function EmbeddableChatInner({
|
|
|
25011
24980
|
const stackedListView = isMingoMode && !hasConversation && !archiveOpen && !wideMingo && !composeOpen && !emptyListSkipped;
|
|
25012
24981
|
const headerShowBack = hasConversation || guideCanReturnToMingo;
|
|
25013
24982
|
const freshConversationTitle = isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "New Chat";
|
|
25014
|
-
const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess',
|
|
24983
|
+
const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _822 => _822.title]) || freshConversationTitle : isGuideEmpty ? freshConversationTitle : "Current Chats";
|
|
25015
24984
|
const headerBackAriaLabel = hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo";
|
|
25016
24985
|
const headerOnBack = hasConversation ? handleBack : () => handleActiveModeChange("mingo");
|
|
25017
24986
|
const headerOnRestore = isViewingArchived && unarchiveDialog && activeDialog ? () => setRestoreTarget(activeDialog) : void 0;
|
|
25018
24987
|
const headerOnRename = activeDialogId && activeDialog && mingoCaps.canRename ? () => setRenameTarget(activeDialog) : void 0;
|
|
25019
24988
|
const headerOnArchive = activeDialogId && activeDialog && mingoCaps.canArchive ? () => setArchiveTarget(activeDialog) : void 0;
|
|
25020
|
-
const headerOnCopyLink = activeDialogId && activeDialog && mingoCaps.onCopyLink ? () => _optionalChain([mingoCaps, 'access',
|
|
24989
|
+
const headerOnCopyLink = activeDialogId && activeDialog && mingoCaps.onCopyLink ? () => _optionalChain([mingoCaps, 'access', _823 => _823.onCopyLink, 'optionalCall', _824 => _824(activeDialog)]) : void 0;
|
|
25021
24990
|
const headerOnOpenArchive = fetchArchivedDialogs ? openArchive : void 0;
|
|
25022
|
-
const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess',
|
|
25023
|
-
const headerPersonName = _optionalChain([headerOwner, 'optionalAccess',
|
|
25024
|
-
const headerPersonAvatarUrl = headerOwner ? _optionalChain([headerOwner, 'access',
|
|
24991
|
+
const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _825 => _825.owner]) : void 0;
|
|
24992
|
+
const headerPersonName = _optionalChain([headerOwner, 'optionalAccess', _826 => _826.name, 'optionalAccess', _827 => _827.trim, 'call', _828 => _828()]) || headerUserName;
|
|
24993
|
+
const headerPersonAvatarUrl = headerOwner ? _optionalChain([headerOwner, 'access', _829 => _829.avatarUrl, 'optionalAccess', _830 => _830.trim, 'call', _831 => _831()]) || void 0 : _optionalChain([identityUser, 'optionalAccess', _832 => _832.avatarUrl, 'optionalAccess', _833 => _833.trim, 'call', _834 => _834()]) || _optionalChain([userAvatarUrl, 'optionalAccess', _835 => _835.trim, 'call', _836 => _836()]) || void 0;
|
|
25025
24994
|
const headerAvatar = headerPersonName || headerPersonAvatarUrl ? { name: headerPersonName, avatarUrl: headerPersonAvatarUrl } : void 0;
|
|
25026
24995
|
const handleNewChat = _react.useCallback.call(void 0, () => {
|
|
25027
24996
|
resetToNewChat();
|
|
@@ -25167,7 +25136,7 @@ function EmbeddableChatInner({
|
|
|
25167
25136
|
headerAvatar ? (
|
|
25168
25137
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
25169
25138
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25170
|
-
|
|
25139
|
+
_chunkEYKTKDRKcjs.SquareAvatar,
|
|
25171
25140
|
{
|
|
25172
25141
|
variant: "round",
|
|
25173
25142
|
sizePx: 32,
|
|
@@ -25339,9 +25308,9 @@ function EmbeddableChatInner({
|
|
|
25339
25308
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
25340
25309
|
subtitleLoading: emptyStateLoading,
|
|
25341
25310
|
...guideWelcome,
|
|
25342
|
-
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
25343
|
-
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
25344
|
-
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess',
|
|
25311
|
+
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _837 => _837.title]))),
|
|
25312
|
+
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _838 => _838.icon]))),
|
|
25313
|
+
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _839 => _839.quickActions]), () => ( guideSuggestedActions)),
|
|
25345
25314
|
onQuickAction: (action) => {
|
|
25346
25315
|
setQuickActionPreview(null);
|
|
25347
25316
|
handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
|
|
@@ -25415,8 +25384,8 @@ function EmbeddableChatInner({
|
|
|
25415
25384
|
selectedContextItems: contextItems,
|
|
25416
25385
|
onToggleContextItem: toggleContextItem,
|
|
25417
25386
|
onRemoveContextItem: removeContextItem,
|
|
25418
|
-
contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess',
|
|
25419
|
-
onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess',
|
|
25387
|
+
contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _840 => _840.items]),
|
|
25388
|
+
onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _841 => _841.onRemove]),
|
|
25420
25389
|
contextPickerOpen,
|
|
25421
25390
|
onOpenContextPicker: openContextPicker,
|
|
25422
25391
|
onCloseContextPicker: closeContextPicker,
|
|
@@ -25881,6 +25850,5 @@ function EmbeddableChatInner({
|
|
|
25881
25850
|
|
|
25882
25851
|
|
|
25883
25852
|
|
|
25884
|
-
|
|
25885
|
-
exports.FloatingTooltip = FloatingTooltip; exports.tagVariants = tagVariants; exports.Tag = Tag; 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.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getCurrentPlatform = getCurrentPlatform; exports.switchPlatformTheme = switchPlatformTheme; exports.getSemanticColor = getSemanticColor; exports.getPlatformConfig = getPlatformConfig; exports.usePlatformColors = usePlatformColors; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.rgbToHsl = rgbToHsl; exports.hslToRgb = hslToRgb; exports.ActionsMenu = ActionsMenu; exports.ActionsMenuDropdown = ActionsMenuDropdown; exports.ColorSwatch = ColorSwatch; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.resolveTicketStatus = resolveTicketStatus; exports.getTicketStatusConfig = getTicketStatusConfig; exports.getTicketStatusTag = getTicketStatusTag; exports.kindToCanonicalStatus = kindToCanonicalStatus; exports.usesCanonicalStatusStyle = usesCanonicalStatusStyle; exports.resolveStatusTagProps = resolveStatusTagProps; exports.TicketStatusTag = TicketStatusTag; exports.useScrollFade = useScrollFade; exports.ScrollFadeOverlay = ScrollFadeOverlay; exports.ScrollShadow = ScrollShadow; exports.Modal = Modal; exports.ModalContent = ModalContent; exports.ModalTwoColumn = ModalTwoColumn; exports.ModalHeader = ModalHeader; exports.ModalTitle = ModalTitle; exports.ModalFooter = ModalFooter; 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.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; 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.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MarkdownEngine = MarkdownEngine; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; 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.VideoPlayBadge = VideoPlayBadge; exports.VideoUnmuteGlyph = VideoUnmuteGlyph; exports.extractYouTubeId = extractYouTubeId; exports.VIDEO_PLAYBACK_FAILED_EVENT = VIDEO_PLAYBACK_FAILED_EVENT; exports.Video = Video2; 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.formatTime = formatTime; 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.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.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.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.ChatMessageSkeleton = ChatMessageSkeleton; exports.ChatMessageListSkeleton = ChatMessageListSkeleton; exports.ChatMessageList = ChatMessageList; 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.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.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.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.PAGE_HEADING_CLASS = PAGE_HEADING_CLASS; exports.SECTION_HEADING_CLASS = SECTION_HEADING_CLASS; exports.PageHeading = PageHeading; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.VideoHoverPreviewSurface = VideoHoverPreviewSurface; 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.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; 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.CampaignCardAdmin = CampaignCardAdmin; exports.CampaignCardAdminSkeleton = CampaignCardAdminSkeleton; exports.GenericEntityCard = GenericEntityCard; exports.GenericEntityCardSkeleton = GenericEntityCardSkeleton; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.useChatCardItem = useChatCardItem; exports.clickupTaskUrl = clickupTaskUrl; exports.readFetchedCardTitle = readFetchedCardTitle; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.chatCardLabel = chatCardLabel; 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.EMPTY_DIALOG_CAPABILITIES = EMPTY_DIALOG_CAPABILITIES; 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.approvalDisplaysInline = approvalDisplaysInline; 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.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.createChatConversationsApi = createChatConversationsApi; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.buildDiscussPrompt = buildDiscussPrompt; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.useManagedDialogList = useManagedDialogList; exports.useSseChatAdapter = useSseChatAdapter; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.extractIncompleteTailState = extractIncompleteTailState; exports.decodeHistoricalMessageData = decodeHistoricalMessageData; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.mapProcessedToUnified = mapProcessedToUnified; exports.historicalToUnified = historicalToUnified; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useStableShallow = useStableShallow; 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;
|
|
25886
|
-
//# sourceMappingURL=chunk-VRN27OMD.cjs.map
|
|
25853
|
+
exports.FloatingTooltip = FloatingTooltip; exports.tagVariants = tagVariants; exports.Tag = Tag; 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.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getCurrentPlatform = getCurrentPlatform; exports.switchPlatformTheme = switchPlatformTheme; exports.getSemanticColor = getSemanticColor; exports.getPlatformConfig = getPlatformConfig; exports.usePlatformColors = usePlatformColors; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.rgbToHsl = rgbToHsl; exports.hslToRgb = hslToRgb; exports.ActionsMenu = ActionsMenu; exports.ActionsMenuDropdown = ActionsMenuDropdown; exports.ColorSwatch = ColorSwatch; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.resolveTicketStatus = resolveTicketStatus; exports.getTicketStatusConfig = getTicketStatusConfig; exports.getTicketStatusTag = getTicketStatusTag; exports.kindToCanonicalStatus = kindToCanonicalStatus; exports.usesCanonicalStatusStyle = usesCanonicalStatusStyle; exports.resolveStatusTagProps = resolveStatusTagProps; exports.TicketStatusTag = TicketStatusTag; exports.useScrollFade = useScrollFade; exports.ScrollFadeOverlay = ScrollFadeOverlay; exports.ScrollShadow = ScrollShadow; exports.Modal = Modal; exports.ModalContent = ModalContent; exports.ModalTwoColumn = ModalTwoColumn; exports.ModalHeader = ModalHeader; exports.ModalTitle = ModalTitle; exports.ModalFooter = ModalFooter; 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.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; 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.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MarkdownEngine = MarkdownEngine; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; 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.VideoPlayBadge = VideoPlayBadge; exports.VideoUnmuteGlyph = VideoUnmuteGlyph; exports.extractYouTubeId = extractYouTubeId; exports.VIDEO_PLAYBACK_FAILED_EVENT = VIDEO_PLAYBACK_FAILED_EVENT; exports.Video = Video2; 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.formatTime = formatTime; 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.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.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.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.ChatMessageSkeleton = ChatMessageSkeleton; exports.ChatMessageListSkeleton = ChatMessageListSkeleton; exports.ChatMessageList = ChatMessageList; 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.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.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.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.PAGE_HEADING_CLASS = PAGE_HEADING_CLASS; exports.SECTION_HEADING_CLASS = SECTION_HEADING_CLASS; exports.PageHeading = PageHeading; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.VideoHoverPreviewSurface = VideoHoverPreviewSurface; 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.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; 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.CampaignCardAdmin = CampaignCardAdmin; exports.CampaignCardAdminSkeleton = CampaignCardAdminSkeleton; exports.GenericEntityCard = GenericEntityCard; exports.GenericEntityCardSkeleton = GenericEntityCardSkeleton; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.useChatCardItem = useChatCardItem; exports.clickupTaskUrl = clickupTaskUrl; exports.readFetchedCardTitle = readFetchedCardTitle; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.CHAT_TYPE = CHAT_TYPE; exports.OWNER_TYPE = OWNER_TYPE; exports.MESSAGE_ROLE = MESSAGE_ROLE; exports.ASSISTANT_TYPE = ASSISTANT_TYPE; exports.AUTHOR_TYPE = AUTHOR_TYPE; exports.APPROVAL_STATUS = APPROVAL_STATUS; exports.APPROVAL_BLOCK_VARIANT = APPROVAL_BLOCK_VARIANT; exports.CONNECTION_STATUS = CONNECTION_STATUS; exports.isStructuredContent = isStructuredContent; exports.normalizeContent = normalizeContent2; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.EMPTY_DIALOG_CAPABILITIES = EMPTY_DIALOG_CAPABILITIES; 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.approvalDisplaysInline = approvalDisplaysInline; 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.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.createChatConversationsApi = createChatConversationsApi; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.buildDiscussPrompt = buildDiscussPrompt; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.useManagedDialogList = useManagedDialogList; exports.useSseChatAdapter = useSseChatAdapter; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.extractIncompleteTailState = extractIncompleteTailState; exports.decodeHistoricalMessageData = decodeHistoricalMessageData; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.mapProcessedToUnified = mapProcessedToUnified; exports.historicalToUnified = historicalToUnified; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useStableShallow = useStableShallow; 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;
|
|
25854
|
+
//# sourceMappingURL=chunk-GAPXVAS6.cjs.map
|