@alfadocs/ui-kit 1.137.0 → 1.139.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 (244) hide show
  1. package/dist/_chunks/{address-fields-DvSWdeR0.js → address-fields-Bh9JZJHZ.js} +4 -4
  2. package/dist/_chunks/{ai-prompt-input-CVNeusoW.js → ai-prompt-input-B2QFwuJ1.js} +2 -2
  3. package/dist/_chunks/{anamnesis-summary-rows-Dr2V1Rtf.js → anamnesis-summary-rows-BgfBnjp0.js} +4 -4
  4. package/dist/_chunks/{appointment-card-BT1cMZIX.js → appointment-card-CaxFXtSn.js} +196 -184
  5. package/dist/_chunks/{appointment-timeline-Dy4YQJ17.js → appointment-timeline-BEwgbYyG.js} +113 -110
  6. package/dist/_chunks/{appointment-tray-B3gSHL1j.js → appointment-tray-DPpeR9JT.js} +8 -8
  7. package/dist/_chunks/{audio-recorder-BOF5YYoC.js → audio-recorder-6dUq8I38.js} +2 -2
  8. package/dist/_chunks/autocomplete-HZNW7_Pa.js +642 -0
  9. package/dist/_chunks/{balance-badge-cell-BSB02Bwo.js → balance-badge-cell-CRrIv2hy.js} +4 -4
  10. package/dist/_chunks/{bill-line-table-By-YL2ms.js → bill-line-table-DCqxhode.js} +3 -3
  11. package/dist/_chunks/{bishop-score-DWGESRP9.js → bishop-score-M7Fi-ykx.js} +2 -2
  12. package/dist/_chunks/{calendar-appointment-editor-dialog-D0n_bVsT.js → calendar-appointment-editor-dialog-GdnaPIOV.js} +537 -536
  13. package/dist/_chunks/{calendar-editor-discard-host-1UfmMOEb.js → calendar-editor-discard-host-BcMEgVEq.js} +3 -3
  14. package/dist/_chunks/{calendar-waiting-list-panel-Ckd6tSeu.js → calendar-waiting-list-panel-CkZBAv_E.js} +4 -4
  15. package/dist/_chunks/{calendar-workspace.model-DrOoxY1b.js → calendar-workspace.model-B8yPwuBv.js} +2 -2
  16. package/dist/_chunks/{calendar.sheets-Datc0-IT.js → calendar.sheets-B0jP2Yt0.js} +113 -112
  17. package/dist/_chunks/{calls-panel-BIfatK90.js → calls-panel-CtxJAzkJ.js} +2 -2
  18. package/dist/_chunks/{city-input-DXipzTfZ.js → city-input-DARVDJhH.js} +2 -2
  19. package/dist/_chunks/{combobox-BBCVQS-S.js → combobox-BYl6mY4c.js} +12 -13
  20. package/dist/_chunks/{communications-panel-SQ-55e3V.js → communications-panel-DBWM9II9.js} +2 -2
  21. package/dist/_chunks/{country-select-C2GdvRtS.js → country-select-BPISkYVU.js} +3 -3
  22. package/dist/_chunks/{data-grid-CxKz8flO.js → data-grid-bQ6iFm10.js} +15 -7
  23. package/dist/_chunks/{data-table-_tgj0C_T.js → data-table-CnLfOwxg.js} +2 -2
  24. package/dist/_chunks/{default-tabs-oDWQzbN7.js → default-tabs-Dm_vk6hd.js} +3 -3
  25. package/dist/_chunks/{document-preview-CirR3C_m.js → document-preview-FTCHXYhk.js} +2 -2
  26. package/dist/_chunks/{face-scheme-D_Y1StPl.js → face-scheme-Bxt7ZnJn.js} +2 -2
  27. package/dist/_chunks/{file-manager-CEi4z2i0.js → file-manager-Bsccb8Jj.js} +2 -2
  28. package/dist/_chunks/{forgot-password-form-YvI9vX-G.js → forgot-password-form-B4ufmBFn.js} +5 -4
  29. package/dist/_chunks/{gestational-age-calculator-CHbpC4vL.js → gestational-age-calculator-DXSPWG8u.js} +2 -2
  30. package/dist/_chunks/{heatmap-_546qI2V.js → heatmap-CFPaEKD_.js} +2 -2
  31. package/dist/_chunks/{invoice-upload-list-CQI9MUl6.js → invoice-upload-list-Dz3CXHPP.js} +3 -3
  32. package/dist/_chunks/{kit-extensions-BNBf4m8O.js → kit-extensions-BB_ksnVl.js} +3 -3
  33. package/dist/_chunks/{link-cell-renderer-Xx5T8u5Q.js → link-cell-renderer-CSA0KKPe.js} +5 -5
  34. package/dist/_chunks/{login-dev-card-Dz3ezx1o.js → login-dev-card-oRh9h7N2.js} +18 -17
  35. package/dist/_chunks/medication-I6QvOq6k.js +21 -0
  36. package/dist/_chunks/medication-line-CHdlh-F7.js +222 -0
  37. package/dist/_chunks/medication-search-DoEDakoM.js +380 -0
  38. package/dist/_chunks/{multi-select-Df3R8lv_.js → multi-select-DeMiHm8T.js} +4 -5
  39. package/dist/_chunks/{muscle-scheme-D_rSyGDj.js → muscle-scheme-BB2eBfww.js} +2 -2
  40. package/dist/_chunks/normalize-diacritics-DhJjQ3Bp.js +7 -0
  41. package/dist/_chunks/{notes-panel-DsEKNtsw.js → notes-panel-CnmQqhwq.js} +2 -2
  42. package/dist/_chunks/{optical-prescription-DaSbsh4p.js → optical-prescription-C4jpDFOE.js} +2 -2
  43. package/dist/_chunks/{option-row-Dc7BrbK8.js → option-row-DpCnuUqo.js} +25 -12
  44. package/dist/_chunks/{patient-account-settings-COybehKx.js → patient-account-settings-DfEPHmCh.js} +3 -3
  45. package/dist/_chunks/{patient-check-in-resume-DZnyYDKH.js → patient-check-in-resume-TWs8CPQr.js} +5 -5
  46. package/dist/_chunks/{patient-details-Dv7EiTCo.js → patient-details-DQTxSWY4.js} +2 -2
  47. package/dist/_chunks/{patient-field-row-DuHWGlLz.js → patient-field-row-CXuWQeQJ.js} +6 -6
  48. package/dist/_chunks/patient-picker-CQNsqYn2.js +163 -0
  49. package/dist/_chunks/{patient-search-DBvLFArV.js → patient-search-aTFd7p9s.js} +2 -2
  50. package/dist/_chunks/{patient-summary-card-D-cDzOim.js → patient-summary-card-j5u7c5Us.js} +2 -2
  51. package/dist/_chunks/{phone-input-BL8Sj6OG.js → phone-input-DRKcJUi4.js} +2 -2
  52. package/dist/_chunks/{portal-details-DdzvroYP.js → portal-details-VfeOI4PB.js} +3 -3
  53. package/dist/_chunks/{portal-documents-CNmoYWFc.js → portal-documents-hGHlwmbv.js} +3 -3
  54. package/dist/_chunks/{portal-parts-Br8wuala.js → portal-parts-C99CreYO.js} +2 -2
  55. package/dist/_chunks/{pregnancy-dating-lJbzai73.js → pregnancy-dating-C-3NLI6K.js} +2 -2
  56. package/dist/_chunks/prescription-history-748qDVwZ.js +1544 -0
  57. package/dist/_chunks/print-sheet-CSeqkM3_.js +318 -0
  58. package/dist/_chunks/{province-select-CTM8A9SM.js → province-select-D-iY9bQG.js} +3 -3
  59. package/dist/_chunks/{registration-form-CuLiTA52.js → registration-form-Cs9o6e5q.js} +7 -6
  60. package/dist/_chunks/{reserved.agent-CabZHFJC.js → reserved.agent-L2ElYPuj.js} +7 -7
  61. package/dist/_chunks/{reset-password-form-D_TePSM1.js → reset-password-form-DwtSNhnA.js} +18 -17
  62. package/dist/_chunks/{rich-text-editor-C48omVjq.js → rich-text-editor-DFsH5RAj.js} +2 -2
  63. package/dist/_chunks/save-Dn8uje3f.js +22 -0
  64. package/dist/_chunks/{search-bar-CQ9_V3EJ.js → search-bar-k1mS5yZl.js} +2 -2
  65. package/dist/_chunks/{select-CIXKyUMw.js → select-Bm8s3q-X.js} +16 -17
  66. package/dist/_chunks/{send-registration-link-form-BjkXr0TD.js → send-registration-link-form-C1vw6H1M.js} +6 -5
  67. package/dist/_chunks/{signature-request-vJDSHZld.js → signature-request-D3sLLOM6.js} +2 -2
  68. package/dist/_chunks/sync-tray-BhnkgXKK.js +567 -0
  69. package/dist/_chunks/{tabs-Czkmw5ou.js → tabs-BXr5XeGq.js} +2 -2
  70. package/dist/_chunks/{task-editor-wKbFbGqW.js → task-editor-DDVDPKJf.js} +26 -25
  71. package/dist/_chunks/{tasks-panel-DbtJS4QI.js → tasks-panel-BHXaPNOZ.js} +2 -2
  72. package/dist/_chunks/{toolbar-DjG-cpD_.js → toolbar-Dz_hAUIZ.js} +2 -2
  73. package/dist/_chunks/{unit-converter-CUAUTu2B.js → unit-converter-CBy7S4Tl.js} +2 -2
  74. package/dist/_chunks/{use-appointment-details-read-jGkJalX8.js → use-appointment-details-read-CBSpX4DI.js} +2 -2
  75. package/dist/_chunks/use-error-summary-CecJZo6w.js +32 -0
  76. package/dist/_chunks/use-registration-submit-CVukOAQk.js +84 -0
  77. package/dist/_chunks/{variables-menu-DQl8H4Gh.js → variables-menu-C4NcClKi.js} +2 -2
  78. package/dist/_chunks/{voice-control-panel-Cp4vs1iy.js → voice-control-panel-Dc_NFH2R.js} +2 -2
  79. package/dist/agent-catalog.json +456 -2
  80. package/dist/agent-i18n/en.json +53 -0
  81. package/dist/appointment-editor-panel/index.js +2 -2
  82. package/dist/booking-tools-data/index.js +1 -1
  83. package/dist/browser-support.js +1 -1
  84. package/dist/calendar-action-buttons/index.js +1 -1
  85. package/dist/components/_shared/medication.d.ts +28 -0
  86. package/dist/components/_shared/normalize-diacritics.d.ts +5 -0
  87. package/dist/components/_shared/patient-picker.d.ts +7 -0
  88. package/dist/components/address-fields/index.js +1 -1
  89. package/dist/components/ai-prompt-input/index.js +1 -1
  90. package/dist/components/appointment-card/appointment-card.d.ts +5 -2
  91. package/dist/components/appointment-card/index.js +2 -2
  92. package/dist/components/appointment-details-panel/index.js +1 -1
  93. package/dist/components/appointment-timeline/appointment-timeline.d.ts +6 -0
  94. package/dist/components/appointment-timeline/index.js +1 -1
  95. package/dist/components/audio-recorder/index.js +1 -1
  96. package/dist/components/autocomplete/autocomplete.d.ts +50 -0
  97. package/dist/components/autocomplete/index.d.ts +1 -1
  98. package/dist/components/autocomplete/index.js +1 -1
  99. package/dist/components/bill-line-table/index.js +1 -1
  100. package/dist/components/bill-table/index.js +1 -1
  101. package/dist/components/bishop-score/index.js +1 -1
  102. package/dist/components/booking/index.js +1 -1
  103. package/dist/components/calls-panel/index.js +1 -1
  104. package/dist/components/city-input/index.js +1 -1
  105. package/dist/components/combobox/index.js +1 -1
  106. package/dist/components/communications-panel/index.js +1 -1
  107. package/dist/components/country-select/index.js +1 -1
  108. package/dist/components/data-grid/index.js +2 -2
  109. package/dist/components/data-table/index.js +2 -2
  110. package/dist/components/document-preview/index.js +1 -1
  111. package/dist/components/face-scheme/index.js +1 -1
  112. package/dist/components/file-manager/index.js +1 -1
  113. package/dist/components/gestational-age-calculator/index.js +1 -1
  114. package/dist/components/heatmap/index.js +1 -1
  115. package/dist/components/index.d.ts +5 -0
  116. package/dist/components/invoice-upload-list/index.js +1 -1
  117. package/dist/components/medication-line/index.d.ts +6 -0
  118. package/dist/components/medication-line/index.js +7 -0
  119. package/dist/components/medication-line/medication-line.agent.d.ts +14 -0
  120. package/dist/components/medication-line/medication-line.d.ts +40 -0
  121. package/dist/components/medication-search/index.d.ts +6 -0
  122. package/dist/components/medication-search/index.js +10 -0
  123. package/dist/components/medication-search/medication-search.agent.d.ts +15 -0
  124. package/dist/components/medication-search/medication-search.d.ts +49 -0
  125. package/dist/components/multi-select/index.js +1 -1
  126. package/dist/components/muscle-scheme/index.js +1 -1
  127. package/dist/components/notes-panel/index.js +1 -1
  128. package/dist/components/optical-prescription/index.js +1 -1
  129. package/dist/components/patient-details/index.js +1 -1
  130. package/dist/components/patient-search/index.js +1 -1
  131. package/dist/components/patient-summary-card/index.js +1 -1
  132. package/dist/components/patient-table/index.js +1 -1
  133. package/dist/components/phone-input/index.js +1 -1
  134. package/dist/components/pregnancy-dating/index.js +1 -1
  135. package/dist/components/print-sheet/index.d.ts +5 -0
  136. package/dist/components/print-sheet/index.js +6 -0
  137. package/dist/components/print-sheet/print-isolation.d.ts +17 -0
  138. package/dist/components/print-sheet/print-sheet.agent.d.ts +19 -0
  139. package/dist/components/print-sheet/print-sheet.d.ts +54 -0
  140. package/dist/components/province-select/index.js +1 -1
  141. package/dist/components/rich-text-editor/index.js +2 -2
  142. package/dist/components/search-bar/index.js +1 -1
  143. package/dist/components/select/index.js +1 -1
  144. package/dist/components/skeleton-scheme/index.js +1 -1
  145. package/dist/components/sync-tray/index.d.ts +4 -0
  146. package/dist/components/sync-tray/index.js +7 -0
  147. package/dist/components/sync-tray/sync-tray.agent.d.ts +15 -0
  148. package/dist/components/sync-tray/sync-tray.d.ts +77 -0
  149. package/dist/components/tabs/index.js +1 -1
  150. package/dist/components/task-editor/index.js +1 -1
  151. package/dist/components/tasks-panel/index.js +1 -1
  152. package/dist/components/unit-converter/index.js +1 -1
  153. package/dist/components/variables-menu/index.js +1 -1
  154. package/dist/components/voice-control-panel/index.js +1 -1
  155. package/dist/core.css +1 -1
  156. package/dist/find-free-slots-panel/index.js +1 -1
  157. package/dist/host-compat.css +13 -1
  158. package/dist/host-legacy.css +16 -0
  159. package/dist/i18n/locales/ar.d.ts +134 -1
  160. package/dist/i18n/locales/ar.js +134 -1
  161. package/dist/i18n/locales/de.d.ts +134 -1
  162. package/dist/i18n/locales/de.js +134 -1
  163. package/dist/i18n/locales/el.d.ts +134 -1
  164. package/dist/i18n/locales/el.js +134 -1
  165. package/dist/i18n/locales/en.d.ts +134 -1
  166. package/dist/i18n/locales/en.js +134 -1
  167. package/dist/i18n/locales/es.d.ts +134 -1
  168. package/dist/i18n/locales/es.js +134 -1
  169. package/dist/i18n/locales/fr.d.ts +134 -1
  170. package/dist/i18n/locales/fr.js +134 -1
  171. package/dist/i18n/locales/hi.d.ts +134 -1
  172. package/dist/i18n/locales/hi.js +134 -1
  173. package/dist/i18n/locales/it.d.ts +134 -1
  174. package/dist/i18n/locales/it.js +134 -1
  175. package/dist/i18n/locales/ja.d.ts +134 -1
  176. package/dist/i18n/locales/ja.js +134 -1
  177. package/dist/i18n/locales/nl.d.ts +134 -1
  178. package/dist/i18n/locales/nl.js +134 -1
  179. package/dist/i18n/locales/pl.d.ts +134 -1
  180. package/dist/i18n/locales/pl.js +134 -1
  181. package/dist/i18n/locales/pt.d.ts +134 -1
  182. package/dist/i18n/locales/pt.js +134 -1
  183. package/dist/i18n/locales/ro.d.ts +134 -1
  184. package/dist/i18n/locales/ro.js +134 -1
  185. package/dist/i18n/locales/ru.d.ts +134 -1
  186. package/dist/i18n/locales/ru.js +134 -1
  187. package/dist/i18n/locales/sq.d.ts +134 -1
  188. package/dist/i18n/locales/sq.js +134 -1
  189. package/dist/i18n/locales/sv.d.ts +134 -1
  190. package/dist/i18n/locales/sv.js +134 -1
  191. package/dist/i18n/locales/tr.d.ts +134 -1
  192. package/dist/i18n/locales/tr.js +134 -1
  193. package/dist/i18n/locales/zh.d.ts +134 -1
  194. package/dist/i18n/locales/zh.js +134 -1
  195. package/dist/index.js +1004 -976
  196. package/dist/locales/ar.json +134 -1
  197. package/dist/locales/de.json +134 -1
  198. package/dist/locales/el.json +134 -1
  199. package/dist/locales/en.json +134 -1
  200. package/dist/locales/es.json +134 -1
  201. package/dist/locales/fr.json +134 -1
  202. package/dist/locales/hi.json +134 -1
  203. package/dist/locales/it.json +134 -1
  204. package/dist/locales/ja.json +134 -1
  205. package/dist/locales/nl.json +134 -1
  206. package/dist/locales/pl.json +134 -1
  207. package/dist/locales/pt.json +134 -1
  208. package/dist/locales/ro.json +134 -1
  209. package/dist/locales/ru.json +134 -1
  210. package/dist/locales/sq.json +134 -1
  211. package/dist/locales/sv.json +134 -1
  212. package/dist/locales/tr.json +134 -1
  213. package/dist/locales/zh.json +134 -1
  214. package/dist/online-bookings-panel/index.js +2 -2
  215. package/dist/patterns/anamnesis/index.js +1 -1
  216. package/dist/patterns/calendar/index.js +4 -4
  217. package/dist/patterns/forgot-password-form/index.js +1 -1
  218. package/dist/patterns/login-form/index.js +1 -1
  219. package/dist/patterns/patient-account-settings/index.js +1 -1
  220. package/dist/patterns/patient-check-in/index.js +1 -1
  221. package/dist/patterns/patient-portal/index.js +2 -2
  222. package/dist/patterns/prescription/index.d.ts +11 -0
  223. package/dist/patterns/prescription/index.js +13 -0
  224. package/dist/patterns/prescription/prescription-composer-errors.d.ts +6 -0
  225. package/dist/patterns/prescription/prescription-composer-item.d.ts +34 -0
  226. package/dist/patterns/prescription/prescription-composer.d.ts +89 -0
  227. package/dist/patterns/prescription/prescription-history.d.ts +48 -0
  228. package/dist/patterns/prescription/prescription-patient-block.d.ts +13 -0
  229. package/dist/patterns/prescription/prescription-sheet.d.ts +52 -0
  230. package/dist/patterns/prescription/prescription-status-badge.d.ts +5 -0
  231. package/dist/patterns/prescription/prescription-types.d.ts +97 -0
  232. package/dist/patterns/prescription/prescription-validation.d.ts +40 -0
  233. package/dist/patterns/registration-form/index.js +1 -1
  234. package/dist/patterns/reset-password-form/index.js +1 -1
  235. package/dist/patterns/send-registration-link-form/index.js +1 -1
  236. package/dist/patterns/signature-request/index.js +1 -1
  237. package/dist/tokens.css +1 -1
  238. package/dist/waiting-list-panel/index.js +2 -2
  239. package/package.json +21 -1
  240. package/dist/_chunks/autocomplete-D10ydpgi.js +0 -562
  241. package/dist/_chunks/group-options-BvKhQ3xb.js +0 -16
  242. package/dist/_chunks/normalize-diacritics-BNGbFNlJ.js +0 -7
  243. package/dist/_chunks/patient-picker-BZJuOgMw.js +0 -173
  244. package/dist/_chunks/use-registration-submit-CLGHxwoT.js +0 -112
@@ -1,5 +1,17 @@
1
- import { c as s } from "./index-D2ZczOXr.js";
2
- const t = s("ds:min-w-0", {
1
+ import { c as r } from "./index-D2ZczOXr.js";
2
+ function d(a) {
3
+ if (!a.some((s) => s.group)) return [{ group: void 0, items: a }];
4
+ const e = /* @__PURE__ */ new Map();
5
+ for (const s of a) {
6
+ const t = s.group ?? "", n = e.get(t);
7
+ n ? n.push(s) : e.set(t, [s]);
8
+ }
9
+ return Array.from(e.entries()).map(([s, t]) => ({
10
+ group: s || void 0,
11
+ items: t
12
+ }));
13
+ }
14
+ const l = r("ds:min-w-0", {
3
15
  variants: {
4
16
  wrap: {
5
17
  false: "ds:truncate",
@@ -7,7 +19,7 @@ const t = s("ds:min-w-0", {
7
19
  }
8
20
  },
9
21
  defaultVariants: { wrap: !1 }
10
- }), e = s("type-meta ds:break-words", {
22
+ }), p = r("type-meta ds:break-words", {
11
23
  variants: {
12
24
  tone: {
13
25
  default: "ds:text-muted-foreground",
@@ -17,7 +29,7 @@ const t = s("ds:min-w-0", {
17
29
  }
18
30
  },
19
31
  defaultVariants: { tone: "default" }
20
- }), n = s(
32
+ }), c = r(
21
33
  "ds:flex ds:flex-1 ds:min-w-0 ds:gap-[var(--spacing-sm)]",
22
34
  {
23
35
  variants: {
@@ -25,13 +37,14 @@ const t = s("ds:min-w-0", {
25
37
  },
26
38
  defaultVariants: { wrap: !1 }
27
39
  }
28
- ), r = "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col", d = "ds:flex ds:min-w-0 ds:items-start ds:gap-[var(--spacing-sm)]", i = "ds:inline-flex ds:min-h-[1lh] ds:not-supports-[min-height:1lh]:min-h-[calc(var(--line-height-base)*1em)] ds:shrink-0 ds:items-center ds:ms-auto";
40
+ ), u = "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col", f = "ds:flex ds:min-w-0 ds:items-start ds:gap-[var(--spacing-sm)]", m = "ds:inline-flex ds:min-h-[1lh] ds:not-supports-[min-height:1lh]:min-h-[calc(var(--line-height-base)*1em)] ds:shrink-0 ds:items-center ds:ms-auto";
29
41
  export {
30
- r as O,
31
- d as a,
32
- i as b,
33
- e as c,
34
- n as d,
35
- t as o
42
+ u as O,
43
+ f as a,
44
+ m as b,
45
+ l as c,
46
+ c as d,
47
+ d as g,
48
+ p as o
36
49
  };
37
- //# sourceMappingURL=option-row-Dc7BrbK8.js.map
50
+ //# sourceMappingURL=option-row-DpCnuUqo.js.map
@@ -6,10 +6,10 @@ import { B as D } from "./button-DohK_Ak_.js";
6
6
  import { r as at } from "./pin-indicator-Cb-n40UI.js";
7
7
  import { a as st } from "./privacy-mask-C2ZLKrMh.js";
8
8
  import { u as ct } from "./use-controllable-state-BiY4xTzM.js";
9
- import { P as lt, a as ot, b as W, e as dt, c as rt, d as ut } from "./portal-parts-Br8wuala.js";
9
+ import { P as lt, a as ot, b as W, e as dt, c as rt, d as ut } from "./portal-parts-C99CreYO.js";
10
10
  import { E as pt } from "./email-input-DxwbREpx.js";
11
11
  import { F as Z } from "./form-field-CyHfOVKF.js";
12
- import { P as mt } from "./phone-input-BL8Sj6OG.js";
12
+ import { P as mt } from "./phone-input-DRKcJUi4.js";
13
13
  import { P as tt } from "./pin-entry-BugWQMOS.js";
14
14
  import { a as X } from "./format-number-DdzqwMs1.js";
15
15
  import { u as _ } from "./patient-card-Cpr8iD19.js";
@@ -543,4 +543,4 @@ function wt({
543
543
  export {
544
544
  wt as P
545
545
  };
546
- //# sourceMappingURL=patient-account-settings-COybehKx.js.map
546
+ //# sourceMappingURL=patient-account-settings-DfEPHmCh.js.map
@@ -5,17 +5,17 @@ import { B as C } from "./button-DohK_Ak_.js";
5
5
  import { a as N, P as te, c as ae } from "./patient-card-Cpr8iD19.js";
6
6
  import { useId as P, useRef as ne, useEffect as se } from "react";
7
7
  import { A as k } from "./alert-C4WKViaS.js";
8
- import { A as _ } from "./appointment-card-BT1cMZIX.js";
8
+ import { A as _ } from "./appointment-card-CaxFXtSn.js";
9
9
  import { B as E } from "./badge-BUk4RjTS.js";
10
- import { u as B, j as G, d as ie } from "./portal-parts-Br8wuala.js";
10
+ import { u as B, j as G, d as ie } from "./portal-parts-C99CreYO.js";
11
11
  import { D as M } from "./description-list-BxzDN9o2.js";
12
12
  import { E as le } from "./error-summary-DxNhwf_G.js";
13
13
  import { F as oe } from "./form-field-CyHfOVKF.js";
14
- import { S as re } from "./select-CIXKyUMw.js";
14
+ import { S as re } from "./select-Bm8s3q-X.js";
15
15
  import { V as ce } from "./visually-hidden-BHxEUGyT.js";
16
16
  import { a as de } from "./privacy-mask-C2ZLKrMh.js";
17
17
  import { u as pe } from "./use-controllable-state-BiY4xTzM.js";
18
- import { p as me, b as he, a as ue } from "./portal-details-DdzvroYP.js";
18
+ import { p as me, b as he, a as ue } from "./portal-details-VfeOI4PB.js";
19
19
  import { p as fe } from "./privacy-mask-text-B8YfzB7L.js";
20
20
  function Re({
21
21
  session: t,
@@ -739,4 +739,4 @@ export {
739
739
  Ge as g,
740
740
  Re as h
741
741
  };
742
- //# sourceMappingURL=patient-check-in-resume-DZnyYDKH.js.map
742
+ //# sourceMappingURL=patient-check-in-resume-TWs8CPQr.js.map
@@ -8,7 +8,7 @@ import { C as ie, b as te, a as se } from "./collapsible-DVPM46bq.js";
8
8
  import { D as ae } from "./description-list-BxzDN9o2.js";
9
9
  import { P as de } from "./panel-header-CbtlTe85.js";
10
10
  import { u as re } from "./registry-DvAUVLHh.js";
11
- import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-DuHWGlLz.js";
11
+ import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-CXuWQeQJ.js";
12
12
  import { C as pe } from "./clipboard-list-rSzfIYZB.js";
13
13
  const me = {
14
14
  id: "patient-details",
@@ -368,4 +368,4 @@ export {
368
368
  ue as P,
369
369
  me as p
370
370
  };
371
- //# sourceMappingURL=patient-details-Dv7EiTCo.js.map
371
+ //# sourceMappingURL=patient-details-DQTxSWY4.js.map
@@ -18,16 +18,16 @@ import { C as oe } from "./calendar-days-BGWklvE-.js";
18
18
  import { H as le } from "./hourglass-BEAzW1wE.js";
19
19
  import { c as G } from "./createLucideIcon-DhHxpK9K.js";
20
20
  import { U as ce } from "./user-B12p7bVF.js";
21
- import { C as de } from "./city-input-DXipzTfZ.js";
22
- import { C as ue } from "./country-select-C2GdvRtS.js";
21
+ import { C as de } from "./city-input-DARVDJhH.js";
22
+ import { C as ue } from "./country-select-BPISkYVU.js";
23
23
  import { D as me } from "./date-picker-BmVBVpVu.js";
24
24
  import { E as pe } from "./email-input-DxwbREpx.js";
25
25
  import { F as fe } from "./fiscal-code-input-DZlpaMGg.js";
26
26
  import { N as ge } from "./number-input-DUSvP7Dq.js";
27
- import { P as he } from "./phone-input-BL8Sj6OG.js";
27
+ import { P as he } from "./phone-input-DRKcJUi4.js";
28
28
  import { P as ye } from "./postal-code-input-dJdSAVkP.js";
29
- import { P as be } from "./province-select-CTM8A9SM.js";
30
- import { S as ve } from "./select-CIXKyUMw.js";
29
+ import { P as be } from "./province-select-D-iY9bQG.js";
30
+ import { S as ve } from "./select-Bm8s3q-X.js";
31
31
  import { S as xe } from "./switch-DO6uC4HJ.js";
32
32
  import { T as Ce } from "./text-area-COMVJ1yE.js";
33
33
  import { T as ke } from "./text-input-B6iAgCr3.js";
@@ -805,4 +805,4 @@ export {
805
805
  Dt as r,
806
806
  St as u
807
807
  };
808
- //# sourceMappingURL=patient-field-row-DuHWGlLz.js.map
808
+ //# sourceMappingURL=patient-field-row-CXuWQeQJ.js.map
@@ -0,0 +1,163 @@
1
+ import { jsx as r, jsxs as j } from "react/jsx-runtime";
2
+ import { useState as x, useRef as B, useEffect as G } from "react";
3
+ import { useTranslation as H } from "react-i18next";
4
+ import { C as k } from "./combobox-BYl6mY4c.js";
5
+ import { B as w } from "./button-DohK_Ak_.js";
6
+ import { n as I } from "./normalize-diacritics-DhJjQ3Bp.js";
7
+ function D({
8
+ action: e,
9
+ typedRef: s
10
+ }) {
11
+ return /* @__PURE__ */ r(
12
+ w,
13
+ {
14
+ type: "button",
15
+ size: "sm",
16
+ intent: "outline",
17
+ className: "ds:self-start",
18
+ loading: e.loading,
19
+ "data-action": "create-patient",
20
+ onClick: () => e.onCreate(s.current),
21
+ children: e.label
22
+ }
23
+ );
24
+ }
25
+ function $({
26
+ patients: e = [],
27
+ searchPatients: s,
28
+ ...a
29
+ }) {
30
+ return s ? /* @__PURE__ */ r(K, { ...a, searchPatients: s }) : /* @__PURE__ */ r(J, { ...a, patients: e });
31
+ }
32
+ function J({
33
+ value: e,
34
+ onValueChange: s,
35
+ patients: a,
36
+ selectedLabel: p,
37
+ placeholder: P,
38
+ size: b,
39
+ disabled: y,
40
+ id: f,
41
+ privacyMask: i,
42
+ createAction: d
43
+ }) {
44
+ const l = B(""), C = /* @__PURE__ */ r(
45
+ k,
46
+ {
47
+ value: e,
48
+ onValueChange: s,
49
+ onQueryChange: (o) => {
50
+ l.current = o;
51
+ },
52
+ options: [
53
+ ...e && !a.some((o) => o.id === e) ? [{ value: e, label: i ?? p ?? "" }] : [],
54
+ ...a.map((o) => ({
55
+ value: o.id,
56
+ label: i !== void 0 && o.id === e ? i : o.name
57
+ }))
58
+ ],
59
+ id: f,
60
+ placeholder: P,
61
+ size: b,
62
+ disabled: y,
63
+ clearable: !0
64
+ }
65
+ );
66
+ return d ? /* @__PURE__ */ j("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
67
+ C,
68
+ e || y ? null : /* @__PURE__ */ r(D, { action: d, typedRef: l })
69
+ ] }) : C;
70
+ }
71
+ function K({
72
+ value: e,
73
+ onValueChange: s,
74
+ selectedLabel: a,
75
+ placeholder: p,
76
+ size: P,
77
+ disabled: b,
78
+ id: y,
79
+ privacyMask: f,
80
+ searchPatients: i,
81
+ createAction: d
82
+ }) {
83
+ const { t: l } = H("ui"), [C, o] = x(""), [E, L] = x(0), [h, O] = x(), [m, R] = x(), N = B(null), Q = B(""), c = C.trim();
84
+ G(() => {
85
+ if (!c) return;
86
+ const t = new AbortController(), n = { query: c, source: i };
87
+ R({ ...n, status: "loading", patients: [] });
88
+ const S = setTimeout(() => {
89
+ Promise.resolve().then(() => i(c, { signal: t.signal })).then(
90
+ (F) => {
91
+ t.signal.aborted || R({ ...n, status: "ready", patients: F });
92
+ },
93
+ () => {
94
+ t.signal.aborted || R({ ...n, status: "error", patients: [] });
95
+ }
96
+ );
97
+ }, 250);
98
+ return () => {
99
+ clearTimeout(S), t.abort();
100
+ };
101
+ }, [c, i, E]);
102
+ const q = (m == null ? void 0 : m.query) === c && m.source === i, u = c ? q ? m.status : "loading" : "idle", g = q && u === "ready" ? m.patients : [], z = u === "loading" ? l("inputs.search.loading") : u === "error" ? l("emptyState.error.description") : u === "idle" ? p : g.length === 0 ? l("inputs.combobox.empty") : "", V = !!d && !e && !b, T = g.map((t) => ({
103
+ value: t.id,
104
+ label: f !== void 0 && t.id === e ? f : t.name
105
+ }));
106
+ return e && !g.some((t) => t.id === e) && T.push({
107
+ value: e,
108
+ label: f ?? ((h == null ? void 0 : h.id) === e ? h.name : a ?? "")
109
+ }), /* @__PURE__ */ j(
110
+ "div",
111
+ {
112
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
113
+ "data-component": "patient-picker",
114
+ "data-status": u,
115
+ children: [
116
+ /* @__PURE__ */ r(
117
+ k,
118
+ {
119
+ ref: N,
120
+ options: T,
121
+ value: e,
122
+ onValueChange: (t) => {
123
+ O(
124
+ (n) => g.find((S) => S.id === t) ?? ((n == null ? void 0 : n.id) === t ? n : void 0)
125
+ ), s(t);
126
+ },
127
+ onQueryChange: (t) => {
128
+ Q.current = t, o(t);
129
+ },
130
+ onOpenChange: (t) => {
131
+ !t && u !== "error" && o("");
132
+ },
133
+ filter: (t) => !c || g.some((n) => I(n.id) === t) ? 1 : 0,
134
+ size: P,
135
+ disabled: b,
136
+ id: y,
137
+ placeholder: p,
138
+ emptyMessage: z || void 0,
139
+ clearable: !0
140
+ }
141
+ ),
142
+ /* @__PURE__ */ r("p", { role: "status", className: "type-body-sm ds:text-muted-foreground", children: z }),
143
+ V && d ? /* @__PURE__ */ r(D, { action: d, typedRef: Q }) : null,
144
+ u === "error" ? /* @__PURE__ */ r(
145
+ w,
146
+ {
147
+ size: "sm",
148
+ intent: "ghost",
149
+ onClick: () => {
150
+ var t;
151
+ L((n) => n + 1), (t = N.current) == null || t.focus();
152
+ },
153
+ children: l("emptyState.error.cta")
154
+ }
155
+ ) : null
156
+ ]
157
+ }
158
+ );
159
+ }
160
+ export {
161
+ $ as P
162
+ };
163
+ //# sourceMappingURL=patient-picker-CQNsqYn2.js.map
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as x } from "react/jsx-runtime";
2
2
  import { forwardRef as Te, useRef as R, useState as J, useEffect as H, useLayoutEffect as Ae, useMemo as ue, useImperativeHandle as We, createContext as Pe, useCallback as Z, useId as _e, useContext as Qe } from "react";
3
3
  import { c as ee } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as D } from "react-i18next";
5
- import { A as Se } from "./autocomplete-D10ydpgi.js";
5
+ import { A as Se } from "./autocomplete-HZNW7_Pa.js";
6
6
  import { B as Fe } from "./button-DohK_Ak_.js";
7
7
  import { C as te } from "./card-n6W6LW-N.js";
8
8
  import { S as Ie } from "./slider-pZ95bEm7.js";
@@ -1273,4 +1273,4 @@ export {
1273
1273
  nt as P,
1274
1274
  He as p
1275
1275
  };
1276
- //# sourceMappingURL=patient-search-DBvLFArV.js.map
1276
+ //# sourceMappingURL=patient-search-aTFd7p9s.js.map
@@ -14,7 +14,7 @@ import { T as Ke } from "./transaction-chip-CkYd-3ky.js";
14
14
  import { T as je } from "./tooltip-uEBdD1-5.js";
15
15
  import { H as G } from "./hover-card-CuRIA4wN.js";
16
16
  import { i as de } from "./is-safe-url-CEy9CEml.js";
17
- import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-DuHWGlLz.js";
17
+ import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-CXuWQeQJ.js";
18
18
  import { u as Oe } from "./registry-DvAUVLHh.js";
19
19
  import { M as ea } from "./mail-BqXVF2zH.js";
20
20
  import { P as aa } from "./phone-FceYcIFQ.js";
@@ -548,4 +548,4 @@ export {
548
548
  Ca as P,
549
549
  ma as p
550
550
  };
551
- //# sourceMappingURL=patient-summary-card-D-cDzOim.js.map
551
+ //# sourceMappingURL=patient-summary-card-j5u7c5Us.js.map
@@ -11,7 +11,7 @@ import { useTranslation as it } from "react-i18next";
11
11
  import { getCountries as dt, parsePhoneNumberFromString as V, AsYouType as W, getCountryCallingCode as lt } from "libphonenumber-js/min";
12
12
  import { u as ut, F as ct, a as pt } from "./form-field-context-DtiROUJV.js";
13
13
  import { c as ft } from "./compose-refs-C0k0tdqF.js";
14
- import { n as le } from "./normalize-diacritics-BNGbFNlJ.js";
14
+ import { n as le } from "./normalize-diacritics-DhJjQ3Bp.js";
15
15
  import { b as mt } from "./menu-row-BAr8bx1I.js";
16
16
  import { a as ue } from "./flag-DVBE6DnB.js";
17
17
  import { C as ht } from "./chevron-down-DWE7GSq9.js";
@@ -643,4 +643,4 @@ export {
643
643
  Ie as c,
644
644
  vt as p
645
645
  };
646
- //# sourceMappingURL=phone-input-BL8Sj6OG.js.map
646
+ //# sourceMappingURL=phone-input-DRKcJUi4.js.map
@@ -4,7 +4,7 @@ import { useTranslation as z } from "react-i18next";
4
4
  import { A as Q } from "./alert-C4WKViaS.js";
5
5
  import { B as I } from "./button-DohK_Ak_.js";
6
6
  import { C as st } from "./checkbox-DV4sNDeB.js";
7
- import { C as ot } from "./country-select-C2GdvRtS.js";
7
+ import { C as ot } from "./country-select-BPISkYVU.js";
8
8
  import { D as P } from "./description-list-BxzDN9o2.js";
9
9
  import { E as rt } from "./error-summary-DxNhwf_G.js";
10
10
  import { E as ct } from "./email-input-DxwbREpx.js";
@@ -13,7 +13,7 @@ import { T as S } from "./text-input-B6iAgCr3.js";
13
13
  import { V as mt } from "./visually-hidden-BHxEUGyT.js";
14
14
  import { a as pt } from "./privacy-mask-C2ZLKrMh.js";
15
15
  import { u as W } from "./use-controllable-state-BiY4xTzM.js";
16
- import { u as Y, P as dt, a as ut, b as ht, c as gt, d as Pt, f as bt } from "./portal-parts-Br8wuala.js";
16
+ import { u as Y, P as dt, a as ut, b as ht, c as gt, d as Pt, f as bt } from "./portal-parts-C99CreYO.js";
17
17
  import { p as V } from "./privacy-mask-text-B8YfzB7L.js";
18
18
  const Z = (n, u) => `${n}-${u}`;
19
19
  function Nt({
@@ -475,4 +475,4 @@ export {
475
475
  Ct as b,
476
476
  Z as p
477
477
  };
478
- //# sourceMappingURL=portal-details-DdzvroYP.js.map
478
+ //# sourceMappingURL=portal-details-VfeOI4PB.js.map
@@ -5,7 +5,7 @@ import { B as C } from "./button-DohK_Ak_.js";
5
5
  import { T as se } from "./tab-bar-CeC2QOwB.js";
6
6
  import { p as ae } from "./privacy-mask-text-B8YfzB7L.js";
7
7
  import { c as D, b as de } from "./patient-sign-in-steps-BKcxNkdY.js";
8
- import { g as ce, a as W, S as pe, b as F, u as G, P as J, e as $, h as V, i as R, j as me, t as Z, c as E, d as ne, k as _ } from "./portal-parts-Br8wuala.js";
8
+ import { g as ce, a as W, S as pe, b as F, u as G, P as J, e as $, h as V, i as R, j as me, t as Z, c as E, d as ne, k as _ } from "./portal-parts-C99CreYO.js";
9
9
  import { H as ue } from "./house-DGCypGTo.js";
10
10
  import { C as he } from "./calendar-days-BGWklvE-.js";
11
11
  import { F as re } from "./file-text-5yv6r2ls.js";
@@ -18,7 +18,7 @@ import { D as H } from "./dialog-CVTxyR0v.js";
18
18
  import { V as ye } from "./visually-hidden-BHxEUGyT.js";
19
19
  import { u as ve } from "./use-controllable-state-BiY4xTzM.js";
20
20
  import { A as ee } from "./alert-C4WKViaS.js";
21
- import { D as xe } from "./document-preview-CirR3C_m.js";
21
+ import { D as xe } from "./document-preview-FTCHXYhk.js";
22
22
  import { D as ke } from "./download-CfYKJO_j.js";
23
23
  function _e({
24
24
  activeTab: p,
@@ -899,4 +899,4 @@ export {
899
899
  we as c,
900
900
  _e as d
901
901
  };
902
- //# sourceMappingURL=portal-documents-CNmoYWFc.js.map
902
+ //# sourceMappingURL=portal-documents-hGHlwmbv.js.map
@@ -7,7 +7,7 @@ import { E as d } from "./empty-state-DwJ5YNzz.js";
7
7
  import { S as L } from "./skeleton-tTWJpvAq.js";
8
8
  import { S as j } from "./step-up-dialog-C2JqJmCA.js";
9
9
  import { i as k } from "./is-development-CLUAnsU7.js";
10
- import { A as E } from "./appointment-card-BT1cMZIX.js";
10
+ import { A as E } from "./appointment-card-CaxFXtSn.js";
11
11
  import { c as B } from "./intl-locale-FWh-Y5_3.js";
12
12
  function Y(e) {
13
13
  const { i18n: t } = v("ui");
@@ -282,4 +282,4 @@ export {
282
282
  te as t,
283
283
  Y as u
284
284
  };
285
- //# sourceMappingURL=portal-parts-Br8wuala.js.map
285
+ //# sourceMappingURL=portal-parts-C99CreYO.js.map
@@ -8,7 +8,7 @@ import { R as j } from "./radio-group-ChIKyeSJ.js";
8
8
  import { F as f } from "./form-field-CyHfOVKF.js";
9
9
  import { D as V } from "./date-picker-BmVBVpVu.js";
10
10
  import { N as H } from "./number-input-DUSvP7Dq.js";
11
- import { S as Ce } from "./select-CIXKyUMw.js";
11
+ import { S as Ce } from "./select-Bm8s3q-X.js";
12
12
  import { S as je } from "./switch-DO6uC4HJ.js";
13
13
  import { C as ie } from "./card-n6W6LW-N.js";
14
14
  import { B as $ } from "./badge-BUk4RjTS.js";
@@ -767,4 +767,4 @@ Ue.displayName = "PregnancyDating";
767
767
  export {
768
768
  Ue as P
769
769
  };
770
- //# sourceMappingURL=pregnancy-dating-lJbzai73.js.map
770
+ //# sourceMappingURL=pregnancy-dating-C-3NLI6K.js.map