@heycar/heycars-map 0.2.12 → 0.3.0
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/AbsoluteAddressBox/AbsoluteAddressBox.css.d.ts +8 -0
- package/dist/business-components/AbsoluteAddressBox/AbsoluteAddressBox.d.ts +8 -2
- package/dist/business-components/AddressBox/AddressBox.d.ts +5 -7
- package/dist/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +3 -1
- package/dist/components/Gmap/Gmap.css.d.ts +1 -0
- package/dist/index.cjs +48 -48
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1341 -1296
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/Demo/DemoBusinessRecomendPlace.tsx +1 -0
- package/src/business-components/AbsoluteAddressBox/AbsoluteAddressBox.css.ts +66 -0
- package/src/business-components/AbsoluteAddressBox/AbsoluteAddressBox.tsx +34 -3
- package/src/business-components/AddressBox/AddressBox.tsx +2 -4
- package/src/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.tsx +5 -4
- package/src/components/Amap/Amap.css.ts +3 -1
- package/src/components/Gmap/Gmap.css.ts +5 -0
- package/src/components/Gmap/Gmap.ts +3 -1
- package/src/index.ts +1 -0
- package/todo.md +5 -9
package/dist/index.js
CHANGED
|
@@ -1,125 +1,100 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const t = Mt();
|
|
13
|
-
b(
|
|
14
|
-
() => t.value,
|
|
15
|
-
(n) => {
|
|
16
|
-
n && Promise.resolve().then(e);
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
}, mt = (e) => {
|
|
20
|
-
const { registerOverlay: t, overlayRef: n } = e;
|
|
21
|
-
b(
|
|
22
|
-
() => n.value,
|
|
23
|
-
(i, a) => {
|
|
24
|
-
t && (a && t.remove(a), i && t.add(i));
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
var Pn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, bn = typeof global == "object" && global && global.Object === Object && global;
|
|
29
|
-
const Tn = bn;
|
|
30
|
-
var zn = typeof self == "object" && self && self.Object === Object && self, Rn = Tn || zn || Function("return this")();
|
|
31
|
-
const ft = Rn;
|
|
32
|
-
var En = ft.Symbol;
|
|
33
|
-
const X = En;
|
|
34
|
-
var vt = Object.prototype, Zn = vt.hasOwnProperty, On = vt.toString, ee = X ? X.toStringTag : void 0;
|
|
35
|
-
function Gn(e) {
|
|
36
|
-
var t = Zn.call(e, ee), n = e[ee];
|
|
1
|
+
import Cn, { defineComponent as dt, h as g, inject as ze, provide as Re, watch as P, watchPostEffect as B, shallowRef as b, onMounted as ve, onUnmounted as pe, watchEffect as ue, computed as N, reactive as x, toRefs as gt, ref as D } from "vue";
|
|
2
|
+
const Ee = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+", Ze = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9Ii44Ii8+PC9zdmc+";
|
|
3
|
+
var xn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, wn = typeof global == "object" && global && global.Object === Object && global;
|
|
4
|
+
const Pn = wn;
|
|
5
|
+
var bn = typeof self == "object" && self && self.Object === Object && self, Tn = Pn || bn || Function("return this")();
|
|
6
|
+
const It = Tn;
|
|
7
|
+
var zn = It.Symbol;
|
|
8
|
+
const F = zn;
|
|
9
|
+
var Mt = Object.prototype, Rn = Mt.hasOwnProperty, En = Mt.toString, ee = F ? F.toStringTag : void 0;
|
|
10
|
+
function Zn(t) {
|
|
11
|
+
var e = Rn.call(t, ee), n = t[ee];
|
|
37
12
|
try {
|
|
38
|
-
|
|
13
|
+
t[ee] = void 0;
|
|
39
14
|
var i = !0;
|
|
40
15
|
} catch {
|
|
41
16
|
}
|
|
42
|
-
var a =
|
|
43
|
-
return i && (
|
|
17
|
+
var a = En.call(t);
|
|
18
|
+
return i && (e ? t[ee] = n : delete t[ee]), a;
|
|
44
19
|
}
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
20
|
+
var On = Object.prototype, kn = On.toString;
|
|
21
|
+
function Gn(t) {
|
|
22
|
+
return kn.call(t);
|
|
48
23
|
}
|
|
49
|
-
var
|
|
50
|
-
function
|
|
51
|
-
return
|
|
24
|
+
var Wn = "[object Null]", Un = "[object Undefined]", Ue = F ? F.toStringTag : void 0;
|
|
25
|
+
function Bn(t) {
|
|
26
|
+
return t == null ? t === void 0 ? Un : Wn : Ue && Ue in Object(t) ? Zn(t) : Gn(t);
|
|
52
27
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
28
|
+
function Yn(t) {
|
|
29
|
+
return t != null && typeof t == "object";
|
|
55
30
|
}
|
|
56
|
-
var
|
|
57
|
-
function
|
|
58
|
-
return typeof
|
|
31
|
+
var Vn = "[object Symbol]";
|
|
32
|
+
function mt(t) {
|
|
33
|
+
return typeof t == "symbol" || Yn(t) && Bn(t) == Vn;
|
|
59
34
|
}
|
|
60
|
-
function
|
|
61
|
-
for (var n = -1, i =
|
|
62
|
-
a[n] = t
|
|
35
|
+
function Hn(t, e) {
|
|
36
|
+
for (var n = -1, i = t == null ? 0 : t.length, a = Array(i); ++n < i; )
|
|
37
|
+
a[n] = e(t[n], n, t);
|
|
63
38
|
return a;
|
|
64
39
|
}
|
|
65
|
-
var
|
|
66
|
-
const
|
|
67
|
-
var
|
|
68
|
-
function
|
|
69
|
-
if (typeof
|
|
70
|
-
return
|
|
71
|
-
if (
|
|
72
|
-
return
|
|
73
|
-
if (
|
|
74
|
-
return
|
|
75
|
-
var
|
|
76
|
-
return
|
|
40
|
+
var Qn = Array.isArray;
|
|
41
|
+
const Jn = Qn;
|
|
42
|
+
var Fn = 1 / 0, Be = F ? F.prototype : void 0, Ye = Be ? Be.toString : void 0;
|
|
43
|
+
function ft(t) {
|
|
44
|
+
if (typeof t == "string")
|
|
45
|
+
return t;
|
|
46
|
+
if (Jn(t))
|
|
47
|
+
return Hn(t, ft) + "";
|
|
48
|
+
if (mt(t))
|
|
49
|
+
return Ye ? Ye.call(t) : "";
|
|
50
|
+
var e = t + "";
|
|
51
|
+
return e == "0" && 1 / t == -Fn ? "-0" : e;
|
|
77
52
|
}
|
|
78
|
-
var
|
|
79
|
-
function
|
|
80
|
-
for (var
|
|
53
|
+
var Xn = /\s/;
|
|
54
|
+
function $n(t) {
|
|
55
|
+
for (var e = t.length; e-- && Xn.test(t.charAt(e)); )
|
|
81
56
|
;
|
|
82
|
-
return
|
|
57
|
+
return e;
|
|
83
58
|
}
|
|
84
|
-
var
|
|
85
|
-
function
|
|
86
|
-
return
|
|
59
|
+
var _n = /^\s+/;
|
|
60
|
+
function Kn(t) {
|
|
61
|
+
return t && t.slice(0, $n(t) + 1).replace(_n, "");
|
|
87
62
|
}
|
|
88
|
-
function
|
|
89
|
-
var
|
|
90
|
-
return
|
|
63
|
+
function we(t) {
|
|
64
|
+
var e = typeof t;
|
|
65
|
+
return t != null && (e == "object" || e == "function");
|
|
91
66
|
}
|
|
92
|
-
var
|
|
93
|
-
function
|
|
94
|
-
if (typeof
|
|
95
|
-
return
|
|
96
|
-
if (
|
|
97
|
-
return
|
|
98
|
-
if (
|
|
99
|
-
var
|
|
100
|
-
|
|
67
|
+
var Ve = 0 / 0, qn = /^[-+]0x[0-9a-f]+$/i, ei = /^0b[01]+$/i, ti = /^0o[0-7]+$/i, ni = parseInt;
|
|
68
|
+
function He(t) {
|
|
69
|
+
if (typeof t == "number")
|
|
70
|
+
return t;
|
|
71
|
+
if (mt(t))
|
|
72
|
+
return Ve;
|
|
73
|
+
if (we(t)) {
|
|
74
|
+
var e = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
75
|
+
t = we(e) ? e + "" : e;
|
|
101
76
|
}
|
|
102
|
-
if (typeof
|
|
103
|
-
return
|
|
104
|
-
|
|
105
|
-
var n =
|
|
106
|
-
return n ||
|
|
77
|
+
if (typeof t != "string")
|
|
78
|
+
return t === 0 ? t : +t;
|
|
79
|
+
t = Kn(t);
|
|
80
|
+
var n = ei.test(t);
|
|
81
|
+
return n || ti.test(t) ? ni(t.slice(2), n ? 2 : 8) : qn.test(t) ? Ve : +t;
|
|
107
82
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
83
|
+
function vt(t) {
|
|
84
|
+
return t == null ? "" : ft(t);
|
|
110
85
|
}
|
|
111
|
-
function
|
|
112
|
-
var a = -1, o =
|
|
113
|
-
for (i && o && (n =
|
|
114
|
-
n =
|
|
86
|
+
function ii(t, e, n, i) {
|
|
87
|
+
var a = -1, o = t == null ? 0 : t.length;
|
|
88
|
+
for (i && o && (n = t[++a]); ++a < o; )
|
|
89
|
+
n = e(n, t[a], a, t);
|
|
115
90
|
return n;
|
|
116
91
|
}
|
|
117
|
-
function
|
|
118
|
-
return function(
|
|
119
|
-
return
|
|
92
|
+
function ai(t) {
|
|
93
|
+
return function(e) {
|
|
94
|
+
return t == null ? void 0 : t[e];
|
|
120
95
|
};
|
|
121
96
|
}
|
|
122
|
-
var
|
|
97
|
+
var oi = {
|
|
123
98
|
// Latin-1 Supplement block.
|
|
124
99
|
À: "A",
|
|
125
100
|
Á: "A",
|
|
@@ -312,190 +287,256 @@ var si = {
|
|
|
312
287
|
œ: "oe",
|
|
313
288
|
ʼn: "'n",
|
|
314
289
|
ſ: "s"
|
|
315
|
-
},
|
|
316
|
-
const
|
|
317
|
-
var
|
|
318
|
-
function
|
|
319
|
-
return
|
|
290
|
+
}, ri = ai(oi);
|
|
291
|
+
const si = ri;
|
|
292
|
+
var ci = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, ui = "\\u0300-\\u036f", li = "\\ufe20-\\ufe2f", di = "\\u20d0-\\u20ff", gi = ui + li + di, Ii = "[" + gi + "]", Mi = RegExp(Ii, "g");
|
|
293
|
+
function mi(t) {
|
|
294
|
+
return t = vt(t), t && t.replace(ci, si).replace(Mi, "");
|
|
320
295
|
}
|
|
321
|
-
var
|
|
322
|
-
function
|
|
323
|
-
return
|
|
296
|
+
var fi = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
297
|
+
function vi(t) {
|
|
298
|
+
return t.match(fi) || [];
|
|
324
299
|
}
|
|
325
|
-
var
|
|
326
|
-
function
|
|
327
|
-
return
|
|
300
|
+
var pi = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
301
|
+
function yi(t) {
|
|
302
|
+
return pi.test(t);
|
|
328
303
|
}
|
|
329
|
-
var
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
Wi,
|
|
304
|
+
var pt = "\\ud800-\\udfff", ji = "\\u0300-\\u036f", Ai = "\\ufe20-\\ufe2f", Li = "\\u20d0-\\u20ff", Si = ji + Ai + Li, yt = "\\u2700-\\u27bf", jt = "a-z\\xdf-\\xf6\\xf8-\\xff", Ni = "\\xac\\xb1\\xd7\\xf7", hi = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Di = "\\u2000-\\u206f", Ci = " \\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", At = "A-Z\\xc0-\\xd6\\xd8-\\xde", xi = "\\ufe0e\\ufe0f", Lt = Ni + hi + Di + Ci, St = "['’]", Qe = "[" + Lt + "]", wi = "[" + Si + "]", Nt = "\\d+", Pi = "[" + yt + "]", ht = "[" + jt + "]", Dt = "[^" + pt + Lt + Nt + yt + jt + At + "]", bi = "\\ud83c[\\udffb-\\udfff]", Ti = "(?:" + wi + "|" + bi + ")", zi = "[^" + pt + "]", Ct = "(?:\\ud83c[\\udde6-\\uddff]){2}", xt = "[\\ud800-\\udbff][\\udc00-\\udfff]", H = "[" + At + "]", Ri = "\\u200d", Je = "(?:" + ht + "|" + Dt + ")", Ei = "(?:" + H + "|" + Dt + ")", Fe = "(?:" + St + "(?:d|ll|m|re|s|t|ve))?", Xe = "(?:" + St + "(?:D|LL|M|RE|S|T|VE))?", wt = Ti + "?", Pt = "[" + xi + "]?", Zi = "(?:" + Ri + "(?:" + [zi, Ct, xt].join("|") + ")" + Pt + wt + ")*", Oi = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ki = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Gi = Pt + wt + Zi, Wi = "(?:" + [Pi, Ct, xt].join("|") + ")" + Gi, Ui = RegExp([
|
|
305
|
+
H + "?" + ht + "+" + Fe + "(?=" + [Qe, H, "$"].join("|") + ")",
|
|
306
|
+
Ei + "+" + Xe + "(?=" + [Qe, H + Je, "$"].join("|") + ")",
|
|
307
|
+
H + "?" + Je + "+" + Fe,
|
|
308
|
+
H + "+" + Xe,
|
|
335
309
|
ki,
|
|
336
|
-
|
|
337
|
-
|
|
310
|
+
Oi,
|
|
311
|
+
Nt,
|
|
312
|
+
Wi
|
|
338
313
|
].join("|"), "g");
|
|
339
|
-
function
|
|
340
|
-
return
|
|
314
|
+
function Bi(t) {
|
|
315
|
+
return t.match(Ui) || [];
|
|
341
316
|
}
|
|
342
|
-
function
|
|
343
|
-
return
|
|
317
|
+
function Yi(t, e, n) {
|
|
318
|
+
return t = vt(t), e = n ? void 0 : e, e === void 0 ? yi(t) ? Bi(t) : vi(t) : t.match(e) || [];
|
|
344
319
|
}
|
|
345
|
-
var
|
|
346
|
-
function
|
|
347
|
-
return function(
|
|
348
|
-
return
|
|
320
|
+
var Vi = "['’]", Hi = RegExp(Vi, "g");
|
|
321
|
+
function Qi(t) {
|
|
322
|
+
return function(e) {
|
|
323
|
+
return ii(Yi(mi(e).replace(Hi, "")), t, "");
|
|
349
324
|
};
|
|
350
325
|
}
|
|
351
|
-
var
|
|
352
|
-
return
|
|
326
|
+
var Ji = function() {
|
|
327
|
+
return It.Date.now();
|
|
353
328
|
};
|
|
354
|
-
const
|
|
355
|
-
var
|
|
356
|
-
function
|
|
357
|
-
var i, a, o, r, s, u, l = 0,
|
|
358
|
-
if (typeof
|
|
359
|
-
throw new TypeError(
|
|
360
|
-
|
|
361
|
-
function M(
|
|
362
|
-
var
|
|
363
|
-
return i = a = void 0, l =
|
|
329
|
+
const xe = Ji;
|
|
330
|
+
var Fi = "Expected a function", Xi = Math.max, $i = Math.min;
|
|
331
|
+
function _i(t, e, n) {
|
|
332
|
+
var i, a, o, r, s, u, l = 0, d = !1, c = !1, I = !0;
|
|
333
|
+
if (typeof t != "function")
|
|
334
|
+
throw new TypeError(Fi);
|
|
335
|
+
e = He(e) || 0, we(n) && (d = !!n.leading, c = "maxWait" in n, o = c ? Xi(He(n.maxWait) || 0, e) : o, I = "trailing" in n ? !!n.trailing : I);
|
|
336
|
+
function M(v) {
|
|
337
|
+
var R = i, q = a;
|
|
338
|
+
return i = a = void 0, l = v, r = t.apply(q, R), r;
|
|
364
339
|
}
|
|
365
|
-
function m(
|
|
366
|
-
return l =
|
|
340
|
+
function m(v) {
|
|
341
|
+
return l = v, s = setTimeout(A, e), d ? M(v) : r;
|
|
367
342
|
}
|
|
368
|
-
function f(
|
|
369
|
-
var
|
|
370
|
-
return c ?
|
|
343
|
+
function f(v) {
|
|
344
|
+
var R = v - u, q = v - l, We = e - R;
|
|
345
|
+
return c ? $i(We, o - q) : We;
|
|
371
346
|
}
|
|
372
|
-
function
|
|
373
|
-
var
|
|
374
|
-
return u === void 0 ||
|
|
347
|
+
function j(v) {
|
|
348
|
+
var R = v - u, q = v - l;
|
|
349
|
+
return u === void 0 || R >= e || R < 0 || c && q >= o;
|
|
375
350
|
}
|
|
376
|
-
function
|
|
377
|
-
var
|
|
378
|
-
if (
|
|
379
|
-
return y(
|
|
380
|
-
s = setTimeout(
|
|
351
|
+
function A() {
|
|
352
|
+
var v = xe();
|
|
353
|
+
if (j(v))
|
|
354
|
+
return y(v);
|
|
355
|
+
s = setTimeout(A, f(v));
|
|
381
356
|
}
|
|
382
|
-
function y(
|
|
383
|
-
return s = void 0,
|
|
357
|
+
function y(v) {
|
|
358
|
+
return s = void 0, I && i ? M(v) : (i = a = void 0, r);
|
|
384
359
|
}
|
|
385
360
|
function h() {
|
|
386
361
|
s !== void 0 && clearTimeout(s), l = 0, i = u = a = s = void 0;
|
|
387
362
|
}
|
|
388
|
-
function
|
|
389
|
-
return s === void 0 ? r : y(
|
|
363
|
+
function T() {
|
|
364
|
+
return s === void 0 ? r : y(xe());
|
|
390
365
|
}
|
|
391
|
-
function
|
|
392
|
-
var
|
|
393
|
-
if (i = arguments, a = this, u =
|
|
366
|
+
function k() {
|
|
367
|
+
var v = xe(), R = j(v);
|
|
368
|
+
if (i = arguments, a = this, u = v, R) {
|
|
394
369
|
if (s === void 0)
|
|
395
370
|
return m(u);
|
|
396
371
|
if (c)
|
|
397
|
-
return clearTimeout(s), s = setTimeout(
|
|
372
|
+
return clearTimeout(s), s = setTimeout(A, e), M(u);
|
|
398
373
|
}
|
|
399
|
-
return s === void 0 && (s = setTimeout(
|
|
374
|
+
return s === void 0 && (s = setTimeout(A, e)), r;
|
|
400
375
|
}
|
|
401
|
-
return
|
|
376
|
+
return k.cancel = h, k.flush = T, k;
|
|
402
377
|
}
|
|
403
|
-
var
|
|
404
|
-
return
|
|
378
|
+
var Ki = Qi(function(t, e, n) {
|
|
379
|
+
return t + (n ? "-" : "") + e.toLowerCase();
|
|
405
380
|
});
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
381
|
+
const bt = Ki;
|
|
382
|
+
Cn.util.warn;
|
|
383
|
+
function p(t) {
|
|
384
|
+
return dt({
|
|
385
|
+
name: t.name,
|
|
410
386
|
inheritAttrs: !1,
|
|
411
|
-
setup(
|
|
412
|
-
const { attrs: i, slots: a, emit: o } = n, r = i, s = o, u = (
|
|
413
|
-
const
|
|
414
|
-
s(
|
|
387
|
+
setup(e, n) {
|
|
388
|
+
const { attrs: i, slots: a, emit: o } = n, r = i, s = o, u = (d, c) => {
|
|
389
|
+
const I = bt(d);
|
|
390
|
+
s(d, c), d !== I && s(I, c);
|
|
415
391
|
}, l = new Proxy(a, {
|
|
416
|
-
get(
|
|
392
|
+
get(d, c, I) {
|
|
417
393
|
var M;
|
|
418
|
-
return (M = Reflect.get(
|
|
394
|
+
return (M = Reflect.get(d, c, I)) != null ? M : Reflect.get(r, c);
|
|
419
395
|
}
|
|
420
396
|
});
|
|
421
|
-
return
|
|
397
|
+
return t(r, { ...n, slots: l, emit: u });
|
|
422
398
|
}
|
|
423
399
|
});
|
|
424
400
|
}
|
|
425
|
-
function ae(
|
|
401
|
+
function ae(t) {
|
|
426
402
|
return {
|
|
427
|
-
props: (
|
|
428
|
-
name:
|
|
403
|
+
props: (e) => dt({
|
|
404
|
+
name: t.name,
|
|
429
405
|
inheritAttrs: !1,
|
|
430
|
-
props:
|
|
406
|
+
props: e,
|
|
431
407
|
setup(n, i) {
|
|
432
|
-
const a = n, { slots: o, emit: r } = i, s = r, u = (
|
|
433
|
-
const
|
|
434
|
-
s(
|
|
408
|
+
const a = n, { slots: o, emit: r } = i, s = r, u = (d, c) => {
|
|
409
|
+
const I = bt(d);
|
|
410
|
+
s(d, c), d !== I && s(I, c);
|
|
435
411
|
}, l = new Proxy(o, {
|
|
436
|
-
get(
|
|
412
|
+
get(d, c, I) {
|
|
437
413
|
var M;
|
|
438
|
-
return (M = Reflect.get(
|
|
414
|
+
return (M = Reflect.get(d, c, I)) != null ? M : Reflect.get(a, c);
|
|
439
415
|
}
|
|
440
416
|
});
|
|
441
|
-
return
|
|
417
|
+
return t(a, { ...i, slots: l, emit: u });
|
|
442
418
|
}
|
|
443
419
|
})
|
|
444
420
|
};
|
|
445
421
|
}
|
|
446
|
-
const Z =
|
|
447
|
-
var ta =
|
|
448
|
-
|
|
449
|
-
|
|
422
|
+
const Z = g, Oe = "zh-CN";
|
|
423
|
+
var qi = "n8tgem1", $e = "n8tgem0", ea = "n8tgem5", ta = "n8tgem4", na = "n8tgem2", ia = "n8tgem3", aa = "n8tgem7", oa = "n8tgem6";
|
|
424
|
+
const ra = p(function(e, {
|
|
425
|
+
emit: n
|
|
426
|
+
}) {
|
|
427
|
+
const i = () => n("click");
|
|
428
|
+
return () => {
|
|
429
|
+
const {
|
|
430
|
+
type: a,
|
|
431
|
+
title: o,
|
|
432
|
+
description: r
|
|
433
|
+
} = e;
|
|
434
|
+
return a === "locator" ? g("div", {
|
|
435
|
+
class: $e
|
|
436
|
+
}, [g("img", {
|
|
437
|
+
class: aa,
|
|
438
|
+
attrs: {
|
|
439
|
+
src: Ee
|
|
440
|
+
}
|
|
441
|
+
})]) : g("div", {
|
|
442
|
+
class: $e
|
|
443
|
+
}, [g("div", {
|
|
444
|
+
class: qi,
|
|
445
|
+
on: {
|
|
446
|
+
click: i
|
|
447
|
+
}
|
|
448
|
+
}, [g("div", {
|
|
449
|
+
class: na
|
|
450
|
+
}, [g("div", {
|
|
451
|
+
class: ia
|
|
452
|
+
}, [o]), r && g("div", {
|
|
453
|
+
class: ta
|
|
454
|
+
}, [r])]), g("img", {
|
|
455
|
+
class: ea,
|
|
456
|
+
attrs: {
|
|
457
|
+
src: Ze
|
|
458
|
+
}
|
|
459
|
+
})]), g("i", {
|
|
460
|
+
class: oa
|
|
461
|
+
})]);
|
|
462
|
+
};
|
|
463
|
+
}), G = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIxN3B4IiB2aWV3Qm94PSIwIDAgMTcgMTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5qSt5ZyG5b2iPC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxjaXJjbGUgaWQ9InBhdGgtMSIgY3g9IjQuNSIgY3k9IjkuNSIgcj0iNC41Ij48L2NpcmNsZT4KICAgICAgICA8ZmlsdGVyIHg9Ii02MS4xJSIgeT0iLTYxLjElIiB3aWR0aD0iMjIyLjIlIiBoZWlnaHQ9IjIyMi4yJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0iZmlsdGVyLTIiPgogICAgICAgICAgICA8ZmVNb3JwaG9sb2d5IHJhZGl1cz0iMSIgb3BlcmF0b3I9ImRpbGF0ZSIgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd1NwcmVhZE91dGVyMSI+PC9mZU1vcnBob2xvZ3k+CiAgICAgICAgICAgIDxmZU9mZnNldCBkeD0iMCIgZHk9IjAiIGluPSJzaGFkb3dTcHJlYWRPdXRlcjEiIHJlc3VsdD0ic2hhZG93T2Zmc2V0T3V0ZXIxIj48L2ZlT2Zmc2V0PgogICAgICAgICAgICA8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxLjUiIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSI+PC9mZUdhdXNzaWFuQmx1cj4KICAgICAgICAgICAgPGZlQ29tcG9zaXRlIGluPSJzaGFkb3dCbHVyT3V0ZXIxIiBpbjI9IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0ib3V0IiByZXN1bHQ9InNoYWRvd0JsdXJPdXRlcjEiPjwvZmVDb21wb3NpdGU+CiAgICAgICAgICAgIDxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwICAgMCAwIDAgMCAwICAgMCAwIDAgMCAwICAwIDAgMCAwLjIwNDM1NDI0IDAiIHR5cGU9Im1hdHJpeCIgaW49InNoYWRvd0JsdXJPdXRlcjEiPjwvZmVDb2xvck1hdHJpeD4KICAgICAgICA8L2ZpbHRlcj4KICAgIDwvZGVmcz4KICAgIDxnIGlkPSIxLjAiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLpppbpobUt5Y2z5pe255So6L2mLeaLluWKqOWFieaghyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIyOC4wMDAwMDAsIC0zMjIuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSLmpK3lnIblvaIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIzMi4wMDAwMDAsIDMyMS4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDx1c2UgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMSIgZmlsdGVyPSJ1cmwoI2ZpbHRlci0yKSIgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICA8dXNlIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSIjMzQ2RUZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=", Tt = Symbol(), L = () => {
|
|
464
|
+
const t = ze(Tt);
|
|
465
|
+
if (!t)
|
|
466
|
+
throw new Error("MyError: useMapSupplier should be under MapProvider");
|
|
467
|
+
return t;
|
|
468
|
+
}, sa = (t) => Re(Tt, t), zt = Symbol("amap"), ye = () => ze(zt), ca = (t) => Re(zt, t), Rt = Symbol("gmap"), je = () => ze(Rt), ua = (t) => Re(Rt, t), Et = () => {
|
|
469
|
+
const { supplier: t } = L();
|
|
470
|
+
return t === "gmap" ? je() : ye();
|
|
471
|
+
}, Y = (t) => {
|
|
472
|
+
const e = Et();
|
|
473
|
+
P(
|
|
474
|
+
() => e.value,
|
|
475
|
+
(n) => {
|
|
476
|
+
n && Promise.resolve().then(t);
|
|
477
|
+
}
|
|
478
|
+
);
|
|
479
|
+
}, Zt = (t) => {
|
|
480
|
+
const { registerOverlay: e, overlayRef: n } = t;
|
|
481
|
+
P(
|
|
482
|
+
() => n.value,
|
|
483
|
+
(i, a) => {
|
|
484
|
+
e && (a && e.remove(a), i && e.add(i));
|
|
485
|
+
}
|
|
486
|
+
);
|
|
487
|
+
}, _e = (t) => t != null && typeof t == "object" && Number.isFinite(t.lat) && Number.isFinite(t.lng);
|
|
488
|
+
var la = typeof WeakMap == "function", Ke = Object.keys;
|
|
489
|
+
function le(t, e) {
|
|
490
|
+
return t === e || t !== t && e !== e;
|
|
450
491
|
}
|
|
451
|
-
function
|
|
452
|
-
return
|
|
492
|
+
function qe(t) {
|
|
493
|
+
return t.constructor === Object || t.constructor == null;
|
|
453
494
|
}
|
|
454
|
-
function
|
|
455
|
-
return !!
|
|
495
|
+
function et(t) {
|
|
496
|
+
return !!t && typeof t.then == "function";
|
|
456
497
|
}
|
|
457
|
-
function
|
|
458
|
-
return !!(
|
|
498
|
+
function tt(t) {
|
|
499
|
+
return !!(t && t.$$typeof);
|
|
459
500
|
}
|
|
460
|
-
function
|
|
461
|
-
var
|
|
501
|
+
function da() {
|
|
502
|
+
var t = [];
|
|
462
503
|
return {
|
|
463
|
-
delete: function(
|
|
464
|
-
for (var n = 0; n <
|
|
465
|
-
if (
|
|
466
|
-
|
|
504
|
+
delete: function(e) {
|
|
505
|
+
for (var n = 0; n < t.length; ++n)
|
|
506
|
+
if (t[n][0] === e) {
|
|
507
|
+
t.splice(n, 1);
|
|
467
508
|
return;
|
|
468
509
|
}
|
|
469
510
|
},
|
|
470
|
-
get: function(
|
|
471
|
-
for (var n = 0; n <
|
|
472
|
-
if (
|
|
473
|
-
return
|
|
511
|
+
get: function(e) {
|
|
512
|
+
for (var n = 0; n < t.length; ++n)
|
|
513
|
+
if (t[n][0] === e)
|
|
514
|
+
return t[n][1];
|
|
474
515
|
},
|
|
475
|
-
set: function(
|
|
476
|
-
for (var i = 0; i <
|
|
477
|
-
if (
|
|
478
|
-
|
|
516
|
+
set: function(e, n) {
|
|
517
|
+
for (var i = 0; i < t.length; ++i)
|
|
518
|
+
if (t[i][0] === e) {
|
|
519
|
+
t[i][1] = n;
|
|
479
520
|
return;
|
|
480
521
|
}
|
|
481
|
-
|
|
522
|
+
t.push([e, n]);
|
|
482
523
|
}
|
|
483
524
|
};
|
|
484
525
|
}
|
|
485
|
-
var
|
|
486
|
-
return
|
|
526
|
+
var ga = function(t) {
|
|
527
|
+
return t ? function() {
|
|
487
528
|
return /* @__PURE__ */ new WeakMap();
|
|
488
|
-
} :
|
|
489
|
-
}(
|
|
490
|
-
function
|
|
529
|
+
} : da;
|
|
530
|
+
}(la);
|
|
531
|
+
function Ot(t) {
|
|
491
532
|
return function(n) {
|
|
492
|
-
var i =
|
|
493
|
-
return function(o, r, s, u, l,
|
|
494
|
-
c === void 0 && (c =
|
|
495
|
-
var
|
|
496
|
-
if (
|
|
533
|
+
var i = t || n;
|
|
534
|
+
return function(o, r, s, u, l, d, c) {
|
|
535
|
+
c === void 0 && (c = ga());
|
|
536
|
+
var I = !!o && typeof o == "object", M = !!r && typeof r == "object";
|
|
537
|
+
if (I !== M)
|
|
497
538
|
return !1;
|
|
498
|
-
if (!
|
|
539
|
+
if (!I && !M)
|
|
499
540
|
return i(o, r, c);
|
|
500
541
|
var m = c.get(o);
|
|
501
542
|
if (m && c.get(r))
|
|
@@ -506,74 +547,74 @@ function Et(e) {
|
|
|
506
547
|
};
|
|
507
548
|
};
|
|
508
549
|
}
|
|
509
|
-
function
|
|
510
|
-
var a =
|
|
511
|
-
if (
|
|
550
|
+
function Ia(t, e, n, i) {
|
|
551
|
+
var a = t.length;
|
|
552
|
+
if (e.length !== a)
|
|
512
553
|
return !1;
|
|
513
554
|
for (; a-- > 0; )
|
|
514
|
-
if (!n(
|
|
555
|
+
if (!n(t[a], e[a], a, a, t, e, i))
|
|
515
556
|
return !1;
|
|
516
557
|
return !0;
|
|
517
558
|
}
|
|
518
|
-
function
|
|
519
|
-
var a =
|
|
520
|
-
if (a &&
|
|
559
|
+
function Ma(t, e, n, i) {
|
|
560
|
+
var a = t.size === e.size;
|
|
561
|
+
if (a && t.size) {
|
|
521
562
|
var o = {}, r = 0;
|
|
522
|
-
|
|
563
|
+
t.forEach(function(s, u) {
|
|
523
564
|
if (a) {
|
|
524
|
-
var l = !1,
|
|
525
|
-
|
|
526
|
-
!l && !o[
|
|
565
|
+
var l = !1, d = 0;
|
|
566
|
+
e.forEach(function(c, I) {
|
|
567
|
+
!l && !o[d] && (l = n(u, I, r, d, t, e, i) && n(s, c, u, I, t, e, i), l && (o[d] = !0)), d++;
|
|
527
568
|
}), r++, a = l;
|
|
528
569
|
}
|
|
529
570
|
});
|
|
530
571
|
}
|
|
531
572
|
return a;
|
|
532
573
|
}
|
|
533
|
-
var
|
|
534
|
-
function
|
|
535
|
-
var a =
|
|
536
|
-
if (
|
|
574
|
+
var ma = "_owner", fa = Function.prototype.bind.call(Function.prototype.call, Object.prototype.hasOwnProperty);
|
|
575
|
+
function nt(t, e, n, i) {
|
|
576
|
+
var a = Ke(t), o = a.length;
|
|
577
|
+
if (Ke(e).length !== o)
|
|
537
578
|
return !1;
|
|
538
579
|
if (o)
|
|
539
580
|
for (var r = void 0; o-- > 0; ) {
|
|
540
|
-
if (r = a[o], r ===
|
|
541
|
-
var s =
|
|
581
|
+
if (r = a[o], r === ma) {
|
|
582
|
+
var s = tt(t), u = tt(e);
|
|
542
583
|
if ((s || u) && s !== u)
|
|
543
584
|
return !1;
|
|
544
585
|
}
|
|
545
|
-
if (!
|
|
586
|
+
if (!fa(e, r) || !n(t[r], e[r], r, r, t, e, i))
|
|
546
587
|
return !1;
|
|
547
588
|
}
|
|
548
589
|
return !0;
|
|
549
590
|
}
|
|
550
|
-
var
|
|
551
|
-
return /foo/g.flags === "g" ? function(
|
|
552
|
-
return
|
|
553
|
-
} : function(
|
|
554
|
-
return
|
|
591
|
+
var va = function() {
|
|
592
|
+
return /foo/g.flags === "g" ? function(e, n) {
|
|
593
|
+
return e.source === n.source && e.flags === n.flags;
|
|
594
|
+
} : function(e, n) {
|
|
595
|
+
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;
|
|
555
596
|
};
|
|
556
597
|
}();
|
|
557
|
-
function
|
|
558
|
-
var a =
|
|
559
|
-
if (a &&
|
|
598
|
+
function pa(t, e, n, i) {
|
|
599
|
+
var a = t.size === e.size;
|
|
600
|
+
if (a && t.size) {
|
|
560
601
|
var o = {};
|
|
561
|
-
|
|
602
|
+
t.forEach(function(r, s) {
|
|
562
603
|
if (a) {
|
|
563
604
|
var u = !1, l = 0;
|
|
564
|
-
|
|
565
|
-
!u && !o[l] && (u = n(r,
|
|
605
|
+
e.forEach(function(d, c) {
|
|
606
|
+
!u && !o[l] && (u = n(r, d, s, c, t, e, i), u && (o[l] = !0)), l++;
|
|
566
607
|
}), a = u;
|
|
567
608
|
}
|
|
568
609
|
});
|
|
569
610
|
}
|
|
570
611
|
return a;
|
|
571
612
|
}
|
|
572
|
-
var
|
|
573
|
-
function oe(
|
|
574
|
-
var
|
|
613
|
+
var ya = typeof Map == "function", ja = typeof Set == "function", it = Object.prototype.valueOf;
|
|
614
|
+
function oe(t) {
|
|
615
|
+
var e = (
|
|
575
616
|
/* eslint-disable no-use-before-define */
|
|
576
|
-
typeof
|
|
617
|
+
typeof t == "function" ? t(n) : function(i, a, o, r, s, u, l) {
|
|
577
618
|
return n(i, a, l);
|
|
578
619
|
}
|
|
579
620
|
);
|
|
@@ -581,10 +622,10 @@ function oe(e) {
|
|
|
581
622
|
if (i === a)
|
|
582
623
|
return !0;
|
|
583
624
|
if (i && a && typeof i == "object" && typeof a == "object") {
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
625
|
+
if (qe(i) && qe(a))
|
|
626
|
+
return nt(i, a, e, o);
|
|
586
627
|
var r = Array.isArray(i), s = Array.isArray(a);
|
|
587
|
-
return r || s ? r === s &&
|
|
628
|
+
return r || s ? r === s && Ia(i, a, e, o) : (r = i instanceof Date, s = a instanceof Date, r || s ? r === s && le(i.getTime(), a.getTime()) : (r = i instanceof RegExp, s = a instanceof RegExp, r || s ? r === s && va(i, a) : et(i) || et(a) ? i === a : ya && (r = i instanceof Map, s = a instanceof Map, r || s) ? r === s && Ma(i, a, e, o) : ja && (r = i instanceof Set, s = a instanceof Set, r || s) ? r === s && pa(i, a, e, o) : i.valueOf !== it || a.valueOf !== it ? le(i.valueOf(), a.valueOf()) : nt(i, a, e, o)));
|
|
588
629
|
}
|
|
589
630
|
return i !== i && a !== a;
|
|
590
631
|
}
|
|
@@ -594,72 +635,72 @@ oe();
|
|
|
594
635
|
oe(function() {
|
|
595
636
|
return le;
|
|
596
637
|
});
|
|
597
|
-
oe(
|
|
598
|
-
oe(
|
|
599
|
-
const
|
|
600
|
-
lng:
|
|
601
|
-
lat:
|
|
602
|
-
}), Ae = (
|
|
603
|
-
const
|
|
638
|
+
oe(Ot());
|
|
639
|
+
oe(Ot(le));
|
|
640
|
+
const w = ([t, e]) => ({
|
|
641
|
+
lng: t,
|
|
642
|
+
lat: e
|
|
643
|
+
}), Ae = (t) => {
|
|
644
|
+
const e = [], n = t.split("*");
|
|
604
645
|
for (const [i, a] of n.entries())
|
|
605
|
-
a &&
|
|
606
|
-
return
|
|
607
|
-
},
|
|
608
|
-
switch (
|
|
646
|
+
a && e.push({ value: a, type: i % 2 === 0 ? "normal" : "emphasize" });
|
|
647
|
+
return e;
|
|
648
|
+
}, kt = (t) => `${t.charAt(2).toLocaleLowerCase()}${t.slice(3)}`, Gt = (t) => t.slice(2).toLowerCase(), Aa = (t) => {
|
|
649
|
+
switch (t) {
|
|
609
650
|
case "en":
|
|
610
651
|
return "style_en";
|
|
611
652
|
case "zh":
|
|
612
653
|
return "style_zh_cn";
|
|
613
654
|
}
|
|
614
|
-
},
|
|
615
|
-
setTimeout(() =>
|
|
616
|
-
},
|
|
617
|
-
const { address_components:
|
|
655
|
+
}, C = (t) => [t.lng, t.lat], Wt = (t) => (...e) => {
|
|
656
|
+
setTimeout(() => t == null ? void 0 : t(...e));
|
|
657
|
+
}, La = (t) => {
|
|
658
|
+
const { address_components: e } = t, n = e.find(
|
|
618
659
|
(a) => a.types[0] === "administrative_area_level_1" || a.types[0] === "administrative_area_level_2"
|
|
619
660
|
);
|
|
620
661
|
if (n)
|
|
621
662
|
return n.long_name;
|
|
622
|
-
const i =
|
|
663
|
+
const i = e.findIndex((a) => a.types[0] === "country");
|
|
623
664
|
if (i > 0)
|
|
624
|
-
return
|
|
625
|
-
},
|
|
626
|
-
function
|
|
627
|
-
let
|
|
665
|
+
return e[i - 1].long_name;
|
|
666
|
+
}, Ut = oe((t) => (e, n) => _e(e) || _e(n) ? new google.maps.LatLng(e).equals(new google.maps.LatLng(n)) : t(e, n));
|
|
667
|
+
function Bt() {
|
|
668
|
+
let t;
|
|
628
669
|
return function(n) {
|
|
629
|
-
return
|
|
670
|
+
return Ut(n, t) || (t = n), t;
|
|
630
671
|
};
|
|
631
672
|
}
|
|
632
|
-
function re(
|
|
633
|
-
const i =
|
|
634
|
-
return
|
|
673
|
+
function re(t, e, n) {
|
|
674
|
+
const i = Bt();
|
|
675
|
+
return P(() => i(t()), e, {
|
|
635
676
|
immediate: !1,
|
|
636
677
|
flush: "post",
|
|
637
678
|
...n
|
|
638
679
|
});
|
|
639
680
|
}
|
|
640
|
-
function
|
|
641
|
-
const i =
|
|
642
|
-
return
|
|
681
|
+
function $(t, e, n) {
|
|
682
|
+
const i = Bt();
|
|
683
|
+
return P(() => i(t()), e, {
|
|
643
684
|
immediate: !0,
|
|
644
685
|
flush: "post",
|
|
645
686
|
...n
|
|
646
687
|
});
|
|
647
688
|
}
|
|
648
|
-
function
|
|
649
|
-
return `set${
|
|
689
|
+
function Sa(t) {
|
|
690
|
+
return `set${t.charAt(0).toUpperCase()}${t.slice(1)}`;
|
|
650
691
|
}
|
|
651
|
-
function
|
|
692
|
+
function Na(t, e, n, i) {
|
|
652
693
|
const a = n.map(
|
|
653
|
-
({ name: o }) => () =>
|
|
694
|
+
({ name: o }) => () => e[o]
|
|
654
695
|
);
|
|
655
|
-
|
|
696
|
+
P(
|
|
656
697
|
a,
|
|
657
698
|
(o, r) => {
|
|
658
|
-
const s =
|
|
699
|
+
const s = t.value;
|
|
659
700
|
if (s)
|
|
660
701
|
for (const [u, l] of o.entries()) {
|
|
661
|
-
const { name:
|
|
662
|
-
|
|
702
|
+
const { name: d, defaultValue: c } = n[u], I = r[u];
|
|
703
|
+
Ut(l, I) || s[Sa(d)](l != null ? l : c);
|
|
663
704
|
}
|
|
664
705
|
},
|
|
665
706
|
{
|
|
@@ -669,21 +710,21 @@ function ma(e, t, n, i) {
|
|
|
669
710
|
}
|
|
670
711
|
);
|
|
671
712
|
}
|
|
672
|
-
function
|
|
673
|
-
return
|
|
713
|
+
function ke(t, e, n, i) {
|
|
714
|
+
return Na(t, e, n, {
|
|
674
715
|
immediate: !1,
|
|
675
716
|
...i
|
|
676
717
|
});
|
|
677
718
|
}
|
|
678
|
-
function ne(
|
|
679
|
-
|
|
680
|
-
const o =
|
|
719
|
+
function ne(t, e, n, i) {
|
|
720
|
+
B((a) => {
|
|
721
|
+
const o = t == null ? void 0 : t.value;
|
|
681
722
|
if (!o)
|
|
682
723
|
return;
|
|
683
724
|
const r = [];
|
|
684
725
|
for (const s of i) {
|
|
685
|
-
const u =
|
|
686
|
-
o.on(l,
|
|
726
|
+
const u = kt(s), l = Gt(s), d = (c) => n(u, c);
|
|
727
|
+
o.on(l, d), r.push(() => o == null ? void 0 : o.off(l, d));
|
|
687
728
|
}
|
|
688
729
|
a(() => {
|
|
689
730
|
for (const s of r)
|
|
@@ -691,14 +732,14 @@ function ne(e, t, n, i) {
|
|
|
691
732
|
});
|
|
692
733
|
});
|
|
693
734
|
}
|
|
694
|
-
function
|
|
695
|
-
|
|
696
|
-
const o =
|
|
735
|
+
function X(t, e, n, i) {
|
|
736
|
+
B((a) => {
|
|
737
|
+
const o = t == null ? void 0 : t.value;
|
|
697
738
|
if (!o)
|
|
698
739
|
return;
|
|
699
740
|
const r = [];
|
|
700
741
|
for (const s of i) {
|
|
701
|
-
const u =
|
|
742
|
+
const u = kt(s), l = Gt(s), d = (I) => n(u, I), c = o.addListener(l, d);
|
|
702
743
|
r.push(() => google.maps.event.removeListener(c));
|
|
703
744
|
}
|
|
704
745
|
a(() => {
|
|
@@ -707,18 +748,18 @@ function $(e, t, n, i) {
|
|
|
707
748
|
});
|
|
708
749
|
});
|
|
709
750
|
}
|
|
710
|
-
const
|
|
711
|
-
const { registerOverlay: i } =
|
|
751
|
+
const W = p(function(e, { emit: n }) {
|
|
752
|
+
const { registerOverlay: i } = e, a = b(), o = ye();
|
|
712
753
|
return ve(() => {
|
|
713
|
-
a.value = new AMap.Marker({ ...
|
|
754
|
+
a.value = new AMap.Marker({ ...e });
|
|
714
755
|
}), pe(() => {
|
|
715
756
|
var r;
|
|
716
757
|
(r = a.value) == null || r.setMap(null);
|
|
717
|
-
}),
|
|
758
|
+
}), Zt({ registerOverlay: i, overlayRef: a }), B(() => {
|
|
718
759
|
var s;
|
|
719
760
|
const r = o == null ? void 0 : o.value;
|
|
720
761
|
r && ((s = a.value) == null || s.setMap(r));
|
|
721
|
-
}),
|
|
762
|
+
}), ke(a, e, [
|
|
722
763
|
{ name: "anchor", defaultValue: "" },
|
|
723
764
|
{ name: "offset", defaultValue: [0, 0] },
|
|
724
765
|
{ name: "clickable", defaultValue: !1 },
|
|
@@ -732,154 +773,154 @@ const U = v(function(t, { emit: n }) {
|
|
|
732
773
|
{ name: "content", defaultValue: "" },
|
|
733
774
|
{ name: "title", defaultValue: "" },
|
|
734
775
|
{ name: "extData", defaultValue: "" }
|
|
735
|
-
]), ne(a,
|
|
736
|
-
}),
|
|
737
|
-
const { registerOverlay: i } =
|
|
738
|
-
return
|
|
739
|
-
const { registerOverlay: s, ...u } =
|
|
776
|
+
]), ne(a, e, n, ["onClick"]), () => null;
|
|
777
|
+
}), U = p(function(e, { emit: n }) {
|
|
778
|
+
const { registerOverlay: i } = e, a = b(), o = je(), r = (s) => n(s, { target: a.value });
|
|
779
|
+
return Zt({ registerOverlay: i, overlayRef: a }), ve(() => {
|
|
780
|
+
const { registerOverlay: s, ...u } = e;
|
|
740
781
|
a.value = new google.maps.marker.AdvancedMarkerView({ ...u }), a.value.addListener;
|
|
741
782
|
}), pe(() => {
|
|
742
783
|
a.value && (a.value.map = null);
|
|
743
|
-
}),
|
|
784
|
+
}), B(() => {
|
|
744
785
|
const s = o == null ? void 0 : o.value;
|
|
745
786
|
!s || !a.value || (a.value.map = s);
|
|
746
787
|
}), re(
|
|
747
788
|
() => {
|
|
748
|
-
const { content: s, registerOverlay: u, ...l } =
|
|
789
|
+
const { content: s, registerOverlay: u, ...l } = e;
|
|
749
790
|
return l;
|
|
750
791
|
},
|
|
751
792
|
(s) => {
|
|
752
793
|
a.value && Object.assign(a.value, s);
|
|
753
794
|
}
|
|
754
|
-
),
|
|
755
|
-
() =>
|
|
795
|
+
), P(
|
|
796
|
+
() => e.content,
|
|
756
797
|
(s) => {
|
|
757
798
|
a.value && (a.value.content = s);
|
|
758
799
|
},
|
|
759
800
|
{
|
|
760
801
|
flush: "post"
|
|
761
802
|
}
|
|
762
|
-
),
|
|
763
|
-
}), S = (
|
|
803
|
+
), X(a, e, r, ["onClick"]), () => null;
|
|
804
|
+
}), S = (t, e) => {
|
|
764
805
|
ue(() => {
|
|
765
|
-
|
|
806
|
+
t.log && console.log(`log ${e} props = `, { ...t });
|
|
766
807
|
});
|
|
767
|
-
},
|
|
768
|
-
const { class: i, ...a } =
|
|
808
|
+
}, z = (t, e, n) => {
|
|
809
|
+
const { class: i, ...a } = e != null ? e : {}, o = document.createElement(t);
|
|
769
810
|
return i && (o.className = i), Object.assign(o, a), n && (o.innerHTML = n), o;
|
|
770
|
-
}
|
|
771
|
-
var
|
|
772
|
-
const
|
|
811
|
+
};
|
|
812
|
+
var Yt = "rgf09w0";
|
|
813
|
+
const Vt = p(function(e) {
|
|
773
814
|
const n = N(() => `
|
|
774
|
-
<img src="${
|
|
815
|
+
<img src="${Ee}" class="${Yt}">
|
|
775
816
|
`);
|
|
776
|
-
return () =>
|
|
817
|
+
return () => g(W, {
|
|
777
818
|
attrs: {
|
|
778
|
-
position:
|
|
819
|
+
position: e.position,
|
|
779
820
|
content: n.value,
|
|
780
821
|
anchor: "bottom-center"
|
|
781
822
|
}
|
|
782
823
|
});
|
|
783
|
-
}),
|
|
784
|
-
const n = N(() =>
|
|
785
|
-
class:
|
|
786
|
-
src:
|
|
824
|
+
}), Ht = p(function(e) {
|
|
825
|
+
const n = N(() => z("img", {
|
|
826
|
+
class: Yt,
|
|
827
|
+
src: Ee
|
|
787
828
|
}));
|
|
788
|
-
return () =>
|
|
829
|
+
return () => g(U, {
|
|
789
830
|
attrs: {
|
|
790
|
-
position:
|
|
831
|
+
position: w(e.position),
|
|
791
832
|
content: n.value
|
|
792
833
|
}
|
|
793
834
|
});
|
|
794
835
|
});
|
|
795
|
-
|
|
836
|
+
p(function(e) {
|
|
796
837
|
const n = L();
|
|
797
|
-
return () => Z(n.supplier === "gmap" ?
|
|
798
|
-
attrs:
|
|
838
|
+
return () => Z(n.supplier === "gmap" ? Ht : Vt, {
|
|
839
|
+
attrs: e
|
|
799
840
|
});
|
|
800
841
|
});
|
|
801
|
-
var
|
|
802
|
-
const
|
|
803
|
-
S(
|
|
842
|
+
var Qt = "_15rq2xn1", Jt = "_15rq2xn0", Ft = "_15rq2xn3", Xt = "_15rq2xn2", $t = "_15rq2xn4", _t = "_15rq2xn6", Kt = "_15rq2xn5";
|
|
843
|
+
const ha = p(function(e) {
|
|
844
|
+
S(e, "AAddressBox");
|
|
804
845
|
const n = N(() => {
|
|
805
846
|
var i;
|
|
806
847
|
return `
|
|
807
|
-
<div class="${
|
|
808
|
-
<div class="${
|
|
848
|
+
<div class="${Jt}">
|
|
849
|
+
<div class="${Qt}">
|
|
809
850
|
<div>
|
|
810
|
-
<div class="${
|
|
811
|
-
<div class="${
|
|
851
|
+
<div class="${Xt}">${e.title}</div>
|
|
852
|
+
<div class="${Ft}">${(i = e.description) != null ? i : ""}</div>
|
|
812
853
|
</div>
|
|
813
|
-
<img class="${
|
|
854
|
+
<img class="${$t}" src="${Ze}" >
|
|
814
855
|
</div>
|
|
815
|
-
<div class="${
|
|
816
|
-
<img src="${
|
|
856
|
+
<div class="${Kt}"></div>
|
|
857
|
+
<img src="${G}" class="${_t}">
|
|
817
858
|
</div>
|
|
818
859
|
`;
|
|
819
860
|
});
|
|
820
|
-
return () =>
|
|
861
|
+
return () => e.type === "locator" ? g(Vt, {
|
|
821
862
|
attrs: {
|
|
822
|
-
position:
|
|
863
|
+
position: e.position
|
|
823
864
|
}
|
|
824
|
-
}) :
|
|
865
|
+
}) : g(W, {
|
|
825
866
|
attrs: {
|
|
826
|
-
position:
|
|
867
|
+
position: e.position,
|
|
827
868
|
content: n.value,
|
|
828
869
|
anchor: "bottom-center"
|
|
829
870
|
}
|
|
830
871
|
});
|
|
831
|
-
}),
|
|
832
|
-
S(
|
|
872
|
+
}), Da = p(function(e) {
|
|
873
|
+
S(e, "GAddressBox");
|
|
833
874
|
const n = N(() => {
|
|
834
875
|
var i;
|
|
835
|
-
return
|
|
836
|
-
class:
|
|
876
|
+
return z("div", {
|
|
877
|
+
class: Jt
|
|
837
878
|
}, `
|
|
838
|
-
<div class="${
|
|
879
|
+
<div class="${Qt}">
|
|
839
880
|
<div>
|
|
840
|
-
<div class="${
|
|
841
|
-
<div class="${
|
|
881
|
+
<div class="${Xt}">${e.title}</div>
|
|
882
|
+
<div class="${Ft}">${(i = e.description) != null ? i : ""}</div>
|
|
842
883
|
</div>
|
|
843
|
-
<img class="${
|
|
884
|
+
<img class="${$t}" src="${Ze}" >
|
|
844
885
|
</div>
|
|
845
|
-
<div class="${
|
|
846
|
-
<img src="${
|
|
886
|
+
<div class="${Kt}"></div>
|
|
887
|
+
<img src="${G}" class="${_t}">
|
|
847
888
|
`);
|
|
848
889
|
});
|
|
849
|
-
return () =>
|
|
890
|
+
return () => e.type === "locator" ? g(Ht, {
|
|
850
891
|
attrs: {
|
|
851
|
-
position:
|
|
892
|
+
position: e.position
|
|
852
893
|
}
|
|
853
|
-
}) :
|
|
894
|
+
}) : g(U, {
|
|
854
895
|
attrs: {
|
|
855
|
-
position:
|
|
896
|
+
position: w(e.position),
|
|
856
897
|
content: n.value
|
|
857
898
|
}
|
|
858
899
|
});
|
|
859
|
-
}),
|
|
900
|
+
}), Bo = p(function(e) {
|
|
860
901
|
const n = L();
|
|
861
|
-
return () => Z(n.supplier === "gmap" ?
|
|
862
|
-
attrs:
|
|
902
|
+
return () => Z(n.supplier === "gmap" ? Da : ha, {
|
|
903
|
+
attrs: e
|
|
863
904
|
});
|
|
864
905
|
});
|
|
865
|
-
var Pe = {},
|
|
906
|
+
var Pe = {}, Ca = {
|
|
866
907
|
get exports() {
|
|
867
908
|
return Pe;
|
|
868
909
|
},
|
|
869
|
-
set exports(
|
|
870
|
-
Pe =
|
|
910
|
+
set exports(t) {
|
|
911
|
+
Pe = t;
|
|
871
912
|
}
|
|
872
913
|
};
|
|
873
|
-
(function(
|
|
914
|
+
(function(t, e) {
|
|
874
915
|
(function(n, i) {
|
|
875
|
-
|
|
876
|
-
})(
|
|
916
|
+
t.exports = i();
|
|
917
|
+
})(xn, function() {
|
|
877
918
|
function n(c) {
|
|
878
|
-
var
|
|
879
|
-
return c.AMapUI &&
|
|
919
|
+
var I = [];
|
|
920
|
+
return c.AMapUI && I.push(i(c.AMapUI)), c.Loca && I.push(a(c.Loca)), Promise.all(I);
|
|
880
921
|
}
|
|
881
922
|
function i(c) {
|
|
882
|
-
return new Promise(function(
|
|
923
|
+
return new Promise(function(I, M) {
|
|
883
924
|
var m = [];
|
|
884
925
|
if (c.plugins)
|
|
885
926
|
for (var f = 0; f < c.plugins.length; f += 1)
|
|
@@ -888,62 +929,62 @@ var Pe = {}, ya = {
|
|
|
888
929
|
M("前次请求 AMapUI 失败");
|
|
889
930
|
else if (s.AMapUI === o.notload) {
|
|
890
931
|
s.AMapUI = o.loading, r.AMapUI.version = c.version || r.AMapUI.version, f = r.AMapUI.version;
|
|
891
|
-
var
|
|
892
|
-
|
|
932
|
+
var j = document.body || document.head, A = document.createElement("script");
|
|
933
|
+
A.type = "text/javascript", A.src = "https://webapi.amap.com/ui/" + f + "/main.js", A.onerror = function(y) {
|
|
893
934
|
s.AMapUI = o.failed, M("请求 AMapUI 失败");
|
|
894
|
-
},
|
|
935
|
+
}, A.onload = function() {
|
|
895
936
|
if (s.AMapUI = o.loaded, m.length)
|
|
896
937
|
window.AMapUI.loadUI(m, function() {
|
|
897
938
|
for (var y = 0, h = m.length; y < h; y++) {
|
|
898
|
-
var
|
|
899
|
-
window.AMapUI[
|
|
939
|
+
var T = m[y].split("/").slice(-1)[0];
|
|
940
|
+
window.AMapUI[T] = arguments[y];
|
|
900
941
|
}
|
|
901
|
-
for (
|
|
942
|
+
for (I(); u.AMapUI.length; )
|
|
902
943
|
u.AMapUI.splice(0, 1)[0]();
|
|
903
944
|
});
|
|
904
945
|
else
|
|
905
|
-
for (
|
|
946
|
+
for (I(); u.AMapUI.length; )
|
|
906
947
|
u.AMapUI.splice(0, 1)[0]();
|
|
907
|
-
},
|
|
948
|
+
}, j.appendChild(A);
|
|
908
949
|
} else
|
|
909
950
|
s.AMapUI === o.loaded ? c.version && c.version !== r.AMapUI.version ? M("不允许多个版本 AMapUI 混用") : m.length ? window.AMapUI.loadUI(m, function() {
|
|
910
951
|
for (var y = 0, h = m.length; y < h; y++) {
|
|
911
|
-
var
|
|
912
|
-
window.AMapUI[
|
|
952
|
+
var T = m[y].split("/").slice(-1)[0];
|
|
953
|
+
window.AMapUI[T] = arguments[y];
|
|
913
954
|
}
|
|
914
|
-
|
|
915
|
-
}) :
|
|
955
|
+
I();
|
|
956
|
+
}) : I() : c.version && c.version !== r.AMapUI.version ? M("不允许多个版本 AMapUI 混用") : u.AMapUI.push(function(y) {
|
|
916
957
|
y ? M(y) : m.length ? window.AMapUI.loadUI(m, function() {
|
|
917
|
-
for (var h = 0,
|
|
918
|
-
var
|
|
919
|
-
window.AMapUI[
|
|
958
|
+
for (var h = 0, T = m.length; h < T; h++) {
|
|
959
|
+
var k = m[h].split("/").slice(-1)[0];
|
|
960
|
+
window.AMapUI[k] = arguments[h];
|
|
920
961
|
}
|
|
921
|
-
|
|
922
|
-
}) :
|
|
962
|
+
I();
|
|
963
|
+
}) : I();
|
|
923
964
|
});
|
|
924
965
|
});
|
|
925
966
|
}
|
|
926
967
|
function a(c) {
|
|
927
|
-
return new Promise(function(
|
|
968
|
+
return new Promise(function(I, M) {
|
|
928
969
|
if (s.Loca === o.failed)
|
|
929
970
|
M("前次请求 Loca 失败");
|
|
930
971
|
else if (s.Loca === o.notload) {
|
|
931
972
|
s.Loca = o.loading, r.Loca.version = c.version || r.Loca.version;
|
|
932
|
-
var m = r.Loca.version, f = r.AMap.version.startsWith("2"),
|
|
933
|
-
if (f && !
|
|
973
|
+
var m = r.Loca.version, f = r.AMap.version.startsWith("2"), j = m.startsWith("2");
|
|
974
|
+
if (f && !j || !f && j)
|
|
934
975
|
M("JSAPI 与 Loca 版本不对应!!");
|
|
935
976
|
else {
|
|
936
|
-
f = r.key,
|
|
937
|
-
var
|
|
938
|
-
|
|
977
|
+
f = r.key, j = document.body || document.head;
|
|
978
|
+
var A = document.createElement("script");
|
|
979
|
+
A.type = "text/javascript", A.src = "https://webapi.amap.com/loca?v=" + m + "&key=" + f, A.onerror = function(y) {
|
|
939
980
|
s.Loca = o.failed, M("请求 AMapUI 失败");
|
|
940
|
-
},
|
|
941
|
-
for (s.Loca = o.loaded,
|
|
981
|
+
}, A.onload = function() {
|
|
982
|
+
for (s.Loca = o.loaded, I(); u.Loca.length; )
|
|
942
983
|
u.Loca.splice(0, 1)[0]();
|
|
943
|
-
},
|
|
984
|
+
}, j.appendChild(A);
|
|
944
985
|
}
|
|
945
986
|
} else
|
|
946
|
-
s.Loca === o.loaded ? c.version && c.version !== r.Loca.version ? M("不允许多个版本 Loca 混用") :
|
|
987
|
+
s.Loca === o.loaded ? c.version && c.version !== r.Loca.version ? M("不允许多个版本 Loca 混用") : I() : c.version && c.version !== r.Loca.version ? M("不允许多个版本 Loca 混用") : u.Loca.push(function(y) {
|
|
947
988
|
y ? M(y) : M();
|
|
948
989
|
});
|
|
949
990
|
});
|
|
@@ -954,26 +995,26 @@ var Pe = {}, ya = {
|
|
|
954
995
|
(function(c) {
|
|
955
996
|
c.notload = "notload", c.loading = "loading", c.loaded = "loaded", c.failed = "failed";
|
|
956
997
|
})(o || (o = {}));
|
|
957
|
-
var r = { key: "", AMap: { version: "1.4.15", plugins: [] }, AMapUI: { version: "1.1", plugins: [] }, Loca: { version: "1.3.2" } }, s = { AMap: o.notload, AMapUI: o.notload, Loca: o.notload }, u = { AMap: [], AMapUI: [], Loca: [] }, l = [],
|
|
998
|
+
var r = { key: "", AMap: { version: "1.4.15", plugins: [] }, AMapUI: { version: "1.1", plugins: [] }, Loca: { version: "1.3.2" } }, s = { AMap: o.notload, AMapUI: o.notload, Loca: o.notload }, u = { AMap: [], AMapUI: [], Loca: [] }, l = [], d = function(c) {
|
|
958
999
|
typeof c == "function" && (s.AMap === o.loaded ? c(window.AMap) : l.push(c));
|
|
959
1000
|
};
|
|
960
1001
|
return { load: function(c) {
|
|
961
|
-
return new Promise(function(
|
|
1002
|
+
return new Promise(function(I, M) {
|
|
962
1003
|
if (s.AMap == o.failed)
|
|
963
1004
|
M("");
|
|
964
1005
|
else if (s.AMap == o.notload) {
|
|
965
|
-
var m = c.key, f = c.version,
|
|
966
|
-
m ? (window.AMap && location.host !== "lbs.amap.com" && M("禁止多种API加载方式混用"), r.key = m, r.AMap.version = f || r.AMap.version, r.AMap.plugins =
|
|
1006
|
+
var m = c.key, f = c.version, j = c.plugins;
|
|
1007
|
+
m ? (window.AMap && location.host !== "lbs.amap.com" && M("禁止多种API加载方式混用"), r.key = m, r.AMap.version = f || r.AMap.version, r.AMap.plugins = j || r.AMap.plugins, s.AMap = o.loading, f = document.body || document.head, window.___onAPILoaded = function(y) {
|
|
967
1008
|
if (delete window.___onAPILoaded, y)
|
|
968
1009
|
s.AMap = o.failed, M(y);
|
|
969
1010
|
else
|
|
970
1011
|
for (s.AMap = o.loaded, n(c).then(function() {
|
|
971
|
-
|
|
1012
|
+
I(window.AMap);
|
|
972
1013
|
}).catch(M); l.length; )
|
|
973
1014
|
l.splice(0, 1)[0]();
|
|
974
|
-
},
|
|
1015
|
+
}, j = document.createElement("script"), j.type = "text/javascript", j.src = "https://webapi.amap.com/maps?callback=___onAPILoaded&v=" + r.AMap.version + "&key=" + m + "&plugin=" + r.AMap.plugins.join(","), j.onerror = function(y) {
|
|
975
1016
|
s.AMap = o.failed, M(y);
|
|
976
|
-
}, f.appendChild(
|
|
1017
|
+
}, f.appendChild(j)) : M("请填写key");
|
|
977
1018
|
} else if (s.AMap == o.loaded)
|
|
978
1019
|
if (c.key && c.key !== r.key)
|
|
979
1020
|
M("多个不一致的 key");
|
|
@@ -985,10 +1026,10 @@ var Pe = {}, ya = {
|
|
|
985
1026
|
r.AMap.plugins.indexOf(c.plugins[f]) == -1 && m.push(c.plugins[f]);
|
|
986
1027
|
m.length ? window.AMap.plugin(m, function() {
|
|
987
1028
|
n(c).then(function() {
|
|
988
|
-
|
|
1029
|
+
I(window.AMap);
|
|
989
1030
|
}).catch(M);
|
|
990
1031
|
}) : n(c).then(function() {
|
|
991
|
-
|
|
1032
|
+
I(window.AMap);
|
|
992
1033
|
}).catch(M);
|
|
993
1034
|
}
|
|
994
1035
|
else if (c.key && c.key !== r.key)
|
|
@@ -996,17 +1037,17 @@ var Pe = {}, ya = {
|
|
|
996
1037
|
else if (c.version && c.version !== r.AMap.version)
|
|
997
1038
|
M("不允许多个版本 JSAPI 混用");
|
|
998
1039
|
else {
|
|
999
|
-
var
|
|
1040
|
+
var A = [];
|
|
1000
1041
|
if (c.plugins)
|
|
1001
1042
|
for (f = 0; f < c.plugins.length; f += 1)
|
|
1002
|
-
r.AMap.plugins.indexOf(c.plugins[f]) == -1 &&
|
|
1003
|
-
|
|
1004
|
-
|
|
1043
|
+
r.AMap.plugins.indexOf(c.plugins[f]) == -1 && A.push(c.plugins[f]);
|
|
1044
|
+
d(function() {
|
|
1045
|
+
A.length ? window.AMap.plugin(A, function() {
|
|
1005
1046
|
n(c).then(function() {
|
|
1006
|
-
|
|
1047
|
+
I(window.AMap);
|
|
1007
1048
|
}).catch(M);
|
|
1008
1049
|
}) : n(c).then(function() {
|
|
1009
|
-
|
|
1050
|
+
I(window.AMap);
|
|
1010
1051
|
}).catch(M);
|
|
1011
1052
|
});
|
|
1012
1053
|
}
|
|
@@ -1019,48 +1060,48 @@ var Pe = {}, ya = {
|
|
|
1019
1060
|
}, u = { AMap: [], AMapUI: [], Loca: [] };
|
|
1020
1061
|
} };
|
|
1021
1062
|
});
|
|
1022
|
-
})(
|
|
1023
|
-
var
|
|
1024
|
-
if (
|
|
1063
|
+
})(Ca);
|
|
1064
|
+
var xa = function t(e, n) {
|
|
1065
|
+
if (e === n)
|
|
1025
1066
|
return !0;
|
|
1026
|
-
if (
|
|
1027
|
-
if (
|
|
1067
|
+
if (e && n && typeof e == "object" && typeof n == "object") {
|
|
1068
|
+
if (e.constructor !== n.constructor)
|
|
1028
1069
|
return !1;
|
|
1029
1070
|
var i, a, o;
|
|
1030
|
-
if (Array.isArray(
|
|
1031
|
-
if (i =
|
|
1071
|
+
if (Array.isArray(e)) {
|
|
1072
|
+
if (i = e.length, i != n.length)
|
|
1032
1073
|
return !1;
|
|
1033
1074
|
for (a = i; a-- !== 0; )
|
|
1034
|
-
if (!e
|
|
1075
|
+
if (!t(e[a], n[a]))
|
|
1035
1076
|
return !1;
|
|
1036
1077
|
return !0;
|
|
1037
1078
|
}
|
|
1038
|
-
if (
|
|
1039
|
-
return
|
|
1040
|
-
if (
|
|
1041
|
-
return
|
|
1042
|
-
if (
|
|
1043
|
-
return
|
|
1044
|
-
if (o = Object.keys(
|
|
1079
|
+
if (e.constructor === RegExp)
|
|
1080
|
+
return e.source === n.source && e.flags === n.flags;
|
|
1081
|
+
if (e.valueOf !== Object.prototype.valueOf)
|
|
1082
|
+
return e.valueOf() === n.valueOf();
|
|
1083
|
+
if (e.toString !== Object.prototype.toString)
|
|
1084
|
+
return e.toString() === n.toString();
|
|
1085
|
+
if (o = Object.keys(e), i = o.length, i !== Object.keys(n).length)
|
|
1045
1086
|
return !1;
|
|
1046
1087
|
for (a = i; a-- !== 0; )
|
|
1047
1088
|
if (!Object.prototype.hasOwnProperty.call(n, o[a]))
|
|
1048
1089
|
return !1;
|
|
1049
1090
|
for (a = i; a-- !== 0; ) {
|
|
1050
1091
|
var r = o[a];
|
|
1051
|
-
if (!e
|
|
1092
|
+
if (!t(e[r], n[r]))
|
|
1052
1093
|
return !1;
|
|
1053
1094
|
}
|
|
1054
1095
|
return !0;
|
|
1055
1096
|
}
|
|
1056
|
-
return
|
|
1097
|
+
return e !== e && n !== n;
|
|
1057
1098
|
};
|
|
1058
|
-
const
|
|
1059
|
-
var
|
|
1060
|
-
(function(
|
|
1061
|
-
|
|
1062
|
-
})(
|
|
1063
|
-
class
|
|
1099
|
+
const at = "__googleMapsScriptId";
|
|
1100
|
+
var Q;
|
|
1101
|
+
(function(t) {
|
|
1102
|
+
t[t.INITIALIZED = 0] = "INITIALIZED", t[t.LOADING = 1] = "LOADING", t[t.SUCCESS = 2] = "SUCCESS", t[t.FAILURE = 3] = "FAILURE";
|
|
1103
|
+
})(Q || (Q = {}));
|
|
1104
|
+
class V {
|
|
1064
1105
|
/**
|
|
1065
1106
|
* Creates an instance of Loader using [[LoaderOptions]]. No defaults are set
|
|
1066
1107
|
* using this library, instead the defaults are set by the Google Maps
|
|
@@ -1070,13 +1111,13 @@ class H {
|
|
|
1070
1111
|
* const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
|
|
1071
1112
|
* ```
|
|
1072
1113
|
*/
|
|
1073
|
-
constructor({ apiKey:
|
|
1074
|
-
if (this.CALLBACK = "__googleMapsCallback", this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey =
|
|
1075
|
-
if (!
|
|
1076
|
-
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(
|
|
1077
|
-
return
|
|
1114
|
+
constructor({ apiKey: e, authReferrerPolicy: n, channel: i, client: a, id: o = at, language: r, libraries: s = [], mapIds: u, nonce: l, region: d, retries: c = 3, url: I = "https://maps.googleapis.com/maps/api/js", version: M }) {
|
|
1115
|
+
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 || at, this.language = r, this.libraries = s, this.mapIds = u, this.nonce = l, this.region = d, this.retries = c, this.url = I, this.version = M, V.instance) {
|
|
1116
|
+
if (!xa(this.options, V.instance.options))
|
|
1117
|
+
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(V.instance.options)}`);
|
|
1118
|
+
return V.instance;
|
|
1078
1119
|
}
|
|
1079
|
-
|
|
1120
|
+
V.instance = this;
|
|
1080
1121
|
}
|
|
1081
1122
|
get options() {
|
|
1082
1123
|
return {
|
|
@@ -1095,7 +1136,7 @@ class H {
|
|
|
1095
1136
|
};
|
|
1096
1137
|
}
|
|
1097
1138
|
get status() {
|
|
1098
|
-
return this.errors.length ?
|
|
1139
|
+
return this.errors.length ? Q.FAILURE : this.done ? Q.SUCCESS : this.loading ? Q.LOADING : Q.INITIALIZED;
|
|
1099
1140
|
}
|
|
1100
1141
|
get failed() {
|
|
1101
1142
|
return this.done && !this.loading && this.errors.length >= this.retries + 1;
|
|
@@ -1106,12 +1147,12 @@ class H {
|
|
|
1106
1147
|
* @ignore
|
|
1107
1148
|
*/
|
|
1108
1149
|
createUrl() {
|
|
1109
|
-
let
|
|
1110
|
-
return
|
|
1150
|
+
let e = this.url;
|
|
1151
|
+
return e += `?callback=${this.CALLBACK}`, this.apiKey && (e += `&key=${this.apiKey}`), this.channel && (e += `&channel=${this.channel}`), this.client && (e += `&client=${this.client}`), this.libraries.length > 0 && (e += `&libraries=${this.libraries.join(",")}`), this.language && (e += `&language=${this.language}`), this.region && (e += `®ion=${this.region}`), this.version && (e += `&v=${this.version}`), this.mapIds && (e += `&map_ids=${this.mapIds.join(",")}`), this.authReferrerPolicy && (e += `&auth_referrer_policy=${this.authReferrerPolicy}`), e;
|
|
1111
1152
|
}
|
|
1112
1153
|
deleteScript() {
|
|
1113
|
-
const
|
|
1114
|
-
|
|
1154
|
+
const e = document.getElementById(this.id);
|
|
1155
|
+
e && e.remove();
|
|
1115
1156
|
}
|
|
1116
1157
|
/**
|
|
1117
1158
|
* Load the Google Maps JavaScript API script and return a Promise.
|
|
@@ -1125,17 +1166,17 @@ class H {
|
|
|
1125
1166
|
* @ignore
|
|
1126
1167
|
*/
|
|
1127
1168
|
loadPromise() {
|
|
1128
|
-
return new Promise((
|
|
1169
|
+
return new Promise((e, n) => {
|
|
1129
1170
|
this.loadCallback((i) => {
|
|
1130
|
-
i ? n(i.error) :
|
|
1171
|
+
i ? n(i.error) : e(window.google);
|
|
1131
1172
|
});
|
|
1132
1173
|
});
|
|
1133
1174
|
}
|
|
1134
1175
|
/**
|
|
1135
1176
|
* Load the Google Maps JavaScript API script with a callback.
|
|
1136
1177
|
*/
|
|
1137
|
-
loadCallback(
|
|
1138
|
-
this.callbacks.push(
|
|
1178
|
+
loadCallback(e) {
|
|
1179
|
+
this.callbacks.push(e), this.execute();
|
|
1139
1180
|
}
|
|
1140
1181
|
/**
|
|
1141
1182
|
* Set the script on document.
|
|
@@ -1145,8 +1186,8 @@ class H {
|
|
|
1145
1186
|
this.callback();
|
|
1146
1187
|
return;
|
|
1147
1188
|
}
|
|
1148
|
-
const
|
|
1149
|
-
n.id = this.id, n.type = "text/javascript", n.src =
|
|
1189
|
+
const e = this.createUrl(), n = document.createElement("script");
|
|
1190
|
+
n.id = this.id, n.type = "text/javascript", n.src = e, n.onerror = this.loadErrorCallback.bind(this), n.defer = !0, n.async = !0, this.nonce && (n.nonce = this.nonce), document.head.appendChild(n);
|
|
1150
1191
|
}
|
|
1151
1192
|
/**
|
|
1152
1193
|
* Reset the loader state.
|
|
@@ -1157,21 +1198,21 @@ class H {
|
|
|
1157
1198
|
resetIfRetryingFailed() {
|
|
1158
1199
|
this.failed && this.reset();
|
|
1159
1200
|
}
|
|
1160
|
-
loadErrorCallback(
|
|
1161
|
-
if (this.errors.push(
|
|
1201
|
+
loadErrorCallback(e) {
|
|
1202
|
+
if (this.errors.push(e), this.errors.length <= this.retries) {
|
|
1162
1203
|
const n = this.errors.length * Math.pow(2, this.errors.length);
|
|
1163
1204
|
console.log(`Failed to load Google Maps script, retrying in ${n} ms.`), setTimeout(() => {
|
|
1164
1205
|
this.deleteScript(), this.setScript();
|
|
1165
1206
|
}, n);
|
|
1166
1207
|
} else
|
|
1167
|
-
this.onerrorEvent =
|
|
1208
|
+
this.onerrorEvent = e, this.callback();
|
|
1168
1209
|
}
|
|
1169
1210
|
setCallback() {
|
|
1170
1211
|
window.__googleMapsCallback = this.callback.bind(this);
|
|
1171
1212
|
}
|
|
1172
1213
|
callback() {
|
|
1173
|
-
this.done = !0, this.loading = !1, this.callbacks.forEach((
|
|
1174
|
-
|
|
1214
|
+
this.done = !0, this.loading = !1, this.callbacks.forEach((e) => {
|
|
1215
|
+
e(this.onerrorEvent);
|
|
1175
1216
|
}), this.callbacks = [];
|
|
1176
1217
|
}
|
|
1177
1218
|
execute() {
|
|
@@ -1186,38 +1227,38 @@ class H {
|
|
|
1186
1227
|
}
|
|
1187
1228
|
}
|
|
1188
1229
|
}
|
|
1189
|
-
const
|
|
1230
|
+
const wa = [
|
|
1190
1231
|
"AMap.Geolocation",
|
|
1191
1232
|
"AMap.Geocoder",
|
|
1192
1233
|
"AMap.PlaceSearch",
|
|
1193
1234
|
"AMap.Driving",
|
|
1194
1235
|
"AMap.Walking"
|
|
1195
|
-
],
|
|
1196
|
-
var ie = /* @__PURE__ */ ((
|
|
1197
|
-
const
|
|
1198
|
-
const { onChange:
|
|
1236
|
+
], Pa = ["marker", "places", "geometry"];
|
|
1237
|
+
var ie = /* @__PURE__ */ ((t) => (t.LOADING = "LOADING", t.FAILURE = "FAILURE", t.SUCCESS = "SUCCESS", t))(ie || {});
|
|
1238
|
+
const ba = (t) => {
|
|
1239
|
+
const { onChange: e } = t;
|
|
1199
1240
|
let n, i;
|
|
1200
1241
|
const a = new Promise((s, u) => {
|
|
1201
1242
|
n = s, i = u;
|
|
1202
|
-
}), o =
|
|
1243
|
+
}), o = b(
|
|
1203
1244
|
"LOADING"
|
|
1204
1245
|
/* LOADING */
|
|
1205
1246
|
), r = N(() => {
|
|
1206
|
-
const { onChange: s, loading: u, fallback: l, apiKey:
|
|
1207
|
-
return { ...m, key:
|
|
1247
|
+
const { onChange: s, loading: u, fallback: l, apiKey: d, apiSecret: c, apiServiceHost: I, version: M, ...m } = t;
|
|
1248
|
+
return { ...m, key: d, version: M != null ? M : "2.0.5.16" };
|
|
1208
1249
|
});
|
|
1209
|
-
return
|
|
1250
|
+
return $(
|
|
1210
1251
|
() => r.value,
|
|
1211
1252
|
(s) => {
|
|
1212
1253
|
const u = (l) => {
|
|
1213
|
-
o.value = l, l === "SUCCESS" && n(), l === "FAILURE" && i(),
|
|
1254
|
+
o.value = l, l === "SUCCESS" && n(), l === "FAILURE" && i(), e == null || e(o.value);
|
|
1214
1255
|
};
|
|
1215
1256
|
u(
|
|
1216
1257
|
"LOADING"
|
|
1217
1258
|
/* LOADING */
|
|
1218
|
-
), window._AMapSecurityConfig =
|
|
1219
|
-
serviceHost:
|
|
1220
|
-
} : { securityJsCode:
|
|
1259
|
+
), window._AMapSecurityConfig = t.apiServiceHost ? {
|
|
1260
|
+
serviceHost: t.apiServiceHost
|
|
1261
|
+
} : { securityJsCode: t.apiSecret }, Pe.load(s).then(
|
|
1221
1262
|
() => u(
|
|
1222
1263
|
"SUCCESS"
|
|
1223
1264
|
/* SUCCESS */
|
|
@@ -1229,23 +1270,23 @@ const Sa = (e) => {
|
|
|
1229
1270
|
);
|
|
1230
1271
|
}
|
|
1231
1272
|
), { statusRef: o, readyPromise: a };
|
|
1232
|
-
},
|
|
1233
|
-
const { onChange:
|
|
1273
|
+
}, Ta = (t) => {
|
|
1274
|
+
const { onChange: e } = t;
|
|
1234
1275
|
let n, i;
|
|
1235
1276
|
const a = new Promise((s, u) => {
|
|
1236
1277
|
n = s, i = u;
|
|
1237
|
-
}), o =
|
|
1278
|
+
}), o = b(
|
|
1238
1279
|
"LOADING"
|
|
1239
1280
|
/* LOADING */
|
|
1240
1281
|
), r = N(() => {
|
|
1241
|
-
const { onChange: s, fallback: u, loading: l, ...
|
|
1242
|
-
return
|
|
1282
|
+
const { onChange: s, fallback: u, loading: l, ...d } = t;
|
|
1283
|
+
return d;
|
|
1243
1284
|
});
|
|
1244
|
-
return
|
|
1285
|
+
return $(
|
|
1245
1286
|
() => r.value,
|
|
1246
1287
|
(s) => {
|
|
1247
|
-
const u = new
|
|
1248
|
-
o.value =
|
|
1288
|
+
const u = new V(s), l = (d) => {
|
|
1289
|
+
o.value = d, d === "SUCCESS" && n(), d === "FAILURE" && i(), e == null || e(o.value);
|
|
1249
1290
|
};
|
|
1250
1291
|
l(
|
|
1251
1292
|
"LOADING"
|
|
@@ -1262,55 +1303,55 @@ const Sa = (e) => {
|
|
|
1262
1303
|
);
|
|
1263
1304
|
}
|
|
1264
1305
|
), { statusRef: o, readyPromise: a };
|
|
1265
|
-
},
|
|
1266
|
-
const { gmapKey:
|
|
1267
|
-
return o === "gmap" ?
|
|
1268
|
-
apiKey:
|
|
1306
|
+
}, za = (t) => {
|
|
1307
|
+
const { gmapKey: e, amapKey: n, amapSecret: i, amapServiceHost: a, supplier: o, language: r, onChange: s } = t;
|
|
1308
|
+
return o === "gmap" ? Ta({
|
|
1309
|
+
apiKey: e,
|
|
1269
1310
|
language: r,
|
|
1270
1311
|
version: "beta",
|
|
1271
|
-
libraries:
|
|
1312
|
+
libraries: Pa,
|
|
1272
1313
|
onChange: s
|
|
1273
|
-
}) :
|
|
1314
|
+
}) : ba({
|
|
1274
1315
|
apiKey: n,
|
|
1275
1316
|
apiSecret: i,
|
|
1276
1317
|
apiServiceHost: a,
|
|
1277
|
-
plugins:
|
|
1318
|
+
plugins: wa,
|
|
1278
1319
|
onChange: s
|
|
1279
1320
|
});
|
|
1280
1321
|
};
|
|
1281
|
-
var
|
|
1282
|
-
const
|
|
1322
|
+
var Ra = "_1d8ur7t0";
|
|
1323
|
+
const Ea = p(function(e, { slots: n, emit: i }) {
|
|
1283
1324
|
const {
|
|
1284
1325
|
onDragStart: a,
|
|
1285
1326
|
onDragEnd: o,
|
|
1286
1327
|
mapRef: r,
|
|
1287
1328
|
vectorMapForeign: s = "style_zh_cn",
|
|
1288
1329
|
...u
|
|
1289
|
-
} =
|
|
1290
|
-
dragEnable: !!
|
|
1291
|
-
zoomEnable: !!
|
|
1292
|
-
jogEnable: !!
|
|
1293
|
-
pitchEnable: !!
|
|
1294
|
-
rotateEnable: !!
|
|
1295
|
-
animateEnable: !!
|
|
1296
|
-
keyboardEnable: !!
|
|
1297
|
-
})),
|
|
1298
|
-
return
|
|
1299
|
-
if (c.value || !
|
|
1330
|
+
} = e, l = N(() => ({
|
|
1331
|
+
dragEnable: !!e.dragEnable,
|
|
1332
|
+
zoomEnable: !!e.zoomEnable,
|
|
1333
|
+
jogEnable: !!e.jogEnable,
|
|
1334
|
+
pitchEnable: !!e.pitchEnable,
|
|
1335
|
+
rotateEnable: !!e.rotateEnable,
|
|
1336
|
+
animateEnable: !!e.animateEnable,
|
|
1337
|
+
keyboardEnable: !!e.keyboardEnable
|
|
1338
|
+
})), d = b(), c = b();
|
|
1339
|
+
return ca(c), B(() => {
|
|
1340
|
+
if (c.value || !d.value)
|
|
1300
1341
|
return;
|
|
1301
|
-
const
|
|
1342
|
+
const I = new AMap.Map(d.value, {
|
|
1302
1343
|
...u,
|
|
1303
1344
|
vectorMapForeign: s,
|
|
1304
1345
|
mapStyle: "amap://styles/95498a904992a4c0b866a3e4d7729682"
|
|
1305
1346
|
});
|
|
1306
|
-
c.value =
|
|
1347
|
+
c.value = I, r == null || r(I);
|
|
1307
1348
|
}), re(
|
|
1308
1349
|
() => l.value,
|
|
1309
|
-
(
|
|
1350
|
+
(I) => {
|
|
1310
1351
|
var M;
|
|
1311
|
-
(M = c.value) == null || M.setStatus(
|
|
1352
|
+
(M = c.value) == null || M.setStatus(I);
|
|
1312
1353
|
}
|
|
1313
|
-
),
|
|
1354
|
+
), ke(c, e, [
|
|
1314
1355
|
{ name: "center", defaultValue: [0, 0] },
|
|
1315
1356
|
{ name: "zooms", defaultValue: [0, 0] },
|
|
1316
1357
|
{ name: "zoom", defaultValue: 0 },
|
|
@@ -1323,27 +1364,29 @@ const Ca = v(function(t, { slots: n, emit: i }) {
|
|
|
1323
1364
|
{ name: "pitch", defaultValue: 0 },
|
|
1324
1365
|
{ name: "mask", defaultValue: [] },
|
|
1325
1366
|
{ name: "labelRejectMask", defaultValue: !1 }
|
|
1326
|
-
]), ne(c,
|
|
1327
|
-
var
|
|
1328
|
-
return
|
|
1367
|
+
]), ne(c, e, i, ["onDragStart", "onDragEnd"]), () => {
|
|
1368
|
+
var I;
|
|
1369
|
+
return g("div", { ref: d, class: Ra }, (I = n.default) == null ? void 0 : I.call(n));
|
|
1329
1370
|
};
|
|
1330
1371
|
});
|
|
1331
1372
|
let se = "user";
|
|
1332
|
-
const
|
|
1373
|
+
const Za = () => se, qt = () => ({ executeMapApi: (e) => {
|
|
1333
1374
|
se = "api";
|
|
1334
1375
|
try {
|
|
1335
|
-
|
|
1376
|
+
e(), setTimeout(() => {
|
|
1336
1377
|
se = "user";
|
|
1337
1378
|
}, 100);
|
|
1338
1379
|
} catch (n) {
|
|
1339
1380
|
throw se = "user", n;
|
|
1340
1381
|
}
|
|
1341
|
-
} })
|
|
1342
|
-
|
|
1343
|
-
|
|
1382
|
+
} });
|
|
1383
|
+
var Oa = "_7anfuo0";
|
|
1384
|
+
const ka = p(function(e, { slots: n, emit: i }) {
|
|
1385
|
+
const a = e.mapRef, o = N(() => {
|
|
1386
|
+
const { mapRef: c, onDragStart: I, onDragEnd: M, ...m } = e;
|
|
1344
1387
|
return m;
|
|
1345
|
-
}), r = o.value, s =
|
|
1346
|
-
return
|
|
1388
|
+
}), r = o.value, s = b(), u = b(), { executeMapApi: l } = qt(), d = (c) => i(c, { target: u.value });
|
|
1389
|
+
return ua(u), B(() => {
|
|
1347
1390
|
if (u.value || !s.value)
|
|
1348
1391
|
return;
|
|
1349
1392
|
let c;
|
|
@@ -1354,34 +1397,34 @@ const wa = () => se, Kt = () => ({ executeMapApi: (t) => {
|
|
|
1354
1397
|
() => o.value,
|
|
1355
1398
|
(c) => {
|
|
1356
1399
|
l(() => {
|
|
1357
|
-
var
|
|
1358
|
-
return (
|
|
1400
|
+
var I;
|
|
1401
|
+
return (I = u.value) == null ? void 0 : I.setOptions({ ...c });
|
|
1359
1402
|
});
|
|
1360
1403
|
}
|
|
1361
|
-
),
|
|
1404
|
+
), X(u, e, d, ["onDragStart", "onDragEnd"]), () => {
|
|
1362
1405
|
var c;
|
|
1363
|
-
return
|
|
1406
|
+
return g("div", { ref: s, class: Oa }, (c = n.default) == null ? void 0 : c.call(n));
|
|
1364
1407
|
};
|
|
1365
|
-
}),
|
|
1408
|
+
}), Yo = ae(function(e, {
|
|
1366
1409
|
slots: n
|
|
1367
1410
|
}) {
|
|
1368
1411
|
const {
|
|
1369
1412
|
statusRef: i,
|
|
1370
1413
|
readyPromise: a
|
|
1371
|
-
} =
|
|
1414
|
+
} = za(e), o = new Proxy(e, {
|
|
1372
1415
|
get(r, s, u) {
|
|
1373
1416
|
return s === "status" ? i.value : s === "readyPromise" ? a : Reflect.get(r, s, u);
|
|
1374
1417
|
}
|
|
1375
1418
|
});
|
|
1376
|
-
return
|
|
1419
|
+
return sa(o), () => {
|
|
1377
1420
|
var r;
|
|
1378
|
-
return
|
|
1421
|
+
return g("div", [(r = n.default) == null ? void 0 : r.call(n)]);
|
|
1379
1422
|
};
|
|
1380
|
-
}).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier", "language"]), Le = ae(function(
|
|
1423
|
+
}).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier", "language"]), Le = ae(function(e, {
|
|
1381
1424
|
slots: n,
|
|
1382
1425
|
emit: i
|
|
1383
1426
|
}) {
|
|
1384
|
-
S(
|
|
1427
|
+
S(e, "HeycarMap");
|
|
1385
1428
|
const a = L(), o = ({
|
|
1386
1429
|
target: s
|
|
1387
1430
|
}) => {
|
|
@@ -1400,29 +1443,29 @@ const wa = () => se, Kt = () => ({ executeMapApi: (t) => {
|
|
|
1400
1443
|
i("dragEnd", [u, l]);
|
|
1401
1444
|
};
|
|
1402
1445
|
return () => {
|
|
1403
|
-
var f,
|
|
1446
|
+
var f, j, A;
|
|
1404
1447
|
const {
|
|
1405
1448
|
supplier: s,
|
|
1406
1449
|
gmapId: u,
|
|
1407
1450
|
language: l = "zh",
|
|
1408
|
-
status:
|
|
1451
|
+
status: d
|
|
1409
1452
|
} = a, {
|
|
1410
1453
|
mapRef: c,
|
|
1411
|
-
center:
|
|
1454
|
+
center: I,
|
|
1412
1455
|
zoom: M
|
|
1413
|
-
} =
|
|
1414
|
-
if (
|
|
1456
|
+
} = e;
|
|
1457
|
+
if (d === ie.LOADING)
|
|
1415
1458
|
return (f = n.loading) == null ? void 0 : f.call(n);
|
|
1416
|
-
if (
|
|
1417
|
-
return (
|
|
1418
|
-
const m = (
|
|
1459
|
+
if (d === ie.FAILURE)
|
|
1460
|
+
return (j = n.fallback) == null ? void 0 : j.call(n);
|
|
1461
|
+
const m = (A = n.default) == null ? void 0 : A.call(n);
|
|
1419
1462
|
switch (s) {
|
|
1420
1463
|
case "gmap":
|
|
1421
|
-
return
|
|
1464
|
+
return g(ka, {
|
|
1422
1465
|
attrs: {
|
|
1423
1466
|
mapRef: c,
|
|
1424
1467
|
mapId: u,
|
|
1425
|
-
center:
|
|
1468
|
+
center: I ? w(I) : void 0,
|
|
1426
1469
|
zoom: M
|
|
1427
1470
|
},
|
|
1428
1471
|
on: {
|
|
@@ -1430,11 +1473,11 @@ const wa = () => se, Kt = () => ({ executeMapApi: (t) => {
|
|
|
1430
1473
|
}
|
|
1431
1474
|
}, [m]);
|
|
1432
1475
|
default:
|
|
1433
|
-
return
|
|
1476
|
+
return g(Ea, {
|
|
1434
1477
|
attrs: {
|
|
1435
1478
|
mapRef: c,
|
|
1436
|
-
vectorMapForeign:
|
|
1437
|
-
center:
|
|
1479
|
+
vectorMapForeign: Aa(l),
|
|
1480
|
+
center: I,
|
|
1438
1481
|
zoom: M
|
|
1439
1482
|
},
|
|
1440
1483
|
on: {
|
|
@@ -1443,24 +1486,24 @@ const wa = () => se, Kt = () => ({ executeMapApi: (t) => {
|
|
|
1443
1486
|
}, [m]);
|
|
1444
1487
|
}
|
|
1445
1488
|
};
|
|
1446
|
-
}).props(["center", "fallback", "loading", "mapRef", "zoom"]), te =
|
|
1447
|
-
const n =
|
|
1489
|
+
}).props(["center", "fallback", "loading", "mapRef", "zoom"]), te = p(function(e) {
|
|
1490
|
+
const n = b(), i = ye();
|
|
1448
1491
|
return ve(() => {
|
|
1449
|
-
n.value = new AMap.Polyline({ ...
|
|
1492
|
+
n.value = new AMap.Polyline({ ...e });
|
|
1450
1493
|
}), pe(() => {
|
|
1451
1494
|
var a;
|
|
1452
1495
|
(a = n.value) == null || a.setMap(null);
|
|
1453
|
-
}),
|
|
1496
|
+
}), B(() => {
|
|
1454
1497
|
var o;
|
|
1455
1498
|
const a = i == null ? void 0 : i.value;
|
|
1456
1499
|
a && ((o = n.value) == null || o.setMap(a));
|
|
1457
|
-
}),
|
|
1500
|
+
}), ke(n, e, [
|
|
1458
1501
|
{ name: "path", defaultValue: [[0, 0]] },
|
|
1459
1502
|
{ name: "extData", defaultValue: void 0 },
|
|
1460
1503
|
{ name: "draggable", defaultValue: !1 }
|
|
1461
1504
|
]), re(
|
|
1462
1505
|
() => {
|
|
1463
|
-
const { path: a, extData: o, draggable: r, ...s } =
|
|
1506
|
+
const { path: a, extData: o, draggable: r, ...s } = e;
|
|
1464
1507
|
return s;
|
|
1465
1508
|
},
|
|
1466
1509
|
(a) => {
|
|
@@ -1468,60 +1511,60 @@ const wa = () => se, Kt = () => ({ executeMapApi: (t) => {
|
|
|
1468
1511
|
(o = n.value) == null || o.setOptions({ ...a });
|
|
1469
1512
|
}
|
|
1470
1513
|
), () => null;
|
|
1471
|
-
}), ce =
|
|
1472
|
-
const n =
|
|
1514
|
+
}), ce = p(function(e) {
|
|
1515
|
+
const n = b(), i = je();
|
|
1473
1516
|
return ve(() => {
|
|
1474
|
-
n.value = new google.maps.Polyline({ ...
|
|
1517
|
+
n.value = new google.maps.Polyline({ ...e });
|
|
1475
1518
|
}), pe(() => {
|
|
1476
1519
|
var a;
|
|
1477
1520
|
(a = n.value) == null || a.setMap(null);
|
|
1478
|
-
}),
|
|
1521
|
+
}), B(() => {
|
|
1479
1522
|
var o;
|
|
1480
1523
|
const a = i == null ? void 0 : i.value;
|
|
1481
1524
|
a && ((o = n.value) == null || o.setMap(a));
|
|
1482
1525
|
}), re(
|
|
1483
|
-
() => ({ ...
|
|
1526
|
+
() => ({ ...e }),
|
|
1484
1527
|
(a) => {
|
|
1485
1528
|
var o;
|
|
1486
1529
|
(o = n.value) == null || o.setOptions({ ...a });
|
|
1487
1530
|
}
|
|
1488
1531
|
), () => null;
|
|
1489
|
-
}),
|
|
1490
|
-
return S(
|
|
1491
|
-
const n = window.innerWidth * 0.01, i = 2.5 * n, a = 0.35 * n, o = 0.6 * n, r = 1 * n, s = 0.75 * n, u =
|
|
1492
|
-
return
|
|
1532
|
+
}), Ga = p(function(e) {
|
|
1533
|
+
return S(e, "ADrivingLine"), () => {
|
|
1534
|
+
const n = window.innerWidth * 0.01, i = 2.5 * n, a = 0.35 * n, o = 0.6 * n, r = 1 * n, s = 0.75 * n, u = e.done ? "#96B2CA" : "#487BF4", l = e.done ? "#7693AF" : "#4175F1", d = e.done ? "#7693AF" : "#6C95F5";
|
|
1535
|
+
return g("div", [g(te, {
|
|
1493
1536
|
attrs: {
|
|
1494
|
-
path:
|
|
1537
|
+
path: e.path,
|
|
1495
1538
|
strokeWeight: i + 2 * a + 2 * r,
|
|
1496
1539
|
strokeOpacity: 1,
|
|
1497
1540
|
strokeColor: l,
|
|
1498
1541
|
lineJoin: "round",
|
|
1499
1542
|
lineCap: "round"
|
|
1500
1543
|
}
|
|
1501
|
-
}),
|
|
1544
|
+
}), g(te, {
|
|
1502
1545
|
attrs: {
|
|
1503
|
-
path:
|
|
1546
|
+
path: e.path,
|
|
1504
1547
|
strokeWeight: i + 2 * a,
|
|
1505
1548
|
strokeOpacity: 1,
|
|
1506
|
-
strokeColor:
|
|
1549
|
+
strokeColor: d,
|
|
1507
1550
|
lineJoin: "round",
|
|
1508
1551
|
lineCap: "round",
|
|
1509
1552
|
strokeStyle: "dashed",
|
|
1510
1553
|
strokeDasharray: [s, s * 0.5]
|
|
1511
1554
|
}
|
|
1512
|
-
}),
|
|
1555
|
+
}), g(te, {
|
|
1513
1556
|
attrs: {
|
|
1514
|
-
path:
|
|
1557
|
+
path: e.path,
|
|
1515
1558
|
strokeWeight: i,
|
|
1516
1559
|
strokeOpacity: 1,
|
|
1517
1560
|
strokeColor: u,
|
|
1518
1561
|
lineJoin: "round",
|
|
1519
1562
|
lineCap: "round"
|
|
1520
1563
|
}
|
|
1521
|
-
}),
|
|
1564
|
+
}), g(te, {
|
|
1522
1565
|
attrs: {
|
|
1523
1566
|
showDir: !0,
|
|
1524
|
-
path:
|
|
1567
|
+
path: e.path,
|
|
1525
1568
|
strokeWeight: i + 2 * o,
|
|
1526
1569
|
strokeOpacity: 1,
|
|
1527
1570
|
strokeColor: "transparent",
|
|
@@ -1530,19 +1573,19 @@ const wa = () => se, Kt = () => ({ executeMapApi: (t) => {
|
|
|
1530
1573
|
}
|
|
1531
1574
|
})]);
|
|
1532
1575
|
};
|
|
1533
|
-
}),
|
|
1534
|
-
S(
|
|
1535
|
-
const n = N(() =>
|
|
1576
|
+
}), Wa = p(function(e) {
|
|
1577
|
+
S(e, "ADrivingLine");
|
|
1578
|
+
const n = N(() => e.path.map(w));
|
|
1536
1579
|
return () => {
|
|
1537
|
-
const i = window.innerWidth * 0.01, a = 10 * i, o = 2.5 * i, r = 0.35 * i, s = 0.75 * i, u = 1 * i, l =
|
|
1538
|
-
return
|
|
1580
|
+
const i = window.innerWidth * 0.01, a = 10 * i, o = 2.5 * i, r = 0.35 * i, s = 0.75 * i, u = 1 * i, l = e.done ? "#96B2CA" : "#487BF4", d = e.done ? "#7693AF" : "#4175F1", c = e.done ? "#7693AF" : "#6C95F5";
|
|
1581
|
+
return g("div", [g(ce, {
|
|
1539
1582
|
attrs: {
|
|
1540
1583
|
path: n.value,
|
|
1541
1584
|
strokeWeight: o + 2 * r + 2 * u,
|
|
1542
1585
|
strokeOpacity: 1,
|
|
1543
|
-
strokeColor:
|
|
1586
|
+
strokeColor: d
|
|
1544
1587
|
}
|
|
1545
|
-
}),
|
|
1588
|
+
}), g(ce, {
|
|
1546
1589
|
attrs: {
|
|
1547
1590
|
path: n.value,
|
|
1548
1591
|
icons: [{
|
|
@@ -1557,7 +1600,7 @@ const wa = () => se, Kt = () => ({ executeMapApi: (t) => {
|
|
|
1557
1600
|
offset: `${o / 2}px`
|
|
1558
1601
|
}]
|
|
1559
1602
|
}
|
|
1560
|
-
}),
|
|
1603
|
+
}), g(ce, {
|
|
1561
1604
|
attrs: {
|
|
1562
1605
|
path: n.value,
|
|
1563
1606
|
strokeWeight: o,
|
|
@@ -1576,15 +1619,15 @@ const wa = () => se, Kt = () => ({ executeMapApi: (t) => {
|
|
|
1576
1619
|
}
|
|
1577
1620
|
})]);
|
|
1578
1621
|
};
|
|
1579
|
-
}), Se =
|
|
1622
|
+
}), Se = p(function(e) {
|
|
1580
1623
|
const n = L();
|
|
1581
|
-
return () =>
|
|
1582
|
-
attrs:
|
|
1624
|
+
return () => e.path.length ? Z(n.supplier === "gmap" ? Wa : Ga, {
|
|
1625
|
+
attrs: e
|
|
1583
1626
|
}) : null;
|
|
1584
|
-
}),
|
|
1585
|
-
const
|
|
1586
|
-
return
|
|
1587
|
-
() => ({ ...
|
|
1627
|
+
}), en = (t) => {
|
|
1628
|
+
const e = x({ path: [], distance: 0, duration: 0 }), n = new AMap.Driving({});
|
|
1629
|
+
return $(
|
|
1630
|
+
() => ({ ...t }),
|
|
1588
1631
|
({ from: i, to: a }) => {
|
|
1589
1632
|
n.search(
|
|
1590
1633
|
AMap.LngLat.from(i),
|
|
@@ -1595,15 +1638,15 @@ const wa = () => se, Kt = () => ({ executeMapApi: (t) => {
|
|
|
1595
1638
|
case "complete": {
|
|
1596
1639
|
let s = [];
|
|
1597
1640
|
const l = r.routes[0];
|
|
1598
|
-
for (const
|
|
1599
|
-
const
|
|
1600
|
-
s = s.concat(
|
|
1641
|
+
for (const d of l.steps) {
|
|
1642
|
+
const I = d.path.map(({ lng: M, lat: m }) => [M, m]);
|
|
1643
|
+
s = s.concat(I);
|
|
1601
1644
|
}
|
|
1602
|
-
|
|
1645
|
+
e.path = s, e.distance = l.distance, e.duration = l.time;
|
|
1603
1646
|
return;
|
|
1604
1647
|
}
|
|
1605
1648
|
case "no_data":
|
|
1606
|
-
|
|
1649
|
+
e.path = [], e.distance = 0, e.duration = 0;
|
|
1607
1650
|
return;
|
|
1608
1651
|
default:
|
|
1609
1652
|
throw r;
|
|
@@ -1611,11 +1654,11 @@ const wa = () => se, Kt = () => ({ executeMapApi: (t) => {
|
|
|
1611
1654
|
}
|
|
1612
1655
|
);
|
|
1613
1656
|
}
|
|
1614
|
-
),
|
|
1615
|
-
},
|
|
1616
|
-
const
|
|
1617
|
-
return
|
|
1618
|
-
() => ({ ...
|
|
1657
|
+
), e;
|
|
1658
|
+
}, tn = (t) => {
|
|
1659
|
+
const e = x({ path: [], distance: 0, duration: 0 }), n = new google.maps.DirectionsService();
|
|
1660
|
+
return $(
|
|
1661
|
+
() => ({ ...t }),
|
|
1619
1662
|
({ from: i, to: a }) => {
|
|
1620
1663
|
n.route(
|
|
1621
1664
|
{
|
|
@@ -1624,23 +1667,23 @@ const wa = () => se, Kt = () => ({ executeMapApi: (t) => {
|
|
|
1624
1667
|
travelMode: google.maps.TravelMode.DRIVING
|
|
1625
1668
|
},
|
|
1626
1669
|
(o, r) => {
|
|
1627
|
-
var s, u, l,
|
|
1670
|
+
var s, u, l, d;
|
|
1628
1671
|
switch (r) {
|
|
1629
1672
|
case google.maps.DirectionsStatus.OK: {
|
|
1630
|
-
let c = [],
|
|
1631
|
-
const m = o.routes[0], f = m.overview_path.map((
|
|
1632
|
-
|
|
1633
|
-
|
|
1673
|
+
let c = [], I = 0, M = 0;
|
|
1674
|
+
const m = o.routes[0], f = m.overview_path.map((j) => [
|
|
1675
|
+
j.lng(),
|
|
1676
|
+
j.lat()
|
|
1634
1677
|
]);
|
|
1635
1678
|
c = c.concat(f);
|
|
1636
|
-
for (const
|
|
1637
|
-
|
|
1638
|
-
|
|
1679
|
+
for (const j of m.legs)
|
|
1680
|
+
I += (u = (s = j.distance) == null ? void 0 : s.value) != null ? u : 0, M += (d = (l = j.duration) == null ? void 0 : l.value) != null ? d : 0;
|
|
1681
|
+
e.path = c, e.distance = I, e.duration = M;
|
|
1639
1682
|
return;
|
|
1640
1683
|
}
|
|
1641
1684
|
case google.maps.DirectionsStatus.ZERO_RESULTS:
|
|
1642
1685
|
case google.maps.DirectionsStatus.NOT_FOUND:
|
|
1643
|
-
|
|
1686
|
+
e.path = [], e.distance = 0, e.duration = 0;
|
|
1644
1687
|
return;
|
|
1645
1688
|
default:
|
|
1646
1689
|
throw new Error(r);
|
|
@@ -1648,88 +1691,88 @@ const wa = () => se, Kt = () => ({ executeMapApi: (t) => {
|
|
|
1648
1691
|
}
|
|
1649
1692
|
);
|
|
1650
1693
|
}
|
|
1651
|
-
),
|
|
1652
|
-
},
|
|
1653
|
-
const { supplier:
|
|
1654
|
-
return
|
|
1655
|
-
},
|
|
1694
|
+
), e;
|
|
1695
|
+
}, Vo = (t) => {
|
|
1696
|
+
const { supplier: e } = L();
|
|
1697
|
+
return e === "gmap" ? tn(t) : en(t);
|
|
1698
|
+
}, Ua = (t, e, n) => {
|
|
1656
1699
|
if (!n)
|
|
1657
1700
|
return 0;
|
|
1658
|
-
const { x: i, y: a } = n.lngLatToContainer(
|
|
1701
|
+
const { x: i, y: a } = n.lngLatToContainer(t), { x: o, y: r } = n.lngLatToContainer(e), s = Math.atan2(a - r, o - i);
|
|
1659
1702
|
return (Math.PI / 2 - s) / Math.PI * 180;
|
|
1660
|
-
},
|
|
1661
|
-
const { map:
|
|
1662
|
-
if (!(!i || !a || !
|
|
1663
|
-
return
|
|
1664
|
-
}),
|
|
1665
|
-
const { path:
|
|
1703
|
+
}, nn = (t) => N(() => {
|
|
1704
|
+
const { map: e, path: n } = t, [i, a] = n;
|
|
1705
|
+
if (!(!i || !a || !e))
|
|
1706
|
+
return Ua(i, a, e);
|
|
1707
|
+
}), an = (t) => N(() => {
|
|
1708
|
+
const { path: e } = t, [n, i] = e;
|
|
1666
1709
|
if (!(!n || !i))
|
|
1667
|
-
return google.maps.geometry.spherical.computeHeading(
|
|
1668
|
-
}),
|
|
1669
|
-
const { supplier:
|
|
1670
|
-
return
|
|
1671
|
-
},
|
|
1710
|
+
return google.maps.geometry.spherical.computeHeading(w(n), w(i));
|
|
1711
|
+
}), Ho = (t) => {
|
|
1712
|
+
const { supplier: e } = L();
|
|
1713
|
+
return e === "gmap" ? an(t) : nn(t);
|
|
1714
|
+
}, Ba = p(function(e, {
|
|
1672
1715
|
slots: n
|
|
1673
1716
|
}) {
|
|
1674
|
-
S(
|
|
1717
|
+
S(e, "ADrivingRoute");
|
|
1675
1718
|
const i = ye(), {
|
|
1676
1719
|
path: a,
|
|
1677
1720
|
distance: o,
|
|
1678
1721
|
duration: r
|
|
1679
|
-
} =
|
|
1722
|
+
} = gt(en(e)), s = nn(x({
|
|
1680
1723
|
path: a,
|
|
1681
1724
|
map: i
|
|
1682
1725
|
}));
|
|
1683
1726
|
return () => {
|
|
1684
1727
|
var u;
|
|
1685
|
-
return
|
|
1728
|
+
return g("div", [(u = n.render) == null ? void 0 : u.call(n, x({
|
|
1686
1729
|
path: a,
|
|
1687
1730
|
angle: s,
|
|
1688
1731
|
distance: o,
|
|
1689
1732
|
duration: r
|
|
1690
1733
|
}))]);
|
|
1691
1734
|
};
|
|
1692
|
-
}),
|
|
1735
|
+
}), Ya = p(function(e, {
|
|
1693
1736
|
slots: n
|
|
1694
1737
|
}) {
|
|
1695
|
-
S(
|
|
1738
|
+
S(e, "GDrivingRoute");
|
|
1696
1739
|
const i = je(), {
|
|
1697
1740
|
path: a,
|
|
1698
1741
|
distance: o,
|
|
1699
1742
|
duration: r
|
|
1700
|
-
} =
|
|
1743
|
+
} = gt(tn(e)), s = an(x({
|
|
1701
1744
|
path: a,
|
|
1702
1745
|
map: i
|
|
1703
1746
|
}));
|
|
1704
1747
|
return () => {
|
|
1705
1748
|
var u;
|
|
1706
|
-
return
|
|
1749
|
+
return g("div", [(u = n.render) == null ? void 0 : u.call(n, x({
|
|
1707
1750
|
path: a,
|
|
1708
1751
|
angle: s,
|
|
1709
1752
|
distance: o,
|
|
1710
1753
|
duration: r
|
|
1711
1754
|
}))]);
|
|
1712
1755
|
};
|
|
1713
|
-
}), Ne =
|
|
1756
|
+
}), Ne = p(function(e, {
|
|
1714
1757
|
slots: n
|
|
1715
1758
|
}) {
|
|
1716
1759
|
const {
|
|
1717
1760
|
supplier: i
|
|
1718
1761
|
} = L();
|
|
1719
|
-
return () => Z(i === "gmap" ?
|
|
1720
|
-
attrs:
|
|
1762
|
+
return () => Z(i === "gmap" ? Ya : Ba, {
|
|
1763
|
+
attrs: e,
|
|
1721
1764
|
scopedSlots: n
|
|
1722
1765
|
});
|
|
1723
|
-
}),
|
|
1724
|
-
const { mapRef:
|
|
1766
|
+
}), Va = 20, Ha = (t) => {
|
|
1767
|
+
const { mapRef: e, autoFitTimeout: n } = t, i = /* @__PURE__ */ new Set();
|
|
1725
1768
|
let a;
|
|
1726
1769
|
const o = () => {
|
|
1727
1770
|
var m;
|
|
1728
|
-
const u =
|
|
1771
|
+
const u = e.value;
|
|
1729
1772
|
if (!u)
|
|
1730
1773
|
return;
|
|
1731
|
-
const l = window.innerWidth / 100, [
|
|
1732
|
-
console.log([...i]), u.setFitView([...i], !1, [
|
|
1774
|
+
const l = window.innerWidth / 100, [d, c, I, M] = (m = t.padding) != null ? m : [0, 0, 0, 0];
|
|
1775
|
+
console.log([...i]), u.setFitView([...i], !1, [d * l, I * l, M * l, c * l]);
|
|
1733
1776
|
}, r = {
|
|
1734
1777
|
add: (u) => {
|
|
1735
1778
|
i.add(u);
|
|
@@ -1740,7 +1783,7 @@ const wa = () => se, Kt = () => ({ executeMapApi: (t) => {
|
|
|
1740
1783
|
setFitView: o
|
|
1741
1784
|
};
|
|
1742
1785
|
return ne(
|
|
1743
|
-
|
|
1786
|
+
e,
|
|
1744
1787
|
{},
|
|
1745
1788
|
() => {
|
|
1746
1789
|
n && (a && clearTimeout(a), a = setTimeout(() => {
|
|
@@ -1750,375 +1793,375 @@ const wa = () => se, Kt = () => ({ executeMapApi: (t) => {
|
|
|
1750
1793
|
["onDragEnd"]
|
|
1751
1794
|
), { registerFitVeiw: r, setFitView: o };
|
|
1752
1795
|
};
|
|
1753
|
-
class
|
|
1796
|
+
class Qa extends Set {
|
|
1754
1797
|
getBound() {
|
|
1755
|
-
const
|
|
1798
|
+
const e = new google.maps.LatLngBounds();
|
|
1756
1799
|
for (const n of this.values()) {
|
|
1757
1800
|
const i = n instanceof google.maps.Marker ? n.getPosition() : n.position;
|
|
1758
|
-
i &&
|
|
1801
|
+
i && e.extend(i);
|
|
1759
1802
|
}
|
|
1760
|
-
return
|
|
1803
|
+
return e;
|
|
1761
1804
|
}
|
|
1762
1805
|
}
|
|
1763
|
-
const
|
|
1764
|
-
const { mapRef:
|
|
1806
|
+
const Ja = (t) => {
|
|
1807
|
+
const { mapRef: e, autoFitTimeout: n } = t, { executeMapApi: i } = qt(), a = new Qa();
|
|
1765
1808
|
let o;
|
|
1766
1809
|
const r = () => {
|
|
1767
|
-
var
|
|
1768
|
-
const
|
|
1769
|
-
if (!
|
|
1810
|
+
var j;
|
|
1811
|
+
const d = e.value;
|
|
1812
|
+
if (!d)
|
|
1770
1813
|
return;
|
|
1771
|
-
const c = window.innerWidth / 100, [
|
|
1814
|
+
const c = window.innerWidth / 100, [I, M, m, f] = (j = t.padding) != null ? j : [0, 0, 0, 0];
|
|
1772
1815
|
i(
|
|
1773
|
-
() =>
|
|
1774
|
-
top:
|
|
1816
|
+
() => d.fitBounds(a.getBound(), {
|
|
1817
|
+
top: I * c,
|
|
1775
1818
|
right: M * c,
|
|
1776
1819
|
bottom: m * c,
|
|
1777
1820
|
left: f * c
|
|
1778
1821
|
})
|
|
1779
1822
|
);
|
|
1780
1823
|
}, s = {
|
|
1781
|
-
add: (
|
|
1782
|
-
a.add(
|
|
1824
|
+
add: (d) => {
|
|
1825
|
+
a.add(d);
|
|
1783
1826
|
},
|
|
1784
|
-
remove: (
|
|
1785
|
-
a.delete(
|
|
1827
|
+
remove: (d) => {
|
|
1828
|
+
a.delete(d);
|
|
1786
1829
|
},
|
|
1787
1830
|
setFitView: r
|
|
1788
|
-
}, u = (
|
|
1789
|
-
const c =
|
|
1790
|
-
console.log("handleMoveEndOrZomEnd name, eventSource = ",
|
|
1831
|
+
}, u = (d) => {
|
|
1832
|
+
const c = Za();
|
|
1833
|
+
console.log("handleMoveEndOrZomEnd name, eventSource = ", d, c), !(!n || c !== "user") && (o && clearTimeout(o), o = setTimeout(() => {
|
|
1791
1834
|
o = void 0, r();
|
|
1792
1835
|
}, n));
|
|
1793
|
-
}, l =
|
|
1794
|
-
return
|
|
1836
|
+
}, l = _i(u, Va);
|
|
1837
|
+
return X(e, {}, u, [
|
|
1795
1838
|
"onDragEnd"
|
|
1796
|
-
]),
|
|
1839
|
+
]), X(e, {}, l, [
|
|
1797
1840
|
"onZoom_changed"
|
|
1798
1841
|
]), { registerFitVeiw: s, setFitView: r };
|
|
1799
|
-
}, he = (
|
|
1800
|
-
const { supplier:
|
|
1801
|
-
return
|
|
1842
|
+
}, he = (t) => {
|
|
1843
|
+
const { supplier: e } = L();
|
|
1844
|
+
return e === "gmap" ? Ja(t) : Ha(t);
|
|
1802
1845
|
};
|
|
1803
|
-
|
|
1846
|
+
p(function(e, {
|
|
1804
1847
|
slots: n
|
|
1805
1848
|
}) {
|
|
1806
|
-
const i =
|
|
1807
|
-
...
|
|
1849
|
+
const i = Et(), a = he({
|
|
1850
|
+
...e,
|
|
1808
1851
|
mapRef: i
|
|
1809
1852
|
});
|
|
1810
1853
|
return () => {
|
|
1811
1854
|
var o;
|
|
1812
|
-
return
|
|
1855
|
+
return g("div", [(o = n.render) == null ? void 0 : o.call(n, a)]);
|
|
1813
1856
|
};
|
|
1814
1857
|
});
|
|
1815
|
-
const
|
|
1858
|
+
const Fa = p(function(e, {
|
|
1816
1859
|
slots: n
|
|
1817
1860
|
}) {
|
|
1818
1861
|
const {
|
|
1819
1862
|
registerOverlay: i
|
|
1820
|
-
} =
|
|
1863
|
+
} = e, {
|
|
1821
1864
|
setFitView: a
|
|
1822
1865
|
} = i;
|
|
1823
|
-
return
|
|
1866
|
+
return Y(a), () => {
|
|
1824
1867
|
var o;
|
|
1825
|
-
return
|
|
1868
|
+
return g("div", [(o = n.default) == null ? void 0 : o.call(n)]);
|
|
1826
1869
|
};
|
|
1827
|
-
}),
|
|
1828
|
-
function
|
|
1829
|
-
return
|
|
1870
|
+
}), on = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjg0NDciIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkY4QjRBIiBvZmZzZXQ9IjUwLjU5NiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZBOTVBIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xMiAzMC4yMTVjMi4xMzQgMCAzLjg2My0uODkzIDMuODYzLTEuOTk1IDAtMS4xLTEuNzMtMS45OTQtMy44NjMtMS45OTQtMi4xMzQgMC0zLjg2My44OTMtMy44NjMgMS45OTQgMCAxLjEwMiAxLjczIDEuOTk1IDMuODYzIDEuOTk1eiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyNy4wMDZjMi4xMjggMC0uOS0zLjc0MyA1LjYyMS02LjY0M0MxOS44NDIgMTguNDUzIDIyIDE0Ljk1MyAyMiAxMC45NSAyMiA0LjkwMiAxNy4wNzUgMCAxMSAwUzAgNC45MDIgMCAxMC45NWMwIDMuOTE4IDIuMDY4IDcuMzU2IDUuMTc3IDkuMjlDMTEuNzUgMjMuMjg0IDkuMDYgMjcuMDA3IDExIDI3LjAwN3oiIHN0cm9rZT0iI0ZGRiIgZmlsbD0idXJsKCNwcmVmaXhfX2EpIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSIvPjx0ZXh0IGZvbnQtZmFtaWx5PSJQaW5nRmFuZ1NDLVNlbWlib2xkLCBQaW5nRmFuZyBTQyIgZm9udC1zaXplPSIxMiIgZm9udC13ZWlnaHQ9IjUwMCIgZmlsbD0iI0ZGRiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMSAxLjIxNSkiPjx0c3BhbiB4PSI1IiB5PSIxNS40NDkiPue7iDwvdHNwYW4+PC90ZXh0PjwvZz48L3N2Zz4=", rn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjUwJSIgeDI9IjEyOS41OTklIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjMzZBOEZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ4NzFGMSIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTIgMzAuMjE1YzEuOTUgMCAzLjUzMi0uODE2IDMuNTMyLTEuODIzIDAtMS4wMDctMS41ODEtMS44MjMtMy41MzItMS44MjMtMS45NSAwLTMuNTMyLjgxNi0zLjUzMiAxLjgyMyAwIDEuMDA3IDEuNTgxIDEuODIzIDMuNTMyIDEuODIzeiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyN2MyLjEyOCAwLS45LTMuNzQyIDUuNjIxLTYuNjQxIDMuMjIxLTEuOTEgNS4zNzktNS40MSA1LjM3OS05LjQxMkMyMiA0LjkwMSAxNy4wNzUgMCAxMSAwUzAgNC45MDEgMCAxMC45NDdjMCAzLjkxOCAyLjA2OCA3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
|
|
1871
|
+
function Xa(t, e, n) {
|
|
1872
|
+
return e in t ? Object.defineProperty(t, e, {
|
|
1830
1873
|
value: n,
|
|
1831
1874
|
enumerable: !0,
|
|
1832
1875
|
configurable: !0,
|
|
1833
1876
|
writable: !0
|
|
1834
|
-
}) : e
|
|
1877
|
+
}) : t[e] = n, t;
|
|
1835
1878
|
}
|
|
1836
|
-
function
|
|
1837
|
-
var n = Object.keys(
|
|
1879
|
+
function ot(t, e) {
|
|
1880
|
+
var n = Object.keys(t);
|
|
1838
1881
|
if (Object.getOwnPropertySymbols) {
|
|
1839
|
-
var i = Object.getOwnPropertySymbols(
|
|
1840
|
-
|
|
1841
|
-
return Object.getOwnPropertyDescriptor(
|
|
1882
|
+
var i = Object.getOwnPropertySymbols(t);
|
|
1883
|
+
e && (i = i.filter(function(a) {
|
|
1884
|
+
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
1842
1885
|
})), n.push.apply(n, i);
|
|
1843
1886
|
}
|
|
1844
1887
|
return n;
|
|
1845
1888
|
}
|
|
1846
|
-
function
|
|
1847
|
-
for (var
|
|
1848
|
-
var n = arguments[
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
1852
|
-
Object.defineProperty(
|
|
1889
|
+
function rt(t) {
|
|
1890
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1891
|
+
var n = arguments[e] != null ? arguments[e] : {};
|
|
1892
|
+
e % 2 ? ot(Object(n), !0).forEach(function(i) {
|
|
1893
|
+
Xa(t, i, n[i]);
|
|
1894
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : ot(Object(n)).forEach(function(i) {
|
|
1895
|
+
Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(n, i));
|
|
1853
1896
|
});
|
|
1854
1897
|
}
|
|
1855
|
-
return
|
|
1898
|
+
return t;
|
|
1856
1899
|
}
|
|
1857
|
-
var
|
|
1858
|
-
for (var i of Object.keys(
|
|
1900
|
+
var $a = (t, e, n) => {
|
|
1901
|
+
for (var i of Object.keys(t)) {
|
|
1859
1902
|
var a;
|
|
1860
|
-
if (
|
|
1903
|
+
if (t[i] !== ((a = e[i]) !== null && a !== void 0 ? a : n[i]))
|
|
1861
1904
|
return !1;
|
|
1862
1905
|
}
|
|
1863
1906
|
return !0;
|
|
1864
|
-
},
|
|
1865
|
-
var n =
|
|
1907
|
+
}, _ = (t) => (e) => {
|
|
1908
|
+
var n = t.defaultClassName, i = rt(rt({}, t.defaultVariants), e);
|
|
1866
1909
|
for (var a in i) {
|
|
1867
|
-
var o, r = (o = i[a]) !== null && o !== void 0 ? o :
|
|
1910
|
+
var o, r = (o = i[a]) !== null && o !== void 0 ? o : t.defaultVariants[a];
|
|
1868
1911
|
if (r != null) {
|
|
1869
1912
|
var s = r;
|
|
1870
1913
|
typeof s == "boolean" && (s = s === !0 ? "true" : "false");
|
|
1871
1914
|
var u = (
|
|
1872
1915
|
// @ts-expect-error
|
|
1873
|
-
|
|
1916
|
+
t.variantClassNames[a][s]
|
|
1874
1917
|
);
|
|
1875
1918
|
u && (n += " " + u);
|
|
1876
1919
|
}
|
|
1877
1920
|
}
|
|
1878
|
-
for (var [l,
|
|
1879
|
-
|
|
1921
|
+
for (var [l, d] of t.compoundVariants)
|
|
1922
|
+
$a(l, i, t.defaultVariants) && (n += " " + d);
|
|
1880
1923
|
return n;
|
|
1881
|
-
},
|
|
1882
|
-
const
|
|
1883
|
-
S(
|
|
1924
|
+
}, J = _({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] }), sn = "_4a4ovk1", cn = "_4a4ovk4", un = "_4a4ovk5", ln = "_4a4ovk3", de = "_4a4ovk0", dn = "_4a4ovk2";
|
|
1925
|
+
const _a = p(function(e) {
|
|
1926
|
+
S(e, "AStartEndPoint");
|
|
1884
1927
|
const n = N(() => {
|
|
1885
1928
|
var o;
|
|
1886
|
-
const i =
|
|
1887
|
-
return !
|
|
1888
|
-
type:
|
|
1889
|
-
})}">` :
|
|
1929
|
+
const i = e.type === "start" ? rn : on, a = e.description ? Ae(e.description).map((r) => r.type === "normal" ? r.value : `<span class="${un}">${r.value}</span>`).join("") : "";
|
|
1930
|
+
return !e.description && !e.title ? `<img src="${i}" class="${J({
|
|
1931
|
+
type: e.type
|
|
1932
|
+
})}">` : e.description ? `
|
|
1890
1933
|
<div class="${de}">
|
|
1891
|
-
<div class="${
|
|
1892
|
-
<div class="${
|
|
1893
|
-
<div class="${
|
|
1934
|
+
<div class="${sn}">
|
|
1935
|
+
<div class="${ln}">${(o = e.title) != null ? o : ""}</div>
|
|
1936
|
+
<div class="${cn}">${a}</div>
|
|
1894
1937
|
</div>
|
|
1895
|
-
<img src="${i}" class="${
|
|
1896
|
-
type:
|
|
1938
|
+
<img src="${i}" class="${J({
|
|
1939
|
+
type: e.type
|
|
1897
1940
|
})}">
|
|
1898
1941
|
</div>
|
|
1899
1942
|
` : `
|
|
1900
1943
|
<div class="${de}">
|
|
1901
|
-
<div class="${
|
|
1902
|
-
<img src="${i}" class="${
|
|
1903
|
-
type:
|
|
1944
|
+
<div class="${dn}">${e.title}</div>
|
|
1945
|
+
<img src="${i}" class="${J({
|
|
1946
|
+
type: e.type
|
|
1904
1947
|
})}">
|
|
1905
1948
|
</div>
|
|
1906
1949
|
`;
|
|
1907
1950
|
});
|
|
1908
|
-
return () =>
|
|
1951
|
+
return () => g(W, {
|
|
1909
1952
|
attrs: {
|
|
1910
|
-
registerOverlay:
|
|
1911
|
-
position:
|
|
1953
|
+
registerOverlay: e.registerOverlay,
|
|
1954
|
+
position: e.position,
|
|
1912
1955
|
content: n.value,
|
|
1913
1956
|
anchor: "bottom-center"
|
|
1914
1957
|
}
|
|
1915
1958
|
});
|
|
1916
|
-
}),
|
|
1917
|
-
S(
|
|
1959
|
+
}), Ka = p(function(e) {
|
|
1960
|
+
S(e, "GStartEndPoint");
|
|
1918
1961
|
const n = N(() => {
|
|
1919
1962
|
var o;
|
|
1920
|
-
const i =
|
|
1921
|
-
return !
|
|
1922
|
-
class:
|
|
1923
|
-
type:
|
|
1963
|
+
const i = e.type === "start" ? rn : on, a = e.description ? Ae(e.description).map((r) => r.type === "normal" ? r.value : `<span class="${un}">${r.value}</span>`).join("") : "";
|
|
1964
|
+
return !e.description && !e.title ? z("img", {
|
|
1965
|
+
class: J({
|
|
1966
|
+
type: e.type
|
|
1924
1967
|
}),
|
|
1925
1968
|
src: i
|
|
1926
|
-
}) :
|
|
1969
|
+
}) : e.description ? z("div", {
|
|
1927
1970
|
class: de
|
|
1928
1971
|
}, `
|
|
1929
|
-
<div class="${
|
|
1930
|
-
<div class="${
|
|
1931
|
-
<div class="${
|
|
1972
|
+
<div class="${sn}">
|
|
1973
|
+
<div class="${ln}">${(o = e.title) != null ? o : ""}</div>
|
|
1974
|
+
<div class="${cn}">${a}</div>
|
|
1932
1975
|
</div>
|
|
1933
|
-
<img src="${i}" class="${
|
|
1934
|
-
type:
|
|
1976
|
+
<img src="${i}" class="${J({
|
|
1977
|
+
type: e.type
|
|
1935
1978
|
})}">
|
|
1936
|
-
`) :
|
|
1979
|
+
`) : z("div", {
|
|
1937
1980
|
class: de
|
|
1938
1981
|
}, `
|
|
1939
|
-
<div class="${
|
|
1940
|
-
<img src="${i}" class="${
|
|
1941
|
-
type:
|
|
1982
|
+
<div class="${dn}">${e.title}</div>
|
|
1983
|
+
<img src="${i}" class="${J({
|
|
1984
|
+
type: e.type
|
|
1942
1985
|
})}">
|
|
1943
1986
|
`);
|
|
1944
1987
|
});
|
|
1945
|
-
return () =>
|
|
1988
|
+
return () => g(U, {
|
|
1946
1989
|
attrs: {
|
|
1947
|
-
registerOverlay:
|
|
1948
|
-
position:
|
|
1990
|
+
registerOverlay: e.registerOverlay,
|
|
1991
|
+
position: w(e.position),
|
|
1949
1992
|
content: n.value
|
|
1950
1993
|
}
|
|
1951
1994
|
});
|
|
1952
|
-
}), E =
|
|
1995
|
+
}), E = p(function(e) {
|
|
1953
1996
|
const n = L();
|
|
1954
|
-
return () => Z(n.supplier === "gmap" ?
|
|
1955
|
-
attrs:
|
|
1997
|
+
return () => Z(n.supplier === "gmap" ? Ka : _a, {
|
|
1998
|
+
attrs: e
|
|
1956
1999
|
});
|
|
1957
|
-
}),
|
|
2000
|
+
}), Qo = ae((t) => {
|
|
1958
2001
|
const {
|
|
1959
|
-
registerOverlay:
|
|
2002
|
+
registerOverlay: e,
|
|
1960
2003
|
mapRef: n,
|
|
1961
2004
|
renderDescription: i
|
|
1962
|
-
} =
|
|
2005
|
+
} = t;
|
|
1963
2006
|
return () => {
|
|
1964
2007
|
const {
|
|
1965
2008
|
from: a,
|
|
1966
2009
|
to: o
|
|
1967
|
-
} =
|
|
1968
|
-
return
|
|
2010
|
+
} = t, r = C(a), s = C(o);
|
|
2011
|
+
return g(Le, {
|
|
1969
2012
|
attrs: {
|
|
1970
2013
|
mapRef: n,
|
|
1971
2014
|
center: r,
|
|
1972
2015
|
zoom: 13
|
|
1973
2016
|
}
|
|
1974
|
-
}, [
|
|
2017
|
+
}, [g(E, {
|
|
1975
2018
|
attrs: {
|
|
1976
2019
|
type: "start",
|
|
1977
|
-
registerOverlay:
|
|
2020
|
+
registerOverlay: e,
|
|
1978
2021
|
position: r,
|
|
1979
2022
|
title: a.name
|
|
1980
2023
|
}
|
|
1981
|
-
}),
|
|
2024
|
+
}), g(Ne, {
|
|
1982
2025
|
attrs: {
|
|
1983
2026
|
to: s,
|
|
1984
2027
|
from: r,
|
|
1985
2028
|
render: ({
|
|
1986
2029
|
path: u,
|
|
1987
2030
|
distance: l,
|
|
1988
|
-
duration:
|
|
1989
|
-
}) => [
|
|
2031
|
+
duration: d
|
|
2032
|
+
}) => [g(Se, {
|
|
1990
2033
|
attrs: {
|
|
1991
2034
|
path: u
|
|
1992
2035
|
}
|
|
1993
|
-
}),
|
|
2036
|
+
}), g(E, {
|
|
1994
2037
|
attrs: {
|
|
1995
2038
|
type: "end",
|
|
1996
|
-
registerOverlay:
|
|
2039
|
+
registerOverlay: e,
|
|
1997
2040
|
position: s,
|
|
1998
2041
|
title: o.name,
|
|
1999
2042
|
description: i({
|
|
2000
2043
|
distance: l,
|
|
2001
|
-
duration:
|
|
2044
|
+
duration: d
|
|
2002
2045
|
})
|
|
2003
2046
|
}
|
|
2004
2047
|
})]
|
|
2005
2048
|
}
|
|
2006
|
-
}),
|
|
2049
|
+
}), g(Fa, {
|
|
2007
2050
|
attrs: {
|
|
2008
|
-
registerOverlay:
|
|
2051
|
+
registerOverlay: e
|
|
2009
2052
|
}
|
|
2010
2053
|
})]);
|
|
2011
2054
|
};
|
|
2012
|
-
}).props(["fallback", "from", "loading", "mapRef", "registerOverlay", "renderDescription", "to"]),
|
|
2013
|
-
var c,
|
|
2014
|
-
const { onChange:
|
|
2055
|
+
}).props(["fallback", "from", "loading", "mapRef", "registerOverlay", "renderDescription", "to"]), gn = (t) => {
|
|
2056
|
+
var c, I;
|
|
2057
|
+
const { onChange: e, onLoad: n, onLoadDefault: i, onError: a, geoDefaultPosition: o } = t != null ? t : {}, r = D(!1), s = D(!1), u = D(), l = D({
|
|
2015
2058
|
accuracy: 0,
|
|
2016
2059
|
altitude: 0,
|
|
2017
2060
|
altitudeAccuracy: 0,
|
|
2018
2061
|
heading: 0,
|
|
2019
2062
|
latitude: (c = o == null ? void 0 : o[1]) != null ? c : 0,
|
|
2020
|
-
longitude: (
|
|
2063
|
+
longitude: (I = o == null ? void 0 : o[0]) != null ? I : 0,
|
|
2021
2064
|
speed: 0
|
|
2022
|
-
}),
|
|
2023
|
-
return
|
|
2065
|
+
}), d = D([l.value.longitude, l.value.latitude]);
|
|
2066
|
+
return P(
|
|
2024
2067
|
() => !0,
|
|
2025
2068
|
(M, m, f) => {
|
|
2026
2069
|
r.value = !0;
|
|
2027
|
-
const
|
|
2028
|
-
(
|
|
2029
|
-
const y =
|
|
2030
|
-
l.value = y,
|
|
2070
|
+
const j = navigator.geolocation.watchPosition(
|
|
2071
|
+
(A) => {
|
|
2072
|
+
const y = A.coords, h = [A.coords.longitude, A.coords.latitude];
|
|
2073
|
+
l.value = y, d.value = h, r.value && (r.value = !1, s.value = !0, n == null || n({ position: h, coordinate: y })), e == null || e({ position: h, coordinate: y });
|
|
2031
2074
|
},
|
|
2032
|
-
(
|
|
2033
|
-
r.value = !1, u.value =
|
|
2034
|
-
const y =
|
|
2035
|
-
y && (i == null || i({ position: y })), a == null || a(
|
|
2075
|
+
(A) => {
|
|
2076
|
+
r.value = !1, u.value = A;
|
|
2077
|
+
const y = t == null ? void 0 : t.geoDefaultPosition;
|
|
2078
|
+
y && (i == null || i({ position: y })), a == null || a(A), console.log("errorRef = ", u);
|
|
2036
2079
|
},
|
|
2037
2080
|
// todo 要不要 timeout
|
|
2038
2081
|
{ timeout: 5e3, maximumAge: 0, enableHighAccuracy: !0 }
|
|
2039
2082
|
);
|
|
2040
|
-
f(() => navigator.geolocation.clearWatch(
|
|
2083
|
+
f(() => navigator.geolocation.clearWatch(j));
|
|
2041
2084
|
},
|
|
2042
2085
|
{ immediate: !0 }
|
|
2043
2086
|
), {
|
|
2044
2087
|
geoError: u,
|
|
2045
|
-
geoPosition:
|
|
2088
|
+
geoPosition: d,
|
|
2046
2089
|
geoCoordinate: l,
|
|
2047
2090
|
geoLoading: r,
|
|
2048
2091
|
geoReady: s
|
|
2049
2092
|
};
|
|
2050
|
-
},
|
|
2051
|
-
const
|
|
2052
|
-
return { mapRef:
|
|
2093
|
+
}, qa = () => {
|
|
2094
|
+
const t = b();
|
|
2095
|
+
return { mapRef: t, panTo: (i) => {
|
|
2053
2096
|
var a;
|
|
2054
|
-
return (a =
|
|
2097
|
+
return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(i);
|
|
2055
2098
|
}, setMap: (i) => {
|
|
2056
|
-
|
|
2099
|
+
t.value = i;
|
|
2057
2100
|
} };
|
|
2058
|
-
},
|
|
2059
|
-
const
|
|
2060
|
-
return { mapRef:
|
|
2101
|
+
}, eo = () => {
|
|
2102
|
+
const t = b();
|
|
2103
|
+
return { mapRef: t, panTo: (i) => {
|
|
2061
2104
|
var a;
|
|
2062
|
-
return (a =
|
|
2105
|
+
return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(w(i));
|
|
2063
2106
|
}, setMap: (i) => {
|
|
2064
|
-
|
|
2107
|
+
t.value = i;
|
|
2065
2108
|
} };
|
|
2066
2109
|
}, De = () => {
|
|
2067
|
-
const { supplier:
|
|
2068
|
-
return
|
|
2069
|
-
},
|
|
2070
|
-
const { mapRef:
|
|
2110
|
+
const { supplier: t } = L();
|
|
2111
|
+
return t === "gmap" ? eo() : qa();
|
|
2112
|
+
}, to = (t) => {
|
|
2113
|
+
const { mapRef: e, onChange: n } = t, i = D([0, 0]), a = D(!1), o = () => {
|
|
2071
2114
|
Promise.resolve().then(() => a.value = !0);
|
|
2072
2115
|
}, r = (s, { target: u }) => {
|
|
2073
2116
|
var c;
|
|
2074
2117
|
a.value = !1;
|
|
2075
|
-
const { lng: l, lat:
|
|
2076
|
-
i.value = [l,
|
|
2118
|
+
const { lng: l, lat: d } = u.getCenter();
|
|
2119
|
+
i.value = [l, d], (c = Wt(n)) == null || c([l, d]);
|
|
2077
2120
|
};
|
|
2078
|
-
return ne(
|
|
2121
|
+
return ne(e, {}, o, [
|
|
2079
2122
|
"onDragStart"
|
|
2080
|
-
]), ne(
|
|
2123
|
+
]), ne(e, {}, r, [
|
|
2081
2124
|
"onDragEnd"
|
|
2082
2125
|
]), { centerRef: i, isDragging: a };
|
|
2083
|
-
},
|
|
2084
|
-
const { mapRef:
|
|
2126
|
+
}, no = (t) => {
|
|
2127
|
+
const { mapRef: e, onChange: n } = t, i = D([0, 0]), a = D(!1), o = () => {
|
|
2085
2128
|
Promise.resolve().then(() => a.value = !0);
|
|
2086
2129
|
}, r = async () => {
|
|
2087
|
-
var
|
|
2130
|
+
var d, c;
|
|
2088
2131
|
a.value = !1;
|
|
2089
|
-
const s = (
|
|
2090
|
-
i.value = [u, l], (c =
|
|
2132
|
+
const s = (d = e.value) == null ? void 0 : d.getCenter(), u = s == null ? void 0 : s.lng(), l = s == null ? void 0 : s.lat();
|
|
2133
|
+
i.value = [u, l], (c = Wt(n)) == null || c([u, l]);
|
|
2091
2134
|
};
|
|
2092
|
-
return
|
|
2135
|
+
return X(e, {}, o, [
|
|
2093
2136
|
"onDragStart"
|
|
2094
|
-
]),
|
|
2137
|
+
]), X(e, {}, r, [
|
|
2095
2138
|
"onDragEnd"
|
|
2096
2139
|
]), { centerRef: i, isDragging: a };
|
|
2097
|
-
},
|
|
2098
|
-
const { supplier:
|
|
2099
|
-
return
|
|
2100
|
-
},
|
|
2101
|
-
const
|
|
2102
|
-
return { idx:
|
|
2103
|
-
|
|
2140
|
+
}, io = (t) => {
|
|
2141
|
+
const { supplier: e } = L();
|
|
2142
|
+
return e === "gmap" ? no(t) : to(t);
|
|
2143
|
+
}, K = () => {
|
|
2144
|
+
const t = D(0);
|
|
2145
|
+
return { idx: t, update: () => {
|
|
2146
|
+
t.value += 1;
|
|
2104
2147
|
} };
|
|
2105
|
-
},
|
|
2106
|
-
const { pointRef:
|
|
2107
|
-
lng:
|
|
2108
|
-
lat:
|
|
2148
|
+
}, In = (t) => {
|
|
2149
|
+
const { pointRef: e, onChange: n } = t, { readyPromise: i } = L(), { idx: a, update: o } = K(), r = x({
|
|
2150
|
+
lng: e.value[0],
|
|
2151
|
+
lat: e.value[1],
|
|
2109
2152
|
name: "",
|
|
2110
2153
|
cityName: void 0
|
|
2111
2154
|
});
|
|
2112
|
-
return
|
|
2155
|
+
return P(
|
|
2113
2156
|
() => a.value,
|
|
2114
2157
|
async () => {
|
|
2115
2158
|
await i;
|
|
2116
|
-
const s = new AMap.Geocoder({ lang:
|
|
2117
|
-
s.getAddress(new AMap.LngLat(u, l), (
|
|
2118
|
-
switch (
|
|
2159
|
+
const s = new AMap.Geocoder({ lang: Oe }), [u, l] = e.value;
|
|
2160
|
+
s.getAddress(new AMap.LngLat(u, l), (d, c) => {
|
|
2161
|
+
switch (d) {
|
|
2119
2162
|
case "complete": {
|
|
2120
|
-
const { formattedAddress:
|
|
2121
|
-
r.name =
|
|
2163
|
+
const { formattedAddress: I, addressComponent: M } = c.regeocode, m = M.city ? M.city : M.province, f = M.country;
|
|
2164
|
+
r.name = I, r.lng = u, r.lat = l, r.cityName = m, r.countryName = f, n == null || n({ lng: u, lat: l, name: I, cityName: m, countryName: f });
|
|
2122
2165
|
return;
|
|
2123
2166
|
}
|
|
2124
2167
|
case "no_data":
|
|
@@ -2130,236 +2173,236 @@ const Ba = v(function(t) {
|
|
|
2130
2173
|
});
|
|
2131
2174
|
}
|
|
2132
2175
|
), { place: r, updatePlace: o };
|
|
2133
|
-
},
|
|
2134
|
-
const { pointRef:
|
|
2135
|
-
return
|
|
2176
|
+
}, Mn = (t) => {
|
|
2177
|
+
const { pointRef: e, onChange: n } = t, { readyPromise: i } = L(), { idx: a, update: o } = K(), r = x({ lng: e.value[0], lat: e.value[1], name: "" });
|
|
2178
|
+
return P(
|
|
2136
2179
|
() => a.value,
|
|
2137
2180
|
async () => {
|
|
2138
2181
|
await i;
|
|
2139
|
-
const s = new google.maps.Geocoder(), [u, l] =
|
|
2140
|
-
r.lng = u, r.lat = l, r.name = c, r.cityName =
|
|
2182
|
+
const s = new google.maps.Geocoder(), [u, l] = e.value, { results: d } = await s.geocode({ language: Oe, location: { lng: u, lat: l } }), c = d[0].formatted_address, I = La(d[0]), M = d.slice(-1)[0].address_components[0].long_name;
|
|
2183
|
+
r.lng = u, r.lat = l, r.name = c, r.cityName = I, r.countryName = M, n == null || n({ lng: u, lat: l, name: c, cityName: I, countryName: M });
|
|
2141
2184
|
}
|
|
2142
2185
|
), { place: r, updatePlace: o };
|
|
2143
|
-
},
|
|
2144
|
-
const { supplier:
|
|
2145
|
-
return
|
|
2146
|
-
},
|
|
2147
|
-
let n = 1 / 0, i =
|
|
2148
|
-
for (const a of
|
|
2149
|
-
const o = AMap.GeometryUtil.distance(
|
|
2186
|
+
}, Jo = (t) => {
|
|
2187
|
+
const { supplier: e } = L();
|
|
2188
|
+
return e === "gmap" ? Mn(t) : In(t);
|
|
2189
|
+
}, ao = (t, e) => {
|
|
2190
|
+
let n = 1 / 0, i = t;
|
|
2191
|
+
for (const a of e) {
|
|
2192
|
+
const o = AMap.GeometryUtil.distance(C(t), C(a));
|
|
2150
2193
|
o >= n || (i = a, n = o);
|
|
2151
2194
|
}
|
|
2152
2195
|
return { shortestPlace: i, shortestDistance: n };
|
|
2153
|
-
},
|
|
2154
|
-
let n = 1 / 0, i =
|
|
2155
|
-
for (const a of
|
|
2156
|
-
const o = google.maps.geometry.spherical.computeDistanceBetween(
|
|
2196
|
+
}, oo = (t, e) => {
|
|
2197
|
+
let n = 1 / 0, i = t;
|
|
2198
|
+
for (const a of e) {
|
|
2199
|
+
const o = google.maps.geometry.spherical.computeDistanceBetween(t, a);
|
|
2157
2200
|
o >= n || (i = a, n = o);
|
|
2158
2201
|
}
|
|
2159
2202
|
return { shortestPlace: i, shortestDistance: n };
|
|
2160
|
-
},
|
|
2161
|
-
const { pointRef:
|
|
2162
|
-
return
|
|
2203
|
+
}, ro = (t) => {
|
|
2204
|
+
const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: o, onChangePlace: r } = t, s = D(!0), u = D([]), { idx: l, update: d } = K(), { readyPromise: c } = L(), { place: I, updatePlace: M } = In({ pointRef: e, onChange: r }), m = x({ ...I });
|
|
2205
|
+
return P(
|
|
2163
2206
|
() => l.value,
|
|
2164
2207
|
async () => {
|
|
2165
2208
|
await c;
|
|
2166
|
-
const f = await n({ ...
|
|
2209
|
+
const f = await n({ ...I }, a);
|
|
2167
2210
|
if (f === void 0) {
|
|
2168
|
-
s.value = !1, u.value = [], Object.assign(m, { ...
|
|
2211
|
+
s.value = !1, u.value = [], Object.assign(m, { ...I }), o == null || o({ ...I });
|
|
2169
2212
|
return;
|
|
2170
2213
|
}
|
|
2171
|
-
const { shortestPlace:
|
|
2214
|
+
const { shortestPlace: j, shortestDistance: A } = ao(I, f), y = i(a), h = A > y ? I : j;
|
|
2172
2215
|
s.value = !0, u.value = f, Object.assign(m, { ...h }), o == null || o({ ...h });
|
|
2173
2216
|
}
|
|
2174
2217
|
), {
|
|
2175
2218
|
recomendPlace: m,
|
|
2176
2219
|
placeCandidates: u,
|
|
2177
2220
|
availableRef: s,
|
|
2178
|
-
updateRecomandPlace:
|
|
2221
|
+
updateRecomandPlace: d,
|
|
2179
2222
|
updatePlace: M
|
|
2180
2223
|
};
|
|
2181
|
-
},
|
|
2182
|
-
const { pointRef:
|
|
2183
|
-
return
|
|
2224
|
+
}, so = (t) => {
|
|
2225
|
+
const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: o, onChangePlace: r } = t, s = D(!0), u = D([]), { idx: l, update: d } = K(), { readyPromise: c } = L(), { place: I, updatePlace: M } = Mn({ pointRef: e, onChange: r }), m = x({ ...I });
|
|
2226
|
+
return P(
|
|
2184
2227
|
() => l.value,
|
|
2185
2228
|
async () => {
|
|
2186
2229
|
await c;
|
|
2187
|
-
const f = await n({ ...
|
|
2230
|
+
const f = await n({ ...I }, a);
|
|
2188
2231
|
if (f === void 0) {
|
|
2189
|
-
s.value = !1, u.value = [], Object.assign(m, { ...
|
|
2232
|
+
s.value = !1, u.value = [], Object.assign(m, { ...I }), o == null || o({ ...I });
|
|
2190
2233
|
return;
|
|
2191
2234
|
}
|
|
2192
|
-
const { shortestPlace:
|
|
2235
|
+
const { shortestPlace: j, shortestDistance: A } = oo(I, f), y = i(a), h = A > y ? I : j;
|
|
2193
2236
|
s.value = !0, u.value = f, Object.assign(m, { ...h }), o == null || o({ ...h });
|
|
2194
2237
|
}
|
|
2195
2238
|
), {
|
|
2196
2239
|
recomendPlace: m,
|
|
2197
2240
|
placeCandidates: u,
|
|
2198
2241
|
availableRef: s,
|
|
2199
|
-
updateRecomandPlace:
|
|
2242
|
+
updateRecomandPlace: d,
|
|
2200
2243
|
updatePlace: M
|
|
2201
2244
|
};
|
|
2202
|
-
},
|
|
2203
|
-
const { supplier:
|
|
2204
|
-
return
|
|
2205
|
-
},
|
|
2206
|
-
var
|
|
2207
|
-
const
|
|
2208
|
-
S(
|
|
2245
|
+
}, co = (t) => {
|
|
2246
|
+
const { supplier: e } = L();
|
|
2247
|
+
return e === "gmap" ? so(t) : ro(t);
|
|
2248
|
+
}, mn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjEiIGhlaWdodD0iNjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTcuMSUiIHk9Ii03LjElIiB3aWR0aD0iMTE0LjMlIiBoZWlnaHQ9IjExNC4zJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249Ii41IiBpbj0ic2hhZG93T2Zmc2V0T3V0ZXIxIiByZXN1bHQ9InNoYWRvd0JsdXJPdXRlcjEiLz48ZmVDb21wb3NpdGUgaW49InNoYWRvd0JsdXJPdXRlcjEiIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNzc0NTMwMTYgMCIgaW49InNoYWRvd0JsdXJPdXRlcjEiLz48L2ZpbHRlcj48Y2lyY2xlIGlkPSJwcmVmaXhfX2IiIGN4PSIzMCIgY3k9IjMwIiByPSIxMC41Ii8+PC9kZWZzPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC40MDUgLjI2NCkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGNpcmNsZSBzdHJva2Utb3BhY2l0eT0iLjEiIHN0cm9rZT0iIzAwM0RGRiIgZmlsbC1vcGFjaXR5PSIuMTUiIGZpbGw9IiM0ODczRkUiIGN4PSIzMCIgY3k9IjMwIiByPSIyOS41Ii8+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjcHJlZml4X19hKSIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjxjaXJjbGUgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVqb2luPSJzcXVhcmUiIGZpbGw9IiM0ODcxRjEiIGN4PSIzMCIgY3k9IjMwIiByPSI5LjMiLz48L2c+PC9zdmc+";
|
|
2249
|
+
var fn = _({ defaultClassName: "_1l6offo0", variantClassNames: { size: { small: "_1l6offo1", large: "_1l6offo2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
2250
|
+
const uo = p(function(e) {
|
|
2251
|
+
S(e, "APassengerCircle");
|
|
2209
2252
|
const n = N(() => {
|
|
2210
2253
|
const {
|
|
2211
2254
|
size: i = "large"
|
|
2212
|
-
} =
|
|
2255
|
+
} = e;
|
|
2213
2256
|
return `
|
|
2214
|
-
<img src="${i === "large" ?
|
|
2257
|
+
<img src="${i === "large" ? mn : G}" class="${fn({
|
|
2215
2258
|
size: i
|
|
2216
2259
|
})}">
|
|
2217
2260
|
`;
|
|
2218
2261
|
});
|
|
2219
|
-
return () =>
|
|
2262
|
+
return () => g(W, {
|
|
2220
2263
|
attrs: {
|
|
2221
|
-
position:
|
|
2264
|
+
position: e.position,
|
|
2222
2265
|
content: n.value,
|
|
2223
2266
|
anchor: "bottom-center",
|
|
2224
|
-
registerOverlay:
|
|
2267
|
+
registerOverlay: e.registerOverlay
|
|
2225
2268
|
}
|
|
2226
2269
|
});
|
|
2227
|
-
}),
|
|
2228
|
-
S(
|
|
2270
|
+
}), lo = p(function(e) {
|
|
2271
|
+
S(e, "GPassengerCircle");
|
|
2229
2272
|
const n = N(() => {
|
|
2230
2273
|
const {
|
|
2231
2274
|
size: i = "large"
|
|
2232
|
-
} =
|
|
2233
|
-
return
|
|
2234
|
-
class:
|
|
2275
|
+
} = e, a = i === "large" ? mn : G;
|
|
2276
|
+
return z("img", {
|
|
2277
|
+
class: fn({
|
|
2235
2278
|
size: i
|
|
2236
2279
|
}),
|
|
2237
2280
|
src: a
|
|
2238
2281
|
});
|
|
2239
2282
|
});
|
|
2240
|
-
return () =>
|
|
2283
|
+
return () => g(U, {
|
|
2241
2284
|
attrs: {
|
|
2242
|
-
position:
|
|
2285
|
+
position: w(e.position),
|
|
2243
2286
|
content: n.value,
|
|
2244
|
-
registerOverlay:
|
|
2287
|
+
registerOverlay: e.registerOverlay
|
|
2245
2288
|
}
|
|
2246
2289
|
});
|
|
2247
|
-
}), Ce =
|
|
2290
|
+
}), Ce = p(function(e) {
|
|
2248
2291
|
const n = L();
|
|
2249
|
-
return () => Z(n.supplier === "gmap" ?
|
|
2250
|
-
attrs:
|
|
2292
|
+
return () => Z(n.supplier === "gmap" ? lo : uo, {
|
|
2293
|
+
attrs: e
|
|
2251
2294
|
});
|
|
2252
2295
|
});
|
|
2253
|
-
var be = /* @__PURE__ */ ((
|
|
2254
|
-
var
|
|
2255
|
-
const
|
|
2296
|
+
var be = /* @__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))(be || {});
|
|
2297
|
+
var st = _({ defaultClassName: "", variantClassNames: { textAlign: { left: "fhyw83", right: "fhyw84" } }, defaultVariants: {}, compoundVariants: [] }), ct = _({ defaultClassName: "fhyw85", variantClassNames: { textAlign: { left: "fhyw86", right: "fhyw87" } }, defaultVariants: {}, compoundVariants: [] }), vn = "fhyw8b", pn = _({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] }), ge = _({ defaultClassName: "fhyw88", variantClassNames: { hideIcon: { true: "fhyw89", false: "fhyw8a" } }, defaultVariants: {}, compoundVariants: [] });
|
|
2298
|
+
const go = p(function(e, {
|
|
2256
2299
|
emit: n
|
|
2257
2300
|
}) {
|
|
2258
|
-
S(
|
|
2301
|
+
S(e, "APlaceCircle");
|
|
2259
2302
|
const i = N(() => {
|
|
2260
2303
|
var s;
|
|
2261
|
-
return (s =
|
|
2304
|
+
return (s = e.textAlign) != null ? s : "right";
|
|
2262
2305
|
}), a = N(() => {
|
|
2263
2306
|
const {
|
|
2264
2307
|
hideIcon: s = !1
|
|
2265
|
-
} =
|
|
2308
|
+
} = e;
|
|
2266
2309
|
return `
|
|
2267
|
-
<div class="${
|
|
2310
|
+
<div class="${pn({
|
|
2268
2311
|
textAlign: i.value
|
|
2269
2312
|
})}">
|
|
2270
2313
|
<img class="${ge({
|
|
2271
2314
|
hideIcon: s
|
|
2272
|
-
})} ${
|
|
2315
|
+
})} ${st({
|
|
2273
2316
|
textAlign: i.value
|
|
2274
|
-
})}" src="${
|
|
2275
|
-
<div class="${
|
|
2317
|
+
})}" src="${G}">
|
|
2318
|
+
<div class="${vn}">${e.label}</div>
|
|
2276
2319
|
</div>
|
|
2277
2320
|
`;
|
|
2278
2321
|
}), o = N(() => {
|
|
2279
2322
|
const {
|
|
2280
2323
|
hideIcon: s = !1
|
|
2281
|
-
} =
|
|
2324
|
+
} = e;
|
|
2282
2325
|
return `<img class="${ge({
|
|
2283
2326
|
hideIcon: s
|
|
2284
|
-
})} ${
|
|
2327
|
+
})} ${st({
|
|
2285
2328
|
textAlign: i.value
|
|
2286
|
-
})}" src="${
|
|
2329
|
+
})}" src="${G}">`;
|
|
2287
2330
|
}), r = (s) => {
|
|
2288
|
-
console.log("on amap marker e = ", s), n("click",
|
|
2331
|
+
console.log("on amap marker e = ", s), n("click", e.position);
|
|
2289
2332
|
};
|
|
2290
|
-
return () =>
|
|
2333
|
+
return () => g(W, {
|
|
2291
2334
|
attrs: {
|
|
2292
|
-
position:
|
|
2293
|
-
content:
|
|
2335
|
+
position: e.position,
|
|
2336
|
+
content: e.label ? a.value : o.value,
|
|
2294
2337
|
anchor: i.value === "left" ? be.middleRight : be.middleLeft
|
|
2295
2338
|
},
|
|
2296
2339
|
on: {
|
|
2297
2340
|
click: r
|
|
2298
2341
|
}
|
|
2299
2342
|
});
|
|
2300
|
-
}),
|
|
2343
|
+
}), Io = p(function(e, {
|
|
2301
2344
|
emit: n
|
|
2302
2345
|
}) {
|
|
2303
|
-
S(
|
|
2346
|
+
S(e, "GPlaceCircle");
|
|
2304
2347
|
const i = N(() => {
|
|
2305
2348
|
var s;
|
|
2306
|
-
return (s =
|
|
2349
|
+
return (s = e.textAlign) != null ? s : "right";
|
|
2307
2350
|
}), a = N(() => {
|
|
2308
2351
|
const {
|
|
2309
2352
|
hideIcon: s = !1
|
|
2310
|
-
} =
|
|
2311
|
-
return
|
|
2312
|
-
class: `${
|
|
2353
|
+
} = e;
|
|
2354
|
+
return z("div", {
|
|
2355
|
+
class: `${pn({
|
|
2313
2356
|
textAlign: i.value
|
|
2314
|
-
})} ${
|
|
2357
|
+
})} ${ct({
|
|
2315
2358
|
textAlign: i.value
|
|
2316
2359
|
})}`
|
|
2317
2360
|
}, `
|
|
2318
2361
|
<img class="${ge({
|
|
2319
2362
|
hideIcon: s
|
|
2320
|
-
})}" src="${
|
|
2321
|
-
<div class="${
|
|
2363
|
+
})}" src="${G}">
|
|
2364
|
+
<div class="${vn}">${e.label}</div>
|
|
2322
2365
|
`);
|
|
2323
2366
|
}), o = N(() => {
|
|
2324
2367
|
const {
|
|
2325
2368
|
hideIcon: s = !1
|
|
2326
|
-
} =
|
|
2327
|
-
return
|
|
2369
|
+
} = e;
|
|
2370
|
+
return z("img", {
|
|
2328
2371
|
class: `${ge({
|
|
2329
2372
|
hideIcon: s
|
|
2330
|
-
})} ${
|
|
2373
|
+
})} ${ct({
|
|
2331
2374
|
textAlign: i.value
|
|
2332
2375
|
})}`,
|
|
2333
|
-
src:
|
|
2376
|
+
src: G
|
|
2334
2377
|
});
|
|
2335
2378
|
}), r = (s) => {
|
|
2336
|
-
console.log("on gmap advanced marker view e = ", s), n("click",
|
|
2379
|
+
console.log("on gmap advanced marker view e = ", s), n("click", e.position);
|
|
2337
2380
|
};
|
|
2338
|
-
return () =>
|
|
2381
|
+
return () => g(U, {
|
|
2339
2382
|
attrs: {
|
|
2340
|
-
position:
|
|
2341
|
-
content:
|
|
2383
|
+
position: w(e.position),
|
|
2384
|
+
content: e.label ? a.value : o.value
|
|
2342
2385
|
},
|
|
2343
2386
|
on: {
|
|
2344
2387
|
click: r
|
|
2345
2388
|
}
|
|
2346
2389
|
});
|
|
2347
|
-
}), O =
|
|
2390
|
+
}), O = p(function(e, {
|
|
2348
2391
|
emit: n
|
|
2349
2392
|
}) {
|
|
2350
2393
|
const i = L();
|
|
2351
|
-
return () => Z(i.supplier === "gmap" ?
|
|
2352
|
-
attrs:
|
|
2394
|
+
return () => Z(i.supplier === "gmap" ? Io : go, {
|
|
2395
|
+
attrs: e,
|
|
2353
2396
|
on: {
|
|
2354
2397
|
click: (a) => n("click", a)
|
|
2355
2398
|
}
|
|
2356
2399
|
});
|
|
2357
|
-
}),
|
|
2400
|
+
}), Mo = p(function(e, {
|
|
2358
2401
|
emit: n
|
|
2359
2402
|
}) {
|
|
2360
|
-
return S(
|
|
2403
|
+
return S(e, "PickupPoints"), () => g("div", [e.places.map((i) => g(O, {
|
|
2361
2404
|
attrs: {
|
|
2362
|
-
position:
|
|
2405
|
+
position: C(i),
|
|
2363
2406
|
label: i.name,
|
|
2364
2407
|
textAlign: "left"
|
|
2365
2408
|
},
|
|
@@ -2367,183 +2410,184 @@ const no = v(function(t, {
|
|
|
2367
2410
|
click: () => n("click", i)
|
|
2368
2411
|
}
|
|
2369
2412
|
}))]);
|
|
2370
|
-
}),
|
|
2371
|
-
emit:
|
|
2413
|
+
}), mo = 30, Fo = ae((t, {
|
|
2414
|
+
emit: e
|
|
2372
2415
|
}) => {
|
|
2373
|
-
var
|
|
2374
|
-
S(
|
|
2416
|
+
var T, k;
|
|
2417
|
+
S(t, "BusinessRecomendPlaceMap");
|
|
2375
2418
|
const {
|
|
2376
2419
|
geoDefaultPosition: n,
|
|
2377
2420
|
getRecomendPlace: i,
|
|
2378
2421
|
mapContext: a
|
|
2379
|
-
} =
|
|
2422
|
+
} = t, {
|
|
2380
2423
|
mapRef: o,
|
|
2381
|
-
setMap: r
|
|
2382
|
-
panTo: s
|
|
2424
|
+
setMap: r
|
|
2383
2425
|
} = De(), {
|
|
2384
|
-
readyPromise:
|
|
2385
|
-
} = L(),
|
|
2386
|
-
lng: (
|
|
2387
|
-
lat: (
|
|
2426
|
+
readyPromise: s
|
|
2427
|
+
} = L(), u = x({
|
|
2428
|
+
lng: (T = n == null ? void 0 : n[0]) != null ? T : 0,
|
|
2429
|
+
lat: (k = n == null ? void 0 : n[1]) != null ? k : 0,
|
|
2388
2430
|
name: "",
|
|
2389
2431
|
cityName: void 0
|
|
2390
|
-
}),
|
|
2432
|
+
}), l = N(() => [u.lng, u.lat]), d = {
|
|
2391
2433
|
source: "geo"
|
|
2392
|
-
},
|
|
2393
|
-
|
|
2394
|
-
},
|
|
2395
|
-
|
|
2434
|
+
}, c = (v) => {
|
|
2435
|
+
d.source = "api", u.lng = v[0], u.lat = v[1], j();
|
|
2436
|
+
}, I = (v) => {
|
|
2437
|
+
d.source = "api", u.lng = v.lng, u.lat = v.lat, u.name = v.name;
|
|
2396
2438
|
}, {
|
|
2397
|
-
geoPosition:
|
|
2398
|
-
geoError:
|
|
2399
|
-
} =
|
|
2439
|
+
geoPosition: M,
|
|
2440
|
+
geoError: m
|
|
2441
|
+
} = gn({
|
|
2400
2442
|
geoDefaultPosition: n,
|
|
2401
|
-
onLoad: async (
|
|
2402
|
-
await
|
|
2443
|
+
onLoad: async (v) => {
|
|
2444
|
+
await s, d.source = "geo", u.lng = v.position[0], u.lat = v.position[1], j(), e("loadGeoLocation", v);
|
|
2403
2445
|
},
|
|
2404
|
-
onLoadDefault: async (
|
|
2405
|
-
await
|
|
2446
|
+
onLoadDefault: async (v) => {
|
|
2447
|
+
await s, d.source = "geo", u.lng = v.position[0], u.lat = v.position[1], j(), e("loadDefaultGeoLocation", v);
|
|
2406
2448
|
},
|
|
2407
|
-
onChange: (
|
|
2408
|
-
onError: (
|
|
2449
|
+
onChange: (v) => e("changeGeoLocation", v),
|
|
2450
|
+
onError: (v) => e("geoError", v)
|
|
2409
2451
|
});
|
|
2410
|
-
a.setCenterPlaceByRecomand =
|
|
2452
|
+
a.setCenterPlaceByRecomand = c, a.panToGeoPositionByRecomend = () => m.value ? !1 : (c(M.value), !0);
|
|
2411
2453
|
const {
|
|
2412
|
-
isDragging:
|
|
2413
|
-
} =
|
|
2454
|
+
isDragging: f
|
|
2455
|
+
} = io({
|
|
2414
2456
|
mapRef: o,
|
|
2415
|
-
onChange: (
|
|
2416
|
-
|
|
2457
|
+
onChange: (v) => {
|
|
2458
|
+
d.source = "drag", u.lng = v[0], u.lat = v[1], j(), e("changeByDrag", v);
|
|
2417
2459
|
}
|
|
2418
2460
|
}), {
|
|
2419
|
-
updatePlace:
|
|
2420
|
-
updateRecomandPlace:
|
|
2421
|
-
placeCandidates:
|
|
2422
|
-
availableRef:
|
|
2423
|
-
} =
|
|
2424
|
-
pointRef:
|
|
2425
|
-
context:
|
|
2461
|
+
updatePlace: j,
|
|
2462
|
+
updateRecomandPlace: A,
|
|
2463
|
+
placeCandidates: y,
|
|
2464
|
+
availableRef: h
|
|
2465
|
+
} = co({
|
|
2466
|
+
pointRef: l,
|
|
2467
|
+
context: d,
|
|
2426
2468
|
getRecomendPlace: i,
|
|
2427
|
-
getLimit: (
|
|
2428
|
-
const
|
|
2429
|
-
switch (
|
|
2469
|
+
getLimit: (v) => {
|
|
2470
|
+
const R = v == null ? void 0 : v.source;
|
|
2471
|
+
switch (R) {
|
|
2430
2472
|
case "drag":
|
|
2431
2473
|
case "api":
|
|
2432
|
-
return
|
|
2474
|
+
return mo;
|
|
2433
2475
|
case "geo":
|
|
2434
2476
|
case "default":
|
|
2435
2477
|
return 1 / 0;
|
|
2436
2478
|
default:
|
|
2437
|
-
throw new Error(`MyError: should not call getLimit on source: ${
|
|
2479
|
+
throw new Error(`MyError: should not call getLimit on source: ${R}`);
|
|
2438
2480
|
}
|
|
2439
2481
|
},
|
|
2440
|
-
onChangePlace: (
|
|
2441
|
-
Object.assign(
|
|
2442
|
-
...
|
|
2443
|
-
}),
|
|
2482
|
+
onChangePlace: (v) => {
|
|
2483
|
+
Object.assign(u, {
|
|
2484
|
+
...v
|
|
2485
|
+
}), d.source !== "recomend" && A(), e("changePlace", v);
|
|
2444
2486
|
},
|
|
2445
|
-
onChange: (
|
|
2446
|
-
|
|
2447
|
-
...
|
|
2448
|
-
}),
|
|
2487
|
+
onChange: (v) => {
|
|
2488
|
+
d.source = "recomend", Object.assign(u, {
|
|
2489
|
+
...v
|
|
2490
|
+
}), j(), e("changeRecomandPlace", v);
|
|
2449
2491
|
}
|
|
2450
2492
|
});
|
|
2451
2493
|
return ue(() => {
|
|
2452
2494
|
a.onChangeCenterPlace({
|
|
2453
|
-
...
|
|
2495
|
+
...u
|
|
2454
2496
|
});
|
|
2455
2497
|
}), ue(() => {
|
|
2456
|
-
a.onChangeRecomendPlaces([...
|
|
2498
|
+
a.onChangeRecomendPlaces([...y.value]);
|
|
2457
2499
|
}), () => {
|
|
2458
|
-
const
|
|
2459
|
-
return
|
|
2500
|
+
const v = h.value ? y.value.length > 0 ? t.recomendDescription : t.noRecomendDescription : void 0;
|
|
2501
|
+
return g(Le, {
|
|
2460
2502
|
attrs: {
|
|
2461
|
-
center:
|
|
2503
|
+
center: l.value,
|
|
2462
2504
|
zoom: 18,
|
|
2463
2505
|
mapRef: r,
|
|
2464
|
-
log:
|
|
2506
|
+
log: t.log
|
|
2465
2507
|
}
|
|
2466
|
-
}, [
|
|
2508
|
+
}, [g(Ce, {
|
|
2467
2509
|
attrs: {
|
|
2468
|
-
position:
|
|
2510
|
+
position: M.value
|
|
2469
2511
|
}
|
|
2470
|
-
}),
|
|
2512
|
+
}), g(Mo, {
|
|
2471
2513
|
attrs: {
|
|
2472
|
-
places:
|
|
2473
|
-
log:
|
|
2514
|
+
places: y.value,
|
|
2515
|
+
log: t.log
|
|
2474
2516
|
},
|
|
2475
2517
|
on: {
|
|
2476
|
-
click:
|
|
2518
|
+
click: I
|
|
2477
2519
|
}
|
|
2478
|
-
}),
|
|
2520
|
+
}), g(ra, {
|
|
2479
2521
|
attrs: {
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2522
|
+
title: h.value ? u.name : t.unavailableTitle,
|
|
2523
|
+
description: v,
|
|
2524
|
+
type: f.value ? "locator" : "box",
|
|
2525
|
+
log: t.log
|
|
2526
|
+
},
|
|
2527
|
+
on: {
|
|
2528
|
+
click: () => e("clickLocator")
|
|
2485
2529
|
}
|
|
2486
2530
|
})]);
|
|
2487
2531
|
};
|
|
2488
|
-
}).props(["log", "unavailableTitle", "recomendDescription", "noRecomendDescription", "fallback", "geoDefaultPosition", "getRecomendPlace", "loading", "mapContext"]),
|
|
2489
|
-
var Me = "_65j3sr1",
|
|
2490
|
-
const
|
|
2491
|
-
S(
|
|
2532
|
+
}).props(["log", "unavailableTitle", "recomendDescription", "noRecomendDescription", "fallback", "geoDefaultPosition", "getRecomendPlace", "loading", "mapContext"]), fo = [116.2317, 39.5427], ut = (t) => t.lng !== void 0 && t.lat !== void 0, Ie = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0zNC4wODcgMTAuOTZjMCAyLjM2OS0uMDU0IDIuOTgtLjc4MiAzLjcwNC0uNzkzLjc5LTUuMjM2LjgzMy01LjIzNi44MzNsLTQuMTE2LjE5Mi05Ljg5Ni0uMTQ0cy03Ljc5LS4wMjYtOS4xMzEtLjAyNmMtMS4zNDIgMC0yLjQwNi0uODQ3LTIuNDA2LS44NDdDLjE0IDEyLjkzMiAwIDExLjA5IDAgMTEuMDlWNS44NnMuMTQtMS44NDIgMi41Mi0zLjU4M2MwIDAgMS4wNjQtLjg0NiAyLjQwNi0uODQ2IDEuMzQxIDAgOS4xMy0uMDI2IDkuMTMtLjAyNmw5Ljg5Ny0uMTQ0IDQuMTE2LjE5MnM0LjQ4NCAwIDUuMjM2LjgzM2MuNzc4Ljg2Ljc4MiAxLjM3Ljc4MiAzLjc0djQuOTM0eiIgaWQ9InByZWZpeF9fYiIvPjxwYXRoIGQ9Ik0wIDEuNDkzUzUuNy4xOCA4LjcxOS4wNWMzLjAyLS4xMzEgMy40Ny4wMTcgNS4yODIuMjEuNTA3LjA1MSAzLjI2LjkxIDMuMjYuOTFsLTcuMzAzLjNMMCAxLjQ5NHoiIGlkPSJwcmVmaXhfX2MiLz48cGF0aCBkPSJNMTAuMDggMi44MTVDOS4yOTUgNC40ODMgOC44NSA2LjQyMyA4Ljg1IDguNDk0YzAgMi4wNjIuNDQyIDMuOTk0IDEuMjIgNS42NTdsNS42OTgtMS4xNTdhMTUuNjAxIDE1LjYwMSAwIDAxLS42NjctNC41NTJjMC0xLjY1OS4yMDQtMy4wNjUuNjU5LTQuNTA1TDEwLjA4IDIuODE1eiIgaWQ9InByZWZpeF9fZSIvPjxwYXRoIGQ9Ik0yNS43NTMgOC40NTVjMCAxLjkyLS4yMiAzLjM2NC0uNjAxIDQuODkxbDIuNjI2LjM1YzEuMTc4LS4wMDUgMi4xMzItMi4zMzUgMi4xMzItNS4yMTVzLS45NTQtNS4yMS0yLjEzMi01LjIxbC0yLjYxNC4zNWMuMzcyIDEuNTEzLjU4OSAyLjk0LjU4OSA0LjgzNHoiIGlkPSJwcmVmaXhfX2ciLz48cGF0aCBkPSJNLjA2NC4wMTVMLjE1OC4wMDJDLjE4OC0uMDE2LjM3MS4xMDYuNC4xMjRjLjE4OC4xMjYuMzIxLjI0NC40My43Ni4wNTQuMjUyLjIwNyAxLjQ2NS4xOTggMS40OTZsLS42MzMuODMzLjExOSAzLjE3LS4wOTQuMDc2TDAgLjEzN2MwLS4wNTIuMDI1LS4xLjA2NC0uMTIyeiIgaWQ9InByZWZpeF9faSIvPjxwYXRoIGQ9Ik0uMDY0IDYuNTE1bC4wOTQuMDEzYy4wMy4wMTguMjEzLS4xMDQuMjQyLS4xMjIuMTg4LS4xMjYuMzIxLS4yNDQuNDMtLjc2LjA1NC0uMjUyLjIwNy0xLjQ2NS4xOTgtMS40OTZsLS42MzMtLjgzM0wuNDIgMHYuMDdMMCA2LjM5NGMwIC4wNTIuMDI1LjEuMDY0LjEyMnoiIGlkPSJwcmVmaXhfX2siLz48bGluZWFyR3JhZGllbnQgeDE9IjEyNS4yNjQlIiB5MT0iNDkuNjI2JSIgeDI9IjAlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19kIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9Ii41IiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1vcGFjaXR5PSIuNSIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgeDE9IjIyLjcxMiUiIHkxPSI3My4xMzMlIiB4Mj0iNjguNjIlIiB5Mj0iNjYuMTk0JSIgaWQ9InByZWZpeF9fZiI+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRiIgc3RvcC1vcGFjaXR5PSIuNSIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3Atb3BhY2l0eT0iLjUiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IHgxPSIxMjguNzY4JSIgeTE9IjUwJSIgeDI9IjAlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19oIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9Ii41IiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1vcGFjaXR5PSIuNSIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgeDE9IjEwMCUiIHkxPSIxMDAlIiB4Mj0iMjguNCUiIHkyPSIxMDAlIiBpZD0icHJlZml4X19qIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZCRUJFIiBzdG9wLW9wYWNpdHk9Ii41IiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzM1MjIyMiIgc3RvcC1vcGFjaXR5PSIuNSIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgeDE9IjEwMCUiIHkxPSIxMDAlIiB4Mj0iMjguNCUiIHkyPSIxMDAlIiBpZD0icHJlZml4X19sIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZCRUJFIiBzdG9wLW9wYWNpdHk9Ii41IiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzM1MjIyMiIgc3RvcC1vcGFjaXR5PSIuNSIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48ZmlsdGVyIHg9Ii0xNy42JSIgeT0iLTQxLjYlIiB3aWR0aD0iMTM1LjIlIiBoZWlnaHQ9IjE4My4yJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIiIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwLjA4NjI3NDUwOTggMCAwIDAgMCAwLjA4NjI3NDUwOTggMCAwIDAgMCAwLjA4NjI3NDUwOTggMCAwIDAgMC41IDAiIGluPSJzaGFkb3dCbHVyT3V0ZXIxIi8+PC9maWx0ZXI+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHBhdGggZD0iTTAgMGgyNHY0NEgweiIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMCAxIDEgMCAzLjQ5OCA0LjY0MikiPjx1c2UgZmlsbD0iIzAwMCIgZmlsdGVyPSJ1cmwoI3ByZWZpeF9fYSkiIHhsaW5rOmhyZWY9IiNwcmVmaXhfX2IiLz48dXNlIGZpbGw9IiNERkVDRjIiIHhsaW5rOmhyZWY9IiNwcmVmaXhfX2IiLz48L2c+PHBhdGggZD0iTTE0LjQ1OCAzOC43MjhjMi4zNjkgMCAyLjk4LS4wNTMgMy43MDQtLjc4MS43OS0uNzk0LjgzNC01LjIzNy44MzQtNS4yMzdsLjE5MS00LjExNS0uMTQ0LTkuODk2cy0uMDI2LTcuNzktLjAyNi05LjEzMmMwLTEuMzQyLS44NDYtMi40MDUtLjg0Ni0yLjQwNS0xLjc0MS0yLjM4MS0zLjU4Mi0yLjUyLTMuNTgyLTIuNTJIOS4zNTdzLTEuODQxLjEzOS0zLjU4MiAyLjUyYzAgMC0uODQ3IDEuMDYzLS44NDcgMi40MDUgMCAxLjM0Mi0uMDI2IDkuMTMyLS4wMjYgOS4xMzJsLS4xNDQgOS44OTYuMTkyIDQuMTE1czAgNC40ODQuODMzIDUuMjM3Yy44Ni43NzcgMS4zNy43ODEgMy43NC43ODFoNC45MzV6IiBmaWxsPSIjRUZGNUY4Ii8+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMCAxIDEgMCAxNy4wOTMgMTUuMDYyKSIgb3BhY2l0eT0iLjkiPjx1c2UgZmlsbD0iIzE2MTYxNiIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYyIvPjx1c2UgZmlsbD0idXJsKCNwcmVmaXhfX2QpIiB4bGluazpocmVmPSIjcHJlZml4X19jIi8+PC9nPjxwYXRoIGQ9Ik01LjgyNiAxNC41M2MxLjgwNi0uOTM3IDMuOTE1LTEuNDY1IDYuMTctMS40NjUgMi4yNDMgMCA0LjMzOS41MjggNi4xNDEgMS40NTJsLTEuMjc4IDYuNDg5YTE1LjM3NSAxNS4zNzUgMCAwMC00LjkxNS0uNzk0Yy0xLjc5MyAwLTMuMzI0LjI1NC00Ljg3My43OTRMNS44MjYgMTQuNTN6IiBmaWxsPSIjMTYxNjE2Ii8+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMCAxIDEgMCAzLjQ5OCA0LjY0MikiPjx1c2UgZmlsbD0iIzNDNDI0MiIgeGxpbms6aHJlZj0iI3ByZWZpeF9fZSIvPjx1c2UgZmlsbD0idXJsKCNwcmVmaXhfX2YpIiB4bGluazpocmVmPSIjcHJlZml4X19lIi8+PC9nPjxnIG9wYWNpdHk9Ii45IiB0cmFuc2Zvcm09Im1hdHJpeCgwIDEgMSAwIDMuNDk4IDQuNjQyKSI+PHVzZSBmaWxsPSIjMTYxNjE2IiB4bGluazpocmVmPSIjcHJlZml4X19nIi8+PHVzZSBmaWxsPSJ1cmwoI3ByZWZpeF9faCkiIHhsaW5rOmhyZWY9IiNwcmVmaXhfX2ciLz48L2c+PHBhdGggZD0iTTMuODcgMTcuNjUxbC44NzYtLjQ2MmEuMzEzLjMxMyAwIDAwLjE3LS4yNzR2LS4xODhsLTEuMzE3LjY5NXYuMDgyYy4wMDQuMTI3LjE1Mi4yMDkuMjcuMTQ3eiIgZmlsbD0iIzMwMzQzNSIvPjxwYXRoIGQ9Ik0zLjU2NCAxNy40NWwxLjA4Mi0uNTY4Yy4xLS4wNTMuMjEtLjA5LjMyNy0uMTA2YS4xMDguMTA4IDAgMDAuMDk2LS4xMDd2LS41NTJjMC0uMDktLjA3OC0uMTY0LS4xNzQtLjE2NEg0Ljg1Yy0uMTEgMC0uNTAyLjA2Mi0xIC41MjgtLjIyMi4yMDktLjM1My42MzgtLjM1My45MzMgMCAuMDMzLjAzNS4wNTMuMDY2LjAzN3oiIGZpbGw9IiNERkVDRjIiLz48cGF0aCBkPSJNNS40MzQgMTUuMDYyczEuMDk1IDQuNDY3IDEuMjI2IDcuNDg2Yy4xMzEgMy4wMi0uMDE3IDMuNDctLjIxIDUuMjgyLS4wNTEuNTA3LS45MzcgMy44MTMtLjkzNyAzLjgxM0w1LjM2IDI1LjE3bC4wNzQtMTAuMTF6IiBmaWxsPSIjMTYxNjE2IiBvcGFjaXR5PSIuOSIvPjxwYXRoIGQ9Ik0yMC4xMyAxNy42NTFsLS44NzYtLjQ2MmEuMzEzLjMxMyAwIDAxLS4xNy0uMjc0di0uMTg4bDEuMzE3LjY5NXYuMDgyYy0uMDA0LjEyNy0uMTUyLjIwOS0uMjcuMTQ3eiIgZmlsbD0iIzMwMzQzNSIvPjxwYXRoIGQ9Ik0yMC40MzYgMTcuNDVsLTEuMDgyLS41NjhhLjk4NC45ODQgMCAwMC0uMzI3LS4xMDYuMTA4LjEwOCAwIDAxLS4wOTYtLjEwN3YtLjU1MmMwLS4wOS4wNzgtLjE2NC4xNzQtLjE2NGguMDQ0Yy4xMSAwIC41MDIuMDYyIDEgLjUyOC4yMjIuMjA5LjM1My42MzguMzUzLjkzMyAwIC4wMzMtLjAzNS4wNTMtLjA2Ni4wMzd6IiBmaWxsPSIjREZFQ0YyIi8+PHBhdGggZD0iTTkuMjk2IDM4LjUyNGg1LjM3NWMyLjI1MiAwIDIuODA2LS40NTggMy40MzQtMS4xNS0uMTA0LjI4Ny0uMjE4LjUyLS4zNDQuNjU5LS43MTIuNzgxLTEuMDI2IDEuMzI1LTMuMzU2IDEuMzI1SDkuNTU4Yy0yLjMzIDAtMi41NDQtLjQ4Ni0zLjM5LTEuMzI1LS4xNDktLjE0Ny0uMjc2LS40MDUtLjM4OS0uNzMyLjc1NS43NzcgMS4xNjUgMS4yMjMgMy41MTcgMS4yMjN6IiBmaWxsPSIjOTVBNEFEIi8+PHBhdGggZD0iTTguODgxIDM3LjkyMmg2LjA1MmMxLjkxMSAwIDIuNzM2LS4yOTggMy4zMy0uNzgxYTMuMDc1IDMuMDc1IDAgMDEtLjI5Ny43MmMtLjU4NS42MTgtMS4yMyAxLjAxOS0zLjMzNCAxLjAxOUg5LjE3OGMtMS40OCAwLTIuMi0uMTc2LTIuNzE4LS41MDQtLjExOC0uMTEtLjI0LS4yMzctLjM4NC0uMzg0LS4xNC0uMTQ3LS4yNjYtLjQwNS0uMzc2LS43NC41OS40MzMgMS4zOC42NyAzLjE4MS42N3oiIGZpbGw9IiNDQkQ4REUiLz48cGF0aCBkPSJNMTEuODE4IDM4LjAzN2MxLjY1IDAgMy4xMTUtLjA2NiA0LjA0LS4xNjQtLjA3LjE5My0uMTUyLjM0NC0uMjQuNDI2LS4wMzUuMDM3LS4xMTMuMDctLjE0OC4wOTgtLjkyNS4wODItMi4xOTUuMTMtMy42NTIuMTNhNDYuMjIgNDYuMjIgMCAwMS0zLjUzOS0uMTE4Yy0uMDQtLjAzMy0uMTI2LS4wNy0uMTctLjExLS4wOTYtLjA4Mi0uMTc5LS4yMy0uMjUzLS40MTguOTM0LjA5OSAyLjM2LjE1NiAzLjk2Mi4xNTZ6IiBmaWxsPSIjRjJGQUZGIi8+PHBhdGggZD0iTTExLjk4OCAxMi4xOTRjLTIuMjAzIDAtNC4yODUuNDQ2LTYuMTA5IDEuMjI3Ljc4Ny02Ljk2MSAzLjUtNy4xOCAzLjUtNy4xOGg1LjE5MnMzLjEyNS4zMTkgMy41IDcuMTcyYTE1LjQ5MyAxNS40OTMgMCAwMC02LjA4My0xLjIyeiIgZmlsbD0iI0Y5RkRGRiIvPjxnIHRyYW5zZm9ybT0ibWF0cml4KDAgMSAxIDAgNS44MzQgMzcuNTE3KSI+PHVzZSBmaWxsPSIjQjkyRTREIiB4bGluazpocmVmPSIjcHJlZml4X19pIi8+PHVzZSBmaWxsLW9wYWNpdHk9Ii43IiBmaWxsPSJ1cmwoI3ByZWZpeF9faikiIHhsaW5rOmhyZWY9IiNwcmVmaXhfX2kiLz48L2c+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMCAxIDEgMCAxMS40MzggMzcuNTE3KSI+PHVzZSBmaWxsPSIjQjkyRTREIiB4bGluazpocmVmPSIjcHJlZml4X19rIi8+PHVzZSBmaWxsLW9wYWNpdHk9Ii43IiBmaWxsPSJ1cmwoI3ByZWZpeF9fbCkiIHhsaW5rOmhyZWY9IiNwcmVmaXhfX2siLz48L2c+PHBhdGggZD0iTTE4LjQxIDM2LjI3NGMtLjAzOC4yNS0uMDgyLjQ1NC0uMTMuNjQyLS4wOTIuMzcyLS40MTkuNjU1LS44Mi43MTItMS40NzUuMjA4LTMuNDM0LjQyMS01LjU4MS40MjEtMi4wODYgMC0zLjk4OC0uMjA0LTUuNDQ2LS40MDVhLjk3NS45NzUgMCAwMS0uODI0LS43MDggOC45MDMgOC45MDMgMCAwMS0uMTM1LS42NDJjMS41MjIuMjUgMy44MjYuNDEgNi40MDUuNDEgMi42NDggMCA1LjAwOS0uMTY4IDYuNTMyLS40M3oiIGZpbGw9IiNERkVDRjIiLz48cGF0aCBkPSJNMTYuMjE2IDM2LjcxMWMtLjk0Ny40ODctMi40ODcuNy00LjIzMi43LTEuNjk4IDAtMy4yMDctLjE5Ni00LjE1OS0uNjYzLS40NC0uODMtLjY2My0yLjY0My0uNjYzLTIuNjQzbC0uMDA5LS4xODRjLjc3My43MDggMi42NDUgMS4yMDMgNC44MyAxLjIwMyAyLjI0MyAwIDQuMTU5LS41MjQgNC44OTItMS4yNmwtLjAxMy4yNDFjMC0uMDA0LS4yMTggMS43NjQtLjY0NiAyLjYwNnpNNy40NDcgMjMuOTNhMjAuMTIgMjAuMTIgMCAwMC0uMjk0LTIuNDQydi0uMDY1YzEuNTM4LS4zMiAzLjE2Ny0uNjQ5IDQuODYyLS42NDkgMS42NzUgMCAzLjI5NC4zMjYgNC44MTYuNjM3YTIyLjY3MyAyMi42NzMgMCAwMC0uMzAzIDIuNTJjLS4xNDcgMi44ODQuMDIgMy4zMTQuMjMyIDUuMDQ4LjAwNi4wNTcuMDI2LjE1Mi4wNTYuMjc0LTEuNTEzLjI3OC0zIC41NC00LjkxMi41NC0xLjg0NyAwLTMuMjg5LS4yNS00Ljc1LS41MTF2LS4wMDhjLjAzLS4xMzEuMDU1LS4yMzMuMDYtLjI5LjIxOC0xLjc0NC4zOC0yLjE3My4yMzMtNS4wNTN6IiBmaWxsPSIjRjJGQUZGIi8+PHBhdGggZD0iTTEyLjA2NyAxOS43MTZsLTQuNjQ1LjY5MmMtLjQzMS0yLjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";
|
|
2533
|
+
var Me = "_65j3sr1", yn = "_4a4ovk5", jn = "_4a4ovk0", An = "_4a4ovk2";
|
|
2534
|
+
const vo = p(function(e) {
|
|
2535
|
+
S(e, "ATaxiCar");
|
|
2492
2536
|
const n = N(() => {
|
|
2493
2537
|
var o;
|
|
2494
|
-
const i =
|
|
2495
|
-
return
|
|
2496
|
-
<div class="${
|
|
2497
|
-
<div class="${
|
|
2538
|
+
const i = e.title ? Ae(e.title).map((r) => r.type === "normal" ? r.value : `<span class="${yn}">${r.value}</span>`).join("") : "", a = `transform:rotate(${(o = e.angle) != null ? o : 0}deg)`;
|
|
2539
|
+
return e.title ? `
|
|
2540
|
+
<div class="${jn}">
|
|
2541
|
+
<div class="${An}">${i}</div>
|
|
2498
2542
|
<img src="${Ie}" class="${Me}" style="${a}">
|
|
2499
2543
|
</div>
|
|
2500
2544
|
` : `<img src="${Ie}" class="${Me}" style="${a}">`;
|
|
2501
2545
|
});
|
|
2502
|
-
return () =>
|
|
2546
|
+
return () => g(W, {
|
|
2503
2547
|
attrs: {
|
|
2504
|
-
position:
|
|
2548
|
+
position: e.position,
|
|
2505
2549
|
content: n.value,
|
|
2506
2550
|
anchor: "bottom-center",
|
|
2507
|
-
registerOverlay:
|
|
2551
|
+
registerOverlay: e.registerOverlay
|
|
2508
2552
|
}
|
|
2509
2553
|
});
|
|
2510
|
-
}),
|
|
2511
|
-
S(
|
|
2554
|
+
}), po = p(function(e) {
|
|
2555
|
+
S(e, "GTaxiCar");
|
|
2512
2556
|
const n = N(() => {
|
|
2513
2557
|
var o;
|
|
2514
|
-
const i =
|
|
2515
|
-
return
|
|
2516
|
-
class:
|
|
2558
|
+
const i = e.title ? Ae(e.title).map((r) => r.type === "normal" ? r.value : `<span class="${yn}">${r.value}</span>`).join("") : "", a = `transform:rotate(${(o = e.angle) != null ? o : 0}deg)`;
|
|
2559
|
+
return e.title ? z("div", {
|
|
2560
|
+
class: jn
|
|
2517
2561
|
}, `
|
|
2518
|
-
<div class="${
|
|
2562
|
+
<div class="${An}">${i}</div>
|
|
2519
2563
|
<img src="${Ie}" class="${Me}" style="${a}">
|
|
2520
|
-
`) :
|
|
2564
|
+
`) : z("img", {
|
|
2521
2565
|
class: Me,
|
|
2522
2566
|
src: Ie,
|
|
2523
2567
|
style: a
|
|
2524
2568
|
});
|
|
2525
2569
|
});
|
|
2526
|
-
return () =>
|
|
2570
|
+
return () => g(U, {
|
|
2527
2571
|
attrs: {
|
|
2528
|
-
position:
|
|
2572
|
+
position: w(e.position),
|
|
2529
2573
|
content: n.value,
|
|
2530
|
-
registerOverlay:
|
|
2574
|
+
registerOverlay: e.registerOverlay
|
|
2531
2575
|
}
|
|
2532
2576
|
});
|
|
2533
|
-
}),
|
|
2577
|
+
}), Ge = p(function(e) {
|
|
2534
2578
|
const n = L();
|
|
2535
|
-
return () => Z(n.supplier === "gmap" ?
|
|
2536
|
-
attrs:
|
|
2579
|
+
return () => Z(n.supplier === "gmap" ? po : vo, {
|
|
2580
|
+
attrs: e
|
|
2537
2581
|
});
|
|
2538
|
-
}),
|
|
2539
|
-
return S(
|
|
2582
|
+
}), yo = p(function(e) {
|
|
2583
|
+
return S(e, "AWalkingLine"), () => {
|
|
2540
2584
|
const {
|
|
2541
2585
|
path: n
|
|
2542
|
-
} =
|
|
2586
|
+
} = e;
|
|
2543
2587
|
if (n.length === 0)
|
|
2544
2588
|
return null;
|
|
2545
2589
|
const a = 2 * (window.innerWidth * 0.01);
|
|
2546
|
-
return
|
|
2590
|
+
return g(te, {
|
|
2547
2591
|
attrs: {
|
|
2548
2592
|
path: n,
|
|
2549
2593
|
strokeWeight: a,
|
|
@@ -2556,15 +2600,15 @@ const so = v(function(t) {
|
|
|
2556
2600
|
}
|
|
2557
2601
|
});
|
|
2558
2602
|
};
|
|
2559
|
-
}),
|
|
2560
|
-
S(
|
|
2561
|
-
const n = N(() =>
|
|
2603
|
+
}), jo = p(function(e) {
|
|
2604
|
+
S(e, "GWalkingLine");
|
|
2605
|
+
const n = N(() => e.path.map(w));
|
|
2562
2606
|
return () => {
|
|
2563
2607
|
const i = n.value;
|
|
2564
2608
|
if (i.length === 0)
|
|
2565
2609
|
return null;
|
|
2566
2610
|
const o = 2 * (window.innerWidth * 0.01), r = o / 4;
|
|
2567
|
-
return
|
|
2611
|
+
return g(ce, {
|
|
2568
2612
|
attrs: {
|
|
2569
2613
|
path: i,
|
|
2570
2614
|
strokeWeight: o,
|
|
@@ -2590,15 +2634,15 @@ const so = v(function(t) {
|
|
|
2590
2634
|
}
|
|
2591
2635
|
});
|
|
2592
2636
|
};
|
|
2593
|
-
}),
|
|
2637
|
+
}), Ln = p(function(e) {
|
|
2594
2638
|
const n = L();
|
|
2595
|
-
return () => Z(n.supplier === "gmap" ?
|
|
2596
|
-
attrs:
|
|
2639
|
+
return () => Z(n.supplier === "gmap" ? jo : yo, {
|
|
2640
|
+
attrs: e
|
|
2597
2641
|
});
|
|
2598
|
-
}),
|
|
2599
|
-
const
|
|
2600
|
-
return
|
|
2601
|
-
() => ({ ...
|
|
2642
|
+
}), Sn = (t) => {
|
|
2643
|
+
const e = b([]), n = new AMap.Walking({});
|
|
2644
|
+
return $(
|
|
2645
|
+
() => ({ ...t }),
|
|
2602
2646
|
({ from: i, to: a }) => {
|
|
2603
2647
|
n.search(AMap.LngLat.from(i), AMap.LngLat.from(a), (o, r) => {
|
|
2604
2648
|
switch (o) {
|
|
@@ -2609,26 +2653,26 @@ const so = v(function(t) {
|
|
|
2609
2653
|
return;
|
|
2610
2654
|
const l = u.routes[0];
|
|
2611
2655
|
console.log("firstRoute = ", l);
|
|
2612
|
-
for (const
|
|
2613
|
-
const c =
|
|
2656
|
+
for (const d of l.steps) {
|
|
2657
|
+
const c = d.path.map(({ lng: I, lat: M }) => [I, M]);
|
|
2614
2658
|
s = s.concat(c);
|
|
2615
2659
|
}
|
|
2616
|
-
|
|
2660
|
+
e.value = s;
|
|
2617
2661
|
return;
|
|
2618
2662
|
}
|
|
2619
2663
|
case "no_data":
|
|
2620
|
-
|
|
2664
|
+
e.value = [];
|
|
2621
2665
|
return;
|
|
2622
2666
|
default:
|
|
2623
2667
|
throw r;
|
|
2624
2668
|
}
|
|
2625
2669
|
});
|
|
2626
2670
|
}
|
|
2627
|
-
),
|
|
2628
|
-
},
|
|
2629
|
-
const
|
|
2630
|
-
return
|
|
2631
|
-
() => ({ ...
|
|
2671
|
+
), e;
|
|
2672
|
+
}, Nn = (t) => {
|
|
2673
|
+
const e = b([]), n = new google.maps.DirectionsService();
|
|
2674
|
+
return $(
|
|
2675
|
+
() => ({ ...t }),
|
|
2632
2676
|
({ from: i, to: a }) => {
|
|
2633
2677
|
n.route(
|
|
2634
2678
|
{
|
|
@@ -2640,16 +2684,16 @@ const so = v(function(t) {
|
|
|
2640
2684
|
switch (r) {
|
|
2641
2685
|
case google.maps.DirectionsStatus.OK: {
|
|
2642
2686
|
let s = [];
|
|
2643
|
-
const l = o.routes[0].overview_path.map((
|
|
2644
|
-
|
|
2645
|
-
|
|
2687
|
+
const l = o.routes[0].overview_path.map((d) => [
|
|
2688
|
+
d.lng(),
|
|
2689
|
+
d.lat()
|
|
2646
2690
|
]);
|
|
2647
|
-
s = s.concat(l),
|
|
2691
|
+
s = s.concat(l), e.value = s;
|
|
2648
2692
|
return;
|
|
2649
2693
|
}
|
|
2650
2694
|
case google.maps.DirectionsStatus.ZERO_RESULTS:
|
|
2651
2695
|
case google.maps.DirectionsStatus.NOT_FOUND:
|
|
2652
|
-
|
|
2696
|
+
e.value = [];
|
|
2653
2697
|
return;
|
|
2654
2698
|
default:
|
|
2655
2699
|
throw new Error(r);
|
|
@@ -2657,308 +2701,308 @@ const so = v(function(t) {
|
|
|
2657
2701
|
}
|
|
2658
2702
|
);
|
|
2659
2703
|
}
|
|
2660
|
-
),
|
|
2661
|
-
},
|
|
2662
|
-
const { supplier:
|
|
2663
|
-
return
|
|
2664
|
-
},
|
|
2704
|
+
), e;
|
|
2705
|
+
}, Xo = (t) => {
|
|
2706
|
+
const { supplier: e } = L();
|
|
2707
|
+
return e === "gmap" ? Nn(t) : Sn(t);
|
|
2708
|
+
}, Ao = p(function(e, {
|
|
2665
2709
|
slots: n
|
|
2666
2710
|
}) {
|
|
2667
|
-
S(
|
|
2668
|
-
const i =
|
|
2711
|
+
S(e, "AWalkingRoute");
|
|
2712
|
+
const i = Sn(e);
|
|
2669
2713
|
return () => {
|
|
2670
2714
|
var a;
|
|
2671
|
-
return
|
|
2715
|
+
return g("div", [(a = n.render) == null ? void 0 : a.call(n, x({
|
|
2672
2716
|
path: i
|
|
2673
2717
|
}))]);
|
|
2674
2718
|
};
|
|
2675
|
-
}),
|
|
2719
|
+
}), Lo = p(function(e, {
|
|
2676
2720
|
slots: n
|
|
2677
2721
|
}) {
|
|
2678
|
-
S(
|
|
2679
|
-
const i =
|
|
2722
|
+
S(e, "GWalkingRoute");
|
|
2723
|
+
const i = Nn(e);
|
|
2680
2724
|
return () => {
|
|
2681
2725
|
var a;
|
|
2682
|
-
return
|
|
2726
|
+
return g("div", [(a = n.render) == null ? void 0 : a.call(n, x({
|
|
2683
2727
|
path: i
|
|
2684
2728
|
}))]);
|
|
2685
2729
|
};
|
|
2686
|
-
}),
|
|
2730
|
+
}), hn = p(function(e, {
|
|
2687
2731
|
slots: n
|
|
2688
2732
|
}) {
|
|
2689
2733
|
const {
|
|
2690
2734
|
supplier: i
|
|
2691
2735
|
} = L();
|
|
2692
|
-
return () => Z(i === "gmap" ?
|
|
2693
|
-
attrs:
|
|
2736
|
+
return () => Z(i === "gmap" ? Lo : Ao, {
|
|
2737
|
+
attrs: e,
|
|
2694
2738
|
scopedSlots: n
|
|
2695
2739
|
});
|
|
2696
2740
|
}), me = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";
|
|
2697
|
-
var
|
|
2698
|
-
const
|
|
2699
|
-
S(
|
|
2700
|
-
const n = N(() => `<img src="${me}" class="${fe}">`), i = N(() => `<img src="${me}" class="${fe} ${
|
|
2701
|
-
return () =>
|
|
2741
|
+
var Dn = "rrvp0y3", fe = "rrvp0y2";
|
|
2742
|
+
const So = p(function(e) {
|
|
2743
|
+
S(e, "AWaveCircle");
|
|
2744
|
+
const n = N(() => `<img src="${me}" class="${fe}">`), i = N(() => `<img src="${me}" class="${fe} ${Dn}">`);
|
|
2745
|
+
return () => g("div", [g(W, {
|
|
2702
2746
|
attrs: {
|
|
2703
|
-
position:
|
|
2747
|
+
position: e.position,
|
|
2704
2748
|
anchor: "bottom-center",
|
|
2705
2749
|
content: n.value
|
|
2706
2750
|
}
|
|
2707
|
-
}),
|
|
2751
|
+
}), g(W, {
|
|
2708
2752
|
attrs: {
|
|
2709
|
-
position:
|
|
2753
|
+
position: e.position,
|
|
2710
2754
|
anchor: "bottom-center",
|
|
2711
2755
|
content: i.value
|
|
2712
2756
|
}
|
|
2713
2757
|
})]);
|
|
2714
|
-
}),
|
|
2715
|
-
S(
|
|
2716
|
-
const n = N(() =>
|
|
2758
|
+
}), No = p(function(e) {
|
|
2759
|
+
S(e, "GWaveCircle");
|
|
2760
|
+
const n = N(() => z("img", {
|
|
2717
2761
|
class: fe,
|
|
2718
2762
|
src: me
|
|
2719
|
-
})), i = N(() =>
|
|
2720
|
-
class: `${fe} ${
|
|
2763
|
+
})), i = N(() => z("img", {
|
|
2764
|
+
class: `${fe} ${Dn}`,
|
|
2721
2765
|
src: me
|
|
2722
2766
|
}));
|
|
2723
2767
|
return () => {
|
|
2724
|
-
const a =
|
|
2725
|
-
return
|
|
2768
|
+
const a = w(e.position);
|
|
2769
|
+
return g("div", [g(U, {
|
|
2726
2770
|
attrs: {
|
|
2727
2771
|
position: a,
|
|
2728
2772
|
content: n.value
|
|
2729
2773
|
}
|
|
2730
|
-
}),
|
|
2774
|
+
}), g(U, {
|
|
2731
2775
|
attrs: {
|
|
2732
2776
|
position: a,
|
|
2733
2777
|
content: i.value
|
|
2734
2778
|
}
|
|
2735
2779
|
})]);
|
|
2736
2780
|
};
|
|
2737
|
-
}),
|
|
2781
|
+
}), ho = p(function(e) {
|
|
2738
2782
|
const n = L();
|
|
2739
|
-
return () => Z(n.supplier === "gmap" ?
|
|
2740
|
-
attrs:
|
|
2783
|
+
return () => Z(n.supplier === "gmap" ? No : So, {
|
|
2784
|
+
attrs: e
|
|
2741
2785
|
});
|
|
2742
|
-
}),
|
|
2743
|
-
emit:
|
|
2744
|
-
}) => (S(
|
|
2786
|
+
}), Do = ["book-driverStartService", "dispatched", "driverStartService", "inService", "driverArrived"], lt = p((t, {
|
|
2787
|
+
emit: e
|
|
2788
|
+
}) => (S(t, "SectionDispatching"), Y(() => e("mapMounted")), () => {
|
|
2745
2789
|
const {
|
|
2746
2790
|
from: n,
|
|
2747
2791
|
title: i,
|
|
2748
2792
|
registerOverlay: a
|
|
2749
|
-
} =
|
|
2750
|
-
return
|
|
2793
|
+
} = t, o = C(n);
|
|
2794
|
+
return g("div", [g(E, {
|
|
2751
2795
|
attrs: {
|
|
2752
2796
|
type: "start",
|
|
2753
2797
|
position: o,
|
|
2754
2798
|
title: i,
|
|
2755
2799
|
registerOverlay: a,
|
|
2756
|
-
log:
|
|
2800
|
+
log: t.log
|
|
2757
2801
|
}
|
|
2758
|
-
}),
|
|
2802
|
+
}), g(ho, {
|
|
2759
2803
|
attrs: {
|
|
2760
2804
|
position: o,
|
|
2761
|
-
log:
|
|
2805
|
+
log: t.log
|
|
2762
2806
|
}
|
|
2763
|
-
}),
|
|
2807
|
+
}), g(O, {
|
|
2764
2808
|
attrs: {
|
|
2765
2809
|
position: o,
|
|
2766
2810
|
label: n.name,
|
|
2767
2811
|
hideIcon: !0,
|
|
2768
|
-
log:
|
|
2812
|
+
log: t.log
|
|
2769
2813
|
}
|
|
2770
2814
|
})]);
|
|
2771
|
-
})),
|
|
2772
|
-
emit:
|
|
2773
|
-
}) => (S(
|
|
2815
|
+
})), Co = p((t, {
|
|
2816
|
+
emit: e
|
|
2817
|
+
}) => (S(t, "SectionDriverStartService"), Y(() => e("mapMounted")), () => {
|
|
2774
2818
|
const {
|
|
2775
2819
|
from: n,
|
|
2776
2820
|
carPosition: i,
|
|
2777
2821
|
passengerPosition: a,
|
|
2778
2822
|
renderTitle: o,
|
|
2779
2823
|
registerOverlay: r
|
|
2780
|
-
} =
|
|
2781
|
-
return
|
|
2824
|
+
} = t, s = C(n);
|
|
2825
|
+
return g("div", [g(E, {
|
|
2782
2826
|
attrs: {
|
|
2783
2827
|
type: "start",
|
|
2784
2828
|
position: s,
|
|
2785
2829
|
registerOverlay: r,
|
|
2786
|
-
log:
|
|
2830
|
+
log: t.log
|
|
2787
2831
|
}
|
|
2788
|
-
}),
|
|
2832
|
+
}), g(O, {
|
|
2789
2833
|
attrs: {
|
|
2790
2834
|
position: s,
|
|
2791
2835
|
label: n.name,
|
|
2792
2836
|
hideIcon: !0,
|
|
2793
|
-
log:
|
|
2837
|
+
log: t.log
|
|
2794
2838
|
}
|
|
2795
|
-
}),
|
|
2839
|
+
}), g(Ne, {
|
|
2796
2840
|
attrs: {
|
|
2797
2841
|
from: i,
|
|
2798
2842
|
to: s,
|
|
2799
|
-
log:
|
|
2843
|
+
log: t.log,
|
|
2800
2844
|
render: ({
|
|
2801
2845
|
path: u,
|
|
2802
2846
|
distance: l,
|
|
2803
|
-
duration:
|
|
2804
|
-
}) => [
|
|
2847
|
+
duration: d
|
|
2848
|
+
}) => [g(Se, {
|
|
2805
2849
|
attrs: {
|
|
2806
2850
|
path: u,
|
|
2807
|
-
log:
|
|
2851
|
+
log: t.log
|
|
2808
2852
|
}
|
|
2809
|
-
}),
|
|
2853
|
+
}), g(Ge, {
|
|
2810
2854
|
attrs: {
|
|
2811
2855
|
position: i,
|
|
2812
2856
|
title: o({
|
|
2813
2857
|
distance: l,
|
|
2814
|
-
duration:
|
|
2858
|
+
duration: d
|
|
2815
2859
|
}),
|
|
2816
|
-
log:
|
|
2860
|
+
log: t.log
|
|
2817
2861
|
}
|
|
2818
2862
|
})]
|
|
2819
2863
|
}
|
|
2820
|
-
}),
|
|
2864
|
+
}), g(hn, {
|
|
2821
2865
|
attrs: {
|
|
2822
2866
|
from: a,
|
|
2823
2867
|
to: s,
|
|
2824
|
-
log:
|
|
2868
|
+
log: t.log,
|
|
2825
2869
|
render: ({
|
|
2826
2870
|
path: u
|
|
2827
|
-
}) =>
|
|
2871
|
+
}) => g(Ln, {
|
|
2828
2872
|
attrs: {
|
|
2829
2873
|
path: u,
|
|
2830
|
-
log:
|
|
2874
|
+
log: t.log
|
|
2831
2875
|
}
|
|
2832
2876
|
})
|
|
2833
2877
|
}
|
|
2834
|
-
}),
|
|
2878
|
+
}), g(Ce, {
|
|
2835
2879
|
attrs: {
|
|
2836
2880
|
position: a,
|
|
2837
2881
|
registerOverlay: r,
|
|
2838
|
-
log:
|
|
2882
|
+
log: t.log
|
|
2839
2883
|
}
|
|
2840
2884
|
})]);
|
|
2841
|
-
})),
|
|
2842
|
-
emit:
|
|
2843
|
-
}) => (S(
|
|
2885
|
+
})), xo = p((t, {
|
|
2886
|
+
emit: e
|
|
2887
|
+
}) => (S(t, "SectionBookDispatched"), Y(() => e("mapMounted")), () => {
|
|
2844
2888
|
const {
|
|
2845
2889
|
from: n,
|
|
2846
2890
|
passengerPosition: i,
|
|
2847
2891
|
title: a,
|
|
2848
2892
|
registerOverlay: o
|
|
2849
|
-
} =
|
|
2850
|
-
return
|
|
2893
|
+
} = t, r = C(n);
|
|
2894
|
+
return g("div", [g(E, {
|
|
2851
2895
|
attrs: {
|
|
2852
2896
|
type: "start",
|
|
2853
2897
|
position: r,
|
|
2854
2898
|
title: a,
|
|
2855
2899
|
registerOverlay: o,
|
|
2856
|
-
log:
|
|
2900
|
+
log: t.log
|
|
2857
2901
|
}
|
|
2858
|
-
}),
|
|
2902
|
+
}), g(O, {
|
|
2859
2903
|
attrs: {
|
|
2860
2904
|
position: r,
|
|
2861
2905
|
label: n.name,
|
|
2862
2906
|
hideIcon: !0,
|
|
2863
|
-
log:
|
|
2907
|
+
log: t.log
|
|
2864
2908
|
}
|
|
2865
|
-
}),
|
|
2909
|
+
}), g(Ce, {
|
|
2866
2910
|
attrs: {
|
|
2867
2911
|
position: i,
|
|
2868
2912
|
registerOverlay: o,
|
|
2869
|
-
log:
|
|
2913
|
+
log: t.log
|
|
2870
2914
|
}
|
|
2871
2915
|
})]);
|
|
2872
|
-
})),
|
|
2873
|
-
emit:
|
|
2874
|
-
}) => (S(
|
|
2916
|
+
})), wo = p((t, {
|
|
2917
|
+
emit: e
|
|
2918
|
+
}) => (S(t, "SectionDriverArrived"), Y(() => e("mapMounted")), () => {
|
|
2875
2919
|
const {
|
|
2876
2920
|
from: n,
|
|
2877
2921
|
carPosition: i,
|
|
2878
2922
|
passengerPosition: a,
|
|
2879
2923
|
title: o,
|
|
2880
2924
|
registerOverlay: r
|
|
2881
|
-
} =
|
|
2882
|
-
return
|
|
2925
|
+
} = t, s = C(n);
|
|
2926
|
+
return g("div", [g(Ge, {
|
|
2883
2927
|
attrs: {
|
|
2884
2928
|
position: i,
|
|
2885
2929
|
title: o,
|
|
2886
2930
|
registerOverlay: r,
|
|
2887
|
-
log:
|
|
2931
|
+
log: t.log
|
|
2888
2932
|
}
|
|
2889
|
-
}),
|
|
2933
|
+
}), g(E, {
|
|
2890
2934
|
attrs: {
|
|
2891
2935
|
type: "start",
|
|
2892
2936
|
position: s,
|
|
2893
2937
|
registerOverlay: r,
|
|
2894
|
-
log:
|
|
2938
|
+
log: t.log
|
|
2895
2939
|
}
|
|
2896
|
-
}),
|
|
2940
|
+
}), g(O, {
|
|
2897
2941
|
attrs: {
|
|
2898
2942
|
position: s,
|
|
2899
2943
|
label: n.name,
|
|
2900
2944
|
hideIcon: !0,
|
|
2901
|
-
log:
|
|
2945
|
+
log: t.log
|
|
2902
2946
|
}
|
|
2903
|
-
}),
|
|
2947
|
+
}), g(hn, {
|
|
2904
2948
|
attrs: {
|
|
2905
2949
|
from: a,
|
|
2906
2950
|
to: s,
|
|
2907
|
-
log:
|
|
2951
|
+
log: t.log,
|
|
2908
2952
|
render: ({
|
|
2909
2953
|
path: u
|
|
2910
|
-
}) =>
|
|
2954
|
+
}) => g(Ln, {
|
|
2911
2955
|
attrs: {
|
|
2912
2956
|
path: u
|
|
2913
2957
|
}
|
|
2914
2958
|
})
|
|
2915
2959
|
}
|
|
2916
|
-
}),
|
|
2960
|
+
}), g(Ce, {
|
|
2917
2961
|
attrs: {
|
|
2918
2962
|
position: a,
|
|
2919
2963
|
size: "small",
|
|
2920
2964
|
registerOverlay: r,
|
|
2921
|
-
log:
|
|
2965
|
+
log: t.log
|
|
2922
2966
|
}
|
|
2923
2967
|
})]);
|
|
2924
|
-
})),
|
|
2925
|
-
emit:
|
|
2926
|
-
}) => (S(
|
|
2968
|
+
})), Po = p((t, {
|
|
2969
|
+
emit: e
|
|
2970
|
+
}) => (S(t, "SectionInService"), Y(() => e("mapMounted")), () => {
|
|
2927
2971
|
const {
|
|
2928
2972
|
to: n,
|
|
2929
2973
|
carPosition: i,
|
|
2930
2974
|
renderTitle: a,
|
|
2931
2975
|
registerOverlay: o
|
|
2932
|
-
} =
|
|
2933
|
-
return
|
|
2976
|
+
} = t, r = C(n);
|
|
2977
|
+
return g("div", [g(E, {
|
|
2934
2978
|
attrs: {
|
|
2935
2979
|
type: "end",
|
|
2936
2980
|
position: r,
|
|
2937
2981
|
registerOverlay: o,
|
|
2938
|
-
log:
|
|
2982
|
+
log: t.log
|
|
2939
2983
|
}
|
|
2940
|
-
}),
|
|
2984
|
+
}), g(O, {
|
|
2941
2985
|
attrs: {
|
|
2942
2986
|
position: i,
|
|
2943
2987
|
label: "'WebSter Dental Plaza'",
|
|
2944
2988
|
hideIcon: !0,
|
|
2945
|
-
log:
|
|
2989
|
+
log: t.log
|
|
2946
2990
|
}
|
|
2947
|
-
}),
|
|
2991
|
+
}), g(Ne, {
|
|
2948
2992
|
attrs: {
|
|
2949
2993
|
from: i,
|
|
2950
2994
|
to: r,
|
|
2951
|
-
log:
|
|
2995
|
+
log: t.log,
|
|
2952
2996
|
render: ({
|
|
2953
2997
|
path: s,
|
|
2954
2998
|
distance: u,
|
|
2955
2999
|
duration: l
|
|
2956
|
-
}) => [
|
|
3000
|
+
}) => [g(Se, {
|
|
2957
3001
|
attrs: {
|
|
2958
3002
|
path: s,
|
|
2959
|
-
log:
|
|
3003
|
+
log: t.log
|
|
2960
3004
|
}
|
|
2961
|
-
}),
|
|
3005
|
+
}), g(Ge, {
|
|
2962
3006
|
attrs: {
|
|
2963
3007
|
position: i,
|
|
2964
3008
|
title: a({
|
|
@@ -2966,122 +3010,122 @@ const Mo = v(function(t) {
|
|
|
2966
3010
|
duration: l
|
|
2967
3011
|
}),
|
|
2968
3012
|
registerOverlay: o,
|
|
2969
|
-
log:
|
|
3013
|
+
log: t.log
|
|
2970
3014
|
}
|
|
2971
3015
|
})]
|
|
2972
3016
|
}
|
|
2973
3017
|
})]);
|
|
2974
|
-
})),
|
|
2975
|
-
emit:
|
|
2976
|
-
}) => (S(
|
|
3018
|
+
})), bo = p((t, {
|
|
3019
|
+
emit: e
|
|
3020
|
+
}) => (S(t, "SectionCanceled"), Y(() => e("mapMounted")), () => {
|
|
2977
3021
|
const {
|
|
2978
3022
|
from: n,
|
|
2979
3023
|
to: i,
|
|
2980
3024
|
registerOverlay: a
|
|
2981
|
-
} =
|
|
2982
|
-
return
|
|
3025
|
+
} = t, o = C(n), r = C(i);
|
|
3026
|
+
return g("div", [g(E, {
|
|
2983
3027
|
attrs: {
|
|
2984
3028
|
type: "start",
|
|
2985
3029
|
position: o,
|
|
2986
3030
|
registerOverlay: a,
|
|
2987
|
-
log:
|
|
3031
|
+
log: t.log
|
|
2988
3032
|
}
|
|
2989
|
-
}),
|
|
3033
|
+
}), g(E, {
|
|
2990
3034
|
attrs: {
|
|
2991
3035
|
type: "end",
|
|
2992
3036
|
position: r,
|
|
2993
3037
|
registerOverlay: a,
|
|
2994
|
-
log:
|
|
3038
|
+
log: t.log
|
|
2995
3039
|
}
|
|
2996
|
-
}),
|
|
3040
|
+
}), g(O, {
|
|
2997
3041
|
attrs: {
|
|
2998
3042
|
position: o,
|
|
2999
3043
|
label: n.name,
|
|
3000
3044
|
hideIcon: !0,
|
|
3001
|
-
log:
|
|
3045
|
+
log: t.log
|
|
3002
3046
|
}
|
|
3003
|
-
}),
|
|
3047
|
+
}), g(O, {
|
|
3004
3048
|
attrs: {
|
|
3005
3049
|
position: r,
|
|
3006
3050
|
label: i.name,
|
|
3007
3051
|
hideIcon: !0,
|
|
3008
|
-
log:
|
|
3052
|
+
log: t.log
|
|
3009
3053
|
}
|
|
3010
3054
|
})]);
|
|
3011
|
-
})), Te =
|
|
3012
|
-
emit:
|
|
3013
|
-
}) => (S(
|
|
3055
|
+
})), Te = p((t, {
|
|
3056
|
+
emit: e
|
|
3057
|
+
}) => (S(t, "SectionEndService"), Y(() => e("mapMounted")), () => {
|
|
3014
3058
|
const {
|
|
3015
3059
|
from: n,
|
|
3016
3060
|
to: i,
|
|
3017
3061
|
registerOverlay: a
|
|
3018
|
-
} =
|
|
3019
|
-
return
|
|
3062
|
+
} = t, o = C(n), r = C(i);
|
|
3063
|
+
return g("div", [g(E, {
|
|
3020
3064
|
attrs: {
|
|
3021
3065
|
type: "start",
|
|
3022
3066
|
position: o,
|
|
3023
3067
|
registerOverlay: a,
|
|
3024
|
-
log:
|
|
3068
|
+
log: t.log
|
|
3025
3069
|
}
|
|
3026
|
-
}),
|
|
3070
|
+
}), g(E, {
|
|
3027
3071
|
attrs: {
|
|
3028
3072
|
type: "end",
|
|
3029
3073
|
position: r,
|
|
3030
3074
|
registerOverlay: a,
|
|
3031
|
-
log:
|
|
3075
|
+
log: t.log
|
|
3032
3076
|
}
|
|
3033
|
-
}),
|
|
3077
|
+
}), g(O, {
|
|
3034
3078
|
attrs: {
|
|
3035
3079
|
position: o,
|
|
3036
3080
|
label: n.name,
|
|
3037
3081
|
hideIcon: !0,
|
|
3038
|
-
log:
|
|
3082
|
+
log: t.log
|
|
3039
3083
|
}
|
|
3040
|
-
}),
|
|
3084
|
+
}), g(O, {
|
|
3041
3085
|
attrs: {
|
|
3042
3086
|
position: r,
|
|
3043
3087
|
label: i.name,
|
|
3044
3088
|
hideIcon: !0,
|
|
3045
|
-
log:
|
|
3089
|
+
log: t.log
|
|
3046
3090
|
}
|
|
3047
|
-
}),
|
|
3091
|
+
}), g(Ne, {
|
|
3048
3092
|
attrs: {
|
|
3049
3093
|
from: o,
|
|
3050
3094
|
to: r,
|
|
3051
3095
|
render: ({
|
|
3052
3096
|
path: s
|
|
3053
|
-
}) =>
|
|
3097
|
+
}) => g(Se, {
|
|
3054
3098
|
attrs: {
|
|
3055
3099
|
path: s,
|
|
3056
3100
|
done: !0,
|
|
3057
|
-
log:
|
|
3101
|
+
log: t.log
|
|
3058
3102
|
}
|
|
3059
3103
|
}),
|
|
3060
|
-
log:
|
|
3104
|
+
log: t.log
|
|
3061
3105
|
}
|
|
3062
3106
|
})]);
|
|
3063
|
-
})),
|
|
3064
|
-
S(
|
|
3107
|
+
})), $o = ae((t) => {
|
|
3108
|
+
S(t, "BusinessTaxiServiceMap");
|
|
3065
3109
|
const {
|
|
3066
|
-
from:
|
|
3110
|
+
from: e,
|
|
3067
3111
|
interval: n,
|
|
3068
3112
|
registerOverlay: i,
|
|
3069
3113
|
mapRef: a,
|
|
3070
3114
|
getDriverPosition: o,
|
|
3071
3115
|
renderStartSerivceTitle: r,
|
|
3072
3116
|
renderInServiceTitle: s
|
|
3073
|
-
} =
|
|
3117
|
+
} = t, {
|
|
3074
3118
|
setFitView: u
|
|
3075
3119
|
} = i, {
|
|
3076
3120
|
geoPosition: l
|
|
3077
|
-
} =
|
|
3078
|
-
geoDefaultPosition:
|
|
3079
|
-
}),
|
|
3080
|
-
return
|
|
3081
|
-
if (!
|
|
3121
|
+
} = gn({
|
|
3122
|
+
geoDefaultPosition: C(e)
|
|
3123
|
+
}), d = D(C(t.from));
|
|
3124
|
+
return P(() => t.driverStatus, (c, I, M) => {
|
|
3125
|
+
if (!Do.includes(c))
|
|
3082
3126
|
return;
|
|
3083
3127
|
const m = setInterval(() => {
|
|
3084
|
-
o().then((f) =>
|
|
3128
|
+
o().then((f) => d.value = f);
|
|
3085
3129
|
}, n);
|
|
3086
3130
|
M(() => clearInterval(m));
|
|
3087
3131
|
}, {
|
|
@@ -3089,111 +3133,111 @@ const Mo = v(function(t) {
|
|
|
3089
3133
|
}), () => {
|
|
3090
3134
|
const {
|
|
3091
3135
|
driverStatus: c,
|
|
3092
|
-
from:
|
|
3136
|
+
from: I,
|
|
3093
3137
|
to: M,
|
|
3094
3138
|
dispatchingTitle: m,
|
|
3095
3139
|
bookDispatchingTitle: f,
|
|
3096
|
-
bookDispatchedTitle:
|
|
3097
|
-
driverArrivedTitle:
|
|
3098
|
-
} =
|
|
3099
|
-
return
|
|
3140
|
+
bookDispatchedTitle: j,
|
|
3141
|
+
driverArrivedTitle: A
|
|
3142
|
+
} = t, y = d.value;
|
|
3143
|
+
return g(Le, {
|
|
3100
3144
|
attrs: {
|
|
3101
|
-
center:
|
|
3145
|
+
center: C(I),
|
|
3102
3146
|
zoom: 13,
|
|
3103
3147
|
mapRef: a,
|
|
3104
|
-
log:
|
|
3148
|
+
log: t.log
|
|
3105
3149
|
}
|
|
3106
|
-
}, [c === "dispatching" ?
|
|
3150
|
+
}, [c === "dispatching" ? g(lt, {
|
|
3107
3151
|
attrs: {
|
|
3108
|
-
from:
|
|
3152
|
+
from: I,
|
|
3109
3153
|
title: m,
|
|
3110
3154
|
registerOverlay: i,
|
|
3111
|
-
log:
|
|
3155
|
+
log: t.log
|
|
3112
3156
|
},
|
|
3113
3157
|
on: {
|
|
3114
3158
|
mapMounted: u
|
|
3115
3159
|
}
|
|
3116
|
-
}) : c === "book-dispatching" ?
|
|
3160
|
+
}) : c === "book-dispatching" ? g(lt, {
|
|
3117
3161
|
attrs: {
|
|
3118
|
-
from:
|
|
3162
|
+
from: I,
|
|
3119
3163
|
title: f,
|
|
3120
3164
|
registerOverlay: i,
|
|
3121
|
-
log:
|
|
3165
|
+
log: t.log
|
|
3122
3166
|
},
|
|
3123
3167
|
on: {
|
|
3124
3168
|
mapMounted: u
|
|
3125
3169
|
}
|
|
3126
|
-
}) : c === "dispatched" || c === "driverStartService" || c === "book-driverStartService" ?
|
|
3170
|
+
}) : c === "dispatched" || c === "driverStartService" || c === "book-driverStartService" ? g(Co, {
|
|
3127
3171
|
attrs: {
|
|
3128
|
-
from:
|
|
3172
|
+
from: I,
|
|
3129
3173
|
carPosition: y,
|
|
3130
3174
|
passengerPosition: l.value,
|
|
3131
3175
|
renderTitle: r,
|
|
3132
3176
|
registerOverlay: i,
|
|
3133
|
-
log:
|
|
3177
|
+
log: t.log
|
|
3134
3178
|
},
|
|
3135
3179
|
on: {
|
|
3136
3180
|
mapMounted: u
|
|
3137
3181
|
}
|
|
3138
|
-
}) : c === "book-dispatched" ?
|
|
3182
|
+
}) : c === "book-dispatched" ? g(xo, {
|
|
3139
3183
|
attrs: {
|
|
3140
|
-
from:
|
|
3184
|
+
from: I,
|
|
3141
3185
|
passengerPosition: l.value,
|
|
3142
|
-
title:
|
|
3186
|
+
title: j,
|
|
3143
3187
|
registerOverlay: i,
|
|
3144
|
-
log:
|
|
3188
|
+
log: t.log
|
|
3145
3189
|
},
|
|
3146
3190
|
on: {
|
|
3147
3191
|
mapMounted: u
|
|
3148
3192
|
}
|
|
3149
|
-
}) : c === "inService" ?
|
|
3193
|
+
}) : c === "inService" ? g(Po, {
|
|
3150
3194
|
attrs: {
|
|
3151
3195
|
to: M,
|
|
3152
3196
|
carPosition: y,
|
|
3153
3197
|
renderTitle: s,
|
|
3154
3198
|
registerOverlay: i,
|
|
3155
|
-
log:
|
|
3199
|
+
log: t.log
|
|
3156
3200
|
},
|
|
3157
3201
|
on: {
|
|
3158
3202
|
mapMounted: u
|
|
3159
3203
|
}
|
|
3160
|
-
}) : c === "driverArrived" ?
|
|
3204
|
+
}) : c === "driverArrived" ? g(wo, {
|
|
3161
3205
|
attrs: {
|
|
3162
|
-
from:
|
|
3206
|
+
from: I,
|
|
3163
3207
|
carPosition: y,
|
|
3164
3208
|
passengerPosition: l.value,
|
|
3165
|
-
title:
|
|
3209
|
+
title: A,
|
|
3166
3210
|
registerOverlay: i,
|
|
3167
|
-
log:
|
|
3211
|
+
log: t.log
|
|
3168
3212
|
},
|
|
3169
3213
|
on: {
|
|
3170
3214
|
mapMounted: u
|
|
3171
3215
|
}
|
|
3172
|
-
}) : c === "canceled" || c === "canceling" ?
|
|
3216
|
+
}) : c === "canceled" || c === "canceling" ? g(bo, {
|
|
3173
3217
|
attrs: {
|
|
3174
|
-
from:
|
|
3218
|
+
from: I,
|
|
3175
3219
|
to: M,
|
|
3176
3220
|
registerOverlay: i,
|
|
3177
|
-
log:
|
|
3221
|
+
log: t.log
|
|
3178
3222
|
}
|
|
3179
|
-
}) : c === "endService" || c === "completed" || c === "banlanceRefund" || c === "waitBanlanceRefund" || c === "rechargePayed" || c === "waitRechargePay" || c === "payed" || c === "waitpay" || c === "refund" || c === "confirmed" ?
|
|
3223
|
+
}) : c === "endService" || c === "completed" || c === "banlanceRefund" || c === "waitBanlanceRefund" || c === "rechargePayed" || c === "waitRechargePay" || c === "payed" || c === "waitpay" || c === "refund" || c === "confirmed" ? g(Te, {
|
|
3180
3224
|
attrs: {
|
|
3181
|
-
from:
|
|
3225
|
+
from: I,
|
|
3182
3226
|
to: M,
|
|
3183
3227
|
registerOverlay: i,
|
|
3184
|
-
log:
|
|
3228
|
+
log: t.log
|
|
3185
3229
|
},
|
|
3186
3230
|
on: {
|
|
3187
3231
|
mapMounted: u
|
|
3188
3232
|
}
|
|
3189
3233
|
}) : (
|
|
3190
3234
|
// 匹配不到就显示灰色路线
|
|
3191
|
-
|
|
3235
|
+
g(Te, {
|
|
3192
3236
|
attrs: {
|
|
3193
|
-
from:
|
|
3237
|
+
from: I,
|
|
3194
3238
|
to: M,
|
|
3195
3239
|
registerOverlay: i,
|
|
3196
|
-
log:
|
|
3240
|
+
log: t.log
|
|
3197
3241
|
},
|
|
3198
3242
|
on: {
|
|
3199
3243
|
mapMounted: u
|
|
@@ -3201,16 +3245,16 @@ const Mo = v(function(t) {
|
|
|
3201
3245
|
})
|
|
3202
3246
|
)]);
|
|
3203
3247
|
};
|
|
3204
|
-
}).props(["log", "bookDispatchedTitle", "bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPosition", "interval", "loading", "mapRef", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]),
|
|
3205
|
-
S(
|
|
3248
|
+
}).props(["log", "bookDispatchedTitle", "bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPosition", "interval", "loading", "mapRef", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]), _o = p((t) => {
|
|
3249
|
+
S(t, "BusinessTaxiEndMap");
|
|
3206
3250
|
const {
|
|
3207
|
-
mapRef:
|
|
3251
|
+
mapRef: e,
|
|
3208
3252
|
setMap: n
|
|
3209
3253
|
} = De(), {
|
|
3210
3254
|
registerFitVeiw: i,
|
|
3211
3255
|
setFitView: a
|
|
3212
3256
|
} = he({
|
|
3213
|
-
mapRef:
|
|
3257
|
+
mapRef: e,
|
|
3214
3258
|
autoFitTimeout: 5e3,
|
|
3215
3259
|
padding: [25, 20, 15, 15]
|
|
3216
3260
|
});
|
|
@@ -3218,41 +3262,41 @@ const Mo = v(function(t) {
|
|
|
3218
3262
|
const {
|
|
3219
3263
|
from: o,
|
|
3220
3264
|
to: r
|
|
3221
|
-
} =
|
|
3222
|
-
return
|
|
3265
|
+
} = t, s = ut(o) && ut(r), u = s ? C(o) : [...fo];
|
|
3266
|
+
return g(Le, {
|
|
3223
3267
|
attrs: {
|
|
3224
3268
|
center: u,
|
|
3225
3269
|
zoom: s ? 13 : 3,
|
|
3226
3270
|
mapRef: n,
|
|
3227
|
-
log:
|
|
3271
|
+
log: t.log
|
|
3228
3272
|
}
|
|
3229
|
-
}, [s &&
|
|
3273
|
+
}, [s && g(Te, {
|
|
3230
3274
|
attrs: {
|
|
3231
3275
|
from: o,
|
|
3232
3276
|
to: r,
|
|
3233
3277
|
registerOverlay: i,
|
|
3234
|
-
log:
|
|
3278
|
+
log: t.log
|
|
3235
3279
|
},
|
|
3236
3280
|
on: {
|
|
3237
3281
|
mapMounted: a
|
|
3238
3282
|
}
|
|
3239
3283
|
})]);
|
|
3240
3284
|
};
|
|
3241
|
-
}),
|
|
3242
|
-
const { city:
|
|
3243
|
-
n.value =
|
|
3244
|
-
}, l = (
|
|
3245
|
-
a.value =
|
|
3285
|
+
}), To = (t) => {
|
|
3286
|
+
const { city: e } = t, n = D(e), { readyPromise: i } = L(), a = D(""), o = D([]), { update: r, idx: s } = K(), u = (d) => {
|
|
3287
|
+
n.value = d, r();
|
|
3288
|
+
}, l = (d) => {
|
|
3289
|
+
a.value = d, r();
|
|
3246
3290
|
};
|
|
3247
|
-
return
|
|
3291
|
+
return P(
|
|
3248
3292
|
() => s.value,
|
|
3249
3293
|
async () => {
|
|
3250
3294
|
if (!a.value)
|
|
3251
3295
|
return;
|
|
3252
|
-
await i, new AMap.PlaceSearch({ city: n.value.name }).search(a.value, (c,
|
|
3296
|
+
await i, new AMap.PlaceSearch({ city: n.value.name }).search(a.value, (c, I) => {
|
|
3253
3297
|
switch (c) {
|
|
3254
3298
|
case "complete": {
|
|
3255
|
-
o.value =
|
|
3299
|
+
o.value = I.poiList.pois.map(
|
|
3256
3300
|
(M) => ({
|
|
3257
3301
|
lat: M.location.lat,
|
|
3258
3302
|
lng: M.location.lng,
|
|
@@ -3266,7 +3310,7 @@ const Mo = v(function(t) {
|
|
|
3266
3310
|
o.value = [];
|
|
3267
3311
|
return;
|
|
3268
3312
|
default:
|
|
3269
|
-
throw
|
|
3313
|
+
throw I;
|
|
3270
3314
|
}
|
|
3271
3315
|
});
|
|
3272
3316
|
},
|
|
@@ -3274,33 +3318,33 @@ const Mo = v(function(t) {
|
|
|
3274
3318
|
immediate: !0
|
|
3275
3319
|
}
|
|
3276
3320
|
), { setKeyword: l, setCity: u, autoCompletePlaces: o };
|
|
3277
|
-
},
|
|
3278
|
-
const { city:
|
|
3321
|
+
}, zo = (t) => {
|
|
3322
|
+
const { city: e } = t, n = D({ ...e }), { readyPromise: i } = L(), a = D(""), o = D([]), { update: r, idx: s } = K(), u = (c) => {
|
|
3279
3323
|
n.value = c, r();
|
|
3280
3324
|
}, l = (c) => {
|
|
3281
3325
|
a.value = c, r();
|
|
3282
|
-
},
|
|
3283
|
-
return
|
|
3326
|
+
}, d = document.createElement("div");
|
|
3327
|
+
return P(
|
|
3284
3328
|
() => s.value,
|
|
3285
3329
|
async () => {
|
|
3286
3330
|
if (!a.value)
|
|
3287
3331
|
return;
|
|
3288
|
-
await i, new google.maps.places.PlacesService(
|
|
3332
|
+
await i, new google.maps.places.PlacesService(d).textSearch(
|
|
3289
3333
|
{
|
|
3290
3334
|
query: a.value,
|
|
3291
3335
|
bounds: n.value.bound
|
|
3292
3336
|
},
|
|
3293
|
-
(
|
|
3337
|
+
(I, M) => {
|
|
3294
3338
|
switch (M) {
|
|
3295
3339
|
case google.maps.places.PlacesServiceStatus.OK:
|
|
3296
|
-
o.value =
|
|
3297
|
-
({ geometry: m, name: f, formatted_address:
|
|
3298
|
-
var
|
|
3340
|
+
o.value = I.map(
|
|
3341
|
+
({ geometry: m, name: f, formatted_address: j }) => {
|
|
3342
|
+
var A, y, h, T;
|
|
3299
3343
|
return {
|
|
3300
|
-
lng: (y = (
|
|
3301
|
-
lat: (
|
|
3344
|
+
lng: (y = (A = m == null ? void 0 : m.location) == null ? void 0 : A.lng()) != null ? y : 0,
|
|
3345
|
+
lat: (T = (h = m == null ? void 0 : m.location) == null ? void 0 : h.lat()) != null ? T : 0,
|
|
3302
3346
|
name: f != null ? f : "",
|
|
3303
|
-
description:
|
|
3347
|
+
description: j != null ? j : ""
|
|
3304
3348
|
};
|
|
3305
3349
|
}
|
|
3306
3350
|
);
|
|
@@ -3314,23 +3358,23 @@ const Mo = v(function(t) {
|
|
|
3314
3358
|
);
|
|
3315
3359
|
}
|
|
3316
3360
|
), { setKeyword: l, setCity: u, autoCompletePlaces: o };
|
|
3317
|
-
},
|
|
3318
|
-
const { supplier:
|
|
3319
|
-
return
|
|
3320
|
-
},
|
|
3361
|
+
}, Ro = (t) => {
|
|
3362
|
+
const { supplier: e } = L();
|
|
3363
|
+
return e === "gmap" ? zo(t) : To(t);
|
|
3364
|
+
}, Eo = (t) => {
|
|
3321
3365
|
var a;
|
|
3322
|
-
const { cityNameRef:
|
|
3323
|
-
return
|
|
3324
|
-
() =>
|
|
3366
|
+
const { cityNameRef: e, onChange: n } = t, i = x({ name: (a = e.value) != null ? a : "" });
|
|
3367
|
+
return P(
|
|
3368
|
+
() => e.value,
|
|
3325
3369
|
(o) => {
|
|
3326
3370
|
const r = o != null ? o : "";
|
|
3327
3371
|
i.name = r, n == null || n({ name: r });
|
|
3328
3372
|
}
|
|
3329
3373
|
), i;
|
|
3330
|
-
},
|
|
3374
|
+
}, Zo = (t) => {
|
|
3331
3375
|
var o;
|
|
3332
|
-
const { cityNameRef:
|
|
3333
|
-
name: (o =
|
|
3376
|
+
const { cityNameRef: e, onChange: n } = t, { readyPromise: i } = L(), a = x({
|
|
3377
|
+
name: (o = e.value) != null ? o : "",
|
|
3334
3378
|
bound: {
|
|
3335
3379
|
east: 0,
|
|
3336
3380
|
north: 0,
|
|
@@ -3339,8 +3383,8 @@ const Mo = v(function(t) {
|
|
|
3339
3383
|
}
|
|
3340
3384
|
});
|
|
3341
3385
|
return ue(async () => {
|
|
3342
|
-
var c,
|
|
3343
|
-
const r =
|
|
3386
|
+
var c, I;
|
|
3387
|
+
const r = e.value;
|
|
3344
3388
|
if (!r)
|
|
3345
3389
|
return;
|
|
3346
3390
|
await i;
|
|
@@ -3349,53 +3393,53 @@ const Mo = v(function(t) {
|
|
|
3349
3393
|
componentRestrictions: {
|
|
3350
3394
|
administrativeArea: "administrative_area_level_1"
|
|
3351
3395
|
},
|
|
3352
|
-
language:
|
|
3396
|
+
language: Oe
|
|
3353
3397
|
});
|
|
3354
3398
|
if (u.length !== 1)
|
|
3355
3399
|
throw new Error("MyError: multiple city found");
|
|
3356
|
-
const { geometry: l } = u[0],
|
|
3357
|
-
a.name = r, a.bound =
|
|
3400
|
+
const { geometry: l } = u[0], d = (I = (c = l.bounds) == null ? void 0 : c.toJSON()) != null ? I : l.viewport.toJSON();
|
|
3401
|
+
a.name = r, a.bound = d, n == null || n({ name: r, bound: d });
|
|
3358
3402
|
}), a;
|
|
3359
|
-
},
|
|
3360
|
-
const { supplier:
|
|
3361
|
-
return
|
|
3362
|
-
},
|
|
3363
|
-
const { cityNameRef:
|
|
3364
|
-
cityNameRef:
|
|
3403
|
+
}, Oo = (t) => {
|
|
3404
|
+
const { supplier: e } = L();
|
|
3405
|
+
return e === "gmap" ? Zo(t) : Eo(t);
|
|
3406
|
+
}, Ko = (t) => {
|
|
3407
|
+
const { cityNameRef: e } = t, n = Oo({
|
|
3408
|
+
cityNameRef: e,
|
|
3365
3409
|
onChange: (s) => o(s)
|
|
3366
|
-
}), { autoCompletePlaces: i, setKeyword: a, setCity: o } =
|
|
3410
|
+
}), { autoCompletePlaces: i, setKeyword: a, setCity: o } = Ro({ city: n });
|
|
3367
3411
|
return { autoCompletePlaces: i, setKeyword: a, setCity: o, handleKeywordInput: (s) => {
|
|
3368
3412
|
const u = s.target;
|
|
3369
3413
|
a(u.value);
|
|
3370
3414
|
} };
|
|
3371
|
-
},
|
|
3372
|
-
const { setMap:
|
|
3373
|
-
mapRef:
|
|
3415
|
+
}, qo = () => {
|
|
3416
|
+
const { setMap: t, mapRef: e } = De(), { registerFitVeiw: n, setFitView: i } = he({
|
|
3417
|
+
mapRef: e,
|
|
3374
3418
|
padding: [25, 20, 15, 15]
|
|
3375
3419
|
});
|
|
3376
|
-
return { setMap:
|
|
3377
|
-
},
|
|
3378
|
-
const
|
|
3420
|
+
return { setMap: t, registerFitVeiw: n, setFitView: i };
|
|
3421
|
+
}, ko = () => {
|
|
3422
|
+
const t = L();
|
|
3379
3423
|
return { apiMapDistance: (n, i) => {
|
|
3380
|
-
if (
|
|
3424
|
+
if (t.status === ie.SUCCESS)
|
|
3381
3425
|
return AMap.GeometryUtil.distance(n, i);
|
|
3382
3426
|
} };
|
|
3383
|
-
},
|
|
3384
|
-
const
|
|
3427
|
+
}, Go = () => {
|
|
3428
|
+
const t = L();
|
|
3385
3429
|
return { apiMapDistance: (n, i) => {
|
|
3386
|
-
if (
|
|
3387
|
-
return google.maps.geometry.spherical.computeDistanceBetween(
|
|
3430
|
+
if (t.status === ie.SUCCESS)
|
|
3431
|
+
return google.maps.geometry.spherical.computeDistanceBetween(w(n), w(i));
|
|
3388
3432
|
} };
|
|
3389
|
-
},
|
|
3390
|
-
const { supplier:
|
|
3391
|
-
return
|
|
3392
|
-
},
|
|
3393
|
-
const
|
|
3433
|
+
}, Wo = () => {
|
|
3434
|
+
const { supplier: t } = L();
|
|
3435
|
+
return t === "gmap" ? Go() : ko();
|
|
3436
|
+
}, er = () => {
|
|
3437
|
+
const t = x({
|
|
3394
3438
|
lng: 0,
|
|
3395
3439
|
lat: 0,
|
|
3396
3440
|
name: "",
|
|
3397
3441
|
cityName: void 0
|
|
3398
|
-
}),
|
|
3442
|
+
}), e = D([]), { apiMapDistance: n } = Wo(), i = (r) => o.panToGeoPositionByRecomend(r), a = (r) => o.setCenterPlaceByRecomand(r), o = {
|
|
3399
3443
|
panToGeoPositionByRecomend: () => {
|
|
3400
3444
|
throw new Error("MyError: panToGeoPositionByRecomend used before assigned");
|
|
3401
3445
|
},
|
|
@@ -3403,58 +3447,59 @@ const Mo = v(function(t) {
|
|
|
3403
3447
|
throw new Error("MyError: setCenterPlaceByRecomand used before assigned");
|
|
3404
3448
|
},
|
|
3405
3449
|
onChangeCenterPlace: (r) => {
|
|
3406
|
-
Object.assign(
|
|
3450
|
+
Object.assign(t, { ...r });
|
|
3407
3451
|
},
|
|
3408
3452
|
onChangeRecomendPlaces: (r) => {
|
|
3409
|
-
|
|
3453
|
+
e.value = [...r];
|
|
3410
3454
|
}
|
|
3411
3455
|
};
|
|
3412
3456
|
return {
|
|
3413
3457
|
mapContext: o,
|
|
3414
|
-
centerPlace:
|
|
3415
|
-
placeCandidates:
|
|
3458
|
+
centerPlace: t,
|
|
3459
|
+
placeCandidates: e,
|
|
3416
3460
|
panToGeoPositionByRecomend: i,
|
|
3417
3461
|
setCenterPlaceByRecomand: a,
|
|
3418
3462
|
apiMapDistance: n
|
|
3419
3463
|
};
|
|
3420
|
-
},
|
|
3421
|
-
const { mapRef:
|
|
3422
|
-
mapRef:
|
|
3464
|
+
}, tr = () => {
|
|
3465
|
+
const { mapRef: t, setMap: e } = De(), { registerFitVeiw: n, setFitView: i } = he({
|
|
3466
|
+
mapRef: t,
|
|
3423
3467
|
autoFitTimeout: 5e3,
|
|
3424
3468
|
padding: [25, 20, 15, 15]
|
|
3425
3469
|
});
|
|
3426
|
-
return { setMap:
|
|
3470
|
+
return { setMap: e, registerFitVeiw: n, setFitView: i };
|
|
3427
3471
|
};
|
|
3428
3472
|
export {
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3473
|
+
ra as AbsoluteAddressBox,
|
|
3474
|
+
Bo as AddressBox,
|
|
3475
|
+
Qo as BusinessQuotingMap,
|
|
3476
|
+
Fo as BusinessRecomendPlaceMap,
|
|
3477
|
+
_o as BusinessTaxiEndMap,
|
|
3478
|
+
$o as BusinessTaxiServiceMap,
|
|
3434
3479
|
Se as DrivingLine,
|
|
3435
3480
|
Ne as DrivingRoute,
|
|
3436
3481
|
Le as HeycarMap,
|
|
3437
|
-
|
|
3482
|
+
Yo as MapProvider,
|
|
3438
3483
|
Ce as PassengerCircle,
|
|
3439
|
-
|
|
3484
|
+
Mo as PickupPoints,
|
|
3440
3485
|
O as PlaceCircle,
|
|
3441
3486
|
E as StartEndPoint,
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3487
|
+
Ge as TaxiCar,
|
|
3488
|
+
Ln as WalkingLine,
|
|
3489
|
+
hn as WalkingRoute,
|
|
3490
|
+
ho as WaveCircle,
|
|
3491
|
+
Ko as useBusinessMapAutoComplete,
|
|
3492
|
+
qo as useBusinessQuotingMap,
|
|
3493
|
+
er as useBusinessRecomendPlaceMap,
|
|
3494
|
+
tr as useBusinessTaxiServiceMap,
|
|
3495
|
+
Vo as useDrivingRoute,
|
|
3496
|
+
gn as useGeoLocation,
|
|
3452
3497
|
De as useHeycarMap,
|
|
3453
|
-
|
|
3454
|
-
|
|
3498
|
+
Ho as useMapAngle,
|
|
3499
|
+
io as useMapDrag,
|
|
3455
3500
|
he as useMapFitView,
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3501
|
+
Wo as useMapGeometry,
|
|
3502
|
+
Jo as useMapPlace,
|
|
3503
|
+
co as useMapRecomendPlace,
|
|
3504
|
+
Xo as useWalkingRoute
|
|
3460
3505
|
};
|