@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
package/dist/utils/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export * from './dismiss-cookie';
|
|
|
32
32
|
export * from './dismissal-storage';
|
|
33
33
|
export * from './walkthrough-deep-link';
|
|
34
34
|
export { type GetProxiedImageUrlOptions, getProxiedImageUrl, urlPathLooksLikeSvg, shouldProxyImage, generateImageSizes, } from './image-proxy';
|
|
35
|
-
export { formatLargeNumber, formatAbbreviatedNumber, nameInitials, personFirstName, personInitials, singleInitial, formatDurationMMSS, formatDurationCompact, formatTimeWithTimezone, formatDurationFromRange, type FormatDateUTCOptions, formatDateUTC, formatEntryMonthUTC, formatCurrency, formatPercent, formatWholeDollars, formatLegalDate, formatBytesShort, formatFileSize, formatDateTimeAt, formatDurationFromMs, type MetricFormat, type TrendPolarity, formatCompactMetric, getTrendColors, formatDateRange, formatDuration, formatUnderscoreText, titleCaseFromSlug, stripHtml, formatBioText, formatClassification, formatPricingModel, } from './format';
|
|
35
|
+
export { formatLargeNumber, formatAbbreviatedNumber, nameInitials, personFirstName, personInitials, singleInitial, formatDurationMMSS, formatDurationCompact, formatTimeWithTimezone, formatDateWithTimezone, formatDateTimeYmd, VIEWER_TIMEZONE, formatWebinarTimeMeta, formatProgramDate, formatProgramTimeRange, type ZonedDateStyle, formatDurationFromRange, isOrderedRange, type FormatDateUTCOptions, formatDateUTC, formatEntryMonthUTC, formatCurrency, formatPercent, formatWholeDollars, formatLegalDate, formatBytesShort, formatFileSize, formatDateTimeAt, formatDurationFromMs, type MetricFormat, type TrendPolarity, formatCompactMetric, getTrendColors, formatDateRange, formatDuration, formatUnderscoreText, titleCaseFromSlug, stripHtml, formatBioText, formatClassification, formatPricingModel, } from './format';
|
|
36
36
|
export { formatRelativeTime, formatAbsoluteDate, formatDateTime, getDetailedTimeDifference, isToday, isWithinMinutes, createUTCTimestamp, formatTicketRelativeTime, formatTicketFullTimestamp, } from './date-utils';
|
|
37
37
|
export { SOURCE_ICON_NAMES, getSourceIconName, SOURCE_LABELS_BY_TABLE, getSourceLabel } from './source-icons';
|
|
38
38
|
export { embedAuthedFetch, setEmbedAuthAdapter, type EmbedAuthAdapter } from './embed-authed-fetch';
|
|
@@ -80,4 +80,7 @@ export * from './ods-spacing';
|
|
|
80
80
|
export * from './csv';
|
|
81
81
|
export * from './social-platforms';
|
|
82
82
|
export { BADGE_PALETTE, isBadgePaletteKey, pickBadgePaletteColor, type BadgePaletteKey } from './badge-palette';
|
|
83
|
+
export { programDateInstant, programMetaFormatters, programMetaLine, programStr, webinarTiming, } from './program-instant';
|
|
84
|
+
export { PROGRAM_META_RENDERERS } from './program-meta-renderers';
|
|
85
|
+
export type { ProgramDateFields, ProgramInstant, ProgramMetaRenderers } from './program-instant';
|
|
83
86
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAK1B,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAI1F,OAAO,EAAE,U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provided to formatDate:", date);
|
|
176
176
|
return "Invalid Date";
|
|
177
177
|
}
|
|
178
|
-
return dateObj
|
|
178
|
+
return formatDateWithTimezone(dateObj, options.timeZone ?? null, options);
|
|
179
179
|
}
|
|
180
180
|
function formatNumber(num) {
|
|
181
181
|
return num.toLocaleString();
|
|
@@ -276,27 +276,130 @@ function formatDurationCompact(seconds) {
|
|
|
276
276
|
}
|
|
277
277
|
return `${minutes} min`;
|
|
278
278
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
279
|
+
var VIEWER_TIMEZONE = "viewer";
|
|
280
|
+
var ZONED_DATE_STYLES = {
|
|
281
|
+
/** Mar 19, 2026 */
|
|
282
|
+
medium: { year: "numeric", month: "short", day: "numeric" },
|
|
283
|
+
/** Thursday, March 19 */
|
|
284
|
+
weekday: { weekday: "long", day: "numeric", month: "long" },
|
|
285
|
+
/** March 19, 2026 */
|
|
286
|
+
long: { year: "numeric", month: "long", day: "numeric" },
|
|
287
|
+
/** 03/19/2026 */
|
|
288
|
+
numeric: { year: "numeric", month: "2-digit", day: "2-digit" },
|
|
289
|
+
/** March 2026 */
|
|
290
|
+
monthYear: { year: "numeric", month: "long" },
|
|
291
|
+
/** Mar 2026 */
|
|
292
|
+
monthYearShort: { year: "numeric", month: "short" },
|
|
293
|
+
/** 03/19/2026, 9:18 PM */
|
|
294
|
+
numericDateTime: {
|
|
295
|
+
year: "numeric",
|
|
296
|
+
month: "2-digit",
|
|
297
|
+
day: "2-digit",
|
|
283
298
|
hour: "numeric",
|
|
284
299
|
minute: "2-digit",
|
|
285
|
-
hour12: true
|
|
286
|
-
|
|
287
|
-
|
|
300
|
+
hour12: true
|
|
301
|
+
},
|
|
302
|
+
/** Mar 19, 2026, 9:18 PM */
|
|
303
|
+
mediumDateTime: { year: "numeric", month: "short", day: "numeric", hour: "numeric", minute: "2-digit" },
|
|
304
|
+
/** Thursday, March 19 at 9:18 PM EDT */
|
|
305
|
+
weekdayDateTimeZoned: {
|
|
306
|
+
weekday: "long",
|
|
307
|
+
month: "long",
|
|
308
|
+
day: "numeric",
|
|
309
|
+
hour: "numeric",
|
|
310
|
+
minute: "2-digit",
|
|
311
|
+
timeZoneName: "short"
|
|
312
|
+
},
|
|
313
|
+
/** Thu, Mar 19, 9:18 PM */
|
|
314
|
+
shortWeekdayDateTime: { weekday: "short", month: "short", day: "numeric", hour: "numeric", minute: "2-digit" },
|
|
315
|
+
/** 03/19/2026, 21:18 */
|
|
316
|
+
numericDateTime24h: {
|
|
317
|
+
year: "numeric",
|
|
318
|
+
month: "2-digit",
|
|
319
|
+
day: "2-digit",
|
|
320
|
+
hour: "2-digit",
|
|
321
|
+
minute: "2-digit",
|
|
322
|
+
hour12: false
|
|
323
|
+
},
|
|
324
|
+
/** 3/19/2026, 9:18:00 PM — the runtime's own default date-time shape */
|
|
325
|
+
localeDateTime: {
|
|
326
|
+
year: "numeric",
|
|
327
|
+
month: "numeric",
|
|
328
|
+
day: "numeric",
|
|
329
|
+
hour: "numeric",
|
|
330
|
+
minute: "2-digit",
|
|
331
|
+
second: "2-digit"
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
var FORMATTERS = /* @__PURE__ */ new Map();
|
|
335
|
+
function zonedFormatter(locale, fields, timeZone) {
|
|
336
|
+
const key = JSON.stringify([locale ?? null, timeZone ?? null, fields]);
|
|
337
|
+
let fmt = FORMATTERS.get(key);
|
|
338
|
+
if (!fmt) {
|
|
339
|
+
fmt = new Intl.DateTimeFormat(locale, { ...fields, timeZone });
|
|
340
|
+
FORMATTERS.set(key, fmt);
|
|
341
|
+
}
|
|
342
|
+
return fmt;
|
|
343
|
+
}
|
|
344
|
+
function formatterFor(timezone, fields, locale) {
|
|
345
|
+
const zone = timezone === VIEWER_TIMEZONE ? void 0 : timezone || "UTC";
|
|
288
346
|
try {
|
|
289
|
-
return
|
|
347
|
+
return zonedFormatter(locale, fields, zone);
|
|
290
348
|
} catch {
|
|
291
|
-
return
|
|
292
|
-
}
|
|
349
|
+
return zonedFormatter(locale, fields, "UTC");
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
function toValidDate(date) {
|
|
353
|
+
if (date === null || date === void 0 || date === "") return null;
|
|
354
|
+
const d = date instanceof Date ? date : new Date(date);
|
|
355
|
+
return Number.isNaN(d.getTime()) ? null : d;
|
|
356
|
+
}
|
|
357
|
+
function formatDateWithTimezone(date, timezone, style = "medium", options) {
|
|
358
|
+
const dateObj = toValidDate(date);
|
|
359
|
+
if (!dateObj) return "";
|
|
360
|
+
const { timeZone: _ignored, ...fields } = typeof style === "string" ? ZONED_DATE_STYLES[style] : style;
|
|
361
|
+
return formatterFor(timezone, fields, options?.viewerLocale ? void 0 : "en-US").format(dateObj);
|
|
362
|
+
}
|
|
363
|
+
function formatDateTimeYmd(date, timezone, options) {
|
|
364
|
+
const dateObj = toValidDate(date);
|
|
365
|
+
if (!dateObj) return "";
|
|
366
|
+
const parts = formatterFor(
|
|
367
|
+
timezone,
|
|
368
|
+
{ year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", hourCycle: "h23" },
|
|
369
|
+
"en-US"
|
|
370
|
+
).formatToParts(dateObj);
|
|
371
|
+
const part = (type) => parts.find((p) => p.type === type)?.value ?? "";
|
|
372
|
+
return `${part("year")}/${part("month")}/${part("day")}${options?.separator ?? ", "}${part("hour")}:${part("minute")}`;
|
|
373
|
+
}
|
|
374
|
+
function formatTimeWithTimezone(date, timezone, options) {
|
|
375
|
+
return formatDateWithTimezone(
|
|
376
|
+
date,
|
|
377
|
+
timezone,
|
|
378
|
+
{
|
|
379
|
+
hour: "numeric",
|
|
380
|
+
minute: "2-digit",
|
|
381
|
+
// A viewer-locale clock uses the locale's own 12/24h convention.
|
|
382
|
+
...options?.viewerLocale ? {} : { hour12: true },
|
|
383
|
+
...options?.withZoneLabel ? { timeZoneName: "short" } : {}
|
|
384
|
+
},
|
|
385
|
+
{ viewerLocale: options?.viewerLocale }
|
|
386
|
+
);
|
|
387
|
+
}
|
|
388
|
+
function formatProgramDate(at, style = "medium") {
|
|
389
|
+
return formatDateWithTimezone(at.instant ?? at.utcDate, at.timezone, style);
|
|
390
|
+
}
|
|
391
|
+
function isOrderedRange(from, to) {
|
|
392
|
+
if (!from || !to) return false;
|
|
393
|
+
const a = (typeof from === "string" ? new Date(from) : from).getTime();
|
|
394
|
+
const b = (typeof to === "string" ? new Date(to) : to).getTime();
|
|
395
|
+
return Number.isFinite(a) && Number.isFinite(b) && b > a;
|
|
293
396
|
}
|
|
294
397
|
function formatDurationFromRange(startAt, endAt) {
|
|
295
|
-
if (!startAt
|
|
398
|
+
if (!isOrderedRange(startAt, endAt)) return "";
|
|
296
399
|
const start = typeof startAt === "string" ? new Date(startAt) : startAt;
|
|
297
400
|
const end = typeof endAt === "string" ? new Date(endAt) : endAt;
|
|
298
|
-
const
|
|
299
|
-
|
|
401
|
+
const minutes = Math.round((end.getTime() - start.getTime()) / 6e4);
|
|
402
|
+
if (minutes <= 0) return "";
|
|
300
403
|
if (minutes >= 60) {
|
|
301
404
|
const hours = Math.floor(minutes / 60);
|
|
302
405
|
const mins = minutes % 60;
|
|
@@ -319,23 +422,14 @@ function formatDateUTC(value, options = {}) {
|
|
|
319
422
|
}
|
|
320
423
|
}
|
|
321
424
|
if (!Number.isFinite(ms)) return fallback;
|
|
322
|
-
return
|
|
323
|
-
year: "numeric",
|
|
324
|
-
month: "short",
|
|
325
|
-
day: "numeric",
|
|
326
|
-
timeZone: timezone === "local" ? void 0 : "UTC"
|
|
327
|
-
});
|
|
425
|
+
return formatDateWithTimezone(ms, timezone === "local" ? VIEWER_TIMEZONE : null, "medium");
|
|
328
426
|
}
|
|
329
427
|
function formatEntryMonthUTC(entryMonth, style = "short") {
|
|
330
428
|
if (!entryMonth) return null;
|
|
331
|
-
return
|
|
429
|
+
return formatDateWithTimezone(entryMonth, null, style === "long" ? "monthYear" : "monthYearShort");
|
|
332
430
|
}
|
|
333
431
|
function formatLegalDate(dateInput) {
|
|
334
|
-
return
|
|
335
|
-
year: "numeric",
|
|
336
|
-
month: "2-digit",
|
|
337
|
-
day: "2-digit"
|
|
338
|
-
}).format(new Date(dateInput));
|
|
432
|
+
return formatDateWithTimezone(dateInput, null, "numeric");
|
|
339
433
|
}
|
|
340
434
|
function formatCurrency(value) {
|
|
341
435
|
if (value == null) return "N/A";
|
|
@@ -409,31 +503,13 @@ function getTrendColors(direction, polarity = "positive") {
|
|
|
409
503
|
}
|
|
410
504
|
function formatDateRange(start, end) {
|
|
411
505
|
if (!start || !end) return "";
|
|
412
|
-
const fmt = (s) => {
|
|
413
|
-
const bareMatch = /^(\d{4})-(\d{2})-(\d{2})$/.exec(s);
|
|
414
|
-
const d = bareMatch ? new Date(Number(bareMatch[1]), Number(bareMatch[2]) - 1, Number(bareMatch[3])) : new Date(s);
|
|
415
|
-
if (Number.isNaN(d.getTime())) return s;
|
|
416
|
-
return d.toLocaleDateString(void 0, {
|
|
417
|
-
month: "short",
|
|
418
|
-
day: "numeric",
|
|
419
|
-
year: "numeric"
|
|
420
|
-
});
|
|
421
|
-
};
|
|
506
|
+
const fmt = (s) => formatDateWithTimezone(s, /^\d{4}-\d{2}-\d{2}$/.test(s) ? null : VIEWER_TIMEZONE, "medium") || s;
|
|
422
507
|
return `${fmt(start)} \u2014 ${fmt(end)}`;
|
|
423
508
|
}
|
|
424
509
|
function formatDateTimeAt(dateString) {
|
|
425
|
-
const
|
|
426
|
-
const
|
|
427
|
-
|
|
428
|
-
day: "numeric",
|
|
429
|
-
year: "numeric"
|
|
430
|
-
});
|
|
431
|
-
const timeStr = date.toLocaleTimeString("en-US", {
|
|
432
|
-
hour: "numeric",
|
|
433
|
-
minute: "2-digit",
|
|
434
|
-
hour12: true
|
|
435
|
-
});
|
|
436
|
-
return `${dateStr} at ${timeStr}`;
|
|
510
|
+
const dateStr = formatDateWithTimezone(dateString, VIEWER_TIMEZONE, "medium");
|
|
511
|
+
const timeStr = formatTimeWithTimezone(dateString, VIEWER_TIMEZONE);
|
|
512
|
+
return dateStr && timeStr ? `${dateStr} at ${timeStr}` : "";
|
|
437
513
|
}
|
|
438
514
|
function formatDurationFromMs(ms) {
|
|
439
515
|
if (!ms || isNaN(ms) || ms < 0) return "0ms";
|
|
@@ -485,6 +561,21 @@ function formatBioText(aboutHtml, fallback = "") {
|
|
|
485
561
|
}
|
|
486
562
|
return stripHtml(aboutHtml).trim() || fallback;
|
|
487
563
|
}
|
|
564
|
+
function formatProgramTimeRange(at, opts = {}) {
|
|
565
|
+
const source = at.instant ?? at.utcDate ?? opts.startAt;
|
|
566
|
+
const label = opts.withZoneLabel === true;
|
|
567
|
+
const bare = formatTimeWithTimezone(source, at.timezone);
|
|
568
|
+
const labelled = label ? formatTimeWithTimezone(source, at.timezone, { withZoneLabel: true }) : bare;
|
|
569
|
+
const ordered = isOrderedRange(source, opts.endAt);
|
|
570
|
+
const end = ordered && opts.endAt ? formatTimeWithTimezone(opts.endAt, at.timezone, { withZoneLabel: label }) : "";
|
|
571
|
+
if (!bare) return "";
|
|
572
|
+
return end ? `${bare} - ${end}` : labelled;
|
|
573
|
+
}
|
|
574
|
+
function formatWebinarTimeMeta(at, opts) {
|
|
575
|
+
const duration = formatDurationFromRange(opts.startAt, opts.endAt);
|
|
576
|
+
const time = formatProgramTimeRange(at, { startAt: opts.startAt, withZoneLabel: opts.withZoneLabel });
|
|
577
|
+
return [time, duration].filter(Boolean).join(" \xB7 ");
|
|
578
|
+
}
|
|
488
579
|
var PLAY_ICON_PATH = "M4.875 5.006c0-2.501 2.793-3.989 4.87-2.592l9.78 6.578c2.135 1.437 2.135 4.58 0 6.016l-9.78 6.579c-2.077 1.396-4.87-.091-4.87-2.593zm2.25 13.988c0 .7.783 1.118 1.364.727l9.78-6.58c.81-.545.81-1.738 0-2.283L8.488 4.28a.875.875 0 0 0-1.364.726v13.988Z";
|
|
489
580
|
|
|
490
581
|
// src/utils/color-analysis.ts
|
|
@@ -1953,21 +2044,11 @@ function getConfidenceLabel(confidence) {
|
|
|
1953
2044
|
}
|
|
1954
2045
|
|
|
1955
2046
|
// src/utils/date-formatters.ts
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
"
|
|
1960
|
-
|
|
1961
|
-
"May",
|
|
1962
|
-
"June",
|
|
1963
|
-
"July",
|
|
1964
|
-
"August",
|
|
1965
|
-
"September",
|
|
1966
|
-
"October",
|
|
1967
|
-
"November",
|
|
1968
|
-
"December"
|
|
1969
|
-
];
|
|
1970
|
-
var MONTHS_SHORT = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
2047
|
+
function formatDayHead(dateString, style) {
|
|
2048
|
+
const ymd = splitYmd(dateString);
|
|
2049
|
+
if (!ymd) return dateString;
|
|
2050
|
+
return formatDateWithTimezone(ymd.join("-"), null, style) || dateString;
|
|
2051
|
+
}
|
|
1971
2052
|
function splitYmd(dateString) {
|
|
1972
2053
|
const head = dateString.split("T")[0];
|
|
1973
2054
|
const parts = head.split("-");
|
|
@@ -1975,22 +2056,13 @@ function splitYmd(dateString) {
|
|
|
1975
2056
|
return [parts[0], parts[1], parts[2]];
|
|
1976
2057
|
}
|
|
1977
2058
|
function formatReleaseDate(dateString) {
|
|
1978
|
-
|
|
1979
|
-
if (!ymd) return dateString;
|
|
1980
|
-
const [year, month, day] = ymd;
|
|
1981
|
-
return `${MONTHS_LONG[parseInt(month) - 1]} ${parseInt(day)}, ${year}`;
|
|
2059
|
+
return formatDayHead(dateString, "long");
|
|
1982
2060
|
}
|
|
1983
2061
|
function formatDateShort(dateString) {
|
|
1984
|
-
|
|
1985
|
-
if (!ymd) return dateString;
|
|
1986
|
-
const [year, month, day] = ymd;
|
|
1987
|
-
return `${MONTHS_SHORT[parseInt(month) - 1]} ${parseInt(day)}, ${year}`;
|
|
2062
|
+
return formatDayHead(dateString, "medium");
|
|
1988
2063
|
}
|
|
1989
2064
|
function formatDateSlashUTC(dateString) {
|
|
1990
|
-
|
|
1991
|
-
if (!ymd) return dateString;
|
|
1992
|
-
const [year, month, day] = ymd;
|
|
1993
|
-
return `${month}/${day}/${year}`;
|
|
2065
|
+
return formatDayHead(dateString, "numeric");
|
|
1994
2066
|
}
|
|
1995
2067
|
|
|
1996
2068
|
// src/utils/release-badge.ts
|
|
@@ -2942,6 +3014,13 @@ function generateImageSizes(_url) {
|
|
|
2942
3014
|
}
|
|
2943
3015
|
|
|
2944
3016
|
// src/utils/date-utils.ts
|
|
3017
|
+
var ZONED_DATE_FIELDS_MEDIUM_DATETIME = {
|
|
3018
|
+
year: "numeric",
|
|
3019
|
+
month: "short",
|
|
3020
|
+
day: "numeric",
|
|
3021
|
+
hour: "numeric",
|
|
3022
|
+
minute: "2-digit"
|
|
3023
|
+
};
|
|
2945
3024
|
function formatTicketRelativeTime(iso) {
|
|
2946
3025
|
const now = /* @__PURE__ */ new Date();
|
|
2947
3026
|
const date = new Date(iso);
|
|
@@ -2952,22 +3031,10 @@ function formatTicketRelativeTime(iso) {
|
|
|
2952
3031
|
if (diffMin < 60) return `${diffMin} min ago`;
|
|
2953
3032
|
const diffHours = Math.floor(diffMin / 60);
|
|
2954
3033
|
if (diffHours < 24) return diffHours === 1 ? "1 hour ago" : `${diffHours} hours ago`;
|
|
2955
|
-
|
|
2956
|
-
const dd = String(date.getUTCDate()).padStart(2, "0");
|
|
2957
|
-
const yyyy = date.getUTCFullYear();
|
|
2958
|
-
return `${mm}/${dd}/${yyyy}`;
|
|
3034
|
+
return formatDateWithTimezone(date, null, "numeric");
|
|
2959
3035
|
}
|
|
2960
3036
|
function formatTicketFullTimestamp(iso) {
|
|
2961
|
-
|
|
2962
|
-
if (Number.isNaN(date.getTime())) return "";
|
|
2963
|
-
const mm = String(date.getUTCMonth() + 1).padStart(2, "0");
|
|
2964
|
-
const dd = String(date.getUTCDate()).padStart(2, "0");
|
|
2965
|
-
const yyyy = date.getUTCFullYear();
|
|
2966
|
-
let hours = date.getUTCHours();
|
|
2967
|
-
const minutes = String(date.getUTCMinutes()).padStart(2, "0");
|
|
2968
|
-
const ampm = hours >= 12 ? "PM" : "AM";
|
|
2969
|
-
hours = hours % 12 || 12;
|
|
2970
|
-
return `${mm}/${dd}/${yyyy}, ${hours}:${minutes} ${ampm}`;
|
|
3037
|
+
return formatDateWithTimezone(iso, null, "numericDateTime");
|
|
2971
3038
|
}
|
|
2972
3039
|
function formatRelativeTime(timestamp) {
|
|
2973
3040
|
const now = /* @__PURE__ */ new Date();
|
|
@@ -2991,11 +3058,10 @@ function formatRelativeTime(timestamp) {
|
|
|
2991
3058
|
const weeks = Math.floor(diffInDays / 7);
|
|
2992
3059
|
return `${weeks}w ago`;
|
|
2993
3060
|
}
|
|
2994
|
-
return targetTime
|
|
3061
|
+
return formatDateWithTimezone(targetTime, null, {
|
|
2995
3062
|
month: "short",
|
|
2996
3063
|
day: "numeric",
|
|
2997
|
-
year: targetTime.getUTCFullYear() !== now.getUTCFullYear() ? "numeric" : void 0
|
|
2998
|
-
timeZone: "UTC"
|
|
3064
|
+
year: targetTime.getUTCFullYear() !== now.getUTCFullYear() ? "numeric" : void 0
|
|
2999
3065
|
});
|
|
3000
3066
|
}
|
|
3001
3067
|
function formatAbsoluteDate(timestamp, options = {}) {
|
|
@@ -3004,16 +3070,12 @@ function formatAbsoluteDate(timestamp, options = {}) {
|
|
|
3004
3070
|
console.warn("\u26A0\uFE0F Invalid timestamp in formatAbsoluteDate:", timestamp);
|
|
3005
3071
|
return "Invalid date";
|
|
3006
3072
|
}
|
|
3007
|
-
|
|
3073
|
+
return formatDateWithTimezone(targetTime, options.timeZone ?? null, {
|
|
3008
3074
|
year: "numeric",
|
|
3009
3075
|
month: "short",
|
|
3010
3076
|
day: "numeric",
|
|
3011
|
-
// Pin to UTC so SSR (Vercel = UTC) and the client agree (React #418).
|
|
3012
|
-
// Caller can override via `options`.
|
|
3013
|
-
timeZone: "UTC",
|
|
3014
3077
|
...options
|
|
3015
|
-
};
|
|
3016
|
-
return targetTime.toLocaleDateString("en-US", defaultOptions);
|
|
3078
|
+
});
|
|
3017
3079
|
}
|
|
3018
3080
|
function formatDateTime(timestamp, options = {}) {
|
|
3019
3081
|
const targetTime = typeof timestamp === "string" ? new Date(timestamp) : timestamp;
|
|
@@ -3021,18 +3083,10 @@ function formatDateTime(timestamp, options = {}) {
|
|
|
3021
3083
|
console.warn("\u26A0\uFE0F Invalid timestamp in formatDateTime:", timestamp);
|
|
3022
3084
|
return "Invalid date";
|
|
3023
3085
|
}
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
month: "short",
|
|
3027
|
-
day: "numeric",
|
|
3028
|
-
hour: "numeric",
|
|
3029
|
-
minute: "2-digit",
|
|
3030
|
-
// Pin to UTC so SSR (Vercel = UTC) and the client agree (React #418).
|
|
3031
|
-
// Caller can override via `options`.
|
|
3032
|
-
timeZone: "UTC",
|
|
3086
|
+
return formatDateWithTimezone(targetTime, options.timeZone ?? null, {
|
|
3087
|
+
...ZONED_DATE_FIELDS_MEDIUM_DATETIME,
|
|
3033
3088
|
...options
|
|
3034
|
-
};
|
|
3035
|
-
return targetTime.toLocaleDateString("en-US", defaultOptions);
|
|
3089
|
+
});
|
|
3036
3090
|
}
|
|
3037
3091
|
function getDetailedTimeDifference(timestamp) {
|
|
3038
3092
|
const now = /* @__PURE__ */ new Date();
|
|
@@ -5467,6 +5521,53 @@ function pickBadgePaletteColor({
|
|
|
5467
5521
|
return pool[Math.floor(random() * pool.length) % pool.length];
|
|
5468
5522
|
}
|
|
5469
5523
|
|
|
5470
|
-
|
|
5524
|
+
// src/utils/program-instant.ts
|
|
5525
|
+
var programStr = (value) => typeof value === "string" && value ? value : null;
|
|
5526
|
+
function programDateInstant(item) {
|
|
5527
|
+
const timezone = programStr(item.timezone);
|
|
5528
|
+
const date = programStr(item.date);
|
|
5529
|
+
const startAt = programStr(item.start_at);
|
|
5530
|
+
return {
|
|
5531
|
+
instant: timezone ? date ?? startAt : null,
|
|
5532
|
+
timezone,
|
|
5533
|
+
utcDate: date ?? startAt
|
|
5534
|
+
};
|
|
5535
|
+
}
|
|
5536
|
+
function webinarTiming(item) {
|
|
5537
|
+
return { startAt: programStr(item.start_at), endAt: programStr(item.end_at) };
|
|
5538
|
+
}
|
|
5539
|
+
function programMetaLine(item, kind, fmt) {
|
|
5540
|
+
const at = programDateInstant(item);
|
|
5541
|
+
const isScheduled = item.status === "scheduled";
|
|
5542
|
+
let typeMeta = null;
|
|
5543
|
+
if (kind === "podcast" && typeof item.duration_seconds === "number" && item.duration_seconds > 0 && !isScheduled) {
|
|
5544
|
+
typeMeta = fmt.duration(item.duration_seconds);
|
|
5545
|
+
} else if (kind === "event" && typeof item.location_name === "string" && item.location_name.trim().length > 0) {
|
|
5546
|
+
typeMeta = item.location_name;
|
|
5547
|
+
} else if (kind === "webinar" && programStr(item.start_at)) {
|
|
5548
|
+
typeMeta = fmt.webinarMeta(at, webinarTiming(item)) || null;
|
|
5549
|
+
}
|
|
5550
|
+
return { at, typeMeta, line: [fmt.date(at), typeMeta].filter(Boolean).join(" \xB7 ") };
|
|
5551
|
+
}
|
|
5552
|
+
function programMetaFormatters(fmt, opts = {}) {
|
|
5553
|
+
const withZoneLabel = opts.withZoneLabel !== false;
|
|
5554
|
+
return {
|
|
5555
|
+
// The meta line always renders the compact day; the one surface that wants
|
|
5556
|
+
// the weekday form renders it in its own slot, so a `dateStyle` option here
|
|
5557
|
+
// would exist for no caller.
|
|
5558
|
+
date: (at) => fmt.date(at, "medium"),
|
|
5559
|
+
duration: fmt.duration,
|
|
5560
|
+
webinarMeta: (at, o) => fmt.webinarMeta(at, { ...o, withZoneLabel })
|
|
5561
|
+
};
|
|
5562
|
+
}
|
|
5563
|
+
|
|
5564
|
+
// src/utils/program-meta-renderers.ts
|
|
5565
|
+
var PROGRAM_META_RENDERERS = {
|
|
5566
|
+
date: formatProgramDate,
|
|
5567
|
+
duration: formatDurationCompact,
|
|
5568
|
+
webinarMeta: formatWebinarTimeMeta
|
|
5569
|
+
};
|
|
5570
|
+
|
|
5571
|
+
export { ANTHROPIC_SUPPORTED_IMAGE_MIME, AUTO_CONTINUATION_DIRECTIVE_PREFIX, BADGE_PALETTE, BITE_ID_RE, BRAND_MARK_SVGS, CHAT_ATTACHMENT_MARKDOWN_PATTERN, CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM, CHAT_ATTACHMENT_VIEW_URL_PREFIX, CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED, CONTENT_REF_GROUPS, CSV_CONTENT_TYPE, CUSTOM_ITEM_ID, DEFAULT_CONTENT_SUFFIXES, DEFAULT_FOLDER_INDEX_FILE, DEFAULT_MIN_FILL_MS, DEFAULT_OS_PLATFORM, DELIVERY_TASK_TYPE_OPTIONS, DESIGN_PALETTE, DEV_SECTION_PARAM_KEYS, ELAPSED_MS_FIELD, FIRST_TOUCH_ATTRIBUTION_KEY, FullscreenSwitchController, GENERIC_EMAIL_DOMAINS, HEADING_EMOJI_RE, HEX_PATTERN, HONEYPOT_FIELD, HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, HUB_HEADER_OFFSET_PX, HUMANITY_SIGNAL_KEYS, ICON_REGISTRY, MAX_MONTH_OFFSET, MEDIA_TYPE, NO_CLIENT_CACHE, ODS_SPACING_PROPS, ODS_SPACING_TOKENS, ODS_SPACING_TOKEN_PATTERN, ODS_STEM_CLASSES, ODS_STEM_TOKENS, OPENFRAME_DEV_SECTIONS, OS_PLATFORMS, PAGE_PARAM_LIMITS, PLATFORM_BRAND, PLATFORM_SURFACE, PLATFORM_THEME, PLAY_ICON_PATH, PROGRAM_META_RENDERERS, ROADMAP_STATUS_OPTIONS, SCHEDULING_SLUG_SHAPE, SCROLL_ANCHOR, SCROLL_ANCHOR_WIRE_KEY, SECTION_HERO_ICON_CLASS, SEO_DESCRIPTION_MAX_LENGTH, SEO_TITLE_MAX_LENGTH, SOCIAL_PLATFORM_ALIASES, SOCIAL_PLATFORM_ALT_HOSTS, SOURCE_ICON_NAMES, SOURCE_LABELS_BY_TABLE, STICKY_HEADER_OFFSET_PX, TAILWIND_STEP_TO_ODS_TOKEN, TICKET_OPEN_PARAM, TICKET_STATUS_OPTIONS, VIEWER_TIMEZONE, WALKTHROUGH_OPEN_QUERY_PARAM, WALKTHROUGH_VIDEO_DISMISS_KEY, analyzeImageColor, announcementDismissCookieName, applyProxyAuth, brandMarkDataUri, buildAutoContinuationDirective, buildChatAttachmentViewUrl, buildDefaultHref, buildDiscussAddendum, buildDocumentTree, buildListUrl, buildOgPlaceholderUrl, buildSuggestionUrl, buildTicketOpenHref, canonicalContentRefType, captureFirstTouchAttribution, clamp, clampPageToTotal, classifySocialHost, cleanEmailDomain, clearAnnouncementDismissals, clearDismissCookie, clearEmbedProxyAuth, clearFirstTouchAttribution, clearLegacyAnnouncementCache, clearWalkthroughDismissal, clickupTaskUrl, cn, consumeAccessCode, createFenceTracker, createHeadingIdDeduper, createSearchParams, createSseSubscription, createUTCTimestamp, csvEscape, deepClone, defineParamSchema, delay, deriveActiveColor, deriveHoverColor, devSectionAnchorId, dismissAnnouncement, dismissWalkthrough, embedAuthedFetch, ensureBiteIds, errorMessage, escapeMarkdownInline, evaluateHumanitySignals, extractDomainFromEmail, extractDominantColor, extractEntityIdFilter, extractHumanitySignals, extractImageEdgeColorAsync, extractItemId, extractItems, extractSections, faqItemAnchor, faqSectionSlug, fetchPriorityProp, findAnchorElementByNormalizedId, findDocNodeByPath, findHoneypotCopySource, firstParamValue, flattenAssistantContent, formatAbbreviatedNumber, formatAbsoluteDate, formatBioText, formatBytes, formatBytesShort, formatChatAttachmentMarkdownForBubble, formatClassification, formatCompactMetric, formatCurrency, formatDate, formatDateRange, formatDateShort, formatDateSlashUTC, formatDateTime, formatDateTimeAt, formatDateTimeYmd, formatDateUTC, formatDateWithTimezone, formatDocName, formatDuration, formatDurationCompact, formatDurationFromMs, formatDurationFromRange, formatDurationMMSS, formatEntryMonthUTC, formatFileSize, formatLargeNumber, formatLegalDate, formatNumber, formatPercent, formatPhoneE164, formatPrice, formatPricingModel, formatProgramDate, formatProgramTimeRange, formatRelativeTime, formatReleaseDate, formatSingularLookupInvocation, formatTicketFullTimestamp, formatTicketRelativeTime, formatTimeWithTimezone, formatUnderscoreText, formatWebinarTimeMeta, formatWholeDollars, fromKeys, generateBiteId, generateImageSizes, generateRandomString, getAllPlatformBaseDomains, getBaseUrl, getBestContrastColor, getConfidenceBgClass, getConfidenceBorderClass, getConfidenceColorClass, getConfidenceLabel, getConfidenceLevel, getConfidenceTextClass, getContentRefLabel, getContentRefLabelOrTitleCase, getContrastRatio, getCountryByCode, getCountryPhoneData, getCurrentPlatform, getDefaultColorForPlatform, getDefaultIconForPlatform, getDetailedTimeDifference, getDocAncestorNodeIds, getDocSourceDefaultPath, getDynamicIcon, getEmbedProxyAuth, getFirstTouchAttribution, getIconComponent, getInitialExpandedNodeIds, getOSIcon, getOSLabel, getOSPlatformId, getOSTypeDefinition, getPersistedProxyEmail, getPlatformAccentColor, getPlatformBackgroundVarName, getPlatformBrand, getPlatformBrandClasses, getPlatformColor, getPlatformConfig, getPlatformDescription, getPlatformDisplayName, getPlatformIcon, getPlatformIconComponent, getPlatformIconComponent as getPlatformLogo, getPlatformProductionUrl, getPlatformSecondaryColor, getPlatformShortName, getPlatformSlogan, getPlatformTextVarName, getProxiedImageUrl, getReadableTextColor, getSemanticColor, getShellIcon, getShellLabel, getSlackCommunityJoinUrl, getSmallPlatformIcon, getSourceIconName, getSourceLabel, getStatusColorScheme, getTaskTypeLabel, getToolLabel, getToolTypeAliases, getTrendColors, hasGenericEmailDomain, hexToRgb2 as hexToRgb, hostMatches, isAnnouncementDismissed, isBadgePaletteKey, isBlankLine, isCrossOriginUrl, isDismissedCookieValue, isFigmaSlidesUrl, isGenericDomain, isGenericWebsiteDomain, isHumanitySignalKey, isImageMedia, isListedSchedulingName, isOSPlatform, isOrderedRange, isPublishableMediaType, isToday, isValidEmailDomain, isValidSchedulingSlug, isValidToolType, isVideoMedia, isWalkthroughDismissed, isWithinMinutes, makeComposeContentUrl, markdownToPlainText, matchBiteElement, nameInitials, navigateSamePageHash, normalizeAnchorId, normalizeDocPath, normalizeDomain, normalizeHashFragment, normalizeIconKey, normalizeOSType, normalizeSchedulingSlug, normalizeSocialPlatform, normalizeToolType, normalizeToolTypeWithFallback, orderContentRefTypes, pageCount, parseAttributionFromUrl, parseFaqHash, parseSchedulingLinkName, parseSchemaParams, parseScrollAnchor, parseWireCommandOverride, partitionMediaByType, pathToNodeId, personFirstName, personInitials, pick, pickBadgePaletteColor, pickReadableTextColor, pickSocialLink, platformAccentToken, platformAccentVarName, platformColors, platformDescriptions, platformDisplayNames, platformHexColors, platformIconNames, platformIcons, platformSecondaryToken, platformSecondaryVarName, platformShortNames, platformSlogans, positiveInt, programDateInstant, programMetaFormatters, programMetaLine, programStr, readDismissCookie, readLeadingDecisionFrame, releaseTypeToBadgeColor, resolveContentFetchPath, resolveReleaseCover, rgbToHex, sanitizeLandingUrl, sanitizeTitleForChat, scanHeadings, schedulingAudienceKey, scrollElementIntoView, serializeJsonLd, serializeSchemaParams, setEmbedAuthAdapter, setEmbedProxyAuth, shouldIncludeInUrl, shouldProxyImage, singleInitial, slugifyHeadingBase, slugifyHeadingText, socialPlatformHosts, sortTreeChildren, splitCsvEnv, stripChatAttachmentMarkdown, stripFolderIndexFromPath, stripHeadingEmojis, stripHtml, stripInlineMarkdown, switchPlatformTheme, titleCaseFromSlug, toClaudeEmbedUrl, toClaudeMirrorPath, toCsv, toDocSlug, toFigmaEmbedUrl, toFigmaOriginalUrl, toGoogleSheetsEmbedUrl, toGoogleSheetsOriginalUrl, toToolLabel, transformPlatformConfigsToOptions, truncateString, urlPathLooksLikeSvg, usePlatformColors, validateAccessCode, validateAndConsumeAccessCode, validateEmailDomain, validateEmailDomainList, validatePhoneNumber, walkthroughDismissCookieName, webinarTiming, withFirstTouchAttribution, withQuery, withWalkthroughOpenParam, writeDismissCookie };
|
|
5471
5572
|
//# sourceMappingURL=index.js.map
|
|
5472
5573
|
//# sourceMappingURL=index.js.map
|