@flamingo-stack/openframe-frontend-core 0.0.647 → 0.0.648-snapshot.20260917211410

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 (155) hide show
  1. package/dist/chat-protocol/index.cjs.map +1 -1
  2. package/dist/chat-protocol/index.js.map +1 -1
  3. package/dist/{chunk-RXIFYEL7.js → chunk-4OAG7752.js} +5 -5
  4. package/dist/{chunk-MKGAIWQ5.cjs → chunk-742HTNAE.cjs} +3 -3
  5. package/dist/{chunk-MKGAIWQ5.cjs.map → chunk-742HTNAE.cjs.map} +1 -1
  6. package/dist/{chunk-IBTOED4M.cjs → chunk-C3CJJC2A.cjs} +7 -7
  7. package/dist/{chunk-IBTOED4M.cjs.map → chunk-C3CJJC2A.cjs.map} +1 -1
  8. package/dist/{chunk-ZNSBWM2D.js → chunk-C4VPCRSI.js} +4 -4
  9. package/dist/{chunk-RUEVZAPN.js → chunk-CZVFFD3P.js} +5 -5
  10. package/dist/{chunk-V33TSVUR.js → chunk-DVD4CMKB.js} +3 -3
  11. package/dist/{chunk-ABVOAYYS.cjs → chunk-EDDAU2BP.cjs} +44 -44
  12. package/dist/{chunk-ABVOAYYS.cjs.map → chunk-EDDAU2BP.cjs.map} +1 -1
  13. package/dist/{chunk-SS2RN4TU.cjs → chunk-EUGIXBAC.cjs} +13 -24
  14. package/dist/chunk-EUGIXBAC.cjs.map +1 -0
  15. package/dist/{chunk-IKMETQWQ.js → chunk-H6ND7FKB.js} +5 -5
  16. package/dist/{chunk-H3EJDISW.js → chunk-IEM2Z6K6.js} +10 -2
  17. package/dist/chunk-IEM2Z6K6.js.map +1 -0
  18. package/dist/{chunk-VXG43NJD.js → chunk-J2T3XDZX.js} +4 -4
  19. package/dist/{chunk-QPAQEPA3.js → chunk-J5VVA2KW.js} +2 -2
  20. package/dist/{chunk-AKM4AIZY.cjs → chunk-JYFCKQ2K.cjs} +22 -22
  21. package/dist/{chunk-AKM4AIZY.cjs.map → chunk-JYFCKQ2K.cjs.map} +1 -1
  22. package/dist/{chunk-T7NBMDDE.js → chunk-KQGTQXG2.js} +2 -2
  23. package/dist/{chunk-YCSYKAT2.cjs → chunk-KUCBDDQB.cjs} +248 -248
  24. package/dist/{chunk-YCSYKAT2.cjs.map → chunk-KUCBDDQB.cjs.map} +1 -1
  25. package/dist/{chunk-5XBO6URE.cjs → chunk-M2FFL6OG.cjs} +25 -25
  26. package/dist/{chunk-5XBO6URE.cjs.map → chunk-M2FFL6OG.cjs.map} +1 -1
  27. package/dist/{chunk-DLJHXLFG.js → chunk-MAFPT6GS.js} +6 -6
  28. package/dist/{chunk-ASPNYVGE.cjs → chunk-MB33V5S6.cjs} +51 -51
  29. package/dist/{chunk-ASPNYVGE.cjs.map → chunk-MB33V5S6.cjs.map} +1 -1
  30. package/dist/{chunk-ERLGZPCY.js → chunk-MXGGYW2R.js} +7 -7
  31. package/dist/{chunk-EG3PA7L2.cjs → chunk-N72F2XWZ.cjs} +10 -10
  32. package/dist/{chunk-EG3PA7L2.cjs.map → chunk-N72F2XWZ.cjs.map} +1 -1
  33. package/dist/{chunk-L6ES7O6B.js → chunk-O3B34KLC.js} +4 -4
  34. package/dist/{chunk-5YW3GAUR.cjs → chunk-OE6KUWRA.cjs} +424 -305
  35. package/dist/chunk-OE6KUWRA.cjs.map +1 -0
  36. package/dist/{chunk-DIGCERY4.js → chunk-OHNBWBZH.js} +7 -18
  37. package/dist/chunk-OHNBWBZH.js.map +1 -0
  38. package/dist/{chunk-VIAMEQM2.cjs → chunk-OWPMODYT.cjs} +5 -5
  39. package/dist/{chunk-VIAMEQM2.cjs.map → chunk-OWPMODYT.cjs.map} +1 -1
  40. package/dist/{chunk-DWJREJRA.cjs → chunk-PSXUY4K5.cjs} +10 -2
  41. package/dist/chunk-PSXUY4K5.cjs.map +1 -0
  42. package/dist/{chunk-TO4UY3P5.cjs → chunk-QFWZIXJ3.cjs} +75 -75
  43. package/dist/{chunk-TO4UY3P5.cjs.map → chunk-QFWZIXJ3.cjs.map} +1 -1
  44. package/dist/{chunk-GB2RYIVM.js → chunk-QG3ZNNKG.js} +2 -2
  45. package/dist/{chunk-5DCRDV7Y.js → chunk-QVAFZGCF.js} +7 -7
  46. package/dist/{chunk-N6ZYJXVJ.js → chunk-QVKRSUGB.js} +125 -6
  47. package/dist/chunk-QVKRSUGB.js.map +1 -0
  48. package/dist/{chunk-6Z4GSQPB.js → chunk-RHJ4NU3W.js} +2 -2
  49. package/dist/{chunk-RIOWS34T.js → chunk-UOOXFD74.js} +3 -3
  50. package/dist/{chunk-F4I46MKF.cjs → chunk-W554ING6.cjs} +12 -12
  51. package/dist/{chunk-F4I46MKF.cjs.map → chunk-W554ING6.cjs.map} +1 -1
  52. package/dist/{chunk-Q2XH3HW6.cjs → chunk-W7KFDHIU.cjs} +37 -37
  53. package/dist/{chunk-Q2XH3HW6.cjs.map → chunk-W7KFDHIU.cjs.map} +1 -1
  54. package/dist/{chunk-RSRYEVGZ.cjs → chunk-XIBBDYJK.cjs} +5 -5
  55. package/dist/{chunk-RSRYEVGZ.cjs.map → chunk-XIBBDYJK.cjs.map} +1 -1
  56. package/dist/{chunk-EZ6HGRLP.cjs → chunk-Y5EEPXT3.cjs} +33 -33
  57. package/dist/{chunk-EZ6HGRLP.cjs.map → chunk-Y5EEPXT3.cjs.map} +1 -1
  58. package/dist/{chunk-DBSU5RAE.cjs → chunk-YCBGEHWC.cjs} +3 -3
  59. package/dist/{chunk-DBSU5RAE.cjs.map → chunk-YCBGEHWC.cjs.map} +1 -1
  60. package/dist/components/case-studies/index.cjs +20 -20
  61. package/dist/components/case-studies/index.js +5 -5
  62. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  63. package/dist/components/chat/index.cjs +3 -3
  64. package/dist/components/chat/index.js +2 -2
  65. package/dist/components/chat/types/message.types.d.ts +5 -0
  66. package/dist/components/chat/types/message.types.d.ts.map +1 -1
  67. package/dist/components/chat/utils/cited-sources.d.ts +5 -0
  68. package/dist/components/chat/utils/cited-sources.d.ts.map +1 -1
  69. package/dist/components/chat/utils/source-row-cta.d.ts +2 -7
  70. package/dist/components/chat/utils/source-row-cta.d.ts.map +1 -1
  71. package/dist/components/contact/index.cjs +6 -6
  72. package/dist/components/contact/index.js +5 -5
  73. package/dist/components/docs/index.cjs +9 -9
  74. package/dist/components/docs/index.js +8 -8
  75. package/dist/components/embeds/index.cjs +6 -6
  76. package/dist/components/embeds/index.js +5 -5
  77. package/dist/components/faq/index.cjs +6 -6
  78. package/dist/components/faq/index.js +5 -5
  79. package/dist/components/features/index.cjs +5 -5
  80. package/dist/components/features/index.js +4 -4
  81. package/dist/components/help-center-pages/index.cjs +25 -25
  82. package/dist/components/help-center-pages/index.js +16 -16
  83. package/dist/components/icons/index.cjs +4 -2
  84. package/dist/components/icons/index.cjs.map +1 -1
  85. package/dist/components/icons/index.d.ts +1 -0
  86. package/dist/components/icons/index.d.ts.map +1 -1
  87. package/dist/components/icons/index.js +3 -1
  88. package/dist/components/icons/quickbooks-icon.d.ts +7 -0
  89. package/dist/components/icons/quickbooks-icon.d.ts.map +1 -0
  90. package/dist/components/index.cjs +44 -42
  91. package/dist/components/index.cjs.map +1 -1
  92. package/dist/components/index.js +17 -15
  93. package/dist/components/index.js.map +1 -1
  94. package/dist/components/meeting-scheduler/index.cjs +28 -28
  95. package/dist/components/meeting-scheduler/index.js +4 -4
  96. package/dist/components/navigation/index.cjs +8 -8
  97. package/dist/components/navigation/index.js +7 -7
  98. package/dist/components/onboarding-guides/index.cjs +8 -8
  99. package/dist/components/onboarding-guides/index.js +7 -7
  100. package/dist/components/shared/doc-search/map-doc-search-results.d.ts.map +1 -1
  101. package/dist/components/tickets/index.cjs +9 -9
  102. package/dist/components/tickets/index.js +8 -8
  103. package/dist/components/ui/index.cjs +5 -5
  104. package/dist/components/ui/index.js +4 -4
  105. package/dist/hooks/index.cjs +3 -3
  106. package/dist/hooks/index.js +2 -2
  107. package/dist/index.cjs +23 -9
  108. package/dist/index.cjs.map +1 -1
  109. package/dist/index.js +22 -8
  110. package/dist/index.js.map +1 -1
  111. package/dist/utils/index.cjs +163 -0
  112. package/dist/utils/index.cjs.map +1 -1
  113. package/dist/utils/index.d.ts +1 -0
  114. package/dist/utils/index.d.ts.map +1 -1
  115. package/dist/utils/index.js +158 -1
  116. package/dist/utils/index.js.map +1 -1
  117. package/dist/utils/source-grouping.d.ts +86 -0
  118. package/dist/utils/source-grouping.d.ts.map +1 -0
  119. package/dist/utils/source-icons.d.ts +7 -0
  120. package/dist/utils/source-icons.d.ts.map +1 -1
  121. package/package.json +1 -1
  122. package/src/components/chat/embeddable-chat.tsx +10 -2
  123. package/src/components/chat/types/message.types.ts +5 -0
  124. package/src/components/chat/utils/cited-sources.ts +7 -1
  125. package/src/components/chat/utils/source-row-cta.ts +4 -7
  126. package/src/components/icons/index.ts +1 -0
  127. package/src/components/icons/quickbooks-icon.tsx +13 -0
  128. package/src/components/shared/doc-search/__tests__/map-doc-search-results.test.ts +48 -0
  129. package/src/components/shared/doc-search/map-doc-search-results.ts +6 -16
  130. package/src/components/ui/markdown/__tests__/mermaid-zoom.test.tsx +2 -0
  131. package/src/utils/__tests__/source-grouping.test.ts +240 -0
  132. package/src/utils/index.ts +11 -0
  133. package/src/utils/source-grouping.ts +215 -0
  134. package/src/utils/source-icons.ts +13 -0
  135. package/dist/chunk-5YW3GAUR.cjs.map +0 -1
  136. package/dist/chunk-DIGCERY4.js.map +0 -1
  137. package/dist/chunk-DWJREJRA.cjs.map +0 -1
  138. package/dist/chunk-H3EJDISW.js.map +0 -1
  139. package/dist/chunk-N6ZYJXVJ.js.map +0 -1
  140. package/dist/chunk-SS2RN4TU.cjs.map +0 -1
  141. /package/dist/{chunk-RXIFYEL7.js.map → chunk-4OAG7752.js.map} +0 -0
  142. /package/dist/{chunk-ZNSBWM2D.js.map → chunk-C4VPCRSI.js.map} +0 -0
  143. /package/dist/{chunk-RUEVZAPN.js.map → chunk-CZVFFD3P.js.map} +0 -0
  144. /package/dist/{chunk-V33TSVUR.js.map → chunk-DVD4CMKB.js.map} +0 -0
  145. /package/dist/{chunk-IKMETQWQ.js.map → chunk-H6ND7FKB.js.map} +0 -0
  146. /package/dist/{chunk-VXG43NJD.js.map → chunk-J2T3XDZX.js.map} +0 -0
  147. /package/dist/{chunk-QPAQEPA3.js.map → chunk-J5VVA2KW.js.map} +0 -0
  148. /package/dist/{chunk-T7NBMDDE.js.map → chunk-KQGTQXG2.js.map} +0 -0
  149. /package/dist/{chunk-DLJHXLFG.js.map → chunk-MAFPT6GS.js.map} +0 -0
  150. /package/dist/{chunk-ERLGZPCY.js.map → chunk-MXGGYW2R.js.map} +0 -0
  151. /package/dist/{chunk-L6ES7O6B.js.map → chunk-O3B34KLC.js.map} +0 -0
  152. /package/dist/{chunk-GB2RYIVM.js.map → chunk-QG3ZNNKG.js.map} +0 -0
  153. /package/dist/{chunk-5DCRDV7Y.js.map → chunk-QVAFZGCF.js.map} +0 -0
  154. /package/dist/{chunk-6Z4GSQPB.js.map → chunk-RHJ4NU3W.js.map} +0 -0
  155. /package/dist/{chunk-RIOWS34T.js.map → chunk-UOOXFD74.js.map} +0 -0
@@ -28,7 +28,7 @@ import {
28
28
  FlamingoLogo,
29
29
  MlgLogo,
30
30
  OpenmspLogo
31
- } from "./chunk-H3EJDISW.js";
31
+ } from "./chunk-IEM2Z6K6.js";
32
32
  import {
33
33
  Chevron02DownIcon,
34
34
  XmarkIcon
@@ -3146,4 +3146,4 @@ export {
3146
3146
  splitCsvEnv,
3147
3147
  useHumanitySignals
3148
3148
  };
3149
- //# sourceMappingURL=chunk-GB2RYIVM.js.map
3149
+ //# sourceMappingURL=chunk-QG3ZNNKG.js.map
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import {
3
3
  ContactForm
4
- } from "./chunk-ZNSBWM2D.js";
4
+ } from "./chunk-C4VPCRSI.js";
5
5
  import {
6
6
  DeliveryRow,
7
7
  DevCardRowContent,
8
8
  DevCardRowSkeletonList,
9
9
  DevSectionPage,
10
10
  ListEmptyState
11
- } from "./chunk-QPAQEPA3.js";
11
+ } from "./chunk-J5VVA2KW.js";
12
12
  import {
13
13
  EmptyState,
14
14
  UnifiedPagination
@@ -19,7 +19,7 @@ import {
19
19
  TOAST_COPY,
20
20
  isOptimistic,
21
21
  useOptionalTicketLive
22
- } from "./chunk-RIOWS34T.js";
22
+ } from "./chunk-UOOXFD74.js";
23
23
  import {
24
24
  AlertDialog,
25
25
  AlertDialogAction,
@@ -35,11 +35,11 @@ import {
35
35
  Textarea,
36
36
  TicketAttachmentsList,
37
37
  devSectionAnchorId
38
- } from "./chunk-L6ES7O6B.js";
38
+ } from "./chunk-O3B34KLC.js";
39
39
  import {
40
40
  toast,
41
41
  useScrollToHash
42
- } from "./chunk-GB2RYIVM.js";
42
+ } from "./chunk-QG3ZNNKG.js";
43
43
  import {
44
44
  PAGE_PARAM_LIMITS,
45
45
  pageCount,
@@ -59,7 +59,7 @@ import {
59
59
  formatRelativeTime,
60
60
  useChatAttachments,
61
61
  useChatIdentity
62
- } from "./chunk-N6ZYJXVJ.js";
62
+ } from "./chunk-QVKRSUGB.js";
63
63
  import {
64
64
  STICKY_HEADER_OFFSET_PX,
65
65
  scrollElementIntoView
@@ -1833,4 +1833,4 @@ export {
1833
1833
  HelpCenterCreateForm,
1834
1834
  HelpCenterList
1835
1835
  };
1836
- //# sourceMappingURL=chunk-5DCRDV7Y.js.map
1836
+ //# sourceMappingURL=chunk-QVAFZGCF.js.map
@@ -42,7 +42,7 @@ import {
42
42
  WhatsAppIcon,
43
43
  XLogo,
44
44
  YouTubeIcon
45
- } from "./chunk-H3EJDISW.js";
45
+ } from "./chunk-IEM2Z6K6.js";
46
46
  import {
47
47
  AlertCircleIcon,
48
48
  AlertTriangleIcon,
@@ -15007,6 +15007,12 @@ var DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = {
15007
15007
  function defaultTableIdForDocumentType(documentType) {
15008
15008
  return DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID[documentType] ?? null;
15009
15009
  }
15010
+ function defaultDocumentTypeForTableId(tableId) {
15011
+ for (const [documentType, table] of Object.entries(DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID)) {
15012
+ if (table === tableId) return documentType;
15013
+ }
15014
+ return null;
15015
+ }
15010
15016
 
15011
15017
  // src/components/chat/utils/source-row-cta.ts
15012
15018
  import { FileText as FileText3 } from "lucide-react";
@@ -15182,6 +15188,110 @@ if (_orderIdx("flamingo") > _orderIdx("flamingo-teaser") || _orderIdx("flamingo"
15182
15188
  );
15183
15189
  }
15184
15190
 
15191
+ // src/utils/source-grouping.ts
15192
+ var DOC_TABLE_TYPES = ["markdown", "data_room_doc"];
15193
+ function groupsByTable(documentType) {
15194
+ return !DOC_TABLE_TYPES.includes(documentType ?? "");
15195
+ }
15196
+ function recordCountLabel(count) {
15197
+ return `(${count} ${count === 1 ? "record" : "records"})`;
15198
+ }
15199
+ function buildGroupedSource(spec) {
15200
+ const first = spec.rows[0];
15201
+ const externalUrl = spec.externalUrl ?? first?.externalUrl;
15202
+ const targetPlatform = spec.targetPlatform !== void 0 ? spec.targetPlatform : first?.targetPlatform;
15203
+ return {
15204
+ index: spec.index,
15205
+ name: `${getSourceLabel(spec.sourceRepo)} ${recordCountLabel(spec.rows.length)}`,
15206
+ path: first?.path ?? "",
15207
+ documentType: first?.documentType ?? "",
15208
+ ...externalUrl ? { externalUrl } : {},
15209
+ targetPlatform: targetPlatform ?? null,
15210
+ sourceRepo: spec.sourceRepo,
15211
+ items: spec.rows
15212
+ };
15213
+ }
15214
+ function isGroupedChip(source) {
15215
+ return !!source.items && source.items.length > 0;
15216
+ }
15217
+ function typeOf(source) {
15218
+ return source.documentType || defaultDocumentTypeForTableId(source.sourceRepo) || "";
15219
+ }
15220
+ function joinsTableChip(source) {
15221
+ if (!source.sourceRepo) return false;
15222
+ return groupsByTable(typeOf({ ...source, sourceRepo: source.sourceRepo }));
15223
+ }
15224
+ function rowsOf(source) {
15225
+ if (isGroupedChip(source)) return source.items ?? [];
15226
+ return [
15227
+ {
15228
+ index: source.index,
15229
+ id: source.id ?? "",
15230
+ documentType: typeOf(source),
15231
+ name: source.name,
15232
+ ...source.externalUrl ? { externalUrl: source.externalUrl } : {},
15233
+ targetPlatform: source.targetPlatform ?? null,
15234
+ path: source.path || null
15235
+ }
15236
+ ];
15237
+ }
15238
+ function uniqueRows(rows) {
15239
+ const seen = /* @__PURE__ */ new Set();
15240
+ return rows.filter((row) => {
15241
+ if (!row.id) return true;
15242
+ const identity = `${row.documentType}:${row.id}`;
15243
+ if (seen.has(identity)) return false;
15244
+ seen.add(identity);
15245
+ return true;
15246
+ });
15247
+ }
15248
+ function groupSourcesByTable(sources2) {
15249
+ const membersByTable = /* @__PURE__ */ new Map();
15250
+ for (const source of sources2) {
15251
+ if (!joinsTableChip(source)) continue;
15252
+ const members = membersByTable.get(source.sourceRepo) ?? [];
15253
+ members.push(source);
15254
+ membersByTable.set(source.sourceRepo, members);
15255
+ }
15256
+ const emitted = /* @__PURE__ */ new Set();
15257
+ const chips = [];
15258
+ for (const source of sources2) {
15259
+ if (!joinsTableChip(source)) {
15260
+ chips.push(source);
15261
+ continue;
15262
+ }
15263
+ if (emitted.has(source.sourceRepo)) continue;
15264
+ emitted.add(source.sourceRepo);
15265
+ const members = membersByTable.get(source.sourceRepo) ?? [];
15266
+ if (members.length === 1 && isGroupedChip(source)) {
15267
+ chips.push(source);
15268
+ continue;
15269
+ }
15270
+ const serverChip = members.find(isGroupedChip);
15271
+ chips.push(
15272
+ buildGroupedSource({
15273
+ index: source.index,
15274
+ sourceRepo: source.sourceRepo,
15275
+ rows: uniqueRows(members.flatMap(rowsOf)),
15276
+ ...serverChip?.externalUrl ? { externalUrl: serverChip.externalUrl } : {},
15277
+ ...serverChip && serverChip.targetPlatform !== void 0 ? { targetPlatform: serverChip.targetPlatform } : {}
15278
+ })
15279
+ );
15280
+ }
15281
+ return chips;
15282
+ }
15283
+ function formatCitationIndices(indices) {
15284
+ const sorted = [...new Set(indices)].sort((a, b) => a - b);
15285
+ const runs = [];
15286
+ for (let start = 0; start < sorted.length; ) {
15287
+ let end = start;
15288
+ while (end + 1 < sorted.length && sorted[end + 1] === sorted[end] + 1) end++;
15289
+ runs.push(end === start ? `${sorted[start]}` : `${sorted[start]}-${sorted[end]}`);
15290
+ start = end + 1;
15291
+ }
15292
+ return runs.join(", ");
15293
+ }
15294
+
15185
15295
  // src/components/chat/utils/source-row-cta.ts
15186
15296
  function sanitizePath(path) {
15187
15297
  return (path || "").replace(/[^a-zA-Z0-9/_\-.]/g, "");
@@ -15201,7 +15311,6 @@ function pickSourceIcon(sourceRepo, documentType) {
15201
15311
  const iconLabel = documentType ?? "Source";
15202
15312
  return { icon, iconLabel };
15203
15313
  }
15204
- var DOC_TABLE_TYPES = ["markdown", "data_room_doc"];
15205
15314
  function shouldFallbackToPathNav(row) {
15206
15315
  return !!row.documentType && DOC_TABLE_TYPES.includes(row.documentType);
15207
15316
  }
@@ -24478,7 +24587,7 @@ function splitCitedSources(sources2, content) {
24478
24587
  }
24479
24588
  const cited = sources2.filter((source) => firstMentionAt.has(source.index)).sort((a, b) => (firstMentionAt.get(a.index) ?? 0) - (firstMentionAt.get(b.index) ?? 0));
24480
24589
  const uncited = sources2.filter((source) => !firstMentionAt.has(source.index));
24481
- return { cited, uncited };
24590
+ return { cited: groupSourcesByTable(cited), uncited: groupSourcesByTable(uncited) };
24482
24591
  }
24483
24592
 
24484
24593
  // src/components/chat/utils/host-message.ts
@@ -24664,7 +24773,9 @@ function SourceChip({
24664
24773
  const ItemIcon = itemCta.icon;
24665
24774
  const itemChatRef = itemCta.chatRef;
24666
24775
  return {
24667
- label: item.name,
24776
+ // A client-built group keeps each row's own citation number, so the
24777
+ // `[3]` in the answer is findable inside the dropdown.
24778
+ label: item.index === void 0 ? item.name : `[${item.index}] ${item.name}`,
24668
24779
  icon: /* @__PURE__ */ jsx98(ItemIcon, { className: "h-3.5 w-3.5" }),
24669
24780
  href: itemCta.href ?? void 0,
24670
24781
  targetPlatform: itemCta.targetPlatform,
@@ -24676,6 +24787,8 @@ function SourceChip({
24676
24787
  } : void 0
24677
24788
  };
24678
24789
  });
24790
+ const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
24791
+ const groupIndices = itemIndices.length > 0 ? formatCitationIndices(itemIndices) : `${src.index}`;
24679
24792
  return /* @__PURE__ */ jsx98(
24680
24793
  HoverDropdown,
24681
24794
  {
@@ -24694,7 +24807,7 @@ function SourceChip({
24694
24807
  icon,
24695
24808
  /* @__PURE__ */ jsxs76("span", { className: "max-w-[160px] truncate", children: [
24696
24809
  "[",
24697
- src.index,
24810
+ groupIndices,
24698
24811
  "] ",
24699
24812
  src.name
24700
24813
  ] })
@@ -26218,6 +26331,12 @@ export {
26218
26331
  getRequestOrigin,
26219
26332
  resolveRedirectTarget,
26220
26333
  getAllPlatformBaseDomains,
26334
+ DOC_TABLE_TYPES,
26335
+ groupsByTable,
26336
+ recordCountLabel,
26337
+ buildGroupedSource,
26338
+ groupSourcesByTable,
26339
+ formatCitationIndices,
26221
26340
  resolveSourceRowCTA,
26222
26341
  resolveSourceIcon,
26223
26342
  chatCardLabel,
@@ -26304,4 +26423,4 @@ export {
26304
26423
  buildStreamFrames,
26305
26424
  EmbeddableChat
26306
26425
  };
26307
- //# sourceMappingURL=chunk-N6ZYJXVJ.js.map
26426
+ //# sourceMappingURL=chunk-QVKRSUGB.js.map