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