@stachelock/ui 0.5.5 → 0.6.1

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 (442) hide show
  1. package/README.md +118 -5
  2. package/dist/AddDeleteButtonGroup.vue_vue_type_script_setup_true_lang-6taLcPq0.js +77 -0
  3. package/dist/{AlertModal.vue_vue_type_script_setup_true_lang-C6q8Mpl4.js → AlertModal.vue_vue_type_script_setup_true_lang-DzhVQdx4.js} +45 -65
  4. package/dist/BackgroundGradientWrapper.vue_vue_type_script_setup_true_lang-C8msTrTn.js +0 -1
  5. package/dist/BarChart.vue_vue_type_script_setup_true_lang-xCb0DCbf.js +0 -1
  6. package/dist/{BaseModal.vue_vue_type_script_setup_true_lang-B67Pt3tW.js → BaseModal.vue_vue_type_script_setup_true_lang--iGzFCnC.js} +42 -44
  7. package/dist/{CalendarHeader.vue_vue_type_script_setup_true_lang-CkSUiLOH.js → CalendarHeader.vue_vue_type_script_setup_true_lang-hGa2MLyo.js} +114 -141
  8. package/dist/CardWrapper.vue_vue_type_script_setup_true_lang-D59QBAi9.js +0 -1
  9. package/dist/CheckboxInput.vue_vue_type_script_setup_true_lang-BikR9rgi.js +0 -1
  10. package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-BigvbBAU.js +331 -0
  11. package/dist/ComingSoon.vue_vue_type_script_setup_true_lang-CJ8FXE42.js +0 -1
  12. package/dist/{DashboardLayout.vue_vue_type_script_setup_true_lang-B0M6-9os.js → DashboardLayout.vue_vue_type_script_setup_true_lang-BAx4gKqh.js} +44 -47
  13. package/dist/{DatepickerInput.vue_vue_type_style_index_0_lang-BdkGLw0H.js → DatepickerInput.vue_vue_type_style_index_0_lang-DbI3619T.js} +23 -24
  14. package/dist/{DayCalendar.vue_vue_type_script_setup_true_lang-8al4Fotu.js → DayCalendar.vue_vue_type_script_setup_true_lang-D-4jcUvI.js} +1 -2
  15. package/dist/DefaultLayout.vue_vue_type_script_setup_true_lang-BZAz6aC-.js +0 -1
  16. package/dist/DisclosureWrapper.vue_vue_type_script_setup_true_lang-CgHPOC-w.js +35 -0
  17. package/dist/{DynamicForm.vue_vue_type_script_setup_true_lang-CxSaO5Cl.js → DynamicForm.vue_vue_type_script_setup_true_lang-BR8Pq7Kw.js} +52 -53
  18. package/dist/{DynamicFormField.vue_vue_type_script_setup_true_lang-CSLSRFM7.js → DynamicFormField.vue_vue_type_script_setup_true_lang-BCVmqg_n.js} +7 -8
  19. package/dist/EmailInput.vue_vue_type_script_setup_true_lang-BicPMIop.js +0 -1
  20. package/dist/EmptyInput.vue_vue_type_script_setup_true_lang-FWDCFF2c.js +0 -1
  21. package/dist/EmptyState.vue_vue_type_script_setup_true_lang-7mcKkOWP.js +0 -1
  22. package/dist/EventCard.vue_vue_type_script_setup_true_lang-B3TP-mWX.js +74 -0
  23. package/dist/EventsList.vue_vue_type_script_setup_true_lang-BTIoGr_e.js +87 -0
  24. package/dist/FileDropzoneInput.vue_vue_type_script_setup_true_lang-BJR-_ngq.js +176 -0
  25. package/dist/{FormErrorWrapper.vue_vue_type_script_setup_true_lang-BQOlG_ab.js → FormErrorWrapper.vue_vue_type_script_setup_true_lang-D7ZAgfPs.js} +12 -13
  26. package/dist/FunnelChart.vue_vue_type_script_setup_true_lang-B4pH6xCV.js +0 -1
  27. package/dist/HeaderLayout.vue_vue_type_script_setup_true_lang-BY2G6hCc.js +0 -1
  28. package/dist/HiddenInput.vue_vue_type_script_setup_true_lang-PtGZ4eLW.js +0 -1
  29. package/dist/{InlineTabs.vue_vue_type_script_setup_true_lang-CD0lnkUm.js → InlineTabs.vue_vue_type_script_setup_true_lang-B5w4yzcZ.js} +1 -2
  30. package/dist/LineChart.vue_vue_type_script_setup_true_lang-DJo0edLJ.js +0 -1
  31. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-swmHdR0_.js → LottieAnimation.vue_vue_type_script_setup_true_lang-C0R4ADBb.js} +1 -2
  32. package/dist/{MonthCalendar.vue_vue_type_style_index_0_lang-Cyzq7A9j.js → MonthCalendar.vue_vue_type_style_index_0_lang-lnKkvJ9u.js} +1 -2
  33. package/dist/NavigationGroup.vue_vue_type_script_setup_true_lang-BWq5fpEm.js +0 -1
  34. package/dist/NavigationItem.vue_vue_type_script_setup_true_lang-C8aX-84Q.js +0 -1
  35. package/dist/{NotificationContainer.vue_vue_type_style_index_0_lang-DSfNw4Ge.js → NotificationContainer.vue_vue_type_style_index_0_lang-CvJRwezr.js} +1 -2
  36. package/dist/{NotificationToast.vue_vue_type_script_setup_true_lang-CU__ORw8.js → NotificationToast.vue_vue_type_script_setup_true_lang-BBWpW4km.js} +61 -64
  37. package/dist/PieChart.vue_vue_type_script_setup_true_lang-e3wsA9O4.js +0 -1
  38. package/dist/ProfileHeaderAvatar.vue_vue_type_script_setup_true_lang-CKCoHD1o.js +0 -1
  39. package/dist/ProjectLogo.vue_vue_type_script_setup_true_lang-DYjp-RNh.js +0 -1
  40. package/dist/{SelectInput.vue_vue_type_script_setup_true_lang-DHiZ-7K2.js → SelectInput.vue_vue_type_script_setup_true_lang-D4GNv0MY.js} +56 -58
  41. package/dist/{SelectTextInput.vue_vue_type_script_setup_true_lang-DYrXW14A.js → SelectTextInput.vue_vue_type_script_setup_true_lang-BVaViHPl.js} +66 -69
  42. package/dist/{SidebarLayout.vue_vue_type_script_setup_true_lang-BJ5jadgZ.js → SidebarLayout.vue_vue_type_script_setup_true_lang-CZ21EVcZ.js} +36 -39
  43. package/dist/SparklineChart.vue_vue_type_script_setup_true_lang-BlNk5ZqM.js +0 -1
  44. package/dist/StatCard.vue_vue_type_script_setup_true_lang-B5SuaSXL.js +66 -0
  45. package/dist/{StepperPanels.vue_vue_type_script_setup_true_lang-D6Fv7iz3.js → StepperPanels.vue_vue_type_script_setup_true_lang-DPLQ9mQn.js} +34 -49
  46. package/dist/SwitchInput.vue_vue_type_script_setup_true_lang-D5Es9AjF.js +200 -0
  47. package/dist/{SwitchInputGroup.vue_vue_type_script_setup_true_lang-CK9JWl4F.js → SwitchInputGroup.vue_vue_type_script_setup_true_lang-DigNYqVZ.js} +1 -2
  48. package/dist/{TabGroup.vue_vue_type_script_setup_true_lang-DVVeOgWH.js → TabGroup.vue_vue_type_script_setup_true_lang-BsbiEA4E.js} +19 -20
  49. package/dist/{TabGroupUnderline.vue_vue_type_script_setup_true_lang-_3XtOn3w.js → TabGroupUnderline.vue_vue_type_script_setup_true_lang-CPcp1-Za.js} +21 -22
  50. package/dist/{TabsInPills.vue_vue_type_script_setup_true_lang-DY1NkXCQ.js → TabsInPills.vue_vue_type_script_setup_true_lang-U5CdRL7s.js} +1 -2
  51. package/dist/{TagifyInput.vue_vue_type_script_setup_true_lang-Da6-pRJ2.js → TagifyInput.vue_vue_type_script_setup_true_lang-BF2mK8JC.js} +14 -15
  52. package/dist/TextAreaInput.vue_vue_type_script_setup_true_lang-Cf0MJobG.js +0 -1
  53. package/dist/UiAvatar.vue_vue_type_script_setup_true_lang-WVY6JbUL.js +0 -1
  54. package/dist/UiBadge.vue_vue_type_script_setup_true_lang-DOtbLb9x.js +0 -1
  55. package/dist/UiButtonGroup.vue_vue_type_script_setup_true_lang-CVwXB-cb.js +0 -1
  56. package/dist/UiCheckbox.vue_vue_type_script_setup_true_lang-BxyM_F-V.js +0 -1
  57. package/dist/UiLoading.vue_vue_type_script_setup_true_lang-rNvtzKbq.js +0 -1
  58. package/dist/{UiMapAll.vue_vue_type_script_setup_true_lang-CMAyvJMk.js → UiMapAll.vue_vue_type_script_setup_true_lang-11yT7mTH.js} +93 -111
  59. package/dist/UiMenu.vue_vue_type_script_setup_true_lang-gnoIJm6x.js +127 -0
  60. package/dist/{UiModal.vue_vue_type_script_setup_true_lang-CpwFUDVU.js → UiModal.vue_vue_type_script_setup_true_lang-BZC7aN7K.js} +41 -43
  61. package/dist/{UiNavLink.vue_vue_type_script_setup_true_lang-DnWMn40M.js → UiNavLink.vue_vue_type_script_setup_true_lang-C5Gicm8o.js} +4 -5
  62. package/dist/UiProgressBar.vue_vue_type_script_setup_true_lang-BCh4orZW.js +0 -1
  63. package/dist/UiTable.vue_vue_type_script_setup_true_lang-xGAiJ9rS.js +0 -1
  64. package/dist/UiTransition.vue_vue_type_script_setup_true_lang-C4jb9I-3.js +0 -1
  65. package/dist/YearCalendar.vue_vue_type_script_setup_true_lang-CfKSpLLN.js +0 -1
  66. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -1
  67. package/dist/calendar-DLry-Vik.js +147 -0
  68. package/dist/calendars/CalendarDashboard.js +3 -4
  69. package/dist/calendars/CalendarHeader.js +1 -2
  70. package/dist/calendars/DayCalendar.js +1 -2
  71. package/dist/calendars/EventCard.js +1 -2
  72. package/dist/calendars/EventsList.js +1 -2
  73. package/dist/calendars/MonthCalendar.js +1 -2
  74. package/dist/calendars/WeekCalendar.js +1 -2
  75. package/dist/calendars/YearCalendar.js +0 -1
  76. package/dist/charts/BarChart.js +0 -1
  77. package/dist/charts/BaseChart.js +42 -59
  78. package/dist/charts/FunnelChart.js +0 -1
  79. package/dist/charts/LineChart.js +0 -1
  80. package/dist/charts/PieChart.js +0 -1
  81. package/dist/charts/SparklineChart.js +0 -1
  82. package/dist/charts/StatCard.js +1 -2
  83. package/dist/charts/chartTheme.js +0 -1
  84. package/dist/charts/index.js +1 -2
  85. package/dist/components/Avatar.js +0 -1
  86. package/dist/components/Badge.js +0 -1
  87. package/dist/components/Banner.js +178 -351
  88. package/dist/components/Breadcrumb.js +41 -42
  89. package/dist/components/Button.js +0 -1
  90. package/dist/components/ButtonGroup.js +0 -1
  91. package/dist/components/Checkbox.js +0 -1
  92. package/dist/components/CloudinaryImage.js +51 -81
  93. package/dist/components/Loading.js +0 -1
  94. package/dist/components/LoadingDots.js +0 -1
  95. package/dist/components/LottieAnimation.js +1 -2
  96. package/dist/components/Menu.js +1 -2
  97. package/dist/components/Modal.js +1 -2
  98. package/dist/components/NavLink.js +1 -2
  99. package/dist/components/ProgressBar.js +0 -1
  100. package/dist/components/RadialProgressBar.js +0 -1
  101. package/dist/components/Table.js +0 -1
  102. package/dist/components/Transition.js +0 -1
  103. package/dist/composables/index.js +1 -2
  104. package/dist/composables/useCalendar.js +1 -2
  105. package/dist/composables/useFormValidation.js +0 -1
  106. package/dist/composables/useMap.js +3 -3
  107. package/dist/composables/useModal.js +0 -1
  108. package/dist/composables/useNotifications.js +0 -1
  109. package/dist/composables/useTabs.js +87 -193
  110. package/dist/composables/useTheme.js +0 -1
  111. package/dist/empty-state/ComingSoon.js +0 -1
  112. package/dist/empty-state/EmptyState.js +0 -1
  113. package/dist/empty-state/index.js +0 -1
  114. package/dist/forms/DynamicForm.js +1 -2
  115. package/dist/forms/DynamicFormField.js +1 -2
  116. package/dist/forms/FormFieldWrapper.js +7 -8
  117. package/dist/id-DafBB_QF.js +0 -1
  118. package/dist/index.js +1343 -725
  119. package/dist/inputs/AddDeleteButtonGroup.js +1 -2
  120. package/dist/inputs/CheckboxInput.js +0 -1
  121. package/dist/inputs/ComboboxInput.js +1 -2
  122. package/dist/inputs/DatepickerInput.js +1 -2
  123. package/dist/inputs/EmailInput.js +0 -1
  124. package/dist/inputs/EmptyInput.js +0 -1
  125. package/dist/inputs/FileDropzoneInput.js +1 -2
  126. package/dist/inputs/HiddenInput.js +0 -1
  127. package/dist/inputs/PhoneInput.js +371 -3539
  128. package/dist/inputs/RichTextInput.js +235 -17298
  129. package/dist/inputs/SelectInput.js +1 -2
  130. package/dist/inputs/SelectTextInput.js +1 -2
  131. package/dist/inputs/SwitchInput.js +1 -2
  132. package/dist/inputs/SwitchInputGroup.js +1 -2
  133. package/dist/inputs/TagifyInput.js +1 -2
  134. package/dist/inputs/TextAreaInput.js +0 -1
  135. package/dist/inputs/TextInput.js +7 -8
  136. package/dist/layouts/DashboardLayout.js +1 -2
  137. package/dist/layouts/DefaultLayout.js +0 -1
  138. package/dist/layouts/HeaderLayout.js +0 -1
  139. package/dist/layouts/NavigationGroup.js +0 -1
  140. package/dist/layouts/NavigationItem.js +0 -1
  141. package/dist/layouts/ProfileHeaderAvatar.js +0 -1
  142. package/dist/layouts/ProjectLogo.js +0 -1
  143. package/dist/layouts/SidebarLayout.js +1 -2
  144. package/dist/loading/ContentSkeleton.js +0 -1
  145. package/dist/loading/SmartLoadingIndicator.js +0 -1
  146. package/dist/loading/index.js +0 -1
  147. package/dist/mapThemes-DFE9fZm3.js +0 -1
  148. package/dist/maps/GoogleMap.js +13 -14
  149. package/dist/maps/UiInfoWindow.js +41 -43
  150. package/dist/maps/UiMap.js +28 -31
  151. package/dist/maps/UiMapAll.js +1 -2
  152. package/dist/maps/UiMapMarker.js +1 -2
  153. package/dist/maps/index.js +1 -2
  154. package/dist/modals/AlertModal.js +1 -2
  155. package/dist/modals/BaseModal.js +1 -2
  156. package/dist/modals/ImageCropperModal.js +130 -1666
  157. package/dist/notifications/NotificationContainer.js +1 -2
  158. package/dist/notifications/NotificationToast.js +1 -2
  159. package/dist/notifications/index.js +2 -3
  160. package/dist/src/components/inputs/AddressInput.d.ts +40 -0
  161. package/dist/src/components/inputs/DatepickerInput.d.ts +7 -7
  162. package/dist/src/components/inputs/index.d.ts +1 -0
  163. package/dist/src/components/maps/UiMap.d.ts +1 -1
  164. package/dist/src/components/maps/UiMapAll.d.ts +6 -6
  165. package/dist/src/plugin/configure.d.ts +3 -1
  166. package/dist/src/services/geocoding.service.d.ts +68 -0
  167. package/dist/src/services/index.d.ts +1 -0
  168. package/dist/src/types/address.d.ts +164 -0
  169. package/dist/src/types/index.d.ts +1 -0
  170. package/dist/src/views/inputs/index.d.ts +1 -0
  171. package/dist/stepper/StepperPanels.js +1 -2
  172. package/dist/stepper/index.js +1 -2
  173. package/dist/style.css +1 -1
  174. package/dist/tabs/InlineTabs.js +1 -2
  175. package/dist/tabs/TabGroup.js +1 -2
  176. package/dist/tabs/TabGroupUnderline.js +1 -2
  177. package/dist/tabs/TabsInPills.js +1 -2
  178. package/dist/tabs/index.js +4 -5
  179. package/dist/ui.css +1 -1
  180. package/dist/useEventSegments-B-r_8zCW.js +0 -1
  181. package/dist/useMap-BGg0H582.js +297 -0
  182. package/dist/useSimpleTabs-CSgkChEU.js +0 -1
  183. package/dist/useStringTransform-CSr7nZWg.js +0 -1
  184. package/dist/wrappers/BackgroundGradientWrapper.js +0 -1
  185. package/dist/wrappers/CardWrapper.js +0 -1
  186. package/dist/wrappers/DisclosureWrapper.js +1 -2
  187. package/dist/wrappers/FormErrorWrapper.js +1 -2
  188. package/dist/wrappers/index.js +2 -3
  189. package/package.json +9 -1
  190. package/dist/AddDeleteButtonGroup.vue_vue_type_script_setup_true_lang-CFS3lVF-.js +0 -128
  191. package/dist/AddDeleteButtonGroup.vue_vue_type_script_setup_true_lang-CFS3lVF-.js.map +0 -1
  192. package/dist/AlertModal.vue_vue_type_script_setup_true_lang-C6q8Mpl4.js.map +0 -1
  193. package/dist/BackgroundGradientWrapper.vue_vue_type_script_setup_true_lang-C8msTrTn.js.map +0 -1
  194. package/dist/BarChart.vue_vue_type_script_setup_true_lang-xCb0DCbf.js.map +0 -1
  195. package/dist/Bars3Icon-BdOqcGcY.js +0 -22
  196. package/dist/Bars3Icon-BdOqcGcY.js.map +0 -1
  197. package/dist/BaseModal.vue_vue_type_script_setup_true_lang-B67Pt3tW.js.map +0 -1
  198. package/dist/CalendarHeader.vue_vue_type_script_setup_true_lang-CkSUiLOH.js.map +0 -1
  199. package/dist/CardWrapper.vue_vue_type_script_setup_true_lang-D59QBAi9.js.map +0 -1
  200. package/dist/CheckIcon-BGlsmVwT.js +0 -20
  201. package/dist/CheckIcon-BGlsmVwT.js.map +0 -1
  202. package/dist/CheckboxInput.vue_vue_type_script_setup_true_lang-BikR9rgi.js.map +0 -1
  203. package/dist/ChevronRightIcon-DkUqw988.js +0 -20
  204. package/dist/ChevronRightIcon-DkUqw988.js.map +0 -1
  205. package/dist/ChevronUpDownIcon-Bq_fsgrb.js +0 -20
  206. package/dist/ChevronUpDownIcon-Bq_fsgrb.js.map +0 -1
  207. package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-kEj-NYqm.js +0 -1362
  208. package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-kEj-NYqm.js.map +0 -1
  209. package/dist/ComingSoon.vue_vue_type_script_setup_true_lang-CJ8FXE42.js.map +0 -1
  210. package/dist/DashboardLayout.vue_vue_type_script_setup_true_lang-B0M6-9os.js.map +0 -1
  211. package/dist/DatepickerInput.vue_vue_type_style_index_0_lang-BdkGLw0H.js.map +0 -1
  212. package/dist/DayCalendar.vue_vue_type_script_setup_true_lang-8al4Fotu.js.map +0 -1
  213. package/dist/DefaultLayout.vue_vue_type_script_setup_true_lang-BZAz6aC-.js.map +0 -1
  214. package/dist/DisclosureWrapper.vue_vue_type_script_setup_true_lang-C7y2bNhW.js +0 -138
  215. package/dist/DisclosureWrapper.vue_vue_type_script_setup_true_lang-C7y2bNhW.js.map +0 -1
  216. package/dist/DynamicForm.vue_vue_type_script_setup_true_lang-CxSaO5Cl.js.map +0 -1
  217. package/dist/DynamicFormField.vue_vue_type_script_setup_true_lang-CSLSRFM7.js.map +0 -1
  218. package/dist/EmailInput.vue_vue_type_script_setup_true_lang-BicPMIop.js.map +0 -1
  219. package/dist/EmptyInput.vue_vue_type_script_setup_true_lang-FWDCFF2c.js.map +0 -1
  220. package/dist/EmptyState.vue_vue_type_script_setup_true_lang-7mcKkOWP.js.map +0 -1
  221. package/dist/EventCard.vue_vue_type_script_setup_true_lang-j1mtKShZ.js +0 -136
  222. package/dist/EventCard.vue_vue_type_script_setup_true_lang-j1mtKShZ.js.map +0 -1
  223. package/dist/EventsList.vue_vue_type_script_setup_true_lang-MhuVi5u8.js +0 -102
  224. package/dist/EventsList.vue_vue_type_script_setup_true_lang-MhuVi5u8.js.map +0 -1
  225. package/dist/ExclamationCircleIcon-DjxYk45_.js +0 -22
  226. package/dist/ExclamationCircleIcon-DjxYk45_.js.map +0 -1
  227. package/dist/ExclamationCircleIcon-DmL8Wwjo.js +0 -36
  228. package/dist/ExclamationCircleIcon-DmL8Wwjo.js.map +0 -1
  229. package/dist/ExclamationTriangleIcon-BNKYmV_J.js +0 -22
  230. package/dist/ExclamationTriangleIcon-BNKYmV_J.js.map +0 -1
  231. package/dist/FileDropzoneInput.vue_vue_type_script_setup_true_lang-CclXceTb.js +0 -211
  232. package/dist/FileDropzoneInput.vue_vue_type_script_setup_true_lang-CclXceTb.js.map +0 -1
  233. package/dist/FormErrorWrapper.vue_vue_type_script_setup_true_lang-BQOlG_ab.js.map +0 -1
  234. package/dist/FunnelChart.vue_vue_type_script_setup_true_lang-B4pH6xCV.js.map +0 -1
  235. package/dist/HeaderLayout.vue_vue_type_script_setup_true_lang-BY2G6hCc.js.map +0 -1
  236. package/dist/HiddenInput.vue_vue_type_script_setup_true_lang-PtGZ4eLW.js.map +0 -1
  237. package/dist/InformationCircleIcon-B322GNIt.js +0 -40
  238. package/dist/InformationCircleIcon-B322GNIt.js.map +0 -1
  239. package/dist/InlineTabs.vue_vue_type_script_setup_true_lang-CD0lnkUm.js.map +0 -1
  240. package/dist/LineChart.vue_vue_type_script_setup_true_lang-DJo0edLJ.js.map +0 -1
  241. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-swmHdR0_.js.map +0 -1
  242. package/dist/MapPinIcon-CSTDUZnD.js +0 -27
  243. package/dist/MapPinIcon-CSTDUZnD.js.map +0 -1
  244. package/dist/MonthCalendar.vue_vue_type_style_index_0_lang-Cyzq7A9j.js.map +0 -1
  245. package/dist/NavigationGroup.vue_vue_type_script_setup_true_lang-BWq5fpEm.js.map +0 -1
  246. package/dist/NavigationItem.vue_vue_type_script_setup_true_lang-C8aX-84Q.js.map +0 -1
  247. package/dist/NotificationContainer.vue_vue_type_style_index_0_lang-DSfNw4Ge.js.map +0 -1
  248. package/dist/NotificationToast.vue_vue_type_script_setup_true_lang-CU__ORw8.js.map +0 -1
  249. package/dist/PieChart.vue_vue_type_script_setup_true_lang-e3wsA9O4.js.map +0 -1
  250. package/dist/PlusIcon-aDFVlB90.js +0 -40
  251. package/dist/PlusIcon-aDFVlB90.js.map +0 -1
  252. package/dist/ProfileHeaderAvatar.vue_vue_type_script_setup_true_lang-CKCoHD1o.js.map +0 -1
  253. package/dist/ProjectLogo.vue_vue_type_script_setup_true_lang-DYjp-RNh.js.map +0 -1
  254. package/dist/SelectInput.vue_vue_type_script_setup_true_lang-DHiZ-7K2.js.map +0 -1
  255. package/dist/SelectTextInput.vue_vue_type_script_setup_true_lang-DYrXW14A.js.map +0 -1
  256. package/dist/SidebarLayout.vue_vue_type_script_setup_true_lang-BJ5jadgZ.js.map +0 -1
  257. package/dist/SparklineChart.vue_vue_type_script_setup_true_lang-BlNk5ZqM.js.map +0 -1
  258. package/dist/StatCard.vue_vue_type_script_setup_true_lang-BfFupfmC.js +0 -111
  259. package/dist/StatCard.vue_vue_type_script_setup_true_lang-BfFupfmC.js.map +0 -1
  260. package/dist/StepperPanels.vue_vue_type_script_setup_true_lang-D6Fv7iz3.js.map +0 -1
  261. package/dist/SwitchInput.vue_vue_type_script_setup_true_lang-C88FcxuK.js +0 -280
  262. package/dist/SwitchInput.vue_vue_type_script_setup_true_lang-C88FcxuK.js.map +0 -1
  263. package/dist/SwitchInputGroup.vue_vue_type_script_setup_true_lang-CK9JWl4F.js.map +0 -1
  264. package/dist/TabGroup.vue_vue_type_script_setup_true_lang-DVVeOgWH.js.map +0 -1
  265. package/dist/TabGroupUnderline.vue_vue_type_script_setup_true_lang-_3XtOn3w.js.map +0 -1
  266. package/dist/TabsInPills.vue_vue_type_script_setup_true_lang-DY1NkXCQ.js.map +0 -1
  267. package/dist/TagifyInput.vue_vue_type_script_setup_true_lang-Da6-pRJ2.js.map +0 -1
  268. package/dist/TextAreaInput.vue_vue_type_script_setup_true_lang-Cf0MJobG.js.map +0 -1
  269. package/dist/UiAvatar.vue_vue_type_script_setup_true_lang-WVY6JbUL.js.map +0 -1
  270. package/dist/UiBadge.vue_vue_type_script_setup_true_lang-DOtbLb9x.js.map +0 -1
  271. package/dist/UiButtonGroup.vue_vue_type_script_setup_true_lang-CVwXB-cb.js.map +0 -1
  272. package/dist/UiCheckbox.vue_vue_type_script_setup_true_lang-BxyM_F-V.js.map +0 -1
  273. package/dist/UiLoading.vue_vue_type_script_setup_true_lang-rNvtzKbq.js.map +0 -1
  274. package/dist/UiMapAll.vue_vue_type_script_setup_true_lang-CMAyvJMk.js.map +0 -1
  275. package/dist/UiMenu.vue_vue_type_script_setup_true_lang-bQdfCzk6.js +0 -330
  276. package/dist/UiMenu.vue_vue_type_script_setup_true_lang-bQdfCzk6.js.map +0 -1
  277. package/dist/UiModal.vue_vue_type_script_setup_true_lang-CpwFUDVU.js.map +0 -1
  278. package/dist/UiNavLink.vue_vue_type_script_setup_true_lang-DnWMn40M.js.map +0 -1
  279. package/dist/UiProgressBar.vue_vue_type_script_setup_true_lang-BCh4orZW.js.map +0 -1
  280. package/dist/UiTable.vue_vue_type_script_setup_true_lang-xGAiJ9rS.js.map +0 -1
  281. package/dist/UiTransition.vue_vue_type_script_setup_true_lang-C4jb9I-3.js.map +0 -1
  282. package/dist/XMarkIcon-Cwy3T6p8.js +0 -22
  283. package/dist/XMarkIcon-Cwy3T6p8.js.map +0 -1
  284. package/dist/XMarkIcon-DNvCkiOy.js +0 -16
  285. package/dist/XMarkIcon-DNvCkiOy.js.map +0 -1
  286. package/dist/YearCalendar.vue_vue_type_script_setup_true_lang-CfKSpLLN.js.map +0 -1
  287. package/dist/_plugin-vue_export-helper-CHgC5LLL.js.map +0 -1
  288. package/dist/active-element-history-BTBNVIJN.js +0 -17
  289. package/dist/active-element-history-BTBNVIJN.js.map +0 -1
  290. package/dist/calculate-active-index-Dim3sT-5.js +0 -55
  291. package/dist/calculate-active-index-Dim3sT-5.js.map +0 -1
  292. package/dist/calendar-BlSSD4nO.js +0 -575
  293. package/dist/calendar-BlSSD4nO.js.map +0 -1
  294. package/dist/calendars/CalendarDashboard.js.map +0 -1
  295. package/dist/calendars/CalendarHeader.js.map +0 -1
  296. package/dist/calendars/DayCalendar.js.map +0 -1
  297. package/dist/calendars/EventCard.js.map +0 -1
  298. package/dist/calendars/EventsList.js.map +0 -1
  299. package/dist/calendars/MonthCalendar.js.map +0 -1
  300. package/dist/calendars/WeekCalendar.js.map +0 -1
  301. package/dist/calendars/YearCalendar.js.map +0 -1
  302. package/dist/charts/BarChart.js.map +0 -1
  303. package/dist/charts/BaseChart.js.map +0 -1
  304. package/dist/charts/FunnelChart.js.map +0 -1
  305. package/dist/charts/LineChart.js.map +0 -1
  306. package/dist/charts/PieChart.js.map +0 -1
  307. package/dist/charts/SparklineChart.js.map +0 -1
  308. package/dist/charts/StatCard.js.map +0 -1
  309. package/dist/charts/chartTheme.js.map +0 -1
  310. package/dist/charts/index.js.map +0 -1
  311. package/dist/components/Avatar.js.map +0 -1
  312. package/dist/components/Badge.js.map +0 -1
  313. package/dist/components/Banner.js.map +0 -1
  314. package/dist/components/Breadcrumb.js.map +0 -1
  315. package/dist/components/Button.js.map +0 -1
  316. package/dist/components/ButtonGroup.js.map +0 -1
  317. package/dist/components/Checkbox.js.map +0 -1
  318. package/dist/components/CloudinaryImage.js.map +0 -1
  319. package/dist/components/Loading.js.map +0 -1
  320. package/dist/components/LoadingDots.js.map +0 -1
  321. package/dist/components/LottieAnimation.js.map +0 -1
  322. package/dist/components/Menu.js.map +0 -1
  323. package/dist/components/Modal.js.map +0 -1
  324. package/dist/components/NavLink.js.map +0 -1
  325. package/dist/components/ProgressBar.js.map +0 -1
  326. package/dist/components/RadialProgressBar.js.map +0 -1
  327. package/dist/components/Table.js.map +0 -1
  328. package/dist/components/Transition.js.map +0 -1
  329. package/dist/composables/index.js.map +0 -1
  330. package/dist/composables/useCalendar.js.map +0 -1
  331. package/dist/composables/useFormValidation.js.map +0 -1
  332. package/dist/composables/useMap.js.map +0 -1
  333. package/dist/composables/useModal.js.map +0 -1
  334. package/dist/composables/useNotifications.js.map +0 -1
  335. package/dist/composables/useTabs.js.map +0 -1
  336. package/dist/composables/useTheme.js.map +0 -1
  337. package/dist/description-C7cRw0tq.js +0 -30
  338. package/dist/description-C7cRw0tq.js.map +0 -1
  339. package/dist/dialog-BJ2Ld8l3.js +0 -499
  340. package/dist/dialog-BJ2Ld8l3.js.map +0 -1
  341. package/dist/empty-state/ComingSoon.js.map +0 -1
  342. package/dist/empty-state/EmptyState.js.map +0 -1
  343. package/dist/empty-state/index.js.map +0 -1
  344. package/dist/env-BZfPsfnF.js +0 -29
  345. package/dist/env-BZfPsfnF.js.map +0 -1
  346. package/dist/form-f8yP4kN-.js +0 -35
  347. package/dist/form-f8yP4kN-.js.map +0 -1
  348. package/dist/forms/DynamicForm.js.map +0 -1
  349. package/dist/forms/DynamicFormField.js.map +0 -1
  350. package/dist/forms/FormFieldWrapper.js.map +0 -1
  351. package/dist/hidden-BSRluD1y.js +0 -15
  352. package/dist/hidden-BSRluD1y.js.map +0 -1
  353. package/dist/id-DafBB_QF.js.map +0 -1
  354. package/dist/index-Dca39bYA.js +0 -2167
  355. package/dist/index-Dca39bYA.js.map +0 -1
  356. package/dist/index.js.map +0 -1
  357. package/dist/inputs/AddDeleteButtonGroup.js.map +0 -1
  358. package/dist/inputs/CheckboxInput.js.map +0 -1
  359. package/dist/inputs/ComboboxInput.js.map +0 -1
  360. package/dist/inputs/DatepickerInput.js.map +0 -1
  361. package/dist/inputs/EmailInput.js.map +0 -1
  362. package/dist/inputs/EmptyInput.js.map +0 -1
  363. package/dist/inputs/FileDropzoneInput.js.map +0 -1
  364. package/dist/inputs/HiddenInput.js.map +0 -1
  365. package/dist/inputs/PhoneInput.js.map +0 -1
  366. package/dist/inputs/RichTextInput.js.map +0 -1
  367. package/dist/inputs/SelectInput.js.map +0 -1
  368. package/dist/inputs/SelectTextInput.js.map +0 -1
  369. package/dist/inputs/SwitchInput.js.map +0 -1
  370. package/dist/inputs/SwitchInputGroup.js.map +0 -1
  371. package/dist/inputs/TagifyInput.js.map +0 -1
  372. package/dist/inputs/TextAreaInput.js.map +0 -1
  373. package/dist/inputs/TextInput.js.map +0 -1
  374. package/dist/keyboard-Dd_2-cFu.js +0 -5
  375. package/dist/keyboard-Dd_2-cFu.js.map +0 -1
  376. package/dist/layouts/DashboardLayout.js.map +0 -1
  377. package/dist/layouts/DefaultLayout.js.map +0 -1
  378. package/dist/layouts/HeaderLayout.js.map +0 -1
  379. package/dist/layouts/NavigationGroup.js.map +0 -1
  380. package/dist/layouts/NavigationItem.js.map +0 -1
  381. package/dist/layouts/ProfileHeaderAvatar.js.map +0 -1
  382. package/dist/layouts/ProjectLogo.js.map +0 -1
  383. package/dist/layouts/SidebarLayout.js.map +0 -1
  384. package/dist/listbox-YaWWZiiG.js +0 -257
  385. package/dist/listbox-YaWWZiiG.js.map +0 -1
  386. package/dist/loading/ContentSkeleton.js.map +0 -1
  387. package/dist/loading/SmartLoadingIndicator.js.map +0 -1
  388. package/dist/loading/index.js.map +0 -1
  389. package/dist/mapThemes-DFE9fZm3.js.map +0 -1
  390. package/dist/maps/GoogleMap.js.map +0 -1
  391. package/dist/maps/UiInfoWindow.js.map +0 -1
  392. package/dist/maps/UiMap.js.map +0 -1
  393. package/dist/maps/UiMapAll.js.map +0 -1
  394. package/dist/maps/UiMapMarker.js.map +0 -1
  395. package/dist/maps/index.js.map +0 -1
  396. package/dist/micro-task-D-oTY33s.js +0 -9
  397. package/dist/micro-task-D-oTY33s.js.map +0 -1
  398. package/dist/modals/AlertModal.js.map +0 -1
  399. package/dist/modals/BaseModal.js.map +0 -1
  400. package/dist/modals/ImageCropperModal.js.map +0 -1
  401. package/dist/notifications/NotificationContainer.js.map +0 -1
  402. package/dist/notifications/NotificationToast.js.map +0 -1
  403. package/dist/notifications/index.js.map +0 -1
  404. package/dist/open-closed-JTEvYTg2.js +0 -19
  405. package/dist/open-closed-JTEvYTg2.js.map +0 -1
  406. package/dist/render-QUUPyNjX.js +0 -101
  407. package/dist/render-QUUPyNjX.js.map +0 -1
  408. package/dist/stepper/StepperPanels.js.map +0 -1
  409. package/dist/stepper/index.js.map +0 -1
  410. package/dist/tabs/InlineTabs.js.map +0 -1
  411. package/dist/tabs/TabGroup.js.map +0 -1
  412. package/dist/tabs/TabGroupUnderline.js.map +0 -1
  413. package/dist/tabs/TabsInPills.js.map +0 -1
  414. package/dist/tabs/index.js.map +0 -1
  415. package/dist/tabs-J5phClGv.js +0 -202
  416. package/dist/tabs-J5phClGv.js.map +0 -1
  417. package/dist/transition-_rPfnoET.js +0 -191
  418. package/dist/transition-_rPfnoET.js.map +0 -1
  419. package/dist/use-outside-click-14T0Zn98.js +0 -151
  420. package/dist/use-outside-click-14T0Zn98.js.map +0 -1
  421. package/dist/use-resolve-button-type-h6n-lm9q.js +0 -20
  422. package/dist/use-resolve-button-type-h6n-lm9q.js.map +0 -1
  423. package/dist/use-text-value-DKnkjK00.js +0 -44
  424. package/dist/use-text-value-DKnkjK00.js.map +0 -1
  425. package/dist/use-tree-walker-Bo9gIb_K.js +0 -16
  426. package/dist/use-tree-walker-Bo9gIb_K.js.map +0 -1
  427. package/dist/useEventSegments-B-r_8zCW.js.map +0 -1
  428. package/dist/useMap-BaZEIoWM.js +0 -525
  429. package/dist/useMap-BaZEIoWM.js.map +0 -1
  430. package/dist/useSimpleTabs-CSgkChEU.js.map +0 -1
  431. package/dist/useStringTransform-CSr7nZWg.js.map +0 -1
  432. package/dist/vue-datepicker-CEn0-fJj.js +0 -4871
  433. package/dist/vue-datepicker-CEn0-fJj.js.map +0 -1
  434. package/dist/vue-router-B3K2xmg_.js +0 -120
  435. package/dist/vue-router-B3K2xmg_.js.map +0 -1
  436. package/dist/vue3-lottie.es-DT4qZE-F.js +0 -7981
  437. package/dist/vue3-lottie.es-DT4qZE-F.js.map +0 -1
  438. package/dist/wrappers/BackgroundGradientWrapper.js.map +0 -1
  439. package/dist/wrappers/CardWrapper.js.map +0 -1
  440. package/dist/wrappers/DisclosureWrapper.js.map +0 -1
  441. package/dist/wrappers/FormErrorWrapper.js.map +0 -1
  442. package/dist/wrappers/index.js.map +0 -1
@@ -1,2167 +0,0 @@
1
- import { defineComponent as j, toRef as I, provide as U, ref as b, inject as O, computed as V, watch as P, markRaw as q, onBeforeUnmount as Z, createElementBlock as de, openBlock as me, Fragment as ct, createCommentVNode as pt, renderSlot as fe, createElementVNode as Ye, mergeProps as dt, Comment as be, onMounted as Je, normalizeProps as mt, guardReactiveProps as ft } from "vue";
2
- (function() {
3
- try {
4
- if (typeof document < "u") {
5
- var t = document.createElement("style");
6
- t.appendChild(document.createTextNode(".mapdiv[data-v-c63ff230]{width:100%;height:100%}.advanced-marker-wrapper{display:none}.mapdiv .advanced-marker-wrapper{display:inline-block}.custom-control-wrapper[data-v-ab9120cd]{display:none}.mapdiv .custom-control-wrapper[data-v-ab9120cd]{display:inline-block}.info-window-wrapper[data-v-d182c1f9]{display:none}.mapdiv .info-window-wrapper[data-v-d182c1f9]{display:inline-block}.custom-marker-wrapper[data-v-2d2d343a]{display:none}.mapdiv .custom-marker-wrapper[data-v-2d2d343a]{display:inline-block}")), document.head.appendChild(t);
7
- }
8
- } catch (e) {
9
- console.error("vite-plugin-css-injected-by-js", e);
10
- }
11
- })();
12
- var ht = Object.defineProperty, vt = (t, e, r) => e in t ? ht(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, he = (t, e, r) => (vt(t, typeof e != "symbol" ? e + "" : e, r), r);
13
- const z = Symbol("map"), D = Symbol("api"), ke = Symbol("marker"), we = Symbol("markerCluster"), ne = Symbol("CustomMarker"), Qe = Symbol("mapTilesLoaded"), F = [
14
- "click",
15
- "dblclick",
16
- "drag",
17
- "dragend",
18
- "dragstart",
19
- "mousedown",
20
- "mousemove",
21
- "mouseout",
22
- "mouseover",
23
- "mouseup",
24
- "rightclick"
25
- ];
26
- function gt(t, e) {
27
- t.src = e;
28
- }
29
- const yt = (t) => {
30
- var e, r, o, a = "The Google Maps JavaScript API", n = "google", i = "importLibrary", l = "__ib__", s = document, c = window, d = c[n] || (c[n] = {}), u = d.maps || (d.maps = {}), m = /* @__PURE__ */ new Set(), p = new URLSearchParams(), h = () => e || (e = new Promise(async (f, v) => {
31
- var g;
32
- await (r = s.createElement("script")), p.set("libraries", [...m] + "");
33
- for (o in t)
34
- p.set(o.replace(/[A-Z]/g, (y) => "_" + y[0].toLowerCase()), t[o]);
35
- p.set("callback", n + ".maps." + l), gt(r, "https://maps.googleapis.com/maps/api/js?" + p), u[l] = f, r.onerror = () => e = v(Error(a + " could not load.")), r.nonce = ((g = s.querySelector("script[nonce]")) == null ? void 0 : g.nonce) || "", s.head.append(r);
36
- }));
37
- u[i] ? console.warn(a + " only loads once. Ignoring:", t) : u[i] = (f, ...v) => m.add(f) && h().then(() => u[i](f, ...v));
38
- }, bt = (t) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(t)}) will be ignored.`, kt = (t) => `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(t)}) will be ignored.`, wt = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", Mt = "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.", Me = process.env.NODE_ENV !== "production" ? (t) => {
39
- console.warn(`[@googlemaps/js-api-loader] ${t}`);
40
- } : () => {
41
- }, Et = process.env.NODE_ENV !== "production" ? (t) => {
42
- console.info(`[@googlemaps/js-api-loader] ${t}`);
43
- } : () => {
44
- };
45
- let ve = !1;
46
- function Ot(t) {
47
- if (ve) {
48
- Me(bt(t));
49
- return;
50
- }
51
- xt(t), ve = !0;
52
- }
53
- async function Ct(t) {
54
- var e, r;
55
- if (ve || Me(wt), !((r = (e = window?.google) == null ? void 0 : e.maps) != null && r.importLibrary))
56
- throw new Error("google.maps.importLibrary is not installed.");
57
- return await google.maps.importLibrary(t);
58
- }
59
- function xt(t) {
60
- var e, r;
61
- const o = !!((r = (e = window.google) == null ? void 0 : e.maps) != null && r.importLibrary);
62
- o ? Et(kt(t)) : process.env.NODE_ENV !== "production" && document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]') && Me(Mt), o || yt(t);
63
- }
64
- function _t(t) {
65
- return class extends t.OverlayView {
66
- constructor(e) {
67
- super(), he(this, "element"), he(this, "opts");
68
- const { element: r, ...o } = e;
69
- this.element = r, this.opts = o, this.opts.map && this.setMap(this.opts.map);
70
- }
71
- getPosition() {
72
- return this.opts.position ? this.opts.position instanceof t.LatLng ? this.opts.position : new t.LatLng(this.opts.position) : null;
73
- }
74
- getVisible() {
75
- if (!this.element)
76
- return !1;
77
- const e = this.element;
78
- return e.style.display !== "none" && e.style.visibility !== "hidden" && (e.style.opacity === "" || Number(e.style.opacity) > 0.01);
79
- }
80
- onAdd() {
81
- if (!this.element)
82
- return;
83
- const e = this.getPanes();
84
- e && e.overlayMouseTarget.appendChild(this.element);
85
- }
86
- draw() {
87
- if (!this.element)
88
- return;
89
- const e = this.getProjection(), r = e?.fromLatLngToDivPixel(this.getPosition());
90
- if (r) {
91
- this.element.style.position = "absolute";
92
- let o, a;
93
- switch (this.opts.anchorPoint) {
94
- case "TOP_CENTER":
95
- o = "-50%", a = "-100%";
96
- break;
97
- case "BOTTOM_CENTER":
98
- o = "-50%", a = "0";
99
- break;
100
- case "LEFT_CENTER":
101
- o = "-100%", a = "-50%";
102
- break;
103
- case "RIGHT_CENTER":
104
- o = "0", a = "-50%";
105
- break;
106
- case "TOP_LEFT":
107
- o = "-100%", a = "-100%";
108
- break;
109
- case "TOP_RIGHT":
110
- o = "0", a = "-100%";
111
- break;
112
- case "BOTTOM_LEFT":
113
- o = "-100%", a = "0";
114
- break;
115
- case "BOTTOM_RIGHT":
116
- o = "0", a = "0";
117
- break;
118
- default:
119
- o = "-50%", a = "-50%";
120
- }
121
- const n = r.x + (this.opts.offsetX || 0) + "px", i = r.y + (this.opts.offsetY || 0) + "px";
122
- this.element.style.transform = `translateX(${o}) translateX(${n}) translateY(${a}) translateY(${i})`, this.opts.zIndex && (this.element.style.zIndex = this.opts.zIndex.toString());
123
- }
124
- }
125
- onRemove() {
126
- this.element && this.element.remove();
127
- }
128
- setOptions(e) {
129
- const { element: r, ...o } = e;
130
- this.element = r, this.opts = o, this.draw();
131
- }
132
- };
133
- }
134
- let xe = !1;
135
- const _e = [
136
- "bounds_changed",
137
- "center_changed",
138
- "click",
139
- "contextmenu",
140
- "dblclick",
141
- "drag",
142
- "dragend",
143
- "dragstart",
144
- "heading_changed",
145
- "idle",
146
- "isfractionalzoomenabled_changed",
147
- "mapcapabilities_changed",
148
- "maptypeid_changed",
149
- "mousemove",
150
- "mouseout",
151
- "mouseover",
152
- "projection_changed",
153
- "renderingtype_changed",
154
- "rightclick",
155
- "tilesloaded",
156
- "tilt_changed",
157
- "zoom_changed"
158
- ], Pt = j({
159
- props: {
160
- apiPromise: {
161
- type: Promise
162
- },
163
- apiKey: {
164
- type: String,
165
- default: ""
166
- },
167
- version: {
168
- type: String,
169
- default: "weekly"
170
- },
171
- libraries: {
172
- type: Array,
173
- default: () => ["places", "marker"]
174
- },
175
- region: {
176
- type: String,
177
- required: !1
178
- },
179
- language: {
180
- type: String,
181
- required: !1
182
- },
183
- backgroundColor: {
184
- type: String,
185
- required: !1
186
- },
187
- center: {
188
- type: Object,
189
- default: () => ({ lat: 0, lng: 0 })
190
- },
191
- clickableIcons: {
192
- type: Boolean,
193
- required: !1,
194
- default: void 0
195
- },
196
- colorScheme: {
197
- type: String,
198
- required: !1
199
- },
200
- controlSize: {
201
- type: Number,
202
- required: !1
203
- },
204
- disableDefaultUi: {
205
- type: Boolean,
206
- required: !1,
207
- default: void 0
208
- },
209
- disableDoubleClickZoom: {
210
- type: Boolean,
211
- required: !1,
212
- default: void 0
213
- },
214
- draggable: {
215
- type: Boolean,
216
- required: !1,
217
- default: void 0
218
- },
219
- draggableCursor: {
220
- type: String,
221
- required: !1
222
- },
223
- draggingCursor: {
224
- type: String,
225
- required: !1
226
- },
227
- fullscreenControl: {
228
- type: Boolean,
229
- required: !1,
230
- default: void 0
231
- },
232
- fullscreenControlPosition: {
233
- type: String,
234
- required: !1
235
- },
236
- gestureHandling: {
237
- type: String,
238
- required: !1
239
- },
240
- heading: {
241
- type: Number,
242
- required: !1
243
- },
244
- isFractionalZoomEnabled: {
245
- type: Boolean,
246
- required: !1,
247
- default: void 0
248
- },
249
- keyboardShortcuts: {
250
- type: Boolean,
251
- required: !1,
252
- default: void 0
253
- },
254
- mapTypeControl: {
255
- type: Boolean,
256
- required: !1,
257
- default: void 0
258
- },
259
- mapTypeControlOptions: {
260
- type: Object,
261
- required: !1
262
- },
263
- mapTypeId: {
264
- type: [Number, String],
265
- required: !1
266
- },
267
- mapId: {
268
- type: String,
269
- required: !1
270
- },
271
- maxZoom: {
272
- type: Number,
273
- required: !1
274
- },
275
- minZoom: {
276
- type: Number,
277
- required: !1
278
- },
279
- noClear: {
280
- type: Boolean,
281
- required: !1,
282
- default: void 0
283
- },
284
- panControl: {
285
- type: Boolean,
286
- required: !1,
287
- default: void 0
288
- },
289
- panControlPosition: {
290
- type: String,
291
- required: !1
292
- },
293
- restriction: {
294
- type: Object,
295
- required: !1
296
- },
297
- rotateControl: {
298
- type: Boolean,
299
- required: !1,
300
- default: void 0
301
- },
302
- rotateControlPosition: {
303
- type: String,
304
- required: !1
305
- },
306
- scaleControl: {
307
- type: Boolean,
308
- required: !1,
309
- default: void 0
310
- },
311
- scaleControlStyle: {
312
- type: Number,
313
- required: !1
314
- },
315
- scrollwheel: {
316
- type: Boolean,
317
- required: !1,
318
- default: void 0
319
- },
320
- streetView: {
321
- type: Object,
322
- required: !1
323
- },
324
- streetViewControl: {
325
- type: Boolean,
326
- required: !1,
327
- default: void 0
328
- },
329
- streetViewControlPosition: {
330
- type: String,
331
- required: !1
332
- },
333
- styles: {
334
- type: Array,
335
- required: !1
336
- },
337
- tilt: {
338
- type: Number,
339
- required: !1
340
- },
341
- zoom: {
342
- type: Number,
343
- required: !1
344
- },
345
- zoomControl: {
346
- type: Boolean,
347
- required: !1,
348
- default: void 0
349
- },
350
- zoomControlPosition: {
351
- type: String,
352
- required: !1
353
- },
354
- cameraControl: {
355
- type: Boolean,
356
- required: !1,
357
- default: void 0
358
- },
359
- cameraControlPosition: {
360
- type: String,
361
- required: !1
362
- }
363
- },
364
- emits: _e,
365
- setup(t, { emit: e }) {
366
- const r = b(), o = b(!1), a = b(), n = b(), i = b(!1);
367
- U(z, a), U(D, n), U(Qe, i);
368
- const l = () => {
369
- const u = { ...t };
370
- Object.keys(u).forEach((h) => {
371
- u[h] === void 0 && delete u[h];
372
- });
373
- const m = (h) => {
374
- var f;
375
- return h ? { position: (f = n.value) == null ? void 0 : f.ControlPosition[h] } : {};
376
- }, p = {
377
- scaleControlOptions: t.scaleControlStyle ? { style: t.scaleControlStyle } : {},
378
- panControlOptions: m(t.panControlPosition),
379
- zoomControlOptions: m(t.zoomControlPosition),
380
- rotateControlOptions: m(t.rotateControlPosition),
381
- streetViewControlOptions: m(t.streetViewControlPosition),
382
- fullscreenControlOptions: m(t.fullscreenControlPosition),
383
- cameraControlOptions: m(t.cameraControlPosition),
384
- disableDefaultUI: t.disableDefaultUi
385
- };
386
- return { ...u, ...p };
387
- }, s = P(
388
- [n, a],
389
- ([u, m]) => {
390
- const p = u, h = m;
391
- p && h && (p.event.addListenerOnce(h, "tilesloaded", () => {
392
- i.value = !0;
393
- }), setTimeout(s, 0));
394
- },
395
- { immediate: !0 }
396
- ), c = () => {
397
- const { apiKey: u, region: m, version: p, language: h, libraries: f } = t;
398
- Ot({ key: u, region: m, v: p, language: h, libraries: f });
399
- }, d = (u) => {
400
- const m = u ? u.maps : google.maps;
401
- n.value = q(m), a.value = q(new m.Map(r.value, l()));
402
- const p = _t(n.value);
403
- n.value[ne] = p, _e.forEach((f) => {
404
- var v;
405
- (v = a.value) == null || v.addListener(f, (g) => e(f, g));
406
- }), o.value = !0;
407
- const h = Object.keys(t).filter(
408
- (f) => !["apiPromise", "apiKey", "version", "libraries", "region", "language", "center", "zoom"].includes(f)
409
- ).map((f) => I(t, f));
410
- P(
411
- [() => t.center, () => t.zoom, ...h],
412
- ([f, v], [g, y]) => {
413
- var M, x, C;
414
- const { center: k, zoom: w, ..._ } = l();
415
- (M = a.value) == null || M.setOptions(_), v !== void 0 && v !== y && ((x = a.value) == null || x.setZoom(v));
416
- const R = !g || f.lng !== g.lng || f.lat !== g.lat;
417
- f && R && ((C = a.value) == null || C.panTo(f));
418
- }
419
- );
420
- };
421
- return Je(() => {
422
- if (t.apiPromise && t.apiPromise instanceof Promise)
423
- t.apiPromise.then(d);
424
- else {
425
- xe || (c(), xe = !0);
426
- const u = t.libraries && t.libraries.length > 0 ? t.libraries : ["maps", "marker"];
427
- Promise.all(u.map((m) => Ct(m))).then(() => d());
428
- }
429
- }), Z(() => {
430
- var u;
431
- i.value = !1, a.value && ((u = n.value) == null || u.event.clearInstanceListeners(a.value));
432
- }), { mapRef: r, ready: o, map: a, api: n, mapTilesLoaded: i };
433
- }
434
- }), et = (t, e) => {
435
- const r = t.__vccOpts || t;
436
- for (const [o, a] of e)
437
- r[o] = a;
438
- return r;
439
- }, jt = {
440
- ref: "mapRef",
441
- class: "mapdiv"
442
- };
443
- function qt(t, e, r, o, a, n) {
444
- return me(), de("div", null, [
445
- Ye("div", jt, null, 512),
446
- fe(t.$slots, "default", mt(ft({ ready: t.ready, map: t.map, api: t.api, mapTilesLoaded: t.mapTilesLoaded })), void 0, !0)
447
- ]);
448
- }
449
- const po = /* @__PURE__ */ et(Pt, [["render", qt], ["__scopeId", "data-v-c63ff230"]]);
450
- function Lt(t) {
451
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
452
- }
453
- var St = function t(e, r) {
454
- if (e === r)
455
- return !0;
456
- if (e && r && typeof e == "object" && typeof r == "object") {
457
- if (e.constructor !== r.constructor)
458
- return !1;
459
- var o, a, n;
460
- if (Array.isArray(e)) {
461
- if (o = e.length, o != r.length)
462
- return !1;
463
- for (a = o; a-- !== 0; )
464
- if (!t(e[a], r[a]))
465
- return !1;
466
- return !0;
467
- }
468
- if (e.constructor === RegExp)
469
- return e.source === r.source && e.flags === r.flags;
470
- if (e.valueOf !== Object.prototype.valueOf)
471
- return e.valueOf() === r.valueOf();
472
- if (e.toString !== Object.prototype.toString)
473
- return e.toString() === r.toString();
474
- if (n = Object.keys(e), o = n.length, o !== Object.keys(r).length)
475
- return !1;
476
- for (a = o; a-- !== 0; )
477
- if (!Object.prototype.hasOwnProperty.call(r, n[a]))
478
- return !1;
479
- for (a = o; a-- !== 0; ) {
480
- var i = n[a];
481
- if (!t(e[i], r[i]))
482
- return !1;
483
- }
484
- return !0;
485
- }
486
- return e !== e && r !== r;
487
- };
488
- const Y = /* @__PURE__ */ Lt(St), Pe = ["click", "drag", "dragend", "dragstart", "gmp-click"], At = j({
489
- name: "AdvancedMarker",
490
- props: {
491
- options: {
492
- type: Object,
493
- required: !0
494
- },
495
- pinOptions: {
496
- type: Object,
497
- required: !1
498
- }
499
- },
500
- emits: Pe,
501
- setup(t, { emit: e, expose: r, slots: o }) {
502
- const a = b(), n = V(() => {
503
- var p;
504
- return (p = o.content) == null ? void 0 : p.call(o).some((h) => h.type !== be);
505
- }), i = I(t, "options"), l = I(t, "pinOptions"), s = b(), c = O(z, b()), d = O(D, b()), u = O(we, b()), m = V(
506
- () => !!(u.value && d.value && s.value instanceof google.maps.marker.AdvancedMarkerElement)
507
- );
508
- return P(
509
- [c, i, l, a],
510
- async (p, [h, f, v, g]) => {
511
- var y, M, x;
512
- const C = !Y(i.value, f) || !Y(l.value, v), k = a.value !== g, w = C || k || c.value !== h;
513
- if (!c.value || !d.value || !w || n.value && !a.value)
514
- return;
515
- const { AdvancedMarkerElement: _, PinElement: R } = d.value.marker;
516
- if (s.value) {
517
- const { map: se, content: Q, ...ie } = i.value;
518
- Object.assign(s.value, {
519
- content: n.value ? a.value : l.value ? new R(l.value).element : Q,
520
- ...ie
521
- }), m.value && ((y = u.value) == null || y.removeMarker(s.value), (M = u.value) == null || M.addMarker(s.value));
522
- } else
523
- n.value ? i.value.content = a.value : l.value && (i.value.content = new R(l.value).element), s.value = q(new _(i.value)), m.value ? (x = u.value) == null || x.addMarker(s.value) : s.value.map = c.value, Pe.forEach((se) => {
524
- var Q;
525
- (Q = s.value) == null || Q.addListener(se, (ie) => e(se, ie));
526
- });
527
- },
528
- {
529
- immediate: !0,
530
- flush: "post"
531
- // Ensure DOM updates happen before this watcher runs
532
- }
533
- ), Z(() => {
534
- var p, h;
535
- s.value && ((p = d.value) == null || p.event.clearInstanceListeners(s.value), m.value ? (h = u.value) == null || h.removeMarker(s.value) : s.value.map = null);
536
- }), U(ke, s), r({ marker: s }), { hasCustomSlotContent: n, markerRef: a };
537
- }
538
- }), Tt = {
539
- key: 0,
540
- class: "advanced-marker-wrapper"
541
- };
542
- function It(t, e, r, o, a, n) {
543
- return me(), de(ct, null, [
544
- t.hasCustomSlotContent ? (me(), de("div", Tt, [
545
- Ye("div", dt({ ref: "markerRef" }, t.$attrs), [
546
- fe(t.$slots, "content")
547
- ], 16)
548
- ])) : pt("", !0),
549
- fe(t.$slots, "default")
550
- ], 64);
551
- }
552
- const mo = /* @__PURE__ */ et(At, [["render", It]]), je = (t) => t === "Marker", qe = (t) => t === ne, W = (t, e, r, o) => {
553
- const a = b(), n = O(z, b()), i = O(D, b()), l = O(we, b()), s = V(
554
- () => !!(l.value && i.value && (a.value instanceof i.value.Marker || a.value instanceof i.value[ne]))
555
- );
556
- return P(
557
- [n, r],
558
- (c, [d, u]) => {
559
- var m, p, h;
560
- const f = !Y(r.value, u) || n.value !== d;
561
- if (!(!n.value || !i.value || !f))
562
- if (a.value)
563
- a.value.setOptions(r.value), s.value && ((m = l.value) == null || m.removeMarker(a.value), (p = l.value) == null || p.addMarker(a.value));
564
- else {
565
- if (je(t))
566
- a.value = q(
567
- new i.value[t](r.value)
568
- );
569
- else if (qe(t)) {
570
- const v = r.value;
571
- v.element && (a.value = q(new i.value[t](v)));
572
- } else
573
- a.value = q(
574
- new i.value[t]({
575
- ...r.value,
576
- map: n.value
577
- })
578
- );
579
- a.value && (s.value ? (h = l.value) == null || h.addMarker(a.value) : (je(t) || qe(t)) && a.value.setMap(n.value)), e.forEach((v) => {
580
- var g;
581
- (g = a.value) == null || g.addListener(v, (y) => o(v, y));
582
- });
583
- }
584
- },
585
- {
586
- immediate: !0,
587
- flush: "post"
588
- }
589
- ), Z(() => {
590
- var c, d;
591
- a.value && ((c = i.value) == null || c.event.clearInstanceListeners(a.value), s.value ? (d = l.value) == null || d.removeMarker(a.value) : a.value.setMap(null));
592
- }), a;
593
- }, Le = [
594
- "animation_changed",
595
- "click",
596
- "dblclick",
597
- "rightclick",
598
- "dragstart",
599
- "dragend",
600
- "drag",
601
- "mouseover",
602
- "mousedown",
603
- "mouseout",
604
- "mouseup",
605
- "draggable_changed",
606
- "clickable_changed",
607
- "contextmenu",
608
- "cursor_changed",
609
- "flat_changed",
610
- "zindex_changed",
611
- "icon_changed",
612
- "position_changed",
613
- "shape_changed",
614
- "title_changed",
615
- "visible_changed"
616
- ], fo = j({
617
- name: "Marker",
618
- props: {
619
- options: {
620
- type: Object,
621
- required: !0
622
- }
623
- },
624
- emits: Le,
625
- setup(t, { emit: e, expose: r, slots: o }) {
626
- const a = I(t, "options"), n = W("Marker", Le, a, e);
627
- return U(ke, n), r({ marker: n }), () => {
628
- var i;
629
- return (i = o.default) == null ? void 0 : i.call(o);
630
- };
631
- }
632
- });
633
- j({
634
- name: "Polyline",
635
- props: {
636
- options: {
637
- type: Object,
638
- required: !0
639
- }
640
- },
641
- emits: F,
642
- setup(t, { emit: e }) {
643
- const r = I(t, "options");
644
- return { polyline: W("Polyline", F, r, e) };
645
- },
646
- render: () => null
647
- });
648
- j({
649
- name: "Polygon",
650
- props: {
651
- options: {
652
- type: Object,
653
- required: !0
654
- }
655
- },
656
- emits: F,
657
- setup(t, { emit: e }) {
658
- const r = I(t, "options");
659
- return { polygon: W("Polygon", F, r, e) };
660
- },
661
- render: () => null
662
- });
663
- const Se = F.concat(["bounds_changed"]);
664
- j({
665
- name: "Rectangle",
666
- props: {
667
- options: {
668
- type: Object,
669
- required: !0
670
- }
671
- },
672
- emits: Se,
673
- setup(t, { emit: e }) {
674
- const r = I(t, "options");
675
- return { rectangle: W("Rectangle", Se, r, e) };
676
- },
677
- render: () => null
678
- });
679
- const Ae = F.concat(["center_changed", "radius_changed"]);
680
- j({
681
- name: "Circle",
682
- props: {
683
- options: {
684
- type: Object,
685
- required: !0
686
- }
687
- },
688
- emits: Ae,
689
- setup(t, { emit: e }) {
690
- const r = I(t, "options");
691
- return { circle: W("Circle", Ae, r, e) };
692
- },
693
- render: () => null
694
- });
695
- j({
696
- props: {
697
- position: {
698
- type: String,
699
- required: !0
700
- },
701
- index: {
702
- type: Number,
703
- default: 1
704
- }
705
- },
706
- emits: ["content:loaded"],
707
- setup(t, { emit: e }) {
708
- const r = b(null), o = O(z, b()), a = O(D, b()), n = O(Qe, b(!1)), i = P(
709
- [n, a, r],
710
- ([c, d, u]) => {
711
- d && c && u && (l(t.position), e("content:loaded"), setTimeout(i, 0));
712
- },
713
- { immediate: !0 }
714
- ), l = (c) => {
715
- if (o.value && a.value && r.value) {
716
- const d = a.value.ControlPosition[c];
717
- r.value.index = t.index, o.value.controls[d].push(r.value);
718
- }
719
- }, s = (c) => {
720
- if (o.value && a.value) {
721
- let d = null;
722
- const u = a.value.ControlPosition[c];
723
- o.value.controls[u].forEach((m, p) => {
724
- m === r.value && (d = p);
725
- }), d !== null && o.value.controls[u].removeAt(d);
726
- }
727
- };
728
- return Z(() => s(t.position)), P(
729
- () => t.position,
730
- (c, d) => {
731
- s(d), l(c);
732
- }
733
- ), P(
734
- () => t.index,
735
- (c) => {
736
- r.value && (r.value.index = c);
737
- }
738
- ), { controlRef: r };
739
- }
740
- });
741
- const Te = [
742
- "closeclick",
743
- "content_changed",
744
- "domready",
745
- "position_changed",
746
- "visible",
747
- "zindex_changed"
748
- ];
749
- j({
750
- inheritAttrs: !1,
751
- props: {
752
- options: {
753
- type: Object,
754
- default: () => ({})
755
- },
756
- modelValue: {
757
- type: Boolean
758
- }
759
- },
760
- emits: [...Te, "update:modelValue"],
761
- setup(t, { slots: e, emit: r, expose: o }) {
762
- const a = b(), n = b(), i = O(z, b()), l = O(D, b()), s = O(ke, b());
763
- let c, d = t.modelValue;
764
- const u = V(() => {
765
- var f;
766
- return (f = e.default) == null ? void 0 : f.call(e).some((v) => v.type !== be);
767
- }), m = (f) => {
768
- d = f, r("update:modelValue", f);
769
- }, p = (f) => {
770
- a.value && (a.value.open({ map: i.value, anchor: s.value, ...f }), m(!0));
771
- }, h = () => {
772
- a.value && (a.value.close(), m(!1));
773
- };
774
- return Je(() => {
775
- P(
776
- [i, () => t.options],
777
- ([f, v], [g, y]) => {
778
- var M;
779
- const x = !Y(v, y) || i.value !== g;
780
- i.value && l.value && x && (a.value ? (a.value.setOptions({
781
- ...v,
782
- content: u.value ? n.value : v.content
783
- }), s.value || p()) : (a.value = q(
784
- new l.value.InfoWindow({
785
- ...v,
786
- content: u.value ? n.value : v.content
787
- })
788
- ), s.value && (c = s.value.addListener("click", () => p())), (!s.value || d) && p(), Te.forEach((C) => {
789
- var k;
790
- (k = a.value) == null || k.addListener(C, (w) => r(C, w));
791
- }), (M = a.value) == null || M.addListener("closeclick", () => m(!1))));
792
- },
793
- {
794
- immediate: !0,
795
- flush: "post"
796
- }
797
- ), P(
798
- s,
799
- (f, v) => {
800
- !a.value || f === v || (c && (c.remove(), c = void 0), f && (c = f.addListener("click", () => p())));
801
- },
802
- {
803
- flush: "post"
804
- }
805
- ), P(
806
- () => t.modelValue,
807
- (f) => {
808
- f !== d && (f ? p() : h());
809
- }
810
- );
811
- }), Z(() => {
812
- var f;
813
- c && c.remove(), a.value && ((f = l.value) == null || f.event.clearInstanceListeners(a.value), h());
814
- }), o({ infoWindow: a, open: p, close: h }), { infoWindow: a, infoWindowRef: n, hasSlotContent: u, open: p, close: h };
815
- }
816
- });
817
- var Nt = Object.getOwnPropertyNames, Rt = Object.getOwnPropertySymbols, Bt = Object.prototype.hasOwnProperty;
818
- function Ie(t, e) {
819
- return function(r, o, a) {
820
- return t(r, o, a) && e(r, o, a);
821
- };
822
- }
823
- function ee(t) {
824
- return function(e, r, o) {
825
- if (!e || !r || typeof e != "object" || typeof r != "object")
826
- return t(e, r, o);
827
- var a = o.cache, n = a.get(e), i = a.get(r);
828
- if (n && i)
829
- return n === r && i === e;
830
- a.set(e, r), a.set(r, e);
831
- var l = t(e, r, o);
832
- return a.delete(e), a.delete(r), l;
833
- };
834
- }
835
- function Ne(t) {
836
- return Nt(t).concat(Rt(t));
837
- }
838
- var Zt = Object.hasOwn || function(t, e) {
839
- return Bt.call(t, e);
840
- };
841
- function $(t, e) {
842
- return t === e || !t && !e && t !== t && e !== e;
843
- }
844
- var zt = "__v", Dt = "__o", $t = "_owner", Re = Object.getOwnPropertyDescriptor, Be = Object.keys;
845
- function Ut(t, e, r) {
846
- var o = t.length;
847
- if (e.length !== o)
848
- return !1;
849
- for (; o-- > 0; )
850
- if (!r.equals(t[o], e[o], o, o, t, e, r))
851
- return !1;
852
- return !0;
853
- }
854
- function Vt(t, e) {
855
- return $(t.getTime(), e.getTime());
856
- }
857
- function Ft(t, e) {
858
- return t.name === e.name && t.message === e.message && t.cause === e.cause && t.stack === e.stack;
859
- }
860
- function Wt(t, e) {
861
- return t === e;
862
- }
863
- function Ze(t, e, r) {
864
- var o = t.size;
865
- if (o !== e.size)
866
- return !1;
867
- if (!o)
868
- return !0;
869
- for (var a = new Array(o), n = t.entries(), i, l, s = 0; (i = n.next()) && !i.done; ) {
870
- for (var c = e.entries(), d = !1, u = 0; (l = c.next()) && !l.done; ) {
871
- if (a[u]) {
872
- u++;
873
- continue;
874
- }
875
- var m = i.value, p = l.value;
876
- if (r.equals(m[0], p[0], s, u, t, e, r) && r.equals(m[1], p[1], m[0], p[0], t, e, r)) {
877
- d = a[u] = !0;
878
- break;
879
- }
880
- u++;
881
- }
882
- if (!d)
883
- return !1;
884
- s++;
885
- }
886
- return !0;
887
- }
888
- var Gt = $;
889
- function Kt(t, e, r) {
890
- var o = Be(t), a = o.length;
891
- if (Be(e).length !== a)
892
- return !1;
893
- for (; a-- > 0; )
894
- if (!tt(t, e, r, o[a]))
895
- return !1;
896
- return !0;
897
- }
898
- function G(t, e, r) {
899
- var o = Ne(t), a = o.length;
900
- if (Ne(e).length !== a)
901
- return !1;
902
- for (var n, i, l; a-- > 0; )
903
- if (n = o[a], !tt(t, e, r, n) || (i = Re(t, n), l = Re(e, n), (i || l) && (!i || !l || i.configurable !== l.configurable || i.enumerable !== l.enumerable || i.writable !== l.writable)))
904
- return !1;
905
- return !0;
906
- }
907
- function Ht(t, e) {
908
- return $(t.valueOf(), e.valueOf());
909
- }
910
- function Xt(t, e) {
911
- return t.source === e.source && t.flags === e.flags;
912
- }
913
- function ze(t, e, r) {
914
- var o = t.size;
915
- if (o !== e.size)
916
- return !1;
917
- if (!o)
918
- return !0;
919
- for (var a = new Array(o), n = t.values(), i, l; (i = n.next()) && !i.done; ) {
920
- for (var s = e.values(), c = !1, d = 0; (l = s.next()) && !l.done; ) {
921
- if (!a[d] && r.equals(i.value, l.value, i.value, l.value, t, e, r)) {
922
- c = a[d] = !0;
923
- break;
924
- }
925
- d++;
926
- }
927
- if (!c)
928
- return !1;
929
- }
930
- return !0;
931
- }
932
- function Yt(t, e) {
933
- var r = t.length;
934
- if (e.length !== r)
935
- return !1;
936
- for (; r-- > 0; )
937
- if (t[r] !== e[r])
938
- return !1;
939
- return !0;
940
- }
941
- function Jt(t, e) {
942
- return t.hostname === e.hostname && t.pathname === e.pathname && t.protocol === e.protocol && t.port === e.port && t.hash === e.hash && t.username === e.username && t.password === e.password;
943
- }
944
- function tt(t, e, r, o) {
945
- return (o === $t || o === Dt || o === zt) && (t.$$typeof || e.$$typeof) ? !0 : Zt(e, o) && r.equals(t[o], e[o], o, o, t, e, r);
946
- }
947
- var Qt = "[object Arguments]", er = "[object Boolean]", tr = "[object Date]", rr = "[object Error]", or = "[object Map]", ar = "[object Number]", nr = "[object Object]", sr = "[object RegExp]", ir = "[object Set]", lr = "[object String]", ur = "[object URL]", cr = Array.isArray, De = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null, $e = Object.assign, pr = Object.prototype.toString.call.bind(Object.prototype.toString);
948
- function dr(t) {
949
- var e = t.areArraysEqual, r = t.areDatesEqual, o = t.areErrorsEqual, a = t.areFunctionsEqual, n = t.areMapsEqual, i = t.areNumbersEqual, l = t.areObjectsEqual, s = t.arePrimitiveWrappersEqual, c = t.areRegExpsEqual, d = t.areSetsEqual, u = t.areTypedArraysEqual, m = t.areUrlsEqual;
950
- return function(p, h, f) {
951
- if (p === h)
952
- return !0;
953
- if (p == null || h == null)
954
- return !1;
955
- var v = typeof p;
956
- if (v !== typeof h)
957
- return !1;
958
- if (v !== "object")
959
- return v === "number" ? i(p, h, f) : v === "function" ? a(p, h, f) : !1;
960
- var g = p.constructor;
961
- if (g !== h.constructor)
962
- return !1;
963
- if (g === Object)
964
- return l(p, h, f);
965
- if (cr(p))
966
- return e(p, h, f);
967
- if (De != null && De(p))
968
- return u(p, h, f);
969
- if (g === Date)
970
- return r(p, h, f);
971
- if (g === RegExp)
972
- return c(p, h, f);
973
- if (g === Map)
974
- return n(p, h, f);
975
- if (g === Set)
976
- return d(p, h, f);
977
- var y = pr(p);
978
- return y === tr ? r(p, h, f) : y === sr ? c(p, h, f) : y === or ? n(p, h, f) : y === ir ? d(p, h, f) : y === nr ? typeof p.then != "function" && typeof h.then != "function" && l(p, h, f) : y === ur ? m(p, h, f) : y === rr ? o(p, h, f) : y === Qt ? l(p, h, f) : y === er || y === ar || y === lr ? s(p, h, f) : !1;
979
- };
980
- }
981
- function mr(t) {
982
- var e = t.circular, r = t.createCustomConfig, o = t.strict, a = {
983
- areArraysEqual: o ? G : Ut,
984
- areDatesEqual: Vt,
985
- areErrorsEqual: Ft,
986
- areFunctionsEqual: Wt,
987
- areMapsEqual: o ? Ie(Ze, G) : Ze,
988
- areNumbersEqual: Gt,
989
- areObjectsEqual: o ? G : Kt,
990
- arePrimitiveWrappersEqual: Ht,
991
- areRegExpsEqual: Xt,
992
- areSetsEqual: o ? Ie(ze, G) : ze,
993
- areTypedArraysEqual: o ? G : Yt,
994
- areUrlsEqual: Jt
995
- };
996
- if (r && (a = $e({}, a, r(a))), e) {
997
- var n = ee(a.areArraysEqual), i = ee(a.areMapsEqual), l = ee(a.areObjectsEqual), s = ee(a.areSetsEqual);
998
- a = $e({}, a, {
999
- areArraysEqual: n,
1000
- areMapsEqual: i,
1001
- areObjectsEqual: l,
1002
- areSetsEqual: s
1003
- });
1004
- }
1005
- return a;
1006
- }
1007
- function fr(t) {
1008
- return function(e, r, o, a, n, i, l) {
1009
- return t(e, r, l);
1010
- };
1011
- }
1012
- function hr(t) {
1013
- var e = t.circular, r = t.comparator, o = t.createState, a = t.equals, n = t.strict;
1014
- if (o)
1015
- return function(l, s) {
1016
- var c = o(), d = c.cache, u = d === void 0 ? e ? /* @__PURE__ */ new WeakMap() : void 0 : d, m = c.meta;
1017
- return r(l, s, {
1018
- cache: u,
1019
- equals: a,
1020
- meta: m,
1021
- strict: n
1022
- });
1023
- };
1024
- if (e)
1025
- return function(l, s) {
1026
- return r(l, s, {
1027
- cache: /* @__PURE__ */ new WeakMap(),
1028
- equals: a,
1029
- meta: void 0,
1030
- strict: n
1031
- });
1032
- };
1033
- var i = {
1034
- cache: void 0,
1035
- equals: a,
1036
- meta: void 0,
1037
- strict: n
1038
- };
1039
- return function(l, s) {
1040
- return r(l, s, i);
1041
- };
1042
- }
1043
- var oe = N();
1044
- N({ strict: !0 });
1045
- N({ circular: !0 });
1046
- N({
1047
- circular: !0,
1048
- strict: !0
1049
- });
1050
- N({
1051
- createInternalComparator: function() {
1052
- return $;
1053
- }
1054
- });
1055
- N({
1056
- strict: !0,
1057
- createInternalComparator: function() {
1058
- return $;
1059
- }
1060
- });
1061
- N({
1062
- circular: !0,
1063
- createInternalComparator: function() {
1064
- return $;
1065
- }
1066
- });
1067
- N({
1068
- circular: !0,
1069
- createInternalComparator: function() {
1070
- return $;
1071
- },
1072
- strict: !0
1073
- });
1074
- function N(t) {
1075
- t === void 0 && (t = {});
1076
- var e = t.circular, r = e === void 0 ? !1 : e, o = t.createInternalComparator, a = t.createState, n = t.strict, i = n === void 0 ? !1 : n, l = mr(t), s = dr(l), c = o ? o(s) : fr(s);
1077
- return hr({ circular: r, comparator: s, createState: a, equals: c, strict: i });
1078
- }
1079
- const Ue = [
1080
- Int8Array,
1081
- Uint8Array,
1082
- Uint8ClampedArray,
1083
- Int16Array,
1084
- Uint16Array,
1085
- Int32Array,
1086
- Uint32Array,
1087
- Float32Array,
1088
- Float64Array
1089
- ], le = 1, K = 8;
1090
- class Ee {
1091
- /**
1092
- * Creates an index from raw `ArrayBuffer` data.
1093
- * @param {ArrayBuffer} data
1094
- */
1095
- static from(e) {
1096
- if (!(e instanceof ArrayBuffer))
1097
- throw new Error("Data must be an instance of ArrayBuffer.");
1098
- const [r, o] = new Uint8Array(e, 0, 2);
1099
- if (r !== 219)
1100
- throw new Error("Data does not appear to be in a KDBush format.");
1101
- const a = o >> 4;
1102
- if (a !== le)
1103
- throw new Error(`Got v${a} data when expected v${le}.`);
1104
- const n = Ue[o & 15];
1105
- if (!n)
1106
- throw new Error("Unrecognized array type.");
1107
- const [i] = new Uint16Array(e, 2, 1), [l] = new Uint32Array(e, 4, 1);
1108
- return new Ee(l, i, n, e);
1109
- }
1110
- /**
1111
- * Creates an index that will hold a given number of items.
1112
- * @param {number} numItems
1113
- * @param {number} [nodeSize=64] Size of the KD-tree node (64 by default).
1114
- * @param {TypedArrayConstructor} [ArrayType=Float64Array] The array type used for coordinates storage (`Float64Array` by default).
1115
- * @param {ArrayBuffer} [data] (For internal use only)
1116
- */
1117
- constructor(e, r = 64, o = Float64Array, a) {
1118
- if (isNaN(e) || e < 0)
1119
- throw new Error(`Unpexpected numItems value: ${e}.`);
1120
- this.numItems = +e, this.nodeSize = Math.min(Math.max(+r, 2), 65535), this.ArrayType = o, this.IndexArrayType = e < 65536 ? Uint16Array : Uint32Array;
1121
- const n = Ue.indexOf(this.ArrayType), i = e * 2 * this.ArrayType.BYTES_PER_ELEMENT, l = e * this.IndexArrayType.BYTES_PER_ELEMENT, s = (8 - l % 8) % 8;
1122
- if (n < 0)
1123
- throw new Error(`Unexpected typed array class: ${o}.`);
1124
- a && a instanceof ArrayBuffer ? (this.data = a, this.ids = new this.IndexArrayType(this.data, K, e), this.coords = new this.ArrayType(this.data, K + l + s, e * 2), this._pos = e * 2, this._finished = !0) : (this.data = new ArrayBuffer(K + i + l + s), this.ids = new this.IndexArrayType(this.data, K, e), this.coords = new this.ArrayType(this.data, K + l + s, e * 2), this._pos = 0, this._finished = !1, new Uint8Array(this.data, 0, 2).set([219, (le << 4) + n]), new Uint16Array(this.data, 2, 1)[0] = r, new Uint32Array(this.data, 4, 1)[0] = e);
1125
- }
1126
- /**
1127
- * Add a point to the index.
1128
- * @param {number} x
1129
- * @param {number} y
1130
- * @returns {number} An incremental index associated with the added item (starting from `0`).
1131
- */
1132
- add(e, r) {
1133
- const o = this._pos >> 1;
1134
- return this.ids[o] = o, this.coords[this._pos++] = e, this.coords[this._pos++] = r, o;
1135
- }
1136
- /**
1137
- * Perform indexing of the added points.
1138
- */
1139
- finish() {
1140
- const e = this._pos >> 1;
1141
- if (e !== this.numItems)
1142
- throw new Error(`Added ${e} items when expected ${this.numItems}.`);
1143
- return ge(this.ids, this.coords, this.nodeSize, 0, this.numItems - 1, 0), this._finished = !0, this;
1144
- }
1145
- /**
1146
- * Search the index for items within a given bounding box.
1147
- * @param {number} minX
1148
- * @param {number} minY
1149
- * @param {number} maxX
1150
- * @param {number} maxY
1151
- * @returns {number[]} An array of indices correponding to the found items.
1152
- */
1153
- range(e, r, o, a) {
1154
- if (!this._finished)
1155
- throw new Error("Data not yet indexed - call index.finish().");
1156
- const { ids: n, coords: i, nodeSize: l } = this, s = [0, n.length - 1, 0], c = [];
1157
- for (; s.length; ) {
1158
- const d = s.pop() || 0, u = s.pop() || 0, m = s.pop() || 0;
1159
- if (u - m <= l) {
1160
- for (let v = m; v <= u; v++) {
1161
- const g = i[2 * v], y = i[2 * v + 1];
1162
- g >= e && g <= o && y >= r && y <= a && c.push(n[v]);
1163
- }
1164
- continue;
1165
- }
1166
- const p = m + u >> 1, h = i[2 * p], f = i[2 * p + 1];
1167
- h >= e && h <= o && f >= r && f <= a && c.push(n[p]), (d === 0 ? e <= h : r <= f) && (s.push(m), s.push(p - 1), s.push(1 - d)), (d === 0 ? o >= h : a >= f) && (s.push(p + 1), s.push(u), s.push(1 - d));
1168
- }
1169
- return c;
1170
- }
1171
- /**
1172
- * Search the index for items within a given radius.
1173
- * @param {number} qx
1174
- * @param {number} qy
1175
- * @param {number} r Query radius.
1176
- * @returns {number[]} An array of indices correponding to the found items.
1177
- */
1178
- within(e, r, o) {
1179
- if (!this._finished)
1180
- throw new Error("Data not yet indexed - call index.finish().");
1181
- const { ids: a, coords: n, nodeSize: i } = this, l = [0, a.length - 1, 0], s = [], c = o * o;
1182
- for (; l.length; ) {
1183
- const d = l.pop() || 0, u = l.pop() || 0, m = l.pop() || 0;
1184
- if (u - m <= i) {
1185
- for (let v = m; v <= u; v++)
1186
- Ve(n[2 * v], n[2 * v + 1], e, r) <= c && s.push(a[v]);
1187
- continue;
1188
- }
1189
- const p = m + u >> 1, h = n[2 * p], f = n[2 * p + 1];
1190
- Ve(h, f, e, r) <= c && s.push(a[p]), (d === 0 ? e - o <= h : r - o <= f) && (l.push(m), l.push(p - 1), l.push(1 - d)), (d === 0 ? e + o >= h : r + o >= f) && (l.push(p + 1), l.push(u), l.push(1 - d));
1191
- }
1192
- return s;
1193
- }
1194
- }
1195
- function ge(t, e, r, o, a, n) {
1196
- if (a - o <= r)
1197
- return;
1198
- const i = o + a >> 1;
1199
- rt(t, e, i, o, a, n), ge(t, e, r, o, i - 1, 1 - n), ge(t, e, r, i + 1, a, 1 - n);
1200
- }
1201
- function rt(t, e, r, o, a, n) {
1202
- for (; a > o; ) {
1203
- if (a - o > 600) {
1204
- const c = a - o + 1, d = r - o + 1, u = Math.log(c), m = 0.5 * Math.exp(2 * u / 3), p = 0.5 * Math.sqrt(u * m * (c - m) / c) * (d - c / 2 < 0 ? -1 : 1), h = Math.max(o, Math.floor(r - d * m / c + p)), f = Math.min(a, Math.floor(r + (c - d) * m / c + p));
1205
- rt(t, e, r, h, f, n);
1206
- }
1207
- const i = e[2 * r + n];
1208
- let l = o, s = a;
1209
- for (H(t, e, o, r), e[2 * a + n] > i && H(t, e, o, a); l < s; ) {
1210
- for (H(t, e, l, s), l++, s--; e[2 * l + n] < i; )
1211
- l++;
1212
- for (; e[2 * s + n] > i; )
1213
- s--;
1214
- }
1215
- e[2 * o + n] === i ? H(t, e, o, s) : (s++, H(t, e, s, a)), s <= r && (o = s + 1), r <= s && (a = s - 1);
1216
- }
1217
- }
1218
- function H(t, e, r, o) {
1219
- ue(t, r, o), ue(e, 2 * r, 2 * o), ue(e, 2 * r + 1, 2 * o + 1);
1220
- }
1221
- function ue(t, e, r) {
1222
- const o = t[e];
1223
- t[e] = t[r], t[r] = o;
1224
- }
1225
- function Ve(t, e, r, o) {
1226
- const a = t - r, n = e - o;
1227
- return a * a + n * n;
1228
- }
1229
- const vr = {
1230
- minZoom: 0,
1231
- // min zoom to generate clusters on
1232
- maxZoom: 16,
1233
- // max zoom level to cluster the points on
1234
- minPoints: 2,
1235
- // minimum points to form a cluster
1236
- radius: 40,
1237
- // cluster radius in pixels
1238
- extent: 512,
1239
- // tile extent (radius is calculated relative to it)
1240
- nodeSize: 64,
1241
- // size of the KD-tree leaf node, affects performance
1242
- log: !1,
1243
- // whether to log timing info
1244
- // whether to generate numeric ids for input features (in vector tiles)
1245
- generateId: !1,
1246
- // a reduce function for calculating custom cluster properties
1247
- reduce: null,
1248
- // (accumulated, props) => { accumulated.sum += props.sum; }
1249
- // properties to use for individual points when running the reducer
1250
- map: (t) => t
1251
- // props => ({sum: props.my_value})
1252
- }, Fe = Math.fround || /* @__PURE__ */ ((t) => (e) => (t[0] = +e, t[0]))(new Float32Array(1)), B = 2, A = 3, ce = 4, S = 5, ot = 6;
1253
- class at {
1254
- constructor(e) {
1255
- this.options = Object.assign(Object.create(vr), e), this.trees = new Array(this.options.maxZoom + 1), this.stride = this.options.reduce ? 7 : 6, this.clusterProps = [];
1256
- }
1257
- load(e) {
1258
- const { log: r, minZoom: o, maxZoom: a } = this.options;
1259
- r && console.time("total time");
1260
- const n = `prepare ${e.length} points`;
1261
- r && console.time(n), this.points = e;
1262
- const i = [];
1263
- for (let s = 0; s < e.length; s++) {
1264
- const c = e[s];
1265
- if (!c.geometry)
1266
- continue;
1267
- const [d, u] = c.geometry.coordinates, m = Fe(te(d)), p = Fe(re(u));
1268
- i.push(
1269
- m,
1270
- p,
1271
- // projected point coordinates
1272
- 1 / 0,
1273
- // the last zoom the point was processed at
1274
- s,
1275
- // index of the source feature in the original input array
1276
- -1,
1277
- // parent cluster id
1278
- 1
1279
- // number of points in a cluster
1280
- ), this.options.reduce && i.push(0);
1281
- }
1282
- let l = this.trees[a + 1] = this._createTree(i);
1283
- r && console.timeEnd(n);
1284
- for (let s = a; s >= o; s--) {
1285
- const c = +Date.now();
1286
- l = this.trees[s] = this._createTree(this._cluster(l, s)), r && console.log("z%d: %d clusters in %dms", s, l.numItems, +Date.now() - c);
1287
- }
1288
- return r && console.timeEnd("total time"), this;
1289
- }
1290
- getClusters(e, r) {
1291
- let o = ((e[0] + 180) % 360 + 360) % 360 - 180;
1292
- const a = Math.max(-90, Math.min(90, e[1]));
1293
- let n = e[2] === 180 ? 180 : ((e[2] + 180) % 360 + 360) % 360 - 180;
1294
- const i = Math.max(-90, Math.min(90, e[3]));
1295
- if (e[2] - e[0] >= 360)
1296
- o = -180, n = 180;
1297
- else if (o > n) {
1298
- const u = this.getClusters([o, a, 180, i], r), m = this.getClusters([-180, a, n, i], r);
1299
- return u.concat(m);
1300
- }
1301
- const l = this.trees[this._limitZoom(r)], s = l.range(te(o), re(i), te(n), re(a)), c = l.data, d = [];
1302
- for (const u of s) {
1303
- const m = this.stride * u;
1304
- d.push(c[m + S] > 1 ? We(c, m, this.clusterProps) : this.points[c[m + A]]);
1305
- }
1306
- return d;
1307
- }
1308
- getChildren(e) {
1309
- const r = this._getOriginId(e), o = this._getOriginZoom(e), a = "No cluster with the specified id.", n = this.trees[o];
1310
- if (!n)
1311
- throw new Error(a);
1312
- const i = n.data;
1313
- if (r * this.stride >= i.length)
1314
- throw new Error(a);
1315
- const l = this.options.radius / (this.options.extent * Math.pow(2, o - 1)), s = i[r * this.stride], c = i[r * this.stride + 1], d = n.within(s, c, l), u = [];
1316
- for (const m of d) {
1317
- const p = m * this.stride;
1318
- i[p + ce] === e && u.push(i[p + S] > 1 ? We(i, p, this.clusterProps) : this.points[i[p + A]]);
1319
- }
1320
- if (u.length === 0)
1321
- throw new Error(a);
1322
- return u;
1323
- }
1324
- getLeaves(e, r, o) {
1325
- r = r || 10, o = o || 0;
1326
- const a = [];
1327
- return this._appendLeaves(a, e, r, o, 0), a;
1328
- }
1329
- getTile(e, r, o) {
1330
- const a = this.trees[this._limitZoom(e)], n = Math.pow(2, e), { extent: i, radius: l } = this.options, s = l / i, c = (o - s) / n, d = (o + 1 + s) / n, u = {
1331
- features: []
1332
- };
1333
- return this._addTileFeatures(
1334
- a.range((r - s) / n, c, (r + 1 + s) / n, d),
1335
- a.data,
1336
- r,
1337
- o,
1338
- n,
1339
- u
1340
- ), r === 0 && this._addTileFeatures(
1341
- a.range(1 - s / n, c, 1, d),
1342
- a.data,
1343
- n,
1344
- o,
1345
- n,
1346
- u
1347
- ), r === n - 1 && this._addTileFeatures(
1348
- a.range(0, c, s / n, d),
1349
- a.data,
1350
- -1,
1351
- o,
1352
- n,
1353
- u
1354
- ), u.features.length ? u : null;
1355
- }
1356
- getClusterExpansionZoom(e) {
1357
- let r = this._getOriginZoom(e) - 1;
1358
- for (; r <= this.options.maxZoom; ) {
1359
- const o = this.getChildren(e);
1360
- if (r++, o.length !== 1)
1361
- break;
1362
- e = o[0].properties.cluster_id;
1363
- }
1364
- return r;
1365
- }
1366
- _appendLeaves(e, r, o, a, n) {
1367
- const i = this.getChildren(r);
1368
- for (const l of i) {
1369
- const s = l.properties;
1370
- if (s && s.cluster ? n + s.point_count <= a ? n += s.point_count : n = this._appendLeaves(e, s.cluster_id, o, a, n) : n < a ? n++ : e.push(l), e.length === o)
1371
- break;
1372
- }
1373
- return n;
1374
- }
1375
- _createTree(e) {
1376
- const r = new Ee(e.length / this.stride | 0, this.options.nodeSize, Float32Array);
1377
- for (let o = 0; o < e.length; o += this.stride)
1378
- r.add(e[o], e[o + 1]);
1379
- return r.finish(), r.data = e, r;
1380
- }
1381
- _addTileFeatures(e, r, o, a, n, i) {
1382
- for (const l of e) {
1383
- const s = l * this.stride, c = r[s + S] > 1;
1384
- let d, u, m;
1385
- if (c)
1386
- d = nt(r, s, this.clusterProps), u = r[s], m = r[s + 1];
1387
- else {
1388
- const f = this.points[r[s + A]];
1389
- d = f.properties;
1390
- const [v, g] = f.geometry.coordinates;
1391
- u = te(v), m = re(g);
1392
- }
1393
- const p = {
1394
- type: 1,
1395
- geometry: [[
1396
- Math.round(this.options.extent * (u * n - o)),
1397
- Math.round(this.options.extent * (m * n - a))
1398
- ]],
1399
- tags: d
1400
- };
1401
- let h;
1402
- c || this.options.generateId ? h = r[s + A] : h = this.points[r[s + A]].id, h !== void 0 && (p.id = h), i.features.push(p);
1403
- }
1404
- }
1405
- _limitZoom(e) {
1406
- return Math.max(this.options.minZoom, Math.min(Math.floor(+e), this.options.maxZoom + 1));
1407
- }
1408
- _cluster(e, r) {
1409
- const { radius: o, extent: a, reduce: n, minPoints: i } = this.options, l = o / (a * Math.pow(2, r)), s = e.data, c = [], d = this.stride;
1410
- for (let u = 0; u < s.length; u += d) {
1411
- if (s[u + B] <= r)
1412
- continue;
1413
- s[u + B] = r;
1414
- const m = s[u], p = s[u + 1], h = e.within(s[u], s[u + 1], l), f = s[u + S];
1415
- let v = f;
1416
- for (const g of h) {
1417
- const y = g * d;
1418
- s[y + B] > r && (v += s[y + S]);
1419
- }
1420
- if (v > f && v >= i) {
1421
- let g = m * f, y = p * f, M, x = -1;
1422
- const C = ((u / d | 0) << 5) + (r + 1) + this.points.length;
1423
- for (const k of h) {
1424
- const w = k * d;
1425
- if (s[w + B] <= r)
1426
- continue;
1427
- s[w + B] = r;
1428
- const _ = s[w + S];
1429
- g += s[w] * _, y += s[w + 1] * _, s[w + ce] = C, n && (M || (M = this._map(s, u, !0), x = this.clusterProps.length, this.clusterProps.push(M)), n(M, this._map(s, w)));
1430
- }
1431
- s[u + ce] = C, c.push(g / v, y / v, 1 / 0, C, -1, v), n && c.push(x);
1432
- } else {
1433
- for (let g = 0; g < d; g++)
1434
- c.push(s[u + g]);
1435
- if (v > 1)
1436
- for (const g of h) {
1437
- const y = g * d;
1438
- if (!(s[y + B] <= r)) {
1439
- s[y + B] = r;
1440
- for (let M = 0; M < d; M++)
1441
- c.push(s[y + M]);
1442
- }
1443
- }
1444
- }
1445
- }
1446
- return c;
1447
- }
1448
- // get index of the point from which the cluster originated
1449
- _getOriginId(e) {
1450
- return e - this.points.length >> 5;
1451
- }
1452
- // get zoom of the point from which the cluster originated
1453
- _getOriginZoom(e) {
1454
- return (e - this.points.length) % 32;
1455
- }
1456
- _map(e, r, o) {
1457
- if (e[r + S] > 1) {
1458
- const i = this.clusterProps[e[r + ot]];
1459
- return o ? Object.assign({}, i) : i;
1460
- }
1461
- const a = this.points[e[r + A]].properties, n = this.options.map(a);
1462
- return o && n === a ? Object.assign({}, n) : n;
1463
- }
1464
- }
1465
- function We(t, e, r) {
1466
- return {
1467
- type: "Feature",
1468
- id: t[e + A],
1469
- properties: nt(t, e, r),
1470
- geometry: {
1471
- type: "Point",
1472
- coordinates: [gr(t[e]), yr(t[e + 1])]
1473
- }
1474
- };
1475
- }
1476
- function nt(t, e, r) {
1477
- const o = t[e + S], a = o >= 1e4 ? `${Math.round(o / 1e3)}k` : o >= 1e3 ? `${Math.round(o / 100) / 10}k` : o, n = t[e + ot], i = n === -1 ? {} : Object.assign({}, r[n]);
1478
- return Object.assign(i, {
1479
- cluster: !0,
1480
- cluster_id: t[e + A],
1481
- point_count: o,
1482
- point_count_abbreviated: a
1483
- });
1484
- }
1485
- function te(t) {
1486
- return t / 360 + 0.5;
1487
- }
1488
- function re(t) {
1489
- const e = Math.sin(t * Math.PI / 180), r = 0.5 - 0.25 * Math.log((1 + e) / (1 - e)) / Math.PI;
1490
- return r < 0 ? 0 : r > 1 ? 1 : r;
1491
- }
1492
- function gr(t) {
1493
- return (t - 0.5) * 360;
1494
- }
1495
- function yr(t) {
1496
- const e = (180 - t * 360) * Math.PI / 180;
1497
- return 360 * Math.atan(Math.exp(e)) / Math.PI - 90;
1498
- }
1499
- function Oe(t, e) {
1500
- var r = {};
1501
- for (var o in t)
1502
- Object.prototype.hasOwnProperty.call(t, o) && e.indexOf(o) < 0 && (r[o] = t[o]);
1503
- if (t != null && typeof Object.getOwnPropertySymbols == "function")
1504
- for (var a = 0, o = Object.getOwnPropertySymbols(t); a < o.length; a++)
1505
- e.indexOf(o[a]) < 0 && Object.prototype.propertyIsEnumerable.call(t, o[a]) && (r[o[a]] = t[o[a]]);
1506
- return r;
1507
- }
1508
- class E {
1509
- static isAdvancedMarkerAvailable(e) {
1510
- return google.maps.marker && e.getMapCapabilities().isAdvancedMarkersAvailable === !0;
1511
- }
1512
- static isAdvancedMarker(e) {
1513
- return google.maps.marker && e instanceof google.maps.marker.AdvancedMarkerElement;
1514
- }
1515
- static setMap(e, r) {
1516
- this.isAdvancedMarker(e) ? e.map = r : e.setMap(r);
1517
- }
1518
- static getPosition(e) {
1519
- if (this.isAdvancedMarker(e)) {
1520
- if (e.position) {
1521
- if (e.position instanceof google.maps.LatLng)
1522
- return e.position;
1523
- if (Number.isFinite(e.position.lat) && Number.isFinite(e.position.lng))
1524
- return new google.maps.LatLng(e.position.lat, e.position.lng);
1525
- }
1526
- return new google.maps.LatLng(null);
1527
- }
1528
- return e.getPosition();
1529
- }
1530
- static getVisible(e) {
1531
- return this.isAdvancedMarker(e) ? !0 : e.getVisible();
1532
- }
1533
- }
1534
- class J {
1535
- constructor({ markers: e, position: r }) {
1536
- this.markers = [], e && (this.markers = e), r && (r instanceof google.maps.LatLng ? this._position = r : this._position = new google.maps.LatLng(r));
1537
- }
1538
- get bounds() {
1539
- if (this.markers.length === 0 && !this._position)
1540
- return;
1541
- const e = new google.maps.LatLngBounds(this._position, this._position);
1542
- for (const r of this.markers)
1543
- e.extend(E.getPosition(r));
1544
- return e;
1545
- }
1546
- get position() {
1547
- return this._position || this.bounds.getCenter();
1548
- }
1549
- /**
1550
- * Get the count of **visible** markers.
1551
- */
1552
- get count() {
1553
- return this.markers.filter((e) => E.getVisible(e)).length;
1554
- }
1555
- /**
1556
- * Add a marker to the cluster.
1557
- */
1558
- push(e) {
1559
- this.markers.push(e);
1560
- }
1561
- /**
1562
- * Cleanup references and remove marker from map.
1563
- */
1564
- delete() {
1565
- this.marker && (E.setMap(this.marker, null), this.marker = void 0), this.markers.length = 0;
1566
- }
1567
- }
1568
- function L(t, e = "assertion failed") {
1569
- if (t == null)
1570
- throw Error(e);
1571
- }
1572
- const br = (t, e, r, o) => {
1573
- const a = t.getBounds();
1574
- L(a);
1575
- const n = st(a, e, o);
1576
- return r.filter((i) => n.contains(E.getPosition(i)));
1577
- }, st = (t, e, r) => {
1578
- const { northEast: o, southWest: a } = wr(t, e), n = Mr({ northEast: o, southWest: a }, r);
1579
- return Er(n, e);
1580
- }, kr = (t, e, r) => {
1581
- const o = st(t, e, r), a = o.getNorthEast(), n = o.getSouthWest();
1582
- return [n.lng(), n.lat(), a.lng(), a.lat()];
1583
- }, wr = (t, e) => {
1584
- const r = e.fromLatLngToDivPixel(t.getNorthEast()), o = e.fromLatLngToDivPixel(t.getSouthWest());
1585
- return L(r), L(o), { northEast: r, southWest: o };
1586
- }, Mr = ({ northEast: t, southWest: e }, r) => (t.x += r, t.y -= r, e.x -= r, e.y += r, { northEast: t, southWest: e }), Er = ({ northEast: t, southWest: e }, r) => {
1587
- const o = r.fromDivPixelToLatLng(e), a = r.fromDivPixelToLatLng(t);
1588
- return new google.maps.LatLngBounds(o, a);
1589
- };
1590
- class it {
1591
- constructor({ maxZoom: e = 16 }) {
1592
- this.maxZoom = e;
1593
- }
1594
- /**
1595
- * Helper function to bypass clustering based upon some map state such as
1596
- * zoom, number of markers, etc.
1597
- *
1598
- * ```typescript
1599
- * cluster({markers, map}: AlgorithmInput): Cluster[] {
1600
- * if (shouldBypassClustering(map)) {
1601
- * return this.noop({markers})
1602
- * }
1603
- * }
1604
- * ```
1605
- */
1606
- noop({ markers: e }) {
1607
- return Cr(e);
1608
- }
1609
- }
1610
- class Or extends it {
1611
- constructor(e) {
1612
- var { viewportPadding: r = 60 } = e, o = Oe(e, ["viewportPadding"]);
1613
- super(o), this.viewportPadding = 60, this.viewportPadding = r;
1614
- }
1615
- calculate({ markers: e, map: r, mapCanvasProjection: o }) {
1616
- const a = r.getZoom();
1617
- return L(a), a >= this.maxZoom ? {
1618
- clusters: this.noop({
1619
- markers: e
1620
- }),
1621
- changed: !1
1622
- } : {
1623
- clusters: this.cluster({
1624
- markers: br(r, o, e, this.viewportPadding),
1625
- map: r,
1626
- mapCanvasProjection: o
1627
- })
1628
- };
1629
- }
1630
- }
1631
- const Cr = (t) => t.map((e) => new J({
1632
- position: E.getPosition(e),
1633
- markers: [e]
1634
- }));
1635
- class xr extends it {
1636
- constructor(e) {
1637
- var { maxZoom: r, radius: o = 60 } = e, a = Oe(e, ["maxZoom", "radius"]);
1638
- super({ maxZoom: r }), this.markers = [], this.clusters = [], this.state = { zoom: -1 }, this.superCluster = new at(Object.assign({ maxZoom: this.maxZoom, radius: o }, a));
1639
- }
1640
- calculate(e) {
1641
- let r = !1, o = e.map.getZoom();
1642
- L(o), o = Math.round(o);
1643
- const a = { zoom: o };
1644
- if (!oe(e.markers, this.markers)) {
1645
- r = !0, this.markers = [...e.markers];
1646
- const n = this.markers.map((i) => {
1647
- const l = E.getPosition(i);
1648
- return {
1649
- type: "Feature",
1650
- geometry: { type: "Point", coordinates: [l.lng(), l.lat()] },
1651
- properties: { marker: i }
1652
- };
1653
- });
1654
- this.superCluster.load(n);
1655
- }
1656
- return r || (this.state.zoom <= this.maxZoom || a.zoom <= this.maxZoom) && (r = !oe(this.state, a)), this.state = a, e.markers.length === 0 ? (this.clusters = [], { clusters: this.clusters, changed: r }) : (r && (this.clusters = this.cluster(e)), { clusters: this.clusters, changed: r });
1657
- }
1658
- cluster({ map: e }) {
1659
- const r = e.getZoom();
1660
- return L(r), this.superCluster.getClusters([-180, -90, 180, 90], Math.round(r)).map((o) => this.transformCluster(o));
1661
- }
1662
- transformCluster({ geometry: { coordinates: [e, r] }, properties: o }) {
1663
- if (o.cluster)
1664
- return new J({
1665
- markers: this.superCluster.getLeaves(o.cluster_id, 1 / 0).map((n) => n.properties.marker),
1666
- position: { lat: r, lng: e }
1667
- });
1668
- const a = o.marker;
1669
- return new J({
1670
- markers: [a],
1671
- position: E.getPosition(a)
1672
- });
1673
- }
1674
- }
1675
- class _r extends Or {
1676
- constructor(e) {
1677
- var { maxZoom: r, radius: o = 60, viewportPadding: a = 60 } = e, n = Oe(e, ["maxZoom", "radius", "viewportPadding"]);
1678
- super({ maxZoom: r, viewportPadding: a }), this.markers = [], this.clusters = [], this.superCluster = new at(Object.assign({ maxZoom: this.maxZoom, radius: o }, n)), this.state = { zoom: -1, view: [0, 0, 0, 0] };
1679
- }
1680
- calculate(e) {
1681
- const r = this.getViewportState(e);
1682
- let o = !oe(this.state, r);
1683
- if (!oe(e.markers, this.markers)) {
1684
- o = !0, this.markers = [...e.markers];
1685
- const a = this.markers.map((n) => {
1686
- const i = E.getPosition(n);
1687
- return {
1688
- type: "Feature",
1689
- geometry: {
1690
- type: "Point",
1691
- coordinates: [i.lng(), i.lat()]
1692
- },
1693
- properties: { marker: n }
1694
- };
1695
- });
1696
- this.superCluster.load(a);
1697
- }
1698
- return o && (this.clusters = this.cluster(e), this.state = r), { clusters: this.clusters, changed: o };
1699
- }
1700
- cluster(e) {
1701
- const r = this.getViewportState(e);
1702
- return this.superCluster.getClusters(r.view, r.zoom).map((o) => this.transformCluster(o));
1703
- }
1704
- transformCluster({ geometry: { coordinates: [e, r] }, properties: o }) {
1705
- if (o.cluster)
1706
- return new J({
1707
- markers: this.superCluster.getLeaves(o.cluster_id, 1 / 0).map((n) => n.properties.marker),
1708
- position: { lat: r, lng: e }
1709
- });
1710
- const a = o.marker;
1711
- return new J({
1712
- markers: [a],
1713
- position: E.getPosition(a)
1714
- });
1715
- }
1716
- getViewportState(e) {
1717
- const r = e.map.getZoom(), o = e.map.getBounds();
1718
- return L(r), L(o), {
1719
- zoom: Math.round(r),
1720
- view: kr(o, e.mapCanvasProjection, this.viewportPadding)
1721
- };
1722
- }
1723
- }
1724
- class Pr {
1725
- constructor(e, r) {
1726
- this.markers = { sum: e.length };
1727
- const o = r.map((n) => n.count), a = o.reduce((n, i) => n + i, 0);
1728
- this.clusters = {
1729
- count: r.length,
1730
- markers: {
1731
- mean: a / r.length,
1732
- sum: a,
1733
- min: Math.min(...o),
1734
- max: Math.max(...o)
1735
- }
1736
- };
1737
- }
1738
- }
1739
- class jr {
1740
- /**
1741
- * The default render function for the library used by {@link MarkerClusterer}.
1742
- *
1743
- * Currently set to use the following:
1744
- *
1745
- * ```typescript
1746
- * // change color if this cluster has more markers than the mean cluster
1747
- * const color =
1748
- * count > Math.max(10, stats.clusters.markers.mean)
1749
- * ? "#ff0000"
1750
- * : "#0000ff";
1751
- *
1752
- * // create svg url with fill color
1753
- * const svg = window.btoa(`
1754
- * <svg fill="${color}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">
1755
- * <circle cx="120" cy="120" opacity=".6" r="70" />
1756
- * <circle cx="120" cy="120" opacity=".3" r="90" />
1757
- * <circle cx="120" cy="120" opacity=".2" r="110" />
1758
- * <circle cx="120" cy="120" opacity=".1" r="130" />
1759
- * </svg>`);
1760
- *
1761
- * // create marker using svg icon
1762
- * return new google.maps.Marker({
1763
- * position,
1764
- * icon: {
1765
- * url: `data:image/svg+xml;base64,${svg}`,
1766
- * scaledSize: new google.maps.Size(45, 45),
1767
- * },
1768
- * label: {
1769
- * text: String(count),
1770
- * color: "rgba(255,255,255,0.9)",
1771
- * fontSize: "12px",
1772
- * },
1773
- * // adjust zIndex to be above other markers
1774
- * zIndex: 1000 + count,
1775
- * });
1776
- * ```
1777
- */
1778
- render({ count: e, position: r }, o, a) {
1779
- const n = `<svg fill="${e > Math.max(10, o.clusters.markers.mean) ? "#ff0000" : "#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">
1780
- <circle cx="120" cy="120" opacity=".6" r="70" />
1781
- <circle cx="120" cy="120" opacity=".3" r="90" />
1782
- <circle cx="120" cy="120" opacity=".2" r="110" />
1783
- <text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${e}</text>
1784
- </svg>`, i = `Cluster of ${e} markers`, l = Number(google.maps.Marker.MAX_ZINDEX) + e;
1785
- if (E.isAdvancedMarkerAvailable(a)) {
1786
- const c = new DOMParser().parseFromString(n, "image/svg+xml").documentElement;
1787
- c.setAttribute("transform", "translate(0 25)");
1788
- const d = {
1789
- map: a,
1790
- position: r,
1791
- zIndex: l,
1792
- title: i,
1793
- content: c
1794
- };
1795
- return new google.maps.marker.AdvancedMarkerElement(d);
1796
- }
1797
- const s = {
1798
- position: r,
1799
- zIndex: l,
1800
- title: i,
1801
- icon: {
1802
- url: `data:image/svg+xml;base64,${btoa(n)}`,
1803
- anchor: new google.maps.Point(25, 25)
1804
- }
1805
- };
1806
- return new google.maps.Marker(s);
1807
- }
1808
- }
1809
- function qr(t, e) {
1810
- for (let r in e.prototype)
1811
- t.prototype[r] = e.prototype[r];
1812
- }
1813
- class Ce {
1814
- constructor() {
1815
- qr(Ce, google.maps.OverlayView);
1816
- }
1817
- }
1818
- var T;
1819
- (function(t) {
1820
- t.CLUSTERING_BEGIN = "clusteringbegin", t.CLUSTERING_END = "clusteringend", t.CLUSTER_CLICK = "click", t.GMP_CLICK = "gmp-click";
1821
- })(T || (T = {}));
1822
- const Lr = (t, e, r) => {
1823
- e.bounds && r.fitBounds(e.bounds);
1824
- };
1825
- class Sr extends Ce {
1826
- constructor({ map: e, markers: r = [], algorithmOptions: o = {}, algorithm: a = new xr(o), renderer: n = new jr(), onClusterClick: i = Lr }) {
1827
- super(), this.map = null, this.idleListener = null, this.markers = [...r], this.clusters = [], this.algorithm = a, this.renderer = n, this.onClusterClick = i, e && this.setMap(e);
1828
- }
1829
- addMarker(e, r) {
1830
- this.markers.includes(e) || (this.markers.push(e), r || this.render());
1831
- }
1832
- addMarkers(e, r) {
1833
- e.forEach((o) => {
1834
- this.addMarker(o, !0);
1835
- }), r || this.render();
1836
- }
1837
- removeMarker(e, r) {
1838
- const o = this.markers.indexOf(e);
1839
- return o === -1 ? !1 : (E.setMap(e, null), this.markers.splice(o, 1), r || this.render(), !0);
1840
- }
1841
- removeMarkers(e, r) {
1842
- let o = !1;
1843
- return e.forEach((a) => {
1844
- o = this.removeMarker(a, !0) || o;
1845
- }), o && !r && this.render(), o;
1846
- }
1847
- clearMarkers(e) {
1848
- this.markers.length = 0, e || this.render();
1849
- }
1850
- /**
1851
- * Recalculates and draws all the marker clusters.
1852
- */
1853
- render() {
1854
- const e = this.getMap();
1855
- if (e instanceof google.maps.Map && e.getProjection()) {
1856
- google.maps.event.trigger(this, T.CLUSTERING_BEGIN, this);
1857
- const { clusters: r, changed: o } = this.algorithm.calculate({
1858
- markers: this.markers,
1859
- map: e,
1860
- mapCanvasProjection: this.getProjection()
1861
- });
1862
- if (o || o == null) {
1863
- const a = /* @__PURE__ */ new Set();
1864
- for (const i of r)
1865
- i.markers.length == 1 && a.add(i.markers[0]);
1866
- const n = [];
1867
- for (const i of this.clusters)
1868
- i.marker != null && (i.markers.length == 1 ? a.has(i.marker) || E.setMap(i.marker, null) : n.push(i.marker));
1869
- this.clusters = r, this.renderClusters(), requestAnimationFrame(() => n.forEach((i) => E.setMap(i, null)));
1870
- }
1871
- google.maps.event.trigger(this, T.CLUSTERING_END, this);
1872
- }
1873
- }
1874
- onAdd() {
1875
- const e = this.getMap();
1876
- L(e), this.idleListener = e.addListener("idle", this.render.bind(this)), this.render();
1877
- }
1878
- onRemove() {
1879
- this.idleListener && google.maps.event.removeListener(this.idleListener), this.reset();
1880
- }
1881
- reset() {
1882
- this.markers.forEach((e) => E.setMap(e, null)), this.clusters.forEach((e) => e.delete()), this.clusters = [];
1883
- }
1884
- renderClusters() {
1885
- const e = new Pr(this.markers, this.clusters), r = this.getMap();
1886
- this.clusters.forEach((o) => {
1887
- if (o.markers.length === 1)
1888
- o.marker = o.markers[0];
1889
- else if (o.marker = this.renderer.render(o, e, r), o.markers.forEach((a) => E.setMap(a, null)), this.onClusterClick) {
1890
- const a = E.isAdvancedMarker(o.marker) ? T.GMP_CLICK : T.CLUSTER_CLICK;
1891
- o.marker.addListener(
1892
- a,
1893
- /* istanbul ignore next */
1894
- (n) => {
1895
- google.maps.event.trigger(this, T.CLUSTER_CLICK, o), this.onClusterClick(n, o, r);
1896
- }
1897
- );
1898
- }
1899
- E.setMap(o.marker, r);
1900
- });
1901
- }
1902
- }
1903
- function ye(t) {
1904
- var e = typeof t;
1905
- return t != null && (e == "object" || e == "function");
1906
- }
1907
- var Ar = typeof global == "object" && global && global.Object === Object && global;
1908
- const Tr = Ar;
1909
- var Ir = typeof self == "object" && self && self.Object === Object && self, Nr = Tr || Ir || Function("return this")();
1910
- const lt = Nr;
1911
- var Rr = function() {
1912
- return lt.Date.now();
1913
- };
1914
- const pe = Rr;
1915
- var Br = /\s/;
1916
- function Zr(t) {
1917
- for (var e = t.length; e-- && Br.test(t.charAt(e)); )
1918
- ;
1919
- return e;
1920
- }
1921
- var zr = /^\s+/;
1922
- function Dr(t) {
1923
- return t && t.slice(0, Zr(t) + 1).replace(zr, "");
1924
- }
1925
- var $r = lt.Symbol;
1926
- const ae = $r;
1927
- var ut = Object.prototype, Ur = ut.hasOwnProperty, Vr = ut.toString, X = ae ? ae.toStringTag : void 0;
1928
- function Fr(t) {
1929
- var e = Ur.call(t, X), r = t[X];
1930
- try {
1931
- t[X] = void 0;
1932
- var o = !0;
1933
- } catch {
1934
- }
1935
- var a = Vr.call(t);
1936
- return o && (e ? t[X] = r : delete t[X]), a;
1937
- }
1938
- var Wr = Object.prototype, Gr = Wr.toString;
1939
- function Kr(t) {
1940
- return Gr.call(t);
1941
- }
1942
- var Hr = "[object Null]", Xr = "[object Undefined]", Ge = ae ? ae.toStringTag : void 0;
1943
- function Yr(t) {
1944
- return t == null ? t === void 0 ? Xr : Hr : Ge && Ge in Object(t) ? Fr(t) : Kr(t);
1945
- }
1946
- function Jr(t) {
1947
- return t != null && typeof t == "object";
1948
- }
1949
- var Qr = "[object Symbol]";
1950
- function eo(t) {
1951
- return typeof t == "symbol" || Jr(t) && Yr(t) == Qr;
1952
- }
1953
- var Ke = NaN, to = /^[-+]0x[0-9a-f]+$/i, ro = /^0b[01]+$/i, oo = /^0o[0-7]+$/i, ao = parseInt;
1954
- function He(t) {
1955
- if (typeof t == "number")
1956
- return t;
1957
- if (eo(t))
1958
- return Ke;
1959
- if (ye(t)) {
1960
- var e = typeof t.valueOf == "function" ? t.valueOf() : t;
1961
- t = ye(e) ? e + "" : e;
1962
- }
1963
- if (typeof t != "string")
1964
- return t === 0 ? t : +t;
1965
- t = Dr(t);
1966
- var r = ro.test(t);
1967
- return r || oo.test(t) ? ao(t.slice(2), r ? 2 : 8) : to.test(t) ? Ke : +t;
1968
- }
1969
- var no = "Expected a function", so = Math.max, io = Math.min;
1970
- function lo(t, e, r) {
1971
- var o, a, n, i, l, s, c = 0, d = !1, u = !1, m = !0;
1972
- if (typeof t != "function")
1973
- throw new TypeError(no);
1974
- e = He(e) || 0, ye(r) && (d = !0, u = "maxWait" in r, n = u ? so(He(r.maxWait) || 0, e) : n, m = "trailing" in r ? !0 : m);
1975
- function p(k) {
1976
- var w = o, _ = a;
1977
- return o = a = void 0, c = k, i = t.apply(_, w), i;
1978
- }
1979
- function h(k) {
1980
- return c = k, l = setTimeout(g, e), d ? p(k) : i;
1981
- }
1982
- function f(k) {
1983
- var w = k - s, _ = k - c, R = e - w;
1984
- return u ? io(R, n - _) : R;
1985
- }
1986
- function v(k) {
1987
- var w = k - s, _ = k - c;
1988
- return s === void 0 || w >= e || w < 0 || u && _ >= n;
1989
- }
1990
- function g() {
1991
- var k = pe();
1992
- if (v(k))
1993
- return y(k);
1994
- l = setTimeout(g, f(k));
1995
- }
1996
- function y(k) {
1997
- return l = void 0, m && o ? p(k) : (o = a = void 0, i);
1998
- }
1999
- function M() {
2000
- l !== void 0 && clearTimeout(l), c = 0, o = s = a = l = void 0;
2001
- }
2002
- function x() {
2003
- return l === void 0 ? i : y(pe());
2004
- }
2005
- function C() {
2006
- var k = pe(), w = v(k);
2007
- if (o = arguments, a = this, s = k, w) {
2008
- if (l === void 0)
2009
- return h(s);
2010
- if (u)
2011
- return clearTimeout(l), l = setTimeout(g, e), p(s);
2012
- }
2013
- return l === void 0 && (l = setTimeout(g, e)), i;
2014
- }
2015
- return C.cancel = M, C.flush = x, C;
2016
- }
2017
- class uo extends Sr {
2018
- constructor(e, r = 10) {
2019
- super(e), he(this, "debouncedRender"), this.debouncedRender = lo(
2020
- () => {
2021
- super.render();
2022
- },
2023
- r,
2024
- { leading: !0, trailing: !0 }
2025
- );
2026
- }
2027
- addMarker(e, r) {
2028
- super.addMarker(e, !0), r || this.debouncedRender();
2029
- }
2030
- removeMarker(e, r) {
2031
- const o = super.removeMarker(e, !0);
2032
- return r || this.debouncedRender(), o;
2033
- }
2034
- addMarkers(e, r) {
2035
- super.addMarkers(e, !0), r || this.debouncedRender();
2036
- }
2037
- removeMarkers(e, r) {
2038
- const o = super.removeMarkers(e, !0);
2039
- return r || this.debouncedRender(), o;
2040
- }
2041
- clearMarkers(e) {
2042
- super.clearMarkers(!0), e || this.debouncedRender();
2043
- }
2044
- /** Renders immediately, canceling any pending debounced render. */
2045
- render() {
2046
- this.debouncedRender.cancel(), super.render();
2047
- }
2048
- destroy() {
2049
- this.debouncedRender.cancel();
2050
- }
2051
- }
2052
- const Xe = Object.values(T);
2053
- j({
2054
- name: "MarkerCluster",
2055
- props: {
2056
- options: {
2057
- type: Object,
2058
- default: () => ({})
2059
- },
2060
- renderDebounceDelay: {
2061
- type: Number,
2062
- default: 10
2063
- }
2064
- },
2065
- emits: Xe,
2066
- setup(t, { emit: e, expose: r, slots: o }) {
2067
- const a = b(), n = O(z, b()), i = O(D, b());
2068
- return U(we, a), P(
2069
- n,
2070
- () => {
2071
- n.value && (a.value = q(
2072
- new uo(
2073
- {
2074
- map: n.value,
2075
- // Better perf than the default `SuperClusterAlgorithm`. See:
2076
- // https://github.com/googlemaps/js-markerclusterer/pull/640
2077
- algorithm: new _r(t.options.algorithmOptions ?? {}),
2078
- ...t.options
2079
- },
2080
- t.renderDebounceDelay
2081
- )
2082
- ), Xe.forEach((l) => {
2083
- var s;
2084
- (s = a.value) == null || s.addListener(l, (c) => e(l, c));
2085
- }));
2086
- },
2087
- {
2088
- immediate: !0
2089
- }
2090
- ), Z(() => {
2091
- var l;
2092
- a.value && ((l = i.value) == null || l.event.clearInstanceListeners(a.value), a.value.clearMarkers(!0), a.value.setMap(null), a.value.destroy());
2093
- }), r({ markerCluster: a }), () => {
2094
- var l;
2095
- return (l = o.default) == null ? void 0 : l.call(o);
2096
- };
2097
- }
2098
- });
2099
- j({
2100
- inheritAttrs: !1,
2101
- props: {
2102
- options: {
2103
- type: Object,
2104
- required: !0
2105
- }
2106
- },
2107
- setup(t, { slots: e, emit: r, expose: o }) {
2108
- const a = b(), n = V(() => {
2109
- var s;
2110
- return (s = e.default) == null ? void 0 : s.call(e).some((c) => c.type !== be);
2111
- }), i = V(() => ({
2112
- ...t.options,
2113
- element: a.value
2114
- })), l = W(ne, [], i, r);
2115
- return o({
2116
- customMarker: l
2117
- }), { customMarkerRef: a, customMarker: l, hasSlotContent: n };
2118
- }
2119
- });
2120
- j({
2121
- name: "HeatmapLayer",
2122
- props: {
2123
- options: {
2124
- type: Object,
2125
- default: () => ({})
2126
- }
2127
- },
2128
- setup(t) {
2129
- const e = b(), r = O(z, b()), o = O(D, b());
2130
- return P(
2131
- [r, () => t.options],
2132
- ([a, n], [i, l]) => {
2133
- const s = !Y(n, l) || r.value !== i;
2134
- if (r.value && o.value && s) {
2135
- let c;
2136
- if (n.data && !(n.data instanceof o.value.MVCArray)) {
2137
- const d = o.value.LatLng, u = n.data.map((m) => m instanceof d || "location" in m && (m.location instanceof d || m.location === null) ? m : "location" in m ? { ...m, location: new d(m.location) } : new d(m));
2138
- c = {
2139
- ...n,
2140
- data: u
2141
- };
2142
- } else
2143
- c = n;
2144
- e.value ? e.value.setOptions(c) : e.value = q(
2145
- new o.value.visualization.HeatmapLayer({
2146
- ...c,
2147
- map: r.value
2148
- })
2149
- );
2150
- }
2151
- },
2152
- { immediate: !0 }
2153
- ), Z(() => {
2154
- e.value && e.value.setMap(null);
2155
- }), { heatmapLayer: e };
2156
- },
2157
- render: () => null
2158
- });
2159
- export {
2160
- mo as AdvancedMarker,
2161
- po as GoogleMap,
2162
- fo as Marker,
2163
- D as apiSymbol,
2164
- z as mapSymbol,
2165
- Qe as mapTilesLoadedSymbol
2166
- };
2167
- //# sourceMappingURL=index-Dca39bYA.js.map