@alfadocs/ui-kit 1.67.0 → 1.68.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 (291) hide show
  1. package/dist/_chunks/{address-fields-CJtu7LQU.js → address-fields-BUPRs3n-.js} +3 -3
  2. package/dist/_chunks/{agenda-card-DR9gDdKp.js → agenda-card-BDuvreCe.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-DGB1Zup-.js → agenda-tray-CfwylhWf.js} +3 -3
  4. package/dist/_chunks/{ai-credits-exhausted-notice-DfAgfZDF.js → ai-credits-exhausted-notice-Bg8NpW2K.js} +2 -2
  5. package/dist/_chunks/{ai-permission-notice-qsdm4Sx4.js → ai-permission-notice-C00i6VhY.js} +2 -2
  6. package/dist/_chunks/{ai-prompt-input-DSGSe4LH.js → ai-prompt-input-DzgyoKyk.js} +141 -139
  7. package/dist/_chunks/{alert-DjsJMGRE.js → alert-9kEwDza3.js} +122 -112
  8. package/dist/_chunks/{alia-sidebar-qe0quZkB.js → alia-sidebar-B06ZSOaF.js} +3 -3
  9. package/dist/_chunks/{anamnesis-summary-card-CMzBLTiN.js → anamnesis-summary-card-DQ3iE1gD.js} +2 -2
  10. package/dist/_chunks/{anamnesis-summary-rows-BQ_EokKz.js → anamnesis-summary-rows-CNK0fIJk.js} +392 -388
  11. package/dist/_chunks/{appointment-card-CL32sux-.js → appointment-card-5JMWi9_f.js} +2 -2
  12. package/dist/_chunks/{appointment-peek-B5mcDcXt.js → appointment-peek-D5XCfYKu.js} +2 -2
  13. package/dist/_chunks/{appointment-timeline-CCqjORFb.js → appointment-timeline-VFP6HoXT.js} +4 -4
  14. package/dist/_chunks/{appointment-tray-qtpJt8e0.js → appointment-tray-B3PDER3I.js} +3 -3
  15. package/dist/_chunks/{audio-recorder-B11RR-rC.js → audio-recorder-4Ll0pwYK.js} +3 -3
  16. package/dist/_chunks/{auth-form-parts-DwUTH6YN.js → auth-form-parts-B40zvD-a.js} +2 -2
  17. package/dist/_chunks/avatar-BPiPL7ND.js +199 -0
  18. package/dist/_chunks/{balance-badge-cell-DZNthHO1.js → balance-badge-cell-BG3DMly4.js} +4 -4
  19. package/dist/_chunks/{bishop-score-CaNTrikJ.js → bishop-score-Df8nF1qg.js} +2 -2
  20. package/dist/_chunks/{booking-tTVxKPQY.js → booking-B1pDbERi.js} +377 -335
  21. package/dist/_chunks/{calendar-BhN-jisv.js → calendar-BvOM8rG3.js} +2 -2
  22. package/dist/_chunks/{calendar-workspace-MRrzcxAy.js → calendar-workspace-CYK1M83j.js} +18 -18
  23. package/dist/_chunks/{chat-message-fRLZ95O5.js → chat-message-Be-9vIIQ.js} +2 -2
  24. package/dist/_chunks/{clinical-note-card-BnFTIs6x.js → clinical-note-card-Caidqcwa.js} +2 -2
  25. package/dist/_chunks/{color-picker-BsggJovx.js → color-picker-AcaWuKah.js} +99 -95
  26. package/dist/_chunks/{combobox-U5yfO6o0.js → combobox-vF9O-QoG.js} +92 -83
  27. package/dist/_chunks/{contact-profile-card-C4-OCshj.js → contact-profile-card-CAwwOqHl.js} +40 -40
  28. package/dist/_chunks/{control-room-rail-DUerqHeo.js → control-room-rail-BB6rCDWI.js} +3 -3
  29. package/dist/_chunks/{country-select-DF5Bd_mn.js → country-select-CSE2Zm_s.js} +2 -2
  30. package/dist/_chunks/dashboard-grid-7JzaiKnk.js +1487 -0
  31. package/dist/_chunks/{data-table-COoCQ4n_.js → data-table-Cty4-Jht.js} +3 -3
  32. package/dist/_chunks/{dependent-selector-DBr1AhLg.js → dependent-selector-C4kOgO8b.js} +2 -2
  33. package/dist/_chunks/{document-preview-VyQOjFVL.js → document-preview-513f3iPn.js} +4 -4
  34. package/dist/_chunks/{document-scanner-CXH_GYh4.js → document-scanner-Bd3wbzpI.js} +2 -2
  35. package/dist/_chunks/{editable-description-ChGNdYY8.js → editable-description-DnAFi360.js} +2 -2
  36. package/dist/_chunks/{entity-summary-Bj-Wxq7Y.js → entity-summary-C2B8yNmc.js} +4 -4
  37. package/dist/_chunks/{error-summary-PUE5Zxp9.js → error-summary-mGxIyDAY.js} +2 -2
  38. package/dist/_chunks/{face-scheme-DAD-mXzM.js → face-scheme-CSJdRNad.js} +248 -244
  39. package/dist/_chunks/{file-manager-RiV7-OEE.js → file-manager-D4cPnRhL.js} +3 -3
  40. package/dist/_chunks/{forgot-password-form-CPOfRE0C.js → forgot-password-form-Dqi7R-NL.js} +4 -4
  41. package/dist/_chunks/format-number-DdzqwMs1.js +13 -0
  42. package/dist/_chunks/{freemium-paywall-6DO7noHX.js → freemium-paywall-C73C8Rgd.js} +2 -2
  43. package/dist/_chunks/{gestational-age-calculator-CZYa2D6m.js → gestational-age-calculator-Du53p8MH.js} +2 -2
  44. package/dist/_chunks/{header-settings-BSH9Gk0J.js → header-settings-DlUbvAUx.js} +37 -36
  45. package/dist/_chunks/{heatmap-C1TeC7wT.js → heatmap-DbZIQg14.js} +4 -4
  46. package/dist/_chunks/{help-me-write-templates-Bw3Q58x-.js → help-me-write-templates-5WkUfvc_.js} +3 -3
  47. package/dist/_chunks/{kit-extensions-DWs1UEXb.js → kit-extensions-CYvLL4ee.js} +3 -3
  48. package/dist/_chunks/length-token-DwMnGEYT.js +24 -0
  49. package/dist/_chunks/{link-cell-renderer-CtTsvfPY.js → link-cell-renderer-DtIsQWDO.js} +4 -4
  50. package/dist/_chunks/{login-dev-card-A-CL3mjt.js → login-dev-card-vEL-o5wq.js} +3 -3
  51. package/dist/_chunks/{map-view-BuVfJMEa.js → map-view-CtohteZD.js} +300 -191
  52. package/dist/_chunks/{marketplace-app-shell-DtSX8sYb.js → marketplace-app-shell-CcLQ0Dn-.js} +4 -4
  53. package/dist/_chunks/{message-card-A3mJNqfy.js → message-card-C_ksqIYM.js} +2 -2
  54. package/dist/_chunks/{message-tray-Ft6vSr71.js → message-tray-DCoQ4GQb.js} +3 -3
  55. package/dist/_chunks/{multi-select-CMaAQQgb.js → multi-select-BOad3za9.js} +110 -98
  56. package/dist/_chunks/{muscle-scheme-YoN3rYXV.js → muscle-scheme-C66WlCxG.js} +2 -2
  57. package/dist/_chunks/{note-timeline-DDqNU46n.js → note-timeline-KzL52MmB.js} +2 -2
  58. package/dist/_chunks/{notes-panel-IdsmqRFC.js → notes-panel-BXN46XkF.js} +6 -6
  59. package/dist/_chunks/notice-group-DkYzKyAZ.js +291 -0
  60. package/dist/_chunks/{notification-tray-BR3seWA7.js → notification-tray-Cp18MW5b.js} +2 -2
  61. package/dist/_chunks/{operator-hero-3_RG4Dkj.js → operator-hero-6aAIQaFZ.js} +83 -66
  62. package/dist/_chunks/{optical-prescription-CxfMsbxi.js → optical-prescription-ulXnDbBe.js} +525 -509
  63. package/dist/_chunks/panel-header-CbtlTe85.js +190 -0
  64. package/dist/_chunks/{panel-subview-yP4qIbKS.js → panel-subview-BPU7220K.js} +2 -2
  65. package/dist/_chunks/{patient-details-C-EWQTms.js → patient-details-C4Dyo7Ck.js} +4 -4
  66. package/dist/_chunks/{patient-field-row-lY-Tb5Mo.js → patient-field-row-DROvUkFu.js} +4 -4
  67. package/dist/_chunks/{patient-search-DpAKidZ5.js → patient-search-BADdx3M1.js} +2 -2
  68. package/dist/_chunks/{patient-summary-card-Bpto_VCD.js → patient-summary-card-CAimxbuI.js} +4 -4
  69. package/dist/_chunks/{payment-automation-upsell-BQ307qEX.js → payment-automation-upsell-CiwF5UrC.js} +2 -2
  70. package/dist/_chunks/{payment-form-XKtinW8r.js → payment-form-PBuh8PIa.js} +2 -2
  71. package/dist/_chunks/{pdf-viewer-BvoVMjH4.js → pdf-viewer-gAsNUsA8.js} +2 -2
  72. package/dist/_chunks/{periodontal-risk-chart-CPy7CNFe.js → periodontal-risk-chart-B7S9OmPC.js} +97 -89
  73. package/dist/_chunks/practice-profile-hero-qfrsFQI_.js +236 -0
  74. package/dist/_chunks/{practice-results-BrUDDMXC.js → practice-results-BzThnpnm.js} +328 -298
  75. package/dist/_chunks/{pregnancy-dating-B8wo4l_r.js → pregnancy-dating-EFcFUJkQ.js} +2 -2
  76. package/dist/_chunks/{privacy-mask-Ch7743uk.js → privacy-mask-CCz9zuIh.js} +2 -2
  77. package/dist/_chunks/{product-hub-panel-C_ZosrBt.js → product-hub-panel-YuFbNPlT.js} +2 -2
  78. package/dist/_chunks/progress-notice-DiHWZ8Ms.js +279 -0
  79. package/dist/_chunks/{province-select-Bd20Z9Br.js → province-select-CDjs5obD.js} +2 -2
  80. package/dist/_chunks/{radiograph-panel.agent-8Ewv8-d7.js → radiograph-panel.agent-4UllIoTQ.js} +2 -2
  81. package/dist/_chunks/{rating-C1Vrmpsi.js → rating-CGYpg5dj.js} +43 -44
  82. package/dist/_chunks/{registration-form-BxwqUZzk.js → registration-form-1B0PTDal.js} +4 -4
  83. package/dist/_chunks/{reviews-panel-AvsVgtJu.js → reviews-panel-CosDZyow.js} +29 -7
  84. package/dist/_chunks/{rich-text-editor-aCIoptbg.js → rich-text-editor-56dSsyZI.js} +3 -3
  85. package/dist/_chunks/{select-k4gBdS8N.js → select-4S-eYZUf.js} +244 -214
  86. package/dist/_chunks/{sign-document-D1P1nUQA.js → sign-document-BiOTs1P4.js} +2 -2
  87. package/dist/_chunks/{signature-request-3u6TvRt2.js → signature-request-DAmNj_uq.js} +5 -5
  88. package/dist/_chunks/skeleton-tTWJpvAq.js +415 -0
  89. package/dist/_chunks/{slot-grid-dj5f6R2w.js → slot-grid-D_gix9mJ.js} +2 -2
  90. package/dist/_chunks/{tabs-2x3L13jn.js → tabs-BTj-2qMZ.js} +2 -2
  91. package/dist/_chunks/{task-card-BS7Uqevr.js → task-card-Ci2XbLmq.js} +2 -2
  92. package/dist/_chunks/{task-editor-Bb5MMcid.js → task-editor-BomyxGoZ.js} +8 -8
  93. package/dist/_chunks/{task-tray-eQU4KJcA.js → task-tray-Dnc72nl-.js} +3 -3
  94. package/dist/_chunks/{tasks-panel-BOb57Ysw.js → tasks-panel-ATz9JDy8.js} +6 -6
  95. package/dist/_chunks/{theme-toggle-Ctb77x6O.js → theme-toggle-DT_Jn4DC.js} +147 -138
  96. package/dist/_chunks/{timeline-DEIuHrWz.js → timeline-wUuTDFY_.js} +2 -2
  97. package/dist/_chunks/{tool-rail-C-03rH2I.js → tool-rail-C-M3eVdY.js} +2 -2
  98. package/dist/_chunks/{transcript-panel-XudW5l6l.js → transcript-panel-CoHHpcFg.js} +2 -2
  99. package/dist/_chunks/{treatment-receipt-Cpm8tqQN.js → treatment-receipt-pFqWFyD_.js} +2 -2
  100. package/dist/_chunks/{unit-converter-BPZ0Ldkb.js → unit-converter-CIoTmCmP.js} +2 -2
  101. package/dist/_chunks/{use-appointment-details-read-CVSPoP5j.js → use-appointment-details-read-CUGfE0hV.js} +12 -12
  102. package/dist/_chunks/use-dismissed-CTOWqA0e.js +177 -0
  103. package/dist/_chunks/{voice-control-panel-BJIEbDq6.js → voice-control-panel-B8Lrk0C4.js} +4 -4
  104. package/dist/_chunks/{warning-stack-BdY-0bd3.js → warning-stack-BhHUmRiD.js} +2 -2
  105. package/dist/_chunks/{workflow-map-CYbRD9ek.js → workflow-map-ln4_OG8A.js} +2 -2
  106. package/dist/agent-catalog.json +172 -4
  107. package/dist/agent-i18n/en.json +25 -1
  108. package/dist/components/_shared/format-number.d.ts +20 -0
  109. package/dist/components/_shared/length-token.d.ts +12 -0
  110. package/dist/components/_shared/option.d.ts +1 -0
  111. package/dist/components/address-fields/index.js +1 -1
  112. package/dist/components/agenda-card/index.js +1 -1
  113. package/dist/components/agenda-tray/index.js +1 -1
  114. package/dist/components/ai-credits-notice/index.js +1 -1
  115. package/dist/components/ai-permission-notice/index.js +1 -1
  116. package/dist/components/ai-prompt-input/index.js +1 -1
  117. package/dist/components/alert/alert.d.ts +26 -0
  118. package/dist/components/alert/index.js +1 -1
  119. package/dist/components/anamnesis-summary-card/index.js +1 -1
  120. package/dist/components/appointment-card/index.js +2 -2
  121. package/dist/components/appointment-details-panel/index.js +1 -1
  122. package/dist/components/appointment-peek/index.js +1 -1
  123. package/dist/components/appointment-timeline/index.js +1 -1
  124. package/dist/components/audio-recorder/index.js +1 -1
  125. package/dist/components/avatar/avatar.d.ts +2 -0
  126. package/dist/components/avatar/index.js +1 -1
  127. package/dist/components/bishop-score/index.js +1 -1
  128. package/dist/components/booking/index.js +1 -1
  129. package/dist/components/calendar/index.js +1 -1
  130. package/dist/components/chat-message/index.js +1 -1
  131. package/dist/components/clinical-note-card/index.js +1 -1
  132. package/dist/components/color-picker/index.js +1 -1
  133. package/dist/components/combobox/index.js +1 -1
  134. package/dist/components/contact-profile-card/index.js +1 -1
  135. package/dist/components/control-room-rail/index.js +1 -1
  136. package/dist/components/country-select/index.js +1 -1
  137. package/dist/components/dashboard-grid/dashboard-grid.d.ts +20 -1
  138. package/dist/components/dashboard-grid/index.js +1 -1
  139. package/dist/components/data-table/index.js +2 -2
  140. package/dist/components/dependent-selector/index.js +1 -1
  141. package/dist/components/document-preview/index.js +1 -1
  142. package/dist/components/document-scanner/index.js +1 -1
  143. package/dist/components/editable-description/index.js +1 -1
  144. package/dist/components/entity-summary/index.js +1 -1
  145. package/dist/components/error-summary/index.js +1 -1
  146. package/dist/components/face-scheme/index.js +1 -1
  147. package/dist/components/file-manager/index.js +1 -1
  148. package/dist/components/freemium-paywall/index.js +1 -1
  149. package/dist/components/gestational-age-calculator/index.js +1 -1
  150. package/dist/components/header-settings/index.js +1 -1
  151. package/dist/components/heatmap/index.js +1 -1
  152. package/dist/components/index.d.ts +4 -2
  153. package/dist/components/map-view/index.d.ts +1 -1
  154. package/dist/components/map-view/index.js +1 -1
  155. package/dist/components/map-view/map-view.d.ts +51 -0
  156. package/dist/components/message-card/index.js +1 -1
  157. package/dist/components/message-tray/index.js +1 -1
  158. package/dist/components/multi-select/index.js +1 -1
  159. package/dist/components/muscle-scheme/index.js +1 -1
  160. package/dist/components/note-timeline/index.js +1 -1
  161. package/dist/components/notes-panel/index.js +1 -1
  162. package/dist/components/notice-group/index.d.ts +3 -0
  163. package/dist/components/notice-group/index.js +6 -0
  164. package/dist/components/notice-group/notice-group.agent.d.ts +4 -0
  165. package/dist/components/notice-group/notice-group.d.ts +43 -0
  166. package/dist/components/notification-tray/index.js +1 -1
  167. package/dist/components/operator-hero/index.js +1 -1
  168. package/dist/components/optical-prescription/index.js +1 -1
  169. package/dist/components/optical-prescription/optical-prescription-data.d.ts +8 -8
  170. package/dist/components/panel-header/index.js +1 -1
  171. package/dist/components/panel-header/panel-header.d.ts +10 -0
  172. package/dist/components/panel-subview/index.js +1 -1
  173. package/dist/components/patient-details/index.js +1 -1
  174. package/dist/components/patient-search/index.js +1 -1
  175. package/dist/components/patient-summary-card/index.js +1 -1
  176. package/dist/components/patient-table/index.js +1 -1
  177. package/dist/components/payment-form/index.js +1 -1
  178. package/dist/components/pdf-viewer/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-profile-hero/practice-profile-hero.d.ts +4 -1
  182. package/dist/components/practice-results/index.js +1 -1
  183. package/dist/components/practice-results/practice-results.d.ts +10 -2
  184. package/dist/components/pregnancy-dating/index.js +1 -1
  185. package/dist/components/product-hub-tray/index.js +1 -1
  186. package/dist/components/progress-notice/index.d.ts +3 -0
  187. package/dist/components/progress-notice/index.js +6 -0
  188. package/dist/components/progress-notice/progress-notice.agent.d.ts +4 -0
  189. package/dist/components/progress-notice/progress-notice.d.ts +81 -0
  190. package/dist/components/province-select/index.js +1 -1
  191. package/dist/components/radiograph-panel/index.js +1 -1
  192. package/dist/components/rating/index.js +1 -1
  193. package/dist/components/reviews-panel/index.js +1 -1
  194. package/dist/components/rich-text-editor/index.js +2 -2
  195. package/dist/components/select/index.js +1 -1
  196. package/dist/components/select/select.d.ts +6 -0
  197. package/dist/components/sign-document/index.js +1 -1
  198. package/dist/components/skeleton/index.d.ts +1 -1
  199. package/dist/components/skeleton/index.js +1 -1
  200. package/dist/components/skeleton/skeleton.d.ts +41 -1
  201. package/dist/components/skeleton-scheme/index.js +1 -1
  202. package/dist/components/slot-grid/index.js +1 -1
  203. package/dist/components/tabs/index.js +1 -1
  204. package/dist/components/task-card/index.js +1 -1
  205. package/dist/components/task-editor/index.js +1 -1
  206. package/dist/components/task-tray/index.js +1 -1
  207. package/dist/components/tasks-panel/index.js +1 -1
  208. package/dist/components/theme-toggle/index.js +1 -1
  209. package/dist/components/timeline/index.js +1 -1
  210. package/dist/components/tool-rail/index.js +1 -1
  211. package/dist/components/transcript-panel/index.js +1 -1
  212. package/dist/components/treatment-receipt/index.js +1 -1
  213. package/dist/components/unit-converter/index.js +1 -1
  214. package/dist/components/voice-control-panel/index.js +1 -1
  215. package/dist/components/warning-stack/index.js +1 -1
  216. package/dist/components/workflow/index.js +1 -1
  217. package/dist/hooks/index.d.ts +1 -0
  218. package/dist/hooks/index.js +81 -76
  219. package/dist/hooks/use-dismissed.d.ts +58 -0
  220. package/dist/i18n/locales/ar.d.ts +22 -0
  221. package/dist/i18n/locales/ar.js +22 -0
  222. package/dist/i18n/locales/de.d.ts +22 -0
  223. package/dist/i18n/locales/de.js +22 -0
  224. package/dist/i18n/locales/el.d.ts +22 -0
  225. package/dist/i18n/locales/el.js +22 -0
  226. package/dist/i18n/locales/en.d.ts +22 -0
  227. package/dist/i18n/locales/en.js +22 -0
  228. package/dist/i18n/locales/es.d.ts +22 -0
  229. package/dist/i18n/locales/es.js +22 -0
  230. package/dist/i18n/locales/fr.d.ts +22 -0
  231. package/dist/i18n/locales/fr.js +22 -0
  232. package/dist/i18n/locales/hi.d.ts +22 -0
  233. package/dist/i18n/locales/hi.js +22 -0
  234. package/dist/i18n/locales/it.d.ts +22 -0
  235. package/dist/i18n/locales/it.js +22 -0
  236. package/dist/i18n/locales/ja.d.ts +22 -0
  237. package/dist/i18n/locales/ja.js +22 -0
  238. package/dist/i18n/locales/nl.d.ts +22 -0
  239. package/dist/i18n/locales/nl.js +22 -0
  240. package/dist/i18n/locales/pl.d.ts +22 -0
  241. package/dist/i18n/locales/pl.js +22 -0
  242. package/dist/i18n/locales/pt.d.ts +22 -0
  243. package/dist/i18n/locales/pt.js +22 -0
  244. package/dist/i18n/locales/ro.d.ts +22 -0
  245. package/dist/i18n/locales/ro.js +22 -0
  246. package/dist/i18n/locales/ru.d.ts +22 -0
  247. package/dist/i18n/locales/ru.js +22 -0
  248. package/dist/i18n/locales/sq.d.ts +22 -0
  249. package/dist/i18n/locales/sq.js +22 -0
  250. package/dist/i18n/locales/sv.d.ts +22 -0
  251. package/dist/i18n/locales/sv.js +22 -0
  252. package/dist/i18n/locales/tr.d.ts +22 -0
  253. package/dist/i18n/locales/tr.js +22 -0
  254. package/dist/i18n/locales/zh.d.ts +22 -0
  255. package/dist/i18n/locales/zh.js +22 -0
  256. package/dist/index.js +1194 -1183
  257. package/dist/locales/ar.json +22 -0
  258. package/dist/locales/de.json +22 -0
  259. package/dist/locales/el.json +22 -0
  260. package/dist/locales/en.json +22 -0
  261. package/dist/locales/es.json +22 -0
  262. package/dist/locales/fr.json +22 -0
  263. package/dist/locales/hi.json +22 -0
  264. package/dist/locales/it.json +22 -0
  265. package/dist/locales/ja.json +22 -0
  266. package/dist/locales/nl.json +22 -0
  267. package/dist/locales/pl.json +22 -0
  268. package/dist/locales/pt.json +22 -0
  269. package/dist/locales/ro.json +22 -0
  270. package/dist/locales/ru.json +22 -0
  271. package/dist/locales/sq.json +22 -0
  272. package/dist/locales/sv.json +22 -0
  273. package/dist/locales/tr.json +22 -0
  274. package/dist/locales/zh.json +22 -0
  275. package/dist/patterns/alia-assistant/index.js +1 -1
  276. package/dist/patterns/anamnesis/index.js +1 -1
  277. package/dist/patterns/calendar/index.js +1 -1
  278. package/dist/patterns/forgot-password-form/index.js +1 -1
  279. package/dist/patterns/help-me-write-templates/index.js +2 -2
  280. package/dist/patterns/login-form/index.js +1 -1
  281. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  282. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  283. package/dist/patterns/registration-form/index.js +1 -1
  284. package/dist/patterns/signature-request/index.js +1 -1
  285. package/dist/tokens.css +1 -1
  286. package/package.json +9 -1
  287. package/dist/_chunks/avatar-WZY3eGE7.js +0 -123
  288. package/dist/_chunks/dashboard-grid-B2MB7SRS.js +0 -1428
  289. package/dist/_chunks/panel-header-BJkaUwnl.js +0 -128
  290. package/dist/_chunks/practice-profile-hero-Dfc0F60y.js +0 -193
  291. package/dist/_chunks/skeleton-B1KTdJ4N.js +0 -116
@@ -1,15 +1,16 @@
1
- import { jsx as a, jsxs as c } from "react/jsx-runtime";
2
- import { forwardRef as X, useId as Y, useMemo as v, useState as N, useEffect as f, useRef as g, useCallback as z, useImperativeHandle as ee } from "react";
3
- import { c as p } from "./index-D2ZczOXr.js";
4
- import { useTranslation as V } from "react-i18next";
5
- import { A as te, M as se, a as ae, P as oe, b as ne, u as re, c as j, d as ie } from "./index.modern-BeRXQVdc.js";
6
- import { B as le } from "./button-D-MQxsA_.js";
7
- import { S as de } from "./skeleton-B1KTdJ4N.js";
8
- import { V as ce } from "./visually-hidden-BHxEUGyT.js";
9
- import { u as pe } from "./registry-DvAUVLHh.js";
10
- import { M as me } from "./map-pin-BaY37-Km.js";
11
- import { E as ue } from "./external-link-CY6zAXXU.js";
12
- const he = {
1
+ import { jsx as i, jsxs as L } from "react/jsx-runtime";
2
+ import { forwardRef as le, useMemo as x, useRef as y, useId as de, useState as E, useEffect as I, useCallback as R, useImperativeHandle as ce } from "react";
3
+ import { c as G } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as Z } from "react-i18next";
5
+ import { A as pe, M as ue, a as me, P as he, b as ge, u as fe, c as K, d as W } from "./index.modern-BeRXQVdc.js";
6
+ import { B as be } from "./button-D-MQxsA_.js";
7
+ import { S as ve } from "./skeleton-tTWJpvAq.js";
8
+ import { V as ye } from "./visually-hidden-BHxEUGyT.js";
9
+ import { u as we } from "./registry-DvAUVLHh.js";
10
+ import { l as Me } from "./length-token-DwMnGEYT.js";
11
+ import { M as ze } from "./map-pin-BaY37-Km.js";
12
+ import { E as Ve } from "./external-link-CY6zAXXU.js";
13
+ const ke = {
13
14
  id: "map-view",
14
15
  // pan → scroll (viewport move); set_zoom → set_value; select_marker → pick
15
16
  // (NON-persisting marker focus, no value state slot).
@@ -32,31 +33,31 @@ const he = {
32
33
  type: "boolean",
33
34
  descriptionKey: "ui.agent.mapView.state.consentGranted",
34
35
  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.",
35
- read: (t) => t.isConsentGranted()
36
+ read: (e) => e.isConsentGranted()
36
37
  },
37
38
  markerCount: {
38
39
  type: "number",
39
40
  descriptionKey: "ui.agent.mapView.state.markerCount",
40
41
  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.",
41
- read: (t) => t.getMarkerCount()
42
+ read: (e) => e.getMarkerCount()
42
43
  },
43
44
  selectedMarkerId: {
44
45
  type: "string | null",
45
46
  descriptionKey: "ui.agent.mapView.state.selectedMarkerId",
46
47
  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.",
47
- read: (t) => t.getSelectedMarkerId()
48
+ read: (e) => e.getSelectedMarkerId()
48
49
  },
49
50
  center: {
50
51
  type: "{ lat: number; lng: number } | null",
51
52
  descriptionKey: "ui.agent.mapView.state.center",
52
53
  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.",
53
- read: (t) => t.getCenter()
54
+ read: (e) => e.getCenter()
54
55
  },
55
56
  zoom: {
56
57
  type: "number | null",
57
58
  descriptionKey: "ui.agent.mapView.state.zoom",
58
59
  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`.",
59
- read: (t) => t.getZoom()
60
+ read: (e) => e.getZoom()
60
61
  }
61
62
  },
62
63
  actions: {
@@ -84,8 +85,8 @@ const he = {
84
85
  errors: [
85
86
  "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)."
86
87
  ],
87
- invoke: (t, o) => {
88
- t.panTo(o.position);
88
+ invoke: (e, s) => {
89
+ e.panTo(s.position);
89
90
  }
90
91
  },
91
92
  set_zoom: {
@@ -109,8 +110,8 @@ const he = {
109
110
  "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).",
110
111
  "Requested zoom is clamped to the map type's range; `zoom` reports what was actually applied."
111
112
  ],
112
- invoke: (t, o) => {
113
- t.setZoom(o.zoom);
113
+ invoke: (e, s) => {
114
+ e.setZoom(s.zoom);
114
115
  }
115
116
  },
116
117
  select_marker: {
@@ -134,8 +135,8 @@ const he = {
134
135
  "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).",
135
136
  "The host owns `selectedMarkerId` and may ignore the proposal; `selectedMarkerId` is unchanged when it does."
136
137
  ],
137
- invoke: (t, o) => {
138
- t.selectMarker(o.id);
138
+ invoke: (e, s) => {
139
+ e.selectMarker(s.id);
139
140
  }
140
141
  }
141
142
  },
@@ -151,7 +152,7 @@ const he = {
151
152
  description: "Sourced from the id prop."
152
153
  }
153
154
  }
154
- }, ge = p(
155
+ }, Ie = G(
155
156
  ["ds:relative ds:overflow-hidden ds:block", "ds:bg-[var(--muted)]"].join(" "),
156
157
  {
157
158
  variants: {
@@ -175,7 +176,7 @@ const he = {
175
176
  },
176
177
  defaultVariants: { size: "md", surface: "bordered" }
177
178
  }
178
- ), fe = p("ds:block ds:inline-size-full", {
179
+ ), xe = G("ds:block ds:inline-size-full", {
179
180
  variants: {
180
181
  size: {
181
182
  sm: "ds:[block-size:var(--map-block-size)]",
@@ -185,7 +186,7 @@ const he = {
185
186
  }
186
187
  },
187
188
  defaultVariants: { size: "md" }
188
- }), be = p(
189
+ }), Le = G(
189
190
  [
190
191
  "ds:absolute ds:inset-0",
191
192
  "ds:flex ds:flex-col ds:items-center ds:justify-center",
@@ -194,243 +195,351 @@ const he = {
194
195
  "ds:bg-[var(--muted)] ds:text-[var(--foreground)]",
195
196
  "ds:text-center"
196
197
  ].join(" ")
197
- ), ye = p("type-heading-3 ds:m-0"), R = p(
198
+ ), Ge = G("type-heading-3 ds:m-0"), D = G(
198
199
  "type-body-sm ds:text-[var(--muted-foreground)] ds:[max-inline-size:28rem] ds:m-0"
199
200
  );
200
- function we({
201
- onHandleReady: t,
202
- onMarkerSelect: o
201
+ function Se({
202
+ onHandleReady: e,
203
+ onMarkerSelect: s
203
204
  }) {
204
- const s = ie();
205
- return f(() => {
206
- if (s)
207
- return t({
208
- panTo: (n) => s.panTo(n),
209
- setZoom: (n) => s.setZoom(n),
210
- selectMarker: (n) => o(n),
205
+ const o = W();
206
+ return I(() => {
207
+ if (o)
208
+ return e({
209
+ panTo: (t) => o.panTo(t),
210
+ setZoom: (t) => o.setZoom(t),
211
+ jumpTo: (t, a) => o.moveCamera({ center: t, zoom: a }),
212
+ selectMarker: (t) => s(t),
211
213
  // Read straight off the live map: Google clamps `setZoom` to the
212
214
  // map type's range and animates `panTo`, so requested and applied
213
215
  // are not the same value.
214
216
  getCenter: () => {
215
- var n;
216
- return ((n = s.getCenter()) == null ? void 0 : n.toJSON()) ?? null;
217
+ var t;
218
+ return ((t = o.getCenter()) == null ? void 0 : t.toJSON()) ?? null;
217
219
  },
218
- getZoom: () => s.getZoom() ?? null
219
- }), () => t(null);
220
- }, [s, t, o]), null;
220
+ getZoom: () => o.getZoom() ?? null
221
+ }), () => e(null);
222
+ }, [o, e, s]), null;
223
+ }
224
+ const Te = 256, Ne = (e) => e * Math.PI / 180;
225
+ function F(e) {
226
+ const s = Math.min(Math.max(Math.sin(Ne(e)), -0.9999), 0.9999);
227
+ return Math.log((1 + s) / (1 - s)) / 2;
228
+ }
229
+ const Pe = (e) => Math.atan(Math.sinh(e)) * 180 / Math.PI;
230
+ function Re(e) {
231
+ let s = -90, o = 90, t = -180, a = 180;
232
+ for (const { lat: l, lng: r } of e)
233
+ s = Math.max(s, l), o = Math.min(o, l), t = Math.max(t, r), a = Math.min(a, r);
234
+ return { north: s, south: o, east: t, west: a };
235
+ }
236
+ function Ze(e, s, o, t, a) {
237
+ const { north: l, south: r, east: c, west: m } = Re(e);
238
+ if (l === r && c === m)
239
+ return { center: { lat: l, lng: c }, zoom: a };
240
+ const p = F(l), f = F(r), u = {
241
+ lat: Pe((p + f) / 2),
242
+ lng: (c + m) / 2
243
+ }, b = (w, M) => M > 0 ? Math.log2(Math.max(w, 1) / Te / M) : a, h = Math.min(
244
+ b(s - 2 * t, (c - m) / 360),
245
+ b(o - 2 * t, (p - f) / (2 * Math.PI)),
246
+ a
247
+ );
248
+ return { center: u, zoom: Math.max(0, Math.floor(h)) };
249
+ }
250
+ const B = ({ id: e, lat: s, lng: o }) => e != null ? `id:${e}` : `at:${s},${o}`;
251
+ function je({ points: e, fitKey: s, maxZoom: o }) {
252
+ const t = W(), a = y(null), l = y(!1), r = y(null);
253
+ return I(() => {
254
+ if (!t) return;
255
+ const c = () => {
256
+ var h;
257
+ const p = r.current, f = (h = t.getCenter()) == null ? void 0 : h.toJSON(), u = t.getZoom();
258
+ p != null && u === p.zoom && f != null && Math.abs(f.lat - p.center.lat) < 1e-6 && Math.abs(f.lng - p.center.lng) < 1e-6 || (l.current = !0);
259
+ }, m = [
260
+ t.addListener("dragstart", () => {
261
+ l.current = !0;
262
+ }),
263
+ t.addListener("center_changed", c),
264
+ t.addListener("zoom_changed", c)
265
+ ];
266
+ return () => m.forEach((p) => p.remove());
267
+ }, [t]), I(() => {
268
+ var M;
269
+ if (!t) return;
270
+ const c = ((M = a.current) == null ? void 0 : M.map) === t ? a.current : null;
271
+ if ((c == null ? void 0 : c.key) === s) return;
272
+ const m = new Set(e.map(B)), p = (g, z) => {
273
+ r.current = { center: g, zoom: z }, t.moveCamera({ center: g, zoom: z }), l.current = !1;
274
+ };
275
+ if (e.length === 0) {
276
+ a.current = { map: t, key: s, points: m };
277
+ return;
278
+ }
279
+ if (c != null && c.points.size > 0 && [...c.points].every((g) => m.has(g)) && l.current) {
280
+ a.current = { map: t, key: s, points: m };
281
+ return;
282
+ }
283
+ const u = t.getDiv();
284
+ if (!(u instanceof Element)) return;
285
+ const b = () => {
286
+ a.current = { map: t, key: s, points: m };
287
+ const g = Math.min(
288
+ Me("--spacing-2xl", u, 48),
289
+ u.clientWidth / 4,
290
+ u.clientHeight / 4
291
+ ), { center: z, zoom: N } = Ze(
292
+ e,
293
+ u.clientWidth,
294
+ u.clientHeight,
295
+ g,
296
+ o
297
+ );
298
+ p(z, N);
299
+ }, h = () => u.clientWidth > 0 && u.clientHeight > 0;
300
+ if (h() || typeof ResizeObserver > "u") {
301
+ b();
302
+ return;
303
+ }
304
+ const w = new ResizeObserver(() => {
305
+ h() && (w.disconnect(), b());
306
+ });
307
+ return w.observe(u), () => w.disconnect();
308
+ }, [t, s, e, o]), null;
221
309
  }
222
- const P = (t) => {
223
- var o, s;
224
- return typeof ((s = (o = globalThis.google) == null ? void 0 : o.maps) == null ? void 0 : s[t]) == "function";
310
+ const J = (e) => {
311
+ var s, o;
312
+ return typeof ((o = (s = globalThis.google) == null ? void 0 : s.maps) == null ? void 0 : o[e]) == "function";
225
313
  };
226
- function ve() {
227
- const { t } = V("ui");
228
- return /* @__PURE__ */ c(
314
+ function Ce() {
315
+ const { t: e } = Z("ui");
316
+ return /* @__PURE__ */ L(
229
317
  "div",
230
318
  {
231
319
  role: "status",
232
320
  "data-testid": "map-view-loading",
233
321
  className: "ds:[inline-size:100%] ds:[block-size:100%]",
234
322
  children: [
235
- /* @__PURE__ */ a(de, { variant: "rectangular", width: "100%", height: "100%" }),
236
- /* @__PURE__ */ a(ce, { children: t("common.loading") })
323
+ /* @__PURE__ */ i(ve, { variant: "rectangular", width: "100%", height: "100%" }),
324
+ /* @__PURE__ */ i(ye, { children: e("common.loading") })
237
325
  ]
238
326
  }
239
327
  );
240
328
  }
241
- function ze({ children: t }) {
242
- const o = re();
243
- return j("maps") || !o || P("Map") ? t : /* @__PURE__ */ a(ve, {});
329
+ function _e({ children: e }) {
330
+ const s = fe();
331
+ return K("maps") || !s || J("Map") ? e : /* @__PURE__ */ i(Ce, {});
244
332
  }
245
- function Ve({ children: t }) {
246
- return j("marker") || P("Marker") ? t : null;
333
+ function Oe({ children: e }) {
334
+ return K("marker") || J("Marker") ? e : null;
247
335
  }
248
- function Me({
249
- address: t,
250
- description: o,
251
- onLoadMap: s,
252
- openInGoogleMapsHref: n,
253
- consentCta: m
336
+ function $e({
337
+ address: e,
338
+ description: s,
339
+ onLoadMap: o,
340
+ openInGoogleMapsHref: t,
341
+ consentCta: a
254
342
  }) {
255
- const { t: d } = V("ui");
256
- return /* @__PURE__ */ c("div", { className: be(), "data-testid": "map-view-consent", children: [
257
- /* @__PURE__ */ a(
258
- me,
343
+ const { t: l } = Z("ui");
344
+ return /* @__PURE__ */ L("div", { className: Le(), "data-testid": "map-view-consent", children: [
345
+ /* @__PURE__ */ i(
346
+ ze,
259
347
  {
260
348
  "aria-hidden": "true",
261
349
  className: "ds:size-6 ds:text-[var(--muted-foreground)]"
262
350
  }
263
351
  ),
264
- /* @__PURE__ */ a("p", { className: ye(), children: d("mapView.consentTitle") }),
265
- t ? /* @__PURE__ */ a(
352
+ /* @__PURE__ */ i("p", { className: Ge(), children: l("mapView.consentTitle") }),
353
+ e ? /* @__PURE__ */ i(
266
354
  "p",
267
355
  {
268
- className: R(),
356
+ className: D(),
269
357
  "data-testid": "map-view-address",
270
- children: t
358
+ children: e
271
359
  }
272
360
  ) : null,
273
- /* @__PURE__ */ a("p", { className: R(), children: o }),
274
- /* @__PURE__ */ c("div", { className: "ds:flex ds:gap-[var(--spacing-sm)] ds:flex-wrap ds:items-center ds:justify-center", children: [
275
- m ?? /* @__PURE__ */ a(
276
- le,
361
+ /* @__PURE__ */ i("p", { className: D(), children: s }),
362
+ /* @__PURE__ */ L("div", { className: "ds:flex ds:gap-[var(--spacing-sm)] ds:flex-wrap ds:items-center ds:justify-center", children: [
363
+ a ?? /* @__PURE__ */ i(
364
+ be,
277
365
  {
278
366
  type: "button",
279
367
  intent: "primary",
280
368
  size: "sm",
281
- onClick: s,
369
+ onClick: o,
282
370
  "data-testid": "map-view-load-cta",
283
- children: d("mapView.consentCta")
371
+ children: l("mapView.consentCta")
284
372
  }
285
373
  ),
286
- /* @__PURE__ */ c(
374
+ /* @__PURE__ */ L(
287
375
  "a",
288
376
  {
289
- href: n,
377
+ href: t,
290
378
  target: "_blank",
291
379
  rel: "noopener noreferrer",
292
380
  className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:text-[var(--primary)] ds:underline ds:underline-offset-2",
293
381
  children: [
294
- d("mapView.openInGoogleMaps"),
295
- /* @__PURE__ */ a(ue, { "aria-hidden": "true", className: "ds:size-3" })
382
+ l("mapView.openInGoogleMaps"),
383
+ /* @__PURE__ */ i(Ve, { "aria-hidden": "true", className: "ds:size-3" })
296
384
  ]
297
385
  }
298
386
  )
299
387
  ] })
300
388
  ] });
301
389
  }
302
- const ke = X(
390
+ const qe = le(
303
391
  ({
304
- id: t,
305
- apiKey: o,
306
- center: s,
307
- zoom: n = 15,
308
- markers: m,
309
- selectedMarkerId: d,
310
- onMarkerClick: i,
311
- consentGranted: _ = !1,
312
- onConsentRequest: b,
313
- address: u,
314
- consentDescription: q,
315
- consentCta: A,
316
- mapId: M,
317
- size: k,
318
- surface: C,
319
- ariaLabel: K,
320
- className: H,
321
- ...E
322
- }, D) => {
323
- const { t: y, i18n: $ } = V("ui"), I = Y(), B = v(
324
- () => `map-${I.replace(/[^a-zA-Z0-9-_]/g, "")}`,
325
- [I]
326
- ), [G, F] = N(!1);
327
- f(() => {
392
+ id: e,
393
+ apiKey: s,
394
+ center: o,
395
+ zoom: t = 15,
396
+ markers: a,
397
+ selectedMarkerId: l,
398
+ onMarkerClick: r,
399
+ consentGranted: c = !1,
400
+ onConsentRequest: m,
401
+ address: p,
402
+ consentDescription: f,
403
+ consentCta: u,
404
+ mapId: b,
405
+ size: h,
406
+ surface: w,
407
+ ariaLabel: M,
408
+ fitToPoints: g,
409
+ fitKey: z,
410
+ fitMaxZoom: N = 15,
411
+ className: U,
412
+ ...X
413
+ }, Y) => {
414
+ const { t: P, i18n: Q } = Z("ui"), S = x(() => g ?? [], [g]), ee = x(
415
+ () => z ?? S.map((n) => `${B(n)}@${n.lat},${n.lng}`).sort().join("|"),
416
+ [z, S]
417
+ ), V = S.length > 0, j = y(V), C = de(), te = x(
418
+ () => `map-${C.replace(/[^a-zA-Z0-9-_]/g, "")}`,
419
+ [C]
420
+ ), [_, ne] = E(!1);
421
+ I(() => {
328
422
  if (typeof window > "u") return;
329
- const e = window.matchMedia("(prefers-reduced-motion: reduce)"), r = () => F(e.matches);
330
- return r(), e.addEventListener("change", r), () => e.removeEventListener("change", r);
423
+ const n = window.matchMedia("(prefers-reduced-motion: reduce)"), d = () => ne(n.matches);
424
+ return d(), n.addEventListener("change", d), () => n.removeEventListener("change", d);
331
425
  }, []);
332
- const U = v(() => `https://www.google.com/maps/search/?api=1&query=${u ? encodeURIComponent(u) : `${s.lat},${s.lng}`}`, [u, s.lat, s.lng]), l = g(null), J = z((e) => {
333
- l.current = e;
334
- }, []), S = g(!1), T = g(null), L = g(0), h = z(
426
+ const se = x(() => `https://www.google.com/maps/search/?api=1&query=${p ? encodeURIComponent(p) : `${o.lat},${o.lng}`}`, [p, o.lat, o.lng]), v = y(null), oe = R((n) => {
427
+ v.current = n;
428
+ }, []), O = y(!1), $ = y(null), q = y(0), T = R(
335
429
  () => ({
336
- panTo: (e) => {
337
- var r;
338
- return (r = l.current) == null ? void 0 : r.panTo(e);
430
+ panTo: (n) => {
431
+ var d;
432
+ return (d = v.current) == null ? void 0 : d.panTo(n);
339
433
  },
340
- setZoom: (e) => {
341
- var r;
342
- return (r = l.current) == null ? void 0 : r.setZoom(e);
434
+ setZoom: (n) => {
435
+ var d;
436
+ return (d = v.current) == null ? void 0 : d.setZoom(n);
343
437
  },
344
- selectMarker: (e) => {
345
- var r;
346
- return (r = l.current) == null ? void 0 : r.selectMarker(e);
438
+ selectMarker: (n) => {
439
+ var d;
440
+ return (d = v.current) == null ? void 0 : d.selectMarker(n);
347
441
  },
348
442
  // Without `isConsentGranted` an agent has no way to learn that
349
443
  // its pan / zoom / select was swallowed by the GDPR gate rather
350
444
  // than applied: under the default (`consentGranted={false}`) the
351
445
  // whole Maps subtree is unmounted and every action optional-chains
352
446
  // into nothing.
353
- isConsentGranted: () => S.current,
447
+ isConsentGranted: () => O.current,
354
448
  getCenter: () => {
355
- var e;
356
- return ((e = l.current) == null ? void 0 : e.getCenter()) ?? null;
449
+ var n;
450
+ return ((n = v.current) == null ? void 0 : n.getCenter()) ?? null;
357
451
  },
358
452
  getZoom: () => {
359
- var e;
360
- return ((e = l.current) == null ? void 0 : e.getZoom()) ?? null;
453
+ var n;
454
+ return ((n = v.current) == null ? void 0 : n.getZoom()) ?? null;
361
455
  },
362
- getSelectedMarkerId: () => T.current,
363
- getMarkerCount: () => L.current
456
+ getSelectedMarkerId: () => $.current,
457
+ getMarkerCount: () => q.current
364
458
  }),
365
459
  []
366
460
  );
367
- ee(D, h, [h]);
368
- const O = v(
369
- () => h(),
370
- [h]
461
+ ce(Y, T, [T]);
462
+ const re = x(
463
+ () => T(),
464
+ [T]
371
465
  );
372
- pe(he, O, t), f(() => {
373
- var e;
374
- G || (e = l.current) == null || e.panTo(s);
375
- }, [s.lat, s.lng, G]), f(() => {
376
- var e;
377
- (e = l.current) == null || e.setZoom(n);
378
- }, [n]);
379
- const [W, x] = N(!1), Z = _ || W;
380
- S.current = Z, T.current = d ?? null, L.current = (m ?? []).length;
381
- const Q = z(() => {
382
- if (b) {
383
- b(), x(!0);
466
+ we(ke, re, e), I(() => {
467
+ var d, k;
468
+ const n = j.current && !V;
469
+ if (j.current = V, !V) {
470
+ if (n) {
471
+ (d = v.current) == null || d.jumpTo(o, t);
472
+ return;
473
+ }
474
+ _ || (k = v.current) == null || k.panTo(o);
475
+ }
476
+ }, [o.lat, o.lng, _, V]), I(() => {
477
+ var n;
478
+ V || (n = v.current) == null || n.setZoom(t);
479
+ }, [t, V]);
480
+ const [ae, H] = E(!1), A = c || ae;
481
+ O.current = A, $.current = l ?? null, q.current = (a ?? []).length;
482
+ const ie = R(() => {
483
+ if (m) {
484
+ m(), H(!0);
384
485
  return;
385
486
  }
386
- x(!0);
387
- }, [b]);
388
- return /* @__PURE__ */ a(
487
+ H(!0);
488
+ }, [m]);
489
+ return /* @__PURE__ */ i(
389
490
  "div",
390
491
  {
391
- className: ge({ size: k, surface: C, className: H }),
492
+ className: Ie({ size: h, surface: w, className: U }),
392
493
  "data-component": "map-view",
393
- "data-component-id": t ?? B,
494
+ "data-component-id": e ?? te,
394
495
  role: "region",
395
- "aria-label": K ?? y("mapView.label"),
396
- ...E,
397
- children: /* @__PURE__ */ a("div", { className: fe({ size: k }), children: Z ? /* @__PURE__ */ a(
398
- te,
496
+ "aria-label": M ?? P("mapView.label"),
497
+ ...X,
498
+ children: /* @__PURE__ */ i("div", { className: xe({ size: h }), children: A ? /* @__PURE__ */ i(
499
+ pe,
399
500
  {
400
- apiKey: o,
401
- language: $.language,
402
- children: /* @__PURE__ */ a(ze, { children: /* @__PURE__ */ c(
403
- se,
501
+ apiKey: s,
502
+ language: Q.language,
503
+ children: /* @__PURE__ */ i(_e, { children: /* @__PURE__ */ L(
504
+ ue,
404
505
  {
405
- defaultCenter: s,
406
- defaultZoom: n,
407
- mapId: M,
506
+ defaultCenter: o,
507
+ defaultZoom: t,
508
+ mapId: b,
408
509
  gestureHandling: "cooperative",
409
510
  disableDefaultUI: !1,
410
- onClick: () => i == null ? void 0 : i(null),
511
+ onClick: () => r == null ? void 0 : r(null),
411
512
  className: "ds:[inline-size:100%] ds:[block-size:100%]",
412
513
  children: [
413
- /* @__PURE__ */ a(
414
- we,
514
+ /* @__PURE__ */ i(
515
+ Se,
415
516
  {
416
- onHandleReady: J,
417
- onMarkerSelect: (e) => i == null ? void 0 : i(e)
517
+ onHandleReady: oe,
518
+ onMarkerSelect: (n) => r == null ? void 0 : r(n)
418
519
  }
419
520
  ),
420
- /* @__PURE__ */ a(Ve, { children: (m ?? []).map((e) => {
421
- const r = d != null && d === e.id, w = y("mapView.markerLabel", {
422
- label: e.label ?? e.id
521
+ g ? /* @__PURE__ */ i(
522
+ je,
523
+ {
524
+ points: S,
525
+ fitKey: ee,
526
+ maxZoom: N
527
+ }
528
+ ) : null,
529
+ /* @__PURE__ */ i(Oe, { children: (a ?? []).map((n) => {
530
+ const d = l != null && l === n.id, k = P("mapView.markerLabel", {
531
+ label: n.label ?? n.id
423
532
  });
424
- return M ? /* @__PURE__ */ a(
425
- ae,
533
+ return b ? /* @__PURE__ */ i(
534
+ me,
426
535
  {
427
- position: e.position,
428
- title: w,
429
- "aria-label": w,
430
- "data-selected": r ? "true" : "false",
431
- onClick: () => i == null ? void 0 : i(e.id),
432
- children: /* @__PURE__ */ a(
433
- oe,
536
+ position: n.position,
537
+ title: k,
538
+ "aria-label": k,
539
+ "data-selected": d ? "true" : "false",
540
+ onClick: () => r == null ? void 0 : r(n.id),
541
+ children: /* @__PURE__ */ i(
542
+ he,
434
543
  {
435
544
  background: "var(--primary)",
436
545
  borderColor: "var(--primary)",
@@ -438,37 +547,37 @@ const ke = X(
438
547
  }
439
548
  )
440
549
  },
441
- e.id
442
- ) : /* @__PURE__ */ a(
443
- ne,
550
+ n.id
551
+ ) : /* @__PURE__ */ i(
552
+ ge,
444
553
  {
445
- position: e.position,
446
- title: w,
447
- onClick: () => i == null ? void 0 : i(e.id)
554
+ position: n.position,
555
+ title: k,
556
+ onClick: () => r == null ? void 0 : r(n.id)
448
557
  },
449
- e.id
558
+ n.id
450
559
  );
451
560
  }) })
452
561
  ]
453
562
  }
454
563
  ) })
455
564
  }
456
- ) : /* @__PURE__ */ a(
457
- Me,
565
+ ) : /* @__PURE__ */ i(
566
+ $e,
458
567
  {
459
- address: u,
460
- description: q ?? y("mapView.consentDescription"),
461
- onLoadMap: Q,
462
- consentCta: A,
463
- openInGoogleMapsHref: U
568
+ address: p,
569
+ description: f ?? P("mapView.consentDescription"),
570
+ onLoadMap: ie,
571
+ consentCta: u,
572
+ openInGoogleMapsHref: se
464
573
  }
465
574
  ) })
466
575
  }
467
576
  );
468
577
  }
469
578
  );
470
- ke.displayName = "MapView";
579
+ qe.displayName = "MapView";
471
580
  export {
472
- ke as M
581
+ qe as M
473
582
  };
474
- //# sourceMappingURL=map-view-BuVfJMEa.js.map
583
+ //# sourceMappingURL=map-view-CtohteZD.js.map