@flamingo-stack/openframe-frontend-core 0.0.617 → 0.0.619-2160.6147.1
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-UVK7AQAG.js → chunk-3BNNYHP2.js} +3 -3
- package/dist/{chunk-VHS3OYE4.js → chunk-3Z5ZIKDX.js} +2532 -2460
- package/dist/chunk-3Z5ZIKDX.js.map +1 -0
- package/dist/{chunk-BJDQZH62.cjs → chunk-4ZGUSO7M.cjs} +5 -5
- package/dist/{chunk-BJDQZH62.cjs.map → chunk-4ZGUSO7M.cjs.map} +1 -1
- package/dist/{chunk-HGPGF6SF.js → chunk-5DUTXG6P.js} +3 -3
- 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-GBON2OCG.js → chunk-5WGOAJ4B.js} +3 -2
- package/dist/chunk-5WGOAJ4B.js.map +1 -0
- package/dist/{chunk-FP5WYJ3S.js → chunk-65SWJSQX.js} +8 -3
- package/dist/{chunk-FP5WYJ3S.js.map → chunk-65SWJSQX.js.map} +1 -1
- package/dist/{chunk-BLUL2TE3.js → chunk-7HWVD42H.js} +24 -4
- package/dist/chunk-7HWVD42H.js.map +1 -0
- package/dist/{chunk-HR6CHKD6.cjs → chunk-AU2Q75HU.cjs} +6 -6
- package/dist/{chunk-HR6CHKD6.cjs.map → chunk-AU2Q75HU.cjs.map} +1 -1
- package/dist/{chunk-45OAW4M2.js → chunk-D4ARG53E.js} +6 -6
- 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-67XFJ442.cjs → chunk-DXR23SLZ.cjs} +523 -451
- package/dist/chunk-DXR23SLZ.cjs.map +1 -0
- 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-TRY3CUWJ.cjs → chunk-EIFU6N5L.cjs} +29 -29
- package/dist/{chunk-TRY3CUWJ.cjs.map → chunk-EIFU6N5L.cjs.map} +1 -1
- package/dist/{chunk-UQEOAPAI.cjs → chunk-EYKTKDRK.cjs} +101 -58
- package/dist/chunk-EYKTKDRK.cjs.map +1 -0
- package/dist/{chunk-IW746HJ7.js → chunk-FHR2JU2J.js} +2 -2
- package/dist/{chunk-7GLJC4EO.cjs → chunk-GAPXVAS6.cjs} +151 -146
- package/dist/chunk-GAPXVAS6.cjs.map +1 -0
- package/dist/{chunk-QPAPUIF3.cjs → chunk-GNWKLE7O.cjs} +58 -38
- package/dist/chunk-GNWKLE7O.cjs.map +1 -0
- package/dist/{chunk-VNNIRX23.cjs → chunk-HF4EZICZ.cjs} +3 -3
- package/dist/{chunk-VNNIRX23.cjs.map → chunk-HF4EZICZ.cjs.map} +1 -1
- package/dist/{chunk-CXEGV3ZS.js → chunk-HPIRQWNK.js} +3 -3
- package/dist/{chunk-CGCV4QT2.js → chunk-I7RWVDN4.js} +5 -5
- package/dist/{chunk-RZURBPBS.js → chunk-J27HVNT2.js} +4 -4
- package/dist/{chunk-WFM5OAM6.js → chunk-JA2SIJ7T.js} +4 -4
- package/dist/{chunk-UVXMIZYK.js → chunk-JBXNDB5U.js} +8 -8
- package/dist/{chunk-JZELYIFZ.cjs → chunk-KQDGZS3U.cjs} +33 -33
- package/dist/{chunk-JZELYIFZ.cjs.map → chunk-KQDGZS3U.cjs.map} +1 -1
- package/dist/{chunk-7YHUP5BR.js → chunk-LPGBA4UZ.js} +3 -3
- package/dist/{chunk-2OJVGAGX.cjs → chunk-M4V2O2MT.cjs} +12 -12
- package/dist/{chunk-2OJVGAGX.cjs.map → chunk-M4V2O2MT.cjs.map} +1 -1
- package/dist/{chunk-VJJ7LGOI.js → chunk-MJRXGAXS.js} +5 -5
- package/dist/{chunk-V23BJC2Q.cjs → chunk-NOW7NGUH.cjs} +15 -15
- package/dist/{chunk-V23BJC2Q.cjs.map → chunk-NOW7NGUH.cjs.map} +1 -1
- package/dist/{chunk-GH4F4ODL.js → chunk-OD4JKGQG.js} +8 -8
- package/dist/{chunk-FMNS5NN2.cjs → chunk-P3I5KY4A.cjs} +20 -20
- package/dist/{chunk-FMNS5NN2.cjs.map → chunk-P3I5KY4A.cjs.map} +1 -1
- package/dist/{chunk-USP3UWID.cjs → chunk-QVOS4BPC.cjs} +65 -65
- package/dist/{chunk-USP3UWID.cjs.map → chunk-QVOS4BPC.cjs.map} +1 -1
- package/dist/{chunk-ZJYZOOTU.js → chunk-RTC3H5RW.js} +4 -4
- package/dist/{chunk-RU3IKVY2.js → chunk-S44BHDOI.js} +507 -464
- package/dist/chunk-S44BHDOI.js.map +1 -0
- package/dist/{chunk-6RMFEGJ4.js → chunk-SKRI6QJ5.js} +2 -2
- package/dist/{chunk-7FFKXXWY.cjs → chunk-U7MQS4CR.cjs} +88 -88
- package/dist/{chunk-7FFKXXWY.cjs.map → chunk-U7MQS4CR.cjs.map} +1 -1
- package/dist/{chunk-332JHI2D.cjs → chunk-UP2OB7RI.cjs} +11 -11
- package/dist/{chunk-332JHI2D.cjs.map → chunk-UP2OB7RI.cjs.map} +1 -1
- package/dist/{chunk-ULM5FCFN.cjs → chunk-UWPZT3FY.cjs} +6 -6
- package/dist/{chunk-ULM5FCFN.cjs.map → chunk-UWPZT3FY.cjs.map} +1 -1
- package/dist/{chunk-TSCIVH7T.js → chunk-VBIFSOPQ.js} +2 -2
- package/dist/{chunk-ZQOK4TCN.cjs → chunk-XRWY5ETC.cjs} +22 -22
- package/dist/{chunk-ZQOK4TCN.cjs.map → chunk-XRWY5ETC.cjs.map} +1 -1
- package/dist/{chunk-LFLJ3IHE.cjs → chunk-YNA7ZCDS.cjs} +28 -28
- package/dist/{chunk-LFLJ3IHE.cjs.map → chunk-YNA7ZCDS.cjs.map} +1 -1
- package/dist/{chunk-5KKLN7Q2.js → chunk-ZPJ6KYAW.js} +3 -3
- 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.map +1 -1
- package/dist/components/chat/entity-cards/index.d.ts +2 -0
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +7 -3
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +6 -2
- 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 +225 -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 +342 -194
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +40 -40
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.js +8 -8
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- 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/avatar-stack.d.ts +16 -3
- package/dist/components/ui/avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +13 -5
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +12 -4
- package/dist/components/ui/people-cell.d.ts +46 -0
- package/dist/components/ui/people-cell.d.ts.map +1 -0
- package/dist/index.cjs +19 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -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/utils/content-ref-groups.d.ts.map +1 -1
- package/dist/utils/format.d.ts +8 -0
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/index.cjs +10 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +10 -2
- 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/components/chat/entity-cards/ai-prompt-card.tsx +62 -0
- package/src/components/chat/entity-cards/dispatch.tsx +3 -1
- package/src/components/chat/entity-cards/index.ts +2 -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/meeting-scheduler/context-panel.tsx +1 -1
- package/src/components/meeting-scheduler/directory.tsx +1 -1
- package/src/components/related-content/__tests__/card-registry.test.tsx +7 -0
- package/src/components/related-content/card-registry.tsx +20 -1
- package/src/components/ui/__tests__/people-cell.test.tsx +97 -0
- package/src/components/ui/avatar-stack.tsx +40 -13
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/people-cell.tsx +133 -0
- package/src/components/ui/table/__tests__/header-hint.test.tsx +2 -2
- package/src/types/marketing.ts +1 -0
- package/src/utils/__tests__/list-url.test.ts +1 -0
- package/src/utils/content-ref-groups.ts +1 -0
- package/src/utils/format.ts +13 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/list-url.ts +1 -0
- package/src/utils/source-icons.ts +3 -0
- package/dist/chunk-67XFJ442.cjs.map +0 -1
- package/dist/chunk-7GLJC4EO.cjs.map +0 -1
- package/dist/chunk-BLUL2TE3.js.map +0 -1
- package/dist/chunk-GBON2OCG.js.map +0 -1
- package/dist/chunk-QPAPUIF3.cjs.map +0 -1
- package/dist/chunk-RU3IKVY2.js.map +0 -1
- package/dist/chunk-UQEOAPAI.cjs.map +0 -1
- package/dist/chunk-VHS3OYE4.js.map +0 -1
- /package/dist/{chunk-UVK7AQAG.js.map → chunk-3BNNYHP2.js.map} +0 -0
- /package/dist/{chunk-HGPGF6SF.js.map → chunk-5DUTXG6P.js.map} +0 -0
- /package/dist/{chunk-45OAW4M2.js.map → chunk-D4ARG53E.js.map} +0 -0
- /package/dist/{chunk-IW746HJ7.js.map → chunk-FHR2JU2J.js.map} +0 -0
- /package/dist/{chunk-CXEGV3ZS.js.map → chunk-HPIRQWNK.js.map} +0 -0
- /package/dist/{chunk-CGCV4QT2.js.map → chunk-I7RWVDN4.js.map} +0 -0
- /package/dist/{chunk-RZURBPBS.js.map → chunk-J27HVNT2.js.map} +0 -0
- /package/dist/{chunk-WFM5OAM6.js.map → chunk-JA2SIJ7T.js.map} +0 -0
- /package/dist/{chunk-UVXMIZYK.js.map → chunk-JBXNDB5U.js.map} +0 -0
- /package/dist/{chunk-7YHUP5BR.js.map → chunk-LPGBA4UZ.js.map} +0 -0
- /package/dist/{chunk-VJJ7LGOI.js.map → chunk-MJRXGAXS.js.map} +0 -0
- /package/dist/{chunk-GH4F4ODL.js.map → chunk-OD4JKGQG.js.map} +0 -0
- /package/dist/{chunk-ZJYZOOTU.js.map → chunk-RTC3H5RW.js.map} +0 -0
- /package/dist/{chunk-6RMFEGJ4.js.map → chunk-SKRI6QJ5.js.map} +0 -0
- /package/dist/{chunk-TSCIVH7T.js.map → chunk-VBIFSOPQ.js.map} +0 -0
- /package/dist/{chunk-5KKLN7Q2.js.map → chunk-ZPJ6KYAW.js.map} +0 -0
|
@@ -163,6 +163,10 @@ function nameInitials(name, fallback = "E", options = {}) {
|
|
|
163
163
|
function personInitials(name) {
|
|
164
164
|
return nameInitials(name, "", { pick: "first-last" });
|
|
165
165
|
}
|
|
166
|
+
function personFirstName(name, fallback = null) {
|
|
167
|
+
const first = (typeof name === "string" ? name.trim() : "").split(/\s+/)[0];
|
|
168
|
+
return first || fallback;
|
|
169
|
+
}
|
|
166
170
|
function singleInitial(name) {
|
|
167
171
|
return nameInitials(name, "?", { maxLetters: 1 });
|
|
168
172
|
}
|
|
@@ -1494,6 +1498,30 @@ function HowIWorkCard({ entry, placeholderUrl, actions, anchorProps, className }
|
|
|
1494
1498
|
}
|
|
1495
1499
|
var HowIWorkCardSkeleton = EmployeeEntryCardSkeleton;
|
|
1496
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
|
+
|
|
1497
1525
|
// src/components/features/video-bites-shared.ts
|
|
1498
1526
|
var DEFAULT_VIDEO_BITES_TITLE = "Key Moments";
|
|
1499
1527
|
function toStripProfile(p, fallbackSubtitle) {
|
|
@@ -1519,7 +1547,7 @@ function sortBitesByFeaturedAtDesc(a, b) {
|
|
|
1519
1547
|
|
|
1520
1548
|
// src/components/shared/product-release/product-release-card.tsx
|
|
1521
1549
|
import { AlertTriangle, Eye, Package, Play, Sparkles, TrendingUp, Wrench } from "lucide-react";
|
|
1522
|
-
import { Fragment as
|
|
1550
|
+
import { Fragment as Fragment5, jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1523
1551
|
function ProductReleaseCard({
|
|
1524
1552
|
title,
|
|
1525
1553
|
summary,
|
|
@@ -1570,10 +1598,10 @@ function ProductReleaseCard({
|
|
|
1570
1598
|
"no-underline",
|
|
1571
1599
|
className
|
|
1572
1600
|
);
|
|
1573
|
-
const innerLayout = /* @__PURE__ */
|
|
1574
|
-
/* @__PURE__ */
|
|
1575
|
-
/* @__PURE__ */
|
|
1576
|
-
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(
|
|
1577
1605
|
next_image_default,
|
|
1578
1606
|
{
|
|
1579
1607
|
src: coverImage,
|
|
@@ -1583,44 +1611,44 @@ function ProductReleaseCard({
|
|
|
1583
1611
|
className: "object-cover",
|
|
1584
1612
|
unoptimized: true
|
|
1585
1613
|
}
|
|
1586
|
-
) : /* @__PURE__ */
|
|
1587
|
-
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" }) })
|
|
1588
1616
|
] }) }),
|
|
1589
|
-
/* @__PURE__ */
|
|
1590
|
-
/* @__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: [
|
|
1591
1619
|
"v",
|
|
1592
1620
|
version
|
|
1593
1621
|
] }) }),
|
|
1594
|
-
/* @__PURE__ */
|
|
1595
|
-
/* @__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 ?? "" }) })
|
|
1596
1624
|
] })
|
|
1597
1625
|
] }),
|
|
1598
|
-
/* @__PURE__ */
|
|
1599
|
-
changelogCounts.features > 0 && /* @__PURE__ */
|
|
1600
|
-
/* @__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" }),
|
|
1601
1629
|
changelogCounts.features,
|
|
1602
1630
|
" ",
|
|
1603
1631
|
changelogCounts.features === 1 ? "feature" : "features"
|
|
1604
1632
|
] }),
|
|
1605
|
-
changelogCounts.fixes > 0 && /* @__PURE__ */
|
|
1606
|
-
/* @__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" }),
|
|
1607
1635
|
changelogCounts.fixes,
|
|
1608
1636
|
" ",
|
|
1609
1637
|
changelogCounts.fixes === 1 ? "fix" : "fixes"
|
|
1610
1638
|
] }),
|
|
1611
|
-
changelogCounts.improvements > 0 && /* @__PURE__ */
|
|
1612
|
-
/* @__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" }),
|
|
1613
1641
|
changelogCounts.improvements,
|
|
1614
1642
|
" ",
|
|
1615
1643
|
changelogCounts.improvements === 1 ? "improvement" : "improvements"
|
|
1616
1644
|
] }),
|
|
1617
|
-
changelogCounts.breaking > 0 && /* @__PURE__ */
|
|
1618
|
-
/* @__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" }),
|
|
1619
1647
|
changelogCounts.breaking,
|
|
1620
1648
|
" breaking"
|
|
1621
1649
|
] })
|
|
1622
|
-
] }) : /* @__PURE__ */
|
|
1623
|
-
/* @__PURE__ */
|
|
1650
|
+
] }) : /* @__PURE__ */ jsx18("span", { className: "text-ods-text-secondary", children: "No changelog entries yet" }) }),
|
|
1651
|
+
/* @__PURE__ */ jsxs12(
|
|
1624
1652
|
"div",
|
|
1625
1653
|
{
|
|
1626
1654
|
className: cn(
|
|
@@ -1629,8 +1657,8 @@ function ProductReleaseCard({
|
|
|
1629
1657
|
"w-full overflow-hidden rounded-md border border-ods-border"
|
|
1630
1658
|
),
|
|
1631
1659
|
children: [
|
|
1632
|
-
valueCells.map((cell, i) => /* @__PURE__ */
|
|
1633
|
-
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(
|
|
1634
1662
|
StatusBadge,
|
|
1635
1663
|
{
|
|
1636
1664
|
text: cell.value,
|
|
@@ -1639,7 +1667,7 @@ function ProductReleaseCard({
|
|
|
1639
1667
|
singleLine: true,
|
|
1640
1668
|
className: "self-start"
|
|
1641
1669
|
}
|
|
1642
|
-
) : /* @__PURE__ */
|
|
1670
|
+
) : /* @__PURE__ */ jsx18(
|
|
1643
1671
|
"p",
|
|
1644
1672
|
{
|
|
1645
1673
|
className: cn(
|
|
@@ -1651,10 +1679,10 @@ function ProductReleaseCard({
|
|
|
1651
1679
|
children: cell.uppercase ? cell.value.toLocaleUpperCase() : cell.value
|
|
1652
1680
|
}
|
|
1653
1681
|
),
|
|
1654
|
-
/* @__PURE__ */
|
|
1682
|
+
/* @__PURE__ */ jsx18("p", { className: "text-ods-text-secondary text-h6", children: cell.label })
|
|
1655
1683
|
] }) }, `${cell.label}-${i}`)),
|
|
1656
|
-
/* @__PURE__ */
|
|
1657
|
-
/* @__PURE__ */
|
|
1684
|
+
/* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-3 bg-ods-card p-4", children: [
|
|
1685
|
+
/* @__PURE__ */ jsx18(
|
|
1658
1686
|
SquareAvatar,
|
|
1659
1687
|
{
|
|
1660
1688
|
src: effectiveAuthor.avatar_url ?? void 0,
|
|
@@ -1664,29 +1692,29 @@ function ProductReleaseCard({
|
|
|
1664
1692
|
variant: "round"
|
|
1665
1693
|
}
|
|
1666
1694
|
),
|
|
1667
|
-
/* @__PURE__ */
|
|
1668
|
-
/* @__PURE__ */
|
|
1669
|
-
/* @__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" })
|
|
1670
1698
|
] })
|
|
1671
1699
|
] })
|
|
1672
1700
|
]
|
|
1673
1701
|
}
|
|
1674
1702
|
),
|
|
1675
|
-
typeof viewCount === "number" && viewCount > 0 && /* @__PURE__ */
|
|
1676
|
-
/* @__PURE__ */
|
|
1677
|
-
/* @__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: [
|
|
1678
1706
|
viewCount.toLocaleString(),
|
|
1679
1707
|
" views"
|
|
1680
1708
|
] })
|
|
1681
1709
|
] })
|
|
1682
1710
|
] });
|
|
1683
1711
|
if (anchorProps) {
|
|
1684
|
-
return /* @__PURE__ */
|
|
1712
|
+
return /* @__PURE__ */ jsx18("a", { ...anchorProps, className: frameClass, "aria-label": `Open ${title}`, children: innerLayout });
|
|
1685
1713
|
}
|
|
1686
1714
|
if (onClick) {
|
|
1687
|
-
return /* @__PURE__ */
|
|
1715
|
+
return /* @__PURE__ */ jsx18(InteractiveCard, { clickable: true, onClick, className: frameClass, children: innerLayout });
|
|
1688
1716
|
}
|
|
1689
|
-
return /* @__PURE__ */
|
|
1717
|
+
return /* @__PURE__ */ jsx18("div", { className: cn(frameClass.replace("hover:border-ods-accent", "").replace("hover:translate-y-[-2px]", "")), children: innerLayout });
|
|
1690
1718
|
}
|
|
1691
1719
|
if (size === "sm") {
|
|
1692
1720
|
const handleKey = (e) => {
|
|
@@ -1713,24 +1741,24 @@ function ProductReleaseCard({
|
|
|
1713
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",
|
|
1714
1742
|
className
|
|
1715
1743
|
);
|
|
1716
|
-
const innerChildren = /* @__PURE__ */
|
|
1717
|
-
/* @__PURE__ */
|
|
1718
|
-
coverImage ? /* @__PURE__ */
|
|
1719
|
-
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" }) })
|
|
1720
1748
|
] }),
|
|
1721
|
-
/* @__PURE__ */
|
|
1722
|
-
/* @__PURE__ */
|
|
1723
|
-
/* @__PURE__ */
|
|
1724
|
-
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
|
|
1725
1753
|
] }),
|
|
1726
|
-
/* @__PURE__ */
|
|
1727
|
-
/* @__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" }) })
|
|
1728
1756
|
] })
|
|
1729
1757
|
] });
|
|
1730
1758
|
if (anchorProps) {
|
|
1731
|
-
return /* @__PURE__ */
|
|
1759
|
+
return /* @__PURE__ */ jsx18("a", { ...anchorProps, className: outerClassName, children: innerChildren });
|
|
1732
1760
|
}
|
|
1733
|
-
return /* @__PURE__ */
|
|
1761
|
+
return /* @__PURE__ */ jsx18(
|
|
1734
1762
|
"span",
|
|
1735
1763
|
{
|
|
1736
1764
|
role: onClick ? "button" : void 0,
|
|
@@ -1746,10 +1774,10 @@ function ProductReleaseCard({
|
|
|
1746
1774
|
}
|
|
1747
1775
|
|
|
1748
1776
|
// src/components/shared/product-release/product-release-card-skeleton.tsx
|
|
1749
|
-
import { jsx as
|
|
1777
|
+
import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1750
1778
|
function ProductReleaseCardSkeleton({ className, size = "lg" }) {
|
|
1751
1779
|
if (size === "lg") {
|
|
1752
|
-
return /* @__PURE__ */
|
|
1780
|
+
return /* @__PURE__ */ jsxs13(
|
|
1753
1781
|
"div",
|
|
1754
1782
|
{
|
|
1755
1783
|
className: cn(
|
|
@@ -1759,39 +1787,39 @@ function ProductReleaseCardSkeleton({ className, size = "lg" }) {
|
|
|
1759
1787
|
className
|
|
1760
1788
|
),
|
|
1761
1789
|
children: [
|
|
1762
|
-
/* @__PURE__ */
|
|
1763
|
-
/* @__PURE__ */
|
|
1764
|
-
/* @__PURE__ */
|
|
1765
|
-
/* @__PURE__ */
|
|
1766
|
-
/* @__PURE__ */
|
|
1767
|
-
/* @__PURE__ */
|
|
1768
|
-
/* @__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]" })
|
|
1769
1797
|
] }),
|
|
1770
|
-
/* @__PURE__ */
|
|
1771
|
-
/* @__PURE__ */
|
|
1772
|
-
/* @__PURE__ */
|
|
1773
|
-
/* @__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" })
|
|
1774
1802
|
] })
|
|
1775
1803
|
] })
|
|
1776
1804
|
] }),
|
|
1777
|
-
/* @__PURE__ */
|
|
1778
|
-
/* @__PURE__ */
|
|
1779
|
-
[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(
|
|
1780
1808
|
"div",
|
|
1781
1809
|
{
|
|
1782
1810
|
className: "flex flex-col gap-3 border-b border-ods-border bg-ods-card p-4 md:border-b-0 md:border-r",
|
|
1783
|
-
children: /* @__PURE__ */
|
|
1784
|
-
/* @__PURE__ */
|
|
1785
|
-
/* @__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" })
|
|
1786
1814
|
] })
|
|
1787
1815
|
},
|
|
1788
1816
|
`cell-${i}`
|
|
1789
1817
|
)),
|
|
1790
|
-
/* @__PURE__ */
|
|
1791
|
-
/* @__PURE__ */
|
|
1792
|
-
/* @__PURE__ */
|
|
1793
|
-
/* @__PURE__ */
|
|
1794
|
-
/* @__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" })
|
|
1795
1823
|
] })
|
|
1796
1824
|
] })
|
|
1797
1825
|
] })
|
|
@@ -1800,7 +1828,7 @@ function ProductReleaseCardSkeleton({ className, size = "lg" }) {
|
|
|
1800
1828
|
);
|
|
1801
1829
|
}
|
|
1802
1830
|
if (size === "sm") {
|
|
1803
|
-
return /* @__PURE__ */
|
|
1831
|
+
return /* @__PURE__ */ jsxs13(
|
|
1804
1832
|
"span",
|
|
1805
1833
|
{
|
|
1806
1834
|
className: cn(
|
|
@@ -1809,14 +1837,14 @@ function ProductReleaseCardSkeleton({ className, size = "lg" }) {
|
|
|
1809
1837
|
className
|
|
1810
1838
|
),
|
|
1811
1839
|
children: [
|
|
1812
|
-
/* @__PURE__ */
|
|
1813
|
-
/* @__PURE__ */
|
|
1814
|
-
/* @__PURE__ */
|
|
1815
|
-
/* @__PURE__ */
|
|
1816
|
-
/* @__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" })
|
|
1817
1845
|
] }),
|
|
1818
|
-
/* @__PURE__ */
|
|
1819
|
-
/* @__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" }) })
|
|
1820
1848
|
] })
|
|
1821
1849
|
]
|
|
1822
1850
|
}
|
|
@@ -2003,28 +2031,28 @@ function useEntityCardPlaceholder({
|
|
|
2003
2031
|
}
|
|
2004
2032
|
|
|
2005
2033
|
// src/components/chat/entity-cards/blog-card.tsx
|
|
2006
|
-
import { Fragment as
|
|
2034
|
+
import { Fragment as Fragment6, jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2007
2035
|
function BlogCardSkeleton({ size = "default" }) {
|
|
2008
2036
|
if (size === "sm") {
|
|
2009
|
-
return /* @__PURE__ */
|
|
2010
|
-
/* @__PURE__ */
|
|
2011
|
-
/* @__PURE__ */
|
|
2012
|
-
/* @__PURE__ */
|
|
2013
|
-
/* @__PURE__ */
|
|
2014
|
-
/* @__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" }) })
|
|
2015
2043
|
] })
|
|
2016
2044
|
] });
|
|
2017
2045
|
}
|
|
2018
|
-
return /* @__PURE__ */
|
|
2019
|
-
/* @__PURE__ */
|
|
2020
|
-
/* @__PURE__ */
|
|
2021
|
-
/* @__PURE__ */
|
|
2022
|
-
/* @__PURE__ */
|
|
2023
|
-
/* @__PURE__ */
|
|
2024
|
-
/* @__PURE__ */
|
|
2025
|
-
/* @__PURE__ */
|
|
2026
|
-
/* @__PURE__ */
|
|
2027
|
-
/* @__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" })
|
|
2028
2056
|
] })
|
|
2029
2057
|
] })
|
|
2030
2058
|
] });
|
|
@@ -2062,7 +2090,7 @@ function BlogCard({
|
|
|
2062
2090
|
timeZone: "UTC"
|
|
2063
2091
|
}) : "";
|
|
2064
2092
|
const firstCategory = post.categories?.find((c) => c && c.name)?.name;
|
|
2065
|
-
return /* @__PURE__ */
|
|
2093
|
+
return /* @__PURE__ */ jsxs14(
|
|
2066
2094
|
"a",
|
|
2067
2095
|
{
|
|
2068
2096
|
href,
|
|
@@ -2071,7 +2099,7 @@ function BlogCard({
|
|
|
2071
2099
|
className: cn(COMPACT_CARD_OUTER, className),
|
|
2072
2100
|
"aria-label": `Read article: ${post.title}`,
|
|
2073
2101
|
children: [
|
|
2074
|
-
/* @__PURE__ */
|
|
2102
|
+
/* @__PURE__ */ jsx20("span", { className: COMPACT_CARD_IMAGE_SLOT, children: displayImage ? /* @__PURE__ */ jsx20(
|
|
2075
2103
|
next_image_default,
|
|
2076
2104
|
{
|
|
2077
2105
|
src: displayImage,
|
|
@@ -2083,17 +2111,17 @@ function BlogCard({
|
|
|
2083
2111
|
onError: onImageError
|
|
2084
2112
|
}
|
|
2085
2113
|
) : null }),
|
|
2086
|
-
/* @__PURE__ */
|
|
2087
|
-
/* @__PURE__ */
|
|
2088
|
-
/* @__PURE__ */
|
|
2089
|
-
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
|
|
2090
2118
|
] }),
|
|
2091
|
-
/* @__PURE__ */
|
|
2119
|
+
/* @__PURE__ */ jsx20("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsxs14("span", { className: COMPACT_CARD_SUBTITLE, children: [
|
|
2092
2120
|
dateStr2,
|
|
2093
2121
|
dateStr2 && firstCategory ? " \xB7 " : "",
|
|
2094
2122
|
firstCategory ?? "Blog Post"
|
|
2095
2123
|
] }) }),
|
|
2096
|
-
/* @__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 }) })
|
|
2097
2125
|
] })
|
|
2098
2126
|
]
|
|
2099
2127
|
}
|
|
@@ -2106,7 +2134,7 @@ function BlogCard({
|
|
|
2106
2134
|
day: "numeric",
|
|
2107
2135
|
timeZone: "UTC"
|
|
2108
2136
|
}) : "";
|
|
2109
|
-
return /* @__PURE__ */
|
|
2137
|
+
return /* @__PURE__ */ jsx20(
|
|
2110
2138
|
EntityPortraitCard,
|
|
2111
2139
|
{
|
|
2112
2140
|
href,
|
|
@@ -2132,7 +2160,7 @@ function BlogCard({
|
|
|
2132
2160
|
day: "numeric",
|
|
2133
2161
|
timeZone: "UTC"
|
|
2134
2162
|
}) : "";
|
|
2135
|
-
return /* @__PURE__ */
|
|
2163
|
+
return /* @__PURE__ */ jsx20(
|
|
2136
2164
|
"article",
|
|
2137
2165
|
{
|
|
2138
2166
|
className: cn(
|
|
@@ -2144,7 +2172,7 @@ function BlogCard({
|
|
|
2144
2172
|
className
|
|
2145
2173
|
),
|
|
2146
2174
|
role: "article",
|
|
2147
|
-
children: /* @__PURE__ */
|
|
2175
|
+
children: /* @__PURE__ */ jsxs14(
|
|
2148
2176
|
"a",
|
|
2149
2177
|
{
|
|
2150
2178
|
href,
|
|
@@ -2153,7 +2181,7 @@ function BlogCard({
|
|
|
2153
2181
|
className: "flex h-full flex-col focus:outline-none",
|
|
2154
2182
|
"aria-label": `Read article: ${post.title}`,
|
|
2155
2183
|
children: [
|
|
2156
|
-
/* @__PURE__ */
|
|
2184
|
+
/* @__PURE__ */ jsx20("div", { className: "relative aspect-[1200/630] w-full overflow-hidden bg-ods-bg", children: displayImage ? /* @__PURE__ */ jsx20(
|
|
2157
2185
|
next_image_default,
|
|
2158
2186
|
{
|
|
2159
2187
|
src: displayImage,
|
|
@@ -2167,8 +2195,8 @@ function BlogCard({
|
|
|
2167
2195
|
onError: onImageError
|
|
2168
2196
|
}
|
|
2169
2197
|
) : null }),
|
|
2170
|
-
/* @__PURE__ */
|
|
2171
|
-
/* @__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(
|
|
2172
2200
|
"h3",
|
|
2173
2201
|
{
|
|
2174
2202
|
className: cn(
|
|
@@ -2180,10 +2208,10 @@ function BlogCard({
|
|
|
2180
2208
|
children: post.title
|
|
2181
2209
|
}
|
|
2182
2210
|
) }),
|
|
2183
|
-
/* @__PURE__ */
|
|
2184
|
-
/* @__PURE__ */
|
|
2185
|
-
/* @__PURE__ */
|
|
2186
|
-
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(
|
|
2187
2215
|
next_image_default,
|
|
2188
2216
|
{
|
|
2189
2217
|
src: post.author_avatar,
|
|
@@ -2194,22 +2222,22 @@ function BlogCard({
|
|
|
2194
2222
|
unoptimized: true
|
|
2195
2223
|
}
|
|
2196
2224
|
) : null,
|
|
2197
|
-
/* @__PURE__ */
|
|
2225
|
+
/* @__PURE__ */ jsxs14("span", { className: "truncate", children: [
|
|
2198
2226
|
post.author_name || "Anonymous",
|
|
2199
|
-
dateStr ? /* @__PURE__ */
|
|
2227
|
+
dateStr ? /* @__PURE__ */ jsxs14(Fragment6, { children: [
|
|
2200
2228
|
" \xB7 ",
|
|
2201
2229
|
dateStr
|
|
2202
2230
|
] }) : null
|
|
2203
2231
|
] })
|
|
2204
2232
|
] }),
|
|
2205
|
-
/* @__PURE__ */
|
|
2233
|
+
/* @__PURE__ */ jsxs14(
|
|
2206
2234
|
"div",
|
|
2207
2235
|
{
|
|
2208
2236
|
className: "flex shrink-0 items-center gap-1",
|
|
2209
2237
|
"aria-label": `View count: ${(post.view_count ?? 0).toLocaleString("en-US")} views`,
|
|
2210
2238
|
children: [
|
|
2211
|
-
/* @__PURE__ */
|
|
2212
|
-
/* @__PURE__ */
|
|
2239
|
+
/* @__PURE__ */ jsx20(Eye2, { className: "h-4 w-4 shrink-0" }),
|
|
2240
|
+
/* @__PURE__ */ jsx20("span", { children: (post.view_count ?? 0).toLocaleString("en-US") })
|
|
2213
2241
|
]
|
|
2214
2242
|
}
|
|
2215
2243
|
)
|
|
@@ -2223,29 +2251,29 @@ function BlogCard({
|
|
|
2223
2251
|
}
|
|
2224
2252
|
|
|
2225
2253
|
// src/components/chat/entity-cards/case-study-card.tsx
|
|
2226
|
-
import { jsx as
|
|
2254
|
+
import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2227
2255
|
function CaseStudyCardSkeleton({ size = "default" }) {
|
|
2228
2256
|
if (size === "sm") {
|
|
2229
|
-
return /* @__PURE__ */
|
|
2230
|
-
/* @__PURE__ */
|
|
2231
|
-
/* @__PURE__ */
|
|
2232
|
-
/* @__PURE__ */
|
|
2233
|
-
/* @__PURE__ */
|
|
2234
|
-
/* @__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" }) })
|
|
2235
2263
|
] })
|
|
2236
2264
|
] });
|
|
2237
2265
|
}
|
|
2238
|
-
return /* @__PURE__ */
|
|
2239
|
-
/* @__PURE__ */
|
|
2240
|
-
/* @__PURE__ */
|
|
2241
|
-
/* @__PURE__ */
|
|
2242
|
-
/* @__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" })
|
|
2243
2271
|
] }),
|
|
2244
|
-
/* @__PURE__ */
|
|
2245
|
-
/* @__PURE__ */
|
|
2246
|
-
/* @__PURE__ */
|
|
2247
|
-
/* @__PURE__ */
|
|
2248
|
-
/* @__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" })
|
|
2249
2277
|
] })
|
|
2250
2278
|
] })
|
|
2251
2279
|
] });
|
|
@@ -2274,8 +2302,8 @@ function CaseStudyCard({
|
|
|
2274
2302
|
});
|
|
2275
2303
|
const coverImage = study.featured_image || placeholderUrl || null;
|
|
2276
2304
|
if (size === "sm") {
|
|
2277
|
-
return /* @__PURE__ */
|
|
2278
|
-
/* @__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(
|
|
2279
2307
|
next_image_default,
|
|
2280
2308
|
{
|
|
2281
2309
|
src: coverImage,
|
|
@@ -2287,15 +2315,15 @@ function CaseStudyCard({
|
|
|
2287
2315
|
onError: hideOnError
|
|
2288
2316
|
}
|
|
2289
2317
|
) : null }),
|
|
2290
|
-
/* @__PURE__ */
|
|
2291
|
-
/* @__PURE__ */
|
|
2292
|
-
/* @__PURE__ */
|
|
2293
|
-
/* @__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 }) })
|
|
2294
2322
|
] })
|
|
2295
2323
|
] });
|
|
2296
2324
|
}
|
|
2297
2325
|
if (size === "portrait") {
|
|
2298
|
-
return /* @__PURE__ */
|
|
2326
|
+
return /* @__PURE__ */ jsx21(
|
|
2299
2327
|
EntityPortraitCard,
|
|
2300
2328
|
{
|
|
2301
2329
|
href,
|
|
@@ -2316,8 +2344,8 @@ function CaseStudyCard({
|
|
|
2316
2344
|
}
|
|
2317
2345
|
);
|
|
2318
2346
|
}
|
|
2319
|
-
return /* @__PURE__ */
|
|
2320
|
-
/* @__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(
|
|
2321
2349
|
next_image_default,
|
|
2322
2350
|
{
|
|
2323
2351
|
src: coverImage,
|
|
@@ -2329,10 +2357,10 @@ function CaseStudyCard({
|
|
|
2329
2357
|
onError: hideOnError
|
|
2330
2358
|
}
|
|
2331
2359
|
) }),
|
|
2332
|
-
/* @__PURE__ */
|
|
2333
|
-
/* @__PURE__ */
|
|
2334
|
-
/* @__PURE__ */
|
|
2335
|
-
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(
|
|
2336
2364
|
next_image_default,
|
|
2337
2365
|
{
|
|
2338
2366
|
src: study.user.avatar_url,
|
|
@@ -2342,8 +2370,8 @@ function CaseStudyCard({
|
|
|
2342
2370
|
height: 48,
|
|
2343
2371
|
unoptimized: true
|
|
2344
2372
|
}
|
|
2345
|
-
) : /* @__PURE__ */
|
|
2346
|
-
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(
|
|
2347
2375
|
next_image_default,
|
|
2348
2376
|
{
|
|
2349
2377
|
src: study.msp.icon_url,
|
|
@@ -2355,15 +2383,15 @@ function CaseStudyCard({
|
|
|
2355
2383
|
}
|
|
2356
2384
|
) })
|
|
2357
2385
|
] }),
|
|
2358
|
-
/* @__PURE__ */
|
|
2359
|
-
/* @__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: [
|
|
2360
2388
|
study.user?.full_name || "Anonymous",
|
|
2361
|
-
study.msp?.name && /* @__PURE__ */
|
|
2389
|
+
study.msp?.name && /* @__PURE__ */ jsxs15("span", { className: "text-ods-text-secondary", children: [
|
|
2362
2390
|
" \u2022 ",
|
|
2363
2391
|
study.msp.name
|
|
2364
2392
|
] })
|
|
2365
2393
|
] }),
|
|
2366
|
-
/* @__PURE__ */
|
|
2394
|
+
/* @__PURE__ */ jsx21("p", { className: "truncate text-ods-text-secondary text-h6", children: study.user?.job_title || "\xA0" })
|
|
2367
2395
|
] })
|
|
2368
2396
|
] }) })
|
|
2369
2397
|
] }) });
|
|
@@ -2371,34 +2399,34 @@ function CaseStudyCard({
|
|
|
2371
2399
|
|
|
2372
2400
|
// src/components/chat/entity-cards/customer-interview-card.tsx
|
|
2373
2401
|
import { Video } from "lucide-react";
|
|
2374
|
-
import { Fragment as
|
|
2402
|
+
import { Fragment as Fragment7, jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2375
2403
|
function CustomerInterviewCardSkeleton({ size = "default" }) {
|
|
2376
2404
|
if (size === "sm") {
|
|
2377
|
-
return /* @__PURE__ */
|
|
2378
|
-
/* @__PURE__ */
|
|
2379
|
-
/* @__PURE__ */
|
|
2380
|
-
/* @__PURE__ */
|
|
2381
|
-
/* @__PURE__ */
|
|
2382
|
-
/* @__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" }) })
|
|
2383
2411
|
] })
|
|
2384
2412
|
] });
|
|
2385
2413
|
}
|
|
2386
|
-
return /* @__PURE__ */
|
|
2387
|
-
/* @__PURE__ */
|
|
2388
|
-
/* @__PURE__ */
|
|
2389
|
-
/* @__PURE__ */
|
|
2390
|
-
/* @__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" })
|
|
2391
2419
|
] }),
|
|
2392
|
-
/* @__PURE__ */
|
|
2393
|
-
/* @__PURE__ */
|
|
2394
|
-
/* @__PURE__ */
|
|
2395
|
-
/* @__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" })
|
|
2396
2424
|
] }),
|
|
2397
|
-
/* @__PURE__ */
|
|
2398
|
-
/* @__PURE__ */
|
|
2399
|
-
/* @__PURE__ */
|
|
2400
|
-
/* @__PURE__ */
|
|
2401
|
-
/* @__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" })
|
|
2402
2430
|
] })
|
|
2403
2431
|
] })
|
|
2404
2432
|
] });
|
|
@@ -2427,9 +2455,9 @@ function CustomerInterviewCard({
|
|
|
2427
2455
|
});
|
|
2428
2456
|
const thumbnailUrl = interview.featured_image || placeholderUrl || null;
|
|
2429
2457
|
if (size === "sm") {
|
|
2430
|
-
return /* @__PURE__ */
|
|
2431
|
-
/* @__PURE__ */
|
|
2432
|
-
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(
|
|
2433
2461
|
next_image_default,
|
|
2434
2462
|
{
|
|
2435
2463
|
src: thumbnailUrl,
|
|
@@ -2441,17 +2469,17 @@ function CustomerInterviewCard({
|
|
|
2441
2469
|
onError: hideOnError
|
|
2442
2470
|
}
|
|
2443
2471
|
) : null,
|
|
2444
|
-
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
|
|
2445
2473
|
] }),
|
|
2446
|
-
/* @__PURE__ */
|
|
2447
|
-
/* @__PURE__ */
|
|
2448
|
-
/* @__PURE__ */
|
|
2449
|
-
/* @__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 }) })
|
|
2450
2478
|
] })
|
|
2451
2479
|
] });
|
|
2452
2480
|
}
|
|
2453
2481
|
if (size === "portrait") {
|
|
2454
|
-
return /* @__PURE__ */
|
|
2482
|
+
return /* @__PURE__ */ jsx22(
|
|
2455
2483
|
EntityPortraitCard,
|
|
2456
2484
|
{
|
|
2457
2485
|
href,
|
|
@@ -2472,9 +2500,9 @@ function CustomerInterviewCard({
|
|
|
2472
2500
|
}
|
|
2473
2501
|
);
|
|
2474
2502
|
}
|
|
2475
|
-
return /* @__PURE__ */
|
|
2476
|
-
/* @__PURE__ */
|
|
2477
|
-
/* @__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(
|
|
2478
2506
|
next_image_default,
|
|
2479
2507
|
{
|
|
2480
2508
|
src: thumbnailUrl,
|
|
@@ -2486,13 +2514,13 @@ function CustomerInterviewCard({
|
|
|
2486
2514
|
onError: hideOnError
|
|
2487
2515
|
}
|
|
2488
2516
|
),
|
|
2489
|
-
interview.main_video_url && /* @__PURE__ */
|
|
2490
|
-
] }) : /* @__PURE__ */
|
|
2491
|
-
/* @__PURE__ */
|
|
2492
|
-
interview.video_summary && /* @__PURE__ */
|
|
2493
|
-
/* @__PURE__ */
|
|
2494
|
-
/* @__PURE__ */
|
|
2495
|
-
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(
|
|
2496
2524
|
next_image_default,
|
|
2497
2525
|
{
|
|
2498
2526
|
src: interview.user.avatar_url,
|
|
@@ -2502,8 +2530,8 @@ function CustomerInterviewCard({
|
|
|
2502
2530
|
height: 48,
|
|
2503
2531
|
unoptimized: true
|
|
2504
2532
|
}
|
|
2505
|
-
) : /* @__PURE__ */
|
|
2506
|
-
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(
|
|
2507
2535
|
next_image_default,
|
|
2508
2536
|
{
|
|
2509
2537
|
src: interview.msp.icon_url,
|
|
@@ -2515,15 +2543,15 @@ function CustomerInterviewCard({
|
|
|
2515
2543
|
}
|
|
2516
2544
|
) })
|
|
2517
2545
|
] }),
|
|
2518
|
-
/* @__PURE__ */
|
|
2519
|
-
/* @__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: [
|
|
2520
2548
|
interview.user?.full_name || "Anonymous",
|
|
2521
|
-
interview.msp?.name && /* @__PURE__ */
|
|
2549
|
+
interview.msp?.name && /* @__PURE__ */ jsxs16("span", { className: "text-ods-text-secondary", children: [
|
|
2522
2550
|
" \u2022 ",
|
|
2523
2551
|
interview.msp.name
|
|
2524
2552
|
] })
|
|
2525
2553
|
] }),
|
|
2526
|
-
/* @__PURE__ */
|
|
2554
|
+
/* @__PURE__ */ jsx22("p", { className: "truncate text-ods-text-secondary text-h6", children: interview.user?.job_title || " " })
|
|
2527
2555
|
] })
|
|
2528
2556
|
] }) })
|
|
2529
2557
|
] }) });
|
|
@@ -2545,28 +2573,28 @@ function formatInvestorUpdatePeriod(start, end, options) {
|
|
|
2545
2573
|
|
|
2546
2574
|
// src/components/chat/entity-cards/investor-update-card.tsx
|
|
2547
2575
|
import { Calendar } from "lucide-react";
|
|
2548
|
-
import { jsx as
|
|
2576
|
+
import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2549
2577
|
function InvestorUpdateCardSkeleton({ size = "default" }) {
|
|
2550
2578
|
if (size === "sm") {
|
|
2551
|
-
return /* @__PURE__ */
|
|
2552
|
-
/* @__PURE__ */
|
|
2553
|
-
/* @__PURE__ */
|
|
2554
|
-
/* @__PURE__ */
|
|
2555
|
-
/* @__PURE__ */
|
|
2556
|
-
/* @__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" })
|
|
2557
2585
|
] }),
|
|
2558
|
-
/* @__PURE__ */
|
|
2559
|
-
/* @__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" }) })
|
|
2560
2588
|
] })
|
|
2561
2589
|
] });
|
|
2562
2590
|
}
|
|
2563
|
-
return /* @__PURE__ */
|
|
2564
|
-
/* @__PURE__ */
|
|
2565
|
-
/* @__PURE__ */
|
|
2566
|
-
/* @__PURE__ */
|
|
2567
|
-
/* @__PURE__ */
|
|
2568
|
-
/* @__PURE__ */
|
|
2569
|
-
/* @__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" })
|
|
2570
2598
|
] })
|
|
2571
2599
|
] });
|
|
2572
2600
|
}
|
|
@@ -2595,8 +2623,8 @@ function InvestorUpdateCard({
|
|
|
2595
2623
|
const coverImage = update.featured_image || placeholderUrl || null;
|
|
2596
2624
|
if (size === "sm") {
|
|
2597
2625
|
const periodText = formatInvestorUpdatePeriod(update.period_start, update.period_end);
|
|
2598
|
-
return /* @__PURE__ */
|
|
2599
|
-
/* @__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(
|
|
2600
2628
|
next_image_default,
|
|
2601
2629
|
{
|
|
2602
2630
|
src: coverImage,
|
|
@@ -2610,23 +2638,23 @@ function InvestorUpdateCard({
|
|
|
2610
2638
|
img.style.display = "none";
|
|
2611
2639
|
}
|
|
2612
2640
|
}
|
|
2613
|
-
) : /* @__PURE__ */
|
|
2614
|
-
/* @__PURE__ */
|
|
2615
|
-
/* @__PURE__ */
|
|
2616
|
-
/* @__PURE__ */
|
|
2617
|
-
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: [
|
|
2618
2646
|
"#",
|
|
2619
2647
|
update.update_number
|
|
2620
2648
|
] }) : null
|
|
2621
2649
|
] }),
|
|
2622
|
-
/* @__PURE__ */
|
|
2623
|
-
/* @__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 }) })
|
|
2624
2652
|
] })
|
|
2625
2653
|
] });
|
|
2626
2654
|
}
|
|
2627
2655
|
if (size === "portrait") {
|
|
2628
2656
|
const periodText = formatInvestorUpdatePeriod(update.period_start, update.period_end);
|
|
2629
|
-
return /* @__PURE__ */
|
|
2657
|
+
return /* @__PURE__ */ jsx23(
|
|
2630
2658
|
EntityPortraitCard,
|
|
2631
2659
|
{
|
|
2632
2660
|
href,
|
|
@@ -2642,20 +2670,20 @@ function InvestorUpdateCard({
|
|
|
2642
2670
|
}
|
|
2643
2671
|
);
|
|
2644
2672
|
}
|
|
2645
|
-
return /* @__PURE__ */
|
|
2673
|
+
return /* @__PURE__ */ jsx23("a", { href, target, rel, className: `block h-full ${className ?? ""}`, children: /* @__PURE__ */ jsx23(
|
|
2646
2674
|
AdminContentCard,
|
|
2647
2675
|
{
|
|
2648
2676
|
imageUrl: update.featured_image,
|
|
2649
2677
|
placeholderUrl,
|
|
2650
2678
|
title: update.title || `Update #${update.update_number || "?"}`,
|
|
2651
2679
|
summary: update.strategic_update?.slice(0, 120) || update.content?.slice(0, 120) || "No description",
|
|
2652
|
-
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: [
|
|
2653
2681
|
"#",
|
|
2654
2682
|
update.update_number
|
|
2655
2683
|
] }) : void 0,
|
|
2656
|
-
meta: update.period_start || update.period_end ? /* @__PURE__ */
|
|
2657
|
-
/* @__PURE__ */
|
|
2658
|
-
/* @__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) })
|
|
2659
2687
|
] }) : void 0
|
|
2660
2688
|
}
|
|
2661
2689
|
) });
|
|
@@ -2663,7 +2691,7 @@ function InvestorUpdateCard({
|
|
|
2663
2691
|
|
|
2664
2692
|
// src/components/chat/entity-cards/onboarding-guide-card.tsx
|
|
2665
2693
|
import { Clock, ExternalLink, GraduationCap, Play as Play2 } from "lucide-react";
|
|
2666
|
-
import { jsx as
|
|
2694
|
+
import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2667
2695
|
function stripMarkdownPreview(text) {
|
|
2668
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");
|
|
2669
2697
|
}
|
|
@@ -2677,64 +2705,64 @@ var HORIZONTAL_SIZE_TOKENS = {
|
|
|
2677
2705
|
};
|
|
2678
2706
|
function OnboardingGuideCardSkeleton({ size = "default" }) {
|
|
2679
2707
|
if (size === "catalog") {
|
|
2680
|
-
return /* @__PURE__ */
|
|
2681
|
-
/* @__PURE__ */
|
|
2682
|
-
/* @__PURE__ */
|
|
2683
|
-
/* @__PURE__ */
|
|
2684
|
-
/* @__PURE__ */
|
|
2685
|
-
/* @__PURE__ */
|
|
2686
|
-
/* @__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]" })
|
|
2687
2715
|
] }),
|
|
2688
|
-
/* @__PURE__ */
|
|
2689
|
-
/* @__PURE__ */
|
|
2690
|
-
/* @__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" })
|
|
2691
2719
|
] })
|
|
2692
2720
|
] })
|
|
2693
2721
|
] }),
|
|
2694
|
-
/* @__PURE__ */
|
|
2695
|
-
[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(
|
|
2696
2724
|
"div",
|
|
2697
2725
|
{
|
|
2698
2726
|
className: "flex flex-col gap-3 border-b border-ods-border bg-ods-card p-4 md:border-b-0 md:border-r",
|
|
2699
|
-
children: /* @__PURE__ */
|
|
2700
|
-
/* @__PURE__ */
|
|
2701
|
-
/* @__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" })
|
|
2702
2730
|
] })
|
|
2703
2731
|
},
|
|
2704
2732
|
`cell-${i}`
|
|
2705
2733
|
)),
|
|
2706
|
-
/* @__PURE__ */
|
|
2707
|
-
/* @__PURE__ */
|
|
2708
|
-
/* @__PURE__ */
|
|
2709
|
-
/* @__PURE__ */
|
|
2710
|
-
/* @__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" })
|
|
2711
2739
|
] })
|
|
2712
2740
|
] })
|
|
2713
2741
|
] })
|
|
2714
2742
|
] });
|
|
2715
2743
|
}
|
|
2716
2744
|
if (size === "sm") {
|
|
2717
|
-
return /* @__PURE__ */
|
|
2718
|
-
/* @__PURE__ */
|
|
2719
|
-
/* @__PURE__ */
|
|
2720
|
-
/* @__PURE__ */
|
|
2721
|
-
/* @__PURE__ */
|
|
2722
|
-
/* @__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" }) })
|
|
2723
2751
|
] }),
|
|
2724
|
-
/* @__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" }) })
|
|
2725
2753
|
] });
|
|
2726
2754
|
}
|
|
2727
2755
|
const t = HORIZONTAL_SIZE_TOKENS.default;
|
|
2728
|
-
return /* @__PURE__ */
|
|
2756
|
+
return /* @__PURE__ */ jsxs18(
|
|
2729
2757
|
"span",
|
|
2730
2758
|
{
|
|
2731
2759
|
className: `flex items-start gap-3 rounded-md border border-ods-border bg-ods-card ${t.padding} animate-pulse`,
|
|
2732
2760
|
children: [
|
|
2733
|
-
/* @__PURE__ */
|
|
2734
|
-
/* @__PURE__ */
|
|
2735
|
-
/* @__PURE__ */
|
|
2736
|
-
/* @__PURE__ */
|
|
2737
|
-
/* @__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" })
|
|
2738
2766
|
] })
|
|
2739
2767
|
]
|
|
2740
2768
|
}
|
|
@@ -2764,7 +2792,7 @@ function OnboardingGuideCard({
|
|
|
2764
2792
|
});
|
|
2765
2793
|
if (size === "portrait") {
|
|
2766
2794
|
const coverImage = guide.featured_image || guide.main_video_thumbnail || guide.og_image_url || null;
|
|
2767
|
-
return /* @__PURE__ */
|
|
2795
|
+
return /* @__PURE__ */ jsx24(
|
|
2768
2796
|
EntityPortraitCard,
|
|
2769
2797
|
{
|
|
2770
2798
|
href,
|
|
@@ -2785,7 +2813,7 @@ function OnboardingGuideCard({
|
|
|
2785
2813
|
const hasVideoCover = !!(guide.main_video_thumbnail || guide.highlight_video_thumbnail);
|
|
2786
2814
|
const stepLabel = typeof guide.step_order === "number" ? String(guide.step_order).padStart(2, "0") : "\u2014";
|
|
2787
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)) : "";
|
|
2788
|
-
return /* @__PURE__ */
|
|
2816
|
+
return /* @__PURE__ */ jsx24(
|
|
2789
2817
|
next_link_default,
|
|
2790
2818
|
{
|
|
2791
2819
|
href,
|
|
@@ -2801,10 +2829,10 @@ function OnboardingGuideCard({
|
|
|
2801
2829
|
className
|
|
2802
2830
|
),
|
|
2803
2831
|
"aria-label": `Open ${guide.title}`,
|
|
2804
|
-
children: /* @__PURE__ */
|
|
2805
|
-
/* @__PURE__ */
|
|
2806
|
-
/* @__PURE__ */
|
|
2807
|
-
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(
|
|
2808
2836
|
next_image_default,
|
|
2809
2837
|
{
|
|
2810
2838
|
src: coverImage,
|
|
@@ -2814,7 +2842,7 @@ function OnboardingGuideCard({
|
|
|
2814
2842
|
className: "object-cover",
|
|
2815
2843
|
unoptimized: true
|
|
2816
2844
|
}
|
|
2817
|
-
) : /* @__PURE__ */
|
|
2845
|
+
) : /* @__PURE__ */ jsx24(
|
|
2818
2846
|
BlogImagePlaceholder,
|
|
2819
2847
|
{
|
|
2820
2848
|
title: guide.title,
|
|
@@ -2822,18 +2850,18 @@ function OnboardingGuideCard({
|
|
|
2822
2850
|
className: "absolute inset-0"
|
|
2823
2851
|
}
|
|
2824
2852
|
),
|
|
2825
|
-
hasVideoCover && coverImage && /* @__PURE__ */
|
|
2826
|
-
durationLabel && /* @__PURE__ */
|
|
2827
|
-
/* @__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" }),
|
|
2828
2856
|
durationLabel
|
|
2829
2857
|
] })
|
|
2830
2858
|
] }) }),
|
|
2831
|
-
/* @__PURE__ */
|
|
2832
|
-
/* @__PURE__ */
|
|
2833
|
-
/* @__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 || "") }) })
|
|
2834
2862
|
] })
|
|
2835
2863
|
] }),
|
|
2836
|
-
/* @__PURE__ */
|
|
2864
|
+
/* @__PURE__ */ jsx24(
|
|
2837
2865
|
EntityAuthorCard,
|
|
2838
2866
|
{
|
|
2839
2867
|
author: guide.author,
|
|
@@ -2861,22 +2889,22 @@ function OnboardingGuideCard({
|
|
|
2861
2889
|
const subtitleParts = [`Step ${guide.step_order}`, guide.section, author].filter(
|
|
2862
2890
|
(s) => typeof s === "string" && s.length > 0
|
|
2863
2891
|
);
|
|
2864
|
-
return /* @__PURE__ */
|
|
2865
|
-
/* @__PURE__ */
|
|
2866
|
-
compactCover ? /* @__PURE__ */
|
|
2867
|
-
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" }) })
|
|
2868
2896
|
] }),
|
|
2869
|
-
/* @__PURE__ */
|
|
2870
|
-
/* @__PURE__ */
|
|
2871
|
-
/* @__PURE__ */
|
|
2872
|
-
/* @__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 }) })
|
|
2873
2901
|
] }),
|
|
2874
|
-
/* @__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" }) })
|
|
2875
2903
|
] });
|
|
2876
2904
|
}
|
|
2877
2905
|
const t = HORIZONTAL_SIZE_TOKENS.default;
|
|
2878
2906
|
const summary = stripMarkdownPreview(guide.video_summary || guide.content || "");
|
|
2879
|
-
return /* @__PURE__ */
|
|
2907
|
+
return /* @__PURE__ */ jsxs18(
|
|
2880
2908
|
next_link_default,
|
|
2881
2909
|
{
|
|
2882
2910
|
href,
|
|
@@ -2888,7 +2916,7 @@ function OnboardingGuideCard({
|
|
|
2888
2916
|
className
|
|
2889
2917
|
),
|
|
2890
2918
|
children: [
|
|
2891
|
-
/* @__PURE__ */
|
|
2919
|
+
/* @__PURE__ */ jsx24(
|
|
2892
2920
|
"span",
|
|
2893
2921
|
{
|
|
2894
2922
|
className: `inline-flex shrink-0 items-center justify-center rounded-full bg-ods-accent/10 font-semibold text-ods-accent ${t.step}`,
|
|
@@ -2896,13 +2924,13 @@ function OnboardingGuideCard({
|
|
|
2896
2924
|
children: guide.step_order
|
|
2897
2925
|
}
|
|
2898
2926
|
),
|
|
2899
|
-
/* @__PURE__ */
|
|
2900
|
-
/* @__PURE__ */
|
|
2901
|
-
/* @__PURE__ */
|
|
2902
|
-
/* @__PURE__ */
|
|
2903
|
-
/* @__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 })
|
|
2904
2932
|
] }),
|
|
2905
|
-
summary && /* @__PURE__ */
|
|
2933
|
+
summary && /* @__PURE__ */ jsx24("span", { className: `text-ods-text-secondary text-h6 ${t.summaryClamp}`, children: summary })
|
|
2906
2934
|
] })
|
|
2907
2935
|
]
|
|
2908
2936
|
}
|
|
@@ -2910,31 +2938,38 @@ function OnboardingGuideCard({
|
|
|
2910
2938
|
}
|
|
2911
2939
|
|
|
2912
2940
|
// src/components/ui/avatar-stack.tsx
|
|
2913
|
-
import { jsx as
|
|
2941
|
+
import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2942
|
+
var SIZE_PX = { xs: 24, sm: 32, md: 40, lg: 48 };
|
|
2943
|
+
var OVERLAP_PX = { xs: 8, sm: 12, md: 12, lg: 12 };
|
|
2914
2944
|
var OVERFLOW_CIRCLE_SIZE = {
|
|
2915
|
-
xs: "h-6 w-6",
|
|
2916
|
-
sm: "h-8 w-8",
|
|
2917
|
-
md: "h-10 w-10",
|
|
2918
|
-
lg: "h-12 w-12"
|
|
2945
|
+
xs: "h-6 min-w-6",
|
|
2946
|
+
sm: "h-8 min-w-8",
|
|
2947
|
+
md: "h-10 min-w-10",
|
|
2948
|
+
lg: "h-12 min-w-12"
|
|
2919
2949
|
};
|
|
2920
2950
|
function AvatarStack({
|
|
2921
2951
|
people,
|
|
2922
2952
|
max = 3,
|
|
2953
|
+
slots,
|
|
2923
2954
|
size = "md",
|
|
2924
2955
|
ringClassName = "ring-ods-card",
|
|
2956
|
+
label = "Assignees",
|
|
2925
2957
|
className
|
|
2926
2958
|
}) {
|
|
2927
2959
|
if (people.length === 0) return null;
|
|
2928
|
-
const
|
|
2929
|
-
const
|
|
2930
|
-
|
|
2960
|
+
const faces = slots ? people.length > slots ? slots - 1 : slots : max;
|
|
2961
|
+
const visible = people.slice(0, faces);
|
|
2962
|
+
const overflow = people.slice(faces);
|
|
2963
|
+
const compact = size === "xs";
|
|
2964
|
+
return /* @__PURE__ */ jsxs19(
|
|
2931
2965
|
"div",
|
|
2932
2966
|
{
|
|
2933
|
-
className: cn("flex items-center", className),
|
|
2967
|
+
className: cn("flex items-center", slots && "shrink-0", className),
|
|
2968
|
+
style: slots ? { width: SIZE_PX[size] + (slots - 1) * (SIZE_PX[size] - OVERLAP_PX[size]) } : void 0,
|
|
2934
2969
|
role: "group",
|
|
2935
|
-
"aria-label":
|
|
2970
|
+
"aria-label": `${label}: ${people.map((p) => p.name).join(", ")}`,
|
|
2936
2971
|
children: [
|
|
2937
|
-
visible.map((person, i) => /* @__PURE__ */
|
|
2972
|
+
visible.map((person, i) => /* @__PURE__ */ jsx25(
|
|
2938
2973
|
SquareAvatar,
|
|
2939
2974
|
{
|
|
2940
2975
|
variant: "round",
|
|
@@ -2943,19 +2978,23 @@ function AvatarStack({
|
|
|
2943
2978
|
alt: person.name,
|
|
2944
2979
|
fallback: person.name,
|
|
2945
2980
|
title: person.name,
|
|
2946
|
-
className: cn("relative ring-2", ringClassName, i > 0 && (
|
|
2981
|
+
className: cn("relative ring-2", ringClassName, i > 0 && (compact ? "-ml-2" : "-ml-3")),
|
|
2947
2982
|
style: { zIndex: visible.length - i }
|
|
2948
2983
|
},
|
|
2949
2984
|
person.key ?? `${person.name}-${i}`
|
|
2950
2985
|
)),
|
|
2951
|
-
overflow.length > 0 && /* @__PURE__ */
|
|
2986
|
+
overflow.length > 0 && /* @__PURE__ */ jsxs19(
|
|
2952
2987
|
"span",
|
|
2953
2988
|
{
|
|
2954
2989
|
title: overflow.map((p) => p.name).join(", "),
|
|
2955
2990
|
className: cn(
|
|
2956
2991
|
"relative z-0 flex shrink-0 items-center justify-center rounded-full bg-ods-bg text-ods-text-secondary ring-2",
|
|
2957
2992
|
ringClassName,
|
|
2958
|
-
|
|
2993
|
+
// The circle tucks under the last face like every other avatar, so
|
|
2994
|
+
// its left edge is covered: the left padding equals that overlap,
|
|
2995
|
+
// centering "+N" in the part that shows. `min-w` (not a fixed
|
|
2996
|
+
// width) lets a two-digit count widen the circle instead of clipping.
|
|
2997
|
+
compact ? "-ml-2 pl-2 pr-1 text-badge" : "-ml-3 pl-3 pr-1.5 text-h6",
|
|
2959
2998
|
OVERFLOW_CIRCLE_SIZE[size]
|
|
2960
2999
|
),
|
|
2961
3000
|
children: [
|
|
@@ -3054,7 +3093,7 @@ function getTaskTypeLabel(customItemId) {
|
|
|
3054
3093
|
}
|
|
3055
3094
|
|
|
3056
3095
|
// src/components/chat/entity-cards/roadmap-vote-button.tsx
|
|
3057
|
-
import { jsx as
|
|
3096
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
3058
3097
|
function RoadmapVoteButton({
|
|
3059
3098
|
voteType,
|
|
3060
3099
|
count,
|
|
@@ -3066,13 +3105,13 @@ function RoadmapVoteButton({
|
|
|
3066
3105
|
className
|
|
3067
3106
|
}) {
|
|
3068
3107
|
const Icon = voteType === "up" ? ThumbsUpIcon : ThumbsDownIcon;
|
|
3069
|
-
return /* @__PURE__ */
|
|
3108
|
+
return /* @__PURE__ */ jsx26(
|
|
3070
3109
|
Button,
|
|
3071
3110
|
{
|
|
3072
3111
|
variant: "outline",
|
|
3073
3112
|
onClick,
|
|
3074
3113
|
disabled,
|
|
3075
|
-
leftIcon: /* @__PURE__ */
|
|
3114
|
+
leftIcon: /* @__PURE__ */ jsx26(Icon, { className: "h-5 w-5", color }),
|
|
3076
3115
|
className: cn(
|
|
3077
3116
|
className,
|
|
3078
3117
|
"flex h-full items-center justify-center gap-[2px] border-0 border-ods-border bg-ods-bg p-[12px]",
|
|
@@ -3080,7 +3119,7 @@ function RoadmapVoteButton({
|
|
|
3080
3119
|
"transition-all hover:bg-ods-border",
|
|
3081
3120
|
isActive && "bg-ods-border"
|
|
3082
3121
|
),
|
|
3083
|
-
children: showCount && /* @__PURE__ */
|
|
3122
|
+
children: showCount && /* @__PURE__ */ jsx26("span", { className: "text-h6", children: count })
|
|
3084
3123
|
}
|
|
3085
3124
|
);
|
|
3086
3125
|
}
|
|
@@ -3101,7 +3140,7 @@ import {
|
|
|
3101
3140
|
Repeat,
|
|
3102
3141
|
Compass
|
|
3103
3142
|
} from "lucide-react";
|
|
3104
|
-
import { jsx as
|
|
3143
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
3105
3144
|
function iconFor(customItemId) {
|
|
3106
3145
|
switch (customItemId) {
|
|
3107
3146
|
case CUSTOM_ITEM_ID.BUG:
|
|
@@ -3137,51 +3176,51 @@ function iconFor(customItemId) {
|
|
|
3137
3176
|
}
|
|
3138
3177
|
function TaskTypeIcon({ customItemId, className = "h-5 w-5" }) {
|
|
3139
3178
|
const Icon = iconFor(customItemId);
|
|
3140
|
-
return /* @__PURE__ */
|
|
3179
|
+
return /* @__PURE__ */ jsx27(Icon, { className, "aria-hidden": "true" });
|
|
3141
3180
|
}
|
|
3142
3181
|
|
|
3143
3182
|
// src/components/chat/entity-cards/roadmap-card.tsx
|
|
3144
3183
|
import { ThumbsUp, ThumbsDown } from "lucide-react";
|
|
3145
3184
|
import { useState as useState5 } from "react";
|
|
3146
|
-
import { Fragment as
|
|
3185
|
+
import { Fragment as Fragment8, jsx as jsx28, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3147
3186
|
function RoadmapCardSkeleton({ size = "default" }) {
|
|
3148
3187
|
if (size === "sm") {
|
|
3149
|
-
return /* @__PURE__ */
|
|
3150
|
-
/* @__PURE__ */
|
|
3151
|
-
/* @__PURE__ */
|
|
3152
|
-
/* @__PURE__ */
|
|
3153
|
-
/* @__PURE__ */
|
|
3154
|
-
/* @__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" })
|
|
3155
3194
|
] }),
|
|
3156
|
-
/* @__PURE__ */
|
|
3157
|
-
/* @__PURE__ */
|
|
3158
|
-
/* @__PURE__ */
|
|
3159
|
-
/* @__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" })
|
|
3160
3199
|
] }),
|
|
3161
|
-
/* @__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" }) })
|
|
3162
3201
|
] })
|
|
3163
3202
|
] });
|
|
3164
3203
|
}
|
|
3165
|
-
return /* @__PURE__ */
|
|
3166
|
-
/* @__PURE__ */
|
|
3167
|
-
/* @__PURE__ */
|
|
3168
|
-
/* @__PURE__ */
|
|
3169
|
-
/* @__PURE__ */
|
|
3170
|
-
/* @__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" })
|
|
3171
3210
|
] }),
|
|
3172
|
-
/* @__PURE__ */
|
|
3211
|
+
/* @__PURE__ */ jsx28("div", { className: "h-6 w-16 rounded bg-ods-bg" })
|
|
3173
3212
|
] }),
|
|
3174
|
-
/* @__PURE__ */
|
|
3175
|
-
/* @__PURE__ */
|
|
3176
|
-
/* @__PURE__ */
|
|
3177
|
-
/* @__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" })
|
|
3178
3217
|
] }),
|
|
3179
|
-
/* @__PURE__ */
|
|
3180
|
-
/* @__PURE__ */
|
|
3181
|
-
/* @__PURE__ */
|
|
3182
|
-
/* @__PURE__ */
|
|
3183
|
-
/* @__PURE__ */
|
|
3184
|
-
/* @__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" })
|
|
3185
3224
|
] })
|
|
3186
3225
|
] })
|
|
3187
3226
|
] });
|
|
@@ -3216,13 +3255,13 @@ function RoadmapCard({
|
|
|
3216
3255
|
const hasScreenshots = (item.screenshots?.length ?? 0) > 0;
|
|
3217
3256
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
3218
3257
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
3219
|
-
const body = /* @__PURE__ */
|
|
3220
|
-
/* @__PURE__ */
|
|
3258
|
+
const body = /* @__PURE__ */ jsxs20(Fragment8, { children: [
|
|
3259
|
+
/* @__PURE__ */ jsx28(
|
|
3221
3260
|
"span",
|
|
3222
3261
|
{
|
|
3223
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",
|
|
3224
3263
|
title: typeLabel ?? void 0,
|
|
3225
|
-
children: useTypeIcon ? /* @__PURE__ */
|
|
3264
|
+
children: useTypeIcon ? /* @__PURE__ */ jsx28(TaskTypeIcon, { customItemId: item.customItemId, className: "h-6 w-6" }) : iconSrc ? /* @__PURE__ */ jsx28(
|
|
3226
3265
|
next_image_default,
|
|
3227
3266
|
{
|
|
3228
3267
|
src: iconSrc,
|
|
@@ -3232,13 +3271,13 @@ function RoadmapCard({
|
|
|
3232
3271
|
unoptimized: true,
|
|
3233
3272
|
className: "h-8 w-8 object-contain"
|
|
3234
3273
|
}
|
|
3235
|
-
) : /* @__PURE__ */
|
|
3274
|
+
) : /* @__PURE__ */ jsx28("span", { className: "uppercase text-ods-text-secondary text-h6", children: item.title?.substring(0, 2) || "??" })
|
|
3236
3275
|
}
|
|
3237
3276
|
),
|
|
3238
|
-
/* @__PURE__ */
|
|
3239
|
-
/* @__PURE__ */
|
|
3240
|
-
/* @__PURE__ */
|
|
3241
|
-
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(
|
|
3242
3281
|
StatusBadge,
|
|
3243
3282
|
{
|
|
3244
3283
|
text: item.status.toUpperCase(),
|
|
@@ -3249,8 +3288,8 @@ function RoadmapCard({
|
|
|
3249
3288
|
}
|
|
3250
3289
|
) : null
|
|
3251
3290
|
] }),
|
|
3252
|
-
/* @__PURE__ */
|
|
3253
|
-
/* @__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: (() => {
|
|
3254
3293
|
const parts = [item.quarter, item.targetVersion ? `${item.targetVersion} version` : null].filter(
|
|
3255
3294
|
Boolean
|
|
3256
3295
|
);
|
|
@@ -3263,46 +3302,46 @@ function RoadmapCard({
|
|
|
3263
3302
|
}
|
|
3264
3303
|
return "Roadmap item";
|
|
3265
3304
|
})() }),
|
|
3266
|
-
hasVotes ? /* @__PURE__ */
|
|
3267
|
-
/* @__PURE__ */
|
|
3268
|
-
/* @__PURE__ */
|
|
3269
|
-
/* @__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 })
|
|
3270
3309
|
] }),
|
|
3271
|
-
/* @__PURE__ */
|
|
3272
|
-
/* @__PURE__ */
|
|
3273
|
-
/* @__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 })
|
|
3274
3313
|
] })
|
|
3275
3314
|
] }) : null,
|
|
3276
|
-
hasFigma ? /* @__PURE__ */
|
|
3277
|
-
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(
|
|
3278
3317
|
"span",
|
|
3279
3318
|
{
|
|
3280
3319
|
className: "hidden shrink-0 items-center gap-0.5 text-h6 sm:flex",
|
|
3281
3320
|
title: `${item.screenshots.length} screenshot${item.screenshots.length === 1 ? "" : "s"}`,
|
|
3282
3321
|
children: [
|
|
3283
|
-
/* @__PURE__ */
|
|
3284
|
-
/* @__PURE__ */
|
|
3322
|
+
/* @__PURE__ */ jsx28(ImageIcon, { className: "h-3 w-3" }),
|
|
3323
|
+
/* @__PURE__ */ jsx28("span", { children: item.screenshots.length })
|
|
3285
3324
|
]
|
|
3286
3325
|
}
|
|
3287
3326
|
) : null,
|
|
3288
|
-
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
|
|
3289
3328
|
] }),
|
|
3290
|
-
/* @__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 }) })
|
|
3291
3330
|
] })
|
|
3292
3331
|
] });
|
|
3293
3332
|
if (!compactHref) {
|
|
3294
|
-
return /* @__PURE__ */
|
|
3333
|
+
return /* @__PURE__ */ jsx28("span", { className: `${COMPACT_CARD_OUTER_STATIC} ${className ?? ""}`, "aria-label": "No link available", children: body });
|
|
3295
3334
|
}
|
|
3296
|
-
return /* @__PURE__ */
|
|
3335
|
+
return /* @__PURE__ */ jsx28("a", { href: compactHref, target, rel, className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: body });
|
|
3297
3336
|
}
|
|
3298
|
-
return /* @__PURE__ */
|
|
3337
|
+
return /* @__PURE__ */ jsxs20(
|
|
3299
3338
|
"div",
|
|
3300
3339
|
{
|
|
3301
3340
|
id,
|
|
3302
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 ?? ""}`,
|
|
3303
3342
|
children: [
|
|
3304
|
-
/* @__PURE__ */
|
|
3305
|
-
/* @__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(
|
|
3306
3345
|
next_image_default,
|
|
3307
3346
|
{
|
|
3308
3347
|
src: iconSrc,
|
|
@@ -3312,16 +3351,16 @@ function RoadmapCard({
|
|
|
3312
3351
|
unoptimized: true,
|
|
3313
3352
|
className: "object-contain p-1"
|
|
3314
3353
|
}
|
|
3315
|
-
) : /* @__PURE__ */
|
|
3316
|
-
/* @__PURE__ */
|
|
3317
|
-
/* @__PURE__ */
|
|
3318
|
-
/* @__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: [
|
|
3319
3358
|
item.quarter,
|
|
3320
3359
|
", ",
|
|
3321
3360
|
item.id
|
|
3322
3361
|
] }) })
|
|
3323
3362
|
] }),
|
|
3324
|
-
/* @__PURE__ */
|
|
3363
|
+
/* @__PURE__ */ jsx28("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx28(
|
|
3325
3364
|
StatusBadge,
|
|
3326
3365
|
{
|
|
3327
3366
|
text: item.status.toUpperCase(),
|
|
@@ -3330,7 +3369,7 @@ function RoadmapCard({
|
|
|
3330
3369
|
}
|
|
3331
3370
|
) })
|
|
3332
3371
|
] }),
|
|
3333
|
-
/* @__PURE__ */
|
|
3372
|
+
/* @__PURE__ */ jsx28("div", { className: "md:hidden", children: /* @__PURE__ */ jsx28(
|
|
3334
3373
|
StatusBadge,
|
|
3335
3374
|
{
|
|
3336
3375
|
text: item.status.toUpperCase(),
|
|
@@ -3338,11 +3377,11 @@ function RoadmapCard({
|
|
|
3338
3377
|
className: "border border-ods-border"
|
|
3339
3378
|
}
|
|
3340
3379
|
) }),
|
|
3341
|
-
/* @__PURE__ */
|
|
3342
|
-
/* @__PURE__ */
|
|
3343
|
-
/* @__PURE__ */
|
|
3344
|
-
onVote && /* @__PURE__ */
|
|
3345
|
-
/* @__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(
|
|
3346
3385
|
RoadmapVoteButton,
|
|
3347
3386
|
{
|
|
3348
3387
|
voteType: "up",
|
|
@@ -3354,7 +3393,7 @@ function RoadmapCard({
|
|
|
3354
3393
|
disabled: isVoting
|
|
3355
3394
|
}
|
|
3356
3395
|
),
|
|
3357
|
-
/* @__PURE__ */
|
|
3396
|
+
/* @__PURE__ */ jsx28(
|
|
3358
3397
|
RoadmapVoteButton,
|
|
3359
3398
|
{
|
|
3360
3399
|
voteType: "down",
|
|
@@ -3367,34 +3406,34 @@ function RoadmapCard({
|
|
|
3367
3406
|
}
|
|
3368
3407
|
)
|
|
3369
3408
|
] }),
|
|
3370
|
-
/* @__PURE__ */
|
|
3371
|
-
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */
|
|
3372
|
-
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(
|
|
3373
3412
|
Button,
|
|
3374
3413
|
{
|
|
3375
3414
|
variant: "outline",
|
|
3376
3415
|
size: "small-legacy",
|
|
3377
3416
|
onClick: () => setShowScreenshots(true),
|
|
3378
|
-
leftIcon: /* @__PURE__ */
|
|
3417
|
+
leftIcon: /* @__PURE__ */ jsx28(ImageIcon, { className: "h-5 w-5" })
|
|
3379
3418
|
}
|
|
3380
3419
|
),
|
|
3381
3420
|
(() => {
|
|
3382
3421
|
const figmaSafe = safeHref(item.figmaUrl);
|
|
3383
|
-
return figmaSafe ? /* @__PURE__ */
|
|
3422
|
+
return figmaSafe ? /* @__PURE__ */ jsx28(
|
|
3384
3423
|
Button,
|
|
3385
3424
|
{
|
|
3386
3425
|
variant: "outline",
|
|
3387
3426
|
size: "small-legacy",
|
|
3388
3427
|
openInNewTab: true,
|
|
3389
3428
|
href: figmaSafe,
|
|
3390
|
-
leftIcon: /* @__PURE__ */
|
|
3429
|
+
leftIcon: /* @__PURE__ */ jsx28(FigmaIcon, { className: "h-5 w-5" })
|
|
3391
3430
|
}
|
|
3392
3431
|
) : null;
|
|
3393
3432
|
})(),
|
|
3394
|
-
item.targetVersion && /* @__PURE__ */
|
|
3433
|
+
item.targetVersion && /* @__PURE__ */ jsx28(StatusBadge, { gen: generationTierFromLabel(item.targetVersion), text: item.targetVersion })
|
|
3395
3434
|
] })
|
|
3396
3435
|
] }),
|
|
3397
|
-
item.screenshots && item.screenshots.length > 0 && /* @__PURE__ */
|
|
3436
|
+
item.screenshots && item.screenshots.length > 0 && /* @__PURE__ */ jsx28(
|
|
3398
3437
|
ImageGalleryModal,
|
|
3399
3438
|
{
|
|
3400
3439
|
images: item.screenshots,
|
|
@@ -3512,43 +3551,43 @@ function transformWebinarToProgram(webinar) {
|
|
|
3512
3551
|
import { format } from "date-fns";
|
|
3513
3552
|
import { ExternalLink as ExternalLink2, Clock as Clock2, Play as Play3, Video as Video2 } from "lucide-react";
|
|
3514
3553
|
import { useState as useState6 } from "react";
|
|
3515
|
-
import { Fragment as
|
|
3554
|
+
import { Fragment as Fragment9, jsx as jsx29, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3516
3555
|
function formatUtc(date, fmt) {
|
|
3517
3556
|
if (Number.isNaN(date.getTime())) return "";
|
|
3518
3557
|
return format(new Date(date.getTime() + date.getTimezoneOffset() * 6e4), fmt);
|
|
3519
3558
|
}
|
|
3520
3559
|
function ProgramCardSkeleton({ size = "default" }) {
|
|
3521
3560
|
if (size === "sm") {
|
|
3522
|
-
return /* @__PURE__ */
|
|
3523
|
-
/* @__PURE__ */
|
|
3524
|
-
/* @__PURE__ */
|
|
3525
|
-
/* @__PURE__ */
|
|
3526
|
-
/* @__PURE__ */
|
|
3527
|
-
/* @__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" }) })
|
|
3528
3567
|
] }),
|
|
3529
|
-
/* @__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" }) })
|
|
3530
3569
|
] });
|
|
3531
3570
|
}
|
|
3532
|
-
return /* @__PURE__ */
|
|
3571
|
+
return /* @__PURE__ */ jsxs21(
|
|
3533
3572
|
"div",
|
|
3534
3573
|
{
|
|
3535
3574
|
className: "flex animate-pulse flex-col overflow-hidden rounded-lg border border-ods-border",
|
|
3536
3575
|
style: { backgroundColor: "var(--ods-system-greys-black)" },
|
|
3537
3576
|
children: [
|
|
3538
|
-
/* @__PURE__ */
|
|
3539
|
-
/* @__PURE__ */
|
|
3540
|
-
/* @__PURE__ */
|
|
3541
|
-
/* @__PURE__ */
|
|
3542
|
-
/* @__PURE__ */
|
|
3543
|
-
/* @__PURE__ */
|
|
3544
|
-
/* @__PURE__ */
|
|
3545
|
-
/* @__PURE__ */
|
|
3546
|
-
/* @__PURE__ */
|
|
3547
|
-
/* @__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" })
|
|
3548
3587
|
] })
|
|
3549
3588
|
] })
|
|
3550
3589
|
] }) }),
|
|
3551
|
-
/* @__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" }) }) })
|
|
3552
3591
|
]
|
|
3553
3592
|
}
|
|
3554
3593
|
);
|
|
@@ -3601,14 +3640,14 @@ function MediaGallery({ images, title }) {
|
|
|
3601
3640
|
setIsModalOpen(false);
|
|
3602
3641
|
setSelectedImageIndex(null);
|
|
3603
3642
|
};
|
|
3604
|
-
return /* @__PURE__ */
|
|
3605
|
-
/* @__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(
|
|
3606
3645
|
"div",
|
|
3607
3646
|
{
|
|
3608
3647
|
className: "group/thumb relative h-24 w-24 flex-shrink-0 cursor-pointer overflow-hidden rounded-md",
|
|
3609
3648
|
onClick: (e) => openImageModal(index, e),
|
|
3610
3649
|
children: [
|
|
3611
|
-
/* @__PURE__ */
|
|
3650
|
+
/* @__PURE__ */ jsx29(
|
|
3612
3651
|
next_image_default,
|
|
3613
3652
|
{
|
|
3614
3653
|
src: mediaItem.media_url,
|
|
@@ -3620,12 +3659,12 @@ function MediaGallery({ images, title }) {
|
|
|
3620
3659
|
unoptimized: true
|
|
3621
3660
|
}
|
|
3622
3661
|
),
|
|
3623
|
-
/* @__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: "+" }) }) })
|
|
3624
3663
|
]
|
|
3625
3664
|
},
|
|
3626
3665
|
mediaItem.id
|
|
3627
3666
|
)) }) }) }),
|
|
3628
|
-
/* @__PURE__ */
|
|
3667
|
+
/* @__PURE__ */ jsx29(
|
|
3629
3668
|
ImageGalleryModal,
|
|
3630
3669
|
{
|
|
3631
3670
|
images: images.map((img) => img.media_url),
|
|
@@ -3686,7 +3725,7 @@ function ProgramCard({
|
|
|
3686
3725
|
if (size === "portrait") {
|
|
3687
3726
|
const profile = programItemToStripProfile(item);
|
|
3688
3727
|
const dateMeta = [compactDate, compactTypeMeta()].filter(Boolean).join(" \xB7 ");
|
|
3689
|
-
return /* @__PURE__ */
|
|
3728
|
+
return /* @__PURE__ */ jsx29(
|
|
3690
3729
|
EntityPortraitCard,
|
|
3691
3730
|
{
|
|
3692
3731
|
href,
|
|
@@ -3710,17 +3749,17 @@ function ProgramCard({
|
|
|
3710
3749
|
const subtitleParts = [itemDate2, typeMeta, config.labels?.singular].filter(
|
|
3711
3750
|
(s) => typeof s === "string" && s.length > 0
|
|
3712
3751
|
);
|
|
3713
|
-
return /* @__PURE__ */
|
|
3714
|
-
/* @__PURE__ */
|
|
3715
|
-
compactCover ? /* @__PURE__ */
|
|
3716
|
-
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" }) })
|
|
3717
3756
|
] }),
|
|
3718
|
-
/* @__PURE__ */
|
|
3719
|
-
/* @__PURE__ */
|
|
3720
|
-
/* @__PURE__ */
|
|
3721
|
-
/* @__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 }) })
|
|
3722
3761
|
] }),
|
|
3723
|
-
/* @__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" }) })
|
|
3724
3763
|
] });
|
|
3725
3764
|
}
|
|
3726
3765
|
const itemDate = new Date(item.date);
|
|
@@ -3728,25 +3767,25 @@ function ProgramCard({
|
|
|
3728
3767
|
const defaultRenderMeta = () => {
|
|
3729
3768
|
if (config.type === "podcast" && "duration_seconds" in item && !isScheduled) {
|
|
3730
3769
|
const dur = item.duration_seconds;
|
|
3731
|
-
return /* @__PURE__ */
|
|
3732
|
-
/* @__PURE__ */
|
|
3733
|
-
/* @__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) })
|
|
3734
3773
|
] });
|
|
3735
3774
|
}
|
|
3736
3775
|
if (config.type === "event" && "location_name" in item) {
|
|
3737
3776
|
const loc = item.location_name;
|
|
3738
|
-
return /* @__PURE__ */
|
|
3777
|
+
return /* @__PURE__ */ jsx29("span", { className: "font-body text-ods-text-secondary", children: typeof loc === "string" && loc || "Location TBD" });
|
|
3739
3778
|
}
|
|
3740
3779
|
if (config.type === "webinar" && "start_at" in item) {
|
|
3741
3780
|
const { startAt, endAt, timezone } = webinarTiming(item);
|
|
3742
3781
|
const duration = formatDurationFromRange(startAt, endAt);
|
|
3743
|
-
return /* @__PURE__ */
|
|
3744
|
-
/* @__PURE__ */
|
|
3745
|
-
/* @__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: [
|
|
3746
3785
|
formatTimeWithTimezone(startAt, timezone),
|
|
3747
3786
|
duration && ` \xB7 ${duration}`
|
|
3748
3787
|
] }),
|
|
3749
|
-
timezone && /* @__PURE__ */
|
|
3788
|
+
timezone && /* @__PURE__ */ jsxs21("span", { className: "text-ods-text-secondary text-h6", children: [
|
|
3750
3789
|
"(",
|
|
3751
3790
|
timezone,
|
|
3752
3791
|
")"
|
|
@@ -3755,9 +3794,9 @@ function ProgramCard({
|
|
|
3755
3794
|
}
|
|
3756
3795
|
return null;
|
|
3757
3796
|
};
|
|
3758
|
-
const cardHeader = /* @__PURE__ */
|
|
3759
|
-
coverImage && /* @__PURE__ */
|
|
3760
|
-
/* @__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(
|
|
3761
3800
|
next_image_default,
|
|
3762
3801
|
{
|
|
3763
3802
|
src: coverImage,
|
|
@@ -3768,23 +3807,23 @@ function ProgramCard({
|
|
|
3768
3807
|
unoptimized: true
|
|
3769
3808
|
}
|
|
3770
3809
|
),
|
|
3771
|
-
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" }) })
|
|
3772
3811
|
] }) }),
|
|
3773
|
-
/* @__PURE__ */
|
|
3774
|
-
/* @__PURE__ */
|
|
3775
|
-
/* @__PURE__ */
|
|
3776
|
-
/* @__PURE__ */
|
|
3777
|
-
renderMeta ? /* @__PURE__ */
|
|
3778
|
-
/* @__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" }),
|
|
3779
3818
|
renderMeta(item)
|
|
3780
|
-
] }) : defaultRenderMeta() && /* @__PURE__ */
|
|
3781
|
-
/* @__PURE__ */
|
|
3782
|
-
/* @__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() })
|
|
3783
3822
|
] })
|
|
3784
3823
|
] }),
|
|
3785
|
-
/* @__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 }) })
|
|
3786
3825
|
] }),
|
|
3787
|
-
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(
|
|
3788
3827
|
SquareAvatar,
|
|
3789
3828
|
{
|
|
3790
3829
|
variant: "round",
|
|
@@ -3802,7 +3841,7 @@ function ProgramCard({
|
|
|
3802
3841
|
);
|
|
3803
3842
|
const cardFrameStyle = { backgroundColor: "var(--ods-system-greys-black)" };
|
|
3804
3843
|
if (wholeCardClickable) {
|
|
3805
|
-
return /* @__PURE__ */
|
|
3844
|
+
return /* @__PURE__ */ jsxs21(
|
|
3806
3845
|
"a",
|
|
3807
3846
|
{
|
|
3808
3847
|
href,
|
|
@@ -3813,8 +3852,8 @@ function ProgramCard({
|
|
|
3813
3852
|
"aria-label": `Open ${item.title}`,
|
|
3814
3853
|
children: [
|
|
3815
3854
|
cardHeader,
|
|
3816
|
-
images.length > 0 && /* @__PURE__ */
|
|
3817
|
-
/* @__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(
|
|
3818
3857
|
"span",
|
|
3819
3858
|
{
|
|
3820
3859
|
className: "inline-flex items-center gap-2 rounded-md border border-ods-accent px-4 py-2 text-ods-accent text-h6",
|
|
@@ -3823,7 +3862,7 @@ function ProgramCard({
|
|
|
3823
3862
|
"View ",
|
|
3824
3863
|
config.labels.singular,
|
|
3825
3864
|
" Details",
|
|
3826
|
-
/* @__PURE__ */
|
|
3865
|
+
/* @__PURE__ */ jsx29(ExternalLink2, { className: "h-5 w-5" })
|
|
3827
3866
|
]
|
|
3828
3867
|
}
|
|
3829
3868
|
) }) })
|
|
@@ -3831,17 +3870,17 @@ function ProgramCard({
|
|
|
3831
3870
|
}
|
|
3832
3871
|
);
|
|
3833
3872
|
}
|
|
3834
|
-
return /* @__PURE__ */
|
|
3835
|
-
/* @__PURE__ */
|
|
3836
|
-
images.length > 0 && /* @__PURE__ */
|
|
3837
|
-
/* @__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(
|
|
3838
3877
|
Button,
|
|
3839
3878
|
{
|
|
3840
3879
|
variant: "outline",
|
|
3841
3880
|
size: "small-legacy",
|
|
3842
3881
|
href,
|
|
3843
3882
|
openInNewTab: target === "_blank",
|
|
3844
|
-
rightIcon: /* @__PURE__ */
|
|
3883
|
+
rightIcon: /* @__PURE__ */ jsx29(ExternalLink2, { className: "h-5 w-5" }),
|
|
3845
3884
|
children: [
|
|
3846
3885
|
"View ",
|
|
3847
3886
|
config.labels.singular,
|
|
@@ -3931,6 +3970,7 @@ var BUILDERS = {
|
|
|
3931
3970
|
// the related-content rail + author page), entry-shaped rows.
|
|
3932
3971
|
what_i_shipped: (ids, b) => `${b}/api/what-i-shipped?ids=${ids.join(",")}&limit=${ids.length}`,
|
|
3933
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}`,
|
|
3934
3974
|
// Product-hub internal objects — per-object card-hydration routes
|
|
3935
3975
|
// (ChatRef-shaped items, `handleEntityCardList`), like github / slack.
|
|
3936
3976
|
design_doc: (ids, b) => `${b}/api/design-docs?ids=${ids.join(",")}`,
|
|
@@ -3964,6 +4004,7 @@ export {
|
|
|
3964
4004
|
formatAbbreviatedNumber,
|
|
3965
4005
|
nameInitials,
|
|
3966
4006
|
personInitials,
|
|
4007
|
+
personFirstName,
|
|
3967
4008
|
singleInitial,
|
|
3968
4009
|
formatDurationMMSS,
|
|
3969
4010
|
formatDurationCompact,
|
|
@@ -4028,6 +4069,8 @@ export {
|
|
|
4028
4069
|
WhatIShippedCardSkeleton,
|
|
4029
4070
|
HowIWorkCard,
|
|
4030
4071
|
HowIWorkCardSkeleton,
|
|
4072
|
+
AiPromptCard,
|
|
4073
|
+
AiPromptCardSkeleton,
|
|
4031
4074
|
DEFAULT_VIDEO_BITES_TITLE,
|
|
4032
4075
|
toStripProfile,
|
|
4033
4076
|
sortBitesByCreatedAtDesc,
|
|
@@ -4092,4 +4135,4 @@ export {
|
|
|
4092
4135
|
canonicalContentRefType,
|
|
4093
4136
|
buildListUrl
|
|
4094
4137
|
};
|
|
4095
|
-
//# sourceMappingURL=chunk-
|
|
4138
|
+
//# sourceMappingURL=chunk-S44BHDOI.js.map
|