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