@das-fed/ui 6.4.0-hot.27 → 6.4.0-hot.29

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 (487) hide show
  1. package/esm-map.json +22 -1
  2. package/package.json +6 -6
  3. package/packages/business-components/app-container/index.d.ts +1 -0
  4. package/packages/business-components/app-container/index.js +180 -121
  5. package/packages/business-components/app-container/index.js.gz +0 -0
  6. package/packages/business-components/app-container/src/index.vue.d.ts +1 -0
  7. package/packages/business-components/app-container/src/style-theme.d.ts +13 -0
  8. package/packages/business-components/app-container/src/type.d.ts +1 -0
  9. package/packages/business-components/app-container/style.css +1 -1
  10. package/packages/business-components/app-container/style.css.gz +0 -0
  11. package/packages/{components/time-line → business-components/area-phone-select}/i18n/index.d.ts +1 -1
  12. package/packages/business-components/area-phone-select/index.d.ts +1368 -0
  13. package/packages/business-components/area-phone-select/index.js +269 -0
  14. package/packages/business-components/area-phone-select/index.js.gz +0 -0
  15. package/packages/business-components/area-phone-select/src/Index.vue.d.ts +15 -0
  16. package/packages/business-components/area-phone-select/src/apis.d.ts +2 -0
  17. package/packages/business-components/area-phone-select/src/area-popover/index.vue.d.ts +179 -0
  18. package/packages/business-components/area-phone-select/src/area-popover/type.d.ts +37 -0
  19. package/packages/business-components/area-phone-select/src/type.d.ts +26 -0
  20. package/packages/business-components/area-phone-select/src/utils.d.ts +12 -0
  21. package/packages/business-components/area-phone-select/style.css +1 -0
  22. package/packages/business-components/area-phone-select/style.css.gz +0 -0
  23. package/packages/business-components/change-enterprises/i18n/index.d.ts +18 -0
  24. package/packages/business-components/change-enterprises/index.js +65 -59
  25. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  26. package/packages/business-components/change-pwd/i18n/index.d.ts +86 -0
  27. package/packages/business-components/change-pwd/index.js +143 -114
  28. package/packages/business-components/change-pwd/index.js.gz +0 -0
  29. package/packages/business-components/currency-page/i18n/index.d.ts +23 -0
  30. package/packages/business-components/currency-page/index.js +42 -27
  31. package/packages/business-components/currency-page/index.js.gz +0 -0
  32. package/packages/business-components/device-panel/i18n/index.d.ts +1202 -0
  33. package/packages/business-components/device-panel/index.d.ts +2 -2
  34. package/packages/business-components/device-panel/index.js +40240 -38162
  35. package/packages/business-components/device-panel/index.js.gz +0 -0
  36. package/packages/business-components/device-panel/src/apis.d.ts +2 -2
  37. package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/dealAlarm.vue.d.ts +2 -2
  38. package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/historyList.vue.d.ts +2 -2
  39. package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/liveList.vue.d.ts +2 -2
  40. package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/logDetail.vue.d.ts +2 -2
  41. package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/components/attribute.vue.d.ts +2 -0
  42. package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/components/barChart.vue.d.ts +5 -0
  43. package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/components/lineChart.vue.d.ts +5 -0
  44. package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/index.vue.d.ts +17 -0
  45. package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-data-Trends.d.ts +7 -0
  46. package/packages/business-components/device-panel/src/components/alarmDevicePanel/index.vue.d.ts +2 -2
  47. package/packages/business-components/device-panel/src/components/alarmDevicePanel/operatingData/index.vue.d.ts +1 -7
  48. package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/dealAlarm.vue.d.ts +2 -2
  49. package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/historyList.vue.d.ts +2 -2
  50. package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/liveList.vue.d.ts +2 -2
  51. package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/logDetail.vue.d.ts +2 -2
  52. package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/components/attribute.vue.d.ts +2 -0
  53. package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/components/barChart.vue.d.ts +9 -0
  54. package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/components/lineChart.vue.d.ts +5 -0
  55. package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/index.vue.d.ts +17 -0
  56. package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-data-Trends.d.ts +7 -0
  57. package/packages/business-components/device-panel/src/components/devicePanelModal/index.vue.d.ts +2 -2
  58. package/packages/business-components/device-panel/src/components/devicePanelModal/preview/index.vue.d.ts +2 -2
  59. package/packages/business-components/device-panel/src/hooks/use-operating-data.d.ts +22 -0
  60. package/packages/business-components/device-panel/style.css +1 -1
  61. package/packages/business-components/device-panel/style.css.gz +0 -0
  62. package/packages/business-components/echarts/index.js +2 -2
  63. package/packages/business-components/echarts/index.js.gz +0 -0
  64. package/packages/business-components/echarts/style.css +1 -1
  65. package/packages/business-components/export-button/hooks/useExport.d.ts +5 -6
  66. package/packages/business-components/export-button/i18n/index.d.ts +58 -0
  67. package/packages/business-components/export-button/index.js +133 -109
  68. package/packages/business-components/export-button/index.js.gz +0 -0
  69. package/packages/business-components/import-button/hooks/file.d.ts +1 -0
  70. package/packages/business-components/import-button/hooks/useImport.d.ts +13 -13
  71. package/packages/business-components/import-button/i18n/index.d.ts +143 -0
  72. package/packages/business-components/import-button/index.js +368 -312
  73. package/packages/business-components/import-button/index.js.gz +0 -0
  74. package/packages/business-components/import-button/src/type.d.ts +2 -0
  75. package/packages/business-components/import-button/style.css +1 -1
  76. package/packages/business-components/index.d.ts +2 -0
  77. package/packages/business-components/index.js +2 -0
  78. package/packages/business-components/layout-breadcrumb/index.js +63 -61
  79. package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
  80. package/packages/business-components/model-table-dialog/i18n/index.d.ts +33 -0
  81. package/packages/business-components/model-table-dialog/index.d.ts +65 -65
  82. package/packages/business-components/model-table-dialog/index.js +546 -544
  83. package/packages/business-components/model-table-dialog/index.js.gz +0 -0
  84. package/packages/business-components/model-table-dialog/src/Index.vue.d.ts +12 -12
  85. package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +12 -9
  86. package/packages/business-components/model-table-dialog/style.css +1 -1
  87. package/packages/business-components/model-table-dialog/style.css.gz +0 -0
  88. package/packages/business-components/payment/api.d.ts +8 -0
  89. package/packages/business-components/payment/i18n/index.d.ts +68 -0
  90. package/packages/business-components/payment/index.d.ts +56 -0
  91. package/packages/business-components/payment/index.js +372 -0
  92. package/packages/business-components/payment/index.js.gz +0 -0
  93. package/packages/business-components/payment/src/Index.vue.d.ts +7 -0
  94. package/packages/business-components/payment/style.css +1 -0
  95. package/packages/business-components/payment/type.d.ts +42 -0
  96. package/packages/business-components/process-configuration/i18n/index.d.ts +147 -0
  97. package/packages/business-components/process-configuration/index.d.ts +2 -0
  98. package/packages/business-components/process-configuration/index.js +256 -218
  99. package/packages/business-components/process-configuration/index.js.gz +0 -0
  100. package/packages/business-components/process-configuration/src/hooks/useDeleteDialog.d.ts +2 -3
  101. package/packages/business-components/process-configuration/src/index.vue.d.ts +2 -0
  102. package/packages/business-components/process-configuration/src/type.d.ts +3 -0
  103. package/packages/business-components/process-configuration/style.css +1 -1
  104. package/packages/business-components/process-configuration/style.css.gz +0 -0
  105. package/packages/business-components/process-form/api-service/formPreView.d.ts +7 -0
  106. package/packages/business-components/process-form/apis.d.ts +1 -0
  107. package/packages/business-components/process-form/i18n/index.d.ts +423 -0
  108. package/packages/business-components/process-form/index.js +1377 -1223
  109. package/packages/business-components/process-form/index.js.gz +0 -0
  110. package/packages/business-components/process-form/src/widgets/store.d.ts +1 -0
  111. package/packages/business-components/process-form/style.css +1 -1
  112. package/packages/business-components/process-log/i18n/index.d.ts +47 -1
  113. package/packages/business-components/process-log/index.js +343 -328
  114. package/packages/business-components/process-log/index.js.gz +0 -0
  115. package/packages/business-components/process-log/style.css +1 -1
  116. package/packages/business-components/process-log/style.css.gz +0 -0
  117. package/packages/business-components/process-search-form/i18n/index.d.ts +48 -0
  118. package/packages/business-components/process-search-form/index.d.ts +2 -2
  119. package/packages/business-components/process-search-form/index.js +574 -540
  120. package/packages/business-components/process-search-form/index.js.gz +0 -0
  121. package/packages/business-components/process-search-form/src/App.vue.d.ts +2 -2
  122. package/packages/business-components/process-search-form/src/type.d.ts +1 -1
  123. package/packages/business-components/process-table/i18n/index.d.ts +43 -0
  124. package/packages/business-components/process-table/index.d.ts +13 -2
  125. package/packages/business-components/process-table/index.js +649 -620
  126. package/packages/business-components/process-table/index.js.gz +0 -0
  127. package/packages/business-components/process-table/src/App.vue.d.ts +34 -6
  128. package/packages/business-components/process-table/src/type.d.ts +4 -0
  129. package/packages/business-components/process-table/style.css +1 -1
  130. package/packages/business-components/upload-file/i18n/index.d.ts +8 -0
  131. package/packages/business-components/upload-file/index.d.ts +8 -0
  132. package/packages/business-components/upload-file/index.js +63 -55
  133. package/packages/business-components/upload-file/index.js.gz +0 -0
  134. package/packages/business-components/upload-file/src/App.vue.d.ts +2 -0
  135. package/packages/business-components/upload-file/src/type.d.ts +6 -0
  136. package/packages/business-components/upload-file/style.css +1 -1
  137. package/packages/business-components/urgent-panel/i18n/index.d.ts +523 -0
  138. package/packages/business-components/urgent-panel/index.d.ts +2 -2
  139. package/packages/business-components/urgent-panel/index.js +1493 -1351
  140. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  141. package/packages/business-components/urgent-panel/style.css +1 -1
  142. package/packages/business-components/urgent-panel/style.css.gz +0 -0
  143. package/packages/business-components/user-org-dialog/i18n/index.d.ts +72 -1
  144. package/packages/business-components/user-org-dialog/index.js +246 -231
  145. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  146. package/packages/business-components/video-dialog/i18n/index.d.ts +103 -0
  147. package/packages/business-components/video-dialog/index.js +282 -259
  148. package/packages/business-components/video-dialog/index.js.gz +0 -0
  149. package/packages/components/alert/index.d.ts +9 -9
  150. package/packages/components/alert/src/index.vue.d.ts +1 -1
  151. package/packages/components/autocomplete/index.d.ts +27 -18
  152. package/packages/components/autocomplete/index.js +142 -130
  153. package/packages/components/autocomplete/index.js.gz +0 -0
  154. package/packages/components/autocomplete/src/index.vue.d.ts +21 -11
  155. package/packages/components/autocomplete/src/type.d.ts +9 -1
  156. package/packages/components/autocomplete/style.css +1 -1
  157. package/packages/components/autocomplete/style.css.gz +0 -0
  158. package/packages/components/breadcrumb/index.d.ts +9 -3
  159. package/packages/components/breadcrumb/index.js +48 -45
  160. package/packages/components/breadcrumb/index.js.gz +0 -0
  161. package/packages/components/breadcrumb/src/BreadCrumb.vue.d.ts +3 -1
  162. package/packages/components/breadcrumb/src/type.d.ts +1 -0
  163. package/packages/components/breadcrumb/style.css +1 -1
  164. package/packages/components/breadcrumb/style.css.gz +0 -0
  165. package/packages/components/button/index.js +64 -71
  166. package/packages/components/button/index.js.gz +0 -0
  167. package/packages/components/calendar/i18n/index.d.ts +80 -26
  168. package/packages/components/calendar/index.d.ts +5 -5
  169. package/packages/components/calendar/index.js +277 -275
  170. package/packages/components/calendar/index.js.gz +0 -0
  171. package/packages/components/calendar/src/Index.vue.d.ts +2 -2
  172. package/packages/components/calendar/src/old-Index.vue.d.ts +2 -2
  173. package/packages/components/cascader/i18n/index.d.ts +8 -0
  174. package/packages/components/cascader/index.d.ts +228 -10
  175. package/packages/components/cascader/index.js +84 -81
  176. package/packages/components/cascader/index.js.gz +0 -0
  177. package/packages/components/cascader/src/Index.vue.d.ts +3 -3
  178. package/packages/components/cascader/style.css +1 -1
  179. package/packages/components/cascader/style.css.gz +0 -0
  180. package/packages/components/checkbox/index.js +149 -137
  181. package/packages/components/checkbox/index.js.gz +0 -0
  182. package/packages/components/checkbox/style.css +1 -1
  183. package/packages/components/checkbox/style.css.gz +0 -0
  184. package/packages/components/color-picker/i18n/index.d.ts +8 -0
  185. package/packages/components/color-picker/index.js +95 -92
  186. package/packages/components/color-picker/index.js.gz +0 -0
  187. package/packages/components/color-picker/src/type.d.ts +6 -3
  188. package/packages/components/color-picker/style.css +1 -1
  189. package/packages/components/color-picker/style.css.gz +0 -0
  190. package/packages/components/custom-search-item/i18n/index.d.ts +8 -0
  191. package/packages/components/custom-search-item/index.js +20 -19
  192. package/packages/components/custom-search-item/index.js.gz +0 -0
  193. package/packages/components/date-picker/i18n/index.d.ts +33 -0
  194. package/packages/components/date-picker/index.d.ts +33 -28
  195. package/packages/components/date-picker/index.js +510 -476
  196. package/packages/components/date-picker/index.js.gz +0 -0
  197. package/packages/components/date-picker/src/DatePicker.vue.d.ts +4 -3
  198. package/packages/components/date-picker/src/DateRangePicker.vue.d.ts +5 -3
  199. package/packages/components/date-picker/src/RangePicker.vue.d.ts +3 -2
  200. package/packages/components/date-picker/src/TimePicker.vue.d.ts +3 -2
  201. package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +3 -2
  202. package/packages/components/date-picker/style.css +1 -1
  203. package/packages/components/date-picker/style.css.gz +0 -0
  204. package/packages/components/dialog/i18n/index.d.ts +6 -0
  205. package/packages/components/dialog/index.js +92 -92
  206. package/packages/components/dialog/index.js.gz +0 -0
  207. package/packages/components/dialog/style.css +1 -1
  208. package/packages/components/dialog/style.css.gz +0 -0
  209. package/packages/components/dimple-layout/i18n/index.d.ts +53 -0
  210. package/packages/components/dimple-layout/index.js +1299 -1286
  211. package/packages/components/dimple-layout/index.js.gz +0 -0
  212. package/packages/components/dimple-layout/style.css +1 -1
  213. package/packages/components/dimple-layout/style.css.gz +0 -0
  214. package/packages/components/dropdown/i18n/index.d.ts +8 -0
  215. package/packages/components/dropdown/index.js +26 -25
  216. package/packages/components/dropdown/index.js.gz +0 -0
  217. package/packages/components/edit-table/index.d.ts +34 -14
  218. package/packages/components/edit-table/index.js +2030 -1527
  219. package/packages/components/edit-table/index.js.gz +0 -0
  220. package/packages/components/edit-table/src/components/index.d.ts +1 -0
  221. package/packages/components/edit-table/src/components/row-button/index.vue.d.ts +5 -0
  222. package/packages/components/edit-table/src/components/row-button/type.d.ts +13 -0
  223. package/packages/components/edit-table/src/hooks/use-validator.d.ts +9 -3
  224. package/packages/components/edit-table/src/index.vue.d.ts +39 -8
  225. package/packages/components/edit-table/src/type.d.ts +28 -3
  226. package/packages/components/edit-table/src/utils.d.ts +9 -5
  227. package/packages/components/edit-table/style.css +1 -1
  228. package/packages/components/edit-table/style.css.gz +0 -0
  229. package/packages/components/empty/i18n/index.d.ts +1 -0
  230. package/packages/components/empty/index.d.ts +3 -3
  231. package/packages/components/empty/index.js +18 -20
  232. package/packages/components/empty/index.js.gz +0 -0
  233. package/packages/components/empty/src/Index.vue.d.ts +1 -1
  234. package/packages/components/form-item/index.js +832 -829
  235. package/packages/components/form-item/index.js.gz +0 -0
  236. package/packages/components/form-item/src/type.d.ts +2 -0
  237. package/packages/components/form-item/style.css +1 -1
  238. package/packages/components/form-item/style.css.gz +0 -0
  239. package/packages/components/form-item/theme/index.d.ts +3 -0
  240. package/packages/components/image-upload/i18n/index.d.ts +18 -0
  241. package/packages/components/image-upload/index.js +122 -122
  242. package/packages/components/image-upload/index.js.gz +0 -0
  243. package/packages/components/image-upload/src/hooks/use-imageUpload.d.ts +1 -1
  244. package/packages/components/image-viewer/index.js +339 -352
  245. package/packages/components/image-viewer/index.js.gz +0 -0
  246. package/packages/components/image-viewer/src/hooks/use-imageViewer.d.ts +2 -2
  247. package/packages/components/image-viewer/style.css +1 -1
  248. package/packages/components/image-viewer/style.css.gz +0 -0
  249. package/packages/components/index.d.ts +1 -0
  250. package/packages/components/index.js +1 -0
  251. package/packages/components/input/i18n/index.d.ts +18 -0
  252. package/packages/components/input/index.d.ts +5 -0
  253. package/packages/components/input/index.js +122 -112
  254. package/packages/components/input/index.js.gz +0 -0
  255. package/packages/components/input/src/index.vue.d.ts +2 -0
  256. package/packages/components/input/src/type.d.ts +1 -0
  257. package/packages/components/input/style.css +1 -1
  258. package/packages/components/input/style.css.gz +0 -0
  259. package/packages/components/input-dialog-select/i18n/index.d.ts +7 -1
  260. package/packages/components/input-dialog-select/index.d.ts +1 -0
  261. package/packages/components/input-dialog-select/index.js +114 -112
  262. package/packages/components/input-dialog-select/index.js.gz +0 -0
  263. package/packages/components/input-dialog-select/src/Index.vue.d.ts +1 -0
  264. package/packages/components/input-dialog-select/style.css +1 -1
  265. package/packages/components/input-dialog-select/style.css.gz +0 -0
  266. package/packages/components/input-number/index.js +63 -63
  267. package/packages/components/input-number/index.js.gz +0 -0
  268. package/packages/components/input-number/src/App.vue.d.ts +1 -3
  269. package/packages/components/input-number/style.css +1 -1
  270. package/packages/components/input-number/style.css.gz +0 -0
  271. package/packages/components/live-player/i18n/index.d.ts +13 -0
  272. package/packages/components/live-player/index.js +161 -152
  273. package/packages/components/live-player/index.js.gz +0 -0
  274. package/packages/components/live-player/style.css +1 -1
  275. package/packages/components/{button → loading}/i18n/index.d.ts +2 -1
  276. package/packages/components/loading/index.js +71 -70
  277. package/packages/components/loading/index.js.gz +0 -0
  278. package/packages/components/map/i18n/index.d.ts +33 -0
  279. package/packages/components/map/index.js +1088 -811
  280. package/packages/components/map/index.js.gz +0 -0
  281. package/packages/components/map/src/get-sdk-config.d.ts +1 -1
  282. package/packages/components/map/src/hooks/use-baidu.d.ts +1 -11
  283. package/packages/components/map/src/hooks/use-gaode.d.ts +1 -11
  284. package/packages/components/map/src/hooks/use-google.d.ts +16 -0
  285. package/packages/components/map/src/hooks/use-map.d.ts +2 -0
  286. package/packages/components/map/src/type.d.ts +1 -1
  287. package/packages/components/map/style.css +1 -1
  288. package/packages/components/menu-aside/i18n/index.d.ts +8 -0
  289. package/packages/components/menu-aside/index.js +727 -621
  290. package/packages/components/menu-aside/index.js.gz +0 -0
  291. package/packages/components/menu-aside/src/style-theme.d.ts +20 -0
  292. package/packages/components/menu-aside/style.css +1 -1
  293. package/packages/components/menu-aside/style.css.gz +0 -0
  294. package/packages/components/menu-aside/theme/base.d.ts +3 -0
  295. package/packages/components/menu-header/index.js +44 -37
  296. package/packages/components/menu-header/index.js.gz +0 -0
  297. package/packages/components/menu-header/src/style-theme.d.ts +5 -0
  298. package/packages/components/menu-header/style.css +1 -1
  299. package/packages/components/menu-header/style.css.gz +0 -0
  300. package/packages/components/menu-header/theme/base.d.ts +1 -0
  301. package/packages/components/message/i18n/index.d.ts +8 -0
  302. package/packages/components/message/index.js +16 -15
  303. package/packages/components/message/index.js.gz +0 -0
  304. package/packages/components/{search → notification}/i18n/index.d.ts +2 -1
  305. package/packages/components/notification/index.js +9 -8
  306. package/packages/components/notification/index.js.gz +0 -0
  307. package/packages/components/pagination/i18n/index.d.ts +23 -0
  308. package/packages/components/pagination/index.d.ts +23 -23
  309. package/packages/components/pagination/index.js +148 -138
  310. package/packages/components/pagination/index.js.gz +0 -0
  311. package/packages/components/pagination/src/Pagination.vue.d.ts +3 -3
  312. package/packages/components/pagination/style.css +1 -1
  313. package/packages/components/pagination/style.css.gz +0 -0
  314. package/packages/components/popover/i18n/index.d.ts +2 -0
  315. package/packages/components/popover/index.d.ts +163 -2
  316. package/packages/components/popover/index.js +34 -31
  317. package/packages/components/popover/index.js.gz +0 -0
  318. package/packages/components/popup-mask/index.d.ts +9 -9
  319. package/packages/components/popup-mask/src/Index.vue.d.ts +1 -1
  320. package/packages/components/preview/i18n/index.d.ts +1 -0
  321. package/packages/components/preview/index.d.ts +3 -3
  322. package/packages/components/preview/index.js +9 -10
  323. package/packages/components/preview/index.js.gz +0 -0
  324. package/packages/components/preview/src/Index.vue.d.ts +1 -1
  325. package/packages/components/preview/style.css +1 -1
  326. package/packages/components/rich-editor/i18n/index.d.ts +11 -0
  327. package/packages/components/rich-editor/index.js +3640 -3621
  328. package/packages/components/rich-editor/index.js.gz +0 -0
  329. package/packages/components/rich-editor/src/type.d.ts +3 -0
  330. package/packages/components/scrollbar/index.js +2 -2
  331. package/packages/components/scrollbar/index.js.gz +0 -0
  332. package/packages/components/scrollbar/style.css +1 -1
  333. package/packages/components/scrollbar/style.css.gz +0 -0
  334. package/packages/components/search/index.d.ts +9 -0
  335. package/packages/components/search/index.js +56 -47
  336. package/packages/components/search/index.js.gz +0 -0
  337. package/packages/components/search/src/Index.vue.d.ts +15 -0
  338. package/packages/components/search/src/type.d.ts +2 -0
  339. package/packages/components/search/style.css +1 -1
  340. package/packages/components/search/style.css.gz +0 -0
  341. package/packages/components/search-form/i18n/index.d.ts +38 -0
  342. package/packages/components/search-form/index.js +930 -848
  343. package/packages/components/search-form/index.js.gz +0 -0
  344. package/packages/components/search-form/src/Index.vue.d.ts +5 -1
  345. package/packages/components/search-form/src/InputSelect.vue.d.ts +2 -2
  346. package/packages/components/search-form/src/SearchDateRange.vue.d.ts +2 -2
  347. package/packages/components/search-form/src/hooks/common.d.ts +1 -0
  348. package/packages/components/search-form/src/type.d.ts +6 -0
  349. package/packages/components/search-form/style.css +1 -1
  350. package/packages/components/search-form/style.css.gz +0 -0
  351. package/packages/components/select/i18n/index.d.ts +23 -0
  352. package/packages/components/select/index.js +355 -355
  353. package/packages/components/select/index.js.gz +0 -0
  354. package/packages/components/select/src/Select.vue.d.ts +1 -0
  355. package/packages/components/select/style.css +1 -1
  356. package/packages/components/select/style.css.gz +0 -0
  357. package/packages/components/select-input/index.d.ts +3 -2
  358. package/packages/components/select-input/index.js +68 -61
  359. package/packages/components/select-input/index.js.gz +0 -0
  360. package/packages/components/select-input/src/Index.vue.d.ts +3 -2
  361. package/packages/components/select-input/src/hooks/use-select-input.d.ts +5 -0
  362. package/packages/components/select-input/src/type.d.ts +3 -0
  363. package/packages/components/select-input/style.css +1 -1
  364. package/packages/components/select-input/style.css.gz +0 -0
  365. package/packages/components/select-list/i18n/index.d.ts +4 -0
  366. package/packages/components/select-list/index.d.ts +23 -3
  367. package/packages/components/select-list/index.js +661 -625
  368. package/packages/components/select-list/index.js.gz +0 -0
  369. package/packages/components/select-list/src/Index.vue.d.ts +9 -1
  370. package/packages/components/select-list/src/hooks/use-select-list.d.ts +2 -0
  371. package/packages/components/select-list/src/type.d.ts +22 -4
  372. package/packages/components/select-list/style.css +1 -1
  373. package/packages/components/select-list/style.css.gz +0 -0
  374. package/packages/components/select-list/theme/index.d.ts +2 -0
  375. package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -0
  376. package/packages/components/special-range-picker-month/index.js +72 -72
  377. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  378. package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -0
  379. package/packages/components/special-range-picker-year/index.js +78 -78
  380. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  381. package/packages/components/spin/i18n/index.d.ts +8 -0
  382. package/packages/components/spin/index.js +31 -30
  383. package/packages/components/spin/index.js.gz +0 -0
  384. package/packages/components/table/i18n/index.d.ts +94 -0
  385. package/packages/components/table/index.d.ts +108 -27
  386. package/packages/components/table/index.js +4189 -4049
  387. package/packages/components/table/index.js.gz +0 -0
  388. package/packages/components/table/src/Table.vue.d.ts +11 -2
  389. package/packages/components/table/src/hooks/use-operation.d.ts +55 -5
  390. package/packages/components/table/src/table-column/index.vue.d.ts +1 -1
  391. package/packages/components/table/src/type.d.ts +16 -3
  392. package/packages/components/table/style.css +1 -1
  393. package/packages/components/table/style.css.gz +0 -0
  394. package/packages/components/tabs/i18n/index.d.ts +18 -0
  395. package/packages/components/tabs/index.js +124 -118
  396. package/packages/components/tabs/index.js.gz +0 -0
  397. package/packages/components/tabs/style.css +1 -1
  398. package/packages/components/tabs/style.css.gz +0 -0
  399. package/packages/components/text-tooltip/index.js +817 -801
  400. package/packages/components/text-tooltip/index.js.gz +0 -0
  401. package/packages/components/text-tooltip/src/type.d.ts +1 -62
  402. package/packages/components/time-line/index.js +36 -43
  403. package/packages/components/time-line/index.js.gz +0 -0
  404. package/packages/components/tooltip/i18n/index.d.ts +8 -0
  405. package/packages/components/tooltip/index.d.ts +11 -2
  406. package/packages/components/tooltip/index.js +83 -75
  407. package/packages/components/tooltip/index.js.gz +0 -0
  408. package/packages/components/tooltip/src/index.vue.d.ts +1 -0
  409. package/packages/components/tooltip/src/type.d.ts +15 -2
  410. package/packages/components/tooltip/style.css +1 -1
  411. package/packages/components/tooltip/style.css.gz +0 -0
  412. package/packages/components/tree/i18n/index.d.ts +43 -0
  413. package/packages/components/tree/index.js +1482 -1475
  414. package/packages/components/tree/index.js.gz +0 -0
  415. package/packages/components/tree/src/App.vue.d.ts +9 -12
  416. package/packages/components/tree/src/hooks/use-lazy-tree.d.ts +2 -2
  417. package/packages/components/tree/src/type.d.ts +14 -7
  418. package/packages/components/tree-select/index.js +369 -339
  419. package/packages/components/tree-select/index.js.gz +0 -0
  420. package/packages/components/tree-select/src/App.vue.d.ts +20 -12
  421. package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +20 -13
  422. package/packages/components/tree-select/src/type.d.ts +6 -2
  423. package/packages/components/tree-select/style.css +1 -1
  424. package/packages/components/tree-select/style.css.gz +0 -0
  425. package/packages/components/tree-table/index.js +121 -124
  426. package/packages/components/tree-table/index.js.gz +0 -0
  427. package/packages/components/tree-table/style.css +1 -1
  428. package/packages/components/tree-table/style.css.gz +0 -0
  429. package/packages/components/tree-v2/i18n/index.d.ts +36 -0
  430. package/packages/components/tree-v2/index.d.ts +585 -0
  431. package/packages/components/tree-v2/index.js +3372 -0
  432. package/packages/components/tree-v2/index.js.gz +0 -0
  433. package/packages/components/tree-v2/src/App.vue.d.ts +99 -0
  434. package/packages/components/tree-v2/src/empty.vue.d.ts +19 -0
  435. package/packages/components/tree-v2/src/expand-icon.vue.d.ts +2 -0
  436. package/packages/components/tree-v2/src/hooks/use-lazy-tree.d.ts +15 -0
  437. package/packages/components/tree-v2/src/hooks/use-style.d.ts +5 -0
  438. package/packages/components/tree-v2/src/hooks/use-tree.d.ts +43 -0
  439. package/packages/components/tree-v2/src/type.d.ts +283 -0
  440. package/packages/components/tree-v2/src/utils.d.ts +18 -0
  441. package/packages/components/tree-v2/style.css +1 -0
  442. package/packages/components/tree-v2/style.css.gz +0 -0
  443. package/packages/components/tree-v2/theme/base.d.ts +16 -0
  444. package/packages/components/upload/i18n/index.d.ts +10 -0
  445. package/packages/components/upload/index.d.ts +3 -0
  446. package/packages/components/upload/index.js +153 -134
  447. package/packages/components/upload/index.js.gz +0 -0
  448. package/packages/components/upload/src/Index.vue.d.ts +1 -0
  449. package/packages/components/upload/src/type.d.ts +3 -0
  450. package/packages/components/upload/style.css +1 -1
  451. package/packages/components/upload/style.css.gz +0 -0
  452. package/packages/components/virtual-tree/i18n/index.d.ts +8 -0
  453. package/packages/components/virtual-tree/index.js +58 -51
  454. package/packages/components/virtual-tree/index.js.gz +0 -0
  455. package/packages/components/virtual-tree/src/App.vue.d.ts +1 -0
  456. package/packages/icons/edit-3/index.d.ts +1 -0
  457. package/packages/icons/edit-3/index.js +17 -0
  458. package/packages/icons/edit-3/index.js.gz +0 -0
  459. package/packages/icons/edit-3/index.vue.d.ts +16 -0
  460. package/packages/icons/exit/index.d.ts +1 -0
  461. package/packages/icons/exit/index.js +17 -0
  462. package/packages/icons/exit/index.js.gz +0 -0
  463. package/packages/icons/exit/index.vue.d.ts +16 -0
  464. package/packages/icons/global/index.d.ts +1 -0
  465. package/packages/icons/global/index.js +17 -0
  466. package/packages/icons/global/index.js.gz +0 -0
  467. package/packages/icons/global/index.vue.d.ts +16 -0
  468. package/packages/icons/index.d.ts +7 -0
  469. package/packages/icons/index.js +7 -0
  470. package/packages/icons/input-select/index.d.ts +1 -0
  471. package/packages/icons/input-select/index.js +17 -0
  472. package/packages/icons/input-select/index.js.gz +0 -0
  473. package/packages/icons/input-select/index.vue.d.ts +16 -0
  474. package/packages/icons/password-lock2/index.d.ts +1 -0
  475. package/packages/icons/password-lock2/index.js +17 -0
  476. package/packages/icons/password-lock2/index.js.gz +0 -0
  477. package/packages/icons/password-lock2/index.vue.d.ts +16 -0
  478. package/packages/icons/right-3/index.d.ts +1 -0
  479. package/packages/icons/right-3/index.js +17 -0
  480. package/packages/icons/right-3/index.js.gz +0 -0
  481. package/packages/icons/right-3/index.vue.d.ts +16 -0
  482. package/packages/icons/system/index.d.ts +1 -0
  483. package/packages/icons/system/index.js +17 -0
  484. package/packages/icons/system/index.js.gz +0 -0
  485. package/packages/icons/system/index.vue.d.ts +16 -0
  486. package/i18n-collection/en.js +0 -536
  487. package/i18n-collection/zh-CN.js +0 -537
@@ -1,43 +1,44 @@
1
1
  import '@das-fed/ui/packages/components/map/style.css';
2
- import { ref as A, defineComponent as me, shallowRef as G, computed as be, onMounted as _e, openBlock as xe, createElementBlock as we, normalizeStyle as Me, createElementVNode as Z, withDirectives as K, createVNode as Ae, unref as R, withKeys as Se, h as Ht, render as Jt, isRef as Zt, vShow as Wt } from "vue";
3
- import { withInstall as Ce } from "@das-fed/utils/with-install/index";
4
- import { ElAutocomplete as Oe, ElLoadingDirective as Te } from "element-plus/es";
2
+ import { ref as S, defineComponent as Ae, shallowRef as I, computed as Se, onMounted as Oe, openBlock as Te, createElementBlock as $e, normalizeStyle as je, createElementVNode as W, withDirectives as Z, createVNode as de, unref as D, withKeys as Le, h as Qt, render as ea, isRef as ta, vShow as Ke, withCtx as aa, createTextVNode as oa, toDisplayString as ra } from "vue";
3
+ import { withInstall as Ee } from "@das-fed/utils/with-install/index";
4
+ import { ElAutocomplete as Pe, ElLoadingDirective as ke } from "element-plus/es";
5
5
  import "element-plus/es/components/base/style/css";
6
6
  import "element-plus/es/components/loading/style/css";
7
7
  import "element-plus/es/components/autocomplete/style/css";
8
- import { t as k } from "@das-fed/web/packages/i18n/index";
9
- import { vDasTooltip as $e } from "@das-fed/ui/packages/components/text-tooltip/index";
10
- import { DasMessage as D } from "@das-fed/ui/packages/components/message/index";
11
- import { createService as at } from "@das-fed/utils/create-api-service";
12
- const W = (e) => {
8
+ import { t as P, setI18nRule as na } from "@das-fed/web/packages/i18n/index";
9
+ import { vDasTooltip as Re } from "@das-fed/ui/packages/components/text-tooltip/index";
10
+ import { DasMessage as z } from "@das-fed/ui/packages/components/message/index";
11
+ import { createService as ct } from "@das-fed/utils/create-api-service";
12
+ import { DasButton as la } from "@das-fed/ui/packages/components/button/index";
13
+ const Q = (e) => {
13
14
  if (e)
14
15
  return typeof e == "string" && hasCssUnit(e) ? e : e + "px";
15
- }, rt = ({ MapGL: e, map: t, marker: a, mapLoading: r, $autocomplete: o, searchResultList: l, innerInput: u, innerPoint: n, adCode: c }, y) => {
16
- const d = A(), _ = A();
17
- let m;
18
- const L = (S, f, v, g) => {
19
- _.value = v, g && (m = g);
20
- const C = document.createElement("script");
21
- if (C.src = `${location.protocol}//webapi.amap.com/maps?v=1.4.15&key=${S}&callback=onLoad`, f) {
22
- const w = document.createElement("script");
23
- w.innerHTML = `window._AMapSecurityConfig = {
24
- securityJsCode: "${f}",
25
- }`, document.head.appendChild(w);
16
+ }, st = ({ MapGL: e, map: t, marker: a, mapLoading: r, $autocomplete: u, searchResultList: l, innerInput: n, innerPoint: o, adCode: s, addressInfo: v }, b) => {
17
+ const C = S();
18
+ let x;
19
+ const k = (T, g, p, w) => {
20
+ C.value = p, w && (x = w);
21
+ const j = document.createElement("script");
22
+ if (j.src = `${location.protocol}//webapi.amap.com/maps?v=1.4.15&key=${T}&plugin=AMap.CitySearch&callback=onLoad`, g) {
23
+ const d = document.createElement("script");
24
+ d.innerHTML = `window._AMapSecurityConfig = {
25
+ securityJsCode: "${g}",
26
+ }`, document.head.appendChild(d);
26
27
  }
27
- document.head.appendChild(C), window.onLoad = () => {
28
- P();
28
+ document.head.appendChild(j), window.onLoad = () => {
29
+ L();
29
30
  };
30
- }, P = () => {
31
- var S, f;
31
+ }, L = () => {
32
+ var T, g;
32
33
  if (e.value = AMap, !(typeof e.value > "u")) {
33
34
  try {
34
- const v = ((S = _.value) == null ? void 0 : S.mapOpt) ?? {};
35
+ const p = ((T = C.value) == null ? void 0 : T.mapOpt) ?? {};
35
36
  t.value = new AMap.Map("map", {
36
37
  zoom: 15,
37
- ...v
38
+ ...p
38
39
  });
39
40
  } catch {
40
- r.value = !1, D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试");
41
+ r.value = !1, z.error(P("thirdPartyMapErrorRetry"));
41
42
  }
42
43
  AMap.plugin(["AMap.ToolBar"], () => {
43
44
  t.value.addControl(
@@ -47,159 +48,160 @@ const W = (e) => {
47
48
  liteStyle: !0
48
49
  })
49
50
  );
50
- }), i(), (f = _.value) != null && f.clickStream || s(), r.value = !1, m && m();
51
+ }), i(), (g = C.value) != null && g.clickStream || c(), r.value = !1, x && x();
51
52
  }
52
- }, s = () => {
53
- t.value.on("click", (S) => {
54
- a.value && t.value.remove(a.value), n.value = [S.lnglat.getLng(), S.lnglat.getLat()], p(n.value, !0).then(() => {
53
+ }, c = () => {
54
+ t.value.on("click", (T) => {
55
+ a.value && t.value.remove(a.value), o.value = [T.lnglat.getLng(), T.lnglat.getLat()], h(o.value, !0).then(() => {
55
56
  a.value = new AMap.Marker({
56
- position: n.value,
57
- title: u.value
58
- }), t.value.add(a.value), t.value.setCenter(n.value);
57
+ position: o.value,
58
+ title: n.value
59
+ }), t.value.add(a.value), t.value.setCenter(o.value);
59
60
  });
60
61
  });
61
62
  }, i = async () => {
62
- !u.value && !n.value.length && x(), u.value && n.value.length > 0 ? await p(n.value) : u.value ? await b(u.value) : n.value.length > 0 && await p(n.value, !0), u.value && h(u.value, (S, f) => {
63
- if (f && f.length) {
64
- const v = f.find(
65
- (g) => g.value === u.value || g.info.name === u.value
63
+ !n.value && !o.value.length && R(), n.value && o.value.length > 0 ? await h(o.value) : n.value ? await A(n.value) : o.value.length > 0 && await h(o.value, !0), n.value && _(n.value, (T, g) => {
64
+ if (g && g.length) {
65
+ const p = g.find(
66
+ (w) => w.value === n.value || w.info.name === n.value
66
67
  );
67
- v ? d.value = v.info : d.value = {
68
+ p ? v.value = p.info : v.value = {
68
69
  district: "",
69
70
  address: "",
70
- name: u.value
71
+ name: n.value
71
72
  };
72
73
  }
73
74
  }), a.value = new AMap.Marker({
74
- position: n.value,
75
- title: u.value
76
- }), t.value.add(a.value), n.value.length && t.value.setCenter(n.value);
77
- }, p = (S, f = !1) => {
78
- const v = S.join(",");
79
- return new Promise((g, C) => {
75
+ position: o.value,
76
+ title: n.value
77
+ }), t.value.add(a.value), o.value.length && t.value.setCenter(o.value);
78
+ }, h = (T, g = !1) => {
79
+ const p = T.join(",");
80
+ return new Promise((w, j) => {
80
81
  AMap.service("AMap.Geocoder", () => {
81
82
  new AMap.Geocoder({
82
83
  city: "全国"
83
- }).getAddress(v, ($, M) => {
84
- var O, j;
85
- if ($ === "complete" && (M != null && M.regeocode)) {
86
- if (f) {
87
- const { province: B = "", city: z = "", district: I = "", township: De = "" } = M.regeocode.addressComponent;
88
- u.value = M.regeocode.formattedAddress ?? "", d.value = {
89
- district: B + z + I,
90
- address: De,
91
- name: u.value.replace(B, "").replace(z, "").replace(I, "").replace(De, "")
84
+ }).getAddress(p, (f, y) => {
85
+ var M, m;
86
+ if (f === "complete" && (y != null && y.regeocode)) {
87
+ if (g) {
88
+ const { province: O = "", city: N = "", district: B = "", township: ne = "" } = y.regeocode.addressComponent;
89
+ n.value = y.regeocode.formattedAddress ?? "", v.value = {
90
+ district: O + N + B,
91
+ address: ne,
92
+ name: n.value.replace(O, "").replace(N, "").replace(B, "").replace(ne, "")
92
93
  };
93
94
  }
94
- c.value = ((j = (O = M.regeocode) == null ? void 0 : O.addressComponent) == null ? void 0 : j.adcode) ?? "", g(M.regeocode);
95
+ s.value = ((m = (M = y.regeocode) == null ? void 0 : M.addressComponent) == null ? void 0 : m.adcode) ?? "", w(y.regeocode);
95
96
  } else
96
- D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试"), C();
97
+ z.error(P("thirdPartyMapErrorRetry")), j();
97
98
  });
98
99
  });
99
100
  });
100
- }, b = (S) => new Promise((f, v) => {
101
+ }, A = (T) => new Promise((g, p) => {
101
102
  AMap.service("AMap.Geocoder", () => {
102
103
  new AMap.Geocoder({
103
104
  city: "全国"
104
- }).getLocation(S, (C, w) => {
105
- var $, M;
106
- if (C === "complete" && (($ = w.geocodes) != null && $.length)) {
107
- const O = w.geocodes[0].location;
108
- n.value[0] = O.lng, n.value[1] = O.lat, c.value = ((M = w.geocodes[0]) == null ? void 0 : M.adcode) ?? "", f(w.geocodes[0].location);
105
+ }).getLocation(T, (j, d) => {
106
+ var f, y;
107
+ if (j === "complete" && ((f = d.geocodes) != null && f.length)) {
108
+ const M = d.geocodes[0].location;
109
+ o.value[0] = M.lng, o.value[1] = M.lat, s.value = ((y = d.geocodes[0]) == null ? void 0 : y.adcode) ?? "", g(d.geocodes[0].location);
109
110
  } else
110
- D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试"), v();
111
+ z.error(P("thirdPartyMapErrorRetry")), p();
111
112
  });
112
113
  });
113
- }), x = () => {
114
- new AMap.CitySearch().getLocalCity((f, v) => {
115
- if (f === "complete" && v.info === "OK") {
116
- if (v && v.city && v.bounds) {
117
- const g = v.bounds;
118
- t.value.setBounds(g);
114
+ }), R = () => {
115
+ new AMap.CitySearch().getLocalCity((g, p) => {
116
+ if (g === "complete" && p.info === "OK") {
117
+ if (p && p.city && p.bounds) {
118
+ const w = p.bounds;
119
+ t.value.setBounds(w);
119
120
  }
120
121
  } else
121
- D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试");
122
+ z.error(P("thirdPartyMapErrorRetry"));
122
123
  });
123
- }, h = (S, f) => {
124
- if (o.value.activated = !0, !S) {
125
- l.value = [], f([]);
124
+ }, _ = (T, g) => {
125
+ if (u.value.activated = !0, !T) {
126
+ l.value = [], g([]);
126
127
  return;
127
128
  }
128
129
  AMap.plugin("AMap.Autocomplete", function() {
129
- var v = {
130
+ var p = {
130
131
  city: "全国"
131
- }, g = new AMap.Autocomplete(v);
132
- g.search(S, function(C, w) {
133
- if (l.value = [], !w || !w.tips) return f([]);
134
- let $ = w.tips;
135
- if (!$ || !$.length) return f([]);
136
- $ = $.map((M) => {
137
- const { district: O = "", address: j = "", name: B = "", location: z = "" } = M;
132
+ }, w = new AMap.Autocomplete(p);
133
+ w.search(T, function(j, d) {
134
+ if (l.value = [], !d || !d.tips) return g([]);
135
+ let f = d.tips;
136
+ if (!f || !f.length) return g([]);
137
+ f = f.map((y) => {
138
+ const { district: M = "", address: m = "", name: O = "", location: N = "" } = y;
138
139
  return {
139
- value: O + j + B,
140
- point: z,
140
+ value: M + m + O,
141
+ point: N,
141
142
  info: {
142
- district: O,
143
- address: j,
144
- name: B
143
+ district: M,
144
+ address: m,
145
+ name: O
145
146
  }
146
147
  };
147
- }), l.value = $.length > 5 ? $.slice(0, 5) : $, f(l.value, $);
148
+ }), l.value = f.length > 5 ? f.slice(0, 5) : f, g(l.value, f);
148
149
  });
149
150
  });
150
151
  };
151
152
  return {
152
- getLocationByInputSearch: h,
153
- handleSelectAddress: (S) => {
154
- u.value = S.value, d.value = S.info, b(S.value).then((f) => {
155
- n.value = [f.lng, f.lat], a.value && t.value.remove(a.value), a.value = new AMap.Marker({
156
- position: n.value,
157
- title: u.value
153
+ getLocationByInputSearch: _,
154
+ handleSelectAddress: (T) => {
155
+ n.value = T.value, v.value = T.info, A(T.value).then((g) => {
156
+ o.value = [g.lng, g.lat], a.value && t.value.remove(a.value), a.value = new AMap.Marker({
157
+ position: o.value,
158
+ title: n.value
158
159
  // 鼠标移上去时显示的内容
159
- }), t.value.add(a.value), t.value.setCenter(n.value);
160
+ }), t.value.add(a.value), t.value.setCenter(o.value);
160
161
  });
161
162
  },
162
163
  getLocationParse: async () => {
163
- var S;
164
- if (!l.value.length) return D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试");
165
- if (u.value = l.value[0].value, !((S = l.value[0]) != null && S.point))
166
- return D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试");
167
- n.value = [l.value[0].point.lng, l.value[0].point.lat], d.value = l.value[0].info, await p(n.value), a.value = new AMap.Marker({
168
- position: n.value,
169
- title: u.value
164
+ var T;
165
+ if (!l.value.length) return z.error(P("thirdPartyMapErrorRetry"));
166
+ if (n.value = l.value[0].value, !((T = l.value[0]) != null && T.point))
167
+ return z.error(P("thirdPartyMapErrorRetry"));
168
+ o.value = [l.value[0].point.lng, l.value[0].point.lat], v.value = l.value[0].info, await h(o.value), a.value = new AMap.Marker({
169
+ position: o.value,
170
+ title: n.value
170
171
  // 鼠标移上去时显示的内容
171
- }), t.value.add(a.value), t.value.setCenter(n.value), o.value.activated = !1;
172
+ }), t.value.add(a.value), t.value.setCenter(o.value), u.value.activated = !1;
172
173
  },
173
174
  getMapInfo: () => ({
174
- longitude: n.value[0],
175
- latitude: n.value[1],
176
- adCode: c.value,
177
- address: u.value,
178
- addressInfo: d.value
175
+ longitude: o.value[0],
176
+ latitude: o.value[1],
177
+ adCode: s.value,
178
+ address: n.value,
179
+ addressInfo: v.value
179
180
  }),
180
- loadJavascript: L
181
+ loadJavascript: k
181
182
  };
182
- }, nt = "v1", qt = at(`/api/tool/map/${nt}`), Yt = at(`/api/system-config/${nt}`), Xt = qt.get("/regeo"), Qt = Yt.get("/platform/map/list"), je = async (e) => {
183
- var l, u, n, c, y;
184
- let t = null, [a, r] = await Qt().run();
185
- if (a)
186
- return [a, t];
187
- const o = r.filter((d) => d.enable) || [];
188
- if ((o == null ? void 0 : o.length) == 0) return [null, t];
189
- if ((o == null ? void 0 : o.length) > 1) {
190
- let d = [];
191
- e == "baidu" ? d = o.filter((_) => _.serviceProvider == 1) : d = o.filter((_) => _.serviceProvider == 2), t = {
183
+ }, dt = "v1", ua = ct(`/api/tool/map/${dt}`), ia = ct(`/api/system-config/${dt}`), ca = ua.get("/regeo"), sa = ia.get("/platform/map/list"), Ge = async (e) => {
184
+ var n, o, s, v, b;
185
+ const t = ["", "baidu", "gaode", "google"];
186
+ let a = null, [r, u] = await sa().run();
187
+ if (r)
188
+ return [r, a];
189
+ const l = u.filter((C) => C.enable) || [];
190
+ if ((l == null ? void 0 : l.length) == 0) return [null, a];
191
+ if ((l == null ? void 0 : l.length) > 1) {
192
+ const C = l.filter((x) => t[x.serviceProvider] == e);
193
+ a = {
192
194
  mapType: e,
193
- akVal: (l = d[0]) == null ? void 0 : l.akValue,
194
- secretK: (u = d[0]) == null ? void 0 : u.securityKey
195
+ akVal: (n = C[0]) == null ? void 0 : n.akValue,
196
+ secretK: (o = C[0]) == null ? void 0 : o.securityKey
195
197
  };
196
- } else (o == null ? void 0 : o.length) == 1 && (t = {
197
- mapType: ((n = o[0]) == null ? void 0 : n.serviceProvider) == 1 ? "baidu" : "gaode",
198
- akVal: (c = o[0]) == null ? void 0 : c.akValue,
199
- secretK: (y = o[0]) == null ? void 0 : y.securityKey
198
+ } else (l == null ? void 0 : l.length) == 1 && (a = {
199
+ mapType: t[(s = l[0]) == null ? void 0 : s.serviceProvider],
200
+ akVal: (v = l[0]) == null ? void 0 : v.akValue,
201
+ secretK: (b = l[0]) == null ? void 0 : b.securityKey
200
202
  });
201
- return [null, t];
202
- }, ea = { class: "search-input" }, ta = { id: "map" }, aa = /* @__PURE__ */ me({
203
+ return [null, a];
204
+ }, da = { class: "search-input" }, fa = { id: "map" }, va = /* @__PURE__ */ Ae({
203
205
  __name: "gaodeMap",
204
206
  props: {
205
207
  akValue: {},
@@ -212,76 +214,76 @@ const W = (e) => {
212
214
  dev: { type: Boolean }
213
215
  },
214
216
  setup(e, { expose: t }) {
215
- const a = e, r = G(null), o = G(null), l = G(null), u = A(!0), n = A(null), c = A([]), y = be(() => ({
216
- width: a.width ? W(a.width) : "100%",
217
- height: a.height ? W(a.height) : "100%"
218
- })), d = A(""), _ = A([]), m = A(""), { getLocationByInputSearch: L, handleSelectAddress: P, getLocationParse: s, getMapInfo: i, loadJavascript: p } = rt(
217
+ const a = e, r = I(null), u = I(null), l = I(null), n = S(!0), o = S(null), s = S([]), v = Se(() => ({
218
+ width: a.width ? Q(a.width) : "100%",
219
+ height: a.height ? Q(a.height) : "100%"
220
+ })), b = S(""), C = S([]), x = S(""), k = S(), { getLocationByInputSearch: L, handleSelectAddress: c, getLocationParse: i, getMapInfo: h, loadJavascript: A } = st(
219
221
  {
220
222
  MapGL: r,
221
- map: o,
223
+ map: u,
222
224
  marker: l,
223
- mapLoading: u,
224
- $autocomplete: n,
225
- searchResultList: c,
226
- innerInput: d,
227
- innerPoint: _,
228
- adCode: m
225
+ mapLoading: n,
226
+ $autocomplete: o,
227
+ searchResultList: s,
228
+ innerInput: b,
229
+ innerPoint: C,
230
+ adCode: x,
231
+ addressInfo: k
229
232
  }
230
- ), b = async () => {
231
- const x = {
233
+ ), R = async () => {
234
+ const _ = {
232
235
  akValue: a.akValue ?? "",
233
236
  secretKey: a.secretKey ?? ""
234
237
  };
235
238
  {
236
- const [h, E] = await je("gaode");
237
- h && D.error(k("获取地图配置信息失败")), !h && !E && D.error(k("暂未配置地图")), E && (x.akValue || (x.akValue = E.akVal), x.secretKey || (x.secretKey = E.secretK));
239
+ const [$, G] = await Ge("gaode");
240
+ $ && z.error(P("获取地图配置信息失败")), !$ && !G && z.error(P("暂未配置地图")), G && (_.akValue || (_.akValue = G.akVal), _.secretKey || (_.secretKey = G.secretK));
238
241
  }
239
- return x;
242
+ return _;
240
243
  };
241
- return _e(async () => {
242
- a.defaultLongitude && a.defaultLatitude && (_.value = [a.defaultLongitude, a.defaultLatitude]), d.value = a.defaultAddress ?? "";
243
- const { akValue: x, secretKey: h } = await b();
244
- p(x, h);
244
+ return Oe(async () => {
245
+ a.defaultLongitude && a.defaultLatitude && (C.value = [a.defaultLongitude, a.defaultLatitude]), b.value = a.defaultAddress ?? "";
246
+ const { akValue: _, secretKey: $ } = await R();
247
+ A(_, $);
245
248
  }), t({
246
249
  /** 获取经纬度、地址、行政区划编码 */
247
- getMapInfo: i
248
- }), (x, h) => {
249
- const E = Oe, U = Te;
250
- return xe(), we(
250
+ getMapInfo: h
251
+ }), (_, $) => {
252
+ const G = Pe, U = ke;
253
+ return Te(), $e(
251
254
  "div",
252
255
  {
253
256
  class: "das-map",
254
- style: Me(y.value)
257
+ style: je(v.value)
255
258
  },
256
259
  [
257
- Z("div", ea, [
258
- K(Ae(E, {
260
+ W("div", da, [
261
+ Z(de(G, {
259
262
  ref_key: "$autocomplete",
260
- ref: n,
261
- modelValue: d.value,
262
- "onUpdate:modelValue": h[0] || (h[0] = (V) => d.value = V),
263
- modelModifiers: { trim: !0 },
264
- "fetch-suggestions": R(L),
265
- placeholder: R(k)("请输入位置"),
263
+ ref: o,
264
+ modelValue: b.value,
265
+ "onUpdate:modelValue": $[0] || ($[0] = (T) => b.value = T),
266
+ "fetch-suggestions": D(L),
267
+ placeholder: D(P)("请输入位置"),
266
268
  style: { width: "100%" },
267
269
  "trigger-on-focus": !1,
268
- onSelect: R(P),
269
- onKeyup: Se(R(s), ["enter", "native"]),
270
+ onSelect: D(c),
271
+ onKeyup: Le(D(i), ["enter", "native"]),
270
272
  clearable: ""
271
273
  }, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
272
- [R($e)]
274
+ [D(Re)]
273
275
  ])
274
276
  ]),
275
- K(Z(
277
+ Z(W(
276
278
  "div",
277
- ta,
279
+ fa,
278
280
  null,
279
281
  512
280
282
  /* NEED_PATCH */
281
283
  ), [
282
284
  [
283
285
  U,
284
- u.value,
286
+ n.value,
285
287
  void 0,
286
288
  { lock: !0 }
287
289
  ]
@@ -292,136 +294,135 @@ const W = (e) => {
292
294
  );
293
295
  };
294
296
  }
295
- }), Le = (e, t) => {
297
+ }), Be = (e, t) => {
296
298
  const a = e.__vccOpts || e;
297
- for (const [r, o] of t)
298
- a[r] = o;
299
+ for (const [r, u] of t)
300
+ a[r] = u;
299
301
  return a;
300
- }, ra = /* @__PURE__ */ Le(aa, [["__scopeId", "data-v-8350a643"]]), ot = ({ BMap: e, map: t, marker: a, mapLoading: r, $autocomplete: o, searchResultList: l, innerInput: u, innerPoint: n, adCode: c }, y) => {
301
- const d = A(), _ = A();
302
- let m;
303
- const L = (f, v, g) => {
304
- _.value = v, g && (m = g);
305
- const C = document.createElement("script");
306
- C.src = `${location.protocol}//api.map.baidu.com/getscript?type=webgl&v=3.0&ak=${f}&services=&t=20200109192240`, C.onload = () => {
307
- P();
308
- }, document.body.append(C);
309
- }, P = () => {
310
- var v, g;
302
+ }, ga = /* @__PURE__ */ Be(va, [["__scopeId", "data-v-95b9bcca"]]), ft = ({ BMap: e, map: t, marker: a, mapLoading: r, $autocomplete: u, searchResultList: l, innerInput: n, innerPoint: o, adCode: s, addressInfo: v }, b) => {
303
+ const C = S();
304
+ let x;
305
+ const k = (g, p, w) => {
306
+ C.value = p, w && (x = w);
307
+ const j = document.createElement("script");
308
+ j.src = `${location.protocol}//api.map.baidu.com/getscript?type=webgl&v=3.0&ak=${g}&services=&t=20200109192240`, j.onload = () => {
309
+ L();
310
+ }, document.body.append(j);
311
+ }, L = () => {
312
+ var p, w;
311
313
  e.value = window.BMapGL;
312
314
  try {
313
- t.value = new e.value.Map("map", ((v = _.value) == null ? void 0 : v.mapOpt) ?? {});
315
+ t.value = new e.value.Map("map", ((p = C.value) == null ? void 0 : p.mapOpt) ?? {});
314
316
  } catch {
315
- r.value = !1, D.error(k("第三方地图配置参数错误或地址信息无效,请检查后再重试"));
317
+ r.value = !1, z.error(P("thirdPartyMapErrorRetry"));
316
318
  }
317
- const f = new e.value.NavigationControl({
319
+ const g = new e.value.NavigationControl({
318
320
  // @ts-ignore
319
321
  anchor: BMAP_ANCHOR_BOTTOM_RIGHT,
320
322
  // @ts-ignore
321
323
  type: BMAP_NAVIGATION_CONTROL_ZOOM
322
324
  });
323
- t.value.addControl(f), t.value.enableScrollWheelZoom(!0), i(), (g = _.value) != null && g.clickStream || p(), r.value = !1, m && m();
324
- }, s = (f) => new Promise((v, g) => {
325
- new e.value.Geocoder().getPoint(f, (w) => {
326
- !w || JSON.stringify(w) == "{}" ? (D.error(k("第三方地图配置参数错误或地址信息无效,请检查后再重试")), g()) : (n.value[0] = w.lng, n.value[1] = w.lat, v(w));
325
+ t.value.addControl(g), t.value.enableScrollWheelZoom(!0), i(), (w = C.value) != null && w.clickStream || h(), r.value = !1, x && x();
326
+ }, c = (g) => new Promise((p, w) => {
327
+ new e.value.Geocoder().getPoint(g, (d) => {
328
+ !d || JSON.stringify(d) == "{}" ? (z.error(P("thirdPartyMapErrorRetry")), w()) : (o.value[0] = d.lng, o.value[1] = d.lat, p(d));
327
329
  });
328
330
  }), i = async () => {
329
- !u.value && !n.value.length && x(), u.value && n.value.length > 0 ? await b(n.value[0], n.value[1]) : u.value ? await s(u.value) : n.value.length > 0 && await b(n.value[0], n.value[1], !0), u.value && h(u.value, (f, v) => {
330
- if (v && v.length) {
331
- const g = v.find(
332
- (C) => C.value === u.value || C.info.name === u.value
331
+ !n.value && !o.value.length && R(), n.value && o.value.length > 0 ? await A(o.value[0], o.value[1]) : n.value ? await c(n.value) : o.value.length > 0 && await A(o.value[0], o.value[1], !0), n.value && _(n.value, (g, p) => {
332
+ if (p && p.length) {
333
+ const w = p.find(
334
+ (j) => j.value === n.value || j.info.name === n.value
333
335
  );
334
- g ? d.value = g.info : d.value = {
336
+ w ? v.value = w.info : v.value = {
335
337
  province: "",
336
338
  city: "",
337
339
  address: "",
338
- name: u.value
340
+ name: n.value
339
341
  };
340
342
  }
341
343
  });
342
- }, p = () => {
343
- t.value.addEventListener("click", (f) => {
344
+ }, h = () => {
345
+ t.value.addEventListener("click", (g) => {
344
346
  a.value && t.value.clearOverlays();
345
- const v = f.latlng.lng, g = f.latlng.lat;
346
- n.value = [v, g], b(v, g, !0);
347
+ const p = g.latlng.lng, w = g.latlng.lat;
348
+ o.value = [p, w], A(p, w, !0);
347
349
  });
348
- }, b = (f, v, g = !1, C = "default") => new Promise((w, $) => {
349
- const M = new e.value.Geocoder(), O = new e.value.Point(f, v);
350
- M.getLocation(O, (j) => {
351
- if (g) {
352
- u.value = j.address;
353
- const { province: B = "", city: z = "", district: I = "" } = j.addressComponents;
354
- d.value = {
355
- province: B,
356
- city: z,
357
- address: z + I,
358
- name: j.address.replace(B, "").replace(z, "").replace(I, "")
350
+ }, A = (g, p, w = !1, j = "default") => new Promise((d, f) => {
351
+ const y = new e.value.Geocoder(), M = new e.value.Point(g, p);
352
+ y.getLocation(M, (m) => {
353
+ if (w) {
354
+ n.value = m.address;
355
+ const { province: O = "", city: N = "", district: B = "" } = m.addressComponents;
356
+ v.value = {
357
+ province: O,
358
+ city: N,
359
+ address: N + B,
360
+ name: m.address.replace(O, "").replace(N, "").replace(B, "")
359
361
  };
360
362
  }
361
- j && j.address ? (C == "default" && (n.value[0] = j.point.lng, n.value[1] = j.point.lat, a.value && t.value.clearOverlays(), a.value = new e.value.Marker(O, { title: u.value }), t.value.addOverlay(a.value), t.value.centerAndZoom(O, 16)), V(f, v), w(j.address)) : (D.error(k("第三方地图配置参数错误或地址信息无效,请检查后再重试")), $());
363
+ m && m.address ? (j == "default" && (o.value[0] = m.point.lng, o.value[1] = m.point.lat, a.value && t.value.clearOverlays(), a.value = new e.value.Marker(M, { title: n.value }), t.value.addOverlay(a.value), t.value.centerAndZoom(M, 16)), U(g, p), d(m.address)) : (z.error(P("thirdPartyMapErrorRetry")), f());
362
364
  });
363
- }), x = () => {
364
- new e.value.LocalCity().get((v) => {
365
- const g = v.center;
366
- if (!v.center) return D.error(k("第三方地图配置参数错误或地址信息无效,请检查后再重试"));
365
+ }), R = () => {
366
+ new e.value.LocalCity().get((p) => {
367
+ const w = p.center;
368
+ if (!p.center) return z.error(P("thirdPartyMapErrorRetry"));
367
369
  a.value && t.value.clearOverlays();
368
- const C = new e.value.Point(g.lng, g.lat);
369
- t.value.centerAndZoom(C, 13);
370
+ const j = new e.value.Point(w.lng, w.lat);
371
+ t.value.centerAndZoom(j, 13);
370
372
  });
371
- }, h = (f, v) => {
372
- if (o.value.activated = !0, l.value = [], !f) {
373
- v([]);
373
+ }, _ = (g, p) => {
374
+ if (u.value.activated = !0, l.value = [], !g) {
375
+ p([]);
374
376
  return;
375
377
  }
376
378
  new e.value.LocalSearch(t.value, {
377
- onSearchComplete: (C) => {
378
- let w = [];
379
- for (let $ = 0; $ < C.getCurrentNumPois(); $++)
380
- w.push(C.getPoi($));
381
- if (!w.length) return v([]);
382
- w = w.map(($) => {
383
- const { address: M = "", title: O = "", province: j = "", city: B = "", point: z = {} } = $;
379
+ onSearchComplete: (j) => {
380
+ let d = [];
381
+ for (let f = 0; f < j.getCurrentNumPois(); f++)
382
+ d.push(j.getPoi(f));
383
+ if (!d.length) return p([]);
384
+ d = d.map((f) => {
385
+ const { address: y = "", title: M = "", province: m = "", city: O = "", point: N = {} } = f;
384
386
  return {
385
- value: M == O ? M : M + O,
386
- point: z,
387
+ value: y == M ? y : y + M,
388
+ point: N,
387
389
  info: {
388
- province: j,
389
- city: B,
390
- address: M,
391
- name: O
390
+ province: m,
391
+ city: O,
392
+ address: y,
393
+ name: M
392
394
  }
393
395
  };
394
- }), l.value = w.length > 5 ? w.slice(0, 5) : w, v(l.value, w);
396
+ }), l.value = d.length > 5 ? d.slice(0, 5) : d, p(l.value, d);
395
397
  }
396
- }).search(f);
397
- }, E = (f) => {
398
- var v, g;
399
- u.value = f.value, d.value = f.info, b((v = f.point) == null ? void 0 : v.lng, (g = f.point) == null ? void 0 : g.lat);
400
- }, U = () => {
401
- var f;
402
- if (!l.value.length)
403
- return D.error(k("第三方地图配置参数错误或地址信息无效,请检查后再重试"));
404
- if (u.value = l.value[0].value, d.value = l.value[0].info, !((f = l.value[0]) != null && f.point))
405
- return D.error(k("第三方地图配置参数错误或地址信息无效,请检查后再重试"));
406
- n.value = [l.value[0].point.lng, l.value[0].point.lat], b(n.value[0], n.value[1]), o.value.activated = !1;
407
- }, V = async (f, v) => {
408
- const [g, C] = await Xt().run({ longitude: f, latitude: v });
409
- g || (c.value = C.areaCode);
398
+ }).search(g);
399
+ }, $ = (g) => {
400
+ var p, w;
401
+ n.value = g.value, v.value = g.info, A((p = g.point) == null ? void 0 : p.lng, (w = g.point) == null ? void 0 : w.lat);
402
+ }, G = () => {
403
+ var g;
404
+ if (!l.value.length) return z.error(P("thirdPartyMapErrorRetry"));
405
+ if (n.value = l.value[0].value, v.value = l.value[0].info, !((g = l.value[0]) != null && g.point))
406
+ return z.error(P("thirdPartyMapErrorRetry"));
407
+ o.value = [l.value[0].point.lng, l.value[0].point.lat], A(o.value[0], o.value[1]), u.value.activated = !1;
408
+ }, U = async (g, p) => {
409
+ const [w, j] = await ca().run({ longitude: g, latitude: p });
410
+ w || (s.value = j.areaCode);
410
411
  };
411
412
  return {
412
- getLocationByInputSearch: h,
413
- handleSelectAddress: E,
414
- getLocationParse: U,
413
+ getLocationByInputSearch: _,
414
+ handleSelectAddress: $,
415
+ getLocationParse: G,
415
416
  getMapInfo: () => ({
416
- longitude: n.value[0],
417
- latitude: n.value[1],
418
- adCode: c.value,
419
- address: u.value,
420
- addressInfo: d.value
417
+ longitude: o.value[0],
418
+ latitude: o.value[1],
419
+ adCode: s.value,
420
+ address: n.value,
421
+ addressInfo: v.value
421
422
  }),
422
- loadJavascript: L
423
+ loadJavascript: k
423
424
  };
424
- }, na = { class: "search-input" }, oa = { id: "map" }, ua = /* @__PURE__ */ me({
425
+ }, pa = { class: "search-input" }, ha = { id: "map" }, ya = /* @__PURE__ */ Ae({
425
426
  __name: "baiduMap",
426
427
  props: {
427
428
  akValue: {},
@@ -434,70 +435,70 @@ const W = (e) => {
434
435
  dev: { type: Boolean }
435
436
  },
436
437
  setup(e, { expose: t }) {
437
- const a = e, r = G(null), o = G(null), l = G(null), u = A(!0), n = A(null), c = A([]), y = be(() => ({
438
- width: a.width ? W(a.width) : "100%",
439
- height: a.height ? W(a.height) : "100%"
440
- })), d = A(""), _ = A([]), m = A(""), { getLocationByInputSearch: L, handleSelectAddress: P, getLocationParse: s, getMapInfo: i, loadJavascript: p } = ot(
438
+ const a = e, r = I(null), u = I(null), l = I(null), n = S(!0), o = S(null), s = S([]), v = Se(() => ({
439
+ width: a.width ? Q(a.width) : "100%",
440
+ height: a.height ? Q(a.height) : "100%"
441
+ })), b = S(""), C = S([]), x = S(""), k = S(), { getLocationByInputSearch: L, handleSelectAddress: c, getLocationParse: i, getMapInfo: h, loadJavascript: A } = ft(
441
442
  {
442
443
  BMap: r,
443
- map: o,
444
+ map: u,
444
445
  marker: l,
445
- mapLoading: u,
446
- $autocomplete: n,
447
- searchResultList: c,
448
- innerInput: d,
449
- innerPoint: _,
450
- adCode: m
446
+ mapLoading: n,
447
+ $autocomplete: o,
448
+ searchResultList: s,
449
+ innerInput: b,
450
+ innerPoint: C,
451
+ adCode: x,
452
+ addressInfo: k
451
453
  }
452
- ), b = async () => {
454
+ ), R = async () => {
453
455
  if (a.akValue) return a.akValue;
454
- const [x, h] = await je("baidu");
455
- return x ? (D.error(k("获取地图配置信息失败")), "") : !x && !h ? (D.error(k("暂未配置地图")), "") : h.akVal;
456
+ const [_, $] = await Ge("baidu");
457
+ return _ ? (z.error(P("获取地图配置信息失败")), "") : !_ && !$ ? (z.error(P("暂未配置地图")), "") : $.akVal;
456
458
  };
457
- return _e(async () => {
458
- a.defaultLongitude && a.defaultLatitude && (_.value = [a.defaultLongitude, a.defaultLatitude]), d.value = a.defaultAddress ?? "";
459
- const x = await b();
460
- p(x);
459
+ return Oe(async () => {
460
+ a.defaultLongitude && a.defaultLatitude && (C.value = [a.defaultLongitude, a.defaultLatitude]), b.value = a.defaultAddress ?? "";
461
+ const _ = await R();
462
+ A(_);
461
463
  }), t({
462
464
  // 获取经纬度、地址、行政区划信息
463
- getMapInfo: i
464
- }), (x, h) => {
465
- const E = Oe, U = Te;
466
- return xe(), we(
465
+ getMapInfo: h
466
+ }), (_, $) => {
467
+ const G = Pe, U = ke;
468
+ return Te(), $e(
467
469
  "div",
468
470
  {
469
471
  class: "das-map",
470
- style: Me(y.value)
472
+ style: je(v.value)
471
473
  },
472
474
  [
473
- Z("div", na, [
474
- K(Ae(E, {
475
+ W("div", pa, [
476
+ Z(de(G, {
475
477
  ref_key: "$autocomplete",
476
- ref: n,
477
- modelValue: d.value,
478
- "onUpdate:modelValue": h[0] || (h[0] = (V) => d.value = V),
479
- modelModifiers: { trim: !0 },
480
- "fetch-suggestions": R(L),
481
- placeholder: R(k)("请输入位置"),
478
+ ref: o,
479
+ modelValue: b.value,
480
+ "onUpdate:modelValue": $[0] || ($[0] = (T) => b.value = T),
481
+ "fetch-suggestions": D(L),
482
+ placeholder: D(P)("请输入位置"),
482
483
  style: { width: "100%" },
483
484
  "trigger-on-focus": !1,
484
- onSelect: R(P),
485
- onKeyup: Se(R(s), ["enter", "native"]),
485
+ onSelect: D(c),
486
+ onKeyup: Le(D(i), ["enter", "native"]),
486
487
  clearable: ""
487
488
  }, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
488
- [R($e)]
489
+ [D(Re)]
489
490
  ])
490
491
  ]),
491
- K(Z(
492
+ Z(W(
492
493
  "div",
493
- oa,
494
+ ha,
494
495
  null,
495
496
  512
496
497
  /* NEED_PATCH */
497
498
  ), [
498
499
  [
499
500
  U,
500
- u.value,
501
+ n.value,
501
502
  void 0,
502
503
  { lock: !0 }
503
504
  ]
@@ -508,105 +509,105 @@ const W = (e) => {
508
509
  );
509
510
  };
510
511
  }
511
- }), la = /* @__PURE__ */ Le(ua, [["__scopeId", "data-v-54b081bc"]]);
512
- function ia() {
512
+ }), ma = /* @__PURE__ */ Be(ya, [["__scopeId", "data-v-5444de43"]]);
513
+ function ba() {
513
514
  this.__data__ = [], this.size = 0;
514
515
  }
515
- function le(e, t) {
516
+ function ge(e, t) {
516
517
  return e === t || e !== e && t !== t;
517
518
  }
518
- function ie(e, t) {
519
+ function pe(e, t) {
519
520
  for (var a = e.length; a--; )
520
- if (le(e[a][0], t))
521
+ if (ge(e[a][0], t))
521
522
  return a;
522
523
  return -1;
523
524
  }
524
- var sa = Array.prototype, ca = sa.splice;
525
- function da(e) {
526
- var t = this.__data__, a = ie(t, e);
525
+ var _a = Array.prototype, wa = _a.splice;
526
+ function xa(e) {
527
+ var t = this.__data__, a = pe(t, e);
527
528
  if (a < 0)
528
529
  return !1;
529
530
  var r = t.length - 1;
530
- return a == r ? t.pop() : ca.call(t, a, 1), --this.size, !0;
531
+ return a == r ? t.pop() : wa.call(t, a, 1), --this.size, !0;
531
532
  }
532
- function fa(e) {
533
- var t = this.__data__, a = ie(t, e);
533
+ function Ma(e) {
534
+ var t = this.__data__, a = pe(t, e);
534
535
  return a < 0 ? void 0 : t[a][1];
535
536
  }
536
- function va(e) {
537
- return ie(this.__data__, e) > -1;
537
+ function Ca(e) {
538
+ return pe(this.__data__, e) > -1;
538
539
  }
539
- function pa(e, t) {
540
- var a = this.__data__, r = ie(a, e);
540
+ function Aa(e, t) {
541
+ var a = this.__data__, r = pe(a, e);
541
542
  return r < 0 ? (++this.size, a.push([e, t])) : a[r][1] = t, this;
542
543
  }
543
- function N(e) {
544
+ function H(e) {
544
545
  var t = -1, a = e == null ? 0 : e.length;
545
546
  for (this.clear(); ++t < a; ) {
546
547
  var r = e[t];
547
548
  this.set(r[0], r[1]);
548
549
  }
549
550
  }
550
- N.prototype.clear = ia;
551
- N.prototype.delete = da;
552
- N.prototype.get = fa;
553
- N.prototype.has = va;
554
- N.prototype.set = pa;
555
- function ga() {
556
- this.__data__ = new N(), this.size = 0;
551
+ H.prototype.clear = ba;
552
+ H.prototype.delete = xa;
553
+ H.prototype.get = Ma;
554
+ H.prototype.has = Ca;
555
+ H.prototype.set = Aa;
556
+ function Sa() {
557
+ this.__data__ = new H(), this.size = 0;
557
558
  }
558
- function ha(e) {
559
+ function Oa(e) {
559
560
  var t = this.__data__, a = t.delete(e);
560
561
  return this.size = t.size, a;
561
562
  }
562
- function ya(e) {
563
+ function Ta(e) {
563
564
  return this.__data__.get(e);
564
565
  }
565
- function ma(e) {
566
+ function $a(e) {
566
567
  return this.__data__.has(e);
567
568
  }
568
- var ut = typeof global == "object" && global && global.Object === Object && global, ba = typeof self == "object" && self && self.Object === Object && self, Y = ut || ba || Function("return this")(), q = Y.Symbol, lt = Object.prototype, _a = lt.hasOwnProperty, xa = lt.toString, te = q ? q.toStringTag : void 0;
569
- function wa(e) {
570
- var t = _a.call(e, te), a = e[te];
569
+ var vt = typeof global == "object" && global && global.Object === Object && global, ja = typeof self == "object" && self && self.Object === Object && self, te = vt || ja || Function("return this")(), ee = te.Symbol, gt = Object.prototype, La = gt.hasOwnProperty, Ea = gt.toString, ue = ee ? ee.toStringTag : void 0;
570
+ function Pa(e) {
571
+ var t = La.call(e, ue), a = e[ue];
571
572
  try {
572
- e[te] = void 0;
573
+ e[ue] = void 0;
573
574
  var r = !0;
574
575
  } catch {
575
576
  }
576
- var o = xa.call(e);
577
- return r && (t ? e[te] = a : delete e[te]), o;
577
+ var u = Ea.call(e);
578
+ return r && (t ? e[ue] = a : delete e[ue]), u;
578
579
  }
579
- var Ma = Object.prototype, Aa = Ma.toString;
580
- function Sa(e) {
581
- return Aa.call(e);
580
+ var ka = Object.prototype, Ra = ka.toString;
581
+ function Ga(e) {
582
+ return Ra.call(e);
582
583
  }
583
- var Ca = "[object Null]", Oa = "[object Undefined]", Ue = q ? q.toStringTag : void 0;
584
- function ne(e) {
585
- return e == null ? e === void 0 ? Oa : Ca : Ue && Ue in Object(e) ? wa(e) : Sa(e);
584
+ var Ba = "[object Null]", Da = "[object Undefined]", Fe = ee ? ee.toStringTag : void 0;
585
+ function se(e) {
586
+ return e == null ? e === void 0 ? Da : Ba : Fe && Fe in Object(e) ? Pa(e) : Ga(e);
586
587
  }
587
- function H(e) {
588
+ function Y(e) {
588
589
  var t = typeof e;
589
590
  return e != null && (t == "object" || t == "function");
590
591
  }
591
- var Ta = "[object AsyncFunction]", $a = "[object Function]", ja = "[object GeneratorFunction]", La = "[object Proxy]";
592
- function Ee(e) {
593
- if (!H(e))
592
+ var za = "[object AsyncFunction]", Na = "[object Function]", Ua = "[object GeneratorFunction]", Va = "[object Proxy]";
593
+ function De(e) {
594
+ if (!Y(e))
594
595
  return !1;
595
- var t = ne(e);
596
- return t == $a || t == ja || t == Ta || t == La;
596
+ var t = se(e);
597
+ return t == Na || t == Ua || t == za || t == Va;
597
598
  }
598
- var de = Y["__core-js_shared__"], Ve = function() {
599
- var e = /[^.]+$/.exec(de && de.keys && de.keys.IE_PROTO || "");
599
+ var me = te["__core-js_shared__"], Ie = function() {
600
+ var e = /[^.]+$/.exec(me && me.keys && me.keys.IE_PROTO || "");
600
601
  return e ? "Symbol(src)_1." + e : "";
601
602
  }();
602
- function Ea(e) {
603
- return !!Ve && Ve in e;
603
+ function Ka(e) {
604
+ return !!Ie && Ie in e;
604
605
  }
605
- var Pa = Function.prototype, Ra = Pa.toString;
606
- function Ia(e) {
606
+ var Fa = Function.prototype, Ia = Fa.toString;
607
+ function Ha(e) {
607
608
  if (e != null) {
608
609
  try {
609
- return Ra.call(e);
610
+ return Ia.call(e);
610
611
  } catch {
611
612
  }
612
613
  try {
@@ -616,335 +617,335 @@ function Ia(e) {
616
617
  }
617
618
  return "";
618
619
  }
619
- var Da = /[\\^$.*+?()[\]{}|]/g, Ua = /^\[object .+?Constructor\]$/, Va = Function.prototype, ka = Object.prototype, Ba = Va.toString, za = ka.hasOwnProperty, Ga = RegExp(
620
- "^" + Ba.call(za).replace(Da, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
620
+ var Ja = /[\\^$.*+?()[\]{}|]/g, Za = /^\[object .+?Constructor\]$/, Wa = Function.prototype, qa = Object.prototype, Ya = Wa.toString, Xa = qa.hasOwnProperty, Qa = RegExp(
621
+ "^" + Ya.call(Xa).replace(Ja, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
621
622
  );
622
- function Na(e) {
623
- if (!H(e) || Ea(e))
623
+ function eo(e) {
624
+ if (!Y(e) || Ka(e))
624
625
  return !1;
625
- var t = Ee(e) ? Ga : Ua;
626
- return t.test(Ia(e));
626
+ var t = De(e) ? Qa : Za;
627
+ return t.test(Ha(e));
627
628
  }
628
- function Ka(e, t) {
629
+ function to(e, t) {
629
630
  return e == null ? void 0 : e[t];
630
631
  }
631
- function Pe(e, t) {
632
- var a = Ka(e, t);
633
- return Na(a) ? a : void 0;
632
+ function ze(e, t) {
633
+ var a = to(e, t);
634
+ return eo(a) ? a : void 0;
634
635
  }
635
- var it = Pe(Y, "Map"), re = Pe(Object, "create");
636
- function Fa() {
637
- this.__data__ = re ? re(null) : {}, this.size = 0;
636
+ var pt = ze(te, "Map"), ce = ze(Object, "create");
637
+ function ao() {
638
+ this.__data__ = ce ? ce(null) : {}, this.size = 0;
638
639
  }
639
- function Ha(e) {
640
+ function oo(e) {
640
641
  var t = this.has(e) && delete this.__data__[e];
641
642
  return this.size -= t ? 1 : 0, t;
642
643
  }
643
- var Ja = "__lodash_hash_undefined__", Za = Object.prototype, Wa = Za.hasOwnProperty;
644
- function qa(e) {
644
+ var ro = "__lodash_hash_undefined__", no = Object.prototype, lo = no.hasOwnProperty;
645
+ function uo(e) {
645
646
  var t = this.__data__;
646
- if (re) {
647
+ if (ce) {
647
648
  var a = t[e];
648
- return a === Ja ? void 0 : a;
649
+ return a === ro ? void 0 : a;
649
650
  }
650
- return Wa.call(t, e) ? t[e] : void 0;
651
+ return lo.call(t, e) ? t[e] : void 0;
651
652
  }
652
- var Ya = Object.prototype, Xa = Ya.hasOwnProperty;
653
- function Qa(e) {
653
+ var io = Object.prototype, co = io.hasOwnProperty;
654
+ function so(e) {
654
655
  var t = this.__data__;
655
- return re ? t[e] !== void 0 : Xa.call(t, e);
656
+ return ce ? t[e] !== void 0 : co.call(t, e);
656
657
  }
657
- var er = "__lodash_hash_undefined__";
658
- function tr(e, t) {
658
+ var fo = "__lodash_hash_undefined__";
659
+ function vo(e, t) {
659
660
  var a = this.__data__;
660
- return this.size += this.has(e) ? 0 : 1, a[e] = re && t === void 0 ? er : t, this;
661
+ return this.size += this.has(e) ? 0 : 1, a[e] = ce && t === void 0 ? fo : t, this;
661
662
  }
662
- function F(e) {
663
+ function q(e) {
663
664
  var t = -1, a = e == null ? 0 : e.length;
664
665
  for (this.clear(); ++t < a; ) {
665
666
  var r = e[t];
666
667
  this.set(r[0], r[1]);
667
668
  }
668
669
  }
669
- F.prototype.clear = Fa;
670
- F.prototype.delete = Ha;
671
- F.prototype.get = qa;
672
- F.prototype.has = Qa;
673
- F.prototype.set = tr;
674
- function ar() {
670
+ q.prototype.clear = ao;
671
+ q.prototype.delete = oo;
672
+ q.prototype.get = uo;
673
+ q.prototype.has = so;
674
+ q.prototype.set = vo;
675
+ function go() {
675
676
  this.size = 0, this.__data__ = {
676
- hash: new F(),
677
- map: new (it || N)(),
678
- string: new F()
677
+ hash: new q(),
678
+ map: new (pt || H)(),
679
+ string: new q()
679
680
  };
680
681
  }
681
- function rr(e) {
682
+ function po(e) {
682
683
  var t = typeof e;
683
684
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
684
685
  }
685
- function se(e, t) {
686
+ function he(e, t) {
686
687
  var a = e.__data__;
687
- return rr(t) ? a[typeof t == "string" ? "string" : "hash"] : a.map;
688
+ return po(t) ? a[typeof t == "string" ? "string" : "hash"] : a.map;
688
689
  }
689
- function nr(e) {
690
- var t = se(this, e).delete(e);
690
+ function ho(e) {
691
+ var t = he(this, e).delete(e);
691
692
  return this.size -= t ? 1 : 0, t;
692
693
  }
693
- function or(e) {
694
- return se(this, e).get(e);
694
+ function yo(e) {
695
+ return he(this, e).get(e);
695
696
  }
696
- function ur(e) {
697
- return se(this, e).has(e);
697
+ function mo(e) {
698
+ return he(this, e).has(e);
698
699
  }
699
- function lr(e, t) {
700
- var a = se(this, e), r = a.size;
700
+ function bo(e, t) {
701
+ var a = he(this, e), r = a.size;
701
702
  return a.set(e, t), this.size += a.size == r ? 0 : 1, this;
702
703
  }
703
- function X(e) {
704
+ function ae(e) {
704
705
  var t = -1, a = e == null ? 0 : e.length;
705
706
  for (this.clear(); ++t < a; ) {
706
707
  var r = e[t];
707
708
  this.set(r[0], r[1]);
708
709
  }
709
710
  }
710
- X.prototype.clear = ar;
711
- X.prototype.delete = nr;
712
- X.prototype.get = or;
713
- X.prototype.has = ur;
714
- X.prototype.set = lr;
715
- var ir = 200;
716
- function sr(e, t) {
711
+ ae.prototype.clear = go;
712
+ ae.prototype.delete = ho;
713
+ ae.prototype.get = yo;
714
+ ae.prototype.has = mo;
715
+ ae.prototype.set = bo;
716
+ var _o = 200;
717
+ function wo(e, t) {
717
718
  var a = this.__data__;
718
- if (a instanceof N) {
719
+ if (a instanceof H) {
719
720
  var r = a.__data__;
720
- if (!it || r.length < ir - 1)
721
+ if (!pt || r.length < _o - 1)
721
722
  return r.push([e, t]), this.size = ++a.size, this;
722
- a = this.__data__ = new X(r);
723
+ a = this.__data__ = new ae(r);
723
724
  }
724
725
  return a.set(e, t), this.size = a.size, this;
725
726
  }
726
- function Q(e) {
727
- var t = this.__data__ = new N(e);
727
+ function oe(e) {
728
+ var t = this.__data__ = new H(e);
728
729
  this.size = t.size;
729
730
  }
730
- Q.prototype.clear = ga;
731
- Q.prototype.delete = ha;
732
- Q.prototype.get = ya;
733
- Q.prototype.has = ma;
734
- Q.prototype.set = sr;
735
- var oe = function() {
731
+ oe.prototype.clear = Sa;
732
+ oe.prototype.delete = Oa;
733
+ oe.prototype.get = Ta;
734
+ oe.prototype.has = $a;
735
+ oe.prototype.set = wo;
736
+ var fe = function() {
736
737
  try {
737
- var e = Pe(Object, "defineProperty");
738
+ var e = ze(Object, "defineProperty");
738
739
  return e({}, "", {}), e;
739
740
  } catch {
740
741
  }
741
742
  }();
742
- function Re(e, t, a) {
743
- t == "__proto__" && oe ? oe(e, t, {
743
+ function Ne(e, t, a) {
744
+ t == "__proto__" && fe ? fe(e, t, {
744
745
  configurable: !0,
745
746
  enumerable: !0,
746
747
  value: a,
747
748
  writable: !0
748
749
  }) : e[t] = a;
749
750
  }
750
- function ve(e, t, a) {
751
- (a !== void 0 && !le(e[t], a) || a === void 0 && !(t in e)) && Re(e, t, a);
751
+ function _e(e, t, a) {
752
+ (a !== void 0 && !ge(e[t], a) || a === void 0 && !(t in e)) && Ne(e, t, a);
752
753
  }
753
- function cr(e) {
754
+ function xo(e) {
754
755
  return function(t, a, r) {
755
- for (var o = -1, l = Object(t), u = r(t), n = u.length; n--; ) {
756
- var c = u[++o];
757
- if (a(l[c], c, l) === !1)
756
+ for (var u = -1, l = Object(t), n = r(t), o = n.length; o--; ) {
757
+ var s = n[++u];
758
+ if (a(l[s], s, l) === !1)
758
759
  break;
759
760
  }
760
761
  return t;
761
762
  };
762
763
  }
763
- var dr = cr(), st = typeof exports == "object" && exports && !exports.nodeType && exports, ke = st && typeof module == "object" && module && !module.nodeType && module, fr = ke && ke.exports === st, Be = fr ? Y.Buffer : void 0;
764
- Be && Be.allocUnsafe;
765
- function vr(e, t) {
764
+ var Mo = xo(), ht = typeof exports == "object" && exports && !exports.nodeType && exports, He = ht && typeof module == "object" && module && !module.nodeType && module, Co = He && He.exports === ht, Je = Co ? te.Buffer : void 0;
765
+ Je && Je.allocUnsafe;
766
+ function Ao(e, t) {
766
767
  return e.slice();
767
768
  }
768
- var ze = Y.Uint8Array;
769
- function pr(e) {
769
+ var Ze = te.Uint8Array;
770
+ function So(e) {
770
771
  var t = new e.constructor(e.byteLength);
771
- return new ze(t).set(new ze(e)), t;
772
+ return new Ze(t).set(new Ze(e)), t;
772
773
  }
773
- function gr(e, t) {
774
- var a = pr(e.buffer);
774
+ function Oo(e, t) {
775
+ var a = So(e.buffer);
775
776
  return new e.constructor(a, e.byteOffset, e.length);
776
777
  }
777
- function hr(e, t) {
778
+ function To(e, t) {
778
779
  var a = -1, r = e.length;
779
780
  for (t || (t = Array(r)); ++a < r; )
780
781
  t[a] = e[a];
781
782
  return t;
782
783
  }
783
- var Ge = Object.create, yr = /* @__PURE__ */ function() {
784
+ var We = Object.create, $o = /* @__PURE__ */ function() {
784
785
  function e() {
785
786
  }
786
787
  return function(t) {
787
- if (!H(t))
788
+ if (!Y(t))
788
789
  return {};
789
- if (Ge)
790
- return Ge(t);
790
+ if (We)
791
+ return We(t);
791
792
  e.prototype = t;
792
793
  var a = new e();
793
794
  return e.prototype = void 0, a;
794
795
  };
795
796
  }();
796
- function mr(e, t) {
797
+ function jo(e, t) {
797
798
  return function(a) {
798
799
  return e(t(a));
799
800
  };
800
801
  }
801
- var ct = mr(Object.getPrototypeOf, Object), br = Object.prototype;
802
- function dt(e) {
803
- var t = e && e.constructor, a = typeof t == "function" && t.prototype || br;
802
+ var yt = jo(Object.getPrototypeOf, Object), Lo = Object.prototype;
803
+ function mt(e) {
804
+ var t = e && e.constructor, a = typeof t == "function" && t.prototype || Lo;
804
805
  return e === a;
805
806
  }
806
- function _r(e) {
807
- return typeof e.constructor == "function" && !dt(e) ? yr(ct(e)) : {};
807
+ function Eo(e) {
808
+ return typeof e.constructor == "function" && !mt(e) ? $o(yt(e)) : {};
808
809
  }
809
- function ee(e) {
810
+ function re(e) {
810
811
  return e != null && typeof e == "object";
811
812
  }
812
- var xr = "[object Arguments]";
813
- function Ne(e) {
814
- return ee(e) && ne(e) == xr;
813
+ var Po = "[object Arguments]";
814
+ function qe(e) {
815
+ return re(e) && se(e) == Po;
815
816
  }
816
- var ft = Object.prototype, wr = ft.hasOwnProperty, Mr = ft.propertyIsEnumerable, pe = Ne(/* @__PURE__ */ function() {
817
+ var bt = Object.prototype, ko = bt.hasOwnProperty, Ro = bt.propertyIsEnumerable, we = qe(/* @__PURE__ */ function() {
817
818
  return arguments;
818
- }()) ? Ne : function(e) {
819
- return ee(e) && wr.call(e, "callee") && !Mr.call(e, "callee");
820
- }, ue = Array.isArray, Ar = 9007199254740991;
821
- function vt(e) {
822
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ar;
819
+ }()) ? qe : function(e) {
820
+ return re(e) && ko.call(e, "callee") && !Ro.call(e, "callee");
821
+ }, ve = Array.isArray, Go = 9007199254740991;
822
+ function _t(e) {
823
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Go;
823
824
  }
824
- function Ie(e) {
825
- return e != null && vt(e.length) && !Ee(e);
825
+ function Ue(e) {
826
+ return e != null && _t(e.length) && !De(e);
826
827
  }
827
- function Sr(e) {
828
- return ee(e) && Ie(e);
828
+ function Bo(e) {
829
+ return re(e) && Ue(e);
829
830
  }
830
- function Cr() {
831
+ function Do() {
831
832
  return !1;
832
833
  }
833
- var pt = typeof exports == "object" && exports && !exports.nodeType && exports, Ke = pt && typeof module == "object" && module && !module.nodeType && module, Or = Ke && Ke.exports === pt, Fe = Or ? Y.Buffer : void 0, Tr = Fe ? Fe.isBuffer : void 0, gt = Tr || Cr, $r = "[object Object]", jr = Function.prototype, Lr = Object.prototype, ht = jr.toString, Er = Lr.hasOwnProperty, Pr = ht.call(Object);
834
- function Rr(e) {
835
- if (!ee(e) || ne(e) != $r)
834
+ var wt = typeof exports == "object" && exports && !exports.nodeType && exports, Ye = wt && typeof module == "object" && module && !module.nodeType && module, zo = Ye && Ye.exports === wt, Xe = zo ? te.Buffer : void 0, No = Xe ? Xe.isBuffer : void 0, xt = No || Do, Uo = "[object Object]", Vo = Function.prototype, Ko = Object.prototype, Mt = Vo.toString, Fo = Ko.hasOwnProperty, Io = Mt.call(Object);
835
+ function Ho(e) {
836
+ if (!re(e) || se(e) != Uo)
836
837
  return !1;
837
- var t = ct(e);
838
+ var t = yt(e);
838
839
  if (t === null)
839
840
  return !0;
840
- var a = Er.call(t, "constructor") && t.constructor;
841
- return typeof a == "function" && a instanceof a && ht.call(a) == Pr;
841
+ var a = Fo.call(t, "constructor") && t.constructor;
842
+ return typeof a == "function" && a instanceof a && Mt.call(a) == Io;
842
843
  }
843
- var Ir = "[object Arguments]", Dr = "[object Array]", Ur = "[object Boolean]", Vr = "[object Date]", kr = "[object Error]", Br = "[object Function]", zr = "[object Map]", Gr = "[object Number]", Nr = "[object Object]", Kr = "[object RegExp]", Fr = "[object Set]", Hr = "[object String]", Jr = "[object WeakMap]", Zr = "[object ArrayBuffer]", Wr = "[object DataView]", qr = "[object Float32Array]", Yr = "[object Float64Array]", Xr = "[object Int8Array]", Qr = "[object Int16Array]", en = "[object Int32Array]", tn = "[object Uint8Array]", an = "[object Uint8ClampedArray]", rn = "[object Uint16Array]", nn = "[object Uint32Array]", T = {};
844
- T[qr] = T[Yr] = T[Xr] = T[Qr] = T[en] = T[tn] = T[an] = T[rn] = T[nn] = !0;
845
- T[Ir] = T[Dr] = T[Zr] = T[Ur] = T[Wr] = T[Vr] = T[kr] = T[Br] = T[zr] = T[Gr] = T[Nr] = T[Kr] = T[Fr] = T[Hr] = T[Jr] = !1;
846
- function on(e) {
847
- return ee(e) && vt(e.length) && !!T[ne(e)];
844
+ var Jo = "[object Arguments]", Zo = "[object Array]", Wo = "[object Boolean]", qo = "[object Date]", Yo = "[object Error]", Xo = "[object Function]", Qo = "[object Map]", er = "[object Number]", tr = "[object Object]", ar = "[object RegExp]", or = "[object Set]", rr = "[object String]", nr = "[object WeakMap]", lr = "[object ArrayBuffer]", ur = "[object DataView]", ir = "[object Float32Array]", cr = "[object Float64Array]", sr = "[object Int8Array]", dr = "[object Int16Array]", fr = "[object Int32Array]", vr = "[object Uint8Array]", gr = "[object Uint8ClampedArray]", pr = "[object Uint16Array]", hr = "[object Uint32Array]", E = {};
845
+ E[ir] = E[cr] = E[sr] = E[dr] = E[fr] = E[vr] = E[gr] = E[pr] = E[hr] = !0;
846
+ E[Jo] = E[Zo] = E[lr] = E[Wo] = E[ur] = E[qo] = E[Yo] = E[Xo] = E[Qo] = E[er] = E[tr] = E[ar] = E[or] = E[rr] = E[nr] = !1;
847
+ function yr(e) {
848
+ return re(e) && _t(e.length) && !!E[se(e)];
848
849
  }
849
- function un(e) {
850
+ function mr(e) {
850
851
  return function(t) {
851
852
  return e(t);
852
853
  };
853
854
  }
854
- var yt = typeof exports == "object" && exports && !exports.nodeType && exports, ae = yt && typeof module == "object" && module && !module.nodeType && module, ln = ae && ae.exports === yt, fe = ln && ut.process, He = function() {
855
+ var Ct = typeof exports == "object" && exports && !exports.nodeType && exports, ie = Ct && typeof module == "object" && module && !module.nodeType && module, br = ie && ie.exports === Ct, be = br && vt.process, Qe = function() {
855
856
  try {
856
- var e = ae && ae.require && ae.require("util").types;
857
- return e || fe && fe.binding && fe.binding("util");
857
+ var e = ie && ie.require && ie.require("util").types;
858
+ return e || be && be.binding && be.binding("util");
858
859
  } catch {
859
860
  }
860
- }(), Je = He && He.isTypedArray, mt = Je ? un(Je) : on;
861
- function ge(e, t) {
861
+ }(), et = Qe && Qe.isTypedArray, At = et ? mr(et) : yr;
862
+ function xe(e, t) {
862
863
  if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
863
864
  return e[t];
864
865
  }
865
- var sn = Object.prototype, cn = sn.hasOwnProperty;
866
- function dn(e, t, a) {
866
+ var _r = Object.prototype, wr = _r.hasOwnProperty;
867
+ function xr(e, t, a) {
867
868
  var r = e[t];
868
- (!(cn.call(e, t) && le(r, a)) || a === void 0 && !(t in e)) && Re(e, t, a);
869
+ (!(wr.call(e, t) && ge(r, a)) || a === void 0 && !(t in e)) && Ne(e, t, a);
869
870
  }
870
- function fn(e, t, a, r) {
871
- var o = !a;
871
+ function Mr(e, t, a, r) {
872
+ var u = !a;
872
873
  a || (a = {});
873
- for (var l = -1, u = t.length; ++l < u; ) {
874
- var n = t[l], c = void 0;
875
- c === void 0 && (c = e[n]), o ? Re(a, n, c) : dn(a, n, c);
874
+ for (var l = -1, n = t.length; ++l < n; ) {
875
+ var o = t[l], s = void 0;
876
+ s === void 0 && (s = e[o]), u ? Ne(a, o, s) : xr(a, o, s);
876
877
  }
877
878
  return a;
878
879
  }
879
- function vn(e, t) {
880
+ function Cr(e, t) {
880
881
  for (var a = -1, r = Array(e); ++a < e; )
881
882
  r[a] = t(a);
882
883
  return r;
883
884
  }
884
- var pn = 9007199254740991, gn = /^(?:0|[1-9]\d*)$/;
885
- function bt(e, t) {
885
+ var Ar = 9007199254740991, Sr = /^(?:0|[1-9]\d*)$/;
886
+ function St(e, t) {
886
887
  var a = typeof e;
887
- return t = t ?? pn, !!t && (a == "number" || a != "symbol" && gn.test(e)) && e > -1 && e % 1 == 0 && e < t;
888
- }
889
- function hn(e, t) {
890
- var a = ue(e), r = !a && pe(e), o = !a && !r && gt(e), l = !a && !r && !o && mt(e), u = a || r || o || l, n = u ? vn(e.length, String) : [], c = n.length;
891
- for (var y in e)
892
- u && // Safari 9 has enumerable `arguments.length` in strict mode.
893
- (y == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
894
- o && (y == "offset" || y == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
895
- l && (y == "buffer" || y == "byteLength" || y == "byteOffset") || // Skip index properties.
896
- bt(y, c)) || n.push(y);
897
- return n;
898
- }
899
- function yn(e) {
888
+ return t = t ?? Ar, !!t && (a == "number" || a != "symbol" && Sr.test(e)) && e > -1 && e % 1 == 0 && e < t;
889
+ }
890
+ function Or(e, t) {
891
+ var a = ve(e), r = !a && we(e), u = !a && !r && xt(e), l = !a && !r && !u && At(e), n = a || r || u || l, o = n ? Cr(e.length, String) : [], s = o.length;
892
+ for (var v in e)
893
+ n && // Safari 9 has enumerable `arguments.length` in strict mode.
894
+ (v == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
895
+ u && (v == "offset" || v == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
896
+ l && (v == "buffer" || v == "byteLength" || v == "byteOffset") || // Skip index properties.
897
+ St(v, s)) || o.push(v);
898
+ return o;
899
+ }
900
+ function Tr(e) {
900
901
  var t = [];
901
902
  if (e != null)
902
903
  for (var a in Object(e))
903
904
  t.push(a);
904
905
  return t;
905
906
  }
906
- var mn = Object.prototype, bn = mn.hasOwnProperty;
907
- function _n(e) {
908
- if (!H(e))
909
- return yn(e);
910
- var t = dt(e), a = [];
907
+ var $r = Object.prototype, jr = $r.hasOwnProperty;
908
+ function Lr(e) {
909
+ if (!Y(e))
910
+ return Tr(e);
911
+ var t = mt(e), a = [];
911
912
  for (var r in e)
912
- r == "constructor" && (t || !bn.call(e, r)) || a.push(r);
913
+ r == "constructor" && (t || !jr.call(e, r)) || a.push(r);
913
914
  return a;
914
915
  }
915
- function _t(e) {
916
- return Ie(e) ? hn(e) : _n(e);
916
+ function Ot(e) {
917
+ return Ue(e) ? Or(e) : Lr(e);
917
918
  }
918
- function xn(e) {
919
- return fn(e, _t(e));
919
+ function Er(e) {
920
+ return Mr(e, Ot(e));
920
921
  }
921
- function wn(e, t, a, r, o, l, u) {
922
- var n = ge(e, a), c = ge(t, a), y = u.get(c);
923
- if (y) {
924
- ve(e, a, y);
922
+ function Pr(e, t, a, r, u, l, n) {
923
+ var o = xe(e, a), s = xe(t, a), v = n.get(s);
924
+ if (v) {
925
+ _e(e, a, v);
925
926
  return;
926
927
  }
927
- var d = l ? l(n, c, a + "", e, t, u) : void 0, _ = d === void 0;
928
- if (_) {
929
- var m = ue(c), L = !m && gt(c), P = !m && !L && mt(c);
930
- d = c, m || L || P ? ue(n) ? d = n : Sr(n) ? d = hr(n) : L ? (_ = !1, d = vr(c)) : P ? (_ = !1, d = gr(c)) : d = [] : Rr(c) || pe(c) ? (d = n, pe(n) ? d = xn(n) : (!H(n) || Ee(n)) && (d = _r(c))) : _ = !1;
928
+ var b = l ? l(o, s, a + "", e, t, n) : void 0, C = b === void 0;
929
+ if (C) {
930
+ var x = ve(s), k = !x && xt(s), L = !x && !k && At(s);
931
+ b = s, x || k || L ? ve(o) ? b = o : Bo(o) ? b = To(o) : k ? (C = !1, b = Ao(s)) : L ? (C = !1, b = Oo(s)) : b = [] : Ho(s) || we(s) ? (b = o, we(o) ? b = Er(o) : (!Y(o) || De(o)) && (b = Eo(s))) : C = !1;
931
932
  }
932
- _ && (u.set(c, d), o(d, c, r, l, u), u.delete(c)), ve(e, a, d);
933
+ C && (n.set(s, b), u(b, s, r, l, n), n.delete(s)), _e(e, a, b);
933
934
  }
934
- function xt(e, t, a, r, o) {
935
- e !== t && dr(t, function(l, u) {
936
- if (o || (o = new Q()), H(l))
937
- wn(e, t, u, a, xt, r, o);
935
+ function Tt(e, t, a, r, u) {
936
+ e !== t && Mo(t, function(l, n) {
937
+ if (u || (u = new oe()), Y(l))
938
+ Pr(e, t, n, a, Tt, r, u);
938
939
  else {
939
- var n = r ? r(ge(e, u), l, u + "", e, t, o) : void 0;
940
- n === void 0 && (n = l), ve(e, u, n);
940
+ var o = r ? r(xe(e, n), l, n + "", e, t, u) : void 0;
941
+ o === void 0 && (o = l), _e(e, n, o);
941
942
  }
942
- }, _t);
943
+ }, Ot);
943
944
  }
944
- function wt(e) {
945
+ function $t(e) {
945
946
  return e;
946
947
  }
947
- function Mn(e, t, a) {
948
+ function kr(e, t, a) {
948
949
  switch (a.length) {
949
950
  case 0:
950
951
  return e.call(t);
@@ -957,241 +958,251 @@ function Mn(e, t, a) {
957
958
  }
958
959
  return e.apply(t, a);
959
960
  }
960
- var Ze = Math.max;
961
- function An(e, t, a) {
962
- return t = Ze(t === void 0 ? e.length - 1 : t, 0), function() {
963
- for (var r = arguments, o = -1, l = Ze(r.length - t, 0), u = Array(l); ++o < l; )
964
- u[o] = r[t + o];
965
- o = -1;
966
- for (var n = Array(t + 1); ++o < t; )
967
- n[o] = r[o];
968
- return n[t] = a(u), Mn(e, this, n);
961
+ var tt = Math.max;
962
+ function Rr(e, t, a) {
963
+ return t = tt(t === void 0 ? e.length - 1 : t, 0), function() {
964
+ for (var r = arguments, u = -1, l = tt(r.length - t, 0), n = Array(l); ++u < l; )
965
+ n[u] = r[t + u];
966
+ u = -1;
967
+ for (var o = Array(t + 1); ++u < t; )
968
+ o[u] = r[u];
969
+ return o[t] = a(n), kr(e, this, o);
969
970
  };
970
971
  }
971
- function Sn(e) {
972
+ function Gr(e) {
972
973
  return function() {
973
974
  return e;
974
975
  };
975
976
  }
976
- var Cn = oe ? function(e, t) {
977
- return oe(e, "toString", {
977
+ var Br = fe ? function(e, t) {
978
+ return fe(e, "toString", {
978
979
  configurable: !0,
979
980
  enumerable: !1,
980
- value: Sn(t),
981
+ value: Gr(t),
981
982
  writable: !0
982
983
  });
983
- } : wt, On = 800, Tn = 16, $n = Date.now;
984
- function jn(e) {
984
+ } : $t, Dr = 800, zr = 16, Nr = Date.now;
985
+ function Ur(e) {
985
986
  var t = 0, a = 0;
986
987
  return function() {
987
- var r = $n(), o = Tn - (r - a);
988
- if (a = r, o > 0) {
989
- if (++t >= On)
988
+ var r = Nr(), u = zr - (r - a);
989
+ if (a = r, u > 0) {
990
+ if (++t >= Dr)
990
991
  return arguments[0];
991
992
  } else
992
993
  t = 0;
993
994
  return e.apply(void 0, arguments);
994
995
  };
995
996
  }
996
- var Ln = jn(Cn);
997
- function En(e, t) {
998
- return Ln(An(e, t, wt), e + "");
997
+ var Vr = Ur(Br);
998
+ function Kr(e, t) {
999
+ return Vr(Rr(e, t, $t), e + "");
999
1000
  }
1000
- function Pn(e, t, a) {
1001
- if (!H(a))
1001
+ function Fr(e, t, a) {
1002
+ if (!Y(a))
1002
1003
  return !1;
1003
1004
  var r = typeof t;
1004
- return (r == "number" ? Ie(a) && bt(t, a.length) : r == "string" && t in a) ? le(a[t], e) : !1;
1005
- }
1006
- function Rn(e) {
1007
- return En(function(t, a) {
1008
- var r = -1, o = a.length, l = o > 1 ? a[o - 1] : void 0, u = o > 2 ? a[2] : void 0;
1009
- for (l = e.length > 3 && typeof l == "function" ? (o--, l) : void 0, u && Pn(a[0], a[1], u) && (l = o < 3 ? void 0 : l, o = 1), t = Object(t); ++r < o; ) {
1010
- var n = a[r];
1011
- n && e(t, n, r, l);
1005
+ return (r == "number" ? Ue(a) && St(t, a.length) : r == "string" && t in a) ? ge(a[t], e) : !1;
1006
+ }
1007
+ function Ir(e) {
1008
+ return Kr(function(t, a) {
1009
+ var r = -1, u = a.length, l = u > 1 ? a[u - 1] : void 0, n = u > 2 ? a[2] : void 0;
1010
+ for (l = e.length > 3 && typeof l == "function" ? (u--, l) : void 0, n && Fr(a[0], a[1], n) && (l = u < 3 ? void 0 : l, u = 1), t = Object(t); ++r < u; ) {
1011
+ var o = a[r];
1012
+ o && e(t, o, r, l);
1012
1013
  }
1013
1014
  return t;
1014
1015
  });
1015
1016
  }
1016
- var In = Rn(function(e, t, a, r) {
1017
- xt(e, t, a, r);
1018
- }), Dn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1019
- function Un(e) {
1017
+ var Hr = Ir(function(e, t, a, r) {
1018
+ Tt(e, t, a, r);
1019
+ }), Jr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1020
+ function Zr(e) {
1020
1021
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1021
1022
  }
1022
- var Mt = { exports: {} };
1023
+ var jt = { exports: {} };
1023
1024
  (function(e) {
1024
1025
  (function(t, a) {
1025
1026
  e.exports ? e.exports = a() : t.coordtransform = a();
1026
- })(Dn, function() {
1027
- var t = 52.35987755982988, a = 3.141592653589793, r = 6378245, o = 0.006693421622965943, l = function(s, i) {
1028
- var s = +s, i = +i, p = s - 65e-4, b = i - 6e-3, x = Math.sqrt(p * p + b * b) - 2e-5 * Math.sin(b * t), h = Math.atan2(b, p) - 3e-6 * Math.cos(p * t), E = x * Math.cos(h), U = x * Math.sin(h);
1029
- return [E, U];
1030
- }, u = function(i, s) {
1031
- var s = +s, i = +i, p = Math.sqrt(i * i + s * s) + 2e-5 * Math.sin(s * t), b = Math.atan2(s, i) + 3e-6 * Math.cos(i * t), x = p * Math.cos(b) + 65e-4, h = p * Math.sin(b) + 6e-3;
1032
- return [x, h];
1033
- }, n = function(i, s) {
1034
- var s = +s, i = +i;
1035
- if (_(i, s))
1036
- return [i, s];
1037
- var p = y(i - 105, s - 35), b = d(i - 105, s - 35), x = s / 180 * a, h = Math.sin(x);
1038
- h = 1 - o * h * h;
1039
- var E = Math.sqrt(h);
1040
- p = p * 180 / (r * (1 - o) / (h * E) * a), b = b * 180 / (r / E * Math.cos(x) * a);
1041
- var U = s + p, V = i + b;
1042
- return [V, U];
1043
- }, c = function(i, s) {
1044
- var s = +s, i = +i;
1045
- if (_(i, s))
1046
- return [i, s];
1047
- var p = y(i - 105, s - 35), b = d(i - 105, s - 35), x = s / 180 * a, h = Math.sin(x);
1048
- h = 1 - o * h * h;
1049
- var E = Math.sqrt(h);
1050
- p = p * 180 / (r * (1 - o) / (h * E) * a), b = b * 180 / (r / E * Math.cos(x) * a);
1051
- var U = s + p, V = i + b;
1052
- return [i * 2 - V, s * 2 - U];
1053
- }, y = function(i, s) {
1054
- var s = +s, i = +i, p = -100 + 2 * i + 3 * s + 0.2 * s * s + 0.1 * i * s + 0.2 * Math.sqrt(Math.abs(i));
1055
- return p += (20 * Math.sin(6 * i * a) + 20 * Math.sin(2 * i * a)) * 2 / 3, p += (20 * Math.sin(s * a) + 40 * Math.sin(s / 3 * a)) * 2 / 3, p += (160 * Math.sin(s / 12 * a) + 320 * Math.sin(s * a / 30)) * 2 / 3, p;
1056
- }, d = function(i, s) {
1057
- var s = +s, i = +i, p = 300 + i + 2 * s + 0.1 * i * i + 0.1 * i * s + 0.1 * Math.sqrt(Math.abs(i));
1058
- return p += (20 * Math.sin(6 * i * a) + 20 * Math.sin(2 * i * a)) * 2 / 3, p += (20 * Math.sin(i * a) + 40 * Math.sin(i / 3 * a)) * 2 / 3, p += (150 * Math.sin(i / 12 * a) + 300 * Math.sin(i / 30 * a)) * 2 / 3, p;
1059
- }, _ = function(i, s) {
1060
- var s = +s, i = +i;
1061
- return !(i > 73.66 && i < 135.05 && s > 3.86 && s < 53.55);
1027
+ })(Jr, function() {
1028
+ var t = 52.35987755982988, a = 3.141592653589793, r = 6378245, u = 0.006693421622965943, l = function(c, i) {
1029
+ var c = +c, i = +i, h = c - 65e-4, A = i - 6e-3, R = Math.sqrt(h * h + A * A) - 2e-5 * Math.sin(A * t), _ = Math.atan2(A, h) - 3e-6 * Math.cos(h * t), $ = R * Math.cos(_), G = R * Math.sin(_);
1030
+ return [$, G];
1031
+ }, n = function(i, c) {
1032
+ var c = +c, i = +i, h = Math.sqrt(i * i + c * c) + 2e-5 * Math.sin(c * t), A = Math.atan2(c, i) + 3e-6 * Math.cos(i * t), R = h * Math.cos(A) + 65e-4, _ = h * Math.sin(A) + 6e-3;
1033
+ return [R, _];
1034
+ }, o = function(i, c) {
1035
+ var c = +c, i = +i;
1036
+ if (C(i, c))
1037
+ return [i, c];
1038
+ var h = v(i - 105, c - 35), A = b(i - 105, c - 35), R = c / 180 * a, _ = Math.sin(R);
1039
+ _ = 1 - u * _ * _;
1040
+ var $ = Math.sqrt(_);
1041
+ h = h * 180 / (r * (1 - u) / (_ * $) * a), A = A * 180 / (r / $ * Math.cos(R) * a);
1042
+ var G = c + h, U = i + A;
1043
+ return [U, G];
1044
+ }, s = function(i, c) {
1045
+ var c = +c, i = +i;
1046
+ if (C(i, c))
1047
+ return [i, c];
1048
+ var h = v(i - 105, c - 35), A = b(i - 105, c - 35), R = c / 180 * a, _ = Math.sin(R);
1049
+ _ = 1 - u * _ * _;
1050
+ var $ = Math.sqrt(_);
1051
+ h = h * 180 / (r * (1 - u) / (_ * $) * a), A = A * 180 / (r / $ * Math.cos(R) * a);
1052
+ var G = c + h, U = i + A;
1053
+ return [i * 2 - U, c * 2 - G];
1054
+ }, v = function(i, c) {
1055
+ var c = +c, i = +i, h = -100 + 2 * i + 3 * c + 0.2 * c * c + 0.1 * i * c + 0.2 * Math.sqrt(Math.abs(i));
1056
+ return h += (20 * Math.sin(6 * i * a) + 20 * Math.sin(2 * i * a)) * 2 / 3, h += (20 * Math.sin(c * a) + 40 * Math.sin(c / 3 * a)) * 2 / 3, h += (160 * Math.sin(c / 12 * a) + 320 * Math.sin(c * a / 30)) * 2 / 3, h;
1057
+ }, b = function(i, c) {
1058
+ var c = +c, i = +i, h = 300 + i + 2 * c + 0.1 * i * i + 0.1 * i * c + 0.1 * Math.sqrt(Math.abs(i));
1059
+ return h += (20 * Math.sin(6 * i * a) + 20 * Math.sin(2 * i * a)) * 2 / 3, h += (20 * Math.sin(i * a) + 40 * Math.sin(i / 3 * a)) * 2 / 3, h += (150 * Math.sin(i / 12 * a) + 300 * Math.sin(i / 30 * a)) * 2 / 3, h;
1060
+ }, C = function(i, c) {
1061
+ var c = +c, i = +i;
1062
+ return !(i > 73.66 && i < 135.05 && c > 3.86 && c < 53.55);
1062
1063
  };
1063
1064
  return {
1064
1065
  bd09togcj02: l,
1065
- gcj02tobd09: u,
1066
- wgs84togcj02: n,
1067
- gcj02towgs84: c
1066
+ gcj02tobd09: n,
1067
+ wgs84togcj02: o,
1068
+ gcj02towgs84: s
1068
1069
  };
1069
1070
  });
1070
- })(Mt);
1071
- var Vn = Mt.exports;
1072
- const At = /* @__PURE__ */ Un(Vn), kn = (e, t, { type: a, MapGL: r, map: o }) => {
1073
- const l = (u, n) => {
1074
- const c = document.createElement("div");
1075
- c.style.cursor = "pointer";
1076
- const y = Ht(u, n);
1077
- return Jt(y, c), c;
1071
+ })(jt);
1072
+ var Wr = jt.exports;
1073
+ const Lt = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: r, map: u }) => {
1074
+ const l = (n, o) => {
1075
+ const s = document.createElement("div");
1076
+ s.style.cursor = "pointer";
1077
+ const v = Qt(n, o);
1078
+ return ea(v, s), s;
1078
1079
  };
1079
- e.addCustomComponent = (u) => {
1080
- !Array.isArray(u) || (u == null ? void 0 : u.length) === 0 || u.forEach((n) => {
1081
- const { component: c, componentProps: y, lng: d, lat: _, markerOptions: m = {} } = n, L = typeof y == "function" ? y() : y, P = typeof c == "function" ? c() : c, s = () => l(P, L);
1080
+ e.addCustomComponent = (n) => {
1081
+ !Array.isArray(n) || (n == null ? void 0 : n.length) === 0 || n.forEach((o) => {
1082
+ const { component: s, componentProps: v, lng: b, lat: C, markerOptions: x = {} } = o, k = typeof v == "function" ? v() : v, L = typeof s == "function" ? s() : s, c = () => l(L, k);
1082
1083
  if (a.value === "baidu") {
1083
- const i = At.gcj02tobd09(d, _), p = new r.value.CustomOverlay(s, {
1084
+ const i = Lt.gcj02tobd09(b, C), h = new r.value.CustomOverlay(c, {
1084
1085
  point: { lng: i[0], lat: i[1] },
1085
- ...m
1086
+ ...x
1086
1087
  });
1087
- o.value.addOverlay(p), p.addEventListener("click", function(b) {
1088
- t("click-custom-component", n, b);
1088
+ u.value.addOverlay(h), h.addEventListener("click", function(A) {
1089
+ t("click-custom-component", o, A);
1089
1090
  });
1090
1091
  }
1091
1092
  if (a.value === "gaode") {
1092
- const i = l(P, L), p = new r.value.Marker({ content: i, position: [d, _], ...m });
1093
- o.value.add(p), r.value.event.addListener(p, "click", function(b) {
1094
- t("click-custom-component", n, b);
1093
+ const i = l(L, k), h = new r.value.Marker({ content: i, position: [b, C], ...x });
1094
+ u.value.add(h), r.value.event.addListener(h, "click", function(A) {
1095
+ t("click-custom-component", o, A);
1095
1096
  });
1096
1097
  }
1097
1098
  });
1098
1099
  };
1099
- }, Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1100
+ }, Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1100
1101
  __proto__: null,
1101
- default: kn
1102
- }, Symbol.toStringTag, { value: "Module" })), zn = (e, t, { type: a, MapGL: r, map: o, innerPoint: l, innerInput: u, adCode: n }) => {
1102
+ default: qr
1103
+ }, Symbol.toStringTag, { value: "Module" })), Xr = (e, t, { type: a, MapGL: r, map: u, innerPoint: l, innerInput: n, adCode: o, addressInfo: s }) => {
1103
1104
  e.getMapInfo = () => {
1104
1105
  if (a.value === "baidu") {
1105
- const c = At.bd09togcj02(l.value[0], l.value[1]);
1106
+ const v = Lt.bd09togcj02(l.value[0], l.value[1]);
1106
1107
  return {
1107
- longitude: c[0],
1108
- latitude: c[1],
1109
- address: u.value,
1110
- adCode: n.value
1108
+ longitude: v[0],
1109
+ latitude: v[1],
1110
+ address: n.value,
1111
+ adCode: o.value,
1112
+ addressInfo: s.value
1111
1113
  };
1112
1114
  }
1113
1115
  if (a.value === "gaode")
1114
1116
  return {
1115
1117
  longitude: l.value[0],
1116
1118
  latitude: l.value[1],
1117
- address: u.value,
1118
- adCode: n.value
1119
+ address: n.value,
1120
+ adCode: o.value,
1121
+ addressInfo: s.value
1122
+ };
1123
+ if (a.value === "google")
1124
+ return {
1125
+ longitude: l.value[0],
1126
+ latitude: l.value[1],
1127
+ address: n.value,
1128
+ adCode: o.value,
1129
+ addressInfo: s.value
1119
1130
  };
1120
1131
  };
1121
- }, Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1132
+ }, Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1122
1133
  __proto__: null,
1123
- default: zn
1134
+ default: Xr
1124
1135
  }, Symbol.toStringTag, { value: "Module" }));
1125
- function Nn(e, t) {
1126
- for (var a = -1, r = e == null ? 0 : e.length, o = Array(r); ++a < r; )
1127
- o[a] = t(e[a], a, e);
1128
- return o;
1136
+ function en(e, t) {
1137
+ for (var a = -1, r = e == null ? 0 : e.length, u = Array(r); ++a < r; )
1138
+ u[a] = t(e[a], a, e);
1139
+ return u;
1129
1140
  }
1130
- var Kn = "[object Symbol]";
1131
- function Fn(e) {
1132
- return typeof e == "symbol" || ee(e) && ne(e) == Kn;
1141
+ var tn = "[object Symbol]";
1142
+ function an(e) {
1143
+ return typeof e == "symbol" || re(e) && se(e) == tn;
1133
1144
  }
1134
- var Hn = 1 / 0, We = q ? q.prototype : void 0, qe = We ? We.toString : void 0;
1135
- function St(e) {
1145
+ var on = 1 / 0, at = ee ? ee.prototype : void 0, ot = at ? at.toString : void 0;
1146
+ function Et(e) {
1136
1147
  if (typeof e == "string")
1137
1148
  return e;
1138
- if (ue(e))
1139
- return Nn(e, St) + "";
1140
- if (Fn(e))
1141
- return qe ? qe.call(e) : "";
1149
+ if (ve(e))
1150
+ return en(e, Et) + "";
1151
+ if (an(e))
1152
+ return ot ? ot.call(e) : "";
1142
1153
  var t = e + "";
1143
- return t == "0" && 1 / e == -Hn ? "-0" : t;
1154
+ return t == "0" && 1 / e == -on ? "-0" : t;
1144
1155
  }
1145
- function ce(e) {
1146
- return e == null ? "" : St(e);
1156
+ function ye(e) {
1157
+ return e == null ? "" : Et(e);
1147
1158
  }
1148
- function Jn(e, t, a) {
1149
- var r = -1, o = e.length;
1150
- t < 0 && (t = -t > o ? 0 : o + t), a = a > o ? o : a, a < 0 && (a += o), o = t > a ? 0 : a - t >>> 0, t >>>= 0;
1151
- for (var l = Array(o); ++r < o; )
1159
+ function rn(e, t, a) {
1160
+ var r = -1, u = e.length;
1161
+ t < 0 && (t = -t > u ? 0 : u + t), a = a > u ? u : a, a < 0 && (a += u), u = t > a ? 0 : a - t >>> 0, t >>>= 0;
1162
+ for (var l = Array(u); ++r < u; )
1152
1163
  l[r] = e[r + t];
1153
1164
  return l;
1154
1165
  }
1155
- function Zn(e, t, a) {
1166
+ function nn(e, t, a) {
1156
1167
  var r = e.length;
1157
- return a = a === void 0 ? r : a, !t && a >= r ? e : Jn(e, t, a);
1168
+ return a = a === void 0 ? r : a, !t && a >= r ? e : rn(e, t, a);
1158
1169
  }
1159
- var Wn = "\\ud800-\\udfff", qn = "\\u0300-\\u036f", Yn = "\\ufe20-\\ufe2f", Xn = "\\u20d0-\\u20ff", Qn = qn + Yn + Xn, eo = "\\ufe0e\\ufe0f", to = "\\u200d", ao = RegExp("[" + to + Wn + Qn + eo + "]");
1160
- function Ct(e) {
1161
- return ao.test(e);
1170
+ var ln = "\\ud800-\\udfff", un = "\\u0300-\\u036f", cn = "\\ufe20-\\ufe2f", sn = "\\u20d0-\\u20ff", dn = un + cn + sn, fn = "\\ufe0e\\ufe0f", vn = "\\u200d", gn = RegExp("[" + vn + ln + dn + fn + "]");
1171
+ function Pt(e) {
1172
+ return gn.test(e);
1162
1173
  }
1163
- function ro(e) {
1174
+ function pn(e) {
1164
1175
  return e.split("");
1165
1176
  }
1166
- var Ot = "\\ud800-\\udfff", no = "\\u0300-\\u036f", oo = "\\ufe20-\\ufe2f", uo = "\\u20d0-\\u20ff", lo = no + oo + uo, io = "\\ufe0e\\ufe0f", so = "[" + Ot + "]", he = "[" + lo + "]", ye = "\\ud83c[\\udffb-\\udfff]", co = "(?:" + he + "|" + ye + ")", Tt = "[^" + Ot + "]", $t = "(?:\\ud83c[\\udde6-\\uddff]){2}", jt = "[\\ud800-\\udbff][\\udc00-\\udfff]", fo = "\\u200d", Lt = co + "?", Et = "[" + io + "]?", vo = "(?:" + fo + "(?:" + [Tt, $t, jt].join("|") + ")" + Et + Lt + ")*", po = Et + Lt + vo, go = "(?:" + [Tt + he + "?", he, $t, jt, so].join("|") + ")", ho = RegExp(ye + "(?=" + ye + ")|" + go + po, "g");
1167
- function yo(e) {
1168
- return e.match(ho) || [];
1177
+ var kt = "\\ud800-\\udfff", hn = "\\u0300-\\u036f", yn = "\\ufe20-\\ufe2f", mn = "\\u20d0-\\u20ff", bn = hn + yn + mn, _n = "\\ufe0e\\ufe0f", wn = "[" + kt + "]", Me = "[" + bn + "]", Ce = "\\ud83c[\\udffb-\\udfff]", xn = "(?:" + Me + "|" + Ce + ")", Rt = "[^" + kt + "]", Gt = "(?:\\ud83c[\\udde6-\\uddff]){2}", Bt = "[\\ud800-\\udbff][\\udc00-\\udfff]", Mn = "\\u200d", Dt = xn + "?", zt = "[" + _n + "]?", Cn = "(?:" + Mn + "(?:" + [Rt, Gt, Bt].join("|") + ")" + zt + Dt + ")*", An = zt + Dt + Cn, Sn = "(?:" + [Rt + Me + "?", Me, Gt, Bt, wn].join("|") + ")", On = RegExp(Ce + "(?=" + Ce + ")|" + Sn + An, "g");
1178
+ function Tn(e) {
1179
+ return e.match(On) || [];
1169
1180
  }
1170
- function mo(e) {
1171
- return Ct(e) ? yo(e) : ro(e);
1181
+ function $n(e) {
1182
+ return Pt(e) ? Tn(e) : pn(e);
1172
1183
  }
1173
- function bo(e) {
1184
+ function jn(e) {
1174
1185
  return function(t) {
1175
- t = ce(t);
1176
- var a = Ct(t) ? mo(t) : void 0, r = a ? a[0] : t.charAt(0), o = a ? Zn(a, 1).join("") : t.slice(1);
1177
- return r[e]() + o;
1186
+ t = ye(t);
1187
+ var a = Pt(t) ? $n(t) : void 0, r = a ? a[0] : t.charAt(0), u = a ? nn(a, 1).join("") : t.slice(1);
1188
+ return r[e]() + u;
1178
1189
  };
1179
1190
  }
1180
- var _o = bo("toUpperCase");
1181
- function xo(e) {
1182
- return _o(ce(e).toLowerCase());
1191
+ var Ln = jn("toUpperCase");
1192
+ function En(e) {
1193
+ return Ln(ye(e).toLowerCase());
1183
1194
  }
1184
- function wo(e, t, a, r) {
1185
- for (var o = -1, l = e == null ? 0 : e.length; ++o < l; )
1186
- a = t(a, e[o], o, e);
1195
+ function Pn(e, t, a, r) {
1196
+ for (var u = -1, l = e == null ? 0 : e.length; ++u < l; )
1197
+ a = t(a, e[u], u, e);
1187
1198
  return a;
1188
1199
  }
1189
- function Mo(e) {
1200
+ function kn(e) {
1190
1201
  return function(t) {
1191
1202
  return e == null ? void 0 : e[t];
1192
1203
  };
1193
1204
  }
1194
- var Ao = {
1205
+ var Rn = {
1195
1206
  // Latin-1 Supplement block.
1196
1207
  À: "A",
1197
1208
  Á: "A",
@@ -1384,147 +1395,362 @@ var Ao = {
1384
1395
  œ: "oe",
1385
1396
  ʼn: "'n",
1386
1397
  ſ: "s"
1387
- }, So = Mo(Ao), Co = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Oo = "\\u0300-\\u036f", To = "\\ufe20-\\ufe2f", $o = "\\u20d0-\\u20ff", jo = Oo + To + $o, Lo = "[" + jo + "]", Eo = RegExp(Lo, "g");
1388
- function Po(e) {
1389
- return e = ce(e), e && e.replace(Co, So).replace(Eo, "");
1390
- }
1391
- var Ro = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
1392
- function Io(e) {
1393
- return e.match(Ro) || [];
1394
- }
1395
- var Do = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
1396
- function Uo(e) {
1397
- return Do.test(e);
1398
- }
1399
- var Pt = "\\ud800-\\udfff", Vo = "\\u0300-\\u036f", ko = "\\ufe20-\\ufe2f", Bo = "\\u20d0-\\u20ff", zo = Vo + ko + Bo, Rt = "\\u2700-\\u27bf", It = "a-z\\xdf-\\xf6\\xf8-\\xff", Go = "\\xac\\xb1\\xd7\\xf7", No = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Ko = "\\u2000-\\u206f", Fo = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Dt = "A-Z\\xc0-\\xd6\\xd8-\\xde", Ho = "\\ufe0e\\ufe0f", Ut = Go + No + Ko + Fo, Vt = "['’]", Ye = "[" + Ut + "]", Jo = "[" + zo + "]", kt = "\\d+", Zo = "[" + Rt + "]", Bt = "[" + It + "]", zt = "[^" + Pt + Ut + kt + Rt + It + Dt + "]", Wo = "\\ud83c[\\udffb-\\udfff]", qo = "(?:" + Jo + "|" + Wo + ")", Yo = "[^" + Pt + "]", Gt = "(?:\\ud83c[\\udde6-\\uddff]){2}", Nt = "[\\ud800-\\udbff][\\udc00-\\udfff]", J = "[" + Dt + "]", Xo = "\\u200d", Xe = "(?:" + Bt + "|" + zt + ")", Qo = "(?:" + J + "|" + zt + ")", Qe = "(?:" + Vt + "(?:d|ll|m|re|s|t|ve))?", et = "(?:" + Vt + "(?:D|LL|M|RE|S|T|VE))?", Kt = qo + "?", Ft = "[" + Ho + "]?", eu = "(?:" + Xo + "(?:" + [Yo, Gt, Nt].join("|") + ")" + Ft + Kt + ")*", tu = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", au = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", ru = Ft + Kt + eu, nu = "(?:" + [Zo, Gt, Nt].join("|") + ")" + ru, ou = RegExp([
1400
- J + "?" + Bt + "+" + Qe + "(?=" + [Ye, J, "$"].join("|") + ")",
1401
- Qo + "+" + et + "(?=" + [Ye, J + Xe, "$"].join("|") + ")",
1402
- J + "?" + Xe + "+" + Qe,
1403
- J + "+" + et,
1404
- au,
1405
- tu,
1406
- kt,
1407
- nu
1398
+ }, Gn = kn(Rn), Bn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Dn = "\\u0300-\\u036f", zn = "\\ufe20-\\ufe2f", Nn = "\\u20d0-\\u20ff", Un = Dn + zn + Nn, Vn = "[" + Un + "]", Kn = RegExp(Vn, "g");
1399
+ function Fn(e) {
1400
+ return e = ye(e), e && e.replace(Bn, Gn).replace(Kn, "");
1401
+ }
1402
+ var In = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
1403
+ function Hn(e) {
1404
+ return e.match(In) || [];
1405
+ }
1406
+ var Jn = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
1407
+ function Zn(e) {
1408
+ return Jn.test(e);
1409
+ }
1410
+ var Nt = "\\ud800-\\udfff", Wn = "\\u0300-\\u036f", qn = "\\ufe20-\\ufe2f", Yn = "\\u20d0-\\u20ff", Xn = Wn + qn + Yn, Ut = "\\u2700-\\u27bf", Vt = "a-z\\xdf-\\xf6\\xf8-\\xff", Qn = "\\xac\\xb1\\xd7\\xf7", el = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", tl = "\\u2000-\\u206f", al = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Kt = "A-Z\\xc0-\\xd6\\xd8-\\xde", ol = "\\ufe0e\\ufe0f", Ft = Qn + el + tl + al, It = "['’]", rt = "[" + Ft + "]", rl = "[" + Xn + "]", Ht = "\\d+", nl = "[" + Ut + "]", Jt = "[" + Vt + "]", Zt = "[^" + Nt + Ft + Ht + Ut + Vt + Kt + "]", ll = "\\ud83c[\\udffb-\\udfff]", ul = "(?:" + rl + "|" + ll + ")", il = "[^" + Nt + "]", Wt = "(?:\\ud83c[\\udde6-\\uddff]){2}", qt = "[\\ud800-\\udbff][\\udc00-\\udfff]", X = "[" + Kt + "]", cl = "\\u200d", nt = "(?:" + Jt + "|" + Zt + ")", sl = "(?:" + X + "|" + Zt + ")", lt = "(?:" + It + "(?:d|ll|m|re|s|t|ve))?", ut = "(?:" + It + "(?:D|LL|M|RE|S|T|VE))?", Yt = ul + "?", Xt = "[" + ol + "]?", dl = "(?:" + cl + "(?:" + [il, Wt, qt].join("|") + ")" + Xt + Yt + ")*", fl = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", vl = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", gl = Xt + Yt + dl, pl = "(?:" + [nl, Wt, qt].join("|") + ")" + gl, hl = RegExp([
1411
+ X + "?" + Jt + "+" + lt + "(?=" + [rt, X, "$"].join("|") + ")",
1412
+ sl + "+" + ut + "(?=" + [rt, X + nt, "$"].join("|") + ")",
1413
+ X + "?" + nt + "+" + lt,
1414
+ X + "+" + ut,
1415
+ vl,
1416
+ fl,
1417
+ Ht,
1418
+ pl
1408
1419
  ].join("|"), "g");
1409
- function uu(e) {
1410
- return e.match(ou) || [];
1420
+ function yl(e) {
1421
+ return e.match(hl) || [];
1411
1422
  }
1412
- function lu(e, t, a) {
1413
- return e = ce(e), t = t, t === void 0 ? Uo(e) ? uu(e) : Io(e) : e.match(t) || [];
1423
+ function ml(e, t, a) {
1424
+ return e = ye(e), t = t, t === void 0 ? Zn(e) ? yl(e) : Hn(e) : e.match(t) || [];
1414
1425
  }
1415
- var iu = "['’]", su = RegExp(iu, "g");
1416
- function cu(e) {
1426
+ var bl = "['’]", _l = RegExp(bl, "g");
1427
+ function wl(e) {
1417
1428
  return function(t) {
1418
- return wo(lu(Po(t).replace(su, "")), e, "");
1429
+ return Pn(ml(Fn(t).replace(_l, "")), e, "");
1419
1430
  };
1420
1431
  }
1421
- var du = cu(function(e, t, a) {
1422
- return t = t.toLowerCase(), e + (a ? xo(t) : t);
1432
+ var xl = wl(function(e, t, a) {
1433
+ return t = t.toLowerCase(), e + (a ? En(t) : t);
1423
1434
  });
1424
- const tt = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Bn, "./get-map-info/index.ts": Gn }), fu = Object.keys(tt).reduce((e, t) => {
1425
- const a = du(t.replace("./", "").split("/")[0]);
1426
- return e[a] = tt[t].default, e;
1427
- }, {}), vu = (e, t, a) => {
1428
- const r = A({});
1435
+ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./get-map-info/index.ts": Qr }), Ml = Object.keys(it).reduce((e, t) => {
1436
+ const a = xl(t.replace("./", "").split("/")[0]);
1437
+ return e[a] = it[t].default, e;
1438
+ }, {}), Cl = (e, t, a) => {
1439
+ const r = S({});
1429
1440
  return { mapElement: r, addPlugins: () => {
1430
- const u = In({}, (e == null ? void 0 : e.options) || {}, (n, c) => {
1431
- if (Array.isArray(n)) return n.concat(c);
1441
+ const n = Hr({}, (e == null ? void 0 : e.options) || {}, (o, s) => {
1442
+ if (Array.isArray(o)) return o.concat(s);
1432
1443
  });
1433
- Object.values(fu).forEach((n) => n(r.value, t, a, u.plugins || {}));
1444
+ Object.values(Ml).forEach((o) => o(r.value, t, a, n.plugins || {}));
1434
1445
  } };
1435
- }, pu = (e, t) => {
1436
- const a = A("gaode"), r = A(), o = A(), l = G(null), u = G(null), n = G(null), c = A(!0), y = A(null), d = A([]), _ = be(() => ({
1437
- width: e.width ? W(e.width) : "100%",
1438
- height: e.height ? W(e.height) : "100%"
1439
- })), m = A(""), L = A([]), P = A(""), {
1440
- loadJavascript: s,
1441
- getLocationByInputSearch: i,
1442
- handleSelectAddress: p,
1443
- getLocationParse: b
1444
- } = ot({
1446
+ }, Al = ({ MapGL: e, map: t, marker: a, mapLoading: r, $autocomplete: u, searchResultList: l, innerInput: n, innerPoint: o, adCode: s, addressInfo: v }, b) => {
1447
+ const C = S(), x = S(), k = S();
1448
+ let L = null;
1449
+ const c = S(!1), i = S();
1450
+ let h;
1451
+ const A = async (d, f, y, M) => {
1452
+ if (i.value = y, M && (h = M), document.getElementById(d)) return R();
1453
+ const m = document.createElement("script"), O = `mapLoad${(/* @__PURE__ */ new Date()).getTime()}`, N = `https://maps.googleapis.com/maps/api/js?key=${d}&loading=async&callback=${O}`;
1454
+ m.setAttribute("id", d), m.setAttribute("src", N), document.body.appendChild(m), window[O] = () => {
1455
+ R();
1456
+ };
1457
+ }, R = async () => {
1458
+ var N, B;
1459
+ const { Map: d } = await google.maps.importLibrary("maps");
1460
+ e.value = d;
1461
+ const { Place: f, AutocompleteSessionToken: y, AutocompleteSuggestion: M } = await google.maps.importLibrary("places");
1462
+ x.value = new y(), k.value = M, C.value = f;
1463
+ const { AdvancedMarkerElement: m } = await google.maps.importLibrary("marker");
1464
+ L = m;
1465
+ const O = ((N = i.value) == null ? void 0 : N.mapOpt) ?? {};
1466
+ t.value = new d(document.getElementById("map"), {
1467
+ zoom: 11,
1468
+ mapId: "DEMO_MAP_ID",
1469
+ fullscreenControl: !1,
1470
+ // 全屏
1471
+ streetViewControl: !1,
1472
+ // 街景
1473
+ mapTypeControl: !1,
1474
+ // 左上角地图类型
1475
+ gestureHandling: "greedy",
1476
+ // 谷歌地图api缩放去掉ctrl+滚轮缩放,直接鼠标缩放
1477
+ ...O
1478
+ }), await $(), (B = i.value) != null && B.clickStream || _(), r.value = !1, c.value = !n.value && !o.value.length, h && h();
1479
+ }, _ = () => {
1480
+ var d;
1481
+ (d = t.value) == null || d.addListener("click", (f) => {
1482
+ var y, M;
1483
+ a.value && a.value.setMap(null), o.value = [(y = f == null ? void 0 : f.latLng) == null ? void 0 : y.lng(), (M = f == null ? void 0 : f.latLng) == null ? void 0 : M.lat()], G(o.value, !0).then(() => {
1484
+ var O;
1485
+ const m = {
1486
+ lng: parseFloat(o.value[0]),
1487
+ lat: parseFloat(o.value[1])
1488
+ };
1489
+ a.value = new L({
1490
+ map: t.value,
1491
+ position: m,
1492
+ title: n.value
1493
+ // 鼠标移上去时显示的内容
1494
+ }), (O = t.value) == null || O.panTo(m);
1495
+ });
1496
+ });
1497
+ }, $ = async () => {
1498
+ var d;
1499
+ if (!n.value && o.value.length, n.value && o.value.length > 0 ? await G(o.value) : n.value ? await U(n.value) : o.value.length > 0 && await G(o.value, !0), n.value && g(n.value, (f, y) => {
1500
+ if (y && y.length) {
1501
+ const M = y.find(
1502
+ (m) => m.value === n.value || m.info.name === n.value
1503
+ );
1504
+ M ? v.value = M.info : v.value = {
1505
+ district: "",
1506
+ address: "",
1507
+ name: n.value
1508
+ };
1509
+ }
1510
+ }), o.value.length) {
1511
+ const f = {
1512
+ lng: parseFloat(o.value[0]),
1513
+ lat: parseFloat(o.value[1])
1514
+ };
1515
+ a.value = new L({
1516
+ map: t.value,
1517
+ position: f,
1518
+ title: n.value
1519
+ // 鼠标移上去时显示的内容
1520
+ }), o.value.length && ((d = t.value) == null || d.setCenter(f));
1521
+ }
1522
+ }, G = (d, f = !1) => (d.join(","), new Promise((y, M) => {
1523
+ new google.maps.Geocoder().geocode({
1524
+ location: {
1525
+ lng: parseFloat(d[0]),
1526
+ lat: parseFloat(d[1])
1527
+ }
1528
+ }, (O, N) => {
1529
+ N === "OK" && (O != null && O.length) ? (f && (n.value = O[0].formatted_address ?? "", v.value = {
1530
+ district: "",
1531
+ address: "",
1532
+ name: n.value
1533
+ }), y(O[0])) : (z.error(P("thirdPartyMapErrorRetry")), M());
1534
+ });
1535
+ })), U = (d) => new Promise((f, y) => {
1536
+ new google.maps.Geocoder().geocode({
1537
+ address: n.value
1538
+ }, (m, O) => {
1539
+ O === "OK" && (m != null && m.length) ? (o.value[0] = m[0].geometry.location.lng(), o.value[1] = m[0].geometry.location.lat(), f({ lng: o.value[0], lat: o.value[1] })) : (z.error(P("thirdPartyMapErrorRetry")), y());
1540
+ });
1541
+ }), T = async () => {
1542
+ var d;
1543
+ r.value = !0, navigator.geolocation && ((d = navigator.geolocation) == null || d.getCurrentPosition((f) => {
1544
+ var M;
1545
+ const y = {
1546
+ lat: f.coords.latitude,
1547
+ lng: f.coords.longitude
1548
+ };
1549
+ (M = t.value) == null || M.panTo(y), c.value = !1, r.value = !1;
1550
+ }, (f) => {
1551
+ z.error(P("获取定位失败")), r.value = !1;
1552
+ }, {
1553
+ // enableHighAccuracy: true,
1554
+ // timeout: 5000,
1555
+ // maximumAge: 0,
1556
+ // enableHighAccuracy: true
1557
+ enableHighAccuracy: !0,
1558
+ timeout: 1e4
1559
+ }));
1560
+ }, g = async (d, f) => {
1561
+ if (u.value.activated = !0, !d) {
1562
+ l.value = [], f([]);
1563
+ return;
1564
+ }
1565
+ let y = {
1566
+ input: d,
1567
+ origin: { lng: parseFloat(o.value[0]), lat: parseFloat(o.value[1]) },
1568
+ sessionToken: x.value
1569
+ };
1570
+ const { suggestions: M } = await k.value.fetchAutocompleteSuggestions(y);
1571
+ if (l.value = [], !M) return f([]);
1572
+ let m = [];
1573
+ await Promise.all(
1574
+ M.map((O) => (async () => {
1575
+ var J, le;
1576
+ let B = (O == null ? void 0 : O.placePrediction).toPlace();
1577
+ await B.fetchFields({
1578
+ fields: [
1579
+ "displayName",
1580
+ "formattedAddress",
1581
+ "location"
1582
+ ]
1583
+ });
1584
+ const ne = (J = B == null ? void 0 : B.location) == null ? void 0 : J.lng(), V = (le = B == null ? void 0 : B.location) == null ? void 0 : le.lat(), K = {
1585
+ // value: placePrediction?.text?.toString() || '',
1586
+ value: B == null ? void 0 : B.formattedAddress,
1587
+ point: { lng: ne, lat: V },
1588
+ info: {
1589
+ name: B == null ? void 0 : B.displayName
1590
+ }
1591
+ };
1592
+ m.push(K);
1593
+ })())
1594
+ ), l.value = m.length > 5 ? m.slice(0, 5) : m, f(l.value, m);
1595
+ };
1596
+ return {
1597
+ getLocationByInputSearch: g,
1598
+ handleSelectAddress: (d) => {
1599
+ n.value = d.value, v.value = d.info, U(d.value).then((f) => {
1600
+ var y;
1601
+ o.value = [f.lng, f.lat], a.value && a.value.setMap(null), a.value = new L({
1602
+ map: t.value,
1603
+ position: f,
1604
+ title: n.value
1605
+ // 鼠标移上去时显示的内容
1606
+ }), (y = t.value) == null || y.panTo(f), c.value = !1;
1607
+ });
1608
+ },
1609
+ getLocationParse: async () => {
1610
+ var d, f;
1611
+ if (l.value.length) {
1612
+ if (n.value = l.value[0].value, !((d = l.value[0]) != null && d.point))
1613
+ return z.error(P("thirdPartyMapErrorRetry"));
1614
+ o.value = [l.value[0].point.lng, l.value[0].point.lat], v.value = l.value[0].info, a.value = new L({
1615
+ map: t.value,
1616
+ position: l.value[0].point,
1617
+ title: n.value
1618
+ // 鼠标移上去时显示的内容
1619
+ }), (f = t.value) == null || f.panTo(l.value[0].point), c.value = !1, u.value.activated = !1;
1620
+ }
1621
+ },
1622
+ getMapInfo: () => ({
1623
+ longitude: o.value[0],
1624
+ latitude: o.value[1],
1625
+ adCode: s.value,
1626
+ address: n.value,
1627
+ addressInfo: v.value
1628
+ }),
1629
+ loadJavascript: A,
1630
+ positionCityLocal: T,
1631
+ showGetLocationBtn: c
1632
+ };
1633
+ }, Sl = (e, t) => {
1634
+ const a = S("gaode"), r = S(), u = S(), l = I(null), n = I(null), o = I(null), s = S(!0), v = S(null), b = S([]), C = Se(() => ({
1635
+ width: e.width ? Q(e.width) : "100%",
1636
+ height: e.height ? Q(e.height) : "100%"
1637
+ })), x = S(""), k = S([]), L = S(""), c = S(), {
1638
+ loadJavascript: i,
1639
+ getLocationByInputSearch: h,
1640
+ handleSelectAddress: A,
1641
+ getLocationParse: R
1642
+ } = ft({
1445
1643
  BMap: l,
1446
- map: u,
1447
- marker: n,
1448
- mapLoading: c,
1449
- $autocomplete: y,
1450
- searchResultList: d,
1451
- innerInput: m,
1452
- innerPoint: L,
1453
- adCode: P
1644
+ map: n,
1645
+ marker: o,
1646
+ mapLoading: s,
1647
+ $autocomplete: v,
1648
+ searchResultList: b,
1649
+ innerInput: x,
1650
+ innerPoint: k,
1651
+ adCode: L,
1652
+ addressInfo: c
1454
1653
  }), {
1455
- loadJavascript: x,
1456
- getLocationByInputSearch: h,
1457
- handleSelectAddress: E,
1654
+ loadJavascript: _,
1655
+ getLocationByInputSearch: $,
1656
+ handleSelectAddress: G,
1458
1657
  getLocationParse: U
1459
- } = rt({
1658
+ } = st({
1659
+ MapGL: l,
1660
+ map: n,
1661
+ marker: o,
1662
+ mapLoading: s,
1663
+ $autocomplete: v,
1664
+ searchResultList: b,
1665
+ innerInput: x,
1666
+ innerPoint: k,
1667
+ adCode: L,
1668
+ addressInfo: c
1669
+ }), {
1670
+ loadJavascript: T,
1671
+ getLocationByInputSearch: g,
1672
+ handleSelectAddress: p,
1673
+ getLocationParse: w,
1674
+ positionCityLocal: j,
1675
+ showGetLocationBtn: d
1676
+ } = Al({
1460
1677
  MapGL: l,
1461
- map: u,
1462
- marker: n,
1463
- mapLoading: c,
1464
- $autocomplete: y,
1465
- searchResultList: d,
1466
- innerInput: m,
1467
- innerPoint: L,
1468
- adCode: P
1469
- }), { mapElement: V, addPlugins: S } = vu(e, t, {
1678
+ map: n,
1679
+ marker: o,
1680
+ mapLoading: s,
1681
+ $autocomplete: v,
1682
+ searchResultList: b,
1683
+ innerInput: x,
1684
+ innerPoint: k,
1685
+ adCode: L,
1686
+ addressInfo: c
1687
+ }), { mapElement: f, addPlugins: y } = Cl(e, t, {
1470
1688
  type: a,
1471
1689
  MapGL: l,
1472
- map: u,
1473
- innerPoint: L,
1474
- innerInput: m,
1475
- adCode: P
1476
- }), f = () => {
1477
- a.value === "baidu" && s(r.value, { clickStream: !e.clickStream, mapOpt: e.mapOpt }, g), a.value === "gaode" && x(
1690
+ map: n,
1691
+ innerPoint: k,
1692
+ innerInput: x,
1693
+ adCode: L,
1694
+ addressInfo: c
1695
+ }), M = () => {
1696
+ a.value === "baidu" && i(r.value, { clickStream: !e.clickStream, mapOpt: e.mapOpt }, O), a.value === "gaode" && _(
1478
1697
  r.value,
1479
- o.value,
1698
+ u.value,
1480
1699
  { clickStream: !e.clickStream, mapOpt: e.mapOpt },
1481
- g
1700
+ O
1701
+ ), a.value === "google" && T(
1702
+ r.value,
1703
+ u.value,
1704
+ { clickStream: !e.clickStream, mapOpt: e.mapOpt },
1705
+ O
1482
1706
  );
1483
- }, v = async (M) => {
1484
- const [O, j] = await je(M);
1485
- if (O) {
1486
- c.value = !1;
1707
+ }, m = async (V) => {
1708
+ const [K, J] = await Ge(V);
1709
+ if (K) {
1710
+ s.value = !1;
1487
1711
  return;
1488
1712
  }
1489
- if (!O && !j) {
1490
- t("no-config-map", k("暂未配置地图")), c.value = !1;
1713
+ if (!K && !J) {
1714
+ t("no-config-map", P("暂未配置地图")), s.value = !1;
1491
1715
  return;
1492
1716
  }
1493
- return j;
1717
+ return J;
1494
1718
  };
1495
- _e(async () => {
1496
- var M, O, j, B, z;
1497
- if (e.defaultLongitude && e.defaultLatitude && (L.value = [e.defaultLongitude, e.defaultLatitude]), m.value = e.defaultAddress ?? "", e != null && e.sdkConfig && ((M = e == null ? void 0 : e.sdkConfig) != null && M.akValue))
1498
- a.value = ((O = e.sdkConfig) == null ? void 0 : O.mapType) ?? "gaode", r.value = (j = e.sdkConfig) == null ? void 0 : j.akValue, o.value = (B = e.sdkConfig) == null ? void 0 : B.secretKey;
1719
+ Oe(async () => {
1720
+ var V, K, J, le, Ve;
1721
+ if (e.defaultLongitude && e.defaultLatitude && (k.value = [e.defaultLongitude, e.defaultLatitude]), x.value = e.defaultAddress ?? "", e != null && e.sdkConfig && ((V = e == null ? void 0 : e.sdkConfig) != null && V.akValue))
1722
+ a.value = ((K = e.sdkConfig) == null ? void 0 : K.mapType) ?? "gaode", r.value = (J = e.sdkConfig) == null ? void 0 : J.akValue, u.value = (le = e.sdkConfig) == null ? void 0 : le.secretKey;
1499
1723
  else {
1500
- const I = await v((z = e == null ? void 0 : e.sdkConfig) == null ? void 0 : z.mapType);
1501
- I && (a.value = (I == null ? void 0 : I.mapType) ?? "gaode", r.value = I == null ? void 0 : I.akVal, o.value = I == null ? void 0 : I.secretK);
1724
+ const F = await m((Ve = e == null ? void 0 : e.sdkConfig) == null ? void 0 : Ve.mapType);
1725
+ F && (a.value = (F == null ? void 0 : F.mapType) ?? "gaode", r.value = F == null ? void 0 : F.akVal, u.value = F == null ? void 0 : F.secretK);
1502
1726
  }
1503
- f();
1727
+ M();
1504
1728
  });
1505
- const g = () => {
1506
- V.value = u.value, S(), a.value === "baidu" && u.value.addEventListener("tilesloaded", () => {
1507
- t("update:mapElement", V.value);
1508
- }), a.value === "gaode" && u.value.on("complete", () => {
1509
- t("update:mapElement", V.value);
1510
- });
1729
+ const O = () => {
1730
+ f.value = n.value, y(), a.value === "baidu" && n.value.addEventListener("tilesloaded", () => {
1731
+ t("update:mapElement", f.value);
1732
+ }), a.value === "gaode" && n.value.on("complete", () => {
1733
+ t("update:mapElement", f.value);
1734
+ }), a.value === "google" && t("update:mapElement", f.value);
1511
1735
  };
1512
1736
  return {
1513
- mapStyle: _,
1514
- innerInput: m,
1515
- getLocationByInputSearch: (M, O) => {
1516
- a.value === "baidu" && i(M, O), a.value === "gaode" && h(M, O);
1737
+ mapStyle: C,
1738
+ innerInput: x,
1739
+ getLocationByInputSearch: (V, K) => {
1740
+ a.value === "baidu" && h(V, K), a.value === "gaode" && $(V, K), a.value === "google" && g(V, K);
1517
1741
  },
1518
- handleSelectAddress: (M) => {
1519
- a.value === "baidu" && p(M), a.value === "gaode" && E(M);
1742
+ handleSelectAddress: (V) => {
1743
+ a.value === "baidu" && A(V), a.value === "gaode" && G(V), a.value === "google" && p(V);
1520
1744
  },
1521
1745
  getLocationParse: () => {
1522
- a.value === "baidu" && b(), a.value === "gaode" && U();
1746
+ a.value === "baidu" && R(), a.value === "gaode" && U(), a.value === "google" && w();
1523
1747
  },
1524
- mapLoading: c,
1525
- $autocomplete: y
1748
+ mapLoading: s,
1749
+ $autocomplete: v,
1750
+ googlePositionCityLocal: j,
1751
+ showGetLocationBtn: d
1526
1752
  };
1527
- }, gu = { class: "search-input" }, hu = { id: "map" }, yu = /* @__PURE__ */ me({
1753
+ }, Ol = { class: "search-input" }, Tl = { class: "location-icon1" }, $l = { id: "map" }, jl = /* @__PURE__ */ Ae({
1528
1754
  __name: "mixMap",
1529
1755
  props: {
1530
1756
  defaultAddress: {},
@@ -1542,59 +1768,85 @@ const tt = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Bn, "./g
1542
1768
  emits: ["update:mapElement", "no-config-map", "click-custom-component"],
1543
1769
  setup(e, { emit: t }) {
1544
1770
  const a = e, r = t, {
1545
- mapStyle: o,
1771
+ mapStyle: u,
1546
1772
  innerInput: l,
1547
- getLocationByInputSearch: u,
1548
- handleSelectAddress: n,
1549
- getLocationParse: c,
1550
- mapLoading: y,
1551
- $autocomplete: d
1552
- } = pu(a, r);
1553
- return (_, m) => {
1554
- const L = Oe, P = Te;
1555
- return xe(), we(
1773
+ getLocationByInputSearch: n,
1774
+ handleSelectAddress: o,
1775
+ getLocationParse: s,
1776
+ mapLoading: v,
1777
+ $autocomplete: b,
1778
+ googlePositionCityLocal: C,
1779
+ showGetLocationBtn: x
1780
+ } = Sl(a, r);
1781
+ return (k, L) => {
1782
+ const c = Pe, i = ke;
1783
+ return Te(), $e(
1556
1784
  "div",
1557
1785
  {
1558
1786
  class: "das-map",
1559
- style: Me(R(o))
1787
+ style: je(D(u))
1560
1788
  },
1561
1789
  [
1562
- K(Z(
1790
+ Z(W(
1563
1791
  "div",
1564
- gu,
1792
+ Ol,
1565
1793
  [
1566
- K(Ae(L, {
1794
+ Z(de(c, {
1567
1795
  ref_key: "$autocomplete",
1568
- ref: d,
1569
- modelValue: R(l),
1570
- "onUpdate:modelValue": m[0] || (m[0] = (s) => Zt(l) ? l.value = s : null),
1571
- modelModifiers: { trim: !0 },
1572
- "fetch-suggestions": R(u),
1573
- placeholder: R(k)("请输入位置"),
1796
+ ref: b,
1797
+ modelValue: D(l),
1798
+ "onUpdate:modelValue": L[0] || (L[0] = (h) => ta(l) ? l.value = h : null),
1799
+ "fetch-suggestions": D(n),
1800
+ placeholder: D(P)("请输入位置"),
1574
1801
  style: { width: "100%" },
1575
1802
  "trigger-on-focus": !1,
1576
- onSelect: R(n),
1577
- onKeyup: Se(R(c), ["enter", "native"]),
1803
+ onSelect: D(o),
1804
+ onKeyup: Le(D(s), ["enter", "native"]),
1578
1805
  clearable: ""
1579
1806
  }, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
1580
- [R($e)]
1807
+ [D(Re)]
1581
1808
  ])
1582
1809
  ],
1583
1810
  512
1584
1811
  /* NEED_PATCH */
1585
1812
  ), [
1586
- [Wt, a.showSearch]
1813
+ [Ke, a.showSearch]
1587
1814
  ]),
1588
- K(Z(
1815
+ Z(W(
1589
1816
  "div",
1590
- hu,
1817
+ Tl,
1818
+ [
1819
+ de(D(la), {
1820
+ block: "",
1821
+ size: "large",
1822
+ onClick: D(C)
1823
+ }, {
1824
+ default: aa(() => [
1825
+ oa(
1826
+ ra(D(P)("Please-Click-Get-Location")),
1827
+ 1
1828
+ /* TEXT */
1829
+ )
1830
+ ]),
1831
+ _: 1
1832
+ /* STABLE */
1833
+ }, 8, ["onClick"])
1834
+ ],
1835
+ 512
1836
+ /* NEED_PATCH */
1837
+ ), [
1838
+ [Ke, D(x)]
1839
+ ]),
1840
+ Z(W(
1841
+ "div",
1842
+ $l,
1591
1843
  null,
1592
1844
  512
1593
1845
  /* NEED_PATCH */
1594
1846
  ), [
1595
1847
  [
1596
- P,
1597
- R(y),
1848
+ i,
1849
+ D(v),
1598
1850
  void 0,
1599
1851
  { lock: !0 }
1600
1852
  ]
@@ -1605,13 +1857,38 @@ const tt = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Bn, "./g
1605
1857
  );
1606
1858
  };
1607
1859
  }
1608
- }), mu = /* @__PURE__ */ Le(yu, [["__scopeId", "data-v-ecb395cb"]]), $u = Ce(ra), ju = () => A(null), Lu = Ce(la), Eu = () => A(null), Pu = Ce(mu), Ru = () => A(null), Iu = { title: "Map 地图" };
1860
+ }), Ll = /* @__PURE__ */ Be(jl, [["__scopeId", "data-v-9c0f471e"]]), El = {
1861
+ 请输入位置: { "zh-CN": "请输入位置", en: "Please enter location", _appCode: "framework" },
1862
+ 获取地图配置信息失败: {
1863
+ "zh-CN": "获取地图配置信息失败",
1864
+ en: "The map configuration information failed to be obtained",
1865
+ _appCode: "framework"
1866
+ },
1867
+ 暂未配置地图: { "zh-CN": "暂未配置地图", en: "Map Not Configured", _appCode: "framework" },
1868
+ thirdPartyMapErrorRetry: {
1869
+ "zh-CN": "第三方地图配置参数错误或地址信息无效,请检查后再重试",
1870
+ en: "The configuration parameters of the third-party map are incorrect or the address information is invalid. please check and try again",
1871
+ _appCode: "framework"
1872
+ },
1873
+ "Please-Click-Get-Location": {
1874
+ "zh-CN": "请点击获取位置",
1875
+ en: "Please click get location",
1876
+ _appCode: "framework"
1877
+ },
1878
+ 获取定位失败: {
1879
+ "zh-CN": "获取定位失败",
1880
+ en: "The location failed to be obtained",
1881
+ _appCode: "framework"
1882
+ }
1883
+ };
1884
+ na(El);
1885
+ const Fl = Ee(ga), Il = () => S(null), Hl = Ee(ma), Jl = () => S(null), Zl = Ee(Ll), Wl = () => S(null), ql = { title: "Map 地图" };
1609
1886
  export {
1610
- Lu as DasBaiduMap,
1611
- Eu as DasBaiduMapRef,
1612
- $u as DasGaodeMap,
1613
- ju as DasGaodeMapRef,
1614
- Pu as DasMap,
1615
- Ru as DasMapRef,
1616
- Iu as default
1887
+ Hl as DasBaiduMap,
1888
+ Jl as DasBaiduMapRef,
1889
+ Fl as DasGaodeMap,
1890
+ Il as DasGaodeMapRef,
1891
+ Zl as DasMap,
1892
+ Wl as DasMapRef,
1893
+ ql as default
1617
1894
  };