@flamingo-stack/openframe-frontend-core 0.0.643 → 0.0.644-2208.6319.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/dist/chat-protocol/index.cjs +20 -3
  2. package/dist/chat-protocol/index.cjs.map +1 -1
  3. package/dist/chat-protocol/index.js +20 -3
  4. package/dist/chat-protocol/index.js.map +1 -1
  5. package/dist/chat-protocol/source-metadata.d.ts +7 -1
  6. package/dist/chat-protocol/source-metadata.d.ts.map +1 -1
  7. package/dist/{chunk-B42INNRA.cjs → chunk-2UA3DT5O.cjs} +199 -199
  8. package/dist/{chunk-B42INNRA.cjs.map → chunk-2UA3DT5O.cjs.map} +1 -1
  9. package/dist/{chunk-KX2FT7AS.cjs → chunk-2ZGEXLQW.cjs} +28 -28
  10. package/dist/{chunk-KX2FT7AS.cjs.map → chunk-2ZGEXLQW.cjs.map} +1 -1
  11. package/dist/{chunk-2NRLRRMR.cjs → chunk-3HSRNCDV.cjs} +226 -203
  12. package/dist/chunk-3HSRNCDV.cjs.map +1 -0
  13. package/dist/{chunk-64KDKDYC.js → chunk-5ELZ2NQ5.js} +6 -6
  14. package/dist/{chunk-2DJH6KHA.cjs → chunk-B46Q4DTN.cjs} +382 -386
  15. package/dist/chunk-B46Q4DTN.cjs.map +1 -0
  16. package/dist/{chunk-N7UYD57Q.js → chunk-C7RU466R.js} +3 -3
  17. package/dist/{chunk-2NODQ7FO.js → chunk-DSJZYRS6.js} +17 -21
  18. package/dist/{chunk-2NODQ7FO.js.map → chunk-DSJZYRS6.js.map} +1 -1
  19. package/dist/{chunk-26D6FM6L.cjs → chunk-EKSCVXA3.cjs} +6 -6
  20. package/dist/{chunk-26D6FM6L.cjs.map → chunk-EKSCVXA3.cjs.map} +1 -1
  21. package/dist/{chunk-7HL2PNQ3.js → chunk-GEGE3JXC.js} +5 -5
  22. package/dist/{chunk-7T673MHJ.cjs → chunk-GUB6BR26.cjs} +22 -22
  23. package/dist/{chunk-7T673MHJ.cjs.map → chunk-GUB6BR26.cjs.map} +1 -1
  24. package/dist/{chunk-3IPL6G7S.js → chunk-GXNQPCL4.js} +164 -141
  25. package/dist/chunk-GXNQPCL4.js.map +1 -0
  26. package/dist/{chunk-D6TWJEFW.cjs → chunk-GZXW5QWQ.cjs} +15 -15
  27. package/dist/{chunk-D6TWJEFW.cjs.map → chunk-GZXW5QWQ.cjs.map} +1 -1
  28. package/dist/{chunk-4TE53O6U.js → chunk-HAQRGJFL.js} +4 -4
  29. package/dist/{chunk-TIOHTWDA.js → chunk-INISTVWK.js} +6 -6
  30. package/dist/{chunk-IU3IYXMM.js → chunk-IRV2W7GN.js} +7 -7
  31. package/dist/{chunk-R2IU2Y2O.cjs → chunk-JWCAWGLG.cjs} +33 -33
  32. package/dist/{chunk-R2IU2Y2O.cjs.map → chunk-JWCAWGLG.cjs.map} +1 -1
  33. package/dist/{chunk-77EO26XV.cjs → chunk-LNLNPCII.cjs} +5 -5
  34. package/dist/{chunk-77EO26XV.cjs.map → chunk-LNLNPCII.cjs.map} +1 -1
  35. package/dist/{chunk-42NXGOTG.cjs → chunk-N3M56EE5.cjs} +3 -3
  36. package/dist/{chunk-42NXGOTG.cjs.map → chunk-N3M56EE5.cjs.map} +1 -1
  37. package/dist/{chunk-O7JMF5OT.js → chunk-O47SGDBV.js} +3 -3
  38. package/dist/{chunk-EWQI5MV6.cjs → chunk-OANRA5ML.cjs} +20 -20
  39. package/dist/{chunk-EWQI5MV6.cjs.map → chunk-OANRA5ML.cjs.map} +1 -1
  40. package/dist/{chunk-NCHLLTAR.js → chunk-PR6IR22M.js} +3 -3
  41. package/dist/{chunk-6MQBLFUM.js → chunk-Q7JDIDE2.js} +5 -5
  42. package/dist/{chunk-YG7KLZE7.js → chunk-R5EIFOW2.js} +4 -4
  43. package/dist/{chunk-5E6Y6766.cjs → chunk-S2E4I3WP.cjs} +29 -29
  44. package/dist/{chunk-5E6Y6766.cjs.map → chunk-S2E4I3WP.cjs.map} +1 -1
  45. package/dist/{chunk-SE6YRE3R.cjs → chunk-SAD5IUSO.cjs} +32 -32
  46. package/dist/{chunk-SE6YRE3R.cjs.map → chunk-SAD5IUSO.cjs.map} +1 -1
  47. package/dist/{chunk-3LXJEXPH.js → chunk-TAP4MJPF.js} +2 -2
  48. package/dist/{chunk-M3W5Y5DK.cjs → chunk-TEKH3J65.cjs} +11 -11
  49. package/dist/{chunk-M3W5Y5DK.cjs.map → chunk-TEKH3J65.cjs.map} +1 -1
  50. package/dist/{chunk-HA2U7WHU.js → chunk-TXNWDP3M.js} +3 -3
  51. package/dist/{chunk-IIZX3K2R.js → chunk-URGDDCJL.js} +2 -2
  52. package/dist/{chunk-TQ7KTANJ.js → chunk-V52INSJH.js} +3 -3
  53. package/dist/{chunk-FO7SD2IQ.cjs → chunk-VA6N7IVZ.cjs} +6 -6
  54. package/dist/{chunk-FO7SD2IQ.cjs.map → chunk-VA6N7IVZ.cjs.map} +1 -1
  55. package/dist/{chunk-CWHLVXUW.cjs → chunk-WYS66RIO.cjs} +10 -10
  56. package/dist/{chunk-CWHLVXUW.cjs.map → chunk-WYS66RIO.cjs.map} +1 -1
  57. package/dist/{chunk-XJLWGYL4.cjs → chunk-XVGWYNRY.cjs} +81 -81
  58. package/dist/{chunk-XJLWGYL4.cjs.map → chunk-XVGWYNRY.cjs.map} +1 -1
  59. package/dist/{chunk-ZU2JBBOE.cjs → chunk-XYJ3URIN.cjs} +59 -59
  60. package/dist/{chunk-ZU2JBBOE.cjs.map → chunk-XYJ3URIN.cjs.map} +1 -1
  61. package/dist/{chunk-FVIT23I5.js → chunk-Z5KAIEZ4.js} +3 -3
  62. package/dist/{chunk-YT6RGA3X.js → chunk-ZPLT4XLC.js} +3 -3
  63. package/dist/components/case-studies/index.cjs +16 -16
  64. package/dist/components/case-studies/index.js +4 -4
  65. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  66. package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
  67. package/dist/components/chat/index.cjs +3 -9
  68. package/dist/components/chat/index.cjs.map +1 -1
  69. package/dist/components/chat/index.js +2 -8
  70. package/dist/components/chat/types/entities/program-types.d.ts +29 -18
  71. package/dist/components/chat/types/entities/program-types.d.ts.map +1 -1
  72. package/dist/components/chat/utils/compact-card-classes.d.ts.map +1 -1
  73. package/dist/components/contact/index.cjs +5 -5
  74. package/dist/components/contact/index.js +4 -4
  75. package/dist/components/docs/index.cjs +8 -8
  76. package/dist/components/docs/index.js +7 -7
  77. package/dist/components/embeds/index.cjs +5 -5
  78. package/dist/components/embeds/index.js +4 -4
  79. package/dist/components/faq/index.cjs +5 -5
  80. package/dist/components/faq/index.js +4 -4
  81. package/dist/components/features/index.cjs +4 -4
  82. package/dist/components/features/index.js +3 -3
  83. package/dist/components/help-center-pages/index.cjs +24 -24
  84. package/dist/components/help-center-pages/index.js +15 -15
  85. package/dist/components/index.cjs +53 -59
  86. package/dist/components/index.cjs.map +1 -1
  87. package/dist/components/index.js +15 -21
  88. package/dist/components/index.js.map +1 -1
  89. package/dist/components/meeting-scheduler/index.cjs +34 -34
  90. package/dist/components/meeting-scheduler/index.js +3 -3
  91. package/dist/components/navigation/index.cjs +7 -7
  92. package/dist/components/navigation/index.js +6 -6
  93. package/dist/components/onboarding-guides/index.cjs +7 -7
  94. package/dist/components/onboarding-guides/index.js +6 -6
  95. package/dist/components/related-content/index.cjs +3 -3
  96. package/dist/components/related-content/index.js +2 -2
  97. package/dist/components/tickets/index.cjs +8 -8
  98. package/dist/components/tickets/index.js +7 -7
  99. package/dist/components/ui/index.cjs +4 -10
  100. package/dist/components/ui/index.cjs.map +1 -1
  101. package/dist/components/ui/index.js +3 -9
  102. package/dist/index.cjs +24 -8
  103. package/dist/index.cjs.map +1 -1
  104. package/dist/index.js +30 -14
  105. package/dist/index.js.map +1 -1
  106. package/dist/utils/format.d.ts +127 -4
  107. package/dist/utils/format.d.ts.map +1 -1
  108. package/dist/utils/index.cjs +113 -5
  109. package/dist/utils/index.cjs.map +1 -1
  110. package/dist/utils/index.d.ts +4 -1
  111. package/dist/utils/index.d.ts.map +1 -1
  112. package/dist/utils/index.js +103 -6
  113. package/dist/utils/index.js.map +1 -1
  114. package/dist/utils/program-instant.d.ts +171 -0
  115. package/dist/utils/program-instant.d.ts.map +1 -0
  116. package/dist/utils/program-meta-renderers.d.ts +3 -0
  117. package/dist/utils/program-meta-renderers.d.ts.map +1 -0
  118. package/dist/utils/url-safety.d.ts +35 -0
  119. package/dist/utils/url-safety.d.ts.map +1 -0
  120. package/package.json +1 -1
  121. package/src/chat-protocol/__tests__/source-metadata.test.ts +76 -0
  122. package/src/chat-protocol/source-metadata.ts +40 -6
  123. package/src/components/chat/entity-cards/.program-card.md +1 -1
  124. package/src/components/chat/entity-cards/dispatch.tsx +9 -27
  125. package/src/components/chat/entity-cards/program-card.tsx +42 -81
  126. package/src/components/chat/types/entities/program-types.ts +29 -89
  127. package/src/components/chat/utils/.compact-card-classes.md +1 -1
  128. package/src/components/chat/utils/compact-card-classes.ts +5 -3
  129. package/src/utils/.format.md +5 -2
  130. package/src/utils/__tests__/format-program-dates.test.ts +180 -0
  131. package/src/utils/__tests__/program-instant.test.ts +170 -0
  132. package/src/utils/__tests__/url-safety.test.ts +44 -0
  133. package/src/utils/format.ts +228 -13
  134. package/src/utils/index.ts +22 -0
  135. package/src/utils/program-instant.ts +211 -0
  136. package/src/utils/program-meta-renderers.ts +18 -0
  137. package/src/utils/url-safety.ts +45 -0
  138. package/dist/chunk-2DJH6KHA.cjs.map +0 -1
  139. package/dist/chunk-2NRLRRMR.cjs.map +0 -1
  140. package/dist/chunk-3IPL6G7S.js.map +0 -1
  141. /package/dist/{chunk-64KDKDYC.js.map → chunk-5ELZ2NQ5.js.map} +0 -0
  142. /package/dist/{chunk-N7UYD57Q.js.map → chunk-C7RU466R.js.map} +0 -0
  143. /package/dist/{chunk-7HL2PNQ3.js.map → chunk-GEGE3JXC.js.map} +0 -0
  144. /package/dist/{chunk-4TE53O6U.js.map → chunk-HAQRGJFL.js.map} +0 -0
  145. /package/dist/{chunk-TIOHTWDA.js.map → chunk-INISTVWK.js.map} +0 -0
  146. /package/dist/{chunk-IU3IYXMM.js.map → chunk-IRV2W7GN.js.map} +0 -0
  147. /package/dist/{chunk-O7JMF5OT.js.map → chunk-O47SGDBV.js.map} +0 -0
  148. /package/dist/{chunk-NCHLLTAR.js.map → chunk-PR6IR22M.js.map} +0 -0
  149. /package/dist/{chunk-6MQBLFUM.js.map → chunk-Q7JDIDE2.js.map} +0 -0
  150. /package/dist/{chunk-YG7KLZE7.js.map → chunk-R5EIFOW2.js.map} +0 -0
  151. /package/dist/{chunk-3LXJEXPH.js.map → chunk-TAP4MJPF.js.map} +0 -0
  152. /package/dist/{chunk-HA2U7WHU.js.map → chunk-TXNWDP3M.js.map} +0 -0
  153. /package/dist/{chunk-IIZX3K2R.js.map → chunk-URGDDCJL.js.map} +0 -0
  154. /package/dist/{chunk-TQ7KTANJ.js.map → chunk-V52INSJH.js.map} +0 -0
  155. /package/dist/{chunk-FVIT23I5.js.map → chunk-Z5KAIEZ4.js.map} +0 -0
  156. /package/dist/{chunk-YT6RGA3X.js.map → chunk-ZPLT4XLC.js.map} +0 -0
@@ -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, 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,yB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278
278
  }
279
- function formatTimeWithTimezone(date, timezone) {
279
+ function formatTimeWithTimezone(date, timezone, options) {
280
280
  if (!date) return "";
281
281
  const dateObj = typeof date === "string" ? new Date(date) : date;
282
+ if (Number.isNaN(dateObj.getTime())) return "";
282
283
  const opts = {
283
284
  hour: "numeric",
284
285
  minute: "2-digit",
285
286
  hour12: true,
286
- timeZone: timezone || "UTC"
287
+ timeZone: timezone || "UTC",
288
+ ...options?.withZoneLabel ? { timeZoneName: "short" } : {}
287
289
  };
288
290
  try {
289
291
  return dateObj.toLocaleTimeString("en-US", opts);
@@ -291,12 +293,41 @@ function formatTimeWithTimezone(date, timezone) {
291
293
  return dateObj.toLocaleTimeString("en-US", { ...opts, timeZone: "UTC" });
292
294
  }
293
295
  }
296
+ var ZONED_DATE_STYLES = {
297
+ medium: { year: "numeric", month: "short", day: "numeric" },
298
+ weekday: { weekday: "long", day: "numeric", month: "long" },
299
+ // Spelled-out month, no weekday — what an SEO description reads best as.
300
+ long: { year: "numeric", month: "long", day: "numeric" }
301
+ };
302
+ function formatDateWithTimezone(date, timezone, style = "medium") {
303
+ if (!date) return "";
304
+ const dateObj = typeof date === "string" ? new Date(date) : date;
305
+ if (Number.isNaN(dateObj.getTime())) return "";
306
+ const opts = {
307
+ ...ZONED_DATE_STYLES[style],
308
+ timeZone: timezone || "UTC"
309
+ };
310
+ try {
311
+ return dateObj.toLocaleDateString("en-US", opts);
312
+ } catch {
313
+ return dateObj.toLocaleDateString("en-US", { ...opts, timeZone: "UTC" });
314
+ }
315
+ }
316
+ function formatProgramDate(at, style = "medium") {
317
+ return formatDateWithTimezone(at.instant ?? at.utcDate, at.timezone, style);
318
+ }
319
+ function isOrderedRange(from, to) {
320
+ if (!from || !to) return false;
321
+ const a = (typeof from === "string" ? new Date(from) : from).getTime();
322
+ const b = (typeof to === "string" ? new Date(to) : to).getTime();
323
+ return Number.isFinite(a) && Number.isFinite(b) && b > a;
324
+ }
294
325
  function formatDurationFromRange(startAt, endAt) {
295
- if (!startAt || !endAt) return "";
326
+ if (!isOrderedRange(startAt, endAt)) return "";
296
327
  const start = typeof startAt === "string" ? new Date(startAt) : startAt;
297
328
  const end = typeof endAt === "string" ? new Date(endAt) : endAt;
298
- const durationMs = end.getTime() - start.getTime();
299
- const minutes = Math.round(durationMs / 6e4);
329
+ const minutes = Math.round((end.getTime() - start.getTime()) / 6e4);
330
+ if (minutes <= 0) return "";
300
331
  if (minutes >= 60) {
301
332
  const hours = Math.floor(minutes / 60);
302
333
  const mins = minutes % 60;
@@ -485,6 +516,22 @@ function formatBioText(aboutHtml, fallback = "") {
485
516
  }
486
517
  return stripHtml(aboutHtml).trim() || fallback;
487
518
  }
519
+ function formatProgramTimeRange(at, opts = {}) {
520
+ if (at.dateOnly) return "";
521
+ const source = at.instant ?? at.utcDate ?? opts.startAt;
522
+ const label = opts.withZoneLabel === true;
523
+ const bare = formatTimeWithTimezone(source, at.timezone);
524
+ const labelled = label ? formatTimeWithTimezone(source, at.timezone, { withZoneLabel: true }) : bare;
525
+ const ordered = isOrderedRange(source, opts.endAt);
526
+ const end = ordered && opts.endAt ? formatTimeWithTimezone(opts.endAt, at.timezone, { withZoneLabel: label }) : "";
527
+ if (!bare) return "";
528
+ return end ? `${bare} - ${end}` : labelled;
529
+ }
530
+ function formatWebinarTimeMeta(at, opts) {
531
+ const duration = formatDurationFromRange(opts.startAt, opts.endAt);
532
+ const time = formatProgramTimeRange(at, { startAt: opts.startAt, withZoneLabel: opts.withZoneLabel });
533
+ return [time, duration].filter(Boolean).join(" \xB7 ");
534
+ }
488
535
  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
536
 
490
537
  // src/utils/color-analysis.ts
@@ -5467,6 +5514,56 @@ function pickBadgePaletteColor({
5467
5514
  return pool[Math.floor(random() * pool.length) % pool.length];
5468
5515
  }
5469
5516
 
5470
- 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, 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, 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, formatDateUTC, formatDocName, formatDuration, formatDurationCompact, formatDurationFromMs, formatDurationFromRange, formatDurationMMSS, formatEntryMonthUTC, formatFileSize, formatLargeNumber, formatLegalDate, formatNumber, formatPercent, formatPhoneE164, formatPrice, formatPricingModel, formatRelativeTime, formatReleaseDate, formatSingularLookupInvocation, formatTicketFullTimestamp, formatTicketRelativeTime, formatTimeWithTimezone, formatUnderscoreText, 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, 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, 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, withFirstTouchAttribution, withQuery, withWalkthroughOpenParam, writeDismissCookie };
5517
+ // src/utils/program-instant.ts
5518
+ var programStr = (value) => typeof value === "string" && value ? value : null;
5519
+ function programDateInstant(item) {
5520
+ const declaredZone = programStr(item.timezone);
5521
+ const dateOnly = item.date_is_display_override === true;
5522
+ const date = programStr(item.date);
5523
+ const startAt = programStr(item.start_at);
5524
+ const timezone = dateOnly ? null : declaredZone;
5525
+ return {
5526
+ instant: timezone ? date ?? startAt : null,
5527
+ timezone,
5528
+ dateOnly,
5529
+ utcDate: date ?? startAt
5530
+ };
5531
+ }
5532
+ function webinarTiming(item) {
5533
+ return { startAt: programStr(item.start_at), endAt: programStr(item.end_at) };
5534
+ }
5535
+ function programMetaLine(item, kind, fmt) {
5536
+ const at = programDateInstant(item);
5537
+ const isScheduled = item.status === "scheduled";
5538
+ let typeMeta = null;
5539
+ if (kind === "podcast" && typeof item.duration_seconds === "number" && item.duration_seconds > 0 && !isScheduled) {
5540
+ typeMeta = fmt.duration(item.duration_seconds);
5541
+ } else if (kind === "event" && typeof item.location_name === "string" && item.location_name.trim().length > 0) {
5542
+ typeMeta = item.location_name;
5543
+ } else if (kind === "webinar" && programStr(item.start_at)) {
5544
+ typeMeta = fmt.webinarMeta(at, webinarTiming(item)) || null;
5545
+ }
5546
+ return { at, typeMeta, line: [fmt.date(at), typeMeta].filter(Boolean).join(" \xB7 ") };
5547
+ }
5548
+ function programMetaFormatters(fmt, opts = {}) {
5549
+ const withZoneLabel = opts.withZoneLabel !== false;
5550
+ return {
5551
+ // The meta line always renders the compact day; the one surface that wants
5552
+ // the weekday form renders it in its own slot, so a `dateStyle` option here
5553
+ // would exist for no caller.
5554
+ date: (at) => fmt.date(at, "medium"),
5555
+ duration: fmt.duration,
5556
+ webinarMeta: (at, o) => fmt.webinarMeta(at, { ...o, withZoneLabel })
5557
+ };
5558
+ }
5559
+
5560
+ // src/utils/program-meta-renderers.ts
5561
+ var PROGRAM_META_RENDERERS = {
5562
+ date: formatProgramDate,
5563
+ duration: formatDurationCompact,
5564
+ webinarMeta: formatWebinarTimeMeta
5565
+ };
5566
+
5567
+ 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, 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, 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
5568
  //# sourceMappingURL=index.js.map
5472
5569
  //# sourceMappingURL=index.js.map