@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,10 +1498,34 @@ 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
|
+
|
|
1503
|
+
function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }) {
|
|
1504
|
+
const department = _optionalChain([entry, 'access', _20 => _20.department, 'optionalAccess', _21 => _21.name, 'optionalAccess', _22 => _22.trim, 'call', _23 => _23()]);
|
|
1505
|
+
const steps = typeof entry.step_count === "number" ? entry.step_count : 0;
|
|
1506
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1507
|
+
EmployeeEntryCard,
|
|
1508
|
+
{
|
|
1509
|
+
entry,
|
|
1510
|
+
dateLabel: entry.published_at ? formatDateUTC(entry.published_at, { fallback: "" }) || null : null,
|
|
1511
|
+
extraBadges: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1512
|
+
department ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: department }) : null,
|
|
1513
|
+
steps > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, 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) {
|
|
1500
|
-
if (!_optionalChain([p, 'optionalAccess',
|
|
1528
|
+
if (!_optionalChain([p, 'optionalAccess', _24 => _24.full_name])) return null;
|
|
1501
1529
|
return {
|
|
1502
1530
|
name: p.full_name,
|
|
1503
1531
|
avatarUrl: _nullishCoalesce(p.avatar_url, () => ( null)),
|
|
@@ -1539,7 +1567,7 @@ function ProductReleaseCard({
|
|
|
1539
1567
|
changelogCounts
|
|
1540
1568
|
}) {
|
|
1541
1569
|
if (size === "lg") {
|
|
1542
|
-
const totalChangelog = (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess',
|
|
1570
|
+
const totalChangelog = (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _25 => _25.features]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _26 => _26.fixes]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _27 => _27.improvements]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _28 => _28.breaking]), () => ( 0)));
|
|
1543
1571
|
const valueCells = [
|
|
1544
1572
|
releaseType && releaseTypeBadgeColor ? {
|
|
1545
1573
|
value: releaseType.toUpperCase(),
|
|
@@ -1558,7 +1586,7 @@ function ProductReleaseCard({
|
|
|
1558
1586
|
uppercase: false
|
|
1559
1587
|
} : { value: "\u2014", label: "Released", uppercase: false }
|
|
1560
1588
|
];
|
|
1561
|
-
const effectiveAuthor = _optionalChain([author, 'optionalAccess',
|
|
1589
|
+
const effectiveAuthor = _optionalChain([author, 'optionalAccess', _29 => _29.full_name]) ? author : { full_name: "\u2014", avatar_url: null, job_title: "Unknown" };
|
|
1562
1590
|
const gridColsClass = "md:grid-cols-4";
|
|
1563
1591
|
const dividerClass = "border-b md:border-b-0 md:border-r border-ods-border";
|
|
1564
1592
|
const frameClass = _chunk23V5BSHDcjs.cn.call(void 0,
|
|
@@ -1932,10 +1960,10 @@ function buildProductReleaseCardProps(item) {
|
|
|
1932
1960
|
job_title: release.author.job_title
|
|
1933
1961
|
} : void 0,
|
|
1934
1962
|
changelogCounts: {
|
|
1935
|
-
features: _nullishCoalesce(_optionalChain([release, 'access',
|
|
1936
|
-
fixes: _nullishCoalesce(_optionalChain([release, 'access',
|
|
1937
|
-
improvements: _nullishCoalesce(_optionalChain([release, 'access',
|
|
1938
|
-
breaking: _nullishCoalesce(_optionalChain([release, 'access',
|
|
1963
|
+
features: _nullishCoalesce(_optionalChain([release, 'access', _30 => _30.features_added, 'optionalAccess', _31 => _31.length]), () => ( 0)),
|
|
1964
|
+
fixes: _nullishCoalesce(_optionalChain([release, 'access', _32 => _32.bugs_fixed, 'optionalAccess', _33 => _33.length]), () => ( 0)),
|
|
1965
|
+
improvements: _nullishCoalesce(_optionalChain([release, 'access', _34 => _34.improvements, 'optionalAccess', _35 => _35.length]), () => ( 0)),
|
|
1966
|
+
breaking: _nullishCoalesce(_optionalChain([release, 'access', _36 => _36.breaking_changes, 'optionalAccess', _37 => _37.length]), () => ( 0))
|
|
1939
1967
|
}
|
|
1940
1968
|
};
|
|
1941
1969
|
}
|
|
@@ -2061,7 +2089,7 @@ function BlogCard({
|
|
|
2061
2089
|
day: "numeric",
|
|
2062
2090
|
timeZone: "UTC"
|
|
2063
2091
|
}) : "";
|
|
2064
|
-
const firstCategory = _optionalChain([post, 'access',
|
|
2092
|
+
const firstCategory = _optionalChain([post, 'access', _38 => _38.categories, 'optionalAccess', _39 => _39.find, 'call', _40 => _40((c) => c && c.name), 'optionalAccess', _41 => _41.name]);
|
|
2065
2093
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2066
2094
|
"a",
|
|
2067
2095
|
{
|
|
@@ -2279,7 +2307,7 @@ function CaseStudyCard({
|
|
|
2279
2307
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2280
2308
|
{
|
|
2281
2309
|
src: coverImage,
|
|
2282
|
-
alt: `${_optionalChain([study, 'access',
|
|
2310
|
+
alt: `${_optionalChain([study, 'access', _42 => _42.msp, 'optionalAccess', _43 => _43.name]) || study.title} cover`,
|
|
2283
2311
|
className: "object-contain",
|
|
2284
2312
|
fill: true,
|
|
2285
2313
|
sizes: "56px",
|
|
@@ -2289,7 +2317,7 @@ function CaseStudyCard({
|
|
|
2289
2317
|
) : null }),
|
|
2290
2318
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2291
2319
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_TITLE, children: study.title }) }),
|
|
2292
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUBTITLE, children: [_optionalChain([study, 'access',
|
|
2320
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUBTITLE, children: [_optionalChain([study, 'access', _44 => _44.msp, 'optionalAccess', _45 => _45.name]), _optionalChain([study, 'access', _46 => _46.user, 'optionalAccess', _47 => _47.full_name])].filter(Boolean).join(" \xB7 ") || "Case study" }) }),
|
|
2293
2321
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUMMARY, children: study.summary || COMPACT_CARD_ROW_FILLER }) })
|
|
2294
2322
|
] })
|
|
2295
2323
|
] });
|
|
@@ -2304,13 +2332,13 @@ function CaseStudyCard({
|
|
|
2304
2332
|
typeLabel: showTypeBadge ? "Case Study" : void 0,
|
|
2305
2333
|
imageUrl: study.featured_image,
|
|
2306
2334
|
placeholderUrl,
|
|
2307
|
-
imageAlt: _optionalChain([study, 'access',
|
|
2335
|
+
imageAlt: _optionalChain([study, 'access', _48 => _48.msp, 'optionalAccess', _49 => _49.name]) || study.title,
|
|
2308
2336
|
title: study.title,
|
|
2309
2337
|
person: {
|
|
2310
|
-
name: _optionalChain([study, 'access',
|
|
2311
|
-
avatarUrl: _optionalChain([study, 'access',
|
|
2312
|
-
subtitle: _nullishCoalesce(_optionalChain([study, 'access',
|
|
2313
|
-
iconOverlayUrl: _nullishCoalesce(_optionalChain([study, 'access',
|
|
2338
|
+
name: _optionalChain([study, 'access', _50 => _50.user, 'optionalAccess', _51 => _51.full_name]) || "Anonymous",
|
|
2339
|
+
avatarUrl: _optionalChain([study, 'access', _52 => _52.user, 'optionalAccess', _53 => _53.avatar_url]),
|
|
2340
|
+
subtitle: _nullishCoalesce(_optionalChain([study, 'access', _54 => _54.msp, 'optionalAccess', _55 => _55.name]), () => ( null)),
|
|
2341
|
+
iconOverlayUrl: _nullishCoalesce(_optionalChain([study, 'access', _56 => _56.msp, 'optionalAccess', _57 => _57.icon_url]), () => ( null))
|
|
2314
2342
|
},
|
|
2315
2343
|
className
|
|
2316
2344
|
}
|
|
@@ -2321,7 +2349,7 @@ function CaseStudyCard({
|
|
|
2321
2349
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2322
2350
|
{
|
|
2323
2351
|
src: coverImage,
|
|
2324
|
-
alt: _optionalChain([study, 'access',
|
|
2352
|
+
alt: _optionalChain([study, 'access', _58 => _58.msp, 'optionalAccess', _59 => _59.name]) || study.title,
|
|
2325
2353
|
className: "h-full w-full object-cover",
|
|
2326
2354
|
sizes: "(min-width: 1545px) 515px, (min-width: 1280px) 33vw, (min-width: 800px) 50vw, 100vw",
|
|
2327
2355
|
fill: true,
|
|
@@ -2332,18 +2360,18 @@ function CaseStudyCard({
|
|
|
2332
2360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[72px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 break-words text-ods-text-primary text-h4", children: study.title }) }),
|
|
2333
2361
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[60px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-3", children: [
|
|
2334
2362
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2335
|
-
_optionalChain([study, 'access',
|
|
2363
|
+
_optionalChain([study, 'access', _60 => _60.user, 'optionalAccess', _61 => _61.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2336
2364
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2337
2365
|
{
|
|
2338
2366
|
src: study.user.avatar_url,
|
|
2339
|
-
alt: _optionalChain([study, 'access',
|
|
2367
|
+
alt: _optionalChain([study, 'access', _62 => _62.user, 'optionalAccess', _63 => _63.full_name]) || "User",
|
|
2340
2368
|
className: "h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover",
|
|
2341
2369
|
width: 48,
|
|
2342
2370
|
height: 48,
|
|
2343
2371
|
unoptimized: true
|
|
2344
2372
|
}
|
|
2345
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-full border border-ods-border bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: (_optionalChain([study, 'access',
|
|
2346
|
-
_optionalChain([study, 'access',
|
|
2373
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-full border border-ods-border bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: (_optionalChain([study, 'access', _64 => _64.user, 'optionalAccess', _65 => _65.full_name]) || "A").charAt(0).toUpperCase() }) }),
|
|
2374
|
+
_optionalChain([study, 'access', _66 => _66.msp, 'optionalAccess', _67 => _67.icon_url]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "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__ */ _jsxruntime.jsx.call(void 0,
|
|
2347
2375
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2348
2376
|
{
|
|
2349
2377
|
src: study.msp.icon_url,
|
|
@@ -2357,13 +2385,13 @@ function CaseStudyCard({
|
|
|
2357
2385
|
] }),
|
|
2358
2386
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
2359
2387
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: [
|
|
2360
|
-
_optionalChain([study, 'access',
|
|
2361
|
-
_optionalChain([study, 'access',
|
|
2388
|
+
_optionalChain([study, 'access', _68 => _68.user, 'optionalAccess', _69 => _69.full_name]) || "Anonymous",
|
|
2389
|
+
_optionalChain([study, 'access', _70 => _70.msp, 'optionalAccess', _71 => _71.name]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
2362
2390
|
" \u2022 ",
|
|
2363
2391
|
study.msp.name
|
|
2364
2392
|
] })
|
|
2365
2393
|
] }),
|
|
2366
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([study, 'access',
|
|
2394
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([study, 'access', _72 => _72.user, 'optionalAccess', _73 => _73.job_title]) || "\xA0" })
|
|
2367
2395
|
] })
|
|
2368
2396
|
] }) })
|
|
2369
2397
|
] }) });
|
|
@@ -2445,7 +2473,7 @@ function CustomerInterviewCard({
|
|
|
2445
2473
|
] }),
|
|
2446
2474
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2447
2475
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_TITLE, children: interview.title }) }),
|
|
2448
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUBTITLE, children: [_optionalChain([interview, 'access',
|
|
2476
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUBTITLE, children: [_optionalChain([interview, 'access', _74 => _74.user, 'optionalAccess', _75 => _75.full_name]), _optionalChain([interview, 'access', _76 => _76.msp, 'optionalAccess', _77 => _77.name])].filter(Boolean).join(" \xB7 ") || "Customer interview" }) }),
|
|
2449
2477
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUMMARY, children: interview.video_summary || COMPACT_CARD_ROW_FILLER }) })
|
|
2450
2478
|
] })
|
|
2451
2479
|
] });
|
|
@@ -2463,10 +2491,10 @@ function CustomerInterviewCard({
|
|
|
2463
2491
|
imageAlt: interview.title,
|
|
2464
2492
|
title: interview.title,
|
|
2465
2493
|
person: {
|
|
2466
|
-
name: _optionalChain([interview, 'access',
|
|
2467
|
-
avatarUrl: _optionalChain([interview, 'access',
|
|
2468
|
-
subtitle: _nullishCoalesce(_optionalChain([interview, 'access',
|
|
2469
|
-
iconOverlayUrl: _nullishCoalesce(_optionalChain([interview, 'access',
|
|
2494
|
+
name: _optionalChain([interview, 'access', _78 => _78.user, 'optionalAccess', _79 => _79.full_name]) || "Customer",
|
|
2495
|
+
avatarUrl: _optionalChain([interview, 'access', _80 => _80.user, 'optionalAccess', _81 => _81.avatar_url]),
|
|
2496
|
+
subtitle: _nullishCoalesce(_optionalChain([interview, 'access', _82 => _82.msp, 'optionalAccess', _83 => _83.name]), () => ( null)),
|
|
2497
|
+
iconOverlayUrl: _nullishCoalesce(_optionalChain([interview, 'access', _84 => _84.msp, 'optionalAccess', _85 => _85.icon_url]), () => ( null))
|
|
2470
2498
|
},
|
|
2471
2499
|
className
|
|
2472
2500
|
}
|
|
@@ -2492,18 +2520,18 @@ function CustomerInterviewCard({
|
|
|
2492
2520
|
interview.video_summary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 text-ods-text-secondary text-h6", children: interview.video_summary }) }),
|
|
2493
2521
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-auto flex h-[60px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-3", children: [
|
|
2494
2522
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2495
|
-
_optionalChain([interview, 'access',
|
|
2523
|
+
_optionalChain([interview, 'access', _86 => _86.user, 'optionalAccess', _87 => _87.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2496
2524
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2497
2525
|
{
|
|
2498
2526
|
src: interview.user.avatar_url,
|
|
2499
|
-
alt: _optionalChain([interview, 'access',
|
|
2527
|
+
alt: _optionalChain([interview, 'access', _88 => _88.user, 'optionalAccess', _89 => _89.full_name]) || "Customer",
|
|
2500
2528
|
className: "h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover",
|
|
2501
2529
|
width: 48,
|
|
2502
2530
|
height: 48,
|
|
2503
2531
|
unoptimized: true
|
|
2504
2532
|
}
|
|
2505
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-full border border-ods-border bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: (_optionalChain([interview, 'access',
|
|
2506
|
-
_optionalChain([interview, 'access',
|
|
2533
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-full border border-ods-border bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: (_optionalChain([interview, 'access', _90 => _90.user, 'optionalAccess', _91 => _91.full_name]) || "A").charAt(0).toUpperCase() }) }),
|
|
2534
|
+
_optionalChain([interview, 'access', _92 => _92.msp, 'optionalAccess', _93 => _93.icon_url]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "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__ */ _jsxruntime.jsx.call(void 0,
|
|
2507
2535
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2508
2536
|
{
|
|
2509
2537
|
src: interview.msp.icon_url,
|
|
@@ -2517,13 +2545,13 @@ function CustomerInterviewCard({
|
|
|
2517
2545
|
] }),
|
|
2518
2546
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
2519
2547
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: [
|
|
2520
|
-
_optionalChain([interview, 'access',
|
|
2521
|
-
_optionalChain([interview, 'access',
|
|
2548
|
+
_optionalChain([interview, 'access', _94 => _94.user, 'optionalAccess', _95 => _95.full_name]) || "Anonymous",
|
|
2549
|
+
_optionalChain([interview, 'access', _96 => _96.msp, 'optionalAccess', _97 => _97.name]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
2522
2550
|
" \u2022 ",
|
|
2523
2551
|
interview.msp.name
|
|
2524
2552
|
] })
|
|
2525
2553
|
] }),
|
|
2526
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([interview, 'access',
|
|
2554
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([interview, 'access', _98 => _98.user, 'optionalAccess', _99 => _99.job_title]) || " " })
|
|
2527
2555
|
] })
|
|
2528
2556
|
] }) })
|
|
2529
2557
|
] }) });
|
|
@@ -2533,7 +2561,7 @@ function CustomerInterviewCard({
|
|
|
2533
2561
|
function formatInvestorUpdatePeriod(start, end, options) {
|
|
2534
2562
|
if (!start && !end) return "";
|
|
2535
2563
|
const fmt = (d) => new Date(d).toLocaleDateString("en-US", {
|
|
2536
|
-
month: _optionalChain([options, 'optionalAccess',
|
|
2564
|
+
month: _optionalChain([options, 'optionalAccess', _100 => _100.monthFormat]) || "short",
|
|
2537
2565
|
year: "numeric",
|
|
2538
2566
|
// Pin to UTC so SSR (Vercel = UTC) and the client agree (React #418).
|
|
2539
2567
|
timeZone: "UTC"
|
|
@@ -2648,7 +2676,7 @@ function InvestorUpdateCard({
|
|
|
2648
2676
|
imageUrl: update.featured_image,
|
|
2649
2677
|
placeholderUrl,
|
|
2650
2678
|
title: update.title || `Update #${update.update_number || "?"}`,
|
|
2651
|
-
summary: _optionalChain([update, 'access',
|
|
2679
|
+
summary: _optionalChain([update, 'access', _101 => _101.strategic_update, 'optionalAccess', _102 => _102.slice, 'call', _103 => _103(0, 120)]) || _optionalChain([update, 'access', _104 => _104.content, 'optionalAccess', _105 => _105.slice, 'call', _106 => _106(0, 120)]) || "No description",
|
|
2652
2680
|
badges: update.update_number ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "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
|
|
@@ -2857,7 +2885,7 @@ function OnboardingGuideCard({
|
|
|
2857
2885
|
const compactCover = coverImage || placeholderUrl || null;
|
|
2858
2886
|
const hasVideoCover = !guide.featured_image && !!guide.main_video_thumbnail;
|
|
2859
2887
|
const summary2 = stripMarkdownPreview(guide.video_summary || guide.content || "");
|
|
2860
|
-
const author = _optionalChain([guide, 'access',
|
|
2888
|
+
const author = _optionalChain([guide, 'access', _107 => _107.author, 'optionalAccess', _108 => _108.full_name, 'optionalAccess', _109 => _109.trim, 'call', _110 => _110()]) || "";
|
|
2861
2889
|
const subtitleParts = [`Step ${guide.step_order}`, guide.section, author].filter(
|
|
2862
2890
|
(s) => typeof s === "string" && s.length > 0
|
|
2863
2891
|
);
|
|
@@ -2911,28 +2939,35 @@ function OnboardingGuideCard({
|
|
|
2911
2939
|
|
|
2912
2940
|
// src/components/ui/avatar-stack.tsx
|
|
2913
2941
|
|
|
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
|
|
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";
|
|
2930
2964
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2931
2965
|
"div",
|
|
2932
2966
|
{
|
|
2933
|
-
className: _chunk23V5BSHDcjs.cn.call(void 0, "flex items-center", className),
|
|
2967
|
+
className: _chunk23V5BSHDcjs.cn.call(void 0, "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
2972
|
visible.map((person, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2938
2973
|
SquareAvatar,
|
|
@@ -2943,7 +2978,7 @@ function AvatarStack({
|
|
|
2943
2978
|
alt: person.name,
|
|
2944
2979
|
fallback: person.name,
|
|
2945
2980
|
title: person.name,
|
|
2946
|
-
className: _chunk23V5BSHDcjs.cn.call(void 0, "relative ring-2", ringClassName, i > 0 && (
|
|
2981
|
+
className: _chunk23V5BSHDcjs.cn.call(void 0, "relative ring-2", ringClassName, i > 0 && (compact ? "-ml-2" : "-ml-3")),
|
|
2947
2982
|
style: { zIndex: visible.length - i }
|
|
2948
2983
|
},
|
|
2949
2984
|
_nullishCoalesce(person.key, () => ( `${person.name}-${i}`))
|
|
@@ -2955,7 +2990,11 @@ function AvatarStack({
|
|
|
2955
2990
|
className: _chunk23V5BSHDcjs.cn.call(void 0,
|
|
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: [
|
|
@@ -2971,7 +3010,7 @@ function AvatarStack({
|
|
|
2971
3010
|
|
|
2972
3011
|
// src/components/chat/utils/agent-status-message.ts
|
|
2973
3012
|
function getStatusColorScheme(status) {
|
|
2974
|
-
const s = _optionalChain([status, 'optionalAccess',
|
|
3013
|
+
const s = _optionalChain([status, 'optionalAccess', _111 => _111.toLowerCase, 'call', _112 => _112()]) || "";
|
|
2975
3014
|
switch (status) {
|
|
2976
3015
|
case "completed":
|
|
2977
3016
|
case "success":
|
|
@@ -3213,7 +3252,7 @@ function RoadmapCard({
|
|
|
3213
3252
|
const compactHref = safeHref(_nullishCoalesce(href, () => ( null)));
|
|
3214
3253
|
const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
|
|
3215
3254
|
const hasFigma = !!item.figmaUrl;
|
|
3216
|
-
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access',
|
|
3255
|
+
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _113 => _113.screenshots, 'optionalAccess', _114 => _114.length]), () => ( 0))) > 0;
|
|
3217
3256
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
3218
3257
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
3219
3258
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -3232,7 +3271,7 @@ function RoadmapCard({
|
|
|
3232
3271
|
unoptimized: true,
|
|
3233
3272
|
className: "h-8 w-8 object-contain"
|
|
3234
3273
|
}
|
|
3235
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-secondary text-h6", children: _optionalChain([item, 'access',
|
|
3274
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-secondary text-h6", children: _optionalChain([item, 'access', _115 => _115.title, 'optionalAccess', _116 => _116.substring, 'call', _117 => _117(0, 2)]) || "??" })
|
|
3236
3275
|
}
|
|
3237
3276
|
),
|
|
3238
3277
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -3312,7 +3351,7 @@ function RoadmapCard({
|
|
|
3312
3351
|
unoptimized: true,
|
|
3313
3352
|
className: "object-contain p-1"
|
|
3314
3353
|
}
|
|
3315
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
3354
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _118 => _118.title, 'optionalAccess', _119 => _119.substring, 'call', _120 => _120(0, 2)]) || "??" }) }),
|
|
3316
3355
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3317
3356
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-[48px] items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "line-clamp-2 flex-1 text-ods-text-primary text-h3", children: item.title }) }),
|
|
3318
3357
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-[20px] items-center", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h5", children: [
|
|
@@ -3413,10 +3452,10 @@ var MEDIA_TYPE = {
|
|
|
3413
3452
|
VIDEO: "video"
|
|
3414
3453
|
};
|
|
3415
3454
|
function isVideoMedia(media) {
|
|
3416
|
-
return _optionalChain([media, 'optionalAccess',
|
|
3455
|
+
return _optionalChain([media, 'optionalAccess', _121 => _121.media_type]) === MEDIA_TYPE.VIDEO;
|
|
3417
3456
|
}
|
|
3418
3457
|
function isImageMedia(media) {
|
|
3419
|
-
return _optionalChain([media, 'optionalAccess',
|
|
3458
|
+
return _optionalChain([media, 'optionalAccess', _122 => _122.media_type]) === MEDIA_TYPE.IMAGE;
|
|
3420
3459
|
}
|
|
3421
3460
|
function isPublishableMediaType(mediaType) {
|
|
3422
3461
|
return mediaType === MEDIA_TYPE.VIDEO || mediaType === MEDIA_TYPE.IMAGE;
|
|
@@ -3433,7 +3472,7 @@ function programItemToStripProfile(item) {
|
|
|
3433
3472
|
const fromAuthor = toStripProfile(item.author);
|
|
3434
3473
|
if (fromAuthor) return fromAuthor;
|
|
3435
3474
|
const host = Array.isArray(item.hosts) ? item.hosts[0] : null;
|
|
3436
|
-
if (!_optionalChain([host, 'optionalAccess',
|
|
3475
|
+
if (!_optionalChain([host, 'optionalAccess', _123 => _123.name])) return null;
|
|
3437
3476
|
return toStripProfile({ full_name: host.name, avatar_url: _nullishCoalesce(host.avatar_url, () => ( null)) });
|
|
3438
3477
|
}
|
|
3439
3478
|
function transformEventToProgram(event) {
|
|
@@ -3707,7 +3746,7 @@ function ProgramCard({
|
|
|
3707
3746
|
const itemDate2 = compactDate;
|
|
3708
3747
|
const compactCover = coverImage || placeholderUrl || null;
|
|
3709
3748
|
const typeMeta = compactTypeMeta();
|
|
3710
|
-
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access',
|
|
3749
|
+
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _124 => _124.labels, 'optionalAccess', _125 => _125.singular])].filter(
|
|
3711
3750
|
(s) => typeof s === "string" && s.length > 0
|
|
3712
3751
|
);
|
|
3713
3752
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunk23V5BSHDcjs.cn.call(void 0, COMPACT_CARD_OUTER, className), children: [
|
|
@@ -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(",")}`,
|
|
@@ -4091,5 +4131,8 @@ function buildListUrl(contentRefType, ids, base = "") {
|
|
|
4091
4131
|
|
|
4092
4132
|
|
|
4093
4133
|
|
|
4094
|
-
|
|
4095
|
-
|
|
4134
|
+
|
|
4135
|
+
|
|
4136
|
+
|
|
4137
|
+
exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.CardHorizontal = CardHorizontal; exports.formatDate = formatDate; exports.formatNumber = formatNumber; exports.formatPrice = formatPrice; exports.formatBytes = formatBytes; exports.formatBytesShort = formatBytesShort; exports.formatFileSize = formatFileSize; exports.formatLargeNumber = formatLargeNumber; exports.formatAbbreviatedNumber = formatAbbreviatedNumber; exports.nameInitials = nameInitials; exports.personInitials = personInitials; exports.personFirstName = personFirstName; exports.singleInitial = singleInitial; exports.formatDurationMMSS = formatDurationMMSS; exports.formatDurationCompact = formatDurationCompact; exports.formatTimeWithTimezone = formatTimeWithTimezone; exports.formatDurationFromRange = formatDurationFromRange; exports.formatDateUTC = formatDateUTC; exports.formatEntryMonthUTC = formatEntryMonthUTC; exports.formatLegalDate = formatLegalDate; exports.formatCurrency = formatCurrency; exports.formatPercent = formatPercent; exports.formatWholeDollars = formatWholeDollars; exports.formatCompactMetric = formatCompactMetric; exports.getTrendColors = getTrendColors; exports.formatDateRange = formatDateRange; exports.formatDateTimeAt = formatDateTimeAt; exports.formatDurationFromMs = formatDurationFromMs; exports.formatDuration = formatDuration; exports.titleCaseFromSlug = titleCaseFromSlug; exports.formatUnderscoreText = formatUnderscoreText; exports.stripHtml = stripHtml; exports.formatClassification = formatClassification; exports.formatPricingModel = formatPricingModel; exports.formatBioText = formatBioText; exports.SquareAvatar = SquareAvatar; exports.InteractiveCard = InteractiveCard; exports.Modal = Modal; exports.ModalContent = ModalContent; exports.ModalHeader = ModalHeader; exports.ModalTitle = ModalTitle; exports.ModalFooter = ModalFooter; exports.ImageGalleryModal = ImageGalleryModal; exports.statusBadgeVariants = statusBadgeVariants; exports.genBadgeBgOpacity = genBadgeBgOpacity; exports.generationTierFromLabel = generationTierFromLabel; exports.StatusBadge = StatusBadge; exports.getProxiedImageUrl = getProxiedImageUrl; exports.urlPathLooksLikeSvg = urlPathLooksLikeSvg; exports.shouldProxyImage = shouldProxyImage; exports.generateImageSizes = generateImageSizes; exports.isCrossOriginUrl = isCrossOriginUrl; exports.decideNewTab = decideNewTab; exports.isSameOriginAbsoluteHref = isSameOriginAbsoluteHref; exports.computeIsNewTab = computeIsNewTab; exports.newTabAnchorAttrs = newTabAnchorAttrs; exports.buildAnchorProps = buildAnchorProps; exports.EMPTY_AUTHOR_PLACEHOLDER = EMPTY_AUTHOR_PLACEHOLDER; exports.EntityMetadataValueCell = EntityMetadataValueCell; exports.EntityMetadataAuthorCell = EntityMetadataAuthorCell; exports.EntityAuthorCard = EntityAuthorCard; exports.BlogImagePlaceholder = BlogImagePlaceholder; exports.useCoverImageFallback = useCoverImageFallback; exports.hideOnError = hideOnError; exports.EntityPortraitCard = EntityPortraitCard; exports.FlamingoLogo = FlamingoLogo; exports.PlatformBadge = PlatformBadge; exports.AdminContentCard = AdminContentCard; exports.getProxiedImageUrl2 = getProxiedImageUrl2; exports.EmployeeEntryBadge = EmployeeEntryBadge; exports.EmployeeEntryCard = EmployeeEntryCard; exports.EmployeeEntryCardSkeleton = EmployeeEntryCardSkeleton; exports.WhatIShippedCard = WhatIShippedCard; exports.WhatIShippedCardSkeleton = WhatIShippedCardSkeleton; exports.HowIWorkCard = HowIWorkCard; exports.HowIWorkCardSkeleton = HowIWorkCardSkeleton; exports.AiPromptCard = AiPromptCard; exports.AiPromptCardSkeleton = AiPromptCardSkeleton; exports.DEFAULT_VIDEO_BITES_TITLE = DEFAULT_VIDEO_BITES_TITLE; exports.toStripProfile = toStripProfile; exports.sortBitesByCreatedAtDesc = sortBitesByCreatedAtDesc; exports.sortBitesByFeaturedAtDesc = sortBitesByFeaturedAtDesc; exports.ProductReleaseCard = ProductReleaseCard; exports.ProductReleaseCardSkeleton = ProductReleaseCardSkeleton; exports.formatReleaseDate = formatReleaseDate; exports.formatDateShort = formatDateShort; exports.formatDateSlashUTC = formatDateSlashUTC; exports.releaseTypeToBadgeColor = releaseTypeToBadgeColor; exports.resolveReleaseCover = resolveReleaseCover; exports.defaultBuildProductReleaseCardProps = defaultBuildProductReleaseCardProps; exports.buildProductReleaseCardProps = buildProductReleaseCardProps; exports.COMPACT_CARD_OUTER = COMPACT_CARD_OUTER; exports.COMPACT_CARD_OUTER_STATIC = COMPACT_CARD_OUTER_STATIC; exports.COMPACT_CARD_SKELETON_OUTER = COMPACT_CARD_SKELETON_OUTER; exports.COMPACT_CARD_IMAGE_SLOT = COMPACT_CARD_IMAGE_SLOT; exports.COMPACT_CARD_SKELETON_IMAGE_SLOT = COMPACT_CARD_SKELETON_IMAGE_SLOT; exports.COMPACT_CARD_ICON_SLOT = COMPACT_CARD_ICON_SLOT; exports.COMPACT_CARD_TEXT_COL = COMPACT_CARD_TEXT_COL; exports.COMPACT_CARD_TITLE_ROW = COMPACT_CARD_TITLE_ROW; exports.COMPACT_CARD_META_ROW_BOX = COMPACT_CARD_META_ROW_BOX; exports.COMPACT_CARD_TITLE = COMPACT_CARD_TITLE; exports.COMPACT_CARD_SUBTITLE = COMPACT_CARD_SUBTITLE; exports.COMPACT_CARD_SUMMARY = COMPACT_CARD_SUMMARY; exports.COMPACT_CARD_META_ROW = COMPACT_CARD_META_ROW; exports.COMPACT_CARD_ROW_FILLER = COMPACT_CARD_ROW_FILLER; exports.safeHref = safeHref; exports.useEntityCardLink = useEntityCardLink; exports.BlogCardSkeleton = BlogCardSkeleton; exports.BlogCard = BlogCard; exports.CaseStudyCardSkeleton = CaseStudyCardSkeleton; exports.CaseStudyCard = CaseStudyCard; exports.CustomerInterviewCardSkeleton = CustomerInterviewCardSkeleton; exports.CustomerInterviewCard = CustomerInterviewCard; exports.formatInvestorUpdatePeriod = formatInvestorUpdatePeriod; exports.InvestorUpdateCardSkeleton = InvestorUpdateCardSkeleton; exports.InvestorUpdateCard = InvestorUpdateCard; exports.OnboardingGuideCardSkeleton = OnboardingGuideCardSkeleton; exports.OnboardingGuideCard = OnboardingGuideCard; exports.AvatarStack = AvatarStack; exports.getStatusColorScheme = getStatusColorScheme; exports.CUSTOM_ITEM_ID = CUSTOM_ITEM_ID; exports.getTaskTypeLabel = getTaskTypeLabel; exports.RoadmapVoteButton = RoadmapVoteButton; exports.TaskTypeIcon = TaskTypeIcon; exports.RoadmapCardSkeleton = RoadmapCardSkeleton; exports.RoadmapCard = RoadmapCard; exports.MEDIA_TYPE = MEDIA_TYPE; exports.isVideoMedia = isVideoMedia; exports.isImageMedia = isImageMedia; exports.isPublishableMediaType = isPublishableMediaType; exports.partitionMediaByType = partitionMediaByType; exports.programItemToStripProfile = programItemToStripProfile; exports.transformEventToProgram = transformEventToProgram; exports.transformPodcastToProgram = transformPodcastToProgram; exports.transformWebinarToProgram = transformWebinarToProgram; exports.ProgramCardSkeleton = ProgramCardSkeleton; exports.ProgramCard = ProgramCard; exports.extractItems = extractItems; exports.extractItemId = extractItemId; exports.canonicalContentRefType = canonicalContentRefType; exports.buildListUrl = buildListUrl;
|
|
4138
|
+
//# sourceMappingURL=chunk-EYKTKDRK.cjs.map
|