@flamingo-stack/openframe-frontend-core 0.0.625 → 0.0.626-snapshot.20260914041231
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-IYQRUTJI.js → chunk-25UWKNII.js} +10 -8
- package/dist/{chunk-IYQRUTJI.js.map → chunk-25UWKNII.js.map} +1 -1
- package/dist/{chunk-EW6PYGB3.js → chunk-2J7EFH4V.js} +819 -396
- package/dist/chunk-2J7EFH4V.js.map +1 -0
- package/dist/{chunk-X3LC6R37.js → chunk-32P6KUZP.js} +2 -2
- package/dist/{chunk-YSCRM2AG.cjs → chunk-4E3UZZ2J.cjs} +34 -34
- package/dist/{chunk-YSCRM2AG.cjs.map → chunk-4E3UZZ2J.cjs.map} +1 -1
- package/dist/{chunk-EHAYNUOL.cjs → chunk-4E7XCEV3.cjs} +77 -2
- package/dist/chunk-4E7XCEV3.cjs.map +1 -0
- package/dist/{chunk-2RTH6JR5.js → chunk-4PIHIFJM.js} +4 -4
- package/dist/{chunk-ELU7SGM6.cjs → chunk-4SXZT7JP.cjs} +83 -83
- package/dist/{chunk-ELU7SGM6.cjs.map → chunk-4SXZT7JP.cjs.map} +1 -1
- package/dist/{chunk-ISXADEGT.cjs → chunk-53ARMJHM.cjs} +38 -38
- package/dist/chunk-53ARMJHM.cjs.map +1 -0
- package/dist/{chunk-MP2K44EK.cjs → chunk-55X46LKR.cjs} +514 -91
- package/dist/chunk-55X46LKR.cjs.map +1 -0
- package/dist/{chunk-VGZ7WZ7F.js → chunk-5E55S5SI.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-QAYRZTFU.cjs → chunk-BC726XIQ.cjs} +49 -47
- package/dist/chunk-BC726XIQ.cjs.map +1 -0
- package/dist/{chunk-F7UZDBZZ.cjs → chunk-BJGAFPG5.cjs} +42 -42
- package/dist/{chunk-F7UZDBZZ.cjs.map → chunk-BJGAFPG5.cjs.map} +1 -1
- package/dist/{chunk-HOASBISN.js → chunk-CAQ5MNLJ.js} +3 -3
- package/dist/{chunk-PSANPD64.js → chunk-CK2CPZXB.js} +12 -12
- package/dist/{chunk-YQCA4ZEJ.js → chunk-CMUNJZWN.js} +2 -2
- package/dist/{chunk-7LH2LC6N.js → chunk-DH3YH3TV.js} +8 -8
- package/dist/{chunk-CXTOKOMK.cjs → chunk-FR6EDA3P.cjs} +105 -105
- package/dist/{chunk-CXTOKOMK.cjs.map → chunk-FR6EDA3P.cjs.map} +1 -1
- package/dist/{chunk-VOKLGRHX.cjs → chunk-G46NJNTL.cjs} +28 -26
- package/dist/chunk-G46NJNTL.cjs.map +1 -0
- package/dist/{chunk-P52MUJTG.js → chunk-G47XRVZA.js} +3 -3
- package/dist/{chunk-7VOLW4WX.cjs → chunk-GQ7267OV.cjs} +5 -5
- package/dist/{chunk-7VOLW4WX.cjs.map → chunk-GQ7267OV.cjs.map} +1 -1
- package/dist/{chunk-YCO4UA62.js → chunk-HIZAMJPT.js} +12 -12
- package/dist/{chunk-YWFMYZ4G.js → chunk-J6ATJUEE.js} +5 -5
- package/dist/{chunk-YWFMYZ4G.js.map → chunk-J6ATJUEE.js.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-FDE52ADN.js → chunk-KXDYBRRR.js} +7 -7
- package/dist/{chunk-NCY7J6YZ.js → chunk-L5FEAOGJ.js} +14 -360
- package/dist/chunk-L5FEAOGJ.js.map +1 -0
- package/dist/{chunk-BNH76PZH.cjs → chunk-N6XNJX25.cjs} +15 -15
- package/dist/{chunk-BNH76PZH.cjs.map → chunk-N6XNJX25.cjs.map} +1 -1
- package/dist/{chunk-DKNDJNSW.js → chunk-NLADJ4IX.js} +6 -6
- package/dist/{chunk-ETH2WO6U.cjs → chunk-OAXASIVG.cjs} +7 -7
- package/dist/{chunk-ETH2WO6U.cjs.map → chunk-OAXASIVG.cjs.map} +1 -1
- package/dist/{chunk-3IXDZI3R.cjs → chunk-P7UT2YSC.cjs} +3 -3
- package/dist/{chunk-3IXDZI3R.cjs.map → chunk-P7UT2YSC.cjs.map} +1 -1
- package/dist/{chunk-RSJMF2YO.js → chunk-PKSH6PAK.js} +10 -8
- package/dist/{chunk-RSJMF2YO.js.map → chunk-PKSH6PAK.js.map} +1 -1
- package/dist/{chunk-35JUSLEJ.js → chunk-PTP5LSYM.js} +16 -28
- package/dist/{chunk-35JUSLEJ.js.map → chunk-PTP5LSYM.js.map} +1 -1
- package/dist/{chunk-AT44NN6G.cjs → chunk-QCSWM3VU.cjs} +9 -9
- package/dist/{chunk-AT44NN6G.cjs.map → chunk-QCSWM3VU.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-CP5QJZGS.cjs → chunk-R3SJ6PMI.cjs} +280 -292
- package/dist/chunk-R3SJ6PMI.cjs.map +1 -0
- 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-7H2H6HYE.cjs → chunk-SLT5C3PQ.cjs} +25 -25
- package/dist/{chunk-7H2H6HYE.cjs.map → chunk-SLT5C3PQ.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-CWK7BQTZ.cjs → chunk-VUAEDAUN.cjs} +6 -6
- package/dist/{chunk-CWK7BQTZ.cjs.map → chunk-VUAEDAUN.cjs.map} +1 -1
- package/dist/{chunk-OFRCNA6N.cjs → chunk-VZQ3VVFH.cjs} +22 -20
- package/dist/chunk-VZQ3VVFH.cjs.map +1 -0
- package/dist/{chunk-627V5GNY.js → chunk-WZ6CUZMM.js} +4 -4
- package/dist/{chunk-F2KBCLUG.js → chunk-X5NN4NJM.js} +2 -2
- package/dist/{chunk-C2E3TDRF.js → chunk-Y3MIFC5M.js} +4 -4
- package/dist/{chunk-NDUNUXS2.cjs → chunk-ZCQVUIPH.cjs} +18 -18
- package/dist/{chunk-NDUNUXS2.cjs.map → chunk-ZCQVUIPH.cjs.map} +1 -1
- package/dist/{chunk-UQWJWIEK.js → chunk-ZGZ7YAJH.js} +10 -8
- package/dist/{chunk-UQWJWIEK.js.map → chunk-ZGZ7YAJH.js.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-XOREK735.cjs → chunk-ZYDNPUSH.cjs} +285 -631
- 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/entity-cards/admin-content-card-grid.d.ts +8 -5
- package/dist/components/chat/entity-cards/admin-content-card-grid.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/admin-content-card.d.ts +8 -1
- package/dist/components/chat/entity-cards/admin-content-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/ai-prompt-card.d.ts +2 -1
- package/dist/components/chat/entity-cards/ai-prompt-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/employee-entry-card.d.ts +3 -3
- package/dist/components/chat/entity-cards/employee-entry-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/entity-author-card.d.ts +8 -6
- package/dist/components/chat/entity-cards/entity-author-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/chat/index.js +4 -4
- package/dist/components/contact/index.cjs +9 -9
- package/dist/components/contact/index.js +8 -8
- package/dist/components/docs/index.cjs +12 -12
- package/dist/components/docs/index.js +11 -11
- package/dist/components/embeds/index.cjs +9 -9
- package/dist/components/embeds/index.js +8 -8
- package/dist/components/faq/index.cjs +10 -10
- package/dist/components/faq/index.js +9 -9
- package/dist/components/features/index.cjs +8 -8
- package/dist/components/features/index.js +7 -7
- package/dist/components/help-center-pages/index.cjs +31 -31
- package/dist/components/help-center-pages/index.js +22 -22
- package/dist/components/index.cjs +75 -69
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +30 -24
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +49 -49
- package/dist/components/meeting-scheduler/index.js +9 -9
- package/dist/components/navigation/index.cjs +11 -11
- package/dist/components/navigation/index.js +10 -10
- package/dist/components/onboarding-guides/index.cjs +12 -12
- package/dist/components/onboarding-guides/index.js +11 -11
- package/dist/components/related-content/card-registry.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/related-content/index.js +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/tickets/index.js +12 -12
- package/dist/components/ui/color-preset-select.d.ts +4 -5
- package/dist/components/ui/color-preset-select.d.ts.map +1 -1
- package/dist/components/ui/department-badge.d.ts +21 -0
- package/dist/components/ui/department-badge.d.ts.map +1 -0
- package/dist/components/ui/index.cjs +14 -8
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +13 -7
- package/dist/components/ui/palette-badge.d.ts +22 -0
- package/dist/components/ui/palette-badge.d.ts.map +1 -0
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/index.js +4 -4
- package/dist/index.cjs +28 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +50 -40
- package/dist/index.js.map +1 -1
- package/dist/types/department.d.ts +4 -0
- package/dist/types/department.d.ts.map +1 -1
- package/dist/utils/color-presets.d.ts +24 -0
- package/dist/utils/color-presets.d.ts.map +1 -0
- package/dist/utils/index.cjs +32 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +30 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/__tests__/admin-content-card-grid.test.tsx +14 -1
- package/src/components/chat/entity-cards/admin-content-card-grid.tsx +15 -12
- package/src/components/chat/entity-cards/admin-content-card.tsx +24 -6
- package/src/components/chat/entity-cards/ai-prompt-card.tsx +7 -4
- package/src/components/chat/entity-cards/employee-entry-card.tsx +21 -24
- package/src/components/chat/entity-cards/entity-author-card.tsx +10 -4
- package/src/components/related-content/card-registry.tsx +3 -1
- package/src/components/ui/.department-badge.md +2 -0
- package/src/components/ui/.palette-badge.md +2 -0
- package/src/components/ui/__tests__/department-badge.test.tsx +47 -0
- package/src/components/ui/color-preset-select.tsx +5 -21
- package/src/components/ui/department-badge.tsx +35 -0
- package/src/components/ui/index.ts +2 -0
- package/src/components/ui/palette-badge.tsx +39 -0
- package/src/types/department.ts +4 -0
- package/src/utils/.color-presets.md +2 -0
- package/src/utils/color-presets.ts +48 -0
- package/src/utils/index.ts +1 -0
- package/dist/chunk-CP5QJZGS.cjs.map +0 -1
- package/dist/chunk-EHAYNUOL.cjs.map +0 -1
- package/dist/chunk-EW6PYGB3.js.map +0 -1
- package/dist/chunk-ISXADEGT.cjs.map +0 -1
- package/dist/chunk-MP2K44EK.cjs.map +0 -1
- package/dist/chunk-NCY7J6YZ.js.map +0 -1
- package/dist/chunk-OFRCNA6N.cjs.map +0 -1
- package/dist/chunk-QAYRZTFU.cjs.map +0 -1
- package/dist/chunk-VOKLGRHX.cjs.map +0 -1
- package/dist/chunk-XOREK735.cjs.map +0 -1
- package/dist/chunk-YXWGSDK4.cjs.map +0 -1
- /package/dist/{chunk-X3LC6R37.js.map → chunk-32P6KUZP.js.map} +0 -0
- /package/dist/{chunk-2RTH6JR5.js.map → chunk-4PIHIFJM.js.map} +0 -0
- /package/dist/{chunk-VGZ7WZ7F.js.map → chunk-5E55S5SI.js.map} +0 -0
- /package/dist/{chunk-S6WBBSII.js.map → chunk-76HB456V.js.map} +0 -0
- /package/dist/{chunk-HOASBISN.js.map → chunk-CAQ5MNLJ.js.map} +0 -0
- /package/dist/{chunk-PSANPD64.js.map → chunk-CK2CPZXB.js.map} +0 -0
- /package/dist/{chunk-YQCA4ZEJ.js.map → chunk-CMUNJZWN.js.map} +0 -0
- /package/dist/{chunk-7LH2LC6N.js.map → chunk-DH3YH3TV.js.map} +0 -0
- /package/dist/{chunk-P52MUJTG.js.map → chunk-G47XRVZA.js.map} +0 -0
- /package/dist/{chunk-YCO4UA62.js.map → chunk-HIZAMJPT.js.map} +0 -0
- /package/dist/{chunk-FDE52ADN.js.map → chunk-KXDYBRRR.js.map} +0 -0
- /package/dist/{chunk-DKNDJNSW.js.map → chunk-NLADJ4IX.js.map} +0 -0
- /package/dist/{chunk-627V5GNY.js.map → chunk-WZ6CUZMM.js.map} +0 -0
- /package/dist/{chunk-F2KBCLUG.js.map → chunk-X5NN4NJM.js.map} +0 -0
- /package/dist/{chunk-C2E3TDRF.js.map → chunk-Y3MIFC5M.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
|
|
|
@@ -807,12 +1137,77 @@ function StatusBadge({ text, variant, colorScheme, className, singleLine, gen, s
|
|
|
807
1137
|
);
|
|
808
1138
|
}
|
|
809
1139
|
|
|
1140
|
+
// src/utils/color-presets.ts
|
|
1141
|
+
var COLOR_PRESETS = [
|
|
1142
|
+
{ key: "green", label: "Green", color: "#5ea62e" },
|
|
1143
|
+
{ key: "lime", label: "Lime", color: "#8bc34a" },
|
|
1144
|
+
{ key: "teal", label: "Teal", color: "#4db6ac" },
|
|
1145
|
+
{ key: "sky", label: "Sky", color: "#4fc3f7" },
|
|
1146
|
+
{ key: "periwinkle", label: "Periwinkle", color: "#7e9cd8" },
|
|
1147
|
+
{ key: "lavender", label: "Lavender", color: "#b39ddb" },
|
|
1148
|
+
{ key: "yellow", label: "Yellow", color: "#e1b32f" },
|
|
1149
|
+
{ key: "sand", label: "Sand", color: "#f0c674" },
|
|
1150
|
+
{ key: "peach", label: "Peach", color: "#f39c7a" },
|
|
1151
|
+
{ key: "red", label: "Red", color: "#f36666" },
|
|
1152
|
+
{ key: "pink", label: "Pink", color: "#e988a8" },
|
|
1153
|
+
{ key: "neutral", label: "Neutral", color: "#b0b0b0" }
|
|
1154
|
+
];
|
|
1155
|
+
function colorPreset(key) {
|
|
1156
|
+
return key ? COLOR_PRESETS.find((preset) => preset.key === key) : void 0;
|
|
1157
|
+
}
|
|
1158
|
+
function pickPresetColor({
|
|
1159
|
+
avoid = [],
|
|
1160
|
+
random = Math.random
|
|
1161
|
+
} = {}) {
|
|
1162
|
+
const colours = COLOR_PRESETS.filter((preset) => preset.key !== "neutral");
|
|
1163
|
+
const used = new Set(avoid);
|
|
1164
|
+
const free = colours.filter((preset) => !used.has(preset.key));
|
|
1165
|
+
const pool = free.length > 0 ? free : colours;
|
|
1166
|
+
return pool[Math.floor(random() * pool.length) % pool.length].key;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
// src/components/ui/palette-badge.tsx
|
|
1170
|
+
|
|
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)));
|
|
1173
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1174
|
+
StatusBadge,
|
|
1175
|
+
{
|
|
1176
|
+
text,
|
|
1177
|
+
colorScheme: "default",
|
|
1178
|
+
variant,
|
|
1179
|
+
singleLine: true,
|
|
1180
|
+
className,
|
|
1181
|
+
style: fill ? { backgroundColor: fill, color: getReadableTextColor(fill) } : void 0
|
|
1182
|
+
}
|
|
1183
|
+
);
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
// src/components/ui/department-badge.tsx
|
|
1187
|
+
|
|
1188
|
+
function DepartmentBadge({
|
|
1189
|
+
department,
|
|
1190
|
+
emptyLabel = "No department",
|
|
1191
|
+
className,
|
|
1192
|
+
variant
|
|
1193
|
+
}) {
|
|
1194
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1195
|
+
PaletteBadge,
|
|
1196
|
+
{
|
|
1197
|
+
text: _optionalChain([department, 'optionalAccess', _8 => _8.name]) || emptyLabel,
|
|
1198
|
+
color: _optionalChain([department, 'optionalAccess', _9 => _9.name]) ? department.color : null,
|
|
1199
|
+
className,
|
|
1200
|
+
variant
|
|
1201
|
+
}
|
|
1202
|
+
);
|
|
1203
|
+
}
|
|
1204
|
+
|
|
810
1205
|
// src/utils/image-proxy.ts
|
|
811
1206
|
function getProxiedImageUrl(imageUrl, options) {
|
|
812
1207
|
if (!imageUrl) return null;
|
|
813
|
-
const proxyPrefix = _optionalChain([options, 'optionalAccess',
|
|
814
|
-
const skipDomains = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
815
|
-
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));
|
|
816
1211
|
if (proxyPrefix && imageUrl.includes(proxyPrefix)) {
|
|
817
1212
|
return imageUrl;
|
|
818
1213
|
}
|
|
@@ -835,7 +1230,7 @@ function getProxiedImageUrl(imageUrl, options) {
|
|
|
835
1230
|
function urlPathLooksLikeSvg(imageUrl) {
|
|
836
1231
|
try {
|
|
837
1232
|
return /\.svg$/i.test(new URL(imageUrl).pathname);
|
|
838
|
-
} catch (
|
|
1233
|
+
} catch (e4) {
|
|
839
1234
|
return /\.svg(\?|#|$)/i.test(imageUrl);
|
|
840
1235
|
}
|
|
841
1236
|
}
|
|
@@ -877,14 +1272,14 @@ function isSameOriginAbsoluteHref(href) {
|
|
|
877
1272
|
if (!/^https?:\/\//i.test(href)) return false;
|
|
878
1273
|
try {
|
|
879
1274
|
return new URL(href).origin === new URL(window.location.href).origin;
|
|
880
|
-
} catch (
|
|
1275
|
+
} catch (e5) {
|
|
881
1276
|
return false;
|
|
882
1277
|
}
|
|
883
1278
|
}
|
|
884
1279
|
function computeIsNewTab(runtime, href, targetPlatform) {
|
|
885
1280
|
if (!href) return false;
|
|
886
1281
|
if (runtime.navigation.mode === "embed") return !isSameOriginAbsoluteHref(href);
|
|
887
|
-
return _nullishCoalesce(_optionalChain([runtime, 'access',
|
|
1282
|
+
return _nullishCoalesce(_optionalChain([runtime, 'access', _13 => _13.navigation, 'access', _14 => _14.decideNewTab, 'optionalCall', _15 => _15({ href, targetPlatform })]), () => ( decideNewTab({
|
|
888
1283
|
href,
|
|
889
1284
|
targetPlatform,
|
|
890
1285
|
currentSource: _nullishCoalesce(runtime.source, () => ( ""))
|
|
@@ -911,7 +1306,7 @@ function EntityMetadataValueCell({
|
|
|
911
1306
|
uppercase = true
|
|
912
1307
|
}) {
|
|
913
1308
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex flex-col gap-3 bg-ods-card p-4 ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-0", children: [
|
|
914
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: uppercase ? value.toLocaleUpperCase() : value }),
|
|
1309
|
+
typeof value === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: uppercase ? value.toLocaleUpperCase() : value }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-6 items-center", children: value }),
|
|
915
1310
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: label })
|
|
916
1311
|
] }) });
|
|
917
1312
|
}
|
|
@@ -950,7 +1345,7 @@ function EntityAuthorCard({
|
|
|
950
1345
|
renderEmptyAuthor = false,
|
|
951
1346
|
className
|
|
952
1347
|
}) {
|
|
953
|
-
const hasAuthor = !!_optionalChain([author, 'optionalAccess',
|
|
1348
|
+
const hasAuthor = !!_optionalChain([author, 'optionalAccess', _16 => _16.full_name]);
|
|
954
1349
|
if (!hasAuthor && !renderEmptyAuthor) return null;
|
|
955
1350
|
const effectiveAuthor = hasAuthor ? author : EMPTY_AUTHOR_PLACEHOLDER;
|
|
956
1351
|
const formatted = publishedAt ? formatDate(publishedAt) : "";
|
|
@@ -1039,14 +1434,14 @@ function EntityPortraitCard({
|
|
|
1039
1434
|
}) {
|
|
1040
1435
|
const { src, onError: onMediaError } = useCoverImageFallback(imageUrl, placeholderUrl);
|
|
1041
1436
|
const [measured, setMeasured] = _react.useState.call(void 0, null);
|
|
1042
|
-
const isWide = _optionalChain([measured, 'optionalAccess',
|
|
1437
|
+
const isWide = _optionalChain([measured, 'optionalAccess', _17 => _17.src]) === src ? measured.isWide : null;
|
|
1043
1438
|
const onMediaLoad = (e) => {
|
|
1044
1439
|
const img = e.currentTarget;
|
|
1045
1440
|
if (img.naturalWidth > 0 && img.naturalHeight > 0) {
|
|
1046
1441
|
setMeasured({ src, isWide: img.naturalWidth / img.naturalHeight >= MIN_WIDE_RATIO });
|
|
1047
1442
|
}
|
|
1048
1443
|
};
|
|
1049
|
-
const edgeColor =
|
|
1444
|
+
const edgeColor = _chunk4E7XCEV3cjs.useImageEdgeColor.call(void 0, isWide === false ? src : null, "var(--color-bg-surface)");
|
|
1050
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: [
|
|
1051
1446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1052
1447
|
"div",
|
|
@@ -1259,7 +1654,7 @@ function PlatformBadge({ platform, size = "sm", showLabel = true, className }) {
|
|
|
1259
1654
|
return null;
|
|
1260
1655
|
}
|
|
1261
1656
|
const sizes = sizeClasses[size];
|
|
1262
|
-
const colors =
|
|
1657
|
+
const colors = _chunk4E7XCEV3cjs.getPlatformBrandClasses.call(void 0, platform.name);
|
|
1263
1658
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1264
1659
|
"div",
|
|
1265
1660
|
{
|
|
@@ -1293,13 +1688,14 @@ function AdminContentCard({
|
|
|
1293
1688
|
badges,
|
|
1294
1689
|
meta,
|
|
1295
1690
|
actions,
|
|
1691
|
+
reserveRows = false,
|
|
1296
1692
|
className
|
|
1297
1693
|
}) {
|
|
1298
1694
|
const [imageError, setImageError] = _react.useState.call(void 0, false);
|
|
1299
1695
|
const [loadedUrl, setLoadedUrl] = _react.useState.call(void 0, null);
|
|
1300
1696
|
const displayUrl = imageUrl && !imageError ? imageUrl : placeholderUrl;
|
|
1301
1697
|
const imageLoaded = Boolean(displayUrl) && loadedUrl === displayUrl;
|
|
1302
|
-
const imageBgColor =
|
|
1698
|
+
const imageBgColor = _chunk4E7XCEV3cjs.useImageEdgeColor.call(void 0, displayUrl || null, "transparent");
|
|
1303
1699
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1304
1700
|
"article",
|
|
1305
1701
|
{
|
|
@@ -1335,11 +1731,11 @@ function AdminContentCard({
|
|
|
1335
1731
|
)
|
|
1336
1732
|
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute inset-0 bg-ods-bg" }) }),
|
|
1337
1733
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col gap-3 p-5", children: [
|
|
1338
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "line-clamp-2 break-words text-ods-text-primary text-h3", children: title }),
|
|
1339
|
-
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle }),
|
|
1340
|
-
summary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-2 text-ods-text-secondary text-h6", children: summary }),
|
|
1341
|
-
(Number(_optionalChain([platforms, 'optionalAccess',
|
|
1342
|
-
_optionalChain([platforms, 'optionalAccess',
|
|
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 }),
|
|
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 }),
|
|
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 }),
|
|
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,
|
|
1343
1739
|
PlatformBadge,
|
|
1344
1740
|
{
|
|
1345
1741
|
platform: { id: p.id || p.platform_id || "", name: p.name, display_name: p.display_name || p.name },
|
|
@@ -1349,7 +1745,7 @@ function AdminContentCard({
|
|
|
1349
1745
|
))]),
|
|
1350
1746
|
badges
|
|
1351
1747
|
] }),
|
|
1352
|
-
meta && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-3 text-ods-text-secondary text-h6", children: meta }),
|
|
1748
|
+
(meta || reserveRows) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "flex items-center gap-3 text-ods-text-secondary text-h6", reserveRows && "min-h-[1lh]"), children: meta }),
|
|
1353
1749
|
actions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-auto flex items-center justify-between border-t border-ods-border pt-3", children: actions })
|
|
1354
1750
|
] })
|
|
1355
1751
|
]
|
|
@@ -1374,19 +1770,19 @@ function getProxiedImageUrl2(imageUrl) {
|
|
|
1374
1770
|
|
|
1375
1771
|
// src/components/chat/entity-cards/employee-entry-card.tsx
|
|
1376
1772
|
|
|
1377
|
-
var
|
|
1378
|
-
published: "
|
|
1379
|
-
draft: "
|
|
1380
|
-
archived: "
|
|
1773
|
+
var STATUS_BADGE_SCHEME = {
|
|
1774
|
+
published: "success",
|
|
1775
|
+
draft: "warning",
|
|
1776
|
+
archived: "default",
|
|
1381
1777
|
// Design-doc lifecycle (product-hub) — same ODS pairs, no new palette.
|
|
1382
|
-
in_review: "
|
|
1383
|
-
approved: "
|
|
1384
|
-
building: "
|
|
1385
|
-
shipped: "
|
|
1386
|
-
abandoned: "
|
|
1778
|
+
in_review: "warning",
|
|
1779
|
+
approved: "success",
|
|
1780
|
+
building: "success",
|
|
1781
|
+
shipped: "success",
|
|
1782
|
+
abandoned: "default"
|
|
1387
1783
|
};
|
|
1388
1784
|
function EmployeeEntryBadge({ children }) {
|
|
1389
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1785
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StatusBadge, { text: children, colorScheme: "default", variant: "button", singleLine: true });
|
|
1390
1786
|
}
|
|
1391
1787
|
function EmployeeEntryCard({
|
|
1392
1788
|
entry,
|
|
@@ -1407,17 +1803,19 @@ function EmployeeEntryCard({
|
|
|
1407
1803
|
summary: (_nullishCoalesce(entry.summary, () => ( ""))).slice(0, 140) || "No description",
|
|
1408
1804
|
badges: entry.status || extraBadges ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1409
1805
|
entry.status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1410
|
-
|
|
1806
|
+
StatusBadge,
|
|
1411
1807
|
{
|
|
1412
|
-
|
|
1413
|
-
|
|
1808
|
+
text: entry.status,
|
|
1809
|
+
colorScheme: _nullishCoalesce(STATUS_BADGE_SCHEME[entry.status], () => ( "default")),
|
|
1810
|
+
variant: "button",
|
|
1811
|
+
singleLine: true
|
|
1414
1812
|
}
|
|
1415
1813
|
) : null,
|
|
1416
1814
|
extraBadges
|
|
1417
1815
|
] }) : null,
|
|
1418
1816
|
meta: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1419
1817
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-2", children: [
|
|
1420
|
-
_optionalChain([entry, 'access',
|
|
1818
|
+
_optionalChain([entry, 'access', _21 => _21.author, 'optionalAccess', _22 => _22.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1421
1819
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
1422
1820
|
{
|
|
1423
1821
|
src: _nullishCoalesce(getProxiedImageUrl2(entry.author.avatar_url), () => ( entry.author.avatar_url)),
|
|
@@ -1428,7 +1826,7 @@ function EmployeeEntryCard({
|
|
|
1428
1826
|
unoptimized: true
|
|
1429
1827
|
}
|
|
1430
1828
|
) : null,
|
|
1431
|
-
/* @__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]), () => ( "")) })
|
|
1432
1830
|
] }),
|
|
1433
1831
|
dateLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: dateLabel }) : null
|
|
1434
1832
|
] }),
|
|
@@ -1501,7 +1899,7 @@ var HowIWorkCardSkeleton = EmployeeEntryCardSkeleton;
|
|
|
1501
1899
|
// src/components/chat/entity-cards/ai-prompt-card.tsx
|
|
1502
1900
|
|
|
1503
1901
|
function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }) {
|
|
1504
|
-
const
|
|
1902
|
+
const departmentName = _optionalChain([entry, 'access', _25 => _25.department, 'optionalAccess', _26 => _26.name, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]);
|
|
1505
1903
|
const steps = typeof entry.step_count === "number" ? entry.step_count : 0;
|
|
1506
1904
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1507
1905
|
EmployeeEntryCard,
|
|
@@ -1509,7 +1907,7 @@ function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }
|
|
|
1509
1907
|
entry,
|
|
1510
1908
|
dateLabel: entry.published_at ? formatDateUTC(entry.published_at, { fallback: "" }) || null : null,
|
|
1511
1909
|
extraBadges: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1512
|
-
|
|
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,
|
|
1513
1911
|
steps > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: `${steps} steps` }) : null
|
|
1514
1912
|
] }),
|
|
1515
1913
|
untitledLabel: "Untitled prompt",
|
|
@@ -1525,7 +1923,7 @@ var AiPromptCardSkeleton = EmployeeEntryCardSkeleton;
|
|
|
1525
1923
|
// src/components/features/video-bites-shared.ts
|
|
1526
1924
|
var DEFAULT_VIDEO_BITES_TITLE = "Key Moments";
|
|
1527
1925
|
function toStripProfile(p, fallbackSubtitle) {
|
|
1528
|
-
if (!_optionalChain([p, 'optionalAccess',
|
|
1926
|
+
if (!_optionalChain([p, 'optionalAccess', _31 => _31.full_name])) return null;
|
|
1529
1927
|
return {
|
|
1530
1928
|
name: p.full_name,
|
|
1531
1929
|
avatarUrl: _nullishCoalesce(p.avatar_url, () => ( null)),
|
|
@@ -1567,7 +1965,7 @@ function ProductReleaseCard({
|
|
|
1567
1965
|
changelogCounts
|
|
1568
1966
|
}) {
|
|
1569
1967
|
if (size === "lg") {
|
|
1570
|
-
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)));
|
|
1571
1969
|
const valueCells = [
|
|
1572
1970
|
releaseType && releaseTypeBadgeColor ? {
|
|
1573
1971
|
value: releaseType.toUpperCase(),
|
|
@@ -1586,7 +1984,7 @@ function ProductReleaseCard({
|
|
|
1586
1984
|
uppercase: false
|
|
1587
1985
|
} : { value: "\u2014", label: "Released", uppercase: false }
|
|
1588
1986
|
];
|
|
1589
|
-
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" };
|
|
1590
1988
|
const gridColsClass = "md:grid-cols-4";
|
|
1591
1989
|
const dividerClass = "border-b md:border-b-0 md:border-r border-ods-border";
|
|
1592
1990
|
const frameClass = _chunk23V5BSHDcjs.cn.call(void 0,
|
|
@@ -1960,10 +2358,10 @@ function buildProductReleaseCardProps(item) {
|
|
|
1960
2358
|
job_title: release.author.job_title
|
|
1961
2359
|
} : void 0,
|
|
1962
2360
|
changelogCounts: {
|
|
1963
|
-
features: _nullishCoalesce(_optionalChain([release, 'access',
|
|
1964
|
-
fixes: _nullishCoalesce(_optionalChain([release, 'access',
|
|
1965
|
-
improvements: _nullishCoalesce(_optionalChain([release, 'access',
|
|
1966
|
-
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))
|
|
1967
2365
|
}
|
|
1968
2366
|
};
|
|
1969
2367
|
}
|
|
@@ -1997,7 +2395,7 @@ function safeHref(url) {
|
|
|
1997
2395
|
if (!SAFE_URL_SCHEMES.includes(parsed.protocol)) return null;
|
|
1998
2396
|
if ((parsed.protocol === "https:" || parsed.protocol === "http:") && !parsed.hostname) return null;
|
|
1999
2397
|
return trimmed;
|
|
2000
|
-
} catch (
|
|
2398
|
+
} catch (e6) {
|
|
2001
2399
|
return null;
|
|
2002
2400
|
}
|
|
2003
2401
|
}
|
|
@@ -2026,7 +2424,7 @@ function useEntityCardPlaceholder({
|
|
|
2026
2424
|
siteName = "",
|
|
2027
2425
|
aspect = "wide"
|
|
2028
2426
|
}) {
|
|
2029
|
-
const derived =
|
|
2427
|
+
const derived = _chunk4E7XCEV3cjs.useOgPlaceholderUrl.call(void 0, { title, siteName, aspect });
|
|
2030
2428
|
return placeholderUrl !== void 0 ? placeholderUrl : derived;
|
|
2031
2429
|
}
|
|
2032
2430
|
|
|
@@ -2089,7 +2487,7 @@ function BlogCard({
|
|
|
2089
2487
|
day: "numeric",
|
|
2090
2488
|
timeZone: "UTC"
|
|
2091
2489
|
}) : "";
|
|
2092
|
-
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]);
|
|
2093
2491
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2094
2492
|
"a",
|
|
2095
2493
|
{
|
|
@@ -2307,7 +2705,7 @@ function CaseStudyCard({
|
|
|
2307
2705
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2308
2706
|
{
|
|
2309
2707
|
src: coverImage,
|
|
2310
|
-
alt: `${_optionalChain([study, 'access',
|
|
2708
|
+
alt: `${_optionalChain([study, 'access', _49 => _49.msp, 'optionalAccess', _50 => _50.name]) || study.title} cover`,
|
|
2311
2709
|
className: "object-contain",
|
|
2312
2710
|
fill: true,
|
|
2313
2711
|
sizes: "56px",
|
|
@@ -2317,7 +2715,7 @@ function CaseStudyCard({
|
|
|
2317
2715
|
) : null }),
|
|
2318
2716
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2319
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 }) }),
|
|
2320
|
-
/* @__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" }) }),
|
|
2321
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 }) })
|
|
2322
2720
|
] })
|
|
2323
2721
|
] });
|
|
@@ -2332,13 +2730,13 @@ function CaseStudyCard({
|
|
|
2332
2730
|
typeLabel: showTypeBadge ? "Case Study" : void 0,
|
|
2333
2731
|
imageUrl: study.featured_image,
|
|
2334
2732
|
placeholderUrl,
|
|
2335
|
-
imageAlt: _optionalChain([study, 'access',
|
|
2733
|
+
imageAlt: _optionalChain([study, 'access', _55 => _55.msp, 'optionalAccess', _56 => _56.name]) || study.title,
|
|
2336
2734
|
title: study.title,
|
|
2337
2735
|
person: {
|
|
2338
|
-
name: _optionalChain([study, 'access',
|
|
2339
|
-
avatarUrl: _optionalChain([study, 'access',
|
|
2340
|
-
subtitle: _nullishCoalesce(_optionalChain([study, 'access',
|
|
2341
|
-
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))
|
|
2342
2740
|
},
|
|
2343
2741
|
className
|
|
2344
2742
|
}
|
|
@@ -2349,7 +2747,7 @@ function CaseStudyCard({
|
|
|
2349
2747
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2350
2748
|
{
|
|
2351
2749
|
src: coverImage,
|
|
2352
|
-
alt: _optionalChain([study, 'access',
|
|
2750
|
+
alt: _optionalChain([study, 'access', _65 => _65.msp, 'optionalAccess', _66 => _66.name]) || study.title,
|
|
2353
2751
|
className: "h-full w-full object-cover",
|
|
2354
2752
|
sizes: "(min-width: 1545px) 515px, (min-width: 1280px) 33vw, (min-width: 800px) 50vw, 100vw",
|
|
2355
2753
|
fill: true,
|
|
@@ -2360,18 +2758,18 @@ function CaseStudyCard({
|
|
|
2360
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 }) }),
|
|
2361
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: [
|
|
2362
2760
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2363
|
-
_optionalChain([study, 'access',
|
|
2761
|
+
_optionalChain([study, 'access', _67 => _67.user, 'optionalAccess', _68 => _68.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2364
2762
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2365
2763
|
{
|
|
2366
2764
|
src: study.user.avatar_url,
|
|
2367
|
-
alt: _optionalChain([study, 'access',
|
|
2765
|
+
alt: _optionalChain([study, 'access', _69 => _69.user, 'optionalAccess', _70 => _70.full_name]) || "User",
|
|
2368
2766
|
className: "h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover",
|
|
2369
2767
|
width: 48,
|
|
2370
2768
|
height: 48,
|
|
2371
2769
|
unoptimized: true
|
|
2372
2770
|
}
|
|
2373
|
-
) : /* @__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',
|
|
2374
|
-
_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,
|
|
2375
2773
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2376
2774
|
{
|
|
2377
2775
|
src: study.msp.icon_url,
|
|
@@ -2385,13 +2783,13 @@ function CaseStudyCard({
|
|
|
2385
2783
|
] }),
|
|
2386
2784
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
2387
2785
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: [
|
|
2388
|
-
_optionalChain([study, 'access',
|
|
2389
|
-
_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: [
|
|
2390
2788
|
" \u2022 ",
|
|
2391
2789
|
study.msp.name
|
|
2392
2790
|
] })
|
|
2393
2791
|
] }),
|
|
2394
|
-
/* @__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" })
|
|
2395
2793
|
] })
|
|
2396
2794
|
] }) })
|
|
2397
2795
|
] }) });
|
|
@@ -2473,7 +2871,7 @@ function CustomerInterviewCard({
|
|
|
2473
2871
|
] }),
|
|
2474
2872
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2475
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 }) }),
|
|
2476
|
-
/* @__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" }) }),
|
|
2477
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 }) })
|
|
2478
2876
|
] })
|
|
2479
2877
|
] });
|
|
@@ -2491,10 +2889,10 @@ function CustomerInterviewCard({
|
|
|
2491
2889
|
imageAlt: interview.title,
|
|
2492
2890
|
title: interview.title,
|
|
2493
2891
|
person: {
|
|
2494
|
-
name: _optionalChain([interview, 'access',
|
|
2495
|
-
avatarUrl: _optionalChain([interview, 'access',
|
|
2496
|
-
subtitle: _nullishCoalesce(_optionalChain([interview, 'access',
|
|
2497
|
-
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))
|
|
2498
2896
|
},
|
|
2499
2897
|
className
|
|
2500
2898
|
}
|
|
@@ -2520,18 +2918,18 @@ function CustomerInterviewCard({
|
|
|
2520
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 }) }),
|
|
2521
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: [
|
|
2522
2920
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2523
|
-
_optionalChain([interview, 'access',
|
|
2921
|
+
_optionalChain([interview, 'access', _93 => _93.user, 'optionalAccess', _94 => _94.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2524
2922
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2525
2923
|
{
|
|
2526
2924
|
src: interview.user.avatar_url,
|
|
2527
|
-
alt: _optionalChain([interview, 'access',
|
|
2925
|
+
alt: _optionalChain([interview, 'access', _95 => _95.user, 'optionalAccess', _96 => _96.full_name]) || "Customer",
|
|
2528
2926
|
className: "h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover",
|
|
2529
2927
|
width: 48,
|
|
2530
2928
|
height: 48,
|
|
2531
2929
|
unoptimized: true
|
|
2532
2930
|
}
|
|
2533
|
-
) : /* @__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',
|
|
2534
|
-
_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,
|
|
2535
2933
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2536
2934
|
{
|
|
2537
2935
|
src: interview.msp.icon_url,
|
|
@@ -2545,13 +2943,13 @@ function CustomerInterviewCard({
|
|
|
2545
2943
|
] }),
|
|
2546
2944
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
2547
2945
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: [
|
|
2548
|
-
_optionalChain([interview, 'access',
|
|
2549
|
-
_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: [
|
|
2550
2948
|
" \u2022 ",
|
|
2551
2949
|
interview.msp.name
|
|
2552
2950
|
] })
|
|
2553
2951
|
] }),
|
|
2554
|
-
/* @__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]) || " " })
|
|
2555
2953
|
] })
|
|
2556
2954
|
] }) })
|
|
2557
2955
|
] }) });
|
|
@@ -2561,7 +2959,7 @@ function CustomerInterviewCard({
|
|
|
2561
2959
|
function formatInvestorUpdatePeriod(start, end, options) {
|
|
2562
2960
|
if (!start && !end) return "";
|
|
2563
2961
|
const fmt = (d) => new Date(d).toLocaleDateString("en-US", {
|
|
2564
|
-
month: _optionalChain([options, 'optionalAccess',
|
|
2962
|
+
month: _optionalChain([options, 'optionalAccess', _107 => _107.monthFormat]) || "short",
|
|
2565
2963
|
year: "numeric",
|
|
2566
2964
|
// Pin to UTC so SSR (Vercel = UTC) and the client agree (React #418).
|
|
2567
2965
|
timeZone: "UTC"
|
|
@@ -2676,7 +3074,7 @@ function InvestorUpdateCard({
|
|
|
2676
3074
|
imageUrl: update.featured_image,
|
|
2677
3075
|
placeholderUrl,
|
|
2678
3076
|
title: update.title || `Update #${update.update_number || "?"}`,
|
|
2679
|
-
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",
|
|
2680
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: [
|
|
2681
3079
|
"#",
|
|
2682
3080
|
update.update_number
|
|
@@ -2885,7 +3283,7 @@ function OnboardingGuideCard({
|
|
|
2885
3283
|
const compactCover = coverImage || placeholderUrl || null;
|
|
2886
3284
|
const hasVideoCover = !guide.featured_image && !!guide.main_video_thumbnail;
|
|
2887
3285
|
const summary2 = stripMarkdownPreview(guide.video_summary || guide.content || "");
|
|
2888
|
-
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()]) || "";
|
|
2889
3287
|
const subtitleParts = [`Step ${guide.step_order}`, guide.section, author].filter(
|
|
2890
3288
|
(s) => typeof s === "string" && s.length > 0
|
|
2891
3289
|
);
|
|
@@ -3010,7 +3408,7 @@ function AvatarStack({
|
|
|
3010
3408
|
|
|
3011
3409
|
// src/components/chat/utils/agent-status-message.ts
|
|
3012
3410
|
function getStatusColorScheme(status) {
|
|
3013
|
-
const s = _optionalChain([status, 'optionalAccess',
|
|
3411
|
+
const s = _optionalChain([status, 'optionalAccess', _118 => _118.toLowerCase, 'call', _119 => _119()]) || "";
|
|
3014
3412
|
switch (status) {
|
|
3015
3413
|
case "completed":
|
|
3016
3414
|
case "success":
|
|
@@ -3252,7 +3650,7 @@ function RoadmapCard({
|
|
|
3252
3650
|
const compactHref = safeHref(_nullishCoalesce(href, () => ( null)));
|
|
3253
3651
|
const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
|
|
3254
3652
|
const hasFigma = !!item.figmaUrl;
|
|
3255
|
-
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access',
|
|
3653
|
+
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _120 => _120.screenshots, 'optionalAccess', _121 => _121.length]), () => ( 0))) > 0;
|
|
3256
3654
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
3257
3655
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
3258
3656
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -3271,7 +3669,7 @@ function RoadmapCard({
|
|
|
3271
3669
|
unoptimized: true,
|
|
3272
3670
|
className: "h-8 w-8 object-contain"
|
|
3273
3671
|
}
|
|
3274
|
-
) : /* @__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)]) || "??" })
|
|
3275
3673
|
}
|
|
3276
3674
|
),
|
|
3277
3675
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -3351,7 +3749,7 @@ function RoadmapCard({
|
|
|
3351
3749
|
unoptimized: true,
|
|
3352
3750
|
className: "object-contain p-1"
|
|
3353
3751
|
}
|
|
3354
|
-
) : /* @__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)]) || "??" }) }),
|
|
3355
3753
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3356
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 }) }),
|
|
3357
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: [
|
|
@@ -3452,10 +3850,10 @@ var MEDIA_TYPE = {
|
|
|
3452
3850
|
VIDEO: "video"
|
|
3453
3851
|
};
|
|
3454
3852
|
function isVideoMedia(media) {
|
|
3455
|
-
return _optionalChain([media, 'optionalAccess',
|
|
3853
|
+
return _optionalChain([media, 'optionalAccess', _128 => _128.media_type]) === MEDIA_TYPE.VIDEO;
|
|
3456
3854
|
}
|
|
3457
3855
|
function isImageMedia(media) {
|
|
3458
|
-
return _optionalChain([media, 'optionalAccess',
|
|
3856
|
+
return _optionalChain([media, 'optionalAccess', _129 => _129.media_type]) === MEDIA_TYPE.IMAGE;
|
|
3459
3857
|
}
|
|
3460
3858
|
function isPublishableMediaType(mediaType) {
|
|
3461
3859
|
return mediaType === MEDIA_TYPE.VIDEO || mediaType === MEDIA_TYPE.IMAGE;
|
|
@@ -3472,7 +3870,7 @@ function programItemToStripProfile(item) {
|
|
|
3472
3870
|
const fromAuthor = toStripProfile(item.author);
|
|
3473
3871
|
if (fromAuthor) return fromAuthor;
|
|
3474
3872
|
const host = Array.isArray(item.hosts) ? item.hosts[0] : null;
|
|
3475
|
-
if (!_optionalChain([host, 'optionalAccess',
|
|
3873
|
+
if (!_optionalChain([host, 'optionalAccess', _130 => _130.name])) return null;
|
|
3476
3874
|
return toStripProfile({ full_name: host.name, avatar_url: _nullishCoalesce(host.avatar_url, () => ( null)) });
|
|
3477
3875
|
}
|
|
3478
3876
|
function transformEventToProgram(event) {
|
|
@@ -3746,7 +4144,7 @@ function ProgramCard({
|
|
|
3746
4144
|
const itemDate2 = compactDate;
|
|
3747
4145
|
const compactCover = coverImage || placeholderUrl || null;
|
|
3748
4146
|
const typeMeta = compactTypeMeta();
|
|
3749
|
-
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access',
|
|
4147
|
+
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _131 => _131.labels, 'optionalAccess', _132 => _132.singular])].filter(
|
|
3750
4148
|
(s) => typeof s === "string" && s.length > 0
|
|
3751
4149
|
);
|
|
3752
4150
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunk23V5BSHDcjs.cn.call(void 0, COMPACT_CARD_OUTER, className), children: [
|
|
@@ -4135,5 +4533,30 @@ function buildListUrl(contentRefType, ids, base = "") {
|
|
|
4135
4533
|
|
|
4136
4534
|
|
|
4137
4535
|
|
|
4138
|
-
|
|
4139
|
-
|
|
4536
|
+
|
|
4537
|
+
|
|
4538
|
+
|
|
4539
|
+
|
|
4540
|
+
|
|
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
|