@flamingo-stack/openframe-frontend-core 0.0.811 → 0.0.813
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/case-study-card-NLT2JVI7.cjs +23 -0
- package/dist/{chunk-5QLDHPPU.cjs → chunk-25HBH4J6.cjs} +15 -15
- package/dist/{chunk-TKK66KHU.cjs → chunk-2WD7XGWA.cjs} +6 -6
- package/dist/{chunk-LKQ33CMY.cjs → chunk-2XCORRJV.cjs} +3 -3
- package/dist/{chunk-JTIGKLKJ.cjs → chunk-2XLPRW7V.cjs} +23 -23
- package/dist/{chunk-4WIJI4AK.cjs → chunk-3TOWCFIK.cjs} +20 -26
- package/dist/{chunk-KUXHXLJQ.cjs → chunk-3V5JWG27.cjs} +5 -5
- package/dist/{chunk-ZZO3FGPM.cjs → chunk-467T3LCG.cjs} +63 -63
- package/dist/{chunk-Q7QYAINS.cjs → chunk-4PMD3JUC.cjs} +19 -19
- package/dist/{chunk-PCVY63WQ.cjs → chunk-5M5JVVSL.cjs} +13 -13
- package/dist/{chunk-CB77J5L7.cjs → chunk-5RBL7A2Y.cjs} +544 -544
- package/dist/{chunk-YR74H7Z3.cjs → chunk-5SZ4ILU3.cjs} +7 -7
- package/dist/{chunk-J6C7F63P.cjs → chunk-5V3CNLCB.cjs} +199 -199
- package/dist/{chunk-7JWFMAQB.cjs → chunk-63A4GZMB.cjs} +18 -2
- package/dist/{chunk-ZD6SZLO2.cjs → chunk-6CZVQ72C.cjs} +3 -3
- package/dist/{chunk-R55KNVPR.cjs → chunk-7BJ22OH2.cjs} +171 -171
- package/dist/{chunk-GU3GJ5DH.cjs → chunk-7O7EX7HQ.cjs} +45 -45
- package/dist/{chunk-U2MHQBL4.cjs → chunk-BOS7OIC4.cjs} +30 -30
- package/dist/{chunk-SFUNXMY3.cjs → chunk-EHANO6UE.cjs} +16 -16
- package/dist/{chunk-XLEWM5X5.cjs → chunk-EJQRX6S5.cjs} +62 -62
- package/dist/{chunk-ACCZCRXT.cjs → chunk-F4ZJRMMM.cjs} +20 -20
- package/dist/{chunk-AHBTZ7DN.cjs → chunk-FCZAUK4D.cjs} +52 -50
- package/dist/{chunk-MDBOYMCW.cjs → chunk-FTGXZHLO.cjs} +31 -31
- package/dist/{chunk-CPP2APON.cjs → chunk-G2AN67DP.cjs} +110 -110
- package/dist/{chunk-UP3TLY2V.cjs → chunk-GAR2IIU6.cjs} +349 -349
- package/dist/{chunk-IQLXO6EI.cjs → chunk-GNGXHIBC.cjs} +119 -119
- package/dist/{chunk-FK2WFU7R.cjs → chunk-GTOT4ZQV.cjs} +37 -37
- package/dist/{chunk-KVDUWXVZ.cjs → chunk-HM7VCQSX.cjs} +10 -10
- package/dist/{chunk-243TS7YL.cjs → chunk-IJCSQFLD.cjs} +209 -209
- package/dist/{chunk-CC3Q3MQG.cjs → chunk-IKB6AZPV.cjs} +8 -8
- package/dist/{chunk-66J7ZSI5.cjs → chunk-JFA3VHXC.cjs} +51 -51
- package/dist/{chunk-PMOMZSCX.cjs → chunk-JOKOQOLJ.cjs} +22 -22
- package/dist/{chunk-WX5WDSKV.cjs → chunk-MBU45QUB.cjs} +2050 -2045
- package/dist/{chunk-CJ7W2SY4.cjs → chunk-MUH7X7ZA.cjs} +13 -13
- package/dist/{chunk-GD47ZGOU.cjs → chunk-N3MBQRCQ.cjs} +3 -3
- package/dist/{chunk-ERLMCSGF.cjs → chunk-NONMZ5WJ.cjs} +5 -5
- package/dist/{chunk-ZW25QUJK.cjs → chunk-OBQ5WUNG.cjs} +67 -67
- package/dist/{chunk-6GT3ZL27.cjs → chunk-OGHG6REG.cjs} +44 -44
- package/dist/{chunk-JNWJB4Z5.cjs → chunk-PAI4A3UM.cjs} +60 -60
- package/dist/{chunk-O4MEG2ZS.cjs → chunk-PXR27MXW.cjs} +45 -45
- package/dist/{chunk-XYZBN6D7.cjs → chunk-QDDBOCG3.cjs} +2 -2
- package/dist/{chunk-VXXOUM2K.cjs → chunk-QOAA7ZHB.cjs} +6 -2
- package/dist/{chunk-OQDPZOGC.cjs → chunk-QQT23JJ7.cjs} +4 -4
- package/dist/{chunk-STLJCAIZ.cjs → chunk-RD66AGUI.cjs} +6 -6
- package/dist/{chunk-NL3G642U.cjs → chunk-S3QXLD4X.cjs} +10 -10
- package/dist/{chunk-7RM4NM2C.cjs → chunk-SWF6TNZ3.cjs} +14 -14
- package/dist/{chunk-O32RLIN4.cjs → chunk-TOBROYSJ.cjs} +4 -4
- package/dist/{chunk-P4B6PVSG.cjs → chunk-USUVHAQ7.cjs} +7 -7
- package/dist/{chunk-VXMPVDOS.cjs → chunk-WKODIG3L.cjs} +46 -46
- package/dist/{chunk-CLU2KJFB.cjs → chunk-XWCZSEW7.cjs} +3 -3
- package/dist/{chunk-7Y6M4FW4.cjs → chunk-Y6MJMPHV.cjs} +126 -126
- package/dist/{chunk-NZSWROGM.cjs → chunk-ZRDVFADQ.cjs} +61 -61
- package/dist/{cloud-tenants-XGGQG7SO.cjs → cloud-tenants-ODZVCP5X.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/chat/utils/icon-registry.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-registry.js +4 -0
- 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/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +1 -1
- package/dist/components/features/index.cjs +32 -32
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.js +4 -2
- package/dist/components/features/select-button.js +1 -1
- package/dist/components/help-center-pages/index.cjs +165 -165
- package/dist/components/index.cjs +220 -218
- package/dist/components/meeting-scheduler/index.cjs +238 -192
- package/dist/components/meeting-scheduler/index.d.ts +30 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +43 -3
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/platform/ScriptArguments.d.ts +2 -0
- package/dist/components/platform/ScriptArguments.d.ts.map +1 -1
- package/dist/components/platform/ScriptArguments.js +3 -2
- 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/button/button-styles.d.ts +8 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +8 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +6 -4
- package/dist/components/ui/button/split-button.d.ts.map +1 -1
- package/dist/components/ui/button/split-button.js +3 -2
- package/dist/components/ui/checkbox-block.d.ts.map +1 -1
- package/dist/components/ui/checkbox-block.js +3 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +34 -32
- package/dist/components/ui/input-styles.d.ts +2 -0
- package/dist/components/ui/input-styles.d.ts.map +1 -1
- package/dist/components/ui/input-styles.js +2 -0
- package/dist/{devices-H5Y4DBVC.cjs → devices-GWBR7MJD.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-77ZOLCCK.cjs → embeddable-chat-4RLUXHDH.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +50 -48
- package/dist/{knowledge-MGH65HXM.cjs → knowledge-ZNRITHW5.cjs} +33 -33
- package/dist/{logs-OL7ETVK6.cjs → logs-QN5H5JT6.cjs} +41 -41
- package/dist/{policies-BCECWQ3F.cjs → policies-SCUYEYGJ.cjs} +36 -36
- package/dist/{remote-session-HML4UF7W.cjs → remote-session-BQMTIQTU.cjs} +17 -17
- package/dist/{scripts-XCD6V2JB.cjs → scripts-BP7UTAG5.cjs} +39 -39
- package/dist/{software-update-U5ESXRG5.cjs → software-update-O4BQJCJ4.cjs} +36 -36
- package/dist/{tickets-board-EICQ5VLE.cjs → tickets-board-TRXOX77R.cjs} +17 -17
- package/dist/utils/index.cjs +4 -0
- package/dist/{video-file-player-4QMVTOBE.cjs → video-file-player-IAMWBKEQ.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/chat/utils/icon-registry.ts +4 -0
- package/src/components/features/devices/devices-table-columns.tsx +5 -2
- package/src/components/features/scripts/schedule-form/schedule-script-picker-card.tsx +4 -2
- package/src/components/features/select-button.tsx +1 -1
- package/src/components/meeting-scheduler/index.tsx +85 -3
- package/src/components/platform/ScriptArguments.tsx +8 -1
- package/src/components/ui/button/button-styles.ts +18 -1
- package/src/components/ui/button/button.tsx +7 -4
- package/src/components/ui/button/split-button.tsx +3 -2
- package/src/components/ui/checkbox-block.tsx +3 -1
- package/src/components/ui/input-styles.ts +2 -0
- package/dist/case-study-card-AMINZROX.cjs +0 -23
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkOBQ5WUNGcjs = require('./chunk-OBQ5WUNG.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk6CZVQ72Ccjs = require('./chunk-6CZVQ72C.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -38,7 +38,7 @@ var _chunkZD6SZLO2cjs = require('./chunk-ZD6SZLO2.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkZRDVFADQcjs = require('./chunk-ZRDVFADQ.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -47,7 +47,7 @@ var _chunkNZSWROGMcjs = require('./chunk-NZSWROGM.cjs');
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunk2XLPRW7Vcjs = require('./chunk-2XLPRW7V.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
var _chunkREEXZ35Ocjs = require('./chunk-REEXZ35O.cjs');
|
|
@@ -254,7 +254,7 @@ var _chunk7WT2C5YYcjs = require('./chunk-7WT2C5YY.cjs');
|
|
|
254
254
|
var _chunkCNTBGJA7cjs = require('./chunk-CNTBGJA7.cjs');
|
|
255
255
|
|
|
256
256
|
|
|
257
|
-
var
|
|
257
|
+
var _chunkQDDBOCG3cjs = require('./chunk-QDDBOCG3.cjs');
|
|
258
258
|
|
|
259
259
|
|
|
260
260
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -298,7 +298,7 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
298
298
|
|
|
299
299
|
|
|
300
300
|
|
|
301
|
-
var
|
|
301
|
+
var _chunkGAR2IIU6cjs = require('./chunk-GAR2IIU6.cjs');
|
|
302
302
|
|
|
303
303
|
|
|
304
304
|
|
|
@@ -327,10 +327,10 @@ var _chunkUP3TLY2Vcjs = require('./chunk-UP3TLY2V.cjs');
|
|
|
327
327
|
|
|
328
328
|
|
|
329
329
|
|
|
330
|
-
var
|
|
330
|
+
var _chunkY6MJMPHVcjs = require('./chunk-Y6MJMPHV.cjs');
|
|
331
331
|
|
|
332
332
|
|
|
333
|
-
var
|
|
333
|
+
var _chunk25HBH4J6cjs = require('./chunk-25HBH4J6.cjs');
|
|
334
334
|
|
|
335
335
|
|
|
336
336
|
|
|
@@ -338,7 +338,7 @@ var _chunk5QLDHPPUcjs = require('./chunk-5QLDHPPU.cjs');
|
|
|
338
338
|
|
|
339
339
|
|
|
340
340
|
|
|
341
|
-
var
|
|
341
|
+
var _chunkBOS7OIC4cjs = require('./chunk-BOS7OIC4.cjs');
|
|
342
342
|
|
|
343
343
|
|
|
344
344
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -356,7 +356,7 @@ var _chunkYSDB6HGQcjs = require('./chunk-YSDB6HGQ.cjs');
|
|
|
356
356
|
|
|
357
357
|
|
|
358
358
|
|
|
359
|
-
var
|
|
359
|
+
var _chunkQOAA7ZHBcjs = require('./chunk-QOAA7ZHB.cjs');
|
|
360
360
|
|
|
361
361
|
|
|
362
362
|
|
|
@@ -369,23 +369,23 @@ var _chunkVXXOUM2Kcjs = require('./chunk-VXXOUM2K.cjs');
|
|
|
369
369
|
var _chunkGI3MMBP3cjs = require('./chunk-GI3MMBP3.cjs');
|
|
370
370
|
|
|
371
371
|
|
|
372
|
-
var
|
|
372
|
+
var _chunk3V5JWG27cjs = require('./chunk-3V5JWG27.cjs');
|
|
373
373
|
|
|
374
374
|
|
|
375
375
|
|
|
376
376
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
377
377
|
|
|
378
378
|
|
|
379
|
-
var
|
|
379
|
+
var _chunkN3MBQRCQcjs = require('./chunk-N3MBQRCQ.cjs');
|
|
380
380
|
|
|
381
381
|
|
|
382
|
-
var
|
|
382
|
+
var _chunkS3QXLD4Xcjs = require('./chunk-S3QXLD4X.cjs');
|
|
383
383
|
|
|
384
384
|
|
|
385
385
|
var _chunkZ74QE57Tcjs = require('./chunk-Z74QE57T.cjs');
|
|
386
386
|
|
|
387
387
|
|
|
388
|
-
var
|
|
388
|
+
var _chunk2XCORRJVcjs = require('./chunk-2XCORRJV.cjs');
|
|
389
389
|
|
|
390
390
|
|
|
391
391
|
|
|
@@ -393,10 +393,10 @@ var _chunkLKQ33CMYcjs = require('./chunk-LKQ33CMY.cjs');
|
|
|
393
393
|
|
|
394
394
|
|
|
395
395
|
|
|
396
|
-
var
|
|
396
|
+
var _chunk3TOWCFIKcjs = require('./chunk-3TOWCFIK.cjs');
|
|
397
397
|
|
|
398
398
|
|
|
399
|
-
var
|
|
399
|
+
var _chunkFCZAUK4Dcjs = require('./chunk-FCZAUK4D.cjs');
|
|
400
400
|
|
|
401
401
|
|
|
402
402
|
|
|
@@ -409,7 +409,7 @@ var _chunkAHBTZ7DNcjs = require('./chunk-AHBTZ7DN.cjs');
|
|
|
409
409
|
|
|
410
410
|
|
|
411
411
|
|
|
412
|
-
var
|
|
412
|
+
var _chunk63A4GZMBcjs = require('./chunk-63A4GZMB.cjs');
|
|
413
413
|
|
|
414
414
|
|
|
415
415
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -429,12 +429,12 @@ var tabsListVariantClasses = {
|
|
|
429
429
|
default: TABS_LIST_BASE,
|
|
430
430
|
// Applied ON TOP of the base (cn resolves the conflicts) so the variant
|
|
431
431
|
// renders exactly what admin call sites produced by stacking these classes.
|
|
432
|
-
"admin-rail":
|
|
432
|
+
"admin-rail": _chunk63A4GZMBcjs.cn.call(void 0, TABS_LIST_BASE, "inline-flex h-auto justify-start rounded-none bg-transparent p-0")
|
|
433
433
|
};
|
|
434
434
|
var TABS_TRIGGER_BASE = "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-h6 transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm";
|
|
435
435
|
var tabsTriggerVariantClasses = {
|
|
436
|
-
default:
|
|
437
|
-
"admin-rail":
|
|
436
|
+
default: _chunk63A4GZMBcjs.cn.call(void 0, TABS_TRIGGER_BASE, _chunk63A4GZMBcjs.TAB_FOCUS_CLASS),
|
|
437
|
+
"admin-rail": _chunk63A4GZMBcjs.cn.call(void 0,
|
|
438
438
|
TABS_TRIGGER_BASE,
|
|
439
439
|
"rounded-none border-b-2 border-transparent",
|
|
440
440
|
"data-[state=active]:border-ods-accent data-[state=active]:bg-transparent",
|
|
@@ -444,13 +444,13 @@ var tabsTriggerVariantClasses = {
|
|
|
444
444
|
// Disabled tabs stay visible but inert.
|
|
445
445
|
"disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:text-ods-text-secondary",
|
|
446
446
|
// Focus is the tab's hover look, never the base's ring (see TAB_FOCUS_CLASS).
|
|
447
|
-
|
|
447
|
+
_chunk63A4GZMBcjs.TAB_FOCUS_CLASS
|
|
448
448
|
)
|
|
449
449
|
};
|
|
450
450
|
var ADMIN_RAIL_WRAPPER_CLASS = "w-full border-b border-ods-border overflow-x-auto";
|
|
451
451
|
var TabsList = _react.forwardRef.call(void 0,
|
|
452
452
|
({ className, variant = "default", ...props }, ref) => {
|
|
453
|
-
const list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsPrimitive.List, { ref, className:
|
|
453
|
+
const list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsPrimitive.List, { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, tabsListVariantClasses[variant], className), ...props });
|
|
454
454
|
if (variant === "admin-rail") {
|
|
455
455
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ADMIN_RAIL_WRAPPER_CLASS, children: list });
|
|
456
456
|
}
|
|
@@ -460,11 +460,11 @@ var TabsList = _react.forwardRef.call(void 0,
|
|
|
460
460
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
461
461
|
var TabsTrigger = _react.forwardRef.call(void 0,
|
|
462
462
|
({ className, variant = "default", ...props }, ref) => {
|
|
463
|
-
if (
|
|
463
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) {
|
|
464
464
|
const label = typeof props.children === "string" && props.children !== "" ? props.children : void 0;
|
|
465
465
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTriggerSkeleton, { variant, label, className });
|
|
466
466
|
}
|
|
467
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsPrimitive.Trigger, { ref, className:
|
|
467
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsPrimitive.Trigger, { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, tabsTriggerVariantClasses[variant], className), ...props });
|
|
468
468
|
}
|
|
469
469
|
);
|
|
470
470
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
@@ -474,13 +474,13 @@ function TabsTriggerSkeleton({
|
|
|
474
474
|
label,
|
|
475
475
|
className
|
|
476
476
|
}) {
|
|
477
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className:
|
|
477
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: _chunk63A4GZMBcjs.cn.call(void 0, tabsTriggerVariantClasses[variant], className), children: _nullishCoalesce(label, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: TRIGGER_LABEL_TYPE[variant], className: "w-20" }))) });
|
|
478
478
|
}
|
|
479
479
|
var TabsContent = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
480
480
|
TabsPrimitive.Content,
|
|
481
481
|
{
|
|
482
482
|
ref,
|
|
483
|
-
className:
|
|
483
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
484
484
|
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
485
485
|
className
|
|
486
486
|
),
|
|
@@ -880,7 +880,7 @@ var MermaidDiagramView = ({
|
|
|
880
880
|
frame = "content",
|
|
881
881
|
untrusted
|
|
882
882
|
}) => {
|
|
883
|
-
const chart =
|
|
883
|
+
const chart = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) ? "" : givenChart;
|
|
884
884
|
const [svg, setSvg] = _react.useState.call(void 0, "");
|
|
885
885
|
const [error, setError] = _react.useState.call(void 0, "");
|
|
886
886
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, true);
|
|
@@ -1060,7 +1060,7 @@ var MermaidDiagramView = ({
|
|
|
1060
1060
|
/* @__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 }) }) })
|
|
1061
1061
|
] }) : empty || isLoading || !svg ? (
|
|
1062
1062
|
// The frame's own size, as a skeleton: the frame sets the height the diagram lands in.
|
|
1063
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1063
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { "aria-label": "Rendering diagram", className: "h-auto w-full self-stretch" })
|
|
1064
1064
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1065
1065
|
"div",
|
|
1066
1066
|
{
|
|
@@ -1085,7 +1085,7 @@ var MermaidDiagramView = ({
|
|
|
1085
1085
|
"aria-label": "Diagram zoom",
|
|
1086
1086
|
children: [
|
|
1087
1087
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1088
|
-
|
|
1088
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
1089
1089
|
{
|
|
1090
1090
|
variant: "outline",
|
|
1091
1091
|
size: "icon-sm",
|
|
@@ -1097,7 +1097,7 @@ var MermaidDiagramView = ({
|
|
|
1097
1097
|
}
|
|
1098
1098
|
),
|
|
1099
1099
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1100
|
-
|
|
1100
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
1101
1101
|
{
|
|
1102
1102
|
variant: "outline",
|
|
1103
1103
|
size: "compact",
|
|
@@ -1112,7 +1112,7 @@ var MermaidDiagramView = ({
|
|
|
1112
1112
|
}
|
|
1113
1113
|
),
|
|
1114
1114
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1115
|
-
|
|
1115
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
1116
1116
|
{
|
|
1117
1117
|
variant: "outline",
|
|
1118
1118
|
size: "icon-sm",
|
|
@@ -1124,7 +1124,7 @@ var MermaidDiagramView = ({
|
|
|
1124
1124
|
}
|
|
1125
1125
|
),
|
|
1126
1126
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1127
|
-
|
|
1127
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
1128
1128
|
{
|
|
1129
1129
|
variant: "outline",
|
|
1130
1130
|
size: "icon-sm",
|
|
@@ -1220,18 +1220,18 @@ var MARKDOWN_H1_CLASS = "mb-4 mt-8 font-sans font-bold text-ods-text-primary fir
|
|
|
1220
1220
|
var MARKDOWN_H2_CLASS = "mb-4 mt-8 border-b border-ods-border pb-2 font-sans font-semibold text-ods-text-primary";
|
|
1221
1221
|
var MARKDOWN_PARAGRAPH_CLASS = "mb-4 leading-relaxed text-ods-text-primary first:mt-0 last:mb-0";
|
|
1222
1222
|
var MarkdownContentImage = ({ src, alt }) => {
|
|
1223
|
-
const inScope =
|
|
1223
|
+
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
1224
1224
|
const authedSrc = _chunkLC65AC6Mcjs.useAuthedImageSrc.call(void 0, inScope ? void 0 : src);
|
|
1225
1225
|
const resolvedSrc = inScope ? src : authedSrc;
|
|
1226
1226
|
if (!resolvedSrc) return null;
|
|
1227
1227
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1228
|
-
|
|
1228
|
+
_chunk3V5JWG27cjs.next_image_default,
|
|
1229
1229
|
{
|
|
1230
1230
|
src: resolvedSrc,
|
|
1231
1231
|
alt: _nullishCoalesce(alt, () => ( "No image available")),
|
|
1232
1232
|
width: 400,
|
|
1233
1233
|
height: 400,
|
|
1234
|
-
sizes:
|
|
1234
|
+
sizes: _chunkQOAA7ZHBcjs.IMAGE_SLOT.inline,
|
|
1235
1235
|
className: "h-auto max-h-[400px] w-auto max-w-full rounded-lg object-contain",
|
|
1236
1236
|
style: { width: "auto", height: "auto" }
|
|
1237
1237
|
}
|
|
@@ -1256,7 +1256,7 @@ function buildStandardLeafRenderers({
|
|
|
1256
1256
|
/* @__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,
|
|
1257
1257
|
"code",
|
|
1258
1258
|
{
|
|
1259
|
-
className:
|
|
1259
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, `language-${language} hljs font-mono`, textSizes.code),
|
|
1260
1260
|
style: {
|
|
1261
1261
|
background: "transparent",
|
|
1262
1262
|
color: "var(--color-text-primary)"
|
|
@@ -1276,7 +1276,7 @@ function buildStandardLeafRenderers({
|
|
|
1276
1276
|
}
|
|
1277
1277
|
);
|
|
1278
1278
|
},
|
|
1279
|
-
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:
|
|
1279
|
+
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: _chunk63A4GZMBcjs.cn.call(void 0, "font-sans leading-relaxed text-ods-text-secondary", textSizes.blockquote), children }) }),
|
|
1280
1280
|
// Pass-through `div` (overridable for embeds; `node` is dropped so it
|
|
1281
1281
|
// never reaches the DOM).
|
|
1282
1282
|
div: ({ node, className: divClassName, children, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: divClassName, ...props, children })
|
|
@@ -1306,14 +1306,14 @@ function buildBaseComponents({
|
|
|
1306
1306
|
// --- code + blockquote + div (shared leaf renderers, see above) ---
|
|
1307
1307
|
...buildStandardLeafRenderers({ textSizes }),
|
|
1308
1308
|
// --- headings ---
|
|
1309
|
-
h1: makeHeading("h1",
|
|
1310
|
-
h2: makeHeading("h2",
|
|
1311
|
-
h3: makeHeading("h3",
|
|
1312
|
-
h4: makeHeading("h4",
|
|
1313
|
-
h5: makeHeading("h5",
|
|
1314
|
-
h6: makeHeading("h6",
|
|
1309
|
+
h1: makeHeading("h1", _chunk63A4GZMBcjs.cn.call(void 0, MARKDOWN_H1_CLASS, textSizes.h1)),
|
|
1310
|
+
h2: makeHeading("h2", _chunk63A4GZMBcjs.cn.call(void 0, MARKDOWN_H2_CLASS, textSizes.h2)),
|
|
1311
|
+
h3: makeHeading("h3", _chunk63A4GZMBcjs.cn.call(void 0, "mb-3 mt-6 font-sans font-semibold text-ods-text-primary", textSizes.h3)),
|
|
1312
|
+
h4: makeHeading("h4", _chunk63A4GZMBcjs.cn.call(void 0, "mb-2 mt-4 font-sans font-semibold text-ods-text-primary", textSizes.h4)),
|
|
1313
|
+
h5: makeHeading("h5", _chunk63A4GZMBcjs.cn.call(void 0, "mb-2 mt-3 font-sans font-semibold text-ods-text-primary", textSizes.h5)),
|
|
1314
|
+
h6: makeHeading("h6", _chunk63A4GZMBcjs.cn.call(void 0, "mb-1 mt-3 font-sans font-semibold text-ods-text-primary", textSizes.h6)),
|
|
1315
1315
|
// --- paragraph ---
|
|
1316
|
-
p: ({ children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className:
|
|
1316
|
+
p: ({ children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk63A4GZMBcjs.cn.call(void 0, MARKDOWN_PARAGRAPH_CLASS, textSizes.p), children }),
|
|
1317
1317
|
// --- links ---
|
|
1318
1318
|
a: ({ href, children, className: linkClassName, rel: authoredRel }) => {
|
|
1319
1319
|
const isBroken = href !== void 0 && brokenLinks.includes(href);
|
|
@@ -1408,7 +1408,7 @@ function buildBaseComponents({
|
|
|
1408
1408
|
// always number 1"). Only `start` is forwarded: the rest of the props carry
|
|
1409
1409
|
// react-markdown's `node`, which must not reach the DOM.
|
|
1410
1410
|
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 }),
|
|
1411
|
-
li: ({ children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { className:
|
|
1411
|
+
li: ({ children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { className: _chunk63A4GZMBcjs.cn.call(void 0, "pl-2 leading-relaxed", textSizes.li), children }),
|
|
1412
1412
|
// --- tables ---
|
|
1413
1413
|
// The frame and the scroll container are ONE element, matching the sibling
|
|
1414
1414
|
// block embed (`mermaid-diagram.tsx`). It used to
|
|
@@ -1429,7 +1429,7 @@ function buildBaseComponents({
|
|
|
1429
1429
|
th: ({ children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1430
1430
|
"th",
|
|
1431
1431
|
{
|
|
1432
|
-
className:
|
|
1432
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1433
1433
|
"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",
|
|
1434
1434
|
textSizes.th
|
|
1435
1435
|
),
|
|
@@ -1439,7 +1439,7 @@ function buildBaseComponents({
|
|
|
1439
1439
|
td: ({ children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1440
1440
|
"td",
|
|
1441
1441
|
{
|
|
1442
|
-
className:
|
|
1442
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1443
1443
|
"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",
|
|
1444
1444
|
textSizes.td
|
|
1445
1445
|
),
|
|
@@ -3376,7 +3376,7 @@ var MarkdownEngineImpl = ({
|
|
|
3376
3376
|
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: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownMediaOriginsContext.Provider, { value: allowRemoteMedia ? null : appOrigins, children: body }) }) }) }) });
|
|
3377
3377
|
};
|
|
3378
3378
|
var MarkdownEngine = _react.memo.call(void 0, function MarkdownEngineGate(props) {
|
|
3379
|
-
const inScope =
|
|
3379
|
+
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
3380
3380
|
if (inScope && !props.content || props.loading) {
|
|
3381
3381
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3382
3382
|
MarkdownEngineSkeleton,
|
|
@@ -3392,12 +3392,12 @@ var MarkdownEngine = _react.memo.call(void 0, function MarkdownEngineGate(props)
|
|
|
3392
3392
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEngineImpl, { ...props });
|
|
3393
3393
|
});
|
|
3394
3394
|
function ParagraphBar({ lines, className }) {
|
|
3395
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3395
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", lines, className: "w-full" }) });
|
|
3396
3396
|
}
|
|
3397
3397
|
function LinesByBreakpoint({ lines, as = "div" }) {
|
|
3398
3398
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3399
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3400
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3399
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as, lines: lines.phone, className: "w-full content-md:hidden" }),
|
|
3400
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as, lines: lines.wide, className: "hidden w-full content-md:flex" })
|
|
3401
3401
|
] });
|
|
3402
3402
|
}
|
|
3403
3403
|
function MarkdownEngineSkeleton({
|
|
@@ -3408,17 +3408,17 @@ function MarkdownEngineSkeleton({
|
|
|
3408
3408
|
className = ""
|
|
3409
3409
|
}) {
|
|
3410
3410
|
const textSizes = resolveTextSizeConfig(textSize);
|
|
3411
|
-
const paragraphClass =
|
|
3411
|
+
const paragraphClass = _chunk63A4GZMBcjs.cn.call(void 0, MARKDOWN_PARAGRAPH_CLASS, textSizes.p);
|
|
3412
3412
|
return (
|
|
3413
3413
|
// `w-full`: bars have no width of their own, so in a shrink-to-fit parent (a flex item) the skeleton would be
|
|
3414
3414
|
// 0px wide where the loaded text fills its line.
|
|
3415
3415
|
/* @__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: [
|
|
3416
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
3416
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunk63A4GZMBcjs.cn.call(void 0, MARKDOWN_H1_CLASS, textSizes.h1), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LinesByBreakpoint, { lines: SKELETON_TITLE_LINES, as: "span" }) }),
|
|
3417
3417
|
sections ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: paragraphClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LinesByBreakpoint, { lines: SKELETON_LEAD_LINES }) }) : null,
|
|
3418
3418
|
sections ? (
|
|
3419
3419
|
// loading-standard-ok(ITEM_MARK): a document's sections are its markdown text; the loaded body has no items to mark
|
|
3420
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3421
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
3420
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: sections, children: () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
3421
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunk63A4GZMBcjs.cn.call(void 0, MARKDOWN_H2_CLASS, textSizes.h2), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
3422
3422
|
SKELETON_SECTION_PARAGRAPHS.map((paragraphLines, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ParagraphBar, { lines: paragraphLines, className: paragraphClass }, index))
|
|
3423
3423
|
] }) })
|
|
3424
3424
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ParagraphBar, { lines, className: paragraphClass })
|
|
@@ -3479,7 +3479,7 @@ function onAskAiIntent(run) {
|
|
|
3479
3479
|
|
|
3480
3480
|
// src/components/chat/chat-appearance-context.tsx
|
|
3481
3481
|
|
|
3482
|
-
var ChatAppearanceContext = _react.createContext.call(void 0,
|
|
3482
|
+
var ChatAppearanceContext = _react.createContext.call(void 0, _chunkZRDVFADQcjs.CHAT_APPEARANCE.CLASSIC);
|
|
3483
3483
|
function useChatAppearance() {
|
|
3484
3484
|
return _react.useContext.call(void 0, ChatAppearanceContext);
|
|
3485
3485
|
}
|
|
@@ -3518,7 +3518,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3518
3518
|
...props
|
|
3519
3519
|
}, ref) => {
|
|
3520
3520
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
3521
|
-
const isV2 = useChatAppearance() ===
|
|
3521
|
+
const isV2 = useChatAppearance() === _chunkZRDVFADQcjs.CHAT_APPEARANCE.V2;
|
|
3522
3522
|
const handleApprove = async () => {
|
|
3523
3523
|
setIsProcessing(true);
|
|
3524
3524
|
try {
|
|
@@ -3540,8 +3540,8 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3540
3540
|
"div",
|
|
3541
3541
|
{
|
|
3542
3542
|
ref,
|
|
3543
|
-
className:
|
|
3544
|
-
|
|
3543
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3544
|
+
_chunkOBQ5WUNGcjs.CHAT_BLOCK_CLASS,
|
|
3545
3545
|
// v2: the thread owns the space below the card.
|
|
3546
3546
|
!isV2 && "mb-[var(--spacing-system-xsf)]",
|
|
3547
3547
|
className
|
|
@@ -3549,16 +3549,16 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3549
3549
|
...props,
|
|
3550
3550
|
children: [
|
|
3551
3551
|
/* @__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', _51 => _51.explanation, 'optionalAccess', _52 => _52.trim, 'call', _53 => _53()]) || "Approval required" }),
|
|
3552
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3552
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.ApprovalWaitingLine, {}),
|
|
3553
3553
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3554
3554
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3555
|
-
|
|
3555
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3556
3556
|
{
|
|
3557
3557
|
size: "small-legacy",
|
|
3558
3558
|
variant: "accent",
|
|
3559
3559
|
onClick: handleApprove,
|
|
3560
3560
|
disabled: isProcessing || !onApprove,
|
|
3561
|
-
className:
|
|
3561
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3562
3562
|
"bg-ods-accent hover:bg-ods-accent/90",
|
|
3563
3563
|
"text-ods-bg text-h5",
|
|
3564
3564
|
"h-8 px-[var(--spacing-system-xsf)]"
|
|
@@ -3567,13 +3567,13 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3567
3567
|
}
|
|
3568
3568
|
),
|
|
3569
3569
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3570
|
-
|
|
3570
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3571
3571
|
{
|
|
3572
3572
|
size: "small-legacy",
|
|
3573
3573
|
variant: "outline",
|
|
3574
3574
|
onClick: handleReject,
|
|
3575
3575
|
disabled: isProcessing || !onReject,
|
|
3576
|
-
className:
|
|
3576
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3577
3577
|
"border-ods-border bg-ods-card",
|
|
3578
3578
|
"text-ods-text-primary text-h5",
|
|
3579
3579
|
"h-8 px-[var(--spacing-system-xsf)] hover:bg-ods-bg"
|
|
@@ -3581,23 +3581,23 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3581
3581
|
children: "Reject"
|
|
3582
3582
|
}
|
|
3583
3583
|
)
|
|
3584
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3584
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3585
3585
|
]
|
|
3586
3586
|
}
|
|
3587
3587
|
);
|
|
3588
3588
|
}
|
|
3589
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className:
|
|
3589
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunkOBQ5WUNGcjs.CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
3590
3590
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
|
|
3591
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3591
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.ApprovalWaitingLine, {}),
|
|
3592
3592
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3593
3593
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3594
|
-
|
|
3594
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3595
3595
|
{
|
|
3596
3596
|
size: "small-legacy",
|
|
3597
3597
|
variant: "accent",
|
|
3598
3598
|
onClick: handleApprove,
|
|
3599
3599
|
disabled: isProcessing || !onApprove,
|
|
3600
|
-
className:
|
|
3600
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3601
3601
|
"bg-ods-accent hover:bg-ods-accent/90",
|
|
3602
3602
|
"text-ods-bg text-h5",
|
|
3603
3603
|
"h-8 px-[var(--spacing-system-xsf)]"
|
|
@@ -3606,13 +3606,13 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3606
3606
|
}
|
|
3607
3607
|
),
|
|
3608
3608
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3609
|
-
|
|
3609
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3610
3610
|
{
|
|
3611
3611
|
size: "small-legacy",
|
|
3612
3612
|
variant: "outline",
|
|
3613
3613
|
onClick: handleReject,
|
|
3614
3614
|
disabled: isProcessing || !onReject,
|
|
3615
|
-
className:
|
|
3615
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3616
3616
|
"border-ods-border bg-ods-card",
|
|
3617
3617
|
"text-ods-text-primary text-h5",
|
|
3618
3618
|
"h-8 px-[var(--spacing-system-xsf)] hover:bg-ods-bg"
|
|
@@ -3620,7 +3620,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3620
3620
|
children: "Reject"
|
|
3621
3621
|
}
|
|
3622
3622
|
)
|
|
3623
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3623
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3624
3624
|
] });
|
|
3625
3625
|
}
|
|
3626
3626
|
);
|
|
@@ -3630,7 +3630,7 @@ ApprovalRequestMessage.displayName = "ApprovalRequestMessage";
|
|
|
3630
3630
|
|
|
3631
3631
|
|
|
3632
3632
|
var EscalationOfferMessage = _react.forwardRef.call(void 0,
|
|
3633
|
-
({ className, data, status = "pending", resolvedByName, onApprove, onReject, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
3633
|
+
({ className, data, status = "pending", resolvedByName, onApprove, onReject, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "flex flex-col", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3634
3634
|
ApprovalRequestMessage,
|
|
3635
3635
|
{
|
|
3636
3636
|
variant: "client",
|
|
@@ -3650,12 +3650,12 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
|
|
|
3650
3650
|
|
|
3651
3651
|
var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
3652
3652
|
({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
|
|
3653
|
-
const isV2 = useChatAppearance() ===
|
|
3653
|
+
const isV2 = useChatAppearance() === _chunkZRDVFADQcjs.CHAT_APPEARANCE.V2;
|
|
3654
3654
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3655
3655
|
"div",
|
|
3656
3656
|
{
|
|
3657
3657
|
ref,
|
|
3658
|
-
className:
|
|
3658
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3659
3659
|
"flex gap-[var(--spacing-system-s)] rounded-md border border-ods-border p-[var(--spacing-system-s)]",
|
|
3660
3660
|
isV2 ? "items-center bg-ods-bg" : "mb-[var(--spacing-system-xsf)] items-start bg-ods-card",
|
|
3661
3661
|
className
|
|
@@ -3666,7 +3666,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
|
3666
3666
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3667
3667
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
|
|
3668
3668
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h4", title, children: title }),
|
|
3669
|
-
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children:
|
|
3669
|
+
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunkZRDVFADQcjs.formatTime.call(void 0, timestamp) })
|
|
3670
3670
|
] }),
|
|
3671
3671
|
body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
|
|
3672
3672
|
] })
|
|
@@ -3781,7 +3781,7 @@ var SystemEventMessage = _react.forwardRef.call(void 0, ({ text: text2, timestam
|
|
|
3781
3781
|
AiAssistantInfo,
|
|
3782
3782
|
{
|
|
3783
3783
|
ref,
|
|
3784
|
-
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3784
|
+
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOS7OIC4cjs.SquareAvatar, { alt: joined, fallback: joined, size: "lg", variant: "round", className: "shrink-0" }),
|
|
3785
3785
|
title: "Technician Joined",
|
|
3786
3786
|
body: `You're now chatting with ${joined}.`,
|
|
3787
3787
|
timestamp,
|
|
@@ -3815,7 +3815,7 @@ var ContextCompactionDisplay = _react.forwardRef.call(void 0,
|
|
|
3815
3815
|
"div",
|
|
3816
3816
|
{
|
|
3817
3817
|
ref,
|
|
3818
|
-
className:
|
|
3818
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "flex items-center gap-2 rounded-[6px] border border-ods-border bg-ods-card p-1.5", className),
|
|
3819
3819
|
...props,
|
|
3820
3820
|
children: [
|
|
3821
3821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 text-ods-text-secondary text-h6", children: label }),
|
|
@@ -3865,7 +3865,7 @@ var thoughtMdClasses = [
|
|
|
3865
3865
|
var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
3866
3866
|
({ className, text: text2, isStreaming = false, ...props }, ref) => {
|
|
3867
3867
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3868
|
-
const { innerRef, isOverflowing, containerStyle } =
|
|
3868
|
+
const { innerRef, isOverflowing, containerStyle } = _chunkOBQ5WUNGcjs.useCollapsible.call(void 0, {
|
|
3869
3869
|
expanded,
|
|
3870
3870
|
collapsedHeight: 19,
|
|
3871
3871
|
disableTransition: isStreaming
|
|
@@ -3880,7 +3880,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3880
3880
|
setExpanded(!expanded);
|
|
3881
3881
|
}
|
|
3882
3882
|
};
|
|
3883
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
3883
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, _chunkOBQ5WUNGcjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3884
3884
|
"div",
|
|
3885
3885
|
{
|
|
3886
3886
|
role: "button",
|
|
@@ -3888,7 +3888,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3888
3888
|
"aria-expanded": expanded,
|
|
3889
3889
|
onClick: toggle,
|
|
3890
3890
|
onKeyDown: handleKeyDown,
|
|
3891
|
-
className:
|
|
3891
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "flex w-full items-start gap-3 text-left", canToggle ? "cursor-pointer" : "cursor-default"),
|
|
3892
3892
|
children: [
|
|
3893
3893
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center gap-1", children: [
|
|
3894
3894
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-sm font-medium leading-snug text-ods-text-secondary", children: [
|
|
@@ -3897,8 +3897,8 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3897
3897
|
] }),
|
|
3898
3898
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7GIHB3Vcjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
3899
3899
|
] }),
|
|
3900
|
-
/* @__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:
|
|
3901
|
-
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3900
|
+
/* @__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: _chunk63A4GZMBcjs.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" }) }) }),
|
|
3901
|
+
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.ExpandChevron, { expanded }) })
|
|
3902
3902
|
]
|
|
3903
3903
|
}
|
|
3904
3904
|
) });
|
|
@@ -3927,7 +3927,7 @@ var AskDisplay = _react.forwardRef.call(void 0, ({ className, cards: cards2, onS
|
|
|
3927
3927
|
role: "group",
|
|
3928
3928
|
"aria-label": active.question,
|
|
3929
3929
|
"aria-describedby": isInteractive ? void 0 : lockedHintId,
|
|
3930
|
-
className:
|
|
3930
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3931
3931
|
"flex flex-col gap-[var(--spacing-system-s)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-s)]",
|
|
3932
3932
|
className
|
|
3933
3933
|
),
|
|
@@ -3937,7 +3937,7 @@ var AskDisplay = _react.forwardRef.call(void 0, ({ className, cards: cards2, onS
|
|
|
3937
3937
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 break-words text-ods-text-primary text-h4", children: active.question }),
|
|
3938
3938
|
showPager && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
3939
3939
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3940
|
-
|
|
3940
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3941
3941
|
{
|
|
3942
3942
|
variant: "bare",
|
|
3943
3943
|
size: "icon-sm",
|
|
@@ -3953,7 +3953,7 @@ var AskDisplay = _react.forwardRef.call(void 0, ({ className, cards: cards2, onS
|
|
|
3953
3953
|
cards2.length
|
|
3954
3954
|
] }),
|
|
3955
3955
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3956
|
-
|
|
3956
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3957
3957
|
{
|
|
3958
3958
|
variant: "bare",
|
|
3959
3959
|
size: "icon-sm",
|
|
@@ -3967,7 +3967,7 @@ var AskDisplay = _react.forwardRef.call(void 0, ({ className, cards: cards2, onS
|
|
|
3967
3967
|
] }),
|
|
3968
3968
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
3969
3969
|
/* @__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,
|
|
3970
|
-
|
|
3970
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3971
3971
|
{
|
|
3972
3972
|
variant: "row",
|
|
3973
3973
|
type: "button",
|
|
@@ -4037,7 +4037,7 @@ function renderQuickActionIcon(icon) {
|
|
|
4037
4037
|
if (!spec.name && !spec.url) return void 0;
|
|
4038
4038
|
const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
|
|
4039
4039
|
const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
|
|
4040
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4040
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
|
|
4041
4041
|
}
|
|
4042
4042
|
function composeChipLabel(label, lozenge) {
|
|
4043
4043
|
if (!lozenge) return label;
|
|
@@ -4045,7 +4045,7 @@ function composeChipLabel(label, lozenge) {
|
|
|
4045
4045
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4046
4046
|
"span",
|
|
4047
4047
|
{
|
|
4048
|
-
className:
|
|
4048
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
4049
4049
|
// -translate-y-[1px]: align-middle centers on x-height, but the chip
|
|
4050
4050
|
// labels are uppercase (no descenders), so the lozenge reads ~1px low
|
|
4051
4051
|
// against the caps' optical center (measured 9.1px above / 6.9px
|
|
@@ -4072,17 +4072,17 @@ function QuickActionChipSkeleton({
|
|
|
4072
4072
|
}) {
|
|
4073
4073
|
const question = variant === "question";
|
|
4074
4074
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4075
|
-
|
|
4075
|
+
_chunkBOS7OIC4cjs.Tag,
|
|
4076
4076
|
{
|
|
4077
|
-
...
|
|
4077
|
+
..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props),
|
|
4078
4078
|
variant: "outline",
|
|
4079
4079
|
size: question ? "sentence" : size,
|
|
4080
|
-
className:
|
|
4081
|
-
icon: icon && !question ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4080
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, question && "max-w-full", className),
|
|
4081
|
+
icon: icon && !question ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { as: "span", "aria-hidden": true, className: size === "large" ? "block size-5" : "block size-4" }) : void 0,
|
|
4082
4082
|
label: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4083
|
-
lozenge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4083
|
+
lozenge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { as: "span", "aria-hidden": true, className: "mr-2 inline-block h-[16px] w-[26px] translate-y-[2px]" }),
|
|
4084
4084
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4085
|
-
|
|
4085
|
+
_chunk3TOWCFIKcjs.UnifiedSkeleton,
|
|
4086
4086
|
{
|
|
4087
4087
|
as: "span",
|
|
4088
4088
|
"aria-hidden": true,
|
|
@@ -4112,8 +4112,8 @@ function QuickActionChipButton({
|
|
|
4112
4112
|
labelCh,
|
|
4113
4113
|
...props
|
|
4114
4114
|
}) {
|
|
4115
|
-
const loading =
|
|
4116
|
-
const markers =
|
|
4115
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
4116
|
+
const markers = _chunk63A4GZMBcjs.loadingItemProps.call(void 0, props);
|
|
4117
4117
|
if (loading)
|
|
4118
4118
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4119
4119
|
QuickActionChipSkeleton,
|
|
@@ -4136,7 +4136,7 @@ function QuickActionChipButton({
|
|
|
4136
4136
|
const tagSize = question ? "sentence" : size;
|
|
4137
4137
|
if (!interactive) {
|
|
4138
4138
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4139
|
-
|
|
4139
|
+
_chunkBOS7OIC4cjs.Tag,
|
|
4140
4140
|
{
|
|
4141
4141
|
...markers,
|
|
4142
4142
|
variant: tagVariant,
|
|
@@ -4148,7 +4148,7 @@ function QuickActionChipButton({
|
|
|
4148
4148
|
);
|
|
4149
4149
|
}
|
|
4150
4150
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4151
|
-
|
|
4151
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
4152
4152
|
{
|
|
4153
4153
|
variant: "card",
|
|
4154
4154
|
...markers,
|
|
@@ -4159,13 +4159,13 @@ function QuickActionChipButton({
|
|
|
4159
4159
|
onFocus: onHoverStart,
|
|
4160
4160
|
onBlur: onHoverEnd,
|
|
4161
4161
|
"aria-pressed": selected || void 0,
|
|
4162
|
-
className:
|
|
4162
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
4163
4163
|
// A question may be longer than a narrow column: it shrinks and clips there, read from its start.
|
|
4164
4164
|
question ? "w-auto min-w-0 max-w-full" : "w-auto shrink-0",
|
|
4165
4165
|
className
|
|
4166
4166
|
),
|
|
4167
4167
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4168
|
-
|
|
4168
|
+
_chunkBOS7OIC4cjs.Tag,
|
|
4169
4169
|
{
|
|
4170
4170
|
variant: tagVariant,
|
|
4171
4171
|
size: tagSize,
|
|
@@ -4188,7 +4188,7 @@ function QuickActionChipFromData({
|
|
|
4188
4188
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4189
4189
|
QuickActionChipButton,
|
|
4190
4190
|
{
|
|
4191
|
-
...
|
|
4191
|
+
..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props),
|
|
4192
4192
|
label: chip.label,
|
|
4193
4193
|
icon: chip.icon,
|
|
4194
4194
|
theme: _nullishCoalesce(chip.theme, () => ( defaultTheme)),
|
|
@@ -4239,14 +4239,14 @@ var iconTint = {
|
|
|
4239
4239
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
4240
4240
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
4241
4241
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4242
|
-
const { innerRef, containerStyle } =
|
|
4242
|
+
const { innerRef, containerStyle } = _chunkOBQ5WUNGcjs.useCollapsible.call(void 0, { expanded });
|
|
4243
4243
|
const hasDetails = Boolean(details);
|
|
4244
|
-
const isV2 = useChatAppearance() ===
|
|
4244
|
+
const isV2 = useChatAppearance() === _chunkZRDVFADQcjs.CHAT_APPEARANCE.V2;
|
|
4245
4245
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4246
4246
|
"div",
|
|
4247
4247
|
{
|
|
4248
4248
|
ref,
|
|
4249
|
-
className:
|
|
4249
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
4250
4250
|
"rounded-md",
|
|
4251
4251
|
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)]",
|
|
4252
4252
|
className
|
|
@@ -4254,7 +4254,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4254
4254
|
...props,
|
|
4255
4255
|
children: [
|
|
4256
4256
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4257
|
-
|
|
4257
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
4258
4258
|
{
|
|
4259
4259
|
variant: "row",
|
|
4260
4260
|
type: "button",
|
|
@@ -4263,11 +4263,11 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4263
4263
|
"aria-label": hasDetails ? expanded ? "Collapse details" : "Expand details" : void 0,
|
|
4264
4264
|
disabled: !hasDetails,
|
|
4265
4265
|
children: [
|
|
4266
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7WT2C5YYcjs.AlertCircleIcon, { size: 16, className:
|
|
4266
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7WT2C5YYcjs.AlertCircleIcon, { size: 16, className: _chunk63A4GZMBcjs.cn.call(void 0, "shrink-0", iconTint[type]) }),
|
|
4267
4267
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4268
4268
|
"span",
|
|
4269
4269
|
{
|
|
4270
|
-
className:
|
|
4270
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
4271
4271
|
"min-w-0 flex-1 text-h5",
|
|
4272
4272
|
expanded || isV2 ? "text-ods-text-primary" : "text-ods-text-secondary",
|
|
4273
4273
|
!expanded && "truncate"
|
|
@@ -4275,7 +4275,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4275
4275
|
children: title
|
|
4276
4276
|
}
|
|
4277
4277
|
),
|
|
4278
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4278
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.ExpandChevron, { expanded })
|
|
4279
4279
|
]
|
|
4280
4280
|
}
|
|
4281
4281
|
),
|
|
@@ -4283,7 +4283,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4283
4283
|
"div",
|
|
4284
4284
|
{
|
|
4285
4285
|
ref: innerRef,
|
|
4286
|
-
className:
|
|
4286
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
4287
4287
|
"px-[var(--spacing-system-lf)]",
|
|
4288
4288
|
isV2 ? "pt-[var(--spacing-system-xs)]" : "pt-[var(--spacing-system-xsf)]"
|
|
4289
4289
|
),
|
|
@@ -4315,27 +4315,27 @@ function MspOrganizationCard({
|
|
|
4315
4315
|
loading: loadingProp = false,
|
|
4316
4316
|
className
|
|
4317
4317
|
}) {
|
|
4318
|
-
const loading =
|
|
4318
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
4319
4319
|
const actionLabel = website ? `Open ${website}` : "Open organization website";
|
|
4320
4320
|
const footer = variant === "footer";
|
|
4321
4321
|
const buttonSize = footer ? "icon-sm" : "icon";
|
|
4322
|
-
const action = href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4323
|
-
const trailing = action && loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4322
|
+
const action = href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.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, _chunkFCZAUK4Dcjs.Button, { variant: "outline", size: buttonSize, "aria-label": actionLabel, onClick: onOpenWebsite, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDVT7OAScjs.ExternalLinkIcon, {}) }) : null;
|
|
4323
|
+
const trailing = action && loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.InertWhileLoading, { children: action }) : action;
|
|
4324
4324
|
if (footer) {
|
|
4325
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
4326
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4325
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, FOOTER_FRAME_CLASS, className), children: [
|
|
4326
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOS7OIC4cjs.SquareAvatar, { loading, src: logoUrl, alt: name, fallback: name, size: "sm", variant: "square" }),
|
|
4327
4327
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TEXT_STACK_CLASS, children: [
|
|
4328
4328
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: FOOTER_CAPTION_CLASS, children: FOOTER_CAPTION }),
|
|
4329
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4329
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.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)) })
|
|
4330
4330
|
] }),
|
|
4331
4331
|
trailing
|
|
4332
4332
|
] });
|
|
4333
4333
|
}
|
|
4334
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
4335
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4334
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, CARD_FRAME_CLASS, className), children: [
|
|
4335
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOS7OIC4cjs.SquareAvatar, { loading, src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
|
|
4336
4336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TEXT_STACK_CLASS, children: loading ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4337
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4338
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4337
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h3", className: "w-3/5" }),
|
|
4338
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", className: "w-2/5" })
|
|
4339
4339
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4340
4340
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h3", children: _nullishCoalesce(title, () => ( `Your IT is managed by ${name}`)) }),
|
|
4341
4341
|
website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
|
|
@@ -4355,7 +4355,7 @@ var ConnectionIndicator = ({ status }) => {
|
|
|
4355
4355
|
case "connected":
|
|
4356
4356
|
return "bg-ods-success";
|
|
4357
4357
|
case "connecting":
|
|
4358
|
-
return `bg-ods-warning ${
|
|
4358
|
+
return `bg-ods-warning ${_chunk3TOWCFIKcjs.LIVE_PULSE_CLASS}`;
|
|
4359
4359
|
case "disconnected":
|
|
4360
4360
|
return "bg-ods-error";
|
|
4361
4361
|
default:
|
|
@@ -4365,7 +4365,7 @@ var ConnectionIndicator = ({ status }) => {
|
|
|
4365
4365
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4366
4366
|
"output",
|
|
4367
4367
|
{
|
|
4368
|
-
className:
|
|
4368
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "block h-2 w-2 rounded-full", getStatusStyles()),
|
|
4369
4369
|
"aria-label": `Connection status: ${status}`,
|
|
4370
4370
|
title: status === "connected" ? "Connected" : status === "connecting" ? "Connecting..." : "Disconnected"
|
|
4371
4371
|
}
|
|
@@ -4376,7 +4376,7 @@ var ChatContainer = _react.forwardRef.call(void 0, ({ className, children, ...pr
|
|
|
4376
4376
|
"div",
|
|
4377
4377
|
{
|
|
4378
4378
|
ref,
|
|
4379
|
-
className:
|
|
4379
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
4380
4380
|
"flex h-screen w-full flex-col",
|
|
4381
4381
|
"bg-ods-bg text-ods-text-primary",
|
|
4382
4382
|
"px-4 pb-8 pt-10 md:px-6 lg:px-8",
|
|
@@ -4410,7 +4410,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4410
4410
|
isLoading: isLoadingProp = false,
|
|
4411
4411
|
...props
|
|
4412
4412
|
}, ref) => {
|
|
4413
|
-
const inScope =
|
|
4413
|
+
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
4414
4414
|
const isLoading = inScope || isLoadingProp;
|
|
4415
4415
|
const mspLoading = inScope || isMspLoading;
|
|
4416
4416
|
const cardClasses = bare ? "" : "rounded-md bg-ods-card border border-ods-border";
|
|
@@ -4418,7 +4418,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4418
4418
|
"div",
|
|
4419
4419
|
{
|
|
4420
4420
|
ref,
|
|
4421
|
-
className:
|
|
4421
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
4422
4422
|
// `fullWidth` drops the centered-narrow content column for
|
|
4423
4423
|
// chats hosted in side panels where 600px would float in
|
|
4424
4424
|
// the middle of a wider container.
|
|
@@ -4428,21 +4428,21 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4428
4428
|
...props,
|
|
4429
4429
|
children: [
|
|
4430
4430
|
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4431
|
-
|
|
4431
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
4432
4432
|
{
|
|
4433
4433
|
onClick: onBack,
|
|
4434
4434
|
variant: "transparent",
|
|
4435
4435
|
size: "icon",
|
|
4436
4436
|
"aria-label": "Back",
|
|
4437
4437
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24, className: "text-ods-text-primary" }),
|
|
4438
|
-
className:
|
|
4438
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, cardClasses, "absolute right-full top-0 mr-[var(--spacing-system-s)] hover:bg-ods-bg-hover")
|
|
4439
4439
|
}
|
|
4440
4440
|
),
|
|
4441
4441
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: cardClasses, children: [
|
|
4442
4442
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-4 px-4 py-3", children: [
|
|
4443
4443
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
4444
4444
|
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,
|
|
4445
|
-
|
|
4445
|
+
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
4446
4446
|
{
|
|
4447
4447
|
loading: isLoading,
|
|
4448
4448
|
src: userAvatar,
|
|
@@ -4454,8 +4454,8 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4454
4454
|
}
|
|
4455
4455
|
),
|
|
4456
4456
|
isLoading ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
4457
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4458
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4457
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h3", className: "w-40" }),
|
|
4458
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", className: "w-28" })
|
|
4459
4459
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
4460
4460
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h3", children: userName }),
|
|
4461
4461
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-2", children: serverUrl && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -4466,7 +4466,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4466
4466
|
] }),
|
|
4467
4467
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1", children: [
|
|
4468
4468
|
showNewChat && onNewChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4469
|
-
|
|
4469
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
4470
4470
|
{
|
|
4471
4471
|
onClick: onNewChat,
|
|
4472
4472
|
variant: "transparent",
|
|
@@ -4477,7 +4477,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4477
4477
|
}
|
|
4478
4478
|
),
|
|
4479
4479
|
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4480
|
-
|
|
4480
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
4481
4481
|
{
|
|
4482
4482
|
onClick: onClose,
|
|
4483
4483
|
variant: "transparent",
|
|
@@ -4498,7 +4498,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4498
4498
|
name: "",
|
|
4499
4499
|
...mspOrganization,
|
|
4500
4500
|
loading: mspLoading || !mspOrganization,
|
|
4501
|
-
className:
|
|
4501
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "rounded-none ring-0", !bare && "rounded-b-md", _optionalChain([mspOrganization, 'optionalAccess', _68 => _68.className]))
|
|
4502
4502
|
}
|
|
4503
4503
|
)
|
|
4504
4504
|
] }),
|
|
@@ -4524,9 +4524,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4524
4524
|
)
|
|
4525
4525
|
] }),
|
|
4526
4526
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4527
|
-
|
|
4527
|
+
_chunkOBQ5WUNGcjs.TicketStatusTag,
|
|
4528
4528
|
{
|
|
4529
|
-
...
|
|
4529
|
+
..._chunkOBQ5WUNGcjs.resolveStatusTagProps.call(void 0, {
|
|
4530
4530
|
status: ticketInfo.status,
|
|
4531
4531
|
statusKind: ticketInfo.statusKind,
|
|
4532
4532
|
statusName: ticketInfo.statusName,
|
|
@@ -4545,16 +4545,16 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4545
4545
|
ChatHeader.displayName = "ChatHeader";
|
|
4546
4546
|
var ChatContent = _react.forwardRef.call(void 0,
|
|
4547
4547
|
({ className, children, ...props }, ref) => {
|
|
4548
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
4548
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-h-0 flex-1 flex-col", className), ...props, children });
|
|
4549
4549
|
}
|
|
4550
4550
|
);
|
|
4551
4551
|
ChatContent.displayName = "ChatContent";
|
|
4552
4552
|
var ChatFooter = _react.forwardRef.call(void 0,
|
|
4553
4553
|
({ className, contentClassName, fullWidth = false, children, ...props }, ref) => {
|
|
4554
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className:
|
|
4554
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.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,
|
|
4555
4555
|
"div",
|
|
4556
4556
|
{
|
|
4557
|
-
className:
|
|
4557
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
4558
4558
|
// `fullWidth=true` opts out of the centered-narrow column;
|
|
4559
4559
|
// `fullWidth=false` (default) preserves the legacy 600px
|
|
4560
4560
|
// max-width. `contentClassName` is appended last so a
|
|
@@ -4580,7 +4580,7 @@ function LoadingFallback({
|
|
|
4580
4580
|
className,
|
|
4581
4581
|
children
|
|
4582
4582
|
}) {
|
|
4583
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4583
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.AnnouncedLoadingScope, { label, status, as, className, children });
|
|
4584
4584
|
}
|
|
4585
4585
|
function LoadingSuspense({
|
|
4586
4586
|
label,
|
|
@@ -4596,14 +4596,14 @@ function LoadingSuspense({
|
|
|
4596
4596
|
const view = _nullishCoalesce(fallback, () => ( children));
|
|
4597
4597
|
const waiting = live ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LiveWait, { label, status, children: view }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LoadingFallback, { label, status, as, className, children: view });
|
|
4598
4598
|
const boundary = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Suspense, { fallback: waiting, children });
|
|
4599
|
-
if (bare) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4599
|
+
if (bare) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingWhen, { loading: gated, children: gated ? view : boundary });
|
|
4600
4600
|
return gated ? waiting : boundary;
|
|
4601
4601
|
}
|
|
4602
4602
|
function LiveWait({ label, status = true, children }) {
|
|
4603
|
-
const outer =
|
|
4603
|
+
const outer = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
4604
4604
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4605
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4606
|
-
status && !outer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4605
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingWhen, { loading: true, children }),
|
|
4606
|
+
status && !outer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingStatus, { label: _nullishCoalesce(label, () => ( "Loading the page")) })
|
|
4607
4607
|
] });
|
|
4608
4608
|
}
|
|
4609
4609
|
|
|
@@ -4630,18 +4630,18 @@ function ContextMenuRow({
|
|
|
4630
4630
|
loading: loadingProp = false,
|
|
4631
4631
|
...props
|
|
4632
4632
|
}) {
|
|
4633
|
-
const inScope =
|
|
4633
|
+
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
4634
4634
|
const loading = loadingProp || inScope && (label == null || label === "");
|
|
4635
4635
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4636
4636
|
icon != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CONTEXT_ICON_CLASS, children: icon }),
|
|
4637
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CONTEXT_LABEL_CLASS, children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4637
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CONTEXT_LABEL_CLASS, children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) : label }),
|
|
4638
4638
|
!loading && trailing
|
|
4639
4639
|
] });
|
|
4640
4640
|
if (loading) {
|
|
4641
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className:
|
|
4641
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: _chunk63A4GZMBcjs.BUTTON_KIND_CLASS.row, ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), children: content });
|
|
4642
4642
|
}
|
|
4643
4643
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4644
|
-
|
|
4644
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
4645
4645
|
{
|
|
4646
4646
|
variant: "row",
|
|
4647
4647
|
type: "button",
|
|
@@ -4650,13 +4650,13 @@ function ContextMenuRow({
|
|
|
4650
4650
|
disabled,
|
|
4651
4651
|
onClick,
|
|
4652
4652
|
title,
|
|
4653
|
-
...
|
|
4653
|
+
..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props),
|
|
4654
4654
|
children: content
|
|
4655
4655
|
}
|
|
4656
4656
|
);
|
|
4657
4657
|
}
|
|
4658
4658
|
function ContextItemsSkeleton({ count }) {
|
|
4659
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4659
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextMenuRow, { loading: true, label: "", "data-loading-item": true }) });
|
|
4660
4660
|
}
|
|
4661
4661
|
function ContextItemsList({
|
|
4662
4662
|
items,
|
|
@@ -4670,7 +4670,7 @@ function ContextItemsList({
|
|
|
4670
4670
|
emptyLabel = "No results",
|
|
4671
4671
|
className
|
|
4672
4672
|
}) {
|
|
4673
|
-
const loading =
|
|
4673
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
4674
4674
|
const onScroll = _react.useCallback.call(void 0,
|
|
4675
4675
|
(e) => {
|
|
4676
4676
|
if (!hasMore || loadingMore || !onLoadMore) return;
|
|
@@ -4680,12 +4680,12 @@ function ContextItemsList({
|
|
|
4680
4680
|
[hasMore, loadingMore, onLoadMore]
|
|
4681
4681
|
);
|
|
4682
4682
|
if (loading) {
|
|
4683
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
4683
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, CONTEXT_LIST_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextItemsSkeleton, { count: pageSize }) });
|
|
4684
4684
|
}
|
|
4685
4685
|
if (items.length === 0 && !loadingMore) {
|
|
4686
4686
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CONTEXT_STATE_CLASS, children: emptyLabel });
|
|
4687
4687
|
}
|
|
4688
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { role: "listbox", "aria-label": "Items", onScroll, className:
|
|
4688
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { role: "listbox", "aria-label": "Items", onScroll, className: _chunk63A4GZMBcjs.cn.call(void 0, CONTEXT_LIST_CLASS, className), children: [
|
|
4689
4689
|
items.map((item) => {
|
|
4690
4690
|
const selected = selectedKeys.has(itemKey(item));
|
|
4691
4691
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4704,7 +4704,7 @@ function ContextItemsList({
|
|
|
4704
4704
|
);
|
|
4705
4705
|
}),
|
|
4706
4706
|
loadingMore && // `contents`: the rows stay the list's own rows; the region only adds the one announcement.
|
|
4707
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4707
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading more items", className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextItemsSkeleton, { count: pageSize }) })
|
|
4708
4708
|
] });
|
|
4709
4709
|
}
|
|
4710
4710
|
var ContextErrorBoundary = class extends _react.Component {
|
|
@@ -4748,7 +4748,7 @@ function ChatComposerPlusMenu({
|
|
|
4748
4748
|
// aligning the popover to the `+` rather than the input row.
|
|
4749
4749
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative inline-flex", children: [
|
|
4750
4750
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4751
|
-
|
|
4751
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
4752
4752
|
{
|
|
4753
4753
|
variant: "bare",
|
|
4754
4754
|
"data-tone": "accent",
|
|
@@ -4869,7 +4869,7 @@ function ChatContextPicker({
|
|
|
4869
4869
|
role: "dialog",
|
|
4870
4870
|
"aria-label": "Add context",
|
|
4871
4871
|
style: { maxHeight: availMaxH },
|
|
4872
|
-
className:
|
|
4872
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
4873
4873
|
// Anchored to the `+` button (its `relative` parent): left edge aligns
|
|
4874
4874
|
// to the button, `bottom-full` floats it just above with a 4px gap.
|
|
4875
4875
|
"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",
|
|
@@ -4900,7 +4900,7 @@ function ChatContextPicker({
|
|
|
4900
4900
|
/* Level 1 — Back + entity-type list (Figma 31:28708). Back stays pinned;
|
|
4901
4901
|
the type list scrolls if it can't fit the capped popover height. */
|
|
4902
4902
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { role: "menu", "aria-label": "Context types", className: "flex flex-col divide-y divide-ods-border", children: [
|
|
4903
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CONTEXT_BACK_BAR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4903
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CONTEXT_BACK_BAR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "row", type: "button", onClick: () => setView("root"), children: [
|
|
4904
4904
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }),
|
|
4905
4905
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: "Back" })
|
|
4906
4906
|
] }) }),
|
|
@@ -4909,7 +4909,7 @@ function ChatContextPicker({
|
|
|
4909
4909
|
) : activeType ? (
|
|
4910
4910
|
/* Level 2 — Back + search + HOST-rendered items (Figma 31:29102). */
|
|
4911
4911
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4912
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
4912
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, CONTEXT_BACK_BAR_CLASS, "border-b border-ods-border"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "row", type: "button", onClick: backToTypes, children: [
|
|
4913
4913
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }),
|
|
4914
4914
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: "Back" })
|
|
4915
4915
|
] }) }),
|
|
@@ -4933,7 +4933,7 @@ function ChatContextPicker({
|
|
|
4933
4933
|
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: [
|
|
4934
4934
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Failed to load" }),
|
|
4935
4935
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4936
|
-
|
|
4936
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
4937
4937
|
{
|
|
4938
4938
|
variant: "link",
|
|
4939
4939
|
size: "compact",
|
|
@@ -4976,8 +4976,8 @@ function ContextItemsReader({
|
|
|
4976
4976
|
renderItems,
|
|
4977
4977
|
args
|
|
4978
4978
|
}) {
|
|
4979
|
-
if (
|
|
4980
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextItemsList, { items: [], selectedKeys: NO_SELECTED_KEYS, onToggle:
|
|
4979
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ))
|
|
4980
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextItemsList, { items: [], selectedKeys: NO_SELECTED_KEYS, onToggle: _chunk63A4GZMBcjs.LOADING_NOOP, atLimit: false });
|
|
4981
4981
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: renderItems(args) });
|
|
4982
4982
|
}
|
|
4983
4983
|
function ChatContextChipStrip({
|
|
@@ -4992,7 +4992,7 @@ function ChatContextChipStrip({
|
|
|
4992
4992
|
return (
|
|
4993
4993
|
// `tag` pills (Figma 1:6073): 32px tall, card surface, bordered, mono-
|
|
4994
4994
|
// uppercase label, 16px lead icon + xmark-circle remove. Wraps to new rows.
|
|
4995
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
4995
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex flex-wrap content-center items-center gap-2", className), children: items.map((item) => {
|
|
4996
4996
|
const hostNode = _optionalChain([renderItem, 'optionalCall', _79 => _79(item)]);
|
|
4997
4997
|
if (hostNode != null) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: hostNode }, itemKey2(item));
|
|
4998
4998
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -5012,7 +5012,7 @@ function ChatContextChipStrip({
|
|
|
5012
5012
|
}
|
|
5013
5013
|
),
|
|
5014
5014
|
onRemove && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5015
|
-
|
|
5015
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
5016
5016
|
{
|
|
5017
5017
|
variant: "bare",
|
|
5018
5018
|
size: "icon-inline",
|
|
@@ -5129,11 +5129,11 @@ var remarkMentionChips = () => {
|
|
|
5129
5129
|
// src/components/chat/tool-execution-display.tsx
|
|
5130
5130
|
|
|
5131
5131
|
|
|
5132
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
5132
|
+
var COMMAND_BODY_KEYS = new Set(_chunkOBQ5WUNGcjs.COMMAND_BODY_ARG_KEYS);
|
|
5133
5133
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
5134
5134
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
5135
5135
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
5136
|
-
const { innerRef, containerStyle } =
|
|
5136
|
+
const { innerRef, containerStyle } = _chunkOBQ5WUNGcjs.useCollapsible.call(void 0, { expanded });
|
|
5137
5137
|
const isClient = assistantType === "fae";
|
|
5138
5138
|
const isClientView = variant === "client";
|
|
5139
5139
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -5164,11 +5164,11 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5164
5164
|
const statusTone = isExecuting ? "working" : message.success === false ? "error" : "success";
|
|
5165
5165
|
const statusLabel = _optionalChain([message, 'access', _86 => _86.statusLabel, 'optionalAccess', _87 => _87.trim, 'call', _88 => _88()]) || (isExecuting ? "Working on it" : message.success === false ? "Failed" : "Done");
|
|
5166
5166
|
const headerContent = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5167
|
-
!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,
|
|
5167
|
+
!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, _chunkQDDBOCG3cjs.ToolIcon, { toolType: integratedToolType, size: 16 }) }),
|
|
5168
5168
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5169
5169
|
"div",
|
|
5170
5170
|
{
|
|
5171
|
-
className:
|
|
5171
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
5172
5172
|
"min-w-0 flex-1 text-h6",
|
|
5173
5173
|
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"
|
|
5174
5174
|
),
|
|
@@ -5176,17 +5176,17 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5176
5176
|
}
|
|
5177
5177
|
),
|
|
5178
5178
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
|
|
5179
|
-
!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,
|
|
5179
|
+
!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, _chunkOBQ5WUNGcjs.ExpandChevron, { expanded: isExpanded }) })
|
|
5180
5180
|
] });
|
|
5181
5181
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5182
5182
|
"div",
|
|
5183
5183
|
{
|
|
5184
5184
|
ref,
|
|
5185
|
-
className:
|
|
5185
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
5186
5186
|
// The command running block keeps its bordered box in both chats
|
|
5187
5187
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
5188
5188
|
"flex w-full flex-col overflow-hidden",
|
|
5189
|
-
|
|
5189
|
+
_chunkOBQ5WUNGcjs.CHAT_BLOCK_FRAME_CLASS,
|
|
5190
5190
|
className
|
|
5191
5191
|
),
|
|
5192
5192
|
...props,
|
|
@@ -5197,14 +5197,14 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5197
5197
|
// It reads as a card: what was done, then one status line under it.
|
|
5198
5198
|
/* @__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: [
|
|
5199
5199
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
|
|
5200
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5200
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
5201
5201
|
] })
|
|
5202
5202
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5203
|
-
hasBody ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5203
|
+
hasBody ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.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 }),
|
|
5204
5204
|
/* @__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: [
|
|
5205
|
-
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5205
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.ArgRow, { argKey: key, value }, key)),
|
|
5206
5206
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5207
|
-
|
|
5207
|
+
_chunkOBQ5WUNGcjs.ResultBlock,
|
|
5208
5208
|
{
|
|
5209
5209
|
result: message.result,
|
|
5210
5210
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -5213,7 +5213,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5213
5213
|
isExecuting && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5214
5214
|
"div",
|
|
5215
5215
|
{
|
|
5216
|
-
className:
|
|
5216
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
5217
5217
|
"flex w-full flex-col items-start gap-[var(--spacing-system-xxs)]",
|
|
5218
5218
|
argEntries.length > 0 && "mt-[var(--spacing-system-xsf)]"
|
|
5219
5219
|
),
|
|
@@ -5236,8 +5236,8 @@ ToolExecutionDisplay.displayName = "ToolExecutionDisplay";
|
|
|
5236
5236
|
|
|
5237
5237
|
// src/components/chat/chat-message-layout.ts
|
|
5238
5238
|
var CHAT_MESSAGE_ROW_PADDING_CLASS = {
|
|
5239
|
-
[
|
|
5240
|
-
[
|
|
5239
|
+
[_chunkZRDVFADQcjs.CHAT_APPEARANCE.CLASSIC]: "py-[var(--spacing-system-s)]",
|
|
5240
|
+
[_chunkZRDVFADQcjs.CHAT_APPEARANCE.V2]: "py-[calc(var(--spacing-system-m)/2)]"
|
|
5241
5241
|
};
|
|
5242
5242
|
var CHAT_MESSAGE_STACK_CLASS = "grid min-w-0 grid-cols-1 gap-[var(--spacing-system-xxs)]";
|
|
5243
5243
|
var CHAT_MESSAGE_HEADER_CLASS = "flex items-center gap-[var(--spacing-system-xs)]";
|
|
@@ -5278,8 +5278,8 @@ var remarkStripCitations = () => {
|
|
|
5278
5278
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
5279
5279
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
5280
5280
|
function formatMessageTimestamp(timestamp) {
|
|
5281
|
-
const time =
|
|
5282
|
-
return
|
|
5281
|
+
const time = _chunkZRDVFADQcjs.formatTime.call(void 0, timestamp);
|
|
5282
|
+
return _chunkOBQ5WUNGcjs.isToday.call(void 0, timestamp) ? time : `${_chunkZRDVFADQcjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
5283
5283
|
}
|
|
5284
5284
|
function normalizeContent(content) {
|
|
5285
5285
|
if (typeof content === "string") {
|
|
@@ -5335,7 +5335,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5335
5335
|
const isError = role === "error";
|
|
5336
5336
|
const inheritedAppearance = useChatAppearance();
|
|
5337
5337
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
5338
|
-
const isV2 = appearance ===
|
|
5338
|
+
const isV2 = appearance === _chunkZRDVFADQcjs.CHAT_APPEARANCE.V2;
|
|
5339
5339
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isHuman ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
5340
5340
|
const isOtherPerson = isHuman && selfAuthorType !== void 0 && authorType !== "system" && authorType !== selfAuthorType;
|
|
5341
5341
|
const isUser = isHuman && !isOtherPerson;
|
|
@@ -5521,11 +5521,11 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5521
5521
|
const displayName = name || (isHuman ? "User" : assistantType === "mingo" ? "Mingo" : "Fae");
|
|
5522
5522
|
const nameLabel = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate text-ods-open-yellow text-h6", children: displayName });
|
|
5523
5523
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
5524
|
-
const face = !showAvatar || isSystem ? null : !isHuman && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className:
|
|
5524
|
+
const face = !showAvatar || isSystem ? null : !isHuman && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: _chunk63A4GZMBcjs.cn.call(void 0, "flex items-center justify-center", faceBox), children: assistantIcon }) : !isHuman && !avatar && assistantType ? (
|
|
5525
5525
|
// An agent with no picture shows its packaged mark, never initials.
|
|
5526
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className:
|
|
5526
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
|
|
5527
5527
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5528
|
-
|
|
5528
|
+
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
5529
5529
|
{
|
|
5530
5530
|
src: avatar || void 0,
|
|
5531
5531
|
alt: displayName,
|
|
@@ -5541,7 +5541,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5541
5541
|
"div",
|
|
5542
5542
|
{
|
|
5543
5543
|
ref,
|
|
5544
|
-
className:
|
|
5544
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[_chunkZRDVFADQcjs.CHAT_APPEARANCE.V2], className),
|
|
5545
5545
|
...props,
|
|
5546
5546
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SystemEventMessage, { text: name, timestamp }) })
|
|
5547
5547
|
}
|
|
@@ -5551,14 +5551,14 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5551
5551
|
"div",
|
|
5552
5552
|
{
|
|
5553
5553
|
ref,
|
|
5554
|
-
className:
|
|
5554
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
5555
5555
|
"relative",
|
|
5556
|
-
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ?
|
|
5556
|
+
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ? _chunkZRDVFADQcjs.CHAT_APPEARANCE.V2 : _chunkZRDVFADQcjs.CHAT_APPEARANCE.CLASSIC],
|
|
5557
5557
|
className
|
|
5558
5558
|
),
|
|
5559
5559
|
...props,
|
|
5560
5560
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CHAT_MESSAGE_STACK_CLASS, children: [
|
|
5561
|
-
(face || showName || showSelfName) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
5561
|
+
(face || showName || showSelfName) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, CHAT_MESSAGE_HEADER_CLASS, isUser && "justify-end"), children: [
|
|
5562
5562
|
showSelfName && nameLabel,
|
|
5563
5563
|
face,
|
|
5564
5564
|
showName && nameLabel,
|
|
@@ -5573,7 +5573,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5573
5573
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5574
5574
|
"div",
|
|
5575
5575
|
{
|
|
5576
|
-
className:
|
|
5576
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, CHAT_MESSAGE_TEXT_CLASS, isError ? "text-ods-error" : "text-ods-text-primary"),
|
|
5577
5577
|
children: renderSegmentBody(index, segment.text, segmentIsStreaming)
|
|
5578
5578
|
},
|
|
5579
5579
|
index
|
|
@@ -5610,7 +5610,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5610
5610
|
);
|
|
5611
5611
|
} else if (segment.type === "approval_batch") {
|
|
5612
5612
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5613
|
-
|
|
5613
|
+
_chunkOBQ5WUNGcjs.ApprovalBatchMessage,
|
|
5614
5614
|
{
|
|
5615
5615
|
data: segment.data,
|
|
5616
5616
|
status: segment.status,
|
|
@@ -5648,7 +5648,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5648
5648
|
}
|
|
5649
5649
|
return null;
|
|
5650
5650
|
}) }),
|
|
5651
|
-
timestamp && !showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
5651
|
+
timestamp && !showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "text-ods-text-secondary text-h6", isUser && "justify-self-end"), children: formatMessageTimestamp(timestamp) }),
|
|
5652
5652
|
stripContextItems && stripContextItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5653
5653
|
ChatContextChipStrip,
|
|
5654
5654
|
{
|
|
@@ -5694,14 +5694,14 @@ function ChatMessageSkeleton({
|
|
|
5694
5694
|
const inherited = useChatAppearance();
|
|
5695
5695
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inherited));
|
|
5696
5696
|
const lines = Math.max(1, bodyLines);
|
|
5697
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
5698
|
-
(showAvatar || showName) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
5699
|
-
showAvatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5700
|
-
showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5701
|
-
showName && showTime && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5697
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[appearance], className), ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CHAT_MESSAGE_STACK_CLASS, children: [
|
|
5698
|
+
(showAvatar || showName) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, CHAT_MESSAGE_HEADER_CLASS, isUser && "justify-end"), children: [
|
|
5699
|
+
showAvatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOS7OIC4cjs.SquareAvatar, { loading: true, sizePx: CHAT_MESSAGE_FACE_PX, variant: "round" }),
|
|
5700
|
+
showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-24" }),
|
|
5701
|
+
showName && showTime && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: _chunk63A4GZMBcjs.cn.call(void 0, "ml-auto", TIME_BAR_CLASS) })
|
|
5702
5702
|
] }),
|
|
5703
|
-
/* @__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:
|
|
5704
|
-
showTime && !showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5703
|
+
/* @__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: _chunk63A4GZMBcjs.cn.call(void 0, CHAT_MESSAGE_USER_BUBBLE_CLASS, "w-1/2"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", lines }) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHAT_MESSAGE_TEXT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", lines }) }) }),
|
|
5704
|
+
showTime && !showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: _chunk63A4GZMBcjs.cn.call(void 0, TIME_BAR_CLASS, isUser && "justify-self-end") })
|
|
5705
5705
|
] }) });
|
|
5706
5706
|
}
|
|
5707
5707
|
var CHAT_MESSAGE_LIST_SKELETON_MESSAGES = 6;
|
|
@@ -5717,25 +5717,25 @@ function ChatMessageListSkeleton({
|
|
|
5717
5717
|
appearance,
|
|
5718
5718
|
namedOthers = false
|
|
5719
5719
|
}) {
|
|
5720
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5720
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading messages", announce: region, className: "relative flex min-h-0 flex-1 flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5721
5721
|
"div",
|
|
5722
5722
|
{
|
|
5723
|
-
className:
|
|
5723
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
5724
5724
|
CHAT_MESSAGE_LIST_SCROLLER_CLASS,
|
|
5725
|
-
fill ? "overflow-hidden" :
|
|
5725
|
+
fill ? "overflow-hidden" : _chunk63A4GZMBcjs.cn.call(void 0, CHAT_MESSAGE_LIST_SCROLLBAR_CLASS, "overscroll-contain"),
|
|
5726
5726
|
className
|
|
5727
5727
|
),
|
|
5728
5728
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5729
5729
|
"div",
|
|
5730
5730
|
{
|
|
5731
|
-
className:
|
|
5731
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
5732
5732
|
CHAT_MESSAGE_LIST_COLUMN_CLASS[fullWidth ? "full" : "narrow"],
|
|
5733
5733
|
_nullishCoalesce(contentClassName, () => ( CHAT_MESSAGE_LIST_CONTENT_PADDING_CLASS))
|
|
5734
5734
|
),
|
|
5735
5735
|
style: fill ? void 0 : { minHeight: "100%" },
|
|
5736
5736
|
children: [
|
|
5737
5737
|
!fill && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
5738
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5738
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: messageCount, children: (index) => {
|
|
5739
5739
|
const isUser = index % 3 === 0;
|
|
5740
5740
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5741
5741
|
ChatMessageSkeleton,
|
|
@@ -5822,7 +5822,7 @@ function CyclingPhrase({ words, className, charMs = 60, holdMs = 4500 }) {
|
|
|
5822
5822
|
}
|
|
5823
5823
|
}
|
|
5824
5824
|
);
|
|
5825
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
5825
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "relative inline-block whitespace-nowrap", className), children: [
|
|
5826
5826
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "aria-hidden": true, className: "invisible", children: [
|
|
5827
5827
|
placeholder,
|
|
5828
5828
|
"..."
|
|
@@ -5884,7 +5884,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5884
5884
|
approvalVariant,
|
|
5885
5885
|
selfAuthorType,
|
|
5886
5886
|
nameEveryTurn,
|
|
5887
|
-
appearance =
|
|
5887
|
+
appearance = _chunkZRDVFADQcjs.CHAT_APPEARANCE.CLASSIC,
|
|
5888
5888
|
assistantIcon,
|
|
5889
5889
|
pendingApprovals,
|
|
5890
5890
|
hasNextPage,
|
|
@@ -5899,7 +5899,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5899
5899
|
NavLinkAnchor,
|
|
5900
5900
|
...props
|
|
5901
5901
|
}, ref) => {
|
|
5902
|
-
const isLoading =
|
|
5902
|
+
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingProp;
|
|
5903
5903
|
const { scrollRef, contentRef, scrollToBottom, stopScroll, isAtBottom } = _usesticktobottom.useStickToBottom.call(void 0, {
|
|
5904
5904
|
resize: "smooth",
|
|
5905
5905
|
initial: false
|
|
@@ -6238,13 +6238,13 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
6238
6238
|
const lastSegment = _optionalChain([lastSegments, 'optionalAccess', _123 => _123[lastSegments.length - 1]]);
|
|
6239
6239
|
const isPausedOnApproval = !!lastSegment && (lastSegment.type === "approval_request" || lastSegment.type === "approval_batch" || lastSegment.type === "escalation_offer") && (lastSegment.status === void 0 || lastSegment.status === "pending");
|
|
6240
6240
|
const showStreamingLoader = isTyping && !isPausedOnApproval && !(pendingApprovals && pendingApprovals.length > 0);
|
|
6241
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6241
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XLPRW7Vcjs.OverlayOpenRegistryProvider, { onOpenChange: handleOverlayOpenChange, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", children: [
|
|
6242
6242
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
6243
6243
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6244
6244
|
"div",
|
|
6245
6245
|
{
|
|
6246
6246
|
ref: setScrollRef,
|
|
6247
|
-
className:
|
|
6247
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
6248
6248
|
CHAT_MESSAGE_LIST_SCROLLER_CLASS,
|
|
6249
6249
|
// `overscroll-contain` (default ON, opt-out via `overscrollContain={false}`):
|
|
6250
6250
|
// reaching the top/bottom of the thread must NOT chain the wheel/
|
|
@@ -6263,7 +6263,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
6263
6263
|
"div",
|
|
6264
6264
|
{
|
|
6265
6265
|
ref: setContentRef,
|
|
6266
|
-
className:
|
|
6266
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
6267
6267
|
// `fullWidth=true` drops the centered-narrow column for
|
|
6268
6268
|
// side-panel hosts (e.g. multi-platform-hub Mingo). Same
|
|
6269
6269
|
// semantics as ChatHeader / ChatInput / ChatFooter.
|
|
@@ -6320,7 +6320,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
6320
6320
|
}
|
|
6321
6321
|
),
|
|
6322
6322
|
autoScroll && !atBottom && messages.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6323
|
-
|
|
6323
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
6324
6324
|
{
|
|
6325
6325
|
variant: "outline",
|
|
6326
6326
|
size: "icon-sm",
|
|
@@ -6338,7 +6338,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
6338
6338
|
showStreamingLoader && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6339
6339
|
"div",
|
|
6340
6340
|
{
|
|
6341
|
-
className:
|
|
6341
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
6342
6342
|
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)]",
|
|
6343
6343
|
_nullishCoalesce(contentClassName, () => ( "px-[var(--spacing-system-m)]"))
|
|
6344
6344
|
),
|
|
@@ -6354,7 +6354,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
6354
6354
|
pendingApprovals && pendingApprovals.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6355
6355
|
"div",
|
|
6356
6356
|
{
|
|
6357
|
-
className:
|
|
6357
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
6358
6358
|
"border-t border-ods-border bg-ods-bg/95 backdrop-blur-sm",
|
|
6359
6359
|
fullWidth ? "w-full" : "mx-auto w-full max-w-ods-content-narrow",
|
|
6360
6360
|
_nullishCoalesce(contentClassName, () => ( "px-[var(--spacing-system-m)]"))
|
|
@@ -6922,7 +6922,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
6922
6922
|
|
|
6923
6923
|
[Attached: ${safeName}](${url})`;
|
|
6924
6924
|
}
|
|
6925
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
6925
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkGAR2IIU6cjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
6926
6926
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
6927
6927
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
6928
6928
|
"gm"
|
|
@@ -7161,7 +7161,7 @@ function MarqueeWallFades({
|
|
|
7161
7161
|
{
|
|
7162
7162
|
"aria-hidden": true,
|
|
7163
7163
|
"data-marquee-fade": edge,
|
|
7164
|
-
className:
|
|
7164
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "pointer-events-none absolute z-[1]", FADE_POSITION[edge]),
|
|
7165
7165
|
style: {
|
|
7166
7166
|
[isY ? "height" : "width"]: px,
|
|
7167
7167
|
backgroundImage: `linear-gradient(to ${edge}, transparent, ${fadeColor})`
|
|
@@ -7396,7 +7396,7 @@ function MarqueeWall({
|
|
|
7396
7396
|
"div",
|
|
7397
7397
|
{
|
|
7398
7398
|
ref: containerRef,
|
|
7399
|
-
className:
|
|
7399
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
7400
7400
|
"relative",
|
|
7401
7401
|
staticScrollable ? axis === "y" ? "overflow-y-auto" : "overflow-x-auto" : "overflow-hidden",
|
|
7402
7402
|
staticScrollable && "scrollbar-hide",
|
|
@@ -7417,7 +7417,7 @@ function MarqueeWall({
|
|
|
7417
7417
|
"div",
|
|
7418
7418
|
{
|
|
7419
7419
|
ref: trackRef,
|
|
7420
|
-
className:
|
|
7420
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
7421
7421
|
axis === "y" ? "flex w-full flex-col" : "flex w-max items-stretch",
|
|
7422
7422
|
// Keyed on the STRUCTURAL state so the compositor layer + seam gap
|
|
7423
7423
|
// stay put while the wall is frozen (paused) — dropping them on pause
|
|
@@ -7431,12 +7431,12 @@ function MarqueeWall({
|
|
|
7431
7431
|
{
|
|
7432
7432
|
ref: copyRef,
|
|
7433
7433
|
"data-marquee-copy": "primary",
|
|
7434
|
-
className:
|
|
7434
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, axis === "x" && "w-max shrink-0", contentClassName),
|
|
7435
7435
|
style: contentStyle,
|
|
7436
7436
|
children: renderContent(false)
|
|
7437
7437
|
}
|
|
7438
7438
|
),
|
|
7439
|
-
marqueeMounted && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CloneCopy, { className:
|
|
7439
|
+
marqueeMounted && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CloneCopy, { className: _chunk63A4GZMBcjs.cn.call(void 0, axis === "x" && "w-max shrink-0", contentClassName), style: contentStyle, children: renderContent(true) })
|
|
7440
7440
|
]
|
|
7441
7441
|
}
|
|
7442
7442
|
),
|
|
@@ -7489,7 +7489,7 @@ function QuickActionWall({
|
|
|
7489
7489
|
contentClassName,
|
|
7490
7490
|
sync
|
|
7491
7491
|
}) {
|
|
7492
|
-
const loading =
|
|
7492
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
7493
7493
|
const brickRef = _react.useRef.call(void 0, null);
|
|
7494
7494
|
const [brickWidth, setBrickWidth] = _react.useState.call(void 0, 0);
|
|
7495
7495
|
const [chipWidth, setChipWidth] = _react.useState.call(void 0, 0);
|
|
@@ -7520,7 +7520,7 @@ function QuickActionWall({
|
|
|
7520
7520
|
(_, r) => r === 0 ? chips : chips.map((chip) => ({ ...chip, id: `${chip.id}__r${r}` }))
|
|
7521
7521
|
).flat();
|
|
7522
7522
|
}, [chips, padTarget]);
|
|
7523
|
-
const renderSkeletons = (count, offset = 0) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7523
|
+
const renderSkeletons = (count, offset = 0) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count, children: (i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7524
7524
|
QuickActionChipButton,
|
|
7525
7525
|
{
|
|
7526
7526
|
loading: true,
|
|
@@ -7565,7 +7565,7 @@ function QuickActionWall({
|
|
|
7565
7565
|
).flat();
|
|
7566
7566
|
});
|
|
7567
7567
|
const skelPerRow = Math.ceil(skeletonCount / stackRows);
|
|
7568
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: brickRef, className:
|
|
7568
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: brickRef, className: _chunk63A4GZMBcjs.cn.call(void 0, "relative flex flex-col overflow-hidden", className), style: { gap }, children: [
|
|
7569
7569
|
rowLists.map((list, r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7570
7570
|
MarqueeWall,
|
|
7571
7571
|
{
|
|
@@ -7577,7 +7577,7 @@ function QuickActionWall({
|
|
|
7577
7577
|
pauseOnHover,
|
|
7578
7578
|
dragScroll,
|
|
7579
7579
|
copyGap: gap,
|
|
7580
|
-
contentClassName:
|
|
7580
|
+
contentClassName: _chunk63A4GZMBcjs.cn.call(void 0, "flex items-center", contentClassName),
|
|
7581
7581
|
contentStyle: { gap },
|
|
7582
7582
|
children: loading ? renderSkeletons(skelPerRow, r * 3) : renderChipNodes(list)
|
|
7583
7583
|
},
|
|
@@ -7601,7 +7601,7 @@ function QuickActionWall({
|
|
|
7601
7601
|
fadeSize,
|
|
7602
7602
|
copyGap: gap,
|
|
7603
7603
|
className,
|
|
7604
|
-
contentClassName:
|
|
7604
|
+
contentClassName: _chunk63A4GZMBcjs.cn.call(void 0, "flex flex-wrap content-start items-start", contentClassName),
|
|
7605
7605
|
contentStyle: { gap },
|
|
7606
7606
|
sync,
|
|
7607
7607
|
children: renderChips()
|
|
@@ -7653,7 +7653,7 @@ function ChatListEmptyState({ icon, title, description, className }) {
|
|
|
7653
7653
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7654
7654
|
"div",
|
|
7655
7655
|
{
|
|
7656
|
-
className:
|
|
7656
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
7657
7657
|
"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",
|
|
7658
7658
|
className
|
|
7659
7659
|
),
|
|
@@ -7714,7 +7714,7 @@ function MingoChatHistoryRow({
|
|
|
7714
7714
|
onRequestArchive,
|
|
7715
7715
|
...props
|
|
7716
7716
|
}) {
|
|
7717
|
-
const loading =
|
|
7717
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp || !dialog;
|
|
7718
7718
|
const title = _optionalChain([dialog, 'optionalAccess', _159 => _159.title]) || "Untitled Chat";
|
|
7719
7719
|
const unread = _nullishCoalesce(_optionalChain([dialog, 'optionalAccess', _160 => _160.unreadMessagesCount]), () => ( 0));
|
|
7720
7720
|
const hasMenu = !loading && (!!onRequestRename || !!onRequestArchive || !!onRequestCopyLink || !!onRequestCompact);
|
|
@@ -7731,15 +7731,15 @@ function MingoChatHistoryRow({
|
|
|
7731
7731
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7732
7732
|
"div",
|
|
7733
7733
|
{
|
|
7734
|
-
...
|
|
7734
|
+
..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props),
|
|
7735
7735
|
"aria-hidden": loading || void 0,
|
|
7736
|
-
className:
|
|
7736
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
7737
7737
|
HISTORY_ROW_CLASS,
|
|
7738
7738
|
"group/row relative transition-colors",
|
|
7739
7739
|
// Active (selected) dialog — Figma 259:91610: an accent-secondary
|
|
7740
7740
|
// fill, a 4px accent bar down the leading edge, and accent-colored
|
|
7741
7741
|
// title text. Inactive rows keep the dark surface with a hover tint.
|
|
7742
|
-
isActive ? "bg-ods-accent-secondary" :
|
|
7742
|
+
isActive ? "bg-ods-accent-secondary" : _chunk63A4GZMBcjs.cn.call(void 0, "bg-ods-bg", !loading && "hover:bg-ods-bg-hover")
|
|
7743
7743
|
),
|
|
7744
7744
|
children: [
|
|
7745
7745
|
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,
|
|
@@ -7755,18 +7755,18 @@ function MingoChatHistoryRow({
|
|
|
7755
7755
|
select();
|
|
7756
7756
|
}
|
|
7757
7757
|
},
|
|
7758
|
-
className:
|
|
7758
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
7759
7759
|
HISTORY_ROW_CONTENT_CLASS,
|
|
7760
7760
|
"flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xsf)]",
|
|
7761
7761
|
!loading && "cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent"
|
|
7762
7762
|
),
|
|
7763
7763
|
children: [
|
|
7764
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7764
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", className: _chunkZRDVFADQcjs.SKELETON_TITLE_WIDTHS[skeletonIndex % _chunkZRDVFADQcjs.SKELETON_TITLE_WIDTHS.length] }) : null,
|
|
7765
7765
|
!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,
|
|
7766
7766
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7767
7767
|
"span",
|
|
7768
7768
|
{
|
|
7769
|
-
className:
|
|
7769
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "min-w-0 flex-1 truncate text-h4", isActive ? "text-ods-accent" : "text-ods-text-primary"),
|
|
7770
7770
|
title,
|
|
7771
7771
|
children: title
|
|
7772
7772
|
}
|
|
@@ -7780,7 +7780,7 @@ function MingoChatHistoryRow({
|
|
|
7780
7780
|
// `⋯` actions button IN PLACE, so the title never reflows. Without an
|
|
7781
7781
|
// avatar the cell exists only for the hover menu, so it collapses on
|
|
7782
7782
|
// mobile exactly like the old hover-only gutter (no hover on touch).
|
|
7783
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
7783
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "relative w-12 shrink-0 self-stretch", !hasAvatar && "max-md:hidden"), children: [
|
|
7784
7784
|
hasMenu ? (
|
|
7785
7785
|
// Revealed on row hover/its own focus; kept visible while the menu
|
|
7786
7786
|
// is open. Hidden on mobile — it's a hover affordance. `peer/menu`
|
|
@@ -7790,12 +7790,12 @@ function MingoChatHistoryRow({
|
|
|
7790
7790
|
"span",
|
|
7791
7791
|
{
|
|
7792
7792
|
onClick: (e) => e.stopPropagation(),
|
|
7793
|
-
className:
|
|
7793
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
7794
7794
|
"peer/menu absolute inset-0 transition-opacity max-md:hidden",
|
|
7795
7795
|
menuOpen ? "opacity-100" : "opacity-0 focus-within:opacity-100 group-hover/row:opacity-100"
|
|
7796
7796
|
),
|
|
7797
7797
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7798
|
-
|
|
7798
|
+
_chunk2XLPRW7Vcjs.ActionsMenuDropdown,
|
|
7799
7799
|
{
|
|
7800
7800
|
triggerAriaLabel: "Chat actions",
|
|
7801
7801
|
groups: [{ items: menuItems }],
|
|
@@ -7803,7 +7803,7 @@ function MingoChatHistoryRow({
|
|
|
7803
7803
|
onOpenChange: setMenuOpen,
|
|
7804
7804
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
7805
7805
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7806
|
-
|
|
7806
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
7807
7807
|
{
|
|
7808
7808
|
variant: "transparent",
|
|
7809
7809
|
size: "icon",
|
|
@@ -7826,12 +7826,12 @@ function MingoChatHistoryRow({
|
|
|
7826
7826
|
{
|
|
7827
7827
|
onClick: select,
|
|
7828
7828
|
title: _optionalChain([owner, 'optionalAccess', _165 => _165.name]) || void 0,
|
|
7829
|
-
className:
|
|
7829
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
7830
7830
|
"absolute inset-0 flex cursor-pointer items-center justify-center transition-opacity",
|
|
7831
7831
|
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")
|
|
7832
7832
|
),
|
|
7833
7833
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7834
|
-
|
|
7834
|
+
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
7835
7835
|
{
|
|
7836
7836
|
variant: "round",
|
|
7837
7837
|
sizePx: 24,
|
|
@@ -7857,13 +7857,13 @@ function MingoChatHistorySkeleton({ rows, className }) {
|
|
|
7857
7857
|
(_, group) => Math.max(0, Math.min(perGroup, rows - group * perGroup))
|
|
7858
7858
|
).filter((count) => count > 0);
|
|
7859
7859
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7860
|
-
|
|
7860
|
+
_chunk2XCORRJVcjs.LoadingRegion,
|
|
7861
7861
|
{
|
|
7862
7862
|
label: "Loading conversations",
|
|
7863
|
-
className:
|
|
7864
|
-
children: groups.map((count, group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
7865
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7866
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HISTORY_GROUP_BOX_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7863
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-hidden", className),
|
|
7864
|
+
children: groups.map((count, group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, HISTORY_GROUP_CLASS, "shrink-0"), children: [
|
|
7865
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h5", className: "w-16" }),
|
|
7866
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HISTORY_GROUP_BOX_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count, children: (i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoChatHistoryRow, { loading: true, "data-loading-item": true, skeletonIndex: group * perGroup + i }) }) })
|
|
7867
7867
|
] }, group))
|
|
7868
7868
|
}
|
|
7869
7869
|
);
|
|
@@ -7884,10 +7884,10 @@ function MingoChatHistory({
|
|
|
7884
7884
|
pageSize = CHAT_HISTORY_PAGE_SIZE,
|
|
7885
7885
|
className
|
|
7886
7886
|
}) {
|
|
7887
|
-
const isLoading =
|
|
7887
|
+
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
7888
7888
|
const groups = _react.useMemo.call(void 0, () => groupDialogs(dialogs), [dialogs]);
|
|
7889
7889
|
const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess', _169 => _169.trim, 'call', _170 => _170()]);
|
|
7890
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
7890
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkZRDVFADQcjs.useScrollFade.call(void 0, );
|
|
7891
7891
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
7892
7892
|
const onLoadMoreRef = _react.useRef.call(void 0, onLoadMore);
|
|
7893
7893
|
const isLoadingMoreRef = _react.useRef.call(void 0, isLoadingMore);
|
|
@@ -7912,7 +7912,7 @@ function MingoChatHistory({
|
|
|
7912
7912
|
return () => io.disconnect();
|
|
7913
7913
|
}, [hasMore, isLoadingMore, dialogCount, scrollRef]);
|
|
7914
7914
|
if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoChatHistorySkeleton, { rows: pageSize, className });
|
|
7915
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
7915
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.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: [
|
|
7916
7916
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7917
7917
|
"div",
|
|
7918
7918
|
{
|
|
@@ -7952,8 +7952,8 @@ function MingoChatHistory({
|
|
|
7952
7952
|
]
|
|
7953
7953
|
}
|
|
7954
7954
|
),
|
|
7955
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7956
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7955
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, color: "var(--color-bg-card)", className: "h-12" }),
|
|
7956
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, color: "var(--color-bg-card)", className: "h-12" })
|
|
7957
7957
|
] }) });
|
|
7958
7958
|
}
|
|
7959
7959
|
|
|
@@ -7987,7 +7987,7 @@ function MingoWelcome({
|
|
|
7987
7987
|
className
|
|
7988
7988
|
}) {
|
|
7989
7989
|
const heading = _nullishCoalesce(title, () => ( "Hey, I'm Mingo"));
|
|
7990
|
-
const historyLoading =
|
|
7990
|
+
const historyLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingHistory;
|
|
7991
7991
|
const resolvedPromo = hasExistingChats ? null : promo === void 0 ? onStartGuideChat ? DEFAULT_PROMO : null : promo;
|
|
7992
7992
|
const hydrated = useIsHydrated();
|
|
7993
7993
|
const [dismissedThisSession, setPromoDismissed] = _react.useState.call(void 0, false);
|
|
@@ -8009,12 +8009,12 @@ function MingoWelcome({
|
|
|
8009
8009
|
} catch (e8) {
|
|
8010
8010
|
}
|
|
8011
8011
|
}, [promoStorage, promoStorageKey]);
|
|
8012
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
8012
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkZRDVFADQcjs.useScrollFade.call(void 0, );
|
|
8013
8013
|
const showPinnedRegion = !!dialogHistory || !historyLoading && !loadError;
|
|
8014
8014
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8015
8015
|
"div",
|
|
8016
8016
|
{
|
|
8017
|
-
className:
|
|
8017
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
8018
8018
|
// `@container` makes the panel itself the responsive context (the
|
|
8019
8019
|
// drawer width ≠ viewport width) so the notification's down-arrow can
|
|
8020
8020
|
// appear only once the panel is genuinely wide.
|
|
@@ -8028,7 +8028,7 @@ function MingoWelcome({
|
|
|
8028
8028
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: "Couldn\u2019t load your chats" }),
|
|
8029
8029
|
/* @__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." })
|
|
8030
8030
|
] }),
|
|
8031
|
-
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8031
|
+
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", size: "small", leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXLTOM62Pcjs.Refresh01RightIcon, {}), onClick: onRetry, children: "Try again" })
|
|
8032
8032
|
] }) : historyLoading ? (
|
|
8033
8033
|
// The history draws its own loading state (one page of rows) until the
|
|
8034
8034
|
// first page tells new and returning users apart.
|
|
@@ -8041,7 +8041,7 @@ function MingoWelcome({
|
|
|
8041
8041
|
onScroll: updateScrollFade,
|
|
8042
8042
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
8043
8043
|
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: [
|
|
8044
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8044
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
8045
8045
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
8046
8046
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
8047
8047
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -8049,8 +8049,8 @@ function MingoWelcome({
|
|
|
8049
8049
|
] })
|
|
8050
8050
|
}
|
|
8051
8051
|
),
|
|
8052
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8053
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8052
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
8053
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
8054
8054
|
] }) })))),
|
|
8055
8055
|
showPinnedRegion && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col gap-[var(--spacing-system-m)]", children: [
|
|
8056
8056
|
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: [
|
|
@@ -8060,7 +8060,7 @@ function MingoWelcome({
|
|
|
8060
8060
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: resolvedPromo.description })
|
|
8061
8061
|
] }),
|
|
8062
8062
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8063
|
-
|
|
8063
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
8064
8064
|
{
|
|
8065
8065
|
variant: "bare",
|
|
8066
8066
|
size: "icon-sm",
|
|
@@ -8130,8 +8130,8 @@ function GuideWelcome({
|
|
|
8130
8130
|
children,
|
|
8131
8131
|
className
|
|
8132
8132
|
}) {
|
|
8133
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
8134
|
-
const subtitleIsLoading =
|
|
8133
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkZRDVFADQcjs.useScrollFade.call(void 0, );
|
|
8134
|
+
const subtitleIsLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || subtitleLoading && !subtitle;
|
|
8135
8135
|
const chipItems = _react.useMemo.call(void 0,
|
|
8136
8136
|
() => quickActions.map((action) => ({
|
|
8137
8137
|
id: action.id,
|
|
@@ -8153,7 +8153,7 @@ function GuideWelcome({
|
|
|
8153
8153
|
})),
|
|
8154
8154
|
[quickActions, icon, onQuickAction, onQuickActionHover, onQuickActionHoverEnd]
|
|
8155
8155
|
);
|
|
8156
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
8156
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)]", className), children: [
|
|
8157
8157
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
8158
8158
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8159
8159
|
"div",
|
|
@@ -8166,19 +8166,19 @@ function GuideWelcome({
|
|
|
8166
8166
|
icon && (icon.name || icon.url) ? (
|
|
8167
8167
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
8168
8168
|
// match the default Mingo mark (48px).
|
|
8169
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8170
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8169
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
8170
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
8171
8171
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
8172
8172
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
8173
|
-
subtitleIsLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8173
|
+
subtitleIsLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.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
|
|
8174
8174
|
] })
|
|
8175
8175
|
] }),
|
|
8176
8176
|
children
|
|
8177
8177
|
]
|
|
8178
8178
|
}
|
|
8179
8179
|
),
|
|
8180
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8181
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8180
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
8181
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
8182
8182
|
] }),
|
|
8183
8183
|
quickActions.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8184
8184
|
QuickActionWall,
|
|
@@ -8206,16 +8206,16 @@ function GuideModeBanner({ label = DEFAULT_LABEL, tooltip = DEFAULT_TOOLTIP, cla
|
|
|
8206
8206
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8207
8207
|
"div",
|
|
8208
8208
|
{
|
|
8209
|
-
className:
|
|
8209
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
8210
8210
|
"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)]",
|
|
8211
8211
|
className
|
|
8212
8212
|
),
|
|
8213
8213
|
children: [
|
|
8214
8214
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZFJDLJSIcjs.CompassIcon, { size: 16, className: "shrink-0 text-ods-text-on-accent" }),
|
|
8215
8215
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "flex-1 truncate uppercase text-ods-text-on-accent text-h5", children: label }),
|
|
8216
|
-
tooltip != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8217
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8218
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8216
|
+
tooltip != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XLPRW7Vcjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2XLPRW7Vcjs.Tooltip, { children: [
|
|
8217
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XLPRW7Vcjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.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" }) }) }),
|
|
8218
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XLPRW7Vcjs.TooltipContent, { side: "bottom", align: "end", className: "max-w-[280px] normal-case text-h6", children: tooltip })
|
|
8219
8219
|
] }) })
|
|
8220
8220
|
]
|
|
8221
8221
|
}
|
|
@@ -8234,7 +8234,7 @@ function MingoArchiveList({
|
|
|
8234
8234
|
isLoadingMore = false,
|
|
8235
8235
|
onLoadMore
|
|
8236
8236
|
}) {
|
|
8237
|
-
const loading =
|
|
8237
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoading && dialogs.length === 0;
|
|
8238
8238
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
8239
8239
|
const onLoadMoreRef = _react.useRef.call(void 0, onLoadMore);
|
|
8240
8240
|
const isLoadingMoreRef = _react.useRef.call(void 0, isLoadingMore);
|
|
@@ -8262,17 +8262,17 @@ function MingoArchiveList({
|
|
|
8262
8262
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] px-[var(--spacing-system-xs)] pt-[var(--spacing-system-mf)]",
|
|
8263
8263
|
children: [
|
|
8264
8264
|
/* @__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" }),
|
|
8265
|
-
/* @__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,
|
|
8265
|
+
/* @__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, _chunkZRDVFADQcjs.ChatListItemLoadingPage, { count: pageSize, trailing: true }) : dialogs.length > 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8266
8266
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8267
|
-
|
|
8267
|
+
_chunkZRDVFADQcjs.ChatListItem,
|
|
8268
8268
|
{
|
|
8269
8269
|
"data-loading-item": true,
|
|
8270
8270
|
title: dialog.title || "Untitled Chat",
|
|
8271
8271
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _181 => _181(dialog.id)]),
|
|
8272
8272
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
8273
|
-
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children:
|
|
8273
|
+
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkOBQ5WUNGcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
8274
8274
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8275
|
-
|
|
8275
|
+
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
8276
8276
|
{
|
|
8277
8277
|
variant: "round",
|
|
8278
8278
|
sizePx: 24,
|
|
@@ -8320,7 +8320,7 @@ function MingoChatHeader({
|
|
|
8320
8320
|
];
|
|
8321
8321
|
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: [
|
|
8322
8322
|
onToggleList && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8323
|
-
|
|
8323
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
8324
8324
|
{
|
|
8325
8325
|
variant: "cell",
|
|
8326
8326
|
className: "w-14",
|
|
@@ -8336,7 +8336,7 @@ function MingoChatHeader({
|
|
|
8336
8336
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
8337
8337
|
] }),
|
|
8338
8338
|
avatar && (avatar.name || avatar.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8339
|
-
|
|
8339
|
+
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
8340
8340
|
{
|
|
8341
8341
|
variant: "round",
|
|
8342
8342
|
sizePx: 32,
|
|
@@ -8347,18 +8347,18 @@ function MingoChatHeader({
|
|
|
8347
8347
|
}
|
|
8348
8348
|
) : null
|
|
8349
8349
|
] }),
|
|
8350
|
-
onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8350
|
+
onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: onRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
8351
8351
|
menuGroups.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8352
|
-
|
|
8352
|
+
_chunk2XLPRW7Vcjs.ActionsMenuDropdown,
|
|
8353
8353
|
{
|
|
8354
8354
|
triggerAriaLabel: "Chat actions",
|
|
8355
8355
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
8356
8356
|
groups: menuGroups,
|
|
8357
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8357
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", "aria-label": "Chat actions", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 24 }) })
|
|
8358
8358
|
}
|
|
8359
8359
|
),
|
|
8360
|
-
onCollapse && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8361
|
-
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8360
|
+
onCollapse && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: onCollapse, "aria-label": "Collapse chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7OPT4PNcjs.Arrow02RightIcon, { size: 24 }) }),
|
|
8361
|
+
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: onClose, "aria-label": "Close", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 24 }) })
|
|
8362
8362
|
] });
|
|
8363
8363
|
}
|
|
8364
8364
|
|
|
@@ -8402,7 +8402,7 @@ function ChatHeaderSearchField({
|
|
|
8402
8402
|
onAnimationEnd: (e) => {
|
|
8403
8403
|
if (e.target === e.currentTarget && exiting) finishCollapse();
|
|
8404
8404
|
},
|
|
8405
|
-
className:
|
|
8405
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
8406
8406
|
"flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xs)] px-[var(--spacing-system-sf)]",
|
|
8407
8407
|
exiting ? (
|
|
8408
8408
|
// Elegant leave: sweep back out to the right + fade, holding the end
|
|
@@ -8498,7 +8498,7 @@ function MingoChatRail({
|
|
|
8498
8498
|
onExpand,
|
|
8499
8499
|
className
|
|
8500
8500
|
}) {
|
|
8501
|
-
const loading =
|
|
8501
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingHistory;
|
|
8502
8502
|
const [searchOpen, setSearchOpen] = _react.useState.call(void 0, !!_optionalChain([searchQuery, 'optionalAccess', _184 => _184.trim, 'call', _185 => _185()]));
|
|
8503
8503
|
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _186 => _186.trim, 'call', _187 => _187()]);
|
|
8504
8504
|
const items = [];
|
|
@@ -8572,10 +8572,10 @@ function MingoChatRail({
|
|
|
8572
8572
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: "Couldn\u2019t load your chats" }),
|
|
8573
8573
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Something went wrong reaching the server. Try again." })
|
|
8574
8574
|
] }),
|
|
8575
|
-
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8575
|
+
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", size: "small", leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXLTOM62Pcjs.Refresh01RightIcon, {}), onClick: onRetry, children: "Try again" })
|
|
8576
8576
|
] });
|
|
8577
8577
|
} else if (loading) {
|
|
8578
|
-
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8578
|
+
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ChatListItemLoadingPage, { count: pageSize });
|
|
8579
8579
|
} else if (dialogs.length === 0 && !draftTitle) {
|
|
8580
8580
|
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,
|
|
8581
8581
|
ChatListEmptyState,
|
|
@@ -8587,7 +8587,7 @@ function MingoChatRail({
|
|
|
8587
8587
|
);
|
|
8588
8588
|
} else {
|
|
8589
8589
|
list = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8590
|
-
draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8590
|
+
draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ChatListItem, { active: true, title: draftTitle, tabIndex: -1, className: "cursor-default" }),
|
|
8591
8591
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8592
8592
|
MingoChatRailRow,
|
|
8593
8593
|
{
|
|
@@ -8609,15 +8609,15 @@ function MingoChatRail({
|
|
|
8609
8609
|
] });
|
|
8610
8610
|
}
|
|
8611
8611
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8612
|
-
|
|
8612
|
+
_chunkZRDVFADQcjs.ChatNavSidebar,
|
|
8613
8613
|
{
|
|
8614
8614
|
className,
|
|
8615
8615
|
"data-accent": "mingo",
|
|
8616
8616
|
"aria-label": "Mingo chats",
|
|
8617
8617
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
8618
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8618
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
8619
8619
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8620
|
-
|
|
8620
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
8621
8621
|
{
|
|
8622
8622
|
variant: "transparent",
|
|
8623
8623
|
size: "icon",
|
|
@@ -8631,13 +8631,13 @@ function MingoChatRail({
|
|
|
8631
8631
|
items,
|
|
8632
8632
|
sectionLabel: "Your Current Chats",
|
|
8633
8633
|
sectionActions: listMenu.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8634
|
-
|
|
8634
|
+
_chunk2XLPRW7Vcjs.ActionsMenuDropdown,
|
|
8635
8635
|
{
|
|
8636
8636
|
triggerAriaLabel: "Chat list options",
|
|
8637
8637
|
groups: [{ items: listMenu }],
|
|
8638
8638
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
8639
8639
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8640
|
-
|
|
8640
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
8641
8641
|
{
|
|
8642
8642
|
variant: "transparent",
|
|
8643
8643
|
size: "icon",
|
|
@@ -8666,20 +8666,20 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
8666
8666
|
const hasMenu = menuItems.length > 0;
|
|
8667
8667
|
const glyph = status ? STATUS_GLYPHS[status] : void 0;
|
|
8668
8668
|
const title = dialog.title || "Untitled Chat";
|
|
8669
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ...
|
|
8669
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), className: "group/row relative shrink-0", children: [
|
|
8670
8670
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8671
|
-
|
|
8671
|
+
_chunkZRDVFADQcjs.ChatListItem,
|
|
8672
8672
|
{
|
|
8673
8673
|
active,
|
|
8674
8674
|
title,
|
|
8675
8675
|
onClick: () => _optionalChain([onSelect, 'optionalCall', _191 => _191(dialog.id)]),
|
|
8676
|
-
className:
|
|
8676
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, hasMenu && "pr-10"),
|
|
8677
8677
|
trailing: glyph ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8678
8678
|
"span",
|
|
8679
8679
|
{
|
|
8680
8680
|
role: "img",
|
|
8681
8681
|
"aria-label": glyph.label,
|
|
8682
|
-
className:
|
|
8682
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "flex transition-opacity", hasMenu && "group-hover/row:opacity-0", menuOpen && "opacity-0"),
|
|
8683
8683
|
children: glyph.icon
|
|
8684
8684
|
}
|
|
8685
8685
|
) : void 0
|
|
@@ -8689,12 +8689,12 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
8689
8689
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8690
8690
|
"span",
|
|
8691
8691
|
{
|
|
8692
|
-
className:
|
|
8692
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
8693
8693
|
"absolute inset-y-0 right-[var(--spacing-system-xs)] flex items-center transition-opacity",
|
|
8694
8694
|
menuOpen ? "opacity-100" : "opacity-0 focus-within:opacity-100 group-hover/row:opacity-100"
|
|
8695
8695
|
),
|
|
8696
8696
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8697
|
-
|
|
8697
|
+
_chunk2XLPRW7Vcjs.ActionsMenuDropdown,
|
|
8698
8698
|
{
|
|
8699
8699
|
triggerAriaLabel: `Actions for ${title}`,
|
|
8700
8700
|
groups: [{ items: menuItems }],
|
|
@@ -8702,7 +8702,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
8702
8702
|
onOpenChange: setMenuOpen,
|
|
8703
8703
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
8704
8704
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8705
|
-
|
|
8705
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
8706
8706
|
{
|
|
8707
8707
|
variant: "transparent",
|
|
8708
8708
|
size: "icon",
|
|
@@ -8730,29 +8730,29 @@ function TabSelector({
|
|
|
8730
8730
|
scrollable = false,
|
|
8731
8731
|
className
|
|
8732
8732
|
}) {
|
|
8733
|
-
const flush =
|
|
8733
|
+
const flush = _chunk2XLPRW7Vcjs.useIsInActionsMenuHeader.call(void 0, );
|
|
8734
8734
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8735
8735
|
"div",
|
|
8736
8736
|
{
|
|
8737
|
-
className:
|
|
8737
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "flex flex-col gap-[var(--spacing-system-xxs)]", disabled && "opacity-50", className),
|
|
8738
8738
|
"aria-disabled": disabled || void 0,
|
|
8739
8739
|
children: [
|
|
8740
8740
|
label && // Label for family/color; 'large' (text-h4) is this component's
|
|
8741
8741
|
// long-standing label scale — neighbours opt into the same scale via
|
|
8742
8742
|
// their `labelVariant="large"` when a design puts them side by side.
|
|
8743
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8743
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3MBQRCQcjs.Label, { variant: "large", children: label }),
|
|
8744
8744
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8745
8745
|
"div",
|
|
8746
8746
|
{
|
|
8747
|
-
className:
|
|
8747
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
8748
8748
|
"flex gap-[var(--spacing-system-xxs)] bg-ods-bg p-[var(--spacing-system-xxs)]",
|
|
8749
|
-
flush ? "h-10 w-full" :
|
|
8749
|
+
flush ? "h-10 w-full" : _chunk63A4GZMBcjs.cn.call(void 0, "h-11 rounded-md border border-ods-border content-md:h-12", scrollable ? "overflow-x-auto" : "w-full")
|
|
8750
8750
|
),
|
|
8751
8751
|
children: items.map((item) => {
|
|
8752
8752
|
const isActive = value === item.id;
|
|
8753
8753
|
const isDisabled = disabled || item.disabled;
|
|
8754
8754
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8755
|
-
|
|
8755
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
8756
8756
|
{
|
|
8757
8757
|
variant: "segment",
|
|
8758
8758
|
type: "button",
|
|
@@ -8762,7 +8762,7 @@ function TabSelector({
|
|
|
8762
8762
|
"aria-pressed": isActive,
|
|
8763
8763
|
"data-state": isActive ? "active" : void 0,
|
|
8764
8764
|
"data-tone": variant === "primary" ? "accent" : void 0,
|
|
8765
|
-
className:
|
|
8765
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "h-full", scrollable ? "flex-none shrink-0 basis-auto" : "flex-1"),
|
|
8766
8766
|
children: [
|
|
8767
8767
|
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 }),
|
|
8768
8768
|
item.label,
|
|
@@ -8802,19 +8802,19 @@ function MingoHistoryRail({
|
|
|
8802
8802
|
onRetry,
|
|
8803
8803
|
className
|
|
8804
8804
|
}) {
|
|
8805
|
-
const loading =
|
|
8805
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingHistory;
|
|
8806
8806
|
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _192 => _192.trim, 'call', _193 => _193()]);
|
|
8807
8807
|
const hasList = dialogs.length > 0 || hasSearch;
|
|
8808
8808
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8809
8809
|
"div",
|
|
8810
8810
|
{
|
|
8811
|
-
className:
|
|
8811
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
8812
8812
|
"flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] p-[var(--spacing-system-m)]",
|
|
8813
8813
|
className
|
|
8814
8814
|
),
|
|
8815
8815
|
children: [
|
|
8816
8816
|
onNewChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8817
|
-
|
|
8817
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
8818
8818
|
{
|
|
8819
8819
|
variant: "outline",
|
|
8820
8820
|
fullWidth: true,
|
|
@@ -8842,7 +8842,7 @@ function MingoHistoryRail({
|
|
|
8842
8842
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: "Couldn\u2019t load your chats" }),
|
|
8843
8843
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Something went wrong reaching the server. Try again." })
|
|
8844
8844
|
] }),
|
|
8845
|
-
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8845
|
+
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", size: "small", leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXLTOM62Pcjs.Refresh01RightIcon, {}), onClick: onRetry, children: "Try again" })
|
|
8846
8846
|
] }) : loading || hasList ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8847
8847
|
MingoChatHistory,
|
|
8848
8848
|
{
|
|
@@ -8891,10 +8891,10 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8891
8891
|
const save = () => {
|
|
8892
8892
|
if (canSave) onSave(name.trim());
|
|
8893
8893
|
};
|
|
8894
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8895
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8894
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZRDVFADQcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8895
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
8896
8896
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
8897
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8897
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3MBQRCQcjs.Label, { htmlFor: "rename-chat-input", variant: "large", children: "Chat Name" }),
|
|
8898
8898
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8899
8899
|
"input",
|
|
8900
8900
|
{
|
|
@@ -8909,29 +8909,29 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8909
8909
|
}
|
|
8910
8910
|
)
|
|
8911
8911
|
] }),
|
|
8912
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8913
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8914
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8912
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZRDVFADQcjs.ModalFooter, { children: [
|
|
8913
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8914
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", type: "button", onClick: save, disabled: !canSave, className: footerBtn, children: "Save" })
|
|
8915
8915
|
] })
|
|
8916
8916
|
] });
|
|
8917
8917
|
}
|
|
8918
8918
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8919
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8920
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8919
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZRDVFADQcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8920
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
8921
8921
|
/* @__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." }),
|
|
8922
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8923
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8924
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8922
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZRDVFADQcjs.ModalFooter, { children: [
|
|
8923
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8924
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "destructive", type: "button", onClick: onConfirm, className: footerBtn, children: "Archive Chat" })
|
|
8925
8925
|
] })
|
|
8926
8926
|
] });
|
|
8927
8927
|
}
|
|
8928
8928
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8929
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8930
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8929
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZRDVFADQcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8930
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
8931
8931
|
/* @__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." }),
|
|
8932
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8933
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8934
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8932
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZRDVFADQcjs.ModalFooter, { children: [
|
|
8933
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8934
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", type: "button", onClick: onConfirm, className: footerBtn, children: "Unarchive Chat" })
|
|
8935
8935
|
] })
|
|
8936
8936
|
] });
|
|
8937
8937
|
}
|
|
@@ -9005,24 +9005,24 @@ function ChatPanelHeaderMobile({
|
|
|
9005
9005
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9006
9006
|
"div",
|
|
9007
9007
|
{
|
|
9008
|
-
className:
|
|
9008
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
9009
9009
|
"flex flex-shrink-0 flex-col border-b border-ods-border bg-ods-card",
|
|
9010
9010
|
"px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]",
|
|
9011
9011
|
className
|
|
9012
9012
|
),
|
|
9013
9013
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-end gap-[var(--spacing-system-sf)]", children: [
|
|
9014
|
-
showBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9014
|
+
showBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", size: "icon", "aria-label": backAriaLabel, onClick: onBack, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, {}) }),
|
|
9015
9015
|
/* @__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: [
|
|
9016
9016
|
/* @__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 }) }),
|
|
9017
9017
|
menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9018
|
-
|
|
9018
|
+
_chunk2XLPRW7Vcjs.ActionsMenuDropdown,
|
|
9019
9019
|
{
|
|
9020
9020
|
groups: [{ items: menuItems }],
|
|
9021
9021
|
triggerAriaLabel: "Chat actions",
|
|
9022
9022
|
triggerClassName: "flex shrink-0 items-center justify-center border-ods-border bg-ods-card hover:bg-ods-bg-hover focus-visible:ring-0"
|
|
9023
9023
|
}
|
|
9024
9024
|
),
|
|
9025
|
-
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9025
|
+
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", size: "icon", "aria-label": "Close chat", onClick: onClose, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, {}) })
|
|
9026
9026
|
] })
|
|
9027
9027
|
] })
|
|
9028
9028
|
}
|
|
@@ -9077,12 +9077,12 @@ function ChatPanelHeader({
|
|
|
9077
9077
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9078
9078
|
"div",
|
|
9079
9079
|
{
|
|
9080
|
-
className:
|
|
9080
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
9081
9081
|
"h-14 w-full flex-shrink-0 divide-x divide-ods-border overflow-hidden border-b border-ods-border bg-ods-card",
|
|
9082
9082
|
compact ? "flex" : "hidden md:flex"
|
|
9083
9083
|
),
|
|
9084
9084
|
children: [
|
|
9085
|
-
showBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9085
|
+
showBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: onBack, "aria-label": backAriaLabel, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }) }),
|
|
9086
9086
|
searchInline ? (
|
|
9087
9087
|
// Search open — the inline field takes over the title area in place
|
|
9088
9088
|
// (Figma 116:51217); the magnifier toggle below is hidden.
|
|
@@ -9102,7 +9102,7 @@ function ChatPanelHeader({
|
|
|
9102
9102
|
avatar && (avatar.name || avatar.avatarUrl) ? (
|
|
9103
9103
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
9104
9104
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9105
|
-
|
|
9105
|
+
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
9106
9106
|
{
|
|
9107
9107
|
variant: "round",
|
|
9108
9108
|
sizePx: 32,
|
|
@@ -9116,18 +9116,18 @@ function ChatPanelHeader({
|
|
|
9116
9116
|
)
|
|
9117
9117
|
) : null
|
|
9118
9118
|
] }),
|
|
9119
|
-
isArchivedView && onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9119
|
+
isArchivedView && onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: onRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
9120
9120
|
showBack && !isArchivedView && menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9121
|
-
|
|
9121
|
+
_chunk2XLPRW7Vcjs.ActionsMenuDropdown,
|
|
9122
9122
|
{
|
|
9123
9123
|
triggerAriaLabel: "Chat actions",
|
|
9124
9124
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
9125
9125
|
groups: [{ items: menuItems }],
|
|
9126
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9126
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", "aria-label": "Chat actions", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 24 }) })
|
|
9127
9127
|
}
|
|
9128
9128
|
),
|
|
9129
9129
|
!showBack && !searchInline && onToggleSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9130
|
-
|
|
9130
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
9131
9131
|
{
|
|
9132
9132
|
variant: "cell",
|
|
9133
9133
|
className: "w-14",
|
|
@@ -9137,8 +9137,8 @@ function ChatPanelHeader({
|
|
|
9137
9137
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { size: 24 })
|
|
9138
9138
|
}
|
|
9139
9139
|
),
|
|
9140
|
-
!showBack && onOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9141
|
-
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9140
|
+
!showBack && onOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: onOpenArchive, "aria-label": "Chat archive", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JKBT3LTcjs.ClockHistoryIcon, { size: 24 }) }),
|
|
9141
|
+
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: onClose, "aria-label": "Close", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 24 }) })
|
|
9142
9142
|
]
|
|
9143
9143
|
}
|
|
9144
9144
|
)
|
|
@@ -9169,7 +9169,7 @@ function ChatAttachmentAddButton({
|
|
|
9169
9169
|
const compact = size === "compact";
|
|
9170
9170
|
const boxClass = compact ? "h-6 w-6" : "h-7 w-7";
|
|
9171
9171
|
if (!attachmentsEnabled) {
|
|
9172
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className:
|
|
9172
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-block shrink-0", boxClass) });
|
|
9173
9173
|
}
|
|
9174
9174
|
const slotsAvailable = Math.max(0, CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER - attachmentsCount);
|
|
9175
9175
|
const canAddMore = slotsAvailable > 0 && !disabled;
|
|
@@ -9197,7 +9197,7 @@ function ChatAttachmentAddButton({
|
|
|
9197
9197
|
}
|
|
9198
9198
|
),
|
|
9199
9199
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9200
|
-
|
|
9200
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
9201
9201
|
{
|
|
9202
9202
|
type: "button",
|
|
9203
9203
|
variant: "transparent",
|
|
@@ -9207,7 +9207,7 @@ function ChatAttachmentAddButton({
|
|
|
9207
9207
|
"aria-label": canAddMore ? "Add attachments" : "Attachment limit reached",
|
|
9208
9208
|
title: canAddMore ? "Add attachments" : `Limit reached (${CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER})`,
|
|
9209
9209
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX4UZ62MYcjs.PlusIcon, { className: compact ? "h-3.5 w-3.5" : "h-4 w-4" }),
|
|
9210
|
-
className:
|
|
9210
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
9211
9211
|
"shrink-0 !p-0 text-ods-text-muted hover:text-ods-text-primary",
|
|
9212
9212
|
compact ? "!h-6 !w-6" : "!h-7 !w-7"
|
|
9213
9213
|
)
|
|
@@ -9223,7 +9223,7 @@ function ChatAttachmentChipStrip({
|
|
|
9223
9223
|
}) {
|
|
9224
9224
|
if (attachments.length === 0) return null;
|
|
9225
9225
|
const compact = size === "compact";
|
|
9226
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
9226
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.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: _chunk63A4GZMBcjs.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,
|
|
9227
9227
|
AttachmentChip,
|
|
9228
9228
|
{
|
|
9229
9229
|
attachment: att,
|
|
@@ -9242,14 +9242,14 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
9242
9242
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9243
9243
|
"div",
|
|
9244
9244
|
{
|
|
9245
|
-
className:
|
|
9245
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
9246
9246
|
"flex items-center rounded-md border border-ods-border bg-ods-card",
|
|
9247
9247
|
compact ? "max-w-[180px] gap-1.5 px-1.5 py-1" : "max-w-[240px] gap-2 px-2 py-1.5"
|
|
9248
9248
|
),
|
|
9249
9249
|
role: "group",
|
|
9250
9250
|
"aria-label": `Attachment ${file.name}`,
|
|
9251
9251
|
children: [
|
|
9252
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
9252
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "relative shrink-0 overflow-hidden rounded bg-ods-bg", compact ? "h-6 w-6" : "h-8 w-8"), children: [
|
|
9253
9253
|
isImage && blobUrl ? (
|
|
9254
9254
|
// cannot go through next/image; this is a transient pre-upload
|
|
9255
9255
|
// preview, NOT the chat-history render path.
|
|
@@ -9257,7 +9257,7 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
9257
9257
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9258
9258
|
"div",
|
|
9259
9259
|
{
|
|
9260
|
-
className:
|
|
9260
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
9261
9261
|
"flex h-full w-full items-center justify-center font-mono uppercase text-ods-text-muted",
|
|
9262
9262
|
compact ? "text-[9px]" : "text-[10px]"
|
|
9263
9263
|
),
|
|
@@ -9270,13 +9270,13 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
9270
9270
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
|
|
9271
9271
|
(!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
|
|
9272
9272
|
status === "sniffing" && "Checking the file",
|
|
9273
|
-
status === "uploading" && `${progress}% \xB7 ${
|
|
9274
|
-
status === "ready" &&
|
|
9273
|
+
status === "uploading" && `${progress}% \xB7 ${_chunkBOS7OIC4cjs.formatFileSize.call(void 0, file.size)}`,
|
|
9274
|
+
status === "ready" && _chunkBOS7OIC4cjs.formatFileSize.call(void 0, file.size),
|
|
9275
9275
|
status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
|
|
9276
9276
|
] })
|
|
9277
9277
|
] }),
|
|
9278
9278
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9279
|
-
|
|
9279
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
9280
9280
|
{
|
|
9281
9281
|
type: "button",
|
|
9282
9282
|
variant: "transparent",
|
|
@@ -9285,7 +9285,7 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
9285
9285
|
disabled,
|
|
9286
9286
|
"aria-label": `Remove ${file.name}`,
|
|
9287
9287
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { className: compact ? "h-3 w-3" : "h-3.5 w-3.5" }),
|
|
9288
|
-
className:
|
|
9288
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
9289
9289
|
"shrink-0 !p-0 text-ods-text-muted hover:text-ods-text-primary",
|
|
9290
9290
|
compact ? "!h-4 !w-4" : "!h-5 !w-5"
|
|
9291
9291
|
)
|
|
@@ -9352,9 +9352,9 @@ function ChatContextMemoryBar({
|
|
|
9352
9352
|
}, [open]);
|
|
9353
9353
|
if (items.length === 0 && !pending) return null;
|
|
9354
9354
|
if (items.length === 0) {
|
|
9355
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "aria-hidden": true, className:
|
|
9356
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9357
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9355
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "aria-hidden": true, className: _chunk63A4GZMBcjs.cn.call(void 0, MEMORY_STRIP_CLASS, className), children: [
|
|
9356
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48 max-w-full" }) }),
|
|
9357
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "bare", size: "icon-sm", type: "button", tabIndex: -1, className: "invisible shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 16 }) })
|
|
9358
9358
|
] });
|
|
9359
9359
|
}
|
|
9360
9360
|
return (
|
|
@@ -9364,7 +9364,7 @@ function ChatContextMemoryBar({
|
|
|
9364
9364
|
"div",
|
|
9365
9365
|
{
|
|
9366
9366
|
ref: rootRef,
|
|
9367
|
-
className:
|
|
9367
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, MEMORY_STRIP_CLASS, className),
|
|
9368
9368
|
onKeyDown: (e) => {
|
|
9369
9369
|
if (e.key === "Escape" && open) {
|
|
9370
9370
|
e.preventDefault();
|
|
@@ -9379,7 +9379,7 @@ function ChatContextMemoryBar({
|
|
|
9379
9379
|
" in context"
|
|
9380
9380
|
] }),
|
|
9381
9381
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9382
|
-
|
|
9382
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
9383
9383
|
{
|
|
9384
9384
|
variant: "bare",
|
|
9385
9385
|
size: "icon-sm",
|
|
@@ -9405,7 +9405,7 @@ function ChatContextMemoryBar({
|
|
|
9405
9405
|
resolveIcon2 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CONTEXT_ICON_CLASS, children: resolveIcon2(item) }),
|
|
9406
9406
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CONTEXT_LABEL_CLASS, title: item.label, children: item.label }),
|
|
9407
9407
|
onRemove && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9408
|
-
|
|
9408
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
9409
9409
|
{
|
|
9410
9410
|
variant: "bare",
|
|
9411
9411
|
size: "icon-sm",
|
|
@@ -9449,7 +9449,7 @@ var HoverCardContent = _react.forwardRef.call(void 0,
|
|
|
9449
9449
|
}, ref) => (
|
|
9450
9450
|
// Portalled so an `overflow: hidden` ancestor (a table cell, a card) cannot
|
|
9451
9451
|
// clip it.
|
|
9452
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HoverCardPrimitive.Portal, { container:
|
|
9452
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HoverCardPrimitive.Portal, { container: _chunkS3QXLD4Xcjs.usePortalContainer.call(void 0, ), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9453
9453
|
HoverCardPrimitive.Content,
|
|
9454
9454
|
{
|
|
9455
9455
|
ref,
|
|
@@ -9459,7 +9459,7 @@ var HoverCardContent = _react.forwardRef.call(void 0,
|
|
|
9459
9459
|
collisionPadding,
|
|
9460
9460
|
avoidCollisions: true,
|
|
9461
9461
|
sticky: "always",
|
|
9462
|
-
className:
|
|
9462
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
9463
9463
|
// A height cap with internal scroll is what stops growing content
|
|
9464
9464
|
// from ever exceeding the viewport — which is what forces a flip.
|
|
9465
9465
|
"z-[2147483647] max-h-[min(70vh,560px)] w-64 max-w-[calc(100vw-2rem)] overflow-y-auto overscroll-contain",
|
|
@@ -9525,19 +9525,19 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9525
9525
|
loading = false,
|
|
9526
9526
|
...props
|
|
9527
9527
|
}, ref) => {
|
|
9528
|
-
const isLoading =
|
|
9528
|
+
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
9529
9529
|
const icon = getProviderIcon(provider);
|
|
9530
9530
|
const name = displayName || modelName;
|
|
9531
|
-
const isV2 = useChatAppearance() ===
|
|
9531
|
+
const isV2 = useChatAppearance() === _chunkZRDVFADQcjs.CHAT_APPEARANCE.V2;
|
|
9532
9532
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
9533
9533
|
if (isLoading) {
|
|
9534
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, "aria-hidden": true, className:
|
|
9535
|
-
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: PROVIDER_ICON_BOX_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9536
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9537
|
-
contextWindow != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9534
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, "aria-hidden": true, className: _chunk63A4GZMBcjs.cn.call(void 0, MODEL_DISPLAY_ROW_CLASS, className), ...props, children: [
|
|
9535
|
+
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: PROVIDER_ICON_BOX_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.MediaSkeleton.Icon, { size: "sm" }) }),
|
|
9536
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-24" }),
|
|
9537
|
+
contextWindow != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "ml-auto w-32" })
|
|
9538
9538
|
] });
|
|
9539
9539
|
}
|
|
9540
|
-
const inline = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className:
|
|
9540
|
+
const inline = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, MODEL_DISPLAY_ROW_CLASS, "text-ods-text-secondary", className), ...props, children: [
|
|
9541
9541
|
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: PROVIDER_ICON_BOX_CLASS, children: icon }),
|
|
9542
9542
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-body", children: name }),
|
|
9543
9543
|
contextWindow != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "ml-auto opacity-70 text-h6", children: [
|
|
@@ -9553,7 +9553,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9553
9553
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9554
9554
|
HoverCardContent,
|
|
9555
9555
|
{
|
|
9556
|
-
className:
|
|
9556
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "w-80 p-3", "border-ods-border bg-ods-card text-ods-text-primary"),
|
|
9557
9557
|
align: "end",
|
|
9558
9558
|
sideOffset: 6,
|
|
9559
9559
|
children: [
|
|
@@ -9601,7 +9601,7 @@ function BreakdownRow({
|
|
|
9601
9601
|
isAnswer
|
|
9602
9602
|
}) {
|
|
9603
9603
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between py-1 text-h6", children: [
|
|
9604
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
9604
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "text-ods-text-secondary", isAnswer && "font-medium text-ods-text-primary"), children: label }),
|
|
9605
9605
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "tabular-nums text-ods-text-secondary", children: [
|
|
9606
9606
|
input != null ? formatTokenCount(input) : "\u2014",
|
|
9607
9607
|
" in / ",
|
|
@@ -9657,7 +9657,7 @@ function ChatComposer({
|
|
|
9657
9657
|
}, [entityTypes]);
|
|
9658
9658
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
9659
9659
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9660
|
-
|
|
9660
|
+
_chunkZRDVFADQcjs.ChatInput,
|
|
9661
9661
|
{
|
|
9662
9662
|
ref: inputRef,
|
|
9663
9663
|
onSend,
|
|
@@ -9738,7 +9738,7 @@ function ChatComposer({
|
|
|
9738
9738
|
onRemove: onRemoveContextItem,
|
|
9739
9739
|
resolveIcon: resolveContextIcon,
|
|
9740
9740
|
disabled: sending || locked,
|
|
9741
|
-
className:
|
|
9741
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
9742
9742
|
"border-b border-ods-border bg-ods-bg p-2",
|
|
9743
9743
|
// Only the TOP strip rounds into the card corner.
|
|
9744
9744
|
memory.length === 0 && "rounded-t-md"
|
|
@@ -9777,7 +9777,7 @@ function ChatArchivePage(props) {
|
|
|
9777
9777
|
onLoadMore,
|
|
9778
9778
|
pageSize
|
|
9779
9779
|
} = props;
|
|
9780
|
-
const firstLoad =
|
|
9780
|
+
const firstLoad = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || (isLoading || isFetching) && dialogs.length === 0;
|
|
9781
9781
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9782
9782
|
!props.embedded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9783
9783
|
ChatPanelHeaderMobile,
|
|
@@ -9791,9 +9791,9 @@ function ChatArchivePage(props) {
|
|
|
9791
9791
|
}
|
|
9792
9792
|
),
|
|
9793
9793
|
!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: [
|
|
9794
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9794
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: props.onBack, "aria-label": "Back", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }) }),
|
|
9795
9795
|
/* @__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" }) }),
|
|
9796
|
-
props.onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9796
|
+
props.onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: props.onClose, "aria-label": "Close", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 24 }) })
|
|
9797
9797
|
] }),
|
|
9798
9798
|
/* @__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 ? (
|
|
9799
9799
|
// The first load is the list's own loading state — the SAME grouped/
|
|
@@ -9828,16 +9828,16 @@ function ChatArchivePage(props) {
|
|
|
9828
9828
|
|
|
9829
9829
|
// src/components/chat/utils/execute-navigation.ts
|
|
9830
9830
|
function isForeignOriginHref(href) {
|
|
9831
|
-
return /^https?:\/\//i.test(href) && !
|
|
9831
|
+
return /^https?:\/\//i.test(href) && !_chunkY6MJMPHVcjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
9832
9832
|
}
|
|
9833
9833
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
9834
|
-
const isNewTab = runtime ?
|
|
9834
|
+
const isNewTab = runtime ? _chunkY6MJMPHVcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
9835
9835
|
if (isNewTab) {
|
|
9836
9836
|
if (_optionalChain([runtime, 'optionalAccess', _207 => _207.navigation, 'access', _208 => _208.openExternal])) runtime.navigation.openExternal(href);
|
|
9837
|
-
else window.open(href, "_blank",
|
|
9837
|
+
else window.open(href, "_blank", _chunkGAR2IIU6cjs.NEW_TAB_FEATURES);
|
|
9838
9838
|
return;
|
|
9839
9839
|
}
|
|
9840
|
-
const target = isForeignOriginHref(href) ? href :
|
|
9840
|
+
const target = isForeignOriginHref(href) ? href : _chunkGAR2IIU6cjs.stripSameOriginToPath.call(void 0, href);
|
|
9841
9841
|
if (target.includes("#") && _chunkCNTBGJA7cjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkCNTBGJA7cjs.STICKY_HEADER_OFFSET_PX })) {
|
|
9842
9842
|
return;
|
|
9843
9843
|
}
|
|
@@ -9888,8 +9888,8 @@ function useNavLinkViaRuntime({
|
|
|
9888
9888
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
9889
9889
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
9890
9890
|
const panel = useChatPanel();
|
|
9891
|
-
const resolvedHref =
|
|
9892
|
-
const isNewTab =
|
|
9891
|
+
const resolvedHref = _chunkGAR2IIU6cjs.resolveHrefForRuntime.call(void 0, href, runtime);
|
|
9892
|
+
const isNewTab = _chunkY6MJMPHVcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
9893
9893
|
const onClick = (e) => {
|
|
9894
9894
|
_optionalChain([onClickProp, 'optionalCall', _212 => _212(e)]);
|
|
9895
9895
|
if (e.defaultPrevented) return;
|
|
@@ -9903,7 +9903,7 @@ function useNavLinkViaRuntime({
|
|
|
9903
9903
|
});
|
|
9904
9904
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _213 => _213.closeChat])) panel.closeChat();
|
|
9905
9905
|
};
|
|
9906
|
-
const attrs =
|
|
9906
|
+
const attrs = _chunkY6MJMPHVcjs.newTabAnchorAttrs.call(void 0, isNewTab);
|
|
9907
9907
|
return {
|
|
9908
9908
|
href: resolvedHref,
|
|
9909
9909
|
...attrs,
|
|
@@ -9966,7 +9966,7 @@ function SourceActionButton({
|
|
|
9966
9966
|
const IconComponent = isDisplay ? _lucidereact.FileText : _lucidereact.MessageSquare;
|
|
9967
9967
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: styles.iconSize });
|
|
9968
9968
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9969
|
-
|
|
9969
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
9970
9970
|
{
|
|
9971
9971
|
variant: "transparent",
|
|
9972
9972
|
size: styles.size,
|
|
@@ -10048,8 +10048,8 @@ function UserDisplay({
|
|
|
10048
10048
|
compact = false,
|
|
10049
10049
|
className
|
|
10050
10050
|
}) {
|
|
10051
|
-
const avatarSrc =
|
|
10052
|
-
if (
|
|
10051
|
+
const avatarSrc = _chunkGAR2IIU6cjs.useProxiedImageUrl.call(void 0, avatarUrl);
|
|
10052
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) {
|
|
10053
10053
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10054
10054
|
UserDisplaySkeleton,
|
|
10055
10055
|
{
|
|
@@ -10061,10 +10061,10 @@ function UserDisplay({
|
|
|
10061
10061
|
}
|
|
10062
10062
|
);
|
|
10063
10063
|
}
|
|
10064
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
10065
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10064
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, USER_ROW_CLASS, className), children: [
|
|
10065
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOS7OIC4cjs.SquareAvatar, { src: avatarSrc || void 0, fallback: name, alt: name, sizePx: size, variant: shape }),
|
|
10066
10066
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: USER_TEXT_CLASS, children: [
|
|
10067
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className:
|
|
10067
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk63A4GZMBcjs.cn.call(void 0, "truncate text-ods-text-primary", compact ? "text-h6" : "text-h4"), children: name }),
|
|
10068
10068
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
10069
10069
|
] })
|
|
10070
10070
|
] });
|
|
@@ -10076,11 +10076,11 @@ function UserDisplaySkeleton({
|
|
|
10076
10076
|
subtitle = false,
|
|
10077
10077
|
className
|
|
10078
10078
|
}) {
|
|
10079
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
10080
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10079
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, USER_ROW_CLASS, className), "aria-hidden": true, children: [
|
|
10080
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOS7OIC4cjs.SquareAvatar, { loading: true, sizePx: size, variant: shape }),
|
|
10081
10081
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: USER_TEXT_CLASS, children: [
|
|
10082
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10083
|
-
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10082
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: compact ? "h6" : "h4", className: "w-28" }),
|
|
10083
|
+
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-16" })
|
|
10084
10084
|
] })
|
|
10085
10085
|
] });
|
|
10086
10086
|
}
|
|
@@ -10105,19 +10105,19 @@ function CardHitLayer({
|
|
|
10105
10105
|
...a11y,
|
|
10106
10106
|
onClick,
|
|
10107
10107
|
onPointerDown,
|
|
10108
|
-
className:
|
|
10108
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, HIT_LAYER_BASE, className)
|
|
10109
10109
|
}
|
|
10110
10110
|
);
|
|
10111
10111
|
}
|
|
10112
10112
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10113
|
-
|
|
10113
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
10114
10114
|
{
|
|
10115
10115
|
variant: "card",
|
|
10116
10116
|
type: "button",
|
|
10117
10117
|
...a11y,
|
|
10118
10118
|
onClick,
|
|
10119
10119
|
onPointerDown,
|
|
10120
|
-
className:
|
|
10120
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "absolute inset-0 h-full", className)
|
|
10121
10121
|
}
|
|
10122
10122
|
);
|
|
10123
10123
|
}
|
|
@@ -10223,7 +10223,7 @@ function CardsStrip(props) {
|
|
|
10223
10223
|
className,
|
|
10224
10224
|
skeleton
|
|
10225
10225
|
} = props;
|
|
10226
|
-
const inScope =
|
|
10226
|
+
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
10227
10227
|
const childrenMode = props.renderCard === void 0;
|
|
10228
10228
|
const childItems = _react.useMemo.call(void 0,
|
|
10229
10229
|
() => childrenMode ? _react2.default.Children.toArray(props.children) : EMPTY_CHILDREN,
|
|
@@ -10516,10 +10516,10 @@ function CardsStrip(props) {
|
|
|
10516
10516
|
}
|
|
10517
10517
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ManagedCell, { item, ctx, cardWidthMobile, cardWidthDesktop });
|
|
10518
10518
|
};
|
|
10519
|
-
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10519
|
+
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkGAR2IIU6cjs.SECTION_HEADING_CLASS} break-words`, children: _chunkGAR2IIU6cjs.accentSentenceMarks.call(void 0, title) });
|
|
10520
10520
|
if (items.length === 0) {
|
|
10521
10521
|
if (!inScope || !skeleton) return null;
|
|
10522
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
10522
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className), children: [
|
|
10523
10523
|
heading,
|
|
10524
10524
|
headerSlot,
|
|
10525
10525
|
/* @__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(
|
|
@@ -10546,7 +10546,7 @@ function CardsStrip(props) {
|
|
|
10546
10546
|
wrapperRef.current = node;
|
|
10547
10547
|
_optionalChain([rootRef, 'optionalCall', _235 => _235(node)]);
|
|
10548
10548
|
},
|
|
10549
|
-
className:
|
|
10549
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className),
|
|
10550
10550
|
children: [
|
|
10551
10551
|
heading,
|
|
10552
10552
|
headerSlot,
|
|
@@ -10599,7 +10599,7 @@ function CardsStrip(props) {
|
|
|
10599
10599
|
),
|
|
10600
10600
|
showChevrons && overflows && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10601
10601
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10602
|
-
|
|
10602
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
10603
10603
|
{
|
|
10604
10604
|
type: "button",
|
|
10605
10605
|
variant: "outline",
|
|
@@ -10612,7 +10612,7 @@ function CardsStrip(props) {
|
|
|
10612
10612
|
}
|
|
10613
10613
|
),
|
|
10614
10614
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10615
|
-
|
|
10615
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
10616
10616
|
{
|
|
10617
10617
|
type: "button",
|
|
10618
10618
|
variant: "outline",
|
|
@@ -10706,7 +10706,7 @@ var VIDEO_BITES_SKELETON_COUNT = Math.ceil(
|
|
|
10706
10706
|
);
|
|
10707
10707
|
function VideoBitesStrip({
|
|
10708
10708
|
bites,
|
|
10709
|
-
title =
|
|
10709
|
+
title = _chunkY6MJMPHVcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10710
10710
|
showTitle = true,
|
|
10711
10711
|
filterPublished = true,
|
|
10712
10712
|
profile = null,
|
|
@@ -10719,16 +10719,16 @@ function VideoBitesStrip({
|
|
|
10719
10719
|
cardHeightMobile = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX,
|
|
10720
10720
|
showChevrons = true,
|
|
10721
10721
|
onBiteNavigate,
|
|
10722
|
-
sortComparator =
|
|
10722
|
+
sortComparator = _chunkY6MJMPHVcjs.sortBitesByCreatedAtDesc,
|
|
10723
10723
|
skeletonCount,
|
|
10724
10724
|
className
|
|
10725
10725
|
}) {
|
|
10726
|
-
const inScope =
|
|
10726
|
+
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
10727
10727
|
const items = _react.useMemo.call(void 0, () => {
|
|
10728
10728
|
const filtered = filterPublished ? bites.filter((b) => b.published) : [...bites];
|
|
10729
10729
|
return filtered.sort(sortComparator);
|
|
10730
10730
|
}, [bites, filterPublished, sortComparator]);
|
|
10731
|
-
const warmup =
|
|
10731
|
+
const warmup = _chunk6CZVQ72Ccjs.useVideoWarmup.call(void 0, { videoUrl: inScope ? null : _optionalChain([items, 'access', _236 => _236[0], 'optionalAccess', _237 => _237.url]) || null });
|
|
10732
10732
|
if (inScope) {
|
|
10733
10733
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10734
10734
|
VideoBitesStripSkeleton,
|
|
@@ -10801,14 +10801,14 @@ function VideoBiteCardSkeleton({ aspect = "9:16", height, heightMobile, classNam
|
|
|
10801
10801
|
"div",
|
|
10802
10802
|
{
|
|
10803
10803
|
"aria-hidden": true,
|
|
10804
|
-
className:
|
|
10804
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, BITE_CARD_FRAME_CLASS, height !== void 0 ? "shrink-0" : "w-full", className),
|
|
10805
10805
|
style: height !== void 0 ? { maxWidth: STRIP_CELL_MAX_WIDTH } : void 0,
|
|
10806
10806
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10807
10807
|
"div",
|
|
10808
10808
|
{
|
|
10809
|
-
className:
|
|
10809
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, BITE_MEDIA_CLASS, height !== void 0 && BITE_MEDIA_FIXED_HEIGHT_CLASS),
|
|
10810
10810
|
style: biteMediaStyle(cssAspect, height, heightMobile),
|
|
10811
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10811
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "absolute inset-0 h-full rounded-none" })
|
|
10812
10812
|
}
|
|
10813
10813
|
)
|
|
10814
10814
|
}
|
|
@@ -10817,7 +10817,7 @@ function VideoBiteCardSkeleton({ aspect = "9:16", height, heightMobile, classNam
|
|
|
10817
10817
|
function VideoBitesStripSkeleton({
|
|
10818
10818
|
count = VIDEO_BITES_SKELETON_COUNT,
|
|
10819
10819
|
aspect = "9:16",
|
|
10820
|
-
title =
|
|
10820
|
+
title = _chunkY6MJMPHVcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10821
10821
|
showTitle = true,
|
|
10822
10822
|
headerSlot,
|
|
10823
10823
|
cardHeightDesktop = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX,
|
|
@@ -10909,14 +10909,14 @@ function VideoBiteCard({
|
|
|
10909
10909
|
ref: titleInputRef,
|
|
10910
10910
|
onBlur: (e) => _optionalChain([onTitleCommit, 'optionalCall', _242 => _242(e.target.value)]),
|
|
10911
10911
|
onClick: (e) => e.stopPropagation(),
|
|
10912
|
-
className:
|
|
10912
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
10913
10913
|
titleClass,
|
|
10914
10914
|
"max-h-10 w-full resize-none overflow-hidden bg-transparent outline-none",
|
|
10915
10915
|
"border-b border-transparent placeholder:text-ods-text-secondary focus:border-ods-border"
|
|
10916
10916
|
)
|
|
10917
10917
|
}
|
|
10918
10918
|
)
|
|
10919
|
-
) : bite.title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className:
|
|
10919
|
+
) : bite.title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk63A4GZMBcjs.cn.call(void 0, titleClass, "line-clamp-2"), children: bite.title }),
|
|
10920
10920
|
(profile || hasTarget) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
10921
10921
|
profile && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10922
10922
|
UserDisplay,
|
|
@@ -10933,7 +10933,7 @@ function VideoBiteCard({
|
|
|
10933
10933
|
hasTarget && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4TUSPDNScjs.Chevron02RightIcon, { className: "ml-auto h-5 w-5 shrink-0 text-ods-text-primary" })
|
|
10934
10934
|
] })
|
|
10935
10935
|
] });
|
|
10936
|
-
const overlayClass =
|
|
10936
|
+
const overlayClass = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
10937
10937
|
"absolute inset-x-0 bottom-0 gap-2 border border-ods-border bg-black/75 p-3 shadow-2xl",
|
|
10938
10938
|
"flex flex-col transition-opacity duration-200",
|
|
10939
10939
|
isActive ? "opacity-100" : "opacity-0 group-focus-within/card:opacity-100 group-hover/card:opacity-100",
|
|
@@ -10941,15 +10941,15 @@ function VideoBiteCard({
|
|
|
10941
10941
|
// resting card / player controls.
|
|
10942
10942
|
isActive ? "pointer-events-auto" : "pointer-events-none"
|
|
10943
10943
|
);
|
|
10944
|
-
const hitLayerClass =
|
|
10944
|
+
const hitLayerClass = _chunk63A4GZMBcjs.cn.call(void 0, "z-[5]", isTouch && !isActive ? "pointer-events-none" : "pointer-events-auto");
|
|
10945
10945
|
const media = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10946
10946
|
"div",
|
|
10947
10947
|
{
|
|
10948
|
-
className:
|
|
10948
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, BITE_MEDIA_CLASS, height !== void 0 && BITE_MEDIA_FIXED_HEIGHT_CLASS),
|
|
10949
10949
|
style: biteMediaStyle(cssAspect, height, heightMobile),
|
|
10950
10950
|
children: [
|
|
10951
10951
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10952
|
-
|
|
10952
|
+
_chunkY6MJMPHVcjs.VideoHoverPreviewSurface,
|
|
10953
10953
|
{
|
|
10954
10954
|
url: bite.url,
|
|
10955
10955
|
posterUrl: bite.thumbnail_url,
|
|
@@ -10975,7 +10975,7 @@ function VideoBiteCard({
|
|
|
10975
10975
|
decorative: isClone
|
|
10976
10976
|
}
|
|
10977
10977
|
),
|
|
10978
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
10978
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, overlayClass, "pointer-events-none"), children: overlayContent })
|
|
10979
10979
|
] })
|
|
10980
10980
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: overlayClass, children: overlayContent })
|
|
10981
10981
|
]
|
|
@@ -10987,7 +10987,7 @@ function VideoBiteCard({
|
|
|
10987
10987
|
ref: (node) => _optionalChain([rootRef, 'optionalCall', _243 => _243(node)]),
|
|
10988
10988
|
"aria-hidden": isClone || void 0,
|
|
10989
10989
|
"data-strip-card-key": key,
|
|
10990
|
-
className:
|
|
10990
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "group/card", BITE_CARD_FRAME_CLASS, height !== void 0 ? "shrink-0" : "w-full", className),
|
|
10991
10991
|
style: height !== void 0 ? { maxWidth: STRIP_CELL_MAX_WIDTH } : void 0,
|
|
10992
10992
|
onPointerEnter: handlePointerEnter,
|
|
10993
10993
|
onPointerLeave: handlePointerLeave,
|
|
@@ -11021,7 +11021,7 @@ function EntityVideoSection({
|
|
|
11021
11021
|
title = "Video",
|
|
11022
11022
|
videoSummary,
|
|
11023
11023
|
videoBites,
|
|
11024
|
-
bitesTitle =
|
|
11024
|
+
bitesTitle = _chunkY6MJMPHVcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
11025
11025
|
filterPublishedBites = true,
|
|
11026
11026
|
bitesProfile = null,
|
|
11027
11027
|
bitesHref,
|
|
@@ -11036,7 +11036,7 @@ function EntityVideoSection({
|
|
|
11036
11036
|
skeletonTabs = false
|
|
11037
11037
|
}) {
|
|
11038
11038
|
const captions = useCaptions();
|
|
11039
|
-
const loading =
|
|
11039
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
11040
11040
|
const hasFullVideo = !!(youtubeUrl || mainVideoUrl);
|
|
11041
11041
|
const hasHighlight = !!highlightVideoUrl;
|
|
11042
11042
|
const hasVideo = hasFullVideo || hasHighlight;
|
|
@@ -11056,7 +11056,7 @@ function EntityVideoSection({
|
|
|
11056
11056
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
11057
11057
|
] }),
|
|
11058
11058
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11059
|
-
|
|
11059
|
+
_chunkY6MJMPHVcjs.Video,
|
|
11060
11060
|
{
|
|
11061
11061
|
kind: fullVideoKind,
|
|
11062
11062
|
url: fullVideoUrl,
|
|
@@ -11068,7 +11068,7 @@ function EntityVideoSection({
|
|
|
11068
11068
|
}
|
|
11069
11069
|
) }),
|
|
11070
11070
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11071
|
-
|
|
11071
|
+
_chunkY6MJMPHVcjs.Video,
|
|
11072
11072
|
{
|
|
11073
11073
|
url: highlightVideoUrl,
|
|
11074
11074
|
poster: highlightVideoThumbnail,
|
|
@@ -11077,7 +11077,7 @@ function EntityVideoSection({
|
|
|
11077
11077
|
}
|
|
11078
11078
|
) })
|
|
11079
11079
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11080
|
-
|
|
11080
|
+
_chunkY6MJMPHVcjs.Video,
|
|
11081
11081
|
{
|
|
11082
11082
|
kind: fullVideoKind,
|
|
11083
11083
|
url: fullVideoUrl,
|
|
@@ -11088,7 +11088,7 @@ function EntityVideoSection({
|
|
|
11088
11088
|
priority
|
|
11089
11089
|
}
|
|
11090
11090
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11091
|
-
|
|
11091
|
+
_chunkY6MJMPHVcjs.Video,
|
|
11092
11092
|
{
|
|
11093
11093
|
url: highlightVideoUrl,
|
|
11094
11094
|
poster: highlightVideoThumbnail,
|
|
@@ -11098,7 +11098,7 @@ function EntityVideoSection({
|
|
|
11098
11098
|
}
|
|
11099
11099
|
) : null),
|
|
11100
11100
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
11101
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
11101
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkGAR2IIU6cjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
11102
11102
|
/* @__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 }) })
|
|
11103
11103
|
] }),
|
|
11104
11104
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11117,13 +11117,13 @@ function EntityVideoSection({
|
|
|
11117
11117
|
] });
|
|
11118
11118
|
}
|
|
11119
11119
|
function EntityVideoSectionSkeleton({ tabs = false, className }) {
|
|
11120
|
-
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11121
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tabs, { defaultValue: "full-video", className:
|
|
11120
|
+
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.Video, { loading: true, url: "", layout: "centered", className });
|
|
11121
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tabs, { defaultValue: "full-video", className: _chunk63A4GZMBcjs.cn.call(void 0, "w-full", className), "aria-hidden": true, inert: true, children: [
|
|
11122
11122
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TabsList, { className: VIDEO_TAB_LIST_CLASS, children: [
|
|
11123
11123
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "full-video", className: VIDEO_TAB_TRIGGER_CLASS, children: FULL_VIDEO_TAB_LABEL }),
|
|
11124
11124
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
11125
11125
|
] }),
|
|
11126
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11126
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.Video, { loading: true, url: "", layout: "centered" }) })
|
|
11127
11127
|
] });
|
|
11128
11128
|
}
|
|
11129
11129
|
|
|
@@ -11170,38 +11170,38 @@ function designDocPeople(doc) {
|
|
|
11170
11170
|
return people;
|
|
11171
11171
|
}
|
|
11172
11172
|
function designDocMetaLine(doc) {
|
|
11173
|
-
return [_optionalChain([doc, 'access', _248 => _248.author, 'optionalAccess', _249 => _249.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
11173
|
+
return [_optionalChain([doc, 'access', _248 => _248.author, 'optionalAccess', _249 => _249.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkGAR2IIU6cjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
11174
11174
|
}
|
|
11175
11175
|
var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
|
|
11176
11176
|
var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
|
|
11177
11177
|
var DESIGN_DOC_CARD_HEADING = "flex min-w-0 flex-1 flex-col";
|
|
11178
|
-
var DESIGN_DOC_CARD_TITLE_ROW = `flex items-center text-h3 ${
|
|
11179
|
-
var DESIGN_DOC_CARD_META_ROW = `flex items-center text-h5 ${
|
|
11180
|
-
var DESIGN_DOC_CARD_SUMMARY_ROW = `flex items-center text-h4 ${
|
|
11178
|
+
var DESIGN_DOC_CARD_TITLE_ROW = `flex items-center text-h3 ${_chunk3TOWCFIKcjs.TEXT_LINES_MIN[2]}`;
|
|
11179
|
+
var DESIGN_DOC_CARD_META_ROW = `flex items-center text-h5 ${_chunk3TOWCFIKcjs.TEXT_LINES_MIN[1]}`;
|
|
11180
|
+
var DESIGN_DOC_CARD_SUMMARY_ROW = `flex items-center text-h4 ${_chunk3TOWCFIKcjs.TEXT_LINES_MIN[3]}`;
|
|
11181
11181
|
var DESIGN_DOC_CARD_FOOTER = "flex w-full items-center justify-between gap-2";
|
|
11182
11182
|
function DesignDocCardSkeleton({ className } = {}) {
|
|
11183
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11183
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunkY6MJMPHVcjs.CONTENT_CARD_SKELETON_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className), "aria-hidden": true, children: [
|
|
11184
11184
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
11185
11185
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADING, children: [
|
|
11186
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11187
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11186
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h3", lines: 2, className: "w-3/4" }) }),
|
|
11187
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h5", className: "w-1/3" }) })
|
|
11188
11188
|
] }),
|
|
11189
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11189
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.StatusBadge, { loading: true, text: "", variant: "button", className: "hidden md:inline-flex" })
|
|
11190
11190
|
] }),
|
|
11191
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11192
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11191
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.StatusBadge, { loading: true, text: "", variant: "button" }) }),
|
|
11192
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", lines: 3, className: "w-full" }) }),
|
|
11193
11193
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
11194
11194
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
11195
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11196
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11195
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" }),
|
|
11196
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk25HBH4J6cjs.AvatarStack, { loading: true, people: [], max: 1, size: "xs", className: "shrink-0" })
|
|
11197
11197
|
] })
|
|
11198
11198
|
] });
|
|
11199
11199
|
}
|
|
11200
11200
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
11201
11201
|
const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
|
|
11202
11202
|
const people = designDocPeople(doc);
|
|
11203
|
-
const link =
|
|
11204
|
-
if (
|
|
11203
|
+
const link = _chunkY6MJMPHVcjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
11204
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocCardSkeleton, { className });
|
|
11205
11205
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11206
11206
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
11207
11207
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADING, children: [
|
|
@@ -11209,7 +11209,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
11209
11209
|
/* @__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) }) })
|
|
11210
11210
|
] }),
|
|
11211
11211
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11212
|
-
|
|
11212
|
+
_chunkY6MJMPHVcjs.StatusBadge,
|
|
11213
11213
|
{
|
|
11214
11214
|
text: readiness.label,
|
|
11215
11215
|
colorScheme: readiness.scheme,
|
|
@@ -11219,15 +11219,15 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
11219
11219
|
}
|
|
11220
11220
|
)
|
|
11221
11221
|
] }),
|
|
11222
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11222
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
|
|
11223
11223
|
/* @__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 || "" }) }),
|
|
11224
11224
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
11225
11225
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
11226
11226
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: formatCompletionLabelWithBlockers(doc.completion) }),
|
|
11227
|
-
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11227
|
+
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk25HBH4J6cjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
11228
11228
|
] })
|
|
11229
11229
|
] });
|
|
11230
|
-
const outer =
|
|
11230
|
+
const outer = _chunk63A4GZMBcjs.cn.call(void 0, _chunkY6MJMPHVcjs.CONTENT_CARD_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className);
|
|
11231
11231
|
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 });
|
|
11232
11232
|
}
|
|
11233
11233
|
|
|
@@ -11332,10 +11332,10 @@ function ReviewStateBadge({ state, className = "" }) {
|
|
|
11332
11332
|
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 });
|
|
11333
11333
|
}
|
|
11334
11334
|
function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
|
|
11335
|
-
if (
|
|
11335
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GitHubActivityCardSkeleton, { variant, className });
|
|
11336
11336
|
const kind = _nullishCoalesce(item.kind, () => ( "commit"));
|
|
11337
11337
|
const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
|
|
11338
|
-
const dateText =
|
|
11338
|
+
const dateText = _chunkBOS7OIC4cjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
11339
11339
|
const idLabel = formatActivityId(item.id, kind);
|
|
11340
11340
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
11341
11341
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
@@ -11369,26 +11369,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11369
11369
|
metaParts.push(
|
|
11370
11370
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
11371
11371
|
);
|
|
11372
|
-
const href =
|
|
11372
|
+
const href = _chunkY6MJMPHVcjs.safeHref.call(void 0, item.url);
|
|
11373
11373
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11374
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11375
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11376
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11374
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
11375
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11376
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
11377
11377
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
11378
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11378
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
11379
11379
|
] }),
|
|
11380
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11380
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
11381
11381
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
11382
11382
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
11383
11383
|
] }, i)) }) }),
|
|
11384
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11384
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_SUMMARY, children: _chunkY6MJMPHVcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11385
11385
|
] }),
|
|
11386
11386
|
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
|
|
11387
11387
|
] });
|
|
11388
11388
|
if (anchorProps) {
|
|
11389
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11389
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
11390
11390
|
}
|
|
11391
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
11391
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
11392
11392
|
}
|
|
11393
11393
|
function GitHubActivityCardSkeleton({
|
|
11394
11394
|
variant = "compact",
|
|
@@ -11396,18 +11396,18 @@ function GitHubActivityCardSkeleton({
|
|
|
11396
11396
|
}) {
|
|
11397
11397
|
if (variant === "row") {
|
|
11398
11398
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11399
|
-
|
|
11399
|
+
_chunkY6MJMPHVcjs.ActivityRowSkeleton,
|
|
11400
11400
|
{
|
|
11401
11401
|
lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-28 shrink-0 items-center gap-2", children: [
|
|
11402
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11403
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11402
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 rounded" }),
|
|
11403
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-3 w-16 rounded" })
|
|
11404
11404
|
] }),
|
|
11405
11405
|
trailingWidths: ["w-40", "w-20"],
|
|
11406
11406
|
className
|
|
11407
11407
|
}
|
|
11408
11408
|
);
|
|
11409
11409
|
}
|
|
11410
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11410
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.CompactCardSkeleton, { titleWidth: "w-2/3", rows: [{ width: "w-1/2" }, {}], trailingIcon: true, className });
|
|
11411
11411
|
}
|
|
11412
11412
|
|
|
11413
11413
|
// src/utils/url-fix.ts
|
|
@@ -11463,9 +11463,9 @@ function VendorIcon({
|
|
|
11463
11463
|
...props
|
|
11464
11464
|
}) {
|
|
11465
11465
|
const logoUrl = getVendorLogo(vendor);
|
|
11466
|
-
const logoSrc =
|
|
11466
|
+
const logoSrc = _chunkGAR2IIU6cjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
|
|
11467
11467
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11468
|
-
|
|
11468
|
+
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
11469
11469
|
{
|
|
11470
11470
|
src: logoUrl ? logoSrc || void 0 : void 0,
|
|
11471
11471
|
alt: `${vendor.title} logo`,
|
|
@@ -11475,12 +11475,12 @@ function VendorIcon({
|
|
|
11475
11475
|
padded: showBackground,
|
|
11476
11476
|
loading,
|
|
11477
11477
|
initialsClassName: "uppercase text-h6",
|
|
11478
|
-
className:
|
|
11478
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
11479
11479
|
"rounded-lg",
|
|
11480
11480
|
showBackground ? BACKGROUND_CLASS[backgroundStyle] : "border-0 bg-transparent",
|
|
11481
11481
|
className
|
|
11482
11482
|
),
|
|
11483
|
-
...
|
|
11483
|
+
..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props)
|
|
11484
11484
|
}
|
|
11485
11485
|
);
|
|
11486
11486
|
}
|
|
@@ -11497,8 +11497,8 @@ function useChatCardItem(type, id) {
|
|
|
11497
11497
|
const res = await _chunkGI3MMBP3cjs.embedAuthedFetch.call(void 0, url);
|
|
11498
11498
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
11499
11499
|
const data = await res.json();
|
|
11500
|
-
const items =
|
|
11501
|
-
const match = items.find((it) =>
|
|
11500
|
+
const items = _chunkGAR2IIU6cjs.extractCardItems.call(void 0, type, data);
|
|
11501
|
+
const match = items.find((it) => _chunkGAR2IIU6cjs.extractItemId.call(void 0, type, it) === id);
|
|
11502
11502
|
return _nullishCoalesce(match, () => ( null));
|
|
11503
11503
|
},
|
|
11504
11504
|
enabled: !!url && id.length > 0,
|
|
@@ -11540,15 +11540,15 @@ var TRAILING_CELL_LAYOUT = "w-[56px] md:w-[68px]";
|
|
|
11540
11540
|
function CardMedia({ imageSrc, imageAlt, icon }) {
|
|
11541
11541
|
if (imageSrc) {
|
|
11542
11542
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
|
|
11543
|
-
/* @__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:
|
|
11543
|
+
/* @__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: _chunkBOS7OIC4cjs.personInitials.call(void 0, imageAlt) || "?" }),
|
|
11544
11544
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11545
|
-
|
|
11545
|
+
_chunk3V5JWG27cjs.next_image_default,
|
|
11546
11546
|
{
|
|
11547
11547
|
src: imageSrc,
|
|
11548
11548
|
alt: imageAlt || "",
|
|
11549
11549
|
className: "relative block size-10 rounded-sm border border-ods-border object-cover",
|
|
11550
|
-
width:
|
|
11551
|
-
height:
|
|
11550
|
+
width: _chunk3TOWCFIKcjs.AVATAR_SIZE_PX.md,
|
|
11551
|
+
height: _chunk3TOWCFIKcjs.AVATAR_SIZE_PX.md,
|
|
11552
11552
|
unoptimized: true,
|
|
11553
11553
|
onError: (e) => {
|
|
11554
11554
|
const img = e.currentTarget;
|
|
@@ -11567,17 +11567,17 @@ function MingoInfoCardSkeleton({ className }) {
|
|
|
11567
11567
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11568
11568
|
"span",
|
|
11569
11569
|
{
|
|
11570
|
-
className:
|
|
11570
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
11571
11571
|
"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)]",
|
|
11572
11572
|
className
|
|
11573
11573
|
),
|
|
11574
11574
|
children: [
|
|
11575
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11575
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { as: "span", className: "block size-10 shrink-0 rounded-md border border-ods-border" }),
|
|
11576
11576
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-1 flex-col justify-center gap-1.5", children: [
|
|
11577
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11578
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11577
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { as: "span", className: "block h-4 w-1/2 rounded" }),
|
|
11578
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { as: "span", className: "block h-3 w-3/4 rounded" })
|
|
11579
11579
|
] }),
|
|
11580
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11580
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { as: "span", className: "block h-5 w-16 shrink-0 rounded" })
|
|
11581
11581
|
]
|
|
11582
11582
|
}
|
|
11583
11583
|
);
|
|
@@ -11596,7 +11596,7 @@ function MingoInfoCard({
|
|
|
11596
11596
|
loading: loadingProp = false,
|
|
11597
11597
|
className
|
|
11598
11598
|
}) {
|
|
11599
|
-
const loading =
|
|
11599
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
11600
11600
|
const hasMedia = !!imageSrc || !!icon;
|
|
11601
11601
|
const action = _react.useContext.call(void 0, MingoInfoCardActionContext);
|
|
11602
11602
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, { className });
|
|
@@ -11612,24 +11612,24 @@ function MingoInfoCard({
|
|
|
11612
11612
|
status ? (
|
|
11613
11613
|
// Reuse the shared Tag palette (single source of truth for colours)
|
|
11614
11614
|
// without rendering Tag's `<div>` — span-only for `<p>` validity.
|
|
11615
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11615
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunkBOS7OIC4cjs.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 }) })
|
|
11616
11616
|
) : null
|
|
11617
11617
|
] });
|
|
11618
|
-
const contentClass =
|
|
11618
|
+
const contentClass = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
11619
11619
|
"flex min-w-0 flex-1 items-center gap-[var(--spacing-system-s)] overflow-hidden p-[var(--spacing-system-s)] text-left",
|
|
11620
11620
|
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"
|
|
11621
11621
|
);
|
|
11622
11622
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11623
11623
|
"span",
|
|
11624
11624
|
{
|
|
11625
|
-
className:
|
|
11625
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
11626
11626
|
"flex w-full items-center divide-x divide-ods-border overflow-hidden rounded-md border border-ods-border bg-ods-card",
|
|
11627
11627
|
className
|
|
11628
11628
|
),
|
|
11629
11629
|
children: [
|
|
11630
|
-
isAnchor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className:
|
|
11630
|
+
isAnchor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: _chunk63A4GZMBcjs.cn.call(void 0, contentClass, "no-underline"), children: content }) : onClick ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.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 }),
|
|
11631
11631
|
action && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11632
|
-
|
|
11632
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
11633
11633
|
{
|
|
11634
11634
|
variant: "cell",
|
|
11635
11635
|
type: "button",
|
|
@@ -11640,12 +11640,12 @@ function MingoInfoCard({
|
|
|
11640
11640
|
}
|
|
11641
11641
|
),
|
|
11642
11642
|
hasMenu && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11643
|
-
|
|
11643
|
+
_chunk2XLPRW7Vcjs.ActionsMenuDropdown,
|
|
11644
11644
|
{
|
|
11645
11645
|
groups: menuGroups,
|
|
11646
11646
|
triggerAriaLabel: menuAriaLabel,
|
|
11647
11647
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
11648
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11648
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", type: "button", "aria-label": menuAriaLabel, className: TRAILING_CELL_LAYOUT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 24 }) })
|
|
11649
11649
|
}
|
|
11650
11650
|
)
|
|
11651
11651
|
]
|
|
@@ -11704,7 +11704,7 @@ function resolveFetchedCardHref({
|
|
|
11704
11704
|
composeContentUrl
|
|
11705
11705
|
}) {
|
|
11706
11706
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
11707
|
-
const canonicalType =
|
|
11707
|
+
const canonicalType = _chunkGAR2IIU6cjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
11708
11708
|
return composeContentUrl({
|
|
11709
11709
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
11710
11710
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -11734,7 +11734,7 @@ function sourceRowCtxFromRuntime(runtime, surface = {}) {
|
|
|
11734
11734
|
}
|
|
11735
11735
|
function pickSourceIcon(sourceRepo, documentType) {
|
|
11736
11736
|
const iconName = sourceRepo ? getSourceIconName(sourceRepo) : void 0;
|
|
11737
|
-
const icon = iconName ?
|
|
11737
|
+
const icon = iconName ? _chunkQOAA7ZHBcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }) : _lucidereact.FileText;
|
|
11738
11738
|
const iconLabel = _nullishCoalesce(documentType, () => ( "Source"));
|
|
11739
11739
|
return { icon, iconLabel };
|
|
11740
11740
|
}
|
|
@@ -11754,16 +11754,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11754
11754
|
if (docTarget) {
|
|
11755
11755
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
11756
11756
|
const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
11757
|
-
href = _nullishCoalesce(
|
|
11757
|
+
href = _nullishCoalesce(_chunkY6MJMPHVcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11758
11758
|
targetPlatform = docTarget.platform;
|
|
11759
11759
|
} else if (ctx.chipBasePlatform) {
|
|
11760
11760
|
const base = `${getPlatformUrl(ctx.chipBasePlatform)}/knowledge-base/`;
|
|
11761
|
-
href = _nullishCoalesce(
|
|
11761
|
+
href = _nullishCoalesce(_chunkY6MJMPHVcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11762
11762
|
targetPlatform = ctx.chipBasePlatform;
|
|
11763
11763
|
} else if (ctx.baseRoute) {
|
|
11764
11764
|
const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
|
|
11765
11765
|
const absolute = new URL(safePath, synthetic).toString();
|
|
11766
|
-
href = _nullishCoalesce(
|
|
11766
|
+
href = _nullishCoalesce(_chunkY6MJMPHVcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
|
|
11767
11767
|
targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
|
|
11768
11768
|
}
|
|
11769
11769
|
}
|
|
@@ -11772,15 +11772,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11772
11772
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
11773
11773
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
11774
11774
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
11775
|
-
type:
|
|
11775
|
+
type: _chunkGAR2IIU6cjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
11776
11776
|
identifier: idValue,
|
|
11777
11777
|
externalUrl: row.externalUrl,
|
|
11778
11778
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
11779
11779
|
});
|
|
11780
|
-
href = composed.href ? _nullishCoalesce(
|
|
11780
|
+
href = composed.href ? _nullishCoalesce(_chunkY6MJMPHVcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
11781
11781
|
targetPlatform = composed.targetPlatform;
|
|
11782
11782
|
} else if (row.externalUrl) {
|
|
11783
|
-
href = _nullishCoalesce(
|
|
11783
|
+
href = _nullishCoalesce(_chunkY6MJMPHVcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
11784
11784
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
11785
11785
|
}
|
|
11786
11786
|
const documentType = row.documentType;
|
|
@@ -11847,7 +11847,7 @@ function resolveCardDestination({
|
|
|
11847
11847
|
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _260 => _260.fallbackHref, 'optionalCall', _261 => _261(item)]), () => ( null)),
|
|
11848
11848
|
allowComposed: !entry.noComposedHref
|
|
11849
11849
|
});
|
|
11850
|
-
const url = choice ? _nullishCoalesce(
|
|
11850
|
+
const url = choice ? _nullishCoalesce(_chunkY6MJMPHVcjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
11851
11851
|
if (choice && url) {
|
|
11852
11852
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
11853
11853
|
}
|
|
@@ -11860,11 +11860,11 @@ function resolveCardDestination({
|
|
|
11860
11860
|
|
|
11861
11861
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
11862
11862
|
const label = entityLabel || "Item";
|
|
11863
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
11864
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11865
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11866
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11867
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11863
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11864
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
11865
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11866
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
11867
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
11868
11868
|
label,
|
|
11869
11869
|
" deleted",
|
|
11870
11870
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -11910,7 +11910,7 @@ function GitHubChatCard({
|
|
|
11910
11910
|
const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
|
|
11911
11911
|
const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
|
|
11912
11912
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
11913
|
-
const dateText =
|
|
11913
|
+
const dateText = _chunkBOS7OIC4cjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
|
|
11914
11914
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
11915
11915
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11916
11916
|
MingoInfoCard,
|
|
@@ -11919,7 +11919,7 @@ function GitHubChatCard({
|
|
|
11919
11919
|
description,
|
|
11920
11920
|
icon: githubKindIcon(kind),
|
|
11921
11921
|
status,
|
|
11922
|
-
anchorProps:
|
|
11922
|
+
anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11923
11923
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11924
11924
|
menuAriaLabel: "Activity actions"
|
|
11925
11925
|
}
|
|
@@ -12066,7 +12066,7 @@ function HubspotTicketChatCard({
|
|
|
12066
12066
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12067
12067
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
12068
12068
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
12069
|
-
anchorProps:
|
|
12069
|
+
anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12070
12070
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
12071
12071
|
label: "Open Ticket Details",
|
|
12072
12072
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -12089,7 +12089,7 @@ function FaqChatCard({
|
|
|
12089
12089
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12090
12090
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
12091
12091
|
status: { label: statusLabel, variant: "grey" },
|
|
12092
|
-
anchorProps:
|
|
12092
|
+
anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12093
12093
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12094
12094
|
menuAriaLabel: "FAQ actions"
|
|
12095
12095
|
}
|
|
@@ -12109,7 +12109,7 @@ function SlackChatCard({
|
|
|
12109
12109
|
title,
|
|
12110
12110
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12111
12111
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
12112
|
-
anchorProps:
|
|
12112
|
+
anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12113
12113
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12114
12114
|
menuAriaLabel: "Message actions"
|
|
12115
12115
|
}
|
|
@@ -12127,7 +12127,7 @@ function GlyphChatCard({
|
|
|
12127
12127
|
title: chatRef.title,
|
|
12128
12128
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12129
12129
|
icon,
|
|
12130
|
-
anchorProps:
|
|
12130
|
+
anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12131
12131
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12132
12132
|
menuAriaLabel: "Card actions"
|
|
12133
12133
|
}
|
|
@@ -12145,20 +12145,20 @@ function TrustCenterChatCard({
|
|
|
12145
12145
|
}) {
|
|
12146
12146
|
const raw2 = _optionalChain([item, 'optionalAccess', _285 => _285.frameworks]);
|
|
12147
12147
|
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
12148
|
-
const summary =
|
|
12148
|
+
const summary = _chunkGAR2IIU6cjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
12149
12149
|
const leadFramework = frameworks[0];
|
|
12150
12150
|
const lead = leadFramework ? {
|
|
12151
|
-
label:
|
|
12152
|
-
color:
|
|
12151
|
+
label: _chunkGAR2IIU6cjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
12152
|
+
color: _chunkGAR2IIU6cjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
12153
12153
|
} : void 0;
|
|
12154
12154
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12155
12155
|
MingoInfoCard,
|
|
12156
12156
|
{
|
|
12157
|
-
title:
|
|
12158
|
-
description: summary ||
|
|
12157
|
+
title: _chunkGAR2IIU6cjs.TRUST_CENTER_TITLE,
|
|
12158
|
+
description: summary || _chunkGAR2IIU6cjs.TRUST_CENTER_TAGLINE,
|
|
12159
12159
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
12160
12160
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
12161
|
-
anchorProps:
|
|
12161
|
+
anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12162
12162
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
12163
12163
|
label: "View trust center",
|
|
12164
12164
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -12180,7 +12180,7 @@ function DataRoomDocChatCard({
|
|
|
12180
12180
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12181
12181
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12182
12182
|
status: { label: badgeText, variant: "grey" },
|
|
12183
|
-
anchorProps:
|
|
12183
|
+
anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12184
12184
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12185
12185
|
menuAriaLabel: "Document actions"
|
|
12186
12186
|
}
|
|
@@ -12199,7 +12199,7 @@ function GenericFinancialChatCard({
|
|
|
12199
12199
|
title: chatRef.title,
|
|
12200
12200
|
description: subtitle,
|
|
12201
12201
|
icon,
|
|
12202
|
-
anchorProps:
|
|
12202
|
+
anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12203
12203
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12204
12204
|
menuAriaLabel: "Document actions"
|
|
12205
12205
|
}
|
|
@@ -12285,7 +12285,7 @@ function CampaignChatCard({
|
|
|
12285
12285
|
}) {
|
|
12286
12286
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _291 => _291.goals])) ? item.goals.length : 0;
|
|
12287
12287
|
const meta = [
|
|
12288
|
-
_optionalChain([item, 'optionalAccess', _292 => _292.start_date]) ?
|
|
12288
|
+
_optionalChain([item, 'optionalAccess', _292 => _292.start_date]) ? _chunkGAR2IIU6cjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
12289
12289
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
12290
12290
|
"Marketing campaign"
|
|
12291
12291
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -12324,7 +12324,7 @@ function EntityMingoCard({
|
|
|
12324
12324
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
12325
12325
|
icon: fallbackIcon,
|
|
12326
12326
|
status,
|
|
12327
|
-
anchorProps:
|
|
12327
|
+
anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12328
12328
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
12329
12329
|
menuAriaLabel
|
|
12330
12330
|
}
|
|
@@ -12336,7 +12336,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
12336
12336
|
function statusPill(status) {
|
|
12337
12337
|
const s = typeof status === "string" ? status.trim() : "";
|
|
12338
12338
|
if (!s) return void 0;
|
|
12339
|
-
const scheme =
|
|
12339
|
+
const scheme = _chunkGAR2IIU6cjs.getStatusColorScheme.call(void 0, s);
|
|
12340
12340
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
12341
12341
|
return { label: s, variant };
|
|
12342
12342
|
}
|
|
@@ -12427,7 +12427,7 @@ function DesignDocChatCard({
|
|
|
12427
12427
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
12428
12428
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12429
12429
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
12430
|
-
anchorProps:
|
|
12430
|
+
anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab),
|
|
12431
12431
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
12432
12432
|
menuAriaLabel: "Design doc actions"
|
|
12433
12433
|
}
|
|
@@ -12445,7 +12445,7 @@ function InvestorUpdateChatCard({
|
|
|
12445
12445
|
EntityMingoCard,
|
|
12446
12446
|
{
|
|
12447
12447
|
title,
|
|
12448
|
-
description: _optionalChain([item, 'optionalAccess', _322 => _322.strategic_update]) || _optionalChain([item, 'optionalAccess', _323 => _323.content]) ||
|
|
12448
|
+
description: _optionalChain([item, 'optionalAccess', _322 => _322.strategic_update]) || _optionalChain([item, 'optionalAccess', _323 => _323.content]) || _chunkGAR2IIU6cjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _324 => _324.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _325 => _325.period_end]), () => ( null))) || void 0,
|
|
12449
12449
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _326 => _326.featured_image]), ogPlaceholder),
|
|
12450
12450
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
12451
12451
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -12489,7 +12489,7 @@ function ProgramChatCard({
|
|
|
12489
12489
|
discuss
|
|
12490
12490
|
}) {
|
|
12491
12491
|
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 });
|
|
12492
|
-
const { line: meta } =
|
|
12492
|
+
const { line: meta } = _chunkGAR2IIU6cjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkGAR2IIU6cjs.programMetaFormatters.call(void 0, _chunkGAR2IIU6cjs.PROGRAM_META_RENDERERS));
|
|
12493
12493
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12494
12494
|
EntityMingoCard,
|
|
12495
12495
|
{
|
|
@@ -12515,17 +12515,17 @@ function RoadmapChatCard({
|
|
|
12515
12515
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _336 => _336.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
12516
12516
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _337 => _337.customItemId]) != null;
|
|
12517
12517
|
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 });
|
|
12518
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12518
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _338 => _338.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
12519
12519
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
12520
12520
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
12521
12521
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12522
|
-
|
|
12522
|
+
_chunk3V5JWG27cjs.next_image_default,
|
|
12523
12523
|
{
|
|
12524
12524
|
src: logoUrl,
|
|
12525
12525
|
alt: "",
|
|
12526
12526
|
className: "size-6 object-contain",
|
|
12527
|
-
width:
|
|
12528
|
-
height:
|
|
12527
|
+
width: _chunkQOAA7ZHBcjs.IMAGE_FIXED_PX.glyph,
|
|
12528
|
+
height: _chunkQOAA7ZHBcjs.IMAGE_FIXED_PX.glyph,
|
|
12529
12529
|
unoptimized: true
|
|
12530
12530
|
}
|
|
12531
12531
|
)
|
|
@@ -12591,11 +12591,11 @@ function refText(ref, key) {
|
|
|
12591
12591
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
12592
12592
|
}
|
|
12593
12593
|
function VendorGlyph({ title, logoUrl }) {
|
|
12594
|
-
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12594
|
+
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
|
|
12595
12595
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
12596
12596
|
}
|
|
12597
12597
|
function SitePageGlyph({ iconName }) {
|
|
12598
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12598
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
|
|
12599
12599
|
}
|
|
12600
12600
|
var GITHUB_CARD_CONFIGS = {
|
|
12601
12601
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -12712,7 +12712,7 @@ function programRegistryEntries() {
|
|
|
12712
12712
|
label: cfg.label,
|
|
12713
12713
|
contentRefType: cfg.contentRefType,
|
|
12714
12714
|
bareInline: true,
|
|
12715
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12715
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.ProgramCard, { loading: true, size: "sm" }),
|
|
12716
12716
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12717
12717
|
ProgramChatCard,
|
|
12718
12718
|
{
|
|
@@ -12753,7 +12753,7 @@ function roadmapRegistryEntries() {
|
|
|
12753
12753
|
bareInline: true,
|
|
12754
12754
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
12755
12755
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
12756
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12756
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.RoadmapCard, { loading: true, size: "sm" }),
|
|
12757
12757
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12758
12758
|
RoadmapChatCard,
|
|
12759
12759
|
{
|
|
@@ -12811,12 +12811,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12811
12811
|
// projection route; `extractCardItems` turns its object payload into the
|
|
12812
12812
|
// single matched row. Destination is the public page unless the host
|
|
12813
12813
|
// re-homes the type (`composeContentUrl` override).
|
|
12814
|
-
[
|
|
12814
|
+
[_chunkGAR2IIU6cjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
12815
12815
|
label: "Trust center",
|
|
12816
12816
|
bareInline: true,
|
|
12817
|
-
contentRefType:
|
|
12817
|
+
contentRefType: _chunkGAR2IIU6cjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
12818
12818
|
noComposedHref: true,
|
|
12819
|
-
fallbackHref: () =>
|
|
12819
|
+
fallbackHref: () => _chunkGAR2IIU6cjs.TRUST_CENTER_PAGE_PATH,
|
|
12820
12820
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
12821
12821
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
12822
12822
|
},
|
|
@@ -12842,7 +12842,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12842
12842
|
label: "Blog post",
|
|
12843
12843
|
contentRefType: "blog_post_existing",
|
|
12844
12844
|
bareInline: true,
|
|
12845
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12845
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.BlogCard, { loading: true, size: "sm" }),
|
|
12846
12846
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12847
12847
|
BlogChatCard,
|
|
12848
12848
|
{
|
|
@@ -12859,7 +12859,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12859
12859
|
label: "Case study",
|
|
12860
12860
|
contentRefType: "case_study",
|
|
12861
12861
|
bareInline: true,
|
|
12862
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12862
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.CaseStudyCard, { loading: true, size: "sm" }),
|
|
12863
12863
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12864
12864
|
CaseStudyChatCard,
|
|
12865
12865
|
{
|
|
@@ -12884,7 +12884,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12884
12884
|
label: "Customer interview",
|
|
12885
12885
|
contentRefType: "customer_interview",
|
|
12886
12886
|
bareInline: true,
|
|
12887
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12887
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.CustomerInterviewCard, { loading: true, size: "sm" }),
|
|
12888
12888
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12889
12889
|
CustomerInterviewChatCard,
|
|
12890
12890
|
{
|
|
@@ -12900,9 +12900,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12900
12900
|
label: "Product release",
|
|
12901
12901
|
contentRefType: "product_release",
|
|
12902
12902
|
bareInline: true,
|
|
12903
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12903
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.ProductReleaseCard, { loading: true, size: "sm" }),
|
|
12904
12904
|
render: (item, chatRef, opts) => {
|
|
12905
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _379 => _379.extras, 'optionalAccess', _380 => _380.buildProductReleaseCardProps]), () => (
|
|
12905
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _379 => _379.extras, 'optionalAccess', _380 => _380.buildProductReleaseCardProps]), () => ( _chunkGAR2IIU6cjs.defaultBuildProductReleaseCardProps));
|
|
12906
12906
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12907
12907
|
ProductReleaseChatCard,
|
|
12908
12908
|
{
|
|
@@ -12920,7 +12920,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12920
12920
|
label: "Investor update",
|
|
12921
12921
|
contentRefType: "investor_update",
|
|
12922
12922
|
bareInline: true,
|
|
12923
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12923
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.InvestorUpdateCard, { loading: true, size: "sm" }),
|
|
12924
12924
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12925
12925
|
InvestorUpdateChatCard,
|
|
12926
12926
|
{
|
|
@@ -12938,7 +12938,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12938
12938
|
bareInline: true,
|
|
12939
12939
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
12940
12940
|
displayAction: true,
|
|
12941
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12941
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.OnboardingGuideCard, { loading: true, size: "sm" }),
|
|
12942
12942
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12943
12943
|
OnboardingGuideChatCard,
|
|
12944
12944
|
{
|
|
@@ -13011,7 +13011,7 @@ function ChatCardLoader({
|
|
|
13011
13011
|
entry: fetchEntry,
|
|
13012
13012
|
ctx: sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform }),
|
|
13013
13013
|
composeContentUrl: runtime.composeContentUrl,
|
|
13014
|
-
resolveHref: (href) =>
|
|
13014
|
+
resolveHref: (href) => _chunkGAR2IIU6cjs.resolveHrefForRuntime.call(void 0, href, runtime)
|
|
13015
13015
|
});
|
|
13016
13016
|
const hrefResolvedChatRef = {
|
|
13017
13017
|
...chatRef,
|
|
@@ -13022,12 +13022,12 @@ function ChatCardLoader({
|
|
|
13022
13022
|
};
|
|
13023
13023
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
13024
13024
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
13025
|
-
const isNewTab =
|
|
13025
|
+
const isNewTab = _chunkY6MJMPHVcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
13026
13026
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
13027
13027
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
13028
13028
|
const discuss = discussFn ? {
|
|
13029
13029
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
13030
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13030
|
+
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.AgentMark, { agent: "mingo", className: "size-5" }),
|
|
13031
13031
|
run: () => discussFn(finalChatRef)
|
|
13032
13032
|
} : void 0;
|
|
13033
13033
|
const renderOpts = {
|
|
@@ -13137,12 +13137,12 @@ function makeBatchDedupKey(item) {
|
|
|
13137
13137
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
13138
13138
|
}
|
|
13139
13139
|
function getChatTypeMessageType(chatType) {
|
|
13140
|
-
return chatType ===
|
|
13140
|
+
return chatType === _chunkZRDVFADQcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
13141
13141
|
}
|
|
13142
13142
|
function useChunkCatchup({
|
|
13143
13143
|
dialogId,
|
|
13144
13144
|
onChunkReceived,
|
|
13145
|
-
chatTypes = [
|
|
13145
|
+
chatTypes = [_chunkZRDVFADQcjs.CHAT_TYPE.CLIENT],
|
|
13146
13146
|
fetchChunks
|
|
13147
13147
|
}) {
|
|
13148
13148
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -14103,7 +14103,7 @@ function useChatAttachmentImageGallery() {
|
|
|
14103
14103
|
return () => root.removeEventListener("click", onClick);
|
|
14104
14104
|
}, [viewUrlPrefix]);
|
|
14105
14105
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14106
|
-
|
|
14106
|
+
_chunkGAR2IIU6cjs.ImageGalleryModal,
|
|
14107
14107
|
{
|
|
14108
14108
|
images: state.images,
|
|
14109
14109
|
isOpen: state.isOpen,
|
|
@@ -15265,7 +15265,7 @@ function nullableText(value) {
|
|
|
15265
15265
|
}
|
|
15266
15266
|
function httpsUrl(value) {
|
|
15267
15267
|
const candidate = text(value);
|
|
15268
|
-
if (!candidate ||
|
|
15268
|
+
if (!candidate || _chunkY6MJMPHVcjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
15269
15269
|
try {
|
|
15270
15270
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
15271
15271
|
} catch (e18) {
|
|
@@ -15849,7 +15849,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15849
15849
|
const status = approvalStatuses[requestId] || "pending";
|
|
15850
15850
|
if (!displayInline(approvalType)) {
|
|
15851
15851
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
15852
|
-
const summary = required ?
|
|
15852
|
+
const summary = required ? _chunkOBQ5WUNGcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
15853
15853
|
pendingEscalated.set(requestId, {
|
|
15854
15854
|
command: summary,
|
|
15855
15855
|
explanation: _optionalChain([required, 'optionalAccess', _535 => _535.toolExplanation]),
|
|
@@ -15882,7 +15882,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15882
15882
|
if (!call.requiresApproval) continue;
|
|
15883
15883
|
segments = accumulator.addApprovalRequest(
|
|
15884
15884
|
requestId,
|
|
15885
|
-
|
|
15885
|
+
_chunkOBQ5WUNGcjs.getCommandText.call(void 0, call),
|
|
15886
15886
|
call.toolExplanation,
|
|
15887
15887
|
approvalType,
|
|
15888
15888
|
status,
|
|
@@ -15961,7 +15961,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15961
15961
|
if (!call.requiresApproval) continue;
|
|
15962
15962
|
segments = accumulator.addApprovalRequest(
|
|
15963
15963
|
requestId,
|
|
15964
|
-
|
|
15964
|
+
_chunkOBQ5WUNGcjs.getCommandText.call(void 0, call),
|
|
15965
15965
|
call.toolExplanation,
|
|
15966
15966
|
escalatedData.approvalType,
|
|
15967
15967
|
status
|
|
@@ -18259,12 +18259,12 @@ function decodeNatsChunk(chunk) {
|
|
|
18259
18259
|
|
|
18260
18260
|
// src/components/chat/utils/process-historical-messages.ts
|
|
18261
18261
|
function getOwnerDisplayName(owner) {
|
|
18262
|
-
if (_optionalChain([owner, 'optionalAccess', _613 => _613.type]) ===
|
|
18262
|
+
if (_optionalChain([owner, 'optionalAccess', _613 => _613.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
18263
18263
|
const { firstName, lastName } = owner.user;
|
|
18264
18264
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
18265
18265
|
if (name) return name;
|
|
18266
18266
|
}
|
|
18267
|
-
return _optionalChain([owner, 'optionalAccess', _614 => _614.type]) ===
|
|
18267
|
+
return _optionalChain([owner, 'optionalAccess', _614 => _614.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
18268
18268
|
}
|
|
18269
18269
|
function getOwnerAvatar(owner) {
|
|
18270
18270
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _615 => _615.user, 'optionalAccess', _616 => _616.image, 'optionalAccess', _617 => _617.imageUrl]), () => ( void 0));
|
|
@@ -18527,7 +18527,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18527
18527
|
if (!call.requiresApproval) continue;
|
|
18528
18528
|
accumulator.addApprovalRequest(
|
|
18529
18529
|
event.requestId,
|
|
18530
|
-
|
|
18530
|
+
_chunkOBQ5WUNGcjs.getCommandText.call(void 0, call),
|
|
18531
18531
|
call.toolExplanation,
|
|
18532
18532
|
approvalType,
|
|
18533
18533
|
status,
|
|
@@ -18588,7 +18588,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18588
18588
|
if (!call.requiresApproval) continue;
|
|
18589
18589
|
accumulator.addApprovalRequest(
|
|
18590
18590
|
requestId,
|
|
18591
|
-
|
|
18591
|
+
_chunkOBQ5WUNGcjs.getCommandText.call(void 0, call),
|
|
18592
18592
|
call.toolExplanation,
|
|
18593
18593
|
escalatedData.approvalType,
|
|
18594
18594
|
status
|
|
@@ -18696,10 +18696,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18696
18696
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
18697
18697
|
return;
|
|
18698
18698
|
}
|
|
18699
|
-
const isUserMessage = _optionalChain([msg, 'access', _630 => _630.owner, 'optionalAccess', _631 => _631.type]) ===
|
|
18699
|
+
const isUserMessage = _optionalChain([msg, 'access', _630 => _630.owner, 'optionalAccess', _631 => _631.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _632 => _632.owner, 'optionalAccess', _633 => _633.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN;
|
|
18700
18700
|
if (isUserMessage) {
|
|
18701
18701
|
flushAssistantMessage();
|
|
18702
|
-
const userAuthorType = _optionalChain([msg, 'access', _634 => _634.owner, 'optionalAccess', _635 => _635.type]) ===
|
|
18702
|
+
const userAuthorType = _optionalChain([msg, 'access', _634 => _634.owner, 'optionalAccess', _635 => _635.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
18703
18703
|
messageDataArray.forEach((data) => {
|
|
18704
18704
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
18705
18705
|
const rawContext = data.contextItems;
|
|
@@ -18750,7 +18750,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18750
18750
|
});
|
|
18751
18751
|
const nextMsg = messages[index + 1];
|
|
18752
18752
|
const isLastMessage = index === messages.length - 1;
|
|
18753
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _638 => _638.owner, 'optionalAccess', _639 => _639.type]) ===
|
|
18753
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _638 => _638.owner, 'optionalAccess', _639 => _639.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _640 => _640.owner, 'optionalAccess', _641 => _641.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN);
|
|
18754
18754
|
if (isLastMessage || nextIsFromUser) {
|
|
18755
18755
|
flushAssistantMessage();
|
|
18756
18756
|
}
|