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