@flamingo-stack/openframe-frontend-core 0.0.737 → 0.0.738
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/build/export-map.json +1 -1
- package/dist/{chunk-AZL332TK.cjs → chunk-2QMBXGMQ.cjs} +15 -2
- package/dist/{chunk-DA4VS6TS.cjs → chunk-2SBHPHLS.cjs} +4 -4
- package/dist/{chunk-XPP7VCNY.cjs → chunk-2UZS3ZH7.cjs} +8 -8
- package/dist/{chunk-MGW5DO6P.cjs → chunk-3BBOAMWJ.cjs} +7 -7
- package/dist/{chunk-HZJRERJW.cjs → chunk-3RFQPQ7Z.cjs} +3 -3
- package/dist/{chunk-4FJZ7RJD.cjs → chunk-4T6ETBL4.cjs} +150 -82
- package/dist/{chunk-TJQYX3QC.cjs → chunk-4YQNJJWM.cjs} +95 -95
- package/dist/{chunk-FA2LATDM.cjs → chunk-5BKAUXLR.cjs} +4 -4
- package/dist/{chunk-YADG5Q7C.cjs → chunk-63N4FN5V.cjs} +3 -3
- package/dist/{chunk-4ISP3XP4.cjs → chunk-66R4NGGU.cjs} +72 -72
- package/dist/{chunk-EJOXXJJB.cjs → chunk-7F3V45AH.cjs} +29 -29
- package/dist/{chunk-VYODTHMR.cjs → chunk-7GETNFZ5.cjs} +49 -49
- package/dist/{chunk-L4ZNR5V7.cjs → chunk-7LTG6CJ3.cjs} +67 -67
- package/dist/{chunk-MJGX357L.cjs → chunk-B27QEHYR.cjs} +2 -2
- package/dist/{chunk-VL4JKXU2.cjs → chunk-BRKTN6UR.cjs} +216 -216
- package/dist/{chunk-VRNNIV5Y.cjs → chunk-EG545WGV.cjs} +4 -4
- package/dist/{chunk-ZJNYWNCB.cjs → chunk-FG7HTGT3.cjs} +24 -24
- package/dist/{chunk-77SD7RXY.cjs → chunk-GAF4L3JW.cjs} +7 -7
- package/dist/{chunk-KVGBDWYV.cjs → chunk-GQZOUVXC.cjs} +34 -34
- package/dist/{chunk-URIJ6YUG.cjs → chunk-HNYLTEIS.cjs} +22 -17
- package/dist/{chunk-FCGLSWKR.cjs → chunk-IFS4AH77.cjs} +19 -1
- package/dist/{chunk-L535OD7V.cjs → chunk-JZNESLJX.cjs} +2 -2
- package/dist/{chunk-CM35DLKS.cjs → chunk-KQ4IKALJ.cjs} +35 -35
- package/dist/{chunk-EX2GYIGW.cjs → chunk-LY5VOKV7.cjs} +6 -6
- package/dist/{chunk-XLSVQJBA.cjs → chunk-MLKL2YVE.cjs} +44 -44
- package/dist/{chunk-4RMLAHU2.cjs → chunk-MTNNYSP3.cjs} +18 -18
- package/dist/{chunk-ZRYKDN2J.cjs → chunk-N2CISBJJ.cjs} +15 -15
- package/dist/{chunk-O4MG7FXW.cjs → chunk-N5NDPULP.cjs} +6 -6
- package/dist/{chunk-SGVQO5J6.cjs → chunk-R36NZTUJ.cjs} +26 -26
- package/dist/{chunk-E2JCZU36.cjs → chunk-U5BRSRXA.cjs} +923 -759
- package/dist/{chunk-DUXLZPMJ.cjs → chunk-UMO55S55.cjs} +2 -2
- package/dist/{chunk-LW3QSP47.cjs → chunk-XGHZIYQN.cjs} +24 -24
- package/dist/{chunk-N6YOOGCD.cjs → chunk-XMNLPQ75.cjs} +12 -12
- package/dist/{cloud-tenants-IWQ5FFLY.cjs → cloud-tenants-FTQGWXHS.cjs} +16 -16
- package/dist/components/agent-identity.d.ts +8 -1
- package/dist/components/agent-identity.d.ts.map +1 -1
- package/dist/components/agent-identity.js +6 -1
- package/dist/components/calendar.cjs +4 -4
- package/dist/components/case-studies/index.cjs +28 -28
- package/dist/components/chat/chat-turn.d.ts +23 -0
- package/dist/components/chat/chat-turn.d.ts.map +1 -0
- package/dist/components/chat/chat-turn.js +30 -0
- package/dist/components/chat/index.cjs +14 -12
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +1 -0
- package/dist/components/contact/index.cjs +17 -17
- package/dist/components/docs/index.cjs +20 -20
- package/dist/components/embeds/index.cjs +17 -17
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/faq-section.js +9 -4
- package/dist/components/faq/index.cjs +18 -18
- package/dist/components/features/auth/auth-benefits-panel.d.ts +3 -5
- package/dist/components/features/auth/auth-benefits-panel.d.ts.map +1 -1
- package/dist/components/features/auth/auth-benefits-panel.js +3 -19
- package/dist/components/features/conversation-card.d.ts +12 -4
- package/dist/components/features/conversation-card.d.ts.map +1 -1
- package/dist/components/features/conversation-card.js +30 -38
- package/dist/components/features/index.cjs +16 -16
- package/dist/components/help-center-pages/index.cjs +122 -122
- package/dist/components/index.cjs +96 -80
- package/dist/components/meeting-scheduler/index.cjs +49 -49
- package/dist/components/navigation/index.cjs +19 -19
- package/dist/components/onboarding-guides/index.cjs +19 -19
- package/dist/components/platform/ToolBadge.d.ts.map +1 -1
- package/dist/components/platform/ToolBadge.js +4 -3
- package/dist/components/product-demo/index.cjs +8 -8
- package/dist/components/related-content/index.cjs +8 -8
- package/dist/components/tickets/index.cjs +22 -22
- package/dist/components/ui/app-window-frame.d.ts +7 -1
- package/dist/components/ui/app-window-frame.d.ts.map +1 -1
- package/dist/components/ui/app-window-frame.js +10 -2
- package/dist/components/ui/benefit-list.d.ts +42 -0
- package/dist/components/ui/benefit-list.d.ts.map +1 -0
- package/dist/components/ui/benefit-list.js +62 -0
- package/dist/components/ui/button/button.d.ts +1 -0
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +15 -2
- package/dist/components/ui/dropdown-button.d.ts +20 -2
- package/dist/components/ui/dropdown-button.d.ts.map +1 -1
- package/dist/components/ui/dropdown-button.js +57 -1
- package/dist/components/ui/file-manager/index.cjs +11 -11
- package/dist/components/ui/index.cjs +30 -16
- package/dist/components/ui/index.d.ts +3 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +3 -0
- package/dist/components/ui/leader-row.d.ts +17 -0
- package/dist/components/ui/leader-row.d.ts.map +1 -0
- package/dist/components/ui/leader-row.js +14 -0
- package/dist/components/ui/strip-card.d.ts +23 -0
- package/dist/components/ui/strip-card.d.ts.map +1 -0
- package/dist/components/ui/strip-card.js +56 -0
- package/dist/{devices-OUHGWA6Y.cjs → devices-MPI5HUQS.cjs} +17 -17
- package/dist/{embeddable-chat-U3C4WWB7.cjs → embeddable-chat-7WLUDBGK.cjs} +84 -84
- package/dist/index.cjs +40 -20
- package/dist/{knowledge-3ZASPWMF.cjs → knowledge-BS663XXL.cjs} +17 -17
- package/dist/{logs-E6Y54P6K.cjs → logs-KS2A2VN5.cjs} +25 -25
- package/dist/{policies-LAV75B5B.cjs → policies-H3OK6H4Q.cjs} +20 -20
- package/dist/{remote-session-Z4YZFG5E.cjs → remote-session-EHKXU4HI.cjs} +7 -7
- package/dist/{software-update-2CAL3AMJ.cjs → software-update-HMMMWIL3.cjs} +20 -20
- package/dist/{tickets-board-JOSYLOS7.cjs → tickets-board-3YJKOOZE.cjs} +10 -10
- package/dist/utils/demo-clock.d.ts +22 -0
- package/dist/utils/demo-clock.d.ts.map +1 -0
- package/dist/utils/demo-clock.js +40 -0
- package/dist/utils/identity-tint.d.ts +13 -0
- package/dist/utils/identity-tint.d.ts.map +1 -0
- package/dist/utils/identity-tint.js +14 -0
- package/dist/utils/index.cjs +54 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/dist/{video-file-player-6NWGXZ3W.cjs → video-file-player-ZH2ILAPO.cjs} +12 -12
- package/package.json +1 -1
- package/src/components/agent-identity.tsx +12 -1
- package/src/components/chat/chat-turn.tsx +52 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/faq/faq-section.tsx +4 -1
- package/src/components/features/auth/auth-benefits-panel.tsx +5 -32
- package/src/components/features/conversation-card.tsx +48 -46
- package/src/components/platform/ToolBadge.tsx +4 -3
- package/src/components/ui/app-window-frame.tsx +18 -2
- package/src/components/ui/benefit-list.tsx +97 -0
- package/src/components/ui/button/button.tsx +14 -1
- package/src/components/ui/dropdown-button.tsx +73 -1
- package/src/components/ui/index.ts +3 -0
- package/src/components/ui/leader-row.tsx +28 -0
- package/src/components/ui/strip-card.tsx +68 -0
- package/src/utils/demo-clock.ts +62 -0
- package/src/utils/identity-tint.ts +23 -0
- package/src/utils/index.ts +2 -0
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkN2CISBJJcjs = require('./chunk-N2CISBJJ.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk3RFQPQ7Zcjs = require('./chunk-3RFQPQ7Z.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -32,7 +32,7 @@ var _chunkHZJRERJWcjs = require('./chunk-HZJRERJW.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkUMO55S55cjs = require('./chunk-UMO55S55.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -41,7 +41,7 @@ var _chunkDUXLZPMJcjs = require('./chunk-DUXLZPMJ.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkB27QEHYRcjs = require('./chunk-B27QEHYR.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
var _chunkREEXZ35Ocjs = require('./chunk-REEXZ35O.cjs');
|
|
@@ -315,7 +315,7 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
315
315
|
|
|
316
316
|
|
|
317
317
|
|
|
318
|
-
var
|
|
318
|
+
var _chunk7F3V45AHcjs = require('./chunk-7F3V45AH.cjs');
|
|
319
319
|
|
|
320
320
|
|
|
321
321
|
var _chunkMYBTNOS6cjs = require('./chunk-MYBTNOS6.cjs');
|
|
@@ -359,7 +359,7 @@ var _chunkK6VWTUCHcjs = require('./chunk-K6VWTUCH.cjs');
|
|
|
359
359
|
var _chunkZ74QE57Tcjs = require('./chunk-Z74QE57T.cjs');
|
|
360
360
|
|
|
361
361
|
|
|
362
|
-
var
|
|
362
|
+
var _chunk2QMBXGMQcjs = require('./chunk-2QMBXGMQ.cjs');
|
|
363
363
|
|
|
364
364
|
|
|
365
365
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -946,7 +946,7 @@ var MermaidDiagram = ({
|
|
|
946
946
|
"aria-label": "Diagram zoom",
|
|
947
947
|
children: [
|
|
948
948
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
949
|
-
|
|
949
|
+
_chunk2QMBXGMQcjs.Button,
|
|
950
950
|
{
|
|
951
951
|
variant: "outline",
|
|
952
952
|
size: "icon-sm",
|
|
@@ -958,7 +958,7 @@ var MermaidDiagram = ({
|
|
|
958
958
|
}
|
|
959
959
|
),
|
|
960
960
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
961
|
-
|
|
961
|
+
_chunk2QMBXGMQcjs.Button,
|
|
962
962
|
{
|
|
963
963
|
variant: "outline",
|
|
964
964
|
size: "compact",
|
|
@@ -973,7 +973,7 @@ var MermaidDiagram = ({
|
|
|
973
973
|
}
|
|
974
974
|
),
|
|
975
975
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
976
|
-
|
|
976
|
+
_chunk2QMBXGMQcjs.Button,
|
|
977
977
|
{
|
|
978
978
|
variant: "outline",
|
|
979
979
|
size: "icon-sm",
|
|
@@ -985,7 +985,7 @@ var MermaidDiagram = ({
|
|
|
985
985
|
}
|
|
986
986
|
),
|
|
987
987
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
988
|
-
|
|
988
|
+
_chunk2QMBXGMQcjs.Button,
|
|
989
989
|
{
|
|
990
990
|
variant: "outline",
|
|
991
991
|
size: "icon-sm",
|
|
@@ -3137,7 +3137,7 @@ function chatListensForAskAiOpens() {
|
|
|
3137
3137
|
|
|
3138
3138
|
// src/components/chat/chat-appearance-context.tsx
|
|
3139
3139
|
|
|
3140
|
-
var ChatAppearanceContext = _react.createContext.call(void 0,
|
|
3140
|
+
var ChatAppearanceContext = _react.createContext.call(void 0, _chunkUMO55S55cjs.CHAT_APPEARANCE.CLASSIC);
|
|
3141
3141
|
function useChatAppearance() {
|
|
3142
3142
|
return _react.useContext.call(void 0, ChatAppearanceContext);
|
|
3143
3143
|
}
|
|
@@ -3176,7 +3176,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3176
3176
|
...props
|
|
3177
3177
|
}, ref) => {
|
|
3178
3178
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
3179
|
-
const isV2 = useChatAppearance() ===
|
|
3179
|
+
const isV2 = useChatAppearance() === _chunkUMO55S55cjs.CHAT_APPEARANCE.V2;
|
|
3180
3180
|
const handleApprove = async () => {
|
|
3181
3181
|
setIsProcessing(true);
|
|
3182
3182
|
try {
|
|
@@ -3199,7 +3199,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3199
3199
|
{
|
|
3200
3200
|
ref,
|
|
3201
3201
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
3202
|
-
|
|
3202
|
+
_chunkN2CISBJJcjs.CHAT_BLOCK_CLASS,
|
|
3203
3203
|
// v2: the thread owns the space below the card.
|
|
3204
3204
|
!isV2 && "mb-[var(--spacing-system-xsf)]",
|
|
3205
3205
|
className
|
|
@@ -3207,10 +3207,10 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3207
3207
|
...props,
|
|
3208
3208
|
children: [
|
|
3209
3209
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full whitespace-pre-line break-words text-ods-text-primary text-h4", children: _optionalChain([data, 'access', _49 => _49.explanation, 'optionalAccess', _50 => _50.trim, 'call', _51 => _51()]) || "Approval required" }),
|
|
3210
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3210
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2CISBJJcjs.ApprovalWaitingLine, {}),
|
|
3211
3211
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3212
3212
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3213
|
-
|
|
3213
|
+
_chunk2QMBXGMQcjs.Button,
|
|
3214
3214
|
{
|
|
3215
3215
|
size: "small-legacy",
|
|
3216
3216
|
variant: "accent",
|
|
@@ -3225,7 +3225,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3225
3225
|
}
|
|
3226
3226
|
),
|
|
3227
3227
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3228
|
-
|
|
3228
|
+
_chunk2QMBXGMQcjs.Button,
|
|
3229
3229
|
{
|
|
3230
3230
|
size: "small-legacy",
|
|
3231
3231
|
variant: "outline",
|
|
@@ -3239,17 +3239,17 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3239
3239
|
children: "Reject"
|
|
3240
3240
|
}
|
|
3241
3241
|
)
|
|
3242
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3242
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2CISBJJcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3243
3243
|
]
|
|
3244
3244
|
}
|
|
3245
3245
|
);
|
|
3246
3246
|
}
|
|
3247
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]",
|
|
3247
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunkN2CISBJJcjs.CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
3248
3248
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
|
|
3249
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3249
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2CISBJJcjs.ApprovalWaitingLine, {}),
|
|
3250
3250
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3251
3251
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3252
|
-
|
|
3252
|
+
_chunk2QMBXGMQcjs.Button,
|
|
3253
3253
|
{
|
|
3254
3254
|
size: "small-legacy",
|
|
3255
3255
|
variant: "accent",
|
|
@@ -3264,7 +3264,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3264
3264
|
}
|
|
3265
3265
|
),
|
|
3266
3266
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3267
|
-
|
|
3267
|
+
_chunk2QMBXGMQcjs.Button,
|
|
3268
3268
|
{
|
|
3269
3269
|
size: "small-legacy",
|
|
3270
3270
|
variant: "outline",
|
|
@@ -3278,7 +3278,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3278
3278
|
children: "Reject"
|
|
3279
3279
|
}
|
|
3280
3280
|
)
|
|
3281
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3281
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2CISBJJcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3282
3282
|
] });
|
|
3283
3283
|
}
|
|
3284
3284
|
);
|
|
@@ -3308,7 +3308,7 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
|
|
|
3308
3308
|
|
|
3309
3309
|
var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
3310
3310
|
({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
|
|
3311
|
-
const isV2 = useChatAppearance() ===
|
|
3311
|
+
const isV2 = useChatAppearance() === _chunkUMO55S55cjs.CHAT_APPEARANCE.V2;
|
|
3312
3312
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3313
3313
|
"div",
|
|
3314
3314
|
{
|
|
@@ -3324,7 +3324,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
|
3324
3324
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3325
3325
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
|
|
3326
3326
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h4", title, children: title }),
|
|
3327
|
-
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children:
|
|
3327
|
+
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunkUMO55S55cjs.formatTime.call(void 0, timestamp) })
|
|
3328
3328
|
] }),
|
|
3329
3329
|
body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
|
|
3330
3330
|
] })
|
|
@@ -3523,7 +3523,7 @@ var thoughtMdClasses = [
|
|
|
3523
3523
|
var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
3524
3524
|
({ className, text: text2, isStreaming = false, ...props }, ref) => {
|
|
3525
3525
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3526
|
-
const { innerRef, isOverflowing, containerStyle } =
|
|
3526
|
+
const { innerRef, isOverflowing, containerStyle } = _chunkN2CISBJJcjs.useCollapsible.call(void 0, {
|
|
3527
3527
|
expanded,
|
|
3528
3528
|
collapsedHeight: 19,
|
|
3529
3529
|
disableTransition: isStreaming
|
|
@@ -3538,7 +3538,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3538
3538
|
setExpanded(!expanded);
|
|
3539
3539
|
}
|
|
3540
3540
|
};
|
|
3541
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
3541
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, _chunkN2CISBJJcjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3542
3542
|
"div",
|
|
3543
3543
|
{
|
|
3544
3544
|
role: "button",
|
|
@@ -3556,7 +3556,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3556
3556
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7GIHB3Vcjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
3557
3557
|
] }),
|
|
3558
3558
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, className: _chunk3ATAYP36cjs.cn.call(void 0, "text-sm leading-snug text-ods-text-secondary", thoughtMdClasses), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SimpleMarkdownRenderer, { content: text2, textSize: "compact" }) }) }),
|
|
3559
|
-
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3559
|
+
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2CISBJJcjs.ExpandChevron, { expanded }) })
|
|
3560
3560
|
]
|
|
3561
3561
|
}
|
|
3562
3562
|
) });
|
|
@@ -3677,9 +3677,9 @@ var iconTint = {
|
|
|
3677
3677
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
3678
3678
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
3679
3679
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3680
|
-
const { innerRef, containerStyle } =
|
|
3680
|
+
const { innerRef, containerStyle } = _chunkN2CISBJJcjs.useCollapsible.call(void 0, { expanded });
|
|
3681
3681
|
const hasDetails = Boolean(details);
|
|
3682
|
-
const isV2 = useChatAppearance() ===
|
|
3682
|
+
const isV2 = useChatAppearance() === _chunkUMO55S55cjs.CHAT_APPEARANCE.V2;
|
|
3683
3683
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3684
3684
|
"div",
|
|
3685
3685
|
{
|
|
@@ -3716,7 +3716,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
3716
3716
|
children: title
|
|
3717
3717
|
}
|
|
3718
3718
|
),
|
|
3719
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3719
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2CISBJJcjs.ExpandChevron, { expanded })
|
|
3720
3720
|
]
|
|
3721
3721
|
}
|
|
3722
3722
|
),
|
|
@@ -3765,7 +3765,7 @@ function MspOrganizationCard({
|
|
|
3765
3765
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: "Your IT is managed by" }),
|
|
3766
3766
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: _nullishCoalesce(title, () => ( name)) })
|
|
3767
3767
|
] }),
|
|
3768
|
-
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3768
|
+
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { asChild: true, variant: "outline", size: "icon-sm", "aria-label": actionLabel, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noreferrer noopener", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDVT7OAScjs.ExternalLinkIcon, {}) }) }) : onOpenWebsite ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", size: "icon-sm", "aria-label": actionLabel, onClick: onOpenWebsite, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDVT7OAScjs.ExternalLinkIcon, {}) }) : null
|
|
3769
3769
|
]
|
|
3770
3770
|
}
|
|
3771
3771
|
);
|
|
@@ -3786,7 +3786,7 @@ function MspOrganizationCard({
|
|
|
3786
3786
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h3", children: _nullishCoalesce(title, () => ( `Your IT is managed by ${name}`)) }),
|
|
3787
3787
|
website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
|
|
3788
3788
|
] }),
|
|
3789
|
-
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3789
|
+
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { asChild: true, variant: "outline", size: "icon", "aria-label": actionLabel, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noreferrer noopener", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDVT7OAScjs.ExternalLinkIcon, {}) }) }) : onOpenWebsite ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", size: "icon", "aria-label": actionLabel, onClick: onOpenWebsite, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDVT7OAScjs.ExternalLinkIcon, {}) }) : null
|
|
3790
3790
|
]
|
|
3791
3791
|
}
|
|
3792
3792
|
);
|
|
@@ -3895,7 +3895,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
3895
3895
|
...props,
|
|
3896
3896
|
children: [
|
|
3897
3897
|
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3898
|
-
|
|
3898
|
+
_chunk2QMBXGMQcjs.Button,
|
|
3899
3899
|
{
|
|
3900
3900
|
onClick: onBack,
|
|
3901
3901
|
variant: "transparent",
|
|
@@ -3935,7 +3935,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
3935
3935
|
] }),
|
|
3936
3936
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1", children: [
|
|
3937
3937
|
showNewChat && onNewChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3938
|
-
|
|
3938
|
+
_chunk2QMBXGMQcjs.Button,
|
|
3939
3939
|
{
|
|
3940
3940
|
onClick: onNewChat,
|
|
3941
3941
|
variant: "transparent",
|
|
@@ -3946,7 +3946,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
3946
3946
|
}
|
|
3947
3947
|
),
|
|
3948
3948
|
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3949
|
-
|
|
3949
|
+
_chunk2QMBXGMQcjs.Button,
|
|
3950
3950
|
{
|
|
3951
3951
|
onClick: onClose,
|
|
3952
3952
|
variant: "transparent",
|
|
@@ -3991,9 +3991,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
3991
3991
|
)
|
|
3992
3992
|
] }),
|
|
3993
3993
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3994
|
-
|
|
3994
|
+
_chunkN2CISBJJcjs.TicketStatusTag,
|
|
3995
3995
|
{
|
|
3996
|
-
...
|
|
3996
|
+
..._chunkN2CISBJJcjs.resolveStatusTagProps.call(void 0, {
|
|
3997
3997
|
status: ticketInfo.status,
|
|
3998
3998
|
statusKind: ticketInfo.statusKind,
|
|
3999
3999
|
statusName: ticketInfo.statusName,
|
|
@@ -4550,11 +4550,11 @@ var remarkMentionChips = () => {
|
|
|
4550
4550
|
// src/components/chat/tool-execution-display.tsx
|
|
4551
4551
|
|
|
4552
4552
|
|
|
4553
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
4553
|
+
var COMMAND_BODY_KEYS = new Set(_chunkN2CISBJJcjs.COMMAND_BODY_ARG_KEYS);
|
|
4554
4554
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
4555
4555
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
4556
4556
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4557
|
-
const { innerRef, containerStyle } =
|
|
4557
|
+
const { innerRef, containerStyle } = _chunkN2CISBJJcjs.useCollapsible.call(void 0, { expanded });
|
|
4558
4558
|
const isClient = assistantType === "fae";
|
|
4559
4559
|
const isClientView = variant === "client";
|
|
4560
4560
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -4596,7 +4596,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4596
4596
|
}
|
|
4597
4597
|
),
|
|
4598
4598
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
|
|
4599
|
-
!isStaticRow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4599
|
+
!isStaticRow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2CISBJJcjs.ExpandChevron, { expanded }) })
|
|
4600
4600
|
] });
|
|
4601
4601
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4602
4602
|
"div",
|
|
@@ -4606,7 +4606,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4606
4606
|
// The command running block keeps its bordered box in both chats
|
|
4607
4607
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
4608
4608
|
"flex w-full flex-col overflow-hidden",
|
|
4609
|
-
|
|
4609
|
+
_chunkN2CISBJJcjs.CHAT_BLOCK_FRAME_CLASS,
|
|
4610
4610
|
className
|
|
4611
4611
|
),
|
|
4612
4612
|
...props,
|
|
@@ -4617,7 +4617,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4617
4617
|
// It reads as a card: what was done, then one status line under it.
|
|
4618
4618
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xsf)] p-[var(--spacing-system-sf)] text-left", children: [
|
|
4619
4619
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
|
|
4620
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4620
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2CISBJJcjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
4621
4621
|
] })
|
|
4622
4622
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4623
4623
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4630,9 +4630,9 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4630
4630
|
}
|
|
4631
4631
|
),
|
|
4632
4632
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, children: hasBody && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col items-start gap-0 border-t border-ods-border p-[var(--spacing-system-sf)] text-h6", children: [
|
|
4633
|
-
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4633
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2CISBJJcjs.ArgRow, { argKey: key, value }, key)),
|
|
4634
4634
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4635
|
-
|
|
4635
|
+
_chunkN2CISBJJcjs.ResultBlock,
|
|
4636
4636
|
{
|
|
4637
4637
|
result: message.result,
|
|
4638
4638
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -4686,8 +4686,8 @@ var remarkStripCitations = () => {
|
|
|
4686
4686
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
4687
4687
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
4688
4688
|
function formatMessageTimestamp(timestamp) {
|
|
4689
|
-
const time =
|
|
4690
|
-
return
|
|
4689
|
+
const time = _chunkUMO55S55cjs.formatTime.call(void 0, timestamp);
|
|
4690
|
+
return _chunkN2CISBJJcjs.isToday.call(void 0, timestamp) ? time : `${_chunkUMO55S55cjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
4691
4691
|
}
|
|
4692
4692
|
function normalizeContent(content) {
|
|
4693
4693
|
if (typeof content === "string") {
|
|
@@ -4741,7 +4741,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
4741
4741
|
const isError = role === "error";
|
|
4742
4742
|
const inheritedAppearance = useChatAppearance();
|
|
4743
4743
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
4744
|
-
const isV2 = appearance ===
|
|
4744
|
+
const isV2 = appearance === _chunkUMO55S55cjs.CHAT_APPEARANCE.V2;
|
|
4745
4745
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isUser ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
4746
4746
|
const hasMarkerSupport = !!renderEntityCard;
|
|
4747
4747
|
const segments = _react.useMemo.call(void 0, () => normalizeContent(content), [content]);
|
|
@@ -4925,7 +4925,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
4925
4925
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
4926
4926
|
const face = !showAvatar || isSystem ? null : !isUser && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center justify-center", faceBox), children: assistantIcon }) : !isUser && !avatar && assistantType ? (
|
|
4927
4927
|
// An agent with no picture shows its packaged mark, never initials.
|
|
4928
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk3ATAYP36cjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4928
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk3ATAYP36cjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2CISBJJcjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
|
|
4929
4929
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4930
4930
|
_chunkFTTLBMHUcjs.SquareAvatar,
|
|
4931
4931
|
{
|
|
@@ -5006,7 +5006,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5006
5006
|
);
|
|
5007
5007
|
} else if (segment.type === "approval_batch") {
|
|
5008
5008
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5009
|
-
|
|
5009
|
+
_chunkN2CISBJJcjs.ApprovalBatchMessage,
|
|
5010
5010
|
{
|
|
5011
5011
|
data: segment.data,
|
|
5012
5012
|
status: segment.status,
|
|
@@ -5265,7 +5265,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5265
5265
|
contentClassName,
|
|
5266
5266
|
assistantType,
|
|
5267
5267
|
approvalVariant,
|
|
5268
|
-
appearance =
|
|
5268
|
+
appearance = _chunkUMO55S55cjs.CHAT_APPEARANCE.CLASSIC,
|
|
5269
5269
|
assistantIcon,
|
|
5270
5270
|
pendingApprovals,
|
|
5271
5271
|
hasNextPage,
|
|
@@ -5615,7 +5615,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5615
5615
|
const lastSegment = _optionalChain([lastSegments, 'optionalAccess', _116 => _116[lastSegments.length - 1]]);
|
|
5616
5616
|
const isPausedOnApproval = !!lastSegment && (lastSegment.type === "approval_request" || lastSegment.type === "approval_batch" || lastSegment.type === "escalation_offer") && (lastSegment.status === void 0 || lastSegment.status === "pending");
|
|
5617
5617
|
const showStreamingLoader = isTyping && !isPausedOnApproval && !(pendingApprovals && pendingApprovals.length > 0);
|
|
5618
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5618
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB27QEHYRcjs.OverlayOpenRegistryProvider, { onOpenChange: handleOverlayOpenChange, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", children: [
|
|
5619
5619
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
5620
5620
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5621
5621
|
"div",
|
|
@@ -5784,7 +5784,7 @@ function renderQuickActionIcon(icon) {
|
|
|
5784
5784
|
if (!spec.name && !spec.url) return void 0;
|
|
5785
5785
|
const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
|
|
5786
5786
|
const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
|
|
5787
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5787
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7F3V45AHcjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
|
|
5788
5788
|
}
|
|
5789
5789
|
function composeChipLabel(label, lozenge) {
|
|
5790
5790
|
if (!lozenge) return label;
|
|
@@ -6453,7 +6453,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
6453
6453
|
|
|
6454
6454
|
[Attached: ${safeName}](${url})`;
|
|
6455
6455
|
}
|
|
6456
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
6456
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunk7F3V45AHcjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
6457
6457
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
6458
6458
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
6459
6459
|
"gm"
|
|
@@ -7365,7 +7365,7 @@ function MingoChatHistoryRow({
|
|
|
7365
7365
|
menuOpen ? "opacity-100" : "opacity-0 focus-within:opacity-100 group-hover/row:opacity-100"
|
|
7366
7366
|
),
|
|
7367
7367
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7368
|
-
|
|
7368
|
+
_chunkB27QEHYRcjs.ActionsMenuDropdown,
|
|
7369
7369
|
{
|
|
7370
7370
|
triggerAriaLabel: "Chat actions",
|
|
7371
7371
|
groups: [{ items: menuItems }],
|
|
@@ -7373,7 +7373,7 @@ function MingoChatHistoryRow({
|
|
|
7373
7373
|
onOpenChange: setMenuOpen,
|
|
7374
7374
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
7375
7375
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7376
|
-
|
|
7376
|
+
_chunk2QMBXGMQcjs.Button,
|
|
7377
7377
|
{
|
|
7378
7378
|
variant: "transparent",
|
|
7379
7379
|
size: "icon",
|
|
@@ -7596,7 +7596,7 @@ function MingoWelcome({
|
|
|
7596
7596
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: "Couldn\u2019t load your chats" }),
|
|
7597
7597
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-body-sm text-ods-text-secondary", children: "Something went wrong reaching the server. Check your connection and try again." })
|
|
7598
7598
|
] }),
|
|
7599
|
-
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7599
|
+
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", size: "small", leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXLTOM62Pcjs.Refresh01RightIcon, {}), onClick: onRetry, children: "Try again" })
|
|
7600
7600
|
] }) : isLoadingHistory ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoChatHistorySkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
7601
7601
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7602
7602
|
"div",
|
|
@@ -7605,7 +7605,7 @@ function MingoWelcome({
|
|
|
7605
7605
|
onScroll: updateScrollFade,
|
|
7606
7606
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
7607
7607
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-center justify-center gap-[var(--spacing-system-l)] px-[var(--spacing-system-l)] py-[var(--spacing-system-xxl)] text-center", children: [
|
|
7608
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7608
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2CISBJJcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7609
7609
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7610
7610
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
7611
7611
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -7727,8 +7727,8 @@ function GuideWelcome({
|
|
|
7727
7727
|
icon && (icon.name || icon.url) ? (
|
|
7728
7728
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
7729
7729
|
// match the default Mingo mark (48px).
|
|
7730
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7731
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7730
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7F3V45AHcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
7731
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2CISBJJcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7732
7732
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7733
7733
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
7734
7734
|
subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle }) : subtitleLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5M5C6UV4cjs.Skeleton, { className: "h-5 w-3/4 max-w-80 rounded-sm" }) }) : null
|
|
@@ -7774,8 +7774,8 @@ function GuideModeBanner({ label = DEFAULT_LABEL, tooltip = DEFAULT_TOOLTIP, cla
|
|
|
7774
7774
|
children: [
|
|
7775
7775
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZFJDLJSIcjs.CompassIcon, { size: 16, className: "shrink-0 text-ods-text-on-accent" }),
|
|
7776
7776
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "flex-1 truncate uppercase text-ods-text-on-accent text-h5", children: label }),
|
|
7777
|
-
tooltip != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7778
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7777
|
+
tooltip != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB27QEHYRcjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkB27QEHYRcjs.Tooltip, { children: [
|
|
7778
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB27QEHYRcjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7779
7779
|
"button",
|
|
7780
7780
|
{
|
|
7781
7781
|
type: "button",
|
|
@@ -7784,7 +7784,7 @@ function GuideModeBanner({ label = DEFAULT_LABEL, tooltip = DEFAULT_TOOLTIP, cla
|
|
|
7784
7784
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 16 })
|
|
7785
7785
|
}
|
|
7786
7786
|
) }),
|
|
7787
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7787
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB27QEHYRcjs.TooltipContent, { side: "bottom", align: "end", className: "max-w-[280px] normal-case text-h6", children: tooltip })
|
|
7788
7788
|
] }) })
|
|
7789
7789
|
]
|
|
7790
7790
|
}
|
|
@@ -7930,7 +7930,7 @@ function MingoArchiveList({
|
|
|
7930
7930
|
title: dialog.title || "Untitled Chat",
|
|
7931
7931
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _176 => _176(dialog.id)]),
|
|
7932
7932
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
7933
|
-
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children:
|
|
7933
|
+
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkN2CISBJJcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
7934
7934
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7935
7935
|
_chunkFTTLBMHUcjs.SquareAvatar,
|
|
7936
7936
|
{
|
|
@@ -8027,7 +8027,7 @@ function MingoChatHeader({
|
|
|
8027
8027
|
] }),
|
|
8028
8028
|
onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatHeaderIconButton, { onClick: onRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
8029
8029
|
menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8030
|
-
|
|
8030
|
+
_chunkB27QEHYRcjs.ActionsMenuDropdown,
|
|
8031
8031
|
{
|
|
8032
8032
|
triggerAriaLabel: "Chat actions",
|
|
8033
8033
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
@@ -8248,7 +8248,7 @@ function MingoChatRail({
|
|
|
8248
8248
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: "Couldn\u2019t load your chats" }),
|
|
8249
8249
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Something went wrong reaching the server. Try again." })
|
|
8250
8250
|
] }),
|
|
8251
|
-
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8251
|
+
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", size: "small", leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXLTOM62Pcjs.Refresh01RightIcon, {}), onClick: onRetry, children: "Try again" })
|
|
8252
8252
|
] });
|
|
8253
8253
|
} else if (isLoadingHistory) {
|
|
8254
8254
|
list = Array.from({ length: 6 }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 shrink-0 animate-pulse rounded-md bg-ods-skeleton", "aria-hidden": true }, i));
|
|
@@ -8290,9 +8290,9 @@ function MingoChatRail({
|
|
|
8290
8290
|
"data-accent": "mingo",
|
|
8291
8291
|
"aria-label": "Mingo chats",
|
|
8292
8292
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
8293
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8293
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2CISBJJcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
8294
8294
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8295
|
-
|
|
8295
|
+
_chunk2QMBXGMQcjs.Button,
|
|
8296
8296
|
{
|
|
8297
8297
|
variant: "transparent",
|
|
8298
8298
|
size: "icon",
|
|
@@ -8306,13 +8306,13 @@ function MingoChatRail({
|
|
|
8306
8306
|
items,
|
|
8307
8307
|
sectionLabel: "Your Current Chats",
|
|
8308
8308
|
sectionActions: listMenu.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8309
|
-
|
|
8309
|
+
_chunkB27QEHYRcjs.ActionsMenuDropdown,
|
|
8310
8310
|
{
|
|
8311
8311
|
triggerAriaLabel: "Chat list options",
|
|
8312
8312
|
groups: [{ items: listMenu }],
|
|
8313
8313
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
8314
8314
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8315
|
-
|
|
8315
|
+
_chunk2QMBXGMQcjs.Button,
|
|
8316
8316
|
{
|
|
8317
8317
|
variant: "transparent",
|
|
8318
8318
|
size: "icon",
|
|
@@ -8369,7 +8369,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems }) {
|
|
|
8369
8369
|
menuOpen ? "opacity-100" : "opacity-0 focus-within:opacity-100 group-hover/row:opacity-100"
|
|
8370
8370
|
),
|
|
8371
8371
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8372
|
-
|
|
8372
|
+
_chunkB27QEHYRcjs.ActionsMenuDropdown,
|
|
8373
8373
|
{
|
|
8374
8374
|
triggerAriaLabel: `Actions for ${title}`,
|
|
8375
8375
|
groups: [{ items: menuItems }],
|
|
@@ -8377,7 +8377,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems }) {
|
|
|
8377
8377
|
onOpenChange: setMenuOpen,
|
|
8378
8378
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
8379
8379
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8380
|
-
|
|
8380
|
+
_chunk2QMBXGMQcjs.Button,
|
|
8381
8381
|
{
|
|
8382
8382
|
variant: "transparent",
|
|
8383
8383
|
size: "icon",
|
|
@@ -8405,7 +8405,7 @@ function TabSelector({
|
|
|
8405
8405
|
scrollable = false,
|
|
8406
8406
|
className
|
|
8407
8407
|
}) {
|
|
8408
|
-
const flush =
|
|
8408
|
+
const flush = _chunkB27QEHYRcjs.useIsInActionsMenuHeader.call(void 0, );
|
|
8409
8409
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8410
8410
|
"div",
|
|
8411
8411
|
{
|
|
@@ -8492,7 +8492,7 @@ function MingoHistoryRail({
|
|
|
8492
8492
|
),
|
|
8493
8493
|
children: [
|
|
8494
8494
|
onNewChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8495
|
-
|
|
8495
|
+
_chunk2QMBXGMQcjs.Button,
|
|
8496
8496
|
{
|
|
8497
8497
|
variant: "outline",
|
|
8498
8498
|
fullWidth: true,
|
|
@@ -8520,7 +8520,7 @@ function MingoHistoryRail({
|
|
|
8520
8520
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: "Couldn\u2019t load your chats" }),
|
|
8521
8521
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Something went wrong reaching the server. Try again." })
|
|
8522
8522
|
] }),
|
|
8523
|
-
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8523
|
+
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", size: "small", leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXLTOM62Pcjs.Refresh01RightIcon, {}), onClick: onRetry, children: "Try again" })
|
|
8524
8524
|
] }) : isLoadingHistory ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoChatHistorySkeleton, {}) : hasList ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8525
8525
|
MingoChatHistory,
|
|
8526
8526
|
{
|
|
@@ -8570,8 +8570,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8570
8570
|
const save = () => {
|
|
8571
8571
|
if (canSave) onSave(name.trim());
|
|
8572
8572
|
};
|
|
8573
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8574
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8573
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUMO55S55cjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8574
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMO55S55cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMO55S55cjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
8575
8575
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
8576
8576
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "rename-chat-input", className: "text-ods-text-primary text-h4", children: "Chat Name" }),
|
|
8577
8577
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8588,27 +8588,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8588
8588
|
}
|
|
8589
8589
|
)
|
|
8590
8590
|
] }),
|
|
8591
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8591
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUMO55S55cjs.ModalFooter, { children: [
|
|
8592
8592
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8593
8593
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: save, disabled: !canSave, className: saveBtn, children: "Save" })
|
|
8594
8594
|
] })
|
|
8595
8595
|
] });
|
|
8596
8596
|
}
|
|
8597
8597
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8598
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8599
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8598
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUMO55S55cjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8599
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMO55S55cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMO55S55cjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
8600
8600
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "This chat will be hidden from your current chats." }),
|
|
8601
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8601
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUMO55S55cjs.ModalFooter, { children: [
|
|
8602
8602
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8603
8603
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: dangerBtn, children: "Archive Chat" })
|
|
8604
8604
|
] })
|
|
8605
8605
|
] });
|
|
8606
8606
|
}
|
|
8607
8607
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8608
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8609
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8608
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUMO55S55cjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8609
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMO55S55cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMO55S55cjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
8610
8610
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "This chat will be moved back to your current chats." }),
|
|
8611
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8611
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUMO55S55cjs.ModalFooter, { children: [
|
|
8612
8612
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8613
8613
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: saveBtn, children: "Unarchive Chat" })
|
|
8614
8614
|
] })
|
|
@@ -8690,18 +8690,18 @@ function ChatPanelHeaderMobile({
|
|
|
8690
8690
|
className
|
|
8691
8691
|
),
|
|
8692
8692
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-end gap-[var(--spacing-system-sf)]", children: [
|
|
8693
|
-
showBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8693
|
+
showBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", size: "icon", "aria-label": backAriaLabel, onClick: onBack, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, {}) }),
|
|
8694
8694
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-end gap-[var(--spacing-system-m)] pt-[var(--spacing-system-xl)]", children: [
|
|
8695
8695
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-[var(--spacing-system-xs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 truncate text-ods-text-primary text-h2", title, children: title }) }),
|
|
8696
8696
|
menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8697
|
-
|
|
8697
|
+
_chunkB27QEHYRcjs.ActionsMenuDropdown,
|
|
8698
8698
|
{
|
|
8699
8699
|
groups: [{ items: menuItems }],
|
|
8700
8700
|
triggerAriaLabel: "Chat actions",
|
|
8701
8701
|
triggerClassName: "flex shrink-0 items-center justify-center border-ods-border bg-ods-card hover:bg-ods-bg-hover focus-visible:ring-0"
|
|
8702
8702
|
}
|
|
8703
8703
|
),
|
|
8704
|
-
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8704
|
+
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", size: "icon", "aria-label": "Close chat", onClick: onClose, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, {}) })
|
|
8705
8705
|
] })
|
|
8706
8706
|
] })
|
|
8707
8707
|
}
|
|
@@ -8797,7 +8797,7 @@ function ChatPanelHeader({
|
|
|
8797
8797
|
] }),
|
|
8798
8798
|
isArchivedView && onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatHeaderIconButton, { onClick: onRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
8799
8799
|
showBack && !isArchivedView && menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8800
|
-
|
|
8800
|
+
_chunkB27QEHYRcjs.ActionsMenuDropdown,
|
|
8801
8801
|
{
|
|
8802
8802
|
triggerAriaLabel: "Chat actions",
|
|
8803
8803
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
@@ -8866,7 +8866,7 @@ function ChatAttachmentAddButton({
|
|
|
8866
8866
|
}
|
|
8867
8867
|
),
|
|
8868
8868
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8869
|
-
|
|
8869
|
+
_chunk2QMBXGMQcjs.Button,
|
|
8870
8870
|
{
|
|
8871
8871
|
type: "button",
|
|
8872
8872
|
variant: "transparent",
|
|
@@ -8945,7 +8945,7 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
8945
8945
|
] })
|
|
8946
8946
|
] }),
|
|
8947
8947
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8948
|
-
|
|
8948
|
+
_chunk2QMBXGMQcjs.Button,
|
|
8949
8949
|
{
|
|
8950
8950
|
type: "button",
|
|
8951
8951
|
variant: "transparent",
|
|
@@ -9188,7 +9188,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9188
9188
|
}, ref) => {
|
|
9189
9189
|
const icon = getProviderIcon(provider);
|
|
9190
9190
|
const name = displayName || modelName;
|
|
9191
|
-
const isV2 = useChatAppearance() ===
|
|
9191
|
+
const isV2 = useChatAppearance() === _chunkUMO55S55cjs.CHAT_APPEARANCE.V2;
|
|
9192
9192
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
9193
9193
|
const inline = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center gap-1 text-ods-text-secondary", "text-h6", className), ...props, children: [
|
|
9194
9194
|
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex items-center justify-center", children: icon }),
|
|
@@ -9317,7 +9317,7 @@ function ChatComposer({
|
|
|
9317
9317
|
}, [entityTypes]);
|
|
9318
9318
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
9319
9319
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9320
|
-
|
|
9320
|
+
_chunkUMO55S55cjs.ChatInput,
|
|
9321
9321
|
{
|
|
9322
9322
|
ref: inputRef,
|
|
9323
9323
|
onSend,
|
|
@@ -9484,16 +9484,16 @@ function useChatPanel() {
|
|
|
9484
9484
|
|
|
9485
9485
|
// src/components/chat/utils/execute-navigation.ts
|
|
9486
9486
|
function isForeignOriginHref(href) {
|
|
9487
|
-
return /^https?:\/\//i.test(href) && !
|
|
9487
|
+
return /^https?:\/\//i.test(href) && !_chunk7F3V45AHcjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
9488
9488
|
}
|
|
9489
9489
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
9490
|
-
const isNewTab = runtime ?
|
|
9490
|
+
const isNewTab = runtime ? _chunk7F3V45AHcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
9491
9491
|
if (isNewTab) {
|
|
9492
9492
|
if (_optionalChain([runtime, 'optionalAccess', _202 => _202.navigation, 'access', _203 => _203.openExternal])) runtime.navigation.openExternal(href);
|
|
9493
|
-
else window.open(href, "_blank",
|
|
9493
|
+
else window.open(href, "_blank", _chunk7F3V45AHcjs.NEW_TAB_FEATURES);
|
|
9494
9494
|
return;
|
|
9495
9495
|
}
|
|
9496
|
-
const target = isForeignOriginHref(href) ? href :
|
|
9496
|
+
const target = isForeignOriginHref(href) ? href : _chunk7F3V45AHcjs.stripSameOriginToPath.call(void 0, href);
|
|
9497
9497
|
if (target.includes("#") && _chunkSA7LDEVJcjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkSA7LDEVJcjs.STICKY_HEADER_OFFSET_PX })) {
|
|
9498
9498
|
return;
|
|
9499
9499
|
}
|
|
@@ -9544,8 +9544,8 @@ function useNavLinkViaRuntime({
|
|
|
9544
9544
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
9545
9545
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
9546
9546
|
const panel = useChatPanel();
|
|
9547
|
-
const resolvedHref =
|
|
9548
|
-
const isNewTab =
|
|
9547
|
+
const resolvedHref = _chunk7F3V45AHcjs.resolveHrefForRuntime.call(void 0, href, runtime);
|
|
9548
|
+
const isNewTab = _chunk7F3V45AHcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
9549
9549
|
const onClick = (e) => {
|
|
9550
9550
|
_optionalChain([onClickProp, 'optionalCall', _207 => _207(e)]);
|
|
9551
9551
|
if (e.defaultPrevented) return;
|
|
@@ -9559,7 +9559,7 @@ function useNavLinkViaRuntime({
|
|
|
9559
9559
|
});
|
|
9560
9560
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _208 => _208.closeChat])) panel.closeChat();
|
|
9561
9561
|
};
|
|
9562
|
-
const attrs =
|
|
9562
|
+
const attrs = _chunk7F3V45AHcjs.newTabAnchorAttrs.call(void 0, isNewTab);
|
|
9563
9563
|
return {
|
|
9564
9564
|
href: resolvedHref,
|
|
9565
9565
|
...attrs,
|
|
@@ -9622,7 +9622,7 @@ function SourceActionButton({
|
|
|
9622
9622
|
const IconComponent = isDisplay ? _lucidereact.FileText : _lucidereact.MessageSquare;
|
|
9623
9623
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: styles.iconSize });
|
|
9624
9624
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9625
|
-
|
|
9625
|
+
_chunk2QMBXGMQcjs.Button,
|
|
9626
9626
|
{
|
|
9627
9627
|
variant: "transparent",
|
|
9628
9628
|
size: styles.size,
|
|
@@ -9706,7 +9706,7 @@ function UserDisplay({
|
|
|
9706
9706
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9707
9707
|
_chunkFTTLBMHUcjs.SquareAvatar,
|
|
9708
9708
|
{
|
|
9709
|
-
src: avatarUrl ?
|
|
9709
|
+
src: avatarUrl ? _chunk7F3V45AHcjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
|
|
9710
9710
|
fallback: name,
|
|
9711
9711
|
alt: name,
|
|
9712
9712
|
sizePx: size,
|
|
@@ -10156,7 +10156,7 @@ function CardsStrip(props) {
|
|
|
10156
10156
|
},
|
|
10157
10157
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "flex w-full min-w-0 flex-col gap-6", className),
|
|
10158
10158
|
children: [
|
|
10159
|
-
showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10159
|
+
showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunk7F3V45AHcjs.SECTION_HEADING_CLASS} break-words`, children: _chunk7F3V45AHcjs.accentSentenceMarks.call(void 0, title) }),
|
|
10160
10160
|
headerSlot,
|
|
10161
10161
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", style: bled ? { marginLeft: -insets.left, marginRight: -insets.right } : void 0, children: [
|
|
10162
10162
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10207,7 +10207,7 @@ function CardsStrip(props) {
|
|
|
10207
10207
|
),
|
|
10208
10208
|
showChevrons && overflows && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10209
10209
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10210
|
-
|
|
10210
|
+
_chunk2QMBXGMQcjs.Button,
|
|
10211
10211
|
{
|
|
10212
10212
|
type: "button",
|
|
10213
10213
|
variant: "outline",
|
|
@@ -10220,7 +10220,7 @@ function CardsStrip(props) {
|
|
|
10220
10220
|
}
|
|
10221
10221
|
),
|
|
10222
10222
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10223
|
-
|
|
10223
|
+
_chunk2QMBXGMQcjs.Button,
|
|
10224
10224
|
{
|
|
10225
10225
|
type: "button",
|
|
10226
10226
|
variant: "outline",
|
|
@@ -10308,7 +10308,7 @@ function groupByAspectRatio(items, getAspectRatio) {
|
|
|
10308
10308
|
|
|
10309
10309
|
function VideoBitesStrip({
|
|
10310
10310
|
bites,
|
|
10311
|
-
title =
|
|
10311
|
+
title = _chunk7F3V45AHcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10312
10312
|
showTitle = true,
|
|
10313
10313
|
filterPublished = true,
|
|
10314
10314
|
profile = null,
|
|
@@ -10321,14 +10321,14 @@ function VideoBitesStrip({
|
|
|
10321
10321
|
cardHeightMobile = 300,
|
|
10322
10322
|
showChevrons = true,
|
|
10323
10323
|
onBiteNavigate,
|
|
10324
|
-
sortComparator =
|
|
10324
|
+
sortComparator = _chunk7F3V45AHcjs.sortBitesByCreatedAtDesc,
|
|
10325
10325
|
className
|
|
10326
10326
|
}) {
|
|
10327
10327
|
const items = _react.useMemo.call(void 0, () => {
|
|
10328
10328
|
const filtered = filterPublished ? bites.filter((b) => b.published) : [...bites];
|
|
10329
10329
|
return filtered.sort(sortComparator);
|
|
10330
10330
|
}, [bites, filterPublished, sortComparator]);
|
|
10331
|
-
const warmup =
|
|
10331
|
+
const warmup = _chunk3RFQPQ7Zcjs.useVideoWarmup.call(void 0, { videoUrl: _optionalChain([items, 'access', _231 => _231[0], 'optionalAccess', _232 => _232.url]) || null });
|
|
10332
10332
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10333
10333
|
CardsStrip,
|
|
10334
10334
|
{
|
|
@@ -10487,7 +10487,7 @@ function VideoBiteCard({
|
|
|
10487
10487
|
},
|
|
10488
10488
|
children: [
|
|
10489
10489
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10490
|
-
|
|
10490
|
+
_chunk7F3V45AHcjs.VideoHoverPreviewSurface,
|
|
10491
10491
|
{
|
|
10492
10492
|
url: bite.url,
|
|
10493
10493
|
posterUrl: bite.thumbnail_url,
|
|
@@ -10558,7 +10558,7 @@ function EntityVideoSection({
|
|
|
10558
10558
|
title = "Video",
|
|
10559
10559
|
videoSummary,
|
|
10560
10560
|
videoBites,
|
|
10561
|
-
bitesTitle =
|
|
10561
|
+
bitesTitle = _chunk7F3V45AHcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10562
10562
|
filterPublishedBites = true,
|
|
10563
10563
|
bitesProfile = null,
|
|
10564
10564
|
bitesHref,
|
|
@@ -10604,7 +10604,7 @@ function EntityVideoSection({
|
|
|
10604
10604
|
)
|
|
10605
10605
|
] }),
|
|
10606
10606
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10607
|
-
|
|
10607
|
+
_chunk7F3V45AHcjs.Video,
|
|
10608
10608
|
{
|
|
10609
10609
|
kind: fullVideoKind,
|
|
10610
10610
|
url: fullVideoUrl,
|
|
@@ -10616,7 +10616,7 @@ function EntityVideoSection({
|
|
|
10616
10616
|
}
|
|
10617
10617
|
) }),
|
|
10618
10618
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10619
|
-
|
|
10619
|
+
_chunk7F3V45AHcjs.Video,
|
|
10620
10620
|
{
|
|
10621
10621
|
url: highlightVideoUrl,
|
|
10622
10622
|
poster: highlightVideoThumbnail,
|
|
@@ -10625,7 +10625,7 @@ function EntityVideoSection({
|
|
|
10625
10625
|
}
|
|
10626
10626
|
) })
|
|
10627
10627
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10628
|
-
|
|
10628
|
+
_chunk7F3V45AHcjs.Video,
|
|
10629
10629
|
{
|
|
10630
10630
|
kind: fullVideoKind,
|
|
10631
10631
|
url: fullVideoUrl,
|
|
@@ -10636,7 +10636,7 @@ function EntityVideoSection({
|
|
|
10636
10636
|
priority
|
|
10637
10637
|
}
|
|
10638
10638
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10639
|
-
|
|
10639
|
+
_chunk7F3V45AHcjs.Video,
|
|
10640
10640
|
{
|
|
10641
10641
|
url: highlightVideoUrl,
|
|
10642
10642
|
poster: highlightVideoThumbnail,
|
|
@@ -10646,7 +10646,7 @@ function EntityVideoSection({
|
|
|
10646
10646
|
}
|
|
10647
10647
|
) : null),
|
|
10648
10648
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
10649
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10649
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunk7F3V45AHcjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
10650
10650
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden break-words text-ods-text-primary text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: videoSummary }) })
|
|
10651
10651
|
] }),
|
|
10652
10652
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10906,14 +10906,14 @@ function designDocPeople(doc) {
|
|
|
10906
10906
|
return people;
|
|
10907
10907
|
}
|
|
10908
10908
|
function designDocMetaLine(doc) {
|
|
10909
|
-
return [_optionalChain([doc, 'access', _243 => _243.author, 'optionalAccess', _244 => _244.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
10909
|
+
return [_optionalChain([doc, 'access', _243 => _243.author, 'optionalAccess', _244 => _244.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunk7F3V45AHcjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
10910
10910
|
}
|
|
10911
10911
|
function DesignDocCardSkeleton() {
|
|
10912
10912
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10913
10913
|
"div",
|
|
10914
10914
|
{
|
|
10915
10915
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
10916
|
-
|
|
10916
|
+
_chunk7F3V45AHcjs.CONTENT_CARD_SKELETON_FRAME_CLASS,
|
|
10917
10917
|
"flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]"
|
|
10918
10918
|
),
|
|
10919
10919
|
role: "status",
|
|
@@ -10943,7 +10943,7 @@ function DesignDocCardSkeleton() {
|
|
|
10943
10943
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
10944
10944
|
const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
|
|
10945
10945
|
const people = designDocPeople(doc);
|
|
10946
|
-
const link =
|
|
10946
|
+
const link = _chunk7F3V45AHcjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
10947
10947
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10948
10948
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[16px]", children: [
|
|
10949
10949
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
@@ -10951,7 +10951,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
10951
10951
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-[20px] items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h5", children: designDocMetaLine(doc) }) })
|
|
10952
10952
|
] }),
|
|
10953
10953
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10954
|
-
|
|
10954
|
+
_chunk7F3V45AHcjs.StatusBadge,
|
|
10955
10955
|
{
|
|
10956
10956
|
text: readiness.label,
|
|
10957
10957
|
colorScheme: readiness.scheme,
|
|
@@ -10961,7 +10961,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
10961
10961
|
}
|
|
10962
10962
|
)
|
|
10963
10963
|
] }),
|
|
10964
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10964
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7F3V45AHcjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
|
|
10965
10965
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-[72px] items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 text-ods-text-secondary text-h4", children: doc.summary || "" }) }),
|
|
10966
10966
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
10967
10967
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
@@ -10970,7 +10970,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
10970
10970
|
] })
|
|
10971
10971
|
] });
|
|
10972
10972
|
const outer = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
10973
|
-
|
|
10973
|
+
_chunk7F3V45AHcjs.CONTENT_CARD_FRAME_CLASS,
|
|
10974
10974
|
"flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]",
|
|
10975
10975
|
className
|
|
10976
10976
|
);
|
|
@@ -11114,26 +11114,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11114
11114
|
metaParts.push(
|
|
11115
11115
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
11116
11116
|
);
|
|
11117
|
-
const href =
|
|
11117
|
+
const href = _chunk7F3V45AHcjs.safeHref.call(void 0, item.url);
|
|
11118
11118
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11119
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11120
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11121
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11119
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
11120
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11121
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk7F3V45AHcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
11122
11122
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
11123
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11123
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
11124
11124
|
] }),
|
|
11125
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11125
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
11126
11126
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
11127
11127
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
11128
11128
|
] }, i)) }) }),
|
|
11129
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11129
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_SUMMARY, children: _chunk7F3V45AHcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11130
11130
|
] }),
|
|
11131
11131
|
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
|
|
11132
11132
|
] });
|
|
11133
11133
|
if (anchorProps) {
|
|
11134
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11134
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunk7F3V45AHcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
11135
11135
|
}
|
|
11136
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
11136
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunk7F3V45AHcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk7F3V45AHcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
11137
11137
|
}
|
|
11138
11138
|
function GitHubActivityCardSkeleton({
|
|
11139
11139
|
variant = "compact",
|
|
@@ -11150,12 +11150,12 @@ function GitHubActivityCardSkeleton({
|
|
|
11150
11150
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
11151
11151
|
] });
|
|
11152
11152
|
}
|
|
11153
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11154
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11155
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11156
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11157
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11158
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11153
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk7F3V45AHcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11154
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
11155
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11156
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
|
|
11157
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
11158
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_SUMMARY, children: _chunk7F3V45AHcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11159
11159
|
] }),
|
|
11160
11160
|
/* @__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" }) })
|
|
11161
11161
|
] });
|
|
@@ -11167,29 +11167,29 @@ function GitHubActivityCardSkeleton({
|
|
|
11167
11167
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
11168
11168
|
const goalsCount = _optionalChain([campaign, 'access', _245 => _245.goals, 'optionalAccess', _246 => _246.length]) || 0;
|
|
11169
11169
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11170
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11171
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11172
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11173
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11174
|
-
campaign.start_date ?
|
|
11170
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
11171
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11172
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
11173
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
11174
|
+
campaign.start_date ? _chunk7F3V45AHcjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
11175
11175
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
11176
11176
|
"Marketing campaign"
|
|
11177
11177
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
11178
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11178
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunk7F3V45AHcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11179
11179
|
] })
|
|
11180
11180
|
] });
|
|
11181
11181
|
if (anchorProps) {
|
|
11182
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11182
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunk7F3V45AHcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
11183
11183
|
}
|
|
11184
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
11184
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk7F3V45AHcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
11185
11185
|
}
|
|
11186
11186
|
function CampaignCardAdminSkeleton({ className }) {
|
|
11187
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11188
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11189
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11190
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11191
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11192
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11187
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk7F3V45AHcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11188
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
11189
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11190
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
11191
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
11192
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7F3V45AHcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
11193
11193
|
] })
|
|
11194
11194
|
] });
|
|
11195
11195
|
}
|
|
@@ -11280,7 +11280,7 @@ function VendorIcon({
|
|
|
11280
11280
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: containerClasses, children: logoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11281
11281
|
_chunkUR4K2NSLcjs.next_image_default,
|
|
11282
11282
|
{
|
|
11283
|
-
src:
|
|
11283
|
+
src: _chunk7F3V45AHcjs.getProxiedImageUrl2.call(void 0, logoUrl) || logoUrl,
|
|
11284
11284
|
alt: `${vendor.title} logo`,
|
|
11285
11285
|
width,
|
|
11286
11286
|
height,
|
|
@@ -11310,8 +11310,8 @@ function useChatCardItem(type, id) {
|
|
|
11310
11310
|
const res = await _chunkVOX4E6AXcjs.embedAuthedFetch.call(void 0, url);
|
|
11311
11311
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
11312
11312
|
const data = await res.json();
|
|
11313
|
-
const items =
|
|
11314
|
-
const match = items.find((it) =>
|
|
11313
|
+
const items = _chunk7F3V45AHcjs.extractCardItems.call(void 0, type, data);
|
|
11314
|
+
const match = items.find((it) => _chunk7F3V45AHcjs.extractItemId.call(void 0, type, it) === id);
|
|
11315
11315
|
return _nullishCoalesce(match, () => ( null));
|
|
11316
11316
|
},
|
|
11317
11317
|
enabled: !!url && id.length > 0,
|
|
@@ -11441,7 +11441,7 @@ function MingoInfoCard({
|
|
|
11441
11441
|
isAnchor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: _chunk3ATAYP36cjs.cn.call(void 0, contentClass, "no-underline"), children: content }) : onClick ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick, className: contentClass, children: content }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: contentClass, children: content }),
|
|
11442
11442
|
action && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", "aria-label": action.label, onClick: action.onClick, className: TRAILING_BUTTON_CLASS, children: action.icon }),
|
|
11443
11443
|
hasMenu && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11444
|
-
|
|
11444
|
+
_chunkB27QEHYRcjs.ActionsMenuDropdown,
|
|
11445
11445
|
{
|
|
11446
11446
|
groups: menuGroups,
|
|
11447
11447
|
triggerAriaLabel: menuAriaLabel,
|
|
@@ -11513,7 +11513,7 @@ function resolveFetchedCardHref({
|
|
|
11513
11513
|
composeContentUrl
|
|
11514
11514
|
}) {
|
|
11515
11515
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
11516
|
-
const canonicalType =
|
|
11516
|
+
const canonicalType = _chunk7F3V45AHcjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
11517
11517
|
return composeContentUrl({
|
|
11518
11518
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
11519
11519
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -11563,16 +11563,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11563
11563
|
if (docTarget) {
|
|
11564
11564
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
11565
11565
|
const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
11566
|
-
href = _nullishCoalesce(
|
|
11566
|
+
href = _nullishCoalesce(_chunk7F3V45AHcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11567
11567
|
targetPlatform = docTarget.platform;
|
|
11568
11568
|
} else if (ctx.chipBasePlatform) {
|
|
11569
11569
|
const base = `${getPlatformUrl(ctx.chipBasePlatform)}/knowledge-base/`;
|
|
11570
|
-
href = _nullishCoalesce(
|
|
11570
|
+
href = _nullishCoalesce(_chunk7F3V45AHcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11571
11571
|
targetPlatform = ctx.chipBasePlatform;
|
|
11572
11572
|
} else if (ctx.baseRoute) {
|
|
11573
11573
|
const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
|
|
11574
11574
|
const absolute = new URL(safePath, synthetic).toString();
|
|
11575
|
-
href = _nullishCoalesce(
|
|
11575
|
+
href = _nullishCoalesce(_chunk7F3V45AHcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
|
|
11576
11576
|
targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
|
|
11577
11577
|
}
|
|
11578
11578
|
}
|
|
@@ -11581,15 +11581,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11581
11581
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
11582
11582
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
11583
11583
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
11584
|
-
type:
|
|
11584
|
+
type: _chunk7F3V45AHcjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
11585
11585
|
identifier: idValue,
|
|
11586
11586
|
externalUrl: row.externalUrl,
|
|
11587
11587
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
11588
11588
|
});
|
|
11589
|
-
href = composed.href ? _nullishCoalesce(
|
|
11589
|
+
href = composed.href ? _nullishCoalesce(_chunk7F3V45AHcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
11590
11590
|
targetPlatform = composed.targetPlatform;
|
|
11591
11591
|
} else if (row.externalUrl) {
|
|
11592
|
-
href = _nullishCoalesce(
|
|
11592
|
+
href = _nullishCoalesce(_chunk7F3V45AHcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
11593
11593
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
11594
11594
|
}
|
|
11595
11595
|
const documentType = row.documentType;
|
|
@@ -11656,7 +11656,7 @@ function resolveCardDestination({
|
|
|
11656
11656
|
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _260 => _260.fallbackHref, 'optionalCall', _261 => _261(item)]), () => ( null)),
|
|
11657
11657
|
allowComposed: !entry.noComposedHref
|
|
11658
11658
|
});
|
|
11659
|
-
const url = choice ? _nullishCoalesce(
|
|
11659
|
+
const url = choice ? _nullishCoalesce(_chunk7F3V45AHcjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
11660
11660
|
if (choice && url) {
|
|
11661
11661
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
11662
11662
|
}
|
|
@@ -11669,11 +11669,11 @@ function resolveCardDestination({
|
|
|
11669
11669
|
|
|
11670
11670
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
11671
11671
|
const label = entityLabel || "Item";
|
|
11672
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
11673
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11674
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11675
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11676
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11672
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunk7F3V45AHcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11673
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7F3V45AHcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
11674
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7F3V45AHcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11675
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7F3V45AHcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk7F3V45AHcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
11676
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7F3V45AHcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
11677
11677
|
label,
|
|
11678
11678
|
" deleted",
|
|
11679
11679
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -11728,7 +11728,7 @@ function GitHubChatCard({
|
|
|
11728
11728
|
description,
|
|
11729
11729
|
icon: githubKindIcon(kind),
|
|
11730
11730
|
status,
|
|
11731
|
-
anchorProps:
|
|
11731
|
+
anchorProps: _chunk7F3V45AHcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11732
11732
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11733
11733
|
menuAriaLabel: "Activity actions"
|
|
11734
11734
|
}
|
|
@@ -11875,7 +11875,7 @@ function HubspotTicketChatCard({
|
|
|
11875
11875
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11876
11876
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
11877
11877
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
11878
|
-
anchorProps:
|
|
11878
|
+
anchorProps: _chunk7F3V45AHcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11879
11879
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
11880
11880
|
label: "Open Ticket Details",
|
|
11881
11881
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -11898,7 +11898,7 @@ function FaqChatCard({
|
|
|
11898
11898
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11899
11899
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
11900
11900
|
status: { label: statusLabel, variant: "grey" },
|
|
11901
|
-
anchorProps:
|
|
11901
|
+
anchorProps: _chunk7F3V45AHcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11902
11902
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11903
11903
|
menuAriaLabel: "FAQ actions"
|
|
11904
11904
|
}
|
|
@@ -11918,7 +11918,7 @@ function SlackChatCard({
|
|
|
11918
11918
|
title,
|
|
11919
11919
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11920
11920
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
11921
|
-
anchorProps:
|
|
11921
|
+
anchorProps: _chunk7F3V45AHcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11922
11922
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11923
11923
|
menuAriaLabel: "Message actions"
|
|
11924
11924
|
}
|
|
@@ -11936,7 +11936,7 @@ function GlyphChatCard({
|
|
|
11936
11936
|
title: chatRef.title,
|
|
11937
11937
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11938
11938
|
icon,
|
|
11939
|
-
anchorProps:
|
|
11939
|
+
anchorProps: _chunk7F3V45AHcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11940
11940
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11941
11941
|
menuAriaLabel: "Card actions"
|
|
11942
11942
|
}
|
|
@@ -11954,20 +11954,20 @@ function TrustCenterChatCard({
|
|
|
11954
11954
|
}) {
|
|
11955
11955
|
const raw = _optionalChain([item, 'optionalAccess', _285 => _285.frameworks]);
|
|
11956
11956
|
const frameworks = Array.isArray(raw) ? raw : [];
|
|
11957
|
-
const summary =
|
|
11957
|
+
const summary = _chunk7F3V45AHcjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
11958
11958
|
const leadFramework = frameworks[0];
|
|
11959
11959
|
const lead = leadFramework ? {
|
|
11960
|
-
label:
|
|
11961
|
-
color:
|
|
11960
|
+
label: _chunk7F3V45AHcjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
11961
|
+
color: _chunk7F3V45AHcjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
11962
11962
|
} : void 0;
|
|
11963
11963
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11964
11964
|
MingoInfoCard,
|
|
11965
11965
|
{
|
|
11966
|
-
title:
|
|
11967
|
-
description: summary ||
|
|
11966
|
+
title: _chunk7F3V45AHcjs.TRUST_CENTER_TITLE,
|
|
11967
|
+
description: summary || _chunk7F3V45AHcjs.TRUST_CENTER_TAGLINE,
|
|
11968
11968
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
11969
11969
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
11970
|
-
anchorProps:
|
|
11970
|
+
anchorProps: _chunk7F3V45AHcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11971
11971
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
11972
11972
|
label: "View trust center",
|
|
11973
11973
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -11989,7 +11989,7 @@ function DataRoomDocChatCard({
|
|
|
11989
11989
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11990
11990
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
11991
11991
|
status: { label: badgeText, variant: "grey" },
|
|
11992
|
-
anchorProps:
|
|
11992
|
+
anchorProps: _chunk7F3V45AHcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11993
11993
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11994
11994
|
menuAriaLabel: "Document actions"
|
|
11995
11995
|
}
|
|
@@ -12008,7 +12008,7 @@ function GenericFinancialChatCard({
|
|
|
12008
12008
|
title: chatRef.title,
|
|
12009
12009
|
description: subtitle,
|
|
12010
12010
|
icon,
|
|
12011
|
-
anchorProps:
|
|
12011
|
+
anchorProps: _chunk7F3V45AHcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12012
12012
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12013
12013
|
menuAriaLabel: "Document actions"
|
|
12014
12014
|
}
|
|
@@ -12094,7 +12094,7 @@ function CampaignChatCard({
|
|
|
12094
12094
|
}) {
|
|
12095
12095
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _291 => _291.goals])) ? item.goals.length : 0;
|
|
12096
12096
|
const meta = [
|
|
12097
|
-
_optionalChain([item, 'optionalAccess', _292 => _292.start_date]) ?
|
|
12097
|
+
_optionalChain([item, 'optionalAccess', _292 => _292.start_date]) ? _chunk7F3V45AHcjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
12098
12098
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
12099
12099
|
"Marketing campaign"
|
|
12100
12100
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -12133,7 +12133,7 @@ function EntityMingoCard({
|
|
|
12133
12133
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
12134
12134
|
icon: fallbackIcon,
|
|
12135
12135
|
status,
|
|
12136
|
-
anchorProps:
|
|
12136
|
+
anchorProps: _chunk7F3V45AHcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12137
12137
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
12138
12138
|
menuAriaLabel
|
|
12139
12139
|
}
|
|
@@ -12145,7 +12145,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
12145
12145
|
function statusPill(status) {
|
|
12146
12146
|
const s = typeof status === "string" ? status.trim() : "";
|
|
12147
12147
|
if (!s) return void 0;
|
|
12148
|
-
const scheme =
|
|
12148
|
+
const scheme = _chunk7F3V45AHcjs.getStatusColorScheme.call(void 0, s);
|
|
12149
12149
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
12150
12150
|
return { label: s, variant };
|
|
12151
12151
|
}
|
|
@@ -12236,7 +12236,7 @@ function DesignDocChatCard({
|
|
|
12236
12236
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
12237
12237
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12238
12238
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
12239
|
-
anchorProps:
|
|
12239
|
+
anchorProps: _chunk7F3V45AHcjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab),
|
|
12240
12240
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
12241
12241
|
menuAriaLabel: "Design doc actions"
|
|
12242
12242
|
}
|
|
@@ -12254,7 +12254,7 @@ function InvestorUpdateChatCard({
|
|
|
12254
12254
|
EntityMingoCard,
|
|
12255
12255
|
{
|
|
12256
12256
|
title,
|
|
12257
|
-
description: _optionalChain([item, 'optionalAccess', _322 => _322.strategic_update]) || _optionalChain([item, 'optionalAccess', _323 => _323.content]) ||
|
|
12257
|
+
description: _optionalChain([item, 'optionalAccess', _322 => _322.strategic_update]) || _optionalChain([item, 'optionalAccess', _323 => _323.content]) || _chunk7F3V45AHcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _324 => _324.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _325 => _325.period_end]), () => ( null))) || void 0,
|
|
12258
12258
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _326 => _326.featured_image]), ogPlaceholder),
|
|
12259
12259
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
12260
12260
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -12298,7 +12298,7 @@ function ProgramChatCard({
|
|
|
12298
12298
|
discuss
|
|
12299
12299
|
}) {
|
|
12300
12300
|
const icon = configKey === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGZ6NU2C2cjs.PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM4KPLFFAcjs.CalendarIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZL4LQNYXcjs.MicrophoneIcon, { size: 24 });
|
|
12301
|
-
const { line: meta } =
|
|
12301
|
+
const { line: meta } = _chunk7F3V45AHcjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunk7F3V45AHcjs.programMetaFormatters.call(void 0, _chunk7F3V45AHcjs.PROGRAM_META_RENDERERS));
|
|
12302
12302
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12303
12303
|
EntityMingoCard,
|
|
12304
12304
|
{
|
|
@@ -12324,7 +12324,7 @@ function RoadmapChatCard({
|
|
|
12324
12324
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _336 => _336.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
12325
12325
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _337 => _337.customItemId]) != null;
|
|
12326
12326
|
const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UIJR4PYcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6DN5HKRWcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQDSQKK2cjs.MapIcon, { size: 24 });
|
|
12327
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12327
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7F3V45AHcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _338 => _338.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
12328
12328
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
12329
12329
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
12330
12330
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUR4K2NSLcjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
|
|
@@ -12390,11 +12390,11 @@ function refText(ref, key) {
|
|
|
12390
12390
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
12391
12391
|
}
|
|
12392
12392
|
function VendorGlyph({ title, logoUrl }) {
|
|
12393
|
-
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12393
|
+
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7F3V45AHcjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
|
|
12394
12394
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
12395
12395
|
}
|
|
12396
12396
|
function SitePageGlyph({ iconName }) {
|
|
12397
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12397
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7F3V45AHcjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
|
|
12398
12398
|
}
|
|
12399
12399
|
var GITHUB_CARD_CONFIGS = {
|
|
12400
12400
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -12511,7 +12511,7 @@ function programRegistryEntries() {
|
|
|
12511
12511
|
label: cfg.label,
|
|
12512
12512
|
contentRefType: cfg.contentRefType,
|
|
12513
12513
|
bareInline: true,
|
|
12514
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12514
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7F3V45AHcjs.ProgramCardSkeleton, { size: "sm" }),
|
|
12515
12515
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12516
12516
|
ProgramChatCard,
|
|
12517
12517
|
{
|
|
@@ -12552,7 +12552,7 @@ function roadmapRegistryEntries() {
|
|
|
12552
12552
|
bareInline: true,
|
|
12553
12553
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
12554
12554
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
12555
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12555
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7F3V45AHcjs.RoadmapCardSkeleton, { size: "sm" }),
|
|
12556
12556
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12557
12557
|
RoadmapChatCard,
|
|
12558
12558
|
{
|
|
@@ -12610,12 +12610,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12610
12610
|
// projection route; `extractCardItems` turns its object payload into the
|
|
12611
12611
|
// single matched row. Destination is the public page unless the host
|
|
12612
12612
|
// re-homes the type (`composeContentUrl` override).
|
|
12613
|
-
[
|
|
12613
|
+
[_chunk7F3V45AHcjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
12614
12614
|
label: "Trust center",
|
|
12615
12615
|
bareInline: true,
|
|
12616
|
-
contentRefType:
|
|
12616
|
+
contentRefType: _chunk7F3V45AHcjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
12617
12617
|
noComposedHref: true,
|
|
12618
|
-
fallbackHref: () =>
|
|
12618
|
+
fallbackHref: () => _chunk7F3V45AHcjs.TRUST_CENTER_PAGE_PATH,
|
|
12619
12619
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
|
|
12620
12620
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
12621
12621
|
},
|
|
@@ -12641,7 +12641,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12641
12641
|
label: "Blog post",
|
|
12642
12642
|
contentRefType: "blog_post_existing",
|
|
12643
12643
|
bareInline: true,
|
|
12644
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12644
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7F3V45AHcjs.BlogCardSkeleton, { size: "sm" }),
|
|
12645
12645
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12646
12646
|
BlogChatCard,
|
|
12647
12647
|
{
|
|
@@ -12658,7 +12658,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12658
12658
|
label: "Case study",
|
|
12659
12659
|
contentRefType: "case_study",
|
|
12660
12660
|
bareInline: true,
|
|
12661
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12661
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7F3V45AHcjs.CaseStudyCardSkeleton, { size: "sm" }),
|
|
12662
12662
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12663
12663
|
CaseStudyChatCard,
|
|
12664
12664
|
{
|
|
@@ -12683,7 +12683,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12683
12683
|
label: "Customer interview",
|
|
12684
12684
|
contentRefType: "customer_interview",
|
|
12685
12685
|
bareInline: true,
|
|
12686
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12686
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7F3V45AHcjs.CustomerInterviewCardSkeleton, { size: "sm" }),
|
|
12687
12687
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12688
12688
|
CustomerInterviewChatCard,
|
|
12689
12689
|
{
|
|
@@ -12699,9 +12699,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12699
12699
|
label: "Product release",
|
|
12700
12700
|
contentRefType: "product_release",
|
|
12701
12701
|
bareInline: true,
|
|
12702
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12702
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7F3V45AHcjs.ProductReleaseCardSkeleton, { size: "sm" }),
|
|
12703
12703
|
render: (item, chatRef, opts) => {
|
|
12704
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _379 => _379.extras, 'optionalAccess', _380 => _380.buildProductReleaseCardProps]), () => (
|
|
12704
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _379 => _379.extras, 'optionalAccess', _380 => _380.buildProductReleaseCardProps]), () => ( _chunk7F3V45AHcjs.defaultBuildProductReleaseCardProps));
|
|
12705
12705
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12706
12706
|
ProductReleaseChatCard,
|
|
12707
12707
|
{
|
|
@@ -12719,7 +12719,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12719
12719
|
label: "Investor update",
|
|
12720
12720
|
contentRefType: "investor_update",
|
|
12721
12721
|
bareInline: true,
|
|
12722
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12722
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7F3V45AHcjs.InvestorUpdateCardSkeleton, { size: "sm" }),
|
|
12723
12723
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12724
12724
|
InvestorUpdateChatCard,
|
|
12725
12725
|
{
|
|
@@ -12737,7 +12737,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12737
12737
|
bareInline: true,
|
|
12738
12738
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
12739
12739
|
displayAction: true,
|
|
12740
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12740
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7F3V45AHcjs.OnboardingGuideCardSkeleton, { size: "sm" }),
|
|
12741
12741
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12742
12742
|
OnboardingGuideChatCard,
|
|
12743
12743
|
{
|
|
@@ -12810,7 +12810,7 @@ function ChatCardLoader({
|
|
|
12810
12810
|
entry: fetchEntry,
|
|
12811
12811
|
ctx: sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform }),
|
|
12812
12812
|
composeContentUrl: runtime.composeContentUrl,
|
|
12813
|
-
resolveHref: (href) =>
|
|
12813
|
+
resolveHref: (href) => _chunk7F3V45AHcjs.resolveHrefForRuntime.call(void 0, href, runtime)
|
|
12814
12814
|
});
|
|
12815
12815
|
const hrefResolvedChatRef = {
|
|
12816
12816
|
...chatRef,
|
|
@@ -12821,12 +12821,12 @@ function ChatCardLoader({
|
|
|
12821
12821
|
};
|
|
12822
12822
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
12823
12823
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
12824
|
-
const isNewTab =
|
|
12824
|
+
const isNewTab = _chunk7F3V45AHcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
12825
12825
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
12826
12826
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
12827
12827
|
const discuss = discussFn ? {
|
|
12828
12828
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
12829
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12829
|
+
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2CISBJJcjs.AgentMark, { agent: "mingo", className: "size-5" }),
|
|
12830
12830
|
run: () => discussFn(finalChatRef)
|
|
12831
12831
|
} : void 0;
|
|
12832
12832
|
const renderOpts = {
|
|
@@ -12935,12 +12935,12 @@ function makeBatchDedupKey(item) {
|
|
|
12935
12935
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
12936
12936
|
}
|
|
12937
12937
|
function getChatTypeMessageType(chatType) {
|
|
12938
|
-
return chatType ===
|
|
12938
|
+
return chatType === _chunkUMO55S55cjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
12939
12939
|
}
|
|
12940
12940
|
function useChunkCatchup({
|
|
12941
12941
|
dialogId,
|
|
12942
12942
|
onChunkReceived,
|
|
12943
|
-
chatTypes = [
|
|
12943
|
+
chatTypes = [_chunkUMO55S55cjs.CHAT_TYPE.CLIENT],
|
|
12944
12944
|
fetchChunks
|
|
12945
12945
|
}) {
|
|
12946
12946
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -13901,7 +13901,7 @@ function useChatAttachmentImageGallery() {
|
|
|
13901
13901
|
return () => root.removeEventListener("click", onClick);
|
|
13902
13902
|
}, [viewUrlPrefix]);
|
|
13903
13903
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13904
|
-
|
|
13904
|
+
_chunk7F3V45AHcjs.ImageGalleryModal,
|
|
13905
13905
|
{
|
|
13906
13906
|
images: state.images,
|
|
13907
13907
|
isOpen: state.isOpen,
|
|
@@ -15079,7 +15079,7 @@ function nullableText(value) {
|
|
|
15079
15079
|
}
|
|
15080
15080
|
function httpsUrl(value) {
|
|
15081
15081
|
const candidate = text(value);
|
|
15082
|
-
if (!candidate ||
|
|
15082
|
+
if (!candidate || _chunk7F3V45AHcjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
15083
15083
|
try {
|
|
15084
15084
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
15085
15085
|
} catch (e19) {
|
|
@@ -15663,7 +15663,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15663
15663
|
const status = approvalStatuses[requestId] || "pending";
|
|
15664
15664
|
if (!displayInline(approvalType)) {
|
|
15665
15665
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
15666
|
-
const summary = required ?
|
|
15666
|
+
const summary = required ? _chunkN2CISBJJcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
15667
15667
|
pendingEscalated.set(requestId, {
|
|
15668
15668
|
command: summary,
|
|
15669
15669
|
explanation: _optionalChain([required, 'optionalAccess', _521 => _521.toolExplanation]),
|
|
@@ -15696,7 +15696,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15696
15696
|
if (!call.requiresApproval) continue;
|
|
15697
15697
|
segments = accumulator.addApprovalRequest(
|
|
15698
15698
|
requestId,
|
|
15699
|
-
|
|
15699
|
+
_chunkN2CISBJJcjs.getCommandText.call(void 0, call),
|
|
15700
15700
|
call.toolExplanation,
|
|
15701
15701
|
approvalType,
|
|
15702
15702
|
status,
|
|
@@ -15775,7 +15775,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15775
15775
|
if (!call.requiresApproval) continue;
|
|
15776
15776
|
segments = accumulator.addApprovalRequest(
|
|
15777
15777
|
requestId,
|
|
15778
|
-
|
|
15778
|
+
_chunkN2CISBJJcjs.getCommandText.call(void 0, call),
|
|
15779
15779
|
call.toolExplanation,
|
|
15780
15780
|
escalatedData.approvalType,
|
|
15781
15781
|
status
|
|
@@ -17950,12 +17950,12 @@ function decodeNatsChunk(chunk) {
|
|
|
17950
17950
|
|
|
17951
17951
|
// src/components/chat/utils/process-historical-messages.ts
|
|
17952
17952
|
function getOwnerDisplayName(owner) {
|
|
17953
|
-
if (_optionalChain([owner, 'optionalAccess', _599 => _599.type]) ===
|
|
17953
|
+
if (_optionalChain([owner, 'optionalAccess', _599 => _599.type]) === _chunkUMO55S55cjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
17954
17954
|
const { firstName, lastName } = owner.user;
|
|
17955
17955
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
17956
17956
|
if (name) return name;
|
|
17957
17957
|
}
|
|
17958
|
-
return _optionalChain([owner, 'optionalAccess', _600 => _600.type]) ===
|
|
17958
|
+
return _optionalChain([owner, 'optionalAccess', _600 => _600.type]) === _chunkUMO55S55cjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
17959
17959
|
}
|
|
17960
17960
|
function getOwnerAvatar(owner) {
|
|
17961
17961
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _601 => _601.user, 'optionalAccess', _602 => _602.image, 'optionalAccess', _603 => _603.imageUrl]), () => ( void 0));
|
|
@@ -18218,7 +18218,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18218
18218
|
if (!call.requiresApproval) continue;
|
|
18219
18219
|
accumulator.addApprovalRequest(
|
|
18220
18220
|
event.requestId,
|
|
18221
|
-
|
|
18221
|
+
_chunkN2CISBJJcjs.getCommandText.call(void 0, call),
|
|
18222
18222
|
call.toolExplanation,
|
|
18223
18223
|
approvalType,
|
|
18224
18224
|
status,
|
|
@@ -18279,7 +18279,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18279
18279
|
if (!call.requiresApproval) continue;
|
|
18280
18280
|
accumulator.addApprovalRequest(
|
|
18281
18281
|
requestId,
|
|
18282
|
-
|
|
18282
|
+
_chunkN2CISBJJcjs.getCommandText.call(void 0, call),
|
|
18283
18283
|
call.toolExplanation,
|
|
18284
18284
|
escalatedData.approvalType,
|
|
18285
18285
|
status
|
|
@@ -18387,10 +18387,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18387
18387
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
18388
18388
|
return;
|
|
18389
18389
|
}
|
|
18390
|
-
const isUserMessage = _optionalChain([msg, 'access', _616 => _616.owner, 'optionalAccess', _617 => _617.type]) ===
|
|
18390
|
+
const isUserMessage = _optionalChain([msg, 'access', _616 => _616.owner, 'optionalAccess', _617 => _617.type]) === _chunkUMO55S55cjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _618 => _618.owner, 'optionalAccess', _619 => _619.type]) === _chunkUMO55S55cjs.OWNER_TYPE.ADMIN;
|
|
18391
18391
|
if (isUserMessage) {
|
|
18392
18392
|
flushAssistantMessage();
|
|
18393
|
-
const userAuthorType = _optionalChain([msg, 'access', _620 => _620.owner, 'optionalAccess', _621 => _621.type]) ===
|
|
18393
|
+
const userAuthorType = _optionalChain([msg, 'access', _620 => _620.owner, 'optionalAccess', _621 => _621.type]) === _chunkUMO55S55cjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
18394
18394
|
messageDataArray.forEach((data) => {
|
|
18395
18395
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
18396
18396
|
const rawContext = data.contextItems;
|
|
@@ -18441,7 +18441,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18441
18441
|
});
|
|
18442
18442
|
const nextMsg = messages[index + 1];
|
|
18443
18443
|
const isLastMessage = index === messages.length - 1;
|
|
18444
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _624 => _624.owner, 'optionalAccess', _625 => _625.type]) ===
|
|
18444
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _624 => _624.owner, 'optionalAccess', _625 => _625.type]) === _chunkUMO55S55cjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _626 => _626.owner, 'optionalAccess', _627 => _627.type]) === _chunkUMO55S55cjs.OWNER_TYPE.ADMIN);
|
|
18445
18445
|
if (isLastMessage || nextIsFromUser) {
|
|
18446
18446
|
flushAssistantMessage();
|
|
18447
18447
|
}
|