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