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