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