@das-fed/ui 6.4.0-hot.9.1 → 6.4.0-test.10

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