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