@das-fed/ui 6.4.0-hot.23 → 6.4.0-hot.25
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/package.json +7 -7
- package/packages/business-components/device-panel/index.js +37397 -37395
- package/packages/business-components/device-panel/index.js.gz +0 -0
- 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/export-button/index.js +60 -60
- package/packages/business-components/export-button/index.js.gz +0 -0
- 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.js +239 -235
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/model-table-dialog/index.js +37 -37
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- 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/index.js +176 -176
- 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-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/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/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.js +3 -3
- 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.js +301 -273
- 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/calendar/index.js +56 -56
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/color-picker/index.js +41 -41
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/style.css +1 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/date-picker/index.js +444 -444
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dimple-layout/index.js +2299 -2293
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +26 -25
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/input/index.js +73 -73
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/loading/index.js +66 -65
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/index.js +358 -355
- 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/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/progress/index.js +80 -80
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/progress/style.css +1 -1
- package/packages/components/progress/style.css.gz +0 -0
- package/packages/components/select/index.js +102 -102
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/spin/index.js +31 -30
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/index.js +2419 -2418
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tooltip/index.js +23 -22
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/index.js +1428 -1427
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +9 -11
- package/packages/components/tree-select/index.js +274 -274
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/virtual-tree/index.js +64 -64
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/virtual-tree/src/App.vue.d.ts +4 -12
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/map/style.css';
|
|
2
|
-
import { ref as A, defineComponent 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
3
|
import { withInstall as Ce } from "@das-fed/utils/with-install/index";
|
|
4
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 { t as
|
|
8
|
+
import { t as k } from "@das-fed/web/packages/i18n/index";
|
|
9
9
|
import { vDasTooltip as $e } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
10
10
|
import { DasMessage as D } from "@das-fed/ui/packages/components/message/index";
|
|
11
11
|
import { createService as at } from "@das-fed/utils/create-api-service";
|
|
12
|
-
const
|
|
12
|
+
const W = (e) => {
|
|
13
13
|
if (e)
|
|
14
14
|
return typeof e == "string" && hasCssUnit(e) ? e : e + "px";
|
|
15
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(),
|
|
17
|
-
let
|
|
18
|
-
const
|
|
19
|
-
|
|
16
|
+
const d = A(), _ = A();
|
|
17
|
+
let m;
|
|
18
|
+
const L = (S, f, v, g) => {
|
|
19
|
+
_.value = v, g && (m = g);
|
|
20
20
|
const C = document.createElement("script");
|
|
21
21
|
if (C.src = `${location.protocol}//webapi.amap.com/maps?v=1.4.15&key=${S}&callback=onLoad`, f) {
|
|
22
|
-
const
|
|
23
|
-
|
|
22
|
+
const w = document.createElement("script");
|
|
23
|
+
w.innerHTML = `window._AMapSecurityConfig = {
|
|
24
24
|
securityJsCode: "${f}",
|
|
25
|
-
}`, document.head.appendChild(
|
|
25
|
+
}`, document.head.appendChild(w);
|
|
26
26
|
}
|
|
27
27
|
document.head.appendChild(C), window.onLoad = () => {
|
|
28
|
-
|
|
28
|
+
P();
|
|
29
29
|
};
|
|
30
|
-
},
|
|
30
|
+
}, P = () => {
|
|
31
31
|
var S, f;
|
|
32
32
|
if (e.value = AMap, !(typeof e.value > "u")) {
|
|
33
33
|
try {
|
|
34
|
-
const v = ((S =
|
|
34
|
+
const v = ((S = _.value) == null ? void 0 : S.mapOpt) ?? {};
|
|
35
35
|
t.value = new AMap.Map("map", {
|
|
36
36
|
zoom: 15,
|
|
37
37
|
...v
|
|
@@ -47,7 +47,7 @@ const Z = (e) => {
|
|
|
47
47
|
liteStyle: !0
|
|
48
48
|
})
|
|
49
49
|
);
|
|
50
|
-
}), i(), (f =
|
|
50
|
+
}), i(), (f = _.value) != null && f.clickStream || s(), r.value = !1, m && m();
|
|
51
51
|
}
|
|
52
52
|
}, s = () => {
|
|
53
53
|
t.value.on("click", (S) => {
|
|
@@ -59,7 +59,7 @@ const Z = (e) => {
|
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
}, i = async () => {
|
|
62
|
-
!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) => {
|
|
63
63
|
if (f && f.length) {
|
|
64
64
|
const v = f.find(
|
|
65
65
|
(g) => g.value === u.value || g.info.name === u.value
|
|
@@ -80,37 +80,37 @@ const Z = (e) => {
|
|
|
80
80
|
AMap.service("AMap.Geocoder", () => {
|
|
81
81
|
new AMap.Geocoder({
|
|
82
82
|
city: "全国"
|
|
83
|
-
}).getAddress(v, (
|
|
84
|
-
var O,
|
|
85
|
-
if (
|
|
83
|
+
}).getAddress(v, ($, M) => {
|
|
84
|
+
var O, j;
|
|
85
|
+
if ($ === "complete" && (M != null && M.regeocode)) {
|
|
86
86
|
if (f) {
|
|
87
|
-
const { province: B = "", city: z = "", district: I = "", township: De = "" } =
|
|
88
|
-
u.value =
|
|
87
|
+
const { province: B = "", city: z = "", district: I = "", township: De = "" } = M.regeocode.addressComponent;
|
|
88
|
+
u.value = M.regeocode.formattedAddress ?? "", d.value = {
|
|
89
89
|
district: B + z + I,
|
|
90
90
|
address: De,
|
|
91
91
|
name: u.value.replace(B, "").replace(z, "").replace(I, "").replace(De, "")
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
c.value = ((
|
|
94
|
+
c.value = ((j = (O = M.regeocode) == null ? void 0 : O.addressComponent) == null ? void 0 : j.adcode) ?? "", g(M.regeocode);
|
|
95
95
|
} else
|
|
96
96
|
D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试"), C();
|
|
97
97
|
});
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
|
-
},
|
|
100
|
+
}, b = (S) => new Promise((f, v) => {
|
|
101
101
|
AMap.service("AMap.Geocoder", () => {
|
|
102
102
|
new AMap.Geocoder({
|
|
103
103
|
city: "全国"
|
|
104
|
-
}).getLocation(S, (C,
|
|
105
|
-
var
|
|
106
|
-
if (C === "complete" && ((
|
|
107
|
-
const O =
|
|
108
|
-
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);
|
|
109
109
|
} else
|
|
110
110
|
D.error("第三方地图配置参数错误或地址信息无效,请检查后再重试"), v();
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
|
-
}),
|
|
113
|
+
}), x = () => {
|
|
114
114
|
new AMap.CitySearch().getLocalCity((f, v) => {
|
|
115
115
|
if (f === "complete" && v.info === "OK") {
|
|
116
116
|
if (v && v.city && v.bounds) {
|
|
@@ -129,29 +129,29 @@ const Z = (e) => {
|
|
|
129
129
|
var v = {
|
|
130
130
|
city: "全国"
|
|
131
131
|
}, g = new AMap.Autocomplete(v);
|
|
132
|
-
g.search(S, function(C,
|
|
133
|
-
if (l.value = [], !
|
|
134
|
-
let
|
|
135
|
-
if (
|
|
136
|
-
|
|
137
|
-
const { district: O = "", address:
|
|
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;
|
|
138
138
|
return {
|
|
139
|
-
value: O +
|
|
139
|
+
value: O + j + B,
|
|
140
140
|
point: z,
|
|
141
141
|
info: {
|
|
142
142
|
district: O,
|
|
143
|
-
address:
|
|
143
|
+
address: j,
|
|
144
144
|
name: B
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
|
-
}), l.value =
|
|
147
|
+
}), l.value = $.length > 5 ? $.slice(0, 5) : $, f(l.value, $);
|
|
148
148
|
});
|
|
149
149
|
});
|
|
150
150
|
};
|
|
151
151
|
return {
|
|
152
152
|
getLocationByInputSearch: h,
|
|
153
153
|
handleSelectAddress: (S) => {
|
|
154
|
-
u.value = S.value, d.value = S.info,
|
|
154
|
+
u.value = S.value, d.value = S.info, b(S.value).then((f) => {
|
|
155
155
|
n.value = [f.lng, f.lat], a.value && t.value.remove(a.value), a.value = new AMap.Marker({
|
|
156
156
|
position: n.value,
|
|
157
157
|
title: u.value
|
|
@@ -177,7 +177,7 @@ const Z = (e) => {
|
|
|
177
177
|
address: u.value,
|
|
178
178
|
addressInfo: d.value
|
|
179
179
|
}),
|
|
180
|
-
loadJavascript:
|
|
180
|
+
loadJavascript: L
|
|
181
181
|
};
|
|
182
182
|
}, nt = "v1", qt = at(`/api/tool/map/${nt}`), Yt = at(`/api/system-config/${nt}`), Xt = qt.get("/regeo"), Qt = Yt.get("/platform/map/list"), je = async (e) => {
|
|
183
183
|
var l, u, n, c, y;
|
|
@@ -188,7 +188,7 @@ const Z = (e) => {
|
|
|
188
188
|
if ((o == null ? void 0 : o.length) == 0) return [null, t];
|
|
189
189
|
if ((o == null ? void 0 : o.length) > 1) {
|
|
190
190
|
let d = [];
|
|
191
|
-
e == "baidu" ? d = o.filter((
|
|
191
|
+
e == "baidu" ? d = o.filter((_) => _.serviceProvider == 1) : d = o.filter((_) => _.serviceProvider == 2), t = {
|
|
192
192
|
mapType: e,
|
|
193
193
|
akVal: (l = d[0]) == null ? void 0 : l.akValue,
|
|
194
194
|
secretK: (u = d[0]) == null ? void 0 : u.securityKey
|
|
@@ -199,7 +199,7 @@ const Z = (e) => {
|
|
|
199
199
|
secretK: (y = o[0]) == null ? void 0 : y.securityKey
|
|
200
200
|
});
|
|
201
201
|
return [null, t];
|
|
202
|
-
}, ea = { class: "search-input" }, ta = { id: "map" }, aa = /* @__PURE__ */
|
|
202
|
+
}, ea = { class: "search-input" }, ta = { id: "map" }, aa = /* @__PURE__ */ me({
|
|
203
203
|
__name: "gaodeMap",
|
|
204
204
|
props: {
|
|
205
205
|
akValue: {},
|
|
@@ -212,10 +212,10 @@ const Z = (e) => {
|
|
|
212
212
|
dev: { type: Boolean }
|
|
213
213
|
},
|
|
214
214
|
setup(e, { expose: t }) {
|
|
215
|
-
const a = e, r = G(null), o = G(null), l = G(null), u = A(!0), n = A(null), c = A([]), y =
|
|
216
|
-
width: a.width ?
|
|
217
|
-
height: a.height ?
|
|
218
|
-
})), 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(
|
|
219
219
|
{
|
|
220
220
|
MapGL: r,
|
|
221
221
|
map: o,
|
|
@@ -224,55 +224,55 @@ const Z = (e) => {
|
|
|
224
224
|
$autocomplete: n,
|
|
225
225
|
searchResultList: c,
|
|
226
226
|
innerInput: d,
|
|
227
|
-
innerPoint:
|
|
228
|
-
adCode:
|
|
227
|
+
innerPoint: _,
|
|
228
|
+
adCode: m
|
|
229
229
|
}
|
|
230
|
-
),
|
|
231
|
-
const
|
|
230
|
+
), b = async () => {
|
|
231
|
+
const x = {
|
|
232
232
|
akValue: a.akValue ?? "",
|
|
233
233
|
secretKey: a.secretKey ?? ""
|
|
234
234
|
};
|
|
235
235
|
{
|
|
236
236
|
const [h, E] = await je("gaode");
|
|
237
|
-
h && D.error(
|
|
237
|
+
h && D.error(k("获取地图配置信息失败")), !h && !E && D.error(k("暂未配置地图")), E && (x.akValue || (x.akValue = E.akVal), x.secretKey || (x.secretKey = E.secretK));
|
|
238
238
|
}
|
|
239
|
-
return
|
|
239
|
+
return x;
|
|
240
240
|
};
|
|
241
|
-
return
|
|
242
|
-
a.defaultLongitude && a.defaultLatitude && (
|
|
243
|
-
const { akValue:
|
|
244
|
-
p(
|
|
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);
|
|
245
245
|
}), t({
|
|
246
246
|
/** 获取经纬度、地址、行政区划编码 */
|
|
247
247
|
getMapInfo: i
|
|
248
|
-
}), (
|
|
249
|
-
const E = Oe,
|
|
250
|
-
return
|
|
248
|
+
}), (x, h) => {
|
|
249
|
+
const E = Oe, U = Te;
|
|
250
|
+
return xe(), we(
|
|
251
251
|
"div",
|
|
252
252
|
{
|
|
253
253
|
class: "das-map",
|
|
254
254
|
style: Me(y.value)
|
|
255
255
|
},
|
|
256
256
|
[
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
Z("div", ea, [
|
|
258
|
+
K(Ae(E, {
|
|
259
259
|
ref_key: "$autocomplete",
|
|
260
260
|
ref: n,
|
|
261
261
|
modelValue: d.value,
|
|
262
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
262
|
+
"onUpdate:modelValue": h[0] || (h[0] = (V) => d.value = V),
|
|
263
263
|
modelModifiers: { trim: !0 },
|
|
264
|
-
"fetch-suggestions":
|
|
265
|
-
placeholder:
|
|
264
|
+
"fetch-suggestions": R(L),
|
|
265
|
+
placeholder: R(k)("请输入位置"),
|
|
266
266
|
style: { width: "100%" },
|
|
267
267
|
"trigger-on-focus": !1,
|
|
268
|
-
onSelect: P
|
|
269
|
-
onKeyup: Se(
|
|
268
|
+
onSelect: R(P),
|
|
269
|
+
onKeyup: Se(R(s), ["enter", "native"]),
|
|
270
270
|
clearable: ""
|
|
271
271
|
}, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
|
|
272
|
-
[
|
|
272
|
+
[R($e)]
|
|
273
273
|
])
|
|
274
274
|
]),
|
|
275
|
-
|
|
275
|
+
K(Z(
|
|
276
276
|
"div",
|
|
277
277
|
ta,
|
|
278
278
|
null,
|
|
@@ -280,7 +280,7 @@ const Z = (e) => {
|
|
|
280
280
|
/* NEED_PATCH */
|
|
281
281
|
), [
|
|
282
282
|
[
|
|
283
|
-
|
|
283
|
+
U,
|
|
284
284
|
u.value,
|
|
285
285
|
void 0,
|
|
286
286
|
{ lock: !0 }
|
|
@@ -298,21 +298,21 @@ const Z = (e) => {
|
|
|
298
298
|
a[r] = o;
|
|
299
299
|
return a;
|
|
300
300
|
}, ra = /* @__PURE__ */ Le(aa, [["__scopeId", "data-v-f5fbb2a3"]]), ot = ({ BMap: e, map: t, marker: a, mapLoading: r, $autocomplete: o, searchResultList: l, innerInput: u, innerPoint: n, adCode: c }, y) => {
|
|
301
|
-
const d = A(),
|
|
302
|
-
let
|
|
303
|
-
const
|
|
304
|
-
|
|
301
|
+
const d = A(), _ = A();
|
|
302
|
+
let m;
|
|
303
|
+
const L = (f, v, g) => {
|
|
304
|
+
_.value = v, g && (m = g);
|
|
305
305
|
const C = document.createElement("script");
|
|
306
306
|
C.src = `${location.protocol}//api.map.baidu.com/getscript?type=webgl&v=3.0&ak=${f}&services=&t=20200109192240`, C.onload = () => {
|
|
307
|
-
|
|
307
|
+
P();
|
|
308
308
|
}, document.body.append(C);
|
|
309
|
-
},
|
|
309
|
+
}, P = () => {
|
|
310
310
|
var v, g;
|
|
311
311
|
e.value = window.BMapGL;
|
|
312
312
|
try {
|
|
313
|
-
t.value = new e.value.Map("map", ((v =
|
|
313
|
+
t.value = new e.value.Map("map", ((v = _.value) == null ? void 0 : v.mapOpt) ?? {});
|
|
314
314
|
} catch {
|
|
315
|
-
r.value = !1, D.error(
|
|
315
|
+
r.value = !1, D.error(k("第三方地图配置参数错误或地址信息无效,请检查后再重试"));
|
|
316
316
|
}
|
|
317
317
|
const f = new e.value.NavigationControl({
|
|
318
318
|
// @ts-ignore
|
|
@@ -320,13 +320,13 @@ const Z = (e) => {
|
|
|
320
320
|
// @ts-ignore
|
|
321
321
|
type: BMAP_NAVIGATION_CONTROL_ZOOM
|
|
322
322
|
});
|
|
323
|
-
t.value.addControl(f), t.value.enableScrollWheelZoom(!0), i(), (g =
|
|
323
|
+
t.value.addControl(f), t.value.enableScrollWheelZoom(!0), i(), (g = _.value) != null && g.clickStream || p(), r.value = !1, m && m();
|
|
324
324
|
}, s = (f) => new Promise((v, g) => {
|
|
325
|
-
new e.value.Geocoder().getPoint(f, (
|
|
326
|
-
!
|
|
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));
|
|
327
327
|
});
|
|
328
328
|
}), i = async () => {
|
|
329
|
-
!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) => {
|
|
330
330
|
if (v && v.length) {
|
|
331
331
|
const g = v.find(
|
|
332
332
|
(C) => C.value === u.value || C.info.name === u.value
|
|
@@ -343,27 +343,27 @@ const Z = (e) => {
|
|
|
343
343
|
t.value.addEventListener("click", (f) => {
|
|
344
344
|
a.value && t.value.clearOverlays();
|
|
345
345
|
const v = f.latlng.lng, g = f.latlng.lat;
|
|
346
|
-
n.value = [v, g],
|
|
346
|
+
n.value = [v, g], b(v, g, !0);
|
|
347
347
|
});
|
|
348
|
-
},
|
|
349
|
-
const
|
|
350
|
-
|
|
348
|
+
}, b = (f, v, g = !1, C = "default") => new Promise((w, $) => {
|
|
349
|
+
const M = new e.value.Geocoder(), O = new e.value.Point(f, v);
|
|
350
|
+
M.getLocation(O, (j) => {
|
|
351
351
|
if (g) {
|
|
352
|
-
u.value =
|
|
353
|
-
const { province: B = "", city: z = "", district: I = "" } =
|
|
352
|
+
u.value = j.address;
|
|
353
|
+
const { province: B = "", city: z = "", district: I = "" } = j.addressComponents;
|
|
354
354
|
d.value = {
|
|
355
355
|
province: B,
|
|
356
356
|
city: z,
|
|
357
357
|
address: z + I,
|
|
358
|
-
name:
|
|
358
|
+
name: j.address.replace(B, "").replace(z, "").replace(I, "")
|
|
359
359
|
};
|
|
360
360
|
}
|
|
361
|
-
|
|
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("第三方地图配置参数错误或地址信息无效,请检查后再重试")), $());
|
|
362
362
|
});
|
|
363
|
-
}),
|
|
363
|
+
}), x = () => {
|
|
364
364
|
new e.value.LocalCity().get((v) => {
|
|
365
365
|
const g = v.center;
|
|
366
|
-
if (!v.center) return D.error(
|
|
366
|
+
if (!v.center) return D.error(k("第三方地图配置参数错误或地址信息无效,请检查后再重试"));
|
|
367
367
|
a.value && t.value.clearOverlays();
|
|
368
368
|
const C = new e.value.Point(g.lng, g.lat);
|
|
369
369
|
t.value.centerAndZoom(C, 13);
|
|
@@ -375,43 +375,43 @@ const Z = (e) => {
|
|
|
375
375
|
}
|
|
376
376
|
new e.value.LocalSearch(t.value, {
|
|
377
377
|
onSearchComplete: (C) => {
|
|
378
|
-
let
|
|
379
|
-
for (let
|
|
380
|
-
|
|
381
|
-
if (!
|
|
382
|
-
|
|
383
|
-
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 = {} } = $;
|
|
384
384
|
return {
|
|
385
|
-
value:
|
|
385
|
+
value: M == O ? M : M + O,
|
|
386
386
|
point: z,
|
|
387
387
|
info: {
|
|
388
|
-
province:
|
|
388
|
+
province: j,
|
|
389
389
|
city: B,
|
|
390
|
-
address:
|
|
390
|
+
address: M,
|
|
391
391
|
name: O
|
|
392
392
|
}
|
|
393
393
|
};
|
|
394
|
-
}), l.value =
|
|
394
|
+
}), l.value = w.length > 5 ? w.slice(0, 5) : w, v(l.value, w);
|
|
395
395
|
}
|
|
396
396
|
}).search(f);
|
|
397
397
|
}, E = (f) => {
|
|
398
398
|
var v, g;
|
|
399
|
-
u.value = f.value, d.value = f.info,
|
|
400
|
-
},
|
|
399
|
+
u.value = f.value, d.value = f.info, b((v = f.point) == null ? void 0 : v.lng, (g = f.point) == null ? void 0 : g.lat);
|
|
400
|
+
}, U = () => {
|
|
401
401
|
var f;
|
|
402
402
|
if (!l.value.length)
|
|
403
|
-
return D.error(
|
|
403
|
+
return D.error(k("第三方地图配置参数错误或地址信息无效,请检查后再重试"));
|
|
404
404
|
if (u.value = l.value[0].value, d.value = l.value[0].info, !((f = l.value[0]) != null && f.point))
|
|
405
|
-
return D.error(
|
|
406
|
-
n.value = [l.value[0].point.lng, l.value[0].point.lat],
|
|
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
408
|
const [g, C] = await Xt().run({ longitude: f, latitude: v });
|
|
409
409
|
g || (c.value = C.areaCode);
|
|
410
410
|
};
|
|
411
411
|
return {
|
|
412
412
|
getLocationByInputSearch: h,
|
|
413
413
|
handleSelectAddress: E,
|
|
414
|
-
getLocationParse:
|
|
414
|
+
getLocationParse: U,
|
|
415
415
|
getMapInfo: () => ({
|
|
416
416
|
longitude: n.value[0],
|
|
417
417
|
latitude: n.value[1],
|
|
@@ -419,9 +419,9 @@ const Z = (e) => {
|
|
|
419
419
|
address: u.value,
|
|
420
420
|
addressInfo: d.value
|
|
421
421
|
}),
|
|
422
|
-
loadJavascript:
|
|
422
|
+
loadJavascript: L
|
|
423
423
|
};
|
|
424
|
-
}, na = { class: "search-input" }, oa = { id: "map" }, ua = /* @__PURE__ */
|
|
424
|
+
}, na = { class: "search-input" }, oa = { id: "map" }, ua = /* @__PURE__ */ me({
|
|
425
425
|
__name: "baiduMap",
|
|
426
426
|
props: {
|
|
427
427
|
akValue: {},
|
|
@@ -434,10 +434,10 @@ const Z = (e) => {
|
|
|
434
434
|
dev: { type: Boolean }
|
|
435
435
|
},
|
|
436
436
|
setup(e, { expose: t }) {
|
|
437
|
-
const a = e, r = G(null), o = G(null), l = G(null), u = A(!0), n = A(null), c = A([]), y =
|
|
438
|
-
width: a.width ?
|
|
439
|
-
height: a.height ?
|
|
440
|
-
})), 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(
|
|
441
441
|
{
|
|
442
442
|
BMap: r,
|
|
443
443
|
map: o,
|
|
@@ -446,49 +446,49 @@ const Z = (e) => {
|
|
|
446
446
|
$autocomplete: n,
|
|
447
447
|
searchResultList: c,
|
|
448
448
|
innerInput: d,
|
|
449
|
-
innerPoint:
|
|
450
|
-
adCode:
|
|
449
|
+
innerPoint: _,
|
|
450
|
+
adCode: m
|
|
451
451
|
}
|
|
452
|
-
),
|
|
452
|
+
), b = async () => {
|
|
453
453
|
if (a.akValue) return a.akValue;
|
|
454
|
-
const [
|
|
455
|
-
return
|
|
454
|
+
const [x, h] = await je("baidu");
|
|
455
|
+
return x ? (D.error(k("获取地图配置信息失败")), "") : !x && !h ? (D.error(k("暂未配置地图")), "") : h.akVal;
|
|
456
456
|
};
|
|
457
|
-
return
|
|
458
|
-
a.defaultLongitude && a.defaultLatitude && (
|
|
459
|
-
const
|
|
460
|
-
p(
|
|
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);
|
|
461
461
|
}), t({
|
|
462
462
|
// 获取经纬度、地址、行政区划信息
|
|
463
463
|
getMapInfo: i
|
|
464
|
-
}), (
|
|
465
|
-
const E = Oe,
|
|
466
|
-
return
|
|
464
|
+
}), (x, h) => {
|
|
465
|
+
const E = Oe, U = Te;
|
|
466
|
+
return xe(), we(
|
|
467
467
|
"div",
|
|
468
468
|
{
|
|
469
469
|
class: "das-map",
|
|
470
470
|
style: Me(y.value)
|
|
471
471
|
},
|
|
472
472
|
[
|
|
473
|
-
|
|
474
|
-
|
|
473
|
+
Z("div", na, [
|
|
474
|
+
K(Ae(E, {
|
|
475
475
|
ref_key: "$autocomplete",
|
|
476
476
|
ref: n,
|
|
477
477
|
modelValue: d.value,
|
|
478
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
478
|
+
"onUpdate:modelValue": h[0] || (h[0] = (V) => d.value = V),
|
|
479
479
|
modelModifiers: { trim: !0 },
|
|
480
|
-
"fetch-suggestions":
|
|
481
|
-
placeholder:
|
|
480
|
+
"fetch-suggestions": R(L),
|
|
481
|
+
placeholder: R(k)("请输入位置"),
|
|
482
482
|
style: { width: "100%" },
|
|
483
483
|
"trigger-on-focus": !1,
|
|
484
|
-
onSelect: P
|
|
485
|
-
onKeyup: Se(
|
|
484
|
+
onSelect: R(P),
|
|
485
|
+
onKeyup: Se(R(s), ["enter", "native"]),
|
|
486
486
|
clearable: ""
|
|
487
487
|
}, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
|
|
488
|
-
[
|
|
488
|
+
[R($e)]
|
|
489
489
|
])
|
|
490
490
|
]),
|
|
491
|
-
|
|
491
|
+
K(Z(
|
|
492
492
|
"div",
|
|
493
493
|
oa,
|
|
494
494
|
null,
|
|
@@ -496,7 +496,7 @@ const Z = (e) => {
|
|
|
496
496
|
/* NEED_PATCH */
|
|
497
497
|
), [
|
|
498
498
|
[
|
|
499
|
-
|
|
499
|
+
U,
|
|
500
500
|
u.value,
|
|
501
501
|
void 0,
|
|
502
502
|
{ lock: !0 }
|
|
@@ -512,32 +512,32 @@ const Z = (e) => {
|
|
|
512
512
|
function ia() {
|
|
513
513
|
this.__data__ = [], this.size = 0;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function le(e, t) {
|
|
516
516
|
return e === t || e !== e && t !== t;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function ie(e, t) {
|
|
519
519
|
for (var a = e.length; a--; )
|
|
520
|
-
if (
|
|
520
|
+
if (le(e[a][0], t))
|
|
521
521
|
return a;
|
|
522
522
|
return -1;
|
|
523
523
|
}
|
|
524
524
|
var sa = Array.prototype, ca = sa.splice;
|
|
525
525
|
function da(e) {
|
|
526
|
-
var t = this.__data__, a =
|
|
526
|
+
var t = this.__data__, a = ie(t, e);
|
|
527
527
|
if (a < 0)
|
|
528
528
|
return !1;
|
|
529
529
|
var r = t.length - 1;
|
|
530
530
|
return a == r ? t.pop() : ca.call(t, a, 1), --this.size, !0;
|
|
531
531
|
}
|
|
532
532
|
function fa(e) {
|
|
533
|
-
var t = this.__data__, a =
|
|
533
|
+
var t = this.__data__, a = ie(t, e);
|
|
534
534
|
return a < 0 ? void 0 : t[a][1];
|
|
535
535
|
}
|
|
536
536
|
function va(e) {
|
|
537
|
-
return
|
|
537
|
+
return ie(this.__data__, e) > -1;
|
|
538
538
|
}
|
|
539
539
|
function pa(e, t) {
|
|
540
|
-
var a = this.__data__, r =
|
|
540
|
+
var a = this.__data__, r = ie(a, e);
|
|
541
541
|
return r < 0 ? (++this.size, a.push([e, t])) : a[r][1] = t, this;
|
|
542
542
|
}
|
|
543
543
|
function N(e) {
|
|
@@ -565,48 +565,48 @@ function ya(e) {
|
|
|
565
565
|
function ma(e) {
|
|
566
566
|
return this.__data__.has(e);
|
|
567
567
|
}
|
|
568
|
-
var ut = typeof global == "object" && global && global.Object === Object && global, ba = typeof self == "object" && self && self.Object === Object && self,
|
|
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
569
|
function wa(e) {
|
|
570
|
-
var t = _a.call(e,
|
|
570
|
+
var t = _a.call(e, te), a = e[te];
|
|
571
571
|
try {
|
|
572
|
-
e[
|
|
572
|
+
e[te] = void 0;
|
|
573
573
|
var r = !0;
|
|
574
574
|
} catch {
|
|
575
575
|
}
|
|
576
576
|
var o = xa.call(e);
|
|
577
|
-
return r && (t ? e[
|
|
577
|
+
return r && (t ? e[te] = a : delete e[te]), o;
|
|
578
578
|
}
|
|
579
579
|
var Ma = Object.prototype, Aa = Ma.toString;
|
|
580
580
|
function Sa(e) {
|
|
581
581
|
return Aa.call(e);
|
|
582
582
|
}
|
|
583
|
-
var Ca = "[object Null]", Oa = "[object Undefined]",
|
|
583
|
+
var Ca = "[object Null]", Oa = "[object Undefined]", Ue = q ? q.toStringTag : void 0;
|
|
584
584
|
function ne(e) {
|
|
585
|
-
return e == null ? e === void 0 ? Oa : Ca :
|
|
585
|
+
return e == null ? e === void 0 ? Oa : Ca : Ue && Ue in Object(e) ? wa(e) : Sa(e);
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function H(e) {
|
|
588
588
|
var t = typeof e;
|
|
589
589
|
return e != null && (t == "object" || t == "function");
|
|
590
590
|
}
|
|
591
591
|
var Ta = "[object AsyncFunction]", $a = "[object Function]", ja = "[object GeneratorFunction]", La = "[object Proxy]";
|
|
592
592
|
function Ee(e) {
|
|
593
|
-
if (!
|
|
593
|
+
if (!H(e))
|
|
594
594
|
return !1;
|
|
595
595
|
var t = ne(e);
|
|
596
596
|
return t == $a || t == ja || t == Ta || t == La;
|
|
597
597
|
}
|
|
598
|
-
var
|
|
599
|
-
var e = /[^.]+$/.exec(
|
|
598
|
+
var de = Y["__core-js_shared__"], Ve = function() {
|
|
599
|
+
var e = /[^.]+$/.exec(de && de.keys && de.keys.IE_PROTO || "");
|
|
600
600
|
return e ? "Symbol(src)_1." + e : "";
|
|
601
601
|
}();
|
|
602
602
|
function Ea(e) {
|
|
603
|
-
return !!
|
|
603
|
+
return !!Ve && Ve in e;
|
|
604
604
|
}
|
|
605
|
-
var
|
|
605
|
+
var Pa = Function.prototype, Ra = Pa.toString;
|
|
606
606
|
function Ia(e) {
|
|
607
607
|
if (e != null) {
|
|
608
608
|
try {
|
|
609
|
-
return
|
|
609
|
+
return Ra.call(e);
|
|
610
610
|
} catch {
|
|
611
611
|
}
|
|
612
612
|
try {
|
|
@@ -616,23 +616,23 @@ function Ia(e) {
|
|
|
616
616
|
}
|
|
617
617
|
return "";
|
|
618
618
|
}
|
|
619
|
-
var Da = /[\\^$.*+?()[\]{}|]/g,
|
|
619
|
+
var Da = /[\\^$.*+?()[\]{}|]/g, Ua = /^\[object .+?Constructor\]$/, Va = Function.prototype, ka = Object.prototype, Ba = Va.toString, za = ka.hasOwnProperty, Ga = RegExp(
|
|
620
620
|
"^" + Ba.call(za).replace(Da, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
621
621
|
);
|
|
622
622
|
function Na(e) {
|
|
623
|
-
if (!
|
|
623
|
+
if (!H(e) || Ea(e))
|
|
624
624
|
return !1;
|
|
625
|
-
var t = Ee(e) ? Ga :
|
|
625
|
+
var t = Ee(e) ? Ga : Ua;
|
|
626
626
|
return t.test(Ia(e));
|
|
627
627
|
}
|
|
628
628
|
function Ka(e, t) {
|
|
629
629
|
return e == null ? void 0 : e[t];
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Pe(e, t) {
|
|
632
632
|
var a = Ka(e, t);
|
|
633
633
|
return Na(a) ? a : void 0;
|
|
634
634
|
}
|
|
635
|
-
var it =
|
|
635
|
+
var it = Pe(Y, "Map"), re = Pe(Object, "create");
|
|
636
636
|
function Fa() {
|
|
637
637
|
this.__data__ = re ? re(null) : {}, this.size = 0;
|
|
638
638
|
}
|
|
@@ -659,59 +659,59 @@ function tr(e, t) {
|
|
|
659
659
|
var a = this.__data__;
|
|
660
660
|
return this.size += this.has(e) ? 0 : 1, a[e] = re && t === void 0 ? er : t, this;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function F(e) {
|
|
663
663
|
var t = -1, a = e == null ? 0 : e.length;
|
|
664
664
|
for (this.clear(); ++t < a; ) {
|
|
665
665
|
var r = e[t];
|
|
666
666
|
this.set(r[0], r[1]);
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
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
674
|
function ar() {
|
|
675
675
|
this.size = 0, this.__data__ = {
|
|
676
|
-
hash: new
|
|
676
|
+
hash: new F(),
|
|
677
677
|
map: new (it || N)(),
|
|
678
|
-
string: new
|
|
678
|
+
string: new F()
|
|
679
679
|
};
|
|
680
680
|
}
|
|
681
681
|
function rr(e) {
|
|
682
682
|
var t = typeof e;
|
|
683
683
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function se(e, t) {
|
|
686
686
|
var a = e.__data__;
|
|
687
687
|
return rr(t) ? a[typeof t == "string" ? "string" : "hash"] : a.map;
|
|
688
688
|
}
|
|
689
689
|
function nr(e) {
|
|
690
|
-
var t =
|
|
690
|
+
var t = se(this, e).delete(e);
|
|
691
691
|
return this.size -= t ? 1 : 0, t;
|
|
692
692
|
}
|
|
693
693
|
function or(e) {
|
|
694
|
-
return
|
|
694
|
+
return se(this, e).get(e);
|
|
695
695
|
}
|
|
696
696
|
function ur(e) {
|
|
697
|
-
return
|
|
697
|
+
return se(this, e).has(e);
|
|
698
698
|
}
|
|
699
699
|
function lr(e, t) {
|
|
700
|
-
var a =
|
|
700
|
+
var a = se(this, e), r = a.size;
|
|
701
701
|
return a.set(e, t), this.size += a.size == r ? 0 : 1, this;
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function X(e) {
|
|
704
704
|
var t = -1, a = e == null ? 0 : e.length;
|
|
705
705
|
for (this.clear(); ++t < a; ) {
|
|
706
706
|
var r = e[t];
|
|
707
707
|
this.set(r[0], r[1]);
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
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
715
|
var ir = 200;
|
|
716
716
|
function sr(e, t) {
|
|
717
717
|
var a = this.__data__;
|
|
@@ -719,36 +719,36 @@ function sr(e, t) {
|
|
|
719
719
|
var r = a.__data__;
|
|
720
720
|
if (!it || r.length < ir - 1)
|
|
721
721
|
return r.push([e, t]), this.size = ++a.size, this;
|
|
722
|
-
a = this.__data__ = new
|
|
722
|
+
a = this.__data__ = new X(r);
|
|
723
723
|
}
|
|
724
724
|
return a.set(e, t), this.size = a.size, this;
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function Q(e) {
|
|
727
727
|
var t = this.__data__ = new N(e);
|
|
728
728
|
this.size = t.size;
|
|
729
729
|
}
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
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() {
|
|
736
736
|
try {
|
|
737
|
-
var e =
|
|
737
|
+
var e = Pe(Object, "defineProperty");
|
|
738
738
|
return e({}, "", {}), e;
|
|
739
739
|
} catch {
|
|
740
740
|
}
|
|
741
741
|
}();
|
|
742
|
-
function
|
|
743
|
-
t == "__proto__" &&
|
|
742
|
+
function Re(e, t, a) {
|
|
743
|
+
t == "__proto__" && oe ? oe(e, t, {
|
|
744
744
|
configurable: !0,
|
|
745
745
|
enumerable: !0,
|
|
746
746
|
value: a,
|
|
747
747
|
writable: !0
|
|
748
748
|
}) : e[t] = a;
|
|
749
749
|
}
|
|
750
|
-
function
|
|
751
|
-
(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);
|
|
752
752
|
}
|
|
753
753
|
function cr(e) {
|
|
754
754
|
return function(t, a, r) {
|
|
@@ -760,12 +760,12 @@ function cr(e) {
|
|
|
760
760
|
return t;
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
|
-
var dr = cr(), st = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
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
764
|
Be && Be.allocUnsafe;
|
|
765
765
|
function vr(e, t) {
|
|
766
766
|
return e.slice();
|
|
767
767
|
}
|
|
768
|
-
var ze =
|
|
768
|
+
var ze = Y.Uint8Array;
|
|
769
769
|
function pr(e) {
|
|
770
770
|
var t = new e.constructor(e.byteLength);
|
|
771
771
|
return new ze(t).set(new ze(e)), t;
|
|
@@ -784,7 +784,7 @@ var Ge = Object.create, yr = /* @__PURE__ */ function() {
|
|
|
784
784
|
function e() {
|
|
785
785
|
}
|
|
786
786
|
return function(t) {
|
|
787
|
-
if (!
|
|
787
|
+
if (!H(t))
|
|
788
788
|
return {};
|
|
789
789
|
if (Ge)
|
|
790
790
|
return Ge(t);
|
|
@@ -806,18 +806,18 @@ function dt(e) {
|
|
|
806
806
|
function _r(e) {
|
|
807
807
|
return typeof e.constructor == "function" && !dt(e) ? yr(ct(e)) : {};
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function ee(e) {
|
|
810
810
|
return e != null && typeof e == "object";
|
|
811
811
|
}
|
|
812
812
|
var xr = "[object Arguments]";
|
|
813
813
|
function Ne(e) {
|
|
814
|
-
return
|
|
814
|
+
return ee(e) && ne(e) == xr;
|
|
815
815
|
}
|
|
816
|
-
var ft = Object.prototype, wr = ft.hasOwnProperty, Mr = ft.propertyIsEnumerable,
|
|
816
|
+
var ft = Object.prototype, wr = ft.hasOwnProperty, Mr = ft.propertyIsEnumerable, pe = Ne(/* @__PURE__ */ function() {
|
|
817
817
|
return arguments;
|
|
818
818
|
}()) ? Ne : function(e) {
|
|
819
|
-
return
|
|
820
|
-
},
|
|
819
|
+
return ee(e) && wr.call(e, "callee") && !Mr.call(e, "callee");
|
|
820
|
+
}, ue = Array.isArray, Ar = 9007199254740991;
|
|
821
821
|
function vt(e) {
|
|
822
822
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ar;
|
|
823
823
|
}
|
|
@@ -825,54 +825,54 @@ function Ie(e) {
|
|
|
825
825
|
return e != null && vt(e.length) && !Ee(e);
|
|
826
826
|
}
|
|
827
827
|
function Sr(e) {
|
|
828
|
-
return
|
|
828
|
+
return ee(e) && Ie(e);
|
|
829
829
|
}
|
|
830
830
|
function Cr() {
|
|
831
831
|
return !1;
|
|
832
832
|
}
|
|
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 ?
|
|
834
|
-
function
|
|
835
|
-
if (!
|
|
833
|
+
var pt = typeof exports == "object" && exports && !exports.nodeType && exports, Ke = pt && typeof module == "object" && module && !module.nodeType && module, Or = Ke && Ke.exports === pt, Fe = Or ? Y.Buffer : void 0, Tr = Fe ? Fe.isBuffer : void 0, gt = Tr || Cr, $r = "[object Object]", jr = Function.prototype, Lr = Object.prototype, ht = jr.toString, Er = Lr.hasOwnProperty, Pr = ht.call(Object);
|
|
834
|
+
function Rr(e) {
|
|
835
|
+
if (!ee(e) || ne(e) != $r)
|
|
836
836
|
return !1;
|
|
837
837
|
var t = ct(e);
|
|
838
838
|
if (t === null)
|
|
839
839
|
return !0;
|
|
840
840
|
var a = Er.call(t, "constructor") && t.constructor;
|
|
841
|
-
return typeof a == "function" && a instanceof a && ht.call(a) ==
|
|
841
|
+
return typeof a == "function" && a instanceof a && ht.call(a) == Pr;
|
|
842
842
|
}
|
|
843
|
-
var Ir = "[object Arguments]", Dr = "[object Array]",
|
|
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
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[
|
|
845
|
+
T[Ir] = T[Dr] = T[Zr] = T[Ur] = T[Wr] = T[Vr] = T[kr] = T[Br] = T[zr] = T[Gr] = T[Nr] = T[Kr] = T[Fr] = T[Hr] = T[Jr] = !1;
|
|
846
846
|
function on(e) {
|
|
847
|
-
return
|
|
847
|
+
return ee(e) && vt(e.length) && !!T[ne(e)];
|
|
848
848
|
}
|
|
849
849
|
function un(e) {
|
|
850
850
|
return function(t) {
|
|
851
851
|
return e(t);
|
|
852
852
|
};
|
|
853
853
|
}
|
|
854
|
-
var yt = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
854
|
+
var yt = typeof exports == "object" && exports && !exports.nodeType && exports, ae = yt && typeof module == "object" && module && !module.nodeType && module, ln = ae && ae.exports === yt, fe = ln && ut.process, He = function() {
|
|
855
855
|
try {
|
|
856
|
-
var e =
|
|
857
|
-
return e ||
|
|
856
|
+
var e = ae && ae.require && ae.require("util").types;
|
|
857
|
+
return e || fe && fe.binding && fe.binding("util");
|
|
858
858
|
} catch {
|
|
859
859
|
}
|
|
860
860
|
}(), Je = He && He.isTypedArray, mt = Je ? un(Je) : on;
|
|
861
|
-
function
|
|
861
|
+
function ge(e, t) {
|
|
862
862
|
if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
|
|
863
863
|
return e[t];
|
|
864
864
|
}
|
|
865
865
|
var sn = Object.prototype, cn = sn.hasOwnProperty;
|
|
866
866
|
function dn(e, t, a) {
|
|
867
867
|
var r = e[t];
|
|
868
|
-
(!(cn.call(e, t) &&
|
|
868
|
+
(!(cn.call(e, t) && le(r, a)) || a === void 0 && !(t in e)) && Re(e, t, a);
|
|
869
869
|
}
|
|
870
870
|
function fn(e, t, a, r) {
|
|
871
871
|
var o = !a;
|
|
872
872
|
a || (a = {});
|
|
873
873
|
for (var l = -1, u = t.length; ++l < u; ) {
|
|
874
874
|
var n = t[l], c = void 0;
|
|
875
|
-
c === void 0 && (c = e[n]), o ?
|
|
875
|
+
c === void 0 && (c = e[n]), o ? Re(a, n, c) : dn(a, n, c);
|
|
876
876
|
}
|
|
877
877
|
return a;
|
|
878
878
|
}
|
|
@@ -887,7 +887,7 @@ function bt(e, t) {
|
|
|
887
887
|
return t = t ?? pn, !!t && (a == "number" || a != "symbol" && gn.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
888
888
|
}
|
|
889
889
|
function hn(e, t) {
|
|
890
|
-
var a =
|
|
890
|
+
var a = ue(e), r = !a && pe(e), o = !a && !r && gt(e), l = !a && !r && !o && mt(e), u = a || r || o || l, n = u ? vn(e.length, String) : [], c = n.length;
|
|
891
891
|
for (var y in e)
|
|
892
892
|
u && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
893
893
|
(y == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -905,7 +905,7 @@ function yn(e) {
|
|
|
905
905
|
}
|
|
906
906
|
var mn = Object.prototype, bn = mn.hasOwnProperty;
|
|
907
907
|
function _n(e) {
|
|
908
|
-
if (!
|
|
908
|
+
if (!H(e))
|
|
909
909
|
return yn(e);
|
|
910
910
|
var t = dt(e), a = [];
|
|
911
911
|
for (var r in e)
|
|
@@ -919,25 +919,25 @@ function xn(e) {
|
|
|
919
919
|
return fn(e, _t(e));
|
|
920
920
|
}
|
|
921
921
|
function wn(e, t, a, r, o, l, u) {
|
|
922
|
-
var n =
|
|
922
|
+
var n = ge(e, a), c = ge(t, a), y = u.get(c);
|
|
923
923
|
if (y) {
|
|
924
|
-
|
|
924
|
+
ve(e, a, y);
|
|
925
925
|
return;
|
|
926
926
|
}
|
|
927
|
-
var d = l ? l(n, c, a + "", e, t, u) : void 0,
|
|
928
|
-
if (
|
|
929
|
-
var
|
|
930
|
-
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;
|
|
931
931
|
}
|
|
932
|
-
|
|
932
|
+
_ && (u.set(c, d), o(d, c, r, l, u), u.delete(c)), ve(e, a, d);
|
|
933
933
|
}
|
|
934
934
|
function xt(e, t, a, r, o) {
|
|
935
935
|
e !== t && dr(t, function(l, u) {
|
|
936
|
-
if (o || (o = new
|
|
936
|
+
if (o || (o = new Q()), H(l))
|
|
937
937
|
wn(e, t, u, a, xt, r, o);
|
|
938
938
|
else {
|
|
939
|
-
var n = r ? r(
|
|
940
|
-
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);
|
|
941
941
|
}
|
|
942
942
|
}, _t);
|
|
943
943
|
}
|
|
@@ -973,8 +973,8 @@ function Sn(e) {
|
|
|
973
973
|
return e;
|
|
974
974
|
};
|
|
975
975
|
}
|
|
976
|
-
var Cn =
|
|
977
|
-
return
|
|
976
|
+
var Cn = oe ? function(e, t) {
|
|
977
|
+
return oe(e, "toString", {
|
|
978
978
|
configurable: !0,
|
|
979
979
|
enumerable: !1,
|
|
980
980
|
value: Sn(t),
|
|
@@ -997,26 +997,26 @@ var Ln = jn(Cn);
|
|
|
997
997
|
function En(e, t) {
|
|
998
998
|
return Ln(An(e, t, wt), e + "");
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1001
|
-
if (!
|
|
1000
|
+
function Pn(e, t, a) {
|
|
1001
|
+
if (!H(a))
|
|
1002
1002
|
return !1;
|
|
1003
1003
|
var r = typeof t;
|
|
1004
|
-
return (r == "number" ? Ie(a) && bt(t, a.length) : r == "string" && t in a) ?
|
|
1004
|
+
return (r == "number" ? Ie(a) && bt(t, a.length) : r == "string" && t in a) ? le(a[t], e) : !1;
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function Rn(e) {
|
|
1007
1007
|
return En(function(t, a) {
|
|
1008
1008
|
var r = -1, o = a.length, l = o > 1 ? a[o - 1] : void 0, u = o > 2 ? a[2] : void 0;
|
|
1009
|
-
for (l = e.length > 3 && typeof l == "function" ? (o--, l) : void 0, u &&
|
|
1009
|
+
for (l = e.length > 3 && typeof l == "function" ? (o--, l) : void 0, u && Pn(a[0], a[1], u) && (l = o < 3 ? void 0 : l, o = 1), t = Object(t); ++r < o; ) {
|
|
1010
1010
|
var n = a[r];
|
|
1011
1011
|
n && e(t, n, r, l);
|
|
1012
1012
|
}
|
|
1013
1013
|
return t;
|
|
1014
1014
|
});
|
|
1015
1015
|
}
|
|
1016
|
-
var In =
|
|
1016
|
+
var In = Rn(function(e, t, a, r) {
|
|
1017
1017
|
xt(e, t, a, r);
|
|
1018
1018
|
}), Dn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1019
|
-
function
|
|
1019
|
+
function Un(e) {
|
|
1020
1020
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1021
1021
|
}
|
|
1022
1022
|
var Mt = { exports: {} };
|
|
@@ -1025,38 +1025,38 @@ var Mt = { exports: {} };
|
|
|
1025
1025
|
e.exports ? e.exports = a() : t.coordtransform = a();
|
|
1026
1026
|
})(Dn, function() {
|
|
1027
1027
|
var t = 52.35987755982988, a = 3.141592653589793, r = 6378245, o = 0.006693421622965943, l = function(s, i) {
|
|
1028
|
-
var s = +s, i = +i, p = s - 65e-4,
|
|
1029
|
-
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];
|
|
1030
1030
|
}, u = function(i, s) {
|
|
1031
|
-
var s = +s, i = +i, p = Math.sqrt(i * i + s * s) + 2e-5 * Math.sin(s * t),
|
|
1032
|
-
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];
|
|
1033
1033
|
}, n = function(i, s) {
|
|
1034
1034
|
var s = +s, i = +i;
|
|
1035
|
-
if (
|
|
1035
|
+
if (_(i, s))
|
|
1036
1036
|
return [i, s];
|
|
1037
|
-
var p = y(i - 105, s - 35),
|
|
1037
|
+
var p = y(i - 105, s - 35), b = d(i - 105, s - 35), x = s / 180 * a, h = Math.sin(x);
|
|
1038
1038
|
h = 1 - o * h * h;
|
|
1039
1039
|
var E = Math.sqrt(h);
|
|
1040
|
-
p = p * 180 / (r * (1 - o) / (h * E) * a),
|
|
1041
|
-
var
|
|
1042
|
-
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];
|
|
1043
1043
|
}, c = function(i, s) {
|
|
1044
1044
|
var s = +s, i = +i;
|
|
1045
|
-
if (
|
|
1045
|
+
if (_(i, s))
|
|
1046
1046
|
return [i, s];
|
|
1047
|
-
var p = y(i - 105, s - 35),
|
|
1047
|
+
var p = y(i - 105, s - 35), b = d(i - 105, s - 35), x = s / 180 * a, h = Math.sin(x);
|
|
1048
1048
|
h = 1 - o * h * h;
|
|
1049
1049
|
var E = Math.sqrt(h);
|
|
1050
|
-
p = p * 180 / (r * (1 - o) / (h * E) * a),
|
|
1051
|
-
var
|
|
1052
|
-
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];
|
|
1053
1053
|
}, y = function(i, s) {
|
|
1054
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
1055
|
return p += (20 * Math.sin(6 * i * a) + 20 * Math.sin(2 * i * a)) * 2 / 3, p += (20 * Math.sin(s * a) + 40 * Math.sin(s / 3 * a)) * 2 / 3, p += (160 * Math.sin(s / 12 * a) + 320 * Math.sin(s * a / 30)) * 2 / 3, p;
|
|
1056
1056
|
}, d = function(i, s) {
|
|
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
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
|
-
},
|
|
1059
|
+
}, _ = function(i, s) {
|
|
1060
1060
|
var s = +s, i = +i;
|
|
1061
1061
|
return !(i > 73.66 && i < 135.05 && s > 3.86 && s < 53.55);
|
|
1062
1062
|
};
|
|
@@ -1068,8 +1068,8 @@ var Mt = { exports: {} };
|
|
|
1068
1068
|
};
|
|
1069
1069
|
});
|
|
1070
1070
|
})(Mt);
|
|
1071
|
-
var
|
|
1072
|
-
const At = /* @__PURE__ */ Vn
|
|
1071
|
+
var Vn = Mt.exports;
|
|
1072
|
+
const At = /* @__PURE__ */ Un(Vn), kn = (e, t, { type: a, MapGL: r, map: o }) => {
|
|
1073
1073
|
const l = (u, n) => {
|
|
1074
1074
|
const c = document.createElement("div");
|
|
1075
1075
|
c.style.cursor = "pointer";
|
|
@@ -1078,27 +1078,27 @@ const At = /* @__PURE__ */ Vn(kn), Un = (e, t, { type: a, MapGL: r, map: o }) =>
|
|
|
1078
1078
|
};
|
|
1079
1079
|
e.addCustomComponent = (u) => {
|
|
1080
1080
|
!Array.isArray(u) || (u == null ? void 0 : u.length) === 0 || u.forEach((n) => {
|
|
1081
|
-
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);
|
|
1082
1082
|
if (a.value === "baidu") {
|
|
1083
|
-
const i = At.gcj02tobd09(d,
|
|
1083
|
+
const i = At.gcj02tobd09(d, _), p = new r.value.CustomOverlay(s, {
|
|
1084
1084
|
point: { lng: i[0], lat: i[1] },
|
|
1085
|
-
...
|
|
1085
|
+
...m
|
|
1086
1086
|
});
|
|
1087
|
-
o.value.addOverlay(p), p.addEventListener("click", function(
|
|
1088
|
-
t("click-custom-component", n,
|
|
1087
|
+
o.value.addOverlay(p), p.addEventListener("click", function(b) {
|
|
1088
|
+
t("click-custom-component", n, b);
|
|
1089
1089
|
});
|
|
1090
1090
|
}
|
|
1091
1091
|
if (a.value === "gaode") {
|
|
1092
|
-
const i = l(
|
|
1093
|
-
o.value.add(p), r.value.event.addListener(p, "click", function(
|
|
1094
|
-
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);
|
|
1095
1095
|
});
|
|
1096
1096
|
}
|
|
1097
1097
|
});
|
|
1098
1098
|
};
|
|
1099
1099
|
}, Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1100
1100
|
__proto__: null,
|
|
1101
|
-
default:
|
|
1101
|
+
default: kn
|
|
1102
1102
|
}, Symbol.toStringTag, { value: "Module" })), zn = (e, t, { type: a, MapGL: r, map: o, innerPoint: l, innerInput: u, adCode: n }) => {
|
|
1103
1103
|
e.getMapInfo = () => {
|
|
1104
1104
|
if (a.value === "baidu") {
|
|
@@ -1129,20 +1129,20 @@ function Nn(e, t) {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
var Kn = "[object Symbol]";
|
|
1131
1131
|
function Fn(e) {
|
|
1132
|
-
return typeof e == "symbol" ||
|
|
1132
|
+
return typeof e == "symbol" || ee(e) && ne(e) == Kn;
|
|
1133
1133
|
}
|
|
1134
|
-
var Hn = 1 / 0, We =
|
|
1134
|
+
var Hn = 1 / 0, We = q ? q.prototype : void 0, qe = We ? We.toString : void 0;
|
|
1135
1135
|
function St(e) {
|
|
1136
1136
|
if (typeof e == "string")
|
|
1137
1137
|
return e;
|
|
1138
|
-
if (
|
|
1138
|
+
if (ue(e))
|
|
1139
1139
|
return Nn(e, St) + "";
|
|
1140
1140
|
if (Fn(e))
|
|
1141
1141
|
return qe ? qe.call(e) : "";
|
|
1142
1142
|
var t = e + "";
|
|
1143
1143
|
return t == "0" && 1 / e == -Hn ? "-0" : t;
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function ce(e) {
|
|
1146
1146
|
return e == null ? "" : St(e);
|
|
1147
1147
|
}
|
|
1148
1148
|
function Jn(e, t, a) {
|
|
@@ -1163,7 +1163,7 @@ function Ct(e) {
|
|
|
1163
1163
|
function ro(e) {
|
|
1164
1164
|
return e.split("");
|
|
1165
1165
|
}
|
|
1166
|
-
var Ot = "\\ud800-\\udfff", no = "\\u0300-\\u036f", oo = "\\ufe20-\\ufe2f", uo = "\\u20d0-\\u20ff", lo = no + oo + uo, io = "\\ufe0e\\ufe0f", so = "[" + Ot + "]",
|
|
1166
|
+
var Ot = "\\ud800-\\udfff", no = "\\u0300-\\u036f", oo = "\\ufe20-\\ufe2f", uo = "\\u20d0-\\u20ff", lo = no + oo + uo, io = "\\ufe0e\\ufe0f", so = "[" + Ot + "]", he = "[" + lo + "]", ye = "\\ud83c[\\udffb-\\udfff]", co = "(?:" + he + "|" + ye + ")", Tt = "[^" + Ot + "]", $t = "(?:\\ud83c[\\udde6-\\uddff]){2}", jt = "[\\ud800-\\udbff][\\udc00-\\udfff]", fo = "\\u200d", Lt = co + "?", Et = "[" + io + "]?", vo = "(?:" + fo + "(?:" + [Tt, $t, jt].join("|") + ")" + Et + Lt + ")*", po = Et + Lt + vo, go = "(?:" + [Tt + he + "?", he, $t, jt, so].join("|") + ")", ho = RegExp(ye + "(?=" + ye + ")|" + go + po, "g");
|
|
1167
1167
|
function yo(e) {
|
|
1168
1168
|
return e.match(ho) || [];
|
|
1169
1169
|
}
|
|
@@ -1172,14 +1172,14 @@ function mo(e) {
|
|
|
1172
1172
|
}
|
|
1173
1173
|
function bo(e) {
|
|
1174
1174
|
return function(t) {
|
|
1175
|
-
t =
|
|
1175
|
+
t = ce(t);
|
|
1176
1176
|
var a = Ct(t) ? mo(t) : void 0, r = a ? a[0] : t.charAt(0), o = a ? Zn(a, 1).join("") : t.slice(1);
|
|
1177
1177
|
return r[e]() + o;
|
|
1178
1178
|
};
|
|
1179
1179
|
}
|
|
1180
1180
|
var _o = bo("toUpperCase");
|
|
1181
1181
|
function xo(e) {
|
|
1182
|
-
return _o(
|
|
1182
|
+
return _o(ce(e).toLowerCase());
|
|
1183
1183
|
}
|
|
1184
1184
|
function wo(e, t, a, r) {
|
|
1185
1185
|
for (var o = -1, l = e == null ? 0 : e.length; ++o < l; )
|
|
@@ -1385,37 +1385,37 @@ var Ao = {
|
|
|
1385
1385
|
ʼn: "'n",
|
|
1386
1386
|
ſ: "s"
|
|
1387
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
|
|
1389
|
-
return e =
|
|
1388
|
+
function Po(e) {
|
|
1389
|
+
return e = ce(e), e && e.replace(Co, So).replace(Eo, "");
|
|
1390
1390
|
}
|
|
1391
|
-
var
|
|
1391
|
+
var Ro = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
1392
1392
|
function Io(e) {
|
|
1393
|
-
return e.match(
|
|
1393
|
+
return e.match(Ro) || [];
|
|
1394
1394
|
}
|
|
1395
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
|
|
1396
|
+
function Uo(e) {
|
|
1397
1397
|
return Do.test(e);
|
|
1398
1398
|
}
|
|
1399
|
-
var
|
|
1400
|
-
|
|
1401
|
-
Qo + "+" + et + "(?=" + [Ye,
|
|
1402
|
-
|
|
1403
|
-
|
|
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
1404
|
au,
|
|
1405
1405
|
tu,
|
|
1406
|
-
|
|
1406
|
+
kt,
|
|
1407
1407
|
nu
|
|
1408
1408
|
].join("|"), "g");
|
|
1409
1409
|
function uu(e) {
|
|
1410
1410
|
return e.match(ou) || [];
|
|
1411
1411
|
}
|
|
1412
1412
|
function lu(e, t, a) {
|
|
1413
|
-
return e =
|
|
1413
|
+
return e = ce(e), t = t, t === void 0 ? Uo(e) ? uu(e) : Io(e) : e.match(t) || [];
|
|
1414
1414
|
}
|
|
1415
1415
|
var iu = "['’]", su = RegExp(iu, "g");
|
|
1416
1416
|
function cu(e) {
|
|
1417
1417
|
return function(t) {
|
|
1418
|
-
return wo(lu(
|
|
1418
|
+
return wo(lu(Po(t).replace(su, "")), e, "");
|
|
1419
1419
|
};
|
|
1420
1420
|
}
|
|
1421
1421
|
var du = cu(function(e, t, a) {
|
|
@@ -1433,14 +1433,14 @@ const tt = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Bn, "./g
|
|
|
1433
1433
|
Object.values(fu).forEach((n) => n(r.value, t, a, u.plugins || {}));
|
|
1434
1434
|
} };
|
|
1435
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([]),
|
|
1437
|
-
width: e.width ?
|
|
1438
|
-
height: e.height ?
|
|
1439
|
-
})),
|
|
1436
|
+
const a = A("gaode"), r = A(), o = A(), l = G(null), u = G(null), n = G(null), c = A(!0), y = A(null), d = A([]), _ = be(() => ({
|
|
1437
|
+
width: e.width ? W(e.width) : "100%",
|
|
1438
|
+
height: e.height ? W(e.height) : "100%"
|
|
1439
|
+
})), m = A(""), L = A([]), P = A(""), {
|
|
1440
1440
|
loadJavascript: s,
|
|
1441
1441
|
getLocationByInputSearch: i,
|
|
1442
1442
|
handleSelectAddress: p,
|
|
1443
|
-
getLocationParse:
|
|
1443
|
+
getLocationParse: b
|
|
1444
1444
|
} = ot({
|
|
1445
1445
|
BMap: l,
|
|
1446
1446
|
map: u,
|
|
@@ -1448,14 +1448,14 @@ const tt = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Bn, "./g
|
|
|
1448
1448
|
mapLoading: c,
|
|
1449
1449
|
$autocomplete: y,
|
|
1450
1450
|
searchResultList: d,
|
|
1451
|
-
innerInput:
|
|
1452
|
-
innerPoint:
|
|
1453
|
-
adCode:
|
|
1451
|
+
innerInput: m,
|
|
1452
|
+
innerPoint: L,
|
|
1453
|
+
adCode: P
|
|
1454
1454
|
}), {
|
|
1455
|
-
loadJavascript:
|
|
1455
|
+
loadJavascript: x,
|
|
1456
1456
|
getLocationByInputSearch: h,
|
|
1457
1457
|
handleSelectAddress: E,
|
|
1458
|
-
getLocationParse:
|
|
1458
|
+
getLocationParse: U
|
|
1459
1459
|
} = rt({
|
|
1460
1460
|
MapGL: l,
|
|
1461
1461
|
map: u,
|
|
@@ -1463,39 +1463,39 @@ const tt = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Bn, "./g
|
|
|
1463
1463
|
mapLoading: c,
|
|
1464
1464
|
$autocomplete: y,
|
|
1465
1465
|
searchResultList: d,
|
|
1466
|
-
innerInput:
|
|
1467
|
-
innerPoint:
|
|
1468
|
-
adCode:
|
|
1469
|
-
}), { mapElement:
|
|
1466
|
+
innerInput: m,
|
|
1467
|
+
innerPoint: L,
|
|
1468
|
+
adCode: P
|
|
1469
|
+
}), { mapElement: V, addPlugins: S } = vu(e, t, {
|
|
1470
1470
|
type: a,
|
|
1471
1471
|
MapGL: l,
|
|
1472
1472
|
map: u,
|
|
1473
|
-
innerPoint:
|
|
1474
|
-
innerInput:
|
|
1475
|
-
adCode:
|
|
1473
|
+
innerPoint: L,
|
|
1474
|
+
innerInput: m,
|
|
1475
|
+
adCode: P
|
|
1476
1476
|
}), f = () => {
|
|
1477
|
-
a.value === "baidu" && s(r.value, { clickStream: !e.clickStream, mapOpt: e.mapOpt }, g), a.value === "gaode" &&
|
|
1477
|
+
a.value === "baidu" && s(r.value, { clickStream: !e.clickStream, mapOpt: e.mapOpt }, g), a.value === "gaode" && x(
|
|
1478
1478
|
r.value,
|
|
1479
1479
|
o.value,
|
|
1480
1480
|
{ clickStream: !e.clickStream, mapOpt: e.mapOpt },
|
|
1481
1481
|
g
|
|
1482
1482
|
);
|
|
1483
|
-
}, v = async (
|
|
1484
|
-
const [O,
|
|
1483
|
+
}, v = async (M) => {
|
|
1484
|
+
const [O, j] = await je(M);
|
|
1485
1485
|
if (O) {
|
|
1486
1486
|
c.value = !1;
|
|
1487
1487
|
return;
|
|
1488
1488
|
}
|
|
1489
|
-
if (!O && !
|
|
1490
|
-
t("no-config-map",
|
|
1489
|
+
if (!O && !j) {
|
|
1490
|
+
t("no-config-map", k("暂未配置地图")), c.value = !1;
|
|
1491
1491
|
return;
|
|
1492
1492
|
}
|
|
1493
|
-
return
|
|
1493
|
+
return j;
|
|
1494
1494
|
};
|
|
1495
|
-
|
|
1496
|
-
var
|
|
1497
|
-
if (e.defaultLongitude && e.defaultLatitude && (
|
|
1498
|
-
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;
|
|
1499
1499
|
else {
|
|
1500
1500
|
const I = await v((z = e == null ? void 0 : e.sdkConfig) == null ? void 0 : z.mapType);
|
|
1501
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);
|
|
@@ -1503,32 +1503,28 @@ const tt = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Bn, "./g
|
|
|
1503
1503
|
f();
|
|
1504
1504
|
});
|
|
1505
1505
|
const g = () => {
|
|
1506
|
-
|
|
1507
|
-
t("update:mapElement",
|
|
1506
|
+
V.value = u.value, S(), a.value === "baidu" && u.value.addEventListener("tilesloaded", () => {
|
|
1507
|
+
t("update:mapElement", V.value);
|
|
1508
1508
|
}), a.value === "gaode" && u.value.on("complete", () => {
|
|
1509
|
-
t("update:mapElement",
|
|
1509
|
+
t("update:mapElement", V.value);
|
|
1510
1510
|
});
|
|
1511
1511
|
};
|
|
1512
1512
|
return {
|
|
1513
|
-
mapStyle:
|
|
1514
|
-
innerInput:
|
|
1515
|
-
getLocationByInputSearch: (
|
|
1516
|
-
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);
|
|
1517
1517
|
},
|
|
1518
|
-
handleSelectAddress: (
|
|
1519
|
-
a.value === "baidu" && p(
|
|
1518
|
+
handleSelectAddress: (M) => {
|
|
1519
|
+
a.value === "baidu" && p(M), a.value === "gaode" && E(M);
|
|
1520
1520
|
},
|
|
1521
|
-
getLocationParse: (
|
|
1522
|
-
a.value === "baidu" &&
|
|
1521
|
+
getLocationParse: () => {
|
|
1522
|
+
a.value === "baidu" && b(), a.value === "gaode" && U();
|
|
1523
1523
|
},
|
|
1524
|
-
searchResultList: d,
|
|
1525
1524
|
mapLoading: c,
|
|
1526
1525
|
$autocomplete: y
|
|
1527
1526
|
};
|
|
1528
|
-
}, gu = {
|
|
1529
|
-
key: 0,
|
|
1530
|
-
class: "search-input"
|
|
1531
|
-
}, hu = { id: "map" }, yu = /* @__PURE__ */ _e({
|
|
1527
|
+
}, gu = { class: "search-input" }, hu = { id: "map" }, yu = /* @__PURE__ */ me({
|
|
1532
1528
|
__name: "mixMap",
|
|
1533
1529
|
props: {
|
|
1534
1530
|
defaultAddress: {},
|
|
@@ -1551,38 +1547,45 @@ const tt = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Bn, "./g
|
|
|
1551
1547
|
getLocationByInputSearch: u,
|
|
1552
1548
|
handleSelectAddress: n,
|
|
1553
1549
|
getLocationParse: c,
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
$autocomplete: b
|
|
1550
|
+
mapLoading: y,
|
|
1551
|
+
$autocomplete: d
|
|
1557
1552
|
} = pu(a, r);
|
|
1558
|
-
return (_,
|
|
1559
|
-
const
|
|
1560
|
-
return
|
|
1553
|
+
return (_, m) => {
|
|
1554
|
+
const L = Oe, P = Te;
|
|
1555
|
+
return xe(), we(
|
|
1561
1556
|
"div",
|
|
1562
1557
|
{
|
|
1563
1558
|
class: "das-map",
|
|
1564
|
-
style: Me(
|
|
1559
|
+
style: Me(R(o))
|
|
1565
1560
|
},
|
|
1566
1561
|
[
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
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(
|
|
1586
1589
|
"div",
|
|
1587
1590
|
hu,
|
|
1588
1591
|
null,
|
|
@@ -1590,8 +1593,8 @@ const tt = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Bn, "./g
|
|
|
1590
1593
|
/* NEED_PATCH */
|
|
1591
1594
|
), [
|
|
1592
1595
|
[
|
|
1593
|
-
|
|
1594
|
-
|
|
1596
|
+
P,
|
|
1597
|
+
R(y),
|
|
1595
1598
|
void 0,
|
|
1596
1599
|
{ lock: !0 }
|
|
1597
1600
|
]
|
|
@@ -1602,13 +1605,13 @@ const tt = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Bn, "./g
|
|
|
1602
1605
|
);
|
|
1603
1606
|
};
|
|
1604
1607
|
}
|
|
1605
|
-
}), mu = /* @__PURE__ */ Le(yu, [["__scopeId", "data-v-
|
|
1608
|
+
}), mu = /* @__PURE__ */ Le(yu, [["__scopeId", "data-v-d80b6b94"]]), $u = Ce(ra), ju = () => A(null), Lu = Ce(la), Eu = () => A(null), Pu = Ce(mu), Ru = () => A(null), Iu = { title: "Map 地图" };
|
|
1606
1609
|
export {
|
|
1607
1610
|
Lu as DasBaiduMap,
|
|
1608
1611
|
Eu as DasBaiduMapRef,
|
|
1609
1612
|
$u as DasGaodeMap,
|
|
1610
1613
|
ju as DasGaodeMapRef,
|
|
1611
|
-
|
|
1612
|
-
|
|
1614
|
+
Pu as DasMap,
|
|
1615
|
+
Ru as DasMapRef,
|
|
1613
1616
|
Iu as default
|
|
1614
1617
|
};
|