@flamingo-stack/openframe-frontend-core 0.0.789 → 0.0.790
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-W4RRVQZQ.cjs → chunk-5FV2FQQD.cjs} +246 -241
- package/dist/{chunk-IKCMAIJ7.cjs → chunk-6YPT2BD4.cjs} +80 -80
- package/dist/{chunk-G33O32RX.cjs → chunk-72NE4G63.cjs} +4 -4
- package/dist/{chunk-ZH7SZ46Q.cjs → chunk-7GNSCDUK.cjs} +847 -847
- package/dist/{chunk-ORIXQCPX.cjs → chunk-7VXMO4XJ.cjs} +8 -8
- package/dist/{chunk-JHFSLLQ6.cjs → chunk-ANQCSCNU.cjs} +2 -2
- 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-GMGM3JV3.cjs → chunk-EU3NQPFE.cjs} +54 -54
- package/dist/{chunk-HDCAH4AT.cjs → chunk-EY64NXE7.cjs} +90 -90
- package/dist/{chunk-XI4KB7EF.cjs → chunk-F4RCB5LB.cjs} +14 -14
- package/dist/{chunk-OCTDWSTS.cjs → chunk-F62QXKNL.cjs} +39 -39
- package/dist/{chunk-EQNNPLCN.cjs → chunk-F7UIQ6UG.cjs} +14 -14
- package/dist/{chunk-F2GRQ2RL.cjs → chunk-GYSRYYDM.cjs} +4 -4
- package/dist/{chunk-FJBE3WIJ.cjs → chunk-HCXNFMLO.cjs} +4 -4
- package/dist/{chunk-MFPTTZI5.cjs → chunk-HKMEI2NX.cjs} +40 -40
- package/dist/{chunk-UB3C22AW.cjs → chunk-ISSBE5JP.cjs} +121 -121
- package/dist/{chunk-ZKNEKZS5.cjs → chunk-IYWVS3SS.cjs} +6 -6
- package/dist/{chunk-MMC7H7C6.cjs → chunk-KI5TJDK3.cjs} +9 -9
- package/dist/{chunk-QVF5A6UT.cjs → chunk-LL6PXI6C.cjs} +2 -2
- package/dist/{chunk-RJIFPWO4.cjs → chunk-LZG7PBF3.cjs} +24 -24
- package/dist/{chunk-KO4IF7R2.cjs → chunk-O4XBGLMA.cjs} +3 -3
- package/dist/{chunk-QELEIFHA.cjs → chunk-OWKLWCLZ.cjs} +52 -52
- package/dist/{chunk-4ZLLUZQB.cjs → chunk-PHWLEYAG.cjs} +55 -55
- package/dist/{chunk-PPBNMZC5.cjs → chunk-PLNLTN4R.cjs} +13 -13
- package/dist/{chunk-7VEYDE3T.cjs → chunk-PQIWR4Q2.cjs} +23 -23
- package/dist/{chunk-7NUFHVR6.cjs → chunk-QPXC3LEV.cjs} +19 -19
- package/dist/{chunk-IODLD4VM.cjs → chunk-RFIBRGXG.cjs} +3 -3
- package/dist/{chunk-WDUHSGRT.cjs → chunk-RIIMY7XW.cjs} +4 -4
- package/dist/{chunk-6TFNJDEQ.cjs → chunk-RPC4P7GY.cjs} +60 -87
- package/dist/{chunk-DNJVLDCH.cjs → chunk-RYSEW4XI.cjs} +31 -31
- package/dist/{chunk-N3PYKA3B.cjs → chunk-TIDJN3OQ.cjs} +5 -5
- package/dist/{chunk-KB7SPZFI.cjs → chunk-V4RKY4ZY.cjs} +253 -253
- package/dist/{chunk-HOYSVWKQ.cjs → chunk-WTNAXQJW.cjs} +6 -6
- package/dist/{chunk-SBC7RG7O.cjs → chunk-ZCMXBX4Z.cjs} +14 -14
- package/dist/{cloud-tenants-3SFM4VJZ.cjs → cloud-tenants-D6DYR6UV.cjs} +18 -18
- package/dist/components/case-studies/index.cjs +33 -33
- 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/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/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/{devices-PE57CA5O.cjs → devices-MZQ4573H.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-QLJ2KSWT.cjs} +81 -81
- package/dist/hooks/index.cjs +4 -4
- package/dist/index.cjs +26 -26
- package/dist/{knowledge-ZFJQMMR2.cjs → knowledge-QZTFICLS.cjs} +19 -19
- package/dist/{logs-4GKGMB7A.cjs → logs-2YOR2SUA.cjs} +26 -26
- package/dist/{policies-TRWFGAEE.cjs → policies-KKFC4UOU.cjs} +22 -22
- package/dist/{remote-session-WMAV72M7.cjs → remote-session-WKLEYACD.cjs} +10 -10
- package/dist/{scripts-2SHRGH3L.cjs → scripts-UA46WAET.cjs} +25 -25
- package/dist/{software-update-ROHSE2BE.cjs → software-update-IN6TJL73.cjs} +22 -22
- package/dist/{tickets-board-37LBIQ65.cjs → tickets-board-URMIIAKD.cjs} +10 -10
- package/package.json +1 -1
- 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/index.ts +1 -1
|
@@ -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 _chunk5FV2FQQDcjs = require('./chunk-5FV2FQQD.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
|
) });
|
|
@@ -3823,7 +3823,7 @@ function renderQuickActionIcon(icon) {
|
|
|
3823
3823
|
if (!spec.name && !spec.url) return void 0;
|
|
3824
3824
|
const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
|
|
3825
3825
|
const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
|
|
3826
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3826
|
+
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
3827
|
}
|
|
3828
3828
|
function composeChipLabel(label, lozenge) {
|
|
3829
3829
|
if (!lozenge) return label;
|
|
@@ -3858,17 +3858,17 @@ function QuickActionChipSkeleton({
|
|
|
3858
3858
|
}) {
|
|
3859
3859
|
const question = variant === "question";
|
|
3860
3860
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3861
|
-
|
|
3861
|
+
_chunk7VXMO4XJcjs.Tag,
|
|
3862
3862
|
{
|
|
3863
3863
|
..._chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props),
|
|
3864
3864
|
variant: "outline",
|
|
3865
3865
|
size: question ? "sentence" : size,
|
|
3866
3866
|
className: _chunk6YZNUHXTcjs.cn.call(void 0, question && "max-w-full", className),
|
|
3867
|
-
icon: icon && !question ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3867
|
+
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
3868
|
label: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3869
|
-
lozenge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3869
|
+
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
3870
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3871
|
-
|
|
3871
|
+
_chunkAT4C2YMAcjs.UnifiedSkeleton,
|
|
3872
3872
|
{
|
|
3873
3873
|
as: "span",
|
|
3874
3874
|
"aria-hidden": true,
|
|
@@ -3922,7 +3922,7 @@ function QuickActionChipButton({
|
|
|
3922
3922
|
const tagSize = question ? "sentence" : size;
|
|
3923
3923
|
if (!interactive) {
|
|
3924
3924
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3925
|
-
|
|
3925
|
+
_chunk7VXMO4XJcjs.Tag,
|
|
3926
3926
|
{
|
|
3927
3927
|
...markers,
|
|
3928
3928
|
variant: tagVariant,
|
|
@@ -3951,7 +3951,7 @@ function QuickActionChipButton({
|
|
|
3951
3951
|
className
|
|
3952
3952
|
),
|
|
3953
3953
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3954
|
-
|
|
3954
|
+
_chunk7VXMO4XJcjs.Tag,
|
|
3955
3955
|
{
|
|
3956
3956
|
variant: tagVariant,
|
|
3957
3957
|
size: tagSize,
|
|
@@ -4025,9 +4025,9 @@ var iconTint = {
|
|
|
4025
4025
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
4026
4026
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
4027
4027
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4028
|
-
const { innerRef, containerStyle } =
|
|
4028
|
+
const { innerRef, containerStyle } = _chunkBIYLAAFIcjs.useCollapsible.call(void 0, { expanded });
|
|
4029
4029
|
const hasDetails = Boolean(details);
|
|
4030
|
-
const isV2 = useChatAppearance() ===
|
|
4030
|
+
const isV2 = useChatAppearance() === _chunkZCMXBX4Zcjs.CHAT_APPEARANCE.V2;
|
|
4031
4031
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4032
4032
|
"div",
|
|
4033
4033
|
{
|
|
@@ -4061,7 +4061,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4061
4061
|
children: title
|
|
4062
4062
|
}
|
|
4063
4063
|
),
|
|
4064
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4064
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.ExpandChevron, { expanded })
|
|
4065
4065
|
]
|
|
4066
4066
|
}
|
|
4067
4067
|
),
|
|
@@ -4109,19 +4109,19 @@ function MspOrganizationCard({
|
|
|
4109
4109
|
const trailing = action && loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.InertWhileLoading, { children: action }) : action;
|
|
4110
4110
|
if (footer) {
|
|
4111
4111
|
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,
|
|
4112
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VXMO4XJcjs.SquareAvatar, { loading, src: logoUrl, alt: name, fallback: name, size: "sm", variant: "square" }),
|
|
4113
4113
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TEXT_STACK_CLASS, children: [
|
|
4114
4114
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: FOOTER_CAPTION_CLASS, children: FOOTER_CAPTION }),
|
|
4115
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4115
|
+
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
4116
|
] }),
|
|
4117
4117
|
trailing
|
|
4118
4118
|
] });
|
|
4119
4119
|
}
|
|
4120
4120
|
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,
|
|
4121
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VXMO4XJcjs.SquareAvatar, { loading, src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
|
|
4122
4122
|
/* @__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,
|
|
4123
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h3", className: "w-3/5" }),
|
|
4124
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className: "w-2/5" })
|
|
4125
4125
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4126
4126
|
/* @__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
4127
|
website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
|
|
@@ -4141,7 +4141,7 @@ var ConnectionIndicator = ({ status }) => {
|
|
|
4141
4141
|
case "connected":
|
|
4142
4142
|
return "bg-ods-success";
|
|
4143
4143
|
case "connecting":
|
|
4144
|
-
return `bg-ods-warning ${
|
|
4144
|
+
return `bg-ods-warning ${_chunkAT4C2YMAcjs.LIVE_PULSE_CLASS}`;
|
|
4145
4145
|
case "disconnected":
|
|
4146
4146
|
return "bg-ods-error";
|
|
4147
4147
|
default:
|
|
@@ -4228,7 +4228,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4228
4228
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-4 px-4 py-3", children: [
|
|
4229
4229
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
4230
4230
|
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
|
-
|
|
4231
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
4232
4232
|
{
|
|
4233
4233
|
loading: isLoading,
|
|
4234
4234
|
src: userAvatar,
|
|
@@ -4240,8 +4240,8 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4240
4240
|
}
|
|
4241
4241
|
),
|
|
4242
4242
|
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,
|
|
4243
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h3", className: "w-40" }),
|
|
4244
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className: "w-28" })
|
|
4245
4245
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
4246
4246
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h3", children: userName }),
|
|
4247
4247
|
/* @__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 +4310,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4310
4310
|
)
|
|
4311
4311
|
] }),
|
|
4312
4312
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4313
|
-
|
|
4313
|
+
_chunkBIYLAAFIcjs.TicketStatusTag,
|
|
4314
4314
|
{
|
|
4315
|
-
...
|
|
4315
|
+
..._chunkBIYLAAFIcjs.resolveStatusTagProps.call(void 0, {
|
|
4316
4316
|
status: ticketInfo.status,
|
|
4317
4317
|
statusKind: ticketInfo.statusKind,
|
|
4318
4318
|
statusName: ticketInfo.statusName,
|
|
@@ -4412,7 +4412,7 @@ function ContextMenuRow({
|
|
|
4412
4412
|
const loading = loadingProp || inScope && (label == null || label === "");
|
|
4413
4413
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4414
4414
|
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,
|
|
4415
|
+
/* @__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
4416
|
!loading && trailing
|
|
4417
4417
|
] });
|
|
4418
4418
|
if (loading) {
|
|
@@ -4905,11 +4905,11 @@ var remarkMentionChips = () => {
|
|
|
4905
4905
|
// src/components/chat/tool-execution-display.tsx
|
|
4906
4906
|
|
|
4907
4907
|
|
|
4908
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
4908
|
+
var COMMAND_BODY_KEYS = new Set(_chunkBIYLAAFIcjs.COMMAND_BODY_ARG_KEYS);
|
|
4909
4909
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
4910
4910
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
4911
4911
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4912
|
-
const { innerRef, containerStyle } =
|
|
4912
|
+
const { innerRef, containerStyle } = _chunkBIYLAAFIcjs.useCollapsible.call(void 0, { expanded });
|
|
4913
4913
|
const isClient = assistantType === "fae";
|
|
4914
4914
|
const isClientView = variant === "client";
|
|
4915
4915
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -4952,7 +4952,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4952
4952
|
}
|
|
4953
4953
|
),
|
|
4954
4954
|
/* @__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,
|
|
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, _chunkBIYLAAFIcjs.ExpandChevron, { expanded: isExpanded }) })
|
|
4956
4956
|
] });
|
|
4957
4957
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4958
4958
|
"div",
|
|
@@ -4962,7 +4962,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4962
4962
|
// The command running block keeps its bordered box in both chats
|
|
4963
4963
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
4964
4964
|
"flex w-full flex-col overflow-hidden",
|
|
4965
|
-
|
|
4965
|
+
_chunkBIYLAAFIcjs.CHAT_BLOCK_FRAME_CLASS,
|
|
4966
4966
|
className
|
|
4967
4967
|
),
|
|
4968
4968
|
...props,
|
|
@@ -4973,14 +4973,14 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4973
4973
|
// It reads as a card: what was done, then one status line under it.
|
|
4974
4974
|
/* @__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
4975
|
/* @__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,
|
|
4976
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
4977
4977
|
] })
|
|
4978
4978
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4979
4979
|
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
4980
|
/* @__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,
|
|
4981
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.ArgRow, { argKey: key, value }, key)),
|
|
4982
4982
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4983
|
-
|
|
4983
|
+
_chunkBIYLAAFIcjs.ResultBlock,
|
|
4984
4984
|
{
|
|
4985
4985
|
result: message.result,
|
|
4986
4986
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -5012,8 +5012,8 @@ ToolExecutionDisplay.displayName = "ToolExecutionDisplay";
|
|
|
5012
5012
|
|
|
5013
5013
|
// src/components/chat/chat-message-layout.ts
|
|
5014
5014
|
var CHAT_MESSAGE_ROW_PADDING_CLASS = {
|
|
5015
|
-
[
|
|
5016
|
-
[
|
|
5015
|
+
[_chunkZCMXBX4Zcjs.CHAT_APPEARANCE.CLASSIC]: "py-[var(--spacing-system-s)]",
|
|
5016
|
+
[_chunkZCMXBX4Zcjs.CHAT_APPEARANCE.V2]: "py-[calc(var(--spacing-system-m)/2)]"
|
|
5017
5017
|
};
|
|
5018
5018
|
var CHAT_MESSAGE_STACK_CLASS = "grid min-w-0 grid-cols-1 gap-[var(--spacing-system-xxs)]";
|
|
5019
5019
|
var CHAT_MESSAGE_HEADER_CLASS = "flex items-center gap-[var(--spacing-system-xs)]";
|
|
@@ -5054,8 +5054,8 @@ var remarkStripCitations = () => {
|
|
|
5054
5054
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
5055
5055
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
5056
5056
|
function formatMessageTimestamp(timestamp) {
|
|
5057
|
-
const time =
|
|
5058
|
-
return
|
|
5057
|
+
const time = _chunkZCMXBX4Zcjs.formatTime.call(void 0, timestamp);
|
|
5058
|
+
return _chunkBIYLAAFIcjs.isToday.call(void 0, timestamp) ? time : `${_chunkZCMXBX4Zcjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
5059
5059
|
}
|
|
5060
5060
|
function normalizeContent(content) {
|
|
5061
5061
|
if (typeof content === "string") {
|
|
@@ -5111,7 +5111,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5111
5111
|
const isError = role === "error";
|
|
5112
5112
|
const inheritedAppearance = useChatAppearance();
|
|
5113
5113
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
5114
|
-
const isV2 = appearance ===
|
|
5114
|
+
const isV2 = appearance === _chunkZCMXBX4Zcjs.CHAT_APPEARANCE.V2;
|
|
5115
5115
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isHuman ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
5116
5116
|
const isOtherPerson = isHuman && selfAuthorType !== void 0 && authorType !== "system" && authorType !== selfAuthorType;
|
|
5117
5117
|
const isUser = isHuman && !isOtherPerson;
|
|
@@ -5299,9 +5299,9 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5299
5299
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
5300
5300
|
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
5301
|
// 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,
|
|
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, _chunkBIYLAAFIcjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
|
|
5303
5303
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5304
|
-
|
|
5304
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
5305
5305
|
{
|
|
5306
5306
|
src: avatar || void 0,
|
|
5307
5307
|
alt: displayName,
|
|
@@ -5317,7 +5317,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5317
5317
|
"div",
|
|
5318
5318
|
{
|
|
5319
5319
|
ref,
|
|
5320
|
-
className: _chunk6YZNUHXTcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[
|
|
5320
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[_chunkZCMXBX4Zcjs.CHAT_APPEARANCE.V2], className),
|
|
5321
5321
|
...props,
|
|
5322
5322
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SystemEventMessage, { text: name, timestamp }) })
|
|
5323
5323
|
}
|
|
@@ -5329,7 +5329,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5329
5329
|
ref,
|
|
5330
5330
|
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
5331
5331
|
"relative",
|
|
5332
|
-
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ?
|
|
5332
|
+
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ? _chunkZCMXBX4Zcjs.CHAT_APPEARANCE.V2 : _chunkZCMXBX4Zcjs.CHAT_APPEARANCE.CLASSIC],
|
|
5333
5333
|
className
|
|
5334
5334
|
),
|
|
5335
5335
|
...props,
|
|
@@ -5386,7 +5386,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5386
5386
|
);
|
|
5387
5387
|
} else if (segment.type === "approval_batch") {
|
|
5388
5388
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5389
|
-
|
|
5389
|
+
_chunkBIYLAAFIcjs.ApprovalBatchMessage,
|
|
5390
5390
|
{
|
|
5391
5391
|
data: segment.data,
|
|
5392
5392
|
status: segment.status,
|
|
@@ -5472,12 +5472,12 @@ function ChatMessageSkeleton({
|
|
|
5472
5472
|
const lines = Math.max(1, bodyLines);
|
|
5473
5473
|
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
5474
|
(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,
|
|
5475
|
+
showAvatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VXMO4XJcjs.SquareAvatar, { loading: true, sizePx: CHAT_MESSAGE_FACE_PX, variant: "round" }),
|
|
5476
|
+
showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-24" }),
|
|
5477
|
+
showName && showTime && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: _chunk6YZNUHXTcjs.cn.call(void 0, "ml-auto", TIME_BAR_CLASS) })
|
|
5478
5478
|
] }),
|
|
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,
|
|
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, _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 }) }) }),
|
|
5480
|
+
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
5481
|
] }) });
|
|
5482
5482
|
}
|
|
5483
5483
|
var CHAT_MESSAGE_LIST_SKELETON_MESSAGES = 6;
|
|
@@ -5660,7 +5660,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5660
5660
|
approvalVariant,
|
|
5661
5661
|
selfAuthorType,
|
|
5662
5662
|
nameEveryTurn,
|
|
5663
|
-
appearance =
|
|
5663
|
+
appearance = _chunkZCMXBX4Zcjs.CHAT_APPEARANCE.CLASSIC,
|
|
5664
5664
|
assistantIcon,
|
|
5665
5665
|
pendingApprovals,
|
|
5666
5666
|
hasNextPage,
|
|
@@ -6698,7 +6698,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
6698
6698
|
|
|
6699
6699
|
[Attached: ${safeName}](${url})`;
|
|
6700
6700
|
}
|
|
6701
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
6701
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunk5FV2FQQDcjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
6702
6702
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
6703
6703
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
6704
6704
|
"gm"
|
|
@@ -7537,7 +7537,7 @@ function MingoChatHistoryRow({
|
|
|
7537
7537
|
!loading && "cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent"
|
|
7538
7538
|
),
|
|
7539
7539
|
children: [
|
|
7540
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7540
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className: _chunkZCMXBX4Zcjs.SKELETON_TITLE_WIDTHS[skeletonIndex % _chunkZCMXBX4Zcjs.SKELETON_TITLE_WIDTHS.length] }) : null,
|
|
7541
7541
|
!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
7542
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7543
7543
|
"span",
|
|
@@ -7607,7 +7607,7 @@ function MingoChatHistoryRow({
|
|
|
7607
7607
|
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
7608
|
),
|
|
7609
7609
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7610
|
-
|
|
7610
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
7611
7611
|
{
|
|
7612
7612
|
variant: "round",
|
|
7613
7613
|
sizePx: 24,
|
|
@@ -7638,7 +7638,7 @@ function MingoChatHistorySkeleton({ rows, className }) {
|
|
|
7638
7638
|
label: "Loading conversations",
|
|
7639
7639
|
className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-hidden", className),
|
|
7640
7640
|
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,
|
|
7641
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h5", className: "w-16" }),
|
|
7642
7642
|
/* @__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
7643
|
] }, group))
|
|
7644
7644
|
}
|
|
@@ -7663,7 +7663,7 @@ function MingoChatHistory({
|
|
|
7663
7663
|
const isLoading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || loading;
|
|
7664
7664
|
const groups = _react.useMemo.call(void 0, () => groupDialogs(dialogs), [dialogs]);
|
|
7665
7665
|
const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess', _167 => _167.trim, 'call', _168 => _168()]);
|
|
7666
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
7666
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkZCMXBX4Zcjs.useScrollFade.call(void 0, );
|
|
7667
7667
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
7668
7668
|
const onLoadMoreRef = _react.useRef.call(void 0, onLoadMore);
|
|
7669
7669
|
const isLoadingMoreRef = _react.useRef.call(void 0, isLoadingMore);
|
|
@@ -7728,8 +7728,8 @@ function MingoChatHistory({
|
|
|
7728
7728
|
]
|
|
7729
7729
|
}
|
|
7730
7730
|
),
|
|
7731
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7732
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7731
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, color: "var(--color-bg-card)", className: "h-12" }),
|
|
7732
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, color: "var(--color-bg-card)", className: "h-12" })
|
|
7733
7733
|
] }) });
|
|
7734
7734
|
}
|
|
7735
7735
|
|
|
@@ -7785,7 +7785,7 @@ function MingoWelcome({
|
|
|
7785
7785
|
} catch (e7) {
|
|
7786
7786
|
}
|
|
7787
7787
|
}, [promoStorage, promoStorageKey]);
|
|
7788
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
7788
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkZCMXBX4Zcjs.useScrollFade.call(void 0, );
|
|
7789
7789
|
const showPinnedRegion = !!dialogHistory || !historyLoading && !loadError;
|
|
7790
7790
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7791
7791
|
"div",
|
|
@@ -7817,7 +7817,7 @@ function MingoWelcome({
|
|
|
7817
7817
|
onScroll: updateScrollFade,
|
|
7818
7818
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
7819
7819
|
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,
|
|
7820
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7821
7821
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7822
7822
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
7823
7823
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -7825,8 +7825,8 @@ function MingoWelcome({
|
|
|
7825
7825
|
] })
|
|
7826
7826
|
}
|
|
7827
7827
|
),
|
|
7828
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7829
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7828
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
7829
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
7830
7830
|
] }) })))),
|
|
7831
7831
|
showPinnedRegion && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col gap-[var(--spacing-system-m)]", children: [
|
|
7832
7832
|
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 +7906,7 @@ function GuideWelcome({
|
|
|
7906
7906
|
children,
|
|
7907
7907
|
className
|
|
7908
7908
|
}) {
|
|
7909
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
7909
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkZCMXBX4Zcjs.useScrollFade.call(void 0, );
|
|
7910
7910
|
const subtitleIsLoading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || subtitleLoading && !subtitle;
|
|
7911
7911
|
const chipItems = _react.useMemo.call(void 0,
|
|
7912
7912
|
() => quickActions.map((action) => ({
|
|
@@ -7942,19 +7942,19 @@ function GuideWelcome({
|
|
|
7942
7942
|
icon && (icon.name || icon.url) ? (
|
|
7943
7943
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
7944
7944
|
// match the default Mingo mark (48px).
|
|
7945
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7946
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7945
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
7946
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7947
7947
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7948
7948
|
/* @__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,
|
|
7949
|
+
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
7950
|
] })
|
|
7951
7951
|
] }),
|
|
7952
7952
|
children
|
|
7953
7953
|
]
|
|
7954
7954
|
}
|
|
7955
7955
|
),
|
|
7956
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7957
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7956
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
7957
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
7958
7958
|
] }),
|
|
7959
7959
|
quickActions.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7960
7960
|
QuickActionWall,
|
|
@@ -8038,17 +8038,17 @@ function MingoArchiveList({
|
|
|
8038
8038
|
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
8039
|
children: [
|
|
8040
8040
|
/* @__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,
|
|
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, _chunkZCMXBX4Zcjs.ChatListItemLoadingPage, { count: pageSize, trailing: true }) : dialogs.length > 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8042
8042
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8043
|
-
|
|
8043
|
+
_chunkZCMXBX4Zcjs.ChatListItem,
|
|
8044
8044
|
{
|
|
8045
8045
|
"data-loading-item": true,
|
|
8046
8046
|
title: dialog.title || "Untitled Chat",
|
|
8047
8047
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _179 => _179(dialog.id)]),
|
|
8048
8048
|
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:
|
|
8049
|
+
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
8050
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8051
|
-
|
|
8051
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
8052
8052
|
{
|
|
8053
8053
|
variant: "round",
|
|
8054
8054
|
sizePx: 24,
|
|
@@ -8112,7 +8112,7 @@ function MingoChatHeader({
|
|
|
8112
8112
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
8113
8113
|
] }),
|
|
8114
8114
|
avatar && (avatar.name || avatar.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8115
|
-
|
|
8115
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
8116
8116
|
{
|
|
8117
8117
|
variant: "round",
|
|
8118
8118
|
sizePx: 32,
|
|
@@ -8351,7 +8351,7 @@ function MingoChatRail({
|
|
|
8351
8351
|
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
8352
|
] });
|
|
8353
8353
|
} else if (loading) {
|
|
8354
|
-
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8354
|
+
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ChatListItemLoadingPage, { count: pageSize });
|
|
8355
8355
|
} else if (dialogs.length === 0 && !draftTitle) {
|
|
8356
8356
|
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
8357
|
ChatListEmptyState,
|
|
@@ -8363,7 +8363,7 @@ function MingoChatRail({
|
|
|
8363
8363
|
);
|
|
8364
8364
|
} else {
|
|
8365
8365
|
list = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8366
|
-
draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8366
|
+
draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ChatListItem, { active: true, title: draftTitle, tabIndex: -1, className: "cursor-default" }),
|
|
8367
8367
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8368
8368
|
MingoChatRailRow,
|
|
8369
8369
|
{
|
|
@@ -8385,13 +8385,13 @@ function MingoChatRail({
|
|
|
8385
8385
|
] });
|
|
8386
8386
|
}
|
|
8387
8387
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8388
|
-
|
|
8388
|
+
_chunkZCMXBX4Zcjs.ChatNavSidebar,
|
|
8389
8389
|
{
|
|
8390
8390
|
className,
|
|
8391
8391
|
"data-accent": "mingo",
|
|
8392
8392
|
"aria-label": "Mingo chats",
|
|
8393
8393
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
8394
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8394
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
8395
8395
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8396
8396
|
_chunkK7I3YYYUcjs.Button,
|
|
8397
8397
|
{
|
|
@@ -8444,7 +8444,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
8444
8444
|
const title = dialog.title || "Untitled Chat";
|
|
8445
8445
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ..._chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props), className: "group/row relative shrink-0", children: [
|
|
8446
8446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8447
|
-
|
|
8447
|
+
_chunkZCMXBX4Zcjs.ChatListItem,
|
|
8448
8448
|
{
|
|
8449
8449
|
active,
|
|
8450
8450
|
title,
|
|
@@ -8667,8 +8667,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8667
8667
|
const save = () => {
|
|
8668
8668
|
if (canSave) onSave(name.trim());
|
|
8669
8669
|
};
|
|
8670
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8671
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8670
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8671
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
8672
8672
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
8673
8673
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJRTDBPJTcjs.Label, { htmlFor: "rename-chat-input", variant: "large", children: "Chat Name" }),
|
|
8674
8674
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8685,27 +8685,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8685
8685
|
}
|
|
8686
8686
|
)
|
|
8687
8687
|
] }),
|
|
8688
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8688
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.ModalFooter, { children: [
|
|
8689
8689
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8690
8690
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "accent", type: "button", onClick: save, disabled: !canSave, className: footerBtn, children: "Save" })
|
|
8691
8691
|
] })
|
|
8692
8692
|
] });
|
|
8693
8693
|
}
|
|
8694
8694
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8695
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8696
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8695
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8696
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
8697
8697
|
/* @__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,
|
|
8698
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.ModalFooter, { children: [
|
|
8699
8699
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8700
8700
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "destructive", type: "button", onClick: onConfirm, className: footerBtn, children: "Archive Chat" })
|
|
8701
8701
|
] })
|
|
8702
8702
|
] });
|
|
8703
8703
|
}
|
|
8704
8704
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8705
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8706
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8705
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8706
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
8707
8707
|
/* @__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,
|
|
8708
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.ModalFooter, { children: [
|
|
8709
8709
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8710
8710
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "accent", type: "button", onClick: onConfirm, className: footerBtn, children: "Unarchive Chat" })
|
|
8711
8711
|
] })
|
|
@@ -8878,7 +8878,7 @@ function ChatPanelHeader({
|
|
|
8878
8878
|
avatar && (avatar.name || avatar.avatarUrl) ? (
|
|
8879
8879
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
8880
8880
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8881
|
-
|
|
8881
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
8882
8882
|
{
|
|
8883
8883
|
variant: "round",
|
|
8884
8884
|
sizePx: 32,
|
|
@@ -9046,8 +9046,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
9046
9046
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
|
|
9047
9047
|
(!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
|
|
9048
9048
|
status === "sniffing" && "Checking the file",
|
|
9049
|
-
status === "uploading" && `${progress}% \xB7 ${
|
|
9050
|
-
status === "ready" &&
|
|
9049
|
+
status === "uploading" && `${progress}% \xB7 ${_chunk7VXMO4XJcjs.formatFileSize.call(void 0, file.size)}`,
|
|
9050
|
+
status === "ready" && _chunk7VXMO4XJcjs.formatFileSize.call(void 0, file.size),
|
|
9051
9051
|
status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
|
|
9052
9052
|
] })
|
|
9053
9053
|
] }),
|
|
@@ -9299,13 +9299,13 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9299
9299
|
const isLoading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || loading;
|
|
9300
9300
|
const icon = getProviderIcon(provider);
|
|
9301
9301
|
const name = displayName || modelName;
|
|
9302
|
-
const isV2 = useChatAppearance() ===
|
|
9302
|
+
const isV2 = useChatAppearance() === _chunkZCMXBX4Zcjs.CHAT_APPEARANCE.V2;
|
|
9303
9303
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
9304
9304
|
if (isLoading) {
|
|
9305
9305
|
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,
|
|
9306
|
+
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" }) }),
|
|
9307
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-24" }),
|
|
9308
|
+
contextWindow != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "ml-auto w-32" })
|
|
9309
9309
|
] });
|
|
9310
9310
|
}
|
|
9311
9311
|
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 +9427,7 @@ function ChatComposer({
|
|
|
9427
9427
|
}, [entityTypes]);
|
|
9428
9428
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
9429
9429
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9430
|
-
|
|
9430
|
+
_chunkZCMXBX4Zcjs.ChatInput,
|
|
9431
9431
|
{
|
|
9432
9432
|
ref: inputRef,
|
|
9433
9433
|
onSend,
|
|
@@ -9597,16 +9597,16 @@ function ChatArchivePage(props) {
|
|
|
9597
9597
|
|
|
9598
9598
|
// src/components/chat/utils/execute-navigation.ts
|
|
9599
9599
|
function isForeignOriginHref(href) {
|
|
9600
|
-
return /^https?:\/\//i.test(href) && !
|
|
9600
|
+
return /^https?:\/\//i.test(href) && !_chunkC5EPWKM7cjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
9601
9601
|
}
|
|
9602
9602
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
9603
|
-
const isNewTab = runtime ?
|
|
9603
|
+
const isNewTab = runtime ? _chunkC5EPWKM7cjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
9604
9604
|
if (isNewTab) {
|
|
9605
9605
|
if (_optionalChain([runtime, 'optionalAccess', _205 => _205.navigation, 'access', _206 => _206.openExternal])) runtime.navigation.openExternal(href);
|
|
9606
|
-
else window.open(href, "_blank",
|
|
9606
|
+
else window.open(href, "_blank", _chunk5FV2FQQDcjs.NEW_TAB_FEATURES);
|
|
9607
9607
|
return;
|
|
9608
9608
|
}
|
|
9609
|
-
const target = isForeignOriginHref(href) ? href :
|
|
9609
|
+
const target = isForeignOriginHref(href) ? href : _chunk5FV2FQQDcjs.stripSameOriginToPath.call(void 0, href);
|
|
9610
9610
|
if (target.includes("#") && _chunkOJZBZH56cjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX })) {
|
|
9611
9611
|
return;
|
|
9612
9612
|
}
|
|
@@ -9657,8 +9657,8 @@ function useNavLinkViaRuntime({
|
|
|
9657
9657
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
9658
9658
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
9659
9659
|
const panel = useChatPanel();
|
|
9660
|
-
const resolvedHref =
|
|
9661
|
-
const isNewTab =
|
|
9660
|
+
const resolvedHref = _chunk5FV2FQQDcjs.resolveHrefForRuntime.call(void 0, href, runtime);
|
|
9661
|
+
const isNewTab = _chunkC5EPWKM7cjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
9662
9662
|
const onClick = (e) => {
|
|
9663
9663
|
_optionalChain([onClickProp, 'optionalCall', _210 => _210(e)]);
|
|
9664
9664
|
if (e.defaultPrevented) return;
|
|
@@ -9672,7 +9672,7 @@ function useNavLinkViaRuntime({
|
|
|
9672
9672
|
});
|
|
9673
9673
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _211 => _211.closeChat])) panel.closeChat();
|
|
9674
9674
|
};
|
|
9675
|
-
const attrs =
|
|
9675
|
+
const attrs = _chunkC5EPWKM7cjs.newTabAnchorAttrs.call(void 0, isNewTab);
|
|
9676
9676
|
return {
|
|
9677
9677
|
href: resolvedHref,
|
|
9678
9678
|
...attrs,
|
|
@@ -9817,7 +9817,7 @@ function UserDisplay({
|
|
|
9817
9817
|
compact = false,
|
|
9818
9818
|
className
|
|
9819
9819
|
}) {
|
|
9820
|
-
const avatarSrc =
|
|
9820
|
+
const avatarSrc = _chunk5FV2FQQDcjs.useProxiedImageUrl.call(void 0, avatarUrl);
|
|
9821
9821
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) {
|
|
9822
9822
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9823
9823
|
UserDisplaySkeleton,
|
|
@@ -9831,7 +9831,7 @@ function UserDisplay({
|
|
|
9831
9831
|
);
|
|
9832
9832
|
}
|
|
9833
9833
|
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,
|
|
9834
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VXMO4XJcjs.SquareAvatar, { src: avatarSrc || void 0, fallback: name, alt: name, sizePx: size, variant: shape }),
|
|
9835
9835
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: USER_TEXT_CLASS, children: [
|
|
9836
9836
|
/* @__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
9837
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
@@ -9846,10 +9846,10 @@ function UserDisplaySkeleton({
|
|
|
9846
9846
|
className
|
|
9847
9847
|
}) {
|
|
9848
9848
|
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,
|
|
9849
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VXMO4XJcjs.SquareAvatar, { loading: true, sizePx: size, variant: shape }),
|
|
9850
9850
|
/* @__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,
|
|
9851
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: compact ? "h6" : "h4", className: "w-28" }),
|
|
9852
|
+
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-16" })
|
|
9853
9853
|
] })
|
|
9854
9854
|
] });
|
|
9855
9855
|
}
|
|
@@ -10282,7 +10282,7 @@ function CardsStrip(props) {
|
|
|
10282
10282
|
}
|
|
10283
10283
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ManagedCell, { item, ctx, cardWidthMobile, cardWidthDesktop });
|
|
10284
10284
|
};
|
|
10285
|
-
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10285
|
+
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunk5FV2FQQDcjs.SECTION_HEADING_CLASS} break-words`, children: _chunk5FV2FQQDcjs.accentSentenceMarks.call(void 0, title) });
|
|
10286
10286
|
if (items.length === 0) {
|
|
10287
10287
|
if (!inScope || !skeleton) return null;
|
|
10288
10288
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, STRIP_ROOT_CLASS, className), children: [
|
|
@@ -10472,7 +10472,7 @@ var VIDEO_BITES_SKELETON_COUNT = Math.ceil(
|
|
|
10472
10472
|
);
|
|
10473
10473
|
function VideoBitesStrip({
|
|
10474
10474
|
bites,
|
|
10475
|
-
title =
|
|
10475
|
+
title = _chunkC5EPWKM7cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10476
10476
|
showTitle = true,
|
|
10477
10477
|
filterPublished = true,
|
|
10478
10478
|
profile = null,
|
|
@@ -10485,7 +10485,7 @@ function VideoBitesStrip({
|
|
|
10485
10485
|
cardHeightMobile = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX,
|
|
10486
10486
|
showChevrons = true,
|
|
10487
10487
|
onBiteNavigate,
|
|
10488
|
-
sortComparator =
|
|
10488
|
+
sortComparator = _chunkC5EPWKM7cjs.sortBitesByCreatedAtDesc,
|
|
10489
10489
|
skeletonCount,
|
|
10490
10490
|
className
|
|
10491
10491
|
}) {
|
|
@@ -10574,7 +10574,7 @@ function VideoBiteCardSkeleton({ aspect = "9:16", height, heightMobile, classNam
|
|
|
10574
10574
|
{
|
|
10575
10575
|
className: _chunk6YZNUHXTcjs.cn.call(void 0, BITE_MEDIA_CLASS, height !== void 0 && BITE_MEDIA_FIXED_HEIGHT_CLASS),
|
|
10576
10576
|
style: biteMediaStyle(cssAspect, height, heightMobile),
|
|
10577
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10577
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "absolute inset-0 h-full rounded-none" })
|
|
10578
10578
|
}
|
|
10579
10579
|
)
|
|
10580
10580
|
}
|
|
@@ -10583,7 +10583,7 @@ function VideoBiteCardSkeleton({ aspect = "9:16", height, heightMobile, classNam
|
|
|
10583
10583
|
function VideoBitesStripSkeleton({
|
|
10584
10584
|
count = VIDEO_BITES_SKELETON_COUNT,
|
|
10585
10585
|
aspect = "9:16",
|
|
10586
|
-
title =
|
|
10586
|
+
title = _chunkC5EPWKM7cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10587
10587
|
showTitle = true,
|
|
10588
10588
|
headerSlot,
|
|
10589
10589
|
cardHeightDesktop = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX,
|
|
@@ -10715,7 +10715,7 @@ function VideoBiteCard({
|
|
|
10715
10715
|
style: biteMediaStyle(cssAspect, height, heightMobile),
|
|
10716
10716
|
children: [
|
|
10717
10717
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10718
|
-
|
|
10718
|
+
_chunkC5EPWKM7cjs.VideoHoverPreviewSurface,
|
|
10719
10719
|
{
|
|
10720
10720
|
url: bite.url,
|
|
10721
10721
|
posterUrl: bite.thumbnail_url,
|
|
@@ -10787,7 +10787,7 @@ function EntityVideoSection({
|
|
|
10787
10787
|
title = "Video",
|
|
10788
10788
|
videoSummary,
|
|
10789
10789
|
videoBites,
|
|
10790
|
-
bitesTitle =
|
|
10790
|
+
bitesTitle = _chunkC5EPWKM7cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10791
10791
|
filterPublishedBites = true,
|
|
10792
10792
|
bitesProfile = null,
|
|
10793
10793
|
bitesHref,
|
|
@@ -10822,7 +10822,7 @@ function EntityVideoSection({
|
|
|
10822
10822
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
10823
10823
|
] }),
|
|
10824
10824
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10825
|
-
|
|
10825
|
+
_chunkC5EPWKM7cjs.Video,
|
|
10826
10826
|
{
|
|
10827
10827
|
kind: fullVideoKind,
|
|
10828
10828
|
url: fullVideoUrl,
|
|
@@ -10834,7 +10834,7 @@ function EntityVideoSection({
|
|
|
10834
10834
|
}
|
|
10835
10835
|
) }),
|
|
10836
10836
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10837
|
-
|
|
10837
|
+
_chunkC5EPWKM7cjs.Video,
|
|
10838
10838
|
{
|
|
10839
10839
|
url: highlightVideoUrl,
|
|
10840
10840
|
poster: highlightVideoThumbnail,
|
|
@@ -10843,7 +10843,7 @@ function EntityVideoSection({
|
|
|
10843
10843
|
}
|
|
10844
10844
|
) })
|
|
10845
10845
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10846
|
-
|
|
10846
|
+
_chunkC5EPWKM7cjs.Video,
|
|
10847
10847
|
{
|
|
10848
10848
|
kind: fullVideoKind,
|
|
10849
10849
|
url: fullVideoUrl,
|
|
@@ -10854,7 +10854,7 @@ function EntityVideoSection({
|
|
|
10854
10854
|
priority
|
|
10855
10855
|
}
|
|
10856
10856
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10857
|
-
|
|
10857
|
+
_chunkC5EPWKM7cjs.Video,
|
|
10858
10858
|
{
|
|
10859
10859
|
url: highlightVideoUrl,
|
|
10860
10860
|
poster: highlightVideoThumbnail,
|
|
@@ -10864,7 +10864,7 @@ function EntityVideoSection({
|
|
|
10864
10864
|
}
|
|
10865
10865
|
) : null),
|
|
10866
10866
|
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: `${
|
|
10867
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunk5FV2FQQDcjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
10868
10868
|
/* @__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
10869
|
] }),
|
|
10870
10870
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10883,13 +10883,13 @@ function EntityVideoSection({
|
|
|
10883
10883
|
] });
|
|
10884
10884
|
}
|
|
10885
10885
|
function EntityVideoSectionSkeleton({ tabs = false, className }) {
|
|
10886
|
-
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10886
|
+
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.Video, { loading: true, url: "", layout: "centered", className });
|
|
10887
10887
|
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
10888
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TabsList, { className: VIDEO_TAB_LIST_CLASS, children: [
|
|
10889
10889
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "full-video", className: VIDEO_TAB_TRIGGER_CLASS, children: FULL_VIDEO_TAB_LABEL }),
|
|
10890
10890
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
10891
10891
|
] }),
|
|
10892
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10892
|
+
/* @__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
10893
|
] });
|
|
10894
10894
|
}
|
|
10895
10895
|
|
|
@@ -10936,37 +10936,37 @@ function designDocPeople(doc) {
|
|
|
10936
10936
|
return people;
|
|
10937
10937
|
}
|
|
10938
10938
|
function designDocMetaLine(doc) {
|
|
10939
|
-
return [_optionalChain([doc, 'access', _246 => _246.author, 'optionalAccess', _247 => _247.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
10939
|
+
return [_optionalChain([doc, 'access', _246 => _246.author, 'optionalAccess', _247 => _247.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunk5FV2FQQDcjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
10940
10940
|
}
|
|
10941
10941
|
var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
|
|
10942
10942
|
var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
|
|
10943
10943
|
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 ${
|
|
10944
|
+
var DESIGN_DOC_CARD_TITLE_ROW = `flex items-center text-h3 ${_chunkAT4C2YMAcjs.TEXT_LINES_MIN[2]}`;
|
|
10945
|
+
var DESIGN_DOC_CARD_META_ROW = `flex items-center text-h5 ${_chunkAT4C2YMAcjs.TEXT_LINES_MIN[1]}`;
|
|
10946
|
+
var DESIGN_DOC_CARD_SUMMARY_ROW = `flex items-center text-h4 ${_chunkAT4C2YMAcjs.TEXT_LINES_MIN[3]}`;
|
|
10947
10947
|
var DESIGN_DOC_CARD_FOOTER = "flex w-full items-center justify-between gap-2";
|
|
10948
10948
|
function DesignDocCardSkeleton({ className } = {}) {
|
|
10949
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
10949
|
+
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
10950
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
10951
10951
|
/* @__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,
|
|
10952
|
+
/* @__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" }) }),
|
|
10953
|
+
/* @__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
10954
|
] }),
|
|
10955
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10955
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.StatusBadge, { loading: true, text: "", variant: "button", className: "hidden md:inline-flex" })
|
|
10956
10956
|
] }),
|
|
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,
|
|
10957
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.StatusBadge, { loading: true, text: "", variant: "button" }) }),
|
|
10958
|
+
/* @__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
10959
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
10960
10960
|
/* @__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,
|
|
10961
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" }),
|
|
10962
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk72NE4G63cjs.AvatarStack, { loading: true, people: [], max: 1, size: "xs", className: "shrink-0" })
|
|
10963
10963
|
] })
|
|
10964
10964
|
] });
|
|
10965
10965
|
}
|
|
10966
10966
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
10967
10967
|
const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
|
|
10968
10968
|
const people = designDocPeople(doc);
|
|
10969
|
-
const link =
|
|
10969
|
+
const link = _chunkC5EPWKM7cjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
10970
10970
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocCardSkeleton, { className });
|
|
10971
10971
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10972
10972
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
@@ -10975,7 +10975,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
10975
10975
|
/* @__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
10976
|
] }),
|
|
10977
10977
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10978
|
-
|
|
10978
|
+
_chunkC5EPWKM7cjs.StatusBadge,
|
|
10979
10979
|
{
|
|
10980
10980
|
text: readiness.label,
|
|
10981
10981
|
colorScheme: readiness.scheme,
|
|
@@ -10985,15 +10985,15 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
10985
10985
|
}
|
|
10986
10986
|
)
|
|
10987
10987
|
] }),
|
|
10988
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10988
|
+
/* @__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
10989
|
/* @__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
10990
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
10991
10991
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
10992
10992
|
/* @__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,
|
|
10993
|
+
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk72NE4G63cjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
10994
10994
|
] })
|
|
10995
10995
|
] });
|
|
10996
|
-
const outer = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
10996
|
+
const outer = _chunk6YZNUHXTcjs.cn.call(void 0, _chunkC5EPWKM7cjs.CONTENT_CARD_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className);
|
|
10997
10997
|
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
10998
|
}
|
|
10999
10999
|
|
|
@@ -11101,7 +11101,7 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11101
11101
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GitHubActivityCardSkeleton, { variant, className });
|
|
11102
11102
|
const kind = _nullishCoalesce(item.kind, () => ( "commit"));
|
|
11103
11103
|
const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
|
|
11104
|
-
const dateText =
|
|
11104
|
+
const dateText = _chunk7VXMO4XJcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
11105
11105
|
const idLabel = formatActivityId(item.id, kind);
|
|
11106
11106
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
11107
11107
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
@@ -11135,26 +11135,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11135
11135
|
metaParts.push(
|
|
11136
11136
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
11137
11137
|
);
|
|
11138
|
-
const href =
|
|
11138
|
+
const href = _chunkC5EPWKM7cjs.safeHref.call(void 0, item.url);
|
|
11139
11139
|
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: `${
|
|
11140
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
11141
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11142
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
11143
11143
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
11144
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11144
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
11145
11145
|
] }),
|
|
11146
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11146
|
+
/* @__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
11147
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
11148
11148
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
11149
11149
|
] }, i)) }) }),
|
|
11150
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11150
|
+
/* @__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
11151
|
] }),
|
|
11152
11152
|
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
11153
|
] });
|
|
11154
11154
|
if (anchorProps) {
|
|
11155
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11155
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
11156
11156
|
}
|
|
11157
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
11157
|
+
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
11158
|
}
|
|
11159
11159
|
function GitHubActivityCardSkeleton({
|
|
11160
11160
|
variant = "compact",
|
|
@@ -11162,18 +11162,18 @@ function GitHubActivityCardSkeleton({
|
|
|
11162
11162
|
}) {
|
|
11163
11163
|
if (variant === "row") {
|
|
11164
11164
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11165
|
-
|
|
11165
|
+
_chunkC5EPWKM7cjs.ActivityRowSkeleton,
|
|
11166
11166
|
{
|
|
11167
11167
|
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,
|
|
11168
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 rounded" }),
|
|
11169
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "h-3 w-16 rounded" })
|
|
11170
11170
|
] }),
|
|
11171
11171
|
trailingWidths: ["w-40", "w-20"],
|
|
11172
11172
|
className
|
|
11173
11173
|
}
|
|
11174
11174
|
);
|
|
11175
11175
|
}
|
|
11176
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11176
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.CompactCardSkeleton, { titleWidth: "w-2/3", rows: [{ width: "w-1/2" }, {}], trailingIcon: true, className });
|
|
11177
11177
|
}
|
|
11178
11178
|
|
|
11179
11179
|
// src/utils/url-fix.ts
|
|
@@ -11249,7 +11249,7 @@ function VendorIconSkeleton({
|
|
|
11249
11249
|
...props
|
|
11250
11250
|
}) {
|
|
11251
11251
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11252
|
-
|
|
11252
|
+
_chunkAT4C2YMAcjs.UnifiedSkeleton,
|
|
11253
11253
|
{
|
|
11254
11254
|
className: _chunk6YZNUHXTcjs.cn.call(void 0, sizeClasses[size], "flex-shrink-0 rounded-lg", className),
|
|
11255
11255
|
..._chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props)
|
|
@@ -11267,7 +11267,7 @@ function VendorIcon({
|
|
|
11267
11267
|
}) {
|
|
11268
11268
|
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || !!loadingProp;
|
|
11269
11269
|
const logoUrl = getVendorLogo(vendor);
|
|
11270
|
-
const logoSrc =
|
|
11270
|
+
const logoSrc = _chunk5FV2FQQDcjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
|
|
11271
11271
|
const { width, height } = showBackground ? imageSizeMap[size] : { width: tilePxMap[size], height: tilePxMap[size] };
|
|
11272
11272
|
const containerClasses = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
11273
11273
|
sizeClasses[size],
|
|
@@ -11279,7 +11279,7 @@ function VendorIcon({
|
|
|
11279
11279
|
const markers = _chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props);
|
|
11280
11280
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIconSkeleton, { size, className, ...markers });
|
|
11281
11281
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: containerClasses, ...markers, children: logoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11282
|
-
|
|
11282
|
+
_chunkDRWPSN3Acjs.next_image_default,
|
|
11283
11283
|
{
|
|
11284
11284
|
src: logoSrc,
|
|
11285
11285
|
alt: `${vendor.title} logo`,
|
|
@@ -11311,8 +11311,8 @@ function useChatCardItem(type, id) {
|
|
|
11311
11311
|
const res = await _chunk5GJM7VRRcjs.embedAuthedFetch.call(void 0, url);
|
|
11312
11312
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
11313
11313
|
const data = await res.json();
|
|
11314
|
-
const items =
|
|
11315
|
-
const match = items.find((it) =>
|
|
11314
|
+
const items = _chunk5FV2FQQDcjs.extractCardItems.call(void 0, type, data);
|
|
11315
|
+
const match = items.find((it) => _chunk5FV2FQQDcjs.extractItemId.call(void 0, type, it) === id);
|
|
11316
11316
|
return _nullishCoalesce(match, () => ( null));
|
|
11317
11317
|
},
|
|
11318
11318
|
enabled: !!url && id.length > 0,
|
|
@@ -11354,9 +11354,9 @@ var TRAILING_CELL_LAYOUT = "w-[56px] md:w-[68px]";
|
|
|
11354
11354
|
function CardMedia({ imageSrc, imageAlt, icon }) {
|
|
11355
11355
|
if (imageSrc) {
|
|
11356
11356
|
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:
|
|
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: _chunk7VXMO4XJcjs.personInitials.call(void 0, imageAlt) || "?" }),
|
|
11358
11358
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11359
|
-
|
|
11359
|
+
_chunkDRWPSN3Acjs.next_image_default,
|
|
11360
11360
|
{
|
|
11361
11361
|
src: imageSrc,
|
|
11362
11362
|
alt: imageAlt || "",
|
|
@@ -11386,12 +11386,12 @@ function MingoInfoCardSkeleton({ className }) {
|
|
|
11386
11386
|
className
|
|
11387
11387
|
),
|
|
11388
11388
|
children: [
|
|
11389
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11389
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { as: "span", className: "block size-10 shrink-0 rounded-md border border-ods-border" }),
|
|
11390
11390
|
/* @__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,
|
|
11391
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { as: "span", className: "block h-4 w-1/2 rounded" }),
|
|
11392
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { as: "span", className: "block h-3 w-3/4 rounded" })
|
|
11393
11393
|
] }),
|
|
11394
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11394
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { as: "span", className: "block h-5 w-16 shrink-0 rounded" })
|
|
11395
11395
|
]
|
|
11396
11396
|
}
|
|
11397
11397
|
);
|
|
@@ -11426,7 +11426,7 @@ function MingoInfoCard({
|
|
|
11426
11426
|
status ? (
|
|
11427
11427
|
// Reuse the shared Tag palette (single source of truth for colours)
|
|
11428
11428
|
// without rendering Tag's `<div>` — span-only for `<p>` validity.
|
|
11429
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
11429
|
+
/* @__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
11430
|
) : null
|
|
11431
11431
|
] });
|
|
11432
11432
|
const contentClass = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
@@ -11518,7 +11518,7 @@ function resolveFetchedCardHref({
|
|
|
11518
11518
|
composeContentUrl
|
|
11519
11519
|
}) {
|
|
11520
11520
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
11521
|
-
const canonicalType =
|
|
11521
|
+
const canonicalType = _chunk5FV2FQQDcjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
11522
11522
|
return composeContentUrl({
|
|
11523
11523
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
11524
11524
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -11568,16 +11568,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11568
11568
|
if (docTarget) {
|
|
11569
11569
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
11570
11570
|
const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
11571
|
-
href = _nullishCoalesce(
|
|
11571
|
+
href = _nullishCoalesce(_chunkC5EPWKM7cjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11572
11572
|
targetPlatform = docTarget.platform;
|
|
11573
11573
|
} else if (ctx.chipBasePlatform) {
|
|
11574
11574
|
const base = `${getPlatformUrl(ctx.chipBasePlatform)}/knowledge-base/`;
|
|
11575
|
-
href = _nullishCoalesce(
|
|
11575
|
+
href = _nullishCoalesce(_chunkC5EPWKM7cjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11576
11576
|
targetPlatform = ctx.chipBasePlatform;
|
|
11577
11577
|
} else if (ctx.baseRoute) {
|
|
11578
11578
|
const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
|
|
11579
11579
|
const absolute = new URL(safePath, synthetic).toString();
|
|
11580
|
-
href = _nullishCoalesce(
|
|
11580
|
+
href = _nullishCoalesce(_chunkC5EPWKM7cjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
|
|
11581
11581
|
targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
|
|
11582
11582
|
}
|
|
11583
11583
|
}
|
|
@@ -11586,15 +11586,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11586
11586
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
11587
11587
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
11588
11588
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
11589
|
-
type:
|
|
11589
|
+
type: _chunk5FV2FQQDcjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
11590
11590
|
identifier: idValue,
|
|
11591
11591
|
externalUrl: row.externalUrl,
|
|
11592
11592
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
11593
11593
|
});
|
|
11594
|
-
href = composed.href ? _nullishCoalesce(
|
|
11594
|
+
href = composed.href ? _nullishCoalesce(_chunkC5EPWKM7cjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
11595
11595
|
targetPlatform = composed.targetPlatform;
|
|
11596
11596
|
} else if (row.externalUrl) {
|
|
11597
|
-
href = _nullishCoalesce(
|
|
11597
|
+
href = _nullishCoalesce(_chunkC5EPWKM7cjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
11598
11598
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
11599
11599
|
}
|
|
11600
11600
|
const documentType = row.documentType;
|
|
@@ -11661,7 +11661,7 @@ function resolveCardDestination({
|
|
|
11661
11661
|
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _261 => _261.fallbackHref, 'optionalCall', _262 => _262(item)]), () => ( null)),
|
|
11662
11662
|
allowComposed: !entry.noComposedHref
|
|
11663
11663
|
});
|
|
11664
|
-
const url = choice ? _nullishCoalesce(
|
|
11664
|
+
const url = choice ? _nullishCoalesce(_chunkC5EPWKM7cjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
11665
11665
|
if (choice && url) {
|
|
11666
11666
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
11667
11667
|
}
|
|
@@ -11674,11 +11674,11 @@ function resolveCardDestination({
|
|
|
11674
11674
|
|
|
11675
11675
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
11676
11676
|
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:
|
|
11677
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11678
|
+
/* @__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" }) }),
|
|
11679
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11680
|
+
/* @__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()}` }) }),
|
|
11681
|
+
/* @__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
11682
|
label,
|
|
11683
11683
|
" deleted",
|
|
11684
11684
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -11724,7 +11724,7 @@ function GitHubChatCard({
|
|
|
11724
11724
|
const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
|
|
11725
11725
|
const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
|
|
11726
11726
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
11727
|
-
const dateText =
|
|
11727
|
+
const dateText = _chunk7VXMO4XJcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
|
|
11728
11728
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
11729
11729
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11730
11730
|
MingoInfoCard,
|
|
@@ -11733,7 +11733,7 @@ function GitHubChatCard({
|
|
|
11733
11733
|
description,
|
|
11734
11734
|
icon: githubKindIcon(kind),
|
|
11735
11735
|
status,
|
|
11736
|
-
anchorProps:
|
|
11736
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11737
11737
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11738
11738
|
menuAriaLabel: "Activity actions"
|
|
11739
11739
|
}
|
|
@@ -11880,7 +11880,7 @@ function HubspotTicketChatCard({
|
|
|
11880
11880
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11881
11881
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
11882
11882
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
11883
|
-
anchorProps:
|
|
11883
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11884
11884
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
11885
11885
|
label: "Open Ticket Details",
|
|
11886
11886
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -11903,7 +11903,7 @@ function FaqChatCard({
|
|
|
11903
11903
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11904
11904
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
11905
11905
|
status: { label: statusLabel, variant: "grey" },
|
|
11906
|
-
anchorProps:
|
|
11906
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11907
11907
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11908
11908
|
menuAriaLabel: "FAQ actions"
|
|
11909
11909
|
}
|
|
@@ -11923,7 +11923,7 @@ function SlackChatCard({
|
|
|
11923
11923
|
title,
|
|
11924
11924
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11925
11925
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
11926
|
-
anchorProps:
|
|
11926
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11927
11927
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11928
11928
|
menuAriaLabel: "Message actions"
|
|
11929
11929
|
}
|
|
@@ -11941,7 +11941,7 @@ function GlyphChatCard({
|
|
|
11941
11941
|
title: chatRef.title,
|
|
11942
11942
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11943
11943
|
icon,
|
|
11944
|
-
anchorProps:
|
|
11944
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11945
11945
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11946
11946
|
menuAriaLabel: "Card actions"
|
|
11947
11947
|
}
|
|
@@ -11959,20 +11959,20 @@ function TrustCenterChatCard({
|
|
|
11959
11959
|
}) {
|
|
11960
11960
|
const raw2 = _optionalChain([item, 'optionalAccess', _286 => _286.frameworks]);
|
|
11961
11961
|
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
11962
|
-
const summary =
|
|
11962
|
+
const summary = _chunk5FV2FQQDcjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
11963
11963
|
const leadFramework = frameworks[0];
|
|
11964
11964
|
const lead = leadFramework ? {
|
|
11965
|
-
label:
|
|
11966
|
-
color:
|
|
11965
|
+
label: _chunk5FV2FQQDcjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
11966
|
+
color: _chunk5FV2FQQDcjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
11967
11967
|
} : void 0;
|
|
11968
11968
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11969
11969
|
MingoInfoCard,
|
|
11970
11970
|
{
|
|
11971
|
-
title:
|
|
11972
|
-
description: summary ||
|
|
11971
|
+
title: _chunk5FV2FQQDcjs.TRUST_CENTER_TITLE,
|
|
11972
|
+
description: summary || _chunk5FV2FQQDcjs.TRUST_CENTER_TAGLINE,
|
|
11973
11973
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
11974
11974
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
11975
|
-
anchorProps:
|
|
11975
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11976
11976
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
11977
11977
|
label: "View trust center",
|
|
11978
11978
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -11994,7 +11994,7 @@ function DataRoomDocChatCard({
|
|
|
11994
11994
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11995
11995
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
11996
11996
|
status: { label: badgeText, variant: "grey" },
|
|
11997
|
-
anchorProps:
|
|
11997
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11998
11998
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11999
11999
|
menuAriaLabel: "Document actions"
|
|
12000
12000
|
}
|
|
@@ -12013,7 +12013,7 @@ function GenericFinancialChatCard({
|
|
|
12013
12013
|
title: chatRef.title,
|
|
12014
12014
|
description: subtitle,
|
|
12015
12015
|
icon,
|
|
12016
|
-
anchorProps:
|
|
12016
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12017
12017
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12018
12018
|
menuAriaLabel: "Document actions"
|
|
12019
12019
|
}
|
|
@@ -12099,7 +12099,7 @@ function CampaignChatCard({
|
|
|
12099
12099
|
}) {
|
|
12100
12100
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _292 => _292.goals])) ? item.goals.length : 0;
|
|
12101
12101
|
const meta = [
|
|
12102
|
-
_optionalChain([item, 'optionalAccess', _293 => _293.start_date]) ?
|
|
12102
|
+
_optionalChain([item, 'optionalAccess', _293 => _293.start_date]) ? _chunk5FV2FQQDcjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
12103
12103
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
12104
12104
|
"Marketing campaign"
|
|
12105
12105
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -12138,7 +12138,7 @@ function EntityMingoCard({
|
|
|
12138
12138
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
12139
12139
|
icon: fallbackIcon,
|
|
12140
12140
|
status,
|
|
12141
|
-
anchorProps:
|
|
12141
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12142
12142
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
12143
12143
|
menuAriaLabel
|
|
12144
12144
|
}
|
|
@@ -12150,7 +12150,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
12150
12150
|
function statusPill(status) {
|
|
12151
12151
|
const s = typeof status === "string" ? status.trim() : "";
|
|
12152
12152
|
if (!s) return void 0;
|
|
12153
|
-
const scheme =
|
|
12153
|
+
const scheme = _chunk5FV2FQQDcjs.getStatusColorScheme.call(void 0, s);
|
|
12154
12154
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
12155
12155
|
return { label: s, variant };
|
|
12156
12156
|
}
|
|
@@ -12241,7 +12241,7 @@ function DesignDocChatCard({
|
|
|
12241
12241
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
12242
12242
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12243
12243
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
12244
|
-
anchorProps:
|
|
12244
|
+
anchorProps: _chunkC5EPWKM7cjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab),
|
|
12245
12245
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
12246
12246
|
menuAriaLabel: "Design doc actions"
|
|
12247
12247
|
}
|
|
@@ -12259,7 +12259,7 @@ function InvestorUpdateChatCard({
|
|
|
12259
12259
|
EntityMingoCard,
|
|
12260
12260
|
{
|
|
12261
12261
|
title,
|
|
12262
|
-
description: _optionalChain([item, 'optionalAccess', _323 => _323.strategic_update]) || _optionalChain([item, 'optionalAccess', _324 => _324.content]) ||
|
|
12262
|
+
description: _optionalChain([item, 'optionalAccess', _323 => _323.strategic_update]) || _optionalChain([item, 'optionalAccess', _324 => _324.content]) || _chunk5FV2FQQDcjs.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
12263
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _327 => _327.featured_image]), ogPlaceholder),
|
|
12264
12264
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
12265
12265
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -12303,7 +12303,7 @@ function ProgramChatCard({
|
|
|
12303
12303
|
discuss
|
|
12304
12304
|
}) {
|
|
12305
12305
|
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 } =
|
|
12306
|
+
const { line: meta } = _chunk5FV2FQQDcjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunk5FV2FQQDcjs.programMetaFormatters.call(void 0, _chunk5FV2FQQDcjs.PROGRAM_META_RENDERERS));
|
|
12307
12307
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12308
12308
|
EntityMingoCard,
|
|
12309
12309
|
{
|
|
@@ -12329,10 +12329,10 @@ function RoadmapChatCard({
|
|
|
12329
12329
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _337 => _337.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
12330
12330
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _338 => _338.customItemId]) != null;
|
|
12331
12331
|
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,
|
|
12332
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5FV2FQQDcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _339 => _339.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
12333
12333
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
12334
12334
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
12335
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12335
|
+
/* @__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
12336
|
) : defaultIcon;
|
|
12337
12337
|
const clickupHref = clickupTaskUrl(chatRef.id);
|
|
12338
12338
|
const clickupIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk27TMRMOMcjs.ClickupLogoIcon, { size: 20 });
|
|
@@ -12395,11 +12395,11 @@ function refText(ref, key) {
|
|
|
12395
12395
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
12396
12396
|
}
|
|
12397
12397
|
function VendorGlyph({ title, logoUrl }) {
|
|
12398
|
-
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12398
|
+
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
|
|
12399
12399
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
12400
12400
|
}
|
|
12401
12401
|
function SitePageGlyph({ iconName }) {
|
|
12402
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12402
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
|
|
12403
12403
|
}
|
|
12404
12404
|
var GITHUB_CARD_CONFIGS = {
|
|
12405
12405
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -12516,7 +12516,7 @@ function programRegistryEntries() {
|
|
|
12516
12516
|
label: cfg.label,
|
|
12517
12517
|
contentRefType: cfg.contentRefType,
|
|
12518
12518
|
bareInline: true,
|
|
12519
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12519
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5FV2FQQDcjs.ProgramCard, { loading: true, size: "sm" }),
|
|
12520
12520
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12521
12521
|
ProgramChatCard,
|
|
12522
12522
|
{
|
|
@@ -12557,7 +12557,7 @@ function roadmapRegistryEntries() {
|
|
|
12557
12557
|
bareInline: true,
|
|
12558
12558
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
12559
12559
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
12560
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12560
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5FV2FQQDcjs.RoadmapCard, { loading: true, size: "sm" }),
|
|
12561
12561
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12562
12562
|
RoadmapChatCard,
|
|
12563
12563
|
{
|
|
@@ -12615,12 +12615,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12615
12615
|
// projection route; `extractCardItems` turns its object payload into the
|
|
12616
12616
|
// single matched row. Destination is the public page unless the host
|
|
12617
12617
|
// re-homes the type (`composeContentUrl` override).
|
|
12618
|
-
[
|
|
12618
|
+
[_chunk5FV2FQQDcjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
12619
12619
|
label: "Trust center",
|
|
12620
12620
|
bareInline: true,
|
|
12621
|
-
contentRefType:
|
|
12621
|
+
contentRefType: _chunk5FV2FQQDcjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
12622
12622
|
noComposedHref: true,
|
|
12623
|
-
fallbackHref: () =>
|
|
12623
|
+
fallbackHref: () => _chunk5FV2FQQDcjs.TRUST_CENTER_PAGE_PATH,
|
|
12624
12624
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
12625
12625
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
12626
12626
|
},
|
|
@@ -12646,7 +12646,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12646
12646
|
label: "Blog post",
|
|
12647
12647
|
contentRefType: "blog_post_existing",
|
|
12648
12648
|
bareInline: true,
|
|
12649
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12649
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5FV2FQQDcjs.BlogCard, { loading: true, size: "sm" }),
|
|
12650
12650
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12651
12651
|
BlogChatCard,
|
|
12652
12652
|
{
|
|
@@ -12663,7 +12663,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12663
12663
|
label: "Case study",
|
|
12664
12664
|
contentRefType: "case_study",
|
|
12665
12665
|
bareInline: true,
|
|
12666
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12666
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.CaseStudyCard, { loading: true, size: "sm" }),
|
|
12667
12667
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12668
12668
|
CaseStudyChatCard,
|
|
12669
12669
|
{
|
|
@@ -12688,7 +12688,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12688
12688
|
label: "Customer interview",
|
|
12689
12689
|
contentRefType: "customer_interview",
|
|
12690
12690
|
bareInline: true,
|
|
12691
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12691
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5FV2FQQDcjs.CustomerInterviewCard, { loading: true, size: "sm" }),
|
|
12692
12692
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12693
12693
|
CustomerInterviewChatCard,
|
|
12694
12694
|
{
|
|
@@ -12704,9 +12704,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12704
12704
|
label: "Product release",
|
|
12705
12705
|
contentRefType: "product_release",
|
|
12706
12706
|
bareInline: true,
|
|
12707
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12707
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5FV2FQQDcjs.ProductReleaseCard, { loading: true, size: "sm" }),
|
|
12708
12708
|
render: (item, chatRef, opts) => {
|
|
12709
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _380 => _380.extras, 'optionalAccess', _381 => _381.buildProductReleaseCardProps]), () => (
|
|
12709
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _380 => _380.extras, 'optionalAccess', _381 => _381.buildProductReleaseCardProps]), () => ( _chunk5FV2FQQDcjs.defaultBuildProductReleaseCardProps));
|
|
12710
12710
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12711
12711
|
ProductReleaseChatCard,
|
|
12712
12712
|
{
|
|
@@ -12724,7 +12724,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12724
12724
|
label: "Investor update",
|
|
12725
12725
|
contentRefType: "investor_update",
|
|
12726
12726
|
bareInline: true,
|
|
12727
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12727
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5FV2FQQDcjs.InvestorUpdateCard, { loading: true, size: "sm" }),
|
|
12728
12728
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12729
12729
|
InvestorUpdateChatCard,
|
|
12730
12730
|
{
|
|
@@ -12742,7 +12742,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12742
12742
|
bareInline: true,
|
|
12743
12743
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
12744
12744
|
displayAction: true,
|
|
12745
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12745
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5FV2FQQDcjs.OnboardingGuideCard, { loading: true, size: "sm" }),
|
|
12746
12746
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12747
12747
|
OnboardingGuideChatCard,
|
|
12748
12748
|
{
|
|
@@ -12815,7 +12815,7 @@ function ChatCardLoader({
|
|
|
12815
12815
|
entry: fetchEntry,
|
|
12816
12816
|
ctx: sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform }),
|
|
12817
12817
|
composeContentUrl: runtime.composeContentUrl,
|
|
12818
|
-
resolveHref: (href) =>
|
|
12818
|
+
resolveHref: (href) => _chunk5FV2FQQDcjs.resolveHrefForRuntime.call(void 0, href, runtime)
|
|
12819
12819
|
});
|
|
12820
12820
|
const hrefResolvedChatRef = {
|
|
12821
12821
|
...chatRef,
|
|
@@ -12826,12 +12826,12 @@ function ChatCardLoader({
|
|
|
12826
12826
|
};
|
|
12827
12827
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
12828
12828
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
12829
|
-
const isNewTab =
|
|
12829
|
+
const isNewTab = _chunkC5EPWKM7cjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
12830
12830
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
12831
12831
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
12832
12832
|
const discuss = discussFn ? {
|
|
12833
12833
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
12834
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12834
|
+
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
12835
|
run: () => discussFn(finalChatRef)
|
|
12836
12836
|
} : void 0;
|
|
12837
12837
|
const renderOpts = {
|
|
@@ -12940,12 +12940,12 @@ function makeBatchDedupKey(item) {
|
|
|
12940
12940
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
12941
12941
|
}
|
|
12942
12942
|
function getChatTypeMessageType(chatType) {
|
|
12943
|
-
return chatType ===
|
|
12943
|
+
return chatType === _chunkZCMXBX4Zcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
12944
12944
|
}
|
|
12945
12945
|
function useChunkCatchup({
|
|
12946
12946
|
dialogId,
|
|
12947
12947
|
onChunkReceived,
|
|
12948
|
-
chatTypes = [
|
|
12948
|
+
chatTypes = [_chunkZCMXBX4Zcjs.CHAT_TYPE.CLIENT],
|
|
12949
12949
|
fetchChunks
|
|
12950
12950
|
}) {
|
|
12951
12951
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -13906,7 +13906,7 @@ function useChatAttachmentImageGallery() {
|
|
|
13906
13906
|
return () => root.removeEventListener("click", onClick);
|
|
13907
13907
|
}, [viewUrlPrefix]);
|
|
13908
13908
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13909
|
-
|
|
13909
|
+
_chunk5FV2FQQDcjs.ImageGalleryModal,
|
|
13910
13910
|
{
|
|
13911
13911
|
images: state.images,
|
|
13912
13912
|
isOpen: state.isOpen,
|
|
@@ -15068,7 +15068,7 @@ function nullableText(value) {
|
|
|
15068
15068
|
}
|
|
15069
15069
|
function httpsUrl(value) {
|
|
15070
15070
|
const candidate = text(value);
|
|
15071
|
-
if (!candidate ||
|
|
15071
|
+
if (!candidate || _chunkC5EPWKM7cjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
15072
15072
|
try {
|
|
15073
15073
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
15074
15074
|
} catch (e17) {
|
|
@@ -15652,7 +15652,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15652
15652
|
const status = approvalStatuses[requestId] || "pending";
|
|
15653
15653
|
if (!displayInline(approvalType)) {
|
|
15654
15654
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
15655
|
-
const summary = required ?
|
|
15655
|
+
const summary = required ? _chunkBIYLAAFIcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
15656
15656
|
pendingEscalated.set(requestId, {
|
|
15657
15657
|
command: summary,
|
|
15658
15658
|
explanation: _optionalChain([required, 'optionalAccess', _536 => _536.toolExplanation]),
|
|
@@ -15685,7 +15685,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15685
15685
|
if (!call.requiresApproval) continue;
|
|
15686
15686
|
segments = accumulator.addApprovalRequest(
|
|
15687
15687
|
requestId,
|
|
15688
|
-
|
|
15688
|
+
_chunkBIYLAAFIcjs.getCommandText.call(void 0, call),
|
|
15689
15689
|
call.toolExplanation,
|
|
15690
15690
|
approvalType,
|
|
15691
15691
|
status,
|
|
@@ -15764,7 +15764,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15764
15764
|
if (!call.requiresApproval) continue;
|
|
15765
15765
|
segments = accumulator.addApprovalRequest(
|
|
15766
15766
|
requestId,
|
|
15767
|
-
|
|
15767
|
+
_chunkBIYLAAFIcjs.getCommandText.call(void 0, call),
|
|
15768
15768
|
call.toolExplanation,
|
|
15769
15769
|
escalatedData.approvalType,
|
|
15770
15770
|
status
|
|
@@ -18062,12 +18062,12 @@ function decodeNatsChunk(chunk) {
|
|
|
18062
18062
|
|
|
18063
18063
|
// src/components/chat/utils/process-historical-messages.ts
|
|
18064
18064
|
function getOwnerDisplayName(owner) {
|
|
18065
|
-
if (_optionalChain([owner, 'optionalAccess', _614 => _614.type]) ===
|
|
18065
|
+
if (_optionalChain([owner, 'optionalAccess', _614 => _614.type]) === _chunkZCMXBX4Zcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
18066
18066
|
const { firstName, lastName } = owner.user;
|
|
18067
18067
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
18068
18068
|
if (name) return name;
|
|
18069
18069
|
}
|
|
18070
|
-
return _optionalChain([owner, 'optionalAccess', _615 => _615.type]) ===
|
|
18070
|
+
return _optionalChain([owner, 'optionalAccess', _615 => _615.type]) === _chunkZCMXBX4Zcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
18071
18071
|
}
|
|
18072
18072
|
function getOwnerAvatar(owner) {
|
|
18073
18073
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _616 => _616.user, 'optionalAccess', _617 => _617.image, 'optionalAccess', _618 => _618.imageUrl]), () => ( void 0));
|
|
@@ -18330,7 +18330,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18330
18330
|
if (!call.requiresApproval) continue;
|
|
18331
18331
|
accumulator.addApprovalRequest(
|
|
18332
18332
|
event.requestId,
|
|
18333
|
-
|
|
18333
|
+
_chunkBIYLAAFIcjs.getCommandText.call(void 0, call),
|
|
18334
18334
|
call.toolExplanation,
|
|
18335
18335
|
approvalType,
|
|
18336
18336
|
status,
|
|
@@ -18391,7 +18391,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18391
18391
|
if (!call.requiresApproval) continue;
|
|
18392
18392
|
accumulator.addApprovalRequest(
|
|
18393
18393
|
requestId,
|
|
18394
|
-
|
|
18394
|
+
_chunkBIYLAAFIcjs.getCommandText.call(void 0, call),
|
|
18395
18395
|
call.toolExplanation,
|
|
18396
18396
|
escalatedData.approvalType,
|
|
18397
18397
|
status
|
|
@@ -18499,10 +18499,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18499
18499
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
18500
18500
|
return;
|
|
18501
18501
|
}
|
|
18502
|
-
const isUserMessage = _optionalChain([msg, 'access', _631 => _631.owner, 'optionalAccess', _632 => _632.type]) ===
|
|
18502
|
+
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
18503
|
if (isUserMessage) {
|
|
18504
18504
|
flushAssistantMessage();
|
|
18505
|
-
const userAuthorType = _optionalChain([msg, 'access', _635 => _635.owner, 'optionalAccess', _636 => _636.type]) ===
|
|
18505
|
+
const userAuthorType = _optionalChain([msg, 'access', _635 => _635.owner, 'optionalAccess', _636 => _636.type]) === _chunkZCMXBX4Zcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
18506
18506
|
messageDataArray.forEach((data) => {
|
|
18507
18507
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
18508
18508
|
const rawContext = data.contextItems;
|
|
@@ -18553,7 +18553,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18553
18553
|
});
|
|
18554
18554
|
const nextMsg = messages[index + 1];
|
|
18555
18555
|
const isLastMessage = index === messages.length - 1;
|
|
18556
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _639 => _639.owner, 'optionalAccess', _640 => _640.type]) ===
|
|
18556
|
+
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
18557
|
if (isLastMessage || nextIsFromUser) {
|
|
18558
18558
|
flushAssistantMessage();
|
|
18559
18559
|
}
|