@flamingo-stack/openframe-frontend-core 0.0.310 → 0.0.311-snapshot.20260623165315

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 (96) hide show
  1. package/dist/{chunk-AIHM4TT7.cjs → chunk-52MEECZB.cjs} +5 -5
  2. package/dist/{chunk-AIHM4TT7.cjs.map → chunk-52MEECZB.cjs.map} +1 -1
  3. package/dist/{chunk-2YYAKVL7.cjs → chunk-64JGK22Q.cjs} +50 -30
  4. package/dist/chunk-64JGK22Q.cjs.map +1 -0
  5. package/dist/{chunk-4RHOLPFU.cjs → chunk-6GKJXZZM.cjs} +14 -14
  6. package/dist/{chunk-4RHOLPFU.cjs.map → chunk-6GKJXZZM.cjs.map} +1 -1
  7. package/dist/{chunk-PLFQJ5E7.cjs → chunk-7G7QJNLY.cjs} +37 -37
  8. package/dist/{chunk-PLFQJ5E7.cjs.map → chunk-7G7QJNLY.cjs.map} +1 -1
  9. package/dist/{chunk-CKFHYXSJ.cjs → chunk-7KKIACLD.cjs} +7 -7
  10. package/dist/{chunk-CKFHYXSJ.cjs.map → chunk-7KKIACLD.cjs.map} +1 -1
  11. package/dist/{chunk-6RMANFX7.cjs → chunk-AHVG5CFA.cjs} +30 -30
  12. package/dist/{chunk-6RMANFX7.cjs.map → chunk-AHVG5CFA.cjs.map} +1 -1
  13. package/dist/{chunk-5OFBD6EQ.js → chunk-BX4MDVBL.js} +40 -20
  14. package/dist/chunk-BX4MDVBL.js.map +1 -0
  15. package/dist/{chunk-6SBJVDH3.js → chunk-CGR2DPPQ.js} +4 -4
  16. package/dist/{chunk-N3YPIZBH.js → chunk-DJBMLHN7.js} +2 -2
  17. package/dist/{chunk-WSEK6W4B.js → chunk-F45P357Q.js} +2 -2
  18. package/dist/{chunk-46KRPHHL.js → chunk-GRBFBBSX.js} +2 -2
  19. package/dist/{chunk-QPTJOLAP.js → chunk-GZPOUZAY.js} +2 -2
  20. package/dist/{chunk-E7FIV5LH.js → chunk-IHCOTCIG.js} +2 -2
  21. package/dist/{chunk-ER4CMF47.js → chunk-MI6TET5N.js} +56 -34
  22. package/dist/chunk-MI6TET5N.js.map +1 -0
  23. package/dist/{chunk-6TRTIHGW.cjs → chunk-NQDC366J.cjs} +110 -88
  24. package/dist/chunk-NQDC366J.cjs.map +1 -0
  25. package/dist/{chunk-QWMYOUGP.js → chunk-PH2RLC4E.js} +2 -2
  26. package/dist/{chunk-4RI7S6ZD.cjs → chunk-SPFV5TFS.cjs} +9 -9
  27. package/dist/{chunk-4RI7S6ZD.cjs.map → chunk-SPFV5TFS.cjs.map} +1 -1
  28. package/dist/{chunk-J3YKVLQ5.cjs → chunk-UFJVTOGS.cjs} +26 -26
  29. package/dist/{chunk-J3YKVLQ5.cjs.map → chunk-UFJVTOGS.cjs.map} +1 -1
  30. package/dist/components/case-studies/index.cjs +8 -8
  31. package/dist/components/case-studies/index.js +2 -2
  32. package/dist/components/chart.d.ts +1 -1
  33. package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
  34. package/dist/components/chat/index.cjs +2 -2
  35. package/dist/components/chat/index.js +1 -1
  36. package/dist/components/chat/types/entities/investor-update.d.ts.map +1 -1
  37. package/dist/components/chat/utils/execute-navigation.d.ts.map +1 -1
  38. package/dist/components/contact/index.cjs +3 -3
  39. package/dist/components/contact/index.js +2 -2
  40. package/dist/components/docs/index.cjs +5 -5
  41. package/dist/components/docs/index.js +4 -4
  42. package/dist/components/embeds/index.cjs +3 -3
  43. package/dist/components/embeds/index.js +2 -2
  44. package/dist/components/faq/faq-document-page.d.ts +39 -3
  45. package/dist/components/faq/faq-document-page.d.ts.map +1 -1
  46. package/dist/components/faq/faq-section.d.ts.map +1 -1
  47. package/dist/components/faq/index.cjs +3 -3
  48. package/dist/components/faq/index.js +2 -2
  49. package/dist/components/features/index.cjs +2 -2
  50. package/dist/components/features/index.js +1 -1
  51. package/dist/components/index.cjs +172 -172
  52. package/dist/components/index.js +8 -8
  53. package/dist/components/logs-list.d.ts.map +1 -1
  54. package/dist/components/navigation/index.cjs +2 -2
  55. package/dist/components/navigation/index.js +1 -1
  56. package/dist/components/onboarding-guides/index.cjs +23 -23
  57. package/dist/components/onboarding-guides/index.js +3 -3
  58. package/dist/components/related-content/index.cjs +3 -3
  59. package/dist/components/related-content/index.js +2 -2
  60. package/dist/components/tickets/index.cjs +60 -60
  61. package/dist/components/tickets/index.js +3 -3
  62. package/dist/components/ui/device-card.d.ts.map +1 -1
  63. package/dist/components/ui/index.cjs +2 -2
  64. package/dist/components/ui/index.js +1 -1
  65. package/dist/index.cjs +2 -2
  66. package/dist/index.js +1 -1
  67. package/dist/utils/date-utils.d.ts.map +1 -1
  68. package/dist/utils/format.d.ts +12 -3
  69. package/dist/utils/format.d.ts.map +1 -1
  70. package/dist/utils/index.cjs +26 -14
  71. package/dist/utils/index.cjs.map +1 -1
  72. package/dist/utils/index.js +26 -14
  73. package/dist/utils/index.js.map +1 -1
  74. package/package.json +1 -1
  75. package/src/components/chat/entity-cards/blog-card.tsx +2 -2
  76. package/src/components/chat/entity-cards/dispatch.tsx +1 -1
  77. package/src/components/chat/entity-cards/program-card.tsx +17 -4
  78. package/src/components/chat/types/entities/investor-update.ts +2 -0
  79. package/src/components/chat/utils/execute-navigation.ts +15 -1
  80. package/src/components/faq/faq-document-page.tsx +78 -19
  81. package/src/components/faq/faq-section.tsx +23 -8
  82. package/src/components/logs-list.tsx +8 -6
  83. package/src/components/ui/device-card.tsx +8 -6
  84. package/src/utils/date-utils.ts +27 -14
  85. package/src/utils/format.ts +27 -8
  86. package/dist/chunk-2YYAKVL7.cjs.map +0 -1
  87. package/dist/chunk-5OFBD6EQ.js.map +0 -1
  88. package/dist/chunk-6TRTIHGW.cjs.map +0 -1
  89. package/dist/chunk-ER4CMF47.js.map +0 -1
  90. /package/dist/{chunk-6SBJVDH3.js.map → chunk-CGR2DPPQ.js.map} +0 -0
  91. /package/dist/{chunk-N3YPIZBH.js.map → chunk-DJBMLHN7.js.map} +0 -0
  92. /package/dist/{chunk-WSEK6W4B.js.map → chunk-F45P357Q.js.map} +0 -0
  93. /package/dist/{chunk-46KRPHHL.js.map → chunk-GRBFBBSX.js.map} +0 -0
  94. /package/dist/{chunk-QPTJOLAP.js.map → chunk-GZPOUZAY.js.map} +0 -0
  95. /package/dist/{chunk-E7FIV5LH.js.map → chunk-IHCOTCIG.js.map} +0 -0
  96. /package/dist/{chunk-QWMYOUGP.js.map → chunk-PH2RLC4E.js.map} +0 -0
@@ -7,16 +7,17 @@ import {
7
7
  PageLayout,
8
8
  PageShell,
9
9
  SECTION_HEADING_CLASS,
10
+ SECTION_HERO_ICON_CLASS,
10
11
  buildSuggestionUrl,
11
12
  faqItemAnchor,
12
13
  faqSectionSlug,
13
14
  parseFaqHash,
14
15
  serializeJsonLd
15
- } from "./chunk-ER4CMF47.js";
16
+ } from "./chunk-MI6TET5N.js";
16
17
  import {
17
18
  STICKY_HEADER_OFFSET_PX,
18
19
  navigateSamePageHash,
19
- scrollElementIntoView
20
+ useScrollToHash
20
21
  } from "./chunk-JQ2EYXWR.js";
21
22
  import {
22
23
  init_next_navigation,
@@ -230,12 +231,10 @@ function GroupedFaqList({
230
231
  return result.size > 0 ? result : null;
231
232
  }, [groups, hashTarget]);
232
233
  const accordionKeySuffix = hashTarget?.kind === "item" ? `item:${hashTarget.rawId}` : "default";
234
+ const scrollDep = `${groups.length}|` + (hashTarget?.kind === "item" ? `item:${hashTarget.rawId}` : hashTarget?.kind === "section" ? `section:${hashTarget.slug}` : "none");
235
+ useScrollToHash(scrollDep, { headerOffset: STICKY_HEADER_OFFSET_PX });
233
236
  useEffect2(() => {
234
- if (!hashTarget) return;
235
- const elId = hashTarget.kind === "item" ? faqItemAnchor(hashTarget.rawId) : hashTarget.slug;
236
- const el = document.getElementById(elId);
237
- if (el) scrollElementIntoView(el, { headerOffset: STICKY_HEADER_OFFSET_PX });
238
- if (hashTarget.kind === "section") setActiveSlug(hashTarget.slug);
237
+ if (hashTarget?.kind === "section") setActiveSlug(hashTarget.slug);
239
238
  }, [hashTarget]);
240
239
  const handleJump = useCallback2(
241
240
  (e, slug) => {
@@ -340,12 +339,18 @@ function FaqSection({
340
339
  }
341
340
 
342
341
  // src/components/faq/faq-document-page.tsx
342
+ import { HelpCircle } from "lucide-react";
343
343
  init_next_navigation();
344
- import { jsx as jsx3 } from "react/jsx-runtime";
344
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
345
345
  function FaqDocumentPage({
346
- title = "FAQs",
346
+ title = "Frequently Asked Questions",
347
347
  subtitle,
348
+ titleIcon = /* @__PURE__ */ jsx3(HelpCircle, { className: SECTION_HERO_ICON_CLASS }),
349
+ accentDot = true,
348
350
  backButton,
351
+ initialFaqs,
352
+ emitJsonLd,
353
+ jsonLd,
349
354
  apiBaseUrl,
350
355
  entityType,
351
356
  entityId,
@@ -356,16 +361,31 @@ function FaqDocumentPage({
356
361
  label: backButton?.label ?? "Back to home",
357
362
  onClick: () => router.push(backButton?.href ?? "/")
358
363
  };
359
- return /* @__PURE__ */ jsx3(PageShell, { children: /* @__PURE__ */ jsx3(PageLayout, { title, subtitle, backButton: backCfg, children: /* @__PURE__ */ jsx3(
360
- FaqSection,
361
- {
362
- heading: null,
363
- apiBaseUrl,
364
- entityType,
365
- entityId,
366
- minResults
367
- }
368
- ) }) });
364
+ return /* @__PURE__ */ jsx3(PageShell, { children: /* @__PURE__ */ jsx3(PageLayout, { backButton: backCfg, children: /* @__PURE__ */ jsxs3("div", { className: "w-full flex flex-col gap-10", children: [
365
+ /* @__PURE__ */ jsx3("div", { className: "flex items-end justify-between gap-[var(--spacing-system-m)] md:flex-col md:items-start md:justify-start lg:flex-row lg:items-end lg:justify-between", children: /* @__PURE__ */ jsx3("div", { className: "flex flex-col gap-[var(--spacing-system-xs)] flex-1 min-w-0", children: /* @__PURE__ */ jsxs3("div", { className: "space-y-4", children: [
366
+ /* @__PURE__ */ jsxs3("h1", { className: "text-h1 tracking-[-1.12px] text-ods-text-primary flex items-center gap-3", children: [
367
+ titleIcon,
368
+ /* @__PURE__ */ jsxs3("span", { children: [
369
+ title,
370
+ accentDot && /* @__PURE__ */ jsx3("span", { className: "text-ods-accent", children: "." })
371
+ ] })
372
+ ] }),
373
+ /* @__PURE__ */ jsx3("p", { className: "font-['DM_Sans'] font-medium text-[18px] leading-[28px] text-ods-text-secondary max-w-3xl line-clamp-2 min-h-[56px]", children: subtitle || " " })
374
+ ] }) }) }),
375
+ /* @__PURE__ */ jsx3(
376
+ FaqSection,
377
+ {
378
+ initialFaqs,
379
+ heading: null,
380
+ emitJsonLd,
381
+ jsonLd,
382
+ apiBaseUrl,
383
+ entityType,
384
+ entityId,
385
+ minResults
386
+ }
387
+ )
388
+ ] }) }) });
369
389
  }
370
390
 
371
391
  export {
@@ -373,4 +393,4 @@ export {
373
393
  FaqSection,
374
394
  FaqDocumentPage
375
395
  };
376
- //# sourceMappingURL=chunk-5OFBD6EQ.js.map
396
+ //# sourceMappingURL=chunk-BX4MDVBL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/faq/faq-section.tsx","../src/components/faq-accordion.tsx","../src/components/faq/json-ld.ts","../src/components/faq/faq-document-page.tsx"],"sourcesContent":["\"use client\"\n\nimport React, { useCallback, useEffect, useMemo, useState } from 'react'\nimport type { Faq } from '../../types/faq'\nimport { FaqAccordion, type FaqItem } from '../faq-accordion'\nimport { useSelfFetch } from '../../hooks/use-self-fetch'\nimport { buildSuggestionUrl } from '../../utils/suggestion-url'\nimport { serializeJsonLd } from '../../utils/common'\nimport { useScrollToHash } from '../../hooks/use-scroll-to-hash'\nimport { navigateSamePageHash, STICKY_HEADER_OFFSET_PX } from '../../utils/same-page-hash-nav'\nimport { faqSectionSlug, parseFaqHash, type FaqHashTarget } from '../../utils/faq-anchor'\nimport { cn } from '../../utils/cn'\nimport { buildFaqJsonLdFromFaqs, type FaqSchemaOptions } from './json-ld'\nimport { SECTION_HEADING_CLASS } from '../layout/page-heading'\n\nexport interface FaqSectionProps {\n /**\n * SSR hydrate. When provided, the hook skips the first client fetch (per\n * useSelfFetch contract). The consuming server page resolves FAQs then drills\n * them into this prop — the lib never re-fetches what the host already gated on.\n */\n initialFaqs?: Faq[]\n /** Both required together for entity-attached FAQs; partial → bare /api/faqs. */\n entityType?: string\n entityId?: number | string\n /**\n * Heading node above the grouped list. `undefined` → default\n * `<h2>`\"Frequently Asked Questions\". `null` → no heading (the host page\n * owns the `<h1>`, as the standalone /faqs surface does). A React node lets a\n * platform drill its own <PageHeading> without the lib referencing platform\n * state. Also drives category nesting so the document outline stays correct:\n * `null` → categories render `<h2>` (directly under the page `<h1>`);\n * otherwise categories render `<h3>` beneath this heading.\n */\n heading?: React.ReactNode | null\n /** Inject FAQPage schema.org JSON-LD as a <script>. Off by default so embeds\n * don't emit duplicate schema. */\n emitJsonLd?: boolean\n /** Overrides for the JSON-LD's name/description/url. */\n jsonLd?: FaqSchemaOptions\n className?: string\n /** Maps to /api/faqs `?count=` (the 5-tier fill target). Absent → param\n * not sent (server default applies). */\n minResults?: number\n /** Fetch-URL prefix for third-party embeds / reverse proxies\n * ('' = same-origin relative). */\n apiBaseUrl?: string\n}\n\nconst DEFAULT_HEADING_TEXT = 'Frequently Asked Questions'\n\n/** URL composition shared with RelatedContentSection (`buildSuggestionUrl`)\n * — byte-identical to the historical `buildFaqsUrl` output when\n * `minResults`/`apiBaseUrl` are absent. */\nfunction buildFaqsUrl(\n entityType?: string,\n entityId?: number | string,\n minResults?: number,\n apiBaseUrl = '',\n): string {\n return buildSuggestionUrl('/api/faqs', { apiBaseUrl, entityType, entityId, count: minResults })\n}\n\ninterface FaqGroup {\n /** null → the uncategorized bucket: no heading, no jump pill, rendered last. */\n section: string | null\n slug: string | null\n items: FaqItem[]\n}\n\n/** Group FAQs by `faq.section`, preserving the server's first-seen\n * (display_order) order for BOTH the section order and the rows within each\n * section. The uncategorized bucket (blank/missing section) sinks to the end\n * since it renders without a heading. Items carry NO badge here — the `<h2>`\n * IS the category, so a per-row chip would be redundant. */\nfunction groupFaqsBySection(faqs: Faq[]): FaqGroup[] {\n const order: string[] = []\n const byName = new Map<string, FaqGroup>()\n let uncategorized: FaqGroup | null = null\n for (const faq of faqs) {\n const item: FaqItem = { id: faq.id, question: faq.question, answer: faq.answer }\n const name = faq.section?.trim()\n if (!name) {\n if (!uncategorized) uncategorized = { section: null, slug: null, items: [] }\n uncategorized.items.push(item)\n continue\n }\n let group = byName.get(name)\n if (!group) {\n group = { section: name, slug: faqSectionSlug(name), items: [] }\n byName.set(name, group)\n order.push(name)\n }\n group.items.push(item)\n }\n const groups = order.map((name) => byName.get(name)!)\n if (uncategorized) groups.push(uncategorized)\n return groups\n}\n\n\n/** Map key for the uncategorized bucket — `group.slug` is null for it, so\n * every per-group map (default-open ids, accordion keys) uses this sentinel\n * to keep the lookup typed. */\nconst UNCATEGORIZED_KEY = '__uncategorized__'\nconst groupKey = (g: FaqGroup): string => g.slug ?? UNCATEGORIZED_KEY\n\n/**\n * Grouped FAQ layout: a category jump-nav above stacked `<h2>` category\n * sections (each its own accordion). Isolated into its own component so the\n * scroll-spy hooks only mount in grouped mode — `FaqSection`'s own hooks stay\n * unconditional.\n *\n * The pills are real `<a href=\"#slug\">` anchors (crawlable in-page links,\n * deep-linkable, work without JS); the click handler upgrades the jump to the\n * cancellation-proof `scrollElementIntoView` tween and syncs the URL hash.\n */\nfunction GroupedFaqList({\n groups,\n categoryHeadingAs,\n}: {\n groups: FaqGroup[]\n /** Heading tag for each category, so the document outline nests correctly\n * under whatever owns the heading above this block: `h2` on the standalone\n * page (the page owns the `<h1>`), `h3` beneath an embed's `<h2>` title.\n * The VISUAL is `SECTION_HEADING_CLASS` either way, so categories look\n * identical on every surface. */\n categoryHeadingAs: 'h2' | 'h3'\n}) {\n const CategoryHeading = categoryHeadingAs\n const navGroups = useMemo(() => groups.filter((g) => g.slug), [groups])\n const [activeSlug, setActiveSlug] = useState<string | null>(navGroups[0]?.slug ?? null)\n // Identity-stable key for the section set so the observer re-binds only when\n // the categories actually change (not on every parent re-render).\n const slugKey = navGroups.map((g) => g.slug).join('|')\n\n // Scroll-spy: mark the pill for the category currently at the top of the\n // viewport. rootMargin drops the trigger line just below the sticky header\n // and ignores the bottom ~55% so \"active\" is the section being read, not the\n // next one peeking in.\n useEffect(() => {\n if (navGroups.length < 2) return\n const tops = new Map<string, number>()\n const observer = new IntersectionObserver(\n (entries) => {\n for (const entry of entries) {\n const id = (entry.target as HTMLElement).id\n if (entry.isIntersecting) tops.set(id, entry.boundingClientRect.top)\n else tops.delete(id)\n }\n let bestId: string | null = null\n let bestTop = Number.POSITIVE_INFINITY\n for (const [id, top] of tops) {\n if (top < bestTop) {\n bestTop = top\n bestId = id\n }\n }\n if (bestId) setActiveSlug(bestId)\n },\n { rootMargin: `-${STICKY_HEADER_OFFSET_PX}px 0px -55% 0px`, threshold: 0 },\n )\n for (const group of navGroups) {\n const el = group.slug ? document.getElementById(group.slug) : null\n if (el) observer.observe(el)\n }\n return () => observer.disconnect()\n // slugKey encodes the section set; re-observe only when it changes.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [slugKey])\n\n // ─── Hash dispatch — `/faqs#faq-item-<id>` or `/faqs#faq-<section-slug>` ──\n // Tracks the current hash so:\n // 1. an item-kind hash seeds `defaultOpenIds` on the matching accordion\n // (auto-expands the cited question);\n // 2. either kind triggers the cancellation-proof tween scroll with the\n // sticky-header offset (native browser hash scroll runs once, ignores\n // our offset — re-running the tween puts the target in the right spot).\n // Listens to `hashchange` so back/forward replays the same behavior. SSR-\n // safe: initial null state matches the server render; the first effect\n // tick on the client updates it.\n const [hashTarget, setHashTarget] = useState<FaqHashTarget | null>(null)\n useEffect(() => {\n const refresh = () => setHashTarget(parseFaqHash(window.location.hash))\n refresh()\n window.addEventListener('hashchange', refresh)\n return () => window.removeEventListener('hashchange', refresh)\n }, [])\n\n // Per-group default-open set when the hash points at an item. The map key\n // matches `groupKey(group)` so the render-time lookup is O(1) per group.\n const defaultOpenByGroupKey = useMemo(() => {\n if (hashTarget?.kind !== 'item') return null\n const targetId = hashTarget.rawId\n const result = new Map<string, (string | number)[]>()\n for (const group of groups) {\n const hit = group.items.find((i) => String(i.id) === targetId)\n if (hit) result.set(groupKey(group), [hit.id])\n }\n return result.size > 0 ? result : null\n }, [groups, hashTarget])\n\n // Accordion is uncontrolled — `defaultOpenIds` is only consumed at mount,\n // so a new item hash needs a remount to honor it. Keying off the item-id\n // suffix triggers exactly the remount we need (and stays stable when the\n // hash points at a section, so category navigation never disturbs the\n // accordion's open state).\n const accordionKeySuffix =\n hashTarget?.kind === 'item' ? `item:${hashTarget.rawId}` : 'default'\n\n // Unified scroll-to-hash: rAF-polls for the target row (outlasts the SWR self-fetch\n // + Radix accordion expand) and re-fires on `hashchange` — including the synthetic\n // event `navigateSamePageHash` dispatches for a SOFT same-page chat-card nav (a\n // host-router `pushState` fires no `hashchange`). The ready-dep keys off BOTH the\n // loaded `groups` (so a deep-link / refresh scrolls once the self-fetched list\n // mounts) AND `hashTarget` (so a soft nav re-runs the scroll AFTER the re-render\n // that remounts + opens the cited row, landing on its FINAL expanded position\n // instead of racing the uncontrolled accordion's key-remount — the bare-`hashchange`\n // listener alone fires before the remount and lands on the stale closed position).\n const scrollDep =\n `${groups.length}|` +\n (hashTarget?.kind === 'item'\n ? `item:${hashTarget.rawId}`\n : hashTarget?.kind === 'section'\n ? `section:${hashTarget.slug}`\n : 'none')\n useScrollToHash(scrollDep, { headerOffset: STICKY_HEADER_OFFSET_PX })\n\n // A section hash also lights up its category pill; item hashes leave the pills\n // untouched so deep-linking a question never disturbs scroll-spy state.\n useEffect(() => {\n if (hashTarget?.kind === 'section') setActiveSlug(hashTarget.slug)\n }, [hashTarget])\n\n // Category pill click. `navigateSamePageHash` owns the entire transition:\n // replaceState → synthetic `hashchange` → `scrollElementIntoView` tween\n // with `STICKY_HEADER_OFFSET_PX` so the section heading lands BELOW the\n // sticky category nav on the FIRST tween (covers the same-target\n // re-click case, where the `hashTarget` effect at L214 is a no-op\n // because the state reference is equal). For DIFFERENT-target clicks\n // the helper's synthetic `hashchange` re-fires that effect, which\n // re-scrolls with the same offset and cancels this tween (singleton)\n // — both paths land at the same position. The effect is still\n // required for back/forward + direct URL edits, where the helper\n // isn't in the call chain.\n //\n // `history: 'replace'` matches the pre-helper behavior: category pills\n // are a TOC, not a navigation step, so the Back button leaves the\n // FAQ page in one step regardless of how many categories the user\n // clicked through.\n const handleJump = useCallback(\n (e: React.MouseEvent<HTMLAnchorElement>, slug: string) => {\n e.preventDefault()\n navigateSamePageHash('#' + slug, {\n headerOffset: STICKY_HEADER_OFFSET_PX,\n history: 'replace',\n })\n },\n [],\n )\n\n return (\n <div className=\"space-y-8\">\n {navGroups.length > 1 && (\n <nav aria-label=\"FAQ categories\" className=\"flex flex-wrap gap-2\">\n {navGroups.map((group) => {\n const isActive = group.slug === activeSlug\n return (\n <a\n key={group.slug}\n href={`#${group.slug}`}\n aria-current={isActive ? 'true' : undefined}\n onClick={(e) => handleJump(e, group.slug as string)}\n className={cn(\n \"rounded-full border px-4 py-2 text-sm font-medium font-['DM_Sans'] transition-colors\",\n isActive\n ? 'border-ods-text-primary bg-ods-card text-ods-text-primary'\n : 'border-ods-border bg-ods-card text-ods-text-secondary hover:border-ods-text-secondary hover:text-ods-text-primary',\n )}\n >\n {group.section}\n </a>\n )\n })}\n </nav>\n )}\n <div className=\"space-y-10\">\n {groups.map((group) => {\n const key = groupKey(group)\n return (\n <section\n key={key}\n id={group.slug ?? undefined}\n className=\"scroll-mt-24 space-y-4\"\n >\n {group.section && (\n <CategoryHeading className={SECTION_HEADING_CLASS}>{group.section}</CategoryHeading>\n )}\n <FaqAccordion\n // Re-key on item-hash changes so the remount picks up the new\n // `defaultOpenIds` (the accordion is uncontrolled). Stable for\n // section hashes — category navigation doesn't disturb state.\n key={`${key}:${accordionKeySuffix}`}\n items={group.items}\n defaultOpenIds={defaultOpenByGroupKey?.get(key)}\n />\n </section>\n )\n })}\n </div>\n </div>\n )\n}\n\nfunction FaqSkeleton() {\n return (\n <div className=\"space-y-8 animate-pulse\">\n <div className=\"h-12 md:h-14 w-2/3 rounded bg-ods-border\" />\n <div className=\"rounded-3xl border border-ods-border overflow-hidden bg-ods-card divide-y divide-ods-border w-full\">\n {Array.from({ length: 8 }).map((_, idx) => (\n <div key={idx} className=\"flex items-center justify-between px-6 md:px-8 py-6\">\n <div className=\"h-6 w-5/6 rounded bg-ods-border\" />\n <div className=\"h-10 w-10 rounded-md bg-ods-border\" />\n </div>\n ))}\n </div>\n </div>\n )\n}\n\ninterface FaqsResponse {\n faqs: Faq[]\n}\n\n/**\n * The FAQ display surface — ONE rendering on every host: the list grouped by\n * `faq.section` (each category a heading + its own accordion, with a category\n * jump-nav once there are 2+ categories). There is no flat/ungrouped mode and\n * no page-vs-embedded shell fork; the standalone /faqs page and every embed\n * render through this single path, so they cannot drift.\n *\n * - Standalone /faqs page: pass `initialFaqs` (SSR) + `heading={null}` (the\n * page owns the <h1>) + `emitJsonLd` with `jsonLd` overrides for SEO.\n * - Per-entity embed: pass `entityType` + `entityId` (no `initialFaqs`); the\n * hook self-fetches `GET /api/faqs`, and `heading` is this block's own <h2>.\n *\n * CONTRACT: the consuming app MUST implement `GET /api/faqs`. On a fetch error\n * (or zero FAQs) the component renders nothing so the host page isn't\n * disfigured. The host always supplies the page shell — this renders a bare\n * <section>.\n */\nexport function FaqSection({\n initialFaqs,\n entityType,\n entityId,\n heading,\n emitJsonLd = false,\n jsonLd,\n className,\n minResults,\n apiBaseUrl = '',\n}: FaqSectionProps) {\n const url = buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl)\n // Memoized — useSelfFetch re-syncs on [initialData]; a fresh per-render\n // wrapper object would setState-loop under re-rendering parents.\n const initialData = useMemo<FaqsResponse | undefined>(\n () => (initialFaqs ? { faqs: initialFaqs } : undefined),\n [initialFaqs],\n )\n const { data, isLoading, error } = useSelfFetch<FaqsResponse>(url, { initialData })\n\n const faqs = data?.faqs ?? []\n // Grouped before the early returns so the hook order stays stable.\n const groups = useMemo(() => (faqs.length > 0 ? groupFaqsBySection(faqs) : []), [faqs])\n\n // `undefined` → default <h2> title; `null` → the host page owns the <h1>, so\n // no title renders here. `heading === null` also makes the category headings\n // <h2> (directly under the page <h1>); otherwise they nest as <h3>.\n const headingNode =\n heading === undefined ? <h2 className={SECTION_HEADING_CLASS}>{DEFAULT_HEADING_TEXT}</h2> : heading\n\n // Degrade silently — never show an error banner or an empty section shell\n // where FAQs would be (host pages and the standalone surface both rely on it).\n if (error) return null\n if (!isLoading && faqs.length === 0) return null\n if (isLoading && faqs.length === 0) {\n return (\n <div className={className}>\n <FaqSkeleton />\n </div>\n )\n }\n\n const schema = emitJsonLd ? buildFaqJsonLdFromFaqs(faqs, jsonLd) : null\n\n return (\n <>\n <section className={className ?? 'space-y-10'}>\n {headingNode}\n <GroupedFaqList groups={groups} categoryHeadingAs={heading === null ? 'h2' : 'h3'} />\n </section>\n {schema && (\n <script\n type=\"application/ld+json\"\n // eslint-disable-next-line react/no-danger\n // serializeJsonLd, NOT raw JSON.stringify — FAQ answers are\n // admin-entered; an embedded \"</script>\" must not break the tag.\n dangerouslySetInnerHTML={{ __html: serializeJsonLd(schema) }}\n />\n )}\n </>\n )\n}\n","\"use client\"\n\nimport React, { useRef, useState, useEffect, useCallback } from 'react'\nimport { ChevronButton } from './ui/chevron-button'\nimport { cn } from \"../utils/cn\"\nimport { faqItemAnchor } from \"../utils/faq-anchor\"\n\nexport interface FaqItem {\n id: number | string\n question: string\n answer: string\n}\n\ninterface FaqAccordionProps {\n items: FaqItem[]\n defaultOpenIds?: (number | string)[]\n}\n\n// Utility to measure scrollHeight outside render cycle\nconst useMeasuredHeight = (isOpen: boolean) => {\n const ref = useRef<HTMLDivElement | null>(null)\n const [maxHeight, setMaxHeight] = useState<string>('0px')\n\n const measure = useCallback(() => {\n if (ref.current) {\n const height = ref.current.scrollHeight\n setMaxHeight(`${height}px`)\n }\n }, [])\n\n // Update height only when section is open\n useEffect(() => {\n if (isOpen) {\n measure()\n } else {\n setMaxHeight('0px')\n }\n }, [isOpen, measure])\n\n return { ref, maxHeight }\n}\n\nexport function FaqAccordion({ items, defaultOpenIds = [] }: FaqAccordionProps) {\n const [openSet, setOpenSet] = useState<Set<string | number>>(new Set(defaultOpenIds))\n\n const toggle = (id: string | number) => {\n setOpenSet(prev => {\n const next = new Set(prev)\n if (next.has(id)) next.delete(id)\n else next.add(id)\n return next\n })\n }\n\n return (\n <div className=\"rounded-3xl border border-ods-border divide-y divide-ods-border bg-ods-card overflow-hidden\">\n {items.map(item => {\n const isOpen = openSet.has(item.id)\n const { ref, maxHeight } = useMeasuredHeight(isOpen)\n\n return (\n <div\n key={item.id}\n // Per-row anchor — chat citation chips (`/faqs#faq-item-<id>`) land\n // here via native browser hash scroll AND via `FaqSection`'s tween\n // dispatch. `scroll-mt-24` keeps the row header below the 96px\n // sticky nav offset (matches `<section>`'s scroll-margin for\n // category anchors).\n id={faqItemAnchor(item.id)}\n className={cn('group scroll-mt-24 transition-colors hover:bg-[#1E1E1E]', isOpen ? 'bg-ods-bg' : 'bg-transparent')}\n >\n {/* Header */}\n <div\n role=\"button\"\n tabIndex={0}\n onClick={() => toggle(item.id)}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n toggle(item.id);\n }\n }}\n aria-expanded={isOpen}\n className=\"flex w-full items-center justify-between px-6 md:px-8 py-6 text-left focus:outline-none transition-colors cursor-pointer\"\n >\n <div className=\"min-w-0 pr-4\">\n <h3>\n {item.question}\n </h3>\n </div>\n <div className=\"flex-shrink-0\">\n <ChevronButton\n aria-label={isOpen ? 'Collapse question' : 'Expand question'}\n size=\"md\"\n isExpanded={isOpen}\n backgroundColor=\"transparent\"\n borderColor=\"#3A3A3A\"\n />\n </div>\n </div>\n {/* Content wrapper with max-height animation */}\n <div\n style={{ maxHeight, transition: 'max-height 0.35s ease-in-out, opacity 0.35s ease-in-out', opacity: isOpen ? 1 : 0 }}\n className=\"overflow-hidden group-hover:bg-[#1E1E1E]/30\"\n >\n {/* break-words: FAQ answers render as plain text, so a long URL or\n token has no wrap opportunity — and the parent is overflow-hidden,\n which would CLIP it past the viewport on mobile. Mirrors the\n markdown-renderer overflow-wrap fix. */}\n <div ref={ref} className=\"px-6 md:px-8 pb-6 text-ods-text-primary text-h4 break-words\">\n {item.answer}\n </div>\n </div>\n </div>\n )\n })}\n </div>\n )\n} ","/**\n * Pure FAQ JSON-LD builder. No React, no client-only deps — safe to import from\n * Server Components via the `./components/faq` subpath export. (Do NOT import\n * through the root `./components` barrel — that barrel is `\"use client\"` and\n * dragging it into a Server Component would force the client graph into the\n * server.)\n *\n * The hub used to harcode `name`/`description` here for OpenMSP; in the lib we\n * accept overrides so every embedder can supply its own platform branding.\n */\nimport type { Faq } from '../../types/faq'\n\nexport interface FaqSchemaOptions {\n name?: string\n description?: string\n url?: string\n}\n\nconst DEFAULT_NAME = 'Frequently Asked Questions'\nconst DEFAULT_DESCRIPTION =\n 'Answers to common questions.'\n\nexport function baseFaqSchema(opts: FaqSchemaOptions = {}) {\n return {\n '@context': 'https://schema.org',\n '@type': 'FAQPage',\n name: opts.name ?? DEFAULT_NAME,\n description: opts.description ?? DEFAULT_DESCRIPTION,\n ...(opts.url ? { url: opts.url } : {}),\n } as const\n}\n\nexport function buildFaqJsonLdFromFaqs(faqs: Faq[], opts: FaqSchemaOptions = {}) {\n return {\n ...baseFaqSchema(opts),\n mainEntity: faqs.map((faq) => ({\n '@type': 'Question',\n name: faq.question,\n acceptedAnswer: {\n '@type': 'Answer',\n text: faq.answer,\n },\n })),\n } as const\n}\n","'use client';\n\n/**\n * FaqDocumentPage — the full `/faqs` page with chrome, so embedders drop in\n * ONE component instead of hand-assembling `PageShell` + `PageLayout` + the\n * FAQ hero around the bare `<FaqSection>`. Mirrors `LegalDocumentPage` /\n * `DevSectionPage`: the page-level layout lives in the lib, the host page is a\n * thin wrapper that passes only config + the SSR-resolved data.\n *\n * HERO: renders the canonical FAQ hero (`<h1 class=\"text-h1\">` + accent dot +\n * icon + clamped subtitle) — byte-identical to the multi-platform hub's local\n * `PageWithHeader` chrome the standalone `/faqs` page historically used. It\n * does NOT route through `PageLayout`'s `title`/`subtitle` (the FROZEN\n * `text-h2` `TitleBlock` is a different, smaller header used by OpenFrame\n * detail surfaces). The page owns the `<h1>`, so `<FaqSection heading={null}>`\n * nests its category headings as `<h2>` and the questions as `<h3>` (the\n * SEO-recommended FAQ document outline).\n *\n * DATA: pass `initialFaqs` (SSR-resolved, platform-scoped) so `FaqSection`\n * skips its client self-fetch — the standalone page's static platform-only\n * contract. Omit it for embeds that want the self-fetching `/api/faqs`\n * suggestion-fill instead.\n */\n\nimport React from 'react';\nimport { HelpCircle } from 'lucide-react';\nimport type { Faq } from '../../types/faq';\nimport { PageShell, PageLayout } from '../ui';\nimport { useRouter } from '../../embed-shims/next-navigation';\nimport { SECTION_HERO_ICON_CLASS } from '../../utils/page-header-constants';\nimport { FaqSection } from './faq-section';\nimport type { FaqSchemaOptions } from './json-ld';\n\nexport interface FaqDocumentPageProps {\n /** Hero `<h1>`. Default \"Frequently Asked Questions\". */\n title?: string;\n /** Subtitle under the title (auto-clamped to 2 lines). */\n subtitle?: string;\n /** Icon rendered before the title. Default `<HelpCircle>` (the FAQ glyph). */\n titleIcon?: React.ReactNode;\n /** Render the yellow accent dot after the title (default true). */\n accentDot?: boolean;\n /** Back-button config — same pattern as `DevSectionPage` / `LegalDocumentPage`.\n * Pass `false` to hide. Default `{ label: 'Back to home', href: '/' }`. */\n backButton?: { label?: string; href?: string } | false;\n /** SSR-hydrate `FaqSection` (skips the client fetch — the platform-only\n * contract for the standalone page). Omit for self-fetching embeds. */\n initialFaqs?: Faq[];\n /** Emit FAQPage schema.org JSON-LD (forwarded to `FaqSection`). Off by\n * default so embeds don't emit duplicate schema. */\n emitJsonLd?: boolean;\n /** JSON-LD name/description/url overrides (forwarded to `FaqSection`). */\n jsonLd?: FaqSchemaOptions;\n /** Base URL `FaqSection` appends `/api/faqs` to (reverse-proxy embedders). */\n apiBaseUrl?: string;\n /** Optional entity scoping forwarded to `FaqSection`. */\n entityType?: string;\n entityId?: number | string;\n /** Minimum FAQ count before the section renders (forwarded to `FaqSection`). */\n minResults?: number;\n}\n\nexport function FaqDocumentPage({\n title = 'Frequently Asked Questions',\n subtitle,\n titleIcon = <HelpCircle className={SECTION_HERO_ICON_CLASS} />,\n accentDot = true,\n backButton,\n initialFaqs,\n emitJsonLd,\n jsonLd,\n apiBaseUrl,\n entityType,\n entityId,\n minResults,\n}: FaqDocumentPageProps) {\n const router = useRouter();\n\n // Back-button config — mirrors LegalDocumentPage / DevSectionPage. Hide\n // entirely when the caller passes `false` (embed-mode where the host owns\n // nav chrome).\n const backCfg =\n backButton === false\n ? undefined\n : {\n label: backButton?.label ?? 'Back to home',\n onClick: () => router.push(backButton?.href ?? '/'),\n };\n\n return (\n <PageShell>\n <PageLayout backButton={backCfg}>\n <div className=\"w-full flex flex-col gap-10\">\n {/* Canonical FAQ hero — the exact DOM/CSS the hub's local\n `PageWithHeader` rendered (text-h1 + accent dot + icon + clamped\n subtitle), inlined here so the standalone `/faqs` look is owned by\n the lib. Intentionally NOT the frozen `text-h2` `TitleBlock`. */}\n <div className=\"flex items-end justify-between gap-[var(--spacing-system-m)] md:flex-col md:items-start md:justify-start lg:flex-row lg:items-end lg:justify-between\">\n <div className=\"flex flex-col gap-[var(--spacing-system-xs)] flex-1 min-w-0\">\n <div className=\"space-y-4\">\n <h1 className=\"text-h1 tracking-[-1.12px] text-ods-text-primary flex items-center gap-3\">\n {titleIcon}\n <span>\n {title}\n {accentDot && <span className=\"text-ods-accent\">.</span>}\n </span>\n </h1>\n <p className=\"font-['DM_Sans'] font-medium text-[18px] leading-[28px] text-ods-text-secondary max-w-3xl line-clamp-2 min-h-[56px]\">\n {subtitle || ' '}\n </p>\n </div>\n </div>\n </div>\n <FaqSection\n initialFaqs={initialFaqs}\n heading={null}\n emitJsonL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c,gBAAAK,MAqCI,QAAAC,aArCJ;AAHP,SAAS,gBAAgB;AAAA,EAC9B,QAAQ;AAAA,EACR;AAAA,EACA,YAAY,gBAAAD,KAAC,cAAW,WAAW,yBAAyB;AAAA,EAC5D,YAAY;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAyB;AACvB,QAAM,SAAS,UAAU;AAKzB,QAAM,UACJ,eAAe,QACX,SACA;AAAA,IACE,OAAO,YAAY,SAAS;AAAA,IAC5B,SAAS,MAAM,OAAO,KAAK,YAAY,QAAQ,GAAG;AAAA,EACpD;AAEN,SACE,gBAAAA,KAAC,aACC,0BAAAA,KAAC,cAAW,YAAY,SACtB,0BAAAC,MAAC,SAAI,WAAU,+BAKb;AAAA,oBAAAD,KAAC,SAAI,WAAU,wJACb,0BAAAA,KAAC,SAAI,WAAU,+DACb,0BAAAC,MAAC,SAAI,WAAU,aACb;AAAA,sBAAAA,MAAC,QAAG,WAAU,4EACX;AAAA;AAAA,QACD,gBAAAA,MAAC,UACE;AAAA;AAAA,UACA,aAAa,gBAAAD,KAAC,UAAK,WAAU,mBAAkB,eAAC;AAAA,WACnD;AAAA,SACF;AAAA,MACA,gBAAAA,KAAC,OAAE,WAAU,uHACV,sBAAY,KACf;AAAA,OACF,GACF,GACF;AAAA,IACA,gBAAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,SAAS;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACF;AAAA,KACF,GACF,GACF;AAEJ;","names":["useCallback","useEffect","useState","jsx","jsxs","useState","useEffect","useCallback","jsx","jsxs"]}
@@ -3,11 +3,11 @@ import {
3
3
  FileDownloadCard,
4
4
  GoogleSheetsViewer,
5
5
  PdfViewer
6
- } from "./chunk-QWMYOUGP.js";
6
+ } from "./chunk-PH2RLC4E.js";
7
7
  import {
8
8
  DocSearchBar,
9
9
  useDocSearch
10
- } from "./chunk-QPTJOLAP.js";
10
+ } from "./chunk-GZPOUZAY.js";
11
11
  import {
12
12
  DEFAULT_FOLDER_INDEX_FILE,
13
13
  FigmaEmbed,
@@ -19,7 +19,7 @@ import {
19
19
  findDocNodeByPath,
20
20
  getDocAncestorNodeIds,
21
21
  stripFolderIndexFromPath
22
- } from "./chunk-ER4CMF47.js";
22
+ } from "./chunk-MI6TET5N.js";
23
23
  import {
24
24
  HUB_HEADER_OFFSET_PX,
25
25
  contentFetch,
@@ -1866,4 +1866,4 @@ export {
1866
1866
  EmbedSkeleton,
1867
1867
  DocsHubPage
1868
1868
  };
1869
- //# sourceMappingURL=chunk-6SBJVDH3.js.map
1869
+ //# sourceMappingURL=chunk-CGR2DPPQ.js.map
@@ -33,7 +33,7 @@ import {
33
33
  getContentRefLabelOrTitleCase,
34
34
  init_pagination,
35
35
  orderContentRefTypes
36
- } from "./chunk-ER4CMF47.js";
36
+ } from "./chunk-MI6TET5N.js";
37
37
 
38
38
  // src/components/related-content/related-content-section.tsx
39
39
  import { useEffect, useMemo, useRef, useState } from "react";
@@ -359,4 +359,4 @@ export {
359
359
  GROUP_PAGE_SIZE,
360
360
  RelatedContentSection
361
361
  };
362
- //# sourceMappingURL=chunk-N3YPIZBH.js.map
362
+ //# sourceMappingURL=chunk-DJBMLHN7.js.map
@@ -11,7 +11,7 @@ import {
11
11
  TASK_TYPE_TEXT_COLORS,
12
12
  getStatusColorScheme,
13
13
  init_pagination
14
- } from "./chunk-ER4CMF47.js";
14
+ } from "./chunk-MI6TET5N.js";
15
15
  import {
16
16
  init_next_navigation,
17
17
  usePathname,
@@ -454,4 +454,4 @@ export {
454
454
  DevCardRowSkeletonList,
455
455
  DeliveryRow
456
456
  };
457
- //# sourceMappingURL=chunk-WSEK6W4B.js.map
457
+ //# sourceMappingURL=chunk-F45P357Q.js.map
@@ -3,7 +3,7 @@ import {
3
3
  PageLayout,
4
4
  formatBioText,
5
5
  getProxiedImageUrl
6
- } from "./chunk-ER4CMF47.js";
6
+ } from "./chunk-MI6TET5N.js";
7
7
  import {
8
8
  useChatRuntime
9
9
  } from "./chunk-2FI3USTC.js";
@@ -146,4 +146,4 @@ export {
146
146
  DetailPageSkeleton,
147
147
  ArticleAuthorByline
148
148
  };
149
- //# sourceMappingURL=chunk-46KRPHHL.js.map
149
+ //# sourceMappingURL=chunk-GRBFBBSX.js.map
@@ -6,7 +6,7 @@ import {
6
6
  resolveExternalNavigation,
7
7
  resolveSourceIcon,
8
8
  stripSameOriginToPath
9
- } from "./chunk-ER4CMF47.js";
9
+ } from "./chunk-MI6TET5N.js";
10
10
  import {
11
11
  contentFetch,
12
12
  useDebounce
@@ -347,4 +347,4 @@ export {
347
347
  resolveSearchResultAction,
348
348
  useDocSearch
349
349
  };
350
- //# sourceMappingURL=chunk-QPTJOLAP.js.map
350
+ //# sourceMappingURL=chunk-GZPOUZAY.js.map
@@ -12,7 +12,7 @@ import {
12
12
  SelectValue,
13
13
  Textarea,
14
14
  useChatAttachments
15
- } from "./chunk-ER4CMF47.js";
15
+ } from "./chunk-MI6TET5N.js";
16
16
  import {
17
17
  useContactSubmission,
18
18
  useHumanitySignals
@@ -372,4 +372,4 @@ function ContactForm({
372
372
  export {
373
373
  ContactForm
374
374
  };
375
- //# sourceMappingURL=chunk-E7FIV5LH.js.map
375
+ //# sourceMappingURL=chunk-IHCOTCIG.js.map
@@ -1,10 +1,12 @@
1
1
  "use client";
2
2
  import {
3
+ STICKY_HEADER_OFFSET_PX,
3
4
  ToolIcon,
4
5
  dotColorByVariant,
5
6
  embedAuthedFetch,
6
7
  getEmbedProxyAuth,
7
8
  getSmallPlatformIcon,
9
+ navigateSamePageHash,
8
10
  progressColorByVariant,
9
11
  scrollElementIntoView,
10
12
  toolLabels,
@@ -1846,7 +1848,7 @@ function formatDate(date, options = {
1846
1848
  console.warn("Invalid date provided to formatDate:", date);
1847
1849
  return "Invalid Date";
1848
1850
  }
1849
- return dateObj.toLocaleDateString("en-US", options);
1851
+ return dateObj.toLocaleDateString("en-US", { timeZone: "UTC", ...options });
1850
1852
  }
1851
1853
  function formatNumber(num) {
1852
1854
  return num.toLocaleString();
@@ -1945,12 +1947,17 @@ function formatDurationCompact(seconds) {
1945
1947
  function formatTimeWithTimezone(date, timezone) {
1946
1948
  if (!date) return "";
1947
1949
  const dateObj = typeof date === "string" ? new Date(date) : date;
1948
- const timeStr = dateObj.toLocaleTimeString("en-US", {
1950
+ const opts = {
1949
1951
  hour: "numeric",
1950
1952
  minute: "2-digit",
1951
- hour12: true
1952
- });
1953
- return timezone ? `${timeStr} ${timezone}` : timeStr;
1953
+ hour12: true,
1954
+ timeZone: timezone || "UTC"
1955
+ };
1956
+ try {
1957
+ return dateObj.toLocaleTimeString("en-US", opts);
1958
+ } catch {
1959
+ return dateObj.toLocaleTimeString("en-US", { ...opts, timeZone: "UTC" });
1960
+ }
1954
1961
  }
1955
1962
  function formatDurationFromRange(startAt, endAt) {
1956
1963
  if (!startAt || !endAt) return "";
@@ -8019,9 +8026,12 @@ function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
8019
8026
  else window.open(href, "_blank", NEW_TAB_FEATURES);
8020
8027
  return;
8021
8028
  }
8029
+ const target = stripSameOriginToPath(href);
8030
+ if (target.includes("#") && navigateSamePageHash(target, { headerOffset: STICKY_HEADER_OFFSET_PX })) {
8031
+ return;
8032
+ }
8022
8033
  const handled = runtime?.navigation.navigate?.({ href, path, targetPlatform }) ?? false;
8023
8034
  if (!handled) {
8024
- const target = stripSameOriginToPath(href);
8025
8035
  if (fallbackNavigate) fallbackNavigate(target);
8026
8036
  else window.location.assign(target);
8027
8037
  }
@@ -10071,7 +10081,7 @@ function BlogCard({
10071
10081
  const [imageError, setImageError] = useState22(false);
10072
10082
  const displayImage = post.featured_image && !imageError ? post.featured_image : placeholderUrl;
10073
10083
  if (size === "sm") {
10074
- const dateStr2 = post.published_at ? new Date(post.published_at).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" }) : "";
10084
+ const dateStr2 = post.published_at ? new Date(post.published_at).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric", timeZone: "UTC" }) : "";
10075
10085
  const firstCategory = post.categories?.find((c) => c && c.name)?.name;
10076
10086
  return /* @__PURE__ */ jsxs58(
10077
10087
  "a",
@@ -10110,7 +10120,7 @@ function BlogCard({
10110
10120
  }
10111
10121
  );
10112
10122
  }
10113
- const dateStr = post.published_at ? new Date(post.published_at).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" }) : "";
10123
+ const dateStr = post.published_at ? new Date(post.published_at).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric", timeZone: "UTC" }) : "";
10114
10124
  return /* @__PURE__ */ jsx73(
10115
10125
  "article",
10116
10126
  {
@@ -10481,7 +10491,9 @@ function formatInvestorUpdatePeriod(start, end, options) {
10481
10491
  if (!start && !end) return "";
10482
10492
  const fmt = (d) => new Date(d).toLocaleDateString("en-US", {
10483
10493
  month: options?.monthFormat || "short",
10484
- year: "numeric"
10494
+ year: "numeric",
10495
+ // Pin to UTC so SSR (Vercel = UTC) and the client agree (React #418).
10496
+ timeZone: "UTC"
10485
10497
  });
10486
10498
  const s = start ? fmt(start) : "?";
10487
10499
  const e = end ? fmt(end) : "?";
@@ -19956,19 +19968,19 @@ function formatTicketRelativeTime(iso) {
19956
19968
  if (diffMin < 60) return `${diffMin} min ago`;
19957
19969
  const diffHours = Math.floor(diffMin / 60);
19958
19970
  if (diffHours < 24) return diffHours === 1 ? "1 hour ago" : `${diffHours} hours ago`;
19959
- const mm = String(date.getMonth() + 1).padStart(2, "0");
19960
- const dd = String(date.getDate()).padStart(2, "0");
19961
- const yyyy = date.getFullYear();
19971
+ const mm = String(date.getUTCMonth() + 1).padStart(2, "0");
19972
+ const dd = String(date.getUTCDate()).padStart(2, "0");
19973
+ const yyyy = date.getUTCFullYear();
19962
19974
  return `${mm}/${dd}/${yyyy}`;
19963
19975
  }
19964
19976
  function formatTicketFullTimestamp(iso) {
19965
19977
  const date = new Date(iso);
19966
19978
  if (Number.isNaN(date.getTime())) return "";
19967
- const mm = String(date.getMonth() + 1).padStart(2, "0");
19968
- const dd = String(date.getDate()).padStart(2, "0");
19969
- const yyyy = date.getFullYear();
19970
- let hours = date.getHours();
19971
- const minutes = String(date.getMinutes()).padStart(2, "0");
19979
+ const mm = String(date.getUTCMonth() + 1).padStart(2, "0");
19980
+ const dd = String(date.getUTCDate()).padStart(2, "0");
19981
+ const yyyy = date.getUTCFullYear();
19982
+ let hours = date.getUTCHours();
19983
+ const minutes = String(date.getUTCMinutes()).padStart(2, "0");
19972
19984
  const ampm = hours >= 12 ? "PM" : "AM";
19973
19985
  hours = hours % 12 || 12;
19974
19986
  return `${mm}/${dd}/${yyyy}, ${hours}:${minutes} ${ampm}`;
@@ -19998,7 +20010,8 @@ function formatRelativeTime(timestamp) {
19998
20010
  return targetTime.toLocaleDateString("en-US", {
19999
20011
  month: "short",
20000
20012
  day: "numeric",
20001
- year: targetTime.getFullYear() !== now.getFullYear() ? "numeric" : void 0
20013
+ year: targetTime.getUTCFullYear() !== now.getUTCFullYear() ? "numeric" : void 0,
20014
+ timeZone: "UTC"
20002
20015
  });
20003
20016
  }
20004
20017
  function formatAbsoluteDate(timestamp, options = {}) {
@@ -20011,6 +20024,9 @@ function formatAbsoluteDate(timestamp, options = {}) {
20011
20024
  year: "numeric",
20012
20025
  month: "short",
20013
20026
  day: "numeric",
20027
+ // Pin to UTC so SSR (Vercel = UTC) and the client agree (React #418).
20028
+ // Caller can override via `options`.
20029
+ timeZone: "UTC",
20014
20030
  ...options
20015
20031
  };
20016
20032
  return targetTime.toLocaleDateString("en-US", defaultOptions2);
@@ -20027,6 +20043,9 @@ function formatDateTime(timestamp, options = {}) {
20027
20043
  day: "numeric",
20028
20044
  hour: "numeric",
20029
20045
  minute: "2-digit",
20046
+ // Pin to UTC so SSR (Vercel = UTC) and the client agree (React #418).
20047
+ // Caller can override via `options`.
20048
+ timeZone: "UTC",
20030
20049
  ...options
20031
20050
  };
20032
20051
  return targetTime.toLocaleDateString("en-US", defaultOptions2);
@@ -21650,11 +21669,11 @@ function DeviceCard({
21650
21669
  const formatLastSeen = (lastSeen) => {
21651
21670
  if (!lastSeen) return null;
21652
21671
  const date = typeof lastSeen === "string" ? new Date(lastSeen) : lastSeen;
21653
- const year = date.getFullYear();
21654
- const month = String(date.getMonth() + 1).padStart(2, "0");
21655
- const day = String(date.getDate()).padStart(2, "0");
21656
- const hours = String(date.getHours()).padStart(2, "0");
21657
- const minutes = String(date.getMinutes()).padStart(2, "0");
21672
+ const year = date.getUTCFullYear();
21673
+ const month = String(date.getUTCMonth() + 1).padStart(2, "0");
21674
+ const day = String(date.getUTCDate()).padStart(2, "0");
21675
+ const hours = String(date.getUTCHours()).padStart(2, "0");
21676
+ const minutes = String(date.getUTCMinutes()).padStart(2, "0");
21658
21677
  return `${year}/${month}/${day}, ${hours}:${minutes}`;
21659
21678
  };
21660
21679
  return /* @__PURE__ */ jsxs122(
@@ -33331,11 +33350,11 @@ LogSeverityDot.displayName = "LogSeverityDot";
33331
33350
  import { jsx as jsx260, jsxs as jsxs207 } from "react/jsx-runtime";
33332
33351
  var formatTimestamp = (timestamp) => {
33333
33352
  const date = timestamp instanceof Date ? timestamp : new Date(timestamp);
33334
- const year = date.getFullYear();
33335
- const month = String(date.getMonth() + 1).padStart(2, "0");
33336
- const day = String(date.getDate()).padStart(2, "0");
33337
- const hours = String(date.getHours()).padStart(2, "0");
33338
- const minutes = String(date.getMinutes()).padStart(2, "0");
33353
+ const year = date.getUTCFullYear();
33354
+ const month = String(date.getUTCMonth() + 1).padStart(2, "0");
33355
+ const day = String(date.getUTCDate()).padStart(2, "0");
33356
+ const hours = String(date.getUTCHours()).padStart(2, "0");
33357
+ const minutes = String(date.getUTCMinutes()).padStart(2, "0");
33339
33358
  return `${year}/${month}/${day},${hours}:${minutes}`;
33340
33359
  };
33341
33360
  var LogCard = ({ log, isLast, showConnector, onClick }) => {
@@ -40820,6 +40839,9 @@ init_button();
40820
40839
  import { ExternalLink as ExternalLink12, Clock as Clock2, Play as Play4, Video as Video8 } from "lucide-react";
40821
40840
  init_cn();
40822
40841
  import { Fragment as Fragment63, jsx as jsx314, jsxs as jsxs253 } from "react/jsx-runtime";
40842
+ function formatUtc(date, fmt) {
40843
+ return format(new Date(date.getTime() + date.getTimezoneOffset() * 6e4), fmt);
40844
+ }
40823
40845
  function ProgramCardSkeleton({ size = "default" }) {
40824
40846
  if (size === "sm") {
40825
40847
  return /* @__PURE__ */ jsxs253("span", { className: COMPACT_CARD_SKELETON_OUTER, children: [
@@ -40959,7 +40981,7 @@ function ProgramCard({
40959
40981
  if (size === "sm") {
40960
40982
  const itemDate2 = (() => {
40961
40983
  try {
40962
- return format(new Date(item.date), "MMM d, yyyy");
40984
+ return formatUtc(new Date(item.date), "MMM d, yyyy");
40963
40985
  } catch {
40964
40986
  return "";
40965
40987
  }
@@ -40974,7 +40996,7 @@ function ProgramCard({
40974
40996
  if (typeof loc === "string" && loc.trim().length > 0) typeMeta = loc;
40975
40997
  } else if (config.type === "webinar" && "start_at" in item) {
40976
40998
  const w = item;
40977
- const time = formatTimeWithTimezone(w.start_at, null);
40999
+ const time = formatTimeWithTimezone(w.start_at, w.timezone ?? null);
40978
41000
  const dur = formatDurationFromRange(w.start_at, w.end_at);
40979
41001
  typeMeta = dur ? `${time} \xB7 ${dur}` : time;
40980
41002
  }
@@ -41005,7 +41027,7 @@ function ProgramCard({
41005
41027
  ] });
41006
41028
  }
41007
41029
  const itemDate = new Date(item.date);
41008
- const dateFormat = format(itemDate, "EEEE d MMMM");
41030
+ const dateFormat = formatUtc(itemDate, "EEEE d MMMM");
41009
41031
  const defaultRenderMeta = () => {
41010
41032
  if (config.type === "podcast" && "duration_seconds" in item && !isScheduled) {
41011
41033
  return /* @__PURE__ */ jsxs253(Fragment63, { children: [
@@ -41022,7 +41044,7 @@ function ProgramCard({
41022
41044
  return /* @__PURE__ */ jsxs253(Fragment63, { children: [
41023
41045
  /* @__PURE__ */ jsx314(Video8, { className: "w-4 h-4 text-ods-text-secondary" }),
41024
41046
  /* @__PURE__ */ jsxs253("span", { className: "font-['DM_Sans'] text-ods-text-secondary", children: [
41025
- formatTimeWithTimezone(webinarItem.start_at, null),
41047
+ formatTimeWithTimezone(webinarItem.start_at, webinarItem.timezone ?? null),
41026
41048
  duration && ` \xB7 ${duration}`
41027
41049
  ] }),
41028
41050
  webinarItem.timezone && /* @__PURE__ */ jsxs253("span", { className: "font-['DM_Sans'] text-xs text-ods-text-secondary", children: [
@@ -41907,7 +41929,7 @@ function ProgramChatCard({
41907
41929
  } else if (configKey === "event" && typeof item?.location_name === "string" && item.location_name.trim().length > 0) {
41908
41930
  typeMeta = item.location_name;
41909
41931
  } else if (configKey === "webinar" && item?.start_at) {
41910
- const time = formatTimeWithTimezone(item.start_at, null);
41932
+ const time = formatTimeWithTimezone(item.start_at, item.timezone ?? null);
41911
41933
  const dur = formatDurationFromRange(item.start_at, item.end_at);
41912
41934
  typeMeta = dur ? `${time} \xB7 ${dur}` : time;
41913
41935
  }
@@ -49030,4 +49052,4 @@ export {
49030
49052
  LogsList,
49031
49053
  assets
49032
49054
  };
49033
- //# sourceMappingURL=chunk-ER4CMF47.js.map
49055
+ //# sourceMappingURL=chunk-MI6TET5N.js.map