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