@heycar/heycars-map 0.1.7 → 0.1.8
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/dist/business-components/WalkingRoute/WalkingRoute.d.ts +13 -0
- package/dist/business-components/WalkingRoute/index.d.ts +1 -0
- package/dist/components/Demo/HeycarDemo.d.ts +1 -0
- package/dist/components/Demo/SearchDemo.d.ts +1 -0
- package/dist/components/Demo/country.d.ts +5 -0
- package/dist/components/Demo/searchResult.d.ts +8 -0
- package/dist/hooks/useGeoLocation.d.ts +8 -4
- package/dist/hooks/useMapAutoComplete.d.ts +42 -0
- package/dist/hooks/useMapCityBound.d.ts +10 -0
- package/dist/hooks/useMapPlace.d.ts +3 -0
- package/dist/hooks/useMapRecomendPlace.d.ts +6 -0
- package/dist/hooks/useWalkingRoute.d.ts +9 -0
- package/dist/hooks-business/useBusinessMapAutoComplete.d.ts +18 -0
- package/dist/hooks-business/useBusinessMapRecomendPlace.d.ts +17 -2
- package/dist/index.cjs +52 -52
- package/dist/index.js +769 -725
- package/dist/types/interface.d.ts +14 -0
- package/dist/utils/transform.d.ts +1 -0
- package/package.json +1 -1
- package/src/App.tsx +1 -0
- package/src/business-components/WalkingRoute/WalkingRoute.tsx +48 -0
- package/src/business-components/WalkingRoute/index.ts +1 -0
- package/src/components/Demo/HeycarDemo.tsx +65 -19
- package/src/components/Demo/SearchDemo.tsx +167 -0
- package/src/components/Demo/country.ts +4179 -0
- package/src/components/Demo/searchResult.ts +8235 -0
- package/src/hooks/useDrivingRoute.ts +1 -1
- package/src/hooks/useGeoLocation.ts +37 -24
- package/src/hooks/useMapAutoComplete.ts +116 -0
- package/src/hooks/useMapCityBound.ts +52 -0
- package/src/hooks/useMapPlace.ts +14 -5
- package/src/hooks/useWalkingRoute.ts +70 -0
- package/src/hooks-business/useBusinessMapAutoComplete.ts +16 -0
- package/src/hooks-business/useBusinessMapRecomendPlace.ts +45 -13
- package/src/types/amap/place.d.ts +1 -1
- package/src/types/amap/walking.d.ts +3 -1
- package/src/types/interface.ts +16 -0
- package/src/utils/transform.ts +13 -0
- package/todo.md +3 -0
package/dist/index.js
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
var
|
|
5
|
-
const
|
|
6
|
-
var
|
|
7
|
-
const
|
|
8
|
-
var
|
|
9
|
-
const
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
var e =
|
|
1
|
+
import Ft, { defineComponent as Ye, h as f, watch as b, watchPostEffect as R, inject as fe, provide as me, shallowRef as x, onMounted as ne, onUnmounted as ie, computed as y, reactive as P, ref as h } from "vue";
|
|
2
|
+
Ft.util.warn;
|
|
3
|
+
const He = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9Ii44Ii8+PC9zdmc+", Y = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIxN3B4IiB2aWV3Qm94PSIwIDAgMTcgMTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5qSt5ZyG5b2iPC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxjaXJjbGUgaWQ9InBhdGgtMSIgY3g9IjQuNSIgY3k9IjkuNSIgcj0iNC41Ij48L2NpcmNsZT4KICAgICAgICA8Zm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GU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLpppbpobUt5Y2z5pe255So6L2mLeaLluWKqOWFieaghyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIyOC4wMDAwMDAsIC0zMjIuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSLmpK3lnIblvaIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIzMi4wMDAwMDAsIDMyMS4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDx1c2UgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMSIgZmlsdGVyPSJ1cmwoI2ZpbHRlci0yKSIgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICA8dXNlIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSIjMzQ2RUZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=";
|
|
4
|
+
var _t = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, Kt = typeof global == "object" && global && global.Object === Object && global;
|
|
5
|
+
const qt = Kt;
|
|
6
|
+
var en = typeof self == "object" && self && self.Object === Object && self, tn = qt || en || Function("return this")();
|
|
7
|
+
const nn = tn;
|
|
8
|
+
var an = nn.Symbol;
|
|
9
|
+
const H = an;
|
|
10
|
+
var Be = Object.prototype, on = Be.hasOwnProperty, rn = Be.toString, B = H ? H.toStringTag : void 0;
|
|
11
|
+
function cn(t) {
|
|
12
|
+
var e = on.call(t, B), n = t[B];
|
|
13
13
|
try {
|
|
14
|
-
t[
|
|
14
|
+
t[B] = void 0;
|
|
15
15
|
var i = !0;
|
|
16
16
|
} catch {
|
|
17
17
|
}
|
|
18
|
-
var a =
|
|
19
|
-
return i && (e ? t[
|
|
18
|
+
var a = rn.call(t);
|
|
19
|
+
return i && (e ? t[B] = n : delete t[B]), a;
|
|
20
20
|
}
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
return
|
|
21
|
+
var sn = Object.prototype, un = sn.toString;
|
|
22
|
+
function ln(t) {
|
|
23
|
+
return un.call(t);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
return t == null ? t === void 0 ?
|
|
25
|
+
var In = "[object Null]", Mn = "[object Undefined]", Ne = H ? H.toStringTag : void 0;
|
|
26
|
+
function dn(t) {
|
|
27
|
+
return t == null ? t === void 0 ? Mn : In : Ne && Ne in Object(t) ? cn(t) : ln(t);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function gn(t) {
|
|
30
30
|
return t != null && typeof t == "object";
|
|
31
31
|
}
|
|
32
|
-
var
|
|
33
|
-
function
|
|
34
|
-
return typeof t == "symbol" ||
|
|
32
|
+
var fn = "[object Symbol]";
|
|
33
|
+
function mn(t) {
|
|
34
|
+
return typeof t == "symbol" || gn(t) && dn(t) == fn;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function pn(t, e) {
|
|
37
37
|
for (var n = -1, i = t == null ? 0 : t.length, a = Array(i); ++n < i; )
|
|
38
38
|
a[n] = e(t[n], n, t);
|
|
39
39
|
return a;
|
|
40
40
|
}
|
|
41
|
-
var
|
|
42
|
-
const
|
|
43
|
-
var
|
|
44
|
-
function
|
|
41
|
+
var jn = Array.isArray;
|
|
42
|
+
const yn = jn;
|
|
43
|
+
var Ln = 1 / 0, De = H ? H.prototype : void 0, Se = De ? De.toString : void 0;
|
|
44
|
+
function Qe(t) {
|
|
45
45
|
if (typeof t == "string")
|
|
46
46
|
return t;
|
|
47
|
-
if (
|
|
48
|
-
return
|
|
49
|
-
if (
|
|
50
|
-
return
|
|
47
|
+
if (yn(t))
|
|
48
|
+
return pn(t, Qe) + "";
|
|
49
|
+
if (mn(t))
|
|
50
|
+
return Se ? Se.call(t) : "";
|
|
51
51
|
var e = t + "";
|
|
52
|
-
return e == "0" && 1 / t == -
|
|
52
|
+
return e == "0" && 1 / t == -Ln ? "-0" : e;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
return t == null ? "" :
|
|
54
|
+
function Ve(t) {
|
|
55
|
+
return t == null ? "" : Qe(t);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function vn(t, e, n, i) {
|
|
58
58
|
var a = -1, o = t == null ? 0 : t.length;
|
|
59
59
|
for (i && o && (n = t[++a]); ++a < o; )
|
|
60
60
|
n = e(n, t[a], a, t);
|
|
61
61
|
return n;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function An(t) {
|
|
64
64
|
return function(e) {
|
|
65
65
|
return t == null ? void 0 : t[e];
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
var
|
|
68
|
+
var Nn = {
|
|
69
69
|
// Latin-1 Supplement block.
|
|
70
70
|
À: "A",
|
|
71
71
|
Á: "A",
|
|
@@ -258,100 +258,100 @@ var yn = {
|
|
|
258
258
|
œ: "oe",
|
|
259
259
|
ʼn: "'n",
|
|
260
260
|
ſ: "s"
|
|
261
|
-
},
|
|
262
|
-
const
|
|
263
|
-
var
|
|
264
|
-
function
|
|
265
|
-
return t =
|
|
261
|
+
}, Dn = An(Nn);
|
|
262
|
+
const Sn = Dn;
|
|
263
|
+
var xn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Cn = "\\u0300-\\u036f", hn = "\\ufe20-\\ufe2f", wn = "\\u20d0-\\u20ff", bn = Cn + hn + wn, zn = "[" + bn + "]", Pn = RegExp(zn, "g");
|
|
264
|
+
function Zn(t) {
|
|
265
|
+
return t = Ve(t), t && t.replace(xn, Sn).replace(Pn, "");
|
|
266
266
|
}
|
|
267
|
-
var
|
|
268
|
-
function
|
|
269
|
-
return t.match(
|
|
267
|
+
var En = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
268
|
+
function Tn(t) {
|
|
269
|
+
return t.match(En) || [];
|
|
270
270
|
}
|
|
271
|
-
var
|
|
272
|
-
function
|
|
273
|
-
return
|
|
271
|
+
var Rn = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
272
|
+
function Gn(t) {
|
|
273
|
+
return Rn.test(t);
|
|
274
274
|
}
|
|
275
|
-
var
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
275
|
+
var Je = "\\ud800-\\udfff", kn = "\\u0300-\\u036f", On = "\\ufe20-\\ufe2f", Wn = "\\u20d0-\\u20ff", Un = kn + On + Wn, Xe = "\\u2700-\\u27bf", $e = "a-z\\xdf-\\xf6\\xf8-\\xff", Yn = "\\xac\\xb1\\xd7\\xf7", Hn = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Bn = "\\u2000-\\u206f", Qn = " \\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", Fe = "A-Z\\xc0-\\xd6\\xd8-\\xde", Vn = "\\ufe0e\\ufe0f", _e = Yn + Hn + Bn + Qn, Ke = "['’]", xe = "[" + _e + "]", Jn = "[" + Un + "]", qe = "\\d+", Xn = "[" + Xe + "]", et = "[" + $e + "]", tt = "[^" + Je + _e + qe + Xe + $e + Fe + "]", $n = "\\ud83c[\\udffb-\\udfff]", Fn = "(?:" + Jn + "|" + $n + ")", _n = "[^" + Je + "]", nt = "(?:\\ud83c[\\udde6-\\uddff]){2}", it = "[\\ud800-\\udbff][\\udc00-\\udfff]", O = "[" + Fe + "]", Kn = "\\u200d", Ce = "(?:" + et + "|" + tt + ")", qn = "(?:" + O + "|" + tt + ")", he = "(?:" + Ke + "(?:d|ll|m|re|s|t|ve))?", we = "(?:" + Ke + "(?:D|LL|M|RE|S|T|VE))?", at = Fn + "?", ot = "[" + Vn + "]?", ei = "(?:" + Kn + "(?:" + [_n, nt, it].join("|") + ")" + ot + at + ")*", ti = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ni = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", ii = ot + at + ei, ai = "(?:" + [Xn, nt, it].join("|") + ")" + ii, oi = RegExp([
|
|
276
|
+
O + "?" + et + "+" + he + "(?=" + [xe, O, "$"].join("|") + ")",
|
|
277
|
+
qn + "+" + we + "(?=" + [xe, O + Ce, "$"].join("|") + ")",
|
|
278
|
+
O + "?" + Ce + "+" + he,
|
|
279
|
+
O + "+" + we,
|
|
280
|
+
ni,
|
|
281
|
+
ti,
|
|
282
|
+
qe,
|
|
283
|
+
ai
|
|
284
284
|
].join("|"), "g");
|
|
285
|
-
function
|
|
286
|
-
return t.match(
|
|
285
|
+
function ri(t) {
|
|
286
|
+
return t.match(oi) || [];
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
return t =
|
|
288
|
+
function ci(t, e, n) {
|
|
289
|
+
return t = Ve(t), e = n ? void 0 : e, e === void 0 ? Gn(t) ? ri(t) : Tn(t) : t.match(e) || [];
|
|
290
290
|
}
|
|
291
|
-
var
|
|
292
|
-
function
|
|
291
|
+
var si = "['’]", ui = RegExp(si, "g");
|
|
292
|
+
function li(t) {
|
|
293
293
|
return function(e) {
|
|
294
|
-
return
|
|
294
|
+
return vn(ci(Zn(e).replace(ui, "")), t, "");
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
var
|
|
297
|
+
var Ii = li(function(t, e, n) {
|
|
298
298
|
return t + (n ? "-" : "") + e.toLowerCase();
|
|
299
299
|
});
|
|
300
|
-
const
|
|
301
|
-
function
|
|
302
|
-
return
|
|
300
|
+
const rt = Ii;
|
|
301
|
+
function p(t) {
|
|
302
|
+
return Ye({
|
|
303
303
|
name: t.name,
|
|
304
304
|
inheritAttrs: !1,
|
|
305
305
|
setup(e, n) {
|
|
306
|
-
const { attrs: i, slots: a, emit: o } = n, r = i, c = o,
|
|
307
|
-
const M =
|
|
308
|
-
c(I,
|
|
306
|
+
const { attrs: i, slots: a, emit: o } = n, r = i, c = o, u = (I, s) => {
|
|
307
|
+
const M = rt(I);
|
|
308
|
+
c(I, s), I !== M && c(M, s);
|
|
309
309
|
}, l = new Proxy(a, {
|
|
310
|
-
get(I,
|
|
310
|
+
get(I, s, M) {
|
|
311
311
|
var d;
|
|
312
|
-
return (d = Reflect.get(I,
|
|
312
|
+
return (d = Reflect.get(I, s, M)) != null ? d : Reflect.get(r, s);
|
|
313
313
|
}
|
|
314
314
|
});
|
|
315
|
-
return t(r, { ...n, slots: l, emit:
|
|
315
|
+
return t(r, { ...n, slots: l, emit: u });
|
|
316
316
|
}
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function ct(t) {
|
|
320
320
|
return {
|
|
321
|
-
props: (e) =>
|
|
321
|
+
props: (e) => Ye({
|
|
322
322
|
name: t.name,
|
|
323
323
|
inheritAttrs: !1,
|
|
324
324
|
props: e,
|
|
325
325
|
setup(n, i) {
|
|
326
|
-
const a = n, { slots: o, emit: r } = i, c = r,
|
|
327
|
-
const M =
|
|
328
|
-
c(I,
|
|
326
|
+
const a = n, { slots: o, emit: r } = i, c = r, u = (I, s) => {
|
|
327
|
+
const M = rt(I);
|
|
328
|
+
c(I, s), I !== M && c(M, s);
|
|
329
329
|
}, l = new Proxy(o, {
|
|
330
|
-
get(I,
|
|
330
|
+
get(I, s, M) {
|
|
331
331
|
var d;
|
|
332
|
-
return (d = Reflect.get(I,
|
|
332
|
+
return (d = Reflect.get(I, s, M)) != null ? d : Reflect.get(a, s);
|
|
333
333
|
}
|
|
334
334
|
});
|
|
335
|
-
return t(a, { ...i, slots: l, emit:
|
|
335
|
+
return t(a, { ...i, slots: l, emit: u });
|
|
336
336
|
}
|
|
337
337
|
})
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
|
-
const
|
|
341
|
-
var
|
|
342
|
-
function
|
|
340
|
+
const z = f, st = "zh-CN", be = (t) => t != null && typeof t == "object" && Number.isFinite(t.lat) && Number.isFinite(t.lng);
|
|
341
|
+
var Mi = typeof WeakMap == "function", ze = Object.keys;
|
|
342
|
+
function $(t, e) {
|
|
343
343
|
return t === e || t !== t && e !== e;
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Pe(t) {
|
|
346
346
|
return t.constructor === Object || t.constructor == null;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Ze(t) {
|
|
349
349
|
return !!t && typeof t.then == "function";
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Ee(t) {
|
|
352
352
|
return !!(t && t.$$typeof);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function di() {
|
|
355
355
|
var t = [];
|
|
356
356
|
return {
|
|
357
357
|
delete: function(e) {
|
|
@@ -376,31 +376,31 @@ function si() {
|
|
|
376
376
|
}
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
|
-
var
|
|
379
|
+
var gi = function(t) {
|
|
380
380
|
return t ? function() {
|
|
381
381
|
return /* @__PURE__ */ new WeakMap();
|
|
382
|
-
} :
|
|
383
|
-
}(
|
|
384
|
-
function
|
|
382
|
+
} : di;
|
|
383
|
+
}(Mi);
|
|
384
|
+
function ut(t) {
|
|
385
385
|
return function(n) {
|
|
386
386
|
var i = t || n;
|
|
387
|
-
return function(o, r, c,
|
|
388
|
-
|
|
387
|
+
return function(o, r, c, u, l, I, s) {
|
|
388
|
+
s === void 0 && (s = gi());
|
|
389
389
|
var M = !!o && typeof o == "object", d = !!r && typeof r == "object";
|
|
390
390
|
if (M !== d)
|
|
391
391
|
return !1;
|
|
392
392
|
if (!M && !d)
|
|
393
|
-
return i(o, r,
|
|
394
|
-
var
|
|
395
|
-
if (
|
|
396
|
-
return
|
|
397
|
-
|
|
398
|
-
var m = i(o, r,
|
|
399
|
-
return
|
|
393
|
+
return i(o, r, s);
|
|
394
|
+
var g = s.get(o);
|
|
395
|
+
if (g && s.get(r))
|
|
396
|
+
return g === r;
|
|
397
|
+
s.set(o, r), s.set(r, o);
|
|
398
|
+
var m = i(o, r, s);
|
|
399
|
+
return s.delete(o), s.delete(r), m;
|
|
400
400
|
};
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function fi(t, e, n, i) {
|
|
404
404
|
var a = t.length;
|
|
405
405
|
if (e.length !== a)
|
|
406
406
|
return !1;
|
|
@@ -409,65 +409,65 @@ function Ii(t, e, n, i) {
|
|
|
409
409
|
return !1;
|
|
410
410
|
return !0;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function mi(t, e, n, i) {
|
|
413
413
|
var a = t.size === e.size;
|
|
414
414
|
if (a && t.size) {
|
|
415
415
|
var o = {}, r = 0;
|
|
416
|
-
t.forEach(function(c,
|
|
416
|
+
t.forEach(function(c, u) {
|
|
417
417
|
if (a) {
|
|
418
418
|
var l = !1, I = 0;
|
|
419
|
-
e.forEach(function(
|
|
420
|
-
!l && !o[I] && (l = n(
|
|
419
|
+
e.forEach(function(s, M) {
|
|
420
|
+
!l && !o[I] && (l = n(u, M, r, I, t, e, i) && n(c, s, u, M, t, e, i), l && (o[I] = !0)), I++;
|
|
421
421
|
}), r++, a = l;
|
|
422
422
|
}
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
return a;
|
|
426
426
|
}
|
|
427
|
-
var
|
|
428
|
-
function
|
|
429
|
-
var a =
|
|
430
|
-
if (
|
|
427
|
+
var pi = "_owner", ji = Function.prototype.bind.call(Function.prototype.call, Object.prototype.hasOwnProperty);
|
|
428
|
+
function Te(t, e, n, i) {
|
|
429
|
+
var a = ze(t), o = a.length;
|
|
430
|
+
if (ze(e).length !== o)
|
|
431
431
|
return !1;
|
|
432
432
|
if (o)
|
|
433
433
|
for (var r = void 0; o-- > 0; ) {
|
|
434
|
-
if (r = a[o], r ===
|
|
435
|
-
var c =
|
|
436
|
-
if ((c ||
|
|
434
|
+
if (r = a[o], r === pi) {
|
|
435
|
+
var c = Ee(t), u = Ee(e);
|
|
436
|
+
if ((c || u) && c !== u)
|
|
437
437
|
return !1;
|
|
438
438
|
}
|
|
439
|
-
if (!
|
|
439
|
+
if (!ji(e, r) || !n(t[r], e[r], r, r, t, e, i))
|
|
440
440
|
return !1;
|
|
441
441
|
}
|
|
442
442
|
return !0;
|
|
443
443
|
}
|
|
444
|
-
var
|
|
444
|
+
var yi = function() {
|
|
445
445
|
return /foo/g.flags === "g" ? function(e, n) {
|
|
446
446
|
return e.source === n.source && e.flags === n.flags;
|
|
447
447
|
} : function(e, n) {
|
|
448
448
|
return e.source === n.source && e.global === n.global && e.ignoreCase === n.ignoreCase && e.multiline === n.multiline && e.unicode === n.unicode && e.sticky === n.sticky && e.lastIndex === n.lastIndex;
|
|
449
449
|
};
|
|
450
450
|
}();
|
|
451
|
-
function
|
|
451
|
+
function Li(t, e, n, i) {
|
|
452
452
|
var a = t.size === e.size;
|
|
453
453
|
if (a && t.size) {
|
|
454
454
|
var o = {};
|
|
455
455
|
t.forEach(function(r, c) {
|
|
456
456
|
if (a) {
|
|
457
|
-
var
|
|
458
|
-
e.forEach(function(I,
|
|
459
|
-
!
|
|
460
|
-
}), a =
|
|
457
|
+
var u = !1, l = 0;
|
|
458
|
+
e.forEach(function(I, s) {
|
|
459
|
+
!u && !o[l] && (u = n(r, I, c, s, t, e, i), u && (o[l] = !0)), l++;
|
|
460
|
+
}), a = u;
|
|
461
461
|
}
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
464
|
return a;
|
|
465
465
|
}
|
|
466
|
-
var
|
|
467
|
-
function
|
|
466
|
+
var vi = typeof Map == "function", Ai = typeof Set == "function", Re = Object.prototype.valueOf;
|
|
467
|
+
function V(t) {
|
|
468
468
|
var e = (
|
|
469
469
|
/* eslint-disable no-use-before-define */
|
|
470
|
-
typeof t == "function" ? t(n) : function(i, a, o, r, c,
|
|
470
|
+
typeof t == "function" ? t(n) : function(i, a, o, r, c, u, l) {
|
|
471
471
|
return n(i, a, l);
|
|
472
472
|
}
|
|
473
473
|
);
|
|
@@ -475,76 +475,85 @@ function Q(t) {
|
|
|
475
475
|
if (i === a)
|
|
476
476
|
return !0;
|
|
477
477
|
if (i && a && typeof i == "object" && typeof a == "object") {
|
|
478
|
-
if (
|
|
479
|
-
return
|
|
478
|
+
if (Pe(i) && Pe(a))
|
|
479
|
+
return Te(i, a, e, o);
|
|
480
480
|
var r = Array.isArray(i), c = Array.isArray(a);
|
|
481
|
-
return r || c ? r === c &&
|
|
481
|
+
return r || c ? r === c && fi(i, a, e, o) : (r = i instanceof Date, c = a instanceof Date, r || c ? r === c && $(i.getTime(), a.getTime()) : (r = i instanceof RegExp, c = a instanceof RegExp, r || c ? r === c && yi(i, a) : Ze(i) || Ze(a) ? i === a : vi && (r = i instanceof Map, c = a instanceof Map, r || c) ? r === c && mi(i, a, e, o) : Ai && (r = i instanceof Set, c = a instanceof Set, r || c) ? r === c && Li(i, a, e, o) : i.valueOf !== Re || a.valueOf !== Re ? $(i.valueOf(), a.valueOf()) : Te(i, a, e, o)));
|
|
482
482
|
}
|
|
483
483
|
return i !== i && a !== a;
|
|
484
484
|
}
|
|
485
485
|
return n;
|
|
486
486
|
}
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
return
|
|
487
|
+
V();
|
|
488
|
+
V(function() {
|
|
489
|
+
return $;
|
|
490
490
|
});
|
|
491
|
-
|
|
492
|
-
|
|
491
|
+
V(ut());
|
|
492
|
+
V(ut($));
|
|
493
493
|
const C = ([t, e]) => ({
|
|
494
494
|
lng: t,
|
|
495
495
|
lat: e
|
|
496
|
-
}),
|
|
496
|
+
}), ae = (t) => {
|
|
497
497
|
const e = [], n = t.split("*");
|
|
498
498
|
for (const [i, a] of n.entries())
|
|
499
499
|
a && e.push({ value: a, type: i % 2 === 0 ? "normal" : "emphasize" });
|
|
500
500
|
return e;
|
|
501
|
-
},
|
|
501
|
+
}, lt = (t) => `${t.charAt(2).toLocaleLowerCase()}${t.slice(3)}`, It = (t) => t.slice(2).toLowerCase(), Ni = (t) => {
|
|
502
502
|
switch (t) {
|
|
503
503
|
case "en":
|
|
504
504
|
return "style_en";
|
|
505
505
|
case "zh":
|
|
506
506
|
return "style_zh_cn";
|
|
507
507
|
}
|
|
508
|
-
},
|
|
508
|
+
}, le = (t) => [t.lng, t.lat], k = (t) => (...e) => {
|
|
509
509
|
setTimeout(() => t == null ? void 0 : t(...e));
|
|
510
|
-
},
|
|
511
|
-
|
|
510
|
+
}, Di = (t) => {
|
|
511
|
+
const { address_components: e } = t, n = e.find(
|
|
512
|
+
(a) => a.types[0] === "administrative_area_level_1" || a.types[0] === "administrative_area_level_2"
|
|
513
|
+
);
|
|
514
|
+
if (n)
|
|
515
|
+
return n.long_name;
|
|
516
|
+
const i = e.findIndex((a) => a.types[0] === "country");
|
|
517
|
+
if (i > 0)
|
|
518
|
+
return e[i - 1].long_name;
|
|
519
|
+
}, Mt = V((t) => (e, n) => be(e) || be(n) ? new google.maps.LatLng(e).equals(new google.maps.LatLng(n)) : t(e, n));
|
|
520
|
+
function dt() {
|
|
512
521
|
let t;
|
|
513
522
|
return function(n) {
|
|
514
|
-
return
|
|
523
|
+
return Mt(n, t) || (t = n), t;
|
|
515
524
|
};
|
|
516
525
|
}
|
|
517
|
-
function
|
|
518
|
-
const i =
|
|
519
|
-
return
|
|
526
|
+
function J(t, e, n) {
|
|
527
|
+
const i = dt();
|
|
528
|
+
return b(() => i(t()), e, {
|
|
520
529
|
immediate: !1,
|
|
521
530
|
flush: "post",
|
|
522
531
|
...n
|
|
523
532
|
});
|
|
524
533
|
}
|
|
525
|
-
function
|
|
526
|
-
const i =
|
|
527
|
-
return
|
|
534
|
+
function oe(t, e, n) {
|
|
535
|
+
const i = dt();
|
|
536
|
+
return b(() => i(t()), e, {
|
|
528
537
|
immediate: !0,
|
|
529
538
|
flush: "post",
|
|
530
539
|
...n
|
|
531
540
|
});
|
|
532
541
|
}
|
|
533
|
-
function
|
|
542
|
+
function Si(t) {
|
|
534
543
|
return `set${t.charAt(0).toUpperCase()}${t.slice(1)}`;
|
|
535
544
|
}
|
|
536
|
-
function
|
|
545
|
+
function xi(t, e, n, i) {
|
|
537
546
|
const a = n.map(
|
|
538
547
|
({ name: o }) => () => e[o]
|
|
539
548
|
);
|
|
540
|
-
|
|
549
|
+
b(
|
|
541
550
|
a,
|
|
542
551
|
(o, r) => {
|
|
543
552
|
const c = t.value;
|
|
544
553
|
if (c)
|
|
545
|
-
for (const [
|
|
546
|
-
const { name: I, defaultValue:
|
|
547
|
-
|
|
554
|
+
for (const [u, l] of o.entries()) {
|
|
555
|
+
const { name: I, defaultValue: s } = n[u], M = r[u];
|
|
556
|
+
Mt(l, M) || c[Si(I)](l != null ? l : s);
|
|
548
557
|
}
|
|
549
558
|
},
|
|
550
559
|
{
|
|
@@ -554,20 +563,20 @@ function Ai(t, e, n, i) {
|
|
|
554
563
|
}
|
|
555
564
|
);
|
|
556
565
|
}
|
|
557
|
-
function
|
|
558
|
-
return
|
|
566
|
+
function pe(t, e, n, i) {
|
|
567
|
+
return xi(t, e, n, {
|
|
559
568
|
immediate: !1,
|
|
560
569
|
...i
|
|
561
570
|
});
|
|
562
571
|
}
|
|
563
|
-
function
|
|
564
|
-
|
|
572
|
+
function Ie(t, e, n, i) {
|
|
573
|
+
R((a) => {
|
|
565
574
|
const o = t == null ? void 0 : t.value;
|
|
566
575
|
if (!o)
|
|
567
576
|
return;
|
|
568
577
|
const r = [];
|
|
569
578
|
for (const c of i) {
|
|
570
|
-
const
|
|
579
|
+
const u = lt(c), l = It(c), I = (s) => n(u, s);
|
|
571
580
|
o.on(l, I), r.push(() => o == null ? void 0 : o.off(l, I));
|
|
572
581
|
}
|
|
573
582
|
a(() => {
|
|
@@ -576,15 +585,15 @@ function se(t, e, n, i) {
|
|
|
576
585
|
});
|
|
577
586
|
});
|
|
578
587
|
}
|
|
579
|
-
function
|
|
580
|
-
|
|
588
|
+
function Me(t, e, n, i) {
|
|
589
|
+
R((a) => {
|
|
581
590
|
const o = t == null ? void 0 : t.value;
|
|
582
591
|
if (!o)
|
|
583
592
|
return;
|
|
584
593
|
const r = [];
|
|
585
594
|
for (const c of i) {
|
|
586
|
-
const
|
|
587
|
-
r.push(() => google.maps.event.removeListener(
|
|
595
|
+
const u = lt(c), l = It(c), I = (M) => n(u, M), s = o.addListener(l, I);
|
|
596
|
+
r.push(() => google.maps.event.removeListener(s));
|
|
588
597
|
}
|
|
589
598
|
a(() => {
|
|
590
599
|
for (const c of r)
|
|
@@ -592,18 +601,18 @@ function le(t, e, n, i) {
|
|
|
592
601
|
});
|
|
593
602
|
});
|
|
594
603
|
}
|
|
595
|
-
const
|
|
596
|
-
const n =
|
|
597
|
-
return
|
|
604
|
+
const gt = Symbol(), je = () => fe(gt), Ci = (t) => me(gt, t), E = p(function(e) {
|
|
605
|
+
const n = x(), i = je();
|
|
606
|
+
return ne(() => {
|
|
598
607
|
n.value = new AMap.Marker({ ...e });
|
|
599
|
-
}),
|
|
608
|
+
}), ie(() => {
|
|
600
609
|
var a;
|
|
601
610
|
(a = n.value) == null || a.setMap(null);
|
|
602
|
-
}),
|
|
611
|
+
}), R(() => {
|
|
603
612
|
var o;
|
|
604
613
|
const a = i == null ? void 0 : i.value;
|
|
605
614
|
a && ((o = n.value) == null || o.setMap(a));
|
|
606
|
-
}),
|
|
615
|
+
}), pe(n, e, [
|
|
607
616
|
{ name: "anchor", defaultValue: "" },
|
|
608
617
|
{ name: "offset", defaultValue: [0, 0] },
|
|
609
618
|
{ name: "clickable", defaultValue: !1 },
|
|
@@ -618,16 +627,16 @@ const st = Symbol(), me = () => de(st), vi = (t) => ge(st, t), Z = j(function(e)
|
|
|
618
627
|
{ name: "title", defaultValue: "" },
|
|
619
628
|
{ name: "extData", defaultValue: "" }
|
|
620
629
|
]), () => null;
|
|
621
|
-
}),
|
|
622
|
-
const n =
|
|
623
|
-
return
|
|
630
|
+
}), ft = Symbol(), ye = () => fe(ft), hi = (t) => me(ft, t), T = p(function(e) {
|
|
631
|
+
const n = x(), i = ye();
|
|
632
|
+
return ne(() => {
|
|
624
633
|
n.value = new google.maps.marker.AdvancedMarkerView({ ...e });
|
|
625
|
-
}),
|
|
634
|
+
}), ie(() => {
|
|
626
635
|
n.value && (n.value.map = null);
|
|
627
|
-
}),
|
|
636
|
+
}), R(() => {
|
|
628
637
|
const a = i == null ? void 0 : i.value;
|
|
629
638
|
!a || !n.value || (n.value.map = a);
|
|
630
|
-
}),
|
|
639
|
+
}), J(
|
|
631
640
|
() => {
|
|
632
641
|
const { content: a, ...o } = e;
|
|
633
642
|
return o;
|
|
@@ -635,7 +644,7 @@ const st = Symbol(), me = () => de(st), vi = (t) => ge(st, t), Z = j(function(e)
|
|
|
635
644
|
(a) => {
|
|
636
645
|
n.value && Object.assign(n.value, a);
|
|
637
646
|
}
|
|
638
|
-
),
|
|
647
|
+
), b(
|
|
639
648
|
() => e.content,
|
|
640
649
|
(a) => {
|
|
641
650
|
n.value && (n.value.content = a);
|
|
@@ -644,122 +653,122 @@ const st = Symbol(), me = () => de(st), vi = (t) => ge(st, t), Z = j(function(e)
|
|
|
644
653
|
flush: "post"
|
|
645
654
|
}
|
|
646
655
|
), () => null;
|
|
647
|
-
}),
|
|
648
|
-
const t =
|
|
656
|
+
}), mt = Symbol(), S = () => {
|
|
657
|
+
const t = fe(mt);
|
|
649
658
|
if (!t)
|
|
650
659
|
throw new Error("MyError: useMapSupplier should be under MapProvider");
|
|
651
660
|
return t;
|
|
652
|
-
},
|
|
661
|
+
}, wi = (t) => me(mt, t), w = (t, e, n) => {
|
|
653
662
|
const { class: i, ...a } = e != null ? e : {}, o = document.createElement(t);
|
|
654
663
|
return i && (o.className = i), Object.assign(o, a), n && (o.innerHTML = n), o;
|
|
655
|
-
},
|
|
656
|
-
var
|
|
657
|
-
const
|
|
664
|
+
}, pt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+";
|
|
665
|
+
var jt = "rgf09w0";
|
|
666
|
+
const yt = p(function(e) {
|
|
658
667
|
const n = y(() => `
|
|
659
|
-
<img src="${
|
|
668
|
+
<img src="${pt}" class="${jt}">
|
|
660
669
|
`);
|
|
661
|
-
return () =>
|
|
670
|
+
return () => f(E, {
|
|
662
671
|
attrs: {
|
|
663
672
|
position: e.position,
|
|
664
673
|
content: n.value,
|
|
665
674
|
anchor: "bottom-center"
|
|
666
675
|
}
|
|
667
676
|
});
|
|
668
|
-
}),
|
|
669
|
-
const n = y(() =>
|
|
670
|
-
class:
|
|
671
|
-
src:
|
|
677
|
+
}), Lt = p(function(e) {
|
|
678
|
+
const n = y(() => w("img", {
|
|
679
|
+
class: jt,
|
|
680
|
+
src: pt
|
|
672
681
|
}));
|
|
673
|
-
return () =>
|
|
682
|
+
return () => f(T, {
|
|
674
683
|
attrs: {
|
|
675
684
|
position: C(e.position),
|
|
676
685
|
content: n.value
|
|
677
686
|
}
|
|
678
687
|
});
|
|
679
688
|
});
|
|
680
|
-
|
|
681
|
-
const n =
|
|
682
|
-
return () =>
|
|
689
|
+
p(function(e) {
|
|
690
|
+
const n = S();
|
|
691
|
+
return () => z(n.supplier === "gmap" ? Lt : yt, {
|
|
683
692
|
attrs: e
|
|
684
693
|
});
|
|
685
694
|
});
|
|
686
|
-
var
|
|
687
|
-
const
|
|
695
|
+
var vt = "_15rq2xn1", At = "_15rq2xn0", Nt = "_15rq2xn3", Dt = "_15rq2xn2", St = "_15rq2xn4", xt = "_15rq2xn6", Ct = "_15rq2xn5";
|
|
696
|
+
const bi = p(function(e) {
|
|
688
697
|
const n = y(() => {
|
|
689
698
|
var i;
|
|
690
699
|
return `
|
|
691
|
-
<div class="${
|
|
692
|
-
<div class="${
|
|
700
|
+
<div class="${At}">
|
|
701
|
+
<div class="${vt}">
|
|
693
702
|
<div>
|
|
694
|
-
<div class="${
|
|
695
|
-
<div class="${
|
|
703
|
+
<div class="${Dt}">${e.title}</div>
|
|
704
|
+
<div class="${Nt}">${(i = e.description) != null ? i : ""}</div>
|
|
696
705
|
</div>
|
|
697
|
-
<img class="${
|
|
706
|
+
<img class="${St}" src="${He}" >
|
|
698
707
|
</div>
|
|
699
|
-
<div class="${
|
|
700
|
-
<img src="${
|
|
708
|
+
<div class="${Ct}"></div>
|
|
709
|
+
<img src="${Y}" class="${xt}">
|
|
701
710
|
</div>
|
|
702
711
|
`;
|
|
703
712
|
});
|
|
704
|
-
return () => e.type === "locator" ?
|
|
713
|
+
return () => e.type === "locator" ? f(yt, {
|
|
705
714
|
attrs: {
|
|
706
715
|
position: e.position
|
|
707
716
|
}
|
|
708
|
-
}) :
|
|
717
|
+
}) : f(E, {
|
|
709
718
|
attrs: {
|
|
710
719
|
position: e.position,
|
|
711
720
|
content: n.value,
|
|
712
721
|
anchor: "bottom-center"
|
|
713
722
|
}
|
|
714
723
|
});
|
|
715
|
-
}),
|
|
724
|
+
}), zi = p(function(e) {
|
|
716
725
|
const n = y(() => {
|
|
717
726
|
var i;
|
|
718
|
-
return
|
|
719
|
-
class:
|
|
727
|
+
return w("div", {
|
|
728
|
+
class: At
|
|
720
729
|
}, `
|
|
721
|
-
<div class="${
|
|
730
|
+
<div class="${vt}">
|
|
722
731
|
<div>
|
|
723
|
-
<div class="${
|
|
724
|
-
<div class="${
|
|
732
|
+
<div class="${Dt}">${e.title}</div>
|
|
733
|
+
<div class="${Nt}">${(i = e.description) != null ? i : ""}</div>
|
|
725
734
|
</div>
|
|
726
|
-
<img class="${
|
|
735
|
+
<img class="${St}" src="${He}" >
|
|
727
736
|
</div>
|
|
728
|
-
<div class="${
|
|
729
|
-
<img src="${
|
|
737
|
+
<div class="${Ct}"></div>
|
|
738
|
+
<img src="${Y}" class="${xt}">
|
|
730
739
|
`);
|
|
731
740
|
});
|
|
732
|
-
return () => e.type === "locator" ?
|
|
741
|
+
return () => e.type === "locator" ? f(Lt, {
|
|
733
742
|
attrs: {
|
|
734
743
|
position: e.position
|
|
735
744
|
}
|
|
736
|
-
}) :
|
|
745
|
+
}) : f(T, {
|
|
737
746
|
attrs: {
|
|
738
747
|
position: C(e.position),
|
|
739
748
|
content: n.value
|
|
740
749
|
}
|
|
741
750
|
});
|
|
742
|
-
}),
|
|
743
|
-
const n =
|
|
744
|
-
return () =>
|
|
751
|
+
}), pa = p(function(e) {
|
|
752
|
+
const n = S();
|
|
753
|
+
return () => z(n.supplier === "gmap" ? zi : bi, {
|
|
745
754
|
attrs: e
|
|
746
755
|
});
|
|
747
|
-
}),
|
|
748
|
-
const n =
|
|
749
|
-
return
|
|
756
|
+
}), Q = p(function(e) {
|
|
757
|
+
const n = x(), i = je();
|
|
758
|
+
return ne(() => {
|
|
750
759
|
n.value = new AMap.Polyline({ ...e });
|
|
751
|
-
}),
|
|
760
|
+
}), ie(() => {
|
|
752
761
|
var a;
|
|
753
762
|
(a = n.value) == null || a.setMap(null);
|
|
754
|
-
}),
|
|
763
|
+
}), R(() => {
|
|
755
764
|
var o;
|
|
756
765
|
const a = i == null ? void 0 : i.value;
|
|
757
766
|
a && ((o = n.value) == null || o.setMap(a));
|
|
758
|
-
}),
|
|
767
|
+
}), pe(n, e, [
|
|
759
768
|
{ name: "path", defaultValue: [[0, 0]] },
|
|
760
769
|
{ name: "extData", defaultValue: void 0 },
|
|
761
770
|
{ name: "draggable", defaultValue: !1 }
|
|
762
|
-
]),
|
|
771
|
+
]), J(
|
|
763
772
|
() => {
|
|
764
773
|
const { path: a, extData: o, draggable: r, ...c } = e;
|
|
765
774
|
return c;
|
|
@@ -769,28 +778,28 @@ const Si = j(function(e) {
|
|
|
769
778
|
(o = n.value) == null || o.setOptions({ ...a });
|
|
770
779
|
}
|
|
771
780
|
), () => null;
|
|
772
|
-
}),
|
|
773
|
-
const n =
|
|
774
|
-
return
|
|
781
|
+
}), X = p(function(e) {
|
|
782
|
+
const n = x(), i = ye();
|
|
783
|
+
return ne(() => {
|
|
775
784
|
n.value = new google.maps.Polyline({ ...e });
|
|
776
|
-
}),
|
|
785
|
+
}), ie(() => {
|
|
777
786
|
var a;
|
|
778
787
|
(a = n.value) == null || a.setMap(null);
|
|
779
|
-
}),
|
|
788
|
+
}), R(() => {
|
|
780
789
|
var o;
|
|
781
790
|
const a = i == null ? void 0 : i.value;
|
|
782
791
|
a && ((o = n.value) == null || o.setMap(a));
|
|
783
|
-
}),
|
|
792
|
+
}), J(
|
|
784
793
|
() => ({ ...e }),
|
|
785
794
|
(a) => {
|
|
786
795
|
var o;
|
|
787
796
|
(o = n.value) == null || o.setOptions({ ...a });
|
|
788
797
|
}
|
|
789
798
|
), () => null;
|
|
790
|
-
}),
|
|
799
|
+
}), Pi = p(function(e) {
|
|
791
800
|
return () => {
|
|
792
|
-
const n = window.innerWidth * 0.01, i = 2.5 * n, a = 0.35 * n, o = 0.6 * n, r = 1 * n, c = 0.75 * n,
|
|
793
|
-
return
|
|
801
|
+
const n = window.innerWidth * 0.01, i = 2.5 * n, a = 0.35 * n, o = 0.6 * n, r = 1 * n, c = 0.75 * n, u = e.done ? "#96B2CA" : "#487BF4", l = e.done ? "#7693AF" : "#4175F1", I = e.done ? "#7693AF" : "#6C95F5";
|
|
802
|
+
return f("div", [f(Q, {
|
|
794
803
|
attrs: {
|
|
795
804
|
path: e.path,
|
|
796
805
|
strokeWeight: i + 2 * a + 2 * r,
|
|
@@ -799,7 +808,7 @@ const Si = j(function(e) {
|
|
|
799
808
|
lineJoin: "round",
|
|
800
809
|
lineCap: "round"
|
|
801
810
|
}
|
|
802
|
-
}),
|
|
811
|
+
}), f(Q, {
|
|
803
812
|
attrs: {
|
|
804
813
|
path: e.path,
|
|
805
814
|
strokeWeight: i + 2 * a,
|
|
@@ -810,16 +819,16 @@ const Si = j(function(e) {
|
|
|
810
819
|
strokeStyle: "dashed",
|
|
811
820
|
strokeDasharray: [c, c * 0.5]
|
|
812
821
|
}
|
|
813
|
-
}),
|
|
822
|
+
}), f(Q, {
|
|
814
823
|
attrs: {
|
|
815
824
|
path: e.path,
|
|
816
825
|
strokeWeight: i,
|
|
817
826
|
strokeOpacity: 1,
|
|
818
|
-
strokeColor:
|
|
827
|
+
strokeColor: u,
|
|
819
828
|
lineJoin: "round",
|
|
820
829
|
lineCap: "round"
|
|
821
830
|
}
|
|
822
|
-
}),
|
|
831
|
+
}), f(Q, {
|
|
823
832
|
attrs: {
|
|
824
833
|
showDir: !0,
|
|
825
834
|
path: e.path,
|
|
@@ -831,33 +840,33 @@ const Si = j(function(e) {
|
|
|
831
840
|
}
|
|
832
841
|
})]);
|
|
833
842
|
};
|
|
834
|
-
}),
|
|
843
|
+
}), Zi = p(function(e) {
|
|
835
844
|
const n = y(() => e.path.map(C));
|
|
836
845
|
return () => {
|
|
837
|
-
const i = window.innerWidth * 0.01, a = 10 * i, o = 2.5 * i, r = 0.35 * i, c = 0.75 * i,
|
|
838
|
-
return
|
|
846
|
+
const i = window.innerWidth * 0.01, a = 10 * i, o = 2.5 * i, r = 0.35 * i, c = 0.75 * i, u = 1 * i, l = e.done ? "#96B2CA" : "#487BF4", I = e.done ? "#7693AF" : "#4175F1", s = e.done ? "#7693AF" : "#6C95F5";
|
|
847
|
+
return f("div", [f(X, {
|
|
839
848
|
attrs: {
|
|
840
849
|
path: n.value,
|
|
841
|
-
strokeWeight: o + 2 * r + 2 *
|
|
850
|
+
strokeWeight: o + 2 * r + 2 * u,
|
|
842
851
|
strokeOpacity: 1,
|
|
843
852
|
strokeColor: I
|
|
844
853
|
}
|
|
845
|
-
}),
|
|
854
|
+
}), f(X, {
|
|
846
855
|
attrs: {
|
|
847
856
|
path: n.value,
|
|
848
857
|
icons: [{
|
|
849
858
|
icon: {
|
|
850
859
|
path: "M 0,-0.5 0,0.5",
|
|
851
860
|
strokeWeight: o + 2 * r,
|
|
852
|
-
strokeColor:
|
|
853
|
-
fillColor:
|
|
861
|
+
strokeColor: s,
|
|
862
|
+
fillColor: s,
|
|
854
863
|
scale: 1
|
|
855
864
|
},
|
|
856
865
|
repeat: `${o}px`,
|
|
857
866
|
offset: `${o / 2}px`
|
|
858
867
|
}]
|
|
859
868
|
}
|
|
860
|
-
}),
|
|
869
|
+
}), f(X, {
|
|
861
870
|
attrs: {
|
|
862
871
|
path: n.value,
|
|
863
872
|
strokeWeight: o,
|
|
@@ -876,14 +885,14 @@ const Si = j(function(e) {
|
|
|
876
885
|
}
|
|
877
886
|
})]);
|
|
878
887
|
};
|
|
879
|
-
}),
|
|
880
|
-
const n =
|
|
881
|
-
return () => e.path.length ?
|
|
888
|
+
}), ja = p(function(e) {
|
|
889
|
+
const n = S();
|
|
890
|
+
return () => e.path.length ? z(n.supplier === "gmap" ? Zi : Pi, {
|
|
882
891
|
attrs: e
|
|
883
892
|
}) : null;
|
|
884
|
-
}),
|
|
885
|
-
const e =
|
|
886
|
-
return
|
|
893
|
+
}), ht = (t) => {
|
|
894
|
+
const e = x([]), n = new AMap.Driving({});
|
|
895
|
+
return oe(
|
|
887
896
|
() => ({ ...t }),
|
|
888
897
|
({ from: i, to: a }) => {
|
|
889
898
|
n.search(
|
|
@@ -894,10 +903,10 @@ const Si = j(function(e) {
|
|
|
894
903
|
switch (o) {
|
|
895
904
|
case "complete": {
|
|
896
905
|
let c = [];
|
|
897
|
-
const
|
|
898
|
-
for (const l of
|
|
906
|
+
const u = r;
|
|
907
|
+
for (const l of u.routes)
|
|
899
908
|
for (const I of l.steps) {
|
|
900
|
-
const M = I.path.map(({ lng: d, lat:
|
|
909
|
+
const M = I.path.map(({ lng: d, lat: g }) => [d, g]);
|
|
901
910
|
c = c.concat(M);
|
|
902
911
|
}
|
|
903
912
|
e.value = c;
|
|
@@ -912,113 +921,113 @@ const Si = j(function(e) {
|
|
|
912
921
|
);
|
|
913
922
|
}
|
|
914
923
|
), e;
|
|
915
|
-
},
|
|
916
|
-
const e =
|
|
917
|
-
return
|
|
924
|
+
}, wt = (t) => {
|
|
925
|
+
const e = x([]), n = new google.maps.DirectionsService();
|
|
926
|
+
return oe(
|
|
918
927
|
() => ({ ...t }),
|
|
919
928
|
({ from: i, to: a }) => {
|
|
920
929
|
n.route({
|
|
921
930
|
origin: { lng: i[0], lat: i[1] },
|
|
922
931
|
destination: { lng: a[0], lat: a[1] },
|
|
923
|
-
travelMode: google.maps.TravelMode.
|
|
932
|
+
travelMode: google.maps.TravelMode.DRIVING
|
|
924
933
|
}).then((o) => {
|
|
925
934
|
let r = [];
|
|
926
935
|
o.routes.map((c) => {
|
|
927
|
-
const
|
|
928
|
-
r = r.concat(
|
|
936
|
+
const u = c.overview_path.map((l) => [l.lng(), l.lat()]);
|
|
937
|
+
r = r.concat(u);
|
|
929
938
|
}), e.value = r;
|
|
930
939
|
});
|
|
931
940
|
}
|
|
932
941
|
), e;
|
|
933
|
-
},
|
|
934
|
-
const { supplier: e } =
|
|
935
|
-
return e === "gmap" ?
|
|
936
|
-
},
|
|
942
|
+
}, ya = (t) => {
|
|
943
|
+
const { supplier: e } = S();
|
|
944
|
+
return e === "gmap" ? wt(t) : ht(t);
|
|
945
|
+
}, Ei = (t, e, n) => {
|
|
937
946
|
if (!n)
|
|
938
947
|
return 0;
|
|
939
948
|
const { x: i, y: a } = n.lngLatToContainer(t), { x: o, y: r } = n.lngLatToContainer(e), c = Math.atan2(a - r, o - i);
|
|
940
949
|
return (Math.PI / 2 - c) / Math.PI * 180;
|
|
941
|
-
},
|
|
950
|
+
}, bt = (t) => y(() => {
|
|
942
951
|
const { map: e, path: n } = t, [i, a] = n;
|
|
943
952
|
if (!(!i || !a || !e))
|
|
944
|
-
return
|
|
945
|
-
}),
|
|
953
|
+
return Ei(i, a, e);
|
|
954
|
+
}), zt = (t) => y(() => {
|
|
946
955
|
const { path: e } = t, [n, i] = e;
|
|
947
956
|
if (!(!n || !i))
|
|
948
957
|
return google.maps.geometry.spherical.computeHeading(C(n), C(i));
|
|
949
|
-
}),
|
|
950
|
-
const { supplier: e } =
|
|
951
|
-
return e === "gmap" ?
|
|
952
|
-
},
|
|
958
|
+
}), La = (t) => {
|
|
959
|
+
const { supplier: e } = S();
|
|
960
|
+
return e === "gmap" ? zt(t) : bt(t);
|
|
961
|
+
}, Ti = p(function(e, {
|
|
953
962
|
slots: n
|
|
954
963
|
}) {
|
|
955
|
-
const i =
|
|
964
|
+
const i = je(), a = ht(e), o = bt(P({
|
|
956
965
|
path: a,
|
|
957
966
|
map: i
|
|
958
967
|
}));
|
|
959
968
|
return () => {
|
|
960
969
|
var r;
|
|
961
|
-
return
|
|
970
|
+
return f("div", [(r = n.render) == null ? void 0 : r.call(n, P({
|
|
962
971
|
path: a,
|
|
963
972
|
angle: o
|
|
964
973
|
}))]);
|
|
965
974
|
};
|
|
966
|
-
}),
|
|
975
|
+
}), Ri = p(function(e, {
|
|
967
976
|
slots: n
|
|
968
977
|
}) {
|
|
969
|
-
const i =
|
|
978
|
+
const i = ye(), a = wt(e), o = zt(P({
|
|
970
979
|
path: a,
|
|
971
980
|
map: i
|
|
972
981
|
}));
|
|
973
982
|
return () => {
|
|
974
983
|
var r;
|
|
975
|
-
return
|
|
984
|
+
return f("div", [(r = n.render) == null ? void 0 : r.call(n, P({
|
|
976
985
|
path: a,
|
|
977
986
|
angle: o
|
|
978
987
|
}))]);
|
|
979
988
|
};
|
|
980
|
-
}),
|
|
989
|
+
}), va = p(function(e, {
|
|
981
990
|
slots: n
|
|
982
991
|
}) {
|
|
983
992
|
const {
|
|
984
993
|
supplier: i
|
|
985
|
-
} =
|
|
986
|
-
return () =>
|
|
994
|
+
} = S();
|
|
995
|
+
return () => z(i === "gmap" ? Ri : Ti, {
|
|
987
996
|
attrs: e,
|
|
988
997
|
scopedSlots: n
|
|
989
998
|
});
|
|
990
|
-
}),
|
|
991
|
-
var
|
|
992
|
-
const
|
|
999
|
+
}), Pt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjEiIGhlaWdodD0iNjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTcuMSUiIHk9Ii03LjElIiB3aWR0aD0iMTE0LjMlIiBoZWlnaHQ9IjExNC4zJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIv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
|
|
995
1004
|
`);
|
|
996
|
-
return () =>
|
|
1005
|
+
return () => f(E, {
|
|
997
1006
|
attrs: {
|
|
998
1007
|
position: e.position,
|
|
999
1008
|
content: n.value,
|
|
1000
1009
|
anchor: "bottom-center"
|
|
1001
1010
|
}
|
|
1002
1011
|
});
|
|
1003
|
-
}),
|
|
1004
|
-
const n = y(() =>
|
|
1005
|
-
class:
|
|
1006
|
-
src:
|
|
1012
|
+
}), ki = p(function(e) {
|
|
1013
|
+
const n = y(() => w("img", {
|
|
1014
|
+
class: Zt,
|
|
1015
|
+
src: Pt
|
|
1007
1016
|
}));
|
|
1008
|
-
return () =>
|
|
1017
|
+
return () => f(T, {
|
|
1009
1018
|
attrs: {
|
|
1010
1019
|
position: C(e.position),
|
|
1011
1020
|
content: n.value
|
|
1012
1021
|
}
|
|
1013
1022
|
});
|
|
1014
|
-
}),
|
|
1015
|
-
const n =
|
|
1016
|
-
return () =>
|
|
1023
|
+
}), Aa = p(function(e) {
|
|
1024
|
+
const n = S();
|
|
1025
|
+
return () => z(n.supplier === "gmap" ? ki : Gi, {
|
|
1017
1026
|
attrs: e
|
|
1018
1027
|
});
|
|
1019
1028
|
});
|
|
1020
|
-
var
|
|
1021
|
-
function
|
|
1029
|
+
var de = /* @__PURE__ */ ((t) => (t.topLeft = "top-left", t.topCenter = "top-center", t.topRight = "top-right", t.middleLeft = "middle-left", t.center = "center", t.middleRight = "middle-right", t.bottomLeft = "bottom-left", t.bottomCenter = "bottom-center", t.bottomRight = "bottom-right", t))(de || {});
|
|
1030
|
+
function Oi(t, e, n) {
|
|
1022
1031
|
return e in t ? Object.defineProperty(t, e, {
|
|
1023
1032
|
value: n,
|
|
1024
1033
|
enumerable: !0,
|
|
@@ -1026,7 +1035,7 @@ function Ei(t, e, n) {
|
|
|
1026
1035
|
writable: !0
|
|
1027
1036
|
}) : t[e] = n, t;
|
|
1028
1037
|
}
|
|
1029
|
-
function
|
|
1038
|
+
function Ge(t, e) {
|
|
1030
1039
|
var n = Object.keys(t);
|
|
1031
1040
|
if (Object.getOwnPropertySymbols) {
|
|
1032
1041
|
var i = Object.getOwnPropertySymbols(t);
|
|
@@ -1036,226 +1045,226 @@ function Pe(t, e) {
|
|
|
1036
1045
|
}
|
|
1037
1046
|
return n;
|
|
1038
1047
|
}
|
|
1039
|
-
function
|
|
1048
|
+
function ke(t) {
|
|
1040
1049
|
for (var e = 1; e < arguments.length; e++) {
|
|
1041
1050
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
1042
|
-
e % 2 ?
|
|
1043
|
-
|
|
1044
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
1051
|
+
e % 2 ? Ge(Object(n), !0).forEach(function(i) {
|
|
1052
|
+
Oi(t, i, n[i]);
|
|
1053
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ge(Object(n)).forEach(function(i) {
|
|
1045
1054
|
Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(n, i));
|
|
1046
1055
|
});
|
|
1047
1056
|
}
|
|
1048
1057
|
return t;
|
|
1049
1058
|
}
|
|
1050
|
-
var
|
|
1059
|
+
var Wi = (t, e, n) => {
|
|
1051
1060
|
for (var i of Object.keys(t)) {
|
|
1052
1061
|
var a;
|
|
1053
1062
|
if (t[i] !== ((a = e[i]) !== null && a !== void 0 ? a : n[i]))
|
|
1054
1063
|
return !1;
|
|
1055
1064
|
}
|
|
1056
1065
|
return !0;
|
|
1057
|
-
},
|
|
1058
|
-
var n = t.defaultClassName, i =
|
|
1066
|
+
}, re = (t) => (e) => {
|
|
1067
|
+
var n = t.defaultClassName, i = ke(ke({}, t.defaultVariants), e);
|
|
1059
1068
|
for (var a in i) {
|
|
1060
1069
|
var o, r = (o = i[a]) !== null && o !== void 0 ? o : t.defaultVariants[a];
|
|
1061
1070
|
if (r != null) {
|
|
1062
1071
|
var c = r;
|
|
1063
1072
|
typeof c == "boolean" && (c = c === !0 ? "true" : "false");
|
|
1064
|
-
var
|
|
1073
|
+
var u = (
|
|
1065
1074
|
// @ts-expect-error
|
|
1066
1075
|
t.variantClassNames[a][c]
|
|
1067
1076
|
);
|
|
1068
|
-
|
|
1077
|
+
u && (n += " " + u);
|
|
1069
1078
|
}
|
|
1070
1079
|
}
|
|
1071
1080
|
for (var [l, I] of t.compoundVariants)
|
|
1072
|
-
|
|
1081
|
+
Wi(l, i, t.defaultVariants) && (n += " " + I);
|
|
1073
1082
|
return n;
|
|
1074
|
-
},
|
|
1075
|
-
const
|
|
1083
|
+
}, Oe = re({ defaultClassName: "", variantClassNames: { textAlign: { left: "fhyw83", right: "fhyw84" } }, defaultVariants: {}, compoundVariants: [] }), We = re({ defaultClassName: "fhyw85", variantClassNames: { textAlign: { left: "fhyw86", right: "fhyw87" } }, defaultVariants: {}, compoundVariants: [] }), Et = "fhyw89", Tt = re({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] }), F = "fhyw88";
|
|
1084
|
+
const Ui = p(function(e) {
|
|
1076
1085
|
const n = y(() => {
|
|
1077
1086
|
var o;
|
|
1078
1087
|
return (o = e.textAlign) != null ? o : "right";
|
|
1079
1088
|
}), i = y(() => `
|
|
1080
|
-
<div class="${
|
|
1089
|
+
<div class="${Tt({
|
|
1081
1090
|
textAlign: n.value
|
|
1082
1091
|
})}" >
|
|
1083
|
-
<img class="${
|
|
1092
|
+
<img class="${F} ${Oe({
|
|
1084
1093
|
textAlign: n.value
|
|
1085
|
-
})}" src="${
|
|
1086
|
-
<div class="${
|
|
1094
|
+
})}" src="${Y}">
|
|
1095
|
+
<div class="${Et}">${e.label}</div>
|
|
1087
1096
|
</div>
|
|
1088
|
-
`), a = y(() => `<img class="${
|
|
1097
|
+
`), a = y(() => `<img class="${F} ${Oe({
|
|
1089
1098
|
textAlign: n.value
|
|
1090
|
-
})}" src="${
|
|
1091
|
-
return () =>
|
|
1099
|
+
})}" src="${Y}">`);
|
|
1100
|
+
return () => f(E, {
|
|
1092
1101
|
attrs: {
|
|
1093
1102
|
position: e.position,
|
|
1094
1103
|
content: e.label ? i.value : a.value,
|
|
1095
|
-
anchor: n.value === "left" ?
|
|
1104
|
+
anchor: n.value === "left" ? de.middleRight : de.middleLeft
|
|
1096
1105
|
}
|
|
1097
1106
|
});
|
|
1098
|
-
}),
|
|
1107
|
+
}), Yi = p(function(e) {
|
|
1099
1108
|
const n = y(() => {
|
|
1100
1109
|
var o;
|
|
1101
1110
|
return (o = e.textAlign) != null ? o : "right";
|
|
1102
|
-
}), i = y(() =>
|
|
1103
|
-
class: `${
|
|
1111
|
+
}), i = y(() => w("div", {
|
|
1112
|
+
class: `${Tt({
|
|
1104
1113
|
textAlign: n.value
|
|
1105
|
-
})} ${
|
|
1114
|
+
})} ${We({
|
|
1106
1115
|
textAlign: n.value
|
|
1107
1116
|
})}`
|
|
1108
1117
|
}, `
|
|
1109
|
-
<img class="${
|
|
1110
|
-
<div class="${
|
|
1111
|
-
`)), a = y(() =>
|
|
1112
|
-
class: `${
|
|
1118
|
+
<img class="${F}" src="${Y}">
|
|
1119
|
+
<div class="${Et}">${e.label}</div>
|
|
1120
|
+
`)), a = y(() => w("img", {
|
|
1121
|
+
class: `${F} ${We({
|
|
1113
1122
|
textAlign: n.value
|
|
1114
1123
|
})}`,
|
|
1115
|
-
src:
|
|
1124
|
+
src: Y
|
|
1116
1125
|
}));
|
|
1117
|
-
return () =>
|
|
1126
|
+
return () => f(T, {
|
|
1118
1127
|
attrs: {
|
|
1119
1128
|
position: C(e.position),
|
|
1120
1129
|
content: e.label ? i.value : a.value
|
|
1121
1130
|
}
|
|
1122
1131
|
});
|
|
1123
|
-
}),
|
|
1124
|
-
const n =
|
|
1125
|
-
return () =>
|
|
1132
|
+
}), Hi = p(function(e) {
|
|
1133
|
+
const n = S();
|
|
1134
|
+
return () => z(n.supplier === "gmap" ? Yi : Ui, {
|
|
1126
1135
|
attrs: e
|
|
1127
1136
|
});
|
|
1128
|
-
}),
|
|
1129
|
-
return () =>
|
|
1137
|
+
}), Na = p(function(e) {
|
|
1138
|
+
return () => f("div", [e.places.map((n) => f(Hi, {
|
|
1130
1139
|
attrs: {
|
|
1131
|
-
position:
|
|
1140
|
+
position: le(n),
|
|
1132
1141
|
label: n.name,
|
|
1133
1142
|
textAlign: "left"
|
|
1134
1143
|
}
|
|
1135
1144
|
}))]);
|
|
1136
|
-
}),
|
|
1137
|
-
var
|
|
1138
|
-
const
|
|
1145
|
+
}), Rt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjg0NDciIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkY4QjRBIiBvZmZzZXQ9IjUwLjU5NiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZBOTVBIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xMiAzMC4yMTVjMi4xMzQgMCAzLjg2My0uODkzIDMuODYzLTEuOTk1IDAtMS4xLTEuNzMtMS45OTQtMy44NjMtMS45OTQtMi4xMzQgMC0zLjg2My44OTMtMy44NjMgMS45OTQgMCAxLjEwMiAxLjczIDEuOTk1IDMuODYzIDEuOTk1eiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyNy4wMDZjMi4xMjggMC0uOS0zLjc0MyA1LjYyMS02LjY0M0Mx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zMiAxLjgyMyAwIDEuMDA3IDEuNTgxIDEuODIzIDMuNTMyIDEuODIzeiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyN2MyLjEyOCAwLS45LTMuNzQyIDUuNjIxLTYuNjQxIDMuMjIxLTEuOTEgNS4zNzktNS40MSA1LjM3OS05LjQxMkMyMiA0LjkwMSAxNy4wNzUgMCAxMSAwUzAgNC45MDEgMCAxMC45NDdjMCAzLjkxOCAyLjA2OCA3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
|
|
1146
|
+
var U = re({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] }), kt = "_4a4ovk1", Ot = "_4a4ovk4", Wt = "_4a4ovk5", Ut = "_4a4ovk3", _ = "_4a4ovk0", Yt = "_4a4ovk2";
|
|
1147
|
+
const Bi = p(function(e) {
|
|
1139
1148
|
const n = y(() => {
|
|
1140
1149
|
var o;
|
|
1141
|
-
const i = e.type === "start" ?
|
|
1142
|
-
return !e.description && !e.title ? `<img src="${i}" class="${
|
|
1150
|
+
const i = e.type === "start" ? Gt : Rt, a = e.description ? ae(e.description).map((r) => r.type === "normal" ? r.value : `<span class="${Wt}">${r.value}</span>`).join("") : "";
|
|
1151
|
+
return !e.description && !e.title ? `<img src="${i}" class="${U({
|
|
1143
1152
|
type: e.type
|
|
1144
1153
|
})}">` : e.description ? `
|
|
1145
|
-
<div class="${
|
|
1146
|
-
<div class="${
|
|
1147
|
-
<div class="${
|
|
1148
|
-
<div class="${
|
|
1154
|
+
<div class="${_}">
|
|
1155
|
+
<div class="${kt}">
|
|
1156
|
+
<div class="${Ut}">${(o = e.title) != null ? o : ""}</div>
|
|
1157
|
+
<div class="${Ot}">${a}</div>
|
|
1149
1158
|
</div>
|
|
1150
|
-
<img src="${i}" class="${
|
|
1159
|
+
<img src="${i}" class="${U({
|
|
1151
1160
|
type: e.type
|
|
1152
1161
|
})}">
|
|
1153
1162
|
</div>
|
|
1154
1163
|
` : `
|
|
1155
|
-
<div class="${
|
|
1156
|
-
<div class="${
|
|
1157
|
-
<img src="${i}" class="${
|
|
1164
|
+
<div class="${_}">
|
|
1165
|
+
<div class="${Yt}">${e.title}</div>
|
|
1166
|
+
<img src="${i}" class="${U({
|
|
1158
1167
|
type: e.type
|
|
1159
1168
|
})}">
|
|
1160
1169
|
</div>
|
|
1161
1170
|
`;
|
|
1162
1171
|
});
|
|
1163
|
-
return () =>
|
|
1172
|
+
return () => f(E, {
|
|
1164
1173
|
attrs: {
|
|
1165
1174
|
position: e.position,
|
|
1166
1175
|
content: n.value,
|
|
1167
1176
|
anchor: "bottom-center"
|
|
1168
1177
|
}
|
|
1169
1178
|
});
|
|
1170
|
-
}),
|
|
1179
|
+
}), Qi = p(function(e) {
|
|
1171
1180
|
const n = y(() => {
|
|
1172
1181
|
var o;
|
|
1173
|
-
const i = e.type === "start" ?
|
|
1174
|
-
return !e.description && !e.title ?
|
|
1175
|
-
class:
|
|
1182
|
+
const i = e.type === "start" ? Gt : Rt, a = e.description ? ae(e.description).map((r) => r.type === "normal" ? r.value : `<span class="${Wt}">${r.value}</span>`).join("") : "";
|
|
1183
|
+
return !e.description && !e.title ? w("img", {
|
|
1184
|
+
class: U({
|
|
1176
1185
|
type: e.type
|
|
1177
1186
|
}),
|
|
1178
1187
|
src: i
|
|
1179
|
-
}) : e.description ?
|
|
1180
|
-
class:
|
|
1188
|
+
}) : e.description ? w("div", {
|
|
1189
|
+
class: _
|
|
1181
1190
|
}, `
|
|
1182
|
-
<div class="${
|
|
1183
|
-
<div class="${
|
|
1184
|
-
<div class="${
|
|
1191
|
+
<div class="${kt}">
|
|
1192
|
+
<div class="${Ut}">${(o = e.title) != null ? o : ""}</div>
|
|
1193
|
+
<div class="${Ot}">${a}</div>
|
|
1185
1194
|
</div>
|
|
1186
|
-
<img src="${i}" class="${
|
|
1195
|
+
<img src="${i}" class="${U({
|
|
1187
1196
|
type: e.type
|
|
1188
1197
|
})}">
|
|
1189
|
-
`) :
|
|
1190
|
-
class:
|
|
1198
|
+
`) : w("div", {
|
|
1199
|
+
class: _
|
|
1191
1200
|
}, `
|
|
1192
|
-
<div class="${
|
|
1193
|
-
<img src="${i}" class="${
|
|
1201
|
+
<div class="${Yt}">${e.title}</div>
|
|
1202
|
+
<img src="${i}" class="${U({
|
|
1194
1203
|
type: e.type
|
|
1195
1204
|
})}">
|
|
1196
1205
|
`);
|
|
1197
1206
|
});
|
|
1198
|
-
return () =>
|
|
1207
|
+
return () => f(T, {
|
|
1199
1208
|
attrs: {
|
|
1200
1209
|
position: C(e.position),
|
|
1201
1210
|
content: n.value
|
|
1202
1211
|
}
|
|
1203
1212
|
});
|
|
1204
|
-
}),
|
|
1205
|
-
const n =
|
|
1206
|
-
return () =>
|
|
1213
|
+
}), Da = p(function(e) {
|
|
1214
|
+
const n = S();
|
|
1215
|
+
return () => z(n.supplier === "gmap" ? Qi : Bi, {
|
|
1207
1216
|
attrs: e
|
|
1208
1217
|
});
|
|
1209
|
-
}),
|
|
1210
|
-
var
|
|
1211
|
-
const
|
|
1218
|
+
}), K = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zP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jc3My43MDggMi42NDUgMS4yMDMgNC44MyAxLjIwMyAyLjI0MyAwIDQuMTU5LS41MjQgNC44OTItMS4yNmwtLjAxMy4yNDFjMC0uMDA0LS4yMTggMS43NjQtLjY0NiAyLjYwNnpNNy40NDcgMjMuOTNhMjAuMTIgMjAuMTIgMCAwMC0uMjk0LTIuNDQydi0uMDY1YzEuNTM4LS4zMiAzLjE2Ny0uNjQ5IDQuODYyLS42NDkgMS42NzUgMCAzLjI5NC4zMjYgNC44MTYuNjM3YTIyLjY3MyAyMi42NzMgMCAwMC0uMzAzIDIuNTJjLS4xNDcgMi44ODQuMDIgMy4zMTQuMjMyIDUuMDQ4LjAwNi4wNTcuMDI2LjE1Mi4wNTYuMjc0LTEuNTEzLjI3OC0zIC41NC00LjkxMi41NC0xLjg0NyAwLTMuMjg5LS4yNS00Ljc1LS41MTF2LS4wMDhjLjAzLS4xMzEuMDU1LS4yMzMuMDYtLjI5LjIxOC0xLjc0NC4zOC0yLjE3My4yMzMtNS4wNTN6IiBmaWxsPSIjRjJGQUZGIi8+PHBhdGggZD0iTTEyLjA2NyAxOS43MTZsLTQuNjQ1LjY5MmMtLjQzMS0yLjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";
|
|
1219
|
+
var q = "_65j3sr1", Ht = "_4a4ovk5", Bt = "_4a4ovk0", Qt = "_4a4ovk2";
|
|
1220
|
+
const Vi = p(function(e) {
|
|
1212
1221
|
const n = y(() => {
|
|
1213
1222
|
var o;
|
|
1214
|
-
const i = e.title ?
|
|
1223
|
+
const i = e.title ? ae(e.title).map((r) => r.type === "normal" ? r.value : `<span class="${Ht}">${r.value}</span>`).join("") : "", a = `transform:rotate(${(o = e.angle) != null ? o : 0}deg)`;
|
|
1215
1224
|
return e.title ? `
|
|
1216
|
-
<div class="${
|
|
1217
|
-
<div class="${
|
|
1218
|
-
<img src="${
|
|
1225
|
+
<div class="${Bt}">
|
|
1226
|
+
<div class="${Qt}">${i}</div>
|
|
1227
|
+
<img src="${K}" class="${q}" style="${a}">
|
|
1219
1228
|
</div>
|
|
1220
|
-
` : `<img src="${
|
|
1229
|
+
` : `<img src="${K}" class="${q}" style="${a}">`;
|
|
1221
1230
|
});
|
|
1222
|
-
return () =>
|
|
1231
|
+
return () => f(E, {
|
|
1223
1232
|
attrs: {
|
|
1224
1233
|
position: e.position,
|
|
1225
1234
|
content: n.value,
|
|
1226
1235
|
anchor: "bottom-center"
|
|
1227
1236
|
}
|
|
1228
1237
|
});
|
|
1229
|
-
}),
|
|
1238
|
+
}), Ji = p(function(e) {
|
|
1230
1239
|
const n = y(() => {
|
|
1231
1240
|
var o;
|
|
1232
|
-
const i = e.title ?
|
|
1233
|
-
return e.title ?
|
|
1234
|
-
class:
|
|
1241
|
+
const i = e.title ? ae(e.title).map((r) => r.type === "normal" ? r.value : `<span class="${Ht}">${r.value}</span>`).join("") : "", a = `transform:rotate(${(o = e.angle) != null ? o : 0}deg)`;
|
|
1242
|
+
return e.title ? w("div", {
|
|
1243
|
+
class: Bt
|
|
1235
1244
|
}, `
|
|
1236
|
-
<div class="${
|
|
1237
|
-
<img src="${
|
|
1238
|
-
`) :
|
|
1239
|
-
class:
|
|
1240
|
-
src:
|
|
1245
|
+
<div class="${Qt}">${i}</div>
|
|
1246
|
+
<img src="${K}" class="${q}" style="${a}">
|
|
1247
|
+
`) : w("img", {
|
|
1248
|
+
class: q,
|
|
1249
|
+
src: K,
|
|
1241
1250
|
style: a
|
|
1242
1251
|
});
|
|
1243
1252
|
});
|
|
1244
|
-
return () =>
|
|
1253
|
+
return () => f(T, {
|
|
1245
1254
|
attrs: {
|
|
1246
1255
|
position: C(e.position),
|
|
1247
1256
|
content: n.value
|
|
1248
1257
|
}
|
|
1249
1258
|
});
|
|
1250
|
-
}),
|
|
1251
|
-
const n =
|
|
1252
|
-
return () =>
|
|
1259
|
+
}), Sa = p(function(e) {
|
|
1260
|
+
const n = S();
|
|
1261
|
+
return () => z(n.supplier === "gmap" ? Ji : Vi, {
|
|
1253
1262
|
attrs: e
|
|
1254
1263
|
});
|
|
1255
|
-
}),
|
|
1264
|
+
}), Xi = p(function(e) {
|
|
1256
1265
|
return () => {
|
|
1257
1266
|
const i = 2 * (window.innerWidth * 0.01);
|
|
1258
|
-
return
|
|
1267
|
+
return f(Q, {
|
|
1259
1268
|
attrs: {
|
|
1260
1269
|
path: e.path,
|
|
1261
1270
|
strokeWeight: i,
|
|
@@ -1268,11 +1277,11 @@ const Ui = j(function(e) {
|
|
|
1268
1277
|
}
|
|
1269
1278
|
});
|
|
1270
1279
|
};
|
|
1271
|
-
}),
|
|
1280
|
+
}), $i = p(function(e) {
|
|
1272
1281
|
const n = y(() => e.path.map(C));
|
|
1273
1282
|
return () => {
|
|
1274
1283
|
const a = 2 * (window.innerWidth * 0.01), o = a / 4;
|
|
1275
|
-
return
|
|
1284
|
+
return f(X, {
|
|
1276
1285
|
attrs: {
|
|
1277
1286
|
path: n.value,
|
|
1278
1287
|
strokeWeight: a,
|
|
@@ -1298,64 +1307,64 @@ const Ui = j(function(e) {
|
|
|
1298
1307
|
}
|
|
1299
1308
|
});
|
|
1300
1309
|
};
|
|
1301
|
-
}),
|
|
1302
|
-
const n =
|
|
1303
|
-
return () =>
|
|
1310
|
+
}), xa = p(function(e) {
|
|
1311
|
+
const n = S();
|
|
1312
|
+
return () => z(n.supplier === "gmap" ? $i : Xi, {
|
|
1304
1313
|
attrs: e
|
|
1305
1314
|
});
|
|
1306
|
-
}),
|
|
1307
|
-
var
|
|
1308
|
-
const
|
|
1309
|
-
const n = y(() => `<img src="${
|
|
1310
|
-
return () =>
|
|
1315
|
+
}), ee = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";
|
|
1316
|
+
var Vt = "rrvp0y3", te = "rrvp0y2";
|
|
1317
|
+
const Fi = p(function(e) {
|
|
1318
|
+
const n = y(() => `<img src="${ee}" class="${te}">`), i = y(() => `<img src="${ee}" class="${te} ${Vt}">`);
|
|
1319
|
+
return () => f("div", [f(E, {
|
|
1311
1320
|
attrs: {
|
|
1312
1321
|
position: e.position,
|
|
1313
1322
|
anchor: "bottom-center",
|
|
1314
1323
|
content: n.value
|
|
1315
1324
|
}
|
|
1316
|
-
}),
|
|
1325
|
+
}), f(E, {
|
|
1317
1326
|
attrs: {
|
|
1318
1327
|
position: e.position,
|
|
1319
1328
|
anchor: "bottom-center",
|
|
1320
1329
|
content: i.value
|
|
1321
1330
|
}
|
|
1322
1331
|
})]);
|
|
1323
|
-
}),
|
|
1324
|
-
const n = y(() =>
|
|
1325
|
-
class:
|
|
1326
|
-
src:
|
|
1327
|
-
})), i = y(() =>
|
|
1328
|
-
class: `${
|
|
1329
|
-
src:
|
|
1332
|
+
}), _i = p(function(e) {
|
|
1333
|
+
const n = y(() => w("img", {
|
|
1334
|
+
class: te,
|
|
1335
|
+
src: ee
|
|
1336
|
+
})), i = y(() => w("img", {
|
|
1337
|
+
class: `${te} ${Vt}`,
|
|
1338
|
+
src: ee
|
|
1330
1339
|
}));
|
|
1331
1340
|
return () => {
|
|
1332
1341
|
const a = C(e.position);
|
|
1333
|
-
return
|
|
1342
|
+
return f("div", [f(T, {
|
|
1334
1343
|
attrs: {
|
|
1335
1344
|
position: a,
|
|
1336
1345
|
content: n.value
|
|
1337
1346
|
}
|
|
1338
|
-
}),
|
|
1347
|
+
}), f(T, {
|
|
1339
1348
|
attrs: {
|
|
1340
1349
|
position: a,
|
|
1341
1350
|
content: i.value
|
|
1342
1351
|
}
|
|
1343
1352
|
})]);
|
|
1344
1353
|
};
|
|
1345
|
-
}),
|
|
1346
|
-
const n =
|
|
1347
|
-
return () =>
|
|
1354
|
+
}), Ca = p(function(e) {
|
|
1355
|
+
const n = S();
|
|
1356
|
+
return () => z(n.supplier === "gmap" ? _i : Fi, {
|
|
1348
1357
|
attrs: e
|
|
1349
1358
|
});
|
|
1350
1359
|
});
|
|
1351
|
-
var
|
|
1352
|
-
const
|
|
1360
|
+
var Ki = "_1d8ur7t0";
|
|
1361
|
+
const qi = p(function(e, { slots: n, emit: i }) {
|
|
1353
1362
|
const {
|
|
1354
1363
|
onDragStart: a,
|
|
1355
1364
|
onDragEnd: o,
|
|
1356
1365
|
mapRef: r,
|
|
1357
1366
|
vectorMapForeign: c = "style_zh_cn",
|
|
1358
|
-
...
|
|
1367
|
+
...u
|
|
1359
1368
|
} = e, l = y(() => ({
|
|
1360
1369
|
dragEnable: !!e.dragEnable,
|
|
1361
1370
|
zoomEnable: !!e.zoomEnable,
|
|
@@ -1364,23 +1373,23 @@ const Xi = j(function(e, { slots: n, emit: i }) {
|
|
|
1364
1373
|
rotateEnable: !!e.rotateEnable,
|
|
1365
1374
|
animateEnable: !!e.animateEnable,
|
|
1366
1375
|
keyboardEnable: !!e.keyboardEnable
|
|
1367
|
-
})), I =
|
|
1368
|
-
return
|
|
1369
|
-
if (
|
|
1376
|
+
})), I = x(), s = x();
|
|
1377
|
+
return Ci(s), R(() => {
|
|
1378
|
+
if (s.value || !I.value)
|
|
1370
1379
|
return;
|
|
1371
1380
|
const M = new AMap.Map(I.value, {
|
|
1372
|
-
...
|
|
1381
|
+
...u,
|
|
1373
1382
|
vectorMapForeign: c,
|
|
1374
1383
|
mapStyle: "amap://styles/95498a904992a4c0b866a3e4d7729682"
|
|
1375
1384
|
});
|
|
1376
|
-
|
|
1377
|
-
}),
|
|
1385
|
+
s.value = M, r == null || r(M);
|
|
1386
|
+
}), J(
|
|
1378
1387
|
() => l.value,
|
|
1379
1388
|
(M) => {
|
|
1380
1389
|
var d;
|
|
1381
|
-
(d =
|
|
1390
|
+
(d = s.value) == null || d.setStatus(M);
|
|
1382
1391
|
}
|
|
1383
|
-
),
|
|
1392
|
+
), pe(s, e, [
|
|
1384
1393
|
{ name: "center", defaultValue: [0, 0] },
|
|
1385
1394
|
{ name: "zooms", defaultValue: [0, 0] },
|
|
1386
1395
|
{ name: "zoom", defaultValue: 0 },
|
|
@@ -1393,155 +1402,155 @@ const Xi = j(function(e, { slots: n, emit: i }) {
|
|
|
1393
1402
|
{ name: "pitch", defaultValue: 0 },
|
|
1394
1403
|
{ name: "mask", defaultValue: [] },
|
|
1395
1404
|
{ name: "labelRejectMask", defaultValue: !1 }
|
|
1396
|
-
]),
|
|
1405
|
+
]), Ie(s, e, i, ["onDragStart", "onDragEnd"]), () => {
|
|
1397
1406
|
var M;
|
|
1398
|
-
return
|
|
1407
|
+
return f("div", { ref: I, class: Ki }, (M = n.default) == null ? void 0 : M.call(n));
|
|
1399
1408
|
};
|
|
1400
1409
|
});
|
|
1401
|
-
var
|
|
1410
|
+
var ge = {}, ea = {
|
|
1402
1411
|
get exports() {
|
|
1403
|
-
return
|
|
1412
|
+
return ge;
|
|
1404
1413
|
},
|
|
1405
1414
|
set exports(t) {
|
|
1406
|
-
|
|
1415
|
+
ge = t;
|
|
1407
1416
|
}
|
|
1408
1417
|
};
|
|
1409
1418
|
(function(t, e) {
|
|
1410
1419
|
(function(n, i) {
|
|
1411
1420
|
t.exports = i();
|
|
1412
|
-
})(
|
|
1413
|
-
function n(
|
|
1421
|
+
})(_t, function() {
|
|
1422
|
+
function n(s) {
|
|
1414
1423
|
var M = [];
|
|
1415
|
-
return
|
|
1424
|
+
return s.AMapUI && M.push(i(s.AMapUI)), s.Loca && M.push(a(s.Loca)), Promise.all(M);
|
|
1416
1425
|
}
|
|
1417
|
-
function i(
|
|
1426
|
+
function i(s) {
|
|
1418
1427
|
return new Promise(function(M, d) {
|
|
1419
|
-
var
|
|
1420
|
-
if (
|
|
1421
|
-
for (var m = 0; m <
|
|
1422
|
-
r.AMapUI.plugins.indexOf(
|
|
1428
|
+
var g = [];
|
|
1429
|
+
if (s.plugins)
|
|
1430
|
+
for (var m = 0; m < s.plugins.length; m += 1)
|
|
1431
|
+
r.AMapUI.plugins.indexOf(s.plugins[m]) == -1 && g.push(s.plugins[m]);
|
|
1423
1432
|
if (c.AMapUI === o.failed)
|
|
1424
1433
|
d("前次请求 AMapUI 失败");
|
|
1425
1434
|
else if (c.AMapUI === o.notload) {
|
|
1426
|
-
c.AMapUI = o.loading, r.AMapUI.version =
|
|
1427
|
-
var
|
|
1428
|
-
L.type = "text/javascript", L.src = "https://webapi.amap.com/ui/" + m + "/main.js", L.onerror = function(
|
|
1435
|
+
c.AMapUI = o.loading, r.AMapUI.version = s.version || r.AMapUI.version, m = r.AMapUI.version;
|
|
1436
|
+
var v = document.body || document.head, L = document.createElement("script");
|
|
1437
|
+
L.type = "text/javascript", L.src = "https://webapi.amap.com/ui/" + m + "/main.js", L.onerror = function(j) {
|
|
1429
1438
|
c.AMapUI = o.failed, d("请求 AMapUI 失败");
|
|
1430
1439
|
}, L.onload = function() {
|
|
1431
|
-
if (c.AMapUI = o.loaded,
|
|
1432
|
-
window.AMapUI.loadUI(
|
|
1433
|
-
for (var
|
|
1434
|
-
var
|
|
1435
|
-
window.AMapUI[
|
|
1440
|
+
if (c.AMapUI = o.loaded, g.length)
|
|
1441
|
+
window.AMapUI.loadUI(g, function() {
|
|
1442
|
+
for (var j = 0, D = g.length; j < D; j++) {
|
|
1443
|
+
var A = g[j].split("/").slice(-1)[0];
|
|
1444
|
+
window.AMapUI[A] = arguments[j];
|
|
1436
1445
|
}
|
|
1437
|
-
for (M();
|
|
1438
|
-
|
|
1446
|
+
for (M(); u.AMapUI.length; )
|
|
1447
|
+
u.AMapUI.splice(0, 1)[0]();
|
|
1439
1448
|
});
|
|
1440
1449
|
else
|
|
1441
|
-
for (M();
|
|
1442
|
-
|
|
1443
|
-
},
|
|
1450
|
+
for (M(); u.AMapUI.length; )
|
|
1451
|
+
u.AMapUI.splice(0, 1)[0]();
|
|
1452
|
+
}, v.appendChild(L);
|
|
1444
1453
|
} else
|
|
1445
|
-
c.AMapUI === o.loaded ?
|
|
1446
|
-
for (var
|
|
1447
|
-
var
|
|
1448
|
-
window.AMapUI[
|
|
1454
|
+
c.AMapUI === o.loaded ? s.version && s.version !== r.AMapUI.version ? d("不允许多个版本 AMapUI 混用") : g.length ? window.AMapUI.loadUI(g, function() {
|
|
1455
|
+
for (var j = 0, D = g.length; j < D; j++) {
|
|
1456
|
+
var A = g[j].split("/").slice(-1)[0];
|
|
1457
|
+
window.AMapUI[A] = arguments[j];
|
|
1449
1458
|
}
|
|
1450
1459
|
M();
|
|
1451
|
-
}) : M() :
|
|
1452
|
-
|
|
1453
|
-
for (var
|
|
1454
|
-
var
|
|
1455
|
-
window.AMapUI[
|
|
1460
|
+
}) : M() : s.version && s.version !== r.AMapUI.version ? d("不允许多个版本 AMapUI 混用") : u.AMapUI.push(function(j) {
|
|
1461
|
+
j ? d(j) : g.length ? window.AMapUI.loadUI(g, function() {
|
|
1462
|
+
for (var D = 0, A = g.length; D < A; D++) {
|
|
1463
|
+
var ue = g[D].split("/").slice(-1)[0];
|
|
1464
|
+
window.AMapUI[ue] = arguments[D];
|
|
1456
1465
|
}
|
|
1457
1466
|
M();
|
|
1458
1467
|
}) : M();
|
|
1459
1468
|
});
|
|
1460
1469
|
});
|
|
1461
1470
|
}
|
|
1462
|
-
function a(
|
|
1471
|
+
function a(s) {
|
|
1463
1472
|
return new Promise(function(M, d) {
|
|
1464
1473
|
if (c.Loca === o.failed)
|
|
1465
1474
|
d("前次请求 Loca 失败");
|
|
1466
1475
|
else if (c.Loca === o.notload) {
|
|
1467
|
-
c.Loca = o.loading, r.Loca.version =
|
|
1468
|
-
var
|
|
1469
|
-
if (m && !
|
|
1476
|
+
c.Loca = o.loading, r.Loca.version = s.version || r.Loca.version;
|
|
1477
|
+
var g = r.Loca.version, m = r.AMap.version.startsWith("2"), v = g.startsWith("2");
|
|
1478
|
+
if (m && !v || !m && v)
|
|
1470
1479
|
d("JSAPI 与 Loca 版本不对应!!");
|
|
1471
1480
|
else {
|
|
1472
|
-
m = r.key,
|
|
1481
|
+
m = r.key, v = document.body || document.head;
|
|
1473
1482
|
var L = document.createElement("script");
|
|
1474
|
-
L.type = "text/javascript", L.src = "https://webapi.amap.com/loca?v=" +
|
|
1483
|
+
L.type = "text/javascript", L.src = "https://webapi.amap.com/loca?v=" + g + "&key=" + m, L.onerror = function(j) {
|
|
1475
1484
|
c.Loca = o.failed, d("请求 AMapUI 失败");
|
|
1476
1485
|
}, L.onload = function() {
|
|
1477
|
-
for (c.Loca = o.loaded, M();
|
|
1478
|
-
|
|
1479
|
-
},
|
|
1486
|
+
for (c.Loca = o.loaded, M(); u.Loca.length; )
|
|
1487
|
+
u.Loca.splice(0, 1)[0]();
|
|
1488
|
+
}, v.appendChild(L);
|
|
1480
1489
|
}
|
|
1481
1490
|
} else
|
|
1482
|
-
c.Loca === o.loaded ?
|
|
1483
|
-
|
|
1491
|
+
c.Loca === o.loaded ? s.version && s.version !== r.Loca.version ? d("不允许多个版本 Loca 混用") : M() : s.version && s.version !== r.Loca.version ? d("不允许多个版本 Loca 混用") : u.Loca.push(function(j) {
|
|
1492
|
+
j ? d(j) : d();
|
|
1484
1493
|
});
|
|
1485
1494
|
});
|
|
1486
1495
|
}
|
|
1487
1496
|
if (!window)
|
|
1488
1497
|
throw Error("AMap JSAPI can only be used in Browser.");
|
|
1489
1498
|
var o;
|
|
1490
|
-
(function(
|
|
1491
|
-
|
|
1499
|
+
(function(s) {
|
|
1500
|
+
s.notload = "notload", s.loading = "loading", s.loaded = "loaded", s.failed = "failed";
|
|
1492
1501
|
})(o || (o = {}));
|
|
1493
|
-
var r = { key: "", AMap: { version: "1.4.15", plugins: [] }, AMapUI: { version: "1.1", plugins: [] }, Loca: { version: "1.3.2" } }, c = { AMap: o.notload, AMapUI: o.notload, Loca: o.notload },
|
|
1494
|
-
typeof
|
|
1502
|
+
var r = { key: "", AMap: { version: "1.4.15", plugins: [] }, AMapUI: { version: "1.1", plugins: [] }, Loca: { version: "1.3.2" } }, c = { AMap: o.notload, AMapUI: o.notload, Loca: o.notload }, u = { AMap: [], AMapUI: [], Loca: [] }, l = [], I = function(s) {
|
|
1503
|
+
typeof s == "function" && (c.AMap === o.loaded ? s(window.AMap) : l.push(s));
|
|
1495
1504
|
};
|
|
1496
|
-
return { load: function(
|
|
1505
|
+
return { load: function(s) {
|
|
1497
1506
|
return new Promise(function(M, d) {
|
|
1498
1507
|
if (c.AMap == o.failed)
|
|
1499
1508
|
d("");
|
|
1500
1509
|
else if (c.AMap == o.notload) {
|
|
1501
|
-
var
|
|
1502
|
-
|
|
1503
|
-
if (delete window.___onAPILoaded,
|
|
1504
|
-
c.AMap = o.failed, d(
|
|
1510
|
+
var g = s.key, m = s.version, v = s.plugins;
|
|
1511
|
+
g ? (window.AMap && location.host !== "lbs.amap.com" && d("禁止多种API加载方式混用"), r.key = g, r.AMap.version = m || r.AMap.version, r.AMap.plugins = v || r.AMap.plugins, c.AMap = o.loading, m = document.body || document.head, window.___onAPILoaded = function(j) {
|
|
1512
|
+
if (delete window.___onAPILoaded, j)
|
|
1513
|
+
c.AMap = o.failed, d(j);
|
|
1505
1514
|
else
|
|
1506
|
-
for (c.AMap = o.loaded, n(
|
|
1515
|
+
for (c.AMap = o.loaded, n(s).then(function() {
|
|
1507
1516
|
M(window.AMap);
|
|
1508
1517
|
}).catch(d); l.length; )
|
|
1509
1518
|
l.splice(0, 1)[0]();
|
|
1510
|
-
},
|
|
1511
|
-
c.AMap = o.failed, d(
|
|
1512
|
-
}, m.appendChild(
|
|
1519
|
+
}, v = document.createElement("script"), v.type = "text/javascript", v.src = "https://webapi.amap.com/maps?callback=___onAPILoaded&v=" + r.AMap.version + "&key=" + g + "&plugin=" + r.AMap.plugins.join(","), v.onerror = function(j) {
|
|
1520
|
+
c.AMap = o.failed, d(j);
|
|
1521
|
+
}, m.appendChild(v)) : d("请填写key");
|
|
1513
1522
|
} else if (c.AMap == o.loaded)
|
|
1514
|
-
if (
|
|
1523
|
+
if (s.key && s.key !== r.key)
|
|
1515
1524
|
d("多个不一致的 key");
|
|
1516
|
-
else if (
|
|
1525
|
+
else if (s.version && s.version !== r.AMap.version)
|
|
1517
1526
|
d("不允许多个版本 JSAPI 混用");
|
|
1518
1527
|
else {
|
|
1519
|
-
if (
|
|
1520
|
-
for (m = 0; m <
|
|
1521
|
-
r.AMap.plugins.indexOf(
|
|
1522
|
-
|
|
1523
|
-
n(
|
|
1528
|
+
if (g = [], s.plugins)
|
|
1529
|
+
for (m = 0; m < s.plugins.length; m += 1)
|
|
1530
|
+
r.AMap.plugins.indexOf(s.plugins[m]) == -1 && g.push(s.plugins[m]);
|
|
1531
|
+
g.length ? window.AMap.plugin(g, function() {
|
|
1532
|
+
n(s).then(function() {
|
|
1524
1533
|
M(window.AMap);
|
|
1525
1534
|
}).catch(d);
|
|
1526
|
-
}) : n(
|
|
1535
|
+
}) : n(s).then(function() {
|
|
1527
1536
|
M(window.AMap);
|
|
1528
1537
|
}).catch(d);
|
|
1529
1538
|
}
|
|
1530
|
-
else if (
|
|
1539
|
+
else if (s.key && s.key !== r.key)
|
|
1531
1540
|
d("多个不一致的 key");
|
|
1532
|
-
else if (
|
|
1541
|
+
else if (s.version && s.version !== r.AMap.version)
|
|
1533
1542
|
d("不允许多个版本 JSAPI 混用");
|
|
1534
1543
|
else {
|
|
1535
1544
|
var L = [];
|
|
1536
|
-
if (
|
|
1537
|
-
for (m = 0; m <
|
|
1538
|
-
r.AMap.plugins.indexOf(
|
|
1545
|
+
if (s.plugins)
|
|
1546
|
+
for (m = 0; m < s.plugins.length; m += 1)
|
|
1547
|
+
r.AMap.plugins.indexOf(s.plugins[m]) == -1 && L.push(s.plugins[m]);
|
|
1539
1548
|
I(function() {
|
|
1540
1549
|
L.length ? window.AMap.plugin(L, function() {
|
|
1541
|
-
n(
|
|
1550
|
+
n(s).then(function() {
|
|
1542
1551
|
M(window.AMap);
|
|
1543
1552
|
}).catch(d);
|
|
1544
|
-
}) : n(
|
|
1553
|
+
}) : n(s).then(function() {
|
|
1545
1554
|
M(window.AMap);
|
|
1546
1555
|
}).catch(d);
|
|
1547
1556
|
});
|
|
@@ -1552,11 +1561,11 @@ var Me = {}, $i = {
|
|
|
1552
1561
|
AMap: o.notload,
|
|
1553
1562
|
AMapUI: o.notload,
|
|
1554
1563
|
Loca: o.notload
|
|
1555
|
-
},
|
|
1564
|
+
}, u = { AMap: [], AMapUI: [], Loca: [] };
|
|
1556
1565
|
} };
|
|
1557
1566
|
});
|
|
1558
|
-
})(
|
|
1559
|
-
var
|
|
1567
|
+
})(ea);
|
|
1568
|
+
var ta = function t(e, n) {
|
|
1560
1569
|
if (e === n)
|
|
1561
1570
|
return !0;
|
|
1562
1571
|
if (e && n && typeof e == "object" && typeof n == "object") {
|
|
@@ -1591,12 +1600,12 @@ var Fi = function t(e, n) {
|
|
|
1591
1600
|
}
|
|
1592
1601
|
return e !== e && n !== n;
|
|
1593
1602
|
};
|
|
1594
|
-
const
|
|
1595
|
-
var
|
|
1603
|
+
const Ue = "__googleMapsScriptId";
|
|
1604
|
+
var W;
|
|
1596
1605
|
(function(t) {
|
|
1597
1606
|
t[t.INITIALIZED = 0] = "INITIALIZED", t[t.LOADING = 1] = "LOADING", t[t.SUCCESS = 2] = "SUCCESS", t[t.FAILURE = 3] = "FAILURE";
|
|
1598
|
-
})(
|
|
1599
|
-
class
|
|
1607
|
+
})(W || (W = {}));
|
|
1608
|
+
class G {
|
|
1600
1609
|
/**
|
|
1601
1610
|
* Creates an instance of Loader using [[LoaderOptions]]. No defaults are set
|
|
1602
1611
|
* using this library, instead the defaults are set by the Google Maps
|
|
@@ -1606,13 +1615,13 @@ class R {
|
|
|
1606
1615
|
* const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
|
|
1607
1616
|
* ```
|
|
1608
1617
|
*/
|
|
1609
|
-
constructor({ apiKey: e, authReferrerPolicy: n, channel: i, client: a, id: o =
|
|
1610
|
-
if (this.CALLBACK = "__googleMapsCallback", this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = e, this.authReferrerPolicy = n, this.channel = i, this.client = a, this.id = o ||
|
|
1611
|
-
if (!
|
|
1612
|
-
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(
|
|
1613
|
-
return
|
|
1618
|
+
constructor({ apiKey: e, authReferrerPolicy: n, channel: i, client: a, id: o = Ue, language: r, libraries: c = [], mapIds: u, nonce: l, region: I, retries: s = 3, url: M = "https://maps.googleapis.com/maps/api/js", version: d }) {
|
|
1619
|
+
if (this.CALLBACK = "__googleMapsCallback", this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = e, this.authReferrerPolicy = n, this.channel = i, this.client = a, this.id = o || Ue, this.language = r, this.libraries = c, this.mapIds = u, this.nonce = l, this.region = I, this.retries = s, this.url = M, this.version = d, G.instance) {
|
|
1620
|
+
if (!ta(this.options, G.instance.options))
|
|
1621
|
+
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(G.instance.options)}`);
|
|
1622
|
+
return G.instance;
|
|
1614
1623
|
}
|
|
1615
|
-
|
|
1624
|
+
G.instance = this;
|
|
1616
1625
|
}
|
|
1617
1626
|
get options() {
|
|
1618
1627
|
return {
|
|
@@ -1631,7 +1640,7 @@ class R {
|
|
|
1631
1640
|
};
|
|
1632
1641
|
}
|
|
1633
1642
|
get status() {
|
|
1634
|
-
return this.errors.length ?
|
|
1643
|
+
return this.errors.length ? W.FAILURE : this.done ? W.SUCCESS : this.loading ? W.LOADING : W.INITIALIZED;
|
|
1635
1644
|
}
|
|
1636
1645
|
get failed() {
|
|
1637
1646
|
return this.done && !this.loading && this.errors.length >= this.retries + 1;
|
|
@@ -1722,192 +1731,192 @@ class R {
|
|
|
1722
1731
|
}
|
|
1723
1732
|
}
|
|
1724
1733
|
}
|
|
1725
|
-
var
|
|
1726
|
-
const
|
|
1727
|
-
const a =
|
|
1734
|
+
var Z = /* @__PURE__ */ ((t) => (t.LOADING = "LOADING", t.FAILURE = "FAILURE", t.SUCCESS = "SUCCESS", t))(Z || {});
|
|
1735
|
+
const na = p(function(e, { slots: n, emit: i }) {
|
|
1736
|
+
const a = x(
|
|
1728
1737
|
"LOADING"
|
|
1729
1738
|
/* LOADING */
|
|
1730
1739
|
), o = y(() => {
|
|
1731
|
-
const { onChange: r, fallback: c, loading:
|
|
1740
|
+
const { onChange: r, fallback: c, loading: u, ...l } = e;
|
|
1732
1741
|
return l;
|
|
1733
1742
|
});
|
|
1734
|
-
return
|
|
1743
|
+
return oe(
|
|
1735
1744
|
() => o.value,
|
|
1736
1745
|
(r) => {
|
|
1737
|
-
const c = new
|
|
1746
|
+
const c = new G(r), u = (l) => {
|
|
1738
1747
|
i("change", l), a.value = l;
|
|
1739
1748
|
};
|
|
1740
|
-
|
|
1749
|
+
u(
|
|
1741
1750
|
"LOADING"
|
|
1742
1751
|
/* LOADING */
|
|
1743
1752
|
), c.load().then(
|
|
1744
|
-
() =>
|
|
1753
|
+
() => u(
|
|
1745
1754
|
"SUCCESS"
|
|
1746
1755
|
/* SUCCESS */
|
|
1747
1756
|
),
|
|
1748
|
-
() =>
|
|
1757
|
+
() => u(
|
|
1749
1758
|
"FAILURE"
|
|
1750
1759
|
/* FAILURE */
|
|
1751
1760
|
)
|
|
1752
1761
|
);
|
|
1753
1762
|
}
|
|
1754
1763
|
), () => {
|
|
1755
|
-
var r, c,
|
|
1764
|
+
var r, c, u;
|
|
1756
1765
|
switch (a.value) {
|
|
1757
1766
|
case "SUCCESS":
|
|
1758
1767
|
return (r = n.default) == null ? void 0 : r.call(n);
|
|
1759
1768
|
case "LOADING":
|
|
1760
1769
|
return (c = n.loading) == null ? void 0 : c.call(n);
|
|
1761
1770
|
case "FAILURE":
|
|
1762
|
-
return (
|
|
1771
|
+
return (u = n.fallback) == null ? void 0 : u.call(n);
|
|
1763
1772
|
default:
|
|
1764
1773
|
throw new Error("MyError: unknown loader status");
|
|
1765
1774
|
}
|
|
1766
1775
|
};
|
|
1767
|
-
}),
|
|
1768
|
-
const a =
|
|
1769
|
-
const { onChange: r, loading: c, fallback:
|
|
1776
|
+
}), ia = p(function(e, { slots: n, emit: i }) {
|
|
1777
|
+
const a = x(Z.LOADING), o = y(() => {
|
|
1778
|
+
const { onChange: r, loading: c, fallback: u, apiKey: l, apiSecret: I, apiServiceHost: s, version: M, ...d } = e;
|
|
1770
1779
|
return { ...d, key: l, version: M != null ? M : "2.0.5.16" };
|
|
1771
1780
|
});
|
|
1772
|
-
return
|
|
1781
|
+
return oe(
|
|
1773
1782
|
() => o.value,
|
|
1774
1783
|
(r) => {
|
|
1775
|
-
const c = (
|
|
1776
|
-
i("change",
|
|
1784
|
+
const c = (u) => {
|
|
1785
|
+
i("change", u), a.value = u;
|
|
1777
1786
|
};
|
|
1778
|
-
c(
|
|
1787
|
+
c(Z.LOADING), window._AMapSecurityConfig = e.apiServiceHost ? {
|
|
1779
1788
|
serviceHost: e.apiServiceHost
|
|
1780
|
-
} : { securityJsCode: e.apiSecret },
|
|
1781
|
-
() => c(
|
|
1782
|
-
() => c(
|
|
1789
|
+
} : { securityJsCode: e.apiSecret }, ge.load(r).then(
|
|
1790
|
+
() => c(Z.SUCCESS),
|
|
1791
|
+
() => c(Z.FAILURE)
|
|
1783
1792
|
);
|
|
1784
1793
|
}
|
|
1785
1794
|
), () => {
|
|
1786
|
-
var r, c,
|
|
1795
|
+
var r, c, u;
|
|
1787
1796
|
switch (a.value) {
|
|
1788
|
-
case
|
|
1797
|
+
case Z.SUCCESS:
|
|
1789
1798
|
return (r = n.default) == null ? void 0 : r.call(n);
|
|
1790
|
-
case
|
|
1799
|
+
case Z.LOADING:
|
|
1791
1800
|
return (c = n.loading) == null ? void 0 : c.call(n);
|
|
1792
|
-
case
|
|
1793
|
-
return (
|
|
1801
|
+
case Z.FAILURE:
|
|
1802
|
+
return (u = n.fallback) == null ? void 0 : u.call(n);
|
|
1794
1803
|
default:
|
|
1795
1804
|
throw new Error("MyError: unknown loader status");
|
|
1796
1805
|
}
|
|
1797
1806
|
};
|
|
1798
|
-
}),
|
|
1807
|
+
}), aa = p(function(e, { slots: n, emit: i }) {
|
|
1799
1808
|
const a = e.mapRef, o = y(() => {
|
|
1800
|
-
const { mapRef: I, onDragStart:
|
|
1809
|
+
const { mapRef: I, onDragStart: s, onDragEnd: M, ...d } = e;
|
|
1801
1810
|
return d;
|
|
1802
|
-
}), r = o.value, c =
|
|
1803
|
-
return
|
|
1804
|
-
if (
|
|
1811
|
+
}), r = o.value, c = x(), u = x(), l = (I) => i(I, { target: u.value });
|
|
1812
|
+
return hi(u), R(() => {
|
|
1813
|
+
if (u.value || !c.value)
|
|
1805
1814
|
return;
|
|
1806
1815
|
const I = new google.maps.Map(c.value, { ...r });
|
|
1807
|
-
|
|
1808
|
-
}),
|
|
1816
|
+
u.value = I, a == null || a(I);
|
|
1817
|
+
}), J(
|
|
1809
1818
|
() => o.value,
|
|
1810
1819
|
(I) => {
|
|
1811
|
-
var
|
|
1812
|
-
(
|
|
1820
|
+
var s;
|
|
1821
|
+
(s = u.value) == null || s.setOptions({ ...I });
|
|
1813
1822
|
}
|
|
1814
|
-
),
|
|
1823
|
+
), Me(u, e, l, ["onDragStart", "onDragEnd"]), () => {
|
|
1815
1824
|
var I;
|
|
1816
|
-
return
|
|
1825
|
+
return f("div", { ref: c }, (I = n.default) == null ? void 0 : I.call(n));
|
|
1817
1826
|
};
|
|
1818
|
-
}),
|
|
1827
|
+
}), ha = ct(function(e, {
|
|
1819
1828
|
slots: n
|
|
1820
1829
|
}) {
|
|
1821
|
-
return
|
|
1830
|
+
return wi(e), () => {
|
|
1822
1831
|
var i;
|
|
1823
|
-
return
|
|
1832
|
+
return f("div", [(i = n.default) == null ? void 0 : i.call(n)]);
|
|
1824
1833
|
};
|
|
1825
|
-
}).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier"]),
|
|
1834
|
+
}).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier"]), wa = ct(function(e, {
|
|
1826
1835
|
slots: n,
|
|
1827
1836
|
emit: i
|
|
1828
1837
|
}) {
|
|
1829
|
-
const a =
|
|
1838
|
+
const a = S(), o = ({
|
|
1830
1839
|
target: c
|
|
1831
1840
|
}) => {
|
|
1832
1841
|
const {
|
|
1833
|
-
lng:
|
|
1842
|
+
lng: u,
|
|
1834
1843
|
lat: l
|
|
1835
1844
|
} = c.getCenter();
|
|
1836
|
-
i("dragEnd", [
|
|
1845
|
+
i("dragEnd", [u(), l()]);
|
|
1837
1846
|
}, r = ({
|
|
1838
1847
|
target: c
|
|
1839
1848
|
}) => {
|
|
1840
1849
|
const {
|
|
1841
|
-
lng:
|
|
1850
|
+
lng: u,
|
|
1842
1851
|
lat: l
|
|
1843
1852
|
} = c.getCenter();
|
|
1844
|
-
i("dragEnd", [
|
|
1853
|
+
i("dragEnd", [u, l]);
|
|
1845
1854
|
};
|
|
1846
1855
|
return () => {
|
|
1847
|
-
var
|
|
1856
|
+
var A;
|
|
1848
1857
|
const {
|
|
1849
1858
|
gmapKey: c,
|
|
1850
|
-
amapKey:
|
|
1859
|
+
amapKey: u,
|
|
1851
1860
|
amapSecret: l,
|
|
1852
1861
|
amapServiceHost: I,
|
|
1853
|
-
supplier:
|
|
1862
|
+
supplier: s,
|
|
1854
1863
|
gmapId: M
|
|
1855
1864
|
} = a, {
|
|
1856
1865
|
mapRef: d,
|
|
1857
|
-
center:
|
|
1866
|
+
center: g,
|
|
1858
1867
|
zoom: m,
|
|
1859
|
-
language:
|
|
1868
|
+
language: v = "zh"
|
|
1860
1869
|
} = e, {
|
|
1861
1870
|
fallback: L,
|
|
1862
|
-
loading:
|
|
1863
|
-
} = n,
|
|
1864
|
-
switch (
|
|
1871
|
+
loading: j
|
|
1872
|
+
} = n, D = (A = n.default) == null ? void 0 : A.call(n);
|
|
1873
|
+
switch (s) {
|
|
1865
1874
|
case "gmap":
|
|
1866
|
-
return
|
|
1875
|
+
return f(na, {
|
|
1867
1876
|
attrs: {
|
|
1868
1877
|
apiKey: c,
|
|
1869
|
-
language:
|
|
1878
|
+
language: v,
|
|
1870
1879
|
version: "beta",
|
|
1871
1880
|
libraries: ["marker", "places", "geometry"],
|
|
1872
|
-
loading:
|
|
1881
|
+
loading: j,
|
|
1873
1882
|
fallback: L
|
|
1874
1883
|
}
|
|
1875
|
-
}, [
|
|
1884
|
+
}, [f(aa, {
|
|
1876
1885
|
attrs: {
|
|
1877
1886
|
mapRef: d,
|
|
1878
1887
|
mapId: M,
|
|
1879
|
-
center:
|
|
1888
|
+
center: g ? C(g) : void 0,
|
|
1880
1889
|
zoom: m
|
|
1881
1890
|
},
|
|
1882
1891
|
on: {
|
|
1883
1892
|
dragEnd: o
|
|
1884
1893
|
}
|
|
1885
|
-
}, [
|
|
1894
|
+
}, [D])]);
|
|
1886
1895
|
default:
|
|
1887
|
-
return
|
|
1896
|
+
return f(ia, {
|
|
1888
1897
|
attrs: {
|
|
1889
|
-
apiKey:
|
|
1898
|
+
apiKey: u,
|
|
1890
1899
|
apiSecret: l,
|
|
1891
1900
|
apiServiceHost: I,
|
|
1892
1901
|
plugins: ["AMap.Geolocation", "AMap.Geocoder", "AMap.PlaceSearch", "AMap.Driving", "AMap.Walker"],
|
|
1893
|
-
loading:
|
|
1902
|
+
loading: j,
|
|
1894
1903
|
fallback: L
|
|
1895
1904
|
}
|
|
1896
|
-
}, [
|
|
1905
|
+
}, [f(qi, {
|
|
1897
1906
|
attrs: {
|
|
1898
1907
|
mapRef: d,
|
|
1899
|
-
vectorMapForeign:
|
|
1900
|
-
center:
|
|
1908
|
+
vectorMapForeign: Ni(v),
|
|
1909
|
+
center: g,
|
|
1901
1910
|
zoom: m
|
|
1902
1911
|
},
|
|
1903
1912
|
on: {
|
|
1904
1913
|
dragEnd: r
|
|
1905
1914
|
}
|
|
1906
|
-
}, [
|
|
1915
|
+
}, [D])]);
|
|
1907
1916
|
}
|
|
1908
1917
|
};
|
|
1909
|
-
}).props(["center", "fallback", "loading", "mapRef", "zoom"]),
|
|
1910
|
-
const {
|
|
1918
|
+
}).props(["center", "fallback", "loading", "mapRef", "zoom"]), oa = (t) => {
|
|
1919
|
+
const { onChange: e, onLoad: n } = t, i = h(!1), a = h(), o = h({
|
|
1911
1920
|
accuracy: 0,
|
|
1912
1921
|
altitude: 0,
|
|
1913
1922
|
altitudeAccuracy: 0,
|
|
@@ -1915,83 +1924,98 @@ const _i = j(function(e, { slots: n, emit: i }) {
|
|
|
1915
1924
|
latitude: 0,
|
|
1916
1925
|
longitude: 0,
|
|
1917
1926
|
speed: 0
|
|
1918
|
-
}), r =
|
|
1919
|
-
return
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1927
|
+
}), r = h([o.value.longitude, o.value.latitude]);
|
|
1928
|
+
return b(
|
|
1929
|
+
() => !0,
|
|
1930
|
+
(c, u, l) => {
|
|
1931
|
+
i.value = !0;
|
|
1932
|
+
const I = navigator.geolocation.watchPosition(
|
|
1933
|
+
(s) => {
|
|
1934
|
+
const M = s.coords, d = [s.coords.longitude, s.coords.latitude];
|
|
1935
|
+
o.value = M, r.value = d, i.value && (i.value = !1, n == null || n({ position: d, coordinate: M })), e == null || e({ position: d, coordinate: M });
|
|
1936
|
+
},
|
|
1937
|
+
(s) => {
|
|
1938
|
+
i.value = !1, a.value = s, console.log("errorRef = ", a);
|
|
1939
|
+
},
|
|
1940
|
+
// todo 要不要 timeout
|
|
1941
|
+
{ timeout: 5e3, maximumAge: 0, enableHighAccuracy: !0 }
|
|
1942
|
+
);
|
|
1943
|
+
l(() => navigator.geolocation.clearWatch(I));
|
|
1944
|
+
},
|
|
1945
|
+
{ immediate: !0 }
|
|
1946
|
+
), {
|
|
1947
|
+
geoError: a,
|
|
1948
|
+
geoPosition: r,
|
|
1949
|
+
geoCoordinate: o,
|
|
1950
|
+
geoLoading: i
|
|
1951
|
+
};
|
|
1952
|
+
}, ra = (t) => {
|
|
1953
|
+
const { mapRef: e, onChange: n } = t, i = h([0, 0]), a = h(!1), o = () => {
|
|
1935
1954
|
Promise.resolve().then(() => a.value = !0);
|
|
1936
|
-
}, r = (c, { target:
|
|
1937
|
-
var
|
|
1955
|
+
}, r = (c, { target: u }) => {
|
|
1956
|
+
var s;
|
|
1938
1957
|
a.value = !1;
|
|
1939
|
-
const { lng: l, lat: I } =
|
|
1940
|
-
i.value = [l, I], (
|
|
1958
|
+
const { lng: l, lat: I } = u.getCenter();
|
|
1959
|
+
i.value = [l, I], (s = k(n)) == null || s([l, I]);
|
|
1941
1960
|
};
|
|
1942
|
-
return
|
|
1961
|
+
return Ie(e, {}, o, [
|
|
1943
1962
|
"onDragStart"
|
|
1944
|
-
]),
|
|
1963
|
+
]), Ie(e, {}, r, [
|
|
1945
1964
|
"onDragEnd"
|
|
1946
1965
|
]), { centerRef: i, isDragging: a };
|
|
1947
|
-
},
|
|
1948
|
-
const { mapRef: e, onChange: n } = t, i =
|
|
1966
|
+
}, ca = (t) => {
|
|
1967
|
+
const { mapRef: e, onChange: n } = t, i = h([0, 0]), a = h(!1), o = () => {
|
|
1949
1968
|
Promise.resolve().then(() => a.value = !0);
|
|
1950
1969
|
}, r = async () => {
|
|
1951
|
-
var I,
|
|
1970
|
+
var I, s;
|
|
1952
1971
|
a.value = !1;
|
|
1953
|
-
const c = (I = e.value) == null ? void 0 : I.getCenter(),
|
|
1954
|
-
i.value = [
|
|
1972
|
+
const c = (I = e.value) == null ? void 0 : I.getCenter(), u = c == null ? void 0 : c.lng(), l = c == null ? void 0 : c.lat();
|
|
1973
|
+
i.value = [u, l], (s = k(n)) == null || s([u, l]);
|
|
1955
1974
|
};
|
|
1956
|
-
return
|
|
1975
|
+
return Me(e, {}, o, [
|
|
1957
1976
|
"onDragStart"
|
|
1958
|
-
]),
|
|
1977
|
+
]), Me(e, {}, r, [
|
|
1959
1978
|
"onDragEnd"
|
|
1960
1979
|
]), { centerRef: i, isDragging: a };
|
|
1961
|
-
},
|
|
1962
|
-
const { supplier: e } =
|
|
1963
|
-
return e === "gmap" ?
|
|
1964
|
-
},
|
|
1965
|
-
const e =
|
|
1966
|
-
return
|
|
1980
|
+
}, sa = (t) => {
|
|
1981
|
+
const { supplier: e } = S();
|
|
1982
|
+
return e === "gmap" ? ca(t) : ra(t);
|
|
1983
|
+
}, ce = (t) => {
|
|
1984
|
+
const e = h(!!t.value);
|
|
1985
|
+
return b(
|
|
1967
1986
|
() => t.value,
|
|
1968
1987
|
(n) => {
|
|
1969
1988
|
n && (e.value = !0);
|
|
1970
1989
|
}
|
|
1971
1990
|
), { readyRef: e };
|
|
1972
|
-
},
|
|
1973
|
-
const t =
|
|
1991
|
+
}, se = () => {
|
|
1992
|
+
const t = h(0);
|
|
1974
1993
|
return { idx: t, update: () => {
|
|
1975
1994
|
t.value += 1;
|
|
1976
1995
|
} };
|
|
1977
|
-
},
|
|
1978
|
-
const { mapRef: e, pointRef: n, onChange: i } = t, { readyRef: a } =
|
|
1979
|
-
|
|
1996
|
+
}, Jt = (t) => {
|
|
1997
|
+
const { mapRef: e, pointRef: n, onChange: i } = t, { readyRef: a } = ce(e), { idx: o, update: r } = se(), c = P({
|
|
1998
|
+
lng: n.value[0],
|
|
1999
|
+
lat: n.value[1],
|
|
2000
|
+
name: "",
|
|
2001
|
+
cityName: void 0
|
|
2002
|
+
});
|
|
2003
|
+
return b(
|
|
1980
2004
|
() => o.value,
|
|
1981
2005
|
() => {
|
|
1982
2006
|
if (!a.value)
|
|
1983
2007
|
return;
|
|
1984
|
-
const
|
|
1985
|
-
|
|
1986
|
-
var d,
|
|
1987
|
-
switch (
|
|
2008
|
+
const u = new AMap.Geocoder({ lang: st }), [l, I] = n.value;
|
|
2009
|
+
u.getAddress(new AMap.LngLat(l, I), (s, M) => {
|
|
2010
|
+
var d, g, m;
|
|
2011
|
+
switch (s) {
|
|
1988
2012
|
case "complete": {
|
|
1989
|
-
const
|
|
1990
|
-
c.name =
|
|
2013
|
+
const { formattedAddress: v, addressComponent: L } = M.regeocode, j = (d = L.city) != null ? d : L.province;
|
|
2014
|
+
c.name = v, c.lng = l, c.lat = I, c.cityName = j, (g = k(i)) == null || g({ lng: l, lat: I, name: v, cityName: j });
|
|
1991
2015
|
return;
|
|
1992
2016
|
}
|
|
1993
2017
|
case "no_data":
|
|
1994
|
-
c.name = "", (
|
|
2018
|
+
c.name = "", (m = k(i)) == null || m({ lng: l, lat: I, name: "" });
|
|
1995
2019
|
return;
|
|
1996
2020
|
case "error":
|
|
1997
2021
|
throw M;
|
|
@@ -1999,154 +2023,174 @@ const _i = j(function(e, { slots: n, emit: i }) {
|
|
|
1999
2023
|
});
|
|
2000
2024
|
}
|
|
2001
2025
|
), { place: c, updatePlace: r };
|
|
2002
|
-
},
|
|
2003
|
-
const { mapRef: e, pointRef: n, onChange: i } = t, { readyRef: a } =
|
|
2004
|
-
return
|
|
2026
|
+
}, Xt = (t) => {
|
|
2027
|
+
const { mapRef: e, pointRef: n, onChange: i } = t, { readyRef: a } = ce(e), { idx: o, update: r } = se(), c = P({ lng: n.value[0], lat: n.value[1], name: "" });
|
|
2028
|
+
return b(
|
|
2005
2029
|
() => o.value,
|
|
2006
2030
|
async () => {
|
|
2007
|
-
var
|
|
2031
|
+
var g;
|
|
2008
2032
|
if (!a.value)
|
|
2009
2033
|
return;
|
|
2010
|
-
const
|
|
2011
|
-
c.name = M, c.lng = l, c.lat = I, (
|
|
2034
|
+
const u = new google.maps.Geocoder(), [l, I] = n.value, { results: s } = await u.geocode({ language: st, location: { lng: l, lat: I } }), M = s[0].formatted_address, d = Di(s[0]);
|
|
2035
|
+
c.name = M, c.lng = l, c.lat = I, (g = k(i)) == null || g({ lng: l, lat: I, name: M, cityName: d });
|
|
2012
2036
|
}
|
|
2013
2037
|
), { place: c, updatePlace: r };
|
|
2014
|
-
},
|
|
2015
|
-
const { supplier: e } =
|
|
2016
|
-
return e === "gmap" ?
|
|
2017
|
-
},
|
|
2038
|
+
}, ba = (t) => {
|
|
2039
|
+
const { supplier: e } = S();
|
|
2040
|
+
return e === "gmap" ? Xt(t) : Jt(t);
|
|
2041
|
+
}, ua = (t, e) => {
|
|
2018
2042
|
let n = 1 / 0, i = t;
|
|
2019
2043
|
for (const a of e) {
|
|
2020
|
-
const o = AMap.GeometryUtil.distance(
|
|
2044
|
+
const o = AMap.GeometryUtil.distance(le(t), le(a));
|
|
2021
2045
|
o >= n || (i = a, n = o);
|
|
2022
2046
|
}
|
|
2023
2047
|
return { shortestPlace: i, shortestDistance: n };
|
|
2024
|
-
},
|
|
2048
|
+
}, la = (t, e) => {
|
|
2025
2049
|
let n = 1 / 0, i = t;
|
|
2026
2050
|
for (const a of e) {
|
|
2027
2051
|
const o = google.maps.geometry.spherical.computeDistanceBetween(t, a);
|
|
2028
2052
|
o >= n || (i = a, n = o);
|
|
2029
2053
|
}
|
|
2030
2054
|
return { shortestPlace: i, shortestDistance: n };
|
|
2031
|
-
},
|
|
2032
|
-
const { pointRef: e, mapRef: n, getRecomendPlace: i, getLimit: a, context: o, onChange: r, onChangePlace: c } = t,
|
|
2033
|
-
return
|
|
2055
|
+
}, Ia = (t) => {
|
|
2056
|
+
const { pointRef: e, mapRef: n, getRecomendPlace: i, getLimit: a, context: o, onChange: r, onChangePlace: c } = t, u = h([]), { idx: l, update: I } = se(), { readyRef: s } = ce(n), { place: M, updatePlace: d } = Jt({ pointRef: e, mapRef: n, onChange: c }), g = P({ ...M });
|
|
2057
|
+
return b(
|
|
2034
2058
|
() => l.value,
|
|
2035
2059
|
async () => {
|
|
2036
|
-
var
|
|
2037
|
-
if (!
|
|
2060
|
+
var A;
|
|
2061
|
+
if (!s.value)
|
|
2038
2062
|
return;
|
|
2039
|
-
const m = await i({ ...M }, o), { shortestPlace:
|
|
2040
|
-
console.log("shortestPlace, shortestDistance = ",
|
|
2041
|
-
const
|
|
2042
|
-
|
|
2063
|
+
const m = await i({ ...M }, o), { shortestPlace: v, shortestDistance: L } = ua(M, m);
|
|
2064
|
+
console.log("shortestPlace, shortestDistance = ", v, L);
|
|
2065
|
+
const j = a(o), D = L > j ? M : v;
|
|
2066
|
+
u.value = m, Object.assign(g, { ...D }), (A = k(r)) == null || A({ ...D });
|
|
2043
2067
|
}
|
|
2044
|
-
), { recomendPlace:
|
|
2045
|
-
},
|
|
2046
|
-
const { pointRef: e, mapRef: n, getRecomendPlace: i, getLimit: a, context: o, onChange: r, onChangePlace: c } = t,
|
|
2047
|
-
return
|
|
2068
|
+
), { recomendPlace: g, placeCandidates: u, updateRecomandPlace: I, updatePlace: d };
|
|
2069
|
+
}, Ma = (t) => {
|
|
2070
|
+
const { pointRef: e, mapRef: n, getRecomendPlace: i, getLimit: a, context: o, onChange: r, onChangePlace: c } = t, u = h([]), { idx: l, update: I } = se(), { readyRef: s } = ce(n), { place: M, updatePlace: d } = Xt({ pointRef: e, mapRef: n, onChange: c }), g = P({ ...M });
|
|
2071
|
+
return b(
|
|
2048
2072
|
() => l.value,
|
|
2049
2073
|
async () => {
|
|
2050
|
-
var
|
|
2051
|
-
if (!
|
|
2074
|
+
var A;
|
|
2075
|
+
if (!s.value)
|
|
2052
2076
|
return;
|
|
2053
|
-
const m = await i({ ...M }, o), { shortestPlace:
|
|
2054
|
-
|
|
2055
|
-
}
|
|
2056
|
-
), { recomendPlace: f, placeCandidates: s, updateRecomandPlace: I, updatePlace: d };
|
|
2057
|
-
}, ua = (t) => {
|
|
2058
|
-
const { supplier: e } = N();
|
|
2059
|
-
return e === "gmap" ? ca(t) : ra(t);
|
|
2060
|
-
}, Ca = (t) => {
|
|
2061
|
-
const e = b({ lng: 0, lat: 0, name: "" }), n = y(() => [e.lng, e.lat]), i = { source: "geo" }, {
|
|
2062
|
-
mapRef: a,
|
|
2063
|
-
getRecomendPlace: o,
|
|
2064
|
-
recomendPlaceDragLimit: r,
|
|
2065
|
-
recomendPlaceGeoLimit: c,
|
|
2066
|
-
onChangeByDrag: s,
|
|
2067
|
-
onChangeGeoLocation: l,
|
|
2068
|
-
onChangePlace: I,
|
|
2069
|
-
onChangeRecomandPlace: u
|
|
2070
|
-
} = t, { loading: M, errorRef: d } = ea({
|
|
2071
|
-
mapRef: a,
|
|
2072
|
-
onChange: (g) => {
|
|
2073
|
-
i.source = "geo", e.lng = g.position[0], e.lat = g.position[1], m(), l == null || l(g);
|
|
2077
|
+
const m = await i({ ...M }, o), { shortestPlace: v, shortestDistance: L } = la(M, m), j = a(o), D = L > j ? M : v;
|
|
2078
|
+
u.value = m, Object.assign(g, { ...D }), (A = k(r)) == null || A({ ...D });
|
|
2074
2079
|
}
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2080
|
+
), { recomendPlace: g, placeCandidates: u, updateRecomandPlace: I, updatePlace: d };
|
|
2081
|
+
}, da = (t) => {
|
|
2082
|
+
const { supplier: e } = S();
|
|
2083
|
+
return e === "gmap" ? Ma(t) : Ia(t);
|
|
2084
|
+
}, za = (t) => {
|
|
2085
|
+
var Le, ve;
|
|
2086
|
+
const {
|
|
2087
|
+
mapRef: e,
|
|
2088
|
+
getRecomendPlace: n,
|
|
2089
|
+
defaultCenterPoint: i,
|
|
2090
|
+
recomendPlaceDragLimit: a,
|
|
2091
|
+
recomendPlaceGeoLimit: o,
|
|
2092
|
+
onLoadGeoLocation: r,
|
|
2093
|
+
onChangeByDrag: c,
|
|
2094
|
+
onChangeGeoLocation: u,
|
|
2095
|
+
onChangePlace: l,
|
|
2096
|
+
onChangeRecomandPlace: I
|
|
2097
|
+
} = t, s = P({
|
|
2098
|
+
lng: (Le = i == null ? void 0 : i[0]) != null ? Le : 0,
|
|
2099
|
+
lat: (ve = i == null ? void 0 : i[1]) != null ? ve : 0,
|
|
2100
|
+
name: "",
|
|
2101
|
+
cityName: void 0
|
|
2102
|
+
}), M = y(() => [s.lng, s.lat]), d = { source: "geo" }, g = (N) => {
|
|
2103
|
+
d.source = "api", s.lng = N[0], s.lat = N[1], A();
|
|
2104
|
+
};
|
|
2105
|
+
i && Promise.resolve().then(() => {
|
|
2106
|
+
d.source = "default", A();
|
|
2107
|
+
});
|
|
2108
|
+
const { geoLoading: m, geoError: v, geoPosition: L, geoCoordinate: j } = oa({
|
|
2109
|
+
mapRef: e,
|
|
2110
|
+
onLoad: (N) => {
|
|
2111
|
+
i || (d.source = "geo", s.lng = N.position[0], s.lat = N.position[1], A()), r == null || r(N);
|
|
2112
|
+
},
|
|
2113
|
+
onChange: u
|
|
2114
|
+
}), { isDragging: D } = sa({
|
|
2115
|
+
mapRef: e,
|
|
2116
|
+
onChange: (N) => {
|
|
2117
|
+
d.source = "drag", s.lng = N[0], s.lat = N[1], A(), c == null || c(N);
|
|
2079
2118
|
}
|
|
2080
|
-
}), { updatePlace:
|
|
2081
|
-
pointRef:
|
|
2082
|
-
context:
|
|
2083
|
-
getRecomendPlace:
|
|
2084
|
-
getLimit: (
|
|
2085
|
-
const
|
|
2086
|
-
switch (
|
|
2119
|
+
}), { updatePlace: A, updateRecomandPlace: ue, placeCandidates: $t } = da({
|
|
2120
|
+
pointRef: M,
|
|
2121
|
+
context: d,
|
|
2122
|
+
getRecomendPlace: n,
|
|
2123
|
+
getLimit: (N) => {
|
|
2124
|
+
const Ae = N == null ? void 0 : N.source;
|
|
2125
|
+
switch (Ae) {
|
|
2087
2126
|
case "drag":
|
|
2088
|
-
|
|
2127
|
+
case "api":
|
|
2128
|
+
return a;
|
|
2089
2129
|
case "geo":
|
|
2090
|
-
|
|
2130
|
+
case "default":
|
|
2131
|
+
return o;
|
|
2091
2132
|
default:
|
|
2092
|
-
throw new Error(`MyError: should not call getLimit on source: ${
|
|
2133
|
+
throw new Error(`MyError: should not call getLimit on source: ${Ae}`);
|
|
2093
2134
|
}
|
|
2094
2135
|
},
|
|
2095
|
-
mapRef:
|
|
2096
|
-
onChangePlace: (
|
|
2097
|
-
Object.assign(
|
|
2136
|
+
mapRef: e,
|
|
2137
|
+
onChangePlace: (N) => {
|
|
2138
|
+
Object.assign(s, { ...N }), d.source !== "recomend" && ue(), l == null || l(N);
|
|
2098
2139
|
},
|
|
2099
|
-
onChange: (
|
|
2100
|
-
|
|
2140
|
+
onChange: (N) => {
|
|
2141
|
+
d.source = "recomend", Object.assign(s, { ...N }), A(), I == null || I(N);
|
|
2101
2142
|
}
|
|
2102
2143
|
});
|
|
2103
2144
|
return {
|
|
2104
|
-
isDragging:
|
|
2105
|
-
|
|
2106
|
-
geoError:
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2145
|
+
isDragging: D,
|
|
2146
|
+
geoLoading: m,
|
|
2147
|
+
geoError: v,
|
|
2148
|
+
geoPosition: L,
|
|
2149
|
+
geoCoordinate: j,
|
|
2150
|
+
centerPlace: s,
|
|
2151
|
+
centerPoint: M,
|
|
2152
|
+
placeCandidates: $t,
|
|
2153
|
+
setCenterPlaceByRecomand: g
|
|
2110
2154
|
};
|
|
2111
|
-
},
|
|
2112
|
-
const t =
|
|
2155
|
+
}, ga = () => {
|
|
2156
|
+
const t = x();
|
|
2113
2157
|
return { mapRef: t, panTo: (i) => {
|
|
2114
2158
|
var a;
|
|
2115
2159
|
return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(i);
|
|
2116
2160
|
}, setMap: (i) => {
|
|
2117
2161
|
t.value = i;
|
|
2118
2162
|
} };
|
|
2119
|
-
},
|
|
2120
|
-
const t =
|
|
2163
|
+
}, fa = () => {
|
|
2164
|
+
const t = x();
|
|
2121
2165
|
return { mapRef: t, panTo: (i) => {
|
|
2122
2166
|
var a;
|
|
2123
2167
|
return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(C(i));
|
|
2124
2168
|
}, setMap: (i) => {
|
|
2125
2169
|
t.value = i;
|
|
2126
2170
|
} };
|
|
2127
|
-
},
|
|
2128
|
-
const { supplier: t } =
|
|
2129
|
-
return t === "gmap" ?
|
|
2171
|
+
}, Pa = () => {
|
|
2172
|
+
const { supplier: t } = S();
|
|
2173
|
+
return t === "gmap" ? fa() : ga();
|
|
2130
2174
|
};
|
|
2131
2175
|
export {
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2176
|
+
pa as AddressBox,
|
|
2177
|
+
ja as DrivingLine,
|
|
2178
|
+
va as DrivingRoute,
|
|
2179
|
+
wa as HeycarMap,
|
|
2180
|
+
ha as MapProvider,
|
|
2181
|
+
Aa as PassengerCircle,
|
|
2182
|
+
Na as PickupPoints,
|
|
2183
|
+
Hi as PlaceCircle,
|
|
2184
|
+
Da as StartEndPoint,
|
|
2185
|
+
Sa as TaxiCar,
|
|
2186
|
+
xa as WalkingLine,
|
|
2187
|
+
Ca as WaveCircle,
|
|
2188
|
+
za as useBusinessMapRecomendPlace,
|
|
2189
|
+
ya as useDrivingRoute,
|
|
2190
|
+
oa as useGeoLocation,
|
|
2191
|
+
Pa as useHeycarMap,
|
|
2192
|
+
La as useMapAngle,
|
|
2193
|
+
sa as useMapDrag,
|
|
2194
|
+
ba as useMapPlace,
|
|
2195
|
+
da as useMapRecomendPlace
|
|
2152
2196
|
};
|