@flamingo-stack/openframe-frontend-core 0.0.626 → 0.0.627-2168.6177.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-63F2UQDW.cjs → chunk-2RWADKBR.cjs} +18 -18
- package/dist/{chunk-63F2UQDW.cjs.map → chunk-2RWADKBR.cjs.map} +1 -1
- package/dist/{chunk-X3LC6R37.js → chunk-32P6KUZP.js} +2 -2
- package/dist/{chunk-RVK3CL5S.js → chunk-3D45OAWL.js} +12 -12
- package/dist/{chunk-EHAYNUOL.cjs → chunk-4E7XCEV3.cjs} +77 -2
- package/dist/chunk-4E7XCEV3.cjs.map +1 -0
- package/dist/{chunk-L54LFB6V.cjs → chunk-5P3V6VFN.cjs} +15 -15
- package/dist/{chunk-L54LFB6V.cjs.map → chunk-5P3V6VFN.cjs.map} +1 -1
- package/dist/{chunk-2CCIF5QV.js → chunk-5YT6NGPV.js} +10 -8
- package/dist/{chunk-2CCIF5QV.js.map → chunk-5YT6NGPV.js.map} +1 -1
- package/dist/{chunk-U7TTQV4N.cjs → chunk-6I3KNDBF.cjs} +3 -3
- package/dist/{chunk-U7TTQV4N.cjs.map → chunk-6I3KNDBF.cjs.map} +1 -1
- package/dist/{chunk-S6WBBSII.js → chunk-76HB456V.js} +5 -5
- package/dist/{chunk-VOBOO7EF.cjs → chunk-76SF25HQ.cjs} +83 -83
- package/dist/{chunk-VOBOO7EF.cjs.map → chunk-76SF25HQ.cjs.map} +1 -1
- package/dist/{chunk-DLZFFGQ7.js → chunk-AGYKSJSE.js} +4 -4
- package/dist/{chunk-34GEH24Y.cjs → chunk-AONK75QT.cjs} +22 -20
- package/dist/chunk-AONK75QT.cjs.map +1 -0
- package/dist/{chunk-IJYP2DMW.js → chunk-B2DCZVUN.js} +8 -354
- package/dist/chunk-B2DCZVUN.js.map +1 -0
- package/dist/{chunk-QR2FJE2C.js → chunk-C6TNAYHO.js} +12 -12
- package/dist/{chunk-YQCA4ZEJ.js → chunk-CMUNJZWN.js} +2 -2
- package/dist/{chunk-F4TAUCHQ.js → chunk-CSP4GOQ2.js} +3 -3
- package/dist/{chunk-3LKJ6JWZ.cjs → chunk-DCBDNYYW.cjs} +34 -34
- package/dist/{chunk-3LKJ6JWZ.cjs.map → chunk-DCBDNYYW.cjs.map} +1 -1
- package/dist/{chunk-Z42VU7HF.cjs → chunk-DGYDHQWL.cjs} +49 -47
- package/dist/chunk-DGYDHQWL.cjs.map +1 -0
- package/dist/{chunk-QPQCQWAW.cjs → chunk-EAPER4P2.cjs} +28 -26
- package/dist/chunk-EAPER4P2.cjs.map +1 -0
- package/dist/{chunk-HTIDXF43.cjs → chunk-EH5BWSOS.cjs} +7 -7
- package/dist/{chunk-HTIDXF43.cjs.map → chunk-EH5BWSOS.cjs.map} +1 -1
- package/dist/{chunk-H7KQM3VI.js → chunk-FNT5JQDQ.js} +8 -8
- package/dist/{chunk-KK7YEVTQ.js → chunk-FRDSHK7F.js} +4 -4
- package/dist/{chunk-Q5XGBLT5.cjs → chunk-GESNG4HT.cjs} +509 -87
- package/dist/chunk-GESNG4HT.cjs.map +1 -0
- package/dist/{chunk-IZG3VYDV.js → chunk-GKCQIJE7.js} +4 -4
- package/dist/{chunk-E7YNDGRN.cjs → chunk-GNASINHO.cjs} +105 -105
- package/dist/{chunk-E7YNDGRN.cjs.map → chunk-GNASINHO.cjs.map} +1 -1
- package/dist/{chunk-5LIDR7HL.js → chunk-JRYS4VMV.js} +4 -79
- package/dist/{chunk-5LIDR7HL.js.map → chunk-JRYS4VMV.js.map} +1 -1
- package/dist/{chunk-QJ6BCSFQ.cjs → chunk-LAYQ3VUW.cjs} +5 -5
- package/dist/{chunk-QJ6BCSFQ.cjs.map → chunk-LAYQ3VUW.cjs.map} +1 -1
- package/dist/{chunk-ESSHEVZQ.cjs → chunk-MFHGLBCL.cjs} +38 -38
- package/dist/chunk-MFHGLBCL.cjs.map +1 -0
- package/dist/{chunk-S43SLJIN.cjs → chunk-MVPPH4EZ.cjs} +25 -25
- package/dist/{chunk-S43SLJIN.cjs.map → chunk-MVPPH4EZ.cjs.map} +1 -1
- package/dist/{chunk-WEDSYUSR.js → chunk-ONTFCKVK.js} +6 -6
- package/dist/{chunk-3POP5WWC.cjs → chunk-P32VEWOW.cjs} +6 -6
- package/dist/{chunk-3POP5WWC.cjs.map → chunk-P32VEWOW.cjs.map} +1 -1
- package/dist/{chunk-3IXDZI3R.cjs → chunk-P7UT2YSC.cjs} +3 -3
- package/dist/{chunk-3IXDZI3R.cjs.map → chunk-P7UT2YSC.cjs.map} +1 -1
- package/dist/{chunk-RGMUA4XB.js → chunk-PDFHLSPP.js} +7 -7
- package/dist/{chunk-MZWSJPDZ.js → chunk-QBX4BI5E.js} +16 -28
- package/dist/{chunk-MZWSJPDZ.js.map → chunk-QBX4BI5E.js.map} +1 -1
- package/dist/{chunk-JJUV7Z4L.cjs → chunk-QIVX7F3N.cjs} +27 -27
- package/dist/{chunk-JJUV7Z4L.cjs.map → chunk-QIVX7F3N.cjs.map} +1 -1
- package/dist/{chunk-P7KIFYZI.js → chunk-QPHOTZDX.js} +10 -8
- package/dist/{chunk-P7KIFYZI.js.map → chunk-QPHOTZDX.js.map} +1 -1
- package/dist/{chunk-2MMEPNSX.cjs → chunk-RAPPN6MN.cjs} +3 -3
- package/dist/{chunk-2MMEPNSX.cjs.map → chunk-RAPPN6MN.cjs.map} +1 -1
- package/dist/{chunk-BVCWBA2U.js → chunk-RD627HGV.js} +817 -395
- package/dist/chunk-RD627HGV.js.map +1 -0
- package/dist/{chunk-NLVBO3IR.js → chunk-RFM6NMF7.js} +10 -8
- package/dist/{chunk-NLVBO3IR.js.map → chunk-RFM6NMF7.js.map} +1 -1
- package/dist/{chunk-NZJNXGU2.cjs → chunk-S3WX4GNN.cjs} +280 -292
- package/dist/chunk-S3WX4GNN.cjs.map +1 -0
- package/dist/{chunk-RQQAPCOU.js → chunk-STRI4K3F.js} +3 -3
- package/dist/{chunk-LJ7KMQRM.cjs → chunk-T3HJAG5Y.cjs} +42 -42
- package/dist/{chunk-LJ7KMQRM.cjs.map → chunk-T3HJAG5Y.cjs.map} +1 -1
- package/dist/{chunk-DZ7CEES3.js → chunk-TIPGW4JM.js} +5 -5
- package/dist/{chunk-DZ7CEES3.js.map → chunk-TIPGW4JM.js.map} +1 -1
- package/dist/{chunk-FKBM6U43.js → chunk-USIRWQJ3.js} +76 -1
- package/dist/{chunk-FKBM6U43.js.map → chunk-USIRWQJ3.js.map} +1 -1
- package/dist/{chunk-CCWI3622.cjs → chunk-VOZZQ6HQ.cjs} +4 -4
- package/dist/{chunk-CCWI3622.cjs.map → chunk-VOZZQ6HQ.cjs.map} +1 -1
- package/dist/{chunk-MSVEZB5D.cjs → chunk-W54VLUS5.cjs} +279 -625
- package/dist/chunk-W54VLUS5.cjs.map +1 -0
- package/dist/{chunk-F2KBCLUG.js → chunk-X5NN4NJM.js} +2 -2
- package/dist/{chunk-CPO5KPW6.cjs → chunk-XDZIHPF2.cjs} +9 -9
- package/dist/{chunk-CPO5KPW6.cjs.map → chunk-XDZIHPF2.cjs.map} +1 -1
- package/dist/{chunk-ZIEYC6ZB.js → chunk-YDZ5S3Z2.js} +4 -4
- package/dist/{chunk-YXWGSDK4.cjs → chunk-ZI27ALYX.cjs} +5 -80
- package/dist/chunk-ZI27ALYX.cjs.map +1 -0
- package/dist/{chunk-BVQEU5JB.js → chunk-ZOMGXH7C.js} +2 -2
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/case-studies/index.js +8 -8
- package/dist/components/chat/entity-cards/ai-prompt-card.d.ts +2 -1
- package/dist/components/chat/entity-cards/ai-prompt-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/employee-entry-card.d.ts +3 -3
- package/dist/components/chat/entity-cards/employee-entry-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/entity-author-card.d.ts +8 -6
- package/dist/components/chat/entity-cards/entity-author-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/chat/index.js +4 -4
- package/dist/components/contact/index.cjs +9 -9
- package/dist/components/contact/index.js +8 -8
- package/dist/components/docs/index.cjs +12 -12
- package/dist/components/docs/index.js +11 -11
- package/dist/components/embeds/index.cjs +9 -9
- package/dist/components/embeds/index.js +8 -8
- package/dist/components/faq/index.cjs +10 -10
- package/dist/components/faq/index.js +9 -9
- package/dist/components/features/index.cjs +8 -8
- package/dist/components/features/index.js +7 -7
- package/dist/components/help-center-pages/index.cjs +31 -31
- package/dist/components/help-center-pages/index.js +22 -22
- package/dist/components/index.cjs +75 -69
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +30 -24
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +49 -49
- package/dist/components/meeting-scheduler/index.js +9 -9
- package/dist/components/navigation/index.cjs +11 -11
- package/dist/components/navigation/index.js +10 -10
- package/dist/components/onboarding-guides/index.cjs +12 -12
- package/dist/components/onboarding-guides/index.js +11 -11
- package/dist/components/related-content/card-registry.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/related-content/index.js +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/tickets/index.js +12 -12
- package/dist/components/ui/color-preset-select.d.ts +4 -5
- package/dist/components/ui/color-preset-select.d.ts.map +1 -1
- package/dist/components/ui/department-badge.d.ts +21 -0
- package/dist/components/ui/department-badge.d.ts.map +1 -0
- package/dist/components/ui/index.cjs +14 -8
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +13 -7
- package/dist/components/ui/palette-badge.d.ts +18 -0
- package/dist/components/ui/palette-badge.d.ts.map +1 -0
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/index.js +4 -4
- package/dist/index.cjs +28 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +50 -40
- package/dist/index.js.map +1 -1
- package/dist/types/department.d.ts +4 -0
- package/dist/types/department.d.ts.map +1 -1
- package/dist/utils/color-presets.d.ts +24 -0
- package/dist/utils/color-presets.d.ts.map +1 -0
- package/dist/utils/index.cjs +32 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +30 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/ai-prompt-card.tsx +7 -4
- package/src/components/chat/entity-cards/employee-entry-card.tsx +21 -24
- package/src/components/chat/entity-cards/entity-author-card.tsx +10 -4
- package/src/components/related-content/card-registry.tsx +3 -1
- package/src/components/ui/.department-badge.md +2 -0
- package/src/components/ui/.palette-badge.md +2 -0
- package/src/components/ui/__tests__/department-badge.test.tsx +40 -0
- package/src/components/ui/color-preset-select.tsx +5 -21
- package/src/components/ui/department-badge.tsx +35 -0
- package/src/components/ui/index.ts +2 -0
- package/src/components/ui/palette-badge.tsx +35 -0
- package/src/types/department.ts +4 -0
- package/src/utils/.color-presets.md +2 -0
- package/src/utils/color-presets.ts +48 -0
- package/src/utils/index.ts +1 -0
- package/dist/chunk-34GEH24Y.cjs.map +0 -1
- package/dist/chunk-BVCWBA2U.js.map +0 -1
- package/dist/chunk-EHAYNUOL.cjs.map +0 -1
- package/dist/chunk-ESSHEVZQ.cjs.map +0 -1
- package/dist/chunk-IJYP2DMW.js.map +0 -1
- package/dist/chunk-MSVEZB5D.cjs.map +0 -1
- package/dist/chunk-NZJNXGU2.cjs.map +0 -1
- package/dist/chunk-Q5XGBLT5.cjs.map +0 -1
- package/dist/chunk-QPQCQWAW.cjs.map +0 -1
- package/dist/chunk-YXWGSDK4.cjs.map +0 -1
- package/dist/chunk-Z42VU7HF.cjs.map +0 -1
- /package/dist/{chunk-X3LC6R37.js.map → chunk-32P6KUZP.js.map} +0 -0
- /package/dist/{chunk-RVK3CL5S.js.map → chunk-3D45OAWL.js.map} +0 -0
- /package/dist/{chunk-S6WBBSII.js.map → chunk-76HB456V.js.map} +0 -0
- /package/dist/{chunk-DLZFFGQ7.js.map → chunk-AGYKSJSE.js.map} +0 -0
- /package/dist/{chunk-QR2FJE2C.js.map → chunk-C6TNAYHO.js.map} +0 -0
- /package/dist/{chunk-YQCA4ZEJ.js.map → chunk-CMUNJZWN.js.map} +0 -0
- /package/dist/{chunk-F4TAUCHQ.js.map → chunk-CSP4GOQ2.js.map} +0 -0
- /package/dist/{chunk-H7KQM3VI.js.map → chunk-FNT5JQDQ.js.map} +0 -0
- /package/dist/{chunk-KK7YEVTQ.js.map → chunk-FRDSHK7F.js.map} +0 -0
- /package/dist/{chunk-IZG3VYDV.js.map → chunk-GKCQIJE7.js.map} +0 -0
- /package/dist/{chunk-WEDSYUSR.js.map → chunk-ONTFCKVK.js.map} +0 -0
- /package/dist/{chunk-RGMUA4XB.js.map → chunk-PDFHLSPP.js.map} +0 -0
- /package/dist/{chunk-RQQAPCOU.js.map → chunk-STRI4K3F.js.map} +0 -0
- /package/dist/{chunk-F2KBCLUG.js.map → chunk-X5NN4NJM.js.map} +0 -0
- /package/dist/{chunk-ZIEYC6ZB.js.map → chunk-YDZ5S3Z2.js.map} +0 -0
- /package/dist/{chunk-BVQEU5JB.js.map → chunk-ZOMGXH7C.js.map} +0 -0
|
@@ -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
|
{
|
|
@@ -1300,7 +1695,7 @@ function AdminContentCard({
|
|
|
1300
1695
|
const [loadedUrl, setLoadedUrl] = _react.useState.call(void 0, null);
|
|
1301
1696
|
const displayUrl = imageUrl && !imageError ? imageUrl : placeholderUrl;
|
|
1302
1697
|
const imageLoaded = Boolean(displayUrl) && loadedUrl === displayUrl;
|
|
1303
|
-
const imageBgColor =
|
|
1698
|
+
const imageBgColor = _chunk4E7XCEV3cjs.useImageEdgeColor.call(void 0, displayUrl || null, "transparent");
|
|
1304
1699
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1305
1700
|
"article",
|
|
1306
1701
|
{
|
|
@@ -1339,8 +1734,8 @@ function AdminContentCard({
|
|
|
1339
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 }),
|
|
1340
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 }),
|
|
1341
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 }),
|
|
1342
|
-
(Number(_optionalChain([platforms, 'optionalAccess',
|
|
1343
|
-
_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,
|
|
1344
1739
|
PlatformBadge,
|
|
1345
1740
|
{
|
|
1346
1741
|
platform: { id: p.id || p.platform_id || "", name: p.name, display_name: p.display_name || p.name },
|
|
@@ -1375,19 +1770,19 @@ function getProxiedImageUrl2(imageUrl) {
|
|
|
1375
1770
|
|
|
1376
1771
|
// src/components/chat/entity-cards/employee-entry-card.tsx
|
|
1377
1772
|
|
|
1378
|
-
var
|
|
1379
|
-
published: "
|
|
1380
|
-
draft: "
|
|
1381
|
-
archived: "
|
|
1773
|
+
var STATUS_BADGE_SCHEME = {
|
|
1774
|
+
published: "success",
|
|
1775
|
+
draft: "warning",
|
|
1776
|
+
archived: "default",
|
|
1382
1777
|
// Design-doc lifecycle (product-hub) — same ODS pairs, no new palette.
|
|
1383
|
-
in_review: "
|
|
1384
|
-
approved: "
|
|
1385
|
-
building: "
|
|
1386
|
-
shipped: "
|
|
1387
|
-
abandoned: "
|
|
1778
|
+
in_review: "warning",
|
|
1779
|
+
approved: "success",
|
|
1780
|
+
building: "success",
|
|
1781
|
+
shipped: "success",
|
|
1782
|
+
abandoned: "default"
|
|
1388
1783
|
};
|
|
1389
1784
|
function EmployeeEntryBadge({ children }) {
|
|
1390
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1785
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StatusBadge, { text: children, colorScheme: "default", variant: "button", singleLine: true });
|
|
1391
1786
|
}
|
|
1392
1787
|
function EmployeeEntryCard({
|
|
1393
1788
|
entry,
|
|
@@ -1408,17 +1803,19 @@ function EmployeeEntryCard({
|
|
|
1408
1803
|
summary: (_nullishCoalesce(entry.summary, () => ( ""))).slice(0, 140) || "No description",
|
|
1409
1804
|
badges: entry.status || extraBadges ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1410
1805
|
entry.status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1411
|
-
|
|
1806
|
+
StatusBadge,
|
|
1412
1807
|
{
|
|
1413
|
-
|
|
1414
|
-
|
|
1808
|
+
text: entry.status,
|
|
1809
|
+
colorScheme: _nullishCoalesce(STATUS_BADGE_SCHEME[entry.status], () => ( "default")),
|
|
1810
|
+
variant: "button",
|
|
1811
|
+
singleLine: true
|
|
1415
1812
|
}
|
|
1416
1813
|
) : null,
|
|
1417
1814
|
extraBadges
|
|
1418
1815
|
] }) : null,
|
|
1419
1816
|
meta: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1420
1817
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-2", children: [
|
|
1421
|
-
_optionalChain([entry, 'access',
|
|
1818
|
+
_optionalChain([entry, 'access', _21 => _21.author, 'optionalAccess', _22 => _22.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1422
1819
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
1423
1820
|
{
|
|
1424
1821
|
src: _nullishCoalesce(getProxiedImageUrl2(entry.author.avatar_url), () => ( entry.author.avatar_url)),
|
|
@@ -1429,7 +1826,7 @@ function EmployeeEntryCard({
|
|
|
1429
1826
|
unoptimized: true
|
|
1430
1827
|
}
|
|
1431
1828
|
) : null,
|
|
1432
|
-
/* @__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]), () => ( "")) })
|
|
1433
1830
|
] }),
|
|
1434
1831
|
dateLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: dateLabel }) : null
|
|
1435
1832
|
] }),
|
|
@@ -1502,7 +1899,7 @@ var HowIWorkCardSkeleton = EmployeeEntryCardSkeleton;
|
|
|
1502
1899
|
// src/components/chat/entity-cards/ai-prompt-card.tsx
|
|
1503
1900
|
|
|
1504
1901
|
function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }) {
|
|
1505
|
-
const
|
|
1902
|
+
const departmentName = _optionalChain([entry, 'access', _25 => _25.department, 'optionalAccess', _26 => _26.name, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]);
|
|
1506
1903
|
const steps = typeof entry.step_count === "number" ? entry.step_count : 0;
|
|
1507
1904
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1508
1905
|
EmployeeEntryCard,
|
|
@@ -1510,7 +1907,7 @@ function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }
|
|
|
1510
1907
|
entry,
|
|
1511
1908
|
dateLabel: entry.published_at ? formatDateUTC(entry.published_at, { fallback: "" }) || null : null,
|
|
1512
1909
|
extraBadges: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1513
|
-
|
|
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,
|
|
1514
1911
|
steps > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: `${steps} steps` }) : null
|
|
1515
1912
|
] }),
|
|
1516
1913
|
untitledLabel: "Untitled prompt",
|
|
@@ -1526,7 +1923,7 @@ var AiPromptCardSkeleton = EmployeeEntryCardSkeleton;
|
|
|
1526
1923
|
// src/components/features/video-bites-shared.ts
|
|
1527
1924
|
var DEFAULT_VIDEO_BITES_TITLE = "Key Moments";
|
|
1528
1925
|
function toStripProfile(p, fallbackSubtitle) {
|
|
1529
|
-
if (!_optionalChain([p, 'optionalAccess',
|
|
1926
|
+
if (!_optionalChain([p, 'optionalAccess', _31 => _31.full_name])) return null;
|
|
1530
1927
|
return {
|
|
1531
1928
|
name: p.full_name,
|
|
1532
1929
|
avatarUrl: _nullishCoalesce(p.avatar_url, () => ( null)),
|
|
@@ -1568,7 +1965,7 @@ function ProductReleaseCard({
|
|
|
1568
1965
|
changelogCounts
|
|
1569
1966
|
}) {
|
|
1570
1967
|
if (size === "lg") {
|
|
1571
|
-
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)));
|
|
1572
1969
|
const valueCells = [
|
|
1573
1970
|
releaseType && releaseTypeBadgeColor ? {
|
|
1574
1971
|
value: releaseType.toUpperCase(),
|
|
@@ -1587,7 +1984,7 @@ function ProductReleaseCard({
|
|
|
1587
1984
|
uppercase: false
|
|
1588
1985
|
} : { value: "\u2014", label: "Released", uppercase: false }
|
|
1589
1986
|
];
|
|
1590
|
-
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" };
|
|
1591
1988
|
const gridColsClass = "md:grid-cols-4";
|
|
1592
1989
|
const dividerClass = "border-b md:border-b-0 md:border-r border-ods-border";
|
|
1593
1990
|
const frameClass = _chunk23V5BSHDcjs.cn.call(void 0,
|
|
@@ -1961,10 +2358,10 @@ function buildProductReleaseCardProps(item) {
|
|
|
1961
2358
|
job_title: release.author.job_title
|
|
1962
2359
|
} : void 0,
|
|
1963
2360
|
changelogCounts: {
|
|
1964
|
-
features: _nullishCoalesce(_optionalChain([release, 'access',
|
|
1965
|
-
fixes: _nullishCoalesce(_optionalChain([release, 'access',
|
|
1966
|
-
improvements: _nullishCoalesce(_optionalChain([release, 'access',
|
|
1967
|
-
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))
|
|
1968
2365
|
}
|
|
1969
2366
|
};
|
|
1970
2367
|
}
|
|
@@ -1998,7 +2395,7 @@ function safeHref(url) {
|
|
|
1998
2395
|
if (!SAFE_URL_SCHEMES.includes(parsed.protocol)) return null;
|
|
1999
2396
|
if ((parsed.protocol === "https:" || parsed.protocol === "http:") && !parsed.hostname) return null;
|
|
2000
2397
|
return trimmed;
|
|
2001
|
-
} catch (
|
|
2398
|
+
} catch (e6) {
|
|
2002
2399
|
return null;
|
|
2003
2400
|
}
|
|
2004
2401
|
}
|
|
@@ -2027,7 +2424,7 @@ function useEntityCardPlaceholder({
|
|
|
2027
2424
|
siteName = "",
|
|
2028
2425
|
aspect = "wide"
|
|
2029
2426
|
}) {
|
|
2030
|
-
const derived =
|
|
2427
|
+
const derived = _chunk4E7XCEV3cjs.useOgPlaceholderUrl.call(void 0, { title, siteName, aspect });
|
|
2031
2428
|
return placeholderUrl !== void 0 ? placeholderUrl : derived;
|
|
2032
2429
|
}
|
|
2033
2430
|
|
|
@@ -2090,7 +2487,7 @@ function BlogCard({
|
|
|
2090
2487
|
day: "numeric",
|
|
2091
2488
|
timeZone: "UTC"
|
|
2092
2489
|
}) : "";
|
|
2093
|
-
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]);
|
|
2094
2491
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2095
2492
|
"a",
|
|
2096
2493
|
{
|
|
@@ -2308,7 +2705,7 @@ function CaseStudyCard({
|
|
|
2308
2705
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2309
2706
|
{
|
|
2310
2707
|
src: coverImage,
|
|
2311
|
-
alt: `${_optionalChain([study, 'access',
|
|
2708
|
+
alt: `${_optionalChain([study, 'access', _49 => _49.msp, 'optionalAccess', _50 => _50.name]) || study.title} cover`,
|
|
2312
2709
|
className: "object-contain",
|
|
2313
2710
|
fill: true,
|
|
2314
2711
|
sizes: "56px",
|
|
@@ -2318,7 +2715,7 @@ function CaseStudyCard({
|
|
|
2318
2715
|
) : null }),
|
|
2319
2716
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2320
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 }) }),
|
|
2321
|
-
/* @__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" }) }),
|
|
2322
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 }) })
|
|
2323
2720
|
] })
|
|
2324
2721
|
] });
|
|
@@ -2333,13 +2730,13 @@ function CaseStudyCard({
|
|
|
2333
2730
|
typeLabel: showTypeBadge ? "Case Study" : void 0,
|
|
2334
2731
|
imageUrl: study.featured_image,
|
|
2335
2732
|
placeholderUrl,
|
|
2336
|
-
imageAlt: _optionalChain([study, 'access',
|
|
2733
|
+
imageAlt: _optionalChain([study, 'access', _55 => _55.msp, 'optionalAccess', _56 => _56.name]) || study.title,
|
|
2337
2734
|
title: study.title,
|
|
2338
2735
|
person: {
|
|
2339
|
-
name: _optionalChain([study, 'access',
|
|
2340
|
-
avatarUrl: _optionalChain([study, 'access',
|
|
2341
|
-
subtitle: _nullishCoalesce(_optionalChain([study, 'access',
|
|
2342
|
-
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))
|
|
2343
2740
|
},
|
|
2344
2741
|
className
|
|
2345
2742
|
}
|
|
@@ -2350,7 +2747,7 @@ function CaseStudyCard({
|
|
|
2350
2747
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2351
2748
|
{
|
|
2352
2749
|
src: coverImage,
|
|
2353
|
-
alt: _optionalChain([study, 'access',
|
|
2750
|
+
alt: _optionalChain([study, 'access', _65 => _65.msp, 'optionalAccess', _66 => _66.name]) || study.title,
|
|
2354
2751
|
className: "h-full w-full object-cover",
|
|
2355
2752
|
sizes: "(min-width: 1545px) 515px, (min-width: 1280px) 33vw, (min-width: 800px) 50vw, 100vw",
|
|
2356
2753
|
fill: true,
|
|
@@ -2361,18 +2758,18 @@ function CaseStudyCard({
|
|
|
2361
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 }) }),
|
|
2362
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: [
|
|
2363
2760
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2364
|
-
_optionalChain([study, 'access',
|
|
2761
|
+
_optionalChain([study, 'access', _67 => _67.user, 'optionalAccess', _68 => _68.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2365
2762
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2366
2763
|
{
|
|
2367
2764
|
src: study.user.avatar_url,
|
|
2368
|
-
alt: _optionalChain([study, 'access',
|
|
2765
|
+
alt: _optionalChain([study, 'access', _69 => _69.user, 'optionalAccess', _70 => _70.full_name]) || "User",
|
|
2369
2766
|
className: "h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover",
|
|
2370
2767
|
width: 48,
|
|
2371
2768
|
height: 48,
|
|
2372
2769
|
unoptimized: true
|
|
2373
2770
|
}
|
|
2374
|
-
) : /* @__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',
|
|
2375
|
-
_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,
|
|
2376
2773
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2377
2774
|
{
|
|
2378
2775
|
src: study.msp.icon_url,
|
|
@@ -2386,13 +2783,13 @@ function CaseStudyCard({
|
|
|
2386
2783
|
] }),
|
|
2387
2784
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
2388
2785
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: [
|
|
2389
|
-
_optionalChain([study, 'access',
|
|
2390
|
-
_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: [
|
|
2391
2788
|
" \u2022 ",
|
|
2392
2789
|
study.msp.name
|
|
2393
2790
|
] })
|
|
2394
2791
|
] }),
|
|
2395
|
-
/* @__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" })
|
|
2396
2793
|
] })
|
|
2397
2794
|
] }) })
|
|
2398
2795
|
] }) });
|
|
@@ -2474,7 +2871,7 @@ function CustomerInterviewCard({
|
|
|
2474
2871
|
] }),
|
|
2475
2872
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2476
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 }) }),
|
|
2477
|
-
/* @__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" }) }),
|
|
2478
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 }) })
|
|
2479
2876
|
] })
|
|
2480
2877
|
] });
|
|
@@ -2492,10 +2889,10 @@ function CustomerInterviewCard({
|
|
|
2492
2889
|
imageAlt: interview.title,
|
|
2493
2890
|
title: interview.title,
|
|
2494
2891
|
person: {
|
|
2495
|
-
name: _optionalChain([interview, 'access',
|
|
2496
|
-
avatarUrl: _optionalChain([interview, 'access',
|
|
2497
|
-
subtitle: _nullishCoalesce(_optionalChain([interview, 'access',
|
|
2498
|
-
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))
|
|
2499
2896
|
},
|
|
2500
2897
|
className
|
|
2501
2898
|
}
|
|
@@ -2521,18 +2918,18 @@ function CustomerInterviewCard({
|
|
|
2521
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 }) }),
|
|
2522
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: [
|
|
2523
2920
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2524
|
-
_optionalChain([interview, 'access',
|
|
2921
|
+
_optionalChain([interview, 'access', _93 => _93.user, 'optionalAccess', _94 => _94.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2525
2922
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2526
2923
|
{
|
|
2527
2924
|
src: interview.user.avatar_url,
|
|
2528
|
-
alt: _optionalChain([interview, 'access',
|
|
2925
|
+
alt: _optionalChain([interview, 'access', _95 => _95.user, 'optionalAccess', _96 => _96.full_name]) || "Customer",
|
|
2529
2926
|
className: "h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover",
|
|
2530
2927
|
width: 48,
|
|
2531
2928
|
height: 48,
|
|
2532
2929
|
unoptimized: true
|
|
2533
2930
|
}
|
|
2534
|
-
) : /* @__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',
|
|
2535
|
-
_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,
|
|
2536
2933
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2537
2934
|
{
|
|
2538
2935
|
src: interview.msp.icon_url,
|
|
@@ -2546,13 +2943,13 @@ function CustomerInterviewCard({
|
|
|
2546
2943
|
] }),
|
|
2547
2944
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
2548
2945
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: [
|
|
2549
|
-
_optionalChain([interview, 'access',
|
|
2550
|
-
_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: [
|
|
2551
2948
|
" \u2022 ",
|
|
2552
2949
|
interview.msp.name
|
|
2553
2950
|
] })
|
|
2554
2951
|
] }),
|
|
2555
|
-
/* @__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]) || " " })
|
|
2556
2953
|
] })
|
|
2557
2954
|
] }) })
|
|
2558
2955
|
] }) });
|
|
@@ -2562,7 +2959,7 @@ function CustomerInterviewCard({
|
|
|
2562
2959
|
function formatInvestorUpdatePeriod(start, end, options) {
|
|
2563
2960
|
if (!start && !end) return "";
|
|
2564
2961
|
const fmt = (d) => new Date(d).toLocaleDateString("en-US", {
|
|
2565
|
-
month: _optionalChain([options, 'optionalAccess',
|
|
2962
|
+
month: _optionalChain([options, 'optionalAccess', _107 => _107.monthFormat]) || "short",
|
|
2566
2963
|
year: "numeric",
|
|
2567
2964
|
// Pin to UTC so SSR (Vercel = UTC) and the client agree (React #418).
|
|
2568
2965
|
timeZone: "UTC"
|
|
@@ -2677,7 +3074,7 @@ function InvestorUpdateCard({
|
|
|
2677
3074
|
imageUrl: update.featured_image,
|
|
2678
3075
|
placeholderUrl,
|
|
2679
3076
|
title: update.title || `Update #${update.update_number || "?"}`,
|
|
2680
|
-
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",
|
|
2681
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: [
|
|
2682
3079
|
"#",
|
|
2683
3080
|
update.update_number
|
|
@@ -2886,7 +3283,7 @@ function OnboardingGuideCard({
|
|
|
2886
3283
|
const compactCover = coverImage || placeholderUrl || null;
|
|
2887
3284
|
const hasVideoCover = !guide.featured_image && !!guide.main_video_thumbnail;
|
|
2888
3285
|
const summary2 = stripMarkdownPreview(guide.video_summary || guide.content || "");
|
|
2889
|
-
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()]) || "";
|
|
2890
3287
|
const subtitleParts = [`Step ${guide.step_order}`, guide.section, author].filter(
|
|
2891
3288
|
(s) => typeof s === "string" && s.length > 0
|
|
2892
3289
|
);
|
|
@@ -3011,7 +3408,7 @@ function AvatarStack({
|
|
|
3011
3408
|
|
|
3012
3409
|
// src/components/chat/utils/agent-status-message.ts
|
|
3013
3410
|
function getStatusColorScheme(status) {
|
|
3014
|
-
const s = _optionalChain([status, 'optionalAccess',
|
|
3411
|
+
const s = _optionalChain([status, 'optionalAccess', _118 => _118.toLowerCase, 'call', _119 => _119()]) || "";
|
|
3015
3412
|
switch (status) {
|
|
3016
3413
|
case "completed":
|
|
3017
3414
|
case "success":
|
|
@@ -3253,7 +3650,7 @@ function RoadmapCard({
|
|
|
3253
3650
|
const compactHref = safeHref(_nullishCoalesce(href, () => ( null)));
|
|
3254
3651
|
const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
|
|
3255
3652
|
const hasFigma = !!item.figmaUrl;
|
|
3256
|
-
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access',
|
|
3653
|
+
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _120 => _120.screenshots, 'optionalAccess', _121 => _121.length]), () => ( 0))) > 0;
|
|
3257
3654
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
3258
3655
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
3259
3656
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -3272,7 +3669,7 @@ function RoadmapCard({
|
|
|
3272
3669
|
unoptimized: true,
|
|
3273
3670
|
className: "h-8 w-8 object-contain"
|
|
3274
3671
|
}
|
|
3275
|
-
) : /* @__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)]) || "??" })
|
|
3276
3673
|
}
|
|
3277
3674
|
),
|
|
3278
3675
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -3352,7 +3749,7 @@ function RoadmapCard({
|
|
|
3352
3749
|
unoptimized: true,
|
|
3353
3750
|
className: "object-contain p-1"
|
|
3354
3751
|
}
|
|
3355
|
-
) : /* @__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)]) || "??" }) }),
|
|
3356
3753
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3357
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 }) }),
|
|
3358
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: [
|
|
@@ -3453,10 +3850,10 @@ var MEDIA_TYPE = {
|
|
|
3453
3850
|
VIDEO: "video"
|
|
3454
3851
|
};
|
|
3455
3852
|
function isVideoMedia(media) {
|
|
3456
|
-
return _optionalChain([media, 'optionalAccess',
|
|
3853
|
+
return _optionalChain([media, 'optionalAccess', _128 => _128.media_type]) === MEDIA_TYPE.VIDEO;
|
|
3457
3854
|
}
|
|
3458
3855
|
function isImageMedia(media) {
|
|
3459
|
-
return _optionalChain([media, 'optionalAccess',
|
|
3856
|
+
return _optionalChain([media, 'optionalAccess', _129 => _129.media_type]) === MEDIA_TYPE.IMAGE;
|
|
3460
3857
|
}
|
|
3461
3858
|
function isPublishableMediaType(mediaType) {
|
|
3462
3859
|
return mediaType === MEDIA_TYPE.VIDEO || mediaType === MEDIA_TYPE.IMAGE;
|
|
@@ -3473,7 +3870,7 @@ function programItemToStripProfile(item) {
|
|
|
3473
3870
|
const fromAuthor = toStripProfile(item.author);
|
|
3474
3871
|
if (fromAuthor) return fromAuthor;
|
|
3475
3872
|
const host = Array.isArray(item.hosts) ? item.hosts[0] : null;
|
|
3476
|
-
if (!_optionalChain([host, 'optionalAccess',
|
|
3873
|
+
if (!_optionalChain([host, 'optionalAccess', _130 => _130.name])) return null;
|
|
3477
3874
|
return toStripProfile({ full_name: host.name, avatar_url: _nullishCoalesce(host.avatar_url, () => ( null)) });
|
|
3478
3875
|
}
|
|
3479
3876
|
function transformEventToProgram(event) {
|
|
@@ -3747,7 +4144,7 @@ function ProgramCard({
|
|
|
3747
4144
|
const itemDate2 = compactDate;
|
|
3748
4145
|
const compactCover = coverImage || placeholderUrl || null;
|
|
3749
4146
|
const typeMeta = compactTypeMeta();
|
|
3750
|
-
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access',
|
|
4147
|
+
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _131 => _131.labels, 'optionalAccess', _132 => _132.singular])].filter(
|
|
3751
4148
|
(s) => typeof s === "string" && s.length > 0
|
|
3752
4149
|
);
|
|
3753
4150
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunk23V5BSHDcjs.cn.call(void 0, COMPACT_CARD_OUTER, className), children: [
|
|
@@ -4136,5 +4533,30 @@ function buildListUrl(contentRefType, ids, base = "") {
|
|
|
4136
4533
|
|
|
4137
4534
|
|
|
4138
4535
|
|
|
4139
|
-
|
|
4140
|
-
|
|
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-GESNG4HT.cjs.map
|