@flamingo-stack/openframe-frontend-core 0.0.618 → 0.0.619-snapshot.20260913210426
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-GXUGYZ6H.js → chunk-43JQ3SJS.js} +483 -455
- package/dist/chunk-43JQ3SJS.js.map +1 -0
- package/dist/{chunk-EJGZIYC7.cjs → chunk-4NKJRJU4.cjs} +6 -6
- package/dist/{chunk-EJGZIYC7.cjs.map → chunk-4NKJRJU4.cjs.map} +1 -1
- package/dist/{chunk-WVRXDGGP.js → chunk-4SH2L3HO.js} +3 -3
- package/dist/{chunk-YCZBCEQO.js → chunk-5AB6QLIQ.js} +4 -4
- package/dist/{chunk-VIBREYUK.cjs → chunk-5G3L6327.cjs} +3 -3
- package/dist/{chunk-VIBREYUK.cjs.map → chunk-5G3L6327.cjs.map} +1 -1
- package/dist/{chunk-BXNSKTEG.cjs → chunk-5NYMTTUB.cjs} +65 -65
- package/dist/{chunk-BXNSKTEG.cjs.map → chunk-5NYMTTUB.cjs.map} +1 -1
- package/dist/{chunk-GBON2OCG.js → chunk-5WGOAJ4B.js} +3 -2
- package/dist/chunk-5WGOAJ4B.js.map +1 -0
- package/dist/{chunk-FCN2HN6Q.js → chunk-7FPWMX26.js} +45 -8
- package/dist/chunk-7FPWMX26.js.map +1 -0
- package/dist/{chunk-GFWKEWEH.js → chunk-BR5PVFWG.js} +4 -4
- package/dist/{chunk-GD7CV2JI.js → chunk-CKH4SLD5.js} +8 -8
- package/dist/{chunk-E2EGTHYA.cjs → chunk-CS7MVDUF.cjs} +77 -49
- package/dist/chunk-CS7MVDUF.cjs.map +1 -0
- package/dist/{chunk-MOC7JLEP.cjs → chunk-CSQZMK3O.cjs} +88 -88
- package/dist/{chunk-MOC7JLEP.cjs.map → chunk-CSQZMK3O.cjs.map} +1 -1
- package/dist/{chunk-UUXLDIK3.js → chunk-DJVN7IW6.js} +3 -3
- package/dist/{chunk-UXOOVP77.cjs → chunk-DV7IBKJI.cjs} +4 -4
- package/dist/{chunk-UXOOVP77.cjs.map → chunk-DV7IBKJI.cjs.map} +1 -1
- package/dist/{chunk-G7NEMLNW.cjs → chunk-ECOJUPXO.cjs} +12 -12
- package/dist/{chunk-G7NEMLNW.cjs.map → chunk-ECOJUPXO.cjs.map} +1 -1
- package/dist/{chunk-N6CULJYR.cjs → chunk-EG4IKWY4.cjs} +3 -2
- package/dist/{chunk-N6CULJYR.cjs.map → chunk-EG4IKWY4.cjs.map} +1 -1
- package/dist/{chunk-U6B3MM4U.cjs → chunk-FCMCCPQI.cjs} +20 -20
- package/dist/{chunk-U6B3MM4U.cjs.map → chunk-FCMCCPQI.cjs.map} +1 -1
- package/dist/{chunk-IW746HJ7.js → chunk-FHR2JU2J.js} +2 -2
- package/dist/{chunk-VRN5YYD3.js → chunk-G6LYVK64.js} +3 -3
- package/dist/{chunk-2DTZXXY3.js → chunk-GMBETTTE.js} +5 -5
- package/dist/{chunk-NUU5ZEEG.js → chunk-GZFVTFMU.js} +4 -4
- package/dist/{chunk-7ZEQMFP3.cjs → chunk-HC6FZJMM.cjs} +58 -38
- package/dist/chunk-HC6FZJMM.cjs.map +1 -0
- package/dist/{chunk-IDMEC4ZK.cjs → chunk-IVFU4RFK.cjs} +22 -22
- package/dist/{chunk-IDMEC4ZK.cjs.map → chunk-IVFU4RFK.cjs.map} +1 -1
- package/dist/{chunk-5P74E24M.js → chunk-KLAL4FTU.js} +5 -5
- package/dist/{chunk-UKFBPJBK.cjs → chunk-KMWB52KV.cjs} +29 -29
- package/dist/{chunk-UKFBPJBK.cjs.map → chunk-KMWB52KV.cjs.map} +1 -1
- package/dist/{chunk-ANMD7SM4.js → chunk-LNF5W3QJ.js} +3 -3
- package/dist/{chunk-XUNFDRMP.js → chunk-POSO6GYC.js} +4 -4
- package/dist/{chunk-BGDYSUA2.cjs → chunk-PTANIWHA.cjs} +11 -11
- package/dist/{chunk-BGDYSUA2.cjs.map → chunk-PTANIWHA.cjs.map} +1 -1
- package/dist/{chunk-RDEFB354.cjs → chunk-RBV63HZO.cjs} +6 -6
- package/dist/{chunk-RDEFB354.cjs.map → chunk-RBV63HZO.cjs.map} +1 -1
- package/dist/{chunk-EXEXX34Q.cjs → chunk-RSGFPFSM.cjs} +28 -28
- package/dist/{chunk-EXEXX34Q.cjs.map → chunk-RSGFPFSM.cjs.map} +1 -1
- package/dist/{chunk-PIJK3FV6.cjs → chunk-SGAMQ4G7.cjs} +3 -3
- package/dist/{chunk-PIJK3FV6.cjs.map → chunk-SGAMQ4G7.cjs.map} +1 -1
- package/dist/{chunk-3FTNQDLP.cjs → chunk-T5ZKUSVJ.cjs} +5 -5
- package/dist/{chunk-3FTNQDLP.cjs.map → chunk-T5ZKUSVJ.cjs.map} +1 -1
- package/dist/{chunk-J25M43YI.js → chunk-T7FTSJM2.js} +6 -6
- package/dist/{chunk-6XJS3WU7.js → chunk-TMGTVVE2.js} +24 -4
- package/dist/chunk-TMGTVVE2.js.map +1 -0
- package/dist/{chunk-RROIA6WY.js → chunk-UY4EFV3P.js} +2 -2
- package/dist/{chunk-TSCIVH7T.js → chunk-VBIFSOPQ.js} +2 -2
- package/dist/{chunk-ROQTWRV7.cjs → chunk-VRN27OMD.cjs} +406 -369
- package/dist/chunk-VRN27OMD.cjs.map +1 -0
- package/dist/{chunk-IPHA3AQ6.js → chunk-XGVWMJQD.js} +8 -8
- package/dist/{chunk-K26VN65M.cjs → chunk-YKHVTESH.cjs} +15 -15
- package/dist/{chunk-K26VN65M.cjs.map → chunk-YKHVTESH.cjs.map} +1 -1
- package/dist/{chunk-E7VXPU3R.cjs → chunk-Z5OZCZYH.cjs} +33 -33
- package/dist/{chunk-E7VXPU3R.cjs.map → chunk-Z5OZCZYH.cjs.map} +1 -1
- package/dist/{chunk-CWMKY2UJ.js → chunk-ZBXPNBKB.js} +3 -3
- package/dist/{chunk-CM6DNLK7.cjs → chunk-ZLILFOPN.cjs} +200 -200
- package/dist/{chunk-CM6DNLK7.cjs.map → chunk-ZLILFOPN.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +11 -11
- package/dist/components/case-studies/index.js +5 -5
- package/dist/components/chat/entity-cards/ai-prompt-card.d.ts +35 -0
- package/dist/components/chat/entity-cards/ai-prompt-card.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts +6 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/index.d.ts +3 -1
- 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/chat/utils/icon-registry.d.ts.map +1 -1
- package/dist/components/comment-card.d.ts +26 -24
- package/dist/components/comment-card.d.ts.map +1 -1
- package/dist/components/comment-thread.d.ts +58 -0
- package/dist/components/comment-thread.d.ts.map +1 -0
- package/dist/components/contact/index.cjs +6 -6
- package/dist/components/contact/index.js +5 -5
- package/dist/components/docs/index.cjs +9 -9
- package/dist/components/docs/index.js +8 -8
- package/dist/components/embeds/index.cjs +6 -6
- package/dist/components/embeds/index.js +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/faq/index.js +5 -5
- package/dist/components/features/index.cjs +5 -5
- package/dist/components/features/index.js +4 -4
- package/dist/components/help-center-pages/index.cjs +27 -27
- package/dist/components/help-center-pages/index.js +18 -18
- package/dist/components/index.cjs +223 -77
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +340 -194
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +40 -40
- package/dist/components/meeting-scheduler/index.js +6 -6
- package/dist/components/navigation/index.cjs +8 -8
- package/dist/components/navigation/index.js +7 -7
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.js +7 -7
- package/dist/components/related-content/card-registry.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +4 -4
- package/dist/components/related-content/index.js +3 -3
- package/dist/components/tickets/index.cjs +10 -10
- package/dist/components/tickets/index.js +9 -9
- package/dist/components/ui/index.cjs +11 -5
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +10 -4
- package/dist/index.cjs +15 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -8
- package/dist/index.js.map +1 -1
- package/dist/types/marketing.d.ts +1 -1
- package/dist/types/marketing.d.ts.map +1 -1
- package/dist/types/video-processing.d.ts +1 -1
- package/dist/types/video-processing.d.ts.map +1 -1
- package/dist/utils/content-ref-groups.d.ts.map +1 -1
- package/dist/utils/index.cjs +13 -4
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +14 -5
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/list-url.d.ts.map +1 -1
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/chat-card-label.test.tsx +24 -0
- package/src/components/chat/entity-cards/ai-prompt-card.tsx +62 -0
- package/src/components/chat/entity-cards/dispatch.tsx +43 -5
- package/src/components/chat/entity-cards/index.ts +3 -0
- package/src/components/chat/utils/icon-registry.ts +3 -0
- package/src/components/comment-card.tsx +27 -24
- package/src/components/comment-thread.tsx +212 -0
- package/src/components/index.ts +1 -0
- package/src/components/related-content/__tests__/card-registry.test.tsx +7 -0
- package/src/components/related-content/card-registry.tsx +20 -1
- package/src/types/marketing.ts +1 -0
- package/src/types/video-processing.ts +2 -1
- package/src/utils/__tests__/list-url.test.ts +2 -0
- package/src/utils/content-ref-groups.ts +1 -0
- package/src/utils/list-url.ts +2 -0
- package/src/utils/source-icons.ts +6 -0
- package/dist/chunk-6XJS3WU7.js.map +0 -1
- package/dist/chunk-7ZEQMFP3.cjs.map +0 -1
- package/dist/chunk-E2EGTHYA.cjs.map +0 -1
- package/dist/chunk-FCN2HN6Q.js.map +0 -1
- package/dist/chunk-GBON2OCG.js.map +0 -1
- package/dist/chunk-GXUGYZ6H.js.map +0 -1
- package/dist/chunk-ROQTWRV7.cjs.map +0 -1
- /package/dist/{chunk-WVRXDGGP.js.map → chunk-4SH2L3HO.js.map} +0 -0
- /package/dist/{chunk-YCZBCEQO.js.map → chunk-5AB6QLIQ.js.map} +0 -0
- /package/dist/{chunk-GFWKEWEH.js.map → chunk-BR5PVFWG.js.map} +0 -0
- /package/dist/{chunk-GD7CV2JI.js.map → chunk-CKH4SLD5.js.map} +0 -0
- /package/dist/{chunk-UUXLDIK3.js.map → chunk-DJVN7IW6.js.map} +0 -0
- /package/dist/{chunk-IW746HJ7.js.map → chunk-FHR2JU2J.js.map} +0 -0
- /package/dist/{chunk-VRN5YYD3.js.map → chunk-G6LYVK64.js.map} +0 -0
- /package/dist/{chunk-2DTZXXY3.js.map → chunk-GMBETTTE.js.map} +0 -0
- /package/dist/{chunk-NUU5ZEEG.js.map → chunk-GZFVTFMU.js.map} +0 -0
- /package/dist/{chunk-5P74E24M.js.map → chunk-KLAL4FTU.js.map} +0 -0
- /package/dist/{chunk-ANMD7SM4.js.map → chunk-LNF5W3QJ.js.map} +0 -0
- /package/dist/{chunk-XUNFDRMP.js.map → chunk-POSO6GYC.js.map} +0 -0
- /package/dist/{chunk-J25M43YI.js.map → chunk-T7FTSJM2.js.map} +0 -0
- /package/dist/{chunk-RROIA6WY.js.map → chunk-UY4EFV3P.js.map} +0 -0
- /package/dist/{chunk-TSCIVH7T.js.map → chunk-VBIFSOPQ.js.map} +0 -0
- /package/dist/{chunk-IPHA3AQ6.js.map → chunk-XGVWMJQD.js.map} +0 -0
- /package/dist/{chunk-CWMKY2UJ.js.map → chunk-ZBXPNBKB.js.map} +0 -0
|
@@ -1498,6 +1498,30 @@ function HowIWorkCard({ entry, placeholderUrl, actions, anchorProps, className }
|
|
|
1498
1498
|
}
|
|
1499
1499
|
var HowIWorkCardSkeleton = EmployeeEntryCardSkeleton;
|
|
1500
1500
|
|
|
1501
|
+
// src/components/chat/entity-cards/ai-prompt-card.tsx
|
|
1502
|
+
import { Fragment as Fragment4, jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1503
|
+
function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }) {
|
|
1504
|
+
const department = entry.department?.name?.trim();
|
|
1505
|
+
const steps = typeof entry.step_count === "number" ? entry.step_count : 0;
|
|
1506
|
+
return /* @__PURE__ */ jsx17(
|
|
1507
|
+
EmployeeEntryCard,
|
|
1508
|
+
{
|
|
1509
|
+
entry,
|
|
1510
|
+
dateLabel: entry.published_at ? formatDateUTC(entry.published_at, { fallback: "" }) || null : null,
|
|
1511
|
+
extraBadges: /* @__PURE__ */ jsxs11(Fragment4, { children: [
|
|
1512
|
+
department ? /* @__PURE__ */ jsx17(EmployeeEntryBadge, { children: department }) : null,
|
|
1513
|
+
steps > 1 ? /* @__PURE__ */ jsx17(EmployeeEntryBadge, { children: `${steps} steps` }) : null
|
|
1514
|
+
] }),
|
|
1515
|
+
untitledLabel: "Untitled prompt",
|
|
1516
|
+
placeholderUrl,
|
|
1517
|
+
actions,
|
|
1518
|
+
anchorProps,
|
|
1519
|
+
className
|
|
1520
|
+
}
|
|
1521
|
+
);
|
|
1522
|
+
}
|
|
1523
|
+
var AiPromptCardSkeleton = EmployeeEntryCardSkeleton;
|
|
1524
|
+
|
|
1501
1525
|
// src/components/features/video-bites-shared.ts
|
|
1502
1526
|
var DEFAULT_VIDEO_BITES_TITLE = "Key Moments";
|
|
1503
1527
|
function toStripProfile(p, fallbackSubtitle) {
|
|
@@ -1523,7 +1547,7 @@ function sortBitesByFeaturedAtDesc(a, b) {
|
|
|
1523
1547
|
|
|
1524
1548
|
// src/components/shared/product-release/product-release-card.tsx
|
|
1525
1549
|
import { AlertTriangle, Eye, Package, Play, Sparkles, TrendingUp, Wrench } from "lucide-react";
|
|
1526
|
-
import { Fragment as
|
|
1550
|
+
import { Fragment as Fragment5, jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1527
1551
|
function ProductReleaseCard({
|
|
1528
1552
|
title,
|
|
1529
1553
|
summary,
|
|
@@ -1574,10 +1598,10 @@ function ProductReleaseCard({
|
|
|
1574
1598
|
"no-underline",
|
|
1575
1599
|
className
|
|
1576
1600
|
);
|
|
1577
|
-
const innerLayout = /* @__PURE__ */
|
|
1578
|
-
/* @__PURE__ */
|
|
1579
|
-
/* @__PURE__ */
|
|
1580
|
-
coverImage ? /* @__PURE__ */
|
|
1601
|
+
const innerLayout = /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
1602
|
+
/* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-4 md:flex-row md:gap-6", children: [
|
|
1603
|
+
/* @__PURE__ */ jsx18("div", { className: "w-full flex-shrink-0 md:w-[256px]", children: /* @__PURE__ */ jsxs12("div", { className: "relative aspect-[1200/630] w-full overflow-hidden rounded-lg bg-ods-bg", children: [
|
|
1604
|
+
coverImage ? /* @__PURE__ */ jsx18(
|
|
1581
1605
|
next_image_default,
|
|
1582
1606
|
{
|
|
1583
1607
|
src: coverImage,
|
|
@@ -1587,44 +1611,44 @@ function ProductReleaseCard({
|
|
|
1587
1611
|
className: "object-cover",
|
|
1588
1612
|
unoptimized: true
|
|
1589
1613
|
}
|
|
1590
|
-
) : /* @__PURE__ */
|
|
1591
|
-
hasVideoCover && coverImage && /* @__PURE__ */
|
|
1614
|
+
) : /* @__PURE__ */ jsx18("div", { className: "absolute inset-0 flex items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ jsx18(Package, { className: "h-8 w-8" }) }),
|
|
1615
|
+
hasVideoCover && coverImage && /* @__PURE__ */ jsx18("span", { className: "absolute inset-0 flex items-center justify-center bg-black/30", children: /* @__PURE__ */ jsx18(Play, { className: "h-10 w-10 text-ods-text-on-dark", fill: "white" }) })
|
|
1592
1616
|
] }) }),
|
|
1593
|
-
/* @__PURE__ */
|
|
1594
|
-
/* @__PURE__ */
|
|
1617
|
+
/* @__PURE__ */ jsxs12("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
1618
|
+
/* @__PURE__ */ jsx18("div", { className: "mb-3 flex items-center gap-3", children: /* @__PURE__ */ jsxs12("span", { className: "truncate font-semibold text-ods-text-primary text-code", children: [
|
|
1595
1619
|
"v",
|
|
1596
1620
|
version
|
|
1597
1621
|
] }) }),
|
|
1598
|
-
/* @__PURE__ */
|
|
1599
|
-
/* @__PURE__ */
|
|
1622
|
+
/* @__PURE__ */ jsx18("div", { className: "mb-3 flex min-h-[60px] items-start md:min-h-[72px]", children: /* @__PURE__ */ jsx18("h3", { className: "line-clamp-2 font-['Azeret_Mono'] text-xl font-semibold leading-tight text-ods-text-primary md:text-2xl", children: title }) }),
|
|
1623
|
+
/* @__PURE__ */ jsx18("div", { className: "min-h-[68px] md:min-h-[78px]", children: /* @__PURE__ */ jsx18("p", { className: "line-clamp-3 font-['DM_Sans'] text-sm leading-relaxed text-ods-text-secondary md:text-base", children: summary ?? "" }) })
|
|
1600
1624
|
] })
|
|
1601
1625
|
] }),
|
|
1602
|
-
/* @__PURE__ */
|
|
1603
|
-
changelogCounts.features > 0 && /* @__PURE__ */
|
|
1604
|
-
/* @__PURE__ */
|
|
1626
|
+
/* @__PURE__ */ jsx18("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-1.5 border-t border-ods-border pt-3 text-ods-text-secondary text-h6", children: totalChangelog > 0 && changelogCounts ? /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
1627
|
+
changelogCounts.features > 0 && /* @__PURE__ */ jsxs12("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
1628
|
+
/* @__PURE__ */ jsx18(Sparkles, { className: "h-3.5 w-3.5" }),
|
|
1605
1629
|
changelogCounts.features,
|
|
1606
1630
|
" ",
|
|
1607
1631
|
changelogCounts.features === 1 ? "feature" : "features"
|
|
1608
1632
|
] }),
|
|
1609
|
-
changelogCounts.fixes > 0 && /* @__PURE__ */
|
|
1610
|
-
/* @__PURE__ */
|
|
1633
|
+
changelogCounts.fixes > 0 && /* @__PURE__ */ jsxs12("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
1634
|
+
/* @__PURE__ */ jsx18(Wrench, { className: "h-3.5 w-3.5" }),
|
|
1611
1635
|
changelogCounts.fixes,
|
|
1612
1636
|
" ",
|
|
1613
1637
|
changelogCounts.fixes === 1 ? "fix" : "fixes"
|
|
1614
1638
|
] }),
|
|
1615
|
-
changelogCounts.improvements > 0 && /* @__PURE__ */
|
|
1616
|
-
/* @__PURE__ */
|
|
1639
|
+
changelogCounts.improvements > 0 && /* @__PURE__ */ jsxs12("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
1640
|
+
/* @__PURE__ */ jsx18(TrendingUp, { className: "h-3.5 w-3.5" }),
|
|
1617
1641
|
changelogCounts.improvements,
|
|
1618
1642
|
" ",
|
|
1619
1643
|
changelogCounts.improvements === 1 ? "improvement" : "improvements"
|
|
1620
1644
|
] }),
|
|
1621
|
-
changelogCounts.breaking > 0 && /* @__PURE__ */
|
|
1622
|
-
/* @__PURE__ */
|
|
1645
|
+
changelogCounts.breaking > 0 && /* @__PURE__ */ jsxs12("span", { className: "inline-flex items-center gap-1.5 text-ods-warning", children: [
|
|
1646
|
+
/* @__PURE__ */ jsx18(AlertTriangle, { className: "h-3.5 w-3.5" }),
|
|
1623
1647
|
changelogCounts.breaking,
|
|
1624
1648
|
" breaking"
|
|
1625
1649
|
] })
|
|
1626
|
-
] }) : /* @__PURE__ */
|
|
1627
|
-
/* @__PURE__ */
|
|
1650
|
+
] }) : /* @__PURE__ */ jsx18("span", { className: "text-ods-text-secondary", children: "No changelog entries yet" }) }),
|
|
1651
|
+
/* @__PURE__ */ jsxs12(
|
|
1628
1652
|
"div",
|
|
1629
1653
|
{
|
|
1630
1654
|
className: cn(
|
|
@@ -1633,8 +1657,8 @@ function ProductReleaseCard({
|
|
|
1633
1657
|
"w-full overflow-hidden rounded-md border border-ods-border"
|
|
1634
1658
|
),
|
|
1635
1659
|
children: [
|
|
1636
|
-
valueCells.map((cell, i) => /* @__PURE__ */
|
|
1637
|
-
cell.colorScheme ? /* @__PURE__ */
|
|
1660
|
+
valueCells.map((cell, i) => /* @__PURE__ */ jsx18("div", { className: cn("flex flex-col gap-3 bg-ods-card p-4", dividerClass), children: /* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-0", children: [
|
|
1661
|
+
cell.colorScheme ? /* @__PURE__ */ jsx18(
|
|
1638
1662
|
StatusBadge,
|
|
1639
1663
|
{
|
|
1640
1664
|
text: cell.value,
|
|
@@ -1643,7 +1667,7 @@ function ProductReleaseCard({
|
|
|
1643
1667
|
singleLine: true,
|
|
1644
1668
|
className: "self-start"
|
|
1645
1669
|
}
|
|
1646
|
-
) : /* @__PURE__ */
|
|
1670
|
+
) : /* @__PURE__ */ jsx18(
|
|
1647
1671
|
"p",
|
|
1648
1672
|
{
|
|
1649
1673
|
className: cn(
|
|
@@ -1655,10 +1679,10 @@ function ProductReleaseCard({
|
|
|
1655
1679
|
children: cell.uppercase ? cell.value.toLocaleUpperCase() : cell.value
|
|
1656
1680
|
}
|
|
1657
1681
|
),
|
|
1658
|
-
/* @__PURE__ */
|
|
1682
|
+
/* @__PURE__ */ jsx18("p", { className: "text-ods-text-secondary text-h6", children: cell.label })
|
|
1659
1683
|
] }) }, `${cell.label}-${i}`)),
|
|
1660
|
-
/* @__PURE__ */
|
|
1661
|
-
/* @__PURE__ */
|
|
1684
|
+
/* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-3 bg-ods-card p-4", children: [
|
|
1685
|
+
/* @__PURE__ */ jsx18(
|
|
1662
1686
|
SquareAvatar,
|
|
1663
1687
|
{
|
|
1664
1688
|
src: effectiveAuthor.avatar_url ?? void 0,
|
|
@@ -1668,29 +1692,29 @@ function ProductReleaseCard({
|
|
|
1668
1692
|
variant: "round"
|
|
1669
1693
|
}
|
|
1670
1694
|
),
|
|
1671
|
-
/* @__PURE__ */
|
|
1672
|
-
/* @__PURE__ */
|
|
1673
|
-
/* @__PURE__ */
|
|
1695
|
+
/* @__PURE__ */ jsxs12("div", { className: "flex min-w-0 flex-1 flex-col gap-0", children: [
|
|
1696
|
+
/* @__PURE__ */ jsx18("p", { className: "truncate tracking-[-0.36px] text-ods-text-primary text-h3", children: effectiveAuthor.full_name }),
|
|
1697
|
+
/* @__PURE__ */ jsx18("p", { className: "text-ods-text-secondary text-h6", children: effectiveAuthor.job_title || "Author" })
|
|
1674
1698
|
] })
|
|
1675
1699
|
] })
|
|
1676
1700
|
]
|
|
1677
1701
|
}
|
|
1678
1702
|
),
|
|
1679
|
-
typeof viewCount === "number" && viewCount > 0 && /* @__PURE__ */
|
|
1680
|
-
/* @__PURE__ */
|
|
1681
|
-
/* @__PURE__ */
|
|
1703
|
+
typeof viewCount === "number" && viewCount > 0 && /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-1.5 text-ods-text-secondary text-h6", children: [
|
|
1704
|
+
/* @__PURE__ */ jsx18(Eye, { className: "h-3.5 w-3.5" }),
|
|
1705
|
+
/* @__PURE__ */ jsxs12("span", { children: [
|
|
1682
1706
|
viewCount.toLocaleString(),
|
|
1683
1707
|
" views"
|
|
1684
1708
|
] })
|
|
1685
1709
|
] })
|
|
1686
1710
|
] });
|
|
1687
1711
|
if (anchorProps) {
|
|
1688
|
-
return /* @__PURE__ */
|
|
1712
|
+
return /* @__PURE__ */ jsx18("a", { ...anchorProps, className: frameClass, "aria-label": `Open ${title}`, children: innerLayout });
|
|
1689
1713
|
}
|
|
1690
1714
|
if (onClick) {
|
|
1691
|
-
return /* @__PURE__ */
|
|
1715
|
+
return /* @__PURE__ */ jsx18(InteractiveCard, { clickable: true, onClick, className: frameClass, children: innerLayout });
|
|
1692
1716
|
}
|
|
1693
|
-
return /* @__PURE__ */
|
|
1717
|
+
return /* @__PURE__ */ jsx18("div", { className: cn(frameClass.replace("hover:border-ods-accent", "").replace("hover:translate-y-[-2px]", "")), children: innerLayout });
|
|
1694
1718
|
}
|
|
1695
1719
|
if (size === "sm") {
|
|
1696
1720
|
const handleKey = (e) => {
|
|
@@ -1717,24 +1741,24 @@ function ProductReleaseCard({
|
|
|
1717
1741
|
isInteractive ? "cursor-pointer transition-colors hover:border-ods-text-secondary/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent focus-visible:ring-offset-1 focus-visible:ring-offset-ods-card" : "cursor-default",
|
|
1718
1742
|
className
|
|
1719
1743
|
);
|
|
1720
|
-
const innerChildren = /* @__PURE__ */
|
|
1721
|
-
/* @__PURE__ */
|
|
1722
|
-
coverImage ? /* @__PURE__ */
|
|
1723
|
-
hasVideoCover && coverImage && /* @__PURE__ */
|
|
1744
|
+
const innerChildren = /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
1745
|
+
/* @__PURE__ */ jsxs12("span", { className: "relative flex aspect-square h-14 w-14 shrink-0 items-center justify-center self-start overflow-hidden rounded-md bg-ods-bg text-ods-accent", children: [
|
|
1746
|
+
coverImage ? /* @__PURE__ */ jsx18(next_image_default, { src: coverImage, alt: title, fill: true, sizes: "56px", className: "object-contain", unoptimized: true }) : /* @__PURE__ */ jsx18(Package, { className: "h-5 w-5" }),
|
|
1747
|
+
hasVideoCover && coverImage && /* @__PURE__ */ jsx18("span", { className: "absolute inset-0 flex items-center justify-center bg-black/30", children: /* @__PURE__ */ jsx18(Play, { className: "h-4 w-4 text-ods-text-on-dark", fill: "white" }) })
|
|
1724
1748
|
] }),
|
|
1725
|
-
/* @__PURE__ */
|
|
1726
|
-
/* @__PURE__ */
|
|
1727
|
-
/* @__PURE__ */
|
|
1728
|
-
version ? /* @__PURE__ */
|
|
1749
|
+
/* @__PURE__ */ jsxs12("span", { className: "flex min-h-14 min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
1750
|
+
/* @__PURE__ */ jsxs12("span", { className: "flex h-5 min-w-0 items-center gap-2", children: [
|
|
1751
|
+
/* @__PURE__ */ jsx18("span", { className: "min-w-0 truncate font-semibold text-ods-text-primary text-h6", title, children: title }),
|
|
1752
|
+
version ? /* @__PURE__ */ jsx18("span", { className: "shrink-0 rounded bg-ods-accent/10 px-1.5 py-0.5 text-ods-accent text-code", children: version }) : null
|
|
1729
1753
|
] }),
|
|
1730
|
-
/* @__PURE__ */
|
|
1731
|
-
/* @__PURE__ */
|
|
1754
|
+
/* @__PURE__ */ jsx18("span", { className: "flex h-4 min-w-0 items-center", children: /* @__PURE__ */ jsx18("span", { className: "truncate text-ods-text-secondary text-h6", children: formattedDate || "Product release" }) }),
|
|
1755
|
+
/* @__PURE__ */ jsx18("span", { className: "flex h-4 min-w-0 items-center", children: /* @__PURE__ */ jsx18("span", { className: "truncate text-ods-text-secondary/80 text-h6", title: summary || void 0, children: summary || "\xA0" }) })
|
|
1732
1756
|
] })
|
|
1733
1757
|
] });
|
|
1734
1758
|
if (anchorProps) {
|
|
1735
|
-
return /* @__PURE__ */
|
|
1759
|
+
return /* @__PURE__ */ jsx18("a", { ...anchorProps, className: outerClassName, children: innerChildren });
|
|
1736
1760
|
}
|
|
1737
|
-
return /* @__PURE__ */
|
|
1761
|
+
return /* @__PURE__ */ jsx18(
|
|
1738
1762
|
"span",
|
|
1739
1763
|
{
|
|
1740
1764
|
role: onClick ? "button" : void 0,
|
|
@@ -1750,10 +1774,10 @@ function ProductReleaseCard({
|
|
|
1750
1774
|
}
|
|
1751
1775
|
|
|
1752
1776
|
// src/components/shared/product-release/product-release-card-skeleton.tsx
|
|
1753
|
-
import { jsx as
|
|
1777
|
+
import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1754
1778
|
function ProductReleaseCardSkeleton({ className, size = "lg" }) {
|
|
1755
1779
|
if (size === "lg") {
|
|
1756
|
-
return /* @__PURE__ */
|
|
1780
|
+
return /* @__PURE__ */ jsxs13(
|
|
1757
1781
|
"div",
|
|
1758
1782
|
{
|
|
1759
1783
|
className: cn(
|
|
@@ -1763,39 +1787,39 @@ function ProductReleaseCardSkeleton({ className, size = "lg" }) {
|
|
|
1763
1787
|
className
|
|
1764
1788
|
),
|
|
1765
1789
|
children: [
|
|
1766
|
-
/* @__PURE__ */
|
|
1767
|
-
/* @__PURE__ */
|
|
1768
|
-
/* @__PURE__ */
|
|
1769
|
-
/* @__PURE__ */
|
|
1770
|
-
/* @__PURE__ */
|
|
1771
|
-
/* @__PURE__ */
|
|
1772
|
-
/* @__PURE__ */
|
|
1790
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-4 md:flex-row md:gap-6", children: [
|
|
1791
|
+
/* @__PURE__ */ jsx19("div", { className: "aspect-[1200/630] w-full flex-shrink-0 rounded-lg bg-ods-border md:w-[256px]" }),
|
|
1792
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
1793
|
+
/* @__PURE__ */ jsx19("div", { className: "mb-3 flex items-center gap-3", children: /* @__PURE__ */ jsx19("div", { className: "h-7 w-20 rounded bg-ods-border" }) }),
|
|
1794
|
+
/* @__PURE__ */ jsxs13("div", { className: "mb-3 flex min-h-[60px] flex-col justify-start gap-1.5 md:min-h-[72px]", children: [
|
|
1795
|
+
/* @__PURE__ */ jsx19("div", { className: "h-[25px] w-3/4 rounded bg-ods-border md:h-[30px]" }),
|
|
1796
|
+
/* @__PURE__ */ jsx19("div", { className: "h-[25px] w-1/2 rounded bg-ods-border md:h-[30px]" })
|
|
1773
1797
|
] }),
|
|
1774
|
-
/* @__PURE__ */
|
|
1775
|
-
/* @__PURE__ */
|
|
1776
|
-
/* @__PURE__ */
|
|
1777
|
-
/* @__PURE__ */
|
|
1798
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex min-h-[68px] flex-col justify-start gap-2 md:min-h-[78px]", children: [
|
|
1799
|
+
/* @__PURE__ */ jsx19("div", { className: "h-3 w-full rounded bg-ods-border/70" }),
|
|
1800
|
+
/* @__PURE__ */ jsx19("div", { className: "h-3 w-11/12 rounded bg-ods-border/70" }),
|
|
1801
|
+
/* @__PURE__ */ jsx19("div", { className: "h-3 w-5/6 rounded bg-ods-border/70" })
|
|
1778
1802
|
] })
|
|
1779
1803
|
] })
|
|
1780
1804
|
] }),
|
|
1781
|
-
/* @__PURE__ */
|
|
1782
|
-
/* @__PURE__ */
|
|
1783
|
-
[0, 1, 2].map((i) => /* @__PURE__ */
|
|
1805
|
+
/* @__PURE__ */ jsx19("div", { className: "border-t border-ods-border pt-3", children: /* @__PURE__ */ jsx19("div", { className: "h-5 w-2/3 rounded bg-ods-border/70" }) }),
|
|
1806
|
+
/* @__PURE__ */ jsxs13("div", { className: "grid w-full grid-cols-1 overflow-hidden rounded-md border border-ods-border md:grid-cols-4", children: [
|
|
1807
|
+
[0, 1, 2].map((i) => /* @__PURE__ */ jsx19(
|
|
1784
1808
|
"div",
|
|
1785
1809
|
{
|
|
1786
1810
|
className: "flex flex-col gap-3 border-b border-ods-border bg-ods-card p-4 md:border-b-0 md:border-r",
|
|
1787
|
-
children: /* @__PURE__ */
|
|
1788
|
-
/* @__PURE__ */
|
|
1789
|
-
/* @__PURE__ */
|
|
1811
|
+
children: /* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-2", children: [
|
|
1812
|
+
/* @__PURE__ */ jsx19("div", { className: "h-7 w-24 rounded bg-ods-bg" }),
|
|
1813
|
+
/* @__PURE__ */ jsx19("div", { className: "h-4 w-16 rounded bg-ods-bg/60" })
|
|
1790
1814
|
] })
|
|
1791
1815
|
},
|
|
1792
1816
|
`cell-${i}`
|
|
1793
1817
|
)),
|
|
1794
|
-
/* @__PURE__ */
|
|
1795
|
-
/* @__PURE__ */
|
|
1796
|
-
/* @__PURE__ */
|
|
1797
|
-
/* @__PURE__ */
|
|
1798
|
-
/* @__PURE__ */
|
|
1818
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-3 bg-ods-card p-4", children: [
|
|
1819
|
+
/* @__PURE__ */ jsx19("div", { className: "h-10 w-10 shrink-0 rounded-full bg-ods-bg" }),
|
|
1820
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
1821
|
+
/* @__PURE__ */ jsx19("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
1822
|
+
/* @__PURE__ */ jsx19("div", { className: "h-4 w-1/2 rounded bg-ods-bg/60" })
|
|
1799
1823
|
] })
|
|
1800
1824
|
] })
|
|
1801
1825
|
] })
|
|
@@ -1804,7 +1828,7 @@ function ProductReleaseCardSkeleton({ className, size = "lg" }) {
|
|
|
1804
1828
|
);
|
|
1805
1829
|
}
|
|
1806
1830
|
if (size === "sm") {
|
|
1807
|
-
return /* @__PURE__ */
|
|
1831
|
+
return /* @__PURE__ */ jsxs13(
|
|
1808
1832
|
"span",
|
|
1809
1833
|
{
|
|
1810
1834
|
className: cn(
|
|
@@ -1813,14 +1837,14 @@ function ProductReleaseCardSkeleton({ className, size = "lg" }) {
|
|
|
1813
1837
|
className
|
|
1814
1838
|
),
|
|
1815
1839
|
children: [
|
|
1816
|
-
/* @__PURE__ */
|
|
1817
|
-
/* @__PURE__ */
|
|
1818
|
-
/* @__PURE__ */
|
|
1819
|
-
/* @__PURE__ */
|
|
1820
|
-
/* @__PURE__ */
|
|
1840
|
+
/* @__PURE__ */ jsx19("span", { className: "block aspect-square h-14 w-14 shrink-0 self-start rounded-md bg-ods-bg" }),
|
|
1841
|
+
/* @__PURE__ */ jsxs13("span", { className: "flex min-h-14 min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
1842
|
+
/* @__PURE__ */ jsxs13("span", { className: "flex h-5 min-w-0 items-center gap-2", children: [
|
|
1843
|
+
/* @__PURE__ */ jsx19("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }),
|
|
1844
|
+
/* @__PURE__ */ jsx19("span", { className: "h-4 w-12 shrink-0 rounded bg-ods-bg/70" })
|
|
1821
1845
|
] }),
|
|
1822
|
-
/* @__PURE__ */
|
|
1823
|
-
/* @__PURE__ */
|
|
1846
|
+
/* @__PURE__ */ jsx19("span", { className: "flex h-4 min-w-0 items-center", children: /* @__PURE__ */ jsx19("span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) }),
|
|
1847
|
+
/* @__PURE__ */ jsx19("span", { className: "flex h-4 min-w-0 items-center", children: /* @__PURE__ */ jsx19("span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
1824
1848
|
] })
|
|
1825
1849
|
]
|
|
1826
1850
|
}
|
|
@@ -2007,28 +2031,28 @@ function useEntityCardPlaceholder({
|
|
|
2007
2031
|
}
|
|
2008
2032
|
|
|
2009
2033
|
// src/components/chat/entity-cards/blog-card.tsx
|
|
2010
|
-
import { Fragment as
|
|
2034
|
+
import { Fragment as Fragment6, jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2011
2035
|
function BlogCardSkeleton({ size = "default" }) {
|
|
2012
2036
|
if (size === "sm") {
|
|
2013
|
-
return /* @__PURE__ */
|
|
2014
|
-
/* @__PURE__ */
|
|
2015
|
-
/* @__PURE__ */
|
|
2016
|
-
/* @__PURE__ */
|
|
2017
|
-
/* @__PURE__ */
|
|
2018
|
-
/* @__PURE__ */
|
|
2037
|
+
return /* @__PURE__ */ jsxs14("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
2038
|
+
/* @__PURE__ */ jsx20("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
2039
|
+
/* @__PURE__ */ jsxs14("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2040
|
+
/* @__PURE__ */ jsx20("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx20("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
2041
|
+
/* @__PURE__ */ jsx20("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx20("span", { className: "h-3 w-2/5 rounded bg-ods-bg/70" }) }),
|
|
2042
|
+
/* @__PURE__ */ jsx20("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx20("span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
2019
2043
|
] })
|
|
2020
2044
|
] });
|
|
2021
2045
|
}
|
|
2022
|
-
return /* @__PURE__ */
|
|
2023
|
-
/* @__PURE__ */
|
|
2024
|
-
/* @__PURE__ */
|
|
2025
|
-
/* @__PURE__ */
|
|
2026
|
-
/* @__PURE__ */
|
|
2027
|
-
/* @__PURE__ */
|
|
2028
|
-
/* @__PURE__ */
|
|
2029
|
-
/* @__PURE__ */
|
|
2030
|
-
/* @__PURE__ */
|
|
2031
|
-
/* @__PURE__ */
|
|
2046
|
+
return /* @__PURE__ */ jsxs14("article", { className: "group flex h-full animate-pulse flex-col overflow-hidden rounded-lg border border-ods-border bg-ods-card", children: [
|
|
2047
|
+
/* @__PURE__ */ jsx20("div", { className: "aspect-[1200/630] bg-ods-bg" }),
|
|
2048
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex flex-grow flex-col space-y-3 p-4", children: [
|
|
2049
|
+
/* @__PURE__ */ jsx20("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
2050
|
+
/* @__PURE__ */ jsx20("div", { className: "h-5 w-1/2 rounded bg-ods-bg" }),
|
|
2051
|
+
/* @__PURE__ */ jsx20("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
2052
|
+
/* @__PURE__ */ jsx20("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" }),
|
|
2053
|
+
/* @__PURE__ */ jsxs14("div", { className: "mt-auto flex items-center gap-2", children: [
|
|
2054
|
+
/* @__PURE__ */ jsx20("div", { className: "h-8 w-8 rounded-full bg-ods-bg" }),
|
|
2055
|
+
/* @__PURE__ */ jsx20("div", { className: "h-3 w-24 rounded bg-ods-bg/60" })
|
|
2032
2056
|
] })
|
|
2033
2057
|
] })
|
|
2034
2058
|
] });
|
|
@@ -2066,7 +2090,7 @@ function BlogCard({
|
|
|
2066
2090
|
timeZone: "UTC"
|
|
2067
2091
|
}) : "";
|
|
2068
2092
|
const firstCategory = post.categories?.find((c) => c && c.name)?.name;
|
|
2069
|
-
return /* @__PURE__ */
|
|
2093
|
+
return /* @__PURE__ */ jsxs14(
|
|
2070
2094
|
"a",
|
|
2071
2095
|
{
|
|
2072
2096
|
href,
|
|
@@ -2075,7 +2099,7 @@ function BlogCard({
|
|
|
2075
2099
|
className: cn(COMPACT_CARD_OUTER, className),
|
|
2076
2100
|
"aria-label": `Read article: ${post.title}`,
|
|
2077
2101
|
children: [
|
|
2078
|
-
/* @__PURE__ */
|
|
2102
|
+
/* @__PURE__ */ jsx20("span", { className: COMPACT_CARD_IMAGE_SLOT, children: displayImage ? /* @__PURE__ */ jsx20(
|
|
2079
2103
|
next_image_default,
|
|
2080
2104
|
{
|
|
2081
2105
|
src: displayImage,
|
|
@@ -2087,17 +2111,17 @@ function BlogCard({
|
|
|
2087
2111
|
onError: onImageError
|
|
2088
2112
|
}
|
|
2089
2113
|
) : null }),
|
|
2090
|
-
/* @__PURE__ */
|
|
2091
|
-
/* @__PURE__ */
|
|
2092
|
-
/* @__PURE__ */
|
|
2093
|
-
hasEmbeddedVideo ? /* @__PURE__ */
|
|
2114
|
+
/* @__PURE__ */ jsxs14("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2115
|
+
/* @__PURE__ */ jsxs14("span", { className: cn(COMPACT_CARD_TITLE_ROW, "gap-1.5"), children: [
|
|
2116
|
+
/* @__PURE__ */ jsx20("span", { className: cn(COMPACT_CARD_TITLE, "font-body"), children: post.title }),
|
|
2117
|
+
hasEmbeddedVideo ? /* @__PURE__ */ jsx20(StatusBadge, { text: "Video", variant: "button", colorScheme: "cyan", className: "shrink-0" }) : null
|
|
2094
2118
|
] }),
|
|
2095
|
-
/* @__PURE__ */
|
|
2119
|
+
/* @__PURE__ */ jsx20("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsxs14("span", { className: COMPACT_CARD_SUBTITLE, children: [
|
|
2096
2120
|
dateStr2,
|
|
2097
2121
|
dateStr2 && firstCategory ? " \xB7 " : "",
|
|
2098
2122
|
firstCategory ?? "Blog Post"
|
|
2099
2123
|
] }) }),
|
|
2100
|
-
/* @__PURE__ */
|
|
2124
|
+
/* @__PURE__ */ jsx20("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx20("span", { className: COMPACT_CARD_SUMMARY, children: post.summary || COMPACT_CARD_ROW_FILLER }) })
|
|
2101
2125
|
] })
|
|
2102
2126
|
]
|
|
2103
2127
|
}
|
|
@@ -2110,7 +2134,7 @@ function BlogCard({
|
|
|
2110
2134
|
day: "numeric",
|
|
2111
2135
|
timeZone: "UTC"
|
|
2112
2136
|
}) : "";
|
|
2113
|
-
return /* @__PURE__ */
|
|
2137
|
+
return /* @__PURE__ */ jsx20(
|
|
2114
2138
|
EntityPortraitCard,
|
|
2115
2139
|
{
|
|
2116
2140
|
href,
|
|
@@ -2136,7 +2160,7 @@ function BlogCard({
|
|
|
2136
2160
|
day: "numeric",
|
|
2137
2161
|
timeZone: "UTC"
|
|
2138
2162
|
}) : "";
|
|
2139
|
-
return /* @__PURE__ */
|
|
2163
|
+
return /* @__PURE__ */ jsx20(
|
|
2140
2164
|
"article",
|
|
2141
2165
|
{
|
|
2142
2166
|
className: cn(
|
|
@@ -2148,7 +2172,7 @@ function BlogCard({
|
|
|
2148
2172
|
className
|
|
2149
2173
|
),
|
|
2150
2174
|
role: "article",
|
|
2151
|
-
children: /* @__PURE__ */
|
|
2175
|
+
children: /* @__PURE__ */ jsxs14(
|
|
2152
2176
|
"a",
|
|
2153
2177
|
{
|
|
2154
2178
|
href,
|
|
@@ -2157,7 +2181,7 @@ function BlogCard({
|
|
|
2157
2181
|
className: "flex h-full flex-col focus:outline-none",
|
|
2158
2182
|
"aria-label": `Read article: ${post.title}`,
|
|
2159
2183
|
children: [
|
|
2160
|
-
/* @__PURE__ */
|
|
2184
|
+
/* @__PURE__ */ jsx20("div", { className: "relative aspect-[1200/630] w-full overflow-hidden bg-ods-bg", children: displayImage ? /* @__PURE__ */ jsx20(
|
|
2161
2185
|
next_image_default,
|
|
2162
2186
|
{
|
|
2163
2187
|
src: displayImage,
|
|
@@ -2171,8 +2195,8 @@ function BlogCard({
|
|
|
2171
2195
|
onError: onImageError
|
|
2172
2196
|
}
|
|
2173
2197
|
) : null }),
|
|
2174
|
-
/* @__PURE__ */
|
|
2175
|
-
/* @__PURE__ */
|
|
2198
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex flex-grow flex-col p-4", children: [
|
|
2199
|
+
/* @__PURE__ */ jsx20("div", { className: "mb-3 flex min-h-[50.4px] items-center md:min-h-[56px] lg:min-h-[61.6px]", children: /* @__PURE__ */ jsx20(
|
|
2176
2200
|
"h3",
|
|
2177
2201
|
{
|
|
2178
2202
|
className: cn(
|
|
@@ -2184,10 +2208,10 @@ function BlogCard({
|
|
|
2184
2208
|
children: post.title
|
|
2185
2209
|
}
|
|
2186
2210
|
) }),
|
|
2187
|
-
/* @__PURE__ */
|
|
2188
|
-
/* @__PURE__ */
|
|
2189
|
-
/* @__PURE__ */
|
|
2190
|
-
post.author_avatar ? /* @__PURE__ */
|
|
2211
|
+
/* @__PURE__ */ jsx20("div", { className: "mb-3 flex min-h-[42px] items-center md:min-h-[45px] lg:min-h-[48px]", children: /* @__PURE__ */ jsx20("p", { className: cn("text-ods-text-primary text-h6", "line-clamp-2"), children: post.summary || "" }) }),
|
|
2212
|
+
/* @__PURE__ */ jsxs14("div", { className: "mt-auto flex items-center justify-between gap-2 text-ods-text-secondary text-h6", children: [
|
|
2213
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
2214
|
+
post.author_avatar ? /* @__PURE__ */ jsx20(
|
|
2191
2215
|
next_image_default,
|
|
2192
2216
|
{
|
|
2193
2217
|
src: post.author_avatar,
|
|
@@ -2198,22 +2222,22 @@ function BlogCard({
|
|
|
2198
2222
|
unoptimized: true
|
|
2199
2223
|
}
|
|
2200
2224
|
) : null,
|
|
2201
|
-
/* @__PURE__ */
|
|
2225
|
+
/* @__PURE__ */ jsxs14("span", { className: "truncate", children: [
|
|
2202
2226
|
post.author_name || "Anonymous",
|
|
2203
|
-
dateStr ? /* @__PURE__ */
|
|
2227
|
+
dateStr ? /* @__PURE__ */ jsxs14(Fragment6, { children: [
|
|
2204
2228
|
" \xB7 ",
|
|
2205
2229
|
dateStr
|
|
2206
2230
|
] }) : null
|
|
2207
2231
|
] })
|
|
2208
2232
|
] }),
|
|
2209
|
-
/* @__PURE__ */
|
|
2233
|
+
/* @__PURE__ */ jsxs14(
|
|
2210
2234
|
"div",
|
|
2211
2235
|
{
|
|
2212
2236
|
className: "flex shrink-0 items-center gap-1",
|
|
2213
2237
|
"aria-label": `View count: ${(post.view_count ?? 0).toLocaleString("en-US")} views`,
|
|
2214
2238
|
children: [
|
|
2215
|
-
/* @__PURE__ */
|
|
2216
|
-
/* @__PURE__ */
|
|
2239
|
+
/* @__PURE__ */ jsx20(Eye2, { className: "h-4 w-4 shrink-0" }),
|
|
2240
|
+
/* @__PURE__ */ jsx20("span", { children: (post.view_count ?? 0).toLocaleString("en-US") })
|
|
2217
2241
|
]
|
|
2218
2242
|
}
|
|
2219
2243
|
)
|
|
@@ -2227,29 +2251,29 @@ function BlogCard({
|
|
|
2227
2251
|
}
|
|
2228
2252
|
|
|
2229
2253
|
// src/components/chat/entity-cards/case-study-card.tsx
|
|
2230
|
-
import { jsx as
|
|
2254
|
+
import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2231
2255
|
function CaseStudyCardSkeleton({ size = "default" }) {
|
|
2232
2256
|
if (size === "sm") {
|
|
2233
|
-
return /* @__PURE__ */
|
|
2234
|
-
/* @__PURE__ */
|
|
2235
|
-
/* @__PURE__ */
|
|
2236
|
-
/* @__PURE__ */
|
|
2237
|
-
/* @__PURE__ */
|
|
2238
|
-
/* @__PURE__ */
|
|
2257
|
+
return /* @__PURE__ */ jsxs15("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
2258
|
+
/* @__PURE__ */ jsx21("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
2259
|
+
/* @__PURE__ */ jsxs15("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2260
|
+
/* @__PURE__ */ jsx21("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx21("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
2261
|
+
/* @__PURE__ */ jsx21("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx21("span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
2262
|
+
/* @__PURE__ */ jsx21("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx21("span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
2239
2263
|
] })
|
|
2240
2264
|
] });
|
|
2241
2265
|
}
|
|
2242
|
-
return /* @__PURE__ */
|
|
2243
|
-
/* @__PURE__ */
|
|
2244
|
-
/* @__PURE__ */
|
|
2245
|
-
/* @__PURE__ */
|
|
2246
|
-
/* @__PURE__ */
|
|
2266
|
+
return /* @__PURE__ */ jsxs15("div", { className: "flex animate-pulse flex-col gap-6 overflow-hidden rounded-lg border border-ods-border bg-ods-card p-6", children: [
|
|
2267
|
+
/* @__PURE__ */ jsx21("div", { className: "aspect-[1200/630] w-full rounded-sm bg-ods-bg" }),
|
|
2268
|
+
/* @__PURE__ */ jsxs15("div", { className: "flex h-[72px] flex-col gap-2", children: [
|
|
2269
|
+
/* @__PURE__ */ jsx21("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
2270
|
+
/* @__PURE__ */ jsx21("div", { className: "h-5 w-1/2 rounded bg-ods-bg" })
|
|
2247
2271
|
] }),
|
|
2248
|
-
/* @__PURE__ */
|
|
2249
|
-
/* @__PURE__ */
|
|
2250
|
-
/* @__PURE__ */
|
|
2251
|
-
/* @__PURE__ */
|
|
2252
|
-
/* @__PURE__ */
|
|
2272
|
+
/* @__PURE__ */ jsxs15("div", { className: "flex h-[60px] items-center gap-3", children: [
|
|
2273
|
+
/* @__PURE__ */ jsx21("div", { className: "h-12 w-12 rounded-full bg-ods-bg" }),
|
|
2274
|
+
/* @__PURE__ */ jsxs15("div", { className: "flex-1 space-y-2", children: [
|
|
2275
|
+
/* @__PURE__ */ jsx21("div", { className: "h-4 w-2/3 rounded bg-ods-bg" }),
|
|
2276
|
+
/* @__PURE__ */ jsx21("div", { className: "h-3 w-1/2 rounded bg-ods-bg/60" })
|
|
2253
2277
|
] })
|
|
2254
2278
|
] })
|
|
2255
2279
|
] });
|
|
@@ -2278,8 +2302,8 @@ function CaseStudyCard({
|
|
|
2278
2302
|
});
|
|
2279
2303
|
const coverImage = study.featured_image || placeholderUrl || null;
|
|
2280
2304
|
if (size === "sm") {
|
|
2281
|
-
return /* @__PURE__ */
|
|
2282
|
-
/* @__PURE__ */
|
|
2305
|
+
return /* @__PURE__ */ jsxs15("a", { href, target, rel, className: cn(COMPACT_CARD_OUTER, className), children: [
|
|
2306
|
+
/* @__PURE__ */ jsx21("span", { className: COMPACT_CARD_IMAGE_SLOT, children: coverImage ? /* @__PURE__ */ jsx21(
|
|
2283
2307
|
next_image_default,
|
|
2284
2308
|
{
|
|
2285
2309
|
src: coverImage,
|
|
@@ -2291,15 +2315,15 @@ function CaseStudyCard({
|
|
|
2291
2315
|
onError: hideOnError
|
|
2292
2316
|
}
|
|
2293
2317
|
) : null }),
|
|
2294
|
-
/* @__PURE__ */
|
|
2295
|
-
/* @__PURE__ */
|
|
2296
|
-
/* @__PURE__ */
|
|
2297
|
-
/* @__PURE__ */
|
|
2318
|
+
/* @__PURE__ */ jsxs15("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2319
|
+
/* @__PURE__ */ jsx21("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx21("span", { className: COMPACT_CARD_TITLE, children: study.title }) }),
|
|
2320
|
+
/* @__PURE__ */ jsx21("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx21("span", { className: COMPACT_CARD_SUBTITLE, children: [study.msp?.name, study.user?.full_name].filter(Boolean).join(" \xB7 ") || "Case study" }) }),
|
|
2321
|
+
/* @__PURE__ */ jsx21("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx21("span", { className: COMPACT_CARD_SUMMARY, children: study.summary || COMPACT_CARD_ROW_FILLER }) })
|
|
2298
2322
|
] })
|
|
2299
2323
|
] });
|
|
2300
2324
|
}
|
|
2301
2325
|
if (size === "portrait") {
|
|
2302
|
-
return /* @__PURE__ */
|
|
2326
|
+
return /* @__PURE__ */ jsx21(
|
|
2303
2327
|
EntityPortraitCard,
|
|
2304
2328
|
{
|
|
2305
2329
|
href,
|
|
@@ -2320,8 +2344,8 @@ function CaseStudyCard({
|
|
|
2320
2344
|
}
|
|
2321
2345
|
);
|
|
2322
2346
|
}
|
|
2323
|
-
return /* @__PURE__ */
|
|
2324
|
-
/* @__PURE__ */
|
|
2347
|
+
return /* @__PURE__ */ jsx21("a", { href, target, rel, className: cn("block h-full", className), children: /* @__PURE__ */ jsxs15(Card, { className: "flex flex-col gap-6 overflow-hidden border border-ods-border bg-ods-card p-6 transition-colors hover:border-ods-accent", children: [
|
|
2348
|
+
/* @__PURE__ */ jsx21("div", { className: "relative aspect-[1200/630] w-full shrink-0 overflow-hidden rounded-sm bg-ods-bg", children: coverImage && /* @__PURE__ */ jsx21(
|
|
2325
2349
|
next_image_default,
|
|
2326
2350
|
{
|
|
2327
2351
|
src: coverImage,
|
|
@@ -2333,10 +2357,10 @@ function CaseStudyCard({
|
|
|
2333
2357
|
onError: hideOnError
|
|
2334
2358
|
}
|
|
2335
2359
|
) }),
|
|
2336
|
-
/* @__PURE__ */
|
|
2337
|
-
/* @__PURE__ */
|
|
2338
|
-
/* @__PURE__ */
|
|
2339
|
-
study.user?.avatar_url ? /* @__PURE__ */
|
|
2360
|
+
/* @__PURE__ */ jsx21("div", { className: "flex h-[72px] shrink-0 items-center", children: /* @__PURE__ */ jsx21("p", { className: "line-clamp-3 break-words text-ods-text-primary text-h4", children: study.title }) }),
|
|
2361
|
+
/* @__PURE__ */ jsx21("div", { className: "flex h-[60px] shrink-0 items-center", children: /* @__PURE__ */ jsxs15("div", { className: "flex w-full min-w-0 items-center gap-3", children: [
|
|
2362
|
+
/* @__PURE__ */ jsxs15("div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2363
|
+
study.user?.avatar_url ? /* @__PURE__ */ jsx21(
|
|
2340
2364
|
next_image_default,
|
|
2341
2365
|
{
|
|
2342
2366
|
src: study.user.avatar_url,
|
|
@@ -2346,8 +2370,8 @@ function CaseStudyCard({
|
|
|
2346
2370
|
height: 48,
|
|
2347
2371
|
unoptimized: true
|
|
2348
2372
|
}
|
|
2349
|
-
) : /* @__PURE__ */
|
|
2350
|
-
study.msp?.icon_url && /* @__PURE__ */
|
|
2373
|
+
) : /* @__PURE__ */ jsx21("div", { className: "flex h-12 w-12 items-center justify-center rounded-full border border-ods-border bg-ods-bg", children: /* @__PURE__ */ jsx21("span", { className: "text-ods-text-secondary text-h4", children: (study.user?.full_name || "A").charAt(0).toUpperCase() }) }),
|
|
2374
|
+
study.msp?.icon_url && /* @__PURE__ */ jsx21("div", { className: "absolute -bottom-1 -right-1 flex h-6 w-6 items-center justify-center overflow-hidden rounded-full bg-ods-text-primary ring-1 ring-ods-bg", children: /* @__PURE__ */ jsx21(
|
|
2351
2375
|
next_image_default,
|
|
2352
2376
|
{
|
|
2353
2377
|
src: study.msp.icon_url,
|
|
@@ -2359,15 +2383,15 @@ function CaseStudyCard({
|
|
|
2359
2383
|
}
|
|
2360
2384
|
) })
|
|
2361
2385
|
] }),
|
|
2362
|
-
/* @__PURE__ */
|
|
2363
|
-
/* @__PURE__ */
|
|
2386
|
+
/* @__PURE__ */ jsxs15("div", { className: "min-w-0 flex-1", children: [
|
|
2387
|
+
/* @__PURE__ */ jsxs15("p", { className: "truncate text-ods-text-primary text-h6", children: [
|
|
2364
2388
|
study.user?.full_name || "Anonymous",
|
|
2365
|
-
study.msp?.name && /* @__PURE__ */
|
|
2389
|
+
study.msp?.name && /* @__PURE__ */ jsxs15("span", { className: "text-ods-text-secondary", children: [
|
|
2366
2390
|
" \u2022 ",
|
|
2367
2391
|
study.msp.name
|
|
2368
2392
|
] })
|
|
2369
2393
|
] }),
|
|
2370
|
-
/* @__PURE__ */
|
|
2394
|
+
/* @__PURE__ */ jsx21("p", { className: "truncate text-ods-text-secondary text-h6", children: study.user?.job_title || "\xA0" })
|
|
2371
2395
|
] })
|
|
2372
2396
|
] }) })
|
|
2373
2397
|
] }) });
|
|
@@ -2375,34 +2399,34 @@ function CaseStudyCard({
|
|
|
2375
2399
|
|
|
2376
2400
|
// src/components/chat/entity-cards/customer-interview-card.tsx
|
|
2377
2401
|
import { Video } from "lucide-react";
|
|
2378
|
-
import { Fragment as
|
|
2402
|
+
import { Fragment as Fragment7, jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2379
2403
|
function CustomerInterviewCardSkeleton({ size = "default" }) {
|
|
2380
2404
|
if (size === "sm") {
|
|
2381
|
-
return /* @__PURE__ */
|
|
2382
|
-
/* @__PURE__ */
|
|
2383
|
-
/* @__PURE__ */
|
|
2384
|
-
/* @__PURE__ */
|
|
2385
|
-
/* @__PURE__ */
|
|
2386
|
-
/* @__PURE__ */
|
|
2405
|
+
return /* @__PURE__ */ jsxs16("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
2406
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
2407
|
+
/* @__PURE__ */ jsxs16("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2408
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx22("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
2409
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx22("span", { className: "h-3 w-2/5 rounded bg-ods-bg/70" }) }),
|
|
2410
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx22("span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
2387
2411
|
] })
|
|
2388
2412
|
] });
|
|
2389
2413
|
}
|
|
2390
|
-
return /* @__PURE__ */
|
|
2391
|
-
/* @__PURE__ */
|
|
2392
|
-
/* @__PURE__ */
|
|
2393
|
-
/* @__PURE__ */
|
|
2394
|
-
/* @__PURE__ */
|
|
2414
|
+
return /* @__PURE__ */ jsxs16("div", { className: "flex animate-pulse flex-col gap-6 overflow-hidden rounded-lg border border-ods-border bg-ods-card p-6", children: [
|
|
2415
|
+
/* @__PURE__ */ jsx22("div", { className: "aspect-[1200/630] w-full rounded-sm bg-ods-bg" }),
|
|
2416
|
+
/* @__PURE__ */ jsxs16("div", { className: "space-y-2", children: [
|
|
2417
|
+
/* @__PURE__ */ jsx22("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
2418
|
+
/* @__PURE__ */ jsx22("div", { className: "h-5 w-1/2 rounded bg-ods-bg" })
|
|
2395
2419
|
] }),
|
|
2396
|
-
/* @__PURE__ */
|
|
2397
|
-
/* @__PURE__ */
|
|
2398
|
-
/* @__PURE__ */
|
|
2399
|
-
/* @__PURE__ */
|
|
2420
|
+
/* @__PURE__ */ jsxs16("div", { className: "space-y-2", children: [
|
|
2421
|
+
/* @__PURE__ */ jsx22("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
2422
|
+
/* @__PURE__ */ jsx22("div", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }),
|
|
2423
|
+
/* @__PURE__ */ jsx22("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" })
|
|
2400
2424
|
] }),
|
|
2401
|
-
/* @__PURE__ */
|
|
2402
|
-
/* @__PURE__ */
|
|
2403
|
-
/* @__PURE__ */
|
|
2404
|
-
/* @__PURE__ */
|
|
2405
|
-
/* @__PURE__ */
|
|
2425
|
+
/* @__PURE__ */ jsxs16("div", { className: "mt-auto flex h-[60px] items-center gap-3", children: [
|
|
2426
|
+
/* @__PURE__ */ jsx22("div", { className: "h-12 w-12 rounded-full bg-ods-bg" }),
|
|
2427
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex-1 space-y-2", children: [
|
|
2428
|
+
/* @__PURE__ */ jsx22("div", { className: "h-4 w-2/3 rounded bg-ods-bg" }),
|
|
2429
|
+
/* @__PURE__ */ jsx22("div", { className: "h-3 w-1/2 rounded bg-ods-bg/60" })
|
|
2406
2430
|
] })
|
|
2407
2431
|
] })
|
|
2408
2432
|
] });
|
|
@@ -2431,9 +2455,9 @@ function CustomerInterviewCard({
|
|
|
2431
2455
|
});
|
|
2432
2456
|
const thumbnailUrl = interview.featured_image || placeholderUrl || null;
|
|
2433
2457
|
if (size === "sm") {
|
|
2434
|
-
return /* @__PURE__ */
|
|
2435
|
-
/* @__PURE__ */
|
|
2436
|
-
thumbnailUrl ? /* @__PURE__ */
|
|
2458
|
+
return /* @__PURE__ */ jsxs16("a", { href, target, rel, className: cn(COMPACT_CARD_OUTER, className), children: [
|
|
2459
|
+
/* @__PURE__ */ jsxs16("span", { className: COMPACT_CARD_IMAGE_SLOT, children: [
|
|
2460
|
+
thumbnailUrl ? /* @__PURE__ */ jsx22(
|
|
2437
2461
|
next_image_default,
|
|
2438
2462
|
{
|
|
2439
2463
|
src: thumbnailUrl,
|
|
@@ -2445,17 +2469,17 @@ function CustomerInterviewCard({
|
|
|
2445
2469
|
onError: hideOnError
|
|
2446
2470
|
}
|
|
2447
2471
|
) : null,
|
|
2448
|
-
interview.main_video_url ? /* @__PURE__ */
|
|
2472
|
+
interview.main_video_url ? /* @__PURE__ */ jsx22("span", { className: "absolute inset-0 flex items-center justify-center bg-black/30", children: /* @__PURE__ */ jsx22(Video, { className: "h-4 w-4 text-ods-text-on-dark" }) }) : null
|
|
2449
2473
|
] }),
|
|
2450
|
-
/* @__PURE__ */
|
|
2451
|
-
/* @__PURE__ */
|
|
2452
|
-
/* @__PURE__ */
|
|
2453
|
-
/* @__PURE__ */
|
|
2474
|
+
/* @__PURE__ */ jsxs16("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2475
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_TITLE, children: interview.title }) }),
|
|
2476
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_SUBTITLE, children: [interview.user?.full_name, interview.msp?.name].filter(Boolean).join(" \xB7 ") || "Customer interview" }) }),
|
|
2477
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_SUMMARY, children: interview.video_summary || COMPACT_CARD_ROW_FILLER }) })
|
|
2454
2478
|
] })
|
|
2455
2479
|
] });
|
|
2456
2480
|
}
|
|
2457
2481
|
if (size === "portrait") {
|
|
2458
|
-
return /* @__PURE__ */
|
|
2482
|
+
return /* @__PURE__ */ jsx22(
|
|
2459
2483
|
EntityPortraitCard,
|
|
2460
2484
|
{
|
|
2461
2485
|
href,
|
|
@@ -2476,9 +2500,9 @@ function CustomerInterviewCard({
|
|
|
2476
2500
|
}
|
|
2477
2501
|
);
|
|
2478
2502
|
}
|
|
2479
|
-
return /* @__PURE__ */
|
|
2480
|
-
/* @__PURE__ */
|
|
2481
|
-
/* @__PURE__ */
|
|
2503
|
+
return /* @__PURE__ */ jsx22("a", { href, target, rel, className: cn("block h-full", className), children: /* @__PURE__ */ jsxs16(Card, { className: "flex flex-col gap-6 overflow-hidden border border-ods-border bg-ods-card p-6 transition-colors hover:border-ods-accent", children: [
|
|
2504
|
+
/* @__PURE__ */ jsx22("div", { className: "relative aspect-[1200/630] w-full shrink-0 overflow-hidden rounded-sm bg-ods-bg", children: thumbnailUrl ? /* @__PURE__ */ jsxs16(Fragment7, { children: [
|
|
2505
|
+
/* @__PURE__ */ jsx22(
|
|
2482
2506
|
next_image_default,
|
|
2483
2507
|
{
|
|
2484
2508
|
src: thumbnailUrl,
|
|
@@ -2490,13 +2514,13 @@ function CustomerInterviewCard({
|
|
|
2490
2514
|
onError: hideOnError
|
|
2491
2515
|
}
|
|
2492
2516
|
),
|
|
2493
|
-
interview.main_video_url && /* @__PURE__ */
|
|
2494
|
-
] }) : /* @__PURE__ */
|
|
2495
|
-
/* @__PURE__ */
|
|
2496
|
-
interview.video_summary && /* @__PURE__ */
|
|
2497
|
-
/* @__PURE__ */
|
|
2498
|
-
/* @__PURE__ */
|
|
2499
|
-
interview.user?.avatar_url ? /* @__PURE__ */
|
|
2517
|
+
interview.main_video_url && /* @__PURE__ */ jsx22("div", { className: "absolute inset-0 flex items-center justify-center bg-black/40", children: /* @__PURE__ */ jsx22("div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-ods-accent/90", children: /* @__PURE__ */ jsx22(Video, { className: "h-8 w-8 text-ods-text-on-accent" }) }) })
|
|
2518
|
+
] }) : /* @__PURE__ */ jsx22("div", { className: "flex h-full w-full items-center justify-center bg-ods-bg", children: /* @__PURE__ */ jsx22(Video, { className: "h-12 w-12 text-ods-text-secondary" }) }) }),
|
|
2519
|
+
/* @__PURE__ */ jsx22("div", { className: "shrink-0", children: /* @__PURE__ */ jsx22("h3", { className: "line-clamp-2 break-words text-ods-text-primary text-h3", children: interview.title }) }),
|
|
2520
|
+
interview.video_summary && /* @__PURE__ */ jsx22("div", { className: "shrink-0", children: /* @__PURE__ */ jsx22("p", { className: "line-clamp-3 text-ods-text-secondary text-h6", children: interview.video_summary }) }),
|
|
2521
|
+
/* @__PURE__ */ jsx22("div", { className: "mt-auto flex h-[60px] shrink-0 items-center", children: /* @__PURE__ */ jsxs16("div", { className: "flex w-full min-w-0 items-center gap-3", children: [
|
|
2522
|
+
/* @__PURE__ */ jsxs16("div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2523
|
+
interview.user?.avatar_url ? /* @__PURE__ */ jsx22(
|
|
2500
2524
|
next_image_default,
|
|
2501
2525
|
{
|
|
2502
2526
|
src: interview.user.avatar_url,
|
|
@@ -2506,8 +2530,8 @@ function CustomerInterviewCard({
|
|
|
2506
2530
|
height: 48,
|
|
2507
2531
|
unoptimized: true
|
|
2508
2532
|
}
|
|
2509
|
-
) : /* @__PURE__ */
|
|
2510
|
-
interview.msp?.icon_url && /* @__PURE__ */
|
|
2533
|
+
) : /* @__PURE__ */ jsx22("div", { className: "flex h-12 w-12 items-center justify-center rounded-full border border-ods-border bg-ods-bg", children: /* @__PURE__ */ jsx22("span", { className: "text-ods-text-secondary text-h4", children: (interview.user?.full_name || "A").charAt(0).toUpperCase() }) }),
|
|
2534
|
+
interview.msp?.icon_url && /* @__PURE__ */ jsx22("div", { className: "absolute -bottom-1 -right-1 flex h-6 w-6 items-center justify-center overflow-hidden rounded-full bg-ods-text-primary ring-1 ring-ods-bg", children: /* @__PURE__ */ jsx22(
|
|
2511
2535
|
next_image_default,
|
|
2512
2536
|
{
|
|
2513
2537
|
src: interview.msp.icon_url,
|
|
@@ -2519,15 +2543,15 @@ function CustomerInterviewCard({
|
|
|
2519
2543
|
}
|
|
2520
2544
|
) })
|
|
2521
2545
|
] }),
|
|
2522
|
-
/* @__PURE__ */
|
|
2523
|
-
/* @__PURE__ */
|
|
2546
|
+
/* @__PURE__ */ jsxs16("div", { className: "min-w-0 flex-1", children: [
|
|
2547
|
+
/* @__PURE__ */ jsxs16("p", { className: "truncate text-ods-text-primary text-h6", children: [
|
|
2524
2548
|
interview.user?.full_name || "Anonymous",
|
|
2525
|
-
interview.msp?.name && /* @__PURE__ */
|
|
2549
|
+
interview.msp?.name && /* @__PURE__ */ jsxs16("span", { className: "text-ods-text-secondary", children: [
|
|
2526
2550
|
" \u2022 ",
|
|
2527
2551
|
interview.msp.name
|
|
2528
2552
|
] })
|
|
2529
2553
|
] }),
|
|
2530
|
-
/* @__PURE__ */
|
|
2554
|
+
/* @__PURE__ */ jsx22("p", { className: "truncate text-ods-text-secondary text-h6", children: interview.user?.job_title || " " })
|
|
2531
2555
|
] })
|
|
2532
2556
|
] }) })
|
|
2533
2557
|
] }) });
|
|
@@ -2549,28 +2573,28 @@ function formatInvestorUpdatePeriod(start, end, options) {
|
|
|
2549
2573
|
|
|
2550
2574
|
// src/components/chat/entity-cards/investor-update-card.tsx
|
|
2551
2575
|
import { Calendar } from "lucide-react";
|
|
2552
|
-
import { jsx as
|
|
2576
|
+
import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2553
2577
|
function InvestorUpdateCardSkeleton({ size = "default" }) {
|
|
2554
2578
|
if (size === "sm") {
|
|
2555
|
-
return /* @__PURE__ */
|
|
2556
|
-
/* @__PURE__ */
|
|
2557
|
-
/* @__PURE__ */
|
|
2558
|
-
/* @__PURE__ */
|
|
2559
|
-
/* @__PURE__ */
|
|
2560
|
-
/* @__PURE__ */
|
|
2579
|
+
return /* @__PURE__ */ jsxs17("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
2580
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
2581
|
+
/* @__PURE__ */ jsxs17("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2582
|
+
/* @__PURE__ */ jsxs17("span", { className: `${COMPACT_CARD_TITLE_ROW} flex-nowrap gap-2`, children: [
|
|
2583
|
+
/* @__PURE__ */ jsx23("span", { className: "h-3.5 w-1/2 rounded bg-ods-bg" }),
|
|
2584
|
+
/* @__PURE__ */ jsx23("span", { className: "h-4 w-8 shrink-0 rounded bg-ods-bg/70" })
|
|
2561
2585
|
] }),
|
|
2562
|
-
/* @__PURE__ */
|
|
2563
|
-
/* @__PURE__ */
|
|
2586
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx23("span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) }),
|
|
2587
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx23("span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
2564
2588
|
] })
|
|
2565
2589
|
] });
|
|
2566
2590
|
}
|
|
2567
|
-
return /* @__PURE__ */
|
|
2568
|
-
/* @__PURE__ */
|
|
2569
|
-
/* @__PURE__ */
|
|
2570
|
-
/* @__PURE__ */
|
|
2571
|
-
/* @__PURE__ */
|
|
2572
|
-
/* @__PURE__ */
|
|
2573
|
-
/* @__PURE__ */
|
|
2591
|
+
return /* @__PURE__ */ jsxs17("div", { className: "h-full animate-pulse overflow-hidden rounded-lg border border-ods-border bg-ods-card", children: [
|
|
2592
|
+
/* @__PURE__ */ jsx23("div", { className: "aspect-[1200/630] bg-ods-bg" }),
|
|
2593
|
+
/* @__PURE__ */ jsxs17("div", { className: "space-y-3 p-4", children: [
|
|
2594
|
+
/* @__PURE__ */ jsx23("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
2595
|
+
/* @__PURE__ */ jsx23("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
2596
|
+
/* @__PURE__ */ jsx23("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" }),
|
|
2597
|
+
/* @__PURE__ */ jsx23("div", { className: "h-4 w-1/3 rounded bg-ods-bg/60" })
|
|
2574
2598
|
] })
|
|
2575
2599
|
] });
|
|
2576
2600
|
}
|
|
@@ -2599,8 +2623,8 @@ function InvestorUpdateCard({
|
|
|
2599
2623
|
const coverImage = update.featured_image || placeholderUrl || null;
|
|
2600
2624
|
if (size === "sm") {
|
|
2601
2625
|
const periodText = formatInvestorUpdatePeriod(update.period_start, update.period_end);
|
|
2602
|
-
return /* @__PURE__ */
|
|
2603
|
-
/* @__PURE__ */
|
|
2626
|
+
return /* @__PURE__ */ jsxs17("a", { href, target, rel, className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: [
|
|
2627
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_IMAGE_SLOT, children: coverImage ? /* @__PURE__ */ jsx23(
|
|
2604
2628
|
next_image_default,
|
|
2605
2629
|
{
|
|
2606
2630
|
src: coverImage,
|
|
@@ -2614,23 +2638,23 @@ function InvestorUpdateCard({
|
|
|
2614
2638
|
img.style.display = "none";
|
|
2615
2639
|
}
|
|
2616
2640
|
}
|
|
2617
|
-
) : /* @__PURE__ */
|
|
2618
|
-
/* @__PURE__ */
|
|
2619
|
-
/* @__PURE__ */
|
|
2620
|
-
/* @__PURE__ */
|
|
2621
|
-
update.update_number ? /* @__PURE__ */
|
|
2641
|
+
) : /* @__PURE__ */ jsx23("span", { className: "flex h-full w-full items-center justify-center text-ods-accent", children: /* @__PURE__ */ jsx23(Calendar, { className: "h-4 w-4" }) }) }),
|
|
2642
|
+
/* @__PURE__ */ jsxs17("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2643
|
+
/* @__PURE__ */ jsxs17("span", { className: `${COMPACT_CARD_TITLE_ROW} gap-2`, children: [
|
|
2644
|
+
/* @__PURE__ */ jsx23("span", { className: `${COMPACT_CARD_TITLE} min-w-0`, children: update.title || `Update #${update.update_number ?? "?"}` }),
|
|
2645
|
+
update.update_number ? /* @__PURE__ */ jsxs17("span", { className: "shrink-0 rounded bg-ods-accent/10 px-1.5 py-0.5 text-ods-accent text-h6", children: [
|
|
2622
2646
|
"#",
|
|
2623
2647
|
update.update_number
|
|
2624
2648
|
] }) : null
|
|
2625
2649
|
] }),
|
|
2626
|
-
/* @__PURE__ */
|
|
2627
|
-
/* @__PURE__ */
|
|
2650
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_SUBTITLE, children: periodText || "Investor update" }) }),
|
|
2651
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_SUMMARY, children: (update.strategic_update || update.content || "").slice(0, 120) || COMPACT_CARD_ROW_FILLER }) })
|
|
2628
2652
|
] })
|
|
2629
2653
|
] });
|
|
2630
2654
|
}
|
|
2631
2655
|
if (size === "portrait") {
|
|
2632
2656
|
const periodText = formatInvestorUpdatePeriod(update.period_start, update.period_end);
|
|
2633
|
-
return /* @__PURE__ */
|
|
2657
|
+
return /* @__PURE__ */ jsx23(
|
|
2634
2658
|
EntityPortraitCard,
|
|
2635
2659
|
{
|
|
2636
2660
|
href,
|
|
@@ -2646,20 +2670,20 @@ function InvestorUpdateCard({
|
|
|
2646
2670
|
}
|
|
2647
2671
|
);
|
|
2648
2672
|
}
|
|
2649
|
-
return /* @__PURE__ */
|
|
2673
|
+
return /* @__PURE__ */ jsx23("a", { href, target, rel, className: `block h-full ${className ?? ""}`, children: /* @__PURE__ */ jsx23(
|
|
2650
2674
|
AdminContentCard,
|
|
2651
2675
|
{
|
|
2652
2676
|
imageUrl: update.featured_image,
|
|
2653
2677
|
placeholderUrl,
|
|
2654
2678
|
title: update.title || `Update #${update.update_number || "?"}`,
|
|
2655
2679
|
summary: update.strategic_update?.slice(0, 120) || update.content?.slice(0, 120) || "No description",
|
|
2656
|
-
badges: update.update_number ? /* @__PURE__ */
|
|
2680
|
+
badges: update.update_number ? /* @__PURE__ */ jsxs17("span", { className: "rounded bg-ods-accent/10 px-2 py-0.5 text-xs font-medium text-ods-accent", children: [
|
|
2657
2681
|
"#",
|
|
2658
2682
|
update.update_number
|
|
2659
2683
|
] }) : void 0,
|
|
2660
|
-
meta: update.period_start || update.period_end ? /* @__PURE__ */
|
|
2661
|
-
/* @__PURE__ */
|
|
2662
|
-
/* @__PURE__ */
|
|
2684
|
+
meta: update.period_start || update.period_end ? /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-1", children: [
|
|
2685
|
+
/* @__PURE__ */ jsx23(Calendar, { className: "h-3 w-3" }),
|
|
2686
|
+
/* @__PURE__ */ jsx23("span", { children: formatInvestorUpdatePeriod(update.period_start, update.period_end) })
|
|
2663
2687
|
] }) : void 0
|
|
2664
2688
|
}
|
|
2665
2689
|
) });
|
|
@@ -2667,7 +2691,7 @@ function InvestorUpdateCard({
|
|
|
2667
2691
|
|
|
2668
2692
|
// src/components/chat/entity-cards/onboarding-guide-card.tsx
|
|
2669
2693
|
import { Clock, ExternalLink, GraduationCap, Play as Play2 } from "lucide-react";
|
|
2670
|
-
import { jsx as
|
|
2694
|
+
import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2671
2695
|
function stripMarkdownPreview(text) {
|
|
2672
2696
|
return text.replace(/```[\s\S]*?```/g, " ").replace(/^#{1,6}\s+/gm, "").replace(/!?\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/[*_~`>]/g, "").replace(/^\s*[-+]\s+/gm, "").replace(/-{3,}/g, " ").replace(/\s+/g, " ").trim().replace(/^([\s\S]{240})[\s\S]+$/, "$1\u2026");
|
|
2673
2697
|
}
|
|
@@ -2681,64 +2705,64 @@ var HORIZONTAL_SIZE_TOKENS = {
|
|
|
2681
2705
|
};
|
|
2682
2706
|
function OnboardingGuideCardSkeleton({ size = "default" }) {
|
|
2683
2707
|
if (size === "catalog") {
|
|
2684
|
-
return /* @__PURE__ */
|
|
2685
|
-
/* @__PURE__ */
|
|
2686
|
-
/* @__PURE__ */
|
|
2687
|
-
/* @__PURE__ */
|
|
2688
|
-
/* @__PURE__ */
|
|
2689
|
-
/* @__PURE__ */
|
|
2690
|
-
/* @__PURE__ */
|
|
2708
|
+
return /* @__PURE__ */ jsxs18("div", { className: "flex animate-pulse flex-col gap-4 overflow-hidden rounded-lg border border-ods-border bg-ods-card p-6", children: [
|
|
2709
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-4 md:flex-row md:gap-6", children: [
|
|
2710
|
+
/* @__PURE__ */ jsx24("div", { className: "aspect-[1200/630] w-full flex-shrink-0 rounded-lg bg-ods-border md:w-[256px]" }),
|
|
2711
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
2712
|
+
/* @__PURE__ */ jsxs18("div", { className: "mb-3 flex min-h-[60px] flex-col justify-start gap-1.5 md:min-h-[72px]", children: [
|
|
2713
|
+
/* @__PURE__ */ jsx24("div", { className: "h-[25px] w-3/4 rounded bg-ods-border md:h-[30px]" }),
|
|
2714
|
+
/* @__PURE__ */ jsx24("div", { className: "h-[25px] w-1/2 rounded bg-ods-border md:h-[30px]" })
|
|
2691
2715
|
] }),
|
|
2692
|
-
/* @__PURE__ */
|
|
2693
|
-
/* @__PURE__ */
|
|
2694
|
-
/* @__PURE__ */
|
|
2716
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex min-h-[46px] flex-col justify-start gap-2 md:min-h-[52px]", children: [
|
|
2717
|
+
/* @__PURE__ */ jsx24("div", { className: "h-3 w-full rounded bg-ods-border/70" }),
|
|
2718
|
+
/* @__PURE__ */ jsx24("div", { className: "h-3 w-5/6 rounded bg-ods-border/70" })
|
|
2695
2719
|
] })
|
|
2696
2720
|
] })
|
|
2697
2721
|
] }),
|
|
2698
|
-
/* @__PURE__ */
|
|
2699
|
-
[0, 1].map((i) => /* @__PURE__ */
|
|
2722
|
+
/* @__PURE__ */ jsxs18("div", { className: "grid w-full grid-cols-1 overflow-hidden rounded-md border border-ods-border md:grid-cols-3", children: [
|
|
2723
|
+
[0, 1].map((i) => /* @__PURE__ */ jsx24(
|
|
2700
2724
|
"div",
|
|
2701
2725
|
{
|
|
2702
2726
|
className: "flex flex-col gap-3 border-b border-ods-border bg-ods-card p-4 md:border-b-0 md:border-r",
|
|
2703
|
-
children: /* @__PURE__ */
|
|
2704
|
-
/* @__PURE__ */
|
|
2705
|
-
/* @__PURE__ */
|
|
2727
|
+
children: /* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-2", children: [
|
|
2728
|
+
/* @__PURE__ */ jsx24("div", { className: "h-6 w-32 rounded bg-ods-bg" }),
|
|
2729
|
+
/* @__PURE__ */ jsx24("div", { className: "h-3 w-20 rounded bg-ods-bg/60" })
|
|
2706
2730
|
] })
|
|
2707
2731
|
},
|
|
2708
2732
|
`cell-${i}`
|
|
2709
2733
|
)),
|
|
2710
|
-
/* @__PURE__ */
|
|
2711
|
-
/* @__PURE__ */
|
|
2712
|
-
/* @__PURE__ */
|
|
2713
|
-
/* @__PURE__ */
|
|
2714
|
-
/* @__PURE__ */
|
|
2734
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-3 bg-ods-card p-4", children: [
|
|
2735
|
+
/* @__PURE__ */ jsx24("div", { className: "h-10 w-10 shrink-0 rounded-full bg-ods-bg" }),
|
|
2736
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
2737
|
+
/* @__PURE__ */ jsx24("div", { className: "h-4 w-3/4 rounded bg-ods-bg" }),
|
|
2738
|
+
/* @__PURE__ */ jsx24("div", { className: "h-3 w-1/2 rounded bg-ods-bg/60" })
|
|
2715
2739
|
] })
|
|
2716
2740
|
] })
|
|
2717
2741
|
] })
|
|
2718
2742
|
] });
|
|
2719
2743
|
}
|
|
2720
2744
|
if (size === "sm") {
|
|
2721
|
-
return /* @__PURE__ */
|
|
2722
|
-
/* @__PURE__ */
|
|
2723
|
-
/* @__PURE__ */
|
|
2724
|
-
/* @__PURE__ */
|
|
2725
|
-
/* @__PURE__ */
|
|
2726
|
-
/* @__PURE__ */
|
|
2745
|
+
return /* @__PURE__ */ jsxs18("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
2746
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
2747
|
+
/* @__PURE__ */ jsxs18("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2748
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx24("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
2749
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx24("span", { className: "h-3 w-2/5 rounded bg-ods-bg/70" }) }),
|
|
2750
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx24("span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
2727
2751
|
] }),
|
|
2728
|
-
/* @__PURE__ */
|
|
2752
|
+
/* @__PURE__ */ jsx24("span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ jsx24("span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
2729
2753
|
] });
|
|
2730
2754
|
}
|
|
2731
2755
|
const t = HORIZONTAL_SIZE_TOKENS.default;
|
|
2732
|
-
return /* @__PURE__ */
|
|
2756
|
+
return /* @__PURE__ */ jsxs18(
|
|
2733
2757
|
"span",
|
|
2734
2758
|
{
|
|
2735
2759
|
className: `flex items-start gap-3 rounded-md border border-ods-border bg-ods-card ${t.padding} animate-pulse`,
|
|
2736
2760
|
children: [
|
|
2737
|
-
/* @__PURE__ */
|
|
2738
|
-
/* @__PURE__ */
|
|
2739
|
-
/* @__PURE__ */
|
|
2740
|
-
/* @__PURE__ */
|
|
2741
|
-
/* @__PURE__ */
|
|
2761
|
+
/* @__PURE__ */ jsx24("span", { className: `inline-flex shrink-0 items-center justify-center rounded-full bg-ods-bg ${t.step}` }),
|
|
2762
|
+
/* @__PURE__ */ jsxs18("span", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
2763
|
+
/* @__PURE__ */ jsx24("span", { className: "block h-4 w-2/3 rounded bg-ods-bg" }),
|
|
2764
|
+
/* @__PURE__ */ jsx24("span", { className: "block h-3 w-1/3 rounded bg-ods-bg/70" }),
|
|
2765
|
+
/* @__PURE__ */ jsx24("span", { className: "block h-3 w-full rounded bg-ods-bg/40" })
|
|
2742
2766
|
] })
|
|
2743
2767
|
]
|
|
2744
2768
|
}
|
|
@@ -2768,7 +2792,7 @@ function OnboardingGuideCard({
|
|
|
2768
2792
|
});
|
|
2769
2793
|
if (size === "portrait") {
|
|
2770
2794
|
const coverImage = guide.featured_image || guide.main_video_thumbnail || guide.og_image_url || null;
|
|
2771
|
-
return /* @__PURE__ */
|
|
2795
|
+
return /* @__PURE__ */ jsx24(
|
|
2772
2796
|
EntityPortraitCard,
|
|
2773
2797
|
{
|
|
2774
2798
|
href,
|
|
@@ -2789,7 +2813,7 @@ function OnboardingGuideCard({
|
|
|
2789
2813
|
const hasVideoCover = !!(guide.main_video_thumbnail || guide.highlight_video_thumbnail);
|
|
2790
2814
|
const stepLabel = typeof guide.step_order === "number" ? String(guide.step_order).padStart(2, "0") : "\u2014";
|
|
2791
2815
|
const durationLabel = typeof guide.highlight_video_duration_ms === "number" && guide.highlight_video_duration_ms > 0 ? formatDurationMMSS(Math.floor(guide.highlight_video_duration_ms / 1e3)) : "";
|
|
2792
|
-
return /* @__PURE__ */
|
|
2816
|
+
return /* @__PURE__ */ jsx24(
|
|
2793
2817
|
next_link_default,
|
|
2794
2818
|
{
|
|
2795
2819
|
href,
|
|
@@ -2805,10 +2829,10 @@ function OnboardingGuideCard({
|
|
|
2805
2829
|
className
|
|
2806
2830
|
),
|
|
2807
2831
|
"aria-label": `Open ${guide.title}`,
|
|
2808
|
-
children: /* @__PURE__ */
|
|
2809
|
-
/* @__PURE__ */
|
|
2810
|
-
/* @__PURE__ */
|
|
2811
|
-
coverImage ? /* @__PURE__ */
|
|
2832
|
+
children: /* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-4 p-6", children: [
|
|
2833
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-4 md:flex-row md:gap-6", children: [
|
|
2834
|
+
/* @__PURE__ */ jsx24("div", { className: "w-full flex-shrink-0 md:w-[256px]", children: /* @__PURE__ */ jsxs18("div", { className: "relative aspect-[1200/630] w-full overflow-hidden rounded-lg bg-ods-bg", children: [
|
|
2835
|
+
coverImage ? /* @__PURE__ */ jsx24(
|
|
2812
2836
|
next_image_default,
|
|
2813
2837
|
{
|
|
2814
2838
|
src: coverImage,
|
|
@@ -2818,7 +2842,7 @@ function OnboardingGuideCard({
|
|
|
2818
2842
|
className: "object-cover",
|
|
2819
2843
|
unoptimized: true
|
|
2820
2844
|
}
|
|
2821
|
-
) : /* @__PURE__ */
|
|
2845
|
+
) : /* @__PURE__ */ jsx24(
|
|
2822
2846
|
BlogImagePlaceholder,
|
|
2823
2847
|
{
|
|
2824
2848
|
title: guide.title,
|
|
@@ -2826,18 +2850,18 @@ function OnboardingGuideCard({
|
|
|
2826
2850
|
className: "absolute inset-0"
|
|
2827
2851
|
}
|
|
2828
2852
|
),
|
|
2829
|
-
hasVideoCover && coverImage && /* @__PURE__ */
|
|
2830
|
-
durationLabel && /* @__PURE__ */
|
|
2831
|
-
/* @__PURE__ */
|
|
2853
|
+
hasVideoCover && coverImage && /* @__PURE__ */ jsx24("span", { className: "absolute inset-0 flex items-center justify-center bg-black/30", children: /* @__PURE__ */ jsx24(Play2, { className: "h-10 w-10 text-ods-text-on-dark", fill: "white" }) }),
|
|
2854
|
+
durationLabel && /* @__PURE__ */ jsxs18("span", { className: "absolute bottom-2 right-2 inline-flex items-center gap-1 rounded bg-black/60 px-2 py-1 text-ods-text-on-dark text-code", children: [
|
|
2855
|
+
/* @__PURE__ */ jsx24(Clock, { className: "h-3 w-3" }),
|
|
2832
2856
|
durationLabel
|
|
2833
2857
|
] })
|
|
2834
2858
|
] }) }),
|
|
2835
|
-
/* @__PURE__ */
|
|
2836
|
-
/* @__PURE__ */
|
|
2837
|
-
/* @__PURE__ */
|
|
2859
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
2860
|
+
/* @__PURE__ */ jsx24("div", { className: "mb-3 flex min-h-[60px] items-start md:min-h-[72px]", children: /* @__PURE__ */ jsx24("h3", { className: "line-clamp-2 text-ods-text-primary text-h2", children: guide.title }) }),
|
|
2861
|
+
/* @__PURE__ */ jsx24("div", { className: "min-h-[46px] md:min-h-[52px]", children: /* @__PURE__ */ jsx24("p", { className: "line-clamp-2 text-ods-text-secondary text-h6", children: stripMarkdownPreview(guide.video_summary || guide.content || "") }) })
|
|
2838
2862
|
] })
|
|
2839
2863
|
] }),
|
|
2840
|
-
/* @__PURE__ */
|
|
2864
|
+
/* @__PURE__ */ jsx24(
|
|
2841
2865
|
EntityAuthorCard,
|
|
2842
2866
|
{
|
|
2843
2867
|
author: guide.author,
|
|
@@ -2865,22 +2889,22 @@ function OnboardingGuideCard({
|
|
|
2865
2889
|
const subtitleParts = [`Step ${guide.step_order}`, guide.section, author].filter(
|
|
2866
2890
|
(s) => typeof s === "string" && s.length > 0
|
|
2867
2891
|
);
|
|
2868
|
-
return /* @__PURE__ */
|
|
2869
|
-
/* @__PURE__ */
|
|
2870
|
-
compactCover ? /* @__PURE__ */
|
|
2871
|
-
hasVideoCover && compactCover && /* @__PURE__ */
|
|
2892
|
+
return /* @__PURE__ */ jsxs18(next_link_default, { href, target, rel, prefetch: false, className: cn(COMPACT_CARD_OUTER, className), children: [
|
|
2893
|
+
/* @__PURE__ */ jsxs18("span", { className: COMPACT_CARD_IMAGE_SLOT, children: [
|
|
2894
|
+
compactCover ? /* @__PURE__ */ jsx24(next_image_default, { src: compactCover, alt: guide.title, fill: true, sizes: "56px", className: "object-contain", unoptimized: true }) : /* @__PURE__ */ jsx24("span", { className: "flex h-full w-full items-center justify-center text-ods-accent", children: /* @__PURE__ */ jsx24(GraduationCap, { className: "h-4 w-4" }) }),
|
|
2895
|
+
hasVideoCover && compactCover && /* @__PURE__ */ jsx24("span", { className: "absolute inset-0 flex items-center justify-center bg-black/30", children: /* @__PURE__ */ jsx24(Play2, { className: "h-4 w-4 text-ods-text-on-dark", fill: "white" }) })
|
|
2872
2896
|
] }),
|
|
2873
|
-
/* @__PURE__ */
|
|
2874
|
-
/* @__PURE__ */
|
|
2875
|
-
/* @__PURE__ */
|
|
2876
|
-
/* @__PURE__ */
|
|
2897
|
+
/* @__PURE__ */ jsxs18("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2898
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx24("span", { className: cn(COMPACT_CARD_TITLE, "font-heading"), children: guide.title }) }),
|
|
2899
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx24("span", { className: "truncate text-ods-accent text-h6", children: subtitleParts.join(" \xB7 ") }) }),
|
|
2900
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_SUMMARY, children: summary2 || COMPACT_CARD_ROW_FILLER }) })
|
|
2877
2901
|
] }),
|
|
2878
|
-
/* @__PURE__ */
|
|
2902
|
+
/* @__PURE__ */ jsx24("span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ jsx24(ExternalLink, { className: "h-3.5 w-3.5" }) })
|
|
2879
2903
|
] });
|
|
2880
2904
|
}
|
|
2881
2905
|
const t = HORIZONTAL_SIZE_TOKENS.default;
|
|
2882
2906
|
const summary = stripMarkdownPreview(guide.video_summary || guide.content || "");
|
|
2883
|
-
return /* @__PURE__ */
|
|
2907
|
+
return /* @__PURE__ */ jsxs18(
|
|
2884
2908
|
next_link_default,
|
|
2885
2909
|
{
|
|
2886
2910
|
href,
|
|
@@ -2892,7 +2916,7 @@ function OnboardingGuideCard({
|
|
|
2892
2916
|
className
|
|
2893
2917
|
),
|
|
2894
2918
|
children: [
|
|
2895
|
-
/* @__PURE__ */
|
|
2919
|
+
/* @__PURE__ */ jsx24(
|
|
2896
2920
|
"span",
|
|
2897
2921
|
{
|
|
2898
2922
|
className: `inline-flex shrink-0 items-center justify-center rounded-full bg-ods-accent/10 font-semibold text-ods-accent ${t.step}`,
|
|
@@ -2900,13 +2924,13 @@ function OnboardingGuideCard({
|
|
|
2900
2924
|
children: guide.step_order
|
|
2901
2925
|
}
|
|
2902
2926
|
),
|
|
2903
|
-
/* @__PURE__ */
|
|
2904
|
-
/* @__PURE__ */
|
|
2905
|
-
/* @__PURE__ */
|
|
2906
|
-
/* @__PURE__ */
|
|
2907
|
-
/* @__PURE__ */
|
|
2927
|
+
/* @__PURE__ */ jsxs18("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
2928
|
+
/* @__PURE__ */ jsx24("span", { className: `block ${t.title} truncate text-ods-text-primary`, children: guide.title }),
|
|
2929
|
+
/* @__PURE__ */ jsxs18("span", { className: "inline-flex items-center gap-1 text-ods-text-secondary text-h6", children: [
|
|
2930
|
+
/* @__PURE__ */ jsx24(GraduationCap, { className: "h-3 w-3 shrink-0" }),
|
|
2931
|
+
/* @__PURE__ */ jsx24("span", { className: "truncate", children: guide.section })
|
|
2908
2932
|
] }),
|
|
2909
|
-
summary && /* @__PURE__ */
|
|
2933
|
+
summary && /* @__PURE__ */ jsx24("span", { className: `text-ods-text-secondary text-h6 ${t.summaryClamp}`, children: summary })
|
|
2910
2934
|
] })
|
|
2911
2935
|
]
|
|
2912
2936
|
}
|
|
@@ -2914,7 +2938,7 @@ function OnboardingGuideCard({
|
|
|
2914
2938
|
}
|
|
2915
2939
|
|
|
2916
2940
|
// src/components/ui/avatar-stack.tsx
|
|
2917
|
-
import { jsx as
|
|
2941
|
+
import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2918
2942
|
var SIZE_PX = { xs: 24, sm: 32, md: 40, lg: 48 };
|
|
2919
2943
|
var OVERLAP_PX = { xs: 8, sm: 12, md: 12, lg: 12 };
|
|
2920
2944
|
var OVERFLOW_CIRCLE_SIZE = {
|
|
@@ -2937,7 +2961,7 @@ function AvatarStack({
|
|
|
2937
2961
|
const visible = people.slice(0, faces);
|
|
2938
2962
|
const overflow = people.slice(faces);
|
|
2939
2963
|
const compact = size === "xs";
|
|
2940
|
-
return /* @__PURE__ */
|
|
2964
|
+
return /* @__PURE__ */ jsxs19(
|
|
2941
2965
|
"div",
|
|
2942
2966
|
{
|
|
2943
2967
|
className: cn("flex items-center", slots && "shrink-0", className),
|
|
@@ -2945,7 +2969,7 @@ function AvatarStack({
|
|
|
2945
2969
|
role: "group",
|
|
2946
2970
|
"aria-label": `${label}: ${people.map((p) => p.name).join(", ")}`,
|
|
2947
2971
|
children: [
|
|
2948
|
-
visible.map((person, i) => /* @__PURE__ */
|
|
2972
|
+
visible.map((person, i) => /* @__PURE__ */ jsx25(
|
|
2949
2973
|
SquareAvatar,
|
|
2950
2974
|
{
|
|
2951
2975
|
variant: "round",
|
|
@@ -2959,7 +2983,7 @@ function AvatarStack({
|
|
|
2959
2983
|
},
|
|
2960
2984
|
person.key ?? `${person.name}-${i}`
|
|
2961
2985
|
)),
|
|
2962
|
-
overflow.length > 0 && /* @__PURE__ */
|
|
2986
|
+
overflow.length > 0 && /* @__PURE__ */ jsxs19(
|
|
2963
2987
|
"span",
|
|
2964
2988
|
{
|
|
2965
2989
|
title: overflow.map((p) => p.name).join(", "),
|
|
@@ -3069,7 +3093,7 @@ function getTaskTypeLabel(customItemId) {
|
|
|
3069
3093
|
}
|
|
3070
3094
|
|
|
3071
3095
|
// src/components/chat/entity-cards/roadmap-vote-button.tsx
|
|
3072
|
-
import { jsx as
|
|
3096
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
3073
3097
|
function RoadmapVoteButton({
|
|
3074
3098
|
voteType,
|
|
3075
3099
|
count,
|
|
@@ -3081,13 +3105,13 @@ function RoadmapVoteButton({
|
|
|
3081
3105
|
className
|
|
3082
3106
|
}) {
|
|
3083
3107
|
const Icon = voteType === "up" ? ThumbsUpIcon : ThumbsDownIcon;
|
|
3084
|
-
return /* @__PURE__ */
|
|
3108
|
+
return /* @__PURE__ */ jsx26(
|
|
3085
3109
|
Button,
|
|
3086
3110
|
{
|
|
3087
3111
|
variant: "outline",
|
|
3088
3112
|
onClick,
|
|
3089
3113
|
disabled,
|
|
3090
|
-
leftIcon: /* @__PURE__ */
|
|
3114
|
+
leftIcon: /* @__PURE__ */ jsx26(Icon, { className: "h-5 w-5", color }),
|
|
3091
3115
|
className: cn(
|
|
3092
3116
|
className,
|
|
3093
3117
|
"flex h-full items-center justify-center gap-[2px] border-0 border-ods-border bg-ods-bg p-[12px]",
|
|
@@ -3095,7 +3119,7 @@ function RoadmapVoteButton({
|
|
|
3095
3119
|
"transition-all hover:bg-ods-border",
|
|
3096
3120
|
isActive && "bg-ods-border"
|
|
3097
3121
|
),
|
|
3098
|
-
children: showCount && /* @__PURE__ */
|
|
3122
|
+
children: showCount && /* @__PURE__ */ jsx26("span", { className: "text-h6", children: count })
|
|
3099
3123
|
}
|
|
3100
3124
|
);
|
|
3101
3125
|
}
|
|
@@ -3116,7 +3140,7 @@ import {
|
|
|
3116
3140
|
Repeat,
|
|
3117
3141
|
Compass
|
|
3118
3142
|
} from "lucide-react";
|
|
3119
|
-
import { jsx as
|
|
3143
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
3120
3144
|
function iconFor(customItemId) {
|
|
3121
3145
|
switch (customItemId) {
|
|
3122
3146
|
case CUSTOM_ITEM_ID.BUG:
|
|
@@ -3152,51 +3176,51 @@ function iconFor(customItemId) {
|
|
|
3152
3176
|
}
|
|
3153
3177
|
function TaskTypeIcon({ customItemId, className = "h-5 w-5" }) {
|
|
3154
3178
|
const Icon = iconFor(customItemId);
|
|
3155
|
-
return /* @__PURE__ */
|
|
3179
|
+
return /* @__PURE__ */ jsx27(Icon, { className, "aria-hidden": "true" });
|
|
3156
3180
|
}
|
|
3157
3181
|
|
|
3158
3182
|
// src/components/chat/entity-cards/roadmap-card.tsx
|
|
3159
3183
|
import { ThumbsUp, ThumbsDown } from "lucide-react";
|
|
3160
3184
|
import { useState as useState5 } from "react";
|
|
3161
|
-
import { Fragment as
|
|
3185
|
+
import { Fragment as Fragment8, jsx as jsx28, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3162
3186
|
function RoadmapCardSkeleton({ size = "default" }) {
|
|
3163
3187
|
if (size === "sm") {
|
|
3164
|
-
return /* @__PURE__ */
|
|
3165
|
-
/* @__PURE__ */
|
|
3166
|
-
/* @__PURE__ */
|
|
3167
|
-
/* @__PURE__ */
|
|
3168
|
-
/* @__PURE__ */
|
|
3169
|
-
/* @__PURE__ */
|
|
3188
|
+
return /* @__PURE__ */ jsxs20("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
3189
|
+
/* @__PURE__ */ jsx28("span", { className: "block aspect-square h-12 w-12 shrink-0 self-start rounded-md border border-ods-border bg-ods-bg p-1.5" }),
|
|
3190
|
+
/* @__PURE__ */ jsxs20("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
3191
|
+
/* @__PURE__ */ jsxs20("span", { className: `${COMPACT_CARD_TITLE_ROW} flex-nowrap gap-2`, children: [
|
|
3192
|
+
/* @__PURE__ */ jsx28("span", { className: "h-3.5 w-1/2 rounded bg-ods-bg" }),
|
|
3193
|
+
/* @__PURE__ */ jsx28("span", { className: "h-4 w-12 shrink-0 rounded bg-ods-bg/70" })
|
|
3170
3194
|
] }),
|
|
3171
|
-
/* @__PURE__ */
|
|
3172
|
-
/* @__PURE__ */
|
|
3173
|
-
/* @__PURE__ */
|
|
3174
|
-
/* @__PURE__ */
|
|
3195
|
+
/* @__PURE__ */ jsxs20("span", { className: `${COMPACT_CARD_META_ROW_BOX} flex-nowrap gap-2`, children: [
|
|
3196
|
+
/* @__PURE__ */ jsx28("span", { className: "h-3 w-2/5 flex-1 rounded bg-ods-bg/60" }),
|
|
3197
|
+
/* @__PURE__ */ jsx28("span", { className: "h-3 w-10 shrink-0 rounded bg-ods-bg/40" }),
|
|
3198
|
+
/* @__PURE__ */ jsx28("span", { className: "h-6 w-14 shrink-0 rounded-full bg-ods-bg/40" })
|
|
3175
3199
|
] }),
|
|
3176
|
-
/* @__PURE__ */
|
|
3200
|
+
/* @__PURE__ */ jsx28("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx28("span", { className: "h-3 w-5/6 rounded bg-ods-bg/40" }) })
|
|
3177
3201
|
] })
|
|
3178
3202
|
] });
|
|
3179
3203
|
}
|
|
3180
|
-
return /* @__PURE__ */
|
|
3181
|
-
/* @__PURE__ */
|
|
3182
|
-
/* @__PURE__ */
|
|
3183
|
-
/* @__PURE__ */
|
|
3184
|
-
/* @__PURE__ */
|
|
3185
|
-
/* @__PURE__ */
|
|
3204
|
+
return /* @__PURE__ */ jsxs20("div", { className: "flex h-full animate-pulse flex-col gap-4 rounded-[6px] border border-ods-border bg-ods-card p-[24px]", children: [
|
|
3205
|
+
/* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-4", children: [
|
|
3206
|
+
/* @__PURE__ */ jsx28("div", { className: "h-16 w-16 flex-shrink-0 rounded-lg bg-ods-bg" }),
|
|
3207
|
+
/* @__PURE__ */ jsxs20("div", { className: "flex-1 space-y-2", children: [
|
|
3208
|
+
/* @__PURE__ */ jsx28("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
3209
|
+
/* @__PURE__ */ jsx28("div", { className: "h-3 w-1/2 rounded bg-ods-bg/60" })
|
|
3186
3210
|
] }),
|
|
3187
|
-
/* @__PURE__ */
|
|
3211
|
+
/* @__PURE__ */ jsx28("div", { className: "h-6 w-16 rounded bg-ods-bg" })
|
|
3188
3212
|
] }),
|
|
3189
|
-
/* @__PURE__ */
|
|
3190
|
-
/* @__PURE__ */
|
|
3191
|
-
/* @__PURE__ */
|
|
3192
|
-
/* @__PURE__ */
|
|
3213
|
+
/* @__PURE__ */ jsxs20("div", { className: "space-y-2", children: [
|
|
3214
|
+
/* @__PURE__ */ jsx28("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
3215
|
+
/* @__PURE__ */ jsx28("div", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }),
|
|
3216
|
+
/* @__PURE__ */ jsx28("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" })
|
|
3193
3217
|
] }),
|
|
3194
|
-
/* @__PURE__ */
|
|
3195
|
-
/* @__PURE__ */
|
|
3196
|
-
/* @__PURE__ */
|
|
3197
|
-
/* @__PURE__ */
|
|
3198
|
-
/* @__PURE__ */
|
|
3199
|
-
/* @__PURE__ */
|
|
3218
|
+
/* @__PURE__ */ jsx28("div", { className: "flex-1" }),
|
|
3219
|
+
/* @__PURE__ */ jsxs20("div", { className: "flex items-center justify-between", children: [
|
|
3220
|
+
/* @__PURE__ */ jsx28("div", { className: "h-12 w-32 rounded bg-ods-bg" }),
|
|
3221
|
+
/* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-2", children: [
|
|
3222
|
+
/* @__PURE__ */ jsx28("div", { className: "h-6 w-14 rounded-full bg-ods-bg/60" }),
|
|
3223
|
+
/* @__PURE__ */ jsx28("div", { className: "h-8 w-20 rounded bg-ods-bg" })
|
|
3200
3224
|
] })
|
|
3201
3225
|
] })
|
|
3202
3226
|
] });
|
|
@@ -3231,13 +3255,13 @@ function RoadmapCard({
|
|
|
3231
3255
|
const hasScreenshots = (item.screenshots?.length ?? 0) > 0;
|
|
3232
3256
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
3233
3257
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
3234
|
-
const body = /* @__PURE__ */
|
|
3235
|
-
/* @__PURE__ */
|
|
3258
|
+
const body = /* @__PURE__ */ jsxs20(Fragment8, { children: [
|
|
3259
|
+
/* @__PURE__ */ jsx28(
|
|
3236
3260
|
"span",
|
|
3237
3261
|
{
|
|
3238
3262
|
className: "flex aspect-square h-12 w-12 shrink-0 items-center justify-center self-start overflow-hidden rounded-md border border-ods-border bg-ods-bg p-1.5 text-ods-accent",
|
|
3239
3263
|
title: typeLabel ?? void 0,
|
|
3240
|
-
children: useTypeIcon ? /* @__PURE__ */
|
|
3264
|
+
children: useTypeIcon ? /* @__PURE__ */ jsx28(TaskTypeIcon, { customItemId: item.customItemId, className: "h-6 w-6" }) : iconSrc ? /* @__PURE__ */ jsx28(
|
|
3241
3265
|
next_image_default,
|
|
3242
3266
|
{
|
|
3243
3267
|
src: iconSrc,
|
|
@@ -3247,13 +3271,13 @@ function RoadmapCard({
|
|
|
3247
3271
|
unoptimized: true,
|
|
3248
3272
|
className: "h-8 w-8 object-contain"
|
|
3249
3273
|
}
|
|
3250
|
-
) : /* @__PURE__ */
|
|
3274
|
+
) : /* @__PURE__ */ jsx28("span", { className: "uppercase text-ods-text-secondary text-h6", children: item.title?.substring(0, 2) || "??" })
|
|
3251
3275
|
}
|
|
3252
3276
|
),
|
|
3253
|
-
/* @__PURE__ */
|
|
3254
|
-
/* @__PURE__ */
|
|
3255
|
-
/* @__PURE__ */
|
|
3256
|
-
item.status && item.status.trim().length > 0 ? /* @__PURE__ */
|
|
3277
|
+
/* @__PURE__ */ jsxs20("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
3278
|
+
/* @__PURE__ */ jsxs20("span", { className: `${COMPACT_CARD_TITLE_ROW} gap-2`, children: [
|
|
3279
|
+
/* @__PURE__ */ jsx28("span", { className: `${COMPACT_CARD_TITLE} min-w-0`, children: item.title }),
|
|
3280
|
+
item.status && item.status.trim().length > 0 ? /* @__PURE__ */ jsx28(
|
|
3257
3281
|
StatusBadge,
|
|
3258
3282
|
{
|
|
3259
3283
|
text: item.status.toUpperCase(),
|
|
@@ -3264,8 +3288,8 @@ function RoadmapCard({
|
|
|
3264
3288
|
}
|
|
3265
3289
|
) : null
|
|
3266
3290
|
] }),
|
|
3267
|
-
/* @__PURE__ */
|
|
3268
|
-
/* @__PURE__ */
|
|
3291
|
+
/* @__PURE__ */ jsxs20("span", { className: `${COMPACT_CARD_META_ROW_BOX} gap-2 text-ods-text-secondary`, children: [
|
|
3292
|
+
/* @__PURE__ */ jsx28("span", { className: "min-w-0 flex-1 truncate text-h6", children: (() => {
|
|
3269
3293
|
const parts = [item.quarter, item.targetVersion ? `${item.targetVersion} version` : null].filter(
|
|
3270
3294
|
Boolean
|
|
3271
3295
|
);
|
|
@@ -3278,46 +3302,46 @@ function RoadmapCard({
|
|
|
3278
3302
|
}
|
|
3279
3303
|
return "Roadmap item";
|
|
3280
3304
|
})() }),
|
|
3281
|
-
hasVotes ? /* @__PURE__ */
|
|
3282
|
-
/* @__PURE__ */
|
|
3283
|
-
/* @__PURE__ */
|
|
3284
|
-
/* @__PURE__ */
|
|
3305
|
+
hasVotes ? /* @__PURE__ */ jsxs20("span", { className: "hidden shrink-0 items-center gap-2 text-ods-text-secondary text-h6 sm:flex", children: [
|
|
3306
|
+
/* @__PURE__ */ jsxs20("span", { className: "flex items-center gap-0.5", children: [
|
|
3307
|
+
/* @__PURE__ */ jsx28(ThumbsUp, { className: "h-3 w-3" }),
|
|
3308
|
+
/* @__PURE__ */ jsx28("span", { children: item.upvotes ?? 0 })
|
|
3285
3309
|
] }),
|
|
3286
|
-
/* @__PURE__ */
|
|
3287
|
-
/* @__PURE__ */
|
|
3288
|
-
/* @__PURE__ */
|
|
3310
|
+
/* @__PURE__ */ jsxs20("span", { className: "flex items-center gap-0.5", children: [
|
|
3311
|
+
/* @__PURE__ */ jsx28(ThumbsDown, { className: "h-3 w-3" }),
|
|
3312
|
+
/* @__PURE__ */ jsx28("span", { children: item.downvotes ?? 0 })
|
|
3289
3313
|
] })
|
|
3290
3314
|
] }) : null,
|
|
3291
|
-
hasFigma ? /* @__PURE__ */
|
|
3292
|
-
hasScreenshots ? /* @__PURE__ */
|
|
3315
|
+
hasFigma ? /* @__PURE__ */ jsx28("span", { className: "hidden shrink-0 items-center sm:flex", title: "Has Figma prototype", children: /* @__PURE__ */ jsx28(FigmaIcon, { className: "h-3 w-3" }) }) : null,
|
|
3316
|
+
hasScreenshots ? /* @__PURE__ */ jsxs20(
|
|
3293
3317
|
"span",
|
|
3294
3318
|
{
|
|
3295
3319
|
className: "hidden shrink-0 items-center gap-0.5 text-h6 sm:flex",
|
|
3296
3320
|
title: `${item.screenshots.length} screenshot${item.screenshots.length === 1 ? "" : "s"}`,
|
|
3297
3321
|
children: [
|
|
3298
|
-
/* @__PURE__ */
|
|
3299
|
-
/* @__PURE__ */
|
|
3322
|
+
/* @__PURE__ */ jsx28(ImageIcon, { className: "h-3 w-3" }),
|
|
3323
|
+
/* @__PURE__ */ jsx28("span", { children: item.screenshots.length })
|
|
3300
3324
|
]
|
|
3301
3325
|
}
|
|
3302
3326
|
) : null,
|
|
3303
|
-
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */
|
|
3327
|
+
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ jsx28(AvatarStack, { size: "xs", people: assigneePeople(item.assignees), className: "shrink-0" }) : null
|
|
3304
3328
|
] }),
|
|
3305
|
-
/* @__PURE__ */
|
|
3329
|
+
/* @__PURE__ */ jsx28("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx28("span", { className: COMPACT_CARD_SUMMARY, children: item.description || COMPACT_CARD_ROW_FILLER }) })
|
|
3306
3330
|
] })
|
|
3307
3331
|
] });
|
|
3308
3332
|
if (!compactHref) {
|
|
3309
|
-
return /* @__PURE__ */
|
|
3333
|
+
return /* @__PURE__ */ jsx28("span", { className: `${COMPACT_CARD_OUTER_STATIC} ${className ?? ""}`, "aria-label": "No link available", children: body });
|
|
3310
3334
|
}
|
|
3311
|
-
return /* @__PURE__ */
|
|
3335
|
+
return /* @__PURE__ */ jsx28("a", { href: compactHref, target, rel, className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: body });
|
|
3312
3336
|
}
|
|
3313
|
-
return /* @__PURE__ */
|
|
3337
|
+
return /* @__PURE__ */ jsxs20(
|
|
3314
3338
|
"div",
|
|
3315
3339
|
{
|
|
3316
3340
|
id,
|
|
3317
3341
|
className: `flex h-full scroll-mt-24 flex-col gap-[16px] rounded-[6px] border border-ods-border bg-ods-card p-[24px] transition-all hover:border-ods-accent ${className ?? ""}`,
|
|
3318
3342
|
children: [
|
|
3319
|
-
/* @__PURE__ */
|
|
3320
|
-
/* @__PURE__ */
|
|
3343
|
+
/* @__PURE__ */ jsxs20("div", { className: "flex w-full items-center gap-[16px]", children: [
|
|
3344
|
+
/* @__PURE__ */ jsx28("div", { className: "flex h-16 w-16 flex-shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg", children: iconSrc ? /* @__PURE__ */ jsx28(
|
|
3321
3345
|
next_image_default,
|
|
3322
3346
|
{
|
|
3323
3347
|
src: iconSrc,
|
|
@@ -3327,16 +3351,16 @@ function RoadmapCard({
|
|
|
3327
3351
|
unoptimized: true,
|
|
3328
3352
|
className: "object-contain p-1"
|
|
3329
3353
|
}
|
|
3330
|
-
) : /* @__PURE__ */
|
|
3331
|
-
/* @__PURE__ */
|
|
3332
|
-
/* @__PURE__ */
|
|
3333
|
-
/* @__PURE__ */
|
|
3354
|
+
) : /* @__PURE__ */ jsx28("span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: item.title?.substring(0, 2) || "??" }) }),
|
|
3355
|
+
/* @__PURE__ */ jsxs20("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3356
|
+
/* @__PURE__ */ jsx28("div", { className: "flex min-h-[48px] items-center", children: /* @__PURE__ */ jsx28("h3", { className: "line-clamp-2 flex-1 text-ods-text-primary text-h3", children: item.title }) }),
|
|
3357
|
+
/* @__PURE__ */ jsx28("div", { className: "flex min-h-[20px] items-center", children: /* @__PURE__ */ jsxs20("p", { className: "truncate text-ods-text-secondary text-h5", children: [
|
|
3334
3358
|
item.quarter,
|
|
3335
3359
|
", ",
|
|
3336
3360
|
item.id
|
|
3337
3361
|
] }) })
|
|
3338
3362
|
] }),
|
|
3339
|
-
/* @__PURE__ */
|
|
3363
|
+
/* @__PURE__ */ jsx28("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx28(
|
|
3340
3364
|
StatusBadge,
|
|
3341
3365
|
{
|
|
3342
3366
|
text: item.status.toUpperCase(),
|
|
@@ -3345,7 +3369,7 @@ function RoadmapCard({
|
|
|
3345
3369
|
}
|
|
3346
3370
|
) })
|
|
3347
3371
|
] }),
|
|
3348
|
-
/* @__PURE__ */
|
|
3372
|
+
/* @__PURE__ */ jsx28("div", { className: "md:hidden", children: /* @__PURE__ */ jsx28(
|
|
3349
3373
|
StatusBadge,
|
|
3350
3374
|
{
|
|
3351
3375
|
text: item.status.toUpperCase(),
|
|
@@ -3353,11 +3377,11 @@ function RoadmapCard({
|
|
|
3353
3377
|
className: "border border-ods-border"
|
|
3354
3378
|
}
|
|
3355
3379
|
) }),
|
|
3356
|
-
/* @__PURE__ */
|
|
3357
|
-
/* @__PURE__ */
|
|
3358
|
-
/* @__PURE__ */
|
|
3359
|
-
onVote && /* @__PURE__ */
|
|
3360
|
-
/* @__PURE__ */
|
|
3380
|
+
/* @__PURE__ */ jsx28("div", { className: "flex min-h-[72px] items-center", children: /* @__PURE__ */ jsx28("p", { className: "line-clamp-3 text-ods-text-secondary text-h4", children: item.description || "" }) }),
|
|
3381
|
+
/* @__PURE__ */ jsx28("div", { className: "flex-1" }),
|
|
3382
|
+
/* @__PURE__ */ jsxs20("div", { className: "flex w-full items-center justify-between", children: [
|
|
3383
|
+
onVote && /* @__PURE__ */ jsxs20("div", { className: "flex h-[48px] overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", children: [
|
|
3384
|
+
/* @__PURE__ */ jsx28(
|
|
3361
3385
|
RoadmapVoteButton,
|
|
3362
3386
|
{
|
|
3363
3387
|
voteType: "up",
|
|
@@ -3369,7 +3393,7 @@ function RoadmapCard({
|
|
|
3369
3393
|
disabled: isVoting
|
|
3370
3394
|
}
|
|
3371
3395
|
),
|
|
3372
|
-
/* @__PURE__ */
|
|
3396
|
+
/* @__PURE__ */ jsx28(
|
|
3373
3397
|
RoadmapVoteButton,
|
|
3374
3398
|
{
|
|
3375
3399
|
voteType: "down",
|
|
@@ -3382,34 +3406,34 @@ function RoadmapCard({
|
|
|
3382
3406
|
}
|
|
3383
3407
|
)
|
|
3384
3408
|
] }),
|
|
3385
|
-
/* @__PURE__ */
|
|
3386
|
-
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */
|
|
3387
|
-
item.screenshots && item.screenshots.length > 0 && /* @__PURE__ */
|
|
3409
|
+
/* @__PURE__ */ jsxs20("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
3410
|
+
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ jsx28(AvatarStack, { size: "xs", people: assigneePeople(item.assignees), className: "shrink-0" }) : null,
|
|
3411
|
+
item.screenshots && item.screenshots.length > 0 && /* @__PURE__ */ jsx28(
|
|
3388
3412
|
Button,
|
|
3389
3413
|
{
|
|
3390
3414
|
variant: "outline",
|
|
3391
3415
|
size: "small-legacy",
|
|
3392
3416
|
onClick: () => setShowScreenshots(true),
|
|
3393
|
-
leftIcon: /* @__PURE__ */
|
|
3417
|
+
leftIcon: /* @__PURE__ */ jsx28(ImageIcon, { className: "h-5 w-5" })
|
|
3394
3418
|
}
|
|
3395
3419
|
),
|
|
3396
3420
|
(() => {
|
|
3397
3421
|
const figmaSafe = safeHref(item.figmaUrl);
|
|
3398
|
-
return figmaSafe ? /* @__PURE__ */
|
|
3422
|
+
return figmaSafe ? /* @__PURE__ */ jsx28(
|
|
3399
3423
|
Button,
|
|
3400
3424
|
{
|
|
3401
3425
|
variant: "outline",
|
|
3402
3426
|
size: "small-legacy",
|
|
3403
3427
|
openInNewTab: true,
|
|
3404
3428
|
href: figmaSafe,
|
|
3405
|
-
leftIcon: /* @__PURE__ */
|
|
3429
|
+
leftIcon: /* @__PURE__ */ jsx28(FigmaIcon, { className: "h-5 w-5" })
|
|
3406
3430
|
}
|
|
3407
3431
|
) : null;
|
|
3408
3432
|
})(),
|
|
3409
|
-
item.targetVersion && /* @__PURE__ */
|
|
3433
|
+
item.targetVersion && /* @__PURE__ */ jsx28(StatusBadge, { gen: generationTierFromLabel(item.targetVersion), text: item.targetVersion })
|
|
3410
3434
|
] })
|
|
3411
3435
|
] }),
|
|
3412
|
-
item.screenshots && item.screenshots.length > 0 && /* @__PURE__ */
|
|
3436
|
+
item.screenshots && item.screenshots.length > 0 && /* @__PURE__ */ jsx28(
|
|
3413
3437
|
ImageGalleryModal,
|
|
3414
3438
|
{
|
|
3415
3439
|
images: item.screenshots,
|
|
@@ -3527,43 +3551,43 @@ function transformWebinarToProgram(webinar) {
|
|
|
3527
3551
|
import { format } from "date-fns";
|
|
3528
3552
|
import { ExternalLink as ExternalLink2, Clock as Clock2, Play as Play3, Video as Video2 } from "lucide-react";
|
|
3529
3553
|
import { useState as useState6 } from "react";
|
|
3530
|
-
import { Fragment as
|
|
3554
|
+
import { Fragment as Fragment9, jsx as jsx29, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3531
3555
|
function formatUtc(date, fmt) {
|
|
3532
3556
|
if (Number.isNaN(date.getTime())) return "";
|
|
3533
3557
|
return format(new Date(date.getTime() + date.getTimezoneOffset() * 6e4), fmt);
|
|
3534
3558
|
}
|
|
3535
3559
|
function ProgramCardSkeleton({ size = "default" }) {
|
|
3536
3560
|
if (size === "sm") {
|
|
3537
|
-
return /* @__PURE__ */
|
|
3538
|
-
/* @__PURE__ */
|
|
3539
|
-
/* @__PURE__ */
|
|
3540
|
-
/* @__PURE__ */
|
|
3541
|
-
/* @__PURE__ */
|
|
3542
|
-
/* @__PURE__ */
|
|
3561
|
+
return /* @__PURE__ */ jsxs21("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
3562
|
+
/* @__PURE__ */ jsx29("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
3563
|
+
/* @__PURE__ */ jsxs21("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
3564
|
+
/* @__PURE__ */ jsx29("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx29("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
3565
|
+
/* @__PURE__ */ jsx29("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx29("span", { className: "h-3 w-2/5 rounded bg-ods-bg/70" }) }),
|
|
3566
|
+
/* @__PURE__ */ jsx29("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx29("span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
3543
3567
|
] }),
|
|
3544
|
-
/* @__PURE__ */
|
|
3568
|
+
/* @__PURE__ */ jsx29("span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ jsx29("span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
3545
3569
|
] });
|
|
3546
3570
|
}
|
|
3547
|
-
return /* @__PURE__ */
|
|
3571
|
+
return /* @__PURE__ */ jsxs21(
|
|
3548
3572
|
"div",
|
|
3549
3573
|
{
|
|
3550
3574
|
className: "flex animate-pulse flex-col overflow-hidden rounded-lg border border-ods-border",
|
|
3551
3575
|
style: { backgroundColor: "var(--ods-system-greys-black)" },
|
|
3552
3576
|
children: [
|
|
3553
|
-
/* @__PURE__ */
|
|
3554
|
-
/* @__PURE__ */
|
|
3555
|
-
/* @__PURE__ */
|
|
3556
|
-
/* @__PURE__ */
|
|
3557
|
-
/* @__PURE__ */
|
|
3558
|
-
/* @__PURE__ */
|
|
3559
|
-
/* @__PURE__ */
|
|
3560
|
-
/* @__PURE__ */
|
|
3561
|
-
/* @__PURE__ */
|
|
3562
|
-
/* @__PURE__ */
|
|
3577
|
+
/* @__PURE__ */ jsx29("div", { className: "flex-1 p-6", children: /* @__PURE__ */ jsxs21("div", { className: "flex flex-col gap-4 md:flex-row md:gap-6", children: [
|
|
3578
|
+
/* @__PURE__ */ jsx29("div", { className: "h-[180px] w-full flex-shrink-0 rounded-lg bg-ods-bg md:w-[180px]" }),
|
|
3579
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex min-w-0 flex-1 flex-col gap-3", children: [
|
|
3580
|
+
/* @__PURE__ */ jsx29("div", { className: "h-7 w-3/4 rounded bg-ods-bg" }),
|
|
3581
|
+
/* @__PURE__ */ jsx29("div", { className: "h-7 w-1/2 rounded bg-ods-bg" }),
|
|
3582
|
+
/* @__PURE__ */ jsx29("div", { className: "h-4 w-1/3 rounded bg-ods-bg/60" }),
|
|
3583
|
+
/* @__PURE__ */ jsxs21("div", { className: "space-y-2", children: [
|
|
3584
|
+
/* @__PURE__ */ jsx29("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
3585
|
+
/* @__PURE__ */ jsx29("div", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }),
|
|
3586
|
+
/* @__PURE__ */ jsx29("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" })
|
|
3563
3587
|
] })
|
|
3564
3588
|
] })
|
|
3565
3589
|
] }) }),
|
|
3566
|
-
/* @__PURE__ */
|
|
3590
|
+
/* @__PURE__ */ jsx29("div", { className: "mt-auto p-6 pt-0", children: /* @__PURE__ */ jsx29("div", { className: "border-t border-ods-border pt-4", children: /* @__PURE__ */ jsx29("div", { className: "h-9 w-40 rounded bg-ods-bg" }) }) })
|
|
3567
3591
|
]
|
|
3568
3592
|
}
|
|
3569
3593
|
);
|
|
@@ -3616,14 +3640,14 @@ function MediaGallery({ images, title }) {
|
|
|
3616
3640
|
setIsModalOpen(false);
|
|
3617
3641
|
setSelectedImageIndex(null);
|
|
3618
3642
|
};
|
|
3619
|
-
return /* @__PURE__ */
|
|
3620
|
-
/* @__PURE__ */
|
|
3643
|
+
return /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
3644
|
+
/* @__PURE__ */ jsx29("div", { className: "p-6 pt-4", children: /* @__PURE__ */ jsx29("div", { className: "mb-4 overflow-x-auto", children: /* @__PURE__ */ jsx29("div", { className: "flex gap-3 pb-2", style: { width: "max-content" }, children: images.map((mediaItem, index) => /* @__PURE__ */ jsxs21(
|
|
3621
3645
|
"div",
|
|
3622
3646
|
{
|
|
3623
3647
|
className: "group/thumb relative h-24 w-24 flex-shrink-0 cursor-pointer overflow-hidden rounded-md",
|
|
3624
3648
|
onClick: (e) => openImageModal(index, e),
|
|
3625
3649
|
children: [
|
|
3626
|
-
/* @__PURE__ */
|
|
3650
|
+
/* @__PURE__ */ jsx29(
|
|
3627
3651
|
next_image_default,
|
|
3628
3652
|
{
|
|
3629
3653
|
src: mediaItem.media_url,
|
|
@@ -3635,12 +3659,12 @@ function MediaGallery({ images, title }) {
|
|
|
3635
3659
|
unoptimized: true
|
|
3636
3660
|
}
|
|
3637
3661
|
),
|
|
3638
|
-
/* @__PURE__ */
|
|
3662
|
+
/* @__PURE__ */ jsx29("div", { className: "absolute inset-0 flex items-center justify-center bg-black/20 opacity-0 transition-opacity duration-200 group-hover/thumb:opacity-100", children: /* @__PURE__ */ jsx29("div", { className: "flex h-6 w-6 items-center justify-center rounded-full bg-white/90", children: /* @__PURE__ */ jsx29("span", { className: "text-sm text-black", children: "+" }) }) })
|
|
3639
3663
|
]
|
|
3640
3664
|
},
|
|
3641
3665
|
mediaItem.id
|
|
3642
3666
|
)) }) }) }),
|
|
3643
|
-
/* @__PURE__ */
|
|
3667
|
+
/* @__PURE__ */ jsx29(
|
|
3644
3668
|
ImageGalleryModal,
|
|
3645
3669
|
{
|
|
3646
3670
|
images: images.map((img) => img.media_url),
|
|
@@ -3701,7 +3725,7 @@ function ProgramCard({
|
|
|
3701
3725
|
if (size === "portrait") {
|
|
3702
3726
|
const profile = programItemToStripProfile(item);
|
|
3703
3727
|
const dateMeta = [compactDate, compactTypeMeta()].filter(Boolean).join(" \xB7 ");
|
|
3704
|
-
return /* @__PURE__ */
|
|
3728
|
+
return /* @__PURE__ */ jsx29(
|
|
3705
3729
|
EntityPortraitCard,
|
|
3706
3730
|
{
|
|
3707
3731
|
href,
|
|
@@ -3725,17 +3749,17 @@ function ProgramCard({
|
|
|
3725
3749
|
const subtitleParts = [itemDate2, typeMeta, config.labels?.singular].filter(
|
|
3726
3750
|
(s) => typeof s === "string" && s.length > 0
|
|
3727
3751
|
);
|
|
3728
|
-
return /* @__PURE__ */
|
|
3729
|
-
/* @__PURE__ */
|
|
3730
|
-
compactCover ? /* @__PURE__ */
|
|
3731
|
-
config.type === "podcast" && !isScheduled && compactCover && /* @__PURE__ */
|
|
3752
|
+
return /* @__PURE__ */ jsxs21("a", { href, target, rel, className: cn(COMPACT_CARD_OUTER, className), children: [
|
|
3753
|
+
/* @__PURE__ */ jsxs21("span", { className: COMPACT_CARD_IMAGE_SLOT, children: [
|
|
3754
|
+
compactCover ? /* @__PURE__ */ jsx29(next_image_default, { src: compactCover, alt: item.title, fill: true, sizes: "56px", className: "object-contain", unoptimized: true }) : /* @__PURE__ */ jsx29("span", { className: "flex h-full w-full items-center justify-center text-ods-accent", children: config.type === "podcast" ? /* @__PURE__ */ jsx29(Play3, { className: "h-4 w-4" }) : config.type === "webinar" ? /* @__PURE__ */ jsx29(Video2, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx29(Clock2, { className: "h-4 w-4" }) }),
|
|
3755
|
+
config.type === "podcast" && !isScheduled && compactCover && /* @__PURE__ */ jsx29("span", { className: "absolute inset-0 flex items-center justify-center bg-black/30", children: /* @__PURE__ */ jsx29(Play3, { className: "h-4 w-4 text-ods-text-on-dark", fill: "white" }) })
|
|
3732
3756
|
] }),
|
|
3733
|
-
/* @__PURE__ */
|
|
3734
|
-
/* @__PURE__ */
|
|
3735
|
-
/* @__PURE__ */
|
|
3736
|
-
/* @__PURE__ */
|
|
3757
|
+
/* @__PURE__ */ jsxs21("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
3758
|
+
/* @__PURE__ */ jsx29("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx29("span", { className: cn(COMPACT_CARD_TITLE, "font-heading"), children: item.title }) }),
|
|
3759
|
+
/* @__PURE__ */ jsx29("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx29("span", { className: "truncate text-ods-accent text-h6", children: subtitleParts.join(" \xB7 ") }) }),
|
|
3760
|
+
/* @__PURE__ */ jsx29("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx29("span", { className: COMPACT_CARD_SUMMARY, children: item.description || COMPACT_CARD_ROW_FILLER }) })
|
|
3737
3761
|
] }),
|
|
3738
|
-
/* @__PURE__ */
|
|
3762
|
+
/* @__PURE__ */ jsx29("span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ jsx29(ExternalLink2, { className: "h-3.5 w-3.5" }) })
|
|
3739
3763
|
] });
|
|
3740
3764
|
}
|
|
3741
3765
|
const itemDate = new Date(item.date);
|
|
@@ -3743,25 +3767,25 @@ function ProgramCard({
|
|
|
3743
3767
|
const defaultRenderMeta = () => {
|
|
3744
3768
|
if (config.type === "podcast" && "duration_seconds" in item && !isScheduled) {
|
|
3745
3769
|
const dur = item.duration_seconds;
|
|
3746
|
-
return /* @__PURE__ */
|
|
3747
|
-
/* @__PURE__ */
|
|
3748
|
-
/* @__PURE__ */
|
|
3770
|
+
return /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
3771
|
+
/* @__PURE__ */ jsx29(Clock2, { className: "h-4 w-4 text-ods-text-secondary" }),
|
|
3772
|
+
/* @__PURE__ */ jsx29("span", { className: "font-body text-ods-text-secondary", children: formatDurationCompact(typeof dur === "number" ? dur : null) })
|
|
3749
3773
|
] });
|
|
3750
3774
|
}
|
|
3751
3775
|
if (config.type === "event" && "location_name" in item) {
|
|
3752
3776
|
const loc = item.location_name;
|
|
3753
|
-
return /* @__PURE__ */
|
|
3777
|
+
return /* @__PURE__ */ jsx29("span", { className: "font-body text-ods-text-secondary", children: typeof loc === "string" && loc || "Location TBD" });
|
|
3754
3778
|
}
|
|
3755
3779
|
if (config.type === "webinar" && "start_at" in item) {
|
|
3756
3780
|
const { startAt, endAt, timezone } = webinarTiming(item);
|
|
3757
3781
|
const duration = formatDurationFromRange(startAt, endAt);
|
|
3758
|
-
return /* @__PURE__ */
|
|
3759
|
-
/* @__PURE__ */
|
|
3760
|
-
/* @__PURE__ */
|
|
3782
|
+
return /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
3783
|
+
/* @__PURE__ */ jsx29(Video2, { className: "h-4 w-4 text-ods-text-secondary" }),
|
|
3784
|
+
/* @__PURE__ */ jsxs21("span", { className: "font-body text-ods-text-secondary", children: [
|
|
3761
3785
|
formatTimeWithTimezone(startAt, timezone),
|
|
3762
3786
|
duration && ` \xB7 ${duration}`
|
|
3763
3787
|
] }),
|
|
3764
|
-
timezone && /* @__PURE__ */
|
|
3788
|
+
timezone && /* @__PURE__ */ jsxs21("span", { className: "text-ods-text-secondary text-h6", children: [
|
|
3765
3789
|
"(",
|
|
3766
3790
|
timezone,
|
|
3767
3791
|
")"
|
|
@@ -3770,9 +3794,9 @@ function ProgramCard({
|
|
|
3770
3794
|
}
|
|
3771
3795
|
return null;
|
|
3772
3796
|
};
|
|
3773
|
-
const cardHeader = /* @__PURE__ */
|
|
3774
|
-
coverImage && /* @__PURE__ */
|
|
3775
|
-
/* @__PURE__ */
|
|
3797
|
+
const cardHeader = /* @__PURE__ */ jsx29("div", { className: "flex-1 border-ods-border p-6", children: /* @__PURE__ */ jsxs21("div", { className: "flex flex-col gap-4 md:flex-row md:gap-6", children: [
|
|
3798
|
+
coverImage && /* @__PURE__ */ jsx29("div", { className: "flex w-full flex-shrink-0 items-center md:w-[180px]", children: /* @__PURE__ */ jsxs21("div", { className: "relative overflow-hidden rounded-lg", children: [
|
|
3799
|
+
/* @__PURE__ */ jsx29(
|
|
3776
3800
|
next_image_default,
|
|
3777
3801
|
{
|
|
3778
3802
|
src: coverImage,
|
|
@@ -3783,23 +3807,23 @@ function ProgramCard({
|
|
|
3783
3807
|
unoptimized: true
|
|
3784
3808
|
}
|
|
3785
3809
|
),
|
|
3786
|
-
config.type === "podcast" && !isScheduled && /* @__PURE__ */
|
|
3810
|
+
config.type === "podcast" && !isScheduled && /* @__PURE__ */ jsx29("div", { className: "absolute inset-0 flex items-center justify-center rounded-lg bg-black/40 opacity-0 transition-opacity group-hover:opacity-100", children: /* @__PURE__ */ jsx29(Play3, { className: "h-10 w-10 text-ods-text-on-dark", fill: "white" }) })
|
|
3787
3811
|
] }) }),
|
|
3788
|
-
/* @__PURE__ */
|
|
3789
|
-
/* @__PURE__ */
|
|
3790
|
-
/* @__PURE__ */
|
|
3791
|
-
/* @__PURE__ */
|
|
3792
|
-
renderMeta ? /* @__PURE__ */
|
|
3793
|
-
/* @__PURE__ */
|
|
3812
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3813
|
+
/* @__PURE__ */ jsx29("h3", { className: "mb-3 line-clamp-2 flex min-h-[3rem] items-center text-ods-text-primary text-h2 md:min-h-[3.5rem]", children: item.title }),
|
|
3814
|
+
/* @__PURE__ */ jsxs21("div", { className: "mb-4 flex flex-col gap-2 md:flex-row md:items-center md:gap-4", children: [
|
|
3815
|
+
/* @__PURE__ */ jsx29("span", { className: "text-h6", style: { color: accentColor }, children: dateFormat }),
|
|
3816
|
+
renderMeta ? /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
3817
|
+
/* @__PURE__ */ jsx29("span", { className: "hidden text-ods-text-secondary md:inline", children: "\u2022" }),
|
|
3794
3818
|
renderMeta(item)
|
|
3795
|
-
] }) : defaultRenderMeta() && /* @__PURE__ */
|
|
3796
|
-
/* @__PURE__ */
|
|
3797
|
-
/* @__PURE__ */
|
|
3819
|
+
] }) : defaultRenderMeta() && /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
3820
|
+
/* @__PURE__ */ jsx29("span", { className: "hidden text-ods-text-secondary md:inline", children: "\u2022" }),
|
|
3821
|
+
/* @__PURE__ */ jsx29("div", { className: "flex items-center gap-2", children: defaultRenderMeta() })
|
|
3798
3822
|
] })
|
|
3799
3823
|
] }),
|
|
3800
|
-
/* @__PURE__ */
|
|
3824
|
+
/* @__PURE__ */ jsx29("div", { className: "flex-1", children: /* @__PURE__ */ jsx29("p", { className: "line-clamp-3 min-h-[4.5rem] text-ods-text-secondary text-h6", children: item.description }) })
|
|
3801
3825
|
] }),
|
|
3802
|
-
hosts.length > 0 && /* @__PURE__ */
|
|
3826
|
+
hosts.length > 0 && /* @__PURE__ */ jsx29("div", { className: "md:text-right", children: /* @__PURE__ */ jsx29("div", { className: "flex flex-wrap gap-2 md:justify-end", children: hosts.map((host, index) => /* @__PURE__ */ jsx29(
|
|
3803
3827
|
SquareAvatar,
|
|
3804
3828
|
{
|
|
3805
3829
|
variant: "round",
|
|
@@ -3817,7 +3841,7 @@ function ProgramCard({
|
|
|
3817
3841
|
);
|
|
3818
3842
|
const cardFrameStyle = { backgroundColor: "var(--ods-system-greys-black)" };
|
|
3819
3843
|
if (wholeCardClickable) {
|
|
3820
|
-
return /* @__PURE__ */
|
|
3844
|
+
return /* @__PURE__ */ jsxs21(
|
|
3821
3845
|
"a",
|
|
3822
3846
|
{
|
|
3823
3847
|
href,
|
|
@@ -3828,8 +3852,8 @@ function ProgramCard({
|
|
|
3828
3852
|
"aria-label": `Open ${item.title}`,
|
|
3829
3853
|
children: [
|
|
3830
3854
|
cardHeader,
|
|
3831
|
-
images.length > 0 && /* @__PURE__ */
|
|
3832
|
-
/* @__PURE__ */
|
|
3855
|
+
images.length > 0 && /* @__PURE__ */ jsx29(MediaGallery, { images, title: item.title }),
|
|
3856
|
+
/* @__PURE__ */ jsx29("div", { className: "mt-auto p-6 pt-0", children: /* @__PURE__ */ jsx29("div", { className: "border-t border-ods-border pt-4", children: /* @__PURE__ */ jsxs21(
|
|
3833
3857
|
"span",
|
|
3834
3858
|
{
|
|
3835
3859
|
className: "inline-flex items-center gap-2 rounded-md border border-ods-accent px-4 py-2 text-ods-accent text-h6",
|
|
@@ -3838,7 +3862,7 @@ function ProgramCard({
|
|
|
3838
3862
|
"View ",
|
|
3839
3863
|
config.labels.singular,
|
|
3840
3864
|
" Details",
|
|
3841
|
-
/* @__PURE__ */
|
|
3865
|
+
/* @__PURE__ */ jsx29(ExternalLink2, { className: "h-5 w-5" })
|
|
3842
3866
|
]
|
|
3843
3867
|
}
|
|
3844
3868
|
) }) })
|
|
@@ -3846,17 +3870,17 @@ function ProgramCard({
|
|
|
3846
3870
|
}
|
|
3847
3871
|
);
|
|
3848
3872
|
}
|
|
3849
|
-
return /* @__PURE__ */
|
|
3850
|
-
/* @__PURE__ */
|
|
3851
|
-
images.length > 0 && /* @__PURE__ */
|
|
3852
|
-
/* @__PURE__ */
|
|
3873
|
+
return /* @__PURE__ */ jsxs21("div", { className: cardFrameClass, style: cardFrameStyle, children: [
|
|
3874
|
+
/* @__PURE__ */ jsx29("a", { href, target, rel, className: "block", "aria-label": `Open ${item.title}`, children: cardHeader }),
|
|
3875
|
+
images.length > 0 && /* @__PURE__ */ jsx29(MediaGallery, { images, title: item.title }),
|
|
3876
|
+
/* @__PURE__ */ jsx29("div", { className: "mt-auto p-6 pt-0", children: /* @__PURE__ */ jsx29("div", { className: "border-t border-ods-border pt-4", children: /* @__PURE__ */ jsxs21(
|
|
3853
3877
|
Button,
|
|
3854
3878
|
{
|
|
3855
3879
|
variant: "outline",
|
|
3856
3880
|
size: "small-legacy",
|
|
3857
3881
|
href,
|
|
3858
3882
|
openInNewTab: target === "_blank",
|
|
3859
|
-
rightIcon: /* @__PURE__ */
|
|
3883
|
+
rightIcon: /* @__PURE__ */ jsx29(ExternalLink2, { className: "h-5 w-5" }),
|
|
3860
3884
|
children: [
|
|
3861
3885
|
"View ",
|
|
3862
3886
|
config.labels.singular,
|
|
@@ -3946,10 +3970,12 @@ var BUILDERS = {
|
|
|
3946
3970
|
// the related-content rail + author page), entry-shaped rows.
|
|
3947
3971
|
what_i_shipped: (ids, b) => `${b}/api/what-i-shipped?ids=${ids.join(",")}&limit=${ids.length}`,
|
|
3948
3972
|
how_i_work: (ids, b) => `${b}/api/how-i-work?ids=${ids.join(",")}&limit=${ids.length}`,
|
|
3973
|
+
ai_prompt: (ids, b) => `${b}/api/prompts?ids=${ids.join(",")}&limit=${ids.length}`,
|
|
3949
3974
|
// Product-hub internal objects — per-object card-hydration routes
|
|
3950
3975
|
// (ChatRef-shaped items, `handleEntityCardList`), like github / slack.
|
|
3951
3976
|
design_doc: (ids, b) => `${b}/api/design-docs?ids=${ids.join(",")}`,
|
|
3952
|
-
openframe_tenant: (ids, b) => `${b}/api/openframe-tenants?ids=${ids.join(",")}
|
|
3977
|
+
openframe_tenant: (ids, b) => `${b}/api/openframe-tenants?ids=${ids.join(",")}`,
|
|
3978
|
+
prospect_call: (ids, b) => `${b}/api/prospect-calls?ids=${ids.join(",")}`
|
|
3953
3979
|
};
|
|
3954
3980
|
function buildListUrl(contentRefType, ids, base = "") {
|
|
3955
3981
|
if (ids.length === 0) return null;
|
|
@@ -4044,6 +4070,8 @@ export {
|
|
|
4044
4070
|
WhatIShippedCardSkeleton,
|
|
4045
4071
|
HowIWorkCard,
|
|
4046
4072
|
HowIWorkCardSkeleton,
|
|
4073
|
+
AiPromptCard,
|
|
4074
|
+
AiPromptCardSkeleton,
|
|
4047
4075
|
DEFAULT_VIDEO_BITES_TITLE,
|
|
4048
4076
|
toStripProfile,
|
|
4049
4077
|
sortBitesByCreatedAtDesc,
|
|
@@ -4108,4 +4136,4 @@ export {
|
|
|
4108
4136
|
canonicalContentRefType,
|
|
4109
4137
|
buildListUrl
|
|
4110
4138
|
};
|
|
4111
|
-
//# sourceMappingURL=chunk-
|
|
4139
|
+
//# sourceMappingURL=chunk-43JQ3SJS.js.map
|