@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 = cva("inline-flex items-center justify-center rounded",
|
|
|
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,6 +812,66 @@ 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
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
843
|
+
function PaletteBadge({ text, color, className, variant = "button" }) {
|
|
844
|
+
return /* @__PURE__ */ jsx7(
|
|
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
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
858
|
+
function DepartmentBadge({
|
|
859
|
+
department,
|
|
860
|
+
emptyLabel = "No department",
|
|
861
|
+
className,
|
|
862
|
+
variant
|
|
863
|
+
}) {
|
|
864
|
+
return /* @__PURE__ */ jsx8(
|
|
865
|
+
PaletteBadge,
|
|
866
|
+
{
|
|
867
|
+
text: department?.name || emptyLabel,
|
|
868
|
+
color: department?.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;
|
|
@@ -898,7 +963,7 @@ function buildAnchorProps(href, isNewTab) {
|
|
|
898
963
|
}
|
|
899
964
|
|
|
900
965
|
// src/components/chat/entity-cards/entity-author-card.tsx
|
|
901
|
-
import { jsx as
|
|
966
|
+
import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
902
967
|
var EMPTY_AUTHOR_PLACEHOLDER = {
|
|
903
968
|
full_name: "\u2014",
|
|
904
969
|
avatar_url: null,
|
|
@@ -910,9 +975,9 @@ function EntityMetadataValueCell({
|
|
|
910
975
|
className,
|
|
911
976
|
uppercase = true
|
|
912
977
|
}) {
|
|
913
|
-
return /* @__PURE__ */
|
|
914
|
-
/* @__PURE__ */
|
|
915
|
-
/* @__PURE__ */
|
|
978
|
+
return /* @__PURE__ */ jsx9("div", { className: `flex flex-col gap-3 bg-ods-card p-4 ${className ?? ""}`, children: /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-0", children: [
|
|
979
|
+
typeof value === "string" ? /* @__PURE__ */ jsx9("p", { className: "text-ods-text-primary text-h4", children: uppercase ? value.toLocaleUpperCase() : value }) : /* @__PURE__ */ jsx9("div", { className: "flex min-h-6 items-center", children: value }),
|
|
980
|
+
/* @__PURE__ */ jsx9("p", { className: "text-ods-text-secondary text-h6", children: label })
|
|
916
981
|
] }) });
|
|
917
982
|
}
|
|
918
983
|
function EntityMetadataAuthorCell({
|
|
@@ -924,7 +989,7 @@ function EntityMetadataAuthorCell({
|
|
|
924
989
|
const trimmedName = typeof author.full_name === "string" ? author.full_name.trim() : "";
|
|
925
990
|
const fullName = trimmedName || "Unknown Author";
|
|
926
991
|
return /* @__PURE__ */ jsxs5("div", { className: `flex items-center gap-3 bg-ods-card p-4 ${className ?? ""}`, children: [
|
|
927
|
-
/* @__PURE__ */
|
|
992
|
+
/* @__PURE__ */ jsx9(
|
|
928
993
|
SquareAvatar,
|
|
929
994
|
{
|
|
930
995
|
src: author.avatar_url || "",
|
|
@@ -935,8 +1000,8 @@ function EntityMetadataAuthorCell({
|
|
|
935
1000
|
}
|
|
936
1001
|
),
|
|
937
1002
|
/* @__PURE__ */ jsxs5("div", { className: "flex min-w-0 flex-1 flex-col gap-0", children: [
|
|
938
|
-
/* @__PURE__ */
|
|
939
|
-
/* @__PURE__ */
|
|
1003
|
+
/* @__PURE__ */ jsx9("p", { className: "truncate text-ods-text-primary text-h3", title: fullName, children: authorHref && trimmedName ? /* @__PURE__ */ jsx9(next_link_default, { href: authorHref, className: "transition-colors hover:text-ods-accent", children: fullName }) : fullName }),
|
|
1004
|
+
/* @__PURE__ */ jsx9("p", { className: "text-ods-text-secondary text-h6", children: author.job_title || roleLabel })
|
|
940
1005
|
] })
|
|
941
1006
|
] });
|
|
942
1007
|
}
|
|
@@ -965,7 +1030,7 @@ function EntityAuthorCard({
|
|
|
965
1030
|
{
|
|
966
1031
|
className: `grid grid-cols-1 ${gridColsClass} w-full overflow-hidden rounded-md border border-ods-border ${className ?? ""}`,
|
|
967
1032
|
children: [
|
|
968
|
-
extras.map((cell, i) => /* @__PURE__ */
|
|
1033
|
+
extras.map((cell, i) => /* @__PURE__ */ jsx9(
|
|
969
1034
|
EntityMetadataValueCell,
|
|
970
1035
|
{
|
|
971
1036
|
value: cell.value,
|
|
@@ -975,18 +1040,18 @@ function EntityAuthorCard({
|
|
|
975
1040
|
},
|
|
976
1041
|
`${cell.label}-${i}`
|
|
977
1042
|
)),
|
|
978
|
-
showDateCell && /* @__PURE__ */
|
|
979
|
-
/* @__PURE__ */
|
|
1043
|
+
showDateCell && /* @__PURE__ */ jsx9(EntityMetadataValueCell, { value: dateLabel, label: publishedLabel, uppercase: false, className: dividerClass }),
|
|
1044
|
+
/* @__PURE__ */ jsx9(EntityMetadataAuthorCell, { author: effectiveAuthor, roleLabel, authorHref })
|
|
980
1045
|
]
|
|
981
1046
|
}
|
|
982
1047
|
);
|
|
983
1048
|
}
|
|
984
1049
|
|
|
985
1050
|
// src/components/chat/entity-cards/blog-image-placeholder.tsx
|
|
986
|
-
import { jsx as
|
|
1051
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
987
1052
|
function BlogImagePlaceholder({ imageUrl, title, className = "" }) {
|
|
988
1053
|
if (!imageUrl) return null;
|
|
989
|
-
return /* @__PURE__ */
|
|
1054
|
+
return /* @__PURE__ */ jsx10("span", { className: `relative block h-full w-full overflow-hidden bg-ods-bg ${className}`, children: /* @__PURE__ */ jsx10(
|
|
990
1055
|
next_image_default,
|
|
991
1056
|
{
|
|
992
1057
|
src: imageUrl,
|
|
@@ -1022,7 +1087,7 @@ var hideOnError = (e) => {
|
|
|
1022
1087
|
|
|
1023
1088
|
// src/components/chat/entity-cards/entity-portrait-card.tsx
|
|
1024
1089
|
import { useState as useState3 } from "react";
|
|
1025
|
-
import { jsx as
|
|
1090
|
+
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1026
1091
|
var MIN_WIDE_RATIO = 1.3;
|
|
1027
1092
|
function EntityPortraitCard({
|
|
1028
1093
|
href,
|
|
@@ -1047,13 +1112,13 @@ function EntityPortraitCard({
|
|
|
1047
1112
|
}
|
|
1048
1113
|
};
|
|
1049
1114
|
const edgeColor = useImageEdgeColor(isWide === false ? src : null, "var(--color-bg-surface)");
|
|
1050
|
-
return /* @__PURE__ */
|
|
1051
|
-
/* @__PURE__ */
|
|
1115
|
+
return /* @__PURE__ */ jsx11("a", { href, target, rel, className: cn("block h-full", className), "aria-label": `Open ${title}`, children: /* @__PURE__ */ jsxs6(Card, { className: "flex h-full flex-col gap-6 overflow-hidden border border-ods-border bg-ods-card p-6 transition-all duration-200 hover:border-ods-accent hover:shadow-lg hover:shadow-ods-accent/[0.08]", children: [
|
|
1116
|
+
/* @__PURE__ */ jsx11(
|
|
1052
1117
|
"div",
|
|
1053
1118
|
{
|
|
1054
1119
|
className: "relative flex aspect-[1200/630] w-full shrink-0 items-center justify-center overflow-hidden rounded-sm bg-ods-bg transition-colors duration-300",
|
|
1055
1120
|
style: isWide === false ? { backgroundColor: edgeColor } : void 0,
|
|
1056
|
-
children: src && /* @__PURE__ */
|
|
1121
|
+
children: src && /* @__PURE__ */ jsx11(
|
|
1057
1122
|
next_image_default,
|
|
1058
1123
|
{
|
|
1059
1124
|
src,
|
|
@@ -1069,7 +1134,7 @@ function EntityPortraitCard({
|
|
|
1069
1134
|
}
|
|
1070
1135
|
),
|
|
1071
1136
|
/* @__PURE__ */ jsxs6("div", { className: "flex h-[72px] shrink-0 flex-col justify-center gap-1.5", children: [
|
|
1072
|
-
typeLabel && /* @__PURE__ */
|
|
1137
|
+
typeLabel && /* @__PURE__ */ jsx11(
|
|
1073
1138
|
StatusBadge,
|
|
1074
1139
|
{
|
|
1075
1140
|
variant: "button",
|
|
@@ -1079,7 +1144,7 @@ function EntityPortraitCard({
|
|
|
1079
1144
|
className: "self-start"
|
|
1080
1145
|
}
|
|
1081
1146
|
),
|
|
1082
|
-
/* @__PURE__ */
|
|
1147
|
+
/* @__PURE__ */ jsx11(
|
|
1083
1148
|
"h3",
|
|
1084
1149
|
{
|
|
1085
1150
|
className: cn(
|
|
@@ -1091,9 +1156,9 @@ function EntityPortraitCard({
|
|
|
1091
1156
|
}
|
|
1092
1157
|
)
|
|
1093
1158
|
] }),
|
|
1094
|
-
/* @__PURE__ */
|
|
1159
|
+
/* @__PURE__ */ jsx11("div", { className: "flex h-[60px] shrink-0 items-center", children: person && /* @__PURE__ */ jsxs6("div", { className: "flex w-full min-w-0 items-center gap-3", children: [
|
|
1095
1160
|
/* @__PURE__ */ jsxs6("div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
1096
|
-
person.avatarUrl ? /* @__PURE__ */
|
|
1161
|
+
person.avatarUrl ? /* @__PURE__ */ jsx11(
|
|
1097
1162
|
next_image_default,
|
|
1098
1163
|
{
|
|
1099
1164
|
src: person.avatarUrl,
|
|
@@ -1103,8 +1168,8 @@ function EntityPortraitCard({
|
|
|
1103
1168
|
height: 48,
|
|
1104
1169
|
unoptimized: true
|
|
1105
1170
|
}
|
|
1106
|
-
) : /* @__PURE__ */
|
|
1107
|
-
person.iconOverlayUrl && /* @__PURE__ */
|
|
1171
|
+
) : /* @__PURE__ */ jsx11("div", { className: "flex h-12 w-12 items-center justify-center rounded-full border border-ods-border bg-ods-bg", children: /* @__PURE__ */ jsx11("span", { className: "text-ods-text-secondary text-h4", children: person.name.charAt(0).toUpperCase() }) }),
|
|
1172
|
+
person.iconOverlayUrl && /* @__PURE__ */ jsx11("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__ */ jsx11(
|
|
1108
1173
|
next_image_default,
|
|
1109
1174
|
{
|
|
1110
1175
|
src: person.iconOverlayUrl,
|
|
@@ -1117,8 +1182,8 @@ function EntityPortraitCard({
|
|
|
1117
1182
|
) })
|
|
1118
1183
|
] }),
|
|
1119
1184
|
/* @__PURE__ */ jsxs6("div", { className: "flex min-w-0 flex-col", children: [
|
|
1120
|
-
/* @__PURE__ */
|
|
1121
|
-
person.subtitle && /* @__PURE__ */
|
|
1185
|
+
/* @__PURE__ */ jsx11("span", { className: "truncate font-bold text-ods-text-primary text-h6", children: person.name }),
|
|
1186
|
+
person.subtitle && /* @__PURE__ */ jsx11("span", { className: "truncate text-ods-text-secondary text-h6", children: person.subtitle })
|
|
1122
1187
|
] })
|
|
1123
1188
|
] }) })
|
|
1124
1189
|
] }) });
|
|
@@ -1128,14 +1193,14 @@ function EntityPortraitCard({
|
|
|
1128
1193
|
import { Globe } from "lucide-react";
|
|
1129
1194
|
|
|
1130
1195
|
// src/components/flamingo-logo.tsx
|
|
1131
|
-
import { jsx as
|
|
1196
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1132
1197
|
function FlamingoLogo({
|
|
1133
1198
|
className = "",
|
|
1134
1199
|
color = "var(--ods-flamingo-pink-base)",
|
|
1135
1200
|
size = 120,
|
|
1136
1201
|
...props
|
|
1137
1202
|
}) {
|
|
1138
|
-
return /* @__PURE__ */
|
|
1203
|
+
return /* @__PURE__ */ jsx12(
|
|
1139
1204
|
"svg",
|
|
1140
1205
|
{
|
|
1141
1206
|
width: size,
|
|
@@ -1144,7 +1209,7 @@ function FlamingoLogo({
|
|
|
1144
1209
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1145
1210
|
className,
|
|
1146
1211
|
...props,
|
|
1147
|
-
children: /* @__PURE__ */
|
|
1212
|
+
children: /* @__PURE__ */ jsx12(
|
|
1148
1213
|
"path",
|
|
1149
1214
|
{
|
|
1150
1215
|
fillRule: "evenodd",
|
|
@@ -1158,7 +1223,7 @@ function FlamingoLogo({
|
|
|
1158
1223
|
}
|
|
1159
1224
|
|
|
1160
1225
|
// src/components/openmsp-logo.tsx
|
|
1161
|
-
import { jsx as
|
|
1226
|
+
import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1162
1227
|
function OpenmspLogo({
|
|
1163
1228
|
className = "",
|
|
1164
1229
|
frontBubbleColor = "#000000",
|
|
@@ -1177,35 +1242,35 @@ function OpenmspLogo({
|
|
|
1177
1242
|
className,
|
|
1178
1243
|
...props,
|
|
1179
1244
|
children: [
|
|
1180
|
-
/* @__PURE__ */
|
|
1245
|
+
/* @__PURE__ */ jsx13(
|
|
1181
1246
|
"path",
|
|
1182
1247
|
{
|
|
1183
1248
|
d: "M73.933 0C75.7003 0 77.133 1.43269 77.133 3.2V54.4C77.133 56.1673 75.7003 57.6 73.933 57.6H3.53301C1.7657 57.6 0.333008 56.1673 0.333008 54.4V3.2C0.333008 1.43269 1.7657 0 3.53301 0H73.933ZM10.1076 47.6494C10.1076 48.0912 10.4658 48.4494 10.9076 48.4494H66.5584C67.0002 48.4494 67.3584 48.0912 67.3584 47.6494V9.95059C67.3584 9.50876 67.0002 9.15059 66.5584 9.15059H10.9076C10.4658 9.15059 10.1076 9.50876 10.1076 9.95059V47.6494Z",
|
|
1184
1249
|
fill: backBubbleColor
|
|
1185
1250
|
}
|
|
1186
1251
|
),
|
|
1187
|
-
/* @__PURE__ */
|
|
1252
|
+
/* @__PURE__ */ jsx13(
|
|
1188
1253
|
"path",
|
|
1189
1254
|
{
|
|
1190
1255
|
d: "M19.5332 22.4C19.5332 20.6326 20.9659 19.2 22.7332 19.2H93.1332C94.9005 19.2 96.3332 20.6326 96.3332 22.4V76.8C96.3332 78.2222 95.3945 79.4737 94.0292 79.8719L39.7572 95.7013C39.2452 95.8506 38.7332 95.4666 38.7332 94.9333V80C38.7332 79.5581 38.375 79.2 37.9332 79.2H22.7332C20.9659 79.2 19.5332 77.7673 19.5332 76V22.4Z",
|
|
1191
1256
|
fill: innerFrontBubbleColor
|
|
1192
1257
|
}
|
|
1193
1258
|
),
|
|
1194
|
-
/* @__PURE__ */
|
|
1259
|
+
/* @__PURE__ */ jsx13(
|
|
1195
1260
|
"path",
|
|
1196
1261
|
{
|
|
1197
1262
|
d: "M93.1332 19.2C94.9005 19.2 96.3332 20.6326 96.3332 22.4V76.8C96.3332 78.2222 95.3945 79.4737 94.0292 79.8719L39.7572 95.7013C39.2452 95.8506 38.7332 95.4666 38.7332 94.9333V80C38.7332 79.5581 38.375 79.2 37.9332 79.2H22.7332C20.9659 79.2 19.5332 77.7673 19.5332 76V22.4C19.5332 20.6326 20.9659 19.2 22.7332 19.2H93.1332ZM48.3377 82.1286C48.3355 82.6633 48.8484 83.0497 49.3617 82.9L86.1572 72.1672C86.4985 72.0676 86.7332 71.7547 86.7332 71.3992V29.6C86.7332 29.1581 86.375 28.8 85.9332 28.8H29.9332C29.4914 28.8 29.1332 29.1581 29.1332 29.6V68.8C29.1332 69.2418 29.4914 69.6 29.9332 69.6H47.5869C48.03 69.6 48.3887 69.9602 48.3869 70.4033L48.3377 82.1286Z",
|
|
1198
1263
|
fill: frontBubbleColor
|
|
1199
1264
|
}
|
|
1200
1265
|
),
|
|
1201
|
-
/* @__PURE__ */
|
|
1266
|
+
/* @__PURE__ */ jsx13("circle", { cx: "45.1334", cy: "44.8", r: "6.4", fill: frontBubbleColor })
|
|
1202
1267
|
]
|
|
1203
1268
|
}
|
|
1204
1269
|
);
|
|
1205
1270
|
}
|
|
1206
1271
|
|
|
1207
1272
|
// src/components/features/platform-badge.tsx
|
|
1208
|
-
import { jsx as
|
|
1273
|
+
import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1209
1274
|
var sizeClasses = {
|
|
1210
1275
|
xs: {
|
|
1211
1276
|
container: "gap-1 px-1.5 py-0.5",
|
|
@@ -1228,7 +1293,7 @@ var PlatformIcon = ({ platform, className }) => {
|
|
|
1228
1293
|
const size = sizeMatch ? parseInt(sizeMatch[1]) * 4 : 16;
|
|
1229
1294
|
switch (platform) {
|
|
1230
1295
|
case "openmsp":
|
|
1231
|
-
return /* @__PURE__ */
|
|
1296
|
+
return /* @__PURE__ */ jsx14(
|
|
1232
1297
|
OpenmspLogo,
|
|
1233
1298
|
{
|
|
1234
1299
|
className,
|
|
@@ -1239,19 +1304,19 @@ var PlatformIcon = ({ platform, className }) => {
|
|
|
1239
1304
|
);
|
|
1240
1305
|
case "flamingo":
|
|
1241
1306
|
case "flamingo-teaser":
|
|
1242
|
-
return /* @__PURE__ */
|
|
1307
|
+
return /* @__PURE__ */ jsx14(FlamingoLogo, { className });
|
|
1243
1308
|
case "openframe":
|
|
1244
|
-
return /* @__PURE__ */
|
|
1309
|
+
return /* @__PURE__ */ jsx14(OpenFrameLogo, { className });
|
|
1245
1310
|
case "tmcg":
|
|
1246
|
-
return /* @__PURE__ */
|
|
1311
|
+
return /* @__PURE__ */ jsx14(MiamiCyberGangLogoFaceOnly, { size, className });
|
|
1247
1312
|
case "company-hub":
|
|
1248
1313
|
case "marketing-hub":
|
|
1249
1314
|
case "product-hub":
|
|
1250
1315
|
case "revenue-hub":
|
|
1251
1316
|
case "people-hub":
|
|
1252
|
-
return /* @__PURE__ */
|
|
1317
|
+
return /* @__PURE__ */ jsx14(FlamingoLogo, { className, fill: "currentColor" });
|
|
1253
1318
|
default:
|
|
1254
|
-
return /* @__PURE__ */
|
|
1319
|
+
return /* @__PURE__ */ jsx14(Globe, { className });
|
|
1255
1320
|
}
|
|
1256
1321
|
};
|
|
1257
1322
|
function PlatformBadge({ platform, size = "sm", showLabel = true, className }) {
|
|
@@ -1273,8 +1338,8 @@ function PlatformBadge({ platform, size = "sm", showLabel = true, className }) {
|
|
|
1273
1338
|
className
|
|
1274
1339
|
),
|
|
1275
1340
|
children: [
|
|
1276
|
-
/* @__PURE__ */
|
|
1277
|
-
showLabel && /* @__PURE__ */
|
|
1341
|
+
/* @__PURE__ */ jsx14(PlatformIcon, { platform: platform.name, className: sizes.icon }),
|
|
1342
|
+
showLabel && /* @__PURE__ */ jsx14("span", { className: sizes.text, children: platform.display_name || platform.name })
|
|
1278
1343
|
]
|
|
1279
1344
|
}
|
|
1280
1345
|
);
|
|
@@ -1282,7 +1347,7 @@ function PlatformBadge({ platform, size = "sm", showLabel = true, className }) {
|
|
|
1282
1347
|
|
|
1283
1348
|
// src/components/chat/entity-cards/admin-content-card.tsx
|
|
1284
1349
|
import { useState as useState4 } from "react";
|
|
1285
|
-
import { Fragment as Fragment2, jsx as
|
|
1350
|
+
import { Fragment as Fragment2, jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1286
1351
|
function AdminContentCard({
|
|
1287
1352
|
imageUrl,
|
|
1288
1353
|
placeholderUrl,
|
|
@@ -1314,9 +1379,9 @@ function AdminContentCard({
|
|
|
1314
1379
|
className
|
|
1315
1380
|
),
|
|
1316
1381
|
children: [
|
|
1317
|
-
/* @__PURE__ */
|
|
1318
|
-
!imageLoaded && /* @__PURE__ */
|
|
1319
|
-
/* @__PURE__ */
|
|
1382
|
+
/* @__PURE__ */ jsx15("div", { className: "relative aspect-[3/2] w-full shrink-0 overflow-hidden", style: { backgroundColor: imageBgColor }, children: displayUrl ? /* @__PURE__ */ jsxs9(Fragment2, { children: [
|
|
1383
|
+
!imageLoaded && /* @__PURE__ */ jsx15("div", { className: "absolute inset-0 animate-pulse bg-ods-border/20" }),
|
|
1384
|
+
/* @__PURE__ */ jsx15(
|
|
1320
1385
|
next_image_default,
|
|
1321
1386
|
{
|
|
1322
1387
|
src: displayUrl,
|
|
@@ -1334,13 +1399,13 @@ function AdminContentCard({
|
|
|
1334
1399
|
onError: () => setImageError(true)
|
|
1335
1400
|
}
|
|
1336
1401
|
)
|
|
1337
|
-
] }) : /* @__PURE__ */
|
|
1402
|
+
] }) : /* @__PURE__ */ jsx15("div", { className: "absolute inset-0 bg-ods-bg" }) }),
|
|
1338
1403
|
/* @__PURE__ */ jsxs9("div", { className: "flex flex-1 flex-col gap-3 p-5", children: [
|
|
1339
|
-
/* @__PURE__ */
|
|
1340
|
-
(subtitle || reserveRows) && /* @__PURE__ */
|
|
1341
|
-
(summary || reserveRows) && /* @__PURE__ */
|
|
1404
|
+
/* @__PURE__ */ jsx15("h3", { className: cn("line-clamp-2 break-words text-ods-text-primary text-h3", reserveRows && "min-h-[2lh]"), children: title }),
|
|
1405
|
+
(subtitle || reserveRows) && /* @__PURE__ */ jsx15("p", { className: cn("truncate text-ods-text-secondary text-h6", reserveRows && "min-h-[1lh]"), children: subtitle }),
|
|
1406
|
+
(summary || reserveRows) && /* @__PURE__ */ jsx15("p", { className: cn("line-clamp-2 text-ods-text-secondary text-h6", reserveRows && "min-h-[2lh]"), children: summary }),
|
|
1342
1407
|
(Number(platforms?.length) > 0 || badges || reserveRows) && /* @__PURE__ */ jsxs9("div", { className: cn("flex flex-wrap items-center gap-2", reserveRows && "min-h-7"), children: [
|
|
1343
|
-
platforms?.map((p) => /* @__PURE__ */
|
|
1408
|
+
platforms?.map((p) => /* @__PURE__ */ jsx15(
|
|
1344
1409
|
PlatformBadge,
|
|
1345
1410
|
{
|
|
1346
1411
|
platform: { id: p.id || p.platform_id || "", name: p.name, display_name: p.display_name || p.name },
|
|
@@ -1350,8 +1415,8 @@ function AdminContentCard({
|
|
|
1350
1415
|
)),
|
|
1351
1416
|
badges
|
|
1352
1417
|
] }),
|
|
1353
|
-
(meta || reserveRows) && /* @__PURE__ */
|
|
1354
|
-
actions && /* @__PURE__ */
|
|
1418
|
+
(meta || reserveRows) && /* @__PURE__ */ jsx15("div", { className: cn("flex items-center gap-3 text-ods-text-secondary text-h6", reserveRows && "min-h-[1lh]"), children: meta }),
|
|
1419
|
+
actions && /* @__PURE__ */ jsx15("div", { className: "mt-auto flex items-center justify-between border-t border-ods-border pt-3", children: actions })
|
|
1355
1420
|
] })
|
|
1356
1421
|
]
|
|
1357
1422
|
}
|
|
@@ -1374,20 +1439,20 @@ function getProxiedImageUrl2(imageUrl) {
|
|
|
1374
1439
|
}
|
|
1375
1440
|
|
|
1376
1441
|
// src/components/chat/entity-cards/employee-entry-card.tsx
|
|
1377
|
-
import { Fragment as Fragment3, jsx as
|
|
1378
|
-
var
|
|
1379
|
-
published: "
|
|
1380
|
-
draft: "
|
|
1381
|
-
archived: "
|
|
1442
|
+
import { Fragment as Fragment3, jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
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__ */
|
|
1455
|
+
return /* @__PURE__ */ jsx16(StatusBadge, { text: children, colorScheme: "default", variant: "button", singleLine: true });
|
|
1391
1456
|
}
|
|
1392
1457
|
function EmployeeEntryCard({
|
|
1393
1458
|
entry,
|
|
@@ -1399,7 +1464,7 @@ function EmployeeEntryCard({
|
|
|
1399
1464
|
anchorProps,
|
|
1400
1465
|
className
|
|
1401
1466
|
}) {
|
|
1402
|
-
const card = /* @__PURE__ */
|
|
1467
|
+
const card = /* @__PURE__ */ jsx16(
|
|
1403
1468
|
AdminContentCard,
|
|
1404
1469
|
{
|
|
1405
1470
|
imageUrl: entry.featured_image || entry.main_video_thumbnail,
|
|
@@ -1407,18 +1472,20 @@ function EmployeeEntryCard({
|
|
|
1407
1472
|
title: entry.title || untitledLabel,
|
|
1408
1473
|
summary: (entry.summary ?? "").slice(0, 140) || "No description",
|
|
1409
1474
|
badges: entry.status || extraBadges ? /* @__PURE__ */ jsxs10(Fragment3, { children: [
|
|
1410
|
-
entry.status ? /* @__PURE__ */
|
|
1411
|
-
|
|
1475
|
+
entry.status ? /* @__PURE__ */ jsx16(
|
|
1476
|
+
StatusBadge,
|
|
1412
1477
|
{
|
|
1413
|
-
|
|
1414
|
-
|
|
1478
|
+
text: entry.status,
|
|
1479
|
+
colorScheme: 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__ */ jsxs10(Fragment3, { children: [
|
|
1420
1487
|
/* @__PURE__ */ jsxs10("span", { className: "flex min-w-0 items-center gap-2", children: [
|
|
1421
|
-
entry.author?.avatar_url ? /* @__PURE__ */
|
|
1488
|
+
entry.author?.avatar_url ? /* @__PURE__ */ jsx16(
|
|
1422
1489
|
next_image_default,
|
|
1423
1490
|
{
|
|
1424
1491
|
src: getProxiedImageUrl2(entry.author.avatar_url) ?? entry.author.avatar_url,
|
|
@@ -1429,15 +1496,15 @@ function EmployeeEntryCard({
|
|
|
1429
1496
|
unoptimized: true
|
|
1430
1497
|
}
|
|
1431
1498
|
) : null,
|
|
1432
|
-
/* @__PURE__ */
|
|
1499
|
+
/* @__PURE__ */ jsx16("span", { className: "truncate", children: entry.author?.full_name ?? "" })
|
|
1433
1500
|
] }),
|
|
1434
|
-
dateLabel ? /* @__PURE__ */
|
|
1501
|
+
dateLabel ? /* @__PURE__ */ jsx16("span", { children: dateLabel }) : null
|
|
1435
1502
|
] }),
|
|
1436
1503
|
actions,
|
|
1437
1504
|
className
|
|
1438
1505
|
}
|
|
1439
1506
|
);
|
|
1440
|
-
return anchorProps ? /* @__PURE__ */
|
|
1507
|
+
return anchorProps ? /* @__PURE__ */ jsx16("a", { ...anchorProps, className: "block h-full", children: card }) : card;
|
|
1441
1508
|
}
|
|
1442
1509
|
function EmployeeEntryCardSkeleton({ className }) {
|
|
1443
1510
|
return /* @__PURE__ */ jsxs10(
|
|
@@ -1445,14 +1512,14 @@ function EmployeeEntryCardSkeleton({ className }) {
|
|
|
1445
1512
|
{
|
|
1446
1513
|
className: `group flex h-full animate-pulse flex-col overflow-hidden rounded-2xl border border-ods-border bg-ods-card ${className ?? ""}`,
|
|
1447
1514
|
children: [
|
|
1448
|
-
/* @__PURE__ */
|
|
1515
|
+
/* @__PURE__ */ jsx16("div", { className: "aspect-[3/2] bg-ods-bg" }),
|
|
1449
1516
|
/* @__PURE__ */ jsxs10("div", { className: "flex flex-grow flex-col space-y-3 p-4", children: [
|
|
1450
|
-
/* @__PURE__ */
|
|
1451
|
-
/* @__PURE__ */
|
|
1452
|
-
/* @__PURE__ */
|
|
1517
|
+
/* @__PURE__ */ jsx16("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
1518
|
+
/* @__PURE__ */ jsx16("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
1519
|
+
/* @__PURE__ */ jsx16("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" }),
|
|
1453
1520
|
/* @__PURE__ */ jsxs10("div", { className: "mt-auto flex items-center gap-2", children: [
|
|
1454
|
-
/* @__PURE__ */
|
|
1455
|
-
/* @__PURE__ */
|
|
1521
|
+
/* @__PURE__ */ jsx16("div", { className: "h-8 w-8 rounded-full bg-ods-bg" }),
|
|
1522
|
+
/* @__PURE__ */ jsx16("div", { className: "h-3 w-24 rounded bg-ods-bg/60" })
|
|
1456
1523
|
] })
|
|
1457
1524
|
] })
|
|
1458
1525
|
]
|
|
@@ -1461,9 +1528,9 @@ function EmployeeEntryCardSkeleton({ className }) {
|
|
|
1461
1528
|
}
|
|
1462
1529
|
|
|
1463
1530
|
// src/components/chat/entity-cards/what-i-shipped-card.tsx
|
|
1464
|
-
import { jsx as
|
|
1531
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1465
1532
|
function WhatIShippedCard({ entry, placeholderUrl, actions, anchorProps, className }) {
|
|
1466
|
-
return /* @__PURE__ */
|
|
1533
|
+
return /* @__PURE__ */ jsx17(
|
|
1467
1534
|
EmployeeEntryCard,
|
|
1468
1535
|
{
|
|
1469
1536
|
entry,
|
|
@@ -1478,17 +1545,17 @@ function WhatIShippedCard({ entry, placeholderUrl, actions, anchorProps, classNa
|
|
|
1478
1545
|
var WhatIShippedCardSkeleton = EmployeeEntryCardSkeleton;
|
|
1479
1546
|
|
|
1480
1547
|
// src/components/chat/entity-cards/how-i-work-card.tsx
|
|
1481
|
-
import { jsx as
|
|
1548
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1482
1549
|
function disciplineLabel(discipline) {
|
|
1483
1550
|
return discipline.replace(/_/g, " ").replace(/\b\w/g, (ch) => ch.toUpperCase());
|
|
1484
1551
|
}
|
|
1485
1552
|
function HowIWorkCard({ entry, placeholderUrl, actions, anchorProps, className }) {
|
|
1486
|
-
return /* @__PURE__ */
|
|
1553
|
+
return /* @__PURE__ */ jsx18(
|
|
1487
1554
|
EmployeeEntryCard,
|
|
1488
1555
|
{
|
|
1489
1556
|
entry,
|
|
1490
1557
|
dateLabel: entry.session_date ? formatDateUTC(entry.session_date, { fallback: "" }) || null : null,
|
|
1491
|
-
extraBadges: entry.discipline ? /* @__PURE__ */
|
|
1558
|
+
extraBadges: entry.discipline ? /* @__PURE__ */ jsx18(EmployeeEntryBadge, { children: disciplineLabel(entry.discipline) }) : null,
|
|
1492
1559
|
untitledLabel: "Untitled session",
|
|
1493
1560
|
placeholderUrl,
|
|
1494
1561
|
actions,
|
|
@@ -1500,18 +1567,18 @@ function HowIWorkCard({ entry, placeholderUrl, actions, anchorProps, className }
|
|
|
1500
1567
|
var HowIWorkCardSkeleton = EmployeeEntryCardSkeleton;
|
|
1501
1568
|
|
|
1502
1569
|
// src/components/chat/entity-cards/ai-prompt-card.tsx
|
|
1503
|
-
import { Fragment as Fragment4, jsx as
|
|
1570
|
+
import { Fragment as Fragment4, jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1504
1571
|
function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }) {
|
|
1505
|
-
const
|
|
1572
|
+
const departmentName = entry.department?.name?.trim();
|
|
1506
1573
|
const steps = typeof entry.step_count === "number" ? entry.step_count : 0;
|
|
1507
|
-
return /* @__PURE__ */
|
|
1574
|
+
return /* @__PURE__ */ jsx19(
|
|
1508
1575
|
EmployeeEntryCard,
|
|
1509
1576
|
{
|
|
1510
1577
|
entry,
|
|
1511
1578
|
dateLabel: entry.published_at ? formatDateUTC(entry.published_at, { fallback: "" }) || null : null,
|
|
1512
1579
|
extraBadges: /* @__PURE__ */ jsxs11(Fragment4, { children: [
|
|
1513
|
-
|
|
1514
|
-
steps > 1 ? /* @__PURE__ */
|
|
1580
|
+
departmentName ? /* @__PURE__ */ jsx19(DepartmentBadge, { department: { name: departmentName, color: entry.department?.color ?? null } }) : null,
|
|
1581
|
+
steps > 1 ? /* @__PURE__ */ jsx19(EmployeeEntryBadge, { children: `${steps} steps` }) : null
|
|
1515
1582
|
] }),
|
|
1516
1583
|
untitledLabel: "Untitled prompt",
|
|
1517
1584
|
placeholderUrl,
|
|
@@ -1548,7 +1615,7 @@ function sortBitesByFeaturedAtDesc(a, b) {
|
|
|
1548
1615
|
|
|
1549
1616
|
// src/components/shared/product-release/product-release-card.tsx
|
|
1550
1617
|
import { AlertTriangle, Eye, Package, Play, Sparkles, TrendingUp, Wrench } from "lucide-react";
|
|
1551
|
-
import { Fragment as Fragment5, jsx as
|
|
1618
|
+
import { Fragment as Fragment5, jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1552
1619
|
function ProductReleaseCard({
|
|
1553
1620
|
title,
|
|
1554
1621
|
summary,
|
|
@@ -1601,8 +1668,8 @@ function ProductReleaseCard({
|
|
|
1601
1668
|
);
|
|
1602
1669
|
const innerLayout = /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
1603
1670
|
/* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-4 md:flex-row md:gap-6", children: [
|
|
1604
|
-
/* @__PURE__ */
|
|
1605
|
-
coverImage ? /* @__PURE__ */
|
|
1671
|
+
/* @__PURE__ */ jsx20("div", { className: "w-full flex-shrink-0 md:w-[256px]", children: /* @__PURE__ */ jsxs12("div", { className: "relative aspect-[1200/630] w-full overflow-hidden rounded-lg bg-ods-bg", children: [
|
|
1672
|
+
coverImage ? /* @__PURE__ */ jsx20(
|
|
1606
1673
|
next_image_default,
|
|
1607
1674
|
{
|
|
1608
1675
|
src: coverImage,
|
|
@@ -1612,43 +1679,43 @@ function ProductReleaseCard({
|
|
|
1612
1679
|
className: "object-cover",
|
|
1613
1680
|
unoptimized: true
|
|
1614
1681
|
}
|
|
1615
|
-
) : /* @__PURE__ */
|
|
1616
|
-
hasVideoCover && coverImage && /* @__PURE__ */
|
|
1682
|
+
) : /* @__PURE__ */ jsx20("div", { className: "absolute inset-0 flex items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ jsx20(Package, { className: "h-8 w-8" }) }),
|
|
1683
|
+
hasVideoCover && coverImage && /* @__PURE__ */ jsx20("span", { className: "absolute inset-0 flex items-center justify-center bg-black/30", children: /* @__PURE__ */ jsx20(Play, { className: "h-10 w-10 text-ods-text-on-dark", fill: "white" }) })
|
|
1617
1684
|
] }) }),
|
|
1618
1685
|
/* @__PURE__ */ jsxs12("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
1619
|
-
/* @__PURE__ */
|
|
1686
|
+
/* @__PURE__ */ jsx20("div", { className: "mb-3 flex items-center gap-3", children: /* @__PURE__ */ jsxs12("span", { className: "truncate font-semibold text-ods-text-primary text-code", children: [
|
|
1620
1687
|
"v",
|
|
1621
1688
|
version
|
|
1622
1689
|
] }) }),
|
|
1623
|
-
/* @__PURE__ */
|
|
1624
|
-
/* @__PURE__ */
|
|
1690
|
+
/* @__PURE__ */ jsx20("div", { className: "mb-3 flex min-h-[60px] items-start md:min-h-[72px]", children: /* @__PURE__ */ jsx20("h3", { className: "line-clamp-2 font-['Azeret_Mono'] text-xl font-semibold leading-tight text-ods-text-primary md:text-2xl", children: title }) }),
|
|
1691
|
+
/* @__PURE__ */ jsx20("div", { className: "min-h-[68px] md:min-h-[78px]", children: /* @__PURE__ */ jsx20("p", { className: "line-clamp-3 font-['DM_Sans'] text-sm leading-relaxed text-ods-text-secondary md:text-base", children: summary ?? "" }) })
|
|
1625
1692
|
] })
|
|
1626
1693
|
] }),
|
|
1627
|
-
/* @__PURE__ */
|
|
1694
|
+
/* @__PURE__ */ jsx20("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-1.5 border-t border-ods-border pt-3 text-ods-text-secondary text-h6", children: totalChangelog > 0 && changelogCounts ? /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
1628
1695
|
changelogCounts.features > 0 && /* @__PURE__ */ jsxs12("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
1629
|
-
/* @__PURE__ */
|
|
1696
|
+
/* @__PURE__ */ jsx20(Sparkles, { className: "h-3.5 w-3.5" }),
|
|
1630
1697
|
changelogCounts.features,
|
|
1631
1698
|
" ",
|
|
1632
1699
|
changelogCounts.features === 1 ? "feature" : "features"
|
|
1633
1700
|
] }),
|
|
1634
1701
|
changelogCounts.fixes > 0 && /* @__PURE__ */ jsxs12("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
1635
|
-
/* @__PURE__ */
|
|
1702
|
+
/* @__PURE__ */ jsx20(Wrench, { className: "h-3.5 w-3.5" }),
|
|
1636
1703
|
changelogCounts.fixes,
|
|
1637
1704
|
" ",
|
|
1638
1705
|
changelogCounts.fixes === 1 ? "fix" : "fixes"
|
|
1639
1706
|
] }),
|
|
1640
1707
|
changelogCounts.improvements > 0 && /* @__PURE__ */ jsxs12("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
1641
|
-
/* @__PURE__ */
|
|
1708
|
+
/* @__PURE__ */ jsx20(TrendingUp, { className: "h-3.5 w-3.5" }),
|
|
1642
1709
|
changelogCounts.improvements,
|
|
1643
1710
|
" ",
|
|
1644
1711
|
changelogCounts.improvements === 1 ? "improvement" : "improvements"
|
|
1645
1712
|
] }),
|
|
1646
1713
|
changelogCounts.breaking > 0 && /* @__PURE__ */ jsxs12("span", { className: "inline-flex items-center gap-1.5 text-ods-warning", children: [
|
|
1647
|
-
/* @__PURE__ */
|
|
1714
|
+
/* @__PURE__ */ jsx20(AlertTriangle, { className: "h-3.5 w-3.5" }),
|
|
1648
1715
|
changelogCounts.breaking,
|
|
1649
1716
|
" breaking"
|
|
1650
1717
|
] })
|
|
1651
|
-
] }) : /* @__PURE__ */
|
|
1718
|
+
] }) : /* @__PURE__ */ jsx20("span", { className: "text-ods-text-secondary", children: "No changelog entries yet" }) }),
|
|
1652
1719
|
/* @__PURE__ */ jsxs12(
|
|
1653
1720
|
"div",
|
|
1654
1721
|
{
|
|
@@ -1658,8 +1725,8 @@ function ProductReleaseCard({
|
|
|
1658
1725
|
"w-full overflow-hidden rounded-md border border-ods-border"
|
|
1659
1726
|
),
|
|
1660
1727
|
children: [
|
|
1661
|
-
valueCells.map((cell, i) => /* @__PURE__ */
|
|
1662
|
-
cell.colorScheme ? /* @__PURE__ */
|
|
1728
|
+
valueCells.map((cell, i) => /* @__PURE__ */ jsx20("div", { className: cn("flex flex-col gap-3 bg-ods-card p-4", dividerClass), children: /* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-0", children: [
|
|
1729
|
+
cell.colorScheme ? /* @__PURE__ */ jsx20(
|
|
1663
1730
|
StatusBadge,
|
|
1664
1731
|
{
|
|
1665
1732
|
text: cell.value,
|
|
@@ -1668,7 +1735,7 @@ function ProductReleaseCard({
|
|
|
1668
1735
|
singleLine: true,
|
|
1669
1736
|
className: "self-start"
|
|
1670
1737
|
}
|
|
1671
|
-
) : /* @__PURE__ */
|
|
1738
|
+
) : /* @__PURE__ */ jsx20(
|
|
1672
1739
|
"p",
|
|
1673
1740
|
{
|
|
1674
1741
|
className: cn(
|
|
@@ -1680,10 +1747,10 @@ function ProductReleaseCard({
|
|
|
1680
1747
|
children: cell.uppercase ? cell.value.toLocaleUpperCase() : cell.value
|
|
1681
1748
|
}
|
|
1682
1749
|
),
|
|
1683
|
-
/* @__PURE__ */
|
|
1750
|
+
/* @__PURE__ */ jsx20("p", { className: "text-ods-text-secondary text-h6", children: cell.label })
|
|
1684
1751
|
] }) }, `${cell.label}-${i}`)),
|
|
1685
1752
|
/* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-3 bg-ods-card p-4", children: [
|
|
1686
|
-
/* @__PURE__ */
|
|
1753
|
+
/* @__PURE__ */ jsx20(
|
|
1687
1754
|
SquareAvatar,
|
|
1688
1755
|
{
|
|
1689
1756
|
src: effectiveAuthor.avatar_url ?? void 0,
|
|
@@ -1694,15 +1761,15 @@ function ProductReleaseCard({
|
|
|
1694
1761
|
}
|
|
1695
1762
|
),
|
|
1696
1763
|
/* @__PURE__ */ jsxs12("div", { className: "flex min-w-0 flex-1 flex-col gap-0", children: [
|
|
1697
|
-
/* @__PURE__ */
|
|
1698
|
-
/* @__PURE__ */
|
|
1764
|
+
/* @__PURE__ */ jsx20("p", { className: "truncate tracking-[-0.36px] text-ods-text-primary text-h3", children: effectiveAuthor.full_name }),
|
|
1765
|
+
/* @__PURE__ */ jsx20("p", { className: "text-ods-text-secondary text-h6", children: effectiveAuthor.job_title || "Author" })
|
|
1699
1766
|
] })
|
|
1700
1767
|
] })
|
|
1701
1768
|
]
|
|
1702
1769
|
}
|
|
1703
1770
|
),
|
|
1704
1771
|
typeof viewCount === "number" && viewCount > 0 && /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-1.5 text-ods-text-secondary text-h6", children: [
|
|
1705
|
-
/* @__PURE__ */
|
|
1772
|
+
/* @__PURE__ */ jsx20(Eye, { className: "h-3.5 w-3.5" }),
|
|
1706
1773
|
/* @__PURE__ */ jsxs12("span", { children: [
|
|
1707
1774
|
viewCount.toLocaleString(),
|
|
1708
1775
|
" views"
|
|
@@ -1710,12 +1777,12 @@ function ProductReleaseCard({
|
|
|
1710
1777
|
] })
|
|
1711
1778
|
] });
|
|
1712
1779
|
if (anchorProps) {
|
|
1713
|
-
return /* @__PURE__ */
|
|
1780
|
+
return /* @__PURE__ */ jsx20("a", { ...anchorProps, className: frameClass, "aria-label": `Open ${title}`, children: innerLayout });
|
|
1714
1781
|
}
|
|
1715
1782
|
if (onClick) {
|
|
1716
|
-
return /* @__PURE__ */
|
|
1783
|
+
return /* @__PURE__ */ jsx20(InteractiveCard, { clickable: true, onClick, className: frameClass, children: innerLayout });
|
|
1717
1784
|
}
|
|
1718
|
-
return /* @__PURE__ */
|
|
1785
|
+
return /* @__PURE__ */ jsx20("div", { className: cn(frameClass.replace("hover:border-ods-accent", "").replace("hover:translate-y-[-2px]", "")), children: innerLayout });
|
|
1719
1786
|
}
|
|
1720
1787
|
if (size === "sm") {
|
|
1721
1788
|
const handleKey = (e) => {
|
|
@@ -1744,22 +1811,22 @@ function ProductReleaseCard({
|
|
|
1744
1811
|
);
|
|
1745
1812
|
const innerChildren = /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
1746
1813
|
/* @__PURE__ */ jsxs12("span", { className: "relative flex aspect-square h-14 w-14 shrink-0 items-center justify-center self-start overflow-hidden rounded-md bg-ods-bg text-ods-accent", children: [
|
|
1747
|
-
coverImage ? /* @__PURE__ */
|
|
1748
|
-
hasVideoCover && coverImage && /* @__PURE__ */
|
|
1814
|
+
coverImage ? /* @__PURE__ */ jsx20(next_image_default, { src: coverImage, alt: title, fill: true, sizes: "56px", className: "object-contain", unoptimized: true }) : /* @__PURE__ */ jsx20(Package, { className: "h-5 w-5" }),
|
|
1815
|
+
hasVideoCover && coverImage && /* @__PURE__ */ jsx20("span", { className: "absolute inset-0 flex items-center justify-center bg-black/30", children: /* @__PURE__ */ jsx20(Play, { className: "h-4 w-4 text-ods-text-on-dark", fill: "white" }) })
|
|
1749
1816
|
] }),
|
|
1750
1817
|
/* @__PURE__ */ jsxs12("span", { className: "flex min-h-14 min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
1751
1818
|
/* @__PURE__ */ jsxs12("span", { className: "flex h-5 min-w-0 items-center gap-2", children: [
|
|
1752
|
-
/* @__PURE__ */
|
|
1753
|
-
version ? /* @__PURE__ */
|
|
1819
|
+
/* @__PURE__ */ jsx20("span", { className: "min-w-0 truncate font-semibold text-ods-text-primary text-h6", title, children: title }),
|
|
1820
|
+
version ? /* @__PURE__ */ jsx20("span", { className: "shrink-0 rounded bg-ods-accent/10 px-1.5 py-0.5 text-ods-accent text-code", children: version }) : null
|
|
1754
1821
|
] }),
|
|
1755
|
-
/* @__PURE__ */
|
|
1756
|
-
/* @__PURE__ */
|
|
1822
|
+
/* @__PURE__ */ jsx20("span", { className: "flex h-4 min-w-0 items-center", children: /* @__PURE__ */ jsx20("span", { className: "truncate text-ods-text-secondary text-h6", children: formattedDate || "Product release" }) }),
|
|
1823
|
+
/* @__PURE__ */ jsx20("span", { className: "flex h-4 min-w-0 items-center", children: /* @__PURE__ */ jsx20("span", { className: "truncate text-ods-text-secondary/80 text-h6", title: summary || void 0, children: summary || "\xA0" }) })
|
|
1757
1824
|
] })
|
|
1758
1825
|
] });
|
|
1759
1826
|
if (anchorProps) {
|
|
1760
|
-
return /* @__PURE__ */
|
|
1827
|
+
return /* @__PURE__ */ jsx20("a", { ...anchorProps, className: outerClassName, children: innerChildren });
|
|
1761
1828
|
}
|
|
1762
|
-
return /* @__PURE__ */
|
|
1829
|
+
return /* @__PURE__ */ jsx20(
|
|
1763
1830
|
"span",
|
|
1764
1831
|
{
|
|
1765
1832
|
role: onClick ? "button" : void 0,
|
|
@@ -1775,7 +1842,7 @@ function ProductReleaseCard({
|
|
|
1775
1842
|
}
|
|
1776
1843
|
|
|
1777
1844
|
// src/components/shared/product-release/product-release-card-skeleton.tsx
|
|
1778
|
-
import { jsx as
|
|
1845
|
+
import { jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1779
1846
|
function ProductReleaseCardSkeleton({ className, size = "lg" }) {
|
|
1780
1847
|
if (size === "lg") {
|
|
1781
1848
|
return /* @__PURE__ */ jsxs13(
|
|
@@ -1789,38 +1856,38 @@ function ProductReleaseCardSkeleton({ className, size = "lg" }) {
|
|
|
1789
1856
|
),
|
|
1790
1857
|
children: [
|
|
1791
1858
|
/* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-4 md:flex-row md:gap-6", children: [
|
|
1792
|
-
/* @__PURE__ */
|
|
1859
|
+
/* @__PURE__ */ jsx21("div", { className: "aspect-[1200/630] w-full flex-shrink-0 rounded-lg bg-ods-border md:w-[256px]" }),
|
|
1793
1860
|
/* @__PURE__ */ jsxs13("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
1794
|
-
/* @__PURE__ */
|
|
1861
|
+
/* @__PURE__ */ jsx21("div", { className: "mb-3 flex items-center gap-3", children: /* @__PURE__ */ jsx21("div", { className: "h-7 w-20 rounded bg-ods-border" }) }),
|
|
1795
1862
|
/* @__PURE__ */ jsxs13("div", { className: "mb-3 flex min-h-[60px] flex-col justify-start gap-1.5 md:min-h-[72px]", children: [
|
|
1796
|
-
/* @__PURE__ */
|
|
1797
|
-
/* @__PURE__ */
|
|
1863
|
+
/* @__PURE__ */ jsx21("div", { className: "h-[25px] w-3/4 rounded bg-ods-border md:h-[30px]" }),
|
|
1864
|
+
/* @__PURE__ */ jsx21("div", { className: "h-[25px] w-1/2 rounded bg-ods-border md:h-[30px]" })
|
|
1798
1865
|
] }),
|
|
1799
1866
|
/* @__PURE__ */ jsxs13("div", { className: "flex min-h-[68px] flex-col justify-start gap-2 md:min-h-[78px]", children: [
|
|
1800
|
-
/* @__PURE__ */
|
|
1801
|
-
/* @__PURE__ */
|
|
1802
|
-
/* @__PURE__ */
|
|
1867
|
+
/* @__PURE__ */ jsx21("div", { className: "h-3 w-full rounded bg-ods-border/70" }),
|
|
1868
|
+
/* @__PURE__ */ jsx21("div", { className: "h-3 w-11/12 rounded bg-ods-border/70" }),
|
|
1869
|
+
/* @__PURE__ */ jsx21("div", { className: "h-3 w-5/6 rounded bg-ods-border/70" })
|
|
1803
1870
|
] })
|
|
1804
1871
|
] })
|
|
1805
1872
|
] }),
|
|
1806
|
-
/* @__PURE__ */
|
|
1873
|
+
/* @__PURE__ */ jsx21("div", { className: "border-t border-ods-border pt-3", children: /* @__PURE__ */ jsx21("div", { className: "h-5 w-2/3 rounded bg-ods-border/70" }) }),
|
|
1807
1874
|
/* @__PURE__ */ jsxs13("div", { className: "grid w-full grid-cols-1 overflow-hidden rounded-md border border-ods-border md:grid-cols-4", children: [
|
|
1808
|
-
[0, 1, 2].map((i) => /* @__PURE__ */
|
|
1875
|
+
[0, 1, 2].map((i) => /* @__PURE__ */ jsx21(
|
|
1809
1876
|
"div",
|
|
1810
1877
|
{
|
|
1811
1878
|
className: "flex flex-col gap-3 border-b border-ods-border bg-ods-card p-4 md:border-b-0 md:border-r",
|
|
1812
1879
|
children: /* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-2", children: [
|
|
1813
|
-
/* @__PURE__ */
|
|
1814
|
-
/* @__PURE__ */
|
|
1880
|
+
/* @__PURE__ */ jsx21("div", { className: "h-7 w-24 rounded bg-ods-bg" }),
|
|
1881
|
+
/* @__PURE__ */ jsx21("div", { className: "h-4 w-16 rounded bg-ods-bg/60" })
|
|
1815
1882
|
] })
|
|
1816
1883
|
},
|
|
1817
1884
|
`cell-${i}`
|
|
1818
1885
|
)),
|
|
1819
1886
|
/* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-3 bg-ods-card p-4", children: [
|
|
1820
|
-
/* @__PURE__ */
|
|
1887
|
+
/* @__PURE__ */ jsx21("div", { className: "h-10 w-10 shrink-0 rounded-full bg-ods-bg" }),
|
|
1821
1888
|
/* @__PURE__ */ jsxs13("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
1822
|
-
/* @__PURE__ */
|
|
1823
|
-
/* @__PURE__ */
|
|
1889
|
+
/* @__PURE__ */ jsx21("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
1890
|
+
/* @__PURE__ */ jsx21("div", { className: "h-4 w-1/2 rounded bg-ods-bg/60" })
|
|
1824
1891
|
] })
|
|
1825
1892
|
] })
|
|
1826
1893
|
] })
|
|
@@ -1838,14 +1905,14 @@ function ProductReleaseCardSkeleton({ className, size = "lg" }) {
|
|
|
1838
1905
|
className
|
|
1839
1906
|
),
|
|
1840
1907
|
children: [
|
|
1841
|
-
/* @__PURE__ */
|
|
1908
|
+
/* @__PURE__ */ jsx21("span", { className: "block aspect-square h-14 w-14 shrink-0 self-start rounded-md bg-ods-bg" }),
|
|
1842
1909
|
/* @__PURE__ */ jsxs13("span", { className: "flex min-h-14 min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
1843
1910
|
/* @__PURE__ */ jsxs13("span", { className: "flex h-5 min-w-0 items-center gap-2", children: [
|
|
1844
|
-
/* @__PURE__ */
|
|
1845
|
-
/* @__PURE__ */
|
|
1911
|
+
/* @__PURE__ */ jsx21("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }),
|
|
1912
|
+
/* @__PURE__ */ jsx21("span", { className: "h-4 w-12 shrink-0 rounded bg-ods-bg/70" })
|
|
1846
1913
|
] }),
|
|
1847
|
-
/* @__PURE__ */
|
|
1848
|
-
/* @__PURE__ */
|
|
1914
|
+
/* @__PURE__ */ jsx21("span", { className: "flex h-4 min-w-0 items-center", children: /* @__PURE__ */ jsx21("span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) }),
|
|
1915
|
+
/* @__PURE__ */ jsx21("span", { className: "flex h-4 min-w-0 items-center", children: /* @__PURE__ */ jsx21("span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
1849
1916
|
] })
|
|
1850
1917
|
]
|
|
1851
1918
|
}
|
|
@@ -2032,28 +2099,28 @@ function useEntityCardPlaceholder({
|
|
|
2032
2099
|
}
|
|
2033
2100
|
|
|
2034
2101
|
// src/components/chat/entity-cards/blog-card.tsx
|
|
2035
|
-
import { Fragment as Fragment6, jsx as
|
|
2102
|
+
import { Fragment as Fragment6, jsx as jsx22, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2036
2103
|
function BlogCardSkeleton({ size = "default" }) {
|
|
2037
2104
|
if (size === "sm") {
|
|
2038
2105
|
return /* @__PURE__ */ jsxs14("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
2039
|
-
/* @__PURE__ */
|
|
2106
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
2040
2107
|
/* @__PURE__ */ jsxs14("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2041
|
-
/* @__PURE__ */
|
|
2042
|
-
/* @__PURE__ */
|
|
2043
|
-
/* @__PURE__ */
|
|
2108
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx22("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
2109
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx22("span", { className: "h-3 w-2/5 rounded bg-ods-bg/70" }) }),
|
|
2110
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx22("span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
2044
2111
|
] })
|
|
2045
2112
|
] });
|
|
2046
2113
|
}
|
|
2047
2114
|
return /* @__PURE__ */ jsxs14("article", { className: "group flex h-full animate-pulse flex-col overflow-hidden rounded-lg border border-ods-border bg-ods-card", children: [
|
|
2048
|
-
/* @__PURE__ */
|
|
2115
|
+
/* @__PURE__ */ jsx22("div", { className: "aspect-[1200/630] bg-ods-bg" }),
|
|
2049
2116
|
/* @__PURE__ */ jsxs14("div", { className: "flex flex-grow flex-col space-y-3 p-4", children: [
|
|
2050
|
-
/* @__PURE__ */
|
|
2051
|
-
/* @__PURE__ */
|
|
2052
|
-
/* @__PURE__ */
|
|
2053
|
-
/* @__PURE__ */
|
|
2117
|
+
/* @__PURE__ */ jsx22("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
2118
|
+
/* @__PURE__ */ jsx22("div", { className: "h-5 w-1/2 rounded bg-ods-bg" }),
|
|
2119
|
+
/* @__PURE__ */ jsx22("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
2120
|
+
/* @__PURE__ */ jsx22("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" }),
|
|
2054
2121
|
/* @__PURE__ */ jsxs14("div", { className: "mt-auto flex items-center gap-2", children: [
|
|
2055
|
-
/* @__PURE__ */
|
|
2056
|
-
/* @__PURE__ */
|
|
2122
|
+
/* @__PURE__ */ jsx22("div", { className: "h-8 w-8 rounded-full bg-ods-bg" }),
|
|
2123
|
+
/* @__PURE__ */ jsx22("div", { className: "h-3 w-24 rounded bg-ods-bg/60" })
|
|
2057
2124
|
] })
|
|
2058
2125
|
] })
|
|
2059
2126
|
] });
|
|
@@ -2100,7 +2167,7 @@ function BlogCard({
|
|
|
2100
2167
|
className: cn(COMPACT_CARD_OUTER, className),
|
|
2101
2168
|
"aria-label": `Read article: ${post.title}`,
|
|
2102
2169
|
children: [
|
|
2103
|
-
/* @__PURE__ */
|
|
2170
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_IMAGE_SLOT, children: displayImage ? /* @__PURE__ */ jsx22(
|
|
2104
2171
|
next_image_default,
|
|
2105
2172
|
{
|
|
2106
2173
|
src: displayImage,
|
|
@@ -2114,15 +2181,15 @@ function BlogCard({
|
|
|
2114
2181
|
) : null }),
|
|
2115
2182
|
/* @__PURE__ */ jsxs14("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2116
2183
|
/* @__PURE__ */ jsxs14("span", { className: cn(COMPACT_CARD_TITLE_ROW, "gap-1.5"), children: [
|
|
2117
|
-
/* @__PURE__ */
|
|
2118
|
-
hasEmbeddedVideo ? /* @__PURE__ */
|
|
2184
|
+
/* @__PURE__ */ jsx22("span", { className: cn(COMPACT_CARD_TITLE, "font-body"), children: post.title }),
|
|
2185
|
+
hasEmbeddedVideo ? /* @__PURE__ */ jsx22(StatusBadge, { text: "Video", variant: "button", colorScheme: "cyan", className: "shrink-0" }) : null
|
|
2119
2186
|
] }),
|
|
2120
|
-
/* @__PURE__ */
|
|
2187
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsxs14("span", { className: COMPACT_CARD_SUBTITLE, children: [
|
|
2121
2188
|
dateStr2,
|
|
2122
2189
|
dateStr2 && firstCategory ? " \xB7 " : "",
|
|
2123
2190
|
firstCategory ?? "Blog Post"
|
|
2124
2191
|
] }) }),
|
|
2125
|
-
/* @__PURE__ */
|
|
2192
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_SUMMARY, children: post.summary || COMPACT_CARD_ROW_FILLER }) })
|
|
2126
2193
|
] })
|
|
2127
2194
|
]
|
|
2128
2195
|
}
|
|
@@ -2135,7 +2202,7 @@ function BlogCard({
|
|
|
2135
2202
|
day: "numeric",
|
|
2136
2203
|
timeZone: "UTC"
|
|
2137
2204
|
}) : "";
|
|
2138
|
-
return /* @__PURE__ */
|
|
2205
|
+
return /* @__PURE__ */ jsx22(
|
|
2139
2206
|
EntityPortraitCard,
|
|
2140
2207
|
{
|
|
2141
2208
|
href,
|
|
@@ -2161,7 +2228,7 @@ function BlogCard({
|
|
|
2161
2228
|
day: "numeric",
|
|
2162
2229
|
timeZone: "UTC"
|
|
2163
2230
|
}) : "";
|
|
2164
|
-
return /* @__PURE__ */
|
|
2231
|
+
return /* @__PURE__ */ jsx22(
|
|
2165
2232
|
"article",
|
|
2166
2233
|
{
|
|
2167
2234
|
className: cn(
|
|
@@ -2182,7 +2249,7 @@ function BlogCard({
|
|
|
2182
2249
|
className: "flex h-full flex-col focus:outline-none",
|
|
2183
2250
|
"aria-label": `Read article: ${post.title}`,
|
|
2184
2251
|
children: [
|
|
2185
|
-
/* @__PURE__ */
|
|
2252
|
+
/* @__PURE__ */ jsx22("div", { className: "relative aspect-[1200/630] w-full overflow-hidden bg-ods-bg", children: displayImage ? /* @__PURE__ */ jsx22(
|
|
2186
2253
|
next_image_default,
|
|
2187
2254
|
{
|
|
2188
2255
|
src: displayImage,
|
|
@@ -2197,7 +2264,7 @@ function BlogCard({
|
|
|
2197
2264
|
}
|
|
2198
2265
|
) : null }),
|
|
2199
2266
|
/* @__PURE__ */ jsxs14("div", { className: "flex flex-grow flex-col p-4", children: [
|
|
2200
|
-
/* @__PURE__ */
|
|
2267
|
+
/* @__PURE__ */ jsx22("div", { className: "mb-3 flex min-h-[50.4px] items-center md:min-h-[56px] lg:min-h-[61.6px]", children: /* @__PURE__ */ jsx22(
|
|
2201
2268
|
"h3",
|
|
2202
2269
|
{
|
|
2203
2270
|
className: cn(
|
|
@@ -2209,10 +2276,10 @@ function BlogCard({
|
|
|
2209
2276
|
children: post.title
|
|
2210
2277
|
}
|
|
2211
2278
|
) }),
|
|
2212
|
-
/* @__PURE__ */
|
|
2279
|
+
/* @__PURE__ */ jsx22("div", { className: "mb-3 flex min-h-[42px] items-center md:min-h-[45px] lg:min-h-[48px]", children: /* @__PURE__ */ jsx22("p", { className: cn("text-ods-text-primary text-h6", "line-clamp-2"), children: post.summary || "" }) }),
|
|
2213
2280
|
/* @__PURE__ */ jsxs14("div", { className: "mt-auto flex items-center justify-between gap-2 text-ods-text-secondary text-h6", children: [
|
|
2214
2281
|
/* @__PURE__ */ jsxs14("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
2215
|
-
post.author_avatar ? /* @__PURE__ */
|
|
2282
|
+
post.author_avatar ? /* @__PURE__ */ jsx22(
|
|
2216
2283
|
next_image_default,
|
|
2217
2284
|
{
|
|
2218
2285
|
src: post.author_avatar,
|
|
@@ -2237,8 +2304,8 @@ function BlogCard({
|
|
|
2237
2304
|
className: "flex shrink-0 items-center gap-1",
|
|
2238
2305
|
"aria-label": `View count: ${(post.view_count ?? 0).toLocaleString("en-US")} views`,
|
|
2239
2306
|
children: [
|
|
2240
|
-
/* @__PURE__ */
|
|
2241
|
-
/* @__PURE__ */
|
|
2307
|
+
/* @__PURE__ */ jsx22(Eye2, { className: "h-4 w-4 shrink-0" }),
|
|
2308
|
+
/* @__PURE__ */ jsx22("span", { children: (post.view_count ?? 0).toLocaleString("en-US") })
|
|
2242
2309
|
]
|
|
2243
2310
|
}
|
|
2244
2311
|
)
|
|
@@ -2252,29 +2319,29 @@ function BlogCard({
|
|
|
2252
2319
|
}
|
|
2253
2320
|
|
|
2254
2321
|
// src/components/chat/entity-cards/case-study-card.tsx
|
|
2255
|
-
import { jsx as
|
|
2322
|
+
import { jsx as jsx23, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2256
2323
|
function CaseStudyCardSkeleton({ size = "default" }) {
|
|
2257
2324
|
if (size === "sm") {
|
|
2258
2325
|
return /* @__PURE__ */ jsxs15("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
2259
|
-
/* @__PURE__ */
|
|
2326
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
2260
2327
|
/* @__PURE__ */ jsxs15("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2261
|
-
/* @__PURE__ */
|
|
2262
|
-
/* @__PURE__ */
|
|
2263
|
-
/* @__PURE__ */
|
|
2328
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx23("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
2329
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx23("span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
2330
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx23("span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
2264
2331
|
] })
|
|
2265
2332
|
] });
|
|
2266
2333
|
}
|
|
2267
2334
|
return /* @__PURE__ */ jsxs15("div", { className: "flex animate-pulse flex-col gap-6 overflow-hidden rounded-lg border border-ods-border bg-ods-card p-6", children: [
|
|
2268
|
-
/* @__PURE__ */
|
|
2335
|
+
/* @__PURE__ */ jsx23("div", { className: "aspect-[1200/630] w-full rounded-sm bg-ods-bg" }),
|
|
2269
2336
|
/* @__PURE__ */ jsxs15("div", { className: "flex h-[72px] flex-col gap-2", children: [
|
|
2270
|
-
/* @__PURE__ */
|
|
2271
|
-
/* @__PURE__ */
|
|
2337
|
+
/* @__PURE__ */ jsx23("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
2338
|
+
/* @__PURE__ */ jsx23("div", { className: "h-5 w-1/2 rounded bg-ods-bg" })
|
|
2272
2339
|
] }),
|
|
2273
2340
|
/* @__PURE__ */ jsxs15("div", { className: "flex h-[60px] items-center gap-3", children: [
|
|
2274
|
-
/* @__PURE__ */
|
|
2341
|
+
/* @__PURE__ */ jsx23("div", { className: "h-12 w-12 rounded-full bg-ods-bg" }),
|
|
2275
2342
|
/* @__PURE__ */ jsxs15("div", { className: "flex-1 space-y-2", children: [
|
|
2276
|
-
/* @__PURE__ */
|
|
2277
|
-
/* @__PURE__ */
|
|
2343
|
+
/* @__PURE__ */ jsx23("div", { className: "h-4 w-2/3 rounded bg-ods-bg" }),
|
|
2344
|
+
/* @__PURE__ */ jsx23("div", { className: "h-3 w-1/2 rounded bg-ods-bg/60" })
|
|
2278
2345
|
] })
|
|
2279
2346
|
] })
|
|
2280
2347
|
] });
|
|
@@ -2304,7 +2371,7 @@ function CaseStudyCard({
|
|
|
2304
2371
|
const coverImage = study.featured_image || placeholderUrl || null;
|
|
2305
2372
|
if (size === "sm") {
|
|
2306
2373
|
return /* @__PURE__ */ jsxs15("a", { href, target, rel, className: cn(COMPACT_CARD_OUTER, className), children: [
|
|
2307
|
-
/* @__PURE__ */
|
|
2374
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_IMAGE_SLOT, children: coverImage ? /* @__PURE__ */ jsx23(
|
|
2308
2375
|
next_image_default,
|
|
2309
2376
|
{
|
|
2310
2377
|
src: coverImage,
|
|
@@ -2317,14 +2384,14 @@ function CaseStudyCard({
|
|
|
2317
2384
|
}
|
|
2318
2385
|
) : null }),
|
|
2319
2386
|
/* @__PURE__ */ jsxs15("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2320
|
-
/* @__PURE__ */
|
|
2321
|
-
/* @__PURE__ */
|
|
2322
|
-
/* @__PURE__ */
|
|
2387
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_TITLE, children: study.title }) }),
|
|
2388
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_SUBTITLE, children: [study.msp?.name, study.user?.full_name].filter(Boolean).join(" \xB7 ") || "Case study" }) }),
|
|
2389
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_SUMMARY, children: study.summary || COMPACT_CARD_ROW_FILLER }) })
|
|
2323
2390
|
] })
|
|
2324
2391
|
] });
|
|
2325
2392
|
}
|
|
2326
2393
|
if (size === "portrait") {
|
|
2327
|
-
return /* @__PURE__ */
|
|
2394
|
+
return /* @__PURE__ */ jsx23(
|
|
2328
2395
|
EntityPortraitCard,
|
|
2329
2396
|
{
|
|
2330
2397
|
href,
|
|
@@ -2345,8 +2412,8 @@ function CaseStudyCard({
|
|
|
2345
2412
|
}
|
|
2346
2413
|
);
|
|
2347
2414
|
}
|
|
2348
|
-
return /* @__PURE__ */
|
|
2349
|
-
/* @__PURE__ */
|
|
2415
|
+
return /* @__PURE__ */ jsx23("a", { href, target, rel, className: cn("block h-full", className), children: /* @__PURE__ */ jsxs15(Card, { className: "flex flex-col gap-6 overflow-hidden border border-ods-border bg-ods-card p-6 transition-colors hover:border-ods-accent", children: [
|
|
2416
|
+
/* @__PURE__ */ jsx23("div", { className: "relative aspect-[1200/630] w-full shrink-0 overflow-hidden rounded-sm bg-ods-bg", children: coverImage && /* @__PURE__ */ jsx23(
|
|
2350
2417
|
next_image_default,
|
|
2351
2418
|
{
|
|
2352
2419
|
src: coverImage,
|
|
@@ -2358,10 +2425,10 @@ function CaseStudyCard({
|
|
|
2358
2425
|
onError: hideOnError
|
|
2359
2426
|
}
|
|
2360
2427
|
) }),
|
|
2361
|
-
/* @__PURE__ */
|
|
2362
|
-
/* @__PURE__ */
|
|
2428
|
+
/* @__PURE__ */ jsx23("div", { className: "flex h-[72px] shrink-0 items-center", children: /* @__PURE__ */ jsx23("p", { className: "line-clamp-3 break-words text-ods-text-primary text-h4", children: study.title }) }),
|
|
2429
|
+
/* @__PURE__ */ jsx23("div", { className: "flex h-[60px] shrink-0 items-center", children: /* @__PURE__ */ jsxs15("div", { className: "flex w-full min-w-0 items-center gap-3", children: [
|
|
2363
2430
|
/* @__PURE__ */ jsxs15("div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2364
|
-
study.user?.avatar_url ? /* @__PURE__ */
|
|
2431
|
+
study.user?.avatar_url ? /* @__PURE__ */ jsx23(
|
|
2365
2432
|
next_image_default,
|
|
2366
2433
|
{
|
|
2367
2434
|
src: study.user.avatar_url,
|
|
@@ -2371,8 +2438,8 @@ function CaseStudyCard({
|
|
|
2371
2438
|
height: 48,
|
|
2372
2439
|
unoptimized: true
|
|
2373
2440
|
}
|
|
2374
|
-
) : /* @__PURE__ */
|
|
2375
|
-
study.msp?.icon_url && /* @__PURE__ */
|
|
2441
|
+
) : /* @__PURE__ */ jsx23("div", { className: "flex h-12 w-12 items-center justify-center rounded-full border border-ods-border bg-ods-bg", children: /* @__PURE__ */ jsx23("span", { className: "text-ods-text-secondary text-h4", children: (study.user?.full_name || "A").charAt(0).toUpperCase() }) }),
|
|
2442
|
+
study.msp?.icon_url && /* @__PURE__ */ jsx23("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__ */ jsx23(
|
|
2376
2443
|
next_image_default,
|
|
2377
2444
|
{
|
|
2378
2445
|
src: study.msp.icon_url,
|
|
@@ -2392,7 +2459,7 @@ function CaseStudyCard({
|
|
|
2392
2459
|
study.msp.name
|
|
2393
2460
|
] })
|
|
2394
2461
|
] }),
|
|
2395
|
-
/* @__PURE__ */
|
|
2462
|
+
/* @__PURE__ */ jsx23("p", { className: "truncate text-ods-text-secondary text-h6", children: study.user?.job_title || "\xA0" })
|
|
2396
2463
|
] })
|
|
2397
2464
|
] }) })
|
|
2398
2465
|
] }) });
|
|
@@ -2400,34 +2467,34 @@ function CaseStudyCard({
|
|
|
2400
2467
|
|
|
2401
2468
|
// src/components/chat/entity-cards/customer-interview-card.tsx
|
|
2402
2469
|
import { Video } from "lucide-react";
|
|
2403
|
-
import { Fragment as Fragment7, jsx as
|
|
2470
|
+
import { Fragment as Fragment7, jsx as jsx24, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2404
2471
|
function CustomerInterviewCardSkeleton({ size = "default" }) {
|
|
2405
2472
|
if (size === "sm") {
|
|
2406
2473
|
return /* @__PURE__ */ jsxs16("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
2407
|
-
/* @__PURE__ */
|
|
2474
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
2408
2475
|
/* @__PURE__ */ jsxs16("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2409
|
-
/* @__PURE__ */
|
|
2410
|
-
/* @__PURE__ */
|
|
2411
|
-
/* @__PURE__ */
|
|
2476
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx24("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
2477
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx24("span", { className: "h-3 w-2/5 rounded bg-ods-bg/70" }) }),
|
|
2478
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx24("span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
2412
2479
|
] })
|
|
2413
2480
|
] });
|
|
2414
2481
|
}
|
|
2415
2482
|
return /* @__PURE__ */ jsxs16("div", { className: "flex animate-pulse flex-col gap-6 overflow-hidden rounded-lg border border-ods-border bg-ods-card p-6", children: [
|
|
2416
|
-
/* @__PURE__ */
|
|
2483
|
+
/* @__PURE__ */ jsx24("div", { className: "aspect-[1200/630] w-full rounded-sm bg-ods-bg" }),
|
|
2417
2484
|
/* @__PURE__ */ jsxs16("div", { className: "space-y-2", children: [
|
|
2418
|
-
/* @__PURE__ */
|
|
2419
|
-
/* @__PURE__ */
|
|
2485
|
+
/* @__PURE__ */ jsx24("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
2486
|
+
/* @__PURE__ */ jsx24("div", { className: "h-5 w-1/2 rounded bg-ods-bg" })
|
|
2420
2487
|
] }),
|
|
2421
2488
|
/* @__PURE__ */ jsxs16("div", { className: "space-y-2", children: [
|
|
2422
|
-
/* @__PURE__ */
|
|
2423
|
-
/* @__PURE__ */
|
|
2424
|
-
/* @__PURE__ */
|
|
2489
|
+
/* @__PURE__ */ jsx24("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
2490
|
+
/* @__PURE__ */ jsx24("div", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }),
|
|
2491
|
+
/* @__PURE__ */ jsx24("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" })
|
|
2425
2492
|
] }),
|
|
2426
2493
|
/* @__PURE__ */ jsxs16("div", { className: "mt-auto flex h-[60px] items-center gap-3", children: [
|
|
2427
|
-
/* @__PURE__ */
|
|
2494
|
+
/* @__PURE__ */ jsx24("div", { className: "h-12 w-12 rounded-full bg-ods-bg" }),
|
|
2428
2495
|
/* @__PURE__ */ jsxs16("div", { className: "flex-1 space-y-2", children: [
|
|
2429
|
-
/* @__PURE__ */
|
|
2430
|
-
/* @__PURE__ */
|
|
2496
|
+
/* @__PURE__ */ jsx24("div", { className: "h-4 w-2/3 rounded bg-ods-bg" }),
|
|
2497
|
+
/* @__PURE__ */ jsx24("div", { className: "h-3 w-1/2 rounded bg-ods-bg/60" })
|
|
2431
2498
|
] })
|
|
2432
2499
|
] })
|
|
2433
2500
|
] });
|
|
@@ -2458,7 +2525,7 @@ function CustomerInterviewCard({
|
|
|
2458
2525
|
if (size === "sm") {
|
|
2459
2526
|
return /* @__PURE__ */ jsxs16("a", { href, target, rel, className: cn(COMPACT_CARD_OUTER, className), children: [
|
|
2460
2527
|
/* @__PURE__ */ jsxs16("span", { className: COMPACT_CARD_IMAGE_SLOT, children: [
|
|
2461
|
-
thumbnailUrl ? /* @__PURE__ */
|
|
2528
|
+
thumbnailUrl ? /* @__PURE__ */ jsx24(
|
|
2462
2529
|
next_image_default,
|
|
2463
2530
|
{
|
|
2464
2531
|
src: thumbnailUrl,
|
|
@@ -2470,17 +2537,17 @@ function CustomerInterviewCard({
|
|
|
2470
2537
|
onError: hideOnError
|
|
2471
2538
|
}
|
|
2472
2539
|
) : null,
|
|
2473
|
-
interview.main_video_url ? /* @__PURE__ */
|
|
2540
|
+
interview.main_video_url ? /* @__PURE__ */ jsx24("span", { className: "absolute inset-0 flex items-center justify-center bg-black/30", children: /* @__PURE__ */ jsx24(Video, { className: "h-4 w-4 text-ods-text-on-dark" }) }) : null
|
|
2474
2541
|
] }),
|
|
2475
2542
|
/* @__PURE__ */ jsxs16("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2476
|
-
/* @__PURE__ */
|
|
2477
|
-
/* @__PURE__ */
|
|
2478
|
-
/* @__PURE__ */
|
|
2543
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_TITLE, children: interview.title }) }),
|
|
2544
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_SUBTITLE, children: [interview.user?.full_name, interview.msp?.name].filter(Boolean).join(" \xB7 ") || "Customer interview" }) }),
|
|
2545
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_SUMMARY, children: interview.video_summary || COMPACT_CARD_ROW_FILLER }) })
|
|
2479
2546
|
] })
|
|
2480
2547
|
] });
|
|
2481
2548
|
}
|
|
2482
2549
|
if (size === "portrait") {
|
|
2483
|
-
return /* @__PURE__ */
|
|
2550
|
+
return /* @__PURE__ */ jsx24(
|
|
2484
2551
|
EntityPortraitCard,
|
|
2485
2552
|
{
|
|
2486
2553
|
href,
|
|
@@ -2501,9 +2568,9 @@ function CustomerInterviewCard({
|
|
|
2501
2568
|
}
|
|
2502
2569
|
);
|
|
2503
2570
|
}
|
|
2504
|
-
return /* @__PURE__ */
|
|
2505
|
-
/* @__PURE__ */
|
|
2506
|
-
/* @__PURE__ */
|
|
2571
|
+
return /* @__PURE__ */ jsx24("a", { href, target, rel, className: cn("block h-full", className), children: /* @__PURE__ */ jsxs16(Card, { className: "flex flex-col gap-6 overflow-hidden border border-ods-border bg-ods-card p-6 transition-colors hover:border-ods-accent", children: [
|
|
2572
|
+
/* @__PURE__ */ jsx24("div", { className: "relative aspect-[1200/630] w-full shrink-0 overflow-hidden rounded-sm bg-ods-bg", children: thumbnailUrl ? /* @__PURE__ */ jsxs16(Fragment7, { children: [
|
|
2573
|
+
/* @__PURE__ */ jsx24(
|
|
2507
2574
|
next_image_default,
|
|
2508
2575
|
{
|
|
2509
2576
|
src: thumbnailUrl,
|
|
@@ -2515,13 +2582,13 @@ function CustomerInterviewCard({
|
|
|
2515
2582
|
onError: hideOnError
|
|
2516
2583
|
}
|
|
2517
2584
|
),
|
|
2518
|
-
interview.main_video_url && /* @__PURE__ */
|
|
2519
|
-
] }) : /* @__PURE__ */
|
|
2520
|
-
/* @__PURE__ */
|
|
2521
|
-
interview.video_summary && /* @__PURE__ */
|
|
2522
|
-
/* @__PURE__ */
|
|
2585
|
+
interview.main_video_url && /* @__PURE__ */ jsx24("div", { className: "absolute inset-0 flex items-center justify-center bg-black/40", children: /* @__PURE__ */ jsx24("div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-ods-accent/90", children: /* @__PURE__ */ jsx24(Video, { className: "h-8 w-8 text-ods-text-on-accent" }) }) })
|
|
2586
|
+
] }) : /* @__PURE__ */ jsx24("div", { className: "flex h-full w-full items-center justify-center bg-ods-bg", children: /* @__PURE__ */ jsx24(Video, { className: "h-12 w-12 text-ods-text-secondary" }) }) }),
|
|
2587
|
+
/* @__PURE__ */ jsx24("div", { className: "shrink-0", children: /* @__PURE__ */ jsx24("h3", { className: "line-clamp-2 break-words text-ods-text-primary text-h3", children: interview.title }) }),
|
|
2588
|
+
interview.video_summary && /* @__PURE__ */ jsx24("div", { className: "shrink-0", children: /* @__PURE__ */ jsx24("p", { className: "line-clamp-3 text-ods-text-secondary text-h6", children: interview.video_summary }) }),
|
|
2589
|
+
/* @__PURE__ */ jsx24("div", { className: "mt-auto flex h-[60px] shrink-0 items-center", children: /* @__PURE__ */ jsxs16("div", { className: "flex w-full min-w-0 items-center gap-3", children: [
|
|
2523
2590
|
/* @__PURE__ */ jsxs16("div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2524
|
-
interview.user?.avatar_url ? /* @__PURE__ */
|
|
2591
|
+
interview.user?.avatar_url ? /* @__PURE__ */ jsx24(
|
|
2525
2592
|
next_image_default,
|
|
2526
2593
|
{
|
|
2527
2594
|
src: interview.user.avatar_url,
|
|
@@ -2531,8 +2598,8 @@ function CustomerInterviewCard({
|
|
|
2531
2598
|
height: 48,
|
|
2532
2599
|
unoptimized: true
|
|
2533
2600
|
}
|
|
2534
|
-
) : /* @__PURE__ */
|
|
2535
|
-
interview.msp?.icon_url && /* @__PURE__ */
|
|
2601
|
+
) : /* @__PURE__ */ jsx24("div", { className: "flex h-12 w-12 items-center justify-center rounded-full border border-ods-border bg-ods-bg", children: /* @__PURE__ */ jsx24("span", { className: "text-ods-text-secondary text-h4", children: (interview.user?.full_name || "A").charAt(0).toUpperCase() }) }),
|
|
2602
|
+
interview.msp?.icon_url && /* @__PURE__ */ jsx24("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__ */ jsx24(
|
|
2536
2603
|
next_image_default,
|
|
2537
2604
|
{
|
|
2538
2605
|
src: interview.msp.icon_url,
|
|
@@ -2552,7 +2619,7 @@ function CustomerInterviewCard({
|
|
|
2552
2619
|
interview.msp.name
|
|
2553
2620
|
] })
|
|
2554
2621
|
] }),
|
|
2555
|
-
/* @__PURE__ */
|
|
2622
|
+
/* @__PURE__ */ jsx24("p", { className: "truncate text-ods-text-secondary text-h6", children: interview.user?.job_title || " " })
|
|
2556
2623
|
] })
|
|
2557
2624
|
] }) })
|
|
2558
2625
|
] }) });
|
|
@@ -2574,28 +2641,28 @@ function formatInvestorUpdatePeriod(start, end, options) {
|
|
|
2574
2641
|
|
|
2575
2642
|
// src/components/chat/entity-cards/investor-update-card.tsx
|
|
2576
2643
|
import { Calendar } from "lucide-react";
|
|
2577
|
-
import { jsx as
|
|
2644
|
+
import { jsx as jsx25, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2578
2645
|
function InvestorUpdateCardSkeleton({ size = "default" }) {
|
|
2579
2646
|
if (size === "sm") {
|
|
2580
2647
|
return /* @__PURE__ */ jsxs17("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
2581
|
-
/* @__PURE__ */
|
|
2648
|
+
/* @__PURE__ */ jsx25("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
2582
2649
|
/* @__PURE__ */ jsxs17("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2583
2650
|
/* @__PURE__ */ jsxs17("span", { className: `${COMPACT_CARD_TITLE_ROW} flex-nowrap gap-2`, children: [
|
|
2584
|
-
/* @__PURE__ */
|
|
2585
|
-
/* @__PURE__ */
|
|
2651
|
+
/* @__PURE__ */ jsx25("span", { className: "h-3.5 w-1/2 rounded bg-ods-bg" }),
|
|
2652
|
+
/* @__PURE__ */ jsx25("span", { className: "h-4 w-8 shrink-0 rounded bg-ods-bg/70" })
|
|
2586
2653
|
] }),
|
|
2587
|
-
/* @__PURE__ */
|
|
2588
|
-
/* @__PURE__ */
|
|
2654
|
+
/* @__PURE__ */ jsx25("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx25("span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) }),
|
|
2655
|
+
/* @__PURE__ */ jsx25("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx25("span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
2589
2656
|
] })
|
|
2590
2657
|
] });
|
|
2591
2658
|
}
|
|
2592
2659
|
return /* @__PURE__ */ jsxs17("div", { className: "h-full animate-pulse overflow-hidden rounded-lg border border-ods-border bg-ods-card", children: [
|
|
2593
|
-
/* @__PURE__ */
|
|
2660
|
+
/* @__PURE__ */ jsx25("div", { className: "aspect-[1200/630] bg-ods-bg" }),
|
|
2594
2661
|
/* @__PURE__ */ jsxs17("div", { className: "space-y-3 p-4", children: [
|
|
2595
|
-
/* @__PURE__ */
|
|
2596
|
-
/* @__PURE__ */
|
|
2597
|
-
/* @__PURE__ */
|
|
2598
|
-
/* @__PURE__ */
|
|
2662
|
+
/* @__PURE__ */ jsx25("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
2663
|
+
/* @__PURE__ */ jsx25("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
2664
|
+
/* @__PURE__ */ jsx25("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" }),
|
|
2665
|
+
/* @__PURE__ */ jsx25("div", { className: "h-4 w-1/3 rounded bg-ods-bg/60" })
|
|
2599
2666
|
] })
|
|
2600
2667
|
] });
|
|
2601
2668
|
}
|
|
@@ -2625,7 +2692,7 @@ function InvestorUpdateCard({
|
|
|
2625
2692
|
if (size === "sm") {
|
|
2626
2693
|
const periodText = formatInvestorUpdatePeriod(update.period_start, update.period_end);
|
|
2627
2694
|
return /* @__PURE__ */ jsxs17("a", { href, target, rel, className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: [
|
|
2628
|
-
/* @__PURE__ */
|
|
2695
|
+
/* @__PURE__ */ jsx25("span", { className: COMPACT_CARD_IMAGE_SLOT, children: coverImage ? /* @__PURE__ */ jsx25(
|
|
2629
2696
|
next_image_default,
|
|
2630
2697
|
{
|
|
2631
2698
|
src: coverImage,
|
|
@@ -2639,23 +2706,23 @@ function InvestorUpdateCard({
|
|
|
2639
2706
|
img.style.display = "none";
|
|
2640
2707
|
}
|
|
2641
2708
|
}
|
|
2642
|
-
) : /* @__PURE__ */
|
|
2709
|
+
) : /* @__PURE__ */ jsx25("span", { className: "flex h-full w-full items-center justify-center text-ods-accent", children: /* @__PURE__ */ jsx25(Calendar, { className: "h-4 w-4" }) }) }),
|
|
2643
2710
|
/* @__PURE__ */ jsxs17("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2644
2711
|
/* @__PURE__ */ jsxs17("span", { className: `${COMPACT_CARD_TITLE_ROW} gap-2`, children: [
|
|
2645
|
-
/* @__PURE__ */
|
|
2712
|
+
/* @__PURE__ */ jsx25("span", { className: `${COMPACT_CARD_TITLE} min-w-0`, children: update.title || `Update #${update.update_number ?? "?"}` }),
|
|
2646
2713
|
update.update_number ? /* @__PURE__ */ jsxs17("span", { className: "shrink-0 rounded bg-ods-accent/10 px-1.5 py-0.5 text-ods-accent text-h6", children: [
|
|
2647
2714
|
"#",
|
|
2648
2715
|
update.update_number
|
|
2649
2716
|
] }) : null
|
|
2650
2717
|
] }),
|
|
2651
|
-
/* @__PURE__ */
|
|
2652
|
-
/* @__PURE__ */
|
|
2718
|
+
/* @__PURE__ */ jsx25("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx25("span", { className: COMPACT_CARD_SUBTITLE, children: periodText || "Investor update" }) }),
|
|
2719
|
+
/* @__PURE__ */ jsx25("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx25("span", { className: COMPACT_CARD_SUMMARY, children: (update.strategic_update || update.content || "").slice(0, 120) || COMPACT_CARD_ROW_FILLER }) })
|
|
2653
2720
|
] })
|
|
2654
2721
|
] });
|
|
2655
2722
|
}
|
|
2656
2723
|
if (size === "portrait") {
|
|
2657
2724
|
const periodText = formatInvestorUpdatePeriod(update.period_start, update.period_end);
|
|
2658
|
-
return /* @__PURE__ */
|
|
2725
|
+
return /* @__PURE__ */ jsx25(
|
|
2659
2726
|
EntityPortraitCard,
|
|
2660
2727
|
{
|
|
2661
2728
|
href,
|
|
@@ -2671,7 +2738,7 @@ function InvestorUpdateCard({
|
|
|
2671
2738
|
}
|
|
2672
2739
|
);
|
|
2673
2740
|
}
|
|
2674
|
-
return /* @__PURE__ */
|
|
2741
|
+
return /* @__PURE__ */ jsx25("a", { href, target, rel, className: `block h-full ${className ?? ""}`, children: /* @__PURE__ */ jsx25(
|
|
2675
2742
|
AdminContentCard,
|
|
2676
2743
|
{
|
|
2677
2744
|
imageUrl: update.featured_image,
|
|
@@ -2683,8 +2750,8 @@ function InvestorUpdateCard({
|
|
|
2683
2750
|
update.update_number
|
|
2684
2751
|
] }) : void 0,
|
|
2685
2752
|
meta: update.period_start || update.period_end ? /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-1", children: [
|
|
2686
|
-
/* @__PURE__ */
|
|
2687
|
-
/* @__PURE__ */
|
|
2753
|
+
/* @__PURE__ */ jsx25(Calendar, { className: "h-3 w-3" }),
|
|
2754
|
+
/* @__PURE__ */ jsx25("span", { children: formatInvestorUpdatePeriod(update.period_start, update.period_end) })
|
|
2688
2755
|
] }) : void 0
|
|
2689
2756
|
}
|
|
2690
2757
|
) });
|
|
@@ -2692,7 +2759,7 @@ function InvestorUpdateCard({
|
|
|
2692
2759
|
|
|
2693
2760
|
// src/components/chat/entity-cards/onboarding-guide-card.tsx
|
|
2694
2761
|
import { Clock, ExternalLink, GraduationCap, Play as Play2 } from "lucide-react";
|
|
2695
|
-
import { jsx as
|
|
2762
|
+
import { jsx as jsx26, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2696
2763
|
function stripMarkdownPreview(text) {
|
|
2697
2764
|
return text.replace(/```[\s\S]*?```/g, " ").replace(/^#{1,6}\s+/gm, "").replace(/!?\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/[*_~`>]/g, "").replace(/^\s*[-+]\s+/gm, "").replace(/-{3,}/g, " ").replace(/\s+/g, " ").trim().replace(/^([\s\S]{240})[\s\S]+$/, "$1\u2026");
|
|
2698
2765
|
}
|
|
@@ -2708,35 +2775,35 @@ function OnboardingGuideCardSkeleton({ size = "default" }) {
|
|
|
2708
2775
|
if (size === "catalog") {
|
|
2709
2776
|
return /* @__PURE__ */ jsxs18("div", { className: "flex animate-pulse flex-col gap-4 overflow-hidden rounded-lg border border-ods-border bg-ods-card p-6", children: [
|
|
2710
2777
|
/* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-4 md:flex-row md:gap-6", children: [
|
|
2711
|
-
/* @__PURE__ */
|
|
2778
|
+
/* @__PURE__ */ jsx26("div", { className: "aspect-[1200/630] w-full flex-shrink-0 rounded-lg bg-ods-border md:w-[256px]" }),
|
|
2712
2779
|
/* @__PURE__ */ jsxs18("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
2713
2780
|
/* @__PURE__ */ jsxs18("div", { className: "mb-3 flex min-h-[60px] flex-col justify-start gap-1.5 md:min-h-[72px]", children: [
|
|
2714
|
-
/* @__PURE__ */
|
|
2715
|
-
/* @__PURE__ */
|
|
2781
|
+
/* @__PURE__ */ jsx26("div", { className: "h-[25px] w-3/4 rounded bg-ods-border md:h-[30px]" }),
|
|
2782
|
+
/* @__PURE__ */ jsx26("div", { className: "h-[25px] w-1/2 rounded bg-ods-border md:h-[30px]" })
|
|
2716
2783
|
] }),
|
|
2717
2784
|
/* @__PURE__ */ jsxs18("div", { className: "flex min-h-[46px] flex-col justify-start gap-2 md:min-h-[52px]", children: [
|
|
2718
|
-
/* @__PURE__ */
|
|
2719
|
-
/* @__PURE__ */
|
|
2785
|
+
/* @__PURE__ */ jsx26("div", { className: "h-3 w-full rounded bg-ods-border/70" }),
|
|
2786
|
+
/* @__PURE__ */ jsx26("div", { className: "h-3 w-5/6 rounded bg-ods-border/70" })
|
|
2720
2787
|
] })
|
|
2721
2788
|
] })
|
|
2722
2789
|
] }),
|
|
2723
2790
|
/* @__PURE__ */ jsxs18("div", { className: "grid w-full grid-cols-1 overflow-hidden rounded-md border border-ods-border md:grid-cols-3", children: [
|
|
2724
|
-
[0, 1].map((i) => /* @__PURE__ */
|
|
2791
|
+
[0, 1].map((i) => /* @__PURE__ */ jsx26(
|
|
2725
2792
|
"div",
|
|
2726
2793
|
{
|
|
2727
2794
|
className: "flex flex-col gap-3 border-b border-ods-border bg-ods-card p-4 md:border-b-0 md:border-r",
|
|
2728
2795
|
children: /* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-2", children: [
|
|
2729
|
-
/* @__PURE__ */
|
|
2730
|
-
/* @__PURE__ */
|
|
2796
|
+
/* @__PURE__ */ jsx26("div", { className: "h-6 w-32 rounded bg-ods-bg" }),
|
|
2797
|
+
/* @__PURE__ */ jsx26("div", { className: "h-3 w-20 rounded bg-ods-bg/60" })
|
|
2731
2798
|
] })
|
|
2732
2799
|
},
|
|
2733
2800
|
`cell-${i}`
|
|
2734
2801
|
)),
|
|
2735
2802
|
/* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-3 bg-ods-card p-4", children: [
|
|
2736
|
-
/* @__PURE__ */
|
|
2803
|
+
/* @__PURE__ */ jsx26("div", { className: "h-10 w-10 shrink-0 rounded-full bg-ods-bg" }),
|
|
2737
2804
|
/* @__PURE__ */ jsxs18("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
2738
|
-
/* @__PURE__ */
|
|
2739
|
-
/* @__PURE__ */
|
|
2805
|
+
/* @__PURE__ */ jsx26("div", { className: "h-4 w-3/4 rounded bg-ods-bg" }),
|
|
2806
|
+
/* @__PURE__ */ jsx26("div", { className: "h-3 w-1/2 rounded bg-ods-bg/60" })
|
|
2740
2807
|
] })
|
|
2741
2808
|
] })
|
|
2742
2809
|
] })
|
|
@@ -2744,13 +2811,13 @@ function OnboardingGuideCardSkeleton({ size = "default" }) {
|
|
|
2744
2811
|
}
|
|
2745
2812
|
if (size === "sm") {
|
|
2746
2813
|
return /* @__PURE__ */ jsxs18("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
2747
|
-
/* @__PURE__ */
|
|
2814
|
+
/* @__PURE__ */ jsx26("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
2748
2815
|
/* @__PURE__ */ jsxs18("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2749
|
-
/* @__PURE__ */
|
|
2750
|
-
/* @__PURE__ */
|
|
2751
|
-
/* @__PURE__ */
|
|
2816
|
+
/* @__PURE__ */ jsx26("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx26("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
2817
|
+
/* @__PURE__ */ jsx26("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx26("span", { className: "h-3 w-2/5 rounded bg-ods-bg/70" }) }),
|
|
2818
|
+
/* @__PURE__ */ jsx26("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx26("span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
2752
2819
|
] }),
|
|
2753
|
-
/* @__PURE__ */
|
|
2820
|
+
/* @__PURE__ */ jsx26("span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ jsx26("span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
2754
2821
|
] });
|
|
2755
2822
|
}
|
|
2756
2823
|
const t = HORIZONTAL_SIZE_TOKENS.default;
|
|
@@ -2759,11 +2826,11 @@ function OnboardingGuideCardSkeleton({ size = "default" }) {
|
|
|
2759
2826
|
{
|
|
2760
2827
|
className: `flex items-start gap-3 rounded-md border border-ods-border bg-ods-card ${t.padding} animate-pulse`,
|
|
2761
2828
|
children: [
|
|
2762
|
-
/* @__PURE__ */
|
|
2829
|
+
/* @__PURE__ */ jsx26("span", { className: `inline-flex shrink-0 items-center justify-center rounded-full bg-ods-bg ${t.step}` }),
|
|
2763
2830
|
/* @__PURE__ */ jsxs18("span", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
2764
|
-
/* @__PURE__ */
|
|
2765
|
-
/* @__PURE__ */
|
|
2766
|
-
/* @__PURE__ */
|
|
2831
|
+
/* @__PURE__ */ jsx26("span", { className: "block h-4 w-2/3 rounded bg-ods-bg" }),
|
|
2832
|
+
/* @__PURE__ */ jsx26("span", { className: "block h-3 w-1/3 rounded bg-ods-bg/70" }),
|
|
2833
|
+
/* @__PURE__ */ jsx26("span", { className: "block h-3 w-full rounded bg-ods-bg/40" })
|
|
2767
2834
|
] })
|
|
2768
2835
|
]
|
|
2769
2836
|
}
|
|
@@ -2793,7 +2860,7 @@ function OnboardingGuideCard({
|
|
|
2793
2860
|
});
|
|
2794
2861
|
if (size === "portrait") {
|
|
2795
2862
|
const coverImage = guide.featured_image || guide.main_video_thumbnail || guide.og_image_url || null;
|
|
2796
|
-
return /* @__PURE__ */
|
|
2863
|
+
return /* @__PURE__ */ jsx26(
|
|
2797
2864
|
EntityPortraitCard,
|
|
2798
2865
|
{
|
|
2799
2866
|
href,
|
|
@@ -2814,7 +2881,7 @@ function OnboardingGuideCard({
|
|
|
2814
2881
|
const hasVideoCover = !!(guide.main_video_thumbnail || guide.highlight_video_thumbnail);
|
|
2815
2882
|
const stepLabel = typeof guide.step_order === "number" ? String(guide.step_order).padStart(2, "0") : "\u2014";
|
|
2816
2883
|
const durationLabel = typeof guide.highlight_video_duration_ms === "number" && guide.highlight_video_duration_ms > 0 ? formatDurationMMSS(Math.floor(guide.highlight_video_duration_ms / 1e3)) : "";
|
|
2817
|
-
return /* @__PURE__ */
|
|
2884
|
+
return /* @__PURE__ */ jsx26(
|
|
2818
2885
|
next_link_default,
|
|
2819
2886
|
{
|
|
2820
2887
|
href,
|
|
@@ -2832,8 +2899,8 @@ function OnboardingGuideCard({
|
|
|
2832
2899
|
"aria-label": `Open ${guide.title}`,
|
|
2833
2900
|
children: /* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-4 p-6", children: [
|
|
2834
2901
|
/* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-4 md:flex-row md:gap-6", children: [
|
|
2835
|
-
/* @__PURE__ */
|
|
2836
|
-
coverImage ? /* @__PURE__ */
|
|
2902
|
+
/* @__PURE__ */ jsx26("div", { className: "w-full flex-shrink-0 md:w-[256px]", children: /* @__PURE__ */ jsxs18("div", { className: "relative aspect-[1200/630] w-full overflow-hidden rounded-lg bg-ods-bg", children: [
|
|
2903
|
+
coverImage ? /* @__PURE__ */ jsx26(
|
|
2837
2904
|
next_image_default,
|
|
2838
2905
|
{
|
|
2839
2906
|
src: coverImage,
|
|
@@ -2843,7 +2910,7 @@ function OnboardingGuideCard({
|
|
|
2843
2910
|
className: "object-cover",
|
|
2844
2911
|
unoptimized: true
|
|
2845
2912
|
}
|
|
2846
|
-
) : /* @__PURE__ */
|
|
2913
|
+
) : /* @__PURE__ */ jsx26(
|
|
2847
2914
|
BlogImagePlaceholder,
|
|
2848
2915
|
{
|
|
2849
2916
|
title: guide.title,
|
|
@@ -2851,18 +2918,18 @@ function OnboardingGuideCard({
|
|
|
2851
2918
|
className: "absolute inset-0"
|
|
2852
2919
|
}
|
|
2853
2920
|
),
|
|
2854
|
-
hasVideoCover && coverImage && /* @__PURE__ */
|
|
2921
|
+
hasVideoCover && coverImage && /* @__PURE__ */ jsx26("span", { className: "absolute inset-0 flex items-center justify-center bg-black/30", children: /* @__PURE__ */ jsx26(Play2, { className: "h-10 w-10 text-ods-text-on-dark", fill: "white" }) }),
|
|
2855
2922
|
durationLabel && /* @__PURE__ */ jsxs18("span", { className: "absolute bottom-2 right-2 inline-flex items-center gap-1 rounded bg-black/60 px-2 py-1 text-ods-text-on-dark text-code", children: [
|
|
2856
|
-
/* @__PURE__ */
|
|
2923
|
+
/* @__PURE__ */ jsx26(Clock, { className: "h-3 w-3" }),
|
|
2857
2924
|
durationLabel
|
|
2858
2925
|
] })
|
|
2859
2926
|
] }) }),
|
|
2860
2927
|
/* @__PURE__ */ jsxs18("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
2861
|
-
/* @__PURE__ */
|
|
2862
|
-
/* @__PURE__ */
|
|
2928
|
+
/* @__PURE__ */ jsx26("div", { className: "mb-3 flex min-h-[60px] items-start md:min-h-[72px]", children: /* @__PURE__ */ jsx26("h3", { className: "line-clamp-2 text-ods-text-primary text-h2", children: guide.title }) }),
|
|
2929
|
+
/* @__PURE__ */ jsx26("div", { className: "min-h-[46px] md:min-h-[52px]", children: /* @__PURE__ */ jsx26("p", { className: "line-clamp-2 text-ods-text-secondary text-h6", children: stripMarkdownPreview(guide.video_summary || guide.content || "") }) })
|
|
2863
2930
|
] })
|
|
2864
2931
|
] }),
|
|
2865
|
-
/* @__PURE__ */
|
|
2932
|
+
/* @__PURE__ */ jsx26(
|
|
2866
2933
|
EntityAuthorCard,
|
|
2867
2934
|
{
|
|
2868
2935
|
author: guide.author,
|
|
@@ -2892,15 +2959,15 @@ function OnboardingGuideCard({
|
|
|
2892
2959
|
);
|
|
2893
2960
|
return /* @__PURE__ */ jsxs18(next_link_default, { href, target, rel, prefetch: false, className: cn(COMPACT_CARD_OUTER, className), children: [
|
|
2894
2961
|
/* @__PURE__ */ jsxs18("span", { className: COMPACT_CARD_IMAGE_SLOT, children: [
|
|
2895
|
-
compactCover ? /* @__PURE__ */
|
|
2896
|
-
hasVideoCover && compactCover && /* @__PURE__ */
|
|
2962
|
+
compactCover ? /* @__PURE__ */ jsx26(next_image_default, { src: compactCover, alt: guide.title, fill: true, sizes: "56px", className: "object-contain", unoptimized: true }) : /* @__PURE__ */ jsx26("span", { className: "flex h-full w-full items-center justify-center text-ods-accent", children: /* @__PURE__ */ jsx26(GraduationCap, { className: "h-4 w-4" }) }),
|
|
2963
|
+
hasVideoCover && compactCover && /* @__PURE__ */ jsx26("span", { className: "absolute inset-0 flex items-center justify-center bg-black/30", children: /* @__PURE__ */ jsx26(Play2, { className: "h-4 w-4 text-ods-text-on-dark", fill: "white" }) })
|
|
2897
2964
|
] }),
|
|
2898
2965
|
/* @__PURE__ */ jsxs18("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2899
|
-
/* @__PURE__ */
|
|
2900
|
-
/* @__PURE__ */
|
|
2901
|
-
/* @__PURE__ */
|
|
2966
|
+
/* @__PURE__ */ jsx26("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx26("span", { className: cn(COMPACT_CARD_TITLE, "font-heading"), children: guide.title }) }),
|
|
2967
|
+
/* @__PURE__ */ jsx26("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx26("span", { className: "truncate text-ods-accent text-h6", children: subtitleParts.join(" \xB7 ") }) }),
|
|
2968
|
+
/* @__PURE__ */ jsx26("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx26("span", { className: COMPACT_CARD_SUMMARY, children: summary2 || COMPACT_CARD_ROW_FILLER }) })
|
|
2902
2969
|
] }),
|
|
2903
|
-
/* @__PURE__ */
|
|
2970
|
+
/* @__PURE__ */ jsx26("span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ jsx26(ExternalLink, { className: "h-3.5 w-3.5" }) })
|
|
2904
2971
|
] });
|
|
2905
2972
|
}
|
|
2906
2973
|
const t = HORIZONTAL_SIZE_TOKENS.default;
|
|
@@ -2917,7 +2984,7 @@ function OnboardingGuideCard({
|
|
|
2917
2984
|
className
|
|
2918
2985
|
),
|
|
2919
2986
|
children: [
|
|
2920
|
-
/* @__PURE__ */
|
|
2987
|
+
/* @__PURE__ */ jsx26(
|
|
2921
2988
|
"span",
|
|
2922
2989
|
{
|
|
2923
2990
|
className: `inline-flex shrink-0 items-center justify-center rounded-full bg-ods-accent/10 font-semibold text-ods-accent ${t.step}`,
|
|
@@ -2926,12 +2993,12 @@ function OnboardingGuideCard({
|
|
|
2926
2993
|
}
|
|
2927
2994
|
),
|
|
2928
2995
|
/* @__PURE__ */ jsxs18("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
2929
|
-
/* @__PURE__ */
|
|
2996
|
+
/* @__PURE__ */ jsx26("span", { className: `block ${t.title} truncate text-ods-text-primary`, children: guide.title }),
|
|
2930
2997
|
/* @__PURE__ */ jsxs18("span", { className: "inline-flex items-center gap-1 text-ods-text-secondary text-h6", children: [
|
|
2931
|
-
/* @__PURE__ */
|
|
2932
|
-
/* @__PURE__ */
|
|
2998
|
+
/* @__PURE__ */ jsx26(GraduationCap, { className: "h-3 w-3 shrink-0" }),
|
|
2999
|
+
/* @__PURE__ */ jsx26("span", { className: "truncate", children: guide.section })
|
|
2933
3000
|
] }),
|
|
2934
|
-
summary && /* @__PURE__ */
|
|
3001
|
+
summary && /* @__PURE__ */ jsx26("span", { className: `text-ods-text-secondary text-h6 ${t.summaryClamp}`, children: summary })
|
|
2935
3002
|
] })
|
|
2936
3003
|
]
|
|
2937
3004
|
}
|
|
@@ -2939,7 +3006,7 @@ function OnboardingGuideCard({
|
|
|
2939
3006
|
}
|
|
2940
3007
|
|
|
2941
3008
|
// src/components/ui/avatar-stack.tsx
|
|
2942
|
-
import { jsx as
|
|
3009
|
+
import { jsx as jsx27, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2943
3010
|
var SIZE_PX = { xs: 24, sm: 32, md: 40, lg: 48 };
|
|
2944
3011
|
var OVERLAP_PX = { xs: 8, sm: 12, md: 12, lg: 12 };
|
|
2945
3012
|
var OVERFLOW_CIRCLE_SIZE = {
|
|
@@ -2970,7 +3037,7 @@ function AvatarStack({
|
|
|
2970
3037
|
role: "group",
|
|
2971
3038
|
"aria-label": `${label}: ${people.map((p) => p.name).join(", ")}`,
|
|
2972
3039
|
children: [
|
|
2973
|
-
visible.map((person, i) => /* @__PURE__ */
|
|
3040
|
+
visible.map((person, i) => /* @__PURE__ */ jsx27(
|
|
2974
3041
|
SquareAvatar,
|
|
2975
3042
|
{
|
|
2976
3043
|
variant: "round",
|
|
@@ -3094,7 +3161,7 @@ function getTaskTypeLabel(customItemId) {
|
|
|
3094
3161
|
}
|
|
3095
3162
|
|
|
3096
3163
|
// src/components/chat/entity-cards/roadmap-vote-button.tsx
|
|
3097
|
-
import { jsx as
|
|
3164
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3098
3165
|
function RoadmapVoteButton({
|
|
3099
3166
|
voteType,
|
|
3100
3167
|
count,
|
|
@@ -3106,13 +3173,13 @@ function RoadmapVoteButton({
|
|
|
3106
3173
|
className
|
|
3107
3174
|
}) {
|
|
3108
3175
|
const Icon = voteType === "up" ? ThumbsUpIcon : ThumbsDownIcon;
|
|
3109
|
-
return /* @__PURE__ */
|
|
3176
|
+
return /* @__PURE__ */ jsx28(
|
|
3110
3177
|
Button,
|
|
3111
3178
|
{
|
|
3112
3179
|
variant: "outline",
|
|
3113
3180
|
onClick,
|
|
3114
3181
|
disabled,
|
|
3115
|
-
leftIcon: /* @__PURE__ */
|
|
3182
|
+
leftIcon: /* @__PURE__ */ jsx28(Icon, { className: "h-5 w-5", color }),
|
|
3116
3183
|
className: cn(
|
|
3117
3184
|
className,
|
|
3118
3185
|
"flex h-full items-center justify-center gap-[2px] border-0 border-ods-border bg-ods-bg p-[12px]",
|
|
@@ -3120,7 +3187,7 @@ function RoadmapVoteButton({
|
|
|
3120
3187
|
"transition-all hover:bg-ods-border",
|
|
3121
3188
|
isActive && "bg-ods-border"
|
|
3122
3189
|
),
|
|
3123
|
-
children: showCount && /* @__PURE__ */
|
|
3190
|
+
children: showCount && /* @__PURE__ */ jsx28("span", { className: "text-h6", children: count })
|
|
3124
3191
|
}
|
|
3125
3192
|
);
|
|
3126
3193
|
}
|
|
@@ -3141,7 +3208,7 @@ import {
|
|
|
3141
3208
|
Repeat,
|
|
3142
3209
|
Compass
|
|
3143
3210
|
} from "lucide-react";
|
|
3144
|
-
import { jsx as
|
|
3211
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
3145
3212
|
function iconFor(customItemId) {
|
|
3146
3213
|
switch (customItemId) {
|
|
3147
3214
|
case CUSTOM_ITEM_ID.BUG:
|
|
@@ -3177,51 +3244,51 @@ function iconFor(customItemId) {
|
|
|
3177
3244
|
}
|
|
3178
3245
|
function TaskTypeIcon({ customItemId, className = "h-5 w-5" }) {
|
|
3179
3246
|
const Icon = iconFor(customItemId);
|
|
3180
|
-
return /* @__PURE__ */
|
|
3247
|
+
return /* @__PURE__ */ jsx29(Icon, { className, "aria-hidden": "true" });
|
|
3181
3248
|
}
|
|
3182
3249
|
|
|
3183
3250
|
// src/components/chat/entity-cards/roadmap-card.tsx
|
|
3184
3251
|
import { ThumbsUp, ThumbsDown } from "lucide-react";
|
|
3185
3252
|
import { useState as useState5 } from "react";
|
|
3186
|
-
import { Fragment as Fragment8, jsx as
|
|
3253
|
+
import { Fragment as Fragment8, jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3187
3254
|
function RoadmapCardSkeleton({ size = "default" }) {
|
|
3188
3255
|
if (size === "sm") {
|
|
3189
3256
|
return /* @__PURE__ */ jsxs20("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
3190
|
-
/* @__PURE__ */
|
|
3257
|
+
/* @__PURE__ */ jsx30("span", { className: "block aspect-square h-12 w-12 shrink-0 self-start rounded-md border border-ods-border bg-ods-bg p-1.5" }),
|
|
3191
3258
|
/* @__PURE__ */ jsxs20("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
3192
3259
|
/* @__PURE__ */ jsxs20("span", { className: `${COMPACT_CARD_TITLE_ROW} flex-nowrap gap-2`, children: [
|
|
3193
|
-
/* @__PURE__ */
|
|
3194
|
-
/* @__PURE__ */
|
|
3260
|
+
/* @__PURE__ */ jsx30("span", { className: "h-3.5 w-1/2 rounded bg-ods-bg" }),
|
|
3261
|
+
/* @__PURE__ */ jsx30("span", { className: "h-4 w-12 shrink-0 rounded bg-ods-bg/70" })
|
|
3195
3262
|
] }),
|
|
3196
3263
|
/* @__PURE__ */ jsxs20("span", { className: `${COMPACT_CARD_META_ROW_BOX} flex-nowrap gap-2`, children: [
|
|
3197
|
-
/* @__PURE__ */
|
|
3198
|
-
/* @__PURE__ */
|
|
3199
|
-
/* @__PURE__ */
|
|
3264
|
+
/* @__PURE__ */ jsx30("span", { className: "h-3 w-2/5 flex-1 rounded bg-ods-bg/60" }),
|
|
3265
|
+
/* @__PURE__ */ jsx30("span", { className: "h-3 w-10 shrink-0 rounded bg-ods-bg/40" }),
|
|
3266
|
+
/* @__PURE__ */ jsx30("span", { className: "h-6 w-14 shrink-0 rounded-full bg-ods-bg/40" })
|
|
3200
3267
|
] }),
|
|
3201
|
-
/* @__PURE__ */
|
|
3268
|
+
/* @__PURE__ */ jsx30("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx30("span", { className: "h-3 w-5/6 rounded bg-ods-bg/40" }) })
|
|
3202
3269
|
] })
|
|
3203
3270
|
] });
|
|
3204
3271
|
}
|
|
3205
3272
|
return /* @__PURE__ */ jsxs20("div", { className: "flex h-full animate-pulse flex-col gap-4 rounded-[6px] border border-ods-border bg-ods-card p-[24px]", children: [
|
|
3206
3273
|
/* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-4", children: [
|
|
3207
|
-
/* @__PURE__ */
|
|
3274
|
+
/* @__PURE__ */ jsx30("div", { className: "h-16 w-16 flex-shrink-0 rounded-lg bg-ods-bg" }),
|
|
3208
3275
|
/* @__PURE__ */ jsxs20("div", { className: "flex-1 space-y-2", children: [
|
|
3209
|
-
/* @__PURE__ */
|
|
3210
|
-
/* @__PURE__ */
|
|
3276
|
+
/* @__PURE__ */ jsx30("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
3277
|
+
/* @__PURE__ */ jsx30("div", { className: "h-3 w-1/2 rounded bg-ods-bg/60" })
|
|
3211
3278
|
] }),
|
|
3212
|
-
/* @__PURE__ */
|
|
3279
|
+
/* @__PURE__ */ jsx30("div", { className: "h-6 w-16 rounded bg-ods-bg" })
|
|
3213
3280
|
] }),
|
|
3214
3281
|
/* @__PURE__ */ jsxs20("div", { className: "space-y-2", children: [
|
|
3215
|
-
/* @__PURE__ */
|
|
3216
|
-
/* @__PURE__ */
|
|
3217
|
-
/* @__PURE__ */
|
|
3282
|
+
/* @__PURE__ */ jsx30("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
3283
|
+
/* @__PURE__ */ jsx30("div", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }),
|
|
3284
|
+
/* @__PURE__ */ jsx30("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" })
|
|
3218
3285
|
] }),
|
|
3219
|
-
/* @__PURE__ */
|
|
3286
|
+
/* @__PURE__ */ jsx30("div", { className: "flex-1" }),
|
|
3220
3287
|
/* @__PURE__ */ jsxs20("div", { className: "flex items-center justify-between", children: [
|
|
3221
|
-
/* @__PURE__ */
|
|
3288
|
+
/* @__PURE__ */ jsx30("div", { className: "h-12 w-32 rounded bg-ods-bg" }),
|
|
3222
3289
|
/* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-2", children: [
|
|
3223
|
-
/* @__PURE__ */
|
|
3224
|
-
/* @__PURE__ */
|
|
3290
|
+
/* @__PURE__ */ jsx30("div", { className: "h-6 w-14 rounded-full bg-ods-bg/60" }),
|
|
3291
|
+
/* @__PURE__ */ jsx30("div", { className: "h-8 w-20 rounded bg-ods-bg" })
|
|
3225
3292
|
] })
|
|
3226
3293
|
] })
|
|
3227
3294
|
] });
|
|
@@ -3257,12 +3324,12 @@ function RoadmapCard({
|
|
|
3257
3324
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
3258
3325
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
3259
3326
|
const body = /* @__PURE__ */ jsxs20(Fragment8, { children: [
|
|
3260
|
-
/* @__PURE__ */
|
|
3327
|
+
/* @__PURE__ */ jsx30(
|
|
3261
3328
|
"span",
|
|
3262
3329
|
{
|
|
3263
3330
|
className: "flex aspect-square h-12 w-12 shrink-0 items-center justify-center self-start overflow-hidden rounded-md border border-ods-border bg-ods-bg p-1.5 text-ods-accent",
|
|
3264
3331
|
title: typeLabel ?? void 0,
|
|
3265
|
-
children: useTypeIcon ? /* @__PURE__ */
|
|
3332
|
+
children: useTypeIcon ? /* @__PURE__ */ jsx30(TaskTypeIcon, { customItemId: item.customItemId, className: "h-6 w-6" }) : iconSrc ? /* @__PURE__ */ jsx30(
|
|
3266
3333
|
next_image_default,
|
|
3267
3334
|
{
|
|
3268
3335
|
src: iconSrc,
|
|
@@ -3272,13 +3339,13 @@ function RoadmapCard({
|
|
|
3272
3339
|
unoptimized: true,
|
|
3273
3340
|
className: "h-8 w-8 object-contain"
|
|
3274
3341
|
}
|
|
3275
|
-
) : /* @__PURE__ */
|
|
3342
|
+
) : /* @__PURE__ */ jsx30("span", { className: "uppercase text-ods-text-secondary text-h6", children: item.title?.substring(0, 2) || "??" })
|
|
3276
3343
|
}
|
|
3277
3344
|
),
|
|
3278
3345
|
/* @__PURE__ */ jsxs20("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
3279
3346
|
/* @__PURE__ */ jsxs20("span", { className: `${COMPACT_CARD_TITLE_ROW} gap-2`, children: [
|
|
3280
|
-
/* @__PURE__ */
|
|
3281
|
-
item.status && item.status.trim().length > 0 ? /* @__PURE__ */
|
|
3347
|
+
/* @__PURE__ */ jsx30("span", { className: `${COMPACT_CARD_TITLE} min-w-0`, children: item.title }),
|
|
3348
|
+
item.status && item.status.trim().length > 0 ? /* @__PURE__ */ jsx30(
|
|
3282
3349
|
StatusBadge,
|
|
3283
3350
|
{
|
|
3284
3351
|
text: item.status.toUpperCase(),
|
|
@@ -3290,7 +3357,7 @@ function RoadmapCard({
|
|
|
3290
3357
|
) : null
|
|
3291
3358
|
] }),
|
|
3292
3359
|
/* @__PURE__ */ jsxs20("span", { className: `${COMPACT_CARD_META_ROW_BOX} gap-2 text-ods-text-secondary`, children: [
|
|
3293
|
-
/* @__PURE__ */
|
|
3360
|
+
/* @__PURE__ */ jsx30("span", { className: "min-w-0 flex-1 truncate text-h6", children: (() => {
|
|
3294
3361
|
const parts = [item.quarter, item.targetVersion ? `${item.targetVersion} version` : null].filter(
|
|
3295
3362
|
Boolean
|
|
3296
3363
|
);
|
|
@@ -3305,35 +3372,35 @@ function RoadmapCard({
|
|
|
3305
3372
|
})() }),
|
|
3306
3373
|
hasVotes ? /* @__PURE__ */ jsxs20("span", { className: "hidden shrink-0 items-center gap-2 text-ods-text-secondary text-h6 sm:flex", children: [
|
|
3307
3374
|
/* @__PURE__ */ jsxs20("span", { className: "flex items-center gap-0.5", children: [
|
|
3308
|
-
/* @__PURE__ */
|
|
3309
|
-
/* @__PURE__ */
|
|
3375
|
+
/* @__PURE__ */ jsx30(ThumbsUp, { className: "h-3 w-3" }),
|
|
3376
|
+
/* @__PURE__ */ jsx30("span", { children: item.upvotes ?? 0 })
|
|
3310
3377
|
] }),
|
|
3311
3378
|
/* @__PURE__ */ jsxs20("span", { className: "flex items-center gap-0.5", children: [
|
|
3312
|
-
/* @__PURE__ */
|
|
3313
|
-
/* @__PURE__ */
|
|
3379
|
+
/* @__PURE__ */ jsx30(ThumbsDown, { className: "h-3 w-3" }),
|
|
3380
|
+
/* @__PURE__ */ jsx30("span", { children: item.downvotes ?? 0 })
|
|
3314
3381
|
] })
|
|
3315
3382
|
] }) : null,
|
|
3316
|
-
hasFigma ? /* @__PURE__ */
|
|
3383
|
+
hasFigma ? /* @__PURE__ */ jsx30("span", { className: "hidden shrink-0 items-center sm:flex", title: "Has Figma prototype", children: /* @__PURE__ */ jsx30(FigmaIcon, { className: "h-3 w-3" }) }) : null,
|
|
3317
3384
|
hasScreenshots ? /* @__PURE__ */ jsxs20(
|
|
3318
3385
|
"span",
|
|
3319
3386
|
{
|
|
3320
3387
|
className: "hidden shrink-0 items-center gap-0.5 text-h6 sm:flex",
|
|
3321
3388
|
title: `${item.screenshots.length} screenshot${item.screenshots.length === 1 ? "" : "s"}`,
|
|
3322
3389
|
children: [
|
|
3323
|
-
/* @__PURE__ */
|
|
3324
|
-
/* @__PURE__ */
|
|
3390
|
+
/* @__PURE__ */ jsx30(ImageIcon, { className: "h-3 w-3" }),
|
|
3391
|
+
/* @__PURE__ */ jsx30("span", { children: item.screenshots.length })
|
|
3325
3392
|
]
|
|
3326
3393
|
}
|
|
3327
3394
|
) : null,
|
|
3328
|
-
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */
|
|
3395
|
+
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ jsx30(AvatarStack, { size: "xs", people: assigneePeople(item.assignees), className: "shrink-0" }) : null
|
|
3329
3396
|
] }),
|
|
3330
|
-
/* @__PURE__ */
|
|
3397
|
+
/* @__PURE__ */ jsx30("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx30("span", { className: COMPACT_CARD_SUMMARY, children: item.description || COMPACT_CARD_ROW_FILLER }) })
|
|
3331
3398
|
] })
|
|
3332
3399
|
] });
|
|
3333
3400
|
if (!compactHref) {
|
|
3334
|
-
return /* @__PURE__ */
|
|
3401
|
+
return /* @__PURE__ */ jsx30("span", { className: `${COMPACT_CARD_OUTER_STATIC} ${className ?? ""}`, "aria-label": "No link available", children: body });
|
|
3335
3402
|
}
|
|
3336
|
-
return /* @__PURE__ */
|
|
3403
|
+
return /* @__PURE__ */ jsx30("a", { href: compactHref, target, rel, className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: body });
|
|
3337
3404
|
}
|
|
3338
3405
|
return /* @__PURE__ */ jsxs20(
|
|
3339
3406
|
"div",
|
|
@@ -3342,7 +3409,7 @@ function RoadmapCard({
|
|
|
3342
3409
|
className: `flex h-full scroll-mt-24 flex-col gap-[16px] rounded-[6px] border border-ods-border bg-ods-card p-[24px] transition-all hover:border-ods-accent ${className ?? ""}`,
|
|
3343
3410
|
children: [
|
|
3344
3411
|
/* @__PURE__ */ jsxs20("div", { className: "flex w-full items-center gap-[16px]", children: [
|
|
3345
|
-
/* @__PURE__ */
|
|
3412
|
+
/* @__PURE__ */ jsx30("div", { className: "flex h-16 w-16 flex-shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg", children: iconSrc ? /* @__PURE__ */ jsx30(
|
|
3346
3413
|
next_image_default,
|
|
3347
3414
|
{
|
|
3348
3415
|
src: iconSrc,
|
|
@@ -3352,16 +3419,16 @@ function RoadmapCard({
|
|
|
3352
3419
|
unoptimized: true,
|
|
3353
3420
|
className: "object-contain p-1"
|
|
3354
3421
|
}
|
|
3355
|
-
) : /* @__PURE__ */
|
|
3422
|
+
) : /* @__PURE__ */ jsx30("span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: item.title?.substring(0, 2) || "??" }) }),
|
|
3356
3423
|
/* @__PURE__ */ jsxs20("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3357
|
-
/* @__PURE__ */
|
|
3358
|
-
/* @__PURE__ */
|
|
3424
|
+
/* @__PURE__ */ jsx30("div", { className: "flex min-h-[48px] items-center", children: /* @__PURE__ */ jsx30("h3", { className: "line-clamp-2 flex-1 text-ods-text-primary text-h3", children: item.title }) }),
|
|
3425
|
+
/* @__PURE__ */ jsx30("div", { className: "flex min-h-[20px] items-center", children: /* @__PURE__ */ jsxs20("p", { className: "truncate text-ods-text-secondary text-h5", children: [
|
|
3359
3426
|
item.quarter,
|
|
3360
3427
|
", ",
|
|
3361
3428
|
item.id
|
|
3362
3429
|
] }) })
|
|
3363
3430
|
] }),
|
|
3364
|
-
/* @__PURE__ */
|
|
3431
|
+
/* @__PURE__ */ jsx30("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx30(
|
|
3365
3432
|
StatusBadge,
|
|
3366
3433
|
{
|
|
3367
3434
|
text: item.status.toUpperCase(),
|
|
@@ -3370,7 +3437,7 @@ function RoadmapCard({
|
|
|
3370
3437
|
}
|
|
3371
3438
|
) })
|
|
3372
3439
|
] }),
|
|
3373
|
-
/* @__PURE__ */
|
|
3440
|
+
/* @__PURE__ */ jsx30("div", { className: "md:hidden", children: /* @__PURE__ */ jsx30(
|
|
3374
3441
|
StatusBadge,
|
|
3375
3442
|
{
|
|
3376
3443
|
text: item.status.toUpperCase(),
|
|
@@ -3378,11 +3445,11 @@ function RoadmapCard({
|
|
|
3378
3445
|
className: "border border-ods-border"
|
|
3379
3446
|
}
|
|
3380
3447
|
) }),
|
|
3381
|
-
/* @__PURE__ */
|
|
3382
|
-
/* @__PURE__ */
|
|
3448
|
+
/* @__PURE__ */ jsx30("div", { className: "flex min-h-[72px] items-center", children: /* @__PURE__ */ jsx30("p", { className: "line-clamp-3 text-ods-text-secondary text-h4", children: item.description || "" }) }),
|
|
3449
|
+
/* @__PURE__ */ jsx30("div", { className: "flex-1" }),
|
|
3383
3450
|
/* @__PURE__ */ jsxs20("div", { className: "flex w-full items-center justify-between", children: [
|
|
3384
3451
|
onVote && /* @__PURE__ */ jsxs20("div", { className: "flex h-[48px] overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", children: [
|
|
3385
|
-
/* @__PURE__ */
|
|
3452
|
+
/* @__PURE__ */ jsx30(
|
|
3386
3453
|
RoadmapVoteButton,
|
|
3387
3454
|
{
|
|
3388
3455
|
voteType: "up",
|
|
@@ -3394,7 +3461,7 @@ function RoadmapCard({
|
|
|
3394
3461
|
disabled: isVoting
|
|
3395
3462
|
}
|
|
3396
3463
|
),
|
|
3397
|
-
/* @__PURE__ */
|
|
3464
|
+
/* @__PURE__ */ jsx30(
|
|
3398
3465
|
RoadmapVoteButton,
|
|
3399
3466
|
{
|
|
3400
3467
|
voteType: "down",
|
|
@@ -3408,33 +3475,33 @@ function RoadmapCard({
|
|
|
3408
3475
|
)
|
|
3409
3476
|
] }),
|
|
3410
3477
|
/* @__PURE__ */ jsxs20("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
3411
|
-
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */
|
|
3412
|
-
item.screenshots && item.screenshots.length > 0 && /* @__PURE__ */
|
|
3478
|
+
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ jsx30(AvatarStack, { size: "xs", people: assigneePeople(item.assignees), className: "shrink-0" }) : null,
|
|
3479
|
+
item.screenshots && item.screenshots.length > 0 && /* @__PURE__ */ jsx30(
|
|
3413
3480
|
Button,
|
|
3414
3481
|
{
|
|
3415
3482
|
variant: "outline",
|
|
3416
3483
|
size: "small-legacy",
|
|
3417
3484
|
onClick: () => setShowScreenshots(true),
|
|
3418
|
-
leftIcon: /* @__PURE__ */
|
|
3485
|
+
leftIcon: /* @__PURE__ */ jsx30(ImageIcon, { className: "h-5 w-5" })
|
|
3419
3486
|
}
|
|
3420
3487
|
),
|
|
3421
3488
|
(() => {
|
|
3422
3489
|
const figmaSafe = safeHref(item.figmaUrl);
|
|
3423
|
-
return figmaSafe ? /* @__PURE__ */
|
|
3490
|
+
return figmaSafe ? /* @__PURE__ */ jsx30(
|
|
3424
3491
|
Button,
|
|
3425
3492
|
{
|
|
3426
3493
|
variant: "outline",
|
|
3427
3494
|
size: "small-legacy",
|
|
3428
3495
|
openInNewTab: true,
|
|
3429
3496
|
href: figmaSafe,
|
|
3430
|
-
leftIcon: /* @__PURE__ */
|
|
3497
|
+
leftIcon: /* @__PURE__ */ jsx30(FigmaIcon, { className: "h-5 w-5" })
|
|
3431
3498
|
}
|
|
3432
3499
|
) : null;
|
|
3433
3500
|
})(),
|
|
3434
|
-
item.targetVersion && /* @__PURE__ */
|
|
3501
|
+
item.targetVersion && /* @__PURE__ */ jsx30(StatusBadge, { gen: generationTierFromLabel(item.targetVersion), text: item.targetVersion })
|
|
3435
3502
|
] })
|
|
3436
3503
|
] }),
|
|
3437
|
-
item.screenshots && item.screenshots.length > 0 && /* @__PURE__ */
|
|
3504
|
+
item.screenshots && item.screenshots.length > 0 && /* @__PURE__ */ jsx30(
|
|
3438
3505
|
ImageGalleryModal,
|
|
3439
3506
|
{
|
|
3440
3507
|
images: item.screenshots,
|
|
@@ -3552,7 +3619,7 @@ function transformWebinarToProgram(webinar) {
|
|
|
3552
3619
|
import { format } from "date-fns";
|
|
3553
3620
|
import { ExternalLink as ExternalLink2, Clock as Clock2, Play as Play3, Video as Video2 } from "lucide-react";
|
|
3554
3621
|
import { useState as useState6 } from "react";
|
|
3555
|
-
import { Fragment as Fragment9, jsx as
|
|
3622
|
+
import { Fragment as Fragment9, jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3556
3623
|
function formatUtc(date, fmt) {
|
|
3557
3624
|
if (Number.isNaN(date.getTime())) return "";
|
|
3558
3625
|
return format(new Date(date.getTime() + date.getTimezoneOffset() * 6e4), fmt);
|
|
@@ -3560,13 +3627,13 @@ function formatUtc(date, fmt) {
|
|
|
3560
3627
|
function ProgramCardSkeleton({ size = "default" }) {
|
|
3561
3628
|
if (size === "sm") {
|
|
3562
3629
|
return /* @__PURE__ */ jsxs21("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
3563
|
-
/* @__PURE__ */
|
|
3630
|
+
/* @__PURE__ */ jsx31("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
3564
3631
|
/* @__PURE__ */ jsxs21("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
3565
|
-
/* @__PURE__ */
|
|
3566
|
-
/* @__PURE__ */
|
|
3567
|
-
/* @__PURE__ */
|
|
3632
|
+
/* @__PURE__ */ jsx31("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx31("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
3633
|
+
/* @__PURE__ */ jsx31("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx31("span", { className: "h-3 w-2/5 rounded bg-ods-bg/70" }) }),
|
|
3634
|
+
/* @__PURE__ */ jsx31("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx31("span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
3568
3635
|
] }),
|
|
3569
|
-
/* @__PURE__ */
|
|
3636
|
+
/* @__PURE__ */ jsx31("span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ jsx31("span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
3570
3637
|
] });
|
|
3571
3638
|
}
|
|
3572
3639
|
return /* @__PURE__ */ jsxs21(
|
|
@@ -3575,20 +3642,20 @@ function ProgramCardSkeleton({ size = "default" }) {
|
|
|
3575
3642
|
className: "flex animate-pulse flex-col overflow-hidden rounded-lg border border-ods-border",
|
|
3576
3643
|
style: { backgroundColor: "var(--ods-system-greys-black)" },
|
|
3577
3644
|
children: [
|
|
3578
|
-
/* @__PURE__ */
|
|
3579
|
-
/* @__PURE__ */
|
|
3645
|
+
/* @__PURE__ */ jsx31("div", { className: "flex-1 p-6", children: /* @__PURE__ */ jsxs21("div", { className: "flex flex-col gap-4 md:flex-row md:gap-6", children: [
|
|
3646
|
+
/* @__PURE__ */ jsx31("div", { className: "h-[180px] w-full flex-shrink-0 rounded-lg bg-ods-bg md:w-[180px]" }),
|
|
3580
3647
|
/* @__PURE__ */ jsxs21("div", { className: "flex min-w-0 flex-1 flex-col gap-3", children: [
|
|
3581
|
-
/* @__PURE__ */
|
|
3582
|
-
/* @__PURE__ */
|
|
3583
|
-
/* @__PURE__ */
|
|
3648
|
+
/* @__PURE__ */ jsx31("div", { className: "h-7 w-3/4 rounded bg-ods-bg" }),
|
|
3649
|
+
/* @__PURE__ */ jsx31("div", { className: "h-7 w-1/2 rounded bg-ods-bg" }),
|
|
3650
|
+
/* @__PURE__ */ jsx31("div", { className: "h-4 w-1/3 rounded bg-ods-bg/60" }),
|
|
3584
3651
|
/* @__PURE__ */ jsxs21("div", { className: "space-y-2", children: [
|
|
3585
|
-
/* @__PURE__ */
|
|
3586
|
-
/* @__PURE__ */
|
|
3587
|
-
/* @__PURE__ */
|
|
3652
|
+
/* @__PURE__ */ jsx31("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
3653
|
+
/* @__PURE__ */ jsx31("div", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }),
|
|
3654
|
+
/* @__PURE__ */ jsx31("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" })
|
|
3588
3655
|
] })
|
|
3589
3656
|
] })
|
|
3590
3657
|
] }) }),
|
|
3591
|
-
/* @__PURE__ */
|
|
3658
|
+
/* @__PURE__ */ jsx31("div", { className: "mt-auto p-6 pt-0", children: /* @__PURE__ */ jsx31("div", { className: "border-t border-ods-border pt-4", children: /* @__PURE__ */ jsx31("div", { className: "h-9 w-40 rounded bg-ods-bg" }) }) })
|
|
3592
3659
|
]
|
|
3593
3660
|
}
|
|
3594
3661
|
);
|
|
@@ -3642,13 +3709,13 @@ function MediaGallery({ images, title }) {
|
|
|
3642
3709
|
setSelectedImageIndex(null);
|
|
3643
3710
|
};
|
|
3644
3711
|
return /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
3645
|
-
/* @__PURE__ */
|
|
3712
|
+
/* @__PURE__ */ jsx31("div", { className: "p-6 pt-4", children: /* @__PURE__ */ jsx31("div", { className: "mb-4 overflow-x-auto", children: /* @__PURE__ */ jsx31("div", { className: "flex gap-3 pb-2", style: { width: "max-content" }, children: images.map((mediaItem, index) => /* @__PURE__ */ jsxs21(
|
|
3646
3713
|
"div",
|
|
3647
3714
|
{
|
|
3648
3715
|
className: "group/thumb relative h-24 w-24 flex-shrink-0 cursor-pointer overflow-hidden rounded-md",
|
|
3649
3716
|
onClick: (e) => openImageModal(index, e),
|
|
3650
3717
|
children: [
|
|
3651
|
-
/* @__PURE__ */
|
|
3718
|
+
/* @__PURE__ */ jsx31(
|
|
3652
3719
|
next_image_default,
|
|
3653
3720
|
{
|
|
3654
3721
|
src: mediaItem.media_url,
|
|
@@ -3660,12 +3727,12 @@ function MediaGallery({ images, title }) {
|
|
|
3660
3727
|
unoptimized: true
|
|
3661
3728
|
}
|
|
3662
3729
|
),
|
|
3663
|
-
/* @__PURE__ */
|
|
3730
|
+
/* @__PURE__ */ jsx31("div", { className: "absolute inset-0 flex items-center justify-center bg-black/20 opacity-0 transition-opacity duration-200 group-hover/thumb:opacity-100", children: /* @__PURE__ */ jsx31("div", { className: "flex h-6 w-6 items-center justify-center rounded-full bg-white/90", children: /* @__PURE__ */ jsx31("span", { className: "text-sm text-black", children: "+" }) }) })
|
|
3664
3731
|
]
|
|
3665
3732
|
},
|
|
3666
3733
|
mediaItem.id
|
|
3667
3734
|
)) }) }) }),
|
|
3668
|
-
/* @__PURE__ */
|
|
3735
|
+
/* @__PURE__ */ jsx31(
|
|
3669
3736
|
ImageGalleryModal,
|
|
3670
3737
|
{
|
|
3671
3738
|
images: images.map((img) => img.media_url),
|
|
@@ -3726,7 +3793,7 @@ function ProgramCard({
|
|
|
3726
3793
|
if (size === "portrait") {
|
|
3727
3794
|
const profile = programItemToStripProfile(item);
|
|
3728
3795
|
const dateMeta = [compactDate, compactTypeMeta()].filter(Boolean).join(" \xB7 ");
|
|
3729
|
-
return /* @__PURE__ */
|
|
3796
|
+
return /* @__PURE__ */ jsx31(
|
|
3730
3797
|
EntityPortraitCard,
|
|
3731
3798
|
{
|
|
3732
3799
|
href,
|
|
@@ -3752,15 +3819,15 @@ function ProgramCard({
|
|
|
3752
3819
|
);
|
|
3753
3820
|
return /* @__PURE__ */ jsxs21("a", { href, target, rel, className: cn(COMPACT_CARD_OUTER, className), children: [
|
|
3754
3821
|
/* @__PURE__ */ jsxs21("span", { className: COMPACT_CARD_IMAGE_SLOT, children: [
|
|
3755
|
-
compactCover ? /* @__PURE__ */
|
|
3756
|
-
config.type === "podcast" && !isScheduled && compactCover && /* @__PURE__ */
|
|
3822
|
+
compactCover ? /* @__PURE__ */ jsx31(next_image_default, { src: compactCover, alt: item.title, fill: true, sizes: "56px", className: "object-contain", unoptimized: true }) : /* @__PURE__ */ jsx31("span", { className: "flex h-full w-full items-center justify-center text-ods-accent", children: config.type === "podcast" ? /* @__PURE__ */ jsx31(Play3, { className: "h-4 w-4" }) : config.type === "webinar" ? /* @__PURE__ */ jsx31(Video2, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx31(Clock2, { className: "h-4 w-4" }) }),
|
|
3823
|
+
config.type === "podcast" && !isScheduled && compactCover && /* @__PURE__ */ jsx31("span", { className: "absolute inset-0 flex items-center justify-center bg-black/30", children: /* @__PURE__ */ jsx31(Play3, { className: "h-4 w-4 text-ods-text-on-dark", fill: "white" }) })
|
|
3757
3824
|
] }),
|
|
3758
3825
|
/* @__PURE__ */ jsxs21("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
3759
|
-
/* @__PURE__ */
|
|
3760
|
-
/* @__PURE__ */
|
|
3761
|
-
/* @__PURE__ */
|
|
3826
|
+
/* @__PURE__ */ jsx31("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx31("span", { className: cn(COMPACT_CARD_TITLE, "font-heading"), children: item.title }) }),
|
|
3827
|
+
/* @__PURE__ */ jsx31("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx31("span", { className: "truncate text-ods-accent text-h6", children: subtitleParts.join(" \xB7 ") }) }),
|
|
3828
|
+
/* @__PURE__ */ jsx31("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx31("span", { className: COMPACT_CARD_SUMMARY, children: item.description || COMPACT_CARD_ROW_FILLER }) })
|
|
3762
3829
|
] }),
|
|
3763
|
-
/* @__PURE__ */
|
|
3830
|
+
/* @__PURE__ */ jsx31("span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ jsx31(ExternalLink2, { className: "h-3.5 w-3.5" }) })
|
|
3764
3831
|
] });
|
|
3765
3832
|
}
|
|
3766
3833
|
const itemDate = new Date(item.date);
|
|
@@ -3769,19 +3836,19 @@ function ProgramCard({
|
|
|
3769
3836
|
if (config.type === "podcast" && "duration_seconds" in item && !isScheduled) {
|
|
3770
3837
|
const dur = item.duration_seconds;
|
|
3771
3838
|
return /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
3772
|
-
/* @__PURE__ */
|
|
3773
|
-
/* @__PURE__ */
|
|
3839
|
+
/* @__PURE__ */ jsx31(Clock2, { className: "h-4 w-4 text-ods-text-secondary" }),
|
|
3840
|
+
/* @__PURE__ */ jsx31("span", { className: "font-body text-ods-text-secondary", children: formatDurationCompact(typeof dur === "number" ? dur : null) })
|
|
3774
3841
|
] });
|
|
3775
3842
|
}
|
|
3776
3843
|
if (config.type === "event" && "location_name" in item) {
|
|
3777
3844
|
const loc = item.location_name;
|
|
3778
|
-
return /* @__PURE__ */
|
|
3845
|
+
return /* @__PURE__ */ jsx31("span", { className: "font-body text-ods-text-secondary", children: typeof loc === "string" && loc || "Location TBD" });
|
|
3779
3846
|
}
|
|
3780
3847
|
if (config.type === "webinar" && "start_at" in item) {
|
|
3781
3848
|
const { startAt, endAt, timezone } = webinarTiming(item);
|
|
3782
3849
|
const duration = formatDurationFromRange(startAt, endAt);
|
|
3783
3850
|
return /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
3784
|
-
/* @__PURE__ */
|
|
3851
|
+
/* @__PURE__ */ jsx31(Video2, { className: "h-4 w-4 text-ods-text-secondary" }),
|
|
3785
3852
|
/* @__PURE__ */ jsxs21("span", { className: "font-body text-ods-text-secondary", children: [
|
|
3786
3853
|
formatTimeWithTimezone(startAt, timezone),
|
|
3787
3854
|
duration && ` \xB7 ${duration}`
|
|
@@ -3795,9 +3862,9 @@ function ProgramCard({
|
|
|
3795
3862
|
}
|
|
3796
3863
|
return null;
|
|
3797
3864
|
};
|
|
3798
|
-
const cardHeader = /* @__PURE__ */
|
|
3799
|
-
coverImage && /* @__PURE__ */
|
|
3800
|
-
/* @__PURE__ */
|
|
3865
|
+
const cardHeader = /* @__PURE__ */ jsx31("div", { className: "flex-1 border-ods-border p-6", children: /* @__PURE__ */ jsxs21("div", { className: "flex flex-col gap-4 md:flex-row md:gap-6", children: [
|
|
3866
|
+
coverImage && /* @__PURE__ */ jsx31("div", { className: "flex w-full flex-shrink-0 items-center md:w-[180px]", children: /* @__PURE__ */ jsxs21("div", { className: "relative overflow-hidden rounded-lg", children: [
|
|
3867
|
+
/* @__PURE__ */ jsx31(
|
|
3801
3868
|
next_image_default,
|
|
3802
3869
|
{
|
|
3803
3870
|
src: coverImage,
|
|
@@ -3808,23 +3875,23 @@ function ProgramCard({
|
|
|
3808
3875
|
unoptimized: true
|
|
3809
3876
|
}
|
|
3810
3877
|
),
|
|
3811
|
-
config.type === "podcast" && !isScheduled && /* @__PURE__ */
|
|
3878
|
+
config.type === "podcast" && !isScheduled && /* @__PURE__ */ jsx31("div", { className: "absolute inset-0 flex items-center justify-center rounded-lg bg-black/40 opacity-0 transition-opacity group-hover:opacity-100", children: /* @__PURE__ */ jsx31(Play3, { className: "h-10 w-10 text-ods-text-on-dark", fill: "white" }) })
|
|
3812
3879
|
] }) }),
|
|
3813
3880
|
/* @__PURE__ */ jsxs21("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3814
|
-
/* @__PURE__ */
|
|
3881
|
+
/* @__PURE__ */ jsx31("h3", { className: "mb-3 line-clamp-2 flex min-h-[3rem] items-center text-ods-text-primary text-h2 md:min-h-[3.5rem]", children: item.title }),
|
|
3815
3882
|
/* @__PURE__ */ jsxs21("div", { className: "mb-4 flex flex-col gap-2 md:flex-row md:items-center md:gap-4", children: [
|
|
3816
|
-
/* @__PURE__ */
|
|
3883
|
+
/* @__PURE__ */ jsx31("span", { className: "text-h6", style: { color: accentColor }, children: dateFormat }),
|
|
3817
3884
|
renderMeta ? /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
3818
|
-
/* @__PURE__ */
|
|
3885
|
+
/* @__PURE__ */ jsx31("span", { className: "hidden text-ods-text-secondary md:inline", children: "\u2022" }),
|
|
3819
3886
|
renderMeta(item)
|
|
3820
3887
|
] }) : defaultRenderMeta() && /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
3821
|
-
/* @__PURE__ */
|
|
3822
|
-
/* @__PURE__ */
|
|
3888
|
+
/* @__PURE__ */ jsx31("span", { className: "hidden text-ods-text-secondary md:inline", children: "\u2022" }),
|
|
3889
|
+
/* @__PURE__ */ jsx31("div", { className: "flex items-center gap-2", children: defaultRenderMeta() })
|
|
3823
3890
|
] })
|
|
3824
3891
|
] }),
|
|
3825
|
-
/* @__PURE__ */
|
|
3892
|
+
/* @__PURE__ */ jsx31("div", { className: "flex-1", children: /* @__PURE__ */ jsx31("p", { className: "line-clamp-3 min-h-[4.5rem] text-ods-text-secondary text-h6", children: item.description }) })
|
|
3826
3893
|
] }),
|
|
3827
|
-
hosts.length > 0 && /* @__PURE__ */
|
|
3894
|
+
hosts.length > 0 && /* @__PURE__ */ jsx31("div", { className: "md:text-right", children: /* @__PURE__ */ jsx31("div", { className: "flex flex-wrap gap-2 md:justify-end", children: hosts.map((host, index) => /* @__PURE__ */ jsx31(
|
|
3828
3895
|
SquareAvatar,
|
|
3829
3896
|
{
|
|
3830
3897
|
variant: "round",
|
|
@@ -3853,8 +3920,8 @@ function ProgramCard({
|
|
|
3853
3920
|
"aria-label": `Open ${item.title}`,
|
|
3854
3921
|
children: [
|
|
3855
3922
|
cardHeader,
|
|
3856
|
-
images.length > 0 && /* @__PURE__ */
|
|
3857
|
-
/* @__PURE__ */
|
|
3923
|
+
images.length > 0 && /* @__PURE__ */ jsx31(MediaGallery, { images, title: item.title }),
|
|
3924
|
+
/* @__PURE__ */ jsx31("div", { className: "mt-auto p-6 pt-0", children: /* @__PURE__ */ jsx31("div", { className: "border-t border-ods-border pt-4", children: /* @__PURE__ */ jsxs21(
|
|
3858
3925
|
"span",
|
|
3859
3926
|
{
|
|
3860
3927
|
className: "inline-flex items-center gap-2 rounded-md border border-ods-accent px-4 py-2 text-ods-accent text-h6",
|
|
@@ -3863,7 +3930,7 @@ function ProgramCard({
|
|
|
3863
3930
|
"View ",
|
|
3864
3931
|
config.labels.singular,
|
|
3865
3932
|
" Details",
|
|
3866
|
-
/* @__PURE__ */
|
|
3933
|
+
/* @__PURE__ */ jsx31(ExternalLink2, { className: "h-5 w-5" })
|
|
3867
3934
|
]
|
|
3868
3935
|
}
|
|
3869
3936
|
) }) })
|
|
@@ -3872,16 +3939,16 @@ function ProgramCard({
|
|
|
3872
3939
|
);
|
|
3873
3940
|
}
|
|
3874
3941
|
return /* @__PURE__ */ jsxs21("div", { className: cardFrameClass, style: cardFrameStyle, children: [
|
|
3875
|
-
/* @__PURE__ */
|
|
3876
|
-
images.length > 0 && /* @__PURE__ */
|
|
3877
|
-
/* @__PURE__ */
|
|
3942
|
+
/* @__PURE__ */ jsx31("a", { href, target, rel, className: "block", "aria-label": `Open ${item.title}`, children: cardHeader }),
|
|
3943
|
+
images.length > 0 && /* @__PURE__ */ jsx31(MediaGallery, { images, title: item.title }),
|
|
3944
|
+
/* @__PURE__ */ jsx31("div", { className: "mt-auto p-6 pt-0", children: /* @__PURE__ */ jsx31("div", { className: "border-t border-ods-border pt-4", children: /* @__PURE__ */ jsxs21(
|
|
3878
3945
|
Button,
|
|
3879
3946
|
{
|
|
3880
3947
|
variant: "outline",
|
|
3881
3948
|
size: "small-legacy",
|
|
3882
3949
|
href,
|
|
3883
3950
|
openInNewTab: target === "_blank",
|
|
3884
|
-
rightIcon: /* @__PURE__ */
|
|
3951
|
+
rightIcon: /* @__PURE__ */ jsx31(ExternalLink2, { className: "h-5 w-5" }),
|
|
3885
3952
|
children: [
|
|
3886
3953
|
"View ",
|
|
3887
3954
|
config.labels.singular,
|
|
@@ -4042,6 +4109,11 @@ export {
|
|
|
4042
4109
|
genBadgeBgOpacity,
|
|
4043
4110
|
generationTierFromLabel,
|
|
4044
4111
|
StatusBadge,
|
|
4112
|
+
BADGE_PALETTE,
|
|
4113
|
+
isBadgePaletteKey,
|
|
4114
|
+
pickBadgePaletteColor,
|
|
4115
|
+
PaletteBadge,
|
|
4116
|
+
DepartmentBadge,
|
|
4045
4117
|
getProxiedImageUrl,
|
|
4046
4118
|
urlPathLooksLikeSvg,
|
|
4047
4119
|
shouldProxyImage,
|
|
@@ -4137,4 +4209,4 @@ export {
|
|
|
4137
4209
|
canonicalContentRefType,
|
|
4138
4210
|
buildListUrl
|
|
4139
4211
|
};
|
|
4140
|
-
//# sourceMappingURL=chunk-
|
|
4212
|
+
//# sourceMappingURL=chunk-QS2QCXBH.js.map
|