@flamingo-stack/openframe-frontend-core 0.0.626 → 0.0.627-2168.6177.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-63F2UQDW.cjs → chunk-2RWADKBR.cjs} +18 -18
- package/dist/{chunk-63F2UQDW.cjs.map → chunk-2RWADKBR.cjs.map} +1 -1
- package/dist/{chunk-X3LC6R37.js → chunk-32P6KUZP.js} +2 -2
- package/dist/{chunk-RVK3CL5S.js → chunk-3D45OAWL.js} +12 -12
- package/dist/{chunk-EHAYNUOL.cjs → chunk-4E7XCEV3.cjs} +77 -2
- package/dist/chunk-4E7XCEV3.cjs.map +1 -0
- package/dist/{chunk-L54LFB6V.cjs → chunk-5P3V6VFN.cjs} +15 -15
- package/dist/{chunk-L54LFB6V.cjs.map → chunk-5P3V6VFN.cjs.map} +1 -1
- package/dist/{chunk-2CCIF5QV.js → chunk-5YT6NGPV.js} +10 -8
- package/dist/{chunk-2CCIF5QV.js.map → chunk-5YT6NGPV.js.map} +1 -1
- package/dist/{chunk-U7TTQV4N.cjs → chunk-6I3KNDBF.cjs} +3 -3
- package/dist/{chunk-U7TTQV4N.cjs.map → chunk-6I3KNDBF.cjs.map} +1 -1
- package/dist/{chunk-S6WBBSII.js → chunk-76HB456V.js} +5 -5
- package/dist/{chunk-VOBOO7EF.cjs → chunk-76SF25HQ.cjs} +83 -83
- package/dist/{chunk-VOBOO7EF.cjs.map → chunk-76SF25HQ.cjs.map} +1 -1
- package/dist/{chunk-DLZFFGQ7.js → chunk-AGYKSJSE.js} +4 -4
- package/dist/{chunk-34GEH24Y.cjs → chunk-AONK75QT.cjs} +22 -20
- package/dist/chunk-AONK75QT.cjs.map +1 -0
- package/dist/{chunk-IJYP2DMW.js → chunk-B2DCZVUN.js} +8 -354
- package/dist/chunk-B2DCZVUN.js.map +1 -0
- package/dist/{chunk-QR2FJE2C.js → chunk-C6TNAYHO.js} +12 -12
- package/dist/{chunk-YQCA4ZEJ.js → chunk-CMUNJZWN.js} +2 -2
- package/dist/{chunk-F4TAUCHQ.js → chunk-CSP4GOQ2.js} +3 -3
- package/dist/{chunk-3LKJ6JWZ.cjs → chunk-DCBDNYYW.cjs} +34 -34
- package/dist/{chunk-3LKJ6JWZ.cjs.map → chunk-DCBDNYYW.cjs.map} +1 -1
- package/dist/{chunk-Z42VU7HF.cjs → chunk-DGYDHQWL.cjs} +49 -47
- package/dist/chunk-DGYDHQWL.cjs.map +1 -0
- package/dist/{chunk-QPQCQWAW.cjs → chunk-EAPER4P2.cjs} +28 -26
- package/dist/chunk-EAPER4P2.cjs.map +1 -0
- package/dist/{chunk-HTIDXF43.cjs → chunk-EH5BWSOS.cjs} +7 -7
- package/dist/{chunk-HTIDXF43.cjs.map → chunk-EH5BWSOS.cjs.map} +1 -1
- package/dist/{chunk-H7KQM3VI.js → chunk-FNT5JQDQ.js} +8 -8
- package/dist/{chunk-KK7YEVTQ.js → chunk-FRDSHK7F.js} +4 -4
- package/dist/{chunk-Q5XGBLT5.cjs → chunk-GESNG4HT.cjs} +509 -87
- package/dist/chunk-GESNG4HT.cjs.map +1 -0
- package/dist/{chunk-IZG3VYDV.js → chunk-GKCQIJE7.js} +4 -4
- package/dist/{chunk-E7YNDGRN.cjs → chunk-GNASINHO.cjs} +105 -105
- package/dist/{chunk-E7YNDGRN.cjs.map → chunk-GNASINHO.cjs.map} +1 -1
- package/dist/{chunk-5LIDR7HL.js → chunk-JRYS4VMV.js} +4 -79
- package/dist/{chunk-5LIDR7HL.js.map → chunk-JRYS4VMV.js.map} +1 -1
- package/dist/{chunk-QJ6BCSFQ.cjs → chunk-LAYQ3VUW.cjs} +5 -5
- package/dist/{chunk-QJ6BCSFQ.cjs.map → chunk-LAYQ3VUW.cjs.map} +1 -1
- package/dist/{chunk-ESSHEVZQ.cjs → chunk-MFHGLBCL.cjs} +38 -38
- package/dist/chunk-MFHGLBCL.cjs.map +1 -0
- package/dist/{chunk-S43SLJIN.cjs → chunk-MVPPH4EZ.cjs} +25 -25
- package/dist/{chunk-S43SLJIN.cjs.map → chunk-MVPPH4EZ.cjs.map} +1 -1
- package/dist/{chunk-WEDSYUSR.js → chunk-ONTFCKVK.js} +6 -6
- package/dist/{chunk-3POP5WWC.cjs → chunk-P32VEWOW.cjs} +6 -6
- package/dist/{chunk-3POP5WWC.cjs.map → chunk-P32VEWOW.cjs.map} +1 -1
- package/dist/{chunk-3IXDZI3R.cjs → chunk-P7UT2YSC.cjs} +3 -3
- package/dist/{chunk-3IXDZI3R.cjs.map → chunk-P7UT2YSC.cjs.map} +1 -1
- package/dist/{chunk-RGMUA4XB.js → chunk-PDFHLSPP.js} +7 -7
- package/dist/{chunk-MZWSJPDZ.js → chunk-QBX4BI5E.js} +16 -28
- package/dist/{chunk-MZWSJPDZ.js.map → chunk-QBX4BI5E.js.map} +1 -1
- package/dist/{chunk-JJUV7Z4L.cjs → chunk-QIVX7F3N.cjs} +27 -27
- package/dist/{chunk-JJUV7Z4L.cjs.map → chunk-QIVX7F3N.cjs.map} +1 -1
- package/dist/{chunk-P7KIFYZI.js → chunk-QPHOTZDX.js} +10 -8
- package/dist/{chunk-P7KIFYZI.js.map → chunk-QPHOTZDX.js.map} +1 -1
- package/dist/{chunk-2MMEPNSX.cjs → chunk-RAPPN6MN.cjs} +3 -3
- package/dist/{chunk-2MMEPNSX.cjs.map → chunk-RAPPN6MN.cjs.map} +1 -1
- package/dist/{chunk-BVCWBA2U.js → chunk-RD627HGV.js} +817 -395
- package/dist/chunk-RD627HGV.js.map +1 -0
- package/dist/{chunk-NLVBO3IR.js → chunk-RFM6NMF7.js} +10 -8
- package/dist/{chunk-NLVBO3IR.js.map → chunk-RFM6NMF7.js.map} +1 -1
- package/dist/{chunk-NZJNXGU2.cjs → chunk-S3WX4GNN.cjs} +280 -292
- package/dist/chunk-S3WX4GNN.cjs.map +1 -0
- package/dist/{chunk-RQQAPCOU.js → chunk-STRI4K3F.js} +3 -3
- package/dist/{chunk-LJ7KMQRM.cjs → chunk-T3HJAG5Y.cjs} +42 -42
- package/dist/{chunk-LJ7KMQRM.cjs.map → chunk-T3HJAG5Y.cjs.map} +1 -1
- package/dist/{chunk-DZ7CEES3.js → chunk-TIPGW4JM.js} +5 -5
- package/dist/{chunk-DZ7CEES3.js.map → chunk-TIPGW4JM.js.map} +1 -1
- package/dist/{chunk-FKBM6U43.js → chunk-USIRWQJ3.js} +76 -1
- package/dist/{chunk-FKBM6U43.js.map → chunk-USIRWQJ3.js.map} +1 -1
- package/dist/{chunk-CCWI3622.cjs → chunk-VOZZQ6HQ.cjs} +4 -4
- package/dist/{chunk-CCWI3622.cjs.map → chunk-VOZZQ6HQ.cjs.map} +1 -1
- package/dist/{chunk-MSVEZB5D.cjs → chunk-W54VLUS5.cjs} +279 -625
- package/dist/chunk-W54VLUS5.cjs.map +1 -0
- package/dist/{chunk-F2KBCLUG.js → chunk-X5NN4NJM.js} +2 -2
- package/dist/{chunk-CPO5KPW6.cjs → chunk-XDZIHPF2.cjs} +9 -9
- package/dist/{chunk-CPO5KPW6.cjs.map → chunk-XDZIHPF2.cjs.map} +1 -1
- package/dist/{chunk-ZIEYC6ZB.js → chunk-YDZ5S3Z2.js} +4 -4
- package/dist/{chunk-YXWGSDK4.cjs → chunk-ZI27ALYX.cjs} +5 -80
- package/dist/chunk-ZI27ALYX.cjs.map +1 -0
- package/dist/{chunk-BVQEU5JB.js → chunk-ZOMGXH7C.js} +2 -2
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/case-studies/index.js +8 -8
- 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 +5 -5
- package/dist/components/chat/index.js +4 -4
- package/dist/components/contact/index.cjs +9 -9
- package/dist/components/contact/index.js +8 -8
- package/dist/components/docs/index.cjs +12 -12
- package/dist/components/docs/index.js +11 -11
- package/dist/components/embeds/index.cjs +9 -9
- package/dist/components/embeds/index.js +8 -8
- package/dist/components/faq/index.cjs +10 -10
- package/dist/components/faq/index.js +9 -9
- package/dist/components/features/index.cjs +8 -8
- package/dist/components/features/index.js +7 -7
- package/dist/components/help-center-pages/index.cjs +31 -31
- package/dist/components/help-center-pages/index.js +22 -22
- package/dist/components/index.cjs +75 -69
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +30 -24
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +49 -49
- package/dist/components/meeting-scheduler/index.js +9 -9
- package/dist/components/navigation/index.cjs +11 -11
- package/dist/components/navigation/index.js +10 -10
- package/dist/components/onboarding-guides/index.cjs +12 -12
- package/dist/components/onboarding-guides/index.js +11 -11
- package/dist/components/related-content/card-registry.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/related-content/index.js +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/tickets/index.js +12 -12
- package/dist/components/ui/color-preset-select.d.ts +4 -5
- package/dist/components/ui/color-preset-select.d.ts.map +1 -1
- 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 +14 -8
- 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 +13 -7
- package/dist/components/ui/palette-badge.d.ts +18 -0
- package/dist/components/ui/palette-badge.d.ts.map +1 -0
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/index.js +4 -4
- package/dist/index.cjs +28 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +50 -40
- 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/color-presets.d.ts +24 -0
- package/dist/utils/color-presets.d.ts.map +1 -0
- package/dist/utils/index.cjs +32 -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 +30 -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/__tests__/department-badge.test.tsx +40 -0
- package/src/components/ui/color-preset-select.tsx +5 -21
- package/src/components/ui/department-badge.tsx +35 -0
- package/src/components/ui/index.ts +2 -0
- package/src/components/ui/palette-badge.tsx +35 -0
- package/src/types/department.ts +4 -0
- package/src/utils/.color-presets.md +2 -0
- package/src/utils/color-presets.ts +48 -0
- package/src/utils/index.ts +1 -0
- package/dist/chunk-34GEH24Y.cjs.map +0 -1
- package/dist/chunk-BVCWBA2U.js.map +0 -1
- package/dist/chunk-EHAYNUOL.cjs.map +0 -1
- package/dist/chunk-ESSHEVZQ.cjs.map +0 -1
- package/dist/chunk-IJYP2DMW.js.map +0 -1
- package/dist/chunk-MSVEZB5D.cjs.map +0 -1
- package/dist/chunk-NZJNXGU2.cjs.map +0 -1
- package/dist/chunk-Q5XGBLT5.cjs.map +0 -1
- package/dist/chunk-QPQCQWAW.cjs.map +0 -1
- package/dist/chunk-YXWGSDK4.cjs.map +0 -1
- package/dist/chunk-Z42VU7HF.cjs.map +0 -1
- /package/dist/{chunk-X3LC6R37.js.map → chunk-32P6KUZP.js.map} +0 -0
- /package/dist/{chunk-RVK3CL5S.js.map → chunk-3D45OAWL.js.map} +0 -0
- /package/dist/{chunk-S6WBBSII.js.map → chunk-76HB456V.js.map} +0 -0
- /package/dist/{chunk-DLZFFGQ7.js.map → chunk-AGYKSJSE.js.map} +0 -0
- /package/dist/{chunk-QR2FJE2C.js.map → chunk-C6TNAYHO.js.map} +0 -0
- /package/dist/{chunk-YQCA4ZEJ.js.map → chunk-CMUNJZWN.js.map} +0 -0
- /package/dist/{chunk-F4TAUCHQ.js.map → chunk-CSP4GOQ2.js.map} +0 -0
- /package/dist/{chunk-H7KQM3VI.js.map → chunk-FNT5JQDQ.js.map} +0 -0
- /package/dist/{chunk-KK7YEVTQ.js.map → chunk-FRDSHK7F.js.map} +0 -0
- /package/dist/{chunk-IZG3VYDV.js.map → chunk-GKCQIJE7.js.map} +0 -0
- /package/dist/{chunk-WEDSYUSR.js.map → chunk-ONTFCKVK.js.map} +0 -0
- /package/dist/{chunk-RGMUA4XB.js.map → chunk-PDFHLSPP.js.map} +0 -0
- /package/dist/{chunk-RQQAPCOU.js.map → chunk-STRI4K3F.js.map} +0 -0
- /package/dist/{chunk-F2KBCLUG.js.map → chunk-X5NN4NJM.js.map} +0 -0
- /package/dist/{chunk-ZIEYC6ZB.js.map → chunk-YDZ5S3Z2.js.map} +0 -0
- /package/dist/{chunk-BVQEU5JB.js.map → chunk-ZOMGXH7C.js.map} +0 -0
|
@@ -3,11 +3,15 @@ import {
|
|
|
3
3
|
next_image_default
|
|
4
4
|
} from "./chunk-MDKCTSDS.js";
|
|
5
5
|
import {
|
|
6
|
+
PLATFORM_THEME,
|
|
7
|
+
clamp,
|
|
8
|
+
getPlatformAccentColor,
|
|
6
9
|
getPlatformBrandClasses,
|
|
10
|
+
getPlatformDisplayName,
|
|
7
11
|
useAuthedImageSrc,
|
|
8
12
|
useImageEdgeColor,
|
|
9
13
|
useOgPlaceholderUrl
|
|
10
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-USIRWQJ3.js";
|
|
11
15
|
import {
|
|
12
16
|
FigmaIcon,
|
|
13
17
|
ImageIcon,
|
|
@@ -507,6 +511,332 @@ var SquareAvatar = memo(
|
|
|
507
511
|
);
|
|
508
512
|
SquareAvatar.displayName = "SquareAvatar";
|
|
509
513
|
|
|
514
|
+
// src/utils/color-analysis.ts
|
|
515
|
+
var DESIGN_PALETTE = [
|
|
516
|
+
{ name: "yellow", hex: "#FFC008", rgb: [255, 192, 8] },
|
|
517
|
+
{ name: "black", hex: "#161616", rgb: [22, 22, 22] },
|
|
518
|
+
{ name: "gray", hex: "#888888", rgb: [136, 136, 136] }
|
|
519
|
+
];
|
|
520
|
+
function hexToRgb(hex) {
|
|
521
|
+
const normalized = hex.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (_, r, g, b) => `${r}${r}${g}${g}${b}${b}`);
|
|
522
|
+
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(normalized);
|
|
523
|
+
return result ? [parseInt(result[1], 16), parseInt(result[2], 16), parseInt(result[3], 16)] : [0, 0, 0];
|
|
524
|
+
}
|
|
525
|
+
function getLuminance(rgb) {
|
|
526
|
+
const [r, g, b] = rgb.map((channel) => {
|
|
527
|
+
const c = channel / 255;
|
|
528
|
+
return c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
|
|
529
|
+
});
|
|
530
|
+
return 0.2126 * r + 0.7152 * g + 0.0722 * b;
|
|
531
|
+
}
|
|
532
|
+
function getContrastRatio(color1, color2) {
|
|
533
|
+
const lum1 = getLuminance(color1);
|
|
534
|
+
const lum2 = getLuminance(color2);
|
|
535
|
+
const brightest = Math.max(lum1, lum2);
|
|
536
|
+
const darkest = Math.min(lum1, lum2);
|
|
537
|
+
return (brightest + 0.05) / (darkest + 0.05);
|
|
538
|
+
}
|
|
539
|
+
function pickReadableTextColor(bgHex) {
|
|
540
|
+
const bg = hexToRgb(bgHex);
|
|
541
|
+
const darkContrast = getContrastRatio(bg, [26, 26, 26]);
|
|
542
|
+
const lightContrast = getContrastRatio(bg, [250, 250, 250]);
|
|
543
|
+
return darkContrast >= lightContrast ? "dark" : "light";
|
|
544
|
+
}
|
|
545
|
+
function extractDominantColor(canvas) {
|
|
546
|
+
const ctx = canvas.getContext("2d");
|
|
547
|
+
if (!ctx) return [128, 128, 128];
|
|
548
|
+
const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
|
|
549
|
+
const data = imageData.data;
|
|
550
|
+
const sampleSize = Math.max(1, Math.floor(data.length / (4 * 1e3)));
|
|
551
|
+
const colorCounts = {};
|
|
552
|
+
for (let i = 0; i < data.length; i += 4 * sampleSize) {
|
|
553
|
+
const r = data[i];
|
|
554
|
+
const g = data[i + 1];
|
|
555
|
+
const b = data[i + 2];
|
|
556
|
+
const alpha = data[i + 3];
|
|
557
|
+
if (alpha < 128) continue;
|
|
558
|
+
const bucketR = Math.round(r / 32) * 32;
|
|
559
|
+
const bucketG = Math.round(g / 32) * 32;
|
|
560
|
+
const bucketB = Math.round(b / 32) * 32;
|
|
561
|
+
const key = `${bucketR},${bucketG},${bucketB}`;
|
|
562
|
+
colorCounts[key] = (colorCounts[key] || 0) + 1;
|
|
563
|
+
}
|
|
564
|
+
let maxCount = 0;
|
|
565
|
+
let dominantColor = [128, 128, 128];
|
|
566
|
+
for (const [colorKey, count] of Object.entries(colorCounts)) {
|
|
567
|
+
if (count > maxCount) {
|
|
568
|
+
maxCount = count;
|
|
569
|
+
const [r, g, b] = colorKey.split(",").map(Number);
|
|
570
|
+
dominantColor = [r, g, b];
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
return dominantColor;
|
|
574
|
+
}
|
|
575
|
+
function getBestContrastColor(imageColor) {
|
|
576
|
+
let bestColor = DESIGN_PALETTE[0];
|
|
577
|
+
let bestContrast = 0;
|
|
578
|
+
for (const color of DESIGN_PALETTE) {
|
|
579
|
+
const contrast = getContrastRatio(imageColor, color.rgb);
|
|
580
|
+
if (contrast > bestContrast) {
|
|
581
|
+
bestContrast = contrast;
|
|
582
|
+
bestColor = color;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
return bestContrast >= 3 ? bestColor : DESIGN_PALETTE.find((c) => c.name === "black") || bestColor;
|
|
586
|
+
}
|
|
587
|
+
function analyzeImageColor(imageSrc) {
|
|
588
|
+
return new Promise((resolve, reject) => {
|
|
589
|
+
const img = new Image();
|
|
590
|
+
img.crossOrigin = "anonymous";
|
|
591
|
+
img.onload = () => {
|
|
592
|
+
try {
|
|
593
|
+
const canvas = document.createElement("canvas");
|
|
594
|
+
const ctx = canvas.getContext("2d");
|
|
595
|
+
if (!ctx) {
|
|
596
|
+
reject(new Error("Could not get canvas context"));
|
|
597
|
+
return;
|
|
598
|
+
}
|
|
599
|
+
const maxSize = 100;
|
|
600
|
+
const scale = Math.min(maxSize / img.width, maxSize / img.height);
|
|
601
|
+
canvas.width = img.width * scale;
|
|
602
|
+
canvas.height = img.height * scale;
|
|
603
|
+
ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
|
|
604
|
+
const dominantColor = extractDominantColor(canvas);
|
|
605
|
+
const bestContrastColor = getBestContrastColor(dominantColor);
|
|
606
|
+
resolve(bestContrastColor);
|
|
607
|
+
} catch (error) {
|
|
608
|
+
reject(error);
|
|
609
|
+
}
|
|
610
|
+
};
|
|
611
|
+
img.onerror = () => reject(new Error("Failed to load image"));
|
|
612
|
+
img.src = imageSrc;
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
async function extractImageEdgeColorAsync(imageUrl) {
|
|
616
|
+
return new Promise((resolve) => {
|
|
617
|
+
if (typeof window === "undefined") {
|
|
618
|
+
resolve("#000000");
|
|
619
|
+
return;
|
|
620
|
+
}
|
|
621
|
+
const img = new Image();
|
|
622
|
+
img.crossOrigin = "anonymous";
|
|
623
|
+
img.onload = () => {
|
|
624
|
+
try {
|
|
625
|
+
const canvas = document.createElement("canvas");
|
|
626
|
+
const ctx = canvas.getContext("2d");
|
|
627
|
+
if (!ctx) {
|
|
628
|
+
resolve("#000000");
|
|
629
|
+
return;
|
|
630
|
+
}
|
|
631
|
+
const maxSize = 50;
|
|
632
|
+
const scale = Math.min(maxSize / img.naturalWidth, maxSize / img.naturalHeight);
|
|
633
|
+
const w = Math.round(img.naturalWidth * scale);
|
|
634
|
+
const h = Math.round(img.naturalHeight * scale);
|
|
635
|
+
canvas.width = w;
|
|
636
|
+
canvas.height = h;
|
|
637
|
+
ctx.drawImage(img, 0, 0, w, h);
|
|
638
|
+
const data = ctx.getImageData(0, 0, w, h).data;
|
|
639
|
+
const edgeW = Math.max(2, Math.round(w * 0.15));
|
|
640
|
+
const edgeH = Math.max(2, Math.round(h * 0.15));
|
|
641
|
+
const bucketSize = 32;
|
|
642
|
+
const buckets = /* @__PURE__ */ new Map();
|
|
643
|
+
for (let y = 0; y < h; y++) {
|
|
644
|
+
for (let x = 0; x < w; x++) {
|
|
645
|
+
if (!(x < edgeW || x >= w - edgeW || y < edgeH || y >= h - edgeH)) continue;
|
|
646
|
+
const i = (y * w + x) * 4;
|
|
647
|
+
if (data[i + 3] < 128) continue;
|
|
648
|
+
const br = Math.floor(data[i] / bucketSize) * bucketSize;
|
|
649
|
+
const bg = Math.floor(data[i + 1] / bucketSize) * bucketSize;
|
|
650
|
+
const bb = Math.floor(data[i + 2] / bucketSize) * bucketSize;
|
|
651
|
+
const key = `${br},${bg},${bb}`;
|
|
652
|
+
const existing = buckets.get(key);
|
|
653
|
+
if (existing) {
|
|
654
|
+
existing.r += data[i];
|
|
655
|
+
existing.g += data[i + 1];
|
|
656
|
+
existing.b += data[i + 2];
|
|
657
|
+
existing.count++;
|
|
658
|
+
} else {
|
|
659
|
+
buckets.set(key, { r: data[i], g: data[i + 1], b: data[i + 2], count: 1 });
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
let best = { r: 0, g: 0, b: 0, count: 0 };
|
|
664
|
+
for (const b2 of buckets.values()) {
|
|
665
|
+
if (b2.count > best.count) best = b2;
|
|
666
|
+
}
|
|
667
|
+
if (best.count === 0) {
|
|
668
|
+
resolve("#000000");
|
|
669
|
+
return;
|
|
670
|
+
}
|
|
671
|
+
const r = Math.round(best.r / best.count), g = Math.round(best.g / best.count), b = Math.round(best.b / best.count);
|
|
672
|
+
resolve(
|
|
673
|
+
`#${r.toString(16).padStart(2, "0")}${g.toString(16).padStart(2, "0")}${b.toString(16).padStart(2, "0")}`
|
|
674
|
+
);
|
|
675
|
+
} catch {
|
|
676
|
+
resolve("#000000");
|
|
677
|
+
}
|
|
678
|
+
};
|
|
679
|
+
img.onerror = () => resolve("#000000");
|
|
680
|
+
img.src = imageUrl;
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
// src/utils/ods-color-tokens-stub.ts
|
|
685
|
+
var colorTokens = {
|
|
686
|
+
primary: "#FFC008",
|
|
687
|
+
secondary: "#161616",
|
|
688
|
+
background: "#FAFAFA",
|
|
689
|
+
surface: "#FFFFFF",
|
|
690
|
+
text: {
|
|
691
|
+
primary: "#161616",
|
|
692
|
+
secondary: "#666666",
|
|
693
|
+
inverse: "#FFFFFF"
|
|
694
|
+
},
|
|
695
|
+
border: "#E5E5E5"
|
|
696
|
+
};
|
|
697
|
+
|
|
698
|
+
// src/utils/ods-color-utils.ts
|
|
699
|
+
var TOKEN_MAP = colorTokens;
|
|
700
|
+
function lookupToken(tokenKey) {
|
|
701
|
+
const value = TOKEN_MAP[tokenKey];
|
|
702
|
+
return typeof value === "string" ? value : void 0;
|
|
703
|
+
}
|
|
704
|
+
function getODSToken(category, color, variant = "base") {
|
|
705
|
+
const tokenKey = `${category}-${color}-${variant}`;
|
|
706
|
+
return lookupToken(tokenKey);
|
|
707
|
+
}
|
|
708
|
+
function getCurrentPlatform() {
|
|
709
|
+
if (typeof window === "undefined") {
|
|
710
|
+
return process.env.NEXT_PUBLIC_APP_TYPE || "openmsp";
|
|
711
|
+
}
|
|
712
|
+
const domPlatform = document.documentElement.getAttribute("data-app-type");
|
|
713
|
+
if (domPlatform) {
|
|
714
|
+
return domPlatform;
|
|
715
|
+
}
|
|
716
|
+
return process.env.NEXT_PUBLIC_APP_TYPE || "openmsp";
|
|
717
|
+
}
|
|
718
|
+
function switchPlatformTheme(platform) {
|
|
719
|
+
if (typeof window === "undefined") return;
|
|
720
|
+
const root = document.documentElement;
|
|
721
|
+
root.setAttribute("data-app-type", platform);
|
|
722
|
+
window.dispatchEvent(
|
|
723
|
+
new CustomEvent("platformThemeChanged", {
|
|
724
|
+
detail: { platform }
|
|
725
|
+
})
|
|
726
|
+
);
|
|
727
|
+
}
|
|
728
|
+
function getSemanticColor(semanticName, platform) {
|
|
729
|
+
if (typeof window === "undefined") return void 0;
|
|
730
|
+
const currentPlatform = platform || getCurrentPlatform();
|
|
731
|
+
const originalPlatform = getCurrentPlatform();
|
|
732
|
+
if (currentPlatform !== originalPlatform) {
|
|
733
|
+
switchPlatformTheme(currentPlatform);
|
|
734
|
+
}
|
|
735
|
+
const testElement = document.createElement("div");
|
|
736
|
+
document.body.appendChild(testElement);
|
|
737
|
+
const computedStyle = getComputedStyle(testElement);
|
|
738
|
+
const colorValue = computedStyle.getPropertyValue(`--color-${semanticName}`);
|
|
739
|
+
document.body.removeChild(testElement);
|
|
740
|
+
if (currentPlatform !== originalPlatform) {
|
|
741
|
+
switchPlatformTheme(originalPlatform);
|
|
742
|
+
}
|
|
743
|
+
return colorValue.trim() || void 0;
|
|
744
|
+
}
|
|
745
|
+
function getPlatformConfig(platform) {
|
|
746
|
+
const currentPlatform = platform || getCurrentPlatform();
|
|
747
|
+
const isDarkTheme = PLATFORM_THEME === "dark";
|
|
748
|
+
return {
|
|
749
|
+
platform: currentPlatform,
|
|
750
|
+
accentColor: getPlatformAccentColor(currentPlatform),
|
|
751
|
+
isDarkTheme,
|
|
752
|
+
isLightTheme: !isDarkTheme,
|
|
753
|
+
brandName: getPlatformDisplayName(currentPlatform)
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
function usePlatformColors(platform) {
|
|
757
|
+
const currentPlatform = platform || getCurrentPlatform();
|
|
758
|
+
const config = getPlatformConfig(currentPlatform);
|
|
759
|
+
return {
|
|
760
|
+
platform: currentPlatform,
|
|
761
|
+
accentColor: config.accentColor,
|
|
762
|
+
isDarkTheme: config.isDarkTheme,
|
|
763
|
+
isLightTheme: config.isLightTheme,
|
|
764
|
+
brandName: config.brandName,
|
|
765
|
+
getToken: (category, color, variant) => getODSToken(category, color, variant),
|
|
766
|
+
switchTheme: (newPlatform) => switchPlatformTheme(newPlatform),
|
|
767
|
+
getSemanticColor: (semanticName) => getSemanticColor(semanticName, currentPlatform)
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
function getReadableTextColor(hex) {
|
|
771
|
+
return pickReadableTextColor(hex) === "dark" ? "#212121" : "#fafafa";
|
|
772
|
+
}
|
|
773
|
+
var HEX_PATTERN = /^#[0-9a-fA-F]{6}$/;
|
|
774
|
+
function hexToRgb2(hex) {
|
|
775
|
+
if (!HEX_PATTERN.test(hex)) return null;
|
|
776
|
+
const n = Number.parseInt(hex.slice(1), 16);
|
|
777
|
+
return { r: n >> 16 & 255, g: n >> 8 & 255, b: n & 255 };
|
|
778
|
+
}
|
|
779
|
+
function rgbToHex(r, g, b) {
|
|
780
|
+
const to = (n) => clamp(Math.round(n), 0, 255).toString(16).padStart(2, "0");
|
|
781
|
+
return `#${to(r)}${to(g)}${to(b)}`;
|
|
782
|
+
}
|
|
783
|
+
var HOVER_DARKEN_STEP = 10;
|
|
784
|
+
var ACTIVE_DARKEN_STEP = 20;
|
|
785
|
+
function darkenByStep(hex, step) {
|
|
786
|
+
const rgb = hexToRgb2(hex);
|
|
787
|
+
if (!rgb) return hex;
|
|
788
|
+
return rgbToHex(rgb.r - step, rgb.g - step, rgb.b - step);
|
|
789
|
+
}
|
|
790
|
+
function deriveHoverColor(hex) {
|
|
791
|
+
return darkenByStep(hex, HOVER_DARKEN_STEP);
|
|
792
|
+
}
|
|
793
|
+
function deriveActiveColor(hex) {
|
|
794
|
+
return darkenByStep(hex, ACTIVE_DARKEN_STEP);
|
|
795
|
+
}
|
|
796
|
+
function rgbToHsl(r, g, b) {
|
|
797
|
+
const rn = r / 255;
|
|
798
|
+
const gn = g / 255;
|
|
799
|
+
const bn = b / 255;
|
|
800
|
+
const max = Math.max(rn, gn, bn);
|
|
801
|
+
const min = Math.min(rn, gn, bn);
|
|
802
|
+
const l = (max + min) / 2;
|
|
803
|
+
if (max === min) return { h: 0, s: 0, l: Math.round(l * 100) };
|
|
804
|
+
const d = max - min;
|
|
805
|
+
const s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
|
|
806
|
+
let h;
|
|
807
|
+
if (max === rn) h = (gn - bn) / d + (gn < bn ? 6 : 0);
|
|
808
|
+
else if (max === gn) h = (bn - rn) / d + 2;
|
|
809
|
+
else h = (rn - gn) / d + 4;
|
|
810
|
+
h *= 60;
|
|
811
|
+
return { h: Math.round(h), s: Math.round(s * 100), l: Math.round(l * 100) };
|
|
812
|
+
}
|
|
813
|
+
function hslToRgb(h, s, l) {
|
|
814
|
+
const sn = clamp(s, 0, 100) / 100;
|
|
815
|
+
const ln = clamp(l, 0, 100) / 100;
|
|
816
|
+
const hn = (h % 360 + 360) % 360;
|
|
817
|
+
if (sn === 0) {
|
|
818
|
+
const v = Math.round(ln * 255);
|
|
819
|
+
return { r: v, g: v, b: v };
|
|
820
|
+
}
|
|
821
|
+
const q = ln < 0.5 ? ln * (1 + sn) : ln + sn - ln * sn;
|
|
822
|
+
const p = 2 * ln - q;
|
|
823
|
+
const hue2rgb = (t) => {
|
|
824
|
+
let tn = t;
|
|
825
|
+
if (tn < 0) tn += 1;
|
|
826
|
+
if (tn > 1) tn -= 1;
|
|
827
|
+
if (tn < 1 / 6) return p + (q - p) * 6 * tn;
|
|
828
|
+
if (tn < 1 / 2) return q;
|
|
829
|
+
if (tn < 2 / 3) return p + (q - p) * (2 / 3 - tn) * 6;
|
|
830
|
+
return p;
|
|
831
|
+
};
|
|
832
|
+
const hk = hn / 360;
|
|
833
|
+
return {
|
|
834
|
+
r: Math.round(hue2rgb(hk + 1 / 3) * 255),
|
|
835
|
+
g: Math.round(hue2rgb(hk) * 255),
|
|
836
|
+
b: Math.round(hue2rgb(hk - 1 / 3) * 255)
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
|
|
510
840
|
// src/components/ui/interactive-card.tsx
|
|
511
841
|
import React from "react";
|
|
512
842
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
@@ -807,6 +1137,71 @@ function StatusBadge({ text, variant, colorScheme, className, singleLine, gen, s
|
|
|
807
1137
|
);
|
|
808
1138
|
}
|
|
809
1139
|
|
|
1140
|
+
// src/utils/color-presets.ts
|
|
1141
|
+
var COLOR_PRESETS = [
|
|
1142
|
+
{ key: "green", label: "Green", color: "#5ea62e" },
|
|
1143
|
+
{ key: "lime", label: "Lime", color: "#8bc34a" },
|
|
1144
|
+
{ key: "teal", label: "Teal", color: "#4db6ac" },
|
|
1145
|
+
{ key: "sky", label: "Sky", color: "#4fc3f7" },
|
|
1146
|
+
{ key: "periwinkle", label: "Periwinkle", color: "#7e9cd8" },
|
|
1147
|
+
{ key: "lavender", label: "Lavender", color: "#b39ddb" },
|
|
1148
|
+
{ key: "yellow", label: "Yellow", color: "#e1b32f" },
|
|
1149
|
+
{ key: "sand", label: "Sand", color: "#f0c674" },
|
|
1150
|
+
{ key: "peach", label: "Peach", color: "#f39c7a" },
|
|
1151
|
+
{ key: "red", label: "Red", color: "#f36666" },
|
|
1152
|
+
{ key: "pink", label: "Pink", color: "#e988a8" },
|
|
1153
|
+
{ key: "neutral", label: "Neutral", color: "#b0b0b0" }
|
|
1154
|
+
];
|
|
1155
|
+
function colorPreset(key) {
|
|
1156
|
+
return key ? COLOR_PRESETS.find((preset) => preset.key === key) : void 0;
|
|
1157
|
+
}
|
|
1158
|
+
function pickPresetColor({
|
|
1159
|
+
avoid = [],
|
|
1160
|
+
random = Math.random
|
|
1161
|
+
} = {}) {
|
|
1162
|
+
const colours = COLOR_PRESETS.filter((preset) => preset.key !== "neutral");
|
|
1163
|
+
const used = new Set(avoid);
|
|
1164
|
+
const free = colours.filter((preset) => !used.has(preset.key));
|
|
1165
|
+
const pool = free.length > 0 ? free : colours;
|
|
1166
|
+
return pool[Math.floor(random() * pool.length) % pool.length].key;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
// src/components/ui/palette-badge.tsx
|
|
1170
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
1171
|
+
function PaletteBadge({ text, color, className, variant = "button" }) {
|
|
1172
|
+
const fill = colorPreset(color)?.color ?? (color && HEX_PATTERN.test(color) ? color : null);
|
|
1173
|
+
return /* @__PURE__ */ jsx7(
|
|
1174
|
+
StatusBadge,
|
|
1175
|
+
{
|
|
1176
|
+
text,
|
|
1177
|
+
colorScheme: "default",
|
|
1178
|
+
variant,
|
|
1179
|
+
singleLine: true,
|
|
1180
|
+
className,
|
|
1181
|
+
style: fill ? { backgroundColor: fill, color: getReadableTextColor(fill) } : void 0
|
|
1182
|
+
}
|
|
1183
|
+
);
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
// src/components/ui/department-badge.tsx
|
|
1187
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
1188
|
+
function DepartmentBadge({
|
|
1189
|
+
department,
|
|
1190
|
+
emptyLabel = "No department",
|
|
1191
|
+
className,
|
|
1192
|
+
variant
|
|
1193
|
+
}) {
|
|
1194
|
+
return /* @__PURE__ */ jsx8(
|
|
1195
|
+
PaletteBadge,
|
|
1196
|
+
{
|
|
1197
|
+
text: department?.name || emptyLabel,
|
|
1198
|
+
color: department?.name ? department.color : null,
|
|
1199
|
+
className,
|
|
1200
|
+
variant
|
|
1201
|
+
}
|
|
1202
|
+
);
|
|
1203
|
+
}
|
|
1204
|
+
|
|
810
1205
|
// src/utils/image-proxy.ts
|
|
811
1206
|
function getProxiedImageUrl(imageUrl, options) {
|
|
812
1207
|
if (!imageUrl) return null;
|
|
@@ -898,7 +1293,7 @@ function buildAnchorProps(href, isNewTab) {
|
|
|
898
1293
|
}
|
|
899
1294
|
|
|
900
1295
|
// src/components/chat/entity-cards/entity-author-card.tsx
|
|
901
|
-
import { jsx as
|
|
1296
|
+
import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
902
1297
|
var EMPTY_AUTHOR_PLACEHOLDER = {
|
|
903
1298
|
full_name: "\u2014",
|
|
904
1299
|
avatar_url: null,
|
|
@@ -910,9 +1305,9 @@ function EntityMetadataValueCell({
|
|
|
910
1305
|
className,
|
|
911
1306
|
uppercase = true
|
|
912
1307
|
}) {
|
|
913
|
-
return /* @__PURE__ */
|
|
914
|
-
/* @__PURE__ */
|
|
915
|
-
/* @__PURE__ */
|
|
1308
|
+
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: [
|
|
1309
|
+
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 }),
|
|
1310
|
+
/* @__PURE__ */ jsx9("p", { className: "text-ods-text-secondary text-h6", children: label })
|
|
916
1311
|
] }) });
|
|
917
1312
|
}
|
|
918
1313
|
function EntityMetadataAuthorCell({
|
|
@@ -924,7 +1319,7 @@ function EntityMetadataAuthorCell({
|
|
|
924
1319
|
const trimmedName = typeof author.full_name === "string" ? author.full_name.trim() : "";
|
|
925
1320
|
const fullName = trimmedName || "Unknown Author";
|
|
926
1321
|
return /* @__PURE__ */ jsxs5("div", { className: `flex items-center gap-3 bg-ods-card p-4 ${className ?? ""}`, children: [
|
|
927
|
-
/* @__PURE__ */
|
|
1322
|
+
/* @__PURE__ */ jsx9(
|
|
928
1323
|
SquareAvatar,
|
|
929
1324
|
{
|
|
930
1325
|
src: author.avatar_url || "",
|
|
@@ -935,8 +1330,8 @@ function EntityMetadataAuthorCell({
|
|
|
935
1330
|
}
|
|
936
1331
|
),
|
|
937
1332
|
/* @__PURE__ */ jsxs5("div", { className: "flex min-w-0 flex-1 flex-col gap-0", children: [
|
|
938
|
-
/* @__PURE__ */
|
|
939
|
-
/* @__PURE__ */
|
|
1333
|
+
/* @__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 }),
|
|
1334
|
+
/* @__PURE__ */ jsx9("p", { className: "text-ods-text-secondary text-h6", children: author.job_title || roleLabel })
|
|
940
1335
|
] })
|
|
941
1336
|
] });
|
|
942
1337
|
}
|
|
@@ -965,7 +1360,7 @@ function EntityAuthorCard({
|
|
|
965
1360
|
{
|
|
966
1361
|
className: `grid grid-cols-1 ${gridColsClass} w-full overflow-hidden rounded-md border border-ods-border ${className ?? ""}`,
|
|
967
1362
|
children: [
|
|
968
|
-
extras.map((cell, i) => /* @__PURE__ */
|
|
1363
|
+
extras.map((cell, i) => /* @__PURE__ */ jsx9(
|
|
969
1364
|
EntityMetadataValueCell,
|
|
970
1365
|
{
|
|
971
1366
|
value: cell.value,
|
|
@@ -975,18 +1370,18 @@ function EntityAuthorCard({
|
|
|
975
1370
|
},
|
|
976
1371
|
`${cell.label}-${i}`
|
|
977
1372
|
)),
|
|
978
|
-
showDateCell && /* @__PURE__ */
|
|
979
|
-
/* @__PURE__ */
|
|
1373
|
+
showDateCell && /* @__PURE__ */ jsx9(EntityMetadataValueCell, { value: dateLabel, label: publishedLabel, uppercase: false, className: dividerClass }),
|
|
1374
|
+
/* @__PURE__ */ jsx9(EntityMetadataAuthorCell, { author: effectiveAuthor, roleLabel, authorHref })
|
|
980
1375
|
]
|
|
981
1376
|
}
|
|
982
1377
|
);
|
|
983
1378
|
}
|
|
984
1379
|
|
|
985
1380
|
// src/components/chat/entity-cards/blog-image-placeholder.tsx
|
|
986
|
-
import { jsx as
|
|
1381
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
987
1382
|
function BlogImagePlaceholder({ imageUrl, title, className = "" }) {
|
|
988
1383
|
if (!imageUrl) return null;
|
|
989
|
-
return /* @__PURE__ */
|
|
1384
|
+
return /* @__PURE__ */ jsx10("span", { className: `relative block h-full w-full overflow-hidden bg-ods-bg ${className}`, children: /* @__PURE__ */ jsx10(
|
|
990
1385
|
next_image_default,
|
|
991
1386
|
{
|
|
992
1387
|
src: imageUrl,
|
|
@@ -1022,7 +1417,7 @@ var hideOnError = (e) => {
|
|
|
1022
1417
|
|
|
1023
1418
|
// src/components/chat/entity-cards/entity-portrait-card.tsx
|
|
1024
1419
|
import { useState as useState3 } from "react";
|
|
1025
|
-
import { jsx as
|
|
1420
|
+
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1026
1421
|
var MIN_WIDE_RATIO = 1.3;
|
|
1027
1422
|
function EntityPortraitCard({
|
|
1028
1423
|
href,
|
|
@@ -1047,13 +1442,13 @@ function EntityPortraitCard({
|
|
|
1047
1442
|
}
|
|
1048
1443
|
};
|
|
1049
1444
|
const edgeColor = useImageEdgeColor(isWide === false ? src : null, "var(--color-bg-surface)");
|
|
1050
|
-
return /* @__PURE__ */
|
|
1051
|
-
/* @__PURE__ */
|
|
1445
|
+
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: [
|
|
1446
|
+
/* @__PURE__ */ jsx11(
|
|
1052
1447
|
"div",
|
|
1053
1448
|
{
|
|
1054
1449
|
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
1450
|
style: isWide === false ? { backgroundColor: edgeColor } : void 0,
|
|
1056
|
-
children: src && /* @__PURE__ */
|
|
1451
|
+
children: src && /* @__PURE__ */ jsx11(
|
|
1057
1452
|
next_image_default,
|
|
1058
1453
|
{
|
|
1059
1454
|
src,
|
|
@@ -1069,7 +1464,7 @@ function EntityPortraitCard({
|
|
|
1069
1464
|
}
|
|
1070
1465
|
),
|
|
1071
1466
|
/* @__PURE__ */ jsxs6("div", { className: "flex h-[72px] shrink-0 flex-col justify-center gap-1.5", children: [
|
|
1072
|
-
typeLabel && /* @__PURE__ */
|
|
1467
|
+
typeLabel && /* @__PURE__ */ jsx11(
|
|
1073
1468
|
StatusBadge,
|
|
1074
1469
|
{
|
|
1075
1470
|
variant: "button",
|
|
@@ -1079,7 +1474,7 @@ function EntityPortraitCard({
|
|
|
1079
1474
|
className: "self-start"
|
|
1080
1475
|
}
|
|
1081
1476
|
),
|
|
1082
|
-
/* @__PURE__ */
|
|
1477
|
+
/* @__PURE__ */ jsx11(
|
|
1083
1478
|
"h3",
|
|
1084
1479
|
{
|
|
1085
1480
|
className: cn(
|
|
@@ -1091,9 +1486,9 @@ function EntityPortraitCard({
|
|
|
1091
1486
|
}
|
|
1092
1487
|
)
|
|
1093
1488
|
] }),
|
|
1094
|
-
/* @__PURE__ */
|
|
1489
|
+
/* @__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
1490
|
/* @__PURE__ */ jsxs6("div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
1096
|
-
person.avatarUrl ? /* @__PURE__ */
|
|
1491
|
+
person.avatarUrl ? /* @__PURE__ */ jsx11(
|
|
1097
1492
|
next_image_default,
|
|
1098
1493
|
{
|
|
1099
1494
|
src: person.avatarUrl,
|
|
@@ -1103,8 +1498,8 @@ function EntityPortraitCard({
|
|
|
1103
1498
|
height: 48,
|
|
1104
1499
|
unoptimized: true
|
|
1105
1500
|
}
|
|
1106
|
-
) : /* @__PURE__ */
|
|
1107
|
-
person.iconOverlayUrl && /* @__PURE__ */
|
|
1501
|
+
) : /* @__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() }) }),
|
|
1502
|
+
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
1503
|
next_image_default,
|
|
1109
1504
|
{
|
|
1110
1505
|
src: person.iconOverlayUrl,
|
|
@@ -1117,8 +1512,8 @@ function EntityPortraitCard({
|
|
|
1117
1512
|
) })
|
|
1118
1513
|
] }),
|
|
1119
1514
|
/* @__PURE__ */ jsxs6("div", { className: "flex min-w-0 flex-col", children: [
|
|
1120
|
-
/* @__PURE__ */
|
|
1121
|
-
person.subtitle && /* @__PURE__ */
|
|
1515
|
+
/* @__PURE__ */ jsx11("span", { className: "truncate font-bold text-ods-text-primary text-h6", children: person.name }),
|
|
1516
|
+
person.subtitle && /* @__PURE__ */ jsx11("span", { className: "truncate text-ods-text-secondary text-h6", children: person.subtitle })
|
|
1122
1517
|
] })
|
|
1123
1518
|
] }) })
|
|
1124
1519
|
] }) });
|
|
@@ -1128,14 +1523,14 @@ function EntityPortraitCard({
|
|
|
1128
1523
|
import { Globe } from "lucide-react";
|
|
1129
1524
|
|
|
1130
1525
|
// src/components/flamingo-logo.tsx
|
|
1131
|
-
import { jsx as
|
|
1526
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1132
1527
|
function FlamingoLogo({
|
|
1133
1528
|
className = "",
|
|
1134
1529
|
color = "var(--ods-flamingo-pink-base)",
|
|
1135
1530
|
size = 120,
|
|
1136
1531
|
...props
|
|
1137
1532
|
}) {
|
|
1138
|
-
return /* @__PURE__ */
|
|
1533
|
+
return /* @__PURE__ */ jsx12(
|
|
1139
1534
|
"svg",
|
|
1140
1535
|
{
|
|
1141
1536
|
width: size,
|
|
@@ -1144,7 +1539,7 @@ function FlamingoLogo({
|
|
|
1144
1539
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1145
1540
|
className,
|
|
1146
1541
|
...props,
|
|
1147
|
-
children: /* @__PURE__ */
|
|
1542
|
+
children: /* @__PURE__ */ jsx12(
|
|
1148
1543
|
"path",
|
|
1149
1544
|
{
|
|
1150
1545
|
fillRule: "evenodd",
|
|
@@ -1158,7 +1553,7 @@ function FlamingoLogo({
|
|
|
1158
1553
|
}
|
|
1159
1554
|
|
|
1160
1555
|
// src/components/openmsp-logo.tsx
|
|
1161
|
-
import { jsx as
|
|
1556
|
+
import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1162
1557
|
function OpenmspLogo({
|
|
1163
1558
|
className = "",
|
|
1164
1559
|
frontBubbleColor = "#000000",
|
|
@@ -1177,35 +1572,35 @@ function OpenmspLogo({
|
|
|
1177
1572
|
className,
|
|
1178
1573
|
...props,
|
|
1179
1574
|
children: [
|
|
1180
|
-
/* @__PURE__ */
|
|
1575
|
+
/* @__PURE__ */ jsx13(
|
|
1181
1576
|
"path",
|
|
1182
1577
|
{
|
|
1183
1578
|
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
1579
|
fill: backBubbleColor
|
|
1185
1580
|
}
|
|
1186
1581
|
),
|
|
1187
|
-
/* @__PURE__ */
|
|
1582
|
+
/* @__PURE__ */ jsx13(
|
|
1188
1583
|
"path",
|
|
1189
1584
|
{
|
|
1190
1585
|
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
1586
|
fill: innerFrontBubbleColor
|
|
1192
1587
|
}
|
|
1193
1588
|
),
|
|
1194
|
-
/* @__PURE__ */
|
|
1589
|
+
/* @__PURE__ */ jsx13(
|
|
1195
1590
|
"path",
|
|
1196
1591
|
{
|
|
1197
1592
|
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
1593
|
fill: frontBubbleColor
|
|
1199
1594
|
}
|
|
1200
1595
|
),
|
|
1201
|
-
/* @__PURE__ */
|
|
1596
|
+
/* @__PURE__ */ jsx13("circle", { cx: "45.1334", cy: "44.8", r: "6.4", fill: frontBubbleColor })
|
|
1202
1597
|
]
|
|
1203
1598
|
}
|
|
1204
1599
|
);
|
|
1205
1600
|
}
|
|
1206
1601
|
|
|
1207
1602
|
// src/components/features/platform-badge.tsx
|
|
1208
|
-
import { jsx as
|
|
1603
|
+
import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1209
1604
|
var sizeClasses = {
|
|
1210
1605
|
xs: {
|
|
1211
1606
|
container: "gap-1 px-1.5 py-0.5",
|
|
@@ -1228,7 +1623,7 @@ var PlatformIcon = ({ platform, className }) => {
|
|
|
1228
1623
|
const size = sizeMatch ? parseInt(sizeMatch[1]) * 4 : 16;
|
|
1229
1624
|
switch (platform) {
|
|
1230
1625
|
case "openmsp":
|
|
1231
|
-
return /* @__PURE__ */
|
|
1626
|
+
return /* @__PURE__ */ jsx14(
|
|
1232
1627
|
OpenmspLogo,
|
|
1233
1628
|
{
|
|
1234
1629
|
className,
|
|
@@ -1239,19 +1634,19 @@ var PlatformIcon = ({ platform, className }) => {
|
|
|
1239
1634
|
);
|
|
1240
1635
|
case "flamingo":
|
|
1241
1636
|
case "flamingo-teaser":
|
|
1242
|
-
return /* @__PURE__ */
|
|
1637
|
+
return /* @__PURE__ */ jsx14(FlamingoLogo, { className });
|
|
1243
1638
|
case "openframe":
|
|
1244
|
-
return /* @__PURE__ */
|
|
1639
|
+
return /* @__PURE__ */ jsx14(OpenFrameLogo, { className });
|
|
1245
1640
|
case "tmcg":
|
|
1246
|
-
return /* @__PURE__ */
|
|
1641
|
+
return /* @__PURE__ */ jsx14(MiamiCyberGangLogoFaceOnly, { size, className });
|
|
1247
1642
|
case "company-hub":
|
|
1248
1643
|
case "marketing-hub":
|
|
1249
1644
|
case "product-hub":
|
|
1250
1645
|
case "revenue-hub":
|
|
1251
1646
|
case "people-hub":
|
|
1252
|
-
return /* @__PURE__ */
|
|
1647
|
+
return /* @__PURE__ */ jsx14(FlamingoLogo, { className, fill: "currentColor" });
|
|
1253
1648
|
default:
|
|
1254
|
-
return /* @__PURE__ */
|
|
1649
|
+
return /* @__PURE__ */ jsx14(Globe, { className });
|
|
1255
1650
|
}
|
|
1256
1651
|
};
|
|
1257
1652
|
function PlatformBadge({ platform, size = "sm", showLabel = true, className }) {
|
|
@@ -1273,8 +1668,8 @@ function PlatformBadge({ platform, size = "sm", showLabel = true, className }) {
|
|
|
1273
1668
|
className
|
|
1274
1669
|
),
|
|
1275
1670
|
children: [
|
|
1276
|
-
/* @__PURE__ */
|
|
1277
|
-
showLabel && /* @__PURE__ */
|
|
1671
|
+
/* @__PURE__ */ jsx14(PlatformIcon, { platform: platform.name, className: sizes.icon }),
|
|
1672
|
+
showLabel && /* @__PURE__ */ jsx14("span", { className: sizes.text, children: platform.display_name || platform.name })
|
|
1278
1673
|
]
|
|
1279
1674
|
}
|
|
1280
1675
|
);
|
|
@@ -1282,7 +1677,7 @@ function PlatformBadge({ platform, size = "sm", showLabel = true, className }) {
|
|
|
1282
1677
|
|
|
1283
1678
|
// src/components/chat/entity-cards/admin-content-card.tsx
|
|
1284
1679
|
import { useState as useState4 } from "react";
|
|
1285
|
-
import { Fragment as Fragment2, jsx as
|
|
1680
|
+
import { Fragment as Fragment2, jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1286
1681
|
function AdminContentCard({
|
|
1287
1682
|
imageUrl,
|
|
1288
1683
|
placeholderUrl,
|
|
@@ -1314,9 +1709,9 @@ function AdminContentCard({
|
|
|
1314
1709
|
className
|
|
1315
1710
|
),
|
|
1316
1711
|
children: [
|
|
1317
|
-
/* @__PURE__ */
|
|
1318
|
-
!imageLoaded && /* @__PURE__ */
|
|
1319
|
-
/* @__PURE__ */
|
|
1712
|
+
/* @__PURE__ */ jsx15("div", { className: "relative aspect-[3/2] w-full shrink-0 overflow-hidden", style: { backgroundColor: imageBgColor }, children: displayUrl ? /* @__PURE__ */ jsxs9(Fragment2, { children: [
|
|
1713
|
+
!imageLoaded && /* @__PURE__ */ jsx15("div", { className: "absolute inset-0 animate-pulse bg-ods-border/20" }),
|
|
1714
|
+
/* @__PURE__ */ jsx15(
|
|
1320
1715
|
next_image_default,
|
|
1321
1716
|
{
|
|
1322
1717
|
src: displayUrl,
|
|
@@ -1334,13 +1729,13 @@ function AdminContentCard({
|
|
|
1334
1729
|
onError: () => setImageError(true)
|
|
1335
1730
|
}
|
|
1336
1731
|
)
|
|
1337
|
-
] }) : /* @__PURE__ */
|
|
1732
|
+
] }) : /* @__PURE__ */ jsx15("div", { className: "absolute inset-0 bg-ods-bg" }) }),
|
|
1338
1733
|
/* @__PURE__ */ jsxs9("div", { className: "flex flex-1 flex-col gap-3 p-5", children: [
|
|
1339
|
-
/* @__PURE__ */
|
|
1340
|
-
(subtitle || reserveRows) && /* @__PURE__ */
|
|
1341
|
-
(summary || reserveRows) && /* @__PURE__ */
|
|
1734
|
+
/* @__PURE__ */ jsx15("h3", { className: cn("line-clamp-2 break-words text-ods-text-primary text-h3", reserveRows && "min-h-[2lh]"), children: title }),
|
|
1735
|
+
(subtitle || reserveRows) && /* @__PURE__ */ jsx15("p", { className: cn("truncate text-ods-text-secondary text-h6", reserveRows && "min-h-[1lh]"), children: subtitle }),
|
|
1736
|
+
(summary || reserveRows) && /* @__PURE__ */ jsx15("p", { className: cn("line-clamp-2 text-ods-text-secondary text-h6", reserveRows && "min-h-[2lh]"), children: summary }),
|
|
1342
1737
|
(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__ */
|
|
1738
|
+
platforms?.map((p) => /* @__PURE__ */ jsx15(
|
|
1344
1739
|
PlatformBadge,
|
|
1345
1740
|
{
|
|
1346
1741
|
platform: { id: p.id || p.platform_id || "", name: p.name, display_name: p.display_name || p.name },
|
|
@@ -1350,8 +1745,8 @@ function AdminContentCard({
|
|
|
1350
1745
|
)),
|
|
1351
1746
|
badges
|
|
1352
1747
|
] }),
|
|
1353
|
-
(meta || reserveRows) && /* @__PURE__ */
|
|
1354
|
-
actions && /* @__PURE__ */
|
|
1748
|
+
(meta || reserveRows) && /* @__PURE__ */ jsx15("div", { className: cn("flex items-center gap-3 text-ods-text-secondary text-h6", reserveRows && "min-h-[1lh]"), children: meta }),
|
|
1749
|
+
actions && /* @__PURE__ */ jsx15("div", { className: "mt-auto flex items-center justify-between border-t border-ods-border pt-3", children: actions })
|
|
1355
1750
|
] })
|
|
1356
1751
|
]
|
|
1357
1752
|
}
|
|
@@ -1374,20 +1769,20 @@ function getProxiedImageUrl2(imageUrl) {
|
|
|
1374
1769
|
}
|
|
1375
1770
|
|
|
1376
1771
|
// src/components/chat/entity-cards/employee-entry-card.tsx
|
|
1377
|
-
import { Fragment as Fragment3, jsx as
|
|
1378
|
-
var
|
|
1379
|
-
published: "
|
|
1380
|
-
draft: "
|
|
1381
|
-
archived: "
|
|
1772
|
+
import { Fragment as Fragment3, jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1773
|
+
var STATUS_BADGE_SCHEME = {
|
|
1774
|
+
published: "success",
|
|
1775
|
+
draft: "warning",
|
|
1776
|
+
archived: "default",
|
|
1382
1777
|
// Design-doc lifecycle (product-hub) — same ODS pairs, no new palette.
|
|
1383
|
-
in_review: "
|
|
1384
|
-
approved: "
|
|
1385
|
-
building: "
|
|
1386
|
-
shipped: "
|
|
1387
|
-
abandoned: "
|
|
1778
|
+
in_review: "warning",
|
|
1779
|
+
approved: "success",
|
|
1780
|
+
building: "success",
|
|
1781
|
+
shipped: "success",
|
|
1782
|
+
abandoned: "default"
|
|
1388
1783
|
};
|
|
1389
1784
|
function EmployeeEntryBadge({ children }) {
|
|
1390
|
-
return /* @__PURE__ */
|
|
1785
|
+
return /* @__PURE__ */ jsx16(StatusBadge, { text: children, colorScheme: "default", variant: "button", singleLine: true });
|
|
1391
1786
|
}
|
|
1392
1787
|
function EmployeeEntryCard({
|
|
1393
1788
|
entry,
|
|
@@ -1399,7 +1794,7 @@ function EmployeeEntryCard({
|
|
|
1399
1794
|
anchorProps,
|
|
1400
1795
|
className
|
|
1401
1796
|
}) {
|
|
1402
|
-
const card = /* @__PURE__ */
|
|
1797
|
+
const card = /* @__PURE__ */ jsx16(
|
|
1403
1798
|
AdminContentCard,
|
|
1404
1799
|
{
|
|
1405
1800
|
imageUrl: entry.featured_image || entry.main_video_thumbnail,
|
|
@@ -1407,18 +1802,20 @@ function EmployeeEntryCard({
|
|
|
1407
1802
|
title: entry.title || untitledLabel,
|
|
1408
1803
|
summary: (entry.summary ?? "").slice(0, 140) || "No description",
|
|
1409
1804
|
badges: entry.status || extraBadges ? /* @__PURE__ */ jsxs10(Fragment3, { children: [
|
|
1410
|
-
entry.status ? /* @__PURE__ */
|
|
1411
|
-
|
|
1805
|
+
entry.status ? /* @__PURE__ */ jsx16(
|
|
1806
|
+
StatusBadge,
|
|
1412
1807
|
{
|
|
1413
|
-
|
|
1414
|
-
|
|
1808
|
+
text: entry.status,
|
|
1809
|
+
colorScheme: STATUS_BADGE_SCHEME[entry.status] ?? "default",
|
|
1810
|
+
variant: "button",
|
|
1811
|
+
singleLine: true
|
|
1415
1812
|
}
|
|
1416
1813
|
) : null,
|
|
1417
1814
|
extraBadges
|
|
1418
1815
|
] }) : null,
|
|
1419
1816
|
meta: /* @__PURE__ */ jsxs10(Fragment3, { children: [
|
|
1420
1817
|
/* @__PURE__ */ jsxs10("span", { className: "flex min-w-0 items-center gap-2", children: [
|
|
1421
|
-
entry.author?.avatar_url ? /* @__PURE__ */
|
|
1818
|
+
entry.author?.avatar_url ? /* @__PURE__ */ jsx16(
|
|
1422
1819
|
next_image_default,
|
|
1423
1820
|
{
|
|
1424
1821
|
src: getProxiedImageUrl2(entry.author.avatar_url) ?? entry.author.avatar_url,
|
|
@@ -1429,15 +1826,15 @@ function EmployeeEntryCard({
|
|
|
1429
1826
|
unoptimized: true
|
|
1430
1827
|
}
|
|
1431
1828
|
) : null,
|
|
1432
|
-
/* @__PURE__ */
|
|
1829
|
+
/* @__PURE__ */ jsx16("span", { className: "truncate", children: entry.author?.full_name ?? "" })
|
|
1433
1830
|
] }),
|
|
1434
|
-
dateLabel ? /* @__PURE__ */
|
|
1831
|
+
dateLabel ? /* @__PURE__ */ jsx16("span", { children: dateLabel }) : null
|
|
1435
1832
|
] }),
|
|
1436
1833
|
actions,
|
|
1437
1834
|
className
|
|
1438
1835
|
}
|
|
1439
1836
|
);
|
|
1440
|
-
return anchorProps ? /* @__PURE__ */
|
|
1837
|
+
return anchorProps ? /* @__PURE__ */ jsx16("a", { ...anchorProps, className: "block h-full", children: card }) : card;
|
|
1441
1838
|
}
|
|
1442
1839
|
function EmployeeEntryCardSkeleton({ className }) {
|
|
1443
1840
|
return /* @__PURE__ */ jsxs10(
|
|
@@ -1445,14 +1842,14 @@ function EmployeeEntryCardSkeleton({ className }) {
|
|
|
1445
1842
|
{
|
|
1446
1843
|
className: `group flex h-full animate-pulse flex-col overflow-hidden rounded-2xl border border-ods-border bg-ods-card ${className ?? ""}`,
|
|
1447
1844
|
children: [
|
|
1448
|
-
/* @__PURE__ */
|
|
1845
|
+
/* @__PURE__ */ jsx16("div", { className: "aspect-[3/2] bg-ods-bg" }),
|
|
1449
1846
|
/* @__PURE__ */ jsxs10("div", { className: "flex flex-grow flex-col space-y-3 p-4", children: [
|
|
1450
|
-
/* @__PURE__ */
|
|
1451
|
-
/* @__PURE__ */
|
|
1452
|
-
/* @__PURE__ */
|
|
1847
|
+
/* @__PURE__ */ jsx16("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
1848
|
+
/* @__PURE__ */ jsx16("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
1849
|
+
/* @__PURE__ */ jsx16("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" }),
|
|
1453
1850
|
/* @__PURE__ */ jsxs10("div", { className: "mt-auto flex items-center gap-2", children: [
|
|
1454
|
-
/* @__PURE__ */
|
|
1455
|
-
/* @__PURE__ */
|
|
1851
|
+
/* @__PURE__ */ jsx16("div", { className: "h-8 w-8 rounded-full bg-ods-bg" }),
|
|
1852
|
+
/* @__PURE__ */ jsx16("div", { className: "h-3 w-24 rounded bg-ods-bg/60" })
|
|
1456
1853
|
] })
|
|
1457
1854
|
] })
|
|
1458
1855
|
]
|
|
@@ -1461,9 +1858,9 @@ function EmployeeEntryCardSkeleton({ className }) {
|
|
|
1461
1858
|
}
|
|
1462
1859
|
|
|
1463
1860
|
// src/components/chat/entity-cards/what-i-shipped-card.tsx
|
|
1464
|
-
import { jsx as
|
|
1861
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1465
1862
|
function WhatIShippedCard({ entry, placeholderUrl, actions, anchorProps, className }) {
|
|
1466
|
-
return /* @__PURE__ */
|
|
1863
|
+
return /* @__PURE__ */ jsx17(
|
|
1467
1864
|
EmployeeEntryCard,
|
|
1468
1865
|
{
|
|
1469
1866
|
entry,
|
|
@@ -1478,17 +1875,17 @@ function WhatIShippedCard({ entry, placeholderUrl, actions, anchorProps, classNa
|
|
|
1478
1875
|
var WhatIShippedCardSkeleton = EmployeeEntryCardSkeleton;
|
|
1479
1876
|
|
|
1480
1877
|
// src/components/chat/entity-cards/how-i-work-card.tsx
|
|
1481
|
-
import { jsx as
|
|
1878
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1482
1879
|
function disciplineLabel(discipline) {
|
|
1483
1880
|
return discipline.replace(/_/g, " ").replace(/\b\w/g, (ch) => ch.toUpperCase());
|
|
1484
1881
|
}
|
|
1485
1882
|
function HowIWorkCard({ entry, placeholderUrl, actions, anchorProps, className }) {
|
|
1486
|
-
return /* @__PURE__ */
|
|
1883
|
+
return /* @__PURE__ */ jsx18(
|
|
1487
1884
|
EmployeeEntryCard,
|
|
1488
1885
|
{
|
|
1489
1886
|
entry,
|
|
1490
1887
|
dateLabel: entry.session_date ? formatDateUTC(entry.session_date, { fallback: "" }) || null : null,
|
|
1491
|
-
extraBadges: entry.discipline ? /* @__PURE__ */
|
|
1888
|
+
extraBadges: entry.discipline ? /* @__PURE__ */ jsx18(EmployeeEntryBadge, { children: disciplineLabel(entry.discipline) }) : null,
|
|
1492
1889
|
untitledLabel: "Untitled session",
|
|
1493
1890
|
placeholderUrl,
|
|
1494
1891
|
actions,
|
|
@@ -1500,18 +1897,18 @@ function HowIWorkCard({ entry, placeholderUrl, actions, anchorProps, className }
|
|
|
1500
1897
|
var HowIWorkCardSkeleton = EmployeeEntryCardSkeleton;
|
|
1501
1898
|
|
|
1502
1899
|
// src/components/chat/entity-cards/ai-prompt-card.tsx
|
|
1503
|
-
import { Fragment as Fragment4, jsx as
|
|
1900
|
+
import { Fragment as Fragment4, jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1504
1901
|
function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }) {
|
|
1505
|
-
const
|
|
1902
|
+
const departmentName = entry.department?.name?.trim();
|
|
1506
1903
|
const steps = typeof entry.step_count === "number" ? entry.step_count : 0;
|
|
1507
|
-
return /* @__PURE__ */
|
|
1904
|
+
return /* @__PURE__ */ jsx19(
|
|
1508
1905
|
EmployeeEntryCard,
|
|
1509
1906
|
{
|
|
1510
1907
|
entry,
|
|
1511
1908
|
dateLabel: entry.published_at ? formatDateUTC(entry.published_at, { fallback: "" }) || null : null,
|
|
1512
1909
|
extraBadges: /* @__PURE__ */ jsxs11(Fragment4, { children: [
|
|
1513
|
-
|
|
1514
|
-
steps > 1 ? /* @__PURE__ */
|
|
1910
|
+
departmentName ? /* @__PURE__ */ jsx19(DepartmentBadge, { department: { name: departmentName, color: entry.department?.color ?? null } }) : null,
|
|
1911
|
+
steps > 1 ? /* @__PURE__ */ jsx19(EmployeeEntryBadge, { children: `${steps} steps` }) : null
|
|
1515
1912
|
] }),
|
|
1516
1913
|
untitledLabel: "Untitled prompt",
|
|
1517
1914
|
placeholderUrl,
|
|
@@ -1548,7 +1945,7 @@ function sortBitesByFeaturedAtDesc(a, b) {
|
|
|
1548
1945
|
|
|
1549
1946
|
// src/components/shared/product-release/product-release-card.tsx
|
|
1550
1947
|
import { AlertTriangle, Eye, Package, Play, Sparkles, TrendingUp, Wrench } from "lucide-react";
|
|
1551
|
-
import { Fragment as Fragment5, jsx as
|
|
1948
|
+
import { Fragment as Fragment5, jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1552
1949
|
function ProductReleaseCard({
|
|
1553
1950
|
title,
|
|
1554
1951
|
summary,
|
|
@@ -1601,8 +1998,8 @@ function ProductReleaseCard({
|
|
|
1601
1998
|
);
|
|
1602
1999
|
const innerLayout = /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
1603
2000
|
/* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-4 md:flex-row md:gap-6", children: [
|
|
1604
|
-
/* @__PURE__ */
|
|
1605
|
-
coverImage ? /* @__PURE__ */
|
|
2001
|
+
/* @__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: [
|
|
2002
|
+
coverImage ? /* @__PURE__ */ jsx20(
|
|
1606
2003
|
next_image_default,
|
|
1607
2004
|
{
|
|
1608
2005
|
src: coverImage,
|
|
@@ -1612,43 +2009,43 @@ function ProductReleaseCard({
|
|
|
1612
2009
|
className: "object-cover",
|
|
1613
2010
|
unoptimized: true
|
|
1614
2011
|
}
|
|
1615
|
-
) : /* @__PURE__ */
|
|
1616
|
-
hasVideoCover && coverImage && /* @__PURE__ */
|
|
2012
|
+
) : /* @__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" }) }),
|
|
2013
|
+
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
2014
|
] }) }),
|
|
1618
2015
|
/* @__PURE__ */ jsxs12("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
1619
|
-
/* @__PURE__ */
|
|
2016
|
+
/* @__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
2017
|
"v",
|
|
1621
2018
|
version
|
|
1622
2019
|
] }) }),
|
|
1623
|
-
/* @__PURE__ */
|
|
1624
|
-
/* @__PURE__ */
|
|
2020
|
+
/* @__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 }) }),
|
|
2021
|
+
/* @__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
2022
|
] })
|
|
1626
2023
|
] }),
|
|
1627
|
-
/* @__PURE__ */
|
|
2024
|
+
/* @__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
2025
|
changelogCounts.features > 0 && /* @__PURE__ */ jsxs12("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
1629
|
-
/* @__PURE__ */
|
|
2026
|
+
/* @__PURE__ */ jsx20(Sparkles, { className: "h-3.5 w-3.5" }),
|
|
1630
2027
|
changelogCounts.features,
|
|
1631
2028
|
" ",
|
|
1632
2029
|
changelogCounts.features === 1 ? "feature" : "features"
|
|
1633
2030
|
] }),
|
|
1634
2031
|
changelogCounts.fixes > 0 && /* @__PURE__ */ jsxs12("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
1635
|
-
/* @__PURE__ */
|
|
2032
|
+
/* @__PURE__ */ jsx20(Wrench, { className: "h-3.5 w-3.5" }),
|
|
1636
2033
|
changelogCounts.fixes,
|
|
1637
2034
|
" ",
|
|
1638
2035
|
changelogCounts.fixes === 1 ? "fix" : "fixes"
|
|
1639
2036
|
] }),
|
|
1640
2037
|
changelogCounts.improvements > 0 && /* @__PURE__ */ jsxs12("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
1641
|
-
/* @__PURE__ */
|
|
2038
|
+
/* @__PURE__ */ jsx20(TrendingUp, { className: "h-3.5 w-3.5" }),
|
|
1642
2039
|
changelogCounts.improvements,
|
|
1643
2040
|
" ",
|
|
1644
2041
|
changelogCounts.improvements === 1 ? "improvement" : "improvements"
|
|
1645
2042
|
] }),
|
|
1646
2043
|
changelogCounts.breaking > 0 && /* @__PURE__ */ jsxs12("span", { className: "inline-flex items-center gap-1.5 text-ods-warning", children: [
|
|
1647
|
-
/* @__PURE__ */
|
|
2044
|
+
/* @__PURE__ */ jsx20(AlertTriangle, { className: "h-3.5 w-3.5" }),
|
|
1648
2045
|
changelogCounts.breaking,
|
|
1649
2046
|
" breaking"
|
|
1650
2047
|
] })
|
|
1651
|
-
] }) : /* @__PURE__ */
|
|
2048
|
+
] }) : /* @__PURE__ */ jsx20("span", { className: "text-ods-text-secondary", children: "No changelog entries yet" }) }),
|
|
1652
2049
|
/* @__PURE__ */ jsxs12(
|
|
1653
2050
|
"div",
|
|
1654
2051
|
{
|
|
@@ -1658,8 +2055,8 @@ function ProductReleaseCard({
|
|
|
1658
2055
|
"w-full overflow-hidden rounded-md border border-ods-border"
|
|
1659
2056
|
),
|
|
1660
2057
|
children: [
|
|
1661
|
-
valueCells.map((cell, i) => /* @__PURE__ */
|
|
1662
|
-
cell.colorScheme ? /* @__PURE__ */
|
|
2058
|
+
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: [
|
|
2059
|
+
cell.colorScheme ? /* @__PURE__ */ jsx20(
|
|
1663
2060
|
StatusBadge,
|
|
1664
2061
|
{
|
|
1665
2062
|
text: cell.value,
|
|
@@ -1668,7 +2065,7 @@ function ProductReleaseCard({
|
|
|
1668
2065
|
singleLine: true,
|
|
1669
2066
|
className: "self-start"
|
|
1670
2067
|
}
|
|
1671
|
-
) : /* @__PURE__ */
|
|
2068
|
+
) : /* @__PURE__ */ jsx20(
|
|
1672
2069
|
"p",
|
|
1673
2070
|
{
|
|
1674
2071
|
className: cn(
|
|
@@ -1680,10 +2077,10 @@ function ProductReleaseCard({
|
|
|
1680
2077
|
children: cell.uppercase ? cell.value.toLocaleUpperCase() : cell.value
|
|
1681
2078
|
}
|
|
1682
2079
|
),
|
|
1683
|
-
/* @__PURE__ */
|
|
2080
|
+
/* @__PURE__ */ jsx20("p", { className: "text-ods-text-secondary text-h6", children: cell.label })
|
|
1684
2081
|
] }) }, `${cell.label}-${i}`)),
|
|
1685
2082
|
/* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-3 bg-ods-card p-4", children: [
|
|
1686
|
-
/* @__PURE__ */
|
|
2083
|
+
/* @__PURE__ */ jsx20(
|
|
1687
2084
|
SquareAvatar,
|
|
1688
2085
|
{
|
|
1689
2086
|
src: effectiveAuthor.avatar_url ?? void 0,
|
|
@@ -1694,15 +2091,15 @@ function ProductReleaseCard({
|
|
|
1694
2091
|
}
|
|
1695
2092
|
),
|
|
1696
2093
|
/* @__PURE__ */ jsxs12("div", { className: "flex min-w-0 flex-1 flex-col gap-0", children: [
|
|
1697
|
-
/* @__PURE__ */
|
|
1698
|
-
/* @__PURE__ */
|
|
2094
|
+
/* @__PURE__ */ jsx20("p", { className: "truncate tracking-[-0.36px] text-ods-text-primary text-h3", children: effectiveAuthor.full_name }),
|
|
2095
|
+
/* @__PURE__ */ jsx20("p", { className: "text-ods-text-secondary text-h6", children: effectiveAuthor.job_title || "Author" })
|
|
1699
2096
|
] })
|
|
1700
2097
|
] })
|
|
1701
2098
|
]
|
|
1702
2099
|
}
|
|
1703
2100
|
),
|
|
1704
2101
|
typeof viewCount === "number" && viewCount > 0 && /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-1.5 text-ods-text-secondary text-h6", children: [
|
|
1705
|
-
/* @__PURE__ */
|
|
2102
|
+
/* @__PURE__ */ jsx20(Eye, { className: "h-3.5 w-3.5" }),
|
|
1706
2103
|
/* @__PURE__ */ jsxs12("span", { children: [
|
|
1707
2104
|
viewCount.toLocaleString(),
|
|
1708
2105
|
" views"
|
|
@@ -1710,12 +2107,12 @@ function ProductReleaseCard({
|
|
|
1710
2107
|
] })
|
|
1711
2108
|
] });
|
|
1712
2109
|
if (anchorProps) {
|
|
1713
|
-
return /* @__PURE__ */
|
|
2110
|
+
return /* @__PURE__ */ jsx20("a", { ...anchorProps, className: frameClass, "aria-label": `Open ${title}`, children: innerLayout });
|
|
1714
2111
|
}
|
|
1715
2112
|
if (onClick) {
|
|
1716
|
-
return /* @__PURE__ */
|
|
2113
|
+
return /* @__PURE__ */ jsx20(InteractiveCard, { clickable: true, onClick, className: frameClass, children: innerLayout });
|
|
1717
2114
|
}
|
|
1718
|
-
return /* @__PURE__ */
|
|
2115
|
+
return /* @__PURE__ */ jsx20("div", { className: cn(frameClass.replace("hover:border-ods-accent", "").replace("hover:translate-y-[-2px]", "")), children: innerLayout });
|
|
1719
2116
|
}
|
|
1720
2117
|
if (size === "sm") {
|
|
1721
2118
|
const handleKey = (e) => {
|
|
@@ -1744,22 +2141,22 @@ function ProductReleaseCard({
|
|
|
1744
2141
|
);
|
|
1745
2142
|
const innerChildren = /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
1746
2143
|
/* @__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__ */
|
|
2144
|
+
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" }),
|
|
2145
|
+
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
2146
|
] }),
|
|
1750
2147
|
/* @__PURE__ */ jsxs12("span", { className: "flex min-h-14 min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
1751
2148
|
/* @__PURE__ */ jsxs12("span", { className: "flex h-5 min-w-0 items-center gap-2", children: [
|
|
1752
|
-
/* @__PURE__ */
|
|
1753
|
-
version ? /* @__PURE__ */
|
|
2149
|
+
/* @__PURE__ */ jsx20("span", { className: "min-w-0 truncate font-semibold text-ods-text-primary text-h6", title, children: title }),
|
|
2150
|
+
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
2151
|
] }),
|
|
1755
|
-
/* @__PURE__ */
|
|
1756
|
-
/* @__PURE__ */
|
|
2152
|
+
/* @__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" }) }),
|
|
2153
|
+
/* @__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
2154
|
] })
|
|
1758
2155
|
] });
|
|
1759
2156
|
if (anchorProps) {
|
|
1760
|
-
return /* @__PURE__ */
|
|
2157
|
+
return /* @__PURE__ */ jsx20("a", { ...anchorProps, className: outerClassName, children: innerChildren });
|
|
1761
2158
|
}
|
|
1762
|
-
return /* @__PURE__ */
|
|
2159
|
+
return /* @__PURE__ */ jsx20(
|
|
1763
2160
|
"span",
|
|
1764
2161
|
{
|
|
1765
2162
|
role: onClick ? "button" : void 0,
|
|
@@ -1775,7 +2172,7 @@ function ProductReleaseCard({
|
|
|
1775
2172
|
}
|
|
1776
2173
|
|
|
1777
2174
|
// src/components/shared/product-release/product-release-card-skeleton.tsx
|
|
1778
|
-
import { jsx as
|
|
2175
|
+
import { jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1779
2176
|
function ProductReleaseCardSkeleton({ className, size = "lg" }) {
|
|
1780
2177
|
if (size === "lg") {
|
|
1781
2178
|
return /* @__PURE__ */ jsxs13(
|
|
@@ -1789,38 +2186,38 @@ function ProductReleaseCardSkeleton({ className, size = "lg" }) {
|
|
|
1789
2186
|
),
|
|
1790
2187
|
children: [
|
|
1791
2188
|
/* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-4 md:flex-row md:gap-6", children: [
|
|
1792
|
-
/* @__PURE__ */
|
|
2189
|
+
/* @__PURE__ */ jsx21("div", { className: "aspect-[1200/630] w-full flex-shrink-0 rounded-lg bg-ods-border md:w-[256px]" }),
|
|
1793
2190
|
/* @__PURE__ */ jsxs13("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
1794
|
-
/* @__PURE__ */
|
|
2191
|
+
/* @__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
2192
|
/* @__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__ */
|
|
2193
|
+
/* @__PURE__ */ jsx21("div", { className: "h-[25px] w-3/4 rounded bg-ods-border md:h-[30px]" }),
|
|
2194
|
+
/* @__PURE__ */ jsx21("div", { className: "h-[25px] w-1/2 rounded bg-ods-border md:h-[30px]" })
|
|
1798
2195
|
] }),
|
|
1799
2196
|
/* @__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__ */
|
|
2197
|
+
/* @__PURE__ */ jsx21("div", { className: "h-3 w-full rounded bg-ods-border/70" }),
|
|
2198
|
+
/* @__PURE__ */ jsx21("div", { className: "h-3 w-11/12 rounded bg-ods-border/70" }),
|
|
2199
|
+
/* @__PURE__ */ jsx21("div", { className: "h-3 w-5/6 rounded bg-ods-border/70" })
|
|
1803
2200
|
] })
|
|
1804
2201
|
] })
|
|
1805
2202
|
] }),
|
|
1806
|
-
/* @__PURE__ */
|
|
2203
|
+
/* @__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
2204
|
/* @__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__ */
|
|
2205
|
+
[0, 1, 2].map((i) => /* @__PURE__ */ jsx21(
|
|
1809
2206
|
"div",
|
|
1810
2207
|
{
|
|
1811
2208
|
className: "flex flex-col gap-3 border-b border-ods-border bg-ods-card p-4 md:border-b-0 md:border-r",
|
|
1812
2209
|
children: /* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-2", children: [
|
|
1813
|
-
/* @__PURE__ */
|
|
1814
|
-
/* @__PURE__ */
|
|
2210
|
+
/* @__PURE__ */ jsx21("div", { className: "h-7 w-24 rounded bg-ods-bg" }),
|
|
2211
|
+
/* @__PURE__ */ jsx21("div", { className: "h-4 w-16 rounded bg-ods-bg/60" })
|
|
1815
2212
|
] })
|
|
1816
2213
|
},
|
|
1817
2214
|
`cell-${i}`
|
|
1818
2215
|
)),
|
|
1819
2216
|
/* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-3 bg-ods-card p-4", children: [
|
|
1820
|
-
/* @__PURE__ */
|
|
2217
|
+
/* @__PURE__ */ jsx21("div", { className: "h-10 w-10 shrink-0 rounded-full bg-ods-bg" }),
|
|
1821
2218
|
/* @__PURE__ */ jsxs13("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
1822
|
-
/* @__PURE__ */
|
|
1823
|
-
/* @__PURE__ */
|
|
2219
|
+
/* @__PURE__ */ jsx21("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
2220
|
+
/* @__PURE__ */ jsx21("div", { className: "h-4 w-1/2 rounded bg-ods-bg/60" })
|
|
1824
2221
|
] })
|
|
1825
2222
|
] })
|
|
1826
2223
|
] })
|
|
@@ -1838,14 +2235,14 @@ function ProductReleaseCardSkeleton({ className, size = "lg" }) {
|
|
|
1838
2235
|
className
|
|
1839
2236
|
),
|
|
1840
2237
|
children: [
|
|
1841
|
-
/* @__PURE__ */
|
|
2238
|
+
/* @__PURE__ */ jsx21("span", { className: "block aspect-square h-14 w-14 shrink-0 self-start rounded-md bg-ods-bg" }),
|
|
1842
2239
|
/* @__PURE__ */ jsxs13("span", { className: "flex min-h-14 min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
1843
2240
|
/* @__PURE__ */ jsxs13("span", { className: "flex h-5 min-w-0 items-center gap-2", children: [
|
|
1844
|
-
/* @__PURE__ */
|
|
1845
|
-
/* @__PURE__ */
|
|
2241
|
+
/* @__PURE__ */ jsx21("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }),
|
|
2242
|
+
/* @__PURE__ */ jsx21("span", { className: "h-4 w-12 shrink-0 rounded bg-ods-bg/70" })
|
|
1846
2243
|
] }),
|
|
1847
|
-
/* @__PURE__ */
|
|
1848
|
-
/* @__PURE__ */
|
|
2244
|
+
/* @__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" }) }),
|
|
2245
|
+
/* @__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
2246
|
] })
|
|
1850
2247
|
]
|
|
1851
2248
|
}
|
|
@@ -2032,28 +2429,28 @@ function useEntityCardPlaceholder({
|
|
|
2032
2429
|
}
|
|
2033
2430
|
|
|
2034
2431
|
// src/components/chat/entity-cards/blog-card.tsx
|
|
2035
|
-
import { Fragment as Fragment6, jsx as
|
|
2432
|
+
import { Fragment as Fragment6, jsx as jsx22, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2036
2433
|
function BlogCardSkeleton({ size = "default" }) {
|
|
2037
2434
|
if (size === "sm") {
|
|
2038
2435
|
return /* @__PURE__ */ jsxs14("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
2039
|
-
/* @__PURE__ */
|
|
2436
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
2040
2437
|
/* @__PURE__ */ jsxs14("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2041
|
-
/* @__PURE__ */
|
|
2042
|
-
/* @__PURE__ */
|
|
2043
|
-
/* @__PURE__ */
|
|
2438
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx22("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
2439
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx22("span", { className: "h-3 w-2/5 rounded bg-ods-bg/70" }) }),
|
|
2440
|
+
/* @__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
2441
|
] })
|
|
2045
2442
|
] });
|
|
2046
2443
|
}
|
|
2047
2444
|
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__ */
|
|
2445
|
+
/* @__PURE__ */ jsx22("div", { className: "aspect-[1200/630] bg-ods-bg" }),
|
|
2049
2446
|
/* @__PURE__ */ jsxs14("div", { className: "flex flex-grow flex-col space-y-3 p-4", children: [
|
|
2050
|
-
/* @__PURE__ */
|
|
2051
|
-
/* @__PURE__ */
|
|
2052
|
-
/* @__PURE__ */
|
|
2053
|
-
/* @__PURE__ */
|
|
2447
|
+
/* @__PURE__ */ jsx22("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
2448
|
+
/* @__PURE__ */ jsx22("div", { className: "h-5 w-1/2 rounded bg-ods-bg" }),
|
|
2449
|
+
/* @__PURE__ */ jsx22("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
2450
|
+
/* @__PURE__ */ jsx22("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" }),
|
|
2054
2451
|
/* @__PURE__ */ jsxs14("div", { className: "mt-auto flex items-center gap-2", children: [
|
|
2055
|
-
/* @__PURE__ */
|
|
2056
|
-
/* @__PURE__ */
|
|
2452
|
+
/* @__PURE__ */ jsx22("div", { className: "h-8 w-8 rounded-full bg-ods-bg" }),
|
|
2453
|
+
/* @__PURE__ */ jsx22("div", { className: "h-3 w-24 rounded bg-ods-bg/60" })
|
|
2057
2454
|
] })
|
|
2058
2455
|
] })
|
|
2059
2456
|
] });
|
|
@@ -2100,7 +2497,7 @@ function BlogCard({
|
|
|
2100
2497
|
className: cn(COMPACT_CARD_OUTER, className),
|
|
2101
2498
|
"aria-label": `Read article: ${post.title}`,
|
|
2102
2499
|
children: [
|
|
2103
|
-
/* @__PURE__ */
|
|
2500
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_IMAGE_SLOT, children: displayImage ? /* @__PURE__ */ jsx22(
|
|
2104
2501
|
next_image_default,
|
|
2105
2502
|
{
|
|
2106
2503
|
src: displayImage,
|
|
@@ -2114,15 +2511,15 @@ function BlogCard({
|
|
|
2114
2511
|
) : null }),
|
|
2115
2512
|
/* @__PURE__ */ jsxs14("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2116
2513
|
/* @__PURE__ */ jsxs14("span", { className: cn(COMPACT_CARD_TITLE_ROW, "gap-1.5"), children: [
|
|
2117
|
-
/* @__PURE__ */
|
|
2118
|
-
hasEmbeddedVideo ? /* @__PURE__ */
|
|
2514
|
+
/* @__PURE__ */ jsx22("span", { className: cn(COMPACT_CARD_TITLE, "font-body"), children: post.title }),
|
|
2515
|
+
hasEmbeddedVideo ? /* @__PURE__ */ jsx22(StatusBadge, { text: "Video", variant: "button", colorScheme: "cyan", className: "shrink-0" }) : null
|
|
2119
2516
|
] }),
|
|
2120
|
-
/* @__PURE__ */
|
|
2517
|
+
/* @__PURE__ */ jsx22("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsxs14("span", { className: COMPACT_CARD_SUBTITLE, children: [
|
|
2121
2518
|
dateStr2,
|
|
2122
2519
|
dateStr2 && firstCategory ? " \xB7 " : "",
|
|
2123
2520
|
firstCategory ?? "Blog Post"
|
|
2124
2521
|
] }) }),
|
|
2125
|
-
/* @__PURE__ */
|
|
2522
|
+
/* @__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
2523
|
] })
|
|
2127
2524
|
]
|
|
2128
2525
|
}
|
|
@@ -2135,7 +2532,7 @@ function BlogCard({
|
|
|
2135
2532
|
day: "numeric",
|
|
2136
2533
|
timeZone: "UTC"
|
|
2137
2534
|
}) : "";
|
|
2138
|
-
return /* @__PURE__ */
|
|
2535
|
+
return /* @__PURE__ */ jsx22(
|
|
2139
2536
|
EntityPortraitCard,
|
|
2140
2537
|
{
|
|
2141
2538
|
href,
|
|
@@ -2161,7 +2558,7 @@ function BlogCard({
|
|
|
2161
2558
|
day: "numeric",
|
|
2162
2559
|
timeZone: "UTC"
|
|
2163
2560
|
}) : "";
|
|
2164
|
-
return /* @__PURE__ */
|
|
2561
|
+
return /* @__PURE__ */ jsx22(
|
|
2165
2562
|
"article",
|
|
2166
2563
|
{
|
|
2167
2564
|
className: cn(
|
|
@@ -2182,7 +2579,7 @@ function BlogCard({
|
|
|
2182
2579
|
className: "flex h-full flex-col focus:outline-none",
|
|
2183
2580
|
"aria-label": `Read article: ${post.title}`,
|
|
2184
2581
|
children: [
|
|
2185
|
-
/* @__PURE__ */
|
|
2582
|
+
/* @__PURE__ */ jsx22("div", { className: "relative aspect-[1200/630] w-full overflow-hidden bg-ods-bg", children: displayImage ? /* @__PURE__ */ jsx22(
|
|
2186
2583
|
next_image_default,
|
|
2187
2584
|
{
|
|
2188
2585
|
src: displayImage,
|
|
@@ -2197,7 +2594,7 @@ function BlogCard({
|
|
|
2197
2594
|
}
|
|
2198
2595
|
) : null }),
|
|
2199
2596
|
/* @__PURE__ */ jsxs14("div", { className: "flex flex-grow flex-col p-4", children: [
|
|
2200
|
-
/* @__PURE__ */
|
|
2597
|
+
/* @__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
2598
|
"h3",
|
|
2202
2599
|
{
|
|
2203
2600
|
className: cn(
|
|
@@ -2209,10 +2606,10 @@ function BlogCard({
|
|
|
2209
2606
|
children: post.title
|
|
2210
2607
|
}
|
|
2211
2608
|
) }),
|
|
2212
|
-
/* @__PURE__ */
|
|
2609
|
+
/* @__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
2610
|
/* @__PURE__ */ jsxs14("div", { className: "mt-auto flex items-center justify-between gap-2 text-ods-text-secondary text-h6", children: [
|
|
2214
2611
|
/* @__PURE__ */ jsxs14("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
2215
|
-
post.author_avatar ? /* @__PURE__ */
|
|
2612
|
+
post.author_avatar ? /* @__PURE__ */ jsx22(
|
|
2216
2613
|
next_image_default,
|
|
2217
2614
|
{
|
|
2218
2615
|
src: post.author_avatar,
|
|
@@ -2237,8 +2634,8 @@ function BlogCard({
|
|
|
2237
2634
|
className: "flex shrink-0 items-center gap-1",
|
|
2238
2635
|
"aria-label": `View count: ${(post.view_count ?? 0).toLocaleString("en-US")} views`,
|
|
2239
2636
|
children: [
|
|
2240
|
-
/* @__PURE__ */
|
|
2241
|
-
/* @__PURE__ */
|
|
2637
|
+
/* @__PURE__ */ jsx22(Eye2, { className: "h-4 w-4 shrink-0" }),
|
|
2638
|
+
/* @__PURE__ */ jsx22("span", { children: (post.view_count ?? 0).toLocaleString("en-US") })
|
|
2242
2639
|
]
|
|
2243
2640
|
}
|
|
2244
2641
|
)
|
|
@@ -2252,29 +2649,29 @@ function BlogCard({
|
|
|
2252
2649
|
}
|
|
2253
2650
|
|
|
2254
2651
|
// src/components/chat/entity-cards/case-study-card.tsx
|
|
2255
|
-
import { jsx as
|
|
2652
|
+
import { jsx as jsx23, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2256
2653
|
function CaseStudyCardSkeleton({ size = "default" }) {
|
|
2257
2654
|
if (size === "sm") {
|
|
2258
2655
|
return /* @__PURE__ */ jsxs15("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
2259
|
-
/* @__PURE__ */
|
|
2656
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
2260
2657
|
/* @__PURE__ */ jsxs15("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2261
|
-
/* @__PURE__ */
|
|
2262
|
-
/* @__PURE__ */
|
|
2263
|
-
/* @__PURE__ */
|
|
2658
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx23("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
2659
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx23("span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
2660
|
+
/* @__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
2661
|
] })
|
|
2265
2662
|
] });
|
|
2266
2663
|
}
|
|
2267
2664
|
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__ */
|
|
2665
|
+
/* @__PURE__ */ jsx23("div", { className: "aspect-[1200/630] w-full rounded-sm bg-ods-bg" }),
|
|
2269
2666
|
/* @__PURE__ */ jsxs15("div", { className: "flex h-[72px] flex-col gap-2", children: [
|
|
2270
|
-
/* @__PURE__ */
|
|
2271
|
-
/* @__PURE__ */
|
|
2667
|
+
/* @__PURE__ */ jsx23("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
2668
|
+
/* @__PURE__ */ jsx23("div", { className: "h-5 w-1/2 rounded bg-ods-bg" })
|
|
2272
2669
|
] }),
|
|
2273
2670
|
/* @__PURE__ */ jsxs15("div", { className: "flex h-[60px] items-center gap-3", children: [
|
|
2274
|
-
/* @__PURE__ */
|
|
2671
|
+
/* @__PURE__ */ jsx23("div", { className: "h-12 w-12 rounded-full bg-ods-bg" }),
|
|
2275
2672
|
/* @__PURE__ */ jsxs15("div", { className: "flex-1 space-y-2", children: [
|
|
2276
|
-
/* @__PURE__ */
|
|
2277
|
-
/* @__PURE__ */
|
|
2673
|
+
/* @__PURE__ */ jsx23("div", { className: "h-4 w-2/3 rounded bg-ods-bg" }),
|
|
2674
|
+
/* @__PURE__ */ jsx23("div", { className: "h-3 w-1/2 rounded bg-ods-bg/60" })
|
|
2278
2675
|
] })
|
|
2279
2676
|
] })
|
|
2280
2677
|
] });
|
|
@@ -2304,7 +2701,7 @@ function CaseStudyCard({
|
|
|
2304
2701
|
const coverImage = study.featured_image || placeholderUrl || null;
|
|
2305
2702
|
if (size === "sm") {
|
|
2306
2703
|
return /* @__PURE__ */ jsxs15("a", { href, target, rel, className: cn(COMPACT_CARD_OUTER, className), children: [
|
|
2307
|
-
/* @__PURE__ */
|
|
2704
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_IMAGE_SLOT, children: coverImage ? /* @__PURE__ */ jsx23(
|
|
2308
2705
|
next_image_default,
|
|
2309
2706
|
{
|
|
2310
2707
|
src: coverImage,
|
|
@@ -2317,14 +2714,14 @@ function CaseStudyCard({
|
|
|
2317
2714
|
}
|
|
2318
2715
|
) : null }),
|
|
2319
2716
|
/* @__PURE__ */ jsxs15("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2320
|
-
/* @__PURE__ */
|
|
2321
|
-
/* @__PURE__ */
|
|
2322
|
-
/* @__PURE__ */
|
|
2717
|
+
/* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx23("span", { className: COMPACT_CARD_TITLE, children: study.title }) }),
|
|
2718
|
+
/* @__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" }) }),
|
|
2719
|
+
/* @__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
2720
|
] })
|
|
2324
2721
|
] });
|
|
2325
2722
|
}
|
|
2326
2723
|
if (size === "portrait") {
|
|
2327
|
-
return /* @__PURE__ */
|
|
2724
|
+
return /* @__PURE__ */ jsx23(
|
|
2328
2725
|
EntityPortraitCard,
|
|
2329
2726
|
{
|
|
2330
2727
|
href,
|
|
@@ -2345,8 +2742,8 @@ function CaseStudyCard({
|
|
|
2345
2742
|
}
|
|
2346
2743
|
);
|
|
2347
2744
|
}
|
|
2348
|
-
return /* @__PURE__ */
|
|
2349
|
-
/* @__PURE__ */
|
|
2745
|
+
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: [
|
|
2746
|
+
/* @__PURE__ */ jsx23("div", { className: "relative aspect-[1200/630] w-full shrink-0 overflow-hidden rounded-sm bg-ods-bg", children: coverImage && /* @__PURE__ */ jsx23(
|
|
2350
2747
|
next_image_default,
|
|
2351
2748
|
{
|
|
2352
2749
|
src: coverImage,
|
|
@@ -2358,10 +2755,10 @@ function CaseStudyCard({
|
|
|
2358
2755
|
onError: hideOnError
|
|
2359
2756
|
}
|
|
2360
2757
|
) }),
|
|
2361
|
-
/* @__PURE__ */
|
|
2362
|
-
/* @__PURE__ */
|
|
2758
|
+
/* @__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 }) }),
|
|
2759
|
+
/* @__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
2760
|
/* @__PURE__ */ jsxs15("div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2364
|
-
study.user?.avatar_url ? /* @__PURE__ */
|
|
2761
|
+
study.user?.avatar_url ? /* @__PURE__ */ jsx23(
|
|
2365
2762
|
next_image_default,
|
|
2366
2763
|
{
|
|
2367
2764
|
src: study.user.avatar_url,
|
|
@@ -2371,8 +2768,8 @@ function CaseStudyCard({
|
|
|
2371
2768
|
height: 48,
|
|
2372
2769
|
unoptimized: true
|
|
2373
2770
|
}
|
|
2374
|
-
) : /* @__PURE__ */
|
|
2375
|
-
study.msp?.icon_url && /* @__PURE__ */
|
|
2771
|
+
) : /* @__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() }) }),
|
|
2772
|
+
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
2773
|
next_image_default,
|
|
2377
2774
|
{
|
|
2378
2775
|
src: study.msp.icon_url,
|
|
@@ -2392,7 +2789,7 @@ function CaseStudyCard({
|
|
|
2392
2789
|
study.msp.name
|
|
2393
2790
|
] })
|
|
2394
2791
|
] }),
|
|
2395
|
-
/* @__PURE__ */
|
|
2792
|
+
/* @__PURE__ */ jsx23("p", { className: "truncate text-ods-text-secondary text-h6", children: study.user?.job_title || "\xA0" })
|
|
2396
2793
|
] })
|
|
2397
2794
|
] }) })
|
|
2398
2795
|
] }) });
|
|
@@ -2400,34 +2797,34 @@ function CaseStudyCard({
|
|
|
2400
2797
|
|
|
2401
2798
|
// src/components/chat/entity-cards/customer-interview-card.tsx
|
|
2402
2799
|
import { Video } from "lucide-react";
|
|
2403
|
-
import { Fragment as Fragment7, jsx as
|
|
2800
|
+
import { Fragment as Fragment7, jsx as jsx24, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2404
2801
|
function CustomerInterviewCardSkeleton({ size = "default" }) {
|
|
2405
2802
|
if (size === "sm") {
|
|
2406
2803
|
return /* @__PURE__ */ jsxs16("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
2407
|
-
/* @__PURE__ */
|
|
2804
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
2408
2805
|
/* @__PURE__ */ jsxs16("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2409
|
-
/* @__PURE__ */
|
|
2410
|
-
/* @__PURE__ */
|
|
2411
|
-
/* @__PURE__ */
|
|
2806
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx24("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
2807
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx24("span", { className: "h-3 w-2/5 rounded bg-ods-bg/70" }) }),
|
|
2808
|
+
/* @__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
2809
|
] })
|
|
2413
2810
|
] });
|
|
2414
2811
|
}
|
|
2415
2812
|
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__ */
|
|
2813
|
+
/* @__PURE__ */ jsx24("div", { className: "aspect-[1200/630] w-full rounded-sm bg-ods-bg" }),
|
|
2417
2814
|
/* @__PURE__ */ jsxs16("div", { className: "space-y-2", children: [
|
|
2418
|
-
/* @__PURE__ */
|
|
2419
|
-
/* @__PURE__ */
|
|
2815
|
+
/* @__PURE__ */ jsx24("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
2816
|
+
/* @__PURE__ */ jsx24("div", { className: "h-5 w-1/2 rounded bg-ods-bg" })
|
|
2420
2817
|
] }),
|
|
2421
2818
|
/* @__PURE__ */ jsxs16("div", { className: "space-y-2", children: [
|
|
2422
|
-
/* @__PURE__ */
|
|
2423
|
-
/* @__PURE__ */
|
|
2424
|
-
/* @__PURE__ */
|
|
2819
|
+
/* @__PURE__ */ jsx24("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
2820
|
+
/* @__PURE__ */ jsx24("div", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }),
|
|
2821
|
+
/* @__PURE__ */ jsx24("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" })
|
|
2425
2822
|
] }),
|
|
2426
2823
|
/* @__PURE__ */ jsxs16("div", { className: "mt-auto flex h-[60px] items-center gap-3", children: [
|
|
2427
|
-
/* @__PURE__ */
|
|
2824
|
+
/* @__PURE__ */ jsx24("div", { className: "h-12 w-12 rounded-full bg-ods-bg" }),
|
|
2428
2825
|
/* @__PURE__ */ jsxs16("div", { className: "flex-1 space-y-2", children: [
|
|
2429
|
-
/* @__PURE__ */
|
|
2430
|
-
/* @__PURE__ */
|
|
2826
|
+
/* @__PURE__ */ jsx24("div", { className: "h-4 w-2/3 rounded bg-ods-bg" }),
|
|
2827
|
+
/* @__PURE__ */ jsx24("div", { className: "h-3 w-1/2 rounded bg-ods-bg/60" })
|
|
2431
2828
|
] })
|
|
2432
2829
|
] })
|
|
2433
2830
|
] });
|
|
@@ -2458,7 +2855,7 @@ function CustomerInterviewCard({
|
|
|
2458
2855
|
if (size === "sm") {
|
|
2459
2856
|
return /* @__PURE__ */ jsxs16("a", { href, target, rel, className: cn(COMPACT_CARD_OUTER, className), children: [
|
|
2460
2857
|
/* @__PURE__ */ jsxs16("span", { className: COMPACT_CARD_IMAGE_SLOT, children: [
|
|
2461
|
-
thumbnailUrl ? /* @__PURE__ */
|
|
2858
|
+
thumbnailUrl ? /* @__PURE__ */ jsx24(
|
|
2462
2859
|
next_image_default,
|
|
2463
2860
|
{
|
|
2464
2861
|
src: thumbnailUrl,
|
|
@@ -2470,17 +2867,17 @@ function CustomerInterviewCard({
|
|
|
2470
2867
|
onError: hideOnError
|
|
2471
2868
|
}
|
|
2472
2869
|
) : null,
|
|
2473
|
-
interview.main_video_url ? /* @__PURE__ */
|
|
2870
|
+
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
2871
|
] }),
|
|
2475
2872
|
/* @__PURE__ */ jsxs16("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2476
|
-
/* @__PURE__ */
|
|
2477
|
-
/* @__PURE__ */
|
|
2478
|
-
/* @__PURE__ */
|
|
2873
|
+
/* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx24("span", { className: COMPACT_CARD_TITLE, children: interview.title }) }),
|
|
2874
|
+
/* @__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" }) }),
|
|
2875
|
+
/* @__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
2876
|
] })
|
|
2480
2877
|
] });
|
|
2481
2878
|
}
|
|
2482
2879
|
if (size === "portrait") {
|
|
2483
|
-
return /* @__PURE__ */
|
|
2880
|
+
return /* @__PURE__ */ jsx24(
|
|
2484
2881
|
EntityPortraitCard,
|
|
2485
2882
|
{
|
|
2486
2883
|
href,
|
|
@@ -2501,9 +2898,9 @@ function CustomerInterviewCard({
|
|
|
2501
2898
|
}
|
|
2502
2899
|
);
|
|
2503
2900
|
}
|
|
2504
|
-
return /* @__PURE__ */
|
|
2505
|
-
/* @__PURE__ */
|
|
2506
|
-
/* @__PURE__ */
|
|
2901
|
+
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: [
|
|
2902
|
+
/* @__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: [
|
|
2903
|
+
/* @__PURE__ */ jsx24(
|
|
2507
2904
|
next_image_default,
|
|
2508
2905
|
{
|
|
2509
2906
|
src: thumbnailUrl,
|
|
@@ -2515,13 +2912,13 @@ function CustomerInterviewCard({
|
|
|
2515
2912
|
onError: hideOnError
|
|
2516
2913
|
}
|
|
2517
2914
|
),
|
|
2518
|
-
interview.main_video_url && /* @__PURE__ */
|
|
2519
|
-
] }) : /* @__PURE__ */
|
|
2520
|
-
/* @__PURE__ */
|
|
2521
|
-
interview.video_summary && /* @__PURE__ */
|
|
2522
|
-
/* @__PURE__ */
|
|
2915
|
+
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" }) }) })
|
|
2916
|
+
] }) : /* @__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" }) }) }),
|
|
2917
|
+
/* @__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 }) }),
|
|
2918
|
+
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 }) }),
|
|
2919
|
+
/* @__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
2920
|
/* @__PURE__ */ jsxs16("div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2524
|
-
interview.user?.avatar_url ? /* @__PURE__ */
|
|
2921
|
+
interview.user?.avatar_url ? /* @__PURE__ */ jsx24(
|
|
2525
2922
|
next_image_default,
|
|
2526
2923
|
{
|
|
2527
2924
|
src: interview.user.avatar_url,
|
|
@@ -2531,8 +2928,8 @@ function CustomerInterviewCard({
|
|
|
2531
2928
|
height: 48,
|
|
2532
2929
|
unoptimized: true
|
|
2533
2930
|
}
|
|
2534
|
-
) : /* @__PURE__ */
|
|
2535
|
-
interview.msp?.icon_url && /* @__PURE__ */
|
|
2931
|
+
) : /* @__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() }) }),
|
|
2932
|
+
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
2933
|
next_image_default,
|
|
2537
2934
|
{
|
|
2538
2935
|
src: interview.msp.icon_url,
|
|
@@ -2552,7 +2949,7 @@ function CustomerInterviewCard({
|
|
|
2552
2949
|
interview.msp.name
|
|
2553
2950
|
] })
|
|
2554
2951
|
] }),
|
|
2555
|
-
/* @__PURE__ */
|
|
2952
|
+
/* @__PURE__ */ jsx24("p", { className: "truncate text-ods-text-secondary text-h6", children: interview.user?.job_title || " " })
|
|
2556
2953
|
] })
|
|
2557
2954
|
] }) })
|
|
2558
2955
|
] }) });
|
|
@@ -2574,28 +2971,28 @@ function formatInvestorUpdatePeriod(start, end, options) {
|
|
|
2574
2971
|
|
|
2575
2972
|
// src/components/chat/entity-cards/investor-update-card.tsx
|
|
2576
2973
|
import { Calendar } from "lucide-react";
|
|
2577
|
-
import { jsx as
|
|
2974
|
+
import { jsx as jsx25, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2578
2975
|
function InvestorUpdateCardSkeleton({ size = "default" }) {
|
|
2579
2976
|
if (size === "sm") {
|
|
2580
2977
|
return /* @__PURE__ */ jsxs17("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
2581
|
-
/* @__PURE__ */
|
|
2978
|
+
/* @__PURE__ */ jsx25("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
2582
2979
|
/* @__PURE__ */ jsxs17("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2583
2980
|
/* @__PURE__ */ jsxs17("span", { className: `${COMPACT_CARD_TITLE_ROW} flex-nowrap gap-2`, children: [
|
|
2584
|
-
/* @__PURE__ */
|
|
2585
|
-
/* @__PURE__ */
|
|
2981
|
+
/* @__PURE__ */ jsx25("span", { className: "h-3.5 w-1/2 rounded bg-ods-bg" }),
|
|
2982
|
+
/* @__PURE__ */ jsx25("span", { className: "h-4 w-8 shrink-0 rounded bg-ods-bg/70" })
|
|
2586
2983
|
] }),
|
|
2587
|
-
/* @__PURE__ */
|
|
2588
|
-
/* @__PURE__ */
|
|
2984
|
+
/* @__PURE__ */ jsx25("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx25("span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) }),
|
|
2985
|
+
/* @__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
2986
|
] })
|
|
2590
2987
|
] });
|
|
2591
2988
|
}
|
|
2592
2989
|
return /* @__PURE__ */ jsxs17("div", { className: "h-full animate-pulse overflow-hidden rounded-lg border border-ods-border bg-ods-card", children: [
|
|
2593
|
-
/* @__PURE__ */
|
|
2990
|
+
/* @__PURE__ */ jsx25("div", { className: "aspect-[1200/630] bg-ods-bg" }),
|
|
2594
2991
|
/* @__PURE__ */ jsxs17("div", { className: "space-y-3 p-4", children: [
|
|
2595
|
-
/* @__PURE__ */
|
|
2596
|
-
/* @__PURE__ */
|
|
2597
|
-
/* @__PURE__ */
|
|
2598
|
-
/* @__PURE__ */
|
|
2992
|
+
/* @__PURE__ */ jsx25("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
2993
|
+
/* @__PURE__ */ jsx25("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
2994
|
+
/* @__PURE__ */ jsx25("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" }),
|
|
2995
|
+
/* @__PURE__ */ jsx25("div", { className: "h-4 w-1/3 rounded bg-ods-bg/60" })
|
|
2599
2996
|
] })
|
|
2600
2997
|
] });
|
|
2601
2998
|
}
|
|
@@ -2625,7 +3022,7 @@ function InvestorUpdateCard({
|
|
|
2625
3022
|
if (size === "sm") {
|
|
2626
3023
|
const periodText = formatInvestorUpdatePeriod(update.period_start, update.period_end);
|
|
2627
3024
|
return /* @__PURE__ */ jsxs17("a", { href, target, rel, className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: [
|
|
2628
|
-
/* @__PURE__ */
|
|
3025
|
+
/* @__PURE__ */ jsx25("span", { className: COMPACT_CARD_IMAGE_SLOT, children: coverImage ? /* @__PURE__ */ jsx25(
|
|
2629
3026
|
next_image_default,
|
|
2630
3027
|
{
|
|
2631
3028
|
src: coverImage,
|
|
@@ -2639,23 +3036,23 @@ function InvestorUpdateCard({
|
|
|
2639
3036
|
img.style.display = "none";
|
|
2640
3037
|
}
|
|
2641
3038
|
}
|
|
2642
|
-
) : /* @__PURE__ */
|
|
3039
|
+
) : /* @__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
3040
|
/* @__PURE__ */ jsxs17("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2644
3041
|
/* @__PURE__ */ jsxs17("span", { className: `${COMPACT_CARD_TITLE_ROW} gap-2`, children: [
|
|
2645
|
-
/* @__PURE__ */
|
|
3042
|
+
/* @__PURE__ */ jsx25("span", { className: `${COMPACT_CARD_TITLE} min-w-0`, children: update.title || `Update #${update.update_number ?? "?"}` }),
|
|
2646
3043
|
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
3044
|
"#",
|
|
2648
3045
|
update.update_number
|
|
2649
3046
|
] }) : null
|
|
2650
3047
|
] }),
|
|
2651
|
-
/* @__PURE__ */
|
|
2652
|
-
/* @__PURE__ */
|
|
3048
|
+
/* @__PURE__ */ jsx25("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx25("span", { className: COMPACT_CARD_SUBTITLE, children: periodText || "Investor update" }) }),
|
|
3049
|
+
/* @__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
3050
|
] })
|
|
2654
3051
|
] });
|
|
2655
3052
|
}
|
|
2656
3053
|
if (size === "portrait") {
|
|
2657
3054
|
const periodText = formatInvestorUpdatePeriod(update.period_start, update.period_end);
|
|
2658
|
-
return /* @__PURE__ */
|
|
3055
|
+
return /* @__PURE__ */ jsx25(
|
|
2659
3056
|
EntityPortraitCard,
|
|
2660
3057
|
{
|
|
2661
3058
|
href,
|
|
@@ -2671,7 +3068,7 @@ function InvestorUpdateCard({
|
|
|
2671
3068
|
}
|
|
2672
3069
|
);
|
|
2673
3070
|
}
|
|
2674
|
-
return /* @__PURE__ */
|
|
3071
|
+
return /* @__PURE__ */ jsx25("a", { href, target, rel, className: `block h-full ${className ?? ""}`, children: /* @__PURE__ */ jsx25(
|
|
2675
3072
|
AdminContentCard,
|
|
2676
3073
|
{
|
|
2677
3074
|
imageUrl: update.featured_image,
|
|
@@ -2683,8 +3080,8 @@ function InvestorUpdateCard({
|
|
|
2683
3080
|
update.update_number
|
|
2684
3081
|
] }) : void 0,
|
|
2685
3082
|
meta: update.period_start || update.period_end ? /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-1", children: [
|
|
2686
|
-
/* @__PURE__ */
|
|
2687
|
-
/* @__PURE__ */
|
|
3083
|
+
/* @__PURE__ */ jsx25(Calendar, { className: "h-3 w-3" }),
|
|
3084
|
+
/* @__PURE__ */ jsx25("span", { children: formatInvestorUpdatePeriod(update.period_start, update.period_end) })
|
|
2688
3085
|
] }) : void 0
|
|
2689
3086
|
}
|
|
2690
3087
|
) });
|
|
@@ -2692,7 +3089,7 @@ function InvestorUpdateCard({
|
|
|
2692
3089
|
|
|
2693
3090
|
// src/components/chat/entity-cards/onboarding-guide-card.tsx
|
|
2694
3091
|
import { Clock, ExternalLink, GraduationCap, Play as Play2 } from "lucide-react";
|
|
2695
|
-
import { jsx as
|
|
3092
|
+
import { jsx as jsx26, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2696
3093
|
function stripMarkdownPreview(text) {
|
|
2697
3094
|
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
3095
|
}
|
|
@@ -2708,35 +3105,35 @@ function OnboardingGuideCardSkeleton({ size = "default" }) {
|
|
|
2708
3105
|
if (size === "catalog") {
|
|
2709
3106
|
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
3107
|
/* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-4 md:flex-row md:gap-6", children: [
|
|
2711
|
-
/* @__PURE__ */
|
|
3108
|
+
/* @__PURE__ */ jsx26("div", { className: "aspect-[1200/630] w-full flex-shrink-0 rounded-lg bg-ods-border md:w-[256px]" }),
|
|
2712
3109
|
/* @__PURE__ */ jsxs18("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
2713
3110
|
/* @__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__ */
|
|
3111
|
+
/* @__PURE__ */ jsx26("div", { className: "h-[25px] w-3/4 rounded bg-ods-border md:h-[30px]" }),
|
|
3112
|
+
/* @__PURE__ */ jsx26("div", { className: "h-[25px] w-1/2 rounded bg-ods-border md:h-[30px]" })
|
|
2716
3113
|
] }),
|
|
2717
3114
|
/* @__PURE__ */ jsxs18("div", { className: "flex min-h-[46px] flex-col justify-start gap-2 md:min-h-[52px]", children: [
|
|
2718
|
-
/* @__PURE__ */
|
|
2719
|
-
/* @__PURE__ */
|
|
3115
|
+
/* @__PURE__ */ jsx26("div", { className: "h-3 w-full rounded bg-ods-border/70" }),
|
|
3116
|
+
/* @__PURE__ */ jsx26("div", { className: "h-3 w-5/6 rounded bg-ods-border/70" })
|
|
2720
3117
|
] })
|
|
2721
3118
|
] })
|
|
2722
3119
|
] }),
|
|
2723
3120
|
/* @__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__ */
|
|
3121
|
+
[0, 1].map((i) => /* @__PURE__ */ jsx26(
|
|
2725
3122
|
"div",
|
|
2726
3123
|
{
|
|
2727
3124
|
className: "flex flex-col gap-3 border-b border-ods-border bg-ods-card p-4 md:border-b-0 md:border-r",
|
|
2728
3125
|
children: /* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-2", children: [
|
|
2729
|
-
/* @__PURE__ */
|
|
2730
|
-
/* @__PURE__ */
|
|
3126
|
+
/* @__PURE__ */ jsx26("div", { className: "h-6 w-32 rounded bg-ods-bg" }),
|
|
3127
|
+
/* @__PURE__ */ jsx26("div", { className: "h-3 w-20 rounded bg-ods-bg/60" })
|
|
2731
3128
|
] })
|
|
2732
3129
|
},
|
|
2733
3130
|
`cell-${i}`
|
|
2734
3131
|
)),
|
|
2735
3132
|
/* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-3 bg-ods-card p-4", children: [
|
|
2736
|
-
/* @__PURE__ */
|
|
3133
|
+
/* @__PURE__ */ jsx26("div", { className: "h-10 w-10 shrink-0 rounded-full bg-ods-bg" }),
|
|
2737
3134
|
/* @__PURE__ */ jsxs18("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
2738
|
-
/* @__PURE__ */
|
|
2739
|
-
/* @__PURE__ */
|
|
3135
|
+
/* @__PURE__ */ jsx26("div", { className: "h-4 w-3/4 rounded bg-ods-bg" }),
|
|
3136
|
+
/* @__PURE__ */ jsx26("div", { className: "h-3 w-1/2 rounded bg-ods-bg/60" })
|
|
2740
3137
|
] })
|
|
2741
3138
|
] })
|
|
2742
3139
|
] })
|
|
@@ -2744,13 +3141,13 @@ function OnboardingGuideCardSkeleton({ size = "default" }) {
|
|
|
2744
3141
|
}
|
|
2745
3142
|
if (size === "sm") {
|
|
2746
3143
|
return /* @__PURE__ */ jsxs18("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
2747
|
-
/* @__PURE__ */
|
|
3144
|
+
/* @__PURE__ */ jsx26("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
2748
3145
|
/* @__PURE__ */ jsxs18("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2749
|
-
/* @__PURE__ */
|
|
2750
|
-
/* @__PURE__ */
|
|
2751
|
-
/* @__PURE__ */
|
|
3146
|
+
/* @__PURE__ */ jsx26("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx26("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
3147
|
+
/* @__PURE__ */ jsx26("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx26("span", { className: "h-3 w-2/5 rounded bg-ods-bg/70" }) }),
|
|
3148
|
+
/* @__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
3149
|
] }),
|
|
2753
|
-
/* @__PURE__ */
|
|
3150
|
+
/* @__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
3151
|
] });
|
|
2755
3152
|
}
|
|
2756
3153
|
const t = HORIZONTAL_SIZE_TOKENS.default;
|
|
@@ -2759,11 +3156,11 @@ function OnboardingGuideCardSkeleton({ size = "default" }) {
|
|
|
2759
3156
|
{
|
|
2760
3157
|
className: `flex items-start gap-3 rounded-md border border-ods-border bg-ods-card ${t.padding} animate-pulse`,
|
|
2761
3158
|
children: [
|
|
2762
|
-
/* @__PURE__ */
|
|
3159
|
+
/* @__PURE__ */ jsx26("span", { className: `inline-flex shrink-0 items-center justify-center rounded-full bg-ods-bg ${t.step}` }),
|
|
2763
3160
|
/* @__PURE__ */ jsxs18("span", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
2764
|
-
/* @__PURE__ */
|
|
2765
|
-
/* @__PURE__ */
|
|
2766
|
-
/* @__PURE__ */
|
|
3161
|
+
/* @__PURE__ */ jsx26("span", { className: "block h-4 w-2/3 rounded bg-ods-bg" }),
|
|
3162
|
+
/* @__PURE__ */ jsx26("span", { className: "block h-3 w-1/3 rounded bg-ods-bg/70" }),
|
|
3163
|
+
/* @__PURE__ */ jsx26("span", { className: "block h-3 w-full rounded bg-ods-bg/40" })
|
|
2767
3164
|
] })
|
|
2768
3165
|
]
|
|
2769
3166
|
}
|
|
@@ -2793,7 +3190,7 @@ function OnboardingGuideCard({
|
|
|
2793
3190
|
});
|
|
2794
3191
|
if (size === "portrait") {
|
|
2795
3192
|
const coverImage = guide.featured_image || guide.main_video_thumbnail || guide.og_image_url || null;
|
|
2796
|
-
return /* @__PURE__ */
|
|
3193
|
+
return /* @__PURE__ */ jsx26(
|
|
2797
3194
|
EntityPortraitCard,
|
|
2798
3195
|
{
|
|
2799
3196
|
href,
|
|
@@ -2814,7 +3211,7 @@ function OnboardingGuideCard({
|
|
|
2814
3211
|
const hasVideoCover = !!(guide.main_video_thumbnail || guide.highlight_video_thumbnail);
|
|
2815
3212
|
const stepLabel = typeof guide.step_order === "number" ? String(guide.step_order).padStart(2, "0") : "\u2014";
|
|
2816
3213
|
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__ */
|
|
3214
|
+
return /* @__PURE__ */ jsx26(
|
|
2818
3215
|
next_link_default,
|
|
2819
3216
|
{
|
|
2820
3217
|
href,
|
|
@@ -2832,8 +3229,8 @@ function OnboardingGuideCard({
|
|
|
2832
3229
|
"aria-label": `Open ${guide.title}`,
|
|
2833
3230
|
children: /* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-4 p-6", children: [
|
|
2834
3231
|
/* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-4 md:flex-row md:gap-6", children: [
|
|
2835
|
-
/* @__PURE__ */
|
|
2836
|
-
coverImage ? /* @__PURE__ */
|
|
3232
|
+
/* @__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: [
|
|
3233
|
+
coverImage ? /* @__PURE__ */ jsx26(
|
|
2837
3234
|
next_image_default,
|
|
2838
3235
|
{
|
|
2839
3236
|
src: coverImage,
|
|
@@ -2843,7 +3240,7 @@ function OnboardingGuideCard({
|
|
|
2843
3240
|
className: "object-cover",
|
|
2844
3241
|
unoptimized: true
|
|
2845
3242
|
}
|
|
2846
|
-
) : /* @__PURE__ */
|
|
3243
|
+
) : /* @__PURE__ */ jsx26(
|
|
2847
3244
|
BlogImagePlaceholder,
|
|
2848
3245
|
{
|
|
2849
3246
|
title: guide.title,
|
|
@@ -2851,18 +3248,18 @@ function OnboardingGuideCard({
|
|
|
2851
3248
|
className: "absolute inset-0"
|
|
2852
3249
|
}
|
|
2853
3250
|
),
|
|
2854
|
-
hasVideoCover && coverImage && /* @__PURE__ */
|
|
3251
|
+
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
3252
|
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__ */
|
|
3253
|
+
/* @__PURE__ */ jsx26(Clock, { className: "h-3 w-3" }),
|
|
2857
3254
|
durationLabel
|
|
2858
3255
|
] })
|
|
2859
3256
|
] }) }),
|
|
2860
3257
|
/* @__PURE__ */ jsxs18("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
2861
|
-
/* @__PURE__ */
|
|
2862
|
-
/* @__PURE__ */
|
|
3258
|
+
/* @__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 }) }),
|
|
3259
|
+
/* @__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
3260
|
] })
|
|
2864
3261
|
] }),
|
|
2865
|
-
/* @__PURE__ */
|
|
3262
|
+
/* @__PURE__ */ jsx26(
|
|
2866
3263
|
EntityAuthorCard,
|
|
2867
3264
|
{
|
|
2868
3265
|
author: guide.author,
|
|
@@ -2892,15 +3289,15 @@ function OnboardingGuideCard({
|
|
|
2892
3289
|
);
|
|
2893
3290
|
return /* @__PURE__ */ jsxs18(next_link_default, { href, target, rel, prefetch: false, className: cn(COMPACT_CARD_OUTER, className), children: [
|
|
2894
3291
|
/* @__PURE__ */ jsxs18("span", { className: COMPACT_CARD_IMAGE_SLOT, children: [
|
|
2895
|
-
compactCover ? /* @__PURE__ */
|
|
2896
|
-
hasVideoCover && compactCover && /* @__PURE__ */
|
|
3292
|
+
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" }) }),
|
|
3293
|
+
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
3294
|
] }),
|
|
2898
3295
|
/* @__PURE__ */ jsxs18("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2899
|
-
/* @__PURE__ */
|
|
2900
|
-
/* @__PURE__ */
|
|
2901
|
-
/* @__PURE__ */
|
|
3296
|
+
/* @__PURE__ */ jsx26("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx26("span", { className: cn(COMPACT_CARD_TITLE, "font-heading"), children: guide.title }) }),
|
|
3297
|
+
/* @__PURE__ */ jsx26("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx26("span", { className: "truncate text-ods-accent text-h6", children: subtitleParts.join(" \xB7 ") }) }),
|
|
3298
|
+
/* @__PURE__ */ jsx26("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx26("span", { className: COMPACT_CARD_SUMMARY, children: summary2 || COMPACT_CARD_ROW_FILLER }) })
|
|
2902
3299
|
] }),
|
|
2903
|
-
/* @__PURE__ */
|
|
3300
|
+
/* @__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
3301
|
] });
|
|
2905
3302
|
}
|
|
2906
3303
|
const t = HORIZONTAL_SIZE_TOKENS.default;
|
|
@@ -2917,7 +3314,7 @@ function OnboardingGuideCard({
|
|
|
2917
3314
|
className
|
|
2918
3315
|
),
|
|
2919
3316
|
children: [
|
|
2920
|
-
/* @__PURE__ */
|
|
3317
|
+
/* @__PURE__ */ jsx26(
|
|
2921
3318
|
"span",
|
|
2922
3319
|
{
|
|
2923
3320
|
className: `inline-flex shrink-0 items-center justify-center rounded-full bg-ods-accent/10 font-semibold text-ods-accent ${t.step}`,
|
|
@@ -2926,12 +3323,12 @@ function OnboardingGuideCard({
|
|
|
2926
3323
|
}
|
|
2927
3324
|
),
|
|
2928
3325
|
/* @__PURE__ */ jsxs18("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
2929
|
-
/* @__PURE__ */
|
|
3326
|
+
/* @__PURE__ */ jsx26("span", { className: `block ${t.title} truncate text-ods-text-primary`, children: guide.title }),
|
|
2930
3327
|
/* @__PURE__ */ jsxs18("span", { className: "inline-flex items-center gap-1 text-ods-text-secondary text-h6", children: [
|
|
2931
|
-
/* @__PURE__ */
|
|
2932
|
-
/* @__PURE__ */
|
|
3328
|
+
/* @__PURE__ */ jsx26(GraduationCap, { className: "h-3 w-3 shrink-0" }),
|
|
3329
|
+
/* @__PURE__ */ jsx26("span", { className: "truncate", children: guide.section })
|
|
2933
3330
|
] }),
|
|
2934
|
-
summary && /* @__PURE__ */
|
|
3331
|
+
summary && /* @__PURE__ */ jsx26("span", { className: `text-ods-text-secondary text-h6 ${t.summaryClamp}`, children: summary })
|
|
2935
3332
|
] })
|
|
2936
3333
|
]
|
|
2937
3334
|
}
|
|
@@ -2939,7 +3336,7 @@ function OnboardingGuideCard({
|
|
|
2939
3336
|
}
|
|
2940
3337
|
|
|
2941
3338
|
// src/components/ui/avatar-stack.tsx
|
|
2942
|
-
import { jsx as
|
|
3339
|
+
import { jsx as jsx27, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2943
3340
|
var SIZE_PX = { xs: 24, sm: 32, md: 40, lg: 48 };
|
|
2944
3341
|
var OVERLAP_PX = { xs: 8, sm: 12, md: 12, lg: 12 };
|
|
2945
3342
|
var OVERFLOW_CIRCLE_SIZE = {
|
|
@@ -2970,7 +3367,7 @@ function AvatarStack({
|
|
|
2970
3367
|
role: "group",
|
|
2971
3368
|
"aria-label": `${label}: ${people.map((p) => p.name).join(", ")}`,
|
|
2972
3369
|
children: [
|
|
2973
|
-
visible.map((person, i) => /* @__PURE__ */
|
|
3370
|
+
visible.map((person, i) => /* @__PURE__ */ jsx27(
|
|
2974
3371
|
SquareAvatar,
|
|
2975
3372
|
{
|
|
2976
3373
|
variant: "round",
|
|
@@ -3094,7 +3491,7 @@ function getTaskTypeLabel(customItemId) {
|
|
|
3094
3491
|
}
|
|
3095
3492
|
|
|
3096
3493
|
// src/components/chat/entity-cards/roadmap-vote-button.tsx
|
|
3097
|
-
import { jsx as
|
|
3494
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3098
3495
|
function RoadmapVoteButton({
|
|
3099
3496
|
voteType,
|
|
3100
3497
|
count,
|
|
@@ -3106,13 +3503,13 @@ function RoadmapVoteButton({
|
|
|
3106
3503
|
className
|
|
3107
3504
|
}) {
|
|
3108
3505
|
const Icon = voteType === "up" ? ThumbsUpIcon : ThumbsDownIcon;
|
|
3109
|
-
return /* @__PURE__ */
|
|
3506
|
+
return /* @__PURE__ */ jsx28(
|
|
3110
3507
|
Button,
|
|
3111
3508
|
{
|
|
3112
3509
|
variant: "outline",
|
|
3113
3510
|
onClick,
|
|
3114
3511
|
disabled,
|
|
3115
|
-
leftIcon: /* @__PURE__ */
|
|
3512
|
+
leftIcon: /* @__PURE__ */ jsx28(Icon, { className: "h-5 w-5", color }),
|
|
3116
3513
|
className: cn(
|
|
3117
3514
|
className,
|
|
3118
3515
|
"flex h-full items-center justify-center gap-[2px] border-0 border-ods-border bg-ods-bg p-[12px]",
|
|
@@ -3120,7 +3517,7 @@ function RoadmapVoteButton({
|
|
|
3120
3517
|
"transition-all hover:bg-ods-border",
|
|
3121
3518
|
isActive && "bg-ods-border"
|
|
3122
3519
|
),
|
|
3123
|
-
children: showCount && /* @__PURE__ */
|
|
3520
|
+
children: showCount && /* @__PURE__ */ jsx28("span", { className: "text-h6", children: count })
|
|
3124
3521
|
}
|
|
3125
3522
|
);
|
|
3126
3523
|
}
|
|
@@ -3141,7 +3538,7 @@ import {
|
|
|
3141
3538
|
Repeat,
|
|
3142
3539
|
Compass
|
|
3143
3540
|
} from "lucide-react";
|
|
3144
|
-
import { jsx as
|
|
3541
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
3145
3542
|
function iconFor(customItemId) {
|
|
3146
3543
|
switch (customItemId) {
|
|
3147
3544
|
case CUSTOM_ITEM_ID.BUG:
|
|
@@ -3177,51 +3574,51 @@ function iconFor(customItemId) {
|
|
|
3177
3574
|
}
|
|
3178
3575
|
function TaskTypeIcon({ customItemId, className = "h-5 w-5" }) {
|
|
3179
3576
|
const Icon = iconFor(customItemId);
|
|
3180
|
-
return /* @__PURE__ */
|
|
3577
|
+
return /* @__PURE__ */ jsx29(Icon, { className, "aria-hidden": "true" });
|
|
3181
3578
|
}
|
|
3182
3579
|
|
|
3183
3580
|
// src/components/chat/entity-cards/roadmap-card.tsx
|
|
3184
3581
|
import { ThumbsUp, ThumbsDown } from "lucide-react";
|
|
3185
3582
|
import { useState as useState5 } from "react";
|
|
3186
|
-
import { Fragment as Fragment8, jsx as
|
|
3583
|
+
import { Fragment as Fragment8, jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3187
3584
|
function RoadmapCardSkeleton({ size = "default" }) {
|
|
3188
3585
|
if (size === "sm") {
|
|
3189
3586
|
return /* @__PURE__ */ jsxs20("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
3190
|
-
/* @__PURE__ */
|
|
3587
|
+
/* @__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
3588
|
/* @__PURE__ */ jsxs20("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
3192
3589
|
/* @__PURE__ */ jsxs20("span", { className: `${COMPACT_CARD_TITLE_ROW} flex-nowrap gap-2`, children: [
|
|
3193
|
-
/* @__PURE__ */
|
|
3194
|
-
/* @__PURE__ */
|
|
3590
|
+
/* @__PURE__ */ jsx30("span", { className: "h-3.5 w-1/2 rounded bg-ods-bg" }),
|
|
3591
|
+
/* @__PURE__ */ jsx30("span", { className: "h-4 w-12 shrink-0 rounded bg-ods-bg/70" })
|
|
3195
3592
|
] }),
|
|
3196
3593
|
/* @__PURE__ */ jsxs20("span", { className: `${COMPACT_CARD_META_ROW_BOX} flex-nowrap gap-2`, children: [
|
|
3197
|
-
/* @__PURE__ */
|
|
3198
|
-
/* @__PURE__ */
|
|
3199
|
-
/* @__PURE__ */
|
|
3594
|
+
/* @__PURE__ */ jsx30("span", { className: "h-3 w-2/5 flex-1 rounded bg-ods-bg/60" }),
|
|
3595
|
+
/* @__PURE__ */ jsx30("span", { className: "h-3 w-10 shrink-0 rounded bg-ods-bg/40" }),
|
|
3596
|
+
/* @__PURE__ */ jsx30("span", { className: "h-6 w-14 shrink-0 rounded-full bg-ods-bg/40" })
|
|
3200
3597
|
] }),
|
|
3201
|
-
/* @__PURE__ */
|
|
3598
|
+
/* @__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
3599
|
] })
|
|
3203
3600
|
] });
|
|
3204
3601
|
}
|
|
3205
3602
|
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
3603
|
/* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-4", children: [
|
|
3207
|
-
/* @__PURE__ */
|
|
3604
|
+
/* @__PURE__ */ jsx30("div", { className: "h-16 w-16 flex-shrink-0 rounded-lg bg-ods-bg" }),
|
|
3208
3605
|
/* @__PURE__ */ jsxs20("div", { className: "flex-1 space-y-2", children: [
|
|
3209
|
-
/* @__PURE__ */
|
|
3210
|
-
/* @__PURE__ */
|
|
3606
|
+
/* @__PURE__ */ jsx30("div", { className: "h-5 w-3/4 rounded bg-ods-bg" }),
|
|
3607
|
+
/* @__PURE__ */ jsx30("div", { className: "h-3 w-1/2 rounded bg-ods-bg/60" })
|
|
3211
3608
|
] }),
|
|
3212
|
-
/* @__PURE__ */
|
|
3609
|
+
/* @__PURE__ */ jsx30("div", { className: "h-6 w-16 rounded bg-ods-bg" })
|
|
3213
3610
|
] }),
|
|
3214
3611
|
/* @__PURE__ */ jsxs20("div", { className: "space-y-2", children: [
|
|
3215
|
-
/* @__PURE__ */
|
|
3216
|
-
/* @__PURE__ */
|
|
3217
|
-
/* @__PURE__ */
|
|
3612
|
+
/* @__PURE__ */ jsx30("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
3613
|
+
/* @__PURE__ */ jsx30("div", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }),
|
|
3614
|
+
/* @__PURE__ */ jsx30("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" })
|
|
3218
3615
|
] }),
|
|
3219
|
-
/* @__PURE__ */
|
|
3616
|
+
/* @__PURE__ */ jsx30("div", { className: "flex-1" }),
|
|
3220
3617
|
/* @__PURE__ */ jsxs20("div", { className: "flex items-center justify-between", children: [
|
|
3221
|
-
/* @__PURE__ */
|
|
3618
|
+
/* @__PURE__ */ jsx30("div", { className: "h-12 w-32 rounded bg-ods-bg" }),
|
|
3222
3619
|
/* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-2", children: [
|
|
3223
|
-
/* @__PURE__ */
|
|
3224
|
-
/* @__PURE__ */
|
|
3620
|
+
/* @__PURE__ */ jsx30("div", { className: "h-6 w-14 rounded-full bg-ods-bg/60" }),
|
|
3621
|
+
/* @__PURE__ */ jsx30("div", { className: "h-8 w-20 rounded bg-ods-bg" })
|
|
3225
3622
|
] })
|
|
3226
3623
|
] })
|
|
3227
3624
|
] });
|
|
@@ -3257,12 +3654,12 @@ function RoadmapCard({
|
|
|
3257
3654
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
3258
3655
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
3259
3656
|
const body = /* @__PURE__ */ jsxs20(Fragment8, { children: [
|
|
3260
|
-
/* @__PURE__ */
|
|
3657
|
+
/* @__PURE__ */ jsx30(
|
|
3261
3658
|
"span",
|
|
3262
3659
|
{
|
|
3263
3660
|
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
3661
|
title: typeLabel ?? void 0,
|
|
3265
|
-
children: useTypeIcon ? /* @__PURE__ */
|
|
3662
|
+
children: useTypeIcon ? /* @__PURE__ */ jsx30(TaskTypeIcon, { customItemId: item.customItemId, className: "h-6 w-6" }) : iconSrc ? /* @__PURE__ */ jsx30(
|
|
3266
3663
|
next_image_default,
|
|
3267
3664
|
{
|
|
3268
3665
|
src: iconSrc,
|
|
@@ -3272,13 +3669,13 @@ function RoadmapCard({
|
|
|
3272
3669
|
unoptimized: true,
|
|
3273
3670
|
className: "h-8 w-8 object-contain"
|
|
3274
3671
|
}
|
|
3275
|
-
) : /* @__PURE__ */
|
|
3672
|
+
) : /* @__PURE__ */ jsx30("span", { className: "uppercase text-ods-text-secondary text-h6", children: item.title?.substring(0, 2) || "??" })
|
|
3276
3673
|
}
|
|
3277
3674
|
),
|
|
3278
3675
|
/* @__PURE__ */ jsxs20("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
3279
3676
|
/* @__PURE__ */ jsxs20("span", { className: `${COMPACT_CARD_TITLE_ROW} gap-2`, children: [
|
|
3280
|
-
/* @__PURE__ */
|
|
3281
|
-
item.status && item.status.trim().length > 0 ? /* @__PURE__ */
|
|
3677
|
+
/* @__PURE__ */ jsx30("span", { className: `${COMPACT_CARD_TITLE} min-w-0`, children: item.title }),
|
|
3678
|
+
item.status && item.status.trim().length > 0 ? /* @__PURE__ */ jsx30(
|
|
3282
3679
|
StatusBadge,
|
|
3283
3680
|
{
|
|
3284
3681
|
text: item.status.toUpperCase(),
|
|
@@ -3290,7 +3687,7 @@ function RoadmapCard({
|
|
|
3290
3687
|
) : null
|
|
3291
3688
|
] }),
|
|
3292
3689
|
/* @__PURE__ */ jsxs20("span", { className: `${COMPACT_CARD_META_ROW_BOX} gap-2 text-ods-text-secondary`, children: [
|
|
3293
|
-
/* @__PURE__ */
|
|
3690
|
+
/* @__PURE__ */ jsx30("span", { className: "min-w-0 flex-1 truncate text-h6", children: (() => {
|
|
3294
3691
|
const parts = [item.quarter, item.targetVersion ? `${item.targetVersion} version` : null].filter(
|
|
3295
3692
|
Boolean
|
|
3296
3693
|
);
|
|
@@ -3305,35 +3702,35 @@ function RoadmapCard({
|
|
|
3305
3702
|
})() }),
|
|
3306
3703
|
hasVotes ? /* @__PURE__ */ jsxs20("span", { className: "hidden shrink-0 items-center gap-2 text-ods-text-secondary text-h6 sm:flex", children: [
|
|
3307
3704
|
/* @__PURE__ */ jsxs20("span", { className: "flex items-center gap-0.5", children: [
|
|
3308
|
-
/* @__PURE__ */
|
|
3309
|
-
/* @__PURE__ */
|
|
3705
|
+
/* @__PURE__ */ jsx30(ThumbsUp, { className: "h-3 w-3" }),
|
|
3706
|
+
/* @__PURE__ */ jsx30("span", { children: item.upvotes ?? 0 })
|
|
3310
3707
|
] }),
|
|
3311
3708
|
/* @__PURE__ */ jsxs20("span", { className: "flex items-center gap-0.5", children: [
|
|
3312
|
-
/* @__PURE__ */
|
|
3313
|
-
/* @__PURE__ */
|
|
3709
|
+
/* @__PURE__ */ jsx30(ThumbsDown, { className: "h-3 w-3" }),
|
|
3710
|
+
/* @__PURE__ */ jsx30("span", { children: item.downvotes ?? 0 })
|
|
3314
3711
|
] })
|
|
3315
3712
|
] }) : null,
|
|
3316
|
-
hasFigma ? /* @__PURE__ */
|
|
3713
|
+
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
3714
|
hasScreenshots ? /* @__PURE__ */ jsxs20(
|
|
3318
3715
|
"span",
|
|
3319
3716
|
{
|
|
3320
3717
|
className: "hidden shrink-0 items-center gap-0.5 text-h6 sm:flex",
|
|
3321
3718
|
title: `${item.screenshots.length} screenshot${item.screenshots.length === 1 ? "" : "s"}`,
|
|
3322
3719
|
children: [
|
|
3323
|
-
/* @__PURE__ */
|
|
3324
|
-
/* @__PURE__ */
|
|
3720
|
+
/* @__PURE__ */ jsx30(ImageIcon, { className: "h-3 w-3" }),
|
|
3721
|
+
/* @__PURE__ */ jsx30("span", { children: item.screenshots.length })
|
|
3325
3722
|
]
|
|
3326
3723
|
}
|
|
3327
3724
|
) : null,
|
|
3328
|
-
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */
|
|
3725
|
+
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ jsx30(AvatarStack, { size: "xs", people: assigneePeople(item.assignees), className: "shrink-0" }) : null
|
|
3329
3726
|
] }),
|
|
3330
|
-
/* @__PURE__ */
|
|
3727
|
+
/* @__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
3728
|
] })
|
|
3332
3729
|
] });
|
|
3333
3730
|
if (!compactHref) {
|
|
3334
|
-
return /* @__PURE__ */
|
|
3731
|
+
return /* @__PURE__ */ jsx30("span", { className: `${COMPACT_CARD_OUTER_STATIC} ${className ?? ""}`, "aria-label": "No link available", children: body });
|
|
3335
3732
|
}
|
|
3336
|
-
return /* @__PURE__ */
|
|
3733
|
+
return /* @__PURE__ */ jsx30("a", { href: compactHref, target, rel, className: `${COMPACT_CARD_OUTER} ${className ?? ""}`, children: body });
|
|
3337
3734
|
}
|
|
3338
3735
|
return /* @__PURE__ */ jsxs20(
|
|
3339
3736
|
"div",
|
|
@@ -3342,7 +3739,7 @@ function RoadmapCard({
|
|
|
3342
3739
|
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
3740
|
children: [
|
|
3344
3741
|
/* @__PURE__ */ jsxs20("div", { className: "flex w-full items-center gap-[16px]", children: [
|
|
3345
|
-
/* @__PURE__ */
|
|
3742
|
+
/* @__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
3743
|
next_image_default,
|
|
3347
3744
|
{
|
|
3348
3745
|
src: iconSrc,
|
|
@@ -3352,16 +3749,16 @@ function RoadmapCard({
|
|
|
3352
3749
|
unoptimized: true,
|
|
3353
3750
|
className: "object-contain p-1"
|
|
3354
3751
|
}
|
|
3355
|
-
) : /* @__PURE__ */
|
|
3752
|
+
) : /* @__PURE__ */ jsx30("span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: item.title?.substring(0, 2) || "??" }) }),
|
|
3356
3753
|
/* @__PURE__ */ jsxs20("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3357
|
-
/* @__PURE__ */
|
|
3358
|
-
/* @__PURE__ */
|
|
3754
|
+
/* @__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 }) }),
|
|
3755
|
+
/* @__PURE__ */ jsx30("div", { className: "flex min-h-[20px] items-center", children: /* @__PURE__ */ jsxs20("p", { className: "truncate text-ods-text-secondary text-h5", children: [
|
|
3359
3756
|
item.quarter,
|
|
3360
3757
|
", ",
|
|
3361
3758
|
item.id
|
|
3362
3759
|
] }) })
|
|
3363
3760
|
] }),
|
|
3364
|
-
/* @__PURE__ */
|
|
3761
|
+
/* @__PURE__ */ jsx30("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx30(
|
|
3365
3762
|
StatusBadge,
|
|
3366
3763
|
{
|
|
3367
3764
|
text: item.status.toUpperCase(),
|
|
@@ -3370,7 +3767,7 @@ function RoadmapCard({
|
|
|
3370
3767
|
}
|
|
3371
3768
|
) })
|
|
3372
3769
|
] }),
|
|
3373
|
-
/* @__PURE__ */
|
|
3770
|
+
/* @__PURE__ */ jsx30("div", { className: "md:hidden", children: /* @__PURE__ */ jsx30(
|
|
3374
3771
|
StatusBadge,
|
|
3375
3772
|
{
|
|
3376
3773
|
text: item.status.toUpperCase(),
|
|
@@ -3378,11 +3775,11 @@ function RoadmapCard({
|
|
|
3378
3775
|
className: "border border-ods-border"
|
|
3379
3776
|
}
|
|
3380
3777
|
) }),
|
|
3381
|
-
/* @__PURE__ */
|
|
3382
|
-
/* @__PURE__ */
|
|
3778
|
+
/* @__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 || "" }) }),
|
|
3779
|
+
/* @__PURE__ */ jsx30("div", { className: "flex-1" }),
|
|
3383
3780
|
/* @__PURE__ */ jsxs20("div", { className: "flex w-full items-center justify-between", children: [
|
|
3384
3781
|
onVote && /* @__PURE__ */ jsxs20("div", { className: "flex h-[48px] overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", children: [
|
|
3385
|
-
/* @__PURE__ */
|
|
3782
|
+
/* @__PURE__ */ jsx30(
|
|
3386
3783
|
RoadmapVoteButton,
|
|
3387
3784
|
{
|
|
3388
3785
|
voteType: "up",
|
|
@@ -3394,7 +3791,7 @@ function RoadmapCard({
|
|
|
3394
3791
|
disabled: isVoting
|
|
3395
3792
|
}
|
|
3396
3793
|
),
|
|
3397
|
-
/* @__PURE__ */
|
|
3794
|
+
/* @__PURE__ */ jsx30(
|
|
3398
3795
|
RoadmapVoteButton,
|
|
3399
3796
|
{
|
|
3400
3797
|
voteType: "down",
|
|
@@ -3408,33 +3805,33 @@ function RoadmapCard({
|
|
|
3408
3805
|
)
|
|
3409
3806
|
] }),
|
|
3410
3807
|
/* @__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__ */
|
|
3808
|
+
item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ jsx30(AvatarStack, { size: "xs", people: assigneePeople(item.assignees), className: "shrink-0" }) : null,
|
|
3809
|
+
item.screenshots && item.screenshots.length > 0 && /* @__PURE__ */ jsx30(
|
|
3413
3810
|
Button,
|
|
3414
3811
|
{
|
|
3415
3812
|
variant: "outline",
|
|
3416
3813
|
size: "small-legacy",
|
|
3417
3814
|
onClick: () => setShowScreenshots(true),
|
|
3418
|
-
leftIcon: /* @__PURE__ */
|
|
3815
|
+
leftIcon: /* @__PURE__ */ jsx30(ImageIcon, { className: "h-5 w-5" })
|
|
3419
3816
|
}
|
|
3420
3817
|
),
|
|
3421
3818
|
(() => {
|
|
3422
3819
|
const figmaSafe = safeHref(item.figmaUrl);
|
|
3423
|
-
return figmaSafe ? /* @__PURE__ */
|
|
3820
|
+
return figmaSafe ? /* @__PURE__ */ jsx30(
|
|
3424
3821
|
Button,
|
|
3425
3822
|
{
|
|
3426
3823
|
variant: "outline",
|
|
3427
3824
|
size: "small-legacy",
|
|
3428
3825
|
openInNewTab: true,
|
|
3429
3826
|
href: figmaSafe,
|
|
3430
|
-
leftIcon: /* @__PURE__ */
|
|
3827
|
+
leftIcon: /* @__PURE__ */ jsx30(FigmaIcon, { className: "h-5 w-5" })
|
|
3431
3828
|
}
|
|
3432
3829
|
) : null;
|
|
3433
3830
|
})(),
|
|
3434
|
-
item.targetVersion && /* @__PURE__ */
|
|
3831
|
+
item.targetVersion && /* @__PURE__ */ jsx30(StatusBadge, { gen: generationTierFromLabel(item.targetVersion), text: item.targetVersion })
|
|
3435
3832
|
] })
|
|
3436
3833
|
] }),
|
|
3437
|
-
item.screenshots && item.screenshots.length > 0 && /* @__PURE__ */
|
|
3834
|
+
item.screenshots && item.screenshots.length > 0 && /* @__PURE__ */ jsx30(
|
|
3438
3835
|
ImageGalleryModal,
|
|
3439
3836
|
{
|
|
3440
3837
|
images: item.screenshots,
|
|
@@ -3552,7 +3949,7 @@ function transformWebinarToProgram(webinar) {
|
|
|
3552
3949
|
import { format } from "date-fns";
|
|
3553
3950
|
import { ExternalLink as ExternalLink2, Clock as Clock2, Play as Play3, Video as Video2 } from "lucide-react";
|
|
3554
3951
|
import { useState as useState6 } from "react";
|
|
3555
|
-
import { Fragment as Fragment9, jsx as
|
|
3952
|
+
import { Fragment as Fragment9, jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3556
3953
|
function formatUtc(date, fmt) {
|
|
3557
3954
|
if (Number.isNaN(date.getTime())) return "";
|
|
3558
3955
|
return format(new Date(date.getTime() + date.getTimezoneOffset() * 6e4), fmt);
|
|
@@ -3560,13 +3957,13 @@ function formatUtc(date, fmt) {
|
|
|
3560
3957
|
function ProgramCardSkeleton({ size = "default" }) {
|
|
3561
3958
|
if (size === "sm") {
|
|
3562
3959
|
return /* @__PURE__ */ jsxs21("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
3563
|
-
/* @__PURE__ */
|
|
3960
|
+
/* @__PURE__ */ jsx31("span", { className: COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
3564
3961
|
/* @__PURE__ */ jsxs21("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
3565
|
-
/* @__PURE__ */
|
|
3566
|
-
/* @__PURE__ */
|
|
3567
|
-
/* @__PURE__ */
|
|
3962
|
+
/* @__PURE__ */ jsx31("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx31("span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
3963
|
+
/* @__PURE__ */ jsx31("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx31("span", { className: "h-3 w-2/5 rounded bg-ods-bg/70" }) }),
|
|
3964
|
+
/* @__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
3965
|
] }),
|
|
3569
|
-
/* @__PURE__ */
|
|
3966
|
+
/* @__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
3967
|
] });
|
|
3571
3968
|
}
|
|
3572
3969
|
return /* @__PURE__ */ jsxs21(
|
|
@@ -3575,20 +3972,20 @@ function ProgramCardSkeleton({ size = "default" }) {
|
|
|
3575
3972
|
className: "flex animate-pulse flex-col overflow-hidden rounded-lg border border-ods-border",
|
|
3576
3973
|
style: { backgroundColor: "var(--ods-system-greys-black)" },
|
|
3577
3974
|
children: [
|
|
3578
|
-
/* @__PURE__ */
|
|
3579
|
-
/* @__PURE__ */
|
|
3975
|
+
/* @__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: [
|
|
3976
|
+
/* @__PURE__ */ jsx31("div", { className: "h-[180px] w-full flex-shrink-0 rounded-lg bg-ods-bg md:w-[180px]" }),
|
|
3580
3977
|
/* @__PURE__ */ jsxs21("div", { className: "flex min-w-0 flex-1 flex-col gap-3", children: [
|
|
3581
|
-
/* @__PURE__ */
|
|
3582
|
-
/* @__PURE__ */
|
|
3583
|
-
/* @__PURE__ */
|
|
3978
|
+
/* @__PURE__ */ jsx31("div", { className: "h-7 w-3/4 rounded bg-ods-bg" }),
|
|
3979
|
+
/* @__PURE__ */ jsx31("div", { className: "h-7 w-1/2 rounded bg-ods-bg" }),
|
|
3980
|
+
/* @__PURE__ */ jsx31("div", { className: "h-4 w-1/3 rounded bg-ods-bg/60" }),
|
|
3584
3981
|
/* @__PURE__ */ jsxs21("div", { className: "space-y-2", children: [
|
|
3585
|
-
/* @__PURE__ */
|
|
3586
|
-
/* @__PURE__ */
|
|
3587
|
-
/* @__PURE__ */
|
|
3982
|
+
/* @__PURE__ */ jsx31("div", { className: "h-3 w-full rounded bg-ods-bg/60" }),
|
|
3983
|
+
/* @__PURE__ */ jsx31("div", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }),
|
|
3984
|
+
/* @__PURE__ */ jsx31("div", { className: "h-3 w-4/5 rounded bg-ods-bg/60" })
|
|
3588
3985
|
] })
|
|
3589
3986
|
] })
|
|
3590
3987
|
] }) }),
|
|
3591
|
-
/* @__PURE__ */
|
|
3988
|
+
/* @__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
3989
|
]
|
|
3593
3990
|
}
|
|
3594
3991
|
);
|
|
@@ -3642,13 +4039,13 @@ function MediaGallery({ images, title }) {
|
|
|
3642
4039
|
setSelectedImageIndex(null);
|
|
3643
4040
|
};
|
|
3644
4041
|
return /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
3645
|
-
/* @__PURE__ */
|
|
4042
|
+
/* @__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
4043
|
"div",
|
|
3647
4044
|
{
|
|
3648
4045
|
className: "group/thumb relative h-24 w-24 flex-shrink-0 cursor-pointer overflow-hidden rounded-md",
|
|
3649
4046
|
onClick: (e) => openImageModal(index, e),
|
|
3650
4047
|
children: [
|
|
3651
|
-
/* @__PURE__ */
|
|
4048
|
+
/* @__PURE__ */ jsx31(
|
|
3652
4049
|
next_image_default,
|
|
3653
4050
|
{
|
|
3654
4051
|
src: mediaItem.media_url,
|
|
@@ -3660,12 +4057,12 @@ function MediaGallery({ images, title }) {
|
|
|
3660
4057
|
unoptimized: true
|
|
3661
4058
|
}
|
|
3662
4059
|
),
|
|
3663
|
-
/* @__PURE__ */
|
|
4060
|
+
/* @__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
4061
|
]
|
|
3665
4062
|
},
|
|
3666
4063
|
mediaItem.id
|
|
3667
4064
|
)) }) }) }),
|
|
3668
|
-
/* @__PURE__ */
|
|
4065
|
+
/* @__PURE__ */ jsx31(
|
|
3669
4066
|
ImageGalleryModal,
|
|
3670
4067
|
{
|
|
3671
4068
|
images: images.map((img) => img.media_url),
|
|
@@ -3726,7 +4123,7 @@ function ProgramCard({
|
|
|
3726
4123
|
if (size === "portrait") {
|
|
3727
4124
|
const profile = programItemToStripProfile(item);
|
|
3728
4125
|
const dateMeta = [compactDate, compactTypeMeta()].filter(Boolean).join(" \xB7 ");
|
|
3729
|
-
return /* @__PURE__ */
|
|
4126
|
+
return /* @__PURE__ */ jsx31(
|
|
3730
4127
|
EntityPortraitCard,
|
|
3731
4128
|
{
|
|
3732
4129
|
href,
|
|
@@ -3752,15 +4149,15 @@ function ProgramCard({
|
|
|
3752
4149
|
);
|
|
3753
4150
|
return /* @__PURE__ */ jsxs21("a", { href, target, rel, className: cn(COMPACT_CARD_OUTER, className), children: [
|
|
3754
4151
|
/* @__PURE__ */ jsxs21("span", { className: COMPACT_CARD_IMAGE_SLOT, children: [
|
|
3755
|
-
compactCover ? /* @__PURE__ */
|
|
3756
|
-
config.type === "podcast" && !isScheduled && compactCover && /* @__PURE__ */
|
|
4152
|
+
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" }) }),
|
|
4153
|
+
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
4154
|
] }),
|
|
3758
4155
|
/* @__PURE__ */ jsxs21("span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
3759
|
-
/* @__PURE__ */
|
|
3760
|
-
/* @__PURE__ */
|
|
3761
|
-
/* @__PURE__ */
|
|
4156
|
+
/* @__PURE__ */ jsx31("span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ jsx31("span", { className: cn(COMPACT_CARD_TITLE, "font-heading"), children: item.title }) }),
|
|
4157
|
+
/* @__PURE__ */ jsx31("span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ jsx31("span", { className: "truncate text-ods-accent text-h6", children: subtitleParts.join(" \xB7 ") }) }),
|
|
4158
|
+
/* @__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
4159
|
] }),
|
|
3763
|
-
/* @__PURE__ */
|
|
4160
|
+
/* @__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
4161
|
] });
|
|
3765
4162
|
}
|
|
3766
4163
|
const itemDate = new Date(item.date);
|
|
@@ -3769,19 +4166,19 @@ function ProgramCard({
|
|
|
3769
4166
|
if (config.type === "podcast" && "duration_seconds" in item && !isScheduled) {
|
|
3770
4167
|
const dur = item.duration_seconds;
|
|
3771
4168
|
return /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
3772
|
-
/* @__PURE__ */
|
|
3773
|
-
/* @__PURE__ */
|
|
4169
|
+
/* @__PURE__ */ jsx31(Clock2, { className: "h-4 w-4 text-ods-text-secondary" }),
|
|
4170
|
+
/* @__PURE__ */ jsx31("span", { className: "font-body text-ods-text-secondary", children: formatDurationCompact(typeof dur === "number" ? dur : null) })
|
|
3774
4171
|
] });
|
|
3775
4172
|
}
|
|
3776
4173
|
if (config.type === "event" && "location_name" in item) {
|
|
3777
4174
|
const loc = item.location_name;
|
|
3778
|
-
return /* @__PURE__ */
|
|
4175
|
+
return /* @__PURE__ */ jsx31("span", { className: "font-body text-ods-text-secondary", children: typeof loc === "string" && loc || "Location TBD" });
|
|
3779
4176
|
}
|
|
3780
4177
|
if (config.type === "webinar" && "start_at" in item) {
|
|
3781
4178
|
const { startAt, endAt, timezone } = webinarTiming(item);
|
|
3782
4179
|
const duration = formatDurationFromRange(startAt, endAt);
|
|
3783
4180
|
return /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
3784
|
-
/* @__PURE__ */
|
|
4181
|
+
/* @__PURE__ */ jsx31(Video2, { className: "h-4 w-4 text-ods-text-secondary" }),
|
|
3785
4182
|
/* @__PURE__ */ jsxs21("span", { className: "font-body text-ods-text-secondary", children: [
|
|
3786
4183
|
formatTimeWithTimezone(startAt, timezone),
|
|
3787
4184
|
duration && ` \xB7 ${duration}`
|
|
@@ -3795,9 +4192,9 @@ function ProgramCard({
|
|
|
3795
4192
|
}
|
|
3796
4193
|
return null;
|
|
3797
4194
|
};
|
|
3798
|
-
const cardHeader = /* @__PURE__ */
|
|
3799
|
-
coverImage && /* @__PURE__ */
|
|
3800
|
-
/* @__PURE__ */
|
|
4195
|
+
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: [
|
|
4196
|
+
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: [
|
|
4197
|
+
/* @__PURE__ */ jsx31(
|
|
3801
4198
|
next_image_default,
|
|
3802
4199
|
{
|
|
3803
4200
|
src: coverImage,
|
|
@@ -3808,23 +4205,23 @@ function ProgramCard({
|
|
|
3808
4205
|
unoptimized: true
|
|
3809
4206
|
}
|
|
3810
4207
|
),
|
|
3811
|
-
config.type === "podcast" && !isScheduled && /* @__PURE__ */
|
|
4208
|
+
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
4209
|
] }) }),
|
|
3813
4210
|
/* @__PURE__ */ jsxs21("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3814
|
-
/* @__PURE__ */
|
|
4211
|
+
/* @__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
4212
|
/* @__PURE__ */ jsxs21("div", { className: "mb-4 flex flex-col gap-2 md:flex-row md:items-center md:gap-4", children: [
|
|
3816
|
-
/* @__PURE__ */
|
|
4213
|
+
/* @__PURE__ */ jsx31("span", { className: "text-h6", style: { color: accentColor }, children: dateFormat }),
|
|
3817
4214
|
renderMeta ? /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
3818
|
-
/* @__PURE__ */
|
|
4215
|
+
/* @__PURE__ */ jsx31("span", { className: "hidden text-ods-text-secondary md:inline", children: "\u2022" }),
|
|
3819
4216
|
renderMeta(item)
|
|
3820
4217
|
] }) : defaultRenderMeta() && /* @__PURE__ */ jsxs21(Fragment9, { children: [
|
|
3821
|
-
/* @__PURE__ */
|
|
3822
|
-
/* @__PURE__ */
|
|
4218
|
+
/* @__PURE__ */ jsx31("span", { className: "hidden text-ods-text-secondary md:inline", children: "\u2022" }),
|
|
4219
|
+
/* @__PURE__ */ jsx31("div", { className: "flex items-center gap-2", children: defaultRenderMeta() })
|
|
3823
4220
|
] })
|
|
3824
4221
|
] }),
|
|
3825
|
-
/* @__PURE__ */
|
|
4222
|
+
/* @__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
4223
|
] }),
|
|
3827
|
-
hosts.length > 0 && /* @__PURE__ */
|
|
4224
|
+
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
4225
|
SquareAvatar,
|
|
3829
4226
|
{
|
|
3830
4227
|
variant: "round",
|
|
@@ -3853,8 +4250,8 @@ function ProgramCard({
|
|
|
3853
4250
|
"aria-label": `Open ${item.title}`,
|
|
3854
4251
|
children: [
|
|
3855
4252
|
cardHeader,
|
|
3856
|
-
images.length > 0 && /* @__PURE__ */
|
|
3857
|
-
/* @__PURE__ */
|
|
4253
|
+
images.length > 0 && /* @__PURE__ */ jsx31(MediaGallery, { images, title: item.title }),
|
|
4254
|
+
/* @__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
4255
|
"span",
|
|
3859
4256
|
{
|
|
3860
4257
|
className: "inline-flex items-center gap-2 rounded-md border border-ods-accent px-4 py-2 text-ods-accent text-h6",
|
|
@@ -3863,7 +4260,7 @@ function ProgramCard({
|
|
|
3863
4260
|
"View ",
|
|
3864
4261
|
config.labels.singular,
|
|
3865
4262
|
" Details",
|
|
3866
|
-
/* @__PURE__ */
|
|
4263
|
+
/* @__PURE__ */ jsx31(ExternalLink2, { className: "h-5 w-5" })
|
|
3867
4264
|
]
|
|
3868
4265
|
}
|
|
3869
4266
|
) }) })
|
|
@@ -3872,16 +4269,16 @@ function ProgramCard({
|
|
|
3872
4269
|
);
|
|
3873
4270
|
}
|
|
3874
4271
|
return /* @__PURE__ */ jsxs21("div", { className: cardFrameClass, style: cardFrameStyle, children: [
|
|
3875
|
-
/* @__PURE__ */
|
|
3876
|
-
images.length > 0 && /* @__PURE__ */
|
|
3877
|
-
/* @__PURE__ */
|
|
4272
|
+
/* @__PURE__ */ jsx31("a", { href, target, rel, className: "block", "aria-label": `Open ${item.title}`, children: cardHeader }),
|
|
4273
|
+
images.length > 0 && /* @__PURE__ */ jsx31(MediaGallery, { images, title: item.title }),
|
|
4274
|
+
/* @__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
4275
|
Button,
|
|
3879
4276
|
{
|
|
3880
4277
|
variant: "outline",
|
|
3881
4278
|
size: "small-legacy",
|
|
3882
4279
|
href,
|
|
3883
4280
|
openInNewTab: target === "_blank",
|
|
3884
|
-
rightIcon: /* @__PURE__ */
|
|
4281
|
+
rightIcon: /* @__PURE__ */ jsx31(ExternalLink2, { className: "h-5 w-5" }),
|
|
3885
4282
|
children: [
|
|
3886
4283
|
"View ",
|
|
3887
4284
|
config.labels.singular,
|
|
@@ -4031,6 +4428,26 @@ export {
|
|
|
4031
4428
|
formatPricingModel,
|
|
4032
4429
|
formatBioText,
|
|
4033
4430
|
SquareAvatar,
|
|
4431
|
+
DESIGN_PALETTE,
|
|
4432
|
+
getContrastRatio,
|
|
4433
|
+
pickReadableTextColor,
|
|
4434
|
+
extractDominantColor,
|
|
4435
|
+
getBestContrastColor,
|
|
4436
|
+
analyzeImageColor,
|
|
4437
|
+
extractImageEdgeColorAsync,
|
|
4438
|
+
getCurrentPlatform,
|
|
4439
|
+
switchPlatformTheme,
|
|
4440
|
+
getSemanticColor,
|
|
4441
|
+
getPlatformConfig,
|
|
4442
|
+
usePlatformColors,
|
|
4443
|
+
getReadableTextColor,
|
|
4444
|
+
HEX_PATTERN,
|
|
4445
|
+
hexToRgb2 as hexToRgb,
|
|
4446
|
+
rgbToHex,
|
|
4447
|
+
deriveHoverColor,
|
|
4448
|
+
deriveActiveColor,
|
|
4449
|
+
rgbToHsl,
|
|
4450
|
+
hslToRgb,
|
|
4034
4451
|
InteractiveCard,
|
|
4035
4452
|
Modal,
|
|
4036
4453
|
ModalContent,
|
|
@@ -4042,6 +4459,11 @@ export {
|
|
|
4042
4459
|
genBadgeBgOpacity,
|
|
4043
4460
|
generationTierFromLabel,
|
|
4044
4461
|
StatusBadge,
|
|
4462
|
+
COLOR_PRESETS,
|
|
4463
|
+
colorPreset,
|
|
4464
|
+
pickPresetColor,
|
|
4465
|
+
PaletteBadge,
|
|
4466
|
+
DepartmentBadge,
|
|
4045
4467
|
getProxiedImageUrl,
|
|
4046
4468
|
urlPathLooksLikeSvg,
|
|
4047
4469
|
shouldProxyImage,
|
|
@@ -4137,4 +4559,4 @@ export {
|
|
|
4137
4559
|
canonicalContentRefType,
|
|
4138
4560
|
buildListUrl
|
|
4139
4561
|
};
|
|
4140
|
-
//# sourceMappingURL=chunk-
|
|
4562
|
+
//# sourceMappingURL=chunk-RD627HGV.js.map
|