@flamingo-stack/openframe-frontend-core 0.0.725 → 0.0.726

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 (83) hide show
  1. package/dist/{chunk-JVHP7Y4S.js → chunk-3UZET2G7.js} +2 -2
  2. package/dist/{chunk-F56GNKX2.js → chunk-3XDVGHL4.js} +2 -2
  3. package/dist/{chunk-2VOZ37BL.cjs → chunk-4ND65E2B.cjs} +35 -35
  4. package/dist/{chunk-AX4F35C2.js → chunk-4VRHDFF2.js} +1 -1
  5. package/dist/{chunk-LYQYLPPV.cjs → chunk-5SWQ2ZU5.cjs} +26 -26
  6. package/dist/{chunk-5FVWDDX6.js → chunk-AZKVHJA5.js} +2 -2
  7. package/dist/{chunk-W2DXHR2R.js → chunk-C5KMQLJP.js} +1 -1
  8. package/dist/{chunk-OBMWSUBK.js → chunk-COFT3YPA.js} +5 -5
  9. package/dist/{chunk-ZSXZE4FJ.cjs → chunk-DXDLCYCM.cjs} +3 -3
  10. package/dist/{chunk-SE4O4HCD.cjs → chunk-EHYAOIE4.cjs} +8 -8
  11. package/dist/{chunk-2SO3OJFY.cjs → chunk-FMFCPX3R.cjs} +33 -33
  12. package/dist/{chunk-IOTAUWWF.js → chunk-JYJBL7GD.js} +1 -1
  13. package/dist/{chunk-MGTZ2BKY.js → chunk-MM66P4X4.js} +2 -2
  14. package/dist/{chunk-F77J34W2.js → chunk-MQ3ZM7FJ.js} +1 -1
  15. package/dist/{chunk-SEVKFMKR.cjs → chunk-MZ3TMXIX.cjs} +3 -3
  16. package/dist/{chunk-YPEILGVZ.cjs → chunk-MZY6LBM5.cjs} +3 -3
  17. package/dist/{chunk-ASIXPRHV.js → chunk-NLWIBA55.js} +3 -3
  18. package/dist/{chunk-PUADVXJD.js → chunk-NZYMMYWN.js} +1 -1
  19. package/dist/{chunk-AI3CLDZO.cjs → chunk-Q2G7NVFH.cjs} +280 -280
  20. package/dist/{chunk-7V5KFBY2.cjs → chunk-R3BOJNZI.cjs} +16 -16
  21. package/dist/{chunk-B7234BE2.cjs → chunk-RSE3MU4G.cjs} +11 -11
  22. package/dist/{chunk-RU6BTELI.cjs → chunk-RVSNXG6J.cjs} +50 -70
  23. package/dist/{chunk-MLFS5G3V.js → chunk-SBPPM65Y.js} +50 -70
  24. package/dist/{chunk-ZZRUKEN2.js → chunk-SCTS3EMJ.js} +3 -3
  25. package/dist/{chunk-JAKG6BY7.js → chunk-VKR56R3U.js} +3 -3
  26. package/dist/{chunk-QV4GO3GW.cjs → chunk-VPABPC2M.cjs} +12 -12
  27. package/dist/{chunk-4ZZ4TNCY.cjs → chunk-X2PG6XWF.cjs} +9 -9
  28. package/dist/{chunk-772242QR.cjs → chunk-XEIDJ6SL.cjs} +65 -65
  29. package/dist/{chunk-ASHRHL4W.js → chunk-YVWJ3TRY.js} +5 -5
  30. package/dist/{chunk-LR6DJY4Z.cjs → chunk-Z3VAFLYK.cjs} +9 -9
  31. package/dist/{cloud-tenants-SMULXU54.cjs → cloud-tenants-5JTQ2ENQ.cjs} +3 -3
  32. package/dist/{cloud-tenants-US63E2HV.js → cloud-tenants-NH7VE7KE.js} +2 -2
  33. package/dist/components/case-studies/index.cjs +14 -14
  34. package/dist/components/case-studies/index.js +3 -3
  35. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  36. package/dist/components/chat/index.cjs +2 -2
  37. package/dist/components/chat/index.js +1 -1
  38. package/dist/components/contact/index.cjs +4 -4
  39. package/dist/components/contact/index.js +3 -3
  40. package/dist/components/docs/index.cjs +7 -7
  41. package/dist/components/docs/index.js +6 -6
  42. package/dist/components/embeds/index.cjs +4 -4
  43. package/dist/components/embeds/index.js +3 -3
  44. package/dist/components/faq/index.cjs +4 -4
  45. package/dist/components/faq/index.js +3 -3
  46. package/dist/components/features/index.cjs +3 -3
  47. package/dist/components/features/index.js +2 -2
  48. package/dist/components/help-center-pages/index.cjs +71 -71
  49. package/dist/components/help-center-pages/index.js +13 -13
  50. package/dist/components/index.cjs +35 -35
  51. package/dist/components/index.js +12 -12
  52. package/dist/components/meeting-scheduler/index.cjs +19 -19
  53. package/dist/components/meeting-scheduler/index.js +2 -2
  54. package/dist/components/navigation/index.cjs +6 -6
  55. package/dist/components/navigation/index.js +5 -5
  56. package/dist/components/onboarding-guides/index.cjs +5 -5
  57. package/dist/components/onboarding-guides/index.js +4 -4
  58. package/dist/components/product-demo/index.cjs +6 -6
  59. package/dist/components/product-demo/index.js +6 -6
  60. package/dist/components/tickets/index.cjs +7 -7
  61. package/dist/components/tickets/index.js +6 -6
  62. package/dist/components/ui/index.cjs +3 -3
  63. package/dist/components/ui/index.js +2 -2
  64. package/dist/{devices-JWHGWKLK.js → devices-OC7JEI6U.js} +2 -2
  65. package/dist/{devices-6ZURNFRB.cjs → devices-PV76NGQO.cjs} +4 -4
  66. package/dist/index.cjs +7 -7
  67. package/dist/index.js +6 -6
  68. package/dist/{knowledge-CY66JZ54.cjs → knowledge-5AYFIVKD.cjs} +4 -4
  69. package/dist/{knowledge-TEDPLCFX.js → knowledge-L7WQ7IEP.js} +2 -2
  70. package/dist/{logs-MO357RE7.cjs → logs-4F77RJXJ.cjs} +11 -11
  71. package/dist/{logs-S46THPPD.js → logs-MGFHGVIE.js} +2 -2
  72. package/dist/{policies-GSH4K5YP.cjs → policies-VCGM3C5Z.cjs} +7 -7
  73. package/dist/{policies-BUXT7DKF.js → policies-WRDZFNIB.js} +2 -2
  74. package/dist/{software-update-YKS6KLX2.js → software-update-WVG2GDZO.js} +2 -2
  75. package/dist/{software-update-2ETT35NM.cjs → software-update-YD2MNL3K.cjs} +6 -6
  76. package/dist/utils/index.cjs +17 -18
  77. package/dist/utils/index.js +17 -18
  78. package/dist/utils/source-grouping.d.ts +15 -5
  79. package/dist/utils/source-grouping.d.ts.map +1 -1
  80. package/package.json +1 -1
  81. package/src/components/chat/entity-cards/dispatch.tsx +47 -58
  82. package/src/utils/source-grouping.ts +24 -14
  83. package/src/utils/source-icons.ts +16 -16
@@ -207,16 +207,10 @@ import {
207
207
  Arrow02LeftIcon,
208
208
  Arrow02RightIcon,
209
209
  ArrowRightUpIcon,
210
- BankIcon,
211
210
  BoxArchiveIcon,
212
- BracketCurlyCheckIcon,
213
211
  CalendarIcon,
214
- CallIcon,
215
- ChartBar01VerIcon,
216
- ChartPieIcon,
217
212
  ChatPlusIcon,
218
213
  ChatQuestionIcon,
219
- ChatQuoteIcon,
220
214
  ChatsIcon,
221
215
  CheckCircleIcon,
222
216
  CheckFillIcon,
@@ -224,22 +218,15 @@ import {
224
218
  Chevron02LeftIcon,
225
219
  Chevron02RightIcon,
226
220
  ClickupLogoIcon,
227
- ClipboardListIcon,
228
221
  ClockHistoryIcon,
229
222
  CodeIcon,
230
- CodeSquareIcon,
231
- CodingBranchIcon,
232
223
  CodingCommitIcon,
233
- CodingMergeIcon,
234
224
  CodingPullRequestIcon,
235
- CoinsExchangeCurrencyIcon,
236
225
  CompassIcon,
237
- Copy01Icon,
238
226
  DotsLoaderIcon,
239
227
  Ellipsis01Icon,
240
228
  ExternalLinkIcon,
241
229
  EyeIcon,
242
- FileCodeIcon,
243
230
  FileContentIcon,
244
231
  GeminiLogoGreyIcon,
245
232
  InfoCircleIcon,
@@ -249,11 +236,9 @@ import {
249
236
  Megaphone01Icon,
250
237
  MessageIndicatorIcon,
251
238
  MicrophoneIcon,
252
- MoneyBillDollarIcon,
253
239
  NewspaperIcon,
254
240
  OpenaiLogoGreyIcon,
255
241
  PackageCheckIcon,
256
- PackageIcon,
257
242
  PackagePlusIcon,
258
243
  PenEditIcon,
259
244
  PlusCircleIcon,
@@ -6879,11 +6864,11 @@ var SOURCE_ICON_NAMES = {
6879
6864
  vendors: "package-search",
6880
6865
  // Financials
6881
6866
  "investor-updates": "mail",
6882
- "financial-kpis": "activity",
6883
- "financial-cap-table": "table",
6884
- "financial-pnl": "trending-up",
6885
- "financial-balance-sheet": "dollar-sign",
6886
- "financial-cash-flow": "banknote",
6867
+ "financial-kpis": "chart-bar-01-ver",
6868
+ "financial-cap-table": "chart-pie",
6869
+ "financial-pnl": "money-bill-dollar",
6870
+ "financial-balance-sheet": "bank",
6871
+ "financial-cash-flow": "coins-exchange-currency",
6887
6872
  // ClickUp
6888
6873
  "clickup-roadmap": "clickup",
6889
6874
  "clickup-delivery": "clickup",
@@ -6902,22 +6887,22 @@ var SOURCE_ICON_NAMES = {
6902
6887
  // Communications
6903
6888
  "slack-messages": "slack",
6904
6889
  // People-hub employee content
6905
- "what-i-shipped": "package",
6906
- "how-i-work": "book-open",
6907
- "ai-prompts": "message-square",
6890
+ "what-i-shipped": "rocket-02",
6891
+ "how-i-work": "clipboard-list",
6892
+ "ai-prompts": "chat-quote",
6908
6893
  // Product-hub internal
6909
6894
  "design-docs": "file-text",
6910
6895
  "openframe-tenants": "openframe",
6911
- "prospect-calls": "phone",
6896
+ "prospect-calls": "call",
6912
6897
  // Code intelligence
6913
- "code-rules": "check-square",
6914
- "code-graph-repos": "github",
6898
+ "code-rules": "bracket-curly-check",
6899
+ "code-graph-repos": "coding-branch",
6915
6900
  "code-graph-deployments": "package",
6916
- "code-graph-files": "file-text",
6917
- "code-symbols": "box",
6918
- "code-duplicates": "search",
6919
- "code-impact": "activity",
6920
- "change-sets": "coding-branch"
6901
+ "code-graph-files": "file-code",
6902
+ "code-symbols": "code-square",
6903
+ "code-duplicates": "copy-01",
6904
+ "code-impact": "coding-pull-request",
6905
+ "change-sets": "coding-merge"
6921
6906
  };
6922
6907
  function getSourceIconName(tableId) {
6923
6908
  if (!tableId) return void 0;
@@ -7094,8 +7079,7 @@ function typeOf(source) {
7094
7079
  return source.documentType || defaultDocumentTypeForTableId(source.sourceRepo) || "";
7095
7080
  }
7096
7081
  function joinsTableChip(source) {
7097
- if (!source.sourceRepo) return false;
7098
- return groupsByTable(typeOf({ ...source, sourceRepo: source.sourceRepo }));
7082
+ return !!source.sourceRepo;
7099
7083
  }
7100
7084
  function rowsOf(source) {
7101
7085
  if (isGroupedChip(source)) return source.items ?? [];
@@ -15820,11 +15804,11 @@ function refHydratedEntry(docType, label, renderRef) {
15820
15804
  };
15821
15805
  }
15822
15806
  var FINANCIAL_CARD_CONFIGS = {
15823
- financial_kpi: { label: "Financial KPI", icon: () => /* @__PURE__ */ jsx85(ChartBar01VerIcon, { size: 24 }) },
15824
- cap_table: { label: "Cap table entry", icon: () => /* @__PURE__ */ jsx85(ChartPieIcon, { size: 24 }) },
15825
- profit_loss: { label: "P&L period", icon: () => /* @__PURE__ */ jsx85(MoneyBillDollarIcon, { size: 24 }) },
15826
- balance_sheet: { label: "Balance sheet", icon: () => /* @__PURE__ */ jsx85(BankIcon, { size: 24 }) },
15827
- cash_flow: { label: "Cash flow", icon: () => /* @__PURE__ */ jsx85(CoinsExchangeCurrencyIcon, { size: 24 }) }
15807
+ financial_kpi: { label: "Financial KPI" },
15808
+ cap_table: { label: "Cap table entry" },
15809
+ profit_loss: { label: "P&L period" },
15810
+ balance_sheet: { label: "Balance sheet" },
15811
+ cash_flow: { label: "Cash flow" }
15828
15812
  };
15829
15813
  function registryEntries(configs, build) {
15830
15814
  const out = {};
@@ -15838,7 +15822,7 @@ function financialRegistryEntries() {
15838
15822
  GenericFinancialChatCard,
15839
15823
  {
15840
15824
  chatRef: displayRef,
15841
- icon: cfg.icon(),
15825
+ icon: sourceGlyph(docType),
15842
15826
  isNewTab: opts.isNewTab,
15843
15827
  discuss: opts.discuss
15844
15828
  }
@@ -15864,41 +15848,45 @@ var GITHUB_CARD_CONFIGS = {
15864
15848
  github_pr_review: { label: "GitHub review", kind: "pr_review" },
15865
15849
  github_pr_review_public: { label: "GitHub review (public)", kind: "pr_review" }
15866
15850
  };
15867
- var OpenFrameGlyph = resolveIcon("openframe");
15868
15851
  var REF_GLYPH_CARD_CONFIGS = {
15869
- openframe_tenant: { label: "OpenFrame tenant", icon: () => /* @__PURE__ */ jsx85(OpenFrameGlyph, { size: 24 }) },
15870
- prospect_call: { label: "Prospect call", icon: () => /* @__PURE__ */ jsx85(CallIcon, { size: 24 }), media: true },
15852
+ openframe_tenant: { label: "OpenFrame tenant" },
15853
+ prospect_call: { label: "Prospect call", media: true },
15871
15854
  // Code intelligence (product-hub internal): the review rules a repository is
15872
15855
  // held to, the repositories themselves, and one row per deployment
15873
15856
  // environment. Glyph cards like their siblings — none of the three has a
15874
15857
  // cover image, and a rule is read in the admin screen it links to.
15875
- code_rule: { label: "Code rule", icon: () => /* @__PURE__ */ jsx85(BracketCurlyCheckIcon, { size: 24 }) },
15876
- code_repo: { label: "Repository", icon: () => /* @__PURE__ */ jsx85(CodingBranchIcon, { size: 24 }) },
15877
- code_deployment: { label: "Deployment", icon: () => /* @__PURE__ */ jsx85(PackageIcon, { size: 24 }) },
15858
+ code_rule: { label: "Code rule" },
15859
+ code_repo: { label: "Repository" },
15860
+ code_deployment: { label: "Deployment" },
15878
15861
  // The graph's own objects: one source file's public surface, one public
15879
15862
  // symbol, a near-duplicate cluster, and a pull request's blast radius.
15880
15863
  // Glyph cards for the same reason as their three siblings — none carries a
15881
15864
  // cover image, and each links to the admin screen that renders it in full.
15882
- code_file: { label: "Code file", icon: () => /* @__PURE__ */ jsx85(FileCodeIcon, { size: 24 }) },
15883
- code_symbol: { label: "Code symbol", icon: () => /* @__PURE__ */ jsx85(CodeSquareIcon, { size: 24 }) },
15884
- code_duplicate: { label: "Duplicate code", icon: () => /* @__PURE__ */ jsx85(Copy01Icon, { size: 24 }) },
15885
- code_impact: { label: "Change impact", icon: () => /* @__PURE__ */ jsx85(CodingPullRequestIcon, { size: 24 }) },
15865
+ code_file: { label: "Code file" },
15866
+ code_symbol: { label: "Code symbol" },
15867
+ code_duplicate: { label: "Duplicate code" },
15868
+ code_impact: { label: "Change impact" },
15886
15869
  // A change set: pull requests across repositories declared as one change, with the ClickUp tasks and design
15887
15870
  // docs its pull requests are attached to. ONE card for it wherever a set is shown (chat, a design doc's page).
15888
- change_set: { label: "Change set", icon: () => /* @__PURE__ */ jsx85(CodingMergeIcon, { size: 24 }) },
15871
+ change_set: { label: "Change set" },
15889
15872
  // A page of the public website (pricing, product, legal, and every page the navigation lists), read live
15890
15873
  // from the data the page shows. A glyph card: a page has no cover of its own, and the card opens the page.
15891
15874
  site_page: { label: "Website page", icon: (ref) => /* @__PURE__ */ jsx85(SitePageGlyph, { iconName: refText(ref, "icon_name") }) },
15892
15875
  // What OpenFrame charges, read live from its billing: the plan in force, or one AI model's token exchange
15893
15876
  // rate. A glyph card; it opens the pricing page.
15894
- openframe_price: { label: "OpenFrame price", icon: () => /* @__PURE__ */ jsx85(OpenFrameGlyph, { size: 24 }) },
15877
+ openframe_price: { label: "OpenFrame price" },
15895
15878
  // A vendor (product) of the OpenMSP directory. A glyph card; it opens the vendor's page there.
15896
15879
  vendor: { label: "Vendor", icon: (ref) => /* @__PURE__ */ jsx85(VendorGlyph, { title: ref?.title ?? "", logoUrl: refText(ref, "logo_url") }) }
15897
15880
  };
15881
+ function sourceGlyph(docType) {
15882
+ const { Icon } = resolveSourceIcon({ sourceRepo: defaultTableIdForDocumentType(docType), documentType: docType });
15883
+ return /* @__PURE__ */ jsx85(Icon, { className: "size-6" });
15884
+ }
15898
15885
  function refGlyphRegistryEntries() {
15899
- return registryEntries(
15900
- REF_GLYPH_CARD_CONFIGS,
15901
- (cfg, docType) => refHydratedEntry(
15886
+ return registryEntries(REF_GLYPH_CARD_CONFIGS, (config, docType) => {
15887
+ const glyph = config.icon ?? (() => sourceGlyph(docType));
15888
+ const cfg = config;
15889
+ return refHydratedEntry(
15902
15890
  docType,
15903
15891
  cfg.label,
15904
15892
  (displayRef, opts) => cfg.media ? /* @__PURE__ */ jsx85(
@@ -15910,24 +15898,16 @@ function refGlyphRegistryEntries() {
15910
15898
  displayRef.metadata?.videoPoster,
15911
15899
  opts.extras?.buildOgPlaceholderUrl?.(displayRef.title ?? "") ?? null
15912
15900
  ),
15913
- fallbackIcon: cfg.icon(displayRef),
15901
+ fallbackIcon: glyph(displayRef),
15914
15902
  status: { label: cfg.label, variant: "grey" },
15915
15903
  chatRef: displayRef,
15916
15904
  isNewTab: opts.isNewTab,
15917
15905
  discuss: opts.discuss,
15918
15906
  menuAriaLabel: `${cfg.label} actions`
15919
15907
  }
15920
- ) : /* @__PURE__ */ jsx85(
15921
- GlyphChatCard,
15922
- {
15923
- chatRef: displayRef,
15924
- icon: cfg.icon(displayRef),
15925
- isNewTab: opts.isNewTab,
15926
- discuss: opts.discuss
15927
- }
15928
- )
15929
- )
15930
- );
15908
+ ) : /* @__PURE__ */ jsx85(GlyphChatCard, { chatRef: displayRef, icon: glyph(displayRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
15909
+ );
15910
+ });
15931
15911
  }
15932
15912
  function fetchedEmployeeEntryDisplayRef(item, chatRef) {
15933
15913
  const it = item;
@@ -15938,9 +15918,9 @@ function fetchedEmployeeEntryDisplayRef(item, chatRef) {
15938
15918
  return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
15939
15919
  }
15940
15920
  var EMPLOYEE_ENTRY_CARD_CONFIGS = {
15941
- what_i_shipped: { label: "What I Shipped", icon: () => /* @__PURE__ */ jsx85(Rocket02Icon, { size: 24 }) },
15942
- how_i_work: { label: "How I Work", icon: () => /* @__PURE__ */ jsx85(ClipboardListIcon, { size: 24 }) },
15943
- ai_prompt: { label: "Squawkbox", icon: () => /* @__PURE__ */ jsx85(ChatQuoteIcon, { size: 24 }) }
15921
+ what_i_shipped: { label: "What I Shipped" },
15922
+ how_i_work: { label: "How I Work" },
15923
+ ai_prompt: { label: "Squawkbox" }
15944
15924
  };
15945
15925
  function employeeEntryRegistryEntries() {
15946
15926
  return registryEntries(EMPLOYEE_ENTRY_CARD_CONFIGS, (cfg, docType) => ({
@@ -15952,7 +15932,7 @@ function employeeEntryRegistryEntries() {
15952
15932
  GlyphChatCard,
15953
15933
  {
15954
15934
  chatRef: fetchedEmployeeEntryDisplayRef(item, chatRef),
15955
- icon: cfg.icon(),
15935
+ icon: sourceGlyph(docType),
15956
15936
  isNewTab: opts.isNewTab,
15957
15937
  discuss: opts.discuss
15958
15938
  }
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useOptionalTicketLive
4
- } from "./chunk-IOTAUWWF.js";
4
+ } from "./chunk-JYJBL7GD.js";
5
5
  import {
6
6
  AppLayoutDrawerContainerContext,
7
7
  AppLayoutDrawerCoordinationContext,
@@ -12,7 +12,7 @@ import {
12
12
  UnreadCountBadge,
13
13
  UnreadDot,
14
14
  useOptionalNotifications
15
- } from "./chunk-W2DXHR2R.js";
15
+ } from "./chunk-C5KMQLJP.js";
16
16
  import {
17
17
  resolveActiveSection,
18
18
  useActiveSection,
@@ -28,7 +28,7 @@ import {
28
28
  OVERLAY_BACKDROP_CLASS,
29
29
  buildTicketOpenHref,
30
30
  useIsHydrated
31
- } from "./chunk-MLFS5G3V.js";
31
+ } from "./chunk-SBPPM65Y.js";
32
32
  import {
33
33
  useHeaderHeight
34
34
  } from "./chunk-4I3K6LEH.js";
@@ -6,14 +6,14 @@ import {
6
6
  import {
7
7
  DocSearchBar,
8
8
  useDocSearch
9
- } from "./chunk-5FVWDDX6.js";
9
+ } from "./chunk-AZKVHJA5.js";
10
10
  import {
11
11
  EntityTagBadges,
12
12
  FilterPillRow,
13
13
  LoadError,
14
14
  PageShell,
15
15
  RichMarkdownRenderer
16
- } from "./chunk-W2DXHR2R.js";
16
+ } from "./chunk-C5KMQLJP.js";
17
17
  import {
18
18
  PageLayout
19
19
  } from "./chunk-TU5LEF6A.js";
@@ -22,7 +22,7 @@ import {
22
22
  VideoBitesStrip,
23
23
  resolveContentHref,
24
24
  useCaptions
25
- } from "./chunk-MLFS5G3V.js";
25
+ } from "./chunk-SBPPM65Y.js";
26
26
  import {
27
27
  useRouter,
28
28
  useSearchParams
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
2
2
 
3
3
 
4
- var _chunkAI3CLDZOcjs = require('./chunk-AI3CLDZO.cjs');
4
+ var _chunkQ2G7NVFHcjs = require('./chunk-Q2G7NVFH.cjs');
5
5
 
6
6
 
7
7
  var _chunkU6LRRG2Ecjs = require('./chunk-U6LRRG2E.cjs');
@@ -18,7 +18,7 @@ var _chunk4LY6R4TNcjs = require('./chunk-4LY6R4TN.cjs');
18
18
 
19
19
 
20
20
 
21
- var _chunkRU6BTELIcjs = require('./chunk-RU6BTELI.cjs');
21
+ var _chunkRVSNXG6Jcjs = require('./chunk-RVSNXG6J.cjs');
22
22
 
23
23
 
24
24
 
@@ -70,7 +70,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
70
70
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
71
71
  "div",
72
72
  {
73
- id: _chunkRU6BTELIcjs.faqItemAnchor.call(void 0, item.id),
73
+ id: _chunkRVSNXG6Jcjs.faqItemAnchor.call(void 0, item.id),
74
74
  className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
75
75
  children: [
76
76
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -128,29 +128,29 @@ var DEFAULT_ASK_CARD = {
128
128
  var PICK_ROOT_MARGIN = "600px";
129
129
  var fillAssistant = (text, name) => text.split("{assistant}").join(name);
130
130
  function faqAskCardShown(assistant) {
131
- return _chunkRU6BTELIcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
131
+ return _chunkRVSNXG6Jcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
132
132
  }
133
133
  function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
134
134
  const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
135
135
  const { ref, inView } = _chunkK2JUJ37Dcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
136
136
  const [reached, setReached] = _react.useState.call(void 0, false);
137
137
  if (inView && !reached) setReached(true);
138
- const shownElsewhere = _chunkRU6BTELIcjs.useShownAskPromptIds.call(void 0, );
138
+ const shownElsewhere = _chunkRVSNXG6Jcjs.useShownAskPromptIds.call(void 0, );
139
139
  const excluded = exclude === void 0 ? shownElsewhere : exclude;
140
- const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( _optionalChain([assistant, 'optionalAccess', _2 => _2.askCard, 'optionalAccess', _3 => _3.count]))), () => ( _chunkRU6BTELIcjs.ASK_PROMPTS_DEFAULT_COUNT));
141
- const { prompts, isLoading, supported } = _chunkRU6BTELIcjs.useAskPrompts.call(void 0, {
140
+ const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( _optionalChain([assistant, 'optionalAccess', _2 => _2.askCard, 'optionalAccess', _3 => _3.count]))), () => ( _chunkRVSNXG6Jcjs.ASK_PROMPTS_DEFAULT_COUNT));
141
+ const { prompts, isLoading, supported } = _chunkRVSNXG6Jcjs.useAskPrompts.call(void 0, {
142
142
  topic,
143
143
  count: slots,
144
144
  exclude: _nullishCoalesce(excluded, () => ( void 0)),
145
145
  enabled: reached && excluded !== null
146
146
  });
147
- const open = _chunkRU6BTELIcjs.useAssistantOpen.call(void 0, topic, onOpen);
147
+ const open = _chunkRVSNXG6Jcjs.useAssistantOpen.call(void 0, topic, onOpen);
148
148
  const scoped = _react.useMemo.call(void 0, () => assistant ? { ...assistant, open } : null, [assistant, open]);
149
149
  if (!faqAskCardShown(assistant) || !assistant.name) return null;
150
150
  const name = assistant.name;
151
151
  const cardDescription = _nullishCoalesce(_nullishCoalesce(description, () => ( _optionalChain([assistant, 'access', _4 => _4.askCard, 'optionalAccess', _5 => _5.description]))), () => ( DEFAULT_ASK_CARD.description));
152
152
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEWPR7662cjs.AssistantRuntimeContext.Provider, { value: scoped, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
153
- _chunkRU6BTELIcjs.AskCard,
153
+ _chunkRVSNXG6Jcjs.AskCard,
154
154
  {
155
155
  title: fillAssistant(_nullishCoalesce(_nullishCoalesce(title, () => ( _optionalChain([assistant, 'access', _6 => _6.askCard, 'optionalAccess', _7 => _7.title]))), () => ( DEFAULT_ASK_CARD.title)), name),
156
156
  description: cardDescription ? fillAssistant(cardDescription, name) : void 0,
@@ -211,7 +211,7 @@ function groupFaqsBySection(faqs) {
211
211
  }
212
212
  let group = byName.get(name);
213
213
  if (!group) {
214
- group = { section: name, slug: _chunkRU6BTELIcjs.faqSectionSlug.call(void 0, name), items: [] };
214
+ group = { section: name, slug: _chunkRVSNXG6Jcjs.faqSectionSlug.call(void 0, name), items: [] };
215
215
  byName.set(name, group);
216
216
  }
217
217
  group.items.push(item);
@@ -266,7 +266,7 @@ function GroupedFaqList({
266
266
  }, [slugKey]);
267
267
  const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
268
268
  _react.useEffect.call(void 0, () => {
269
- const refresh = () => setHashTarget(_chunkRU6BTELIcjs.parseFaqHash.call(void 0, window.location.hash));
269
+ const refresh = () => setHashTarget(_chunkRVSNXG6Jcjs.parseFaqHash.call(void 0, window.location.hash));
270
270
  refresh();
271
271
  window.addEventListener("hashchange", refresh);
272
272
  return () => window.removeEventListener("hashchange", refresh);
@@ -440,7 +440,7 @@ function FaqDocumentPage({
440
440
  ask
441
441
  }
442
442
  ) });
443
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAI3CLDZOcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
443
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQ2G7NVFHcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
444
444
  }
445
445
 
446
446
 
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
2
2
 
3
3
 
4
- var _chunkAI3CLDZOcjs = require('./chunk-AI3CLDZO.cjs');
4
+ var _chunkQ2G7NVFHcjs = require('./chunk-Q2G7NVFH.cjs');
5
5
 
6
6
 
7
7
 
@@ -9,7 +9,7 @@ var _chunkAI3CLDZOcjs = require('./chunk-AI3CLDZO.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunkRU6BTELIcjs = require('./chunk-RU6BTELI.cjs');
12
+ var _chunkRVSNXG6Jcjs = require('./chunk-RVSNXG6J.cjs');
13
13
 
14
14
 
15
15
  var _chunkK2JUJ37Dcjs = require('./chunk-K2JUJ37D.cjs');
@@ -39,7 +39,7 @@ var _jsxruntime = require('react/jsx-runtime');
39
39
  function DocSearchResultRow({ result, isHighlighted }) {
40
40
  const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
41
41
  const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
42
- const { Icon: SourceIcon, label: iconLabel } = _chunkRU6BTELIcjs.resolveSourceIcon.call(void 0, {
42
+ const { Icon: SourceIcon, label: iconLabel } = _chunkRVSNXG6Jcjs.resolveSourceIcon.call(void 0, {
43
43
  sourceRepo,
44
44
  documentType: docType
45
45
  });
@@ -69,7 +69,7 @@ function DocSearchBar({
69
69
  renderResult
70
70
  }) {
71
71
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
72
- _chunkAI3CLDZOcjs.SearchInput,
72
+ _chunkQ2G7NVFHcjs.SearchInput,
73
73
  {
74
74
  placeholder,
75
75
  value: query,
@@ -119,7 +119,7 @@ function mapDocSearchResults(docs) {
119
119
  results.push({
120
120
  id: `group-${entry.repo}`,
121
121
  // Same table label and count as the chat's grouped chip: one owner each.
122
- title: `${_chunkRU6BTELIcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkRU6BTELIcjs.recordCountLabel.call(void 0, rows.length)}`,
122
+ title: `${_chunkRVSNXG6Jcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkRVSNXG6Jcjs.recordCountLabel.call(void 0, rows.length)}`,
123
123
  path: rows[0].path,
124
124
  type: "file",
125
125
  metadata: {
@@ -311,27 +311,27 @@ function useDocSearch(config) {
311
311
  case "navigate-same-tab": {
312
312
  if (wantsNewTab) {
313
313
  setKeepOpen(true);
314
- window.open(action.href, "_blank", _chunkRU6BTELIcjs.NEW_TAB_FEATURES);
314
+ window.open(action.href, "_blank", _chunkRVSNXG6Jcjs.NEW_TAB_FEATURES);
315
315
  return;
316
316
  }
317
317
  setKeepOpen(false);
318
318
  const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
319
319
  if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
320
- router.push(_chunkRU6BTELIcjs.stripSameOriginToPath.call(void 0, action.href));
320
+ router.push(_chunkRVSNXG6Jcjs.stripSameOriginToPath.call(void 0, action.href));
321
321
  return;
322
322
  }
323
323
  case "navigate-new-tab":
324
324
  setKeepOpen(true);
325
325
  if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
326
326
  const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
327
- _chunkRU6BTELIcjs.resolveExternalNavigation.call(void 0, {
327
+ _chunkRVSNXG6Jcjs.resolveExternalNavigation.call(void 0, {
328
328
  href: action.href,
329
329
  targetPlatform,
330
330
  runtime
331
331
  }).open();
332
332
  return;
333
333
  }
334
- window.open(action.href, "_blank", _chunkRU6BTELIcjs.NEW_TAB_FEATURES);
334
+ window.open(action.href, "_blank", _chunkRVSNXG6Jcjs.NEW_TAB_FEATURES);
335
335
  return;
336
336
  case "ask-ai":
337
337
  setKeepOpen(false);