@alfadocs/ui-kit-debug 0.37.0 → 0.39.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 (497) hide show
  1. package/dist/_chunks/Alfadocs_Logo_Mark-7o3L3WBI.js +56 -0
  2. package/dist/_chunks/Alfadocs_Logo_Mark-7o3L3WBI.js.map +1 -0
  3. package/dist/_chunks/{accordion-bSU21uTV.js → accordion-9lJSMMsZ.js} +6 -6
  4. package/dist/_chunks/accordion-9lJSMMsZ.js.map +1 -0
  5. package/dist/_chunks/{agenda-tray-By_asPN9.js → agenda-tray-Dyj9ChHC.js} +22 -21
  6. package/dist/_chunks/agenda-tray-Dyj9ChHC.js.map +1 -0
  7. package/dist/_chunks/{alia-sidebar-BEoMl6UL.js → alia-sidebar-DXsYPinm.js} +2 -2
  8. package/dist/_chunks/{alia-sidebar-BEoMl6UL.js.map → alia-sidebar-DXsYPinm.js.map} +1 -1
  9. package/dist/_chunks/{ar-D1RwVZFj.js → ar-Cn_NxqkN.js} +2 -2
  10. package/dist/_chunks/{ar-D1RwVZFj.js.map → ar-Cn_NxqkN.js.map} +1 -1
  11. package/dist/_chunks/bmi-BxD-tFzU.js +32 -0
  12. package/dist/_chunks/bmi-BxD-tFzU.js.map +1 -0
  13. package/dist/_chunks/bmi-calculator-DnEr513I.js +213 -0
  14. package/dist/_chunks/bmi-calculator-DnEr513I.js.map +1 -0
  15. package/dist/_chunks/{booking-DqXsd1Mv.js → booking-4mCw3Mpl.js} +5 -5
  16. package/dist/_chunks/{booking-DqXsd1Mv.js.map → booking-4mCw3Mpl.js.map} +1 -1
  17. package/dist/_chunks/calculator-dialog-B74fqpFZ.js +40 -0
  18. package/dist/_chunks/calculator-dialog-B74fqpFZ.js.map +1 -0
  19. package/dist/_chunks/{chart-DnHvmiDX.js → chart-Cbt0_sKv.js} +46 -37
  20. package/dist/_chunks/chart-Cbt0_sKv.js.map +1 -0
  21. package/dist/_chunks/{chat-message-D53_fH2w.js → chat-message-ASgGtj-L.js} +30 -39
  22. package/dist/_chunks/chat-message-ASgGtj-L.js.map +1 -0
  23. package/dist/_chunks/{collapsible-CERONory.js → collapsible-X3oaLPU3.js} +5 -5
  24. package/dist/_chunks/collapsible-X3oaLPU3.js.map +1 -0
  25. package/dist/_chunks/{contact-profile-card-BA6fgS45.js → contact-profile-card-DHyuAPXM.js} +14 -13
  26. package/dist/_chunks/{contact-profile-card-BA6fgS45.js.map → contact-profile-card-DHyuAPXM.js.map} +1 -1
  27. package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +185 -0
  28. package/dist/_chunks/cycle-calculator-B5Uj9QeT.js.map +1 -0
  29. package/dist/_chunks/{date-picker-CXFpu-qY.js → date-picker-CvQfs6Xh.js} +2 -2
  30. package/dist/_chunks/{date-picker-CXFpu-qY.js.map → date-picker-CvQfs6Xh.js.map} +1 -1
  31. package/dist/_chunks/{date-range-picker-I-q5rifj.js → date-range-picker-U9fn1g9d.js} +3 -3
  32. package/dist/_chunks/{date-range-picker-I-q5rifj.js.map → date-range-picker-U9fn1g9d.js.map} +1 -1
  33. package/dist/_chunks/{date-time-picker-CqpGPlcH.js → date-time-picker-Cva0ZCWw.js} +2 -2
  34. package/dist/_chunks/{date-time-picker-CqpGPlcH.js.map → date-time-picker-Cva0ZCWw.js.map} +1 -1
  35. package/dist/_chunks/{de-HTQ4b4-J.js → de-BMM2H7Bs.js} +2 -2
  36. package/dist/_chunks/{de-HTQ4b4-J.js.map → de-BMM2H7Bs.js.map} +1 -1
  37. package/dist/_chunks/dependent-selector-CRWgieHm.js +324 -0
  38. package/dist/_chunks/dependent-selector-CRWgieHm.js.map +1 -0
  39. package/dist/_chunks/document-scanner-CqS_klIr.js +703 -0
  40. package/dist/_chunks/document-scanner-CqS_klIr.js.map +1 -0
  41. package/dist/_chunks/due-date-calculator-CUspKSTw.js +171 -0
  42. package/dist/_chunks/due-date-calculator-CUspKSTw.js.map +1 -0
  43. package/dist/_chunks/{editable-currency-cell-renderer-DnjwZNZP.js → editable-currency-cell-renderer-DgkCIIcO.js} +3 -3
  44. package/dist/_chunks/{editable-currency-cell-renderer-DnjwZNZP.js.map → editable-currency-cell-renderer-DgkCIIcO.js.map} +1 -1
  45. package/dist/_chunks/{el-Dr1pjuDq.js → el-BYPonAaK.js} +2 -2
  46. package/dist/_chunks/{el-Dr1pjuDq.js.map → el-BYPonAaK.js.map} +1 -1
  47. package/dist/_chunks/{es-CvyTjLS0.js → es-CMkVCQ4F.js} +2 -2
  48. package/dist/_chunks/{es-CvyTjLS0.js.map → es-CMkVCQ4F.js.map} +1 -1
  49. package/dist/_chunks/{file-upload-CdozCPct.js → file-upload-BosbPDb1.js} +3 -2
  50. package/dist/_chunks/file-upload-BosbPDb1.js.map +1 -0
  51. package/dist/_chunks/fiscal-code-input-BZ0FxwUl.js +540 -0
  52. package/dist/_chunks/fiscal-code-input-BZ0FxwUl.js.map +1 -0
  53. package/dist/_chunks/{fr-CS7aqaFR.js → fr-BcuWxqft.js} +2 -2
  54. package/dist/_chunks/{fr-CS7aqaFR.js.map → fr-BcuWxqft.js.map} +1 -1
  55. package/dist/_chunks/{freemium-paywall-D1N02Oam.js → freemium-paywall-BAk3a6er.js} +7 -7
  56. package/dist/_chunks/{freemium-paywall-D1N02Oam.js.map → freemium-paywall-BAk3a6er.js.map} +1 -1
  57. package/dist/_chunks/gestation-BXEgDGmP.js +50 -0
  58. package/dist/_chunks/gestation-BXEgDGmP.js.map +1 -0
  59. package/dist/_chunks/gestational-age-calculator-CsQ05qDy.js +165 -0
  60. package/dist/_chunks/gestational-age-calculator-CsQ05qDy.js.map +1 -0
  61. package/dist/_chunks/header-settings-CBLwUK6t.js +244 -0
  62. package/dist/_chunks/header-settings-CBLwUK6t.js.map +1 -0
  63. package/dist/_chunks/heart-C0faivFf.js +20 -0
  64. package/dist/_chunks/heart-C0faivFf.js.map +1 -0
  65. package/dist/_chunks/{hi-3uy8KpsH.js → hi-wkq_rQAh.js} +2 -2
  66. package/dist/_chunks/{hi-3uy8KpsH.js.map → hi-wkq_rQAh.js.map} +1 -1
  67. package/dist/_chunks/image-C6RM5hfF.js +16 -0
  68. package/dist/_chunks/image-C6RM5hfF.js.map +1 -0
  69. package/dist/_chunks/insert-result-yJ0QavoN.js +133 -0
  70. package/dist/_chunks/insert-result-yJ0QavoN.js.map +1 -0
  71. package/dist/_chunks/{isSameWeek-DRpMibi9.js → isSameWeek-Bim5ftRd.js} +2 -2
  72. package/dist/_chunks/{isSameWeek-DRpMibi9.js.map → isSameWeek-Bim5ftRd.js.map} +1 -1
  73. package/dist/_chunks/{it-B_RF5VSw.js → it-GiQrQ9p4.js} +3 -3
  74. package/dist/_chunks/{it-B_RF5VSw.js.map → it-GiQrQ9p4.js.map} +1 -1
  75. package/dist/_chunks/{ja-C1mEYy35.js → ja-qfYg3Rua.js} +2 -2
  76. package/dist/_chunks/{ja-C1mEYy35.js.map → ja-qfYg3Rua.js.map} +1 -1
  77. package/dist/_chunks/{logo-_Z-jLq80.js → logo-yituK7sE.js} +42 -91
  78. package/dist/_chunks/logo-yituK7sE.js.map +1 -0
  79. package/dist/_chunks/{map-view-vD5pvWs9.js → map-view-qJLybrmN.js} +2 -2
  80. package/dist/_chunks/{map-view-vD5pvWs9.js.map → map-view-qJLybrmN.js.map} +1 -1
  81. package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +296 -0
  82. package/dist/_chunks/marketplace-app-shell-BlxVizU4.js.map +1 -0
  83. package/dist/_chunks/{message-card-BbRhZkDI.js → message-card-DSPw5ghw.js} +20 -19
  84. package/dist/_chunks/message-card-DSPw5ghw.js.map +1 -0
  85. package/dist/_chunks/{message-tray-B762TKuv.js → message-tray-hSQff9u4.js} +3 -3
  86. package/dist/_chunks/message-tray-hSQff9u4.js.map +1 -0
  87. package/dist/_chunks/{nl-Dl7lO2t3.js → nl-xOogO4sZ.js} +2 -2
  88. package/dist/_chunks/{nl-Dl7lO2t3.js.map → nl-xOogO4sZ.js.map} +1 -1
  89. package/dist/_chunks/{notification-card-DMdO4g54.js → notification-card-CObnGdJu.js} +22 -21
  90. package/dist/_chunks/notification-card-CObnGdJu.js.map +1 -0
  91. package/dist/_chunks/{notification-tray-Dl3FTleW.js → notification-tray-BWHDIjgd.js} +2 -2
  92. package/dist/_chunks/{notification-tray-Dl3FTleW.js.map → notification-tray-BWHDIjgd.js.map} +1 -1
  93. package/dist/_chunks/{otp-input-CDTWT5EK.js → otp-input-CMphfBxZ.js} +70 -71
  94. package/dist/_chunks/otp-input-CMphfBxZ.js.map +1 -0
  95. package/dist/_chunks/{patient-shell-CDvMw_Nk.js → patient-shell-DF81lALv.js} +37 -36
  96. package/dist/_chunks/{patient-shell-CDvMw_Nk.js.map → patient-shell-DF81lALv.js.map} +1 -1
  97. package/dist/_chunks/{payment-form-D5rgnZu7.js → payment-form-Dy3WIIsC.js} +18 -18
  98. package/dist/_chunks/payment-form-Dy3WIIsC.js.map +1 -0
  99. package/dist/_chunks/{pdf-viewer-DvtEHcEP.js → pdf-viewer-Cy6Ul3hZ.js} +2 -2
  100. package/dist/_chunks/pdf-viewer-Cy6Ul3hZ.js.map +1 -0
  101. package/dist/_chunks/{pl-Dgsogljx.js → pl-GnOW6eGK.js} +3 -3
  102. package/dist/_chunks/{pl-Dgsogljx.js.map → pl-GnOW6eGK.js.map} +1 -1
  103. package/dist/_chunks/{practice-results-BFM_lyUs.js → practice-results-C0d4IL5E.js} +4 -3
  104. package/dist/_chunks/{practice-results-BFM_lyUs.js.map → practice-results-C0d4IL5E.js.map} +1 -1
  105. package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +209 -0
  106. package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js.map +1 -0
  107. package/dist/_chunks/{privacy-lock-DD-wHxBg.js → privacy-lock-BmX_gkvt.js} +2 -2
  108. package/dist/_chunks/{privacy-lock-DD-wHxBg.js.map → privacy-lock-BmX_gkvt.js.map} +1 -1
  109. package/dist/_chunks/{pt-Dm2JF4bc.js → pt-_bV5b5RW.js} +2 -2
  110. package/dist/_chunks/{pt-Dm2JF4bc.js.map → pt-_bV5b5RW.js.map} +1 -1
  111. package/dist/_chunks/{public-footer.agent-Cjfe5jus.js → public-footer.agent-okt8ZRc5.js} +3 -3
  112. package/dist/_chunks/{public-footer.agent-Cjfe5jus.js.map → public-footer.agent-okt8ZRc5.js.map} +1 -1
  113. package/dist/_chunks/qr-code-DNXhi6se.js +568 -0
  114. package/dist/_chunks/qr-code-DNXhi6se.js.map +1 -0
  115. package/dist/_chunks/{react-day-picker-DYDdR8Vv.js → react-day-picker-CdtIiKjx.js} +24 -24
  116. package/dist/_chunks/{react-day-picker-DYDdR8Vv.js.map → react-day-picker-CdtIiKjx.js.map} +1 -1
  117. package/dist/_chunks/{reviews-panel-Dow8Dzoa.js → reviews-panel-CPrXu5TX.js} +2 -2
  118. package/dist/_chunks/{reviews-panel-Dow8Dzoa.js.map → reviews-panel-CPrXu5TX.js.map} +1 -1
  119. package/dist/_chunks/{rich-text-editor-CHmr9Bz8.js → rich-text-editor-DLbg2852.js} +114 -124
  120. package/dist/_chunks/rich-text-editor-DLbg2852.js.map +1 -0
  121. package/dist/_chunks/{ro-BXFZ_xIX.js → ro-BEcyh5Nj.js} +2 -2
  122. package/dist/_chunks/{ro-BXFZ_xIX.js.map → ro-BEcyh5Nj.js.map} +1 -1
  123. package/dist/_chunks/rotate-ccw-BWANpitO.js +15 -0
  124. package/dist/_chunks/rotate-ccw-BWANpitO.js.map +1 -0
  125. package/dist/_chunks/{ru-BPQkNRRV.js → ru-Bi86hqMf.js} +3 -3
  126. package/dist/_chunks/{ru-BPQkNRRV.js.map → ru-Bi86hqMf.js.map} +1 -1
  127. package/dist/_chunks/session-countdown-LPnhTHjn.js +214 -0
  128. package/dist/_chunks/session-countdown-LPnhTHjn.js.map +1 -0
  129. package/dist/_chunks/{shield-check-BhHyReu8.js → shield-check-C73ma9Cs.js} +8 -24
  130. package/dist/_chunks/shield-check-C73ma9Cs.js.map +1 -0
  131. package/dist/_chunks/{sidebar-BbR8f6oe.js → sidebar-_vJXI9rB.js} +2 -2
  132. package/dist/_chunks/{sidebar-BbR8f6oe.js.map → sidebar-_vJXI9rB.js.map} +1 -1
  133. package/dist/_chunks/sign-document-DId1p-nn.js +315 -0
  134. package/dist/_chunks/sign-document-DId1p-nn.js.map +1 -0
  135. package/dist/_chunks/{sign-in-with-alfadocs-button-BI0fVonM.js → sign-in-with-alfadocs-button-DeHBFRNS.js} +2 -2
  136. package/dist/_chunks/{sign-in-with-alfadocs-button-BI0fVonM.js.map → sign-in-with-alfadocs-button-DeHBFRNS.js.map} +1 -1
  137. package/dist/_chunks/{signature-capture-C-fF71xI.js → signature-capture-BRzCklg4.js} +27 -24
  138. package/dist/_chunks/signature-capture-BRzCklg4.js.map +1 -0
  139. package/dist/_chunks/social-sign-in-button-X54ySJr1.js +243 -0
  140. package/dist/_chunks/social-sign-in-button-X54ySJr1.js.map +1 -0
  141. package/dist/_chunks/{sparkline-DEROcSl0.js → sparkline-DGhCSw8M.js} +55 -46
  142. package/dist/_chunks/sparkline-DGhCSw8M.js.map +1 -0
  143. package/dist/_chunks/{sq-ChTlGFcJ.js → sq-BujHSAWu.js} +2 -2
  144. package/dist/_chunks/{sq-ChTlGFcJ.js.map → sq-BujHSAWu.js.map} +1 -1
  145. package/dist/_chunks/{stepper-accordion-BfS6lUB9.js → stepper-accordion-Dki6r9ZE.js} +2 -2
  146. package/dist/_chunks/stepper-accordion-Dki6r9ZE.js.map +1 -0
  147. package/dist/_chunks/subDays-_T9YeKPX.js +8 -0
  148. package/dist/_chunks/{subDays-D-WYRpdW.js.map → subDays-_T9YeKPX.js.map} +1 -1
  149. package/dist/_chunks/{sv-Do_gs6ir.js → sv-C8AeDrTA.js} +2 -2
  150. package/dist/_chunks/{sv-Do_gs6ir.js.map → sv-C8AeDrTA.js.map} +1 -1
  151. package/dist/_chunks/{tag-CyoaEmf_.js → tag-CdA0s_VV.js} +16 -16
  152. package/dist/_chunks/tag-CdA0s_VV.js.map +1 -0
  153. package/dist/_chunks/{task-card-BUVMh6HN.js → task-card-CPyQ5AXC.js} +6 -5
  154. package/dist/_chunks/task-card-CPyQ5AXC.js.map +1 -0
  155. package/dist/_chunks/{task-tray-DRK0b0Qb.js → task-tray-B8jFv5FV.js} +36 -35
  156. package/dist/_chunks/task-tray-B8jFv5FV.js.map +1 -0
  157. package/dist/_chunks/{tr-da_UnkYH.js → tr-CMSs_Vgf.js} +2 -2
  158. package/dist/_chunks/{tr-da_UnkYH.js.map → tr-CMSs_Vgf.js.map} +1 -1
  159. package/dist/_chunks/{transcript-panel-DyhTpAP7.js → transcript-panel-CR7VY1uw.js} +8 -7
  160. package/dist/_chunks/transcript-panel-CR7VY1uw.js.map +1 -0
  161. package/dist/_chunks/unit-converter-EUwO6QYq.js +168 -0
  162. package/dist/_chunks/unit-converter-EUwO6QYq.js.map +1 -0
  163. package/dist/_chunks/wallet-pay-button-DK4ESYge.js +250 -0
  164. package/dist/_chunks/wallet-pay-button-DK4ESYge.js.map +1 -0
  165. package/dist/_chunks/{warning-stack-bDicCvxs.js → warning-stack-DNR3-IbP.js} +17 -16
  166. package/dist/_chunks/warning-stack-DNR3-IbP.js.map +1 -0
  167. package/dist/_chunks/{workflow-map-uSiHbOWQ.js → workflow-map-C3gB0FvB.js} +3 -2
  168. package/dist/_chunks/{workflow-map-uSiHbOWQ.js.map → workflow-map-C3gB0FvB.js.map} +1 -1
  169. package/dist/_chunks/{zh-CN-C9qi5oak.js → zh-CN-eXB-PFu4.js} +3 -3
  170. package/dist/_chunks/{zh-CN-C9qi5oak.js.map → zh-CN-eXB-PFu4.js.map} +1 -1
  171. package/dist/agent-catalog.json +241 -1
  172. package/dist/brand/product-lockup/product-lockup.d.ts.map +1 -1
  173. package/dist/brand/provider-marks/apple-pay.d.ts +12 -0
  174. package/dist/brand/provider-marks/apple-pay.d.ts.map +1 -0
  175. package/dist/brand/provider-marks/apple.d.ts +12 -0
  176. package/dist/brand/provider-marks/apple.d.ts.map +1 -0
  177. package/dist/brand/provider-marks/google-pay.d.ts +12 -0
  178. package/dist/brand/provider-marks/google-pay.d.ts.map +1 -0
  179. package/dist/brand/provider-marks/google.d.ts +13 -0
  180. package/dist/brand/provider-marks/google.d.ts.map +1 -0
  181. package/dist/components/_shared/insert-result.d.ts +47 -0
  182. package/dist/components/_shared/insert-result.d.ts.map +1 -0
  183. package/dist/components/accordion/index.js +1 -1
  184. package/dist/components/agenda-tray/agenda-tray.d.ts.map +1 -1
  185. package/dist/components/agenda-tray/index.js +1 -1
  186. package/dist/components/bmi-calculator/bmi-calculator.d.ts +3 -0
  187. package/dist/components/bmi-calculator/bmi-calculator.d.ts.map +1 -1
  188. package/dist/components/bmi-calculator/index.js +6 -5
  189. package/dist/components/bmi-calculator/index.js.map +1 -1
  190. package/dist/components/booking/index.js +1 -1
  191. package/dist/components/calculator-dialog/calculator-dialog.d.ts +26 -0
  192. package/dist/components/calculator-dialog/calculator-dialog.d.ts.map +1 -0
  193. package/dist/components/calculator-dialog/index.d.ts +3 -0
  194. package/dist/components/calculator-dialog/index.d.ts.map +1 -0
  195. package/dist/components/calculator-dialog/index.js +5 -0
  196. package/dist/components/calculator-dialog/index.js.map +1 -0
  197. package/dist/components/chart/chart.d.ts +1 -1
  198. package/dist/components/chart/chart.d.ts.map +1 -1
  199. package/dist/components/chart/index.js +1 -1
  200. package/dist/components/chat-message/index.js +1 -1
  201. package/dist/components/collapsible/index.js +1 -1
  202. package/dist/components/contact-profile-card/index.js +1 -1
  203. package/dist/components/cycle-calculator/cycle-calculator.d.ts +21 -0
  204. package/dist/components/cycle-calculator/cycle-calculator.d.ts.map +1 -0
  205. package/dist/components/cycle-calculator/cycle.d.ts +37 -0
  206. package/dist/components/cycle-calculator/cycle.d.ts.map +1 -0
  207. package/dist/components/cycle-calculator/index.d.ts +4 -0
  208. package/dist/components/cycle-calculator/index.d.ts.map +1 -0
  209. package/dist/components/cycle-calculator/index.js +7 -0
  210. package/dist/components/cycle-calculator/index.js.map +1 -0
  211. package/dist/components/data-table/index.js +1 -1
  212. package/dist/components/date-picker/index.js +1 -1
  213. package/dist/components/date-range-picker/index.js +1 -1
  214. package/dist/components/date-time-picker/index.js +1 -1
  215. package/dist/components/dependent-selector/dependent-selector.agent.d.ts +4 -0
  216. package/dist/components/dependent-selector/dependent-selector.agent.d.ts.map +1 -0
  217. package/dist/components/dependent-selector/dependent-selector.d.ts +72 -0
  218. package/dist/components/dependent-selector/dependent-selector.d.ts.map +1 -0
  219. package/dist/components/dependent-selector/index.d.ts +4 -0
  220. package/dist/components/dependent-selector/index.d.ts.map +1 -0
  221. package/dist/components/dependent-selector/index.js +6 -0
  222. package/dist/components/dependent-selector/index.js.map +1 -0
  223. package/dist/components/document-scanner/document-scanner.agent.d.ts +4 -0
  224. package/dist/components/document-scanner/document-scanner.agent.d.ts.map +1 -0
  225. package/dist/components/document-scanner/document-scanner.d.ts +93 -0
  226. package/dist/components/document-scanner/document-scanner.d.ts.map +1 -0
  227. package/dist/components/document-scanner/index.d.ts +4 -0
  228. package/dist/components/document-scanner/index.d.ts.map +1 -0
  229. package/dist/components/document-scanner/index.js +6 -0
  230. package/dist/components/document-scanner/index.js.map +1 -0
  231. package/dist/components/due-date-calculator/due-date-calculator.d.ts +3 -0
  232. package/dist/components/due-date-calculator/due-date-calculator.d.ts.map +1 -1
  233. package/dist/components/due-date-calculator/gestation.d.ts +16 -0
  234. package/dist/components/due-date-calculator/gestation.d.ts.map +1 -1
  235. package/dist/components/due-date-calculator/index.d.ts +1 -1
  236. package/dist/components/due-date-calculator/index.d.ts.map +1 -1
  237. package/dist/components/due-date-calculator/index.js +10 -7
  238. package/dist/components/due-date-calculator/index.js.map +1 -1
  239. package/dist/components/file-upload/index.js +1 -1
  240. package/dist/components/fiscal-code-input/calculate-codice-fiscale.d.ts +24 -0
  241. package/dist/components/fiscal-code-input/calculate-codice-fiscale.d.ts.map +1 -0
  242. package/dist/components/fiscal-code-input/fiscal-code-input.agent.d.ts +4 -0
  243. package/dist/components/fiscal-code-input/fiscal-code-input.agent.d.ts.map +1 -0
  244. package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +61 -0
  245. package/dist/components/fiscal-code-input/fiscal-code-input.d.ts.map +1 -0
  246. package/dist/components/fiscal-code-input/index.d.ts +6 -0
  247. package/dist/components/fiscal-code-input/index.d.ts.map +1 -0
  248. package/dist/components/fiscal-code-input/index.js +11 -0
  249. package/dist/components/fiscal-code-input/index.js.map +1 -0
  250. package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +21 -0
  251. package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts.map +1 -0
  252. package/dist/components/freemium-paywall/index.js +1 -1
  253. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +27 -0
  254. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts.map +1 -0
  255. package/dist/components/gestational-age-calculator/index.d.ts +3 -0
  256. package/dist/components/gestational-age-calculator/index.d.ts.map +1 -0
  257. package/dist/components/gestational-age-calculator/index.js +5 -0
  258. package/dist/components/gestational-age-calculator/index.js.map +1 -0
  259. package/dist/components/header-settings/header-settings.agent.d.ts +4 -0
  260. package/dist/components/header-settings/header-settings.agent.d.ts.map +1 -0
  261. package/dist/components/header-settings/header-settings.d.ts +36 -0
  262. package/dist/components/header-settings/header-settings.d.ts.map +1 -0
  263. package/dist/components/header-settings/index.d.ts +2 -0
  264. package/dist/components/header-settings/index.d.ts.map +1 -0
  265. package/dist/components/header-settings/index.js +2 -241
  266. package/dist/components/header-settings/index.js.map +1 -1
  267. package/dist/components/index.d.ts +14 -0
  268. package/dist/components/index.d.ts.map +1 -1
  269. package/dist/components/locale-picker/locale-picker.agent.d.ts +4 -0
  270. package/dist/components/locale-picker/locale-picker.agent.d.ts.map +1 -0
  271. package/dist/components/locale-picker/locale-picker.d.ts +80 -0
  272. package/dist/components/locale-picker/locale-picker.d.ts.map +1 -0
  273. package/dist/components/logo/index.js +1 -1
  274. package/dist/components/map-view/index.js +1 -1
  275. package/dist/components/message-card/index.js +1 -1
  276. package/dist/components/message-card/message-card.d.ts.map +1 -1
  277. package/dist/components/message-tray/index.js +1 -1
  278. package/dist/components/notification-card/index.js +1 -1
  279. package/dist/components/notification-card/notification-card.d.ts.map +1 -1
  280. package/dist/components/notification-tray/index.js +1 -1
  281. package/dist/components/otp-input/index.d.ts +1 -1
  282. package/dist/components/otp-input/index.d.ts.map +1 -1
  283. package/dist/components/otp-input/index.js +1 -1
  284. package/dist/components/otp-input/otp-input.d.ts +1 -1
  285. package/dist/components/otp-input/otp-input.d.ts.map +1 -1
  286. package/dist/components/payment-form/index.js +1 -1
  287. package/dist/components/pdf-viewer/index.js +1 -1
  288. package/dist/components/practice-results/index.js +1 -1
  289. package/dist/components/pregnancy-weight-gain/index.d.ts +4 -0
  290. package/dist/components/pregnancy-weight-gain/index.d.ts.map +1 -0
  291. package/dist/components/pregnancy-weight-gain/index.js +9 -0
  292. package/dist/components/pregnancy-weight-gain/index.js.map +1 -0
  293. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +19 -0
  294. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts.map +1 -0
  295. package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +41 -0
  296. package/dist/components/pregnancy-weight-gain/weight-gain.d.ts.map +1 -0
  297. package/dist/components/privacy-lock/index.js +1 -1
  298. package/dist/components/public-footer/index.js +1 -1
  299. package/dist/components/qr-code/index.d.ts +5 -0
  300. package/dist/components/qr-code/index.d.ts.map +1 -0
  301. package/dist/components/qr-code/index.js +8 -0
  302. package/dist/components/qr-code/index.js.map +1 -0
  303. package/dist/components/qr-code/qr-code.agent.d.ts +3 -0
  304. package/dist/components/qr-code/qr-code.agent.d.ts.map +1 -0
  305. package/dist/components/qr-code/qr-code.d.ts +59 -0
  306. package/dist/components/qr-code/qr-code.d.ts.map +1 -0
  307. package/dist/components/qr-code/qr-encode.d.ts +46 -0
  308. package/dist/components/qr-code/qr-encode.d.ts.map +1 -0
  309. package/dist/components/reviews-panel/index.js +1 -1
  310. package/dist/components/rich-text-editor/index.js +1 -1
  311. package/dist/components/session-countdown/index.d.ts +4 -0
  312. package/dist/components/session-countdown/index.d.ts.map +1 -0
  313. package/dist/components/session-countdown/index.js +6 -0
  314. package/dist/components/session-countdown/index.js.map +1 -0
  315. package/dist/components/session-countdown/session-countdown.agent.d.ts +3 -0
  316. package/dist/components/session-countdown/session-countdown.agent.d.ts.map +1 -0
  317. package/dist/components/session-countdown/session-countdown.d.ts +38 -0
  318. package/dist/components/session-countdown/session-countdown.d.ts.map +1 -0
  319. package/dist/components/sidebar/index.js +1 -1
  320. package/dist/components/sign-document/index.d.ts +4 -0
  321. package/dist/components/sign-document/index.d.ts.map +1 -0
  322. package/dist/components/sign-document/index.js +6 -0
  323. package/dist/components/sign-document/index.js.map +1 -0
  324. package/dist/components/sign-document/sign-document.agent.d.ts +4 -0
  325. package/dist/components/sign-document/sign-document.agent.d.ts.map +1 -0
  326. package/dist/components/sign-document/sign-document.d.ts +47 -0
  327. package/dist/components/sign-document/sign-document.d.ts.map +1 -0
  328. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  329. package/dist/components/signature-capture/index.js +1 -1
  330. package/dist/components/signature-capture/signature-capture.d.ts.map +1 -1
  331. package/dist/components/social-sign-in-button/index.d.ts +3 -0
  332. package/dist/components/social-sign-in-button/index.d.ts.map +1 -0
  333. package/dist/components/social-sign-in-button/index.js +5 -0
  334. package/dist/components/social-sign-in-button/index.js.map +1 -0
  335. package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +56 -0
  336. package/dist/components/social-sign-in-button/social-sign-in-button.d.ts.map +1 -0
  337. package/dist/components/sparkline/index.js +1 -1
  338. package/dist/components/sparkline/sparkline.d.ts +1 -1
  339. package/dist/components/sparkline/sparkline.d.ts.map +1 -1
  340. package/dist/components/stepper-accordion/index.js +1 -1
  341. package/dist/components/tag/index.js +1 -1
  342. package/dist/components/task-card/index.js +1 -1
  343. package/dist/components/task-card/task-card.d.ts.map +1 -1
  344. package/dist/components/task-tray/index.js +1 -1
  345. package/dist/components/task-tray/task-tray.d.ts.map +1 -1
  346. package/dist/components/transcript-panel/index.js +1 -1
  347. package/dist/components/transcript-panel/transcript-panel.d.ts.map +1 -1
  348. package/dist/components/unit-converter/index.d.ts +4 -0
  349. package/dist/components/unit-converter/index.d.ts.map +1 -0
  350. package/dist/components/unit-converter/index.js +9 -0
  351. package/dist/components/unit-converter/index.js.map +1 -0
  352. package/dist/components/unit-converter/unit-converter.d.ts +21 -0
  353. package/dist/components/unit-converter/unit-converter.d.ts.map +1 -0
  354. package/dist/components/unit-converter/units.d.ts +18 -0
  355. package/dist/components/unit-converter/units.d.ts.map +1 -0
  356. package/dist/components/wallet-pay-button/index.d.ts +3 -0
  357. package/dist/components/wallet-pay-button/index.d.ts.map +1 -0
  358. package/dist/components/wallet-pay-button/index.js +5 -0
  359. package/dist/components/wallet-pay-button/index.js.map +1 -0
  360. package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +63 -0
  361. package/dist/components/wallet-pay-button/wallet-pay-button.d.ts.map +1 -0
  362. package/dist/components/warning-stack/index.js +1 -1
  363. package/dist/components/warning-stack/warning-stack.d.ts.map +1 -1
  364. package/dist/components/workflow/index.js +1 -1
  365. package/dist/components/workflow/workflow-map.d.ts.map +1 -1
  366. package/dist/i18n/locale-meta.d.ts +56 -0
  367. package/dist/i18n/locale-meta.d.ts.map +1 -0
  368. package/dist/i18n/locales/ar.d.ts +274 -0
  369. package/dist/i18n/locales/ar.d.ts.map +1 -1
  370. package/dist/i18n/locales/ar.js +271 -0
  371. package/dist/i18n/locales/ar.js.map +1 -1
  372. package/dist/i18n/locales/de.d.ts +274 -0
  373. package/dist/i18n/locales/de.d.ts.map +1 -1
  374. package/dist/i18n/locales/de.js +271 -0
  375. package/dist/i18n/locales/de.js.map +1 -1
  376. package/dist/i18n/locales/el.d.ts +274 -0
  377. package/dist/i18n/locales/el.d.ts.map +1 -1
  378. package/dist/i18n/locales/el.js +271 -0
  379. package/dist/i18n/locales/el.js.map +1 -1
  380. package/dist/i18n/locales/en.d.ts +274 -0
  381. package/dist/i18n/locales/en.d.ts.map +1 -1
  382. package/dist/i18n/locales/en.js +274 -0
  383. package/dist/i18n/locales/en.js.map +1 -1
  384. package/dist/i18n/locales/es.d.ts +274 -0
  385. package/dist/i18n/locales/es.d.ts.map +1 -1
  386. package/dist/i18n/locales/es.js +271 -0
  387. package/dist/i18n/locales/es.js.map +1 -1
  388. package/dist/i18n/locales/fr.d.ts +274 -0
  389. package/dist/i18n/locales/fr.d.ts.map +1 -1
  390. package/dist/i18n/locales/fr.js +271 -0
  391. package/dist/i18n/locales/fr.js.map +1 -1
  392. package/dist/i18n/locales/hi.d.ts +274 -0
  393. package/dist/i18n/locales/hi.d.ts.map +1 -1
  394. package/dist/i18n/locales/hi.js +271 -0
  395. package/dist/i18n/locales/hi.js.map +1 -1
  396. package/dist/i18n/locales/it.d.ts +274 -0
  397. package/dist/i18n/locales/it.d.ts.map +1 -1
  398. package/dist/i18n/locales/it.js +271 -0
  399. package/dist/i18n/locales/it.js.map +1 -1
  400. package/dist/i18n/locales/ja.d.ts +274 -0
  401. package/dist/i18n/locales/ja.d.ts.map +1 -1
  402. package/dist/i18n/locales/ja.js +267 -0
  403. package/dist/i18n/locales/ja.js.map +1 -1
  404. package/dist/i18n/locales/nl.d.ts +274 -0
  405. package/dist/i18n/locales/nl.d.ts.map +1 -1
  406. package/dist/i18n/locales/nl.js +271 -0
  407. package/dist/i18n/locales/nl.js.map +1 -1
  408. package/dist/i18n/locales/pl.d.ts +274 -0
  409. package/dist/i18n/locales/pl.d.ts.map +1 -1
  410. package/dist/i18n/locales/pl.js +271 -0
  411. package/dist/i18n/locales/pl.js.map +1 -1
  412. package/dist/i18n/locales/pt.d.ts +274 -0
  413. package/dist/i18n/locales/pt.d.ts.map +1 -1
  414. package/dist/i18n/locales/pt.js +274 -0
  415. package/dist/i18n/locales/pt.js.map +1 -1
  416. package/dist/i18n/locales/ro.d.ts +274 -0
  417. package/dist/i18n/locales/ro.d.ts.map +1 -1
  418. package/dist/i18n/locales/ro.js +271 -0
  419. package/dist/i18n/locales/ro.js.map +1 -1
  420. package/dist/i18n/locales/ru.d.ts +274 -0
  421. package/dist/i18n/locales/ru.d.ts.map +1 -1
  422. package/dist/i18n/locales/ru.js +271 -0
  423. package/dist/i18n/locales/ru.js.map +1 -1
  424. package/dist/i18n/locales/sq.d.ts +274 -0
  425. package/dist/i18n/locales/sq.d.ts.map +1 -1
  426. package/dist/i18n/locales/sq.js +271 -0
  427. package/dist/i18n/locales/sq.js.map +1 -1
  428. package/dist/i18n/locales/sv.d.ts +274 -0
  429. package/dist/i18n/locales/sv.d.ts.map +1 -1
  430. package/dist/i18n/locales/sv.js +271 -0
  431. package/dist/i18n/locales/sv.js.map +1 -1
  432. package/dist/i18n/locales/tr.d.ts +274 -0
  433. package/dist/i18n/locales/tr.d.ts.map +1 -1
  434. package/dist/i18n/locales/tr.js +271 -0
  435. package/dist/i18n/locales/tr.js.map +1 -1
  436. package/dist/i18n/locales/zh.d.ts +274 -0
  437. package/dist/i18n/locales/zh.d.ts.map +1 -1
  438. package/dist/i18n/locales/zh.js +267 -0
  439. package/dist/i18n/locales/zh.js.map +1 -1
  440. package/dist/index.js +590 -535
  441. package/dist/index.js.map +1 -1
  442. package/dist/locales/ar.json +274 -0
  443. package/dist/locales/de.json +274 -0
  444. package/dist/locales/el.json +274 -0
  445. package/dist/locales/en.json +274 -0
  446. package/dist/locales/es.json +274 -0
  447. package/dist/locales/fr.json +274 -0
  448. package/dist/locales/hi.json +274 -0
  449. package/dist/locales/it.json +274 -0
  450. package/dist/locales/ja.json +274 -0
  451. package/dist/locales/nl.json +274 -0
  452. package/dist/locales/pl.json +274 -0
  453. package/dist/locales/pt.json +274 -0
  454. package/dist/locales/ro.json +274 -0
  455. package/dist/locales/ru.json +274 -0
  456. package/dist/locales/sq.json +274 -0
  457. package/dist/locales/sv.json +274 -0
  458. package/dist/locales/tr.json +274 -0
  459. package/dist/locales/zh.json +274 -0
  460. package/dist/patterns/alia-assistant/index.js +1 -1
  461. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  462. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +12 -8
  463. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
  464. package/dist/patterns/patient-shell/index.js +1 -1
  465. package/dist/patterns/patient-shell/patient-shell.d.ts.map +1 -1
  466. package/dist/tokens.css +1 -1
  467. package/package.json +53 -1
  468. package/dist/_chunks/accordion-bSU21uTV.js.map +0 -1
  469. package/dist/_chunks/agenda-tray-By_asPN9.js.map +0 -1
  470. package/dist/_chunks/bmi-calculator-DQD5_nE-.js +0 -214
  471. package/dist/_chunks/bmi-calculator-DQD5_nE-.js.map +0 -1
  472. package/dist/_chunks/chart-DnHvmiDX.js.map +0 -1
  473. package/dist/_chunks/chat-message-D53_fH2w.js.map +0 -1
  474. package/dist/_chunks/collapsible-CERONory.js.map +0 -1
  475. package/dist/_chunks/due-date-calculator-kf9U_g7O.js +0 -173
  476. package/dist/_chunks/due-date-calculator-kf9U_g7O.js.map +0 -1
  477. package/dist/_chunks/file-upload-CdozCPct.js.map +0 -1
  478. package/dist/_chunks/logo-_Z-jLq80.js.map +0 -1
  479. package/dist/_chunks/marketplace-app-shell-DXHxy9dj.js +0 -295
  480. package/dist/_chunks/marketplace-app-shell-DXHxy9dj.js.map +0 -1
  481. package/dist/_chunks/message-card-BbRhZkDI.js.map +0 -1
  482. package/dist/_chunks/message-tray-B762TKuv.js.map +0 -1
  483. package/dist/_chunks/notification-card-DMdO4g54.js.map +0 -1
  484. package/dist/_chunks/otp-input-CDTWT5EK.js.map +0 -1
  485. package/dist/_chunks/payment-form-D5rgnZu7.js.map +0 -1
  486. package/dist/_chunks/pdf-viewer-DvtEHcEP.js.map +0 -1
  487. package/dist/_chunks/rich-text-editor-CHmr9Bz8.js.map +0 -1
  488. package/dist/_chunks/shield-check-BhHyReu8.js.map +0 -1
  489. package/dist/_chunks/signature-capture-C-fF71xI.js.map +0 -1
  490. package/dist/_chunks/sparkline-DEROcSl0.js.map +0 -1
  491. package/dist/_chunks/stepper-accordion-BfS6lUB9.js.map +0 -1
  492. package/dist/_chunks/subDays-D-WYRpdW.js +0 -8
  493. package/dist/_chunks/tag-CyoaEmf_.js.map +0 -1
  494. package/dist/_chunks/task-card-BUVMh6HN.js.map +0 -1
  495. package/dist/_chunks/task-tray-DRK0b0Qb.js.map +0 -1
  496. package/dist/_chunks/transcript-panel-DyhTpAP7.js.map +0 -1
  497. package/dist/_chunks/warning-stack-bDicCvxs.js.map +0 -1
@@ -8,8 +8,9 @@ import { K as fe, a as me } from "./key-value-pair-CkQIb9EG.js";
8
8
  import { L as d } from "./link-DrD_cRUg.js";
9
9
  import { u as he } from "./registry-nPAVE19X.js";
10
10
  import { S as T } from "./stethoscope-DT5qCW8Y.js";
11
- import { H, S as V, L as z } from "./shield-check-BhHyReu8.js";
12
- import { c as O } from "./createLucideIcon-CrFbzy84.js";
11
+ import { H } from "./heart-C0faivFf.js";
12
+ import { c as V } from "./createLucideIcon-CrFbzy84.js";
13
+ import { S as z, L as O } from "./shield-check-C73ma9Cs.js";
13
14
  import { G as E } from "./globe-BkEFMNSg.js";
14
15
  import { M as K } from "./mail-C8irm52s.js";
15
16
  import { M as L } from "./message-circle-C23eicgb.js";
@@ -24,7 +25,7 @@ const ge = [
24
25
  ["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }],
25
26
  ["circle", { cx: "12", cy: "12", r: "2", key: "1c9p78" }],
26
27
  ["path", { d: "M6 12h.01M18 12h.01", key: "113zkx" }]
27
- ], j = O("banknote", ge);
28
+ ], j = V("banknote", ge);
28
29
  /**
29
30
  * @license lucide-react v1.8.0 - ISC
30
31
  *
@@ -39,7 +40,7 @@ const ve = [
39
40
  key: "9njp5v"
40
41
  }
41
42
  ]
42
- ], B = O("phone", ve), xe = {
43
+ ], B = V("phone", ve), xe = {
43
44
  id: "contact-profile-card",
44
45
  capabilities: ["view_change"],
45
46
  state: {
@@ -225,14 +226,14 @@ const $e = ce(
225
226
  };
226
227
  o.push({
227
228
  key: "languages",
228
- icon: /* @__PURE__ */ e(z, { "aria-hidden": "true" }),
229
+ icon: /* @__PURE__ */ e(O, { "aria-hidden": "true" }),
229
230
  label: n("contactProfileCard.label.languages"),
230
231
  value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: g.map((l) => /* @__PURE__ */ e(S, { variant: "neutral", children: i(l) }, l)) })
231
232
  });
232
233
  }
233
234
  v && v.length > 0 && o.push({
234
235
  key: "insurances",
235
- icon: /* @__PURE__ */ e(V, { "aria-hidden": "true" }),
236
+ icon: /* @__PURE__ */ e(z, { "aria-hidden": "true" }),
236
237
  label: n("contactProfileCard.label.insurances"),
237
238
  value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: v.map((i) => /* @__PURE__ */ e(S, { variant: "info", children: i }, i)) })
238
239
  }), N && o.push({
@@ -311,7 +312,7 @@ const $e = ce(
311
312
  }
312
313
  );
313
314
  $e.displayName = "ContactProfileCard";
314
- const Be = [
315
+ const Ge = [
315
316
  "address",
316
317
  "phone",
317
318
  "whatsapp",
@@ -322,22 +323,22 @@ const Be = [
322
323
  "firstVisitPrice",
323
324
  "expertForAnxiousPatients",
324
325
  "profession"
325
- ], Ge = {
326
+ ], qe = {
326
327
  address: U,
327
328
  phone: B,
328
329
  whatsapp: L,
329
330
  email: K,
330
331
  website: E,
331
- languages: z,
332
- insurances: V,
332
+ languages: O,
333
+ insurances: z,
333
334
  firstVisitPrice: j,
334
335
  expertForAnxiousPatients: H,
335
336
  profession: T
336
337
  };
337
338
  export {
338
- Ge as C,
339
- Be as a,
339
+ qe as C,
340
+ Ge as a,
340
341
  $e as b,
341
342
  xe as c
342
343
  };
343
- //# sourceMappingURL=contact-profile-card-BA6fgS45.js.map
344
+ //# sourceMappingURL=contact-profile-card-DHyuAPXM.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contact-profile-card-BA6fgS45.js","sources":["../../node_modules/lucide-react/dist/esm/icons/banknote.js","../../node_modules/lucide-react/dist/esm/icons/phone.js","../../src/components/contact-profile-card/contact-profile-card.agent.ts","../../src/components/contact-profile-card/contact-profile-card.tsx"],"sourcesContent":["/**\n * @license lucide-react v1.8.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"rect\", { width: \"20\", height: \"12\", x: \"2\", y: \"6\", rx: \"2\", key: \"9lu3g6\" }],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"2\", key: \"1c9p78\" }],\n [\"path\", { d: \"M6 12h.01M18 12h.01\", key: \"113zkx\" }]\n];\nconst Banknote = createLucideIcon(\"banknote\", __iconNode);\n\nexport { __iconNode, Banknote as default };\n//# sourceMappingURL=banknote.js.map\n","/**\n * @license lucide-react v1.8.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384\",\n key: \"9njp5v\"\n }\n ]\n];\nconst Phone = createLucideIcon(\"phone\", __iconNode);\n\nexport { __iconNode, Phone as default };\n//# sourceMappingURL=phone.js.map\n","import type { AgentAdapter } from '../../agent/types';\nimport type { ContactProfileCardHandle } from './contact-profile-card';\n\n/* -------------------------------------------------------------------- */\n/* Agent adapter — ContactProfileCard */\n/* */\n/* Read-only adapter. Surfaces the rendered profession field so an */\n/* agent / MCP runtime can resolve \"what kind of practice is this?\" */\n/* without re-parsing the DOM. No actions yet — the card is a passive */\n/* presentation surface; navigation lives on the consumer's page. */\n/* -------------------------------------------------------------------- */\n\nexport const contactProfileCardAgent: AgentAdapter<ContactProfileCardHandle> = {\n id: 'contact-profile-card',\n capabilities: ['view_change'],\n state: {\n profession: {\n type: 'string',\n descriptionKey: 'ui.agent.contactProfileCard.state.profession',\n description:\n 'Profession string the card is currently rendering — undefined when the consumer omitted it.',\n read: (handle) => handle.getProfession(),\n },\n },\n actions: {},\n domHooks: {\n root: {\n attr: 'data-component',\n value: 'contact-profile-card',\n description: 'Marks the ContactProfileCard root region.',\n },\n instanceId: {\n attr: 'data-component-id',\n sourceProp: 'id',\n description: 'Sourced from the id prop.',\n },\n },\n};\n","import {\n forwardRef,\n useId,\n useMemo,\n type ComponentPropsWithoutRef,\n type ReactElement,\n type ReactNode,\n} from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { useTranslation } from 'react-i18next';\nimport {\n Banknote,\n ExternalLink,\n Globe,\n Heart,\n Languages as LanguagesIcon,\n Mail,\n MapPin,\n MessageCircle,\n Phone,\n ShieldCheck,\n Stethoscope,\n type LucideIcon,\n} from 'lucide-react';\nimport { Badge } from '../badge/badge';\nimport { Card } from '../card/card';\nimport { KeyValueList, KeyValuePair } from '../key-value-pair/key-value-pair';\nimport { Link } from '../link/link';\nimport { useAgentRegistration } from '../../agent/registry';\nimport { contactProfileCardAgent } from './contact-profile-card.agent';\n\n/* -------------------------------------------------------------------- */\n/* ContactProfileCard */\n/* */\n/* Replaces the bespoke \"Profilo\" / \"Practice info\" cards that every */\n/* AlfaDocs surface composes by hand (booking-website PracticeInfoCard, */\n/* alfascribe operator pages, builders docs example, …). Composes Card */\n/* + KeyValueList + KeyValuePair so the labels share a column (no */\n/* zigzag values) and every row uses the same lucide icon family. */\n/* */\n/* The component is intentionally opinionated: every field is optional, */\n/* but the ORDER, ICONS, and LABELS are owned by the kit. Consumers */\n/* pass the data; the kit owns the visual + i18n. */\n/* */\n/* All visible text flows through `useTranslation('ui')` against the */\n/* `contactProfileCard.*` namespace. */\n/* -------------------------------------------------------------------- */\n\n/* -------------------------------------------------------------------- */\n/* CVA */\n/* -------------------------------------------------------------------- */\n\n// Override the KVP icon colour at the card root so every inner row's\n// leading glyph paints with `--accent` (brand magenta/violet) instead\n// of the default `--muted-foreground`. The ContactProfileCard is a\n// marketing surface — muted icons read as disabled against the\n// otherwise saturated card chrome. Scoped via CSS custom property so\n// only this card's icons shift; standalone KVPs elsewhere keep\n// `--muted-foreground`.\nconst rootVariants = cva(\n 'ds:w-full ds:text-[color:var(--foreground)] ds:[--key-value-pair-icon-color:var(--accent)]',\n {\n variants: {\n // Matches the kit's other `surface` props (Booking, ReviewsPanel).\n // The card itself renders `<Card variant=\"elevated\">` so the\n // `surface=\"flat\"` opt-out is rare — most consumers want the\n // boundary.\n surface: {\n flat: '',\n elevated: '',\n },\n },\n defaultVariants: { surface: 'elevated' },\n },\n);\n\n/* -------------------------------------------------------------------- */\n/* Public types */\n/* -------------------------------------------------------------------- */\n\nexport interface ContactProfileCardAddress {\n /** Display text — already formatted by the consumer (street, postcode, city). */\n line: string;\n /** Optional lat/lng — drives the static-map link + the embedded thumbnail. */\n lat?: number;\n lng?: number;\n}\n\nexport interface ContactProfileCardHandle {\n /** Resolved consumer-supplied data — useful for agent introspection. */\n getProfession: () => string | undefined;\n}\n\nexport interface ContactProfileCardProps extends Omit<\n ComponentPropsWithoutRef<'div'>,\n 'aria-label' | 'children' | 'children'\n> {\n /**\n * Override the localised \"Profilo\" / \"Profile\" heading. Most\n * consumers leave this unset.\n */\n heading?: string;\n /**\n * Free-text intro paragraph rendered above the data rows (e.g.\n * the practice's `bookingDescription` field). When omitted, the\n * card jumps straight into the data rows.\n */\n description?: string;\n\n /* ----- Identity rows ----- */\n\n /** Street + postcode + city, with optional lat/lng for the map link. */\n address?: ContactProfileCardAddress;\n /** Phone number, displayed as-is. Compiled into a `tel:` link. */\n phone?: string;\n /**\n * WhatsApp number — digits only (no `+`, no spaces). Compiled into\n * a `https://wa.me/<number>` link with an optional pre-filled message.\n */\n whatsappNumber?: string;\n /** Optional pre-filled WhatsApp message. Consumer-localised. */\n whatsappMessage?: string;\n /** Public-facing email. Compiled into a `mailto:` link. */\n email?: string;\n /** Practice website (already an absolute URL with protocol). */\n website?: string;\n\n /* ----- Embedded map thumbnail ----- */\n\n /**\n * Google Maps Static API key. When provided alongside `address.lat`\n * and `address.lng`, renders a static-map thumbnail at the top of\n * the card — a single one-shot `<img>` fetch, no JS SDK boot, no\n * consent gate needed (the same pattern PracticeResults uses).\n *\n * Without it (or without coords), the card renders info rows only —\n * the address row's \"Open in Google Maps\" link is still emitted as\n * a real `<a>` so the spatial cue isn't lost.\n *\n * Additive — existing consumers that don't pass this prop see the\n * same render as before.\n */\n googleMapsApiKey?: string;\n /**\n * Zoom level for the embedded map thumbnail. Default `14` —\n * neighbourhood-level, shows the pin in context. Ignored when the\n * thumbnail isn't rendered.\n */\n mapZoom?: number;\n\n /* ----- Profile metadata ----- */\n\n /**\n * ISO 639-1 language codes the practice speaks. Rendered as\n * `<Badge variant=\"neutral\">` chips. Each code is auto-resolved\n * into the active locale's native language name via the kit's\n * built-in `languages.<iso>` i18n bundle (18 ISO codes × 18\n * locales). For example `languages={['it', 'en']}` with\n * `i18n.language === 'it'` renders \"Italiano\" + \"Inglese\".\n *\n * Unknown / unbundled codes fall back to the uppercase ISO code\n * (`'xyz'` → `'XYZ'`). To override a specific label — regional\n * dialect, brand-voice variant, codes the kit doesn't ship — pass\n * `languageLabels`.\n */\n languages?: string[];\n /**\n * Override map from ISO code → display label, applied on top of\n * the kit's i18n auto-resolution. Only set when you need a\n * consumer-specific label for a code — the typical case is\n * regional dialect / brand-voice variants / non-ISO codes.\n *\n * Resolution order: `languageLabels[code]` > `t('languages.<code>')`\n * > `code.toUpperCase()`.\n */\n languageLabels?: Record<string, string>;\n /**\n * Insurance / convention strings (consumer-supplied, free text).\n * Rendered as `<Badge variant=\"info\">` chips.\n */\n insurances?: string[];\n /**\n * First-visit price in the smallest currency unit (cents / centesimi).\n * Formatted via `Intl.NumberFormat`. Omit when the consumer doesn't\n * want to show the price.\n */\n firstVisitPriceCents?: number;\n /** ISO-4217 currency code for the price formatter. Defaults to `EUR`. */\n currencyCode?: string;\n /** Profession line — single value or already-joined comma list. */\n profession?: string;\n /** Show the \"expert for anxious patients\" row when true. */\n specializedInFearPatients?: boolean;\n\n /* ----- Telemetry hooks ----- */\n\n /**\n * Fires when the patient clicks the phone link. The kit emits a\n * `track('practice_profile_card_phone_click')` event before\n * invoking this — gate consumer-side analytics on the same event\n * to avoid duplicate fires.\n */\n onPhoneClick?: () => void;\n /** Fires when the patient clicks the WhatsApp link. */\n onWhatsAppClick?: () => void;\n /** Fires when the patient clicks the static-map link. */\n onMapClick?: () => void;\n /** Fires when the patient clicks the email mailto link. */\n onEmailClick?: () => void;\n\n /* ----- Slots ----- */\n\n /**\n * Rendered above the heading — e.g. a `<Avatar>` for the operator\n * variant, or a coloured chip strip. Optional.\n */\n headerSlot?: ReactNode;\n /**\n * Render an arbitrary map widget at the top of the card chrome —\n * replaces the built-in static `<img>` thumbnail that\n * `googleMapsApiKey` would otherwise produce. Use this when you\n * want an interactive map inside the card boundary instead of a\n * fixed image:\n *\n * <ContactProfileCard\n * mapSlot={\n * <PracticeMap practice={practice} googleMapsApiKey={key} />\n * }\n * …\n * />\n *\n * When both `mapSlot` and `googleMapsApiKey` are provided, the slot\n * wins (explicit > implicit). When neither is provided, no map area\n * renders. The slot is unstyled — pass through any container chrome\n * the consumer wants (e.g. a fixed height wrapper). The kit\n * positions it where the static thumbnail would have lived.\n */\n mapSlot?: ReactNode;\n /**\n * Rendered at the end of the card body, below the rows. Use for\n * a \"Book now\" `<Button>` or a \"View full profile\" link.\n */\n footerSlot?: ReactNode;\n\n /* ----- Styling ----- */\n\n /**\n * `'elevated'` (default) wraps the card in `<Card variant=\"elevated\">`\n * for a defined surface — what most consumers want when the card\n * stands alone on a page. `'flat'` drops the Card chrome so the\n * content sits naked — use when an outer card / sheet already\n * provides the boundary (e.g. embedded inside a `<Sheet>` or a\n * parent `<Card.Body>`).\n */\n surface?: 'flat' | 'elevated';\n\n /* ----- a11y ----- */\n\n /** Override the default region aria-label. */\n 'aria-label'?: string;\n /** Agent-readiness consumer id, surfaced as `data-component-id`. */\n id?: string;\n}\n\n/* -------------------------------------------------------------------- */\n/* Helpers */\n/* -------------------------------------------------------------------- */\n\n/** Strip everything except digits + leading `+` for `tel:` URLs. */\nfunction normalisePhone(raw: string): string {\n return raw.replace(/[^\\d+]/g, '');\n}\n\n/** Build the WhatsApp `wa.me` URL. Number must already be digits-only. */\nfunction buildWhatsAppHref(number: string, message?: string): string {\n const base = `https://wa.me/${number}`;\n if (!message) return base;\n return `${base}?text=${encodeURIComponent(message)}`;\n}\n\n/** Google Maps search query — works without an API key. */\nfunction buildMapHref(address: ContactProfileCardAddress): string {\n const q = encodeURIComponent(address.line);\n return `https://www.google.com/maps/search/?api=1&query=${q}`;\n}\n\n/** Format price (cents → currency string) using the consumer's locale. */\nfunction formatPrice(cents: number, currency: string, locale: string): string {\n try {\n return new Intl.NumberFormat(locale, {\n style: 'currency',\n currency,\n }).format(cents / 100);\n } catch {\n // Locale or currency code rejected — fall back to a plain decimal.\n return (cents / 100).toFixed(2);\n }\n}\n\n/* -------------------------------------------------------------------- */\n/* MapThumbStrip — embedded Google Static Maps image */\n/* */\n/* Full-width strip rendered at the top of the card when the consumer */\n/* supplies both `address.lat`/`lng` and `googleMapsApiKey`. Same */\n/* one-shot `<img>` strategy as PracticeResults' StaticMapThumb (no JS */\n/* SDK boot → no consent gate needed), but full-card-width instead of */\n/* a 12rem aside. */\n/* -------------------------------------------------------------------- */\n\ninterface MapThumbStripProps {\n apiKey: string;\n center: { lat: number; lng: number };\n zoom: number;\n altText: string;\n}\n\n/**\n * Resolve the kit's `--map-marker-color` token to a six-character hex\n * string (no leading `#`) for Google Static Maps' `markers=color:` URL\n * parameter, which requires a literal hex value at fetch time.\n *\n * SSR-safe: when `document` is undefined we fall back to the kit's\n * brand violet. Same helper as PracticeResults — keep in sync if you\n * touch one.\n */\nfunction getStaticMapMarkerHex(): string {\n if (typeof document === 'undefined') return '4945a3';\n const raw = getComputedStyle(document.documentElement)\n .getPropertyValue('--map-marker-color')\n .trim();\n const match = /^#?([0-9a-fA-F]{6})$/.exec(raw);\n return match ? match[1] : '4945a3';\n}\n\nfunction MapThumbStrip({ apiKey, center, zoom, altText }: MapThumbStripProps) {\n // 640×192 keeps the asset under Google's 1MP free tier at scale=2\n // (1280×384 actual) and matches the strip's 12rem height at a\n // ~3.33:1 aspect ratio. Marker colour resolves from the kit's\n // `--map-marker-color` token at runtime so the value still lives\n // in `src/tokens/**` per the closed-palette constraint.\n const markerHex = getStaticMapMarkerHex();\n const src =\n `https://maps.googleapis.com/maps/api/staticmap` +\n `?center=${center.lat},${center.lng}` +\n `&zoom=${zoom}` +\n `&size=640x192&scale=2` +\n `&markers=color:0x${markerHex}%7C${center.lat},${center.lng}` +\n `&key=${encodeURIComponent(apiKey)}`;\n return (\n <img\n src={src}\n alt={altText}\n loading=\"lazy\"\n decoding=\"async\"\n width={640}\n height={192}\n className=\"ds:block ds:inline-size-full ds:block-size-[12rem] ds:[object-fit:cover] ds:rounded-[var(--radius-md)]\"\n />\n );\n}\n\n/* -------------------------------------------------------------------- */\n/* Component */\n/* -------------------------------------------------------------------- */\n\nexport const ContactProfileCard = forwardRef<\n HTMLDivElement,\n ContactProfileCardProps\n>(\n (\n {\n heading,\n description,\n address,\n phone,\n whatsappNumber,\n whatsappMessage,\n email,\n website,\n languages,\n languageLabels,\n insurances,\n firstVisitPriceCents,\n currencyCode = 'EUR',\n profession,\n specializedInFearPatients,\n googleMapsApiKey,\n mapZoom = 14,\n onPhoneClick,\n onWhatsAppClick,\n onMapClick,\n onEmailClick,\n headerSlot,\n footerSlot,\n mapSlot,\n surface = 'elevated',\n 'aria-label': ariaLabel,\n id,\n className,\n ...rest\n },\n ref,\n ) => {\n const { t, i18n } = useTranslation();\n const headingId = useId();\n const locale = i18n.language ?? 'en';\n\n const resolvedHeading = heading ?? t('contactProfileCard.heading');\n const resolvedAriaLabel = ariaLabel ?? resolvedHeading;\n\n const formattedPrice = useMemo(() => {\n if (firstVisitPriceCents == null) return undefined;\n return formatPrice(firstVisitPriceCents, currencyCode, locale);\n }, [firstVisitPriceCents, currencyCode, locale]);\n\n // Compose the rows in display order. Each `row` carries the icon +\n // localised label + the rendered value. Skipping a field is just\n // omitting the row — `KeyValueList` collapses the subgrid cleanly.\n const rows: Array<{\n key: string;\n icon: ReactElement;\n label: string;\n value: ReactNode;\n }> = [];\n\n if (address) {\n rows.push({\n key: 'address',\n icon: <MapPin aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.address'),\n value: (\n <span className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]\">\n <span>{address.line}</span>\n {address.lat != null && address.lng != null ? (\n <Link\n href={buildMapHref(address)}\n external\n intent=\"default\"\n onClick={onMapClick}\n >\n {t('contactProfileCard.openInGoogleMaps')}\n </Link>\n ) : null}\n </span>\n ),\n });\n }\n\n if (phone) {\n rows.push({\n key: 'phone',\n icon: <Phone aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.phone'),\n value: (\n <Link\n href={`tel:${normalisePhone(phone)}`}\n intent=\"default\"\n onClick={onPhoneClick}\n >\n {phone}\n </Link>\n ),\n });\n }\n\n if (whatsappNumber) {\n rows.push({\n key: 'whatsapp',\n icon: <MessageCircle aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.whatsapp'),\n value: (\n <Link\n href={buildWhatsAppHref(whatsappNumber, whatsappMessage)}\n external\n intent=\"default\"\n onClick={onWhatsAppClick}\n >\n {whatsappNumber}\n </Link>\n ),\n });\n }\n\n if (email) {\n rows.push({\n key: 'email',\n icon: <Mail aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.email'),\n value: (\n <Link\n href={`mailto:${email}`}\n intent=\"default\"\n onClick={onEmailClick}\n >\n {email}\n </Link>\n ),\n });\n }\n\n if (website) {\n rows.push({\n key: 'website',\n icon: <Globe aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.website'),\n value: (\n <Link href={website} external intent=\"default\">\n {website}\n </Link>\n ),\n });\n }\n\n if (languages && languages.length > 0) {\n // Resolution order, highest to lowest:\n // 1. consumer `languageLabels` override — for regional dialects,\n // brand-voice variants, or codes the kit doesn't ship.\n // 2. kit i18n bundle (`languages.<iso>`) — auto-resolves the 18\n // ISO codes the kit ships into the active locale's native\n // language name. Retires consumer-side ISO→label plumbing.\n // 3. uppercase fallback for unknown codes that the consumer\n // didn't override.\n const resolveLabel = (code: string): string => {\n if (languageLabels?.[code]) return languageLabels[code];\n const key = `languages.${code}`;\n if (i18n.exists(key)) return t(key);\n return code.toUpperCase();\n };\n rows.push({\n key: 'languages',\n icon: <LanguagesIcon aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.languages'),\n value: (\n <span className=\"ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]\">\n {languages.map((code) => (\n <Badge key={code} variant=\"neutral\">\n {resolveLabel(code)}\n </Badge>\n ))}\n </span>\n ),\n });\n }\n\n if (insurances && insurances.length > 0) {\n rows.push({\n key: 'insurances',\n icon: <ShieldCheck aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.insurances'),\n value: (\n <span className=\"ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]\">\n {insurances.map((ins) => (\n <Badge key={ins} variant=\"info\">\n {ins}\n </Badge>\n ))}\n </span>\n ),\n });\n }\n\n if (formattedPrice) {\n rows.push({\n key: 'firstVisitPrice',\n icon: <Banknote aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.firstVisitPrice'),\n value: formattedPrice,\n });\n }\n\n if (specializedInFearPatients) {\n rows.push({\n key: 'expertForAnxiousPatients',\n icon: <Heart aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.expertForAnxiousPatients'),\n value: t('contactProfileCard.value.yesShort'),\n });\n }\n\n if (profession) {\n rows.push({\n key: 'profession',\n icon: <Stethoscope aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.profession'),\n value: profession,\n });\n }\n\n // Imperative handle for agent integrations.\n useAgentRegistration(\n contactProfileCardAgent,\n { getProfession: () => profession },\n id,\n );\n\n // Embedded static-map thumbnail. Renders only when the consumer\n // supplies BOTH a usable lat/lng pair AND a `googleMapsApiKey`.\n // The d.ts-promised behaviour; without a key the strip is silently\n // omitted and the address row's \"Open in Google Maps\" link still\n // emits as the spatial-cue fallback.\n const showMapThumb =\n !!googleMapsApiKey &&\n address?.lat !== undefined &&\n address?.lng !== undefined;\n const mapThumb = showMapThumb ? (\n <MapThumbStrip\n apiKey={googleMapsApiKey!}\n center={{ lat: address!.lat!, lng: address!.lng! }}\n zoom={mapZoom}\n altText={t('contactProfileCard.map.alt', {\n address: address!.line,\n defaultValue: 'Map showing {{address}}',\n })}\n />\n ) : null;\n\n // Map area: explicit consumer slot wins over the implicit\n // googleMapsApiKey-driven static thumbnail. 0.33.4 introduces the\n // slot so consumers can embed an interactive <MapView> /\n // <PracticeMap> wrapper inside the card chrome instead of the\n // fixed static <img>. When neither is set the area renders as\n // nothing. 0.33.6 moves the area from above the heading to below\n // the data rows — the map reads as the spatial closer (\"here it\n // is on the map\") rather than a stylised hero, and any CTA in\n // footerSlot still lands at the very bottom.\n const mapArea = mapSlot ?? mapThumb;\n\n const body = (\n <>\n {description ? (\n <p className=\"type-body-sm ds:m-0 ds:whitespace-pre-line\">\n {description}\n </p>\n ) : null}\n {rows.length > 0 ? (\n <KeyValueList rowGap=\"md\">\n {rows.map((row) => (\n <KeyValuePair\n key={row.key}\n icon={row.icon}\n label={row.label}\n value={row.value}\n />\n ))}\n </KeyValueList>\n ) : null}\n {mapArea}\n {footerSlot}\n </>\n );\n\n // `surface=\"flat\"` skips the Card wrapper — the consumer is\n // already inside a Card / Sheet and doesn't want a double border.\n const inner = (\n <>\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]\">\n {headerSlot}\n <h2\n id={headingId}\n className=\"type-title-card ds:m-0 ds:text-[color:var(--foreground)]\"\n >\n {resolvedHeading}\n </h2>\n </div>\n {body}\n </>\n );\n\n return (\n <div\n ref={ref}\n role=\"region\"\n aria-label={resolvedAriaLabel}\n aria-labelledby={headingId}\n data-component=\"contact-profile-card\"\n data-component-id={id}\n id={id}\n className={rootVariants({ surface, className })}\n {...rest}\n >\n {surface === 'elevated' ? (\n <Card variant=\"elevated\">\n <Card.Body className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]\">\n {inner}\n </Card.Body>\n </Card>\n ) : (\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]\">\n {inner}\n </div>\n )}\n </div>\n );\n },\n);\n\nContactProfileCard.displayName = 'ContactProfileCard';\n\n// Helper export so consumers can mirror the kit's row order if they\n// need to compose a partial alternative (rare).\nexport const CONTACT_PROFILE_CARD_ROW_KEYS = [\n 'address',\n 'phone',\n 'whatsapp',\n 'email',\n 'website',\n 'languages',\n 'insurances',\n 'firstVisitPrice',\n 'expertForAnxiousPatients',\n 'profession',\n] as const;\n\n// Defensive icon export so consumers can render the same glyph\n// outside the card if they need it for consistency.\nexport const CONTACT_PROFILE_CARD_ROW_ICONS: Record<\n (typeof CONTACT_PROFILE_CARD_ROW_KEYS)[number],\n LucideIcon\n> = {\n address: MapPin,\n phone: Phone,\n whatsapp: MessageCircle,\n email: Mail,\n website: Globe,\n languages: LanguagesIcon,\n insurances: ShieldCheck,\n firstVisitPrice: Banknote,\n expertForAnxiousPatients: Heart,\n profession: Stethoscope,\n};\n\n// Re-exports of the rootVariants type for downstream typing.\nexport type ContactProfileCardSurface = NonNullable<\n VariantProps<typeof rootVariants>['surface']\n>;\n\n// ExternalLink is exported by lucide-react and used elsewhere in the\n// kit; re-exporting here so consumers don't have to add it as a\n// peer-dep import for icon parity in their own UIs.\nexport { ExternalLink };\n"],"names":["__iconNode","Banknote","createLucideIcon","Phone","contactProfileCardAgent","handle","rootVariants","cva","normalisePhone","raw","buildWhatsAppHref","number","message","base","buildMapHref","address","formatPrice","cents","currency","locale","getStaticMapMarkerHex","match","MapThumbStrip","apiKey","center","zoom","altText","markerHex","src","jsx","ContactProfileCard","forwardRef","heading","description","phone","whatsappNumber","whatsappMessage","email","website","languages","languageLabels","insurances","firstVisitPriceCents","currencyCode","profession","specializedInFearPatients","googleMapsApiKey","mapZoom","onPhoneClick","onWhatsAppClick","onMapClick","onEmailClick","headerSlot","footerSlot","mapSlot","surface","ariaLabel","id","className","rest","ref","t","i18n","useTranslation","headingId","useId","resolvedHeading","resolvedAriaLabel","formattedPrice","useMemo","rows","MapPin","jsxs","Link","MessageCircle","Mail","Globe","resolveLabel","code","key","LanguagesIcon","Badge","ShieldCheck","ins","Heart","Stethoscope","useAgentRegistration","mapThumb","mapArea","body","Fragment","KeyValueList","row","KeyValuePair","inner","Card","CONTACT_PROFILE_CARD_ROW_KEYS","CONTACT_PROFILE_CARD_ROW_ICONS"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,KAAa;AAAA,EACjB,CAAC,QAAQ,EAAE,OAAO,MAAM,QAAQ,MAAM,GAAG,KAAK,GAAG,KAAK,IAAI,KAAK,KAAK,SAAQ,CAAE;AAAA,EAC9E,CAAC,UAAU,EAAE,IAAI,MAAM,IAAI,MAAM,GAAG,KAAK,KAAK,UAAU;AAAA,EACxD,CAAC,QAAQ,EAAE,GAAG,uBAAuB,KAAK,SAAQ,CAAE;AACtD,GACMC,IAAWC,EAAiB,YAAYF,EAAU;ACdxD;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,KAAa;AAAA,EACjB;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA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A,IAAA,GACH;AAGF,WACE,gBAAA5D;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAA+B;AAAA,QACA,MAAK;AAAA,QACL,cAAYO;AAAA,QACZ,mBAAiBH;AAAA,QACjB,kBAAe;AAAA,QACf,qBAAmBP;AAAA,QACnB,IAAAA;AAAA,QACA,WAAWnD,GAAa,EAAE,SAAAiD,GAAS,WAAAG,IAAW;AAAA,QAC7C,GAAGC;AAAA,QAEH,gBAAY,aACX,gBAAA9B,EAACkE,KAAK,SAAQ,YACZ,4BAACA,EAAK,MAAL,EAAU,WAAU,kDAClB,aACH,EAAA,CACF,sBAEC,OAAA,EAAI,WAAU,kDACZ,UAAAD,EAAA,CACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;AAEAhE,GAAmB,cAAc;AAI1B,MAAMkE,KAAgC;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAIaC,KAGT;AAAA,EACF,SAAS1B;AAAA,EACT,OAAOpE;AAAA,EACP,UAAUuE;AAAA,EACV,OAAOC;AAAA,EACP,SAASC;AAAA,EACT,WAAWI;AAAAA,EACX,YAAYE;AAAA,EACZ,iBAAiBjF;AAAA,EACjB,0BAA0BmF;AAAA,EAC1B,YAAYC;AACd;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"contact-profile-card-DHyuAPXM.js","sources":["../../node_modules/lucide-react/dist/esm/icons/banknote.js","../../node_modules/lucide-react/dist/esm/icons/phone.js","../../src/components/contact-profile-card/contact-profile-card.agent.ts","../../src/components/contact-profile-card/contact-profile-card.tsx"],"sourcesContent":["/**\n * @license lucide-react v1.8.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"rect\", { width: \"20\", height: \"12\", x: \"2\", y: \"6\", rx: \"2\", key: \"9lu3g6\" }],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"2\", key: \"1c9p78\" }],\n [\"path\", { d: \"M6 12h.01M18 12h.01\", key: \"113zkx\" }]\n];\nconst Banknote = createLucideIcon(\"banknote\", __iconNode);\n\nexport { __iconNode, Banknote as default };\n//# sourceMappingURL=banknote.js.map\n","/**\n * @license lucide-react v1.8.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384\",\n key: \"9njp5v\"\n }\n ]\n];\nconst Phone = createLucideIcon(\"phone\", __iconNode);\n\nexport { __iconNode, Phone as default };\n//# sourceMappingURL=phone.js.map\n","import type { AgentAdapter } from '../../agent/types';\nimport type { ContactProfileCardHandle } from './contact-profile-card';\n\n/* -------------------------------------------------------------------- */\n/* Agent adapter — ContactProfileCard */\n/* */\n/* Read-only adapter. Surfaces the rendered profession field so an */\n/* agent / MCP runtime can resolve \"what kind of practice is this?\" */\n/* without re-parsing the DOM. No actions yet — the card is a passive */\n/* presentation surface; navigation lives on the consumer's page. */\n/* -------------------------------------------------------------------- */\n\nexport const contactProfileCardAgent: AgentAdapter<ContactProfileCardHandle> = {\n id: 'contact-profile-card',\n capabilities: ['view_change'],\n state: {\n profession: {\n type: 'string',\n descriptionKey: 'ui.agent.contactProfileCard.state.profession',\n description:\n 'Profession string the card is currently rendering — undefined when the consumer omitted it.',\n read: (handle) => handle.getProfession(),\n },\n },\n actions: {},\n domHooks: {\n root: {\n attr: 'data-component',\n value: 'contact-profile-card',\n description: 'Marks the ContactProfileCard root region.',\n },\n instanceId: {\n attr: 'data-component-id',\n sourceProp: 'id',\n description: 'Sourced from the id prop.',\n },\n },\n};\n","import {\n forwardRef,\n useId,\n useMemo,\n type ComponentPropsWithoutRef,\n type ReactElement,\n type ReactNode,\n} from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { useTranslation } from 'react-i18next';\nimport {\n Banknote,\n ExternalLink,\n Globe,\n Heart,\n Languages as LanguagesIcon,\n Mail,\n MapPin,\n MessageCircle,\n Phone,\n ShieldCheck,\n Stethoscope,\n type LucideIcon,\n} from 'lucide-react';\nimport { Badge } from '../badge/badge';\nimport { Card } from '../card/card';\nimport { KeyValueList, KeyValuePair } from '../key-value-pair/key-value-pair';\nimport { Link } from '../link/link';\nimport { useAgentRegistration } from '../../agent/registry';\nimport { contactProfileCardAgent } from './contact-profile-card.agent';\n\n/* -------------------------------------------------------------------- */\n/* ContactProfileCard */\n/* */\n/* Replaces the bespoke \"Profilo\" / \"Practice info\" cards that every */\n/* AlfaDocs surface composes by hand (booking-website PracticeInfoCard, */\n/* alfascribe operator pages, builders docs example, …). Composes Card */\n/* + KeyValueList + KeyValuePair so the labels share a column (no */\n/* zigzag values) and every row uses the same lucide icon family. */\n/* */\n/* The component is intentionally opinionated: every field is optional, */\n/* but the ORDER, ICONS, and LABELS are owned by the kit. Consumers */\n/* pass the data; the kit owns the visual + i18n. */\n/* */\n/* All visible text flows through `useTranslation('ui')` against the */\n/* `contactProfileCard.*` namespace. */\n/* -------------------------------------------------------------------- */\n\n/* -------------------------------------------------------------------- */\n/* CVA */\n/* -------------------------------------------------------------------- */\n\n// Override the KVP icon colour at the card root so every inner row's\n// leading glyph paints with `--accent` (brand magenta/violet) instead\n// of the default `--muted-foreground`. The ContactProfileCard is a\n// marketing surface — muted icons read as disabled against the\n// otherwise saturated card chrome. Scoped via CSS custom property so\n// only this card's icons shift; standalone KVPs elsewhere keep\n// `--muted-foreground`.\nconst rootVariants = cva(\n 'ds:w-full ds:text-[color:var(--foreground)] ds:[--key-value-pair-icon-color:var(--accent)]',\n {\n variants: {\n // Matches the kit's other `surface` props (Booking, ReviewsPanel).\n // The card itself renders `<Card variant=\"elevated\">` so the\n // `surface=\"flat\"` opt-out is rare — most consumers want the\n // boundary.\n surface: {\n flat: '',\n elevated: '',\n },\n },\n defaultVariants: { surface: 'elevated' },\n },\n);\n\n/* -------------------------------------------------------------------- */\n/* Public types */\n/* -------------------------------------------------------------------- */\n\nexport interface ContactProfileCardAddress {\n /** Display text — already formatted by the consumer (street, postcode, city). */\n line: string;\n /** Optional lat/lng — drives the static-map link + the embedded thumbnail. */\n lat?: number;\n lng?: number;\n}\n\nexport interface ContactProfileCardHandle {\n /** Resolved consumer-supplied data — useful for agent introspection. */\n getProfession: () => string | undefined;\n}\n\nexport interface ContactProfileCardProps extends Omit<\n ComponentPropsWithoutRef<'div'>,\n 'aria-label' | 'children' | 'children'\n> {\n /**\n * Override the localised \"Profilo\" / \"Profile\" heading. Most\n * consumers leave this unset.\n */\n heading?: string;\n /**\n * Free-text intro paragraph rendered above the data rows (e.g.\n * the practice's `bookingDescription` field). When omitted, the\n * card jumps straight into the data rows.\n */\n description?: string;\n\n /* ----- Identity rows ----- */\n\n /** Street + postcode + city, with optional lat/lng for the map link. */\n address?: ContactProfileCardAddress;\n /** Phone number, displayed as-is. Compiled into a `tel:` link. */\n phone?: string;\n /**\n * WhatsApp number — digits only (no `+`, no spaces). Compiled into\n * a `https://wa.me/<number>` link with an optional pre-filled message.\n */\n whatsappNumber?: string;\n /** Optional pre-filled WhatsApp message. Consumer-localised. */\n whatsappMessage?: string;\n /** Public-facing email. Compiled into a `mailto:` link. */\n email?: string;\n /** Practice website (already an absolute URL with protocol). */\n website?: string;\n\n /* ----- Embedded map thumbnail ----- */\n\n /**\n * Google Maps Static API key. When provided alongside `address.lat`\n * and `address.lng`, renders a static-map thumbnail at the top of\n * the card — a single one-shot `<img>` fetch, no JS SDK boot, no\n * consent gate needed (the same pattern PracticeResults uses).\n *\n * Without it (or without coords), the card renders info rows only —\n * the address row's \"Open in Google Maps\" link is still emitted as\n * a real `<a>` so the spatial cue isn't lost.\n *\n * Additive — existing consumers that don't pass this prop see the\n * same render as before.\n */\n googleMapsApiKey?: string;\n /**\n * Zoom level for the embedded map thumbnail. Default `14` —\n * neighbourhood-level, shows the pin in context. Ignored when the\n * thumbnail isn't rendered.\n */\n mapZoom?: number;\n\n /* ----- Profile metadata ----- */\n\n /**\n * ISO 639-1 language codes the practice speaks. Rendered as\n * `<Badge variant=\"neutral\">` chips. Each code is auto-resolved\n * into the active locale's native language name via the kit's\n * built-in `languages.<iso>` i18n bundle (18 ISO codes × 18\n * locales). For example `languages={['it', 'en']}` with\n * `i18n.language === 'it'` renders \"Italiano\" + \"Inglese\".\n *\n * Unknown / unbundled codes fall back to the uppercase ISO code\n * (`'xyz'` → `'XYZ'`). To override a specific label — regional\n * dialect, brand-voice variant, codes the kit doesn't ship — pass\n * `languageLabels`.\n */\n languages?: string[];\n /**\n * Override map from ISO code → display label, applied on top of\n * the kit's i18n auto-resolution. Only set when you need a\n * consumer-specific label for a code — the typical case is\n * regional dialect / brand-voice variants / non-ISO codes.\n *\n * Resolution order: `languageLabels[code]` > `t('languages.<code>')`\n * > `code.toUpperCase()`.\n */\n languageLabels?: Record<string, string>;\n /**\n * Insurance / convention strings (consumer-supplied, free text).\n * Rendered as `<Badge variant=\"info\">` chips.\n */\n insurances?: string[];\n /**\n * First-visit price in the smallest currency unit (cents / centesimi).\n * Formatted via `Intl.NumberFormat`. Omit when the consumer doesn't\n * want to show the price.\n */\n firstVisitPriceCents?: number;\n /** ISO-4217 currency code for the price formatter. Defaults to `EUR`. */\n currencyCode?: string;\n /** Profession line — single value or already-joined comma list. */\n profession?: string;\n /** Show the \"expert for anxious patients\" row when true. */\n specializedInFearPatients?: boolean;\n\n /* ----- Telemetry hooks ----- */\n\n /**\n * Fires when the patient clicks the phone link. The kit emits a\n * `track('practice_profile_card_phone_click')` event before\n * invoking this — gate consumer-side analytics on the same event\n * to avoid duplicate fires.\n */\n onPhoneClick?: () => void;\n /** Fires when the patient clicks the WhatsApp link. */\n onWhatsAppClick?: () => void;\n /** Fires when the patient clicks the static-map link. */\n onMapClick?: () => void;\n /** Fires when the patient clicks the email mailto link. */\n onEmailClick?: () => void;\n\n /* ----- Slots ----- */\n\n /**\n * Rendered above the heading — e.g. a `<Avatar>` for the operator\n * variant, or a coloured chip strip. Optional.\n */\n headerSlot?: ReactNode;\n /**\n * Render an arbitrary map widget at the top of the card chrome —\n * replaces the built-in static `<img>` thumbnail that\n * `googleMapsApiKey` would otherwise produce. Use this when you\n * want an interactive map inside the card boundary instead of a\n * fixed image:\n *\n * <ContactProfileCard\n * mapSlot={\n * <PracticeMap practice={practice} googleMapsApiKey={key} />\n * }\n * …\n * />\n *\n * When both `mapSlot` and `googleMapsApiKey` are provided, the slot\n * wins (explicit > implicit). When neither is provided, no map area\n * renders. The slot is unstyled — pass through any container chrome\n * the consumer wants (e.g. a fixed height wrapper). The kit\n * positions it where the static thumbnail would have lived.\n */\n mapSlot?: ReactNode;\n /**\n * Rendered at the end of the card body, below the rows. Use for\n * a \"Book now\" `<Button>` or a \"View full profile\" link.\n */\n footerSlot?: ReactNode;\n\n /* ----- Styling ----- */\n\n /**\n * `'elevated'` (default) wraps the card in `<Card variant=\"elevated\">`\n * for a defined surface — what most consumers want when the card\n * stands alone on a page. `'flat'` drops the Card chrome so the\n * content sits naked — use when an outer card / sheet already\n * provides the boundary (e.g. embedded inside a `<Sheet>` or a\n * parent `<Card.Body>`).\n */\n surface?: 'flat' | 'elevated';\n\n /* ----- a11y ----- */\n\n /** Override the default region aria-label. */\n 'aria-label'?: string;\n /** Agent-readiness consumer id, surfaced as `data-component-id`. */\n id?: string;\n}\n\n/* -------------------------------------------------------------------- */\n/* Helpers */\n/* -------------------------------------------------------------------- */\n\n/** Strip everything except digits + leading `+` for `tel:` URLs. */\nfunction normalisePhone(raw: string): string {\n return raw.replace(/[^\\d+]/g, '');\n}\n\n/** Build the WhatsApp `wa.me` URL. Number must already be digits-only. */\nfunction buildWhatsAppHref(number: string, message?: string): string {\n const base = `https://wa.me/${number}`;\n if (!message) return base;\n return `${base}?text=${encodeURIComponent(message)}`;\n}\n\n/** Google Maps search query — works without an API key. */\nfunction buildMapHref(address: ContactProfileCardAddress): string {\n const q = encodeURIComponent(address.line);\n return `https://www.google.com/maps/search/?api=1&query=${q}`;\n}\n\n/** Format price (cents → currency string) using the consumer's locale. */\nfunction formatPrice(cents: number, currency: string, locale: string): string {\n try {\n return new Intl.NumberFormat(locale, {\n style: 'currency',\n currency,\n }).format(cents / 100);\n } catch {\n // Locale or currency code rejected — fall back to a plain decimal.\n return (cents / 100).toFixed(2);\n }\n}\n\n/* -------------------------------------------------------------------- */\n/* MapThumbStrip — embedded Google Static Maps image */\n/* */\n/* Full-width strip rendered at the top of the card when the consumer */\n/* supplies both `address.lat`/`lng` and `googleMapsApiKey`. Same */\n/* one-shot `<img>` strategy as PracticeResults' StaticMapThumb (no JS */\n/* SDK boot → no consent gate needed), but full-card-width instead of */\n/* a 12rem aside. */\n/* -------------------------------------------------------------------- */\n\ninterface MapThumbStripProps {\n apiKey: string;\n center: { lat: number; lng: number };\n zoom: number;\n altText: string;\n}\n\n/**\n * Resolve the kit's `--map-marker-color` token to a six-character hex\n * string (no leading `#`) for Google Static Maps' `markers=color:` URL\n * parameter, which requires a literal hex value at fetch time.\n *\n * SSR-safe: when `document` is undefined we fall back to the kit's\n * brand violet. Same helper as PracticeResults — keep in sync if you\n * touch one.\n */\nfunction getStaticMapMarkerHex(): string {\n if (typeof document === 'undefined') return '4945a3';\n const raw = getComputedStyle(document.documentElement)\n .getPropertyValue('--map-marker-color')\n .trim();\n const match = /^#?([0-9a-fA-F]{6})$/.exec(raw);\n return match ? match[1] : '4945a3';\n}\n\nfunction MapThumbStrip({ apiKey, center, zoom, altText }: MapThumbStripProps) {\n // 640×192 keeps the asset under Google's 1MP free tier at scale=2\n // (1280×384 actual) and matches the strip's 12rem height at a\n // ~3.33:1 aspect ratio. Marker colour resolves from the kit's\n // `--map-marker-color` token at runtime so the value still lives\n // in `src/tokens/**` per the closed-palette constraint.\n const markerHex = getStaticMapMarkerHex();\n const src =\n `https://maps.googleapis.com/maps/api/staticmap` +\n `?center=${center.lat},${center.lng}` +\n `&zoom=${zoom}` +\n `&size=640x192&scale=2` +\n `&markers=color:0x${markerHex}%7C${center.lat},${center.lng}` +\n `&key=${encodeURIComponent(apiKey)}`;\n return (\n <img\n src={src}\n alt={altText}\n loading=\"lazy\"\n decoding=\"async\"\n width={640}\n height={192}\n className=\"ds:block ds:inline-size-full ds:block-size-[12rem] ds:[object-fit:cover] ds:rounded-[var(--radius-md)]\"\n />\n );\n}\n\n/* -------------------------------------------------------------------- */\n/* Component */\n/* -------------------------------------------------------------------- */\n\nexport const ContactProfileCard = forwardRef<\n HTMLDivElement,\n ContactProfileCardProps\n>(\n (\n {\n heading,\n description,\n address,\n phone,\n whatsappNumber,\n whatsappMessage,\n email,\n website,\n languages,\n languageLabels,\n insurances,\n firstVisitPriceCents,\n currencyCode = 'EUR',\n profession,\n specializedInFearPatients,\n googleMapsApiKey,\n mapZoom = 14,\n onPhoneClick,\n onWhatsAppClick,\n onMapClick,\n onEmailClick,\n headerSlot,\n footerSlot,\n mapSlot,\n surface = 'elevated',\n 'aria-label': ariaLabel,\n id,\n className,\n ...rest\n },\n ref,\n ) => {\n const { t, i18n } = useTranslation();\n const headingId = useId();\n const locale = i18n.language ?? 'en';\n\n const resolvedHeading = heading ?? t('contactProfileCard.heading');\n const resolvedAriaLabel = ariaLabel ?? resolvedHeading;\n\n const formattedPrice = useMemo(() => {\n if (firstVisitPriceCents == null) return undefined;\n return formatPrice(firstVisitPriceCents, currencyCode, locale);\n }, [firstVisitPriceCents, currencyCode, locale]);\n\n // Compose the rows in display order. Each `row` carries the icon +\n // localised label + the rendered value. Skipping a field is just\n // omitting the row — `KeyValueList` collapses the subgrid cleanly.\n const rows: Array<{\n key: string;\n icon: ReactElement;\n label: string;\n value: ReactNode;\n }> = [];\n\n if (address) {\n rows.push({\n key: 'address',\n icon: <MapPin aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.address'),\n value: (\n <span className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]\">\n <span>{address.line}</span>\n {address.lat != null && address.lng != null ? (\n <Link\n href={buildMapHref(address)}\n external\n intent=\"default\"\n onClick={onMapClick}\n >\n {t('contactProfileCard.openInGoogleMaps')}\n </Link>\n ) : null}\n </span>\n ),\n });\n }\n\n if (phone) {\n rows.push({\n key: 'phone',\n icon: <Phone aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.phone'),\n value: (\n <Link\n href={`tel:${normalisePhone(phone)}`}\n intent=\"default\"\n onClick={onPhoneClick}\n >\n {phone}\n </Link>\n ),\n });\n }\n\n if (whatsappNumber) {\n rows.push({\n key: 'whatsapp',\n icon: <MessageCircle aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.whatsapp'),\n value: (\n <Link\n href={buildWhatsAppHref(whatsappNumber, whatsappMessage)}\n external\n intent=\"default\"\n onClick={onWhatsAppClick}\n >\n {whatsappNumber}\n </Link>\n ),\n });\n }\n\n if (email) {\n rows.push({\n key: 'email',\n icon: <Mail aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.email'),\n value: (\n <Link\n href={`mailto:${email}`}\n intent=\"default\"\n onClick={onEmailClick}\n >\n {email}\n </Link>\n ),\n });\n }\n\n if (website) {\n rows.push({\n key: 'website',\n icon: <Globe aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.website'),\n value: (\n <Link href={website} external intent=\"default\">\n {website}\n </Link>\n ),\n });\n }\n\n if (languages && languages.length > 0) {\n // Resolution order, highest to lowest:\n // 1. consumer `languageLabels` override — for regional dialects,\n // brand-voice variants, or codes the kit doesn't ship.\n // 2. kit i18n bundle (`languages.<iso>`) — auto-resolves the 18\n // ISO codes the kit ships into the active locale's native\n // language name. Retires consumer-side ISO→label plumbing.\n // 3. uppercase fallback for unknown codes that the consumer\n // didn't override.\n const resolveLabel = (code: string): string => {\n if (languageLabels?.[code]) return languageLabels[code];\n const key = `languages.${code}`;\n if (i18n.exists(key)) return t(key);\n return code.toUpperCase();\n };\n rows.push({\n key: 'languages',\n icon: <LanguagesIcon aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.languages'),\n value: (\n <span className=\"ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]\">\n {languages.map((code) => (\n <Badge key={code} variant=\"neutral\">\n {resolveLabel(code)}\n </Badge>\n ))}\n </span>\n ),\n });\n }\n\n if (insurances && insurances.length > 0) {\n rows.push({\n key: 'insurances',\n icon: <ShieldCheck aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.insurances'),\n value: (\n <span className=\"ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]\">\n {insurances.map((ins) => (\n <Badge key={ins} variant=\"info\">\n {ins}\n </Badge>\n ))}\n </span>\n ),\n });\n }\n\n if (formattedPrice) {\n rows.push({\n key: 'firstVisitPrice',\n icon: <Banknote aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.firstVisitPrice'),\n value: formattedPrice,\n });\n }\n\n if (specializedInFearPatients) {\n rows.push({\n key: 'expertForAnxiousPatients',\n icon: <Heart aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.expertForAnxiousPatients'),\n value: t('contactProfileCard.value.yesShort'),\n });\n }\n\n if (profession) {\n rows.push({\n key: 'profession',\n icon: <Stethoscope aria-hidden=\"true\" />,\n label: t('contactProfileCard.label.profession'),\n value: profession,\n });\n }\n\n // Imperative handle for agent integrations.\n useAgentRegistration(\n contactProfileCardAgent,\n { getProfession: () => profession },\n id,\n );\n\n // Embedded static-map thumbnail. Renders only when the consumer\n // supplies BOTH a usable lat/lng pair AND a `googleMapsApiKey`.\n // The d.ts-promised behaviour; without a key the strip is silently\n // omitted and the address row's \"Open in Google Maps\" link still\n // emits as the spatial-cue fallback.\n const showMapThumb =\n !!googleMapsApiKey &&\n address?.lat !== undefined &&\n address?.lng !== undefined;\n const mapThumb = showMapThumb ? (\n <MapThumbStrip\n apiKey={googleMapsApiKey!}\n center={{ lat: address!.lat!, lng: address!.lng! }}\n zoom={mapZoom}\n altText={t('contactProfileCard.map.alt', {\n address: address!.line,\n defaultValue: 'Map showing {{address}}',\n })}\n />\n ) : null;\n\n // Map area: explicit consumer slot wins over the implicit\n // googleMapsApiKey-driven static thumbnail. 0.33.4 introduces the\n // slot so consumers can embed an interactive <MapView> /\n // <PracticeMap> wrapper inside the card chrome instead of the\n // fixed static <img>. When neither is set the area renders as\n // nothing. 0.33.6 moves the area from above the heading to below\n // the data rows — the map reads as the spatial closer (\"here it\n // is on the map\") rather than a stylised hero, and any CTA in\n // footerSlot still lands at the very bottom.\n const mapArea = mapSlot ?? mapThumb;\n\n const body = (\n <>\n {description ? (\n <p className=\"type-body-sm ds:m-0 ds:whitespace-pre-line\">\n {description}\n </p>\n ) : null}\n {rows.length > 0 ? (\n <KeyValueList rowGap=\"md\">\n {rows.map((row) => (\n <KeyValuePair\n key={row.key}\n icon={row.icon}\n label={row.label}\n value={row.value}\n />\n ))}\n </KeyValueList>\n ) : null}\n {mapArea}\n {footerSlot}\n </>\n );\n\n // `surface=\"flat\"` skips the Card wrapper — the consumer is\n // already inside a Card / Sheet and doesn't want a double border.\n const inner = (\n <>\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]\">\n {headerSlot}\n <h2\n id={headingId}\n className=\"type-title-card ds:m-0 ds:text-[color:var(--foreground)]\"\n >\n {resolvedHeading}\n </h2>\n </div>\n {body}\n </>\n );\n\n return (\n <div\n ref={ref}\n role=\"region\"\n aria-label={resolvedAriaLabel}\n aria-labelledby={headingId}\n data-component=\"contact-profile-card\"\n data-component-id={id}\n id={id}\n className={rootVariants({ surface, className })}\n {...rest}\n >\n {surface === 'elevated' ? (\n <Card variant=\"elevated\">\n <Card.Body className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]\">\n {inner}\n </Card.Body>\n </Card>\n ) : (\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]\">\n {inner}\n </div>\n )}\n </div>\n );\n },\n);\n\nContactProfileCard.displayName = 'ContactProfileCard';\n\n// Helper export so consumers can mirror the kit's row order if they\n// need to compose a partial alternative (rare).\nexport const CONTACT_PROFILE_CARD_ROW_KEYS = [\n 'address',\n 'phone',\n 'whatsapp',\n 'email',\n 'website',\n 'languages',\n 'insurances',\n 'firstVisitPrice',\n 'expertForAnxiousPatients',\n 'profession',\n] as const;\n\n// Defensive icon export so consumers can render the same glyph\n// outside the card if they need it for consistency.\nexport const CONTACT_PROFILE_CARD_ROW_ICONS: Record<\n (typeof CONTACT_PROFILE_CARD_ROW_KEYS)[number],\n LucideIcon\n> = {\n address: MapPin,\n phone: Phone,\n whatsapp: MessageCircle,\n email: Mail,\n website: Globe,\n languages: LanguagesIcon,\n insurances: ShieldCheck,\n firstVisitPrice: Banknote,\n expertForAnxiousPatients: Heart,\n profession: Stethoscope,\n};\n\n// Re-exports of the rootVariants type for downstream typing.\nexport type ContactProfileCardSurface = NonNullable<\n VariantProps<typeof rootVariants>['surface']\n>;\n\n// ExternalLink is exported by lucide-react and used elsewhere in the\n// kit; re-exporting here so consumers don't have to add it as a\n// peer-dep import for icon parity in their own UIs.\nexport { ExternalLink };\n"],"names":["__iconNode","Banknote","createLucideIcon","Phone","contactProfileCardAgent","handle","rootVariants","cva","normalisePhone","raw","buildWhatsAppHref","number","message","base","buildMapHref","address","formatPrice","cents","currency","locale","getStaticMapMarkerHex","match","MapThumbStrip","apiKey","center","zoom","altText","markerHex","src","jsx","ContactProfileCard","forwardRef","heading","description","phone","whatsappNumber","whatsappMessage","email","website","languages","languageLabels","insurances","firstVisitPriceCents","currencyCode","profession","specializedInFearPatients","googleMapsApiKey","mapZoom","onPhoneClick","onWhatsAppClick","onMapClick","onEmailClick","headerSlot","footerSlot","mapSlot","surface","ariaLabel","id","className","rest","ref","t","i18n","useTranslation","headingId","useId","resolvedHeading","resolvedAriaLabel","formattedPrice","useMemo","rows","MapPin","jsxs","Link","MessageCircle","Mail","Globe","resolveLabel","code","key","LanguagesIcon","Badge","ShieldCheck","ins","Heart","Stethoscope","useAgentRegistration","mapThumb","mapArea","body","Fragment","KeyValueList","row","KeyValuePair","inner","Card","CONTACT_PROFILE_CARD_ROW_KEYS","CONTACT_PROFILE_CARD_ROW_ICONS"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,KAAa;AAAA,EACjB,CAAC,QAAQ,EAAE,OAAO,MAAM,QAAQ,MAAM,GAAG,KAAK,GAAG,KAAK,IAAI,KAAK,KAAK,SAAQ,CAAE;AAAA,EAC9E,CAAC,UAAU,EAAE,IAAI,MAAM,IAAI,MAAM,GAAG,KAAK,KAAK,UAAU;AAAA,EACxD,CAAC,QAAQ,EAAE,GAAG,uBAAuB,KAAK,SAAQ,CAAE;AACtD,GACMC,IAAWC,EAAiB,YAAYF,EAAU;ACdxD;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,KAAa;AAAA,EACjB;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IACX;AAAA,EACA;AACA,GACMG,IAAQD,EAAiB,SAASF,EAAU,GCNrCI,KAAkE;AAAA,EAC7E,IAAI;AAAA,EACJ,cAAc,CAAC,aAAa;AAAA,EAC5B,OAAO;AAAA,IACL,YAAY;AAAA,MACV,MAAM;AAAA,MACN,gBAAgB;AAAA,MAChB,aACE;AAAA,MACF,MAAM,CAACC,MAAWA,EAAO,cAAA;AAAA,IAAc;AAAA,EACzC;AAAA,EAEF,SAAS,CAAA;AAAA,EACT,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,OAAO;AAAA,MACP,aAAa;AAAA,IAAA;AAAA,IAEf,YAAY;AAAA,MACV,MAAM;AAAA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;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;AAEAhE,GAAmB,cAAc;AAI1B,MAAMkE,KAAgC;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAIaC,KAGT;AAAA,EACF,SAAS1B;AAAA,EACT,OAAOpE;AAAA,EACP,UAAUuE;AAAA,EACV,OAAOC;AAAA,EACP,SAASC;AAAA,EACT,WAAWI;AAAAA,EACX,YAAYE;AAAA,EACZ,iBAAiBjF;AAAA,EACjB,0BAA0BmF;AAAA,EAC1B,YAAYC;AACd;","x_google_ignoreList":[0,1]}
@@ -0,0 +1,185 @@
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as D, useState as h, useMemo as y, useEffect as E } from "react";
3
+ import { c as _ } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as F } from "react-i18next";
5
+ import { F as C } from "./form-field-BOm9hK35.js";
6
+ import { D as A } from "./date-picker-CvQfs6Xh.js";
7
+ import { N as S } from "./number-input-Dj5L3pXK.js";
8
+ import { B as x } from "./badge-zsf5i5bH.js";
9
+ import { I as T } from "./insert-result-yJ0QavoN.js";
10
+ import { a as n } from "./react-day-picker-CdtIiKjx.js";
11
+ import { C as W } from "./check-DPdL_Sm7.js";
12
+ import { H as $ } from "./heart-C0faivFf.js";
13
+ import { c as H } from "./createLucideIcon-CrFbzy84.js";
14
+ /**
15
+ * @license lucide-react v1.8.0 - ISC
16
+ *
17
+ * This source code is licensed under the ISC license.
18
+ * See the LICENSE file in the root directory of this source tree.
19
+ */
20
+ const I = [
21
+ [
22
+ "path",
23
+ {
24
+ d: "M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",
25
+ key: "c7niix"
26
+ }
27
+ ]
28
+ ], z = H("droplet", I), v = 28, k = 14, B = 1;
29
+ function Y(m, c = 3) {
30
+ const d = m.cycleLength ?? v, { lastPeriodStart: o } = m, i = n(o, d - k), u = {
31
+ start: n(i, -5),
32
+ end: n(i, B)
33
+ }, f = n(o, d), t = Array.from(
34
+ { length: c },
35
+ (p, s) => n(o, d * (s + 1))
36
+ );
37
+ return { nextPeriod: f, ovulation: i, fertileWindow: u, upcomingPeriods: t };
38
+ }
39
+ const j = _("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
40
+ variants: {
41
+ width: { full: "ds:w-full", auto: "ds:inline-flex" }
42
+ },
43
+ defaultVariants: { width: "full" }
44
+ }), M = D(
45
+ ({
46
+ defaultCycleLength: m = v,
47
+ onResultChange: c,
48
+ onInsert: d,
49
+ id: o,
50
+ width: i,
51
+ className: u
52
+ }, f) => {
53
+ const { t, i18n: p } = F(), [s, N] = h(void 0), [g, L] = h(
54
+ m
55
+ ), a = y(() => s ? Y({
56
+ lastPeriodStart: s,
57
+ cycleLength: g ?? v
58
+ }) : null, [s, g]), P = y(
59
+ () => new Intl.DateTimeFormat(p.language, { dateStyle: "medium" }),
60
+ [p.language]
61
+ );
62
+ E(() => {
63
+ c == null || c(a);
64
+ }, [a, c]);
65
+ const w = y(() => /* @__PURE__ */ new Date(), []), l = (b) => P.format(b);
66
+ return /* @__PURE__ */ r(
67
+ "div",
68
+ {
69
+ ref: f,
70
+ "data-component": "cycle-calculator",
71
+ "data-component-id": o,
72
+ className: j({ width: i, className: u }),
73
+ children: [
74
+ /* @__PURE__ */ r("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
75
+ /* @__PURE__ */ e(C, { label: t("cycleCalculator.lastPeriod"), children: /* @__PURE__ */ e(
76
+ A,
77
+ {
78
+ value: s,
79
+ onChange: N,
80
+ maxDate: w
81
+ }
82
+ ) }),
83
+ /* @__PURE__ */ e(
84
+ C,
85
+ {
86
+ label: t("cycleCalculator.cycleLength"),
87
+ description: t("cycleCalculator.cycleLengthHint"),
88
+ children: /* @__PURE__ */ e(
89
+ S,
90
+ {
91
+ mode: "integer",
92
+ min: 20,
93
+ max: 45,
94
+ value: g,
95
+ onChange: L
96
+ }
97
+ )
98
+ }
99
+ )
100
+ ] }),
101
+ /* @__PURE__ */ e("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: a ? `${t("cycleCalculator.ovulation")}: ${l(a.ovulation)}. ${t(
102
+ "cycleCalculator.nextPeriod"
103
+ )}: ${l(a.nextPeriod)}.` : "" }),
104
+ a ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
105
+ /* @__PURE__ */ r("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-3", children: [
106
+ /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:text-center", children: [
107
+ /* @__PURE__ */ e("dt", { className: "type-label ds:text-muted-foreground", children: t("cycleCalculator.ovulation") }),
108
+ /* @__PURE__ */ e("dd", { children: /* @__PURE__ */ e(
109
+ x,
110
+ {
111
+ variant: "success",
112
+ size: "lg",
113
+ leading: /* @__PURE__ */ e(W, { "aria-hidden": !0 }),
114
+ children: l(a.ovulation)
115
+ }
116
+ ) })
117
+ ] }),
118
+ /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:text-center", children: [
119
+ /* @__PURE__ */ e("dt", { className: "type-label ds:text-muted-foreground", children: t("cycleCalculator.fertileWindow") }),
120
+ /* @__PURE__ */ e("dd", { children: /* @__PURE__ */ r(
121
+ x,
122
+ {
123
+ variant: "accent",
124
+ size: "lg",
125
+ leading: /* @__PURE__ */ e($, { "aria-hidden": !0 }),
126
+ children: [
127
+ l(a.fertileWindow.start),
128
+ " –",
129
+ " ",
130
+ l(a.fertileWindow.end)
131
+ ]
132
+ }
133
+ ) })
134
+ ] }),
135
+ /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:text-center", children: [
136
+ /* @__PURE__ */ e("dt", { className: "type-label ds:text-muted-foreground", children: t("cycleCalculator.nextPeriod") }),
137
+ /* @__PURE__ */ e("dd", { children: /* @__PURE__ */ e(
138
+ x,
139
+ {
140
+ variant: "error",
141
+ size: "lg",
142
+ leading: /* @__PURE__ */ e(z, { "aria-hidden": !0 }),
143
+ children: l(a.nextPeriod)
144
+ }
145
+ ) })
146
+ ] })
147
+ ] }),
148
+ d ? /* @__PURE__ */ e(
149
+ T,
150
+ {
151
+ onInsert: d,
152
+ card: {
153
+ title: t("insert.title.cycle"),
154
+ fields: [
155
+ {
156
+ label: t("cycleCalculator.ovulation"),
157
+ value: l(a.ovulation)
158
+ },
159
+ {
160
+ label: t("cycleCalculator.fertileWindow"),
161
+ value: `${l(a.fertileWindow.start)} – ${l(
162
+ a.fertileWindow.end
163
+ )}`
164
+ },
165
+ {
166
+ label: t("cycleCalculator.nextPeriod"),
167
+ value: l(a.nextPeriod)
168
+ }
169
+ ]
170
+ }
171
+ }
172
+ ) : null
173
+ ] }) : /* @__PURE__ */ e("p", { className: "type-body ds:text-muted-foreground", children: t("cycleCalculator.empty") })
174
+ ]
175
+ }
176
+ );
177
+ }
178
+ );
179
+ M.displayName = "CycleCalculator";
180
+ export {
181
+ M as C,
182
+ k as L,
183
+ Y as p
184
+ };
185
+ //# sourceMappingURL=cycle-calculator-B5Uj9QeT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cycle-calculator-B5Uj9QeT.js","sources":["../../node_modules/lucide-react/dist/esm/icons/droplet.js","../../src/components/cycle-calculator/cycle.ts","../../src/components/cycle-calculator/cycle-calculator.tsx"],"sourcesContent":["/**\n * @license lucide-react v1.8.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z\",\n key: \"c7niix\"\n }\n ]\n];\nconst Droplet = createLucideIcon(\"droplet\", __iconNode);\n\nexport { __iconNode, Droplet as default };\n//# sourceMappingURL=droplet.js.map\n","/* ------------------------------------------------------------------ */\n/* Menstrual-cycle prediction — pure, framework-free, unit-testable. */\n/* */\n/* Uses the standard fixed-luteal-phase model: ovulation falls ~14 days */\n/* before the next period, so on a cycle of length L ovulation is day */\n/* (L − 14). The fertile window spans the 5 days before ovulation */\n/* (sperm survival) through 1 day after (oocyte viability). */\n/* ------------------------------------------------------------------ */\n\nimport { addDays } from 'date-fns';\n\n/** Standard menstrual-cycle length. */\nexport const DEFAULT_CYCLE_LENGTH = 28;\n/** Luteal phase is biologically near-constant at ~14 days. */\nexport const LUTEAL_PHASE_DAYS = 14;\n/** Sperm survive up to ~5 days before ovulation. */\nexport const FERTILE_DAYS_BEFORE = 5;\n/** The oocyte is viable ~1 day after ovulation. */\nexport const FERTILE_DAYS_AFTER = 1;\n\nexport interface CycleInput {\n /** First day of the most recent period. */\n lastPeriodStart: Date;\n /** Average cycle length in days. Defaults to 28. */\n cycleLength?: number;\n /** Period (bleed) length in days. Optional — used for the period range. */\n periodLength?: number;\n}\n\nexport interface DateRange {\n start: Date;\n end: Date;\n}\n\nexport interface CyclePrediction {\n /** Start date of the next period. */\n nextPeriod: Date;\n /** Estimated ovulation date. */\n ovulation: Date;\n /** Fertile window (5 days before ovulation → 1 day after). */\n fertileWindow: DateRange;\n /** Start dates of the next few periods (length = `occurrences`). */\n upcomingPeriods: Date[];\n}\n\n/**\n * Predict ovulation, the fertile window and upcoming periods from the last\n * period's start date. `occurrences` controls how many future periods to\n * list (default 3).\n */\nexport function predictCycle(\n input: CycleInput,\n occurrences = 3,\n): CyclePrediction {\n const cycle = input.cycleLength ?? DEFAULT_CYCLE_LENGTH;\n const { lastPeriodStart } = input;\n\n const ovulation = addDays(lastPeriodStart, cycle - LUTEAL_PHASE_DAYS);\n const fertileWindow: DateRange = {\n start: addDays(ovulation, -FERTILE_DAYS_BEFORE),\n end: addDays(ovulation, FERTILE_DAYS_AFTER),\n };\n const nextPeriod = addDays(lastPeriodStart, cycle);\n const upcomingPeriods = Array.from({ length: occurrences }, (_, i) =>\n addDays(lastPeriodStart, cycle * (i + 1)),\n );\n\n return { nextPeriod, ovulation, fertileWindow, upcomingPeriods };\n}\n","/* ------------------------------------------------------------------ */\n/* CycleCalculator — predict ovulation, fertile window and upcoming */\n/* periods from the last period's start date. */\n/* */\n/* Maths lives in `./cycle` (pure, separately tested). */\n/* ------------------------------------------------------------------ */\n\nimport { forwardRef, useEffect, useMemo, useState } from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { useTranslation } from 'react-i18next';\nimport { Heart, Check, Droplet } from 'lucide-react';\nimport { FormField } from '../form-field';\nimport { DatePicker } from '../date-picker';\nimport { NumberInput } from '../number-input';\nimport { Badge } from '../badge';\nimport { InsertButton, type InsertPayload } from '../_shared/insert-result';\nimport {\n type CyclePrediction,\n predictCycle,\n DEFAULT_CYCLE_LENGTH,\n} from './cycle';\n\nconst rootVariants = cva('ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]', {\n variants: {\n width: { full: 'ds:w-full', auto: 'ds:inline-flex' },\n },\n defaultVariants: { width: 'full' },\n});\n\nexport interface CycleCalculatorProps extends VariantProps<\n typeof rootVariants\n> {\n /** Initial cycle length in days. Defaults to 28. */\n defaultCycleLength?: number;\n /** Fires whenever a prediction can be computed (and `null` when it can't). */\n onResultChange?: (result: CyclePrediction | null) => void;\n /** When provided, shows an \"Insert\" button that emits the result for an editor. */\n onInsert?: (payload: InsertPayload) => void;\n /** Opaque instance id, emitted as `data-component-id`. */\n id?: string;\n /** Extra class names on the wrapper. */\n className?: string;\n}\n\nexport const CycleCalculator = forwardRef<HTMLDivElement, CycleCalculatorProps>(\n (\n {\n defaultCycleLength = DEFAULT_CYCLE_LENGTH,\n onResultChange,\n onInsert,\n id,\n width,\n className,\n },\n ref,\n ) => {\n const { t, i18n } = useTranslation();\n\n const [lastPeriod, setLastPeriod] = useState<Date | undefined>(undefined);\n const [cycleLength, setCycleLength] = useState<number | null>(\n defaultCycleLength,\n );\n\n const result = useMemo<CyclePrediction | null>(() => {\n if (!lastPeriod) return null;\n return predictCycle({\n lastPeriodStart: lastPeriod,\n cycleLength: cycleLength ?? DEFAULT_CYCLE_LENGTH,\n });\n }, [lastPeriod, cycleLength]);\n\n const dateFormatter = useMemo(\n () => new Intl.DateTimeFormat(i18n.language, { dateStyle: 'medium' }),\n [i18n.language],\n );\n\n useEffect(() => {\n onResultChange?.(result);\n }, [result, onResultChange]);\n\n const today = useMemo(() => new Date(), []);\n\n const fmt = (d: Date): string => dateFormatter.format(d);\n\n return (\n <div\n ref={ref}\n data-component=\"cycle-calculator\"\n data-component-id={id}\n className={rootVariants({ width, className })}\n >\n <div className=\"ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2\">\n <FormField label={t('cycleCalculator.lastPeriod')}>\n <DatePicker\n value={lastPeriod}\n onChange={setLastPeriod}\n maxDate={today}\n />\n </FormField>\n <FormField\n label={t('cycleCalculator.cycleLength')}\n description={t('cycleCalculator.cycleLengthHint')}\n >\n <NumberInput\n mode=\"integer\"\n min={20}\n max={45}\n value={cycleLength}\n onChange={setCycleLength}\n />\n </FormField>\n </div>\n\n <p className=\"ds:sr-only\" role=\"status\" aria-live=\"polite\">\n {result\n ? `${t('cycleCalculator.ovulation')}: ${fmt(result.ovulation)}. ${t(\n 'cycleCalculator.nextPeriod',\n )}: ${fmt(result.nextPeriod)}.`\n : ''}\n </p>\n\n {result ? (\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]\">\n <dl className=\"ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-3\">\n <div className=\"ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:text-center\">\n <dt className=\"type-label ds:text-muted-foreground\">\n {t('cycleCalculator.ovulation')}\n </dt>\n <dd>\n <Badge\n variant=\"success\"\n size=\"lg\"\n leading={<Check aria-hidden />}\n >\n {fmt(result.ovulation)}\n </Badge>\n </dd>\n </div>\n <div className=\"ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:text-center\">\n <dt className=\"type-label ds:text-muted-foreground\">\n {t('cycleCalculator.fertileWindow')}\n </dt>\n <dd>\n <Badge\n variant=\"accent\"\n size=\"lg\"\n leading={<Heart aria-hidden />}\n >\n {fmt(result.fertileWindow.start)} –{' '}\n {fmt(result.fertileWindow.end)}\n </Badge>\n </dd>\n </div>\n <div className=\"ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:text-center\">\n <dt className=\"type-label ds:text-muted-foreground\">\n {t('cycleCalculator.nextPeriod')}\n </dt>\n <dd>\n <Badge\n variant=\"error\"\n size=\"lg\"\n leading={<Droplet aria-hidden />}\n >\n {fmt(result.nextPeriod)}\n </Badge>\n </dd>\n </div>\n </dl>\n {onInsert ? (\n <InsertButton\n onInsert={onInsert}\n card={{\n title: t('insert.title.cycle'),\n fields: [\n {\n label: t('cycleCalculator.ovulation'),\n value: fmt(result.ovulation),\n },\n {\n label: t('cycleCalculator.fertileWindow'),\n value: `${fmt(result.fertileWindow.start)} – ${fmt(\n result.fertileWindow.end,\n )}`,\n },\n {\n label: t('cycleCalculator.nextPeriod'),\n value: fmt(result.nextPeriod),\n },\n ],\n }}\n />\n ) : null}\n </div>\n ) : (\n <p className=\"type-body ds:text-muted-foreground\">\n {t('cycleCalculator.empty')}\n </p>\n )}\n </div>\n );\n },\n);\n\nCycleCalculator.displayName = 'CycleCalculator';\n"],"names":["__iconNode","Droplet","createLucideIcon","DEFAULT_CYCLE_LENGTH","LUTEAL_PHASE_DAYS","FERTILE_DAYS_AFTER","predictCycle","input","occurrences","cycle","lastPeriodStart","ovulation","addDays","fertileWindow","nextPeriod","upcomingPeriods","_","i","rootVariants","cva","CycleCalculator","forwardRef","defaultCycleLength","onResultChange","onInsert","id","width","className","ref","i18n","useTranslation","lastPeriod","setLastPeriod","useState","cycleLength","setCycleLength","result","useMemo","dateFormatter","useEffect","today","fmt","d","jsxs","jsx","FormField","DatePicker","NumberInput","Badge","Check","Heart","InsertButton"],"mappings":";;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,IAAa;AAAA,EACjB;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IACX;AAAA,EACA;AACA,GACMC,IAAUC,EAAiB,WAAWF,CAAU,GCNzCG,IAAuB,IAEvBC,IAAoB,IAIpBC,IAAqB;AAgC3B,SAASC,EACdC,GACAC,IAAc,GACG;AACjB,QAAMC,IAAQF,EAAM,eAAeJ,GAC7B,EAAE,iBAAAO,MAAoBH,GAEtBI,IAAYC,EAAQF,GAAiBD,IAAQL,CAAiB,GAC9DS,IAA2B;AAAA,IAC/B,OAAOD,EAAQD,GAAW,EAAoB;AAAA,IAC9C,KAAKC,EAAQD,GAAWN,CAAkB;AAAA,EAAA,GAEtCS,IAAaF,EAAQF,GAAiBD,CAAK,GAC3CM,IAAkB,MAAM;AAAA,IAAK,EAAE,QAAQP,EAAA;AAAA,IAAe,CAACQ,GAAGC,MAC9DL,EAAQF,GAAiBD,KAASQ,IAAI,EAAE;AAAA,EAAA;AAG1C,SAAO,EAAE,YAAAH,GAAY,WAAAH,GAAW,eAAAE,GAAe,iBAAAE,EAAA;AACjD;AC9CA,MAAMG,IAAeC,EAAI,kDAAkD;AAAA,EACzE,UAAU;AAAA,IACR,OAAO,EAAE,MAAM,aAAa,MAAM,iBAAA;AAAA,EAAiB;AAAA,EAErD,iBAAiB,EAAE,OAAO,OAAA;AAC5B,CAAC,GAiBYC,IAAkBC;AAAA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O,UAAU;AAAA,oBAAA;AAAA,kBAC9B;AAAA,gBACF;AAAA,cACF;AAAA,YAAA,IAEA;AAAA,UAAA,GACN,IAEA,gBAAAQ,EAAC,KAAA,EAAE,WAAU,sCACV,UAAA,EAAE,uBAAuB,EAAA,CAC5B;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;AAEAxB,EAAgB,cAAc;","x_google_ignoreList":[0]}
@@ -7,7 +7,7 @@ import { useTranslation as Ee } from "react-i18next";
7
7
  import * as Z from "@radix-ui/react-popover";
8
8
  import { u as He } from "./use-controllable-state-BiY4xTzM.js";
9
9
  import { u as qe } from "./form-field-context-B3APVHKx.js";
10
- import { y as ce, z as Ce, s as S, A as ue, B as Le, E as Ne, a as le, F as de, G as Re, H as ae, I as Qe, J as ie, K as We, u as Ae, g as Fe, i as oe, c as Be, m as Ge, n as Ve, t as Xe, C as Ke, j as ze, p as Ze, D as $e, k as je, l as Ue, L as Je } from "./react-day-picker-DYDdR8Vv.js";
10
+ import { y as ce, z as Ce, s as S, A as ue, B as Le, E as Ne, a as le, F as de, G as Re, H as ae, I as Qe, J as ie, K as We, u as Ae, g as Fe, j as oe, c as Be, n as Ge, i as Ve, t as Xe, C as Ke, k as ze, p as Ze, D as $e, l as je, m as Ue, L as Je } from "./react-day-picker-CdtIiKjx.js";
11
11
  import { u as Se } from "./registry-nPAVE19X.js";
12
12
  import { t as E, c as O, m as et, a as tt, b as rt } from "./isSameDay-DUEiAT0G.js";
13
13
  function nt() {
@@ -1821,4 +1821,4 @@ export {
1821
1821
  rr as D,
1822
1822
  tr as d
1823
1823
  };
1824
- //# sourceMappingURL=date-picker-CXFpu-qY.js.map
1824
+ //# sourceMappingURL=date-picker-CvQfs6Xh.js.map