@flamingo-stack/openframe-frontend-core 0.0.847 → 0.0.849
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-DJOHIHYU.cjs → case-study-card-X2HKPKT7.cjs} +5 -5
- package/dist/{chunk-CNMXP77I.cjs → chunk-36DUCHI7.cjs} +4 -4
- package/dist/{chunk-MPVOPSU6.cjs → chunk-36XWCVSM.cjs} +96 -96
- package/dist/{chunk-J2IXYCEH.cjs → chunk-3W4ASAXN.cjs} +15 -15
- package/dist/{chunk-6LDL3UZE.cjs → chunk-4YBS4HIO.cjs} +20 -20
- package/dist/{chunk-ABL5OBSF.cjs → chunk-533QK4R6.cjs} +296 -250
- package/dist/{chunk-QK2A334V.cjs → chunk-5CBI2ZYV.cjs} +12 -12
- package/dist/{chunk-D5DMWXF2.cjs → chunk-5PIR77V5.cjs} +4 -4
- package/dist/{chunk-HPXET3LH.cjs → chunk-6AJYGXXS.cjs} +27 -27
- package/dist/{chunk-4R4HAFXI.cjs → chunk-ALRYVZ3E.cjs} +6 -6
- package/dist/{chunk-FLW4WULE.cjs → chunk-BU2PSRAS.cjs} +17 -61
- package/dist/{chunk-HBDLJUI3.cjs → chunk-C3P7IUTU.cjs} +39 -14
- package/dist/{chunk-SSSI2RBV.cjs → chunk-FNQWL4W4.cjs} +14 -14
- package/dist/{chunk-TBOWFTEN.cjs → chunk-FRG724DU.cjs} +22 -22
- package/dist/{chunk-SIFRIUPW.cjs → chunk-FXLROQUT.cjs} +345 -356
- package/dist/{chunk-3V5JWG27.cjs → chunk-GG466XFQ.cjs} +2 -2
- package/dist/{chunk-XCVH5BCZ.cjs → chunk-GRCOEICK.cjs} +6 -6
- package/dist/{chunk-5GBLXY5F.cjs → chunk-HTYJUMFB.cjs} +7 -7
- package/dist/{chunk-URP6GYTD.cjs → chunk-IG6ROHPS.cjs} +56 -56
- package/dist/{chunk-DGQDGCQH.cjs → chunk-IHY7E4EX.cjs} +2 -2
- package/dist/{chunk-WCK5T3UD.cjs → chunk-IKOL6NJY.cjs} +101 -69
- package/dist/{chunk-RAJ5FYFL.cjs → chunk-IN3LA2FU.cjs} +14 -14
- package/dist/{chunk-ZTO7KNYV.cjs → chunk-KXBZCUDW.cjs} +35 -35
- package/dist/{chunk-57JYB3E2.cjs → chunk-MC3L525K.cjs} +3 -3
- package/dist/{chunk-BIOSHDXQ.cjs → chunk-MDLT6D46.cjs} +61 -61
- package/dist/{chunk-3TOWCFIK.cjs → chunk-PMUCEUFQ.cjs} +13 -1
- package/dist/{chunk-PV3NKXWS.cjs → chunk-PV2XQJ2R.cjs} +99 -178
- package/dist/{chunk-J2ZSGOUC.cjs → chunk-R5JPZ6TY.cjs} +27 -27
- package/dist/{chunk-744JXTDP.cjs → chunk-SA2NNWIJ.cjs} +23 -23
- package/dist/{chunk-DEEQSVLX.cjs → chunk-SHQY4GOE.cjs} +90 -90
- package/dist/{chunk-BHOVF4KP.cjs → chunk-SOSIXRQ3.cjs} +2 -2
- package/dist/{chunk-Y2OEC7UW.cjs → chunk-TEKN6TJ5.cjs} +40 -40
- package/dist/{chunk-PZNWIJRZ.cjs → chunk-TIVPOVIM.cjs} +2 -2
- package/dist/{chunk-BZZE4KIV.cjs → chunk-TX4NTH22.cjs} +155 -136
- package/dist/{chunk-NFNSPLGC.cjs → chunk-W7OFAROY.cjs} +14 -9
- package/dist/{chunk-N2A24FDF.cjs → chunk-YLETC7LP.cjs} +994 -953
- package/dist/{chunk-YC52LSPP.cjs → chunk-YYHQY3K6.cjs} +40 -40
- package/dist/{chunk-2FUTZKLB.cjs → chunk-Z5UCDEKZ.cjs} +6 -6
- package/dist/{chunk-SWF6TNZ3.cjs → chunk-ZGEWT3SF.cjs} +2 -2
- package/dist/{chunk-PQDCSZ3W.cjs → chunk-ZY34R37A.cjs} +85 -85
- package/dist/{chunk-5SZ4ILU3.cjs → chunk-ZZDFMUEU.cjs} +3 -3
- package/dist/{cloud-tenants-XEUUMABT.cjs → cloud-tenants-HKUUEUAY.cjs} +21 -21
- package/dist/components/case-studies/index.cjs +36 -36
- package/dist/components/chat/chat-composer.d.ts.map +1 -1
- package/dist/components/chat/chat-composer.js +4 -3
- package/dist/components/chat/chat-container.d.ts.map +1 -1
- package/dist/components/chat/chat-container.js +2 -2
- package/dist/components/chat/entity-cards/design-doc-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/design-doc-card.js +5 -17
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +5 -7
- package/dist/components/chat/index.cjs +15 -15
- package/dist/components/contact/index.cjs +22 -22
- package/dist/components/docs/doc-viewer.d.ts +7 -7
- package/dist/components/docs/doc-viewer.d.ts.map +1 -1
- package/dist/components/docs/doc-viewer.js +29 -16
- package/dist/components/docs/docs-hub-page.d.ts +1 -1
- package/dist/components/docs/docs-hub-page.d.ts.map +1 -1
- package/dist/components/docs/docs-hub-page.js +4 -11
- package/dist/components/docs/index.cjs +25 -25
- package/dist/components/docs/use-document-tree.d.ts.map +1 -1
- package/dist/components/docs/use-document-tree.js +24 -24
- package/dist/components/embeds/claude-embed.d.ts +2 -2
- package/dist/components/embeds/claude-embed.d.ts.map +1 -1
- package/dist/components/embeds/claude-embed.js +3 -3
- package/dist/components/embeds/embed-iframe.d.ts +5 -3
- package/dist/components/embeds/embed-iframe.d.ts.map +1 -1
- package/dist/components/embeds/embed-iframe.js +4 -3
- package/dist/components/embeds/embed-viewer-frame.d.ts +12 -9
- package/dist/components/embeds/embed-viewer-frame.d.ts.map +1 -1
- package/dist/components/embeds/embed-viewer-frame.js +21 -7
- package/dist/components/embeds/figma-embed.d.ts +4 -2
- package/dist/components/embeds/figma-embed.d.ts.map +1 -1
- package/dist/components/embeds/figma-embed.js +4 -3
- package/dist/components/embeds/file-download-card.d.ts +3 -1
- package/dist/components/embeds/file-download-card.d.ts.map +1 -1
- package/dist/components/embeds/file-download-card.js +18 -3
- package/dist/components/embeds/google-sheets-viewer.d.ts +3 -1
- package/dist/components/embeds/google-sheets-viewer.d.ts.map +1 -1
- package/dist/components/embeds/google-sheets-viewer.js +7 -4
- package/dist/components/embeds/index.cjs +22 -22
- package/dist/components/embeds/pdf-viewer.d.ts +3 -1
- package/dist/components/embeds/pdf-viewer.d.ts.map +1 -1
- package/dist/components/embeds/pdf-viewer.js +6 -2
- package/dist/components/faq/index.cjs +23 -23
- package/dist/components/features/index.cjs +21 -21
- package/dist/components/features/status-filter-component.d.ts +7 -1
- package/dist/components/features/status-filter-component.d.ts.map +1 -1
- package/dist/components/features/status-filter-component.js +9 -3
- package/dist/components/help-center-pages/index.cjs +140 -140
- package/dist/components/index.cjs +137 -135
- package/dist/components/layout/back-button.d.ts +7 -1
- package/dist/components/layout/back-button.d.ts.map +1 -1
- package/dist/components/layout/back-button.js +34 -2
- package/dist/components/loading/unified-skeleton.d.ts +6 -1
- package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
- package/dist/components/loading/unified-skeleton.js +13 -1
- package/dist/components/meeting-scheduler/index.cjs +119 -119
- package/dist/components/navigation/index.cjs +24 -24
- package/dist/components/onboarding-guides/index.cjs +24 -24
- package/dist/components/product-demo/index.cjs +33 -33
- package/dist/components/related-content/index.cjs +11 -11
- package/dist/components/tickets/index.cjs +28 -28
- package/dist/components/ui/file-manager/file-manager-table.d.ts.map +1 -1
- package/dist/components/ui/file-manager/file-manager-table.js +59 -50
- package/dist/components/ui/file-manager/index.cjs +71 -62
- package/dist/components/ui/index.cjs +23 -21
- package/dist/components/ui/markdown/engine.d.ts +5 -4
- package/dist/components/ui/markdown/engine.d.ts.map +1 -1
- package/dist/components/ui/markdown/engine.js +15 -15
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts.map +1 -1
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.js +7 -3
- package/dist/components/ui/people-cell.d.ts +9 -2
- package/dist/components/ui/people-cell.d.ts.map +1 -1
- package/dist/components/ui/people-cell.js +39 -23
- package/dist/components/ui/progress-bar.d.ts +6 -0
- package/dist/components/ui/progress-bar.d.ts.map +1 -1
- package/dist/components/ui/progress-bar.js +2 -0
- package/dist/components/ui/tag.d.ts +8 -0
- package/dist/components/ui/tag.d.ts.map +1 -1
- package/dist/components/ui/tag.js +5 -0
- package/dist/{devices-7YDIHVVP.cjs → devices-P7M4Z7VP.cjs} +22 -22
- package/dist/embed-shims/index.cjs +3 -3
- package/dist/embed-shims/next-image.cjs +3 -3
- package/dist/{embeddable-chat-Z3S37SSM.cjs → embeddable-chat-322NDFP5.cjs} +94 -94
- package/dist/hooks/index.cjs +6 -6
- package/dist/index.cjs +32 -30
- package/dist/{knowledge-SQVPQSKM.cjs → knowledge-TC7JLOWI.cjs} +22 -22
- package/dist/{logs-M5DFGUBC.cjs → logs-GPOYCP4B.cjs} +28 -28
- package/dist/{policies-T3VQEJUD.cjs → policies-ZUHOUMDD.cjs} +25 -25
- package/dist/{remote-session-EE6477O3.cjs → remote-session-NT4NG7EF.cjs} +10 -10
- package/dist/{scripts-JFRFJKPH.cjs → scripts-FOEVDGTH.cjs} +28 -28
- package/dist/{software-update-E7W3AAIY.cjs → software-update-XGTMNFST.cjs} +25 -25
- package/dist/{tickets-board-44HO3LR4.cjs → tickets-board-7FLGQEHF.cjs} +10 -10
- package/dist/types/design-doc.d.ts +45 -8
- package/dist/types/design-doc.d.ts.map +1 -1
- package/dist/types/doc-source.d.ts +2 -2
- package/dist/types/doc-source.d.ts.map +1 -1
- package/dist/utils/design-doc-readiness.d.ts +17 -15
- package/dist/utils/design-doc-readiness.d.ts.map +1 -1
- package/dist/utils/design-doc-readiness.js +5 -11
- package/dist/utils/doc-tree-nav.d.ts +7 -0
- package/dist/utils/doc-tree-nav.d.ts.map +1 -1
- package/dist/utils/doc-tree-nav.js +19 -0
- package/dist/utils/index.cjs +30 -13
- package/dist/utils/list-url.d.ts.map +1 -1
- package/dist/utils/list-url.js +2 -1
- package/dist/utils/source-grouping.d.ts +2 -2
- package/dist/utils/source-grouping.d.ts.map +1 -1
- package/dist/utils/source-grouping.js +1 -1
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/dist/utils/source-icons.js +3 -0
- package/package.json +1 -1
- package/src/components/chat/chat-composer.tsx +10 -3
- package/src/components/chat/chat-container.tsx +6 -4
- package/src/components/chat/entity-cards/design-doc-card.tsx +12 -17
- package/src/components/chat/entity-cards/dispatch.tsx +10 -10
- package/src/components/docs/doc-viewer.tsx +56 -35
- package/src/components/docs/docs-hub-page.tsx +13 -37
- package/src/components/docs/use-document-tree.ts +33 -23
- package/src/components/embeds/claude-embed.tsx +4 -4
- package/src/components/embeds/embed-iframe.tsx +8 -5
- package/src/components/embeds/embed-viewer-frame.tsx +35 -15
- package/src/components/embeds/figma-embed.tsx +9 -4
- package/src/components/embeds/file-download-card.tsx +28 -4
- package/src/components/embeds/google-sheets-viewer.tsx +9 -3
- package/src/components/embeds/pdf-viewer.tsx +9 -2
- package/src/components/features/status-filter-component.tsx +15 -0
- package/src/components/layout/back-button.tsx +54 -2
- package/src/components/loading/unified-skeleton.tsx +18 -2
- package/src/components/ui/file-manager/file-manager-table.tsx +8 -3
- package/src/components/ui/markdown/engine.tsx +21 -30
- package/src/components/ui/markdown/rich/rich-markdown-renderer.tsx +4 -0
- package/src/components/ui/people-cell.tsx +53 -17
- package/src/components/ui/progress-bar.tsx +8 -0
- package/src/components/ui/tag.tsx +14 -0
- package/src/types/design-doc.ts +59 -10
- package/src/types/doc-source.ts +2 -2
- package/src/utils/design-doc-readiness.ts +22 -23
- package/src/utils/doc-tree-nav.ts +27 -0
- package/src/utils/list-url.ts +2 -1
- package/src/utils/source-grouping.ts +2 -2
- package/src/utils/source-icons.ts +3 -0
- package/dist/components/docs/skeletons.d.ts +0 -25
- package/dist/components/docs/skeletons.d.ts.map +0 -1
- package/dist/components/docs/skeletons.js +0 -83
- package/src/components/docs/skeletons.tsx +0 -131
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk3W4ASAXNcjs = require('./chunk-3W4ASAXN.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -36,7 +36,7 @@ var _chunkJ2IXYCEHcjs = require('./chunk-J2IXYCEH.cjs');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunk4YBS4HIOcjs = require('./chunk-4YBS4HIO.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
@@ -272,7 +272,7 @@ var _chunk7WT2C5YYcjs = require('./chunk-7WT2C5YY.cjs');
|
|
|
272
272
|
|
|
273
273
|
|
|
274
274
|
|
|
275
|
-
var
|
|
275
|
+
var _chunkGRCOEICKcjs = require('./chunk-GRCOEICK.cjs');
|
|
276
276
|
|
|
277
277
|
|
|
278
278
|
|
|
@@ -321,11 +321,11 @@ var _chunkIX2E3AN7cjs = require('./chunk-IX2E3AN7.cjs');
|
|
|
321
321
|
|
|
322
322
|
|
|
323
323
|
|
|
324
|
-
var _chunkABL5OBSFcjs = require('./chunk-ABL5OBSF.cjs');
|
|
325
324
|
|
|
325
|
+
var _chunk533QK4R6cjs = require('./chunk-533QK4R6.cjs');
|
|
326
326
|
|
|
327
|
-
var _chunk5GBLXY5Fcjs = require('./chunk-5GBLXY5F.cjs');
|
|
328
327
|
|
|
328
|
+
var _chunkHTYJUMFBcjs = require('./chunk-HTYJUMFB.cjs');
|
|
329
329
|
|
|
330
330
|
|
|
331
331
|
|
|
@@ -334,9 +334,9 @@ var _chunk5GBLXY5Fcjs = require('./chunk-5GBLXY5F.cjs');
|
|
|
334
334
|
|
|
335
335
|
|
|
336
336
|
|
|
337
|
-
var _chunkNFNSPLGCcjs = require('./chunk-NFNSPLGC.cjs');
|
|
338
337
|
|
|
339
338
|
|
|
339
|
+
var _chunkW7OFAROYcjs = require('./chunk-W7OFAROY.cjs');
|
|
340
340
|
|
|
341
341
|
|
|
342
342
|
|
|
@@ -359,7 +359,9 @@ var _chunkNFNSPLGCcjs = require('./chunk-NFNSPLGC.cjs');
|
|
|
359
359
|
|
|
360
360
|
|
|
361
361
|
|
|
362
|
-
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
var _chunkMDLT6D46cjs = require('./chunk-MDLT6D46.cjs');
|
|
363
365
|
|
|
364
366
|
|
|
365
367
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -376,7 +378,7 @@ var _chunkYSDB6HGQcjs = require('./chunk-YSDB6HGQ.cjs');
|
|
|
376
378
|
|
|
377
379
|
|
|
378
380
|
|
|
379
|
-
var
|
|
381
|
+
var _chunkTIVPOVIMcjs = require('./chunk-TIVPOVIM.cjs');
|
|
380
382
|
|
|
381
383
|
|
|
382
384
|
|
|
@@ -397,7 +399,7 @@ var _chunkNTPX5GXIcjs = require('./chunk-NTPX5GXI.cjs');
|
|
|
397
399
|
var _chunkGI3MMBP3cjs = require('./chunk-GI3MMBP3.cjs');
|
|
398
400
|
|
|
399
401
|
|
|
400
|
-
var
|
|
402
|
+
var _chunkGG466XFQcjs = require('./chunk-GG466XFQ.cjs');
|
|
401
403
|
|
|
402
404
|
|
|
403
405
|
|
|
@@ -422,7 +424,8 @@ var _chunk2XCORRJVcjs = require('./chunk-2XCORRJV.cjs');
|
|
|
422
424
|
|
|
423
425
|
|
|
424
426
|
|
|
425
|
-
|
|
427
|
+
|
|
428
|
+
var _chunkPMUCEUFQcjs = require('./chunk-PMUCEUFQ.cjs');
|
|
426
429
|
|
|
427
430
|
|
|
428
431
|
var _chunkFCZAUK4Dcjs = require('./chunk-FCZAUK4D.cjs');
|
|
@@ -503,7 +506,7 @@ function TabsTriggerSkeleton({
|
|
|
503
506
|
label,
|
|
504
507
|
className
|
|
505
508
|
}) {
|
|
506
|
-
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,
|
|
509
|
+
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, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: TRIGGER_LABEL_TYPE[variant], className: "w-20" }))) });
|
|
507
510
|
}
|
|
508
511
|
var TabsContent = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
509
512
|
TabsPrimitive.Content,
|
|
@@ -535,7 +538,7 @@ function TextHold({ children, variant = "bar", className }) {
|
|
|
535
538
|
// `box-decoration-clone` gives every line its own bar (and its own mask, `BAR_STYLE`). Pure CSS: it
|
|
536
539
|
// is drawn in the server's HTML, before any script runs (a loading state streamed by the server
|
|
537
540
|
// is often replaced before it hydrates).
|
|
538
|
-
bar ? _chunk63A4GZMBcjs.cn.call(void 0,
|
|
541
|
+
bar ? _chunk63A4GZMBcjs.cn.call(void 0, _chunkPMUCEUFQcjs.SKELETON_SURFACE_CLASS, "rounded-md box-decoration-clone text-transparent") : "invisible",
|
|
539
542
|
// A hold is never selectable or clickable, whatever it wraps.
|
|
540
543
|
"pointer-events-none select-none",
|
|
541
544
|
className
|
|
@@ -713,14 +716,14 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
713
716
|
for (const section of sectionIds) {
|
|
714
717
|
sectionIdMap.set(section.title, section.id);
|
|
715
718
|
sectionIdMap.set(section.title.toLowerCase(), section.id);
|
|
716
|
-
sectionIdMap.set(
|
|
719
|
+
sectionIdMap.set(_chunkGRCOEICKcjs.stripHeadingEmojis.call(void 0, section.title).toLowerCase(), section.id);
|
|
717
720
|
}
|
|
718
721
|
}
|
|
719
|
-
const dedupe =
|
|
722
|
+
const dedupe = _chunkGRCOEICKcjs.createHeadingIdDeduper.call(void 0, );
|
|
720
723
|
const map = /* @__PURE__ */ new Map();
|
|
721
724
|
let sectionOrdinal = 0;
|
|
722
725
|
let headingOrdinal = 0;
|
|
723
|
-
for (const { line, level, text: rawText } of
|
|
726
|
+
for (const { line, level, text: rawText } of _chunkGRCOEICKcjs.scanHeadings.call(void 0, content)) {
|
|
724
727
|
const text2 = stripInlineMarkdown(rawText).trim();
|
|
725
728
|
headingOrdinal++;
|
|
726
729
|
if (level <= EXTRACTOR_MAX_LEVEL) sectionOrdinal++;
|
|
@@ -729,8 +732,8 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
729
732
|
for (const variation of [
|
|
730
733
|
text2,
|
|
731
734
|
text2.toLowerCase(),
|
|
732
|
-
|
|
733
|
-
|
|
735
|
+
_chunkGRCOEICKcjs.stripHeadingEmojis.call(void 0, text2),
|
|
736
|
+
_chunkGRCOEICKcjs.stripHeadingEmojis.call(void 0, text2).toLowerCase()
|
|
734
737
|
]) {
|
|
735
738
|
const id = sectionIdMap.get(variation);
|
|
736
739
|
if (id) {
|
|
@@ -740,7 +743,7 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
740
743
|
}
|
|
741
744
|
}
|
|
742
745
|
if (assigned === void 0) {
|
|
743
|
-
const baseId =
|
|
746
|
+
const baseId = _chunkGRCOEICKcjs.slugifyHeadingText.call(void 0, text2);
|
|
744
747
|
assigned = dedupe(
|
|
745
748
|
baseId || (level <= EXTRACTOR_MAX_LEVEL ? `section-${sectionOrdinal}` : `heading-${headingOrdinal}`)
|
|
746
749
|
);
|
|
@@ -1120,7 +1123,7 @@ var MermaidDiagramView = ({
|
|
|
1120
1123
|
/* @__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 }) }) })
|
|
1121
1124
|
] }) : empty || isLoading || !svg ? (
|
|
1122
1125
|
// The frame's own size, as a skeleton: the frame sets the height the diagram lands in.
|
|
1123
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1126
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { "aria-label": "Rendering diagram", className: "h-auto w-full self-stretch" })
|
|
1124
1127
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1125
1128
|
"div",
|
|
1126
1129
|
{
|
|
@@ -1285,7 +1288,7 @@ var MarkdownContentImage = ({ src, alt }) => {
|
|
|
1285
1288
|
const resolvedSrc = inScope ? src : authedSrc;
|
|
1286
1289
|
if (!resolvedSrc) return null;
|
|
1287
1290
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1288
|
-
|
|
1291
|
+
_chunkGG466XFQcjs.next_image_default,
|
|
1289
1292
|
{
|
|
1290
1293
|
src: resolvedSrc,
|
|
1291
1294
|
alt: _nullishCoalesce(alt, () => ( "No image available")),
|
|
@@ -1355,7 +1358,7 @@ function buildBaseComponents({
|
|
|
1355
1358
|
const mapped = useHeadingId(node);
|
|
1356
1359
|
const taken = useAssignedHeadingIds();
|
|
1357
1360
|
const explicit = typeof _optionalChain([node, 'optionalAccess', _27 => _27.properties, 'optionalAccess', _28 => _28.id]) === "string" && node.properties.id !== "" ? node.properties.id : void 0;
|
|
1358
|
-
const id = _nullishCoalesce(_nullishCoalesce(explicit, () => ( mapped)), () => ( resolveFallbackHeadingId(
|
|
1361
|
+
const id = _nullishCoalesce(_nullishCoalesce(explicit, () => ( mapped)), () => ( resolveFallbackHeadingId(_chunkGRCOEICKcjs.slugifyHeadingText.call(void 0, extractText(children)), taken)));
|
|
1359
1362
|
const EffectiveTag = Tag2 === "h1" && demoteMarkdownH1ToH2 ? "h2" : Tag2;
|
|
1360
1363
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EffectiveTag, { id: id || void 0, className: headingClassName, children });
|
|
1361
1364
|
}
|
|
@@ -1427,10 +1430,10 @@ function buildBaseComponents({
|
|
|
1427
1430
|
const handleAnchorClick = (e) => {
|
|
1428
1431
|
if (inPageAnchorId === null) return;
|
|
1429
1432
|
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0) return;
|
|
1430
|
-
const target =
|
|
1433
|
+
const target = _chunkGRCOEICKcjs.getHashTargetElement.call(void 0, inPageAnchorId);
|
|
1431
1434
|
if (!_optionalChain([target, 'optionalAccess', _29 => _29.id])) return;
|
|
1432
1435
|
e.preventDefault();
|
|
1433
|
-
|
|
1436
|
+
_chunkGRCOEICKcjs.navigateSamePageHash.call(void 0, `#${target.id}`, { headerOffset: _chunkGRCOEICKcjs.HUB_HEADER_OFFSET_PX });
|
|
1434
1437
|
};
|
|
1435
1438
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1436
1439
|
_chunkV45KLJQPcjs.next_link_default,
|
|
@@ -2039,7 +2042,7 @@ function findInlineCodeRanges(source) {
|
|
|
2039
2042
|
while (pos <= len) {
|
|
2040
2043
|
let end = source.indexOf("\n", pos);
|
|
2041
2044
|
if (end === -1) end = len;
|
|
2042
|
-
const blank =
|
|
2045
|
+
const blank = _chunkGRCOEICKcjs.isBlankLine.call(void 0, source.slice(pos, end));
|
|
2043
2046
|
if (blank && segStart !== -1) break;
|
|
2044
2047
|
if (!blank) {
|
|
2045
2048
|
if (segStart === -1) segStart = pos;
|
|
@@ -2121,7 +2124,7 @@ function toMaskLines(source) {
|
|
|
2121
2124
|
return out;
|
|
2122
2125
|
}
|
|
2123
2126
|
function blankFencedRegions(masked, lines) {
|
|
2124
|
-
const fences =
|
|
2127
|
+
const fences = _chunkGRCOEICKcjs.createFenceTracker.call(void 0, );
|
|
2125
2128
|
const ranges = [];
|
|
2126
2129
|
let openStart = null;
|
|
2127
2130
|
let lastEnd = 0;
|
|
@@ -2160,7 +2163,7 @@ function blankIndentedCode(masked, lines) {
|
|
|
2160
2163
|
const listContentCols = [];
|
|
2161
2164
|
const ranges = [];
|
|
2162
2165
|
for (const line of lines) {
|
|
2163
|
-
if (
|
|
2166
|
+
if (_chunkGRCOEICKcjs.isBlankLine.call(void 0, line.content)) continue;
|
|
2164
2167
|
const indent = leadingIndent(line.content);
|
|
2165
2168
|
const top = listContentCols.length ? listContentCols[listContentCols.length - 1] : 0;
|
|
2166
2169
|
if (indent >= top + 4) {
|
|
@@ -2251,7 +2254,7 @@ function contPrefixLen(c) {
|
|
|
2251
2254
|
function findLabelClose(lines, i, from) {
|
|
2252
2255
|
for (let j = i; j < lines.length; j++) {
|
|
2253
2256
|
const c = stripCr(lines[j].content);
|
|
2254
|
-
if (j > i &&
|
|
2257
|
+
if (j > i && _chunkGRCOEICKcjs.isBlankLine.call(void 0, c)) return { stoppedAt: j };
|
|
2255
2258
|
for (let q = j === i ? from : contPrefixLen(c); q < c.length; q = skipEscaped(c, q)) {
|
|
2256
2259
|
if (c[q] === "[") return { stoppedAt: j };
|
|
2257
2260
|
if (c[q] !== "]") continue;
|
|
@@ -2269,7 +2272,7 @@ function blankLinkDefinitions(masked, lines) {
|
|
|
2269
2272
|
let k = from;
|
|
2270
2273
|
for (; k < lines.length; k++) {
|
|
2271
2274
|
const c = stripCr(lines[k].content);
|
|
2272
|
-
if (
|
|
2275
|
+
if (_chunkGRCOEICKcjs.isBlankLine.call(void 0, c)) break;
|
|
2273
2276
|
blankLine(lines[k]);
|
|
2274
2277
|
if (stop(c)) {
|
|
2275
2278
|
k++;
|
|
@@ -2312,7 +2315,7 @@ function blankLinkDefinitions(masked, lines) {
|
|
|
2312
2315
|
const k = j + 1;
|
|
2313
2316
|
if (k >= lines.length) break;
|
|
2314
2317
|
const c = stripCr(lines[k].content);
|
|
2315
|
-
if (
|
|
2318
|
+
if (_chunkGRCOEICKcjs.isBlankLine.call(void 0, c)) break;
|
|
2316
2319
|
const at = contPrefixLen(c);
|
|
2317
2320
|
const next = tail.k === "needDest" ? parseDefTail(c, at) : parseTitleTail(c, skipSpaces(c, at));
|
|
2318
2321
|
if (next.k === "decline") break;
|
|
@@ -2382,7 +2385,7 @@ function blankUnreferencedFootnotes(masked, lines, folded) {
|
|
|
2382
2385
|
let sawBlank = false;
|
|
2383
2386
|
for (let k = i + 1; k < lines.length; k++) {
|
|
2384
2387
|
const c = text2(lines[k]);
|
|
2385
|
-
if (
|
|
2388
|
+
if (_chunkGRCOEICKcjs.isBlankLine.call(void 0, c)) {
|
|
2386
2389
|
sawBlank = true;
|
|
2387
2390
|
continue;
|
|
2388
2391
|
}
|
|
@@ -2482,7 +2485,7 @@ function paragraphEnd(s, from) {
|
|
|
2482
2485
|
lineStart += 1;
|
|
2483
2486
|
const next = s.indexOf("\n", lineStart);
|
|
2484
2487
|
const line = s.slice(lineStart, next === -1 ? s.length : next);
|
|
2485
|
-
if (
|
|
2488
|
+
if (_chunkGRCOEICKcjs.isBlankLine.call(void 0, line)) return lineStart;
|
|
2486
2489
|
if (next === -1) break;
|
|
2487
2490
|
lineStart = next;
|
|
2488
2491
|
}
|
|
@@ -2636,7 +2639,7 @@ function blankListItemCode(masked, lines, depth = 0) {
|
|
|
2636
2639
|
run = [];
|
|
2637
2640
|
};
|
|
2638
2641
|
for (const line of lines) {
|
|
2639
|
-
if (
|
|
2642
|
+
if (_chunkGRCOEICKcjs.isBlankLine.call(void 0, line.content)) {
|
|
2640
2643
|
if (run.length > 0) run.push({ ...line, content: "" });
|
|
2641
2644
|
continue;
|
|
2642
2645
|
}
|
|
@@ -2861,7 +2864,7 @@ function htmlBlockStartKind(line, inParagraph) {
|
|
|
2861
2864
|
function computeHtmlBlockRanges(text2) {
|
|
2862
2865
|
if (text2.indexOf("<") === -1) return [];
|
|
2863
2866
|
const ranges = [];
|
|
2864
|
-
const fences =
|
|
2867
|
+
const fences = _chunkGRCOEICKcjs.createFenceTracker.call(void 0, );
|
|
2865
2868
|
let kind = null;
|
|
2866
2869
|
let start = 0;
|
|
2867
2870
|
let lastEnd = 0;
|
|
@@ -2876,9 +2879,9 @@ function computeHtmlBlockRanges(text2) {
|
|
|
2876
2879
|
const expanded = expandTabs(line);
|
|
2877
2880
|
const norm = stripContainerPrefix(expanded, listContentCol);
|
|
2878
2881
|
if (norm.openedListCol >= 0) listContentCol = norm.openedListCol;
|
|
2879
|
-
else if (!
|
|
2880
|
-
const normBlank =
|
|
2881
|
-
const blank = openPrefixLen > 0 ?
|
|
2882
|
+
else if (!_chunkGRCOEICKcjs.isBlankLine.call(void 0, norm.text) && norm.text === expanded) listContentCol = 0;
|
|
2883
|
+
const normBlank = _chunkGRCOEICKcjs.isBlankLine.call(void 0, norm.text);
|
|
2884
|
+
const blank = openPrefixLen > 0 ? _chunkGRCOEICKcjs.isBlankLine.call(void 0, expanded.slice(openPrefixLen)) : _chunkGRCOEICKcjs.isBlankLine.call(void 0, line);
|
|
2882
2885
|
if (kind !== null) {
|
|
2883
2886
|
if (kind >= 6) {
|
|
2884
2887
|
if (blank) {
|
|
@@ -3032,7 +3035,7 @@ var ScanState = class {
|
|
|
3032
3035
|
* `FENCE_RE` plus its own open/close state machine, cross-referenced by a
|
|
3033
3036
|
* comment) is precisely the drift that produced the `~~~` bug.
|
|
3034
3037
|
*/
|
|
3035
|
-
this.fences =
|
|
3038
|
+
this.fences = _chunkGRCOEICKcjs.createFenceTracker.call(void 0, );
|
|
3036
3039
|
/** Depth of currently open raw HTML block containers. */
|
|
3037
3040
|
this.htmlDepth = 0;
|
|
3038
3041
|
/** Raw-block tag name of a start tag still waiting for its `>`, or null. */
|
|
@@ -3105,7 +3108,7 @@ function splitStreamingBlocks(content) {
|
|
|
3105
3108
|
const isListOrQuote = (line) => /^\s{0,3}(?:[-+*]\s|\d{1,9}[.)]\s|>)/.test(line);
|
|
3106
3109
|
const firstNonBlank = (arr) => {
|
|
3107
3110
|
for (const line of arr) {
|
|
3108
|
-
if (!
|
|
3111
|
+
if (!_chunkGRCOEICKcjs.isBlankLine.call(void 0, line)) return line;
|
|
3109
3112
|
}
|
|
3110
3113
|
return void 0;
|
|
3111
3114
|
};
|
|
@@ -3115,10 +3118,10 @@ function splitStreamingBlocks(content) {
|
|
|
3115
3118
|
state.scanLine(line);
|
|
3116
3119
|
if (state.htmlMark() !== markBefore || state.htmlLatched()) currentTouchedHtml = true;
|
|
3117
3120
|
current.push(line);
|
|
3118
|
-
const isBlank =
|
|
3121
|
+
const isBlank = _chunkGRCOEICKcjs.isBlankLine.call(void 0, line);
|
|
3119
3122
|
if (!isBlank || state.fences.openChar() !== null || state.htmlBlocksCut()) continue;
|
|
3120
3123
|
let j = i + 1;
|
|
3121
|
-
while (j < lines.length &&
|
|
3124
|
+
while (j < lines.length && _chunkGRCOEICKcjs.isBlankLine.call(void 0, lines[j])) j++;
|
|
3122
3125
|
if (j >= lines.length) continue;
|
|
3123
3126
|
const next = lines[j];
|
|
3124
3127
|
if (/^\s/.test(next)) continue;
|
|
@@ -3126,7 +3129,7 @@ function splitStreamingBlocks(content) {
|
|
|
3126
3129
|
if (isListOrQuote(next) && unitOpener !== void 0 && isListOrQuote(unitOpener)) {
|
|
3127
3130
|
continue;
|
|
3128
3131
|
}
|
|
3129
|
-
if (current.every(
|
|
3132
|
+
if (current.every(_chunkGRCOEICKcjs.isBlankLine)) continue;
|
|
3130
3133
|
units.push(current);
|
|
3131
3134
|
unitTouchedHtml.push(currentTouchedHtml);
|
|
3132
3135
|
current = [];
|
|
@@ -3296,10 +3299,13 @@ function rehypeLabelBareFences() {
|
|
|
3296
3299
|
};
|
|
3297
3300
|
return (tree) => visit5(tree);
|
|
3298
3301
|
}
|
|
3299
|
-
var MARKDOWN_SKELETON_LINES = 3;
|
|
3300
|
-
var SKELETON_SECTION_PARAGRAPHS = [
|
|
3301
|
-
|
|
3302
|
-
|
|
3302
|
+
var MARKDOWN_SKELETON_LINES = { phone: 3, md: 3, lg: 3 };
|
|
3303
|
+
var SKELETON_SECTION_PARAGRAPHS = [
|
|
3304
|
+
{ phone: 3, md: 3, lg: 3 },
|
|
3305
|
+
{ phone: 2, md: 2, lg: 2 }
|
|
3306
|
+
];
|
|
3307
|
+
var SKELETON_TITLE_LINES = { phone: 2, md: 1, lg: 1 };
|
|
3308
|
+
var SKELETON_LEAD_LINES = { phone: 5, md: 3, lg: 3 };
|
|
3303
3309
|
var MARKDOWN_RENDERER_CLASS = "simple-markdown-renderer";
|
|
3304
3310
|
var RENDERER_CLASS = MARKDOWN_RENDERER_CLASS;
|
|
3305
3311
|
var CONTENT_WRAPPER_CLASS = "max-w-none";
|
|
@@ -3452,13 +3458,7 @@ var MarkdownEngine = _react.memo.call(void 0, function MarkdownEngineGate(props)
|
|
|
3452
3458
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEngineImpl, { ...props });
|
|
3453
3459
|
});
|
|
3454
3460
|
function ParagraphBar({ lines, className }) {
|
|
3455
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3456
|
-
}
|
|
3457
|
-
function LinesByBreakpoint({ lines, as = "div" }) {
|
|
3458
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3459
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as, lines: lines.phone, className: "w-full content-md:hidden" }),
|
|
3460
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as, lines: lines.wide, className: "hidden w-full content-md:flex" })
|
|
3461
|
-
] });
|
|
3461
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLinesByBreakpointSkeleton, { lines }) });
|
|
3462
3462
|
}
|
|
3463
3463
|
function MarkdownEngineSkeleton({
|
|
3464
3464
|
sections,
|
|
@@ -3473,12 +3473,12 @@ function MarkdownEngineSkeleton({
|
|
|
3473
3473
|
// `w-full`: bars have no width of their own, so in a shrink-to-fit parent (a flex item) the skeleton would be
|
|
3474
3474
|
// 0px wide where the loaded text fills its line.
|
|
3475
3475
|
/* @__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: [
|
|
3476
|
-
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,
|
|
3477
|
-
sections ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: paragraphClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3476
|
+
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, _chunkPMUCEUFQcjs.TextLinesByBreakpointSkeleton, { lines: SKELETON_TITLE_LINES, as: "span" }) }),
|
|
3477
|
+
sections ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: paragraphClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLinesByBreakpointSkeleton, { lines: SKELETON_LEAD_LINES }) }) : null,
|
|
3478
3478
|
sections ? (
|
|
3479
3479
|
// loading-standard-ok(ITEM_MARK): a document's sections are its markdown text; the loaded body has no items to mark
|
|
3480
3480
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: sections, children: () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
3481
|
-
/* @__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,
|
|
3481
|
+
/* @__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, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
3482
3482
|
SKELETON_SECTION_PARAGRAPHS.map((paragraphLines, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ParagraphBar, { lines: paragraphLines, className: paragraphClass }, index))
|
|
3483
3483
|
] }) })
|
|
3484
3484
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ParagraphBar, { lines, className: paragraphClass })
|
|
@@ -3539,7 +3539,7 @@ function onAskAiIntent(run) {
|
|
|
3539
3539
|
|
|
3540
3540
|
// src/components/chat/chat-appearance-context.tsx
|
|
3541
3541
|
|
|
3542
|
-
var ChatAppearanceContext = _react.createContext.call(void 0,
|
|
3542
|
+
var ChatAppearanceContext = _react.createContext.call(void 0, _chunk3W4ASAXNcjs.CHAT_APPEARANCE.CLASSIC);
|
|
3543
3543
|
function useChatAppearance() {
|
|
3544
3544
|
return _react.useContext.call(void 0, ChatAppearanceContext);
|
|
3545
3545
|
}
|
|
@@ -3578,7 +3578,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3578
3578
|
...props
|
|
3579
3579
|
}, ref) => {
|
|
3580
3580
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
3581
|
-
const isV2 = useChatAppearance() ===
|
|
3581
|
+
const isV2 = useChatAppearance() === _chunk3W4ASAXNcjs.CHAT_APPEARANCE.V2;
|
|
3582
3582
|
const handleApprove = async () => {
|
|
3583
3583
|
setIsProcessing(true);
|
|
3584
3584
|
try {
|
|
@@ -3601,7 +3601,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3601
3601
|
{
|
|
3602
3602
|
ref,
|
|
3603
3603
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3604
|
-
|
|
3604
|
+
_chunk4YBS4HIOcjs.CHAT_BLOCK_CLASS,
|
|
3605
3605
|
// v2: the thread owns the space below the card.
|
|
3606
3606
|
!isV2 && "mb-[var(--spacing-system-xsf)]",
|
|
3607
3607
|
className
|
|
@@ -3609,7 +3609,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3609
3609
|
...props,
|
|
3610
3610
|
children: [
|
|
3611
3611
|
/* @__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" }),
|
|
3612
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3612
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4YBS4HIOcjs.ApprovalWaitingLine, {}),
|
|
3613
3613
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3614
3614
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3615
3615
|
_chunkFCZAUK4Dcjs.Button,
|
|
@@ -3641,14 +3641,14 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3641
3641
|
children: "Reject"
|
|
3642
3642
|
}
|
|
3643
3643
|
)
|
|
3644
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3644
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4YBS4HIOcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3645
3645
|
]
|
|
3646
3646
|
}
|
|
3647
3647
|
);
|
|
3648
3648
|
}
|
|
3649
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]",
|
|
3649
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunk4YBS4HIOcjs.CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
3650
3650
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
|
|
3651
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3651
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4YBS4HIOcjs.ApprovalWaitingLine, {}),
|
|
3652
3652
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3653
3653
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3654
3654
|
_chunkFCZAUK4Dcjs.Button,
|
|
@@ -3680,7 +3680,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3680
3680
|
children: "Reject"
|
|
3681
3681
|
}
|
|
3682
3682
|
)
|
|
3683
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3683
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4YBS4HIOcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3684
3684
|
] });
|
|
3685
3685
|
}
|
|
3686
3686
|
);
|
|
@@ -3710,7 +3710,7 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
|
|
|
3710
3710
|
|
|
3711
3711
|
var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
3712
3712
|
({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
|
|
3713
|
-
const isV2 = useChatAppearance() ===
|
|
3713
|
+
const isV2 = useChatAppearance() === _chunk3W4ASAXNcjs.CHAT_APPEARANCE.V2;
|
|
3714
3714
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3715
3715
|
"div",
|
|
3716
3716
|
{
|
|
@@ -3726,7 +3726,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
|
3726
3726
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3727
3727
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
|
|
3728
3728
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h4", title, children: title }),
|
|
3729
|
-
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children:
|
|
3729
|
+
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunk3W4ASAXNcjs.formatTime.call(void 0, timestamp) })
|
|
3730
3730
|
] }),
|
|
3731
3731
|
body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
|
|
3732
3732
|
] })
|
|
@@ -3841,7 +3841,7 @@ var SystemEventMessage = _react.forwardRef.call(void 0, ({ text: text2, timestam
|
|
|
3841
3841
|
AiAssistantInfo,
|
|
3842
3842
|
{
|
|
3843
3843
|
ref,
|
|
3844
|
-
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3844
|
+
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW7OFAROYcjs.SquareAvatar, { alt: joined, fallback: joined, size: "lg", variant: "round", className: "shrink-0" }),
|
|
3845
3845
|
title: "Technician Joined",
|
|
3846
3846
|
body: `You're now chatting with ${joined}.`,
|
|
3847
3847
|
timestamp,
|
|
@@ -3965,7 +3965,7 @@ function nullableText(value) {
|
|
|
3965
3965
|
}
|
|
3966
3966
|
function httpsUrl(value) {
|
|
3967
3967
|
const candidate = text(value);
|
|
3968
|
-
if (!candidate ||
|
|
3968
|
+
if (!candidate || _chunkMDLT6D46cjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
3969
3969
|
try {
|
|
3970
3970
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
3971
3971
|
} catch (e4) {
|
|
@@ -4572,7 +4572,7 @@ var thoughtMdClasses = [
|
|
|
4572
4572
|
var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
4573
4573
|
({ className, text: text2, isStreaming = false, ...props }, ref) => {
|
|
4574
4574
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4575
|
-
const { innerRef, isOverflowing, containerStyle } =
|
|
4575
|
+
const { innerRef, isOverflowing, containerStyle } = _chunk4YBS4HIOcjs.useCollapsible.call(void 0, {
|
|
4576
4576
|
expanded,
|
|
4577
4577
|
collapsedHeight: 19,
|
|
4578
4578
|
disableTransition: isStreaming
|
|
@@ -4587,7 +4587,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
4587
4587
|
setExpanded(!expanded);
|
|
4588
4588
|
}
|
|
4589
4589
|
};
|
|
4590
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
4590
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk4YBS4HIOcjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4591
4591
|
"div",
|
|
4592
4592
|
{
|
|
4593
4593
|
role: "button",
|
|
@@ -4605,7 +4605,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
4605
4605
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOEP5KAT6cjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
4606
4606
|
] }),
|
|
4607
4607
|
/* @__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: escapeThinkingTags(text2), textSize: "compact" }) }) }),
|
|
4608
|
-
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4608
|
+
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4YBS4HIOcjs.ExpandChevron, { expanded }) })
|
|
4609
4609
|
]
|
|
4610
4610
|
}
|
|
4611
4611
|
) });
|
|
@@ -4744,7 +4744,7 @@ function renderQuickActionIcon(icon) {
|
|
|
4744
4744
|
if (!spec.name && !spec.url) return void 0;
|
|
4745
4745
|
const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
|
|
4746
4746
|
const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
|
|
4747
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4747
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMDLT6D46cjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
|
|
4748
4748
|
}
|
|
4749
4749
|
function composeChipLabel(label, lozenge) {
|
|
4750
4750
|
if (!lozenge) return label;
|
|
@@ -4784,17 +4784,17 @@ function QuickActionChipSkeleton({
|
|
|
4784
4784
|
}) {
|
|
4785
4785
|
const question = variant === "question";
|
|
4786
4786
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4787
|
-
|
|
4787
|
+
_chunkW7OFAROYcjs.Tag,
|
|
4788
4788
|
{
|
|
4789
4789
|
..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props),
|
|
4790
4790
|
variant: "outline",
|
|
4791
4791
|
size: question || fill ? "sentence" : size,
|
|
4792
4792
|
className: _chunk63A4GZMBcjs.cn.call(void 0, question && "max-w-full", fill && FILL_TAG_CLASS, className),
|
|
4793
|
-
icon: icon && !question ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4793
|
+
icon: icon && !question ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { as: "span", "aria-hidden": true, className: size === "large" ? "block size-5" : "block size-4" }) : void 0,
|
|
4794
4794
|
label: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4795
|
-
lozenge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4795
|
+
lozenge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { as: "span", "aria-hidden": true, className: "mr-2 inline-block h-[16px] w-[26px] translate-y-[2px]" }),
|
|
4796
4796
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4797
|
-
|
|
4797
|
+
_chunkPMUCEUFQcjs.UnifiedSkeleton,
|
|
4798
4798
|
{
|
|
4799
4799
|
as: "span",
|
|
4800
4800
|
"aria-hidden": true,
|
|
@@ -4851,7 +4851,7 @@ function QuickActionChipButton({
|
|
|
4851
4851
|
const tagSize = question || fill ? "sentence" : size;
|
|
4852
4852
|
if (!interactive) {
|
|
4853
4853
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4854
|
-
|
|
4854
|
+
_chunkW7OFAROYcjs.Tag,
|
|
4855
4855
|
{
|
|
4856
4856
|
...markers,
|
|
4857
4857
|
variant: tagVariant,
|
|
@@ -4880,7 +4880,7 @@ function QuickActionChipButton({
|
|
|
4880
4880
|
className
|
|
4881
4881
|
),
|
|
4882
4882
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4883
|
-
|
|
4883
|
+
_chunkW7OFAROYcjs.Tag,
|
|
4884
4884
|
{
|
|
4885
4885
|
variant: tagVariant,
|
|
4886
4886
|
size: tagSize,
|
|
@@ -4956,9 +4956,9 @@ var iconTint = {
|
|
|
4956
4956
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
4957
4957
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
4958
4958
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4959
|
-
const { innerRef, containerStyle } =
|
|
4959
|
+
const { innerRef, containerStyle } = _chunk4YBS4HIOcjs.useCollapsible.call(void 0, { expanded });
|
|
4960
4960
|
const hasDetails = Boolean(details);
|
|
4961
|
-
const isV2 = useChatAppearance() ===
|
|
4961
|
+
const isV2 = useChatAppearance() === _chunk3W4ASAXNcjs.CHAT_APPEARANCE.V2;
|
|
4962
4962
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4963
4963
|
"div",
|
|
4964
4964
|
{
|
|
@@ -4992,7 +4992,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4992
4992
|
children: title
|
|
4993
4993
|
}
|
|
4994
4994
|
),
|
|
4995
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4995
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4YBS4HIOcjs.ExpandChevron, { expanded })
|
|
4996
4996
|
]
|
|
4997
4997
|
}
|
|
4998
4998
|
),
|
|
@@ -5040,19 +5040,19 @@ function MspOrganizationCard({
|
|
|
5040
5040
|
const trailing = action && loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.InertWhileLoading, { children: action }) : action;
|
|
5041
5041
|
if (footer) {
|
|
5042
5042
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, FOOTER_FRAME_CLASS, className), children: [
|
|
5043
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5043
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW7OFAROYcjs.SquareAvatar, { loading, src: logoUrl, alt: name, fallback: name, size: "sm", variant: "square" }),
|
|
5044
5044
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TEXT_STACK_CLASS, children: [
|
|
5045
5045
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: FOOTER_CAPTION_CLASS, children: FOOTER_CAPTION }),
|
|
5046
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5046
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.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)) })
|
|
5047
5047
|
] }),
|
|
5048
5048
|
trailing
|
|
5049
5049
|
] });
|
|
5050
5050
|
}
|
|
5051
5051
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, CARD_FRAME_CLASS, className), children: [
|
|
5052
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5052
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW7OFAROYcjs.SquareAvatar, { loading, src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
|
|
5053
5053
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TEXT_STACK_CLASS, children: loading ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5054
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5055
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5054
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h3", className: "w-3/5" }),
|
|
5055
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h4", className: "w-2/5" })
|
|
5056
5056
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5057
5057
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h3", children: _nullishCoalesce(title, () => ( `Your IT is managed by ${name}`)) }),
|
|
5058
5058
|
website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
|
|
@@ -5072,7 +5072,7 @@ var ConnectionIndicator = ({ status }) => {
|
|
|
5072
5072
|
case "connected":
|
|
5073
5073
|
return "bg-ods-success";
|
|
5074
5074
|
case "connecting":
|
|
5075
|
-
return `bg-ods-warning ${
|
|
5075
|
+
return `bg-ods-warning ${_chunkPMUCEUFQcjs.LIVE_PULSE_CLASS}`;
|
|
5076
5076
|
case "disconnected":
|
|
5077
5077
|
return "bg-ods-error";
|
|
5078
5078
|
default:
|
|
@@ -5155,11 +5155,11 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
5155
5155
|
className: _chunk63A4GZMBcjs.cn.call(void 0, cardClasses, "absolute right-full top-0 mr-[var(--spacing-system-s)] hover:bg-ods-bg-hover")
|
|
5156
5156
|
}
|
|
5157
5157
|
),
|
|
5158
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: cardClasses, children: [
|
|
5158
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, cardClasses, !bare && "overflow-hidden"), children: [
|
|
5159
5159
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-4 px-4 py-3", children: [
|
|
5160
5160
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
5161
5161
|
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,
|
|
5162
|
-
|
|
5162
|
+
_chunkW7OFAROYcjs.SquareAvatar,
|
|
5163
5163
|
{
|
|
5164
5164
|
loading: isLoading,
|
|
5165
5165
|
src: userAvatar,
|
|
@@ -5171,8 +5171,8 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
5171
5171
|
}
|
|
5172
5172
|
),
|
|
5173
5173
|
isLoading ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
5174
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5175
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5174
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h3", className: "w-40" }),
|
|
5175
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h4", className: "w-28" })
|
|
5176
5176
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
5177
5177
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h3", children: userName }),
|
|
5178
5178
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-2", children: serverUrl && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -5215,7 +5215,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
5215
5215
|
name: "",
|
|
5216
5216
|
...mspOrganization,
|
|
5217
5217
|
loading: mspLoading || !mspOrganization,
|
|
5218
|
-
className: _chunk63A4GZMBcjs.cn.call(void 0, "rounded-none ring-0",
|
|
5218
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "rounded-none ring-0", _optionalChain([mspOrganization, 'optionalAccess', _80 => _80.className]))
|
|
5219
5219
|
}
|
|
5220
5220
|
)
|
|
5221
5221
|
] }),
|
|
@@ -5241,9 +5241,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
5241
5241
|
)
|
|
5242
5242
|
] }),
|
|
5243
5243
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5244
|
-
|
|
5244
|
+
_chunk4YBS4HIOcjs.TicketStatusTag,
|
|
5245
5245
|
{
|
|
5246
|
-
...
|
|
5246
|
+
..._chunk4YBS4HIOcjs.resolveStatusTagProps.call(void 0, {
|
|
5247
5247
|
status: ticketInfo.status,
|
|
5248
5248
|
statusKind: ticketInfo.statusKind,
|
|
5249
5249
|
statusName: ticketInfo.statusName,
|
|
@@ -5351,7 +5351,7 @@ function ContextMenuRow({
|
|
|
5351
5351
|
const loading = loadingProp || inScope && (label == null || label === "");
|
|
5352
5352
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5353
5353
|
icon != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CONTEXT_ICON_CLASS, children: icon }),
|
|
5354
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CONTEXT_LABEL_CLASS, children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5354
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CONTEXT_LABEL_CLASS, children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) : label }),
|
|
5355
5355
|
!loading && trailing
|
|
5356
5356
|
] });
|
|
5357
5357
|
if (loading) {
|
|
@@ -5781,7 +5781,7 @@ function InlineChip({
|
|
|
5781
5781
|
loading
|
|
5782
5782
|
}) {
|
|
5783
5783
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5784
|
-
|
|
5784
|
+
_chunkW7OFAROYcjs.Tag,
|
|
5785
5785
|
{
|
|
5786
5786
|
as: "span",
|
|
5787
5787
|
variant: "badge",
|
|
@@ -5882,11 +5882,11 @@ var remarkMentionChips = () => {
|
|
|
5882
5882
|
// src/components/chat/tool-execution-display.tsx
|
|
5883
5883
|
|
|
5884
5884
|
|
|
5885
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
5885
|
+
var COMMAND_BODY_KEYS = new Set(_chunk4YBS4HIOcjs.COMMAND_BODY_ARG_KEYS);
|
|
5886
5886
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
5887
5887
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
5888
5888
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
5889
|
-
const { innerRef, containerStyle } =
|
|
5889
|
+
const { innerRef, containerStyle } = _chunk4YBS4HIOcjs.useCollapsible.call(void 0, { expanded });
|
|
5890
5890
|
const isClient = assistantType === "fae";
|
|
5891
5891
|
const isClientView = variant === "client";
|
|
5892
5892
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -5929,7 +5929,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5929
5929
|
}
|
|
5930
5930
|
),
|
|
5931
5931
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
|
|
5932
|
-
!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,
|
|
5932
|
+
!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, _chunk4YBS4HIOcjs.ExpandChevron, { expanded: isExpanded }) })
|
|
5933
5933
|
] });
|
|
5934
5934
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5935
5935
|
"div",
|
|
@@ -5939,7 +5939,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5939
5939
|
// The command running block keeps its bordered box in both chats
|
|
5940
5940
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
5941
5941
|
"flex w-full flex-col overflow-hidden",
|
|
5942
|
-
|
|
5942
|
+
_chunk4YBS4HIOcjs.CHAT_BLOCK_FRAME_CLASS,
|
|
5943
5943
|
className
|
|
5944
5944
|
),
|
|
5945
5945
|
...props,
|
|
@@ -5950,7 +5950,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5950
5950
|
// It reads as a card: what was done, then one status line under it.
|
|
5951
5951
|
/* @__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: [
|
|
5952
5952
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
|
|
5953
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5953
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4YBS4HIOcjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
5954
5954
|
] })
|
|
5955
5955
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5956
5956
|
hasBody ? (
|
|
@@ -5969,9 +5969,9 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5969
5969
|
)
|
|
5970
5970
|
) : /* @__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 }),
|
|
5971
5971
|
/* @__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: [
|
|
5972
|
-
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5972
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4YBS4HIOcjs.ArgRow, { argKey: key, value }, key)),
|
|
5973
5973
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5974
|
-
|
|
5974
|
+
_chunk4YBS4HIOcjs.ResultBlock,
|
|
5975
5975
|
{
|
|
5976
5976
|
result: message.result,
|
|
5977
5977
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -6011,7 +6011,7 @@ function ChatMarkdownLink({
|
|
|
6011
6011
|
...anchorProps
|
|
6012
6012
|
}) {
|
|
6013
6013
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
6014
|
-
if (!runtime ||
|
|
6014
|
+
if (!runtime || _chunkTIVPOVIMcjs.navLinkTarget.call(void 0, runtime, href).isNewTab) {
|
|
6015
6015
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Anchor2, { href, className, ...anchorProps, children });
|
|
6016
6016
|
}
|
|
6017
6017
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Anchor2, { href, ...anchorProps, className: "no-underline", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InlineChip, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRD4RFX3Kcjs.BrowserWindowIcon, {}), label: children, className: "hover:bg-ods-bg-hover" }) });
|
|
@@ -6019,8 +6019,8 @@ function ChatMarkdownLink({
|
|
|
6019
6019
|
|
|
6020
6020
|
// src/components/chat/chat-message-layout.ts
|
|
6021
6021
|
var CHAT_MESSAGE_ROW_PADDING_CLASS = {
|
|
6022
|
-
[
|
|
6023
|
-
[
|
|
6022
|
+
[_chunk3W4ASAXNcjs.CHAT_APPEARANCE.CLASSIC]: "py-[var(--spacing-system-s)]",
|
|
6023
|
+
[_chunk3W4ASAXNcjs.CHAT_APPEARANCE.V2]: "py-[calc(var(--spacing-system-m)/2)]"
|
|
6024
6024
|
};
|
|
6025
6025
|
var CHAT_MESSAGE_STACK_CLASS = "grid min-w-0 grid-cols-1 gap-[var(--spacing-system-xxs)]";
|
|
6026
6026
|
var CHAT_MESSAGE_HEADER_CLASS = "flex items-center gap-[var(--spacing-system-xs)]";
|
|
@@ -6077,8 +6077,8 @@ var remarkStripCitations = () => {
|
|
|
6077
6077
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
6078
6078
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
6079
6079
|
function formatMessageTimestamp(timestamp) {
|
|
6080
|
-
const time =
|
|
6081
|
-
return
|
|
6080
|
+
const time = _chunk3W4ASAXNcjs.formatTime.call(void 0, timestamp);
|
|
6081
|
+
return _chunk4YBS4HIOcjs.isToday.call(void 0, timestamp) ? time : `${_chunk3W4ASAXNcjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
6082
6082
|
}
|
|
6083
6083
|
function normalizeContent(content) {
|
|
6084
6084
|
if (typeof content === "string") {
|
|
@@ -6134,7 +6134,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6134
6134
|
const isError = role === "error";
|
|
6135
6135
|
const inheritedAppearance = useChatAppearance();
|
|
6136
6136
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
6137
|
-
const isV2 = appearance ===
|
|
6137
|
+
const isV2 = appearance === _chunk3W4ASAXNcjs.CHAT_APPEARANCE.V2;
|
|
6138
6138
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isHuman ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
6139
6139
|
const isOtherPerson = isHuman && selfAuthorType !== void 0 && authorType !== "system" && authorType !== selfAuthorType;
|
|
6140
6140
|
const isUser = isHuman && !isOtherPerson;
|
|
@@ -6322,9 +6322,9 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6322
6322
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
6323
6323
|
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 ? (
|
|
6324
6324
|
// An agent with no picture shows its packaged mark, never initials.
|
|
6325
|
-
/* @__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,
|
|
6325
|
+
/* @__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, _chunk4YBS4HIOcjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
|
|
6326
6326
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6327
|
-
|
|
6327
|
+
_chunkW7OFAROYcjs.SquareAvatar,
|
|
6328
6328
|
{
|
|
6329
6329
|
src: avatar || void 0,
|
|
6330
6330
|
alt: displayName,
|
|
@@ -6340,7 +6340,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6340
6340
|
"div",
|
|
6341
6341
|
{
|
|
6342
6342
|
ref,
|
|
6343
|
-
className: _chunk63A4GZMBcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[
|
|
6343
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[_chunk3W4ASAXNcjs.CHAT_APPEARANCE.V2], className),
|
|
6344
6344
|
...props,
|
|
6345
6345
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SystemEventMessage, { text: name, timestamp }) })
|
|
6346
6346
|
}
|
|
@@ -6352,7 +6352,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6352
6352
|
ref,
|
|
6353
6353
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
6354
6354
|
"relative",
|
|
6355
|
-
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ?
|
|
6355
|
+
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ? _chunk3W4ASAXNcjs.CHAT_APPEARANCE.V2 : _chunk3W4ASAXNcjs.CHAT_APPEARANCE.CLASSIC],
|
|
6356
6356
|
className
|
|
6357
6357
|
),
|
|
6358
6358
|
...props,
|
|
@@ -6409,7 +6409,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6409
6409
|
);
|
|
6410
6410
|
} else if (segment.type === "approval_batch") {
|
|
6411
6411
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6412
|
-
|
|
6412
|
+
_chunk4YBS4HIOcjs.ApprovalBatchMessage,
|
|
6413
6413
|
{
|
|
6414
6414
|
data: segment.data,
|
|
6415
6415
|
status: segment.status,
|
|
@@ -6495,12 +6495,12 @@ function ChatMessageSkeleton({
|
|
|
6495
6495
|
const lines = Math.max(1, bodyLines);
|
|
6496
6496
|
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: [
|
|
6497
6497
|
(showAvatar || showName) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, CHAT_MESSAGE_HEADER_CLASS, isUser && "justify-end"), children: [
|
|
6498
|
-
showAvatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6499
|
-
showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6500
|
-
showName && showTime && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6498
|
+
showAvatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW7OFAROYcjs.SquareAvatar, { loading: true, sizePx: CHAT_MESSAGE_FACE_PX, variant: "round" }),
|
|
6499
|
+
showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "w-24" }),
|
|
6500
|
+
showName && showTime && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: _chunk63A4GZMBcjs.cn.call(void 0, "ml-auto", TIME_BAR_CLASS) })
|
|
6501
6501
|
] }),
|
|
6502
|
-
/* @__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,
|
|
6503
|
-
showTime && !showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6502
|
+
/* @__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, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h4", lines }) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHAT_MESSAGE_TEXT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h4", lines }) }) }),
|
|
6503
|
+
showTime && !showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: _chunk63A4GZMBcjs.cn.call(void 0, TIME_BAR_CLASS, isUser && "justify-self-end") })
|
|
6504
6504
|
] }) });
|
|
6505
6505
|
}
|
|
6506
6506
|
var CHAT_MESSAGE_LIST_SKELETON_MESSAGES = 6;
|
|
@@ -6683,7 +6683,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
6683
6683
|
approvalVariant,
|
|
6684
6684
|
selfAuthorType,
|
|
6685
6685
|
nameEveryTurn,
|
|
6686
|
-
appearance =
|
|
6686
|
+
appearance = _chunk3W4ASAXNcjs.CHAT_APPEARANCE.CLASSIC,
|
|
6687
6687
|
assistantIcon,
|
|
6688
6688
|
pendingApprovals,
|
|
6689
6689
|
hasNextPage,
|
|
@@ -7181,18 +7181,14 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
7181
7181
|
ChatMessageList.displayName = "ChatMessageList";
|
|
7182
7182
|
|
|
7183
7183
|
// src/utils/design-doc-readiness.ts
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
not_ready: { label: "Not ready", scheme: "default" }
|
|
7188
|
-
};
|
|
7189
|
-
var designDocReadiness = (completion) => completion.isComplete ? "ready" : "not_ready";
|
|
7184
|
+
function designDocStatusDisplay(doc) {
|
|
7185
|
+
return _nullishCoalesce(_nullishCoalesce(doc.lifecycle, () => ( doc.readiness)), () => ( null));
|
|
7186
|
+
}
|
|
7190
7187
|
function formatCompletionLabel(completion) {
|
|
7191
|
-
return `${completion.completed}/${completion.total}
|
|
7188
|
+
return `${completion.completed}/${completion.total} signed off`;
|
|
7192
7189
|
}
|
|
7193
7190
|
function formatCompletionLabelWithBlockers(completion) {
|
|
7194
7191
|
const base = formatCompletionLabel(completion);
|
|
7195
|
-
if (completion.isComplete) return `${DESIGN_DOC_READINESS_DISPLAY.ready.label} \xB7 ${base}`;
|
|
7196
7192
|
return completion.openBlocking > 0 ? `${base} \xB7 ${completion.openBlocking} blocking` : base;
|
|
7197
7193
|
}
|
|
7198
7194
|
|
|
@@ -7201,6 +7197,7 @@ var SOURCE_ICON_NAMES = {
|
|
|
7201
7197
|
// Doc tables
|
|
7202
7198
|
"openframe-docs": "openframe",
|
|
7203
7199
|
"data-room-docs": "shield",
|
|
7200
|
+
"company-policies": "book-open",
|
|
7204
7201
|
// CMS / programs
|
|
7205
7202
|
"blog-posts": "newspaper",
|
|
7206
7203
|
"product-releases": "rocket",
|
|
@@ -7280,6 +7277,7 @@ var SOURCE_LABELS_BY_TABLE = {
|
|
|
7280
7277
|
// Doc tables
|
|
7281
7278
|
"openframe-docs": "OpenFrame Docs",
|
|
7282
7279
|
"data-room-docs": "Data Room",
|
|
7280
|
+
"company-policies": "Company Policies",
|
|
7283
7281
|
// CMS / programs
|
|
7284
7282
|
"blog-posts": "Blog Posts",
|
|
7285
7283
|
"product-releases": "Product Releases",
|
|
@@ -7350,6 +7348,7 @@ var DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = {
|
|
|
7350
7348
|
// Doc tables
|
|
7351
7349
|
markdown: "openframe-docs",
|
|
7352
7350
|
data_room_doc: "data-room-docs",
|
|
7351
|
+
policy_doc: "company-policies",
|
|
7353
7352
|
// CMS / programs
|
|
7354
7353
|
blog_post: "blog-posts",
|
|
7355
7354
|
product_release: "product-releases",
|
|
@@ -7418,7 +7417,7 @@ function defaultDocumentTypeForTableId(tableId) {
|
|
|
7418
7417
|
}
|
|
7419
7418
|
|
|
7420
7419
|
// src/utils/source-grouping.ts
|
|
7421
|
-
var DOC_TABLE_TYPES = ["markdown", "data_room_doc"];
|
|
7420
|
+
var DOC_TABLE_TYPES = ["markdown", "data_room_doc", "policy_doc"];
|
|
7422
7421
|
function groupsByTable(documentType) {
|
|
7423
7422
|
return !DOC_TABLE_TYPES.includes(_nullishCoalesce(documentType, () => ( "")));
|
|
7424
7423
|
}
|
|
@@ -7549,7 +7548,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
7549
7548
|
|
|
7550
7549
|
[Attached: ${safeName}](${url})`;
|
|
7551
7550
|
}
|
|
7552
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
7551
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunk533QK4R6cjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
7553
7552
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
7554
7553
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
7555
7554
|
"gm"
|
|
@@ -7813,7 +7812,7 @@ function MarqueeWallFades({
|
|
|
7813
7812
|
}) });
|
|
7814
7813
|
}
|
|
7815
7814
|
function CloneCopy({ className, style, children }) {
|
|
7816
|
-
const ref =
|
|
7815
|
+
const ref = _chunkGRCOEICKcjs.useSuppressCloneFocus.call(void 0, true);
|
|
7817
7816
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, "aria-hidden": true, "data-marquee-copy": "clone", className, style, children });
|
|
7818
7817
|
}
|
|
7819
7818
|
function MarqueeWall({
|
|
@@ -7867,7 +7866,7 @@ function MarqueeWall({
|
|
|
7867
7866
|
ro.observe(copy);
|
|
7868
7867
|
return () => ro.disconnect();
|
|
7869
7868
|
}, [measure, marqueeMounted]);
|
|
7870
|
-
const { ref: observe, inView: nearViewport } =
|
|
7869
|
+
const { ref: observe, inView: nearViewport } = _chunkGRCOEICKcjs.useInView.call(void 0, {
|
|
7871
7870
|
rootMargin: _chunkNTPX5GXIcjs.NEAR_VIEWPORT_ROOT_MARGIN,
|
|
7872
7871
|
initial: true
|
|
7873
7872
|
});
|
|
@@ -7875,7 +7874,7 @@ function MarqueeWall({
|
|
|
7875
7874
|
observe(containerRef.current);
|
|
7876
7875
|
return () => observe(null);
|
|
7877
7876
|
}, [observe]);
|
|
7878
|
-
const autoplay =
|
|
7877
|
+
const autoplay = _chunkGRCOEICKcjs.useAutoplay.call(void 0, nearViewport);
|
|
7879
7878
|
const pointerInsideRef = _react.useRef.call(void 0, false);
|
|
7880
7879
|
const clearPointerInside = _react.useCallback.call(void 0, () => {
|
|
7881
7880
|
pointerInsideRef.current = false;
|
|
@@ -7888,7 +7887,7 @@ function MarqueeWall({
|
|
|
7888
7887
|
if (e.pointerType === "touch") return;
|
|
7889
7888
|
pointerInsideRef.current = false;
|
|
7890
7889
|
}, []);
|
|
7891
|
-
|
|
7890
|
+
_chunkGRCOEICKcjs.useResetOnPageHidden.call(void 0, clearPointerInside);
|
|
7892
7891
|
const draggingRef = _react.useRef.call(void 0, false);
|
|
7893
7892
|
const dragSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
7894
7893
|
const applyTransform = _react.useCallback.call(void 0,
|
|
@@ -7941,7 +7940,7 @@ function MarqueeWall({
|
|
|
7941
7940
|
if (!sync) return void 0;
|
|
7942
7941
|
return sync.register(member);
|
|
7943
7942
|
}, [sync, member]);
|
|
7944
|
-
const { posRef, wrap } =
|
|
7943
|
+
const { posRef, wrap } = _chunkGRCOEICKcjs.useMarqueeEngine.call(void 0, {
|
|
7945
7944
|
active: marqueeActive && autoplay.playing && isDriver,
|
|
7946
7945
|
speed,
|
|
7947
7946
|
isPaused: (now) => pauseOnHover && pointerInsideRef.current || draggingRef.current || now < dragSuppressUntilRef.current,
|
|
@@ -8449,9 +8448,9 @@ function chatDayLabel(timestamp, now = /* @__PURE__ */ new Date()) {
|
|
|
8449
8448
|
if (time >= startOfToday) return "Today";
|
|
8450
8449
|
const startOfYesterday = new Date(now.getFullYear(), now.getMonth(), now.getDate() - 1).getTime();
|
|
8451
8450
|
if (time >= startOfYesterday) return "Yesterday";
|
|
8452
|
-
return
|
|
8451
|
+
return _chunkW7OFAROYcjs.formatDateWithTimezone.call(void 0,
|
|
8453
8452
|
date,
|
|
8454
|
-
|
|
8453
|
+
_chunkW7OFAROYcjs.VIEWER_TIMEZONE,
|
|
8455
8454
|
{ day: "numeric", month: "short", year: date.getFullYear() === now.getFullYear() ? void 0 : "numeric" },
|
|
8456
8455
|
{ viewerLocale: true }
|
|
8457
8456
|
);
|
|
@@ -8655,7 +8654,7 @@ function MingoChatHistoryRow({
|
|
|
8655
8654
|
!loading && "cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent"
|
|
8656
8655
|
),
|
|
8657
8656
|
children: [
|
|
8658
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8657
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h4", className: _chunk3W4ASAXNcjs.SKELETON_TITLE_WIDTHS[skeletonIndex % _chunk3W4ASAXNcjs.SKELETON_TITLE_WIDTHS.length] }) : null,
|
|
8659
8658
|
!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,
|
|
8660
8659
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8661
8660
|
"span",
|
|
@@ -8725,7 +8724,7 @@ function MingoChatHistoryRow({
|
|
|
8725
8724
|
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")
|
|
8726
8725
|
),
|
|
8727
8726
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8728
|
-
|
|
8727
|
+
_chunkW7OFAROYcjs.SquareAvatar,
|
|
8729
8728
|
{
|
|
8730
8729
|
variant: "round",
|
|
8731
8730
|
sizePx: 24,
|
|
@@ -8756,7 +8755,7 @@ function MingoChatHistorySkeleton({ rows, className }) {
|
|
|
8756
8755
|
label: "Loading conversations",
|
|
8757
8756
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-hidden", className),
|
|
8758
8757
|
children: groups.map((count, group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, HISTORY_GROUP_CLASS, "shrink-0"), children: [
|
|
8759
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8758
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h5", className: "w-16" }),
|
|
8760
8759
|
/* @__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 }) }) })
|
|
8761
8760
|
] }, group))
|
|
8762
8761
|
}
|
|
@@ -8782,7 +8781,7 @@ function MingoChatHistory({
|
|
|
8782
8781
|
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
8783
8782
|
const groups = _react.useMemo.call(void 0, () => groupDialogs(dialogs), [dialogs]);
|
|
8784
8783
|
const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess', _171 => _171.trim, 'call', _172 => _172()]);
|
|
8785
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
8784
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunk3W4ASAXNcjs.useScrollFade.call(void 0, );
|
|
8786
8785
|
const onScroll = loadMore === "scroll";
|
|
8787
8786
|
const sentinelRef = useLoadMoreSentinel({
|
|
8788
8787
|
hasMore: hasMore && onScroll,
|
|
@@ -8845,8 +8844,8 @@ function MingoChatHistory({
|
|
|
8845
8844
|
]
|
|
8846
8845
|
}
|
|
8847
8846
|
),
|
|
8848
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8849
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8847
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, color: "var(--color-bg-card)", className: "h-12" }),
|
|
8848
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, color: "var(--color-bg-card)", className: "h-12" })
|
|
8850
8849
|
] }) });
|
|
8851
8850
|
}
|
|
8852
8851
|
|
|
@@ -8900,7 +8899,7 @@ function MingoWelcome({
|
|
|
8900
8899
|
} catch (e8) {
|
|
8901
8900
|
}
|
|
8902
8901
|
}, [promoStorage, promoStorageKey]);
|
|
8903
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
8902
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunk3W4ASAXNcjs.useScrollFade.call(void 0, );
|
|
8904
8903
|
const showPinnedRegion = !!dialogHistory || !historyLoading && !loadError;
|
|
8905
8904
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8906
8905
|
"div",
|
|
@@ -8932,7 +8931,7 @@ function MingoWelcome({
|
|
|
8932
8931
|
onScroll: updateScrollFade,
|
|
8933
8932
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
8934
8933
|
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: [
|
|
8935
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8934
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4YBS4HIOcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
8936
8935
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
8937
8936
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
8938
8937
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -8940,8 +8939,8 @@ function MingoWelcome({
|
|
|
8940
8939
|
] })
|
|
8941
8940
|
}
|
|
8942
8941
|
),
|
|
8943
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8944
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8942
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
8943
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
8945
8944
|
] }) })))),
|
|
8946
8945
|
showPinnedRegion && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col gap-[var(--spacing-system-m)]", children: [
|
|
8947
8946
|
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: [
|
|
@@ -9004,7 +9003,7 @@ function GuideWelcome({
|
|
|
9004
9003
|
children,
|
|
9005
9004
|
className
|
|
9006
9005
|
}) {
|
|
9007
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
9006
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunk3W4ASAXNcjs.useScrollFade.call(void 0, );
|
|
9008
9007
|
const inLoadingScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
9009
9008
|
const subtitleIsLoading = inLoadingScope || subtitleLoading && !subtitle;
|
|
9010
9009
|
const chipsAreLoading = inLoadingScope || quickActionsLoading && quickActions.length === 0;
|
|
@@ -9040,19 +9039,19 @@ function GuideWelcome({
|
|
|
9040
9039
|
icon && (icon.name || icon.url) ? (
|
|
9041
9040
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
9042
9041
|
// match the default Mingo mark (48px).
|
|
9043
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9044
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9042
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMDLT6D46cjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
9043
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4YBS4HIOcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
9045
9044
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
9046
9045
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
9047
|
-
subtitleIsLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9046
|
+
subtitleIsLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.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
|
|
9048
9047
|
] })
|
|
9049
9048
|
] }),
|
|
9050
9049
|
children
|
|
9051
9050
|
]
|
|
9052
9051
|
}
|
|
9053
9052
|
),
|
|
9054
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9055
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9053
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
9054
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
9056
9055
|
] }),
|
|
9057
9056
|
(quickActions.length > 0 || chipsAreLoading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuickActionSet, { chips: chipItems, loading: chipsAreLoading, showTopic: showTopicProp })
|
|
9058
9057
|
] });
|
|
@@ -9122,17 +9121,17 @@ function MingoArchiveList({
|
|
|
9122
9121
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] px-[var(--spacing-system-xs)] pt-[var(--spacing-system-mf)]",
|
|
9123
9122
|
children: [
|
|
9124
9123
|
/* @__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" }),
|
|
9125
|
-
/* @__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,
|
|
9124
|
+
/* @__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, _chunk3W4ASAXNcjs.ChatListItemLoadingPage, { count: pageSize, trailing: true }) : dialogs.length > 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9126
9125
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9127
|
-
|
|
9126
|
+
_chunk3W4ASAXNcjs.ChatListItem,
|
|
9128
9127
|
{
|
|
9129
9128
|
"data-loading-item": true,
|
|
9130
9129
|
title: dialog.title || "Untitled Chat",
|
|
9131
9130
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _178 => _178(dialog.id)]),
|
|
9132
9131
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
9133
|
-
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children:
|
|
9132
|
+
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunk4YBS4HIOcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
9134
9133
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9135
|
-
|
|
9134
|
+
_chunkW7OFAROYcjs.SquareAvatar,
|
|
9136
9135
|
{
|
|
9137
9136
|
variant: "round",
|
|
9138
9137
|
sizePx: 24,
|
|
@@ -9265,7 +9264,7 @@ function MingoChatHeader({
|
|
|
9265
9264
|
!renaming && subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
9266
9265
|
] }),
|
|
9267
9266
|
avatar && (avatar.name || avatar.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9268
|
-
|
|
9267
|
+
_chunkW7OFAROYcjs.SquareAvatar,
|
|
9269
9268
|
{
|
|
9270
9269
|
variant: "round",
|
|
9271
9270
|
sizePx: 32,
|
|
@@ -9314,7 +9313,7 @@ function ChatHeaderSearchField({
|
|
|
9314
9313
|
className
|
|
9315
9314
|
}) {
|
|
9316
9315
|
const [value, setValue] = _react.useState.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
9317
|
-
const debounced =
|
|
9316
|
+
const debounced = _chunkGRCOEICKcjs.useDebounce.call(void 0, value, 300);
|
|
9318
9317
|
const lastEmitted = _react.useRef.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
9319
9318
|
const [exiting, setExiting] = _react.useState.call(void 0, false);
|
|
9320
9319
|
const collapsedRef = _react.useRef.call(void 0, false);
|
|
@@ -9471,7 +9470,7 @@ function SearchInput({
|
|
|
9471
9470
|
}) {
|
|
9472
9471
|
const [internalValue, setInternalValue] = _react.useState.call(void 0, defaultValue);
|
|
9473
9472
|
const currentValue = onChange ? _nullishCoalesce(value, () => ( "")) : internalValue;
|
|
9474
|
-
const debouncedValue =
|
|
9473
|
+
const debouncedValue = _chunkGRCOEICKcjs.useDebounce.call(void 0, currentValue, debounceMs);
|
|
9475
9474
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
9476
9475
|
const [highlightedIndex, setHighlightedIndex] = _react.useState.call(void 0, -1);
|
|
9477
9476
|
const keyboardPadding = _chunkFW7RKWPYcjs.useKeyboardCollisionPadding.call(void 0, );
|
|
@@ -9644,7 +9643,7 @@ function SearchInput({
|
|
|
9644
9643
|
};
|
|
9645
9644
|
const renderDropdownContent = () => {
|
|
9646
9645
|
if (isLoading) {
|
|
9647
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading results", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: loadingRows, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: SEARCH_RESULT_ROW_CLASS, "aria-hidden": true, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9646
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading results", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: loadingRows, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: SEARCH_RESULT_ROW_CLASS, "aria-hidden": true, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "w-2/3" }) }) }) });
|
|
9648
9647
|
}
|
|
9649
9648
|
if (flatResults.length === 0) {
|
|
9650
9649
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "px-4 py-3 text-ods-text-secondary text-h6", children: emptyResultsText });
|
|
@@ -9681,7 +9680,7 @@ function SearchInput({
|
|
|
9681
9680
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex-shrink-0 text-ods-text-secondary transition-colors duration-200 group-has-[:focus]:text-ods-accent [&_svg]:size-4 content-md:[&_svg]:size-6", children: startAdornment !== void 0 ? startAdornment : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, {}) }),
|
|
9682
9681
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: middleRef, className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden", children: [
|
|
9683
9682
|
visibleChips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9684
|
-
|
|
9683
|
+
_chunkW7OFAROYcjs.Tag,
|
|
9685
9684
|
{
|
|
9686
9685
|
variant: chipVariantToTagVariant(chip.variant),
|
|
9687
9686
|
label: chip.label,
|
|
@@ -9774,7 +9773,7 @@ function SearchInput({
|
|
|
9774
9773
|
)
|
|
9775
9774
|
] }),
|
|
9776
9775
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9777
|
-
|
|
9776
|
+
_chunk3W4ASAXNcjs.HiddenTagsPopup,
|
|
9778
9777
|
{
|
|
9779
9778
|
ref: hiddenTagsPopupRef,
|
|
9780
9779
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
@@ -9794,7 +9793,7 @@ function SearchInput({
|
|
|
9794
9793
|
}
|
|
9795
9794
|
),
|
|
9796
9795
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: measureRef, "aria-hidden": "true", className: "pointer-events-none fixed -left-[9999px] top-0 flex gap-2", children: filterChips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9797
|
-
|
|
9796
|
+
_chunkW7OFAROYcjs.Tag,
|
|
9798
9797
|
{
|
|
9799
9798
|
variant: chipVariantToTagVariant(chip.variant),
|
|
9800
9799
|
label: chip.label,
|
|
@@ -9817,7 +9816,7 @@ var ICON_BUTTON_CLASS = "size-6 p-0 text-ods-text-secondary transition-colors ho
|
|
|
9817
9816
|
var SKELETON_TITLE_WIDTHS2 = ["w-4/5", "w-3/5", "w-11/12", "w-2/3", "w-3/4", "w-1/2"];
|
|
9818
9817
|
function SkeletonRows({ count, offset = 0 }) {
|
|
9819
9818
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: count }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-10 shrink-0 items-center px-[var(--spacing-system-xs)]", "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9820
|
-
|
|
9819
|
+
_chunkPMUCEUFQcjs.UnifiedSkeleton,
|
|
9821
9820
|
{
|
|
9822
9821
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "h-4 rounded", SKELETON_TITLE_WIDTHS2[(i + offset) % SKELETON_TITLE_WIDTHS2.length])
|
|
9823
9822
|
}
|
|
@@ -9825,7 +9824,7 @@ function SkeletonRows({ count, offset = 0 }) {
|
|
|
9825
9824
|
}
|
|
9826
9825
|
function HistorySkeleton() {
|
|
9827
9826
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading chats", className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [5, 4].map((rows, group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
9828
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-7 items-center px-[var(--spacing-system-xs)]", "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9827
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-7 items-center px-[var(--spacing-system-xs)]", "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { className: "h-3.5 w-16 rounded" }) }),
|
|
9829
9828
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SkeletonRows, { count: rows, offset: group * 2 })
|
|
9830
9829
|
] }, rows)) });
|
|
9831
9830
|
}
|
|
@@ -9944,7 +9943,7 @@ function MingoChatHistorySection({
|
|
|
9944
9943
|
className
|
|
9945
9944
|
}) {
|
|
9946
9945
|
const captionId = _react.useId.call(void 0, );
|
|
9947
|
-
const visitor =
|
|
9946
|
+
const visitor = _chunkGRCOEICKcjs.useVisitorOs.call(void 0, );
|
|
9948
9947
|
const [searchOpen, setSearchOpen] = _reactusecontrollablestate.useControllableState.call(void 0, {
|
|
9949
9948
|
prop: searchOpenProp,
|
|
9950
9949
|
defaultProp: false,
|
|
@@ -9952,7 +9951,7 @@ function MingoChatHistorySection({
|
|
|
9952
9951
|
});
|
|
9953
9952
|
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _216 => _216.trim, 'call', _217 => _217()]);
|
|
9954
9953
|
const showSearch = searchOpen && !!onSearchChange;
|
|
9955
|
-
const shortcut = visitor.known ?
|
|
9954
|
+
const shortcut = visitor.known ? _chunkGRCOEICKcjs.shortcutLabel.call(void 0, visitor.os, "K") : null;
|
|
9956
9955
|
const listProps = {
|
|
9957
9956
|
dialogs,
|
|
9958
9957
|
activeDialogId,
|
|
@@ -10017,7 +10016,7 @@ function MingoChatHistorySection({
|
|
|
10017
10016
|
variant: "transparent",
|
|
10018
10017
|
size: "icon",
|
|
10019
10018
|
"aria-label": "Search chats",
|
|
10020
|
-
"aria-keyshortcuts": shortcut ?
|
|
10019
|
+
"aria-keyshortcuts": shortcut ? _chunkGRCOEICKcjs.usesCommandKey.call(void 0, visitor.os) ? "Meta+K" : "Control+K" : void 0,
|
|
10021
10020
|
onClick: () => setSearchOpen(true),
|
|
10022
10021
|
className: ICON_BUTTON_CLASS,
|
|
10023
10022
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { size: 20 })
|
|
@@ -10118,7 +10117,7 @@ function MingoChatSearchModal({
|
|
|
10118
10117
|
}
|
|
10119
10118
|
function SearchModalContent({ initialValue, onSearchChange, onClose, children }) {
|
|
10120
10119
|
const [value, setValue] = _react.useState.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
10121
|
-
const debounced =
|
|
10120
|
+
const debounced = _chunkGRCOEICKcjs.useDebounce.call(void 0, value, 300);
|
|
10122
10121
|
const lastSent = _react.useRef.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
10123
10122
|
const fieldRef = _react.useRef.call(void 0, null);
|
|
10124
10123
|
const send = (term) => {
|
|
@@ -10139,8 +10138,8 @@ function SearchModalContent({ initialValue, onSearchChange, onClose, children })
|
|
|
10139
10138
|
send("");
|
|
10140
10139
|
onClose();
|
|
10141
10140
|
};
|
|
10142
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10143
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10141
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3W4ASAXNcjs.Modal, { isOpen: true, onClose: close, className: "md:max-w-[600px]", children: [
|
|
10142
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ModalTitle, { children: "Search chats" }) }),
|
|
10144
10143
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: fieldRef, role: "search", "aria-label": "Search chats", className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10145
10144
|
SearchInput,
|
|
10146
10145
|
{
|
|
@@ -10196,7 +10195,7 @@ function SectionRow({
|
|
|
10196
10195
|
// A row that lands in a day already on screen (the next page) fades in too.
|
|
10197
10196
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "group/row relative shrink-0 duration-300 animate-in fade-in motion-reduce:animate-none", children: [
|
|
10198
10197
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10199
|
-
|
|
10198
|
+
_chunk3W4ASAXNcjs.ChatListItem,
|
|
10200
10199
|
{
|
|
10201
10200
|
active,
|
|
10202
10201
|
title,
|
|
@@ -10218,7 +10217,7 @@ function SectionRow({
|
|
|
10218
10217
|
children: [
|
|
10219
10218
|
glyph && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": glyph.label, className: "flex", children: glyph.icon }),
|
|
10220
10219
|
ownerName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10221
|
-
|
|
10220
|
+
_chunkW7OFAROYcjs.SquareAvatar,
|
|
10222
10221
|
{
|
|
10223
10222
|
role: "img",
|
|
10224
10223
|
"aria-label": `Owner: ${ownerName}`,
|
|
@@ -10363,7 +10362,7 @@ function MingoChatRailPanel({
|
|
|
10363
10362
|
if (loadError) {
|
|
10364
10363
|
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatListLoadError, { onRetry, className: "px-[var(--spacing-system-xs)] py-[var(--spacing-system-l)]" });
|
|
10365
10364
|
} else if (loading) {
|
|
10366
|
-
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10365
|
+
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ChatListItemLoadingPage, { count: pageSize });
|
|
10367
10366
|
} else if (dialogs.length === 0 && !draftTitle) {
|
|
10368
10367
|
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,
|
|
10369
10368
|
ChatListEmptyState,
|
|
@@ -10375,7 +10374,7 @@ function MingoChatRailPanel({
|
|
|
10375
10374
|
);
|
|
10376
10375
|
} else {
|
|
10377
10376
|
list = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10378
|
-
draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10377
|
+
draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ChatListItem, { active: true, title: draftTitle, tabIndex: -1, className: "cursor-default" }),
|
|
10379
10378
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10380
10379
|
MingoChatRailRow,
|
|
10381
10380
|
{
|
|
@@ -10397,13 +10396,13 @@ function MingoChatRailPanel({
|
|
|
10397
10396
|
] });
|
|
10398
10397
|
}
|
|
10399
10398
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10400
|
-
|
|
10399
|
+
_chunk3W4ASAXNcjs.ChatNavSidebar,
|
|
10401
10400
|
{
|
|
10402
10401
|
className,
|
|
10403
10402
|
"data-accent": "mingo",
|
|
10404
10403
|
"aria-label": "Mingo chats",
|
|
10405
10404
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
10406
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10405
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4YBS4HIOcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
10407
10406
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10408
10407
|
_chunkFCZAUK4Dcjs.Button,
|
|
10409
10408
|
{
|
|
@@ -10456,7 +10455,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
10456
10455
|
const title = dialog.title || "Untitled Chat";
|
|
10457
10456
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), className: "group/row relative shrink-0", children: [
|
|
10458
10457
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10459
|
-
|
|
10458
|
+
_chunk3W4ASAXNcjs.ChatListItem,
|
|
10460
10459
|
{
|
|
10461
10460
|
active,
|
|
10462
10461
|
title,
|
|
@@ -10674,8 +10673,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
10674
10673
|
const save = () => {
|
|
10675
10674
|
if (canSave) onSave(name.trim());
|
|
10676
10675
|
};
|
|
10677
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10678
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10676
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3W4ASAXNcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
10677
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
10679
10678
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
10680
10679
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3MBQRCQcjs.Label, { htmlFor: "rename-chat-input", variant: "large", children: "Chat Name" }),
|
|
10681
10680
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10692,27 +10691,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
10692
10691
|
}
|
|
10693
10692
|
)
|
|
10694
10693
|
] }),
|
|
10695
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10694
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3W4ASAXNcjs.ModalFooter, { children: [
|
|
10696
10695
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
10697
10696
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", type: "button", onClick: save, disabled: !canSave, className: footerBtn, children: "Save" })
|
|
10698
10697
|
] })
|
|
10699
10698
|
] });
|
|
10700
10699
|
}
|
|
10701
10700
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
10702
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10703
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10701
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3W4ASAXNcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
10702
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
10704
10703
|
/* @__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." }),
|
|
10705
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10704
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3W4ASAXNcjs.ModalFooter, { children: [
|
|
10706
10705
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
10707
10706
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "destructive", type: "button", onClick: onConfirm, className: footerBtn, children: "Archive Chat" })
|
|
10708
10707
|
] })
|
|
10709
10708
|
] });
|
|
10710
10709
|
}
|
|
10711
10710
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
10712
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10713
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10711
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3W4ASAXNcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
10712
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
10714
10713
|
/* @__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." }),
|
|
10715
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10714
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3W4ASAXNcjs.ModalFooter, { children: [
|
|
10716
10715
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
10717
10716
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", type: "button", onClick: onConfirm, className: footerBtn, children: "Unarchive Chat" })
|
|
10718
10717
|
] })
|
|
@@ -10885,7 +10884,7 @@ function ChatPanelHeader({
|
|
|
10885
10884
|
avatar && (avatar.name || avatar.avatarUrl) ? (
|
|
10886
10885
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
10887
10886
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10888
|
-
|
|
10887
|
+
_chunkW7OFAROYcjs.SquareAvatar,
|
|
10889
10888
|
{
|
|
10890
10889
|
variant: "round",
|
|
10891
10890
|
sizePx: 32,
|
|
@@ -11053,8 +11052,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
11053
11052
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
|
|
11054
11053
|
(!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
|
|
11055
11054
|
status === "sniffing" && "Checking the file",
|
|
11056
|
-
status === "uploading" && `${progress}% \xB7 ${
|
|
11057
|
-
status === "ready" &&
|
|
11055
|
+
status === "uploading" && `${progress}% \xB7 ${_chunkW7OFAROYcjs.formatFileSize.call(void 0, file.size)}`,
|
|
11056
|
+
status === "ready" && _chunkW7OFAROYcjs.formatFileSize.call(void 0, file.size),
|
|
11058
11057
|
status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
|
|
11059
11058
|
] })
|
|
11060
11059
|
] }),
|
|
@@ -11138,7 +11137,7 @@ function ChatContextMemoryBar({
|
|
|
11138
11137
|
if (!hasItems && !leading && !pending) return null;
|
|
11139
11138
|
if (!hasItems && !leading) {
|
|
11140
11139
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "aria-hidden": true, className: _chunk63A4GZMBcjs.cn.call(void 0, MEMORY_STRIP_CLASS, className), children: [
|
|
11141
|
-
/* @__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,
|
|
11140
|
+
/* @__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, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48 max-w-full" }) }),
|
|
11142
11141
|
/* @__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 }) })
|
|
11143
11142
|
] });
|
|
11144
11143
|
}
|
|
@@ -11317,13 +11316,13 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
11317
11316
|
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
11318
11317
|
const icon = getProviderIcon(provider);
|
|
11319
11318
|
const name = displayName || modelName;
|
|
11320
|
-
const isV2 = useChatAppearance() ===
|
|
11319
|
+
const isV2 = useChatAppearance() === _chunk3W4ASAXNcjs.CHAT_APPEARANCE.V2;
|
|
11321
11320
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
11322
11321
|
if (isLoading) {
|
|
11323
11322
|
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: [
|
|
11324
|
-
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: PROVIDER_ICON_BOX_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11326
|
-
contextWindow != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11323
|
+
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: PROVIDER_ICON_BOX_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.MediaSkeleton.Icon, { size: "sm" }) }),
|
|
11324
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "w-24" }),
|
|
11325
|
+
contextWindow != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "ml-auto w-32" })
|
|
11327
11326
|
] });
|
|
11328
11327
|
}
|
|
11329
11328
|
const labelContent = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -11429,6 +11428,7 @@ ModelDisplay.displayName = "ModelDisplay";
|
|
|
11429
11428
|
// src/components/chat/chat-composer.tsx
|
|
11430
11429
|
|
|
11431
11430
|
|
|
11431
|
+
var TOP_STRIP_ROUNDING_CLASS = "rounded-t-[calc(var(--radius)_-_3px)]";
|
|
11432
11432
|
function ChatComposer({
|
|
11433
11433
|
archived = false,
|
|
11434
11434
|
lock = null,
|
|
@@ -11502,7 +11502,7 @@ function ChatComposer({
|
|
|
11502
11502
|
const showLegacyAttach = !contextEnabled && showAttachmentButton && !!onAddFiles;
|
|
11503
11503
|
const showFooterRow = showLegacyAttach || !!model || !!footerActions;
|
|
11504
11504
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11505
|
-
|
|
11505
|
+
_chunk3W4ASAXNcjs.ChatInput,
|
|
11506
11506
|
{
|
|
11507
11507
|
ref: inputRef,
|
|
11508
11508
|
onSend,
|
|
@@ -11548,7 +11548,7 @@ function ChatComposer({
|
|
|
11548
11548
|
// `border-b`) stack flush above the input; the card owns the border
|
|
11549
11549
|
// / radius / focus ring. No `overflow-hidden` so the picker and the
|
|
11550
11550
|
// memory popover can float above the input (whichever strip comes
|
|
11551
|
-
// first gets `
|
|
11551
|
+
// first gets `TOP_STRIP_ROUNDING_CLASS`).
|
|
11552
11552
|
// `has-[[data-editor]:focus]` (not `focus-within`) so the accent
|
|
11553
11553
|
// border reacts ONLY to the composer editor — not the picker's search
|
|
11554
11554
|
// input or item buttons, which also live inside this card. The editor
|
|
@@ -11564,7 +11564,7 @@ function ChatComposer({
|
|
|
11564
11564
|
resolveIcon: resolveContextIcon,
|
|
11565
11565
|
disabled: sending || locked,
|
|
11566
11566
|
leading: contextLeading,
|
|
11567
|
-
className:
|
|
11567
|
+
className: TOP_STRIP_ROUNDING_CLASS
|
|
11568
11568
|
}
|
|
11569
11569
|
),
|
|
11570
11570
|
selected.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11577,7 +11577,7 @@ function ChatComposer({
|
|
|
11577
11577
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
11578
11578
|
"border-b border-ods-border bg-ods-bg p-2",
|
|
11579
11579
|
// Only the TOP strip rounds into the card corner.
|
|
11580
|
-
memory.length === 0 && !contextLeading &&
|
|
11580
|
+
memory.length === 0 && !contextLeading && TOP_STRIP_ROUNDING_CLASS
|
|
11581
11581
|
)
|
|
11582
11582
|
}
|
|
11583
11583
|
),
|
|
@@ -11692,7 +11692,7 @@ function ChatArchivePage(props) {
|
|
|
11692
11692
|
|
|
11693
11693
|
|
|
11694
11694
|
function useNavLinkTarget(href, targetPlatform, openIn) {
|
|
11695
|
-
return
|
|
11695
|
+
return _chunkTIVPOVIMcjs.navLinkTarget.call(void 0, _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, ), href, targetPlatform, { openIn });
|
|
11696
11696
|
}
|
|
11697
11697
|
function useNavLinkViaRuntime({
|
|
11698
11698
|
href,
|
|
@@ -11708,22 +11708,22 @@ function useNavLinkViaRuntime({
|
|
|
11708
11708
|
const onClick = (e) => {
|
|
11709
11709
|
_optionalChain([onClickProp, 'optionalCall', _249 => _249(e)]);
|
|
11710
11710
|
if (e.defaultPrevented) return;
|
|
11711
|
-
const handled =
|
|
11711
|
+
const handled = _chunkGRCOEICKcjs.executeNavigation.call(void 0, { event: e, runtime, href: resolvedHref, path, targetPlatform, openIn });
|
|
11712
11712
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _250 => _250.closeChat])) panel.closeChat();
|
|
11713
11713
|
};
|
|
11714
|
-
return { href: resolvedHref, ...
|
|
11714
|
+
return { href: resolvedHref, ..._chunkTIVPOVIMcjs.newTabAnchorAttrs.call(void 0, isNewTab, resolvedHref, targetPlatform), onClick };
|
|
11715
11715
|
}
|
|
11716
11716
|
function useNavigateViaRuntime() {
|
|
11717
11717
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
11718
11718
|
return _react.useCallback.call(void 0,
|
|
11719
11719
|
({ href, path, targetPlatform, openIn, modifierEvent }) => {
|
|
11720
11720
|
if (!href) return;
|
|
11721
|
-
if (modifierEvent &&
|
|
11721
|
+
if (modifierEvent && _chunkTIVPOVIMcjs.isModifierClick.call(void 0, modifierEvent)) {
|
|
11722
11722
|
const button = _nullishCoalesce(modifierEvent.button, () => ( 0));
|
|
11723
|
-
if (button === 0 || button === 1)
|
|
11723
|
+
if (button === 0 || button === 1) _chunkGRCOEICKcjs.executeNewTabNavigation.call(void 0, { runtime, href, targetPlatform });
|
|
11724
11724
|
return;
|
|
11725
11725
|
}
|
|
11726
|
-
|
|
11726
|
+
_chunkGRCOEICKcjs.executeNavigationImperative.call(void 0, { runtime, href, path, targetPlatform, openIn });
|
|
11727
11727
|
},
|
|
11728
11728
|
[runtime]
|
|
11729
11729
|
);
|
|
@@ -11780,7 +11780,7 @@ function FooterAction({
|
|
|
11780
11780
|
loading
|
|
11781
11781
|
}) {
|
|
11782
11782
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading) {
|
|
11783
|
-
const mark = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
11783
|
+
const mark = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunkPMUCEUFQcjs.SKELETON_SURFACE_CLASS, "inline-block h-3 w-3 rounded-sm") });
|
|
11784
11784
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, inert: true, className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11785
11785
|
_chunkFCZAUK4Dcjs.Button,
|
|
11786
11786
|
{
|
|
@@ -11913,7 +11913,7 @@ function UserDisplay({
|
|
|
11913
11913
|
compact = false,
|
|
11914
11914
|
className
|
|
11915
11915
|
}) {
|
|
11916
|
-
const avatarSrc =
|
|
11916
|
+
const avatarSrc = _chunk533QK4R6cjs.useProxiedImageUrl.call(void 0, avatarUrl);
|
|
11917
11917
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) {
|
|
11918
11918
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11919
11919
|
UserDisplaySkeleton,
|
|
@@ -11927,7 +11927,7 @@ function UserDisplay({
|
|
|
11927
11927
|
);
|
|
11928
11928
|
}
|
|
11929
11929
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, USER_ROW_CLASS, className), children: [
|
|
11930
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11930
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW7OFAROYcjs.SquareAvatar, { src: avatarSrc || void 0, fallback: name, alt: name, sizePx: size, variant: shape }),
|
|
11931
11931
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: USER_TEXT_CLASS, children: [
|
|
11932
11932
|
/* @__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 }),
|
|
11933
11933
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
@@ -11942,10 +11942,10 @@ function UserDisplaySkeleton({
|
|
|
11942
11942
|
className
|
|
11943
11943
|
}) {
|
|
11944
11944
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, USER_ROW_CLASS, className), "aria-hidden": true, children: [
|
|
11945
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11945
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW7OFAROYcjs.SquareAvatar, { loading: true, sizePx: size, variant: shape }),
|
|
11946
11946
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: USER_TEXT_CLASS, children: [
|
|
11947
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11948
|
-
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11947
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: compact ? "h6" : "h4", className: "w-28" }),
|
|
11948
|
+
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "w-16" })
|
|
11949
11949
|
] })
|
|
11950
11950
|
] });
|
|
11951
11951
|
}
|
|
@@ -12053,7 +12053,7 @@ function ManagedCell({
|
|
|
12053
12053
|
}) {
|
|
12054
12054
|
const hintedWidth = _react2.default.isValidElement(item) ? item.props["data-strip-cell-width"] : void 0;
|
|
12055
12055
|
const desktopWidth = typeof hintedWidth === "number" ? hintedWidth : cardWidthDesktop;
|
|
12056
|
-
const cloneRef =
|
|
12056
|
+
const cloneRef = _chunkGRCOEICKcjs.useSuppressCloneFocus.call(void 0, ctx.isClone);
|
|
12057
12057
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12058
12058
|
"div",
|
|
12059
12059
|
{
|
|
@@ -12171,12 +12171,12 @@ function CardsStrip(props) {
|
|
|
12171
12171
|
}, [measure, items.length, marqueeActive, isMobile]);
|
|
12172
12172
|
const chevronSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
12173
12173
|
const userScrollSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
12174
|
-
const { ref: observe, inView: nearViewport } =
|
|
12174
|
+
const { ref: observe, inView: nearViewport } = _chunkGRCOEICKcjs.useInView.call(void 0, { rootMargin: "200px", initial: true });
|
|
12175
12175
|
_react.useEffect.call(void 0, () => {
|
|
12176
12176
|
observe(wrapperRef.current);
|
|
12177
12177
|
return () => observe(null);
|
|
12178
12178
|
}, [observe]);
|
|
12179
|
-
const autoplay =
|
|
12179
|
+
const autoplay = _chunkGRCOEICKcjs.useAutoplay.call(void 0, nearViewport);
|
|
12180
12180
|
const [activeKey, setActiveKey] = _react.useState.call(void 0, null);
|
|
12181
12181
|
const activeKeyRef = _react.useRef.call(void 0, null);
|
|
12182
12182
|
const activate = _react.useCallback.call(void 0, (key) => {
|
|
@@ -12223,7 +12223,7 @@ function CardsStrip(props) {
|
|
|
12223
12223
|
const current = activeKeyRef.current;
|
|
12224
12224
|
if (current !== null) deactivate(current);
|
|
12225
12225
|
}, [deactivate]);
|
|
12226
|
-
|
|
12226
|
+
_chunkGRCOEICKcjs.useResetOnPageHidden.call(void 0, clearHover);
|
|
12227
12227
|
const syncHoverIfScrolled = _react.useCallback.call(void 0, () => {
|
|
12228
12228
|
const scroller = scrollerRef.current;
|
|
12229
12229
|
if (!scroller) return;
|
|
@@ -12244,7 +12244,7 @@ function CardsStrip(props) {
|
|
|
12244
12244
|
},
|
|
12245
12245
|
[reverse, seamBuffer]
|
|
12246
12246
|
);
|
|
12247
|
-
const { posRef: marqueePosRef, glideBy } =
|
|
12247
|
+
const { posRef: marqueePosRef, glideBy } = _chunkGRCOEICKcjs.useMarqueeEngine.call(void 0, {
|
|
12248
12248
|
// Viewport gates `active` (the rAF fully stops off-screen — a paused
|
|
12249
12249
|
// engine would keep scheduling frames forever), same treatment as
|
|
12250
12250
|
// <MarqueeWall>; the envelope persists, so re-entry resumes at cruise.
|
|
@@ -12381,7 +12381,7 @@ function CardsStrip(props) {
|
|
|
12381
12381
|
}
|
|
12382
12382
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ManagedCell, { item, ctx, cardWidthMobile, cardWidthDesktop });
|
|
12383
12383
|
};
|
|
12384
|
-
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
12384
|
+
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunk533QK4R6cjs.SECTION_HEADING_CLASS} break-words`, children: _chunk533QK4R6cjs.accentSentenceMarks.call(void 0, title) });
|
|
12385
12385
|
if (items.length === 0) {
|
|
12386
12386
|
if (!inScope || !skeleton) return null;
|
|
12387
12387
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className), children: [
|
|
@@ -12571,7 +12571,7 @@ var VIDEO_BITES_SKELETON_COUNT = Math.ceil(
|
|
|
12571
12571
|
);
|
|
12572
12572
|
function VideoBitesStrip({
|
|
12573
12573
|
bites,
|
|
12574
|
-
title =
|
|
12574
|
+
title = _chunkMDLT6D46cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
12575
12575
|
showTitle = true,
|
|
12576
12576
|
filterPublished = true,
|
|
12577
12577
|
profile = null,
|
|
@@ -12584,7 +12584,7 @@ function VideoBitesStrip({
|
|
|
12584
12584
|
cardHeightMobile = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX,
|
|
12585
12585
|
showChevrons = true,
|
|
12586
12586
|
onBiteNavigate,
|
|
12587
|
-
sortComparator =
|
|
12587
|
+
sortComparator = _chunkMDLT6D46cjs.sortBitesByCreatedAtDesc,
|
|
12588
12588
|
skeletonCount,
|
|
12589
12589
|
className
|
|
12590
12590
|
}) {
|
|
@@ -12673,7 +12673,7 @@ function VideoBiteCardSkeleton({ aspect = "9:16", height, heightMobile, classNam
|
|
|
12673
12673
|
{
|
|
12674
12674
|
className: _chunk63A4GZMBcjs.cn.call(void 0, BITE_MEDIA_CLASS, height !== void 0 && BITE_MEDIA_FIXED_HEIGHT_CLASS),
|
|
12675
12675
|
style: biteMediaStyle(cssAspect, height, heightMobile),
|
|
12676
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12676
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { className: "absolute inset-0 h-full rounded-none" })
|
|
12677
12677
|
}
|
|
12678
12678
|
)
|
|
12679
12679
|
}
|
|
@@ -12682,7 +12682,7 @@ function VideoBiteCardSkeleton({ aspect = "9:16", height, heightMobile, classNam
|
|
|
12682
12682
|
function VideoBitesStripSkeleton({
|
|
12683
12683
|
count = VIDEO_BITES_SKELETON_COUNT,
|
|
12684
12684
|
aspect = "9:16",
|
|
12685
|
-
title =
|
|
12685
|
+
title = _chunkMDLT6D46cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
12686
12686
|
showTitle = true,
|
|
12687
12687
|
headerSlot,
|
|
12688
12688
|
cardHeightDesktop = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX,
|
|
@@ -12814,7 +12814,7 @@ function VideoBiteCard({
|
|
|
12814
12814
|
style: biteMediaStyle(cssAspect, height, heightMobile),
|
|
12815
12815
|
children: [
|
|
12816
12816
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12817
|
-
|
|
12817
|
+
_chunkMDLT6D46cjs.VideoHoverPreviewSurface,
|
|
12818
12818
|
{
|
|
12819
12819
|
url: bite.url,
|
|
12820
12820
|
posterUrl: bite.thumbnail_url,
|
|
@@ -12886,7 +12886,7 @@ function EntityVideoSection({
|
|
|
12886
12886
|
title = "Video",
|
|
12887
12887
|
videoSummary,
|
|
12888
12888
|
videoBites,
|
|
12889
|
-
bitesTitle =
|
|
12889
|
+
bitesTitle = _chunkMDLT6D46cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
12890
12890
|
filterPublishedBites = true,
|
|
12891
12891
|
bitesProfile = null,
|
|
12892
12892
|
bitesHref,
|
|
@@ -12921,7 +12921,7 @@ function EntityVideoSection({
|
|
|
12921
12921
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
12922
12922
|
] }),
|
|
12923
12923
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12924
|
-
|
|
12924
|
+
_chunkMDLT6D46cjs.Video,
|
|
12925
12925
|
{
|
|
12926
12926
|
kind: fullVideoKind,
|
|
12927
12927
|
url: fullVideoUrl,
|
|
@@ -12933,7 +12933,7 @@ function EntityVideoSection({
|
|
|
12933
12933
|
}
|
|
12934
12934
|
) }),
|
|
12935
12935
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12936
|
-
|
|
12936
|
+
_chunkMDLT6D46cjs.Video,
|
|
12937
12937
|
{
|
|
12938
12938
|
url: highlightVideoUrl,
|
|
12939
12939
|
poster: highlightVideoThumbnail,
|
|
@@ -12942,7 +12942,7 @@ function EntityVideoSection({
|
|
|
12942
12942
|
}
|
|
12943
12943
|
) })
|
|
12944
12944
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12945
|
-
|
|
12945
|
+
_chunkMDLT6D46cjs.Video,
|
|
12946
12946
|
{
|
|
12947
12947
|
kind: fullVideoKind,
|
|
12948
12948
|
url: fullVideoUrl,
|
|
@@ -12953,7 +12953,7 @@ function EntityVideoSection({
|
|
|
12953
12953
|
priority
|
|
12954
12954
|
}
|
|
12955
12955
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12956
|
-
|
|
12956
|
+
_chunkMDLT6D46cjs.Video,
|
|
12957
12957
|
{
|
|
12958
12958
|
url: highlightVideoUrl,
|
|
12959
12959
|
poster: highlightVideoThumbnail,
|
|
@@ -12963,7 +12963,7 @@ function EntityVideoSection({
|
|
|
12963
12963
|
}
|
|
12964
12964
|
) : null),
|
|
12965
12965
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
12966
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
12966
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunk533QK4R6cjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
12967
12967
|
/* @__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 }) })
|
|
12968
12968
|
] }),
|
|
12969
12969
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12982,13 +12982,13 @@ function EntityVideoSection({
|
|
|
12982
12982
|
] });
|
|
12983
12983
|
}
|
|
12984
12984
|
function EntityVideoSectionSkeleton({ tabs = false, className }) {
|
|
12985
|
-
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12985
|
+
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMDLT6D46cjs.Video, { loading: true, url: "", layout: "centered", className });
|
|
12986
12986
|
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: [
|
|
12987
12987
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TabsList, { className: VIDEO_TAB_LIST_CLASS, children: [
|
|
12988
12988
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "full-video", className: VIDEO_TAB_TRIGGER_CLASS, children: FULL_VIDEO_TAB_LABEL }),
|
|
12989
12989
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
12990
12990
|
] }),
|
|
12991
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12991
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMDLT6D46cjs.Video, { loading: true, url: "", layout: "centered" }) })
|
|
12992
12992
|
] });
|
|
12993
12993
|
}
|
|
12994
12994
|
|
|
@@ -13080,7 +13080,7 @@ function ChatCardDisclosureButton({
|
|
|
13080
13080
|
{
|
|
13081
13081
|
label,
|
|
13082
13082
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "!h-3 !w-3" }),
|
|
13083
|
-
trailingIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13083
|
+
trailingIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4YBS4HIOcjs.ExpandChevron, { expanded: open, className: "!h-3 !w-3" }),
|
|
13084
13084
|
onClick: (e) => {
|
|
13085
13085
|
e.preventDefault();
|
|
13086
13086
|
e.stopPropagation();
|
|
@@ -13094,7 +13094,7 @@ function ChatCardDisclosureButton({
|
|
|
13094
13094
|
);
|
|
13095
13095
|
}
|
|
13096
13096
|
function DisclosurePanel({ open, children }) {
|
|
13097
|
-
const { innerRef, containerStyle } =
|
|
13097
|
+
const { innerRef, containerStyle } = _chunk4YBS4HIOcjs.useCollapsible.call(void 0, { expanded: open });
|
|
13098
13098
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, children }) });
|
|
13099
13099
|
}
|
|
13100
13100
|
function useChatCardDisclosure(kind, chatRef, { reserve = false } = {}) {
|
|
@@ -13146,37 +13146,37 @@ function designDocPeople(doc) {
|
|
|
13146
13146
|
return people;
|
|
13147
13147
|
}
|
|
13148
13148
|
function designDocMetaLine(doc) {
|
|
13149
|
-
return [_optionalChain([doc, 'access', _296 => _296.author, 'optionalAccess', _297 => _297.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
13149
|
+
return [_optionalChain([doc, 'access', _296 => _296.author, 'optionalAccess', _297 => _297.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunk533QK4R6cjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
13150
13150
|
}
|
|
13151
13151
|
var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
|
|
13152
13152
|
var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
|
|
13153
13153
|
var DESIGN_DOC_CARD_HEADING = "flex min-w-0 flex-1 flex-col";
|
|
13154
|
-
var DESIGN_DOC_CARD_TITLE_ROW = `flex items-center text-h3 ${
|
|
13155
|
-
var DESIGN_DOC_CARD_META_ROW = `flex items-center text-h5 ${
|
|
13156
|
-
var DESIGN_DOC_CARD_SUMMARY_ROW = `flex items-center text-h4 ${
|
|
13154
|
+
var DESIGN_DOC_CARD_TITLE_ROW = `flex items-center text-h3 ${_chunkPMUCEUFQcjs.TEXT_LINES_MIN[2]}`;
|
|
13155
|
+
var DESIGN_DOC_CARD_META_ROW = `flex items-center text-h5 ${_chunkPMUCEUFQcjs.TEXT_LINES_MIN[1]}`;
|
|
13156
|
+
var DESIGN_DOC_CARD_SUMMARY_ROW = `flex items-center text-h4 ${_chunkPMUCEUFQcjs.TEXT_LINES_MIN[3]}`;
|
|
13157
13157
|
var DESIGN_DOC_CARD_FOOTER = "flex w-full items-center justify-between gap-2";
|
|
13158
13158
|
function DesignDocCardSkeleton({ className } = {}) {
|
|
13159
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
13159
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunkMDLT6D46cjs.CONTENT_CARD_SKELETON_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className), "aria-hidden": true, children: [
|
|
13160
13160
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
13161
13161
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADING, children: [
|
|
13162
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13163
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13162
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h3", lines: 2, className: "w-3/4" }) }),
|
|
13163
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h5", className: "w-1/3" }) })
|
|
13164
13164
|
] }),
|
|
13165
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13165
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMDLT6D46cjs.StatusBadge, { loading: true, text: "", variant: "button", className: "hidden md:inline-flex" })
|
|
13166
13166
|
] }),
|
|
13167
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13168
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13167
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMDLT6D46cjs.StatusBadge, { loading: true, text: "", variant: "button" }) }),
|
|
13168
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h4", lines: 3, className: "w-full" }) }),
|
|
13169
13169
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
13170
13170
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
13171
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13172
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13171
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" }),
|
|
13172
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHTYJUMFBcjs.AvatarStack, { loading: true, people: [], max: 1, size: "xs", className: "shrink-0" })
|
|
13173
13173
|
] })
|
|
13174
13174
|
] });
|
|
13175
13175
|
}
|
|
13176
13176
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
13177
|
-
const
|
|
13177
|
+
const status = designDocStatusDisplay(doc);
|
|
13178
13178
|
const people = designDocPeople(doc);
|
|
13179
|
-
const link =
|
|
13179
|
+
const link = _chunkMDLT6D46cjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
13180
13180
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocCardSkeleton, { className });
|
|
13181
13181
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13182
13182
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
@@ -13184,26 +13184,17 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
13184
13184
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "line-clamp-2 flex-1 text-ods-text-primary text-h3", children: doc.title || "Untitled design doc" }) }),
|
|
13185
13185
|
/* @__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) }) })
|
|
13186
13186
|
] }),
|
|
13187
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13188
|
-
_chunkBIOSHDXQcjs.StatusBadge,
|
|
13189
|
-
{
|
|
13190
|
-
text: readiness.label,
|
|
13191
|
-
colorScheme: readiness.scheme,
|
|
13192
|
-
variant: "button",
|
|
13193
|
-
singleLine: true,
|
|
13194
|
-
className: "hidden md:inline-flex"
|
|
13195
|
-
}
|
|
13196
|
-
)
|
|
13187
|
+
status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk533QK4R6cjs.PaletteBadge, { text: status.label, color: status.color_scheme, className: "hidden md:inline-flex" }) : null
|
|
13197
13188
|
] }),
|
|
13198
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13189
|
+
status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk533QK4R6cjs.PaletteBadge, { text: status.label, color: status.color_scheme }) }) : null,
|
|
13199
13190
|
/* @__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 || "" }) }),
|
|
13200
13191
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
13201
13192
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
13202
13193
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: formatCompletionLabelWithBlockers(doc.completion) }),
|
|
13203
|
-
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13194
|
+
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHTYJUMFBcjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
13204
13195
|
] })
|
|
13205
13196
|
] });
|
|
13206
|
-
const outer = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
13197
|
+
const outer = _chunk63A4GZMBcjs.cn.call(void 0, _chunkMDLT6D46cjs.CONTENT_CARD_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className);
|
|
13207
13198
|
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 });
|
|
13208
13199
|
}
|
|
13209
13200
|
|
|
@@ -13311,7 +13302,7 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
13311
13302
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GitHubActivityCardSkeleton, { variant, className });
|
|
13312
13303
|
const kind = _nullishCoalesce(item.kind, () => ( "commit"));
|
|
13313
13304
|
const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
|
|
13314
|
-
const dateText =
|
|
13305
|
+
const dateText = _chunkW7OFAROYcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
13315
13306
|
const idLabel = formatActivityId(item.id, kind);
|
|
13316
13307
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
13317
13308
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
@@ -13345,26 +13336,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
13345
13336
|
metaParts.push(
|
|
13346
13337
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
13347
13338
|
);
|
|
13348
|
-
const href =
|
|
13339
|
+
const href = _chunkMDLT6D46cjs.safeHref.call(void 0, item.url);
|
|
13349
13340
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13350
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
13351
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
13352
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
13341
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
13342
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
13343
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkMDLT6D46cjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
13353
13344
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
13354
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
13345
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
13355
13346
|
] }),
|
|
13356
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
13347
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
13357
13348
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
13358
13349
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
13359
13350
|
] }, i)) }) }),
|
|
13360
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
13351
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_SUMMARY, children: _chunkMDLT6D46cjs.COMPACT_CARD_ROW_FILLER }) })
|
|
13361
13352
|
] }),
|
|
13362
13353
|
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
|
|
13363
13354
|
] });
|
|
13364
13355
|
if (anchorProps) {
|
|
13365
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
13356
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
13366
13357
|
}
|
|
13367
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
13358
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
13368
13359
|
}
|
|
13369
13360
|
function GitHubActivityCardSkeleton({
|
|
13370
13361
|
variant = "compact",
|
|
@@ -13372,18 +13363,18 @@ function GitHubActivityCardSkeleton({
|
|
|
13372
13363
|
}) {
|
|
13373
13364
|
if (variant === "row") {
|
|
13374
13365
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13375
|
-
|
|
13366
|
+
_chunkMDLT6D46cjs.ActivityRowSkeleton,
|
|
13376
13367
|
{
|
|
13377
13368
|
lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-28 shrink-0 items-center gap-2", children: [
|
|
13378
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13379
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13369
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 rounded" }),
|
|
13370
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { className: "h-3 w-16 rounded" })
|
|
13380
13371
|
] }),
|
|
13381
13372
|
trailingWidths: ["w-40", "w-20"],
|
|
13382
13373
|
className
|
|
13383
13374
|
}
|
|
13384
13375
|
);
|
|
13385
13376
|
}
|
|
13386
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13377
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMDLT6D46cjs.CompactCardSkeleton, { titleWidth: "w-2/3", rows: [{ width: "w-1/2" }, {}], trailingIcon: true, className });
|
|
13387
13378
|
}
|
|
13388
13379
|
|
|
13389
13380
|
// src/utils/url-fix.ts
|
|
@@ -13439,9 +13430,9 @@ function VendorIcon({
|
|
|
13439
13430
|
...props
|
|
13440
13431
|
}) {
|
|
13441
13432
|
const logoUrl = getVendorLogo(vendor);
|
|
13442
|
-
const logoSrc =
|
|
13433
|
+
const logoSrc = _chunk533QK4R6cjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
|
|
13443
13434
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13444
|
-
|
|
13435
|
+
_chunkW7OFAROYcjs.SquareAvatar,
|
|
13445
13436
|
{
|
|
13446
13437
|
src: logoUrl ? logoSrc || void 0 : void 0,
|
|
13447
13438
|
alt: `${vendor.title} logo`,
|
|
@@ -13473,8 +13464,8 @@ function useChatCardItem(type, id) {
|
|
|
13473
13464
|
const res = await _chunkGI3MMBP3cjs.embedAuthedFetch.call(void 0, url);
|
|
13474
13465
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
13475
13466
|
const data = await res.json();
|
|
13476
|
-
const items =
|
|
13477
|
-
const match = items.find((it) =>
|
|
13467
|
+
const items = _chunk533QK4R6cjs.extractCardItems.call(void 0, type, data);
|
|
13468
|
+
const match = items.find((it) => _chunk533QK4R6cjs.extractItemId.call(void 0, type, it) === id);
|
|
13478
13469
|
return _nullishCoalesce(match, () => ( null));
|
|
13479
13470
|
},
|
|
13480
13471
|
enabled: !!url && id.length > 0,
|
|
@@ -13516,15 +13507,15 @@ var TRAILING_CELL_LAYOUT = "w-[56px] md:w-[68px]";
|
|
|
13516
13507
|
function CardMedia({ imageSrc, imageAlt, icon }) {
|
|
13517
13508
|
if (imageSrc) {
|
|
13518
13509
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
|
|
13519
|
-
/* @__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:
|
|
13510
|
+
/* @__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: _chunkW7OFAROYcjs.personInitials.call(void 0, imageAlt) || "?" }),
|
|
13520
13511
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13521
|
-
|
|
13512
|
+
_chunkGG466XFQcjs.next_image_default,
|
|
13522
13513
|
{
|
|
13523
13514
|
src: imageSrc,
|
|
13524
13515
|
alt: imageAlt || "",
|
|
13525
13516
|
className: "relative block size-10 rounded-sm border border-ods-border object-cover",
|
|
13526
|
-
width:
|
|
13527
|
-
height:
|
|
13517
|
+
width: _chunkPMUCEUFQcjs.AVATAR_SIZE_PX.md,
|
|
13518
|
+
height: _chunkPMUCEUFQcjs.AVATAR_SIZE_PX.md,
|
|
13528
13519
|
unoptimized: true,
|
|
13529
13520
|
onError: (e) => {
|
|
13530
13521
|
const img = e.currentTarget;
|
|
@@ -13548,12 +13539,12 @@ function MingoInfoCardSkeleton({ className }) {
|
|
|
13548
13539
|
className
|
|
13549
13540
|
),
|
|
13550
13541
|
children: [
|
|
13551
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13542
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { as: "span", className: "block size-10 shrink-0 rounded-md border border-ods-border" }),
|
|
13552
13543
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-1 flex-col justify-center gap-1.5", children: [
|
|
13553
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13554
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13544
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { as: "span", className: "block h-4 w-1/2 rounded" }),
|
|
13545
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { as: "span", className: "block h-3 w-3/4 rounded" })
|
|
13555
13546
|
] }),
|
|
13556
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13547
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { as: "span", className: "block h-5 w-16 shrink-0 rounded" })
|
|
13557
13548
|
]
|
|
13558
13549
|
}
|
|
13559
13550
|
);
|
|
@@ -13588,7 +13579,7 @@ function MingoInfoCard({
|
|
|
13588
13579
|
status ? (
|
|
13589
13580
|
// Reuse the shared Tag palette (single source of truth for colours)
|
|
13590
13581
|
// without rendering Tag's `<div>` — span-only for `<p>` validity.
|
|
13591
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
13582
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunkW7OFAROYcjs.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 }) })
|
|
13592
13583
|
) : null
|
|
13593
13584
|
] });
|
|
13594
13585
|
const contentClass = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
@@ -13680,7 +13671,7 @@ function resolveFetchedCardHref({
|
|
|
13680
13671
|
composeContentUrl
|
|
13681
13672
|
}) {
|
|
13682
13673
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
13683
|
-
const canonicalType =
|
|
13674
|
+
const canonicalType = _chunk533QK4R6cjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
13684
13675
|
return composeContentUrl({
|
|
13685
13676
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
13686
13677
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -13723,16 +13714,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
13723
13714
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
13724
13715
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
13725
13716
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
13726
|
-
type:
|
|
13717
|
+
type: _chunk533QK4R6cjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
13727
13718
|
identifier: idValue,
|
|
13728
13719
|
...docPath ? { slug: docPath } : {},
|
|
13729
13720
|
externalUrl: _nullishCoalesce(row.externalUrl, () => ( null)),
|
|
13730
13721
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
13731
13722
|
});
|
|
13732
|
-
href = composed.href ? _nullishCoalesce(
|
|
13723
|
+
href = composed.href ? _nullishCoalesce(_chunkMDLT6D46cjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
13733
13724
|
targetPlatform = composed.targetPlatform;
|
|
13734
13725
|
} else if (row.externalUrl) {
|
|
13735
|
-
href = _nullishCoalesce(
|
|
13726
|
+
href = _nullishCoalesce(_chunkMDLT6D46cjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
13736
13727
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
13737
13728
|
}
|
|
13738
13729
|
const documentType = row.documentType;
|
|
@@ -13799,7 +13790,7 @@ function resolveCardDestination({
|
|
|
13799
13790
|
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _306 => _306.fallbackHref, 'optionalCall', _307 => _307(item)]), () => ( null)),
|
|
13800
13791
|
allowComposed: !entry.noComposedHref
|
|
13801
13792
|
});
|
|
13802
|
-
const url = choice ? _nullishCoalesce(
|
|
13793
|
+
const url = choice ? _nullishCoalesce(_chunkMDLT6D46cjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
13803
13794
|
if (choice && url) {
|
|
13804
13795
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
13805
13796
|
}
|
|
@@ -13812,11 +13803,11 @@ function resolveCardDestination({
|
|
|
13812
13803
|
|
|
13813
13804
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
13814
13805
|
const label = entityLabel || "Item";
|
|
13815
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
13816
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
13817
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
13818
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
13819
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
13806
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
13807
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkMDLT6D46cjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
13808
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkMDLT6D46cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
13809
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkMDLT6D46cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkMDLT6D46cjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
13810
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkMDLT6D46cjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
13820
13811
|
label,
|
|
13821
13812
|
" deleted",
|
|
13822
13813
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -13862,7 +13853,7 @@ function GitHubChatCard({
|
|
|
13862
13853
|
const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
|
|
13863
13854
|
const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
|
|
13864
13855
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
13865
|
-
const dateText =
|
|
13856
|
+
const dateText = _chunkW7OFAROYcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
|
|
13866
13857
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
13867
13858
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13868
13859
|
MingoInfoCard,
|
|
@@ -13871,7 +13862,7 @@ function GitHubChatCard({
|
|
|
13871
13862
|
description,
|
|
13872
13863
|
icon: githubKindIcon(kind),
|
|
13873
13864
|
status,
|
|
13874
|
-
anchorProps:
|
|
13865
|
+
anchorProps: _chunkTIVPOVIMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
13875
13866
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
13876
13867
|
menuAriaLabel: "Activity actions"
|
|
13877
13868
|
}
|
|
@@ -13994,7 +13985,7 @@ function HubspotTicketChatCard({
|
|
|
13994
13985
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
13995
13986
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
13996
13987
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
13997
|
-
anchorProps:
|
|
13988
|
+
anchorProps: _chunkTIVPOVIMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
13998
13989
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
13999
13990
|
label: "Open Ticket Details",
|
|
14000
13991
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -14017,7 +14008,7 @@ function FaqChatCard({
|
|
|
14017
14008
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
14018
14009
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
14019
14010
|
status: { label: statusLabel, variant: "grey" },
|
|
14020
|
-
anchorProps:
|
|
14011
|
+
anchorProps: _chunkTIVPOVIMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14021
14012
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14022
14013
|
menuAriaLabel: "FAQ actions"
|
|
14023
14014
|
}
|
|
@@ -14037,7 +14028,7 @@ function SlackChatCard({
|
|
|
14037
14028
|
title,
|
|
14038
14029
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
14039
14030
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
14040
|
-
anchorProps:
|
|
14031
|
+
anchorProps: _chunkTIVPOVIMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14041
14032
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14042
14033
|
menuAriaLabel: "Message actions"
|
|
14043
14034
|
}
|
|
@@ -14055,7 +14046,7 @@ function GlyphChatCard({
|
|
|
14055
14046
|
title: chatRef.title,
|
|
14056
14047
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
14057
14048
|
icon,
|
|
14058
|
-
anchorProps:
|
|
14049
|
+
anchorProps: _chunkTIVPOVIMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14059
14050
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14060
14051
|
menuAriaLabel: "Card actions"
|
|
14061
14052
|
}
|
|
@@ -14073,20 +14064,20 @@ function TrustCenterChatCard({
|
|
|
14073
14064
|
}) {
|
|
14074
14065
|
const raw2 = _optionalChain([item, 'optionalAccess', _321 => _321.frameworks]);
|
|
14075
14066
|
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
14076
|
-
const summary =
|
|
14067
|
+
const summary = _chunk533QK4R6cjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
14077
14068
|
const leadFramework = frameworks[0];
|
|
14078
14069
|
const lead = leadFramework ? {
|
|
14079
|
-
label:
|
|
14080
|
-
color:
|
|
14070
|
+
label: _chunk533QK4R6cjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
14071
|
+
color: _chunk533QK4R6cjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
14081
14072
|
} : void 0;
|
|
14082
14073
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14083
14074
|
MingoInfoCard,
|
|
14084
14075
|
{
|
|
14085
|
-
title:
|
|
14086
|
-
description: summary ||
|
|
14076
|
+
title: _chunk533QK4R6cjs.TRUST_CENTER_TITLE,
|
|
14077
|
+
description: summary || _chunk533QK4R6cjs.TRUST_CENTER_TAGLINE,
|
|
14087
14078
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
14088
14079
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
14089
|
-
anchorProps:
|
|
14080
|
+
anchorProps: _chunkTIVPOVIMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14090
14081
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
14091
14082
|
label: "View trust center",
|
|
14092
14083
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -14108,7 +14099,7 @@ function DataRoomDocChatCard({
|
|
|
14108
14099
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
14109
14100
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
14110
14101
|
status: { label: badgeText, variant: "grey" },
|
|
14111
|
-
anchorProps:
|
|
14102
|
+
anchorProps: _chunkTIVPOVIMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14112
14103
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14113
14104
|
menuAriaLabel: "Document actions"
|
|
14114
14105
|
}
|
|
@@ -14127,7 +14118,7 @@ function GenericFinancialChatCard({
|
|
|
14127
14118
|
title: chatRef.title,
|
|
14128
14119
|
description: subtitle,
|
|
14129
14120
|
icon,
|
|
14130
|
-
anchorProps:
|
|
14121
|
+
anchorProps: _chunkTIVPOVIMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14131
14122
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14132
14123
|
menuAriaLabel: "Document actions"
|
|
14133
14124
|
}
|
|
@@ -14218,7 +14209,7 @@ function CampaignChatCard({
|
|
|
14218
14209
|
}) {
|
|
14219
14210
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _327 => _327.goals])) ? item.goals.length : 0;
|
|
14220
14211
|
const meta = [
|
|
14221
|
-
_optionalChain([item, 'optionalAccess', _328 => _328.start_date]) ?
|
|
14212
|
+
_optionalChain([item, 'optionalAccess', _328 => _328.start_date]) ? _chunk533QK4R6cjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
14222
14213
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
14223
14214
|
"Marketing campaign"
|
|
14224
14215
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -14257,7 +14248,7 @@ function EntityMingoCard({
|
|
|
14257
14248
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
14258
14249
|
icon: fallbackIcon,
|
|
14259
14250
|
status,
|
|
14260
|
-
anchorProps:
|
|
14251
|
+
anchorProps: _chunkTIVPOVIMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14261
14252
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
14262
14253
|
menuAriaLabel
|
|
14263
14254
|
}
|
|
@@ -14269,7 +14260,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
14269
14260
|
function statusPill(status) {
|
|
14270
14261
|
const s = typeof status === "string" ? status.trim() : "";
|
|
14271
14262
|
if (!s) return void 0;
|
|
14272
|
-
const scheme =
|
|
14263
|
+
const scheme = _chunk533QK4R6cjs.getStatusColorScheme.call(void 0, s);
|
|
14273
14264
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
14274
14265
|
return { label: s, variant };
|
|
14275
14266
|
}
|
|
@@ -14352,15 +14343,15 @@ function DesignDocChatCard({
|
|
|
14352
14343
|
}) {
|
|
14353
14344
|
const displayRef = fetchedItemDisplayRef(item, chatRef);
|
|
14354
14345
|
const doc = _optionalChain([item, 'optionalAccess', _354 => _354.doc]);
|
|
14355
|
-
const
|
|
14346
|
+
const status = doc ? designDocStatusDisplay(doc) : null;
|
|
14356
14347
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14357
14348
|
MingoInfoCard,
|
|
14358
14349
|
{
|
|
14359
14350
|
title: _nullishCoalesce(_optionalChain([doc, 'optionalAccess', _355 => _355.title]), () => ( displayRef.title)),
|
|
14360
14351
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
14361
14352
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
14362
|
-
status:
|
|
14363
|
-
anchorProps:
|
|
14353
|
+
status: status ? { label: status.label, variant: _chunkW7OFAROYcjs.tagVariantForBadgeColor.call(void 0, status.color_scheme) } : { label: "Design doc", variant: "grey" },
|
|
14354
|
+
anchorProps: _chunkTIVPOVIMcjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab, displayRef.targetPlatform),
|
|
14364
14355
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
14365
14356
|
menuAriaLabel: "Design doc actions"
|
|
14366
14357
|
}
|
|
@@ -14378,7 +14369,7 @@ function InvestorUpdateChatCard({
|
|
|
14378
14369
|
EntityMingoCard,
|
|
14379
14370
|
{
|
|
14380
14371
|
title,
|
|
14381
|
-
description: _optionalChain([item, 'optionalAccess', _358 => _358.strategic_update]) || _optionalChain([item, 'optionalAccess', _359 => _359.content]) ||
|
|
14372
|
+
description: _optionalChain([item, 'optionalAccess', _358 => _358.strategic_update]) || _optionalChain([item, 'optionalAccess', _359 => _359.content]) || _chunk533QK4R6cjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _360 => _360.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _361 => _361.period_end]), () => ( null))) || void 0,
|
|
14382
14373
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _362 => _362.featured_image]), ogPlaceholder),
|
|
14383
14374
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
14384
14375
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -14422,7 +14413,7 @@ function ProgramChatCard({
|
|
|
14422
14413
|
discuss
|
|
14423
14414
|
}) {
|
|
14424
14415
|
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 });
|
|
14425
|
-
const { line: meta } =
|
|
14416
|
+
const { line: meta } = _chunk533QK4R6cjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunk533QK4R6cjs.programMetaFormatters.call(void 0, _chunk533QK4R6cjs.PROGRAM_META_RENDERERS));
|
|
14426
14417
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14427
14418
|
EntityMingoCard,
|
|
14428
14419
|
{
|
|
@@ -14448,11 +14439,11 @@ function RoadmapChatCard({
|
|
|
14448
14439
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _372 => _372.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
14449
14440
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _373 => _373.customItemId]) != null;
|
|
14450
14441
|
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 });
|
|
14451
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14442
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk533QK4R6cjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _374 => _374.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
14452
14443
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
14453
14444
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
14454
14445
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14455
|
-
|
|
14446
|
+
_chunkGG466XFQcjs.next_image_default,
|
|
14456
14447
|
{
|
|
14457
14448
|
src: logoUrl,
|
|
14458
14449
|
alt: "",
|
|
@@ -14524,11 +14515,11 @@ function refText(ref, key) {
|
|
|
14524
14515
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
14525
14516
|
}
|
|
14526
14517
|
function VendorGlyph({ title, logoUrl }) {
|
|
14527
|
-
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14518
|
+
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMDLT6D46cjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
|
|
14528
14519
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
14529
14520
|
}
|
|
14530
14521
|
function SitePageGlyph({ iconName }) {
|
|
14531
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14522
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMDLT6D46cjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
|
|
14532
14523
|
}
|
|
14533
14524
|
var GITHUB_CARD_CONFIGS = {
|
|
14534
14525
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -14656,7 +14647,7 @@ function programRegistryEntries() {
|
|
|
14656
14647
|
contentRefType: cfg.contentRefType,
|
|
14657
14648
|
bareInline: true,
|
|
14658
14649
|
disclosure: cfg.disclosure,
|
|
14659
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14650
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk533QK4R6cjs.ProgramCard, { loading: true, size: "sm" }),
|
|
14660
14651
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14661
14652
|
ProgramChatCard,
|
|
14662
14653
|
{
|
|
@@ -14697,7 +14688,7 @@ function roadmapRegistryEntries() {
|
|
|
14697
14688
|
bareInline: true,
|
|
14698
14689
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
14699
14690
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
14700
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14691
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk533QK4R6cjs.RoadmapCard, { loading: true, size: "sm" }),
|
|
14701
14692
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14702
14693
|
RoadmapChatCard,
|
|
14703
14694
|
{
|
|
@@ -14755,12 +14746,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14755
14746
|
// projection route; `extractCardItems` turns its object payload into the
|
|
14756
14747
|
// single matched row. Destination is the public page unless the host
|
|
14757
14748
|
// re-homes the type (`composeContentUrl` override).
|
|
14758
|
-
[
|
|
14749
|
+
[_chunk533QK4R6cjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
14759
14750
|
label: "Trust center",
|
|
14760
14751
|
bareInline: true,
|
|
14761
|
-
contentRefType:
|
|
14752
|
+
contentRefType: _chunk533QK4R6cjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
14762
14753
|
noComposedHref: true,
|
|
14763
|
-
fallbackHref: () =>
|
|
14754
|
+
fallbackHref: () => _chunk533QK4R6cjs.TRUST_CENTER_PAGE_PATH,
|
|
14764
14755
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
14765
14756
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
14766
14757
|
},
|
|
@@ -14772,6 +14763,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14772
14763
|
// ChatRef item shape (`buildHubspotTicketSelfRef` SSOT), same preset.
|
|
14773
14764
|
hubspot_ticket_self: refHydratedEntry("hubspot_ticket_self", "HubSpot ticket (self)", (displayRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HubspotTicketChatCard, { chatRef: displayRef, isNewTab: opts.isNewTab, discuss: opts.discuss })),
|
|
14774
14765
|
data_room_doc: refHydratedEntry("data_room_doc", "Data-room doc", (displayRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataRoomDocChatCard, { chatRef: displayRef, isNewTab: opts.isNewTab, discuss: opts.discuss })),
|
|
14766
|
+
policy_doc: refHydratedEntry("policy_doc", "Company policy", (displayRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataRoomDocChatCard, { chatRef: displayRef, isNewTab: opts.isNewTab, discuss: opts.discuss })),
|
|
14775
14767
|
markdown: refHydratedEntry("markdown", "Doc page (markdown)", (displayRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataRoomDocChatCard, { chatRef: displayRef, isNewTab: opts.isNewTab, discuss: opts.discuss })),
|
|
14776
14768
|
// Body-synthesized video ids (`shortVideoId` content hashes / YouTube
|
|
14777
14769
|
// ids) have no backing table row to fetch — ref-only by nature.
|
|
@@ -14786,7 +14778,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14786
14778
|
label: "Blog post",
|
|
14787
14779
|
contentRefType: "blog_post_existing",
|
|
14788
14780
|
bareInline: true,
|
|
14789
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14781
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk533QK4R6cjs.BlogCard, { loading: true, size: "sm" }),
|
|
14790
14782
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14791
14783
|
BlogChatCard,
|
|
14792
14784
|
{
|
|
@@ -14804,7 +14796,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14804
14796
|
label: "Case study",
|
|
14805
14797
|
contentRefType: "case_study",
|
|
14806
14798
|
bareInline: true,
|
|
14807
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14799
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMDLT6D46cjs.CaseStudyCard, { loading: true, size: "sm" }),
|
|
14808
14800
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14809
14801
|
CaseStudyChatCard,
|
|
14810
14802
|
{
|
|
@@ -14830,7 +14822,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14830
14822
|
label: "Customer interview",
|
|
14831
14823
|
contentRefType: "customer_interview",
|
|
14832
14824
|
bareInline: true,
|
|
14833
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14825
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk533QK4R6cjs.CustomerInterviewCard, { loading: true, size: "sm" }),
|
|
14834
14826
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14835
14827
|
CustomerInterviewChatCard,
|
|
14836
14828
|
{
|
|
@@ -14847,9 +14839,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14847
14839
|
label: "Product release",
|
|
14848
14840
|
contentRefType: "product_release",
|
|
14849
14841
|
bareInline: true,
|
|
14850
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14842
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk533QK4R6cjs.ProductReleaseCard, { loading: true, size: "sm" }),
|
|
14851
14843
|
render: (item, chatRef, opts) => {
|
|
14852
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _415 => _415.extras, 'optionalAccess', _416 => _416.buildProductReleaseCardProps]), () => (
|
|
14844
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _415 => _415.extras, 'optionalAccess', _416 => _416.buildProductReleaseCardProps]), () => ( _chunk533QK4R6cjs.defaultBuildProductReleaseCardProps));
|
|
14853
14845
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14854
14846
|
ProductReleaseChatCard,
|
|
14855
14847
|
{
|
|
@@ -14868,7 +14860,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14868
14860
|
label: "Investor update",
|
|
14869
14861
|
contentRefType: "investor_update",
|
|
14870
14862
|
bareInline: true,
|
|
14871
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14863
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk533QK4R6cjs.InvestorUpdateCard, { loading: true, size: "sm" }),
|
|
14872
14864
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14873
14865
|
InvestorUpdateChatCard,
|
|
14874
14866
|
{
|
|
@@ -14887,7 +14879,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14887
14879
|
bareInline: true,
|
|
14888
14880
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
14889
14881
|
displayAction: true,
|
|
14890
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14882
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk533QK4R6cjs.OnboardingGuideCard, { loading: true, size: "sm" }),
|
|
14891
14883
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14892
14884
|
OnboardingGuideChatCard,
|
|
14893
14885
|
{
|
|
@@ -14931,7 +14923,7 @@ function ChatCardNavWrap({
|
|
|
14931
14923
|
if (!_optionalChain([host, 'optionalAccess', _428 => _428.contains, 'call', _429 => _429(targetEl)])) return;
|
|
14932
14924
|
if (_optionalChain([targetEl, 'optionalAccess', _430 => _430.closest, 'optionalCall', _431 => _431("button")])) return;
|
|
14933
14925
|
if (!_optionalChain([targetEl, 'optionalAccess', _432 => _432.closest, 'optionalCall', _433 => _433("a")])) return;
|
|
14934
|
-
const handled =
|
|
14926
|
+
const handled = _chunkGRCOEICKcjs.executeNavigation.call(void 0, { event: e, runtime, href, path, targetPlatform, hostRoute });
|
|
14935
14927
|
if (!handled) return;
|
|
14936
14928
|
e.stopPropagation();
|
|
14937
14929
|
if (!isNewTab && _optionalChain([panel, 'optionalAccess', _434 => _434.closeChat])) panel.closeChat();
|
|
@@ -14969,7 +14961,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14969
14961
|
entry: fetchEntry,
|
|
14970
14962
|
ctx: sourceRowCtxFromRuntime(runtime),
|
|
14971
14963
|
composeContentUrl: runtime.composeContentUrl,
|
|
14972
|
-
resolveHref: (href) =>
|
|
14964
|
+
resolveHref: (href) => _chunkTIVPOVIMcjs.navLinkTarget.call(void 0, runtime, href).href
|
|
14973
14965
|
});
|
|
14974
14966
|
const hrefResolvedChatRef = {
|
|
14975
14967
|
...chatRef,
|
|
@@ -14980,13 +14972,13 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14980
14972
|
};
|
|
14981
14973
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
14982
14974
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
14983
|
-
const hostRoute = (destination.source === "composed" || destination.source === "hostOverride") && !!finalChatRef.url &&
|
|
14984
|
-
const isNewTab = finalChatRef.url ?
|
|
14975
|
+
const hostRoute = (destination.source === "composed" || destination.source === "hostOverride") && !!finalChatRef.url && _chunkTIVPOVIMcjs.isRelativeHref.call(void 0, finalChatRef.url);
|
|
14976
|
+
const isNewTab = finalChatRef.url ? _chunkTIVPOVIMcjs.navLinkTarget.call(void 0, runtime, finalChatRef.url, finalChatRef.targetPlatform, { hostRoute }).isNewTab : false;
|
|
14985
14977
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
14986
14978
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
14987
14979
|
const discuss = discussFn ? {
|
|
14988
14980
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
14989
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14981
|
+
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4YBS4HIOcjs.AgentMark, { agent: "mingo", className: "size-5" }),
|
|
14990
14982
|
run: () => discussFn(finalChatRef)
|
|
14991
14983
|
} : void 0;
|
|
14992
14984
|
const renderOpts = {
|
|
@@ -15092,12 +15084,12 @@ function makeBatchDedupKey(item) {
|
|
|
15092
15084
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
15093
15085
|
}
|
|
15094
15086
|
function getChatTypeMessageType(chatType) {
|
|
15095
|
-
return chatType ===
|
|
15087
|
+
return chatType === _chunk3W4ASAXNcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
15096
15088
|
}
|
|
15097
15089
|
function useChunkCatchup({
|
|
15098
15090
|
dialogId,
|
|
15099
15091
|
onChunkReceived,
|
|
15100
|
-
chatTypes = [
|
|
15092
|
+
chatTypes = [_chunk3W4ASAXNcjs.CHAT_TYPE.CLIENT],
|
|
15101
15093
|
fetchChunks
|
|
15102
15094
|
}) {
|
|
15103
15095
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -16064,7 +16056,7 @@ function useChatAttachmentImageGallery() {
|
|
|
16064
16056
|
return () => root.removeEventListener("click", onClick);
|
|
16065
16057
|
}, [viewUrlPrefix]);
|
|
16066
16058
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16067
|
-
|
|
16059
|
+
_chunk533QK4R6cjs.ImageGalleryModal,
|
|
16068
16060
|
{
|
|
16069
16061
|
images: state.images,
|
|
16070
16062
|
isOpen: state.isOpen,
|
|
@@ -17433,7 +17425,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17433
17425
|
const status = approvalStatuses[requestId] || "pending";
|
|
17434
17426
|
if (!displayInline(approvalType)) {
|
|
17435
17427
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
17436
|
-
const summary = required ?
|
|
17428
|
+
const summary = required ? _chunk4YBS4HIOcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
17437
17429
|
pendingEscalated.set(requestId, {
|
|
17438
17430
|
command: summary,
|
|
17439
17431
|
explanation: _optionalChain([required, 'optionalAccess', _563 => _563.toolExplanation]),
|
|
@@ -17466,7 +17458,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17466
17458
|
if (!call.requiresApproval) continue;
|
|
17467
17459
|
segments = accumulator.addApprovalRequest(
|
|
17468
17460
|
requestId,
|
|
17469
|
-
|
|
17461
|
+
_chunk4YBS4HIOcjs.getCommandText.call(void 0, call),
|
|
17470
17462
|
call.toolExplanation,
|
|
17471
17463
|
approvalType,
|
|
17472
17464
|
status,
|
|
@@ -17545,7 +17537,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17545
17537
|
if (!call.requiresApproval) continue;
|
|
17546
17538
|
segments = accumulator.addApprovalRequest(
|
|
17547
17539
|
requestId,
|
|
17548
|
-
|
|
17540
|
+
_chunk4YBS4HIOcjs.getCommandText.call(void 0, call),
|
|
17549
17541
|
call.toolExplanation,
|
|
17550
17542
|
escalatedData.approvalType,
|
|
17551
17543
|
status
|
|
@@ -19554,12 +19546,12 @@ function extractIncompleteTailState(messages) {
|
|
|
19554
19546
|
|
|
19555
19547
|
// src/components/chat/utils/process-historical-messages.ts
|
|
19556
19548
|
function getOwnerDisplayName(owner) {
|
|
19557
|
-
if (_optionalChain([owner, 'optionalAccess', _639 => _639.type]) ===
|
|
19549
|
+
if (_optionalChain([owner, 'optionalAccess', _639 => _639.type]) === _chunk3W4ASAXNcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
19558
19550
|
const { firstName, lastName } = owner.user;
|
|
19559
19551
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
19560
19552
|
if (name) return name;
|
|
19561
19553
|
}
|
|
19562
|
-
return _optionalChain([owner, 'optionalAccess', _640 => _640.type]) ===
|
|
19554
|
+
return _optionalChain([owner, 'optionalAccess', _640 => _640.type]) === _chunk3W4ASAXNcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
19563
19555
|
}
|
|
19564
19556
|
function getOwnerAvatar(owner) {
|
|
19565
19557
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _641 => _641.user, 'optionalAccess', _642 => _642.image, 'optionalAccess', _643 => _643.imageUrl]), () => ( void 0));
|
|
@@ -19822,7 +19814,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19822
19814
|
if (!call.requiresApproval) continue;
|
|
19823
19815
|
accumulator.addApprovalRequest(
|
|
19824
19816
|
event.requestId,
|
|
19825
|
-
|
|
19817
|
+
_chunk4YBS4HIOcjs.getCommandText.call(void 0, call),
|
|
19826
19818
|
call.toolExplanation,
|
|
19827
19819
|
approvalType,
|
|
19828
19820
|
status,
|
|
@@ -19883,7 +19875,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19883
19875
|
if (!call.requiresApproval) continue;
|
|
19884
19876
|
accumulator.addApprovalRequest(
|
|
19885
19877
|
requestId,
|
|
19886
|
-
|
|
19878
|
+
_chunk4YBS4HIOcjs.getCommandText.call(void 0, call),
|
|
19887
19879
|
call.toolExplanation,
|
|
19888
19880
|
escalatedData.approvalType,
|
|
19889
19881
|
status
|
|
@@ -19991,10 +19983,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
19991
19983
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
19992
19984
|
return;
|
|
19993
19985
|
}
|
|
19994
|
-
const isUserMessage = _optionalChain([msg, 'access', _656 => _656.owner, 'optionalAccess', _657 => _657.type]) ===
|
|
19986
|
+
const isUserMessage = _optionalChain([msg, 'access', _656 => _656.owner, 'optionalAccess', _657 => _657.type]) === _chunk3W4ASAXNcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _658 => _658.owner, 'optionalAccess', _659 => _659.type]) === _chunk3W4ASAXNcjs.OWNER_TYPE.ADMIN;
|
|
19995
19987
|
if (isUserMessage) {
|
|
19996
19988
|
flushAssistantMessage();
|
|
19997
|
-
const userAuthorType = _optionalChain([msg, 'access', _660 => _660.owner, 'optionalAccess', _661 => _661.type]) ===
|
|
19989
|
+
const userAuthorType = _optionalChain([msg, 'access', _660 => _660.owner, 'optionalAccess', _661 => _661.type]) === _chunk3W4ASAXNcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
19998
19990
|
messageDataArray.forEach((data) => {
|
|
19999
19991
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
20000
19992
|
const rawContext = data.contextItems;
|
|
@@ -20045,7 +20037,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
20045
20037
|
});
|
|
20046
20038
|
const nextMsg = messages[index + 1];
|
|
20047
20039
|
const isLastMessage = index === messages.length - 1;
|
|
20048
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _664 => _664.owner, 'optionalAccess', _665 => _665.type]) ===
|
|
20040
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _664 => _664.owner, 'optionalAccess', _665 => _665.type]) === _chunk3W4ASAXNcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _666 => _666.owner, 'optionalAccess', _667 => _667.type]) === _chunk3W4ASAXNcjs.OWNER_TYPE.ADMIN);
|
|
20049
20041
|
if (isLastMessage || nextIsFromUser) {
|
|
20050
20042
|
flushAssistantMessage();
|
|
20051
20043
|
}
|
|
@@ -21189,7 +21181,4 @@ function PanelResizeHandle({
|
|
|
21189
21181
|
|
|
21190
21182
|
|
|
21191
21183
|
|
|
21192
|
-
|
|
21193
|
-
|
|
21194
|
-
|
|
21195
|
-
exports.PanelResizeGrip = PanelResizeGrip; exports.PanelResizeHandle = PanelResizeHandle; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.TextHold = TextHold; exports.LayoutHold = LayoutHold; exports.AUTHORED_LINK_REL_TOKENS = AUTHORED_LINK_REL_TOKENS; exports.authoredRelTokens = authoredRelTokens; exports.isNofollowRel = isNofollowRel; exports.renderedLinkRel = renderedLinkRel; exports.findMarkdownLinkAt = findMarkdownLinkAt; exports.formatMarkdownLink = formatMarkdownLink; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.MARKDOWN_H1_CLASS = MARKDOWN_H1_CLASS; exports.MARKDOWN_H2_CLASS = MARKDOWN_H2_CLASS; exports.MARKDOWN_PARAGRAPH_CLASS = MARKDOWN_PARAGRAPH_CLASS; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; exports.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MARKDOWN_SKELETON_LINES = MARKDOWN_SKELETON_LINES; exports.MARKDOWN_RENDERER_CLASS = MARKDOWN_RENDERER_CLASS; exports.MarkdownEngine = MarkdownEngine; exports.MarkdownEngineSkeleton = MarkdownEngineSkeleton; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ASK_AI_OPEN_EVENT = ASK_AI_OPEN_EVENT; exports.ASK_AI_OPEN_WITH_REF_EVENT = ASK_AI_OPEN_WITH_REF_EVENT; exports.ASK_AI_OPEN_EVENTS = ASK_AI_OPEN_EVENTS; exports.holdAskAiOpens = holdAskAiOpens; exports.askAiOpenIsHeld = askAiOpenIsHeld; exports.chatListensForAskAiOpens = chatListensForAskAiOpens; exports.ASK_AI_TRIGGER_ATTRIBUTE = ASK_AI_TRIGGER_ATTRIBUTE; exports.onAskAiIntent = onAskAiIntent; exports.ChatAppearanceContext = ChatAppearanceContext; exports.useChatAppearance = useChatAppearance; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.SystemEventMessage = SystemEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.extractCardReferences = extractCardReferences; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ChatPanelContext = ChatPanelContext; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.SuggestionsDisplay = SuggestionsDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.LoadingFallback = LoadingFallback; exports.LoadingSuspense = LoadingSuspense; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_BAR_CLASS = CONTEXT_BACK_BAR_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.InlineChip = InlineChip; exports.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.citedSourceNumbers = citedSourceNumbers; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.CHAT_MESSAGE_LIST_SKELETON_MESSAGES = CHAT_MESSAGE_LIST_SKELETON_MESSAGES; exports.ChatMessageList = ChatMessageList; exports.DESIGN_DOC_READINESS = DESIGN_DOC_READINESS; exports.DESIGN_DOC_READINESS_DISPLAY = DESIGN_DOC_READINESS_DISPLAY; exports.designDocReadiness = designDocReadiness; exports.formatCompletionLabel = formatCompletionLabel; exports.formatCompletionLabelWithBlockers = formatCompletionLabelWithBlockers; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.DOC_TABLE_TYPES = DOC_TABLE_TYPES; exports.groupsByTable = groupsByTable; exports.recordCountLabel = recordCountLabel; exports.buildGroupedSource = buildGroupedSource; exports.groupSourcesByTable = groupSourcesByTable; exports.formatCitationIndices = formatCitationIndices; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.clickupTaskUrl = clickupTaskUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.MingoEdgeLight = MingoEdgeLight; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; exports.PageTopicLabel = PageTopicLabel; exports.QUICK_ACTION_SET_SLOTS = QUICK_ACTION_SET_SLOTS; exports.QuickActionSet = QuickActionSet; exports.MingoQuickActionWall = MingoQuickActionWall; exports.chatDialogMenuItems = chatDialogMenuItems; exports.ChatListEmptyState = ChatListEmptyState; exports.chatDayLabel = chatDayLabel; exports.ChatListLoadError = ChatListLoadError; exports.CHAT_HISTORY_PAGE_SIZE = CHAT_HISTORY_PAGE_SIZE; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.MingoArchiveList = MingoArchiveList; exports.MingoChatHeader = MingoChatHeader; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.SearchInput = SearchInput; exports.MingoChatSearchModal = MingoChatSearchModal; exports.MingoChatRail = MingoChatRail; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.ChatContextMemoryBar = ChatContextMemoryBar; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.useNavLinkViaRuntime = useNavLinkViaRuntime; exports.useNavigateViaRuntime = useNavigateViaRuntime; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX; exports.VIDEO_BITES_CARD_HEIGHT_MOBILE_PX = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX; exports.STRIP_LINE_MAX_PX = STRIP_LINE_MAX_PX; exports.VIDEO_BITES_SKELETON_COUNT = VIDEO_BITES_SKELETON_COUNT; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.CHAT_CARD_DISCLOSURE = CHAT_CARD_DISCLOSURE; exports.CHAT_CARD_DISCLOSURES = CHAT_CARD_DISCLOSURES; exports.chatCardDisclosureOf = chatCardDisclosureOf; exports.ChatCardDisclosureButton = ChatCardDisclosureButton; exports.useChatCardDisclosure = useChatCardDisclosure; exports.ChatCardDisclosureRow = ChatCardDisclosureRow; exports.designDocPeople = designDocPeople; exports.designDocMetaLine = designDocMetaLine; exports.DesignDocCard = DesignDocCard; exports.GitHubActivityCard = GitHubActivityCard; exports.getVendorLogo = getVendorLogo; exports.VendorIcon = VendorIcon; exports.useChatCardItem = useChatCardItem; exports.MingoInfoCardActionProvider = MingoInfoCardActionProvider; exports.readFetchedCardTitle = readFetchedCardTitle; exports.readFetchedCardPath = readFetchedCardPath; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.sourceRowCtxFromRuntime = sourceRowCtxFromRuntime; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.resolveCardDestination = resolveCardDestination; exports.chatCardLabel = chatCardLabel; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.EMPTY_DIALOG_CAPABILITIES = EMPTY_DIALOG_CAPABILITIES; exports.useChunkCatchup = useChunkCatchup; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.emptyStateUrlForTopic = emptyStateUrlForTopic; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useWhatToAsk = useWhatToAsk; exports.awaitsDecision = awaitsDecision; exports.mergeByTime = mergeByTime; exports.approvalDisplaysInline = approvalDisplaysInline; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.createEmptyTurnMeta = createEmptyTurnMeta; exports.createChatStreamReducer = createChatStreamReducer; exports.DEFAULT_DIALOG_SIDE = DEFAULT_DIALOG_SIDE; exports.DEFAULT_MAX_REDUCERS = DEFAULT_MAX_REDUCERS; exports.MAX_PENDING_RETAIN_KEYS = MAX_PENDING_RETAIN_KEYS; exports.createChatDialogStore = createChatDialogStore; exports.createDeltaBatcher = createDeltaBatcher; exports.useChatStreamReducer = useChatStreamReducer; exports.createChatConversationsApi = createChatConversationsApi; exports.buildDiscussPrompt = buildDiscussPrompt; exports.useManagedDialogList = useManagedDialogList; exports.useSseChatAdapter = useSseChatAdapter; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.extractIncompleteTailState = extractIncompleteTailState; exports.decodeHistoricalMessageData = decodeHistoricalMessageData; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.mapProcessedToUnified = mapProcessedToUnified; exports.historicalToUnified = historicalToUnified; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useStableShallow = useStableShallow; exports.useUnifiedChat = useUnifiedChat; exports.chatChipClass = chatChipClass; exports.MINGO_V2_RAIL_WIDTH = MINGO_V2_RAIL_WIDTH; exports.CHAT_BLOCK_MIN_WIDTH = CHAT_BLOCK_MIN_WIDTH; exports.MINGO_V2_SPLIT_WIDTH = MINGO_V2_SPLIT_WIDTH;
|
|
21184
|
+
exports.PanelResizeGrip = PanelResizeGrip; exports.PanelResizeHandle = PanelResizeHandle; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.TextHold = TextHold; exports.LayoutHold = LayoutHold; exports.AUTHORED_LINK_REL_TOKENS = AUTHORED_LINK_REL_TOKENS; exports.authoredRelTokens = authoredRelTokens; exports.isNofollowRel = isNofollowRel; exports.renderedLinkRel = renderedLinkRel; exports.findMarkdownLinkAt = findMarkdownLinkAt; exports.formatMarkdownLink = formatMarkdownLink; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.MARKDOWN_H1_CLASS = MARKDOWN_H1_CLASS; exports.MARKDOWN_H2_CLASS = MARKDOWN_H2_CLASS; exports.MARKDOWN_PARAGRAPH_CLASS = MARKDOWN_PARAGRAPH_CLASS; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; exports.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MARKDOWN_SKELETON_LINES = MARKDOWN_SKELETON_LINES; exports.MarkdownEngine = MarkdownEngine; exports.MarkdownEngineSkeleton = MarkdownEngineSkeleton; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ASK_AI_OPEN_EVENT = ASK_AI_OPEN_EVENT; exports.ASK_AI_OPEN_WITH_REF_EVENT = ASK_AI_OPEN_WITH_REF_EVENT; exports.ASK_AI_OPEN_EVENTS = ASK_AI_OPEN_EVENTS; exports.holdAskAiOpens = holdAskAiOpens; exports.askAiOpenIsHeld = askAiOpenIsHeld; exports.chatListensForAskAiOpens = chatListensForAskAiOpens; exports.ASK_AI_TRIGGER_ATTRIBUTE = ASK_AI_TRIGGER_ATTRIBUTE; exports.onAskAiIntent = onAskAiIntent; exports.ChatAppearanceContext = ChatAppearanceContext; exports.useChatAppearance = useChatAppearance; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.SystemEventMessage = SystemEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.extractCardReferences = extractCardReferences; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ChatPanelContext = ChatPanelContext; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.SuggestionsDisplay = SuggestionsDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.LoadingFallback = LoadingFallback; exports.LoadingSuspense = LoadingSuspense; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_BAR_CLASS = CONTEXT_BACK_BAR_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.InlineChip = InlineChip; exports.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.citedSourceNumbers = citedSourceNumbers; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.CHAT_MESSAGE_LIST_SKELETON_MESSAGES = CHAT_MESSAGE_LIST_SKELETON_MESSAGES; exports.ChatMessageList = ChatMessageList; exports.designDocStatusDisplay = designDocStatusDisplay; exports.formatCompletionLabel = formatCompletionLabel; exports.formatCompletionLabelWithBlockers = formatCompletionLabelWithBlockers; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.DOC_TABLE_TYPES = DOC_TABLE_TYPES; exports.groupsByTable = groupsByTable; exports.recordCountLabel = recordCountLabel; exports.buildGroupedSource = buildGroupedSource; exports.groupSourcesByTable = groupSourcesByTable; exports.formatCitationIndices = formatCitationIndices; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.clickupTaskUrl = clickupTaskUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.MingoEdgeLight = MingoEdgeLight; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; exports.PageTopicLabel = PageTopicLabel; exports.QUICK_ACTION_SET_SLOTS = QUICK_ACTION_SET_SLOTS; exports.QuickActionSet = QuickActionSet; exports.MingoQuickActionWall = MingoQuickActionWall; exports.chatDialogMenuItems = chatDialogMenuItems; exports.ChatListEmptyState = ChatListEmptyState; exports.chatDayLabel = chatDayLabel; exports.ChatListLoadError = ChatListLoadError; exports.CHAT_HISTORY_PAGE_SIZE = CHAT_HISTORY_PAGE_SIZE; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.MingoArchiveList = MingoArchiveList; exports.MingoChatHeader = MingoChatHeader; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.SearchInput = SearchInput; exports.MingoChatSearchModal = MingoChatSearchModal; exports.MingoChatRail = MingoChatRail; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.ChatContextMemoryBar = ChatContextMemoryBar; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.useNavLinkViaRuntime = useNavLinkViaRuntime; exports.useNavigateViaRuntime = useNavigateViaRuntime; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX; exports.VIDEO_BITES_CARD_HEIGHT_MOBILE_PX = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX; exports.STRIP_LINE_MAX_PX = STRIP_LINE_MAX_PX; exports.VIDEO_BITES_SKELETON_COUNT = VIDEO_BITES_SKELETON_COUNT; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.CHAT_CARD_DISCLOSURE = CHAT_CARD_DISCLOSURE; exports.CHAT_CARD_DISCLOSURES = CHAT_CARD_DISCLOSURES; exports.chatCardDisclosureOf = chatCardDisclosureOf; exports.ChatCardDisclosureButton = ChatCardDisclosureButton; exports.useChatCardDisclosure = useChatCardDisclosure; exports.ChatCardDisclosureRow = ChatCardDisclosureRow; exports.designDocPeople = designDocPeople; exports.designDocMetaLine = designDocMetaLine; exports.DesignDocCard = DesignDocCard; exports.GitHubActivityCard = GitHubActivityCard; exports.getVendorLogo = getVendorLogo; exports.VendorIcon = VendorIcon; exports.useChatCardItem = useChatCardItem; exports.MingoInfoCardActionProvider = MingoInfoCardActionProvider; exports.readFetchedCardTitle = readFetchedCardTitle; exports.readFetchedCardPath = readFetchedCardPath; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.sourceRowCtxFromRuntime = sourceRowCtxFromRuntime; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.resolveCardDestination = resolveCardDestination; exports.chatCardLabel = chatCardLabel; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.EMPTY_DIALOG_CAPABILITIES = EMPTY_DIALOG_CAPABILITIES; exports.useChunkCatchup = useChunkCatchup; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.emptyStateUrlForTopic = emptyStateUrlForTopic; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useWhatToAsk = useWhatToAsk; exports.awaitsDecision = awaitsDecision; exports.mergeByTime = mergeByTime; exports.approvalDisplaysInline = approvalDisplaysInline; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.createEmptyTurnMeta = createEmptyTurnMeta; exports.createChatStreamReducer = createChatStreamReducer; exports.DEFAULT_DIALOG_SIDE = DEFAULT_DIALOG_SIDE; exports.DEFAULT_MAX_REDUCERS = DEFAULT_MAX_REDUCERS; exports.MAX_PENDING_RETAIN_KEYS = MAX_PENDING_RETAIN_KEYS; exports.createChatDialogStore = createChatDialogStore; exports.createDeltaBatcher = createDeltaBatcher; exports.useChatStreamReducer = useChatStreamReducer; exports.createChatConversationsApi = createChatConversationsApi; exports.buildDiscussPrompt = buildDiscussPrompt; exports.useManagedDialogList = useManagedDialogList; exports.useSseChatAdapter = useSseChatAdapter; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.extractIncompleteTailState = extractIncompleteTailState; exports.decodeHistoricalMessageData = decodeHistoricalMessageData; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.mapProcessedToUnified = mapProcessedToUnified; exports.historicalToUnified = historicalToUnified; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useStableShallow = useStableShallow; exports.useUnifiedChat = useUnifiedChat; exports.chatChipClass = chatChipClass; exports.MINGO_V2_RAIL_WIDTH = MINGO_V2_RAIL_WIDTH; exports.CHAT_BLOCK_MIN_WIDTH = CHAT_BLOCK_MIN_WIDTH; exports.MINGO_V2_SPLIT_WIDTH = MINGO_V2_SPLIT_WIDTH;
|