@flamingo-stack/openframe-frontend-core 0.0.627 → 0.0.628-snapshot.20260914045040
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-RAPPN6MN.cjs → chunk-2MMEPNSX.cjs} +3 -3
- package/dist/{chunk-RAPPN6MN.cjs.map → chunk-2MMEPNSX.cjs.map} +1 -1
- package/dist/{chunk-HIZAMJPT.js → chunk-2MXKO5BN.js} +12 -12
- package/dist/{chunk-QCSWM3VU.cjs → chunk-2ZSGDKZI.cjs} +9 -9
- package/dist/{chunk-QCSWM3VU.cjs.map → chunk-2ZSGDKZI.cjs.map} +1 -1
- package/dist/{chunk-P7UT2YSC.cjs → chunk-3IXDZI3R.cjs} +3 -3
- package/dist/{chunk-P7UT2YSC.cjs.map → chunk-3IXDZI3R.cjs.map} +1 -1
- package/dist/{chunk-VUAEDAUN.cjs → chunk-3ZY4CE7N.cjs} +6 -6
- package/dist/{chunk-VUAEDAUN.cjs.map → chunk-3ZY4CE7N.cjs.map} +1 -1
- package/dist/{chunk-PKSH6PAK.js → chunk-4NMVDTHA.js} +8 -10
- package/dist/{chunk-PKSH6PAK.js.map → chunk-4NMVDTHA.js.map} +1 -1
- package/dist/{chunk-CAQ5MNLJ.js → chunk-4VPCIREO.js} +3 -3
- package/dist/{chunk-4E3UZZ2J.cjs → chunk-5JAB5LVO.cjs} +34 -34
- package/dist/{chunk-4E3UZZ2J.cjs.map → chunk-5JAB5LVO.cjs.map} +1 -1
- package/dist/{chunk-JRYS4VMV.js → chunk-5LIDR7HL.js} +79 -4
- package/dist/{chunk-JRYS4VMV.js.map → chunk-5LIDR7HL.js.map} +1 -1
- package/dist/{chunk-G46NJNTL.cjs → chunk-5OMBSMRI.cjs} +26 -28
- package/dist/chunk-5OMBSMRI.cjs.map +1 -0
- package/dist/{chunk-SLT5C3PQ.cjs → chunk-7P6M5G3W.cjs} +25 -25
- package/dist/{chunk-SLT5C3PQ.cjs.map → chunk-7P6M5G3W.cjs.map} +1 -1
- package/dist/{chunk-ZOMGXH7C.js → chunk-BVQEU5JB.js} +2 -2
- package/dist/{chunk-VOZZQ6HQ.cjs → chunk-CCWI3622.cjs} +4 -4
- package/dist/{chunk-VOZZQ6HQ.cjs.map → chunk-CCWI3622.cjs.map} +1 -1
- package/dist/{chunk-BJGAFPG5.cjs → chunk-CKMJQ46H.cjs} +42 -42
- package/dist/{chunk-BJGAFPG5.cjs.map → chunk-CKMJQ46H.cjs.map} +1 -1
- package/dist/{chunk-OAXASIVG.cjs → chunk-CV2SESZT.cjs} +7 -7
- package/dist/{chunk-OAXASIVG.cjs.map → chunk-CV2SESZT.cjs.map} +1 -1
- package/dist/{chunk-Y3MIFC5M.js → chunk-D5CKXMMC.js} +4 -4
- package/dist/{chunk-ZGZ7YAJH.js → chunk-DGY4NVIB.js} +8 -10
- package/dist/{chunk-ZGZ7YAJH.js.map → chunk-DGY4NVIB.js.map} +1 -1
- package/dist/{chunk-4SXZT7JP.cjs → chunk-DLHGJYYA.cjs} +83 -83
- package/dist/{chunk-4SXZT7JP.cjs.map → chunk-DLHGJYYA.cjs.map} +1 -1
- package/dist/{chunk-4E7XCEV3.cjs → chunk-EHAYNUOL.cjs} +2 -77
- package/dist/chunk-EHAYNUOL.cjs.map +1 -0
- package/dist/{chunk-X5NN4NJM.js → chunk-F2KBCLUG.js} +2 -2
- package/dist/{chunk-USIRWQJ3.js → chunk-FKBM6U43.js} +1 -76
- package/dist/{chunk-USIRWQJ3.js.map → chunk-FKBM6U43.js.map} +1 -1
- package/dist/{chunk-CK2CPZXB.js → chunk-GR3WOOM7.js} +12 -12
- package/dist/{chunk-GQ7267OV.cjs → chunk-HVWNOPDV.cjs} +5 -5
- package/dist/{chunk-GQ7267OV.cjs.map → chunk-HVWNOPDV.cjs.map} +1 -1
- package/dist/{chunk-QIVX7F3N.cjs → chunk-JJUV7Z4L.cjs} +27 -27
- package/dist/{chunk-QIVX7F3N.cjs.map → chunk-JJUV7Z4L.cjs.map} +1 -1
- package/dist/{chunk-53ARMJHM.cjs → chunk-JONR3BDJ.cjs} +37 -37
- package/dist/{chunk-53ARMJHM.cjs.map → chunk-JONR3BDJ.cjs.map} +1 -1
- package/dist/{chunk-ZCQVUIPH.cjs → chunk-K7EJ7HYJ.cjs} +18 -18
- package/dist/{chunk-ZCQVUIPH.cjs.map → chunk-K7EJ7HYJ.cjs.map} +1 -1
- package/dist/{chunk-VZQ3VVFH.cjs → chunk-KO52PXL4.cjs} +20 -22
- package/dist/chunk-KO52PXL4.cjs.map +1 -0
- package/dist/{chunk-BC726XIQ.cjs → chunk-LHYRLL64.cjs} +47 -49
- package/dist/chunk-LHYRLL64.cjs.map +1 -0
- package/dist/{chunk-4PIHIFJM.js → chunk-LQLL4S4V.js} +4 -4
- package/dist/{chunk-KXDYBRRR.js → chunk-MOB5AA3X.js} +7 -7
- package/dist/{chunk-DH3YH3TV.js → chunk-MTLDYBXK.js} +8 -8
- package/dist/{chunk-L5FEAOGJ.js → chunk-ON7663OW.js} +354 -8
- package/dist/chunk-ON7663OW.js.map +1 -0
- package/dist/{chunk-55X46LKR.cjs → chunk-OQHFHKUG.cjs} +100 -450
- package/dist/chunk-OQHFHKUG.cjs.map +1 -0
- package/dist/{chunk-WZ6CUZMM.js → chunk-OXTV63QO.js} +4 -4
- package/dist/{chunk-NLADJ4IX.js → chunk-PFBMVQ5R.js} +6 -6
- package/dist/{chunk-5E55S5SI.js → chunk-PJZYJDR7.js} +4 -4
- package/dist/{chunk-PTP5LSYM.js → chunk-QGWBMPQY.js} +61 -22
- package/dist/chunk-QGWBMPQY.js.map +1 -0
- package/dist/{chunk-2J7EFH4V.js → chunk-QS2QCXBH.js} +30 -380
- package/dist/chunk-QS2QCXBH.js.map +1 -0
- package/dist/{chunk-76HB456V.js → chunk-S6WBBSII.js} +5 -5
- package/dist/{chunk-G47XRVZA.js → chunk-SCPJ53CM.js} +3 -3
- package/dist/{chunk-25UWKNII.js → chunk-T46STYS2.js} +8 -10
- package/dist/{chunk-25UWKNII.js.map → chunk-T46STYS2.js.map} +1 -1
- package/dist/{chunk-6I3KNDBF.cjs → chunk-U7TTQV4N.cjs} +3 -3
- package/dist/{chunk-6I3KNDBF.cjs.map → chunk-U7TTQV4N.cjs.map} +1 -1
- package/dist/{chunk-ZYDNPUSH.cjs → chunk-UNI3POHU.cjs} +625 -279
- package/dist/chunk-UNI3POHU.cjs.map +1 -0
- package/dist/{chunk-N6XNJX25.cjs → chunk-W523NIJ6.cjs} +15 -15
- package/dist/{chunk-N6XNJX25.cjs.map → chunk-W523NIJ6.cjs.map} +1 -1
- package/dist/{chunk-J6ATJUEE.js → chunk-WBZ4HP7D.js} +4 -4
- package/dist/{chunk-R3SJ6PMI.cjs → chunk-WR67VM2J.cjs} +463 -424
- package/dist/chunk-WR67VM2J.cjs.map +1 -0
- package/dist/{chunk-32P6KUZP.js → chunk-X3LC6R37.js} +2 -2
- package/dist/{chunk-FR6EDA3P.cjs → chunk-XNC37UQP.cjs} +105 -105
- package/dist/{chunk-FR6EDA3P.cjs.map → chunk-XNC37UQP.cjs.map} +1 -1
- package/dist/{chunk-CMUNJZWN.js → chunk-YQCA4ZEJ.js} +2 -2
- package/dist/{chunk-ZI27ALYX.cjs → chunk-YXWGSDK4.cjs} +80 -5
- package/dist/chunk-YXWGSDK4.cjs.map +1 -0
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/case-studies/index.js +8 -8
- 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/changelog-manager.d.ts +17 -1
- package/dist/components/features/changelog-manager.d.ts.map +1 -1
- 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 +69 -71
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +24 -26
- 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/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 +5 -4
- package/dist/components/ui/color-preset-select.d.ts.map +1 -1
- package/dist/components/ui/department-badge.d.ts +3 -3
- package/dist/components/ui/index.cjs +8 -10
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +7 -9
- package/dist/components/ui/palette-badge.d.ts +6 -8
- package/dist/components/ui/palette-badge.d.ts.map +1 -1
- package/dist/components/ui/status-badge.d.ts +1 -1
- package/dist/components/ui/status-badge.d.ts.map +1 -1
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/index.js +4 -4
- package/dist/index.cjs +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +46 -46
- package/dist/types/department.d.ts +1 -1
- package/dist/types/department.d.ts.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/product-release.d.ts +5 -0
- package/dist/types/product-release.d.ts.map +1 -1
- package/dist/utils/badge-palette.d.ts +18 -0
- package/dist/utils/badge-palette.d.ts.map +1 -0
- package/dist/utils/index.cjs +21 -24
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +19 -22
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/features/__tests__/changelog-manager-tags.test.tsx +57 -0
- package/src/components/features/changelog-manager.tsx +69 -5
- package/src/components/ui/.department-badge.md +2 -2
- package/src/components/ui/.palette-badge.md +2 -2
- package/src/components/ui/.status-badge.md +2 -2
- package/src/components/ui/__tests__/department-badge.test.tsx +23 -21
- package/src/components/ui/color-preset-select.tsx +21 -5
- package/src/components/ui/department-badge.tsx +3 -3
- package/src/components/ui/palette-badge.tsx +8 -13
- package/src/components/ui/status-badge.tsx +5 -0
- package/src/types/department.ts +1 -1
- package/src/types/product-release.ts +5 -0
- package/src/utils/.badge-palette.md +2 -0
- package/src/utils/badge-palette.ts +38 -0
- package/src/utils/index.ts +2 -1
- package/dist/chunk-2J7EFH4V.js.map +0 -1
- package/dist/chunk-4E7XCEV3.cjs.map +0 -1
- package/dist/chunk-55X46LKR.cjs.map +0 -1
- package/dist/chunk-BC726XIQ.cjs.map +0 -1
- package/dist/chunk-G46NJNTL.cjs.map +0 -1
- package/dist/chunk-L5FEAOGJ.js.map +0 -1
- package/dist/chunk-PTP5LSYM.js.map +0 -1
- package/dist/chunk-R3SJ6PMI.cjs.map +0 -1
- package/dist/chunk-VZQ3VVFH.cjs.map +0 -1
- package/dist/chunk-ZI27ALYX.cjs.map +0 -1
- package/dist/chunk-ZYDNPUSH.cjs.map +0 -1
- package/dist/utils/color-presets.d.ts +0 -24
- package/dist/utils/color-presets.d.ts.map +0 -1
- package/src/utils/.color-presets.md +0 -2
- package/src/utils/color-presets.ts +0 -48
- /package/dist/{chunk-HIZAMJPT.js.map → chunk-2MXKO5BN.js.map} +0 -0
- /package/dist/{chunk-CAQ5MNLJ.js.map → chunk-4VPCIREO.js.map} +0 -0
- /package/dist/{chunk-ZOMGXH7C.js.map → chunk-BVQEU5JB.js.map} +0 -0
- /package/dist/{chunk-Y3MIFC5M.js.map → chunk-D5CKXMMC.js.map} +0 -0
- /package/dist/{chunk-X5NN4NJM.js.map → chunk-F2KBCLUG.js.map} +0 -0
- /package/dist/{chunk-CK2CPZXB.js.map → chunk-GR3WOOM7.js.map} +0 -0
- /package/dist/{chunk-4PIHIFJM.js.map → chunk-LQLL4S4V.js.map} +0 -0
- /package/dist/{chunk-KXDYBRRR.js.map → chunk-MOB5AA3X.js.map} +0 -0
- /package/dist/{chunk-DH3YH3TV.js.map → chunk-MTLDYBXK.js.map} +0 -0
- /package/dist/{chunk-WZ6CUZMM.js.map → chunk-OXTV63QO.js.map} +0 -0
- /package/dist/{chunk-NLADJ4IX.js.map → chunk-PFBMVQ5R.js.map} +0 -0
- /package/dist/{chunk-5E55S5SI.js.map → chunk-PJZYJDR7.js.map} +0 -0
- /package/dist/{chunk-76HB456V.js.map → chunk-S6WBBSII.js.map} +0 -0
- /package/dist/{chunk-G47XRVZA.js.map → chunk-SCPJ53CM.js.map} +0 -0
- /package/dist/{chunk-J6ATJUEE.js.map → chunk-WBZ4HP7D.js.map} +0 -0
- /package/dist/{chunk-32P6KUZP.js.map → chunk-X3LC6R37.js.map} +0 -0
- /package/dist/{chunk-CMUNJZWN.js.map → chunk-YQCA4ZEJ.js.map} +0 -0
|
@@ -7,11 +7,7 @@ var _chunkWLSFBRT5cjs = require('./chunk-WLSFBRT5.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var _chunk4E7XCEV3cjs = require('./chunk-4E7XCEV3.cjs');
|
|
10
|
+
var _chunkEHAYNUOLcjs = require('./chunk-EHAYNUOL.cjs');
|
|
15
11
|
|
|
16
12
|
|
|
17
13
|
|
|
@@ -275,15 +271,15 @@ function formatWholeDollars(price, currency = "USD") {
|
|
|
275
271
|
}
|
|
276
272
|
function formatCompactMetric(value, format2 = "number", options) {
|
|
277
273
|
if (value === 0 || value === null || value === void 0) {
|
|
278
|
-
if (format2 === "currency") return `${_optionalChain([options, 'optionalAccess',
|
|
274
|
+
if (format2 === "currency") return `${_optionalChain([options, 'optionalAccess', _ => _.prefix]) || "$"}0`;
|
|
279
275
|
if (format2 === "percentage") return "0%";
|
|
280
|
-
if (format2 === "months") return `0 ${_optionalChain([options, 'optionalAccess',
|
|
276
|
+
if (format2 === "months") return `0 ${_optionalChain([options, 'optionalAccess', _2 => _2.suffix]) || "months"}`;
|
|
281
277
|
return "0";
|
|
282
278
|
}
|
|
283
279
|
const absValue = Math.abs(value);
|
|
284
280
|
const sign = value < 0 ? "-" : "";
|
|
285
281
|
if (format2 === "currency") {
|
|
286
|
-
const prefix = _optionalChain([options, 'optionalAccess',
|
|
282
|
+
const prefix = _optionalChain([options, 'optionalAccess', _3 => _3.prefix]) || "$";
|
|
287
283
|
const compact = (val, divisor, suffix) => {
|
|
288
284
|
const divided = val / divisor;
|
|
289
285
|
const formatted = divided % 1 === 0 ? divided.toFixed(0) : divided.toFixed(1);
|
|
@@ -299,7 +295,7 @@ function formatCompactMetric(value, format2 = "number", options) {
|
|
|
299
295
|
}
|
|
300
296
|
if (format2 === "months") {
|
|
301
297
|
const rounded = Math.round(value * 10) / 10;
|
|
302
|
-
return `${rounded} ${_optionalChain([options, 'optionalAccess',
|
|
298
|
+
return `${rounded} ${_optionalChain([options, 'optionalAccess', _4 => _4.suffix]) || "months"}`;
|
|
303
299
|
}
|
|
304
300
|
if (absValue >= 1e6) return `${sign}${(absValue / 1e6).toFixed(1)}M`;
|
|
305
301
|
if (absValue >= 1e3) return `${sign}${(absValue / 1e3).toFixed(1)}K`;
|
|
@@ -421,7 +417,7 @@ var SquareAvatar = _react.memo.call(void 0,
|
|
|
421
417
|
style,
|
|
422
418
|
...props
|
|
423
419
|
}, ref) => {
|
|
424
|
-
const resolvedSrc =
|
|
420
|
+
const resolvedSrc = _chunkEHAYNUOLcjs.useAuthedImageSrc.call(void 0, src);
|
|
425
421
|
const sizeClasses2 = {
|
|
426
422
|
// xs (24px): dense card meta rows — avatar stacks on delivery/
|
|
427
423
|
// roadmap cards. Part of the shared scale so no caller ever
|
|
@@ -511,332 +507,6 @@ var SquareAvatar = _react.memo.call(void 0,
|
|
|
511
507
|
);
|
|
512
508
|
SquareAvatar.displayName = "SquareAvatar";
|
|
513
509
|
|
|
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 (e3) {
|
|
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 = _chunk4E7XCEV3cjs.PLATFORM_THEME === "dark";
|
|
748
|
-
return {
|
|
749
|
-
platform: currentPlatform,
|
|
750
|
-
accentColor: _chunk4E7XCEV3cjs.getPlatformAccentColor.call(void 0, currentPlatform),
|
|
751
|
-
isDarkTheme,
|
|
752
|
-
isLightTheme: !isDarkTheme,
|
|
753
|
-
brandName: _chunk4E7XCEV3cjs.getPlatformDisplayName.call(void 0, 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) => _chunk4E7XCEV3cjs.clamp.call(void 0, 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 = _chunk4E7XCEV3cjs.clamp.call(void 0, s, 0, 100) / 100;
|
|
815
|
-
const ln = _chunk4E7XCEV3cjs.clamp.call(void 0, 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
|
-
|
|
840
510
|
// src/components/ui/interactive-card.tsx
|
|
841
511
|
|
|
842
512
|
|
|
@@ -1087,6 +757,11 @@ var statusBadgeVariants = _classvarianceauthority.cva.call(void 0, "inline-flex
|
|
|
1087
757
|
yellow: "border border-ods-border bg-ods-accent text-ods-text-on-accent",
|
|
1088
758
|
green: "bg-ods-success text-ods-text-on-accent",
|
|
1089
759
|
purple: "bg-ods-flamingo-pink text-ods-text-on-accent",
|
|
760
|
+
// Solid and soft ODS palette fills (`BADGE_PALETTE`): tokens only, no hex.
|
|
761
|
+
cyanSoft: "bg-ods-flamingo-cyan-secondary text-ods-flamingo-cyan",
|
|
762
|
+
pinkSoft: "bg-ods-flamingo-pink-secondary text-ods-flamingo-pink",
|
|
763
|
+
openYellow: "bg-ods-open-yellow text-ods-text-on-accent",
|
|
764
|
+
red: "bg-ods-error text-ods-text-on-accent",
|
|
1090
765
|
success: "bg-ods-success-secondary text-ods-success",
|
|
1091
766
|
error: "bg-ods-error-secondary text-ods-error",
|
|
1092
767
|
warning: "bg-ods-warning-secondary text-ods-warning",
|
|
@@ -1137,48 +812,43 @@ function StatusBadge({ text, variant, colorScheme, className, singleLine, gen, s
|
|
|
1137
812
|
);
|
|
1138
813
|
}
|
|
1139
814
|
|
|
1140
|
-
// src/utils/
|
|
1141
|
-
var
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
{ key: "pink", label: "Pink", color: "#e988a8" },
|
|
1153
|
-
{ key: "neutral", label: "Neutral", color: "#b0b0b0" }
|
|
815
|
+
// src/utils/badge-palette.ts
|
|
816
|
+
var BADGE_PALETTE = [
|
|
817
|
+
"cyan",
|
|
818
|
+
"cyanSoft",
|
|
819
|
+
"pink",
|
|
820
|
+
"pinkSoft",
|
|
821
|
+
"openYellow",
|
|
822
|
+
"warning",
|
|
823
|
+
"green",
|
|
824
|
+
"success",
|
|
825
|
+
"red",
|
|
826
|
+
"error"
|
|
1154
827
|
];
|
|
1155
|
-
function
|
|
1156
|
-
return
|
|
828
|
+
function isBadgePaletteKey(value) {
|
|
829
|
+
return typeof value === "string" && BADGE_PALETTE.includes(value);
|
|
1157
830
|
}
|
|
1158
|
-
function
|
|
831
|
+
function pickBadgePaletteColor({
|
|
1159
832
|
avoid = [],
|
|
1160
833
|
random = Math.random
|
|
1161
834
|
} = {}) {
|
|
1162
|
-
const colours = COLOR_PRESETS.filter((preset) => preset.key !== "neutral");
|
|
1163
835
|
const used = new Set(avoid);
|
|
1164
|
-
const free =
|
|
1165
|
-
const pool = free.length > 0 ? free :
|
|
1166
|
-
return pool[Math.floor(random() * pool.length) % pool.length]
|
|
836
|
+
const free = BADGE_PALETTE.filter((key) => !used.has(key));
|
|
837
|
+
const pool = free.length > 0 ? free : BADGE_PALETTE;
|
|
838
|
+
return pool[Math.floor(random() * pool.length) % pool.length];
|
|
1167
839
|
}
|
|
1168
840
|
|
|
1169
841
|
// src/components/ui/palette-badge.tsx
|
|
1170
842
|
|
|
1171
843
|
function PaletteBadge({ text, color, className, variant = "button" }) {
|
|
1172
|
-
const fill = _nullishCoalesce(_optionalChain([colorPreset, 'call', _6 => _6(color), 'optionalAccess', _7 => _7.color]), () => ( (color && HEX_PATTERN.test(color) ? color : null)));
|
|
1173
844
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1174
845
|
StatusBadge,
|
|
1175
846
|
{
|
|
1176
847
|
text,
|
|
1177
|
-
colorScheme: "default",
|
|
848
|
+
colorScheme: isBadgePaletteKey(color) ? color : "default",
|
|
1178
849
|
variant,
|
|
1179
850
|
singleLine: true,
|
|
1180
|
-
className
|
|
1181
|
-
style: fill ? { backgroundColor: fill, color: getReadableTextColor(fill) } : void 0
|
|
851
|
+
className
|
|
1182
852
|
}
|
|
1183
853
|
);
|
|
1184
854
|
}
|
|
@@ -1194,8 +864,8 @@ function DepartmentBadge({
|
|
|
1194
864
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1195
865
|
PaletteBadge,
|
|
1196
866
|
{
|
|
1197
|
-
text: _optionalChain([department, 'optionalAccess',
|
|
1198
|
-
color: _optionalChain([department, 'optionalAccess',
|
|
867
|
+
text: _optionalChain([department, 'optionalAccess', _5 => _5.name]) || emptyLabel,
|
|
868
|
+
color: _optionalChain([department, 'optionalAccess', _6 => _6.name]) ? department.color : null,
|
|
1199
869
|
className,
|
|
1200
870
|
variant
|
|
1201
871
|
}
|
|
@@ -1205,9 +875,9 @@ function DepartmentBadge({
|
|
|
1205
875
|
// src/utils/image-proxy.ts
|
|
1206
876
|
function getProxiedImageUrl(imageUrl, options) {
|
|
1207
877
|
if (!imageUrl) return null;
|
|
1208
|
-
const proxyPrefix = _optionalChain([options, 'optionalAccess',
|
|
1209
|
-
const skipDomains = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
1210
|
-
const directHttps = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
878
|
+
const proxyPrefix = _optionalChain([options, 'optionalAccess', _7 => _7.proxyPrefix]);
|
|
879
|
+
const skipDomains = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _8 => _8.skipDomains]), () => ( []));
|
|
880
|
+
const directHttps = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _9 => _9.directHttps]), () => ( false));
|
|
1211
881
|
if (proxyPrefix && imageUrl.includes(proxyPrefix)) {
|
|
1212
882
|
return imageUrl;
|
|
1213
883
|
}
|
|
@@ -1230,7 +900,7 @@ function getProxiedImageUrl(imageUrl, options) {
|
|
|
1230
900
|
function urlPathLooksLikeSvg(imageUrl) {
|
|
1231
901
|
try {
|
|
1232
902
|
return /\.svg$/i.test(new URL(imageUrl).pathname);
|
|
1233
|
-
} catch (
|
|
903
|
+
} catch (e3) {
|
|
1234
904
|
return /\.svg(\?|#|$)/i.test(imageUrl);
|
|
1235
905
|
}
|
|
1236
906
|
}
|
|
@@ -1272,14 +942,14 @@ function isSameOriginAbsoluteHref(href) {
|
|
|
1272
942
|
if (!/^https?:\/\//i.test(href)) return false;
|
|
1273
943
|
try {
|
|
1274
944
|
return new URL(href).origin === new URL(window.location.href).origin;
|
|
1275
|
-
} catch (
|
|
945
|
+
} catch (e4) {
|
|
1276
946
|
return false;
|
|
1277
947
|
}
|
|
1278
948
|
}
|
|
1279
949
|
function computeIsNewTab(runtime, href, targetPlatform) {
|
|
1280
950
|
if (!href) return false;
|
|
1281
951
|
if (runtime.navigation.mode === "embed") return !isSameOriginAbsoluteHref(href);
|
|
1282
|
-
return _nullishCoalesce(_optionalChain([runtime, 'access',
|
|
952
|
+
return _nullishCoalesce(_optionalChain([runtime, 'access', _10 => _10.navigation, 'access', _11 => _11.decideNewTab, 'optionalCall', _12 => _12({ href, targetPlatform })]), () => ( decideNewTab({
|
|
1283
953
|
href,
|
|
1284
954
|
targetPlatform,
|
|
1285
955
|
currentSource: _nullishCoalesce(runtime.source, () => ( ""))
|
|
@@ -1345,7 +1015,7 @@ function EntityAuthorCard({
|
|
|
1345
1015
|
renderEmptyAuthor = false,
|
|
1346
1016
|
className
|
|
1347
1017
|
}) {
|
|
1348
|
-
const hasAuthor = !!_optionalChain([author, 'optionalAccess',
|
|
1018
|
+
const hasAuthor = !!_optionalChain([author, 'optionalAccess', _13 => _13.full_name]);
|
|
1349
1019
|
if (!hasAuthor && !renderEmptyAuthor) return null;
|
|
1350
1020
|
const effectiveAuthor = hasAuthor ? author : EMPTY_AUTHOR_PLACEHOLDER;
|
|
1351
1021
|
const formatted = publishedAt ? formatDate(publishedAt) : "";
|
|
@@ -1434,14 +1104,14 @@ function EntityPortraitCard({
|
|
|
1434
1104
|
}) {
|
|
1435
1105
|
const { src, onError: onMediaError } = useCoverImageFallback(imageUrl, placeholderUrl);
|
|
1436
1106
|
const [measured, setMeasured] = _react.useState.call(void 0, null);
|
|
1437
|
-
const isWide = _optionalChain([measured, 'optionalAccess',
|
|
1107
|
+
const isWide = _optionalChain([measured, 'optionalAccess', _14 => _14.src]) === src ? measured.isWide : null;
|
|
1438
1108
|
const onMediaLoad = (e) => {
|
|
1439
1109
|
const img = e.currentTarget;
|
|
1440
1110
|
if (img.naturalWidth > 0 && img.naturalHeight > 0) {
|
|
1441
1111
|
setMeasured({ src, isWide: img.naturalWidth / img.naturalHeight >= MIN_WIDE_RATIO });
|
|
1442
1112
|
}
|
|
1443
1113
|
};
|
|
1444
|
-
const edgeColor =
|
|
1114
|
+
const edgeColor = _chunkEHAYNUOLcjs.useImageEdgeColor.call(void 0, isWide === false ? src : null, "var(--color-bg-surface)");
|
|
1445
1115
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target, rel, className: _chunk23V5BSHDcjs.cn.call(void 0, "block h-full", className), "aria-label": `Open ${title}`, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, 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
1116
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1447
1117
|
"div",
|
|
@@ -1654,7 +1324,7 @@ function PlatformBadge({ platform, size = "sm", showLabel = true, className }) {
|
|
|
1654
1324
|
return null;
|
|
1655
1325
|
}
|
|
1656
1326
|
const sizes = sizeClasses[size];
|
|
1657
|
-
const colors =
|
|
1327
|
+
const colors = _chunkEHAYNUOLcjs.getPlatformBrandClasses.call(void 0, platform.name);
|
|
1658
1328
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1659
1329
|
"div",
|
|
1660
1330
|
{
|
|
@@ -1695,7 +1365,7 @@ function AdminContentCard({
|
|
|
1695
1365
|
const [loadedUrl, setLoadedUrl] = _react.useState.call(void 0, null);
|
|
1696
1366
|
const displayUrl = imageUrl && !imageError ? imageUrl : placeholderUrl;
|
|
1697
1367
|
const imageLoaded = Boolean(displayUrl) && loadedUrl === displayUrl;
|
|
1698
|
-
const imageBgColor =
|
|
1368
|
+
const imageBgColor = _chunkEHAYNUOLcjs.useImageEdgeColor.call(void 0, displayUrl || null, "transparent");
|
|
1699
1369
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1700
1370
|
"article",
|
|
1701
1371
|
{
|
|
@@ -1734,8 +1404,8 @@ function AdminContentCard({
|
|
|
1734
1404
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: _chunk23V5BSHDcjs.cn.call(void 0, "line-clamp-2 break-words text-ods-text-primary text-h3", reserveRows && "min-h-[2lh]"), children: title }),
|
|
1735
1405
|
(subtitle || reserveRows) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk23V5BSHDcjs.cn.call(void 0, "truncate text-ods-text-secondary text-h6", reserveRows && "min-h-[1lh]"), children: subtitle }),
|
|
1736
1406
|
(summary || reserveRows) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk23V5BSHDcjs.cn.call(void 0, "line-clamp-2 text-ods-text-secondary text-h6", reserveRows && "min-h-[2lh]"), children: summary }),
|
|
1737
|
-
(Number(_optionalChain([platforms, 'optionalAccess',
|
|
1738
|
-
_optionalChain([platforms, 'optionalAccess',
|
|
1407
|
+
(Number(_optionalChain([platforms, 'optionalAccess', _15 => _15.length])) > 0 || badges || reserveRows) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "flex flex-wrap items-center gap-2", reserveRows && "min-h-7"), children: [
|
|
1408
|
+
_optionalChain([platforms, 'optionalAccess', _16 => _16.map, 'call', _17 => _17((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1739
1409
|
PlatformBadge,
|
|
1740
1410
|
{
|
|
1741
1411
|
platform: { id: p.id || p.platform_id || "", name: p.name, display_name: p.display_name || p.name },
|
|
@@ -1815,7 +1485,7 @@ function EmployeeEntryCard({
|
|
|
1815
1485
|
] }) : null,
|
|
1816
1486
|
meta: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1817
1487
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-2", children: [
|
|
1818
|
-
_optionalChain([entry, 'access',
|
|
1488
|
+
_optionalChain([entry, 'access', _18 => _18.author, 'optionalAccess', _19 => _19.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1819
1489
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
1820
1490
|
{
|
|
1821
1491
|
src: _nullishCoalesce(getProxiedImageUrl2(entry.author.avatar_url), () => ( entry.author.avatar_url)),
|
|
@@ -1826,7 +1496,7 @@ function EmployeeEntryCard({
|
|
|
1826
1496
|
unoptimized: true
|
|
1827
1497
|
}
|
|
1828
1498
|
) : null,
|
|
1829
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _nullishCoalesce(_optionalChain([entry, 'access',
|
|
1499
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _nullishCoalesce(_optionalChain([entry, 'access', _20 => _20.author, 'optionalAccess', _21 => _21.full_name]), () => ( "")) })
|
|
1830
1500
|
] }),
|
|
1831
1501
|
dateLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: dateLabel }) : null
|
|
1832
1502
|
] }),
|
|
@@ -1899,7 +1569,7 @@ var HowIWorkCardSkeleton = EmployeeEntryCardSkeleton;
|
|
|
1899
1569
|
// src/components/chat/entity-cards/ai-prompt-card.tsx
|
|
1900
1570
|
|
|
1901
1571
|
function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }) {
|
|
1902
|
-
const departmentName = _optionalChain([entry, 'access',
|
|
1572
|
+
const departmentName = _optionalChain([entry, 'access', _22 => _22.department, 'optionalAccess', _23 => _23.name, 'optionalAccess', _24 => _24.trim, 'call', _25 => _25()]);
|
|
1903
1573
|
const steps = typeof entry.step_count === "number" ? entry.step_count : 0;
|
|
1904
1574
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1905
1575
|
EmployeeEntryCard,
|
|
@@ -1907,7 +1577,7 @@ function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }
|
|
|
1907
1577
|
entry,
|
|
1908
1578
|
dateLabel: entry.published_at ? formatDateUTC(entry.published_at, { fallback: "" }) || null : null,
|
|
1909
1579
|
extraBadges: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1910
|
-
departmentName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepartmentBadge, { department: { name: departmentName, color: _nullishCoalesce(_optionalChain([entry, 'access',
|
|
1580
|
+
departmentName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepartmentBadge, { department: { name: departmentName, color: _nullishCoalesce(_optionalChain([entry, 'access', _26 => _26.department, 'optionalAccess', _27 => _27.color]), () => ( null)) } }) : null,
|
|
1911
1581
|
steps > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: `${steps} steps` }) : null
|
|
1912
1582
|
] }),
|
|
1913
1583
|
untitledLabel: "Untitled prompt",
|
|
@@ -1923,7 +1593,7 @@ var AiPromptCardSkeleton = EmployeeEntryCardSkeleton;
|
|
|
1923
1593
|
// src/components/features/video-bites-shared.ts
|
|
1924
1594
|
var DEFAULT_VIDEO_BITES_TITLE = "Key Moments";
|
|
1925
1595
|
function toStripProfile(p, fallbackSubtitle) {
|
|
1926
|
-
if (!_optionalChain([p, 'optionalAccess',
|
|
1596
|
+
if (!_optionalChain([p, 'optionalAccess', _28 => _28.full_name])) return null;
|
|
1927
1597
|
return {
|
|
1928
1598
|
name: p.full_name,
|
|
1929
1599
|
avatarUrl: _nullishCoalesce(p.avatar_url, () => ( null)),
|
|
@@ -1965,7 +1635,7 @@ function ProductReleaseCard({
|
|
|
1965
1635
|
changelogCounts
|
|
1966
1636
|
}) {
|
|
1967
1637
|
if (size === "lg") {
|
|
1968
|
-
const totalChangelog = (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess',
|
|
1638
|
+
const totalChangelog = (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _29 => _29.features]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _30 => _30.fixes]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _31 => _31.improvements]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _32 => _32.breaking]), () => ( 0)));
|
|
1969
1639
|
const valueCells = [
|
|
1970
1640
|
releaseType && releaseTypeBadgeColor ? {
|
|
1971
1641
|
value: releaseType.toUpperCase(),
|
|
@@ -1984,7 +1654,7 @@ function ProductReleaseCard({
|
|
|
1984
1654
|
uppercase: false
|
|
1985
1655
|
} : { value: "\u2014", label: "Released", uppercase: false }
|
|
1986
1656
|
];
|
|
1987
|
-
const effectiveAuthor = _optionalChain([author, 'optionalAccess',
|
|
1657
|
+
const effectiveAuthor = _optionalChain([author, 'optionalAccess', _33 => _33.full_name]) ? author : { full_name: "\u2014", avatar_url: null, job_title: "Unknown" };
|
|
1988
1658
|
const gridColsClass = "md:grid-cols-4";
|
|
1989
1659
|
const dividerClass = "border-b md:border-b-0 md:border-r border-ods-border";
|
|
1990
1660
|
const frameClass = _chunk23V5BSHDcjs.cn.call(void 0,
|
|
@@ -2358,10 +2028,10 @@ function buildProductReleaseCardProps(item) {
|
|
|
2358
2028
|
job_title: release.author.job_title
|
|
2359
2029
|
} : void 0,
|
|
2360
2030
|
changelogCounts: {
|
|
2361
|
-
features: _nullishCoalesce(_optionalChain([release, 'access',
|
|
2362
|
-
fixes: _nullishCoalesce(_optionalChain([release, 'access',
|
|
2363
|
-
improvements: _nullishCoalesce(_optionalChain([release, 'access',
|
|
2364
|
-
breaking: _nullishCoalesce(_optionalChain([release, 'access',
|
|
2031
|
+
features: _nullishCoalesce(_optionalChain([release, 'access', _34 => _34.features_added, 'optionalAccess', _35 => _35.length]), () => ( 0)),
|
|
2032
|
+
fixes: _nullishCoalesce(_optionalChain([release, 'access', _36 => _36.bugs_fixed, 'optionalAccess', _37 => _37.length]), () => ( 0)),
|
|
2033
|
+
improvements: _nullishCoalesce(_optionalChain([release, 'access', _38 => _38.improvements, 'optionalAccess', _39 => _39.length]), () => ( 0)),
|
|
2034
|
+
breaking: _nullishCoalesce(_optionalChain([release, 'access', _40 => _40.breaking_changes, 'optionalAccess', _41 => _41.length]), () => ( 0))
|
|
2365
2035
|
}
|
|
2366
2036
|
};
|
|
2367
2037
|
}
|
|
@@ -2395,7 +2065,7 @@ function safeHref(url) {
|
|
|
2395
2065
|
if (!SAFE_URL_SCHEMES.includes(parsed.protocol)) return null;
|
|
2396
2066
|
if ((parsed.protocol === "https:" || parsed.protocol === "http:") && !parsed.hostname) return null;
|
|
2397
2067
|
return trimmed;
|
|
2398
|
-
} catch (
|
|
2068
|
+
} catch (e5) {
|
|
2399
2069
|
return null;
|
|
2400
2070
|
}
|
|
2401
2071
|
}
|
|
@@ -2424,7 +2094,7 @@ function useEntityCardPlaceholder({
|
|
|
2424
2094
|
siteName = "",
|
|
2425
2095
|
aspect = "wide"
|
|
2426
2096
|
}) {
|
|
2427
|
-
const derived =
|
|
2097
|
+
const derived = _chunkEHAYNUOLcjs.useOgPlaceholderUrl.call(void 0, { title, siteName, aspect });
|
|
2428
2098
|
return placeholderUrl !== void 0 ? placeholderUrl : derived;
|
|
2429
2099
|
}
|
|
2430
2100
|
|
|
@@ -2487,7 +2157,7 @@ function BlogCard({
|
|
|
2487
2157
|
day: "numeric",
|
|
2488
2158
|
timeZone: "UTC"
|
|
2489
2159
|
}) : "";
|
|
2490
|
-
const firstCategory = _optionalChain([post, 'access',
|
|
2160
|
+
const firstCategory = _optionalChain([post, 'access', _42 => _42.categories, 'optionalAccess', _43 => _43.find, 'call', _44 => _44((c) => c && c.name), 'optionalAccess', _45 => _45.name]);
|
|
2491
2161
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2492
2162
|
"a",
|
|
2493
2163
|
{
|
|
@@ -2705,7 +2375,7 @@ function CaseStudyCard({
|
|
|
2705
2375
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2706
2376
|
{
|
|
2707
2377
|
src: coverImage,
|
|
2708
|
-
alt: `${_optionalChain([study, 'access',
|
|
2378
|
+
alt: `${_optionalChain([study, 'access', _46 => _46.msp, 'optionalAccess', _47 => _47.name]) || study.title} cover`,
|
|
2709
2379
|
className: "object-contain",
|
|
2710
2380
|
fill: true,
|
|
2711
2381
|
sizes: "56px",
|
|
@@ -2715,7 +2385,7 @@ function CaseStudyCard({
|
|
|
2715
2385
|
) : null }),
|
|
2716
2386
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2717
2387
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_TITLE, children: study.title }) }),
|
|
2718
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUBTITLE, children: [_optionalChain([study, 'access',
|
|
2388
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUBTITLE, children: [_optionalChain([study, 'access', _48 => _48.msp, 'optionalAccess', _49 => _49.name]), _optionalChain([study, 'access', _50 => _50.user, 'optionalAccess', _51 => _51.full_name])].filter(Boolean).join(" \xB7 ") || "Case study" }) }),
|
|
2719
2389
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUMMARY, children: study.summary || COMPACT_CARD_ROW_FILLER }) })
|
|
2720
2390
|
] })
|
|
2721
2391
|
] });
|
|
@@ -2730,13 +2400,13 @@ function CaseStudyCard({
|
|
|
2730
2400
|
typeLabel: showTypeBadge ? "Case Study" : void 0,
|
|
2731
2401
|
imageUrl: study.featured_image,
|
|
2732
2402
|
placeholderUrl,
|
|
2733
|
-
imageAlt: _optionalChain([study, 'access',
|
|
2403
|
+
imageAlt: _optionalChain([study, 'access', _52 => _52.msp, 'optionalAccess', _53 => _53.name]) || study.title,
|
|
2734
2404
|
title: study.title,
|
|
2735
2405
|
person: {
|
|
2736
|
-
name: _optionalChain([study, 'access',
|
|
2737
|
-
avatarUrl: _optionalChain([study, 'access',
|
|
2738
|
-
subtitle: _nullishCoalesce(_optionalChain([study, 'access',
|
|
2739
|
-
iconOverlayUrl: _nullishCoalesce(_optionalChain([study, 'access',
|
|
2406
|
+
name: _optionalChain([study, 'access', _54 => _54.user, 'optionalAccess', _55 => _55.full_name]) || "Anonymous",
|
|
2407
|
+
avatarUrl: _optionalChain([study, 'access', _56 => _56.user, 'optionalAccess', _57 => _57.avatar_url]),
|
|
2408
|
+
subtitle: _nullishCoalesce(_optionalChain([study, 'access', _58 => _58.msp, 'optionalAccess', _59 => _59.name]), () => ( null)),
|
|
2409
|
+
iconOverlayUrl: _nullishCoalesce(_optionalChain([study, 'access', _60 => _60.msp, 'optionalAccess', _61 => _61.icon_url]), () => ( null))
|
|
2740
2410
|
},
|
|
2741
2411
|
className
|
|
2742
2412
|
}
|
|
@@ -2747,7 +2417,7 @@ function CaseStudyCard({
|
|
|
2747
2417
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2748
2418
|
{
|
|
2749
2419
|
src: coverImage,
|
|
2750
|
-
alt: _optionalChain([study, 'access',
|
|
2420
|
+
alt: _optionalChain([study, 'access', _62 => _62.msp, 'optionalAccess', _63 => _63.name]) || study.title,
|
|
2751
2421
|
className: "h-full w-full object-cover",
|
|
2752
2422
|
sizes: "(min-width: 1545px) 515px, (min-width: 1280px) 33vw, (min-width: 800px) 50vw, 100vw",
|
|
2753
2423
|
fill: true,
|
|
@@ -2758,18 +2428,18 @@ function CaseStudyCard({
|
|
|
2758
2428
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[72px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 break-words text-ods-text-primary text-h4", children: study.title }) }),
|
|
2759
2429
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[60px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-3", children: [
|
|
2760
2430
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2761
|
-
_optionalChain([study, 'access',
|
|
2431
|
+
_optionalChain([study, 'access', _64 => _64.user, 'optionalAccess', _65 => _65.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2762
2432
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2763
2433
|
{
|
|
2764
2434
|
src: study.user.avatar_url,
|
|
2765
|
-
alt: _optionalChain([study, 'access',
|
|
2435
|
+
alt: _optionalChain([study, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.full_name]) || "User",
|
|
2766
2436
|
className: "h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover",
|
|
2767
2437
|
width: 48,
|
|
2768
2438
|
height: 48,
|
|
2769
2439
|
unoptimized: true
|
|
2770
2440
|
}
|
|
2771
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-full border border-ods-border bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: (_optionalChain([study, 'access',
|
|
2772
|
-
_optionalChain([study, 'access',
|
|
2441
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-full border border-ods-border bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: (_optionalChain([study, 'access', _68 => _68.user, 'optionalAccess', _69 => _69.full_name]) || "A").charAt(0).toUpperCase() }) }),
|
|
2442
|
+
_optionalChain([study, 'access', _70 => _70.msp, 'optionalAccess', _71 => _71.icon_url]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute -bottom-1 -right-1 flex h-6 w-6 items-center justify-center overflow-hidden rounded-full bg-ods-text-primary ring-1 ring-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2773
2443
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2774
2444
|
{
|
|
2775
2445
|
src: study.msp.icon_url,
|
|
@@ -2783,13 +2453,13 @@ function CaseStudyCard({
|
|
|
2783
2453
|
] }),
|
|
2784
2454
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
2785
2455
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: [
|
|
2786
|
-
_optionalChain([study, 'access',
|
|
2787
|
-
_optionalChain([study, 'access',
|
|
2456
|
+
_optionalChain([study, 'access', _72 => _72.user, 'optionalAccess', _73 => _73.full_name]) || "Anonymous",
|
|
2457
|
+
_optionalChain([study, 'access', _74 => _74.msp, 'optionalAccess', _75 => _75.name]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
2788
2458
|
" \u2022 ",
|
|
2789
2459
|
study.msp.name
|
|
2790
2460
|
] })
|
|
2791
2461
|
] }),
|
|
2792
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([study, 'access',
|
|
2462
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([study, 'access', _76 => _76.user, 'optionalAccess', _77 => _77.job_title]) || "\xA0" })
|
|
2793
2463
|
] })
|
|
2794
2464
|
] }) })
|
|
2795
2465
|
] }) });
|
|
@@ -2871,7 +2541,7 @@ function CustomerInterviewCard({
|
|
|
2871
2541
|
] }),
|
|
2872
2542
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2873
2543
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_TITLE, children: interview.title }) }),
|
|
2874
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUBTITLE, children: [_optionalChain([interview, 'access',
|
|
2544
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUBTITLE, children: [_optionalChain([interview, 'access', _78 => _78.user, 'optionalAccess', _79 => _79.full_name]), _optionalChain([interview, 'access', _80 => _80.msp, 'optionalAccess', _81 => _81.name])].filter(Boolean).join(" \xB7 ") || "Customer interview" }) }),
|
|
2875
2545
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUMMARY, children: interview.video_summary || COMPACT_CARD_ROW_FILLER }) })
|
|
2876
2546
|
] })
|
|
2877
2547
|
] });
|
|
@@ -2889,10 +2559,10 @@ function CustomerInterviewCard({
|
|
|
2889
2559
|
imageAlt: interview.title,
|
|
2890
2560
|
title: interview.title,
|
|
2891
2561
|
person: {
|
|
2892
|
-
name: _optionalChain([interview, 'access',
|
|
2893
|
-
avatarUrl: _optionalChain([interview, 'access',
|
|
2894
|
-
subtitle: _nullishCoalesce(_optionalChain([interview, 'access',
|
|
2895
|
-
iconOverlayUrl: _nullishCoalesce(_optionalChain([interview, 'access',
|
|
2562
|
+
name: _optionalChain([interview, 'access', _82 => _82.user, 'optionalAccess', _83 => _83.full_name]) || "Customer",
|
|
2563
|
+
avatarUrl: _optionalChain([interview, 'access', _84 => _84.user, 'optionalAccess', _85 => _85.avatar_url]),
|
|
2564
|
+
subtitle: _nullishCoalesce(_optionalChain([interview, 'access', _86 => _86.msp, 'optionalAccess', _87 => _87.name]), () => ( null)),
|
|
2565
|
+
iconOverlayUrl: _nullishCoalesce(_optionalChain([interview, 'access', _88 => _88.msp, 'optionalAccess', _89 => _89.icon_url]), () => ( null))
|
|
2896
2566
|
},
|
|
2897
2567
|
className
|
|
2898
2568
|
}
|
|
@@ -2918,18 +2588,18 @@ function CustomerInterviewCard({
|
|
|
2918
2588
|
interview.video_summary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 text-ods-text-secondary text-h6", children: interview.video_summary }) }),
|
|
2919
2589
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-auto flex h-[60px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-3", children: [
|
|
2920
2590
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2921
|
-
_optionalChain([interview, 'access',
|
|
2591
|
+
_optionalChain([interview, 'access', _90 => _90.user, 'optionalAccess', _91 => _91.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2922
2592
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2923
2593
|
{
|
|
2924
2594
|
src: interview.user.avatar_url,
|
|
2925
|
-
alt: _optionalChain([interview, 'access',
|
|
2595
|
+
alt: _optionalChain([interview, 'access', _92 => _92.user, 'optionalAccess', _93 => _93.full_name]) || "Customer",
|
|
2926
2596
|
className: "h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover",
|
|
2927
2597
|
width: 48,
|
|
2928
2598
|
height: 48,
|
|
2929
2599
|
unoptimized: true
|
|
2930
2600
|
}
|
|
2931
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-full border border-ods-border bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: (_optionalChain([interview, 'access',
|
|
2932
|
-
_optionalChain([interview, 'access',
|
|
2601
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-full border border-ods-border bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: (_optionalChain([interview, 'access', _94 => _94.user, 'optionalAccess', _95 => _95.full_name]) || "A").charAt(0).toUpperCase() }) }),
|
|
2602
|
+
_optionalChain([interview, 'access', _96 => _96.msp, 'optionalAccess', _97 => _97.icon_url]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute -bottom-1 -right-1 flex h-6 w-6 items-center justify-center overflow-hidden rounded-full bg-ods-text-primary ring-1 ring-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2933
2603
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2934
2604
|
{
|
|
2935
2605
|
src: interview.msp.icon_url,
|
|
@@ -2943,13 +2613,13 @@ function CustomerInterviewCard({
|
|
|
2943
2613
|
] }),
|
|
2944
2614
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
2945
2615
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: [
|
|
2946
|
-
_optionalChain([interview, 'access',
|
|
2947
|
-
_optionalChain([interview, 'access',
|
|
2616
|
+
_optionalChain([interview, 'access', _98 => _98.user, 'optionalAccess', _99 => _99.full_name]) || "Anonymous",
|
|
2617
|
+
_optionalChain([interview, 'access', _100 => _100.msp, 'optionalAccess', _101 => _101.name]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
2948
2618
|
" \u2022 ",
|
|
2949
2619
|
interview.msp.name
|
|
2950
2620
|
] })
|
|
2951
2621
|
] }),
|
|
2952
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([interview, 'access',
|
|
2622
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([interview, 'access', _102 => _102.user, 'optionalAccess', _103 => _103.job_title]) || " " })
|
|
2953
2623
|
] })
|
|
2954
2624
|
] }) })
|
|
2955
2625
|
] }) });
|
|
@@ -2959,7 +2629,7 @@ function CustomerInterviewCard({
|
|
|
2959
2629
|
function formatInvestorUpdatePeriod(start, end, options) {
|
|
2960
2630
|
if (!start && !end) return "";
|
|
2961
2631
|
const fmt = (d) => new Date(d).toLocaleDateString("en-US", {
|
|
2962
|
-
month: _optionalChain([options, 'optionalAccess',
|
|
2632
|
+
month: _optionalChain([options, 'optionalAccess', _104 => _104.monthFormat]) || "short",
|
|
2963
2633
|
year: "numeric",
|
|
2964
2634
|
// Pin to UTC so SSR (Vercel = UTC) and the client agree (React #418).
|
|
2965
2635
|
timeZone: "UTC"
|
|
@@ -3074,7 +2744,7 @@ function InvestorUpdateCard({
|
|
|
3074
2744
|
imageUrl: update.featured_image,
|
|
3075
2745
|
placeholderUrl,
|
|
3076
2746
|
title: update.title || `Update #${update.update_number || "?"}`,
|
|
3077
|
-
summary: _optionalChain([update, 'access',
|
|
2747
|
+
summary: _optionalChain([update, 'access', _105 => _105.strategic_update, 'optionalAccess', _106 => _106.slice, 'call', _107 => _107(0, 120)]) || _optionalChain([update, 'access', _108 => _108.content, 'optionalAccess', _109 => _109.slice, 'call', _110 => _110(0, 120)]) || "No description",
|
|
3078
2748
|
badges: update.update_number ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rounded bg-ods-accent/10 px-2 py-0.5 text-xs font-medium text-ods-accent", children: [
|
|
3079
2749
|
"#",
|
|
3080
2750
|
update.update_number
|
|
@@ -3283,7 +2953,7 @@ function OnboardingGuideCard({
|
|
|
3283
2953
|
const compactCover = coverImage || placeholderUrl || null;
|
|
3284
2954
|
const hasVideoCover = !guide.featured_image && !!guide.main_video_thumbnail;
|
|
3285
2955
|
const summary2 = stripMarkdownPreview(guide.video_summary || guide.content || "");
|
|
3286
|
-
const author = _optionalChain([guide, 'access',
|
|
2956
|
+
const author = _optionalChain([guide, 'access', _111 => _111.author, 'optionalAccess', _112 => _112.full_name, 'optionalAccess', _113 => _113.trim, 'call', _114 => _114()]) || "";
|
|
3287
2957
|
const subtitleParts = [`Step ${guide.step_order}`, guide.section, author].filter(
|
|
3288
2958
|
(s) => typeof s === "string" && s.length > 0
|
|
3289
2959
|
);
|
|
@@ -3408,7 +3078,7 @@ function AvatarStack({
|
|
|
3408
3078
|
|
|
3409
3079
|
// src/components/chat/utils/agent-status-message.ts
|
|
3410
3080
|
function getStatusColorScheme(status) {
|
|
3411
|
-
const s = _optionalChain([status, 'optionalAccess',
|
|
3081
|
+
const s = _optionalChain([status, 'optionalAccess', _115 => _115.toLowerCase, 'call', _116 => _116()]) || "";
|
|
3412
3082
|
switch (status) {
|
|
3413
3083
|
case "completed":
|
|
3414
3084
|
case "success":
|
|
@@ -3650,7 +3320,7 @@ function RoadmapCard({
|
|
|
3650
3320
|
const compactHref = safeHref(_nullishCoalesce(href, () => ( null)));
|
|
3651
3321
|
const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
|
|
3652
3322
|
const hasFigma = !!item.figmaUrl;
|
|
3653
|
-
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access',
|
|
3323
|
+
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _117 => _117.screenshots, 'optionalAccess', _118 => _118.length]), () => ( 0))) > 0;
|
|
3654
3324
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
3655
3325
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
3656
3326
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -3669,7 +3339,7 @@ function RoadmapCard({
|
|
|
3669
3339
|
unoptimized: true,
|
|
3670
3340
|
className: "h-8 w-8 object-contain"
|
|
3671
3341
|
}
|
|
3672
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-secondary text-h6", children: _optionalChain([item, 'access',
|
|
3342
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-secondary text-h6", children: _optionalChain([item, 'access', _119 => _119.title, 'optionalAccess', _120 => _120.substring, 'call', _121 => _121(0, 2)]) || "??" })
|
|
3673
3343
|
}
|
|
3674
3344
|
),
|
|
3675
3345
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -3749,7 +3419,7 @@ function RoadmapCard({
|
|
|
3749
3419
|
unoptimized: true,
|
|
3750
3420
|
className: "object-contain p-1"
|
|
3751
3421
|
}
|
|
3752
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
3422
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _122 => _122.title, 'optionalAccess', _123 => _123.substring, 'call', _124 => _124(0, 2)]) || "??" }) }),
|
|
3753
3423
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3754
3424
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-[48px] items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "line-clamp-2 flex-1 text-ods-text-primary text-h3", children: item.title }) }),
|
|
3755
3425
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-[20px] items-center", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h5", children: [
|
|
@@ -3850,10 +3520,10 @@ var MEDIA_TYPE = {
|
|
|
3850
3520
|
VIDEO: "video"
|
|
3851
3521
|
};
|
|
3852
3522
|
function isVideoMedia(media) {
|
|
3853
|
-
return _optionalChain([media, 'optionalAccess',
|
|
3523
|
+
return _optionalChain([media, 'optionalAccess', _125 => _125.media_type]) === MEDIA_TYPE.VIDEO;
|
|
3854
3524
|
}
|
|
3855
3525
|
function isImageMedia(media) {
|
|
3856
|
-
return _optionalChain([media, 'optionalAccess',
|
|
3526
|
+
return _optionalChain([media, 'optionalAccess', _126 => _126.media_type]) === MEDIA_TYPE.IMAGE;
|
|
3857
3527
|
}
|
|
3858
3528
|
function isPublishableMediaType(mediaType) {
|
|
3859
3529
|
return mediaType === MEDIA_TYPE.VIDEO || mediaType === MEDIA_TYPE.IMAGE;
|
|
@@ -3870,7 +3540,7 @@ function programItemToStripProfile(item) {
|
|
|
3870
3540
|
const fromAuthor = toStripProfile(item.author);
|
|
3871
3541
|
if (fromAuthor) return fromAuthor;
|
|
3872
3542
|
const host = Array.isArray(item.hosts) ? item.hosts[0] : null;
|
|
3873
|
-
if (!_optionalChain([host, 'optionalAccess',
|
|
3543
|
+
if (!_optionalChain([host, 'optionalAccess', _127 => _127.name])) return null;
|
|
3874
3544
|
return toStripProfile({ full_name: host.name, avatar_url: _nullishCoalesce(host.avatar_url, () => ( null)) });
|
|
3875
3545
|
}
|
|
3876
3546
|
function transformEventToProgram(event) {
|
|
@@ -4144,7 +3814,7 @@ function ProgramCard({
|
|
|
4144
3814
|
const itemDate2 = compactDate;
|
|
4145
3815
|
const compactCover = coverImage || placeholderUrl || null;
|
|
4146
3816
|
const typeMeta = compactTypeMeta();
|
|
4147
|
-
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access',
|
|
3817
|
+
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _128 => _128.labels, 'optionalAccess', _129 => _129.singular])].filter(
|
|
4148
3818
|
(s) => typeof s === "string" && s.length > 0
|
|
4149
3819
|
);
|
|
4150
3820
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunk23V5BSHDcjs.cn.call(void 0, COMPACT_CARD_OUTER, className), children: [
|
|
@@ -4538,25 +4208,5 @@ function buildListUrl(contentRefType, ids, base = "") {
|
|
|
4538
4208
|
|
|
4539
4209
|
|
|
4540
4210
|
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.CardHorizontal = CardHorizontal; exports.formatDate = formatDate; exports.formatNumber = formatNumber; exports.formatPrice = formatPrice; exports.formatBytes = formatBytes; exports.formatBytesShort = formatBytesShort; exports.formatFileSize = formatFileSize; exports.formatLargeNumber = formatLargeNumber; exports.formatAbbreviatedNumber = formatAbbreviatedNumber; exports.nameInitials = nameInitials; exports.personInitials = personInitials; exports.personFirstName = personFirstName; exports.singleInitial = singleInitial; exports.formatDurationMMSS = formatDurationMMSS; exports.formatDurationCompact = formatDurationCompact; exports.formatTimeWithTimezone = formatTimeWithTimezone; exports.formatDurationFromRange = formatDurationFromRange; exports.formatDateUTC = formatDateUTC; exports.formatEntryMonthUTC = formatEntryMonthUTC; exports.formatLegalDate = formatLegalDate; exports.formatCurrency = formatCurrency; exports.formatPercent = formatPercent; exports.formatWholeDollars = formatWholeDollars; exports.formatCompactMetric = formatCompactMetric; exports.getTrendColors = getTrendColors; exports.formatDateRange = formatDateRange; exports.formatDateTimeAt = formatDateTimeAt; exports.formatDurationFromMs = formatDurationFromMs; exports.formatDuration = formatDuration; exports.titleCaseFromSlug = titleCaseFromSlug; exports.formatUnderscoreText = formatUnderscoreText; exports.stripHtml = stripHtml; exports.formatClassification = formatClassification; exports.formatPricingModel = formatPricingModel; exports.formatBioText = formatBioText; exports.SquareAvatar = SquareAvatar; exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getCurrentPlatform = getCurrentPlatform; exports.switchPlatformTheme = switchPlatformTheme; exports.getSemanticColor = getSemanticColor; exports.getPlatformConfig = getPlatformConfig; exports.usePlatformColors = usePlatformColors; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.rgbToHsl = rgbToHsl; exports.hslToRgb = hslToRgb; exports.InteractiveCard = InteractiveCard; exports.Modal = Modal; exports.ModalContent = ModalContent; exports.ModalHeader = ModalHeader; exports.ModalTitle = ModalTitle; exports.ModalFooter = ModalFooter; exports.ImageGalleryModal = ImageGalleryModal; exports.statusBadgeVariants = statusBadgeVariants; exports.genBadgeBgOpacity = genBadgeBgOpacity; exports.generationTierFromLabel = generationTierFromLabel; exports.StatusBadge = StatusBadge; exports.COLOR_PRESETS = COLOR_PRESETS; exports.colorPreset = colorPreset; exports.pickPresetColor = pickPresetColor; exports.PaletteBadge = PaletteBadge; exports.DepartmentBadge = DepartmentBadge; exports.getProxiedImageUrl = getProxiedImageUrl; exports.urlPathLooksLikeSvg = urlPathLooksLikeSvg; exports.shouldProxyImage = shouldProxyImage; exports.generateImageSizes = generateImageSizes; exports.isCrossOriginUrl = isCrossOriginUrl; exports.decideNewTab = decideNewTab; exports.isSameOriginAbsoluteHref = isSameOriginAbsoluteHref; exports.computeIsNewTab = computeIsNewTab; exports.newTabAnchorAttrs = newTabAnchorAttrs; exports.buildAnchorProps = buildAnchorProps; exports.EMPTY_AUTHOR_PLACEHOLDER = EMPTY_AUTHOR_PLACEHOLDER; exports.EntityMetadataValueCell = EntityMetadataValueCell; exports.EntityMetadataAuthorCell = EntityMetadataAuthorCell; exports.EntityAuthorCard = EntityAuthorCard; exports.BlogImagePlaceholder = BlogImagePlaceholder; exports.useCoverImageFallback = useCoverImageFallback; exports.hideOnError = hideOnError; exports.EntityPortraitCard = EntityPortraitCard; exports.FlamingoLogo = FlamingoLogo; exports.PlatformBadge = PlatformBadge; exports.AdminContentCard = AdminContentCard; exports.getProxiedImageUrl2 = getProxiedImageUrl2; exports.EmployeeEntryBadge = EmployeeEntryBadge; exports.EmployeeEntryCard = EmployeeEntryCard; exports.EmployeeEntryCardSkeleton = EmployeeEntryCardSkeleton; exports.WhatIShippedCard = WhatIShippedCard; exports.WhatIShippedCardSkeleton = WhatIShippedCardSkeleton; exports.HowIWorkCard = HowIWorkCard; exports.HowIWorkCardSkeleton = HowIWorkCardSkeleton; exports.AiPromptCard = AiPromptCard; exports.AiPromptCardSkeleton = AiPromptCardSkeleton; exports.DEFAULT_VIDEO_BITES_TITLE = DEFAULT_VIDEO_BITES_TITLE; exports.toStripProfile = toStripProfile; exports.sortBitesByCreatedAtDesc = sortBitesByCreatedAtDesc; exports.sortBitesByFeaturedAtDesc = sortBitesByFeaturedAtDesc; exports.ProductReleaseCard = ProductReleaseCard; exports.ProductReleaseCardSkeleton = ProductReleaseCardSkeleton; exports.formatReleaseDate = formatReleaseDate; exports.formatDateShort = formatDateShort; exports.formatDateSlashUTC = formatDateSlashUTC; exports.releaseTypeToBadgeColor = releaseTypeToBadgeColor; exports.resolveReleaseCover = resolveReleaseCover; exports.defaultBuildProductReleaseCardProps = defaultBuildProductReleaseCardProps; exports.buildProductReleaseCardProps = buildProductReleaseCardProps; exports.COMPACT_CARD_OUTER = COMPACT_CARD_OUTER; exports.COMPACT_CARD_OUTER_STATIC = COMPACT_CARD_OUTER_STATIC; exports.COMPACT_CARD_SKELETON_OUTER = COMPACT_CARD_SKELETON_OUTER; exports.COMPACT_CARD_IMAGE_SLOT = COMPACT_CARD_IMAGE_SLOT; exports.COMPACT_CARD_SKELETON_IMAGE_SLOT = COMPACT_CARD_SKELETON_IMAGE_SLOT; exports.COMPACT_CARD_ICON_SLOT = COMPACT_CARD_ICON_SLOT; exports.COMPACT_CARD_TEXT_COL = COMPACT_CARD_TEXT_COL; exports.COMPACT_CARD_TITLE_ROW = COMPACT_CARD_TITLE_ROW; exports.COMPACT_CARD_META_ROW_BOX = COMPACT_CARD_META_ROW_BOX; exports.COMPACT_CARD_TITLE = COMPACT_CARD_TITLE; exports.COMPACT_CARD_SUBTITLE = COMPACT_CARD_SUBTITLE; exports.COMPACT_CARD_SUMMARY = COMPACT_CARD_SUMMARY; exports.COMPACT_CARD_META_ROW = COMPACT_CARD_META_ROW; exports.COMPACT_CARD_ROW_FILLER = COMPACT_CARD_ROW_FILLER; exports.safeHref = safeHref; exports.useEntityCardLink = useEntityCardLink; exports.BlogCardSkeleton = BlogCardSkeleton; exports.BlogCard = BlogCard; exports.CaseStudyCardSkeleton = CaseStudyCardSkeleton; exports.CaseStudyCard = CaseStudyCard; exports.CustomerInterviewCardSkeleton = CustomerInterviewCardSkeleton; exports.CustomerInterviewCard = CustomerInterviewCard; exports.formatInvestorUpdatePeriod = formatInvestorUpdatePeriod; exports.InvestorUpdateCardSkeleton = InvestorUpdateCardSkeleton; exports.InvestorUpdateCard = InvestorUpdateCard; exports.OnboardingGuideCardSkeleton = OnboardingGuideCardSkeleton; exports.OnboardingGuideCard = OnboardingGuideCard; exports.AvatarStack = AvatarStack; exports.getStatusColorScheme = getStatusColorScheme; exports.CUSTOM_ITEM_ID = CUSTOM_ITEM_ID; exports.getTaskTypeLabel = getTaskTypeLabel; exports.RoadmapVoteButton = RoadmapVoteButton; exports.TaskTypeIcon = TaskTypeIcon; exports.RoadmapCardSkeleton = RoadmapCardSkeleton; exports.RoadmapCard = RoadmapCard; exports.MEDIA_TYPE = MEDIA_TYPE; exports.isVideoMedia = isVideoMedia; exports.isImageMedia = isImageMedia; exports.isPublishableMediaType = isPublishableMediaType; exports.partitionMediaByType = partitionMediaByType; exports.programItemToStripProfile = programItemToStripProfile; exports.transformEventToProgram = transformEventToProgram; exports.transformPodcastToProgram = transformPodcastToProgram; exports.transformWebinarToProgram = transformWebinarToProgram; exports.ProgramCardSkeleton = ProgramCardSkeleton; exports.ProgramCard = ProgramCard; exports.extractItems = extractItems; exports.extractItemId = extractItemId; exports.canonicalContentRefType = canonicalContentRefType; exports.buildListUrl = buildListUrl;
|
|
4562
|
-
//# sourceMappingURL=chunk-55X46LKR.cjs.map
|
|
4211
|
+
exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.CardHorizontal = CardHorizontal; exports.formatDate = formatDate; exports.formatNumber = formatNumber; exports.formatPrice = formatPrice; exports.formatBytes = formatBytes; exports.formatBytesShort = formatBytesShort; exports.formatFileSize = formatFileSize; exports.formatLargeNumber = formatLargeNumber; exports.formatAbbreviatedNumber = formatAbbreviatedNumber; exports.nameInitials = nameInitials; exports.personInitials = personInitials; exports.personFirstName = personFirstName; exports.singleInitial = singleInitial; exports.formatDurationMMSS = formatDurationMMSS; exports.formatDurationCompact = formatDurationCompact; exports.formatTimeWithTimezone = formatTimeWithTimezone; exports.formatDurationFromRange = formatDurationFromRange; exports.formatDateUTC = formatDateUTC; exports.formatEntryMonthUTC = formatEntryMonthUTC; exports.formatLegalDate = formatLegalDate; exports.formatCurrency = formatCurrency; exports.formatPercent = formatPercent; exports.formatWholeDollars = formatWholeDollars; exports.formatCompactMetric = formatCompactMetric; exports.getTrendColors = getTrendColors; exports.formatDateRange = formatDateRange; exports.formatDateTimeAt = formatDateTimeAt; exports.formatDurationFromMs = formatDurationFromMs; exports.formatDuration = formatDuration; exports.titleCaseFromSlug = titleCaseFromSlug; exports.formatUnderscoreText = formatUnderscoreText; exports.stripHtml = stripHtml; exports.formatClassification = formatClassification; exports.formatPricingModel = formatPricingModel; exports.formatBioText = formatBioText; exports.SquareAvatar = SquareAvatar; exports.InteractiveCard = InteractiveCard; exports.Modal = Modal; exports.ModalContent = ModalContent; exports.ModalHeader = ModalHeader; exports.ModalTitle = ModalTitle; exports.ModalFooter = ModalFooter; exports.ImageGalleryModal = ImageGalleryModal; exports.statusBadgeVariants = statusBadgeVariants; exports.genBadgeBgOpacity = genBadgeBgOpacity; exports.generationTierFromLabel = generationTierFromLabel; exports.StatusBadge = StatusBadge; exports.BADGE_PALETTE = BADGE_PALETTE; exports.isBadgePaletteKey = isBadgePaletteKey; exports.pickBadgePaletteColor = pickBadgePaletteColor; exports.PaletteBadge = PaletteBadge; exports.DepartmentBadge = DepartmentBadge; exports.getProxiedImageUrl = getProxiedImageUrl; exports.urlPathLooksLikeSvg = urlPathLooksLikeSvg; exports.shouldProxyImage = shouldProxyImage; exports.generateImageSizes = generateImageSizes; exports.isCrossOriginUrl = isCrossOriginUrl; exports.decideNewTab = decideNewTab; exports.isSameOriginAbsoluteHref = isSameOriginAbsoluteHref; exports.computeIsNewTab = computeIsNewTab; exports.newTabAnchorAttrs = newTabAnchorAttrs; exports.buildAnchorProps = buildAnchorProps; exports.EMPTY_AUTHOR_PLACEHOLDER = EMPTY_AUTHOR_PLACEHOLDER; exports.EntityMetadataValueCell = EntityMetadataValueCell; exports.EntityMetadataAuthorCell = EntityMetadataAuthorCell; exports.EntityAuthorCard = EntityAuthorCard; exports.BlogImagePlaceholder = BlogImagePlaceholder; exports.useCoverImageFallback = useCoverImageFallback; exports.hideOnError = hideOnError; exports.EntityPortraitCard = EntityPortraitCard; exports.FlamingoLogo = FlamingoLogo; exports.PlatformBadge = PlatformBadge; exports.AdminContentCard = AdminContentCard; exports.getProxiedImageUrl2 = getProxiedImageUrl2; exports.EmployeeEntryBadge = EmployeeEntryBadge; exports.EmployeeEntryCard = EmployeeEntryCard; exports.EmployeeEntryCardSkeleton = EmployeeEntryCardSkeleton; exports.WhatIShippedCard = WhatIShippedCard; exports.WhatIShippedCardSkeleton = WhatIShippedCardSkeleton; exports.HowIWorkCard = HowIWorkCard; exports.HowIWorkCardSkeleton = HowIWorkCardSkeleton; exports.AiPromptCard = AiPromptCard; exports.AiPromptCardSkeleton = AiPromptCardSkeleton; exports.DEFAULT_VIDEO_BITES_TITLE = DEFAULT_VIDEO_BITES_TITLE; exports.toStripProfile = toStripProfile; exports.sortBitesByCreatedAtDesc = sortBitesByCreatedAtDesc; exports.sortBitesByFeaturedAtDesc = sortBitesByFeaturedAtDesc; exports.ProductReleaseCard = ProductReleaseCard; exports.ProductReleaseCardSkeleton = ProductReleaseCardSkeleton; exports.formatReleaseDate = formatReleaseDate; exports.formatDateShort = formatDateShort; exports.formatDateSlashUTC = formatDateSlashUTC; exports.releaseTypeToBadgeColor = releaseTypeToBadgeColor; exports.resolveReleaseCover = resolveReleaseCover; exports.defaultBuildProductReleaseCardProps = defaultBuildProductReleaseCardProps; exports.buildProductReleaseCardProps = buildProductReleaseCardProps; exports.COMPACT_CARD_OUTER = COMPACT_CARD_OUTER; exports.COMPACT_CARD_OUTER_STATIC = COMPACT_CARD_OUTER_STATIC; exports.COMPACT_CARD_SKELETON_OUTER = COMPACT_CARD_SKELETON_OUTER; exports.COMPACT_CARD_IMAGE_SLOT = COMPACT_CARD_IMAGE_SLOT; exports.COMPACT_CARD_SKELETON_IMAGE_SLOT = COMPACT_CARD_SKELETON_IMAGE_SLOT; exports.COMPACT_CARD_ICON_SLOT = COMPACT_CARD_ICON_SLOT; exports.COMPACT_CARD_TEXT_COL = COMPACT_CARD_TEXT_COL; exports.COMPACT_CARD_TITLE_ROW = COMPACT_CARD_TITLE_ROW; exports.COMPACT_CARD_META_ROW_BOX = COMPACT_CARD_META_ROW_BOX; exports.COMPACT_CARD_TITLE = COMPACT_CARD_TITLE; exports.COMPACT_CARD_SUBTITLE = COMPACT_CARD_SUBTITLE; exports.COMPACT_CARD_SUMMARY = COMPACT_CARD_SUMMARY; exports.COMPACT_CARD_META_ROW = COMPACT_CARD_META_ROW; exports.COMPACT_CARD_ROW_FILLER = COMPACT_CARD_ROW_FILLER; exports.safeHref = safeHref; exports.useEntityCardLink = useEntityCardLink; exports.BlogCardSkeleton = BlogCardSkeleton; exports.BlogCard = BlogCard; exports.CaseStudyCardSkeleton = CaseStudyCardSkeleton; exports.CaseStudyCard = CaseStudyCard; exports.CustomerInterviewCardSkeleton = CustomerInterviewCardSkeleton; exports.CustomerInterviewCard = CustomerInterviewCard; exports.formatInvestorUpdatePeriod = formatInvestorUpdatePeriod; exports.InvestorUpdateCardSkeleton = InvestorUpdateCardSkeleton; exports.InvestorUpdateCard = InvestorUpdateCard; exports.OnboardingGuideCardSkeleton = OnboardingGuideCardSkeleton; exports.OnboardingGuideCard = OnboardingGuideCard; exports.AvatarStack = AvatarStack; exports.getStatusColorScheme = getStatusColorScheme; exports.CUSTOM_ITEM_ID = CUSTOM_ITEM_ID; exports.getTaskTypeLabel = getTaskTypeLabel; exports.RoadmapVoteButton = RoadmapVoteButton; exports.TaskTypeIcon = TaskTypeIcon; exports.RoadmapCardSkeleton = RoadmapCardSkeleton; exports.RoadmapCard = RoadmapCard; exports.MEDIA_TYPE = MEDIA_TYPE; exports.isVideoMedia = isVideoMedia; exports.isImageMedia = isImageMedia; exports.isPublishableMediaType = isPublishableMediaType; exports.partitionMediaByType = partitionMediaByType; exports.programItemToStripProfile = programItemToStripProfile; exports.transformEventToProgram = transformEventToProgram; exports.transformPodcastToProgram = transformPodcastToProgram; exports.transformWebinarToProgram = transformWebinarToProgram; exports.ProgramCardSkeleton = ProgramCardSkeleton; exports.ProgramCard = ProgramCard; exports.extractItems = extractItems; exports.extractItemId = extractItemId; exports.canonicalContentRefType = canonicalContentRefType; exports.buildListUrl = buildListUrl;
|
|
4212
|
+
//# sourceMappingURL=chunk-OQHFHKUG.cjs.map
|