@flamingo-stack/openframe-frontend-core 0.0.624 → 0.0.625-snapshot.20260914034426
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/{chunk-56CBPVCF.js → chunk-2CCIF5QV.js} +4 -4
- package/dist/{chunk-DY4XQFGC.cjs → chunk-34GEH24Y.cjs} +10 -10
- package/dist/{chunk-DY4XQFGC.cjs.map → chunk-34GEH24Y.cjs.map} +1 -1
- package/dist/{chunk-IUMRVY4I.cjs → chunk-3LKJ6JWZ.cjs} +28 -28
- package/dist/{chunk-IUMRVY4I.cjs.map → chunk-3LKJ6JWZ.cjs.map} +1 -1
- package/dist/{chunk-JEMBYNOG.cjs → chunk-3POP5WWC.cjs} +6 -6
- package/dist/{chunk-JEMBYNOG.cjs.map → chunk-3POP5WWC.cjs.map} +1 -1
- package/dist/{chunk-AO6CJFQU.cjs → chunk-63F2UQDW.cjs} +15 -15
- package/dist/{chunk-AO6CJFQU.cjs.map → chunk-63F2UQDW.cjs.map} +1 -1
- package/dist/{chunk-EW6PYGB3.js → chunk-BVCWBA2U.js} +7 -6
- package/dist/chunk-BVCWBA2U.js.map +1 -0
- package/dist/{chunk-5JOKGJSG.cjs → chunk-CPO5KPW6.cjs} +6 -6
- package/dist/{chunk-5JOKGJSG.cjs.map → chunk-CPO5KPW6.cjs.map} +1 -1
- package/dist/{chunk-CP4YNYQA.js → chunk-DLZFFGQ7.js} +3 -3
- package/dist/{chunk-YWFMYZ4G.js → chunk-DZ7CEES3.js} +2 -2
- package/dist/{chunk-WKDNZXJK.cjs → chunk-E7YNDGRN.cjs} +81 -81
- package/dist/{chunk-WKDNZXJK.cjs.map → chunk-E7YNDGRN.cjs.map} +1 -1
- package/dist/{chunk-ISXADEGT.cjs → chunk-ESSHEVZQ.cjs} +32 -32
- package/dist/{chunk-ISXADEGT.cjs.map → chunk-ESSHEVZQ.cjs.map} +1 -1
- package/dist/{chunk-GRZHXAX6.js → chunk-F4TAUCHQ.js} +2 -2
- package/dist/{chunk-Q6QF35QE.js → chunk-H7KQM3VI.js} +6 -6
- package/dist/{chunk-D3IW3CSH.cjs → chunk-HTIDXF43.cjs} +5 -5
- package/dist/{chunk-D3IW3CSH.cjs.map → chunk-HTIDXF43.cjs.map} +1 -1
- package/dist/{chunk-RFUYCKBZ.js → chunk-IJYP2DMW.js} +628 -564
- package/dist/chunk-IJYP2DMW.js.map +1 -0
- package/dist/{chunk-HAYYFOUU.js → chunk-IZG3VYDV.js} +3 -3
- package/dist/{chunk-KKD35GSD.js → chunk-KK7YEVTQ.js} +3 -3
- package/dist/{chunk-NOQDSRSK.cjs → chunk-L54LFB6V.cjs} +11 -11
- package/dist/{chunk-NOQDSRSK.cjs.map → chunk-L54LFB6V.cjs.map} +1 -1
- package/dist/{chunk-BC4GLCNE.cjs → chunk-LJ7KMQRM.cjs} +29 -29
- package/dist/{chunk-BC4GLCNE.cjs.map → chunk-LJ7KMQRM.cjs.map} +1 -1
- package/dist/{chunk-C4Y3TEKO.cjs → chunk-MSVEZB5D.cjs} +210 -146
- package/dist/chunk-MSVEZB5D.cjs.map +1 -0
- package/dist/{chunk-KEHI5NAD.js → chunk-MZWSJPDZ.js} +3 -3
- package/dist/{chunk-YBEAX6QC.js → chunk-NLVBO3IR.js} +5 -5
- package/dist/{chunk-OKMMP5PU.cjs → chunk-NZJNXGU2.cjs} +198 -198
- package/dist/{chunk-OKMMP5PU.cjs.map → chunk-NZJNXGU2.cjs.map} +1 -1
- package/dist/{chunk-ZYPB57IM.js → chunk-P7KIFYZI.js} +3 -3
- package/dist/{chunk-MP2K44EK.cjs → chunk-Q5XGBLT5.cjs} +7 -6
- package/dist/chunk-Q5XGBLT5.cjs.map +1 -0
- package/dist/{chunk-N3CTSPDZ.cjs → chunk-QJ6BCSFQ.cjs} +3 -3
- package/dist/{chunk-N3CTSPDZ.cjs.map → chunk-QJ6BCSFQ.cjs.map} +1 -1
- package/dist/{chunk-ZZECM2I2.cjs → chunk-QPQCQWAW.cjs} +20 -20
- package/dist/{chunk-ZZECM2I2.cjs.map → chunk-QPQCQWAW.cjs.map} +1 -1
- package/dist/{chunk-F2G5BTBR.js → chunk-QR2FJE2C.js} +7 -7
- package/dist/{chunk-WSEDVYDY.js → chunk-RGMUA4XB.js} +5 -5
- package/dist/{chunk-QHH2GXHS.js → chunk-RQQAPCOU.js} +3 -3
- package/dist/{chunk-JT4FL2DK.js → chunk-RVK3CL5S.js} +6 -6
- package/dist/{chunk-OYP7ZNHW.cjs → chunk-S43SLJIN.cjs} +22 -22
- package/dist/{chunk-OYP7ZNHW.cjs.map → chunk-S43SLJIN.cjs.map} +1 -1
- package/dist/{chunk-DPFMA6JD.cjs → chunk-VOBOO7EF.cjs} +59 -59
- package/dist/{chunk-DPFMA6JD.cjs.map → chunk-VOBOO7EF.cjs.map} +1 -1
- package/dist/{chunk-NULR47FR.js → chunk-WEDSYUSR.js} +4 -4
- package/dist/{chunk-TTSGX6AB.cjs → chunk-Z42VU7HF.cjs} +33 -33
- package/dist/{chunk-TTSGX6AB.cjs.map → chunk-Z42VU7HF.cjs.map} +1 -1
- package/dist/{chunk-LDR3QNOT.js → chunk-ZIEYC6ZB.js} +3 -3
- package/dist/components/case-studies/index.cjs +10 -10
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/entity-cards/admin-content-card-grid.d.ts +48 -0
- package/dist/components/chat/entity-cards/admin-content-card-grid.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/admin-content-card.d.ts +8 -1
- package/dist/components/chat/entity-cards/admin-content-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/index.d.ts +1 -0
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +9 -3
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +8 -2
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/docs/index.js +7 -7
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/features/index.js +3 -3
- package/dist/components/help-center-pages/index.cjs +24 -24
- package/dist/components/help-center-pages/index.js +15 -15
- package/dist/components/index.cjs +59 -53
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +21 -15
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- package/dist/components/meeting-scheduler/index.js +3 -3
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/navigation/index.js +6 -6
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/tickets/index.js +7 -7
- package/dist/components/ui/index.cjs +10 -4
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +9 -3
- package/dist/index.cjs +14 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/__tests__/admin-content-card-grid.test.tsx +71 -0
- package/src/components/chat/entity-cards/admin-content-card-grid.tsx +130 -0
- package/src/components/chat/entity-cards/admin-content-card.tsx +24 -6
- package/src/components/chat/entity-cards/index.ts +6 -0
- package/dist/chunk-C4Y3TEKO.cjs.map +0 -1
- package/dist/chunk-EW6PYGB3.js.map +0 -1
- package/dist/chunk-MP2K44EK.cjs.map +0 -1
- package/dist/chunk-RFUYCKBZ.js.map +0 -1
- /package/dist/{chunk-56CBPVCF.js.map → chunk-2CCIF5QV.js.map} +0 -0
- /package/dist/{chunk-CP4YNYQA.js.map → chunk-DLZFFGQ7.js.map} +0 -0
- /package/dist/{chunk-YWFMYZ4G.js.map → chunk-DZ7CEES3.js.map} +0 -0
- /package/dist/{chunk-GRZHXAX6.js.map → chunk-F4TAUCHQ.js.map} +0 -0
- /package/dist/{chunk-Q6QF35QE.js.map → chunk-H7KQM3VI.js.map} +0 -0
- /package/dist/{chunk-HAYYFOUU.js.map → chunk-IZG3VYDV.js.map} +0 -0
- /package/dist/{chunk-KKD35GSD.js.map → chunk-KK7YEVTQ.js.map} +0 -0
- /package/dist/{chunk-KEHI5NAD.js.map → chunk-MZWSJPDZ.js.map} +0 -0
- /package/dist/{chunk-YBEAX6QC.js.map → chunk-NLVBO3IR.js.map} +0 -0
- /package/dist/{chunk-ZYPB57IM.js.map → chunk-P7KIFYZI.js.map} +0 -0
- /package/dist/{chunk-F2G5BTBR.js.map → chunk-QR2FJE2C.js.map} +0 -0
- /package/dist/{chunk-WSEDVYDY.js.map → chunk-RGMUA4XB.js.map} +0 -0
- /package/dist/{chunk-QHH2GXHS.js.map → chunk-RQQAPCOU.js.map} +0 -0
- /package/dist/{chunk-JT4FL2DK.js.map → chunk-RVK3CL5S.js.map} +0 -0
- /package/dist/{chunk-NULR47FR.js.map → chunk-WEDSYUSR.js.map} +0 -0
- /package/dist/{chunk-LDR3QNOT.js.map → chunk-ZIEYC6ZB.js.map} +0 -0
|
@@ -172,7 +172,7 @@ import {
|
|
|
172
172
|
safeHref,
|
|
173
173
|
sortBitesByCreatedAtDesc,
|
|
174
174
|
useCoverImageFallback
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-BVCWBA2U.js";
|
|
176
176
|
import {
|
|
177
177
|
next_image_default
|
|
178
178
|
} from "./chunk-MDKCTSDS.js";
|
|
@@ -11712,6 +11712,67 @@ function SourceActionButton({
|
|
|
11712
11712
|
);
|
|
11713
11713
|
}
|
|
11714
11714
|
|
|
11715
|
+
// src/components/chat/entity-cards/admin-content-card-grid.tsx
|
|
11716
|
+
import { jsx as jsx73, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
11717
|
+
var ADMIN_CONTENT_CARD_GRID_CLASS = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[var(--spacing-system-lf)]";
|
|
11718
|
+
function AdminContentCardSkeleton({ className }) {
|
|
11719
|
+
return /* @__PURE__ */ jsxs56(
|
|
11720
|
+
"div",
|
|
11721
|
+
{
|
|
11722
|
+
className: cn(
|
|
11723
|
+
"flex h-full animate-pulse flex-col overflow-hidden rounded-2xl border border-ods-border bg-ods-card",
|
|
11724
|
+
className
|
|
11725
|
+
),
|
|
11726
|
+
children: [
|
|
11727
|
+
/* @__PURE__ */ jsx73("div", { className: "aspect-[3/2] w-full shrink-0 bg-ods-border/20" }),
|
|
11728
|
+
/* @__PURE__ */ jsxs56("div", { className: "flex flex-1 flex-col gap-[var(--spacing-system-sf)] p-5", children: [
|
|
11729
|
+
/* @__PURE__ */ jsx73("div", { className: "h-[2lh] w-full rounded bg-ods-border text-h3" }),
|
|
11730
|
+
/* @__PURE__ */ jsx73("div", { className: "h-[1lh] w-1/2 rounded bg-ods-border text-h6" }),
|
|
11731
|
+
/* @__PURE__ */ jsx73("div", { className: "h-[2lh] w-full rounded bg-ods-border text-h6" }),
|
|
11732
|
+
/* @__PURE__ */ jsxs56("div", { className: "flex h-7 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
11733
|
+
/* @__PURE__ */ jsx73("div", { className: "h-5 w-20 rounded-full bg-ods-border" }),
|
|
11734
|
+
/* @__PURE__ */ jsx73("div", { className: "h-5 w-24 rounded-full bg-ods-border" })
|
|
11735
|
+
] }),
|
|
11736
|
+
/* @__PURE__ */ jsx73("div", { className: "h-[1lh] w-32 rounded bg-ods-border text-h6" }),
|
|
11737
|
+
/* @__PURE__ */ jsxs56("div", { className: "mt-auto flex items-center justify-between border-t border-ods-border pt-[var(--spacing-system-sf)]", children: [
|
|
11738
|
+
/* @__PURE__ */ jsx73("div", { className: "h-10 w-24 rounded bg-ods-border" }),
|
|
11739
|
+
/* @__PURE__ */ jsxs56("div", { className: "flex gap-[var(--spacing-system-xsf)]", children: [
|
|
11740
|
+
/* @__PURE__ */ jsx73("div", { className: "h-10 w-20 rounded bg-ods-border" }),
|
|
11741
|
+
/* @__PURE__ */ jsx73("div", { className: "h-10 w-20 rounded bg-ods-border" })
|
|
11742
|
+
] })
|
|
11743
|
+
] })
|
|
11744
|
+
] })
|
|
11745
|
+
]
|
|
11746
|
+
}
|
|
11747
|
+
);
|
|
11748
|
+
}
|
|
11749
|
+
function AdminContentCardGrid({
|
|
11750
|
+
items,
|
|
11751
|
+
pageSize,
|
|
11752
|
+
loading,
|
|
11753
|
+
itemKey: itemKey4,
|
|
11754
|
+
renderCard,
|
|
11755
|
+
empty,
|
|
11756
|
+
Skeleton: Skeleton2 = AdminContentCardSkeleton,
|
|
11757
|
+
className
|
|
11758
|
+
}) {
|
|
11759
|
+
const gridClass = cn(ADMIN_CONTENT_CARD_GRID_CLASS, className);
|
|
11760
|
+
if (loading) {
|
|
11761
|
+
return /* @__PURE__ */ jsx73("div", { className: gridClass, "data-state": "loading", children: Array.from({ length: pageSize }, (_, i) => /* @__PURE__ */ jsx73(Skeleton2, {}, i)) });
|
|
11762
|
+
}
|
|
11763
|
+
const slots = Array.from({ length: Math.max(0, pageSize - items.length) }, (_, i) => /* @__PURE__ */ jsx73(Skeleton2, { className: "invisible" }, `slot-${i}`));
|
|
11764
|
+
if (items.length === 0) {
|
|
11765
|
+
return /* @__PURE__ */ jsxs56("div", { className: "relative", "data-state": "empty", children: [
|
|
11766
|
+
/* @__PURE__ */ jsx73("div", { "aria-hidden": true, className: gridClass, children: slots }),
|
|
11767
|
+
/* @__PURE__ */ jsx73("div", { className: "absolute inset-x-0 top-0", children: empty })
|
|
11768
|
+
] });
|
|
11769
|
+
}
|
|
11770
|
+
return /* @__PURE__ */ jsxs56("div", { className: gridClass, "data-state": "items", children: [
|
|
11771
|
+
items.map((item) => /* @__PURE__ */ jsx73("div", { className: "h-full", children: renderCard(item) }, itemKey4(item))),
|
|
11772
|
+
slots.length > 0 && /* @__PURE__ */ jsx73("div", { "aria-hidden": true, className: "contents", children: slots })
|
|
11773
|
+
] });
|
|
11774
|
+
}
|
|
11775
|
+
|
|
11715
11776
|
// src/components/features/captions-url.ts
|
|
11716
11777
|
var DEFAULT_CAPTIONS_PATH = "/api/captions";
|
|
11717
11778
|
function getCaptionsUrl(entityType, entityId, srtContent, options) {
|
|
@@ -11754,7 +11815,7 @@ function captionsEntityTypeForDocType(docType) {
|
|
|
11754
11815
|
}
|
|
11755
11816
|
|
|
11756
11817
|
// src/components/layout/page-heading.tsx
|
|
11757
|
-
import { Fragment as Fragment19, jsx as
|
|
11818
|
+
import { Fragment as Fragment19, jsx as jsx74, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
11758
11819
|
var PAGE_HEADING_CLASS = "text-h1 text-ods-text-primary";
|
|
11759
11820
|
var SECTION_HEADING_CLASS = "text-h2 text-ods-text-primary";
|
|
11760
11821
|
var DESCRIPTION_CLASS = "mt-6 max-w-[640px] font-body text-[16px] md:text-[18px] leading-[24px] md:leading-[28px] text-ods-text-secondary";
|
|
@@ -11768,16 +11829,16 @@ function PageHeading({
|
|
|
11768
11829
|
const headingClass = className ? `${PAGE_HEADING_CLASS} ${className}` : PAGE_HEADING_CLASS;
|
|
11769
11830
|
const descClass = descriptionClassName ? `${DESCRIPTION_CLASS} ${descriptionClassName}` : DESCRIPTION_CLASS;
|
|
11770
11831
|
const hasDescription = description != null && description !== "" && typeof description !== "boolean";
|
|
11771
|
-
return /* @__PURE__ */
|
|
11772
|
-
/* @__PURE__ */
|
|
11773
|
-
hasDescription && /* @__PURE__ */
|
|
11832
|
+
return /* @__PURE__ */ jsxs57(Fragment19, { children: [
|
|
11833
|
+
/* @__PURE__ */ jsx74(Tag2, { className: headingClass, children }),
|
|
11834
|
+
hasDescription && /* @__PURE__ */ jsx74("p", { className: descClass, children: description })
|
|
11774
11835
|
] });
|
|
11775
11836
|
}
|
|
11776
11837
|
|
|
11777
11838
|
// src/components/ui/tabs.tsx
|
|
11778
11839
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
11779
11840
|
import { forwardRef as forwardRef25 } from "react";
|
|
11780
|
-
import { jsx as
|
|
11841
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
11781
11842
|
var Tabs = TabsPrimitive.Root;
|
|
11782
11843
|
var TABS_LIST_BASE = "inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground";
|
|
11783
11844
|
var tabsListVariantClasses = {
|
|
@@ -11803,19 +11864,19 @@ var tabsTriggerVariantClasses = {
|
|
|
11803
11864
|
var ADMIN_RAIL_WRAPPER_CLASS = "w-full border-b border-ods-border overflow-x-auto";
|
|
11804
11865
|
var TabsList = forwardRef25(
|
|
11805
11866
|
({ className, variant = "default", ...props }, ref) => {
|
|
11806
|
-
const list = /* @__PURE__ */
|
|
11867
|
+
const list = /* @__PURE__ */ jsx75(TabsPrimitive.List, { ref, className: cn(tabsListVariantClasses[variant], className), ...props });
|
|
11807
11868
|
if (variant === "admin-rail") {
|
|
11808
|
-
return /* @__PURE__ */
|
|
11869
|
+
return /* @__PURE__ */ jsx75("div", { className: ADMIN_RAIL_WRAPPER_CLASS, children: list });
|
|
11809
11870
|
}
|
|
11810
11871
|
return list;
|
|
11811
11872
|
}
|
|
11812
11873
|
);
|
|
11813
11874
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
11814
11875
|
var TabsTrigger = forwardRef25(
|
|
11815
|
-
({ className, variant = "default", ...props }, ref) => /* @__PURE__ */
|
|
11876
|
+
({ className, variant = "default", ...props }, ref) => /* @__PURE__ */ jsx75(TabsPrimitive.Trigger, { ref, className: cn(tabsTriggerVariantClasses[variant], className), ...props })
|
|
11816
11877
|
);
|
|
11817
11878
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
11818
|
-
var TabsContent = forwardRef25(({ className, ...props }, ref) => /* @__PURE__ */
|
|
11879
|
+
var TabsContent = forwardRef25(({ className, ...props }, ref) => /* @__PURE__ */ jsx75(
|
|
11819
11880
|
TabsPrimitive.Content,
|
|
11820
11881
|
{
|
|
11821
11882
|
ref,
|
|
@@ -11961,7 +12022,7 @@ function useVideoWarmup({
|
|
|
11961
12022
|
}
|
|
11962
12023
|
|
|
11963
12024
|
// src/components/features/video-center-badge.tsx
|
|
11964
|
-
import { jsx as
|
|
12025
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
11965
12026
|
var SIZES = {
|
|
11966
12027
|
sm: 20,
|
|
11967
12028
|
// gallery thumbnails
|
|
@@ -11972,7 +12033,7 @@ var SIZES = {
|
|
|
11972
12033
|
};
|
|
11973
12034
|
var GLYPH_SHADOW = "var(--ods-shadow-glyph)";
|
|
11974
12035
|
function VideoPlayBadge({ size: size2 = "md", className }) {
|
|
11975
|
-
return /* @__PURE__ */
|
|
12036
|
+
return /* @__PURE__ */ jsx76(
|
|
11976
12037
|
"div",
|
|
11977
12038
|
{
|
|
11978
12039
|
className: cn(
|
|
@@ -11986,12 +12047,12 @@ function VideoPlayBadge({ size: size2 = "md", className }) {
|
|
|
11986
12047
|
className
|
|
11987
12048
|
),
|
|
11988
12049
|
style: { filter: GLYPH_SHADOW },
|
|
11989
|
-
children: /* @__PURE__ */
|
|
12050
|
+
children: /* @__PURE__ */ jsx76(PlayFilledIcon, { size: SIZES[size2], color: "currentColor" })
|
|
11990
12051
|
}
|
|
11991
12052
|
);
|
|
11992
12053
|
}
|
|
11993
12054
|
function VideoUnmuteGlyph({ size: size2 = "md", className }) {
|
|
11994
|
-
return /* @__PURE__ */
|
|
12055
|
+
return /* @__PURE__ */ jsx76(
|
|
11995
12056
|
VolumeOffFilledIcon,
|
|
11996
12057
|
{
|
|
11997
12058
|
size: SIZES[size2],
|
|
@@ -12003,7 +12064,7 @@ function VideoUnmuteGlyph({ size: size2 = "md", className }) {
|
|
|
12003
12064
|
}
|
|
12004
12065
|
|
|
12005
12066
|
// src/components/features/video.tsx
|
|
12006
|
-
import { jsx as
|
|
12067
|
+
import { jsx as jsx77, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
12007
12068
|
function videoPerfDebugEnabled() {
|
|
12008
12069
|
if (process.env.NODE_ENV !== "production") return true;
|
|
12009
12070
|
try {
|
|
@@ -12121,11 +12182,11 @@ function VideoErrorOverlay({
|
|
|
12121
12182
|
onRetry,
|
|
12122
12183
|
watchOnYouTubeId
|
|
12123
12184
|
}) {
|
|
12124
|
-
return /* @__PURE__ */
|
|
12125
|
-
/* @__PURE__ */
|
|
12126
|
-
/* @__PURE__ */
|
|
12127
|
-
/* @__PURE__ */
|
|
12128
|
-
watchOnYouTubeId ? /* @__PURE__ */
|
|
12185
|
+
return /* @__PURE__ */ jsxs58("div", { className: "absolute inset-0 z-10 flex flex-col items-center justify-center gap-[var(--spacing-system-sf)] bg-ods-overlay p-[var(--spacing-system-lf)] text-center", children: [
|
|
12186
|
+
/* @__PURE__ */ jsx77("p", { className: "text-ods-text-secondary text-h6", children: "This video failed to play." }),
|
|
12187
|
+
/* @__PURE__ */ jsxs58("div", { className: "flex items-center gap-[var(--spacing-system-sf)]", children: [
|
|
12188
|
+
/* @__PURE__ */ jsx77(Button, { variant: "outline", size: "small", onClick: onRetry, children: "Try again" }),
|
|
12189
|
+
watchOnYouTubeId ? /* @__PURE__ */ jsx77(
|
|
12129
12190
|
Button,
|
|
12130
12191
|
{
|
|
12131
12192
|
variant: "transparent",
|
|
@@ -12178,7 +12239,7 @@ function Video2(props) {
|
|
|
12178
12239
|
const layout = props.layout ?? "native";
|
|
12179
12240
|
if (props.lazy && !isNear) {
|
|
12180
12241
|
return wrapWithLayout(
|
|
12181
|
-
/* @__PURE__ */
|
|
12242
|
+
/* @__PURE__ */ jsx77(
|
|
12182
12243
|
"div",
|
|
12183
12244
|
{
|
|
12184
12245
|
ref: nearRef,
|
|
@@ -12190,7 +12251,7 @@ function Video2(props) {
|
|
|
12190
12251
|
layout
|
|
12191
12252
|
);
|
|
12192
12253
|
}
|
|
12193
|
-
const inner = effectiveKind === "youtube" ? /* @__PURE__ */
|
|
12254
|
+
const inner = effectiveKind === "youtube" ? /* @__PURE__ */ jsx77(
|
|
12194
12255
|
YouTubeFacade,
|
|
12195
12256
|
{
|
|
12196
12257
|
url,
|
|
@@ -12200,7 +12261,7 @@ function Video2(props) {
|
|
|
12200
12261
|
minimalControls: props.minimalControls,
|
|
12201
12262
|
...pickYouTube(props)
|
|
12202
12263
|
}
|
|
12203
|
-
) : "firstFrameOnly" in props && props.firstFrameOnly ? /* @__PURE__ */
|
|
12264
|
+
) : "firstFrameOnly" in props && props.firstFrameOnly ? /* @__PURE__ */ jsx77(
|
|
12204
12265
|
FirstFramePreview,
|
|
12205
12266
|
{
|
|
12206
12267
|
url,
|
|
@@ -12208,7 +12269,7 @@ function Video2(props) {
|
|
|
12208
12269
|
fit: "fit" in props ? props.fit : void 0,
|
|
12209
12270
|
className: props.className
|
|
12210
12271
|
}
|
|
12211
|
-
) : /* @__PURE__ */
|
|
12272
|
+
) : /* @__PURE__ */ jsx77(
|
|
12212
12273
|
FilePlayer,
|
|
12213
12274
|
{
|
|
12214
12275
|
url,
|
|
@@ -12231,11 +12292,11 @@ function resolveKind(props, url) {
|
|
|
12231
12292
|
function wrapWithLayout(inner, layout) {
|
|
12232
12293
|
switch (layout) {
|
|
12233
12294
|
case "centered":
|
|
12234
|
-
return /* @__PURE__ */
|
|
12295
|
+
return /* @__PURE__ */ jsx77("div", { className: "flex w-full justify-center", children: /* @__PURE__ */ jsx77("div", { className: "aspect-video w-full max-w-3xl overflow-hidden rounded-lg border border-ods-border", children: inner }) });
|
|
12235
12296
|
case "fill":
|
|
12236
|
-
return /* @__PURE__ */
|
|
12297
|
+
return /* @__PURE__ */ jsx77("div", { className: "absolute inset-0 h-full w-full", children: inner });
|
|
12237
12298
|
case "wide":
|
|
12238
|
-
return /* @__PURE__ */
|
|
12299
|
+
return /* @__PURE__ */ jsx77("div", { className: "aspect-video w-full overflow-hidden rounded-lg bg-ods-bg", children: inner });
|
|
12239
12300
|
case "native":
|
|
12240
12301
|
default:
|
|
12241
12302
|
return inner;
|
|
@@ -12247,13 +12308,13 @@ function FirstFramePreview({
|
|
|
12247
12308
|
fit,
|
|
12248
12309
|
className
|
|
12249
12310
|
}) {
|
|
12250
|
-
return /* @__PURE__ */
|
|
12311
|
+
return /* @__PURE__ */ jsx77(
|
|
12251
12312
|
"div",
|
|
12252
12313
|
{
|
|
12253
12314
|
"aria-hidden": true,
|
|
12254
12315
|
className: "h-full w-full",
|
|
12255
12316
|
style: { "--media-background-color": "transparent" },
|
|
12256
|
-
children: /* @__PURE__ */
|
|
12317
|
+
children: /* @__PURE__ */ jsx77(FilePlayer, { url: `${url}#t=0.1`, poster, fit, muted: true, chromeless: true, className })
|
|
12257
12318
|
}
|
|
12258
12319
|
);
|
|
12259
12320
|
}
|
|
@@ -12616,8 +12677,8 @@ function FilePlayer({
|
|
|
12616
12677
|
} catch {
|
|
12617
12678
|
}
|
|
12618
12679
|
}, [clearStallTimer]);
|
|
12619
|
-
const errorOverlay = monitorHealth && playbackFailed ? /* @__PURE__ */
|
|
12620
|
-
const player = /* @__PURE__ */
|
|
12680
|
+
const errorOverlay = monitorHealth && playbackFailed ? /* @__PURE__ */ jsx77(VideoErrorOverlay, { onRetry: retryPlayback }) : null;
|
|
12681
|
+
const player = /* @__PURE__ */ jsx77(
|
|
12621
12682
|
MuxPlayer,
|
|
12622
12683
|
{
|
|
12623
12684
|
ref: hoverPlayerRef,
|
|
@@ -12647,10 +12708,10 @@ function FilePlayer({
|
|
|
12647
12708
|
...chromeless ? { "--controls": "none" } : {},
|
|
12648
12709
|
...fit === "cover" ? { "--media-object-fit": "cover" } : {}
|
|
12649
12710
|
},
|
|
12650
|
-
children: resolvedCaptionsUrl ? /* @__PURE__ */
|
|
12711
|
+
children: resolvedCaptionsUrl ? /* @__PURE__ */ jsx77("track", { kind: "captions", src: resolvedCaptionsUrl, srcLang: "en", label: "English", default: true }) : null
|
|
12651
12712
|
}
|
|
12652
12713
|
);
|
|
12653
|
-
const unmuteBadge = hoverMutedFallback && !hideMutedBadge ? /* @__PURE__ */
|
|
12714
|
+
const unmuteBadge = hoverMutedFallback && !hideMutedBadge ? /* @__PURE__ */ jsx77(
|
|
12654
12715
|
"button",
|
|
12655
12716
|
{
|
|
12656
12717
|
type: "button",
|
|
@@ -12658,18 +12719,18 @@ function FilePlayer({
|
|
|
12658
12719
|
title: "Unmute",
|
|
12659
12720
|
onClick: unmuteNow,
|
|
12660
12721
|
className: "absolute inset-0 z-10 m-auto flex h-14 w-14 items-center justify-center text-ods-text-primary transition-colors hover:text-ods-accent",
|
|
12661
|
-
children: /* @__PURE__ */
|
|
12722
|
+
children: /* @__PURE__ */ jsx77(VideoUnmuteGlyph, {})
|
|
12662
12723
|
}
|
|
12663
12724
|
) : null;
|
|
12664
12725
|
if (playOnHover && !hoverControlled) {
|
|
12665
|
-
return /* @__PURE__ */
|
|
12726
|
+
return /* @__PURE__ */ jsxs58("div", { className: "relative h-full w-full", onPointerEnter: handleHoverEnter, onPointerLeave: handleHoverLeave, children: [
|
|
12666
12727
|
player,
|
|
12667
12728
|
unmuteBadge,
|
|
12668
12729
|
errorOverlay
|
|
12669
12730
|
] });
|
|
12670
12731
|
}
|
|
12671
12732
|
if (hoverControlled || autoPlayUnmuted || startMuted || monitorHealth) {
|
|
12672
|
-
return /* @__PURE__ */
|
|
12733
|
+
return /* @__PURE__ */ jsxs58("div", { className: "relative h-full w-full", children: [
|
|
12673
12734
|
player,
|
|
12674
12735
|
unmuteBadge,
|
|
12675
12736
|
errorOverlay
|
|
@@ -12690,7 +12751,7 @@ function YouTubeFacade({
|
|
|
12690
12751
|
}) {
|
|
12691
12752
|
const videoId = extractYouTubeId(url);
|
|
12692
12753
|
if (!videoId) return null;
|
|
12693
|
-
return /* @__PURE__ */
|
|
12754
|
+
return /* @__PURE__ */ jsx77(
|
|
12694
12755
|
YouTubeFacadeInner,
|
|
12695
12756
|
{
|
|
12696
12757
|
videoId,
|
|
@@ -12827,10 +12888,10 @@ function YouTubeFacadeInner({
|
|
|
12827
12888
|
const wrapperClass = `relative w-full ${className ?? ""}`;
|
|
12828
12889
|
const wrapperStyle = { paddingBottom: "56.25%" };
|
|
12829
12890
|
if (activated && failed) {
|
|
12830
|
-
return /* @__PURE__ */
|
|
12891
|
+
return /* @__PURE__ */ jsx77("div", { className: wrapperClass, style: wrapperStyle, children: /* @__PURE__ */ jsx77(VideoErrorOverlay, { onRetry: retry, watchOnYouTubeId: videoId }) });
|
|
12831
12892
|
}
|
|
12832
12893
|
if (activated) {
|
|
12833
|
-
return /* @__PURE__ */
|
|
12894
|
+
return /* @__PURE__ */ jsx77("div", { className: wrapperClass, style: wrapperStyle, children: /* @__PURE__ */ jsx77(
|
|
12834
12895
|
"iframe",
|
|
12835
12896
|
{
|
|
12836
12897
|
ref: iframeRef,
|
|
@@ -12844,7 +12905,7 @@ function YouTubeFacadeInner({
|
|
|
12844
12905
|
reloadNonce
|
|
12845
12906
|
) });
|
|
12846
12907
|
}
|
|
12847
|
-
return /* @__PURE__ */
|
|
12908
|
+
return /* @__PURE__ */ jsx77("div", { className: wrapperClass, style: wrapperStyle, children: /* @__PURE__ */ jsxs58(
|
|
12848
12909
|
"button",
|
|
12849
12910
|
{
|
|
12850
12911
|
type: "button",
|
|
@@ -12852,9 +12913,9 @@ function YouTubeFacadeInner({
|
|
|
12852
12913
|
onClick: () => setActivated(true),
|
|
12853
12914
|
className: "group absolute inset-0 m-0 cursor-pointer overflow-hidden rounded-lg border border-ods-border bg-ods-card p-0",
|
|
12854
12915
|
children: [
|
|
12855
|
-
/* @__PURE__ */
|
|
12856
|
-
/* @__PURE__ */
|
|
12857
|
-
/* @__PURE__ */
|
|
12916
|
+
/* @__PURE__ */ jsxs58("picture", { children: [
|
|
12917
|
+
/* @__PURE__ */ jsx77("source", { type: "image/webp", srcSet: posterWebp }),
|
|
12918
|
+
/* @__PURE__ */ jsx77(
|
|
12858
12919
|
"img",
|
|
12859
12920
|
{
|
|
12860
12921
|
src: posterJpg,
|
|
@@ -12867,7 +12928,7 @@ function YouTubeFacadeInner({
|
|
|
12867
12928
|
}
|
|
12868
12929
|
)
|
|
12869
12930
|
] }),
|
|
12870
|
-
/* @__PURE__ */
|
|
12931
|
+
/* @__PURE__ */ jsx77("div", { className: "absolute inset-0 flex items-center justify-center bg-ods-bg bg-opacity-20 transition-opacity duration-200 group-hover:bg-opacity-30", children: /* @__PURE__ */ jsx77(
|
|
12871
12932
|
VideoPlayBadge,
|
|
12872
12933
|
{
|
|
12873
12934
|
size: "lg",
|
|
@@ -12883,7 +12944,7 @@ function YouTubeFacadeInner({
|
|
|
12883
12944
|
import { useMemo as useMemo22, useRef as useRef18, useState as useState28 } from "react";
|
|
12884
12945
|
|
|
12885
12946
|
// src/components/user-display.tsx
|
|
12886
|
-
import { jsx as
|
|
12947
|
+
import { jsx as jsx78, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
12887
12948
|
function UserDisplay({
|
|
12888
12949
|
name,
|
|
12889
12950
|
avatarUrl,
|
|
@@ -12893,8 +12954,8 @@ function UserDisplay({
|
|
|
12893
12954
|
compact = false,
|
|
12894
12955
|
className
|
|
12895
12956
|
}) {
|
|
12896
|
-
return /* @__PURE__ */
|
|
12897
|
-
/* @__PURE__ */
|
|
12957
|
+
return /* @__PURE__ */ jsxs59("div", { className: cn("flex min-w-0 items-center gap-2", className), children: [
|
|
12958
|
+
/* @__PURE__ */ jsx78(
|
|
12898
12959
|
SquareAvatar,
|
|
12899
12960
|
{
|
|
12900
12961
|
src: avatarUrl ? getProxiedImageUrl(avatarUrl) || avatarUrl : void 0,
|
|
@@ -12904,15 +12965,15 @@ function UserDisplay({
|
|
|
12904
12965
|
variant: shape
|
|
12905
12966
|
}
|
|
12906
12967
|
),
|
|
12907
|
-
/* @__PURE__ */
|
|
12908
|
-
/* @__PURE__ */
|
|
12909
|
-
subtitle && /* @__PURE__ */
|
|
12968
|
+
/* @__PURE__ */ jsxs59("div", { className: "min-w-0 flex-1", children: [
|
|
12969
|
+
/* @__PURE__ */ jsx78("p", { className: cn("truncate text-ods-text-primary", compact ? "text-h6" : "text-h4"), children: name }),
|
|
12970
|
+
subtitle && /* @__PURE__ */ jsx78("span", { className: cn("block truncate text-ods-text-secondary text-h6"), children: subtitle })
|
|
12910
12971
|
] })
|
|
12911
12972
|
] });
|
|
12912
12973
|
}
|
|
12913
12974
|
|
|
12914
12975
|
// src/components/features/card-hit-layer.tsx
|
|
12915
|
-
import { jsx as
|
|
12976
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
12916
12977
|
var HIT_LAYER_BASE = "absolute inset-0 block h-full w-full appearance-none border-0 bg-transparent p-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-focus";
|
|
12917
12978
|
function CardHitLayer({
|
|
12918
12979
|
label,
|
|
@@ -12924,7 +12985,7 @@ function CardHitLayer({
|
|
|
12924
12985
|
}) {
|
|
12925
12986
|
const a11y = decorative ? { "aria-hidden": true, tabIndex: -1 } : { "aria-label": label };
|
|
12926
12987
|
if (href) {
|
|
12927
|
-
return /* @__PURE__ */
|
|
12988
|
+
return /* @__PURE__ */ jsx79(
|
|
12928
12989
|
"a",
|
|
12929
12990
|
{
|
|
12930
12991
|
href,
|
|
@@ -12935,7 +12996,7 @@ function CardHitLayer({
|
|
|
12935
12996
|
}
|
|
12936
12997
|
);
|
|
12937
12998
|
}
|
|
12938
|
-
return /* @__PURE__ */
|
|
12999
|
+
return /* @__PURE__ */ jsx79(
|
|
12939
13000
|
"button",
|
|
12940
13001
|
{
|
|
12941
13002
|
type: "button",
|
|
@@ -12949,7 +13010,7 @@ function CardHitLayer({
|
|
|
12949
13010
|
|
|
12950
13011
|
// src/components/features/cards-strip.tsx
|
|
12951
13012
|
import React5, { useCallback as useCallback12, useEffect as useEffect20, useMemo as useMemo21, useRef as useRef16, useState as useState26 } from "react";
|
|
12952
|
-
import { Fragment as Fragment20, jsx as
|
|
13013
|
+
import { Fragment as Fragment20, jsx as jsx80, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
12953
13014
|
var TRACK_GAP_PX = 16;
|
|
12954
13015
|
var CHEVRON_SUPPRESS_MS = 4e3;
|
|
12955
13016
|
var USER_SCROLL_SUPPRESS_MS = 3e3;
|
|
@@ -12964,7 +13025,7 @@ function ManagedCell({
|
|
|
12964
13025
|
const hintedWidth = React5.isValidElement(item) ? item.props["data-strip-cell-width"] : void 0;
|
|
12965
13026
|
const desktopWidth = typeof hintedWidth === "number" ? hintedWidth : cardWidthDesktop;
|
|
12966
13027
|
const cloneRef = useSuppressCloneFocus(ctx.isClone);
|
|
12967
|
-
return /* @__PURE__ */
|
|
13028
|
+
return /* @__PURE__ */ jsx80(
|
|
12968
13029
|
"div",
|
|
12969
13030
|
{
|
|
12970
13031
|
className: "shrink-0 self-stretch",
|
|
@@ -12977,7 +13038,7 @@ function ManagedCell({
|
|
|
12977
13038
|
if (e.currentTarget.contains(e.relatedTarget)) return;
|
|
12978
13039
|
ctx.onDeactivate(ctx.cardKey);
|
|
12979
13040
|
},
|
|
12980
|
-
children: /* @__PURE__ */
|
|
13041
|
+
children: /* @__PURE__ */ jsx80("div", { ref: cloneRef, className: "h-full [&>*]:h-full [&>a>*]:h-full", "aria-hidden": ctx.isClone || void 0, children: item })
|
|
12981
13042
|
}
|
|
12982
13043
|
);
|
|
12983
13044
|
}
|
|
@@ -13269,11 +13330,11 @@ function CardsStrip(props) {
|
|
|
13269
13330
|
if (!childrenMode) {
|
|
13270
13331
|
return props.renderCard(item, ctx);
|
|
13271
13332
|
}
|
|
13272
|
-
return /* @__PURE__ */
|
|
13333
|
+
return /* @__PURE__ */ jsx80(ManagedCell, { item, ctx, cardWidthMobile, cardWidthDesktop });
|
|
13273
13334
|
};
|
|
13274
13335
|
if (items.length === 0) return null;
|
|
13275
13336
|
const copies = marqueeActive ? 2 : 1;
|
|
13276
|
-
return /* @__PURE__ */
|
|
13337
|
+
return /* @__PURE__ */ jsxs60(
|
|
13277
13338
|
"div",
|
|
13278
13339
|
{
|
|
13279
13340
|
ref: (node) => {
|
|
@@ -13282,10 +13343,10 @@ function CardsStrip(props) {
|
|
|
13282
13343
|
},
|
|
13283
13344
|
className: cn("flex w-full min-w-0 flex-col gap-6", className),
|
|
13284
13345
|
children: [
|
|
13285
|
-
showTitle && title && /* @__PURE__ */
|
|
13346
|
+
showTitle && title && /* @__PURE__ */ jsx80("h2", { className: `${SECTION_HEADING_CLASS} break-words`, children: title }),
|
|
13286
13347
|
headerSlot,
|
|
13287
|
-
/* @__PURE__ */
|
|
13288
|
-
/* @__PURE__ */
|
|
13348
|
+
/* @__PURE__ */ jsxs60("div", { className: "relative", children: [
|
|
13349
|
+
/* @__PURE__ */ jsx80(
|
|
13289
13350
|
"div",
|
|
13290
13351
|
{
|
|
13291
13352
|
ref: scrollerRef,
|
|
@@ -13298,7 +13359,7 @@ function CardsStrip(props) {
|
|
|
13298
13359
|
onPointerLeave: onHoverPointerLeave,
|
|
13299
13360
|
onPointerCancel: clearHover,
|
|
13300
13361
|
onScroll: onSeamWarp,
|
|
13301
|
-
children: /* @__PURE__ */
|
|
13362
|
+
children: /* @__PURE__ */ jsx80("div", { ref: trackRef, "data-copies": copies, className: "flex w-max items-stretch gap-4", children: Array.from(
|
|
13302
13363
|
{ length: copies },
|
|
13303
13364
|
(_, copyIndex) => items.map((item, i) => {
|
|
13304
13365
|
const key = `${getItemKey(item, i)}__${copyIndex}__${i}`;
|
|
@@ -13309,7 +13370,7 @@ function CardsStrip(props) {
|
|
|
13309
13370
|
// ctx.isClone) and the managed cell's job in children mode.
|
|
13310
13371
|
// The engine itself adds no wrapper here in render-prop mode
|
|
13311
13372
|
// so the card root stays the track's direct child.
|
|
13312
|
-
/* @__PURE__ */
|
|
13373
|
+
/* @__PURE__ */ jsx80(React5.Fragment, { children: renderItem(item, {
|
|
13313
13374
|
index: i,
|
|
13314
13375
|
cardKey: key,
|
|
13315
13376
|
isClone,
|
|
@@ -13326,8 +13387,8 @@ function CardsStrip(props) {
|
|
|
13326
13387
|
) })
|
|
13327
13388
|
}
|
|
13328
13389
|
),
|
|
13329
|
-
showChevrons && overflows && /* @__PURE__ */
|
|
13330
|
-
/* @__PURE__ */
|
|
13390
|
+
showChevrons && overflows && /* @__PURE__ */ jsxs60(Fragment20, { children: [
|
|
13391
|
+
/* @__PURE__ */ jsx80(
|
|
13331
13392
|
Button,
|
|
13332
13393
|
{
|
|
13333
13394
|
type: "button",
|
|
@@ -13336,10 +13397,10 @@ function CardsStrip(props) {
|
|
|
13336
13397
|
"aria-label": prevLabel,
|
|
13337
13398
|
onClick: () => scrollByCard(-1),
|
|
13338
13399
|
className: "absolute left-2 top-1/2 z-10 -translate-y-1/2",
|
|
13339
|
-
leftIcon: /* @__PURE__ */
|
|
13400
|
+
leftIcon: /* @__PURE__ */ jsx80(Chevron02LeftIcon, {})
|
|
13340
13401
|
}
|
|
13341
13402
|
),
|
|
13342
|
-
/* @__PURE__ */
|
|
13403
|
+
/* @__PURE__ */ jsx80(
|
|
13343
13404
|
Button,
|
|
13344
13405
|
{
|
|
13345
13406
|
type: "button",
|
|
@@ -13348,7 +13409,7 @@ function CardsStrip(props) {
|
|
|
13348
13409
|
"aria-label": nextLabel,
|
|
13349
13410
|
onClick: () => scrollByCard(1),
|
|
13350
13411
|
className: "absolute right-2 top-1/2 z-10 -translate-y-1/2",
|
|
13351
|
-
leftIcon: /* @__PURE__ */
|
|
13412
|
+
leftIcon: /* @__PURE__ */ jsx80(Chevron02RightIcon, {})
|
|
13352
13413
|
}
|
|
13353
13414
|
)
|
|
13354
13415
|
] })
|
|
@@ -13360,7 +13421,7 @@ function CardsStrip(props) {
|
|
|
13360
13421
|
|
|
13361
13422
|
// src/components/features/video-hover-preview.tsx
|
|
13362
13423
|
import { useEffect as useEffect21, useRef as useRef17, useState as useState27 } from "react";
|
|
13363
|
-
import { Fragment as Fragment21, jsx as
|
|
13424
|
+
import { Fragment as Fragment21, jsx as jsx81, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
13364
13425
|
function VideoHoverPreviewSurface({
|
|
13365
13426
|
url,
|
|
13366
13427
|
posterUrl = null,
|
|
@@ -13399,8 +13460,8 @@ function VideoHoverPreviewSurface({
|
|
|
13399
13460
|
const showMedia = continuation || (gateControlled ? playerMounted : isNear);
|
|
13400
13461
|
const { src: posterSrc, onError: onPosterError } = useCoverImageFallback(posterUrl);
|
|
13401
13462
|
const facadeSkipped = preload === "none" && !posterSrc;
|
|
13402
|
-
return /* @__PURE__ */
|
|
13403
|
-
posterSrc ? /* @__PURE__ */
|
|
13463
|
+
return /* @__PURE__ */ jsx81("div", { ref: rootElRef, className: cn("absolute inset-0", className), inert: isClone || void 0, children: showMedia ? /* @__PURE__ */ jsxs61(Fragment21, { children: [
|
|
13464
|
+
posterSrc ? /* @__PURE__ */ jsx81(
|
|
13404
13465
|
next_image_default,
|
|
13405
13466
|
{
|
|
13406
13467
|
src: posterSrc,
|
|
@@ -13411,14 +13472,14 @@ function VideoHoverPreviewSurface({
|
|
|
13411
13472
|
onError: onPosterError,
|
|
13412
13473
|
className: "object-cover"
|
|
13413
13474
|
}
|
|
13414
|
-
) : facadeSkipped ? /* @__PURE__ */
|
|
13415
|
-
badge === "play" && !active && !continuation && /* @__PURE__ */
|
|
13416
|
-
/* @__PURE__ */
|
|
13475
|
+
) : facadeSkipped ? /* @__PURE__ */ jsx81("div", { className: "absolute inset-0 bg-ods-card" }) : /* @__PURE__ */ jsx81(Video2, { kind: "file", url: previewUrl, firstFrameOnly: true, layout: "fill", fit }),
|
|
13476
|
+
badge === "play" && !active && !continuation && /* @__PURE__ */ jsx81(VideoPlayBadge, { className: "absolute inset-0 z-10 m-auto" }),
|
|
13477
|
+
/* @__PURE__ */ jsx81(
|
|
13417
13478
|
"div",
|
|
13418
13479
|
{
|
|
13419
13480
|
className: "absolute inset-0",
|
|
13420
13481
|
style: { "--media-background-color": "transparent" },
|
|
13421
|
-
children: /* @__PURE__ */
|
|
13482
|
+
children: /* @__PURE__ */ jsx81(
|
|
13422
13483
|
Video2,
|
|
13423
13484
|
{
|
|
13424
13485
|
kind: "file",
|
|
@@ -13444,11 +13505,11 @@ function VideoHoverPreviewSurface({
|
|
|
13444
13505
|
)
|
|
13445
13506
|
}
|
|
13446
13507
|
)
|
|
13447
|
-
] }) : /* @__PURE__ */
|
|
13508
|
+
] }) : /* @__PURE__ */ jsx81("div", { className: "absolute inset-0 bg-ods-card" }) });
|
|
13448
13509
|
}
|
|
13449
13510
|
|
|
13450
13511
|
// src/components/features/video-ratio-tabs.tsx
|
|
13451
|
-
import { Fragment as Fragment22, jsx as
|
|
13512
|
+
import { Fragment as Fragment22, jsx as jsx82, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
13452
13513
|
var TAB_TRIGGER_CLASS = "rounded-none border-b-2 border-transparent data-[state=active]:border-ods-accent data-[state=active]:bg-transparent data-[state=active]:shadow-none px-4 py-2 text-h6 text-ods-text-secondary data-[state=active]:text-ods-text-primary";
|
|
13453
13514
|
var RATIO_GRID_CLASS = {
|
|
13454
13515
|
portrait: "grid grid-cols-2 md:grid-cols-3 gap-4",
|
|
@@ -13469,17 +13530,17 @@ function RatioTabs({ groups, defaultTab, className = "" }) {
|
|
|
13469
13530
|
const activeTabs = RATIO_TAB_CONFIG.filter((t) => groups[t.key].count > 0);
|
|
13470
13531
|
if (activeTabs.length <= 1) {
|
|
13471
13532
|
const active = activeTabs[0];
|
|
13472
|
-
return active ? /* @__PURE__ */
|
|
13533
|
+
return active ? /* @__PURE__ */ jsx82(Fragment22, { children: groups[active.key].render() }) : null;
|
|
13473
13534
|
}
|
|
13474
13535
|
const firstTab = defaultTab && groups[defaultTab].count > 0 ? defaultTab : activeTabs[0].key;
|
|
13475
|
-
return /* @__PURE__ */
|
|
13476
|
-
/* @__PURE__ */
|
|
13536
|
+
return /* @__PURE__ */ jsxs62(Tabs, { defaultValue: firstTab, className: `w-full ${className}`, children: [
|
|
13537
|
+
/* @__PURE__ */ jsx82(TabsList, { className: "mb-2 inline-flex h-auto justify-start gap-0 rounded-none bg-transparent p-0", children: activeTabs.map((t) => /* @__PURE__ */ jsxs62(TabsTrigger, { value: t.key, className: TAB_TRIGGER_CLASS, children: [
|
|
13477
13538
|
t.label,
|
|
13478
13539
|
" (",
|
|
13479
13540
|
groups[t.key].count,
|
|
13480
13541
|
")"
|
|
13481
13542
|
] }, t.key)) }),
|
|
13482
|
-
activeTabs.map((t) => /* @__PURE__ */
|
|
13543
|
+
activeTabs.map((t) => /* @__PURE__ */ jsx82(TabsContent, { value: t.key, forceMount: true, className: "data-[state=inactive]:hidden", children: groups[t.key].render() }, t.key))
|
|
13483
13544
|
] });
|
|
13484
13545
|
}
|
|
13485
13546
|
function detectAspectRatio(ratioString, width, height) {
|
|
@@ -13512,7 +13573,7 @@ function groupByAspectRatio(items, getAspectRatio) {
|
|
|
13512
13573
|
}
|
|
13513
13574
|
|
|
13514
13575
|
// src/components/features/video-bites-strip.tsx
|
|
13515
|
-
import { Fragment as Fragment23, jsx as
|
|
13576
|
+
import { Fragment as Fragment23, jsx as jsx83, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
13516
13577
|
function VideoBitesStrip({
|
|
13517
13578
|
bites,
|
|
13518
13579
|
title = DEFAULT_VIDEO_BITES_TITLE,
|
|
@@ -13536,7 +13597,7 @@ function VideoBitesStrip({
|
|
|
13536
13597
|
return filtered.sort(sortComparator);
|
|
13537
13598
|
}, [bites, filterPublished, sortComparator]);
|
|
13538
13599
|
const warmup = useVideoWarmup({ videoUrl: items[0]?.url || null });
|
|
13539
|
-
return /* @__PURE__ */
|
|
13600
|
+
return /* @__PURE__ */ jsx83(
|
|
13540
13601
|
CardsStrip,
|
|
13541
13602
|
{
|
|
13542
13603
|
items,
|
|
@@ -13552,7 +13613,7 @@ function VideoBitesStrip({
|
|
|
13552
13613
|
nextLabel: "Next videos",
|
|
13553
13614
|
rootRef: warmup.ref,
|
|
13554
13615
|
className,
|
|
13555
|
-
renderCard: (bite, ctx) => /* @__PURE__ */
|
|
13616
|
+
renderCard: (bite, ctx) => /* @__PURE__ */ jsx83(
|
|
13556
13617
|
VideoBiteCard,
|
|
13557
13618
|
{
|
|
13558
13619
|
bite,
|
|
@@ -13625,13 +13686,13 @@ function VideoBiteCard({
|
|
|
13625
13686
|
if (isTouch && !isActive) activate();
|
|
13626
13687
|
};
|
|
13627
13688
|
const titleClass = "text-h6 text-ods-text-primary";
|
|
13628
|
-
const overlayContent = /* @__PURE__ */
|
|
13689
|
+
const overlayContent = /* @__PURE__ */ jsxs63(Fragment23, { children: [
|
|
13629
13690
|
titleEditable ? (
|
|
13630
13691
|
// Textarea, not input: the public title wraps to two lines
|
|
13631
13692
|
// (line-clamp-2) and the editor must render identically. rows=1 +
|
|
13632
13693
|
// auto-grow keeps short titles single-line; max-height caps at the
|
|
13633
13694
|
// same two lines the clamp allows.
|
|
13634
|
-
/* @__PURE__ */
|
|
13695
|
+
/* @__PURE__ */ jsx83(
|
|
13635
13696
|
"textarea",
|
|
13636
13697
|
{
|
|
13637
13698
|
value: bite.title || "",
|
|
@@ -13649,9 +13710,9 @@ function VideoBiteCard({
|
|
|
13649
13710
|
)
|
|
13650
13711
|
}
|
|
13651
13712
|
)
|
|
13652
|
-
) : bite.title && /* @__PURE__ */
|
|
13653
|
-
(profile || hasTarget) && /* @__PURE__ */
|
|
13654
|
-
profile && /* @__PURE__ */
|
|
13713
|
+
) : bite.title && /* @__PURE__ */ jsx83("p", { className: cn(titleClass, "line-clamp-2"), children: bite.title }),
|
|
13714
|
+
(profile || hasTarget) && /* @__PURE__ */ jsxs63("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
13715
|
+
profile && /* @__PURE__ */ jsx83(
|
|
13655
13716
|
UserDisplay,
|
|
13656
13717
|
{
|
|
13657
13718
|
name: profile.name,
|
|
@@ -13663,7 +13724,7 @@ function VideoBiteCard({
|
|
|
13663
13724
|
className: "flex-1"
|
|
13664
13725
|
}
|
|
13665
13726
|
),
|
|
13666
|
-
hasTarget && /* @__PURE__ */
|
|
13727
|
+
hasTarget && /* @__PURE__ */ jsx83(Chevron02RightIcon, { className: "ml-auto h-5 w-5 shrink-0 text-ods-text-primary" })
|
|
13667
13728
|
] })
|
|
13668
13729
|
] });
|
|
13669
13730
|
const overlayClass = cn(
|
|
@@ -13675,13 +13736,13 @@ function VideoBiteCard({
|
|
|
13675
13736
|
isActive ? "pointer-events-auto" : "pointer-events-none"
|
|
13676
13737
|
);
|
|
13677
13738
|
const hitLayerClass = cn("z-[5]", isTouch && !isActive ? "pointer-events-none" : "pointer-events-auto");
|
|
13678
|
-
const media = /* @__PURE__ */
|
|
13739
|
+
const media = /* @__PURE__ */ jsxs63(
|
|
13679
13740
|
"div",
|
|
13680
13741
|
{
|
|
13681
13742
|
className: "relative w-full",
|
|
13682
13743
|
style: { aspectRatio: cssAspect, ...height !== void 0 ? { height, maxWidth: STRIP_CELL_MAX_WIDTH } : {} },
|
|
13683
13744
|
children: [
|
|
13684
|
-
/* @__PURE__ */
|
|
13745
|
+
/* @__PURE__ */ jsx83(
|
|
13685
13746
|
VideoHoverPreviewSurface,
|
|
13686
13747
|
{
|
|
13687
13748
|
url: bite.url,
|
|
@@ -13697,8 +13758,8 @@ function VideoBiteCard({
|
|
|
13697
13758
|
// the bottom strip, so the card centre (where the play glyph sits) was
|
|
13698
13759
|
// not clickable and showed no pointer cursor even though the glyph
|
|
13699
13760
|
// accented on hover. One interactive element, no a11y duplication.
|
|
13700
|
-
/* @__PURE__ */
|
|
13701
|
-
/* @__PURE__ */
|
|
13761
|
+
/* @__PURE__ */ jsxs63(Fragment23, { children: [
|
|
13762
|
+
/* @__PURE__ */ jsx83(
|
|
13702
13763
|
CardHitLayer,
|
|
13703
13764
|
{
|
|
13704
13765
|
label: `Open ${bite.title || "source content"}`,
|
|
@@ -13708,13 +13769,13 @@ function VideoBiteCard({
|
|
|
13708
13769
|
decorative: isClone
|
|
13709
13770
|
}
|
|
13710
13771
|
),
|
|
13711
|
-
/* @__PURE__ */
|
|
13772
|
+
/* @__PURE__ */ jsx83("div", { className: cn(overlayClass, "pointer-events-none"), children: overlayContent })
|
|
13712
13773
|
] })
|
|
13713
|
-
) : /* @__PURE__ */
|
|
13774
|
+
) : /* @__PURE__ */ jsx83("div", { className: overlayClass, children: overlayContent })
|
|
13714
13775
|
]
|
|
13715
13776
|
}
|
|
13716
13777
|
);
|
|
13717
|
-
return /* @__PURE__ */
|
|
13778
|
+
return /* @__PURE__ */ jsxs63(
|
|
13718
13779
|
"div",
|
|
13719
13780
|
{
|
|
13720
13781
|
ref: (node) => rootRef?.(node),
|
|
@@ -13736,14 +13797,14 @@ function VideoBiteCard({
|
|
|
13736
13797
|
toolbar && // Solid-surface action row UNDER the media (WCAG non-text contrast —
|
|
13737
13798
|
// see the `toolbar` prop doc). Part of the card, so hovering it keeps
|
|
13738
13799
|
// hover playback alive.
|
|
13739
|
-
/* @__PURE__ */
|
|
13800
|
+
/* @__PURE__ */ jsx83("div", { className: "flex items-center justify-between gap-1 border-t border-ods-border bg-ods-card px-2 py-1.5", children: toolbar })
|
|
13740
13801
|
]
|
|
13741
13802
|
}
|
|
13742
13803
|
);
|
|
13743
13804
|
}
|
|
13744
13805
|
|
|
13745
13806
|
// src/components/features/entity-video-section.tsx
|
|
13746
|
-
import { Fragment as Fragment24, jsx as
|
|
13807
|
+
import { Fragment as Fragment24, jsx as jsx84, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
13747
13808
|
function EntityVideoSection({
|
|
13748
13809
|
mainVideoUrl,
|
|
13749
13810
|
youtubeUrl,
|
|
@@ -13779,10 +13840,10 @@ function EntityVideoSection({
|
|
|
13779
13840
|
}
|
|
13780
13841
|
const fullVideoUrl = youtubeUrl || mainVideoUrl || null;
|
|
13781
13842
|
const fullVideoKind = youtubeUrl ? "youtube" : "auto";
|
|
13782
|
-
return /* @__PURE__ */
|
|
13783
|
-
hasVideo && (fullVideoUrl && hasHighlight ? /* @__PURE__ */
|
|
13784
|
-
/* @__PURE__ */
|
|
13785
|
-
/* @__PURE__ */
|
|
13843
|
+
return /* @__PURE__ */ jsxs64(Fragment24, { children: [
|
|
13844
|
+
hasVideo && (fullVideoUrl && hasHighlight ? /* @__PURE__ */ jsxs64(Tabs, { defaultValue: "full-video", className: "w-full", children: [
|
|
13845
|
+
/* @__PURE__ */ jsxs64(TabsList, { className: "inline-flex h-auto justify-start gap-0 rounded-none bg-transparent p-0", children: [
|
|
13846
|
+
/* @__PURE__ */ jsx84(
|
|
13786
13847
|
TabsTrigger,
|
|
13787
13848
|
{
|
|
13788
13849
|
value: "full-video",
|
|
@@ -13790,7 +13851,7 @@ function EntityVideoSection({
|
|
|
13790
13851
|
children: "Full Video"
|
|
13791
13852
|
}
|
|
13792
13853
|
),
|
|
13793
|
-
/* @__PURE__ */
|
|
13854
|
+
/* @__PURE__ */ jsx84(
|
|
13794
13855
|
TabsTrigger,
|
|
13795
13856
|
{
|
|
13796
13857
|
value: "highlights",
|
|
@@ -13799,7 +13860,7 @@ function EntityVideoSection({
|
|
|
13799
13860
|
}
|
|
13800
13861
|
)
|
|
13801
13862
|
] }),
|
|
13802
|
-
/* @__PURE__ */
|
|
13863
|
+
/* @__PURE__ */ jsx84(TabsContent, { value: "full-video", className: "mt-4", children: /* @__PURE__ */ jsx84(
|
|
13803
13864
|
Video2,
|
|
13804
13865
|
{
|
|
13805
13866
|
kind: fullVideoKind,
|
|
@@ -13812,7 +13873,7 @@ function EntityVideoSection({
|
|
|
13812
13873
|
priority
|
|
13813
13874
|
}
|
|
13814
13875
|
) }),
|
|
13815
|
-
/* @__PURE__ */
|
|
13876
|
+
/* @__PURE__ */ jsx84(TabsContent, { value: "highlights", className: "mt-4", children: /* @__PURE__ */ jsx84(
|
|
13816
13877
|
Video2,
|
|
13817
13878
|
{
|
|
13818
13879
|
url: highlightVideoUrl,
|
|
@@ -13821,7 +13882,7 @@ function EntityVideoSection({
|
|
|
13821
13882
|
layout: "centered"
|
|
13822
13883
|
}
|
|
13823
13884
|
) })
|
|
13824
|
-
] }) : fullVideoUrl ? /* @__PURE__ */
|
|
13885
|
+
] }) : fullVideoUrl ? /* @__PURE__ */ jsx84(
|
|
13825
13886
|
Video2,
|
|
13826
13887
|
{
|
|
13827
13888
|
kind: fullVideoKind,
|
|
@@ -13833,7 +13894,7 @@ function EntityVideoSection({
|
|
|
13833
13894
|
layout: "centered",
|
|
13834
13895
|
priority
|
|
13835
13896
|
}
|
|
13836
|
-
) : highlightVideoUrl ? /* @__PURE__ */
|
|
13897
|
+
) : highlightVideoUrl ? /* @__PURE__ */ jsx84(
|
|
13837
13898
|
Video2,
|
|
13838
13899
|
{
|
|
13839
13900
|
url: highlightVideoUrl,
|
|
@@ -13843,11 +13904,11 @@ function EntityVideoSection({
|
|
|
13843
13904
|
priority
|
|
13844
13905
|
}
|
|
13845
13906
|
) : null),
|
|
13846
|
-
videoSummary && MarkdownRenderer && /* @__PURE__ */
|
|
13847
|
-
/* @__PURE__ */
|
|
13848
|
-
/* @__PURE__ */
|
|
13907
|
+
videoSummary && MarkdownRenderer && /* @__PURE__ */ jsxs64("div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
13908
|
+
/* @__PURE__ */ jsx84("h2", { className: `${SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
13909
|
+
/* @__PURE__ */ jsx84("div", { className: "overflow-hidden break-words text-ods-text-primary text-h4", children: /* @__PURE__ */ jsx84(MarkdownRenderer, { content: videoSummary }) })
|
|
13849
13910
|
] }),
|
|
13850
|
-
videoBites && videoBites.length > 0 && /* @__PURE__ */
|
|
13911
|
+
videoBites && videoBites.length > 0 && /* @__PURE__ */ jsx84(
|
|
13851
13912
|
VideoBitesStrip,
|
|
13852
13913
|
{
|
|
13853
13914
|
bites: videoBites,
|
|
@@ -13864,7 +13925,7 @@ function EntityVideoSection({
|
|
|
13864
13925
|
}
|
|
13865
13926
|
|
|
13866
13927
|
// src/components/chat/entity-cards/chat-video-entity-card.tsx
|
|
13867
|
-
import { jsx as
|
|
13928
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
13868
13929
|
function readString(value) {
|
|
13869
13930
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
13870
13931
|
}
|
|
@@ -13875,7 +13936,7 @@ function ChatVideoEntityCard({ chatRef }) {
|
|
|
13875
13936
|
const poster = readString(m.videoPoster);
|
|
13876
13937
|
const highlightUrl = readString(m.highlightVideoUrl);
|
|
13877
13938
|
const highlightPoster = readString(m.highlightVideoPoster);
|
|
13878
|
-
return /* @__PURE__ */
|
|
13939
|
+
return /* @__PURE__ */ jsx85(
|
|
13879
13940
|
EntityVideoSection,
|
|
13880
13941
|
{
|
|
13881
13942
|
mainVideoUrl: videoUrl,
|
|
@@ -13892,7 +13953,7 @@ function ChatVideoEntityCard({ chatRef }) {
|
|
|
13892
13953
|
// src/components/chat/entity-cards/github-activity-card.tsx
|
|
13893
13954
|
import { GitPullRequest, Eye, ExternalLink } from "lucide-react";
|
|
13894
13955
|
import React6 from "react";
|
|
13895
|
-
import { Fragment as Fragment25, jsx as
|
|
13956
|
+
import { Fragment as Fragment25, jsx as jsx86, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
13896
13957
|
function parseRepoFromUrl(url) {
|
|
13897
13958
|
if (!url) return null;
|
|
13898
13959
|
try {
|
|
@@ -13907,12 +13968,12 @@ function parseRepoFromUrl(url) {
|
|
|
13907
13968
|
function kindIcon(kind, className = "h-4 w-4") {
|
|
13908
13969
|
switch (kind) {
|
|
13909
13970
|
case "pull_request":
|
|
13910
|
-
return /* @__PURE__ */
|
|
13971
|
+
return /* @__PURE__ */ jsx86(GitPullRequest, { className: `${className} shrink-0` });
|
|
13911
13972
|
case "pr_review":
|
|
13912
|
-
return /* @__PURE__ */
|
|
13973
|
+
return /* @__PURE__ */ jsx86(Eye, { className: `${className} shrink-0` });
|
|
13913
13974
|
case "commit":
|
|
13914
13975
|
default:
|
|
13915
|
-
return /* @__PURE__ */
|
|
13976
|
+
return /* @__PURE__ */ jsx86(GitHubIcon, { className: `${className} shrink-0` });
|
|
13916
13977
|
}
|
|
13917
13978
|
}
|
|
13918
13979
|
function kindLabel(kind) {
|
|
@@ -13987,7 +14048,7 @@ function reviewStateLabel(state) {
|
|
|
13987
14048
|
}
|
|
13988
14049
|
function ReviewStateBadge({ state, className = "" }) {
|
|
13989
14050
|
const { label, className: paint } = REVIEW_STATE_STYLE[state] ?? REVIEW_STATE_STYLE.COMMENTED;
|
|
13990
|
-
return /* @__PURE__ */
|
|
14051
|
+
return /* @__PURE__ */ jsx86("span", { className: `inline-flex shrink-0 items-center rounded px-1.5 py-0.5 text-h5 ${paint} ${className}`, children: label });
|
|
13991
14052
|
}
|
|
13992
14053
|
function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
|
|
13993
14054
|
const kind = item.kind ?? "commit";
|
|
@@ -13997,86 +14058,86 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
13997
14058
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
13998
14059
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
13999
14060
|
if (variant === "row") {
|
|
14000
|
-
return /* @__PURE__ */
|
|
14001
|
-
/* @__PURE__ */
|
|
14061
|
+
return /* @__PURE__ */ jsxs65("div", { className: `flex min-w-0 items-center gap-3 ${className ?? ""}`, children: [
|
|
14062
|
+
/* @__PURE__ */ jsxs65("span", { className: "flex w-28 shrink-0 items-center gap-2", children: [
|
|
14002
14063
|
kindIcon(kind, "h-3.5 w-3.5"),
|
|
14003
|
-
/* @__PURE__ */
|
|
14064
|
+
/* @__PURE__ */ jsx86("code", { className: "truncate text-ods-text-secondary text-code", children: idLabel })
|
|
14004
14065
|
] }),
|
|
14005
|
-
/* @__PURE__ */
|
|
14006
|
-
reviewState ? /* @__PURE__ */
|
|
14007
|
-
/* @__PURE__ */
|
|
14066
|
+
/* @__PURE__ */ jsxs65("span", { className: "flex min-w-0 flex-1 items-center gap-2 text-ods-text-primary text-h6", children: [
|
|
14067
|
+
reviewState ? /* @__PURE__ */ jsx86(ReviewStateBadge, { state: reviewState }) : null,
|
|
14068
|
+
/* @__PURE__ */ jsx86("span", { className: "truncate", children: primaryText })
|
|
14008
14069
|
] }),
|
|
14009
|
-
repo ? /* @__PURE__ */
|
|
14010
|
-
dateText ? /* @__PURE__ */
|
|
14070
|
+
repo ? /* @__PURE__ */ jsx86("span", { className: "max-w-[240px] shrink-0 truncate text-ods-text-secondary text-code", children: repo }) : null,
|
|
14071
|
+
dateText ? /* @__PURE__ */ jsx86("span", { className: "w-24 shrink-0 text-right text-ods-text-secondary text-h6", children: dateText }) : null
|
|
14011
14072
|
] });
|
|
14012
14073
|
}
|
|
14013
14074
|
const metaParts = [];
|
|
14014
14075
|
metaParts.push(
|
|
14015
|
-
/* @__PURE__ */
|
|
14076
|
+
/* @__PURE__ */ jsx86("span", { className: "uppercase text-h6", children: kindLabel(kind) }, "kind")
|
|
14016
14077
|
);
|
|
14017
14078
|
if (idLabel)
|
|
14018
14079
|
metaParts.push(
|
|
14019
|
-
/* @__PURE__ */
|
|
14080
|
+
/* @__PURE__ */ jsx86("code", { className: "font-mono", children: idLabel }, "id")
|
|
14020
14081
|
);
|
|
14021
14082
|
if (repo)
|
|
14022
14083
|
metaParts.push(
|
|
14023
|
-
/* @__PURE__ */
|
|
14084
|
+
/* @__PURE__ */ jsx86("span", { className: "truncate font-mono", children: repo }, "repo")
|
|
14024
14085
|
);
|
|
14025
14086
|
if (dateText)
|
|
14026
14087
|
metaParts.push(
|
|
14027
|
-
/* @__PURE__ */
|
|
14088
|
+
/* @__PURE__ */ jsx86("span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
14028
14089
|
);
|
|
14029
14090
|
const href = safeHref(item.url);
|
|
14030
|
-
const body = /* @__PURE__ */
|
|
14031
|
-
/* @__PURE__ */
|
|
14032
|
-
/* @__PURE__ */
|
|
14033
|
-
/* @__PURE__ */
|
|
14034
|
-
reviewState ? /* @__PURE__ */
|
|
14035
|
-
/* @__PURE__ */
|
|
14091
|
+
const body = /* @__PURE__ */ jsxs65(Fragment25, { children: [
|
|
14092
|
+
/* @__PURE__ */ jsx86("span", { className: COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
14093
|
+
/* @__PURE__ */ jsxs65("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
14094
|
+
/* @__PURE__ */ jsxs65("span", { className: `${COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
14095
|
+
reviewState ? /* @__PURE__ */ jsx86(ReviewStateBadge, { state: reviewState }) : null,
|
|
14096
|
+
/* @__PURE__ */ jsx86("span", { className: COMPACT_CARD_TITLE, children: primaryText })
|
|
14036
14097
|
] }),
|
|
14037
|
-
/* @__PURE__ */
|
|
14038
|
-
i > 0 ? /* @__PURE__ */
|
|
14039
|
-
/* @__PURE__ */
|
|
14098
|
+
/* @__PURE__ */ jsx86("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx86("span", { className: COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ jsxs65(React6.Fragment, { children: [
|
|
14099
|
+
i > 0 ? /* @__PURE__ */ jsx86("span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
14100
|
+
/* @__PURE__ */ jsx86("span", { className: "min-w-0 truncate", children: part })
|
|
14040
14101
|
] }, i)) }) }),
|
|
14041
|
-
/* @__PURE__ */
|
|
14102
|
+
/* @__PURE__ */ jsx86("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx86("span", { className: COMPACT_CARD_SUMMARY, children: COMPACT_CARD_ROW_FILLER }) })
|
|
14042
14103
|
] }),
|
|
14043
|
-
href ? /* @__PURE__ */
|
|
14104
|
+
href ? /* @__PURE__ */ jsx86("span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ jsx86(ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
14044
14105
|
] });
|
|
14045
14106
|
if (anchorProps) {
|
|
14046
|
-
return /* @__PURE__ */
|
|
14107
|
+
return /* @__PURE__ */ jsx86("a", { ...anchorProps, className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: body });
|
|
14047
14108
|
}
|
|
14048
|
-
return href ? /* @__PURE__ */
|
|
14109
|
+
return href ? /* @__PURE__ */ jsx86("a", { href, target: "_blank", rel: "noopener noreferrer", className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: body }) : /* @__PURE__ */ jsx86("span", { className: `${COMPACT_CARD_OUTER_STATIC} ${className ?? ""}`, "aria-label": "No link available", children: body });
|
|
14049
14110
|
}
|
|
14050
14111
|
function GitHubActivityCardSkeleton({
|
|
14051
14112
|
variant = "compact",
|
|
14052
14113
|
className
|
|
14053
14114
|
}) {
|
|
14054
14115
|
if (variant === "row") {
|
|
14055
|
-
return /* @__PURE__ */
|
|
14056
|
-
/* @__PURE__ */
|
|
14057
|
-
/* @__PURE__ */
|
|
14058
|
-
/* @__PURE__ */
|
|
14116
|
+
return /* @__PURE__ */ jsxs65("div", { className: `flex min-w-0 animate-pulse items-center gap-3 ${className ?? ""}`, children: [
|
|
14117
|
+
/* @__PURE__ */ jsxs65("div", { className: "flex w-28 shrink-0 items-center gap-2", children: [
|
|
14118
|
+
/* @__PURE__ */ jsx86("div", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }),
|
|
14119
|
+
/* @__PURE__ */ jsx86("div", { className: "h-3 w-16 rounded bg-ods-bg" })
|
|
14059
14120
|
] }),
|
|
14060
|
-
/* @__PURE__ */
|
|
14061
|
-
/* @__PURE__ */
|
|
14062
|
-
/* @__PURE__ */
|
|
14121
|
+
/* @__PURE__ */ jsx86("div", { className: "h-3 w-2/3 flex-1 rounded bg-ods-bg" }),
|
|
14122
|
+
/* @__PURE__ */ jsx86("div", { className: "h-3 w-40 shrink-0 rounded bg-ods-bg/60" }),
|
|
14123
|
+
/* @__PURE__ */ jsx86("div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
14063
14124
|
] });
|
|
14064
14125
|
}
|
|
14065
|
-
return /* @__PURE__ */
|
|
14066
|
-
/* @__PURE__ */
|
|
14067
|
-
/* @__PURE__ */
|
|
14068
|
-
/* @__PURE__ */
|
|
14069
|
-
/* @__PURE__ */
|
|
14070
|
-
/* @__PURE__ */
|
|
14126
|
+
return /* @__PURE__ */ jsxs65("span", { className: `${COMPACT_CARD_SKELETON_OUTER} ${className ?? ""}`, children: [
|
|
14127
|
+
/* @__PURE__ */ jsx86("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
14128
|
+
/* @__PURE__ */ jsxs65("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
14129
|
+
/* @__PURE__ */ jsx86("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx86("span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
|
|
14130
|
+
/* @__PURE__ */ jsx86("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx86("span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
14131
|
+
/* @__PURE__ */ jsx86("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx86("span", { className: COMPACT_CARD_SUMMARY, children: COMPACT_CARD_ROW_FILLER }) })
|
|
14071
14132
|
] }),
|
|
14072
|
-
/* @__PURE__ */
|
|
14133
|
+
/* @__PURE__ */ jsx86("span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ jsx86("span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
14073
14134
|
] });
|
|
14074
14135
|
}
|
|
14075
14136
|
|
|
14076
14137
|
// src/components/chat/entity-cards/slack-message-card.tsx
|
|
14077
14138
|
import { ExternalLink as ExternalLink2, Hash } from "lucide-react";
|
|
14078
14139
|
import React7 from "react";
|
|
14079
|
-
import { Fragment as Fragment26, jsx as
|
|
14140
|
+
import { Fragment as Fragment26, jsx as jsx87, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
14080
14141
|
function parseChannelFromUrl(url) {
|
|
14081
14142
|
if (!url) return null;
|
|
14082
14143
|
try {
|
|
@@ -14093,76 +14154,76 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
|
|
|
14093
14154
|
const channel = item.channel ?? parseChannelFromUrl(item.url) ?? null;
|
|
14094
14155
|
const dateText = formatDateUTC(item.dateUpdated, { fallback: "", timezone: "local" });
|
|
14095
14156
|
if (variant === "row") {
|
|
14096
|
-
return /* @__PURE__ */
|
|
14097
|
-
/* @__PURE__ */
|
|
14098
|
-
/* @__PURE__ */
|
|
14099
|
-
item.preview ? /* @__PURE__ */
|
|
14100
|
-
channel ? /* @__PURE__ */
|
|
14101
|
-
/* @__PURE__ */
|
|
14157
|
+
return /* @__PURE__ */ jsxs66("div", { className: `flex min-w-0 items-center gap-3 ${className ?? ""}`, children: [
|
|
14158
|
+
/* @__PURE__ */ jsx87(SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
14159
|
+
/* @__PURE__ */ jsx87("span", { className: "max-w-[180px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
|
|
14160
|
+
item.preview ? /* @__PURE__ */ jsx87("span", { className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h6", children: item.preview }) : null,
|
|
14161
|
+
channel ? /* @__PURE__ */ jsxs66("span", { className: "max-w-[140px] shrink-0 truncate text-ods-text-secondary text-code", children: [
|
|
14162
|
+
/* @__PURE__ */ jsx87(Hash, { className: "inline h-3 w-3" }),
|
|
14102
14163
|
channel
|
|
14103
14164
|
] }) : null,
|
|
14104
|
-
dateText ? /* @__PURE__ */
|
|
14165
|
+
dateText ? /* @__PURE__ */ jsx87("span", { className: "w-24 shrink-0 text-right text-ods-text-secondary text-h6", children: dateText }) : null
|
|
14105
14166
|
] });
|
|
14106
14167
|
}
|
|
14107
14168
|
const metaParts = [];
|
|
14108
14169
|
if (channel) {
|
|
14109
14170
|
metaParts.push(
|
|
14110
|
-
/* @__PURE__ */
|
|
14111
|
-
/* @__PURE__ */
|
|
14112
|
-
/* @__PURE__ */
|
|
14171
|
+
/* @__PURE__ */ jsxs66("span", { className: "flex min-w-0 items-center gap-0.5", children: [
|
|
14172
|
+
/* @__PURE__ */ jsx87(Hash, { className: "h-3 w-3 shrink-0" }),
|
|
14173
|
+
/* @__PURE__ */ jsx87("span", { className: "truncate font-mono", children: channel })
|
|
14113
14174
|
] }, "channel")
|
|
14114
14175
|
);
|
|
14115
14176
|
}
|
|
14116
14177
|
if (dateText)
|
|
14117
14178
|
metaParts.push(
|
|
14118
|
-
/* @__PURE__ */
|
|
14179
|
+
/* @__PURE__ */ jsx87("span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
14119
14180
|
);
|
|
14120
14181
|
const href = safeHref(item.url);
|
|
14121
|
-
const body = /* @__PURE__ */
|
|
14122
|
-
/* @__PURE__ */
|
|
14123
|
-
/* @__PURE__ */
|
|
14124
|
-
/* @__PURE__ */
|
|
14125
|
-
/* @__PURE__ */
|
|
14126
|
-
/* @__PURE__ */
|
|
14127
|
-
i > 0 ? /* @__PURE__ */
|
|
14128
|
-
/* @__PURE__ */
|
|
14129
|
-
] }, i)) : /* @__PURE__ */
|
|
14182
|
+
const body = /* @__PURE__ */ jsxs66(Fragment26, { children: [
|
|
14183
|
+
/* @__PURE__ */ jsx87("span", { className: COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ jsx87(SlackIcon, { className: "h-5 w-5" }) }),
|
|
14184
|
+
/* @__PURE__ */ jsxs66("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
14185
|
+
/* @__PURE__ */ jsx87("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx87("span", { className: COMPACT_CARD_TITLE, children: item.title }) }),
|
|
14186
|
+
/* @__PURE__ */ jsx87("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx87("span", { className: COMPACT_CARD_SUMMARY, children: item.preview || COMPACT_CARD_ROW_FILLER }) }),
|
|
14187
|
+
/* @__PURE__ */ jsx87("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx87("span", { className: COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ jsxs66(React7.Fragment, { children: [
|
|
14188
|
+
i > 0 ? /* @__PURE__ */ jsx87("span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
14189
|
+
/* @__PURE__ */ jsx87("span", { className: "min-w-0 truncate", children: part })
|
|
14190
|
+
] }, i)) : /* @__PURE__ */ jsx87("span", { className: COMPACT_CARD_SUMMARY, children: COMPACT_CARD_ROW_FILLER }) }) })
|
|
14130
14191
|
] }),
|
|
14131
|
-
href ? /* @__PURE__ */
|
|
14192
|
+
href ? /* @__PURE__ */ jsx87("span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ jsx87(ExternalLink2, { className: "h-3.5 w-3.5" }) }) : null
|
|
14132
14193
|
] });
|
|
14133
14194
|
if (anchorProps) {
|
|
14134
|
-
return /* @__PURE__ */
|
|
14195
|
+
return /* @__PURE__ */ jsx87("a", { ...anchorProps, className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: body });
|
|
14135
14196
|
}
|
|
14136
|
-
return href ? /* @__PURE__ */
|
|
14197
|
+
return href ? /* @__PURE__ */ jsx87("a", { href, target: "_blank", rel: "noopener noreferrer", className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: body }) : /* @__PURE__ */ jsx87("span", { className: `${COMPACT_CARD_OUTER_STATIC} ${className ?? ""}`, "aria-label": "No link available", children: body });
|
|
14137
14198
|
}
|
|
14138
14199
|
function SlackMessageCardSkeleton({
|
|
14139
14200
|
variant = "compact",
|
|
14140
14201
|
className
|
|
14141
14202
|
}) {
|
|
14142
14203
|
if (variant === "row") {
|
|
14143
|
-
return /* @__PURE__ */
|
|
14144
|
-
/* @__PURE__ */
|
|
14145
|
-
/* @__PURE__ */
|
|
14146
|
-
/* @__PURE__ */
|
|
14147
|
-
/* @__PURE__ */
|
|
14148
|
-
/* @__PURE__ */
|
|
14204
|
+
return /* @__PURE__ */ jsxs66("div", { className: `flex min-w-0 animate-pulse items-center gap-3 ${className ?? ""}`, children: [
|
|
14205
|
+
/* @__PURE__ */ jsx87("div", { className: "h-3.5 w-3.5 shrink-0 rounded bg-ods-bg" }),
|
|
14206
|
+
/* @__PURE__ */ jsx87("div", { className: "h-3 w-32 shrink-0 rounded bg-ods-bg" }),
|
|
14207
|
+
/* @__PURE__ */ jsx87("div", { className: "h-3 w-2/3 flex-1 rounded bg-ods-bg/60" }),
|
|
14208
|
+
/* @__PURE__ */ jsx87("div", { className: "h-3 w-24 shrink-0 rounded bg-ods-bg/60" }),
|
|
14209
|
+
/* @__PURE__ */ jsx87("div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
14149
14210
|
] });
|
|
14150
14211
|
}
|
|
14151
|
-
return /* @__PURE__ */
|
|
14152
|
-
/* @__PURE__ */
|
|
14153
|
-
/* @__PURE__ */
|
|
14154
|
-
/* @__PURE__ */
|
|
14155
|
-
/* @__PURE__ */
|
|
14156
|
-
/* @__PURE__ */
|
|
14212
|
+
return /* @__PURE__ */ jsxs66("span", { className: `${COMPACT_CARD_SKELETON_OUTER} ${className ?? ""}`, children: [
|
|
14213
|
+
/* @__PURE__ */ jsx87("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
14214
|
+
/* @__PURE__ */ jsxs66("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
14215
|
+
/* @__PURE__ */ jsx87("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx87("span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
|
|
14216
|
+
/* @__PURE__ */ jsx87("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx87("span", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }) }),
|
|
14217
|
+
/* @__PURE__ */ jsx87("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx87("span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
|
|
14157
14218
|
] }),
|
|
14158
|
-
/* @__PURE__ */
|
|
14219
|
+
/* @__PURE__ */ jsx87("span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ jsx87("span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
14159
14220
|
] });
|
|
14160
14221
|
}
|
|
14161
14222
|
|
|
14162
14223
|
// src/components/chat/entity-cards/hubspot-ticket-card.tsx
|
|
14163
14224
|
import { ExternalLink as ExternalLink3 } from "lucide-react";
|
|
14164
14225
|
import React8 from "react";
|
|
14165
|
-
import { Fragment as Fragment27, jsx as
|
|
14226
|
+
import { Fragment as Fragment27, jsx as jsx88, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
14166
14227
|
function formatToken(token) {
|
|
14167
14228
|
if (!token) return null;
|
|
14168
14229
|
const lower = token.toLowerCase().replace(/_/g, " ");
|
|
@@ -14186,29 +14247,29 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
14186
14247
|
const priorityText = formatToken(item.priority);
|
|
14187
14248
|
const dateText = formatDateUTC(item.dateUpdated, { fallback: "", timezone: "local" });
|
|
14188
14249
|
if (variant === "row") {
|
|
14189
|
-
return /* @__PURE__ */
|
|
14190
|
-
/* @__PURE__ */
|
|
14191
|
-
item.preview ? /* @__PURE__ */
|
|
14192
|
-
statusText ? /* @__PURE__ */
|
|
14193
|
-
dateText ? /* @__PURE__ */
|
|
14250
|
+
return /* @__PURE__ */ jsxs67("div", { className: `flex min-w-0 items-center gap-3 ${className ?? ""}`, children: [
|
|
14251
|
+
/* @__PURE__ */ jsx88("span", { className: "max-w-[260px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
|
|
14252
|
+
item.preview ? /* @__PURE__ */ jsx88("span", { className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h6", children: item.preview }) : null,
|
|
14253
|
+
statusText ? /* @__PURE__ */ jsx88(StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
|
|
14254
|
+
dateText ? /* @__PURE__ */ jsx88("span", { className: "w-24 shrink-0 text-right text-ods-text-secondary text-h6", children: dateText }) : null
|
|
14194
14255
|
] });
|
|
14195
14256
|
}
|
|
14196
14257
|
const metaParts = [];
|
|
14197
14258
|
if (item.customerCompany) {
|
|
14198
14259
|
metaParts.push(
|
|
14199
|
-
/* @__PURE__ */
|
|
14260
|
+
/* @__PURE__ */ jsx88("span", { className: "min-w-0 truncate", children: item.customerCompany }, "company")
|
|
14200
14261
|
);
|
|
14201
14262
|
}
|
|
14202
14263
|
if (dateText)
|
|
14203
14264
|
metaParts.push(
|
|
14204
|
-
/* @__PURE__ */
|
|
14265
|
+
/* @__PURE__ */ jsx88("span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
14205
14266
|
);
|
|
14206
14267
|
const href = safeHref(item.url);
|
|
14207
|
-
const body = /* @__PURE__ */
|
|
14208
|
-
/* @__PURE__ */
|
|
14209
|
-
/* @__PURE__ */
|
|
14210
|
-
/* @__PURE__ */
|
|
14211
|
-
priorityText ? /* @__PURE__ */
|
|
14268
|
+
const body = /* @__PURE__ */ jsxs67(Fragment27, { children: [
|
|
14269
|
+
/* @__PURE__ */ jsxs67("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
14270
|
+
/* @__PURE__ */ jsxs67("span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
14271
|
+
/* @__PURE__ */ jsx88("span", { className: `${COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
14272
|
+
priorityText ? /* @__PURE__ */ jsx88(
|
|
14212
14273
|
StatusBadge,
|
|
14213
14274
|
{
|
|
14214
14275
|
text: priorityText,
|
|
@@ -14217,7 +14278,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
14217
14278
|
className: "shrink-0"
|
|
14218
14279
|
}
|
|
14219
14280
|
) : null,
|
|
14220
|
-
statusText ? /* @__PURE__ */
|
|
14281
|
+
statusText ? /* @__PURE__ */ jsx88(
|
|
14221
14282
|
StatusBadge,
|
|
14222
14283
|
{
|
|
14223
14284
|
text: statusText,
|
|
@@ -14227,139 +14288,139 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
14227
14288
|
}
|
|
14228
14289
|
) : null
|
|
14229
14290
|
] }),
|
|
14230
|
-
item.customerEmail ? /* @__PURE__ */
|
|
14231
|
-
/* @__PURE__ */
|
|
14232
|
-
/* @__PURE__ */
|
|
14291
|
+
item.customerEmail ? /* @__PURE__ */ jsxs67("span", { className: "flex min-w-0 items-center gap-1 text-ods-text-secondary text-h6", children: [
|
|
14292
|
+
/* @__PURE__ */ jsx88("span", { className: "shrink-0 text-ods-text-secondary/70", children: "From:" }),
|
|
14293
|
+
/* @__PURE__ */ jsx88("span", { className: "min-w-0 truncate", children: item.customerEmail })
|
|
14233
14294
|
] }) : null,
|
|
14234
|
-
/* @__PURE__ */
|
|
14235
|
-
metaParts.length > 0 ? /* @__PURE__ */
|
|
14236
|
-
i > 0 ? /* @__PURE__ */
|
|
14237
|
-
/* @__PURE__ */
|
|
14295
|
+
/* @__PURE__ */ jsx88("span", { className: "flex min-w-0", children: /* @__PURE__ */ jsx88("span", { className: "line-clamp-4 whitespace-pre-wrap break-words text-ods-text-secondary text-h6", children: item.preview || /* @__PURE__ */ jsx88("span", { className: "italic text-ods-text-secondary/60", children: "No description provided." }) }) }),
|
|
14296
|
+
metaParts.length > 0 ? /* @__PURE__ */ jsx88("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx88("span", { className: COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ jsxs67(React8.Fragment, { children: [
|
|
14297
|
+
i > 0 ? /* @__PURE__ */ jsx88("span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
14298
|
+
/* @__PURE__ */ jsx88("span", { className: "min-w-0 truncate", children: part })
|
|
14238
14299
|
] }, i)) }) }) : null
|
|
14239
14300
|
] }),
|
|
14240
|
-
href ? /* @__PURE__ */
|
|
14301
|
+
href ? /* @__PURE__ */ jsx88("span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ jsx88(ExternalLink3, { className: "h-3.5 w-3.5" }) }) : null
|
|
14241
14302
|
] });
|
|
14242
14303
|
if (anchorProps) {
|
|
14243
|
-
return /* @__PURE__ */
|
|
14304
|
+
return /* @__PURE__ */ jsx88("a", { ...anchorProps, className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: body });
|
|
14244
14305
|
}
|
|
14245
|
-
return href ? /* @__PURE__ */
|
|
14306
|
+
return href ? /* @__PURE__ */ jsx88("a", { href, target: "_blank", rel: "noopener noreferrer", className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: body }) : /* @__PURE__ */ jsx88("span", { className: `${COMPACT_CARD_OUTER_STATIC} ${className ?? ""}`, "aria-label": "No link available", children: body });
|
|
14246
14307
|
}
|
|
14247
14308
|
function HubspotTicketCardSkeleton({
|
|
14248
14309
|
variant = "compact",
|
|
14249
14310
|
className
|
|
14250
14311
|
}) {
|
|
14251
14312
|
if (variant === "row") {
|
|
14252
|
-
return /* @__PURE__ */
|
|
14253
|
-
/* @__PURE__ */
|
|
14254
|
-
/* @__PURE__ */
|
|
14255
|
-
/* @__PURE__ */
|
|
14256
|
-
/* @__PURE__ */
|
|
14313
|
+
return /* @__PURE__ */ jsxs67("div", { className: `flex min-w-0 animate-pulse items-center gap-3 ${className ?? ""}`, children: [
|
|
14314
|
+
/* @__PURE__ */ jsx88("div", { className: "h-3 w-40 shrink-0 rounded bg-ods-bg" }),
|
|
14315
|
+
/* @__PURE__ */ jsx88("div", { className: "h-3 w-2/3 flex-1 rounded bg-ods-bg/60" }),
|
|
14316
|
+
/* @__PURE__ */ jsx88("div", { className: "h-3 w-16 shrink-0 rounded bg-ods-bg/60" }),
|
|
14317
|
+
/* @__PURE__ */ jsx88("div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
14257
14318
|
] });
|
|
14258
14319
|
}
|
|
14259
|
-
return /* @__PURE__ */
|
|
14260
|
-
/* @__PURE__ */
|
|
14261
|
-
/* @__PURE__ */
|
|
14262
|
-
/* @__PURE__ */
|
|
14263
|
-
/* @__PURE__ */
|
|
14264
|
-
/* @__PURE__ */
|
|
14320
|
+
return /* @__PURE__ */ jsxs67("span", { className: `${COMPACT_CARD_SKELETON_OUTER} ${className ?? ""}`, children: [
|
|
14321
|
+
/* @__PURE__ */ jsxs67("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
14322
|
+
/* @__PURE__ */ jsxs67("span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
14323
|
+
/* @__PURE__ */ jsx88("span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
14324
|
+
/* @__PURE__ */ jsx88("span", { className: "h-4 w-12 rounded-full bg-ods-bg/60" }),
|
|
14325
|
+
/* @__PURE__ */ jsx88("span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
|
|
14265
14326
|
] }),
|
|
14266
|
-
/* @__PURE__ */
|
|
14267
|
-
/* @__PURE__ */
|
|
14268
|
-
/* @__PURE__ */
|
|
14269
|
-
/* @__PURE__ */
|
|
14270
|
-
/* @__PURE__ */
|
|
14271
|
-
/* @__PURE__ */
|
|
14327
|
+
/* @__PURE__ */ jsx88("span", { className: "h-4 w-1/2 rounded bg-ods-bg/60" }),
|
|
14328
|
+
/* @__PURE__ */ jsxs67("span", { className: "flex min-w-0 flex-col gap-0", children: [
|
|
14329
|
+
/* @__PURE__ */ jsx88("span", { className: "h-5 w-5/6 rounded bg-ods-bg/60" }),
|
|
14330
|
+
/* @__PURE__ */ jsx88("span", { className: "h-5 w-4/6 rounded bg-ods-bg/60" }),
|
|
14331
|
+
/* @__PURE__ */ jsx88("span", { className: "h-5 w-3/4 rounded bg-ods-bg/60" }),
|
|
14332
|
+
/* @__PURE__ */ jsx88("span", { className: "h-5 w-2/5 rounded bg-ods-bg/60" })
|
|
14272
14333
|
] }),
|
|
14273
|
-
/* @__PURE__ */
|
|
14334
|
+
/* @__PURE__ */ jsx88("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx88("span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
|
|
14274
14335
|
] }),
|
|
14275
|
-
/* @__PURE__ */
|
|
14336
|
+
/* @__PURE__ */ jsx88("span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ jsx88("span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
14276
14337
|
] });
|
|
14277
14338
|
}
|
|
14278
14339
|
|
|
14279
14340
|
// src/components/chat/entity-cards/data-room-doc-card.tsx
|
|
14280
14341
|
import { ExternalLink as ExternalLink4 } from "lucide-react";
|
|
14281
|
-
import { Fragment as Fragment28, jsx as
|
|
14342
|
+
import { Fragment as Fragment28, jsx as jsx89, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
14282
14343
|
function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
14283
|
-
const body = /* @__PURE__ */
|
|
14284
|
-
/* @__PURE__ */
|
|
14285
|
-
/* @__PURE__ */
|
|
14286
|
-
/* @__PURE__ */
|
|
14287
|
-
/* @__PURE__ */
|
|
14344
|
+
const body = /* @__PURE__ */ jsxs68(Fragment28, { children: [
|
|
14345
|
+
/* @__PURE__ */ jsxs68("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
14346
|
+
/* @__PURE__ */ jsxs68("span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
14347
|
+
/* @__PURE__ */ jsx89("span", { className: `${COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
14348
|
+
/* @__PURE__ */ jsx89(StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
|
|
14288
14349
|
] }),
|
|
14289
|
-
item.path ? /* @__PURE__ */
|
|
14290
|
-
/* @__PURE__ */
|
|
14291
|
-
/* @__PURE__ */
|
|
14350
|
+
item.path ? /* @__PURE__ */ jsxs68("span", { className: "flex min-w-0 items-center gap-1 text-ods-text-secondary text-h6", children: [
|
|
14351
|
+
/* @__PURE__ */ jsx89("span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
|
|
14352
|
+
/* @__PURE__ */ jsx89("span", { className: "min-w-0 truncate font-mono", children: item.path })
|
|
14292
14353
|
] }) : null,
|
|
14293
|
-
item.preview ? /* @__PURE__ */
|
|
14354
|
+
item.preview ? /* @__PURE__ */ jsx89("span", { className: "flex min-w-0", children: /* @__PURE__ */ jsx89("span", { className: "line-clamp-2 whitespace-pre-wrap break-words text-ods-text-secondary text-h6", children: item.preview }) }) : null
|
|
14294
14355
|
] }),
|
|
14295
|
-
anchorProps?.href ? /* @__PURE__ */
|
|
14356
|
+
anchorProps?.href ? /* @__PURE__ */ jsx89("span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ jsx89(ExternalLink4, { className: "h-3.5 w-3.5" }) }) : null
|
|
14296
14357
|
] });
|
|
14297
14358
|
if (!anchorProps) {
|
|
14298
|
-
return /* @__PURE__ */
|
|
14359
|
+
return /* @__PURE__ */ jsx89("span", { className: `${COMPACT_CARD_OUTER_STATIC} ${className ?? ""}`, "aria-label": "No link available", children: body });
|
|
14299
14360
|
}
|
|
14300
|
-
return /* @__PURE__ */
|
|
14361
|
+
return /* @__PURE__ */ jsx89("a", { ...anchorProps, className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: body });
|
|
14301
14362
|
}
|
|
14302
14363
|
function DataRoomDocCardSkeleton({ className }) {
|
|
14303
|
-
return /* @__PURE__ */
|
|
14304
|
-
/* @__PURE__ */
|
|
14305
|
-
/* @__PURE__ */
|
|
14306
|
-
/* @__PURE__ */
|
|
14307
|
-
/* @__PURE__ */
|
|
14364
|
+
return /* @__PURE__ */ jsxs68("span", { className: `${COMPACT_CARD_SKELETON_OUTER} ${className ?? ""}`, children: [
|
|
14365
|
+
/* @__PURE__ */ jsxs68("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
14366
|
+
/* @__PURE__ */ jsxs68("span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
14367
|
+
/* @__PURE__ */ jsx89("span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
14368
|
+
/* @__PURE__ */ jsx89("span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
|
|
14308
14369
|
] }),
|
|
14309
|
-
/* @__PURE__ */
|
|
14310
|
-
/* @__PURE__ */
|
|
14311
|
-
/* @__PURE__ */
|
|
14312
|
-
/* @__PURE__ */
|
|
14370
|
+
/* @__PURE__ */ jsx89("span", { className: "h-4 w-1/2 rounded bg-ods-bg/60" }),
|
|
14371
|
+
/* @__PURE__ */ jsxs68("span", { className: "flex min-w-0 flex-col gap-0", children: [
|
|
14372
|
+
/* @__PURE__ */ jsx89("span", { className: "h-5 w-5/6 rounded bg-ods-bg/60" }),
|
|
14373
|
+
/* @__PURE__ */ jsx89("span", { className: "h-5 w-3/4 rounded bg-ods-bg/60" })
|
|
14313
14374
|
] })
|
|
14314
14375
|
] }),
|
|
14315
|
-
/* @__PURE__ */
|
|
14376
|
+
/* @__PURE__ */ jsx89("span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ jsx89("span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
14316
14377
|
] });
|
|
14317
14378
|
}
|
|
14318
14379
|
|
|
14319
14380
|
// src/components/chat/entity-cards/campaign-card-admin.tsx
|
|
14320
14381
|
import { Megaphone as Megaphone3 } from "lucide-react";
|
|
14321
|
-
import { Fragment as Fragment29, jsx as
|
|
14382
|
+
import { Fragment as Fragment29, jsx as jsx90, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
14322
14383
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
14323
14384
|
const goalsCount = campaign.goals?.length || 0;
|
|
14324
|
-
const innerChildren = /* @__PURE__ */
|
|
14325
|
-
/* @__PURE__ */
|
|
14326
|
-
/* @__PURE__ */
|
|
14327
|
-
/* @__PURE__ */
|
|
14328
|
-
/* @__PURE__ */
|
|
14385
|
+
const innerChildren = /* @__PURE__ */ jsxs69(Fragment29, { children: [
|
|
14386
|
+
/* @__PURE__ */ jsx90("span", { className: COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ jsx90(Megaphone3, { className: "h-5 w-5" }) }),
|
|
14387
|
+
/* @__PURE__ */ jsxs69("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
14388
|
+
/* @__PURE__ */ jsx90("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx90("span", { className: COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
14389
|
+
/* @__PURE__ */ jsx90("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx90("span", { className: COMPACT_CARD_SUBTITLE, children: [
|
|
14329
14390
|
campaign.start_date ? formatDateShort(campaign.start_date) : null,
|
|
14330
14391
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
14331
14392
|
"Marketing campaign"
|
|
14332
14393
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
14333
|
-
/* @__PURE__ */
|
|
14394
|
+
/* @__PURE__ */ jsx90("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx90("span", { className: COMPACT_CARD_SUMMARY, children: campaign.description || COMPACT_CARD_ROW_FILLER }) })
|
|
14334
14395
|
] })
|
|
14335
14396
|
] });
|
|
14336
14397
|
if (anchorProps) {
|
|
14337
|
-
return /* @__PURE__ */
|
|
14398
|
+
return /* @__PURE__ */ jsx90("a", { ...anchorProps, className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: innerChildren });
|
|
14338
14399
|
}
|
|
14339
|
-
return /* @__PURE__ */
|
|
14400
|
+
return /* @__PURE__ */ jsx90("span", { className: `${COMPACT_CARD_OUTER_STATIC} ${className ?? ""}`, "aria-label": "No link available", children: innerChildren });
|
|
14340
14401
|
}
|
|
14341
14402
|
function CampaignCardAdminSkeleton({ className }) {
|
|
14342
|
-
return /* @__PURE__ */
|
|
14343
|
-
/* @__PURE__ */
|
|
14344
|
-
/* @__PURE__ */
|
|
14345
|
-
/* @__PURE__ */
|
|
14346
|
-
/* @__PURE__ */
|
|
14347
|
-
/* @__PURE__ */
|
|
14403
|
+
return /* @__PURE__ */ jsxs69("span", { className: `${COMPACT_CARD_SKELETON_OUTER} ${className ?? ""}`, children: [
|
|
14404
|
+
/* @__PURE__ */ jsx90("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
14405
|
+
/* @__PURE__ */ jsxs69("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
14406
|
+
/* @__PURE__ */ jsx90("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx90("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
14407
|
+
/* @__PURE__ */ jsx90("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx90("span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
14408
|
+
/* @__PURE__ */ jsx90("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx90("span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
14348
14409
|
] })
|
|
14349
14410
|
] });
|
|
14350
14411
|
}
|
|
14351
14412
|
|
|
14352
14413
|
// src/components/chat/entity-cards/generic-entity-card.tsx
|
|
14353
14414
|
import { ExternalLink as ExternalLink5 } from "lucide-react";
|
|
14354
|
-
import { Fragment as Fragment30, jsx as
|
|
14415
|
+
import { Fragment as Fragment30, jsx as jsx91, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
14355
14416
|
function GenericEntityCard({ item, className, anchorProps }) {
|
|
14356
14417
|
const href = safeHref(item.url);
|
|
14357
14418
|
const dateText = formatDateUTC(item.dateUpdated, { fallback: "", timezone: "local" });
|
|
14358
|
-
const body = /* @__PURE__ */
|
|
14359
|
-
/* @__PURE__ */
|
|
14360
|
-
/* @__PURE__ */
|
|
14361
|
-
/* @__PURE__ */
|
|
14362
|
-
item.badge ? /* @__PURE__ */
|
|
14419
|
+
const body = /* @__PURE__ */ jsxs70(Fragment30, { children: [
|
|
14420
|
+
/* @__PURE__ */ jsxs70("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
14421
|
+
/* @__PURE__ */ jsxs70("span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
14422
|
+
/* @__PURE__ */ jsx91("span", { className: `${COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
14423
|
+
item.badge ? /* @__PURE__ */ jsx91(
|
|
14363
14424
|
StatusBadge,
|
|
14364
14425
|
{
|
|
14365
14426
|
text: item.badge.text,
|
|
@@ -14369,39 +14430,39 @@ function GenericEntityCard({ item, className, anchorProps }) {
|
|
|
14369
14430
|
}
|
|
14370
14431
|
) : null
|
|
14371
14432
|
] }),
|
|
14372
|
-
item.subtitle ? /* @__PURE__ */
|
|
14373
|
-
item.preview ? /* @__PURE__ */
|
|
14374
|
-
item.facts && item.facts.length > 0 ? /* @__PURE__ */
|
|
14375
|
-
/* @__PURE__ */
|
|
14433
|
+
item.subtitle ? /* @__PURE__ */ jsx91("span", { className: "flex min-w-0 items-center gap-1 text-ods-text-secondary text-h6", children: /* @__PURE__ */ jsx91("span", { className: "min-w-0 truncate font-mono", children: item.subtitle }) }) : null,
|
|
14434
|
+
item.preview ? /* @__PURE__ */ jsx91("span", { className: "flex min-w-0", children: /* @__PURE__ */ jsx91("span", { className: "line-clamp-2 whitespace-pre-wrap break-words text-ods-text-secondary text-h6", children: item.preview }) }) : null,
|
|
14435
|
+
item.facts && item.facts.length > 0 ? /* @__PURE__ */ jsx91("span", { className: "flex min-w-0 flex-wrap items-center gap-x-3 gap-y-0.5 text-h6", children: item.facts.map((f, i) => /* @__PURE__ */ jsxs70("span", { className: "inline-flex min-w-0 items-center gap-1 truncate", children: [
|
|
14436
|
+
/* @__PURE__ */ jsxs70("span", { className: "shrink-0 text-ods-text-secondary/70", children: [
|
|
14376
14437
|
f.label,
|
|
14377
14438
|
":"
|
|
14378
14439
|
] }),
|
|
14379
|
-
/* @__PURE__ */
|
|
14440
|
+
/* @__PURE__ */ jsx91("span", { className: "truncate font-medium text-ods-text-primary", children: f.value })
|
|
14380
14441
|
] }, i)) }) : null,
|
|
14381
|
-
dateText ? /* @__PURE__ */
|
|
14442
|
+
dateText ? /* @__PURE__ */ jsx91("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx91("span", { className: COMPACT_CARD_META_ROW, children: /* @__PURE__ */ jsx91("span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
|
|
14382
14443
|
] }),
|
|
14383
|
-
href ? /* @__PURE__ */
|
|
14444
|
+
href ? /* @__PURE__ */ jsx91("span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ jsx91(ExternalLink5, { className: "h-3.5 w-3.5" }) }) : null
|
|
14384
14445
|
] });
|
|
14385
14446
|
if (anchorProps) {
|
|
14386
|
-
return /* @__PURE__ */
|
|
14447
|
+
return /* @__PURE__ */ jsx91("a", { ...anchorProps, className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: body });
|
|
14387
14448
|
}
|
|
14388
|
-
return href ? /* @__PURE__ */
|
|
14449
|
+
return href ? /* @__PURE__ */ jsx91("a", { href, className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: body }) : /* @__PURE__ */ jsx91("span", { className: `${COMPACT_CARD_OUTER_STATIC} ${className ?? ""}`, "aria-label": "No link available", children: body });
|
|
14389
14450
|
}
|
|
14390
14451
|
function GenericEntityCardSkeleton({ className }) {
|
|
14391
|
-
return /* @__PURE__ */
|
|
14392
|
-
/* @__PURE__ */
|
|
14393
|
-
/* @__PURE__ */
|
|
14394
|
-
/* @__PURE__ */
|
|
14395
|
-
/* @__PURE__ */
|
|
14452
|
+
return /* @__PURE__ */ jsxs70("span", { className: `${COMPACT_CARD_SKELETON_OUTER} ${className ?? ""}`, children: [
|
|
14453
|
+
/* @__PURE__ */ jsxs70("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
14454
|
+
/* @__PURE__ */ jsxs70("span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
14455
|
+
/* @__PURE__ */ jsx91("span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
14456
|
+
/* @__PURE__ */ jsx91("span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
|
|
14396
14457
|
] }),
|
|
14397
|
-
/* @__PURE__ */
|
|
14398
|
-
/* @__PURE__ */
|
|
14399
|
-
/* @__PURE__ */
|
|
14400
|
-
/* @__PURE__ */
|
|
14458
|
+
/* @__PURE__ */ jsx91("span", { className: "h-4 w-1/2 rounded bg-ods-bg/60" }),
|
|
14459
|
+
/* @__PURE__ */ jsxs70("span", { className: "flex min-w-0 flex-col gap-0", children: [
|
|
14460
|
+
/* @__PURE__ */ jsx91("span", { className: "h-5 w-5/6 rounded bg-ods-bg/60" }),
|
|
14461
|
+
/* @__PURE__ */ jsx91("span", { className: "h-5 w-3/4 rounded bg-ods-bg/60" })
|
|
14401
14462
|
] }),
|
|
14402
|
-
/* @__PURE__ */
|
|
14463
|
+
/* @__PURE__ */ jsx91("span", { className: "h-3 w-1/4 rounded bg-ods-bg/70" })
|
|
14403
14464
|
] }),
|
|
14404
|
-
/* @__PURE__ */
|
|
14465
|
+
/* @__PURE__ */ jsx91("span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ jsx91("span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
14405
14466
|
] });
|
|
14406
14467
|
}
|
|
14407
14468
|
|
|
@@ -14468,12 +14529,12 @@ function useChatCardItem(type, id) {
|
|
|
14468
14529
|
}
|
|
14469
14530
|
|
|
14470
14531
|
// src/components/chat/mingo-info-card.tsx
|
|
14471
|
-
import { Fragment as Fragment31, jsx as
|
|
14532
|
+
import { Fragment as Fragment31, jsx as jsx92, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
14472
14533
|
function CardMedia({ imageSrc, imageAlt, icon }) {
|
|
14473
14534
|
if (imageSrc) {
|
|
14474
|
-
return /* @__PURE__ */
|
|
14475
|
-
/* @__PURE__ */
|
|
14476
|
-
/* @__PURE__ */
|
|
14535
|
+
return /* @__PURE__ */ jsxs71("span", { className: "relative block size-10 shrink-0", children: [
|
|
14536
|
+
/* @__PURE__ */ jsx92("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: personInitials(imageAlt) || "?" }),
|
|
14537
|
+
/* @__PURE__ */ jsx92(
|
|
14477
14538
|
next_image_default,
|
|
14478
14539
|
{
|
|
14479
14540
|
src: imageSrc,
|
|
@@ -14491,12 +14552,12 @@ function CardMedia({ imageSrc, imageAlt, icon }) {
|
|
|
14491
14552
|
] });
|
|
14492
14553
|
}
|
|
14493
14554
|
if (icon) {
|
|
14494
|
-
return /* @__PURE__ */
|
|
14555
|
+
return /* @__PURE__ */ jsx92("span", { className: "flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-md border border-ods-border bg-ods-bg text-ods-text-secondary", children: /* @__PURE__ */ jsx92("span", { className: "flex size-6 items-center justify-center", children: icon }) });
|
|
14495
14556
|
}
|
|
14496
14557
|
return null;
|
|
14497
14558
|
}
|
|
14498
14559
|
function MingoInfoCardSkeleton({ className }) {
|
|
14499
|
-
return /* @__PURE__ */
|
|
14560
|
+
return /* @__PURE__ */ jsxs71(
|
|
14500
14561
|
"span",
|
|
14501
14562
|
{
|
|
14502
14563
|
className: cn(
|
|
@@ -14504,12 +14565,12 @@ function MingoInfoCardSkeleton({ className }) {
|
|
|
14504
14565
|
className
|
|
14505
14566
|
),
|
|
14506
14567
|
children: [
|
|
14507
|
-
/* @__PURE__ */
|
|
14508
|
-
/* @__PURE__ */
|
|
14509
|
-
/* @__PURE__ */
|
|
14510
|
-
/* @__PURE__ */
|
|
14568
|
+
/* @__PURE__ */ jsx92("span", { className: "block size-10 shrink-0 rounded-md border border-ods-border bg-ods-bg" }),
|
|
14569
|
+
/* @__PURE__ */ jsxs71("span", { className: "flex min-w-0 flex-1 flex-col justify-center gap-1.5", children: [
|
|
14570
|
+
/* @__PURE__ */ jsx92("span", { className: "block h-4 w-1/2 rounded bg-ods-bg" }),
|
|
14571
|
+
/* @__PURE__ */ jsx92("span", { className: "block h-3 w-3/4 rounded bg-ods-bg/60" })
|
|
14511
14572
|
] }),
|
|
14512
|
-
/* @__PURE__ */
|
|
14573
|
+
/* @__PURE__ */ jsx92("span", { className: "block h-5 w-16 shrink-0 rounded bg-ods-bg/60" })
|
|
14513
14574
|
]
|
|
14514
14575
|
}
|
|
14515
14576
|
);
|
|
@@ -14531,16 +14592,16 @@ function MingoInfoCard({
|
|
|
14531
14592
|
const hasMenu = !!menuGroups && menuGroups.length > 0;
|
|
14532
14593
|
const isAnchor = !!anchorProps;
|
|
14533
14594
|
const isInteractive = isAnchor || !!onClick;
|
|
14534
|
-
const content = /* @__PURE__ */
|
|
14535
|
-
hasMedia && /* @__PURE__ */
|
|
14536
|
-
/* @__PURE__ */
|
|
14537
|
-
/* @__PURE__ */
|
|
14538
|
-
description ? /* @__PURE__ */
|
|
14595
|
+
const content = /* @__PURE__ */ jsxs71(Fragment31, { children: [
|
|
14596
|
+
hasMedia && /* @__PURE__ */ jsx92(CardMedia, { imageSrc, imageAlt, icon }),
|
|
14597
|
+
/* @__PURE__ */ jsxs71("span", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
14598
|
+
/* @__PURE__ */ jsx92("span", { className: "truncate text-ods-text-primary text-h4", children: title }),
|
|
14599
|
+
description ? /* @__PURE__ */ jsx92("span", { className: "truncate text-ods-text-secondary text-h6", children: description }) : null
|
|
14539
14600
|
] }),
|
|
14540
14601
|
status ? (
|
|
14541
14602
|
// Reuse the shared Tag palette (single source of truth for colours)
|
|
14542
14603
|
// without rendering Tag's `<div>` — span-only for `<p>` validity.
|
|
14543
|
-
/* @__PURE__ */
|
|
14604
|
+
/* @__PURE__ */ jsx92("span", { className: cn(tagVariants({ variant: status.variant ?? "success" }), "shrink-0"), children: /* @__PURE__ */ jsx92("span", { className: "truncate uppercase tracking-[-0.28px]", children: status.label }) })
|
|
14544
14605
|
) : null
|
|
14545
14606
|
] });
|
|
14546
14607
|
const contentClass = cn(
|
|
@@ -14548,7 +14609,7 @@ function MingoInfoCard({
|
|
|
14548
14609
|
hasMenu && "border-r border-ods-border",
|
|
14549
14610
|
isInteractive && "cursor-pointer transition-colors hover:bg-ods-bg-hover focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent active:bg-ods-bg-active"
|
|
14550
14611
|
);
|
|
14551
|
-
return /* @__PURE__ */
|
|
14612
|
+
return /* @__PURE__ */ jsxs71(
|
|
14552
14613
|
"span",
|
|
14553
14614
|
{
|
|
14554
14615
|
className: cn(
|
|
@@ -14556,20 +14617,20 @@ function MingoInfoCard({
|
|
|
14556
14617
|
className
|
|
14557
14618
|
),
|
|
14558
14619
|
children: [
|
|
14559
|
-
isAnchor ? /* @__PURE__ */
|
|
14560
|
-
hasMenu && /* @__PURE__ */
|
|
14620
|
+
isAnchor ? /* @__PURE__ */ jsx92("a", { ...anchorProps, className: cn(contentClass, "no-underline"), children: content }) : onClick ? /* @__PURE__ */ jsx92("button", { type: "button", onClick, className: contentClass, children: content }) : /* @__PURE__ */ jsx92("span", { className: contentClass, children: content }),
|
|
14621
|
+
hasMenu && /* @__PURE__ */ jsx92(
|
|
14561
14622
|
ActionsMenuDropdown,
|
|
14562
14623
|
{
|
|
14563
14624
|
groups: menuGroups,
|
|
14564
14625
|
triggerAriaLabel: menuAriaLabel,
|
|
14565
14626
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
14566
|
-
customTrigger: /* @__PURE__ */
|
|
14627
|
+
customTrigger: /* @__PURE__ */ jsx92(
|
|
14567
14628
|
"button",
|
|
14568
14629
|
{
|
|
14569
14630
|
type: "button",
|
|
14570
14631
|
"aria-label": menuAriaLabel,
|
|
14571
14632
|
className: "flex w-[56px] shrink-0 items-center justify-center self-stretch text-ods-text-secondary transition-colors hover:bg-ods-bg-hover hover:text-ods-text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent active:bg-ods-bg-active active:text-ods-text-primary md:w-[68px]",
|
|
14572
|
-
children: /* @__PURE__ */
|
|
14633
|
+
children: /* @__PURE__ */ jsx92(Ellipsis01Icon, { size: 24 })
|
|
14573
14634
|
}
|
|
14574
14635
|
)
|
|
14575
14636
|
}
|
|
@@ -14898,14 +14959,14 @@ function resolveSourceIcon(input, ctx = {}) {
|
|
|
14898
14959
|
|
|
14899
14960
|
// src/components/chat/entity-cards/deleted-data-card.tsx
|
|
14900
14961
|
import { Trash2 } from "lucide-react";
|
|
14901
|
-
import { jsx as
|
|
14962
|
+
import { jsx as jsx93, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
14902
14963
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
14903
14964
|
const label = entityLabel || "Item";
|
|
14904
|
-
return /* @__PURE__ */
|
|
14905
|
-
/* @__PURE__ */
|
|
14906
|
-
/* @__PURE__ */
|
|
14907
|
-
/* @__PURE__ */
|
|
14908
|
-
/* @__PURE__ */
|
|
14965
|
+
return /* @__PURE__ */ jsxs72("div", { className: `${COMPACT_CARD_OUTER_STATIC} opacity-70 ${className ?? ""}`, children: [
|
|
14966
|
+
/* @__PURE__ */ jsx93("div", { className: COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ jsx93(Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
14967
|
+
/* @__PURE__ */ jsxs72("div", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
14968
|
+
/* @__PURE__ */ jsx93("div", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx93("span", { className: `${COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
14969
|
+
/* @__PURE__ */ jsx93("div", { className: COMPACT_CARD_META_ROW, children: /* @__PURE__ */ jsxs72("span", { className: "text-ods-text-secondary", children: [
|
|
14909
14970
|
label,
|
|
14910
14971
|
" deleted",
|
|
14911
14972
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -14915,16 +14976,16 @@ function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
|
14915
14976
|
}
|
|
14916
14977
|
|
|
14917
14978
|
// src/components/chat/entity-cards/dispatch.tsx
|
|
14918
|
-
import { Fragment as Fragment32, jsx as
|
|
14979
|
+
import { Fragment as Fragment32, jsx as jsx94, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
14919
14980
|
function githubKindIcon(kind) {
|
|
14920
14981
|
switch (kind) {
|
|
14921
14982
|
case "pull_request":
|
|
14922
|
-
return /* @__PURE__ */
|
|
14983
|
+
return /* @__PURE__ */ jsx94(CodingPullRequestIcon, { size: 24 });
|
|
14923
14984
|
case "pr_review":
|
|
14924
|
-
return /* @__PURE__ */
|
|
14985
|
+
return /* @__PURE__ */ jsx94(CodeIcon, { size: 24 });
|
|
14925
14986
|
case "commit":
|
|
14926
14987
|
default:
|
|
14927
|
-
return /* @__PURE__ */
|
|
14988
|
+
return /* @__PURE__ */ jsx94(CodingCommitIcon, { size: 24 });
|
|
14928
14989
|
}
|
|
14929
14990
|
}
|
|
14930
14991
|
function reviewStateToVariant(state) {
|
|
@@ -14953,7 +15014,7 @@ function GitHubChatCard({
|
|
|
14953
15014
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
14954
15015
|
const dateText = formatDateUTC(chatRef.date ?? null, { fallback: "", timezone: "local" });
|
|
14955
15016
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
14956
|
-
return /* @__PURE__ */
|
|
15017
|
+
return /* @__PURE__ */ jsx94(
|
|
14957
15018
|
MingoInfoCard,
|
|
14958
15019
|
{
|
|
14959
15020
|
title,
|
|
@@ -14980,12 +15041,12 @@ function cardMenuGroups(href, discuss, openDetails, externalLink) {
|
|
|
14980
15041
|
items.push({
|
|
14981
15042
|
id: "open-details",
|
|
14982
15043
|
label: openDetails?.label ?? "Open Details",
|
|
14983
|
-
icon: openDetails?.icon ?? /* @__PURE__ */
|
|
15044
|
+
icon: openDetails?.icon ?? /* @__PURE__ */ jsx94(EyeIcon, { size: 20 }),
|
|
14984
15045
|
// Main row → open the entity (same tab, soft Link nav).
|
|
14985
15046
|
href,
|
|
14986
15047
|
// Trailing 40px ↗ side-button → open in a new tab.
|
|
14987
15048
|
iconAction: {
|
|
14988
|
-
icon: /* @__PURE__ */
|
|
15049
|
+
icon: /* @__PURE__ */ jsx94(ArrowRightUpIcon, { size: 20 }),
|
|
14989
15050
|
"aria-label": "Open in new tab",
|
|
14990
15051
|
href,
|
|
14991
15052
|
openInNewTab: true
|
|
@@ -15060,12 +15121,12 @@ function itemVideoMetadata(item) {
|
|
|
15060
15121
|
return out.videoUrl || out.youtubeUrl || out.highlightVideoUrl ? out : null;
|
|
15061
15122
|
}
|
|
15062
15123
|
function CardLoadFailure({ label, id, detail }) {
|
|
15063
|
-
return /* @__PURE__ */
|
|
15124
|
+
return /* @__PURE__ */ jsx94(
|
|
15064
15125
|
MingoInfoCard,
|
|
15065
15126
|
{
|
|
15066
15127
|
title: label,
|
|
15067
15128
|
description: `${detail} \xB7 id: ${id}`,
|
|
15068
|
-
icon: /* @__PURE__ */
|
|
15129
|
+
icon: /* @__PURE__ */ jsx94(AlertTriangleIcon, { size: 24 }),
|
|
15069
15130
|
status: { label: "FAILED", variant: "error" },
|
|
15070
15131
|
menuAriaLabel: "Card failed to load"
|
|
15071
15132
|
}
|
|
@@ -15100,17 +15161,17 @@ function HubspotTicketChatCard({
|
|
|
15100
15161
|
const status = typeof chatRef.metadata?.status === "string" ? chatRef.metadata.status : void 0;
|
|
15101
15162
|
const statusLabel = typeof chatRef.metadata?.statusLabel === "string" ? chatRef.metadata.statusLabel : void 0;
|
|
15102
15163
|
const statusText = statusLabel ?? formatStatusToken(status);
|
|
15103
|
-
return /* @__PURE__ */
|
|
15164
|
+
return /* @__PURE__ */ jsx94(
|
|
15104
15165
|
MingoInfoCard,
|
|
15105
15166
|
{
|
|
15106
15167
|
title: chatRef.title,
|
|
15107
15168
|
description: chatRef.preview ?? void 0,
|
|
15108
|
-
icon: /* @__PURE__ */
|
|
15169
|
+
icon: /* @__PURE__ */ jsx94(TagIcon, { size: 24 }),
|
|
15109
15170
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
15110
15171
|
anchorProps: buildAnchorProps(chatRef.url, isNewTab),
|
|
15111
15172
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
15112
15173
|
label: "Open Ticket Details",
|
|
15113
|
-
icon: /* @__PURE__ */
|
|
15174
|
+
icon: /* @__PURE__ */ jsx94(TagIcon, { size: 20 })
|
|
15114
15175
|
}),
|
|
15115
15176
|
menuAriaLabel: "Ticket actions"
|
|
15116
15177
|
}
|
|
@@ -15123,12 +15184,12 @@ function FaqChatCard({
|
|
|
15123
15184
|
}) {
|
|
15124
15185
|
const section = typeof chatRef.metadata?.section === "string" ? chatRef.metadata.section.trim() : void 0;
|
|
15125
15186
|
const statusLabel = section && section.length > 0 ? section : "FAQ";
|
|
15126
|
-
return /* @__PURE__ */
|
|
15187
|
+
return /* @__PURE__ */ jsx94(
|
|
15127
15188
|
MingoInfoCard,
|
|
15128
15189
|
{
|
|
15129
15190
|
title: chatRef.title,
|
|
15130
15191
|
description: chatRef.preview ?? void 0,
|
|
15131
|
-
icon: /* @__PURE__ */
|
|
15192
|
+
icon: /* @__PURE__ */ jsx94(QuestionCircleIcon, { size: 24 }),
|
|
15132
15193
|
status: { label: statusLabel, variant: "grey" },
|
|
15133
15194
|
anchorProps: buildAnchorProps(chatRef.url, isNewTab),
|
|
15134
15195
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
@@ -15144,12 +15205,12 @@ function SlackChatCard({
|
|
|
15144
15205
|
const channelName = typeof chatRef.metadata?.channelName === "string" ? chatRef.metadata.channelName.trim() : void 0;
|
|
15145
15206
|
const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
|
|
15146
15207
|
const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
|
|
15147
|
-
return /* @__PURE__ */
|
|
15208
|
+
return /* @__PURE__ */ jsx94(
|
|
15148
15209
|
MingoInfoCard,
|
|
15149
15210
|
{
|
|
15150
15211
|
title,
|
|
15151
15212
|
description: chatRef.preview ?? void 0,
|
|
15152
|
-
icon: /* @__PURE__ */
|
|
15213
|
+
icon: /* @__PURE__ */ jsx94(SlackLogoGreyIcon, { size: 24 }),
|
|
15153
15214
|
anchorProps: buildAnchorProps(chatRef.url, isNewTab),
|
|
15154
15215
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15155
15216
|
menuAriaLabel: "Message actions"
|
|
@@ -15162,7 +15223,7 @@ function GlyphChatCard({
|
|
|
15162
15223
|
isNewTab,
|
|
15163
15224
|
discuss
|
|
15164
15225
|
}) {
|
|
15165
|
-
return /* @__PURE__ */
|
|
15226
|
+
return /* @__PURE__ */ jsx94(
|
|
15166
15227
|
MingoInfoCard,
|
|
15167
15228
|
{
|
|
15168
15229
|
title: chatRef.title,
|
|
@@ -15180,12 +15241,12 @@ function DataRoomDocChatCard({
|
|
|
15180
15241
|
discuss
|
|
15181
15242
|
}) {
|
|
15182
15243
|
const badgeText = chatRef.sourceRepo ? getSourceLabel(chatRef.sourceRepo) : "Document";
|
|
15183
|
-
return /* @__PURE__ */
|
|
15244
|
+
return /* @__PURE__ */ jsx94(
|
|
15184
15245
|
MingoInfoCard,
|
|
15185
15246
|
{
|
|
15186
15247
|
title: chatRef.title,
|
|
15187
15248
|
description: chatRef.preview ?? void 0,
|
|
15188
|
-
icon: /* @__PURE__ */
|
|
15249
|
+
icon: /* @__PURE__ */ jsx94(FileContentIcon, { size: 24 }),
|
|
15189
15250
|
status: { label: badgeText, variant: "grey" },
|
|
15190
15251
|
anchorProps: buildAnchorProps(chatRef.url, isNewTab),
|
|
15191
15252
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
@@ -15200,7 +15261,7 @@ function GenericFinancialChatCard({
|
|
|
15200
15261
|
discuss
|
|
15201
15262
|
}) {
|
|
15202
15263
|
const subtitle = typeof chatRef.metadata?.subtitle === "string" ? chatRef.metadata.subtitle : void 0;
|
|
15203
|
-
return /* @__PURE__ */
|
|
15264
|
+
return /* @__PURE__ */ jsx94(
|
|
15204
15265
|
MingoInfoCard,
|
|
15205
15266
|
{
|
|
15206
15267
|
title: chatRef.title,
|
|
@@ -15214,9 +15275,9 @@ function GenericFinancialChatCard({
|
|
|
15214
15275
|
}
|
|
15215
15276
|
function ChatInlineVideoPill({ chatRef }) {
|
|
15216
15277
|
const title = chatRef.title || "Video";
|
|
15217
|
-
return /* @__PURE__ */
|
|
15218
|
-
/* @__PURE__ */
|
|
15219
|
-
/* @__PURE__ */
|
|
15278
|
+
return /* @__PURE__ */ jsxs73("span", { className: "inline-flex items-center gap-1 rounded border border-ods-border bg-ods-card px-1.5 py-0.5 align-middle text-xs text-ods-text-primary", children: [
|
|
15279
|
+
/* @__PURE__ */ jsx94("span", { "aria-hidden": "true", className: "text-ods-text-secondary", children: "\u25B6" }),
|
|
15280
|
+
/* @__PURE__ */ jsx94("span", { className: "max-w-[220px] truncate", children: title })
|
|
15220
15281
|
] });
|
|
15221
15282
|
}
|
|
15222
15283
|
function ChatCardWithDiscuss({
|
|
@@ -15232,11 +15293,11 @@ function ChatCardWithDiscuss({
|
|
|
15232
15293
|
});
|
|
15233
15294
|
const idDisplay = chatRef.id && (chatRef.id.length > 24 ? `${chatRef.id.slice(0, 24)}\u2026` : chatRef.id);
|
|
15234
15295
|
const useDisplay = displayAction && !!onDisplay;
|
|
15235
|
-
const cardBody = /* @__PURE__ */
|
|
15236
|
-
return /* @__PURE__ */
|
|
15296
|
+
const cardBody = /* @__PURE__ */ jsx94("span", { className: "block [&>*]:!my-0", children });
|
|
15297
|
+
return /* @__PURE__ */ jsxs73("span", { className: "mb-2 mt-1.5 block w-full", children: [
|
|
15237
15298
|
cardBody,
|
|
15238
|
-
/* @__PURE__ */
|
|
15239
|
-
/* @__PURE__ */
|
|
15299
|
+
/* @__PURE__ */ jsxs73("span", { className: "mt-1 flex items-center justify-between gap-2 pl-0.5", children: [
|
|
15300
|
+
/* @__PURE__ */ jsx94(
|
|
15240
15301
|
SourceActionButton,
|
|
15241
15302
|
{
|
|
15242
15303
|
chatRef,
|
|
@@ -15245,15 +15306,15 @@ function ChatCardWithDiscuss({
|
|
|
15245
15306
|
density: "card"
|
|
15246
15307
|
}
|
|
15247
15308
|
),
|
|
15248
|
-
!onDiscuss && !useDisplay ? /* @__PURE__ */
|
|
15249
|
-
idDisplay ? /* @__PURE__ */
|
|
15309
|
+
!onDiscuss && !useDisplay ? /* @__PURE__ */ jsx94("span", {}) : null,
|
|
15310
|
+
idDisplay ? /* @__PURE__ */ jsxs73(
|
|
15250
15311
|
"span",
|
|
15251
15312
|
{
|
|
15252
15313
|
className: "inline-flex shrink-0 items-center gap-1 text-ods-text-secondary opacity-60 transition-opacity text-code hover:text-ods-text-primary hover:opacity-100",
|
|
15253
15314
|
title: `${sourceLabel} \xB7 ${chatRef.id}`,
|
|
15254
15315
|
children: [
|
|
15255
|
-
/* @__PURE__ */
|
|
15256
|
-
/* @__PURE__ */
|
|
15316
|
+
/* @__PURE__ */ jsx94(SourceIcon, { className: "h-3 w-3 shrink-0" }),
|
|
15317
|
+
/* @__PURE__ */ jsx94("span", { className: "max-w-[180px] truncate", children: idDisplay })
|
|
15257
15318
|
]
|
|
15258
15319
|
}
|
|
15259
15320
|
) : null
|
|
@@ -15269,13 +15330,13 @@ function ProductReleaseChatCard({
|
|
|
15269
15330
|
}) {
|
|
15270
15331
|
const releaseProps = buildProps(item);
|
|
15271
15332
|
const status = item?.version ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
|
|
15272
|
-
return /* @__PURE__ */
|
|
15333
|
+
return /* @__PURE__ */ jsx94(
|
|
15273
15334
|
EntityMingoCard,
|
|
15274
15335
|
{
|
|
15275
15336
|
title: item?.title ?? "",
|
|
15276
15337
|
description: item?.summary || releaseProps.formattedDate || void 0,
|
|
15277
15338
|
cover: releaseProps.coverImage || void 0,
|
|
15278
|
-
fallbackIcon: /* @__PURE__ */
|
|
15339
|
+
fallbackIcon: /* @__PURE__ */ jsx94(Rocket02Icon, { size: 24 }),
|
|
15279
15340
|
status,
|
|
15280
15341
|
chatRef,
|
|
15281
15342
|
isNewTab,
|
|
@@ -15296,12 +15357,12 @@ function CampaignChatCard({
|
|
|
15296
15357
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
15297
15358
|
"Marketing campaign"
|
|
15298
15359
|
].filter(Boolean).join(" \xB7 ");
|
|
15299
|
-
return /* @__PURE__ */
|
|
15360
|
+
return /* @__PURE__ */ jsx94(
|
|
15300
15361
|
EntityMingoCard,
|
|
15301
15362
|
{
|
|
15302
15363
|
title: item?.name ?? "",
|
|
15303
15364
|
description: meta || item?.description || void 0,
|
|
15304
|
-
fallbackIcon: /* @__PURE__ */
|
|
15365
|
+
fallbackIcon: /* @__PURE__ */ jsx94(Megaphone01Icon, { size: 24 }),
|
|
15305
15366
|
chatRef,
|
|
15306
15367
|
isNewTab,
|
|
15307
15368
|
discuss,
|
|
@@ -15322,7 +15383,7 @@ function EntityMingoCard({
|
|
|
15322
15383
|
openDetails,
|
|
15323
15384
|
externalLink
|
|
15324
15385
|
}) {
|
|
15325
|
-
return /* @__PURE__ */
|
|
15386
|
+
return /* @__PURE__ */ jsx94(
|
|
15326
15387
|
MingoInfoCard,
|
|
15327
15388
|
{
|
|
15328
15389
|
title,
|
|
@@ -15357,13 +15418,13 @@ function BlogChatCard({
|
|
|
15357
15418
|
}) {
|
|
15358
15419
|
const category = Array.isArray(item?.categories) ? item.categories.find((c) => c?.name)?.name ?? void 0 : void 0;
|
|
15359
15420
|
const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
|
|
15360
|
-
return /* @__PURE__ */
|
|
15421
|
+
return /* @__PURE__ */ jsx94(
|
|
15361
15422
|
EntityMingoCard,
|
|
15362
15423
|
{
|
|
15363
15424
|
title: item?.title ?? "",
|
|
15364
15425
|
description: item?.summary ?? void 0,
|
|
15365
15426
|
cover: entityCover(item?.featured_image, ogPlaceholder),
|
|
15366
|
-
fallbackIcon: /* @__PURE__ */
|
|
15427
|
+
fallbackIcon: /* @__PURE__ */ jsx94(NewspaperIcon, { size: 24 }),
|
|
15367
15428
|
status,
|
|
15368
15429
|
chatRef,
|
|
15369
15430
|
isNewTab,
|
|
@@ -15380,13 +15441,13 @@ function CaseStudyChatCard({
|
|
|
15380
15441
|
discuss
|
|
15381
15442
|
}) {
|
|
15382
15443
|
const meta = [item?.msp?.name, item?.user?.full_name].filter(Boolean).join(" \xB7 ");
|
|
15383
|
-
return /* @__PURE__ */
|
|
15444
|
+
return /* @__PURE__ */ jsx94(
|
|
15384
15445
|
EntityMingoCard,
|
|
15385
15446
|
{
|
|
15386
15447
|
title: item?.title ?? "",
|
|
15387
15448
|
description: item?.summary || meta || void 0,
|
|
15388
15449
|
cover: entityCover(item?.featured_image, ogPlaceholder),
|
|
15389
|
-
fallbackIcon: /* @__PURE__ */
|
|
15450
|
+
fallbackIcon: /* @__PURE__ */ jsx94(TrophyIcon, { size: 24 }),
|
|
15390
15451
|
status: { label: "Case study", variant: "grey" },
|
|
15391
15452
|
chatRef,
|
|
15392
15453
|
isNewTab,
|
|
@@ -15403,13 +15464,13 @@ function CustomerInterviewChatCard({
|
|
|
15403
15464
|
discuss
|
|
15404
15465
|
}) {
|
|
15405
15466
|
const meta = [item?.user?.full_name, item?.msp?.name].filter(Boolean).join(" \xB7 ");
|
|
15406
|
-
return /* @__PURE__ */
|
|
15467
|
+
return /* @__PURE__ */ jsx94(
|
|
15407
15468
|
EntityMingoCard,
|
|
15408
15469
|
{
|
|
15409
15470
|
title: item?.title ?? "",
|
|
15410
15471
|
description: item?.video_summary || meta || void 0,
|
|
15411
15472
|
cover: entityCover(item?.featured_image, ogPlaceholder),
|
|
15412
|
-
fallbackIcon: /* @__PURE__ */
|
|
15473
|
+
fallbackIcon: /* @__PURE__ */ jsx94(MicrophoneIcon, { size: 24 }),
|
|
15413
15474
|
status: { label: "Interview", variant: "grey" },
|
|
15414
15475
|
chatRef,
|
|
15415
15476
|
isNewTab,
|
|
@@ -15426,13 +15487,13 @@ function InvestorUpdateChatCard({
|
|
|
15426
15487
|
discuss
|
|
15427
15488
|
}) {
|
|
15428
15489
|
const title = item?.title || `Update #${item?.update_number ?? "?"}`;
|
|
15429
|
-
return /* @__PURE__ */
|
|
15490
|
+
return /* @__PURE__ */ jsx94(
|
|
15430
15491
|
EntityMingoCard,
|
|
15431
15492
|
{
|
|
15432
15493
|
title,
|
|
15433
15494
|
description: item?.strategic_update || item?.content || formatInvestorUpdatePeriod(item?.period_start ?? null, item?.period_end ?? null) || void 0,
|
|
15434
15495
|
cover: entityCover(item?.featured_image, ogPlaceholder),
|
|
15435
|
-
fallbackIcon: /* @__PURE__ */
|
|
15496
|
+
fallbackIcon: /* @__PURE__ */ jsx94(PresentationLineIcon, { size: 24 }),
|
|
15436
15497
|
status: { label: "Investor update", variant: "grey" },
|
|
15437
15498
|
chatRef,
|
|
15438
15499
|
isNewTab,
|
|
@@ -15449,13 +15510,13 @@ function OnboardingGuideChatCard({
|
|
|
15449
15510
|
discuss
|
|
15450
15511
|
}) {
|
|
15451
15512
|
const cover = entityCover(item?.featured_image) ?? entityCover(item?.main_video_thumbnail) ?? entityCover(item?.og_image_url, ogPlaceholder);
|
|
15452
|
-
return /* @__PURE__ */
|
|
15513
|
+
return /* @__PURE__ */ jsx94(
|
|
15453
15514
|
EntityMingoCard,
|
|
15454
15515
|
{
|
|
15455
15516
|
title: item?.title ?? "",
|
|
15456
15517
|
description: item?.summary ?? item?.description ?? void 0,
|
|
15457
15518
|
cover,
|
|
15458
|
-
fallbackIcon: /* @__PURE__ */
|
|
15519
|
+
fallbackIcon: /* @__PURE__ */ jsx94(CompassIcon, { size: 24 }),
|
|
15459
15520
|
status: { label: "Guide", variant: "grey" },
|
|
15460
15521
|
chatRef,
|
|
15461
15522
|
isNewTab,
|
|
@@ -15473,7 +15534,7 @@ function ProgramChatCard({
|
|
|
15473
15534
|
ogPlaceholder,
|
|
15474
15535
|
discuss
|
|
15475
15536
|
}) {
|
|
15476
|
-
const icon = configKey === "webinar" ? /* @__PURE__ */
|
|
15537
|
+
const icon = configKey === "webinar" ? /* @__PURE__ */ jsx94(PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ jsx94(CalendarIcon, { size: 24 }) : /* @__PURE__ */ jsx94(MicrophoneIcon, { size: 24 });
|
|
15477
15538
|
const isScheduled = item?.status === "scheduled";
|
|
15478
15539
|
let typeMeta;
|
|
15479
15540
|
if (configKey === "podcast" && typeof item?.duration_seconds === "number" && item.duration_seconds > 0 && !isScheduled) {
|
|
@@ -15487,7 +15548,7 @@ function ProgramChatCard({
|
|
|
15487
15548
|
}
|
|
15488
15549
|
const itemDate = formatDateUTC(item?.date ?? null, { fallback: "", timezone: "local" });
|
|
15489
15550
|
const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
|
|
15490
|
-
return /* @__PURE__ */
|
|
15551
|
+
return /* @__PURE__ */ jsx94(
|
|
15491
15552
|
EntityMingoCard,
|
|
15492
15553
|
{
|
|
15493
15554
|
title: item?.title ?? "",
|
|
@@ -15511,16 +15572,16 @@ function RoadmapChatCard({
|
|
|
15511
15572
|
}) {
|
|
15512
15573
|
const logoUrl = typeof item?.icon === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
15513
15574
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && item?.customItemId != null;
|
|
15514
|
-
const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */
|
|
15515
|
-
const icon = useTypeIcon ? /* @__PURE__ */
|
|
15575
|
+
const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ jsx94(TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ jsx94(CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ jsx94(MapIcon, { size: 24 });
|
|
15576
|
+
const icon = useTypeIcon ? /* @__PURE__ */ jsx94(TaskTypeIcon, { customItemId: item?.customItemId, className: "size-6" }) : logoUrl ? (
|
|
15516
15577
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
15517
15578
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
15518
|
-
/* @__PURE__ */
|
|
15579
|
+
/* @__PURE__ */ jsx94(next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
|
|
15519
15580
|
) : defaultIcon;
|
|
15520
15581
|
const clickupHref = clickupTaskUrl(chatRef.id);
|
|
15521
|
-
const clickupIcon = /* @__PURE__ */
|
|
15582
|
+
const clickupIcon = /* @__PURE__ */ jsx94(ClickupLogoIcon, { size: 20 });
|
|
15522
15583
|
const cardUrlIsClickup = cardType === "internal_task";
|
|
15523
|
-
return /* @__PURE__ */
|
|
15584
|
+
return /* @__PURE__ */ jsx94(
|
|
15524
15585
|
EntityMingoCard,
|
|
15525
15586
|
{
|
|
15526
15587
|
title: item?.title ?? "",
|
|
@@ -15543,16 +15604,16 @@ function refHydratedEntry(docType, label, renderRef) {
|
|
|
15543
15604
|
contentRefType: docType,
|
|
15544
15605
|
noComposedHref: true,
|
|
15545
15606
|
fallbackHref: (item) => item?.url ?? null,
|
|
15546
|
-
skeleton: () => /* @__PURE__ */
|
|
15607
|
+
skeleton: () => /* @__PURE__ */ jsx94(MingoInfoCardSkeleton, {}),
|
|
15547
15608
|
render: (item, chatRef, opts) => renderRef(fetchedItemDisplayRef(item, chatRef), opts)
|
|
15548
15609
|
};
|
|
15549
15610
|
}
|
|
15550
15611
|
var FINANCIAL_CARD_CONFIGS = {
|
|
15551
|
-
financial_kpi: { label: "Financial KPI", icon: () => /* @__PURE__ */
|
|
15552
|
-
cap_table: { label: "Cap table entry", icon: () => /* @__PURE__ */
|
|
15553
|
-
profit_loss: { label: "P&L period", icon: () => /* @__PURE__ */
|
|
15554
|
-
balance_sheet: { label: "Balance sheet", icon: () => /* @__PURE__ */
|
|
15555
|
-
cash_flow: { label: "Cash flow", icon: () => /* @__PURE__ */
|
|
15612
|
+
financial_kpi: { label: "Financial KPI", icon: () => /* @__PURE__ */ jsx94(ChartBar01VerIcon, { size: 24 }) },
|
|
15613
|
+
cap_table: { label: "Cap table entry", icon: () => /* @__PURE__ */ jsx94(ChartPieIcon, { size: 24 }) },
|
|
15614
|
+
profit_loss: { label: "P&L period", icon: () => /* @__PURE__ */ jsx94(MoneyBillDollarIcon, { size: 24 }) },
|
|
15615
|
+
balance_sheet: { label: "Balance sheet", icon: () => /* @__PURE__ */ jsx94(BankIcon, { size: 24 }) },
|
|
15616
|
+
cash_flow: { label: "Cash flow", icon: () => /* @__PURE__ */ jsx94(CoinsExchangeCurrencyIcon, { size: 24 }) }
|
|
15556
15617
|
};
|
|
15557
15618
|
function registryEntries(configs, build) {
|
|
15558
15619
|
const out = {};
|
|
@@ -15562,7 +15623,7 @@ function registryEntries(configs, build) {
|
|
|
15562
15623
|
function financialRegistryEntries() {
|
|
15563
15624
|
return registryEntries(
|
|
15564
15625
|
FINANCIAL_CARD_CONFIGS,
|
|
15565
|
-
(cfg, docType) => refHydratedEntry(docType, cfg.label, (displayRef, opts) => /* @__PURE__ */
|
|
15626
|
+
(cfg, docType) => refHydratedEntry(docType, cfg.label, (displayRef, opts) => /* @__PURE__ */ jsx94(
|
|
15566
15627
|
GenericFinancialChatCard,
|
|
15567
15628
|
{
|
|
15568
15629
|
chatRef: displayRef,
|
|
@@ -15582,9 +15643,9 @@ var GITHUB_CARD_CONFIGS = {
|
|
|
15582
15643
|
github_pr_review_public: { label: "GitHub review (public)", kind: "pr_review" }
|
|
15583
15644
|
};
|
|
15584
15645
|
var REF_GLYPH_CARD_CONFIGS = {
|
|
15585
|
-
design_doc: { label: "Design doc", icon: () => /* @__PURE__ */
|
|
15586
|
-
openframe_tenant: { label: "OpenFrame tenant", icon: () => /* @__PURE__ */
|
|
15587
|
-
prospect_call: { label: "Prospect call", icon: () => /* @__PURE__ */
|
|
15646
|
+
design_doc: { label: "Design doc", icon: () => /* @__PURE__ */ jsx94(FileContentIcon, { size: 24 }) },
|
|
15647
|
+
openframe_tenant: { label: "OpenFrame tenant", icon: () => /* @__PURE__ */ jsx94(BuildingsIcon, { size: 24 }) },
|
|
15648
|
+
prospect_call: { label: "Prospect call", icon: () => /* @__PURE__ */ jsx94(CallIcon, { size: 24 }), media: true }
|
|
15588
15649
|
};
|
|
15589
15650
|
function refGlyphRegistryEntries() {
|
|
15590
15651
|
return registryEntries(
|
|
@@ -15592,7 +15653,7 @@ function refGlyphRegistryEntries() {
|
|
|
15592
15653
|
(cfg, docType) => refHydratedEntry(
|
|
15593
15654
|
docType,
|
|
15594
15655
|
cfg.label,
|
|
15595
|
-
(displayRef, opts) => cfg.media ? /* @__PURE__ */
|
|
15656
|
+
(displayRef, opts) => cfg.media ? /* @__PURE__ */ jsx94(
|
|
15596
15657
|
EntityMingoCard,
|
|
15597
15658
|
{
|
|
15598
15659
|
title: displayRef.title,
|
|
@@ -15608,7 +15669,7 @@ function refGlyphRegistryEntries() {
|
|
|
15608
15669
|
discuss: opts.discuss,
|
|
15609
15670
|
menuAriaLabel: `${cfg.label} actions`
|
|
15610
15671
|
}
|
|
15611
|
-
) : /* @__PURE__ */
|
|
15672
|
+
) : /* @__PURE__ */ jsx94(GlyphChatCard, { chatRef: displayRef, icon: cfg.icon(), isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
15612
15673
|
)
|
|
15613
15674
|
);
|
|
15614
15675
|
}
|
|
@@ -15621,17 +15682,17 @@ function fetchedEmployeeEntryDisplayRef(item, chatRef) {
|
|
|
15621
15682
|
return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
|
|
15622
15683
|
}
|
|
15623
15684
|
var EMPLOYEE_ENTRY_CARD_CONFIGS = {
|
|
15624
|
-
what_i_shipped: { label: "What I Shipped", icon: () => /* @__PURE__ */
|
|
15625
|
-
how_i_work: { label: "How I Work", icon: () => /* @__PURE__ */
|
|
15626
|
-
ai_prompt: { label: "Squawkbox", icon: () => /* @__PURE__ */
|
|
15685
|
+
what_i_shipped: { label: "What I Shipped", icon: () => /* @__PURE__ */ jsx94(Rocket02Icon, { size: 24 }) },
|
|
15686
|
+
how_i_work: { label: "How I Work", icon: () => /* @__PURE__ */ jsx94(ClipboardListIcon, { size: 24 }) },
|
|
15687
|
+
ai_prompt: { label: "Squawkbox", icon: () => /* @__PURE__ */ jsx94(ChatQuoteIcon, { size: 24 }) }
|
|
15627
15688
|
};
|
|
15628
15689
|
function employeeEntryRegistryEntries() {
|
|
15629
15690
|
return registryEntries(EMPLOYEE_ENTRY_CARD_CONFIGS, (cfg, docType) => ({
|
|
15630
15691
|
label: cfg.label,
|
|
15631
15692
|
bareInline: true,
|
|
15632
15693
|
contentRefType: docType,
|
|
15633
|
-
skeleton: () => /* @__PURE__ */
|
|
15634
|
-
render: (item, chatRef, opts) => /* @__PURE__ */
|
|
15694
|
+
skeleton: () => /* @__PURE__ */ jsx94(MingoInfoCardSkeleton, {}),
|
|
15695
|
+
render: (item, chatRef, opts) => /* @__PURE__ */ jsx94(
|
|
15635
15696
|
GlyphChatCard,
|
|
15636
15697
|
{
|
|
15637
15698
|
chatRef: fetchedEmployeeEntryDisplayRef(item, chatRef),
|
|
@@ -15645,7 +15706,7 @@ function employeeEntryRegistryEntries() {
|
|
|
15645
15706
|
function githubRegistryEntries() {
|
|
15646
15707
|
return registryEntries(
|
|
15647
15708
|
GITHUB_CARD_CONFIGS,
|
|
15648
|
-
(cfg, docType) => refHydratedEntry(docType, cfg.label, (displayRef, opts) => /* @__PURE__ */
|
|
15709
|
+
(cfg, docType) => refHydratedEntry(docType, cfg.label, (displayRef, opts) => /* @__PURE__ */ jsx94(GitHubChatCard, { chatRef: displayRef, kind: cfg.kind, isNewTab: opts.isNewTab, discuss: opts.discuss }))
|
|
15649
15710
|
);
|
|
15650
15711
|
}
|
|
15651
15712
|
var PROGRAM_CARD_CONFIGS = {
|
|
@@ -15658,8 +15719,8 @@ function programRegistryEntries() {
|
|
|
15658
15719
|
label: cfg.label,
|
|
15659
15720
|
contentRefType: cfg.contentRefType,
|
|
15660
15721
|
bareInline: true,
|
|
15661
|
-
skeleton: () => /* @__PURE__ */
|
|
15662
|
-
render: (item, chatRef, opts) => /* @__PURE__ */
|
|
15722
|
+
skeleton: () => /* @__PURE__ */ jsx94(ProgramCardSkeleton, { size: "sm" }),
|
|
15723
|
+
render: (item, chatRef, opts) => /* @__PURE__ */ jsx94(
|
|
15663
15724
|
ProgramChatCard,
|
|
15664
15725
|
{
|
|
15665
15726
|
item,
|
|
@@ -15699,8 +15760,8 @@ function roadmapRegistryEntries() {
|
|
|
15699
15760
|
bareInline: true,
|
|
15700
15761
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
15701
15762
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
15702
|
-
skeleton: () => /* @__PURE__ */
|
|
15703
|
-
render: (item, chatRef, opts) => /* @__PURE__ */
|
|
15763
|
+
skeleton: () => /* @__PURE__ */ jsx94(RoadmapCardSkeleton, { size: "sm" }),
|
|
15764
|
+
render: (item, chatRef, opts) => /* @__PURE__ */ jsx94(
|
|
15704
15765
|
RoadmapChatCard,
|
|
15705
15766
|
{
|
|
15706
15767
|
item,
|
|
@@ -15727,7 +15788,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15727
15788
|
// null and the card renders its generic "Deleted item" tombstone. The
|
|
15728
15789
|
// descriptor's `title` defaults to the raw cardId — suppress it so the
|
|
15729
15790
|
// strikethrough line never shows an opaque id.
|
|
15730
|
-
render: (_item, chatRef) => /* @__PURE__ */
|
|
15791
|
+
render: (_item, chatRef) => /* @__PURE__ */ jsx94(
|
|
15731
15792
|
DeletedDataCard,
|
|
15732
15793
|
{
|
|
15733
15794
|
title: chatRef.title && chatRef.title !== chatRef.id ? chatRef.title : null,
|
|
@@ -15739,7 +15800,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15739
15800
|
// ───────── ref-only types (no list endpoint; the ChatRef IS the card) ─────────
|
|
15740
15801
|
...refGlyphRegistryEntries(),
|
|
15741
15802
|
...employeeEntryRegistryEntries(),
|
|
15742
|
-
slack_message: refHydratedEntry("slack_message", "Slack message", (displayRef, opts) => /* @__PURE__ */
|
|
15803
|
+
slack_message: refHydratedEntry("slack_message", "Slack message", (displayRef, opts) => /* @__PURE__ */ jsx94(SlackChatCard, { chatRef: displayRef, isNewTab: opts.isNewTab, discuss: opts.discuss })),
|
|
15743
15804
|
// FAQ hydrates from its EXISTING public list API (`/api/faqs?ids=` —
|
|
15744
15805
|
// also feeding related-content rails, so its base path must not move).
|
|
15745
15806
|
// Rows are faq-shaped, not ChatRef-shaped, hence the bespoke row→display
|
|
@@ -15750,24 +15811,24 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15750
15811
|
contentRefType: "faq",
|
|
15751
15812
|
noComposedHref: true,
|
|
15752
15813
|
fallbackHref: (item) => item?.id != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
|
|
15753
|
-
skeleton: () => /* @__PURE__ */
|
|
15754
|
-
render: (item, chatRef, opts) => /* @__PURE__ */
|
|
15814
|
+
skeleton: () => /* @__PURE__ */ jsx94(MingoInfoCardSkeleton, {}),
|
|
15815
|
+
render: (item, chatRef, opts) => /* @__PURE__ */ jsx94(FaqChatCard, { chatRef: fetchedFaqDisplayRef(item, chatRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
15755
15816
|
},
|
|
15756
|
-
hubspot_ticket: refHydratedEntry("hubspot_ticket", "HubSpot ticket", (displayRef, opts) => /* @__PURE__ */
|
|
15757
|
-
hubspot_ticket_anon: refHydratedEntry("hubspot_ticket_anon", "HubSpot ticket (anon)", (displayRef, opts) => /* @__PURE__ */
|
|
15817
|
+
hubspot_ticket: refHydratedEntry("hubspot_ticket", "HubSpot ticket", (displayRef, opts) => /* @__PURE__ */ jsx94(HubspotTicketChatCard, { chatRef: displayRef, isNewTab: opts.isNewTab, discuss: opts.discuss })),
|
|
15818
|
+
hubspot_ticket_anon: refHydratedEntry("hubspot_ticket_anon", "HubSpot ticket (anon)", (displayRef, opts) => /* @__PURE__ */ jsx94(HubspotTicketChatCard, { chatRef: displayRef, isNewTab: opts.isNewTab, discuss: opts.discuss })),
|
|
15758
15819
|
// Self tickets hydrate via the session-scoped `GET /api/tickets?ids=`
|
|
15759
15820
|
// (`selfScopeFilter` ACL) instead of the generic endpoint — the self
|
|
15760
15821
|
// config's searchFilter is deliberately fail-closed there. Same
|
|
15761
15822
|
// ChatRef item shape (`buildHubspotTicketSelfRef` SSOT), same preset.
|
|
15762
|
-
hubspot_ticket_self: refHydratedEntry("hubspot_ticket_self", "HubSpot ticket (self)", (displayRef, opts) => /* @__PURE__ */
|
|
15763
|
-
data_room_doc: refHydratedEntry("data_room_doc", "Data-room doc", (displayRef, opts) => /* @__PURE__ */
|
|
15764
|
-
markdown: refHydratedEntry("markdown", "Doc page (markdown)", (displayRef, opts) => /* @__PURE__ */
|
|
15823
|
+
hubspot_ticket_self: refHydratedEntry("hubspot_ticket_self", "HubSpot ticket (self)", (displayRef, opts) => /* @__PURE__ */ jsx94(HubspotTicketChatCard, { chatRef: displayRef, isNewTab: opts.isNewTab, discuss: opts.discuss })),
|
|
15824
|
+
data_room_doc: refHydratedEntry("data_room_doc", "Data-room doc", (displayRef, opts) => /* @__PURE__ */ jsx94(DataRoomDocChatCard, { chatRef: displayRef, isNewTab: opts.isNewTab, discuss: opts.discuss })),
|
|
15825
|
+
markdown: refHydratedEntry("markdown", "Doc page (markdown)", (displayRef, opts) => /* @__PURE__ */ jsx94(DataRoomDocChatCard, { chatRef: displayRef, isNewTab: opts.isNewTab, discuss: opts.discuss })),
|
|
15765
15826
|
// Body-synthesized video ids (`shortVideoId` content hashes / YouTube
|
|
15766
15827
|
// ids) have no backing table row to fetch — ref-only by nature.
|
|
15767
15828
|
video: {
|
|
15768
15829
|
label: "Video",
|
|
15769
15830
|
bareInline: true,
|
|
15770
|
-
render: (_item, chatRef) => /* @__PURE__ */
|
|
15831
|
+
render: (_item, chatRef) => /* @__PURE__ */ jsx94(ChatInlineVideoPill, { chatRef })
|
|
15771
15832
|
},
|
|
15772
15833
|
...financialRegistryEntries(),
|
|
15773
15834
|
// ───────── content types: full rows from their public list APIs ─────────
|
|
@@ -15775,8 +15836,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15775
15836
|
label: "Blog post",
|
|
15776
15837
|
contentRefType: "blog_post_existing",
|
|
15777
15838
|
bareInline: true,
|
|
15778
|
-
skeleton: () => /* @__PURE__ */
|
|
15779
|
-
render: (item, chatRef, opts) => /* @__PURE__ */
|
|
15839
|
+
skeleton: () => /* @__PURE__ */ jsx94(BlogCardSkeleton, { size: "sm" }),
|
|
15840
|
+
render: (item, chatRef, opts) => /* @__PURE__ */ jsx94(
|
|
15780
15841
|
BlogChatCard,
|
|
15781
15842
|
{
|
|
15782
15843
|
item,
|
|
@@ -15792,8 +15853,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15792
15853
|
label: "Case study",
|
|
15793
15854
|
contentRefType: "case_study",
|
|
15794
15855
|
bareInline: true,
|
|
15795
|
-
skeleton: () => /* @__PURE__ */
|
|
15796
|
-
render: (item, chatRef, opts) => /* @__PURE__ */
|
|
15856
|
+
skeleton: () => /* @__PURE__ */ jsx94(CaseStudyCardSkeleton, { size: "sm" }),
|
|
15857
|
+
render: (item, chatRef, opts) => /* @__PURE__ */ jsx94(
|
|
15797
15858
|
CaseStudyChatCard,
|
|
15798
15859
|
{
|
|
15799
15860
|
item,
|
|
@@ -15808,8 +15869,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15808
15869
|
label: "Customer interview",
|
|
15809
15870
|
contentRefType: "customer_interview",
|
|
15810
15871
|
bareInline: true,
|
|
15811
|
-
skeleton: () => /* @__PURE__ */
|
|
15812
|
-
render: (item, chatRef, opts) => /* @__PURE__ */
|
|
15872
|
+
skeleton: () => /* @__PURE__ */ jsx94(CustomerInterviewCardSkeleton, { size: "sm" }),
|
|
15873
|
+
render: (item, chatRef, opts) => /* @__PURE__ */ jsx94(
|
|
15813
15874
|
CustomerInterviewChatCard,
|
|
15814
15875
|
{
|
|
15815
15876
|
item,
|
|
@@ -15824,10 +15885,10 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15824
15885
|
label: "Product release",
|
|
15825
15886
|
contentRefType: "product_release",
|
|
15826
15887
|
bareInline: true,
|
|
15827
|
-
skeleton: () => /* @__PURE__ */
|
|
15888
|
+
skeleton: () => /* @__PURE__ */ jsx94(ProductReleaseCardSkeleton, { size: "sm" }),
|
|
15828
15889
|
render: (item, chatRef, opts) => {
|
|
15829
15890
|
const builder = opts?.extras?.buildProductReleaseCardProps ?? defaultBuildProductReleaseCardProps;
|
|
15830
|
-
return /* @__PURE__ */
|
|
15891
|
+
return /* @__PURE__ */ jsx94(
|
|
15831
15892
|
ProductReleaseChatCard,
|
|
15832
15893
|
{
|
|
15833
15894
|
item,
|
|
@@ -15844,8 +15905,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15844
15905
|
label: "Investor update",
|
|
15845
15906
|
contentRefType: "investor_update",
|
|
15846
15907
|
bareInline: true,
|
|
15847
|
-
skeleton: () => /* @__PURE__ */
|
|
15848
|
-
render: (item, chatRef, opts) => /* @__PURE__ */
|
|
15908
|
+
skeleton: () => /* @__PURE__ */ jsx94(InvestorUpdateCardSkeleton, { size: "sm" }),
|
|
15909
|
+
render: (item, chatRef, opts) => /* @__PURE__ */ jsx94(
|
|
15849
15910
|
InvestorUpdateChatCard,
|
|
15850
15911
|
{
|
|
15851
15912
|
item,
|
|
@@ -15862,8 +15923,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15862
15923
|
bareInline: true,
|
|
15863
15924
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
15864
15925
|
displayAction: true,
|
|
15865
|
-
skeleton: () => /* @__PURE__ */
|
|
15866
|
-
render: (item, chatRef, opts) => /* @__PURE__ */
|
|
15926
|
+
skeleton: () => /* @__PURE__ */ jsx94(OnboardingGuideCardSkeleton, { size: "sm" }),
|
|
15927
|
+
render: (item, chatRef, opts) => /* @__PURE__ */ jsx94(
|
|
15867
15928
|
OnboardingGuideChatCard,
|
|
15868
15929
|
{
|
|
15869
15930
|
item,
|
|
@@ -15878,11 +15939,11 @@ var CHAT_CARD_REGISTRY = {
|
|
|
15878
15939
|
label: "Marketing campaign",
|
|
15879
15940
|
contentRefType: "marketing_campaign",
|
|
15880
15941
|
bareInline: true,
|
|
15881
|
-
skeleton: () => /* @__PURE__ */
|
|
15942
|
+
skeleton: () => /* @__PURE__ */ jsx94(CampaignCardAdminSkeleton, {}),
|
|
15882
15943
|
// No public viewer — synthesize the hub-internal admin URL post-fetch
|
|
15883
15944
|
// so the wrapper + isNewTab computation see the actual destination.
|
|
15884
15945
|
fallbackHref: (item) => item?.id ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
|
|
15885
|
-
render: (item, chatRef, opts) => /* @__PURE__ */
|
|
15946
|
+
render: (item, chatRef, opts) => /* @__PURE__ */ jsx94(CampaignChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
15886
15947
|
},
|
|
15887
15948
|
...roadmapRegistryEntries()
|
|
15888
15949
|
};
|
|
@@ -15911,7 +15972,7 @@ function ChatCardNavWrap({
|
|
|
15911
15972
|
e.stopPropagation();
|
|
15912
15973
|
if (!isNewTab && panel?.closeChat) panel.closeChat();
|
|
15913
15974
|
};
|
|
15914
|
-
return /* @__PURE__ */
|
|
15975
|
+
return /* @__PURE__ */ jsx94("span", { className: "contents", onClickCapture, children });
|
|
15915
15976
|
}
|
|
15916
15977
|
function ChatCardLoader({
|
|
15917
15978
|
chatRef,
|
|
@@ -15973,7 +16034,7 @@ function ChatCardLoader({
|
|
|
15973
16034
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
15974
16035
|
const discuss = discussFn ? {
|
|
15975
16036
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
15976
|
-
icon: useDisplay ? /* @__PURE__ */
|
|
16037
|
+
icon: useDisplay ? /* @__PURE__ */ jsx94(FileContentIcon, { size: 20 }) : /* @__PURE__ */ jsx94(
|
|
15977
16038
|
MingoIcon,
|
|
15978
16039
|
{
|
|
15979
16040
|
className: "size-5",
|
|
@@ -15992,7 +16053,7 @@ function ChatCardLoader({
|
|
|
15992
16053
|
discuss
|
|
15993
16054
|
};
|
|
15994
16055
|
const path = typeof finalChatRef.metadata?.path === "string" ? finalChatRef.metadata.path : null;
|
|
15995
|
-
const navWrap = (children) => /* @__PURE__ */
|
|
16056
|
+
const navWrap = (children) => /* @__PURE__ */ jsx94(
|
|
15996
16057
|
ChatCardNavWrap,
|
|
15997
16058
|
{
|
|
15998
16059
|
href: finalChatRef.url ?? null,
|
|
@@ -16002,7 +16063,7 @@ function ChatCardLoader({
|
|
|
16002
16063
|
children
|
|
16003
16064
|
}
|
|
16004
16065
|
);
|
|
16005
|
-
const finish = (node) => entry.bareInline ? /* @__PURE__ */
|
|
16066
|
+
const finish = (node) => entry.bareInline ? /* @__PURE__ */ jsx94(Fragment32, { children: navWrap(node) }) : /* @__PURE__ */ jsx94(
|
|
16006
16067
|
ChatCardWithDiscuss,
|
|
16007
16068
|
{
|
|
16008
16069
|
chatRef: finalChatRef,
|
|
@@ -16015,15 +16076,15 @@ function ChatCardLoader({
|
|
|
16015
16076
|
if (!fetchEntry) {
|
|
16016
16077
|
return finish(entry.render(void 0, finalChatRef, renderOpts));
|
|
16017
16078
|
}
|
|
16018
|
-
if (isLoading) return /* @__PURE__ */
|
|
16079
|
+
if (isLoading) return /* @__PURE__ */ jsx94(Fragment32, { children: fetchEntry.skeleton?.() ?? null });
|
|
16019
16080
|
if (!item) {
|
|
16020
16081
|
if (isError) {
|
|
16021
|
-
return /* @__PURE__ */
|
|
16082
|
+
return /* @__PURE__ */ jsx94(CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Failed to load" });
|
|
16022
16083
|
}
|
|
16023
16084
|
if (!isFetched) {
|
|
16024
|
-
return /* @__PURE__ */
|
|
16085
|
+
return /* @__PURE__ */ jsx94(CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Not loadable" });
|
|
16025
16086
|
}
|
|
16026
|
-
return /* @__PURE__ */
|
|
16087
|
+
return /* @__PURE__ */ jsx94(CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Not found" });
|
|
16027
16088
|
}
|
|
16028
16089
|
const videoMeta = itemVideoMetadata(item);
|
|
16029
16090
|
if (videoMeta) {
|
|
@@ -16035,9 +16096,9 @@ function ChatCardLoader({
|
|
|
16035
16096
|
// Same 12px rhythm as the message renderer's block-sibling wrapper
|
|
16036
16097
|
// (`my-3` in chat-message-enhanced) so card→player spacing matches
|
|
16037
16098
|
// the spacing between any two hoisted blocks.
|
|
16038
|
-
/* @__PURE__ */
|
|
16099
|
+
/* @__PURE__ */ jsxs73("div", { className: "flex min-w-0 flex-col gap-3", children: [
|
|
16039
16100
|
finish(entry.render(item, finalChatRef, renderOpts)),
|
|
16040
|
-
/* @__PURE__ */
|
|
16101
|
+
/* @__PURE__ */ jsx94(ChatVideoEntityCard, { chatRef: videoRef })
|
|
16041
16102
|
] })
|
|
16042
16103
|
);
|
|
16043
16104
|
}
|
|
@@ -16045,7 +16106,7 @@ function ChatCardLoader({
|
|
|
16045
16106
|
}
|
|
16046
16107
|
function renderChatInlineEntityCard(chatRef, options = {}) {
|
|
16047
16108
|
const { onDiscuss, onDisplay, baseRoute, chipBasePlatform, extras } = options;
|
|
16048
|
-
const loader = /* @__PURE__ */
|
|
16109
|
+
const loader = /* @__PURE__ */ jsx94(
|
|
16049
16110
|
ChatCardLoader,
|
|
16050
16111
|
{
|
|
16051
16112
|
chatRef,
|
|
@@ -16065,7 +16126,7 @@ function renderChatInlineEntityCard(chatRef, options = {}) {
|
|
|
16065
16126
|
url: chatRef.url ?? decoded.videoUrl ?? (decoded.youtubeUrl ? `https://www.youtube.com/watch?v=${decoded.youtubeUrl}` : null),
|
|
16066
16127
|
metadata: { ...chatRef.metadata ?? {}, ...decoded }
|
|
16067
16128
|
};
|
|
16068
|
-
return /* @__PURE__ */
|
|
16129
|
+
return /* @__PURE__ */ jsx94(BlockCard, { inline: /* @__PURE__ */ jsx94(ChatInlineVideoPill, { chatRef: displayRef }), children: /* @__PURE__ */ jsx94(ChatVideoEntityCard, { chatRef: displayRef }) });
|
|
16069
16130
|
}
|
|
16070
16131
|
return loader;
|
|
16071
16132
|
}
|
|
@@ -17425,7 +17486,7 @@ function useChatAttachments() {
|
|
|
17425
17486
|
|
|
17426
17487
|
// src/components/chat/hooks/use-chat-attachment-image-gallery.tsx
|
|
17427
17488
|
import { useCallback as useCallback16, useEffect as useEffect28, useRef as useRef23, useState as useState34 } from "react";
|
|
17428
|
-
import { jsx as
|
|
17489
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
17429
17490
|
var CLOSED = { isOpen: false, images: [], initialIndex: 0 };
|
|
17430
17491
|
function useChatAttachmentImageGallery() {
|
|
17431
17492
|
const runtime = useRequiredChatRuntime();
|
|
@@ -17461,7 +17522,7 @@ function useChatAttachmentImageGallery() {
|
|
|
17461
17522
|
root.addEventListener("click", onClick);
|
|
17462
17523
|
return () => root.removeEventListener("click", onClick);
|
|
17463
17524
|
}, [viewUrlPrefix]);
|
|
17464
|
-
const modal = state.isOpen ? /* @__PURE__ */
|
|
17525
|
+
const modal = state.isOpen ? /* @__PURE__ */ jsx95(
|
|
17465
17526
|
ImageGalleryModal,
|
|
17466
17527
|
{
|
|
17467
17528
|
images: state.images,
|
|
@@ -23468,13 +23529,13 @@ import {
|
|
|
23468
23529
|
useRef as useRef32,
|
|
23469
23530
|
useState as useState45
|
|
23470
23531
|
} from "react";
|
|
23471
|
-
import { jsx as
|
|
23532
|
+
import { jsx as jsx96, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
23472
23533
|
var OVERLAY_BACKDROP_CLASS = "bg-ods-overlay";
|
|
23473
23534
|
var Drawer = DialogPrimitive.Root;
|
|
23474
23535
|
var DrawerTrigger = DialogPrimitive.Trigger;
|
|
23475
23536
|
var DrawerClose = DialogPrimitive.Close;
|
|
23476
23537
|
var DrawerPortal = DialogPrimitive.Portal;
|
|
23477
|
-
var DrawerOverlay = forwardRef26(({ className, ...props }, ref) => /* @__PURE__ */
|
|
23538
|
+
var DrawerOverlay = forwardRef26(({ className, ...props }, ref) => /* @__PURE__ */ jsx96(
|
|
23478
23539
|
DialogPrimitive.Overlay,
|
|
23479
23540
|
{
|
|
23480
23541
|
ref,
|
|
@@ -23657,7 +23718,7 @@ function DrawerResizeHandle({ side, size: size2, minSize, maxSize, onSize, ariaL
|
|
|
23657
23718
|
const trackPosition = side === "right" ? "right-full top-4 bottom-4 w-3 items-center justify-end pr-1" : side === "left" ? "left-full top-4 bottom-4 w-3 items-center justify-start pl-1" : side === "bottom" ? "bottom-full left-4 right-4 h-3 justify-center items-end pb-1" : "top-full left-4 right-4 h-3 justify-center items-start pt-1";
|
|
23658
23719
|
const cursorClass = isHorizontal ? "cursor-col-resize" : "cursor-row-resize";
|
|
23659
23720
|
const gripClass = isHorizontal ? "h-10 w-1" : "w-10 h-1";
|
|
23660
|
-
return /* @__PURE__ */
|
|
23721
|
+
return /* @__PURE__ */ jsx96(
|
|
23661
23722
|
"div",
|
|
23662
23723
|
{
|
|
23663
23724
|
role: "separator",
|
|
@@ -23678,7 +23739,7 @@ function DrawerResizeHandle({ side, size: size2, minSize, maxSize, onSize, ariaL
|
|
|
23678
23739
|
trackPosition,
|
|
23679
23740
|
cursorClass
|
|
23680
23741
|
),
|
|
23681
|
-
children: /* @__PURE__ */
|
|
23742
|
+
children: /* @__PURE__ */ jsx96("div", { "aria-hidden": true, className: cn("rounded-full bg-ods-bg-surface", gripClass) })
|
|
23682
23743
|
}
|
|
23683
23744
|
);
|
|
23684
23745
|
}
|
|
@@ -23725,9 +23786,9 @@ var DrawerContent = forwardRef26(
|
|
|
23725
23786
|
});
|
|
23726
23787
|
const applyInlineSize = resizable && !isMobile;
|
|
23727
23788
|
const sizeStyle = applyInlineSize ? isHorizontal ? { width: size2 } : { height: size2 } : {};
|
|
23728
|
-
return /* @__PURE__ */
|
|
23729
|
-
/* @__PURE__ */
|
|
23730
|
-
/* @__PURE__ */
|
|
23789
|
+
return /* @__PURE__ */ jsxs74(DrawerPortal, { children: [
|
|
23790
|
+
/* @__PURE__ */ jsx96(DrawerOverlay, { className: overlayClassName }),
|
|
23791
|
+
/* @__PURE__ */ jsxs74(
|
|
23731
23792
|
DialogPrimitive.Content,
|
|
23732
23793
|
{
|
|
23733
23794
|
ref,
|
|
@@ -23735,7 +23796,7 @@ var DrawerContent = forwardRef26(
|
|
|
23735
23796
|
style: { ...offsetHeader ? { top: headerHeight } : {}, ...style },
|
|
23736
23797
|
...props,
|
|
23737
23798
|
children: [
|
|
23738
|
-
applyInlineSize ? /* @__PURE__ */
|
|
23799
|
+
applyInlineSize ? /* @__PURE__ */ jsx96(
|
|
23739
23800
|
DrawerResizeHandle,
|
|
23740
23801
|
{
|
|
23741
23802
|
side: resolvedSide,
|
|
@@ -23746,7 +23807,7 @@ var DrawerContent = forwardRef26(
|
|
|
23746
23807
|
ariaLabel: resizeAriaLabel
|
|
23747
23808
|
}
|
|
23748
23809
|
) : null,
|
|
23749
|
-
/* @__PURE__ */
|
|
23810
|
+
/* @__PURE__ */ jsx96(
|
|
23750
23811
|
"div",
|
|
23751
23812
|
{
|
|
23752
23813
|
className: cn(drawerPanelVariants({ side, flush }), className, panelClassName),
|
|
@@ -23761,11 +23822,11 @@ var DrawerContent = forwardRef26(
|
|
|
23761
23822
|
}
|
|
23762
23823
|
);
|
|
23763
23824
|
DrawerContent.displayName = "DrawerContent";
|
|
23764
|
-
var DrawerHeader = ({ className, children, ...props }) => /* @__PURE__ */
|
|
23825
|
+
var DrawerHeader = ({ className, children, ...props }) => /* @__PURE__ */ jsx96("div", { className: cn("flex flex-col gap-4", className), ...props, children });
|
|
23765
23826
|
DrawerHeader.displayName = "DrawerHeader";
|
|
23766
23827
|
var DrawerTitle = forwardRef26(
|
|
23767
|
-
({ className, children, actions, hideClose, ...props }, ref) => /* @__PURE__ */
|
|
23768
|
-
/* @__PURE__ */
|
|
23828
|
+
({ className, children, actions, hideClose, ...props }, ref) => /* @__PURE__ */ jsxs74("div", { className: "flex items-start gap-4", children: [
|
|
23829
|
+
/* @__PURE__ */ jsx96(
|
|
23769
23830
|
DialogPrimitive.Title,
|
|
23770
23831
|
{
|
|
23771
23832
|
ref,
|
|
@@ -23775,14 +23836,14 @@ var DrawerTitle = forwardRef26(
|
|
|
23775
23836
|
}
|
|
23776
23837
|
),
|
|
23777
23838
|
actions,
|
|
23778
|
-
!hideClose && /* @__PURE__ */
|
|
23779
|
-
/* @__PURE__ */
|
|
23780
|
-
/* @__PURE__ */
|
|
23839
|
+
!hideClose && /* @__PURE__ */ jsxs74(DialogPrimitive.Close, { className: "shrink-0 rounded-sm text-ods-text-secondary outline-none ring-0 transition-colors hover:text-ods-text-primary focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0", children: [
|
|
23840
|
+
/* @__PURE__ */ jsx96(X, { className: "size-6" }),
|
|
23841
|
+
/* @__PURE__ */ jsx96("span", { className: "sr-only", children: "Close" })
|
|
23781
23842
|
] })
|
|
23782
23843
|
] })
|
|
23783
23844
|
);
|
|
23784
23845
|
DrawerTitle.displayName = "DrawerTitle";
|
|
23785
|
-
var DrawerDescription = forwardRef26(({ className, ...props }, ref) => /* @__PURE__ */
|
|
23846
|
+
var DrawerDescription = forwardRef26(({ className, ...props }, ref) => /* @__PURE__ */ jsx96(
|
|
23786
23847
|
DialogPrimitive.Description,
|
|
23787
23848
|
{
|
|
23788
23849
|
ref,
|
|
@@ -23791,16 +23852,16 @@ var DrawerDescription = forwardRef26(({ className, ...props }, ref) => /* @__PUR
|
|
|
23791
23852
|
}
|
|
23792
23853
|
));
|
|
23793
23854
|
DrawerDescription.displayName = "DrawerDescription";
|
|
23794
|
-
var DrawerBody = ({ className, ...props }) => /* @__PURE__ */
|
|
23855
|
+
var DrawerBody = ({ className, ...props }) => /* @__PURE__ */ jsx96("div", { className: cn("flex flex-1 flex-col gap-4 overflow-y-auto", className), ...props });
|
|
23795
23856
|
DrawerBody.displayName = "DrawerBody";
|
|
23796
|
-
var DrawerFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
23857
|
+
var DrawerFooter = ({ className, ...props }) => /* @__PURE__ */ jsx96("div", { className: cn("mt-auto flex flex-col gap-2", className), ...props });
|
|
23797
23858
|
DrawerFooter.displayName = "DrawerFooter";
|
|
23798
23859
|
|
|
23799
23860
|
// src/components/ui/hover-dropdown.tsx
|
|
23800
23861
|
import { useState as useState46, useRef as useRef33, useCallback as useCallback25 } from "react";
|
|
23801
|
-
import { Fragment as Fragment33, jsx as
|
|
23862
|
+
import { Fragment as Fragment33, jsx as jsx97, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
23802
23863
|
function DefaultAnchor({ href, className, children }) {
|
|
23803
|
-
return /* @__PURE__ */
|
|
23864
|
+
return /* @__PURE__ */ jsx97("a", { href, className, children });
|
|
23804
23865
|
}
|
|
23805
23866
|
function HoverDropdown({
|
|
23806
23867
|
children,
|
|
@@ -23853,24 +23914,24 @@ function HoverDropdown({
|
|
|
23853
23914
|
clearTimeout(timeoutRef.current);
|
|
23854
23915
|
setOpen((prev) => !prev);
|
|
23855
23916
|
}, []);
|
|
23856
|
-
if (items.length === 0) return /* @__PURE__ */
|
|
23917
|
+
if (items.length === 0) return /* @__PURE__ */ jsx97(Fragment33, { children });
|
|
23857
23918
|
const renderAnchorFn = renderAnchor ?? DefaultAnchor;
|
|
23858
|
-
return /* @__PURE__ */
|
|
23919
|
+
return /* @__PURE__ */ jsxs75("div", { ref: containerRef, className: "relative inline-flex", onMouseEnter: show, onMouseLeave: hide, onClick: toggle, children: [
|
|
23859
23920
|
children,
|
|
23860
|
-
open && /* @__PURE__ */
|
|
23921
|
+
open && /* @__PURE__ */ jsx97(
|
|
23861
23922
|
"div",
|
|
23862
23923
|
{
|
|
23863
23924
|
className: `fixed z-[9999] max-h-[420px] min-w-[220px] max-w-[340px] overflow-y-auto rounded-lg border border-ods-border bg-ods-card p-1 shadow-xl ${className || ""}`,
|
|
23864
23925
|
ref: panelRef,
|
|
23865
23926
|
children: items.map((item, i) => {
|
|
23866
|
-
const content = /* @__PURE__ */
|
|
23867
|
-
item.icon && /* @__PURE__ */
|
|
23868
|
-
/* @__PURE__ */
|
|
23927
|
+
const content = /* @__PURE__ */ jsxs75(Fragment33, { children: [
|
|
23928
|
+
item.icon && /* @__PURE__ */ jsx97("span", { className: "flex-shrink-0 [&_svg]:size-3.5", children: item.icon }),
|
|
23929
|
+
/* @__PURE__ */ jsx97("span", { className: "min-w-0 flex-1 truncate", children: item.label })
|
|
23869
23930
|
] });
|
|
23870
23931
|
const rowClass = "group flex w-full items-center gap-1.5 pl-2 pr-1 py-1.5 rounded text-h6 text-ods-text-secondary hover:bg-ods-accent/10 transition-colors text-left";
|
|
23871
23932
|
const primaryClass = "flex flex-1 items-center gap-1.5 min-w-0 hover:text-ods-accent cursor-pointer no-underline";
|
|
23872
23933
|
const secondaryAction = item.secondaryAction;
|
|
23873
|
-
const secondary = secondaryAction ? /* @__PURE__ */
|
|
23934
|
+
const secondary = secondaryAction ? /* @__PURE__ */ jsx97(
|
|
23874
23935
|
"button",
|
|
23875
23936
|
{
|
|
23876
23937
|
onClick: (e) => {
|
|
@@ -23885,7 +23946,7 @@ function HoverDropdown({
|
|
|
23885
23946
|
}
|
|
23886
23947
|
) : null;
|
|
23887
23948
|
if (item.href) {
|
|
23888
|
-
return /* @__PURE__ */
|
|
23949
|
+
return /* @__PURE__ */ jsxs75("div", { className: rowClass, children: [
|
|
23889
23950
|
renderAnchorFn({
|
|
23890
23951
|
href: item.href,
|
|
23891
23952
|
targetPlatform: item.targetPlatform,
|
|
@@ -23898,13 +23959,13 @@ function HoverDropdown({
|
|
|
23898
23959
|
] }, i);
|
|
23899
23960
|
}
|
|
23900
23961
|
if (!item.onClick) {
|
|
23901
|
-
return /* @__PURE__ */
|
|
23902
|
-
/* @__PURE__ */
|
|
23962
|
+
return /* @__PURE__ */ jsxs75("div", { className: rowClass, children: [
|
|
23963
|
+
/* @__PURE__ */ jsx97("span", { className: `${primaryClass} cursor-default hover:!text-ods-text-secondary`, children: content }),
|
|
23903
23964
|
secondary
|
|
23904
23965
|
] }, i);
|
|
23905
23966
|
}
|
|
23906
|
-
return /* @__PURE__ */
|
|
23907
|
-
/* @__PURE__ */
|
|
23967
|
+
return /* @__PURE__ */ jsxs75("div", { className: rowClass, children: [
|
|
23968
|
+
/* @__PURE__ */ jsx97("button", { onClick: item.onClick, className: primaryClass, children: content }),
|
|
23908
23969
|
secondary
|
|
23909
23970
|
] }, i);
|
|
23910
23971
|
})
|
|
@@ -24147,7 +24208,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
24147
24208
|
}
|
|
24148
24209
|
|
|
24149
24210
|
// src/components/chat/embeddable-chat.tsx
|
|
24150
|
-
import { Fragment as Fragment34, jsx as
|
|
24211
|
+
import { Fragment as Fragment34, jsx as jsx98, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
24151
24212
|
var HISTORY_RAIL_WIDTH = 320;
|
|
24152
24213
|
var CHAT_BLOCK_MIN_WIDTH = 400;
|
|
24153
24214
|
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + CHAT_BLOCK_MIN_WIDTH;
|
|
@@ -24198,7 +24259,7 @@ function RailSlot({
|
|
|
24198
24259
|
innerClassName,
|
|
24199
24260
|
children
|
|
24200
24261
|
}) {
|
|
24201
|
-
return /* @__PURE__ */
|
|
24262
|
+
return /* @__PURE__ */ jsx98(
|
|
24202
24263
|
"div",
|
|
24203
24264
|
{
|
|
24204
24265
|
className: cn(
|
|
@@ -24207,7 +24268,7 @@ function RailSlot({
|
|
|
24207
24268
|
"shrink-0 overflow-hidden border-r border-ods-border transition-[width,opacity] ease-out",
|
|
24208
24269
|
active ? "duration-[240ms] w-80 opacity-100" : "duration-[300ms] w-0 opacity-0"
|
|
24209
24270
|
),
|
|
24210
|
-
children: /* @__PURE__ */
|
|
24271
|
+
children: /* @__PURE__ */ jsx98("div", { className: cn("h-full w-80", innerClassName), children })
|
|
24211
24272
|
}
|
|
24212
24273
|
);
|
|
24213
24274
|
}
|
|
@@ -24264,7 +24325,7 @@ function SourceChip({
|
|
|
24264
24325
|
sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform })
|
|
24265
24326
|
);
|
|
24266
24327
|
const Icon = cta.icon;
|
|
24267
|
-
const icon = /* @__PURE__ */
|
|
24328
|
+
const icon = /* @__PURE__ */ jsx98(Icon, { className: "h-3.5 w-3.5" });
|
|
24268
24329
|
const chipClass = chatChipClass({ tone: "secondary" });
|
|
24269
24330
|
const decideTab = (href, targetPlatform) => computeIsNewTab(runtime, href, targetPlatform);
|
|
24270
24331
|
if (src.items && src.items.length > 0) {
|
|
@@ -24285,22 +24346,22 @@ function SourceChip({
|
|
|
24285
24346
|
const itemChatRef = itemCta.chatRef;
|
|
24286
24347
|
return {
|
|
24287
24348
|
label: item.name,
|
|
24288
|
-
icon: /* @__PURE__ */
|
|
24349
|
+
icon: /* @__PURE__ */ jsx98(ItemIcon, { className: "h-3.5 w-3.5" }),
|
|
24289
24350
|
href: itemCta.href ?? void 0,
|
|
24290
24351
|
targetPlatform: itemCta.targetPlatform,
|
|
24291
24352
|
path: item.path ?? null,
|
|
24292
24353
|
secondaryAction: onDiscuss && itemCta.askable && itemChatRef ? {
|
|
24293
|
-
icon: /* @__PURE__ */
|
|
24354
|
+
icon: /* @__PURE__ */ jsx98(MessageSquare3, {}),
|
|
24294
24355
|
label: `Ask about ${item.name}`,
|
|
24295
24356
|
onClick: () => onDiscuss(itemChatRef)
|
|
24296
24357
|
} : void 0
|
|
24297
24358
|
};
|
|
24298
24359
|
});
|
|
24299
|
-
return /* @__PURE__ */
|
|
24360
|
+
return /* @__PURE__ */ jsx98(
|
|
24300
24361
|
HoverDropdown,
|
|
24301
24362
|
{
|
|
24302
24363
|
items: dropdownItems,
|
|
24303
|
-
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */
|
|
24364
|
+
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ jsx98(
|
|
24304
24365
|
NavLinkAnchorViaRuntime,
|
|
24305
24366
|
{
|
|
24306
24367
|
href,
|
|
@@ -24310,9 +24371,9 @@ function SourceChip({
|
|
|
24310
24371
|
children
|
|
24311
24372
|
}
|
|
24312
24373
|
),
|
|
24313
|
-
children: /* @__PURE__ */
|
|
24374
|
+
children: /* @__PURE__ */ jsxs76("span", { className: `${chipClass} cursor-pointer`, children: [
|
|
24314
24375
|
icon,
|
|
24315
|
-
/* @__PURE__ */
|
|
24376
|
+
/* @__PURE__ */ jsxs76("span", { className: "max-w-[160px] truncate", children: [
|
|
24316
24377
|
"[",
|
|
24317
24378
|
src.index,
|
|
24318
24379
|
"] ",
|
|
@@ -24323,18 +24384,18 @@ function SourceChip({
|
|
|
24323
24384
|
);
|
|
24324
24385
|
}
|
|
24325
24386
|
const displayName = src.name || formatRelativePath(src.path);
|
|
24326
|
-
const chipBody = (label) => /* @__PURE__ */
|
|
24387
|
+
const chipBody = (label) => /* @__PURE__ */ jsxs76(Fragment34, { children: [
|
|
24327
24388
|
icon,
|
|
24328
|
-
/* @__PURE__ */
|
|
24389
|
+
/* @__PURE__ */ jsxs76("span", { className: "max-w-[160px] truncate", children: [
|
|
24329
24390
|
"[",
|
|
24330
24391
|
src.index,
|
|
24331
24392
|
"] ",
|
|
24332
24393
|
label
|
|
24333
24394
|
] })
|
|
24334
24395
|
] });
|
|
24335
|
-
const wrapChip = (clickable) => /* @__PURE__ */
|
|
24396
|
+
const wrapChip = (clickable) => /* @__PURE__ */ jsxs76("span", { className: "inline-flex items-center", children: [
|
|
24336
24397
|
clickable,
|
|
24337
|
-
/* @__PURE__ */
|
|
24398
|
+
/* @__PURE__ */ jsx98(SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
24338
24399
|
] });
|
|
24339
24400
|
const buildClickHandler = (href, path, targetPlatform, isNewTab) => (e) => {
|
|
24340
24401
|
const handled = executeNavigation({
|
|
@@ -24351,7 +24412,7 @@ function SourceChip({
|
|
|
24351
24412
|
const resolvedHref = resolveHrefForRuntime(cta.href, runtime);
|
|
24352
24413
|
const isNewTab = decideTab(resolvedHref, cta.targetPlatform ?? null);
|
|
24353
24414
|
return wrapChip(
|
|
24354
|
-
/* @__PURE__ */
|
|
24415
|
+
/* @__PURE__ */ jsx98(
|
|
24355
24416
|
"a",
|
|
24356
24417
|
{
|
|
24357
24418
|
href: resolvedHref,
|
|
@@ -24367,7 +24428,7 @@ function SourceChip({
|
|
|
24367
24428
|
const resolvedHref = resolveHrefForRuntime(cta.href, runtime);
|
|
24368
24429
|
const isNewTab = decideTab(resolvedHref, cta.targetPlatform ?? null);
|
|
24369
24430
|
return wrapChip(
|
|
24370
|
-
/* @__PURE__ */
|
|
24431
|
+
/* @__PURE__ */ jsx98(
|
|
24371
24432
|
"a",
|
|
24372
24433
|
{
|
|
24373
24434
|
href: resolvedHref,
|
|
@@ -24381,7 +24442,7 @@ function SourceChip({
|
|
|
24381
24442
|
);
|
|
24382
24443
|
}
|
|
24383
24444
|
return wrapChip(
|
|
24384
|
-
/* @__PURE__ */
|
|
24445
|
+
/* @__PURE__ */ jsx98("span", { className: `${chipClass} cursor-default`, title: displayName, children: chipBody(displayName) })
|
|
24385
24446
|
);
|
|
24386
24447
|
}
|
|
24387
24448
|
function SourceChips({
|
|
@@ -24396,9 +24457,9 @@ function SourceChips({
|
|
|
24396
24457
|
if (cited.length === 0) {
|
|
24397
24458
|
const fallback = uncited.slice(0, FALLBACK_TOP_RETRIEVED);
|
|
24398
24459
|
if (fallback.length === 0) return null;
|
|
24399
|
-
return /* @__PURE__ */
|
|
24400
|
-
/* @__PURE__ */
|
|
24401
|
-
/* @__PURE__ */
|
|
24460
|
+
return /* @__PURE__ */ jsxs76("div", { className: "mt-2 flex flex-col gap-1.5 border-t border-ods-border pt-2", children: [
|
|
24461
|
+
/* @__PURE__ */ jsx98("span", { className: "uppercase text-ods-text-muted text-h6", children: "Top retrieved sources" }),
|
|
24462
|
+
/* @__PURE__ */ jsx98("div", { className: "flex flex-wrap gap-1.5", children: fallback.map((src) => /* @__PURE__ */ jsx98(
|
|
24402
24463
|
SourceChip,
|
|
24403
24464
|
{
|
|
24404
24465
|
src,
|
|
@@ -24413,10 +24474,10 @@ function SourceChips({
|
|
|
24413
24474
|
}
|
|
24414
24475
|
const hiddenCount = uncited.length;
|
|
24415
24476
|
const hasOverflow = hiddenCount > 0;
|
|
24416
|
-
return /* @__PURE__ */
|
|
24417
|
-
/* @__PURE__ */
|
|
24418
|
-
/* @__PURE__ */
|
|
24419
|
-
cited.map((src) => /* @__PURE__ */
|
|
24477
|
+
return /* @__PURE__ */ jsxs76("div", { className: "mt-2 flex flex-col gap-1.5 border-t border-ods-border pt-2", children: [
|
|
24478
|
+
/* @__PURE__ */ jsx98("span", { className: "uppercase text-ods-text-muted text-h6", children: "Sources" }),
|
|
24479
|
+
/* @__PURE__ */ jsxs76("div", { className: `flex flex-wrap gap-1.5 ${expanded ? "max-h-[200px] overflow-y-auto overscroll-contain" : ""}`, children: [
|
|
24480
|
+
cited.map((src) => /* @__PURE__ */ jsx98(
|
|
24420
24481
|
SourceChip,
|
|
24421
24482
|
{
|
|
24422
24483
|
src,
|
|
@@ -24427,7 +24488,7 @@ function SourceChips({
|
|
|
24427
24488
|
},
|
|
24428
24489
|
src.index
|
|
24429
24490
|
)),
|
|
24430
|
-
expanded && uncited.map((src) => /* @__PURE__ */
|
|
24491
|
+
expanded && uncited.map((src) => /* @__PURE__ */ jsx98(
|
|
24431
24492
|
SourceChip,
|
|
24432
24493
|
{
|
|
24433
24494
|
src,
|
|
@@ -24438,7 +24499,7 @@ function SourceChips({
|
|
|
24438
24499
|
},
|
|
24439
24500
|
src.index
|
|
24440
24501
|
)),
|
|
24441
|
-
hasOverflow && /* @__PURE__ */
|
|
24502
|
+
hasOverflow && /* @__PURE__ */ jsx98(
|
|
24442
24503
|
"button",
|
|
24443
24504
|
{
|
|
24444
24505
|
onClick: () => setExpanded(!expanded),
|
|
@@ -24453,7 +24514,7 @@ function SourceChips({
|
|
|
24453
24514
|
}
|
|
24454
24515
|
var EmbeddableChat = React10.forwardRef(
|
|
24455
24516
|
function EmbeddableChatImpl(props, ref) {
|
|
24456
|
-
return /* @__PURE__ */
|
|
24517
|
+
return /* @__PURE__ */ jsx98(EmbeddableChatInner, { ...props, handleRef: ref });
|
|
24457
24518
|
}
|
|
24458
24519
|
);
|
|
24459
24520
|
EmbeddableChat.displayName = "EmbeddableChat";
|
|
@@ -24788,7 +24849,7 @@ function EmbeddableChatInner({
|
|
|
24788
24849
|
[discussRef, displayRef, resolvedBaseRoute, chipBasePlatform, extras]
|
|
24789
24850
|
);
|
|
24790
24851
|
const mingoAssistantIcon = useMemo30(
|
|
24791
|
-
() => effectiveAssistantIcon ? /* @__PURE__ */
|
|
24852
|
+
() => effectiveAssistantIcon ? /* @__PURE__ */ jsx98(EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ jsx98(MingoIcon, { className: "h-6 w-6", cornerColor: "var(--ods-flamingo-cyan-base)" }),
|
|
24792
24853
|
[effectiveAssistantIcon]
|
|
24793
24854
|
);
|
|
24794
24855
|
const [timestampCache] = useState48(() => /* @__PURE__ */ new Map());
|
|
@@ -24947,7 +25008,7 @@ function EmbeddableChatInner({
|
|
|
24947
25008
|
if (chatLoading && index === messages.length - 1) return null;
|
|
24948
25009
|
const { cited, uncited } = splitCitedSources(message.sources, flattenAssistantContent(message.content));
|
|
24949
25010
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
24950
|
-
return /* @__PURE__ */
|
|
25011
|
+
return /* @__PURE__ */ jsx98("div", { className: "pb-2", children: /* @__PURE__ */ jsx98(
|
|
24951
25012
|
SourceChips,
|
|
24952
25013
|
{
|
|
24953
25014
|
cited,
|
|
@@ -25074,13 +25135,13 @@ function EmbeddableChatInner({
|
|
|
25074
25135
|
onCopyLink: headerOnCopyLink,
|
|
25075
25136
|
onOpenArchive: headerOnOpenArchive
|
|
25076
25137
|
};
|
|
25077
|
-
const body = /* @__PURE__ */
|
|
25078
|
-
/* @__PURE__ */
|
|
25138
|
+
const body = /* @__PURE__ */ jsx98(PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ jsxs76(CollisionBoundaryContext.Provider, { value: panelBoundary, children: [
|
|
25139
|
+
/* @__PURE__ */ jsx98(
|
|
25079
25140
|
"div",
|
|
25080
25141
|
{
|
|
25081
25142
|
ref: setPanelNode,
|
|
25082
25143
|
className: `flex h-full flex-col overflow-hidden transition-colors duration-200 ${archiveOpen && !splitActive || stackedListView ? "bg-ods-card" : "bg-ods-bg"} ${previewMode ? "pointer-events-none select-none" : ""}`,
|
|
25083
|
-
children: archiveOpen && !splitActive ? /* @__PURE__ */
|
|
25144
|
+
children: archiveOpen && !splitActive ? /* @__PURE__ */ jsx98("div", { className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0", children: /* @__PURE__ */ jsx98(
|
|
25084
25145
|
ChatArchivePage,
|
|
25085
25146
|
{
|
|
25086
25147
|
dialogs: archivedDialogs,
|
|
@@ -25094,7 +25155,7 @@ function EmbeddableChatInner({
|
|
|
25094
25155
|
void loadArchivedPage(archivedCursor ?? void 0);
|
|
25095
25156
|
}
|
|
25096
25157
|
}
|
|
25097
|
-
) }, "archive-view") : /* @__PURE__ */
|
|
25158
|
+
) }, "archive-view") : /* @__PURE__ */ jsxs76("div", { className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0", children: [
|
|
25098
25159
|
showWideHeader ? (
|
|
25099
25160
|
// Wide Mingo header (Figma 113:60931 / 113:63630). Split: a
|
|
25100
25161
|
// two-cell bar — the "Current Chats" rail header (search /
|
|
@@ -25108,47 +25169,47 @@ function EmbeddableChatInner({
|
|
|
25108
25169
|
// the viewport `md` breakpoint — otherwise a 720–799px panel on a
|
|
25109
25170
|
// sub-`md` viewport would split the body yet drop to the mobile
|
|
25110
25171
|
// single-bar header (no rail search / collapse controls).
|
|
25111
|
-
/* @__PURE__ */
|
|
25112
|
-
railPresence.mounted && /* @__PURE__ */
|
|
25172
|
+
/* @__PURE__ */ jsxs76("div", { className: "flex h-14 w-full flex-shrink-0 overflow-hidden border-b border-ods-border bg-ods-card", children: [
|
|
25173
|
+
railPresence.mounted && /* @__PURE__ */ jsx98(RailSlot, { active: railPresence.active, innerClassName: "flex overflow-hidden", children: archiveOpen ? (
|
|
25113
25174
|
// Archive open in the wide layout — the rail header
|
|
25114
25175
|
// turns into a "Chat Archive" back bar (the list itself
|
|
25115
25176
|
// renders in the rail below); the chat block is untouched.
|
|
25116
25177
|
// Back is a full-height leading cell, matching the other
|
|
25117
25178
|
// header cells (not a small inline chevron).
|
|
25118
|
-
/* @__PURE__ */
|
|
25119
|
-
/* @__PURE__ */
|
|
25120
|
-
/* @__PURE__ */
|
|
25179
|
+
/* @__PURE__ */ jsxs76(Fragment34, { children: [
|
|
25180
|
+
/* @__PURE__ */ jsx98(ChatHeaderIconButton, { divider: "right", onClick: closeArchive, "aria-label": "Back to chats", children: /* @__PURE__ */ jsx98(Chevron02LeftIcon, { size: 24 }) }),
|
|
25181
|
+
/* @__PURE__ */ jsx98("div", { className: "flex min-w-0 flex-1 items-center px-[var(--spacing-system-mf)]", children: /* @__PURE__ */ jsx98("span", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h3", children: "Chat Archive" }) })
|
|
25121
25182
|
] })
|
|
25122
25183
|
) : (
|
|
25123
25184
|
// "Current Chats" rail header — title fills, then the
|
|
25124
25185
|
// search + archive controls. When search is open the
|
|
25125
25186
|
// inline field takes over the title area in place
|
|
25126
25187
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
25127
|
-
/* @__PURE__ */
|
|
25128
|
-
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */
|
|
25188
|
+
/* @__PURE__ */ jsxs76(Fragment34, { children: [
|
|
25189
|
+
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ jsx98(
|
|
25129
25190
|
ChatHeaderSearchField,
|
|
25130
25191
|
{
|
|
25131
25192
|
initialValue: mingoCaps.searchQuery,
|
|
25132
25193
|
onSearchChange: mingoCaps.onSearchChange,
|
|
25133
25194
|
onCollapse: () => setRailSearchOpen(false)
|
|
25134
25195
|
}
|
|
25135
|
-
) : /* @__PURE__ */
|
|
25136
|
-
/* @__PURE__ */
|
|
25137
|
-
mingoCaps.onSearchChange && /* @__PURE__ */
|
|
25196
|
+
) : /* @__PURE__ */ jsxs76(Fragment34, { children: [
|
|
25197
|
+
/* @__PURE__ */ jsx98("div", { className: "flex min-w-0 flex-1 items-center px-[var(--spacing-system-mf)]", children: /* @__PURE__ */ jsx98("span", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h3", children: "Current Chats" }) }),
|
|
25198
|
+
mingoCaps.onSearchChange && /* @__PURE__ */ jsx98(
|
|
25138
25199
|
ChatHeaderIconButton,
|
|
25139
25200
|
{
|
|
25140
25201
|
onClick: () => setRailSearchOpen((o) => !o),
|
|
25141
25202
|
"aria-label": "Search chats",
|
|
25142
25203
|
"aria-pressed": railSearchOpen,
|
|
25143
|
-
children: /* @__PURE__ */
|
|
25204
|
+
children: /* @__PURE__ */ jsx98(SearchIcon, { size: 24 })
|
|
25144
25205
|
}
|
|
25145
25206
|
)
|
|
25146
25207
|
] }),
|
|
25147
|
-
headerOnOpenArchive && /* @__PURE__ */
|
|
25208
|
+
headerOnOpenArchive && /* @__PURE__ */ jsx98(ChatHeaderIconButton, { onClick: headerOnOpenArchive, "aria-label": "Chat archive", children: /* @__PURE__ */ jsx98(ClockHistoryIcon, { size: 24 }) })
|
|
25148
25209
|
] })
|
|
25149
25210
|
) }),
|
|
25150
|
-
/* @__PURE__ */
|
|
25151
|
-
/* @__PURE__ */
|
|
25211
|
+
/* @__PURE__ */ jsxs76("div", { className: "flex min-w-0 flex-1", children: [
|
|
25212
|
+
/* @__PURE__ */ jsx98(
|
|
25152
25213
|
"button",
|
|
25153
25214
|
{
|
|
25154
25215
|
type: "button",
|
|
@@ -25156,17 +25217,17 @@ function EmbeddableChatInner({
|
|
|
25156
25217
|
"aria-label": splitActive ? "Collapse chat list" : "Show chat list",
|
|
25157
25218
|
"aria-pressed": !splitActive,
|
|
25158
25219
|
className: "flex size-14 shrink-0 items-center justify-center border-r border-ods-border text-ods-text-secondary transition-colors hover:bg-ods-bg-hover hover:text-ods-text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent",
|
|
25159
|
-
children: splitActive ? /* @__PURE__ */
|
|
25220
|
+
children: splitActive ? /* @__PURE__ */ jsx98(Arrow02RightIcon, { size: 24 }) : /* @__PURE__ */ jsx98(Arrow02LeftIcon, { size: 24 })
|
|
25160
25221
|
}
|
|
25161
25222
|
),
|
|
25162
|
-
/* @__PURE__ */
|
|
25163
|
-
/* @__PURE__ */
|
|
25164
|
-
/* @__PURE__ */
|
|
25165
|
-
headerPersonName && /* @__PURE__ */
|
|
25223
|
+
/* @__PURE__ */ jsxs76("div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-m)] px-[var(--spacing-system-mf)] py-[var(--spacing-system-sf)]", children: [
|
|
25224
|
+
/* @__PURE__ */ jsxs76("div", { className: "flex min-w-0 flex-col", children: [
|
|
25225
|
+
/* @__PURE__ */ jsx98("p", { className: "truncate leading-tight text-ods-text-primary text-h3", children: headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle }),
|
|
25226
|
+
headerPersonName && /* @__PURE__ */ jsx98("p", { className: "truncate leading-tight text-ods-text-secondary text-h6", children: headerPersonName })
|
|
25166
25227
|
] }),
|
|
25167
25228
|
headerAvatar ? (
|
|
25168
25229
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
25169
|
-
/* @__PURE__ */
|
|
25230
|
+
/* @__PURE__ */ jsx98(
|
|
25170
25231
|
SquareAvatar,
|
|
25171
25232
|
{
|
|
25172
25233
|
variant: "round",
|
|
@@ -25181,17 +25242,17 @@ function EmbeddableChatInner({
|
|
|
25181
25242
|
)
|
|
25182
25243
|
) : null
|
|
25183
25244
|
] }),
|
|
25184
|
-
isViewingArchived && headerOnRestore && /* @__PURE__ */
|
|
25185
|
-
headerShowBack && !isViewingArchived && splitHeaderMenuItems.length > 0 && /* @__PURE__ */
|
|
25245
|
+
isViewingArchived && headerOnRestore && /* @__PURE__ */ jsx98(ChatHeaderIconButton, { onClick: headerOnRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ jsx98(Refresh01LeftIcon, { size: 24 }) }),
|
|
25246
|
+
headerShowBack && !isViewingArchived && splitHeaderMenuItems.length > 0 && /* @__PURE__ */ jsx98(
|
|
25186
25247
|
ActionsMenuDropdown,
|
|
25187
25248
|
{
|
|
25188
25249
|
triggerAriaLabel: "Chat actions",
|
|
25189
25250
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
25190
25251
|
groups: [{ items: splitHeaderMenuItems }],
|
|
25191
|
-
customTrigger: /* @__PURE__ */
|
|
25252
|
+
customTrigger: /* @__PURE__ */ jsx98(ChatHeaderIconButton, { "aria-label": "Chat actions", children: /* @__PURE__ */ jsx98(Ellipsis01Icon, { size: 24 }) })
|
|
25192
25253
|
}
|
|
25193
25254
|
),
|
|
25194
|
-
/* @__PURE__ */
|
|
25255
|
+
/* @__PURE__ */ jsx98(ChatHeaderIconButton, { onClick: handleClose, "aria-label": "Close", children: /* @__PURE__ */ jsx98(XmarkIcon, { size: 24 }) })
|
|
25195
25256
|
] })
|
|
25196
25257
|
] })
|
|
25197
25258
|
) : (
|
|
@@ -25199,14 +25260,14 @@ function EmbeddableChatInner({
|
|
|
25199
25260
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
25200
25261
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
25201
25262
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
25202
|
-
/* @__PURE__ */
|
|
25263
|
+
/* @__PURE__ */ jsx98(ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
25203
25264
|
),
|
|
25204
|
-
activeMode === "guide" && hasMingoMode && /* @__PURE__ */
|
|
25205
|
-
/* @__PURE__ */
|
|
25206
|
-
railPresence.mounted && /* @__PURE__ */
|
|
25265
|
+
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ jsx98(GuideModeBanner, { className: "duration-200 animate-in fade-in-0" }),
|
|
25266
|
+
/* @__PURE__ */ jsxs76("div", { className: "flex min-h-0 flex-1 overflow-hidden", children: [
|
|
25267
|
+
railPresence.mounted && /* @__PURE__ */ jsx98(RailSlot, { active: railPresence.active, innerClassName: "flex flex-col min-h-0 bg-ods-card", children: archiveOpen ? (
|
|
25207
25268
|
// Archive list inside the rail (header lives in the split
|
|
25208
25269
|
// header's left cell above). Right chat block stays put.
|
|
25209
|
-
/* @__PURE__ */
|
|
25270
|
+
/* @__PURE__ */ jsx98(
|
|
25210
25271
|
ChatArchivePage,
|
|
25211
25272
|
{
|
|
25212
25273
|
embedded: true,
|
|
@@ -25220,7 +25281,7 @@ function EmbeddableChatInner({
|
|
|
25220
25281
|
}
|
|
25221
25282
|
}
|
|
25222
25283
|
)
|
|
25223
|
-
) : /* @__PURE__ */
|
|
25284
|
+
) : /* @__PURE__ */ jsx98(
|
|
25224
25285
|
MingoHistoryRail,
|
|
25225
25286
|
{
|
|
25226
25287
|
dialogs,
|
|
@@ -25243,11 +25304,11 @@ function EmbeddableChatInner({
|
|
|
25243
25304
|
onRetry: reloadDialogs
|
|
25244
25305
|
}
|
|
25245
25306
|
) }),
|
|
25246
|
-
/* @__PURE__ */
|
|
25307
|
+
/* @__PURE__ */ jsx98("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: stackedListView ? (
|
|
25247
25308
|
// Narrow "Current Chats" list (Figma 341:36190) — the default
|
|
25248
25309
|
// single-column view. No composer here; "Start New Chat" opens
|
|
25249
25310
|
// the compose view.
|
|
25250
|
-
/* @__PURE__ */
|
|
25311
|
+
/* @__PURE__ */ jsx98(
|
|
25251
25312
|
MingoHistoryRail,
|
|
25252
25313
|
{
|
|
25253
25314
|
className: "duration-200 animate-in fade-in-0",
|
|
@@ -25271,12 +25332,12 @@ function EmbeddableChatInner({
|
|
|
25271
25332
|
onRetry: reloadDialogs
|
|
25272
25333
|
}
|
|
25273
25334
|
)
|
|
25274
|
-
) : /* @__PURE__ */
|
|
25275
|
-
/* @__PURE__ */
|
|
25335
|
+
) : /* @__PURE__ */ jsxs76(Fragment34, { children: [
|
|
25336
|
+
/* @__PURE__ */ jsx98("div", { ref: galleryPanelRef, className: "flex min-h-0 flex-1 flex-col p-[var(--spacing-system-m)]", children: /* @__PURE__ */ jsx98(
|
|
25276
25337
|
"div",
|
|
25277
25338
|
{
|
|
25278
25339
|
className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0",
|
|
25279
|
-
children: hasConversation ? /* @__PURE__ */
|
|
25340
|
+
children: hasConversation ? /* @__PURE__ */ jsx98("div", { className: "flex min-h-0 flex-1 flex-col", children: messagesInitialLoading ? (
|
|
25280
25341
|
// Match the real list's `fullWidth` layout so swapping
|
|
25281
25342
|
// skeleton → bubbles doesn't shift the column. The panel
|
|
25282
25343
|
// wrapper above already pads (`p-[var(--spacing-system-m)]`),
|
|
@@ -25287,8 +25348,8 @@ function EmbeddableChatInner({
|
|
|
25287
25348
|
// skeleton overflows a short panel and grows its OWN
|
|
25288
25349
|
// scrollbar — ugly. `fill` top-anchors + clips overflow so
|
|
25289
25350
|
// it reads as "the whole panel is loading" and never scrolls.
|
|
25290
|
-
/* @__PURE__ */
|
|
25291
|
-
) : /* @__PURE__ */
|
|
25351
|
+
/* @__PURE__ */ jsx98(ChatMessageListSkeleton, { fullWidth: true, fill: previewMode, className: "flex-1" })
|
|
25352
|
+
) : /* @__PURE__ */ jsx98(
|
|
25292
25353
|
ChatMessageList,
|
|
25293
25354
|
{
|
|
25294
25355
|
messages,
|
|
@@ -25318,7 +25379,7 @@ function EmbeddableChatInner({
|
|
|
25318
25379
|
centred greeting + capability grid + Guide-chat promo +
|
|
25319
25380
|
quick-action chips. Guide mode keeps the slash-command
|
|
25320
25381
|
onboarding list below. */
|
|
25321
|
-
/* @__PURE__ */
|
|
25382
|
+
/* @__PURE__ */ jsx98(
|
|
25322
25383
|
MingoWelcome,
|
|
25323
25384
|
{
|
|
25324
25385
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
@@ -25333,7 +25394,7 @@ function EmbeddableChatInner({
|
|
|
25333
25394
|
/* Figma node 7532:328214 — Guide-mode empty state: greeting
|
|
25334
25395
|
+ slash-command onboarding list share one scroll region,
|
|
25335
25396
|
with a pinned quick-action chip row above the composer. */
|
|
25336
|
-
/* @__PURE__ */
|
|
25397
|
+
/* @__PURE__ */ jsx98(
|
|
25337
25398
|
GuideWelcome,
|
|
25338
25399
|
{
|
|
25339
25400
|
subtitle: effectiveGreeting ?? void 0,
|
|
@@ -25349,8 +25410,8 @@ function EmbeddableChatInner({
|
|
|
25349
25410
|
onQuickActionHover: (action) => setQuickActionPreview(action.prompt ?? action.label),
|
|
25350
25411
|
onQuickActionHoverEnd: () => setQuickActionPreview(null),
|
|
25351
25412
|
agentSlug: activeAgentSlug,
|
|
25352
|
-
children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */
|
|
25353
|
-
!commandsLoaded && chipCommands.length === 0 && SKELETON_ROW_VARIANTS.map((variant, i) => /* @__PURE__ */
|
|
25413
|
+
children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */ jsxs76("div", { className: "shrink-0 overflow-hidden rounded-md border border-ods-border", children: [
|
|
25414
|
+
!commandsLoaded && chipCommands.length === 0 && SKELETON_ROW_VARIANTS.map((variant, i) => /* @__PURE__ */ jsx98(
|
|
25354
25415
|
MingoOnboardingCardSkeleton,
|
|
25355
25416
|
{
|
|
25356
25417
|
titleWidth: variant.titleWidth,
|
|
@@ -25368,10 +25429,10 @@ function EmbeddableChatInner({
|
|
|
25368
25429
|
label: action.label,
|
|
25369
25430
|
onClick: () => dispatchSlashCommandAction(action.id, cmdId, chatInputRef)
|
|
25370
25431
|
}));
|
|
25371
|
-
return /* @__PURE__ */
|
|
25432
|
+
return /* @__PURE__ */ jsx98(
|
|
25372
25433
|
MingoOnboardingCard,
|
|
25373
25434
|
{
|
|
25374
|
-
icon: /* @__PURE__ */
|
|
25435
|
+
icon: /* @__PURE__ */ jsx98(Icon, { size: 16 }),
|
|
25375
25436
|
title: label,
|
|
25376
25437
|
slashCommand: `/${cmdId}`,
|
|
25377
25438
|
description: cmd.description,
|
|
@@ -25387,7 +25448,7 @@ function EmbeddableChatInner({
|
|
|
25387
25448
|
},
|
|
25388
25449
|
contentViewKey
|
|
25389
25450
|
) }),
|
|
25390
|
-
/* @__PURE__ */
|
|
25451
|
+
/* @__PURE__ */ jsx98(
|
|
25391
25452
|
ChatAttachmentChipStrip,
|
|
25392
25453
|
{
|
|
25393
25454
|
attachments: stagedAttachments,
|
|
@@ -25395,7 +25456,7 @@ function EmbeddableChatInner({
|
|
|
25395
25456
|
disabled: chatLoading
|
|
25396
25457
|
}
|
|
25397
25458
|
),
|
|
25398
|
-
/* @__PURE__ */
|
|
25459
|
+
/* @__PURE__ */ jsx98(
|
|
25399
25460
|
ChatComposer,
|
|
25400
25461
|
{
|
|
25401
25462
|
archived: isViewingArchived,
|
|
@@ -25441,7 +25502,7 @@ function EmbeddableChatInner({
|
|
|
25441
25502
|
}
|
|
25442
25503
|
),
|
|
25443
25504
|
galleryModal,
|
|
25444
|
-
/* @__PURE__ */
|
|
25505
|
+
/* @__PURE__ */ jsx98(
|
|
25445
25506
|
ChatDialogModals,
|
|
25446
25507
|
{
|
|
25447
25508
|
renameTarget,
|
|
@@ -25455,15 +25516,15 @@ function EmbeddableChatInner({
|
|
|
25455
25516
|
onConfirmRestore: handleConfirmRestore
|
|
25456
25517
|
}
|
|
25457
25518
|
),
|
|
25458
|
-
/* @__PURE__ */
|
|
25519
|
+
/* @__PURE__ */ jsx98("div", { ref: setPortalHost, style: { display: "contents" } })
|
|
25459
25520
|
] }) });
|
|
25460
|
-
const panel = shellLess ? /* @__PURE__ */
|
|
25461
|
-
/* @__PURE__ */
|
|
25521
|
+
const panel = shellLess ? /* @__PURE__ */ jsxs76(ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
25522
|
+
/* @__PURE__ */ jsx98(VisuallyHidden, { children: /* @__PURE__ */ jsxs76(DialogPrimitive2.Title, { children: [
|
|
25462
25523
|
sourceLabel,
|
|
25463
25524
|
" AI Assistant"
|
|
25464
25525
|
] }) }),
|
|
25465
25526
|
body
|
|
25466
|
-
] }) : /* @__PURE__ */
|
|
25527
|
+
] }) : /* @__PURE__ */ jsx98(Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ jsx98(ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ jsxs76(
|
|
25467
25528
|
DrawerContent,
|
|
25468
25529
|
{
|
|
25469
25530
|
side: "right",
|
|
@@ -25478,7 +25539,7 @@ function EmbeddableChatInner({
|
|
|
25478
25539
|
"aria-describedby": void 0,
|
|
25479
25540
|
className: "mingo-chat-content w-screen !bg-ods-bg shadow-2xl focus:outline-none focus-visible:outline-none md:w-auto",
|
|
25480
25541
|
children: [
|
|
25481
|
-
/* @__PURE__ */
|
|
25542
|
+
/* @__PURE__ */ jsx98(VisuallyHidden, { children: /* @__PURE__ */ jsxs76(DialogPrimitive2.Title, { children: [
|
|
25482
25543
|
sourceLabel,
|
|
25483
25544
|
" AI Assistant"
|
|
25484
25545
|
] }) }),
|
|
@@ -25486,17 +25547,17 @@ function EmbeddableChatInner({
|
|
|
25486
25547
|
]
|
|
25487
25548
|
}
|
|
25488
25549
|
) }) });
|
|
25489
|
-
return /* @__PURE__ */
|
|
25490
|
-
showInternalTrigger && !shellLess && /* @__PURE__ */
|
|
25550
|
+
return /* @__PURE__ */ jsxs76(Fragment34, { children: [
|
|
25551
|
+
showInternalTrigger && !shellLess && /* @__PURE__ */ jsx98(
|
|
25491
25552
|
"div",
|
|
25492
25553
|
{
|
|
25493
25554
|
"aria-hidden": isOpen,
|
|
25494
25555
|
className: `pointer-events-none sticky bottom-0 z-[9990] h-0 ${isOpen ? "opacity-0" : "opacity-100"}`,
|
|
25495
|
-
children: /* @__PURE__ */
|
|
25556
|
+
children: /* @__PURE__ */ jsx98("div", { className: "absolute bottom-4 right-4 md:bottom-6 md:right-6", children: /* @__PURE__ */ jsx98(
|
|
25496
25557
|
Button,
|
|
25497
25558
|
{
|
|
25498
25559
|
onClick: handleOpen,
|
|
25499
|
-
leftIcon: /* @__PURE__ */
|
|
25560
|
+
leftIcon: /* @__PURE__ */ jsx98(MingoIcon, { className: "h-5 w-5", color: "currentColor" }),
|
|
25500
25561
|
tabIndex: isOpen ? -1 : 0,
|
|
25501
25562
|
className: `pointer-events-auto !w-auto shadow-lg ${isOpen ? "!pointer-events-none" : ""}`,
|
|
25502
25563
|
children: "Ask AI"
|
|
@@ -25747,6 +25808,9 @@ export {
|
|
|
25747
25808
|
handleChatNavClick,
|
|
25748
25809
|
NavLinkAnchorViaRuntime,
|
|
25749
25810
|
SourceActionButton,
|
|
25811
|
+
ADMIN_CONTENT_CARD_GRID_CLASS,
|
|
25812
|
+
AdminContentCardSkeleton,
|
|
25813
|
+
AdminContentCardGrid,
|
|
25750
25814
|
getCaptionsUrl,
|
|
25751
25815
|
rebaseCaptionsUrl,
|
|
25752
25816
|
buildCaptionsUrl,
|
|
@@ -25883,4 +25947,4 @@ export {
|
|
|
25883
25947
|
buildStreamFrames,
|
|
25884
25948
|
EmbeddableChat
|
|
25885
25949
|
};
|
|
25886
|
-
//# sourceMappingURL=chunk-
|
|
25950
|
+
//# sourceMappingURL=chunk-IJYP2DMW.js.map
|