@flamingo-stack/openframe-frontend-core 0.0.784 → 0.0.785
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/case-study-card-236RTB5D.cjs +23 -0
- package/dist/{chunk-4LQKUZQL.cjs → chunk-2JDK4FWV.cjs} +209 -209
- package/dist/{chunk-KVPHCBQV.cjs → chunk-2PMLX52X.cjs} +46 -46
- package/dist/{chunk-CBKXU77H.cjs → chunk-2U4H74KS.cjs} +45 -45
- package/dist/{chunk-GI5QCHOV.cjs → chunk-3ITHC2Y4.cjs} +6 -6
- package/dist/{chunk-ODDUGLYF.cjs → chunk-3SENOTWT.cjs} +110 -110
- package/dist/{chunk-5WMRVMXH.cjs → chunk-4ZHLORL3.cjs} +5 -5
- package/dist/{chunk-XVFESSEB.cjs → chunk-55KZW2P2.cjs} +31 -31
- package/dist/{chunk-4MQASMIU.cjs → chunk-5CAQZRVN.cjs} +7 -7
- package/dist/{chunk-GTYVI4QR.cjs → chunk-5PVYYZEK.cjs} +37 -37
- package/dist/{chunk-UPQMFK5B.cjs → chunk-5Z77NJZF.cjs} +7 -7
- package/dist/{chunk-JYLECAIR.cjs → chunk-7FCOQCAK.cjs} +61 -61
- package/dist/{chunk-EFCWHAYC.cjs → chunk-7QK4R7UU.cjs} +8 -8
- package/dist/{chunk-YXZOP726.cjs → chunk-7W3NVU4V.cjs} +10 -10
- package/dist/{chunk-MKF6XX5A.cjs → chunk-BP7GLDRJ.cjs} +63 -63
- package/dist/{chunk-NZJ5WW2D.cjs → chunk-BQDO7PU7.cjs} +51 -51
- package/dist/{chunk-FQE5MGRD.cjs → chunk-DGUZUOWN.cjs} +42 -42
- package/dist/{chunk-A3UZFFR3.cjs → chunk-DNB5DELQ.cjs} +3 -3
- package/dist/{chunk-V5PJQ4C2.cjs → chunk-EIXFIGLX.cjs} +13 -13
- package/dist/{chunk-5XAWVXNI.cjs → chunk-EOZ23WOY.cjs} +320 -320
- package/dist/{chunk-WMXNSSJZ.cjs → chunk-EQKMFQ5J.cjs} +535 -535
- package/dist/{chunk-L33AEGH4.cjs → chunk-FDPAD7GS.cjs} +44 -44
- package/dist/{chunk-N5TPRCSS.cjs → chunk-FFW3IY5E.cjs} +60 -60
- package/dist/{chunk-4DKPNN2A.cjs → chunk-G7COLTR6.cjs} +17 -17
- package/dist/{chunk-3INHO6GP.cjs → chunk-GX6YLDAS.cjs} +22 -22
- package/dist/{chunk-BE4OUWTA.cjs → chunk-HAAQUV3O.cjs} +54 -54
- package/dist/{chunk-4DQ4CNAG.cjs → chunk-HE6UVP6R.cjs} +10 -10
- package/dist/{chunk-FLS6DZEN.cjs → chunk-IZXVGIQX.cjs} +44 -44
- package/dist/{chunk-LUWYWYNC.cjs → chunk-J4ZNQ55O.cjs} +2 -2
- package/dist/{chunk-OMTH355I.cjs → chunk-JHY6H2XR.cjs} +3 -3
- package/dist/{chunk-WSBWP7IW.cjs → chunk-JSNLMPXN.cjs} +3 -3
- package/dist/{chunk-4T2ZBCVJ.cjs → chunk-JZUBBNTT.cjs} +110 -110
- package/dist/{chunk-ZJS45HQZ.cjs → chunk-KKD7XV5A.cjs} +29 -29
- package/dist/{chunk-ZFOMRALU.cjs → chunk-L4ORB5RP.cjs} +16 -16
- package/dist/{chunk-CZPUVFON.cjs → chunk-LCPJNG5M.cjs} +115 -115
- package/dist/{chunk-NNNRN4OF.cjs → chunk-LCSYTFFO.cjs} +14 -14
- package/dist/{chunk-N2SVJJLU.cjs → chunk-MZOODES3.cjs} +5 -5
- package/dist/{chunk-MYXC6PEG.cjs → chunk-NVWROBPF.cjs} +2014 -2014
- package/dist/{chunk-MGEUZRNQ.cjs → chunk-NWNC22IZ.cjs} +4 -3
- package/dist/{chunk-6F3IS3RD.cjs → chunk-NXUL4W7Q.cjs} +13 -13
- package/dist/{chunk-CBDSML44.cjs → chunk-OOSSOL7E.cjs} +172 -174
- package/dist/{chunk-F2FFJWOQ.cjs → chunk-PCBKE6LA.cjs} +4 -4
- package/dist/{chunk-MZQGHDTE.cjs → chunk-Q73MAT62.cjs} +3 -3
- package/dist/{chunk-DYF6XB27.cjs → chunk-QWVVXXFG.cjs} +4 -4
- package/dist/{chunk-CS5SZJFV.cjs → chunk-RU37NNZG.cjs} +2 -2
- package/dist/{chunk-EHQ2UGT4.cjs → chunk-TC2T5Q7M.cjs} +15 -15
- package/dist/{chunk-GMIXTXAO.cjs → chunk-TRV5GGOH.cjs} +61 -61
- package/dist/{chunk-FS7CBRF4.cjs → chunk-UVPV6TUI.cjs} +23 -23
- package/dist/{chunk-RT6QATX4.cjs → chunk-WLHHXAT7.cjs} +19 -19
- package/dist/{chunk-U5R4MY4F.cjs → chunk-WNKOWR3E.cjs} +4 -4
- package/dist/{chunk-XAA5LUHC.cjs → chunk-Y6KZFPZN.cjs} +12 -12
- package/dist/{chunk-STYH4ISW.cjs → chunk-YCSX7MCG.cjs} +197 -197
- package/dist/{cloud-tenants-HUFCDOSC.cjs → cloud-tenants-TJSSGC5O.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/contact/index.cjs +33 -33
- package/dist/components/docs/index.cjs +36 -36
- package/dist/components/embeds/index.cjs +33 -33
- package/dist/components/faq/index.cjs +34 -34
- package/dist/components/features/index.cjs +32 -32
- package/dist/components/help-center-pages/index.cjs +163 -163
- package/dist/components/index.cjs +204 -204
- package/dist/components/meeting-scheduler/index.cjs +187 -187
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/navigation/navigation-sidebar-item.js +1 -3
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/product-demo/index.cjs +45 -45
- package/dist/components/related-content/index.cjs +17 -17
- package/dist/components/tickets/index.cjs +39 -39
- package/dist/components/ui/autocomplete.js +1 -1
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +4 -3
- package/dist/components/ui/date-picker.js +1 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +32 -32
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/tag-search-input.js +1 -1
- package/dist/components/ui/textarea.js +1 -1
- package/dist/{devices-KRWVEY76.cjs → devices-RQ7OSCJZ.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-AZEPJAPN.cjs → embeddable-chat-SYWOS6YZ.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +48 -48
- package/dist/{knowledge-Z3FM7U3W.cjs → knowledge-5QKXKQ4Q.cjs} +33 -33
- package/dist/{logs-CNJYF5CO.cjs → logs-GBKJZHMC.cjs} +41 -41
- package/dist/{policies-U32LUDZ4.cjs → policies-WAYKWIZM.cjs} +36 -36
- package/dist/{remote-session-ST6JEZML.cjs → remote-session-AXKWTU4I.cjs} +17 -17
- package/dist/{scripts-2Y6ISOOK.cjs → scripts-L46FQYCQ.cjs} +39 -39
- package/dist/{software-update-EEN7PQR3.cjs → software-update-2HMC5XIV.cjs} +36 -36
- package/dist/{tickets-board-EYKLSB36.cjs → tickets-board-SXETISNL.cjs} +17 -17
- package/dist/{video-file-player-ZU666VUY.cjs → video-file-player-XWZIO3YN.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/navigation/navigation-sidebar-item.tsx +2 -3
- package/src/components/ui/autocomplete.tsx +1 -1
- package/src/components/ui/button/button-styles.ts +4 -3
- package/src/components/ui/date-picker.tsx +1 -1
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/tag-search-input.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/dist/case-study-card-WYZPBDDM.cjs +0 -23
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkHAAQUV3Ocjs = require('./chunk-HAAQUV3O.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkJSNLMPXNcjs = require('./chunk-JSNLMPXN.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -38,7 +38,7 @@ var _chunkWSBWP7IWcjs = require('./chunk-WSBWP7IW.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkTRV5GGOHcjs = require('./chunk-TRV5GGOH.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -47,7 +47,7 @@ var _chunkGMIXTXAOcjs = require('./chunk-GMIXTXAO.cjs');
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunkUVPV6TUIcjs = require('./chunk-UVPV6TUI.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
var _chunkREEXZ35Ocjs = require('./chunk-REEXZ35O.cjs');
|
|
@@ -248,7 +248,7 @@ var _chunk7WT2C5YYcjs = require('./chunk-7WT2C5YY.cjs');
|
|
|
248
248
|
var _chunkOJZBZH56cjs = require('./chunk-OJZBZH56.cjs');
|
|
249
249
|
|
|
250
250
|
|
|
251
|
-
var
|
|
251
|
+
var _chunkJ4ZNQ55Ocjs = require('./chunk-J4ZNQ55O.cjs');
|
|
252
252
|
|
|
253
253
|
|
|
254
254
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -292,7 +292,7 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
292
292
|
|
|
293
293
|
|
|
294
294
|
|
|
295
|
-
var
|
|
295
|
+
var _chunkEOZ23WOYcjs = require('./chunk-EOZ23WOY.cjs');
|
|
296
296
|
|
|
297
297
|
|
|
298
298
|
|
|
@@ -321,10 +321,10 @@ var _chunk5XAWVXNIcjs = require('./chunk-5XAWVXNI.cjs');
|
|
|
321
321
|
|
|
322
322
|
|
|
323
323
|
|
|
324
|
-
var
|
|
324
|
+
var _chunk3SENOTWTcjs = require('./chunk-3SENOTWT.cjs');
|
|
325
325
|
|
|
326
326
|
|
|
327
|
-
var
|
|
327
|
+
var _chunkY6KZFPZNcjs = require('./chunk-Y6KZFPZN.cjs');
|
|
328
328
|
|
|
329
329
|
|
|
330
330
|
|
|
@@ -332,7 +332,7 @@ var _chunkXAA5LUHCcjs = require('./chunk-XAA5LUHC.cjs');
|
|
|
332
332
|
|
|
333
333
|
|
|
334
334
|
|
|
335
|
-
var
|
|
335
|
+
var _chunkKKD7XV5Acjs = require('./chunk-KKD7XV5A.cjs');
|
|
336
336
|
|
|
337
337
|
|
|
338
338
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -348,7 +348,7 @@ var _chunkV4FXUIMHcjs = require('./chunk-V4FXUIMH.cjs');
|
|
|
348
348
|
var _chunkSZHDXXMKcjs = require('./chunk-SZHDXXMK.cjs');
|
|
349
349
|
|
|
350
350
|
|
|
351
|
-
var
|
|
351
|
+
var _chunkRU37NNZGcjs = require('./chunk-RU37NNZG.cjs');
|
|
352
352
|
|
|
353
353
|
|
|
354
354
|
|
|
@@ -356,33 +356,33 @@ var _chunkCS5SZJFVcjs = require('./chunk-CS5SZJFV.cjs');
|
|
|
356
356
|
var _chunk5GJM7VRRcjs = require('./chunk-5GJM7VRR.cjs');
|
|
357
357
|
|
|
358
358
|
|
|
359
|
-
var
|
|
359
|
+
var _chunk4ZHLORL3cjs = require('./chunk-4ZHLORL3.cjs');
|
|
360
360
|
|
|
361
361
|
|
|
362
362
|
|
|
363
363
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
364
364
|
|
|
365
365
|
|
|
366
|
-
var
|
|
366
|
+
var _chunkJHY6H2XRcjs = require('./chunk-JHY6H2XR.cjs');
|
|
367
367
|
|
|
368
368
|
|
|
369
|
-
var
|
|
369
|
+
var _chunkHE6UVP6Rcjs = require('./chunk-HE6UVP6R.cjs');
|
|
370
370
|
|
|
371
371
|
|
|
372
372
|
var _chunkZ74QE57Tcjs = require('./chunk-Z74QE57T.cjs');
|
|
373
373
|
|
|
374
374
|
|
|
375
|
-
var
|
|
375
|
+
var _chunkDNB5DELQcjs = require('./chunk-DNB5DELQ.cjs');
|
|
376
376
|
|
|
377
377
|
|
|
378
378
|
|
|
379
379
|
|
|
380
380
|
|
|
381
381
|
|
|
382
|
-
var
|
|
382
|
+
var _chunkLCSYTFFOcjs = require('./chunk-LCSYTFFO.cjs');
|
|
383
383
|
|
|
384
384
|
|
|
385
|
-
var
|
|
385
|
+
var _chunkIZXVGIQXcjs = require('./chunk-IZXVGIQX.cjs');
|
|
386
386
|
|
|
387
387
|
|
|
388
388
|
|
|
@@ -392,7 +392,7 @@ var _chunkFLS6DZENcjs = require('./chunk-FLS6DZEN.cjs');
|
|
|
392
392
|
|
|
393
393
|
|
|
394
394
|
|
|
395
|
-
var
|
|
395
|
+
var _chunkNWNC22IZcjs = require('./chunk-NWNC22IZ.cjs');
|
|
396
396
|
|
|
397
397
|
|
|
398
398
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -412,12 +412,12 @@ var tabsListVariantClasses = {
|
|
|
412
412
|
default: TABS_LIST_BASE,
|
|
413
413
|
// Applied ON TOP of the base (cn resolves the conflicts) so the variant
|
|
414
414
|
// renders exactly what admin call sites produced by stacking these classes.
|
|
415
|
-
"admin-rail":
|
|
415
|
+
"admin-rail": _chunkNWNC22IZcjs.cn.call(void 0, TABS_LIST_BASE, "inline-flex h-auto justify-start rounded-none bg-transparent p-0")
|
|
416
416
|
};
|
|
417
417
|
var TABS_TRIGGER_BASE = "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-h6 ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm";
|
|
418
418
|
var tabsTriggerVariantClasses = {
|
|
419
419
|
default: TABS_TRIGGER_BASE,
|
|
420
|
-
"admin-rail":
|
|
420
|
+
"admin-rail": _chunkNWNC22IZcjs.cn.call(void 0,
|
|
421
421
|
TABS_TRIGGER_BASE,
|
|
422
422
|
"rounded-none border-b-2 border-transparent",
|
|
423
423
|
"data-[state=active]:border-ods-accent data-[state=active]:bg-transparent",
|
|
@@ -431,7 +431,7 @@ var tabsTriggerVariantClasses = {
|
|
|
431
431
|
var ADMIN_RAIL_WRAPPER_CLASS = "w-full border-b border-ods-border overflow-x-auto";
|
|
432
432
|
var TabsList = _react.forwardRef.call(void 0,
|
|
433
433
|
({ className, variant = "default", ...props }, ref) => {
|
|
434
|
-
const list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsPrimitive.List, { ref, className:
|
|
434
|
+
const list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsPrimitive.List, { ref, className: _chunkNWNC22IZcjs.cn.call(void 0, tabsListVariantClasses[variant], className), ...props });
|
|
435
435
|
if (variant === "admin-rail") {
|
|
436
436
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ADMIN_RAIL_WRAPPER_CLASS, children: list });
|
|
437
437
|
}
|
|
@@ -441,11 +441,11 @@ var TabsList = _react.forwardRef.call(void 0,
|
|
|
441
441
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
442
442
|
var TabsTrigger = _react.forwardRef.call(void 0,
|
|
443
443
|
({ className, variant = "default", ...props }, ref) => {
|
|
444
|
-
if (
|
|
444
|
+
if (_chunkNWNC22IZcjs.useLoadingScope.call(void 0, )) {
|
|
445
445
|
const label = typeof props.children === "string" && props.children !== "" ? props.children : void 0;
|
|
446
446
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTriggerSkeleton, { variant, label, className });
|
|
447
447
|
}
|
|
448
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsPrimitive.Trigger, { ref, className:
|
|
448
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsPrimitive.Trigger, { ref, className: _chunkNWNC22IZcjs.cn.call(void 0, tabsTriggerVariantClasses[variant], className), ...props });
|
|
449
449
|
}
|
|
450
450
|
);
|
|
451
451
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
@@ -455,13 +455,13 @@ function TabsTriggerSkeleton({
|
|
|
455
455
|
label,
|
|
456
456
|
className
|
|
457
457
|
}) {
|
|
458
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className:
|
|
458
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: _chunkNWNC22IZcjs.cn.call(void 0, tabsTriggerVariantClasses[variant], className), children: _nullishCoalesce(label, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.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,
|
|
462
462
|
{
|
|
463
463
|
ref,
|
|
464
|
-
className:
|
|
464
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
465
465
|
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
466
466
|
className
|
|
467
467
|
),
|
|
@@ -793,7 +793,7 @@ var MermaidDiagram = ({
|
|
|
793
793
|
zoomable = true,
|
|
794
794
|
frame = "content"
|
|
795
795
|
}) => {
|
|
796
|
-
const chart =
|
|
796
|
+
const chart = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) ? "" : givenChart;
|
|
797
797
|
const [svg, setSvg] = _react.useState.call(void 0, "");
|
|
798
798
|
const [error, setError] = _react.useState.call(void 0, "");
|
|
799
799
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, true);
|
|
@@ -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, _chunkLCSYTFFOcjs.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
|
{
|
|
@@ -998,7 +998,7 @@ var MermaidDiagram = ({
|
|
|
998
998
|
"aria-label": "Diagram zoom",
|
|
999
999
|
children: [
|
|
1000
1000
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1001
|
-
|
|
1001
|
+
_chunkIZXVGIQXcjs.Button,
|
|
1002
1002
|
{
|
|
1003
1003
|
variant: "outline",
|
|
1004
1004
|
size: "icon-sm",
|
|
@@ -1010,7 +1010,7 @@ var MermaidDiagram = ({
|
|
|
1010
1010
|
}
|
|
1011
1011
|
),
|
|
1012
1012
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1013
|
-
|
|
1013
|
+
_chunkIZXVGIQXcjs.Button,
|
|
1014
1014
|
{
|
|
1015
1015
|
variant: "outline",
|
|
1016
1016
|
size: "compact",
|
|
@@ -1025,7 +1025,7 @@ var MermaidDiagram = ({
|
|
|
1025
1025
|
}
|
|
1026
1026
|
),
|
|
1027
1027
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1028
|
-
|
|
1028
|
+
_chunkIZXVGIQXcjs.Button,
|
|
1029
1029
|
{
|
|
1030
1030
|
variant: "outline",
|
|
1031
1031
|
size: "icon-sm",
|
|
@@ -1037,7 +1037,7 @@ var MermaidDiagram = ({
|
|
|
1037
1037
|
}
|
|
1038
1038
|
),
|
|
1039
1039
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1040
|
-
|
|
1040
|
+
_chunkIZXVGIQXcjs.Button,
|
|
1041
1041
|
{
|
|
1042
1042
|
variant: "outline",
|
|
1043
1043
|
size: "icon-sm",
|
|
@@ -1080,12 +1080,12 @@ var MARKDOWN_H1_CLASS = "mb-4 mt-8 font-sans font-bold text-ods-text-primary fir
|
|
|
1080
1080
|
var MARKDOWN_H2_CLASS = "mb-4 mt-8 border-b border-ods-border pb-2 font-sans font-semibold text-ods-text-primary";
|
|
1081
1081
|
var MARKDOWN_PARAGRAPH_CLASS = "mb-4 leading-relaxed text-ods-text-primary first:mt-0 last:mb-0";
|
|
1082
1082
|
var MarkdownContentImage = ({ src, alt }) => {
|
|
1083
|
-
const inScope =
|
|
1083
|
+
const inScope = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
|
|
1084
1084
|
const authedSrc = _chunkV4FXUIMHcjs.useAuthedImageSrc.call(void 0, inScope ? void 0 : src);
|
|
1085
1085
|
const resolvedSrc = inScope ? src : authedSrc;
|
|
1086
1086
|
if (!resolvedSrc) return null;
|
|
1087
1087
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1088
|
-
|
|
1088
|
+
_chunk4ZHLORL3cjs.next_image_default,
|
|
1089
1089
|
{
|
|
1090
1090
|
src: resolvedSrc,
|
|
1091
1091
|
alt: _nullishCoalesce(alt, () => ( "No image available")),
|
|
@@ -1116,7 +1116,7 @@ function buildStandardLeafRenderers({
|
|
|
1116
1116
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "pre", { className: "overflow-x-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1117
1117
|
"code",
|
|
1118
1118
|
{
|
|
1119
|
-
className:
|
|
1119
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, `language-${language} hljs font-mono`, textSizes.code),
|
|
1120
1120
|
style: {
|
|
1121
1121
|
background: "transparent",
|
|
1122
1122
|
color: "var(--color-text-primary)"
|
|
@@ -1136,7 +1136,7 @@ function buildStandardLeafRenderers({
|
|
|
1136
1136
|
}
|
|
1137
1137
|
);
|
|
1138
1138
|
},
|
|
1139
|
-
blockquote: ({ children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "blockquote", { className: "my-8 ml-0 rounded-r-lg border-l-4 border-ods-accent bg-ods-bg-surface py-4 pl-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1139
|
+
blockquote: ({ children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "blockquote", { className: "my-8 ml-0 rounded-r-lg border-l-4 border-ods-accent bg-ods-bg-surface py-4 pl-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, "font-sans leading-relaxed text-ods-text-secondary", textSizes.blockquote), children }) }),
|
|
1140
1140
|
// Pass-through `div` (overridable for embeds; `node` is dropped so it
|
|
1141
1141
|
// never reaches the DOM).
|
|
1142
1142
|
div: ({ node, className: divClassName, children, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: divClassName, ...props, children })
|
|
@@ -1166,14 +1166,14 @@ function buildBaseComponents({
|
|
|
1166
1166
|
// --- code + blockquote + div (shared leaf renderers, see above) ---
|
|
1167
1167
|
...buildStandardLeafRenderers({ textSizes }),
|
|
1168
1168
|
// --- headings ---
|
|
1169
|
-
h1: makeHeading("h1",
|
|
1170
|
-
h2: makeHeading("h2",
|
|
1171
|
-
h3: makeHeading("h3",
|
|
1172
|
-
h4: makeHeading("h4",
|
|
1173
|
-
h5: makeHeading("h5",
|
|
1174
|
-
h6: makeHeading("h6",
|
|
1169
|
+
h1: makeHeading("h1", _chunkNWNC22IZcjs.cn.call(void 0, MARKDOWN_H1_CLASS, textSizes.h1)),
|
|
1170
|
+
h2: makeHeading("h2", _chunkNWNC22IZcjs.cn.call(void 0, MARKDOWN_H2_CLASS, textSizes.h2)),
|
|
1171
|
+
h3: makeHeading("h3", _chunkNWNC22IZcjs.cn.call(void 0, "mb-3 mt-6 font-sans font-semibold text-ods-text-primary", textSizes.h3)),
|
|
1172
|
+
h4: makeHeading("h4", _chunkNWNC22IZcjs.cn.call(void 0, "mb-2 mt-4 font-sans font-semibold text-ods-text-primary", textSizes.h4)),
|
|
1173
|
+
h5: makeHeading("h5", _chunkNWNC22IZcjs.cn.call(void 0, "mb-2 mt-3 font-sans font-semibold text-ods-text-primary", textSizes.h5)),
|
|
1174
|
+
h6: makeHeading("h6", _chunkNWNC22IZcjs.cn.call(void 0, "mb-1 mt-3 font-sans font-semibold text-ods-text-primary", textSizes.h6)),
|
|
1175
1175
|
// --- paragraph ---
|
|
1176
|
-
p: ({ children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className:
|
|
1176
|
+
p: ({ children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunkNWNC22IZcjs.cn.call(void 0, MARKDOWN_PARAGRAPH_CLASS, textSizes.p), children }),
|
|
1177
1177
|
// --- links ---
|
|
1178
1178
|
a: ({ href, children, className: linkClassName, rel: authoredRel }) => {
|
|
1179
1179
|
const isBroken = href !== void 0 && brokenLinks.includes(href);
|
|
@@ -1270,7 +1270,7 @@ function buildBaseComponents({
|
|
|
1270
1270
|
// always number 1"). Only `start` is forwarded: the rest of the props carry
|
|
1271
1271
|
// react-markdown's `node`, which must not reach the DOM.
|
|
1272
1272
|
ol: ({ children, start }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { start, className: "my-4 ml-8 list-outside list-decimal space-y-2 text-ods-text-primary", children }),
|
|
1273
|
-
li: ({ children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { className:
|
|
1273
|
+
li: ({ children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { className: _chunkNWNC22IZcjs.cn.call(void 0, "pl-2 leading-relaxed", textSizes.li), children }),
|
|
1274
1274
|
// --- tables ---
|
|
1275
1275
|
// The frame and the scroll container are ONE element, matching the sibling
|
|
1276
1276
|
// block embed (`mermaid-diagram.tsx`). It used to
|
|
@@ -1291,7 +1291,7 @@ function buildBaseComponents({
|
|
|
1291
1291
|
th: ({ children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1292
1292
|
"th",
|
|
1293
1293
|
{
|
|
1294
|
-
className:
|
|
1294
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
1295
1295
|
"break-words border-r border-ods-border px-2 py-3 text-left font-semibold text-ods-accent last:border-r-0 md:px-4",
|
|
1296
1296
|
textSizes.th
|
|
1297
1297
|
),
|
|
@@ -1301,7 +1301,7 @@ function buildBaseComponents({
|
|
|
1301
1301
|
td: ({ children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1302
1302
|
"td",
|
|
1303
1303
|
{
|
|
1304
|
-
className:
|
|
1304
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
1305
1305
|
"whitespace-normal break-words border-b border-r border-ods-border px-2 py-3 text-ods-text-primary last:border-r-0 md:px-4",
|
|
1306
1306
|
textSizes.td
|
|
1307
1307
|
),
|
|
@@ -3160,7 +3160,7 @@ var MarkdownEngineImpl = ({
|
|
|
3160
3160
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${RENDERER_CLASS} ${className}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CONTENT_WRAPPER_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "article", { className: ARTICLE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeadingIdMapContext.Provider, { value: headingIds, children: body }) }) }) });
|
|
3161
3161
|
};
|
|
3162
3162
|
var MarkdownEngine = _react.memo.call(void 0, function MarkdownEngineGate(props) {
|
|
3163
|
-
const inScope =
|
|
3163
|
+
const inScope = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
|
|
3164
3164
|
if (inScope && !props.content || props.loading) {
|
|
3165
3165
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3166
3166
|
MarkdownEngineSkeleton,
|
|
@@ -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, _chunkLCSYTFFOcjs.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, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "inherit", as, lines: lines.phone, className: "w-full content-md:hidden" }),
|
|
3184
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "inherit", as, lines: lines.wide, className: "hidden w-full content-md:flex" })
|
|
3185
3185
|
] });
|
|
3186
3186
|
}
|
|
3187
3187
|
function MarkdownEngineSkeleton({
|
|
@@ -3192,17 +3192,17 @@ function MarkdownEngineSkeleton({
|
|
|
3192
3192
|
className = ""
|
|
3193
3193
|
}) {
|
|
3194
3194
|
const textSizes = resolveTextSizeConfig(textSize);
|
|
3195
|
-
const paragraphClass =
|
|
3195
|
+
const paragraphClass = _chunkNWNC22IZcjs.cn.call(void 0, MARKDOWN_PARAGRAPH_CLASS, textSizes.p);
|
|
3196
3196
|
return (
|
|
3197
3197
|
// `w-full`: bars have no width of their own, so in a shrink-to-fit parent (a flex item) the skeleton would be
|
|
3198
3198
|
// 0px wide where the loaded text fills its line.
|
|
3199
3199
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${RENDERER_CLASS} w-full ${className}`, "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CONTENT_WRAPPER_CLASS, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ARTICLE_CLASS, children: [
|
|
3200
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
3200
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkNWNC22IZcjs.cn.call(void 0, MARKDOWN_H1_CLASS, textSizes.h1), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LinesByBreakpoint, { lines: SKELETON_TITLE_LINES, as: "span" }) }),
|
|
3201
3201
|
sections ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: paragraphClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LinesByBreakpoint, { lines: SKELETON_LEAD_LINES }) }) : null,
|
|
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
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3205
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
3204
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNWNC22IZcjs.LoadingItems, { count: sections, children: () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
3205
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkNWNC22IZcjs.cn.call(void 0, MARKDOWN_H2_CLASS, textSizes.h2), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.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, _chunkTRV5GGOHcjs.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() === _chunkTRV5GGOHcjs.CHAT_APPEARANCE.V2;
|
|
3306
3306
|
const handleApprove = async () => {
|
|
3307
3307
|
setIsProcessing(true);
|
|
3308
3308
|
try {
|
|
@@ -3324,8 +3324,8 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3324
3324
|
"div",
|
|
3325
3325
|
{
|
|
3326
3326
|
ref,
|
|
3327
|
-
className:
|
|
3328
|
-
|
|
3327
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
3328
|
+
_chunkHAAQUV3Ocjs.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,16 +3333,16 @@ 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, _chunkHAAQUV3Ocjs.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
|
+
_chunkIZXVGIQXcjs.Button,
|
|
3340
3340
|
{
|
|
3341
3341
|
size: "small-legacy",
|
|
3342
3342
|
variant: "accent",
|
|
3343
3343
|
onClick: handleApprove,
|
|
3344
3344
|
disabled: isProcessing || !onApprove,
|
|
3345
|
-
className:
|
|
3345
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
3346
3346
|
"bg-ods-accent hover:bg-ods-accent/90",
|
|
3347
3347
|
"text-ods-bg text-h5",
|
|
3348
3348
|
"h-8 px-[var(--spacing-system-xsf)]"
|
|
@@ -3351,13 +3351,13 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3351
3351
|
}
|
|
3352
3352
|
),
|
|
3353
3353
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3354
|
-
|
|
3354
|
+
_chunkIZXVGIQXcjs.Button,
|
|
3355
3355
|
{
|
|
3356
3356
|
size: "small-legacy",
|
|
3357
3357
|
variant: "outline",
|
|
3358
3358
|
onClick: handleReject,
|
|
3359
3359
|
disabled: isProcessing || !onReject,
|
|
3360
|
-
className:
|
|
3360
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
3361
3361
|
"border-ods-border bg-ods-card",
|
|
3362
3362
|
"text-ods-text-primary text-h5",
|
|
3363
3363
|
"h-8 px-[var(--spacing-system-xsf)] hover:bg-ods-bg"
|
|
@@ -3365,23 +3365,23 @@ 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, _chunkHAAQUV3Ocjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3369
3369
|
]
|
|
3370
3370
|
}
|
|
3371
3371
|
);
|
|
3372
3372
|
}
|
|
3373
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className:
|
|
3373
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunkNWNC22IZcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunkHAAQUV3Ocjs.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, _chunkHAAQUV3Ocjs.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
|
+
_chunkIZXVGIQXcjs.Button,
|
|
3379
3379
|
{
|
|
3380
3380
|
size: "small-legacy",
|
|
3381
3381
|
variant: "accent",
|
|
3382
3382
|
onClick: handleApprove,
|
|
3383
3383
|
disabled: isProcessing || !onApprove,
|
|
3384
|
-
className:
|
|
3384
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
3385
3385
|
"bg-ods-accent hover:bg-ods-accent/90",
|
|
3386
3386
|
"text-ods-bg text-h5",
|
|
3387
3387
|
"h-8 px-[var(--spacing-system-xsf)]"
|
|
@@ -3390,13 +3390,13 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3390
3390
|
}
|
|
3391
3391
|
),
|
|
3392
3392
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3393
|
-
|
|
3393
|
+
_chunkIZXVGIQXcjs.Button,
|
|
3394
3394
|
{
|
|
3395
3395
|
size: "small-legacy",
|
|
3396
3396
|
variant: "outline",
|
|
3397
3397
|
onClick: handleReject,
|
|
3398
3398
|
disabled: isProcessing || !onReject,
|
|
3399
|
-
className:
|
|
3399
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
3400
3400
|
"border-ods-border bg-ods-card",
|
|
3401
3401
|
"text-ods-text-primary text-h5",
|
|
3402
3402
|
"h-8 px-[var(--spacing-system-xsf)] hover:bg-ods-bg"
|
|
@@ -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, _chunkHAAQUV3Ocjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3408
3408
|
] });
|
|
3409
3409
|
}
|
|
3410
3410
|
);
|
|
@@ -3414,7 +3414,7 @@ ApprovalRequestMessage.displayName = "ApprovalRequestMessage";
|
|
|
3414
3414
|
|
|
3415
3415
|
|
|
3416
3416
|
var EscalationOfferMessage = _react.forwardRef.call(void 0,
|
|
3417
|
-
({ className, data, status = "pending", resolvedByName, onApprove, onReject, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
3417
|
+
({ className, data, status = "pending", resolvedByName, onApprove, onReject, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkNWNC22IZcjs.cn.call(void 0, "flex flex-col", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3418
3418
|
ApprovalRequestMessage,
|
|
3419
3419
|
{
|
|
3420
3420
|
variant: "client",
|
|
@@ -3434,12 +3434,12 @@ 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() === _chunkTRV5GGOHcjs.CHAT_APPEARANCE.V2;
|
|
3438
3438
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3439
3439
|
"div",
|
|
3440
3440
|
{
|
|
3441
3441
|
ref,
|
|
3442
|
-
className:
|
|
3442
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
3443
3443
|
"flex gap-[var(--spacing-system-s)] rounded-md border border-ods-border p-[var(--spacing-system-s)]",
|
|
3444
3444
|
isV2 ? "items-center bg-ods-bg" : "mb-[var(--spacing-system-xsf)] items-start bg-ods-card",
|
|
3445
3445
|
className
|
|
@@ -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: _chunkTRV5GGOHcjs.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, _chunkKKD7XV5Acjs.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,
|
|
@@ -3599,7 +3599,7 @@ var ContextCompactionDisplay = _react.forwardRef.call(void 0,
|
|
|
3599
3599
|
"div",
|
|
3600
3600
|
{
|
|
3601
3601
|
ref,
|
|
3602
|
-
className:
|
|
3602
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "flex items-center gap-2 rounded-[6px] border border-ods-border bg-ods-card p-1.5", className),
|
|
3603
3603
|
...props,
|
|
3604
3604
|
children: [
|
|
3605
3605
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 text-ods-text-secondary text-h6", children: label }),
|
|
@@ -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 } = _chunkHAAQUV3Ocjs.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:
|
|
3667
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkNWNC22IZcjs.cn.call(void 0, _chunkHAAQUV3Ocjs.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",
|
|
@@ -3672,7 +3672,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3672
3672
|
"aria-expanded": expanded,
|
|
3673
3673
|
onClick: toggle,
|
|
3674
3674
|
onKeyDown: handleKeyDown,
|
|
3675
|
-
className:
|
|
3675
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "flex w-full items-start gap-3 text-left", canToggle ? "cursor-pointer" : "cursor-default"),
|
|
3676
3676
|
children: [
|
|
3677
3677
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center gap-1", children: [
|
|
3678
3678
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-sm font-medium leading-snug text-ods-text-secondary", children: [
|
|
@@ -3681,8 +3681,8 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3681
3681
|
] }),
|
|
3682
3682
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7GIHB3Vcjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
3683
3683
|
] }),
|
|
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:
|
|
3685
|
-
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
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: _chunkNWNC22IZcjs.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, _chunkHAAQUV3Ocjs.ExpandChevron, { expanded }) })
|
|
3686
3686
|
]
|
|
3687
3687
|
}
|
|
3688
3688
|
) });
|
|
@@ -3711,7 +3711,7 @@ var AskDisplay = _react.forwardRef.call(void 0, ({ className, cards: cards2, onS
|
|
|
3711
3711
|
role: "group",
|
|
3712
3712
|
"aria-label": active.question,
|
|
3713
3713
|
"aria-describedby": isInteractive ? void 0 : lockedHintId,
|
|
3714
|
-
className:
|
|
3714
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
3715
3715
|
"flex flex-col gap-[var(--spacing-system-s)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-s)]",
|
|
3716
3716
|
className
|
|
3717
3717
|
),
|
|
@@ -3721,7 +3721,7 @@ var AskDisplay = _react.forwardRef.call(void 0, ({ className, cards: cards2, onS
|
|
|
3721
3721
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 break-words text-ods-text-primary text-h4", children: active.question }),
|
|
3722
3722
|
showPager && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
3723
3723
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3724
|
-
|
|
3724
|
+
_chunkIZXVGIQXcjs.Button,
|
|
3725
3725
|
{
|
|
3726
3726
|
variant: "bare",
|
|
3727
3727
|
size: "icon-sm",
|
|
@@ -3738,7 +3738,7 @@ var AskDisplay = _react.forwardRef.call(void 0, ({ className, cards: cards2, onS
|
|
|
3738
3738
|
cards2.length
|
|
3739
3739
|
] }),
|
|
3740
3740
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3741
|
-
|
|
3741
|
+
_chunkIZXVGIQXcjs.Button,
|
|
3742
3742
|
{
|
|
3743
3743
|
variant: "bare",
|
|
3744
3744
|
size: "icon-sm",
|
|
@@ -3753,7 +3753,7 @@ var AskDisplay = _react.forwardRef.call(void 0, ({ className, cards: cards2, onS
|
|
|
3753
3753
|
] }),
|
|
3754
3754
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
3755
3755
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col overflow-hidden rounded-md border border-ods-border", children: active.options.map((option, optionIndex) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3756
|
-
|
|
3756
|
+
_chunkIZXVGIQXcjs.Button,
|
|
3757
3757
|
{
|
|
3758
3758
|
variant: "row",
|
|
3759
3759
|
type: "button",
|
|
@@ -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, _chunk3SENOTWTcjs.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;
|
|
@@ -3831,7 +3831,7 @@ function composeChipLabel(label, lozenge) {
|
|
|
3831
3831
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3832
3832
|
"span",
|
|
3833
3833
|
{
|
|
3834
|
-
className:
|
|
3834
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
3835
3835
|
// -translate-y-[1px]: align-middle centers on x-height, but the chip
|
|
3836
3836
|
// labels are uppercase (no descenders), so the lozenge reads ~1px low
|
|
3837
3837
|
// against the caps' optical center (measured 9.1px above / 6.9px
|
|
@@ -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
|
+
_chunkKKD7XV5Acjs.Tag,
|
|
3862
3862
|
{
|
|
3863
|
-
...
|
|
3863
|
+
..._chunkNWNC22IZcjs.loadingItemProps.call(void 0, props),
|
|
3864
3864
|
variant: "outline",
|
|
3865
3865
|
size: question ? "sentence" : size,
|
|
3866
|
-
className:
|
|
3867
|
-
icon: icon && !question ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3866
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, question && "max-w-full", className),
|
|
3867
|
+
icon: icon && !question ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.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, _chunkLCSYTFFOcjs.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
|
+
_chunkLCSYTFFOcjs.UnifiedSkeleton,
|
|
3872
3872
|
{
|
|
3873
3873
|
as: "span",
|
|
3874
3874
|
"aria-hidden": true,
|
|
@@ -3898,8 +3898,8 @@ function QuickActionChipButton({
|
|
|
3898
3898
|
labelCh,
|
|
3899
3899
|
...props
|
|
3900
3900
|
}) {
|
|
3901
|
-
const loading =
|
|
3902
|
-
const markers =
|
|
3901
|
+
const loading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
3902
|
+
const markers = _chunkNWNC22IZcjs.loadingItemProps.call(void 0, props);
|
|
3903
3903
|
if (loading)
|
|
3904
3904
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3905
3905
|
QuickActionChipSkeleton,
|
|
@@ -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
|
+
_chunkKKD7XV5Acjs.Tag,
|
|
3926
3926
|
{
|
|
3927
3927
|
...markers,
|
|
3928
3928
|
variant: tagVariant,
|
|
@@ -3934,7 +3934,7 @@ function QuickActionChipButton({
|
|
|
3934
3934
|
);
|
|
3935
3935
|
}
|
|
3936
3936
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3937
|
-
|
|
3937
|
+
_chunkIZXVGIQXcjs.Button,
|
|
3938
3938
|
{
|
|
3939
3939
|
variant: "card",
|
|
3940
3940
|
...markers,
|
|
@@ -3945,13 +3945,13 @@ function QuickActionChipButton({
|
|
|
3945
3945
|
onFocus: onHoverStart,
|
|
3946
3946
|
onBlur: onHoverEnd,
|
|
3947
3947
|
"aria-pressed": selected || void 0,
|
|
3948
|
-
className:
|
|
3948
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
3949
3949
|
// A question may be longer than a narrow column: it shrinks and clips there, read from its start.
|
|
3950
3950
|
question ? "w-auto min-w-0 max-w-full" : "w-auto shrink-0",
|
|
3951
3951
|
className
|
|
3952
3952
|
),
|
|
3953
3953
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3954
|
-
|
|
3954
|
+
_chunkKKD7XV5Acjs.Tag,
|
|
3955
3955
|
{
|
|
3956
3956
|
variant: tagVariant,
|
|
3957
3957
|
size: tagSize,
|
|
@@ -3974,7 +3974,7 @@ function QuickActionChipFromData({
|
|
|
3974
3974
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3975
3975
|
QuickActionChipButton,
|
|
3976
3976
|
{
|
|
3977
|
-
...
|
|
3977
|
+
..._chunkNWNC22IZcjs.loadingItemProps.call(void 0, props),
|
|
3978
3978
|
label: chip.label,
|
|
3979
3979
|
icon: chip.icon,
|
|
3980
3980
|
theme: _nullishCoalesce(chip.theme, () => ( defaultTheme)),
|
|
@@ -4025,14 +4025,14 @@ 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 } = _chunkHAAQUV3Ocjs.useCollapsible.call(void 0, { expanded });
|
|
4029
4029
|
const hasDetails = Boolean(details);
|
|
4030
|
-
const isV2 = useChatAppearance() ===
|
|
4030
|
+
const isV2 = useChatAppearance() === _chunkTRV5GGOHcjs.CHAT_APPEARANCE.V2;
|
|
4031
4031
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4032
4032
|
"div",
|
|
4033
4033
|
{
|
|
4034
4034
|
ref,
|
|
4035
|
-
className:
|
|
4035
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
4036
4036
|
"rounded-md",
|
|
4037
4037
|
isV2 ? "border border-ods-border bg-ods-bg p-[var(--spacing-system-xs)]" : "mb-[var(--spacing-system-xsf)] bg-ods-card p-[var(--spacing-system-xsf)]",
|
|
4038
4038
|
className
|
|
@@ -4040,7 +4040,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4040
4040
|
...props,
|
|
4041
4041
|
children: [
|
|
4042
4042
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4043
|
-
|
|
4043
|
+
_chunkIZXVGIQXcjs.Button,
|
|
4044
4044
|
{
|
|
4045
4045
|
variant: "row",
|
|
4046
4046
|
type: "button",
|
|
@@ -4049,11 +4049,11 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4049
4049
|
"aria-label": hasDetails ? expanded ? "Collapse details" : "Expand details" : void 0,
|
|
4050
4050
|
disabled: !hasDetails,
|
|
4051
4051
|
children: [
|
|
4052
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7WT2C5YYcjs.AlertCircleIcon, { size: 16, className:
|
|
4052
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7WT2C5YYcjs.AlertCircleIcon, { size: 16, className: _chunkNWNC22IZcjs.cn.call(void 0, "shrink-0", iconTint[type]) }),
|
|
4053
4053
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4054
4054
|
"span",
|
|
4055
4055
|
{
|
|
4056
|
-
className:
|
|
4056
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
4057
4057
|
"min-w-0 flex-1 text-h5",
|
|
4058
4058
|
expanded || isV2 ? "text-ods-text-primary" : "text-ods-text-secondary",
|
|
4059
4059
|
!expanded && "truncate"
|
|
@@ -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, _chunkHAAQUV3Ocjs.ExpandChevron, { expanded })
|
|
4065
4065
|
]
|
|
4066
4066
|
}
|
|
4067
4067
|
),
|
|
@@ -4069,7 +4069,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4069
4069
|
"div",
|
|
4070
4070
|
{
|
|
4071
4071
|
ref: innerRef,
|
|
4072
|
-
className:
|
|
4072
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
4073
4073
|
"px-[var(--spacing-system-lf)]",
|
|
4074
4074
|
isV2 ? "pt-[var(--spacing-system-xs)]" : "pt-[var(--spacing-system-xsf)]"
|
|
4075
4075
|
),
|
|
@@ -4101,27 +4101,27 @@ function MspOrganizationCard({
|
|
|
4101
4101
|
loading: loadingProp = false,
|
|
4102
4102
|
className
|
|
4103
4103
|
}) {
|
|
4104
|
-
const loading =
|
|
4104
|
+
const loading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
4105
4105
|
const actionLabel = website ? `Open ${website}` : "Open organization website";
|
|
4106
4106
|
const footer = variant === "footer";
|
|
4107
4107
|
const buttonSize = footer ? "icon-sm" : "icon";
|
|
4108
|
-
const action = href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4109
|
-
const trailing = action && loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4108
|
+
const action = href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { asChild: true, variant: "outline", size: buttonSize, "aria-label": actionLabel, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noreferrer noopener", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDVT7OAScjs.ExternalLinkIcon, {}) }) }) : onOpenWebsite ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "outline", size: buttonSize, "aria-label": actionLabel, onClick: onOpenWebsite, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDVT7OAScjs.ExternalLinkIcon, {}) }) : null;
|
|
4109
|
+
const trailing = action && loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNWNC22IZcjs.InertWhileLoading, { children: action }) : action;
|
|
4110
4110
|
if (footer) {
|
|
4111
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
4112
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4111
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, FOOTER_FRAME_CLASS, className), children: [
|
|
4112
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKKD7XV5Acjs.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, _chunkLCSYTFFOcjs.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
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
4121
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4120
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, CARD_FRAME_CLASS, className), children: [
|
|
4121
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKKD7XV5Acjs.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, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h3", className: "w-3/5" }),
|
|
4124
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.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 ${_chunkLCSYTFFOcjs.LIVE_PULSE_CLASS}`;
|
|
4145
4145
|
case "disconnected":
|
|
4146
4146
|
return "bg-ods-error";
|
|
4147
4147
|
default:
|
|
@@ -4151,7 +4151,7 @@ var ConnectionIndicator = ({ status }) => {
|
|
|
4151
4151
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4152
4152
|
"output",
|
|
4153
4153
|
{
|
|
4154
|
-
className:
|
|
4154
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "block h-2 w-2 rounded-full", getStatusStyles()),
|
|
4155
4155
|
"aria-label": `Connection status: ${status}`,
|
|
4156
4156
|
title: status === "connected" ? "Connected" : status === "connecting" ? "Connecting..." : "Disconnected"
|
|
4157
4157
|
}
|
|
@@ -4162,7 +4162,7 @@ var ChatContainer = _react.forwardRef.call(void 0, ({ className, children, ...pr
|
|
|
4162
4162
|
"div",
|
|
4163
4163
|
{
|
|
4164
4164
|
ref,
|
|
4165
|
-
className:
|
|
4165
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
4166
4166
|
"flex h-screen w-full flex-col",
|
|
4167
4167
|
"bg-ods-bg text-ods-text-primary",
|
|
4168
4168
|
"px-4 pb-8 pt-10 md:px-6 lg:px-8",
|
|
@@ -4196,7 +4196,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4196
4196
|
isLoading: isLoadingProp = false,
|
|
4197
4197
|
...props
|
|
4198
4198
|
}, ref) => {
|
|
4199
|
-
const inScope =
|
|
4199
|
+
const inScope = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
|
|
4200
4200
|
const isLoading = inScope || isLoadingProp;
|
|
4201
4201
|
const mspLoading = inScope || isMspLoading;
|
|
4202
4202
|
const cardClasses = bare ? "" : "rounded-md bg-ods-card border border-ods-border";
|
|
@@ -4204,7 +4204,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4204
4204
|
"div",
|
|
4205
4205
|
{
|
|
4206
4206
|
ref,
|
|
4207
|
-
className:
|
|
4207
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
4208
4208
|
// `fullWidth` drops the centered-narrow content column for
|
|
4209
4209
|
// chats hosted in side panels where 600px would float in
|
|
4210
4210
|
// the middle of a wider container.
|
|
@@ -4214,21 +4214,21 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4214
4214
|
...props,
|
|
4215
4215
|
children: [
|
|
4216
4216
|
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4217
|
-
|
|
4217
|
+
_chunkIZXVGIQXcjs.Button,
|
|
4218
4218
|
{
|
|
4219
4219
|
onClick: onBack,
|
|
4220
4220
|
variant: "transparent",
|
|
4221
4221
|
size: "icon",
|
|
4222
4222
|
"aria-label": "Back",
|
|
4223
4223
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24, className: "text-ods-text-primary" }),
|
|
4224
|
-
className:
|
|
4224
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, cardClasses, "absolute right-full top-0 mr-[var(--spacing-system-s)] hover:bg-ods-bg-hover")
|
|
4225
4225
|
}
|
|
4226
4226
|
),
|
|
4227
4227
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: cardClasses, children: [
|
|
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
|
+
_chunkKKD7XV5Acjs.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, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h3", className: "w-40" }),
|
|
4244
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.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: [
|
|
@@ -4252,7 +4252,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4252
4252
|
] }),
|
|
4253
4253
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1", children: [
|
|
4254
4254
|
showNewChat && onNewChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4255
|
-
|
|
4255
|
+
_chunkIZXVGIQXcjs.Button,
|
|
4256
4256
|
{
|
|
4257
4257
|
onClick: onNewChat,
|
|
4258
4258
|
variant: "transparent",
|
|
@@ -4263,7 +4263,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4263
4263
|
}
|
|
4264
4264
|
),
|
|
4265
4265
|
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4266
|
-
|
|
4266
|
+
_chunkIZXVGIQXcjs.Button,
|
|
4267
4267
|
{
|
|
4268
4268
|
onClick: onClose,
|
|
4269
4269
|
variant: "transparent",
|
|
@@ -4284,7 +4284,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4284
4284
|
name: "",
|
|
4285
4285
|
...mspOrganization,
|
|
4286
4286
|
loading: mspLoading || !mspOrganization,
|
|
4287
|
-
className:
|
|
4287
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "rounded-none ring-0", !bare && "rounded-b-md", _optionalChain([mspOrganization, 'optionalAccess', _66 => _66.className]))
|
|
4288
4288
|
}
|
|
4289
4289
|
)
|
|
4290
4290
|
] }),
|
|
@@ -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
|
+
_chunkHAAQUV3Ocjs.TicketStatusTag,
|
|
4314
4314
|
{
|
|
4315
|
-
...
|
|
4315
|
+
..._chunkHAAQUV3Ocjs.resolveStatusTagProps.call(void 0, {
|
|
4316
4316
|
status: ticketInfo.status,
|
|
4317
4317
|
statusKind: ticketInfo.statusKind,
|
|
4318
4318
|
statusName: ticketInfo.statusName,
|
|
@@ -4331,16 +4331,16 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4331
4331
|
ChatHeader.displayName = "ChatHeader";
|
|
4332
4332
|
var ChatContent = _react.forwardRef.call(void 0,
|
|
4333
4333
|
({ className, children, ...props }, ref) => {
|
|
4334
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
4334
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkNWNC22IZcjs.cn.call(void 0, "flex min-h-0 flex-1 flex-col", className), ...props, children });
|
|
4335
4335
|
}
|
|
4336
4336
|
);
|
|
4337
4337
|
ChatContent.displayName = "ChatContent";
|
|
4338
4338
|
var ChatFooter = _react.forwardRef.call(void 0,
|
|
4339
4339
|
({ className, contentClassName, fullWidth = false, children, ...props }, ref) => {
|
|
4340
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
4340
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkNWNC22IZcjs.cn.call(void 0, "w-full flex-shrink-0 px-0 pb-0 pt-2 md:px-0", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4341
4341
|
"div",
|
|
4342
4342
|
{
|
|
4343
|
-
className:
|
|
4343
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
4344
4344
|
// `fullWidth=true` opts out of the centered-narrow column;
|
|
4345
4345
|
// `fullWidth=false` (default) preserves the legacy 600px
|
|
4346
4346
|
// max-width. `contentClassName` is appended last so a
|
|
@@ -4366,7 +4366,7 @@ function LoadingFallback({
|
|
|
4366
4366
|
className,
|
|
4367
4367
|
children
|
|
4368
4368
|
}) {
|
|
4369
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4369
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNWNC22IZcjs.AnnouncedLoadingScope, { label, status, as, className, children });
|
|
4370
4370
|
}
|
|
4371
4371
|
function LoadingSuspense({
|
|
4372
4372
|
label,
|
|
@@ -4408,18 +4408,18 @@ function ContextMenuRow({
|
|
|
4408
4408
|
loading: loadingProp = false,
|
|
4409
4409
|
...props
|
|
4410
4410
|
}) {
|
|
4411
|
-
const inScope =
|
|
4411
|
+
const inScope = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
|
|
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, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) : label }),
|
|
4416
4416
|
!loading && trailing
|
|
4417
4417
|
] });
|
|
4418
4418
|
if (loading) {
|
|
4419
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className:
|
|
4419
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: _chunkNWNC22IZcjs.BUTTON_KIND_CLASS.row, ..._chunkNWNC22IZcjs.loadingItemProps.call(void 0, props), children: content });
|
|
4420
4420
|
}
|
|
4421
4421
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4422
|
-
|
|
4422
|
+
_chunkIZXVGIQXcjs.Button,
|
|
4423
4423
|
{
|
|
4424
4424
|
variant: "row",
|
|
4425
4425
|
type: "button",
|
|
@@ -4428,13 +4428,13 @@ function ContextMenuRow({
|
|
|
4428
4428
|
disabled,
|
|
4429
4429
|
onClick,
|
|
4430
4430
|
title,
|
|
4431
|
-
...
|
|
4431
|
+
..._chunkNWNC22IZcjs.loadingItemProps.call(void 0, props),
|
|
4432
4432
|
children: content
|
|
4433
4433
|
}
|
|
4434
4434
|
);
|
|
4435
4435
|
}
|
|
4436
4436
|
function ContextItemsSkeleton({ count }) {
|
|
4437
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4437
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNWNC22IZcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextMenuRow, { loading: true, label: "", "data-loading-item": true }) });
|
|
4438
4438
|
}
|
|
4439
4439
|
function ContextItemsList({
|
|
4440
4440
|
items,
|
|
@@ -4448,7 +4448,7 @@ function ContextItemsList({
|
|
|
4448
4448
|
emptyLabel = "No results",
|
|
4449
4449
|
className
|
|
4450
4450
|
}) {
|
|
4451
|
-
const loading =
|
|
4451
|
+
const loading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
|
|
4452
4452
|
const onScroll = _react.useCallback.call(void 0,
|
|
4453
4453
|
(e) => {
|
|
4454
4454
|
if (!hasMore || loadingMore || !onLoadMore) return;
|
|
@@ -4458,12 +4458,12 @@ function ContextItemsList({
|
|
|
4458
4458
|
[hasMore, loadingMore, onLoadMore]
|
|
4459
4459
|
);
|
|
4460
4460
|
if (loading) {
|
|
4461
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
4461
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, CONTEXT_LIST_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextItemsSkeleton, { count: pageSize }) });
|
|
4462
4462
|
}
|
|
4463
4463
|
if (items.length === 0 && !loadingMore) {
|
|
4464
4464
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CONTEXT_STATE_CLASS, children: emptyLabel });
|
|
4465
4465
|
}
|
|
4466
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { role: "listbox", "aria-label": "Items", onScroll, className:
|
|
4466
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { role: "listbox", "aria-label": "Items", onScroll, className: _chunkNWNC22IZcjs.cn.call(void 0, CONTEXT_LIST_CLASS, className), children: [
|
|
4467
4467
|
items.map((item) => {
|
|
4468
4468
|
const selected = selectedKeys.has(itemKey(item));
|
|
4469
4469
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4482,7 +4482,7 @@ function ContextItemsList({
|
|
|
4482
4482
|
);
|
|
4483
4483
|
}),
|
|
4484
4484
|
loadingMore && // `contents`: the rows stay the list's own rows; the region only adds the one announcement.
|
|
4485
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4485
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDNB5DELQcjs.LoadingRegion, { label: "Loading more items", className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextItemsSkeleton, { count: pageSize }) })
|
|
4486
4486
|
] });
|
|
4487
4487
|
}
|
|
4488
4488
|
var ContextErrorBoundary = class extends _react.Component {
|
|
@@ -4526,7 +4526,7 @@ function ChatComposerPlusMenu({
|
|
|
4526
4526
|
// aligning the popover to the `+` rather than the input row.
|
|
4527
4527
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative inline-flex", children: [
|
|
4528
4528
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4529
|
-
|
|
4529
|
+
_chunkIZXVGIQXcjs.Button,
|
|
4530
4530
|
{
|
|
4531
4531
|
variant: "bare",
|
|
4532
4532
|
"data-tone": "accent",
|
|
@@ -4647,7 +4647,7 @@ function ChatContextPicker({
|
|
|
4647
4647
|
role: "dialog",
|
|
4648
4648
|
"aria-label": "Add context",
|
|
4649
4649
|
style: { maxHeight: availMaxH },
|
|
4650
|
-
className:
|
|
4650
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
4651
4651
|
// Anchored to the `+` button (its `relative` parent): left edge aligns
|
|
4652
4652
|
// to the button, `bottom-full` floats it just above with a 4px gap.
|
|
4653
4653
|
"absolute bottom-full left-0 z-50 mb-1 flex max-h-[70vh] w-[320px] max-w-[90vw] flex-col overflow-y-auto overflow-x-hidden overscroll-contain",
|
|
@@ -4678,7 +4678,7 @@ function ChatContextPicker({
|
|
|
4678
4678
|
/* Level 1 — Back + entity-type list (Figma 31:28708). Back stays pinned;
|
|
4679
4679
|
the type list scrolls if it can't fit the capped popover height. */
|
|
4680
4680
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { role: "menu", "aria-label": "Context types", className: "flex flex-col divide-y divide-ods-border", children: [
|
|
4681
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CONTEXT_BACK_BAR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4681
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CONTEXT_BACK_BAR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "row", type: "button", onClick: () => setView("root"), children: [
|
|
4682
4682
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }),
|
|
4683
4683
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: "Back" })
|
|
4684
4684
|
] }) }),
|
|
@@ -4687,7 +4687,7 @@ function ChatContextPicker({
|
|
|
4687
4687
|
) : activeType ? (
|
|
4688
4688
|
/* Level 2 — Back + search + HOST-rendered items (Figma 31:29102). */
|
|
4689
4689
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4690
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
4690
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, CONTEXT_BACK_BAR_CLASS, "border-b border-ods-border"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "row", type: "button", onClick: backToTypes, children: [
|
|
4691
4691
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }),
|
|
4692
4692
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: "Back" })
|
|
4693
4693
|
] }) }),
|
|
@@ -4711,7 +4711,7 @@ function ChatContextPicker({
|
|
|
4711
4711
|
fallback: (retry) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-2 bg-ods-bg px-4 py-3 text-ods-attention-red-error text-h4", children: [
|
|
4712
4712
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Failed to load" }),
|
|
4713
4713
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4714
|
-
|
|
4714
|
+
_chunkIZXVGIQXcjs.Button,
|
|
4715
4715
|
{
|
|
4716
4716
|
variant: "link",
|
|
4717
4717
|
size: "compact",
|
|
@@ -4736,7 +4736,7 @@ function ChatContextPicker({
|
|
|
4736
4736
|
{
|
|
4737
4737
|
items: [],
|
|
4738
4738
|
selectedKeys: NO_SELECTED_KEYS,
|
|
4739
|
-
onToggle:
|
|
4739
|
+
onToggle: _chunkNWNC22IZcjs.LOADING_NOOP,
|
|
4740
4740
|
atLimit: false
|
|
4741
4741
|
}
|
|
4742
4742
|
),
|
|
@@ -4768,7 +4768,7 @@ function ChatContextChipStrip({
|
|
|
4768
4768
|
return (
|
|
4769
4769
|
// `tag` pills (Figma 1:6073): 32px tall, card surface, bordered, mono-
|
|
4770
4770
|
// uppercase label, 16px lead icon + xmark-circle remove. Wraps to new rows.
|
|
4771
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
4771
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, "flex flex-wrap content-center items-center gap-2", className), children: items.map((item) => {
|
|
4772
4772
|
const hostNode = _optionalChain([renderItem, 'optionalCall', _77 => _77(item)]);
|
|
4773
4773
|
if (hostNode != null) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: hostNode }, itemKey2(item));
|
|
4774
4774
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -4788,7 +4788,7 @@ function ChatContextChipStrip({
|
|
|
4788
4788
|
}
|
|
4789
4789
|
),
|
|
4790
4790
|
onRemove && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4791
|
-
|
|
4791
|
+
_chunkIZXVGIQXcjs.Button,
|
|
4792
4792
|
{
|
|
4793
4793
|
variant: "bare",
|
|
4794
4794
|
size: "icon-inline",
|
|
@@ -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(_chunkHAAQUV3Ocjs.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 } = _chunkHAAQUV3Ocjs.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";
|
|
@@ -4940,11 +4940,11 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4940
4940
|
const statusTone = isExecuting ? "working" : message.success === false ? "error" : "success";
|
|
4941
4941
|
const statusLabel = _optionalChain([message, 'access', _84 => _84.statusLabel, 'optionalAccess', _85 => _85.trim, 'call', _86 => _86()]) || (isExecuting ? "Working on it" : message.success === false ? "Failed" : "Done");
|
|
4942
4942
|
const headerContent = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4943
|
-
!isClient && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4943
|
+
!isClient && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ4ZNQ55Ocjs.ToolIcon, { toolType: integratedToolType, size: 16 }) }),
|
|
4944
4944
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4945
4945
|
"div",
|
|
4946
4946
|
{
|
|
4947
|
-
className:
|
|
4947
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
4948
4948
|
"min-w-0 flex-1 text-h6",
|
|
4949
4949
|
isClientView ? "whitespace-pre-wrap break-words text-ods-text-primary" : isExpanded ? "whitespace-pre-wrap break-all text-ods-text-primary" : "line-clamp-2 max-h-10 break-all text-ods-text-secondary"
|
|
4950
4950
|
),
|
|
@@ -4952,17 +4952,17 @@ 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, _chunkHAAQUV3Ocjs.ExpandChevron, { expanded: isExpanded }) })
|
|
4956
4956
|
] });
|
|
4957
4957
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4958
4958
|
"div",
|
|
4959
4959
|
{
|
|
4960
4960
|
ref,
|
|
4961
|
-
className:
|
|
4961
|
+
className: _chunkNWNC22IZcjs.cn.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
|
+
_chunkHAAQUV3Ocjs.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, _chunkHAAQUV3Ocjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
4977
4977
|
] })
|
|
4978
4978
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4979
|
-
hasBody ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4979
|
+
hasBody ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.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, _chunkHAAQUV3Ocjs.ArgRow, { argKey: key, value }, key)),
|
|
4982
4982
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4983
|
-
|
|
4983
|
+
_chunkHAAQUV3Ocjs.ResultBlock,
|
|
4984
4984
|
{
|
|
4985
4985
|
result: message.result,
|
|
4986
4986
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -4989,7 +4989,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4989
4989
|
isExecuting && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4990
4990
|
"div",
|
|
4991
4991
|
{
|
|
4992
|
-
className:
|
|
4992
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
4993
4993
|
"flex w-full flex-col items-start gap-[var(--spacing-system-xxs)]",
|
|
4994
4994
|
argEntries.length > 0 && "mt-[var(--spacing-system-xsf)]"
|
|
4995
4995
|
),
|
|
@@ -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
|
+
[_chunkTRV5GGOHcjs.CHAT_APPEARANCE.CLASSIC]: "py-[var(--spacing-system-s)]",
|
|
5016
|
+
[_chunkTRV5GGOHcjs.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 = _chunkTRV5GGOHcjs.formatTime.call(void 0, timestamp);
|
|
5058
|
+
return _chunkHAAQUV3Ocjs.isToday.call(void 0, timestamp) ? time : `${_chunkTRV5GGOHcjs.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 === _chunkTRV5GGOHcjs.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;
|
|
@@ -5297,11 +5297,11 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5297
5297
|
const displayName = name || (isHuman ? "User" : assistantType === "mingo" ? "Mingo" : "Fae");
|
|
5298
5298
|
const nameLabel = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate text-ods-open-yellow text-h6", children: displayName });
|
|
5299
5299
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
5300
|
-
const face = !showAvatar || isSystem ? null : !isHuman && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className:
|
|
5300
|
+
const face = !showAvatar || isSystem ? null : !isHuman && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: _chunkNWNC22IZcjs.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:
|
|
5302
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunkNWNC22IZcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAAQUV3Ocjs.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
|
+
_chunkKKD7XV5Acjs.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:
|
|
5320
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[_chunkTRV5GGOHcjs.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
|
}
|
|
@@ -5327,14 +5327,14 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5327
5327
|
"div",
|
|
5328
5328
|
{
|
|
5329
5329
|
ref,
|
|
5330
|
-
className:
|
|
5330
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
5331
5331
|
"relative",
|
|
5332
|
-
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ?
|
|
5332
|
+
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ? _chunkTRV5GGOHcjs.CHAT_APPEARANCE.V2 : _chunkTRV5GGOHcjs.CHAT_APPEARANCE.CLASSIC],
|
|
5333
5333
|
className
|
|
5334
5334
|
),
|
|
5335
5335
|
...props,
|
|
5336
5336
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CHAT_MESSAGE_STACK_CLASS, children: [
|
|
5337
|
-
(face || showName || showSelfName) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
5337
|
+
(face || showName || showSelfName) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, CHAT_MESSAGE_HEADER_CLASS, isUser && "justify-end"), children: [
|
|
5338
5338
|
showSelfName && nameLabel,
|
|
5339
5339
|
face,
|
|
5340
5340
|
showName && nameLabel,
|
|
@@ -5349,7 +5349,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5349
5349
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5350
5350
|
"div",
|
|
5351
5351
|
{
|
|
5352
|
-
className:
|
|
5352
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, CHAT_MESSAGE_TEXT_CLASS, isError ? "text-ods-error" : "text-ods-text-primary"),
|
|
5353
5353
|
children: renderSegmentBody(index, segment.text, segmentIsStreaming)
|
|
5354
5354
|
},
|
|
5355
5355
|
index
|
|
@@ -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
|
+
_chunkHAAQUV3Ocjs.ApprovalBatchMessage,
|
|
5390
5390
|
{
|
|
5391
5391
|
data: segment.data,
|
|
5392
5392
|
status: segment.status,
|
|
@@ -5424,7 +5424,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5424
5424
|
}
|
|
5425
5425
|
return null;
|
|
5426
5426
|
}) }),
|
|
5427
|
-
timestamp && !showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
5427
|
+
timestamp && !showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkNWNC22IZcjs.cn.call(void 0, "text-ods-text-secondary text-h6", isUser && "justify-self-end"), children: formatMessageTimestamp(timestamp) }),
|
|
5428
5428
|
stripContextItems && stripContextItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5429
5429
|
ChatContextChipStrip,
|
|
5430
5430
|
{
|
|
@@ -5470,14 +5470,14 @@ function ChatMessageSkeleton({
|
|
|
5470
5470
|
const inherited = useChatAppearance();
|
|
5471
5471
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inherited));
|
|
5472
5472
|
const lines = Math.max(1, bodyLines);
|
|
5473
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
5474
|
-
(showAvatar || showName) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
5475
|
-
showAvatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5476
|
-
showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5477
|
-
showName && showTime && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5473
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[appearance], className), ..._chunkNWNC22IZcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CHAT_MESSAGE_STACK_CLASS, children: [
|
|
5474
|
+
(showAvatar || showName) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, CHAT_MESSAGE_HEADER_CLASS, isUser && "justify-end"), children: [
|
|
5475
|
+
showAvatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKKD7XV5Acjs.SquareAvatar, { loading: true, sizePx: CHAT_MESSAGE_FACE_PX, variant: "round" }),
|
|
5476
|
+
showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h6", className: "w-24" }),
|
|
5477
|
+
showName && showTime && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h6", className: _chunkNWNC22IZcjs.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:
|
|
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: _chunkNWNC22IZcjs.cn.call(void 0, CHAT_MESSAGE_USER_BUBBLE_CLASS, "w-1/2"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h4", lines }) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHAT_MESSAGE_TEXT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h4", lines }) }) }),
|
|
5480
|
+
showTime && !showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h6", className: _chunkNWNC22IZcjs.cn.call(void 0, TIME_BAR_CLASS, isUser && "justify-self-end") })
|
|
5481
5481
|
] }) });
|
|
5482
5482
|
}
|
|
5483
5483
|
var CHAT_MESSAGE_LIST_SKELETON_MESSAGES = 6;
|
|
@@ -5493,25 +5493,25 @@ function ChatMessageListSkeleton({
|
|
|
5493
5493
|
appearance,
|
|
5494
5494
|
namedOthers = false
|
|
5495
5495
|
}) {
|
|
5496
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5496
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDNB5DELQcjs.LoadingRegion, { label: "Loading messages", announce: region, className: "relative flex min-h-0 flex-1 flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5497
5497
|
"div",
|
|
5498
5498
|
{
|
|
5499
|
-
className:
|
|
5499
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
5500
5500
|
CHAT_MESSAGE_LIST_SCROLLER_CLASS,
|
|
5501
|
-
fill ? "overflow-hidden" :
|
|
5501
|
+
fill ? "overflow-hidden" : _chunkNWNC22IZcjs.cn.call(void 0, CHAT_MESSAGE_LIST_SCROLLBAR_CLASS, "overscroll-contain"),
|
|
5502
5502
|
className
|
|
5503
5503
|
),
|
|
5504
5504
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5505
5505
|
"div",
|
|
5506
5506
|
{
|
|
5507
|
-
className:
|
|
5507
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
5508
5508
|
CHAT_MESSAGE_LIST_COLUMN_CLASS[fullWidth ? "full" : "narrow"],
|
|
5509
5509
|
_nullishCoalesce(contentClassName, () => ( CHAT_MESSAGE_LIST_CONTENT_PADDING_CLASS))
|
|
5510
5510
|
),
|
|
5511
5511
|
style: fill ? void 0 : { minHeight: "100%" },
|
|
5512
5512
|
children: [
|
|
5513
5513
|
!fill && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
5514
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5514
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNWNC22IZcjs.LoadingItems, { count: messageCount, children: (index) => {
|
|
5515
5515
|
const isUser = index % 3 === 0;
|
|
5516
5516
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5517
5517
|
ChatMessageSkeleton,
|
|
@@ -5598,7 +5598,7 @@ function CyclingPhrase({ words, className, charMs = 60, holdMs = 4500 }) {
|
|
|
5598
5598
|
}
|
|
5599
5599
|
}
|
|
5600
5600
|
);
|
|
5601
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
5601
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkNWNC22IZcjs.cn.call(void 0, "relative inline-block whitespace-nowrap", className), children: [
|
|
5602
5602
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "aria-hidden": true, className: "invisible", children: [
|
|
5603
5603
|
placeholder,
|
|
5604
5604
|
"..."
|
|
@@ -5660,7 +5660,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5660
5660
|
approvalVariant,
|
|
5661
5661
|
selfAuthorType,
|
|
5662
5662
|
nameEveryTurn,
|
|
5663
|
-
appearance =
|
|
5663
|
+
appearance = _chunkTRV5GGOHcjs.CHAT_APPEARANCE.CLASSIC,
|
|
5664
5664
|
assistantIcon,
|
|
5665
5665
|
pendingApprovals,
|
|
5666
5666
|
hasNextPage,
|
|
@@ -5675,7 +5675,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5675
5675
|
NavLinkAnchor,
|
|
5676
5676
|
...props
|
|
5677
5677
|
}, ref) => {
|
|
5678
|
-
const isLoading =
|
|
5678
|
+
const isLoading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || isLoadingProp;
|
|
5679
5679
|
const { scrollRef, contentRef, scrollToBottom, stopScroll, isAtBottom } = _usesticktobottom.useStickToBottom.call(void 0, {
|
|
5680
5680
|
resize: "smooth",
|
|
5681
5681
|
initial: false
|
|
@@ -6014,13 +6014,13 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
6014
6014
|
const lastSegment = _optionalChain([lastSegments, 'optionalAccess', _121 => _121[lastSegments.length - 1]]);
|
|
6015
6015
|
const isPausedOnApproval = !!lastSegment && (lastSegment.type === "approval_request" || lastSegment.type === "approval_batch" || lastSegment.type === "escalation_offer") && (lastSegment.status === void 0 || lastSegment.status === "pending");
|
|
6016
6016
|
const showStreamingLoader = isTyping && !isPausedOnApproval && !(pendingApprovals && pendingApprovals.length > 0);
|
|
6017
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6017
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVPV6TUIcjs.OverlayOpenRegistryProvider, { onOpenChange: handleOverlayOpenChange, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", children: [
|
|
6018
6018
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
6019
6019
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6020
6020
|
"div",
|
|
6021
6021
|
{
|
|
6022
6022
|
ref: setScrollRef,
|
|
6023
|
-
className:
|
|
6023
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
6024
6024
|
CHAT_MESSAGE_LIST_SCROLLER_CLASS,
|
|
6025
6025
|
// `overscroll-contain` (default ON, opt-out via `overscrollContain={false}`):
|
|
6026
6026
|
// reaching the top/bottom of the thread must NOT chain the wheel/
|
|
@@ -6039,7 +6039,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
6039
6039
|
"div",
|
|
6040
6040
|
{
|
|
6041
6041
|
ref: setContentRef,
|
|
6042
|
-
className:
|
|
6042
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
6043
6043
|
// `fullWidth=true` drops the centered-narrow column for
|
|
6044
6044
|
// side-panel hosts (e.g. multi-platform-hub Mingo). Same
|
|
6045
6045
|
// semantics as ChatHeader / ChatInput / ChatFooter.
|
|
@@ -6096,7 +6096,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
6096
6096
|
}
|
|
6097
6097
|
),
|
|
6098
6098
|
autoScroll && !atBottom && messages.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6099
|
-
|
|
6099
|
+
_chunkIZXVGIQXcjs.Button,
|
|
6100
6100
|
{
|
|
6101
6101
|
variant: "outline",
|
|
6102
6102
|
size: "icon-sm",
|
|
@@ -6114,7 +6114,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
6114
6114
|
showStreamingLoader && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6115
6115
|
"div",
|
|
6116
6116
|
{
|
|
6117
|
-
className:
|
|
6117
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
6118
6118
|
fullWidth ? "flex w-full items-center gap-[var(--spacing-system-xxs)] py-[var(--spacing-system-xs)]" : "mx-auto flex w-full max-w-ods-content-narrow items-center gap-[var(--spacing-system-xxs)] py-[var(--spacing-system-xs)]",
|
|
6119
6119
|
_nullishCoalesce(contentClassName, () => ( "px-[var(--spacing-system-m)]"))
|
|
6120
6120
|
),
|
|
@@ -6130,7 +6130,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
6130
6130
|
pendingApprovals && pendingApprovals.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6131
6131
|
"div",
|
|
6132
6132
|
{
|
|
6133
|
-
className:
|
|
6133
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
6134
6134
|
"border-t border-ods-border bg-ods-bg/95 backdrop-blur-sm",
|
|
6135
6135
|
fullWidth ? "w-full" : "mx-auto w-full max-w-ods-content-narrow",
|
|
6136
6136
|
_nullishCoalesce(contentClassName, () => ( "px-[var(--spacing-system-m)]"))
|
|
@@ -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 = _chunkEOZ23WOYcjs.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"
|
|
@@ -6937,7 +6937,7 @@ function MarqueeWallFades({
|
|
|
6937
6937
|
{
|
|
6938
6938
|
"aria-hidden": true,
|
|
6939
6939
|
"data-marquee-fade": edge,
|
|
6940
|
-
className:
|
|
6940
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "pointer-events-none absolute z-[1]", FADE_POSITION[edge]),
|
|
6941
6941
|
style: {
|
|
6942
6942
|
[isY ? "height" : "width"]: px,
|
|
6943
6943
|
backgroundImage: `linear-gradient(to ${edge}, transparent, ${fadeColor})`
|
|
@@ -7172,7 +7172,7 @@ function MarqueeWall({
|
|
|
7172
7172
|
"div",
|
|
7173
7173
|
{
|
|
7174
7174
|
ref: containerRef,
|
|
7175
|
-
className:
|
|
7175
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
7176
7176
|
"relative",
|
|
7177
7177
|
staticScrollable ? axis === "y" ? "overflow-y-auto" : "overflow-x-auto" : "overflow-hidden",
|
|
7178
7178
|
staticScrollable && "scrollbar-hide",
|
|
@@ -7193,7 +7193,7 @@ function MarqueeWall({
|
|
|
7193
7193
|
"div",
|
|
7194
7194
|
{
|
|
7195
7195
|
ref: trackRef,
|
|
7196
|
-
className:
|
|
7196
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
7197
7197
|
axis === "y" ? "flex w-full flex-col" : "flex w-max items-stretch",
|
|
7198
7198
|
// Keyed on the STRUCTURAL state so the compositor layer + seam gap
|
|
7199
7199
|
// stay put while the wall is frozen (paused) — dropping them on pause
|
|
@@ -7207,12 +7207,12 @@ function MarqueeWall({
|
|
|
7207
7207
|
{
|
|
7208
7208
|
ref: copyRef,
|
|
7209
7209
|
"data-marquee-copy": "primary",
|
|
7210
|
-
className:
|
|
7210
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, axis === "x" && "w-max shrink-0", contentClassName),
|
|
7211
7211
|
style: contentStyle,
|
|
7212
7212
|
children: renderContent(false)
|
|
7213
7213
|
}
|
|
7214
7214
|
),
|
|
7215
|
-
marqueeMounted && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CloneCopy, { className:
|
|
7215
|
+
marqueeMounted && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CloneCopy, { className: _chunkNWNC22IZcjs.cn.call(void 0, axis === "x" && "w-max shrink-0", contentClassName), style: contentStyle, children: renderContent(true) })
|
|
7216
7216
|
]
|
|
7217
7217
|
}
|
|
7218
7218
|
),
|
|
@@ -7265,7 +7265,7 @@ function QuickActionWall({
|
|
|
7265
7265
|
contentClassName,
|
|
7266
7266
|
sync
|
|
7267
7267
|
}) {
|
|
7268
|
-
const loading =
|
|
7268
|
+
const loading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
7269
7269
|
const brickRef = _react.useRef.call(void 0, null);
|
|
7270
7270
|
const [brickWidth, setBrickWidth] = _react.useState.call(void 0, 0);
|
|
7271
7271
|
const [chipWidth, setChipWidth] = _react.useState.call(void 0, 0);
|
|
@@ -7296,7 +7296,7 @@ function QuickActionWall({
|
|
|
7296
7296
|
(_, r) => r === 0 ? chips : chips.map((chip) => ({ ...chip, id: `${chip.id}__r${r}` }))
|
|
7297
7297
|
).flat();
|
|
7298
7298
|
}, [chips, padTarget]);
|
|
7299
|
-
const renderSkeletons = (count, offset = 0) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7299
|
+
const renderSkeletons = (count, offset = 0) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNWNC22IZcjs.LoadingItems, { count, children: (i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7300
7300
|
QuickActionChipButton,
|
|
7301
7301
|
{
|
|
7302
7302
|
loading: true,
|
|
@@ -7341,7 +7341,7 @@ function QuickActionWall({
|
|
|
7341
7341
|
).flat();
|
|
7342
7342
|
});
|
|
7343
7343
|
const skelPerRow = Math.ceil(skeletonCount / stackRows);
|
|
7344
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: brickRef, className:
|
|
7344
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: brickRef, className: _chunkNWNC22IZcjs.cn.call(void 0, "relative flex flex-col overflow-hidden", className), style: { gap }, children: [
|
|
7345
7345
|
rowLists.map((list, r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7346
7346
|
MarqueeWall,
|
|
7347
7347
|
{
|
|
@@ -7353,7 +7353,7 @@ function QuickActionWall({
|
|
|
7353
7353
|
pauseOnHover,
|
|
7354
7354
|
dragScroll,
|
|
7355
7355
|
copyGap: gap,
|
|
7356
|
-
contentClassName:
|
|
7356
|
+
contentClassName: _chunkNWNC22IZcjs.cn.call(void 0, "flex items-center", contentClassName),
|
|
7357
7357
|
contentStyle: { gap },
|
|
7358
7358
|
children: loading ? renderSkeletons(skelPerRow, r * 3) : renderChipNodes(list)
|
|
7359
7359
|
},
|
|
@@ -7377,7 +7377,7 @@ function QuickActionWall({
|
|
|
7377
7377
|
fadeSize,
|
|
7378
7378
|
copyGap: gap,
|
|
7379
7379
|
className,
|
|
7380
|
-
contentClassName:
|
|
7380
|
+
contentClassName: _chunkNWNC22IZcjs.cn.call(void 0, "flex flex-wrap content-start items-start", contentClassName),
|
|
7381
7381
|
contentStyle: { gap },
|
|
7382
7382
|
sync,
|
|
7383
7383
|
children: renderChips()
|
|
@@ -7429,7 +7429,7 @@ function ChatListEmptyState({ icon, title, description, className }) {
|
|
|
7429
7429
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7430
7430
|
"div",
|
|
7431
7431
|
{
|
|
7432
|
-
className:
|
|
7432
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
7433
7433
|
"flex min-h-0 flex-1 flex-col items-center justify-center gap-[var(--spacing-system-l)] p-[var(--spacing-system-l)] text-center text-ods-text-secondary",
|
|
7434
7434
|
className
|
|
7435
7435
|
),
|
|
@@ -7490,7 +7490,7 @@ function MingoChatHistoryRow({
|
|
|
7490
7490
|
onRequestArchive,
|
|
7491
7491
|
...props
|
|
7492
7492
|
}) {
|
|
7493
|
-
const loading =
|
|
7493
|
+
const loading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || loadingProp || !dialog;
|
|
7494
7494
|
const title = _optionalChain([dialog, 'optionalAccess', _157 => _157.title]) || "Untitled Chat";
|
|
7495
7495
|
const unread = _nullishCoalesce(_optionalChain([dialog, 'optionalAccess', _158 => _158.unreadMessagesCount]), () => ( 0));
|
|
7496
7496
|
const hasMenu = !loading && (!!onRequestRename || !!onRequestArchive || !!onRequestCopyLink || !!onRequestCompact);
|
|
@@ -7507,15 +7507,15 @@ function MingoChatHistoryRow({
|
|
|
7507
7507
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7508
7508
|
"div",
|
|
7509
7509
|
{
|
|
7510
|
-
...
|
|
7510
|
+
..._chunkNWNC22IZcjs.loadingItemProps.call(void 0, props),
|
|
7511
7511
|
"aria-hidden": loading || void 0,
|
|
7512
|
-
className:
|
|
7512
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
7513
7513
|
HISTORY_ROW_CLASS,
|
|
7514
7514
|
"group/row relative transition-colors",
|
|
7515
7515
|
// Active (selected) dialog — Figma 259:91610: an accent-secondary
|
|
7516
7516
|
// fill, a 4px accent bar down the leading edge, and accent-colored
|
|
7517
7517
|
// title text. Inactive rows keep the dark surface with a hover tint.
|
|
7518
|
-
isActive ? "bg-ods-accent-secondary" :
|
|
7518
|
+
isActive ? "bg-ods-accent-secondary" : _chunkNWNC22IZcjs.cn.call(void 0, "bg-ods-bg", !loading && "hover:bg-ods-bg-hover")
|
|
7519
7519
|
),
|
|
7520
7520
|
children: [
|
|
7521
7521
|
isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, className: "pointer-events-none absolute inset-y-0 left-0 w-1 bg-ods-accent" }) : null,
|
|
@@ -7531,18 +7531,18 @@ function MingoChatHistoryRow({
|
|
|
7531
7531
|
select();
|
|
7532
7532
|
}
|
|
7533
7533
|
},
|
|
7534
|
-
className:
|
|
7534
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
7535
7535
|
HISTORY_ROW_CONTENT_CLASS,
|
|
7536
7536
|
"flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xsf)]",
|
|
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, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h4", className: _chunkTRV5GGOHcjs.SKELETON_TITLE_WIDTHS[skeletonIndex % _chunkTRV5GGOHcjs.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",
|
|
7544
7544
|
{
|
|
7545
|
-
className:
|
|
7545
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "min-w-0 flex-1 truncate text-h4", isActive ? "text-ods-accent" : "text-ods-text-primary"),
|
|
7546
7546
|
title,
|
|
7547
7547
|
children: title
|
|
7548
7548
|
}
|
|
@@ -7556,7 +7556,7 @@ function MingoChatHistoryRow({
|
|
|
7556
7556
|
// `⋯` actions button IN PLACE, so the title never reflows. Without an
|
|
7557
7557
|
// avatar the cell exists only for the hover menu, so it collapses on
|
|
7558
7558
|
// mobile exactly like the old hover-only gutter (no hover on touch).
|
|
7559
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
7559
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkNWNC22IZcjs.cn.call(void 0, "relative w-12 shrink-0 self-stretch", !hasAvatar && "max-md:hidden"), children: [
|
|
7560
7560
|
hasMenu ? (
|
|
7561
7561
|
// Revealed on row hover/its own focus; kept visible while the menu
|
|
7562
7562
|
// is open. Hidden on mobile — it's a hover affordance. `peer/menu`
|
|
@@ -7566,12 +7566,12 @@ function MingoChatHistoryRow({
|
|
|
7566
7566
|
"span",
|
|
7567
7567
|
{
|
|
7568
7568
|
onClick: (e) => e.stopPropagation(),
|
|
7569
|
-
className:
|
|
7569
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
7570
7570
|
"peer/menu absolute inset-0 transition-opacity max-md:hidden",
|
|
7571
7571
|
menuOpen ? "opacity-100" : "opacity-0 focus-within:opacity-100 group-hover/row:opacity-100"
|
|
7572
7572
|
),
|
|
7573
7573
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7574
|
-
|
|
7574
|
+
_chunkUVPV6TUIcjs.ActionsMenuDropdown,
|
|
7575
7575
|
{
|
|
7576
7576
|
triggerAriaLabel: "Chat actions",
|
|
7577
7577
|
groups: [{ items: menuItems }],
|
|
@@ -7579,7 +7579,7 @@ function MingoChatHistoryRow({
|
|
|
7579
7579
|
onOpenChange: setMenuOpen,
|
|
7580
7580
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
7581
7581
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7582
|
-
|
|
7582
|
+
_chunkIZXVGIQXcjs.Button,
|
|
7583
7583
|
{
|
|
7584
7584
|
variant: "transparent",
|
|
7585
7585
|
size: "icon",
|
|
@@ -7602,12 +7602,12 @@ function MingoChatHistoryRow({
|
|
|
7602
7602
|
{
|
|
7603
7603
|
onClick: select,
|
|
7604
7604
|
title: _optionalChain([owner, 'optionalAccess', _163 => _163.name]) || void 0,
|
|
7605
|
-
className:
|
|
7605
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
7606
7606
|
"absolute inset-0 flex cursor-pointer items-center justify-center transition-opacity",
|
|
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
|
+
_chunkKKD7XV5Acjs.SquareAvatar,
|
|
7611
7611
|
{
|
|
7612
7612
|
variant: "round",
|
|
7613
7613
|
sizePx: 24,
|
|
@@ -7633,13 +7633,13 @@ function MingoChatHistorySkeleton({ rows, className }) {
|
|
|
7633
7633
|
(_, group) => Math.max(0, Math.min(perGroup, rows - group * perGroup))
|
|
7634
7634
|
).filter((count) => count > 0);
|
|
7635
7635
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7636
|
-
|
|
7636
|
+
_chunkDNB5DELQcjs.LoadingRegion,
|
|
7637
7637
|
{
|
|
7638
7638
|
label: "Loading conversations",
|
|
7639
|
-
className:
|
|
7640
|
-
children: groups.map((count, group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
7641
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7642
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HISTORY_GROUP_BOX_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7639
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-hidden", className),
|
|
7640
|
+
children: groups.map((count, group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, HISTORY_GROUP_CLASS, "shrink-0"), children: [
|
|
7641
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h5", className: "w-16" }),
|
|
7642
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HISTORY_GROUP_BOX_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNWNC22IZcjs.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
|
}
|
|
7645
7645
|
);
|
|
@@ -7660,10 +7660,10 @@ function MingoChatHistory({
|
|
|
7660
7660
|
pageSize = CHAT_HISTORY_PAGE_SIZE,
|
|
7661
7661
|
className
|
|
7662
7662
|
}) {
|
|
7663
|
-
const isLoading =
|
|
7663
|
+
const isLoading = _chunkNWNC22IZcjs.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 } = _chunkTRV5GGOHcjs.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);
|
|
@@ -7688,7 +7688,7 @@ function MingoChatHistory({
|
|
|
7688
7688
|
return () => io.disconnect();
|
|
7689
7689
|
}, [hasMore, isLoadingMore, dialogCount, scrollRef]);
|
|
7690
7690
|
if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoChatHistorySkeleton, { rows: pageSize, className });
|
|
7691
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
7691
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, "relative flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)]", className), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
7692
7692
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7693
7693
|
"div",
|
|
7694
7694
|
{
|
|
@@ -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, _chunkTRV5GGOHcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, color: "var(--color-bg-card)", className: "h-12" }),
|
|
7732
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTRV5GGOHcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, color: "var(--color-bg-card)", className: "h-12" })
|
|
7733
7733
|
] }) });
|
|
7734
7734
|
}
|
|
7735
7735
|
|
|
@@ -7763,7 +7763,7 @@ function MingoWelcome({
|
|
|
7763
7763
|
className
|
|
7764
7764
|
}) {
|
|
7765
7765
|
const heading = _nullishCoalesce(title, () => ( "Hey, I'm Mingo"));
|
|
7766
|
-
const historyLoading =
|
|
7766
|
+
const historyLoading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || isLoadingHistory;
|
|
7767
7767
|
const resolvedPromo = hasExistingChats ? null : promo === void 0 ? onStartGuideChat ? DEFAULT_PROMO : null : promo;
|
|
7768
7768
|
const hydrated = useIsHydrated();
|
|
7769
7769
|
const [dismissedThisSession, setPromoDismissed] = _react.useState.call(void 0, false);
|
|
@@ -7785,12 +7785,12 @@ 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 } = _chunkTRV5GGOHcjs.useScrollFade.call(void 0, );
|
|
7789
7789
|
const showPinnedRegion = !!dialogHistory || !historyLoading && !loadError;
|
|
7790
7790
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7791
7791
|
"div",
|
|
7792
7792
|
{
|
|
7793
|
-
className:
|
|
7793
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
7794
7794
|
// `@container` makes the panel itself the responsive context (the
|
|
7795
7795
|
// drawer width ≠ viewport width) so the notification's down-arrow can
|
|
7796
7796
|
// appear only once the panel is genuinely wide.
|
|
@@ -7804,7 +7804,7 @@ function MingoWelcome({
|
|
|
7804
7804
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: "Couldn\u2019t load your chats" }),
|
|
7805
7805
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-body-sm text-ods-text-secondary", children: "Something went wrong reaching the server. Check your connection and try again." })
|
|
7806
7806
|
] }),
|
|
7807
|
-
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7807
|
+
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "outline", size: "small", leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXLTOM62Pcjs.Refresh01RightIcon, {}), onClick: onRetry, children: "Try again" })
|
|
7808
7808
|
] }) : historyLoading ? (
|
|
7809
7809
|
// The history draws its own loading state (one page of rows) until the
|
|
7810
7810
|
// first page tells new and returning users apart.
|
|
@@ -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, _chunkHAAQUV3Ocjs.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, _chunkTRV5GGOHcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
7829
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTRV5GGOHcjs.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: [
|
|
@@ -7836,7 +7836,7 @@ function MingoWelcome({
|
|
|
7836
7836
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: resolvedPromo.description })
|
|
7837
7837
|
] }),
|
|
7838
7838
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7839
|
-
|
|
7839
|
+
_chunkIZXVGIQXcjs.Button,
|
|
7840
7840
|
{
|
|
7841
7841
|
variant: "bare",
|
|
7842
7842
|
size: "icon-sm",
|
|
@@ -7906,8 +7906,8 @@ function GuideWelcome({
|
|
|
7906
7906
|
children,
|
|
7907
7907
|
className
|
|
7908
7908
|
}) {
|
|
7909
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
7910
|
-
const subtitleIsLoading =
|
|
7909
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkTRV5GGOHcjs.useScrollFade.call(void 0, );
|
|
7910
|
+
const subtitleIsLoading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || subtitleLoading && !subtitle;
|
|
7911
7911
|
const chipItems = _react.useMemo.call(void 0,
|
|
7912
7912
|
() => quickActions.map((action) => ({
|
|
7913
7913
|
id: action.id,
|
|
@@ -7929,7 +7929,7 @@ function GuideWelcome({
|
|
|
7929
7929
|
})),
|
|
7930
7930
|
[quickActions, icon, onQuickAction, onQuickActionHover, onQuickActionHoverEnd]
|
|
7931
7931
|
);
|
|
7932
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
7932
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)]", className), children: [
|
|
7933
7933
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
7934
7934
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7935
7935
|
"div",
|
|
@@ -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, _chunk3SENOTWTcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
7946
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAAQUV3Ocjs.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, _chunkLCSYTFFOcjs.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, _chunkTRV5GGOHcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
7957
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTRV5GGOHcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
7958
7958
|
] }),
|
|
7959
7959
|
quickActions.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7960
7960
|
QuickActionWall,
|
|
@@ -7982,16 +7982,16 @@ function GuideModeBanner({ label = DEFAULT_LABEL, tooltip = DEFAULT_TOOLTIP, cla
|
|
|
7982
7982
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7983
7983
|
"div",
|
|
7984
7984
|
{
|
|
7985
|
-
className:
|
|
7985
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
7986
7986
|
"flex h-8 w-full shrink-0 items-center gap-[var(--spacing-system-xs)] bg-ods-accent px-[var(--spacing-system-m)] py-[var(--spacing-system-xsf)]",
|
|
7987
7987
|
className
|
|
7988
7988
|
),
|
|
7989
7989
|
children: [
|
|
7990
7990
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZFJDLJSIcjs.CompassIcon, { size: 16, className: "shrink-0 text-ods-text-on-accent" }),
|
|
7991
7991
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "flex-1 truncate uppercase text-ods-text-on-accent text-h5", children: label }),
|
|
7992
|
-
tooltip != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7993
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7994
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7992
|
+
tooltip != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVPV6TUIcjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUVPV6TUIcjs.Tooltip, { children: [
|
|
7993
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVPV6TUIcjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "bare", size: "icon-inline", type: "button", "aria-label": "About Guide Mode", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 16, className: "text-ods-text-on-accent" }) }) }),
|
|
7994
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUVPV6TUIcjs.TooltipContent, { side: "bottom", align: "end", className: "max-w-[280px] normal-case text-h6", children: tooltip })
|
|
7995
7995
|
] }) })
|
|
7996
7996
|
]
|
|
7997
7997
|
}
|
|
@@ -8010,7 +8010,7 @@ function MingoArchiveList({
|
|
|
8010
8010
|
isLoadingMore = false,
|
|
8011
8011
|
onLoadMore
|
|
8012
8012
|
}) {
|
|
8013
|
-
const loading =
|
|
8013
|
+
const loading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || isLoading && dialogs.length === 0;
|
|
8014
8014
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
8015
8015
|
const onLoadMoreRef = _react.useRef.call(void 0, onLoadMore);
|
|
8016
8016
|
const isLoadingMoreRef = _react.useRef.call(void 0, isLoadingMore);
|
|
@@ -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, _chunkTRV5GGOHcjs.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
|
+
_chunkTRV5GGOHcjs.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: _chunkHAAQUV3Ocjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
8050
8050
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8051
|
-
|
|
8051
|
+
_chunkKKD7XV5Acjs.SquareAvatar,
|
|
8052
8052
|
{
|
|
8053
8053
|
variant: "round",
|
|
8054
8054
|
sizePx: 24,
|
|
@@ -8096,7 +8096,7 @@ function MingoChatHeader({
|
|
|
8096
8096
|
];
|
|
8097
8097
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-14 w-full shrink-0 divide-x divide-ods-border overflow-hidden border-b border-ods-border", children: [
|
|
8098
8098
|
onToggleList && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8099
|
-
|
|
8099
|
+
_chunkIZXVGIQXcjs.Button,
|
|
8100
8100
|
{
|
|
8101
8101
|
variant: "cell",
|
|
8102
8102
|
className: "w-14",
|
|
@@ -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
|
+
_chunkKKD7XV5Acjs.SquareAvatar,
|
|
8116
8116
|
{
|
|
8117
8117
|
variant: "round",
|
|
8118
8118
|
sizePx: 32,
|
|
@@ -8123,18 +8123,18 @@ function MingoChatHeader({
|
|
|
8123
8123
|
}
|
|
8124
8124
|
) : null
|
|
8125
8125
|
] }),
|
|
8126
|
-
onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8126
|
+
onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "cell", className: "w-14", onClick: onRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
8127
8127
|
menuGroups.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8128
|
-
|
|
8128
|
+
_chunkUVPV6TUIcjs.ActionsMenuDropdown,
|
|
8129
8129
|
{
|
|
8130
8130
|
triggerAriaLabel: "Chat actions",
|
|
8131
8131
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
8132
8132
|
groups: menuGroups,
|
|
8133
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8133
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "cell", className: "w-14", "aria-label": "Chat actions", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 24 }) })
|
|
8134
8134
|
}
|
|
8135
8135
|
),
|
|
8136
|
-
onCollapse && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8137
|
-
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8136
|
+
onCollapse && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "cell", className: "w-14", onClick: onCollapse, "aria-label": "Collapse chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7OPT4PNcjs.Arrow02RightIcon, { size: 24 }) }),
|
|
8137
|
+
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "cell", className: "w-14", onClick: onClose, "aria-label": "Close", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 24 }) })
|
|
8138
8138
|
] });
|
|
8139
8139
|
}
|
|
8140
8140
|
|
|
@@ -8178,7 +8178,7 @@ function ChatHeaderSearchField({
|
|
|
8178
8178
|
onAnimationEnd: (e) => {
|
|
8179
8179
|
if (e.target === e.currentTarget && exiting) finishCollapse();
|
|
8180
8180
|
},
|
|
8181
|
-
className:
|
|
8181
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
8182
8182
|
"flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xs)] px-[var(--spacing-system-sf)]",
|
|
8183
8183
|
exiting ? (
|
|
8184
8184
|
// Elegant leave: sweep back out to the right + fade, holding the end
|
|
@@ -8274,7 +8274,7 @@ function MingoChatRail({
|
|
|
8274
8274
|
onExpand,
|
|
8275
8275
|
className
|
|
8276
8276
|
}) {
|
|
8277
|
-
const loading =
|
|
8277
|
+
const loading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || isLoadingHistory;
|
|
8278
8278
|
const [searchOpen, setSearchOpen] = _react.useState.call(void 0, !!_optionalChain([searchQuery, 'optionalAccess', _182 => _182.trim, 'call', _183 => _183()]));
|
|
8279
8279
|
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _184 => _184.trim, 'call', _185 => _185()]);
|
|
8280
8280
|
const items = [];
|
|
@@ -8348,10 +8348,10 @@ function MingoChatRail({
|
|
|
8348
8348
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: "Couldn\u2019t load your chats" }),
|
|
8349
8349
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Something went wrong reaching the server. Try again." })
|
|
8350
8350
|
] }),
|
|
8351
|
-
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8351
|
+
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.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, _chunkTRV5GGOHcjs.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, _chunkTRV5GGOHcjs.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,15 +8385,15 @@ function MingoChatRail({
|
|
|
8385
8385
|
] });
|
|
8386
8386
|
}
|
|
8387
8387
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8388
|
-
|
|
8388
|
+
_chunkTRV5GGOHcjs.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, _chunkHAAQUV3Ocjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
8395
8395
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8396
|
-
|
|
8396
|
+
_chunkIZXVGIQXcjs.Button,
|
|
8397
8397
|
{
|
|
8398
8398
|
variant: "transparent",
|
|
8399
8399
|
size: "icon",
|
|
@@ -8407,13 +8407,13 @@ function MingoChatRail({
|
|
|
8407
8407
|
items,
|
|
8408
8408
|
sectionLabel: "Your Current Chats",
|
|
8409
8409
|
sectionActions: listMenu.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8410
|
-
|
|
8410
|
+
_chunkUVPV6TUIcjs.ActionsMenuDropdown,
|
|
8411
8411
|
{
|
|
8412
8412
|
triggerAriaLabel: "Chat list options",
|
|
8413
8413
|
groups: [{ items: listMenu }],
|
|
8414
8414
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
8415
8415
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8416
|
-
|
|
8416
|
+
_chunkIZXVGIQXcjs.Button,
|
|
8417
8417
|
{
|
|
8418
8418
|
variant: "transparent",
|
|
8419
8419
|
size: "icon",
|
|
@@ -8442,20 +8442,20 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
8442
8442
|
const hasMenu = menuItems.length > 0;
|
|
8443
8443
|
const glyph = status ? STATUS_GLYPHS[status] : void 0;
|
|
8444
8444
|
const title = dialog.title || "Untitled Chat";
|
|
8445
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ...
|
|
8445
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ..._chunkNWNC22IZcjs.loadingItemProps.call(void 0, props), className: "group/row relative shrink-0", children: [
|
|
8446
8446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8447
|
-
|
|
8447
|
+
_chunkTRV5GGOHcjs.ChatListItem,
|
|
8448
8448
|
{
|
|
8449
8449
|
active,
|
|
8450
8450
|
title,
|
|
8451
8451
|
onClick: () => _optionalChain([onSelect, 'optionalCall', _189 => _189(dialog.id)]),
|
|
8452
|
-
className:
|
|
8452
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, hasMenu && "pr-10"),
|
|
8453
8453
|
trailing: glyph ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8454
8454
|
"span",
|
|
8455
8455
|
{
|
|
8456
8456
|
role: "img",
|
|
8457
8457
|
"aria-label": glyph.label,
|
|
8458
|
-
className:
|
|
8458
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "flex transition-opacity", hasMenu && "group-hover/row:opacity-0", menuOpen && "opacity-0"),
|
|
8459
8459
|
children: glyph.icon
|
|
8460
8460
|
}
|
|
8461
8461
|
) : void 0
|
|
@@ -8465,12 +8465,12 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
8465
8465
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8466
8466
|
"span",
|
|
8467
8467
|
{
|
|
8468
|
-
className:
|
|
8468
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
8469
8469
|
"absolute inset-y-0 right-[var(--spacing-system-xs)] flex items-center transition-opacity",
|
|
8470
8470
|
menuOpen ? "opacity-100" : "opacity-0 focus-within:opacity-100 group-hover/row:opacity-100"
|
|
8471
8471
|
),
|
|
8472
8472
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8473
|
-
|
|
8473
|
+
_chunkUVPV6TUIcjs.ActionsMenuDropdown,
|
|
8474
8474
|
{
|
|
8475
8475
|
triggerAriaLabel: `Actions for ${title}`,
|
|
8476
8476
|
groups: [{ items: menuItems }],
|
|
@@ -8478,7 +8478,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
8478
8478
|
onOpenChange: setMenuOpen,
|
|
8479
8479
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
8480
8480
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8481
|
-
|
|
8481
|
+
_chunkIZXVGIQXcjs.Button,
|
|
8482
8482
|
{
|
|
8483
8483
|
variant: "transparent",
|
|
8484
8484
|
size: "icon",
|
|
@@ -8506,29 +8506,29 @@ function TabSelector({
|
|
|
8506
8506
|
scrollable = false,
|
|
8507
8507
|
className
|
|
8508
8508
|
}) {
|
|
8509
|
-
const flush =
|
|
8509
|
+
const flush = _chunkUVPV6TUIcjs.useIsInActionsMenuHeader.call(void 0, );
|
|
8510
8510
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8511
8511
|
"div",
|
|
8512
8512
|
{
|
|
8513
|
-
className:
|
|
8513
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "flex flex-col gap-[var(--spacing-system-xxs)]", disabled && "opacity-50", className),
|
|
8514
8514
|
"aria-disabled": disabled || void 0,
|
|
8515
8515
|
children: [
|
|
8516
8516
|
label && // Label for family/color; 'large' (text-h4) is this component's
|
|
8517
8517
|
// long-standing label scale — neighbours opt into the same scale via
|
|
8518
8518
|
// their `labelVariant="large"` when a design puts them side by side.
|
|
8519
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8519
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJHY6H2XRcjs.Label, { variant: "large", children: label }),
|
|
8520
8520
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8521
8521
|
"div",
|
|
8522
8522
|
{
|
|
8523
|
-
className:
|
|
8523
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
8524
8524
|
"flex gap-[var(--spacing-system-xxs)] bg-ods-bg p-[var(--spacing-system-xxs)]",
|
|
8525
|
-
flush ? "h-10 w-full" :
|
|
8525
|
+
flush ? "h-10 w-full" : _chunkNWNC22IZcjs.cn.call(void 0, "h-11 rounded-md border border-ods-border content-md:h-12", scrollable ? "overflow-x-auto" : "w-full")
|
|
8526
8526
|
),
|
|
8527
8527
|
children: items.map((item) => {
|
|
8528
8528
|
const isActive = value === item.id;
|
|
8529
8529
|
const isDisabled = disabled || item.disabled;
|
|
8530
8530
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8531
|
-
|
|
8531
|
+
_chunkIZXVGIQXcjs.Button,
|
|
8532
8532
|
{
|
|
8533
8533
|
variant: "segment",
|
|
8534
8534
|
type: "button",
|
|
@@ -8538,7 +8538,7 @@ function TabSelector({
|
|
|
8538
8538
|
"aria-pressed": isActive,
|
|
8539
8539
|
"data-state": isActive ? "active" : void 0,
|
|
8540
8540
|
"data-tone": variant === "primary" ? "accent" : void 0,
|
|
8541
|
-
className:
|
|
8541
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "h-full", scrollable ? "flex-none shrink-0 basis-auto" : "flex-1"),
|
|
8542
8542
|
children: [
|
|
8543
8543
|
item.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex size-4 shrink-0 items-center justify-center content-md:size-6", children: item.icon }),
|
|
8544
8544
|
item.label,
|
|
@@ -8578,19 +8578,19 @@ function MingoHistoryRail({
|
|
|
8578
8578
|
onRetry,
|
|
8579
8579
|
className
|
|
8580
8580
|
}) {
|
|
8581
|
-
const loading =
|
|
8581
|
+
const loading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || isLoadingHistory;
|
|
8582
8582
|
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _190 => _190.trim, 'call', _191 => _191()]);
|
|
8583
8583
|
const hasList = dialogs.length > 0 || hasSearch;
|
|
8584
8584
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8585
8585
|
"div",
|
|
8586
8586
|
{
|
|
8587
|
-
className:
|
|
8587
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
8588
8588
|
"flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] p-[var(--spacing-system-m)]",
|
|
8589
8589
|
className
|
|
8590
8590
|
),
|
|
8591
8591
|
children: [
|
|
8592
8592
|
onNewChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8593
|
-
|
|
8593
|
+
_chunkIZXVGIQXcjs.Button,
|
|
8594
8594
|
{
|
|
8595
8595
|
variant: "outline",
|
|
8596
8596
|
fullWidth: true,
|
|
@@ -8618,7 +8618,7 @@ function MingoHistoryRail({
|
|
|
8618
8618
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: "Couldn\u2019t load your chats" }),
|
|
8619
8619
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Something went wrong reaching the server. Try again." })
|
|
8620
8620
|
] }),
|
|
8621
|
-
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8621
|
+
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "outline", size: "small", leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXLTOM62Pcjs.Refresh01RightIcon, {}), onClick: onRetry, children: "Try again" })
|
|
8622
8622
|
] }) : loading || hasList ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8623
8623
|
MingoChatHistory,
|
|
8624
8624
|
{
|
|
@@ -8667,10 +8667,10 @@ 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, _chunkTRV5GGOHcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8671
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTRV5GGOHcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTRV5GGOHcjs.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
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8673
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJHY6H2XRcjs.Label, { htmlFor: "rename-chat-input", variant: "large", children: "Chat Name" }),
|
|
8674
8674
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8675
8675
|
"input",
|
|
8676
8676
|
{
|
|
@@ -8685,29 +8685,29 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8685
8685
|
}
|
|
8686
8686
|
)
|
|
8687
8687
|
] }),
|
|
8688
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8689
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8690
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8688
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkTRV5GGOHcjs.ModalFooter, { children: [
|
|
8689
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8690
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.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, _chunkTRV5GGOHcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8696
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTRV5GGOHcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTRV5GGOHcjs.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,
|
|
8699
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8700
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8698
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkTRV5GGOHcjs.ModalFooter, { children: [
|
|
8699
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8700
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.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, _chunkTRV5GGOHcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8706
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTRV5GGOHcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTRV5GGOHcjs.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,
|
|
8709
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8710
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8708
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkTRV5GGOHcjs.ModalFooter, { children: [
|
|
8709
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8710
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "accent", type: "button", onClick: onConfirm, className: footerBtn, children: "Unarchive Chat" })
|
|
8711
8711
|
] })
|
|
8712
8712
|
] });
|
|
8713
8713
|
}
|
|
@@ -8781,24 +8781,24 @@ function ChatPanelHeaderMobile({
|
|
|
8781
8781
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8782
8782
|
"div",
|
|
8783
8783
|
{
|
|
8784
|
-
className:
|
|
8784
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
8785
8785
|
"flex flex-shrink-0 flex-col border-b border-ods-border bg-ods-card",
|
|
8786
8786
|
"px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]",
|
|
8787
8787
|
className
|
|
8788
8788
|
),
|
|
8789
8789
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-end gap-[var(--spacing-system-sf)]", children: [
|
|
8790
|
-
showBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8790
|
+
showBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "outline", size: "icon", "aria-label": backAriaLabel, onClick: onBack, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, {}) }),
|
|
8791
8791
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-end gap-[var(--spacing-system-m)] pt-[var(--spacing-system-xl)]", children: [
|
|
8792
8792
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-[var(--spacing-system-xs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 truncate text-ods-text-primary text-h2", title, children: title }) }),
|
|
8793
8793
|
menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8794
|
-
|
|
8794
|
+
_chunkUVPV6TUIcjs.ActionsMenuDropdown,
|
|
8795
8795
|
{
|
|
8796
8796
|
groups: [{ items: menuItems }],
|
|
8797
8797
|
triggerAriaLabel: "Chat actions",
|
|
8798
8798
|
triggerClassName: "flex shrink-0 items-center justify-center border-ods-border bg-ods-card hover:bg-ods-bg-hover focus-visible:ring-0"
|
|
8799
8799
|
}
|
|
8800
8800
|
),
|
|
8801
|
-
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8801
|
+
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "outline", size: "icon", "aria-label": "Close chat", onClick: onClose, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, {}) })
|
|
8802
8802
|
] })
|
|
8803
8803
|
] })
|
|
8804
8804
|
}
|
|
@@ -8853,12 +8853,12 @@ function ChatPanelHeader({
|
|
|
8853
8853
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8854
8854
|
"div",
|
|
8855
8855
|
{
|
|
8856
|
-
className:
|
|
8856
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
8857
8857
|
"h-14 w-full flex-shrink-0 divide-x divide-ods-border overflow-hidden border-b border-ods-border bg-ods-card",
|
|
8858
8858
|
compact ? "flex" : "hidden md:flex"
|
|
8859
8859
|
),
|
|
8860
8860
|
children: [
|
|
8861
|
-
showBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8861
|
+
showBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "cell", className: "w-14", onClick: onBack, "aria-label": backAriaLabel, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }) }),
|
|
8862
8862
|
searchInline ? (
|
|
8863
8863
|
// Search open — the inline field takes over the title area in place
|
|
8864
8864
|
// (Figma 116:51217); the magnifier toggle below is hidden.
|
|
@@ -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
|
+
_chunkKKD7XV5Acjs.SquareAvatar,
|
|
8882
8882
|
{
|
|
8883
8883
|
variant: "round",
|
|
8884
8884
|
sizePx: 32,
|
|
@@ -8892,18 +8892,18 @@ function ChatPanelHeader({
|
|
|
8892
8892
|
)
|
|
8893
8893
|
) : null
|
|
8894
8894
|
] }),
|
|
8895
|
-
isArchivedView && onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8895
|
+
isArchivedView && onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "cell", className: "w-14", onClick: onRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
8896
8896
|
showBack && !isArchivedView && menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8897
|
-
|
|
8897
|
+
_chunkUVPV6TUIcjs.ActionsMenuDropdown,
|
|
8898
8898
|
{
|
|
8899
8899
|
triggerAriaLabel: "Chat actions",
|
|
8900
8900
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
8901
8901
|
groups: [{ items: menuItems }],
|
|
8902
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8902
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "cell", className: "w-14", "aria-label": "Chat actions", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 24 }) })
|
|
8903
8903
|
}
|
|
8904
8904
|
),
|
|
8905
8905
|
!showBack && !searchInline && onToggleSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8906
|
-
|
|
8906
|
+
_chunkIZXVGIQXcjs.Button,
|
|
8907
8907
|
{
|
|
8908
8908
|
variant: "cell",
|
|
8909
8909
|
className: "w-14",
|
|
@@ -8913,8 +8913,8 @@ function ChatPanelHeader({
|
|
|
8913
8913
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { size: 24 })
|
|
8914
8914
|
}
|
|
8915
8915
|
),
|
|
8916
|
-
!showBack && onOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8917
|
-
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8916
|
+
!showBack && onOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "cell", className: "w-14", onClick: onOpenArchive, "aria-label": "Chat archive", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JKBT3LTcjs.ClockHistoryIcon, { size: 24 }) }),
|
|
8917
|
+
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "cell", className: "w-14", onClick: onClose, "aria-label": "Close", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 24 }) })
|
|
8918
8918
|
]
|
|
8919
8919
|
}
|
|
8920
8920
|
)
|
|
@@ -8945,7 +8945,7 @@ function ChatAttachmentAddButton({
|
|
|
8945
8945
|
const compact = size === "compact";
|
|
8946
8946
|
const boxClass = compact ? "h-6 w-6" : "h-7 w-7";
|
|
8947
8947
|
if (!attachmentsEnabled) {
|
|
8948
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className:
|
|
8948
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: _chunkNWNC22IZcjs.cn.call(void 0, "inline-block shrink-0", boxClass) });
|
|
8949
8949
|
}
|
|
8950
8950
|
const slotsAvailable = Math.max(0, CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER - attachmentsCount);
|
|
8951
8951
|
const canAddMore = slotsAvailable > 0 && !disabled;
|
|
@@ -8973,7 +8973,7 @@ function ChatAttachmentAddButton({
|
|
|
8973
8973
|
}
|
|
8974
8974
|
),
|
|
8975
8975
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8976
|
-
|
|
8976
|
+
_chunkIZXVGIQXcjs.Button,
|
|
8977
8977
|
{
|
|
8978
8978
|
type: "button",
|
|
8979
8979
|
variant: "transparent",
|
|
@@ -8983,7 +8983,7 @@ function ChatAttachmentAddButton({
|
|
|
8983
8983
|
"aria-label": canAddMore ? "Add attachments" : "Attachment limit reached",
|
|
8984
8984
|
title: canAddMore ? "Add attachments" : `Limit reached (${CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER})`,
|
|
8985
8985
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4UZ62MYcjs.PlusIcon, { className: compact ? "h-3.5 w-3.5" : "h-4 w-4" }),
|
|
8986
|
-
className:
|
|
8986
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
8987
8987
|
"shrink-0 !p-0 text-ods-text-muted hover:text-ods-text-primary",
|
|
8988
8988
|
compact ? "!h-6 !w-6" : "!h-7 !w-7"
|
|
8989
8989
|
)
|
|
@@ -8999,7 +8999,7 @@ function ChatAttachmentChipStrip({
|
|
|
8999
8999
|
}) {
|
|
9000
9000
|
if (attachments.length === 0) return null;
|
|
9001
9001
|
const compact = size === "compact";
|
|
9002
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
9002
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, "flex-shrink-0", compact ? "px-3 pb-1.5" : "px-5 pb-2"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, "flex flex-wrap items-center", compact ? "gap-1.5" : "gap-2"), children: attachments.map((att) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9003
9003
|
AttachmentChip,
|
|
9004
9004
|
{
|
|
9005
9005
|
attachment: att,
|
|
@@ -9018,14 +9018,14 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
9018
9018
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9019
9019
|
"div",
|
|
9020
9020
|
{
|
|
9021
|
-
className:
|
|
9021
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
9022
9022
|
"flex items-center rounded-md border border-ods-border bg-ods-card",
|
|
9023
9023
|
compact ? "max-w-[180px] gap-1.5 px-1.5 py-1" : "max-w-[240px] gap-2 px-2 py-1.5"
|
|
9024
9024
|
),
|
|
9025
9025
|
role: "group",
|
|
9026
9026
|
"aria-label": `Attachment ${file.name}`,
|
|
9027
9027
|
children: [
|
|
9028
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
9028
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, "relative shrink-0 overflow-hidden rounded bg-ods-bg", compact ? "h-6 w-6" : "h-8 w-8"), children: [
|
|
9029
9029
|
isImage && blobUrl ? (
|
|
9030
9030
|
// cannot go through next/image; this is a transient pre-upload
|
|
9031
9031
|
// preview, NOT the chat-history render path.
|
|
@@ -9033,7 +9033,7 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
9033
9033
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9034
9034
|
"div",
|
|
9035
9035
|
{
|
|
9036
|
-
className:
|
|
9036
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
9037
9037
|
"flex h-full w-full items-center justify-center font-mono uppercase text-ods-text-muted",
|
|
9038
9038
|
compact ? "text-[9px]" : "text-[10px]"
|
|
9039
9039
|
),
|
|
@@ -9046,13 +9046,13 @@ 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 ${_chunkKKD7XV5Acjs.formatFileSize.call(void 0, file.size)}`,
|
|
9050
|
+
status === "ready" && _chunkKKD7XV5Acjs.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
|
] }),
|
|
9054
9054
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9055
|
-
|
|
9055
|
+
_chunkIZXVGIQXcjs.Button,
|
|
9056
9056
|
{
|
|
9057
9057
|
type: "button",
|
|
9058
9058
|
variant: "transparent",
|
|
@@ -9061,7 +9061,7 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
9061
9061
|
disabled,
|
|
9062
9062
|
"aria-label": `Remove ${file.name}`,
|
|
9063
9063
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { className: compact ? "h-3 w-3" : "h-3.5 w-3.5" }),
|
|
9064
|
-
className:
|
|
9064
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
9065
9065
|
"shrink-0 !p-0 text-ods-text-muted hover:text-ods-text-primary",
|
|
9066
9066
|
compact ? "!h-4 !w-4" : "!h-5 !w-5"
|
|
9067
9067
|
)
|
|
@@ -9132,7 +9132,7 @@ function ChatContextMemoryBar({
|
|
|
9132
9132
|
"div",
|
|
9133
9133
|
{
|
|
9134
9134
|
ref: rootRef,
|
|
9135
|
-
className:
|
|
9135
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
9136
9136
|
"relative flex items-center gap-[var(--spacing-system-xs)] border-b border-ods-border bg-ods-bg p-[var(--spacing-system-xs)]",
|
|
9137
9137
|
className
|
|
9138
9138
|
),
|
|
@@ -9150,7 +9150,7 @@ function ChatContextMemoryBar({
|
|
|
9150
9150
|
" in context"
|
|
9151
9151
|
] }),
|
|
9152
9152
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9153
|
-
|
|
9153
|
+
_chunkIZXVGIQXcjs.Button,
|
|
9154
9154
|
{
|
|
9155
9155
|
variant: "bare",
|
|
9156
9156
|
size: "icon-sm",
|
|
@@ -9176,7 +9176,7 @@ function ChatContextMemoryBar({
|
|
|
9176
9176
|
resolveIcon2 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CONTEXT_ICON_CLASS, children: resolveIcon2(item) }),
|
|
9177
9177
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CONTEXT_LABEL_CLASS, title: item.label, children: item.label }),
|
|
9178
9178
|
onRemove && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9179
|
-
|
|
9179
|
+
_chunkIZXVGIQXcjs.Button,
|
|
9180
9180
|
{
|
|
9181
9181
|
variant: "bare",
|
|
9182
9182
|
size: "icon-sm",
|
|
@@ -9220,7 +9220,7 @@ var HoverCardContent = _react.forwardRef.call(void 0,
|
|
|
9220
9220
|
}, ref) => (
|
|
9221
9221
|
// Portalled so an `overflow: hidden` ancestor (a table cell, a card) cannot
|
|
9222
9222
|
// clip it.
|
|
9223
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HoverCardPrimitive.Portal, { container:
|
|
9223
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HoverCardPrimitive.Portal, { container: _chunkHE6UVP6Rcjs.usePortalContainer.call(void 0, ), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9224
9224
|
HoverCardPrimitive.Content,
|
|
9225
9225
|
{
|
|
9226
9226
|
ref,
|
|
@@ -9230,7 +9230,7 @@ var HoverCardContent = _react.forwardRef.call(void 0,
|
|
|
9230
9230
|
collisionPadding,
|
|
9231
9231
|
avoidCollisions: true,
|
|
9232
9232
|
sticky: "always",
|
|
9233
|
-
className:
|
|
9233
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
9234
9234
|
// A height cap with internal scroll is what stops growing content
|
|
9235
9235
|
// from ever exceeding the viewport — which is what forces a flip.
|
|
9236
9236
|
"z-[2147483647] max-h-[min(70vh,560px)] w-64 max-w-[calc(100vw-2rem)] overflow-y-auto overscroll-contain",
|
|
@@ -9296,19 +9296,19 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9296
9296
|
loading = false,
|
|
9297
9297
|
...props
|
|
9298
9298
|
}, ref) => {
|
|
9299
|
-
const isLoading =
|
|
9299
|
+
const isLoading = _chunkNWNC22IZcjs.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() === _chunkTRV5GGOHcjs.CHAT_APPEARANCE.V2;
|
|
9303
9303
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
9304
9304
|
if (isLoading) {
|
|
9305
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, "aria-hidden": true, className:
|
|
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,
|
|
9305
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, "aria-hidden": true, className: _chunkNWNC22IZcjs.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, _chunkLCSYTFFOcjs.MediaSkeleton.Icon, { size: "sm" }) }),
|
|
9307
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h6", className: "w-24" }),
|
|
9308
|
+
contextWindow != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h6", className: "ml-auto w-32" })
|
|
9309
9309
|
] });
|
|
9310
9310
|
}
|
|
9311
|
-
const inline = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className:
|
|
9311
|
+
const inline = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunkNWNC22IZcjs.cn.call(void 0, MODEL_DISPLAY_ROW_CLASS, "text-ods-text-secondary", className), ...props, children: [
|
|
9312
9312
|
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: PROVIDER_ICON_BOX_CLASS, children: icon }),
|
|
9313
9313
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-body", children: name }),
|
|
9314
9314
|
contextWindow != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "ml-auto opacity-70 text-h6", children: [
|
|
@@ -9324,7 +9324,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9324
9324
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9325
9325
|
HoverCardContent,
|
|
9326
9326
|
{
|
|
9327
|
-
className:
|
|
9327
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "w-80 p-3", "border-ods-border bg-ods-card text-ods-text-primary"),
|
|
9328
9328
|
align: "end",
|
|
9329
9329
|
sideOffset: 6,
|
|
9330
9330
|
children: [
|
|
@@ -9372,7 +9372,7 @@ function BreakdownRow({
|
|
|
9372
9372
|
isAnswer
|
|
9373
9373
|
}) {
|
|
9374
9374
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between py-1 text-h6", children: [
|
|
9375
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
9375
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkNWNC22IZcjs.cn.call(void 0, "text-ods-text-secondary", isAnswer && "font-medium text-ods-text-primary"), children: label }),
|
|
9376
9376
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "tabular-nums text-ods-text-secondary", children: [
|
|
9377
9377
|
input != null ? formatTokenCount(input) : "\u2014",
|
|
9378
9378
|
" in / ",
|
|
@@ -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
|
+
_chunkTRV5GGOHcjs.ChatInput,
|
|
9431
9431
|
{
|
|
9432
9432
|
ref: inputRef,
|
|
9433
9433
|
onSend,
|
|
@@ -9507,7 +9507,7 @@ function ChatComposer({
|
|
|
9507
9507
|
onRemove: onRemoveContextItem,
|
|
9508
9508
|
resolveIcon: resolveContextIcon,
|
|
9509
9509
|
disabled: sending || locked,
|
|
9510
|
-
className:
|
|
9510
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
9511
9511
|
"border-b border-ods-border bg-ods-bg p-2",
|
|
9512
9512
|
// Only the TOP strip rounds into the card corner.
|
|
9513
9513
|
memory.length === 0 && "rounded-t-md"
|
|
@@ -9546,7 +9546,7 @@ function ChatArchivePage(props) {
|
|
|
9546
9546
|
onLoadMore,
|
|
9547
9547
|
pageSize
|
|
9548
9548
|
} = props;
|
|
9549
|
-
const firstLoad =
|
|
9549
|
+
const firstLoad = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || (isLoading || isFetching) && dialogs.length === 0;
|
|
9550
9550
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9551
9551
|
!props.embedded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9552
9552
|
ChatPanelHeaderMobile,
|
|
@@ -9560,9 +9560,9 @@ function ChatArchivePage(props) {
|
|
|
9560
9560
|
}
|
|
9561
9561
|
),
|
|
9562
9562
|
!props.embedded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "hidden h-14 w-full flex-shrink-0 divide-x divide-ods-border overflow-hidden border-b border-ods-border bg-ods-card md:flex", children: [
|
|
9563
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9563
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "cell", className: "w-14", onClick: props.onBack, "aria-label": "Back", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }) }),
|
|
9564
9564
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center px-[var(--spacing-system-mf)] py-[var(--spacing-system-sf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h3", children: "Chat Archive" }) }),
|
|
9565
|
-
props.onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9565
|
+
props.onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "cell", className: "w-14", onClick: props.onClose, "aria-label": "Close", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 24 }) })
|
|
9566
9566
|
] }),
|
|
9567
9567
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col p-[var(--spacing-system-m)]", children: firstLoad || dialogs.length > 0 ? (
|
|
9568
9568
|
// The first load is the list's own loading state — the SAME grouped/
|
|
@@ -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) && !_chunk3SENOTWTcjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
9601
9601
|
}
|
|
9602
9602
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
9603
|
-
const isNewTab = runtime ?
|
|
9603
|
+
const isNewTab = runtime ? _chunk3SENOTWTcjs.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", _chunkEOZ23WOYcjs.NEW_TAB_FEATURES);
|
|
9607
9607
|
return;
|
|
9608
9608
|
}
|
|
9609
|
-
const target = isForeignOriginHref(href) ? href :
|
|
9609
|
+
const target = isForeignOriginHref(href) ? href : _chunkEOZ23WOYcjs.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 = _chunkEOZ23WOYcjs.resolveHrefForRuntime.call(void 0, href, runtime);
|
|
9661
|
+
const isNewTab = _chunk3SENOTWTcjs.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 = _chunk3SENOTWTcjs.newTabAnchorAttrs.call(void 0, isNewTab);
|
|
9676
9676
|
return {
|
|
9677
9677
|
href: resolvedHref,
|
|
9678
9678
|
...attrs,
|
|
@@ -9735,7 +9735,7 @@ function SourceActionButton({
|
|
|
9735
9735
|
const IconComponent = isDisplay ? _lucidereact.FileText : _lucidereact.MessageSquare;
|
|
9736
9736
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: styles.iconSize });
|
|
9737
9737
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9738
|
-
|
|
9738
|
+
_chunkIZXVGIQXcjs.Button,
|
|
9739
9739
|
{
|
|
9740
9740
|
variant: "transparent",
|
|
9741
9741
|
size: styles.size,
|
|
@@ -9817,8 +9817,8 @@ function UserDisplay({
|
|
|
9817
9817
|
compact = false,
|
|
9818
9818
|
className
|
|
9819
9819
|
}) {
|
|
9820
|
-
const avatarSrc =
|
|
9821
|
-
if (
|
|
9820
|
+
const avatarSrc = _chunkEOZ23WOYcjs.useProxiedImageUrl.call(void 0, avatarUrl);
|
|
9821
|
+
if (_chunkNWNC22IZcjs.useLoadingScope.call(void 0, )) {
|
|
9822
9822
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9823
9823
|
UserDisplaySkeleton,
|
|
9824
9824
|
{
|
|
@@ -9830,10 +9830,10 @@ function UserDisplay({
|
|
|
9830
9830
|
}
|
|
9831
9831
|
);
|
|
9832
9832
|
}
|
|
9833
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
9834
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9833
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, USER_ROW_CLASS, className), children: [
|
|
9834
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKKD7XV5Acjs.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
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className:
|
|
9836
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunkNWNC22IZcjs.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 })
|
|
9838
9838
|
] })
|
|
9839
9839
|
] });
|
|
@@ -9845,11 +9845,11 @@ function UserDisplaySkeleton({
|
|
|
9845
9845
|
subtitle = false,
|
|
9846
9846
|
className
|
|
9847
9847
|
}) {
|
|
9848
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
9849
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9848
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, USER_ROW_CLASS, className), "aria-hidden": true, children: [
|
|
9849
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKKD7XV5Acjs.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, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: compact ? "h6" : "h4", className: "w-28" }),
|
|
9852
|
+
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h6", className: "w-16" })
|
|
9853
9853
|
] })
|
|
9854
9854
|
] });
|
|
9855
9855
|
}
|
|
@@ -9874,19 +9874,19 @@ function CardHitLayer({
|
|
|
9874
9874
|
...a11y,
|
|
9875
9875
|
onClick,
|
|
9876
9876
|
onPointerDown,
|
|
9877
|
-
className:
|
|
9877
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, HIT_LAYER_BASE, className)
|
|
9878
9878
|
}
|
|
9879
9879
|
);
|
|
9880
9880
|
}
|
|
9881
9881
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9882
|
-
|
|
9882
|
+
_chunkIZXVGIQXcjs.Button,
|
|
9883
9883
|
{
|
|
9884
9884
|
variant: "card",
|
|
9885
9885
|
type: "button",
|
|
9886
9886
|
...a11y,
|
|
9887
9887
|
onClick,
|
|
9888
9888
|
onPointerDown,
|
|
9889
|
-
className:
|
|
9889
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "absolute inset-0 h-full", className)
|
|
9890
9890
|
}
|
|
9891
9891
|
);
|
|
9892
9892
|
}
|
|
@@ -9992,7 +9992,7 @@ function CardsStrip(props) {
|
|
|
9992
9992
|
className,
|
|
9993
9993
|
skeleton
|
|
9994
9994
|
} = props;
|
|
9995
|
-
const inScope =
|
|
9995
|
+
const inScope = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
|
|
9996
9996
|
const childrenMode = props.renderCard === void 0;
|
|
9997
9997
|
const childItems = _react.useMemo.call(void 0,
|
|
9998
9998
|
() => childrenMode ? _react2.default.Children.toArray(props.children) : EMPTY_CHILDREN,
|
|
@@ -10282,10 +10282,10 @@ 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: `${_chunkEOZ23WOYcjs.SECTION_HEADING_CLASS} break-words`, children: _chunkEOZ23WOYcjs.accentSentenceMarks.call(void 0, title) });
|
|
10286
10286
|
if (items.length === 0) {
|
|
10287
10287
|
if (!inScope || !skeleton) return null;
|
|
10288
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
10288
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, STRIP_ROOT_CLASS, className), children: [
|
|
10289
10289
|
heading,
|
|
10290
10290
|
headerSlot,
|
|
10291
10291
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: STRIP_TRACK_CLASS, children: Array.from(
|
|
@@ -10312,7 +10312,7 @@ function CardsStrip(props) {
|
|
|
10312
10312
|
wrapperRef.current = node;
|
|
10313
10313
|
_optionalChain([rootRef, 'optionalCall', _233 => _233(node)]);
|
|
10314
10314
|
},
|
|
10315
|
-
className:
|
|
10315
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, STRIP_ROOT_CLASS, className),
|
|
10316
10316
|
children: [
|
|
10317
10317
|
heading,
|
|
10318
10318
|
headerSlot,
|
|
@@ -10365,7 +10365,7 @@ function CardsStrip(props) {
|
|
|
10365
10365
|
),
|
|
10366
10366
|
showChevrons && overflows && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10367
10367
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10368
|
-
|
|
10368
|
+
_chunkIZXVGIQXcjs.Button,
|
|
10369
10369
|
{
|
|
10370
10370
|
type: "button",
|
|
10371
10371
|
variant: "outline",
|
|
@@ -10378,7 +10378,7 @@ function CardsStrip(props) {
|
|
|
10378
10378
|
}
|
|
10379
10379
|
),
|
|
10380
10380
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10381
|
-
|
|
10381
|
+
_chunkIZXVGIQXcjs.Button,
|
|
10382
10382
|
{
|
|
10383
10383
|
type: "button",
|
|
10384
10384
|
variant: "outline",
|
|
@@ -10472,7 +10472,7 @@ var VIDEO_BITES_SKELETON_COUNT = Math.ceil(
|
|
|
10472
10472
|
);
|
|
10473
10473
|
function VideoBitesStrip({
|
|
10474
10474
|
bites,
|
|
10475
|
-
title =
|
|
10475
|
+
title = _chunk3SENOTWTcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10476
10476
|
showTitle = true,
|
|
10477
10477
|
filterPublished = true,
|
|
10478
10478
|
profile = null,
|
|
@@ -10485,16 +10485,16 @@ function VideoBitesStrip({
|
|
|
10485
10485
|
cardHeightMobile = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX,
|
|
10486
10486
|
showChevrons = true,
|
|
10487
10487
|
onBiteNavigate,
|
|
10488
|
-
sortComparator =
|
|
10488
|
+
sortComparator = _chunk3SENOTWTcjs.sortBitesByCreatedAtDesc,
|
|
10489
10489
|
skeletonCount,
|
|
10490
10490
|
className
|
|
10491
10491
|
}) {
|
|
10492
|
-
const inScope =
|
|
10492
|
+
const inScope = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
|
|
10493
10493
|
const items = _react.useMemo.call(void 0, () => {
|
|
10494
10494
|
const filtered = filterPublished ? bites.filter((b) => b.published) : [...bites];
|
|
10495
10495
|
return filtered.sort(sortComparator);
|
|
10496
10496
|
}, [bites, filterPublished, sortComparator]);
|
|
10497
|
-
const warmup =
|
|
10497
|
+
const warmup = _chunkJSNLMPXNcjs.useVideoWarmup.call(void 0, { videoUrl: inScope ? null : _optionalChain([items, 'access', _234 => _234[0], 'optionalAccess', _235 => _235.url]) || null });
|
|
10498
10498
|
if (inScope) {
|
|
10499
10499
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10500
10500
|
VideoBitesStripSkeleton,
|
|
@@ -10567,14 +10567,14 @@ function VideoBiteCardSkeleton({ aspect = "9:16", height, heightMobile, classNam
|
|
|
10567
10567
|
"div",
|
|
10568
10568
|
{
|
|
10569
10569
|
"aria-hidden": true,
|
|
10570
|
-
className:
|
|
10570
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, BITE_CARD_FRAME_CLASS, height !== void 0 ? "shrink-0" : "w-full", className),
|
|
10571
10571
|
style: height !== void 0 ? { maxWidth: STRIP_CELL_MAX_WIDTH } : void 0,
|
|
10572
10572
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10573
10573
|
"div",
|
|
10574
10574
|
{
|
|
10575
|
-
className:
|
|
10575
|
+
className: _chunkNWNC22IZcjs.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, _chunkLCSYTFFOcjs.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 = _chunk3SENOTWTcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10587
10587
|
showTitle = true,
|
|
10588
10588
|
headerSlot,
|
|
10589
10589
|
cardHeightDesktop = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX,
|
|
@@ -10675,14 +10675,14 @@ function VideoBiteCard({
|
|
|
10675
10675
|
ref: titleInputRef,
|
|
10676
10676
|
onBlur: (e) => _optionalChain([onTitleCommit, 'optionalCall', _240 => _240(e.target.value)]),
|
|
10677
10677
|
onClick: (e) => e.stopPropagation(),
|
|
10678
|
-
className:
|
|
10678
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
10679
10679
|
titleClass,
|
|
10680
10680
|
"max-h-10 w-full resize-none overflow-hidden bg-transparent outline-none",
|
|
10681
10681
|
"border-b border-transparent placeholder:text-ods-text-secondary focus:border-ods-border"
|
|
10682
10682
|
)
|
|
10683
10683
|
}
|
|
10684
10684
|
)
|
|
10685
|
-
) : bite.title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className:
|
|
10685
|
+
) : bite.title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunkNWNC22IZcjs.cn.call(void 0, titleClass, "line-clamp-2"), children: bite.title }),
|
|
10686
10686
|
(profile || hasTarget) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
10687
10687
|
profile && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10688
10688
|
UserDisplay,
|
|
@@ -10699,7 +10699,7 @@ function VideoBiteCard({
|
|
|
10699
10699
|
hasTarget && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4TUSPDNScjs.Chevron02RightIcon, { className: "ml-auto h-5 w-5 shrink-0 text-ods-text-primary" })
|
|
10700
10700
|
] })
|
|
10701
10701
|
] });
|
|
10702
|
-
const overlayClass =
|
|
10702
|
+
const overlayClass = _chunkNWNC22IZcjs.cn.call(void 0,
|
|
10703
10703
|
"absolute inset-x-0 bottom-0 gap-2 border border-ods-border bg-black/75 p-3 shadow-2xl",
|
|
10704
10704
|
"flex flex-col transition-opacity duration-200",
|
|
10705
10705
|
isActive ? "opacity-100" : "opacity-0 group-focus-within/card:opacity-100 group-hover/card:opacity-100",
|
|
@@ -10707,15 +10707,15 @@ function VideoBiteCard({
|
|
|
10707
10707
|
// resting card / player controls.
|
|
10708
10708
|
isActive ? "pointer-events-auto" : "pointer-events-none"
|
|
10709
10709
|
);
|
|
10710
|
-
const hitLayerClass =
|
|
10710
|
+
const hitLayerClass = _chunkNWNC22IZcjs.cn.call(void 0, "z-[5]", isTouch && !isActive ? "pointer-events-none" : "pointer-events-auto");
|
|
10711
10711
|
const media = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10712
10712
|
"div",
|
|
10713
10713
|
{
|
|
10714
|
-
className:
|
|
10714
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, BITE_MEDIA_CLASS, height !== void 0 && BITE_MEDIA_FIXED_HEIGHT_CLASS),
|
|
10715
10715
|
style: biteMediaStyle(cssAspect, height, heightMobile),
|
|
10716
10716
|
children: [
|
|
10717
10717
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10718
|
-
|
|
10718
|
+
_chunk3SENOTWTcjs.VideoHoverPreviewSurface,
|
|
10719
10719
|
{
|
|
10720
10720
|
url: bite.url,
|
|
10721
10721
|
posterUrl: bite.thumbnail_url,
|
|
@@ -10741,7 +10741,7 @@ function VideoBiteCard({
|
|
|
10741
10741
|
decorative: isClone
|
|
10742
10742
|
}
|
|
10743
10743
|
),
|
|
10744
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
10744
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, overlayClass, "pointer-events-none"), children: overlayContent })
|
|
10745
10745
|
] })
|
|
10746
10746
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: overlayClass, children: overlayContent })
|
|
10747
10747
|
]
|
|
@@ -10753,7 +10753,7 @@ function VideoBiteCard({
|
|
|
10753
10753
|
ref: (node) => _optionalChain([rootRef, 'optionalCall', _241 => _241(node)]),
|
|
10754
10754
|
"aria-hidden": isClone || void 0,
|
|
10755
10755
|
"data-strip-card-key": key,
|
|
10756
|
-
className:
|
|
10756
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "group/card", BITE_CARD_FRAME_CLASS, height !== void 0 ? "shrink-0" : "w-full", className),
|
|
10757
10757
|
style: height !== void 0 ? { maxWidth: STRIP_CELL_MAX_WIDTH } : void 0,
|
|
10758
10758
|
onPointerEnter: handlePointerEnter,
|
|
10759
10759
|
onPointerLeave: handlePointerLeave,
|
|
@@ -10787,7 +10787,7 @@ function EntityVideoSection({
|
|
|
10787
10787
|
title = "Video",
|
|
10788
10788
|
videoSummary,
|
|
10789
10789
|
videoBites,
|
|
10790
|
-
bitesTitle =
|
|
10790
|
+
bitesTitle = _chunk3SENOTWTcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10791
10791
|
filterPublishedBites = true,
|
|
10792
10792
|
bitesProfile = null,
|
|
10793
10793
|
bitesHref,
|
|
@@ -10802,7 +10802,7 @@ function EntityVideoSection({
|
|
|
10802
10802
|
skeletonTabs = false
|
|
10803
10803
|
}) {
|
|
10804
10804
|
const captions = useCaptions();
|
|
10805
|
-
const loading =
|
|
10805
|
+
const loading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, );
|
|
10806
10806
|
const hasFullVideo = !!(youtubeUrl || mainVideoUrl);
|
|
10807
10807
|
const hasHighlight = !!highlightVideoUrl;
|
|
10808
10808
|
const hasVideo = hasFullVideo || hasHighlight;
|
|
@@ -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
|
+
_chunk3SENOTWTcjs.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
|
+
_chunk3SENOTWTcjs.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
|
+
_chunk3SENOTWTcjs.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
|
+
_chunk3SENOTWTcjs.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: `${_chunkEOZ23WOYcjs.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,
|
|
10887
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tabs, { defaultValue: "full-video", className:
|
|
10886
|
+
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3SENOTWTcjs.Video, { loading: true, url: "", layout: "centered", className });
|
|
10887
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tabs, { defaultValue: "full-video", className: _chunkNWNC22IZcjs.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, _chunk3SENOTWTcjs.Video, { loading: true, url: "", layout: "centered" }) })
|
|
10893
10893
|
] });
|
|
10894
10894
|
}
|
|
10895
10895
|
|
|
@@ -10936,38 +10936,38 @@ 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 ${_chunkEOZ23WOYcjs.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 ${_chunkLCSYTFFOcjs.TEXT_LINES_MIN[2]}`;
|
|
10945
|
+
var DESIGN_DOC_CARD_META_ROW = `flex items-center text-h5 ${_chunkLCSYTFFOcjs.TEXT_LINES_MIN[1]}`;
|
|
10946
|
+
var DESIGN_DOC_CARD_SUMMARY_ROW = `flex items-center text-h4 ${_chunkLCSYTFFOcjs.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:
|
|
10949
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkNWNC22IZcjs.cn.call(void 0, _chunk3SENOTWTcjs.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, _chunkLCSYTFFOcjs.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, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h5", className: "w-1/3" }) })
|
|
10954
10954
|
] }),
|
|
10955
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10955
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3SENOTWTcjs.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, _chunk3SENOTWTcjs.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, _chunkLCSYTFFOcjs.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, _chunkLCSYTFFOcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" }),
|
|
10962
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6KZFPZNcjs.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 =
|
|
10970
|
-
if (
|
|
10969
|
+
const link = _chunk3SENOTWTcjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
10970
|
+
if (_chunkNWNC22IZcjs.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: [
|
|
10973
10973
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADING, 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
|
+
_chunk3SENOTWTcjs.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, _chunk3SENOTWTcjs.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, _chunkY6KZFPZNcjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
10994
10994
|
] })
|
|
10995
10995
|
] });
|
|
10996
|
-
const outer =
|
|
10996
|
+
const outer = _chunkNWNC22IZcjs.cn.call(void 0, _chunk3SENOTWTcjs.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
|
|
|
@@ -11098,10 +11098,10 @@ function ReviewStateBadge({ state, className = "" }) {
|
|
|
11098
11098
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `inline-flex shrink-0 items-center rounded px-1.5 py-0.5 text-h5 ${paint} ${className}`, children: label });
|
|
11099
11099
|
}
|
|
11100
11100
|
function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
|
|
11101
|
-
if (
|
|
11101
|
+
if (_chunkNWNC22IZcjs.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 = _chunkKKD7XV5Acjs.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 = _chunk3SENOTWTcjs.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: _chunk3SENOTWTcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
11141
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk3SENOTWTcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11142
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk3SENOTWTcjs.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: _chunk3SENOTWTcjs.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: _chunk3SENOTWTcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3SENOTWTcjs.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: _chunk3SENOTWTcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3SENOTWTcjs.COMPACT_CARD_SUMMARY, children: _chunk3SENOTWTcjs.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: `${_chunk3SENOTWTcjs.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: `${_chunk3SENOTWTcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk3SENOTWTcjs.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
|
+
_chunk3SENOTWTcjs.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, _chunkLCSYTFFOcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 rounded" }),
|
|
11169
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.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, _chunk3SENOTWTcjs.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,10 +11249,10 @@ function VendorIconSkeleton({
|
|
|
11249
11249
|
...props
|
|
11250
11250
|
}) {
|
|
11251
11251
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11252
|
-
|
|
11252
|
+
_chunkLCSYTFFOcjs.UnifiedSkeleton,
|
|
11253
11253
|
{
|
|
11254
|
-
className:
|
|
11255
|
-
...
|
|
11254
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, sizeClasses[size], "flex-shrink-0 rounded-lg", className),
|
|
11255
|
+
..._chunkNWNC22IZcjs.loadingItemProps.call(void 0, props)
|
|
11256
11256
|
}
|
|
11257
11257
|
);
|
|
11258
11258
|
}
|
|
@@ -11265,32 +11265,32 @@ function VendorIcon({
|
|
|
11265
11265
|
loading: loadingProp,
|
|
11266
11266
|
...props
|
|
11267
11267
|
}) {
|
|
11268
|
-
const loading =
|
|
11268
|
+
const loading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || !!loadingProp;
|
|
11269
11269
|
const logoUrl = getVendorLogo(vendor);
|
|
11270
|
-
const logoSrc =
|
|
11270
|
+
const logoSrc = _chunkEOZ23WOYcjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
|
|
11271
11271
|
const { width, height } = showBackground ? imageSizeMap[size] : { width: tilePxMap[size], height: tilePxMap[size] };
|
|
11272
|
-
const containerClasses =
|
|
11272
|
+
const containerClasses = _chunkNWNC22IZcjs.cn.call(void 0,
|
|
11273
11273
|
sizeClasses[size],
|
|
11274
11274
|
"flex flex-shrink-0 items-center justify-center rounded-lg",
|
|
11275
11275
|
showBackground && backgroundClasses[backgroundStyle],
|
|
11276
11276
|
!showBackground && "overflow-hidden",
|
|
11277
11277
|
className
|
|
11278
11278
|
);
|
|
11279
|
-
const markers =
|
|
11279
|
+
const markers = _chunkNWNC22IZcjs.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
|
+
_chunk4ZHLORL3cjs.next_image_default,
|
|
11283
11283
|
{
|
|
11284
11284
|
src: logoSrc,
|
|
11285
11285
|
alt: `${vendor.title} logo`,
|
|
11286
11286
|
width,
|
|
11287
11287
|
height,
|
|
11288
|
-
className:
|
|
11288
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0, "object-contain", showBackground ? "p-1" : "h-full w-full")
|
|
11289
11289
|
}
|
|
11290
11290
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11291
11291
|
"div",
|
|
11292
11292
|
{
|
|
11293
|
-
className:
|
|
11293
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
11294
11294
|
"flex items-center justify-center uppercase text-h6",
|
|
11295
11295
|
backgroundStyle === "white" ? "text-[#333333]" : "text-ods-text-secondary"
|
|
11296
11296
|
),
|
|
@@ -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 = _chunkEOZ23WOYcjs.extractCardItems.call(void 0, type, data);
|
|
11315
|
+
const match = items.find((it) => _chunkEOZ23WOYcjs.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] self-stretch 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: _chunkKKD7XV5Acjs.personInitials.call(void 0, imageAlt) || "?" }),
|
|
11358
11358
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11359
|
-
|
|
11359
|
+
_chunk4ZHLORL3cjs.next_image_default,
|
|
11360
11360
|
{
|
|
11361
11361
|
src: imageSrc,
|
|
11362
11362
|
alt: imageAlt || "",
|
|
@@ -11381,17 +11381,17 @@ function MingoInfoCardSkeleton({ className }) {
|
|
|
11381
11381
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11382
11382
|
"span",
|
|
11383
11383
|
{
|
|
11384
|
-
className:
|
|
11384
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
11385
11385
|
"flex w-full items-center gap-[var(--spacing-system-s)] overflow-hidden rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-s)]",
|
|
11386
11386
|
className
|
|
11387
11387
|
),
|
|
11388
11388
|
children: [
|
|
11389
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11389
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.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, _chunkLCSYTFFOcjs.UnifiedSkeleton, { as: "span", className: "block h-4 w-1/2 rounded" }),
|
|
11392
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCSYTFFOcjs.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, _chunkLCSYTFFOcjs.UnifiedSkeleton, { as: "span", className: "block h-5 w-16 shrink-0 rounded" })
|
|
11395
11395
|
]
|
|
11396
11396
|
}
|
|
11397
11397
|
);
|
|
@@ -11410,7 +11410,7 @@ function MingoInfoCard({
|
|
|
11410
11410
|
loading: loadingProp = false,
|
|
11411
11411
|
className
|
|
11412
11412
|
}) {
|
|
11413
|
-
const loading =
|
|
11413
|
+
const loading = _chunkNWNC22IZcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
11414
11414
|
const hasMedia = !!imageSrc || !!icon;
|
|
11415
11415
|
const action = _react.useContext.call(void 0, MingoInfoCardActionContext);
|
|
11416
11416
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, { className });
|
|
@@ -11426,24 +11426,24 @@ 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:
|
|
11429
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkNWNC22IZcjs.cn.call(void 0, _chunkKKD7XV5Acjs.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
|
-
const contentClass =
|
|
11432
|
+
const contentClass = _chunkNWNC22IZcjs.cn.call(void 0,
|
|
11433
11433
|
"flex min-w-0 flex-1 items-center gap-[var(--spacing-system-s)] overflow-hidden p-[var(--spacing-system-s)] text-left",
|
|
11434
11434
|
isInteractive && "cursor-pointer transition-colors hover:bg-ods-bg-hover focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent active:bg-ods-bg-active"
|
|
11435
11435
|
);
|
|
11436
11436
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11437
11437
|
"span",
|
|
11438
11438
|
{
|
|
11439
|
-
className:
|
|
11439
|
+
className: _chunkNWNC22IZcjs.cn.call(void 0,
|
|
11440
11440
|
"flex w-full items-center divide-x divide-ods-border overflow-hidden rounded-md border border-ods-border bg-ods-card",
|
|
11441
11441
|
className
|
|
11442
11442
|
),
|
|
11443
11443
|
children: [
|
|
11444
|
-
isAnchor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className:
|
|
11444
|
+
isAnchor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: _chunkNWNC22IZcjs.cn.call(void 0, contentClass, "no-underline"), children: content }) : onClick ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "row", type: "button", onClick, className: "min-w-0 flex-1 self-stretch", children: content }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: contentClass, children: content }),
|
|
11445
11445
|
action && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11446
|
-
|
|
11446
|
+
_chunkIZXVGIQXcjs.Button,
|
|
11447
11447
|
{
|
|
11448
11448
|
variant: "cell",
|
|
11449
11449
|
type: "button",
|
|
@@ -11454,12 +11454,12 @@ function MingoInfoCard({
|
|
|
11454
11454
|
}
|
|
11455
11455
|
),
|
|
11456
11456
|
hasMenu && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11457
|
-
|
|
11457
|
+
_chunkUVPV6TUIcjs.ActionsMenuDropdown,
|
|
11458
11458
|
{
|
|
11459
11459
|
groups: menuGroups,
|
|
11460
11460
|
triggerAriaLabel: menuAriaLabel,
|
|
11461
11461
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
11462
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11462
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZXVGIQXcjs.Button, { variant: "cell", type: "button", "aria-label": menuAriaLabel, className: TRAILING_CELL_LAYOUT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 24 }) })
|
|
11463
11463
|
}
|
|
11464
11464
|
)
|
|
11465
11465
|
]
|
|
@@ -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 = _chunkEOZ23WOYcjs.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.
|
|
@@ -11548,7 +11548,7 @@ function sourceRowCtxFromRuntime(runtime, surface = {}) {
|
|
|
11548
11548
|
}
|
|
11549
11549
|
function pickSourceIcon(sourceRepo, documentType) {
|
|
11550
11550
|
const iconName = sourceRepo ? getSourceIconName(sourceRepo) : void 0;
|
|
11551
|
-
const icon = iconName ?
|
|
11551
|
+
const icon = iconName ? _chunkRU37NNZGcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }) : _lucidereact.FileText;
|
|
11552
11552
|
const iconLabel = _nullishCoalesce(documentType, () => ( "Source"));
|
|
11553
11553
|
return { icon, iconLabel };
|
|
11554
11554
|
}
|
|
@@ -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(_chunk3SENOTWTcjs.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(_chunk3SENOTWTcjs.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(_chunk3SENOTWTcjs.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: _chunkEOZ23WOYcjs.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(_chunk3SENOTWTcjs.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(_chunk3SENOTWTcjs.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(_chunk3SENOTWTcjs.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: `${_chunk3SENOTWTcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11678
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3SENOTWTcjs.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: _chunk3SENOTWTcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11680
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3SENOTWTcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk3SENOTWTcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
11681
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3SENOTWTcjs.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 = _chunkKKD7XV5Acjs.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: _chunk3SENOTWTcjs.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: _chunk3SENOTWTcjs.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: _chunk3SENOTWTcjs.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: _chunk3SENOTWTcjs.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: _chunk3SENOTWTcjs.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 = _chunkEOZ23WOYcjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
11963
11963
|
const leadFramework = frameworks[0];
|
|
11964
11964
|
const lead = leadFramework ? {
|
|
11965
|
-
label:
|
|
11966
|
-
color:
|
|
11965
|
+
label: _chunkEOZ23WOYcjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
11966
|
+
color: _chunkEOZ23WOYcjs.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: _chunkEOZ23WOYcjs.TRUST_CENTER_TITLE,
|
|
11972
|
+
description: summary || _chunkEOZ23WOYcjs.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: _chunk3SENOTWTcjs.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: _chunk3SENOTWTcjs.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: _chunk3SENOTWTcjs.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]) ? _chunkEOZ23WOYcjs.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: _chunk3SENOTWTcjs.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 = _chunkEOZ23WOYcjs.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: _chunk3SENOTWTcjs.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]) || _chunkEOZ23WOYcjs.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 } = _chunkEOZ23WOYcjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkEOZ23WOYcjs.programMetaFormatters.call(void 0, _chunkEOZ23WOYcjs.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, _chunkEOZ23WOYcjs.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, _chunk4ZHLORL3cjs.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, _chunk3SENOTWTcjs.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, _chunk3SENOTWTcjs.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, _chunkEOZ23WOYcjs.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, _chunkEOZ23WOYcjs.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
|
+
[_chunkEOZ23WOYcjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
12619
12619
|
label: "Trust center",
|
|
12620
12620
|
bareInline: true,
|
|
12621
|
-
contentRefType:
|
|
12621
|
+
contentRefType: _chunkEOZ23WOYcjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
12622
12622
|
noComposedHref: true,
|
|
12623
|
-
fallbackHref: () =>
|
|
12623
|
+
fallbackHref: () => _chunkEOZ23WOYcjs.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, _chunkEOZ23WOYcjs.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, _chunk3SENOTWTcjs.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, _chunkEOZ23WOYcjs.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, _chunkEOZ23WOYcjs.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]), () => ( _chunkEOZ23WOYcjs.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, _chunkEOZ23WOYcjs.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, _chunkEOZ23WOYcjs.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) => _chunkEOZ23WOYcjs.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 = _chunk3SENOTWTcjs.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, _chunkHAAQUV3Ocjs.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 === _chunkTRV5GGOHcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
12944
12944
|
}
|
|
12945
12945
|
function useChunkCatchup({
|
|
12946
12946
|
dialogId,
|
|
12947
12947
|
onChunkReceived,
|
|
12948
|
-
chatTypes = [
|
|
12948
|
+
chatTypes = [_chunkTRV5GGOHcjs.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
|
+
_chunkEOZ23WOYcjs.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 || _chunk3SENOTWTcjs.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 ? _chunkHAAQUV3Ocjs.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
|
+
_chunkHAAQUV3Ocjs.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
|
+
_chunkHAAQUV3Ocjs.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]) === _chunkTRV5GGOHcjs.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]) === _chunkTRV5GGOHcjs.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
|
+
_chunkHAAQUV3Ocjs.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
|
+
_chunkHAAQUV3Ocjs.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]) === _chunkTRV5GGOHcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _633 => _633.owner, 'optionalAccess', _634 => _634.type]) === _chunkTRV5GGOHcjs.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]) === _chunkTRV5GGOHcjs.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]) === _chunkTRV5GGOHcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _641 => _641.owner, 'optionalAccess', _642 => _642.type]) === _chunkTRV5GGOHcjs.OWNER_TYPE.ADMIN);
|
|
18557
18557
|
if (isLastMessage || nextIsFromUser) {
|
|
18558
18558
|
flushAssistantMessage();
|
|
18559
18559
|
}
|