@flamingo-stack/openframe-frontend-core 0.0.789 → 0.0.791
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/{case-study-card-FDDS5EG3.cjs → case-study-card-MCAM232N.cjs} +5 -5
- package/dist/{chunk-ZH7SZ46Q.cjs → chunk-2I2AXIBD.cjs} +856 -859
- package/dist/{chunk-IKCMAIJ7.cjs → chunk-3AN35WAO.cjs} +80 -80
- package/dist/{chunk-KO4IF7R2.cjs → chunk-3XSWE5FW.cjs} +3 -3
- package/dist/{chunk-RJIFPWO4.cjs → chunk-5MIGBLDC.cjs} +24 -24
- package/dist/{chunk-QELEIFHA.cjs → chunk-6TPROUHW.cjs} +52 -52
- package/dist/{chunk-N3PYKA3B.cjs → chunk-6ZPHUDTP.cjs} +5 -5
- package/dist/{chunk-G33O32RX.cjs → chunk-72NE4G63.cjs} +4 -4
- package/dist/{chunk-UB3C22AW.cjs → chunk-7EH7KKFW.cjs} +121 -121
- package/dist/{chunk-ORIXQCPX.cjs → chunk-7VXMO4XJ.cjs} +8 -8
- package/dist/{chunk-MFPTTZI5.cjs → chunk-ABZGBMC2.cjs} +40 -40
- package/dist/{chunk-YWPYSQYG.cjs → chunk-AT4C2YMA.cjs} +30 -1
- package/dist/{chunk-7A23WZY7.cjs → chunk-BIYLAAFI.cjs} +15 -15
- package/dist/{chunk-GDOJPPOF.cjs → chunk-C5EPWKM7.cjs} +50 -50
- package/dist/{chunk-3IJDTTOY.cjs → chunk-DRWPSN3A.cjs} +2 -2
- package/dist/{chunk-PPBNMZC5.cjs → chunk-EPWLLLGW.cjs} +13 -13
- package/dist/{chunk-KB7SPZFI.cjs → chunk-FBA6S4ES.cjs} +259 -258
- package/dist/{chunk-FJBE3WIJ.cjs → chunk-HCXNFMLO.cjs} +4 -4
- package/dist/{chunk-WDUHSGRT.cjs → chunk-HMV32LV4.cjs} +4 -4
- package/dist/{chunk-JHFSLLQ6.cjs → chunk-IHLGPIFO.cjs} +2 -2
- package/dist/{chunk-QVF5A6UT.cjs → chunk-LL6PXI6C.cjs} +2 -2
- package/dist/{chunk-HDCAH4AT.cjs → chunk-MIUFSOUN.cjs} +90 -90
- package/dist/{chunk-DNJVLDCH.cjs → chunk-O4TKEWNW.cjs} +31 -31
- package/dist/{chunk-W4RRVQZQ.cjs → chunk-OZIPPOSJ.cjs} +253 -246
- package/dist/{chunk-GMGM3JV3.cjs → chunk-P2JY2XCV.cjs} +54 -54
- package/dist/{chunk-7VEYDE3T.cjs → chunk-PQIWR4Q2.cjs} +23 -23
- package/dist/{chunk-IODLD4VM.cjs → chunk-RFIBRGXG.cjs} +3 -3
- package/dist/{chunk-6TFNJDEQ.cjs → chunk-RPC4P7GY.cjs} +60 -87
- package/dist/{chunk-MMC7H7C6.cjs → chunk-SXEIK7RU.cjs} +9 -9
- package/dist/{chunk-EQNNPLCN.cjs → chunk-TBGVWIF7.cjs} +14 -14
- package/dist/{chunk-F2GRQ2RL.cjs → chunk-UNUJ5YQ5.cjs} +4 -4
- package/dist/{chunk-7NUFHVR6.cjs → chunk-VUQNTCAL.cjs} +19 -19
- package/dist/{chunk-HOYSVWKQ.cjs → chunk-W3Q7ZQLS.cjs} +6 -6
- package/dist/{chunk-OCTDWSTS.cjs → chunk-YPWFYQFE.cjs} +39 -39
- package/dist/{chunk-4ZLLUZQB.cjs → chunk-YWNXZAQ2.cjs} +55 -55
- package/dist/{chunk-SBC7RG7O.cjs → chunk-ZCMXBX4Z.cjs} +14 -14
- package/dist/{chunk-ZKNEKZS5.cjs → chunk-ZW2TS775.cjs} +6 -6
- package/dist/{chunk-XI4KB7EF.cjs → chunk-ZZPGSLMO.cjs} +14 -14
- package/dist/{cloud-tenants-3SFM4VJZ.cjs → cloud-tenants-TTOYIEN3.cjs} +18 -18
- package/dist/components/case-studies/index.cjs +33 -33
- package/dist/components/chat/ask-display.d.ts.map +1 -1
- package/dist/components/chat/ask-display.js +2 -4
- package/dist/components/chat/index.cjs +14 -14
- package/dist/components/contact/index.cjs +19 -19
- package/dist/components/docs/index.cjs +22 -22
- package/dist/components/embeds/index.cjs +19 -19
- package/dist/components/faq/index.cjs +20 -20
- package/dist/components/features/cards-strip.d.ts.map +1 -1
- package/dist/components/features/cards-strip.js +4 -1
- package/dist/components/features/index.cjs +18 -18
- package/dist/components/help-center-pages/index.cjs +120 -120
- package/dist/components/index.cjs +122 -120
- package/dist/components/layout/page-heading.d.ts +7 -3
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/layout/page-heading.js +10 -3
- package/dist/components/layout/page-layout.d.ts +2 -2
- package/dist/components/layout/page-layout.d.ts.map +1 -1
- package/dist/components/layout/title-block.d.ts +2 -7
- package/dist/components/layout/title-block.d.ts.map +1 -1
- package/dist/components/layout/title-block.js +6 -31
- package/dist/components/loading/index.d.ts +1 -1
- package/dist/components/loading/index.d.ts.map +1 -1
- package/dist/components/loading/index.js +2 -0
- package/dist/components/loading/unified-skeleton.d.ts +17 -0
- package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
- package/dist/components/loading/unified-skeleton.js +30 -1
- package/dist/components/meeting-scheduler/index.cjs +104 -104
- package/dist/components/navigation/index.cjs +21 -21
- package/dist/components/onboarding-guides/index.cjs +21 -21
- package/dist/components/product-demo/index.cjs +30 -30
- package/dist/components/related-content/index.cjs +11 -11
- package/dist/components/tickets/index.cjs +25 -25
- package/dist/components/ui/file-manager/index.cjs +13 -13
- package/dist/components/ui/image-gallery-modal.d.ts.map +1 -1
- package/dist/components/ui/image-gallery-modal.js +7 -5
- package/dist/components/ui/index.cjs +18 -18
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.js +9 -12
- package/dist/{devices-PE57CA5O.cjs → devices-SKWJYGUD.cjs} +19 -19
- package/dist/embed-shims/index.cjs +3 -3
- package/dist/embed-shims/next-image.cjs +3 -3
- package/dist/{embeddable-chat-TIUNTOXQ.cjs → embeddable-chat-54X3TTG4.cjs} +81 -81
- package/dist/hooks/index.cjs +4 -4
- package/dist/index.cjs +26 -26
- package/dist/{knowledge-ZFJQMMR2.cjs → knowledge-BPB2TROI.cjs} +19 -19
- package/dist/{logs-4GKGMB7A.cjs → logs-VIHYNQU4.cjs} +26 -26
- package/dist/{policies-TRWFGAEE.cjs → policies-YVNOCNNO.cjs} +22 -22
- package/dist/{remote-session-WMAV72M7.cjs → remote-session-WKLEYACD.cjs} +10 -10
- package/dist/{scripts-2SHRGH3L.cjs → scripts-MK5FCR7L.cjs} +25 -25
- package/dist/{software-update-ROHSE2BE.cjs → software-update-GDV75A2Z.cjs} +22 -22
- package/dist/{tickets-board-37LBIQ65.cjs → tickets-board-URMIIAKD.cjs} +10 -10
- package/package.json +1 -1
- package/src/components/chat/ask-display.tsx +2 -4
- package/src/components/features/cards-strip.tsx +6 -2
- package/src/components/layout/page-heading.tsx +30 -8
- package/src/components/layout/page-layout.tsx +3 -2
- package/src/components/layout/title-block.tsx +7 -29
- package/src/components/loading/index.ts +2 -0
- package/src/components/loading/unified-skeleton.tsx +42 -0
- package/src/components/ui/image-gallery-modal.tsx +10 -7
- package/src/components/ui/index.ts +1 -1
- package/src/components/ui/snap-carousel.tsx +12 -11
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkBIYLAAFIcjs = require('./chunk-BIYLAAFI.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkRKWEFZ6Pcjs = require('./chunk-RKWEFZ6P.cjs');
|
|
@@ -38,7 +38,7 @@ var _chunkRKWEFZ6Pcjs = require('./chunk-RKWEFZ6P.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkZCMXBX4Zcjs = require('./chunk-ZCMXBX4Z.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -292,7 +292,7 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
292
292
|
|
|
293
293
|
|
|
294
294
|
|
|
295
|
-
var
|
|
295
|
+
var _chunkOZIPPOSJcjs = require('./chunk-OZIPPOSJ.cjs');
|
|
296
296
|
|
|
297
297
|
|
|
298
298
|
|
|
@@ -321,10 +321,10 @@ var _chunkW4RRVQZQcjs = require('./chunk-W4RRVQZQ.cjs');
|
|
|
321
321
|
|
|
322
322
|
|
|
323
323
|
|
|
324
|
-
var
|
|
324
|
+
var _chunkC5EPWKM7cjs = require('./chunk-C5EPWKM7.cjs');
|
|
325
325
|
|
|
326
326
|
|
|
327
|
-
var
|
|
327
|
+
var _chunk72NE4G63cjs = require('./chunk-72NE4G63.cjs');
|
|
328
328
|
|
|
329
329
|
|
|
330
330
|
|
|
@@ -332,7 +332,7 @@ var _chunkG33O32RXcjs = require('./chunk-G33O32RX.cjs');
|
|
|
332
332
|
|
|
333
333
|
|
|
334
334
|
|
|
335
|
-
var
|
|
335
|
+
var _chunk7VXMO4XJcjs = require('./chunk-7VXMO4XJ.cjs');
|
|
336
336
|
|
|
337
337
|
|
|
338
338
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -356,7 +356,7 @@ var _chunk75PJ2SAZcjs = require('./chunk-75PJ2SAZ.cjs');
|
|
|
356
356
|
var _chunk5GJM7VRRcjs = require('./chunk-5GJM7VRR.cjs');
|
|
357
357
|
|
|
358
358
|
|
|
359
|
-
var
|
|
359
|
+
var _chunkDRWPSN3Acjs = require('./chunk-DRWPSN3A.cjs');
|
|
360
360
|
|
|
361
361
|
|
|
362
362
|
|
|
@@ -379,7 +379,7 @@ var _chunkGD6RPLHXcjs = require('./chunk-GD6RPLHX.cjs');
|
|
|
379
379
|
|
|
380
380
|
|
|
381
381
|
|
|
382
|
-
var
|
|
382
|
+
var _chunkAT4C2YMAcjs = require('./chunk-AT4C2YMA.cjs');
|
|
383
383
|
|
|
384
384
|
|
|
385
385
|
var _chunkK7I3YYYUcjs = require('./chunk-K7I3YYYU.cjs');
|
|
@@ -455,7 +455,7 @@ function TabsTriggerSkeleton({
|
|
|
455
455
|
label,
|
|
456
456
|
className
|
|
457
457
|
}) {
|
|
458
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: _chunk6YZNUHXTcjs.cn.call(void 0, tabsTriggerVariantClasses[variant], className), children: _nullishCoalesce(label, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
458
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: _chunk6YZNUHXTcjs.cn.call(void 0, tabsTriggerVariantClasses[variant], className), children: _nullishCoalesce(label, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: TRIGGER_LABEL_TYPE[variant], className: "w-20" }))) });
|
|
459
459
|
}
|
|
460
460
|
var TabsContent = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
461
461
|
TabsPrimitive.Content,
|
|
@@ -973,7 +973,7 @@ var MermaidDiagram = ({
|
|
|
973
973
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "error-description mb-4 max-w-full overflow-hidden break-words text-center font-sans text-sm text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-x-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "pre", { className: "whitespace-pre-wrap break-words text-xs", children: error }) }) })
|
|
974
974
|
] }) : empty || isLoading || !svg ? (
|
|
975
975
|
// The frame's own size, as a skeleton: the frame sets the height the diagram lands in.
|
|
976
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
976
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { "aria-label": "Rendering diagram", className: "h-auto w-full self-stretch" })
|
|
977
977
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
978
978
|
"div",
|
|
979
979
|
{
|
|
@@ -1085,7 +1085,7 @@ var MarkdownContentImage = ({ src, alt }) => {
|
|
|
1085
1085
|
const resolvedSrc = inScope ? src : authedSrc;
|
|
1086
1086
|
if (!resolvedSrc) return null;
|
|
1087
1087
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1088
|
-
|
|
1088
|
+
_chunkDRWPSN3Acjs.next_image_default,
|
|
1089
1089
|
{
|
|
1090
1090
|
src: resolvedSrc,
|
|
1091
1091
|
alt: _nullishCoalesce(alt, () => ( "No image available")),
|
|
@@ -3176,12 +3176,12 @@ var MarkdownEngine = _react.memo.call(void 0, function MarkdownEngineGate(props)
|
|
|
3176
3176
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEngineImpl, { ...props });
|
|
3177
3177
|
});
|
|
3178
3178
|
function ParagraphBar({ lines, className }) {
|
|
3179
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3179
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "inherit", lines, className: "w-full" }) });
|
|
3180
3180
|
}
|
|
3181
3181
|
function LinesByBreakpoint({ lines, as = "div" }) {
|
|
3182
3182
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3183
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3184
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3183
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "inherit", as, lines: lines.phone, className: "w-full content-md:hidden" }),
|
|
3184
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "inherit", as, lines: lines.wide, className: "hidden w-full content-md:flex" })
|
|
3185
3185
|
] });
|
|
3186
3186
|
}
|
|
3187
3187
|
function MarkdownEngineSkeleton({
|
|
@@ -3202,7 +3202,7 @@ function MarkdownEngineSkeleton({
|
|
|
3202
3202
|
sections ? (
|
|
3203
3203
|
// loading-standard-ok(ITEM_MARK): a document's sections are its markdown text; the loaded body has no items to mark
|
|
3204
3204
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: sections, children: () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
3205
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunk6YZNUHXTcjs.cn.call(void 0, MARKDOWN_H2_CLASS, textSizes.h2), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3205
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunk6YZNUHXTcjs.cn.call(void 0, MARKDOWN_H2_CLASS, textSizes.h2), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
3206
3206
|
SKELETON_SECTION_PARAGRAPHS.map((paragraphLines, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ParagraphBar, { lines: paragraphLines, className: paragraphClass }, index))
|
|
3207
3207
|
] }) })
|
|
3208
3208
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ParagraphBar, { lines, className: paragraphClass })
|
|
@@ -3263,7 +3263,7 @@ function onAskAiIntent(run) {
|
|
|
3263
3263
|
|
|
3264
3264
|
// src/components/chat/chat-appearance-context.tsx
|
|
3265
3265
|
|
|
3266
|
-
var ChatAppearanceContext = _react.createContext.call(void 0,
|
|
3266
|
+
var ChatAppearanceContext = _react.createContext.call(void 0, _chunkZCMXBX4Zcjs.CHAT_APPEARANCE.CLASSIC);
|
|
3267
3267
|
function useChatAppearance() {
|
|
3268
3268
|
return _react.useContext.call(void 0, ChatAppearanceContext);
|
|
3269
3269
|
}
|
|
@@ -3302,7 +3302,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3302
3302
|
...props
|
|
3303
3303
|
}, ref) => {
|
|
3304
3304
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
3305
|
-
const isV2 = useChatAppearance() ===
|
|
3305
|
+
const isV2 = useChatAppearance() === _chunkZCMXBX4Zcjs.CHAT_APPEARANCE.V2;
|
|
3306
3306
|
const handleApprove = async () => {
|
|
3307
3307
|
setIsProcessing(true);
|
|
3308
3308
|
try {
|
|
@@ -3325,7 +3325,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3325
3325
|
{
|
|
3326
3326
|
ref,
|
|
3327
3327
|
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
3328
|
-
|
|
3328
|
+
_chunkBIYLAAFIcjs.CHAT_BLOCK_CLASS,
|
|
3329
3329
|
// v2: the thread owns the space below the card.
|
|
3330
3330
|
!isV2 && "mb-[var(--spacing-system-xsf)]",
|
|
3331
3331
|
className
|
|
@@ -3333,7 +3333,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3333
3333
|
...props,
|
|
3334
3334
|
children: [
|
|
3335
3335
|
/* @__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" }),
|
|
3336
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3336
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.ApprovalWaitingLine, {}),
|
|
3337
3337
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3338
3338
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3339
3339
|
_chunkK7I3YYYUcjs.Button,
|
|
@@ -3365,14 +3365,14 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3365
3365
|
children: "Reject"
|
|
3366
3366
|
}
|
|
3367
3367
|
)
|
|
3368
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3368
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3369
3369
|
]
|
|
3370
3370
|
}
|
|
3371
3371
|
);
|
|
3372
3372
|
}
|
|
3373
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk6YZNUHXTcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]",
|
|
3373
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk6YZNUHXTcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunkBIYLAAFIcjs.CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
3374
3374
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
|
|
3375
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3375
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.ApprovalWaitingLine, {}),
|
|
3376
3376
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3377
3377
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3378
3378
|
_chunkK7I3YYYUcjs.Button,
|
|
@@ -3404,7 +3404,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3404
3404
|
children: "Reject"
|
|
3405
3405
|
}
|
|
3406
3406
|
)
|
|
3407
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3407
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3408
3408
|
] });
|
|
3409
3409
|
}
|
|
3410
3410
|
);
|
|
@@ -3434,7 +3434,7 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
|
|
|
3434
3434
|
|
|
3435
3435
|
var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
3436
3436
|
({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
|
|
3437
|
-
const isV2 = useChatAppearance() ===
|
|
3437
|
+
const isV2 = useChatAppearance() === _chunkZCMXBX4Zcjs.CHAT_APPEARANCE.V2;
|
|
3438
3438
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3439
3439
|
"div",
|
|
3440
3440
|
{
|
|
@@ -3450,7 +3450,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
|
3450
3450
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3451
3451
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
|
|
3452
3452
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h4", title, children: title }),
|
|
3453
|
-
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children:
|
|
3453
|
+
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunkZCMXBX4Zcjs.formatTime.call(void 0, timestamp) })
|
|
3454
3454
|
] }),
|
|
3455
3455
|
body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
|
|
3456
3456
|
] })
|
|
@@ -3565,7 +3565,7 @@ var SystemEventMessage = _react.forwardRef.call(void 0, ({ text: text2, timestam
|
|
|
3565
3565
|
AiAssistantInfo,
|
|
3566
3566
|
{
|
|
3567
3567
|
ref,
|
|
3568
|
-
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3568
|
+
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VXMO4XJcjs.SquareAvatar, { alt: joined, fallback: joined, size: "lg", variant: "round", className: "shrink-0" }),
|
|
3569
3569
|
title: "Technician Joined",
|
|
3570
3570
|
body: `You're now chatting with ${joined}.`,
|
|
3571
3571
|
timestamp,
|
|
@@ -3649,7 +3649,7 @@ var thoughtMdClasses = [
|
|
|
3649
3649
|
var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
3650
3650
|
({ className, text: text2, isStreaming = false, ...props }, ref) => {
|
|
3651
3651
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3652
|
-
const { innerRef, isOverflowing, containerStyle } =
|
|
3652
|
+
const { innerRef, isOverflowing, containerStyle } = _chunkBIYLAAFIcjs.useCollapsible.call(void 0, {
|
|
3653
3653
|
expanded,
|
|
3654
3654
|
collapsedHeight: 19,
|
|
3655
3655
|
disableTransition: isStreaming
|
|
@@ -3664,7 +3664,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3664
3664
|
setExpanded(!expanded);
|
|
3665
3665
|
}
|
|
3666
3666
|
};
|
|
3667
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
3667
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk6YZNUHXTcjs.cn.call(void 0, _chunkBIYLAAFIcjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3668
3668
|
"div",
|
|
3669
3669
|
{
|
|
3670
3670
|
role: "button",
|
|
@@ -3682,7 +3682,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3682
3682
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7GIHB3Vcjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
3683
3683
|
] }),
|
|
3684
3684
|
/* @__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: _chunk6YZNUHXTcjs.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" }) }) }),
|
|
3685
|
-
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3685
|
+
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.ExpandChevron, { expanded }) })
|
|
3686
3686
|
]
|
|
3687
3687
|
}
|
|
3688
3688
|
) });
|
|
@@ -3727,8 +3727,7 @@ var AskDisplay = _react.forwardRef.call(void 0, ({ className, cards: cards2, onS
|
|
|
3727
3727
|
size: "icon-sm",
|
|
3728
3728
|
type: "button",
|
|
3729
3729
|
"aria-label": "Previous question",
|
|
3730
|
-
|
|
3731
|
-
onClick: () => setIndex((current) => Math.max(0, current - 1)),
|
|
3730
|
+
onClick: () => setIndex((current) => current > 0 ? current - 1 : cards2.length - 1),
|
|
3732
3731
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 16 })
|
|
3733
3732
|
}
|
|
3734
3733
|
),
|
|
@@ -3744,8 +3743,7 @@ var AskDisplay = _react.forwardRef.call(void 0, ({ className, cards: cards2, onS
|
|
|
3744
3743
|
size: "icon-sm",
|
|
3745
3744
|
type: "button",
|
|
3746
3745
|
"aria-label": "Next question",
|
|
3747
|
-
|
|
3748
|
-
onClick: () => setIndex((current) => Math.min(cards2.length - 1, current + 1)),
|
|
3746
|
+
onClick: () => setIndex((current) => current < cards2.length - 1 ? current + 1 : 0),
|
|
3749
3747
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4TUSPDNScjs.Chevron02RightIcon, { size: 16 })
|
|
3750
3748
|
}
|
|
3751
3749
|
)
|
|
@@ -3823,7 +3821,7 @@ function renderQuickActionIcon(icon) {
|
|
|
3823
3821
|
if (!spec.name && !spec.url) return void 0;
|
|
3824
3822
|
const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
|
|
3825
3823
|
const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
|
|
3826
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3824
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
|
|
3827
3825
|
}
|
|
3828
3826
|
function composeChipLabel(label, lozenge) {
|
|
3829
3827
|
if (!lozenge) return label;
|
|
@@ -3858,17 +3856,17 @@ function QuickActionChipSkeleton({
|
|
|
3858
3856
|
}) {
|
|
3859
3857
|
const question = variant === "question";
|
|
3860
3858
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3861
|
-
|
|
3859
|
+
_chunk7VXMO4XJcjs.Tag,
|
|
3862
3860
|
{
|
|
3863
3861
|
..._chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props),
|
|
3864
3862
|
variant: "outline",
|
|
3865
3863
|
size: question ? "sentence" : size,
|
|
3866
3864
|
className: _chunk6YZNUHXTcjs.cn.call(void 0, question && "max-w-full", className),
|
|
3867
|
-
icon: icon && !question ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3865
|
+
icon: icon && !question ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { as: "span", "aria-hidden": true, className: size === "large" ? "block size-5" : "block size-4" }) : void 0,
|
|
3868
3866
|
label: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3869
|
-
lozenge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3867
|
+
lozenge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { as: "span", "aria-hidden": true, className: "mr-2 inline-block h-[16px] w-[26px] translate-y-[2px]" }),
|
|
3870
3868
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3871
|
-
|
|
3869
|
+
_chunkAT4C2YMAcjs.UnifiedSkeleton,
|
|
3872
3870
|
{
|
|
3873
3871
|
as: "span",
|
|
3874
3872
|
"aria-hidden": true,
|
|
@@ -3922,7 +3920,7 @@ function QuickActionChipButton({
|
|
|
3922
3920
|
const tagSize = question ? "sentence" : size;
|
|
3923
3921
|
if (!interactive) {
|
|
3924
3922
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3925
|
-
|
|
3923
|
+
_chunk7VXMO4XJcjs.Tag,
|
|
3926
3924
|
{
|
|
3927
3925
|
...markers,
|
|
3928
3926
|
variant: tagVariant,
|
|
@@ -3951,7 +3949,7 @@ function QuickActionChipButton({
|
|
|
3951
3949
|
className
|
|
3952
3950
|
),
|
|
3953
3951
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3954
|
-
|
|
3952
|
+
_chunk7VXMO4XJcjs.Tag,
|
|
3955
3953
|
{
|
|
3956
3954
|
variant: tagVariant,
|
|
3957
3955
|
size: tagSize,
|
|
@@ -4025,9 +4023,9 @@ var iconTint = {
|
|
|
4025
4023
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
4026
4024
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
4027
4025
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4028
|
-
const { innerRef, containerStyle } =
|
|
4026
|
+
const { innerRef, containerStyle } = _chunkBIYLAAFIcjs.useCollapsible.call(void 0, { expanded });
|
|
4029
4027
|
const hasDetails = Boolean(details);
|
|
4030
|
-
const isV2 = useChatAppearance() ===
|
|
4028
|
+
const isV2 = useChatAppearance() === _chunkZCMXBX4Zcjs.CHAT_APPEARANCE.V2;
|
|
4031
4029
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4032
4030
|
"div",
|
|
4033
4031
|
{
|
|
@@ -4061,7 +4059,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4061
4059
|
children: title
|
|
4062
4060
|
}
|
|
4063
4061
|
),
|
|
4064
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4062
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.ExpandChevron, { expanded })
|
|
4065
4063
|
]
|
|
4066
4064
|
}
|
|
4067
4065
|
),
|
|
@@ -4109,19 +4107,19 @@ function MspOrganizationCard({
|
|
|
4109
4107
|
const trailing = action && loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.InertWhileLoading, { children: action }) : action;
|
|
4110
4108
|
if (footer) {
|
|
4111
4109
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, FOOTER_FRAME_CLASS, className), children: [
|
|
4112
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4110
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VXMO4XJcjs.SquareAvatar, { loading, src: logoUrl, alt: name, fallback: name, size: "sm", variant: "square" }),
|
|
4113
4111
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TEXT_STACK_CLASS, children: [
|
|
4114
4112
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: FOOTER_CAPTION_CLASS, children: FOOTER_CAPTION }),
|
|
4115
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4113
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className: "w-3/5" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: _nullishCoalesce(title, () => ( name)) })
|
|
4116
4114
|
] }),
|
|
4117
4115
|
trailing
|
|
4118
4116
|
] });
|
|
4119
4117
|
}
|
|
4120
4118
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, CARD_FRAME_CLASS, className), children: [
|
|
4121
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4119
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VXMO4XJcjs.SquareAvatar, { loading, src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
|
|
4122
4120
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TEXT_STACK_CLASS, children: loading ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4123
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4124
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4121
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h3", className: "w-3/5" }),
|
|
4122
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className: "w-2/5" })
|
|
4125
4123
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4126
4124
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h3", children: _nullishCoalesce(title, () => ( `Your IT is managed by ${name}`)) }),
|
|
4127
4125
|
website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
|
|
@@ -4141,7 +4139,7 @@ var ConnectionIndicator = ({ status }) => {
|
|
|
4141
4139
|
case "connected":
|
|
4142
4140
|
return "bg-ods-success";
|
|
4143
4141
|
case "connecting":
|
|
4144
|
-
return `bg-ods-warning ${
|
|
4142
|
+
return `bg-ods-warning ${_chunkAT4C2YMAcjs.LIVE_PULSE_CLASS}`;
|
|
4145
4143
|
case "disconnected":
|
|
4146
4144
|
return "bg-ods-error";
|
|
4147
4145
|
default:
|
|
@@ -4228,7 +4226,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4228
4226
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-4 px-4 py-3", children: [
|
|
4229
4227
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
4230
4228
|
userIcon && !isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-ods-accent", children: userIcon }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4231
|
-
|
|
4229
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
4232
4230
|
{
|
|
4233
4231
|
loading: isLoading,
|
|
4234
4232
|
src: userAvatar,
|
|
@@ -4240,8 +4238,8 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4240
4238
|
}
|
|
4241
4239
|
),
|
|
4242
4240
|
isLoading ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
4243
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4244
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4241
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h3", className: "w-40" }),
|
|
4242
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className: "w-28" })
|
|
4245
4243
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
4246
4244
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h3", children: userName }),
|
|
4247
4245
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-2", children: serverUrl && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -4310,9 +4308,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4310
4308
|
)
|
|
4311
4309
|
] }),
|
|
4312
4310
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4313
|
-
|
|
4311
|
+
_chunkBIYLAAFIcjs.TicketStatusTag,
|
|
4314
4312
|
{
|
|
4315
|
-
...
|
|
4313
|
+
..._chunkBIYLAAFIcjs.resolveStatusTagProps.call(void 0, {
|
|
4316
4314
|
status: ticketInfo.status,
|
|
4317
4315
|
statusKind: ticketInfo.statusKind,
|
|
4318
4316
|
statusName: ticketInfo.statusName,
|
|
@@ -4412,7 +4410,7 @@ function ContextMenuRow({
|
|
|
4412
4410
|
const loading = loadingProp || inScope && (label == null || label === "");
|
|
4413
4411
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4414
4412
|
icon != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CONTEXT_ICON_CLASS, children: icon }),
|
|
4415
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CONTEXT_LABEL_CLASS, children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4413
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CONTEXT_LABEL_CLASS, children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) : label }),
|
|
4416
4414
|
!loading && trailing
|
|
4417
4415
|
] });
|
|
4418
4416
|
if (loading) {
|
|
@@ -4905,11 +4903,11 @@ var remarkMentionChips = () => {
|
|
|
4905
4903
|
// src/components/chat/tool-execution-display.tsx
|
|
4906
4904
|
|
|
4907
4905
|
|
|
4908
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
4906
|
+
var COMMAND_BODY_KEYS = new Set(_chunkBIYLAAFIcjs.COMMAND_BODY_ARG_KEYS);
|
|
4909
4907
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
4910
4908
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
4911
4909
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4912
|
-
const { innerRef, containerStyle } =
|
|
4910
|
+
const { innerRef, containerStyle } = _chunkBIYLAAFIcjs.useCollapsible.call(void 0, { expanded });
|
|
4913
4911
|
const isClient = assistantType === "fae";
|
|
4914
4912
|
const isClientView = variant === "client";
|
|
4915
4913
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -4952,7 +4950,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4952
4950
|
}
|
|
4953
4951
|
),
|
|
4954
4952
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
|
|
4955
|
-
!isStaticRow && hasBody && /* @__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,
|
|
4953
|
+
!isStaticRow && hasBody && /* @__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, _chunkBIYLAAFIcjs.ExpandChevron, { expanded: isExpanded }) })
|
|
4956
4954
|
] });
|
|
4957
4955
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4958
4956
|
"div",
|
|
@@ -4962,7 +4960,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4962
4960
|
// The command running block keeps its bordered box in both chats
|
|
4963
4961
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
4964
4962
|
"flex w-full flex-col overflow-hidden",
|
|
4965
|
-
|
|
4963
|
+
_chunkBIYLAAFIcjs.CHAT_BLOCK_FRAME_CLASS,
|
|
4966
4964
|
className
|
|
4967
4965
|
),
|
|
4968
4966
|
...props,
|
|
@@ -4973,14 +4971,14 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4973
4971
|
// It reads as a card: what was done, then one status line under it.
|
|
4974
4972
|
/* @__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: [
|
|
4975
4973
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
|
|
4976
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4974
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
4977
4975
|
] })
|
|
4978
4976
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4979
4977
|
hasBody ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "row", type: "button", "aria-expanded": expanded, onClick: () => setExpanded((prev) => !prev), children: headerContent }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-start gap-[var(--spacing-system-xs)] p-[var(--spacing-system-s)] text-left", children: headerContent }),
|
|
4980
4978
|
/* @__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: [
|
|
4981
|
-
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4979
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.ArgRow, { argKey: key, value }, key)),
|
|
4982
4980
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4983
|
-
|
|
4981
|
+
_chunkBIYLAAFIcjs.ResultBlock,
|
|
4984
4982
|
{
|
|
4985
4983
|
result: message.result,
|
|
4986
4984
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -5012,8 +5010,8 @@ ToolExecutionDisplay.displayName = "ToolExecutionDisplay";
|
|
|
5012
5010
|
|
|
5013
5011
|
// src/components/chat/chat-message-layout.ts
|
|
5014
5012
|
var CHAT_MESSAGE_ROW_PADDING_CLASS = {
|
|
5015
|
-
[
|
|
5016
|
-
[
|
|
5013
|
+
[_chunkZCMXBX4Zcjs.CHAT_APPEARANCE.CLASSIC]: "py-[var(--spacing-system-s)]",
|
|
5014
|
+
[_chunkZCMXBX4Zcjs.CHAT_APPEARANCE.V2]: "py-[calc(var(--spacing-system-m)/2)]"
|
|
5017
5015
|
};
|
|
5018
5016
|
var CHAT_MESSAGE_STACK_CLASS = "grid min-w-0 grid-cols-1 gap-[var(--spacing-system-xxs)]";
|
|
5019
5017
|
var CHAT_MESSAGE_HEADER_CLASS = "flex items-center gap-[var(--spacing-system-xs)]";
|
|
@@ -5054,8 +5052,8 @@ var remarkStripCitations = () => {
|
|
|
5054
5052
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
5055
5053
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
5056
5054
|
function formatMessageTimestamp(timestamp) {
|
|
5057
|
-
const time =
|
|
5058
|
-
return
|
|
5055
|
+
const time = _chunkZCMXBX4Zcjs.formatTime.call(void 0, timestamp);
|
|
5056
|
+
return _chunkBIYLAAFIcjs.isToday.call(void 0, timestamp) ? time : `${_chunkZCMXBX4Zcjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
5059
5057
|
}
|
|
5060
5058
|
function normalizeContent(content) {
|
|
5061
5059
|
if (typeof content === "string") {
|
|
@@ -5111,7 +5109,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5111
5109
|
const isError = role === "error";
|
|
5112
5110
|
const inheritedAppearance = useChatAppearance();
|
|
5113
5111
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
5114
|
-
const isV2 = appearance ===
|
|
5112
|
+
const isV2 = appearance === _chunkZCMXBX4Zcjs.CHAT_APPEARANCE.V2;
|
|
5115
5113
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isHuman ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
5116
5114
|
const isOtherPerson = isHuman && selfAuthorType !== void 0 && authorType !== "system" && authorType !== selfAuthorType;
|
|
5117
5115
|
const isUser = isHuman && !isOtherPerson;
|
|
@@ -5299,9 +5297,9 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5299
5297
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
5300
5298
|
const face = !showAvatar || isSystem ? null : !isHuman && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex items-center justify-center", faceBox), children: assistantIcon }) : !isHuman && !avatar && assistantType ? (
|
|
5301
5299
|
// An agent with no picture shows its packaged mark, never initials.
|
|
5302
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk6YZNUHXTcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5300
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk6YZNUHXTcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
|
|
5303
5301
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5304
|
-
|
|
5302
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
5305
5303
|
{
|
|
5306
5304
|
src: avatar || void 0,
|
|
5307
5305
|
alt: displayName,
|
|
@@ -5317,7 +5315,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5317
5315
|
"div",
|
|
5318
5316
|
{
|
|
5319
5317
|
ref,
|
|
5320
|
-
className: _chunk6YZNUHXTcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[
|
|
5318
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[_chunkZCMXBX4Zcjs.CHAT_APPEARANCE.V2], className),
|
|
5321
5319
|
...props,
|
|
5322
5320
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SystemEventMessage, { text: name, timestamp }) })
|
|
5323
5321
|
}
|
|
@@ -5329,7 +5327,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5329
5327
|
ref,
|
|
5330
5328
|
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
5331
5329
|
"relative",
|
|
5332
|
-
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ?
|
|
5330
|
+
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ? _chunkZCMXBX4Zcjs.CHAT_APPEARANCE.V2 : _chunkZCMXBX4Zcjs.CHAT_APPEARANCE.CLASSIC],
|
|
5333
5331
|
className
|
|
5334
5332
|
),
|
|
5335
5333
|
...props,
|
|
@@ -5386,7 +5384,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5386
5384
|
);
|
|
5387
5385
|
} else if (segment.type === "approval_batch") {
|
|
5388
5386
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5389
|
-
|
|
5387
|
+
_chunkBIYLAAFIcjs.ApprovalBatchMessage,
|
|
5390
5388
|
{
|
|
5391
5389
|
data: segment.data,
|
|
5392
5390
|
status: segment.status,
|
|
@@ -5472,12 +5470,12 @@ function ChatMessageSkeleton({
|
|
|
5472
5470
|
const lines = Math.max(1, bodyLines);
|
|
5473
5471
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[appearance], className), ..._chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CHAT_MESSAGE_STACK_CLASS, children: [
|
|
5474
5472
|
(showAvatar || showName) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, CHAT_MESSAGE_HEADER_CLASS, isUser && "justify-end"), children: [
|
|
5475
|
-
showAvatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5476
|
-
showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5477
|
-
showName && showTime && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5473
|
+
showAvatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VXMO4XJcjs.SquareAvatar, { loading: true, sizePx: CHAT_MESSAGE_FACE_PX, variant: "round" }),
|
|
5474
|
+
showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-24" }),
|
|
5475
|
+
showName && showTime && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: _chunk6YZNUHXTcjs.cn.call(void 0, "ml-auto", TIME_BAR_CLASS) })
|
|
5478
5476
|
] }),
|
|
5479
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHAT_MESSAGE_SEGMENTS_CLASS, children: isUser ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHAT_MESSAGE_USER_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, CHAT_MESSAGE_USER_BUBBLE_CLASS, "w-1/2"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5480
|
-
showTime && !showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5477
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHAT_MESSAGE_SEGMENTS_CLASS, children: isUser ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHAT_MESSAGE_USER_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, CHAT_MESSAGE_USER_BUBBLE_CLASS, "w-1/2"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", lines }) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHAT_MESSAGE_TEXT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", lines }) }) }),
|
|
5478
|
+
showTime && !showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: _chunk6YZNUHXTcjs.cn.call(void 0, TIME_BAR_CLASS, isUser && "justify-self-end") })
|
|
5481
5479
|
] }) });
|
|
5482
5480
|
}
|
|
5483
5481
|
var CHAT_MESSAGE_LIST_SKELETON_MESSAGES = 6;
|
|
@@ -5660,7 +5658,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5660
5658
|
approvalVariant,
|
|
5661
5659
|
selfAuthorType,
|
|
5662
5660
|
nameEveryTurn,
|
|
5663
|
-
appearance =
|
|
5661
|
+
appearance = _chunkZCMXBX4Zcjs.CHAT_APPEARANCE.CLASSIC,
|
|
5664
5662
|
assistantIcon,
|
|
5665
5663
|
pendingApprovals,
|
|
5666
5664
|
hasNextPage,
|
|
@@ -6698,7 +6696,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
6698
6696
|
|
|
6699
6697
|
[Attached: ${safeName}](${url})`;
|
|
6700
6698
|
}
|
|
6701
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
6699
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkOZIPPOSJcjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
6702
6700
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
6703
6701
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
6704
6702
|
"gm"
|
|
@@ -7537,7 +7535,7 @@ function MingoChatHistoryRow({
|
|
|
7537
7535
|
!loading && "cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent"
|
|
7538
7536
|
),
|
|
7539
7537
|
children: [
|
|
7540
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7538
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className: _chunkZCMXBX4Zcjs.SKELETON_TITLE_WIDTHS[skeletonIndex % _chunkZCMXBX4Zcjs.SKELETON_TITLE_WIDTHS.length] }) : null,
|
|
7541
7539
|
!loading && unread > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-8 min-w-8 shrink-0 items-center justify-center rounded-md bg-ods-accent px-[var(--spacing-system-xsf)] text-ods-text-on-accent text-h5", children: unread > 99 ? "99+" : unread }) : null,
|
|
7542
7540
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7543
7541
|
"span",
|
|
@@ -7607,7 +7605,7 @@ function MingoChatHistoryRow({
|
|
|
7607
7605
|
hasMenu && (menuOpen ? "pointer-events-none opacity-0" : "md:group-hover/row:pointer-events-none md:group-hover/row:opacity-0 md:peer-[:focus-within]/menu:pointer-events-none md:peer-[:focus-within]/menu:opacity-0")
|
|
7608
7606
|
),
|
|
7609
7607
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7610
|
-
|
|
7608
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
7611
7609
|
{
|
|
7612
7610
|
variant: "round",
|
|
7613
7611
|
sizePx: 24,
|
|
@@ -7638,7 +7636,7 @@ function MingoChatHistorySkeleton({ rows, className }) {
|
|
|
7638
7636
|
label: "Loading conversations",
|
|
7639
7637
|
className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-hidden", className),
|
|
7640
7638
|
children: groups.map((count, group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, HISTORY_GROUP_CLASS, "shrink-0"), children: [
|
|
7641
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7639
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h5", className: "w-16" }),
|
|
7642
7640
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HISTORY_GROUP_BOX_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count, children: (i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoChatHistoryRow, { loading: true, "data-loading-item": true, skeletonIndex: group * perGroup + i }) }) })
|
|
7643
7641
|
] }, group))
|
|
7644
7642
|
}
|
|
@@ -7663,7 +7661,7 @@ function MingoChatHistory({
|
|
|
7663
7661
|
const isLoading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || loading;
|
|
7664
7662
|
const groups = _react.useMemo.call(void 0, () => groupDialogs(dialogs), [dialogs]);
|
|
7665
7663
|
const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess', _167 => _167.trim, 'call', _168 => _168()]);
|
|
7666
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
7664
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkZCMXBX4Zcjs.useScrollFade.call(void 0, );
|
|
7667
7665
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
7668
7666
|
const onLoadMoreRef = _react.useRef.call(void 0, onLoadMore);
|
|
7669
7667
|
const isLoadingMoreRef = _react.useRef.call(void 0, isLoadingMore);
|
|
@@ -7728,8 +7726,8 @@ function MingoChatHistory({
|
|
|
7728
7726
|
]
|
|
7729
7727
|
}
|
|
7730
7728
|
),
|
|
7731
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7732
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7729
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, color: "var(--color-bg-card)", className: "h-12" }),
|
|
7730
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, color: "var(--color-bg-card)", className: "h-12" })
|
|
7733
7731
|
] }) });
|
|
7734
7732
|
}
|
|
7735
7733
|
|
|
@@ -7785,7 +7783,7 @@ function MingoWelcome({
|
|
|
7785
7783
|
} catch (e7) {
|
|
7786
7784
|
}
|
|
7787
7785
|
}, [promoStorage, promoStorageKey]);
|
|
7788
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
7786
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkZCMXBX4Zcjs.useScrollFade.call(void 0, );
|
|
7789
7787
|
const showPinnedRegion = !!dialogHistory || !historyLoading && !loadError;
|
|
7790
7788
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7791
7789
|
"div",
|
|
@@ -7817,7 +7815,7 @@ function MingoWelcome({
|
|
|
7817
7815
|
onScroll: updateScrollFade,
|
|
7818
7816
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
7819
7817
|
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: [
|
|
7820
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7818
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7821
7819
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7822
7820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
7823
7821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -7825,8 +7823,8 @@ function MingoWelcome({
|
|
|
7825
7823
|
] })
|
|
7826
7824
|
}
|
|
7827
7825
|
),
|
|
7828
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7829
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7826
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
7827
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
7830
7828
|
] }) })))),
|
|
7831
7829
|
showPinnedRegion && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col gap-[var(--spacing-system-m)]", children: [
|
|
7832
7830
|
resolvedPromo && !promoDismissed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex shrink-0 items-center gap-[var(--spacing-system-m)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-m)] pr-[var(--spacing-system-xl)]", children: [
|
|
@@ -7906,7 +7904,7 @@ function GuideWelcome({
|
|
|
7906
7904
|
children,
|
|
7907
7905
|
className
|
|
7908
7906
|
}) {
|
|
7909
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
7907
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkZCMXBX4Zcjs.useScrollFade.call(void 0, );
|
|
7910
7908
|
const subtitleIsLoading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || subtitleLoading && !subtitle;
|
|
7911
7909
|
const chipItems = _react.useMemo.call(void 0,
|
|
7912
7910
|
() => quickActions.map((action) => ({
|
|
@@ -7942,19 +7940,19 @@ function GuideWelcome({
|
|
|
7942
7940
|
icon && (icon.name || icon.url) ? (
|
|
7943
7941
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
7944
7942
|
// match the default Mingo mark (48px).
|
|
7945
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7946
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7943
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
7944
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7947
7945
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7948
7946
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
7949
|
-
subtitleIsLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7947
|
+
subtitleIsLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className: "w-3/4 max-w-80" }) }) : subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle }) : null
|
|
7950
7948
|
] })
|
|
7951
7949
|
] }),
|
|
7952
7950
|
children
|
|
7953
7951
|
]
|
|
7954
7952
|
}
|
|
7955
7953
|
),
|
|
7956
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7957
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7954
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
7955
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
7958
7956
|
] }),
|
|
7959
7957
|
quickActions.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7960
7958
|
QuickActionWall,
|
|
@@ -8038,17 +8036,17 @@ function MingoArchiveList({
|
|
|
8038
8036
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] px-[var(--spacing-system-xs)] pt-[var(--spacing-system-mf)]",
|
|
8039
8037
|
children: [
|
|
8040
8038
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "shrink-0 px-[var(--spacing-system-xs)] pt-[var(--spacing-system-xs)] text-ods-text-secondary text-h5", children: "Archived Chats" }),
|
|
8041
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] overflow-y-auto overscroll-contain pb-[var(--spacing-system-mf)]", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8039
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] overflow-y-auto overscroll-contain pb-[var(--spacing-system-mf)]", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ChatListItemLoadingPage, { count: pageSize, trailing: true }) : dialogs.length > 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8042
8040
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8043
|
-
|
|
8041
|
+
_chunkZCMXBX4Zcjs.ChatListItem,
|
|
8044
8042
|
{
|
|
8045
8043
|
"data-loading-item": true,
|
|
8046
8044
|
title: dialog.title || "Untitled Chat",
|
|
8047
8045
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _179 => _179(dialog.id)]),
|
|
8048
8046
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
8049
|
-
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children:
|
|
8047
|
+
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkBIYLAAFIcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
8050
8048
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8051
|
-
|
|
8049
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
8052
8050
|
{
|
|
8053
8051
|
variant: "round",
|
|
8054
8052
|
sizePx: 24,
|
|
@@ -8112,7 +8110,7 @@ function MingoChatHeader({
|
|
|
8112
8110
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
8113
8111
|
] }),
|
|
8114
8112
|
avatar && (avatar.name || avatar.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8115
|
-
|
|
8113
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
8116
8114
|
{
|
|
8117
8115
|
variant: "round",
|
|
8118
8116
|
sizePx: 32,
|
|
@@ -8351,7 +8349,7 @@ function MingoChatRail({
|
|
|
8351
8349
|
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "outline", size: "small", leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXLTOM62Pcjs.Refresh01RightIcon, {}), onClick: onRetry, children: "Try again" })
|
|
8352
8350
|
] });
|
|
8353
8351
|
} else if (loading) {
|
|
8354
|
-
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8352
|
+
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ChatListItemLoadingPage, { count: pageSize });
|
|
8355
8353
|
} else if (dialogs.length === 0 && !draftTitle) {
|
|
8356
8354
|
list = hasSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "px-[var(--spacing-system-xs)] py-[var(--spacing-system-s)] text-ods-text-secondary text-h6", children: "No chats found" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8357
8355
|
ChatListEmptyState,
|
|
@@ -8363,7 +8361,7 @@ function MingoChatRail({
|
|
|
8363
8361
|
);
|
|
8364
8362
|
} else {
|
|
8365
8363
|
list = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8366
|
-
draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8364
|
+
draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ChatListItem, { active: true, title: draftTitle, tabIndex: -1, className: "cursor-default" }),
|
|
8367
8365
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8368
8366
|
MingoChatRailRow,
|
|
8369
8367
|
{
|
|
@@ -8385,13 +8383,13 @@ function MingoChatRail({
|
|
|
8385
8383
|
] });
|
|
8386
8384
|
}
|
|
8387
8385
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8388
|
-
|
|
8386
|
+
_chunkZCMXBX4Zcjs.ChatNavSidebar,
|
|
8389
8387
|
{
|
|
8390
8388
|
className,
|
|
8391
8389
|
"data-accent": "mingo",
|
|
8392
8390
|
"aria-label": "Mingo chats",
|
|
8393
8391
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
8394
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8392
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
8395
8393
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8396
8394
|
_chunkK7I3YYYUcjs.Button,
|
|
8397
8395
|
{
|
|
@@ -8444,7 +8442,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
8444
8442
|
const title = dialog.title || "Untitled Chat";
|
|
8445
8443
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ..._chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props), className: "group/row relative shrink-0", children: [
|
|
8446
8444
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8447
|
-
|
|
8445
|
+
_chunkZCMXBX4Zcjs.ChatListItem,
|
|
8448
8446
|
{
|
|
8449
8447
|
active,
|
|
8450
8448
|
title,
|
|
@@ -8667,8 +8665,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8667
8665
|
const save = () => {
|
|
8668
8666
|
if (canSave) onSave(name.trim());
|
|
8669
8667
|
};
|
|
8670
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8671
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8668
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8669
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
8672
8670
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
8673
8671
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJRTDBPJTcjs.Label, { htmlFor: "rename-chat-input", variant: "large", children: "Chat Name" }),
|
|
8674
8672
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8685,27 +8683,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8685
8683
|
}
|
|
8686
8684
|
)
|
|
8687
8685
|
] }),
|
|
8688
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8686
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.ModalFooter, { children: [
|
|
8689
8687
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8690
8688
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "accent", type: "button", onClick: save, disabled: !canSave, className: footerBtn, children: "Save" })
|
|
8691
8689
|
] })
|
|
8692
8690
|
] });
|
|
8693
8691
|
}
|
|
8694
8692
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8695
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8696
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8693
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8694
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
8697
8695
|
/* @__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." }),
|
|
8698
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8696
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.ModalFooter, { children: [
|
|
8699
8697
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8700
8698
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "destructive", type: "button", onClick: onConfirm, className: footerBtn, children: "Archive Chat" })
|
|
8701
8699
|
] })
|
|
8702
8700
|
] });
|
|
8703
8701
|
}
|
|
8704
8702
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8705
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8706
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8703
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8704
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
8707
8705
|
/* @__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." }),
|
|
8708
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8706
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.ModalFooter, { children: [
|
|
8709
8707
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8710
8708
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "accent", type: "button", onClick: onConfirm, className: footerBtn, children: "Unarchive Chat" })
|
|
8711
8709
|
] })
|
|
@@ -8878,7 +8876,7 @@ function ChatPanelHeader({
|
|
|
8878
8876
|
avatar && (avatar.name || avatar.avatarUrl) ? (
|
|
8879
8877
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
8880
8878
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8881
|
-
|
|
8879
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
8882
8880
|
{
|
|
8883
8881
|
variant: "round",
|
|
8884
8882
|
sizePx: 32,
|
|
@@ -9046,8 +9044,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
9046
9044
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
|
|
9047
9045
|
(!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
|
|
9048
9046
|
status === "sniffing" && "Checking the file",
|
|
9049
|
-
status === "uploading" && `${progress}% \xB7 ${
|
|
9050
|
-
status === "ready" &&
|
|
9047
|
+
status === "uploading" && `${progress}% \xB7 ${_chunk7VXMO4XJcjs.formatFileSize.call(void 0, file.size)}`,
|
|
9048
|
+
status === "ready" && _chunk7VXMO4XJcjs.formatFileSize.call(void 0, file.size),
|
|
9051
9049
|
status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
|
|
9052
9050
|
] })
|
|
9053
9051
|
] }),
|
|
@@ -9299,13 +9297,13 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9299
9297
|
const isLoading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || loading;
|
|
9300
9298
|
const icon = getProviderIcon(provider);
|
|
9301
9299
|
const name = displayName || modelName;
|
|
9302
|
-
const isV2 = useChatAppearance() ===
|
|
9300
|
+
const isV2 = useChatAppearance() === _chunkZCMXBX4Zcjs.CHAT_APPEARANCE.V2;
|
|
9303
9301
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
9304
9302
|
if (isLoading) {
|
|
9305
9303
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, "aria-hidden": true, className: _chunk6YZNUHXTcjs.cn.call(void 0, MODEL_DISPLAY_ROW_CLASS, className), ...props, children: [
|
|
9306
|
-
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: PROVIDER_ICON_BOX_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9307
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9308
|
-
contextWindow != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9304
|
+
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: PROVIDER_ICON_BOX_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.MediaSkeleton.Icon, { size: "sm" }) }),
|
|
9305
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-24" }),
|
|
9306
|
+
contextWindow != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "ml-auto w-32" })
|
|
9309
9307
|
] });
|
|
9310
9308
|
}
|
|
9311
9309
|
const inline = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk6YZNUHXTcjs.cn.call(void 0, MODEL_DISPLAY_ROW_CLASS, "text-ods-text-secondary", className), ...props, children: [
|
|
@@ -9427,7 +9425,7 @@ function ChatComposer({
|
|
|
9427
9425
|
}, [entityTypes]);
|
|
9428
9426
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
9429
9427
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9430
|
-
|
|
9428
|
+
_chunkZCMXBX4Zcjs.ChatInput,
|
|
9431
9429
|
{
|
|
9432
9430
|
ref: inputRef,
|
|
9433
9431
|
onSend,
|
|
@@ -9597,16 +9595,16 @@ function ChatArchivePage(props) {
|
|
|
9597
9595
|
|
|
9598
9596
|
// src/components/chat/utils/execute-navigation.ts
|
|
9599
9597
|
function isForeignOriginHref(href) {
|
|
9600
|
-
return /^https?:\/\//i.test(href) && !
|
|
9598
|
+
return /^https?:\/\//i.test(href) && !_chunkC5EPWKM7cjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
9601
9599
|
}
|
|
9602
9600
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
9603
|
-
const isNewTab = runtime ?
|
|
9601
|
+
const isNewTab = runtime ? _chunkC5EPWKM7cjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
9604
9602
|
if (isNewTab) {
|
|
9605
9603
|
if (_optionalChain([runtime, 'optionalAccess', _205 => _205.navigation, 'access', _206 => _206.openExternal])) runtime.navigation.openExternal(href);
|
|
9606
|
-
else window.open(href, "_blank",
|
|
9604
|
+
else window.open(href, "_blank", _chunkOZIPPOSJcjs.NEW_TAB_FEATURES);
|
|
9607
9605
|
return;
|
|
9608
9606
|
}
|
|
9609
|
-
const target = isForeignOriginHref(href) ? href :
|
|
9607
|
+
const target = isForeignOriginHref(href) ? href : _chunkOZIPPOSJcjs.stripSameOriginToPath.call(void 0, href);
|
|
9610
9608
|
if (target.includes("#") && _chunkOJZBZH56cjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX })) {
|
|
9611
9609
|
return;
|
|
9612
9610
|
}
|
|
@@ -9657,8 +9655,8 @@ function useNavLinkViaRuntime({
|
|
|
9657
9655
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
9658
9656
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
9659
9657
|
const panel = useChatPanel();
|
|
9660
|
-
const resolvedHref =
|
|
9661
|
-
const isNewTab =
|
|
9658
|
+
const resolvedHref = _chunkOZIPPOSJcjs.resolveHrefForRuntime.call(void 0, href, runtime);
|
|
9659
|
+
const isNewTab = _chunkC5EPWKM7cjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
9662
9660
|
const onClick = (e) => {
|
|
9663
9661
|
_optionalChain([onClickProp, 'optionalCall', _210 => _210(e)]);
|
|
9664
9662
|
if (e.defaultPrevented) return;
|
|
@@ -9672,7 +9670,7 @@ function useNavLinkViaRuntime({
|
|
|
9672
9670
|
});
|
|
9673
9671
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _211 => _211.closeChat])) panel.closeChat();
|
|
9674
9672
|
};
|
|
9675
|
-
const attrs =
|
|
9673
|
+
const attrs = _chunkC5EPWKM7cjs.newTabAnchorAttrs.call(void 0, isNewTab);
|
|
9676
9674
|
return {
|
|
9677
9675
|
href: resolvedHref,
|
|
9678
9676
|
...attrs,
|
|
@@ -9817,7 +9815,7 @@ function UserDisplay({
|
|
|
9817
9815
|
compact = false,
|
|
9818
9816
|
className
|
|
9819
9817
|
}) {
|
|
9820
|
-
const avatarSrc =
|
|
9818
|
+
const avatarSrc = _chunkOZIPPOSJcjs.useProxiedImageUrl.call(void 0, avatarUrl);
|
|
9821
9819
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) {
|
|
9822
9820
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9823
9821
|
UserDisplaySkeleton,
|
|
@@ -9831,7 +9829,7 @@ function UserDisplay({
|
|
|
9831
9829
|
);
|
|
9832
9830
|
}
|
|
9833
9831
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, USER_ROW_CLASS, className), children: [
|
|
9834
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9832
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VXMO4XJcjs.SquareAvatar, { src: avatarSrc || void 0, fallback: name, alt: name, sizePx: size, variant: shape }),
|
|
9835
9833
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: USER_TEXT_CLASS, children: [
|
|
9836
9834
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "truncate text-ods-text-primary", compact ? "text-h6" : "text-h4"), children: name }),
|
|
9837
9835
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
@@ -9846,10 +9844,10 @@ function UserDisplaySkeleton({
|
|
|
9846
9844
|
className
|
|
9847
9845
|
}) {
|
|
9848
9846
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, USER_ROW_CLASS, className), "aria-hidden": true, children: [
|
|
9849
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9847
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VXMO4XJcjs.SquareAvatar, { loading: true, sizePx: size, variant: shape }),
|
|
9850
9848
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: USER_TEXT_CLASS, children: [
|
|
9851
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9852
|
-
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9849
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: compact ? "h6" : "h4", className: "w-28" }),
|
|
9850
|
+
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-16" })
|
|
9853
9851
|
] })
|
|
9854
9852
|
] });
|
|
9855
9853
|
}
|
|
@@ -10237,7 +10235,10 @@ function CardsStrip(props) {
|
|
|
10237
10235
|
if (marqueeActiveRef.current) {
|
|
10238
10236
|
glideBy((reverse ? -dir : dir) * step);
|
|
10239
10237
|
} else {
|
|
10240
|
-
|
|
10238
|
+
const maxScroll = scroller.scrollWidth - scroller.clientWidth;
|
|
10239
|
+
if (dir === 1 && scroller.scrollLeft >= maxScroll - 1) scroller.scrollTo({ left: 0, behavior: "smooth" });
|
|
10240
|
+
else if (dir === -1 && scroller.scrollLeft <= 1) scroller.scrollTo({ left: maxScroll, behavior: "smooth" });
|
|
10241
|
+
else scroller.scrollBy({ left: dir * step, behavior: "smooth" });
|
|
10241
10242
|
}
|
|
10242
10243
|
},
|
|
10243
10244
|
[glideBy, reverse]
|
|
@@ -10282,7 +10283,7 @@ function CardsStrip(props) {
|
|
|
10282
10283
|
}
|
|
10283
10284
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ManagedCell, { item, ctx, cardWidthMobile, cardWidthDesktop });
|
|
10284
10285
|
};
|
|
10285
|
-
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10286
|
+
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkOZIPPOSJcjs.SECTION_HEADING_CLASS} break-words`, children: _chunkOZIPPOSJcjs.accentSentenceMarks.call(void 0, title) });
|
|
10286
10287
|
if (items.length === 0) {
|
|
10287
10288
|
if (!inScope || !skeleton) return null;
|
|
10288
10289
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, STRIP_ROOT_CLASS, className), children: [
|
|
@@ -10472,7 +10473,7 @@ var VIDEO_BITES_SKELETON_COUNT = Math.ceil(
|
|
|
10472
10473
|
);
|
|
10473
10474
|
function VideoBitesStrip({
|
|
10474
10475
|
bites,
|
|
10475
|
-
title =
|
|
10476
|
+
title = _chunkC5EPWKM7cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10476
10477
|
showTitle = true,
|
|
10477
10478
|
filterPublished = true,
|
|
10478
10479
|
profile = null,
|
|
@@ -10485,7 +10486,7 @@ function VideoBitesStrip({
|
|
|
10485
10486
|
cardHeightMobile = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX,
|
|
10486
10487
|
showChevrons = true,
|
|
10487
10488
|
onBiteNavigate,
|
|
10488
|
-
sortComparator =
|
|
10489
|
+
sortComparator = _chunkC5EPWKM7cjs.sortBitesByCreatedAtDesc,
|
|
10489
10490
|
skeletonCount,
|
|
10490
10491
|
className
|
|
10491
10492
|
}) {
|
|
@@ -10574,7 +10575,7 @@ function VideoBiteCardSkeleton({ aspect = "9:16", height, heightMobile, classNam
|
|
|
10574
10575
|
{
|
|
10575
10576
|
className: _chunk6YZNUHXTcjs.cn.call(void 0, BITE_MEDIA_CLASS, height !== void 0 && BITE_MEDIA_FIXED_HEIGHT_CLASS),
|
|
10576
10577
|
style: biteMediaStyle(cssAspect, height, heightMobile),
|
|
10577
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10578
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "absolute inset-0 h-full rounded-none" })
|
|
10578
10579
|
}
|
|
10579
10580
|
)
|
|
10580
10581
|
}
|
|
@@ -10583,7 +10584,7 @@ function VideoBiteCardSkeleton({ aspect = "9:16", height, heightMobile, classNam
|
|
|
10583
10584
|
function VideoBitesStripSkeleton({
|
|
10584
10585
|
count = VIDEO_BITES_SKELETON_COUNT,
|
|
10585
10586
|
aspect = "9:16",
|
|
10586
|
-
title =
|
|
10587
|
+
title = _chunkC5EPWKM7cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10587
10588
|
showTitle = true,
|
|
10588
10589
|
headerSlot,
|
|
10589
10590
|
cardHeightDesktop = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX,
|
|
@@ -10715,7 +10716,7 @@ function VideoBiteCard({
|
|
|
10715
10716
|
style: biteMediaStyle(cssAspect, height, heightMobile),
|
|
10716
10717
|
children: [
|
|
10717
10718
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10718
|
-
|
|
10719
|
+
_chunkC5EPWKM7cjs.VideoHoverPreviewSurface,
|
|
10719
10720
|
{
|
|
10720
10721
|
url: bite.url,
|
|
10721
10722
|
posterUrl: bite.thumbnail_url,
|
|
@@ -10787,7 +10788,7 @@ function EntityVideoSection({
|
|
|
10787
10788
|
title = "Video",
|
|
10788
10789
|
videoSummary,
|
|
10789
10790
|
videoBites,
|
|
10790
|
-
bitesTitle =
|
|
10791
|
+
bitesTitle = _chunkC5EPWKM7cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10791
10792
|
filterPublishedBites = true,
|
|
10792
10793
|
bitesProfile = null,
|
|
10793
10794
|
bitesHref,
|
|
@@ -10822,7 +10823,7 @@ function EntityVideoSection({
|
|
|
10822
10823
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
10823
10824
|
] }),
|
|
10824
10825
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10825
|
-
|
|
10826
|
+
_chunkC5EPWKM7cjs.Video,
|
|
10826
10827
|
{
|
|
10827
10828
|
kind: fullVideoKind,
|
|
10828
10829
|
url: fullVideoUrl,
|
|
@@ -10834,7 +10835,7 @@ function EntityVideoSection({
|
|
|
10834
10835
|
}
|
|
10835
10836
|
) }),
|
|
10836
10837
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10837
|
-
|
|
10838
|
+
_chunkC5EPWKM7cjs.Video,
|
|
10838
10839
|
{
|
|
10839
10840
|
url: highlightVideoUrl,
|
|
10840
10841
|
poster: highlightVideoThumbnail,
|
|
@@ -10843,7 +10844,7 @@ function EntityVideoSection({
|
|
|
10843
10844
|
}
|
|
10844
10845
|
) })
|
|
10845
10846
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10846
|
-
|
|
10847
|
+
_chunkC5EPWKM7cjs.Video,
|
|
10847
10848
|
{
|
|
10848
10849
|
kind: fullVideoKind,
|
|
10849
10850
|
url: fullVideoUrl,
|
|
@@ -10854,7 +10855,7 @@ function EntityVideoSection({
|
|
|
10854
10855
|
priority
|
|
10855
10856
|
}
|
|
10856
10857
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10857
|
-
|
|
10858
|
+
_chunkC5EPWKM7cjs.Video,
|
|
10858
10859
|
{
|
|
10859
10860
|
url: highlightVideoUrl,
|
|
10860
10861
|
poster: highlightVideoThumbnail,
|
|
@@ -10864,7 +10865,7 @@ function EntityVideoSection({
|
|
|
10864
10865
|
}
|
|
10865
10866
|
) : null),
|
|
10866
10867
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
10867
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10868
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkOZIPPOSJcjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
10868
10869
|
/* @__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 }) })
|
|
10869
10870
|
] }),
|
|
10870
10871
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10883,13 +10884,13 @@ function EntityVideoSection({
|
|
|
10883
10884
|
] });
|
|
10884
10885
|
}
|
|
10885
10886
|
function EntityVideoSectionSkeleton({ tabs = false, className }) {
|
|
10886
|
-
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10887
|
+
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.Video, { loading: true, url: "", layout: "centered", className });
|
|
10887
10888
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tabs, { defaultValue: "full-video", className: _chunk6YZNUHXTcjs.cn.call(void 0, "w-full", className), "aria-hidden": true, inert: true, children: [
|
|
10888
10889
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TabsList, { className: VIDEO_TAB_LIST_CLASS, children: [
|
|
10889
10890
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "full-video", className: VIDEO_TAB_TRIGGER_CLASS, children: FULL_VIDEO_TAB_LABEL }),
|
|
10890
10891
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
10891
10892
|
] }),
|
|
10892
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10893
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.Video, { loading: true, url: "", layout: "centered" }) })
|
|
10893
10894
|
] });
|
|
10894
10895
|
}
|
|
10895
10896
|
|
|
@@ -10936,37 +10937,37 @@ function designDocPeople(doc) {
|
|
|
10936
10937
|
return people;
|
|
10937
10938
|
}
|
|
10938
10939
|
function designDocMetaLine(doc) {
|
|
10939
|
-
return [_optionalChain([doc, 'access', _246 => _246.author, 'optionalAccess', _247 => _247.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
10940
|
+
return [_optionalChain([doc, 'access', _246 => _246.author, 'optionalAccess', _247 => _247.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkOZIPPOSJcjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
10940
10941
|
}
|
|
10941
10942
|
var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
|
|
10942
10943
|
var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
|
|
10943
10944
|
var DESIGN_DOC_CARD_HEADING = "flex min-w-0 flex-1 flex-col";
|
|
10944
|
-
var DESIGN_DOC_CARD_TITLE_ROW = `flex items-center text-h3 ${
|
|
10945
|
-
var DESIGN_DOC_CARD_META_ROW = `flex items-center text-h5 ${
|
|
10946
|
-
var DESIGN_DOC_CARD_SUMMARY_ROW = `flex items-center text-h4 ${
|
|
10945
|
+
var DESIGN_DOC_CARD_TITLE_ROW = `flex items-center text-h3 ${_chunkAT4C2YMAcjs.TEXT_LINES_MIN[2]}`;
|
|
10946
|
+
var DESIGN_DOC_CARD_META_ROW = `flex items-center text-h5 ${_chunkAT4C2YMAcjs.TEXT_LINES_MIN[1]}`;
|
|
10947
|
+
var DESIGN_DOC_CARD_SUMMARY_ROW = `flex items-center text-h4 ${_chunkAT4C2YMAcjs.TEXT_LINES_MIN[3]}`;
|
|
10947
10948
|
var DESIGN_DOC_CARD_FOOTER = "flex w-full items-center justify-between gap-2";
|
|
10948
10949
|
function DesignDocCardSkeleton({ className } = {}) {
|
|
10949
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
10950
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, _chunkC5EPWKM7cjs.CONTENT_CARD_SKELETON_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className), "aria-hidden": true, children: [
|
|
10950
10951
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
10951
10952
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADING, children: [
|
|
10952
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10953
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10953
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h3", lines: 2, className: "w-3/4" }) }),
|
|
10954
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h5", className: "w-1/3" }) })
|
|
10954
10955
|
] }),
|
|
10955
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10956
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.StatusBadge, { loading: true, text: "", variant: "button", className: "hidden md:inline-flex" })
|
|
10956
10957
|
] }),
|
|
10957
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10958
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10958
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.StatusBadge, { loading: true, text: "", variant: "button" }) }),
|
|
10959
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", lines: 3, className: "w-full" }) }),
|
|
10959
10960
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
10960
10961
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
10961
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10962
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10962
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" }),
|
|
10963
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk72NE4G63cjs.AvatarStack, { loading: true, people: [], max: 1, size: "xs", className: "shrink-0" })
|
|
10963
10964
|
] })
|
|
10964
10965
|
] });
|
|
10965
10966
|
}
|
|
10966
10967
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
10967
10968
|
const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
|
|
10968
10969
|
const people = designDocPeople(doc);
|
|
10969
|
-
const link =
|
|
10970
|
+
const link = _chunkC5EPWKM7cjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
10970
10971
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocCardSkeleton, { className });
|
|
10971
10972
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10972
10973
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
@@ -10975,7 +10976,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
10975
10976
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h5", children: designDocMetaLine(doc) }) })
|
|
10976
10977
|
] }),
|
|
10977
10978
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10978
|
-
|
|
10979
|
+
_chunkC5EPWKM7cjs.StatusBadge,
|
|
10979
10980
|
{
|
|
10980
10981
|
text: readiness.label,
|
|
10981
10982
|
colorScheme: readiness.scheme,
|
|
@@ -10985,15 +10986,15 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
10985
10986
|
}
|
|
10986
10987
|
)
|
|
10987
10988
|
] }),
|
|
10988
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10989
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
|
|
10989
10990
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 text-ods-text-secondary text-h4", children: doc.summary || "" }) }),
|
|
10990
10991
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
10991
10992
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
10992
10993
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: formatCompletionLabelWithBlockers(doc.completion) }),
|
|
10993
|
-
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10994
|
+
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk72NE4G63cjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
10994
10995
|
] })
|
|
10995
10996
|
] });
|
|
10996
|
-
const outer = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
10997
|
+
const outer = _chunk6YZNUHXTcjs.cn.call(void 0, _chunkC5EPWKM7cjs.CONTENT_CARD_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className);
|
|
10997
10998
|
return link ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href: link, target, rel, className: outer, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: outer, children: body });
|
|
10998
10999
|
}
|
|
10999
11000
|
|
|
@@ -11101,7 +11102,7 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11101
11102
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GitHubActivityCardSkeleton, { variant, className });
|
|
11102
11103
|
const kind = _nullishCoalesce(item.kind, () => ( "commit"));
|
|
11103
11104
|
const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
|
|
11104
|
-
const dateText =
|
|
11105
|
+
const dateText = _chunk7VXMO4XJcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
11105
11106
|
const idLabel = formatActivityId(item.id, kind);
|
|
11106
11107
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
11107
11108
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
@@ -11135,26 +11136,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11135
11136
|
metaParts.push(
|
|
11136
11137
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
11137
11138
|
);
|
|
11138
|
-
const href =
|
|
11139
|
+
const href = _chunkC5EPWKM7cjs.safeHref.call(void 0, item.url);
|
|
11139
11140
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11140
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11141
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11142
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11141
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
11142
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11143
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
11143
11144
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
11144
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11145
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
11145
11146
|
] }),
|
|
11146
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11147
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
11147
11148
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
11148
11149
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
11149
11150
|
] }, i)) }) }),
|
|
11150
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11151
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_SUMMARY, children: _chunkC5EPWKM7cjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11151
11152
|
] }),
|
|
11152
11153
|
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
|
|
11153
11154
|
] });
|
|
11154
11155
|
if (anchorProps) {
|
|
11155
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11156
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
11156
11157
|
}
|
|
11157
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
11158
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
11158
11159
|
}
|
|
11159
11160
|
function GitHubActivityCardSkeleton({
|
|
11160
11161
|
variant = "compact",
|
|
@@ -11162,18 +11163,18 @@ function GitHubActivityCardSkeleton({
|
|
|
11162
11163
|
}) {
|
|
11163
11164
|
if (variant === "row") {
|
|
11164
11165
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11165
|
-
|
|
11166
|
+
_chunkC5EPWKM7cjs.ActivityRowSkeleton,
|
|
11166
11167
|
{
|
|
11167
11168
|
lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-28 shrink-0 items-center gap-2", children: [
|
|
11168
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11169
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11169
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 rounded" }),
|
|
11170
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "h-3 w-16 rounded" })
|
|
11170
11171
|
] }),
|
|
11171
11172
|
trailingWidths: ["w-40", "w-20"],
|
|
11172
11173
|
className
|
|
11173
11174
|
}
|
|
11174
11175
|
);
|
|
11175
11176
|
}
|
|
11176
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11177
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.CompactCardSkeleton, { titleWidth: "w-2/3", rows: [{ width: "w-1/2" }, {}], trailingIcon: true, className });
|
|
11177
11178
|
}
|
|
11178
11179
|
|
|
11179
11180
|
// src/utils/url-fix.ts
|
|
@@ -11249,7 +11250,7 @@ function VendorIconSkeleton({
|
|
|
11249
11250
|
...props
|
|
11250
11251
|
}) {
|
|
11251
11252
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11252
|
-
|
|
11253
|
+
_chunkAT4C2YMAcjs.UnifiedSkeleton,
|
|
11253
11254
|
{
|
|
11254
11255
|
className: _chunk6YZNUHXTcjs.cn.call(void 0, sizeClasses[size], "flex-shrink-0 rounded-lg", className),
|
|
11255
11256
|
..._chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props)
|
|
@@ -11267,7 +11268,7 @@ function VendorIcon({
|
|
|
11267
11268
|
}) {
|
|
11268
11269
|
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || !!loadingProp;
|
|
11269
11270
|
const logoUrl = getVendorLogo(vendor);
|
|
11270
|
-
const logoSrc =
|
|
11271
|
+
const logoSrc = _chunkOZIPPOSJcjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
|
|
11271
11272
|
const { width, height } = showBackground ? imageSizeMap[size] : { width: tilePxMap[size], height: tilePxMap[size] };
|
|
11272
11273
|
const containerClasses = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
11273
11274
|
sizeClasses[size],
|
|
@@ -11279,7 +11280,7 @@ function VendorIcon({
|
|
|
11279
11280
|
const markers = _chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props);
|
|
11280
11281
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIconSkeleton, { size, className, ...markers });
|
|
11281
11282
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: containerClasses, ...markers, children: logoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11282
|
-
|
|
11283
|
+
_chunkDRWPSN3Acjs.next_image_default,
|
|
11283
11284
|
{
|
|
11284
11285
|
src: logoSrc,
|
|
11285
11286
|
alt: `${vendor.title} logo`,
|
|
@@ -11311,8 +11312,8 @@ function useChatCardItem(type, id) {
|
|
|
11311
11312
|
const res = await _chunk5GJM7VRRcjs.embedAuthedFetch.call(void 0, url);
|
|
11312
11313
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
11313
11314
|
const data = await res.json();
|
|
11314
|
-
const items =
|
|
11315
|
-
const match = items.find((it) =>
|
|
11315
|
+
const items = _chunkOZIPPOSJcjs.extractCardItems.call(void 0, type, data);
|
|
11316
|
+
const match = items.find((it) => _chunkOZIPPOSJcjs.extractItemId.call(void 0, type, it) === id);
|
|
11316
11317
|
return _nullishCoalesce(match, () => ( null));
|
|
11317
11318
|
},
|
|
11318
11319
|
enabled: !!url && id.length > 0,
|
|
@@ -11354,9 +11355,9 @@ var TRAILING_CELL_LAYOUT = "w-[56px] md:w-[68px]";
|
|
|
11354
11355
|
function CardMedia({ imageSrc, imageAlt, icon }) {
|
|
11355
11356
|
if (imageSrc) {
|
|
11356
11357
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
|
|
11357
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute inset-0 flex items-center justify-center rounded-sm border border-ods-border bg-ods-bg text-ods-text-primary text-h6", children:
|
|
11358
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute inset-0 flex items-center justify-center rounded-sm border border-ods-border bg-ods-bg text-ods-text-primary text-h6", children: _chunk7VXMO4XJcjs.personInitials.call(void 0, imageAlt) || "?" }),
|
|
11358
11359
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11359
|
-
|
|
11360
|
+
_chunkDRWPSN3Acjs.next_image_default,
|
|
11360
11361
|
{
|
|
11361
11362
|
src: imageSrc,
|
|
11362
11363
|
alt: imageAlt || "",
|
|
@@ -11386,12 +11387,12 @@ function MingoInfoCardSkeleton({ className }) {
|
|
|
11386
11387
|
className
|
|
11387
11388
|
),
|
|
11388
11389
|
children: [
|
|
11389
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11390
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { as: "span", className: "block size-10 shrink-0 rounded-md border border-ods-border" }),
|
|
11390
11391
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-1 flex-col justify-center gap-1.5", children: [
|
|
11391
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11392
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11392
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { as: "span", className: "block h-4 w-1/2 rounded" }),
|
|
11393
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { as: "span", className: "block h-3 w-3/4 rounded" })
|
|
11393
11394
|
] }),
|
|
11394
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11395
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { as: "span", className: "block h-5 w-16 shrink-0 rounded" })
|
|
11395
11396
|
]
|
|
11396
11397
|
}
|
|
11397
11398
|
);
|
|
@@ -11426,7 +11427,7 @@ function MingoInfoCard({
|
|
|
11426
11427
|
status ? (
|
|
11427
11428
|
// Reuse the shared Tag palette (single source of truth for colours)
|
|
11428
11429
|
// without rendering Tag's `<div>` — span-only for `<p>` validity.
|
|
11429
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
11430
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6YZNUHXTcjs.cn.call(void 0, _chunk7VXMO4XJcjs.tagVariants.call(void 0, { variant: _nullishCoalesce(status.variant, () => ( "success")) }), "shrink-0"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate uppercase tracking-[-0.28px]", children: status.label }) })
|
|
11430
11431
|
) : null
|
|
11431
11432
|
] });
|
|
11432
11433
|
const contentClass = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
@@ -11518,7 +11519,7 @@ function resolveFetchedCardHref({
|
|
|
11518
11519
|
composeContentUrl
|
|
11519
11520
|
}) {
|
|
11520
11521
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
11521
|
-
const canonicalType =
|
|
11522
|
+
const canonicalType = _chunkOZIPPOSJcjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
11522
11523
|
return composeContentUrl({
|
|
11523
11524
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
11524
11525
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -11568,16 +11569,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11568
11569
|
if (docTarget) {
|
|
11569
11570
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
11570
11571
|
const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
11571
|
-
href = _nullishCoalesce(
|
|
11572
|
+
href = _nullishCoalesce(_chunkC5EPWKM7cjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11572
11573
|
targetPlatform = docTarget.platform;
|
|
11573
11574
|
} else if (ctx.chipBasePlatform) {
|
|
11574
11575
|
const base = `${getPlatformUrl(ctx.chipBasePlatform)}/knowledge-base/`;
|
|
11575
|
-
href = _nullishCoalesce(
|
|
11576
|
+
href = _nullishCoalesce(_chunkC5EPWKM7cjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11576
11577
|
targetPlatform = ctx.chipBasePlatform;
|
|
11577
11578
|
} else if (ctx.baseRoute) {
|
|
11578
11579
|
const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
|
|
11579
11580
|
const absolute = new URL(safePath, synthetic).toString();
|
|
11580
|
-
href = _nullishCoalesce(
|
|
11581
|
+
href = _nullishCoalesce(_chunkC5EPWKM7cjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
|
|
11581
11582
|
targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
|
|
11582
11583
|
}
|
|
11583
11584
|
}
|
|
@@ -11586,15 +11587,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11586
11587
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
11587
11588
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
11588
11589
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
11589
|
-
type:
|
|
11590
|
+
type: _chunkOZIPPOSJcjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
11590
11591
|
identifier: idValue,
|
|
11591
11592
|
externalUrl: row.externalUrl,
|
|
11592
11593
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
11593
11594
|
});
|
|
11594
|
-
href = composed.href ? _nullishCoalesce(
|
|
11595
|
+
href = composed.href ? _nullishCoalesce(_chunkC5EPWKM7cjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
11595
11596
|
targetPlatform = composed.targetPlatform;
|
|
11596
11597
|
} else if (row.externalUrl) {
|
|
11597
|
-
href = _nullishCoalesce(
|
|
11598
|
+
href = _nullishCoalesce(_chunkC5EPWKM7cjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
11598
11599
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
11599
11600
|
}
|
|
11600
11601
|
const documentType = row.documentType;
|
|
@@ -11661,7 +11662,7 @@ function resolveCardDestination({
|
|
|
11661
11662
|
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _261 => _261.fallbackHref, 'optionalCall', _262 => _262(item)]), () => ( null)),
|
|
11662
11663
|
allowComposed: !entry.noComposedHref
|
|
11663
11664
|
});
|
|
11664
|
-
const url = choice ? _nullishCoalesce(
|
|
11665
|
+
const url = choice ? _nullishCoalesce(_chunkC5EPWKM7cjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
11665
11666
|
if (choice && url) {
|
|
11666
11667
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
11667
11668
|
}
|
|
@@ -11674,11 +11675,11 @@ function resolveCardDestination({
|
|
|
11674
11675
|
|
|
11675
11676
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
11676
11677
|
const label = entityLabel || "Item";
|
|
11677
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
11678
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11679
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11680
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11681
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11678
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11679
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
11680
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11681
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
11682
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
11682
11683
|
label,
|
|
11683
11684
|
" deleted",
|
|
11684
11685
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -11724,7 +11725,7 @@ function GitHubChatCard({
|
|
|
11724
11725
|
const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
|
|
11725
11726
|
const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
|
|
11726
11727
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
11727
|
-
const dateText =
|
|
11728
|
+
const dateText = _chunk7VXMO4XJcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
|
|
11728
11729
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
11729
11730
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11730
11731
|
MingoInfoCard,
|
|
@@ -11733,7 +11734,7 @@ function GitHubChatCard({
|
|
|
11733
11734
|
description,
|
|
11734
11735
|
icon: githubKindIcon(kind),
|
|
11735
11736
|
status,
|
|
11736
|
-
anchorProps:
|
|
11737
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11737
11738
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11738
11739
|
menuAriaLabel: "Activity actions"
|
|
11739
11740
|
}
|
|
@@ -11880,7 +11881,7 @@ function HubspotTicketChatCard({
|
|
|
11880
11881
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11881
11882
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
11882
11883
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
11883
|
-
anchorProps:
|
|
11884
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11884
11885
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
11885
11886
|
label: "Open Ticket Details",
|
|
11886
11887
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -11903,7 +11904,7 @@ function FaqChatCard({
|
|
|
11903
11904
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11904
11905
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
11905
11906
|
status: { label: statusLabel, variant: "grey" },
|
|
11906
|
-
anchorProps:
|
|
11907
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11907
11908
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11908
11909
|
menuAriaLabel: "FAQ actions"
|
|
11909
11910
|
}
|
|
@@ -11923,7 +11924,7 @@ function SlackChatCard({
|
|
|
11923
11924
|
title,
|
|
11924
11925
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11925
11926
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
11926
|
-
anchorProps:
|
|
11927
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11927
11928
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11928
11929
|
menuAriaLabel: "Message actions"
|
|
11929
11930
|
}
|
|
@@ -11941,7 +11942,7 @@ function GlyphChatCard({
|
|
|
11941
11942
|
title: chatRef.title,
|
|
11942
11943
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11943
11944
|
icon,
|
|
11944
|
-
anchorProps:
|
|
11945
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11945
11946
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11946
11947
|
menuAriaLabel: "Card actions"
|
|
11947
11948
|
}
|
|
@@ -11959,20 +11960,20 @@ function TrustCenterChatCard({
|
|
|
11959
11960
|
}) {
|
|
11960
11961
|
const raw2 = _optionalChain([item, 'optionalAccess', _286 => _286.frameworks]);
|
|
11961
11962
|
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
11962
|
-
const summary =
|
|
11963
|
+
const summary = _chunkOZIPPOSJcjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
11963
11964
|
const leadFramework = frameworks[0];
|
|
11964
11965
|
const lead = leadFramework ? {
|
|
11965
|
-
label:
|
|
11966
|
-
color:
|
|
11966
|
+
label: _chunkOZIPPOSJcjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
11967
|
+
color: _chunkOZIPPOSJcjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
11967
11968
|
} : void 0;
|
|
11968
11969
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11969
11970
|
MingoInfoCard,
|
|
11970
11971
|
{
|
|
11971
|
-
title:
|
|
11972
|
-
description: summary ||
|
|
11972
|
+
title: _chunkOZIPPOSJcjs.TRUST_CENTER_TITLE,
|
|
11973
|
+
description: summary || _chunkOZIPPOSJcjs.TRUST_CENTER_TAGLINE,
|
|
11973
11974
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
11974
11975
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
11975
|
-
anchorProps:
|
|
11976
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11976
11977
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
11977
11978
|
label: "View trust center",
|
|
11978
11979
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -11994,7 +11995,7 @@ function DataRoomDocChatCard({
|
|
|
11994
11995
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11995
11996
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
11996
11997
|
status: { label: badgeText, variant: "grey" },
|
|
11997
|
-
anchorProps:
|
|
11998
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11998
11999
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11999
12000
|
menuAriaLabel: "Document actions"
|
|
12000
12001
|
}
|
|
@@ -12013,7 +12014,7 @@ function GenericFinancialChatCard({
|
|
|
12013
12014
|
title: chatRef.title,
|
|
12014
12015
|
description: subtitle,
|
|
12015
12016
|
icon,
|
|
12016
|
-
anchorProps:
|
|
12017
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12017
12018
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12018
12019
|
menuAriaLabel: "Document actions"
|
|
12019
12020
|
}
|
|
@@ -12099,7 +12100,7 @@ function CampaignChatCard({
|
|
|
12099
12100
|
}) {
|
|
12100
12101
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _292 => _292.goals])) ? item.goals.length : 0;
|
|
12101
12102
|
const meta = [
|
|
12102
|
-
_optionalChain([item, 'optionalAccess', _293 => _293.start_date]) ?
|
|
12103
|
+
_optionalChain([item, 'optionalAccess', _293 => _293.start_date]) ? _chunkOZIPPOSJcjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
12103
12104
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
12104
12105
|
"Marketing campaign"
|
|
12105
12106
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -12138,7 +12139,7 @@ function EntityMingoCard({
|
|
|
12138
12139
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
12139
12140
|
icon: fallbackIcon,
|
|
12140
12141
|
status,
|
|
12141
|
-
anchorProps:
|
|
12142
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12142
12143
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
12143
12144
|
menuAriaLabel
|
|
12144
12145
|
}
|
|
@@ -12150,7 +12151,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
12150
12151
|
function statusPill(status) {
|
|
12151
12152
|
const s = typeof status === "string" ? status.trim() : "";
|
|
12152
12153
|
if (!s) return void 0;
|
|
12153
|
-
const scheme =
|
|
12154
|
+
const scheme = _chunkOZIPPOSJcjs.getStatusColorScheme.call(void 0, s);
|
|
12154
12155
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
12155
12156
|
return { label: s, variant };
|
|
12156
12157
|
}
|
|
@@ -12241,7 +12242,7 @@ function DesignDocChatCard({
|
|
|
12241
12242
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
12242
12243
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12243
12244
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
12244
|
-
anchorProps:
|
|
12245
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab),
|
|
12245
12246
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
12246
12247
|
menuAriaLabel: "Design doc actions"
|
|
12247
12248
|
}
|
|
@@ -12259,7 +12260,7 @@ function InvestorUpdateChatCard({
|
|
|
12259
12260
|
EntityMingoCard,
|
|
12260
12261
|
{
|
|
12261
12262
|
title,
|
|
12262
|
-
description: _optionalChain([item, 'optionalAccess', _323 => _323.strategic_update]) || _optionalChain([item, 'optionalAccess', _324 => _324.content]) ||
|
|
12263
|
+
description: _optionalChain([item, 'optionalAccess', _323 => _323.strategic_update]) || _optionalChain([item, 'optionalAccess', _324 => _324.content]) || _chunkOZIPPOSJcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _325 => _325.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _326 => _326.period_end]), () => ( null))) || void 0,
|
|
12263
12264
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _327 => _327.featured_image]), ogPlaceholder),
|
|
12264
12265
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
12265
12266
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -12303,7 +12304,7 @@ function ProgramChatCard({
|
|
|
12303
12304
|
discuss
|
|
12304
12305
|
}) {
|
|
12305
12306
|
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 });
|
|
12306
|
-
const { line: meta } =
|
|
12307
|
+
const { line: meta } = _chunkOZIPPOSJcjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkOZIPPOSJcjs.programMetaFormatters.call(void 0, _chunkOZIPPOSJcjs.PROGRAM_META_RENDERERS));
|
|
12307
12308
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12308
12309
|
EntityMingoCard,
|
|
12309
12310
|
{
|
|
@@ -12329,10 +12330,10 @@ function RoadmapChatCard({
|
|
|
12329
12330
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _337 => _337.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
12330
12331
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _338 => _338.customItemId]) != null;
|
|
12331
12332
|
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 });
|
|
12332
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12333
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOZIPPOSJcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _339 => _339.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
12333
12334
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
12334
12335
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
12335
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12336
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDRWPSN3Acjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
|
|
12336
12337
|
) : defaultIcon;
|
|
12337
12338
|
const clickupHref = clickupTaskUrl(chatRef.id);
|
|
12338
12339
|
const clickupIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk27TMRMOMcjs.ClickupLogoIcon, { size: 20 });
|
|
@@ -12395,11 +12396,11 @@ function refText(ref, key) {
|
|
|
12395
12396
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
12396
12397
|
}
|
|
12397
12398
|
function VendorGlyph({ title, logoUrl }) {
|
|
12398
|
-
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12399
|
+
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
|
|
12399
12400
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
12400
12401
|
}
|
|
12401
12402
|
function SitePageGlyph({ iconName }) {
|
|
12402
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12403
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
|
|
12403
12404
|
}
|
|
12404
12405
|
var GITHUB_CARD_CONFIGS = {
|
|
12405
12406
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -12516,7 +12517,7 @@ function programRegistryEntries() {
|
|
|
12516
12517
|
label: cfg.label,
|
|
12517
12518
|
contentRefType: cfg.contentRefType,
|
|
12518
12519
|
bareInline: true,
|
|
12519
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12520
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOZIPPOSJcjs.ProgramCard, { loading: true, size: "sm" }),
|
|
12520
12521
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12521
12522
|
ProgramChatCard,
|
|
12522
12523
|
{
|
|
@@ -12557,7 +12558,7 @@ function roadmapRegistryEntries() {
|
|
|
12557
12558
|
bareInline: true,
|
|
12558
12559
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
12559
12560
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
12560
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12561
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOZIPPOSJcjs.RoadmapCard, { loading: true, size: "sm" }),
|
|
12561
12562
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12562
12563
|
RoadmapChatCard,
|
|
12563
12564
|
{
|
|
@@ -12615,12 +12616,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12615
12616
|
// projection route; `extractCardItems` turns its object payload into the
|
|
12616
12617
|
// single matched row. Destination is the public page unless the host
|
|
12617
12618
|
// re-homes the type (`composeContentUrl` override).
|
|
12618
|
-
[
|
|
12619
|
+
[_chunkOZIPPOSJcjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
12619
12620
|
label: "Trust center",
|
|
12620
12621
|
bareInline: true,
|
|
12621
|
-
contentRefType:
|
|
12622
|
+
contentRefType: _chunkOZIPPOSJcjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
12622
12623
|
noComposedHref: true,
|
|
12623
|
-
fallbackHref: () =>
|
|
12624
|
+
fallbackHref: () => _chunkOZIPPOSJcjs.TRUST_CENTER_PAGE_PATH,
|
|
12624
12625
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
12625
12626
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
12626
12627
|
},
|
|
@@ -12646,7 +12647,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12646
12647
|
label: "Blog post",
|
|
12647
12648
|
contentRefType: "blog_post_existing",
|
|
12648
12649
|
bareInline: true,
|
|
12649
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12650
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOZIPPOSJcjs.BlogCard, { loading: true, size: "sm" }),
|
|
12650
12651
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12651
12652
|
BlogChatCard,
|
|
12652
12653
|
{
|
|
@@ -12663,7 +12664,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12663
12664
|
label: "Case study",
|
|
12664
12665
|
contentRefType: "case_study",
|
|
12665
12666
|
bareInline: true,
|
|
12666
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12667
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.CaseStudyCard, { loading: true, size: "sm" }),
|
|
12667
12668
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12668
12669
|
CaseStudyChatCard,
|
|
12669
12670
|
{
|
|
@@ -12688,7 +12689,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12688
12689
|
label: "Customer interview",
|
|
12689
12690
|
contentRefType: "customer_interview",
|
|
12690
12691
|
bareInline: true,
|
|
12691
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12692
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOZIPPOSJcjs.CustomerInterviewCard, { loading: true, size: "sm" }),
|
|
12692
12693
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12693
12694
|
CustomerInterviewChatCard,
|
|
12694
12695
|
{
|
|
@@ -12704,9 +12705,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12704
12705
|
label: "Product release",
|
|
12705
12706
|
contentRefType: "product_release",
|
|
12706
12707
|
bareInline: true,
|
|
12707
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12708
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOZIPPOSJcjs.ProductReleaseCard, { loading: true, size: "sm" }),
|
|
12708
12709
|
render: (item, chatRef, opts) => {
|
|
12709
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _380 => _380.extras, 'optionalAccess', _381 => _381.buildProductReleaseCardProps]), () => (
|
|
12710
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _380 => _380.extras, 'optionalAccess', _381 => _381.buildProductReleaseCardProps]), () => ( _chunkOZIPPOSJcjs.defaultBuildProductReleaseCardProps));
|
|
12710
12711
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12711
12712
|
ProductReleaseChatCard,
|
|
12712
12713
|
{
|
|
@@ -12724,7 +12725,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12724
12725
|
label: "Investor update",
|
|
12725
12726
|
contentRefType: "investor_update",
|
|
12726
12727
|
bareInline: true,
|
|
12727
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12728
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOZIPPOSJcjs.InvestorUpdateCard, { loading: true, size: "sm" }),
|
|
12728
12729
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12729
12730
|
InvestorUpdateChatCard,
|
|
12730
12731
|
{
|
|
@@ -12742,7 +12743,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12742
12743
|
bareInline: true,
|
|
12743
12744
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
12744
12745
|
displayAction: true,
|
|
12745
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12746
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOZIPPOSJcjs.OnboardingGuideCard, { loading: true, size: "sm" }),
|
|
12746
12747
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12747
12748
|
OnboardingGuideChatCard,
|
|
12748
12749
|
{
|
|
@@ -12815,7 +12816,7 @@ function ChatCardLoader({
|
|
|
12815
12816
|
entry: fetchEntry,
|
|
12816
12817
|
ctx: sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform }),
|
|
12817
12818
|
composeContentUrl: runtime.composeContentUrl,
|
|
12818
|
-
resolveHref: (href) =>
|
|
12819
|
+
resolveHref: (href) => _chunkOZIPPOSJcjs.resolveHrefForRuntime.call(void 0, href, runtime)
|
|
12819
12820
|
});
|
|
12820
12821
|
const hrefResolvedChatRef = {
|
|
12821
12822
|
...chatRef,
|
|
@@ -12826,12 +12827,12 @@ function ChatCardLoader({
|
|
|
12826
12827
|
};
|
|
12827
12828
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
12828
12829
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
12829
|
-
const isNewTab =
|
|
12830
|
+
const isNewTab = _chunkC5EPWKM7cjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
12830
12831
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
12831
12832
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
12832
12833
|
const discuss = discussFn ? {
|
|
12833
12834
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
12834
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12835
|
+
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.AgentMark, { agent: "mingo", className: "size-5" }),
|
|
12835
12836
|
run: () => discussFn(finalChatRef)
|
|
12836
12837
|
} : void 0;
|
|
12837
12838
|
const renderOpts = {
|
|
@@ -12940,12 +12941,12 @@ function makeBatchDedupKey(item) {
|
|
|
12940
12941
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
12941
12942
|
}
|
|
12942
12943
|
function getChatTypeMessageType(chatType) {
|
|
12943
|
-
return chatType ===
|
|
12944
|
+
return chatType === _chunkZCMXBX4Zcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
12944
12945
|
}
|
|
12945
12946
|
function useChunkCatchup({
|
|
12946
12947
|
dialogId,
|
|
12947
12948
|
onChunkReceived,
|
|
12948
|
-
chatTypes = [
|
|
12949
|
+
chatTypes = [_chunkZCMXBX4Zcjs.CHAT_TYPE.CLIENT],
|
|
12949
12950
|
fetchChunks
|
|
12950
12951
|
}) {
|
|
12951
12952
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -13906,7 +13907,7 @@ function useChatAttachmentImageGallery() {
|
|
|
13906
13907
|
return () => root.removeEventListener("click", onClick);
|
|
13907
13908
|
}, [viewUrlPrefix]);
|
|
13908
13909
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13909
|
-
|
|
13910
|
+
_chunkOZIPPOSJcjs.ImageGalleryModal,
|
|
13910
13911
|
{
|
|
13911
13912
|
images: state.images,
|
|
13912
13913
|
isOpen: state.isOpen,
|
|
@@ -15068,7 +15069,7 @@ function nullableText(value) {
|
|
|
15068
15069
|
}
|
|
15069
15070
|
function httpsUrl(value) {
|
|
15070
15071
|
const candidate = text(value);
|
|
15071
|
-
if (!candidate ||
|
|
15072
|
+
if (!candidate || _chunkC5EPWKM7cjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
15072
15073
|
try {
|
|
15073
15074
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
15074
15075
|
} catch (e17) {
|
|
@@ -15652,7 +15653,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15652
15653
|
const status = approvalStatuses[requestId] || "pending";
|
|
15653
15654
|
if (!displayInline(approvalType)) {
|
|
15654
15655
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
15655
|
-
const summary = required ?
|
|
15656
|
+
const summary = required ? _chunkBIYLAAFIcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
15656
15657
|
pendingEscalated.set(requestId, {
|
|
15657
15658
|
command: summary,
|
|
15658
15659
|
explanation: _optionalChain([required, 'optionalAccess', _536 => _536.toolExplanation]),
|
|
@@ -15685,7 +15686,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15685
15686
|
if (!call.requiresApproval) continue;
|
|
15686
15687
|
segments = accumulator.addApprovalRequest(
|
|
15687
15688
|
requestId,
|
|
15688
|
-
|
|
15689
|
+
_chunkBIYLAAFIcjs.getCommandText.call(void 0, call),
|
|
15689
15690
|
call.toolExplanation,
|
|
15690
15691
|
approvalType,
|
|
15691
15692
|
status,
|
|
@@ -15764,7 +15765,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15764
15765
|
if (!call.requiresApproval) continue;
|
|
15765
15766
|
segments = accumulator.addApprovalRequest(
|
|
15766
15767
|
requestId,
|
|
15767
|
-
|
|
15768
|
+
_chunkBIYLAAFIcjs.getCommandText.call(void 0, call),
|
|
15768
15769
|
call.toolExplanation,
|
|
15769
15770
|
escalatedData.approvalType,
|
|
15770
15771
|
status
|
|
@@ -18062,12 +18063,12 @@ function decodeNatsChunk(chunk) {
|
|
|
18062
18063
|
|
|
18063
18064
|
// src/components/chat/utils/process-historical-messages.ts
|
|
18064
18065
|
function getOwnerDisplayName(owner) {
|
|
18065
|
-
if (_optionalChain([owner, 'optionalAccess', _614 => _614.type]) ===
|
|
18066
|
+
if (_optionalChain([owner, 'optionalAccess', _614 => _614.type]) === _chunkZCMXBX4Zcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
18066
18067
|
const { firstName, lastName } = owner.user;
|
|
18067
18068
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
18068
18069
|
if (name) return name;
|
|
18069
18070
|
}
|
|
18070
|
-
return _optionalChain([owner, 'optionalAccess', _615 => _615.type]) ===
|
|
18071
|
+
return _optionalChain([owner, 'optionalAccess', _615 => _615.type]) === _chunkZCMXBX4Zcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
18071
18072
|
}
|
|
18072
18073
|
function getOwnerAvatar(owner) {
|
|
18073
18074
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _616 => _616.user, 'optionalAccess', _617 => _617.image, 'optionalAccess', _618 => _618.imageUrl]), () => ( void 0));
|
|
@@ -18330,7 +18331,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18330
18331
|
if (!call.requiresApproval) continue;
|
|
18331
18332
|
accumulator.addApprovalRequest(
|
|
18332
18333
|
event.requestId,
|
|
18333
|
-
|
|
18334
|
+
_chunkBIYLAAFIcjs.getCommandText.call(void 0, call),
|
|
18334
18335
|
call.toolExplanation,
|
|
18335
18336
|
approvalType,
|
|
18336
18337
|
status,
|
|
@@ -18391,7 +18392,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18391
18392
|
if (!call.requiresApproval) continue;
|
|
18392
18393
|
accumulator.addApprovalRequest(
|
|
18393
18394
|
requestId,
|
|
18394
|
-
|
|
18395
|
+
_chunkBIYLAAFIcjs.getCommandText.call(void 0, call),
|
|
18395
18396
|
call.toolExplanation,
|
|
18396
18397
|
escalatedData.approvalType,
|
|
18397
18398
|
status
|
|
@@ -18499,10 +18500,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18499
18500
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
18500
18501
|
return;
|
|
18501
18502
|
}
|
|
18502
|
-
const isUserMessage = _optionalChain([msg, 'access', _631 => _631.owner, 'optionalAccess', _632 => _632.type]) ===
|
|
18503
|
+
const isUserMessage = _optionalChain([msg, 'access', _631 => _631.owner, 'optionalAccess', _632 => _632.type]) === _chunkZCMXBX4Zcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _633 => _633.owner, 'optionalAccess', _634 => _634.type]) === _chunkZCMXBX4Zcjs.OWNER_TYPE.ADMIN;
|
|
18503
18504
|
if (isUserMessage) {
|
|
18504
18505
|
flushAssistantMessage();
|
|
18505
|
-
const userAuthorType = _optionalChain([msg, 'access', _635 => _635.owner, 'optionalAccess', _636 => _636.type]) ===
|
|
18506
|
+
const userAuthorType = _optionalChain([msg, 'access', _635 => _635.owner, 'optionalAccess', _636 => _636.type]) === _chunkZCMXBX4Zcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
18506
18507
|
messageDataArray.forEach((data) => {
|
|
18507
18508
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
18508
18509
|
const rawContext = data.contextItems;
|
|
@@ -18553,7 +18554,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18553
18554
|
});
|
|
18554
18555
|
const nextMsg = messages[index + 1];
|
|
18555
18556
|
const isLastMessage = index === messages.length - 1;
|
|
18556
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _639 => _639.owner, 'optionalAccess', _640 => _640.type]) ===
|
|
18557
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _639 => _639.owner, 'optionalAccess', _640 => _640.type]) === _chunkZCMXBX4Zcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _641 => _641.owner, 'optionalAccess', _642 => _642.type]) === _chunkZCMXBX4Zcjs.OWNER_TYPE.ADMIN);
|
|
18557
18558
|
if (isLastMessage || nextIsFromUser) {
|
|
18558
18559
|
flushAssistantMessage();
|
|
18559
18560
|
}
|