@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
@@ -1,731 +0,0 @@
1
- import { jsx as l, jsxs as S } from "react/jsx-runtime";
2
- import { forwardRef as ge, useMemo as E, useRef as k, useId as fe, useState as Y, useEffect as C, useCallback as T, useImperativeHandle as be } from "react";
3
- import { c as x } from "./index-D2ZczOXr.js";
4
- import { useTranslation as A } from "react-i18next";
5
- import { M as ye, A as we, a as ve, b as ke, P as Me, c as ze, u as Ve, d as ne, e as K } from "./maps-core-gate-DkNqGkm3.js";
6
- import { B as Ce } from "./button-DohK_Ak_.js";
7
- import { S as Ie } from "./skeleton-tTWJpvAq.js";
8
- import { V as Le } from "./visually-hidden-BHxEUGyT.js";
9
- import { E as Ee } from "./error-boundary-tAn_GuCu.js";
10
- import { u as Te } from "./registry-DvAUVLHh.js";
11
- import { l as Se } from "./length-token-DwMnGEYT.js";
12
- import { M as xe } from "./map-pin-BaY37-Km.js";
13
- import { E as Pe } from "./external-link-CY6zAXXU.js";
14
- const Ge = {
15
- id: "map-view",
16
- // pan → scroll (viewport move); set_zoom → set_value; select_marker → pick
17
- // (NON-persisting marker focus, no value state slot).
18
- capabilities: ["scroll", "set_value", "pick"],
19
- // Every action routes through the imperative bridge, which only exists
20
- // once the map has loaded: consent granted (the default is
21
- // `consentGranted={false}`) and Google Maps finished loading. Until then
22
- // all three actions are silent no-ops. `consentGranted` says whether the
23
- // gate is passed, and a null `center` after it means the map is still
24
- // loading. `center` / `zoom` are read off the live
25
- // map because Google clamps zoom and animates pans, so requested is not
26
- // applied; `selectedMarkerId` is the only confirmation the host accepted
27
- // a `select_marker` proposal.
28
- //
29
- // A9: marker ids only (`MapMarker.id` is a stable opaque id). Never
30
- // `MapMarker.label`, never the `address` prop (consumer-supplied free
31
- // text, PII in any patient-address deployment), never `apiKey`.
32
- state: {
33
- consentGranted: {
34
- type: "boolean",
35
- descriptionKey: "ui.agent.mapView.state.consentGranted",
36
- 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.",
37
- read: (e) => e.isConsentGranted()
38
- },
39
- markerCount: {
40
- type: "number",
41
- descriptionKey: "ui.agent.mapView.state.markerCount",
42
- 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.",
43
- read: (e) => e.getMarkerCount()
44
- },
45
- selectedMarkerId: {
46
- type: "string | null",
47
- descriptionKey: "ui.agent.mapView.state.selectedMarkerId",
48
- 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.",
49
- read: (e) => e.getSelectedMarkerId()
50
- },
51
- center: {
52
- type: "{ lat: number; lng: number } | null",
53
- descriptionKey: "ui.agent.mapView.state.center",
54
- 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.",
55
- read: (e) => e.getCenter()
56
- },
57
- zoom: {
58
- type: "number | null",
59
- descriptionKey: "ui.agent.mapView.state.zoom",
60
- 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`.",
61
- read: (e) => e.getZoom()
62
- }
63
- },
64
- actions: {
65
- pan_to: {
66
- // Ephemeral viewport move, no data loss → read.
67
- safety: "read",
68
- argsType: "{ position: { lat: number; lng: number } }",
69
- argsSchema: {
70
- type: "object",
71
- properties: {
72
- position: {
73
- type: "object",
74
- properties: {
75
- lat: { type: "number", description: "Latitude in degrees." },
76
- lng: { type: "number", description: "Longitude in degrees." }
77
- },
78
- required: ["lat", "lng"]
79
- }
80
- },
81
- required: ["position"]
82
- },
83
- idempotent: !0,
84
- descriptionKey: "ui.agent.mapView.actions.panTo",
85
- 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.",
86
- errors: [
87
- "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)."
88
- ],
89
- invoke: (e, n) => {
90
- e.panTo(n.position);
91
- }
92
- },
93
- set_zoom: {
94
- // Ephemeral viewport zoom, no data loss → read.
95
- safety: "read",
96
- argsType: "{ zoom: number }",
97
- argsSchema: {
98
- type: "object",
99
- properties: {
100
- zoom: {
101
- type: "number",
102
- description: "Zoom level, typical range 1–20."
103
- }
104
- },
105
- required: ["zoom"]
106
- },
107
- idempotent: !0,
108
- descriptionKey: "ui.agent.mapView.actions.setZoom",
109
- 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.",
110
- errors: [
111
- "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).",
112
- "Requested zoom is clamped to the map type's range; `zoom` reports what was actually applied."
113
- ],
114
- invoke: (e, n) => {
115
- e.setZoom(n.zoom);
116
- }
117
- },
118
- select_marker: {
119
- // Ephemeral marker focus, no data loss → read.
120
- safety: "read",
121
- argsType: "{ id: string | null }",
122
- argsSchema: {
123
- type: "object",
124
- properties: {
125
- id: {
126
- type: ["string", "null"],
127
- description: "Marker id to select, or null to clear the selection."
128
- }
129
- },
130
- required: ["id"]
131
- },
132
- idempotent: !0,
133
- descriptionKey: "ui.agent.mapView.actions.selectMarker",
134
- 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.",
135
- errors: [
136
- "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).",
137
- "The host owns `selectedMarkerId` and may ignore the proposal; `selectedMarkerId` is unchanged when it does."
138
- ],
139
- invoke: (e, n) => {
140
- e.selectMarker(n.id);
141
- }
142
- }
143
- },
144
- domHooks: {
145
- root: {
146
- attr: "data-component",
147
- value: "map-view",
148
- description: "Marks the element as a kit MapView."
149
- },
150
- instanceId: {
151
- attr: "data-component-id",
152
- sourceProp: "id",
153
- description: "Sourced from the id prop."
154
- }
155
- }
156
- }, Ne = x(
157
- ["ds:relative ds:overflow-hidden ds:block", "ds:bg-[var(--muted)]"].join(" "),
158
- {
159
- variants: {
160
- size: {
161
- sm: "ds:[--map-block-size:14rem]",
162
- md: "ds:[--map-block-size:20rem]",
163
- lg: "ds:[--map-block-size:28rem]",
164
- // `fill` defers sizing to the parent. The outer takes
165
- // `block-size: 100%` so the inner (also 100%) has something
166
- // to inherit from. Use inside a viewport-locked column —
167
- // `<PracticeResults variant="map-first">` wires this through
168
- // automatically; standalone consumers must give the parent
169
- // a constrained block-size or the map collapses to 0.
170
- fill: "ds:[block-size:100%]"
171
- },
172
- surface: {
173
- bordered: "ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
174
- 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)]",
175
- bare: "ds:rounded-none ds:border-0"
176
- }
177
- },
178
- defaultVariants: { size: "md", surface: "bordered" }
179
- }
180
- ), Re = x("ds:block ds:w-full", {
181
- variants: {
182
- size: {
183
- sm: "ds:[block-size:var(--map-block-size)]",
184
- md: "ds:[block-size:var(--map-block-size)]",
185
- lg: "ds:[block-size:var(--map-block-size)]",
186
- fill: "ds:[block-size:100%]"
187
- }
188
- },
189
- defaultVariants: { size: "md" }
190
- }), Ze = x(
191
- [
192
- "ds:absolute ds:inset-0",
193
- "ds:flex ds:flex-col ds:items-center ds:justify-center",
194
- "ds:gap-[var(--spacing-sm)]",
195
- "ds:p-[var(--spacing-md)]",
196
- "ds:bg-[var(--muted)] ds:text-[var(--foreground)]",
197
- "ds:text-center"
198
- ].join(" ")
199
- ), _e = x("type-heading-3 ds:m-0"), Q = x(
200
- "type-body-sm ds:text-[var(--muted-foreground)] ds:[max-inline-size:28rem] ds:m-0"
201
- );
202
- function je({
203
- onHandleReady: e,
204
- onMarkerSelect: n,
205
- onCameraMove: o
206
- }) {
207
- const i = K();
208
- return C(() => {
209
- if (i)
210
- return e({
211
- panTo: (r) => {
212
- o(), i.panTo(r);
213
- },
214
- setZoom: (r) => {
215
- o(), i.setZoom(r);
216
- },
217
- jumpTo: (r, a) => {
218
- o(), i.moveCamera({ center: r, zoom: a });
219
- },
220
- selectMarker: (r) => n(r),
221
- // Read straight off the live map: Google clamps `setZoom` to the
222
- // map type's range and animates `panTo`, so requested and applied
223
- // are not the same value.
224
- getCenter: () => {
225
- var r;
226
- return ((r = i.getCenter()) == null ? void 0 : r.toJSON()) ?? null;
227
- },
228
- getZoom: () => i.getZoom() ?? null
229
- }), () => e(null);
230
- }, [i, e, n, o]), null;
231
- }
232
- function Oe({
233
- onBoundsChange: e,
234
- userInteraction: n
235
- }) {
236
- const o = K(), i = k(e);
237
- return i.current = e, C(() => {
238
- if (!o) return;
239
- const r = o.getDiv();
240
- let a = null;
241
- const c = () => {
242
- n.current = {
243
- pendingInput: !1,
244
- moved: !1,
245
- programmatic: !1
246
- };
247
- };
248
- c();
249
- let b;
250
- const u = /* @__PURE__ */ new Set(), f = (t) => {
251
- if (t instanceof PointerEvent && t.pointerType === "touch" && (t.type === "pointerdown" && u.add(t.pointerId), t.type === "pointerup" || t.type === "pointercancel")) {
252
- u.delete(t.pointerId);
253
- return;
254
- }
255
- if (t instanceof PointerEvent && t.type === "pointermove" && t.buttons === 0 && t.pointerType !== "touch" || t instanceof KeyboardEvent && ![
256
- "ArrowUp",
257
- "ArrowDown",
258
- "ArrowLeft",
259
- "ArrowRight",
260
- "+",
261
- "=",
262
- "-",
263
- "_",
264
- "Enter",
265
- " ",
266
- "PageUp",
267
- "PageDown"
268
- ].includes(t.key))
269
- return;
270
- const m = document.fullscreenElement, w = !!(m && (m.contains(r) || r.contains(m)));
271
- let h = t.type === "dblclick";
272
- t instanceof PointerEvent && t.type === "pointermove" && (h = t.pointerType !== "touch" || u.size >= 2 || w), t.type === "touchmove" && (h = t.touches.length >= 2 || w), t instanceof KeyboardEvent && (h = t.key !== "Enter" && t.key !== " "), t instanceof WheelEvent && (h = t.ctrlKey || t.metaKey || w), t.type === "click" && (h = t.target instanceof Element && t.target.closest('button, [role="button"]') != null), h && (n.current.programmatic = !1), n.current.pendingInput = !0, clearTimeout(b), b = setTimeout(() => {
273
- n.current.pendingInput = !1;
274
- }, 250);
275
- }, d = () => {
276
- n.current.pendingInput && !n.current.programmatic && (n.current.moved = !0);
277
- }, y = () => {
278
- var P, G;
279
- const t = (P = o.getBounds()) == null ? void 0 : P.toJSON(), m = (G = o.getCenter()) == null ? void 0 : G.toJSON(), w = o.getZoom(), h = n.current.moved;
280
- if (c(), clearTimeout(b), !t || !m || w == null) return;
281
- const v = !a || Object.keys(t).some(
282
- (N) => t[N] !== a.bounds[N]
283
- ), I = a != null && (w !== a.zoom || m.lat !== a.center.lat || m.lng !== a.center.lng);
284
- a = { bounds: t, center: m, zoom: w }, v && i.current(t, { userInteraction: h && I });
285
- }, p = [
286
- "pointerdown",
287
- "pointermove",
288
- "pointerup",
289
- "pointercancel",
290
- "touchstart",
291
- "touchmove",
292
- "click",
293
- "dblclick",
294
- "wheel",
295
- "keydown"
296
- ];
297
- p.forEach(
298
- (t) => r.addEventListener(t, f, { capture: !0, passive: !0 })
299
- );
300
- const M = [
301
- o.addListener("dragstart", () => {
302
- n.current.programmatic = !1, n.current.moved = !0;
303
- }),
304
- o.addListener("center_changed", d),
305
- o.addListener("zoom_changed", d),
306
- o.addListener("idle", y)
307
- ];
308
- return y(), () => {
309
- M.forEach((t) => t.remove()), p.forEach(
310
- (t) => r.removeEventListener(t, f, !0)
311
- ), clearTimeout(b), c();
312
- };
313
- }, [o, n]), null;
314
- }
315
- const Ae = 256, Ke = (e) => e * Math.PI / 180;
316
- function ee(e) {
317
- const n = Math.min(Math.max(Math.sin(Ke(e)), -0.9999), 0.9999);
318
- return Math.log((1 + n) / (1 - n)) / 2;
319
- }
320
- const $e = (e) => Math.atan(Math.sinh(e)) * 180 / Math.PI;
321
- function qe(e) {
322
- let n = -90, o = 90, i = -180, r = 180;
323
- for (const { lat: a, lng: c } of e)
324
- n = Math.max(n, a), o = Math.min(o, a), i = Math.max(i, c), r = Math.min(r, c);
325
- return { north: n, south: o, east: i, west: r };
326
- }
327
- function De(e, n, o, i, r) {
328
- const { north: a, south: c, east: b, west: u } = qe(e);
329
- if (a === c && b === u)
330
- return { center: { lat: a, lng: b }, zoom: r };
331
- const f = ee(a), d = ee(c), y = {
332
- lat: $e((f + d) / 2),
333
- lng: (b + u) / 2
334
- }, p = (t, m) => m > 0 ? Math.log2(Math.max(t, 1) / Ae / m) : r, M = Math.min(
335
- p(n - 2 * i, (b - u) / 360),
336
- p(o - 2 * i, (f - d) / (2 * Math.PI)),
337
- r
338
- );
339
- return { center: y, zoom: Math.max(0, Math.floor(M)) };
340
- }
341
- const re = ({ id: e, lat: n, lng: o }) => e != null ? `id:${e}` : `at:${n},${o}`;
342
- function He({
343
- points: e,
344
- fitKey: n,
345
- maxZoom: o,
346
- onCameraMove: i
347
- }) {
348
- const r = K(), a = k(null), c = k(!1), b = k(null);
349
- return C(() => {
350
- if (!r) return;
351
- const u = () => {
352
- var t;
353
- const d = b.current, y = (t = r.getCenter()) == null ? void 0 : t.toJSON(), p = r.getZoom();
354
- d != null && p === d.zoom && y != null && Math.abs(y.lat - d.center.lat) < 1e-6 && Math.abs(y.lng - d.center.lng) < 1e-6 || (c.current = !0);
355
- }, f = [
356
- r.addListener("dragstart", () => {
357
- c.current = !0;
358
- }),
359
- r.addListener("center_changed", u),
360
- r.addListener("zoom_changed", u)
361
- ];
362
- return () => f.forEach((d) => d.remove());
363
- }, [r]), C(() => {
364
- var w;
365
- if (!r) return;
366
- const u = ((w = a.current) == null ? void 0 : w.map) === r ? a.current : null;
367
- if ((u == null ? void 0 : u.key) === n) return;
368
- const f = new Set(e.map(re)), d = (h, v) => {
369
- b.current = { center: h, zoom: v }, i(), r.moveCamera({ center: h, zoom: v }), c.current = !1;
370
- };
371
- if (e.length === 0) {
372
- a.current = { map: r, key: n, points: f };
373
- return;
374
- }
375
- if (u != null && u.points.size > 0 && [...u.points].every((h) => f.has(h)) && c.current) {
376
- a.current = { map: r, key: n, points: f };
377
- return;
378
- }
379
- const p = r.getDiv();
380
- if (!(p instanceof Element)) return;
381
- const M = () => {
382
- a.current = { map: r, key: n, points: f };
383
- const h = Math.min(
384
- Se("--spacing-2xl", p, 48),
385
- p.clientWidth / 4,
386
- p.clientHeight / 4
387
- ), { center: v, zoom: I } = De(
388
- e,
389
- p.clientWidth,
390
- p.clientHeight,
391
- h,
392
- o
393
- );
394
- d(v, I);
395
- }, t = () => p.clientWidth > 0 && p.clientHeight > 0;
396
- if (t() || typeof ResizeObserver > "u") {
397
- M();
398
- return;
399
- }
400
- const m = new ResizeObserver(() => {
401
- t() && (m.disconnect(), M());
402
- });
403
- return m.observe(p), () => m.disconnect();
404
- }, [r, n, e, o, i]), null;
405
- }
406
- const oe = (e) => {
407
- var n, o;
408
- return typeof ((o = (n = globalThis.google) == null ? void 0 : n.maps) == null ? void 0 : o[e]) == "function";
409
- };
410
- function se() {
411
- const { t: e } = A("ui");
412
- return /* @__PURE__ */ S(
413
- "div",
414
- {
415
- role: "status",
416
- "data-testid": "map-view-loading",
417
- className: "ds:[inline-size:100%] ds:[block-size:100%]",
418
- children: [
419
- /* @__PURE__ */ l(Ie, { variant: "rectangular", width: "100%", height: "100%" }),
420
- /* @__PURE__ */ l(Le, { children: e("common.loading") })
421
- ]
422
- }
423
- );
424
- }
425
- function Be({ children: e }) {
426
- const n = Ve();
427
- return ne("maps") || !n || oe("Map") ? e : /* @__PURE__ */ l(se, {});
428
- }
429
- function Fe({ children: e }) {
430
- return ne("marker") || oe("Marker") ? e : null;
431
- }
432
- function te({
433
- address: e,
434
- contentLang: n,
435
- description: o,
436
- onLoadMap: i,
437
- openInGoogleMapsHref: r,
438
- consentCta: a
439
- }) {
440
- const { t: c } = A("ui");
441
- return /* @__PURE__ */ S("div", { className: Ze(), "data-testid": "map-view-consent", children: [
442
- /* @__PURE__ */ l(
443
- xe,
444
- {
445
- "aria-hidden": "true",
446
- className: "ds:size-6 ds:text-[var(--muted-foreground)]"
447
- }
448
- ),
449
- /* @__PURE__ */ l("p", { className: _e(), children: c("mapView.consentTitle") }),
450
- e ? /* @__PURE__ */ l(
451
- "p",
452
- {
453
- className: Q(),
454
- "data-testid": "map-view-address",
455
- lang: n,
456
- children: e
457
- }
458
- ) : null,
459
- /* @__PURE__ */ l("p", { className: Q(), children: o }),
460
- /* @__PURE__ */ S("div", { className: "ds:flex ds:gap-[var(--spacing-sm)] ds:flex-wrap ds:items-center ds:justify-center", children: [
461
- a ?? /* @__PURE__ */ l(
462
- Ce,
463
- {
464
- type: "button",
465
- intent: "primary",
466
- size: "sm",
467
- onClick: i,
468
- "data-testid": "map-view-load-cta",
469
- children: c("mapView.consentCta")
470
- }
471
- ),
472
- /* @__PURE__ */ S(
473
- "a",
474
- {
475
- href: r,
476
- target: "_blank",
477
- rel: "noopener noreferrer",
478
- className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:text-[var(--primary-readable)] ds:underline ds:underline-offset-2",
479
- children: [
480
- c("mapView.openInGoogleMaps"),
481
- /* @__PURE__ */ l(Pe, { "aria-hidden": "true", className: "ds:size-3" })
482
- ]
483
- }
484
- )
485
- ] })
486
- ] });
487
- }
488
- const We = ge(
489
- ({
490
- id: e,
491
- apiKey: n,
492
- center: o,
493
- zoom: i = 15,
494
- markers: r,
495
- selectedMarkerId: a,
496
- onMarkerClick: c,
497
- onBoundsChange: b,
498
- consentGranted: u = !1,
499
- onConsentRequest: f,
500
- address: d,
501
- contentLang: y,
502
- consentDescription: p,
503
- consentCta: M,
504
- mapId: t,
505
- size: m,
506
- surface: w,
507
- ariaLabel: h,
508
- fitToPoints: v,
509
- fitKey: I,
510
- fitMaxZoom: P = 15,
511
- className: G,
512
- ...N
513
- }, ae) => {
514
- const { t: R, i18n: ie } = A("ui"), Z = E(() => v ?? [], [v]), le = E(
515
- () => I ?? Z.map((s) => `${re(s)}@${s.lat},${s.lng}`).sort().join("|"),
516
- [I, Z]
517
- ), V = Z.length > 0, $ = k(V), q = fe(), ce = E(
518
- () => `map-${q.replace(/[^a-zA-Z0-9-_]/g, "")}`,
519
- [q]
520
- ), [D, de] = Y(!1);
521
- C(() => {
522
- if (typeof window > "u") return;
523
- const s = window.matchMedia("(prefers-reduced-motion: reduce)"), g = () => de(s.matches);
524
- return g(), s.addEventListener("change", g), () => s.removeEventListener("change", g);
525
- }, []);
526
- const H = E(() => `https://www.google.com/maps/search/?api=1&query=${d ? encodeURIComponent(d) : `${o.lat},${o.lng}`}`, [d, o.lat, o.lng]), z = k(null), B = k({
527
- pendingInput: !1,
528
- moved: !1,
529
- programmatic: !1
530
- }), _ = T(() => {
531
- B.current = {
532
- pendingInput: !1,
533
- moved: !1,
534
- programmatic: !0
535
- };
536
- }, []), j = T(
537
- (s) => {
538
- _(), c == null || c(s);
539
- },
540
- [_, c]
541
- ), pe = T((s) => {
542
- z.current = s;
543
- }, []), F = k(!1), W = k(null), J = k(0), O = T(
544
- () => ({
545
- panTo: (s) => {
546
- var g;
547
- return (g = z.current) == null ? void 0 : g.panTo(s);
548
- },
549
- setZoom: (s) => {
550
- var g;
551
- return (g = z.current) == null ? void 0 : g.setZoom(s);
552
- },
553
- selectMarker: (s) => {
554
- var g;
555
- return (g = z.current) == null ? void 0 : g.selectMarker(s);
556
- },
557
- // Without `isConsentGranted` an agent has no way to learn that
558
- // its pan / zoom / select was swallowed by the GDPR gate rather
559
- // than applied: under the default (`consentGranted={false}`) the
560
- // whole Maps subtree is unmounted and every action optional-chains
561
- // into nothing.
562
- isConsentGranted: () => F.current,
563
- getCenter: () => {
564
- var s;
565
- return ((s = z.current) == null ? void 0 : s.getCenter()) ?? null;
566
- },
567
- getZoom: () => {
568
- var s;
569
- return ((s = z.current) == null ? void 0 : s.getZoom()) ?? null;
570
- },
571
- getSelectedMarkerId: () => W.current,
572
- getMarkerCount: () => J.current
573
- }),
574
- []
575
- );
576
- be(ae, O, [O]);
577
- const ue = E(
578
- () => O(),
579
- [O]
580
- );
581
- Te(Ge, ue, e), C(() => {
582
- var g, L;
583
- const s = $.current && !V;
584
- if ($.current = V, !V) {
585
- if (s) {
586
- (g = z.current) == null || g.jumpTo(o, i);
587
- return;
588
- }
589
- D || (L = z.current) == null || L.panTo(o);
590
- }
591
- }, [o.lat, o.lng, D, V]), C(() => {
592
- var s;
593
- V || (s = z.current) == null || s.setZoom(i);
594
- }, [i, V]);
595
- const [me, U] = Y(!1), X = u || me;
596
- F.current = X, W.current = a ?? null, J.current = (r ?? []).length;
597
- const he = T(() => {
598
- if (f) {
599
- f(), U(!0);
600
- return;
601
- }
602
- U(!0);
603
- }, [f]);
604
- return /* @__PURE__ */ l(
605
- "div",
606
- {
607
- className: Ne({ size: m, surface: w, className: G }),
608
- "data-component": "map-view",
609
- "data-component-id": e ?? ce,
610
- role: "region",
611
- "aria-label": h ?? R("mapView.label"),
612
- ...N,
613
- children: /* @__PURE__ */ l("div", { className: Re({ size: m }), children: X ? (
614
- // A provider failure shows the consent placeholder (its "Open in
615
- // Google Maps" link needs no script) with "Load map" as the
616
- // retry, instead of unmounting the host's React tree. The gate
617
- // starts the provider only once Google's `core` and `maps`
618
- // libraries have arrived.
619
- /* @__PURE__ */ l(
620
- Ee,
621
- {
622
- fallback: ({ reset: s }) => /* @__PURE__ */ l(
623
- te,
624
- {
625
- address: d,
626
- contentLang: y,
627
- description: p ?? R("mapView.consentDescription"),
628
- onLoadMap: s,
629
- consentCta: void 0,
630
- openInGoogleMapsHref: H
631
- }
632
- ),
633
- children: /* @__PURE__ */ l(ye, { libraries: ["maps"], pending: /* @__PURE__ */ l(se, {}), children: /* @__PURE__ */ l(
634
- we,
635
- {
636
- apiKey: n,
637
- language: ie.language,
638
- children: /* @__PURE__ */ l(Be, { children: /* @__PURE__ */ S(
639
- ve,
640
- {
641
- defaultCenter: o,
642
- defaultZoom: i,
643
- mapId: t,
644
- gestureHandling: "cooperative",
645
- disableDefaultUI: !1,
646
- onClick: () => j(null),
647
- className: "ds:[inline-size:100%] ds:[block-size:100%]",
648
- children: [
649
- /* @__PURE__ */ l(
650
- je,
651
- {
652
- onHandleReady: pe,
653
- onMarkerSelect: j,
654
- onCameraMove: _
655
- }
656
- ),
657
- b ? /* @__PURE__ */ l(
658
- Oe,
659
- {
660
- onBoundsChange: b,
661
- userInteraction: B
662
- }
663
- ) : null,
664
- v ? /* @__PURE__ */ l(
665
- He,
666
- {
667
- points: Z,
668
- fitKey: le,
669
- maxZoom: P,
670
- onCameraMove: _
671
- }
672
- ) : null,
673
- /* @__PURE__ */ l(Fe, { children: (r ?? []).map((s) => {
674
- const g = a != null && a === s.id, L = R("mapView.markerLabel", {
675
- label: s.label ?? s.id
676
- });
677
- return t ? /* @__PURE__ */ l(
678
- ke,
679
- {
680
- position: s.position,
681
- title: L,
682
- "aria-label": L,
683
- "data-selected": g ? "true" : "false",
684
- onClick: () => j(s.id),
685
- children: /* @__PURE__ */ l(
686
- Me,
687
- {
688
- background: "var(--primary)",
689
- borderColor: "var(--primary)",
690
- glyphColor: "var(--primary-foreground)"
691
- }
692
- )
693
- },
694
- s.id
695
- ) : /* @__PURE__ */ l(
696
- ze,
697
- {
698
- position: s.position,
699
- title: L,
700
- onClick: () => j(s.id)
701
- },
702
- s.id
703
- );
704
- }) })
705
- ]
706
- }
707
- ) })
708
- }
709
- ) })
710
- }
711
- )
712
- ) : /* @__PURE__ */ l(
713
- te,
714
- {
715
- address: d,
716
- contentLang: y,
717
- description: p ?? R("mapView.consentDescription"),
718
- onLoadMap: he,
719
- consentCta: M,
720
- openInGoogleMapsHref: H
721
- }
722
- ) })
723
- }
724
- );
725
- }
726
- );
727
- We.displayName = "MapView";
728
- export {
729
- We as M
730
- };
731
- //# sourceMappingURL=map-view-Dn7aXZJw.js.map