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