@flamingo-stack/openframe-frontend-core 0.0.628 → 0.0.629-2171.6182.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-QS2QCXBH.js → chunk-2J7EFH4V.js} +380 -30
- package/dist/chunk-2J7EFH4V.js.map +1 -0
- package/dist/{chunk-X3LC6R37.js → chunk-32P6KUZP.js} +2 -2
- package/dist/{chunk-EHAYNUOL.cjs → chunk-4E7XCEV3.cjs} +77 -2
- package/dist/chunk-4E7XCEV3.cjs.map +1 -0
- package/dist/{chunk-JONR3BDJ.cjs → chunk-53ARMJHM.cjs} +37 -37
- package/dist/{chunk-JONR3BDJ.cjs.map → chunk-53ARMJHM.cjs.map} +1 -1
- package/dist/{chunk-OQHFHKUG.cjs → chunk-55X46LKR.cjs} +450 -100
- package/dist/chunk-55X46LKR.cjs.map +1 -0
- package/dist/{chunk-U4UNC3RP.js → chunk-5BUEB2WQ.js} +12 -12
- package/dist/{chunk-6AFJQOT2.js → chunk-65IVNHBS.js} +4 -4
- 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-HLZKMYST.js → chunk-7ZDPJ6SW.js} +4 -4
- package/dist/{chunk-L6GJV7E7.cjs → chunk-BQ6QZUZ6.cjs} +83 -83
- package/dist/{chunk-L6GJV7E7.cjs.map → chunk-BQ6QZUZ6.cjs.map} +1 -1
- package/dist/{chunk-MB4IEWLH.js → chunk-BS6ASI3D.js} +3 -3
- package/dist/{chunk-Q544C4Z7.cjs → chunk-CHRPZ5PV.cjs} +25 -25
- package/dist/{chunk-Q544C4Z7.cjs.map → chunk-CHRPZ5PV.cjs.map} +1 -1
- package/dist/{chunk-LLSX5T7X.js → chunk-CIRD5P4U.js} +7 -7
- package/dist/{chunk-YQCA4ZEJ.js → chunk-CMUNJZWN.js} +2 -2
- package/dist/{chunk-UBX3ATG5.cjs → chunk-CP3R4GRA.cjs} +451 -436
- package/dist/chunk-CP3R4GRA.cjs.map +1 -0
- package/dist/{chunk-2E543KJD.js → chunk-D7VNHPJB.js} +10 -8
- package/dist/{chunk-2E543KJD.js.map → chunk-D7VNHPJB.js.map} +1 -1
- package/dist/{chunk-TDKOW2C5.cjs → chunk-DDUG42FK.cjs} +28 -26
- package/dist/chunk-DDUG42FK.cjs.map +1 -0
- package/dist/{chunk-SWJ6QLD7.cjs → chunk-ELKTBTGR.cjs} +105 -105
- package/dist/{chunk-SWJ6QLD7.cjs.map → chunk-ELKTBTGR.cjs.map} +1 -1
- package/dist/{chunk-6QLOSGE7.cjs → chunk-F4JGAGI3.cjs} +49 -47
- package/dist/chunk-F4JGAGI3.cjs.map +1 -0
- package/dist/{chunk-TUUSLED7.js → chunk-FENZRLVO.js} +10 -8
- package/dist/{chunk-TUUSLED7.js.map → chunk-FENZRLVO.js.map} +1 -1
- package/dist/{chunk-VCY2KHOE.cjs → chunk-FTWVYXNP.cjs} +34 -34
- package/dist/{chunk-VCY2KHOE.cjs.map → chunk-FTWVYXNP.cjs.map} +1 -1
- package/dist/{chunk-C3DDNRJG.cjs → chunk-FYC3W72E.cjs} +6 -6
- package/dist/{chunk-C3DDNRJG.cjs.map → chunk-FYC3W72E.cjs.map} +1 -1
- package/dist/{chunk-GH4WLDPS.cjs → chunk-G5FL4QTN.cjs} +18 -18
- package/dist/{chunk-GH4WLDPS.cjs.map → chunk-G5FL4QTN.cjs.map} +1 -1
- package/dist/{chunk-BND25SXU.cjs → chunk-GUCKPOPQ.cjs} +42 -42
- package/dist/{chunk-BND25SXU.cjs.map → chunk-GUCKPOPQ.cjs.map} +1 -1
- package/dist/{chunk-HNNR5CGX.js → chunk-HRRKZWFF.js} +10 -8
- package/dist/{chunk-HNNR5CGX.js.map → chunk-HRRKZWFF.js.map} +1 -1
- package/dist/{chunk-WBZ4HP7D.js → chunk-J6ATJUEE.js} +4 -4
- package/dist/{chunk-Y5QXDVPP.cjs → chunk-JQSN7D7X.cjs} +7 -7
- package/dist/{chunk-Y5QXDVPP.cjs.map → chunk-JQSN7D7X.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-KTBZJP5J.cjs → chunk-KAG3SX3R.cjs} +22 -20
- package/dist/chunk-KAG3SX3R.cjs.map +1 -0
- package/dist/{chunk-ON7663OW.js → chunk-L5FEAOGJ.js} +8 -354
- package/dist/chunk-L5FEAOGJ.js.map +1 -0
- package/dist/{chunk-LCMXGM2P.js → chunk-LUBIWC3N.js} +8 -8
- package/dist/{chunk-ZRCWXJDW.js → chunk-LZB2UZJY.js} +4 -4
- package/dist/{chunk-JWXEEZKD.js → chunk-MIOE7FYN.js} +3 -3
- package/dist/{chunk-K43T7N7O.js → chunk-NBM7ZB6T.js} +12 -12
- package/dist/{chunk-YZJL6WGP.js → chunk-NDIPDU36.js} +49 -34
- package/dist/chunk-NDIPDU36.js.map +1 -0
- 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-JJUV7Z4L.cjs → chunk-QIVX7F3N.cjs} +27 -27
- package/dist/{chunk-JJUV7Z4L.cjs.map → chunk-QIVX7F3N.cjs.map} +1 -1
- package/dist/{chunk-WIP5JO2O.cjs → chunk-R46TW4LX.cjs} +9 -9
- package/dist/{chunk-WIP5JO2O.cjs.map → chunk-R46TW4LX.cjs.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-XQ4II4BK.js → chunk-SOUGXQJE.js} +4 -4
- package/dist/{chunk-E523WX5V.cjs → chunk-TV6NXNKO.cjs} +5 -5
- package/dist/{chunk-E523WX5V.cjs.map → chunk-TV6NXNKO.cjs.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-JVLLA3Z7.js → chunk-WYELOUP4.js} +6 -6
- package/dist/{chunk-F2KBCLUG.js → chunk-X5NN4NJM.js} +2 -2
- package/dist/{chunk-KT47FRJC.cjs → chunk-Y2ZRUCYH.cjs} +15 -15
- package/dist/{chunk-KT47FRJC.cjs.map → chunk-Y2ZRUCYH.cjs.map} +1 -1
- 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/{chunk-UNI3POHU.cjs → chunk-ZYDNPUSH.cjs} +279 -625
- package/dist/chunk-ZYDNPUSH.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 +71 -69
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +26 -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/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 +3 -3
- package/dist/components/ui/index.cjs +10 -8
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +9 -7
- package/dist/components/ui/palette-badge.d.ts +8 -6
- 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/color-presets.d.ts +24 -0
- package/dist/utils/color-presets.d.ts.map +1 -0
- package/dist/utils/index.cjs +24 -21
- 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 +22 -19
- 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 +21 -23
- package/src/components/ui/color-preset-select.tsx +5 -21
- package/src/components/ui/department-badge.tsx +3 -3
- package/src/components/ui/palette-badge.tsx +13 -8
- package/src/components/ui/status-badge.tsx +0 -5
- package/src/types/department.ts +1 -1
- package/src/types/product-release.ts +5 -0
- package/src/utils/.color-presets.md +2 -0
- package/src/utils/color-presets.ts +48 -0
- package/src/utils/index.ts +1 -2
- package/dist/chunk-6QLOSGE7.cjs.map +0 -1
- package/dist/chunk-EHAYNUOL.cjs.map +0 -1
- package/dist/chunk-KTBZJP5J.cjs.map +0 -1
- package/dist/chunk-ON7663OW.js.map +0 -1
- package/dist/chunk-OQHFHKUG.cjs.map +0 -1
- package/dist/chunk-QS2QCXBH.js.map +0 -1
- package/dist/chunk-TDKOW2C5.cjs.map +0 -1
- package/dist/chunk-UBX3ATG5.cjs.map +0 -1
- package/dist/chunk-UNI3POHU.cjs.map +0 -1
- package/dist/chunk-YXWGSDK4.cjs.map +0 -1
- package/dist/chunk-YZJL6WGP.js.map +0 -1
- package/dist/utils/badge-palette.d.ts +0 -18
- package/dist/utils/badge-palette.d.ts.map +0 -1
- package/src/utils/.badge-palette.md +0 -2
- package/src/utils/badge-palette.ts +0 -38
- /package/dist/{chunk-X3LC6R37.js.map → chunk-32P6KUZP.js.map} +0 -0
- /package/dist/{chunk-U4UNC3RP.js.map → chunk-5BUEB2WQ.js.map} +0 -0
- /package/dist/{chunk-6AFJQOT2.js.map → chunk-65IVNHBS.js.map} +0 -0
- /package/dist/{chunk-S6WBBSII.js.map → chunk-76HB456V.js.map} +0 -0
- /package/dist/{chunk-HLZKMYST.js.map → chunk-7ZDPJ6SW.js.map} +0 -0
- /package/dist/{chunk-MB4IEWLH.js.map → chunk-BS6ASI3D.js.map} +0 -0
- /package/dist/{chunk-LLSX5T7X.js.map → chunk-CIRD5P4U.js.map} +0 -0
- /package/dist/{chunk-YQCA4ZEJ.js.map → chunk-CMUNJZWN.js.map} +0 -0
- /package/dist/{chunk-WBZ4HP7D.js.map → chunk-J6ATJUEE.js.map} +0 -0
- /package/dist/{chunk-LCMXGM2P.js.map → chunk-LUBIWC3N.js.map} +0 -0
- /package/dist/{chunk-ZRCWXJDW.js.map → chunk-LZB2UZJY.js.map} +0 -0
- /package/dist/{chunk-JWXEEZKD.js.map → chunk-MIOE7FYN.js.map} +0 -0
- /package/dist/{chunk-K43T7N7O.js.map → chunk-NBM7ZB6T.js.map} +0 -0
- /package/dist/{chunk-XQ4II4BK.js.map → chunk-SOUGXQJE.js.map} +0 -0
- /package/dist/{chunk-JVLLA3Z7.js.map → chunk-WYELOUP4.js.map} +0 -0
- /package/dist/{chunk-F2KBCLUG.js.map → chunk-X5NN4NJM.js.map} +0 -0
- /package/dist/{chunk-BVQEU5JB.js.map → chunk-ZOMGXH7C.js.map} +0 -0
|
@@ -7,7 +7,11 @@ var _chunkWLSFBRT5cjs = require('./chunk-WLSFBRT5.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
var _chunk4E7XCEV3cjs = require('./chunk-4E7XCEV3.cjs');
|
|
11
15
|
|
|
12
16
|
|
|
13
17
|
|
|
@@ -271,15 +275,15 @@ function formatWholeDollars(price, currency = "USD") {
|
|
|
271
275
|
}
|
|
272
276
|
function formatCompactMetric(value, format2 = "number", options) {
|
|
273
277
|
if (value === 0 || value === null || value === void 0) {
|
|
274
|
-
if (format2 === "currency") return `${_optionalChain([options, 'optionalAccess',
|
|
278
|
+
if (format2 === "currency") return `${_optionalChain([options, 'optionalAccess', _2 => _2.prefix]) || "$"}0`;
|
|
275
279
|
if (format2 === "percentage") return "0%";
|
|
276
|
-
if (format2 === "months") return `0 ${_optionalChain([options, 'optionalAccess',
|
|
280
|
+
if (format2 === "months") return `0 ${_optionalChain([options, 'optionalAccess', _3 => _3.suffix]) || "months"}`;
|
|
277
281
|
return "0";
|
|
278
282
|
}
|
|
279
283
|
const absValue = Math.abs(value);
|
|
280
284
|
const sign = value < 0 ? "-" : "";
|
|
281
285
|
if (format2 === "currency") {
|
|
282
|
-
const prefix = _optionalChain([options, 'optionalAccess',
|
|
286
|
+
const prefix = _optionalChain([options, 'optionalAccess', _4 => _4.prefix]) || "$";
|
|
283
287
|
const compact = (val, divisor, suffix) => {
|
|
284
288
|
const divided = val / divisor;
|
|
285
289
|
const formatted = divided % 1 === 0 ? divided.toFixed(0) : divided.toFixed(1);
|
|
@@ -295,7 +299,7 @@ function formatCompactMetric(value, format2 = "number", options) {
|
|
|
295
299
|
}
|
|
296
300
|
if (format2 === "months") {
|
|
297
301
|
const rounded = Math.round(value * 10) / 10;
|
|
298
|
-
return `${rounded} ${_optionalChain([options, 'optionalAccess',
|
|
302
|
+
return `${rounded} ${_optionalChain([options, 'optionalAccess', _5 => _5.suffix]) || "months"}`;
|
|
299
303
|
}
|
|
300
304
|
if (absValue >= 1e6) return `${sign}${(absValue / 1e6).toFixed(1)}M`;
|
|
301
305
|
if (absValue >= 1e3) return `${sign}${(absValue / 1e3).toFixed(1)}K`;
|
|
@@ -417,7 +421,7 @@ var SquareAvatar = _react.memo.call(void 0,
|
|
|
417
421
|
style,
|
|
418
422
|
...props
|
|
419
423
|
}, ref) => {
|
|
420
|
-
const resolvedSrc =
|
|
424
|
+
const resolvedSrc = _chunk4E7XCEV3cjs.useAuthedImageSrc.call(void 0, src);
|
|
421
425
|
const sizeClasses2 = {
|
|
422
426
|
// xs (24px): dense card meta rows — avatar stacks on delivery/
|
|
423
427
|
// roadmap cards. Part of the shared scale so no caller ever
|
|
@@ -507,6 +511,332 @@ var SquareAvatar = _react.memo.call(void 0,
|
|
|
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 (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
|
+
|
|
510
840
|
// src/components/ui/interactive-card.tsx
|
|
511
841
|
|
|
512
842
|
|
|
@@ -757,11 +1087,6 @@ var statusBadgeVariants = _classvarianceauthority.cva.call(void 0, "inline-flex
|
|
|
757
1087
|
yellow: "border border-ods-border bg-ods-accent text-ods-text-on-accent",
|
|
758
1088
|
green: "bg-ods-success text-ods-text-on-accent",
|
|
759
1089
|
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",
|
|
765
1090
|
success: "bg-ods-success-secondary text-ods-success",
|
|
766
1091
|
error: "bg-ods-error-secondary text-ods-error",
|
|
767
1092
|
warning: "bg-ods-warning-secondary text-ods-warning",
|
|
@@ -812,43 +1137,48 @@ function StatusBadge({ text, variant, colorScheme, className, singleLine, gen, s
|
|
|
812
1137
|
);
|
|
813
1138
|
}
|
|
814
1139
|
|
|
815
|
-
// src/utils/
|
|
816
|
-
var
|
|
817
|
-
"
|
|
818
|
-
"
|
|
819
|
-
"
|
|
820
|
-
"
|
|
821
|
-
"
|
|
822
|
-
"
|
|
823
|
-
"
|
|
824
|
-
"
|
|
825
|
-
"
|
|
826
|
-
"
|
|
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" }
|
|
827
1154
|
];
|
|
828
|
-
function
|
|
829
|
-
return
|
|
1155
|
+
function colorPreset(key) {
|
|
1156
|
+
return key ? COLOR_PRESETS.find((preset) => preset.key === key) : void 0;
|
|
830
1157
|
}
|
|
831
|
-
function
|
|
1158
|
+
function pickPresetColor({
|
|
832
1159
|
avoid = [],
|
|
833
1160
|
random = Math.random
|
|
834
1161
|
} = {}) {
|
|
1162
|
+
const colours = COLOR_PRESETS.filter((preset) => preset.key !== "neutral");
|
|
835
1163
|
const used = new Set(avoid);
|
|
836
|
-
const free =
|
|
837
|
-
const pool = free.length > 0 ? free :
|
|
838
|
-
return pool[Math.floor(random() * pool.length) % pool.length];
|
|
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;
|
|
839
1167
|
}
|
|
840
1168
|
|
|
841
1169
|
// src/components/ui/palette-badge.tsx
|
|
842
1170
|
|
|
843
1171
|
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)));
|
|
844
1173
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
845
1174
|
StatusBadge,
|
|
846
1175
|
{
|
|
847
1176
|
text,
|
|
848
|
-
colorScheme:
|
|
1177
|
+
colorScheme: "default",
|
|
849
1178
|
variant,
|
|
850
1179
|
singleLine: true,
|
|
851
|
-
className
|
|
1180
|
+
className,
|
|
1181
|
+
style: fill ? { backgroundColor: fill, color: getReadableTextColor(fill) } : void 0
|
|
852
1182
|
}
|
|
853
1183
|
);
|
|
854
1184
|
}
|
|
@@ -864,8 +1194,8 @@ function DepartmentBadge({
|
|
|
864
1194
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
865
1195
|
PaletteBadge,
|
|
866
1196
|
{
|
|
867
|
-
text: _optionalChain([department, 'optionalAccess',
|
|
868
|
-
color: _optionalChain([department, 'optionalAccess',
|
|
1197
|
+
text: _optionalChain([department, 'optionalAccess', _8 => _8.name]) || emptyLabel,
|
|
1198
|
+
color: _optionalChain([department, 'optionalAccess', _9 => _9.name]) ? department.color : null,
|
|
869
1199
|
className,
|
|
870
1200
|
variant
|
|
871
1201
|
}
|
|
@@ -875,9 +1205,9 @@ function DepartmentBadge({
|
|
|
875
1205
|
// src/utils/image-proxy.ts
|
|
876
1206
|
function getProxiedImageUrl(imageUrl, options) {
|
|
877
1207
|
if (!imageUrl) return null;
|
|
878
|
-
const proxyPrefix = _optionalChain([options, 'optionalAccess',
|
|
879
|
-
const skipDomains = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
880
|
-
const directHttps = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
1208
|
+
const proxyPrefix = _optionalChain([options, 'optionalAccess', _10 => _10.proxyPrefix]);
|
|
1209
|
+
const skipDomains = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _11 => _11.skipDomains]), () => ( []));
|
|
1210
|
+
const directHttps = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _12 => _12.directHttps]), () => ( false));
|
|
881
1211
|
if (proxyPrefix && imageUrl.includes(proxyPrefix)) {
|
|
882
1212
|
return imageUrl;
|
|
883
1213
|
}
|
|
@@ -900,7 +1230,7 @@ function getProxiedImageUrl(imageUrl, options) {
|
|
|
900
1230
|
function urlPathLooksLikeSvg(imageUrl) {
|
|
901
1231
|
try {
|
|
902
1232
|
return /\.svg$/i.test(new URL(imageUrl).pathname);
|
|
903
|
-
} catch (
|
|
1233
|
+
} catch (e4) {
|
|
904
1234
|
return /\.svg(\?|#|$)/i.test(imageUrl);
|
|
905
1235
|
}
|
|
906
1236
|
}
|
|
@@ -942,14 +1272,14 @@ function isSameOriginAbsoluteHref(href) {
|
|
|
942
1272
|
if (!/^https?:\/\//i.test(href)) return false;
|
|
943
1273
|
try {
|
|
944
1274
|
return new URL(href).origin === new URL(window.location.href).origin;
|
|
945
|
-
} catch (
|
|
1275
|
+
} catch (e5) {
|
|
946
1276
|
return false;
|
|
947
1277
|
}
|
|
948
1278
|
}
|
|
949
1279
|
function computeIsNewTab(runtime, href, targetPlatform) {
|
|
950
1280
|
if (!href) return false;
|
|
951
1281
|
if (runtime.navigation.mode === "embed") return !isSameOriginAbsoluteHref(href);
|
|
952
|
-
return _nullishCoalesce(_optionalChain([runtime, 'access',
|
|
1282
|
+
return _nullishCoalesce(_optionalChain([runtime, 'access', _13 => _13.navigation, 'access', _14 => _14.decideNewTab, 'optionalCall', _15 => _15({ href, targetPlatform })]), () => ( decideNewTab({
|
|
953
1283
|
href,
|
|
954
1284
|
targetPlatform,
|
|
955
1285
|
currentSource: _nullishCoalesce(runtime.source, () => ( ""))
|
|
@@ -1015,7 +1345,7 @@ function EntityAuthorCard({
|
|
|
1015
1345
|
renderEmptyAuthor = false,
|
|
1016
1346
|
className
|
|
1017
1347
|
}) {
|
|
1018
|
-
const hasAuthor = !!_optionalChain([author, 'optionalAccess',
|
|
1348
|
+
const hasAuthor = !!_optionalChain([author, 'optionalAccess', _16 => _16.full_name]);
|
|
1019
1349
|
if (!hasAuthor && !renderEmptyAuthor) return null;
|
|
1020
1350
|
const effectiveAuthor = hasAuthor ? author : EMPTY_AUTHOR_PLACEHOLDER;
|
|
1021
1351
|
const formatted = publishedAt ? formatDate(publishedAt) : "";
|
|
@@ -1104,14 +1434,14 @@ function EntityPortraitCard({
|
|
|
1104
1434
|
}) {
|
|
1105
1435
|
const { src, onError: onMediaError } = useCoverImageFallback(imageUrl, placeholderUrl);
|
|
1106
1436
|
const [measured, setMeasured] = _react.useState.call(void 0, null);
|
|
1107
|
-
const isWide = _optionalChain([measured, 'optionalAccess',
|
|
1437
|
+
const isWide = _optionalChain([measured, 'optionalAccess', _17 => _17.src]) === src ? measured.isWide : null;
|
|
1108
1438
|
const onMediaLoad = (e) => {
|
|
1109
1439
|
const img = e.currentTarget;
|
|
1110
1440
|
if (img.naturalWidth > 0 && img.naturalHeight > 0) {
|
|
1111
1441
|
setMeasured({ src, isWide: img.naturalWidth / img.naturalHeight >= MIN_WIDE_RATIO });
|
|
1112
1442
|
}
|
|
1113
1443
|
};
|
|
1114
|
-
const edgeColor =
|
|
1444
|
+
const edgeColor = _chunk4E7XCEV3cjs.useImageEdgeColor.call(void 0, isWide === false ? src : null, "var(--color-bg-surface)");
|
|
1115
1445
|
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: [
|
|
1116
1446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1117
1447
|
"div",
|
|
@@ -1324,7 +1654,7 @@ function PlatformBadge({ platform, size = "sm", showLabel = true, className }) {
|
|
|
1324
1654
|
return null;
|
|
1325
1655
|
}
|
|
1326
1656
|
const sizes = sizeClasses[size];
|
|
1327
|
-
const colors =
|
|
1657
|
+
const colors = _chunk4E7XCEV3cjs.getPlatformBrandClasses.call(void 0, platform.name);
|
|
1328
1658
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1329
1659
|
"div",
|
|
1330
1660
|
{
|
|
@@ -1365,7 +1695,7 @@ function AdminContentCard({
|
|
|
1365
1695
|
const [loadedUrl, setLoadedUrl] = _react.useState.call(void 0, null);
|
|
1366
1696
|
const displayUrl = imageUrl && !imageError ? imageUrl : placeholderUrl;
|
|
1367
1697
|
const imageLoaded = Boolean(displayUrl) && loadedUrl === displayUrl;
|
|
1368
|
-
const imageBgColor =
|
|
1698
|
+
const imageBgColor = _chunk4E7XCEV3cjs.useImageEdgeColor.call(void 0, displayUrl || null, "transparent");
|
|
1369
1699
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1370
1700
|
"article",
|
|
1371
1701
|
{
|
|
@@ -1404,8 +1734,8 @@ function AdminContentCard({
|
|
|
1404
1734
|
/* @__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 }),
|
|
1405
1735
|
(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 }),
|
|
1406
1736
|
(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 }),
|
|
1407
|
-
(Number(_optionalChain([platforms, 'optionalAccess',
|
|
1408
|
-
_optionalChain([platforms, 'optionalAccess',
|
|
1737
|
+
(Number(_optionalChain([platforms, 'optionalAccess', _18 => _18.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: [
|
|
1738
|
+
_optionalChain([platforms, 'optionalAccess', _19 => _19.map, 'call', _20 => _20((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1409
1739
|
PlatformBadge,
|
|
1410
1740
|
{
|
|
1411
1741
|
platform: { id: p.id || p.platform_id || "", name: p.name, display_name: p.display_name || p.name },
|
|
@@ -1485,7 +1815,7 @@ function EmployeeEntryCard({
|
|
|
1485
1815
|
] }) : null,
|
|
1486
1816
|
meta: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1487
1817
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-2", children: [
|
|
1488
|
-
_optionalChain([entry, 'access',
|
|
1818
|
+
_optionalChain([entry, 'access', _21 => _21.author, 'optionalAccess', _22 => _22.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1489
1819
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
1490
1820
|
{
|
|
1491
1821
|
src: _nullishCoalesce(getProxiedImageUrl2(entry.author.avatar_url), () => ( entry.author.avatar_url)),
|
|
@@ -1496,7 +1826,7 @@ function EmployeeEntryCard({
|
|
|
1496
1826
|
unoptimized: true
|
|
1497
1827
|
}
|
|
1498
1828
|
) : null,
|
|
1499
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _nullishCoalesce(_optionalChain([entry, 'access',
|
|
1829
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _nullishCoalesce(_optionalChain([entry, 'access', _23 => _23.author, 'optionalAccess', _24 => _24.full_name]), () => ( "")) })
|
|
1500
1830
|
] }),
|
|
1501
1831
|
dateLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: dateLabel }) : null
|
|
1502
1832
|
] }),
|
|
@@ -1569,7 +1899,7 @@ var HowIWorkCardSkeleton = EmployeeEntryCardSkeleton;
|
|
|
1569
1899
|
// src/components/chat/entity-cards/ai-prompt-card.tsx
|
|
1570
1900
|
|
|
1571
1901
|
function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }) {
|
|
1572
|
-
const departmentName = _optionalChain([entry, 'access',
|
|
1902
|
+
const departmentName = _optionalChain([entry, 'access', _25 => _25.department, 'optionalAccess', _26 => _26.name, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]);
|
|
1573
1903
|
const steps = typeof entry.step_count === "number" ? entry.step_count : 0;
|
|
1574
1904
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1575
1905
|
EmployeeEntryCard,
|
|
@@ -1577,7 +1907,7 @@ function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }
|
|
|
1577
1907
|
entry,
|
|
1578
1908
|
dateLabel: entry.published_at ? formatDateUTC(entry.published_at, { fallback: "" }) || null : null,
|
|
1579
1909
|
extraBadges: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1580
|
-
departmentName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepartmentBadge, { department: { name: departmentName, color: _nullishCoalesce(_optionalChain([entry, 'access',
|
|
1910
|
+
departmentName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepartmentBadge, { department: { name: departmentName, color: _nullishCoalesce(_optionalChain([entry, 'access', _29 => _29.department, 'optionalAccess', _30 => _30.color]), () => ( null)) } }) : null,
|
|
1581
1911
|
steps > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: `${steps} steps` }) : null
|
|
1582
1912
|
] }),
|
|
1583
1913
|
untitledLabel: "Untitled prompt",
|
|
@@ -1593,7 +1923,7 @@ var AiPromptCardSkeleton = EmployeeEntryCardSkeleton;
|
|
|
1593
1923
|
// src/components/features/video-bites-shared.ts
|
|
1594
1924
|
var DEFAULT_VIDEO_BITES_TITLE = "Key Moments";
|
|
1595
1925
|
function toStripProfile(p, fallbackSubtitle) {
|
|
1596
|
-
if (!_optionalChain([p, 'optionalAccess',
|
|
1926
|
+
if (!_optionalChain([p, 'optionalAccess', _31 => _31.full_name])) return null;
|
|
1597
1927
|
return {
|
|
1598
1928
|
name: p.full_name,
|
|
1599
1929
|
avatarUrl: _nullishCoalesce(p.avatar_url, () => ( null)),
|
|
@@ -1635,7 +1965,7 @@ function ProductReleaseCard({
|
|
|
1635
1965
|
changelogCounts
|
|
1636
1966
|
}) {
|
|
1637
1967
|
if (size === "lg") {
|
|
1638
|
-
const totalChangelog = (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess',
|
|
1968
|
+
const totalChangelog = (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _32 => _32.features]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _33 => _33.fixes]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _34 => _34.improvements]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _35 => _35.breaking]), () => ( 0)));
|
|
1639
1969
|
const valueCells = [
|
|
1640
1970
|
releaseType && releaseTypeBadgeColor ? {
|
|
1641
1971
|
value: releaseType.toUpperCase(),
|
|
@@ -1654,7 +1984,7 @@ function ProductReleaseCard({
|
|
|
1654
1984
|
uppercase: false
|
|
1655
1985
|
} : { value: "\u2014", label: "Released", uppercase: false }
|
|
1656
1986
|
];
|
|
1657
|
-
const effectiveAuthor = _optionalChain([author, 'optionalAccess',
|
|
1987
|
+
const effectiveAuthor = _optionalChain([author, 'optionalAccess', _36 => _36.full_name]) ? author : { full_name: "\u2014", avatar_url: null, job_title: "Unknown" };
|
|
1658
1988
|
const gridColsClass = "md:grid-cols-4";
|
|
1659
1989
|
const dividerClass = "border-b md:border-b-0 md:border-r border-ods-border";
|
|
1660
1990
|
const frameClass = _chunk23V5BSHDcjs.cn.call(void 0,
|
|
@@ -2028,10 +2358,10 @@ function buildProductReleaseCardProps(item) {
|
|
|
2028
2358
|
job_title: release.author.job_title
|
|
2029
2359
|
} : void 0,
|
|
2030
2360
|
changelogCounts: {
|
|
2031
|
-
features: _nullishCoalesce(_optionalChain([release, 'access',
|
|
2032
|
-
fixes: _nullishCoalesce(_optionalChain([release, 'access',
|
|
2033
|
-
improvements: _nullishCoalesce(_optionalChain([release, 'access',
|
|
2034
|
-
breaking: _nullishCoalesce(_optionalChain([release, 'access',
|
|
2361
|
+
features: _nullishCoalesce(_optionalChain([release, 'access', _37 => _37.features_added, 'optionalAccess', _38 => _38.length]), () => ( 0)),
|
|
2362
|
+
fixes: _nullishCoalesce(_optionalChain([release, 'access', _39 => _39.bugs_fixed, 'optionalAccess', _40 => _40.length]), () => ( 0)),
|
|
2363
|
+
improvements: _nullishCoalesce(_optionalChain([release, 'access', _41 => _41.improvements, 'optionalAccess', _42 => _42.length]), () => ( 0)),
|
|
2364
|
+
breaking: _nullishCoalesce(_optionalChain([release, 'access', _43 => _43.breaking_changes, 'optionalAccess', _44 => _44.length]), () => ( 0))
|
|
2035
2365
|
}
|
|
2036
2366
|
};
|
|
2037
2367
|
}
|
|
@@ -2065,7 +2395,7 @@ function safeHref(url) {
|
|
|
2065
2395
|
if (!SAFE_URL_SCHEMES.includes(parsed.protocol)) return null;
|
|
2066
2396
|
if ((parsed.protocol === "https:" || parsed.protocol === "http:") && !parsed.hostname) return null;
|
|
2067
2397
|
return trimmed;
|
|
2068
|
-
} catch (
|
|
2398
|
+
} catch (e6) {
|
|
2069
2399
|
return null;
|
|
2070
2400
|
}
|
|
2071
2401
|
}
|
|
@@ -2094,7 +2424,7 @@ function useEntityCardPlaceholder({
|
|
|
2094
2424
|
siteName = "",
|
|
2095
2425
|
aspect = "wide"
|
|
2096
2426
|
}) {
|
|
2097
|
-
const derived =
|
|
2427
|
+
const derived = _chunk4E7XCEV3cjs.useOgPlaceholderUrl.call(void 0, { title, siteName, aspect });
|
|
2098
2428
|
return placeholderUrl !== void 0 ? placeholderUrl : derived;
|
|
2099
2429
|
}
|
|
2100
2430
|
|
|
@@ -2157,7 +2487,7 @@ function BlogCard({
|
|
|
2157
2487
|
day: "numeric",
|
|
2158
2488
|
timeZone: "UTC"
|
|
2159
2489
|
}) : "";
|
|
2160
|
-
const firstCategory = _optionalChain([post, 'access',
|
|
2490
|
+
const firstCategory = _optionalChain([post, 'access', _45 => _45.categories, 'optionalAccess', _46 => _46.find, 'call', _47 => _47((c) => c && c.name), 'optionalAccess', _48 => _48.name]);
|
|
2161
2491
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2162
2492
|
"a",
|
|
2163
2493
|
{
|
|
@@ -2375,7 +2705,7 @@ function CaseStudyCard({
|
|
|
2375
2705
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2376
2706
|
{
|
|
2377
2707
|
src: coverImage,
|
|
2378
|
-
alt: `${_optionalChain([study, 'access',
|
|
2708
|
+
alt: `${_optionalChain([study, 'access', _49 => _49.msp, 'optionalAccess', _50 => _50.name]) || study.title} cover`,
|
|
2379
2709
|
className: "object-contain",
|
|
2380
2710
|
fill: true,
|
|
2381
2711
|
sizes: "56px",
|
|
@@ -2385,7 +2715,7 @@ function CaseStudyCard({
|
|
|
2385
2715
|
) : null }),
|
|
2386
2716
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2387
2717
|
/* @__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 }) }),
|
|
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',
|
|
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', _51 => _51.msp, 'optionalAccess', _52 => _52.name]), _optionalChain([study, 'access', _53 => _53.user, 'optionalAccess', _54 => _54.full_name])].filter(Boolean).join(" \xB7 ") || "Case study" }) }),
|
|
2389
2719
|
/* @__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 }) })
|
|
2390
2720
|
] })
|
|
2391
2721
|
] });
|
|
@@ -2400,13 +2730,13 @@ function CaseStudyCard({
|
|
|
2400
2730
|
typeLabel: showTypeBadge ? "Case Study" : void 0,
|
|
2401
2731
|
imageUrl: study.featured_image,
|
|
2402
2732
|
placeholderUrl,
|
|
2403
|
-
imageAlt: _optionalChain([study, 'access',
|
|
2733
|
+
imageAlt: _optionalChain([study, 'access', _55 => _55.msp, 'optionalAccess', _56 => _56.name]) || study.title,
|
|
2404
2734
|
title: study.title,
|
|
2405
2735
|
person: {
|
|
2406
|
-
name: _optionalChain([study, 'access',
|
|
2407
|
-
avatarUrl: _optionalChain([study, 'access',
|
|
2408
|
-
subtitle: _nullishCoalesce(_optionalChain([study, 'access',
|
|
2409
|
-
iconOverlayUrl: _nullishCoalesce(_optionalChain([study, 'access',
|
|
2736
|
+
name: _optionalChain([study, 'access', _57 => _57.user, 'optionalAccess', _58 => _58.full_name]) || "Anonymous",
|
|
2737
|
+
avatarUrl: _optionalChain([study, 'access', _59 => _59.user, 'optionalAccess', _60 => _60.avatar_url]),
|
|
2738
|
+
subtitle: _nullishCoalesce(_optionalChain([study, 'access', _61 => _61.msp, 'optionalAccess', _62 => _62.name]), () => ( null)),
|
|
2739
|
+
iconOverlayUrl: _nullishCoalesce(_optionalChain([study, 'access', _63 => _63.msp, 'optionalAccess', _64 => _64.icon_url]), () => ( null))
|
|
2410
2740
|
},
|
|
2411
2741
|
className
|
|
2412
2742
|
}
|
|
@@ -2417,7 +2747,7 @@ function CaseStudyCard({
|
|
|
2417
2747
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2418
2748
|
{
|
|
2419
2749
|
src: coverImage,
|
|
2420
|
-
alt: _optionalChain([study, 'access',
|
|
2750
|
+
alt: _optionalChain([study, 'access', _65 => _65.msp, 'optionalAccess', _66 => _66.name]) || study.title,
|
|
2421
2751
|
className: "h-full w-full object-cover",
|
|
2422
2752
|
sizes: "(min-width: 1545px) 515px, (min-width: 1280px) 33vw, (min-width: 800px) 50vw, 100vw",
|
|
2423
2753
|
fill: true,
|
|
@@ -2428,18 +2758,18 @@ function CaseStudyCard({
|
|
|
2428
2758
|
/* @__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 }) }),
|
|
2429
2759
|
/* @__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: [
|
|
2430
2760
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2431
|
-
_optionalChain([study, 'access',
|
|
2761
|
+
_optionalChain([study, 'access', _67 => _67.user, 'optionalAccess', _68 => _68.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2432
2762
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2433
2763
|
{
|
|
2434
2764
|
src: study.user.avatar_url,
|
|
2435
|
-
alt: _optionalChain([study, 'access',
|
|
2765
|
+
alt: _optionalChain([study, 'access', _69 => _69.user, 'optionalAccess', _70 => _70.full_name]) || "User",
|
|
2436
2766
|
className: "h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover",
|
|
2437
2767
|
width: 48,
|
|
2438
2768
|
height: 48,
|
|
2439
2769
|
unoptimized: true
|
|
2440
2770
|
}
|
|
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',
|
|
2442
|
-
_optionalChain([study, 'access',
|
|
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', _71 => _71.user, 'optionalAccess', _72 => _72.full_name]) || "A").charAt(0).toUpperCase() }) }),
|
|
2772
|
+
_optionalChain([study, 'access', _73 => _73.msp, 'optionalAccess', _74 => _74.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,
|
|
2443
2773
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2444
2774
|
{
|
|
2445
2775
|
src: study.msp.icon_url,
|
|
@@ -2453,13 +2783,13 @@ function CaseStudyCard({
|
|
|
2453
2783
|
] }),
|
|
2454
2784
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
2455
2785
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: [
|
|
2456
|
-
_optionalChain([study, 'access',
|
|
2457
|
-
_optionalChain([study, 'access',
|
|
2786
|
+
_optionalChain([study, 'access', _75 => _75.user, 'optionalAccess', _76 => _76.full_name]) || "Anonymous",
|
|
2787
|
+
_optionalChain([study, 'access', _77 => _77.msp, 'optionalAccess', _78 => _78.name]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
2458
2788
|
" \u2022 ",
|
|
2459
2789
|
study.msp.name
|
|
2460
2790
|
] })
|
|
2461
2791
|
] }),
|
|
2462
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([study, 'access',
|
|
2792
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([study, 'access', _79 => _79.user, 'optionalAccess', _80 => _80.job_title]) || "\xA0" })
|
|
2463
2793
|
] })
|
|
2464
2794
|
] }) })
|
|
2465
2795
|
] }) });
|
|
@@ -2541,7 +2871,7 @@ function CustomerInterviewCard({
|
|
|
2541
2871
|
] }),
|
|
2542
2872
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2543
2873
|
/* @__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 }) }),
|
|
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',
|
|
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', _81 => _81.user, 'optionalAccess', _82 => _82.full_name]), _optionalChain([interview, 'access', _83 => _83.msp, 'optionalAccess', _84 => _84.name])].filter(Boolean).join(" \xB7 ") || "Customer interview" }) }),
|
|
2545
2875
|
/* @__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 }) })
|
|
2546
2876
|
] })
|
|
2547
2877
|
] });
|
|
@@ -2559,10 +2889,10 @@ function CustomerInterviewCard({
|
|
|
2559
2889
|
imageAlt: interview.title,
|
|
2560
2890
|
title: interview.title,
|
|
2561
2891
|
person: {
|
|
2562
|
-
name: _optionalChain([interview, 'access',
|
|
2563
|
-
avatarUrl: _optionalChain([interview, 'access',
|
|
2564
|
-
subtitle: _nullishCoalesce(_optionalChain([interview, 'access',
|
|
2565
|
-
iconOverlayUrl: _nullishCoalesce(_optionalChain([interview, 'access',
|
|
2892
|
+
name: _optionalChain([interview, 'access', _85 => _85.user, 'optionalAccess', _86 => _86.full_name]) || "Customer",
|
|
2893
|
+
avatarUrl: _optionalChain([interview, 'access', _87 => _87.user, 'optionalAccess', _88 => _88.avatar_url]),
|
|
2894
|
+
subtitle: _nullishCoalesce(_optionalChain([interview, 'access', _89 => _89.msp, 'optionalAccess', _90 => _90.name]), () => ( null)),
|
|
2895
|
+
iconOverlayUrl: _nullishCoalesce(_optionalChain([interview, 'access', _91 => _91.msp, 'optionalAccess', _92 => _92.icon_url]), () => ( null))
|
|
2566
2896
|
},
|
|
2567
2897
|
className
|
|
2568
2898
|
}
|
|
@@ -2588,18 +2918,18 @@ function CustomerInterviewCard({
|
|
|
2588
2918
|
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 }) }),
|
|
2589
2919
|
/* @__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: [
|
|
2590
2920
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2591
|
-
_optionalChain([interview, 'access',
|
|
2921
|
+
_optionalChain([interview, 'access', _93 => _93.user, 'optionalAccess', _94 => _94.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2592
2922
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2593
2923
|
{
|
|
2594
2924
|
src: interview.user.avatar_url,
|
|
2595
|
-
alt: _optionalChain([interview, 'access',
|
|
2925
|
+
alt: _optionalChain([interview, 'access', _95 => _95.user, 'optionalAccess', _96 => _96.full_name]) || "Customer",
|
|
2596
2926
|
className: "h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover",
|
|
2597
2927
|
width: 48,
|
|
2598
2928
|
height: 48,
|
|
2599
2929
|
unoptimized: true
|
|
2600
2930
|
}
|
|
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',
|
|
2602
|
-
_optionalChain([interview, 'access',
|
|
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', _97 => _97.user, 'optionalAccess', _98 => _98.full_name]) || "A").charAt(0).toUpperCase() }) }),
|
|
2932
|
+
_optionalChain([interview, 'access', _99 => _99.msp, 'optionalAccess', _100 => _100.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,
|
|
2603
2933
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2604
2934
|
{
|
|
2605
2935
|
src: interview.msp.icon_url,
|
|
@@ -2613,13 +2943,13 @@ function CustomerInterviewCard({
|
|
|
2613
2943
|
] }),
|
|
2614
2944
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
2615
2945
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: [
|
|
2616
|
-
_optionalChain([interview, 'access',
|
|
2617
|
-
_optionalChain([interview, 'access',
|
|
2946
|
+
_optionalChain([interview, 'access', _101 => _101.user, 'optionalAccess', _102 => _102.full_name]) || "Anonymous",
|
|
2947
|
+
_optionalChain([interview, 'access', _103 => _103.msp, 'optionalAccess', _104 => _104.name]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
2618
2948
|
" \u2022 ",
|
|
2619
2949
|
interview.msp.name
|
|
2620
2950
|
] })
|
|
2621
2951
|
] }),
|
|
2622
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([interview, 'access',
|
|
2952
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([interview, 'access', _105 => _105.user, 'optionalAccess', _106 => _106.job_title]) || " " })
|
|
2623
2953
|
] })
|
|
2624
2954
|
] }) })
|
|
2625
2955
|
] }) });
|
|
@@ -2629,7 +2959,7 @@ function CustomerInterviewCard({
|
|
|
2629
2959
|
function formatInvestorUpdatePeriod(start, end, options) {
|
|
2630
2960
|
if (!start && !end) return "";
|
|
2631
2961
|
const fmt = (d) => new Date(d).toLocaleDateString("en-US", {
|
|
2632
|
-
month: _optionalChain([options, 'optionalAccess',
|
|
2962
|
+
month: _optionalChain([options, 'optionalAccess', _107 => _107.monthFormat]) || "short",
|
|
2633
2963
|
year: "numeric",
|
|
2634
2964
|
// Pin to UTC so SSR (Vercel = UTC) and the client agree (React #418).
|
|
2635
2965
|
timeZone: "UTC"
|
|
@@ -2744,7 +3074,7 @@ function InvestorUpdateCard({
|
|
|
2744
3074
|
imageUrl: update.featured_image,
|
|
2745
3075
|
placeholderUrl,
|
|
2746
3076
|
title: update.title || `Update #${update.update_number || "?"}`,
|
|
2747
|
-
summary: _optionalChain([update, 'access',
|
|
3077
|
+
summary: _optionalChain([update, 'access', _108 => _108.strategic_update, 'optionalAccess', _109 => _109.slice, 'call', _110 => _110(0, 120)]) || _optionalChain([update, 'access', _111 => _111.content, 'optionalAccess', _112 => _112.slice, 'call', _113 => _113(0, 120)]) || "No description",
|
|
2748
3078
|
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: [
|
|
2749
3079
|
"#",
|
|
2750
3080
|
update.update_number
|
|
@@ -2953,7 +3283,7 @@ function OnboardingGuideCard({
|
|
|
2953
3283
|
const compactCover = coverImage || placeholderUrl || null;
|
|
2954
3284
|
const hasVideoCover = !guide.featured_image && !!guide.main_video_thumbnail;
|
|
2955
3285
|
const summary2 = stripMarkdownPreview(guide.video_summary || guide.content || "");
|
|
2956
|
-
const author = _optionalChain([guide, 'access',
|
|
3286
|
+
const author = _optionalChain([guide, 'access', _114 => _114.author, 'optionalAccess', _115 => _115.full_name, 'optionalAccess', _116 => _116.trim, 'call', _117 => _117()]) || "";
|
|
2957
3287
|
const subtitleParts = [`Step ${guide.step_order}`, guide.section, author].filter(
|
|
2958
3288
|
(s) => typeof s === "string" && s.length > 0
|
|
2959
3289
|
);
|
|
@@ -3078,7 +3408,7 @@ function AvatarStack({
|
|
|
3078
3408
|
|
|
3079
3409
|
// src/components/chat/utils/agent-status-message.ts
|
|
3080
3410
|
function getStatusColorScheme(status) {
|
|
3081
|
-
const s = _optionalChain([status, 'optionalAccess',
|
|
3411
|
+
const s = _optionalChain([status, 'optionalAccess', _118 => _118.toLowerCase, 'call', _119 => _119()]) || "";
|
|
3082
3412
|
switch (status) {
|
|
3083
3413
|
case "completed":
|
|
3084
3414
|
case "success":
|
|
@@ -3320,7 +3650,7 @@ function RoadmapCard({
|
|
|
3320
3650
|
const compactHref = safeHref(_nullishCoalesce(href, () => ( null)));
|
|
3321
3651
|
const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
|
|
3322
3652
|
const hasFigma = !!item.figmaUrl;
|
|
3323
|
-
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access',
|
|
3653
|
+
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _120 => _120.screenshots, 'optionalAccess', _121 => _121.length]), () => ( 0))) > 0;
|
|
3324
3654
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
3325
3655
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
3326
3656
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -3339,7 +3669,7 @@ function RoadmapCard({
|
|
|
3339
3669
|
unoptimized: true,
|
|
3340
3670
|
className: "h-8 w-8 object-contain"
|
|
3341
3671
|
}
|
|
3342
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-secondary text-h6", children: _optionalChain([item, 'access',
|
|
3672
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-secondary text-h6", children: _optionalChain([item, 'access', _122 => _122.title, 'optionalAccess', _123 => _123.substring, 'call', _124 => _124(0, 2)]) || "??" })
|
|
3343
3673
|
}
|
|
3344
3674
|
),
|
|
3345
3675
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -3419,7 +3749,7 @@ function RoadmapCard({
|
|
|
3419
3749
|
unoptimized: true,
|
|
3420
3750
|
className: "object-contain p-1"
|
|
3421
3751
|
}
|
|
3422
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
3752
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _125 => _125.title, 'optionalAccess', _126 => _126.substring, 'call', _127 => _127(0, 2)]) || "??" }) }),
|
|
3423
3753
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3424
3754
|
/* @__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 }) }),
|
|
3425
3755
|
/* @__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: [
|
|
@@ -3520,10 +3850,10 @@ var MEDIA_TYPE = {
|
|
|
3520
3850
|
VIDEO: "video"
|
|
3521
3851
|
};
|
|
3522
3852
|
function isVideoMedia(media) {
|
|
3523
|
-
return _optionalChain([media, 'optionalAccess',
|
|
3853
|
+
return _optionalChain([media, 'optionalAccess', _128 => _128.media_type]) === MEDIA_TYPE.VIDEO;
|
|
3524
3854
|
}
|
|
3525
3855
|
function isImageMedia(media) {
|
|
3526
|
-
return _optionalChain([media, 'optionalAccess',
|
|
3856
|
+
return _optionalChain([media, 'optionalAccess', _129 => _129.media_type]) === MEDIA_TYPE.IMAGE;
|
|
3527
3857
|
}
|
|
3528
3858
|
function isPublishableMediaType(mediaType) {
|
|
3529
3859
|
return mediaType === MEDIA_TYPE.VIDEO || mediaType === MEDIA_TYPE.IMAGE;
|
|
@@ -3540,7 +3870,7 @@ function programItemToStripProfile(item) {
|
|
|
3540
3870
|
const fromAuthor = toStripProfile(item.author);
|
|
3541
3871
|
if (fromAuthor) return fromAuthor;
|
|
3542
3872
|
const host = Array.isArray(item.hosts) ? item.hosts[0] : null;
|
|
3543
|
-
if (!_optionalChain([host, 'optionalAccess',
|
|
3873
|
+
if (!_optionalChain([host, 'optionalAccess', _130 => _130.name])) return null;
|
|
3544
3874
|
return toStripProfile({ full_name: host.name, avatar_url: _nullishCoalesce(host.avatar_url, () => ( null)) });
|
|
3545
3875
|
}
|
|
3546
3876
|
function transformEventToProgram(event) {
|
|
@@ -3814,7 +4144,7 @@ function ProgramCard({
|
|
|
3814
4144
|
const itemDate2 = compactDate;
|
|
3815
4145
|
const compactCover = coverImage || placeholderUrl || null;
|
|
3816
4146
|
const typeMeta = compactTypeMeta();
|
|
3817
|
-
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access',
|
|
4147
|
+
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _131 => _131.labels, 'optionalAccess', _132 => _132.singular])].filter(
|
|
3818
4148
|
(s) => typeof s === "string" && s.length > 0
|
|
3819
4149
|
);
|
|
3820
4150
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunk23V5BSHDcjs.cn.call(void 0, COMPACT_CARD_OUTER, className), children: [
|
|
@@ -4208,5 +4538,25 @@ function buildListUrl(contentRefType, ids, base = "") {
|
|
|
4208
4538
|
|
|
4209
4539
|
|
|
4210
4540
|
|
|
4211
|
-
|
|
4212
|
-
|
|
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
|