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