@flamingo-stack/openframe-frontend-core 0.0.642 → 0.0.643-snapshot.20260916153353
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/chat-protocol/index.cjs +6 -3
- package/dist/chat-protocol/index.cjs.map +1 -1
- package/dist/chat-protocol/index.js +6 -3
- package/dist/chat-protocol/index.js.map +1 -1
- package/dist/chat-protocol/source-metadata.d.ts +16 -1
- package/dist/chat-protocol/source-metadata.d.ts.map +1 -1
- package/dist/{chunk-YM6L3WM5.js → chunk-27RD5XTP.js} +3 -3
- package/dist/{chunk-POPL3W2S.js → chunk-3DGRXC74.js} +3 -3
- package/dist/{chunk-2Z5FPHOL.cjs → chunk-3UBT2OIX.cjs} +20 -20
- package/dist/{chunk-2Z5FPHOL.cjs.map → chunk-3UBT2OIX.cjs.map} +1 -1
- package/dist/{chunk-6GY6DFIH.js → chunk-4WVWRFGP.js} +6 -6
- package/dist/{chunk-OYI3K5R6.cjs → chunk-65EVGKFV.cjs} +8 -14
- package/dist/chunk-65EVGKFV.cjs.map +1 -0
- package/dist/{chunk-6NHLZORM.js → chunk-7Q5XXPCB.js} +6 -6
- package/dist/{chunk-2NRLRRMR.cjs → chunk-7R2DIGG4.cjs} +319 -293
- package/dist/chunk-7R2DIGG4.cjs.map +1 -0
- package/dist/{chunk-3LXJEXPH.js → chunk-B3Z3RJRW.js} +2 -2
- package/dist/{chunk-N5C5P2LM.cjs → chunk-B5IFXCRF.cjs} +22 -22
- package/dist/{chunk-N5C5P2LM.cjs.map → chunk-B5IFXCRF.cjs.map} +1 -1
- package/dist/{chunk-YRSRP4U3.cjs → chunk-C5Y5T6GC.cjs} +15 -15
- package/dist/{chunk-YRSRP4U3.cjs.map → chunk-C5Y5T6GC.cjs.map} +1 -1
- package/dist/{chunk-VHB3I6F3.cjs → chunk-CBXZSTAG.cjs} +419 -445
- package/dist/chunk-CBXZSTAG.cjs.map +1 -0
- package/dist/{chunk-VKPTN5MT.cjs → chunk-DCCY54LU.cjs} +6 -6
- package/dist/{chunk-VKPTN5MT.cjs.map → chunk-DCCY54LU.cjs.map} +1 -1
- package/dist/{chunk-WL3PNUNY.cjs → chunk-FAD5WURS.cjs} +81 -81
- package/dist/{chunk-WL3PNUNY.cjs.map → chunk-FAD5WURS.cjs.map} +1 -1
- package/dist/{chunk-3IPL6G7S.js → chunk-FOSIR4QF.js} +260 -234
- package/dist/chunk-FOSIR4QF.js.map +1 -0
- package/dist/{chunk-MJ424FEC.js → chunk-HOGOQA2X.js} +2 -2
- package/dist/{chunk-SDGMLXIP.js → chunk-HPWLIYRL.js} +12 -25
- package/dist/chunk-HPWLIYRL.js.map +1 -0
- package/dist/{chunk-3I6XHQUD.js → chunk-I57XLISO.js} +54 -80
- package/dist/chunk-I57XLISO.js.map +1 -0
- package/dist/{chunk-FRCUUK5X.cjs → chunk-IIXB5REN.cjs} +3 -3
- package/dist/{chunk-FRCUUK5X.cjs.map → chunk-IIXB5REN.cjs.map} +1 -1
- package/dist/{chunk-HW7BLVQH.js → chunk-IXD6SHQ6.js} +4 -4
- package/dist/{chunk-XFLJC2WR.cjs → chunk-LZYPSDFE.cjs} +59 -59
- package/dist/{chunk-XFLJC2WR.cjs.map → chunk-LZYPSDFE.cjs.map} +1 -1
- package/dist/{chunk-QY25ZP2V.cjs → chunk-MCQAOIUK.cjs} +28 -28
- package/dist/{chunk-QY25ZP2V.cjs.map → chunk-MCQAOIUK.cjs.map} +1 -1
- package/dist/{chunk-S254VEDE.js → chunk-MRIOYSXH.js} +3 -3
- package/dist/{chunk-OOOOC5O5.cjs → chunk-OMSUWB6A.cjs} +29 -29
- package/dist/{chunk-OOOOC5O5.cjs.map → chunk-OMSUWB6A.cjs.map} +1 -1
- package/dist/{chunk-GEIHTN6J.cjs → chunk-OVXYX47B.cjs} +10 -10
- package/dist/{chunk-GEIHTN6J.cjs.map → chunk-OVXYX47B.cjs.map} +1 -1
- package/dist/{chunk-XWGHLSAL.js → chunk-PFV4DAX5.js} +4 -4
- package/dist/{chunk-O4LL7RQV.cjs → chunk-RB6L5EGM.cjs} +208 -221
- package/dist/chunk-RB6L5EGM.cjs.map +1 -0
- package/dist/{chunk-M4PJVFBF.cjs → chunk-RFFF2EYD.cjs} +11 -11
- package/dist/{chunk-M4PJVFBF.cjs.map → chunk-RFFF2EYD.cjs.map} +1 -1
- package/dist/{chunk-UFBWNVZZ.js → chunk-RNMGKAS6.js} +7 -7
- package/dist/{chunk-SE6YRE3R.cjs → chunk-RWURXICE.cjs} +32 -32
- package/dist/{chunk-SE6YRE3R.cjs.map → chunk-RWURXICE.cjs.map} +1 -1
- package/dist/{chunk-ZAIYD3MZ.js → chunk-S2KMNFFN.js} +3 -3
- package/dist/{chunk-ZGPJ3NVF.js → chunk-SKABQX44.js} +3 -3
- package/dist/{chunk-YE3TFNW6.cjs → chunk-TGUA3C4U.cjs} +5 -5
- package/dist/{chunk-YE3TFNW6.cjs.map → chunk-TGUA3C4U.cjs.map} +1 -1
- package/dist/{chunk-ORFJVMAL.js → chunk-TTVOBWAH.js} +5 -11
- package/dist/chunk-TTVOBWAH.js.map +1 -0
- package/dist/{chunk-M7QROULE.js → chunk-UEXIMEVU.js} +5 -5
- package/dist/{chunk-EW3MSJOE.cjs → chunk-UKV52KAP.cjs} +33 -33
- package/dist/{chunk-EW3MSJOE.cjs.map → chunk-UKV52KAP.cjs.map} +1 -1
- package/dist/{chunk-J4RZVLLQ.js → chunk-VE52MSYC.js} +5 -5
- package/dist/components/case-studies/index.cjs +16 -16
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/chat-sidebar.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/blog-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +3 -9
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +2 -8
- package/dist/components/chat/types/entities/investor-update.d.ts.map +1 -1
- package/dist/components/chat/types/entities/program-types.d.ts +8 -18
- package/dist/components/chat/types/entities/program-types.d.ts.map +1 -1
- package/dist/components/chat/utils/compact-card-classes.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/docs/index.js +7 -7
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/features/index.js +3 -3
- package/dist/components/help-center-pages/index.cjs +24 -24
- package/dist/components/help-center-pages/index.js +15 -15
- package/dist/components/index.cjs +53 -59
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +15 -21
- package/dist/components/index.js.map +1 -1
- package/dist/components/logs-list.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/confirmation.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/directory.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +47 -72
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +16 -41
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/dist/components/meeting-scheduler/slot-picker.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/navigation/index.js +6 -6
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/shared/article-author-byline.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/tickets/index.js +7 -7
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/device-card.d.ts.map +1 -1
- package/dist/components/ui/drawer.d.ts +19 -5
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +4 -10
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +3 -9
- package/dist/components/ui/table/table-timestamp-cell.d.ts.map +1 -1
- package/dist/index.cjs +29 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +35 -23
- package/dist/index.js.map +1 -1
- package/dist/utils/date-formatters.d.ts +7 -2
- package/dist/utils/date-formatters.d.ts.map +1 -1
- package/dist/utils/date-utils.d.ts +4 -1
- package/dist/utils/date-utils.d.ts.map +1 -1
- package/dist/utils/format-date.d.ts.map +1 -1
- package/dist/utils/format.d.ts +155 -11
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/index.cjs +223 -109
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +4 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +211 -110
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/program-instant.d.ts +145 -0
- package/dist/utils/program-instant.d.ts.map +1 -0
- package/dist/utils/program-meta-renderers.d.ts +3 -0
- package/dist/utils/program-meta-renderers.d.ts.map +1 -0
- package/dist/utils/url-safety.d.ts +33 -0
- package/dist/utils/url-safety.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/chat-protocol/__tests__/source-metadata.test.ts +70 -3
- package/src/chat-protocol/source-metadata.ts +22 -6
- package/src/components/chat/chat-sidebar.tsx +4 -11
- package/src/components/chat/entity-cards/.program-card.md +1 -1
- package/src/components/chat/entity-cards/blog-card.tsx +4 -24
- package/src/components/chat/entity-cards/dispatch.tsx +9 -27
- package/src/components/chat/entity-cards/program-card.tsx +42 -81
- package/src/components/chat/types/entities/investor-update.ts +4 -6
- package/src/components/chat/types/entities/program-types.ts +8 -89
- package/src/components/chat/utils/.compact-card-classes.md +1 -1
- package/src/components/chat/utils/compact-card-classes.ts +5 -3
- package/src/components/logs-list.tsx +4 -13
- package/src/components/meeting-scheduler/confirmation.tsx +6 -10
- package/src/components/meeting-scheduler/directory.tsx +2 -12
- package/src/components/meeting-scheduler/index.tsx +3 -11
- package/src/components/meeting-scheduler/slot-picker.tsx +4 -7
- package/src/components/shared/article-author-byline.tsx +4 -13
- package/src/components/ui/.drawer.md +1 -0
- package/src/components/ui/__tests__/drawer-size.test.tsx +38 -0
- package/src/components/ui/date-picker.tsx +6 -13
- package/src/components/ui/device-card.tsx +4 -10
- package/src/components/ui/drawer.tsx +44 -9
- package/src/components/ui/table/table-timestamp-cell.tsx +8 -2
- package/src/utils/.format.md +5 -2
- package/src/utils/__tests__/date-rendering.test.ts +118 -0
- package/src/utils/__tests__/format-program-dates.test.ts +148 -0
- package/src/utils/__tests__/program-instant.test.ts +125 -0
- package/src/utils/__tests__/url-safety.test.ts +44 -0
- package/src/utils/date-formatters.ts +18 -29
- package/src/utils/date-utils.ts +27 -40
- package/src/utils/format-date.ts +14 -16
- package/src/utils/format.ts +367 -66
- package/src/utils/index.ts +24 -0
- package/src/utils/program-instant.ts +180 -0
- package/src/utils/program-meta-renderers.ts +18 -0
- package/src/utils/url-safety.ts +43 -0
- package/dist/chunk-2NRLRRMR.cjs.map +0 -1
- package/dist/chunk-3I6XHQUD.js.map +0 -1
- package/dist/chunk-3IPL6G7S.js.map +0 -1
- package/dist/chunk-O4LL7RQV.cjs.map +0 -1
- package/dist/chunk-ORFJVMAL.js.map +0 -1
- package/dist/chunk-OYI3K5R6.cjs.map +0 -1
- package/dist/chunk-SDGMLXIP.js.map +0 -1
- package/dist/chunk-VHB3I6F3.cjs.map +0 -1
- /package/dist/{chunk-YM6L3WM5.js.map → chunk-27RD5XTP.js.map} +0 -0
- /package/dist/{chunk-POPL3W2S.js.map → chunk-3DGRXC74.js.map} +0 -0
- /package/dist/{chunk-6GY6DFIH.js.map → chunk-4WVWRFGP.js.map} +0 -0
- /package/dist/{chunk-6NHLZORM.js.map → chunk-7Q5XXPCB.js.map} +0 -0
- /package/dist/{chunk-3LXJEXPH.js.map → chunk-B3Z3RJRW.js.map} +0 -0
- /package/dist/{chunk-MJ424FEC.js.map → chunk-HOGOQA2X.js.map} +0 -0
- /package/dist/{chunk-HW7BLVQH.js.map → chunk-IXD6SHQ6.js.map} +0 -0
- /package/dist/{chunk-S254VEDE.js.map → chunk-MRIOYSXH.js.map} +0 -0
- /package/dist/{chunk-XWGHLSAL.js.map → chunk-PFV4DAX5.js.map} +0 -0
- /package/dist/{chunk-UFBWNVZZ.js.map → chunk-RNMGKAS6.js.map} +0 -0
- /package/dist/{chunk-ZAIYD3MZ.js.map → chunk-S2KMNFFN.js.map} +0 -0
- /package/dist/{chunk-ZGPJ3NVF.js.map → chunk-SKABQX44.js.map} +0 -0
- /package/dist/{chunk-M7QROULE.js.map → chunk-UEXIMEVU.js.map} +0 -0
- /package/dist/{chunk-J4RZVLLQ.js.map → chunk-VE52MSYC.js.map} +0 -0
|
@@ -88,7 +88,7 @@ function formatDate(date, options = {
|
|
|
88
88
|
console.warn("Invalid date provided to formatDate:", date);
|
|
89
89
|
return "Invalid Date";
|
|
90
90
|
}
|
|
91
|
-
return dateObj.
|
|
91
|
+
return formatDateWithTimezone(dateObj, _nullishCoalesce(options.timeZone, () => ( null)), options);
|
|
92
92
|
}
|
|
93
93
|
function formatNumber(num) {
|
|
94
94
|
return num.toLocaleString();
|
|
@@ -189,27 +189,130 @@ function formatDurationCompact(seconds) {
|
|
|
189
189
|
}
|
|
190
190
|
return `${minutes} min`;
|
|
191
191
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
var VIEWER_TIMEZONE = "viewer";
|
|
193
|
+
var ZONED_DATE_STYLES = {
|
|
194
|
+
/** Mar 19, 2026 */
|
|
195
|
+
medium: { year: "numeric", month: "short", day: "numeric" },
|
|
196
|
+
/** Thursday, March 19 */
|
|
197
|
+
weekday: { weekday: "long", day: "numeric", month: "long" },
|
|
198
|
+
/** March 19, 2026 */
|
|
199
|
+
long: { year: "numeric", month: "long", day: "numeric" },
|
|
200
|
+
/** 03/19/2026 */
|
|
201
|
+
numeric: { year: "numeric", month: "2-digit", day: "2-digit" },
|
|
202
|
+
/** March 2026 */
|
|
203
|
+
monthYear: { year: "numeric", month: "long" },
|
|
204
|
+
/** Mar 2026 */
|
|
205
|
+
monthYearShort: { year: "numeric", month: "short" },
|
|
206
|
+
/** 03/19/2026, 9:18 PM */
|
|
207
|
+
numericDateTime: {
|
|
208
|
+
year: "numeric",
|
|
209
|
+
month: "2-digit",
|
|
210
|
+
day: "2-digit",
|
|
196
211
|
hour: "numeric",
|
|
197
212
|
minute: "2-digit",
|
|
198
|
-
hour12: true
|
|
199
|
-
|
|
200
|
-
|
|
213
|
+
hour12: true
|
|
214
|
+
},
|
|
215
|
+
/** Mar 19, 2026, 9:18 PM */
|
|
216
|
+
mediumDateTime: { year: "numeric", month: "short", day: "numeric", hour: "numeric", minute: "2-digit" },
|
|
217
|
+
/** Thursday, March 19 at 9:18 PM EDT */
|
|
218
|
+
weekdayDateTimeZoned: {
|
|
219
|
+
weekday: "long",
|
|
220
|
+
month: "long",
|
|
221
|
+
day: "numeric",
|
|
222
|
+
hour: "numeric",
|
|
223
|
+
minute: "2-digit",
|
|
224
|
+
timeZoneName: "short"
|
|
225
|
+
},
|
|
226
|
+
/** Thu, Mar 19, 9:18 PM */
|
|
227
|
+
shortWeekdayDateTime: { weekday: "short", month: "short", day: "numeric", hour: "numeric", minute: "2-digit" },
|
|
228
|
+
/** 03/19/2026, 21:18 */
|
|
229
|
+
numericDateTime24h: {
|
|
230
|
+
year: "numeric",
|
|
231
|
+
month: "2-digit",
|
|
232
|
+
day: "2-digit",
|
|
233
|
+
hour: "2-digit",
|
|
234
|
+
minute: "2-digit",
|
|
235
|
+
hour12: false
|
|
236
|
+
},
|
|
237
|
+
/** 3/19/2026, 9:18:00 PM — the runtime's own default date-time shape */
|
|
238
|
+
localeDateTime: {
|
|
239
|
+
year: "numeric",
|
|
240
|
+
month: "numeric",
|
|
241
|
+
day: "numeric",
|
|
242
|
+
hour: "numeric",
|
|
243
|
+
minute: "2-digit",
|
|
244
|
+
second: "2-digit"
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
var FORMATTERS = /* @__PURE__ */ new Map();
|
|
248
|
+
function zonedFormatter(locale, fields, timeZone) {
|
|
249
|
+
const key = JSON.stringify([_nullishCoalesce(locale, () => ( null)), _nullishCoalesce(timeZone, () => ( null)), fields]);
|
|
250
|
+
let fmt = FORMATTERS.get(key);
|
|
251
|
+
if (!fmt) {
|
|
252
|
+
fmt = new Intl.DateTimeFormat(locale, { ...fields, timeZone });
|
|
253
|
+
FORMATTERS.set(key, fmt);
|
|
254
|
+
}
|
|
255
|
+
return fmt;
|
|
256
|
+
}
|
|
257
|
+
function formatterFor(timezone, fields, locale) {
|
|
258
|
+
const zone = timezone === VIEWER_TIMEZONE ? void 0 : timezone || "UTC";
|
|
201
259
|
try {
|
|
202
|
-
return
|
|
260
|
+
return zonedFormatter(locale, fields, zone);
|
|
203
261
|
} catch (e2) {
|
|
204
|
-
return
|
|
262
|
+
return zonedFormatter(locale, fields, "UTC");
|
|
205
263
|
}
|
|
206
264
|
}
|
|
265
|
+
function toValidDate(date) {
|
|
266
|
+
if (date === null || date === void 0 || date === "") return null;
|
|
267
|
+
const d = date instanceof Date ? date : new Date(date);
|
|
268
|
+
return Number.isNaN(d.getTime()) ? null : d;
|
|
269
|
+
}
|
|
270
|
+
function formatDateWithTimezone(date, timezone, style = "medium", options) {
|
|
271
|
+
const dateObj = toValidDate(date);
|
|
272
|
+
if (!dateObj) return "";
|
|
273
|
+
const { timeZone: _ignored, ...fields } = typeof style === "string" ? ZONED_DATE_STYLES[style] : style;
|
|
274
|
+
return formatterFor(timezone, fields, _optionalChain([options, 'optionalAccess', _ => _.viewerLocale]) ? void 0 : "en-US").format(dateObj);
|
|
275
|
+
}
|
|
276
|
+
function formatDateTimeYmd(date, timezone, options) {
|
|
277
|
+
const dateObj = toValidDate(date);
|
|
278
|
+
if (!dateObj) return "";
|
|
279
|
+
const parts = formatterFor(
|
|
280
|
+
timezone,
|
|
281
|
+
{ year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", hourCycle: "h23" },
|
|
282
|
+
"en-US"
|
|
283
|
+
).formatToParts(dateObj);
|
|
284
|
+
const part = (type) => _nullishCoalesce(_optionalChain([parts, 'access', _2 => _2.find, 'call', _3 => _3((p) => p.type === type), 'optionalAccess', _4 => _4.value]), () => ( ""));
|
|
285
|
+
return `${part("year")}/${part("month")}/${part("day")}${_nullishCoalesce(_optionalChain([options, 'optionalAccess', _5 => _5.separator]), () => ( ", "))}${part("hour")}:${part("minute")}`;
|
|
286
|
+
}
|
|
287
|
+
function formatTimeWithTimezone(date, timezone, options) {
|
|
288
|
+
return formatDateWithTimezone(
|
|
289
|
+
date,
|
|
290
|
+
timezone,
|
|
291
|
+
{
|
|
292
|
+
hour: "numeric",
|
|
293
|
+
minute: "2-digit",
|
|
294
|
+
// A viewer-locale clock uses the locale's own 12/24h convention.
|
|
295
|
+
..._optionalChain([options, 'optionalAccess', _6 => _6.viewerLocale]) ? {} : { hour12: true },
|
|
296
|
+
..._optionalChain([options, 'optionalAccess', _7 => _7.withZoneLabel]) ? { timeZoneName: "short" } : {}
|
|
297
|
+
},
|
|
298
|
+
{ viewerLocale: _optionalChain([options, 'optionalAccess', _8 => _8.viewerLocale]) }
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
function formatProgramDate(at, style = "medium") {
|
|
302
|
+
return formatDateWithTimezone(_nullishCoalesce(at.instant, () => ( at.utcDate)), at.timezone, style);
|
|
303
|
+
}
|
|
304
|
+
function isOrderedRange(from, to) {
|
|
305
|
+
if (!from || !to) return false;
|
|
306
|
+
const a = (typeof from === "string" ? new Date(from) : from).getTime();
|
|
307
|
+
const b = (typeof to === "string" ? new Date(to) : to).getTime();
|
|
308
|
+
return Number.isFinite(a) && Number.isFinite(b) && b > a;
|
|
309
|
+
}
|
|
207
310
|
function formatDurationFromRange(startAt, endAt) {
|
|
208
|
-
if (!startAt
|
|
311
|
+
if (!isOrderedRange(startAt, endAt)) return "";
|
|
209
312
|
const start = typeof startAt === "string" ? new Date(startAt) : startAt;
|
|
210
313
|
const end = typeof endAt === "string" ? new Date(endAt) : endAt;
|
|
211
|
-
const
|
|
212
|
-
|
|
314
|
+
const minutes = Math.round((end.getTime() - start.getTime()) / 6e4);
|
|
315
|
+
if (minutes <= 0) return "";
|
|
213
316
|
if (minutes >= 60) {
|
|
214
317
|
const hours = Math.floor(minutes / 60);
|
|
215
318
|
const mins = minutes % 60;
|
|
@@ -232,23 +335,14 @@ function formatDateUTC(value, options = {}) {
|
|
|
232
335
|
}
|
|
233
336
|
}
|
|
234
337
|
if (!Number.isFinite(ms)) return fallback;
|
|
235
|
-
return
|
|
236
|
-
year: "numeric",
|
|
237
|
-
month: "short",
|
|
238
|
-
day: "numeric",
|
|
239
|
-
timeZone: timezone === "local" ? void 0 : "UTC"
|
|
240
|
-
});
|
|
338
|
+
return formatDateWithTimezone(ms, timezone === "local" ? VIEWER_TIMEZONE : null, "medium");
|
|
241
339
|
}
|
|
242
340
|
function formatEntryMonthUTC(entryMonth, style = "short") {
|
|
243
341
|
if (!entryMonth) return null;
|
|
244
|
-
return
|
|
342
|
+
return formatDateWithTimezone(entryMonth, null, style === "long" ? "monthYear" : "monthYearShort");
|
|
245
343
|
}
|
|
246
344
|
function formatLegalDate(dateInput) {
|
|
247
|
-
return
|
|
248
|
-
year: "numeric",
|
|
249
|
-
month: "2-digit",
|
|
250
|
-
day: "2-digit"
|
|
251
|
-
}).format(new Date(dateInput));
|
|
345
|
+
return formatDateWithTimezone(dateInput, null, "numeric");
|
|
252
346
|
}
|
|
253
347
|
function formatCurrency(value) {
|
|
254
348
|
if (value == null) return "N/A";
|
|
@@ -269,17 +363,17 @@ function formatWholeDollars(price, currency = "USD") {
|
|
|
269
363
|
maximumFractionDigits: 0
|
|
270
364
|
}).format(price);
|
|
271
365
|
}
|
|
272
|
-
function formatCompactMetric(value,
|
|
366
|
+
function formatCompactMetric(value, format = "number", options) {
|
|
273
367
|
if (value === 0 || value === null || value === void 0) {
|
|
274
|
-
if (
|
|
275
|
-
if (
|
|
276
|
-
if (
|
|
368
|
+
if (format === "currency") return `${_optionalChain([options, 'optionalAccess', _9 => _9.prefix]) || "$"}0`;
|
|
369
|
+
if (format === "percentage") return "0%";
|
|
370
|
+
if (format === "months") return `0 ${_optionalChain([options, 'optionalAccess', _10 => _10.suffix]) || "months"}`;
|
|
277
371
|
return "0";
|
|
278
372
|
}
|
|
279
373
|
const absValue = Math.abs(value);
|
|
280
374
|
const sign = value < 0 ? "-" : "";
|
|
281
|
-
if (
|
|
282
|
-
const prefix = _optionalChain([options, 'optionalAccess',
|
|
375
|
+
if (format === "currency") {
|
|
376
|
+
const prefix = _optionalChain([options, 'optionalAccess', _11 => _11.prefix]) || "$";
|
|
283
377
|
const compact = (val, divisor, suffix) => {
|
|
284
378
|
const divided = val / divisor;
|
|
285
379
|
const formatted = divided % 1 === 0 ? divided.toFixed(0) : divided.toFixed(1);
|
|
@@ -290,12 +384,12 @@ function formatCompactMetric(value, format2 = "number", options) {
|
|
|
290
384
|
if (absValue >= 1e3) return `${sign}${prefix}${(absValue / 1e3).toFixed(0)}K`;
|
|
291
385
|
return `${sign}${prefix}${absValue.toLocaleString()}`;
|
|
292
386
|
}
|
|
293
|
-
if (
|
|
387
|
+
if (format === "percentage") {
|
|
294
388
|
return `${sign}${absValue}%`;
|
|
295
389
|
}
|
|
296
|
-
if (
|
|
390
|
+
if (format === "months") {
|
|
297
391
|
const rounded = Math.round(value * 10) / 10;
|
|
298
|
-
return `${rounded} ${_optionalChain([options, 'optionalAccess',
|
|
392
|
+
return `${rounded} ${_optionalChain([options, 'optionalAccess', _12 => _12.suffix]) || "months"}`;
|
|
299
393
|
}
|
|
300
394
|
if (absValue >= 1e6) return `${sign}${(absValue / 1e6).toFixed(1)}M`;
|
|
301
395
|
if (absValue >= 1e3) return `${sign}${(absValue / 1e3).toFixed(1)}K`;
|
|
@@ -322,31 +416,13 @@ function getTrendColors(direction, polarity = "positive") {
|
|
|
322
416
|
}
|
|
323
417
|
function formatDateRange(start, end) {
|
|
324
418
|
if (!start || !end) return "";
|
|
325
|
-
const fmt = (s) => {
|
|
326
|
-
const bareMatch = /^(\d{4})-(\d{2})-(\d{2})$/.exec(s);
|
|
327
|
-
const d = bareMatch ? new Date(Number(bareMatch[1]), Number(bareMatch[2]) - 1, Number(bareMatch[3])) : new Date(s);
|
|
328
|
-
if (Number.isNaN(d.getTime())) return s;
|
|
329
|
-
return d.toLocaleDateString(void 0, {
|
|
330
|
-
month: "short",
|
|
331
|
-
day: "numeric",
|
|
332
|
-
year: "numeric"
|
|
333
|
-
});
|
|
334
|
-
};
|
|
419
|
+
const fmt = (s) => formatDateWithTimezone(s, /^\d{4}-\d{2}-\d{2}$/.test(s) ? null : VIEWER_TIMEZONE, "medium") || s;
|
|
335
420
|
return `${fmt(start)} \u2014 ${fmt(end)}`;
|
|
336
421
|
}
|
|
337
422
|
function formatDateTimeAt(dateString) {
|
|
338
|
-
const
|
|
339
|
-
const
|
|
340
|
-
|
|
341
|
-
day: "numeric",
|
|
342
|
-
year: "numeric"
|
|
343
|
-
});
|
|
344
|
-
const timeStr = date.toLocaleTimeString("en-US", {
|
|
345
|
-
hour: "numeric",
|
|
346
|
-
minute: "2-digit",
|
|
347
|
-
hour12: true
|
|
348
|
-
});
|
|
349
|
-
return `${dateStr} at ${timeStr}`;
|
|
423
|
+
const dateStr = formatDateWithTimezone(dateString, VIEWER_TIMEZONE, "medium");
|
|
424
|
+
const timeStr = formatTimeWithTimezone(dateString, VIEWER_TIMEZONE);
|
|
425
|
+
return dateStr && timeStr ? `${dateStr} at ${timeStr}` : "";
|
|
350
426
|
}
|
|
351
427
|
function formatDurationFromMs(ms) {
|
|
352
428
|
if (!ms || isNaN(ms) || ms < 0) return "0ms";
|
|
@@ -398,6 +474,21 @@ function formatBioText(aboutHtml, fallback = "") {
|
|
|
398
474
|
}
|
|
399
475
|
return stripHtml(aboutHtml).trim() || fallback;
|
|
400
476
|
}
|
|
477
|
+
function formatProgramTimeRange(at, opts = {}) {
|
|
478
|
+
const source = _nullishCoalesce(_nullishCoalesce(at.instant, () => ( at.utcDate)), () => ( opts.startAt));
|
|
479
|
+
const label = opts.withZoneLabel === true;
|
|
480
|
+
const bare = formatTimeWithTimezone(source, at.timezone);
|
|
481
|
+
const labelled = label ? formatTimeWithTimezone(source, at.timezone, { withZoneLabel: true }) : bare;
|
|
482
|
+
const ordered = isOrderedRange(source, opts.endAt);
|
|
483
|
+
const end = ordered && opts.endAt ? formatTimeWithTimezone(opts.endAt, at.timezone, { withZoneLabel: label }) : "";
|
|
484
|
+
if (!bare) return "";
|
|
485
|
+
return end ? `${bare} - ${end}` : labelled;
|
|
486
|
+
}
|
|
487
|
+
function formatWebinarTimeMeta(at, opts) {
|
|
488
|
+
const duration = formatDurationFromRange(opts.startAt, opts.endAt);
|
|
489
|
+
const time = formatProgramTimeRange(at, { startAt: opts.startAt, withZoneLabel: opts.withZoneLabel });
|
|
490
|
+
return [time, duration].filter(Boolean).join(" \xB7 ");
|
|
491
|
+
}
|
|
401
492
|
|
|
402
493
|
// src/components/ui/square-avatar.tsx
|
|
403
494
|
|
|
@@ -864,8 +955,8 @@ function DepartmentBadge({
|
|
|
864
955
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
865
956
|
PaletteBadge,
|
|
866
957
|
{
|
|
867
|
-
text: _optionalChain([department, 'optionalAccess',
|
|
868
|
-
color: _optionalChain([department, 'optionalAccess',
|
|
958
|
+
text: _optionalChain([department, 'optionalAccess', _13 => _13.name]) || emptyLabel,
|
|
959
|
+
color: _optionalChain([department, 'optionalAccess', _14 => _14.name]) ? department.color : null,
|
|
869
960
|
className,
|
|
870
961
|
variant
|
|
871
962
|
}
|
|
@@ -875,9 +966,9 @@ function DepartmentBadge({
|
|
|
875
966
|
// src/utils/image-proxy.ts
|
|
876
967
|
function getProxiedImageUrl(imageUrl, options) {
|
|
877
968
|
if (!imageUrl) return null;
|
|
878
|
-
const proxyPrefix = _optionalChain([options, 'optionalAccess',
|
|
879
|
-
const skipDomains = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
880
|
-
const directHttps = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
969
|
+
const proxyPrefix = _optionalChain([options, 'optionalAccess', _15 => _15.proxyPrefix]);
|
|
970
|
+
const skipDomains = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _16 => _16.skipDomains]), () => ( []));
|
|
971
|
+
const directHttps = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _17 => _17.directHttps]), () => ( false));
|
|
881
972
|
if (proxyPrefix && imageUrl.includes(proxyPrefix)) {
|
|
882
973
|
return imageUrl;
|
|
883
974
|
}
|
|
@@ -949,7 +1040,7 @@ function isSameOriginAbsoluteHref(href) {
|
|
|
949
1040
|
function computeIsNewTab(runtime, href, targetPlatform) {
|
|
950
1041
|
if (!href) return false;
|
|
951
1042
|
if (runtime.navigation.mode === "embed") return !isSameOriginAbsoluteHref(href);
|
|
952
|
-
return _nullishCoalesce(_optionalChain([runtime, 'access',
|
|
1043
|
+
return _nullishCoalesce(_optionalChain([runtime, 'access', _18 => _18.navigation, 'access', _19 => _19.decideNewTab, 'optionalCall', _20 => _20({ href, targetPlatform })]), () => ( decideNewTab({
|
|
953
1044
|
href,
|
|
954
1045
|
targetPlatform,
|
|
955
1046
|
currentSource: _nullishCoalesce(runtime.source, () => ( ""))
|
|
@@ -1015,7 +1106,7 @@ function EntityAuthorCard({
|
|
|
1015
1106
|
renderEmptyAuthor = false,
|
|
1016
1107
|
className
|
|
1017
1108
|
}) {
|
|
1018
|
-
const hasAuthor = !!_optionalChain([author, 'optionalAccess',
|
|
1109
|
+
const hasAuthor = !!_optionalChain([author, 'optionalAccess', _21 => _21.full_name]);
|
|
1019
1110
|
if (!hasAuthor && !renderEmptyAuthor) return null;
|
|
1020
1111
|
const effectiveAuthor = hasAuthor ? author : EMPTY_AUTHOR_PLACEHOLDER;
|
|
1021
1112
|
const formatted = publishedAt ? formatDate(publishedAt) : "";
|
|
@@ -1104,7 +1195,7 @@ function EntityPortraitCard({
|
|
|
1104
1195
|
}) {
|
|
1105
1196
|
const { src, onError: onMediaError } = useCoverImageFallback(imageUrl, placeholderUrl);
|
|
1106
1197
|
const [measured, setMeasured] = _react.useState.call(void 0, null);
|
|
1107
|
-
const isWide = _optionalChain([measured, 'optionalAccess',
|
|
1198
|
+
const isWide = _optionalChain([measured, 'optionalAccess', _22 => _22.src]) === src ? measured.isWide : null;
|
|
1108
1199
|
const onMediaLoad = (e) => {
|
|
1109
1200
|
const img = e.currentTarget;
|
|
1110
1201
|
if (img.naturalWidth > 0 && img.naturalHeight > 0) {
|
|
@@ -1404,8 +1495,8 @@ function AdminContentCard({
|
|
|
1404
1495
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: _chunk23V5BSHDcjs.cn.call(void 0, "line-clamp-2 break-words text-ods-text-primary text-h3", reserveRows && "min-h-[2lh]"), children: title }),
|
|
1405
1496
|
(subtitle || reserveRows) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk23V5BSHDcjs.cn.call(void 0, "truncate text-ods-text-secondary text-h6", reserveRows && "min-h-[1lh]"), children: subtitle }),
|
|
1406
1497
|
(summary || reserveRows) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk23V5BSHDcjs.cn.call(void 0, "line-clamp-2 text-ods-text-secondary text-h6", reserveRows && "min-h-[2lh]"), children: summary }),
|
|
1407
|
-
(Number(_optionalChain([platforms, 'optionalAccess',
|
|
1408
|
-
_optionalChain([platforms, 'optionalAccess',
|
|
1498
|
+
(Number(_optionalChain([platforms, 'optionalAccess', _23 => _23.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: [
|
|
1499
|
+
_optionalChain([platforms, 'optionalAccess', _24 => _24.map, 'call', _25 => _25((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1409
1500
|
PlatformBadge,
|
|
1410
1501
|
{
|
|
1411
1502
|
platform: { id: p.id || p.platform_id || "", name: p.name, display_name: p.display_name || p.name },
|
|
@@ -1485,7 +1576,7 @@ function EmployeeEntryCard({
|
|
|
1485
1576
|
] }) : null,
|
|
1486
1577
|
meta: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1487
1578
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-2", children: [
|
|
1488
|
-
_optionalChain([entry, 'access',
|
|
1579
|
+
_optionalChain([entry, 'access', _26 => _26.author, 'optionalAccess', _27 => _27.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1489
1580
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
1490
1581
|
{
|
|
1491
1582
|
src: _nullishCoalesce(getProxiedImageUrl2(entry.author.avatar_url), () => ( entry.author.avatar_url)),
|
|
@@ -1496,7 +1587,7 @@ function EmployeeEntryCard({
|
|
|
1496
1587
|
unoptimized: true
|
|
1497
1588
|
}
|
|
1498
1589
|
) : null,
|
|
1499
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _nullishCoalesce(_optionalChain([entry, 'access',
|
|
1590
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _nullishCoalesce(_optionalChain([entry, 'access', _28 => _28.author, 'optionalAccess', _29 => _29.full_name]), () => ( "")) })
|
|
1500
1591
|
] }),
|
|
1501
1592
|
dateLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: dateLabel }) : null
|
|
1502
1593
|
] }),
|
|
@@ -1569,7 +1660,7 @@ var HowIWorkCardSkeleton = EmployeeEntryCardSkeleton;
|
|
|
1569
1660
|
// src/components/chat/entity-cards/ai-prompt-card.tsx
|
|
1570
1661
|
|
|
1571
1662
|
function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }) {
|
|
1572
|
-
const departmentName = _optionalChain([entry, 'access',
|
|
1663
|
+
const departmentName = _optionalChain([entry, 'access', _30 => _30.department, 'optionalAccess', _31 => _31.name, 'optionalAccess', _32 => _32.trim, 'call', _33 => _33()]);
|
|
1573
1664
|
const steps = typeof entry.step_count === "number" ? entry.step_count : 0;
|
|
1574
1665
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1575
1666
|
EmployeeEntryCard,
|
|
@@ -1577,7 +1668,7 @@ function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }
|
|
|
1577
1668
|
entry,
|
|
1578
1669
|
dateLabel: entry.published_at ? formatDateUTC(entry.published_at, { fallback: "" }) || null : null,
|
|
1579
1670
|
extraBadges: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1580
|
-
departmentName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepartmentBadge, { department: { name: departmentName, color: _nullishCoalesce(_optionalChain([entry, 'access',
|
|
1671
|
+
departmentName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepartmentBadge, { department: { name: departmentName, color: _nullishCoalesce(_optionalChain([entry, 'access', _34 => _34.department, 'optionalAccess', _35 => _35.color]), () => ( null)) } }) : null,
|
|
1581
1672
|
steps > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: `${steps} steps` }) : null
|
|
1582
1673
|
] }),
|
|
1583
1674
|
untitledLabel: "Untitled prompt",
|
|
@@ -1593,7 +1684,7 @@ var AiPromptCardSkeleton = EmployeeEntryCardSkeleton;
|
|
|
1593
1684
|
// src/components/features/video-bites-shared.ts
|
|
1594
1685
|
var DEFAULT_VIDEO_BITES_TITLE = "Key Moments";
|
|
1595
1686
|
function toStripProfile(p, fallbackSubtitle) {
|
|
1596
|
-
if (!_optionalChain([p, 'optionalAccess',
|
|
1687
|
+
if (!_optionalChain([p, 'optionalAccess', _36 => _36.full_name])) return null;
|
|
1597
1688
|
return {
|
|
1598
1689
|
name: p.full_name,
|
|
1599
1690
|
avatarUrl: _nullishCoalesce(p.avatar_url, () => ( null)),
|
|
@@ -1635,7 +1726,7 @@ function ProductReleaseCard({
|
|
|
1635
1726
|
changelogCounts
|
|
1636
1727
|
}) {
|
|
1637
1728
|
if (size === "lg") {
|
|
1638
|
-
const totalChangelog = (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess',
|
|
1729
|
+
const totalChangelog = (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _37 => _37.features]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _38 => _38.fixes]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _39 => _39.improvements]), () => ( 0))) + (_nullishCoalesce(_optionalChain([changelogCounts, 'optionalAccess', _40 => _40.breaking]), () => ( 0)));
|
|
1639
1730
|
const valueCells = [
|
|
1640
1731
|
releaseType && releaseTypeBadgeColor ? {
|
|
1641
1732
|
value: releaseType.toUpperCase(),
|
|
@@ -1654,7 +1745,7 @@ function ProductReleaseCard({
|
|
|
1654
1745
|
uppercase: false
|
|
1655
1746
|
} : { value: "\u2014", label: "Released", uppercase: false }
|
|
1656
1747
|
];
|
|
1657
|
-
const effectiveAuthor = _optionalChain([author, 'optionalAccess',
|
|
1748
|
+
const effectiveAuthor = _optionalChain([author, 'optionalAccess', _41 => _41.full_name]) ? author : { full_name: "\u2014", avatar_url: null, job_title: "Unknown" };
|
|
1658
1749
|
const gridColsClass = "md:grid-cols-4";
|
|
1659
1750
|
const dividerClass = "border-b md:border-b-0 md:border-r border-ods-border";
|
|
1660
1751
|
const frameClass = _chunk23V5BSHDcjs.cn.call(void 0,
|
|
@@ -1922,21 +2013,11 @@ function ProductReleaseCardSkeleton({ className, size = "lg" }) {
|
|
|
1922
2013
|
}
|
|
1923
2014
|
|
|
1924
2015
|
// src/utils/date-formatters.ts
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
"
|
|
1929
|
-
|
|
1930
|
-
"May",
|
|
1931
|
-
"June",
|
|
1932
|
-
"July",
|
|
1933
|
-
"August",
|
|
1934
|
-
"September",
|
|
1935
|
-
"October",
|
|
1936
|
-
"November",
|
|
1937
|
-
"December"
|
|
1938
|
-
];
|
|
1939
|
-
var MONTHS_SHORT = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
2016
|
+
function formatDayHead(dateString, style) {
|
|
2017
|
+
const ymd = splitYmd(dateString);
|
|
2018
|
+
if (!ymd) return dateString;
|
|
2019
|
+
return formatDateWithTimezone(ymd.join("-"), null, style) || dateString;
|
|
2020
|
+
}
|
|
1940
2021
|
function splitYmd(dateString) {
|
|
1941
2022
|
const head = dateString.split("T")[0];
|
|
1942
2023
|
const parts = head.split("-");
|
|
@@ -1944,22 +2025,13 @@ function splitYmd(dateString) {
|
|
|
1944
2025
|
return [parts[0], parts[1], parts[2]];
|
|
1945
2026
|
}
|
|
1946
2027
|
function formatReleaseDate(dateString) {
|
|
1947
|
-
|
|
1948
|
-
if (!ymd) return dateString;
|
|
1949
|
-
const [year, month, day] = ymd;
|
|
1950
|
-
return `${MONTHS_LONG[parseInt(month) - 1]} ${parseInt(day)}, ${year}`;
|
|
2028
|
+
return formatDayHead(dateString, "long");
|
|
1951
2029
|
}
|
|
1952
2030
|
function formatDateShort(dateString) {
|
|
1953
|
-
|
|
1954
|
-
if (!ymd) return dateString;
|
|
1955
|
-
const [year, month, day] = ymd;
|
|
1956
|
-
return `${MONTHS_SHORT[parseInt(month) - 1]} ${parseInt(day)}, ${year}`;
|
|
2031
|
+
return formatDayHead(dateString, "medium");
|
|
1957
2032
|
}
|
|
1958
2033
|
function formatDateSlashUTC(dateString) {
|
|
1959
|
-
|
|
1960
|
-
if (!ymd) return dateString;
|
|
1961
|
-
const [year, month, day] = ymd;
|
|
1962
|
-
return `${month}/${day}/${year}`;
|
|
2034
|
+
return formatDayHead(dateString, "numeric");
|
|
1963
2035
|
}
|
|
1964
2036
|
|
|
1965
2037
|
// src/utils/release-badge.ts
|
|
@@ -2028,14 +2100,25 @@ function buildProductReleaseCardProps(item) {
|
|
|
2028
2100
|
job_title: release.author.job_title
|
|
2029
2101
|
} : void 0,
|
|
2030
2102
|
changelogCounts: {
|
|
2031
|
-
features: _nullishCoalesce(_optionalChain([release, 'access',
|
|
2032
|
-
fixes: _nullishCoalesce(_optionalChain([release, 'access',
|
|
2033
|
-
improvements: _nullishCoalesce(_optionalChain([release, 'access',
|
|
2034
|
-
breaking: _nullishCoalesce(_optionalChain([release, 'access',
|
|
2103
|
+
features: _nullishCoalesce(_optionalChain([release, 'access', _42 => _42.features_added, 'optionalAccess', _43 => _43.length]), () => ( 0)),
|
|
2104
|
+
fixes: _nullishCoalesce(_optionalChain([release, 'access', _44 => _44.bugs_fixed, 'optionalAccess', _45 => _45.length]), () => ( 0)),
|
|
2105
|
+
improvements: _nullishCoalesce(_optionalChain([release, 'access', _46 => _46.improvements, 'optionalAccess', _47 => _47.length]), () => ( 0)),
|
|
2106
|
+
breaking: _nullishCoalesce(_optionalChain([release, 'access', _48 => _48.breaking_changes, 'optionalAccess', _49 => _49.length]), () => ( 0))
|
|
2035
2107
|
}
|
|
2036
2108
|
};
|
|
2037
2109
|
}
|
|
2038
2110
|
|
|
2111
|
+
// src/utils/url-safety.ts
|
|
2112
|
+
var UNSAFE_URL_CHARS = /[\u0000-\u001f\u007f\u200b-\u200d\u2028\u2029\ufeff]/;
|
|
2113
|
+
var SAME_ORIGIN_PROBE = "https://_sameorigin_.invalid";
|
|
2114
|
+
function isSameOriginPath(candidate) {
|
|
2115
|
+
try {
|
|
2116
|
+
return new URL(candidate, SAME_ORIGIN_PROBE).origin === SAME_ORIGIN_PROBE;
|
|
2117
|
+
} catch (e5) {
|
|
2118
|
+
return false;
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2039
2122
|
// src/components/chat/utils/compact-card-classes.ts
|
|
2040
2123
|
var COMPACT_CARD_OUTER = "my-1.5 flex items-start gap-3 w-full p-2 rounded-lg border border-ods-border bg-ods-card no-underline transition-colors hover:border-ods-text-secondary/40";
|
|
2041
2124
|
var COMPACT_CARD_OUTER_STATIC = "my-1.5 flex items-start gap-3 w-full p-2 rounded-lg border border-ods-border bg-ods-card no-underline cursor-default";
|
|
@@ -2054,10 +2137,10 @@ var COMPACT_CARD_ROW_FILLER = "\xA0";
|
|
|
2054
2137
|
var SAFE_URL_SCHEMES = ["http:", "https:", "mailto:"];
|
|
2055
2138
|
function safeHref(url) {
|
|
2056
2139
|
if (!url) return null;
|
|
2057
|
-
if (
|
|
2140
|
+
if (UNSAFE_URL_CHARS.test(url)) return null;
|
|
2058
2141
|
const trimmed = url.trim();
|
|
2059
2142
|
if (!trimmed) return null;
|
|
2060
|
-
if (trimmed.startsWith("/")
|
|
2143
|
+
if (trimmed.startsWith("/")) return isSameOriginPath(trimmed) ? trimmed : null;
|
|
2061
2144
|
if (trimmed.startsWith("#")) return trimmed;
|
|
2062
2145
|
if (/^[a-z][a-z0-9+.-]*:$/i.test(trimmed)) return null;
|
|
2063
2146
|
try {
|
|
@@ -2065,7 +2148,7 @@ function safeHref(url) {
|
|
|
2065
2148
|
if (!SAFE_URL_SCHEMES.includes(parsed.protocol)) return null;
|
|
2066
2149
|
if ((parsed.protocol === "https:" || parsed.protocol === "http:") && !parsed.hostname) return null;
|
|
2067
2150
|
return trimmed;
|
|
2068
|
-
} catch (
|
|
2151
|
+
} catch (e6) {
|
|
2069
2152
|
return null;
|
|
2070
2153
|
}
|
|
2071
2154
|
}
|
|
@@ -2151,13 +2234,8 @@ function BlogCard({
|
|
|
2151
2234
|
});
|
|
2152
2235
|
const { src: displayImage, onError: onImageError } = useCoverImageFallback(post.featured_image, placeholderUrl);
|
|
2153
2236
|
if (size === "sm") {
|
|
2154
|
-
const dateStr2 = post.published_at ?
|
|
2155
|
-
|
|
2156
|
-
month: "short",
|
|
2157
|
-
day: "numeric",
|
|
2158
|
-
timeZone: "UTC"
|
|
2159
|
-
}) : "";
|
|
2160
|
-
const firstCategory = _optionalChain([post, 'access', _42 => _42.categories, 'optionalAccess', _43 => _43.find, 'call', _44 => _44((c) => c && c.name), 'optionalAccess', _45 => _45.name]);
|
|
2237
|
+
const dateStr2 = post.published_at ? formatDateWithTimezone(post.published_at, null, "medium") : "";
|
|
2238
|
+
const firstCategory = _optionalChain([post, 'access', _50 => _50.categories, 'optionalAccess', _51 => _51.find, 'call', _52 => _52((c) => c && c.name), 'optionalAccess', _53 => _53.name]);
|
|
2161
2239
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2162
2240
|
"a",
|
|
2163
2241
|
{
|
|
@@ -2196,12 +2274,7 @@ function BlogCard({
|
|
|
2196
2274
|
);
|
|
2197
2275
|
}
|
|
2198
2276
|
if (size === "portrait") {
|
|
2199
|
-
const dateStr2 = post.published_at ?
|
|
2200
|
-
year: "numeric",
|
|
2201
|
-
month: "short",
|
|
2202
|
-
day: "numeric",
|
|
2203
|
-
timeZone: "UTC"
|
|
2204
|
-
}) : "";
|
|
2277
|
+
const dateStr2 = post.published_at ? formatDateWithTimezone(post.published_at, null, "medium") : "";
|
|
2205
2278
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2206
2279
|
EntityPortraitCard,
|
|
2207
2280
|
{
|
|
@@ -2222,12 +2295,7 @@ function BlogCard({
|
|
|
2222
2295
|
}
|
|
2223
2296
|
);
|
|
2224
2297
|
}
|
|
2225
|
-
const dateStr = post.published_at ?
|
|
2226
|
-
year: "numeric",
|
|
2227
|
-
month: "short",
|
|
2228
|
-
day: "numeric",
|
|
2229
|
-
timeZone: "UTC"
|
|
2230
|
-
}) : "";
|
|
2298
|
+
const dateStr = post.published_at ? formatDateWithTimezone(post.published_at, null, "medium") : "";
|
|
2231
2299
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2232
2300
|
"article",
|
|
2233
2301
|
{
|
|
@@ -2375,7 +2443,7 @@ function CaseStudyCard({
|
|
|
2375
2443
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2376
2444
|
{
|
|
2377
2445
|
src: coverImage,
|
|
2378
|
-
alt: `${_optionalChain([study, 'access',
|
|
2446
|
+
alt: `${_optionalChain([study, 'access', _54 => _54.msp, 'optionalAccess', _55 => _55.name]) || study.title} cover`,
|
|
2379
2447
|
className: "object-contain",
|
|
2380
2448
|
fill: true,
|
|
2381
2449
|
sizes: "56px",
|
|
@@ -2385,7 +2453,7 @@ function CaseStudyCard({
|
|
|
2385
2453
|
) : null }),
|
|
2386
2454
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2387
2455
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_TITLE, children: study.title }) }),
|
|
2388
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUBTITLE, children: [_optionalChain([study, 'access',
|
|
2456
|
+
/* @__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', _56 => _56.msp, 'optionalAccess', _57 => _57.name]), _optionalChain([study, 'access', _58 => _58.user, 'optionalAccess', _59 => _59.full_name])].filter(Boolean).join(" \xB7 ") || "Case study" }) }),
|
|
2389
2457
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUMMARY, children: study.summary || COMPACT_CARD_ROW_FILLER }) })
|
|
2390
2458
|
] })
|
|
2391
2459
|
] });
|
|
@@ -2400,13 +2468,13 @@ function CaseStudyCard({
|
|
|
2400
2468
|
typeLabel: showTypeBadge ? "Case Study" : void 0,
|
|
2401
2469
|
imageUrl: study.featured_image,
|
|
2402
2470
|
placeholderUrl,
|
|
2403
|
-
imageAlt: _optionalChain([study, 'access',
|
|
2471
|
+
imageAlt: _optionalChain([study, 'access', _60 => _60.msp, 'optionalAccess', _61 => _61.name]) || study.title,
|
|
2404
2472
|
title: study.title,
|
|
2405
2473
|
person: {
|
|
2406
|
-
name: _optionalChain([study, 'access',
|
|
2407
|
-
avatarUrl: _optionalChain([study, 'access',
|
|
2408
|
-
subtitle: _nullishCoalesce(_optionalChain([study, 'access',
|
|
2409
|
-
iconOverlayUrl: _nullishCoalesce(_optionalChain([study, 'access',
|
|
2474
|
+
name: _optionalChain([study, 'access', _62 => _62.user, 'optionalAccess', _63 => _63.full_name]) || "Anonymous",
|
|
2475
|
+
avatarUrl: _optionalChain([study, 'access', _64 => _64.user, 'optionalAccess', _65 => _65.avatar_url]),
|
|
2476
|
+
subtitle: _nullishCoalesce(_optionalChain([study, 'access', _66 => _66.msp, 'optionalAccess', _67 => _67.name]), () => ( null)),
|
|
2477
|
+
iconOverlayUrl: _nullishCoalesce(_optionalChain([study, 'access', _68 => _68.msp, 'optionalAccess', _69 => _69.icon_url]), () => ( null))
|
|
2410
2478
|
},
|
|
2411
2479
|
className
|
|
2412
2480
|
}
|
|
@@ -2417,7 +2485,7 @@ function CaseStudyCard({
|
|
|
2417
2485
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2418
2486
|
{
|
|
2419
2487
|
src: coverImage,
|
|
2420
|
-
alt: _optionalChain([study, 'access',
|
|
2488
|
+
alt: _optionalChain([study, 'access', _70 => _70.msp, 'optionalAccess', _71 => _71.name]) || study.title,
|
|
2421
2489
|
className: "h-full w-full object-cover",
|
|
2422
2490
|
sizes: "(min-width: 1545px) 515px, (min-width: 1280px) 33vw, (min-width: 800px) 50vw, 100vw",
|
|
2423
2491
|
fill: true,
|
|
@@ -2428,18 +2496,18 @@ function CaseStudyCard({
|
|
|
2428
2496
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[72px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 break-words text-ods-text-primary text-h4", children: study.title }) }),
|
|
2429
2497
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[60px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-3", children: [
|
|
2430
2498
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2431
|
-
_optionalChain([study, 'access',
|
|
2499
|
+
_optionalChain([study, 'access', _72 => _72.user, 'optionalAccess', _73 => _73.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2432
2500
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2433
2501
|
{
|
|
2434
2502
|
src: study.user.avatar_url,
|
|
2435
|
-
alt: _optionalChain([study, 'access',
|
|
2503
|
+
alt: _optionalChain([study, 'access', _74 => _74.user, 'optionalAccess', _75 => _75.full_name]) || "User",
|
|
2436
2504
|
className: "h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover",
|
|
2437
2505
|
width: 48,
|
|
2438
2506
|
height: 48,
|
|
2439
2507
|
unoptimized: true
|
|
2440
2508
|
}
|
|
2441
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-full border border-ods-border bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: (_optionalChain([study, 'access',
|
|
2442
|
-
_optionalChain([study, 'access',
|
|
2509
|
+
) : /* @__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', _76 => _76.user, 'optionalAccess', _77 => _77.full_name]) || "A").charAt(0).toUpperCase() }) }),
|
|
2510
|
+
_optionalChain([study, 'access', _78 => _78.msp, 'optionalAccess', _79 => _79.icon_url]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute -bottom-1 -right-1 flex h-6 w-6 items-center justify-center overflow-hidden rounded-full bg-ods-text-primary ring-1 ring-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2443
2511
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2444
2512
|
{
|
|
2445
2513
|
src: study.msp.icon_url,
|
|
@@ -2453,13 +2521,13 @@ function CaseStudyCard({
|
|
|
2453
2521
|
] }),
|
|
2454
2522
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
2455
2523
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: [
|
|
2456
|
-
_optionalChain([study, 'access',
|
|
2457
|
-
_optionalChain([study, 'access',
|
|
2524
|
+
_optionalChain([study, 'access', _80 => _80.user, 'optionalAccess', _81 => _81.full_name]) || "Anonymous",
|
|
2525
|
+
_optionalChain([study, 'access', _82 => _82.msp, 'optionalAccess', _83 => _83.name]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
2458
2526
|
" \u2022 ",
|
|
2459
2527
|
study.msp.name
|
|
2460
2528
|
] })
|
|
2461
2529
|
] }),
|
|
2462
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([study, 'access',
|
|
2530
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([study, 'access', _84 => _84.user, 'optionalAccess', _85 => _85.job_title]) || "\xA0" })
|
|
2463
2531
|
] })
|
|
2464
2532
|
] }) })
|
|
2465
2533
|
] }) });
|
|
@@ -2541,7 +2609,7 @@ function CustomerInterviewCard({
|
|
|
2541
2609
|
] }),
|
|
2542
2610
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
2543
2611
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_TITLE, children: interview.title }) }),
|
|
2544
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUBTITLE, children: [_optionalChain([interview, 'access',
|
|
2612
|
+
/* @__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', _86 => _86.user, 'optionalAccess', _87 => _87.full_name]), _optionalChain([interview, 'access', _88 => _88.msp, 'optionalAccess', _89 => _89.name])].filter(Boolean).join(" \xB7 ") || "Customer interview" }) }),
|
|
2545
2613
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_SUMMARY, children: interview.video_summary || COMPACT_CARD_ROW_FILLER }) })
|
|
2546
2614
|
] })
|
|
2547
2615
|
] });
|
|
@@ -2559,10 +2627,10 @@ function CustomerInterviewCard({
|
|
|
2559
2627
|
imageAlt: interview.title,
|
|
2560
2628
|
title: interview.title,
|
|
2561
2629
|
person: {
|
|
2562
|
-
name: _optionalChain([interview, 'access',
|
|
2563
|
-
avatarUrl: _optionalChain([interview, 'access',
|
|
2564
|
-
subtitle: _nullishCoalesce(_optionalChain([interview, 'access',
|
|
2565
|
-
iconOverlayUrl: _nullishCoalesce(_optionalChain([interview, 'access',
|
|
2630
|
+
name: _optionalChain([interview, 'access', _90 => _90.user, 'optionalAccess', _91 => _91.full_name]) || "Customer",
|
|
2631
|
+
avatarUrl: _optionalChain([interview, 'access', _92 => _92.user, 'optionalAccess', _93 => _93.avatar_url]),
|
|
2632
|
+
subtitle: _nullishCoalesce(_optionalChain([interview, 'access', _94 => _94.msp, 'optionalAccess', _95 => _95.name]), () => ( null)),
|
|
2633
|
+
iconOverlayUrl: _nullishCoalesce(_optionalChain([interview, 'access', _96 => _96.msp, 'optionalAccess', _97 => _97.icon_url]), () => ( null))
|
|
2566
2634
|
},
|
|
2567
2635
|
className
|
|
2568
2636
|
}
|
|
@@ -2588,18 +2656,18 @@ function CustomerInterviewCard({
|
|
|
2588
2656
|
interview.video_summary && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 text-ods-text-secondary text-h6", children: interview.video_summary }) }),
|
|
2589
2657
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-auto flex h-[60px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-3", children: [
|
|
2590
2658
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative h-12 w-12 shrink-0", children: [
|
|
2591
|
-
_optionalChain([interview, 'access',
|
|
2659
|
+
_optionalChain([interview, 'access', _98 => _98.user, 'optionalAccess', _99 => _99.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2592
2660
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2593
2661
|
{
|
|
2594
2662
|
src: interview.user.avatar_url,
|
|
2595
|
-
alt: _optionalChain([interview, 'access',
|
|
2663
|
+
alt: _optionalChain([interview, 'access', _100 => _100.user, 'optionalAccess', _101 => _101.full_name]) || "Customer",
|
|
2596
2664
|
className: "h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover",
|
|
2597
2665
|
width: 48,
|
|
2598
2666
|
height: 48,
|
|
2599
2667
|
unoptimized: true
|
|
2600
2668
|
}
|
|
2601
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-full border border-ods-border bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: (_optionalChain([interview, 'access',
|
|
2602
|
-
_optionalChain([interview, 'access',
|
|
2669
|
+
) : /* @__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', _102 => _102.user, 'optionalAccess', _103 => _103.full_name]) || "A").charAt(0).toUpperCase() }) }),
|
|
2670
|
+
_optionalChain([interview, 'access', _104 => _104.msp, 'optionalAccess', _105 => _105.icon_url]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute -bottom-1 -right-1 flex h-6 w-6 items-center justify-center overflow-hidden rounded-full bg-ods-text-primary ring-1 ring-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2603
2671
|
_chunkWLSFBRT5cjs.next_image_default,
|
|
2604
2672
|
{
|
|
2605
2673
|
src: interview.msp.icon_url,
|
|
@@ -2613,13 +2681,13 @@ function CustomerInterviewCard({
|
|
|
2613
2681
|
] }),
|
|
2614
2682
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
2615
2683
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: [
|
|
2616
|
-
_optionalChain([interview, 'access',
|
|
2617
|
-
_optionalChain([interview, 'access',
|
|
2684
|
+
_optionalChain([interview, 'access', _106 => _106.user, 'optionalAccess', _107 => _107.full_name]) || "Anonymous",
|
|
2685
|
+
_optionalChain([interview, 'access', _108 => _108.msp, 'optionalAccess', _109 => _109.name]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
2618
2686
|
" \u2022 ",
|
|
2619
2687
|
interview.msp.name
|
|
2620
2688
|
] })
|
|
2621
2689
|
] }),
|
|
2622
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([interview, 'access',
|
|
2690
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: _optionalChain([interview, 'access', _110 => _110.user, 'optionalAccess', _111 => _111.job_title]) || " " })
|
|
2623
2691
|
] })
|
|
2624
2692
|
] }) })
|
|
2625
2693
|
] }) });
|
|
@@ -2628,12 +2696,7 @@ function CustomerInterviewCard({
|
|
|
2628
2696
|
// src/components/chat/types/entities/investor-update.ts
|
|
2629
2697
|
function formatInvestorUpdatePeriod(start, end, options) {
|
|
2630
2698
|
if (!start && !end) return "";
|
|
2631
|
-
const fmt = (d) =>
|
|
2632
|
-
month: _optionalChain([options, 'optionalAccess', _104 => _104.monthFormat]) || "short",
|
|
2633
|
-
year: "numeric",
|
|
2634
|
-
// Pin to UTC so SSR (Vercel = UTC) and the client agree (React #418).
|
|
2635
|
-
timeZone: "UTC"
|
|
2636
|
-
});
|
|
2699
|
+
const fmt = (d) => formatDateWithTimezone(d, null, _optionalChain([options, 'optionalAccess', _112 => _112.monthFormat]) === "long" ? "monthYear" : "monthYearShort") || "?";
|
|
2637
2700
|
const s = start ? fmt(start) : "?";
|
|
2638
2701
|
const e = end ? fmt(end) : "?";
|
|
2639
2702
|
return `${s} - ${e}`;
|
|
@@ -2744,7 +2807,7 @@ function InvestorUpdateCard({
|
|
|
2744
2807
|
imageUrl: update.featured_image,
|
|
2745
2808
|
placeholderUrl,
|
|
2746
2809
|
title: update.title || `Update #${update.update_number || "?"}`,
|
|
2747
|
-
summary: _optionalChain([update, 'access',
|
|
2810
|
+
summary: _optionalChain([update, 'access', _113 => _113.strategic_update, 'optionalAccess', _114 => _114.slice, 'call', _115 => _115(0, 120)]) || _optionalChain([update, 'access', _116 => _116.content, 'optionalAccess', _117 => _117.slice, 'call', _118 => _118(0, 120)]) || "No description",
|
|
2748
2811
|
badges: update.update_number ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rounded bg-ods-accent/10 px-2 py-0.5 text-xs font-medium text-ods-accent", children: [
|
|
2749
2812
|
"#",
|
|
2750
2813
|
update.update_number
|
|
@@ -2953,7 +3016,7 @@ function OnboardingGuideCard({
|
|
|
2953
3016
|
const compactCover = coverImage || placeholderUrl || null;
|
|
2954
3017
|
const hasVideoCover = !guide.featured_image && !!guide.main_video_thumbnail;
|
|
2955
3018
|
const summary2 = stripMarkdownPreview(guide.video_summary || guide.content || "");
|
|
2956
|
-
const author = _optionalChain([guide, 'access',
|
|
3019
|
+
const author = _optionalChain([guide, 'access', _119 => _119.author, 'optionalAccess', _120 => _120.full_name, 'optionalAccess', _121 => _121.trim, 'call', _122 => _122()]) || "";
|
|
2957
3020
|
const subtitleParts = [`Step ${guide.step_order}`, guide.section, author].filter(
|
|
2958
3021
|
(s) => typeof s === "string" && s.length > 0
|
|
2959
3022
|
);
|
|
@@ -3078,7 +3141,7 @@ function AvatarStack({
|
|
|
3078
3141
|
|
|
3079
3142
|
// src/components/chat/utils/agent-status-message.ts
|
|
3080
3143
|
function getStatusColorScheme(status) {
|
|
3081
|
-
const s = _optionalChain([status, 'optionalAccess',
|
|
3144
|
+
const s = _optionalChain([status, 'optionalAccess', _123 => _123.toLowerCase, 'call', _124 => _124()]) || "";
|
|
3082
3145
|
switch (status) {
|
|
3083
3146
|
case "completed":
|
|
3084
3147
|
case "success":
|
|
@@ -3320,7 +3383,7 @@ function RoadmapCard({
|
|
|
3320
3383
|
const compactHref = safeHref(_nullishCoalesce(href, () => ( null)));
|
|
3321
3384
|
const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
|
|
3322
3385
|
const hasFigma = !!item.figmaUrl;
|
|
3323
|
-
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access',
|
|
3386
|
+
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _125 => _125.screenshots, 'optionalAccess', _126 => _126.length]), () => ( 0))) > 0;
|
|
3324
3387
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
3325
3388
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
3326
3389
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -3339,7 +3402,7 @@ function RoadmapCard({
|
|
|
3339
3402
|
unoptimized: true,
|
|
3340
3403
|
className: "h-8 w-8 object-contain"
|
|
3341
3404
|
}
|
|
3342
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-secondary text-h6", children: _optionalChain([item, 'access',
|
|
3405
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-secondary text-h6", children: _optionalChain([item, 'access', _127 => _127.title, 'optionalAccess', _128 => _128.substring, 'call', _129 => _129(0, 2)]) || "??" })
|
|
3343
3406
|
}
|
|
3344
3407
|
),
|
|
3345
3408
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
|
|
@@ -3419,7 +3482,7 @@ function RoadmapCard({
|
|
|
3419
3482
|
unoptimized: true,
|
|
3420
3483
|
className: "object-contain p-1"
|
|
3421
3484
|
}
|
|
3422
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
3485
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _130 => _130.title, 'optionalAccess', _131 => _131.substring, 'call', _132 => _132(0, 2)]) || "??" }) }),
|
|
3423
3486
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3424
3487
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-[48px] items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "line-clamp-2 flex-1 text-ods-text-primary text-h3", children: item.title }) }),
|
|
3425
3488
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-[20px] items-center", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h5", children: [
|
|
@@ -3520,10 +3583,10 @@ var MEDIA_TYPE = {
|
|
|
3520
3583
|
VIDEO: "video"
|
|
3521
3584
|
};
|
|
3522
3585
|
function isVideoMedia(media) {
|
|
3523
|
-
return _optionalChain([media, 'optionalAccess',
|
|
3586
|
+
return _optionalChain([media, 'optionalAccess', _133 => _133.media_type]) === MEDIA_TYPE.VIDEO;
|
|
3524
3587
|
}
|
|
3525
3588
|
function isImageMedia(media) {
|
|
3526
|
-
return _optionalChain([media, 'optionalAccess',
|
|
3589
|
+
return _optionalChain([media, 'optionalAccess', _134 => _134.media_type]) === MEDIA_TYPE.IMAGE;
|
|
3527
3590
|
}
|
|
3528
3591
|
function isPublishableMediaType(mediaType) {
|
|
3529
3592
|
return mediaType === MEDIA_TYPE.VIDEO || mediaType === MEDIA_TYPE.IMAGE;
|
|
@@ -3535,95 +3598,66 @@ function partitionMediaByType(media) {
|
|
|
3535
3598
|
};
|
|
3536
3599
|
}
|
|
3537
3600
|
|
|
3538
|
-
// src/
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
const
|
|
3543
|
-
|
|
3544
|
-
return toStripProfile({ full_name: host.name, avatar_url: _nullishCoalesce(host.avatar_url, () => ( null)) });
|
|
3545
|
-
}
|
|
3546
|
-
function transformEventToProgram(event) {
|
|
3601
|
+
// src/utils/program-instant.ts
|
|
3602
|
+
var programStr = (value) => typeof value === "string" && value ? value : null;
|
|
3603
|
+
function programDateInstant(item) {
|
|
3604
|
+
const timezone = programStr(item.timezone);
|
|
3605
|
+
const date = programStr(item.date);
|
|
3606
|
+
const startAt = programStr(item.start_at);
|
|
3547
3607
|
return {
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
cover_url: _nullishCoalesce(event.cover_url, () => ( null)),
|
|
3552
|
-
date: event.start_at,
|
|
3553
|
-
external_url: _nullishCoalesce(event.event_url, () => ( null)),
|
|
3554
|
-
hosts: _nullishCoalesce(event.hosts, () => ( null)),
|
|
3555
|
-
luma_api_id: event.luma_api_id,
|
|
3556
|
-
end_at: event.end_at,
|
|
3557
|
-
timezone: _nullishCoalesce(event.timezone, () => ( null)),
|
|
3558
|
-
location_name: _nullishCoalesce(event.location_name, () => ( null)),
|
|
3559
|
-
location_full_address: _nullishCoalesce(event.location_full_address, () => ( null)),
|
|
3560
|
-
geo_latitude: _nullishCoalesce(event.geo_latitude, () => ( null)),
|
|
3561
|
-
geo_longitude: _nullishCoalesce(event.geo_longitude, () => ( null)),
|
|
3562
|
-
meeting_url: _nullishCoalesce(event.meeting_url, () => ( null)),
|
|
3563
|
-
event_url: _nullishCoalesce(event.event_url, () => ( null)),
|
|
3564
|
-
guest_count: _nullishCoalesce(event.guest_count, () => ( null)),
|
|
3565
|
-
visibility: _nullishCoalesce(event.visibility, () => ( null)),
|
|
3566
|
-
is_deleted: _nullishCoalesce(event.is_deleted, () => ( false))
|
|
3608
|
+
instant: timezone ? _nullishCoalesce(date, () => ( startAt)) : null,
|
|
3609
|
+
timezone,
|
|
3610
|
+
utcDate: _nullishCoalesce(date, () => ( startAt))
|
|
3567
3611
|
};
|
|
3568
3612
|
}
|
|
3569
|
-
function
|
|
3570
|
-
return {
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
duration_seconds: _nullishCoalesce(episode.duration_seconds, () => ( null)),
|
|
3585
|
-
status: _nullishCoalesce(episode.status, () => ( "published")),
|
|
3586
|
-
published_at: _nullishCoalesce(episode.published_at, () => ( null)),
|
|
3587
|
-
is_deleted: _nullishCoalesce(episode.is_deleted, () => ( false)),
|
|
3588
|
-
// Override fields
|
|
3589
|
-
cover_image_override: _nullishCoalesce(episode.cover_image_override, () => ( null)),
|
|
3590
|
-
custom_video_url: _nullishCoalesce(episode.custom_video_url, () => ( null))
|
|
3591
|
-
};
|
|
3613
|
+
function webinarTiming(item) {
|
|
3614
|
+
return { startAt: programStr(item.start_at), endAt: programStr(item.end_at) };
|
|
3615
|
+
}
|
|
3616
|
+
function programMetaLine(item, kind, fmt) {
|
|
3617
|
+
const at = programDateInstant(item);
|
|
3618
|
+
const isScheduled = item.status === "scheduled";
|
|
3619
|
+
let typeMeta = null;
|
|
3620
|
+
if (kind === "podcast" && typeof item.duration_seconds === "number" && item.duration_seconds > 0 && !isScheduled) {
|
|
3621
|
+
typeMeta = fmt.duration(item.duration_seconds);
|
|
3622
|
+
} else if (kind === "event" && typeof item.location_name === "string" && item.location_name.trim().length > 0) {
|
|
3623
|
+
typeMeta = item.location_name;
|
|
3624
|
+
} else if (kind === "webinar" && programStr(item.start_at)) {
|
|
3625
|
+
typeMeta = fmt.webinarMeta(at, webinarTiming(item)) || null;
|
|
3626
|
+
}
|
|
3627
|
+
return { at, typeMeta, line: [fmt.date(at), typeMeta].filter(Boolean).join(" \xB7 ") };
|
|
3592
3628
|
}
|
|
3593
|
-
function
|
|
3629
|
+
function programMetaFormatters(fmt, opts = {}) {
|
|
3630
|
+
const withZoneLabel = opts.withZoneLabel !== false;
|
|
3594
3631
|
return {
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
date: _nullishCoalesce(webinar.display_date_override, () => ( webinar.start_at)),
|
|
3602
|
-
external_url: _nullishCoalesce(webinar.registration_url, () => ( null)),
|
|
3603
|
-
hosts: _nullishCoalesce(webinar.hosts, () => ( null)),
|
|
3604
|
-
livestorm_event_id: webinar.livestorm_event_id,
|
|
3605
|
-
start_at: webinar.start_at,
|
|
3606
|
-
end_at: _nullishCoalesce(webinar.end_at, () => ( null)),
|
|
3607
|
-
timezone: _nullishCoalesce(webinar.timezone, () => ( null)),
|
|
3608
|
-
registration_url: _nullishCoalesce(webinar.registration_url, () => ( null)),
|
|
3609
|
-
is_deleted: _nullishCoalesce(webinar.is_deleted, () => ( false)),
|
|
3610
|
-
main_video_url: _nullishCoalesce(webinar.main_video_url, () => ( null)),
|
|
3611
|
-
// Override fields
|
|
3612
|
-
custom_video_url: _nullishCoalesce(webinar.custom_video_url, () => ( null)),
|
|
3613
|
-
display_date_override: _nullishCoalesce(webinar.display_date_override, () => ( null)),
|
|
3614
|
-
cover_image_override: _nullishCoalesce(webinar.cover_image_override, () => ( null))
|
|
3632
|
+
// The meta line always renders the compact day; the one surface that wants
|
|
3633
|
+
// the weekday form renders it in its own slot, so a `dateStyle` option here
|
|
3634
|
+
// would exist for no caller.
|
|
3635
|
+
date: (at) => fmt.date(at, "medium"),
|
|
3636
|
+
duration: fmt.duration,
|
|
3637
|
+
webinarMeta: (at, o) => fmt.webinarMeta(at, { ...o, withZoneLabel })
|
|
3615
3638
|
};
|
|
3616
3639
|
}
|
|
3617
3640
|
|
|
3641
|
+
// src/utils/program-meta-renderers.ts
|
|
3642
|
+
var PROGRAM_META_RENDERERS = {
|
|
3643
|
+
date: formatProgramDate,
|
|
3644
|
+
duration: formatDurationCompact,
|
|
3645
|
+
webinarMeta: formatWebinarTimeMeta
|
|
3646
|
+
};
|
|
3647
|
+
|
|
3648
|
+
// src/components/chat/types/entities/program-types.ts
|
|
3649
|
+
function programItemToStripProfile(item) {
|
|
3650
|
+
const fromAuthor = toStripProfile(item.author);
|
|
3651
|
+
if (fromAuthor) return fromAuthor;
|
|
3652
|
+
const host = Array.isArray(item.hosts) ? item.hosts[0] : null;
|
|
3653
|
+
if (!_optionalChain([host, 'optionalAccess', _135 => _135.name])) return null;
|
|
3654
|
+
return toStripProfile({ full_name: host.name, avatar_url: _nullishCoalesce(host.avatar_url, () => ( null)) });
|
|
3655
|
+
}
|
|
3656
|
+
|
|
3618
3657
|
// src/components/chat/entity-cards/program-card.tsx
|
|
3619
|
-
var _datefns = require('date-fns');
|
|
3620
3658
|
|
|
3621
3659
|
|
|
3622
3660
|
|
|
3623
|
-
function formatUtc(date, fmt) {
|
|
3624
|
-
if (Number.isNaN(date.getTime())) return "";
|
|
3625
|
-
return _datefns.format.call(void 0, new Date(date.getTime() + date.getTimezoneOffset() * 6e4), fmt);
|
|
3626
|
-
}
|
|
3627
3661
|
function ProgramCardSkeleton({ size = "default" }) {
|
|
3628
3662
|
if (size === "sm") {
|
|
3629
3663
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
|
|
@@ -3688,14 +3722,6 @@ function getHosts(hosts) {
|
|
|
3688
3722
|
}
|
|
3689
3723
|
return [];
|
|
3690
3724
|
}
|
|
3691
|
-
function webinarTiming(item) {
|
|
3692
|
-
const str = (value) => typeof value === "string" && value ? value : null;
|
|
3693
|
-
return {
|
|
3694
|
-
startAt: "start_at" in item ? str(item.start_at) : null,
|
|
3695
|
-
endAt: "end_at" in item ? str(item.end_at) : null,
|
|
3696
|
-
timezone: "timezone" in item ? str(item.timezone) : null
|
|
3697
|
-
};
|
|
3698
|
-
}
|
|
3699
3725
|
function MediaGallery({ images, title }) {
|
|
3700
3726
|
const [selectedImageIndex, setSelectedImageIndex] = _react.useState.call(void 0, null);
|
|
3701
3727
|
const [isModalOpen, setIsModalOpen] = _react.useState.call(void 0, false);
|
|
@@ -3774,25 +3800,17 @@ function ProgramCard({
|
|
|
3774
3800
|
const hosts = getHosts(item.hosts);
|
|
3775
3801
|
const accentColor = "var(--color-accent-primary)";
|
|
3776
3802
|
const isScheduled = "status" in item && item.status === "scheduled";
|
|
3777
|
-
const
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
const { startAt, endAt, timezone } = webinarTiming(item);
|
|
3786
|
-
const time = formatTimeWithTimezone(startAt, timezone);
|
|
3787
|
-
const dur = formatDurationFromRange(startAt, endAt);
|
|
3788
|
-
return dur ? `${time} \xB7 ${dur}` : time;
|
|
3789
|
-
}
|
|
3790
|
-
return null;
|
|
3791
|
-
};
|
|
3792
|
-
const compactDate = formatUtc(new Date(item.date), "MMM d, yyyy");
|
|
3803
|
+
const {
|
|
3804
|
+
at: zonedDate,
|
|
3805
|
+
typeMeta: compactTypeMetaValue,
|
|
3806
|
+
line: compactMetaLine
|
|
3807
|
+
// Compact densities join plain strings, so the zone rides inline here; the
|
|
3808
|
+
// default density below renders it as its own styled span instead.
|
|
3809
|
+
} = programMetaLine(item, config.type, programMetaFormatters(PROGRAM_META_RENDERERS));
|
|
3810
|
+
const compactDate = formatProgramDate(zonedDate, "medium");
|
|
3793
3811
|
if (size === "portrait") {
|
|
3794
3812
|
const profile = programItemToStripProfile(item);
|
|
3795
|
-
const dateMeta =
|
|
3813
|
+
const dateMeta = compactMetaLine;
|
|
3796
3814
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3797
3815
|
EntityPortraitCard,
|
|
3798
3816
|
{
|
|
@@ -3811,10 +3829,10 @@ function ProgramCard({
|
|
|
3811
3829
|
);
|
|
3812
3830
|
}
|
|
3813
3831
|
if (size === "sm") {
|
|
3814
|
-
const
|
|
3832
|
+
const itemDate = compactDate;
|
|
3815
3833
|
const compactCover = coverImage || placeholderUrl || null;
|
|
3816
|
-
const typeMeta =
|
|
3817
|
-
const subtitleParts = [
|
|
3834
|
+
const typeMeta = compactTypeMetaValue;
|
|
3835
|
+
const subtitleParts = [itemDate, typeMeta, _optionalChain([config, 'access', _136 => _136.labels, 'optionalAccess', _137 => _137.singular])].filter(
|
|
3818
3836
|
(s) => typeof s === "string" && s.length > 0
|
|
3819
3837
|
);
|
|
3820
3838
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunk23V5BSHDcjs.cn.call(void 0, COMPACT_CARD_OUTER, className), children: [
|
|
@@ -3830,32 +3848,29 @@ function ProgramCard({
|
|
|
3830
3848
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) })
|
|
3831
3849
|
] });
|
|
3832
3850
|
}
|
|
3833
|
-
const
|
|
3834
|
-
const
|
|
3851
|
+
const dateFormat = formatProgramDate(zonedDate, "weekday");
|
|
3852
|
+
const { typeMeta: defaultTypeMeta } = programMetaLine(
|
|
3853
|
+
item,
|
|
3854
|
+
config.type,
|
|
3855
|
+
programMetaFormatters(PROGRAM_META_RENDERERS, { withZoneLabel: false })
|
|
3856
|
+
);
|
|
3835
3857
|
const defaultRenderMeta = () => {
|
|
3836
|
-
if (config.type === "podcast"
|
|
3837
|
-
|
|
3838
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3858
|
+
if (config.type === "podcast") {
|
|
3859
|
+
return defaultTypeMeta ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3839
3860
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Clock, { className: "h-4 w-4 text-ods-text-secondary" }),
|
|
3840
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-body text-ods-text-secondary", children:
|
|
3841
|
-
] });
|
|
3861
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-body text-ods-text-secondary", children: defaultTypeMeta })
|
|
3862
|
+
] }) : null;
|
|
3842
3863
|
}
|
|
3843
|
-
if (config.type === "event"
|
|
3844
|
-
|
|
3845
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-body text-ods-text-secondary", children: typeof loc === "string" && loc || "Location TBD" });
|
|
3864
|
+
if (config.type === "event") {
|
|
3865
|
+
return defaultTypeMeta ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-body text-ods-text-secondary", children: defaultTypeMeta }) : null;
|
|
3846
3866
|
}
|
|
3847
|
-
if (config.type === "webinar" &&
|
|
3848
|
-
const { startAt, endAt, timezone } = webinarTiming(item);
|
|
3849
|
-
const duration = formatDurationFromRange(startAt, endAt);
|
|
3867
|
+
if (config.type === "webinar" && (defaultTypeMeta || zonedDate.timezone)) {
|
|
3850
3868
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3851
3869
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Video, { className: "h-4 w-4 text-ods-text-secondary" }),
|
|
3852
|
-
/* @__PURE__ */ _jsxruntime.
|
|
3853
|
-
|
|
3854
|
-
duration && ` \xB7 ${duration}`
|
|
3855
|
-
] }),
|
|
3856
|
-
timezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: [
|
|
3870
|
+
defaultTypeMeta && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-body text-ods-text-secondary", children: defaultTypeMeta }),
|
|
3871
|
+
zonedDate.timezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: [
|
|
3857
3872
|
"(",
|
|
3858
|
-
timezone,
|
|
3873
|
+
zonedDate.timezone,
|
|
3859
3874
|
")"
|
|
3860
3875
|
] })
|
|
3861
3876
|
] });
|
|
@@ -4208,5 +4223,16 @@ function buildListUrl(contentRefType, ids, base = "") {
|
|
|
4208
4223
|
|
|
4209
4224
|
|
|
4210
4225
|
|
|
4211
|
-
|
|
4212
|
-
|
|
4226
|
+
|
|
4227
|
+
|
|
4228
|
+
|
|
4229
|
+
|
|
4230
|
+
|
|
4231
|
+
|
|
4232
|
+
|
|
4233
|
+
|
|
4234
|
+
|
|
4235
|
+
|
|
4236
|
+
|
|
4237
|
+
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.VIEWER_TIMEZONE = VIEWER_TIMEZONE; exports.formatDateWithTimezone = formatDateWithTimezone; exports.formatDateTimeYmd = formatDateTimeYmd; exports.formatTimeWithTimezone = formatTimeWithTimezone; exports.formatProgramDate = formatProgramDate; exports.isOrderedRange = isOrderedRange; 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.formatProgramTimeRange = formatProgramTimeRange; exports.formatWebinarTimeMeta = formatWebinarTimeMeta; exports.SquareAvatar = SquareAvatar; exports.InteractiveCard = InteractiveCard; exports.Modal = Modal; exports.ModalContent = ModalContent; exports.ModalHeader = ModalHeader; exports.ModalTitle = ModalTitle; exports.ModalFooter = ModalFooter; exports.ImageGalleryModal = ImageGalleryModal; exports.statusBadgeVariants = statusBadgeVariants; exports.genBadgeBgOpacity = genBadgeBgOpacity; exports.generationTierFromLabel = generationTierFromLabel; exports.StatusBadge = StatusBadge; exports.BADGE_PALETTE = BADGE_PALETTE; exports.isBadgePaletteKey = isBadgePaletteKey; exports.pickBadgePaletteColor = pickBadgePaletteColor; exports.PaletteBadge = PaletteBadge; exports.DepartmentBadge = DepartmentBadge; exports.getProxiedImageUrl = getProxiedImageUrl; exports.urlPathLooksLikeSvg = urlPathLooksLikeSvg; exports.shouldProxyImage = shouldProxyImage; exports.generateImageSizes = generateImageSizes; exports.isCrossOriginUrl = isCrossOriginUrl; exports.decideNewTab = decideNewTab; exports.isSameOriginAbsoluteHref = isSameOriginAbsoluteHref; exports.computeIsNewTab = computeIsNewTab; exports.newTabAnchorAttrs = newTabAnchorAttrs; exports.buildAnchorProps = buildAnchorProps; exports.EMPTY_AUTHOR_PLACEHOLDER = EMPTY_AUTHOR_PLACEHOLDER; exports.EntityMetadataValueCell = EntityMetadataValueCell; exports.EntityMetadataAuthorCell = EntityMetadataAuthorCell; exports.EntityAuthorCard = EntityAuthorCard; exports.BlogImagePlaceholder = BlogImagePlaceholder; exports.useCoverImageFallback = useCoverImageFallback; exports.hideOnError = hideOnError; exports.EntityPortraitCard = EntityPortraitCard; exports.FlamingoLogo = FlamingoLogo; exports.PlatformBadge = PlatformBadge; exports.AdminContentCard = AdminContentCard; exports.getProxiedImageUrl2 = getProxiedImageUrl2; exports.EmployeeEntryBadge = EmployeeEntryBadge; exports.EmployeeEntryCard = EmployeeEntryCard; exports.EmployeeEntryCardSkeleton = EmployeeEntryCardSkeleton; exports.WhatIShippedCard = WhatIShippedCard; exports.WhatIShippedCardSkeleton = WhatIShippedCardSkeleton; exports.HowIWorkCard = HowIWorkCard; exports.HowIWorkCardSkeleton = HowIWorkCardSkeleton; exports.AiPromptCard = AiPromptCard; exports.AiPromptCardSkeleton = AiPromptCardSkeleton; exports.DEFAULT_VIDEO_BITES_TITLE = DEFAULT_VIDEO_BITES_TITLE; exports.toStripProfile = toStripProfile; exports.sortBitesByCreatedAtDesc = sortBitesByCreatedAtDesc; exports.sortBitesByFeaturedAtDesc = sortBitesByFeaturedAtDesc; exports.ProductReleaseCard = ProductReleaseCard; exports.ProductReleaseCardSkeleton = ProductReleaseCardSkeleton; exports.formatReleaseDate = formatReleaseDate; exports.formatDateShort = formatDateShort; exports.formatDateSlashUTC = formatDateSlashUTC; exports.releaseTypeToBadgeColor = releaseTypeToBadgeColor; exports.resolveReleaseCover = resolveReleaseCover; exports.defaultBuildProductReleaseCardProps = defaultBuildProductReleaseCardProps; exports.buildProductReleaseCardProps = buildProductReleaseCardProps; exports.UNSAFE_URL_CHARS = UNSAFE_URL_CHARS; 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.programStr = programStr; exports.programDateInstant = programDateInstant; exports.webinarTiming = webinarTiming; exports.programMetaLine = programMetaLine; exports.programMetaFormatters = programMetaFormatters; exports.PROGRAM_META_RENDERERS = PROGRAM_META_RENDERERS; exports.programItemToStripProfile = programItemToStripProfile; exports.ProgramCardSkeleton = ProgramCardSkeleton; exports.ProgramCard = ProgramCard; exports.extractItems = extractItems; exports.extractItemId = extractItemId; exports.canonicalContentRefType = canonicalContentRefType; exports.buildListUrl = buildListUrl;
|
|
4238
|
+
//# sourceMappingURL=chunk-7R2DIGG4.cjs.map
|