@alfadocs/ui-kit 1.134.0 → 1.136.0

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 (205) hide show
  1. package/dist/_chunks/{ai-prompt-input-JIPbrTF3.js → ai-prompt-input-CVNeusoW.js} +2 -2
  2. package/dist/_chunks/ai-summary-panel-BhCo2vZF.js +1045 -0
  3. package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CVBlKur9.js} +4 -4
  4. package/dist/_chunks/{anamnesis-summary-rows-CCNmkq55.js → anamnesis-summary-rows-Dr2V1Rtf.js} +3 -3
  5. package/dist/_chunks/{appointment-card-DG3m9yN-.js → appointment-card-BT1cMZIX.js} +2 -2
  6. package/dist/_chunks/{appointment-peek-BK0tDs4C.js → appointment-peek-BP_ACFz5.js} +2 -2
  7. package/dist/_chunks/{appointment-timeline-BiI2riRZ.js → appointment-timeline-Dy4YQJ17.js} +2 -2
  8. package/dist/_chunks/{appointment-tray-ClJCtYQj.js → appointment-tray-B3gSHL1j.js} +2 -2
  9. package/dist/_chunks/{audio-recorder-CsnM_WDy.js → audio-recorder-BOF5YYoC.js} +2 -2
  10. package/dist/_chunks/{balance-badge-cell-DTiMdnCZ.js → balance-badge-cell-BSB02Bwo.js} +4 -4
  11. package/dist/_chunks/{bill-line-table-DHKb_O7c.js → bill-line-table-By-YL2ms.js} +2 -2
  12. package/dist/_chunks/{bishop-score-CKztphVz.js → bishop-score-DWGESRP9.js} +2 -2
  13. package/dist/_chunks/{calendar-appointment-editor-dialog-BSkIYGlW.js → calendar-appointment-editor-dialog-CB4cQOtc.js} +10 -10
  14. package/dist/_chunks/call-status-chip-pajxN5eZ.js +180 -0
  15. package/dist/_chunks/calls-panel-BIfatK90.js +1094 -0
  16. package/dist/_chunks/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
  17. package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-BmvnuZqj.js} +112 -106
  18. package/dist/_chunks/{chat-message-CfIyXrxA.js → chat-message-B4TMeZ2m.js} +35 -30
  19. package/dist/_chunks/circle-x-W8Enq3i4.js +16 -0
  20. package/dist/_chunks/communications-panel-SQ-55e3V.js +1079 -0
  21. package/dist/_chunks/{data-grid-B2oaI7Lt.js → data-grid-CxKz8flO.js} +2 -2
  22. package/dist/_chunks/{data-table-FTV3uRjX.js → data-table-_tgj0C_T.js} +2 -2
  23. package/dist/_chunks/{default-tabs-DbebYO04.js → default-tabs-oDWQzbN7.js} +3 -3
  24. package/dist/_chunks/{document-preview-DLVIrOYV.js → document-preview-DWlejd8A.js} +2 -2
  25. package/dist/_chunks/entity-summary-CPUHzyil.js +297 -0
  26. package/dist/_chunks/{file-manager-Bzr5NK1t.js → file-manager-CEi4z2i0.js} +2 -2
  27. package/dist/_chunks/{gestational-age-calculator-mB6brTlp.js → gestational-age-calculator-CHbpC4vL.js} +2 -2
  28. package/dist/_chunks/get-error-message-DbFUzuja.js +7 -0
  29. package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -0
  30. package/dist/_chunks/{heatmap-C5gJin_F.js → heatmap-_546qI2V.js} +2 -2
  31. package/dist/_chunks/{invoice-upload-list-B5aMffTy.js → invoice-upload-list-CQI9MUl6.js} +3 -3
  32. package/dist/_chunks/{kit-extensions-DUaIYyMD.js → kit-extensions-BNBf4m8O.js} +3 -3
  33. package/dist/_chunks/{link-cell-renderer-D3JLPURZ.js → link-cell-renderer-Xx5T8u5Q.js} +3 -3
  34. package/dist/_chunks/megaphone-CzeTT9B3.js +22 -0
  35. package/dist/_chunks/{muscle-scheme-BGJD62op.js → muscle-scheme-D_rSyGDj.js} +2 -2
  36. package/dist/_chunks/{notes-panel-BAyPOr8N.js → notes-panel-BvjAo4RQ.js} +5 -4
  37. package/dist/_chunks/{optical-prescription-Da_r8pMr.js → optical-prescription-DaSbsh4p.js} +2 -2
  38. package/dist/_chunks/{patient-account-settings-BkAtIxJW.js → patient-account-settings-Bmfeclpd.js} +3 -3
  39. package/dist/_chunks/{patient-card-DTh3QTyS.js → patient-card-Cpr8iD19.js} +4 -4
  40. package/dist/_chunks/{patient-check-in-resume-xhqjC6gf.js → patient-check-in-resume-CYZ-SvsF.js} +41 -41
  41. package/dist/_chunks/{patient-details-DBtEITfE.js → patient-details-9eh9cNy7.js} +2 -2
  42. package/dist/_chunks/{patient-field-row-a5d4QijH.js → patient-field-row-B782eT0C.js} +2 -2
  43. package/dist/_chunks/{patient-sign-in-pin-CDBqV254.js → patient-sign-in-pin-DmMBwWet.js} +2 -2
  44. package/dist/_chunks/{patient-sign-in-steps-C2JSqlok.js → patient-sign-in-steps-BKcxNkdY.js} +37 -59
  45. package/dist/_chunks/{patient-summary-card-Bl2NknPe.js → patient-summary-card-K9zaMl1O.js} +2 -2
  46. package/dist/_chunks/phone-off-DQSTLz4l.js +28 -0
  47. package/dist/_chunks/{portal-details-CTEsm705.js → portal-details-DCIiGkHA.js} +2 -2
  48. package/dist/_chunks/{portal-documents-D8skew0h.js → portal-documents-DVKj6Sco.js} +4 -4
  49. package/dist/_chunks/{portal-parts-BdR29P7z.js → portal-parts-Br8wuala.js} +2 -2
  50. package/dist/_chunks/{pregnancy-dating-BNI32qNw.js → pregnancy-dating-lJbzai73.js} +2 -2
  51. package/dist/_chunks/{registration-form-DS3RuKHu.js → registration-form-CuLiTA52.js} +2 -2
  52. package/dist/_chunks/{reserved.agent-DOzOBUW7.js → reserved.agent-CabZHFJC.js} +2 -2
  53. package/dist/_chunks/{select-uESzXTX6.js → select-CIXKyUMw.js} +172 -149
  54. package/dist/_chunks/{session-countdown-DOx1IBUB.js → session-countdown-StcyUU5O.js} +56 -66
  55. package/dist/_chunks/{signature-request-CHsM_iWi.js → signature-request-vJDSHZld.js} +2 -2
  56. package/dist/_chunks/signing-end-screen-BdhbkPKO.js +1355 -0
  57. package/dist/_chunks/{tabs-CRIDBLP7.js → tabs-Czkmw5ou.js} +2 -2
  58. package/dist/_chunks/{task-editor-g1AGfxhr.js → task-editor-BfXSn6U1.js} +4 -3
  59. package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-DbtJS4QI.js} +156 -172
  60. package/dist/_chunks/{toolbar-CfdoJzMV.js → toolbar-DjG-cpD_.js} +2 -2
  61. package/dist/_chunks/{unit-converter-YKlHyUC2.js → unit-converter-CUAUTu2B.js} +2 -2
  62. package/dist/_chunks/{use-appointment-details-read-Dzc6fEzG.js → use-appointment-details-read-7J0j1FP7.js} +111 -110
  63. package/dist/_chunks/{voice-control-panel-Be_c0CQ0.js → voice-control-panel-Cp4vs1iy.js} +2 -2
  64. package/dist/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
  65. package/dist/agent-catalog.json +528 -2
  66. package/dist/agent-i18n/en.json +51 -1
  67. package/dist/browser-support.js +1 -1
  68. package/dist/components/_shared/sms-segments.d.ts +43 -0
  69. package/dist/components/ai-prompt-input/index.js +1 -1
  70. package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
  71. package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +134 -0
  72. package/dist/components/ai-summary-panel/index.d.ts +4 -0
  73. package/dist/components/ai-summary-panel/index.js +6 -0
  74. package/dist/components/ai-summary-panel/summary-markdown.d.ts +15 -0
  75. package/dist/components/appointment-card/index.js +2 -2
  76. package/dist/components/appointment-details-panel/index.js +1 -1
  77. package/dist/components/appointment-peek/index.js +1 -1
  78. package/dist/components/appointment-timeline/index.js +1 -1
  79. package/dist/components/audio-recorder/index.js +1 -1
  80. package/dist/components/bill-line-table/index.js +1 -1
  81. package/dist/components/bill-table/index.js +1 -1
  82. package/dist/components/bishop-score/index.js +1 -1
  83. package/dist/components/booking/index.js +1 -1
  84. package/dist/components/call-status-chip/call-status-chip.d.ts +30 -0
  85. package/dist/components/call-status-chip/index.d.ts +3 -0
  86. package/dist/components/call-status-chip/index.js +5 -0
  87. package/dist/components/calls-panel/calls-panel.agent.d.ts +4 -0
  88. package/dist/components/calls-panel/calls-panel.d.ts +153 -0
  89. package/dist/components/calls-panel/index.d.ts +4 -0
  90. package/dist/components/calls-panel/index.js +6 -0
  91. package/dist/components/chat-container/chat-container.d.ts +7 -0
  92. package/dist/components/chat-container/index.js +1 -1
  93. package/dist/components/chat-input/chat-input.d.ts +20 -0
  94. package/dist/components/chat-input/index.js +1 -1
  95. package/dist/components/chat-message/index.js +1 -1
  96. package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
  97. package/dist/components/communications-panel/communications-panel.d.ts +148 -0
  98. package/dist/components/communications-panel/index.d.ts +6 -0
  99. package/dist/components/communications-panel/index.js +7 -0
  100. package/dist/components/data-grid/index.js +2 -2
  101. package/dist/components/data-table/index.js +2 -2
  102. package/dist/components/document-preview/index.js +1 -1
  103. package/dist/components/entity-summary/entity-summary.d.ts +37 -1
  104. package/dist/components/entity-summary/index.js +1 -1
  105. package/dist/components/file-manager/index.js +1 -1
  106. package/dist/components/gestational-age-calculator/index.js +1 -1
  107. package/dist/components/heatmap/index.js +1 -1
  108. package/dist/components/index.d.ts +4 -0
  109. package/dist/components/invoice-upload-list/index.js +1 -1
  110. package/dist/components/muscle-scheme/index.js +1 -1
  111. package/dist/components/notes-panel/index.js +1 -1
  112. package/dist/components/optical-prescription/index.js +1 -1
  113. package/dist/components/patient-details/index.js +1 -1
  114. package/dist/components/patient-summary-card/index.js +1 -1
  115. package/dist/components/patient-table/index.js +1 -1
  116. package/dist/components/pregnancy-dating/index.js +1 -1
  117. package/dist/components/rich-text-editor/index.js +1 -1
  118. package/dist/components/select/index.js +1 -1
  119. package/dist/components/select/select.d.ts +8 -0
  120. package/dist/components/session-countdown/index.js +1 -1
  121. package/dist/components/skeleton-scheme/index.js +1 -1
  122. package/dist/components/tabs/index.js +1 -1
  123. package/dist/components/task-editor/index.js +1 -1
  124. package/dist/components/tasks-panel/index.js +1 -1
  125. package/dist/components/unit-converter/index.js +1 -1
  126. package/dist/components/voice-control-panel/index.js +1 -1
  127. package/dist/components/workflow-status/index.js +1 -1
  128. package/dist/core.css +1 -1
  129. package/dist/host-compat.css +13 -4
  130. package/dist/i18n/locales/ar.d.ts +162 -0
  131. package/dist/i18n/locales/ar.js +163 -0
  132. package/dist/i18n/locales/de.d.ts +162 -0
  133. package/dist/i18n/locales/de.js +163 -0
  134. package/dist/i18n/locales/el.d.ts +162 -0
  135. package/dist/i18n/locales/el.js +163 -0
  136. package/dist/i18n/locales/en.d.ts +162 -0
  137. package/dist/i18n/locales/en.js +163 -0
  138. package/dist/i18n/locales/es.d.ts +162 -0
  139. package/dist/i18n/locales/es.js +163 -0
  140. package/dist/i18n/locales/fr.d.ts +162 -0
  141. package/dist/i18n/locales/fr.js +163 -0
  142. package/dist/i18n/locales/hi.d.ts +162 -0
  143. package/dist/i18n/locales/hi.js +163 -0
  144. package/dist/i18n/locales/it.d.ts +162 -0
  145. package/dist/i18n/locales/it.js +163 -0
  146. package/dist/i18n/locales/ja.d.ts +162 -0
  147. package/dist/i18n/locales/ja.js +163 -0
  148. package/dist/i18n/locales/nl.d.ts +162 -0
  149. package/dist/i18n/locales/nl.js +163 -0
  150. package/dist/i18n/locales/pl.d.ts +162 -0
  151. package/dist/i18n/locales/pl.js +163 -0
  152. package/dist/i18n/locales/pt.d.ts +162 -0
  153. package/dist/i18n/locales/pt.js +163 -0
  154. package/dist/i18n/locales/ro.d.ts +162 -0
  155. package/dist/i18n/locales/ro.js +163 -0
  156. package/dist/i18n/locales/ru.d.ts +162 -0
  157. package/dist/i18n/locales/ru.js +163 -0
  158. package/dist/i18n/locales/sq.d.ts +162 -0
  159. package/dist/i18n/locales/sq.js +163 -0
  160. package/dist/i18n/locales/sv.d.ts +162 -0
  161. package/dist/i18n/locales/sv.js +163 -0
  162. package/dist/i18n/locales/tr.d.ts +162 -0
  163. package/dist/i18n/locales/tr.js +163 -0
  164. package/dist/i18n/locales/zh.d.ts +162 -0
  165. package/dist/i18n/locales/zh.js +163 -0
  166. package/dist/index.js +905 -893
  167. package/dist/locales/ar.json +162 -0
  168. package/dist/locales/de.json +162 -0
  169. package/dist/locales/el.json +162 -0
  170. package/dist/locales/en.json +162 -0
  171. package/dist/locales/es.json +162 -0
  172. package/dist/locales/fr.json +162 -0
  173. package/dist/locales/hi.json +162 -0
  174. package/dist/locales/it.json +162 -0
  175. package/dist/locales/ja.json +162 -0
  176. package/dist/locales/nl.json +162 -0
  177. package/dist/locales/pl.json +162 -0
  178. package/dist/locales/pt.json +162 -0
  179. package/dist/locales/ro.json +162 -0
  180. package/dist/locales/ru.json +162 -0
  181. package/dist/locales/sq.json +162 -0
  182. package/dist/locales/sv.json +162 -0
  183. package/dist/locales/tr.json +162 -0
  184. package/dist/locales/zh.json +162 -0
  185. package/dist/patterns/alia-assistant/index.js +1 -1
  186. package/dist/patterns/anamnesis/index.js +1 -1
  187. package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
  188. package/dist/patterns/calendar/index.js +1 -1
  189. package/dist/patterns/patient-account-settings/index.js +1 -1
  190. package/dist/patterns/patient-check-in/index.js +1 -1
  191. package/dist/patterns/patient-portal/index.js +2 -2
  192. package/dist/patterns/patient-sign-in/index.js +2 -2
  193. package/dist/patterns/registration-form/index.js +1 -1
  194. package/dist/patterns/signature-request/index.js +1 -1
  195. package/dist/patterns/signing/index.d.ts +1 -0
  196. package/dist/patterns/signing/index.js +1 -1
  197. package/dist/patterns/signing/multi-field-signer.d.ts +22 -1
  198. package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
  199. package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
  200. package/dist/patterns/signing/signing-document-screen.d.ts +18 -1
  201. package/dist/tokens.css +1 -1
  202. package/package.json +17 -1
  203. package/dist/_chunks/entity-summary-KHM0PnSI.js +0 -265
  204. package/dist/_chunks/handled-rejection-6gqCf5vt.js +0 -13
  205. package/dist/_chunks/signing-end-screen-an9P8DOT.js +0 -1041
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "1.134.0",
3
+ "version": "1.136.0",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
6
6
  "license": "BUSL-1.1",
@@ -833,6 +833,22 @@
833
833
  "types": "./dist/components/tasks-panel/index.d.ts",
834
834
  "import": "./dist/components/tasks-panel/index.js"
835
835
  },
836
+ "./communications-panel": {
837
+ "types": "./dist/components/communications-panel/index.d.ts",
838
+ "import": "./dist/components/communications-panel/index.js"
839
+ },
840
+ "./call-status-chip": {
841
+ "types": "./dist/components/call-status-chip/index.d.ts",
842
+ "import": "./dist/components/call-status-chip/index.js"
843
+ },
844
+ "./calls-panel": {
845
+ "types": "./dist/components/calls-panel/index.d.ts",
846
+ "import": "./dist/components/calls-panel/index.js"
847
+ },
848
+ "./ai-summary-panel": {
849
+ "types": "./dist/components/ai-summary-panel/index.d.ts",
850
+ "import": "./dist/components/ai-summary-panel/index.js"
851
+ },
836
852
  "./task-editor": {
837
853
  "types": "./dist/components/task-editor/index.d.ts",
838
854
  "import": "./dist/components/task-editor/index.js"
@@ -1,265 +0,0 @@
1
- import { jsxs as a, jsx as e, Fragment as M } from "react/jsx-runtime";
2
- import { forwardRef as P, useId as w, useRef as f, useImperativeHandle as D, useMemo as H } from "react";
3
- import { useTranslation as _ } from "react-i18next";
4
- import { A as I } from "./alert-C4WKViaS.js";
5
- import { A as $ } from "./avatar-Dp5apm1d.js";
6
- import { B as q } from "./button-DohK_Ak_.js";
7
- import { I as O } from "./icon-button-S8_weU3g.js";
8
- import { C } from "./card-n6W6LW-N.js";
9
- import { L as F } from "./link-CeV7FoI6.js";
10
- import { P as G } from "./panel-header-CbtlTe85.js";
11
- import { T as W } from "./timestamp-DPLDWdxA.js";
12
- import { u as X } from "./registry-DvAUVLHh.js";
13
- import { C as J } from "./clock-Drd4Wtis.js";
14
- import { R as Q } from "./refresh-cw-DnI0cLFC.js";
15
- import { X as U } from "./x-B5YnXwCz.js";
16
- import { C as Y } from "./contact-round-DiSvB3LP.js";
17
- const Z = {
18
- id: "entity-summary",
19
- // 'close' backs close; regenerate is a host-driven refresh with no
20
- // dedicated capability in the closed vocabulary.
21
- capabilities: ["close"],
22
- state: {
23
- sections: {
24
- type: 'Array<{ id: string; heading: string; tone: "default" | "attention"; itemCount: number }>',
25
- descriptionKey: "ui.agent.entitySummary.state.sections",
26
- description: "Structural section list — ids, fixed category headings, tone and item counts. Never the entity name or the bullet items (both PHI).",
27
- read: (t) => t.getState().sections
28
- },
29
- generatedAtIso: {
30
- type: "string | undefined",
31
- descriptionKey: "ui.agent.entitySummary.state.generatedAtIso",
32
- description: "ISO-8601 instant the brief was generated, when known.",
33
- read: (t) => t.getState().generatedAtIso
34
- }
35
- },
36
- actions: {
37
- regenerate: {
38
- // Re-requests a fresh brief from the model — reaches an external system.
39
- safety: "write",
40
- openWorld: !0,
41
- descriptionKey: "ui.agent.entitySummary.actions.regenerate",
42
- description: "Request the host to regenerate the AI brief. No-op when the regenerate affordance is not available.",
43
- invoke: (t) => {
44
- t.canRegenerate() && t.regenerate();
45
- }
46
- },
47
- close: {
48
- // Ephemeral panel-visibility change — read.
49
- safety: "read",
50
- idempotent: !0,
51
- descriptionKey: "ui.agent.entitySummary.actions.close",
52
- description: "Dismiss the summary panel. No-op when the close affordance is not available (e.g. docked in the rail).",
53
- invoke: (t) => {
54
- t.canClose() && t.close();
55
- }
56
- }
57
- },
58
- domHooks: {
59
- root: {
60
- attr: "data-component",
61
- value: "entity-summary",
62
- description: "Marks the EntitySummary panel region."
63
- },
64
- instanceId: {
65
- attr: "data-component-id",
66
- sourceProp: "id",
67
- description: "Sourced from the id prop. Required to address a specific summary panel from the agent."
68
- }
69
- }
70
- }, ee = "ds:flex ds:size-7 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-md)] ds:[&_svg]:size-4 ds:bg-primary/10 ds:text-[color:var(--primary)]", k = "ds:m-0 ds:flex ds:list-disc ds:flex-col ds:gap-[var(--spacing-2xs)] ds:ps-[var(--spacing-md)] type-body-sm", ve = P(
71
- function({
72
- id: n,
73
- title: i,
74
- entityName: s,
75
- entityHref: y,
76
- entityAvatarSrc: E,
77
- generatedAtIso: d,
78
- stats: o,
79
- sections: g,
80
- onRegenerate: l,
81
- regenerateLabel: z,
82
- onClose: c,
83
- disclaimer: R,
84
- locale: j,
85
- className: B,
86
- "aria-label": h,
87
- ...T
88
- }, L) {
89
- const { t: m } = _("ui"), v = w(), V = i ?? m("entitySummary.title", { defaultValue: "AI summary" }), x = f(g);
90
- x.current = g;
91
- const b = f(d);
92
- b.current = d;
93
- const u = f(l);
94
- u.current = l;
95
- const p = f(c);
96
- p.current = c;
97
- const S = f(null);
98
- D(L, () => S.current, []);
99
- const K = H(
100
- () => ({
101
- // Structural only — section headings are fixed category labels, never
102
- // the entity name or the bullet items (both PHI).
103
- getState: () => ({
104
- generatedAtIso: b.current,
105
- sections: x.current.map((r) => ({
106
- id: r.id,
107
- heading: r.heading,
108
- tone: r.tone ?? "default",
109
- itemCount: r.items.length
110
- }))
111
- }),
112
- canRegenerate: () => !!u.current,
113
- regenerate: () => {
114
- var r;
115
- return (r = u.current) == null ? void 0 : r.call(u);
116
- },
117
- canClose: () => !!p.current,
118
- close: () => {
119
- var r;
120
- return (r = p.current) == null ? void 0 : r.call(p);
121
- }
122
- }),
123
- []
124
- );
125
- X(Z, K, n);
126
- const N = d ? /* @__PURE__ */ a("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)] type-meta ds:text-[color:var(--muted-foreground)]", children: [
127
- /* @__PURE__ */ e(J, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
128
- /* @__PURE__ */ e("span", { children: m("entitySummary.generatedAt", { defaultValue: "Generated" }) }),
129
- /* @__PURE__ */ e(W, { value: d, format: "absolute", locale: j })
130
- ] }) : null;
131
- return /* @__PURE__ */ a(
132
- "section",
133
- {
134
- ref: S,
135
- "data-component": "entity-summary",
136
- "data-component-id": n,
137
- "aria-labelledby": h ? void 0 : v,
138
- "aria-label": h,
139
- className: ["ds:flex ds:flex-col", B].filter(Boolean).join(" "),
140
- ...T,
141
- children: [
142
- /* @__PURE__ */ e(
143
- G,
144
- {
145
- title: V,
146
- icon: /* @__PURE__ */ e(Y, { "aria-hidden": "true" }),
147
- headingId: h ? void 0 : v,
148
- sticky: !0,
149
- divider: !0,
150
- actions: l || c ? /* @__PURE__ */ a(M, { children: [
151
- l ? /* @__PURE__ */ e(
152
- q,
153
- {
154
- type: "button",
155
- size: "sm",
156
- intent: "ghost",
157
- startIcon: /* @__PURE__ */ e(Q, { "aria-hidden": "true" }),
158
- onClick: l,
159
- children: z ?? m("entitySummary.regenerate", {
160
- defaultValue: "Regenerate"
161
- })
162
- }
163
- ) : null,
164
- c ? /* @__PURE__ */ e(
165
- O,
166
- {
167
- icon: /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
168
- size: "sm",
169
- intent: "ghost",
170
- "aria-label": m("common.close", { defaultValue: "Close" }),
171
- onClick: c
172
- }
173
- ) : null
174
- ] }) : void 0
175
- }
176
- ),
177
- /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
178
- s || d || o && o.length > 0 ? /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
179
- s ? /* @__PURE__ */ a("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
180
- /* @__PURE__ */ e(
181
- $,
182
- {
183
- name: s,
184
- src: E,
185
- size: "sm",
186
- className: "ds:shrink-0"
187
- }
188
- ),
189
- /* @__PURE__ */ a("div", { className: "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
190
- y ? /* @__PURE__ */ e(
191
- F,
192
- {
193
- href: y,
194
- className: "type-body-sm ds:font-semibold",
195
- children: s
196
- }
197
- ) : /* @__PURE__ */ e("span", { className: "type-body-sm ds:font-semibold ds:text-[color:var(--foreground)]", children: s }),
198
- N
199
- ] })
200
- ] }) : N,
201
- o && o.length > 0 ? /* @__PURE__ */ e(C, { variant: "elevated", children: /* @__PURE__ */ e(
202
- "ul",
203
- {
204
- role: "list",
205
- className: "ds:m-0 ds:flex ds:list-none ds:items-stretch",
206
- children: o.map((r, A) => /* @__PURE__ */ a(
207
- "li",
208
- {
209
- className: [
210
- "ds:flex ds:flex-1 ds:flex-col ds:items-center ds:gap-[var(--spacing-2xs)] ds:p-[var(--spacing-sm)] ds:text-center",
211
- A > 0 ? "ds:border-s ds:border-[color:var(--card-border)]" : ""
212
- ].filter(Boolean).join(" "),
213
- children: [
214
- /* @__PURE__ */ e("span", { className: "type-metric ds:[--type-metric-size:var(--font-size-lg)] ds:text-[color:var(--foreground)]", children: r.value }),
215
- /* @__PURE__ */ e("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: r.label })
216
- ]
217
- },
218
- `${r.label}-${A}`
219
- ))
220
- }
221
- ) }) : null
222
- ] }) : null,
223
- g.map((r) => /* @__PURE__ */ e(te, { section: r }, r.id)),
224
- /* @__PURE__ */ e("p", { className: "ds:m-0 type-meta ds:text-[color:var(--muted-foreground)]", children: R ?? m("entitySummary.disclaimer", {
225
- defaultValue: "Does not replace clinical judgement · verify accuracy before clinical use · BETA"
226
- }) })
227
- ] })
228
- ]
229
- }
230
- );
231
- }
232
- );
233
- function te({ section: t }) {
234
- const n = w();
235
- return t.tone === "attention" ? /* @__PURE__ */ a(
236
- I,
237
- {
238
- variant: "warning",
239
- live: "off",
240
- icon: t.icon,
241
- className: "ds:shadow-[var(--shadow-card)]",
242
- children: [
243
- /* @__PURE__ */ e(I.Title, { as: "h3", children: t.heading }),
244
- /* @__PURE__ */ e("ul", { className: k, children: t.items.map((i, s) => /* @__PURE__ */ e("li", { children: i }, s)) })
245
- ]
246
- }
247
- ) : /* @__PURE__ */ e(C, { variant: "elevated", "aria-labelledby": n, children: /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
248
- /* @__PURE__ */ a("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
249
- t.icon ? /* @__PURE__ */ e("span", { "aria-hidden": "true", className: ee, children: t.icon }) : null,
250
- /* @__PURE__ */ e(
251
- "h3",
252
- {
253
- id: n,
254
- className: "ds:m-0 type-eyebrow ds:text-[color:var(--foreground)]",
255
- children: t.heading
256
- }
257
- )
258
- ] }),
259
- /* @__PURE__ */ e("ul", { className: `${k} ds:text-[color:var(--foreground)]`, children: t.items.map((i, s) => /* @__PURE__ */ e("li", { children: i }, s)) })
260
- ] }) });
261
- }
262
- export {
263
- ve as E
264
- };
265
- //# sourceMappingURL=entity-summary-KHM0PnSI.js.map
@@ -1,13 +0,0 @@
1
- function s(e, t) {
2
- return typeof e == "object" && e !== null && "message" in e && typeof e.message == "string" && e.message.trim() ? e.message : t;
3
- }
4
- function n(e) {
5
- const t = Promise.reject(e);
6
- return t.catch(() => {
7
- }), t;
8
- }
9
- export {
10
- s as g,
11
- n as h
12
- };
13
- //# sourceMappingURL=handled-rejection-6gqCf5vt.js.map