@m3ui-vue/m3ui-vue 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/dist/API.md +43 -32
  2. package/dist/{MButton-D_uxtJa-.js → MButton-CPghlKb0.js} +8 -9
  3. package/dist/MButton-CPghlKb0.js.map +1 -0
  4. package/dist/{MDialog-DT4KAPmn.js → MDialog-X50At1Gk.js} +38 -44
  5. package/dist/MDialog-X50At1Gk.js.map +1 -0
  6. package/dist/{MIcon-Bxh9j135.js → MIcon-DpajuUTJ.js} +2 -3
  7. package/dist/MIcon-DpajuUTJ.js.map +1 -0
  8. package/dist/{MIconButton-DoNotQ9v.js → MIconButton-BBggVwBV.js} +5 -6
  9. package/dist/MIconButton-BBggVwBV.js.map +1 -0
  10. package/dist/{MListItem-CwYrxpPZ.js → MListItem-DVi1j1QI.js} +8 -14
  11. package/dist/MListItem-DVi1j1QI.js.map +1 -0
  12. package/dist/{MLoadingIndicator-DhzECYRI.js → MLoadingIndicator-vooA3110.js} +3 -4
  13. package/dist/MLoadingIndicator-vooA3110.js.map +1 -0
  14. package/dist/{MMenuItem-Bih0h4-n.js → MMenuItem-CRNZkVVr.js} +13 -25
  15. package/dist/MMenuItem-CRNZkVVr.js.map +1 -0
  16. package/dist/{MProgressBar-BCoruxA-.js → MProgressBar-BWly1UKN.js} +3 -8
  17. package/dist/MProgressBar-BWly1UKN.js.map +1 -0
  18. package/dist/{MSeekBar-DQPF5FTp.js → MSeekBar-BL2W5_rD.js} +4 -5
  19. package/dist/MSeekBar-BL2W5_rD.js.map +1 -0
  20. package/dist/{MSegmentedButton-DL9JtJFX.js → MSegmentedButton-BEB4gXLA.js} +3 -4
  21. package/dist/MSegmentedButton-BEB4gXLA.js.map +1 -0
  22. package/dist/{MSlider-BvoMZTy9.js → MSlider-B9NcKTmZ.js} +22 -23
  23. package/dist/MSlider-B9NcKTmZ.js.map +1 -0
  24. package/dist/{MSpinner-CgcCQhS9.js → MSpinner-_XpTRkAg.js} +3 -4
  25. package/dist/MSpinner-_XpTRkAg.js.map +1 -0
  26. package/dist/{MTextField-B72dwF6V.js → MTextField-DpcPmR5B.js} +119 -89
  27. package/dist/MTextField-DpcPmR5B.js.map +1 -0
  28. package/dist/{MTooltip-YyF1CO75.js → MTooltip-BL3jPYPT.js} +10 -12
  29. package/dist/MTooltip-BL3jPYPT.js.map +1 -0
  30. package/dist/THIRD_PARTY_LICENSES.md +2 -2
  31. package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
  32. package/dist/{_storageKeys-CYXsUBwK.js → _storageKeys-C4W_4xK4.js} +2 -3
  33. package/dist/_storageKeys-C4W_4xK4.js.map +1 -0
  34. package/dist/{_useEscapeStack-CjndQhqg.js → _useEscapeStack-C5-BYr8y.js} +2 -3
  35. package/dist/_useEscapeStack-C5-BYr8y.js.map +1 -0
  36. package/dist/api.json +1 -1
  37. package/dist/barcode.js +1 -2
  38. package/dist/barcode.js.map +1 -1
  39. package/dist/chart.js +2 -4
  40. package/dist/chart.js.map +1 -1
  41. package/dist/code-editor.js +22 -23
  42. package/dist/code-editor.js.map +1 -1
  43. package/dist/{common-0dgrgaPL.js → common-kIb6A2Qu.js} +8 -37
  44. package/dist/common-kIb6A2Qu.js.map +1 -0
  45. package/dist/components/MAbsolute.vue.d.ts +5 -3
  46. package/dist/components/MAlert.vue.d.ts +8 -6
  47. package/dist/components/MAppBar.vue.d.ts +9 -7
  48. package/dist/components/MAppBarWithSearch.vue.d.ts +15 -13
  49. package/dist/components/MAppLayout.vue.d.ts +13 -11
  50. package/dist/components/MAspectRatio.vue.d.ts +5 -3
  51. package/dist/components/MAudioPlayer.vue.d.ts +22 -20
  52. package/dist/components/MAutocomplete.vue.d.ts +1 -1
  53. package/dist/components/MAvailabilityCalendar.vue.d.ts +19 -17
  54. package/dist/components/MBadge.vue.d.ts +6 -4
  55. package/dist/components/MBar.vue.d.ts +14 -12
  56. package/dist/components/MBarcode.vue.d.ts +5 -3
  57. package/dist/components/MBeforeAfter.vue.d.ts +12 -10
  58. package/dist/components/MBodyMap.vue.d.ts +1 -1
  59. package/dist/components/MBottomAppBar.vue.d.ts +10 -8
  60. package/dist/components/MBottomSheet.vue.d.ts +8 -6
  61. package/dist/components/MBottomSheetScaffold.vue.d.ts +9 -7
  62. package/dist/components/MBox.vue.d.ts +6 -4
  63. package/dist/components/MButton.vue.d.ts +7 -5
  64. package/dist/components/MCard.vue.d.ts +12 -10
  65. package/dist/components/MCenter.vue.d.ts +5 -3
  66. package/dist/components/MChatBubble.vue.d.ts +6 -4
  67. package/dist/components/MCheckbox.vue.d.ts +5 -3
  68. package/dist/components/MChip.vue.d.ts +9 -7
  69. package/dist/components/MCircleProgressBar.vue.d.ts +6 -4
  70. package/dist/components/MCodeEditor.vue.d.ts +5 -3
  71. package/dist/components/MContainer.vue.d.ts +6 -4
  72. package/dist/components/MContextMenu.vue.d.ts +8 -6
  73. package/dist/components/MCopyButton.vue.d.ts +1 -1
  74. package/dist/components/MDataTable.vue.d.ts +21 -19
  75. package/dist/components/MDialog.vue.d.ts +21 -19
  76. package/dist/components/MDragHandle.vue.d.ts +1 -1
  77. package/dist/components/MDrawCanvas.vue.d.ts +5 -3
  78. package/dist/components/MDrawToolbar.vue.d.ts +7 -5
  79. package/dist/components/MEmptyState.vue.d.ts +5 -3
  80. package/dist/components/MExpansionPanel.vue.d.ts +6 -4
  81. package/dist/components/MExportButton.vue.d.ts +7 -5
  82. package/dist/components/MFab.vue.d.ts +11 -9
  83. package/dist/components/MFabMenu.vue.d.ts +3 -3
  84. package/dist/components/MFixed.vue.d.ts +5 -3
  85. package/dist/components/MFlex.vue.d.ts +7 -5
  86. package/dist/components/MFloorPlan.vue.d.ts +3 -3
  87. package/dist/components/MFloorPlanInspector.vue.d.ts +32 -30
  88. package/dist/components/MFloorPlanToolbar.vue.d.ts +2 -2
  89. package/dist/components/MFlow.vue.d.ts +4 -4
  90. package/dist/components/MFlowControls.vue.d.ts +6 -4
  91. package/dist/components/MFlowHandle.vue.d.ts +1 -1
  92. package/dist/components/MFlowNode.vue.d.ts +11 -9
  93. package/dist/components/MFooter.vue.d.ts +12 -10
  94. package/dist/components/MFullscreen.vue.d.ts +5 -3
  95. package/dist/components/MGantt.vue.d.ts +33 -31
  96. package/dist/components/MGanttControls.vue.d.ts +8 -6
  97. package/dist/components/MGrid.vue.d.ts +6 -4
  98. package/dist/components/MIcon.vue.d.ts +5 -0
  99. package/dist/components/MIconButton.vue.d.ts +1 -1
  100. package/dist/components/MImageCropper.vue.d.ts +14 -12
  101. package/dist/components/MInfiniteScroll.vue.d.ts +11 -9
  102. package/dist/components/MList.vue.d.ts +5 -3
  103. package/dist/components/MListGroup.vue.d.ts +7 -5
  104. package/dist/components/MListItem.vue.d.ts +21 -19
  105. package/dist/components/MListSubheader.vue.d.ts +5 -3
  106. package/dist/components/MLoadingOverlay.vue.d.ts +10 -8
  107. package/dist/components/MMap.vue.d.ts +14 -6
  108. package/dist/components/MMapControl.vue.d.ts +12 -10
  109. package/dist/components/MMapFeatureInfo.vue.d.ts +11 -9
  110. package/dist/components/MMapIdentify.vue.d.ts +9 -7
  111. package/dist/components/MMapLayers.vue.d.ts +13 -11
  112. package/dist/components/MMapMarker.vue.d.ts +7 -5
  113. package/dist/components/MMapPopup.vue.d.ts +5 -3
  114. package/dist/components/MMasonry.vue.d.ts +5 -3
  115. package/dist/components/MMenu.vue.d.ts +12 -10
  116. package/dist/components/MMenuItem.vue.d.ts +11 -9
  117. package/dist/components/MMultiAutocomplete.vue.d.ts +1 -1
  118. package/dist/components/MMultiSelect.vue.d.ts +6 -4
  119. package/dist/components/MNavigationDrawer.vue.d.ts +14 -12
  120. package/dist/components/MNavigationRail.vue.d.ts +7 -5
  121. package/dist/components/MOdontogram.vue.d.ts +1 -1
  122. package/dist/components/MOrderBook.vue.d.ts +1 -1
  123. package/dist/components/MOverlay.vue.d.ts +5 -3
  124. package/dist/components/MPdfViewer.vue.d.ts +4 -4
  125. package/dist/components/MPhoneInput.vue.d.ts +11 -9
  126. package/dist/components/MPosKeypad.vue.d.ts +18 -16
  127. package/dist/components/MProgressBar.vue.d.ts +1 -1
  128. package/dist/components/MPullToRefresh.vue.d.ts +5 -3
  129. package/dist/components/MQRCode.vue.d.ts +7 -5
  130. package/dist/components/MRadioGroup.vue.d.ts +1 -1
  131. package/dist/components/MReceipt.vue.d.ts +2 -2
  132. package/dist/components/MRelative.vue.d.ts +5 -3
  133. package/dist/components/MResourceTimeline.vue.d.ts +31 -29
  134. package/dist/components/MResponsive.vue.d.ts +5 -3
  135. package/dist/components/MResult.vue.d.ts +7 -5
  136. package/dist/components/MScrollable.vue.d.ts +7 -5
  137. package/dist/components/MSearchBar.vue.d.ts +13 -11
  138. package/dist/components/MSearchField.vue.d.ts +7 -5
  139. package/dist/components/MSection.vue.d.ts +11 -9
  140. package/dist/components/MSeekBar.vue.d.ts +3 -3
  141. package/dist/components/MSelect.vue.d.ts +1 -1
  142. package/dist/components/MShader.vue.d.ts +11 -9
  143. package/dist/components/MShortNavigationBar.vue.d.ts +1 -1
  144. package/dist/components/MSideSheet.vue.d.ts +9 -7
  145. package/dist/components/MSimpleCarousel.vue.d.ts +1 -1
  146. package/dist/components/MSkeleton.vue.d.ts +2 -2
  147. package/dist/components/MSlider.vue.d.ts +3 -3
  148. package/dist/components/MSparkline.vue.d.ts +1 -1
  149. package/dist/components/MSplitButton.vue.d.ts +7 -5
  150. package/dist/components/MSplitter.vue.d.ts +9 -7
  151. package/dist/components/MSpotlightSearch.vue.d.ts +1 -1
  152. package/dist/components/MStack.vue.d.ts +8 -6
  153. package/dist/components/MStatCard.vue.d.ts +5 -3
  154. package/dist/components/MStepper.vue.d.ts +5 -3
  155. package/dist/components/MSticky.vue.d.ts +5 -3
  156. package/dist/components/MSubtitle.vue.d.ts +6 -4
  157. package/dist/components/MSwipeToDismiss.vue.d.ts +11 -9
  158. package/dist/components/MTable.vue.d.ts +17 -15
  159. package/dist/components/MText.vue.d.ts +5 -3
  160. package/dist/components/MTextField.vue.d.ts +6 -4
  161. package/dist/components/MTimePickerModal.vue.d.ts +1 -1
  162. package/dist/components/MTitle.vue.d.ts +6 -4
  163. package/dist/components/MToggleButton.vue.d.ts +5 -3
  164. package/dist/components/MToolbar.vue.d.ts +24 -22
  165. package/dist/components/MTooltip.vue.d.ts +10 -8
  166. package/dist/components/MTopAppBar.vue.d.ts +22 -20
  167. package/dist/components/MTour.vue.d.ts +28 -26
  168. package/dist/components/MTransition.vue.d.ts +5 -3
  169. package/dist/components/MTree.vue.d.ts +6 -4
  170. package/dist/components/MTreeTable.vue.d.ts +21 -19
  171. package/dist/components/MTypewriter.vue.d.ts +6 -4
  172. package/dist/components/MVirtualTable.vue.d.ts +8 -6
  173. package/dist/components/_MMapLayerItem.vue.d.ts +8 -6
  174. package/dist/components/_MPdfPage.vue.d.ts +2 -2
  175. package/dist/components/_MToolbarFab.vue.d.ts +5 -3
  176. package/dist/components/_MTreeNode.vue.d.ts +13 -11
  177. package/dist/composables/_fieldLayout.d.ts +47 -0
  178. package/dist/composables/useMap.d.ts +8 -0
  179. package/dist/{dist-CrjSW5DN.js → dist-Bj5kEq8G.js} +4 -6
  180. package/dist/dist-Bj5kEq8G.js.map +1 -0
  181. package/dist/draw.js +62 -82
  182. package/dist/draw.js.map +1 -1
  183. package/dist/{emoji-names-de-BphO5XpV.js → emoji-names-de-Cu3OSpp6.js} +2 -3
  184. package/dist/emoji-names-de-Cu3OSpp6.js.map +1 -0
  185. package/dist/{emoji-names-en-9ZvMRvzi.js → emoji-names-en-BNX1pM9h.js} +2 -3
  186. package/dist/emoji-names-en-BNX1pM9h.js.map +1 -0
  187. package/dist/{emoji-names-es-DvfWU3Pj.js → emoji-names-es-C_Dafg4D.js} +2 -3
  188. package/dist/emoji-names-es-C_Dafg4D.js.map +1 -0
  189. package/dist/{emoji-names-fr-B-jhUlsP.js → emoji-names-fr-D4HTMFuM.js} +2 -3
  190. package/dist/emoji-names-fr-D4HTMFuM.js.map +1 -0
  191. package/dist/{emoji-names-ja-l8cMFJo1.js → emoji-names-ja-BCql-Sj6.js} +2 -3
  192. package/dist/emoji-names-ja-BCql-Sj6.js.map +1 -0
  193. package/dist/{emoji-names-ko-YP-o9G0c.js → emoji-names-ko-CT8L52nn.js} +2 -3
  194. package/dist/emoji-names-ko-CT8L52nn.js.map +1 -0
  195. package/dist/{emoji-names-pt-DGj_Js4M.js → emoji-names-pt-DHiwPiL-.js} +2 -3
  196. package/dist/emoji-names-pt-DHiwPiL-.js.map +1 -0
  197. package/dist/{emoji-names-zh-Dzecwtw_.js → emoji-names-zh-L3FXVief.js} +2 -3
  198. package/dist/emoji-names-zh-L3FXVief.js.map +1 -0
  199. package/dist/flow.js +351 -374
  200. package/dist/flow.js.map +1 -1
  201. package/dist/{flowPaths-CcWOKY4Z.js → flowPaths-BaH7yaUM.js} +3 -8
  202. package/dist/flowPaths-BaH7yaUM.js.map +1 -0
  203. package/dist/gantt.js +272 -333
  204. package/dist/gantt.js.map +1 -1
  205. package/dist/locales/index.js +1 -2
  206. package/dist/locales/index.js.map +1 -1
  207. package/dist/m3ui-vue.css +1 -1
  208. package/dist/m3ui.js +4085 -4277
  209. package/dist/m3ui.js.map +1 -1
  210. package/dist/map.d.ts +1 -1
  211. package/dist/map.js +521 -520
  212. package/dist/map.js.map +1 -1
  213. package/dist/markdown.js +3 -4
  214. package/dist/markdown.js.map +1 -1
  215. package/dist/{material-color-utilities-C_iikgRm.js → material-color-utilities-CEFytLsr.js} +15 -32
  216. package/dist/material-color-utilities-CEFytLsr.js.map +1 -0
  217. package/dist/media.js +80 -94
  218. package/dist/media.js.map +1 -1
  219. package/dist/{motion-DZiXG09o.js → motion-BcejVTeX.js} +2 -3
  220. package/dist/motion-BcejVTeX.js.map +1 -0
  221. package/dist/pdf.js +103 -115
  222. package/dist/pdf.js.map +1 -1
  223. package/dist/qrcode.js +1 -2
  224. package/dist/qrcode.js.map +1 -1
  225. package/dist/rich-text-editor.js +33 -34
  226. package/dist/rich-text-editor.js.map +1 -1
  227. package/dist/styles.css +1 -1
  228. package/dist/terminal.js +2 -3
  229. package/dist/terminal.js.map +1 -1
  230. package/dist/{useLocale-DLcG3qPC.js → useLocale-COav9m8C.js} +2 -3
  231. package/dist/useLocale-COav9m8C.js.map +1 -0
  232. package/dist/{useThemeTokens-DQQcaWbE.js → useThemeTokens-DyAdPQB0.js} +6 -10
  233. package/dist/useThemeTokens-DyAdPQB0.js.map +1 -0
  234. package/package.json +32 -32
  235. package/src/__tests__/MFab.test.ts +10 -1
  236. package/src/__tests__/MMap.test.ts +16 -1
  237. package/src/__tests__/_fakeMaplibre.ts +2 -0
  238. package/src/__tests__/fieldOverflow.test.ts +118 -0
  239. package/src/components/MAutocomplete.vue +21 -24
  240. package/src/components/MColorPicker.vue +3 -3
  241. package/src/components/MDatePicker.vue +4 -4
  242. package/src/components/MDateRangePicker.vue +4 -4
  243. package/src/components/MMap.vue +12 -3
  244. package/src/components/MMapMeasure.vue +3 -1
  245. package/src/components/MMaskField.vue +16 -24
  246. package/src/components/MMultiAutocomplete.vue +19 -25
  247. package/src/components/MMultiSelect.vue +20 -27
  248. package/src/components/MNumberField.vue +16 -26
  249. package/src/components/MPinInput.vue +3 -2
  250. package/src/components/MSearchBar.vue +2 -2
  251. package/src/components/MSelect.vue +16 -22
  252. package/src/components/MTagInput.vue +19 -26
  253. package/src/components/MTextField.vue +18 -46
  254. package/src/components/MTimePicker.vue +4 -4
  255. package/src/composables/_fieldLayout.ts +117 -0
  256. package/src/composables/useMap.ts +17 -0
  257. package/src/composables/useMapLayers.ts +4 -1
  258. package/src/map.ts +1 -1
  259. package/dist/MButton-D_uxtJa-.js.map +0 -1
  260. package/dist/MDialog-DT4KAPmn.js.map +0 -1
  261. package/dist/MIcon-Bxh9j135.js.map +0 -1
  262. package/dist/MIconButton-DoNotQ9v.js.map +0 -1
  263. package/dist/MListItem-CwYrxpPZ.js.map +0 -1
  264. package/dist/MLoadingIndicator-DhzECYRI.js.map +0 -1
  265. package/dist/MMenuItem-Bih0h4-n.js.map +0 -1
  266. package/dist/MProgressBar-BCoruxA-.js.map +0 -1
  267. package/dist/MSeekBar-DQPF5FTp.js.map +0 -1
  268. package/dist/MSegmentedButton-DL9JtJFX.js.map +0 -1
  269. package/dist/MSlider-BvoMZTy9.js.map +0 -1
  270. package/dist/MSpinner-CgcCQhS9.js.map +0 -1
  271. package/dist/MTextField-B72dwF6V.js.map +0 -1
  272. package/dist/MTooltip-YyF1CO75.js.map +0 -1
  273. package/dist/_storageKeys-CYXsUBwK.js.map +0 -1
  274. package/dist/_useEscapeStack-CjndQhqg.js.map +0 -1
  275. package/dist/common-0dgrgaPL.js.map +0 -1
  276. package/dist/dist-CrjSW5DN.js.map +0 -1
  277. package/dist/emoji-names-de-BphO5XpV.js.map +0 -1
  278. package/dist/emoji-names-en-9ZvMRvzi.js.map +0 -1
  279. package/dist/emoji-names-es-DvfWU3Pj.js.map +0 -1
  280. package/dist/emoji-names-fr-B-jhUlsP.js.map +0 -1
  281. package/dist/emoji-names-ja-l8cMFJo1.js.map +0 -1
  282. package/dist/emoji-names-ko-YP-o9G0c.js.map +0 -1
  283. package/dist/emoji-names-pt-DGj_Js4M.js.map +0 -1
  284. package/dist/emoji-names-zh-Dzecwtw_.js.map +0 -1
  285. package/dist/flowPaths-CcWOKY4Z.js.map +0 -1
  286. package/dist/material-color-utilities-C_iikgRm.js.map +0 -1
  287. package/dist/motion-DZiXG09o.js.map +0 -1
  288. package/dist/useLocale-DLcG3qPC.js.map +0 -1
  289. package/dist/useThemeTokens-DQQcaWbE.js.map +0 -1
package/dist/map.js CHANGED
@@ -1,22 +1,29 @@
1
- import { t as e } from "./useThemeTokens-DQQcaWbE.js";
2
- import { o as t } from "./_storageKeys-CYXsUBwK.js";
3
- import { i as n } from "./useLocale-DLcG3qPC.js";
4
- import { d as r, f as i, l as a, t as o, u as s } from "./MIconButton-DoNotQ9v.js";
5
- import { i as c } from "./motion-DZiXG09o.js";
6
- import { t as l } from "./MIcon-Bxh9j135.js";
7
- import { t as u } from "./MSpinner-CgcCQhS9.js";
8
- import { t as d } from "./MTextField-B72dwF6V.js";
9
- import { t as f } from "./_useEscapeStack-CjndQhqg.js";
10
- import { a as p, r as m, s as h, t as g } from "./MListItem-CwYrxpPZ.js";
11
- import { t as _ } from "./MSlider-BvoMZTy9.js";
12
- import { Fragment as v, Transition as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as T, createTextVNode as E, createVNode as D, defineComponent as O, getCurrentInstance as k, inject as A, markRaw as j, mergeProps as M, normalizeClass as N, normalizeStyle as P, onBeforeUnmount as F, onMounted as ee, onUnmounted as I, openBlock as L, provide as te, reactive as R, ref as z, renderList as B, renderSlot as V, shallowRef as H, toDisplayString as U, toValue as ne, unref as W, useId as re, useSlots as G, watch as K, withCtx as q, withModifiers as J } from "vue";
13
- //#region src/composables/useMap.ts
14
- var ie = Symbol("m3-map");
15
- function ae(e) {
16
- let t = A(ie, null);
1
+ import { t as e } from "./MIcon-DpajuUTJ.js";
2
+ import { i as t } from "./motion-BcejVTeX.js";
3
+ import { d as n, f as r, l as i, t as a, u as o } from "./MIconButton-BBggVwBV.js";
4
+ import { i as s } from "./useLocale-COav9m8C.js";
5
+ import { o as c } from "./_storageKeys-C4W_4xK4.js";
6
+ import { t as l } from "./useThemeTokens-DyAdPQB0.js";
7
+ import { t as u } from "./MTextField-DpcPmR5B.js";
8
+ import { t as d } from "./MSlider-B9NcKTmZ.js";
9
+ import { t as f } from "./_useEscapeStack-C5-BYr8y.js";
10
+ import { a as p, r as m, s as h, t as g } from "./MListItem-DVi1j1QI.js";
11
+ import { t as _ } from "./MSpinner-_XpTRkAg.js";
12
+ import { Fragment as v, Transition as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as T, createTextVNode as E, createVNode as D, defineComponent as O, getCurrentInstance as k, inject as A, markRaw as j, mergeProps as M, normalizeClass as N, normalizeStyle as P, onBeforeUnmount as F, onMounted as ee, onUnmounted as te, openBlock as I, provide as ne, reactive as L, ref as R, renderList as z, renderSlot as B, shallowRef as V, toDisplayString as H, toValue as re, unref as U, useId as ie, useSlots as W, watch as G, withCtx as K, withModifiers as q } from "vue";
13
+ // src/composables/useMap.ts
14
+ var ae;
15
+ function oe(e) {
16
+ ae = e;
17
+ }
18
+ function se() {
19
+ return ae;
20
+ }
21
+ var J = Symbol("m3-map");
22
+ function Y(e) {
23
+ let t = A(J, null);
17
24
  if (t || e === void 0) return t;
18
25
  let n = b(() => {
19
- let t = ne(e);
26
+ let t = re(e);
20
27
  return t ? "context" in t ? t.context : t : void 0;
21
28
  }), r = {
22
29
  map: b(() => n.value?.map.value),
@@ -34,17 +41,17 @@ function ae(e) {
34
41
  }
35
42
  })
36
43
  };
37
- return te(ie, r), r;
44
+ return ne(J, r), r;
38
45
  }
39
- function Y(e) {
40
- let t = ae(e);
46
+ function X(e) {
47
+ let t = Y(e);
41
48
  if (!t) throw Error("useMap() must be called in a component inside <MMap>, or be given one");
42
49
  let n = [];
43
50
  k() && F(() => n.splice(0).forEach((e) => e()));
44
51
  function r(e) {
45
52
  let r = () => {
46
53
  if (t.map.value && t.maplibre.value) return e(t.map.value, t.maplibre.value);
47
- let r = K(t.map, (n) => {
54
+ let r = G(t.map, (n) => {
48
55
  n && t.maplibre.value && (r(), e(n, t.maplibre.value));
49
56
  });
50
57
  n.push(r);
@@ -71,12 +78,11 @@ function Y(e) {
71
78
  onLayer: a
72
79
  };
73
80
  }
74
- //#endregion
75
- //#region src/components/MMapControl.vue?vue&type=script&setup=true&lang.ts
76
- var oe = { class: "hidden" }, X = {
81
+ // src/components/MMapControl.vue?vue&type=script&setup=true&lang.ts
82
+ var ce = { class: "hidden" }, le = {
77
83
  key: 0,
78
84
  class: "m3-map-control-panel-in"
79
- }, se = /* @__PURE__ */ O({
85
+ }, ue = /* @__PURE__ */ O({
80
86
  inheritAttrs: !1,
81
87
  __name: "MMapControl",
82
88
  props: {
@@ -95,14 +101,14 @@ var oe = { class: "hidden" }, X = {
95
101
  }
96
102
  },
97
103
  emits: ["update:expanded"],
98
- setup(e, { emit: t }) {
99
- let n = e, o = t, l = G(), u = z(), { onReady: d } = Y(), f = z(n.expanded);
100
- K(() => n.expanded, (e) => {
104
+ setup(e, { emit: a }) {
105
+ let s = e, c = a, l = W(), u = R(), { onReady: d } = X(), f = R(s.expanded);
106
+ G(() => s.expanded, (e) => {
101
107
  f.value = e;
102
108
  });
103
109
  let p = b(() => f.value && !!l.panel);
104
110
  function m(e) {
105
- e !== f.value && (f.value = e, o("update:expanded", e));
111
+ e !== f.value && (f.value = e, c("update:expanded", e));
106
112
  }
107
113
  let h = () => m(!f.value), g = () => m(!1);
108
114
  function _(e) {
@@ -128,12 +134,12 @@ var oe = { class: "hidden" }, X = {
128
134
  let e = u.value;
129
135
  if (!e || x) return;
130
136
  let t = O();
131
- y && (t.w !== y.w || t.h !== y.h) && n.animate && !s() && A(e, y, t), y = t;
137
+ y && (t.w !== y.w || t.h !== y.h) && s.animate && !o() && A(e, y, t), y = t;
132
138
  }
133
- function A(e, t, n) {
134
- if (T = t, E = n, S = i(0, 1, 0, c.standard.defaultSpatial, .002), e.style.overflow = "hidden", x = a(e, S, (e) => ({
135
- width: `${t.w + (n.w - t.w) * e}px`,
136
- height: `${t.h + (n.h - t.h) * e}px`
139
+ function A(e, n, a) {
140
+ if (T = n, E = a, S = r(0, 1, 0, t.standard.defaultSpatial, .002), e.style.overflow = "hidden", x = i(e, S, (e) => ({
141
+ width: `${n.w + (a.w - n.w) * e}px`,
142
+ height: `${n.h + (a.h - n.h) * e}px`
137
143
  })), !x) return j(e);
138
144
  x.onfinish = () => j(e);
139
145
  }
@@ -144,43 +150,43 @@ var oe = { class: "hidden" }, X = {
144
150
  }
145
151
  function N() {
146
152
  if (!u.value || !x) return;
147
- let e = r(S, x.currentTime), t = {
153
+ let e = n(S, x.currentTime), t = {
148
154
  w: T.w + (E.w - T.w) * e,
149
155
  h: T.h + (E.h - T.h) * e
150
156
  };
151
157
  x.onfinish = null, x.cancel(), x = null, y = t, k();
152
158
  }
153
- K(p, N, { flush: "post" });
154
- let P, I = {
159
+ G(p, N, { flush: "post" });
160
+ let P, te = {
155
161
  onAdd: () => u.value,
156
162
  onRemove: () => u.value?.remove()
157
163
  };
158
164
  return d((e) => {
159
- P = e, u.value && e.addControl(I, n.position);
160
- }), K(() => n.position, (e) => {
161
- P && u.value && (P.removeControl(I), P.addControl(I, e));
165
+ P = e, u.value && e.addControl(te, s.position);
166
+ }), G(() => s.position, (e) => {
167
+ P && u.value && (P.removeControl(te), P.addControl(te, e));
162
168
  }), ee(() => {
163
- document.addEventListener("pointerdown", _, !0), !(typeof ResizeObserver > "u" || !u.value) && (D = new ResizeObserver(k), D.observe(u.value));
169
+ document.addEventListener("pointerdown", _, !0), typeof ResizeObserver < "u" && u.value && (D = new ResizeObserver(k), D.observe(u.value));
164
170
  }), F(() => {
165
- document.removeEventListener("pointerdown", _, !0), D?.disconnect(), x?.cancel(), P?.hasControl(I) && P.removeControl(I);
166
- }), (t, n) => (L(), C("div", oe, [w("div", M({
171
+ document.removeEventListener("pointerdown", _, !0), D?.disconnect(), x?.cancel(), P?.hasControl(te) && P.removeControl(te);
172
+ }), (t, n) => (I(), C("div", ce, [w("div", M({
167
173
  ref_key: "el",
168
174
  ref: u,
169
175
  class: ["maplibregl-ctrl m3-map-control", p.value ? "m3-map-control-panel" : e.group ? "maplibregl-ctrl-group" : ""]
170
- }, t.$attrs, { onKeydown: v }), [p.value ? (L(), C("div", X, [V(t.$slots, "panel", { close: g })])) : V(t.$slots, "default", {
176
+ }, t.$attrs, { onKeydown: v }), [p.value ? (I(), C("div", le, [B(t.$slots, "panel", { close: g })])) : B(t.$slots, "default", {
171
177
  expanded: f.value,
172
178
  toggle: h
173
179
  }, void 0, void 0, 1)], 16)]));
174
180
  }
175
- }), ce = [
181
+ }), de = [
176
182
  "title",
177
183
  "aria-label",
178
184
  "aria-expanded"
179
- ], le = ["innerHTML"], ue = /* @__PURE__ */ O({
185
+ ], fe = ["innerHTML"], pe = /* @__PURE__ */ O({
180
186
  __name: "_MMapAttribution",
181
187
  props: { position: {} },
182
- setup(e) {
183
- let t = e, r = n(), { on: i, onReady: a } = Y(), o = z([]), s = z(!0), c = z(0), u;
188
+ setup(t) {
189
+ let n = t, r = s(), { on: i, onReady: a } = X(), o = R([]), c = R(!0), l = R(0), u;
184
190
  function d() {
185
191
  if (!u) return;
186
192
  let e = u.getStyle?.();
@@ -192,42 +198,42 @@ var oe = { class: "hidden" }, X = {
192
198
  e && !n.includes(e) && n.push(e);
193
199
  }
194
200
  let r = n.filter((e) => !n.some((t) => t !== e && t.includes(e)));
195
- r.join("\n") !== o.value.join("\n") && (o.value = r), c.value = Math.max(0, u.getContainer().clientWidth - 20);
201
+ r.join("\n") !== o.value.join("\n") && (o.value = r), l.value = Math.max(0, u.getContainer().clientWidth - 20);
196
202
  }
197
203
  a((e) => {
198
204
  u = e, d();
199
205
  }), i("styledata", d), i("sourcedata", d), i("resize", d), i("dragstart", () => {
200
- s.value = !1;
206
+ c.value = !1;
201
207
  });
202
- let f = b(() => o.value.join(" ")), p = b(() => t.position.endsWith("right"));
203
- return (t, n) => f.value ? (L(), x(se, {
208
+ let f = b(() => o.value.join(" ")), p = b(() => n.position.endsWith("right"));
209
+ return (n, i) => f.value ? (I(), x(ue, {
204
210
  key: 0,
205
- position: e.position,
211
+ position: t.position,
206
212
  group: !1,
207
- class: N(["m3-map-attrib", s.value ? "m3-map-attrib-open" : ""])
213
+ class: N(["m3-map-attrib", c.value ? "m3-map-attrib-open" : ""])
208
214
  }, {
209
- default: q(() => [w("div", {
215
+ default: K(() => [w("div", {
210
216
  class: N(["m3-map-attrib-row", p.value ? "flex-row-reverse" : ""]),
211
- style: P(c.value ? { maxWidth: `${c.value}px` } : void 0)
217
+ style: P(l.value ? { maxWidth: `${l.value}px` } : void 0)
212
218
  }, [w("button", {
213
219
  type: "button",
214
220
  class: "m3-map-attrib-button",
215
- title: W(r).mapToggleAttribution,
216
- "aria-label": W(r).mapToggleAttribution,
217
- "aria-expanded": s.value,
218
- onClick: n[0] ||= (e) => s.value = !s.value
219
- }, [D(l, {
221
+ title: U(r).mapToggleAttribution,
222
+ "aria-label": U(r).mapToggleAttribution,
223
+ "aria-expanded": c.value,
224
+ onClick: i[0] ||= (e) => c.value = !c.value
225
+ }, [D(e, {
220
226
  name: "info",
221
227
  size: 20
222
- })], 8, ce), s.value ? (L(), C("div", {
228
+ })], 8, de), c.value ? (I(), C("div", {
223
229
  key: 0,
224
230
  class: N(["m3-map-attrib-text", p.value ? "pl-3.5" : "pr-3.5"]),
225
231
  innerHTML: f.value
226
- }, null, 10, le)) : S("", !0)], 6)]),
232
+ }, null, 10, fe)) : S("", !0)], 6)]),
227
233
  _: 1
228
234
  }, 8, ["position", "class"])) : S("", !0);
229
235
  }
230
- }), de = {
236
+ }), me = {
231
237
  fill: ["fill-opacity"],
232
238
  line: ["line-opacity"],
233
239
  circle: ["circle-opacity", "circle-stroke-opacity"],
@@ -236,25 +242,25 @@ var oe = { class: "hidden" }, X = {
236
242
  heatmap: ["heatmap-opacity"],
237
243
  "fill-extrusion": ["fill-extrusion-opacity"]
238
244
  };
239
- function fe() {
240
- return R({
245
+ function he() {
246
+ return L({
241
247
  visible: {},
242
248
  opacity: {}
243
249
  });
244
250
  }
245
- function pe(e, t, n) {
251
+ function ge(e, t, n) {
246
252
  let r = {}, i = {};
247
253
  for (let e of n?.layers ?? []) {
248
254
  let n = t.getLayer(e.id);
249
255
  if (!n) continue;
250
256
  r[e.id] = t.getLayoutProperty(e.id, "visibility") !== "none";
251
- let a = de[n.type]?.[0], o = a ? t.getPaintProperty(e.id, a) : void 0;
257
+ let a = me[n.type]?.[0], o = a ? t.getPaintProperty(e.id, a) : void 0;
252
258
  i[e.id] = typeof o == "number" ? o : 1;
253
259
  }
254
260
  e.visible = r, e.opacity = i;
255
261
  }
256
262
  function Z(e) {
257
- let t = ae(e);
263
+ let t = Y(e);
258
264
  if (!t) throw Error("useMapLayers() must be called in a component inside <MMap>, or be given one");
259
265
  let { map: n, model: r, layerState: i } = t, a = b(() => r.value?.layers ?? []), o = b(() => new Map(a.value.map((e) => [e.id, e])));
260
266
  function s(e) {
@@ -273,7 +279,7 @@ function Z(e) {
273
279
  }
274
280
  function d(e, t) {
275
281
  let r = n.value, a = r?.getLayer(e);
276
- if (a) for (let n of de[a.type] ?? []) r.setPaintProperty(e, n, t);
282
+ if (a) for (let n of me[a.type] ?? []) r.setPaintProperty(e, n, t);
277
283
  i.opacity[e] = t;
278
284
  for (let n of o.value.get(e)?.children ?? []) d(n, t);
279
285
  }
@@ -307,15 +313,14 @@ function Z(e) {
307
313
  setBaseLayer: _
308
314
  };
309
315
  }
310
- //#endregion
311
- //#region src/composables/_mapStyle.ts
312
- function me(e) {
316
+ // src/composables/_mapStyle.ts
317
+ function _e(e) {
313
318
  return {
314
319
  sources: new Set(Object.keys(e?.sources ?? {})),
315
320
  layers: new Set((e?.layers ?? []).map((e) => e.id))
316
321
  };
317
322
  }
318
- function he(e, t, n, r = () => !0) {
323
+ function ve(e, t, n, r = () => !0) {
319
324
  if (!e) return t;
320
325
  let i = new Set(t.layers.map((e) => e.id)), a = e.layers.filter((e) => !n.layers.has(e.id) && !i.has(e.id) && r(e)), o = { ...t.sources };
321
326
  for (let [t, r] of Object.entries(e.sources)) !n.sources.has(t) && !(t in o) && (o[t] = r);
@@ -325,9 +330,8 @@ function he(e, t, n, r = () => !0) {
325
330
  layers: [...t.layers, ...a]
326
331
  };
327
332
  }
328
- //#endregion
329
- //#region src/components/MMap.vue?vue&type=script&setup=true&lang.ts
330
- var ge = 600, _e = /* @__PURE__ */ O({
333
+ // src/components/MMap.vue?vue&type=script&setup=true&lang.ts
334
+ var ye = 600, be = /* @__PURE__ */ O({
331
335
  __name: "MMap",
332
336
  props: {
333
337
  mapStyle: {},
@@ -344,6 +348,7 @@ var ge = 600, _e = /* @__PURE__ */ O({
344
348
  type: [Boolean, String],
345
349
  default: !1
346
350
  },
351
+ workerUrl: {},
347
352
  navigation: {
348
353
  type: [Boolean, String],
349
354
  default: !0
@@ -375,20 +380,20 @@ var ge = 600, _e = /* @__PURE__ */ O({
375
380
  "update:bearing",
376
381
  "update:pitch"
377
382
  ],
378
- setup(e, { expose: r, emit: i }) {
379
- let a = e, o = i, s = z(), c = z(), l = H(), u = H(), d = z(0), f, p = H(), m = fe(), h = {
383
+ setup(e, { expose: t, emit: n }) {
384
+ let r = e, i = n, a = R(), o = R(), l = V(), u = V(), d = R(0), f, p = V(), m = he(), h = {
380
385
  map: l,
381
386
  maplibre: u,
382
387
  styleVersion: d,
383
388
  model: p,
384
389
  layerState: m,
385
- activeTool: z(null)
390
+ activeTool: R(null)
386
391
  };
387
- te(ie, h);
392
+ ne(J, h);
388
393
  function g(e) {
389
- p.value = a.adapter ? a.adapter(e.getStyle(), { styleUrl: typeof a.mapStyle == "string" ? a.mapStyle : void 0 }) : void 0, pe(m, e, p.value);
394
+ p.value = r.adapter ? r.adapter(e.getStyle(), { styleUrl: typeof r.mapStyle == "string" ? r.mapStyle : void 0 }) : void 0, ge(m, e, p.value);
390
395
  }
391
- let _ = n(), v = () => typeof a.persist == "string" ? a.persist : a.persist ? t("m3-map-view") : null;
396
+ let _ = s(), v = () => typeof r.persist == "string" ? r.persist : r.persist ? c("m3-map-view") : null;
392
397
  function b() {
393
398
  let e = v();
394
399
  if (!e) return {};
@@ -422,7 +427,7 @@ var ge = 600, _e = /* @__PURE__ */ O({
422
427
  },
423
428
  fullscreen: {
424
429
  corner: "top-right",
425
- create: (e) => new e.FullscreenControl({ container: s.value })
430
+ create: (e) => new e.FullscreenControl({ container: a.value })
426
431
  },
427
432
  scale: {
428
433
  corner: "bottom-left",
@@ -435,14 +440,14 @@ var ge = 600, _e = /* @__PURE__ */ O({
435
440
  function k(e) {
436
441
  let t = l.value, n = u.value;
437
442
  if (!t || !n) return;
438
- let r = O.get(e);
439
- r && (t.removeControl(r), O.delete(e));
440
- let i = a[e];
441
- if (!i) return;
443
+ let i = O.get(e);
444
+ i && (t.removeControl(i), O.delete(e));
445
+ let a = r[e];
446
+ if (!a) return;
442
447
  let o = E[e].create(n);
443
- t.addControl(o, i === !0 ? E[e].corner : i), O.set(e, o);
448
+ t.addControl(o, a === !0 ? E[e].corner : a), O.set(e, o);
444
449
  }
445
- for (let e of Object.keys(E)) K(() => a[e], () => k(e));
450
+ for (let e of Object.keys(E)) G(() => r[e], () => k(e));
446
451
  function A() {
447
452
  return {
448
453
  "AttributionControl.ToggleAttribution": _.mapToggleAttribution,
@@ -462,13 +467,13 @@ var ge = 600, _e = /* @__PURE__ */ O({
462
467
  "CooperativeGesturesHandler.MobileHelpText": _.mapTwoFingers
463
468
  };
464
469
  }
465
- let M = z(null), R, B;
466
- function ne(e) {
470
+ let M = R(null), L, z;
471
+ function re(e) {
467
472
  let t = e.getAttribute("title");
468
473
  t && e.closest(".maplibregl-ctrl") && (e.setAttribute("data-m3-tip", t), e.hasAttribute("aria-label") || e.setAttribute("aria-label", t), e.removeAttribute("title"));
469
474
  }
470
- function W(e) {
471
- let t = e.getAttribute("data-m3-tip"), n = s.value?.getBoundingClientRect();
475
+ function U(e) {
476
+ let t = e.getAttribute("data-m3-tip"), n = a.value?.getBoundingClientRect();
472
477
  if (!t || !n) return;
473
478
  let r = e.getBoundingClientRect(), i = r.left + r.width / 2 > n.left + n.width / 2;
474
479
  M.value = {
@@ -478,123 +483,125 @@ var ge = 600, _e = /* @__PURE__ */ O({
478
483
  y: r.top + r.height / 2 - n.top
479
484
  };
480
485
  }
481
- function re() {
482
- clearTimeout(R), M.value = null;
486
+ function ie() {
487
+ clearTimeout(L), M.value = null;
483
488
  }
484
- let G = (e) => e.target?.closest?.(".maplibregl-ctrl [data-m3-tip]") ?? null;
485
- function J(e) {
486
- let t = G(e);
487
- t && e.pointerType !== "touch" && (clearTimeout(R), R = setTimeout(() => W(t), ge));
489
+ let W = (e) => e.target?.closest?.(".maplibregl-ctrl [data-m3-tip]") ?? null;
490
+ function q(e) {
491
+ let t = W(e);
492
+ t && e.pointerType !== "touch" && (clearTimeout(L), L = setTimeout(() => U(t), ye));
488
493
  }
489
494
  function ae(e) {
490
- let t = G(e);
491
- t && !t.contains(e.relatedTarget) && re();
495
+ let t = W(e);
496
+ t && !t.contains(e.relatedTarget) && ie();
492
497
  }
493
- function Y(e) {
494
- let t = G(e);
495
- t?.matches(":focus-visible") && W(t);
498
+ function oe(e) {
499
+ let t = W(e);
500
+ t?.matches(":focus-visible") && U(t);
496
501
  }
497
502
  ee(() => {
498
- let e = s.value;
499
- e && (e.querySelectorAll("[title]").forEach(ne), B = new MutationObserver((e) => {
500
- for (let t of e) t.type === "attributes" ? ne(t.target) : t.addedNodes.forEach((e) => {
501
- e instanceof Element && (ne(e), e.querySelectorAll("[title]").forEach(ne));
503
+ let e = a.value;
504
+ e && (e.querySelectorAll("[title]").forEach(re), z = new MutationObserver((e) => {
505
+ for (let t of e) t.type === "attributes" ? re(t.target) : t.addedNodes.forEach((e) => {
506
+ e instanceof Element && (re(e), e.querySelectorAll("[title]").forEach(re));
502
507
  });
503
- }), B.observe(e, {
508
+ }), z.observe(e, {
504
509
  subtree: !0,
505
510
  childList: !0,
506
511
  attributes: !0,
507
512
  attributeFilter: ["title"]
508
513
  }));
509
514
  }), F(() => {
510
- B?.disconnect(), clearTimeout(R);
515
+ z?.disconnect(), clearTimeout(L);
511
516
  });
512
- let oe = !1;
517
+ let Y = !1;
513
518
  ee(async () => {
514
519
  let e = await import("maplibre-gl"), t = "Map" in e ? e : e.default;
515
- if (oe || !c.value) return;
516
- let n = b(), r = {
517
- center: n.center ?? a.center,
518
- zoom: n.zoom ?? a.zoom,
519
- bearing: n.bearing ?? a.bearing,
520
- pitch: n.pitch ?? a.pitch
521
- }, i = j(new t.Map({
522
- container: c.value,
523
- style: a.mapStyle,
520
+ if (Y || !o.value) return;
521
+ let n = r.workerUrl ?? se();
522
+ n && t.setWorkerUrl(n);
523
+ let a = b(), s = {
524
+ center: a.center ?? r.center,
525
+ zoom: a.zoom ?? r.zoom,
526
+ bearing: a.bearing ?? r.bearing,
527
+ pitch: a.pitch ?? r.pitch
528
+ }, c = j(new t.Map({
529
+ container: o.value,
530
+ style: r.mapStyle,
524
531
  attributionControl: !1,
525
532
  locale: A(),
526
- ...Object.fromEntries(Object.entries(r).filter(([, e]) => e !== void 0)),
527
- ...a.options
533
+ ...Object.fromEntries(Object.entries(s).filter(([, e]) => e !== void 0)),
534
+ ...r.options
528
535
  }));
529
- u.value = t, i.on("style.load", () => {
530
- f ||= me(i.getStyle()), g(i), d.value++;
531
- }), i.on("click", (e) => o("click", e)), i.on("moveend", () => {
532
- let e = T(i);
533
- o("update:center", e.center), o("update:zoom", e.zoom), o("update:bearing", e.bearing), o("update:pitch", e.pitch);
536
+ u.value = t, c.on("style.load", () => {
537
+ f ||= _e(c.getStyle()), g(c), d.value++;
538
+ }), c.on("click", (e) => i("click", e)), c.on("moveend", () => {
539
+ let e = T(c);
540
+ i("update:center", e.center), i("update:zoom", e.zoom), i("update:bearing", e.bearing), i("update:pitch", e.pitch);
534
541
  let t = v();
535
542
  if (t) try {
536
543
  localStorage.setItem(t, JSON.stringify(e));
537
544
  } catch {}
538
- }), i.once("load", () => {
539
- l.value = i;
545
+ }), c.once("load", () => {
546
+ l.value = c;
540
547
  for (let e of Object.keys(E)) k(e);
541
- o("ready", i);
548
+ i("ready", c);
542
549
  });
543
- }), I(() => {
544
- oe = !0, l.value?.remove(), l.value = void 0;
550
+ }), te(() => {
551
+ Y = !0, l.value?.remove(), l.value = void 0;
545
552
  });
546
553
  let X = (e, t) => Math.abs(e - t) < 1e-9;
547
- return K(() => a.center?.join(","), () => {
554
+ return G(() => r.center?.join(","), () => {
548
555
  let e = l.value;
549
- if (!e || !a.center) return;
556
+ if (!e || !r.center) return;
550
557
  let t = e.getCenter();
551
- (!X(t.lng, a.center[0]) || !X(t.lat, a.center[1])) && e.jumpTo({ center: a.center });
552
- }), K(() => a.zoom, (e) => {
558
+ X(t.lng, r.center[0]) && X(t.lat, r.center[1]) || e.jumpTo({ center: r.center });
559
+ }), G(() => r.zoom, (e) => {
553
560
  l.value && e !== void 0 && !X(l.value.getZoom(), e) && l.value.jumpTo({ zoom: e });
554
- }), K(() => a.bearing, (e) => {
561
+ }), G(() => r.bearing, (e) => {
555
562
  l.value && e !== void 0 && !X(l.value.getBearing(), e) && l.value.jumpTo({ bearing: e });
556
- }), K(() => a.pitch, (e) => {
563
+ }), G(() => r.pitch, (e) => {
557
564
  l.value && e !== void 0 && !X(l.value.getPitch(), e) && l.value.jumpTo({ pitch: e });
558
- }), K(() => a.adapter, () => {
565
+ }), G(() => r.adapter, () => {
559
566
  l.value && g(l.value);
560
- }), K(() => a.mapStyle, (e) => l.value?.setStyle(e, {
567
+ }), G(() => r.mapStyle, (e) => l.value?.setStyle(e, {
561
568
  diff: !1,
562
569
  transformStyle: (e, t) => {
563
- let n = f ?? me(void 0);
564
- f = me(t);
565
- let r = a.keepLayers, i = r === !1 ? t : he(e, t, n, typeof r == "function" ? r : void 0);
566
- return a.transformStyle && (i = a.transformStyle(e, i)), i;
570
+ let n = f ?? _e(void 0);
571
+ f = _e(t);
572
+ let i = r.keepLayers, a = i === !1 ? t : ve(e, t, n, typeof i == "function" ? i : void 0);
573
+ return r.transformStyle && (a = r.transformStyle(e, a)), a;
567
574
  }
568
- })), r({
575
+ })), t({
569
576
  map: l,
570
577
  context: h
571
- }), (t, n) => (L(), C("div", {
578
+ }), (t, n) => (I(), C("div", {
572
579
  ref_key: "root",
573
- ref: s,
580
+ ref: a,
574
581
  class: "m3-map relative overflow-hidden",
575
- onPointerover: J,
582
+ onPointerover: q,
576
583
  onPointerout: ae,
577
- onPointerdown: re,
578
- onFocusin: Y,
579
- onFocusout: re
584
+ onPointerdown: ie,
585
+ onFocusin: oe,
586
+ onFocusout: ie
580
587
  }, [
581
588
  w("div", {
582
589
  ref_key: "container",
583
- ref: c,
590
+ ref: o,
584
591
  class: "h-full w-full"
585
592
  }, null, 512),
586
- l.value && e.attribution ? (L(), x(ue, {
593
+ l.value && e.attribution ? (I(), x(pe, {
587
594
  key: 0,
588
595
  position: e.attribution === !0 ? "bottom-right" : e.attribution
589
596
  }, null, 8, ["position"])) : S("", !0),
590
- l.value ? V(t.$slots, "default", {}, void 0, void 0, 1) : S("", !0),
597
+ l.value ? B(t.$slots, "default", {}, void 0, void 0, 1) : S("", !0),
591
598
  D(y, {
592
599
  "enter-active-class": "transition-opacity duration-150",
593
600
  "enter-from-class": "opacity-0",
594
601
  "leave-active-class": "transition-opacity duration-100",
595
602
  "leave-to-class": "opacity-0"
596
603
  }, {
597
- default: q(() => [M.value ? (L(), C("div", {
604
+ default: K(() => [M.value ? (I(), C("div", {
598
605
  key: 0,
599
606
  role: "tooltip",
600
607
  class: N(["pointer-events-none absolute z-10 min-h-6 max-w-[200px] -translate-y-1/2 rounded bg-inverse-surface px-2 py-1 text-body-small whitespace-nowrap text-inverse-on-surface", M.value.left ? "-translate-x-full" : ""]),
@@ -602,22 +609,22 @@ var ge = 600, _e = /* @__PURE__ */ O({
602
609
  left: `${M.value.x}px`,
603
610
  top: `${M.value.y}px`
604
611
  })
605
- }, U(M.value.text), 7)) : S("", !0)]),
612
+ }, H(M.value.text), 7)) : S("", !0)]),
606
613
  _: 1
607
614
  })
608
615
  ], 544));
609
616
  }
610
- }), ve = 13.5, ye = ve / Math.SQRT2, be = [0, -14], xe = {
617
+ }), xe = 13.5, Q = xe / Math.SQRT2, Se = [0, -14], Ce = {
611
618
  center: [0, 0],
612
619
  top: [0, 0],
613
620
  "top-left": [0, 0],
614
621
  "top-right": [0, 0],
615
622
  bottom: [0, -38.1],
616
- "bottom-left": [ye, (24.6 + ye) * -1],
617
- "bottom-right": [-ye, (24.6 + ye) * -1],
618
- left: [ve, -24.6],
623
+ "bottom-left": [Q, (24.6 + Q) * -1],
624
+ "bottom-right": [-Q, (24.6 + Q) * -1],
625
+ left: [xe, -24.6],
619
626
  right: [-13.5, -24.6]
620
- }, Q = { class: "hidden" }, Se = /* @__PURE__ */ O({
627
+ }, we = { class: "hidden" }, Te = /* @__PURE__ */ O({
621
628
  inheritAttrs: !1,
622
629
  __name: "MMapMarker",
623
630
  props: {
@@ -633,7 +640,7 @@ var ge = 600, _e = /* @__PURE__ */ O({
633
640
  },
634
641
  emits: ["update:lngLat", "click"],
635
642
  setup(e, { expose: t, emit: n }) {
636
- let r = e, i = n, a = G(), o = z(), s = z(), { onReady: c } = Y(), l, u = !1;
643
+ let r = e, i = n, a = W(), o = R(), s = R(), { onReady: c } = X(), l, u = !1;
637
644
  c((e, t) => {
638
645
  u = !!a.default && !!o.value, l = new t.Marker({
639
646
  ...u ? { element: o.value } : { color: r.color ?? "currentColor" },
@@ -652,20 +659,20 @@ var ge = 600, _e = /* @__PURE__ */ O({
652
659
  function d(e) {
653
660
  i("click", e);
654
661
  }
655
- return K(() => r.lngLat.join(","), () => l?.setLngLat(r.lngLat)), K(() => r.draggable, (e) => l?.setDraggable(e)), K(() => r.rotation, (e) => l?.setRotation(e)), K(() => r.offset?.join(","), () => l?.setOffset(r.offset ?? (u ? [0, 0] : be))), F(() => {
662
+ return G(() => r.lngLat.join(","), () => l?.setLngLat(r.lngLat)), G(() => r.draggable, (e) => l?.setDraggable(e)), G(() => r.rotation, (e) => l?.setRotation(e)), G(() => r.offset?.join(","), () => l?.setOffset(r.offset ?? (u ? [0, 0] : Se))), F(() => {
656
663
  l?.getElement().removeEventListener("click", d), l?.getPopup()?.remove(), l?.remove();
657
- }), t({ marker: () => l }), (e, t) => (L(), C("div", Q, [e.$slots.default ? (L(), C("div", M({
664
+ }), t({ marker: () => l }), (e, t) => (I(), C("div", we, [e.$slots.default ? (I(), C("div", M({
658
665
  key: 0,
659
666
  ref_key: "content",
660
667
  ref: o,
661
668
  class: "m3-map-marker"
662
- }, e.$attrs), [V(e.$slots, "default")], 16)) : S("", !0), e.$slots.popup ? (L(), C("div", {
669
+ }, e.$attrs), [B(e.$slots, "default")], 16)) : S("", !0), e.$slots.popup ? (I(), C("div", {
663
670
  key: 1,
664
671
  ref_key: "popupContent",
665
672
  ref: s
666
- }, [V(e.$slots, "popup")], 512)) : S("", !0)]));
673
+ }, [B(e.$slots, "popup")], 512)) : S("", !0)]));
667
674
  }
668
- }), Ce = { class: "hidden" }, we = /* @__PURE__ */ O({
675
+ }), Ee = { class: "hidden" }, De = /* @__PURE__ */ O({
669
676
  inheritAttrs: !1,
670
677
  __name: "MMapPopup",
671
678
  props: {
@@ -688,7 +695,7 @@ var ge = 600, _e = /* @__PURE__ */ O({
688
695
  },
689
696
  emits: ["update:open"],
690
697
  setup(e, { expose: t, emit: n }) {
691
- let r = e, i = n, a = z(), { onReady: o } = Y(), s, c, l = !1;
698
+ let r = e, i = n, a = R(), { onReady: o } = X(), s, c, l = !1;
692
699
  function u() {
693
700
  s && c && !s.isOpen() && s.setLngLat(r.lngLat).addTo(c);
694
701
  }
@@ -704,16 +711,16 @@ var ge = 600, _e = /* @__PURE__ */ O({
704
711
  }), a.value && s.setDOMContent(a.value), s.on("close", () => {
705
712
  l || i("update:open", !1);
706
713
  }), r.open && u();
707
- }), K(() => r.open, (e) => {
714
+ }), G(() => r.open, (e) => {
708
715
  e ? u() : s?.isOpen() && (l = !0, s.remove(), l = !1);
709
- }), K(() => r.lngLat.join(","), () => s?.setLngLat(r.lngLat)), K(() => r.maxWidth, (e) => s?.setMaxWidth(e)), K(() => r.offset, (e) => s?.setOffset(e ?? 0)), F(() => {
716
+ }), G(() => r.lngLat.join(","), () => s?.setLngLat(r.lngLat)), G(() => r.maxWidth, (e) => s?.setMaxWidth(e)), G(() => r.offset, (e) => s?.setOffset(e ?? 0)), F(() => {
710
717
  l = !0, s?.remove();
711
- }), t({ popup: () => s }), (e, t) => (L(), C("div", Ce, [w("div", M({
718
+ }), t({ popup: () => s }), (e, t) => (I(), C("div", Ee, [w("div", M({
712
719
  ref_key: "content",
713
720
  ref: a
714
- }, e.$attrs), [V(e.$slots, "default")], 16)]));
721
+ }, e.$attrs), [B(e.$slots, "default")], 16)]));
715
722
  }
716
- }), Te = /* @__PURE__ */ O({
723
+ }), Oe = /* @__PURE__ */ O({
717
724
  inheritAttrs: !1,
718
725
  __name: "MMapGeoJson",
719
726
  props: {
@@ -728,18 +735,18 @@ var ge = 600, _e = /* @__PURE__ */ O({
728
735
  sourceOptions: {}
729
736
  },
730
737
  emits: ["click"],
731
- setup(t, { expose: n, emit: r }) {
732
- let i = t, a = r, o = i.id ?? `m3-geojson-${re()}`, { onReady: s, styleVersion: c } = Y(), l = e(["primary", "surface"]), u = (...e) => [
738
+ setup(e, { expose: t, emit: n }) {
739
+ let r = e, i = n, a = r.id ?? `m3-geojson-${ie()}`, { onReady: o, styleVersion: s } = X(), c = l(["primary", "surface"]), u = (...e) => [
733
740
  "match",
734
741
  ["geometry-type"],
735
742
  e,
736
743
  !0,
737
744
  !1
738
745
  ], d = b(() => {
739
- let { primary: e, surface: t } = l.value;
746
+ let { primary: e, surface: t } = c.value;
740
747
  return [
741
748
  {
742
- id: `${o}-fill`,
749
+ id: `${a}-fill`,
743
750
  type: "fill",
744
751
  filter: u("Polygon", "MultiPolygon"),
745
752
  paint: {
@@ -748,7 +755,7 @@ var ge = 600, _e = /* @__PURE__ */ O({
748
755
  }
749
756
  },
750
757
  {
751
- id: `${o}-line`,
758
+ id: `${a}-line`,
752
759
  type: "line",
753
760
  filter: u("Polygon", "MultiPolygon", "LineString", "MultiLineString"),
754
761
  paint: {
@@ -757,7 +764,7 @@ var ge = 600, _e = /* @__PURE__ */ O({
757
764
  }
758
765
  },
759
766
  {
760
- id: `${o}-circle`,
767
+ id: `${a}-circle`,
761
768
  type: "circle",
762
769
  filter: u("Point", "MultiPoint"),
763
770
  paint: {
@@ -768,14 +775,14 @@ var ge = 600, _e = /* @__PURE__ */ O({
768
775
  }
769
776
  }
770
777
  ];
771
- }), f = b(() => (i.layers ?? d.value).map((e, t) => ({
778
+ }), f = b(() => (r.layers ?? d.value).map((e, t) => ({
772
779
  ...e,
773
- id: e.id ?? `${o}-${t}`,
774
- source: o
775
- }))), p, m = [], h = (e) => a("click", e), g = () => {
776
- i.interactive && p && (p.getCanvas().style.cursor = "pointer");
780
+ id: e.id ?? `${a}-${t}`,
781
+ source: a
782
+ }))), p, m = [], h = (e) => i("click", e), g = () => {
783
+ r.interactive && p && (p.getCanvas().style.cursor = "pointer");
777
784
  }, _ = () => {
778
- i.interactive && p && (p.getCanvas().style.cursor = "");
785
+ r.interactive && p && (p.getCanvas().style.cursor = "");
779
786
  };
780
787
  function v() {
781
788
  if (p) {
@@ -786,119 +793,119 @@ var ge = 600, _e = /* @__PURE__ */ O({
786
793
  function y() {
787
794
  if (p) {
788
795
  v();
789
- for (let e of f.value) p.addLayer(e, i.before && p.getLayer(i.before) ? i.before : void 0), p.on("click", e.id, h), p.on("mouseenter", e.id, g), p.on("mouseleave", e.id, _), m.push(e.id);
796
+ for (let e of f.value) p.addLayer(e, r.before && p.getLayer(r.before) ? r.before : void 0), p.on("click", e.id, h), p.on("mouseenter", e.id, g), p.on("mouseleave", e.id, _), m.push(e.id);
790
797
  }
791
798
  }
792
799
  function x() {
793
- p && (p.getSource(o) || (p.addSource(o, {
800
+ p && (p.getSource(a) || (p.addSource(a, {
794
801
  type: "geojson",
795
- data: i.data,
796
- ...i.sourceOptions
797
- }), m = []), (!m.length || !p.getLayer(m[0])) && y());
802
+ data: r.data,
803
+ ...r.sourceOptions
804
+ }), m = []), m.length && p.getLayer(m[0]) || y());
798
805
  }
799
- return s((e) => {
806
+ return o((e) => {
800
807
  p = e, x();
801
- }), K(c, () => x()), K(() => i.data, (e) => (p?.getSource(o))?.setData(e)), K(() => JSON.stringify(f.value), () => y()), K(() => i.before, () => y()), F(() => {
802
- p &&= (v(), p.getSource(o) && p.removeSource(o), void 0);
803
- }), n({
804
- sourceId: o,
808
+ }), G(s, () => x()), G(() => r.data, (e) => (p?.getSource(a))?.setData(e)), G(() => JSON.stringify(f.value), () => y()), G(() => r.before, () => y()), F(() => {
809
+ p &&= (v(), p.getSource(a) && p.removeSource(a), void 0);
810
+ }), t({
811
+ sourceId: a,
805
812
  layerIds: () => [...m]
806
813
  }), (e, t) => null;
807
814
  }
808
- }), Ee = { class: "flex min-w-0 flex-1 flex-col" }, De = ["aria-label", "aria-pressed"], Oe = { class: "flex min-w-0 flex-1 flex-col" }, ke = {
815
+ }), ke = { class: "flex min-w-0 flex-1 flex-col" }, Ae = ["aria-label", "aria-pressed"], je = { class: "flex min-w-0 flex-1 flex-col" }, Me = {
809
816
  key: 0,
810
817
  class: "truncate text-label-small text-on-surface-variant"
811
- }, Ae = {
818
+ }, Ne = {
812
819
  key: 0,
813
820
  class: "rounded-full bg-primary/8 px-2 py-0.5 text-label-small tabular-nums text-primary"
814
- }, je = { class: "min-h-0 overflow-hidden" }, Me = { class: "flex flex-col gap-3 px-3 pb-3" }, Ne = {
821
+ }, Pe = { class: "min-h-0 overflow-hidden" }, Fe = { class: "flex flex-col gap-3 px-3 pb-3" }, Ie = {
815
822
  key: 0,
816
823
  class: "text-body-small text-on-surface-variant"
817
- }, Pe = { class: "flex items-center gap-2 rounded-2xl bg-surface-container-highest/60 px-3 py-1" }, Fe = ["src"], Ie = {
824
+ }, Le = { class: "flex items-center gap-2 rounded-2xl bg-surface-container-highest/60 px-3 py-1" }, Re = ["src"], ze = {
818
825
  key: 2,
819
826
  class: "flex flex-wrap items-center gap-2"
820
- }, Le = ["href"], Re = /* @__PURE__ */ O({
827
+ }, Be = ["href"], Ve = /* @__PURE__ */ O({
821
828
  __name: "_MMapLayerItem",
822
829
  props: {
823
830
  layer: {},
824
831
  expanded: { type: Boolean }
825
832
  },
826
833
  emits: ["toggle-expanded"],
827
- setup(e, { emit: t }) {
828
- let r = t, i = n(), { isVisible: a, toggle: o, opacityOf: s, setOpacity: c } = Z();
829
- return (t, n) => (L(), C("div", { class: N(["flex overflow-hidden rounded-2xl bg-surface-container", W(a)(e.layer.id) ? "" : "opacity-75"]) }, [w("div", { class: N(["w-1 shrink-0 transition-colors duration-200", W(a)(e.layer.id) ? "bg-primary" : "bg-outline-variant"]) }, null, 2), w("div", Ee, [w("div", {
834
+ setup(t, { emit: n }) {
835
+ let r = n, i = s(), { isVisible: a, toggle: o, opacityOf: c, setOpacity: l } = Z();
836
+ return (n, s) => (I(), C("div", { class: N(["flex overflow-hidden rounded-2xl bg-surface-container", U(a)(t.layer.id) ? "" : "opacity-75"]) }, [w("div", { class: N(["w-1 shrink-0 transition-colors duration-200", U(a)(t.layer.id) ? "bg-primary" : "bg-outline-variant"]) }, null, 2), w("div", ke, [w("div", {
830
837
  class: "flex cursor-pointer items-center gap-2 px-3 py-2",
831
- onClick: n[1] ||= (e) => r("toggle-expanded")
838
+ onClick: s[1] ||= (e) => r("toggle-expanded")
832
839
  }, [
833
840
  w("button", {
834
841
  type: "button",
835
- class: N(["grid size-8 shrink-0 cursor-pointer place-items-center rounded-full transition-colors duration-200", W(a)(e.layer.id) ? "bg-primary/12 text-primary" : "bg-on-surface/5 text-on-surface-variant"]),
836
- "aria-label": W(a)(e.layer.id) ? W(i).mapHideLayer : W(i).mapShowLayer,
837
- "aria-pressed": W(a)(e.layer.id),
838
- onClick: n[0] ||= J((t) => W(o)(e.layer.id), ["stop"])
839
- }, [D(l, {
840
- name: W(a)(e.layer.id) ? "visibility" : "visibility_off",
842
+ class: N(["grid size-8 shrink-0 cursor-pointer place-items-center rounded-full transition-colors duration-200", U(a)(t.layer.id) ? "bg-primary/12 text-primary" : "bg-on-surface/5 text-on-surface-variant"]),
843
+ "aria-label": U(a)(t.layer.id) ? U(i).mapHideLayer : U(i).mapShowLayer,
844
+ "aria-pressed": U(a)(t.layer.id),
845
+ onClick: s[0] ||= q((e) => U(o)(t.layer.id), ["stop"])
846
+ }, [D(e, {
847
+ name: U(a)(t.layer.id) ? "visibility" : "visibility_off",
841
848
  size: 18
842
- }, null, 8, ["name"])], 10, De),
843
- w("div", Oe, [w("span", { class: N(["truncate text-body-medium", W(a)(e.layer.id) ? "text-on-surface" : "text-on-surface-variant"]) }, U(e.layer.title), 3), e.layer.description && !e.expanded ? (L(), C("span", ke, U(e.layer.description), 1)) : S("", !0)]),
844
- W(a)(e.layer.id) && W(s)(e.layer.id) < 1 ? (L(), C("span", Ae, U(Math.round(W(s)(e.layer.id) * 100)) + "% ", 1)) : S("", !0),
845
- D(l, {
849
+ }, null, 8, ["name"])], 10, Ae),
850
+ w("div", je, [w("span", { class: N(["truncate text-body-medium", U(a)(t.layer.id) ? "text-on-surface" : "text-on-surface-variant"]) }, H(t.layer.title), 3), t.layer.description && !t.expanded ? (I(), C("span", Me, H(t.layer.description), 1)) : S("", !0)]),
851
+ U(a)(t.layer.id) && U(c)(t.layer.id) < 1 ? (I(), C("span", Ne, H(Math.round(U(c)(t.layer.id) * 100)) + "% ", 1)) : S("", !0),
852
+ D(e, {
846
853
  name: "expand_more",
847
854
  size: 18,
848
- class: N(["shrink-0 text-on-surface-variant transition-transform duration-300", e.expanded ? "rotate-180" : ""])
855
+ class: N(["shrink-0 text-on-surface-variant transition-transform duration-300", t.expanded ? "rotate-180" : ""])
849
856
  }, null, 8, ["class"])
850
857
  ]), w("div", {
851
858
  class: "grid transition-[grid-template-rows] duration-300 ease-[cubic-bezier(0.2,0,0,1)]",
852
- style: P({ gridTemplateRows: e.expanded ? "1fr" : "0fr" })
853
- }, [w("div", je, [w("div", Me, [
854
- e.layer.description ? (L(), C("p", Ne, U(e.layer.description), 1)) : S("", !0),
855
- w("div", Pe, [D(l, {
859
+ style: P({ gridTemplateRows: t.expanded ? "1fr" : "0fr" })
860
+ }, [w("div", Pe, [w("div", Fe, [
861
+ t.layer.description ? (I(), C("p", Ie, H(t.layer.description), 1)) : S("", !0),
862
+ w("div", Le, [D(e, {
856
863
  name: "opacity",
857
864
  size: 16,
858
865
  class: "shrink-0 text-on-surface-variant"
859
- }), D(_, {
860
- "model-value": W(s)(e.layer.id),
866
+ }), D(d, {
867
+ "model-value": U(c)(t.layer.id),
861
868
  min: 0,
862
869
  max: 1,
863
870
  step: .01,
864
- label: W(i).mapOpacity,
871
+ label: U(i).mapOpacity,
865
872
  class: "flex-1",
866
- "onUpdate:modelValue": n[2] ||= (t) => W(c)(e.layer.id, Number(t))
873
+ "onUpdate:modelValue": s[2] ||= (e) => U(l)(t.layer.id, Number(e))
867
874
  }, null, 8, ["model-value", "label"])]),
868
- e.layer.legend ? (L(), C("img", {
875
+ t.layer.legend ? (I(), C("img", {
869
876
  key: 1,
870
- src: e.layer.legend,
877
+ src: t.layer.legend,
871
878
  alt: "",
872
879
  class: "max-w-full self-start",
873
880
  loading: "lazy"
874
- }, null, 8, Fe)) : S("", !0),
875
- e.layer.download || t.$slots.actions ? (L(), C("div", Ie, [e.layer.download ? (L(), C("a", {
881
+ }, null, 8, Re)) : S("", !0),
882
+ t.layer.download || n.$slots.actions ? (I(), C("div", ze, [t.layer.download ? (I(), C("a", {
876
883
  key: 0,
877
- href: e.layer.download,
884
+ href: t.layer.download,
878
885
  target: "_blank",
879
886
  rel: "noopener",
880
887
  download: "",
881
888
  class: "inline-flex items-center gap-1 rounded-full px-3 py-1.5 text-label-large text-primary hover:bg-primary/8"
882
- }, [D(l, {
889
+ }, [D(e, {
883
890
  name: "download",
884
891
  size: 18
885
- }), E(" " + U(W(i).mapDownload), 1)], 8, Le)) : S("", !0), V(t.$slots, "actions", {
886
- layer: e.layer,
887
- visible: W(a)(e.layer.id)
892
+ }), E(" " + H(U(i).mapDownload), 1)], 8, Be)) : S("", !0), B(n.$slots, "actions", {
893
+ layer: t.layer,
894
+ visible: U(a)(t.layer.id)
888
895
  })])) : S("", !0)
889
896
  ])])], 4)])], 2));
890
897
  }
891
- }), ze = { class: "flex flex-col gap-3" }, Be = ["onClick"], Ve = [
898
+ }), He = { class: "flex flex-col gap-3" }, Ue = ["onClick"], We = [
892
899
  "aria-label",
893
900
  "aria-pressed",
894
901
  "onClick"
895
- ], He = { class: "flex-1 select-none truncate text-label-large text-on-surface" }, Ue = { class: "rounded-full bg-surface-container-highest px-2 py-0.5 text-label-small tabular-nums text-on-surface-variant" }, We = {
902
+ ], Ge = { class: "flex-1 select-none truncate text-label-large text-on-surface" }, Ke = { class: "rounded-full bg-surface-container-highest px-2 py-0.5 text-label-small tabular-nums text-on-surface-variant" }, qe = {
896
903
  key: 1,
897
904
  class: "flex flex-col gap-1.5"
898
- }, Ge = {
905
+ }, Je = {
899
906
  key: 2,
900
907
  class: "flex flex-col items-center gap-3 py-8"
901
- }, Ke = { class: "grid size-14 place-items-center rounded-full bg-surface-container-highest" }, qe = { class: "text-body-medium text-on-surface-variant" }, Je = /* @__PURE__ */ O({
908
+ }, Ye = { class: "grid size-14 place-items-center rounded-full bg-surface-container-highest" }, Xe = { class: "text-body-medium text-on-surface-variant" }, Ze = /* @__PURE__ */ O({
902
909
  __name: "MMapLayers",
903
910
  props: {
904
911
  search: {
@@ -911,104 +918,104 @@ var ge = 600, _e = /* @__PURE__ */ O({
911
918
  },
912
919
  map: {}
913
920
  },
914
- setup(e) {
915
- let t = e, r = n(), { model: i, layersOf: a, isVisible: o, groupState: s, setGroupVisible: c } = Z(() => t.map), u = z(""), f = (e) => !u.value || e.title.toLowerCase().includes(u.value.toLowerCase()), p = b(() => (i.value?.groups ?? []).map((e) => ({
921
+ setup(t) {
922
+ let n = t, r = s(), { model: i, layersOf: a, isVisible: o, groupState: c, setGroupVisible: l } = Z(() => n.map), d = R(""), f = (e) => !d.value || e.title.toLowerCase().includes(d.value.toLowerCase()), p = b(() => (i.value?.groups ?? []).map((e) => ({
916
923
  ...e,
917
924
  all: a(e.name),
918
925
  layers: a(e.name).filter(f)
919
- })).filter((e) => e.layers.length)), m = b(() => a(null).filter(f)), h = z(/* @__PURE__ */ new Set()), g = (e) => h.value.has(e) === t.collapsed;
926
+ })).filter((e) => e.layers.length)), m = b(() => a(null).filter(f)), h = R(/* @__PURE__ */ new Set()), g = (e) => h.value.has(e) === n.collapsed;
920
927
  function _(e) {
921
928
  let t = new Set(h.value);
922
929
  t.delete(e) || t.add(e), h.value = t;
923
930
  }
924
- let y = z(/* @__PURE__ */ new Set());
931
+ let y = R(/* @__PURE__ */ new Set());
925
932
  function E(e) {
926
933
  let t = new Set(y.value);
927
934
  t.delete(e) || t.add(e), y.value = t;
928
935
  }
929
936
  let O = (e) => e.filter((e) => o(e.id)).length;
930
- return (t, n) => (L(), C("div", ze, [
931
- e.search ? (L(), x(d, {
937
+ return (n, i) => (I(), C("div", He, [
938
+ t.search ? (I(), x(u, {
932
939
  key: 0,
933
- modelValue: u.value,
934
- "onUpdate:modelValue": n[0] ||= (e) => u.value = e,
935
- label: W(r).mapSearchLayers,
940
+ modelValue: d.value,
941
+ "onUpdate:modelValue": i[0] ||= (e) => d.value = e,
942
+ label: U(r).mapSearchLayers,
936
943
  "leading-icon": "search",
937
944
  variant: "outlined",
938
945
  clearable: ""
939
946
  }, null, 8, ["modelValue", "label"])) : S("", !0),
940
- (L(!0), C(v, null, B(p.value, (e) => (L(), C("section", {
941
- key: e.name,
947
+ (I(!0), C(v, null, z(p.value, (t) => (I(), C("section", {
948
+ key: t.name,
942
949
  class: "flex flex-col"
943
950
  }, [w("div", {
944
951
  class: "m3-map-layers-row flex cursor-pointer items-center gap-2 rounded-xl px-2 py-1.5",
945
- onClick: (t) => _(e.name)
952
+ onClick: (e) => _(t.name)
946
953
  }, [
947
954
  w("button", {
948
955
  type: "button",
949
- class: N(["grid size-8 shrink-0 cursor-pointer place-items-center rounded-full transition-colors duration-200", W(s)(e.name) === "visible" ? "bg-primary-container text-on-primary-container" : W(s)(e.name) === "partial" ? "bg-secondary-container text-on-secondary-container" : "bg-on-surface/8 text-on-surface-variant"]),
950
- "aria-label": W(s)(e.name) === "hidden" ? W(r).mapShowLayer : W(r).mapHideLayer,
951
- "aria-pressed": W(s)(e.name) !== "hidden",
952
- onClick: J((t) => W(c)(e.name, W(s)(e.name) !== "visible"), ["stop"])
953
- }, [D(l, {
954
- name: W(s)(e.name) === "hidden" ? "visibility_off" : "visibility",
956
+ class: N(["grid size-8 shrink-0 cursor-pointer place-items-center rounded-full transition-colors duration-200", U(c)(t.name) === "visible" ? "bg-primary-container text-on-primary-container" : U(c)(t.name) === "partial" ? "bg-secondary-container text-on-secondary-container" : "bg-on-surface/8 text-on-surface-variant"]),
957
+ "aria-label": U(c)(t.name) === "hidden" ? U(r).mapShowLayer : U(r).mapHideLayer,
958
+ "aria-pressed": U(c)(t.name) !== "hidden",
959
+ onClick: q((e) => U(l)(t.name, U(c)(t.name) !== "visible"), ["stop"])
960
+ }, [D(e, {
961
+ name: U(c)(t.name) === "hidden" ? "visibility_off" : "visibility",
955
962
  size: 18
956
- }, null, 8, ["name"])], 10, Ve),
957
- w("span", He, U(e.title), 1),
958
- w("span", Ue, U(O(e.all)) + "/" + U(e.all.length), 1),
959
- D(l, {
963
+ }, null, 8, ["name"])], 10, We),
964
+ w("span", Ge, H(t.title), 1),
965
+ w("span", Ke, H(O(t.all)) + "/" + H(t.all.length), 1),
966
+ D(e, {
960
967
  name: "expand_more",
961
968
  size: 18,
962
- class: N(["text-on-surface-variant transition-transform duration-300", g(e.name) ? "rotate-180" : ""])
969
+ class: N(["text-on-surface-variant transition-transform duration-300", g(t.name) ? "rotate-180" : ""])
963
970
  }, null, 8, ["class"])
964
- ], 8, Be), w("div", {
971
+ ], 8, Ue), w("div", {
965
972
  class: "grid transition-[grid-template-rows] duration-300 ease-[cubic-bezier(0.2,0,0,1)]",
966
- style: P({ gridTemplateRows: g(e.name) ? "1fr" : "0fr" })
967
- }, [w("div", { class: N(["flex min-h-0 flex-col gap-1.5 overflow-hidden", g(e.name) ? "pt-1.5" : ""]) }, [(L(!0), C(v, null, B(e.layers, (e) => (L(), x(Re, {
973
+ style: P({ gridTemplateRows: g(t.name) ? "1fr" : "0fr" })
974
+ }, [w("div", { class: N(["flex min-h-0 flex-col gap-1.5 overflow-hidden", g(t.name) ? "pt-1.5" : ""]) }, [(I(!0), C(v, null, z(t.layers, (e) => (I(), x(Ve, {
968
975
  key: e.id,
969
976
  layer: e,
970
977
  expanded: y.value.has(e.id),
971
978
  onToggleExpanded: (t) => E(e.id)
972
- }, T({ _: 2 }, [t.$slots.actions ? {
979
+ }, T({ _: 2 }, [n.$slots.actions ? {
973
980
  name: "actions",
974
- fn: q((e) => [V(t.$slots, "actions", M({ ref_for: !0 }, e))]),
981
+ fn: K((e) => [B(n.$slots, "actions", M({ ref_for: !0 }, e))]),
975
982
  key: "0"
976
983
  } : void 0]), 1032, [
977
984
  "layer",
978
985
  "expanded",
979
986
  "onToggleExpanded"
980
987
  ]))), 128))], 2)], 4)]))), 128)),
981
- m.value.length ? (L(), C("div", We, [(L(!0), C(v, null, B(m.value, (e) => (L(), x(Re, {
988
+ m.value.length ? (I(), C("div", qe, [(I(!0), C(v, null, z(m.value, (e) => (I(), x(Ve, {
982
989
  key: e.id,
983
990
  layer: e,
984
991
  expanded: y.value.has(e.id),
985
992
  onToggleExpanded: (t) => E(e.id)
986
- }, T({ _: 2 }, [t.$slots.actions ? {
993
+ }, T({ _: 2 }, [n.$slots.actions ? {
987
994
  name: "actions",
988
- fn: q((e) => [V(t.$slots, "actions", M({ ref_for: !0 }, e))]),
995
+ fn: K((e) => [B(n.$slots, "actions", M({ ref_for: !0 }, e))]),
989
996
  key: "0"
990
997
  } : void 0]), 1032, [
991
998
  "layer",
992
999
  "expanded",
993
1000
  "onToggleExpanded"
994
1001
  ]))), 128))])) : S("", !0),
995
- !p.value.length && !m.value.length ? (L(), C("div", Ge, [w("div", Ke, [D(l, {
1002
+ !p.value.length && !m.value.length ? (I(), C("div", Je, [w("div", Ye, [D(e, {
996
1003
  name: "layers_clear",
997
1004
  size: 28,
998
1005
  class: "text-on-surface-variant"
999
- })]), w("p", qe, U(W(r).mapNoLayers), 1)])) : S("", !0)
1006
+ })]), w("p", Xe, H(U(r).mapNoLayers), 1)])) : S("", !0)
1000
1007
  ]));
1001
1008
  }
1002
- }), Ye = [
1009
+ }), Qe = [
1003
1010
  "title",
1004
1011
  "aria-label",
1005
1012
  "aria-checked",
1006
1013
  "onClick"
1007
- ], Xe = ["src"], Ze = [
1014
+ ], $e = ["src"], et = [
1008
1015
  "title",
1009
1016
  "aria-label",
1010
1017
  "aria-checked"
1011
- ], Qe = /* @__PURE__ */ O({
1018
+ ], tt = /* @__PURE__ */ O({
1012
1019
  __name: "MMapBaseLayers",
1013
1020
  props: {
1014
1021
  imageBase: { default: "" },
@@ -1022,96 +1029,96 @@ var ge = 600, _e = /* @__PURE__ */ O({
1022
1029
  },
1023
1030
  map: {}
1024
1031
  },
1025
- setup(e) {
1026
- let t = e, r = n(), { baseLayers: i, baseLayer: a, setBaseLayer: o } = Z(() => t.map), s = (e, t) => /^(https?:|data:|\/\/)/.test(e) ? e : `${t}${e}`;
1027
- return (t, n) => (L(), C("div", {
1028
- class: N(["flex gap-2", e.vertical ? "flex-col" : "flex-row flex-wrap"]),
1032
+ setup(t) {
1033
+ let n = t, r = s(), { baseLayers: i, baseLayer: a, setBaseLayer: o } = Z(() => n.map), c = (e, t) => /^(https?:|data:|\/\/)/.test(e) ? e : `${t}${e}`;
1034
+ return (n, s) => (I(), C("div", {
1035
+ class: N(["flex gap-2", t.vertical ? "flex-col" : "flex-row flex-wrap"]),
1029
1036
  role: "radiogroup"
1030
- }, [(L(!0), C(v, null, B(W(i), (t) => (L(), C("button", {
1031
- key: t.id,
1037
+ }, [(I(!0), C(v, null, z(U(i), (n) => (I(), C("button", {
1038
+ key: n.id,
1032
1039
  type: "button",
1033
1040
  role: "radio",
1034
- class: N(["m3-map-base grid size-12 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full border-2 bg-surface-variant transition-[border-color,transform] duration-150 hover:scale-110", W(a) === t.id ? "m3-map-base--active border-primary" : "border-transparent"]),
1035
- title: t.title,
1036
- "aria-label": t.title,
1037
- "aria-checked": W(a) === t.id,
1038
- onClick: (e) => W(o)(t.id)
1039
- }, [t.base?.image ? (L(), C("img", {
1041
+ class: N(["m3-map-base grid size-12 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full border-2 bg-surface-variant transition-[border-color,transform] duration-150 hover:scale-110", U(a) === n.id ? "m3-map-base--active border-primary" : "border-transparent"]),
1042
+ title: n.title,
1043
+ "aria-label": n.title,
1044
+ "aria-checked": U(a) === n.id,
1045
+ onClick: (e) => U(o)(n.id)
1046
+ }, [n.base?.image ? (I(), C("img", {
1040
1047
  key: 0,
1041
- src: s(t.base.image, e.imageBase),
1048
+ src: c(n.base.image, t.imageBase),
1042
1049
  alt: "",
1043
1050
  class: "size-full object-cover"
1044
- }, null, 8, Xe)) : (L(), x(l, {
1051
+ }, null, 8, $e)) : (I(), x(e, {
1045
1052
  key: 1,
1046
1053
  name: "map",
1047
1054
  size: 22,
1048
1055
  class: "text-on-surface-variant"
1049
- }))], 10, Ye))), 128)), e.none ? (L(), C("button", {
1056
+ }))], 10, Qe))), 128)), t.none ? (I(), C("button", {
1050
1057
  key: 0,
1051
1058
  type: "button",
1052
1059
  role: "radio",
1053
- class: N(["m3-map-base grid size-12 shrink-0 cursor-pointer place-items-center rounded-full border-2 bg-surface-variant transition-[border-color,transform] duration-150 hover:scale-110", W(a) === null ? "m3-map-base--active border-primary" : "border-transparent"]),
1054
- title: W(r).mapNoBaseLayer,
1055
- "aria-label": W(r).mapNoBaseLayer,
1056
- "aria-checked": W(a) === null,
1057
- onClick: n[0] ||= (e) => W(o)(null)
1058
- }, [D(l, {
1060
+ class: N(["m3-map-base grid size-12 shrink-0 cursor-pointer place-items-center rounded-full border-2 bg-surface-variant transition-[border-color,transform] duration-150 hover:scale-110", U(a) === null ? "m3-map-base--active border-primary" : "border-transparent"]),
1061
+ title: U(r).mapNoBaseLayer,
1062
+ "aria-label": U(r).mapNoBaseLayer,
1063
+ "aria-checked": U(a) === null,
1064
+ onClick: s[0] ||= (e) => U(o)(null)
1065
+ }, [D(e, {
1059
1066
  name: "layers_clear",
1060
1067
  size: 22,
1061
1068
  class: "text-on-surface-variant"
1062
- })], 10, Ze)) : S("", !0)], 2));
1069
+ })], 10, et)) : S("", !0)], 2));
1063
1070
  }
1064
- }), $e = { class: "flex flex-col gap-2" }, et = { class: "flex items-center gap-2 bg-primary-container/40 px-4 py-2" }, tt = { class: "text-label-large text-on-primary-container" }, nt = { class: "flex flex-col px-4 py-1" }, rt = { class: "text-label-small text-on-surface-variant" }, it = { class: "text-body-medium text-on-surface" }, at = {
1071
+ }), nt = { class: "flex flex-col gap-2" }, rt = { class: "flex items-center gap-2 bg-primary-container/40 px-4 py-2" }, it = { class: "text-label-large text-on-primary-container" }, at = { class: "flex flex-col px-4 py-1" }, ot = { class: "text-label-small text-on-surface-variant" }, st = { class: "text-body-medium text-on-surface" }, ct = {
1065
1072
  key: 0,
1066
1073
  class: "break-words"
1067
- }, ot = {
1074
+ }, lt = {
1068
1075
  key: 1,
1069
1076
  class: "text-body-small italic text-on-surface-variant"
1070
- }, st = /* @__PURE__ */ O({
1077
+ }, ut = /* @__PURE__ */ O({
1071
1078
  __name: "MMapFeatureInfo",
1072
1079
  props: { results: {} },
1073
- setup(e) {
1074
- let t = n();
1075
- return (n, r) => (L(), C("div", $e, [(L(!0), C(v, null, B(e.results, (e, r) => (L(), C("div", {
1076
- key: r,
1080
+ setup(t) {
1081
+ let n = s();
1082
+ return (r, i) => (I(), C("div", nt, [(I(!0), C(v, null, z(t.results, (t, i) => (I(), C("div", {
1083
+ key: i,
1077
1084
  class: "overflow-hidden rounded-2xl bg-surface-container"
1078
- }, [w("div", et, [D(l, {
1085
+ }, [w("div", rt, [D(e, {
1079
1086
  name: "layers",
1080
1087
  size: 16,
1081
1088
  class: "text-on-primary-container"
1082
- }), w("span", tt, U(e.layer.title), 1)]), w("dl", nt, [(L(!0), C(v, null, B(e.fields, (r) => (L(), C("div", {
1083
- key: r.key,
1089
+ }), w("span", it, H(t.layer.title), 1)]), w("dl", at, [(I(!0), C(v, null, z(t.fields, (e) => (I(), C("div", {
1090
+ key: e.key,
1084
1091
  class: "flex flex-col gap-0.5 border-b border-outline-variant py-1.5 last:border-b-0"
1085
- }, [w("dt", rt, U(r.label), 1), w("dd", it, [V(n.$slots, "value", {
1086
- field: r,
1087
- result: e
1088
- }, () => [r.value ? (L(), C("span", at, U(r.value), 1)) : (L(), C("span", ot, U(W(t).mapNoValue), 1))])])]))), 128))])]))), 128))]));
1092
+ }, [w("dt", ot, H(e.label), 1), w("dd", st, [B(r.$slots, "value", {
1093
+ field: e,
1094
+ result: t
1095
+ }, () => [e.value ? (I(), C("span", ct, H(e.value), 1)) : (I(), C("span", lt, H(U(n).mapNoValue), 1))])])]))), 128))])]))), 128))]));
1089
1096
  }
1090
- }), ct = (e) => e.metadata, lt = /* @__PURE__ */ new Set([
1097
+ }), dt = (e) => e.metadata, ft = /* @__PURE__ */ new Set([
1091
1098
  "fill",
1092
1099
  "line",
1093
1100
  "circle",
1094
1101
  "symbol",
1095
1102
  "fill-extrusion",
1096
1103
  "heatmap"
1097
- ]), ut = (e) => ({
1104
+ ]), pt = (e) => ({
1098
1105
  title: e.name,
1099
1106
  groups: [],
1100
1107
  layers: e.layers.filter((e) => e.type !== "background").map((e) => ({
1101
1108
  id: e.id,
1102
- title: ct(e)?.title ?? e.id,
1109
+ title: dt(e)?.title ?? e.id,
1103
1110
  listed: !0,
1104
1111
  children: [],
1105
- identify: lt.has(e.type) ? {
1112
+ identify: ft.has(e.type) ? {
1106
1113
  format: {},
1107
1114
  exclude: []
1108
1115
  } : !1,
1109
1116
  hover: !1
1110
1117
  }))
1111
1118
  });
1112
- function dt(e = {}) {
1119
+ function mt(e = {}) {
1113
1120
  let t = e.legend ?? ((e, t) => {
1114
- let n = ct(e)?.legend;
1121
+ let n = dt(e)?.legend;
1115
1122
  if (n?.show === !1) return;
1116
1123
  if (n?.wmslegend) return n.wmslegend;
1117
1124
  if (!t?.includes("/services/styles/")) return;
@@ -1127,7 +1134,7 @@ function dt(e = {}) {
1127
1134
  title: e.alias ?? e.name
1128
1135
  })),
1129
1136
  layers: e.layers.filter((e) => e.type !== "background").map((e) => {
1130
- let r = ct(e) ?? {}, i = { ...r.fields }, a = i.exclude ?? [];
1137
+ let r = dt(e) ?? {}, i = { ...r.fields }, a = i.exclude ?? [];
1131
1138
  delete i.exclude;
1132
1139
  let o = {};
1133
1140
  for (let [e, t] of Object.entries(i)) o[e] = {
@@ -1164,10 +1171,10 @@ function dt(e = {}) {
1164
1171
  };
1165
1172
  };
1166
1173
  }
1167
- function ft(e, t) {
1174
+ function ht(e, t) {
1168
1175
  return t?.label ?? e.charAt(0).toUpperCase() + e.slice(1);
1169
1176
  }
1170
- function pt(e, t) {
1177
+ function gt(e, t) {
1171
1178
  if (e == null || String(e).trim() === "") return "";
1172
1179
  let n = String(e), r = typeof e == "number" ? e : Number(e);
1173
1180
  if (t?.mask && !Number.isNaN(r)) {
@@ -1180,23 +1187,23 @@ function pt(e, t) {
1180
1187
  }
1181
1188
  return t?.prefix && (n = `${t.prefix} ${n}`), t?.suffix && (n = `${n} ${t.suffix}`), n;
1182
1189
  }
1183
- var mt = /* @__PURE__ */ new Set([
1190
+ var _t = /* @__PURE__ */ new Set([
1184
1191
  "coordinates",
1185
1192
  "mapCoordinates",
1186
1193
  "layerId",
1187
1194
  "__layerMetadata"
1188
1195
  ]);
1189
- function ht(e, t, n) {
1196
+ function vt(e, t, n) {
1190
1197
  let r = new Map((n?.layers ?? []).filter((t) => t.identify && e.getLayer(t.id)).map((e) => [e.id, e]));
1191
1198
  if (!r.size) return [];
1192
1199
  let i = [];
1193
1200
  for (let n of e.queryRenderedFeatures(t, { layers: [...r.keys()] })) {
1194
1201
  let e = r.get(n.layer.id);
1195
1202
  if (!e || !e.identify) continue;
1196
- let { format: t, exclude: a } = e.identify, o = Object.entries(n.properties ?? {}).filter(([e]) => !mt.has(e) && !a.includes(e) && !t[e]?.hidden).map(([e, n]) => ({
1203
+ let { format: t, exclude: a } = e.identify, o = Object.entries(n.properties ?? {}).filter(([e]) => !_t.has(e) && !a.includes(e) && !t[e]?.hidden).map(([e, n]) => ({
1197
1204
  key: e,
1198
- label: ft(e, t[e]),
1199
- value: pt(n, t[e])
1205
+ label: ht(e, t[e]),
1206
+ value: gt(n, t[e])
1200
1207
  }));
1201
1208
  o.length && i.push({
1202
1209
  layer: e,
@@ -1206,9 +1213,8 @@ function ht(e, t, n) {
1206
1213
  }
1207
1214
  return i;
1208
1215
  }
1209
- //#endregion
1210
- //#region src/components/MMapIdentify.vue?vue&type=script&setup=true&lang.ts
1211
- var gt = { class: "hidden" }, _t = /* @__PURE__ */ O({
1216
+ // src/components/MMapIdentify.vue?vue&type=script&setup=true&lang.ts
1217
+ var yt = { class: "hidden" }, bt = /* @__PURE__ */ O({
1212
1218
  inheritAttrs: !1,
1213
1219
  __name: "MMapIdentify",
1214
1220
  props: {
@@ -1227,16 +1233,16 @@ var gt = { class: "hidden" }, _t = /* @__PURE__ */ O({
1227
1233
  },
1228
1234
  emits: ["identify"],
1229
1235
  setup(e, { expose: t, emit: n }) {
1230
- let r = e, i = n, { on: a, onReady: o, activeTool: s } = Y(), { model: c } = Z(), l = H([]), u = z([0, 0]), d = z(!1);
1236
+ let r = e, i = n, { on: a, onReady: o, activeTool: s } = X(), { model: c } = Z(), l = V([]), u = R([0, 0]), d = R(!1);
1231
1237
  a("click", (e) => {
1232
1238
  if (!r.enabled || s.value) return;
1233
1239
  let t = e.target;
1234
- l.value = ht(t, e.point, c.value), u.value = [e.lngLat.lng, e.lngLat.lat], d.value = l.value.length > 0, i("identify", l.value, u.value);
1240
+ l.value = vt(t, e.point, c.value), u.value = [e.lngLat.lng, e.lngLat.lat], d.value = l.value.length > 0, i("identify", l.value, u.value);
1235
1241
  });
1236
1242
  function f() {
1237
1243
  d.value = !1;
1238
1244
  }
1239
- K(() => r.enabled, (e) => {
1245
+ G(() => r.enabled, (e) => {
1240
1246
  e || f();
1241
1247
  });
1242
1248
  let p, m = [], h = () => {
@@ -1253,26 +1259,26 @@ var gt = { class: "hidden" }, _t = /* @__PURE__ */ O({
1253
1259
  }
1254
1260
  return o((e) => {
1255
1261
  p = e, _();
1256
- }), K(c, _), F(() => {
1262
+ }), G(c, _), F(() => {
1257
1263
  m.forEach((e) => {
1258
1264
  p?.off("mouseenter", e, h), p?.off("mouseleave", e, g);
1259
1265
  });
1260
- }), t({ close: f }), (t, n) => (L(), C("div", gt, [e.marker && d.value ? (L(), x(Se, {
1266
+ }), t({ close: f }), (t, n) => (I(), C("div", yt, [e.marker && d.value ? (I(), x(Te, {
1261
1267
  key: 0,
1262
1268
  "lng-lat": u.value
1263
- }, null, 8, ["lng-lat"])) : S("", !0), e.popup && l.value.length ? (L(), x(we, {
1269
+ }, null, 8, ["lng-lat"])) : S("", !0), e.popup && l.value.length ? (I(), x(De, {
1264
1270
  key: 1,
1265
1271
  open: d.value,
1266
1272
  "onUpdate:open": n[0] ||= (e) => d.value = e,
1267
1273
  "lng-lat": u.value,
1268
1274
  "max-width": "360px",
1269
- offset: e.marker ? W(xe) : void 0
1275
+ offset: e.marker ? U(Ce) : void 0
1270
1276
  }, {
1271
- default: q(() => [w("div", M({ class: "max-h-80 overflow-y-auto" }, t.$attrs), [V(t.$slots, "default", {
1277
+ default: K(() => [w("div", M({ class: "max-h-80 overflow-y-auto" }, t.$attrs), [B(t.$slots, "default", {
1272
1278
  results: l.value,
1273
1279
  lngLat: u.value,
1274
1280
  close: f
1275
- }, () => [D(st, { results: l.value }, null, 8, ["results"])])], 16)]),
1281
+ }, () => [D(ut, { results: l.value }, null, 8, ["results"])])], 16)]),
1276
1282
  _: 3
1277
1283
  }, 8, [
1278
1284
  "open",
@@ -1280,11 +1286,11 @@ var gt = { class: "hidden" }, _t = /* @__PURE__ */ O({
1280
1286
  "offset"
1281
1287
  ])) : S("", !0)]));
1282
1288
  }
1283
- }), vt = { class: "hidden" }, yt = [
1289
+ }), xt = { class: "hidden" }, St = [
1284
1290
  "title",
1285
1291
  "aria-label",
1286
1292
  "aria-pressed"
1287
- ], bt = { class: "-mx-4 -mt-3 mb-1 bg-primary-container px-3 py-1.5 text-label-medium text-on-primary-container" }, xt = { class: "flex flex-col" }, St = { class: "text-label-small text-on-surface-variant" }, Ct = { class: "text-body-small text-on-surface" }, wt = /* @__PURE__ */ O({
1293
+ ], Ct = { class: "-mx-4 -mt-3 mb-1 bg-primary-container px-3 py-1.5 text-label-medium text-on-primary-container" }, wt = { class: "flex flex-col" }, Tt = { class: "text-label-small text-on-surface-variant" }, Et = { class: "text-body-small text-on-surface" }, Dt = /* @__PURE__ */ O({
1288
1294
  __name: "MMapHover",
1289
1295
  props: {
1290
1296
  modelValue: {
@@ -1297,18 +1303,18 @@ var gt = { class: "hidden" }, _t = /* @__PURE__ */ O({
1297
1303
  }
1298
1304
  },
1299
1305
  emits: ["update:modelValue"],
1300
- setup(e, { emit: t }) {
1301
- let r = e, i = t, a = n(), { onReady: o } = Y(), { model: s } = Z(), c = b(() => (s.value?.layers ?? []).filter((e) => e.hover && e.hover.fields.length)), u = H(null), d = z([0, 0]), f = z(!1), p, m = [];
1306
+ setup(t, { emit: n }) {
1307
+ let r = t, i = n, a = s(), { onReady: o } = X(), { model: c } = Z(), l = b(() => (c.value?.layers ?? []).filter((e) => e.hover && e.hover.fields.length)), u = V(null), d = R([0, 0]), f = R(!1), p, m = [];
1302
1308
  function h(e) {
1303
- let t = e.features?.[0], n = c.value.find((e) => e.id === t?.layer.id);
1309
+ let t = e.features?.[0], n = l.value.find((e) => e.id === t?.layer.id);
1304
1310
  if (!t || !n || !n.hover) return;
1305
1311
  let r = t.properties ?? {};
1306
1312
  u.value = {
1307
1313
  layer: n,
1308
1314
  fields: n.hover.fields.map((e) => ({
1309
1315
  key: e.key,
1310
- label: ft(e.key, e),
1311
- value: pt(r[e.key], e)
1316
+ label: ht(e.key, e),
1317
+ value: gt(r[e.key], e)
1312
1318
  })).filter((e) => e.value)
1313
1319
  }, d.value = [e.lngLat.lng, e.lngLat.lat], f.value = !0;
1314
1320
  }
@@ -1318,37 +1324,37 @@ var gt = { class: "hidden" }, _t = /* @__PURE__ */ O({
1318
1324
  function _() {
1319
1325
  if (p) {
1320
1326
  for (let e of m) p.off("mousemove", e, h), p.off("mouseleave", e, g);
1321
- m = r.modelValue ? c.value.map((e) => e.id) : [];
1327
+ m = r.modelValue ? l.value.map((e) => e.id) : [];
1322
1328
  for (let e of m) p.on("mousemove", e, h), p.on("mouseleave", e, g);
1323
1329
  r.modelValue || (f.value = !1);
1324
1330
  }
1325
1331
  }
1326
1332
  o((e) => {
1327
1333
  p = e, _();
1328
- }), K([() => r.modelValue, c], _), F(() => {
1334
+ }), G([() => r.modelValue, l], _), F(() => {
1329
1335
  for (let e of m) p?.off("mousemove", e, h), p?.off("mouseleave", e, g);
1330
1336
  });
1331
1337
  let y = b(() => r.control === !0 ? "top-right" : r.control || "top-right");
1332
- return (t, n) => (L(), C("div", vt, [e.control && c.value.length ? (L(), x(se, {
1338
+ return (n, r) => (I(), C("div", xt, [t.control && l.value.length ? (I(), x(ue, {
1333
1339
  key: 0,
1334
1340
  position: y.value
1335
1341
  }, {
1336
- default: q(() => [w("button", {
1342
+ default: K(() => [w("button", {
1337
1343
  type: "button",
1338
1344
  class: "grid place-items-center",
1339
- title: W(a).mapHoverInfo,
1340
- "aria-label": W(a).mapHoverInfo,
1341
- "aria-pressed": e.modelValue,
1342
- onClick: n[0] ||= (t) => i("update:modelValue", !e.modelValue)
1343
- }, [D(l, {
1345
+ title: U(a).mapHoverInfo,
1346
+ "aria-label": U(a).mapHoverInfo,
1347
+ "aria-pressed": t.modelValue,
1348
+ onClick: r[0] ||= (e) => i("update:modelValue", !t.modelValue)
1349
+ }, [D(e, {
1344
1350
  name: "ads_click",
1345
1351
  size: 20
1346
- })], 8, yt)]),
1352
+ })], 8, St)]),
1347
1353
  _: 1
1348
- }, 8, ["position"])) : S("", !0), u.value ? (L(), x(we, {
1354
+ }, 8, ["position"])) : S("", !0), u.value ? (I(), x(De, {
1349
1355
  key: 1,
1350
1356
  open: f.value,
1351
- "onUpdate:open": n[1] ||= (e) => f.value = e,
1357
+ "onUpdate:open": r[1] ||= (e) => f.value = e,
1352
1358
  "lng-lat": d.value,
1353
1359
  "close-button": !1,
1354
1360
  "close-on-click": !1,
@@ -1356,24 +1362,24 @@ var gt = { class: "hidden" }, _t = /* @__PURE__ */ O({
1356
1362
  "max-width": "280px",
1357
1363
  class: "m3-map-hover"
1358
1364
  }, {
1359
- default: q(() => [w("p", bt, U(u.value.layer.title), 1), w("dl", xt, [(L(!0), C(v, null, B(u.value.fields, (e) => (L(), C("div", {
1365
+ default: K(() => [w("p", Ct, H(u.value.layer.title), 1), w("dl", wt, [(I(!0), C(v, null, z(u.value.fields, (e) => (I(), C("div", {
1360
1366
  key: e.key,
1361
1367
  class: "border-b border-outline-variant py-1 last:border-b-0"
1362
- }, [w("dt", St, U(e.label), 1), w("dd", Ct, U(e.value), 1)]))), 128))])]),
1368
+ }, [w("dt", Tt, H(e.label), 1), w("dd", Et, H(e.value), 1)]))), 128))])]),
1363
1369
  _: 1
1364
1370
  }, 8, ["open", "lng-lat"])) : S("", !0)]));
1365
1371
  }
1366
- }), Tt = 6371008.8, $ = Math.PI / 180;
1367
- function Et(e, t) {
1372
+ }), Ot = 6371008.8, $ = Math.PI / 180;
1373
+ function kt(e, t) {
1368
1374
  let n = (t[1] - e[1]) * $, r = (t[0] - e[0]) * $, i = Math.sin(n / 2) ** 2 + Math.cos(e[1] * $) * Math.cos(t[1] * $) * Math.sin(r / 2) ** 2;
1369
- return 2 * Tt * Math.asin(Math.min(1, Math.sqrt(i)));
1375
+ return 2 * Ot * Math.asin(Math.min(1, Math.sqrt(i)));
1370
1376
  }
1371
- function Dt(e) {
1377
+ function At(e) {
1372
1378
  let t = 0;
1373
- for (let n = 1; n < e.length; n++) t += Et(e[n - 1], e[n]);
1379
+ for (let n = 1; n < e.length; n++) t += kt(e[n - 1], e[n]);
1374
1380
  return t;
1375
1381
  }
1376
- function Ot(e, t) {
1382
+ function jt(e, t) {
1377
1383
  let [n, r, i, a] = [
1378
1384
  e[0] * $,
1379
1385
  e[1] * $,
@@ -1382,22 +1388,22 @@ function Ot(e, t) {
1382
1388
  ], o = Math.cos(a) * Math.cos(i - n), s = Math.cos(a) * Math.sin(i - n), c = Math.atan2(Math.sin(r) + Math.sin(a), Math.sqrt((Math.cos(r) + o) ** 2 + s ** 2));
1383
1389
  return [(n + Math.atan2(s, Math.cos(r) + o)) / $, c / $];
1384
1390
  }
1385
- function kt(e) {
1386
- let t = At(e), n = t.length - 1;
1391
+ function Mt(e) {
1392
+ let t = Nt(e), n = t.length - 1;
1387
1393
  if (n <= 2) return 0;
1388
1394
  let r = 0;
1389
1395
  for (let e = 0; e < n; e++) {
1390
1396
  let i = t[e], a = t[e + 1 === n ? 0 : e + 1], o = t[e + 2 >= n ? (e + 2) % n : e + 2];
1391
1397
  r += (o[0] - i[0]) * $ * Math.sin(a[1] * $);
1392
1398
  }
1393
- return Math.abs(r * Tt * Tt / 2);
1399
+ return Math.abs(r * Ot * Ot / 2);
1394
1400
  }
1395
- function At(e) {
1401
+ function Nt(e) {
1396
1402
  let t = e[0], n = e[e.length - 1];
1397
1403
  return t && n && (t[0] !== n[0] || t[1] !== n[1]) ? [...e, t] : e;
1398
1404
  }
1399
- function jt(e) {
1400
- let t = At(e), n = 0, r = 0, i = 0;
1405
+ function Pt(e) {
1406
+ let t = Nt(e), n = 0, r = 0, i = 0;
1401
1407
  for (let e = 0; e < t.length - 1; e++) {
1402
1408
  let [a, o] = t[e], [s, c] = t[e + 1], l = a * c - s * o;
1403
1409
  n += l, r += (a + s) * l, i += (o + c) * l;
@@ -1408,13 +1414,12 @@ function jt(e) {
1408
1414
  }
1409
1415
  return [r / (3 * n), i / (3 * n)];
1410
1416
  }
1411
- //#endregion
1412
- //#region src/components/MMapMeasure.vue?vue&type=script&setup=true&lang.ts
1413
- var Mt = { class: "hidden" }, Nt = ["title", "aria-pressed"], Pt = ["title", "aria-pressed"], Ft = ["title", "disabled"], It = [
1417
+ // src/components/MMapMeasure.vue?vue&type=script&setup=true&lang.ts
1418
+ var Ft = { class: "hidden" }, It = ["title", "aria-pressed"], Lt = ["title", "aria-pressed"], Rt = ["title", "disabled"], zt = [
1414
1419
  "aria-label",
1415
1420
  "title",
1416
1421
  "onClick"
1417
- ], Lt = /* @__PURE__ */ O({
1422
+ ], Bt = /* @__PURE__ */ O({
1418
1423
  __name: "MMapMeasure",
1419
1424
  props: {
1420
1425
  modelValue: { default: null },
@@ -1424,15 +1429,15 @@ var Mt = { class: "hidden" }, Nt = ["title", "aria-pressed"], Pt = ["title", "ar
1424
1429
  }
1425
1430
  },
1426
1431
  emits: ["update:modelValue", "change"],
1427
- setup(t, { expose: r, emit: i }) {
1428
- let a = t, o = i, s = n(), { onReady: c, styleVersion: u, activeTool: d } = Y(), p = e(["primary", "surface"]), m = `m3-measure-${re()}`, h = {
1432
+ setup(t, { expose: n, emit: r }) {
1433
+ let i = t, a = r, o = s(), { onReady: c, styleVersion: u, activeTool: d } = X(), p = l(["primary", "surface"]), m = `m3-measure-${ie()}`, h = {
1429
1434
  done: `${m}-done`,
1430
1435
  draft: `${m}-draft`,
1431
1436
  handles: `${m}-handles`
1432
- }, g = `${h.handles}-vertex`, _ = `${h.handles}-midpoint`, y = [], T = [], O = null, k = !1, A = null, j = 0, M, P = z(null), ee = z(0), I = H([]), te = () => typeof document < "u" && document.documentElement.lang || void 0, R = (e, t) => new Intl.NumberFormat(te(), {
1437
+ }, g = `${h.handles}-vertex`, _ = `${h.handles}-midpoint`, y = [], T = [], O = null, k = !1, A = null, j = 0, M, P = R(null), ee = R(0), te = V([]), ne = () => typeof document < "u" && document.documentElement.lang || void 0, L = (e, t) => new Intl.NumberFormat(ne(), {
1433
1438
  minimumFractionDigits: t,
1434
1439
  maximumFractionDigits: t
1435
- }).format(e), V = (e) => e === 0 ? "" : e < 1e3 ? `${R(Math.round(e), 0)} m` : `${R(e / 1e3, 2)} km`, ne = (e) => e >= 1e6 ? `${R(e / 1e6, 2)} km²` : e >= 1e4 ? `${R(e / 1e4, 2)} ha` : `${R(Math.round(e), 0)} m²`, G = (e, t = {}) => ({
1440
+ }).format(e), B = (e) => e === 0 ? "" : e < 1e3 ? `${L(Math.round(e), 0)} m` : `${L(e / 1e3, 2)} km`, re = (e) => e >= 1e6 ? `${L(e / 1e6, 2)} km²` : e >= 1e4 ? `${L(e / 1e4, 2)} ha` : `${L(Math.round(e), 0)} m²`, W = (e, t = {}) => ({
1436
1441
  type: "Feature",
1437
1442
  geometry: {
1438
1443
  type: "Point",
@@ -1440,8 +1445,8 @@ var Mt = { class: "hidden" }, Nt = ["title", "aria-pressed"], Pt = ["title", "ar
1440
1445
  },
1441
1446
  properties: t
1442
1447
  });
1443
- function ie(e, t, n, r) {
1444
- let i = e.map((e) => G(e)), a = [];
1448
+ function ae(e, t, n, r) {
1449
+ let i = e.map((e) => W(e)), a = [];
1445
1450
  if (e.length < 2) return {
1446
1451
  features: i,
1447
1452
  labels: a
@@ -1454,26 +1459,26 @@ var Mt = { class: "hidden" }, Nt = ["title", "aria-pressed"], Pt = ["title", "ar
1454
1459
  },
1455
1460
  properties: {}
1456
1461
  });
1457
- let o = (e) => {
1462
+ let s = (e) => {
1458
1463
  for (let t = 0; t < e.length - 1; t++) {
1459
- let r = V(Et(e[t], e[t + 1]));
1464
+ let r = B(kt(e[t], e[t + 1]));
1460
1465
  r && a.push({
1461
1466
  key: `${n}-s${t}`,
1462
- at: Ot(e[t], e[t + 1]),
1467
+ at: jt(e[t], e[t + 1]),
1463
1468
  text: r,
1464
1469
  kind: "segment"
1465
1470
  });
1466
1471
  }
1467
1472
  };
1468
- if (t === "distance") o(e), a.push({
1473
+ if (t === "distance") s(e), a.push({
1469
1474
  key: `${n}-t`,
1470
1475
  at: e[e.length - 1],
1471
- text: `${s.mapTotal}: ${V(Dt(e))}`,
1476
+ text: `${o.mapTotal}: ${B(At(e))}`,
1472
1477
  kind: "total",
1473
1478
  m: r
1474
1479
  });
1475
1480
  else if (e.length >= 3) {
1476
- let t = At(e);
1481
+ let t = Nt(e);
1477
1482
  i.push({
1478
1483
  type: "Feature",
1479
1484
  geometry: {
@@ -1481,17 +1486,17 @@ var Mt = { class: "hidden" }, Nt = ["title", "aria-pressed"], Pt = ["title", "ar
1481
1486
  coordinates: [t]
1482
1487
  },
1483
1488
  properties: {}
1484
- }), o(t), a.push({
1489
+ }), s(t), a.push({
1485
1490
  key: `${n}-a`,
1486
- at: jt(t),
1487
- text: ne(kt(t)),
1491
+ at: Pt(t),
1492
+ text: re(Mt(t)),
1488
1493
  kind: "area",
1489
1494
  m: r
1490
1495
  });
1491
1496
  } else a.push({
1492
1497
  key: `${n}-t`,
1493
1498
  at: e[e.length - 1],
1494
- text: V(Dt(e)),
1499
+ text: B(At(e)),
1495
1500
  kind: "total",
1496
1501
  m: r
1497
1502
  });
@@ -1500,46 +1505,46 @@ var Mt = { class: "hidden" }, Nt = ["title", "aria-pressed"], Pt = ["title", "ar
1500
1505
  labels: a
1501
1506
  };
1502
1507
  }
1503
- let ae = (e) => ({
1508
+ let oe = (e) => ({
1504
1509
  type: "FeatureCollection",
1505
1510
  features: e
1506
- }), oe = (e, t) => (M?.getSource(e))?.setData(ae(t));
1507
- function X() {
1511
+ }), se = (e, t) => (M?.getSource(e))?.setData(oe(t));
1512
+ function J() {
1508
1513
  if (!M) return;
1509
- let e = y.map((e, t) => ie(e.points, e.mode, `m${t}`, t)), t = P.value && T.length ? ie(O ? [...T, O] : T, P.value, "draft") : {
1514
+ let e = y.map((e, t) => ae(e.points, e.mode, `m${t}`, t)), t = P.value && T.length ? ae(O ? [...T, O] : T, P.value, "draft") : {
1510
1515
  features: [],
1511
1516
  labels: []
1512
1517
  };
1513
- oe(h.done, e.flatMap((e) => e.features)), oe(h.draft, t.features);
1518
+ se(h.done, e.flatMap((e) => e.features)), se(h.draft, t.features);
1514
1519
  let n = [];
1515
1520
  P.value || y.forEach((e, t) => {
1516
- (e.closed ? e.points.slice(0, -1) : e.points).forEach((e, r) => n.push(G(e, {
1521
+ (e.closed ? e.points.slice(0, -1) : e.points).forEach((e, r) => n.push(W(e, {
1517
1522
  handle: "vertex",
1518
1523
  m: t,
1519
1524
  v: r
1520
1525
  })));
1521
- for (let r = 0; r < e.points.length - 1; r++) n.push(G(Ot(e.points[r], e.points[r + 1]), {
1526
+ for (let r = 0; r < e.points.length - 1; r++) n.push(W(jt(e.points[r], e.points[r + 1]), {
1522
1527
  handle: "midpoint",
1523
1528
  m: t,
1524
1529
  after: r
1525
1530
  }));
1526
- }), oe(h.handles, n), I.value = [...e.flatMap((e) => e.labels), ...t.labels];
1531
+ }), se(h.handles, n), te.value = [...e.flatMap((e) => e.labels), ...t.labels];
1527
1532
  }
1528
- function ce() {
1529
- ee.value = y.length, o("change", y.map((e) => ({
1533
+ function Y() {
1534
+ ee.value = y.length, a("change", y.map((e) => ({
1530
1535
  mode: e.mode,
1531
1536
  points: e.points.map((e) => [...e]),
1532
1537
  closed: e.closed,
1533
- length: Dt(e.points),
1534
- ...e.mode === "area" || e.closed ? { area: kt(e.points) } : {}
1538
+ length: At(e.points),
1539
+ ...e.mode === "area" || e.closed ? { area: Mt(e.points) } : {}
1535
1540
  })));
1536
1541
  }
1537
- let le = (e) => [
1542
+ let ce = (e) => [
1538
1543
  "==",
1539
1544
  ["geometry-type"],
1540
1545
  e
1541
1546
  ];
1542
- function ue() {
1547
+ function le() {
1543
1548
  let { primary: e, surface: t } = p.value;
1544
1549
  return {
1545
1550
  fill: { "fill-color": e },
@@ -1554,16 +1559,16 @@ var Mt = { class: "hidden" }, Nt = ["title", "aria-pressed"], Pt = ["title", "ar
1554
1559
  if (!M) return;
1555
1560
  for (let e of Object.values(h)) M.getSource(e) || M.addSource(e, {
1556
1561
  type: "geojson",
1557
- data: ae([])
1562
+ data: oe([])
1558
1563
  });
1559
- let e = ue(), t = (e) => {
1564
+ let e = le(), t = (e) => {
1560
1565
  M.getLayer(e.id) || M.addLayer(e);
1561
1566
  };
1562
1567
  for (let [n, r] of [[h.done, !1], [h.draft, !0]]) t({
1563
1568
  id: `${n}-fill`,
1564
1569
  type: "fill",
1565
1570
  source: n,
1566
- filter: le("Polygon"),
1571
+ filter: ce("Polygon"),
1567
1572
  paint: {
1568
1573
  ...e.fill,
1569
1574
  "fill-opacity": r ? .15 : .2
@@ -1586,7 +1591,7 @@ var Mt = { class: "hidden" }, Nt = ["title", "aria-pressed"], Pt = ["title", "ar
1586
1591
  id: `${n}-points`,
1587
1592
  type: "circle",
1588
1593
  source: n,
1589
- filter: le("Point"),
1594
+ filter: ce("Point"),
1590
1595
  paint: {
1591
1596
  ...e.vertices,
1592
1597
  "circle-radius": 5,
@@ -1624,9 +1629,9 @@ var Mt = { class: "hidden" }, Nt = ["title", "aria-pressed"], Pt = ["title", "ar
1624
1629
  }
1625
1630
  });
1626
1631
  }
1627
- K(p, () => {
1632
+ G(p, () => {
1628
1633
  if (!M) return;
1629
- let e = ue(), t = (e, t) => {
1634
+ let e = le(), t = (e, t) => {
1630
1635
  if (M.getLayer(e)) for (let [n, r] of Object.entries(t)) M.setPaintProperty(e, n, r);
1631
1636
  };
1632
1637
  for (let n of [h.done, h.draft]) t(`${n}-fill`, e.fill), t(`${n}-line`, e.line), t(`${n}-points`, e.vertices);
@@ -1641,30 +1646,30 @@ var Mt = { class: "hidden" }, Nt = ["title", "aria-pressed"], Pt = ["title", "ar
1641
1646
  return;
1642
1647
  }
1643
1648
  }
1644
- T.push(fe(e)), X();
1645
- }
1646
- function Z(e) {
1647
- O = fe(e), !j && (j = requestAnimationFrame(() => {
1648
- j = 0, X();
1649
- }));
1649
+ T.push(fe(e)), J();
1650
1650
  }
1651
1651
  function me(e) {
1652
+ O = fe(e), j ||= requestAnimationFrame(() => {
1653
+ j = 0, J();
1654
+ });
1655
+ }
1656
+ function he(e) {
1652
1657
  if (e.preventDefault(), T.length < 2) return;
1653
1658
  let t = M.project(T[T.length - 1]), n = M.project(T[T.length - 2]);
1654
1659
  Math.hypot(t.x - n.x, t.y - n.y) < 10 && T.pop(), Q();
1655
1660
  }
1656
- function he(e) {
1661
+ function ge(e) {
1657
1662
  e.key === "Enter" && Q();
1658
1663
  }
1659
1664
  f(() => !!P.value, () => Q(!0));
1660
- let ge = () => typeof navigator < "u" ? navigator.keyboard : void 0, _e = !1;
1665
+ let Z = () => typeof navigator < "u" ? navigator.keyboard : void 0, _e = !1;
1661
1666
  function ve() {
1662
- P.value && document.fullscreenElement && ge()?.lock && ge().lock(["Escape"]).then(() => {
1667
+ P.value && document.fullscreenElement && Z()?.lock && Z().lock(["Escape"]).then(() => {
1663
1668
  _e = !0;
1664
1669
  }, () => {});
1665
1670
  }
1666
1671
  function ye() {
1667
- P.value || (_e && ge()?.unlock?.(), _e = !1);
1672
+ P.value || (_e && Z()?.unlock?.(), _e = !1);
1668
1673
  }
1669
1674
  function be() {
1670
1675
  let e, t = () => {
@@ -1677,7 +1682,7 @@ var Mt = { class: "hidden" }, Nt = ["title", "aria-pressed"], Pt = ["title", "ar
1677
1682
  function xe(e) {
1678
1683
  if (M) {
1679
1684
  if (P.value === e) return Q();
1680
- P.value && Q(), P.value = e, d.value = "measure", T = [], O = null, M.getCanvas().style.cursor = "crosshair", M.doubleClickZoom.disable(), M.on("click", pe), M.on("mousemove", Z), M.on("dblclick", me), document.addEventListener("keydown", he), document.addEventListener("fullscreenchange", ve), ve(), X(), a.modelValue !== e && o("update:modelValue", e);
1685
+ P.value && Q(), P.value = e, d.value = "measure", T = [], O = null, M.getCanvas().style.cursor = "crosshair", M.doubleClickZoom.disable(), M.on("click", pe), M.on("mousemove", me), M.on("dblclick", he), document.addEventListener("keydown", ge), document.addEventListener("fullscreenchange", ve), ve(), J(), i.modelValue !== e && a("update:modelValue", e);
1681
1686
  }
1682
1687
  }
1683
1688
  function Q(e = !1) {
@@ -1688,15 +1693,15 @@ var Mt = { class: "hidden" }, Nt = ["title", "aria-pressed"], Pt = ["title", "ar
1688
1693
  mode: P.value,
1689
1694
  points: t ? [...T, [...T[0]]] : T,
1690
1695
  closed: t
1691
- }), T = [], O = null, k = !1, P.value = null, d.value === "measure" && (d.value = null), M.getCanvas().style.cursor = "", M.doubleClickZoom.enable(), M.off("click", pe), M.off("mousemove", Z), M.off("dblclick", me), document.removeEventListener("keydown", he), document.removeEventListener("fullscreenchange", ve), e && _e ? be() : ye(), X(), ce(), a.modelValue !== null && o("update:modelValue", null);
1696
+ }), T = [], O = null, k = !1, P.value = null, d.value === "measure" && (d.value = null), M.getCanvas().style.cursor = "", M.doubleClickZoom.enable(), M.off("click", pe), M.off("mousemove", me), M.off("dblclick", he), document.removeEventListener("keydown", ge), document.removeEventListener("fullscreenchange", ve), e && _e ? be() : ye(), J(), Y(), i.modelValue !== null && a("update:modelValue", null);
1692
1697
  }
1693
- function Ce(e) {
1694
- y[e] && (y.splice(e, 1), X(), ce());
1698
+ function Se(e) {
1699
+ y[e] && (y.splice(e, 1), J(), Y());
1695
1700
  }
1696
- function we() {
1697
- P.value && Q(), y.length = 0, X(), ce();
1701
+ function Ce() {
1702
+ P.value && Q(), y.length = 0, J(), Y();
1698
1703
  }
1699
- function Te(e) {
1704
+ function we(e) {
1700
1705
  let t = e.features?.[0];
1701
1706
  if (!t || P.value || !M) return;
1702
1707
  e.preventDefault();
@@ -1708,17 +1713,17 @@ var Mt = { class: "hidden" }, Nt = ["title", "aria-pressed"], Pt = ["title", "ar
1708
1713
  v: i
1709
1714
  }, d.value = "measure", M.getCanvas().style.cursor = "grabbing";
1710
1715
  let a = e.type === "touchstart";
1711
- a && M.dragPan.disable(), M.on(a ? "touchmove" : "mousemove", Ee), M.once(a ? "touchend" : "mouseup", De), X();
1716
+ a && M.dragPan.disable(), M.on(a ? "touchmove" : "mousemove", Ee), M.once(a ? "touchend" : "mouseup", De), J();
1712
1717
  }
1713
1718
  function Ee(e) {
1714
1719
  if (!A) return;
1715
1720
  let t = y[A.m];
1716
1721
  if (!t) return;
1717
1722
  let n = fe(e);
1718
- t.points[A.v] = n, t.closed && A.v === 0 && (t.points[t.points.length - 1] = n), X();
1723
+ t.points[A.v] = n, t.closed && A.v === 0 && (t.points[t.points.length - 1] = n), J();
1719
1724
  }
1720
1725
  function De() {
1721
- M && (A = null, M.off("mousemove", Ee), M.off("touchmove", Ee), M.dragPan.enable(), M.getCanvas().style.cursor = "", ce(), setTimeout(() => {
1726
+ M && (A = null, M.off("mousemove", Ee), M.off("touchmove", Ee), M.dragPan.enable(), M.getCanvas().style.cursor = "", Y(), setTimeout(() => {
1722
1727
  d.value === "measure" && !P.value && (d.value = null);
1723
1728
  }));
1724
1729
  }
@@ -1729,16 +1734,16 @@ var Mt = { class: "hidden" }, Nt = ["title", "aria-pressed"], Pt = ["title", "ar
1729
1734
  };
1730
1735
  c((e) => {
1731
1736
  M = e, de();
1732
- for (let t of [g, _]) e.on("mousedown", t, Te), e.on("touchstart", t, Te), e.on("mouseenter", t, Oe), e.on("mouseleave", t, ke);
1733
- a.modelValue && xe(a.modelValue);
1734
- }), K(u, () => {
1735
- de(), X();
1736
- }), K(() => a.modelValue, (e) => {
1737
+ for (let t of [g, _]) e.on("mousedown", t, we), e.on("touchstart", t, we), e.on("mouseenter", t, Oe), e.on("mouseleave", t, ke);
1738
+ i.modelValue && xe(i.modelValue);
1739
+ }), G(u, () => {
1740
+ de(), J();
1741
+ }), G(() => i.modelValue, (e) => {
1737
1742
  e && e !== P.value ? xe(e) : !e && P.value && Q();
1738
1743
  }), F(() => {
1739
1744
  if (!M) return;
1740
1745
  P.value && Q();
1741
- for (let e of [g, _]) M.off("mousedown", e, Te), M.off("touchstart", e, Te), M.off("mouseenter", e, Oe), M.off("mouseleave", e, ke);
1746
+ for (let e of [g, _]) M.off("mousedown", e, we), M.off("touchstart", e, we), M.off("mouseenter", e, Oe), M.off("mouseleave", e, ke);
1742
1747
  let e = [
1743
1748
  g,
1744
1749
  _,
@@ -1751,71 +1756,71 @@ var Mt = { class: "hidden" }, Nt = ["title", "aria-pressed"], Pt = ["title", "ar
1751
1756
  for (let t of e) M.getLayer(t) && M.removeLayer(t);
1752
1757
  for (let e of Object.values(h)) M.getSource(e) && M.removeSource(e);
1753
1758
  });
1754
- let Ae = b(() => a.control === !0 ? "top-right" : a.control || "top-right");
1755
- return r({
1759
+ let Ae = b(() => i.control === !0 ? "top-right" : i.control || "top-right");
1760
+ return n({
1756
1761
  start: xe,
1757
1762
  finish: Q,
1758
- clear: we,
1759
- remove: Ce
1760
- }), (e, n) => (L(), C("div", Mt, [t.control ? (L(), x(se, {
1763
+ clear: Ce,
1764
+ remove: Se
1765
+ }), (n, r) => (I(), C("div", Ft, [t.control ? (I(), x(ue, {
1761
1766
  key: 0,
1762
1767
  position: Ae.value
1763
1768
  }, {
1764
- default: q(() => [
1769
+ default: K(() => [
1765
1770
  w("button", {
1766
1771
  type: "button",
1767
1772
  class: "grid place-items-center",
1768
- title: W(s).mapMeasureDistance,
1773
+ title: U(o).mapMeasureDistance,
1769
1774
  "aria-pressed": P.value === "distance",
1770
- onClick: n[0] ||= (e) => xe("distance")
1771
- }, [D(l, {
1775
+ onClick: r[0] ||= (e) => xe("distance")
1776
+ }, [D(e, {
1772
1777
  name: "straighten",
1773
1778
  size: 20
1774
- })], 8, Nt),
1779
+ })], 8, It),
1775
1780
  w("button", {
1776
1781
  type: "button",
1777
1782
  class: "grid place-items-center",
1778
- title: W(s).mapMeasureArea,
1783
+ title: U(o).mapMeasureArea,
1779
1784
  "aria-pressed": P.value === "area",
1780
- onClick: n[1] ||= (e) => xe("area")
1781
- }, [D(l, {
1785
+ onClick: r[1] ||= (e) => xe("area")
1786
+ }, [D(e, {
1782
1787
  name: "pentagon",
1783
1788
  size: 20
1784
- })], 8, Pt),
1789
+ })], 8, Lt),
1785
1790
  w("button", {
1786
1791
  type: "button",
1787
1792
  class: "grid place-items-center",
1788
- title: W(s).mapClearMeasurements,
1793
+ title: U(o).mapClearMeasurements,
1789
1794
  disabled: !ee.value && !P.value,
1790
- onClick: we
1791
- }, [D(l, {
1795
+ onClick: Ce
1796
+ }, [D(e, {
1792
1797
  name: "delete",
1793
1798
  size: 20
1794
- })], 8, Ft)
1799
+ })], 8, Rt)
1795
1800
  ]),
1796
1801
  _: 1
1797
- }, 8, ["position"])) : S("", !0), (L(!0), C(v, null, B(I.value, (e) => (L(), x(Se, {
1798
- key: e.key,
1799
- "lng-lat": e.at,
1800
- anchor: e.kind === "area" ? "center" : "top",
1801
- offset: e.kind === "area" ? [0, 0] : [0, 8],
1802
+ }, 8, ["position"])) : S("", !0), (I(!0), C(v, null, z(te.value, (t) => (I(), x(Te, {
1803
+ key: t.key,
1804
+ "lng-lat": t.at,
1805
+ anchor: t.kind === "area" ? "center" : "top",
1806
+ offset: t.kind === "area" ? [0, 0] : [0, 8],
1802
1807
  class: "pointer-events-none"
1803
1808
  }, {
1804
- default: q(() => [w("span", { class: N(["flex items-center gap-1 whitespace-nowrap rounded-full py-0.5 shadow-elevation-1", [e.kind === "segment" ? "bg-surface-container-highest text-label-small text-on-surface" : "bg-primary text-label-medium text-on-primary", e.m === void 0 ? "px-2" : "pr-0.5 pl-2"]]) }, [E(U(e.text) + " ", 1), e.m === void 0 ? S("", !0) : (L(), C("button", {
1809
+ default: K(() => [w("span", { class: N(["flex items-center gap-1 whitespace-nowrap rounded-full py-0.5 shadow-elevation-1", [t.kind === "segment" ? "bg-surface-container-highest text-label-small text-on-surface" : "bg-primary text-label-medium text-on-primary", t.m === void 0 ? "px-2" : "pr-0.5 pl-2"]]) }, [E(H(t.text) + " ", 1), t.m === void 0 ? S("", !0) : (I(), C("button", {
1805
1810
  key: 0,
1806
1811
  type: "button",
1807
1812
  class: "pointer-events-auto grid size-5 cursor-pointer place-items-center rounded-full hover:bg-on-primary/12 focus-visible:outline-2 focus-visible:outline-on-primary",
1808
- "aria-label": W(s).mapDeleteMeasurement,
1809
- title: W(s).mapDeleteMeasurement,
1810
- onClick: J((t) => Ce(e.m), ["stop"]),
1811
- onPointerdown: n[2] ||= J(() => {}, ["stop"]),
1812
- onMousedown: n[3] ||= J(() => {}, ["stop"]),
1813
- onTouchstart: n[4] ||= J(() => {}, ["stop"]),
1814
- onDblclick: n[5] ||= J(() => {}, ["stop"])
1815
- }, [D(l, {
1813
+ "aria-label": U(o).mapDeleteMeasurement,
1814
+ title: U(o).mapDeleteMeasurement,
1815
+ onClick: q((e) => Se(t.m), ["stop"]),
1816
+ onPointerdown: r[2] ||= q(() => {}, ["stop"]),
1817
+ onMousedown: r[3] ||= q(() => {}, ["stop"]),
1818
+ onTouchstart: r[4] ||= q(() => {}, ["stop"]),
1819
+ onDblclick: r[5] ||= q(() => {}, ["stop"])
1820
+ }, [D(e, {
1816
1821
  name: "close",
1817
1822
  size: 14
1818
- })], 40, It))], 2)]),
1823
+ })], 40, zt))], 2)]),
1819
1824
  _: 2
1820
1825
  }, 1032, [
1821
1826
  "lng-lat",
@@ -1823,15 +1828,15 @@ var Mt = { class: "hidden" }, Nt = ["title", "aria-pressed"], Pt = ["title", "ar
1823
1828
  "offset"
1824
1829
  ]))), 128))]));
1825
1830
  }
1826
- }), Rt = /* @__PURE__ */ new WeakMap();
1827
- function zt(e) {
1828
- let t = ae(e);
1831
+ }), Vt = /* @__PURE__ */ new WeakMap();
1832
+ function Ht(e) {
1833
+ let t = Y(e);
1829
1834
  if (!t) throw Error("useMapFilter() must be called in a component inside <MMap>, or be given one");
1830
1835
  function n(e, n) {
1831
1836
  let r = t.map.value;
1832
1837
  if (!r?.getLayer(e)) return;
1833
- let i = Rt.get(r);
1834
- i || Rt.set(r, i = /* @__PURE__ */ new Map()), i.has(e) || i.set(e, r.getFilter(e) ?? void 0);
1838
+ let i = Vt.get(r);
1839
+ i || Vt.set(r, i = /* @__PURE__ */ new Map()), i.has(e) || i.set(e, r.getFilter(e) ?? void 0);
1835
1840
  let a = i.get(e);
1836
1841
  r.setFilter(e, n ? a ? [
1837
1842
  "all",
@@ -1854,9 +1859,8 @@ function zt(e) {
1854
1859
  valuesOf: r
1855
1860
  };
1856
1861
  }
1857
- //#endregion
1858
- //#region src/components/MMapFilter.vue?vue&type=script&setup=true&lang.ts
1859
- var Bt = { class: "flex flex-wrap gap-2" }, Vt = /* @__PURE__ */ O({
1862
+ // src/components/MMapFilter.vue?vue&type=script&setup=true&lang.ts
1863
+ var Ut = { class: "flex flex-wrap gap-2" }, Wt = /* @__PURE__ */ O({
1860
1864
  __name: "MMapFilter",
1861
1865
  props: {
1862
1866
  layer: {},
@@ -1868,7 +1872,7 @@ var Bt = { class: "flex flex-wrap gap-2" }, Vt = /* @__PURE__ */ O({
1868
1872
  },
1869
1873
  emits: ["update:modelValue"],
1870
1874
  setup(e, { emit: t }) {
1871
- let n = e, r = t, { onReady: i, styleVersion: a } = Y(() => n.map), { setFilter: o, valuesOf: s } = zt(() => n.map), c = z([]), l = b(() => n.values ?? c.value), u = z([]), d = b(() => n.modelValue ?? u.value);
1875
+ let n = e, r = t, { onReady: i, styleVersion: a } = X(() => n.map), { setFilter: o, valuesOf: s } = Ht(() => n.map), c = R([]), l = b(() => n.values ?? c.value), u = R([]), d = b(() => n.modelValue ?? u.value);
1872
1876
  function f() {
1873
1877
  let e = d.value;
1874
1878
  o(n.layer, e.length ? [
@@ -1889,23 +1893,22 @@ var Bt = { class: "flex flex-wrap gap-2" }, Vt = /* @__PURE__ */ O({
1889
1893
  }
1890
1894
  return i((e) => {
1891
1895
  h(e), f();
1892
- }), K(d, f, { deep: !0 }), K(a, () => f()), K(() => [n.layer, n.property], ([e], [t]) => {
1896
+ }), G(d, f, { deep: !0 }), G(a, () => f()), G(() => [n.layer, n.property], ([e], [t]) => {
1893
1897
  e !== t && o(t, null), f();
1894
- }), F(() => o(n.layer, null)), (t, n) => (L(), C("div", Bt, [(L(!0), C(v, null, B(l.value, (t) => (L(), x(p, {
1898
+ }), F(() => o(n.layer, null)), (t, n) => (I(), C("div", Ut, [(I(!0), C(v, null, z(l.value, (t) => (I(), x(p, {
1895
1899
  key: t,
1896
1900
  type: "filter",
1897
1901
  clickable: "",
1898
1902
  selected: d.value.includes(t),
1899
1903
  onClick: (e) => m(t)
1900
1904
  }, {
1901
- default: q(() => [E(U(e.labels?.[String(t)] ?? t), 1)]),
1905
+ default: K(() => [E(H(e.labels?.[String(t)] ?? t), 1)]),
1902
1906
  _: 2
1903
1907
  }, 1032, ["selected", "onClick"]))), 128))]));
1904
1908
  }
1905
1909
  });
1906
- //#endregion
1907
- //#region src/composables/mapSearch.ts
1908
- function Ht(e = {}) {
1910
+ // src/composables/mapSearch.ts
1911
+ function Gt(e = {}) {
1909
1912
  return async (t, n) => {
1910
1913
  let r = new URLSearchParams({
1911
1914
  format: "jsonv2",
@@ -1931,19 +1934,18 @@ function Ht(e = {}) {
1931
1934
  });
1932
1935
  };
1933
1936
  }
1934
- //#endregion
1935
- //#region src/components/MMapSearch.vue?vue&type=script&setup=true&lang.ts
1936
- var Ut = { class: "hidden" }, Wt = [
1937
+ // src/components/MMapSearch.vue?vue&type=script&setup=true&lang.ts
1938
+ var Kt = { class: "hidden" }, qt = [
1937
1939
  "value",
1938
1940
  "placeholder",
1939
1941
  "aria-label"
1940
- ], Gt = {
1942
+ ], Jt = {
1941
1943
  key: 0,
1942
1944
  class: "border-t border-outline-variant"
1943
- }, Kt = {
1945
+ }, Yt = {
1944
1946
  key: 1,
1945
1947
  class: "flex flex-col items-center gap-2 py-6"
1946
- }, qt = { class: "text-body-small text-on-surface-variant" }, Jt = /* @__PURE__ */ O({
1948
+ }, Xt = { class: "text-body-small text-on-surface-variant" }, Zt = /* @__PURE__ */ O({
1947
1949
  __name: "MMapSearch",
1948
1950
  props: {
1949
1951
  provider: {},
@@ -1960,30 +1962,30 @@ var Ut = { class: "hidden" }, Wt = [
1960
1962
  }
1961
1963
  },
1962
1964
  emits: ["select"],
1963
- setup(e, { emit: t }) {
1964
- let r = e, i = t, a = n(), { map: s } = Y(), c = b(() => r.provider ?? Ht()), d = z(""), f = H([]), p = z(!1), _ = z(!1), y = z(!1), T = H(null), E, O;
1965
+ setup(t, { emit: n }) {
1966
+ let r = t, i = n, o = s(), { map: c } = X(), l = b(() => r.provider ?? Gt()), u = R(""), d = V([]), f = R(!1), p = R(!1), y = R(!1), T = V(null), E, O;
1965
1967
  async function k() {
1966
- let e = d.value.trim();
1968
+ let e = u.value.trim();
1967
1969
  if (!e) return;
1968
1970
  E?.abort(), E = new AbortController();
1969
1971
  let t = E;
1970
- p.value = !0, y.value = !0;
1972
+ f.value = !0, y.value = !0;
1971
1973
  try {
1972
- f.value = await c.value(e, t.signal);
1974
+ d.value = await l.value(e, t.signal);
1973
1975
  } catch {
1974
1976
  if (t.signal.aborted) return;
1975
- f.value = [];
1977
+ d.value = [];
1976
1978
  } finally {
1977
- E === t && (p.value = !1, _.value = !0);
1979
+ E === t && (f.value = !1, p.value = !0);
1978
1980
  }
1979
1981
  }
1980
1982
  function A(e) {
1981
- if (d.value = e, !e) return M();
1983
+ if (u.value = e, !e) return M();
1982
1984
  r.instant && (clearTimeout(O), O = setTimeout(k, 350));
1983
1985
  }
1984
1986
  function j(e) {
1985
1987
  T.value = e, y.value = !1;
1986
- let t = s.value;
1988
+ let t = c.value;
1987
1989
  e.bbox && e.bbox[0] !== e.bbox[2] ? t?.fitBounds([[e.bbox[0], e.bbox[1]], [e.bbox[2], e.bbox[3]]], {
1988
1990
  padding: 48,
1989
1991
  maxZoom: r.zoom
@@ -1993,7 +1995,7 @@ var Ut = { class: "hidden" }, Wt = [
1993
1995
  }), i("select", e);
1994
1996
  }
1995
1997
  function M() {
1996
- E?.abort(), clearTimeout(O), d.value = "", f.value = [], _.value = !1, p.value = !1, y.value = !1, T.value = null;
1998
+ E?.abort(), clearTimeout(O), u.value = "", d.value = [], p.value = !1, f.value = !1, y.value = !1, T.value = null;
1997
1999
  }
1998
2000
  F(() => {
1999
2001
  E?.abort(), clearTimeout(O);
@@ -2026,50 +2028,50 @@ var Ut = { class: "hidden" }, Wt = [
2026
2028
  country: "public",
2027
2029
  state: "map"
2028
2030
  }, P = (e) => e && N[e] || "location_on";
2029
- return (t, n) => (L(), C("div", Ut, [D(se, {
2030
- position: e.position,
2031
+ return (n, r) => (I(), C("div", Kt, [D(ue, {
2032
+ position: t.position,
2031
2033
  group: !1
2032
2034
  }, {
2033
- default: q(() => [D(h, {
2035
+ default: K(() => [D(h, {
2034
2036
  variant: "elevated",
2035
2037
  class: "w-80 max-w-[calc(100vw-5rem)] overflow-hidden"
2036
2038
  }, {
2037
- default: q(() => [w("form", {
2039
+ default: K(() => [w("form", {
2038
2040
  class: "flex items-center gap-2 py-1 pr-1 pl-3",
2039
2041
  role: "search",
2040
- onSubmit: J(k, ["prevent"])
2042
+ onSubmit: q(k, ["prevent"])
2041
2043
  }, [
2042
- D(l, {
2044
+ D(e, {
2043
2045
  name: "search",
2044
2046
  size: 20,
2045
2047
  class: "shrink-0 text-on-surface-variant"
2046
2048
  }),
2047
2049
  w("input", {
2048
- value: d.value,
2050
+ value: u.value,
2049
2051
  type: "search",
2050
2052
  enterkeyhint: "search",
2051
- placeholder: e.placeholder ?? W(a).mapSearchPlaces,
2052
- "aria-label": e.placeholder ?? W(a).mapSearchPlaces,
2053
+ placeholder: t.placeholder ?? U(o).mapSearchPlaces,
2054
+ "aria-label": t.placeholder ?? U(o).mapSearchPlaces,
2053
2055
  class: "min-w-0 flex-1 bg-transparent py-2 text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant [&::-webkit-search-cancel-button]:hidden",
2054
- onInput: n[0] ||= (e) => A(e.target.value),
2055
- onFocus: n[1] ||= (e) => y.value = _.value && !T.value
2056
- }, null, 40, Wt),
2057
- p.value ? (L(), x(u, {
2056
+ onInput: r[0] ||= (e) => A(e.target.value),
2057
+ onFocus: r[1] ||= (e) => y.value = p.value && !T.value
2058
+ }, null, 40, qt),
2059
+ f.value ? (I(), x(_, {
2058
2060
  key: 0,
2059
2061
  size: 20,
2060
2062
  class: "mr-2 shrink-0"
2061
- })) : d.value ? (L(), x(o, {
2063
+ })) : u.value ? (I(), x(a, {
2062
2064
  key: 1,
2063
2065
  icon: "close",
2064
- label: W(a).clearSearch,
2066
+ label: U(o).clearSearch,
2065
2067
  size: "sm",
2066
2068
  onClick: M
2067
2069
  }, null, 8, ["label"])) : S("", !0)
2068
- ], 32), y.value && _.value && !p.value ? (L(), C("div", Gt, [f.value.length ? (L(), x(m, {
2070
+ ], 32), y.value && p.value && !f.value ? (I(), C("div", Jt, [d.value.length ? (I(), x(m, {
2069
2071
  key: 0,
2070
2072
  class: "max-h-72 overflow-y-auto"
2071
2073
  }, {
2072
- default: q(() => [(L(!0), C(v, null, B(f.value, (e, t) => (L(), x(g, {
2074
+ default: K(() => [(I(!0), C(v, null, z(d.value, (e, t) => (I(), x(g, {
2073
2075
  key: t,
2074
2076
  title: e.label,
2075
2077
  icon: P(e.type),
@@ -2082,21 +2084,20 @@ var Ut = { class: "hidden" }, Wt = [
2082
2084
  "onClick"
2083
2085
  ]))), 128))]),
2084
2086
  _: 1
2085
- })) : (L(), C("div", Kt, [D(l, {
2087
+ })) : (I(), C("div", Yt, [D(e, {
2086
2088
  name: "search_off",
2087
2089
  size: 28,
2088
2090
  class: "text-on-surface-variant"
2089
- }), w("span", qt, U(W(a).noResults), 1)]))])) : S("", !0)]),
2091
+ }), w("span", Xt, H(U(o).noResults), 1)]))])) : S("", !0)]),
2090
2092
  _: 1
2091
2093
  })]),
2092
2094
  _: 1
2093
- }, 8, ["position"]), e.marker && T.value ? (L(), x(Se, {
2095
+ }, 8, ["position"]), t.marker && T.value ? (I(), x(Te, {
2094
2096
  key: 0,
2095
2097
  "lng-lat": T.value.lngLat
2096
2098
  }, null, 8, ["lng-lat"])) : S("", !0)]));
2097
2099
  }
2098
2100
  });
2099
- //#endregion
2100
- export { _e as MMap, Qe as MMapBaseLayers, se as MMapControl, st as MMapFeatureInfo, Vt as MMapFilter, Te as MMapGeoJson, wt as MMapHover, _t as MMapIdentify, Je as MMapLayers, Se as MMapMarker, Lt as MMapMeasure, we as MMapPopup, Jt as MMapSearch, ft as fieldLabel, pt as formatFieldValue, ut as genericAdapter, ht as identifyFeatures, Ht as nominatimProvider, dt as orvianAdapter, Y as useMap, zt as useMapFilter, Z as useMapLayers };
2101
+ export { be as MMap, tt as MMapBaseLayers, ue as MMapControl, ut as MMapFeatureInfo, Wt as MMapFilter, Oe as MMapGeoJson, Dt as MMapHover, bt as MMapIdentify, Ze as MMapLayers, Te as MMapMarker, Bt as MMapMeasure, De as MMapPopup, Zt as MMapSearch, ht as fieldLabel, gt as formatFieldValue, pt as genericAdapter, vt as identifyFeatures, Gt as nominatimProvider, mt as orvianAdapter, oe as setMapWorker, X as useMap, Ht as useMapFilter, Z as useMapLayers };
2101
2102
 
2102
2103
  //# sourceMappingURL=map.js.map