@alfadocs/ui-kit 0.31.0 → 0.31.3

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/{accordion-CNcodXuO.js → accordion-bSU21uTV.js} +3 -3
  2. package/dist/_chunks/{agenda-card-DO9_yogb.js → agenda-card-UJA6Arbs.js} +3 -3
  3. package/dist/_chunks/{agenda-tray-WLbfMip6.js → agenda-tray-1fAxNOMz.js} +4 -4
  4. package/dist/_chunks/{ai-prompt-input-BXlwNnWe.js → ai-prompt-input-C6sCr1Vi.js} +11 -10
  5. package/dist/_chunks/{alia-sidebar-C-232sD7.js → alia-sidebar-BEoMl6UL.js} +9 -9
  6. package/dist/_chunks/ar-CEpIJtcO.js +399 -0
  7. package/dist/_chunks/{audio-recorder-DL800PE_.js → audio-recorder-C1rhKhSN.js} +114 -114
  8. package/dist/_chunks/audio-visualiser-l6zPd0AG.js +162 -0
  9. package/dist/_chunks/{autocomplete-CUh0f7Dj.js → autocomplete-DIgdhCGJ.js} +2 -2
  10. package/dist/_chunks/{avatar-D_H4emLo.js → avatar-BNQNhoyL.js} +19 -18
  11. package/dist/_chunks/{badge-CIjQ1Us1.js → badge-CptERaHx.js} +2 -2
  12. package/dist/_chunks/{booking-Bhk9IYm3.js → booking-A4o9xI2n.js} +160 -149
  13. package/dist/_chunks/{breadcrumb--YI7lcHA.js → breadcrumb-CLlhx7qo.js} +2 -2
  14. package/dist/_chunks/{button-group-Bh2g_Ng-.js → button-group-Ciq6J4IW.js} +15 -14
  15. package/dist/_chunks/{calendar-WWNx448i.js → calendar-YHFknAGv.js} +22 -22
  16. package/dist/_chunks/{carousel.agent-C2Icc9_T.js → carousel.agent-DrX96W-1.js} +2 -2
  17. package/dist/_chunks/{chart-BLvFl169.js → chart-DLkVn_ex.js} +2 -2
  18. package/dist/_chunks/{chat-container-izziXViv.js → chat-container-ogB4OskO.js} +24 -23
  19. package/dist/_chunks/{chat-input-cyl_y9bh.js → chat-input-CQe7nR_v.js} +132 -118
  20. package/dist/_chunks/{chat-message-fg221-yx.js → chat-message-D53_fH2w.js} +2 -2
  21. package/dist/_chunks/{checkbox-Dgp_cfUr.js → checkbox-DRcOdmXv.js} +3 -3
  22. package/dist/_chunks/{checkbox-group-eVowqKcT.js → checkbox-group-CpUwlHug.js} +3 -3
  23. package/dist/_chunks/{collapsible-hHiyZp0b.js → collapsible-CERONory.js} +2 -2
  24. package/dist/_chunks/{color-picker-Bm-gzpsh.js → color-picker-9tL7pz5y.js} +192 -181
  25. package/dist/_chunks/{combobox-Da9eq00i.js → combobox-BC-DFx8G.js} +31 -30
  26. package/dist/_chunks/{command-palette-11BieSNq.js → command-palette-BiPAAno-.js} +125 -123
  27. package/dist/_chunks/{copy-field-BAF4mt9h.js → copy-field-CCq7j6Zc.js} +2 -2
  28. package/dist/_chunks/{date-picker-D0Ry1dMz.js → date-picker-B94HAV4A.js} +4 -4
  29. package/dist/_chunks/{date-range-picker-DYgHzMOo.js → date-range-picker-D4dgDlLU.js} +73 -73
  30. package/dist/_chunks/{date-time-picker-CGmGtcyc.js → date-time-picker-D1GEzf8p.js} +5 -5
  31. package/dist/_chunks/de-Dfbeau59.js +477 -0
  32. package/dist/_chunks/{description-list-CWjnaDGn.js → description-list-BEbK2g93.js} +2 -2
  33. package/dist/_chunks/{dialog-C-lTGVkB.js → dialog-Cee13rHU.js} +3 -3
  34. package/dist/_chunks/{dropdown-menu-DZxwF23X.js → dropdown-menu-BC5ZdOMo.js} +3 -3
  35. package/dist/_chunks/{editable-currency-cell-renderer-Od3Q-Y8J.js → editable-currency-cell-renderer-BpicmolK.js} +314 -317
  36. package/dist/_chunks/el-Dro3J7CP.js +373 -0
  37. package/dist/_chunks/{email-input-DvJ_kPKL.js → email-input-lQivsFrw.js} +3 -3
  38. package/dist/_chunks/es-Dvg8u70B.js +373 -0
  39. package/dist/_chunks/{file-upload-DxAQprcU.js → file-upload-CdozCPct.js} +226 -233
  40. package/dist/_chunks/fr-VOGjBSPP.js +338 -0
  41. package/dist/_chunks/{freemium-paywall-B9c8Ylww.js → freemium-paywall-D1N02Oam.js} +4 -4
  42. package/dist/_chunks/{header-DDj7uGD-.js → header-CTZWX-tm.js} +2 -2
  43. package/dist/_chunks/hi-BSDxWU_y.js +433 -0
  44. package/dist/_chunks/{icon-button-DPEqBKBQ.js → icon-button-CKEOrN37.js} +2 -2
  45. package/dist/_chunks/{icon-button-group-DeV3FpNY.js → icon-button-group-C48khLE0.js} +23 -22
  46. package/dist/_chunks/{isSameDay-DHG8Xade.js → isSameDay-DUEiAT0G.js} +2 -2
  47. package/dist/_chunks/isSameWeek-Dfzu29cW.js +14 -0
  48. package/dist/_chunks/it-CuonvcI_.js +401 -0
  49. package/dist/_chunks/ja-DO57gIOT.js +366 -0
  50. package/dist/_chunks/{key-value-pair-BvDY3zuc.js → key-value-pair-C8DaR3Xs.js} +2 -2
  51. package/dist/_chunks/{list-BdvDctBz.js → list-BOwqwy03.js} +44 -43
  52. package/dist/_chunks/{locale-picker-CY89MChR.js → locale-picker-D99UyZVJ.js} +4 -4
  53. package/dist/_chunks/{map-view-DyB8tr6c.js → map-view-WEWqXzof.js} +569 -557
  54. package/dist/_chunks/{message-card-D6iyPacd.js → message-card-BbRhZkDI.js} +3 -3
  55. package/dist/_chunks/{message-tray-Bh-0ra-Y.js → message-tray-B762TKuv.js} +11 -10
  56. package/dist/_chunks/{multi-select-dSe6Xtc4.js → multi-select-DOLO3K_z.js} +26 -25
  57. package/dist/_chunks/{navigation-menu-CyS1fBJ7.js → navigation-menu-C6lBYVv9.js} +3 -3
  58. package/dist/_chunks/nl-DjPaaWaW.js +326 -0
  59. package/dist/_chunks/{notification-card-vaMaA7Wa.js → notification-card-DMdO4g54.js} +2 -2
  60. package/dist/_chunks/{notification-tray-Cnum6LwM.js → notification-tray-Dl3FTleW.js} +17 -16
  61. package/dist/_chunks/{number-input-BZXu6bPY.js → number-input-Dj5L3pXK.js} +2 -2
  62. package/dist/_chunks/{otp-input-BDF_iNpa.js → otp-input-BEg_sn8A.js} +2 -2
  63. package/dist/_chunks/{pagination-BWaXF7W0.js → pagination-DQOgnxxw.js} +2 -2
  64. package/dist/_chunks/{parseISO-Dk4xa7q6.js → parseISO-DEpUNwxZ.js} +2 -2
  65. package/dist/_chunks/{patient-search-ZpHN-pgJ.js → patient-search-hFiYbqcl.js} +8 -8
  66. package/dist/_chunks/{patient-shell-CYaNkbA1.js → patient-shell-CDvMw_Nk.js} +6 -6
  67. package/dist/_chunks/{payment-form-Ds3rxvad.js → payment-form-D5rgnZu7.js} +2 -2
  68. package/dist/_chunks/{pdf-viewer-CIuaocnq.js → pdf-viewer-DvtEHcEP.js} +347 -320
  69. package/dist/_chunks/{phone-input-DKSHX7NQ.js → phone-input-DfZbPPvh.js} +217 -201
  70. package/dist/_chunks/pl-Cl4lOx2N.js +514 -0
  71. package/dist/_chunks/{popover-BfHSBEKq.js → popover-Devce-tT.js} +3 -3
  72. package/dist/_chunks/practice-results-RPL64j8E.js +1582 -0
  73. package/dist/_chunks/{privacy-lock-C6Ra5m3p.js → privacy-lock-DD-wHxBg.js} +3 -3
  74. package/dist/_chunks/{progress-B-PSO5OS.js → progress-kzIRcdaq.js} +11 -10
  75. package/dist/_chunks/pt-D7qO5CzD.js +370 -0
  76. package/dist/_chunks/{public-footer.agent-Bc99tE5Z.js → public-footer.agent-Bh0rnx4i.js} +21 -14
  77. package/dist/_chunks/{public-header.agent-B-B0WDAi.js → public-header.agent-B2dDg2_d.js} +3 -3
  78. package/dist/_chunks/{radio-i4ogu3cq.js → radio-TWf9Q-mp.js} +2 -2
  79. package/dist/_chunks/{radio-group-CTlGc36r.js → radio-group-BcF92GEF.js} +4 -4
  80. package/dist/_chunks/{react-day-picker-D3yzgvDB.js → react-day-picker-DsjfS7uI.js} +662 -615
  81. package/dist/_chunks/recaptcha-widget-CFYyLSEX.js +221 -0
  82. package/dist/_chunks/registry-nPAVE19X.js +21 -0
  83. package/dist/_chunks/{resizable-COV-cnth.js → resizable-3vzqDlg6.js} +29 -28
  84. package/dist/_chunks/{reviews-panel-bKEUKSic.js → reviews-panel-yanuBZs-.js} +4 -4
  85. package/dist/_chunks/{rich-text-editor-J-wAz9eN.js → rich-text-editor-CHmr9Bz8.js} +2 -2
  86. package/dist/_chunks/ro-CP2-VJ_O.js +361 -0
  87. package/dist/_chunks/ru-RPn9_Lpq.js +561 -0
  88. package/dist/_chunks/{scroll-area-DEDU-lp-.js → scroll-area-BWqCkEGz.js} +2 -2
  89. package/dist/_chunks/{search-bar-BRMW1-WG.js → search-bar-CP6wUJFY.js} +3 -3
  90. package/dist/_chunks/{search-input-CIA6pPfn.js → search-input-C1C3jQpD.js} +24 -23
  91. package/dist/_chunks/{select-C92AT_OZ.js → select-hsCaJSX3.js} +3 -3
  92. package/dist/_chunks/{sheet-D8Yl0nKR.js → sheet-BV-yuLE2.js} +3 -3
  93. package/dist/_chunks/{sidebar-DkyC6GvS.js → sidebar-BbR8f6oe.js} +3 -3
  94. package/dist/_chunks/{signature-capture-DjMlFOzS.js → signature-capture-C-fF71xI.js} +213 -205
  95. package/dist/_chunks/{slider-CfEzeseL.js → slider-BHWzXdjt.js} +3 -3
  96. package/dist/_chunks/{slot-grid-Q94gVmhn.js → slot-grid-Dz13dH82.js} +4 -4
  97. package/dist/_chunks/{sparkline-B5Ms55PZ.js → sparkline-DEROcSl0.js} +2 -2
  98. package/dist/_chunks/sq-AQvefouo.js +355 -0
  99. package/dist/_chunks/{stepper-progress-jFY8BSf7.js → stepper-progress-DDjq5nei.js} +16 -15
  100. package/dist/_chunks/streaming-text-GH07yIYh.js +127 -0
  101. package/dist/_chunks/sv-zkx9eBtD.js +376 -0
  102. package/dist/_chunks/{switch-D916VW86.js → switch-BJ6HD3Mn.js} +2 -2
  103. package/dist/_chunks/{tabs-aEQfQV3x.js → tabs-BpPYVme_.js} +4 -4
  104. package/dist/_chunks/{tag-bBPAvXyh.js → tag-CyoaEmf_.js} +2 -2
  105. package/dist/_chunks/{task-tray-6NlryfMJ.js → task-tray-DRK0b0Qb.js} +3 -3
  106. package/dist/_chunks/{text-area-D5GAe8pV.js → text-area-BIx0tZ05.js} +27 -26
  107. package/dist/_chunks/{text-input-CakysYnD.js → text-input-BaClJL8Y.js} +2 -2
  108. package/dist/_chunks/{theme-toggle-JoeMs_ws.js → theme-toggle-DpC28kt5.js} +6 -6
  109. package/dist/_chunks/{time-picker-DeVZkIY2.js → time-picker-B5umYwfv.js} +2 -2
  110. package/dist/_chunks/{timeline-CR7HjZCK.js → timeline-D0Wo7v_o.js} +3 -3
  111. package/dist/_chunks/{toast.agent-DVpKt38p.js → toast.agent-WHHfw5VX.js} +322 -320
  112. package/dist/_chunks/{tooltip-ClJd0ciy.js → tooltip-DvmfrNvB.js} +29 -20
  113. package/dist/_chunks/{tooth-scheme-3mITSXiZ.js → tooth-scheme-CxlsLjfN.js} +2 -2
  114. package/dist/_chunks/tr-Dmr412Ac.js +378 -0
  115. package/dist/_chunks/{transcript-panel-QUQ9XJmf.js → transcript-panel-DyhTpAP7.js} +21 -20
  116. package/dist/_chunks/{use-direction-D6rvvG9G.js → use-direction-Dp8h70PP.js} +7 -6
  117. package/dist/_chunks/use-isomorphic-layout-effect-BGfaCOP1.js +6 -0
  118. package/dist/_chunks/use-media-query-CcAx5SMM.js +16 -0
  119. package/dist/_chunks/{use-password-requirements-E0sSfx5X.js → use-password-requirements-DsgduV1x.js} +3 -3
  120. package/dist/_chunks/use-scroll-to-first-error-4Za-u5Nw.js +43 -0
  121. package/dist/_chunks/{workflow-map-DlWBJJBt.js → workflow-map-BSvQS3be.js} +6 -6
  122. package/dist/_chunks/zh-CN-DxVt64Zk.js +388 -0
  123. package/dist/agent/registry.d.ts +1 -6
  124. package/dist/agent-catalog.json +1 -1
  125. package/dist/components/_shared/date-locale.d.ts +7 -2
  126. package/dist/components/_shared/index.d.ts +1 -1
  127. package/dist/components/accordion/index.js +1 -1
  128. package/dist/components/agenda-card/index.js +1 -1
  129. package/dist/components/agenda-tray/index.js +1 -1
  130. package/dist/components/ai-prompt-input/index.js +1 -1
  131. package/dist/components/audio-recorder/index.js +1 -1
  132. package/dist/components/audio-visualiser/index.js +1 -1
  133. package/dist/components/autocomplete/index.js +1 -1
  134. package/dist/components/avatar/index.js +1 -1
  135. package/dist/components/badge/index.js +1 -1
  136. package/dist/components/booking/index.js +1 -1
  137. package/dist/components/breadcrumb/index.js +1 -1
  138. package/dist/components/button/index.js +1 -1
  139. package/dist/components/button-group/index.js +1 -1
  140. package/dist/components/calendar/index.js +1 -1
  141. package/dist/components/carousel/index.js +1 -1
  142. package/dist/components/chart/index.js +1 -1
  143. package/dist/components/chat-container/index.js +1 -1
  144. package/dist/components/chat-input/index.js +1 -1
  145. package/dist/components/chat-message/index.js +1 -1
  146. package/dist/components/checkbox/index.js +1 -1
  147. package/dist/components/checkbox-group/index.js +1 -1
  148. package/dist/components/collapsible/index.js +1 -1
  149. package/dist/components/color-picker/index.js +1 -1
  150. package/dist/components/combobox/index.js +1 -1
  151. package/dist/components/command-palette/index.js +1 -1
  152. package/dist/components/copy-field/index.js +1 -1
  153. package/dist/components/data-table/index.js +1 -1
  154. package/dist/components/date-picker/index.js +1 -1
  155. package/dist/components/date-range-picker/index.js +1 -1
  156. package/dist/components/date-time-picker/index.js +1 -1
  157. package/dist/components/description-list/index.js +1 -1
  158. package/dist/components/dialog/index.js +1 -1
  159. package/dist/components/dropdown-menu/index.js +1 -1
  160. package/dist/components/email-input/index.js +1 -1
  161. package/dist/components/file-upload/index.js +1 -1
  162. package/dist/components/freemium-paywall/index.js +1 -1
  163. package/dist/components/header/index.js +1 -1
  164. package/dist/components/header-settings/index.js +6 -6
  165. package/dist/components/icon-button/index.js +1 -1
  166. package/dist/components/icon-button-group/index.js +1 -1
  167. package/dist/components/key-value-pair/index.js +1 -1
  168. package/dist/components/list/index.js +1 -1
  169. package/dist/components/locale-picker/index.js +1 -1
  170. package/dist/components/map-view/index.js +1 -1
  171. package/dist/components/map-view/map-view.d.ts +10 -0
  172. package/dist/components/message-card/index.js +1 -1
  173. package/dist/components/message-tray/index.js +1 -1
  174. package/dist/components/multi-select/index.js +1 -1
  175. package/dist/components/navigation-menu/index.js +1 -1
  176. package/dist/components/notification-card/index.js +1 -1
  177. package/dist/components/notification-tray/index.js +1 -1
  178. package/dist/components/number-input/index.js +1 -1
  179. package/dist/components/otp-input/index.js +1 -1
  180. package/dist/components/pagination/index.js +1 -1
  181. package/dist/components/password-input/index.js +1 -1
  182. package/dist/components/patient-search/index.js +1 -1
  183. package/dist/components/payment-form/index.js +1 -1
  184. package/dist/components/pdf-viewer/index.js +1 -1
  185. package/dist/components/phone-input/index.js +1 -1
  186. package/dist/components/popover/index.js +1 -1
  187. package/dist/components/practice-results/index.js +1 -1
  188. package/dist/components/practice-results/practice-results.d.ts +23 -1
  189. package/dist/components/privacy-lock/index.js +1 -1
  190. package/dist/components/progress/index.js +1 -1
  191. package/dist/components/public-footer/index.js +1 -1
  192. package/dist/components/public-header/index.js +1 -1
  193. package/dist/components/radio/index.js +1 -1
  194. package/dist/components/radio-group/index.js +2 -2
  195. package/dist/components/recaptcha-widget/index.js +1 -1
  196. package/dist/components/resizable/index.js +1 -1
  197. package/dist/components/reviews-panel/index.js +1 -1
  198. package/dist/components/rich-text-editor/index.js +1 -1
  199. package/dist/components/scroll-area/index.js +1 -1
  200. package/dist/components/search-bar/index.js +1 -1
  201. package/dist/components/search-input/index.js +1 -1
  202. package/dist/components/select/index.js +1 -1
  203. package/dist/components/sheet/index.js +1 -1
  204. package/dist/components/sidebar/index.js +1 -1
  205. package/dist/components/signature-capture/index.js +1 -1
  206. package/dist/components/slider/index.js +1 -1
  207. package/dist/components/slot-grid/index.js +1 -1
  208. package/dist/components/sparkline/index.js +1 -1
  209. package/dist/components/stepper-progress/index.js +1 -1
  210. package/dist/components/streaming-text/index.js +1 -1
  211. package/dist/components/switch/index.js +1 -1
  212. package/dist/components/tabs/index.js +1 -1
  213. package/dist/components/tag/index.js +1 -1
  214. package/dist/components/task-tray/index.js +1 -1
  215. package/dist/components/text-area/index.js +1 -1
  216. package/dist/components/text-input/index.js +1 -1
  217. package/dist/components/theme-toggle/index.js +1 -1
  218. package/dist/components/time-picker/index.js +1 -1
  219. package/dist/components/timeline/index.js +1 -1
  220. package/dist/components/toast/index.js +1 -1
  221. package/dist/components/tooltip/index.js +1 -1
  222. package/dist/components/tooth-scheme/index.js +1 -1
  223. package/dist/components/transcript-panel/index.js +1 -1
  224. package/dist/components/workflow/index.js +1 -1
  225. package/dist/hooks/index.js +69 -66
  226. package/dist/i18n/locales/ar.d.ts +92 -0
  227. package/dist/i18n/locales/ar.js +82 -0
  228. package/dist/i18n/locales/de.d.ts +92 -0
  229. package/dist/i18n/locales/de.js +81 -0
  230. package/dist/i18n/locales/el.d.ts +92 -0
  231. package/dist/i18n/locales/el.js +82 -0
  232. package/dist/i18n/locales/en.d.ts +27 -0
  233. package/dist/i18n/locales/en.js +27 -0
  234. package/dist/i18n/locales/es.d.ts +92 -0
  235. package/dist/i18n/locales/es.js +81 -0
  236. package/dist/i18n/locales/fr.d.ts +92 -0
  237. package/dist/i18n/locales/fr.js +81 -0
  238. package/dist/i18n/locales/hi.d.ts +92 -0
  239. package/dist/i18n/locales/hi.js +82 -0
  240. package/dist/i18n/locales/it.d.ts +92 -0
  241. package/dist/i18n/locales/it.js +81 -0
  242. package/dist/i18n/locales/ja.d.ts +92 -0
  243. package/dist/i18n/locales/ja.js +82 -0
  244. package/dist/i18n/locales/nl.d.ts +92 -0
  245. package/dist/i18n/locales/nl.js +81 -0
  246. package/dist/i18n/locales/pl.d.ts +92 -0
  247. package/dist/i18n/locales/pl.js +82 -0
  248. package/dist/i18n/locales/pt.d.ts +92 -0
  249. package/dist/i18n/locales/pt.js +83 -0
  250. package/dist/i18n/locales/ro.d.ts +92 -0
  251. package/dist/i18n/locales/ro.js +82 -0
  252. package/dist/i18n/locales/ru.d.ts +92 -0
  253. package/dist/i18n/locales/ru.js +82 -0
  254. package/dist/i18n/locales/sq.d.ts +92 -0
  255. package/dist/i18n/locales/sq.js +82 -0
  256. package/dist/i18n/locales/sv.d.ts +92 -0
  257. package/dist/i18n/locales/sv.js +82 -0
  258. package/dist/i18n/locales/tr.d.ts +92 -0
  259. package/dist/i18n/locales/tr.js +82 -0
  260. package/dist/i18n/locales/zh.d.ts +92 -0
  261. package/dist/i18n/locales/zh.js +82 -0
  262. package/dist/index.js +541 -540
  263. package/dist/locales/ar.json +92 -0
  264. package/dist/locales/de.json +92 -0
  265. package/dist/locales/el.json +92 -0
  266. package/dist/locales/en.json +27 -0
  267. package/dist/locales/es.json +92 -0
  268. package/dist/locales/fr.json +92 -0
  269. package/dist/locales/hi.json +92 -0
  270. package/dist/locales/it.json +92 -0
  271. package/dist/locales/ja.json +92 -0
  272. package/dist/locales/nl.json +92 -0
  273. package/dist/locales/pl.json +92 -0
  274. package/dist/locales/pt.json +92 -0
  275. package/dist/locales/ro.json +92 -0
  276. package/dist/locales/ru.json +92 -0
  277. package/dist/locales/sq.json +92 -0
  278. package/dist/locales/sv.json +92 -0
  279. package/dist/locales/tr.json +92 -0
  280. package/dist/locales/zh.json +92 -0
  281. package/dist/patterns/alia-assistant/index.js +1 -1
  282. package/dist/patterns/patient-shell/index.js +1 -1
  283. package/dist/tokens.css +1 -1
  284. package/package.json +2 -2
  285. package/dist/_chunks/audio-visualiser-I-T4Z7EU.js +0 -145
  286. package/dist/_chunks/practice-results-CEKjwsgS.js +0 -1441
  287. package/dist/_chunks/recaptcha-widget-BtBNb6tB.js +0 -192
  288. package/dist/_chunks/registry-C9nwlNyL.js +0 -21
  289. package/dist/_chunks/smile-BSYLAHy6.js +0 -17
  290. package/dist/_chunks/streaming-text-BgjCTVOw.js +0 -105
  291. package/dist/_chunks/use-scroll-to-first-error-BrK7dKB_.js +0 -55
@@ -1,17 +1,17 @@
1
- import { jsx as R, jsxs as ie } from "react/jsx-runtime";
2
- import * as je from "react";
3
- import P, { useMemo as N, useContext as B, useEffect as E, useLayoutEffect as X, forwardRef as U, useImperativeHandle as H, useState as x, useReducer as ze, useCallback as ce, useRef as F, Children as Ee, createContext as Qe, useId as en } from "react";
4
- import { c as ne } from "./index-D2ZczOXr.js";
5
- import { useTranslation as Be } from "react-i18next";
6
- import { createPortal as de } from "react-dom";
7
- import { g as nn } from "./_commonjsHelpers-DaMA6jEr.js";
8
- import { B as tn } from "./button-DD_0Xdmr.js";
9
- import { u as on } from "./registry-C9nwlNyL.js";
10
- import { M as rn } from "./map-pin-B8STOPMJ.js";
11
- import { E as an } from "./external-link-C6F25E6k.js";
12
- var ge, De;
13
- function sn() {
14
- return De || (De = 1, ge = function e(n, t) {
1
+ import { jsx as j, jsxs as le } from "react/jsx-runtime";
2
+ import * as Fe from "react";
3
+ import A, { useMemo as N, useContext as F, useEffect as C, useLayoutEffect as X, forwardRef as H, useImperativeHandle as V, useState as _, useReducer as Ue, useCallback as ne, useRef as U, Children as Ee, createContext as nn, useId as tn } from "react";
4
+ import { c as oe } from "./index-D2ZczOXr.js";
5
+ import { useTranslation as He } from "react-i18next";
6
+ import { createPortal as ue } from "react-dom";
7
+ import { g as on } from "./_commonjsHelpers-DaMA6jEr.js";
8
+ import { B as rn } from "./button-DD_0Xdmr.js";
9
+ import { u as an } from "./registry-nPAVE19X.js";
10
+ import { M as sn } from "./map-pin-B8STOPMJ.js";
11
+ import { E as ln } from "./external-link-C6F25E6k.js";
12
+ var fe, _e;
13
+ function cn() {
14
+ return _e || (_e = 1, fe = function e(n, t) {
15
15
  if (n === t) return !0;
16
16
  if (n && t && typeof n == "object" && typeof t == "object") {
17
17
  if (n.constructor !== t.constructor) return !1;
@@ -35,11 +35,11 @@ function sn() {
35
35
  return !0;
36
36
  }
37
37
  return n !== n && t !== t;
38
- }), ge;
38
+ }), fe;
39
39
  }
40
- var ln = sn();
41
- const te = /* @__PURE__ */ nn(ln), cn = "1.8.3";
42
- function j(e, n) {
40
+ var dn = cn();
41
+ const re = /* @__PURE__ */ on(dn), un = "1.8.3";
42
+ function z(e, n) {
43
43
  var t = {};
44
44
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
45
45
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -47,7 +47,7 @@ function j(e, n) {
47
47
  n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
48
48
  return t;
49
49
  }
50
- function Se(e, n, t, o) {
50
+ function Ie(e, n, t, o) {
51
51
  function r(a) {
52
52
  return a instanceof t ? a : new t(function(i) {
53
53
  i(a);
@@ -57,15 +57,15 @@ function Se(e, n, t, o) {
57
57
  function s(l) {
58
58
  try {
59
59
  c(o.next(l));
60
- } catch (f) {
61
- i(f);
60
+ } catch (m) {
61
+ i(m);
62
62
  }
63
63
  }
64
64
  function g(l) {
65
65
  try {
66
66
  c(o.throw(l));
67
- } catch (f) {
68
- i(f);
67
+ } catch (m) {
68
+ i(m);
69
69
  }
70
70
  }
71
71
  function c(l) {
@@ -74,75 +74,75 @@ function Se(e, n, t, o) {
74
74
  c((o = o.apply(e, [])).next());
75
75
  });
76
76
  }
77
- function dn(e, n) {
77
+ function gn(e, n) {
78
78
  e.src = n;
79
79
  }
80
- const un = (e) => {
81
- var n, t, o, r = "The Google Maps JavaScript API", a = "google", i = "importLibrary", s = "__ib__", g = document, c = window, l = c[a] || (c[a] = {}), f = l.maps || (l.maps = {}), m = /* @__PURE__ */ new Set(), u = new URLSearchParams(), h = () => n || (n = new Promise(async (y, d) => {
80
+ const fn = (e) => {
81
+ var n, t, o, r = "The Google Maps JavaScript API", a = "google", i = "importLibrary", s = "__ib__", g = document, c = window, l = c[a] || (c[a] = {}), m = l.maps || (l.maps = {}), f = /* @__PURE__ */ new Set(), u = new URLSearchParams(), h = () => n || (n = new Promise(async (y, d) => {
82
82
  var p;
83
- await (t = g.createElement("script")), u.set("libraries", [...m] + "");
83
+ await (t = g.createElement("script")), u.set("libraries", [...f] + "");
84
84
  for (o in e)
85
85
  u.set(o.replace(/[A-Z]/g, (b) => "_" + b[0].toLowerCase()), e[o]);
86
- u.set("callback", a + ".maps." + s), dn(t, "https://maps.googleapis.com/maps/api/js?" + u), f[s] = y, t.onerror = () => n = d(Error(r + " could not load.")), t.nonce = ((p = g.querySelector("script[nonce]")) == null ? void 0 : p.nonce) || "", g.head.append(t);
86
+ u.set("callback", a + ".maps." + s), gn(t, "https://maps.googleapis.com/maps/api/js?" + u), m[s] = y, t.onerror = () => n = d(Error(r + " could not load.")), t.nonce = ((p = g.querySelector("script[nonce]")) == null ? void 0 : p.nonce) || "", g.head.append(t);
87
87
  }));
88
- f[i] ? console.warn(r + " only loads once. Ignoring:", e) : f[i] = (y, ...d) => m.add(y) && h().then(() => f[i](y, ...d));
89
- }, gn = (e) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`, fn = (e) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`, mn = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", pn = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.", Fe = process.env.NODE_ENV !== "production", Ce = Fe ? (e) => {
88
+ m[i] ? console.warn(r + " only loads once. Ignoring:", e) : m[i] = (y, ...d) => f.add(y) && h().then(() => m[i](y, ...d));
89
+ }, mn = (e) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`, pn = (e) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`, hn = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", vn = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.", Ve = process.env.NODE_ENV !== "production", Oe = Ve ? (e) => {
90
90
  console.warn(`[@googlemaps/js-api-loader] ${e}`);
91
91
  } : () => {
92
- }, hn = Fe ? (e) => {
92
+ }, yn = Ve ? (e) => {
93
93
  console.info(`[@googlemaps/js-api-loader] ${e}`);
94
94
  } : () => {
95
- }, vn = process.env.NODE_ENV !== "production";
96
- let pe = !1;
97
- function yn(e) {
98
- if (pe) {
99
- Ce(gn(e));
95
+ }, bn = process.env.NODE_ENV !== "production";
96
+ let he = !1;
97
+ function Cn(e) {
98
+ if (he) {
99
+ Oe(mn(e));
100
100
  return;
101
101
  }
102
- En(e), pe = !0;
102
+ On(e), he = !0;
103
103
  }
104
- async function bn(e) {
104
+ async function En(e) {
105
105
  var n, t;
106
- if (pe || Ce(mn), !((t = (n = window == null ? void 0 : window.google) == null ? void 0 : n.maps) != null && t.importLibrary))
106
+ if (he || Oe(hn), !((t = (n = window == null ? void 0 : window.google) == null ? void 0 : n.maps) != null && t.importLibrary))
107
107
  throw new Error("google.maps.importLibrary is not installed.");
108
108
  return await google.maps.importLibrary(e);
109
109
  }
110
- function En(e) {
110
+ function On(e) {
111
111
  var t, o;
112
112
  const n = !!((o = (t = window.google) == null ? void 0 : t.maps) != null && o.importLibrary);
113
- n ? hn(fn(e)) : vn && document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]') && Ce(pn), n || un(e);
113
+ n ? yn(pn(e)) : bn && document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]') && Oe(vn), n || fn(e);
114
114
  }
115
- const z = {
115
+ const B = {
116
116
  NOT_LOADED: "NOT_LOADED",
117
117
  LOADING: "LOADING",
118
118
  LOADED: "LOADED",
119
119
  FAILED: "FAILED",
120
120
  AUTH_FAILURE: "AUTH_FAILURE"
121
- }, Cn = "GMP_visgl_rgmlibrary_v1_default", On = [
122
- `gmp_visgl_reactgooglemaps_v${cn}`
123
- ], Q = P.createContext(null);
124
- let V = z.NOT_LOADED, re;
125
- const he = /* @__PURE__ */ new Set();
126
- function ae(e) {
127
- e !== V && (V = e, he.forEach((n) => n(V)));
128
- }
129
- function Mn() {
130
- const [e, n] = x({});
121
+ }, Mn = "GMP_visgl_rgmlibrary_v1_default", wn = [
122
+ `gmp_visgl_reactgooglemaps_v${un}`
123
+ ], Q = A.createContext(null);
124
+ let G = B.NOT_LOADED, ie;
125
+ const ve = /* @__PURE__ */ new Set();
126
+ function se(e) {
127
+ e !== G && (G = e, ve.forEach((n) => n(G)));
128
+ }
129
+ function Pn() {
130
+ const [e, n] = _({});
131
131
  return { mapInstances: e, addMapInstance: (a, i = "default") => {
132
132
  n((s) => Object.assign(Object.assign({}, s), { [i]: a }));
133
133
  }, removeMapInstance: (a = "default") => {
134
134
  n((i) => {
135
135
  var s = a;
136
136
  i[s];
137
- var g = j(i, [typeof s == "symbol" ? s : s + ""]);
137
+ var g = z(i, [typeof s == "symbol" ? s : s + ""]);
138
138
  return g;
139
139
  });
140
140
  }, clearMapInstances: () => {
141
141
  n({});
142
142
  } };
143
143
  }
144
- function wn() {
145
- const [e, n] = x({});
144
+ function An() {
145
+ const [e, n] = _({});
146
146
  return {
147
147
  map3dInstances: e,
148
148
  addMap3DInstance: (a, i = "default") => {
@@ -152,7 +152,7 @@ function wn() {
152
152
  n((i) => {
153
153
  var s = a;
154
154
  i[s];
155
- var g = j(i, [typeof s == "symbol" ? s : s + ""]);
155
+ var g = z(i, [typeof s == "symbol" ? s : s + ""]);
156
156
  return g;
157
157
  });
158
158
  },
@@ -161,8 +161,8 @@ function wn() {
161
161
  }
162
162
  };
163
163
  }
164
- function Pn(e) {
165
- const { onLoad: n, onError: t, apiKey: o, version: r, libraries: a = [], region: i, language: s, authReferrerPolicy: g, channel: c, solutionChannel: l, fetchAppCheckToken: f } = e, [m, u] = x(V), [h, y] = ze((b, C) => b[C.name] ? b : Object.assign(Object.assign({}, b), { [C.name]: C.value }), {}), d = N(() => {
164
+ function Tn(e) {
165
+ const { onLoad: n, onError: t, apiKey: o, version: r, libraries: a = [], region: i, language: s, authReferrerPolicy: g, channel: c, solutionChannel: l, fetchAppCheckToken: m } = e, [f, u] = _(G), [h, y] = Ue((b, E) => b[E.name] ? b : Object.assign(Object.assign({}, b), { [E.name]: E.value }), {}), d = N(() => {
166
166
  const b = {
167
167
  apiKey: o,
168
168
  version: r,
@@ -183,31 +183,31 @@ function Pn(e) {
183
183
  g,
184
184
  c,
185
185
  l
186
- ]), p = ce((b) => Se(this, void 0, void 0, function* () {
186
+ ]), p = ne((b) => Ie(this, void 0, void 0, function* () {
187
187
  if (h[b])
188
188
  return h[b];
189
- const C = yield bn(b);
190
- return y({ name: b, value: C }), C;
189
+ const E = yield En(b);
190
+ return y({ name: b, value: E }), E;
191
191
  }), [h]);
192
- return E(() => (he.add(u), u(V), () => {
193
- he.delete(u);
194
- }), []), E(
192
+ return C(() => (ve.add(u), u(G), () => {
193
+ ve.delete(u);
194
+ }), []), C(
195
195
  () => {
196
- Se(this, void 0, void 0, function* () {
197
- var b, C;
196
+ Ie(this, void 0, void 0, function* () {
197
+ var b, E;
198
198
  try {
199
- re && re !== d && console.warn("The Google Maps JavaScript API has already been loaded with different parameters. The new parameters will be ignored. If you need to use different parameters, please refresh the page.");
199
+ ie && ie !== d && console.warn("The Google Maps JavaScript API has already been loaded with different parameters. The new parameters will be ignored. If you need to use different parameters, please refresh the page.");
200
200
  const M = ["core", "maps", ...a];
201
- if (!((C = (b = window.google) === null || b === void 0 ? void 0 : b.maps) === null || C === void 0) && C.importLibrary) {
202
- re || ae(z.LOADED), yield Promise.all(M.map((v) => p(v))), n && n();
201
+ if (!((E = (b = window.google) === null || b === void 0 ? void 0 : b.maps) === null || E === void 0) && E.importLibrary) {
202
+ ie || se(B.LOADED), yield Promise.all(M.map((v) => p(v))), n && n();
203
203
  return;
204
204
  }
205
- if (V === z.LOADING || V === z.LOADED) {
206
- V === z.LOADED && n && n();
205
+ if (G === B.LOADING || G === B.LOADED) {
206
+ G === B.LOADED && n && n();
207
207
  return;
208
208
  }
209
- re = d, ae(z.LOADING);
210
- const A = Object.fromEntries(Object.entries({
209
+ ie = d, se(B.LOADING);
210
+ const P = Object.fromEntries(Object.entries({
211
211
  key: o,
212
212
  v: r,
213
213
  libraries: a,
@@ -215,30 +215,30 @@ function Pn(e) {
215
215
  language: s,
216
216
  authReferrerPolicy: g
217
217
  }).filter(([, v]) => v !== void 0));
218
- c !== void 0 && c >= 0 && c <= 999 && (A.channel = String(c)), l === void 0 ? A.solutionChannel = Cn : l !== "" && (A.solutionChannel = l), yn(A), yield Promise.all(M.map((v) => p(v))), ae(z.LOADED), n && n();
218
+ c !== void 0 && c >= 0 && c <= 999 && (P.channel = String(c)), l === void 0 ? P.solutionChannel = Mn : l !== "" && (P.solutionChannel = l), Cn(P), yield Promise.all(M.map((v) => p(v))), se(B.LOADED), n && n();
219
219
  } catch (M) {
220
- ae(z.FAILED), t ? t(M) : console.error("The Google Maps JavaScript API failed to load.", M);
220
+ se(B.FAILED), t ? t(M) : console.error("The Google Maps JavaScript API failed to load.", M);
221
221
  }
222
222
  });
223
223
  },
224
224
  // eslint-disable-next-line react-hooks/exhaustive-deps
225
225
  [d, n, t, p, a]
226
- ), E(() => {
227
- if (m !== z.LOADED)
226
+ ), C(() => {
227
+ if (f !== B.LOADED)
228
228
  return;
229
229
  const b = google.maps.Settings.getInstance();
230
- f ? b.fetchAppCheckToken = f : b.fetchAppCheckToken && (b.fetchAppCheckToken = null);
231
- }, [m, f]), {
232
- status: m,
230
+ m ? b.fetchAppCheckToken = m : b.fetchAppCheckToken && (b.fetchAppCheckToken = null);
231
+ }, [f, m]), {
232
+ status: f,
233
233
  loadedLibraries: h,
234
234
  importLibrary: p
235
235
  };
236
236
  }
237
- function An(e) {
238
- return N(() => e.disableUsageAttribution ? null : On, [e.disableUsageAttribution]);
237
+ function Ln(e) {
238
+ return N(() => e.disableUsageAttribution ? null : wn, [e.disableUsageAttribution]);
239
239
  }
240
- const Tn = (e) => {
241
- const { children: n } = e, t = j(e, ["children"]), { mapInstances: o, addMapInstance: r, removeMapInstance: a, clearMapInstances: i } = Mn(), { map3dInstances: s, addMap3DInstance: g, removeMap3DInstance: c, clearMap3DInstances: l } = wn(), { status: f, loadedLibraries: m, importLibrary: u } = Pn(t), h = An(t), y = N(() => ({
240
+ const Dn = (e) => {
241
+ const { children: n } = e, t = z(e, ["children"]), { mapInstances: o, addMapInstance: r, removeMapInstance: a, clearMapInstances: i } = Pn(), { map3dInstances: s, addMap3DInstance: g, removeMap3DInstance: c, clearMap3DInstances: l } = An(), { status: m, loadedLibraries: f, importLibrary: u } = Tn(t), h = Ln(t), y = N(() => ({
242
242
  mapInstances: o,
243
243
  addMapInstance: r,
244
244
  removeMapInstance: a,
@@ -247,8 +247,8 @@ const Tn = (e) => {
247
247
  addMap3DInstance: g,
248
248
  removeMap3DInstance: c,
249
249
  clearMap3DInstances: l,
250
- status: f,
251
- loadedLibraries: m,
250
+ status: m,
251
+ loadedLibraries: f,
252
252
  importLibrary: u,
253
253
  internalUsageAttributionIds: h
254
254
  }), [
@@ -260,27 +260,27 @@ const Tn = (e) => {
260
260
  g,
261
261
  c,
262
262
  l,
263
- f,
264
263
  m,
264
+ f,
265
265
  u,
266
266
  h
267
267
  ]);
268
- return P.createElement(Q.Provider, { value: y }, n);
268
+ return A.createElement(Q.Provider, { value: y }, n);
269
269
  };
270
- function Ln(e, n) {
271
- for (const t of _n) {
272
- const o = n[t], r = Ue[t];
273
- E(() => {
270
+ function Sn(e, n) {
271
+ for (const t of Nn) {
272
+ const o = n[t], r = Ge[t];
273
+ C(() => {
274
274
  if (!e || !o)
275
275
  return;
276
276
  const a = google.maps.event.addListener(e, r, (i) => {
277
- o(Dn(r, e, i));
277
+ o(kn(r, e, i));
278
278
  });
279
279
  return () => a.remove();
280
280
  }, [e, r, o]);
281
281
  }
282
282
  }
283
- function Dn(e, n, t) {
283
+ function kn(e, n, t) {
284
284
  var o;
285
285
  const r = {
286
286
  type: e,
@@ -290,7 +290,7 @@ function Dn(e, n, t) {
290
290
  stop: () => {
291
291
  }
292
292
  };
293
- if (Sn.includes(e)) {
293
+ if (_n.includes(e)) {
294
294
  const a = r, i = n.getCenter(), s = n.getZoom(), g = n.getHeading() || 0, c = n.getTilt() || 0, l = n.getBounds();
295
295
  return (!i || !l || !Number.isFinite(s)) && console.warn("[createEvent] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"), a.detail = {
296
296
  center: (i == null ? void 0 : i.toJSON()) || { lat: 0, lng: 0 },
@@ -304,7 +304,7 @@ function Dn(e, n, t) {
304
304
  west: -180
305
305
  }
306
306
  }, a;
307
- } else if (kn.includes(e)) {
307
+ } else if (In.includes(e)) {
308
308
  if (!t)
309
309
  throw new Error("[createEvent] mouse events must provide a srcEvent");
310
310
  const a = r;
@@ -315,7 +315,7 @@ function Dn(e, n, t) {
315
315
  }
316
316
  return r;
317
317
  }
318
- const Ue = {
318
+ const Ge = {
319
319
  onBoundsChanged: "bounds_changed",
320
320
  onCenterChanged: "center_changed",
321
321
  onClick: "click",
@@ -341,31 +341,31 @@ const Ue = {
341
341
  // since that is going to be fired in every situation where the camera is
342
342
  // updated.
343
343
  onCameraChanged: "bounds_changed"
344
- }, Sn = [
344
+ }, _n = [
345
345
  "bounds_changed",
346
346
  "center_changed",
347
347
  "heading_changed",
348
348
  "tilt_changed",
349
349
  "zoom_changed"
350
- ], kn = [
350
+ ], In = [
351
351
  "click",
352
352
  "contextmenu",
353
353
  "dblclick",
354
354
  "mousemove",
355
355
  "mouseout",
356
356
  "mouseover"
357
- ], _n = Object.keys(Ue);
358
- function oe(e, n) {
359
- const t = F(e);
357
+ ], Nn = Object.keys(Ge);
358
+ function ae(e, n) {
359
+ const t = U(e);
360
360
  return n(e, t.current) || (t.current = e), t.current;
361
361
  }
362
- function In(e, n, t) {
363
- E(e, [oe(n, t)]);
362
+ function xn(e, n, t) {
363
+ C(e, [ae(n, t)]);
364
364
  }
365
- function He(e, n) {
366
- In(e, n, te);
365
+ function Je(e, n) {
366
+ xn(e, n, re);
367
367
  }
368
- const Nn = /* @__PURE__ */ new Set([
368
+ const Rn = /* @__PURE__ */ new Set([
369
369
  "backgroundColor",
370
370
  "clickableIcons",
371
371
  "controlSize",
@@ -402,19 +402,19 @@ const Nn = /* @__PURE__ */ new Set([
402
402
  "zoomControl",
403
403
  "zoomControlOptions"
404
404
  ]);
405
- function xn(e, n) {
405
+ function jn(e, n) {
406
406
  const t = {}, o = Object.keys(n);
407
407
  for (const r of o)
408
- Nn.has(r) && (t[r] = n[r]);
409
- He(() => {
408
+ Rn.has(r) && (t[r] = n[r]);
409
+ Je(() => {
410
410
  e && e.setOptions(t);
411
411
  }, [t]);
412
412
  }
413
- function Ve() {
413
+ function Ze() {
414
414
  var e;
415
- return ((e = B(Q)) === null || e === void 0 ? void 0 : e.status) || z.NOT_LOADED;
415
+ return ((e = F(Q)) === null || e === void 0 ? void 0 : e.status) || B.NOT_LOADED;
416
416
  }
417
- function Rn(e, n) {
417
+ function zn(e, n) {
418
418
  const { viewport: t, viewState: o } = n, r = !!t;
419
419
  return X(() => {
420
420
  if (!e || !o)
@@ -428,19 +428,19 @@ function Rn(e, n) {
428
428
  });
429
429
  }, [e, o]), r;
430
430
  }
431
- function jn(e) {
431
+ function Bn(e) {
432
432
  return !e || typeof e != "object" || !("lat" in e && "lng" in e) ? !1 : Number.isFinite(e.lat) && Number.isFinite(e.lng);
433
433
  }
434
- function Ge(e, n) {
434
+ function $e(e, n) {
435
435
  if (!e || !n)
436
436
  return !1;
437
- const t = le(e), o = le(n);
437
+ const t = de(e), o = de(n);
438
438
  return !(t.lat !== o.lat || t.lng !== o.lng);
439
439
  }
440
- function le(e) {
441
- return jn(e) ? e : e.toJSON();
440
+ function de(e) {
441
+ return Bn(e) ? e : e.toJSON();
442
442
  }
443
- function ke(e) {
443
+ function Ne(e) {
444
444
  if ("north" in e && "south" in e && "east" in e && "west" in e)
445
445
  return e;
446
446
  const n = e.getNorthEast().toJSON(), t = e.getSouthWest().toJSON();
@@ -451,36 +451,36 @@ function ke(e) {
451
451
  west: t.lng
452
452
  };
453
453
  }
454
- function zn(e, n) {
454
+ function Fn(e, n) {
455
455
  if (!e || !n)
456
456
  return !1;
457
- const t = ke(e), o = ke(n);
457
+ const t = Ne(e), o = Ne(n);
458
458
  return t.north === o.north && t.south === o.south && t.east === o.east && t.west === o.west;
459
459
  }
460
- function Je(e, n) {
460
+ function qe(e, n) {
461
461
  if (!e || !n)
462
462
  return e === n;
463
463
  const t = "getArray" in n ? n.getArray() : n;
464
464
  if (e.length !== t.length)
465
465
  return !1;
466
466
  for (let o = 0; o < e.length; o++)
467
- if (!Ge(e[o], t[o]))
467
+ if (!$e(e[o], t[o]))
468
468
  return !1;
469
469
  return !0;
470
470
  }
471
- function Bn(e, n) {
471
+ function Un(e, n) {
472
472
  if (!e || !n)
473
473
  return e === n;
474
474
  const t = "getArray" in n ? n.getArray().map((o) => o.getArray()) : n;
475
475
  if (e.length !== t.length)
476
476
  return !1;
477
477
  for (let o = 0; o < e.length; o++)
478
- if (!Je(e[o], t[o]))
478
+ if (!qe(e[o], t[o]))
479
479
  return !1;
480
480
  return !0;
481
481
  }
482
- function Fn(e, n, t) {
483
- const o = t.center ? le(t.center) : null;
482
+ function Hn(e, n, t) {
483
+ const o = t.center ? de(t.center) : null;
484
484
  let r = null, a = null;
485
485
  o && Number.isFinite(o.lat) && Number.isFinite(o.lng) && (r = o.lat, a = o.lng);
486
486
  const i = Number.isFinite(t.zoom) ? t.zoom : null, s = Number.isFinite(t.heading) ? t.heading : null, g = Number.isFinite(t.tilt) ? t.tilt : null;
@@ -492,7 +492,7 @@ function Fn(e, n, t) {
492
492
  r !== null && a !== null && (n.current.center.lat !== r || n.current.center.lng !== a) && (c.center = { lat: r, lng: a }, l = !0), i !== null && n.current.zoom !== i && (c.zoom = i, l = !0), s !== null && n.current.heading !== s && (c.heading = s, l = !0), g !== null && n.current.tilt !== g && (c.tilt = g, l = !0), l && e.moveCamera(c);
493
493
  });
494
494
  }
495
- const Un = () => {
495
+ const Vn = () => {
496
496
  const e = {
497
497
  position: "absolute",
498
498
  top: 0,
@@ -509,31 +509,31 @@ const Un = () => {
509
509
  background: "#dddddd",
510
510
  padding: "1rem 1.5rem"
511
511
  };
512
- return P.createElement(
512
+ return A.createElement(
513
513
  "div",
514
514
  { style: e },
515
- P.createElement("h2", null, "Error: AuthFailure"),
516
- P.createElement(
515
+ A.createElement("h2", null, "Error: AuthFailure"),
516
+ A.createElement(
517
517
  "p",
518
518
  null,
519
519
  "A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",
520
- P.createElement("code", null, "APIProvider.apiKey"),
520
+ A.createElement("code", null, "APIProvider.apiKey"),
521
521
  " prop is correct. Check the error-message in the console for further details."
522
522
  )
523
523
  );
524
524
  };
525
- function ve() {
526
- const [e, n] = x(null), t = ce((o) => n(o), [n]);
525
+ function ye() {
526
+ const [e, n] = _(null), t = ne((o) => n(o), [n]);
527
527
  return [e, t];
528
528
  }
529
- function Ze() {
530
- return Ve() === z.LOADED;
529
+ function We() {
530
+ return Ze() === B.LOADED;
531
531
  }
532
- function $e() {
533
- const [, e] = ze((n) => n + 1, 0);
532
+ function Ke() {
533
+ const [, e] = Ue((n) => n + 1, 0);
534
534
  return e;
535
535
  }
536
- function Hn(e, n) {
536
+ function Gn(e, n) {
537
537
  const t = e.getCenter(), o = e.getZoom(), r = e.getHeading() || 0, a = e.getTilt() || 0, i = e.getBounds();
538
538
  (!t || !i || !Number.isFinite(o)) && console.warn("[useTrackedCameraState] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"), Object.assign(n.current, {
539
539
  center: (t == null ? void 0 : t.toJSON()) || { lat: 0, lng: 0 },
@@ -542,23 +542,23 @@ function Hn(e, n) {
542
542
  tilt: a
543
543
  });
544
544
  }
545
- function Vn(e) {
546
- const n = $e(), t = F({
545
+ function Jn(e) {
546
+ const n = Ke(), t = U({
547
547
  center: { lat: 0, lng: 0 },
548
548
  heading: 0,
549
549
  tilt: 0,
550
550
  zoom: 0
551
551
  });
552
- return E(() => {
552
+ return C(() => {
553
553
  if (!e)
554
554
  return;
555
555
  const o = google.maps.event.addListener(e, "bounds_changed", () => {
556
- Hn(e, t), n();
556
+ Gn(e, t), n();
557
557
  });
558
558
  return () => o.remove();
559
559
  }, [e, n]), t;
560
560
  }
561
- class se {
561
+ class ce {
562
562
  static has(n) {
563
563
  return this.entries[n] && this.entries[n].length > 0;
564
564
  }
@@ -569,10 +569,10 @@ class se {
569
569
  this.entries[n] || (this.entries[n] = []), this.entries[n].push(t);
570
570
  }
571
571
  }
572
- se.entries = {};
573
- function Gn(e, n) {
574
- const t = Ze(), [o, r] = x(null), [a, i] = ve(), s = Vn(o), { id: g, defaultBounds: c, defaultCenter: l, defaultZoom: f, defaultHeading: m, defaultTilt: u, reuseMaps: h, renderingType: y, colorScheme: d } = e, p = j(e, ["id", "defaultBounds", "defaultCenter", "defaultZoom", "defaultHeading", "defaultTilt", "reuseMaps", "renderingType", "colorScheme"]), b = e.zoom !== void 0 || e.defaultZoom !== void 0, C = e.center !== void 0 || e.defaultCenter !== void 0;
575
- !c && (!b || !C) && console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"), !p.center && l && (p.center = l), !p.zoom && Number.isFinite(f) && (p.zoom = f), !p.heading && Number.isFinite(m) && (p.heading = m), !p.tilt && Number.isFinite(u) && (p.tilt = u);
572
+ ce.entries = {};
573
+ function Zn(e, n) {
574
+ const t = We(), [o, r] = _(null), [a, i] = ye(), s = Jn(o), { id: g, defaultBounds: c, defaultCenter: l, defaultZoom: m, defaultHeading: f, defaultTilt: u, reuseMaps: h, renderingType: y, colorScheme: d } = e, p = z(e, ["id", "defaultBounds", "defaultCenter", "defaultZoom", "defaultHeading", "defaultTilt", "reuseMaps", "renderingType", "colorScheme"]), b = e.zoom !== void 0 || e.defaultZoom !== void 0, E = e.center !== void 0 || e.defaultCenter !== void 0;
575
+ !c && (!b || !E) && console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"), !p.center && l && (p.center = l), !p.zoom && Number.isFinite(m) && (p.zoom = m), !p.heading && Number.isFinite(f) && (p.heading = f), !p.tilt && Number.isFinite(u) && (p.tilt = u);
576
576
  const M = p.internalUsageAttributionIds;
577
577
  M == null ? p.internalUsageAttributionIds = n.internalUsageAttributionIds : p.internalUsageAttributionIds = [
578
578
  ...n.internalUsageAttributionIds || [],
@@ -580,27 +580,27 @@ function Gn(e, n) {
580
580
  ];
581
581
  for (const v of Object.keys(p))
582
582
  p[v] === void 0 && delete p[v];
583
- const A = F(void 0);
584
- return E(
583
+ const P = U(void 0);
584
+ return C(
585
585
  () => {
586
586
  if (!a || !t)
587
587
  return;
588
588
  const { addMapInstance: v, removeMapInstance: O } = n, { mapId: L } = e, k = `${L || "default"}:${y || "default"}:${d || "LIGHT"}`;
589
- let T, _;
590
- if (h && se.has(k) ? (_ = se.pop(k), T = _.getDiv(), a.appendChild(T), _.setOptions(p), setTimeout(() => _.moveCamera({}), 0)) : (T = document.createElement("div"), T.style.height = "100%", a.appendChild(T), _ = new google.maps.Map(T, Object.assign(Object.assign(Object.assign({}, p), y ? { renderingType: y } : {}), d ? { colorScheme: d } : {}))), r(_), v(_, g), c) {
591
- const { padding: $ } = c, q = j(c, ["padding"]);
592
- _.fitBounds(q, $);
593
- } else (!b || !C) && _.fitBounds({ east: 180, west: -180, south: -90, north: 90 });
594
- if (A.current) {
595
- const { mapId: $, cameraState: q } = A.current;
596
- $ !== L && _.moveCamera(q);
589
+ let T, x;
590
+ if (h && ce.has(k) ? (x = ce.pop(k), T = x.getDiv(), a.appendChild(T), x.setOptions(p), setTimeout(() => x.moveCamera({}), 0)) : (T = document.createElement("div"), T.style.height = "100%", a.appendChild(T), x = new google.maps.Map(T, Object.assign(Object.assign(Object.assign({}, p), y ? { renderingType: y } : {}), d ? { colorScheme: d } : {}))), r(x), v(x, g), c) {
591
+ const { padding: R } = c, q = z(c, ["padding"]);
592
+ x.fitBounds(q, R);
593
+ } else (!b || !E) && x.fitBounds({ east: 180, west: -180, south: -90, north: 90 });
594
+ if (P.current) {
595
+ const { mapId: R, cameraState: q } = P.current;
596
+ R !== L && x.moveCamera(q);
597
597
  }
598
598
  return () => {
599
- A.current = {
599
+ P.current = {
600
600
  mapId: L,
601
601
  // eslint-disable-next-line react-hooks/exhaustive-deps
602
602
  cameraState: s.current
603
- }, T.remove(), h ? se.push(k, _) : google.maps.event.clearInstanceListeners(_), r(null), O(g);
603
+ }, T.remove(), h ? ce.push(k, x) : google.maps.event.clearInstanceListeners(x), r(null), O(g);
604
604
  };
605
605
  },
606
606
  // some dependencies are ignored in the list below:
@@ -620,16 +620,16 @@ function Gn(e, n) {
620
620
  ]
621
621
  ), [o, i, s];
622
622
  }
623
- const qe = P.createContext(null), We = (e) => {
624
- const { children: n, id: t, className: o, style: r } = e, a = B(Q), i = Ve();
623
+ const Ye = A.createContext(null), Xe = (e) => {
624
+ const { children: n, id: t, className: o, style: r } = e, a = F(Q), i = Ze();
625
625
  if (!a)
626
626
  throw new Error("<Map> can only be used inside an <ApiProvider> component.");
627
- const [s, g, c] = Gn(e, a);
628
- Fn(s, c, e), Ln(s, e), xn(s, e);
629
- const l = Rn(s, e), f = !!e.controlled;
630
- E(() => {
627
+ const [s, g, c] = Zn(e, a);
628
+ Hn(s, c, e), Sn(s, e), jn(s, e);
629
+ const l = zn(s, e), m = !!e.controlled;
630
+ C(() => {
631
631
  if (s)
632
- return l && s.setOptions({ disableDefaultUI: !0 }), (l || f) && s.setOptions({
632
+ return l && s.setOptions({ disableDefaultUI: !0 }), (l || m) && s.setOptions({
633
633
  gestureHandling: "none",
634
634
  keyboardShortcuts: !1
635
635
  }), () => {
@@ -641,31 +641,31 @@ const qe = P.createContext(null), We = (e) => {
641
641
  }, [
642
642
  s,
643
643
  l,
644
- f,
644
+ m,
645
645
  e.gestureHandling,
646
646
  e.keyboardShortcuts
647
647
  ]);
648
- const m = e.center ? le(e.center) : null;
648
+ const f = e.center ? de(e.center) : null;
649
649
  let u = null, h = null;
650
- m && Number.isFinite(m.lat) && Number.isFinite(m.lng) && (u = m.lat, h = m.lng);
650
+ f && Number.isFinite(f.lat) && Number.isFinite(f.lng) && (u = f.lat, h = f.lng);
651
651
  const y = N(() => {
652
- var b, C, M;
652
+ var b, E, M;
653
653
  return {
654
654
  center: { lat: u ?? 0, lng: h ?? 0 },
655
655
  zoom: (b = e.zoom) !== null && b !== void 0 ? b : 0,
656
- heading: (C = e.heading) !== null && C !== void 0 ? C : 0,
656
+ heading: (E = e.heading) !== null && E !== void 0 ? E : 0,
657
657
  tilt: (M = e.tilt) !== null && M !== void 0 ? M : 0
658
658
  };
659
659
  }, [u, h, e.zoom, e.heading, e.tilt]);
660
660
  X(() => {
661
- if (!s || !f)
661
+ if (!s || !m)
662
662
  return;
663
663
  s.moveCamera(y);
664
664
  const b = s.addListener("bounds_changed", () => {
665
665
  s.moveCamera(y);
666
666
  });
667
667
  return () => b.remove();
668
- }, [s, f, y]);
668
+ }, [s, m, y]);
669
669
  const d = N(() => Object.assign({
670
670
  width: "100%",
671
671
  height: "100%",
@@ -673,47 +673,47 @@ const qe = P.createContext(null), We = (e) => {
673
673
  // when using deckgl, the map should be sent to the back
674
674
  zIndex: l ? -1 : 0
675
675
  }, r), [r, l]), p = N(() => ({ map: s }), [s]);
676
- return i === z.AUTH_FAILURE ? P.createElement(
676
+ return i === B.AUTH_FAILURE ? A.createElement(
677
677
  "div",
678
678
  { style: Object.assign({ position: "relative" }, o ? {} : d), className: o },
679
- P.createElement(Un, null)
680
- ) : P.createElement("div", Object.assign({ ref: g, "data-testid": "map", style: o ? void 0 : d, className: o }, t ? { id: t } : {}), s ? P.createElement(qe.Provider, { value: p }, n) : null);
679
+ A.createElement(Vn, null)
680
+ ) : A.createElement("div", Object.assign({ ref: g, "data-testid": "map", style: o ? void 0 : d, className: o }, t ? { id: t } : {}), s ? A.createElement(Ye.Provider, { value: p }, n) : null);
681
681
  };
682
- We.deckGLViewProps = !0;
683
- const _e = /* @__PURE__ */ new Set();
684
- function ee(...e) {
682
+ Xe.deckGLViewProps = !0;
683
+ const xe = /* @__PURE__ */ new Set();
684
+ function te(...e) {
685
685
  const n = JSON.stringify(e);
686
- _e.has(n) || (_e.add(n), console.error(...e));
686
+ xe.has(n) || (xe.add(n), console.error(...e));
687
687
  }
688
- const J = (e = null) => {
689
- const n = B(Q), { map: t } = B(qe) || {};
688
+ const Z = (e = null) => {
689
+ const n = F(Q), { map: t } = F(Ye) || {};
690
690
  if (n === null)
691
- return ee("useMap(): failed to retrieve APIProviderContext. Make sure that the <APIProvider> component exists and that the component you are calling `useMap()` from is a sibling of the <APIProvider>."), null;
691
+ return te("useMap(): failed to retrieve APIProviderContext. Make sure that the <APIProvider> component exists and that the component you are calling `useMap()` from is a sibling of the <APIProvider>."), null;
692
692
  const { mapInstances: o } = n;
693
693
  return e !== null ? o[e] || null : t || o.default || null;
694
694
  };
695
- function Z(e) {
696
- const n = Ze(), t = B(Q);
697
- return E(() => {
695
+ function $(e) {
696
+ const n = We(), t = F(Q);
697
+ return C(() => {
698
698
  !n || !t || t.importLibrary(e);
699
699
  }, [n, t, e]), (t == null ? void 0 : t.loadedLibraries[e]) || null;
700
700
  }
701
- var fe;
702
- const { useLayoutEffect: Jn, useRef: Zn } = je, $n = (fe = je.useInsertionEffect) !== null && fe !== void 0 ? fe : Jn;
703
- function qn() {
701
+ var me;
702
+ const { useLayoutEffect: $n, useRef: qn } = Fe, Wn = (me = Fe.useInsertionEffect) !== null && me !== void 0 ? me : $n;
703
+ function Kn() {
704
704
  throw new Error("useEffectEvent: invalid call during rendering.");
705
705
  }
706
- function Wn(e) {
707
- const n = Zn(qn);
708
- return $n(() => {
706
+ function Yn(e) {
707
+ const n = qn(Kn);
708
+ return Wn(() => {
709
709
  n.current = e;
710
710
  }, [e]), ((...t) => n.current(...t));
711
711
  }
712
- const Ke = Wn, Kn = () => {
712
+ const Qe = Yn, Xn = () => {
713
713
  };
714
714
  function D(e, n, t) {
715
- const o = Ke(t ?? Kn), r = !!t;
716
- E(() => {
715
+ const o = Qe(t ?? Xn), r = !!t;
716
+ C(() => {
717
717
  if (!e || !n || !r)
718
718
  return;
719
719
  const a = google.maps.event.addListener(e, n, o);
@@ -721,22 +721,22 @@ function D(e, n, t) {
721
721
  }, [e, n, r]);
722
722
  }
723
723
  function I(e, n, t) {
724
- E(() => {
724
+ C(() => {
725
725
  e && (e[n] = t);
726
726
  }, [e, n, t]);
727
727
  }
728
- const Yn = () => {
728
+ const Qn = () => {
729
729
  };
730
- function ye(e, n, t) {
731
- const o = Ke(t ?? Yn), r = !!t;
732
- E(() => {
730
+ function be(e, n, t) {
731
+ const o = Qe(t ?? Qn), r = !!t;
732
+ C(() => {
733
733
  if (!e || !n || !r)
734
734
  return;
735
735
  const a = o;
736
736
  return e.addEventListener(n, a), () => e.removeEventListener(n, a);
737
737
  }, [e, n, r]);
738
738
  }
739
- class Xn {
739
+ class et {
740
740
  constructor() {
741
741
  this.renderedStyles = /* @__PURE__ */ new Set(), this.styleElement = null;
742
742
  }
@@ -757,28 +757,28 @@ class Xn {
757
757
  this.styleElement && (this.styleElement.remove(), this.styleElement = null, this.renderedStyles.clear());
758
758
  }
759
759
  }
760
- const Qn = new Xn();
761
- function et(e, n) {
760
+ const nt = new et();
761
+ function tt(e, n) {
762
762
  var t;
763
763
  if (!(!((t = google == null ? void 0 : google.maps) === null || t === void 0) && t.version))
764
764
  return;
765
765
  const o = google.maps.version.split("."), r = parseInt(o[0], 10), a = parseInt(o[1], 10);
766
766
  return r > e || r === e && a >= n;
767
767
  }
768
- const Oe = P.createContext(null), nt = {
768
+ const Me = A.createContext(null), ot = {
769
769
  BOTTOM: ["50%", "100%"]
770
- }, Ye = U((e, n) => {
771
- const { children: t, style: o, className: r, anchorPoint: a } = e, [i, s] = ot(e), g = N(() => i ? { marker: i } : null, [i]);
772
- return H(n, () => i, [i]), s ? P.createElement(Oe.Provider, { value: g }, de(P.createElement(tt, { anchorPoint: a, styles: o, className: r }, t), s)) : null;
770
+ }, en = H((e, n) => {
771
+ const { children: t, style: o, className: r, anchorPoint: a } = e, [i, s] = at(e), g = N(() => i ? { marker: i } : null, [i]);
772
+ return V(n, () => i, [i]), s ? A.createElement(Me.Provider, { value: g }, ue(A.createElement(rt, { anchorPoint: a, styles: o, className: r }, t), s)) : null;
773
773
  });
774
- Ye.displayName = "AdvancedMarker";
775
- function be(e) {
774
+ en.displayName = "AdvancedMarker";
775
+ function Ce(e) {
776
776
  return e.nodeType === Node.ELEMENT_NODE;
777
777
  }
778
- const tt = ({ children: e, styles: n, className: t }) => P.createElement("div", { className: t, style: n }, e);
779
- function ot(e) {
780
- const [n, t] = x(null), [o, r] = x(null), a = J(), i = Z("marker"), { children: s, onClick: g, className: c, onMouseEnter: l, onMouseLeave: f, onDrag: m, onDragStart: u, onDragEnd: h, collisionBehavior: y, clickable: d, draggable: p, position: b, title: C, zIndex: M, anchorPoint: A, anchorLeft: v, anchorTop: O } = e, L = Ee.count(s);
781
- return E(() => {
778
+ const rt = ({ children: e, styles: n, className: t }) => A.createElement("div", { className: t, style: n }, e);
779
+ function at(e) {
780
+ const [n, t] = _(null), [o, r] = _(null), a = Z(), i = $("marker"), { children: s, onClick: g, className: c, onMouseEnter: l, onMouseLeave: m, onDrag: f, onDragStart: u, onDragEnd: h, collisionBehavior: y, clickable: d, draggable: p, position: b, title: E, zIndex: M, anchorPoint: P, anchorLeft: v, anchorTop: O } = e, L = Ee.count(s);
781
+ return C(() => {
782
782
  if (!a || !i)
783
783
  return;
784
784
  const k = new i.AdvancedMarkerElement();
@@ -787,65 +787,65 @@ function ot(e) {
787
787
  return L > 0 && (T = document.createElement("div"), k.content = T, r(T)), () => {
788
788
  k.map = null, T == null || T.remove(), t(null), r(null);
789
789
  };
790
- }, [a, i, L]), E(() => {
791
- !(n != null && n.content) || !be(n.content) || L > 0 || (n.content.className = c ?? "");
792
- }, [n, c, L]), rt(n, A, v, O, L > 0), I(n, "position", b), I(n, "title", C ?? ""), I(n, "zIndex", M), I(n, "collisionBehavior", y), E(() => {
793
- n && (p !== void 0 ? n.gmpDraggable = p : m || u || h ? n.gmpDraggable = !0 : n.gmpDraggable = !1);
794
- }, [n, p, m, h, u]), E(() => {
790
+ }, [a, i, L]), C(() => {
791
+ !(n != null && n.content) || !Ce(n.content) || L > 0 || (n.content.className = c ?? "");
792
+ }, [n, c, L]), it(n, P, v, O, L > 0), I(n, "position", b), I(n, "title", E ?? ""), I(n, "zIndex", M), I(n, "collisionBehavior", y), C(() => {
793
+ n && (p !== void 0 ? n.gmpDraggable = p : f || u || h ? n.gmpDraggable = !0 : n.gmpDraggable = !1);
794
+ }, [n, p, f, h, u]), C(() => {
795
795
  if (!n)
796
796
  return;
797
- const k = d !== void 0 ? d : !!g || !!l || !!f;
798
- n.gmpClickable = k, k && (n != null && n.content) && be(n.content) && (n.content.style.pointerEvents = "all", g && (n.content.style.cursor = "pointer"));
799
- }, [n, d, g, l, f]), D(n, "click", g), D(n, "drag", m), D(n, "dragstart", u), D(n, "dragend", h), ye(n == null ? void 0 : n.element, "mouseenter", l), ye(n == null ? void 0 : n.element, "mouseleave", f), [n, o];
797
+ const k = d !== void 0 ? d : !!g || !!l || !!m;
798
+ n.gmpClickable = k, k && (n != null && n.content) && Ce(n.content) && (n.content.style.pointerEvents = "all", g && (n.content.style.cursor = "pointer"));
799
+ }, [n, d, g, l, m]), D(n, "click", g), D(n, "drag", f), D(n, "dragstart", u), D(n, "dragend", h), be(n == null ? void 0 : n.element, "mouseenter", l), be(n == null ? void 0 : n.element, "mouseleave", m), [n, o];
800
800
  }
801
- function rt(e, n, t, o, r) {
802
- E(() => {
801
+ function it(e, n, t, o, r) {
802
+ C(() => {
803
803
  if (!e || !r)
804
804
  return;
805
- const a = et(3, 62), i = e.content;
806
- if (!(!i || !be(i))) {
805
+ const a = tt(3, 62), i = e.content;
806
+ if (!(!i || !Ce(i))) {
807
807
  if (t !== void 0 || o !== void 0) {
808
808
  a || console.warn(`AdvancedMarker: The anchorLeft and anchorTop props are only supported in Google Maps API version 3.62 and above. The current version is ${google.maps.version}.`), e.anchorLeft = t, e.anchorTop = o, n !== void 0 && console.warn("AdvancedMarker: the anchorPoint prop is ignored when anchorLeft and/or anchorTop are set.");
809
809
  return;
810
810
  }
811
811
  if (n !== void 0) {
812
- const [s, g] = n ?? nt.BOTTOM, c = `calc(-1 * ${s})`, l = `calc(-1 * ${g})`;
813
- a ? (e.anchorLeft = c, e.anchorTop = l, i.style.transform = "") : (i.style.transform = `translate(50%, 100%) translate(${c}, ${l})`, e.dataset.origin = "rgm", Qn.addAdvancedMarkerPointerEventsOverwrite());
812
+ const [s, g] = n ?? ot.BOTTOM, c = `calc(-1 * ${s})`, l = `calc(-1 * ${g})`;
813
+ a ? (e.anchorLeft = c, e.anchorTop = l, i.style.transform = "") : (i.style.transform = `translate(50%, 100%) translate(${c}, ${l})`, e.dataset.origin = "rgm", nt.addAdvancedMarkerPointerEventsOverwrite());
814
814
  }
815
815
  }
816
816
  }, [e, n, t, o, r]);
817
817
  }
818
- function at(e) {
818
+ function st(e) {
819
819
  var n, t, o;
820
- const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onRadiusChanged: l, onCenterChanged: f, center: m, defaultCenter: u, radius: h, defaultRadius: y } = e, d = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onRadiusChanged", "onCenterChanged", "center", "defaultCenter", "radius", "defaultRadius"]), [p, b] = x(null), C = J(), M = oe(Object.assign(Object.assign({}, d), { clickable: (n = d.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = d.draggable) !== null && t !== void 0 ? t : !!(a || i || s || f), editable: (o = d.editable) !== null && o !== void 0 ? o : !!l }), te);
821
- return E(() => {
822
- if (!C) {
823
- C === void 0 && console.error("<Circle> has to be inside a Map component.");
820
+ const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onRadiusChanged: l, onCenterChanged: m, center: f, defaultCenter: u, radius: h, defaultRadius: y } = e, d = z(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onRadiusChanged", "onCenterChanged", "center", "defaultCenter", "radius", "defaultRadius"]), [p, b] = _(null), E = Z(), M = ae(Object.assign(Object.assign({}, d), { clickable: (n = d.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = d.draggable) !== null && t !== void 0 ? t : !!(a || i || s || m), editable: (o = d.editable) !== null && o !== void 0 ? o : !!l }), re);
821
+ return C(() => {
822
+ if (!E) {
823
+ E === void 0 && console.error("<Circle> has to be inside a Map component.");
824
824
  return;
825
825
  }
826
- const A = new google.maps.Circle(Object.assign(Object.assign({}, M), { center: m ?? u, radius: h ?? y }));
827
- return A.setMap(C), b(A), () => {
828
- A.setMap(null), b(null);
826
+ const P = new google.maps.Circle(Object.assign(Object.assign({}, M), { center: f ?? u, radius: h ?? y }));
827
+ return P.setMap(E), b(P), () => {
828
+ P.setMap(null), b(null);
829
829
  };
830
- }, [C]), D(p, "click", r), D(p, "drag", a), D(p, "dragstart", i), D(p, "dragend", s), D(p, "mouseover", g), D(p, "mouseout", c), D(p, "radius_changed", l ? () => {
831
- const A = p == null ? void 0 : p.getRadius();
832
- A !== void 0 && l(A);
833
- } : null), D(p, "center_changed", f ? () => {
834
- f(p == null ? void 0 : p.getCenter());
835
- } : null), E(() => {
830
+ }, [E]), D(p, "click", r), D(p, "drag", a), D(p, "dragstart", i), D(p, "dragend", s), D(p, "mouseover", g), D(p, "mouseout", c), D(p, "radius_changed", l ? () => {
831
+ const P = p == null ? void 0 : p.getRadius();
832
+ P !== void 0 && l(P);
833
+ } : null), D(p, "center_changed", m ? () => {
834
+ m(p == null ? void 0 : p.getCenter());
835
+ } : null), C(() => {
836
836
  p && p.setOptions(M);
837
- }, [p, M]), E(() => {
838
- !p || !m || Ge(m, p.getCenter()) || p.setCenter(m);
839
- }, [p, m]), E(() => {
837
+ }, [p, M]), C(() => {
838
+ !p || !f || $e(f, p.getCenter()) || p.setCenter(f);
839
+ }, [p, f]), C(() => {
840
840
  !p || h === void 0 || h !== p.getRadius() && p.setRadius(h);
841
841
  }, [p, h]), p;
842
842
  }
843
- const it = U((e, n) => {
844
- const t = at(e);
845
- return H(n, () => t, [t]), P.createElement(P.Fragment, null);
843
+ const lt = H((e, n) => {
844
+ const t = st(e);
845
+ return V(n, () => t, [t]), A.createElement(A.Fragment, null);
846
846
  });
847
- it.displayName = "Circle";
848
- function st(e, n, t) {
847
+ lt.displayName = "Circle";
848
+ function ct(e, n, t) {
849
849
  if (n != null && typeof n != "object")
850
850
  throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");
851
851
  const o = e.style;
@@ -853,7 +853,7 @@ function st(e, n, t) {
853
853
  if (n == null)
854
854
  return;
855
855
  for (const r in n)
856
- n.hasOwnProperty(r) && Ie(o, r, n[r]);
856
+ n.hasOwnProperty(r) && Re(o, r, n[r]);
857
857
  return;
858
858
  }
859
859
  for (const r in t)
@@ -861,14 +861,14 @@ function st(e, n, t) {
861
861
  if (n != null)
862
862
  for (const r in n) {
863
863
  const a = n[r];
864
- n.hasOwnProperty(r) && t[r] !== a && Ie(o, r, a);
864
+ n.hasOwnProperty(r) && t[r] !== a && Re(o, r, a);
865
865
  }
866
866
  }
867
- function Ie(e, n, t) {
867
+ function Re(e, n, t) {
868
868
  const o = n.indexOf("--") === 0;
869
- t == null || typeof t == "boolean" || t === "" ? o ? e.setProperty(n, "") : n === "float" ? e.cssFloat = "" : e[n] = "" : o ? e.setProperty(n, t) : typeof t == "number" && t !== 0 && !ct(n) ? e[n] = t + "px" : n === "float" ? e.cssFloat = t : e[n] = ("" + t).trim();
869
+ t == null || typeof t == "boolean" || t === "" ? o ? e.setProperty(n, "") : n === "float" ? e.cssFloat = "" : e[n] = "" : o ? e.setProperty(n, t) : typeof t == "number" && t !== 0 && !ut(n) ? e[n] = t + "px" : n === "float" ? e.cssFloat = t : e[n] = ("" + t).trim();
870
870
  }
871
- const lt = /* @__PURE__ */ new Set([
871
+ const dt = /* @__PURE__ */ new Set([
872
872
  "animationIterationCount",
873
873
  "aspectRatio",
874
874
  "borderImageOutset",
@@ -915,45 +915,45 @@ const lt = /* @__PURE__ */ new Set([
915
915
  "strokeOpacity",
916
916
  "strokeWidth"
917
917
  ]);
918
- function ct(e) {
919
- return lt.has(e);
918
+ function ut(e) {
919
+ return dt.has(e);
920
920
  }
921
- function Ne(e) {
921
+ function je(e) {
922
922
  const n = e.getPaths(), t = [];
923
923
  for (let o = 0; o < n.getLength(); o++)
924
924
  t.push(n.getAt(o).getArray());
925
925
  return t;
926
926
  }
927
- function dt(e) {
927
+ function gt(e) {
928
928
  var n, t, o;
929
- const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathsChanged: l, polygon: f, encodedPaths: m, paths: u, defaultPaths: h } = e, y = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathsChanged", "polygon", "encodedPaths", "paths", "defaultPaths"]), [d, p] = x(null), b = J(), C = Z("geometry"), M = F(!1), A = oe(Object.assign(Object.assign({}, y), { clickable: (n = y.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = y.draggable) !== null && t !== void 0 ? t : !!(a || i || s || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), te);
930
- return E(() => {
929
+ const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathsChanged: l, polygon: m, encodedPaths: f, paths: u, defaultPaths: h } = e, y = z(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathsChanged", "polygon", "encodedPaths", "paths", "defaultPaths"]), [d, p] = _(null), b = Z(), E = $("geometry"), M = U(!1), P = ae(Object.assign(Object.assign({}, y), { clickable: (n = y.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = y.draggable) !== null && t !== void 0 ? t : !!(a || i || s || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), re);
930
+ return C(() => {
931
931
  if (!b) {
932
932
  b === void 0 && console.error("<Polygon> has to be inside a Map component.");
933
933
  return;
934
934
  }
935
935
  let v;
936
- if (f) {
937
- v = f;
936
+ if (m) {
937
+ v = m;
938
938
  const O = u ?? h;
939
- O && Array.isArray(O) && v.setPaths(O), v.setOptions(A);
939
+ O && Array.isArray(O) && v.setPaths(O), v.setOptions(P);
940
940
  } else {
941
- const O = u ?? h, L = Object.assign({}, A);
941
+ const O = u ?? h, L = Object.assign({}, P);
942
942
  O && Array.isArray(O) && (L.paths = O), v = new google.maps.Polygon(L);
943
943
  }
944
944
  return v.setMap(b), p(v), () => {
945
945
  v.setMap(null), p(null);
946
946
  };
947
- }, [b, f]), D(d, "click", r), D(d, "drag", a), D(d, "dragstart", i), D(d, "mouseover", g), D(d, "mouseout", c), D(d, "dragend", (v) => {
948
- s == null || s(v), l && d && !M.current && l(Ne(d));
949
- }), E(() => {
947
+ }, [b, m]), D(d, "click", r), D(d, "drag", a), D(d, "dragstart", i), D(d, "mouseover", g), D(d, "mouseout", c), D(d, "dragend", (v) => {
948
+ s == null || s(v), l && d && !M.current && l(je(d));
949
+ }), C(() => {
950
950
  if (!d || !l)
951
951
  return;
952
952
  const v = [], O = d.getPaths();
953
953
  if (typeof O.getLength != "function" || typeof O.getAt != "function")
954
954
  return;
955
955
  const L = () => {
956
- M.current || l(Ne(d));
956
+ M.current || l(je(d));
957
957
  }, k = (T) => {
958
958
  v.push(google.maps.event.addListener(T, "insert_at", L)), v.push(google.maps.event.addListener(T, "remove_at", L)), v.push(google.maps.event.addListener(T, "set_at", L));
959
959
  };
@@ -970,52 +970,52 @@ function dt(e) {
970
970
  d,
971
971
  l,
972
972
  u,
973
- m,
974
- A.editable,
975
- A.draggable
976
- ]), E(() => {
977
- d && d.setOptions(A);
978
- }, [d, A]), E(() => {
973
+ f,
974
+ P.editable,
975
+ P.draggable
976
+ ]), C(() => {
977
+ d && d.setOptions(P);
978
+ }, [d, P]), C(() => {
979
979
  if (!d || !u || !Array.isArray(u))
980
980
  return;
981
981
  const v = u[0], O = Array.isArray(v) ? u : [u], L = d.getPaths();
982
- Bn(O, L) || (M.current = !0, d.setPaths(u), M.current = !1);
983
- }, [d, u]), E(() => {
984
- if (!d || !m || !C)
982
+ Un(O, L) || (M.current = !0, d.setPaths(u), M.current = !1);
983
+ }, [d, u]), C(() => {
984
+ if (!d || !f || !E)
985
985
  return;
986
986
  M.current = !0;
987
- const v = m.map((O) => C.encoding.decodePath(O));
987
+ const v = f.map((O) => E.encoding.decodePath(O));
988
988
  d.setPaths(v), M.current = !1;
989
- }, [d, m, C]), d;
989
+ }, [d, f, E]), d;
990
990
  }
991
- const ut = U((e, n) => {
992
- const t = dt(e);
993
- return H(n, () => t, [t]), P.createElement(P.Fragment, null);
991
+ const ft = H((e, n) => {
992
+ const t = gt(e);
993
+ return V(n, () => t, [t]), A.createElement(A.Fragment, null);
994
994
  });
995
- ut.displayName = "Polygon";
996
- function gt(e) {
995
+ ft.displayName = "Polygon";
996
+ function mt(e) {
997
997
  var n, t, o;
998
- const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathChanged: l, polyline: f, encodedPath: m, path: u, defaultPath: h } = e, y = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathChanged", "polyline", "encodedPath", "path", "defaultPath"]), [d, p] = x(null), b = J(), C = Z("geometry"), M = F(!1), A = oe(Object.assign(Object.assign({}, y), { clickable: (n = y.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = y.draggable) !== null && t !== void 0 ? t : !!(a || i || s || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), te);
999
- return E(() => {
998
+ const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathChanged: l, polyline: m, encodedPath: f, path: u, defaultPath: h } = e, y = z(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathChanged", "polyline", "encodedPath", "path", "defaultPath"]), [d, p] = _(null), b = Z(), E = $("geometry"), M = U(!1), P = ae(Object.assign(Object.assign({}, y), { clickable: (n = y.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = y.draggable) !== null && t !== void 0 ? t : !!(a || i || s || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), re);
999
+ return C(() => {
1000
1000
  if (!b) {
1001
1001
  b === void 0 && console.error("<Polyline> has to be inside a Map component.");
1002
1002
  return;
1003
1003
  }
1004
1004
  let v;
1005
- if (f) {
1006
- v = f;
1005
+ if (m) {
1006
+ v = m;
1007
1007
  const O = u ?? h;
1008
- O && Array.isArray(O) && v.setPath(O), v.setOptions(A);
1008
+ O && Array.isArray(O) && v.setPath(O), v.setOptions(P);
1009
1009
  } else {
1010
- const O = u ?? h, L = Object.assign({}, A);
1010
+ const O = u ?? h, L = Object.assign({}, P);
1011
1011
  O && Array.isArray(O) && (L.path = O), v = new google.maps.Polyline(L);
1012
1012
  }
1013
1013
  return v.setMap(b), p(v), () => {
1014
1014
  v.setMap(null), p(null);
1015
1015
  };
1016
- }, [b, f]), D(d, "click", r), D(d, "drag", a), D(d, "dragstart", i), D(d, "mouseover", g), D(d, "mouseout", c), D(d, "dragend", (v) => {
1016
+ }, [b, m]), D(d, "click", r), D(d, "drag", a), D(d, "dragstart", i), D(d, "mouseover", g), D(d, "mouseout", c), D(d, "dragend", (v) => {
1017
1017
  s == null || s(v), l && d && !M.current && l(d.getPath().getArray());
1018
- }), E(() => {
1018
+ }), C(() => {
1019
1019
  if (!d || !l)
1020
1020
  return;
1021
1021
  const v = d.getPath();
@@ -1035,37 +1035,37 @@ function gt(e) {
1035
1035
  d,
1036
1036
  l,
1037
1037
  u,
1038
- m,
1039
- A.editable,
1040
- A.draggable
1041
- ]), E(() => {
1042
- d && d.setOptions(A);
1043
- }, [d, A]), E(() => {
1038
+ f,
1039
+ P.editable,
1040
+ P.draggable
1041
+ ]), C(() => {
1042
+ d && d.setOptions(P);
1043
+ }, [d, P]), C(() => {
1044
1044
  if (!d || !u)
1045
1045
  return;
1046
1046
  const v = d.getPath();
1047
- Je(u, v) || (M.current = !0, d.setPath(u), M.current = !1);
1048
- }, [d, u]), E(() => {
1049
- if (!d || !m || !C)
1047
+ qe(u, v) || (M.current = !0, d.setPath(u), M.current = !1);
1048
+ }, [d, u]), C(() => {
1049
+ if (!d || !f || !E)
1050
1050
  return;
1051
1051
  M.current = !0;
1052
- const v = C.encoding.decodePath(m);
1052
+ const v = E.encoding.decodePath(f);
1053
1053
  d.setPath(v), M.current = !1;
1054
- }, [d, m, C]), d;
1054
+ }, [d, f, E]), d;
1055
1055
  }
1056
- const ft = U((e, n) => {
1057
- const t = gt(e);
1058
- return H(n, () => t, [t]), P.createElement(P.Fragment, null);
1056
+ const pt = H((e, n) => {
1057
+ const t = mt(e);
1058
+ return V(n, () => t, [t]), A.createElement(A.Fragment, null);
1059
1059
  });
1060
- ft.displayName = "Polyline";
1061
- const mt = {
1060
+ pt.displayName = "Polyline";
1061
+ const ht = {
1062
1062
  center: { lat: 0, lng: 0, altitude: 0 },
1063
1063
  range: 0,
1064
1064
  heading: 0,
1065
1065
  tilt: 0,
1066
1066
  roll: 0
1067
- }, pt = ["center", "range", "heading", "tilt", "roll"];
1068
- function ht(e, n, t) {
1067
+ }, vt = ["center", "range", "heading", "tilt", "roll"];
1068
+ function yt(e, n, t) {
1069
1069
  const o = e[t];
1070
1070
  if (o != null)
1071
1071
  if (t === "center") {
@@ -1074,15 +1074,15 @@ function ht(e, n, t) {
1074
1074
  } else
1075
1075
  n.current[t] = o;
1076
1076
  }
1077
- function vt(e) {
1078
- const n = $e(), t = F(Object.assign({}, mt));
1079
- return E(() => {
1077
+ function bt(e) {
1078
+ const n = Ke(), t = U(Object.assign({}, ht));
1079
+ return C(() => {
1080
1080
  if (!e)
1081
1081
  return;
1082
1082
  const o = [];
1083
- for (const r of pt) {
1083
+ for (const r of vt) {
1084
1084
  const a = `gmp-${r}change`, i = () => {
1085
- ht(e, t, r), n();
1085
+ yt(e, t, r), n();
1086
1086
  };
1087
1087
  e.addEventListener(a, i), o.push(() => e.removeEventListener(a, i));
1088
1088
  }
@@ -1092,21 +1092,21 @@ function vt(e) {
1092
1092
  };
1093
1093
  }, [e, n]), t;
1094
1094
  }
1095
- function yt(e) {
1096
- const n = Z("maps3d"), [t, o] = x(!1), [, r] = ve(), [a, i] = ve(), s = vt(a);
1097
- return E(() => {
1095
+ function Ct(e) {
1096
+ const n = $("maps3d"), [t, o] = _(!1), [, r] = ye(), [a, i] = ye(), s = bt(a);
1097
+ return C(() => {
1098
1098
  customElements.whenDefined("gmp-map-3d").then(() => {
1099
1099
  o(!0);
1100
1100
  });
1101
- }, []), E(
1101
+ }, []), C(
1102
1102
  () => {
1103
1103
  if (!a)
1104
1104
  return;
1105
1105
  const {
1106
1106
  center: c,
1107
1107
  heading: l,
1108
- tilt: f,
1109
- range: m,
1108
+ tilt: m,
1109
+ range: f,
1110
1110
  roll: u,
1111
1111
  defaultCenter: h,
1112
1112
  defaultHeading: y,
@@ -1114,24 +1114,24 @@ function yt(e) {
1114
1114
  defaultRange: p,
1115
1115
  defaultRoll: b,
1116
1116
  // Non-element props to exclude
1117
- id: C,
1117
+ id: E,
1118
1118
  style: M,
1119
- className: A,
1119
+ className: P,
1120
1120
  children: v,
1121
1121
  onCenterChanged: O,
1122
1122
  onHeadingChanged: L,
1123
1123
  onTiltChanged: k,
1124
1124
  onRangeChanged: T,
1125
- onRollChanged: _,
1126
- onCameraChanged: $,
1125
+ onRollChanged: x,
1126
+ onCameraChanged: R,
1127
1127
  onClick: q,
1128
- onSteadyChange: w,
1129
- onAnimationEnd: S,
1130
- onError: ue,
1131
- mode: $t,
1132
- gestureHandling: qt
1133
- } = e, Xe = j(e, ["center", "heading", "tilt", "range", "roll", "defaultCenter", "defaultHeading", "defaultTilt", "defaultRange", "defaultRoll", "id", "style", "className", "children", "onCenterChanged", "onHeadingChanged", "onTiltChanged", "onRangeChanged", "onRollChanged", "onCameraChanged", "onClick", "onSteadyChange", "onAnimationEnd", "onError", "mode", "gestureHandling"]), we = c ?? h, Pe = l ?? y, Ae = f ?? d, Te = m ?? p, Le = u ?? b, W = Object.assign({}, Xe);
1134
- we && (W.center = we), Pe !== void 0 && (W.heading = Pe), Ae !== void 0 && (W.tilt = Ae), Te !== void 0 && (W.range = Te), Le !== void 0 && (W.roll = Le), Object.assign(a, W);
1128
+ onSteadyChange: Pe,
1129
+ onAnimationEnd: Ae,
1130
+ onError: ge,
1131
+ mode: Te,
1132
+ gestureHandling: Le
1133
+ } = e, w = z(e, ["center", "heading", "tilt", "range", "roll", "defaultCenter", "defaultHeading", "defaultTilt", "defaultRange", "defaultRoll", "id", "style", "className", "children", "onCenterChanged", "onHeadingChanged", "onTiltChanged", "onRangeChanged", "onRollChanged", "onCameraChanged", "onClick", "onSteadyChange", "onAnimationEnd", "onError", "mode", "gestureHandling"]), S = c ?? h, ee = l ?? y, De = m ?? d, Se = f ?? p, ke = u ?? b, W = Object.assign({}, w);
1134
+ S && (W.center = S), ee !== void 0 && (W.heading = ee), De !== void 0 && (W.tilt = De), Se !== void 0 && (W.range = Se), ke !== void 0 && (W.roll = ke), Object.assign(a, W);
1135
1135
  },
1136
1136
  // this effect should only run when the map3d element first becomes
1137
1137
  // available, so we skip re-running it when other props change.
@@ -1139,25 +1139,25 @@ function yt(e) {
1139
1139
  [a]
1140
1140
  ), [a, r, i, s, !!n && t];
1141
1141
  }
1142
- function bt(e) {
1142
+ function Et(e) {
1143
1143
  return e ? "toJSON" in e && typeof e.toJSON == "function" ? e.toJSON() : e : null;
1144
1144
  }
1145
- function Et(e, n, t) {
1145
+ function Ot(e, n, t) {
1146
1146
  var o, r, a, i, s, g, c;
1147
- const l = bt(t.center), f = (o = l == null ? void 0 : l.lat) !== null && o !== void 0 ? o : null, m = (r = l == null ? void 0 : l.lng) !== null && r !== void 0 ? r : null, u = (a = l == null ? void 0 : l.altitude) !== null && a !== void 0 ? a : null, h = (i = t.range) !== null && i !== void 0 ? i : null, y = (s = t.heading) !== null && s !== void 0 ? s : null, d = (g = t.tilt) !== null && g !== void 0 ? g : null, p = (c = t.roll) !== null && c !== void 0 ? c : null;
1147
+ const l = Et(t.center), m = (o = l == null ? void 0 : l.lat) !== null && o !== void 0 ? o : null, f = (r = l == null ? void 0 : l.lng) !== null && r !== void 0 ? r : null, u = (a = l == null ? void 0 : l.altitude) !== null && a !== void 0 ? a : null, h = (i = t.range) !== null && i !== void 0 ? i : null, y = (s = t.heading) !== null && s !== void 0 ? s : null, d = (g = t.tilt) !== null && g !== void 0 ? g : null, p = (c = t.roll) !== null && c !== void 0 ? c : null;
1148
1148
  X(() => {
1149
1149
  var b;
1150
1150
  if (!e)
1151
1151
  return;
1152
- const C = n.current;
1153
- f !== null && m !== null && (C.center.lat !== f || C.center.lng !== m || u !== null && C.center.altitude !== u) && (e.center = {
1154
- lat: f,
1155
- lng: m,
1156
- altitude: (b = u ?? C.center.altitude) !== null && b !== void 0 ? b : 0
1157
- }), h !== null && C.range !== h && (e.range = h), y !== null && C.heading !== y && (e.heading = y), d !== null && C.tilt !== d && (e.tilt = d), p !== null && C.roll !== p && (e.roll = p);
1152
+ const E = n.current;
1153
+ m !== null && f !== null && (E.center.lat !== m || E.center.lng !== f || u !== null && E.center.altitude !== u) && (e.center = {
1154
+ lat: m,
1155
+ lng: f,
1156
+ altitude: (b = u ?? E.center.altitude) !== null && b !== void 0 ? b : 0
1157
+ }), h !== null && E.range !== h && (e.range = h), y !== null && E.heading !== y && (e.heading = y), d !== null && E.tilt !== d && (e.tilt = d), p !== null && E.roll !== p && (e.roll = p);
1158
1158
  });
1159
1159
  }
1160
- const xe = [
1160
+ const ze = [
1161
1161
  "gmp-centerchange",
1162
1162
  "gmp-headingchange",
1163
1163
  "gmp-tiltchange",
@@ -1179,7 +1179,7 @@ function K(e, n) {
1179
1179
  }
1180
1180
  };
1181
1181
  }
1182
- function Ct(e, n) {
1182
+ function Mt(e, n) {
1183
1183
  const t = n;
1184
1184
  return {
1185
1185
  type: "gmp-click",
@@ -1190,7 +1190,7 @@ function Ct(e, n) {
1190
1190
  }
1191
1191
  };
1192
1192
  }
1193
- function Ot(e, n) {
1193
+ function wt(e, n) {
1194
1194
  return {
1195
1195
  type: "gmp-steadychange",
1196
1196
  map3d: e,
@@ -1199,44 +1199,44 @@ function Ot(e, n) {
1199
1199
  }
1200
1200
  };
1201
1201
  }
1202
- function Mt(e, n) {
1203
- const { onCenterChanged: t, onHeadingChanged: o, onTiltChanged: r, onRangeChanged: a, onRollChanged: i, onCameraChanged: s, onClick: g, onSteadyChange: c, onAnimationEnd: l, onError: f } = n;
1204
- G(e, "gmp-centerchange", t, K), G(e, "gmp-headingchange", o, K), G(e, "gmp-tiltchange", r, K), G(e, "gmp-rangechange", a, K), G(e, "gmp-rollchange", i, K), E(() => {
1202
+ function Pt(e, n) {
1203
+ const { onCenterChanged: t, onHeadingChanged: o, onTiltChanged: r, onRangeChanged: a, onRollChanged: i, onCameraChanged: s, onClick: g, onSteadyChange: c, onAnimationEnd: l, onError: m } = n;
1204
+ J(e, "gmp-centerchange", t, K), J(e, "gmp-headingchange", o, K), J(e, "gmp-tiltchange", r, K), J(e, "gmp-rangechange", a, K), J(e, "gmp-rollchange", i, K), C(() => {
1205
1205
  if (!e || !s)
1206
1206
  return;
1207
- const m = () => {
1207
+ const f = () => {
1208
1208
  s(K(e, "camerachange"));
1209
1209
  };
1210
- for (const u of xe)
1211
- e.addEventListener(u, m);
1210
+ for (const u of ze)
1211
+ e.addEventListener(u, f);
1212
1212
  return () => {
1213
- for (const u of xe)
1214
- e.removeEventListener(u, m);
1213
+ for (const u of ze)
1214
+ e.removeEventListener(u, f);
1215
1215
  };
1216
- }, [e, s]), E(() => {
1216
+ }, [e, s]), C(() => {
1217
1217
  if (!e || !g)
1218
1218
  return;
1219
- const m = (u) => {
1220
- g(Ct(e, u));
1219
+ const f = (u) => {
1220
+ g(Mt(e, u));
1221
1221
  };
1222
- return e.addEventListener("gmp-click", m), () => e.removeEventListener("gmp-click", m);
1223
- }, [e, g]), E(() => {
1222
+ return e.addEventListener("gmp-click", f), () => e.removeEventListener("gmp-click", f);
1223
+ }, [e, g]), C(() => {
1224
1224
  if (!e || !c)
1225
1225
  return;
1226
- const m = (u) => {
1227
- c(Ot(e, u));
1226
+ const f = (u) => {
1227
+ c(wt(e, u));
1228
1228
  };
1229
- return e.addEventListener("gmp-steadychange", m), () => e.removeEventListener("gmp-steadychange", m);
1230
- }, [e, c]), G(e, "gmp-animationend", l, (m, u) => ({
1229
+ return e.addEventListener("gmp-steadychange", f), () => e.removeEventListener("gmp-steadychange", f);
1230
+ }, [e, c]), J(e, "gmp-animationend", l, (f, u) => ({
1231
1231
  type: u,
1232
- map3d: m
1233
- })), G(e, "gmp-error", f, (m, u) => ({
1232
+ map3d: f
1233
+ })), J(e, "gmp-error", m, (f, u) => ({
1234
1234
  type: u,
1235
- map3d: m
1235
+ map3d: f
1236
1236
  }));
1237
1237
  }
1238
- function G(e, n, t, o) {
1239
- E(() => {
1238
+ function J(e, n, t, o) {
1239
+ C(() => {
1240
1240
  if (!e || !t)
1241
1241
  return;
1242
1242
  const r = () => {
@@ -1245,7 +1245,7 @@ function G(e, n, t, o) {
1245
1245
  return e.addEventListener(n, r), () => e.removeEventListener(n, r);
1246
1246
  }, [e, n, t, o]);
1247
1247
  }
1248
- const wt = /* @__PURE__ */ new Set([
1248
+ const At = /* @__PURE__ */ new Set([
1249
1249
  "bounds",
1250
1250
  "defaultUIHidden",
1251
1251
  "gestureHandling",
@@ -1258,38 +1258,38 @@ const wt = /* @__PURE__ */ new Set([
1258
1258
  "minTilt",
1259
1259
  "mode"
1260
1260
  ]);
1261
- function Pt(e, n) {
1261
+ function Tt(e, n) {
1262
1262
  const t = N(() => {
1263
1263
  const o = {}, r = Object.keys(n);
1264
1264
  for (const a of r) {
1265
- if (!wt.has(a))
1265
+ if (!At.has(a))
1266
1266
  continue;
1267
1267
  const i = n[a];
1268
1268
  i !== void 0 && (o[a] = i);
1269
1269
  }
1270
1270
  return o;
1271
1271
  }, [n]);
1272
- He(() => {
1272
+ Je(() => {
1273
1273
  e && Object.assign(e, t);
1274
1274
  }, [e, t]);
1275
1275
  }
1276
- const At = P.createContext(null), Tt = {
1276
+ const Lt = A.createContext(null), Dt = {
1277
1277
  width: "100%",
1278
1278
  height: "100%",
1279
1279
  position: "relative"
1280
- }, Lt = U((e, n) => {
1281
- const { children: t, id: o, className: r, style: a } = e, i = B(Q);
1280
+ }, St = H((e, n) => {
1281
+ const { children: t, id: o, className: r, style: a } = e, i = F(Q);
1282
1282
  if (!i)
1283
1283
  throw new Error("<Map3D> can only be used inside an <APIProvider> component.");
1284
- const { addMap3DInstance: s, removeMap3DInstance: g } = i, [c, l, f, m, u] = yt(e);
1285
- Et(c, m, e), Mt(c, e), Pt(c, e), E(() => {
1284
+ const { addMap3DInstance: s, removeMap3DInstance: g } = i, [c, l, m, f, u] = Ct(e);
1285
+ Ot(c, f, e), Pt(c, e), Tt(c, e), C(() => {
1286
1286
  if (!c)
1287
1287
  return;
1288
1288
  const d = o ?? "default";
1289
1289
  return s(c, d), () => {
1290
1290
  g(d);
1291
1291
  };
1292
- }, [c, o]), H(n, () => ({
1292
+ }, [c, o]), V(n, () => ({
1293
1293
  map3d: c,
1294
1294
  flyCameraAround: (d) => {
1295
1295
  c == null || c.flyCameraAround(d);
@@ -1301,29 +1301,29 @@ const At = P.createContext(null), Tt = {
1301
1301
  c == null || c.stopCameraAnimation();
1302
1302
  }
1303
1303
  }), [c]);
1304
- const h = N(() => Object.assign(Object.assign({}, Tt), a), [a]), y = N(() => ({ map3d: c }), [c]);
1305
- return u ? P.createElement(
1304
+ const h = N(() => Object.assign(Object.assign({}, Dt), a), [a]), y = N(() => ({ map3d: c }), [c]);
1305
+ return u ? A.createElement(
1306
1306
  "div",
1307
1307
  Object.assign({ ref: l, "data-testid": "map-3d", style: r ? void 0 : h, className: r }, o ? { id: o } : {}),
1308
- P.createElement("gmp-map-3d", { ref: f, style: { width: "100%", height: "100%" } }, c && P.createElement(At.Provider, { value: y }, t))
1309
- ) : P.createElement("div", Object.assign({ ref: l, "data-testid": "map-3d", style: r ? void 0 : h, className: r }, o ? { id: o } : {}));
1308
+ A.createElement("gmp-map-3d", { ref: m, style: { width: "100%", height: "100%" } }, c && A.createElement(Lt.Provider, { value: y }, t))
1309
+ ) : A.createElement("div", Object.assign({ ref: l, "data-testid": "map-3d", style: r ? void 0 : h, className: r }, o ? { id: o } : {}));
1310
1310
  });
1311
- Lt.displayName = "Map3D";
1312
- const Me = Qe(null), Dt = U(function(n, t) {
1313
- const { children: o, onClick: r, position: a, altitudeMode: i, collisionBehavior: s, drawsWhenOccluded: g, extruded: c, label: l, sizePreserved: f, zIndex: m, title: u } = n, h = !!r, [y, d] = x(null), [p, b] = x(!1), C = N(() => {
1311
+ St.displayName = "Map3D";
1312
+ const we = nn(null), kt = H(function(n, t) {
1313
+ const { children: o, onClick: r, position: a, altitudeMode: i, collisionBehavior: s, drawsWhenOccluded: g, extruded: c, label: l, sizePreserved: m, zIndex: f, title: u } = n, h = !!r, [y, d] = _(null), [p, b] = _(!1), E = N(() => {
1314
1314
  const v = document.createElement("div");
1315
1315
  return v.style.display = "none", document.body.appendChild(v), v;
1316
1316
  }, []);
1317
- E(() => () => C.remove(), [C]);
1318
- const M = ce((v) => {
1317
+ C(() => () => E.remove(), [E]);
1318
+ const M = ne((v) => {
1319
1319
  d(v), typeof t == "function" ? t(v) : t && (t.current = v);
1320
1320
  }, [t]);
1321
- ye(y, "gmp-click", r), X(() => {
1322
- if (p || !y || !C)
1321
+ be(y, "gmp-click", r), X(() => {
1322
+ if (p || !y || !E)
1323
1323
  return;
1324
1324
  for (; y.firstChild; )
1325
1325
  y.removeChild(y.firstChild);
1326
- const v = Array.from(C.childNodes);
1326
+ const v = Array.from(E.childNodes);
1327
1327
  for (const O of v) {
1328
1328
  if (O.nodeType !== Node.ELEMENT_NODE)
1329
1329
  continue;
@@ -1334,36 +1334,36 @@ const Me = Qe(null), Dt = U(function(n, t) {
1334
1334
  } else
1335
1335
  y.appendChild(L.cloneNode(!0));
1336
1336
  }
1337
- }, [y, C, o, p]);
1338
- const A = N(() => ({ marker: y, setContentHandledExternally: b }), [y]);
1339
- return I(y, "position", a), I(y, "altitudeMode", i), I(y, "collisionBehavior", s), I(y, "drawsWhenOccluded", g), I(y, "extruded", c), I(y, "label", l), I(y, "sizePreserved", f), I(y, "zIndex", m), I(y, "title", u ?? ""), P.createElement(
1340
- Me.Provider,
1341
- { value: A },
1342
- h ? P.createElement("gmp-marker-3d-interactive", { ref: M }) : P.createElement("gmp-marker-3d", { ref: M }),
1343
- de(o, C)
1337
+ }, [y, E, o, p]);
1338
+ const P = N(() => ({ marker: y, setContentHandledExternally: b }), [y]);
1339
+ return I(y, "position", a), I(y, "altitudeMode", i), I(y, "collisionBehavior", s), I(y, "drawsWhenOccluded", g), I(y, "extruded", c), I(y, "label", l), I(y, "sizePreserved", m), I(y, "zIndex", f), I(y, "title", u ?? ""), A.createElement(
1340
+ we.Provider,
1341
+ { value: P },
1342
+ h ? A.createElement("gmp-marker-3d-interactive", { ref: M }) : A.createElement("gmp-marker-3d", { ref: M }),
1343
+ ue(o, E)
1344
1344
  );
1345
1345
  });
1346
- Dt.displayName = "Marker3D";
1347
- const St = U(function(n, t) {
1346
+ kt.displayName = "Marker3D";
1347
+ const _t = H(function(n, t) {
1348
1348
  var o;
1349
- const { children: r, headerContent: a, style: i, className: s, open: g = !0, position: c, anchor: l, anchorId: f, altitudeMode: m, lightDismissDisabled: u, autoPanDisabled: h, onClose: y } = n, [d, p] = x(null), b = F(null);
1350
- H(t, () => d, [d]), kt(d, g, y), I(d, "open", g ?? !1), I(d, "altitudeMode", m), I(d, "lightDismissDisabled", u), I(d, "autoPanDisabled", h);
1351
- const C = (o = l ?? f) !== null && o !== void 0 ? o : c;
1352
- return I(d, "positionAnchor", C), X(() => {
1353
- d && (st(d, i || null, b.current), b.current = i || null);
1354
- }, [d, i]), P.createElement(
1349
+ const { children: r, headerContent: a, style: i, className: s, open: g = !0, position: c, anchor: l, anchorId: m, altitudeMode: f, lightDismissDisabled: u, autoPanDisabled: h, onClose: y } = n, [d, p] = _(null), b = U(null);
1350
+ V(t, () => d, [d]), It(d, g, y), I(d, "open", g ?? !1), I(d, "altitudeMode", f), I(d, "lightDismissDisabled", u), I(d, "autoPanDisabled", h);
1351
+ const E = (o = l ?? m) !== null && o !== void 0 ? o : c;
1352
+ return I(d, "positionAnchor", E), X(() => {
1353
+ d && (ct(d, i || null, b.current), b.current = i || null);
1354
+ }, [d, i]), A.createElement(
1355
1355
  "gmp-popover",
1356
1356
  { ref: p, className: s },
1357
- a && P.createElement("div", { slot: "header" }, a),
1357
+ a && A.createElement("div", { slot: "header" }, a),
1358
1358
  r
1359
1359
  );
1360
1360
  });
1361
- St.displayName = "Popover";
1362
- function kt(e, n, t) {
1363
- const o = F(void 0), r = F(n);
1364
- E(() => {
1361
+ _t.displayName = "Popover";
1362
+ function It(e, n, t) {
1363
+ const o = U(void 0), r = U(n);
1364
+ C(() => {
1365
1365
  r.current = n;
1366
- }, [n]), E(() => {
1366
+ }, [n]), C(() => {
1367
1367
  if (!e || !t)
1368
1368
  return;
1369
1369
  const a = new MutationObserver((i) => {
@@ -1381,9 +1381,9 @@ function kt(e, n, t) {
1381
1381
  };
1382
1382
  }, [e, t]);
1383
1383
  }
1384
- function _t(e) {
1385
- const [n, t] = x(null), o = J(), { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c } = e, l = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut"]), { position: f, draggable: m } = l;
1386
- return E(() => {
1384
+ function Nt(e) {
1385
+ const [n, t] = _(null), o = Z(), { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c } = e, l = z(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut"]), { position: m, draggable: f } = l;
1386
+ return C(() => {
1387
1387
  if (!o) {
1388
1388
  o === void 0 && console.error("<Marker> has to be inside a Map component.");
1389
1389
  return;
@@ -1392,39 +1392,39 @@ function _t(e) {
1392
1392
  return u.setMap(o), t(u), () => {
1393
1393
  u.setMap(null), t(null);
1394
1394
  };
1395
- }, [o]), E(() => {
1395
+ }, [o]), C(() => {
1396
1396
  if (!n)
1397
1397
  return;
1398
1398
  const u = n, h = google.maps.event;
1399
- return r && h.addListener(u, "click", r), a && h.addListener(u, "drag", a), i && h.addListener(u, "dragstart", i), s && h.addListener(u, "dragend", s), g && h.addListener(u, "mouseover", g), c && h.addListener(u, "mouseout", c), n.setDraggable(!!m), () => {
1399
+ return r && h.addListener(u, "click", r), a && h.addListener(u, "drag", a), i && h.addListener(u, "dragstart", i), s && h.addListener(u, "dragend", s), g && h.addListener(u, "mouseover", g), c && h.addListener(u, "mouseout", c), n.setDraggable(!!f), () => {
1400
1400
  h.clearInstanceListeners(u);
1401
1401
  };
1402
1402
  }, [
1403
1403
  n,
1404
- m,
1404
+ f,
1405
1405
  r,
1406
1406
  a,
1407
1407
  i,
1408
1408
  s,
1409
1409
  g,
1410
1410
  c
1411
- ]), E(() => {
1411
+ ]), C(() => {
1412
1412
  n && l && n.setOptions(l);
1413
- }, [n, l]), E(() => {
1414
- m || !f || !n || n.setPosition(f);
1415
- }, [m, f, n]), n;
1413
+ }, [n, l]), C(() => {
1414
+ f || !m || !n || n.setPosition(m);
1415
+ }, [f, m, n]), n;
1416
1416
  }
1417
- const It = U((e, n) => {
1418
- const t = _t(e);
1419
- return H(n, () => t, [t]), P.createElement(P.Fragment, null);
1417
+ const xt = H((e, n) => {
1418
+ const t = Nt(e);
1419
+ return V(n, () => t, [t]), A.createElement(A.Fragment, null);
1420
1420
  });
1421
- It.displayName = "Marker";
1422
- const Nt = (e) => {
1423
- const n = B(Oe), t = B(Me), o = n == null ? void 0 : n.marker, r = t == null ? void 0 : t.marker, a = t == null ? void 0 : t.setContentHandledExternally, i = N(() => document.createElement("div"), []), s = Z("marker");
1424
- return E(() => {
1421
+ xt.displayName = "Marker";
1422
+ const Rt = (e) => {
1423
+ const n = F(Me), t = F(we), o = n == null ? void 0 : n.marker, r = t == null ? void 0 : t.marker, a = t == null ? void 0 : t.setContentHandledExternally, i = N(() => document.createElement("div"), []), s = $("marker");
1424
+ return C(() => {
1425
1425
  if (r && a)
1426
1426
  return a(!0), () => a(!1);
1427
- }, [r, a]), E(() => {
1427
+ }, [r, a]), C(() => {
1428
1428
  if (!r || !s)
1429
1429
  return;
1430
1430
  const g = Object.assign({}, e), c = new s.PinElement(g);
@@ -1432,7 +1432,7 @@ const Nt = (e) => {
1432
1432
  r.removeChild(r.firstChild);
1433
1433
  return r.append(c), () => {
1434
1434
  };
1435
- }, [r, s, i, e]), E(() => {
1435
+ }, [r, s, i, e]), C(() => {
1436
1436
  var g;
1437
1437
  if (r)
1438
1438
  return;
@@ -1440,20 +1440,20 @@ const Nt = (e) => {
1440
1440
  o === void 0 && r === void 0 && console.error("The <Pin> component can only be used inside <AdvancedMarker> or <Marker3D>.");
1441
1441
  return;
1442
1442
  }
1443
- e.glyph && e.children && ee("The <Pin> component only uses children to render the glyph if both the glyph property and children are present."), Ee.count(e.children) > 1 && ee("Passing multiple children to the <Pin> component might lead to unexpected results.");
1443
+ e.glyph && e.children && te("The <Pin> component only uses children to render the glyph if both the glyph property and children are present."), Ee.count(e.children) > 1 && te("Passing multiple children to the <Pin> component might lead to unexpected results.");
1444
1444
  const c = Object.assign({}, e), l = new google.maps.marker.PinElement(c);
1445
1445
  e.children && (l.glyph = i);
1446
- const f = (g = o.content) === null || g === void 0 ? void 0 : g.firstChild;
1447
- for (; f != null && f.firstChild; )
1448
- f.removeChild(f.firstChild);
1449
- f && f.appendChild(l.element);
1450
- }, [o, i, r, e]), de(e.children, i);
1451
- }, xt = (e) => {
1452
- const { children: n } = e, t = B(Oe), o = B(Me), r = t == null ? void 0 : t.marker, a = o == null ? void 0 : o.marker, i = o == null ? void 0 : o.setContentHandledExternally, s = N(() => document.createElement("div"), []), g = Z("marker");
1453
- return E(() => {
1446
+ const m = (g = o.content) === null || g === void 0 ? void 0 : g.firstChild;
1447
+ for (; m != null && m.firstChild; )
1448
+ m.removeChild(m.firstChild);
1449
+ m && m.appendChild(l.element);
1450
+ }, [o, i, r, e]), ue(e.children, i);
1451
+ }, jt = (e) => {
1452
+ const { children: n } = e, t = F(Me), o = F(we), r = t == null ? void 0 : t.marker, a = o == null ? void 0 : o.marker, i = o == null ? void 0 : o.setContentHandledExternally, s = N(() => document.createElement("div"), []), g = $("marker");
1453
+ return C(() => {
1454
1454
  if (a && i)
1455
1455
  return i(!0), () => i(!1);
1456
- }, [a, i]), E(() => {
1456
+ }, [a, i]), C(() => {
1457
1457
  if (!a || !g)
1458
1458
  return;
1459
1459
  const c = Object.assign({}, e), l = new g.PinElement(c);
@@ -1461,7 +1461,7 @@ const Nt = (e) => {
1461
1461
  a.removeChild(a.firstChild);
1462
1462
  return a.appendChild(l), () => {
1463
1463
  };
1464
- }, [a, g, s, n, e]), E(() => {
1464
+ }, [a, g, s, n, e]), C(() => {
1465
1465
  var c;
1466
1466
  if (a)
1467
1467
  return;
@@ -1469,13 +1469,13 @@ const Nt = (e) => {
1469
1469
  r === void 0 && a === void 0 && console.error("The <Pin> component can only be used inside <AdvancedMarker> or <Marker3D>.");
1470
1470
  return;
1471
1471
  }
1472
- (e.glyphSrc || e.glyphText) && n && ee("The <Pin> component only uses children to render the glyph if both glyphSrc/glyphText and children are present."), Ee.count(n) > 1 && ee("Passing multiple children to the <Pin> component might lead to unexpected results.");
1473
- const l = Object.assign({}, e), f = new g.PinElement(l);
1474
- n && f.appendChild(s);
1475
- const m = (c = r.content) === null || c === void 0 ? void 0 : c.firstChild;
1476
- for (; m != null && m.firstChild; )
1477
- m.removeChild(m.firstChild);
1478
- m && m.appendChild(f);
1472
+ (e.glyphSrc || e.glyphText) && n && te("The <Pin> component only uses children to render the glyph if both glyphSrc/glyphText and children are present."), Ee.count(n) > 1 && te("Passing multiple children to the <Pin> component might lead to unexpected results.");
1473
+ const l = Object.assign({}, e), m = new g.PinElement(l);
1474
+ n && m.appendChild(s);
1475
+ const f = (c = r.content) === null || c === void 0 ? void 0 : c.firstChild;
1476
+ for (; f != null && f.firstChild; )
1477
+ f.removeChild(f.firstChild);
1478
+ f && f.appendChild(m);
1479
1479
  }, [
1480
1480
  r,
1481
1481
  g,
@@ -1483,51 +1483,51 @@ const Nt = (e) => {
1483
1483
  a,
1484
1484
  n,
1485
1485
  e
1486
- ]), de(n, s);
1487
- }, Rt = (e) => {
1486
+ ]), ue(n, s);
1487
+ }, zt = (e) => {
1488
1488
  var n;
1489
- const t = Z("marker"), o = N(() => t ? typeof customElements < "u" && customElements.get("gmp-pin") !== void 0 : !1, [t]);
1489
+ const t = $("marker"), o = N(() => t ? typeof customElements < "u" && customElements.get("gmp-pin") !== void 0 : !1, [t]);
1490
1490
  if (!t)
1491
1491
  return null;
1492
1492
  if (o) {
1493
- const { glyph: r, glyphSrc: a, glyphText: i } = e, s = j(e, ["glyph", "glyphSrc", "glyphText"]), g = r instanceof URL || typeof r == "string" && r.startsWith("http"), c = i ?? (typeof r == "string" && !g ? r : void 0), l = a ?? (g ? String(r) : void 0);
1494
- return P.createElement(xt, Object.assign({}, s, { glyphText: c, glyphSrc: l }));
1493
+ const { glyph: r, glyphSrc: a, glyphText: i } = e, s = z(e, ["glyph", "glyphSrc", "glyphText"]), g = r instanceof URL || typeof r == "string" && r.startsWith("http"), c = i ?? (typeof r == "string" && !g ? r : void 0), l = a ?? (g ? String(r) : void 0);
1494
+ return A.createElement(jt, Object.assign({}, s, { glyphText: c, glyphSrc: l }));
1495
1495
  } else {
1496
- const { glyph: r, glyphSrc: a, glyphText: i } = e, s = j(e, ["glyph", "glyphSrc", "glyphText"]), g = (n = r ?? a) !== null && n !== void 0 ? n : i;
1497
- return P.createElement(Nt, Object.assign({}, s, { glyph: g }));
1496
+ const { glyph: r, glyphSrc: a, glyphText: i } = e, s = z(e, ["glyph", "glyphSrc", "glyphText"]), g = (n = r ?? a) !== null && n !== void 0 ? n : i;
1497
+ return A.createElement(Rt, Object.assign({}, s, { glyph: g }));
1498
1498
  }
1499
1499
  };
1500
- function jt(e) {
1500
+ function Bt(e) {
1501
1501
  var n, t, o;
1502
- const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onBoundsChanged: l, bounds: f, defaultBounds: m } = e, u = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onBoundsChanged", "bounds", "defaultBounds"]), [h, y] = x(null), d = J(), p = oe(Object.assign(Object.assign({}, u), { clickable: (n = u.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = u.draggable) !== null && t !== void 0 ? t : !!(a || i || s || l), editable: (o = u.editable) !== null && o !== void 0 ? o : !!l }), te);
1503
- return E(() => {
1502
+ const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onBoundsChanged: l, bounds: m, defaultBounds: f } = e, u = z(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onBoundsChanged", "bounds", "defaultBounds"]), [h, y] = _(null), d = Z(), p = ae(Object.assign(Object.assign({}, u), { clickable: (n = u.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = u.draggable) !== null && t !== void 0 ? t : !!(a || i || s || l), editable: (o = u.editable) !== null && o !== void 0 ? o : !!l }), re);
1503
+ return C(() => {
1504
1504
  if (!d) {
1505
1505
  d === void 0 && console.error("<Rectangle> has to be inside a Map component.");
1506
1506
  return;
1507
1507
  }
1508
- const b = new google.maps.Rectangle(Object.assign(Object.assign({}, p), { bounds: f ?? m }));
1508
+ const b = new google.maps.Rectangle(Object.assign(Object.assign({}, p), { bounds: m ?? f }));
1509
1509
  return b.setMap(d), y(b), () => {
1510
1510
  b.setMap(null), y(null);
1511
1511
  };
1512
1512
  }, [d]), D(h, "click", r), D(h, "drag", a), D(h, "dragstart", i), D(h, "dragend", s), D(h, "mouseover", g), D(h, "mouseout", c), D(h, "bounds_changed", l ? () => {
1513
1513
  l(h == null ? void 0 : h.getBounds());
1514
- } : null), E(() => {
1514
+ } : null), C(() => {
1515
1515
  h && h.setOptions(p);
1516
- }, [h, p]), E(() => {
1517
- !h || !f || zn(f, h.getBounds()) || h.setBounds(f);
1518
- }, [h, f]), h;
1516
+ }, [h, p]), C(() => {
1517
+ !h || !m || Fn(m, h.getBounds()) || h.setBounds(m);
1518
+ }, [h, m]), h;
1519
1519
  }
1520
- const zt = U((e, n) => {
1521
- const t = jt(e);
1522
- return H(n, () => t, [
1520
+ const Ft = H((e, n) => {
1521
+ const t = Bt(e);
1522
+ return V(n, () => t, [
1523
1523
  t
1524
- ]), P.createElement(P.Fragment, null);
1524
+ ]), A.createElement(A.Fragment, null);
1525
1525
  });
1526
- zt.displayName = "Rectangle";
1526
+ Ft.displayName = "Rectangle";
1527
1527
  function Y(e) {
1528
1528
  return typeof document > "u" ? "" : getComputedStyle(document.documentElement).getPropertyValue(e).trim();
1529
1529
  }
1530
- function me() {
1530
+ function pe() {
1531
1531
  const e = Y("--background"), n = Y("--foreground"), t = Y("--border"), o = Y("--muted"), r = Y("--muted-foreground"), a = Y("--primary");
1532
1532
  return [
1533
1533
  // Hide business POIs — clinical-listing UIs don't want Google's
@@ -1633,7 +1633,7 @@ function me() {
1633
1633
  }
1634
1634
  ];
1635
1635
  }
1636
- const Bt = {
1636
+ const Ut = {
1637
1637
  id: "map-view",
1638
1638
  capabilities: [],
1639
1639
  state: {},
@@ -1675,7 +1675,7 @@ const Bt = {
1675
1675
  description: "Sourced from the id prop."
1676
1676
  }
1677
1677
  }
1678
- }, Ft = ne(
1678
+ }, Ht = oe(
1679
1679
  ["ds:relative ds:overflow-hidden ds:block", "ds:bg-[var(--muted)]"].join(" "),
1680
1680
  {
1681
1681
  variants: {
@@ -1692,12 +1692,12 @@ const Bt = {
1692
1692
  },
1693
1693
  defaultVariants: { size: "md", surface: "bordered" }
1694
1694
  }
1695
- ), Ut = ne(
1695
+ ), Vt = oe(
1696
1696
  [
1697
1697
  "ds:block ds:inline-size-full",
1698
1698
  "ds:[block-size:var(--map-block-size)]"
1699
1699
  ].join(" ")
1700
- ), Ht = ne(
1700
+ ), Gt = oe(
1701
1701
  [
1702
1702
  "ds:absolute ds:inset-0",
1703
1703
  "ds:flex ds:flex-col ds:items-center ds:justify-center",
@@ -1706,15 +1706,15 @@ const Bt = {
1706
1706
  "ds:bg-[var(--muted)] ds:text-[var(--foreground)]",
1707
1707
  "ds:text-center"
1708
1708
  ].join(" ")
1709
- ), Vt = ne("type-heading-3 ds:m-0"), Re = ne(
1709
+ ), Jt = oe("type-heading-3 ds:m-0"), Be = oe(
1710
1710
  "type-body-sm ds:text-[var(--muted-foreground)] ds:max-inline-size-[28rem] ds:m-0"
1711
1711
  );
1712
- function Gt({
1712
+ function Zt({
1713
1713
  onHandleReady: e,
1714
1714
  onMarkerSelect: n
1715
1715
  }) {
1716
- const t = J();
1717
- return E(() => {
1716
+ const t = Z();
1717
+ return C(() => {
1718
1718
  t && e({
1719
1719
  panTo: (o) => t.panTo(o),
1720
1720
  setZoom: (o) => t.setZoom(o),
@@ -1722,43 +1722,45 @@ function Gt({
1722
1722
  });
1723
1723
  }, [t, e, n]), null;
1724
1724
  }
1725
- function Jt({
1725
+ function $t({
1726
1726
  address: e,
1727
1727
  description: n,
1728
- onConsentRequest: t,
1729
- openInGoogleMapsHref: o
1728
+ onLoadMap: t,
1729
+ openInGoogleMapsHref: o,
1730
+ consentCta: r
1730
1731
  }) {
1731
- const { t: r } = Be();
1732
- return /* @__PURE__ */ ie("div", { className: Ht(), "data-testid": "map-view-consent", children: [
1733
- /* @__PURE__ */ R(
1734
- rn,
1732
+ const { t: a } = He();
1733
+ return /* @__PURE__ */ le("div", { className: Gt(), "data-testid": "map-view-consent", children: [
1734
+ /* @__PURE__ */ j(
1735
+ sn,
1735
1736
  {
1736
1737
  "aria-hidden": "true",
1737
1738
  className: "ds:size-6 ds:text-[var(--muted-foreground)]"
1738
1739
  }
1739
1740
  ),
1740
- /* @__PURE__ */ R("p", { className: Vt(), children: r("mapView.consentTitle") }),
1741
- e ? /* @__PURE__ */ R(
1741
+ /* @__PURE__ */ j("p", { className: Jt(), children: a("mapView.consentTitle") }),
1742
+ e ? /* @__PURE__ */ j(
1742
1743
  "p",
1743
1744
  {
1744
- className: Re(),
1745
+ className: Be(),
1745
1746
  "data-testid": "map-view-address",
1746
1747
  children: e
1747
1748
  }
1748
1749
  ) : null,
1749
- /* @__PURE__ */ R("p", { className: Re(), children: n }),
1750
- /* @__PURE__ */ ie("div", { className: "ds:flex ds:gap-[var(--spacing-sm)] ds:flex-wrap ds:items-center ds:justify-center", children: [
1751
- t ? /* @__PURE__ */ R(
1752
- tn,
1750
+ /* @__PURE__ */ j("p", { className: Be(), children: n }),
1751
+ /* @__PURE__ */ le("div", { className: "ds:flex ds:gap-[var(--spacing-sm)] ds:flex-wrap ds:items-center ds:justify-center", children: [
1752
+ r ?? /* @__PURE__ */ j(
1753
+ rn,
1753
1754
  {
1754
1755
  type: "button",
1755
1756
  intent: "primary",
1756
1757
  size: "sm",
1757
1758
  onClick: t,
1758
- children: r("mapView.consentCta")
1759
+ "data-testid": "map-view-load-cta",
1760
+ children: a("mapView.consentCta")
1759
1761
  }
1760
- ) : null,
1761
- /* @__PURE__ */ ie(
1762
+ ),
1763
+ /* @__PURE__ */ le(
1762
1764
  "a",
1763
1765
  {
1764
1766
  href: o,
@@ -1766,15 +1768,15 @@ function Jt({
1766
1768
  rel: "noopener noreferrer",
1767
1769
  className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:text-[var(--primary)] ds:underline ds:underline-offset-2",
1768
1770
  children: [
1769
- r("mapView.openInGoogleMaps"),
1770
- /* @__PURE__ */ R(an, { "aria-hidden": "true", className: "ds:size-3" })
1771
+ a("mapView.openInGoogleMaps"),
1772
+ /* @__PURE__ */ j(ln, { "aria-hidden": "true", className: "ds:size-3" })
1771
1773
  ]
1772
1774
  }
1773
1775
  )
1774
1776
  ] })
1775
1777
  ] });
1776
1778
  }
1777
- const Zt = U(
1779
+ const qt = H(
1778
1780
  ({
1779
1781
  id: e,
1780
1782
  apiKey: n,
@@ -1787,127 +1789,136 @@ const Zt = U(
1787
1789
  onConsentRequest: g,
1788
1790
  address: c,
1789
1791
  consentDescription: l,
1792
+ consentCta: m,
1790
1793
  mapId: f,
1791
- size: m,
1792
- surface: u,
1793
- ariaLabel: h,
1794
- className: y,
1795
- ...d
1796
- }, p) => {
1797
- const { t: b, i18n: C } = Be(), M = en(), A = N(
1798
- () => `map-${M.replace(/[^a-zA-Z0-9-_]/g, "")}`,
1799
- [M]
1800
- ), [v, O] = x(!1);
1801
- E(() => {
1794
+ size: u,
1795
+ surface: h,
1796
+ ariaLabel: y,
1797
+ className: d,
1798
+ ...p
1799
+ }, b) => {
1800
+ const { t: E, i18n: M } = He(), P = tn(), v = N(
1801
+ () => `map-${P.replace(/[^a-zA-Z0-9-_]/g, "")}`,
1802
+ [P]
1803
+ ), [O, L] = _(!1);
1804
+ C(() => {
1802
1805
  if (typeof window > "u") return;
1803
- const w = window.matchMedia("(prefers-reduced-motion: reduce)"), S = () => O(w.matches);
1806
+ const w = window.matchMedia("(prefers-reduced-motion: reduce)"), S = () => L(w.matches);
1804
1807
  return S(), w.addEventListener("change", S), () => w.removeEventListener("change", S);
1805
1808
  }, []);
1806
- const L = N(() => `https://www.google.com/maps/search/?api=1&query=${c ? encodeURIComponent(c) : `${t.lat},${t.lng}`}`, [c, t.lat, t.lng]), [k, T] = x(
1807
- () => f ? [] : me()
1809
+ const k = N(() => `https://www.google.com/maps/search/?api=1&query=${c ? encodeURIComponent(c) : `${t.lat},${t.lng}`}`, [c, t.lat, t.lng]), [T, x] = _(
1810
+ () => f ? [] : pe()
1808
1811
  );
1809
- E(() => {
1812
+ C(() => {
1810
1813
  if (f || typeof document > "u") return;
1811
- T(me());
1814
+ x(pe());
1812
1815
  const w = new MutationObserver(() => {
1813
- T(me());
1816
+ x(pe());
1814
1817
  });
1815
1818
  return w.observe(document.documentElement, {
1816
1819
  attributes: !0,
1817
1820
  attributeFilter: ["class"]
1818
1821
  }), () => w.disconnect();
1819
1822
  }, [f]);
1820
- const _ = F(null), $ = ce((w) => {
1821
- _.current = w;
1823
+ const R = U(null), q = ne((w) => {
1824
+ R.current = w;
1822
1825
  }, []);
1823
- H(
1824
- p,
1826
+ V(
1827
+ b,
1825
1828
  () => ({
1826
1829
  panTo: (w) => {
1827
1830
  var S;
1828
- return (S = _.current) == null ? void 0 : S.panTo(w);
1831
+ return (S = R.current) == null ? void 0 : S.panTo(w);
1829
1832
  },
1830
1833
  setZoom: (w) => {
1831
1834
  var S;
1832
- return (S = _.current) == null ? void 0 : S.setZoom(w);
1835
+ return (S = R.current) == null ? void 0 : S.setZoom(w);
1833
1836
  },
1834
1837
  selectMarker: (w) => {
1835
1838
  var S;
1836
- return (S = _.current) == null ? void 0 : S.selectMarker(w);
1839
+ return (S = R.current) == null ? void 0 : S.selectMarker(w);
1837
1840
  }
1838
1841
  }),
1839
1842
  []
1840
1843
  );
1841
- const q = N(
1844
+ const Pe = N(
1842
1845
  () => ({
1843
1846
  panTo: (w) => {
1844
1847
  var S;
1845
- return (S = _.current) == null ? void 0 : S.panTo(w);
1848
+ return (S = R.current) == null ? void 0 : S.panTo(w);
1846
1849
  },
1847
1850
  setZoom: (w) => {
1848
1851
  var S;
1849
- return (S = _.current) == null ? void 0 : S.setZoom(w);
1852
+ return (S = R.current) == null ? void 0 : S.setZoom(w);
1850
1853
  },
1851
1854
  selectMarker: (w) => {
1852
1855
  var S;
1853
- return (S = _.current) == null ? void 0 : S.selectMarker(w);
1856
+ return (S = R.current) == null ? void 0 : S.selectMarker(w);
1854
1857
  }
1855
1858
  }),
1856
1859
  []
1857
1860
  );
1858
- return on(Bt, q, e), E(() => {
1861
+ an(Ut, Pe, e), C(() => {
1859
1862
  var w;
1860
- v || (w = _.current) == null || w.panTo(t);
1861
- }, [t.lat, t.lng, v]), E(() => {
1863
+ O || (w = R.current) == null || w.panTo(t);
1864
+ }, [t.lat, t.lng, O]), C(() => {
1862
1865
  var w;
1863
- (w = _.current) == null || w.setZoom(o);
1864
- }, [o]), /* @__PURE__ */ R(
1866
+ (w = R.current) == null || w.setZoom(o);
1867
+ }, [o]);
1868
+ const [Ae, ge] = _(!1), Te = s || Ae, Le = ne(() => {
1869
+ if (g) {
1870
+ g(), ge(!0);
1871
+ return;
1872
+ }
1873
+ ge(!0);
1874
+ }, [g]);
1875
+ return /* @__PURE__ */ j(
1865
1876
  "div",
1866
1877
  {
1867
- className: Ft({ size: m, surface: u, className: y }),
1878
+ className: Ht({ size: u, surface: h, className: d }),
1868
1879
  "data-component": "map-view",
1869
- "data-component-id": e ?? A,
1880
+ "data-component-id": e ?? v,
1870
1881
  role: "region",
1871
- "aria-label": h ?? b("mapView.label"),
1872
- ...d,
1873
- children: /* @__PURE__ */ R("div", { className: Ut(), children: s ? /* @__PURE__ */ R(
1874
- Tn,
1882
+ "aria-label": y ?? E("mapView.label"),
1883
+ ...p,
1884
+ children: /* @__PURE__ */ j("div", { className: Vt(), children: Te ? /* @__PURE__ */ j(
1885
+ Dn,
1875
1886
  {
1876
1887
  apiKey: n,
1877
- language: C.language,
1878
- children: /* @__PURE__ */ ie(
1879
- We,
1888
+ language: M.language,
1889
+ children: /* @__PURE__ */ le(
1890
+ Xe,
1880
1891
  {
1881
1892
  defaultCenter: t,
1882
1893
  defaultZoom: o,
1883
1894
  mapId: f,
1884
- styles: f ? void 0 : k,
1895
+ styles: f ? void 0 : T,
1885
1896
  gestureHandling: "cooperative",
1886
1897
  disableDefaultUI: !1,
1887
1898
  onClick: () => i == null ? void 0 : i(null),
1888
1899
  className: "ds:[inline-size:100%] ds:[block-size:100%]",
1889
1900
  children: [
1890
- /* @__PURE__ */ R(
1891
- Gt,
1901
+ /* @__PURE__ */ j(
1902
+ Zt,
1892
1903
  {
1893
- onHandleReady: $,
1904
+ onHandleReady: q,
1894
1905
  onMarkerSelect: (w) => i == null ? void 0 : i(w)
1895
1906
  }
1896
1907
  ),
1897
1908
  (r ?? []).map((w) => {
1898
- const S = a != null && a === w.id, ue = b("mapView.markerLabel", {
1909
+ const S = a != null && a === w.id, ee = E("mapView.markerLabel", {
1899
1910
  label: w.label ?? w.id
1900
1911
  });
1901
- return /* @__PURE__ */ R(
1902
- Ye,
1912
+ return /* @__PURE__ */ j(
1913
+ en,
1903
1914
  {
1904
1915
  position: w.position,
1905
- title: ue,
1906
- "aria-label": ue,
1916
+ title: ee,
1917
+ "aria-label": ee,
1907
1918
  "data-selected": S ? "true" : "false",
1908
1919
  onClick: () => i == null ? void 0 : i(w.id),
1909
- children: /* @__PURE__ */ R(
1910
- Rt,
1920
+ children: /* @__PURE__ */ j(
1921
+ zt,
1911
1922
  {
1912
1923
  background: "var(--primary)",
1913
1924
  borderColor: "var(--primary)",
@@ -1922,21 +1933,22 @@ const Zt = U(
1922
1933
  }
1923
1934
  )
1924
1935
  }
1925
- ) : /* @__PURE__ */ R(
1926
- Jt,
1936
+ ) : /* @__PURE__ */ j(
1937
+ $t,
1927
1938
  {
1928
1939
  address: c,
1929
- description: l ?? b("mapView.consentDescription"),
1930
- onConsentRequest: g,
1931
- openInGoogleMapsHref: L
1940
+ description: l ?? E("mapView.consentDescription"),
1941
+ onLoadMap: Le,
1942
+ consentCta: m,
1943
+ openInGoogleMapsHref: k
1932
1944
  }
1933
1945
  ) })
1934
1946
  }
1935
1947
  );
1936
1948
  }
1937
1949
  );
1938
- Zt.displayName = "MapView";
1950
+ qt.displayName = "MapView";
1939
1951
  export {
1940
- Zt as M
1952
+ qt as M
1941
1953
  };
1942
- //# sourceMappingURL=map-view-DyB8tr6c.js.map
1954
+ //# sourceMappingURL=map-view-WEWqXzof.js.map