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