@alfadocs/ui-kit-debug 1.112.2 → 1.114.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 (336) hide show
  1. package/dist/_chunks/{anamnesis-card-BzuluoD1.js → anamnesis-card-Ddnrdfx3.js} +2 -2
  2. package/dist/_chunks/{anamnesis-card-BzuluoD1.js.map → anamnesis-card-Ddnrdfx3.js.map} +1 -1
  3. package/dist/_chunks/{anamnesis-summary-card-DdTRdNrQ.js → anamnesis-summary-card-S1H_AARG.js} +2 -2
  4. package/dist/_chunks/{anamnesis-summary-card-DdTRdNrQ.js.map → anamnesis-summary-card-S1H_AARG.js.map} +1 -1
  5. package/dist/_chunks/{anamnesis-summary-rows-DfDulR_c.js → anamnesis-summary-rows-DaS-j8Jd.js} +2 -2
  6. package/dist/_chunks/{anamnesis-summary-rows-DfDulR_c.js.map → anamnesis-summary-rows-DaS-j8Jd.js.map} +1 -1
  7. package/dist/_chunks/{antenatal-schedule-timeline-DmsY5g28.js → antenatal-schedule-timeline-DmlXxevC.js} +2 -2
  8. package/dist/_chunks/{antenatal-schedule-timeline-DmsY5g28.js.map → antenatal-schedule-timeline-DmlXxevC.js.map} +1 -1
  9. package/dist/_chunks/{bishop-score-CnIft4eV.js → bishop-score-QJu-sM1y.js} +2 -2
  10. package/dist/_chunks/{bishop-score-CnIft4eV.js.map → bishop-score-QJu-sM1y.js.map} +1 -1
  11. package/dist/_chunks/{bmi-calculator-NMkXc079.js → bmi-calculator-Ba4yoR31.js} +2 -2
  12. package/dist/_chunks/{bmi-calculator-NMkXc079.js.map → bmi-calculator-Ba4yoR31.js.map} +1 -1
  13. package/dist/_chunks/{calendar-appointment-editor-dialog-FvdoKZ54.js → calendar-appointment-editor-dialog-iyh9QqNw.js} +6 -6
  14. package/dist/_chunks/{calendar-appointment-editor-dialog-FvdoKZ54.js.map → calendar-appointment-editor-dialog-iyh9QqNw.js.map} +1 -1
  15. package/dist/_chunks/{card-C85_Ndhb.js → card-DVO3x8E-.js} +23 -19
  16. package/dist/_chunks/{card-C85_Ndhb.js.map → card-DVO3x8E-.js.map} +1 -1
  17. package/dist/_chunks/{clinical-note-card-BVkxGiGl.js → clinical-note-card-Zz5_GEz-.js} +2 -2
  18. package/dist/_chunks/{clinical-note-card-BVkxGiGl.js.map → clinical-note-card-Zz5_GEz-.js.map} +1 -1
  19. package/dist/_chunks/{connection-status-CWSU3eiq.js → connection-status-DjarASoU.js} +2 -2
  20. package/dist/_chunks/{connection-status-CWSU3eiq.js.map → connection-status-DjarASoU.js.map} +1 -1
  21. package/dist/_chunks/{contact-card-CymtNvy3.js → contact-card-Cv-Nwvac.js} +2 -2
  22. package/dist/_chunks/{contact-card-CymtNvy3.js.map → contact-card-Cv-Nwvac.js.map} +1 -1
  23. package/dist/_chunks/{contact-profile-card-CAL66GaH.js → contact-profile-card-DMXWBBkU.js} +2 -2
  24. package/dist/_chunks/{contact-profile-card-CAL66GaH.js.map → contact-profile-card-DMXWBBkU.js.map} +1 -1
  25. package/dist/_chunks/{cycle-calculator-ZMDvToIm.js → cycle-calculator-Dd-XbKmZ.js} +2 -2
  26. package/dist/_chunks/{cycle-calculator-ZMDvToIm.js.map → cycle-calculator-Dd-XbKmZ.js.map} +1 -1
  27. package/dist/_chunks/{document-preview-5xs64jME.js → document-preview-WvJKHJOP.js} +2 -2
  28. package/dist/_chunks/{document-preview-5xs64jME.js.map → document-preview-WvJKHJOP.js.map} +1 -1
  29. package/dist/_chunks/{due-date-calculator-Dr2cDa64.js → due-date-calculator-Dl6SyMHO.js} +3 -3
  30. package/dist/_chunks/{due-date-calculator-Dr2cDa64.js.map → due-date-calculator-Dl6SyMHO.js.map} +1 -1
  31. package/dist/_chunks/email-input-DxwbREpx.js +156 -0
  32. package/dist/_chunks/email-input-DxwbREpx.js.map +1 -0
  33. package/dist/_chunks/{entity-summary-BbqqYqF1.js → entity-summary-DGCBQDt1.js} +2 -2
  34. package/dist/_chunks/{entity-summary-BbqqYqF1.js.map → entity-summary-DGCBQDt1.js.map} +1 -1
  35. package/dist/_chunks/{face-scheme-e2M2HJGz.js → face-scheme-DlcQaQVR.js} +2 -2
  36. package/dist/_chunks/{face-scheme-e2M2HJGz.js.map → face-scheme-DlcQaQVR.js.map} +1 -1
  37. package/dist/_chunks/{fetal-weight-CkIwJgiH.js → fetal-weight-DmZzMRzB.js} +2 -2
  38. package/dist/_chunks/{fetal-weight-CkIwJgiH.js.map → fetal-weight-DmZzMRzB.js.map} +1 -1
  39. package/dist/_chunks/{finished-terminal-DXVAfhRr.js → finished-terminal-BKTFUk3S.js} +2 -2
  40. package/dist/_chunks/{finished-terminal-DXVAfhRr.js.map → finished-terminal-BKTFUk3S.js.map} +1 -1
  41. package/dist/_chunks/{forgot-password-form-vfCO2-Tt.js → forgot-password-form-Bc_UPax6.js} +9 -8
  42. package/dist/_chunks/{forgot-password-form-vfCO2-Tt.js.map → forgot-password-form-Bc_UPax6.js.map} +1 -1
  43. package/dist/_chunks/{gestational-age-calculator-Dv3IePb-.js → gestational-age-calculator-DmzYdW5e.js} +3 -3
  44. package/dist/_chunks/{gestational-age-calculator-Dv3IePb-.js.map → gestational-age-calculator-DmzYdW5e.js.map} +1 -1
  45. package/dist/_chunks/{hcg-doubling-DdyUt4gz.js → hcg-doubling-Tr72PetS.js} +2 -2
  46. package/dist/_chunks/{hcg-doubling-DdyUt4gz.js.map → hcg-doubling-Tr72PetS.js.map} +1 -1
  47. package/dist/_chunks/{heatmap-BiwC7Gdx.js → heatmap-CNxCDl0D.js} +2 -2
  48. package/dist/_chunks/{heatmap-BiwC7Gdx.js.map → heatmap-CNxCDl0D.js.map} +1 -1
  49. package/dist/_chunks/isEmail-BfVspSvV.js +248 -0
  50. package/dist/_chunks/isEmail-BfVspSvV.js.map +1 -0
  51. package/dist/_chunks/{kit-extensions-BOsUgWnE.js → kit-extensions-DZJRmDI6.js} +7 -7
  52. package/dist/_chunks/{kit-extensions-BOsUgWnE.js.map → kit-extensions-DZJRmDI6.js.map} +1 -1
  53. package/dist/_chunks/{login-dev-card-Cz1Clugq.js → login-dev-card-D7orCfJT.js} +48 -47
  54. package/dist/_chunks/{login-dev-card-Cz1Clugq.js.map → login-dev-card-D7orCfJT.js.map} +1 -1
  55. package/dist/_chunks/map-view-Bny79cWa.js +856 -0
  56. package/dist/_chunks/map-view-Bny79cWa.js.map +1 -0
  57. package/dist/_chunks/{marketplace-app-shell-C-4QF6mp.js → marketplace-app-shell-CPNVBVLH.js} +2 -2
  58. package/dist/_chunks/{marketplace-app-shell-C-4QF6mp.js.map → marketplace-app-shell-CPNVBVLH.js.map} +1 -1
  59. package/dist/_chunks/motion-is-off-BvAuNV5O.js +15 -0
  60. package/dist/_chunks/motion-is-off-BvAuNV5O.js.map +1 -0
  61. package/dist/_chunks/{notes-panel-Cz621DWV.js → notes-panel-DXMTObBv.js} +3 -3
  62. package/dist/_chunks/{notes-panel-Cz621DWV.js.map → notes-panel-DXMTObBv.js.map} +1 -1
  63. package/dist/_chunks/{operator-hero-BELhrv9o.js → operator-hero-BWayX73x.js} +71 -62
  64. package/dist/_chunks/{operator-hero-BELhrv9o.js.map → operator-hero-BWayX73x.js.map} +1 -1
  65. package/dist/_chunks/{patient-details-BwkDIm4D.js → patient-details-DdtXBNjt.js} +3 -3
  66. package/dist/_chunks/{patient-details-BwkDIm4D.js.map → patient-details-DdtXBNjt.js.map} +1 -1
  67. package/dist/_chunks/{patient-field-row-CBba7w9V.js → patient-field-row-D9rb-QJH.js} +2 -2
  68. package/dist/_chunks/{patient-field-row-CBba7w9V.js.map → patient-field-row-D9rb-QJH.js.map} +1 -1
  69. package/dist/_chunks/{patient-search-CxuqVUTB.js → patient-search-DDRDCjZi.js} +439 -482
  70. package/dist/_chunks/patient-search-DDRDCjZi.js.map +1 -0
  71. package/dist/_chunks/{patient-summary-card-DtYTo9w_.js → patient-summary-card-CGHz-Bvm.js} +3 -3
  72. package/dist/_chunks/{patient-summary-card-DtYTo9w_.js.map → patient-summary-card-CGHz-Bvm.js.map} +1 -1
  73. package/dist/_chunks/{payment-automation-upsell-u5EuFyCY.js → payment-automation-upsell-D7yaD4u1.js} +3 -3
  74. package/dist/_chunks/{payment-automation-upsell-u5EuFyCY.js.map → payment-automation-upsell-D7yaD4u1.js.map} +1 -1
  75. package/dist/_chunks/{payment-request-card-IR83TJax.js → payment-request-card-BmV2pLoM.js} +2 -2
  76. package/dist/_chunks/{payment-request-card-IR83TJax.js.map → payment-request-card-BmV2pLoM.js.map} +1 -1
  77. package/dist/_chunks/{periodontal-chart-DqdUEFxK.js → periodontal-chart-Bjz7O4wT.js} +2 -2
  78. package/dist/_chunks/{periodontal-chart-DqdUEFxK.js.map → periodontal-chart-Bjz7O4wT.js.map} +1 -1
  79. package/dist/_chunks/{periodontal-chart-card-CCkzStlm.js → periodontal-chart-card-CxEXHl2x.js} +2 -2
  80. package/dist/_chunks/{periodontal-chart-card-CCkzStlm.js.map → periodontal-chart-card-CxEXHl2x.js.map} +1 -1
  81. package/dist/_chunks/{periodontal-diagnosis-CF1d_0yl.js → periodontal-diagnosis-xheWfi4g.js} +2 -2
  82. package/dist/_chunks/{periodontal-diagnosis-CF1d_0yl.js.map → periodontal-diagnosis-xheWfi4g.js.map} +1 -1
  83. package/dist/_chunks/{periodontal-risk-chart-D2zyID0H.js → periodontal-risk-chart-BBPB9wf1.js} +2 -2
  84. package/dist/_chunks/{periodontal-risk-chart-D2zyID0H.js.map → periodontal-risk-chart-BBPB9wf1.js.map} +1 -1
  85. package/dist/_chunks/{practice-profile-hero-Bb4YyxHA.js → practice-profile-hero-Cw4NZp0A.js} +2 -2
  86. package/dist/_chunks/{practice-profile-hero-Bb4YyxHA.js.map → practice-profile-hero-Cw4NZp0A.js.map} +1 -1
  87. package/dist/_chunks/practice-results-BlxfBx-D.js +2181 -0
  88. package/dist/_chunks/practice-results-BlxfBx-D.js.map +1 -0
  89. package/dist/_chunks/{pregnancy-dating-Cs8xpZA8.js → pregnancy-dating-BvorzHrd.js} +3 -3
  90. package/dist/_chunks/{pregnancy-dating-Cs8xpZA8.js.map → pregnancy-dating-BvorzHrd.js.map} +1 -1
  91. package/dist/_chunks/{pregnancy-weight-gain-B_Zldlzq.js → pregnancy-weight-gain-DQoOM8QV.js} +2 -2
  92. package/dist/_chunks/{pregnancy-weight-gain-B_Zldlzq.js.map → pregnancy-weight-gain-DQoOM8QV.js.map} +1 -1
  93. package/dist/_chunks/{privacy-mask-DbEKI-Jv.js → privacy-mask-Dc3kdkCR.js} +2 -2
  94. package/dist/_chunks/{privacy-mask-DbEKI-Jv.js.map → privacy-mask-Dc3kdkCR.js.map} +1 -1
  95. package/dist/_chunks/{public-footer-DGjLTtNK.js → public-footer-CB7ruuLI.js} +295 -260
  96. package/dist/_chunks/public-footer-CB7ruuLI.js.map +1 -0
  97. package/dist/_chunks/{public-header.agent-_ArDD1Xr.js → public-header.agent-Db4wm6_S.js} +203 -193
  98. package/dist/_chunks/public-header.agent-Db4wm6_S.js.map +1 -0
  99. package/dist/_chunks/{registration-form-DEyUFysm.js → registration-form-Lw9T7IXr.js} +7 -6
  100. package/dist/_chunks/{registration-form-DEyUFysm.js.map → registration-form-Lw9T7IXr.js.map} +1 -1
  101. package/dist/_chunks/{reserved.agent-W_Zgj564.js → reserved.agent-D2jwJPac.js} +22 -32
  102. package/dist/_chunks/reserved.agent-D2jwJPac.js.map +1 -0
  103. package/dist/_chunks/{reset-password-form-B0acanDD.js → reset-password-form-C93SH0Tx.js} +3 -3
  104. package/dist/_chunks/{reset-password-form-B0acanDD.js.map → reset-password-form-C93SH0Tx.js.map} +1 -1
  105. package/dist/_chunks/{reviews-panel-B03auSpQ.js → reviews-panel-CfJPEkH7.js} +2 -2
  106. package/dist/_chunks/{reviews-panel-B03auSpQ.js.map → reviews-panel-CfJPEkH7.js.map} +1 -1
  107. package/dist/_chunks/{section-card-D1sV4Voz.js → section-card-DFr2wGal.js} +2 -2
  108. package/dist/_chunks/{section-card-D1sV4Voz.js.map → section-card-DFr2wGal.js.map} +1 -1
  109. package/dist/_chunks/{send-registration-link-form-Nn0jf65G.js → send-registration-link-form-DfbTjrEK.js} +9 -8
  110. package/dist/_chunks/{send-registration-link-form-Nn0jf65G.js.map → send-registration-link-form-DfbTjrEK.js.map} +1 -1
  111. package/dist/_chunks/{signed-out-frame-CPow3aCZ.js → signed-out-frame-bh7fn_Px.js} +2 -2
  112. package/dist/_chunks/{signed-out-frame-CPow3aCZ.js.map → signed-out-frame-bh7fn_Px.js.map} +1 -1
  113. package/dist/_chunks/{stat-BFKZV50y.js → stat-WGLdn5Vn.js} +113 -107
  114. package/dist/_chunks/stat-WGLdn5Vn.js.map +1 -0
  115. package/dist/_chunks/{task-card-TSJjuuDe.js → task-card-DqVoitRk.js} +2 -2
  116. package/dist/_chunks/{task-card-TSJjuuDe.js.map → task-card-DqVoitRk.js.map} +1 -1
  117. package/dist/_chunks/{task-editor-gqWF1jI6.js → task-editor-D--LwVrg.js} +2 -2
  118. package/dist/_chunks/{task-editor-gqWF1jI6.js.map → task-editor-D--LwVrg.js.map} +1 -1
  119. package/dist/_chunks/{task-tray-DrXfMCuf.js → task-tray-C6j8HVMv.js} +2 -2
  120. package/dist/_chunks/{task-tray-DrXfMCuf.js.map → task-tray-C6j8HVMv.js.map} +1 -1
  121. package/dist/_chunks/{tasks-panel-OuIaydK5.js → tasks-panel-D6PuF4MQ.js} +2 -2
  122. package/dist/_chunks/{tasks-panel-OuIaydK5.js.map → tasks-panel-D6PuF4MQ.js.map} +1 -1
  123. package/dist/_chunks/{timeline-CKUaBZOx.js → timeline-AMqE-c2T.js} +2 -2
  124. package/dist/_chunks/{timeline-CKUaBZOx.js.map → timeline-AMqE-c2T.js.map} +1 -1
  125. package/dist/_chunks/{use-appointment-details-read-DYyCYI9f.js → use-appointment-details-read-BK_Gw1GG.js} +5 -5
  126. package/dist/_chunks/{use-appointment-details-read-DYyCYI9f.js.map → use-appointment-details-read-BK_Gw1GG.js.map} +1 -1
  127. package/dist/_chunks/verify-identity-types-C85EXNzy.js +707 -0
  128. package/dist/_chunks/verify-identity-types-C85EXNzy.js.map +1 -0
  129. package/dist/_chunks/{workflow-map-DWk-rZse.js → workflow-map-B4XkcET0.js} +2 -2
  130. package/dist/_chunks/{workflow-map-DWk-rZse.js.map → workflow-map-B4XkcET0.js.map} +1 -1
  131. package/dist/_chunks/{workflow-webhook-action-DILFqAVd.js → workflow-webhook-action-CtBn5JvO.js} +2 -2
  132. package/dist/_chunks/{workflow-webhook-action-DILFqAVd.js.map → workflow-webhook-action-CtBn5JvO.js.map} +1 -1
  133. package/dist/agent-catalog.json +111 -7
  134. package/dist/agent-i18n/en.json +13 -2
  135. package/dist/components/_shared/motion-is-off.d.ts +7 -0
  136. package/dist/components/_shared/motion-is-off.d.ts.map +1 -0
  137. package/dist/components/anamnesis-card/index.js +1 -1
  138. package/dist/components/anamnesis-summary-card/index.js +1 -1
  139. package/dist/components/appointment-details-panel/index.js +1 -1
  140. package/dist/components/bishop-score/index.js +1 -1
  141. package/dist/components/bmi-calculator/index.js +1 -1
  142. package/dist/components/booking/index.js +1 -1
  143. package/dist/components/booking/step-focus.d.ts +0 -6
  144. package/dist/components/booking/step-focus.d.ts.map +1 -1
  145. package/dist/components/card/card.d.ts.map +1 -1
  146. package/dist/components/card/index.js +1 -1
  147. package/dist/components/clinical-note-card/index.js +1 -1
  148. package/dist/components/connection-status/index.js +1 -1
  149. package/dist/components/contact-card/index.js +1 -1
  150. package/dist/components/contact-profile-card/index.js +1 -1
  151. package/dist/components/cycle-calculator/index.js +1 -1
  152. package/dist/components/document-preview/index.js +1 -1
  153. package/dist/components/due-date-calculator/index.js +2 -2
  154. package/dist/components/email-input/index.js +1 -1
  155. package/dist/components/entity-summary/index.js +1 -1
  156. package/dist/components/face-scheme/index.js +1 -1
  157. package/dist/components/fetal-weight/index.js +1 -1
  158. package/dist/components/finished-terminal/index.js +1 -1
  159. package/dist/components/gestational-age-calculator/index.js +1 -1
  160. package/dist/components/hcg-doubling/index.js +1 -1
  161. package/dist/components/heatmap/index.js +1 -1
  162. package/dist/components/index.d.ts +1 -0
  163. package/dist/components/index.d.ts.map +1 -1
  164. package/dist/components/map-view/index.js +1 -1
  165. package/dist/components/map-view/map-view.d.ts +16 -0
  166. package/dist/components/map-view/map-view.d.ts.map +1 -1
  167. package/dist/components/notes-panel/index.js +1 -1
  168. package/dist/components/operator-hero/index.js +1 -1
  169. package/dist/components/operator-hero/operator-hero.d.ts.map +1 -1
  170. package/dist/components/patient-details/index.js +1 -1
  171. package/dist/components/patient-search/index.js +1 -1
  172. package/dist/components/patient-search/patient-search.d.ts +6 -2
  173. package/dist/components/patient-search/patient-search.d.ts.map +1 -1
  174. package/dist/components/patient-summary-card/index.js +1 -1
  175. package/dist/components/payment-card/index.js +1 -1
  176. package/dist/components/periodontal-chart/index.js +1 -1
  177. package/dist/components/periodontal-chart-card/index.js +1 -1
  178. package/dist/components/periodontal-diagnosis/index.js +1 -1
  179. package/dist/components/periodontal-risk-chart/index.js +1 -1
  180. package/dist/components/practice-profile-hero/index.js +1 -1
  181. package/dist/components/practice-results/index.js +1 -1
  182. package/dist/components/practice-results/practice-results.agent.d.ts.map +1 -1
  183. package/dist/components/practice-results/practice-results.d.ts +43 -2
  184. package/dist/components/practice-results/practice-results.d.ts.map +1 -1
  185. package/dist/components/pregnancy-dating/index.js +1 -1
  186. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  187. package/dist/components/public-footer/index.js +1 -1
  188. package/dist/components/public-footer/public-footer.d.ts +23 -0
  189. package/dist/components/public-footer/public-footer.d.ts.map +1 -1
  190. package/dist/components/public-header/index.js +1 -1
  191. package/dist/components/public-header/public-header.d.ts +7 -0
  192. package/dist/components/public-header/public-header.d.ts.map +1 -1
  193. package/dist/components/reviews-panel/index.js +1 -1
  194. package/dist/components/rich-text-editor/index.js +1 -1
  195. package/dist/components/section-card/index.js +1 -1
  196. package/dist/components/stat/index.js +1 -1
  197. package/dist/components/stat/stat.d.ts +7 -0
  198. package/dist/components/stat/stat.d.ts.map +1 -1
  199. package/dist/components/task-card/index.js +1 -1
  200. package/dist/components/task-editor/index.js +1 -1
  201. package/dist/components/task-tray/index.js +1 -1
  202. package/dist/components/tasks-panel/index.js +1 -1
  203. package/dist/components/timeline/index.js +1 -1
  204. package/dist/components/workflow/index.js +1 -1
  205. package/dist/core.css +1 -1
  206. package/dist/host-compat.css +4 -1
  207. package/dist/i18n/locales/ar.d.ts +68 -0
  208. package/dist/i18n/locales/ar.d.ts.map +1 -1
  209. package/dist/i18n/locales/ar.js +70 -2
  210. package/dist/i18n/locales/ar.js.map +1 -1
  211. package/dist/i18n/locales/de.d.ts +68 -0
  212. package/dist/i18n/locales/de.d.ts.map +1 -1
  213. package/dist/i18n/locales/de.js +70 -2
  214. package/dist/i18n/locales/de.js.map +1 -1
  215. package/dist/i18n/locales/el.d.ts +68 -0
  216. package/dist/i18n/locales/el.d.ts.map +1 -1
  217. package/dist/i18n/locales/el.js +70 -2
  218. package/dist/i18n/locales/el.js.map +1 -1
  219. package/dist/i18n/locales/en.d.ts +68 -0
  220. package/dist/i18n/locales/en.d.ts.map +1 -1
  221. package/dist/i18n/locales/en.js +68 -0
  222. package/dist/i18n/locales/en.js.map +1 -1
  223. package/dist/i18n/locales/es.d.ts +68 -0
  224. package/dist/i18n/locales/es.d.ts.map +1 -1
  225. package/dist/i18n/locales/es.js +70 -2
  226. package/dist/i18n/locales/es.js.map +1 -1
  227. package/dist/i18n/locales/fr.d.ts +68 -0
  228. package/dist/i18n/locales/fr.d.ts.map +1 -1
  229. package/dist/i18n/locales/fr.js +70 -2
  230. package/dist/i18n/locales/fr.js.map +1 -1
  231. package/dist/i18n/locales/hi.d.ts +68 -0
  232. package/dist/i18n/locales/hi.d.ts.map +1 -1
  233. package/dist/i18n/locales/hi.js +70 -2
  234. package/dist/i18n/locales/hi.js.map +1 -1
  235. package/dist/i18n/locales/it.d.ts +68 -0
  236. package/dist/i18n/locales/it.d.ts.map +1 -1
  237. package/dist/i18n/locales/it.js +70 -2
  238. package/dist/i18n/locales/it.js.map +1 -1
  239. package/dist/i18n/locales/ja.d.ts +68 -0
  240. package/dist/i18n/locales/ja.d.ts.map +1 -1
  241. package/dist/i18n/locales/ja.js +70 -2
  242. package/dist/i18n/locales/ja.js.map +1 -1
  243. package/dist/i18n/locales/nl.d.ts +68 -0
  244. package/dist/i18n/locales/nl.d.ts.map +1 -1
  245. package/dist/i18n/locales/nl.js +70 -2
  246. package/dist/i18n/locales/nl.js.map +1 -1
  247. package/dist/i18n/locales/pl.d.ts +68 -0
  248. package/dist/i18n/locales/pl.d.ts.map +1 -1
  249. package/dist/i18n/locales/pl.js +70 -2
  250. package/dist/i18n/locales/pl.js.map +1 -1
  251. package/dist/i18n/locales/pt.d.ts +68 -0
  252. package/dist/i18n/locales/pt.d.ts.map +1 -1
  253. package/dist/i18n/locales/pt.js +70 -2
  254. package/dist/i18n/locales/pt.js.map +1 -1
  255. package/dist/i18n/locales/ro.d.ts +68 -0
  256. package/dist/i18n/locales/ro.d.ts.map +1 -1
  257. package/dist/i18n/locales/ro.js +70 -2
  258. package/dist/i18n/locales/ro.js.map +1 -1
  259. package/dist/i18n/locales/ru.d.ts +68 -0
  260. package/dist/i18n/locales/ru.d.ts.map +1 -1
  261. package/dist/i18n/locales/ru.js +70 -2
  262. package/dist/i18n/locales/ru.js.map +1 -1
  263. package/dist/i18n/locales/sq.d.ts +68 -0
  264. package/dist/i18n/locales/sq.d.ts.map +1 -1
  265. package/dist/i18n/locales/sq.js +70 -2
  266. package/dist/i18n/locales/sq.js.map +1 -1
  267. package/dist/i18n/locales/sv.d.ts +68 -0
  268. package/dist/i18n/locales/sv.d.ts.map +1 -1
  269. package/dist/i18n/locales/sv.js +70 -2
  270. package/dist/i18n/locales/sv.js.map +1 -1
  271. package/dist/i18n/locales/tr.d.ts +68 -0
  272. package/dist/i18n/locales/tr.d.ts.map +1 -1
  273. package/dist/i18n/locales/tr.js +70 -2
  274. package/dist/i18n/locales/tr.js.map +1 -1
  275. package/dist/i18n/locales/zh.d.ts +68 -0
  276. package/dist/i18n/locales/zh.d.ts.map +1 -1
  277. package/dist/i18n/locales/zh.js +70 -2
  278. package/dist/i18n/locales/zh.js.map +1 -1
  279. package/dist/index.js +373 -368
  280. package/dist/index.js.map +1 -1
  281. package/dist/locales/ar.json +70 -2
  282. package/dist/locales/de.json +70 -2
  283. package/dist/locales/el.json +70 -2
  284. package/dist/locales/en.json +68 -0
  285. package/dist/locales/es.json +70 -2
  286. package/dist/locales/fr.json +70 -2
  287. package/dist/locales/hi.json +70 -2
  288. package/dist/locales/it.json +70 -2
  289. package/dist/locales/ja.json +70 -2
  290. package/dist/locales/nl.json +70 -2
  291. package/dist/locales/pl.json +70 -2
  292. package/dist/locales/pt.json +70 -2
  293. package/dist/locales/ro.json +70 -2
  294. package/dist/locales/ru.json +70 -2
  295. package/dist/locales/sq.json +70 -2
  296. package/dist/locales/sv.json +70 -2
  297. package/dist/locales/tr.json +70 -2
  298. package/dist/locales/zh.json +70 -2
  299. package/dist/patterns/anamnesis/index.js +1 -1
  300. package/dist/patterns/calendar/index.js +1 -1
  301. package/dist/patterns/forgot-password-form/index.js +1 -1
  302. package/dist/patterns/login-form/index.js +1 -1
  303. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  304. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  305. package/dist/patterns/registration-form/index.js +1 -1
  306. package/dist/patterns/reset-password-form/index.js +1 -1
  307. package/dist/patterns/send-registration-link-form/index.js +1 -1
  308. package/dist/patterns/signed-out-frame/index.js +1 -1
  309. package/dist/patterns/verify-identity/change-email-dialog.d.ts +26 -0
  310. package/dist/patterns/verify-identity/change-email-dialog.d.ts.map +1 -0
  311. package/dist/patterns/verify-identity/index.d.ts +7 -0
  312. package/dist/patterns/verify-identity/index.d.ts.map +1 -0
  313. package/dist/patterns/verify-identity/index.js +8 -0
  314. package/dist/patterns/verify-identity/index.js.map +1 -0
  315. package/dist/patterns/verify-identity/use-countdown.d.ts +12 -0
  316. package/dist/patterns/verify-identity/use-countdown.d.ts.map +1 -0
  317. package/dist/patterns/verify-identity/verify-identity-steps.d.ts +21 -0
  318. package/dist/patterns/verify-identity/verify-identity-steps.d.ts.map +1 -0
  319. package/dist/patterns/verify-identity/verify-identity-types.d.ts +47 -0
  320. package/dist/patterns/verify-identity/verify-identity-types.d.ts.map +1 -0
  321. package/dist/patterns/verify-identity/verify-identity.d.ts +54 -0
  322. package/dist/patterns/verify-identity/verify-identity.d.ts.map +1 -0
  323. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  324. package/dist/tokens.css +1 -1
  325. package/package.json +5 -1
  326. package/dist/_chunks/email-input-BEO3vonE.js +0 -399
  327. package/dist/_chunks/email-input-BEO3vonE.js.map +0 -1
  328. package/dist/_chunks/map-view-Dn7aXZJw.js +0 -731
  329. package/dist/_chunks/map-view-Dn7aXZJw.js.map +0 -1
  330. package/dist/_chunks/patient-search-CxuqVUTB.js.map +0 -1
  331. package/dist/_chunks/practice-results-BOpaPaav.js +0 -1923
  332. package/dist/_chunks/practice-results-BOpaPaav.js.map +0 -1
  333. package/dist/_chunks/public-footer-DGjLTtNK.js.map +0 -1
  334. package/dist/_chunks/public-header.agent-_ArDD1Xr.js.map +0 -1
  335. package/dist/_chunks/reserved.agent-W_Zgj564.js.map +0 -1
  336. package/dist/_chunks/stat-BFKZV50y.js.map +0 -1
@@ -0,0 +1,856 @@
1
+ import { jsx as l, jsxs as T } from "react/jsx-runtime";
2
+ import { forwardRef as xe, useMemo as V, useRef as k, useId as Ce, useState as N, useEffect as x, useCallback as _, useImperativeHandle as Le, useLayoutEffect as Ee } from "react";
3
+ import { createPortal as Ve } from "react-dom";
4
+ import { c as S } from "./index-D2ZczOXr.js";
5
+ import { useTranslation as q } from "react-i18next";
6
+ import { M as Ie, A as Pe, a as _e, b as Te, P as oe, c as Ne, u as Se, d as ie, e as $ } from "./maps-core-gate-DkNqGkm3.js";
7
+ import { B as Ge } from "./button-DohK_Ak_.js";
8
+ import { S as Re } from "./skeleton-tTWJpvAq.js";
9
+ import { V as Ae } from "./visually-hidden-BHxEUGyT.js";
10
+ import { E as Ze } from "./error-boundary-tAn_GuCu.js";
11
+ import { u as Oe } from "./registry-DvAUVLHh.js";
12
+ import { l as je } from "./length-token-DwMnGEYT.js";
13
+ import { M as De } from "./map-pin-BaY37-Km.js";
14
+ import { E as He } from "./external-link-CY6zAXXU.js";
15
+ const $e = {
16
+ id: "map-view",
17
+ // pan → scroll (viewport move); set_zoom → set_value; select_marker → pick
18
+ // (NON-persisting marker focus, no value state slot).
19
+ capabilities: ["scroll", "set_value", "pick"],
20
+ // Every action routes through the imperative bridge, which only exists
21
+ // once the map has loaded: consent granted (the default is
22
+ // `consentGranted={false}`) and Google Maps finished loading. Until then
23
+ // all three actions are silent no-ops. `consentGranted` says whether the
24
+ // gate is passed, and a null `center` after it means the map is still
25
+ // loading. `center` / `zoom` are read off the live
26
+ // map because Google clamps zoom and animates pans, so requested is not
27
+ // applied; `selectedMarkerId` is the only confirmation the host accepted
28
+ // a `select_marker` proposal.
29
+ //
30
+ // A9: marker ids only (`MapMarker.id` is a stable opaque id). Never
31
+ // `MapMarker.label`, never the `address` prop (consumer-supplied free
32
+ // text, PII in any patient-address deployment), never `apiKey`.
33
+ state: {
34
+ consentGranted: {
35
+ type: "boolean",
36
+ descriptionKey: "ui.agent.mapView.state.consentGranted",
37
+ description: "True when the GDPR consent gate has been passed. Read this FIRST: while it is false every action is a silent no-op against a placeholder, and nothing else in the surface says so. When it is true but `center` is still null, Google Maps is loading; wait for `center` before acting.",
38
+ read: (e) => e.isConsentGranted()
39
+ },
40
+ markerCount: {
41
+ type: "number",
42
+ descriptionKey: "ui.agent.mapView.state.markerCount",
43
+ description: "Number of markers the consumer passed. Zero means there is nothing for `select_marker` to select. A count only — no ids, labels or positions.",
44
+ read: (e) => e.getMarkerCount()
45
+ },
46
+ selectedMarkerId: {
47
+ type: "string | null",
48
+ descriptionKey: "ui.agent.mapView.state.selectedMarkerId",
49
+ description: "Id of the marker the host currently holds as selected, or null. Selection is fully controlled by the consumer, so `select_marker` only proposes — this slot is the only way to see whether the proposal was accepted.",
50
+ read: (e) => e.getSelectedMarkerId()
51
+ },
52
+ center: {
53
+ type: "{ lat: number; lng: number } | null",
54
+ descriptionKey: "ui.agent.mapView.state.center",
55
+ description: "Live map centre in lat/lng, or null until the map has loaded (consent not granted, or Google Maps still loading). The read-back for `pan_to`, and the sign that the map is ready.",
56
+ read: (e) => e.getCenter()
57
+ },
58
+ zoom: {
59
+ type: "number | null",
60
+ descriptionKey: "ui.agent.mapView.state.zoom",
61
+ description: "Live zoom level, or null until the map has loaded. Google clamps zoom to the map type's range, so this is not necessarily the value last passed to `set_zoom`.",
62
+ read: (e) => e.getZoom()
63
+ }
64
+ },
65
+ actions: {
66
+ pan_to: {
67
+ // Ephemeral viewport move, no data loss → read.
68
+ safety: "read",
69
+ argsType: "{ position: { lat: number; lng: number } }",
70
+ argsSchema: {
71
+ type: "object",
72
+ properties: {
73
+ position: {
74
+ type: "object",
75
+ properties: {
76
+ lat: { type: "number", description: "Latitude in degrees." },
77
+ lng: { type: "number", description: "Longitude in degrees." }
78
+ },
79
+ required: ["lat", "lng"]
80
+ }
81
+ },
82
+ required: ["position"]
83
+ },
84
+ idempotent: !0,
85
+ descriptionKey: "ui.agent.mapView.actions.panTo",
86
+ description: "Pan the map to a new centre without changing zoom. Read the `center` slot back to confirm — Google animates the pan, so the applied centre settles after the call.",
87
+ errors: [
88
+ "Silent no-op until the map has loaded: while `consentGranted` is false (only the consent placeholder shows) or while `center` is still null (Google Maps is loading)."
89
+ ],
90
+ invoke: (e, o) => {
91
+ e.panTo(o.position);
92
+ }
93
+ },
94
+ set_zoom: {
95
+ // Ephemeral viewport zoom, no data loss → read.
96
+ safety: "read",
97
+ argsType: "{ zoom: number }",
98
+ argsSchema: {
99
+ type: "object",
100
+ properties: {
101
+ zoom: {
102
+ type: "number",
103
+ description: "Zoom level, typical range 1–20."
104
+ }
105
+ },
106
+ required: ["zoom"]
107
+ },
108
+ idempotent: !0,
109
+ descriptionKey: "ui.agent.mapView.actions.setZoom",
110
+ description: "Set the map zoom level (typical range 1–20). Read the `zoom` slot back — Google clamps the request to the map type’s supported range, so requested and applied can differ.",
111
+ errors: [
112
+ "Silent no-op until the map has loaded: while `consentGranted` is false (only the consent placeholder shows) or while `center` is still null (Google Maps is loading).",
113
+ "Requested zoom is clamped to the map type's range; `zoom` reports what was actually applied."
114
+ ],
115
+ invoke: (e, o) => {
116
+ e.setZoom(o.zoom);
117
+ }
118
+ },
119
+ select_marker: {
120
+ // Ephemeral marker focus, no data loss → read.
121
+ safety: "read",
122
+ argsType: "{ id: string | null }",
123
+ argsSchema: {
124
+ type: "object",
125
+ properties: {
126
+ id: {
127
+ type: ["string", "null"],
128
+ description: "Marker id to select, or null to clear the selection."
129
+ }
130
+ },
131
+ required: ["id"]
132
+ },
133
+ idempotent: !0,
134
+ descriptionKey: "ui.agent.mapView.actions.selectMarker",
135
+ description: "Propose a marker selection by id, or pass null to clear it. Fires the host's `onMarkerClick`; selection is controlled by the host, so read the `selectedMarkerId` slot back to see whether it accepted.",
136
+ errors: [
137
+ "Silent no-op until the map has loaded: while `consentGranted` is false (only the consent placeholder shows) or while `center` is still null (Google Maps is loading).",
138
+ "The host owns `selectedMarkerId` and may ignore the proposal; `selectedMarkerId` is unchanged when it does."
139
+ ],
140
+ invoke: (e, o) => {
141
+ e.selectMarker(o.id);
142
+ }
143
+ }
144
+ },
145
+ domHooks: {
146
+ root: {
147
+ attr: "data-component",
148
+ value: "map-view",
149
+ description: "Marks the element as a kit MapView."
150
+ },
151
+ instanceId: {
152
+ attr: "data-component-id",
153
+ sourceProp: "id",
154
+ description: "Sourced from the id prop."
155
+ }
156
+ }
157
+ }, Ke = S(
158
+ ["ds:relative ds:overflow-hidden ds:block", "ds:bg-[var(--muted)]"].join(" "),
159
+ {
160
+ variants: {
161
+ size: {
162
+ sm: "ds:[--map-block-size:14rem]",
163
+ md: "ds:[--map-block-size:20rem]",
164
+ lg: "ds:[--map-block-size:28rem]",
165
+ // `fill` defers sizing to the parent. The outer takes
166
+ // `block-size: 100%` so the inner (also 100%) has something
167
+ // to inherit from. Use inside a viewport-locked column —
168
+ // `<PracticeResults variant="map-first">` wires this through
169
+ // automatically; standalone consumers must give the parent
170
+ // a constrained block-size or the map collapses to 0.
171
+ fill: "ds:[block-size:100%]"
172
+ },
173
+ surface: {
174
+ bordered: "ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
175
+ elevated: "ds:rounded-[var(--radius-md)] ds:shadow-[var(--shadow-card)] ds:[:where(&)]:border-[length:var(--surface-border-width,var(--border-width-sm))] ds:border-[color:var(--card-border)]",
176
+ bare: "ds:rounded-none ds:border-0"
177
+ }
178
+ },
179
+ defaultVariants: { size: "md", surface: "bordered" }
180
+ }
181
+ ), We = S("ds:block ds:w-full", {
182
+ variants: {
183
+ size: {
184
+ sm: "ds:[block-size:var(--map-block-size)]",
185
+ md: "ds:[block-size:var(--map-block-size)]",
186
+ lg: "ds:[block-size:var(--map-block-size)]",
187
+ fill: "ds:[block-size:100%]"
188
+ }
189
+ },
190
+ defaultVariants: { size: "md" }
191
+ }), qe = S(
192
+ [
193
+ "ds:absolute ds:inset-0",
194
+ "ds:flex ds:flex-col ds:items-center ds:justify-center",
195
+ "ds:gap-[var(--spacing-sm)]",
196
+ "ds:p-[var(--spacing-md)]",
197
+ "ds:bg-[var(--muted)] ds:text-[var(--foreground)]",
198
+ "ds:text-center"
199
+ ].join(" ")
200
+ ), Be = S("type-heading-3 ds:m-0"), se = S(
201
+ "type-body-sm ds:text-[var(--muted-foreground)] ds:[max-inline-size:28rem] ds:m-0"
202
+ );
203
+ function Fe({
204
+ onHandleReady: e,
205
+ onMarkerSelect: o,
206
+ onCameraMove: r
207
+ }) {
208
+ const a = $();
209
+ return x(() => {
210
+ if (a)
211
+ return e({
212
+ panTo: (t) => {
213
+ r(), a.panTo(t);
214
+ },
215
+ setZoom: (t) => {
216
+ r(), a.setZoom(t);
217
+ },
218
+ jumpTo: (t, i) => {
219
+ r(), a.moveCamera({ center: t, zoom: i });
220
+ },
221
+ selectMarker: (t) => o(t),
222
+ // Read straight off the live map: Google clamps `setZoom` to the
223
+ // map type's range and animates `panTo`, so requested and applied
224
+ // are not the same value.
225
+ getCenter: () => {
226
+ var t;
227
+ return ((t = a.getCenter()) == null ? void 0 : t.toJSON()) ?? null;
228
+ },
229
+ getZoom: () => a.getZoom() ?? null
230
+ }), () => e(null);
231
+ }, [a, e, o, r]), null;
232
+ }
233
+ function Je({
234
+ onBoundsChange: e,
235
+ userInteraction: o
236
+ }) {
237
+ const r = $(), a = k(e);
238
+ return a.current = e, x(() => {
239
+ if (!r) return;
240
+ const t = r.getDiv();
241
+ let i = null;
242
+ const d = () => {
243
+ o.current = {
244
+ pendingInput: !1,
245
+ moved: !1,
246
+ programmatic: !1
247
+ };
248
+ };
249
+ d();
250
+ let h;
251
+ const u = /* @__PURE__ */ new Set(), m = (n) => {
252
+ if (n instanceof PointerEvent && n.pointerType === "touch" && (n.type === "pointerdown" && u.add(n.pointerId), n.type === "pointerup" || n.type === "pointercancel")) {
253
+ u.delete(n.pointerId);
254
+ return;
255
+ }
256
+ if (n instanceof PointerEvent && n.type === "pointermove" && n.buttons === 0 && n.pointerType !== "touch" || n instanceof KeyboardEvent && ![
257
+ "ArrowUp",
258
+ "ArrowDown",
259
+ "ArrowLeft",
260
+ "ArrowRight",
261
+ "+",
262
+ "=",
263
+ "-",
264
+ "_",
265
+ "Enter",
266
+ " ",
267
+ "PageUp",
268
+ "PageDown"
269
+ ].includes(n.key))
270
+ return;
271
+ const p = document.fullscreenElement, v = !!(p && (p.contains(t) || t.contains(p)));
272
+ let b = n.type === "dblclick";
273
+ n instanceof PointerEvent && n.type === "pointermove" && (b = n.pointerType !== "touch" || u.size >= 2 || v), n.type === "touchmove" && (b = n.touches.length >= 2 || v), n instanceof KeyboardEvent && (b = n.key !== "Enter" && n.key !== " "), n instanceof WheelEvent && (b = n.ctrlKey || n.metaKey || v), n.type === "click" && (b = n.target instanceof Element && n.target.closest('button, [role="button"]') != null), b && (o.current.programmatic = !1), o.current.pendingInput = !0, clearTimeout(h), h = setTimeout(() => {
274
+ o.current.pendingInput = !1;
275
+ }, 250);
276
+ }, f = () => {
277
+ o.current.pendingInput && !o.current.programmatic && (o.current.moved = !0);
278
+ }, g = () => {
279
+ var E, P;
280
+ const n = (E = r.getBounds()) == null ? void 0 : E.toJSON(), p = (P = r.getCenter()) == null ? void 0 : P.toJSON(), v = r.getZoom(), b = o.current.moved;
281
+ if (d(), clearTimeout(h), !n || !p || v == null) return;
282
+ const z = !i || Object.keys(n).some(
283
+ (G) => n[G] !== i.bounds[G]
284
+ ), I = i != null && (v !== i.zoom || p.lat !== i.center.lat || p.lng !== i.center.lng);
285
+ i = { bounds: n, center: p, zoom: v }, z && a.current(n, { userInteraction: b && I });
286
+ }, c = [
287
+ "pointerdown",
288
+ "pointermove",
289
+ "pointerup",
290
+ "pointercancel",
291
+ "touchstart",
292
+ "touchmove",
293
+ "click",
294
+ "dblclick",
295
+ "wheel",
296
+ "keydown"
297
+ ];
298
+ c.forEach(
299
+ (n) => t.addEventListener(n, m, { capture: !0, passive: !0 })
300
+ );
301
+ const w = [
302
+ r.addListener("dragstart", () => {
303
+ o.current.programmatic = !1, o.current.moved = !0;
304
+ }),
305
+ r.addListener("center_changed", f),
306
+ r.addListener("zoom_changed", f),
307
+ r.addListener("idle", g)
308
+ ];
309
+ return g(), () => {
310
+ w.forEach((n) => n.remove()), c.forEach(
311
+ (n) => t.removeEventListener(n, m, !0)
312
+ ), clearTimeout(h), d();
313
+ };
314
+ }, [r, o]), null;
315
+ }
316
+ function Ue(e, o) {
317
+ const r = $(), [a, t] = N(null), { lat: i, lng: d } = o;
318
+ return x(() => {
319
+ if (!r || typeof r.getCenter != "function") return;
320
+ const h = () => {
321
+ var p, v;
322
+ const m = (p = r.getCenter()) == null ? void 0 : p.toJSON(), f = r.getZoom(), g = (v = r.getDiv) == null ? void 0 : v.call(r);
323
+ if (!m || f == null || !g) {
324
+ t(null);
325
+ return;
326
+ }
327
+ const c = g.clientWidth, w = g.clientHeight, n = le * 2 ** f;
328
+ t({
329
+ id: e,
330
+ width: c,
331
+ height: w,
332
+ x: c / 2 + (d - m.lng) / 360 * n,
333
+ y: w / 2 - (H(i) - H(m.lat)) * n / (2 * Math.PI)
334
+ });
335
+ };
336
+ h();
337
+ const u = ["bounds_changed", "zoom_changed", "center_changed", "idle"].flatMap(
338
+ (m) => typeof r.addListener == "function" ? [r.addListener(m, h)] : []
339
+ );
340
+ return () => u.forEach((m) => m.remove());
341
+ }, [r, e, i, d]), (a == null ? void 0 : a.id) === e ? a : null;
342
+ }
343
+ function Xe({
344
+ marker: e,
345
+ frame: o,
346
+ direction: r,
347
+ children: a
348
+ }) {
349
+ const t = Ue(e.id, e.position);
350
+ return !t || !o ? null : Ve(
351
+ /* @__PURE__ */ l(et, { anchor: t, direction: r, children: a }),
352
+ o
353
+ );
354
+ }
355
+ const Ye = 52, Qe = 12, D = 8;
356
+ function et({
357
+ anchor: e,
358
+ children: o,
359
+ direction: r
360
+ }) {
361
+ const a = k(null), [t, i] = N(
362
+ null
363
+ );
364
+ if (Ee(() => {
365
+ const n = a.current;
366
+ n && i(
367
+ (p) => (p == null ? void 0 : p.width) === n.offsetWidth && p.height === n.offsetHeight ? p : { width: n.offsetWidth, height: n.offsetHeight }
368
+ );
369
+ }, [o, e.id]), !(e.x >= 0 && e.x <= e.width && e.y >= 0 && e.y <= e.height)) return null;
370
+ const h = (t == null ? void 0 : t.width) ?? 0, u = (t == null ? void 0 : t.height) ?? 0, m = Math.max(D, e.width - h - D), f = Math.min(Math.max(e.x - h / 2, D), m), g = e.y - Ye - u, c = g < D, w = c ? e.y + Qe : g;
371
+ return (
372
+ // The layer is `ltr` because the map is geographic: x is always measured
373
+ // from the physical left. The card inside takes the page direction.
374
+ /* @__PURE__ */ l(
375
+ "div",
376
+ {
377
+ dir: "ltr",
378
+ "aria-hidden": "true",
379
+ "data-component": "map-view-marker-card-layer",
380
+ className: "ds:pointer-events-none ds:absolute ds:inset-0 ds:overflow-hidden",
381
+ children: /* @__PURE__ */ l(
382
+ "div",
383
+ {
384
+ ref: a,
385
+ "data-component": "map-view-marker-card",
386
+ "data-marker-id": e.id,
387
+ "data-placement": c ? "below" : "above",
388
+ style: {
389
+ "--marker-card-x": `${f}px`,
390
+ "--marker-card-y": `${w}px`
391
+ },
392
+ "data-measured": t ? "true" : "false",
393
+ className: "ds:absolute ds:[inset-inline-start:var(--marker-card-x)] ds:[inset-block-start:var(--marker-card-y)] ds:[inline-size:max-content] ds:[max-inline-size:calc(100%-var(--spacing-md))] ds:data-[measured=false]:invisible",
394
+ children: /* @__PURE__ */ l("div", { dir: r, children: o })
395
+ }
396
+ )
397
+ }
398
+ )
399
+ );
400
+ }
401
+ const le = 256, tt = (e) => e * Math.PI / 180;
402
+ function H(e) {
403
+ const o = Math.min(Math.max(Math.sin(tt(e)), -0.9999), 0.9999);
404
+ return Math.log((1 + o) / (1 - o)) / 2;
405
+ }
406
+ const nt = (e) => Math.atan(Math.sinh(e)) * 180 / Math.PI;
407
+ function rt(e) {
408
+ let o = -90, r = 90, a = -180, t = 180;
409
+ for (const { lat: i, lng: d } of e)
410
+ o = Math.max(o, i), r = Math.min(r, i), a = Math.max(a, d), t = Math.min(t, d);
411
+ return { north: o, south: r, east: a, west: t };
412
+ }
413
+ function ot(e, o, r, a, t) {
414
+ const { north: i, south: d, east: h, west: u } = rt(e);
415
+ if (i === d && h === u)
416
+ return { center: { lat: i, lng: h }, zoom: t };
417
+ const m = H(i), f = H(d), g = {
418
+ lat: nt((m + f) / 2),
419
+ lng: (h + u) / 2
420
+ }, c = (n, p) => p > 0 ? Math.log2(Math.max(n, 1) / le / p) : t, w = Math.min(
421
+ c(o - 2 * a, (h - u) / 360),
422
+ c(r - 2 * a, (m - f) / (2 * Math.PI)),
423
+ t
424
+ );
425
+ return { center: g, zoom: Math.max(0, Math.floor(w)) };
426
+ }
427
+ const ce = ({ id: e, lat: o, lng: r }) => e != null ? `id:${e}` : `at:${o},${r}`;
428
+ function st({
429
+ points: e,
430
+ fitKey: o,
431
+ maxZoom: r,
432
+ onCameraMove: a
433
+ }) {
434
+ const t = $(), i = k(null), d = k(!1), h = k(null);
435
+ return x(() => {
436
+ if (!t) return;
437
+ const u = () => {
438
+ var n;
439
+ const f = h.current, g = (n = t.getCenter()) == null ? void 0 : n.toJSON(), c = t.getZoom();
440
+ f != null && c === f.zoom && g != null && Math.abs(g.lat - f.center.lat) < 1e-6 && Math.abs(g.lng - f.center.lng) < 1e-6 || (d.current = !0);
441
+ }, m = [
442
+ t.addListener("dragstart", () => {
443
+ d.current = !0;
444
+ }),
445
+ t.addListener("center_changed", u),
446
+ t.addListener("zoom_changed", u)
447
+ ];
448
+ return () => m.forEach((f) => f.remove());
449
+ }, [t]), x(() => {
450
+ var v;
451
+ if (!t) return;
452
+ const u = ((v = i.current) == null ? void 0 : v.map) === t ? i.current : null;
453
+ if ((u == null ? void 0 : u.key) === o) return;
454
+ const m = new Set(e.map(ce)), f = (b, z) => {
455
+ h.current = { center: b, zoom: z }, a(), t.moveCamera({ center: b, zoom: z }), d.current = !1;
456
+ };
457
+ if (e.length === 0) {
458
+ i.current = { map: t, key: o, points: m };
459
+ return;
460
+ }
461
+ if (u != null && u.points.size > 0 && [...u.points].every((b) => m.has(b)) && d.current) {
462
+ i.current = { map: t, key: o, points: m };
463
+ return;
464
+ }
465
+ const c = t.getDiv();
466
+ if (!(c instanceof Element)) return;
467
+ const w = () => {
468
+ i.current = { map: t, key: o, points: m };
469
+ const b = Math.min(
470
+ je("--spacing-2xl", c, 48),
471
+ c.clientWidth / 4,
472
+ c.clientHeight / 4
473
+ ), { center: z, zoom: I } = ot(
474
+ e,
475
+ c.clientWidth,
476
+ c.clientHeight,
477
+ b,
478
+ r
479
+ );
480
+ f(z, I);
481
+ }, n = () => c.clientWidth > 0 && c.clientHeight > 0;
482
+ if (n() || typeof ResizeObserver > "u") {
483
+ w();
484
+ return;
485
+ }
486
+ const p = new ResizeObserver(() => {
487
+ n() && (p.disconnect(), w());
488
+ });
489
+ return p.observe(c), () => p.disconnect();
490
+ }, [t, o, e, r, a]), null;
491
+ }
492
+ const de = (e) => {
493
+ var o, r;
494
+ return typeof ((r = (o = globalThis.google) == null ? void 0 : o.maps) == null ? void 0 : r[e]) == "function";
495
+ };
496
+ function ue() {
497
+ const { t: e } = q("ui");
498
+ return /* @__PURE__ */ T(
499
+ "div",
500
+ {
501
+ role: "status",
502
+ "data-testid": "map-view-loading",
503
+ className: "ds:[inline-size:100%] ds:[block-size:100%]",
504
+ children: [
505
+ /* @__PURE__ */ l(Re, { variant: "rectangular", width: "100%", height: "100%" }),
506
+ /* @__PURE__ */ l(Ae, { children: e("common.loading") })
507
+ ]
508
+ }
509
+ );
510
+ }
511
+ function at({ children: e }) {
512
+ const o = Se();
513
+ return ie("maps") || !o || de("Map") ? e : /* @__PURE__ */ l(ue, {});
514
+ }
515
+ function it({ children: e }) {
516
+ return ie("marker") || de("Marker") ? e : null;
517
+ }
518
+ function ae({
519
+ address: e,
520
+ contentLang: o,
521
+ description: r,
522
+ onLoadMap: a,
523
+ openInGoogleMapsHref: t,
524
+ consentCta: i
525
+ }) {
526
+ const { t: d } = q("ui");
527
+ return /* @__PURE__ */ T("div", { className: qe(), "data-testid": "map-view-consent", children: [
528
+ /* @__PURE__ */ l(
529
+ De,
530
+ {
531
+ "aria-hidden": "true",
532
+ className: "ds:size-6 ds:text-[var(--muted-foreground)]"
533
+ }
534
+ ),
535
+ /* @__PURE__ */ l("p", { className: Be(), children: d("mapView.consentTitle") }),
536
+ e ? /* @__PURE__ */ l(
537
+ "p",
538
+ {
539
+ className: se(),
540
+ "data-testid": "map-view-address",
541
+ lang: o,
542
+ children: e
543
+ }
544
+ ) : null,
545
+ /* @__PURE__ */ l("p", { className: se(), children: r }),
546
+ /* @__PURE__ */ T("div", { className: "ds:flex ds:gap-[var(--spacing-sm)] ds:flex-wrap ds:items-center ds:justify-center", children: [
547
+ i ?? /* @__PURE__ */ l(
548
+ Ge,
549
+ {
550
+ type: "button",
551
+ intent: "primary",
552
+ size: "sm",
553
+ onClick: a,
554
+ "data-testid": "map-view-load-cta",
555
+ children: d("mapView.consentCta")
556
+ }
557
+ ),
558
+ /* @__PURE__ */ T(
559
+ "a",
560
+ {
561
+ href: t,
562
+ target: "_blank",
563
+ rel: "noopener noreferrer",
564
+ className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:text-[var(--primary-readable)] ds:underline ds:underline-offset-2",
565
+ children: [
566
+ d("mapView.openInGoogleMaps"),
567
+ /* @__PURE__ */ l(He, { "aria-hidden": "true", className: "ds:size-3" })
568
+ ]
569
+ }
570
+ )
571
+ ] })
572
+ ] });
573
+ }
574
+ const lt = xe(
575
+ ({
576
+ id: e,
577
+ apiKey: o,
578
+ center: r,
579
+ zoom: a = 15,
580
+ markers: t,
581
+ selectedMarkerId: i,
582
+ hoveredMarkerId: d,
583
+ renderMarkerCard: h,
584
+ onMarkerClick: u,
585
+ onBoundsChange: m,
586
+ consentGranted: f = !1,
587
+ onConsentRequest: g,
588
+ address: c,
589
+ contentLang: w,
590
+ consentDescription: n,
591
+ consentCta: p,
592
+ mapId: v,
593
+ size: b,
594
+ surface: z,
595
+ ariaLabel: I,
596
+ fitToPoints: E,
597
+ fitKey: P,
598
+ fitMaxZoom: G = 15,
599
+ className: pe,
600
+ ...me
601
+ }, he) => {
602
+ const { t: R, i18n: B } = q("ui"), A = V(() => E ?? [], [E]), fe = V(
603
+ () => P ?? A.map((s) => `${ce(s)}@${s.lat},${s.lng}`).sort().join("|"),
604
+ [P, A]
605
+ ), C = A.length > 0, F = k(C), J = Ce(), ge = V(
606
+ () => `map-${J.replace(/[^a-zA-Z0-9-_]/g, "")}`,
607
+ [J]
608
+ ), [U, ye] = N(!1);
609
+ x(() => {
610
+ if (typeof window > "u") return;
611
+ const s = window.matchMedia("(prefers-reduced-motion: reduce)"), y = () => ye(s.matches);
612
+ return y(), s.addEventListener("change", y), () => s.removeEventListener("change", y);
613
+ }, []);
614
+ const X = V(() => `https://www.google.com/maps/search/?api=1&query=${c ? encodeURIComponent(c) : `${r.lat},${r.lng}`}`, [c, r.lat, r.lng]), M = k(null), Y = k({
615
+ pendingInput: !1,
616
+ moved: !1,
617
+ programmatic: !1
618
+ }), Z = _(() => {
619
+ Y.current = {
620
+ pendingInput: !1,
621
+ moved: !1,
622
+ programmatic: !0
623
+ };
624
+ }, []), O = _(
625
+ (s) => {
626
+ Z(), u == null || u(s);
627
+ },
628
+ [Z, u]
629
+ ), [be, ve] = N(null), K = V(
630
+ () => d != null && h ? (t ?? []).find((s) => s.id === d) ?? null : null,
631
+ [d, h, t]
632
+ ), we = _((s) => {
633
+ M.current = s;
634
+ }, []), Q = k(!1), ee = k(null), te = k(0), j = _(
635
+ () => ({
636
+ panTo: (s) => {
637
+ var y;
638
+ return (y = M.current) == null ? void 0 : y.panTo(s);
639
+ },
640
+ setZoom: (s) => {
641
+ var y;
642
+ return (y = M.current) == null ? void 0 : y.setZoom(s);
643
+ },
644
+ selectMarker: (s) => {
645
+ var y;
646
+ return (y = M.current) == null ? void 0 : y.selectMarker(s);
647
+ },
648
+ // Without `isConsentGranted` an agent has no way to learn that
649
+ // its pan / zoom / select was swallowed by the GDPR gate rather
650
+ // than applied: under the default (`consentGranted={false}`) the
651
+ // whole Maps subtree is unmounted and every action optional-chains
652
+ // into nothing.
653
+ isConsentGranted: () => Q.current,
654
+ getCenter: () => {
655
+ var s;
656
+ return ((s = M.current) == null ? void 0 : s.getCenter()) ?? null;
657
+ },
658
+ getZoom: () => {
659
+ var s;
660
+ return ((s = M.current) == null ? void 0 : s.getZoom()) ?? null;
661
+ },
662
+ getSelectedMarkerId: () => ee.current,
663
+ getMarkerCount: () => te.current
664
+ }),
665
+ []
666
+ );
667
+ Le(he, j, [j]);
668
+ const ke = V(
669
+ () => j(),
670
+ [j]
671
+ );
672
+ Oe($e, ke, e), x(() => {
673
+ var y, L;
674
+ const s = F.current && !C;
675
+ if (F.current = C, !C) {
676
+ if (s) {
677
+ (y = M.current) == null || y.jumpTo(r, a);
678
+ return;
679
+ }
680
+ U || (L = M.current) == null || L.panTo(r);
681
+ }
682
+ }, [r.lat, r.lng, U, C]), x(() => {
683
+ var s;
684
+ C || (s = M.current) == null || s.setZoom(a);
685
+ }, [a, C]);
686
+ const [Me, ne] = N(!1), re = f || Me;
687
+ Q.current = re, ee.current = i ?? null, te.current = (t ?? []).length;
688
+ const ze = _(() => {
689
+ if (g) {
690
+ g(), ne(!0);
691
+ return;
692
+ }
693
+ ne(!0);
694
+ }, [g]);
695
+ return /* @__PURE__ */ l(
696
+ "div",
697
+ {
698
+ className: Ke({ size: b, surface: z, className: pe }),
699
+ "data-component": "map-view",
700
+ "data-component-id": e ?? ge,
701
+ role: "region",
702
+ "aria-label": I ?? R("mapView.label"),
703
+ ...me,
704
+ children: /* @__PURE__ */ l(
705
+ "div",
706
+ {
707
+ ref: ve,
708
+ className: We({ size: b, className: "ds:relative" }),
709
+ children: re ? (
710
+ // A provider failure shows the consent placeholder (its "Open in
711
+ // Google Maps" link needs no script) with "Load map" as the
712
+ // retry, instead of unmounting the host's React tree. The gate
713
+ // starts the provider only once Google's `core` and `maps`
714
+ // libraries have arrived.
715
+ /* @__PURE__ */ l(
716
+ Ze,
717
+ {
718
+ fallback: ({ reset: s }) => /* @__PURE__ */ l(
719
+ ae,
720
+ {
721
+ address: c,
722
+ contentLang: w,
723
+ description: n ?? R("mapView.consentDescription"),
724
+ onLoadMap: s,
725
+ consentCta: void 0,
726
+ openInGoogleMapsHref: X
727
+ }
728
+ ),
729
+ children: /* @__PURE__ */ l(Ie, { libraries: ["maps"], pending: /* @__PURE__ */ l(ue, {}), children: /* @__PURE__ */ l(
730
+ Pe,
731
+ {
732
+ apiKey: o,
733
+ language: B.language,
734
+ children: /* @__PURE__ */ l(at, { children: /* @__PURE__ */ T(
735
+ _e,
736
+ {
737
+ defaultCenter: r,
738
+ defaultZoom: a,
739
+ mapId: v,
740
+ gestureHandling: "cooperative",
741
+ disableDefaultUI: !1,
742
+ onClick: () => O(null),
743
+ className: "ds:[inline-size:100%] ds:[block-size:100%]",
744
+ children: [
745
+ /* @__PURE__ */ l(
746
+ Fe,
747
+ {
748
+ onHandleReady: we,
749
+ onMarkerSelect: O,
750
+ onCameraMove: Z
751
+ }
752
+ ),
753
+ m ? /* @__PURE__ */ l(
754
+ Je,
755
+ {
756
+ onBoundsChange: m,
757
+ userInteraction: Y
758
+ }
759
+ ) : null,
760
+ E ? /* @__PURE__ */ l(
761
+ st,
762
+ {
763
+ points: A,
764
+ fitKey: fe,
765
+ maxZoom: G,
766
+ onCameraMove: Z
767
+ }
768
+ ) : null,
769
+ K && h ? /* @__PURE__ */ l(
770
+ Xe,
771
+ {
772
+ marker: K,
773
+ frame: be,
774
+ direction: B.dir(),
775
+ children: h(K.id)
776
+ }
777
+ ) : null,
778
+ /* @__PURE__ */ l(it, { children: (t ?? []).map((s) => {
779
+ const y = i != null && i === s.id, L = d != null && d === s.id, W = R("mapView.markerLabel", {
780
+ label: s.label ?? s.id
781
+ });
782
+ return v ? /* @__PURE__ */ l(
783
+ Te,
784
+ {
785
+ position: s.position,
786
+ title: W,
787
+ "aria-label": W,
788
+ "data-selected": y ? "true" : "false",
789
+ "data-hovered": L ? "true" : "false",
790
+ zIndex: L ? 1e3 : y ? 500 : void 0,
791
+ onClick: () => O(s.id),
792
+ children: L ? (
793
+ // Hovered pin: larger, deep ink body with a
794
+ // white ring. Theme-invariant, because the
795
+ // tiles do not follow the kit theme: one of
796
+ // body and ring clears 3:1 on any map style.
797
+ // Not `--accent`, which failed contrast.
798
+ /* @__PURE__ */ l(
799
+ oe,
800
+ {
801
+ scale: 1.4,
802
+ background: "var(--map-marker-hover-color)",
803
+ borderColor: "var(--map-marker-hover-ring)",
804
+ glyphColor: "var(--map-marker-hover-ring)"
805
+ }
806
+ )
807
+ ) : /* @__PURE__ */ l(
808
+ oe,
809
+ {
810
+ background: "var(--primary)",
811
+ borderColor: "var(--primary)",
812
+ glyphColor: "var(--primary-foreground)"
813
+ }
814
+ )
815
+ },
816
+ s.id
817
+ ) : /* @__PURE__ */ l(
818
+ Ne,
819
+ {
820
+ position: s.position,
821
+ title: W,
822
+ zIndex: L ? 1e3 : y ? 500 : void 0,
823
+ onClick: () => O(s.id)
824
+ },
825
+ s.id
826
+ );
827
+ }) })
828
+ ]
829
+ }
830
+ ) })
831
+ }
832
+ ) })
833
+ }
834
+ )
835
+ ) : /* @__PURE__ */ l(
836
+ ae,
837
+ {
838
+ address: c,
839
+ contentLang: w,
840
+ description: n ?? R("mapView.consentDescription"),
841
+ onLoadMap: ze,
842
+ consentCta: p,
843
+ openInGoogleMapsHref: X
844
+ }
845
+ )
846
+ }
847
+ )
848
+ }
849
+ );
850
+ }
851
+ );
852
+ lt.displayName = "MapView";
853
+ export {
854
+ lt as M
855
+ };
856
+ //# sourceMappingURL=map-view-Bny79cWa.js.map