@flamingo-stack/openframe-frontend-core 0.0.618 → 0.0.619-snapshot.20260913210426
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-GXUGYZ6H.js → chunk-43JQ3SJS.js} +483 -455
- package/dist/chunk-43JQ3SJS.js.map +1 -0
- package/dist/{chunk-EJGZIYC7.cjs → chunk-4NKJRJU4.cjs} +6 -6
- package/dist/{chunk-EJGZIYC7.cjs.map → chunk-4NKJRJU4.cjs.map} +1 -1
- package/dist/{chunk-WVRXDGGP.js → chunk-4SH2L3HO.js} +3 -3
- package/dist/{chunk-YCZBCEQO.js → chunk-5AB6QLIQ.js} +4 -4
- package/dist/{chunk-VIBREYUK.cjs → chunk-5G3L6327.cjs} +3 -3
- package/dist/{chunk-VIBREYUK.cjs.map → chunk-5G3L6327.cjs.map} +1 -1
- package/dist/{chunk-BXNSKTEG.cjs → chunk-5NYMTTUB.cjs} +65 -65
- package/dist/{chunk-BXNSKTEG.cjs.map → chunk-5NYMTTUB.cjs.map} +1 -1
- package/dist/{chunk-GBON2OCG.js → chunk-5WGOAJ4B.js} +3 -2
- package/dist/chunk-5WGOAJ4B.js.map +1 -0
- package/dist/{chunk-FCN2HN6Q.js → chunk-7FPWMX26.js} +45 -8
- package/dist/chunk-7FPWMX26.js.map +1 -0
- package/dist/{chunk-GFWKEWEH.js → chunk-BR5PVFWG.js} +4 -4
- package/dist/{chunk-GD7CV2JI.js → chunk-CKH4SLD5.js} +8 -8
- package/dist/{chunk-E2EGTHYA.cjs → chunk-CS7MVDUF.cjs} +77 -49
- package/dist/chunk-CS7MVDUF.cjs.map +1 -0
- package/dist/{chunk-MOC7JLEP.cjs → chunk-CSQZMK3O.cjs} +88 -88
- package/dist/{chunk-MOC7JLEP.cjs.map → chunk-CSQZMK3O.cjs.map} +1 -1
- package/dist/{chunk-UUXLDIK3.js → chunk-DJVN7IW6.js} +3 -3
- package/dist/{chunk-UXOOVP77.cjs → chunk-DV7IBKJI.cjs} +4 -4
- package/dist/{chunk-UXOOVP77.cjs.map → chunk-DV7IBKJI.cjs.map} +1 -1
- package/dist/{chunk-G7NEMLNW.cjs → chunk-ECOJUPXO.cjs} +12 -12
- package/dist/{chunk-G7NEMLNW.cjs.map → chunk-ECOJUPXO.cjs.map} +1 -1
- package/dist/{chunk-N6CULJYR.cjs → chunk-EG4IKWY4.cjs} +3 -2
- package/dist/{chunk-N6CULJYR.cjs.map → chunk-EG4IKWY4.cjs.map} +1 -1
- package/dist/{chunk-U6B3MM4U.cjs → chunk-FCMCCPQI.cjs} +20 -20
- package/dist/{chunk-U6B3MM4U.cjs.map → chunk-FCMCCPQI.cjs.map} +1 -1
- package/dist/{chunk-IW746HJ7.js → chunk-FHR2JU2J.js} +2 -2
- package/dist/{chunk-VRN5YYD3.js → chunk-G6LYVK64.js} +3 -3
- package/dist/{chunk-2DTZXXY3.js → chunk-GMBETTTE.js} +5 -5
- package/dist/{chunk-NUU5ZEEG.js → chunk-GZFVTFMU.js} +4 -4
- package/dist/{chunk-7ZEQMFP3.cjs → chunk-HC6FZJMM.cjs} +58 -38
- package/dist/chunk-HC6FZJMM.cjs.map +1 -0
- package/dist/{chunk-IDMEC4ZK.cjs → chunk-IVFU4RFK.cjs} +22 -22
- package/dist/{chunk-IDMEC4ZK.cjs.map → chunk-IVFU4RFK.cjs.map} +1 -1
- package/dist/{chunk-5P74E24M.js → chunk-KLAL4FTU.js} +5 -5
- package/dist/{chunk-UKFBPJBK.cjs → chunk-KMWB52KV.cjs} +29 -29
- package/dist/{chunk-UKFBPJBK.cjs.map → chunk-KMWB52KV.cjs.map} +1 -1
- package/dist/{chunk-ANMD7SM4.js → chunk-LNF5W3QJ.js} +3 -3
- package/dist/{chunk-XUNFDRMP.js → chunk-POSO6GYC.js} +4 -4
- package/dist/{chunk-BGDYSUA2.cjs → chunk-PTANIWHA.cjs} +11 -11
- package/dist/{chunk-BGDYSUA2.cjs.map → chunk-PTANIWHA.cjs.map} +1 -1
- package/dist/{chunk-RDEFB354.cjs → chunk-RBV63HZO.cjs} +6 -6
- package/dist/{chunk-RDEFB354.cjs.map → chunk-RBV63HZO.cjs.map} +1 -1
- package/dist/{chunk-EXEXX34Q.cjs → chunk-RSGFPFSM.cjs} +28 -28
- package/dist/{chunk-EXEXX34Q.cjs.map → chunk-RSGFPFSM.cjs.map} +1 -1
- package/dist/{chunk-PIJK3FV6.cjs → chunk-SGAMQ4G7.cjs} +3 -3
- package/dist/{chunk-PIJK3FV6.cjs.map → chunk-SGAMQ4G7.cjs.map} +1 -1
- package/dist/{chunk-3FTNQDLP.cjs → chunk-T5ZKUSVJ.cjs} +5 -5
- package/dist/{chunk-3FTNQDLP.cjs.map → chunk-T5ZKUSVJ.cjs.map} +1 -1
- package/dist/{chunk-J25M43YI.js → chunk-T7FTSJM2.js} +6 -6
- package/dist/{chunk-6XJS3WU7.js → chunk-TMGTVVE2.js} +24 -4
- package/dist/chunk-TMGTVVE2.js.map +1 -0
- package/dist/{chunk-RROIA6WY.js → chunk-UY4EFV3P.js} +2 -2
- package/dist/{chunk-TSCIVH7T.js → chunk-VBIFSOPQ.js} +2 -2
- package/dist/{chunk-ROQTWRV7.cjs → chunk-VRN27OMD.cjs} +406 -369
- package/dist/chunk-VRN27OMD.cjs.map +1 -0
- package/dist/{chunk-IPHA3AQ6.js → chunk-XGVWMJQD.js} +8 -8
- package/dist/{chunk-K26VN65M.cjs → chunk-YKHVTESH.cjs} +15 -15
- package/dist/{chunk-K26VN65M.cjs.map → chunk-YKHVTESH.cjs.map} +1 -1
- package/dist/{chunk-E7VXPU3R.cjs → chunk-Z5OZCZYH.cjs} +33 -33
- package/dist/{chunk-E7VXPU3R.cjs.map → chunk-Z5OZCZYH.cjs.map} +1 -1
- package/dist/{chunk-CWMKY2UJ.js → chunk-ZBXPNBKB.js} +3 -3
- package/dist/{chunk-CM6DNLK7.cjs → chunk-ZLILFOPN.cjs} +200 -200
- package/dist/{chunk-CM6DNLK7.cjs.map → chunk-ZLILFOPN.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +11 -11
- package/dist/components/case-studies/index.js +5 -5
- package/dist/components/chat/entity-cards/ai-prompt-card.d.ts +35 -0
- package/dist/components/chat/entity-cards/ai-prompt-card.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts +6 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/index.d.ts +3 -1
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +9 -3
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +8 -2
- package/dist/components/chat/utils/icon-registry.d.ts.map +1 -1
- package/dist/components/comment-card.d.ts +26 -24
- package/dist/components/comment-card.d.ts.map +1 -1
- package/dist/components/comment-thread.d.ts +58 -0
- package/dist/components/comment-thread.d.ts.map +1 -0
- package/dist/components/contact/index.cjs +6 -6
- package/dist/components/contact/index.js +5 -5
- package/dist/components/docs/index.cjs +9 -9
- package/dist/components/docs/index.js +8 -8
- package/dist/components/embeds/index.cjs +6 -6
- package/dist/components/embeds/index.js +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/faq/index.js +5 -5
- package/dist/components/features/index.cjs +5 -5
- package/dist/components/features/index.js +4 -4
- package/dist/components/help-center-pages/index.cjs +27 -27
- package/dist/components/help-center-pages/index.js +18 -18
- package/dist/components/index.cjs +223 -77
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +340 -194
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +40 -40
- package/dist/components/meeting-scheduler/index.js +6 -6
- package/dist/components/navigation/index.cjs +8 -8
- package/dist/components/navigation/index.js +7 -7
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.js +7 -7
- package/dist/components/related-content/card-registry.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +4 -4
- package/dist/components/related-content/index.js +3 -3
- package/dist/components/tickets/index.cjs +10 -10
- package/dist/components/tickets/index.js +9 -9
- package/dist/components/ui/index.cjs +11 -5
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +10 -4
- package/dist/index.cjs +15 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -8
- package/dist/index.js.map +1 -1
- package/dist/types/marketing.d.ts +1 -1
- package/dist/types/marketing.d.ts.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/content-ref-groups.d.ts.map +1 -1
- package/dist/utils/index.cjs +13 -4
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +14 -5
- 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/__tests__/chat-card-label.test.tsx +24 -0
- package/src/components/chat/entity-cards/ai-prompt-card.tsx +62 -0
- package/src/components/chat/entity-cards/dispatch.tsx +43 -5
- package/src/components/chat/entity-cards/index.ts +3 -0
- package/src/components/chat/utils/icon-registry.ts +3 -0
- package/src/components/comment-card.tsx +27 -24
- package/src/components/comment-thread.tsx +212 -0
- package/src/components/index.ts +1 -0
- package/src/components/related-content/__tests__/card-registry.test.tsx +7 -0
- package/src/components/related-content/card-registry.tsx +20 -1
- package/src/types/marketing.ts +1 -0
- package/src/types/video-processing.ts +2 -1
- package/src/utils/__tests__/list-url.test.ts +2 -0
- package/src/utils/content-ref-groups.ts +1 -0
- package/src/utils/list-url.ts +2 -0
- package/src/utils/source-icons.ts +6 -0
- package/dist/chunk-6XJS3WU7.js.map +0 -1
- package/dist/chunk-7ZEQMFP3.cjs.map +0 -1
- package/dist/chunk-E2EGTHYA.cjs.map +0 -1
- package/dist/chunk-FCN2HN6Q.js.map +0 -1
- package/dist/chunk-GBON2OCG.js.map +0 -1
- package/dist/chunk-GXUGYZ6H.js.map +0 -1
- package/dist/chunk-ROQTWRV7.cjs.map +0 -1
- /package/dist/{chunk-WVRXDGGP.js.map → chunk-4SH2L3HO.js.map} +0 -0
- /package/dist/{chunk-YCZBCEQO.js.map → chunk-5AB6QLIQ.js.map} +0 -0
- /package/dist/{chunk-GFWKEWEH.js.map → chunk-BR5PVFWG.js.map} +0 -0
- /package/dist/{chunk-GD7CV2JI.js.map → chunk-CKH4SLD5.js.map} +0 -0
- /package/dist/{chunk-UUXLDIK3.js.map → chunk-DJVN7IW6.js.map} +0 -0
- /package/dist/{chunk-IW746HJ7.js.map → chunk-FHR2JU2J.js.map} +0 -0
- /package/dist/{chunk-VRN5YYD3.js.map → chunk-G6LYVK64.js.map} +0 -0
- /package/dist/{chunk-2DTZXXY3.js.map → chunk-GMBETTTE.js.map} +0 -0
- /package/dist/{chunk-NUU5ZEEG.js.map → chunk-GZFVTFMU.js.map} +0 -0
- /package/dist/{chunk-5P74E24M.js.map → chunk-KLAL4FTU.js.map} +0 -0
- /package/dist/{chunk-ANMD7SM4.js.map → chunk-LNF5W3QJ.js.map} +0 -0
- /package/dist/{chunk-XUNFDRMP.js.map → chunk-POSO6GYC.js.map} +0 -0
- /package/dist/{chunk-J25M43YI.js.map → chunk-T7FTSJM2.js.map} +0 -0
- /package/dist/{chunk-RROIA6WY.js.map → chunk-UY4EFV3P.js.map} +0 -0
- /package/dist/{chunk-TSCIVH7T.js.map → chunk-VBIFSOPQ.js.map} +0 -0
- /package/dist/{chunk-IPHA3AQ6.js.map → chunk-XGVWMJQD.js.map} +0 -0
- /package/dist/{chunk-CWMKY2UJ.js.map → chunk-ZBXPNBKB.js.map} +0 -0
|
@@ -118,6 +118,8 @@ var _chunkKOQCA5X5cjs = require('./chunk-KOQCA5X5.cjs');
|
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
|
|
121
|
+
|
|
122
|
+
|
|
121
123
|
|
|
122
124
|
|
|
123
125
|
|
|
@@ -170,7 +172,7 @@ var _chunkGSQM4PDRcjs = require('./chunk-GSQM4PDR.cjs');
|
|
|
170
172
|
|
|
171
173
|
|
|
172
174
|
|
|
173
|
-
var
|
|
175
|
+
var _chunkCS7MVDUFcjs = require('./chunk-CS7MVDUF.cjs');
|
|
174
176
|
|
|
175
177
|
|
|
176
178
|
var _chunkWLSFBRT5cjs = require('./chunk-WLSFBRT5.cjs');
|
|
@@ -4781,7 +4783,7 @@ function MspOrganizationCard({
|
|
|
4781
4783
|
className
|
|
4782
4784
|
),
|
|
4783
4785
|
children: [
|
|
4784
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4786
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
|
|
4785
4787
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
4786
4788
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h3", children: _nullishCoalesce(title, () => ( `Your IT is managed by ${name}`)) }),
|
|
4787
4789
|
website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
|
|
@@ -4914,7 +4916,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4914
4916
|
] })
|
|
4915
4917
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
4916
4918
|
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,
|
|
4917
|
-
|
|
4919
|
+
_chunkCS7MVDUFcjs.SquareAvatar,
|
|
4918
4920
|
{
|
|
4919
4921
|
src: userAvatar,
|
|
4920
4922
|
alt: userName,
|
|
@@ -5207,6 +5209,7 @@ function MingoOnboardingCard({
|
|
|
5207
5209
|
|
|
5208
5210
|
|
|
5209
5211
|
|
|
5212
|
+
|
|
5210
5213
|
|
|
5211
5214
|
|
|
5212
5215
|
var OpenFrameLogoIcon = ({ className }) => _react.createElement.call(void 0, _chunk63QUMV72cjs.OpenFrameLogo, { className, upperPathColor: "currentColor" });
|
|
@@ -5247,6 +5250,7 @@ var ICON_REGISTRY = {
|
|
|
5247
5250
|
newspaper: _lucidereact.Newspaper,
|
|
5248
5251
|
package: _lucidereact.Package,
|
|
5249
5252
|
"pen-square": _lucidereact.PenSquare,
|
|
5253
|
+
phone: _lucidereact.Phone,
|
|
5250
5254
|
rocket: _lucidereact.Rocket,
|
|
5251
5255
|
search: _lucidereact.Search,
|
|
5252
5256
|
send: _lucidereact.Send,
|
|
@@ -5296,6 +5300,7 @@ var PASCAL_TO_KEBAB_ALIASES = {
|
|
|
5296
5300
|
Newspaper: "newspaper",
|
|
5297
5301
|
Package: "package",
|
|
5298
5302
|
PenSquare: "pen-square",
|
|
5303
|
+
Phone: "phone",
|
|
5299
5304
|
Rocket: "rocket",
|
|
5300
5305
|
Search: "search",
|
|
5301
5306
|
Send: "send",
|
|
@@ -7295,7 +7300,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
7295
7300
|
// Host-supplied brand icon (e.g. Mingo): render it directly,
|
|
7296
7301
|
// no filled pill — the icon carries its own brand accent.
|
|
7297
7302
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-shrink-0 items-center justify-center", children: assistantIcon })
|
|
7298
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7303
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.SquareAvatar, { ...avatarProps })),
|
|
7299
7304
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7300
7305
|
"span",
|
|
7301
7306
|
{
|
|
@@ -8091,7 +8096,7 @@ ChatMessageList.displayName = "ChatMessageList";
|
|
|
8091
8096
|
// src/components/chat/hooks/use-proxied-image-url.ts
|
|
8092
8097
|
function useProxiedImageUrl(url) {
|
|
8093
8098
|
const r = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
|
|
8094
|
-
return _nullishCoalesce(
|
|
8099
|
+
return _nullishCoalesce(_chunkCS7MVDUFcjs.getProxiedImageUrl.call(void 0, _nullishCoalesce(url, () => ( "")), {
|
|
8095
8100
|
proxyPrefix: r.endpoints.imageProxyUrlPrefix,
|
|
8096
8101
|
skipDomains: r.endpoints.imageProxySkipDomains,
|
|
8097
8102
|
directHttps: true
|
|
@@ -8117,7 +8122,7 @@ function ChatMessageRow({ displayName, avatarUrl, timeLabel, body, footer }) {
|
|
|
8117
8122
|
height: 40,
|
|
8118
8123
|
onError: () => setFailedSrc(_nullishCoalesce(resolvedAvatar, () => ( null)))
|
|
8119
8124
|
}
|
|
8120
|
-
) : /* @__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:
|
|
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: _chunkCS7MVDUFcjs.personInitials.call(void 0, displayName) || "?" }),
|
|
8121
8126
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 max-w-full flex-1", children: [
|
|
8122
8127
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-1 flex min-w-0 max-w-full items-center gap-2", children: [
|
|
8123
8128
|
/* @__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 }),
|
|
@@ -9421,7 +9426,7 @@ function MingoChatHistoryRow({
|
|
|
9421
9426
|
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")
|
|
9422
9427
|
),
|
|
9423
9428
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9424
|
-
|
|
9429
|
+
_chunkCS7MVDUFcjs.SquareAvatar,
|
|
9425
9430
|
{
|
|
9426
9431
|
variant: "round",
|
|
9427
9432
|
sizePx: 24,
|
|
@@ -10562,7 +10567,7 @@ function ChatPanelHeader({
|
|
|
10562
10567
|
avatar && (avatar.name || avatar.avatarUrl) ? (
|
|
10563
10568
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
10564
10569
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10565
|
-
|
|
10570
|
+
_chunkCS7MVDUFcjs.SquareAvatar,
|
|
10566
10571
|
{
|
|
10567
10572
|
variant: "round",
|
|
10568
10573
|
sizePx: 32,
|
|
@@ -10776,8 +10781,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size: size2 = "default
|
|
|
10776
10781
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
|
|
10777
10782
|
(!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
|
|
10778
10783
|
status === "sniffing" && "Checking\u2026",
|
|
10779
|
-
status === "uploading" && `${progress}% \xB7 ${
|
|
10780
|
-
status === "ready" &&
|
|
10784
|
+
status === "uploading" && `${progress}% \xB7 ${_chunkCS7MVDUFcjs.formatFileSize.call(void 0, file.size)}`,
|
|
10785
|
+
status === "ready" && _chunkCS7MVDUFcjs.formatFileSize.call(void 0, file.size),
|
|
10781
10786
|
status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
|
|
10782
10787
|
] })
|
|
10783
10788
|
] }),
|
|
@@ -11574,10 +11579,10 @@ function resolveExternalNavigation(args) {
|
|
|
11574
11579
|
|
|
11575
11580
|
// src/components/chat/utils/execute-navigation.ts
|
|
11576
11581
|
function isForeignOriginHref(href) {
|
|
11577
|
-
return /^https?:\/\//i.test(href) && !
|
|
11582
|
+
return /^https?:\/\//i.test(href) && !_chunkCS7MVDUFcjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
11578
11583
|
}
|
|
11579
11584
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
11580
|
-
const isNewTab = runtime ?
|
|
11585
|
+
const isNewTab = runtime ? _chunkCS7MVDUFcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
11581
11586
|
if (isNewTab) {
|
|
11582
11587
|
if (_optionalChain([runtime, 'optionalAccess', _204 => _204.navigation, 'access', _205 => _205.openExternal])) runtime.navigation.openExternal(href);
|
|
11583
11588
|
else window.open(href, "_blank", NEW_TAB_FEATURES);
|
|
@@ -11636,7 +11641,7 @@ function NavLinkAnchorViaRuntime({
|
|
|
11636
11641
|
const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
|
|
11637
11642
|
const panel = useChatPanel();
|
|
11638
11643
|
const resolvedHref = resolveHrefForRuntime(href, runtime);
|
|
11639
|
-
const isNewTab =
|
|
11644
|
+
const isNewTab = _chunkCS7MVDUFcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
11640
11645
|
const onClick = (e) => {
|
|
11641
11646
|
const handled = executeNavigation({
|
|
11642
11647
|
event: e,
|
|
@@ -11648,7 +11653,7 @@ function NavLinkAnchorViaRuntime({
|
|
|
11648
11653
|
});
|
|
11649
11654
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _209 => _209.closeChat])) panel.closeChat();
|
|
11650
11655
|
};
|
|
11651
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: resolvedHref, ...
|
|
11656
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: resolvedHref, ..._chunkCS7MVDUFcjs.newTabAnchorAttrs.call(void 0, isNewTab), onClick, className, children });
|
|
11652
11657
|
}
|
|
11653
11658
|
|
|
11654
11659
|
// src/components/chat/source-action-button.tsx
|
|
@@ -12890,9 +12895,9 @@ function UserDisplay({
|
|
|
12890
12895
|
}) {
|
|
12891
12896
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
12892
12897
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12893
|
-
|
|
12898
|
+
_chunkCS7MVDUFcjs.SquareAvatar,
|
|
12894
12899
|
{
|
|
12895
|
-
src: avatarUrl ?
|
|
12900
|
+
src: avatarUrl ? _chunkCS7MVDUFcjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
|
|
12896
12901
|
fallback: name,
|
|
12897
12902
|
alt: name,
|
|
12898
12903
|
sizePx: size2,
|
|
@@ -13392,7 +13397,7 @@ function VideoHoverPreviewSurface({
|
|
|
13392
13397
|
return () => io.disconnect();
|
|
13393
13398
|
}, [gateControlled]);
|
|
13394
13399
|
const showMedia = continuation || (gateControlled ? playerMounted : isNear);
|
|
13395
|
-
const { src: posterSrc, onError: onPosterError } =
|
|
13400
|
+
const { src: posterSrc, onError: onPosterError } = _chunkCS7MVDUFcjs.useCoverImageFallback.call(void 0, posterUrl);
|
|
13396
13401
|
const facadeSkipped = preload === "none" && !posterSrc;
|
|
13397
13402
|
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: [
|
|
13398
13403
|
posterSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13510,7 +13515,7 @@ function groupByAspectRatio(items, getAspectRatio) {
|
|
|
13510
13515
|
|
|
13511
13516
|
function VideoBitesStrip({
|
|
13512
13517
|
bites,
|
|
13513
|
-
title =
|
|
13518
|
+
title = _chunkCS7MVDUFcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
13514
13519
|
showTitle = true,
|
|
13515
13520
|
filterPublished = true,
|
|
13516
13521
|
profile = null,
|
|
@@ -13523,7 +13528,7 @@ function VideoBitesStrip({
|
|
|
13523
13528
|
cardHeightMobile = 300,
|
|
13524
13529
|
showChevrons = true,
|
|
13525
13530
|
onBiteNavigate,
|
|
13526
|
-
sortComparator =
|
|
13531
|
+
sortComparator = _chunkCS7MVDUFcjs.sortBitesByCreatedAtDesc,
|
|
13527
13532
|
className
|
|
13528
13533
|
}) {
|
|
13529
13534
|
const items = _react.useMemo.call(void 0, () => {
|
|
@@ -13748,7 +13753,7 @@ function EntityVideoSection({
|
|
|
13748
13753
|
title = "Video",
|
|
13749
13754
|
videoSummary,
|
|
13750
13755
|
videoBites,
|
|
13751
|
-
bitesTitle =
|
|
13756
|
+
bitesTitle = _chunkCS7MVDUFcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
13752
13757
|
filterPublishedBites = true,
|
|
13753
13758
|
bitesProfile = null,
|
|
13754
13759
|
bitesHref,
|
|
@@ -13987,7 +13992,7 @@ function ReviewStateBadge({ state, className = "" }) {
|
|
|
13987
13992
|
function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
|
|
13988
13993
|
const kind = _nullishCoalesce(item.kind, () => ( "commit"));
|
|
13989
13994
|
const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
|
|
13990
|
-
const dateText =
|
|
13995
|
+
const dateText = _chunkCS7MVDUFcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
13991
13996
|
const idLabel = formatActivityId(item.id, kind);
|
|
13992
13997
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
13993
13998
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
@@ -14021,26 +14026,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
14021
14026
|
metaParts.push(
|
|
14022
14027
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
14023
14028
|
);
|
|
14024
|
-
const href =
|
|
14029
|
+
const href = _chunkCS7MVDUFcjs.safeHref.call(void 0, item.url);
|
|
14025
14030
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14026
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14027
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14028
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14031
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
14032
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14033
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
14029
14034
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
14030
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14035
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
14031
14036
|
] }),
|
|
14032
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14037
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
14033
14038
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
14034
14039
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
14035
14040
|
] }, i)) }) }),
|
|
14036
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14041
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SUMMARY, children: _chunkCS7MVDUFcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
14037
14042
|
] }),
|
|
14038
14043
|
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
|
|
14039
14044
|
] });
|
|
14040
14045
|
if (anchorProps) {
|
|
14041
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14046
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
14042
14047
|
}
|
|
14043
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
14048
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
14044
14049
|
}
|
|
14045
14050
|
function GitHubActivityCardSkeleton({
|
|
14046
14051
|
variant = "compact",
|
|
@@ -14057,12 +14062,12 @@ function GitHubActivityCardSkeleton({
|
|
|
14057
14062
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
14058
14063
|
] });
|
|
14059
14064
|
}
|
|
14060
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14061
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14062
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14063
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14064
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14065
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14065
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14066
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
14067
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14068
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
|
|
14069
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
14070
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SUMMARY, children: _chunkCS7MVDUFcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
14066
14071
|
] }),
|
|
14067
14072
|
/* @__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" }) })
|
|
14068
14073
|
] });
|
|
@@ -14086,7 +14091,7 @@ function parseChannelFromUrl(url) {
|
|
|
14086
14091
|
}
|
|
14087
14092
|
function SlackMessageCard({ item, variant = "compact", className, anchorProps }) {
|
|
14088
14093
|
const channel = _nullishCoalesce(_nullishCoalesce(item.channel, () => ( parseChannelFromUrl(item.url))), () => ( null));
|
|
14089
|
-
const dateText =
|
|
14094
|
+
const dateText = _chunkCS7MVDUFcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
14090
14095
|
if (variant === "row") {
|
|
14091
14096
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14092
14097
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKOQCA5X5cjs.SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
@@ -14112,23 +14117,23 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
|
|
|
14112
14117
|
metaParts.push(
|
|
14113
14118
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
14114
14119
|
);
|
|
14115
|
-
const href =
|
|
14120
|
+
const href = _chunkCS7MVDUFcjs.safeHref.call(void 0, item.url);
|
|
14116
14121
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14117
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14118
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14119
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14120
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14121
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14122
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKOQCA5X5cjs.SlackIcon, { className: "h-5 w-5" }) }),
|
|
14123
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14124
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE, children: item.title }) }),
|
|
14125
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunkCS7MVDUFcjs.COMPACT_CARD_ROW_FILLER }) }),
|
|
14126
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
14122
14127
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
14123
14128
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
14124
|
-
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14129
|
+
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SUMMARY, children: _chunkCS7MVDUFcjs.COMPACT_CARD_ROW_FILLER }) }) })
|
|
14125
14130
|
] }),
|
|
14126
14131
|
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
|
|
14127
14132
|
] });
|
|
14128
14133
|
if (anchorProps) {
|
|
14129
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14134
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
14130
14135
|
}
|
|
14131
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
14136
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
14132
14137
|
}
|
|
14133
14138
|
function SlackMessageCardSkeleton({
|
|
14134
14139
|
variant = "compact",
|
|
@@ -14143,12 +14148,12 @@ function SlackMessageCardSkeleton({
|
|
|
14143
14148
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
14144
14149
|
] });
|
|
14145
14150
|
}
|
|
14146
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14147
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14148
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14149
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14150
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14151
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14151
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14152
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
14153
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14154
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
|
|
14155
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }) }),
|
|
14156
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
|
|
14152
14157
|
] }),
|
|
14153
14158
|
/* @__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" }) })
|
|
14154
14159
|
] });
|
|
@@ -14179,12 +14184,12 @@ function statusScheme(status) {
|
|
|
14179
14184
|
function HubspotTicketCard({ item, variant = "compact", className, anchorProps }) {
|
|
14180
14185
|
const statusText = _nullishCoalesce(item.statusLabel, () => ( formatToken(item.status)));
|
|
14181
14186
|
const priorityText = formatToken(item.priority);
|
|
14182
|
-
const dateText =
|
|
14187
|
+
const dateText = _chunkCS7MVDUFcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
14183
14188
|
if (variant === "row") {
|
|
14184
14189
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14185
14190
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-[260px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
|
|
14186
14191
|
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,
|
|
14187
|
-
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14192
|
+
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
|
|
14188
14193
|
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-24 shrink-0 text-right text-ods-text-secondary text-h6", children: dateText }) : null
|
|
14189
14194
|
] });
|
|
14190
14195
|
}
|
|
@@ -14198,13 +14203,13 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
14198
14203
|
metaParts.push(
|
|
14199
14204
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
14200
14205
|
);
|
|
14201
|
-
const href =
|
|
14206
|
+
const href = _chunkCS7MVDUFcjs.safeHref.call(void 0, item.url);
|
|
14202
14207
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14203
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14208
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14204
14209
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
14205
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
14210
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
14206
14211
|
priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14207
|
-
|
|
14212
|
+
_chunkCS7MVDUFcjs.StatusBadge,
|
|
14208
14213
|
{
|
|
14209
14214
|
text: priorityText,
|
|
14210
14215
|
variant: "button",
|
|
@@ -14213,7 +14218,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
14213
14218
|
}
|
|
14214
14219
|
) : null,
|
|
14215
14220
|
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14216
|
-
|
|
14221
|
+
_chunkCS7MVDUFcjs.StatusBadge,
|
|
14217
14222
|
{
|
|
14218
14223
|
text: statusText,
|
|
14219
14224
|
variant: "button",
|
|
@@ -14227,7 +14232,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
14227
14232
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: item.customerEmail })
|
|
14228
14233
|
] }) : null,
|
|
14229
14234
|
/* @__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." }) }) }),
|
|
14230
|
-
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14235
|
+
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
14231
14236
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
14232
14237
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
14233
14238
|
] }, i)) }) }) : null
|
|
@@ -14235,9 +14240,9 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
14235
14240
|
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
|
|
14236
14241
|
] });
|
|
14237
14242
|
if (anchorProps) {
|
|
14238
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14243
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
14239
14244
|
}
|
|
14240
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
14245
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
14241
14246
|
}
|
|
14242
14247
|
function HubspotTicketCardSkeleton({
|
|
14243
14248
|
variant = "compact",
|
|
@@ -14251,8 +14256,8 @@ function HubspotTicketCardSkeleton({
|
|
|
14251
14256
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
14252
14257
|
] });
|
|
14253
14258
|
}
|
|
14254
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14255
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14259
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14260
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14256
14261
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
14257
14262
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
14258
14263
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-12 rounded-full bg-ods-bg/60" }),
|
|
@@ -14265,7 +14270,7 @@ function HubspotTicketCardSkeleton({
|
|
|
14265
14270
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-3/4 rounded bg-ods-bg/60" }),
|
|
14266
14271
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-2/5 rounded bg-ods-bg/60" })
|
|
14267
14272
|
] }),
|
|
14268
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14273
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
|
|
14269
14274
|
] }),
|
|
14270
14275
|
/* @__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" }) })
|
|
14271
14276
|
] });
|
|
@@ -14276,10 +14281,10 @@ function HubspotTicketCardSkeleton({
|
|
|
14276
14281
|
|
|
14277
14282
|
function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
14278
14283
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14279
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14284
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14280
14285
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
14281
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
14282
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14286
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
14287
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
|
|
14283
14288
|
] }),
|
|
14284
14289
|
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: [
|
|
14285
14290
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
|
|
@@ -14290,13 +14295,13 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
14290
14295
|
_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
|
|
14291
14296
|
] });
|
|
14292
14297
|
if (!anchorProps) {
|
|
14293
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
14298
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
14294
14299
|
}
|
|
14295
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14300
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
14296
14301
|
}
|
|
14297
14302
|
function DataRoomDocCardSkeleton({ className }) {
|
|
14298
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14299
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14303
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14304
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14300
14305
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
14301
14306
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
14302
14307
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
|
|
@@ -14317,29 +14322,29 @@ function DataRoomDocCardSkeleton({ className }) {
|
|
|
14317
14322
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
14318
14323
|
const goalsCount = _optionalChain([campaign, 'access', _345 => _345.goals, 'optionalAccess', _346 => _346.length]) || 0;
|
|
14319
14324
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14320
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14321
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14322
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14323
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14324
|
-
campaign.start_date ?
|
|
14325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
14326
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14327
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
14328
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
14329
|
+
campaign.start_date ? _chunkCS7MVDUFcjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
14325
14330
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
14326
14331
|
"Marketing campaign"
|
|
14327
14332
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
14328
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14333
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkCS7MVDUFcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
14329
14334
|
] })
|
|
14330
14335
|
] });
|
|
14331
14336
|
if (anchorProps) {
|
|
14332
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14337
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
14333
14338
|
}
|
|
14334
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
14339
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
14335
14340
|
}
|
|
14336
14341
|
function CampaignCardAdminSkeleton({ className }) {
|
|
14337
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14338
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14339
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14340
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14341
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14342
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14342
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14343
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
14344
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14345
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
14346
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
14347
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
14343
14348
|
] })
|
|
14344
14349
|
] });
|
|
14345
14350
|
}
|
|
@@ -14348,14 +14353,14 @@ function CampaignCardAdminSkeleton({ className }) {
|
|
|
14348
14353
|
|
|
14349
14354
|
|
|
14350
14355
|
function GenericEntityCard({ item, className, anchorProps }) {
|
|
14351
|
-
const href =
|
|
14352
|
-
const dateText =
|
|
14356
|
+
const href = _chunkCS7MVDUFcjs.safeHref.call(void 0, item.url);
|
|
14357
|
+
const dateText = _chunkCS7MVDUFcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
14353
14358
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14354
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14359
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14355
14360
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
14356
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
14361
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
14357
14362
|
item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14358
|
-
|
|
14363
|
+
_chunkCS7MVDUFcjs.StatusBadge,
|
|
14359
14364
|
{
|
|
14360
14365
|
text: item.badge.text,
|
|
14361
14366
|
variant: "button",
|
|
@@ -14373,18 +14378,18 @@ function GenericEntityCard({ item, className, anchorProps }) {
|
|
|
14373
14378
|
] }),
|
|
14374
14379
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-medium text-ods-text-primary", children: f.value })
|
|
14375
14380
|
] }, i)) }) : null,
|
|
14376
|
-
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14381
|
+
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
|
|
14377
14382
|
] }),
|
|
14378
14383
|
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
|
|
14379
14384
|
] });
|
|
14380
14385
|
if (anchorProps) {
|
|
14381
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14386
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
14382
14387
|
}
|
|
14383
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, className: `${
|
|
14388
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
14384
14389
|
}
|
|
14385
14390
|
function GenericEntityCardSkeleton({ className }) {
|
|
14386
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14387
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14391
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14392
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14388
14393
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
14389
14394
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
14390
14395
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
|
|
@@ -14433,8 +14438,8 @@ function useChatCardItem(type, id) {
|
|
|
14433
14438
|
const res = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, url);
|
|
14434
14439
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
14435
14440
|
const data = await res.json();
|
|
14436
|
-
const items =
|
|
14437
|
-
const match = items.find((it) =>
|
|
14441
|
+
const items = _chunkCS7MVDUFcjs.extractItems.call(void 0, data);
|
|
14442
|
+
const match = items.find((it) => _chunkCS7MVDUFcjs.extractItemId.call(void 0, type, it) === id);
|
|
14438
14443
|
return _nullishCoalesce(match, () => ( null));
|
|
14439
14444
|
},
|
|
14440
14445
|
enabled: !!url && id.length > 0,
|
|
@@ -14467,7 +14472,7 @@ function useChatCardItem(type, id) {
|
|
|
14467
14472
|
function CardMedia({ imageSrc, imageAlt, icon }) {
|
|
14468
14473
|
if (imageSrc) {
|
|
14469
14474
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
|
|
14470
|
-
/* @__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:
|
|
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: _chunkCS7MVDUFcjs.personInitials.call(void 0, imageAlt) || "?" }),
|
|
14471
14476
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14472
14477
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
14473
14478
|
{
|
|
@@ -14625,7 +14630,7 @@ function resolveFetchedCardHref({
|
|
|
14625
14630
|
composeContentUrl
|
|
14626
14631
|
}) {
|
|
14627
14632
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
14628
|
-
const canonicalType =
|
|
14633
|
+
const canonicalType = _chunkCS7MVDUFcjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
14629
14634
|
return composeContentUrl({
|
|
14630
14635
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
14631
14636
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -14681,9 +14686,11 @@ var SOURCE_ICON_NAMES = {
|
|
|
14681
14686
|
// People-hub employee content
|
|
14682
14687
|
"what-i-shipped": "package",
|
|
14683
14688
|
"how-i-work": "book-open",
|
|
14689
|
+
"ai-prompts": "message-square",
|
|
14684
14690
|
// Product-hub internal
|
|
14685
14691
|
"design-docs": "file-text",
|
|
14686
|
-
"openframe-tenants": "globe"
|
|
14692
|
+
"openframe-tenants": "globe",
|
|
14693
|
+
"prospect-calls": "phone"
|
|
14687
14694
|
};
|
|
14688
14695
|
function getSourceIconName(tableId) {
|
|
14689
14696
|
if (!tableId) return void 0;
|
|
@@ -14736,9 +14743,11 @@ var SOURCE_LABELS_BY_TABLE = {
|
|
|
14736
14743
|
// People-hub employee content
|
|
14737
14744
|
"what-i-shipped": "What I Shipped",
|
|
14738
14745
|
"how-i-work": "How I Work",
|
|
14746
|
+
"ai-prompts": "Squawkbox",
|
|
14739
14747
|
// Product-hub internal
|
|
14740
14748
|
"design-docs": "Design Docs",
|
|
14741
|
-
"openframe-tenants": "OpenFrame Tenants"
|
|
14749
|
+
"openframe-tenants": "OpenFrame Tenants",
|
|
14750
|
+
"prospect-calls": "Prospect calls"
|
|
14742
14751
|
};
|
|
14743
14752
|
function getSourceLabel(tableId) {
|
|
14744
14753
|
return _nullishCoalesce(SOURCE_LABELS_BY_TABLE[tableId], () => ( tableId));
|
|
@@ -14784,9 +14793,11 @@ var DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = {
|
|
|
14784
14793
|
// People-hub employee content
|
|
14785
14794
|
what_i_shipped: "what-i-shipped",
|
|
14786
14795
|
how_i_work: "how-i-work",
|
|
14796
|
+
ai_prompt: "ai-prompts",
|
|
14787
14797
|
// Product-hub internal
|
|
14788
14798
|
design_doc: "design-docs",
|
|
14789
|
-
openframe_tenant: "openframe-tenants"
|
|
14799
|
+
openframe_tenant: "openframe-tenants",
|
|
14800
|
+
prospect_call: "prospect-calls"
|
|
14790
14801
|
};
|
|
14791
14802
|
function defaultTableIdForDocumentType(documentType) {
|
|
14792
14803
|
return _nullishCoalesce(DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID[documentType], () => ( null));
|
|
@@ -14829,16 +14840,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
14829
14840
|
if (docTarget) {
|
|
14830
14841
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
14831
14842
|
const base = `${_chunk23V5BSHDcjs.getBaseUrl.call(void 0, docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
14832
|
-
href = _nullishCoalesce(
|
|
14843
|
+
href = _nullishCoalesce(_chunkCS7MVDUFcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
14833
14844
|
targetPlatform = docTarget.platform;
|
|
14834
14845
|
} else if (ctx.chipBasePlatform) {
|
|
14835
14846
|
const base = `${_chunk23V5BSHDcjs.getBaseUrl.call(void 0, ctx.chipBasePlatform)}/knowledge-base/`;
|
|
14836
|
-
href = _nullishCoalesce(
|
|
14847
|
+
href = _nullishCoalesce(_chunkCS7MVDUFcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
14837
14848
|
targetPlatform = ctx.chipBasePlatform;
|
|
14838
14849
|
} else if (ctx.baseRoute) {
|
|
14839
14850
|
const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
|
|
14840
14851
|
const absolute = new URL(safePath, synthetic).toString();
|
|
14841
|
-
href = _nullishCoalesce(
|
|
14852
|
+
href = _nullishCoalesce(_chunkCS7MVDUFcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
|
|
14842
14853
|
targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
|
|
14843
14854
|
}
|
|
14844
14855
|
}
|
|
@@ -14847,15 +14858,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
14847
14858
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
14848
14859
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
14849
14860
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
14850
|
-
type:
|
|
14861
|
+
type: _chunkCS7MVDUFcjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
14851
14862
|
identifier: idValue,
|
|
14852
14863
|
externalUrl: row.externalUrl,
|
|
14853
14864
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
14854
14865
|
});
|
|
14855
|
-
href = composed.href ? _nullishCoalesce(
|
|
14866
|
+
href = composed.href ? _nullishCoalesce(_chunkCS7MVDUFcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
14856
14867
|
targetPlatform = composed.targetPlatform;
|
|
14857
14868
|
} else if (row.externalUrl) {
|
|
14858
|
-
href = _nullishCoalesce(
|
|
14869
|
+
href = _nullishCoalesce(_chunkCS7MVDUFcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
14859
14870
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
14860
14871
|
}
|
|
14861
14872
|
const documentType = row.documentType;
|
|
@@ -14890,11 +14901,11 @@ function resolveSourceIcon(input, ctx = {}) {
|
|
|
14890
14901
|
|
|
14891
14902
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
14892
14903
|
const label = entityLabel || "Item";
|
|
14893
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
14894
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
14895
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
14896
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
14897
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
14904
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14905
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
14906
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14907
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkCS7MVDUFcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
14908
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCS7MVDUFcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
14898
14909
|
label,
|
|
14899
14910
|
" deleted",
|
|
14900
14911
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -14940,7 +14951,7 @@ function GitHubChatCard({
|
|
|
14940
14951
|
const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
|
|
14941
14952
|
const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
|
|
14942
14953
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
14943
|
-
const dateText =
|
|
14954
|
+
const dateText = _chunkCS7MVDUFcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
|
|
14944
14955
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
14945
14956
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14946
14957
|
MingoInfoCard,
|
|
@@ -14949,7 +14960,7 @@ function GitHubChatCard({
|
|
|
14949
14960
|
description,
|
|
14950
14961
|
icon: githubKindIcon(kind),
|
|
14951
14962
|
status,
|
|
14952
|
-
anchorProps:
|
|
14963
|
+
anchorProps: _chunkCS7MVDUFcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
14953
14964
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14954
14965
|
menuAriaLabel: "Activity actions"
|
|
14955
14966
|
}
|
|
@@ -15096,7 +15107,7 @@ function HubspotTicketChatCard({
|
|
|
15096
15107
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
15097
15108
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.TagIcon, { size: 24 }),
|
|
15098
15109
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
15099
|
-
anchorProps:
|
|
15110
|
+
anchorProps: _chunkCS7MVDUFcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15100
15111
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
15101
15112
|
label: "Open Ticket Details",
|
|
15102
15113
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.TagIcon, { size: 20 })
|
|
@@ -15119,7 +15130,7 @@ function FaqChatCard({
|
|
|
15119
15130
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
15120
15131
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.QuestionCircleIcon, { size: 24 }),
|
|
15121
15132
|
status: { label: statusLabel, variant: "grey" },
|
|
15122
|
-
anchorProps:
|
|
15133
|
+
anchorProps: _chunkCS7MVDUFcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15123
15134
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15124
15135
|
menuAriaLabel: "FAQ actions"
|
|
15125
15136
|
}
|
|
@@ -15139,7 +15150,7 @@ function SlackChatCard({
|
|
|
15139
15150
|
title,
|
|
15140
15151
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
15141
15152
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
15142
|
-
anchorProps:
|
|
15153
|
+
anchorProps: _chunkCS7MVDUFcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15143
15154
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15144
15155
|
menuAriaLabel: "Message actions"
|
|
15145
15156
|
}
|
|
@@ -15157,7 +15168,7 @@ function GlyphChatCard({
|
|
|
15157
15168
|
title: chatRef.title,
|
|
15158
15169
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
15159
15170
|
icon,
|
|
15160
|
-
anchorProps:
|
|
15171
|
+
anchorProps: _chunkCS7MVDUFcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15161
15172
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15162
15173
|
menuAriaLabel: "Card actions"
|
|
15163
15174
|
}
|
|
@@ -15176,7 +15187,7 @@ function DataRoomDocChatCard({
|
|
|
15176
15187
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
15177
15188
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.FileContentIcon, { size: 24 }),
|
|
15178
15189
|
status: { label: badgeText, variant: "grey" },
|
|
15179
|
-
anchorProps:
|
|
15190
|
+
anchorProps: _chunkCS7MVDUFcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15180
15191
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15181
15192
|
menuAriaLabel: "Document actions"
|
|
15182
15193
|
}
|
|
@@ -15195,7 +15206,7 @@ function GenericFinancialChatCard({
|
|
|
15195
15206
|
title: chatRef.title,
|
|
15196
15207
|
description: subtitle,
|
|
15197
15208
|
icon,
|
|
15198
|
-
anchorProps:
|
|
15209
|
+
anchorProps: _chunkCS7MVDUFcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15199
15210
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15200
15211
|
menuAriaLabel: "Document actions"
|
|
15201
15212
|
}
|
|
@@ -15281,7 +15292,7 @@ function CampaignChatCard({
|
|
|
15281
15292
|
}) {
|
|
15282
15293
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _378 => _378.goals])) ? item.goals.length : 0;
|
|
15283
15294
|
const meta = [
|
|
15284
|
-
_optionalChain([item, 'optionalAccess', _379 => _379.start_date]) ?
|
|
15295
|
+
_optionalChain([item, 'optionalAccess', _379 => _379.start_date]) ? _chunkCS7MVDUFcjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
15285
15296
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
15286
15297
|
"Marketing campaign"
|
|
15287
15298
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -15320,7 +15331,7 @@ function EntityMingoCard({
|
|
|
15320
15331
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
15321
15332
|
icon: fallbackIcon,
|
|
15322
15333
|
status,
|
|
15323
|
-
anchorProps:
|
|
15334
|
+
anchorProps: _chunkCS7MVDUFcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15324
15335
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
15325
15336
|
menuAriaLabel
|
|
15326
15337
|
}
|
|
@@ -15332,7 +15343,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
15332
15343
|
function statusPill(status) {
|
|
15333
15344
|
const s = typeof status === "string" ? status.trim() : "";
|
|
15334
15345
|
if (!s) return void 0;
|
|
15335
|
-
const scheme =
|
|
15346
|
+
const scheme = _chunkCS7MVDUFcjs.getStatusColorScheme.call(void 0, s);
|
|
15336
15347
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
15337
15348
|
return { label: s, variant };
|
|
15338
15349
|
}
|
|
@@ -15419,7 +15430,7 @@ function InvestorUpdateChatCard({
|
|
|
15419
15430
|
EntityMingoCard,
|
|
15420
15431
|
{
|
|
15421
15432
|
title,
|
|
15422
|
-
description: _optionalChain([item, 'optionalAccess', _407 => _407.strategic_update]) || _optionalChain([item, 'optionalAccess', _408 => _408.content]) ||
|
|
15433
|
+
description: _optionalChain([item, 'optionalAccess', _407 => _407.strategic_update]) || _optionalChain([item, 'optionalAccess', _408 => _408.content]) || _chunkCS7MVDUFcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _409 => _409.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _410 => _410.period_end]), () => ( null))) || void 0,
|
|
15423
15434
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _411 => _411.featured_image]), ogPlaceholder),
|
|
15424
15435
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.PresentationLineIcon, { size: 24 }),
|
|
15425
15436
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -15466,15 +15477,15 @@ function ProgramChatCard({
|
|
|
15466
15477
|
const isScheduled = _optionalChain([item, 'optionalAccess', _418 => _418.status]) === "scheduled";
|
|
15467
15478
|
let typeMeta;
|
|
15468
15479
|
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _419 => _419.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
|
|
15469
|
-
typeMeta =
|
|
15480
|
+
typeMeta = _chunkCS7MVDUFcjs.formatDurationCompact.call(void 0, item.duration_seconds);
|
|
15470
15481
|
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _420 => _420.location_name]) === "string" && item.location_name.trim().length > 0) {
|
|
15471
15482
|
typeMeta = item.location_name;
|
|
15472
15483
|
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _421 => _421.start_at])) {
|
|
15473
|
-
const time =
|
|
15474
|
-
const dur =
|
|
15484
|
+
const time = _chunkCS7MVDUFcjs.formatTimeWithTimezone.call(void 0, item.start_at, _nullishCoalesce(item.timezone, () => ( null)));
|
|
15485
|
+
const dur = _chunkCS7MVDUFcjs.formatDurationFromRange.call(void 0, item.start_at, item.end_at);
|
|
15475
15486
|
typeMeta = dur ? `${time} \xB7 ${dur}` : time;
|
|
15476
15487
|
}
|
|
15477
|
-
const itemDate =
|
|
15488
|
+
const itemDate = _chunkCS7MVDUFcjs.formatDateUTC.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _422 => _422.date]), () => ( null)), { fallback: "", timezone: "local" });
|
|
15478
15489
|
const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
|
|
15479
15490
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15480
15491
|
EntityMingoCard,
|
|
@@ -15501,7 +15512,7 @@ function RoadmapChatCard({
|
|
|
15501
15512
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _426 => _426.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
15502
15513
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _427 => _427.customItemId]) != null;
|
|
15503
15514
|
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 });
|
|
15504
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15515
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _428 => _428.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
15505
15516
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
15506
15517
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
15507
15518
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWLSFBRT5cjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
|
|
@@ -15572,25 +15583,47 @@ var GITHUB_CARD_CONFIGS = {
|
|
|
15572
15583
|
};
|
|
15573
15584
|
var REF_GLYPH_CARD_CONFIGS = {
|
|
15574
15585
|
design_doc: { label: "Design doc", icon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.FileContentIcon, { size: 24 }) },
|
|
15575
|
-
openframe_tenant: { label: "OpenFrame tenant", icon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.BuildingsIcon, { 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 }
|
|
15576
15588
|
};
|
|
15577
15589
|
function refGlyphRegistryEntries() {
|
|
15578
15590
|
return registryEntries(
|
|
15579
15591
|
REF_GLYPH_CARD_CONFIGS,
|
|
15580
|
-
(cfg, docType) => refHydratedEntry(
|
|
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
|
+
)
|
|
15581
15613
|
);
|
|
15582
15614
|
}
|
|
15583
15615
|
function fetchedEmployeeEntryDisplayRef(item, chatRef) {
|
|
15584
15616
|
const it = item;
|
|
15585
|
-
const title = typeof _optionalChain([it, 'optionalAccess',
|
|
15586
|
-
const author = typeof _optionalChain([it, 'optionalAccess',
|
|
15587
|
-
const summary = typeof _optionalChain([it, 'optionalAccess',
|
|
15617
|
+
const title = typeof _optionalChain([it, 'optionalAccess', _438 => _438.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
|
|
15618
|
+
const author = typeof _optionalChain([it, 'optionalAccess', _439 => _439.author, 'optionalAccess', _440 => _440.full_name]) === "string" ? it.author.full_name.trim() : "";
|
|
15619
|
+
const summary = typeof _optionalChain([it, 'optionalAccess', _441 => _441.summary]) === "string" ? it.summary.trim() : "";
|
|
15588
15620
|
const preview = [author, summary].filter((x) => x.length > 0).join(" \xB7 ");
|
|
15589
15621
|
return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
|
|
15590
15622
|
}
|
|
15591
15623
|
var EMPLOYEE_ENTRY_CARD_CONFIGS = {
|
|
15592
15624
|
what_i_shipped: { label: "What I Shipped", icon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.Rocket02Icon, { size: 24 }) },
|
|
15593
|
-
how_i_work: { label: "How I Work", icon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.ClipboardListIcon, { size: 24 }) }
|
|
15625
|
+
how_i_work: { label: "How I Work", icon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.ClipboardListIcon, { size: 24 }) },
|
|
15626
|
+
ai_prompt: { label: "Squawkbox", icon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.ChatQuoteIcon, { size: 24 }) }
|
|
15594
15627
|
};
|
|
15595
15628
|
function employeeEntryRegistryEntries() {
|
|
15596
15629
|
return registryEntries(EMPLOYEE_ENTRY_CARD_CONFIGS, (cfg, docType) => ({
|
|
@@ -15625,7 +15658,7 @@ function programRegistryEntries() {
|
|
|
15625
15658
|
label: cfg.label,
|
|
15626
15659
|
contentRefType: cfg.contentRefType,
|
|
15627
15660
|
bareInline: true,
|
|
15628
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15661
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.ProgramCardSkeleton, { size: "sm" }),
|
|
15629
15662
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15630
15663
|
ProgramChatCard,
|
|
15631
15664
|
{
|
|
@@ -15635,7 +15668,7 @@ function programRegistryEntries() {
|
|
|
15635
15668
|
discuss: opts.discuss,
|
|
15636
15669
|
configKey: cfg.configKey,
|
|
15637
15670
|
label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
|
|
15638
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
15671
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _442 => _442.extras, 'optionalAccess', _443 => _443.buildOgPlaceholderUrl, 'optionalCall', _444 => _444(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _445 => _445.title]), () => ( "")))]), () => ( null))
|
|
15639
15672
|
}
|
|
15640
15673
|
)
|
|
15641
15674
|
}));
|
|
@@ -15656,7 +15689,7 @@ var ROADMAP_CARD_CONFIGS = {
|
|
|
15656
15689
|
// The card's destination IS the ClickUp deep link, derived from the
|
|
15657
15690
|
// task id post-fetch (the refs frame used to carry it).
|
|
15658
15691
|
noComposedHref: true,
|
|
15659
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
15692
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _446 => _446.id]) != null ? clickupTaskUrl(String(item.id)) : null
|
|
15660
15693
|
}
|
|
15661
15694
|
};
|
|
15662
15695
|
function roadmapRegistryEntries() {
|
|
@@ -15666,7 +15699,7 @@ function roadmapRegistryEntries() {
|
|
|
15666
15699
|
bareInline: true,
|
|
15667
15700
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
15668
15701
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
15669
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15702
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.RoadmapCardSkeleton, { size: "sm" }),
|
|
15670
15703
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15671
15704
|
RoadmapChatCard,
|
|
15672
15705
|
{
|
|
@@ -15698,8 +15731,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15698
15731
|
DeletedDataCard,
|
|
15699
15732
|
{
|
|
15700
15733
|
title: chatRef.title && chatRef.title !== chatRef.id ? chatRef.title : null,
|
|
15701
|
-
entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access',
|
|
15702
|
-
recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access',
|
|
15734
|
+
entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _447 => _447.metadata, 'optionalAccess', _448 => _448.entity_label]), () => ( null)),
|
|
15735
|
+
recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _449 => _449.metadata, 'optionalAccess', _450 => _450.recovery_note]), () => ( null))
|
|
15703
15736
|
}
|
|
15704
15737
|
)
|
|
15705
15738
|
},
|
|
@@ -15716,7 +15749,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15716
15749
|
bareInline: true,
|
|
15717
15750
|
contentRefType: "faq",
|
|
15718
15751
|
noComposedHref: true,
|
|
15719
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
15752
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _451 => _451.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
|
|
15720
15753
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
|
|
15721
15754
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqChatCard, { chatRef: fetchedFaqDisplayRef(item, chatRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
15722
15755
|
},
|
|
@@ -15742,7 +15775,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15742
15775
|
label: "Blog post",
|
|
15743
15776
|
contentRefType: "blog_post_existing",
|
|
15744
15777
|
bareInline: true,
|
|
15745
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15778
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.BlogCardSkeleton, { size: "sm" }),
|
|
15746
15779
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15747
15780
|
BlogChatCard,
|
|
15748
15781
|
{
|
|
@@ -15750,8 +15783,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15750
15783
|
chatRef,
|
|
15751
15784
|
isNewTab: opts.isNewTab,
|
|
15752
15785
|
discuss: opts.discuss,
|
|
15753
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
15754
|
-
hasEmbeddedVideo: _optionalChain([chatRef, 'access',
|
|
15786
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _452 => _452.extras, 'optionalAccess', _453 => _453.buildOgPlaceholderUrl, 'optionalCall', _454 => _454(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _455 => _455.title]), () => ( "")))]), () => ( null)),
|
|
15787
|
+
hasEmbeddedVideo: _optionalChain([chatRef, 'access', _456 => _456.metadata, 'optionalAccess', _457 => _457.hasEmbeddedVideo]) === true
|
|
15755
15788
|
}
|
|
15756
15789
|
)
|
|
15757
15790
|
},
|
|
@@ -15759,7 +15792,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15759
15792
|
label: "Case study",
|
|
15760
15793
|
contentRefType: "case_study",
|
|
15761
15794
|
bareInline: true,
|
|
15762
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15795
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.CaseStudyCardSkeleton, { size: "sm" }),
|
|
15763
15796
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15764
15797
|
CaseStudyChatCard,
|
|
15765
15798
|
{
|
|
@@ -15767,7 +15800,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15767
15800
|
chatRef,
|
|
15768
15801
|
isNewTab: opts.isNewTab,
|
|
15769
15802
|
discuss: opts.discuss,
|
|
15770
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
15803
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _458 => _458.extras, 'optionalAccess', _459 => _459.buildOgPlaceholderUrl, 'optionalCall', _460 => _460(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _461 => _461.title]), () => ( "")))]), () => ( null))
|
|
15771
15804
|
}
|
|
15772
15805
|
)
|
|
15773
15806
|
},
|
|
@@ -15775,7 +15808,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15775
15808
|
label: "Customer interview",
|
|
15776
15809
|
contentRefType: "customer_interview",
|
|
15777
15810
|
bareInline: true,
|
|
15778
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15811
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.CustomerInterviewCardSkeleton, { size: "sm" }),
|
|
15779
15812
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15780
15813
|
CustomerInterviewChatCard,
|
|
15781
15814
|
{
|
|
@@ -15783,7 +15816,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15783
15816
|
chatRef,
|
|
15784
15817
|
isNewTab: opts.isNewTab,
|
|
15785
15818
|
discuss: opts.discuss,
|
|
15786
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
15819
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _462 => _462.extras, 'optionalAccess', _463 => _463.buildOgPlaceholderUrl, 'optionalCall', _464 => _464(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _465 => _465.title]), () => ( "")))]), () => ( null))
|
|
15787
15820
|
}
|
|
15788
15821
|
)
|
|
15789
15822
|
},
|
|
@@ -15791,9 +15824,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15791
15824
|
label: "Product release",
|
|
15792
15825
|
contentRefType: "product_release",
|
|
15793
15826
|
bareInline: true,
|
|
15794
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15827
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.ProductReleaseCardSkeleton, { size: "sm" }),
|
|
15795
15828
|
render: (item, chatRef, opts) => {
|
|
15796
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
15829
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _466 => _466.extras, 'optionalAccess', _467 => _467.buildProductReleaseCardProps]), () => ( _chunkCS7MVDUFcjs.defaultBuildProductReleaseCardProps));
|
|
15797
15830
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15798
15831
|
ProductReleaseChatCard,
|
|
15799
15832
|
{
|
|
@@ -15811,7 +15844,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15811
15844
|
label: "Investor update",
|
|
15812
15845
|
contentRefType: "investor_update",
|
|
15813
15846
|
bareInline: true,
|
|
15814
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15847
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.InvestorUpdateCardSkeleton, { size: "sm" }),
|
|
15815
15848
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15816
15849
|
InvestorUpdateChatCard,
|
|
15817
15850
|
{
|
|
@@ -15819,7 +15852,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15819
15852
|
chatRef,
|
|
15820
15853
|
isNewTab: opts.isNewTab,
|
|
15821
15854
|
discuss: opts.discuss,
|
|
15822
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
15855
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _468 => _468.extras, 'optionalAccess', _469 => _469.buildOgPlaceholderUrl, 'optionalCall', _470 => _470(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _471 => _471.title]), () => ( "")))]), () => ( null))
|
|
15823
15856
|
}
|
|
15824
15857
|
)
|
|
15825
15858
|
},
|
|
@@ -15829,7 +15862,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15829
15862
|
bareInline: true,
|
|
15830
15863
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
15831
15864
|
displayAction: true,
|
|
15832
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15865
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.OnboardingGuideCardSkeleton, { size: "sm" }),
|
|
15833
15866
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15834
15867
|
OnboardingGuideChatCard,
|
|
15835
15868
|
{
|
|
@@ -15837,7 +15870,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15837
15870
|
chatRef,
|
|
15838
15871
|
isNewTab: opts.isNewTab,
|
|
15839
15872
|
discuss: opts.discuss,
|
|
15840
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
15873
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _472 => _472.extras, 'optionalAccess', _473 => _473.buildOgPlaceholderUrl, 'optionalCall', _474 => _474(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _475 => _475.title]), () => ( "")))]), () => ( null))
|
|
15841
15874
|
}
|
|
15842
15875
|
)
|
|
15843
15876
|
},
|
|
@@ -15848,11 +15881,14 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15848
15881
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, {}),
|
|
15849
15882
|
// No public viewer — synthesize the hub-internal admin URL post-fetch
|
|
15850
15883
|
// so the wrapper + isNewTab computation see the actual destination.
|
|
15851
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
15884
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _476 => _476.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
|
|
15852
15885
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
15853
15886
|
},
|
|
15854
15887
|
...roadmapRegistryEntries()
|
|
15855
15888
|
};
|
|
15889
|
+
function chatCardLabel(docType) {
|
|
15890
|
+
return _optionalChain([CHAT_CARD_REGISTRY, 'access', _477 => _477[docType], 'optionalAccess', _478 => _478.label]);
|
|
15891
|
+
}
|
|
15856
15892
|
function ChatCardNavWrap({
|
|
15857
15893
|
href,
|
|
15858
15894
|
path,
|
|
@@ -15867,13 +15903,13 @@ function ChatCardNavWrap({
|
|
|
15867
15903
|
if (!href) return;
|
|
15868
15904
|
const targetEl = e.target;
|
|
15869
15905
|
const host = e.currentTarget;
|
|
15870
|
-
if (!_optionalChain([host, 'optionalAccess',
|
|
15871
|
-
if (_optionalChain([targetEl, 'optionalAccess',
|
|
15872
|
-
if (!_optionalChain([targetEl, 'optionalAccess',
|
|
15906
|
+
if (!_optionalChain([host, 'optionalAccess', _479 => _479.contains, 'call', _480 => _480(targetEl)])) return;
|
|
15907
|
+
if (_optionalChain([targetEl, 'optionalAccess', _481 => _481.closest, 'optionalCall', _482 => _482("button")])) return;
|
|
15908
|
+
if (!_optionalChain([targetEl, 'optionalAccess', _483 => _483.closest, 'optionalCall', _484 => _484("a")])) return;
|
|
15873
15909
|
const handled = executeNavigation({ event: e, runtime, href, path, targetPlatform, fallbackNavigate: router.push });
|
|
15874
15910
|
if (!handled) return;
|
|
15875
15911
|
e.stopPropagation();
|
|
15876
|
-
if (!isNewTab && _optionalChain([panel, 'optionalAccess',
|
|
15912
|
+
if (!isNewTab && _optionalChain([panel, 'optionalAccess', _485 => _485.closeChat])) panel.closeChat();
|
|
15877
15913
|
};
|
|
15878
15914
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
|
|
15879
15915
|
}
|
|
@@ -15895,7 +15931,7 @@ function ChatCardLoader({
|
|
|
15895
15931
|
title: chatRef.title,
|
|
15896
15932
|
externalUrl: chatRef.url,
|
|
15897
15933
|
targetPlatform: chatRef.targetPlatform,
|
|
15898
|
-
path: typeof _optionalChain([chatRef, 'access',
|
|
15934
|
+
path: typeof _optionalChain([chatRef, 'access', _486 => _486.metadata, 'optionalAccess', _487 => _487.path]) === "string" ? chatRef.metadata.path : null
|
|
15899
15935
|
},
|
|
15900
15936
|
sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform })
|
|
15901
15937
|
);
|
|
@@ -15909,11 +15945,11 @@ function ChatCardLoader({
|
|
|
15909
15945
|
const entry = CHAT_CARD_REGISTRY[resolvedChatRef.type];
|
|
15910
15946
|
const fetchEntry = entry && entry.contentRefType ? entry : null;
|
|
15911
15947
|
const { item, isLoading, isError, isFetched } = useChatCardItem(
|
|
15912
|
-
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess',
|
|
15948
|
+
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _488 => _488.contentRefType]), () => ( "")),
|
|
15913
15949
|
fetchEntry ? resolvedChatRef.id : ""
|
|
15914
15950
|
);
|
|
15915
15951
|
if (!entry) return null;
|
|
15916
|
-
const composedHref = _optionalChain([fetchEntry, 'optionalAccess',
|
|
15952
|
+
const composedHref = _optionalChain([fetchEntry, 'optionalAccess', _489 => _489.contentRefType]) && !resolvedChatRef.url && item ? resolveFetchedCardHref({
|
|
15917
15953
|
contentRefType: fetchEntry.contentRefType,
|
|
15918
15954
|
id: resolvedChatRef.id,
|
|
15919
15955
|
item,
|
|
@@ -15921,18 +15957,18 @@ function ChatCardLoader({
|
|
|
15921
15957
|
}) : null;
|
|
15922
15958
|
const hrefChoice = fetchEntry && !resolvedChatRef.url && item ? pickFetchedCardHref({
|
|
15923
15959
|
composed: composedHref,
|
|
15924
|
-
itemHref: _nullishCoalesce(_optionalChain([fetchEntry, 'access',
|
|
15960
|
+
itemHref: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _490 => _490.fallbackHref, 'optionalCall', _491 => _491(item)]), () => ( null)),
|
|
15925
15961
|
allowComposed: !fetchEntry.noComposedHref
|
|
15926
15962
|
}) : null;
|
|
15927
15963
|
const hrefResolvedChatRef = hrefChoice ? {
|
|
15928
15964
|
...resolvedChatRef,
|
|
15929
|
-
url:
|
|
15965
|
+
url: _chunkCS7MVDUFcjs.safeHref.call(void 0, hrefChoice.href),
|
|
15930
15966
|
// The `item` branch carries no platform of its own — keep the ref's.
|
|
15931
15967
|
targetPlatform: _nullishCoalesce(_nullishCoalesce(hrefChoice.targetPlatform, () => ( resolvedChatRef.targetPlatform)), () => ( null))
|
|
15932
15968
|
} : resolvedChatRef;
|
|
15933
15969
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
15934
15970
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
15935
|
-
const isNewTab =
|
|
15971
|
+
const isNewTab = _chunkCS7MVDUFcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
15936
15972
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
15937
15973
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
15938
15974
|
const discuss = discussFn ? {
|
|
@@ -15955,7 +15991,7 @@ function ChatCardLoader({
|
|
|
15955
15991
|
isNewTab,
|
|
15956
15992
|
discuss
|
|
15957
15993
|
};
|
|
15958
|
-
const path = typeof _optionalChain([finalChatRef, 'access',
|
|
15994
|
+
const path = typeof _optionalChain([finalChatRef, 'access', _492 => _492.metadata, 'optionalAccess', _493 => _493.path]) === "string" ? finalChatRef.metadata.path : null;
|
|
15959
15995
|
const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15960
15996
|
ChatCardNavWrap,
|
|
15961
15997
|
{
|
|
@@ -15979,7 +16015,7 @@ function ChatCardLoader({
|
|
|
15979
16015
|
if (!fetchEntry) {
|
|
15980
16016
|
return finish(entry.render(void 0, finalChatRef, renderOpts));
|
|
15981
16017
|
}
|
|
15982
|
-
if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access',
|
|
16018
|
+
if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _494 => _494.skeleton, 'optionalCall', _495 => _495()]), () => ( null)) });
|
|
15983
16019
|
if (!item) {
|
|
15984
16020
|
if (isError) {
|
|
15985
16021
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Failed to load" });
|
|
@@ -16342,7 +16378,7 @@ function useChunkCatchup({
|
|
|
16342
16378
|
if (catchupRun.current === run) {
|
|
16343
16379
|
if (currentDialogId !== dialogIdRef.current) {
|
|
16344
16380
|
catchupRun.current = null;
|
|
16345
|
-
if (_optionalChain([pendingCatchupRef, 'access',
|
|
16381
|
+
if (_optionalChain([pendingCatchupRef, 'access', _496 => _496.current, 'optionalAccess', _497 => _497.dialogId]) === currentDialogId) {
|
|
16346
16382
|
pendingCatchupRef.current = null;
|
|
16347
16383
|
}
|
|
16348
16384
|
} else {
|
|
@@ -16353,7 +16389,7 @@ function useChunkCatchup({
|
|
|
16353
16389
|
if (pending.dialogId === currentDialogId) {
|
|
16354
16390
|
rearmForQueuedCatchup();
|
|
16355
16391
|
try {
|
|
16356
|
-
await _optionalChain([catchUpChunksRef, 'access',
|
|
16392
|
+
await _optionalChain([catchUpChunksRef, 'access', _498 => _498.current, 'optionalCall', _499 => _499(pending.fromSequenceId)]);
|
|
16357
16393
|
} catch (rerunError) {
|
|
16358
16394
|
console.error("Queued catch-up re-run failed:", rerunError);
|
|
16359
16395
|
}
|
|
@@ -16420,7 +16456,7 @@ function useChunkCatchup({
|
|
|
16420
16456
|
|
|
16421
16457
|
var EMPTY_FRAME = { messages: [], phase: "idle", typing: false, delayMs: 0 };
|
|
16422
16458
|
function prefersReducedMotion() {
|
|
16423
|
-
return typeof window !== "undefined" && _optionalChain([window, 'access',
|
|
16459
|
+
return typeof window !== "undefined" && _optionalChain([window, 'access', _500 => _500.matchMedia, 'optionalCall', _501 => _501("(prefers-reduced-motion: reduce)"), 'access', _502 => _502.matches]) === true;
|
|
16424
16460
|
}
|
|
16425
16461
|
function useScriptedStream(frames, resetKey, enabled = true) {
|
|
16426
16462
|
const [index, setIndex] = _react.useState.call(void 0, 0);
|
|
@@ -16431,7 +16467,7 @@ function useScriptedStream(frames, resetKey, enabled = true) {
|
|
|
16431
16467
|
setIndex(0);
|
|
16432
16468
|
}
|
|
16433
16469
|
_react.useEffect.call(void 0, () => {
|
|
16434
|
-
const mq = _optionalChain([window, 'access',
|
|
16470
|
+
const mq = _optionalChain([window, 'access', _503 => _503.matchMedia, 'optionalCall', _504 => _504("(prefers-reduced-motion: reduce)")]);
|
|
16435
16471
|
const sync = () => setReducedMotion(mq ? mq.matches : prefersReducedMotion());
|
|
16436
16472
|
sync();
|
|
16437
16473
|
if (!mq) return void 0;
|
|
@@ -16574,7 +16610,7 @@ function useJetStreamDialogSubscription({
|
|
|
16574
16610
|
const lifecycle = _chunkI5JVSFNVcjs.startConnectionLifecycle.call(void 0, {
|
|
16575
16611
|
conn: sharedConn,
|
|
16576
16612
|
wsUrl,
|
|
16577
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
16613
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _505 => _505.current, 'optionalCall', _506 => _506()]),
|
|
16578
16614
|
backoff: reconnectionBackoffRef.current,
|
|
16579
16615
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
16580
16616
|
// JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
|
|
@@ -16589,7 +16625,7 @@ function useJetStreamDialogSubscription({
|
|
|
16589
16625
|
setReconnectionCount((c) => c + 1);
|
|
16590
16626
|
}
|
|
16591
16627
|
hadConnectionBeforeRef.current = true;
|
|
16592
|
-
_optionalChain([onConnectRef, 'access',
|
|
16628
|
+
_optionalChain([onConnectRef, 'access', _507 => _507.current, 'optionalCall', _508 => _508()]);
|
|
16593
16629
|
}
|
|
16594
16630
|
if (status === "error") {
|
|
16595
16631
|
console.warn("[JetStream] NATS protocol error:", evt.data);
|
|
@@ -16599,7 +16635,7 @@ function useJetStreamDialogSubscription({
|
|
|
16599
16635
|
setIsConnected(false);
|
|
16600
16636
|
setIsSubscribed(false);
|
|
16601
16637
|
tearDownSubscription();
|
|
16602
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
16638
|
+
_optionalChain([onDisconnectRef, 'access', _509 => _509.current, 'optionalCall', _510 => _510()]);
|
|
16603
16639
|
}
|
|
16604
16640
|
}
|
|
16605
16641
|
});
|
|
@@ -16725,7 +16761,7 @@ function useJetStreamDialogSubscription({
|
|
|
16725
16761
|
}
|
|
16726
16762
|
subscriptionRef.current = handle;
|
|
16727
16763
|
setIsSubscribed(true);
|
|
16728
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
16764
|
+
_optionalChain([onSubscribedRef, 'access', _511 => _511.current, 'optionalCall', _512 => _512()]);
|
|
16729
16765
|
} catch (e50) {
|
|
16730
16766
|
if (!cancelled) {
|
|
16731
16767
|
setIsSubscribed(false);
|
|
@@ -16841,20 +16877,20 @@ function useNatsDialogSubscription({
|
|
|
16841
16877
|
const tearDownSubscriptions = () => {
|
|
16842
16878
|
subscriptionRefs.current.forEach((sub) => {
|
|
16843
16879
|
try {
|
|
16844
|
-
_optionalChain([sub, 'optionalAccess',
|
|
16880
|
+
_optionalChain([sub, 'optionalAccess', _513 => _513.unsubscribe, 'call', _514 => _514()]);
|
|
16845
16881
|
} catch (e52) {
|
|
16846
16882
|
}
|
|
16847
16883
|
});
|
|
16848
16884
|
subscriptionRefs.current.clear();
|
|
16849
16885
|
lastSubscribedDialogIdRef.current = null;
|
|
16850
|
-
_optionalChain([abortControllerRef, 'access',
|
|
16886
|
+
_optionalChain([abortControllerRef, 'access', _515 => _515.current, 'optionalAccess', _516 => _516.abort, 'call', _517 => _517()]);
|
|
16851
16887
|
abortControllerRef.current = null;
|
|
16852
16888
|
};
|
|
16853
16889
|
const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
|
|
16854
16890
|
const lifecycle = _chunkI5JVSFNVcjs.startConnectionLifecycle.call(void 0, {
|
|
16855
16891
|
conn: sharedConn,
|
|
16856
16892
|
wsUrl,
|
|
16857
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
16893
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _518 => _518.current, 'optionalCall', _519 => _519()]),
|
|
16858
16894
|
backoff: reconnectionBackoffRef.current,
|
|
16859
16895
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
16860
16896
|
shouldRetryOn: isDisconnectStatus,
|
|
@@ -16865,7 +16901,7 @@ function useNatsDialogSubscription({
|
|
|
16865
16901
|
setReconnectionCount((c) => c + 1);
|
|
16866
16902
|
}
|
|
16867
16903
|
hadConnectionBeforeRef.current = true;
|
|
16868
|
-
_optionalChain([onConnectRef, 'access',
|
|
16904
|
+
_optionalChain([onConnectRef, 'access', _520 => _520.current, 'optionalCall', _521 => _521()]);
|
|
16869
16905
|
}
|
|
16870
16906
|
if (status === "error") {
|
|
16871
16907
|
console.warn("[NATS] protocol error:", evt.data);
|
|
@@ -16875,7 +16911,7 @@ function useNatsDialogSubscription({
|
|
|
16875
16911
|
setIsConnected(false);
|
|
16876
16912
|
setIsSubscribed(false);
|
|
16877
16913
|
tearDownSubscriptions();
|
|
16878
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
16914
|
+
_optionalChain([onDisconnectRef, 'access', _522 => _522.current, 'optionalCall', _523 => _523()]);
|
|
16879
16915
|
}
|
|
16880
16916
|
}
|
|
16881
16917
|
});
|
|
@@ -16906,13 +16942,13 @@ function useNatsDialogSubscription({
|
|
|
16906
16942
|
setIsSubscribed(false);
|
|
16907
16943
|
subscriptionRefs.current.forEach((sub) => {
|
|
16908
16944
|
try {
|
|
16909
|
-
_optionalChain([sub, 'optionalAccess',
|
|
16945
|
+
_optionalChain([sub, 'optionalAccess', _524 => _524.unsubscribe, 'call', _525 => _525()]);
|
|
16910
16946
|
} catch (e53) {
|
|
16911
16947
|
}
|
|
16912
16948
|
});
|
|
16913
16949
|
subscriptionRefs.current.clear();
|
|
16914
16950
|
lastSubscribedDialogIdRef.current = null;
|
|
16915
|
-
_optionalChain([abortControllerRef, 'access',
|
|
16951
|
+
_optionalChain([abortControllerRef, 'access', _526 => _526.current, 'optionalAccess', _527 => _527.abort, 'call', _528 => _528()]);
|
|
16916
16952
|
abortControllerRef.current = null;
|
|
16917
16953
|
}
|
|
16918
16954
|
return void 0;
|
|
@@ -16924,12 +16960,12 @@ function useNatsDialogSubscription({
|
|
|
16924
16960
|
if (subscriptionRefs.current.size > 0) {
|
|
16925
16961
|
subscriptionRefs.current.forEach((sub) => {
|
|
16926
16962
|
try {
|
|
16927
|
-
_optionalChain([sub, 'optionalAccess',
|
|
16963
|
+
_optionalChain([sub, 'optionalAccess', _529 => _529.unsubscribe, 'call', _530 => _530()]);
|
|
16928
16964
|
} catch (e54) {
|
|
16929
16965
|
}
|
|
16930
16966
|
});
|
|
16931
16967
|
subscriptionRefs.current.clear();
|
|
16932
|
-
_optionalChain([abortControllerRef, 'access',
|
|
16968
|
+
_optionalChain([abortControllerRef, 'access', _531 => _531.current, 'optionalAccess', _532 => _532.abort, 'call', _533 => _533()]);
|
|
16933
16969
|
}
|
|
16934
16970
|
abortControllerRef.current = new AbortController();
|
|
16935
16971
|
const abort = abortControllerRef.current;
|
|
@@ -16959,7 +16995,7 @@ function useNatsDialogSubscription({
|
|
|
16959
16995
|
});
|
|
16960
16996
|
lastSubscribedDialogIdRef.current = dialogId;
|
|
16961
16997
|
setIsSubscribed(true);
|
|
16962
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
16998
|
+
_optionalChain([onSubscribedRef, 'access', _534 => _534.current, 'optionalCall', _535 => _535()]);
|
|
16963
16999
|
};
|
|
16964
17000
|
if (isConnectedRef.current) {
|
|
16965
17001
|
createSubscriptions();
|
|
@@ -16970,7 +17006,7 @@ function useNatsDialogSubscription({
|
|
|
16970
17006
|
abort.abort();
|
|
16971
17007
|
subscriptions.forEach((sub) => {
|
|
16972
17008
|
try {
|
|
16973
|
-
_optionalChain([sub, 'optionalAccess',
|
|
17009
|
+
_optionalChain([sub, 'optionalAccess', _536 => _536.unsubscribe, 'call', _537 => _537()]);
|
|
16974
17010
|
} catch (e56) {
|
|
16975
17011
|
}
|
|
16976
17012
|
});
|
|
@@ -17009,7 +17045,7 @@ function useNatsDialogSubscription({
|
|
|
17009
17045
|
});
|
|
17010
17046
|
lastSubscribedDialogIdRef.current = currentDialogId;
|
|
17011
17047
|
setIsSubscribed(true);
|
|
17012
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
17048
|
+
_optionalChain([onSubscribedRef, 'access', _538 => _538.current, 'optionalCall', _539 => _539()]);
|
|
17013
17049
|
} else if (subscriptionRefs.current.size > 0) {
|
|
17014
17050
|
setIsSubscribed(true);
|
|
17015
17051
|
}
|
|
@@ -17017,10 +17053,10 @@ function useNatsDialogSubscription({
|
|
|
17017
17053
|
return { isConnected, isSubscribed, reconnectionCount };
|
|
17018
17054
|
}
|
|
17019
17055
|
function buildNatsWsUrl(apiBaseUrl, options) {
|
|
17020
|
-
const path = _optionalChain([options, 'optionalAccess',
|
|
17056
|
+
const path = _optionalChain([options, 'optionalAccess', _540 => _540.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
|
|
17021
17057
|
const u = new URL(path, apiBaseUrl);
|
|
17022
17058
|
u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
|
|
17023
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
17059
|
+
if (_optionalChain([options, 'optionalAccess', _541 => _541.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _542 => _542.token])) {
|
|
17024
17060
|
u.searchParams.set("authorization", options.token);
|
|
17025
17061
|
}
|
|
17026
17062
|
return u.toString();
|
|
@@ -17038,7 +17074,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
17038
17074
|
const data = await res.json();
|
|
17039
17075
|
return _nullishCoalesce(data.commands, () => ( []));
|
|
17040
17076
|
} catch (err) {
|
|
17041
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
17077
|
+
if (_optionalChain([err, 'optionalAccess', _543 => _543.name]) === "AbortError") throw err;
|
|
17042
17078
|
console.warn("[chat] slash-commands fetch failed, showing none:", err);
|
|
17043
17079
|
return [];
|
|
17044
17080
|
}
|
|
@@ -17046,8 +17082,8 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
17046
17082
|
var NO_COMMANDS = [];
|
|
17047
17083
|
function useSlashCommands(prefix, commandsUrl) {
|
|
17048
17084
|
const [answered, setAnswered] = _react.useState.call(void 0, null);
|
|
17049
|
-
const commands = prefix != null && _optionalChain([answered, 'optionalAccess',
|
|
17050
|
-
const loading = prefix != null && _optionalChain([answered, 'optionalAccess',
|
|
17085
|
+
const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _544 => _544.prefix]) === prefix ? answered.commands : NO_COMMANDS;
|
|
17086
|
+
const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _545 => _545.prefix]) !== prefix;
|
|
17051
17087
|
_react.useEffect.call(void 0, () => {
|
|
17052
17088
|
if (prefix == null) return void 0;
|
|
17053
17089
|
let cancelled = false;
|
|
@@ -17057,7 +17093,7 @@ function useSlashCommands(prefix, commandsUrl) {
|
|
|
17057
17093
|
const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
|
|
17058
17094
|
if (!cancelled) setAnswered({ prefix, commands: next });
|
|
17059
17095
|
} catch (err) {
|
|
17060
|
-
if (!cancelled && _optionalChain([err, 'optionalAccess',
|
|
17096
|
+
if (!cancelled && _optionalChain([err, 'optionalAccess', _546 => _546.name]) !== "AbortError") {
|
|
17061
17097
|
console.warn("[use-slash-commands] fetch failed:", err);
|
|
17062
17098
|
setAnswered({ prefix, commands: NO_COMMANDS });
|
|
17063
17099
|
}
|
|
@@ -17080,7 +17116,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
|
|
|
17080
17116
|
const query = _reactquery.useQuery.call(void 0, {
|
|
17081
17117
|
queryKey: ["chat-slash-commands", commandsUrl],
|
|
17082
17118
|
queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
|
|
17083
|
-
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
17119
|
+
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _547 => _547.enabled]), () => ( true)),
|
|
17084
17120
|
staleTime: Infinity,
|
|
17085
17121
|
gcTime: Infinity,
|
|
17086
17122
|
// The commands registry is non-critical chrome — a failure degrades to an
|
|
@@ -17119,21 +17155,21 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
|
|
|
17119
17155
|
}
|
|
17120
17156
|
const data = await res.json();
|
|
17121
17157
|
return {
|
|
17122
|
-
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17123
|
-
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17124
|
-
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17125
|
-
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17126
|
-
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17127
|
-
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17158
|
+
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _548 => _548.name]), () => ( null)),
|
|
17159
|
+
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _549 => _549.icon]), () => ( null)),
|
|
17160
|
+
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _550 => _550.greeting]), () => ( null)),
|
|
17161
|
+
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _551 => _551.enabledRagTableIds]), () => ( [])),
|
|
17162
|
+
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _552 => _552.quickActions]), () => ( [])),
|
|
17163
|
+
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _553 => _553.suggestedQueries]), () => ( []))
|
|
17128
17164
|
};
|
|
17129
17165
|
} catch (err) {
|
|
17130
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
17166
|
+
if (_optionalChain([err, 'optionalAccess', _554 => _554.name]) === "AbortError") throw err;
|
|
17131
17167
|
console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
|
|
17132
17168
|
return EMPTY_STATE_FALLBACK;
|
|
17133
17169
|
}
|
|
17134
17170
|
}
|
|
17135
17171
|
function useEmptyStateConfig(emptyStateUrl, options) {
|
|
17136
|
-
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
17172
|
+
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _555 => _555.enabled]), () => ( true))) && !!emptyStateUrl;
|
|
17137
17173
|
const query = _reactquery.useQuery.call(void 0, {
|
|
17138
17174
|
queryKey: ["chat-empty-state", emptyStateUrl],
|
|
17139
17175
|
queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
|
|
@@ -17162,7 +17198,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
|
|
|
17162
17198
|
var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
|
|
17163
17199
|
function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
17164
17200
|
return new Promise((resolve, reject) => {
|
|
17165
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
17201
|
+
if (_optionalChain([signal, 'optionalAccess', _556 => _556.aborted])) {
|
|
17166
17202
|
reject(new Error("Upload cancelled"));
|
|
17167
17203
|
return;
|
|
17168
17204
|
}
|
|
@@ -17204,7 +17240,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
17204
17240
|
const handleSignalAbort = () => {
|
|
17205
17241
|
xhr.abort();
|
|
17206
17242
|
};
|
|
17207
|
-
_optionalChain([signal, 'optionalAccess',
|
|
17243
|
+
_optionalChain([signal, 'optionalAccess', _557 => _557.addEventListener, 'call', _558 => _558("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
|
|
17208
17244
|
xhr.upload.addEventListener("progress", handleProgress, { signal: listeners.signal });
|
|
17209
17245
|
xhr.addEventListener("load", handleLoad, { signal: listeners.signal });
|
|
17210
17246
|
xhr.addEventListener("error", handleError, { signal: listeners.signal });
|
|
@@ -17248,10 +17284,10 @@ function useChatAttachments() {
|
|
|
17248
17284
|
try {
|
|
17249
17285
|
sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
|
|
17250
17286
|
} catch (err) {
|
|
17251
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
17287
|
+
if (_optionalChain([ctrl, 'optionalAccess', _559 => _559.signal, 'access', _560 => _560.aborted])) return;
|
|
17252
17288
|
throw new Error(`Could not read file content: ${err instanceof Error ? err.message : String(err)}`);
|
|
17253
17289
|
}
|
|
17254
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
17290
|
+
if (_optionalChain([ctrl, 'optionalAccess', _561 => _561.signal, 'access', _562 => _562.aborted])) return;
|
|
17255
17291
|
if (!sniffed) {
|
|
17256
17292
|
throw new Error("Unrecognized file format");
|
|
17257
17293
|
}
|
|
@@ -17265,7 +17301,7 @@ function useChatAttachments() {
|
|
|
17265
17301
|
const urlResp = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
|
|
17266
17302
|
method: "POST",
|
|
17267
17303
|
headers: { "Content-Type": "application/json" },
|
|
17268
|
-
signal: _optionalChain([ctrl, 'optionalAccess',
|
|
17304
|
+
signal: _optionalChain([ctrl, 'optionalAccess', _563 => _563.signal]),
|
|
17269
17305
|
body: JSON.stringify({
|
|
17270
17306
|
fileName: att.file.name,
|
|
17271
17307
|
// Pass the SNIFFED MIME (not `file.type`, which can be a
|
|
@@ -17294,9 +17330,9 @@ function useChatAttachments() {
|
|
|
17294
17330
|
(pct) => {
|
|
17295
17331
|
updateOne(att.id, { progress: pct });
|
|
17296
17332
|
},
|
|
17297
|
-
_optionalChain([ctrl, 'optionalAccess',
|
|
17333
|
+
_optionalChain([ctrl, 'optionalAccess', _564 => _564.signal])
|
|
17298
17334
|
);
|
|
17299
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
17335
|
+
if (_optionalChain([ctrl, 'optionalAccess', _565 => _565.signal, 'access', _566 => _566.aborted])) return;
|
|
17300
17336
|
updateOne(att.id, {
|
|
17301
17337
|
status: "ready",
|
|
17302
17338
|
progress: 100,
|
|
@@ -17304,7 +17340,7 @@ function useChatAttachments() {
|
|
|
17304
17340
|
viewToken: mintData.viewToken
|
|
17305
17341
|
});
|
|
17306
17342
|
} catch (err) {
|
|
17307
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
17343
|
+
if (_optionalChain([ctrl, 'optionalAccess', _567 => _567.signal, 'access', _568 => _568.aborted])) return;
|
|
17308
17344
|
const message = err instanceof Error ? err.message : String(err);
|
|
17309
17345
|
updateOne(att.id, { status: "error", progress: 0, errorMessage: message });
|
|
17310
17346
|
} finally {
|
|
@@ -17426,7 +17462,7 @@ function useChatAttachmentImageGallery() {
|
|
|
17426
17462
|
return () => root.removeEventListener("click", onClick);
|
|
17427
17463
|
}, [viewUrlPrefix]);
|
|
17428
17464
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17429
|
-
|
|
17465
|
+
_chunkCS7MVDUFcjs.ImageGalleryModal,
|
|
17430
17466
|
{
|
|
17431
17467
|
images: state.images,
|
|
17432
17468
|
isOpen: state.isOpen,
|
|
@@ -17453,11 +17489,11 @@ var ANON_DEFAULTS = {
|
|
|
17453
17489
|
function useResolveChatIdentity(enabled) {
|
|
17454
17490
|
const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
|
|
17455
17491
|
const url = runtime.endpoints.identityUrl;
|
|
17456
|
-
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess',
|
|
17492
|
+
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _569 => _569.email]), () => ( null));
|
|
17457
17493
|
const requestKey = enabled ? `${url}\0${_nullishCoalesce(proxyEmail, () => ( ""))}` : null;
|
|
17458
17494
|
const [resolved, setResolved] = _react.useState.call(void 0, null);
|
|
17459
|
-
const data = _optionalChain([resolved, 'optionalAccess',
|
|
17460
|
-
const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess',
|
|
17495
|
+
const data = _optionalChain([resolved, 'optionalAccess', _570 => _570.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
|
|
17496
|
+
const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _571 => _571.key]) !== requestKey;
|
|
17461
17497
|
_react.useEffect.call(void 0, () => {
|
|
17462
17498
|
if (requestKey === null) return void 0;
|
|
17463
17499
|
let cancelled = false;
|
|
@@ -17604,7 +17640,7 @@ function useChat({
|
|
|
17604
17640
|
onMessagesChangeRef.current = onMessagesChange;
|
|
17605
17641
|
});
|
|
17606
17642
|
_react.useEffect.call(void 0, () => {
|
|
17607
|
-
_optionalChain([onMessagesChangeRef, 'access',
|
|
17643
|
+
_optionalChain([onMessagesChangeRef, 'access', _572 => _572.current, 'optionalCall', _573 => _573(messages)]);
|
|
17608
17644
|
}, [messages]);
|
|
17609
17645
|
const {
|
|
17610
17646
|
streamMessage,
|
|
@@ -17641,7 +17677,7 @@ function useChat({
|
|
|
17641
17677
|
name: "You",
|
|
17642
17678
|
content: text2,
|
|
17643
17679
|
timestamp: /* @__PURE__ */ new Date(),
|
|
17644
|
-
..._optionalChain([options, 'optionalAccess',
|
|
17680
|
+
..._optionalChain([options, 'optionalAccess', _574 => _574.hidden]) ? { hidden: true } : {}
|
|
17645
17681
|
};
|
|
17646
17682
|
addMessage(userMessage);
|
|
17647
17683
|
setIsTyping(true);
|
|
@@ -17855,7 +17891,7 @@ function buildConfirmToolBody(request) {
|
|
|
17855
17891
|
async function readServerErrorMessage(response) {
|
|
17856
17892
|
try {
|
|
17857
17893
|
const body = await response.json();
|
|
17858
|
-
if (typeof _optionalChain([body, 'optionalAccess',
|
|
17894
|
+
if (typeof _optionalChain([body, 'optionalAccess', _575 => _575.error]) === "string" && body.error.length > 0) return body.error;
|
|
17859
17895
|
} catch (e58) {
|
|
17860
17896
|
}
|
|
17861
17897
|
return null;
|
|
@@ -18162,7 +18198,7 @@ function youtubeVideoId(value) {
|
|
|
18162
18198
|
const hostname = parsed.hostname.toLowerCase();
|
|
18163
18199
|
const isYoutubeHost = hostname === "youtu.be" || hostname === "youtube.com" || hostname.endsWith(".youtube.com");
|
|
18164
18200
|
if (!isYoutubeHost) return void 0;
|
|
18165
|
-
const fromPath = hostname === "youtu.be" ? parsed.pathname.split("/").filter(Boolean)[0] : _optionalChain([/^\/(?:embed|v|shorts)\/([A-Za-z0-9_-]{11})(?:\/|$)/, 'access',
|
|
18201
|
+
const fromPath = hostname === "youtu.be" ? parsed.pathname.split("/").filter(Boolean)[0] : _optionalChain([/^\/(?:embed|v|shorts)\/([A-Za-z0-9_-]{11})(?:\/|$)/, 'access', _576 => _576.exec, 'call', _577 => _577(parsed.pathname), 'optionalAccess', _578 => _578[1]]);
|
|
18166
18202
|
const id = _nullishCoalesce(_nullishCoalesce(fromPath, () => ( parsed.searchParams.get("v"))), () => ( void 0));
|
|
18167
18203
|
return id && YOUTUBE_ID.test(id) ? id : void 0;
|
|
18168
18204
|
}
|
|
@@ -18281,11 +18317,11 @@ function cards(value, decodedSources) {
|
|
|
18281
18317
|
{
|
|
18282
18318
|
type,
|
|
18283
18319
|
id,
|
|
18284
|
-
title: _nullishCoalesce(_optionalChain([source, 'optionalAccess',
|
|
18285
|
-
url: _nullishCoalesce(_optionalChain([source, 'optionalAccess',
|
|
18286
|
-
..._optionalChain([source, 'optionalAccess',
|
|
18287
|
-
..._optionalChain([source, 'optionalAccess',
|
|
18288
|
-
..._optionalChain([source, 'optionalAccess',
|
|
18320
|
+
title: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _579 => _579.name]), () => ( id)),
|
|
18321
|
+
url: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _580 => _580.externalUrl]), () => ( null)),
|
|
18322
|
+
..._optionalChain([source, 'optionalAccess', _581 => _581.sourceRepo]) ? { sourceRepo: source.sourceRepo } : {},
|
|
18323
|
+
..._optionalChain([source, 'optionalAccess', _582 => _582.targetPlatform]) !== void 0 ? { targetPlatform: source.targetPlatform } : {},
|
|
18324
|
+
..._optionalChain([source, 'optionalAccess', _583 => _583.path]) ? { metadata: { path: source.path } } : {}
|
|
18289
18325
|
}
|
|
18290
18326
|
];
|
|
18291
18327
|
});
|
|
@@ -18311,11 +18347,11 @@ function sourceMetadataEvent(payload) {
|
|
|
18311
18347
|
}
|
|
18312
18348
|
function mergeSourceMetadata(previous, event) {
|
|
18313
18349
|
const byIndex = /* @__PURE__ */ new Map();
|
|
18314
|
-
for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess',
|
|
18350
|
+
for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _584 => _584.sources]), () => ( [])), ..._nullishCoalesce(event.sources, () => ( []))]) {
|
|
18315
18351
|
if (!byIndex.has(source.index)) byIndex.set(source.index, source);
|
|
18316
18352
|
}
|
|
18317
18353
|
const byIdentity = /* @__PURE__ */ new Map();
|
|
18318
|
-
for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess',
|
|
18354
|
+
for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _585 => _585.refs]), () => ( [])), ..._nullishCoalesce(event.refs, () => ( []))]) {
|
|
18319
18355
|
const identity = `${ref.type}:${ref.id}`;
|
|
18320
18356
|
if (!byIdentity.has(identity)) byIdentity.set(identity, ref);
|
|
18321
18357
|
}
|
|
@@ -18401,9 +18437,9 @@ function appendToTrailingAssistant(prev, segments) {
|
|
|
18401
18437
|
for (const seg of segments) {
|
|
18402
18438
|
const tail = merged[merged.length - 1];
|
|
18403
18439
|
const key = upsertKey(seg);
|
|
18404
|
-
if (seg.type === "text" && _optionalChain([tail, 'optionalAccess',
|
|
18440
|
+
if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _586 => _586.type]) === "text") {
|
|
18405
18441
|
merged[merged.length - 1] = { type: "text", text: tail.text + seg.text };
|
|
18406
|
-
} else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess',
|
|
18442
|
+
} else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _587 => _587.type]) === "thinking") {
|
|
18407
18443
|
merged[merged.length - 1] = { type: "thinking", text: tail.text + seg.text };
|
|
18408
18444
|
} else if (key) {
|
|
18409
18445
|
let idx = merged.findIndex((m) => upsertKey(m) === key);
|
|
@@ -18444,7 +18480,7 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
|
|
|
18444
18480
|
}
|
|
18445
18481
|
if (s.type !== "approval_batch") return s;
|
|
18446
18482
|
const isAnchor = s.data.approvalRequestId === requestId;
|
|
18447
|
-
const hasRow = _optionalChain([s, 'access',
|
|
18483
|
+
const hasRow = _optionalChain([s, 'access', _588 => _588.data, 'access', _589 => _589.toolCalls, 'optionalAccess', _590 => _590.some, 'call', _591 => _591((c) => c.toolExecutionRequestId === requestId)]);
|
|
18448
18484
|
if (!isAnchor && !hasRow) return s;
|
|
18449
18485
|
const nextResolvedBy = _nullishCoalesce(resolvedByName, () => ( s.resolvedByName));
|
|
18450
18486
|
const nextExecutions = hasRow ? {
|
|
@@ -18466,8 +18502,8 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
|
|
|
18466
18502
|
};
|
|
18467
18503
|
}
|
|
18468
18504
|
function nextBatchExecution(prevExec, toolData) {
|
|
18469
|
-
if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess',
|
|
18470
|
-
return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess',
|
|
18505
|
+
if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _592 => _592.status]) === "done") return null;
|
|
18506
|
+
return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _593 => _593.result]), success: _optionalChain([prevExec, 'optionalAccess', _594 => _594.success]) };
|
|
18471
18507
|
}
|
|
18472
18508
|
function withBatchExecution(seg, execId, state) {
|
|
18473
18509
|
return {
|
|
@@ -18484,11 +18520,11 @@ function projectBatchStatusToMessages(prev, anchorId, status) {
|
|
|
18484
18520
|
}
|
|
18485
18521
|
function projectBatchRowFailureToMessages(prev, rowRequestId) {
|
|
18486
18522
|
return mapSegments(prev, (s) => {
|
|
18487
|
-
if (s.type !== "approval_batch" || !_optionalChain([s, 'access',
|
|
18523
|
+
if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _595 => _595.data, 'access', _596 => _596.toolCalls, 'optionalAccess', _597 => _597.some, 'call', _598 => _598((c) => c.toolExecutionRequestId === rowRequestId)])) {
|
|
18488
18524
|
return s;
|
|
18489
18525
|
}
|
|
18490
|
-
const existing = _optionalChain([s, 'access',
|
|
18491
|
-
if (_optionalChain([existing, 'optionalAccess',
|
|
18526
|
+
const existing = _optionalChain([s, 'access', _599 => _599.data, 'access', _600 => _600.executions, 'optionalAccess', _601 => _601[rowRequestId]]);
|
|
18527
|
+
if (_optionalChain([existing, 'optionalAccess', _602 => _602.status]) === "done") return s;
|
|
18492
18528
|
return withBatchExecution(s, rowRequestId, { status: "done", success: false });
|
|
18493
18529
|
});
|
|
18494
18530
|
}
|
|
@@ -18524,7 +18560,7 @@ function mergeToolExecutionIfPresent(prev, segment) {
|
|
|
18524
18560
|
for (let j = message.segments.length - 1; j >= 0; j--) {
|
|
18525
18561
|
const seg = message.segments[j];
|
|
18526
18562
|
if (execId && seg.type === "approval_batch" && seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId)) {
|
|
18527
|
-
const prevExec = _optionalChain([seg, 'access',
|
|
18563
|
+
const prevExec = _optionalChain([seg, 'access', _603 => _603.data, 'access', _604 => _604.executions, 'optionalAccess', _605 => _605[execId]]);
|
|
18528
18564
|
const nextExec = nextBatchExecution(prevExec, toolData);
|
|
18529
18565
|
if (nextExec === null) return prev;
|
|
18530
18566
|
if (sameExecutionState(prevExec, nextExec)) return prev;
|
|
@@ -18697,9 +18733,9 @@ var MessageSegmentAccumulator = class {
|
|
|
18697
18733
|
type: "tool_execution",
|
|
18698
18734
|
data: {
|
|
18699
18735
|
...toolData,
|
|
18700
|
-
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
18701
|
-
toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
18702
|
-
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess',
|
|
18736
|
+
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _606 => _606.data, 'access', _607 => _607.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _608 => _608.toolTitle]))),
|
|
18737
|
+
toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _609 => _609.data, 'access', _610 => _610.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _611 => _611.toolExplanation]))),
|
|
18738
|
+
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _612 => _612.parameters])
|
|
18703
18739
|
}
|
|
18704
18740
|
};
|
|
18705
18741
|
if (existingIndex !== -1) {
|
|
@@ -18723,7 +18759,7 @@ var MessageSegmentAccumulator = class {
|
|
|
18723
18759
|
if (seg.type !== "approval_batch") return seg;
|
|
18724
18760
|
const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
|
|
18725
18761
|
if (!hasCall) return seg;
|
|
18726
|
-
const prev = _optionalChain([seg, 'access',
|
|
18762
|
+
const prev = _optionalChain([seg, 'access', _613 => _613.data, 'access', _614 => _614.executions, 'optionalAccess', _615 => _615[execId]]);
|
|
18727
18763
|
const next = nextBatchExecution(prev, toolData);
|
|
18728
18764
|
matched = true;
|
|
18729
18765
|
if (next === null) return seg;
|
|
@@ -18857,8 +18893,8 @@ var MessageSegmentAccumulator = class {
|
|
|
18857
18893
|
requestId,
|
|
18858
18894
|
{
|
|
18859
18895
|
...pendingApproval,
|
|
18860
|
-
command: _optionalChain([pendingApproval, 'optionalAccess',
|
|
18861
|
-
approvalType: _optionalChain([pendingApproval, 'optionalAccess',
|
|
18896
|
+
command: _optionalChain([pendingApproval, 'optionalAccess', _616 => _616.command]) || "",
|
|
18897
|
+
approvalType: _optionalChain([pendingApproval, 'optionalAccess', _617 => _617.approvalType]) || approvalType
|
|
18862
18898
|
},
|
|
18863
18899
|
status
|
|
18864
18900
|
);
|
|
@@ -18883,9 +18919,9 @@ var MessageSegmentAccumulator = class {
|
|
|
18883
18919
|
type: "escalation_offer",
|
|
18884
18920
|
// The resolved chunk carries no text/origin — a redelivered offer must
|
|
18885
18921
|
// not blank the card the PENDING chunk already painted.
|
|
18886
|
-
data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess',
|
|
18922
|
+
data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess', _618 => _618.data, 'access', _619 => _619.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _620 => _620.data, 'access', _621 => _621.origin]))) },
|
|
18887
18923
|
status,
|
|
18888
|
-
resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess',
|
|
18924
|
+
resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _622 => _622.resolvedByName]))),
|
|
18889
18925
|
onApprove: this.callbacks.onEscalationApprove,
|
|
18890
18926
|
onReject: this.callbacks.onEscalationReject
|
|
18891
18927
|
};
|
|
@@ -19210,7 +19246,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
19210
19246
|
let stateCache = null;
|
|
19211
19247
|
function invalidate() {
|
|
19212
19248
|
stateCache = null;
|
|
19213
|
-
_optionalChain([onChange, 'optionalCall',
|
|
19249
|
+
_optionalChain([onChange, 'optionalCall', _623 => _623()]);
|
|
19214
19250
|
}
|
|
19215
19251
|
function getState() {
|
|
19216
19252
|
if (!stateCache) {
|
|
@@ -19226,7 +19262,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
19226
19262
|
return stateCache;
|
|
19227
19263
|
}
|
|
19228
19264
|
function emit(name, ...args) {
|
|
19229
|
-
_optionalChain([onEffect, 'optionalCall',
|
|
19265
|
+
_optionalChain([onEffect, 'optionalCall', _624 => _624({ name, args })]);
|
|
19230
19266
|
}
|
|
19231
19267
|
function setMessagesInternal(next) {
|
|
19232
19268
|
if (next !== messages) {
|
|
@@ -19269,12 +19305,12 @@ function createChatStreamReducer(options = {}) {
|
|
|
19269
19305
|
return stampTrailingAssistantSourceMetadata(stampTrailingAssistantSeq(next, seq));
|
|
19270
19306
|
}
|
|
19271
19307
|
function applySegmentsToState(segments, meta) {
|
|
19272
|
-
const seq = _optionalChain([meta, 'optionalAccess',
|
|
19273
|
-
if (_optionalChain([meta, 'optionalAccess',
|
|
19308
|
+
const seq = _optionalChain([meta, 'optionalAccess', _625 => _625.streamSeq]);
|
|
19309
|
+
if (_optionalChain([meta, 'optionalAccess', _626 => _626.append]) && meta.isCompacting) {
|
|
19274
19310
|
setMessagesInternal(commitTrailingAssistant(upsertTrailingCompaction(messages, segments), seq));
|
|
19275
19311
|
return;
|
|
19276
19312
|
}
|
|
19277
|
-
if (_optionalChain([meta, 'optionalAccess',
|
|
19313
|
+
if (_optionalChain([meta, 'optionalAccess', _627 => _627.append])) {
|
|
19278
19314
|
setMessagesInternal(commitTrailingAssistant(appendToTrailingAssistant(messages, segments), seq));
|
|
19279
19315
|
return;
|
|
19280
19316
|
}
|
|
@@ -19286,7 +19322,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
19286
19322
|
adoptTrailingAssistant = false;
|
|
19287
19323
|
const last = messages[messages.length - 1];
|
|
19288
19324
|
if (!last || last.role !== "assistant" || adoptTail) return;
|
|
19289
|
-
const hasContent = (_nullishCoalesce(_optionalChain([last, 'access',
|
|
19325
|
+
const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _628 => _628.segments, 'optionalAccess', _629 => _629.length]), () => ( 0))) > 0 || last.content !== "";
|
|
19290
19326
|
if (!hasContent) return;
|
|
19291
19327
|
setMessagesInternal([...messages, { id: nextId("assistant"), role: "assistant", content: "", segments: [] }]);
|
|
19292
19328
|
}
|
|
@@ -19505,13 +19541,13 @@ function createChatStreamReducer(options = {}) {
|
|
|
19505
19541
|
const summary = required ? getCommandText(required) : `Batch of ${toolCalls.length} tool calls`;
|
|
19506
19542
|
pendingEscalated.set(requestId, {
|
|
19507
19543
|
command: summary,
|
|
19508
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
19544
|
+
explanation: _optionalChain([required, 'optionalAccess', _630 => _630.toolExplanation]),
|
|
19509
19545
|
approvalType,
|
|
19510
19546
|
toolCalls
|
|
19511
19547
|
});
|
|
19512
19548
|
emit("onEscalatedApproval", requestId, {
|
|
19513
19549
|
command: summary,
|
|
19514
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
19550
|
+
explanation: _optionalChain([required, 'optionalAccess', _631 => _631.toolExplanation]),
|
|
19515
19551
|
approvalType
|
|
19516
19552
|
});
|
|
19517
19553
|
break;
|
|
@@ -19895,7 +19931,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
19895
19931
|
const resolveBatch = (status, confirm) => async () => {
|
|
19896
19932
|
setMessagesInternal(projectBatchStatusToMessages(messages, anchorId, status));
|
|
19897
19933
|
for (const id of ids) {
|
|
19898
|
-
const ok = await _optionalChain([confirm, 'optionalCall',
|
|
19934
|
+
const ok = await _optionalChain([confirm, 'optionalCall', _632 => _632(id)]);
|
|
19899
19935
|
if (ok === false) {
|
|
19900
19936
|
setMessagesInternal(projectBatchRowFailureToMessages(messages, id));
|
|
19901
19937
|
}
|
|
@@ -20031,8 +20067,8 @@ function createChatStreamReducer(options = {}) {
|
|
|
20031
20067
|
}
|
|
20032
20068
|
}
|
|
20033
20069
|
}
|
|
20034
|
-
hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess',
|
|
20035
|
-
if (_optionalChain([extras, 'optionalAccess',
|
|
20070
|
+
hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _633 => _633.resumed]), () => ( messages.length > 0)));
|
|
20071
|
+
if (_optionalChain([extras, 'optionalAccess', _634 => _634.agentBusy])) agentBusyState();
|
|
20036
20072
|
invalidate();
|
|
20037
20073
|
}
|
|
20038
20074
|
return {
|
|
@@ -20117,7 +20153,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
20117
20153
|
},
|
|
20118
20154
|
endSseTurn() {
|
|
20119
20155
|
const last = messages[messages.length - 1];
|
|
20120
|
-
if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access',
|
|
20156
|
+
if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _635 => _635.segments, 'optionalAccess', _636 => _636.length]), () => ( 0))) === 0 && last.content === "") {
|
|
20121
20157
|
messages = messages.slice(0, -1);
|
|
20122
20158
|
}
|
|
20123
20159
|
sseCurrentText = "";
|
|
@@ -20270,10 +20306,10 @@ function createChatDialogStore(options = {}) {
|
|
|
20270
20306
|
if (onEvict) {
|
|
20271
20307
|
const sep = key.indexOf(KEY_SEP);
|
|
20272
20308
|
onEvict(key.slice(0, sep), key.slice(sep + 1), {
|
|
20273
|
-
messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
20274
|
-
approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
20275
|
-
lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
20276
|
-
pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
20309
|
+
messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _637 => _637.state, 'access', _638 => _638.messages]), () => ( EMPTY_STATE.messages)),
|
|
20310
|
+
approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _639 => _639.state, 'access', _640 => _640.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
|
|
20311
|
+
lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _641 => _641.getLastAppliedSeq, 'call', _642 => _642()]), () => ( Number.NEGATIVE_INFINITY)),
|
|
20312
|
+
pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _643 => _643.getPendingEchoes, 'call', _644 => _644()]), () => ( EMPTY_PENDING_ECHOES))
|
|
20277
20313
|
});
|
|
20278
20314
|
}
|
|
20279
20315
|
}
|
|
@@ -20283,12 +20319,12 @@ function createChatDialogStore(options = {}) {
|
|
|
20283
20319
|
const key = keyOf(dialogId, side);
|
|
20284
20320
|
let reducer = reducers.get(key);
|
|
20285
20321
|
if (!reducer) {
|
|
20286
|
-
const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall',
|
|
20322
|
+
const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _645 => _645(dialogId, side)]), () => ( {}));
|
|
20287
20323
|
const userOnChange = base.onChange;
|
|
20288
20324
|
reducer = createChatStreamReducer({
|
|
20289
20325
|
...base,
|
|
20290
20326
|
onChange: () => {
|
|
20291
|
-
_optionalChain([userOnChange, 'optionalCall',
|
|
20327
|
+
_optionalChain([userOnChange, 'optionalCall', _646 => _646()]);
|
|
20292
20328
|
notify();
|
|
20293
20329
|
}
|
|
20294
20330
|
});
|
|
@@ -20333,7 +20369,7 @@ function createChatDialogStore(options = {}) {
|
|
|
20333
20369
|
};
|
|
20334
20370
|
}
|
|
20335
20371
|
function getSnapshot2(dialogId, side = DEFAULT_DIALOG_SIDE) {
|
|
20336
|
-
return _nullishCoalesce(_optionalChain([reducers, 'access',
|
|
20372
|
+
return _nullishCoalesce(_optionalChain([reducers, 'access', _647 => _647.get, 'call', _648 => _648(keyOf(dialogId, side)), 'optionalAccess', _649 => _649.state]), () => ( EMPTY_STATE));
|
|
20337
20373
|
}
|
|
20338
20374
|
function getServerSnapshot2() {
|
|
20339
20375
|
return EMPTY_STATE;
|
|
@@ -20425,7 +20461,7 @@ function createDeltaBatcher({
|
|
|
20425
20461
|
pending = [];
|
|
20426
20462
|
const key = pendingKey;
|
|
20427
20463
|
for (const delta of batch) applyOne(delta, key);
|
|
20428
|
-
_optionalChain([onFlushed, 'optionalCall',
|
|
20464
|
+
_optionalChain([onFlushed, 'optionalCall', _650 => _650(batch.length)]);
|
|
20429
20465
|
}
|
|
20430
20466
|
function schedule() {
|
|
20431
20467
|
if (raf !== null || timer !== null) return;
|
|
@@ -20449,7 +20485,7 @@ function createDeltaBatcher({
|
|
|
20449
20485
|
}
|
|
20450
20486
|
if (!isDeltaEvent(event)) return false;
|
|
20451
20487
|
const tail = pending[pending.length - 1];
|
|
20452
|
-
const seqAdvances = _optionalChain([tail, 'optionalAccess',
|
|
20488
|
+
const seqAdvances = _optionalChain([tail, 'optionalAccess', _651 => _651.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
|
|
20453
20489
|
if (tail && seqAdvances && tail.type === event.type && (tail.type !== "text-delta" || tail.leading === event.leading)) {
|
|
20454
20490
|
pending[pending.length - 1] = {
|
|
20455
20491
|
...tail,
|
|
@@ -20480,7 +20516,7 @@ function useChatStreamReducer({
|
|
|
20480
20516
|
side = DEFAULT_DIALOG_SIDE,
|
|
20481
20517
|
createReducerOptions
|
|
20482
20518
|
}) {
|
|
20483
|
-
const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall',
|
|
20519
|
+
const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _652 => _652()]), () => ( {})));
|
|
20484
20520
|
const getSnapshot2 = _react.useCallback.call(void 0, () => store.getSnapshot(dialogId, side), [store, dialogId, side]);
|
|
20485
20521
|
const getServerSnapshot2 = _react.useCallback.call(void 0, () => store.getServerSnapshot(), [store]);
|
|
20486
20522
|
const subscribe2 = _react.useCallback.call(void 0, (listener) => store.subscribe(listener), [store]);
|
|
@@ -20519,7 +20555,7 @@ var STORAGE_KEY = "conversation";
|
|
|
20519
20555
|
var namespaceFor = (source) => {
|
|
20520
20556
|
const base = `mingo-chat-${source}`;
|
|
20521
20557
|
const auth = _chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, );
|
|
20522
|
-
return _optionalChain([auth, 'optionalAccess',
|
|
20558
|
+
return _optionalChain([auth, 'optionalAccess', _653 => _653.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
|
|
20523
20559
|
};
|
|
20524
20560
|
function createChatConversationStorage(source) {
|
|
20525
20561
|
return _chunkEHAYNUOLcjs.createLocalStorageAdapter.call(void 0, {
|
|
@@ -20631,7 +20667,7 @@ function formatSingularLookupInvocation(cmdId, value) {
|
|
|
20631
20667
|
return safe ? `/${cmdId} "${safe}"` : `/${cmdId}`;
|
|
20632
20668
|
}
|
|
20633
20669
|
function extractEntityIdFilter(override, expectedTableId) {
|
|
20634
|
-
const f = _optionalChain([override, 'optionalAccess',
|
|
20670
|
+
const f = _optionalChain([override, 'optionalAccess', _654 => _654.entityIdFilter]);
|
|
20635
20671
|
if (!f) return null;
|
|
20636
20672
|
const tableId = typeof f.tableId === "string" ? f.tableId : "";
|
|
20637
20673
|
const id = typeof f.id === "string" ? f.id : "";
|
|
@@ -20670,7 +20706,7 @@ var AUTO_CONTINUATION_DIRECTIVE_PREFIX = "[internal-auto-continuation]";
|
|
|
20670
20706
|
function buildAutoContinuationDirective(toolName, opts = {}) {
|
|
20671
20707
|
const ticketRef = opts.ticketId ? ` (ticket #${opts.ticketId})` : "";
|
|
20672
20708
|
const ticketHash = opts.ticketId ? ` #${opts.ticketId}` : "";
|
|
20673
|
-
const isClose = toolName === "update_ticket" && _optionalChain([opts, 'access',
|
|
20709
|
+
const isClose = toolName === "update_ticket" && _optionalChain([opts, 'access', _655 => _655.status, 'optionalAccess', _656 => _656.toUpperCase, 'call', _657 => _657()]) === "CLOSED";
|
|
20674
20710
|
if (toolName === "create_ticket") {
|
|
20675
20711
|
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.`;
|
|
20676
20712
|
}
|
|
@@ -20720,7 +20756,7 @@ function useChatHistoryHydration({
|
|
|
20720
20756
|
if (cancelled) return;
|
|
20721
20757
|
if (rows.length === 0) {
|
|
20722
20758
|
const found = isRecord(body) ? body.found : void 0;
|
|
20723
|
-
if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall',
|
|
20759
|
+
if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _658 => _658(conversationId)]);
|
|
20724
20760
|
return;
|
|
20725
20761
|
}
|
|
20726
20762
|
const hydrated = [];
|
|
@@ -20864,7 +20900,7 @@ function useManagedDialogList({
|
|
|
20864
20900
|
try {
|
|
20865
20901
|
await deleteDialogCallback(id);
|
|
20866
20902
|
removeLocal(id);
|
|
20867
|
-
_optionalChain([onDialogRemovedRef, 'access',
|
|
20903
|
+
_optionalChain([onDialogRemovedRef, 'access', _659 => _659.current, 'optionalCall', _660 => _660(id, "deleted")]);
|
|
20868
20904
|
} catch (err) {
|
|
20869
20905
|
console.error(`${logTag} deleteDialog failed:`, err);
|
|
20870
20906
|
throw err;
|
|
@@ -20875,7 +20911,7 @@ function useManagedDialogList({
|
|
|
20875
20911
|
const renameDialog = _react.useCallback.call(void 0,
|
|
20876
20912
|
async (id, title) => {
|
|
20877
20913
|
if (!renameDialogCallback) return;
|
|
20878
|
-
const previous = _optionalChain([dialogsRef, 'access',
|
|
20914
|
+
const previous = _optionalChain([dialogsRef, 'access', _661 => _661.current, 'access', _662 => _662.find, 'call', _663 => _663((d) => d.id === id), 'optionalAccess', _664 => _664.title]);
|
|
20879
20915
|
setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title } : d));
|
|
20880
20916
|
try {
|
|
20881
20917
|
await renameDialogCallback(id, title);
|
|
@@ -20894,7 +20930,7 @@ function useManagedDialogList({
|
|
|
20894
20930
|
try {
|
|
20895
20931
|
await archiveDialogCallback(id);
|
|
20896
20932
|
removeLocal(id);
|
|
20897
|
-
_optionalChain([onDialogRemovedRef, 'access',
|
|
20933
|
+
_optionalChain([onDialogRemovedRef, 'access', _665 => _665.current, 'optionalCall', _666 => _666(id, "archived")]);
|
|
20898
20934
|
} catch (err) {
|
|
20899
20935
|
console.error(`${logTag} archiveDialog failed:`, err);
|
|
20900
20936
|
throw err;
|
|
@@ -20986,7 +21022,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
20986
21022
|
const { active = true } = runtimeOptions;
|
|
20987
21023
|
const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
|
|
20988
21024
|
const source = runtime.source || DEFAULT_CHAT_SOURCE;
|
|
20989
|
-
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
21025
|
+
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _667 => _667.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
|
|
20990
21026
|
const sendMessageRef = _react.useRef.call(void 0,
|
|
20991
21027
|
() => Promise.resolve(true)
|
|
20992
21028
|
);
|
|
@@ -21022,7 +21058,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21022
21058
|
if (!restoredConversationRef.current) {
|
|
21023
21059
|
restoredConversationRef.current = true;
|
|
21024
21060
|
pruneStaleChatConversationStorage(source);
|
|
21025
|
-
conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access',
|
|
21061
|
+
conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _668 => _668.load, 'call', _669 => _669(), 'optionalAccess', _670 => _670.conversationId]), () => ( null));
|
|
21026
21062
|
}
|
|
21027
21063
|
const [conversationId, setConversationId] = _react.useState.call(void 0, () => conversationIdRef.current);
|
|
21028
21064
|
const commitConversationId = _react.useCallback.call(void 0,
|
|
@@ -21113,7 +21149,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21113
21149
|
const abortControllerRef = _react.useRef.call(void 0, null);
|
|
21114
21150
|
const switchConversation = _react.useCallback.call(void 0,
|
|
21115
21151
|
(id) => {
|
|
21116
|
-
_optionalChain([abortControllerRef, 'access',
|
|
21152
|
+
_optionalChain([abortControllerRef, 'access', _671 => _671.current, 'optionalAccess', _672 => _672.abort, 'call', _673 => _673()]);
|
|
21117
21153
|
flushDeltas();
|
|
21118
21154
|
mutate((r) => r.reset());
|
|
21119
21155
|
hydrationSendCountRef.current = 0;
|
|
@@ -21150,8 +21186,8 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21150
21186
|
} = useManagedDialogList({
|
|
21151
21187
|
autoLoad: active,
|
|
21152
21188
|
fetchDialogs: fetchActiveDialogs,
|
|
21153
|
-
renameDialog: _optionalChain([conversationsApi, 'optionalAccess',
|
|
21154
|
-
archiveDialog: _optionalChain([conversationsApi, 'optionalAccess',
|
|
21189
|
+
renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _674 => _674.renameDialog]),
|
|
21190
|
+
archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _675 => _675.archiveDialog]),
|
|
21155
21191
|
pageSize: 20,
|
|
21156
21192
|
search: conversationsApi ? dialogSearch : void 0,
|
|
21157
21193
|
logTag: "[useSseChatAdapter]",
|
|
@@ -21215,7 +21251,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21215
21251
|
const serverMessage = await readServerErrorMessage(response);
|
|
21216
21252
|
throw new Error(_nullishCoalesce(serverMessage, () => ( `Chat request failed: ${response.status}`)));
|
|
21217
21253
|
}
|
|
21218
|
-
const reader = _optionalChain([response, 'access',
|
|
21254
|
+
const reader = _optionalChain([response, 'access', _676 => _676.body, 'optionalAccess', _677 => _677.getReader, 'call', _678 => _678()]);
|
|
21219
21255
|
if (!reader) throw new Error("No response body");
|
|
21220
21256
|
const frameDecoder = createSseFrameDecoder();
|
|
21221
21257
|
let finished = false;
|
|
@@ -21244,7 +21280,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21244
21280
|
}
|
|
21245
21281
|
return true;
|
|
21246
21282
|
} catch (err) {
|
|
21247
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
21283
|
+
if (_optionalChain([err, 'optionalAccess', _679 => _679.name]) === "AbortError" || ctrl.signal.aborted) {
|
|
21248
21284
|
return true;
|
|
21249
21285
|
}
|
|
21250
21286
|
flushDeltas();
|
|
@@ -21280,7 +21316,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21280
21316
|
);
|
|
21281
21317
|
sendMessageRef.current = sendMessage;
|
|
21282
21318
|
const stopMessage = _react.useCallback.call(void 0, () => {
|
|
21283
|
-
_optionalChain([abortControllerRef, 'access',
|
|
21319
|
+
_optionalChain([abortControllerRef, 'access', _680 => _680.current, 'optionalAccess', _681 => _681.abort, 'call', _682 => _682()]);
|
|
21284
21320
|
flushDeltas();
|
|
21285
21321
|
mutate((r) => r.setPhase("idle"));
|
|
21286
21322
|
}, [mutate, flushDeltas]);
|
|
@@ -21316,7 +21352,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21316
21352
|
let sendIdx = -1;
|
|
21317
21353
|
return state.messages.map((m) => {
|
|
21318
21354
|
const segments = m.segments;
|
|
21319
|
-
const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess',
|
|
21355
|
+
const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _683 => _683.filter, 'call', _684 => _684((s) => s.type === "text"), 'access', _685 => _685.map, 'call', _686 => _686((s) => s.text), 'access', _687 => _687.join, 'call', _688 => _688("")]), () => ( ""));
|
|
21320
21356
|
let sources2;
|
|
21321
21357
|
let scrollAnchor;
|
|
21322
21358
|
if (m.role === "user" && !m.hidden) {
|
|
@@ -21325,7 +21361,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21325
21361
|
if (m.role === "assistant") {
|
|
21326
21362
|
const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
|
|
21327
21363
|
sources2 = sourcesMap.get(lookupIdx);
|
|
21328
|
-
scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access',
|
|
21364
|
+
scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _689 => _689.get, 'call', _690 => _690(lookupIdx), 'optionalAccess', _691 => _691.scrollAnchor]), () => ( void 0));
|
|
21329
21365
|
}
|
|
21330
21366
|
return {
|
|
21331
21367
|
id: m.id,
|
|
@@ -21352,7 +21388,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21352
21388
|
);
|
|
21353
21389
|
return;
|
|
21354
21390
|
}
|
|
21355
|
-
const refSlug = typeof _optionalChain([reference, 'access',
|
|
21391
|
+
const refSlug = typeof _optionalChain([reference, 'access', _692 => _692.metadata, 'optionalAccess', _693 => _693.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
|
|
21356
21392
|
const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
|
|
21357
21393
|
const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
21358
21394
|
const text2 = `/${cmdId} display "${escaped}"`;
|
|
@@ -21398,18 +21434,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
21398
21434
|
/** True while the mount-time rebuild from the server transcript runs. */
|
|
21399
21435
|
isHydratingHistory,
|
|
21400
21436
|
/** Provider key for the lib's `<ModelDisplay>` icon. */
|
|
21401
|
-
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
21402
|
-
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
21403
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
21437
|
+
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _694 => _694.provider]), () => ( null)),
|
|
21438
|
+
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _695 => _695.modelLabel]), () => ( null)),
|
|
21439
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _696 => _696.contextWindowMaxTokens]), () => ( null)),
|
|
21404
21440
|
/** Input tokens (known after server's message_start frame; null until). */
|
|
21405
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
21441
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _697 => _697.inputTokens]), () => ( null)),
|
|
21406
21442
|
/** Output tokens (known only after server's trailing usage frame). */
|
|
21407
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
21443
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _698 => _698.outputTokens]), () => ( null)),
|
|
21408
21444
|
/** Cache hit % (read / total-input × 100). null during streaming. */
|
|
21409
|
-
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
21445
|
+
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _699 => _699.cacheHitRatePct]), () => ( null)),
|
|
21410
21446
|
/** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
|
|
21411
21447
|
* token counts). null until the trailing usage frame lands. */
|
|
21412
|
-
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
21448
|
+
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _700 => _700.breakdown]), () => ( null)),
|
|
21413
21449
|
// ─── Dialog management ───────────────────────────────────────────────
|
|
21414
21450
|
// With `chatConversationsUrl` the server transcript store IS the dialog
|
|
21415
21451
|
// list (shared `useManagedDialogList`); selecting a row re-hydrates through
|
|
@@ -21664,7 +21700,7 @@ function decodeNatsChunk(chunk) {
|
|
|
21664
21700
|
userId: typeof data.userId === "string" ? data.userId : void 0,
|
|
21665
21701
|
// Wire shape carries no label; fall back to the id (parity with
|
|
21666
21702
|
// the history path in `process-historical-messages.ts`).
|
|
21667
|
-
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess',
|
|
21703
|
+
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _701 => _701.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _702 => _702.id]) === "string").map((it) => ({
|
|
21668
21704
|
type: it.type,
|
|
21669
21705
|
id: it.id,
|
|
21670
21706
|
label: it.id
|
|
@@ -21755,7 +21791,7 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
21755
21791
|
}
|
|
21756
21792
|
break;
|
|
21757
21793
|
case "approval_batch": {
|
|
21758
|
-
const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access',
|
|
21794
|
+
const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _703 => _703.data, 'access', _704 => _704.executions, 'optionalAccess', _705 => _705[c.toolExecutionRequestId], 'optionalAccess', _706 => _706.status]) === "done");
|
|
21759
21795
|
if (segment.status !== "rejected" && !allDone) {
|
|
21760
21796
|
hasIncompleteState = true;
|
|
21761
21797
|
}
|
|
@@ -21817,11 +21853,11 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
21817
21853
|
function extractIncompleteTailState(messages) {
|
|
21818
21854
|
if (!messages || messages.length === 0) return void 0;
|
|
21819
21855
|
let start = messages.length;
|
|
21820
|
-
while (start > 0 && _optionalChain([messages, 'access',
|
|
21856
|
+
while (start > 0 && _optionalChain([messages, 'access', _707 => _707[start - 1], 'optionalAccess', _708 => _708.role]) === "assistant") start -= 1;
|
|
21821
21857
|
if (start === messages.length) return void 0;
|
|
21822
21858
|
const segments = [];
|
|
21823
21859
|
for (let i = start; i < messages.length; i += 1) {
|
|
21824
|
-
const content = _optionalChain([messages, 'access',
|
|
21860
|
+
const content = _optionalChain([messages, 'access', _709 => _709[i], 'optionalAccess', _710 => _710.content]);
|
|
21825
21861
|
if (Array.isArray(content)) segments.push(...content);
|
|
21826
21862
|
}
|
|
21827
21863
|
if (segments.length === 0) return void 0;
|
|
@@ -21834,15 +21870,15 @@ function extractIncompleteTailState(messages) {
|
|
|
21834
21870
|
|
|
21835
21871
|
// src/components/chat/utils/process-historical-messages.ts
|
|
21836
21872
|
function getOwnerDisplayName(owner) {
|
|
21837
|
-
if (_optionalChain([owner, 'optionalAccess',
|
|
21873
|
+
if (_optionalChain([owner, 'optionalAccess', _711 => _711.type]) === OWNER_TYPE.ADMIN && owner.user) {
|
|
21838
21874
|
const { firstName, lastName } = owner.user;
|
|
21839
21875
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
21840
21876
|
if (name) return name;
|
|
21841
21877
|
}
|
|
21842
|
-
return _optionalChain([owner, 'optionalAccess',
|
|
21878
|
+
return _optionalChain([owner, 'optionalAccess', _712 => _712.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
21843
21879
|
}
|
|
21844
21880
|
function getOwnerAvatar(owner) {
|
|
21845
|
-
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess',
|
|
21881
|
+
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _713 => _713.user, 'optionalAccess', _714 => _714.image, 'optionalAccess', _715 => _715.imageUrl]), () => ( void 0));
|
|
21846
21882
|
}
|
|
21847
21883
|
function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
|
|
21848
21884
|
messageDataArray.forEach((data) => {
|
|
@@ -22032,7 +22068,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
22032
22068
|
event.offerId,
|
|
22033
22069
|
event.text,
|
|
22034
22070
|
event.origin,
|
|
22035
|
-
_nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess',
|
|
22071
|
+
_nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _716 => _716[event.offerId]]), () => ( "pending"))
|
|
22036
22072
|
);
|
|
22037
22073
|
break;
|
|
22038
22074
|
case "ticket-escalated":
|
|
@@ -22066,7 +22102,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
22066
22102
|
);
|
|
22067
22103
|
break;
|
|
22068
22104
|
case "escalation-offer-resolved":
|
|
22069
|
-
_optionalChain([offerResolutions, 'optionalAccess',
|
|
22105
|
+
_optionalChain([offerResolutions, 'optionalAccess', _717 => _717.set, 'call', _718 => _718(event.offerId, {
|
|
22070
22106
|
status: event.status,
|
|
22071
22107
|
resolvedByName: event.resolvedByName
|
|
22072
22108
|
})]);
|
|
@@ -22130,7 +22166,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
22130
22166
|
}
|
|
22131
22167
|
}
|
|
22132
22168
|
} else {
|
|
22133
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
22169
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _719 => _719.set, 'call', _720 => _720(event.requestId, {
|
|
22134
22170
|
command: event.command || "",
|
|
22135
22171
|
explanation: event.explanation,
|
|
22136
22172
|
approvalType,
|
|
@@ -22145,8 +22181,8 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
22145
22181
|
const existingStatus = approvalStatuses[requestId];
|
|
22146
22182
|
const status = existingStatus || event.status;
|
|
22147
22183
|
const resolvedByName = event.resolvedByName;
|
|
22148
|
-
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess',
|
|
22149
|
-
if (_optionalChain([escalatedData, 'optionalAccess',
|
|
22184
|
+
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _721 => _721.get, 'call', _722 => _722(requestId)]);
|
|
22185
|
+
if (_optionalChain([escalatedData, 'optionalAccess', _723 => _723.toolCalls]) && escalatedData.toolCalls.length > 0) {
|
|
22150
22186
|
if (batchApprovalsEnabled) {
|
|
22151
22187
|
accumulator.addApprovalBatch(
|
|
22152
22188
|
requestId,
|
|
@@ -22168,7 +22204,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
22168
22204
|
);
|
|
22169
22205
|
}
|
|
22170
22206
|
}
|
|
22171
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
22207
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _724 => _724.delete, 'call', _725 => _725(requestId)]);
|
|
22172
22208
|
break;
|
|
22173
22209
|
}
|
|
22174
22210
|
if (escalatedData) {
|
|
@@ -22177,7 +22213,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
22177
22213
|
explanation: escalatedData.explanation,
|
|
22178
22214
|
approvalType: escalatedData.approvalType
|
|
22179
22215
|
});
|
|
22180
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
22216
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _726 => _726.delete, 'call', _727 => _727(requestId)]);
|
|
22181
22217
|
}
|
|
22182
22218
|
const before = accumulator.getSegments();
|
|
22183
22219
|
const after = accumulator.updateApprovalStatus(requestId, status, resolvedByName);
|
|
@@ -22269,14 +22305,14 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
22269
22305
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
22270
22306
|
return;
|
|
22271
22307
|
}
|
|
22272
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
22308
|
+
const isUserMessage = _optionalChain([msg, 'access', _728 => _728.owner, 'optionalAccess', _729 => _729.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _730 => _730.owner, 'optionalAccess', _731 => _731.type]) === OWNER_TYPE.ADMIN;
|
|
22273
22309
|
if (isUserMessage) {
|
|
22274
22310
|
flushAssistantMessage();
|
|
22275
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
22311
|
+
const userAuthorType = _optionalChain([msg, 'access', _732 => _732.owner, 'optionalAccess', _733 => _733.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
22276
22312
|
messageDataArray.forEach((data) => {
|
|
22277
22313
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
22278
22314
|
const rawContext = data.contextItems;
|
|
22279
|
-
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess',
|
|
22315
|
+
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _734 => _734.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _735 => _735.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
|
|
22280
22316
|
processedMessages.push({
|
|
22281
22317
|
id: msg.id,
|
|
22282
22318
|
role: "user",
|
|
@@ -22323,7 +22359,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
22323
22359
|
});
|
|
22324
22360
|
const nextMsg = messages[index + 1];
|
|
22325
22361
|
const isLastMessage = index === messages.length - 1;
|
|
22326
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
22362
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _736 => _736.owner, 'optionalAccess', _737 => _737.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _738 => _738.owner, 'optionalAccess', _739 => _739.type]) === OWNER_TYPE.ADMIN);
|
|
22327
22363
|
if (isLastMessage || nextIsFromUser) {
|
|
22328
22364
|
flushAssistantMessage();
|
|
22329
22365
|
}
|
|
@@ -22706,7 +22742,7 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
22706
22742
|
const connectionState = !active || !dialogId ? "connected" : connectedForDialog === dialogId ? "connected" : "connecting";
|
|
22707
22743
|
const sendMessage = _react.useCallback.call(void 0,
|
|
22708
22744
|
async (text2, sendOptions) => {
|
|
22709
|
-
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess',
|
|
22745
|
+
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _740 => _740.hidden]), () => ( false));
|
|
22710
22746
|
mutate((r) => r.pushOptimisticSend(text2, hidden));
|
|
22711
22747
|
await publishUserMessage(text2, { hidden, dialogId });
|
|
22712
22748
|
},
|
|
@@ -22799,11 +22835,11 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
22799
22835
|
// Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
|
|
22800
22836
|
// contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
|
|
22801
22837
|
// matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
|
|
22802
|
-
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
22803
|
-
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
22804
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
22805
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
22806
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
22838
|
+
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _741 => _741.provider]), () => ( modelProvider)), () => ( null)),
|
|
22839
|
+
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _742 => _742.modelLabel]), () => ( modelLabel)), () => ( null)),
|
|
22840
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _743 => _743.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _744 => _744.contextWindowMaxTokens]))), () => ( null)),
|
|
22841
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _745 => _745.inputTokensSize]), () => ( null)),
|
|
22842
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _746 => _746.outputTokensSize]), () => ( null)),
|
|
22807
22843
|
currentCacheHitRatePct: null,
|
|
22808
22844
|
currentUsageBreakdown: null,
|
|
22809
22845
|
// Dialog management
|
|
@@ -22925,7 +22961,7 @@ function useUnifiedChat(options) {
|
|
|
22925
22961
|
[]
|
|
22926
22962
|
);
|
|
22927
22963
|
const displayRefForward = _react.useCallback.call(void 0,
|
|
22928
|
-
(ref) => _optionalChain([activeStateRef, 'access',
|
|
22964
|
+
(ref) => _optionalChain([activeStateRef, 'access', _747 => _747.current, 'access', _748 => _748.displayRef, 'optionalCall', _749 => _749(ref)]),
|
|
22929
22965
|
[]
|
|
22930
22966
|
);
|
|
22931
22967
|
const displayRef = activeState.displayRef ? displayRefForward : void 0;
|
|
@@ -22935,7 +22971,7 @@ function useUnifiedChat(options) {
|
|
|
22935
22971
|
const renameDialog = _react.useCallback.call(void 0, (id, title) => activeStateRef.current.renameDialog(id, title), []);
|
|
22936
22972
|
const archiveDialog = _react.useCallback.call(void 0, (id) => activeStateRef.current.archiveDialog(id), []);
|
|
22937
22973
|
const loadMoreDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreDialogs(), []);
|
|
22938
|
-
const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access',
|
|
22974
|
+
const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _750 => _750.current, 'access', _751 => _751.setDialogScope, 'optionalCall', _752 => _752(scope)]), []);
|
|
22939
22975
|
const reloadDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.reloadDialogs(), []);
|
|
22940
22976
|
const loadMoreMessages = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreMessages(), []);
|
|
22941
22977
|
const approveRequest = _react.useCallback.call(void 0, (requestId) => activeStateRef.current.approveRequest(requestId), []);
|
|
@@ -23043,19 +23079,19 @@ function turnRequestKeys(content) {
|
|
|
23043
23079
|
if (!Array.isArray(content)) return keys;
|
|
23044
23080
|
for (const seg of content) {
|
|
23045
23081
|
if (seg.type === "tool_execution") {
|
|
23046
|
-
const id = _optionalChain([seg, 'access',
|
|
23082
|
+
const id = _optionalChain([seg, 'access', _753 => _753.data, 'optionalAccess', _754 => _754.toolExecutionRequestId]);
|
|
23047
23083
|
if (id) keys.add(id);
|
|
23048
23084
|
} else if (seg.type === "approval_request") {
|
|
23049
|
-
const id = _optionalChain([seg, 'access',
|
|
23085
|
+
const id = _optionalChain([seg, 'access', _755 => _755.data, 'optionalAccess', _756 => _756.requestId]);
|
|
23050
23086
|
if (id) keys.add(id);
|
|
23051
23087
|
} else if (seg.type === "escalation_offer") {
|
|
23052
|
-
const id = _optionalChain([seg, 'access',
|
|
23088
|
+
const id = _optionalChain([seg, 'access', _757 => _757.data, 'optionalAccess', _758 => _758.offerId]);
|
|
23053
23089
|
if (id) keys.add(id);
|
|
23054
23090
|
} else if (seg.type === "approval_batch") {
|
|
23055
23091
|
const data = seg.data;
|
|
23056
|
-
if (_optionalChain([data, 'optionalAccess',
|
|
23057
|
-
for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
23058
|
-
if (_optionalChain([call, 'optionalAccess',
|
|
23092
|
+
if (_optionalChain([data, 'optionalAccess', _759 => _759.approvalRequestId])) keys.add(data.approvalRequestId);
|
|
23093
|
+
for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _760 => _760.toolCalls]), () => ( []))) {
|
|
23094
|
+
if (_optionalChain([call, 'optionalAccess', _761 => _761.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
|
|
23059
23095
|
}
|
|
23060
23096
|
}
|
|
23061
23097
|
}
|
|
@@ -23139,18 +23175,18 @@ function mergeHistoryWithRealtime(input) {
|
|
|
23139
23175
|
}
|
|
23140
23176
|
}
|
|
23141
23177
|
const trailing = processedHistory[processedHistory.length - 1];
|
|
23142
|
-
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess',
|
|
23143
|
-
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access',
|
|
23178
|
+
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _762 => _762.role]) === "assistant" ? trailing : null;
|
|
23179
|
+
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _763 => _763.content, 'access', _764 => _764.find, 'call', _765 => _765((s) => s.type === "approval_batch"), 'optionalAccess', _766 => _766.data, 'optionalAccess', _767 => _767.approvalRequestId]), () => ( null)) : null;
|
|
23144
23180
|
let processedToUse = processedHistory;
|
|
23145
23181
|
const pinnedSyntheticIds = /* @__PURE__ */ new Set();
|
|
23146
23182
|
const droppedSyntheticIds = /* @__PURE__ */ new Set();
|
|
23147
23183
|
if (historyBatchId) {
|
|
23148
23184
|
const batchTwins = existingMessages.filter(
|
|
23149
|
-
(m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some((s) => s.type === "approval_batch" && _optionalChain([s, 'access',
|
|
23185
|
+
(m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some((s) => s.type === "approval_batch" && _optionalChain([s, 'access', _768 => _768.data, 'optionalAccess', _769 => _769.approvalRequestId]) === historyBatchId)
|
|
23150
23186
|
);
|
|
23151
23187
|
const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
|
|
23152
23188
|
if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
|
|
23153
|
-
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess',
|
|
23189
|
+
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _770 => _770.content])) ? historyTrailingAssistant.content.length : 0;
|
|
23154
23190
|
const realtimeSize = existingWithSameBatch.content.length;
|
|
23155
23191
|
if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
|
|
23156
23192
|
processedToUse = processedHistory.slice(0, -1);
|
|
@@ -23183,9 +23219,9 @@ function mergeHistoryWithRealtime(input) {
|
|
|
23183
23219
|
const trailingAssistantText = lastProcessed && lastProcessed.role === "assistant" ? assistantAnswerText(lastProcessed.content) : "";
|
|
23184
23220
|
const windowSignals = collectTwinSignals(processedToUse);
|
|
23185
23221
|
const seenUserSyntheticByContent = /* @__PURE__ */ new Map();
|
|
23186
|
-
const isInWindow = (m) => processedIds.has(m.id) || (_nullishCoalesce(_optionalChain([rawHistoryIds, 'optionalAccess',
|
|
23222
|
+
const isInWindow = (m) => processedIds.has(m.id) || (_nullishCoalesce(_optionalChain([rawHistoryIds, 'optionalAccess', _771 => _771.has, 'call', _772 => _772(m.id)]), () => ( false)));
|
|
23187
23223
|
const firstWindowIndex = existingMessages.findIndex(isInWindow);
|
|
23188
|
-
const isPersistedOlder = (m) => !isClientMintedId(m.id) && (_nullishCoalesce(_optionalChain([m, 'access',
|
|
23224
|
+
const isPersistedOlder = (m) => !isClientMintedId(m.id) && (_nullishCoalesce(_optionalChain([m, 'access', _773 => _773.timestamp, 'optionalAccess', _774 => _774.getTime, 'call', _775 => _775()]), () => ( 0))) <= historyFetchedAt;
|
|
23189
23225
|
let lastOlderPersistedIndex = -1;
|
|
23190
23226
|
if (firstWindowIndex < 0) {
|
|
23191
23227
|
for (const [index, m] of existingMessages.entries()) {
|
|
@@ -23203,7 +23239,7 @@ function mergeHistoryWithRealtime(input) {
|
|
|
23203
23239
|
} else if (pm.role === "assistant") {
|
|
23204
23240
|
windowHasUnstampedAssistant = true;
|
|
23205
23241
|
}
|
|
23206
|
-
const time = _optionalChain([pm, 'access',
|
|
23242
|
+
const time = _optionalChain([pm, 'access', _776 => _776.timestamp, 'optionalAccess', _777 => _777.getTime, 'call', _778 => _778()]);
|
|
23207
23243
|
if (typeof time === "number" && time < windowMinTime) windowMinTime = time;
|
|
23208
23244
|
}
|
|
23209
23245
|
const threadHasClientMintedRow = existingMessages.some((m) => isClientMintedId(m.id));
|
|
@@ -23221,14 +23257,14 @@ function mergeHistoryWithRealtime(input) {
|
|
|
23221
23257
|
const verdict = twinVerdict(windowSignals, m);
|
|
23222
23258
|
return verdict === "unknown" ? !seqCanMislead(m) : verdict === "distinct";
|
|
23223
23259
|
}
|
|
23224
|
-
const time = _optionalChain([m, 'access',
|
|
23260
|
+
const time = _optionalChain([m, 'access', _779 => _779.timestamp, 'optionalAccess', _780 => _780.getTime, 'call', _781 => _781()]);
|
|
23225
23261
|
if (typeof time !== "number" || time > historyFetchedAt) return false;
|
|
23226
23262
|
if (!Number.isFinite(windowMinTime) || time >= windowMinTime) return false;
|
|
23227
23263
|
return twinVerdict(windowSignals, m) === "distinct";
|
|
23228
23264
|
};
|
|
23229
23265
|
const keepRealtime = (m) => {
|
|
23230
23266
|
if (m.role === "user" && isOptimisticId(m.id) && typeof m.content === "string") {
|
|
23231
|
-
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access',
|
|
23267
|
+
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _782 => _782.timestamp, 'optionalAccess', _783 => _783.getTime, 'call', _784 => _784()]), () => ( 0))) <= historyFetchedAt;
|
|
23232
23268
|
return !(canBeInSnapshot && windowSignals.userContents.has(m.content));
|
|
23233
23269
|
}
|
|
23234
23270
|
if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
|
|
@@ -23252,7 +23288,7 @@ function mergeHistoryWithRealtime(input) {
|
|
|
23252
23288
|
} else if (typeof m.streamSeq === "number") {
|
|
23253
23289
|
covered = historyMaxStreamSeq > 0 && historyMaxStreamSeq >= m.streamSeq;
|
|
23254
23290
|
} else {
|
|
23255
|
-
covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access',
|
|
23291
|
+
covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _785 => _785.timestamp, 'optionalAccess', _786 => _786.getTime, 'call', _787 => _787()]), () => ( 0))) <= historyFetchedAt;
|
|
23256
23292
|
}
|
|
23257
23293
|
if (covered) return false;
|
|
23258
23294
|
}
|
|
@@ -23361,7 +23397,7 @@ function normalizeHistoricalMessageData(md) {
|
|
|
23361
23397
|
function isHistoricalUserTurn(m) {
|
|
23362
23398
|
return !!m.owner;
|
|
23363
23399
|
}
|
|
23364
|
-
var isTextSegment = (d) => _optionalChain([d, 'optionalAccess',
|
|
23400
|
+
var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _788 => _788.type]) === "TEXT" && typeof d.text === "string";
|
|
23365
23401
|
var THINK_MS = 550;
|
|
23366
23402
|
var TOKEN_MS = 55;
|
|
23367
23403
|
var USER_MS = 480;
|
|
@@ -23981,7 +24017,7 @@ function useChatDialogManager({
|
|
|
23981
24017
|
const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
|
|
23982
24018
|
if (restoreTarget) {
|
|
23983
24019
|
try {
|
|
23984
|
-
await _optionalChain([unarchiveDialog, 'optionalCall',
|
|
24020
|
+
await _optionalChain([unarchiveDialog, 'optionalCall', _789 => _789(restoreTarget.id)]);
|
|
23985
24021
|
} catch (err) {
|
|
23986
24022
|
console.error("[useChatDialogManager] unarchive failed:", err);
|
|
23987
24023
|
return;
|
|
@@ -24230,7 +24266,7 @@ function SourceChip({
|
|
|
24230
24266
|
const Icon = cta.icon;
|
|
24231
24267
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
24232
24268
|
const chipClass = chatChipClass({ tone: "secondary" });
|
|
24233
|
-
const decideTab = (href, targetPlatform) =>
|
|
24269
|
+
const decideTab = (href, targetPlatform) => _chunkCS7MVDUFcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
|
|
24234
24270
|
if (src.items && src.items.length > 0) {
|
|
24235
24271
|
const dropdownItems = src.items.map((item) => {
|
|
24236
24272
|
const itemCta = resolveSourceRowCTA(
|
|
@@ -24319,7 +24355,7 @@ function SourceChip({
|
|
|
24319
24355
|
"a",
|
|
24320
24356
|
{
|
|
24321
24357
|
href: resolvedHref,
|
|
24322
|
-
...
|
|
24358
|
+
..._chunkCS7MVDUFcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
24323
24359
|
onClick: buildClickHandler(resolvedHref, null, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
24324
24360
|
className: chipClass,
|
|
24325
24361
|
children: chipBody(src.name)
|
|
@@ -24335,7 +24371,7 @@ function SourceChip({
|
|
|
24335
24371
|
"a",
|
|
24336
24372
|
{
|
|
24337
24373
|
href: resolvedHref,
|
|
24338
|
-
...
|
|
24374
|
+
..._chunkCS7MVDUFcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
24339
24375
|
onClick: buildClickHandler(resolvedHref, src.path, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
24340
24376
|
className: chipClass,
|
|
24341
24377
|
title: displayName,
|
|
@@ -24527,7 +24563,7 @@ function EmbeddableChatInner({
|
|
|
24527
24563
|
}),
|
|
24528
24564
|
[commandsUrl]
|
|
24529
24565
|
);
|
|
24530
|
-
const headerUserName = _optionalChain([identityUser, 'optionalAccess',
|
|
24566
|
+
const headerUserName = _optionalChain([identityUser, 'optionalAccess', _790 => _790.name, 'optionalAccess', _791 => _791.trim, 'call', _792 => _792()]) || [_optionalChain([identityUser, 'optionalAccess', _793 => _793.firstName]), _optionalChain([identityUser, 'optionalAccess', _794 => _794.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([userDisplayName, 'optionalAccess', _795 => _795.trim, 'call', _796 => _796()]) || void 0;
|
|
24531
24567
|
const effectiveModes = _react.useMemo.call(void 0, () => {
|
|
24532
24568
|
if (modes) return modes;
|
|
24533
24569
|
const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
|
|
@@ -24542,7 +24578,7 @@ function EmbeddableChatInner({
|
|
|
24542
24578
|
if (controlledActiveMode === void 0) {
|
|
24543
24579
|
setUncontrolledActiveMode(next);
|
|
24544
24580
|
}
|
|
24545
|
-
_optionalChain([onActiveModeChange, 'optionalCall',
|
|
24581
|
+
_optionalChain([onActiveModeChange, 'optionalCall', _797 => _797(next)]);
|
|
24546
24582
|
},
|
|
24547
24583
|
[controlledActiveMode, onActiveModeChange]
|
|
24548
24584
|
);
|
|
@@ -24569,7 +24605,7 @@ function EmbeddableChatInner({
|
|
|
24569
24605
|
);
|
|
24570
24606
|
const effectiveAssistantName = emptyStateConfig.name;
|
|
24571
24607
|
const effectiveAssistantIcon = emptyStateConfig.icon;
|
|
24572
|
-
const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess',
|
|
24608
|
+
const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _798 => _798.title]) === "string" ? guideWelcome.title : null)));
|
|
24573
24609
|
const {
|
|
24574
24610
|
messages: rawMessages,
|
|
24575
24611
|
isLoading: chatLoading,
|
|
@@ -24612,8 +24648,8 @@ function EmbeddableChatInner({
|
|
|
24612
24648
|
const mingoCaps = _react.useMemo.call(void 0,
|
|
24613
24649
|
() => ({
|
|
24614
24650
|
...dialogCapabilities,
|
|
24615
|
-
canRename: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess',
|
|
24616
|
-
canArchive: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess',
|
|
24651
|
+
canRename: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _799 => _799.canRename]), () => ( false)),
|
|
24652
|
+
canArchive: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _800 => _800.canArchive]), () => ( false))
|
|
24617
24653
|
}),
|
|
24618
24654
|
[dialogCapabilities]
|
|
24619
24655
|
);
|
|
@@ -24628,7 +24664,7 @@ function EmbeddableChatInner({
|
|
|
24628
24664
|
void sendMessage(guidePendingPrompt).catch((err) => {
|
|
24629
24665
|
console.error("[EmbeddableChat] guide launcher prompt failed:", err);
|
|
24630
24666
|
});
|
|
24631
|
-
_optionalChain([onGuidePromptConsumed, 'optionalCall',
|
|
24667
|
+
_optionalChain([onGuidePromptConsumed, 'optionalCall', _801 => _801()]);
|
|
24632
24668
|
}, [guidePendingPrompt, activeMode, sendMessage, onGuidePromptConsumed]);
|
|
24633
24669
|
const {
|
|
24634
24670
|
attachments: stagedAttachments,
|
|
@@ -24639,7 +24675,7 @@ function EmbeddableChatInner({
|
|
|
24639
24675
|
clear: clearAttachments
|
|
24640
24676
|
} = useChatAttachments();
|
|
24641
24677
|
const { panelRef: galleryPanelRef, modal: galleryModal } = useChatAttachmentImageGallery();
|
|
24642
|
-
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess',
|
|
24678
|
+
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _802 => _802.maxItems]), () => ( 10));
|
|
24643
24679
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
24644
24680
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
24645
24681
|
const [contextPickerOpen, setContextPickerOpen] = _react.useState.call(void 0, false);
|
|
@@ -24660,10 +24696,10 @@ function EmbeddableChatInner({
|
|
|
24660
24696
|
}, [activeDialogId, activeMode]);
|
|
24661
24697
|
const mentionMarkerByType = _react.useMemo.call(void 0, () => {
|
|
24662
24698
|
const m = /* @__PURE__ */ new Map();
|
|
24663
|
-
for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess',
|
|
24699
|
+
for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _803 => _803.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
|
|
24664
24700
|
return m;
|
|
24665
|
-
}, [_optionalChain([contextPicker, 'optionalAccess',
|
|
24666
|
-
const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess',
|
|
24701
|
+
}, [_optionalChain([contextPicker, 'optionalAccess', _804 => _804.entityTypes])]);
|
|
24702
|
+
const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _805 => _805.entityTypes]);
|
|
24667
24703
|
const resolveContextIcon = _react.useMemo.call(void 0, () => {
|
|
24668
24704
|
const byType = /* @__PURE__ */ new Map();
|
|
24669
24705
|
for (const t of _nullishCoalesce(contextEntityTypes, () => ( []))) byType.set(t.type, t.icon);
|
|
@@ -24675,7 +24711,7 @@ function EmbeddableChatInner({
|
|
|
24675
24711
|
if (mentionActiveRef.current) {
|
|
24676
24712
|
if (contextItems.some((p) => `${p.type}:${p.id}` === key)) return;
|
|
24677
24713
|
if (contextItems.length >= contextMaxItems) return;
|
|
24678
|
-
_optionalChain([chatInputRef, 'access',
|
|
24714
|
+
_optionalChain([chatInputRef, 'access', _806 => _806.current, 'optionalAccess', _807 => _807.commitMention, 'call', _808 => _808(mentionTokenOf(key, mentionMarkerByType), {
|
|
24679
24715
|
label: item.label,
|
|
24680
24716
|
icon: resolveContextIcon(item)
|
|
24681
24717
|
})]);
|
|
@@ -24698,9 +24734,9 @@ function EmbeddableChatInner({
|
|
|
24698
24734
|
setContextItems((prev) => prev.filter((p) => `${p.type}:${p.id}` !== key));
|
|
24699
24735
|
if (mentionKeysRef.current.has(key)) {
|
|
24700
24736
|
mentionKeysRef.current.delete(key);
|
|
24701
|
-
const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access',
|
|
24737
|
+
const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _809 => _809.current, 'optionalAccess', _810 => _810.getValue, 'call', _811 => _811()]), () => ( ""));
|
|
24702
24738
|
const next = cur.replace(`@${mentionTokenOf(key, mentionMarkerByType)}`, "").replace(/\s{2,}/g, " ").trimStart();
|
|
24703
|
-
_optionalChain([chatInputRef, 'access',
|
|
24739
|
+
_optionalChain([chatInputRef, 'access', _812 => _812.current, 'optionalAccess', _813 => _813.setValue, 'call', _814 => _814(next)]);
|
|
24704
24740
|
}
|
|
24705
24741
|
},
|
|
24706
24742
|
[mentionMarkerByType]
|
|
@@ -24722,7 +24758,7 @@ function EmbeddableChatInner({
|
|
|
24722
24758
|
}, []);
|
|
24723
24759
|
const closeContextPicker = _react.useCallback.call(void 0, () => {
|
|
24724
24760
|
if (mentionActiveRef.current) {
|
|
24725
|
-
_optionalChain([chatInputRef, 'access',
|
|
24761
|
+
_optionalChain([chatInputRef, 'access', _815 => _815.current, 'optionalAccess', _816 => _816.removeMentionTrigger, 'call', _817 => _817()]);
|
|
24726
24762
|
}
|
|
24727
24763
|
setContextPickerOpen(false);
|
|
24728
24764
|
setMentionQuery(null);
|
|
@@ -24756,8 +24792,8 @@ function EmbeddableChatInner({
|
|
|
24756
24792
|
[effectiveAssistantIcon]
|
|
24757
24793
|
);
|
|
24758
24794
|
const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
24759
|
-
const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess',
|
|
24760
|
-
const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess',
|
|
24795
|
+
const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _818 => _818.firstName]), _optionalChain([identityUser, 'optionalAccess', _819 => _819.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _820 => _820.name, 'optionalAccess', _821 => _821.trim, 'call', _822 => _822()]) || void 0 : void 0;
|
|
24796
|
+
const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _823 => _823.avatarUrl, 'optionalAccess', _824 => _824.trim, 'call', _825 => _825()]) || void 0 : void 0;
|
|
24761
24797
|
const messages = _react.useMemo.call(void 0, () => {
|
|
24762
24798
|
const options = { userName: guideUserName, userAvatar: guideUserAvatar, timestampCache };
|
|
24763
24799
|
const mapped = rawMessages.map((m) => mapHostMessage(m, options));
|
|
@@ -24931,7 +24967,7 @@ function EmbeddableChatInner({
|
|
|
24931
24967
|
_react.useEffect.call(void 0, () => {
|
|
24932
24968
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
24933
24969
|
const ro = new ResizeObserver((entries) => {
|
|
24934
|
-
const w = _optionalChain([entries, 'access',
|
|
24970
|
+
const w = _optionalChain([entries, 'access', _826 => _826[0], 'optionalAccess', _827 => _827.contentRect, 'optionalAccess', _828 => _828.width]);
|
|
24935
24971
|
if (typeof w === "number") setPanelWidth(w);
|
|
24936
24972
|
});
|
|
24937
24973
|
ro.observe(panelBoundary);
|
|
@@ -24975,17 +25011,17 @@ function EmbeddableChatInner({
|
|
|
24975
25011
|
const stackedListView = isMingoMode && !hasConversation && !archiveOpen && !wideMingo && !composeOpen && !emptyListSkipped;
|
|
24976
25012
|
const headerShowBack = hasConversation || guideCanReturnToMingo;
|
|
24977
25013
|
const freshConversationTitle = isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "New Chat";
|
|
24978
|
-
const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess',
|
|
25014
|
+
const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _829 => _829.title]) || freshConversationTitle : isGuideEmpty ? freshConversationTitle : "Current Chats";
|
|
24979
25015
|
const headerBackAriaLabel = hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo";
|
|
24980
25016
|
const headerOnBack = hasConversation ? handleBack : () => handleActiveModeChange("mingo");
|
|
24981
25017
|
const headerOnRestore = isViewingArchived && unarchiveDialog && activeDialog ? () => setRestoreTarget(activeDialog) : void 0;
|
|
24982
25018
|
const headerOnRename = activeDialogId && activeDialog && mingoCaps.canRename ? () => setRenameTarget(activeDialog) : void 0;
|
|
24983
25019
|
const headerOnArchive = activeDialogId && activeDialog && mingoCaps.canArchive ? () => setArchiveTarget(activeDialog) : void 0;
|
|
24984
|
-
const headerOnCopyLink = activeDialogId && activeDialog && mingoCaps.onCopyLink ? () => _optionalChain([mingoCaps, 'access',
|
|
25020
|
+
const headerOnCopyLink = activeDialogId && activeDialog && mingoCaps.onCopyLink ? () => _optionalChain([mingoCaps, 'access', _830 => _830.onCopyLink, 'optionalCall', _831 => _831(activeDialog)]) : void 0;
|
|
24985
25021
|
const headerOnOpenArchive = fetchArchivedDialogs ? openArchive : void 0;
|
|
24986
|
-
const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess',
|
|
24987
|
-
const headerPersonName = _optionalChain([headerOwner, 'optionalAccess',
|
|
24988
|
-
const headerPersonAvatarUrl = headerOwner ? _optionalChain([headerOwner, 'access',
|
|
25022
|
+
const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _832 => _832.owner]) : void 0;
|
|
25023
|
+
const headerPersonName = _optionalChain([headerOwner, 'optionalAccess', _833 => _833.name, 'optionalAccess', _834 => _834.trim, 'call', _835 => _835()]) || headerUserName;
|
|
25024
|
+
const headerPersonAvatarUrl = headerOwner ? _optionalChain([headerOwner, 'access', _836 => _836.avatarUrl, 'optionalAccess', _837 => _837.trim, 'call', _838 => _838()]) || void 0 : _optionalChain([identityUser, 'optionalAccess', _839 => _839.avatarUrl, 'optionalAccess', _840 => _840.trim, 'call', _841 => _841()]) || _optionalChain([userAvatarUrl, 'optionalAccess', _842 => _842.trim, 'call', _843 => _843()]) || void 0;
|
|
24989
25025
|
const headerAvatar = headerPersonName || headerPersonAvatarUrl ? { name: headerPersonName, avatarUrl: headerPersonAvatarUrl } : void 0;
|
|
24990
25026
|
const handleNewChat = _react.useCallback.call(void 0, () => {
|
|
24991
25027
|
resetToNewChat();
|
|
@@ -25131,7 +25167,7 @@ function EmbeddableChatInner({
|
|
|
25131
25167
|
headerAvatar ? (
|
|
25132
25168
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
25133
25169
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25134
|
-
|
|
25170
|
+
_chunkCS7MVDUFcjs.SquareAvatar,
|
|
25135
25171
|
{
|
|
25136
25172
|
variant: "round",
|
|
25137
25173
|
sizePx: 32,
|
|
@@ -25303,9 +25339,9 @@ function EmbeddableChatInner({
|
|
|
25303
25339
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
25304
25340
|
subtitleLoading: emptyStateLoading,
|
|
25305
25341
|
...guideWelcome,
|
|
25306
|
-
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
25307
|
-
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess',
|
|
25308
|
-
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess',
|
|
25342
|
+
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _844 => _844.title]))),
|
|
25343
|
+
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _845 => _845.icon]))),
|
|
25344
|
+
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _846 => _846.quickActions]), () => ( guideSuggestedActions)),
|
|
25309
25345
|
onQuickAction: (action) => {
|
|
25310
25346
|
setQuickActionPreview(null);
|
|
25311
25347
|
handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
|
|
@@ -25379,8 +25415,8 @@ function EmbeddableChatInner({
|
|
|
25379
25415
|
selectedContextItems: contextItems,
|
|
25380
25416
|
onToggleContextItem: toggleContextItem,
|
|
25381
25417
|
onRemoveContextItem: removeContextItem,
|
|
25382
|
-
contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess',
|
|
25383
|
-
onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess',
|
|
25418
|
+
contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _847 => _847.items]),
|
|
25419
|
+
onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _848 => _848.onRemove]),
|
|
25384
25420
|
contextPickerOpen,
|
|
25385
25421
|
onOpenContextPicker: openContextPicker,
|
|
25386
25422
|
onCloseContextPicker: closeContextPicker,
|
|
@@ -25845,5 +25881,6 @@ function EmbeddableChatInner({
|
|
|
25845
25881
|
|
|
25846
25882
|
|
|
25847
25883
|
|
|
25848
|
-
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;
|
|
25849
|
-
//# sourceMappingURL=chunk-ROQTWRV7.cjs.map
|
|
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
|