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