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