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