@alfadocs/ui-kit 1.30.0 → 1.32.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 (233) hide show
  1. package/dist/_chunks/{address-fields-CZ0pEdEI.js → address-fields-jFfjxOQR.js} +3 -3
  2. package/dist/_chunks/{agenda-card-pdN49pMu.js → agenda-card-DVz3jwTf.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-BweO8pDo.js → agenda-tray-1oDWCJdB.js} +2 -2
  4. package/dist/_chunks/{ai-prompt-input-CrHr-5H8.js → ai-prompt-input-Dt7tpCBh.js} +2 -2
  5. package/dist/_chunks/{alia-sidebar-BWcWZivN.js → alia-sidebar-D18kp3p9.js} +3 -3
  6. package/dist/_chunks/{anamnesis-summary-rows-DMO3MWSt.js → anamnesis-summary-rows-BYgyp_i2.js} +6 -6
  7. package/dist/_chunks/{appointment-card-Dzr3GeVz.js → appointment-card-D-oj_ugh.js} +9 -7
  8. package/dist/_chunks/{appointment-timeline-DhHwmHo1.js → appointment-timeline-CymGHyIP.js} +2 -2
  9. package/dist/_chunks/{appointment-tray-4FUu_5NX.js → appointment-tray-DCk8gHod.js} +2 -2
  10. package/dist/_chunks/{audio-recorder-DXG6LTtO.js → audio-recorder-11wClczr.js} +2 -2
  11. package/dist/_chunks/{avatar-BNQNhoyL.js → avatar-CkDeQOSI.js} +37 -37
  12. package/dist/_chunks/{balance-badge-cell-CX6b0ML4.js → balance-badge-cell-DhBtFRoW.js} +4 -4
  13. package/dist/_chunks/{bishop-score-CJUVBfAu.js → bishop-score-CAl7C5hm.js} +2 -2
  14. package/dist/_chunks/{bmi-calculator-CcH6upht.js → bmi-calculator-Dwkih9a4.js} +3 -3
  15. package/dist/_chunks/{booking-AabCk7CI.js → booking-l6UGNiE1.js} +3 -3
  16. package/dist/_chunks/{calculator-dialog-12d3Sxaz.js → calculator-dialog-C0ixc3SU.js} +2 -2
  17. package/dist/_chunks/{calendar-CI9MINcR.js → calendar-Dgvl5L4T.js} +494 -438
  18. package/dist/_chunks/{calendar-event-card-66CEEWU6.js → calendar-event-card-DSh-69HT.js} +130 -122
  19. package/dist/_chunks/calendar-workspace-BX-zDyVR.js +9392 -0
  20. package/dist/_chunks/{care-plan-card-CQVboTn1.js → care-plan-card-CZW476Kg.js} +2 -2
  21. package/dist/_chunks/{care-plan-entry-card-jxHkzez5.js → care-plan-entry-card-BMUYagEw.js} +2 -2
  22. package/dist/_chunks/{chat-message-DBQu10rs.js → chat-message-C-8UU2av.js} +2 -2
  23. package/dist/_chunks/{clinical-note-card-BBgFd2nB.js → clinical-note-card-D2WTV2CO.js} +185 -188
  24. package/dist/_chunks/{color-picker-CU303VjY.js → color-picker-Bl5f0iK1.js} +28 -25
  25. package/dist/_chunks/{combobox-D7_NLE2Z.js → combobox-DnSdYssy.js} +216 -215
  26. package/dist/_chunks/{country-select-DzbPFktV.js → country-select-CfDNFG5c.js} +2 -2
  27. package/dist/_chunks/{data-table-DB5BiVQ0.js → data-table-DC96JJIq.js} +2 -2
  28. package/dist/_chunks/{dependent-selector-cJlJFAKD.js → dependent-selector-yTKKsuc9.js} +2 -2
  29. package/dist/_chunks/{dialog-UbKJCi1X.js → dialog-BJiLqhx6.js} +54 -46
  30. package/dist/_chunks/{document-preview-CDb-n_W7.js → document-preview-BrhMHNh8.js} +2 -2
  31. package/dist/_chunks/{due-date-calculator-BtgWeFqp.js → due-date-calculator-CxgK8vzt.js} +3 -3
  32. package/dist/_chunks/{entity-summary-B_vO5Ur4.js → entity-summary-5o768XLU.js} +2 -2
  33. package/dist/_chunks/{face-scheme-DA2vjqaM.js → face-scheme-l-CQyLs-.js} +2 -2
  34. package/dist/_chunks/{file-manager-Cd8V9IcZ.js → file-manager-CI2Qn8qW.js} +3 -3
  35. package/dist/_chunks/{gestational-age-calculator-KdMg9z9H.js → gestational-age-calculator-CZHVrERT.js} +4 -4
  36. package/dist/_chunks/{link-cell-renderer-tWEOv3Sc.js → link-cell-renderer-BEpMNtAa.js} +3 -3
  37. package/dist/_chunks/{marketplace-app-shell-C4AjQmvz.js → marketplace-app-shell-CK_ND8Tr.js} +2 -2
  38. package/dist/_chunks/{message-card-D8GB4FdF.js → message-card-BUMv16un.js} +2 -2
  39. package/dist/_chunks/{message-tray-CGIRQjx5.js → message-tray-0zsv27xX.js} +2 -2
  40. package/dist/_chunks/{muscle-scheme-BSJsI4-I.js → muscle-scheme-UVz_x4iE.js} +2 -2
  41. package/dist/_chunks/notes-panel-C4G-mhZ9.js +380 -0
  42. package/dist/_chunks/{operator-hero-BnFv-Uef.js → operator-hero-D7-iiFQ9.js} +2 -2
  43. package/dist/_chunks/{optical-prescription-BvwuqTpl.js → optical-prescription-DUJOhKz_.js} +2 -2
  44. package/dist/_chunks/{patient-details-DYAmq76G.js → patient-details-BGiawUHd.js} +5 -5
  45. package/dist/_chunks/{patient-summary-card-C9WBwct-.js → patient-summary-card--CT_gbaQ.js} +2 -2
  46. package/dist/_chunks/{periodontal-diagnosis-HrFsVi-C.js → periodontal-diagnosis-lEwA8wqX.js} +3 -3
  47. package/dist/_chunks/{practice-profile-hero-YQ7h2K4o.js → practice-profile-hero-DQyDvpJL.js} +2 -2
  48. package/dist/_chunks/{practice-results-CxIsU2YO.js → practice-results-DjEzPgAK.js} +2 -2
  49. package/dist/_chunks/{pregnancy-dating-m-c05DOI.js → pregnancy-dating-n5j5dAKy.js} +4 -4
  50. package/dist/_chunks/{pregnancy-weight-gain-CJwbs9W-.js → pregnancy-weight-gain-D5A8vPjj.js} +3 -3
  51. package/dist/_chunks/{province-select-BBc7s7vR.js → province-select-BaUnkg4S.js} +2 -2
  52. package/dist/_chunks/qr-code-DOJs4suh.js +750 -0
  53. package/dist/_chunks/radio-DNRe6H_8.js +193 -0
  54. package/dist/_chunks/radio-group-DyVBgnA3.js +297 -0
  55. package/dist/_chunks/{radiograph-panel.agent-ByM9M3qm.js → radiograph-panel.agent-o4jwEJPC.js} +2 -2
  56. package/dist/_chunks/{rich-text-editor-lSCiE0Zz.js → rich-text-editor-CQ7yZdG3.js} +3 -3
  57. package/dist/_chunks/select-CLSUnKjF.js +520 -0
  58. package/dist/_chunks/signature-request-vihDT8On.js +2232 -0
  59. package/dist/_chunks/{tabs-DqKtTIjZ.js → tabs-BnRaLT0y.js} +2 -2
  60. package/dist/_chunks/{tasks-panel-DPCNaRko.js → tasks-panel-DQuaVvl5.js} +2 -2
  61. package/dist/_chunks/{timeline-r-8IUoBS.js → timeline-Bs9Erxlo.js} +38 -36
  62. package/dist/_chunks/{tooth-scheme-C9jssOmy.js → tooth-scheme-Qe7LO5Di.js} +2 -2
  63. package/dist/_chunks/{unit-converter-C6jMjqL9.js → unit-converter-BTgU50gk.js} +2 -2
  64. package/dist/_chunks/{widget-picker-em4xGgv0.js → widget-picker-DvUkBemi.js} +2 -2
  65. package/dist/agent-catalog.json +366 -29
  66. package/dist/agent-i18n/en.json +27 -15
  67. package/dist/components/_shared/get-error-message.d.ts +3 -0
  68. package/dist/components/address-fields/index.js +1 -1
  69. package/dist/components/agenda-card/index.js +1 -1
  70. package/dist/components/agenda-tray/index.js +1 -1
  71. package/dist/components/ai-prompt-input/index.js +1 -1
  72. package/dist/components/appointment-card/index.js +2 -2
  73. package/dist/components/appointment-timeline/index.js +1 -1
  74. package/dist/components/audio-recorder/index.js +1 -1
  75. package/dist/components/avatar/avatar.d.ts +2 -0
  76. package/dist/components/avatar/index.js +1 -1
  77. package/dist/components/bishop-score/index.js +1 -1
  78. package/dist/components/bmi-calculator/index.js +1 -1
  79. package/dist/components/booking/index.js +1 -1
  80. package/dist/components/calculator-dialog/index.js +1 -1
  81. package/dist/components/calendar/calendar.d.ts +26 -2
  82. package/dist/components/calendar/index.js +1 -1
  83. package/dist/components/calendar-event-card/calendar-event-card.d.ts +9 -0
  84. package/dist/components/calendar-event-card/index.js +1 -1
  85. package/dist/components/care-plan-card/index.js +1 -1
  86. package/dist/components/care-plan-entry-card/index.js +1 -1
  87. package/dist/components/chat-message/index.js +1 -1
  88. package/dist/components/clinical-note-card/clinical-note-card.d.ts +16 -1
  89. package/dist/components/clinical-note-card/index.js +1 -1
  90. package/dist/components/color-picker/index.js +1 -1
  91. package/dist/components/combobox/combobox.d.ts +5 -0
  92. package/dist/components/combobox/index.js +1 -1
  93. package/dist/components/country-select/index.js +1 -1
  94. package/dist/components/data-table/index.js +2 -2
  95. package/dist/components/dependent-selector/index.js +1 -1
  96. package/dist/components/dialog/dialog.d.ts +9 -0
  97. package/dist/components/dialog/index.js +1 -1
  98. package/dist/components/document-preview/index.js +1 -1
  99. package/dist/components/due-date-calculator/index.js +1 -1
  100. package/dist/components/entity-summary/index.js +1 -1
  101. package/dist/components/face-scheme/index.js +1 -1
  102. package/dist/components/file-manager/index.js +1 -1
  103. package/dist/components/gestational-age-calculator/index.js +1 -1
  104. package/dist/components/message-card/index.js +1 -1
  105. package/dist/components/message-tray/index.js +1 -1
  106. package/dist/components/muscle-scheme/index.js +1 -1
  107. package/dist/components/notes-panel/index.d.ts +1 -1
  108. package/dist/components/notes-panel/index.js +1 -1
  109. package/dist/components/notes-panel/notes-panel.d.ts +24 -5
  110. package/dist/components/operator-hero/index.js +1 -1
  111. package/dist/components/optical-prescription/index.js +1 -1
  112. package/dist/components/patient-details/index.js +1 -1
  113. package/dist/components/patient-summary-card/index.js +1 -1
  114. package/dist/components/patient-table/index.js +1 -1
  115. package/dist/components/periodontal-diagnosis/index.js +1 -1
  116. package/dist/components/practice-profile-hero/index.js +1 -1
  117. package/dist/components/practice-results/index.js +1 -1
  118. package/dist/components/pregnancy-dating/index.js +1 -1
  119. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  120. package/dist/components/province-select/index.js +1 -1
  121. package/dist/components/qr-code/index.js +1 -1
  122. package/dist/components/qr-code/qr-encode.d.ts +14 -16
  123. package/dist/components/radio/index.js +1 -1
  124. package/dist/components/radio-group/index.js +2 -2
  125. package/dist/components/radio-group/radio-group-context.d.ts +4 -1
  126. package/dist/components/radio-group/radio-group.d.ts +13 -1
  127. package/dist/components/radio-group/radio.d.ts +24 -1
  128. package/dist/components/radiograph-panel/index.js +1 -1
  129. package/dist/components/rich-text-editor/index.js +1 -1
  130. package/dist/components/select/index.js +1 -1
  131. package/dist/components/select/select.d.ts +33 -0
  132. package/dist/components/skeleton-scheme/index.js +1 -1
  133. package/dist/components/tabs/index.js +1 -1
  134. package/dist/components/tasks-panel/index.js +1 -1
  135. package/dist/components/timeline/index.js +1 -1
  136. package/dist/components/timeline/timeline.d.ts +2 -0
  137. package/dist/components/tooth-scheme/index.js +1 -1
  138. package/dist/components/unit-converter/index.js +1 -1
  139. package/dist/components/widget-picker/index.js +1 -1
  140. package/dist/host-compat.css +7 -1
  141. package/dist/i18n/locales/ar.d.ts +118 -0
  142. package/dist/i18n/locales/ar.js +123 -5
  143. package/dist/i18n/locales/de.d.ts +128 -10
  144. package/dist/i18n/locales/de.js +135 -15
  145. package/dist/i18n/locales/el.d.ts +118 -0
  146. package/dist/i18n/locales/el.js +123 -5
  147. package/dist/i18n/locales/en.d.ts +118 -0
  148. package/dist/i18n/locales/en.js +123 -5
  149. package/dist/i18n/locales/es.d.ts +118 -0
  150. package/dist/i18n/locales/es.js +123 -5
  151. package/dist/i18n/locales/fr.d.ts +118 -0
  152. package/dist/i18n/locales/fr.js +122 -4
  153. package/dist/i18n/locales/hi.d.ts +118 -0
  154. package/dist/i18n/locales/hi.js +123 -5
  155. package/dist/i18n/locales/it.d.ts +128 -10
  156. package/dist/i18n/locales/it.js +133 -15
  157. package/dist/i18n/locales/ja.d.ts +118 -0
  158. package/dist/i18n/locales/ja.js +123 -5
  159. package/dist/i18n/locales/nl.d.ts +118 -0
  160. package/dist/i18n/locales/nl.js +123 -5
  161. package/dist/i18n/locales/pl.d.ts +118 -0
  162. package/dist/i18n/locales/pl.js +123 -5
  163. package/dist/i18n/locales/pt.d.ts +118 -0
  164. package/dist/i18n/locales/pt.js +123 -5
  165. package/dist/i18n/locales/ro.d.ts +118 -0
  166. package/dist/i18n/locales/ro.js +122 -4
  167. package/dist/i18n/locales/ru.d.ts +118 -0
  168. package/dist/i18n/locales/ru.js +123 -5
  169. package/dist/i18n/locales/sq.d.ts +118 -0
  170. package/dist/i18n/locales/sq.js +123 -5
  171. package/dist/i18n/locales/sv.d.ts +118 -0
  172. package/dist/i18n/locales/sv.js +123 -5
  173. package/dist/i18n/locales/tr.d.ts +118 -0
  174. package/dist/i18n/locales/tr.js +123 -5
  175. package/dist/i18n/locales/zh.d.ts +118 -0
  176. package/dist/i18n/locales/zh.js +123 -5
  177. package/dist/index.js +131 -130
  178. package/dist/locales/ar.json +123 -5
  179. package/dist/locales/de.json +133 -15
  180. package/dist/locales/el.json +123 -5
  181. package/dist/locales/en.json +123 -5
  182. package/dist/locales/es.json +123 -5
  183. package/dist/locales/fr.json +122 -4
  184. package/dist/locales/hi.json +123 -5
  185. package/dist/locales/it.json +133 -15
  186. package/dist/locales/ja.json +123 -5
  187. package/dist/locales/nl.json +123 -5
  188. package/dist/locales/pl.json +123 -5
  189. package/dist/locales/pt.json +123 -5
  190. package/dist/locales/ro.json +122 -4
  191. package/dist/locales/ru.json +123 -5
  192. package/dist/locales/sq.json +123 -5
  193. package/dist/locales/sv.json +123 -5
  194. package/dist/locales/tr.json +123 -5
  195. package/dist/locales/zh.json +123 -5
  196. package/dist/patterns/alia-assistant/index.js +1 -1
  197. package/dist/patterns/anamnesis/index.js +1 -1
  198. package/dist/patterns/calendar/calendar-appointment-details.d.ts +145 -0
  199. package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +32 -0
  200. package/dist/patterns/calendar/calendar-editor-hydration.d.ts +59 -0
  201. package/dist/patterns/calendar/calendar-notes-tool.d.ts +14 -0
  202. package/dist/patterns/calendar/calendar-patient-picker.d.ts +11 -0
  203. package/dist/patterns/calendar/calendar-series-scope-chooser.d.ts +18 -0
  204. package/dist/patterns/calendar/calendar-workspace.d.ts +26 -1
  205. package/dist/patterns/calendar/calendar-workspace.model.d.ts +8 -5
  206. package/dist/patterns/calendar/calendar.data.d.ts +66 -1
  207. package/dist/patterns/calendar/calendar.host.d.ts +2 -0
  208. package/dist/patterns/calendar/calendar.journey.d.ts +42 -7
  209. package/dist/patterns/calendar/calendar.model.d.ts +54 -5
  210. package/dist/patterns/calendar/calendar.sheets.d.ts +68 -15
  211. package/dist/patterns/calendar/calendar.surface.d.ts +12 -2
  212. package/dist/patterns/calendar/calendar.types.d.ts +29 -1
  213. package/dist/patterns/calendar/index.d.ts +9 -6
  214. package/dist/patterns/calendar/index.js +15 -14
  215. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  216. package/dist/patterns/signature-request/channel-meta.d.ts +27 -0
  217. package/dist/patterns/signature-request/index.d.ts +1 -1
  218. package/dist/patterns/signature-request/index.js +1 -1
  219. package/dist/patterns/signature-request/load-status.d.ts +13 -0
  220. package/dist/patterns/signature-request/person-grid.d.ts +32 -0
  221. package/dist/patterns/signature-request/required-documents.d.ts +127 -0
  222. package/dist/patterns/signature-request/signature-history.d.ts +57 -0
  223. package/dist/patterns/signature-request/signature-outcome.d.ts +29 -0
  224. package/dist/patterns/signature-request/signature-request.d.ts +390 -26
  225. package/dist/tokens.css +10 -2
  226. package/package.json +3 -1
  227. package/dist/_chunks/calendar-workspace-a84AHQwj.js +0 -7506
  228. package/dist/_chunks/notes-panel-CTNpsByN.js +0 -353
  229. package/dist/_chunks/qr-code-CPkEs5mG.js +0 -574
  230. package/dist/_chunks/radio-TWf9Q-mp.js +0 -108
  231. package/dist/_chunks/radio-group-rXDJADzW.js +0 -175
  232. package/dist/_chunks/select-Bi8zril7.js +0 -471
  233. package/dist/_chunks/signature-request-C-IsbkPf.js +0 -417
@@ -0,0 +1,380 @@
1
+ import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as be, useRef as o, useState as w, useId as Pe, useCallback as xe, useEffect as Ne, useImperativeHandle as Ce, useMemo as we } from "react";
3
+ import { c as Re } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as ke } from "react-i18next";
5
+ import { u as je } from "./registry-DvAUVLHh.js";
6
+ import { C as Ve } from "./clinical-note-card-D2WTV2CO.js";
7
+ import { R as Ae } from "./rich-text-editor-CQ7yZdG3.js";
8
+ import { T as Ie } from "./text-area-Bt3p7Pt0.js";
9
+ import { A as h } from "./alert-CiJT540z.js";
10
+ import { B as J } from "./button-nJaPh_HC.js";
11
+ import { C as He } from "./checkbox-BuZ1u__2.js";
12
+ import { S as Se } from "./spinner-hbwuKwMf.js";
13
+ import { P as qe } from "./panel-header-D313n_9-.js";
14
+ import { N as Ee } from "./notebook-pen-CO7HoM-W.js";
15
+ function Q(n, a) {
16
+ return typeof n == "object" && n !== null && "message" in n && typeof n.message == "string" && n.message.trim() ? n.message : a;
17
+ }
18
+ const Ke = {
19
+ id: "notes-panel",
20
+ // 'submit' backs add_note (compose + commit a note). pin / flag are toggles
21
+ // with no dedicated capability in the closed vocabulary.
22
+ capabilities: ["submit"],
23
+ state: {
24
+ notes: {
25
+ type: "Array<{ id?: string; pinned: boolean; flagged: boolean; clinical: boolean }>",
26
+ descriptionKey: "ui.agent.notesPanel.state.notes",
27
+ description: "Timeline note ids + pinned / flagged / clinical flags. Never the note body or author (both PHI).",
28
+ read: (n) => n.getNotes()
29
+ },
30
+ canAddClinical: {
31
+ type: "boolean",
32
+ descriptionKey: "ui.agent.notesPanel.state.canAddClinical",
33
+ description: "Whether the current user may write clinical notes (the practice_add_clinical_note permission gate).",
34
+ read: (n) => n.canAddClinical()
35
+ },
36
+ currentNoteId: {
37
+ type: "string | null",
38
+ descriptionKey: "ui.agent.notesPanel.state.currentNoteId",
39
+ description: "Id of the note the host has addressed — the one marked, scrolled to and focused. Null when none is. An id only, never note content.",
40
+ read: (n) => n.getCurrentNoteId()
41
+ }
42
+ },
43
+ actions: {
44
+ add_note: {
45
+ // Writes a clinical/admin note body — patient-identifiable content. PHI.
46
+ safety: "phi",
47
+ argsType: "{ content: string; clinical: boolean }",
48
+ argsSchema: {
49
+ type: "object",
50
+ properties: {
51
+ content: {
52
+ type: "string",
53
+ description: "Note body. Rich HTML for the rich composer, else plain text."
54
+ },
55
+ clinical: {
56
+ type: "boolean",
57
+ description: "Whether the note is clinical. Requires the clinical-note permission; the submission is dropped when the gate is closed."
58
+ }
59
+ },
60
+ required: ["content", "clinical"]
61
+ },
62
+ openWorld: !0,
63
+ descriptionKey: "ui.agent.notesPanel.actions.addNote",
64
+ description: "Compose and commit a new note. A clinical note requires the clinical-note permission (read canAddClinical first).",
65
+ examples: [
66
+ {
67
+ args: { content: "Patient reported improvement.", clinical: !0 },
68
+ note: "Add a clinical note."
69
+ }
70
+ ],
71
+ invoke: (n, a) => n.addNote(a)
72
+ },
73
+ toggle_pin: {
74
+ // Re-orders the timeline (pinned notes lead) — reversible view write.
75
+ safety: "write",
76
+ argsType: "{ id: string }",
77
+ argsSchema: {
78
+ type: "object",
79
+ properties: { id: { type: "string" } },
80
+ required: ["id"]
81
+ },
82
+ idempotent: !1,
83
+ descriptionKey: "ui.agent.notesPanel.actions.togglePin",
84
+ description: "Toggle the pinned state of the note with the given id. Refused for a deleted note or one whose actions.pin is false.",
85
+ invoke: (n, a) => {
86
+ n.togglePin(a.id);
87
+ }
88
+ },
89
+ toggle_flag: {
90
+ safety: "write",
91
+ argsType: "{ id: string }",
92
+ argsSchema: {
93
+ type: "object",
94
+ properties: { id: { type: "string" } },
95
+ required: ["id"]
96
+ },
97
+ idempotent: !1,
98
+ descriptionKey: "ui.agent.notesPanel.actions.toggleFlag",
99
+ description: "Toggle the flagged state of the note with the given id.",
100
+ invoke: (n, a) => {
101
+ n.toggleFlag(a.id);
102
+ }
103
+ }
104
+ },
105
+ domHooks: {
106
+ root: {
107
+ attr: "data-component",
108
+ value: "notes-panel",
109
+ description: "Marks the NotesPanel region."
110
+ },
111
+ instanceId: {
112
+ attr: "data-component-id",
113
+ sourceProp: "id",
114
+ description: "Sourced from the id prop. Required to address a specific notes panel from the agent."
115
+ }
116
+ }
117
+ }, Te = Re(
118
+ "ds:flex ds:flex-col ds:rounded-[var(--radius-md)] ds:border-s-2 ds:ps-[var(--spacing-sm)]",
119
+ {
120
+ variants: {
121
+ current: {
122
+ true: "ds:border-[color:var(--info)] ds:bg-[color:var(--info)]/10 ds:focus:outline-[length:var(--focus-ring-width)] ds:focus:outline-solid ds:focus:outline-[color:var(--ring)] ds:focus:outline-offset-[length:var(--focus-ring-offset)]",
123
+ false: "ds:border-transparent"
124
+ }
125
+ },
126
+ defaultVariants: { current: !1 }
127
+ }
128
+ );
129
+ function U(n) {
130
+ return n ? /<img\b/i.test(n) ? !0 : n.replace(/<[^>]*>/g, "").replace(/&nbsp;/gi, " ").trim().length > 0 : !1;
131
+ }
132
+ const Xe = be(
133
+ function({
134
+ id: a,
135
+ notes: R,
136
+ onAddNote: c,
137
+ status: k = "ready",
138
+ onRetry: T,
139
+ currentNoteId: u,
140
+ currentNoteKey: X,
141
+ composer: y = "rich",
142
+ editorToolbar: Z = "standard",
143
+ redactor: $,
144
+ imageUploadUrl: ee,
145
+ showClinicalToggle: _ = !0,
146
+ canAddClinicalNote: v = !0,
147
+ clinicalGatedReason: te,
148
+ defaultClinical: j = !1,
149
+ onRequestAiDraft: ne,
150
+ aiDraftFormat: re,
151
+ aiPrivacyNotice: ie,
152
+ onDictate: se,
153
+ onProofread: ae,
154
+ onAutoFormat: oe,
155
+ onTogglePin: b,
156
+ onToggleFlag: P,
157
+ noteActions: z,
158
+ title: le,
159
+ composerPlaceholder: de,
160
+ addNoteLabel: ce,
161
+ emptyState: ue,
162
+ className: pe,
163
+ "aria-label": V,
164
+ ...fe
165
+ }, me) {
166
+ const { t: i } = ke(), A = o(null), [p, I] = w(""), [H, M] = w(j), [f, B] = w(!1), [D, S] = w(null), ge = le ?? i("notesPanel.title", { defaultValue: "Notes" }), L = Pe(), W = de ?? i("notesPanel.placeholder", { defaultValue: "Add a note…" }), F = i("notesPanel.composerLabel", {
167
+ defaultValue: "New note"
168
+ }), he = y === "rich" ? U(p) : p.trim().length > 0, ye = xe(() => {
169
+ var C;
170
+ if (!c || f) return;
171
+ const e = y === "rich", t = e ? ((C = A.current) == null ? void 0 : C.getHTML()) ?? p : p.trim();
172
+ if (e ? !U(t) : !t) return;
173
+ const l = () => {
174
+ var m;
175
+ e && ((m = A.current) == null || m.clear()), I(""), M(j);
176
+ };
177
+ S(null);
178
+ let s;
179
+ try {
180
+ s = c({ content: t, clinical: H });
181
+ } catch (m) {
182
+ S(Q(m, i("notesPanel.addFailed")));
183
+ return;
184
+ }
185
+ if (!s || typeof s.then != "function") return l();
186
+ B(!0), Promise.resolve(s).then(
187
+ l,
188
+ (m) => S(Q(m, i("notesPanel.addFailed")))
189
+ ).finally(() => B(!1));
190
+ }, [y, p, H, j, c, f, i]), O = [...R].sort(
191
+ (e, t) => Number(t.pinned ?? !1) - Number(e.pinned ?? !1)
192
+ ), q = o(null);
193
+ Ne(() => {
194
+ var e, t;
195
+ u && ((e = q.current) == null || e.scrollIntoView({ block: "center" }), (t = q.current) == null || t.focus());
196
+ }, [u, X]);
197
+ const E = o(R);
198
+ E.current = R;
199
+ const g = o(c);
200
+ g.current = c;
201
+ const x = o(b);
202
+ x.current = b;
203
+ const N = o(P);
204
+ N.current = P;
205
+ const K = o(v);
206
+ K.current = v;
207
+ const G = o(u);
208
+ G.current = u;
209
+ const Y = o(null);
210
+ Ce(me, () => Y.current, []);
211
+ const ve = we(
212
+ () => ({
213
+ // Ids + flags only — never the note body or author (both PHI).
214
+ getNotes: () => E.current.map((e) => ({
215
+ id: e.id,
216
+ pinned: !!e.pinned,
217
+ flagged: !!e.flagged,
218
+ clinical: !!e.clinical
219
+ })),
220
+ canAddNote: () => !!g.current,
221
+ canAddClinical: () => K.current,
222
+ getCurrentNoteId: () => G.current ?? null,
223
+ addNote: (e) => {
224
+ var t;
225
+ if (!(e.clinical && !K.current))
226
+ return (t = g.current) == null ? void 0 : t.call(g, e);
227
+ },
228
+ togglePin: (e) => {
229
+ var l, s;
230
+ const t = E.current.find((C) => C.id === e);
231
+ t && (t.deleted || ((l = t.actions) == null ? void 0 : l.pin) === !1) || (s = x.current) == null || s.call(x, e);
232
+ },
233
+ toggleFlag: (e) => {
234
+ var t;
235
+ return (t = N.current) == null ? void 0 : t.call(N, e);
236
+ }
237
+ }),
238
+ []
239
+ );
240
+ return je(Ke, ve, a), /* @__PURE__ */ d(
241
+ "section",
242
+ {
243
+ ref: Y,
244
+ "data-component": "notes-panel",
245
+ "data-component-id": a,
246
+ "aria-labelledby": V ? void 0 : L,
247
+ "aria-label": V,
248
+ className: ["ds:flex ds:flex-col", pe].filter(Boolean).join(" "),
249
+ ...fe,
250
+ children: [
251
+ /* @__PURE__ */ r(
252
+ qe,
253
+ {
254
+ title: ge,
255
+ icon: /* @__PURE__ */ r(Ee, { "aria-hidden": "true" }),
256
+ headingId: V ? void 0 : L,
257
+ sticky: !0,
258
+ divider: !0
259
+ }
260
+ ),
261
+ /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
262
+ c ? /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
263
+ y === "rich" ? /* @__PURE__ */ r(
264
+ Ae,
265
+ {
266
+ ref: A,
267
+ ariaLabel: F,
268
+ placeholder: W,
269
+ toolbar: Z,
270
+ minHeight: "sm",
271
+ redactor: $,
272
+ imageUploadUrl: ee,
273
+ readOnly: f,
274
+ onChange: ({ html: e }) => I(e),
275
+ onRequestAiDraft: ne,
276
+ aiDraftFormat: re,
277
+ aiPrivacyNotice: ie,
278
+ onDictate: se,
279
+ onProofread: ae,
280
+ onAutoFormat: oe
281
+ }
282
+ ) : /* @__PURE__ */ r(
283
+ Ie,
284
+ {
285
+ value: p,
286
+ readOnly: f,
287
+ onChange: (e) => I(e.target.value),
288
+ placeholder: W,
289
+ autoResize: !0,
290
+ minRows: 2,
291
+ maxRows: 6,
292
+ "aria-label": F
293
+ }
294
+ ),
295
+ /* @__PURE__ */ d(
296
+ "div",
297
+ {
298
+ className: [
299
+ "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
300
+ _ ? "ds:justify-between" : "ds:justify-end"
301
+ ].join(" "),
302
+ children: [
303
+ _ ? /* @__PURE__ */ r(
304
+ He,
305
+ {
306
+ size: "sm",
307
+ label: i("notesPanel.clinicalToggle", {
308
+ defaultValue: "Clinical note"
309
+ }),
310
+ checked: H,
311
+ onCheckedChange: (e) => M(e === !0),
312
+ disabled: f || !v,
313
+ disabledReason: v ? void 0 : te ?? i("notesPanel.clinicalGated", {
314
+ defaultValue: "You do not have permission to write clinical notes."
315
+ })
316
+ }
317
+ ) : null,
318
+ /* @__PURE__ */ r(
319
+ J,
320
+ {
321
+ type: "button",
322
+ size: "sm",
323
+ onClick: ye,
324
+ disabled: !he,
325
+ loading: f,
326
+ children: ce ?? i("notesPanel.add", { defaultValue: "Add note" })
327
+ }
328
+ )
329
+ ]
330
+ }
331
+ ),
332
+ D ? /* @__PURE__ */ r(h, { variant: "error", children: /* @__PURE__ */ r(h.Description, { children: D }) }) : null
333
+ ] }) : null,
334
+ k === "loading" ? /* @__PURE__ */ d("p", { className: "ds:m-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-[color:var(--muted-foreground)]", children: [
335
+ /* @__PURE__ */ r(Se, { size: "sm", label: i("notesPanel.loading") }),
336
+ /* @__PURE__ */ r("span", { "aria-hidden": "true", children: i("notesPanel.loading") })
337
+ ] }) : k === "error" ? /* @__PURE__ */ d(h, { variant: "error", children: [
338
+ /* @__PURE__ */ r(h.Description, { children: i("notesPanel.loadError") }),
339
+ T ? /* @__PURE__ */ r(h.Action, { children: /* @__PURE__ */ r(J, { intent: "secondary", size: "sm", onClick: T, children: i("notesPanel.retry") }) }) : null
340
+ ] }) : null,
341
+ O.length > 0 ? /* @__PURE__ */ r("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0", children: O.map(({ actions: e, ...t }, l) => {
342
+ const s = u != null && t.id === u;
343
+ return /* @__PURE__ */ d(
344
+ "li",
345
+ {
346
+ ref: s ? q : void 0,
347
+ tabIndex: s ? -1 : void 0,
348
+ "aria-current": s ? "true" : void 0,
349
+ className: Te({ current: s }),
350
+ children: [
351
+ s ? /* @__PURE__ */ r("span", { className: "ds:sr-only", children: i("notesPanel.current", {
352
+ defaultValue: "Current note"
353
+ }) }) : null,
354
+ /* @__PURE__ */ r(
355
+ Ve,
356
+ {
357
+ surface: "elevated",
358
+ truncate: !s,
359
+ ...t,
360
+ onTogglePin: b && t.id && (e == null ? void 0 : e.pin) !== !1 && !t.deleted ? () => b(t.id) : void 0,
361
+ onToggleFlag: P && t.id ? () => P(t.id) : void 0
362
+ }
363
+ ),
364
+ z ? /* @__PURE__ */ r("div", { className: "ds:flex ds:justify-end ds:gap-[var(--spacing-2xs)] ds:pt-[var(--spacing-2xs)]", children: z({ ...t, actions: e }) }) : null
365
+ ]
366
+ },
367
+ t.id ?? l
368
+ );
369
+ }) }) : k !== "ready" ? null : ue ?? /* @__PURE__ */ r("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: i("notesPanel.empty", { defaultValue: "No notes yet." }) })
370
+ ] })
371
+ ]
372
+ }
373
+ );
374
+ }
375
+ );
376
+ export {
377
+ Xe as N,
378
+ Q as g
379
+ };
380
+ //# sourceMappingURL=notes-panel-C4G-mhZ9.js.map
@@ -2,7 +2,7 @@ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as w, useId as A, useRef as O } from "react";
3
3
  import { c as P } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as z } from "react-i18next";
5
- import { A as j } from "./avatar-BNQNhoyL.js";
5
+ import { A as j } from "./avatar-CkDeQOSI.js";
6
6
  import { B as I } from "./badge-sTusUqZD.js";
7
7
  import { C as T } from "./card-DPmk26CL.js";
8
8
  import { R as B } from "./rating-BYbUowdK.js";
@@ -199,4 +199,4 @@ export {
199
199
  M as O,
200
200
  V as o
201
201
  };
202
- //# sourceMappingURL=operator-hero-BnFv-Uef.js.map
202
+ //# sourceMappingURL=operator-hero-D7-iiFQ9.js.map
@@ -4,7 +4,7 @@ import { c as He } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as Fe } from "react-i18next";
5
5
  import { u as qe } from "./registry-DvAUVLHh.js";
6
6
  import { N as se } from "./number-input-Cgu2TtA8.js";
7
- import { S as he } from "./select-Bi8zril7.js";
7
+ import { S as he } from "./select-CLSUnKjF.js";
8
8
  import { T as Ke } from "./text-area-Bt3p7Pt0.js";
9
9
  import { D as v } from "./description-list-CjJqR8WK.js";
10
10
  const ye = {
@@ -1257,4 +1257,4 @@ export {
1257
1257
  yt as y,
1258
1258
  Re as z
1259
1259
  };
1260
- //# sourceMappingURL=optical-prescription-BvwuqTpl.js.map
1260
+ //# sourceMappingURL=optical-prescription-DUJOhKz_.js.map
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as c, Fragment as ae } from "react/jsx-runtime";
2
2
  import { forwardRef as se, useId as B, useMemo as ie, Fragment as re, useState as v, useCallback as I } from "react";
3
3
  import { c as H } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as V } from "react-i18next";
5
- import { A as ne } from "./avatar-BNQNhoyL.js";
5
+ import { A as ne } from "./avatar-CkDeQOSI.js";
6
6
  import { I as z } from "./icon-button-DA2CAGHZ.js";
7
7
  import { C as F } from "./card-DPmk26CL.js";
8
8
  import { C as le, b as oe, a as de } from "./collapsible-CTjxzGuF.js";
@@ -13,12 +13,12 @@ import { F as ue } from "./fiscal-code-input-B_nYMSEM.js";
13
13
  import { N as me } from "./number-input-Cgu2TtA8.js";
14
14
  import { P as fe } from "./panel-header-D313n_9-.js";
15
15
  import { P as ge } from "./phone-input-BsZIoE36.js";
16
- import { S as be } from "./select-Bi8zril7.js";
16
+ import { S as be } from "./select-CLSUnKjF.js";
17
17
  import { S as ye } from "./switch-OILsBLWo.js";
18
18
  import { T as he } from "./text-area-Bt3p7Pt0.js";
19
19
  import { T as ve } from "./text-input-CUvCb6ST.js";
20
- import { C as xe } from "./country-select-DzbPFktV.js";
21
- import { P as Ne } from "./province-select-BBc7s7vR.js";
20
+ import { C as xe } from "./country-select-CfDNFG5c.js";
21
+ import { P as Ne } from "./province-select-BaUnkg4S.js";
22
22
  import { P as Ce } from "./postal-code-input-BznBxVxf.js";
23
23
  import { C as Ve } from "./city-input-DaQc-Hbj.js";
24
24
  import { u as we } from "./registry-DvAUVLHh.js";
@@ -757,4 +757,4 @@ export {
757
757
  Ae as P,
758
758
  Oe as p
759
759
  };
760
- //# sourceMappingURL=patient-details-DYAmq76G.js.map
760
+ //# sourceMappingURL=patient-details-BGiawUHd.js.map
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
2
  import { forwardRef as Ae, useId as Ve, useMemo as ke } from "react";
3
3
  import { c as Me } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as Pe } from "react-i18next";
5
- import { A as X } from "./avatar-BNQNhoyL.js";
5
+ import { A as X } from "./avatar-CkDeQOSI.js";
6
6
  import { B as w } from "./badge-sTusUqZD.js";
7
7
  import { C as Y } from "./card-DPmk26CL.js";
8
8
  import { K as Fe, a as Le } from "./key-value-pair-BIBdZBLg.js";
@@ -451,4 +451,4 @@ export {
451
451
  sa as P,
452
452
  Xe as p
453
453
  };
454
- //# sourceMappingURL=patient-summary-card-C9WBwct-.js.map
454
+ //# sourceMappingURL=patient-summary-card--CT_gbaQ.js.map
@@ -5,8 +5,8 @@ import { useTranslation as ee } from "react-i18next";
5
5
  import { B as te } from "./badge-sTusUqZD.js";
6
6
  import { C as j } from "./card-DPmk26CL.js";
7
7
  import { C as ae } from "./checkbox-BuZ1u__2.js";
8
- import { R as y } from "./radio-TWf9Q-mp.js";
9
- import { R as D } from "./radio-group-rXDJADzW.js";
8
+ import { R as y } from "./radio-DNRe6H_8.js";
9
+ import { R as D } from "./radio-group-DyVBgnA3.js";
10
10
  import { u as oe } from "./registry-DvAUVLHh.js";
11
11
  const se = {
12
12
  enum: [1, 2, 3, 4],
@@ -342,4 +342,4 @@ export {
342
342
  k as i,
343
343
  ne as p
344
344
  };
345
- //# sourceMappingURL=periodontal-diagnosis-HrFsVi-C.js.map
345
+ //# sourceMappingURL=periodontal-diagnosis-lEwA8wqX.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsxs as s, jsx as e, Fragment as w } from "react/jsx-runtime";
2
2
  import { forwardRef as k, useId as C, useMemo as R, useRef as j } from "react";
3
3
  import { c as A } from "./index-D2ZczOXr.js";
4
- import { A as x } from "./avatar-BNQNhoyL.js";
4
+ import { A as x } from "./avatar-CkDeQOSI.js";
5
5
  import { B } from "./badge-sTusUqZD.js";
6
6
  import { C as y } from "./card-DPmk26CL.js";
7
7
  import { R as z } from "./rating-BYbUowdK.js";
@@ -190,4 +190,4 @@ export {
190
190
  E as P,
191
191
  M as p
192
192
  };
193
- //# sourceMappingURL=practice-profile-hero-YQ7h2K4o.js.map
193
+ //# sourceMappingURL=practice-profile-hero-DQyDvpJL.js.map
@@ -3,7 +3,7 @@ import { forwardRef as nt, useState as me, useRef as M, useMemo as B, useImperat
3
3
  import { c as j } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as C } from "react-i18next";
5
5
  import { A as Y } from "./alert-CiJT540z.js";
6
- import { A as Re } from "./avatar-BNQNhoyL.js";
6
+ import { A as Re } from "./avatar-CkDeQOSI.js";
7
7
  import { B as ee } from "./button-nJaPh_HC.js";
8
8
  import { D as $ } from "./dropdown-menu-DU-Hrf33.js";
9
9
  import { E as st } from "./empty-state-X0sVPfVo.js";
@@ -1736,4 +1736,4 @@ export {
1736
1736
  Dt as P,
1737
1737
  bt as p
1738
1738
  };
1739
- //# sourceMappingURL=practice-results-CxIsU2YO.js.map
1739
+ //# sourceMappingURL=practice-results-DjEzPgAK.js.map
@@ -3,12 +3,12 @@ import { forwardRef as xe, useState as c, useMemo as y, useEffect as Le, useRef
3
3
  import { c as Me } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as Re } from "react-i18next";
5
5
  import { u as Te } from "./registry-DvAUVLHh.js";
6
- import { R as u } from "./radio-TWf9Q-mp.js";
7
- import { R as j } from "./radio-group-rXDJADzW.js";
6
+ import { R as u } from "./radio-DNRe6H_8.js";
7
+ import { R as j } from "./radio-group-DyVBgnA3.js";
8
8
  import { F as f } from "./form-field-CahJzTxp.js";
9
9
  import { D as V } from "./date-picker-B6NW_PS5.js";
10
10
  import { N as H } from "./number-input-Cgu2TtA8.js";
11
- import { S as Ce } from "./select-Bi8zril7.js";
11
+ import { S as Ce } from "./select-CLSUnKjF.js";
12
12
  import { S as je } from "./switch-OILsBLWo.js";
13
13
  import { C as ie } from "./card-DPmk26CL.js";
14
14
  import { B as $ } from "./badge-sTusUqZD.js";
@@ -767,4 +767,4 @@ Ue.displayName = "PregnancyDating";
767
767
  export {
768
768
  Ue as P
769
769
  };
770
- //# sourceMappingURL=pregnancy-dating-m-c05DOI.js.map
770
+ //# sourceMappingURL=pregnancy-dating-n5j5dAKy.js.map
@@ -3,8 +3,8 @@ import { forwardRef as U, useState as x, useMemo as _, useEffect as J, useRef as
3
3
  import { c as X } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as Y } from "react-i18next";
5
5
  import { u as Z } from "./registry-DvAUVLHh.js";
6
- import { R as M } from "./radio-TWf9Q-mp.js";
7
- import { R as ee } from "./radio-group-rXDJADzW.js";
6
+ import { R as M } from "./radio-DNRe6H_8.js";
7
+ import { R as ee } from "./radio-group-DyVBgnA3.js";
8
8
  import { F as P } from "./form-field-CahJzTxp.js";
9
9
  import { N as I } from "./number-input-Cgu2TtA8.js";
10
10
  import { C as B } from "./card-DPmk26CL.js";
@@ -550,4 +550,4 @@ export {
550
550
  ie as p,
551
551
  oe as r
552
552
  };
553
- //# sourceMappingURL=pregnancy-weight-gain-CJwbs9W-.js.map
553
+ //# sourceMappingURL=pregnancy-weight-gain-D5A8vPjj.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { forwardRef as N, useMemo as p, useCallback as O, useRef as h, useEffect as z } from "react";
3
3
  import { useTranslation as U } from "react-i18next";
4
- import { C as F } from "./combobox-D7_NLE2Z.js";
4
+ import { C as F } from "./combobox-DnSdYssy.js";
5
5
  import { u as y } from "./use-controllable-state-BiY4xTzM.js";
6
6
  import { u as G } from "./registry-DvAUVLHh.js";
7
7
  const w = [
@@ -258,4 +258,4 @@ export {
258
258
  k as P,
259
259
  _ as p
260
260
  };
261
- //# sourceMappingURL=province-select-BBc7s7vR.js.map
261
+ //# sourceMappingURL=province-select-BaUnkg4S.js.map