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