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