@das-fed/ui 6.4.0-test.3.2 → 6.4.0-test.6

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