@alfadocs/ui-kit-debug 1.99.1 → 1.101.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 (458) hide show
  1. package/dist/_chunks/acupuncture-1-C-cvems8.js +13 -0
  2. package/dist/_chunks/acupuncture-1-C-cvems8.js.map +1 -0
  3. package/dist/_chunks/allergies-CNEf2fr_.js +17 -0
  4. package/dist/_chunks/allergies-CNEf2fr_.js.map +1 -0
  5. package/dist/_chunks/antibody-CWLfL4k8.js +29 -0
  6. package/dist/_chunks/antibody-CWLfL4k8.js.map +1 -0
  7. package/dist/_chunks/anus-DHgdwinm.js +21 -0
  8. package/dist/_chunks/anus-DHgdwinm.js.map +1 -0
  9. package/dist/_chunks/blood-cells-DpMYvJI_.js +29 -0
  10. package/dist/_chunks/blood-cells-DpMYvJI_.js.map +1 -0
  11. package/dist/_chunks/blood-vessel-Dc8GaXwC.js +33 -0
  12. package/dist/_chunks/blood-vessel-Dc8GaXwC.js.map +1 -0
  13. package/dist/_chunks/braces-BemMNLRD.js +17 -0
  14. package/dist/_chunks/braces-BemMNLRD.js.map +1 -0
  15. package/dist/_chunks/breast-e7cnPkLr.js +13 -0
  16. package/dist/_chunks/breast-e7cnPkLr.js.map +1 -0
  17. package/dist/_chunks/cardiology-BvJrR5Ps.js +13 -0
  18. package/dist/_chunks/cardiology-BvJrR5Ps.js.map +1 -0
  19. package/dist/_chunks/child-cognition-D0iUoCzR.js +29 -0
  20. package/dist/_chunks/child-cognition-D0iUoCzR.js.map +1 -0
  21. package/dist/_chunks/contact-profile-card-CFAhByRk.js +369 -0
  22. package/dist/_chunks/contact-profile-card-CFAhByRk.js.map +1 -0
  23. package/dist/_chunks/dental-hygiene-Tzto39dH.js +21 -0
  24. package/dist/_chunks/dental-hygiene-Tzto39dH.js.map +1 -0
  25. package/dist/_chunks/dermatology-_SDatVWc.js +27 -0
  26. package/dist/_chunks/dermatology-_SDatVWc.js.map +1 -0
  27. package/dist/_chunks/diabetes-BktyYcIy.js +17 -0
  28. package/dist/_chunks/diabetes-BktyYcIy.js.map +1 -0
  29. package/dist/_chunks/dna-tySC-Hu2.js +13 -0
  30. package/dist/_chunks/dna-tySC-Hu2.js.map +1 -0
  31. package/dist/_chunks/doctor-DX3-nJ5X.js +17 -0
  32. package/dist/_chunks/doctor-DX3-nJ5X.js.map +1 -0
  33. package/dist/_chunks/ears-nose-and-throat-B_L5DhZw.js +17 -0
  34. package/dist/_chunks/ears-nose-and-throat-B_L5DhZw.js.map +1 -0
  35. package/dist/_chunks/eco-care-LWrNZKra.js +18 -0
  36. package/dist/_chunks/eco-care-LWrNZKra.js.map +1 -0
  37. package/dist/_chunks/exercise-MnNysb0I.js +13 -0
  38. package/dist/_chunks/exercise-MnNysb0I.js.map +1 -0
  39. package/dist/_chunks/eyeglasses-Bv42KF2A.js +29 -0
  40. package/dist/_chunks/eyeglasses-Bv42KF2A.js.map +1 -0
  41. package/dist/_chunks/foot-DQUkXPW7.js +17 -0
  42. package/dist/_chunks/foot-DQUkXPW7.js.map +1 -0
  43. package/dist/_chunks/fruits-DXjGROSO.js +65 -0
  44. package/dist/_chunks/fruits-DXjGROSO.js.map +1 -0
  45. package/dist/_chunks/general-surgery-CQsMM57b.js +26 -0
  46. package/dist/_chunks/general-surgery-CQsMM57b.js.map +1 -0
  47. package/dist/_chunks/geriatrics-mIdQykYH.js +21 -0
  48. package/dist/_chunks/geriatrics-mIdQykYH.js.map +1 -0
  49. package/dist/_chunks/group-discussion-meeting-DMQuNKeQ.js +33 -0
  50. package/dist/_chunks/group-discussion-meeting-DMQuNKeQ.js.map +1 -0
  51. package/dist/_chunks/gym-XMDmWRJY.js +14 -0
  52. package/dist/_chunks/gym-XMDmWRJY.js.map +1 -0
  53. package/dist/_chunks/gynecology-9ReGmGUC.js +29 -0
  54. package/dist/_chunks/gynecology-9ReGmGUC.js.map +1 -0
  55. package/dist/_chunks/head-CQzwow-0.js +13 -0
  56. package/dist/_chunks/head-CQzwow-0.js.map +1 -0
  57. package/dist/_chunks/health-cross-B_Vt1EYd.js +13 -0
  58. package/dist/_chunks/health-cross-B_Vt1EYd.js.map +1 -0
  59. package/dist/_chunks/health-worker-D8VRElqR.js +19 -0
  60. package/dist/_chunks/health-worker-D8VRElqR.js.map +1 -0
  61. package/dist/_chunks/heart-organ-BlKfz1-q.js +13 -0
  62. package/dist/_chunks/heart-organ-BlKfz1-q.js.map +1 -0
  63. package/dist/_chunks/hepatology-BrZoHyC5.js +14 -0
  64. package/dist/_chunks/hepatology-BrZoHyC5.js.map +1 -0
  65. package/dist/_chunks/justice-BUuDMHIC.js +13 -0
  66. package/dist/_chunks/justice-BUuDMHIC.js.map +1 -0
  67. package/dist/_chunks/liquid-medicine-DGnxQ0rF.js +21 -0
  68. package/dist/_chunks/liquid-medicine-DGnxQ0rF.js.map +1 -0
  69. package/dist/_chunks/lungs-2d9WADXS.js +13 -0
  70. package/dist/_chunks/lungs-2d9WADXS.js.map +1 -0
  71. package/dist/_chunks/lymph-nodes-DGNEEXZF.js +13 -0
  72. package/dist/_chunks/lymph-nodes-DGNEEXZF.js.map +1 -0
  73. package/dist/_chunks/maxillofacial-CifdVvv5.js +13 -0
  74. package/dist/_chunks/maxillofacial-CifdVvv5.js.map +1 -0
  75. package/dist/_chunks/mental-disorders-CG_HqDBq.js +23 -0
  76. package/dist/_chunks/mental-disorders-CG_HqDBq.js.map +1 -0
  77. package/dist/_chunks/mental-health-therapy-B-h3_3w8.js +23 -0
  78. package/dist/_chunks/mental-health-therapy-B-h3_3w8.js.map +1 -0
  79. package/dist/_chunks/microscope-BGknMoE1.js +13 -0
  80. package/dist/_chunks/microscope-BGknMoE1.js.map +1 -0
  81. package/dist/_chunks/mouth-QI3o5PWA.js +17 -0
  82. package/dist/_chunks/mouth-QI3o5PWA.js.map +1 -0
  83. package/dist/_chunks/nephrology-hI5VCu6r.js +17 -0
  84. package/dist/_chunks/nephrology-hI5VCu6r.js.map +1 -0
  85. package/dist/_chunks/nerve-BEUIX7Zo.js +13 -0
  86. package/dist/_chunks/nerve-BEUIX7Zo.js.map +1 -0
  87. package/dist/_chunks/neuro-surgery-BmL5KHqV.js +13 -0
  88. package/dist/_chunks/neuro-surgery-BmL5KHqV.js.map +1 -0
  89. package/dist/_chunks/neurology-BjotABE-.js +15 -0
  90. package/dist/_chunks/neurology-BjotABE-.js.map +1 -0
  91. package/dist/_chunks/nurse-BdKl35GF.js +19 -0
  92. package/dist/_chunks/nurse-BdKl35GF.js.map +1 -0
  93. package/dist/_chunks/obstetricsmonia-CtFfdinu.js +13 -0
  94. package/dist/_chunks/obstetricsmonia-CtFfdinu.js.map +1 -0
  95. package/dist/_chunks/odontology-DQV57_JZ.js +13 -0
  96. package/dist/_chunks/odontology-DQV57_JZ.js.map +1 -0
  97. package/dist/_chunks/odontology-implant-DgFctCX2.js +25 -0
  98. package/dist/_chunks/odontology-implant-DgFctCX2.js.map +1 -0
  99. package/dist/_chunks/oncology-pOPepvWu.js +17 -0
  100. package/dist/_chunks/oncology-pOPepvWu.js.map +1 -0
  101. package/dist/_chunks/opthalmology-BI_uw8Tq.js +17 -0
  102. package/dist/_chunks/opthalmology-BI_uw8Tq.js.map +1 -0
  103. package/dist/_chunks/orthopaedics-X7fY9tQF.js +21 -0
  104. package/dist/_chunks/orthopaedics-X7fY9tQF.js.map +1 -0
  105. package/dist/_chunks/orthotics-B3hKVYs1.js +21 -0
  106. package/dist/_chunks/orthotics-B3hKVYs1.js.map +1 -0
  107. package/dist/_chunks/pain-BK0w8d2-.js +33 -0
  108. package/dist/_chunks/pain-BK0w8d2-.js.map +1 -0
  109. package/dist/_chunks/{patient-search-DaZ9NzrL.js → patient-search-CxuqVUTB.js} +597 -576
  110. package/dist/_chunks/patient-search-CxuqVUTB.js.map +1 -0
  111. package/dist/_chunks/pediatric-surgery-hELRXyHE.js +21 -0
  112. package/dist/_chunks/pediatric-surgery-hELRXyHE.js.map +1 -0
  113. package/dist/_chunks/pediatrics-RGALUiKk.js +29 -0
  114. package/dist/_chunks/pediatrics-RGALUiKk.js.map +1 -0
  115. package/dist/_chunks/physical-therapy-BNwmAXPC.js +13 -0
  116. package/dist/_chunks/physical-therapy-BNwmAXPC.js.map +1 -0
  117. package/dist/_chunks/poison-BcFYQuGJ.js +13 -0
  118. package/dist/_chunks/poison-BcFYQuGJ.js.map +1 -0
  119. package/dist/_chunks/psychology-DicW1lCG.js +13 -0
  120. package/dist/_chunks/psychology-DicW1lCG.js.map +1 -0
  121. package/dist/_chunks/radiology-WQ3QCsSW.js +17 -0
  122. package/dist/_chunks/radiology-WQ3QCsSW.js.map +1 -0
  123. package/dist/_chunks/{reserved.agent-CB-92Vi9.js → reserved.agent-BxD0gnbt.js} +129 -129
  124. package/dist/_chunks/reserved.agent-BxD0gnbt.js.map +1 -0
  125. package/dist/_chunks/respirology-C2acv2k4.js +17 -0
  126. package/dist/_chunks/respirology-C2acv2k4.js.map +1 -0
  127. package/dist/_chunks/rheumatology-DqGCparS.js +13 -0
  128. package/dist/_chunks/rheumatology-DqGCparS.js.map +1 -0
  129. package/dist/_chunks/sexual-reproductive-health-Bc0iTwVJ.js +33 -0
  130. package/dist/_chunks/sexual-reproductive-health-Bc0iTwVJ.js.map +1 -0
  131. package/dist/_chunks/skin-layers-CgtgRc4D.js +27 -0
  132. package/dist/_chunks/skin-layers-CgtgRc4D.js.map +1 -0
  133. package/dist/_chunks/sonography-DYYzCvNK.js +29 -0
  134. package/dist/_chunks/sonography-DYYzCvNK.js.map +1 -0
  135. package/dist/_chunks/specialty-icon-KuovHTxh.js +338 -0
  136. package/dist/_chunks/specialty-icon-KuovHTxh.js.map +1 -0
  137. package/dist/_chunks/specialty-list-urUQJLk3.js +67 -0
  138. package/dist/_chunks/specialty-list-urUQJLk3.js.map +1 -0
  139. package/dist/_chunks/speech-language-therapist-B6iyqoGb.js +25 -0
  140. package/dist/_chunks/speech-language-therapist-B6iyqoGb.js.map +1 -0
  141. package/dist/_chunks/spine-CldRVdLL.js +33 -0
  142. package/dist/_chunks/spine-CldRVdLL.js.map +1 -0
  143. package/dist/_chunks/stethoscope--B2R7OR8.js +17 -0
  144. package/dist/_chunks/stethoscope--B2R7OR8.js.map +1 -0
  145. package/dist/_chunks/stitches-CFS2ZT7_.js +13 -0
  146. package/dist/_chunks/stitches-CFS2ZT7_.js.map +1 -0
  147. package/dist/_chunks/stomach-TQVBJg4U.js +13 -0
  148. package/dist/_chunks/stomach-TQVBJg4U.js.map +1 -0
  149. package/dist/_chunks/syringe-B1S8-3da.js +13 -0
  150. package/dist/_chunks/syringe-B1S8-3da.js.map +1 -0
  151. package/dist/_chunks/testicles-BxFu1qU7.js +17 -0
  152. package/dist/_chunks/testicles-BxFu1qU7.js.map +1 -0
  153. package/dist/_chunks/thyroid-Bb68AW49.js +81 -0
  154. package/dist/_chunks/thyroid-Bb68AW49.js.map +1 -0
  155. package/dist/_chunks/tooth-BkqaLe9Y.js +13 -0
  156. package/dist/_chunks/tooth-BkqaLe9Y.js.map +1 -0
  157. package/dist/_chunks/urology-BDY3-M0M.js +13 -0
  158. package/dist/_chunks/urology-BDY3-M0M.js.map +1 -0
  159. package/dist/_chunks/varicose-vein-BkRdE6iP.js +21 -0
  160. package/dist/_chunks/varicose-vein-BkRdE6iP.js.map +1 -0
  161. package/dist/_chunks/vascular-surgery-D_OOAsvq.js +37 -0
  162. package/dist/_chunks/vascular-surgery-D_OOAsvq.js.map +1 -0
  163. package/dist/_chunks/vegetables-L9-SmQ2G.js +21 -0
  164. package/dist/_chunks/vegetables-L9-SmQ2G.js.map +1 -0
  165. package/dist/_chunks/xray-Zno9UjPk.js +25 -0
  166. package/dist/_chunks/xray-Zno9UjPk.js.map +1 -0
  167. package/dist/agent-catalog.json +36 -2
  168. package/dist/agent-i18n/en.json +2 -1
  169. package/dist/components/booking/booking-types.d.ts +2 -1
  170. package/dist/components/booking/booking-types.d.ts.map +1 -1
  171. package/dist/components/booking/cascade.d.ts +3 -2
  172. package/dist/components/booking/cascade.d.ts.map +1 -1
  173. package/dist/components/booking/details-form.d.ts +1 -1
  174. package/dist/components/booking/index.js +1 -1
  175. package/dist/components/booking/reserved.d.ts +3 -1
  176. package/dist/components/booking/reserved.d.ts.map +1 -1
  177. package/dist/components/contact-profile-card/contact-profile-card.agent.d.ts.map +1 -1
  178. package/dist/components/contact-profile-card/contact-profile-card.d.ts +11 -0
  179. package/dist/components/contact-profile-card/contact-profile-card.d.ts.map +1 -1
  180. package/dist/components/contact-profile-card/index.js +1 -1
  181. package/dist/components/index.d.ts +2 -0
  182. package/dist/components/index.d.ts.map +1 -1
  183. package/dist/components/patient-search/index.js +1 -1
  184. package/dist/components/patient-search/patient-search.d.ts +7 -0
  185. package/dist/components/patient-search/patient-search.d.ts.map +1 -1
  186. package/dist/components/specialty-icon/glyph-loaders.d.ts +84 -0
  187. package/dist/components/specialty-icon/glyph-loaders.d.ts.map +1 -0
  188. package/dist/components/specialty-icon/glyphs/acupuncture-1.d.ts +4 -0
  189. package/dist/components/specialty-icon/glyphs/acupuncture-1.d.ts.map +1 -0
  190. package/dist/components/specialty-icon/glyphs/allergies.d.ts +4 -0
  191. package/dist/components/specialty-icon/glyphs/allergies.d.ts.map +1 -0
  192. package/dist/components/specialty-icon/glyphs/antibody.d.ts +4 -0
  193. package/dist/components/specialty-icon/glyphs/antibody.d.ts.map +1 -0
  194. package/dist/components/specialty-icon/glyphs/anus.d.ts +4 -0
  195. package/dist/components/specialty-icon/glyphs/anus.d.ts.map +1 -0
  196. package/dist/components/specialty-icon/glyphs/blood-cells.d.ts +4 -0
  197. package/dist/components/specialty-icon/glyphs/blood-cells.d.ts.map +1 -0
  198. package/dist/components/specialty-icon/glyphs/blood-vessel.d.ts +4 -0
  199. package/dist/components/specialty-icon/glyphs/blood-vessel.d.ts.map +1 -0
  200. package/dist/components/specialty-icon/glyphs/braces.d.ts +4 -0
  201. package/dist/components/specialty-icon/glyphs/braces.d.ts.map +1 -0
  202. package/dist/components/specialty-icon/glyphs/breast.d.ts +4 -0
  203. package/dist/components/specialty-icon/glyphs/breast.d.ts.map +1 -0
  204. package/dist/components/specialty-icon/glyphs/cardiology.d.ts +4 -0
  205. package/dist/components/specialty-icon/glyphs/cardiology.d.ts.map +1 -0
  206. package/dist/components/specialty-icon/glyphs/child-cognition.d.ts +4 -0
  207. package/dist/components/specialty-icon/glyphs/child-cognition.d.ts.map +1 -0
  208. package/dist/components/specialty-icon/glyphs/dental-hygiene.d.ts +4 -0
  209. package/dist/components/specialty-icon/glyphs/dental-hygiene.d.ts.map +1 -0
  210. package/dist/components/specialty-icon/glyphs/dermatology.d.ts +4 -0
  211. package/dist/components/specialty-icon/glyphs/dermatology.d.ts.map +1 -0
  212. package/dist/components/specialty-icon/glyphs/diabetes.d.ts +4 -0
  213. package/dist/components/specialty-icon/glyphs/diabetes.d.ts.map +1 -0
  214. package/dist/components/specialty-icon/glyphs/dna.d.ts +4 -0
  215. package/dist/components/specialty-icon/glyphs/dna.d.ts.map +1 -0
  216. package/dist/components/specialty-icon/glyphs/doctor.d.ts +4 -0
  217. package/dist/components/specialty-icon/glyphs/doctor.d.ts.map +1 -0
  218. package/dist/components/specialty-icon/glyphs/ears-nose-and-throat.d.ts +4 -0
  219. package/dist/components/specialty-icon/glyphs/ears-nose-and-throat.d.ts.map +1 -0
  220. package/dist/components/specialty-icon/glyphs/eco-care.d.ts +4 -0
  221. package/dist/components/specialty-icon/glyphs/eco-care.d.ts.map +1 -0
  222. package/dist/components/specialty-icon/glyphs/exercise.d.ts +4 -0
  223. package/dist/components/specialty-icon/glyphs/exercise.d.ts.map +1 -0
  224. package/dist/components/specialty-icon/glyphs/eyeglasses.d.ts +4 -0
  225. package/dist/components/specialty-icon/glyphs/eyeglasses.d.ts.map +1 -0
  226. package/dist/components/specialty-icon/glyphs/foot.d.ts +4 -0
  227. package/dist/components/specialty-icon/glyphs/foot.d.ts.map +1 -0
  228. package/dist/components/specialty-icon/glyphs/fruits.d.ts +4 -0
  229. package/dist/components/specialty-icon/glyphs/fruits.d.ts.map +1 -0
  230. package/dist/components/specialty-icon/glyphs/general-surgery.d.ts +4 -0
  231. package/dist/components/specialty-icon/glyphs/general-surgery.d.ts.map +1 -0
  232. package/dist/components/specialty-icon/glyphs/geriatrics.d.ts +4 -0
  233. package/dist/components/specialty-icon/glyphs/geriatrics.d.ts.map +1 -0
  234. package/dist/components/specialty-icon/glyphs/group-discussion-meeting.d.ts +4 -0
  235. package/dist/components/specialty-icon/glyphs/group-discussion-meeting.d.ts.map +1 -0
  236. package/dist/components/specialty-icon/glyphs/gym.d.ts +4 -0
  237. package/dist/components/specialty-icon/glyphs/gym.d.ts.map +1 -0
  238. package/dist/components/specialty-icon/glyphs/gynecology.d.ts +4 -0
  239. package/dist/components/specialty-icon/glyphs/gynecology.d.ts.map +1 -0
  240. package/dist/components/specialty-icon/glyphs/head.d.ts +4 -0
  241. package/dist/components/specialty-icon/glyphs/head.d.ts.map +1 -0
  242. package/dist/components/specialty-icon/glyphs/health-cross.d.ts +4 -0
  243. package/dist/components/specialty-icon/glyphs/health-cross.d.ts.map +1 -0
  244. package/dist/components/specialty-icon/glyphs/health-worker.d.ts +4 -0
  245. package/dist/components/specialty-icon/glyphs/health-worker.d.ts.map +1 -0
  246. package/dist/components/specialty-icon/glyphs/heart-organ.d.ts +4 -0
  247. package/dist/components/specialty-icon/glyphs/heart-organ.d.ts.map +1 -0
  248. package/dist/components/specialty-icon/glyphs/hepatology.d.ts +4 -0
  249. package/dist/components/specialty-icon/glyphs/hepatology.d.ts.map +1 -0
  250. package/dist/components/specialty-icon/glyphs/justice.d.ts +4 -0
  251. package/dist/components/specialty-icon/glyphs/justice.d.ts.map +1 -0
  252. package/dist/components/specialty-icon/glyphs/liquid-medicine.d.ts +4 -0
  253. package/dist/components/specialty-icon/glyphs/liquid-medicine.d.ts.map +1 -0
  254. package/dist/components/specialty-icon/glyphs/lungs.d.ts +4 -0
  255. package/dist/components/specialty-icon/glyphs/lungs.d.ts.map +1 -0
  256. package/dist/components/specialty-icon/glyphs/lymph-nodes.d.ts +4 -0
  257. package/dist/components/specialty-icon/glyphs/lymph-nodes.d.ts.map +1 -0
  258. package/dist/components/specialty-icon/glyphs/maxillofacial.d.ts +4 -0
  259. package/dist/components/specialty-icon/glyphs/maxillofacial.d.ts.map +1 -0
  260. package/dist/components/specialty-icon/glyphs/mental-disorders.d.ts +4 -0
  261. package/dist/components/specialty-icon/glyphs/mental-disorders.d.ts.map +1 -0
  262. package/dist/components/specialty-icon/glyphs/mental-health-therapy.d.ts +4 -0
  263. package/dist/components/specialty-icon/glyphs/mental-health-therapy.d.ts.map +1 -0
  264. package/dist/components/specialty-icon/glyphs/microscope.d.ts +4 -0
  265. package/dist/components/specialty-icon/glyphs/microscope.d.ts.map +1 -0
  266. package/dist/components/specialty-icon/glyphs/mouth.d.ts +4 -0
  267. package/dist/components/specialty-icon/glyphs/mouth.d.ts.map +1 -0
  268. package/dist/components/specialty-icon/glyphs/nephrology.d.ts +4 -0
  269. package/dist/components/specialty-icon/glyphs/nephrology.d.ts.map +1 -0
  270. package/dist/components/specialty-icon/glyphs/nerve.d.ts +4 -0
  271. package/dist/components/specialty-icon/glyphs/nerve.d.ts.map +1 -0
  272. package/dist/components/specialty-icon/glyphs/neuro-surgery.d.ts +4 -0
  273. package/dist/components/specialty-icon/glyphs/neuro-surgery.d.ts.map +1 -0
  274. package/dist/components/specialty-icon/glyphs/neurology.d.ts +4 -0
  275. package/dist/components/specialty-icon/glyphs/neurology.d.ts.map +1 -0
  276. package/dist/components/specialty-icon/glyphs/nurse.d.ts +4 -0
  277. package/dist/components/specialty-icon/glyphs/nurse.d.ts.map +1 -0
  278. package/dist/components/specialty-icon/glyphs/obstetricsmonia.d.ts +4 -0
  279. package/dist/components/specialty-icon/glyphs/obstetricsmonia.d.ts.map +1 -0
  280. package/dist/components/specialty-icon/glyphs/odontology-implant.d.ts +4 -0
  281. package/dist/components/specialty-icon/glyphs/odontology-implant.d.ts.map +1 -0
  282. package/dist/components/specialty-icon/glyphs/odontology.d.ts +4 -0
  283. package/dist/components/specialty-icon/glyphs/odontology.d.ts.map +1 -0
  284. package/dist/components/specialty-icon/glyphs/oncology.d.ts +4 -0
  285. package/dist/components/specialty-icon/glyphs/oncology.d.ts.map +1 -0
  286. package/dist/components/specialty-icon/glyphs/opthalmology.d.ts +4 -0
  287. package/dist/components/specialty-icon/glyphs/opthalmology.d.ts.map +1 -0
  288. package/dist/components/specialty-icon/glyphs/orthopaedics.d.ts +4 -0
  289. package/dist/components/specialty-icon/glyphs/orthopaedics.d.ts.map +1 -0
  290. package/dist/components/specialty-icon/glyphs/orthotics.d.ts +4 -0
  291. package/dist/components/specialty-icon/glyphs/orthotics.d.ts.map +1 -0
  292. package/dist/components/specialty-icon/glyphs/pain.d.ts +4 -0
  293. package/dist/components/specialty-icon/glyphs/pain.d.ts.map +1 -0
  294. package/dist/components/specialty-icon/glyphs/pediatric-surgery.d.ts +4 -0
  295. package/dist/components/specialty-icon/glyphs/pediatric-surgery.d.ts.map +1 -0
  296. package/dist/components/specialty-icon/glyphs/pediatrics.d.ts +4 -0
  297. package/dist/components/specialty-icon/glyphs/pediatrics.d.ts.map +1 -0
  298. package/dist/components/specialty-icon/glyphs/physical-therapy.d.ts +4 -0
  299. package/dist/components/specialty-icon/glyphs/physical-therapy.d.ts.map +1 -0
  300. package/dist/components/specialty-icon/glyphs/poison.d.ts +4 -0
  301. package/dist/components/specialty-icon/glyphs/poison.d.ts.map +1 -0
  302. package/dist/components/specialty-icon/glyphs/psychology.d.ts +4 -0
  303. package/dist/components/specialty-icon/glyphs/psychology.d.ts.map +1 -0
  304. package/dist/components/specialty-icon/glyphs/radiology.d.ts +4 -0
  305. package/dist/components/specialty-icon/glyphs/radiology.d.ts.map +1 -0
  306. package/dist/components/specialty-icon/glyphs/respirology.d.ts +4 -0
  307. package/dist/components/specialty-icon/glyphs/respirology.d.ts.map +1 -0
  308. package/dist/components/specialty-icon/glyphs/rheumatology.d.ts +4 -0
  309. package/dist/components/specialty-icon/glyphs/rheumatology.d.ts.map +1 -0
  310. package/dist/components/specialty-icon/glyphs/sexual-reproductive-health.d.ts +4 -0
  311. package/dist/components/specialty-icon/glyphs/sexual-reproductive-health.d.ts.map +1 -0
  312. package/dist/components/specialty-icon/glyphs/skin-layers.d.ts +4 -0
  313. package/dist/components/specialty-icon/glyphs/skin-layers.d.ts.map +1 -0
  314. package/dist/components/specialty-icon/glyphs/sonography.d.ts +4 -0
  315. package/dist/components/specialty-icon/glyphs/sonography.d.ts.map +1 -0
  316. package/dist/components/specialty-icon/glyphs/speech-language-therapist.d.ts +4 -0
  317. package/dist/components/specialty-icon/glyphs/speech-language-therapist.d.ts.map +1 -0
  318. package/dist/components/specialty-icon/glyphs/spine.d.ts +4 -0
  319. package/dist/components/specialty-icon/glyphs/spine.d.ts.map +1 -0
  320. package/dist/components/specialty-icon/glyphs/stethoscope.d.ts +4 -0
  321. package/dist/components/specialty-icon/glyphs/stethoscope.d.ts.map +1 -0
  322. package/dist/components/specialty-icon/glyphs/stitches.d.ts +4 -0
  323. package/dist/components/specialty-icon/glyphs/stitches.d.ts.map +1 -0
  324. package/dist/components/specialty-icon/glyphs/stomach.d.ts +4 -0
  325. package/dist/components/specialty-icon/glyphs/stomach.d.ts.map +1 -0
  326. package/dist/components/specialty-icon/glyphs/syringe.d.ts +4 -0
  327. package/dist/components/specialty-icon/glyphs/syringe.d.ts.map +1 -0
  328. package/dist/components/specialty-icon/glyphs/testicles.d.ts +4 -0
  329. package/dist/components/specialty-icon/glyphs/testicles.d.ts.map +1 -0
  330. package/dist/components/specialty-icon/glyphs/thyroid.d.ts +4 -0
  331. package/dist/components/specialty-icon/glyphs/thyroid.d.ts.map +1 -0
  332. package/dist/components/specialty-icon/glyphs/tooth.d.ts +4 -0
  333. package/dist/components/specialty-icon/glyphs/tooth.d.ts.map +1 -0
  334. package/dist/components/specialty-icon/glyphs/urology.d.ts +4 -0
  335. package/dist/components/specialty-icon/glyphs/urology.d.ts.map +1 -0
  336. package/dist/components/specialty-icon/glyphs/varicose-vein.d.ts +4 -0
  337. package/dist/components/specialty-icon/glyphs/varicose-vein.d.ts.map +1 -0
  338. package/dist/components/specialty-icon/glyphs/vascular-surgery.d.ts +4 -0
  339. package/dist/components/specialty-icon/glyphs/vascular-surgery.d.ts.map +1 -0
  340. package/dist/components/specialty-icon/glyphs/vegetables.d.ts +4 -0
  341. package/dist/components/specialty-icon/glyphs/vegetables.d.ts.map +1 -0
  342. package/dist/components/specialty-icon/glyphs/xray.d.ts +4 -0
  343. package/dist/components/specialty-icon/glyphs/xray.d.ts.map +1 -0
  344. package/dist/components/specialty-icon/index.d.ts +8 -0
  345. package/dist/components/specialty-icon/index.d.ts.map +1 -0
  346. package/dist/components/specialty-icon/index.js +9 -0
  347. package/dist/components/specialty-icon/index.js.map +1 -0
  348. package/dist/components/specialty-icon/specialty-glyph.d.ts +15 -0
  349. package/dist/components/specialty-icon/specialty-glyph.d.ts.map +1 -0
  350. package/dist/components/specialty-icon/specialty-icon.d.ts +19 -0
  351. package/dist/components/specialty-icon/specialty-icon.d.ts.map +1 -0
  352. package/dist/components/specialty-icon/specialty-map.d.ts +11 -0
  353. package/dist/components/specialty-icon/specialty-map.d.ts.map +1 -0
  354. package/dist/components/specialty-list/index.d.ts +3 -0
  355. package/dist/components/specialty-list/index.d.ts.map +1 -0
  356. package/dist/components/specialty-list/index.js +5 -0
  357. package/dist/components/specialty-list/index.js.map +1 -0
  358. package/dist/components/specialty-list/specialty-list.d.ts +20 -0
  359. package/dist/components/specialty-list/specialty-list.d.ts.map +1 -0
  360. package/dist/core.css +1 -1
  361. package/dist/i18n/locales/ar.d.ts +9 -0
  362. package/dist/i18n/locales/ar.d.ts.map +1 -1
  363. package/dist/i18n/locales/ar.js +9 -0
  364. package/dist/i18n/locales/ar.js.map +1 -1
  365. package/dist/i18n/locales/de.d.ts +9 -0
  366. package/dist/i18n/locales/de.d.ts.map +1 -1
  367. package/dist/i18n/locales/de.js +9 -0
  368. package/dist/i18n/locales/de.js.map +1 -1
  369. package/dist/i18n/locales/el.d.ts +9 -0
  370. package/dist/i18n/locales/el.d.ts.map +1 -1
  371. package/dist/i18n/locales/el.js +9 -0
  372. package/dist/i18n/locales/el.js.map +1 -1
  373. package/dist/i18n/locales/en.d.ts +9 -0
  374. package/dist/i18n/locales/en.d.ts.map +1 -1
  375. package/dist/i18n/locales/en.js +9 -0
  376. package/dist/i18n/locales/en.js.map +1 -1
  377. package/dist/i18n/locales/es.d.ts +9 -0
  378. package/dist/i18n/locales/es.d.ts.map +1 -1
  379. package/dist/i18n/locales/es.js +9 -0
  380. package/dist/i18n/locales/es.js.map +1 -1
  381. package/dist/i18n/locales/fr.d.ts +9 -0
  382. package/dist/i18n/locales/fr.d.ts.map +1 -1
  383. package/dist/i18n/locales/fr.js +9 -0
  384. package/dist/i18n/locales/fr.js.map +1 -1
  385. package/dist/i18n/locales/hi.d.ts +9 -0
  386. package/dist/i18n/locales/hi.d.ts.map +1 -1
  387. package/dist/i18n/locales/hi.js +9 -0
  388. package/dist/i18n/locales/hi.js.map +1 -1
  389. package/dist/i18n/locales/it.d.ts +9 -0
  390. package/dist/i18n/locales/it.d.ts.map +1 -1
  391. package/dist/i18n/locales/it.js +9 -0
  392. package/dist/i18n/locales/it.js.map +1 -1
  393. package/dist/i18n/locales/ja.d.ts +9 -0
  394. package/dist/i18n/locales/ja.d.ts.map +1 -1
  395. package/dist/i18n/locales/ja.js +9 -0
  396. package/dist/i18n/locales/ja.js.map +1 -1
  397. package/dist/i18n/locales/nl.d.ts +9 -0
  398. package/dist/i18n/locales/nl.d.ts.map +1 -1
  399. package/dist/i18n/locales/nl.js +9 -0
  400. package/dist/i18n/locales/nl.js.map +1 -1
  401. package/dist/i18n/locales/pl.d.ts +9 -0
  402. package/dist/i18n/locales/pl.d.ts.map +1 -1
  403. package/dist/i18n/locales/pl.js +9 -0
  404. package/dist/i18n/locales/pl.js.map +1 -1
  405. package/dist/i18n/locales/pt.d.ts +9 -0
  406. package/dist/i18n/locales/pt.d.ts.map +1 -1
  407. package/dist/i18n/locales/pt.js +9 -0
  408. package/dist/i18n/locales/pt.js.map +1 -1
  409. package/dist/i18n/locales/ro.d.ts +9 -0
  410. package/dist/i18n/locales/ro.d.ts.map +1 -1
  411. package/dist/i18n/locales/ro.js +9 -0
  412. package/dist/i18n/locales/ro.js.map +1 -1
  413. package/dist/i18n/locales/ru.d.ts +9 -0
  414. package/dist/i18n/locales/ru.d.ts.map +1 -1
  415. package/dist/i18n/locales/ru.js +9 -0
  416. package/dist/i18n/locales/ru.js.map +1 -1
  417. package/dist/i18n/locales/sq.d.ts +9 -0
  418. package/dist/i18n/locales/sq.d.ts.map +1 -1
  419. package/dist/i18n/locales/sq.js +9 -0
  420. package/dist/i18n/locales/sq.js.map +1 -1
  421. package/dist/i18n/locales/sv.d.ts +9 -0
  422. package/dist/i18n/locales/sv.d.ts.map +1 -1
  423. package/dist/i18n/locales/sv.js +9 -0
  424. package/dist/i18n/locales/sv.js.map +1 -1
  425. package/dist/i18n/locales/tr.d.ts +9 -0
  426. package/dist/i18n/locales/tr.d.ts.map +1 -1
  427. package/dist/i18n/locales/tr.js +9 -0
  428. package/dist/i18n/locales/tr.js.map +1 -1
  429. package/dist/i18n/locales/zh.d.ts +9 -0
  430. package/dist/i18n/locales/zh.d.ts.map +1 -1
  431. package/dist/i18n/locales/zh.js +9 -0
  432. package/dist/i18n/locales/zh.js.map +1 -1
  433. package/dist/index.js +503 -495
  434. package/dist/index.js.map +1 -1
  435. package/dist/locales/ar.json +9 -0
  436. package/dist/locales/de.json +9 -0
  437. package/dist/locales/el.json +9 -0
  438. package/dist/locales/en.json +9 -0
  439. package/dist/locales/es.json +9 -0
  440. package/dist/locales/fr.json +9 -0
  441. package/dist/locales/hi.json +9 -0
  442. package/dist/locales/it.json +9 -0
  443. package/dist/locales/ja.json +9 -0
  444. package/dist/locales/nl.json +9 -0
  445. package/dist/locales/pl.json +9 -0
  446. package/dist/locales/pt.json +9 -0
  447. package/dist/locales/ro.json +9 -0
  448. package/dist/locales/ru.json +9 -0
  449. package/dist/locales/sq.json +9 -0
  450. package/dist/locales/sv.json +9 -0
  451. package/dist/locales/tr.json +9 -0
  452. package/dist/locales/zh.json +9 -0
  453. package/dist/tokens.css +1 -1
  454. package/package.json +11 -1
  455. package/dist/_chunks/contact-profile-card-QPUgGu-t.js +0 -342
  456. package/dist/_chunks/contact-profile-card-QPUgGu-t.js.map +0 -1
  457. package/dist/_chunks/patient-search-DaZ9NzrL.js.map +0 -1
  458. package/dist/_chunks/reserved.agent-CB-92Vi9.js.map +0 -1
@@ -1,34 +1,34 @@
1
- import { jsx as t, jsxs as _ } from "react/jsx-runtime";
2
- import { forwardRef as Te, useRef as R, useState as J, useEffect as q, useLayoutEffect as Ae, useMemo as le, useImperativeHandle as We, createContext as Pe, useCallback as Z, useId as _e, useContext as Qe } from "react";
3
- import { c as H } from "./index-D2ZczOXr.js";
4
- import { useTranslation as V } from "react-i18next";
5
- import { A as Se } from "./autocomplete-D10ydpgi.js";
6
- import { B as Fe } from "./button-DohK_Ak_.js";
7
- import { C as ee } from "./card-C85_Ndhb.js";
8
- import { S as Ie } from "./slider-pZ95bEm7.js";
9
- import { a as Ve } from "./toast-BNoN8Qjh.js";
10
- import { D as Y } from "./dropdown-menu-CqxBthww.js";
11
- import { u as Oe } from "./registry-DvAUVLHh.js";
12
- import { S as ke } from "./search-QbWPlY5f.js";
13
- import { X as Ne } from "./x-B5YnXwCz.js";
14
- import { c as Be } from "./createLucideIcon-DhHxpK9K.js";
15
- import { M as De } from "./map-pin-BaY37-Km.js";
16
- import { S as Ke } from "./stethoscope-sZXGC43m.js";
17
- import { C as ze } from "./chevron-down-DWE7GSq9.js";
1
+ import { jsx as t, jsxs as x } from "react/jsx-runtime";
2
+ import { forwardRef as Ae, useRef as C, useState as Z, useEffect as H, useLayoutEffect as We, useMemo as ue, useImperativeHandle as Pe, createContext as Qe, useCallback as ee, useId as Se, useContext as Fe } from "react";
3
+ import { c as $ } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as B } from "react-i18next";
5
+ import { A as ke } from "./autocomplete-D10ydpgi.js";
6
+ import { B as Ie } from "./button-DohK_Ak_.js";
7
+ import { C as te } from "./card-C85_Ndhb.js";
8
+ import { S as Ve } from "./slider-pZ95bEm7.js";
9
+ import { a as Oe } from "./toast-BNoN8Qjh.js";
10
+ import { D as J } from "./dropdown-menu-CqxBthww.js";
11
+ import { u as Be } from "./registry-DvAUVLHh.js";
12
+ import { S as Ne } from "./search-QbWPlY5f.js";
13
+ import { X as Ce } from "./x-B5YnXwCz.js";
14
+ import { c as De } from "./createLucideIcon-DhHxpK9K.js";
15
+ import { M as Ke } from "./map-pin-BaY37-Km.js";
16
+ import { S as ze } from "./stethoscope-sZXGC43m.js";
17
+ import { C as Me } from "./chevron-down-DWE7GSq9.js";
18
18
  /**
19
19
  * @license lucide-react v1.22.0 - ISC
20
20
  *
21
21
  * This source code is licensed under the ISC license.
22
22
  * See the LICENSE file in the root directory of this source tree.
23
23
  */
24
- const Me = [
24
+ const qe = [
25
25
  ["line", { x1: "2", x2: "5", y1: "12", y2: "12", key: "bvdh0s" }],
26
26
  ["line", { x1: "19", x2: "22", y1: "12", y2: "12", key: "1tbv5k" }],
27
27
  ["line", { x1: "12", x2: "12", y1: "2", y2: "5", key: "11lu5j" }],
28
28
  ["line", { x1: "12", x2: "12", y1: "19", y2: "22", key: "x3vr5v" }],
29
29
  ["circle", { cx: "12", cy: "12", r: "7", key: "fim9np" }],
30
30
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
31
- ], qe = Be("locate-fixed", Me), He = {
31
+ ], He = De("locate-fixed", qe), $e = {
32
32
  id: "patient-search",
33
33
  // `filter` is the conceptual capability of this search widget. Building the
34
34
  // actual query (WHO/WHERE/WHEN/facets/geo) is host-delegated: selection is
@@ -87,20 +87,20 @@ function S(e, r) {
87
87
  } catch {
88
88
  }
89
89
  }
90
- const K = [
90
+ const M = [
91
91
  "today",
92
92
  "tomorrow",
93
93
  "this_week",
94
94
  "anytime"
95
- ], $ = [1, 5, 10, 25, 50], ue = 5, Ce = 200;
96
- function $e(e) {
95
+ ], U = [1, 5, 10, 25, 50], fe = 5, Re = 200;
96
+ function Ue(e) {
97
97
  let r = 0, a = Number.POSITIVE_INFINITY;
98
- return $.forEach((o, p) => {
99
- const i = Math.abs(o - e);
100
- i < a && (a = i, r = p);
98
+ return U.forEach((i, p) => {
99
+ const c = Math.abs(i - e);
100
+ c < a && (a = c, r = p);
101
101
  }), r;
102
102
  }
103
- const Ue = H(
103
+ const Ge = $(
104
104
  "ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)]",
105
105
  {
106
106
  variants: {
@@ -113,73 +113,73 @@ const Ue = H(
113
113
  },
114
114
  defaultVariants: { variant: "who-where" }
115
115
  }
116
- ), Re = Pe(null);
117
- function Ee(e) {
118
- const r = Qe(Re), a = R(!1);
116
+ ), Ee = Qe(null);
117
+ function Le(e) {
118
+ const r = Fe(Ee), a = C(!1);
119
119
  return r ? r[e] : a;
120
120
  }
121
- function te({
121
+ function re({
122
122
  value: e,
123
123
  onChange: r,
124
124
  loadObjects: a,
125
- onObjectSelect: o,
125
+ onObjectSelect: i,
126
126
  inputRef: p,
127
- query: i,
128
- onQueryChange: v
127
+ query: c,
128
+ onQueryChange: g
129
129
  }) {
130
- var m, f, d;
131
- const { t: h } = V("ui"), c = R((m = e.object) == null ? void 0 : m.value);
132
- q(() => {
133
- var l, y, g;
134
- ((l = e.object) == null ? void 0 : l.value) !== c.current && (c.current = (y = e.object) == null ? void 0 : y.value, v(((g = e.object) == null ? void 0 : g.label) ?? ""));
135
- }, [(f = e.object) == null ? void 0 : f.value, (d = e.object) == null ? void 0 : d.label, v]);
136
- const s = Z(
137
- async (l, { signal: y }) => await a(l, { signal: y }),
130
+ var f, b, l;
131
+ const { t: h } = B("ui"), d = C((f = e.object) == null ? void 0 : f.value);
132
+ H(() => {
133
+ var o, y, m;
134
+ ((o = e.object) == null ? void 0 : o.value) !== d.current && (d.current = (y = e.object) == null ? void 0 : y.value, g(((m = e.object) == null ? void 0 : m.label) ?? ""));
135
+ }, [(b = e.object) == null ? void 0 : b.value, (l = e.object) == null ? void 0 : l.label, g]);
136
+ const n = ee(
137
+ async (o, { signal: y }) => await a(o, { signal: y }),
138
138
  [a]
139
- ), u = (l) => {
139
+ ), u = (o) => {
140
140
  const y = {
141
- value: l.value,
142
- label: l.label,
143
- description: l.description,
144
- __payload: l.__payload
141
+ value: o.value,
142
+ label: o.label,
143
+ description: o.description,
144
+ __payload: o.__payload
145
145
  };
146
- v(y.label), c.current = y.value, r({ ...e, object: y }), S("patient_search_object_selected", {
146
+ g(y.label), d.current = y.value, r({ ...e, object: y }), S("patient_search_object_selected", {
147
147
  value: y.value,
148
148
  type: y.__payload && typeof y.__payload == "object" ? y.__payload.type : void 0
149
- }), o == null || o(y);
150
- }, n = Ee("who");
149
+ }), i == null || i(y);
150
+ }, s = Le("who");
151
151
  return /* @__PURE__ */ t(
152
152
  "div",
153
153
  {
154
154
  "data-component": "patient-search-field",
155
155
  "data-field": "who",
156
156
  onFocus: () => {
157
- n.current || (n.current = !0, S("patient_search_object_focused"));
157
+ s.current || (s.current = !0, S("patient_search_object_focused"));
158
158
  },
159
- onBlur: (l) => {
160
- l.currentTarget && !l.currentTarget.contains(l.relatedTarget) && (n.current = !1);
159
+ onBlur: (o) => {
160
+ o.currentTarget && !o.currentTarget.contains(o.relatedTarget) && (s.current = !1);
161
161
  },
162
162
  children: /* @__PURE__ */ t(
163
- Se,
163
+ ke,
164
164
  {
165
165
  ref: p,
166
166
  size: "lg",
167
- value: i,
168
- onChange: (l) => {
169
- v(l), e.object && l !== e.object.label && (c.current = void 0, r({ ...e, object: void 0 }));
167
+ value: c,
168
+ onChange: (o) => {
169
+ g(o), e.object && o !== e.object.label && (d.current = void 0, r({ ...e, object: void 0 }));
170
170
  },
171
171
  onSelect: u,
172
- loadOptions: s,
173
- debounceMs: Ce,
172
+ loadOptions: n,
173
+ debounceMs: Re,
174
174
  placeholder: h("patientSearch.who.placeholder"),
175
175
  "aria-label": h("patientSearch.who.label"),
176
- startAdornment: /* @__PURE__ */ t(ke, { "aria-hidden": "true" })
176
+ startAdornment: /* @__PURE__ */ t(Ne, { "aria-hidden": "true" })
177
177
  }
178
178
  )
179
179
  }
180
180
  );
181
181
  }
182
- const ye = [
182
+ const we = [
183
183
  "ds:inline-flex ds:items-center ds:justify-center",
184
184
  "ds:size-8 ds:rounded-[var(--radius-sm)]",
185
185
  "ds:text-[color:var(--muted-foreground)] ds:hover:text-[color:var(--primary)]",
@@ -191,171 +191,182 @@ const ye = [
191
191
  "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
192
192
  "ds:forced-colors:focus-visible:outline-[CanvasText]"
193
193
  ].join(" ");
194
- function re({
194
+ function ae({
195
195
  value: e,
196
196
  onChange: r,
197
197
  loadPlaces: a,
198
- onPlaceSelect: o,
198
+ onPlaceSelect: i,
199
199
  allowTypedPlace: p,
200
- inputRef: i,
201
- defaultRadiusKm: v = ue,
200
+ inputRef: c,
201
+ defaultRadiusKm: g = fe,
202
202
  reverseGeocode: h,
203
- query: c,
204
- onQueryChange: s
203
+ geoHint: d,
204
+ query: n,
205
+ onQueryChange: u
205
206
  }) {
206
- var M, I, O;
207
- const { t: u } = V("ui"), n = R((M = e.place) == null ? void 0 : M.value), m = e.geo ? "granted" : "pristine", [f, d] = J(m);
208
- q(() => {
209
- var w, x, j;
210
- ((w = e.place) == null ? void 0 : w.value) !== n.current && (n.current = (x = e.place) == null ? void 0 : x.value, s(((j = e.place) == null ? void 0 : j.label) ?? ""));
211
- }, [(I = e.place) == null ? void 0 : I.value, (O = e.place) == null ? void 0 : O.label, s]);
212
- const l = Z(
213
- async (w, { signal: x }) => await a(w, { signal: x }),
207
+ var q, O, D;
208
+ const { t: s } = B("ui"), f = C((q = e.place) == null ? void 0 : q.value), b = e.geo ? "granted" : "pristine", [l, o] = Z(b);
209
+ H(() => {
210
+ var w, _, T;
211
+ ((w = e.place) == null ? void 0 : w.value) !== f.current && (f.current = (_ = e.place) == null ? void 0 : _.value, u(((T = e.place) == null ? void 0 : T.label) ?? ""));
212
+ }, [(O = e.place) == null ? void 0 : O.value, (D = e.place) == null ? void 0 : D.label, u]);
213
+ const y = ee(
214
+ async (w, { signal: _ }) => await a(w, { signal: _ }),
214
215
  [a]
215
- ), y = (w) => {
216
- const x = {
216
+ ), m = (w) => {
217
+ const _ = {
217
218
  value: w.value,
218
219
  label: w.label,
219
220
  lat: w.lat,
220
221
  lng: w.lng
221
222
  };
222
- s(x.label), n.current = x.value, r({ ...e, place: x, geo: void 0 }), f === "granted" && d("pristine"), S("patient_search_place_selected", { value: x.value }), o == null || o(x);
223
- }, g = (w) => {
224
- d("pristine"), Ve(u("patientSearch.geo.denied")), S("patient_search_geo_denied", { reason: w });
225
- }, A = () => {
223
+ u(_.label), f.current = _.value, r({ ...e, place: _, geo: void 0 }), l === "granted" && o("pristine"), S("patient_search_place_selected", { value: _.value }), i == null || i(_);
224
+ }, j = (w) => {
225
+ o("pristine"), Oe(s("patientSearch.geo.denied")), S("patient_search_geo_denied", { reason: w });
226
+ }, R = () => {
226
227
  if (typeof window > "u" || !(navigator != null && navigator.geolocation)) {
227
- g("unsupported");
228
+ j("unsupported");
228
229
  return;
229
230
  }
230
- d("requesting"), S("patient_search_place_focused"), navigator.geolocation.getCurrentPosition(
231
+ o("requesting"), S("patient_search_place_focused"), navigator.geolocation.getCurrentPosition(
231
232
  async (w) => {
232
- const { latitude: x, longitude: j } = w.coords;
233
- let Q;
233
+ const { latitude: _, longitude: T } = w.coords;
234
+ let F;
234
235
  try {
235
- Q = await (h == null ? void 0 : h(x, j));
236
+ F = await (h == null ? void 0 : h(_, T));
236
237
  } catch {
237
- Q = void 0;
238
+ F = void 0;
238
239
  }
239
- const N = v, U = Q ?? u("patientSearch.geo.fallbackLabel"), G = {
240
- value: `geo:${x.toFixed(4)},${j.toFixed(4)}`,
241
- label: U,
242
- lat: x,
243
- lng: j
240
+ const N = g, G = F ?? s("patientSearch.geo.fallbackLabel"), X = {
241
+ value: `geo:${_.toFixed(4)},${T.toFixed(4)}`,
242
+ label: G,
243
+ lat: _,
244
+ lng: T
244
245
  };
245
246
  r({
246
247
  ...e,
247
- place: G,
248
+ place: X,
248
249
  geo: {
249
- lat: x,
250
- lng: j,
250
+ lat: _,
251
+ lng: T,
251
252
  radiusKm: N,
252
- label: U
253
+ label: G
253
254
  }
254
- }), d("granted"), S("patient_search_geo_granted", { radiusKm: N });
255
+ }), o("granted"), S("patient_search_geo_granted", { radiusKm: N });
255
256
  },
256
- () => g("user"),
257
+ () => j("user"),
257
258
  { enableHighAccuracy: !1, maximumAge: 6e4, timeout: 1e4 }
258
259
  );
259
- }, C = () => {
260
- r({ ...e, geo: void 0, place: void 0 }), s(""), n.current = void 0, d("pristine");
261
- }, k = f === "granted" && !!e.geo, L = f === "requesting", W = Ee("where"), ne = !!h ? /* @__PURE__ */ _("span", { className: "ds:absolute ds:end-[var(--spacing-xs)] ds:top-1/2 ds:-translate-y-1/2 ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
260
+ }, E = () => {
261
+ r({ ...e, geo: void 0, place: void 0 }), u(""), f.current = void 0, o("pristine");
262
+ }, k = l === "granted" && !!e.geo, W = l === "requesting", P = Le("where"), V = !!h, oe = V ? /* @__PURE__ */ x("span", { className: "ds:absolute ds:end-[var(--spacing-xs)] ds:top-1/2 ds:-translate-y-1/2 ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
262
263
  k ? /* @__PURE__ */ t(
263
264
  "button",
264
265
  {
265
266
  type: "button",
266
- "aria-label": u("patientSearch.geo.clear"),
267
- onClick: C,
268
- className: ye,
269
- children: /* @__PURE__ */ t(Ne, { "aria-hidden": "true", className: "ds:size-4" })
267
+ "aria-label": s("patientSearch.geo.clear"),
268
+ onClick: E,
269
+ className: we,
270
+ children: /* @__PURE__ */ t(Ce, { "aria-hidden": "true", className: "ds:size-4" })
270
271
  }
271
272
  ) : null,
272
273
  /* @__PURE__ */ t(
273
274
  "button",
274
275
  {
275
276
  type: "button",
276
- "aria-label": u("patientSearch.geo.cta"),
277
+ "aria-label": s("patientSearch.geo.cta"),
277
278
  "aria-pressed": k || void 0,
278
- disabled: L,
279
- onClick: k ? C : A,
280
- className: ye,
281
- children: /* @__PURE__ */ t(qe, { "aria-hidden": "true", className: "ds:size-4" })
279
+ disabled: W,
280
+ onClick: k ? E : R,
281
+ className: we,
282
+ children: /* @__PURE__ */ t(He, { "aria-hidden": "true", className: "ds:size-4" })
282
283
  }
283
284
  )
284
285
  ] }) : null;
285
- return /* @__PURE__ */ t(
286
+ return /* @__PURE__ */ x(
286
287
  "div",
287
288
  {
288
289
  "data-component": "patient-search-field",
289
290
  "data-field": "where",
290
291
  onFocus: () => {
291
- W.current || (W.current = !0, S("patient_search_place_focused"));
292
+ P.current || (P.current = !0, S("patient_search_place_focused"));
292
293
  },
293
294
  onBlur: (w) => {
294
- w.currentTarget && !w.currentTarget.contains(w.relatedTarget) && (W.current = !1);
295
+ w.currentTarget && !w.currentTarget.contains(w.relatedTarget) && (P.current = !1);
295
296
  },
296
297
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
297
- children: /* @__PURE__ */ _("div", { className: "ds:relative", children: [
298
- /* @__PURE__ */ t(
299
- Se,
300
- {
301
- ref: i,
302
- size: "lg",
303
- value: c,
304
- onChange: (w) => {
305
- var x, j;
306
- if (s(w), (p || e.place) && w !== ((x = e.place) == null ? void 0 : x.label)) {
307
- const Q = w.trim(), N = p && Q ? { value: `text:${Q}`, label: Q } : void 0;
308
- if (n.current = N == null ? void 0 : N.value, (N == null ? void 0 : N.value) === ((j = e.place) == null ? void 0 : j.value) && !e.geo) return;
309
- r({ ...e, place: N, geo: void 0 }), f === "granted" && d("pristine");
310
- }
311
- },
312
- onSelect: y,
313
- loadOptions: l,
314
- debounceMs: Ce,
315
- placeholder: u("patientSearch.where.placeholder"),
316
- "aria-label": u("patientSearch.where.label"),
317
- startAdornment: /* @__PURE__ */ t(De, { "aria-hidden": "true" }),
318
- endAdornment: (
319
- // Decorative spacer — reserves inline-end room so the typed
320
- // text doesn't run under the absolutely-positioned overlay.
321
- // Autocomplete wraps endAdornment in `aria-hidden`, which is
322
- // correct for this empty span. Granted-state shows an extra
323
- // clear-X chip, so the spacer doubles in width when granted.
324
- /* @__PURE__ */ t(
325
- "span",
326
- {
327
- "aria-hidden": "true",
328
- className: k ? "ds:inline-block ds:size-[4.5rem]" : "ds:inline-block ds:size-8"
298
+ children: [
299
+ /* @__PURE__ */ x("div", { className: "ds:relative", children: [
300
+ /* @__PURE__ */ t(
301
+ ke,
302
+ {
303
+ ref: c,
304
+ size: "lg",
305
+ value: n,
306
+ onChange: (w) => {
307
+ var _, T;
308
+ if (u(w), (p || e.place) && w !== ((_ = e.place) == null ? void 0 : _.label)) {
309
+ const F = w.trim(), N = p && F ? { value: `text:${F}`, label: F } : void 0;
310
+ if (f.current = N == null ? void 0 : N.value, (N == null ? void 0 : N.value) === ((T = e.place) == null ? void 0 : T.value) && !e.geo) return;
311
+ r({ ...e, place: N, geo: void 0 }), l === "granted" && o("pristine");
329
312
  }
313
+ },
314
+ onSelect: m,
315
+ loadOptions: y,
316
+ debounceMs: Re,
317
+ placeholder: s("patientSearch.where.placeholder"),
318
+ "aria-label": s("patientSearch.where.label"),
319
+ startAdornment: /* @__PURE__ */ t(Ke, { "aria-hidden": "true" }),
320
+ endAdornment: (
321
+ // Decorative spacer — reserves inline-end room so the typed
322
+ // text doesn't run under the absolutely-positioned overlay.
323
+ // Autocomplete wraps endAdornment in `aria-hidden`, which is
324
+ // correct for this empty span. Granted-state shows an extra
325
+ // clear-X chip, so the spacer doubles in width when granted.
326
+ /* @__PURE__ */ t(
327
+ "span",
328
+ {
329
+ "aria-hidden": "true",
330
+ className: k ? "ds:inline-block ds:size-[4.5rem]" : "ds:inline-block ds:size-8"
331
+ }
332
+ )
330
333
  )
331
- )
334
+ }
335
+ ),
336
+ oe
337
+ ] }),
338
+ V && d ? /* @__PURE__ */ t(
339
+ "p",
340
+ {
341
+ "data-component": "patient-search-geo-hint",
342
+ className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]",
343
+ children: d
332
344
  }
333
- ),
334
- ne
335
- ] })
345
+ ) : null
346
+ ]
336
347
  }
337
348
  );
338
349
  }
339
- function ae({
350
+ function se({
340
351
  value: e,
341
352
  onChange: r,
342
- defaultRadiusKm: a = ue
353
+ defaultRadiusKm: a = fe
343
354
  }) {
344
- const { t: o } = V("ui"), [p, i] = J(
355
+ const { t: i } = B("ui"), [p, c] = Z(
345
356
  () => {
346
- var c;
347
- return $e(((c = e.geo) == null ? void 0 : c.radiusKm) ?? a);
357
+ var d;
358
+ return Ue(((d = e.geo) == null ? void 0 : d.radiusKm) ?? a);
348
359
  }
349
360
  );
350
361
  if (!e.geo) return null;
351
- const v = (c) => {
352
- const s = $[c] ?? a;
353
- r({ ...e, geo: { ...e.geo, radiusKm: s } }), S("patient_search_radius_changed", { radiusKm: s });
354
- }, h = (c) => {
355
- const s = $[Math.round(c)] ?? a;
356
- return o("patientSearch.geo.radiusFormat", { km: s });
362
+ const g = (d) => {
363
+ const n = U[d] ?? a;
364
+ r({ ...e, geo: { ...e.geo, radiusKm: n } }), S("patient_search_radius_changed", { radiusKm: n });
365
+ }, h = (d) => {
366
+ const n = U[Math.round(d)] ?? a;
367
+ return i("patientSearch.geo.radiusFormat", { km: n });
357
368
  };
358
- return /* @__PURE__ */ _(
369
+ return /* @__PURE__ */ x(
359
370
  "div",
360
371
  {
361
372
  "data-component": "patient-search-geo-radius-bar",
@@ -366,32 +377,32 @@ function ae({
366
377
  {
367
378
  id: "patient-search-radius-label",
368
379
  className: "type-meta ds:text-[color:var(--muted-foreground)]",
369
- children: o("patientSearch.geo.radius")
380
+ children: i("patientSearch.geo.radius")
370
381
  }
371
382
  ),
372
383
  /* @__PURE__ */ t(
373
- Ie,
384
+ Ve,
374
385
  {
375
386
  value: [p],
376
387
  min: 0,
377
- max: $.length - 1,
388
+ max: U.length - 1,
378
389
  step: 1,
379
- marks: $.map((c, s) => ({
380
- value: s,
381
- label: `${c}`
390
+ marks: U.map((d, n) => ({
391
+ value: n,
392
+ label: `${d}`
382
393
  })),
383
394
  formatValue: h,
384
395
  alwaysShowValue: !0,
385
396
  "aria-labelledby": "patient-search-radius-label",
386
- onValueChange: (c) => i(c[0] ?? 0),
387
- onValueCommit: (c) => v(c[0] ?? 0)
397
+ onValueChange: (d) => c(d[0] ?? 0),
398
+ onValueCommit: (d) => g(d[0] ?? 0)
388
399
  }
389
400
  )
390
401
  ]
391
402
  }
392
403
  );
393
404
  }
394
- const Ge = H(
405
+ const Xe = $(
395
406
  [
396
407
  "ds:inline-flex ds:items-center ds:justify-center",
397
408
  "ds:min-h-[var(--min-target-size)]",
@@ -414,44 +425,44 @@ const Ge = H(
414
425
  defaultVariants: { state: "idle" }
415
426
  }
416
427
  );
417
- function Xe({ value: e, onChange: r }) {
418
- const { t: a, i18n: o } = V("ui"), p = _e(), i = o.dir() === "rtl", v = R(/* @__PURE__ */ new Map()), h = Z((n) => {
419
- var m;
420
- (m = v.current.get(n)) == null || m.focus();
421
- }, []), c = Z(
422
- (n, m) => {
423
- const f = K.indexOf(m), d = K.length, l = i ? "ArrowLeft" : "ArrowRight", y = i ? "ArrowRight" : "ArrowLeft";
424
- switch (n.key) {
425
- case l:
428
+ function Ye({ value: e, onChange: r }) {
429
+ const { t: a, i18n: i } = B("ui"), p = Se(), c = i.dir() === "rtl", g = C(/* @__PURE__ */ new Map()), h = ee((s) => {
430
+ var f;
431
+ (f = g.current.get(s)) == null || f.focus();
432
+ }, []), d = ee(
433
+ (s, f) => {
434
+ const b = M.indexOf(f), l = M.length, o = c ? "ArrowLeft" : "ArrowRight", y = c ? "ArrowRight" : "ArrowLeft";
435
+ switch (s.key) {
436
+ case o:
426
437
  case "ArrowDown": {
427
- n.preventDefault();
428
- const g = K[(f + 1) % d];
429
- r(g), S("patient_search_when_selected", { when: g }), h(g);
438
+ s.preventDefault();
439
+ const m = M[(b + 1) % l];
440
+ r(m), S("patient_search_when_selected", { when: m }), h(m);
430
441
  break;
431
442
  }
432
443
  case y:
433
444
  case "ArrowUp": {
434
- n.preventDefault();
435
- const g = K[(f - 1 + d) % d];
436
- r(g), S("patient_search_when_selected", { when: g }), h(g);
445
+ s.preventDefault();
446
+ const m = M[(b - 1 + l) % l];
447
+ r(m), S("patient_search_when_selected", { when: m }), h(m);
437
448
  break;
438
449
  }
439
450
  case "Home": {
440
- n.preventDefault();
441
- const g = K[0];
442
- r(g), S("patient_search_when_selected", { when: g }), h(g);
451
+ s.preventDefault();
452
+ const m = M[0];
453
+ r(m), S("patient_search_when_selected", { when: m }), h(m);
443
454
  break;
444
455
  }
445
456
  case "End": {
446
- n.preventDefault();
447
- const g = K[d - 1];
448
- r(g), S("patient_search_when_selected", { when: g }), h(g);
457
+ s.preventDefault();
458
+ const m = M[l - 1];
459
+ r(m), S("patient_search_when_selected", { when: m }), h(m);
449
460
  break;
450
461
  }
451
462
  }
452
463
  },
453
- [h, i, r]
454
- ), s = e ?? "anytime", u = {
464
+ [h, c, r]
465
+ ), n = e ?? "anytime", u = {
455
466
  today: "patientSearch.when.today",
456
467
  tomorrow: "patientSearch.when.tomorrow",
457
468
  this_week: "patientSearch.when.thisWeek",
@@ -464,35 +475,35 @@ function Xe({ value: e, onChange: r }) {
464
475
  "aria-label": a("patientSearch.when.label"),
465
476
  id: p,
466
477
  className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
467
- children: K.map((n) => {
468
- const m = e === n, f = s === n, d = a(u[n]);
478
+ children: M.map((s) => {
479
+ const f = e === s, b = n === s, l = a(u[s]);
469
480
  return /* @__PURE__ */ t(
470
481
  "button",
471
482
  {
472
483
  type: "button",
473
484
  role: "radio",
474
- "aria-checked": m,
475
- "aria-label": d,
476
- tabIndex: f ? 0 : -1,
477
- ref: (l) => {
478
- l ? v.current.set(n, l) : v.current.delete(n);
485
+ "aria-checked": f,
486
+ "aria-label": l,
487
+ tabIndex: b ? 0 : -1,
488
+ ref: (o) => {
489
+ o ? g.current.set(s, o) : g.current.delete(s);
479
490
  },
480
491
  onClick: () => {
481
- r(n), S("patient_search_when_selected", { when: n });
492
+ r(s), S("patient_search_when_selected", { when: s });
482
493
  },
483
- onKeyDown: (l) => c(l, n),
484
- className: Ge({
485
- state: m ? "selected" : "idle"
494
+ onKeyDown: (o) => d(o, s),
495
+ className: Xe({
496
+ state: f ? "selected" : "idle"
486
497
  }),
487
- children: d
498
+ children: l
488
499
  },
489
- n
500
+ s
490
501
  );
491
502
  })
492
503
  }
493
504
  );
494
505
  }
495
- const we = H(
506
+ const xe = $(
496
507
  [
497
508
  "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
498
509
  "ds:min-h-[var(--min-target-size)]",
@@ -522,63 +533,63 @@ const we = H(
522
533
  defaultVariants: { state: "idle" }
523
534
  }
524
535
  );
525
- function Ye({ facets: e, value: r, onChange: a }) {
526
- const { t: o } = V("ui"), p = le(() => r ?? {}, [r]), i = le(
527
- () => Object.values(p).some((s) => s && s.length > 0),
536
+ function Je({ facets: e, value: r, onChange: a }) {
537
+ const { t: i } = B("ui"), p = ue(() => r ?? {}, [r]), c = ue(
538
+ () => Object.values(p).some((n) => n && n.length > 0),
528
539
  [p]
529
- ), v = (s, u) => {
530
- const n = { ...p };
531
- u.length === 0 ? delete n[s] : n[s] = u, a(n), S("patient_search_facet_changed", { key: s, values: u });
532
- }, h = (s) => {
533
- var n;
534
- const u = (((n = p[s]) == null ? void 0 : n.length) ?? 0) > 0;
535
- v(s, u ? [] : ["true"]);
536
- }, c = (s, u) => {
537
- const n = p[s.key] ?? [], m = n.includes(u);
538
- let f;
539
- s.multi ? f = m ? n.filter((d) => d !== u) : [...n, u] : f = m ? [] : [u], v(s.key, f);
540
+ ), g = (n, u) => {
541
+ const s = { ...p };
542
+ u.length === 0 ? delete s[n] : s[n] = u, a(s), S("patient_search_facet_changed", { key: n, values: u });
543
+ }, h = (n) => {
544
+ var s;
545
+ const u = (((s = p[n]) == null ? void 0 : s.length) ?? 0) > 0;
546
+ g(n, u ? [] : ["true"]);
547
+ }, d = (n, u) => {
548
+ const s = p[n.key] ?? [], f = s.includes(u);
549
+ let b;
550
+ n.multi ? b = f ? s.filter((l) => l !== u) : [...s, u] : b = f ? [] : [u], g(n.key, b);
540
551
  };
541
- return /* @__PURE__ */ _(
552
+ return /* @__PURE__ */ x(
542
553
  "div",
543
554
  {
544
555
  role: "group",
545
- "aria-label": o("patientSearch.facets.label"),
556
+ "aria-label": i("patientSearch.facets.label"),
546
557
  className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
547
558
  children: [
548
- e.map((s) => {
549
- const u = s.options.length === 0, n = p[s.key] ?? [], m = n.length > 0;
559
+ e.map((n) => {
560
+ const u = n.options.length === 0, s = p[n.key] ?? [], f = s.length > 0;
550
561
  if (u)
551
562
  return /* @__PURE__ */ t(
552
563
  "button",
553
564
  {
554
565
  type: "button",
555
- "aria-pressed": m,
556
- "aria-label": s.label,
557
- onClick: () => h(s.key),
558
- className: we({
559
- state: m ? "active" : "idle"
566
+ "aria-pressed": f,
567
+ "aria-label": n.label,
568
+ onClick: () => h(n.key),
569
+ className: xe({
570
+ state: f ? "active" : "idle"
560
571
  }),
561
- children: /* @__PURE__ */ t("span", { children: s.label })
572
+ children: /* @__PURE__ */ t("span", { children: n.label })
562
573
  },
563
- s.key
574
+ n.key
564
575
  );
565
- const f = m ? ` (${n.length})` : "";
566
- return /* @__PURE__ */ _(Y.Root, { children: [
567
- /* @__PURE__ */ t(Y.Trigger, { asChild: !0, children: /* @__PURE__ */ _(
576
+ const b = f ? ` (${s.length})` : "";
577
+ return /* @__PURE__ */ x(J.Root, { children: [
578
+ /* @__PURE__ */ t(J.Trigger, { asChild: !0, children: /* @__PURE__ */ x(
568
579
  "button",
569
580
  {
570
581
  type: "button",
571
- "aria-label": `${s.label}${f}`,
572
- className: we({
573
- state: m ? "active" : "idle"
582
+ "aria-label": `${n.label}${b}`,
583
+ className: xe({
584
+ state: f ? "active" : "idle"
574
585
  }),
575
586
  children: [
576
- /* @__PURE__ */ _("span", { children: [
577
- s.label,
578
- f
587
+ /* @__PURE__ */ x("span", { children: [
588
+ n.label,
589
+ b
579
590
  ] }),
580
591
  /* @__PURE__ */ t(
581
- ze,
592
+ Me,
582
593
  {
583
594
  "aria-hidden": "true",
584
595
  className: "ds:size-3.5 ds:shrink-0"
@@ -587,20 +598,20 @@ function Ye({ facets: e, value: r, onChange: a }) {
587
598
  ]
588
599
  }
589
600
  ) }),
590
- /* @__PURE__ */ t(Y.Content, { sideOffset: 8, align: "start", children: s.options.map((d) => /* @__PURE__ */ t(
591
- Y.CheckboxItem,
601
+ /* @__PURE__ */ t(J.Content, { sideOffset: 8, align: "start", children: n.options.map((l) => /* @__PURE__ */ t(
602
+ J.CheckboxItem,
592
603
  {
593
- checked: n.includes(d.value),
594
- onSelect: (l) => {
595
- s.multi && l.preventDefault(), c(s, d.value);
604
+ checked: s.includes(l.value),
605
+ onSelect: (o) => {
606
+ n.multi && o.preventDefault(), d(n, l.value);
596
607
  },
597
- children: d.label
608
+ children: l.label
598
609
  },
599
- d.value
610
+ l.value
600
611
  )) })
601
- ] }, s.key);
612
+ ] }, n.key);
602
613
  }),
603
- i ? /* @__PURE__ */ _(
614
+ c ? /* @__PURE__ */ x(
604
615
  "button",
605
616
  {
606
617
  type: "button",
@@ -617,8 +628,8 @@ function Ye({ facets: e, value: r, onChange: a }) {
617
628
  "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
618
629
  ].join(" "),
619
630
  children: [
620
- /* @__PURE__ */ t(Ne, { "aria-hidden": "true", className: "ds:size-3.5" }),
621
- o("patientSearch.facets.clear")
631
+ /* @__PURE__ */ t(Ce, { "aria-hidden": "true", className: "ds:size-3.5" }),
632
+ i("patientSearch.facets.clear")
622
633
  ]
623
634
  }
624
635
  ) : null
@@ -626,7 +637,7 @@ function Ye({ facets: e, value: r, onChange: a }) {
626
637
  }
627
638
  );
628
639
  }
629
- const xe = ["violet", "purple", "magenta", "blue"], Je = H(
640
+ const _e = ["violet", "purple", "magenta", "blue"], Ze = $(
630
641
  [
631
642
  "ds:relative ds:flex ds:h-full ds:flex-col ds:gap-[var(--spacing-sm)]",
632
643
  "ds:rounded-[var(--radius-lg)] ds:overflow-hidden",
@@ -642,7 +653,7 @@ const xe = ["violet", "purple", "magenta", "blue"], Je = H(
642
653
  "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
643
654
  "ds:no-underline"
644
655
  ].join(" ")
645
- ), Ze = H(
656
+ ), et = $(
646
657
  // `inset-x-0` compiles to logical `inset-inline`; the `inset-inline-0`
647
658
  // spelling is not a Tailwind utility and compiled to nothing.
648
659
  "ds:absolute ds:inset-x-0 ds:top-0 ds:h-[3px] ds:pointer-events-none",
@@ -657,7 +668,7 @@ const xe = ["violet", "purple", "magenta", "blue"], Je = H(
657
668
  },
658
669
  defaultVariants: { accent: "violet" }
659
670
  }
660
- ), et = H(
671
+ ), tt = $(
661
672
  "ds:inline-flex ds:size-9 ds:items-center ds:justify-center ds:rounded-[var(--radius-md)]",
662
673
  {
663
674
  variants: {
@@ -671,13 +682,13 @@ const xe = ["violet", "purple", "magenta", "blue"], Je = H(
671
682
  defaultVariants: { accent: "violet" }
672
683
  }
673
684
  );
674
- function tt(e, r) {
675
- return e && e !== "auto" ? e : xe[r % xe.length];
685
+ function rt(e, r) {
686
+ return e && e !== "auto" ? e : _e[r % _e.length];
676
687
  }
677
- function rt({ cards: e, headingLevel: r }) {
678
- const { t: a } = V("ui"), o = `h${r}`, p = _e();
679
- return e.length === 0 ? /* @__PURE__ */ t("p", { className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:m-0", children: a("patientSearch.discovery.empty") }) : /* @__PURE__ */ _("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
680
- /* @__PURE__ */ t(o, { className: "type-title-card ds:text-[var(--foreground)] ds:m-0", children: a("patientSearch.discovery.heading") }),
688
+ function at({ cards: e, headingLevel: r }) {
689
+ const { t: a } = B("ui"), i = `h${r}`, p = Se();
690
+ return e.length === 0 ? /* @__PURE__ */ t("p", { className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:m-0", children: a("patientSearch.discovery.empty") }) : /* @__PURE__ */ x("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
691
+ /* @__PURE__ */ t(i, { className: "type-title-card ds:text-[var(--foreground)] ds:m-0", children: a("patientSearch.discovery.heading") }),
681
692
  /* @__PURE__ */ t(
682
693
  "ul",
683
694
  {
@@ -686,38 +697,38 @@ function rt({ cards: e, headingLevel: r }) {
686
697
  "ds:md:grid-cols-2 ds:lg:grid-cols-3",
687
698
  "ds:m-0 ds:p-0 ds:list-none"
688
699
  ].join(" "),
689
- children: e.map((i, v) => {
690
- const h = tt(i.accent, v), c = i.description ? `${p}-${i.id}-description` : void 0;
691
- return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ _(
700
+ children: e.map((c, g) => {
701
+ const h = rt(c.accent, g), d = c.description ? `${p}-${c.id}-description` : void 0;
702
+ return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ x(
692
703
  "a",
693
704
  {
694
- href: i.href,
705
+ href: c.href,
695
706
  "data-component": "patient-search-card",
696
- "data-card-id": i.id,
697
- "aria-label": i.label,
698
- "aria-describedby": c,
707
+ "data-card-id": c.id,
708
+ "aria-label": c.label,
709
+ "aria-describedby": d,
699
710
  onClick: () => S("patient_search_discovery_card_clicked", {
700
- cardId: i.id
711
+ cardId: c.id
701
712
  }),
702
- className: Je(),
713
+ className: Ze(),
703
714
  children: [
704
715
  /* @__PURE__ */ t(
705
716
  "span",
706
717
  {
707
718
  "aria-hidden": "true",
708
- className: Ze({ accent: h })
719
+ className: et({ accent: h })
709
720
  }
710
721
  ),
711
- /* @__PURE__ */ _("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
722
+ /* @__PURE__ */ x("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
712
723
  /* @__PURE__ */ t(
713
724
  "span",
714
725
  {
715
726
  "aria-hidden": "true",
716
- className: et({ accent: h }),
717
- children: i.icon ?? /* @__PURE__ */ t(Ke, { className: "ds:size-4", "aria-hidden": "true" })
727
+ className: tt({ accent: h }),
728
+ children: c.icon ?? /* @__PURE__ */ t(ze, { className: "ds:size-4", "aria-hidden": "true" })
718
729
  }
719
730
  ),
720
- i.badge ? (
731
+ c.badge ? (
721
732
  // The badge sits inside a softly-tinted accent bubble
722
733
  // (15% accent + 85% background). The text colour must
723
734
  // contrast with that mix, not with the accent's canonical
@@ -725,27 +736,27 @@ function rt({ cards: e, headingLevel: r }) {
725
736
  // the 100% accent surface and fails AA on the 15% tint.
726
737
  // Use `--foreground` which contrasts with the
727
738
  // mostly-background mix in both light and dark themes.
728
- /* @__PURE__ */ t("span", { className: "type-meta ds:ms-auto ds:inline-flex ds:items-center ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--foreground)] ds:bg-[color-mix(in_srgb,var(--accent)_15%,var(--background))] ds:text-[color:var(--foreground)] ds:font-[var(--font-weight-semibold)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]", children: i.badge })
739
+ /* @__PURE__ */ t("span", { className: "type-meta ds:ms-auto ds:inline-flex ds:items-center ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--foreground)] ds:bg-[color-mix(in_srgb,var(--accent)_15%,var(--background))] ds:text-[color:var(--foreground)] ds:font-[var(--font-weight-semibold)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]", children: c.badge })
729
740
  ) : null
730
741
  ] }),
731
- /* @__PURE__ */ t("span", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]", children: i.label }),
732
- i.description ? /* @__PURE__ */ t(
742
+ /* @__PURE__ */ t("span", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]", children: c.label }),
743
+ c.description ? /* @__PURE__ */ t(
733
744
  "span",
734
745
  {
735
- id: c,
746
+ id: d,
736
747
  className: "type-body-sm ds:text-[color:var(--muted-foreground)]",
737
- children: i.description
748
+ children: c.description
738
749
  }
739
750
  ) : null
740
751
  ]
741
752
  }
742
- ) }, i.id);
753
+ ) }, c.id);
743
754
  })
744
755
  }
745
756
  )
746
757
  ] });
747
758
  }
748
- function at(e) {
759
+ function st(e) {
749
760
  if (e.object || e.place || e.geo || e.when && e.when !== "anytime") return !0;
750
761
  if (e.facets) {
751
762
  for (const r of Object.values(e.facets))
@@ -753,22 +764,22 @@ function at(e) {
753
764
  }
754
765
  return !1;
755
766
  }
756
- function se({
767
+ function ne({
757
768
  value: e,
758
769
  variant: r,
759
770
  submitting: a,
760
- submitLabel: o,
771
+ submitLabel: i,
761
772
  allowEmptySubmit: p,
762
- onSubmit: i
773
+ onSubmit: c
763
774
  }) {
764
- const { t: v } = V("ui"), h = !a && !p && !at(e), c = o ?? v("patientSearch.submit.cta");
775
+ const { t: g } = B("ui"), h = !a && !p && !st(e), d = i ?? g("patientSearch.submit.cta");
765
776
  return /* @__PURE__ */ t(
766
- Fe,
777
+ Ie,
767
778
  {
768
779
  type: "button",
769
780
  intent: "primary",
770
781
  size: "lg",
771
- startIcon: /* @__PURE__ */ t(ke, { "aria-hidden": "true" }),
782
+ startIcon: /* @__PURE__ */ t(Ne, { "aria-hidden": "true" }),
772
783
  loading: a,
773
784
  disabled: h,
774
785
  onClick: () => {
@@ -779,520 +790,530 @@ function se({
779
790
  hasGeo: !!e.geo,
780
791
  when: e.when,
781
792
  facetKeys: e.facets ? Object.keys(e.facets) : []
782
- }), i(e);
793
+ }), c(e);
783
794
  },
784
- children: c
795
+ children: d
785
796
  }
786
797
  );
787
798
  }
788
- function st(e) {
799
+ function nt(e) {
789
800
  const {
790
801
  variant: r,
791
802
  value: a,
792
- onChange: o,
803
+ onChange: i,
793
804
  onSubmit: p,
794
- loadObjects: i,
795
- loadPlaces: v,
805
+ loadObjects: c,
806
+ loadPlaces: g,
796
807
  onObjectSelect: h,
797
- onPlaceSelect: c,
798
- allowTypedPlace: s,
808
+ onPlaceSelect: d,
809
+ allowTypedPlace: n,
799
810
  submitting: u,
800
- submitLabel: n,
801
- allowEmptySubmit: m,
802
- whoRef: f,
803
- whereRef: d,
804
- whoQuery: l,
811
+ submitLabel: s,
812
+ allowEmptySubmit: f,
813
+ whoRef: b,
814
+ whereRef: l,
815
+ whoQuery: o,
805
816
  onWhoQueryChange: y,
806
- whereQuery: g,
807
- onWhereQueryChange: A,
808
- defaultRadiusKm: C,
809
- reverseGeocode: k,
810
- cardLabel: L
817
+ whereQuery: m,
818
+ onWhereQueryChange: j,
819
+ defaultRadiusKm: R,
820
+ reverseGeocode: E,
821
+ geoHint: k,
822
+ cardLabel: W
811
823
  } = e;
812
- return /* @__PURE__ */ t(ee, { variant: "elevated", "aria-label": L, children: /* @__PURE__ */ _("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
813
- /* @__PURE__ */ _("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:md:flex-row ds:md:items-start", children: [
824
+ return /* @__PURE__ */ t(te, { variant: "elevated", "aria-label": W, children: /* @__PURE__ */ x("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
825
+ /* @__PURE__ */ x("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:md:flex-row ds:md:items-start", children: [
814
826
  /* @__PURE__ */ t("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ t(
815
- te,
827
+ re,
816
828
  {
817
829
  value: a,
818
- onChange: o,
819
- loadObjects: i,
830
+ onChange: i,
831
+ loadObjects: c,
820
832
  onObjectSelect: h,
821
- inputRef: f,
822
- query: l,
833
+ inputRef: b,
834
+ query: o,
823
835
  onQueryChange: y
824
836
  }
825
837
  ) }),
826
838
  /* @__PURE__ */ t("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ t(
827
- re,
839
+ ae,
828
840
  {
829
841
  value: a,
830
- onChange: o,
831
- loadPlaces: v,
832
- onPlaceSelect: c,
833
- allowTypedPlace: s,
834
- defaultRadiusKm: C,
835
- reverseGeocode: k,
836
- inputRef: d,
837
- query: g,
838
- onQueryChange: A
842
+ onChange: i,
843
+ loadPlaces: g,
844
+ onPlaceSelect: d,
845
+ allowTypedPlace: n,
846
+ defaultRadiusKm: R,
847
+ reverseGeocode: E,
848
+ geoHint: k,
849
+ inputRef: l,
850
+ query: m,
851
+ onQueryChange: j
839
852
  }
840
853
  ) }),
841
854
  /* @__PURE__ */ t(
842
- se,
855
+ ne,
843
856
  {
844
857
  value: a,
845
858
  variant: r,
846
859
  submitting: u,
847
- submitLabel: n,
848
- allowEmptySubmit: m,
860
+ submitLabel: s,
861
+ allowEmptySubmit: f,
849
862
  onSubmit: p
850
863
  }
851
864
  )
852
865
  ] }),
853
866
  /* @__PURE__ */ t(
854
- ae,
867
+ se,
855
868
  {
856
869
  value: a,
857
- onChange: o,
858
- defaultRadiusKm: C
870
+ onChange: i,
871
+ defaultRadiusKm: R
859
872
  }
860
873
  )
861
874
  ] }) });
862
875
  }
863
- function nt(e) {
876
+ function ot(e) {
864
877
  const {
865
878
  variant: r,
866
879
  value: a,
867
- onChange: o,
880
+ onChange: i,
868
881
  onSubmit: p,
869
- loadObjects: i,
870
- loadPlaces: v,
882
+ loadObjects: c,
883
+ loadPlaces: g,
871
884
  onObjectSelect: h,
872
- onPlaceSelect: c,
873
- allowTypedPlace: s,
885
+ onPlaceSelect: d,
886
+ allowTypedPlace: n,
874
887
  submitting: u,
875
- submitLabel: n,
876
- allowEmptySubmit: m,
877
- whoRef: f,
878
- whereRef: d,
879
- whoQuery: l,
888
+ submitLabel: s,
889
+ allowEmptySubmit: f,
890
+ whoRef: b,
891
+ whereRef: l,
892
+ whoQuery: o,
880
893
  onWhoQueryChange: y,
881
- whereQuery: g,
882
- onWhereQueryChange: A,
883
- defaultRadiusKm: C,
884
- reverseGeocode: k,
885
- cardLabel: L
894
+ whereQuery: m,
895
+ onWhereQueryChange: j,
896
+ defaultRadiusKm: R,
897
+ reverseGeocode: E,
898
+ geoHint: k,
899
+ cardLabel: W
886
900
  } = e;
887
- return /* @__PURE__ */ t(ee, { variant: "elevated", "aria-label": L, children: /* @__PURE__ */ _("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
888
- /* @__PURE__ */ _("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:md:flex-row ds:md:items-start", children: [
901
+ return /* @__PURE__ */ t(te, { variant: "elevated", "aria-label": W, children: /* @__PURE__ */ x("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
902
+ /* @__PURE__ */ x("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:md:flex-row ds:md:items-start", children: [
889
903
  /* @__PURE__ */ t("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ t(
890
- te,
904
+ re,
891
905
  {
892
906
  value: a,
893
- onChange: o,
894
- loadObjects: i,
907
+ onChange: i,
908
+ loadObjects: c,
895
909
  onObjectSelect: h,
896
- inputRef: f,
897
- query: l,
910
+ inputRef: b,
911
+ query: o,
898
912
  onQueryChange: y
899
913
  }
900
914
  ) }),
901
915
  /* @__PURE__ */ t("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ t(
902
- re,
916
+ ae,
903
917
  {
904
918
  value: a,
905
- onChange: o,
906
- loadPlaces: v,
907
- onPlaceSelect: c,
908
- allowTypedPlace: s,
909
- defaultRadiusKm: C,
910
- reverseGeocode: k,
911
- inputRef: d,
912
- query: g,
913
- onQueryChange: A
919
+ onChange: i,
920
+ loadPlaces: g,
921
+ onPlaceSelect: d,
922
+ allowTypedPlace: n,
923
+ defaultRadiusKm: R,
924
+ reverseGeocode: E,
925
+ geoHint: k,
926
+ inputRef: l,
927
+ query: m,
928
+ onQueryChange: j
914
929
  }
915
930
  ) }),
916
931
  /* @__PURE__ */ t(
917
- se,
932
+ ne,
918
933
  {
919
934
  value: a,
920
935
  variant: r,
921
936
  submitting: u,
922
- submitLabel: n,
923
- allowEmptySubmit: m,
937
+ submitLabel: s,
938
+ allowEmptySubmit: f,
924
939
  onSubmit: p
925
940
  }
926
941
  )
927
942
  ] }),
928
943
  /* @__PURE__ */ t(
929
- ae,
944
+ se,
930
945
  {
931
946
  value: a,
932
- onChange: o,
933
- defaultRadiusKm: C
947
+ onChange: i,
948
+ defaultRadiusKm: R
934
949
  }
935
950
  ),
936
951
  /* @__PURE__ */ t(
937
- Xe,
952
+ Ye,
938
953
  {
939
954
  value: a.when,
940
- onChange: (W) => o({ ...a, when: W })
955
+ onChange: (P) => i({ ...a, when: P })
941
956
  }
942
957
  )
943
958
  ] }) });
944
959
  }
945
- function ot(e) {
960
+ function it(e) {
946
961
  const {
947
962
  variant: r,
948
963
  value: a,
949
- onChange: o,
964
+ onChange: i,
950
965
  onSubmit: p,
951
- loadObjects: i,
952
- loadPlaces: v,
966
+ loadObjects: c,
967
+ loadPlaces: g,
953
968
  onObjectSelect: h,
954
- onPlaceSelect: c,
955
- allowTypedPlace: s,
969
+ onPlaceSelect: d,
970
+ allowTypedPlace: n,
956
971
  facets: u,
957
- submitting: n,
958
- submitLabel: m,
959
- allowEmptySubmit: f,
960
- whoRef: d,
961
- whereRef: l,
972
+ submitting: s,
973
+ submitLabel: f,
974
+ allowEmptySubmit: b,
975
+ whoRef: l,
976
+ whereRef: o,
962
977
  whoQuery: y,
963
- onWhoQueryChange: g,
964
- whereQuery: A,
965
- onWhereQueryChange: C,
966
- defaultRadiusKm: k,
967
- reverseGeocode: L,
968
- cardLabel: W
978
+ onWhoQueryChange: m,
979
+ whereQuery: j,
980
+ onWhereQueryChange: R,
981
+ defaultRadiusKm: E,
982
+ reverseGeocode: k,
983
+ geoHint: W,
984
+ cardLabel: P
969
985
  } = e;
970
- return /* @__PURE__ */ t(ee, { variant: "elevated", "aria-label": W, children: /* @__PURE__ */ _("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
971
- /* @__PURE__ */ _("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:md:flex-row ds:md:items-start", children: [
986
+ return /* @__PURE__ */ t(te, { variant: "elevated", "aria-label": P, children: /* @__PURE__ */ x("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
987
+ /* @__PURE__ */ x("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:md:flex-row ds:md:items-start", children: [
972
988
  /* @__PURE__ */ t("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ t(
973
- te,
989
+ re,
974
990
  {
975
991
  value: a,
976
- onChange: o,
977
- loadObjects: i,
992
+ onChange: i,
993
+ loadObjects: c,
978
994
  onObjectSelect: h,
979
- inputRef: d,
995
+ inputRef: l,
980
996
  query: y,
981
- onQueryChange: g
997
+ onQueryChange: m
982
998
  }
983
999
  ) }),
984
1000
  /* @__PURE__ */ t("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ t(
985
- re,
1001
+ ae,
986
1002
  {
987
1003
  value: a,
988
- onChange: o,
989
- loadPlaces: v,
990
- onPlaceSelect: c,
991
- allowTypedPlace: s,
992
- defaultRadiusKm: k,
993
- reverseGeocode: L,
994
- inputRef: l,
995
- query: A,
996
- onQueryChange: C
1004
+ onChange: i,
1005
+ loadPlaces: g,
1006
+ onPlaceSelect: d,
1007
+ allowTypedPlace: n,
1008
+ defaultRadiusKm: E,
1009
+ reverseGeocode: k,
1010
+ geoHint: W,
1011
+ inputRef: o,
1012
+ query: j,
1013
+ onQueryChange: R
997
1014
  }
998
1015
  ) }),
999
1016
  /* @__PURE__ */ t(
1000
- se,
1017
+ ne,
1001
1018
  {
1002
1019
  value: a,
1003
1020
  variant: r,
1004
- submitting: n,
1005
- submitLabel: m,
1006
- allowEmptySubmit: f,
1021
+ submitting: s,
1022
+ submitLabel: f,
1023
+ allowEmptySubmit: b,
1007
1024
  onSubmit: p
1008
1025
  }
1009
1026
  )
1010
1027
  ] }),
1011
1028
  /* @__PURE__ */ t(
1012
- ae,
1029
+ se,
1013
1030
  {
1014
1031
  value: a,
1015
- onChange: o,
1016
- defaultRadiusKm: k
1032
+ onChange: i,
1033
+ defaultRadiusKm: E
1017
1034
  }
1018
1035
  ),
1019
1036
  u && u.length > 0 ? /* @__PURE__ */ t(
1020
- Ye,
1037
+ Je,
1021
1038
  {
1022
1039
  facets: u,
1023
1040
  value: a.facets,
1024
- onChange: (z) => o({ ...a, facets: z })
1041
+ onChange: (V) => i({ ...a, facets: V })
1025
1042
  }
1026
1043
  ) : null
1027
1044
  ] }) });
1028
1045
  }
1029
- function it(e) {
1046
+ function ct(e) {
1030
1047
  const {
1031
1048
  variant: r,
1032
1049
  value: a,
1033
- onChange: o,
1050
+ onChange: i,
1034
1051
  onSubmit: p,
1035
- loadObjects: i,
1036
- loadPlaces: v,
1052
+ loadObjects: c,
1053
+ loadPlaces: g,
1037
1054
  onObjectSelect: h,
1038
- onPlaceSelect: c,
1039
- allowTypedPlace: s,
1055
+ onPlaceSelect: d,
1056
+ allowTypedPlace: n,
1040
1057
  discoveryCards: u,
1041
- discoveryHeadingLevel: n,
1042
- submitting: m,
1043
- submitLabel: f,
1044
- allowEmptySubmit: d,
1045
- whoRef: l,
1058
+ discoveryHeadingLevel: s,
1059
+ submitting: f,
1060
+ submitLabel: b,
1061
+ allowEmptySubmit: l,
1062
+ whoRef: o,
1046
1063
  whereRef: y,
1047
- whoQuery: g,
1048
- onWhoQueryChange: A,
1049
- whereQuery: C,
1050
- onWhereQueryChange: k,
1051
- defaultRadiusKm: L,
1064
+ whoQuery: m,
1065
+ onWhoQueryChange: j,
1066
+ whereQuery: R,
1067
+ onWhereQueryChange: E,
1068
+ defaultRadiusKm: k,
1052
1069
  reverseGeocode: W,
1053
- cardLabel: z
1070
+ geoHint: P,
1071
+ cardLabel: V
1054
1072
  } = e;
1055
- return /* @__PURE__ */ _("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", children: [
1056
- /* @__PURE__ */ _(ee, { variant: "elevated", "aria-label": z, children: [
1057
- /* @__PURE__ */ _("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)] ds:md:flex-row ds:md:items-stretch", children: [
1073
+ return /* @__PURE__ */ x("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", children: [
1074
+ /* @__PURE__ */ x(te, { variant: "elevated", "aria-label": V, children: [
1075
+ /* @__PURE__ */ x("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)] ds:md:flex-row ds:md:items-stretch", children: [
1058
1076
  /* @__PURE__ */ t("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ t(
1059
- te,
1077
+ re,
1060
1078
  {
1061
1079
  value: a,
1062
- onChange: o,
1063
- loadObjects: i,
1080
+ onChange: i,
1081
+ loadObjects: c,
1064
1082
  onObjectSelect: h,
1065
- inputRef: l,
1066
- query: g,
1067
- onQueryChange: A
1083
+ inputRef: o,
1084
+ query: m,
1085
+ onQueryChange: j
1068
1086
  }
1069
1087
  ) }),
1070
1088
  /* @__PURE__ */ t("div", { className: "ds:flex-1 ds:min-w-0", children: /* @__PURE__ */ t(
1071
- re,
1089
+ ae,
1072
1090
  {
1073
1091
  value: a,
1074
- onChange: o,
1075
- loadPlaces: v,
1076
- onPlaceSelect: c,
1077
- allowTypedPlace: s,
1078
- defaultRadiusKm: L,
1092
+ onChange: i,
1093
+ loadPlaces: g,
1094
+ onPlaceSelect: d,
1095
+ allowTypedPlace: n,
1096
+ defaultRadiusKm: k,
1079
1097
  reverseGeocode: W,
1098
+ geoHint: P,
1080
1099
  inputRef: y,
1081
- query: C,
1082
- onQueryChange: k
1100
+ query: R,
1101
+ onQueryChange: E
1083
1102
  }
1084
1103
  ) }),
1085
1104
  /* @__PURE__ */ t(
1086
- se,
1105
+ ne,
1087
1106
  {
1088
1107
  value: a,
1089
1108
  variant: r,
1090
- submitting: m,
1091
- submitLabel: f,
1092
- allowEmptySubmit: d,
1109
+ submitting: f,
1110
+ submitLabel: b,
1111
+ allowEmptySubmit: l,
1093
1112
  onSubmit: p
1094
1113
  }
1095
1114
  )
1096
1115
  ] }),
1097
1116
  /* @__PURE__ */ t(
1098
- ae,
1117
+ se,
1099
1118
  {
1100
1119
  value: a,
1101
- onChange: o,
1102
- defaultRadiusKm: L
1120
+ onChange: i,
1121
+ defaultRadiusKm: k
1103
1122
  }
1104
1123
  )
1105
1124
  ] }),
1106
1125
  /* @__PURE__ */ t(
1107
- rt,
1126
+ at,
1108
1127
  {
1109
1128
  cards: u,
1110
- headingLevel: n
1129
+ headingLevel: s
1111
1130
  }
1112
1131
  )
1113
1132
  ] });
1114
1133
  }
1115
- const ct = Te(function({
1134
+ const dt = Ae(function({
1116
1135
  variant: r,
1117
1136
  loadObjects: a,
1118
- loadPlaces: o,
1137
+ loadPlaces: i,
1119
1138
  onObjectSelect: p,
1120
- onPlaceSelect: i,
1121
- allowTypedPlace: v = !1,
1139
+ onPlaceSelect: c,
1140
+ allowTypedPlace: g = !1,
1122
1141
  facets: h,
1123
- defaultRadiusKm: c = ue,
1124
- reverseGeocode: s,
1125
- discoveryCards: u,
1126
- discoveryHeadingLevel: n = 3,
1127
- countryCode: m,
1128
- value: f,
1129
- onChange: d,
1130
- onSubmit: l,
1131
- submitting: y,
1132
- submitLabel: g,
1133
- allowEmptySubmit: A,
1134
- "aria-label": C,
1142
+ defaultRadiusKm: d = fe,
1143
+ reverseGeocode: n,
1144
+ geoHint: u,
1145
+ discoveryCards: s,
1146
+ discoveryHeadingLevel: f = 3,
1147
+ countryCode: b,
1148
+ value: l,
1149
+ onChange: o,
1150
+ onSubmit: y,
1151
+ submitting: m,
1152
+ submitLabel: j,
1153
+ allowEmptySubmit: R,
1154
+ "aria-label": E,
1135
1155
  id: k,
1136
- className: L,
1137
- ...W
1138
- }, z) {
1139
- var ge, ve;
1140
- const { t: ne } = V("ui"), M = R(null), I = R(null), O = R(null), [w, x] = J(((ge = f.object) == null ? void 0 : ge.label) ?? ""), [j, Q] = J(
1141
- ((ve = f.place) == null ? void 0 : ve.label) ?? ""
1142
- ), N = R(null), U = R(
1156
+ className: W,
1157
+ ...P
1158
+ }, V) {
1159
+ var ve, be;
1160
+ const { t: oe } = B("ui"), q = C(null), O = C(null), D = C(null), [w, _] = Z(((ve = l.object) == null ? void 0 : ve.label) ?? ""), [T, F] = Z(
1161
+ ((be = l.place) == null ? void 0 : be.label) ?? ""
1162
+ ), N = C(null), G = C(
1143
1163
  { who: { current: !1 }, where: { current: !1 } }
1144
- ), G = (b) => {
1145
- const E = b === I.current ? "who" : b === O.current ? "where" : null;
1146
- if (!E) {
1164
+ ), X = (v) => {
1165
+ const L = v === O.current ? "who" : v === D.current ? "where" : null;
1166
+ if (!L) {
1147
1167
  N.current = null;
1148
1168
  return;
1149
1169
  }
1150
- const P = b;
1170
+ const Q = v;
1151
1171
  N.current = {
1152
- field: E,
1153
- start: P.selectionStart,
1154
- end: P.selectionEnd
1172
+ field: L,
1173
+ start: Q.selectionStart,
1174
+ end: Q.selectionEnd
1155
1175
  };
1156
- }, Le = (b, E) => {
1157
- var P;
1158
- E && ((P = M.current) != null && P.contains(E)) || setTimeout(() => {
1159
- b.isConnected && (N.current = null);
1176
+ }, je = (v, L) => {
1177
+ var Q;
1178
+ L && ((Q = q.current) != null && Q.contains(L)) || setTimeout(() => {
1179
+ v.isConnected && (N.current = null);
1160
1180
  }, 0);
1161
- }, oe = R(null), fe = (b, E, P) => {
1162
- const F = (b === "who" ? I : O).current;
1163
- if (!F) return;
1164
- F.focus();
1165
- const B = F.value.length;
1166
- F.setSelectionRange(
1167
- Math.min(E ?? B, B),
1168
- Math.min(P ?? B, B)
1181
+ }, ie = C(null), he = (v, L, Q) => {
1182
+ const I = (v === "who" ? O : D).current;
1183
+ if (!I) return;
1184
+ I.focus();
1185
+ const K = I.value.length;
1186
+ I.setSelectionRange(
1187
+ Math.min(L ?? K, K),
1188
+ Math.min(Q ?? K, K)
1169
1189
  );
1170
1190
  };
1171
- q(() => {
1172
- const b = M.current;
1173
- if (!b) return;
1174
- const E = (T) => {
1175
- const D = oe.current;
1176
- if (D && performance.now() < D.until && (T.target === I.current && D.field === "where" || T.target === O.current && D.field === "who")) {
1177
- fe(D.field, D.start, D.end);
1191
+ H(() => {
1192
+ const v = q.current;
1193
+ if (!v) return;
1194
+ const L = (A) => {
1195
+ const z = ie.current;
1196
+ if (z && performance.now() < z.until && (A.target === O.current && z.field === "where" || A.target === D.current && z.field === "who")) {
1197
+ he(z.field, z.start, z.end);
1178
1198
  return;
1179
1199
  }
1180
- G(T.target);
1181
- }, P = (T) => G(T.target), F = () => {
1182
- oe.current = null;
1183
- }, B = (T) => Le(T.target, T.relatedTarget), be = ["select", "keyup", "input"];
1184
- return b.addEventListener("focusin", E), be.forEach((T) => b.addEventListener(T, P)), b.addEventListener("pointerdown", F), b.addEventListener("keydown", F), b.addEventListener("focusout", B), () => {
1185
- b.removeEventListener("focusin", E), be.forEach((T) => b.removeEventListener(T, P)), b.removeEventListener("pointerdown", F), b.removeEventListener("keydown", F), b.removeEventListener("focusout", B);
1200
+ X(A.target);
1201
+ }, Q = (A) => X(A.target), I = () => {
1202
+ ie.current = null;
1203
+ }, K = (A) => je(A.target, A.relatedTarget), ye = ["select", "keyup", "input"];
1204
+ return v.addEventListener("focusin", L), ye.forEach((A) => v.addEventListener(A, Q)), v.addEventListener("pointerdown", I), v.addEventListener("keydown", I), v.addEventListener("focusout", K), () => {
1205
+ v.removeEventListener("focusin", L), ye.forEach((A) => v.removeEventListener(A, Q)), v.removeEventListener("pointerdown", I), v.removeEventListener("keydown", I), v.removeEventListener("focusout", K);
1186
1206
  };
1187
1207
  }, []);
1188
- const he = R(r);
1189
- Ae(() => {
1190
- if (he.current === r) return;
1191
- he.current = r;
1192
- const b = N.current;
1193
- if (!b) return;
1194
- const E = document.activeElement;
1195
- E && E !== document.body || (oe.current = { ...b, until: performance.now() + 500 }, fe(b.field, b.start, b.end));
1208
+ const pe = C(r);
1209
+ We(() => {
1210
+ if (pe.current === r) return;
1211
+ pe.current = r;
1212
+ const v = N.current;
1213
+ if (!v) return;
1214
+ const L = document.activeElement;
1215
+ L && L !== document.body || (ie.current = { ...v, until: performance.now() + 500 }, he(v.field, v.start, v.end));
1196
1216
  }, [r]);
1197
- const ie = R(!1);
1198
- q(() => {
1199
- if (!ie.current && r === "who-where-when") {
1200
- if (f.when !== void 0) {
1201
- ie.current = !0;
1217
+ const ce = C(!1);
1218
+ H(() => {
1219
+ if (!ce.current && r === "who-where-when") {
1220
+ if (l.when !== void 0) {
1221
+ ce.current = !0;
1202
1222
  return;
1203
1223
  }
1204
- ie.current = !0, d({ ...f, when: "anytime" });
1224
+ ce.current = !0, o({ ...l, when: "anytime" });
1205
1225
  }
1206
1226
  }, [r]);
1207
- const ce = R(!1);
1208
- q(() => {
1209
- if (!ce.current && r === "faceted") {
1210
- if (f.facets !== void 0) {
1211
- ce.current = !0;
1227
+ const de = C(!1);
1228
+ H(() => {
1229
+ if (!de.current && r === "faceted") {
1230
+ if (l.facets !== void 0) {
1231
+ de.current = !0;
1212
1232
  return;
1213
1233
  }
1214
- ce.current = !0, d({ ...f, facets: {} });
1234
+ de.current = !0, o({ ...l, facets: {} });
1215
1235
  }
1216
1236
  }, [r]);
1217
- const pe = R(null);
1218
- q(() => {
1219
- pe.current !== r && (pe.current = r, S("patient_search_variant_exposed", { variant: r, country: m }));
1220
- }, [r, m]);
1221
- const de = le(
1237
+ const me = C(null);
1238
+ H(() => {
1239
+ me.current !== r && (me.current = r, S("patient_search_variant_exposed", { variant: r, country: b }));
1240
+ }, [r, b]);
1241
+ const le = ue(
1222
1242
  () => ({
1223
1243
  getVariant: () => r,
1224
1244
  reset: () => {
1225
- d({});
1245
+ o({});
1226
1246
  },
1227
1247
  focusPrimary: () => {
1228
1248
  requestAnimationFrame(() => {
1229
- var b;
1230
- (b = I.current) == null || b.focus();
1249
+ var v;
1250
+ (v = O.current) == null || v.focus();
1231
1251
  });
1232
1252
  }
1233
1253
  }),
1234
- [r, d]
1254
+ [r, o]
1235
1255
  );
1236
- We(z, () => de, [de]), Oe(He, de, k);
1237
- const me = C ?? ne("patientSearch.regionLabel"), X = {
1256
+ Pe(V, () => le, [le]), Be($e, le, k);
1257
+ const ge = E ?? oe("patientSearch.regionLabel"), Y = {
1238
1258
  variant: r,
1239
- value: f,
1240
- onChange: d,
1241
- onSubmit: l,
1259
+ value: l,
1260
+ onChange: o,
1261
+ onSubmit: y,
1242
1262
  loadObjects: a,
1243
- loadPlaces: o,
1263
+ loadPlaces: i,
1244
1264
  onObjectSelect: p,
1245
- onPlaceSelect: i,
1246
- allowTypedPlace: v,
1265
+ onPlaceSelect: c,
1266
+ allowTypedPlace: g,
1247
1267
  facets: h,
1248
- defaultRadiusKm: c,
1249
- reverseGeocode: s,
1250
- discoveryCards: u ?? [],
1251
- discoveryHeadingLevel: n,
1252
- submitting: y,
1253
- submitLabel: g,
1254
- allowEmptySubmit: A,
1255
- whoRef: I,
1256
- whereRef: O,
1268
+ defaultRadiusKm: d,
1269
+ reverseGeocode: n,
1270
+ geoHint: u,
1271
+ discoveryCards: s ?? [],
1272
+ discoveryHeadingLevel: f,
1273
+ submitting: m,
1274
+ submitLabel: j,
1275
+ allowEmptySubmit: R,
1276
+ whoRef: O,
1277
+ whereRef: D,
1257
1278
  whoQuery: w,
1258
- onWhoQueryChange: x,
1259
- whereQuery: j,
1260
- onWhereQueryChange: Q,
1261
- cardLabel: me
1262
- }, je = (() => {
1279
+ onWhoQueryChange: _,
1280
+ whereQuery: T,
1281
+ onWhereQueryChange: F,
1282
+ cardLabel: ge
1283
+ }, Te = (() => {
1263
1284
  switch (r) {
1264
1285
  case "who-where":
1265
- return /* @__PURE__ */ t(st, { ...X });
1286
+ return /* @__PURE__ */ t(nt, { ...Y });
1266
1287
  case "who-where-when":
1267
- return /* @__PURE__ */ t(nt, { ...X });
1288
+ return /* @__PURE__ */ t(ot, { ...Y });
1268
1289
  case "faceted":
1269
- return /* @__PURE__ */ t(ot, { ...X });
1290
+ return /* @__PURE__ */ t(it, { ...Y });
1270
1291
  case "discovery":
1271
- return /* @__PURE__ */ t(it, { ...X });
1292
+ return /* @__PURE__ */ t(ct, { ...Y });
1272
1293
  /* c8 ignore next 2 */
1273
1294
  default:
1274
1295
  return null;
1275
1296
  }
1276
1297
  })();
1277
- return /* @__PURE__ */ t(Re.Provider, { value: U.current, children: /* @__PURE__ */ t(
1298
+ return /* @__PURE__ */ t(Ee.Provider, { value: G.current, children: /* @__PURE__ */ t(
1278
1299
  "div",
1279
1300
  {
1280
- ref: M,
1301
+ ref: q,
1281
1302
  role: "region",
1282
- "aria-label": me,
1303
+ "aria-label": ge,
1283
1304
  id: k,
1284
1305
  "data-component": "patient-search",
1285
1306
  "data-component-id": k,
1286
1307
  "data-variant": r,
1287
- className: Ue({ variant: r, className: L }),
1288
- ...W,
1289
- children: je
1308
+ className: Ge({ variant: r, className: W }),
1309
+ ...P,
1310
+ children: Te
1290
1311
  }
1291
1312
  ) });
1292
1313
  });
1293
- ct.displayName = "PatientSearch";
1314
+ dt.displayName = "PatientSearch";
1294
1315
  export {
1295
- ct as P,
1296
- He as p
1316
+ dt as P,
1317
+ $e as p
1297
1318
  };
1298
- //# sourceMappingURL=patient-search-DaZ9NzrL.js.map
1319
+ //# sourceMappingURL=patient-search-CxuqVUTB.js.map