@flamingo-stack/openframe-frontend-core 0.0.626 → 0.0.627-snapshot.20260914044017
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-2CCIF5QV.js → chunk-2E543KJD.js} +4 -4
- package/dist/{chunk-KK7YEVTQ.js → chunk-6AFJQOT2.js} +3 -3
- package/dist/{chunk-Z42VU7HF.cjs → chunk-6QLOSGE7.cjs} +33 -33
- package/dist/{chunk-Z42VU7HF.cjs.map → chunk-6QLOSGE7.cjs.map} +1 -1
- package/dist/{chunk-LJ7KMQRM.cjs → chunk-BND25SXU.cjs} +29 -29
- package/dist/{chunk-LJ7KMQRM.cjs.map → chunk-BND25SXU.cjs.map} +1 -1
- package/dist/{chunk-3POP5WWC.cjs → chunk-C3DDNRJG.cjs} +6 -6
- package/dist/{chunk-3POP5WWC.cjs.map → chunk-C3DDNRJG.cjs.map} +1 -1
- package/dist/{chunk-QJ6BCSFQ.cjs → chunk-E523WX5V.cjs} +3 -3
- package/dist/{chunk-QJ6BCSFQ.cjs.map → chunk-E523WX5V.cjs.map} +1 -1
- package/dist/{chunk-63F2UQDW.cjs → chunk-GH4WLDPS.cjs} +15 -15
- package/dist/{chunk-63F2UQDW.cjs.map → chunk-GH4WLDPS.cjs.map} +1 -1
- package/dist/{chunk-ZIEYC6ZB.js → chunk-HLZKMYST.js} +3 -3
- package/dist/{chunk-P7KIFYZI.js → chunk-HNNR5CGX.js} +3 -3
- package/dist/{chunk-ESSHEVZQ.cjs → chunk-JONR3BDJ.cjs} +33 -33
- package/dist/chunk-JONR3BDJ.cjs.map +1 -0
- package/dist/{chunk-WEDSYUSR.js → chunk-JVLLA3Z7.js} +4 -4
- package/dist/{chunk-F4TAUCHQ.js → chunk-JWXEEZKD.js} +2 -2
- package/dist/{chunk-RVK3CL5S.js → chunk-K43T7N7O.js} +6 -6
- package/dist/{chunk-L54LFB6V.cjs → chunk-KT47FRJC.cjs} +11 -11
- package/dist/{chunk-L54LFB6V.cjs.map → chunk-KT47FRJC.cjs.map} +1 -1
- package/dist/{chunk-34GEH24Y.cjs → chunk-KTBZJP5J.cjs} +10 -10
- package/dist/{chunk-34GEH24Y.cjs.map → chunk-KTBZJP5J.cjs.map} +1 -1
- package/dist/{chunk-VOBOO7EF.cjs → chunk-L6GJV7E7.cjs} +59 -59
- package/dist/{chunk-VOBOO7EF.cjs.map → chunk-L6GJV7E7.cjs.map} +1 -1
- package/dist/{chunk-H7KQM3VI.js → chunk-LCMXGM2P.js} +6 -6
- package/dist/{chunk-RGMUA4XB.js → chunk-LLSX5T7X.js} +5 -5
- package/dist/{chunk-RQQAPCOU.js → chunk-MB4IEWLH.js} +3 -3
- package/dist/{chunk-IJYP2DMW.js → chunk-ON7663OW.js} +2 -2
- package/dist/{chunk-Q5XGBLT5.cjs → chunk-OQHFHKUG.cjs} +146 -74
- package/dist/chunk-OQHFHKUG.cjs.map +1 -0
- package/dist/{chunk-S43SLJIN.cjs → chunk-Q544C4Z7.cjs} +22 -22
- package/dist/{chunk-S43SLJIN.cjs.map → chunk-Q544C4Z7.cjs.map} +1 -1
- package/dist/{chunk-BVCWBA2U.js → chunk-QS2QCXBH.js} +466 -394
- package/dist/chunk-QS2QCXBH.js.map +1 -0
- package/dist/{chunk-E7YNDGRN.cjs → chunk-SWJ6QLD7.cjs} +81 -81
- package/dist/{chunk-E7YNDGRN.cjs.map → chunk-SWJ6QLD7.cjs.map} +1 -1
- package/dist/{chunk-QPQCQWAW.cjs → chunk-TDKOW2C5.cjs} +20 -20
- package/dist/{chunk-QPQCQWAW.cjs.map → chunk-TDKOW2C5.cjs.map} +1 -1
- package/dist/{chunk-NLVBO3IR.js → chunk-TUUSLED7.js} +5 -5
- package/dist/{chunk-QR2FJE2C.js → chunk-U4UNC3RP.js} +7 -7
- package/dist/{chunk-NZJNXGU2.cjs → chunk-UBX3ATG5.cjs} +198 -198
- package/dist/{chunk-NZJNXGU2.cjs.map → chunk-UBX3ATG5.cjs.map} +1 -1
- package/dist/{chunk-MSVEZB5D.cjs → chunk-UNI3POHU.cjs} +145 -145
- package/dist/{chunk-MSVEZB5D.cjs.map → chunk-UNI3POHU.cjs.map} +1 -1
- package/dist/{chunk-3LKJ6JWZ.cjs → chunk-VCY2KHOE.cjs} +28 -28
- package/dist/{chunk-3LKJ6JWZ.cjs.map → chunk-VCY2KHOE.cjs.map} +1 -1
- package/dist/{chunk-DZ7CEES3.js → chunk-WBZ4HP7D.js} +3 -3
- package/dist/{chunk-DZ7CEES3.js.map → chunk-WBZ4HP7D.js.map} +1 -1
- package/dist/{chunk-CPO5KPW6.cjs → chunk-WIP5JO2O.cjs} +6 -6
- package/dist/{chunk-CPO5KPW6.cjs.map → chunk-WIP5JO2O.cjs.map} +1 -1
- package/dist/{chunk-DLZFFGQ7.js → chunk-XQ4II4BK.js} +3 -3
- package/dist/{chunk-HTIDXF43.cjs → chunk-Y5QXDVPP.cjs} +5 -5
- package/dist/{chunk-HTIDXF43.cjs.map → chunk-Y5QXDVPP.cjs.map} +1 -1
- package/dist/{chunk-MZWSJPDZ.js → chunk-YZJL6WGP.js} +3 -3
- package/dist/{chunk-IZG3VYDV.js → chunk-ZRCWXJDW.js} +3 -3
- package/dist/components/case-studies/index.cjs +10 -10
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/entity-cards/ai-prompt-card.d.ts +2 -1
- package/dist/components/chat/entity-cards/ai-prompt-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/employee-entry-card.d.ts +3 -3
- package/dist/components/chat/entity-cards/employee-entry-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/entity-author-card.d.ts +8 -6
- package/dist/components/chat/entity-cards/entity-author-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/docs/index.js +7 -7
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/features/index.js +3 -3
- package/dist/components/help-center-pages/index.cjs +24 -24
- package/dist/components/help-center-pages/index.js +15 -15
- package/dist/components/index.cjs +57 -53
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +19 -15
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- package/dist/components/meeting-scheduler/index.js +3 -3
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/navigation/index.js +6 -6
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/card-registry.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/tickets/index.js +7 -7
- package/dist/components/ui/department-badge.d.ts +21 -0
- package/dist/components/ui/department-badge.d.ts.map +1 -0
- package/dist/components/ui/index.cjs +8 -4
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +7 -3
- package/dist/components/ui/palette-badge.d.ts +20 -0
- package/dist/components/ui/palette-badge.d.ts.map +1 -0
- package/dist/components/ui/status-badge.d.ts +1 -1
- package/dist/components/ui/status-badge.d.ts.map +1 -1
- package/dist/index.cjs +18 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -7
- package/dist/index.js.map +1 -1
- package/dist/types/department.d.ts +4 -0
- package/dist/types/department.d.ts.map +1 -1
- package/dist/utils/badge-palette.d.ts +18 -0
- package/dist/utils/badge-palette.d.ts.map +1 -0
- package/dist/utils/index.cjs +29 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +27 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/ai-prompt-card.tsx +7 -4
- package/src/components/chat/entity-cards/employee-entry-card.tsx +21 -24
- package/src/components/chat/entity-cards/entity-author-card.tsx +10 -4
- package/src/components/related-content/card-registry.tsx +3 -1
- package/src/components/ui/.department-badge.md +2 -0
- package/src/components/ui/.palette-badge.md +2 -0
- package/src/components/ui/.status-badge.md +2 -2
- package/src/components/ui/__tests__/department-badge.test.tsx +49 -0
- package/src/components/ui/department-badge.tsx +35 -0
- package/src/components/ui/index.ts +2 -0
- package/src/components/ui/palette-badge.tsx +34 -0
- package/src/components/ui/status-badge.tsx +5 -0
- package/src/types/department.ts +4 -0
- package/src/utils/.badge-palette.md +2 -0
- package/src/utils/badge-palette.ts +38 -0
- package/src/utils/index.ts +2 -0
- package/dist/chunk-BVCWBA2U.js.map +0 -1
- package/dist/chunk-ESSHEVZQ.cjs.map +0 -1
- package/dist/chunk-Q5XGBLT5.cjs.map +0 -1
- /package/dist/{chunk-2CCIF5QV.js.map → chunk-2E543KJD.js.map} +0 -0
- /package/dist/{chunk-KK7YEVTQ.js.map → chunk-6AFJQOT2.js.map} +0 -0
- /package/dist/{chunk-ZIEYC6ZB.js.map → chunk-HLZKMYST.js.map} +0 -0
- /package/dist/{chunk-P7KIFYZI.js.map → chunk-HNNR5CGX.js.map} +0 -0
- /package/dist/{chunk-WEDSYUSR.js.map → chunk-JVLLA3Z7.js.map} +0 -0
- /package/dist/{chunk-F4TAUCHQ.js.map → chunk-JWXEEZKD.js.map} +0 -0
- /package/dist/{chunk-RVK3CL5S.js.map → chunk-K43T7N7O.js.map} +0 -0
- /package/dist/{chunk-H7KQM3VI.js.map → chunk-LCMXGM2P.js.map} +0 -0
- /package/dist/{chunk-RGMUA4XB.js.map → chunk-LLSX5T7X.js.map} +0 -0
- /package/dist/{chunk-RQQAPCOU.js.map → chunk-MB4IEWLH.js.map} +0 -0
- /package/dist/{chunk-IJYP2DMW.js.map → chunk-ON7663OW.js.map} +0 -0
- /package/dist/{chunk-NLVBO3IR.js.map → chunk-TUUSLED7.js.map} +0 -0
- /package/dist/{chunk-QR2FJE2C.js.map → chunk-U4UNC3RP.js.map} +0 -0
- /package/dist/{chunk-DLZFFGQ7.js.map → chunk-XQ4II4BK.js.map} +0 -0
- /package/dist/{chunk-MZWSJPDZ.js.map → chunk-YZJL6WGP.js.map} +0 -0
- /package/dist/{chunk-IZG3VYDV.js.map → chunk-ZRCWXJDW.js.map} +0 -0
|
@@ -757,6 +757,11 @@ var statusBadgeVariants = _classvarianceauthority.cva.call(void 0, "inline-flex
|
|
|
757
757
|
yellow: "border border-ods-border bg-ods-accent text-ods-text-on-accent",
|
|
758
758
|
green: "bg-ods-success text-ods-text-on-accent",
|
|
759
759
|
purple: "bg-ods-flamingo-pink text-ods-text-on-accent",
|
|
760
|
+
// Solid and soft ODS palette fills (`BADGE_PALETTE`): tokens only, no hex.
|
|
761
|
+
cyanSoft: "bg-ods-flamingo-cyan-secondary text-ods-flamingo-cyan",
|
|
762
|
+
pinkSoft: "bg-ods-flamingo-pink-secondary text-ods-flamingo-pink",
|
|
763
|
+
openYellow: "bg-ods-open-yellow text-ods-text-on-accent",
|
|
764
|
+
red: "bg-ods-error text-ods-text-on-accent",
|
|
760
765
|
success: "bg-ods-success-secondary text-ods-success",
|
|
761
766
|
error: "bg-ods-error-secondary text-ods-error",
|
|
762
767
|
warning: "bg-ods-warning-secondary text-ods-warning",
|
|
@@ -807,12 +812,72 @@ function StatusBadge({ text, variant, colorScheme, className, singleLine, gen, s
|
|
|
807
812
|
);
|
|
808
813
|
}
|
|
809
814
|
|
|
815
|
+
// src/utils/badge-palette.ts
|
|
816
|
+
var BADGE_PALETTE = [
|
|
817
|
+
"cyan",
|
|
818
|
+
"cyanSoft",
|
|
819
|
+
"pink",
|
|
820
|
+
"pinkSoft",
|
|
821
|
+
"openYellow",
|
|
822
|
+
"warning",
|
|
823
|
+
"green",
|
|
824
|
+
"success",
|
|
825
|
+
"red",
|
|
826
|
+
"error"
|
|
827
|
+
];
|
|
828
|
+
function isBadgePaletteKey(value) {
|
|
829
|
+
return typeof value === "string" && BADGE_PALETTE.includes(value);
|
|
830
|
+
}
|
|
831
|
+
function pickBadgePaletteColor({
|
|
832
|
+
avoid = [],
|
|
833
|
+
random = Math.random
|
|
834
|
+
} = {}) {
|
|
835
|
+
const used = new Set(avoid);
|
|
836
|
+
const free = BADGE_PALETTE.filter((key) => !used.has(key));
|
|
837
|
+
const pool = free.length > 0 ? free : BADGE_PALETTE;
|
|
838
|
+
return pool[Math.floor(random() * pool.length) % pool.length];
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
// src/components/ui/palette-badge.tsx
|
|
842
|
+
|
|
843
|
+
function PaletteBadge({ text, color, className, variant = "button" }) {
|
|
844
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
845
|
+
StatusBadge,
|
|
846
|
+
{
|
|
847
|
+
text,
|
|
848
|
+
colorScheme: isBadgePaletteKey(color) ? color : "default",
|
|
849
|
+
variant,
|
|
850
|
+
singleLine: true,
|
|
851
|
+
className
|
|
852
|
+
}
|
|
853
|
+
);
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
// src/components/ui/department-badge.tsx
|
|
857
|
+
|
|
858
|
+
function DepartmentBadge({
|
|
859
|
+
department,
|
|
860
|
+
emptyLabel = "No department",
|
|
861
|
+
className,
|
|
862
|
+
variant
|
|
863
|
+
}) {
|
|
864
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
865
|
+
PaletteBadge,
|
|
866
|
+
{
|
|
867
|
+
text: _optionalChain([department, 'optionalAccess', _5 => _5.name]) || emptyLabel,
|
|
868
|
+
color: _optionalChain([department, 'optionalAccess', _6 => _6.name]) ? department.color : null,
|
|
869
|
+
className,
|
|
870
|
+
variant
|
|
871
|
+
}
|
|
872
|
+
);
|
|
873
|
+
}
|
|
874
|
+
|
|
810
875
|
// src/utils/image-proxy.ts
|
|
811
876
|
function getProxiedImageUrl(imageUrl, options) {
|
|
812
877
|
if (!imageUrl) return null;
|
|
813
|
-
const proxyPrefix = _optionalChain([options, 'optionalAccess',
|
|
814
|
-
const skipDomains = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
815
|
-
const directHttps = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
878
|
+
const proxyPrefix = _optionalChain([options, 'optionalAccess', _7 => _7.proxyPrefix]);
|
|
879
|
+
const skipDomains = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _8 => _8.skipDomains]), () => ( []));
|
|
880
|
+
const directHttps = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _9 => _9.directHttps]), () => ( false));
|
|
816
881
|
if (proxyPrefix && imageUrl.includes(proxyPrefix)) {
|
|
817
882
|
return imageUrl;
|
|
818
883
|
}
|
|
@@ -884,7 +949,7 @@ function isSameOriginAbsoluteHref(href) {
|
|
|
884
949
|
function computeIsNewTab(runtime, href, targetPlatform) {
|
|
885
950
|
if (!href) return false;
|
|
886
951
|
if (runtime.navigation.mode === "embed") return !isSameOriginAbsoluteHref(href);
|
|
887
|
-
return _nullishCoalesce(_optionalChain([runtime, 'access',
|
|
952
|
+
return _nullishCoalesce(_optionalChain([runtime, 'access', _10 => _10.navigation, 'access', _11 => _11.decideNewTab, 'optionalCall', _12 => _12({ href, targetPlatform })]), () => ( decideNewTab({
|
|
888
953
|
href,
|
|
889
954
|
targetPlatform,
|
|
890
955
|
currentSource: _nullishCoalesce(runtime.source, () => ( ""))
|
|
@@ -911,7 +976,7 @@ function EntityMetadataValueCell({
|
|
|
911
976
|
uppercase = true
|
|
912
977
|
}) {
|
|
913
978
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex flex-col gap-3 bg-ods-card p-4 ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-0", children: [
|
|
914
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: uppercase ? value.toLocaleUpperCase() : value }),
|
|
979
|
+
typeof value === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: uppercase ? value.toLocaleUpperCase() : value }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-6 items-center", children: value }),
|
|
915
980
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: label })
|
|
916
981
|
] }) });
|
|
917
982
|
}
|
|
@@ -950,7 +1015,7 @@ function EntityAuthorCard({
|
|
|
950
1015
|
renderEmptyAuthor = false,
|
|
951
1016
|
className
|
|
952
1017
|
}) {
|
|
953
|
-
const hasAuthor = !!_optionalChain([author, 'optionalAccess',
|
|
1018
|
+
const hasAuthor = !!_optionalChain([author, 'optionalAccess', _13 => _13.full_name]);
|
|
954
1019
|
if (!hasAuthor && !renderEmptyAuthor) return null;
|
|
955
1020
|
const effectiveAuthor = hasAuthor ? author : EMPTY_AUTHOR_PLACEHOLDER;
|
|
956
1021
|
const formatted = publishedAt ? formatDate(publishedAt) : "";
|
|
@@ -1039,7 +1104,7 @@ function EntityPortraitCard({
|
|
|
1039
1104
|
}) {
|
|
1040
1105
|
const { src, onError: onMediaError } = useCoverImageFallback(imageUrl, placeholderUrl);
|
|
1041
1106
|
const [measured, setMeasured] = _react.useState.call(void 0, null);
|
|
1042
|
-
const isWide = _optionalChain([measured, 'optionalAccess',
|
|
1107
|
+
const isWide = _optionalChain([measured, 'optionalAccess', _14 => _14.src]) === src ? measured.isWide : null;
|
|
1043
1108
|
const onMediaLoad = (e) => {
|
|
1044
1109
|
const img = e.currentTarget;
|
|
1045
1110
|
if (img.naturalWidth > 0 && img.naturalHeight > 0) {
|
|
@@ -1339,8 +1404,8 @@ function AdminContentCard({
|
|
|
1339
1404
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: _chunk23V5BSHDcjs.cn.call(void 0, "line-clamp-2 break-words text-ods-text-primary text-h3", reserveRows && "min-h-[2lh]"), children: title }),
|
|
1340
1405
|
(subtitle || reserveRows) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk23V5BSHDcjs.cn.call(void 0, "truncate text-ods-text-secondary text-h6", reserveRows && "min-h-[1lh]"), children: subtitle }),
|
|
1341
1406
|
(summary || reserveRows) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk23V5BSHDcjs.cn.call(void 0, "line-clamp-2 text-ods-text-secondary text-h6", reserveRows && "min-h-[2lh]"), children: summary }),
|
|
1342
|
-
(Number(_optionalChain([platforms, 'optionalAccess',
|
|
1343
|
-
_optionalChain([platforms, 'optionalAccess',
|
|
1407
|
+
(Number(_optionalChain([platforms, 'optionalAccess', _15 => _15.length])) > 0 || badges || reserveRows) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "flex flex-wrap items-center gap-2", reserveRows && "min-h-7"), children: [
|
|
1408
|
+
_optionalChain([platforms, 'optionalAccess', _16 => _16.map, 'call', _17 => _17((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1344
1409
|
PlatformBadge,
|
|
1345
1410
|
{
|
|
1346
1411
|
platform: { id: p.id || p.platform_id || "", name: p.name, display_name: p.display_name || p.name },
|
|
@@ -1375,19 +1440,19 @@ function getProxiedImageUrl2(imageUrl) {
|
|
|
1375
1440
|
|
|
1376
1441
|
// src/components/chat/entity-cards/employee-entry-card.tsx
|
|
1377
1442
|
|
|
1378
|
-
var
|
|
1379
|
-
published: "
|
|
1380
|
-
draft: "
|
|
1381
|
-
archived: "
|
|
1443
|
+
var STATUS_BADGE_SCHEME = {
|
|
1444
|
+
published: "success",
|
|
1445
|
+
draft: "warning",
|
|
1446
|
+
archived: "default",
|
|
1382
1447
|
// Design-doc lifecycle (product-hub) — same ODS pairs, no new palette.
|
|
1383
|
-
in_review: "
|
|
1384
|
-
approved: "
|
|
1385
|
-
building: "
|
|
1386
|
-
shipped: "
|
|
1387
|
-
abandoned: "
|
|
1448
|
+
in_review: "warning",
|
|
1449
|
+
approved: "success",
|
|
1450
|
+
building: "success",
|
|
1451
|
+
shipped: "success",
|
|
1452
|
+
abandoned: "default"
|
|
1388
1453
|
};
|
|
1389
1454
|
function EmployeeEntryBadge({ children }) {
|
|
1390
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1455
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StatusBadge, { text: children, colorScheme: "default", variant: "button", singleLine: true });
|
|
1391
1456
|
}
|
|
1392
1457
|
function EmployeeEntryCard({
|
|
1393
1458
|
entry,
|
|
@@ -1408,17 +1473,19 @@ function EmployeeEntryCard({
|
|
|
1408
1473
|
summary: (_nullishCoalesce(entry.summary, () => ( ""))).slice(0, 140) || "No description",
|
|
1409
1474
|
badges: entry.status || extraBadges ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1410
1475
|
entry.status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1411
|
-
|
|
1476
|
+
StatusBadge,
|
|
1412
1477
|
{
|
|
1413
|
-
|
|
1414
|
-
|
|
1478
|
+
text: entry.status,
|
|
1479
|
+
colorScheme: _nullishCoalesce(STATUS_BADGE_SCHEME[entry.status], () => ( "default")),
|
|
1480
|
+
variant: "button",
|
|
1481
|
+
singleLine: true
|
|
1415
1482
|
}
|
|
1416
1483
|
) : null,
|
|
1417
1484
|
extraBadges
|
|
1418
1485
|
] }) : null,
|
|
1419
1486
|
meta: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1420
1487
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-2", children: [
|
|
1421
|
-
_optionalChain([entry, 'access',
|
|
1488
|
+
_optionalChain([entry, 'access', _18 => _18.author, 'optionalAccess', _19 => _19.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1422
1489
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
1423
1490
|
{
|
|
1424
1491
|
src: _nullishCoalesce(getProxiedImageUrl2(entry.author.avatar_url), () => ( entry.author.avatar_url)),
|
|
@@ -1429,7 +1496,7 @@ function EmployeeEntryCard({
|
|
|
1429
1496
|
unoptimized: true
|
|
1430
1497
|
}
|
|
1431
1498
|
) : null,
|
|
1432
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _nullishCoalesce(_optionalChain([entry, 'access',
|
|
1499
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _nullishCoalesce(_optionalChain([entry, 'access', _20 => _20.author, 'optionalAccess', _21 => _21.full_name]), () => ( "")) })
|
|
1433
1500
|
] }),
|
|
1434
1501
|
dateLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: dateLabel }) : null
|
|
1435
1502
|
] }),
|
|
@@ -1502,7 +1569,7 @@ var HowIWorkCardSkeleton = EmployeeEntryCardSkeleton;
|
|
|
1502
1569
|
// src/components/chat/entity-cards/ai-prompt-card.tsx
|
|
1503
1570
|
|
|
1504
1571
|
function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }) {
|
|
1505
|
-
const
|
|
1572
|
+
const departmentName = _optionalChain([entry, 'access', _22 => _22.department, 'optionalAccess', _23 => _23.name, 'optionalAccess', _24 => _24.trim, 'call', _25 => _25()]);
|
|
1506
1573
|
const steps = typeof entry.step_count === "number" ? entry.step_count : 0;
|
|
1507
1574
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1508
1575
|
EmployeeEntryCard,
|
|
@@ -1510,7 +1577,7 @@ function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }
|
|
|
1510
1577
|
entry,
|
|
1511
1578
|
dateLabel: entry.published_at ? formatDateUTC(entry.published_at, { fallback: "" }) || null : null,
|
|
1512
1579
|
extraBadges: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1513
|
-
|
|
1580
|
+
departmentName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepartmentBadge, { department: { name: departmentName, color: _nullishCoalesce(_optionalChain([entry, 'access', _26 => _26.department, 'optionalAccess', _27 => _27.color]), () => ( null)) } }) : null,
|
|
1514
1581
|
steps > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: `${steps} steps` }) : null
|
|
1515
1582
|
] }),
|
|
1516
1583
|
untitledLabel: "Untitled prompt",
|
|
@@ -1526,7 +1593,7 @@ var AiPromptCardSkeleton = EmployeeEntryCardSkeleton;
|
|
|
1526
1593
|
// src/components/features/video-bites-shared.ts
|
|
1527
1594
|
var DEFAULT_VIDEO_BITES_TITLE = "Key Moments";
|
|
1528
1595
|
function toStripProfile(p, fallbackSubtitle) {
|
|
1529
|
-
if (!_optionalChain([p, 'optionalAccess',
|
|
1596
|
+
if (!_optionalChain([p, 'optionalAccess', _28 => _28.full_name])) return null;
|
|
1530
1597
|
return {
|
|
1531
1598
|
name: p.full_name,
|
|
1532
1599
|
avatarUrl: _nullishCoalesce(p.avatar_url, () => ( null)),
|
|
@@ -1568,7 +1635,7 @@ function ProductReleaseCard({
|
|
|
1568
1635
|
changelogCounts
|
|
1569
1636
|
}) {
|
|
1570
1637
|
if (size === "lg") {
|
|
1571
|
-
const totalChangelog = (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess',
|
|
1638
|
+
const totalChangelog = (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _29 => _29.features]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _30 => _30.fixes]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _31 => _31.improvements]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _32 => _32.breaking]), () => ( 0)));
|
|
1572
1639
|
const valueCells = [
|
|
1573
1640
|
releaseType && releaseTypeBadgeColor ? {
|
|
1574
1641
|
value: releaseType.toUpperCase(),
|
|
@@ -1587,7 +1654,7 @@ function ProductReleaseCard({
|
|
|
1587
1654
|
uppercase: false
|
|
1588
1655
|
} : { value: "\u2014", label: "Released", uppercase: false }
|
|
1589
1656
|
];
|
|
1590
|
-
const effectiveAuthor = _optionalChain([author, 'optionalAccess',
|
|
1657
|
+
const effectiveAuthor = _optionalChain([author, 'optionalAccess', _33 => _33.full_name]) ? author : { full_name: "\u2014", avatar_url: null, job_title: "Unknown" };
|
|
1591
1658
|
const gridColsClass = "md:grid-cols-4";
|
|
1592
1659
|
const dividerClass = "border-b md:border-b-0 md:border-r border-ods-border";
|
|
1593
1660
|
const frameClass = _chunk23V5BSHDcjs.cn.call(void 0,
|
|
@@ -1961,10 +2028,10 @@ function buildProductReleaseCardProps(item) {
|
|
|
1961
2028
|
job_title: release.author.job_title
|
|
1962
2029
|
} : void 0,
|
|
1963
2030
|
changelogCounts: {
|
|
1964
|
-
features: _nullishCoalesce(_optionalChain([release, 'access',
|
|
1965
|
-
fixes: _nullishCoalesce(_optionalChain([release, 'access',
|
|
1966
|
-
improvements: _nullishCoalesce(_optionalChain([release, 'access',
|
|
1967
|
-
breaking: _nullishCoalesce(_optionalChain([release, 'access',
|
|
2031
|
+
features: _nullishCoalesce(_optionalChain([release, 'access', _34 => _34.features_added, 'optionalAccess', _35 => _35.length]), () => ( 0)),
|
|
2032
|
+
fixes: _nullishCoalesce(_optionalChain([release, 'access', _36 => _36.bugs_fixed, 'optionalAccess', _37 => _37.length]), () => ( 0)),
|
|
2033
|
+
improvements: _nullishCoalesce(_optionalChain([release, 'access', _38 => _38.improvements, 'optionalAccess', _39 => _39.length]), () => ( 0)),
|
|
2034
|
+
breaking: _nullishCoalesce(_optionalChain([release, 'access', _40 => _40.breaking_changes, 'optionalAccess', _41 => _41.length]), () => ( 0))
|
|
1968
2035
|
}
|
|
1969
2036
|
};
|
|
1970
2037
|
}
|
|
@@ -2090,7 +2157,7 @@ function BlogCard({
|
|
|
2090
2157
|
day: "numeric",
|
|
2091
2158
|
timeZone: "UTC"
|
|
2092
2159
|
}) : "";
|
|
2093
|
-
const firstCategory = _optionalChain([post, 'access',
|
|
2160
|
+
const firstCategory = _optionalChain([post, 'access', _42 => _42.categories, 'optionalAccess', _43 => _43.find, 'call', _44 => _44((c) => c && c.name), 'optionalAccess', _45 => _45.name]);
|
|
2094
2161
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2095
2162
|
"a",
|
|
2096
2163
|
{
|
|
@@ -2308,7 +2375,7 @@ function CaseStudyCard({
|
|
|
2308
2375
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2309
2376
|
{
|
|
2310
2377
|
src: coverImage,
|
|
2311
|
-
alt: `${_optionalChain([study, 'access',
|
|
2378
|
+
alt: `${_optionalChain([study, 'access', _46 => _46.msp, 'optionalAccess', _47 => _47.name]) || study.title} cover`,
|
|
2312
2379
|
className: "object-contain",
|
|
2313
2380
|
fill: true,
|
|
2314
2381
|
sizes: "56px",
|
|
@@ -2318,7 +2385,7 @@ function CaseStudyCard({
|
|
|
2318
2385
|
) : null }),
|
|
2319
2386
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2320
2387
|
/* @__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 }) }),
|
|
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_SUBTITLE, children: [_optionalChain([study, 'access',
|
|
2388
|
+
/* @__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', _48 => _48.msp, 'optionalAccess', _49 => _49.name]), _optionalChain([study, 'access', _50 => _50.user, 'optionalAccess', _51 => _51.full_name])].filter(Boolean).join(" \xB7 ") || "Case study" }) }),
|
|
2322
2389
|
/* @__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 }) })
|
|
2323
2390
|
] })
|
|
2324
2391
|
] });
|
|
@@ -2333,13 +2400,13 @@ function CaseStudyCard({
|
|
|
2333
2400
|
typeLabel: showTypeBadge ? "Case Study" : void 0,
|
|
2334
2401
|
imageUrl: study.featured_image,
|
|
2335
2402
|
placeholderUrl,
|
|
2336
|
-
imageAlt: _optionalChain([study, 'access',
|
|
2403
|
+
imageAlt: _optionalChain([study, 'access', _52 => _52.msp, 'optionalAccess', _53 => _53.name]) || study.title,
|
|
2337
2404
|
title: study.title,
|
|
2338
2405
|
person: {
|
|
2339
|
-
name: _optionalChain([study, 'access',
|
|
2340
|
-
avatarUrl: _optionalChain([study, 'access',
|
|
2341
|
-
subtitle: _nullishCoalesce(_optionalChain([study, 'access',
|
|
2342
|
-
iconOverlayUrl: _nullishCoalesce(_optionalChain([study, 'access',
|
|
2406
|
+
name: _optionalChain([study, 'access', _54 => _54.user, 'optionalAccess', _55 => _55.full_name]) || "Anonymous",
|
|
2407
|
+
avatarUrl: _optionalChain([study, 'access', _56 => _56.user, 'optionalAccess', _57 => _57.avatar_url]),
|
|
2408
|
+
subtitle: _nullishCoalesce(_optionalChain([study, 'access', _58 => _58.msp, 'optionalAccess', _59 => _59.name]), () => ( null)),
|
|
2409
|
+
iconOverlayUrl: _nullishCoalesce(_optionalChain([study, 'access', _60 => _60.msp, 'optionalAccess', _61 => _61.icon_url]), () => ( null))
|
|
2343
2410
|
},
|
|
2344
2411
|
className
|
|
2345
2412
|
}
|
|
@@ -2350,7 +2417,7 @@ function CaseStudyCard({
|
|
|
2350
2417
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2351
2418
|
{
|
|
2352
2419
|
src: coverImage,
|
|
2353
|
-
alt: _optionalChain([study, 'access',
|
|
2420
|
+
alt: _optionalChain([study, 'access', _62 => _62.msp, 'optionalAccess', _63 => _63.name]) || study.title,
|
|
2354
2421
|
className: "h-full w-full object-cover",
|
|
2355
2422
|
sizes: "(min-width: 1545px) 515px, (min-width: 1280px) 33vw, (min-width: 800px) 50vw, 100vw",
|
|
2356
2423
|
fill: true,
|
|
@@ -2361,18 +2428,18 @@ function CaseStudyCard({
|
|
|
2361
2428
|
/* @__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 }) }),
|
|
2362
2429
|
/* @__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: [
|
|
2363
2430
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2364
|
-
_optionalChain([study, 'access',
|
|
2431
|
+
_optionalChain([study, 'access', _64 => _64.user, 'optionalAccess', _65 => _65.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2365
2432
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2366
2433
|
{
|
|
2367
2434
|
src: study.user.avatar_url,
|
|
2368
|
-
alt: _optionalChain([study, 'access',
|
|
2435
|
+
alt: _optionalChain([study, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.full_name]) || "User",
|
|
2369
2436
|
className: "h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover",
|
|
2370
2437
|
width: 48,
|
|
2371
2438
|
height: 48,
|
|
2372
2439
|
unoptimized: true
|
|
2373
2440
|
}
|
|
2374
|
-
) : /* @__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',
|
|
2375
|
-
_optionalChain([study, 'access',
|
|
2441
|
+
) : /* @__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', _68 => _68.user, 'optionalAccess', _69 => _69.full_name]) || "A").charAt(0).toUpperCase() }) }),
|
|
2442
|
+
_optionalChain([study, 'access', _70 => _70.msp, 'optionalAccess', _71 => _71.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,
|
|
2376
2443
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2377
2444
|
{
|
|
2378
2445
|
src: study.msp.icon_url,
|
|
@@ -2386,13 +2453,13 @@ function CaseStudyCard({
|
|
|
2386
2453
|
] }),
|
|
2387
2454
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
2388
2455
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: [
|
|
2389
|
-
_optionalChain([study, 'access',
|
|
2390
|
-
_optionalChain([study, 'access',
|
|
2456
|
+
_optionalChain([study, 'access', _72 => _72.user, 'optionalAccess', _73 => _73.full_name]) || "Anonymous",
|
|
2457
|
+
_optionalChain([study, 'access', _74 => _74.msp, 'optionalAccess', _75 => _75.name]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
2391
2458
|
" \u2022 ",
|
|
2392
2459
|
study.msp.name
|
|
2393
2460
|
] })
|
|
2394
2461
|
] }),
|
|
2395
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([study, 'access',
|
|
2462
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([study, 'access', _76 => _76.user, 'optionalAccess', _77 => _77.job_title]) || "\xA0" })
|
|
2396
2463
|
] })
|
|
2397
2464
|
] }) })
|
|
2398
2465
|
] }) });
|
|
@@ -2474,7 +2541,7 @@ function CustomerInterviewCard({
|
|
|
2474
2541
|
] }),
|
|
2475
2542
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2476
2543
|
/* @__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 }) }),
|
|
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_SUBTITLE, children: [_optionalChain([interview, 'access',
|
|
2544
|
+
/* @__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', _78 => _78.user, 'optionalAccess', _79 => _79.full_name]), _optionalChain([interview, 'access', _80 => _80.msp, 'optionalAccess', _81 => _81.name])].filter(Boolean).join(" \xB7 ") || "Customer interview" }) }),
|
|
2478
2545
|
/* @__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 }) })
|
|
2479
2546
|
] })
|
|
2480
2547
|
] });
|
|
@@ -2492,10 +2559,10 @@ function CustomerInterviewCard({
|
|
|
2492
2559
|
imageAlt: interview.title,
|
|
2493
2560
|
title: interview.title,
|
|
2494
2561
|
person: {
|
|
2495
|
-
name: _optionalChain([interview, 'access',
|
|
2496
|
-
avatarUrl: _optionalChain([interview, 'access',
|
|
2497
|
-
subtitle: _nullishCoalesce(_optionalChain([interview, 'access',
|
|
2498
|
-
iconOverlayUrl: _nullishCoalesce(_optionalChain([interview, 'access',
|
|
2562
|
+
name: _optionalChain([interview, 'access', _82 => _82.user, 'optionalAccess', _83 => _83.full_name]) || "Customer",
|
|
2563
|
+
avatarUrl: _optionalChain([interview, 'access', _84 => _84.user, 'optionalAccess', _85 => _85.avatar_url]),
|
|
2564
|
+
subtitle: _nullishCoalesce(_optionalChain([interview, 'access', _86 => _86.msp, 'optionalAccess', _87 => _87.name]), () => ( null)),
|
|
2565
|
+
iconOverlayUrl: _nullishCoalesce(_optionalChain([interview, 'access', _88 => _88.msp, 'optionalAccess', _89 => _89.icon_url]), () => ( null))
|
|
2499
2566
|
},
|
|
2500
2567
|
className
|
|
2501
2568
|
}
|
|
@@ -2521,18 +2588,18 @@ function CustomerInterviewCard({
|
|
|
2521
2588
|
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 }) }),
|
|
2522
2589
|
/* @__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: [
|
|
2523
2590
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2524
|
-
_optionalChain([interview, 'access',
|
|
2591
|
+
_optionalChain([interview, 'access', _90 => _90.user, 'optionalAccess', _91 => _91.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2525
2592
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2526
2593
|
{
|
|
2527
2594
|
src: interview.user.avatar_url,
|
|
2528
|
-
alt: _optionalChain([interview, 'access',
|
|
2595
|
+
alt: _optionalChain([interview, 'access', _92 => _92.user, 'optionalAccess', _93 => _93.full_name]) || "Customer",
|
|
2529
2596
|
className: "h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover",
|
|
2530
2597
|
width: 48,
|
|
2531
2598
|
height: 48,
|
|
2532
2599
|
unoptimized: true
|
|
2533
2600
|
}
|
|
2534
|
-
) : /* @__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',
|
|
2535
|
-
_optionalChain([interview, 'access',
|
|
2601
|
+
) : /* @__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', _94 => _94.user, 'optionalAccess', _95 => _95.full_name]) || "A").charAt(0).toUpperCase() }) }),
|
|
2602
|
+
_optionalChain([interview, 'access', _96 => _96.msp, 'optionalAccess', _97 => _97.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,
|
|
2536
2603
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2537
2604
|
{
|
|
2538
2605
|
src: interview.msp.icon_url,
|
|
@@ -2546,13 +2613,13 @@ function CustomerInterviewCard({
|
|
|
2546
2613
|
] }),
|
|
2547
2614
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
2548
2615
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: [
|
|
2549
|
-
_optionalChain([interview, 'access',
|
|
2550
|
-
_optionalChain([interview, 'access',
|
|
2616
|
+
_optionalChain([interview, 'access', _98 => _98.user, 'optionalAccess', _99 => _99.full_name]) || "Anonymous",
|
|
2617
|
+
_optionalChain([interview, 'access', _100 => _100.msp, 'optionalAccess', _101 => _101.name]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
2551
2618
|
" \u2022 ",
|
|
2552
2619
|
interview.msp.name
|
|
2553
2620
|
] })
|
|
2554
2621
|
] }),
|
|
2555
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([interview, 'access',
|
|
2622
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([interview, 'access', _102 => _102.user, 'optionalAccess', _103 => _103.job_title]) || " " })
|
|
2556
2623
|
] })
|
|
2557
2624
|
] }) })
|
|
2558
2625
|
] }) });
|
|
@@ -2562,7 +2629,7 @@ function CustomerInterviewCard({
|
|
|
2562
2629
|
function formatInvestorUpdatePeriod(start, end, options) {
|
|
2563
2630
|
if (!start && !end) return "";
|
|
2564
2631
|
const fmt = (d) => new Date(d).toLocaleDateString("en-US", {
|
|
2565
|
-
month: _optionalChain([options, 'optionalAccess',
|
|
2632
|
+
month: _optionalChain([options, 'optionalAccess', _104 => _104.monthFormat]) || "short",
|
|
2566
2633
|
year: "numeric",
|
|
2567
2634
|
// Pin to UTC so SSR (Vercel = UTC) and the client agree (React #418).
|
|
2568
2635
|
timeZone: "UTC"
|
|
@@ -2677,7 +2744,7 @@ function InvestorUpdateCard({
|
|
|
2677
2744
|
imageUrl: update.featured_image,
|
|
2678
2745
|
placeholderUrl,
|
|
2679
2746
|
title: update.title || `Update #${update.update_number || "?"}`,
|
|
2680
|
-
summary: _optionalChain([update, 'access',
|
|
2747
|
+
summary: _optionalChain([update, 'access', _105 => _105.strategic_update, 'optionalAccess', _106 => _106.slice, 'call', _107 => _107(0, 120)]) || _optionalChain([update, 'access', _108 => _108.content, 'optionalAccess', _109 => _109.slice, 'call', _110 => _110(0, 120)]) || "No description",
|
|
2681
2748
|
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: [
|
|
2682
2749
|
"#",
|
|
2683
2750
|
update.update_number
|
|
@@ -2886,7 +2953,7 @@ function OnboardingGuideCard({
|
|
|
2886
2953
|
const compactCover = coverImage || placeholderUrl || null;
|
|
2887
2954
|
const hasVideoCover = !guide.featured_image && !!guide.main_video_thumbnail;
|
|
2888
2955
|
const summary2 = stripMarkdownPreview(guide.video_summary || guide.content || "");
|
|
2889
|
-
const author = _optionalChain([guide, 'access',
|
|
2956
|
+
const author = _optionalChain([guide, 'access', _111 => _111.author, 'optionalAccess', _112 => _112.full_name, 'optionalAccess', _113 => _113.trim, 'call', _114 => _114()]) || "";
|
|
2890
2957
|
const subtitleParts = [`Step ${guide.step_order}`, guide.section, author].filter(
|
|
2891
2958
|
(s) => typeof s === "string" && s.length > 0
|
|
2892
2959
|
);
|
|
@@ -3011,7 +3078,7 @@ function AvatarStack({
|
|
|
3011
3078
|
|
|
3012
3079
|
// src/components/chat/utils/agent-status-message.ts
|
|
3013
3080
|
function getStatusColorScheme(status) {
|
|
3014
|
-
const s = _optionalChain([status, 'optionalAccess',
|
|
3081
|
+
const s = _optionalChain([status, 'optionalAccess', _115 => _115.toLowerCase, 'call', _116 => _116()]) || "";
|
|
3015
3082
|
switch (status) {
|
|
3016
3083
|
case "completed":
|
|
3017
3084
|
case "success":
|
|
@@ -3253,7 +3320,7 @@ function RoadmapCard({
|
|
|
3253
3320
|
const compactHref = safeHref(_nullishCoalesce(href, () => ( null)));
|
|
3254
3321
|
const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
|
|
3255
3322
|
const hasFigma = !!item.figmaUrl;
|
|
3256
|
-
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access',
|
|
3323
|
+
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _117 => _117.screenshots, 'optionalAccess', _118 => _118.length]), () => ( 0))) > 0;
|
|
3257
3324
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
3258
3325
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
3259
3326
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -3272,7 +3339,7 @@ function RoadmapCard({
|
|
|
3272
3339
|
unoptimized: true,
|
|
3273
3340
|
className: "h-8 w-8 object-contain"
|
|
3274
3341
|
}
|
|
3275
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-secondary text-h6", children: _optionalChain([item, 'access',
|
|
3342
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-secondary text-h6", children: _optionalChain([item, 'access', _119 => _119.title, 'optionalAccess', _120 => _120.substring, 'call', _121 => _121(0, 2)]) || "??" })
|
|
3276
3343
|
}
|
|
3277
3344
|
),
|
|
3278
3345
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -3352,7 +3419,7 @@ function RoadmapCard({
|
|
|
3352
3419
|
unoptimized: true,
|
|
3353
3420
|
className: "object-contain p-1"
|
|
3354
3421
|
}
|
|
3355
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
3422
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _122 => _122.title, 'optionalAccess', _123 => _123.substring, 'call', _124 => _124(0, 2)]) || "??" }) }),
|
|
3356
3423
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3357
3424
|
/* @__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 }) }),
|
|
3358
3425
|
/* @__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: [
|
|
@@ -3453,10 +3520,10 @@ var MEDIA_TYPE = {
|
|
|
3453
3520
|
VIDEO: "video"
|
|
3454
3521
|
};
|
|
3455
3522
|
function isVideoMedia(media) {
|
|
3456
|
-
return _optionalChain([media, 'optionalAccess',
|
|
3523
|
+
return _optionalChain([media, 'optionalAccess', _125 => _125.media_type]) === MEDIA_TYPE.VIDEO;
|
|
3457
3524
|
}
|
|
3458
3525
|
function isImageMedia(media) {
|
|
3459
|
-
return _optionalChain([media, 'optionalAccess',
|
|
3526
|
+
return _optionalChain([media, 'optionalAccess', _126 => _126.media_type]) === MEDIA_TYPE.IMAGE;
|
|
3460
3527
|
}
|
|
3461
3528
|
function isPublishableMediaType(mediaType) {
|
|
3462
3529
|
return mediaType === MEDIA_TYPE.VIDEO || mediaType === MEDIA_TYPE.IMAGE;
|
|
@@ -3473,7 +3540,7 @@ function programItemToStripProfile(item) {
|
|
|
3473
3540
|
const fromAuthor = toStripProfile(item.author);
|
|
3474
3541
|
if (fromAuthor) return fromAuthor;
|
|
3475
3542
|
const host = Array.isArray(item.hosts) ? item.hosts[0] : null;
|
|
3476
|
-
if (!_optionalChain([host, 'optionalAccess',
|
|
3543
|
+
if (!_optionalChain([host, 'optionalAccess', _127 => _127.name])) return null;
|
|
3477
3544
|
return toStripProfile({ full_name: host.name, avatar_url: _nullishCoalesce(host.avatar_url, () => ( null)) });
|
|
3478
3545
|
}
|
|
3479
3546
|
function transformEventToProgram(event) {
|
|
@@ -3747,7 +3814,7 @@ function ProgramCard({
|
|
|
3747
3814
|
const itemDate2 = compactDate;
|
|
3748
3815
|
const compactCover = coverImage || placeholderUrl || null;
|
|
3749
3816
|
const typeMeta = compactTypeMeta();
|
|
3750
|
-
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access',
|
|
3817
|
+
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _128 => _128.labels, 'optionalAccess', _129 => _129.singular])].filter(
|
|
3751
3818
|
(s) => typeof s === "string" && s.length > 0
|
|
3752
3819
|
);
|
|
3753
3820
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunk23V5BSHDcjs.cn.call(void 0, COMPACT_CARD_OUTER, className), children: [
|
|
@@ -4136,5 +4203,10 @@ function buildListUrl(contentRefType, ids, base = "") {
|
|
|
4136
4203
|
|
|
4137
4204
|
|
|
4138
4205
|
|
|
4139
|
-
|
|
4140
|
-
|
|
4206
|
+
|
|
4207
|
+
|
|
4208
|
+
|
|
4209
|
+
|
|
4210
|
+
|
|
4211
|
+
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.BADGE_PALETTE = BADGE_PALETTE; exports.isBadgePaletteKey = isBadgePaletteKey; exports.pickBadgePaletteColor = pickBadgePaletteColor; exports.PaletteBadge = PaletteBadge; exports.DepartmentBadge = DepartmentBadge; 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;
|
|
4212
|
+
//# sourceMappingURL=chunk-OQHFHKUG.cjs.map
|