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