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