@heycar/heycars-map 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/business-components/BusinessQuotingMap/BusinessQuotingMap.d.ts +2 -3
- package/dist/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +2 -3
- package/dist/business-components/FitView/FitView.d.ts +3 -1
- package/dist/index.cjs +53 -53
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1250 -1160
- package/dist/style.css +1 -1
- package/dist/types/interface.d.ts +1 -0
- package/package.json +1 -1
- package/src/App.tsx +3 -3
- package/src/business-components/BusinessQuotingMap/BusinessQuotingMap.tsx +4 -4
- package/src/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.tsx +98 -101
- package/src/business-components/FitView/FitView.tsx +10 -2
- package/src/components/Demo/DemoBusinessQuoting.tsx +1 -2
- package/src/components/Demo/DemoBusinessTaxiService.tsx +0 -1
- package/src/hooks/useMapFitView.ts +18 -16
- package/src/index.ts +2 -0
- package/src/types/interface.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
const t =
|
|
1
|
+
import xn, { inject as xe, provide as Ce, watch as b, defineComponent as ot, h as I, watchPostEffect as B, shallowRef as P, onMounted as pe, onUnmounted as ve, computed as L, reactive as x, toRefs as st, ref as h, watchEffect as Cn } from "vue";
|
|
2
|
+
xn.util.warn;
|
|
3
|
+
const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9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
|
5
5
|
if (!t)
|
|
6
6
|
throw new Error("MyError: useMapSupplier should be under MapProvider");
|
|
7
7
|
return t;
|
|
8
|
-
},
|
|
8
|
+
}, bn = (t) => Ce(ut, t), lt = Symbol("amap"), ye = () => xe(lt), Pn = (t) => Ce(lt, t), dt = Symbol("gmap"), je = () => xe(dt), zn = (t) => Ce(dt, t), gt = () => {
|
|
9
9
|
const { supplier: t } = A();
|
|
10
10
|
return t === "gmap" ? je() : ye();
|
|
11
|
-
},
|
|
12
|
-
const e =
|
|
11
|
+
}, Y = (t) => {
|
|
12
|
+
const e = gt();
|
|
13
13
|
b(
|
|
14
14
|
() => e.value,
|
|
15
15
|
(n) => {
|
|
16
16
|
n && Promise.resolve().then(t);
|
|
17
17
|
}
|
|
18
18
|
);
|
|
19
|
-
},
|
|
19
|
+
}, It = (t) => {
|
|
20
20
|
const { registerOverlay: e, overlayRef: n } = t;
|
|
21
21
|
b(
|
|
22
22
|
() => n.value,
|
|
23
|
-
(
|
|
24
|
-
e && (
|
|
23
|
+
(i, a) => {
|
|
24
|
+
e && (a && e.remove(a), i && e.add(i));
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
27
|
};
|
|
28
|
-
var
|
|
29
|
-
const
|
|
30
|
-
var
|
|
31
|
-
const
|
|
32
|
-
var
|
|
33
|
-
const _ =
|
|
34
|
-
var
|
|
35
|
-
function
|
|
36
|
-
var e =
|
|
28
|
+
var Tn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, En = typeof global == "object" && global && global.Object === Object && global;
|
|
29
|
+
const Zn = En;
|
|
30
|
+
var Rn = typeof self == "object" && self && self.Object === Object && self, On = Zn || Rn || Function("return this")();
|
|
31
|
+
const Mt = On;
|
|
32
|
+
var kn = Mt.Symbol;
|
|
33
|
+
const _ = kn;
|
|
34
|
+
var mt = Object.prototype, Gn = mt.hasOwnProperty, Wn = mt.toString, ne = _ ? _.toStringTag : void 0;
|
|
35
|
+
function Un(t) {
|
|
36
|
+
var e = Gn.call(t, ne), n = t[ne];
|
|
37
37
|
try {
|
|
38
38
|
t[ne] = void 0;
|
|
39
|
-
var
|
|
39
|
+
var i = !0;
|
|
40
40
|
} catch {
|
|
41
41
|
}
|
|
42
|
-
var
|
|
43
|
-
return
|
|
42
|
+
var a = Wn.call(t);
|
|
43
|
+
return i && (e ? t[ne] = n : delete t[ne]), a;
|
|
44
44
|
}
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
45
|
+
var Bn = Object.prototype, Yn = Bn.toString;
|
|
46
|
+
function Vn(t) {
|
|
47
|
+
return Yn.call(t);
|
|
48
48
|
}
|
|
49
|
-
var
|
|
50
|
-
function
|
|
51
|
-
return t == null ? t === void 0 ?
|
|
49
|
+
var Hn = "[object Null]", Qn = "[object Undefined]", ke = _ ? _.toStringTag : void 0;
|
|
50
|
+
function Jn(t) {
|
|
51
|
+
return t == null ? t === void 0 ? Qn : Hn : ke && ke in Object(t) ? Un(t) : Vn(t);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Fn(t) {
|
|
54
54
|
return t != null && typeof t == "object";
|
|
55
55
|
}
|
|
56
|
-
var
|
|
57
|
-
function
|
|
58
|
-
return typeof t == "symbol" ||
|
|
56
|
+
var Xn = "[object Symbol]";
|
|
57
|
+
function ft(t) {
|
|
58
|
+
return typeof t == "symbol" || Fn(t) && Jn(t) == Xn;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
for (var n = -1,
|
|
62
|
-
|
|
63
|
-
return
|
|
60
|
+
function $n(t, e) {
|
|
61
|
+
for (var n = -1, i = t == null ? 0 : t.length, a = Array(i); ++n < i; )
|
|
62
|
+
a[n] = e(t[n], n, t);
|
|
63
|
+
return a;
|
|
64
64
|
}
|
|
65
|
-
var
|
|
66
|
-
const
|
|
67
|
-
var
|
|
68
|
-
function
|
|
65
|
+
var _n = Array.isArray;
|
|
66
|
+
const Kn = _n;
|
|
67
|
+
var qn = 1 / 0, Ge = _ ? _.prototype : void 0, We = Ge ? Ge.toString : void 0;
|
|
68
|
+
function pt(t) {
|
|
69
69
|
if (typeof t == "string")
|
|
70
70
|
return t;
|
|
71
|
-
if (
|
|
72
|
-
return
|
|
73
|
-
if (
|
|
74
|
-
return
|
|
71
|
+
if (Kn(t))
|
|
72
|
+
return $n(t, pt) + "";
|
|
73
|
+
if (ft(t))
|
|
74
|
+
return We ? We.call(t) : "";
|
|
75
75
|
var e = t + "";
|
|
76
|
-
return e == "0" && 1 / t ==
|
|
76
|
+
return e == "0" && 1 / t == -qn ? "-0" : e;
|
|
77
77
|
}
|
|
78
|
-
var
|
|
79
|
-
function
|
|
80
|
-
for (var e = t.length; e-- &&
|
|
78
|
+
var ei = /\s/;
|
|
79
|
+
function ti(t) {
|
|
80
|
+
for (var e = t.length; e-- && ei.test(t.charAt(e)); )
|
|
81
81
|
;
|
|
82
82
|
return e;
|
|
83
83
|
}
|
|
84
|
-
var
|
|
85
|
-
function
|
|
86
|
-
return t && t.slice(0,
|
|
84
|
+
var ni = /^\s+/;
|
|
85
|
+
function ii(t) {
|
|
86
|
+
return t && t.slice(0, ti(t) + 1).replace(ni, "");
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function he(t) {
|
|
89
89
|
var e = typeof t;
|
|
90
90
|
return t != null && (e == "object" || e == "function");
|
|
91
91
|
}
|
|
92
|
-
var
|
|
93
|
-
function
|
|
92
|
+
var Ue = 0 / 0, ai = /^[-+]0x[0-9a-f]+$/i, ri = /^0b[01]+$/i, oi = /^0o[0-7]+$/i, si = parseInt;
|
|
93
|
+
function Be(t) {
|
|
94
94
|
if (typeof t == "number")
|
|
95
95
|
return t;
|
|
96
|
-
if (
|
|
97
|
-
return
|
|
98
|
-
if (
|
|
96
|
+
if (ft(t))
|
|
97
|
+
return Ue;
|
|
98
|
+
if (he(t)) {
|
|
99
99
|
var e = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
100
|
-
t =
|
|
100
|
+
t = he(e) ? e + "" : e;
|
|
101
101
|
}
|
|
102
102
|
if (typeof t != "string")
|
|
103
103
|
return t === 0 ? t : +t;
|
|
104
|
-
t =
|
|
105
|
-
var n =
|
|
106
|
-
return n ||
|
|
104
|
+
t = ii(t);
|
|
105
|
+
var n = ri.test(t);
|
|
106
|
+
return n || oi.test(t) ? si(t.slice(2), n ? 2 : 8) : ai.test(t) ? Ue : +t;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return t == null ? "" :
|
|
108
|
+
function vt(t) {
|
|
109
|
+
return t == null ? "" : pt(t);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
var
|
|
113
|
-
for (
|
|
114
|
-
n = e(n, t[
|
|
111
|
+
function ci(t, e, n, i) {
|
|
112
|
+
var a = -1, r = t == null ? 0 : t.length;
|
|
113
|
+
for (i && r && (n = t[++a]); ++a < r; )
|
|
114
|
+
n = e(n, t[a], a, t);
|
|
115
115
|
return n;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function ui(t) {
|
|
118
118
|
return function(e) {
|
|
119
119
|
return t == null ? void 0 : t[e];
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
var
|
|
122
|
+
var li = {
|
|
123
123
|
// Latin-1 Supplement block.
|
|
124
124
|
À: "A",
|
|
125
125
|
Á: "A",
|
|
@@ -312,152 +312,152 @@ var si = {
|
|
|
312
312
|
œ: "oe",
|
|
313
313
|
ʼn: "'n",
|
|
314
314
|
ſ: "s"
|
|
315
|
-
},
|
|
316
|
-
const
|
|
317
|
-
var
|
|
318
|
-
function
|
|
319
|
-
return t =
|
|
315
|
+
}, di = ui(li);
|
|
316
|
+
const gi = di;
|
|
317
|
+
var Ii = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Mi = "\\u0300-\\u036f", mi = "\\ufe20-\\ufe2f", fi = "\\u20d0-\\u20ff", pi = Mi + mi + fi, vi = "[" + pi + "]", yi = RegExp(vi, "g");
|
|
318
|
+
function ji(t) {
|
|
319
|
+
return t = vt(t), t && t.replace(Ii, gi).replace(yi, "");
|
|
320
320
|
}
|
|
321
|
-
var
|
|
322
|
-
function
|
|
323
|
-
return t.match(
|
|
321
|
+
var Ai = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
322
|
+
function Li(t) {
|
|
323
|
+
return t.match(Ai) || [];
|
|
324
324
|
}
|
|
325
|
-
var
|
|
326
|
-
function
|
|
327
|
-
return
|
|
325
|
+
var Ni = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
326
|
+
function Si(t) {
|
|
327
|
+
return Ni.test(t);
|
|
328
328
|
}
|
|
329
|
-
var
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
329
|
+
var yt = "\\ud800-\\udfff", hi = "\\u0300-\\u036f", Di = "\\ufe20-\\ufe2f", wi = "\\u20d0-\\u20ff", xi = hi + Di + wi, jt = "\\u2700-\\u27bf", At = "a-z\\xdf-\\xf6\\xf8-\\xff", Ci = "\\xac\\xb1\\xd7\\xf7", bi = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Pi = "\\u2000-\\u206f", zi = " \\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", Lt = "A-Z\\xc0-\\xd6\\xd8-\\xde", Ti = "\\ufe0e\\ufe0f", Nt = Ci + bi + Pi + zi, St = "['’]", Ye = "[" + Nt + "]", Ei = "[" + xi + "]", ht = "\\d+", Zi = "[" + jt + "]", Dt = "[" + At + "]", wt = "[^" + yt + Nt + ht + jt + At + Lt + "]", Ri = "\\ud83c[\\udffb-\\udfff]", Oi = "(?:" + Ei + "|" + Ri + ")", ki = "[^" + yt + "]", xt = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ct = "[\\ud800-\\udbff][\\udc00-\\udfff]", F = "[" + Lt + "]", Gi = "\\u200d", Ve = "(?:" + Dt + "|" + wt + ")", Wi = "(?:" + F + "|" + wt + ")", He = "(?:" + St + "(?:d|ll|m|re|s|t|ve))?", Qe = "(?:" + St + "(?:D|LL|M|RE|S|T|VE))?", bt = Oi + "?", Pt = "[" + Ti + "]?", Ui = "(?:" + Gi + "(?:" + [ki, xt, Ct].join("|") + ")" + Pt + bt + ")*", Bi = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Yi = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Vi = Pt + bt + Ui, Hi = "(?:" + [Zi, xt, Ct].join("|") + ")" + Vi, Qi = RegExp([
|
|
330
|
+
F + "?" + Dt + "+" + He + "(?=" + [Ye, F, "$"].join("|") + ")",
|
|
331
|
+
Wi + "+" + Qe + "(?=" + [Ye, F + Ve, "$"].join("|") + ")",
|
|
332
|
+
F + "?" + Ve + "+" + He,
|
|
333
|
+
F + "+" + Qe,
|
|
334
|
+
Yi,
|
|
335
|
+
Bi,
|
|
336
|
+
ht,
|
|
337
|
+
Hi
|
|
338
338
|
].join("|"), "g");
|
|
339
|
-
function
|
|
340
|
-
return t.match(
|
|
339
|
+
function Ji(t) {
|
|
340
|
+
return t.match(Qi) || [];
|
|
341
341
|
}
|
|
342
|
-
function
|
|
343
|
-
return t =
|
|
342
|
+
function Fi(t, e, n) {
|
|
343
|
+
return t = vt(t), e = n ? void 0 : e, e === void 0 ? Si(t) ? Ji(t) : Li(t) : t.match(e) || [];
|
|
344
344
|
}
|
|
345
|
-
var
|
|
346
|
-
function
|
|
345
|
+
var Xi = "['’]", $i = RegExp(Xi, "g");
|
|
346
|
+
function _i(t) {
|
|
347
347
|
return function(e) {
|
|
348
|
-
return
|
|
348
|
+
return ci(Fi(ji(e).replace($i, "")), t, "");
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
|
-
var
|
|
352
|
-
return
|
|
351
|
+
var Ki = function() {
|
|
352
|
+
return Mt.Date.now();
|
|
353
353
|
};
|
|
354
|
-
const
|
|
355
|
-
var
|
|
356
|
-
function
|
|
357
|
-
var
|
|
354
|
+
const Se = Ki;
|
|
355
|
+
var qi = "Expected a function", ea = Math.max, ta = Math.min;
|
|
356
|
+
function na(t, e, n) {
|
|
357
|
+
var i, a, r, o, s, u, l = 0, d = !1, c = !1, g = !0;
|
|
358
358
|
if (typeof t != "function")
|
|
359
|
-
throw new TypeError(
|
|
360
|
-
e =
|
|
361
|
-
function
|
|
362
|
-
var
|
|
363
|
-
return
|
|
359
|
+
throw new TypeError(qi);
|
|
360
|
+
e = Be(e) || 0, he(n) && (d = !!n.leading, c = "maxWait" in n, r = c ? ea(Be(n.maxWait) || 0, e) : r, g = "trailing" in n ? !!n.trailing : g);
|
|
361
|
+
function M(S) {
|
|
362
|
+
var R = i, Q = a;
|
|
363
|
+
return i = a = void 0, l = S, o = t.apply(Q, R), o;
|
|
364
364
|
}
|
|
365
365
|
function m(S) {
|
|
366
|
-
return l = S, s = setTimeout(j, e), d ?
|
|
366
|
+
return l = S, s = setTimeout(j, e), d ? M(S) : o;
|
|
367
367
|
}
|
|
368
368
|
function p(S) {
|
|
369
|
-
var
|
|
370
|
-
return c ?
|
|
369
|
+
var R = S - u, Q = S - l, k = e - R;
|
|
370
|
+
return c ? ta(k, r - Q) : k;
|
|
371
371
|
}
|
|
372
372
|
function f(S) {
|
|
373
|
-
var
|
|
374
|
-
return u === void 0 ||
|
|
373
|
+
var R = S - u, Q = S - l;
|
|
374
|
+
return u === void 0 || R >= e || R < 0 || c && Q >= r;
|
|
375
375
|
}
|
|
376
376
|
function j() {
|
|
377
|
-
var S =
|
|
377
|
+
var S = Se();
|
|
378
378
|
if (f(S))
|
|
379
379
|
return y(S);
|
|
380
380
|
s = setTimeout(j, p(S));
|
|
381
381
|
}
|
|
382
382
|
function y(S) {
|
|
383
|
-
return s = void 0, g &&
|
|
383
|
+
return s = void 0, g && i ? M(S) : (i = a = void 0, o);
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
s !== void 0 && clearTimeout(s), l = 0,
|
|
385
|
+
function w() {
|
|
386
|
+
s !== void 0 && clearTimeout(s), l = 0, i = u = a = s = void 0;
|
|
387
387
|
}
|
|
388
388
|
function z() {
|
|
389
|
-
return s === void 0 ? o : y(
|
|
389
|
+
return s === void 0 ? o : y(Se());
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
var S =
|
|
393
|
-
if (
|
|
391
|
+
function H() {
|
|
392
|
+
var S = Se(), R = f(S);
|
|
393
|
+
if (i = arguments, a = this, u = S, R) {
|
|
394
394
|
if (s === void 0)
|
|
395
395
|
return m(u);
|
|
396
396
|
if (c)
|
|
397
|
-
return clearTimeout(s), s = setTimeout(j, e),
|
|
397
|
+
return clearTimeout(s), s = setTimeout(j, e), M(u);
|
|
398
398
|
}
|
|
399
399
|
return s === void 0 && (s = setTimeout(j, e)), o;
|
|
400
400
|
}
|
|
401
|
-
return
|
|
401
|
+
return H.cancel = w, H.flush = z, H;
|
|
402
402
|
}
|
|
403
|
-
var
|
|
403
|
+
var ia = _i(function(t, e, n) {
|
|
404
404
|
return t + (n ? "-" : "") + e.toLowerCase();
|
|
405
405
|
});
|
|
406
|
-
const
|
|
406
|
+
const zt = ia;
|
|
407
407
|
function v(t) {
|
|
408
|
-
return
|
|
408
|
+
return ot({
|
|
409
409
|
name: t.name,
|
|
410
410
|
inheritAttrs: !1,
|
|
411
411
|
setup(e, n) {
|
|
412
|
-
const { attrs:
|
|
413
|
-
const g =
|
|
412
|
+
const { attrs: i, slots: a, emit: r } = n, o = i, s = r, u = (d, c) => {
|
|
413
|
+
const g = zt(d);
|
|
414
414
|
s(d, c), d !== g && s(g, c);
|
|
415
|
-
}, l = new Proxy(
|
|
415
|
+
}, l = new Proxy(a, {
|
|
416
416
|
get(d, c, g) {
|
|
417
|
-
var
|
|
418
|
-
return (
|
|
417
|
+
var M;
|
|
418
|
+
return (M = Reflect.get(d, c, g)) != null ? M : Reflect.get(o, c);
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
421
|
return t(o, { ...n, slots: l, emit: u });
|
|
422
422
|
}
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function V(t) {
|
|
426
426
|
return {
|
|
427
|
-
props: (e) =>
|
|
427
|
+
props: (e) => ot({
|
|
428
428
|
name: t.name,
|
|
429
429
|
inheritAttrs: !1,
|
|
430
430
|
props: e,
|
|
431
|
-
setup(n,
|
|
432
|
-
const
|
|
433
|
-
const g =
|
|
431
|
+
setup(n, i) {
|
|
432
|
+
const a = n, { slots: r, emit: o } = i, s = o, u = (d, c) => {
|
|
433
|
+
const g = zt(d);
|
|
434
434
|
s(d, c), d !== g && s(g, c);
|
|
435
435
|
}, l = new Proxy(r, {
|
|
436
436
|
get(d, c, g) {
|
|
437
|
-
var
|
|
438
|
-
return (
|
|
437
|
+
var M;
|
|
438
|
+
return (M = Reflect.get(d, c, g)) != null ? M : Reflect.get(a, c);
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
|
-
return t(
|
|
441
|
+
return t(a, { ...i, slots: l, emit: u });
|
|
442
442
|
}
|
|
443
443
|
})
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
|
-
const
|
|
447
|
-
var
|
|
446
|
+
const Z = I, be = "zh-CN", Je = (t) => t != null && typeof t == "object" && Number.isFinite(t.lat) && Number.isFinite(t.lng);
|
|
447
|
+
var aa = typeof WeakMap == "function", Fe = Object.keys;
|
|
448
448
|
function le(t, e) {
|
|
449
449
|
return t === e || t !== t && e !== e;
|
|
450
450
|
}
|
|
451
451
|
function Xe(t) {
|
|
452
452
|
return t.constructor === Object || t.constructor == null;
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function $e(t) {
|
|
455
455
|
return !!t && typeof t.then == "function";
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function _e(t) {
|
|
458
458
|
return !!(t && t.$$typeof);
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function ra() {
|
|
461
461
|
var t = [];
|
|
462
462
|
return {
|
|
463
463
|
delete: function(e) {
|
|
@@ -473,120 +473,120 @@ function na() {
|
|
|
473
473
|
return t[n][1];
|
|
474
474
|
},
|
|
475
475
|
set: function(e, n) {
|
|
476
|
-
for (var
|
|
477
|
-
if (t[
|
|
478
|
-
t[
|
|
476
|
+
for (var i = 0; i < t.length; ++i)
|
|
477
|
+
if (t[i][0] === e) {
|
|
478
|
+
t[i][1] = n;
|
|
479
479
|
return;
|
|
480
480
|
}
|
|
481
481
|
t.push([e, n]);
|
|
482
482
|
}
|
|
483
483
|
};
|
|
484
484
|
}
|
|
485
|
-
var
|
|
485
|
+
var oa = function(t) {
|
|
486
486
|
return t ? function() {
|
|
487
487
|
return /* @__PURE__ */ new WeakMap();
|
|
488
|
-
} :
|
|
489
|
-
}(
|
|
490
|
-
function
|
|
488
|
+
} : ra;
|
|
489
|
+
}(aa);
|
|
490
|
+
function Tt(t) {
|
|
491
491
|
return function(n) {
|
|
492
|
-
var
|
|
492
|
+
var i = t || n;
|
|
493
493
|
return function(r, o, s, u, l, d, c) {
|
|
494
|
-
c === void 0 && (c =
|
|
495
|
-
var g = !!r && typeof r == "object",
|
|
496
|
-
if (g !==
|
|
494
|
+
c === void 0 && (c = oa());
|
|
495
|
+
var g = !!r && typeof r == "object", M = !!o && typeof o == "object";
|
|
496
|
+
if (g !== M)
|
|
497
497
|
return !1;
|
|
498
|
-
if (!g && !
|
|
499
|
-
return
|
|
498
|
+
if (!g && !M)
|
|
499
|
+
return i(r, o, c);
|
|
500
500
|
var m = c.get(r);
|
|
501
501
|
if (m && c.get(o))
|
|
502
502
|
return m === o;
|
|
503
503
|
c.set(r, o), c.set(o, r);
|
|
504
|
-
var p =
|
|
504
|
+
var p = i(r, o, c);
|
|
505
505
|
return c.delete(r), c.delete(o), p;
|
|
506
506
|
};
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
var
|
|
511
|
-
if (e.length !==
|
|
509
|
+
function sa(t, e, n, i) {
|
|
510
|
+
var a = t.length;
|
|
511
|
+
if (e.length !== a)
|
|
512
512
|
return !1;
|
|
513
|
-
for (;
|
|
514
|
-
if (!n(t[
|
|
513
|
+
for (; a-- > 0; )
|
|
514
|
+
if (!n(t[a], e[a], a, a, t, e, i))
|
|
515
515
|
return !1;
|
|
516
516
|
return !0;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
var
|
|
520
|
-
if (
|
|
518
|
+
function ca(t, e, n, i) {
|
|
519
|
+
var a = t.size === e.size;
|
|
520
|
+
if (a && t.size) {
|
|
521
521
|
var r = {}, o = 0;
|
|
522
522
|
t.forEach(function(s, u) {
|
|
523
|
-
if (
|
|
523
|
+
if (a) {
|
|
524
524
|
var l = !1, d = 0;
|
|
525
525
|
e.forEach(function(c, g) {
|
|
526
|
-
!l && !r[d] && (l = n(u, g, o, d, t, e,
|
|
527
|
-
}), o++,
|
|
526
|
+
!l && !r[d] && (l = n(u, g, o, d, t, e, i) && n(s, c, u, g, t, e, i), l && (r[d] = !0)), d++;
|
|
527
|
+
}), o++, a = l;
|
|
528
528
|
}
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
|
-
return
|
|
531
|
+
return a;
|
|
532
532
|
}
|
|
533
|
-
var
|
|
534
|
-
function
|
|
535
|
-
var
|
|
536
|
-
if (
|
|
533
|
+
var ua = "_owner", la = Function.prototype.bind.call(Function.prototype.call, Object.prototype.hasOwnProperty);
|
|
534
|
+
function Ke(t, e, n, i) {
|
|
535
|
+
var a = Fe(t), r = a.length;
|
|
536
|
+
if (Fe(e).length !== r)
|
|
537
537
|
return !1;
|
|
538
538
|
if (r)
|
|
539
539
|
for (var o = void 0; r-- > 0; ) {
|
|
540
|
-
if (o =
|
|
541
|
-
var s =
|
|
540
|
+
if (o = a[r], o === ua) {
|
|
541
|
+
var s = _e(t), u = _e(e);
|
|
542
542
|
if ((s || u) && s !== u)
|
|
543
543
|
return !1;
|
|
544
544
|
}
|
|
545
|
-
if (!
|
|
545
|
+
if (!la(e, o) || !n(t[o], e[o], o, o, t, e, i))
|
|
546
546
|
return !1;
|
|
547
547
|
}
|
|
548
548
|
return !0;
|
|
549
549
|
}
|
|
550
|
-
var
|
|
550
|
+
var da = function() {
|
|
551
551
|
return /foo/g.flags === "g" ? function(e, n) {
|
|
552
552
|
return e.source === n.source && e.flags === n.flags;
|
|
553
553
|
} : function(e, n) {
|
|
554
554
|
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;
|
|
555
555
|
};
|
|
556
556
|
}();
|
|
557
|
-
function
|
|
558
|
-
var
|
|
559
|
-
if (
|
|
557
|
+
function ga(t, e, n, i) {
|
|
558
|
+
var a = t.size === e.size;
|
|
559
|
+
if (a && t.size) {
|
|
560
560
|
var r = {};
|
|
561
561
|
t.forEach(function(o, s) {
|
|
562
|
-
if (
|
|
562
|
+
if (a) {
|
|
563
563
|
var u = !1, l = 0;
|
|
564
564
|
e.forEach(function(d, c) {
|
|
565
|
-
!u && !r[l] && (u = n(o, d, s, c, t, e,
|
|
566
|
-
}),
|
|
565
|
+
!u && !r[l] && (u = n(o, d, s, c, t, e, i), u && (r[l] = !0)), l++;
|
|
566
|
+
}), a = u;
|
|
567
567
|
}
|
|
568
568
|
});
|
|
569
569
|
}
|
|
570
|
-
return
|
|
570
|
+
return a;
|
|
571
571
|
}
|
|
572
|
-
var
|
|
572
|
+
var Ia = typeof Map == "function", Ma = typeof Set == "function", qe = Object.prototype.valueOf;
|
|
573
573
|
function oe(t) {
|
|
574
574
|
var e = (
|
|
575
575
|
/* eslint-disable no-use-before-define */
|
|
576
|
-
typeof t == "function" ? t(n) : function(
|
|
577
|
-
return n(
|
|
576
|
+
typeof t == "function" ? t(n) : function(i, a, r, o, s, u, l) {
|
|
577
|
+
return n(i, a, l);
|
|
578
578
|
}
|
|
579
579
|
);
|
|
580
|
-
function n(
|
|
581
|
-
if (
|
|
580
|
+
function n(i, a, r) {
|
|
581
|
+
if (i === a)
|
|
582
582
|
return !0;
|
|
583
|
-
if (
|
|
584
|
-
if (Xe(
|
|
585
|
-
return
|
|
586
|
-
var o = Array.isArray(
|
|
587
|
-
return o || s ? o === s &&
|
|
583
|
+
if (i && a && typeof i == "object" && typeof a == "object") {
|
|
584
|
+
if (Xe(i) && Xe(a))
|
|
585
|
+
return Ke(i, a, e, r);
|
|
586
|
+
var o = Array.isArray(i), s = Array.isArray(a);
|
|
587
|
+
return o || s ? o === s && sa(i, a, e, r) : (o = i instanceof Date, s = a instanceof Date, o || s ? o === s && le(i.getTime(), a.getTime()) : (o = i instanceof RegExp, s = a instanceof RegExp, o || s ? o === s && da(i, a) : $e(i) || $e(a) ? i === a : Ia && (o = i instanceof Map, s = a instanceof Map, o || s) ? o === s && ca(i, a, e, r) : Ma && (o = i instanceof Set, s = a instanceof Set, o || s) ? o === s && ga(i, a, e, r) : i.valueOf !== qe || a.valueOf !== qe ? le(i.valueOf(), a.valueOf()) : Ke(i, a, e, r)));
|
|
588
588
|
}
|
|
589
|
-
return
|
|
589
|
+
return i !== i && a !== a;
|
|
590
590
|
}
|
|
591
591
|
return n;
|
|
592
592
|
}
|
|
@@ -594,131 +594,131 @@ oe();
|
|
|
594
594
|
oe(function() {
|
|
595
595
|
return le;
|
|
596
596
|
});
|
|
597
|
-
oe(
|
|
598
|
-
oe(
|
|
599
|
-
const
|
|
597
|
+
oe(Tt());
|
|
598
|
+
oe(Tt(le));
|
|
599
|
+
const C = ([t, e]) => ({
|
|
600
600
|
lng: t,
|
|
601
601
|
lat: e
|
|
602
602
|
}), Ae = (t) => {
|
|
603
603
|
const e = [], n = t.split("*");
|
|
604
|
-
for (const [
|
|
605
|
-
|
|
604
|
+
for (const [i, a] of n.entries())
|
|
605
|
+
a && e.push({ value: a, type: i % 2 === 0 ? "normal" : "emphasize" });
|
|
606
606
|
return e;
|
|
607
|
-
},
|
|
607
|
+
}, Et = (t) => `${t.charAt(2).toLocaleLowerCase()}${t.slice(3)}`, Zt = (t) => t.slice(2).toLowerCase(), ma = (t) => {
|
|
608
608
|
switch (t) {
|
|
609
609
|
case "en":
|
|
610
610
|
return "style_en";
|
|
611
611
|
case "zh":
|
|
612
612
|
return "style_zh_cn";
|
|
613
613
|
}
|
|
614
|
-
},
|
|
614
|
+
}, D = (t) => [t.lng, t.lat], Rt = (t) => (...e) => {
|
|
615
615
|
setTimeout(() => t == null ? void 0 : t(...e));
|
|
616
|
-
},
|
|
616
|
+
}, fa = (t) => {
|
|
617
617
|
const { address_components: e } = t, n = e.find(
|
|
618
|
-
(
|
|
618
|
+
(a) => a.types[0] === "administrative_area_level_1" || a.types[0] === "administrative_area_level_2"
|
|
619
619
|
);
|
|
620
620
|
if (n)
|
|
621
621
|
return n.long_name;
|
|
622
|
-
const
|
|
623
|
-
if (
|
|
624
|
-
return e[
|
|
625
|
-
},
|
|
626
|
-
function
|
|
622
|
+
const i = e.findIndex((a) => a.types[0] === "country");
|
|
623
|
+
if (i > 0)
|
|
624
|
+
return e[i - 1].long_name;
|
|
625
|
+
}, Ot = oe((t) => (e, n) => Je(e) || Je(n) ? new google.maps.LatLng(e).equals(new google.maps.LatLng(n)) : t(e, n));
|
|
626
|
+
function kt() {
|
|
627
627
|
let t;
|
|
628
628
|
return function(n) {
|
|
629
|
-
return
|
|
629
|
+
return Ot(n, t) || (t = n), t;
|
|
630
630
|
};
|
|
631
631
|
}
|
|
632
632
|
function se(t, e, n) {
|
|
633
|
-
const
|
|
634
|
-
return b(() =>
|
|
633
|
+
const i = kt();
|
|
634
|
+
return b(() => i(t()), e, {
|
|
635
635
|
immediate: !1,
|
|
636
636
|
flush: "post",
|
|
637
637
|
...n
|
|
638
638
|
});
|
|
639
639
|
}
|
|
640
640
|
function q(t, e, n) {
|
|
641
|
-
const
|
|
642
|
-
return b(() =>
|
|
641
|
+
const i = kt();
|
|
642
|
+
return b(() => i(t()), e, {
|
|
643
643
|
immediate: !0,
|
|
644
644
|
flush: "post",
|
|
645
645
|
...n
|
|
646
646
|
});
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function pa(t) {
|
|
649
649
|
return `set${t.charAt(0).toUpperCase()}${t.slice(1)}`;
|
|
650
650
|
}
|
|
651
|
-
function
|
|
652
|
-
const
|
|
651
|
+
function va(t, e, n, i) {
|
|
652
|
+
const a = n.map(
|
|
653
653
|
({ name: r }) => () => e[r]
|
|
654
654
|
);
|
|
655
655
|
b(
|
|
656
|
-
|
|
656
|
+
a,
|
|
657
657
|
(r, o) => {
|
|
658
658
|
const s = t.value;
|
|
659
659
|
if (s)
|
|
660
660
|
for (const [u, l] of r.entries()) {
|
|
661
661
|
const { name: d, defaultValue: c } = n[u], g = o[u];
|
|
662
|
-
|
|
662
|
+
Ot(l, g) || s[pa(d)](l != null ? l : c);
|
|
663
663
|
}
|
|
664
664
|
},
|
|
665
665
|
{
|
|
666
666
|
immediate: !0,
|
|
667
667
|
flush: "post",
|
|
668
|
-
...
|
|
668
|
+
...i
|
|
669
669
|
}
|
|
670
670
|
);
|
|
671
671
|
}
|
|
672
|
-
function
|
|
673
|
-
return
|
|
672
|
+
function Pe(t, e, n, i) {
|
|
673
|
+
return va(t, e, n, {
|
|
674
674
|
immediate: !1,
|
|
675
|
-
...
|
|
675
|
+
...i
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
|
-
function ae(t, e, n,
|
|
679
|
-
B((
|
|
678
|
+
function ae(t, e, n, i) {
|
|
679
|
+
B((a) => {
|
|
680
680
|
const r = t == null ? void 0 : t.value;
|
|
681
681
|
if (!r)
|
|
682
682
|
return;
|
|
683
683
|
const o = [];
|
|
684
|
-
for (const s of
|
|
685
|
-
const u =
|
|
684
|
+
for (const s of i) {
|
|
685
|
+
const u = Et(s), l = Zt(s), d = (c) => n(u, c);
|
|
686
686
|
r.on(l, d), o.push(() => r == null ? void 0 : r.off(l, d));
|
|
687
687
|
}
|
|
688
|
-
|
|
688
|
+
a(() => {
|
|
689
689
|
for (const s of o)
|
|
690
690
|
s();
|
|
691
691
|
});
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
|
-
function K(t, e, n,
|
|
695
|
-
B((
|
|
694
|
+
function K(t, e, n, i) {
|
|
695
|
+
B((a) => {
|
|
696
696
|
const r = t == null ? void 0 : t.value;
|
|
697
697
|
if (!r)
|
|
698
698
|
return;
|
|
699
699
|
const o = [];
|
|
700
|
-
for (const s of
|
|
701
|
-
const u =
|
|
700
|
+
for (const s of i) {
|
|
701
|
+
const u = Et(s), l = Zt(s), d = (g) => n(u, g), c = r.addListener(l, d);
|
|
702
702
|
o.push(() => google.maps.event.removeListener(c));
|
|
703
703
|
}
|
|
704
|
-
|
|
704
|
+
a(() => {
|
|
705
705
|
for (const s of o)
|
|
706
706
|
s();
|
|
707
707
|
});
|
|
708
708
|
});
|
|
709
709
|
}
|
|
710
710
|
const W = v(function(e, { emit: n }) {
|
|
711
|
-
const { registerOverlay:
|
|
711
|
+
const { registerOverlay: i } = e, a = P(), r = ye();
|
|
712
712
|
return pe(() => {
|
|
713
|
-
|
|
713
|
+
a.value = new AMap.Marker({ ...e });
|
|
714
714
|
}), ve(() => {
|
|
715
715
|
var o;
|
|
716
|
-
(o =
|
|
717
|
-
}),
|
|
716
|
+
(o = a.value) == null || o.setMap(null);
|
|
717
|
+
}), It({ registerOverlay: i, overlayRef: a }), B(() => {
|
|
718
718
|
var s;
|
|
719
719
|
const o = r == null ? void 0 : r.value;
|
|
720
|
-
o && ((s =
|
|
721
|
-
}),
|
|
720
|
+
o && ((s = a.value) == null || s.setMap(o));
|
|
721
|
+
}), Pe(a, e, [
|
|
722
722
|
{ name: "anchor", defaultValue: "" },
|
|
723
723
|
{ name: "offset", defaultValue: [0, 0] },
|
|
724
724
|
{ name: "clickable", defaultValue: !1 },
|
|
@@ -732,163 +732,163 @@ const W = v(function(e, { emit: n }) {
|
|
|
732
732
|
{ name: "content", defaultValue: "" },
|
|
733
733
|
{ name: "title", defaultValue: "" },
|
|
734
734
|
{ name: "extData", defaultValue: "" }
|
|
735
|
-
]), ae(
|
|
735
|
+
]), ae(a, e, n, ["onClick"]), () => null;
|
|
736
736
|
}), U = v(function(e, { emit: n }) {
|
|
737
|
-
const { registerOverlay:
|
|
738
|
-
return
|
|
737
|
+
const { registerOverlay: i } = e, a = P(), r = je(), o = (s) => n(s, { target: a.value });
|
|
738
|
+
return It({ registerOverlay: i, overlayRef: a }), pe(() => {
|
|
739
739
|
const { registerOverlay: s, ...u } = e;
|
|
740
|
-
|
|
740
|
+
a.value = new google.maps.marker.AdvancedMarkerView({ ...u }), a.value.addListener;
|
|
741
741
|
}), ve(() => {
|
|
742
|
-
|
|
742
|
+
a.value && (a.value.map = null);
|
|
743
743
|
}), B(() => {
|
|
744
744
|
const s = r == null ? void 0 : r.value;
|
|
745
|
-
!s || !
|
|
745
|
+
!s || !a.value || (a.value.map = s);
|
|
746
746
|
}), se(
|
|
747
747
|
() => {
|
|
748
748
|
const { content: s, registerOverlay: u, ...l } = e;
|
|
749
749
|
return l;
|
|
750
750
|
},
|
|
751
751
|
(s) => {
|
|
752
|
-
|
|
752
|
+
a.value && Object.assign(a.value, s);
|
|
753
753
|
}
|
|
754
754
|
), b(
|
|
755
755
|
() => e.content,
|
|
756
756
|
(s) => {
|
|
757
|
-
|
|
757
|
+
a.value && (a.value.content = s);
|
|
758
758
|
},
|
|
759
759
|
{
|
|
760
760
|
flush: "post"
|
|
761
761
|
}
|
|
762
|
-
), K(
|
|
762
|
+
), K(a, e, o, ["onClick"]), () => null;
|
|
763
763
|
}), T = (t, e, n) => {
|
|
764
|
-
const { class:
|
|
765
|
-
return
|
|
766
|
-
},
|
|
767
|
-
var
|
|
768
|
-
const
|
|
764
|
+
const { class: i, ...a } = e != null ? e : {}, r = document.createElement(t);
|
|
765
|
+
return i && (r.className = i), Object.assign(r, a), n && (r.innerHTML = n), r;
|
|
766
|
+
}, Gt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+";
|
|
767
|
+
var Wt = "rgf09w0";
|
|
768
|
+
const Ut = v(function(e) {
|
|
769
769
|
const n = L(() => `
|
|
770
|
-
<img src="${
|
|
770
|
+
<img src="${Gt}" class="${Wt}">
|
|
771
771
|
`);
|
|
772
|
-
return () =>
|
|
772
|
+
return () => I(W, {
|
|
773
773
|
attrs: {
|
|
774
774
|
position: e.position,
|
|
775
775
|
content: n.value,
|
|
776
776
|
anchor: "bottom-center"
|
|
777
777
|
}
|
|
778
778
|
});
|
|
779
|
-
}),
|
|
779
|
+
}), Bt = v(function(e) {
|
|
780
780
|
const n = L(() => T("img", {
|
|
781
|
-
class:
|
|
782
|
-
src:
|
|
781
|
+
class: Wt,
|
|
782
|
+
src: Gt
|
|
783
783
|
}));
|
|
784
|
-
return () =>
|
|
784
|
+
return () => I(U, {
|
|
785
785
|
attrs: {
|
|
786
|
-
position:
|
|
786
|
+
position: C(e.position),
|
|
787
787
|
content: n.value
|
|
788
788
|
}
|
|
789
789
|
});
|
|
790
790
|
});
|
|
791
791
|
v(function(e) {
|
|
792
792
|
const n = A();
|
|
793
|
-
return () =>
|
|
793
|
+
return () => Z(n.supplier === "gmap" ? Bt : Ut, {
|
|
794
794
|
attrs: e
|
|
795
795
|
});
|
|
796
796
|
});
|
|
797
|
-
var
|
|
798
|
-
const
|
|
797
|
+
var Yt = "_15rq2xn1", Vt = "_15rq2xn0", Ht = "_15rq2xn3", Qt = "_15rq2xn2", Jt = "_15rq2xn4", Ft = "_15rq2xn6", Xt = "_15rq2xn5";
|
|
798
|
+
const ya = v(function(e) {
|
|
799
799
|
const n = L(() => {
|
|
800
|
-
var
|
|
800
|
+
var i;
|
|
801
801
|
return `
|
|
802
|
-
<div class="${
|
|
803
|
-
<div class="${
|
|
802
|
+
<div class="${Vt}">
|
|
803
|
+
<div class="${Yt}">
|
|
804
804
|
<div>
|
|
805
|
-
<div class="${
|
|
806
|
-
<div class="${
|
|
805
|
+
<div class="${Qt}">${e.title}</div>
|
|
806
|
+
<div class="${Ht}">${(i = e.description) != null ? i : ""}</div>
|
|
807
807
|
</div>
|
|
808
|
-
<img class="${
|
|
808
|
+
<img class="${Jt}" src="${ct}" >
|
|
809
809
|
</div>
|
|
810
|
-
<div class="${
|
|
811
|
-
<img src="${G}" class="${
|
|
810
|
+
<div class="${Xt}"></div>
|
|
811
|
+
<img src="${G}" class="${Ft}">
|
|
812
812
|
</div>
|
|
813
813
|
`;
|
|
814
814
|
});
|
|
815
|
-
return () => e.type === "locator" ?
|
|
815
|
+
return () => e.type === "locator" ? I(Ut, {
|
|
816
816
|
attrs: {
|
|
817
817
|
position: e.position
|
|
818
818
|
}
|
|
819
|
-
}) :
|
|
819
|
+
}) : I(W, {
|
|
820
820
|
attrs: {
|
|
821
821
|
position: e.position,
|
|
822
822
|
content: n.value,
|
|
823
823
|
anchor: "bottom-center"
|
|
824
824
|
}
|
|
825
825
|
});
|
|
826
|
-
}),
|
|
826
|
+
}), ja = v(function(e) {
|
|
827
827
|
const n = L(() => {
|
|
828
|
-
var
|
|
828
|
+
var i;
|
|
829
829
|
return T("div", {
|
|
830
|
-
class:
|
|
830
|
+
class: Vt
|
|
831
831
|
}, `
|
|
832
|
-
<div class="${
|
|
832
|
+
<div class="${Yt}">
|
|
833
833
|
<div>
|
|
834
|
-
<div class="${
|
|
835
|
-
<div class="${
|
|
834
|
+
<div class="${Qt}">${e.title}</div>
|
|
835
|
+
<div class="${Ht}">${(i = e.description) != null ? i : ""}</div>
|
|
836
836
|
</div>
|
|
837
|
-
<img class="${
|
|
837
|
+
<img class="${Jt}" src="${ct}" >
|
|
838
838
|
</div>
|
|
839
|
-
<div class="${
|
|
840
|
-
<img src="${G}" class="${
|
|
839
|
+
<div class="${Xt}"></div>
|
|
840
|
+
<img src="${G}" class="${Ft}">
|
|
841
841
|
`);
|
|
842
842
|
});
|
|
843
|
-
return () => e.type === "locator" ?
|
|
843
|
+
return () => e.type === "locator" ? I(Bt, {
|
|
844
844
|
attrs: {
|
|
845
845
|
position: e.position
|
|
846
846
|
}
|
|
847
|
-
}) :
|
|
847
|
+
}) : I(U, {
|
|
848
848
|
attrs: {
|
|
849
|
-
position:
|
|
849
|
+
position: C(e.position),
|
|
850
850
|
content: n.value
|
|
851
851
|
}
|
|
852
852
|
});
|
|
853
|
-
}),
|
|
853
|
+
}), Pr = v(function(e) {
|
|
854
854
|
const n = A();
|
|
855
|
-
return () =>
|
|
855
|
+
return () => Z(n.supplier === "gmap" ? ja : ya, {
|
|
856
856
|
attrs: e
|
|
857
857
|
});
|
|
858
858
|
});
|
|
859
|
-
var
|
|
859
|
+
var De = {}, Aa = {
|
|
860
860
|
get exports() {
|
|
861
|
-
return
|
|
861
|
+
return De;
|
|
862
862
|
},
|
|
863
863
|
set exports(t) {
|
|
864
|
-
|
|
864
|
+
De = t;
|
|
865
865
|
}
|
|
866
866
|
};
|
|
867
867
|
(function(t, e) {
|
|
868
|
-
(function(n,
|
|
869
|
-
t.exports =
|
|
870
|
-
})(
|
|
868
|
+
(function(n, i) {
|
|
869
|
+
t.exports = i();
|
|
870
|
+
})(Tn, function() {
|
|
871
871
|
function n(c) {
|
|
872
872
|
var g = [];
|
|
873
|
-
return c.AMapUI && g.push(
|
|
873
|
+
return c.AMapUI && g.push(i(c.AMapUI)), c.Loca && g.push(a(c.Loca)), Promise.all(g);
|
|
874
874
|
}
|
|
875
|
-
function
|
|
876
|
-
return new Promise(function(g,
|
|
875
|
+
function i(c) {
|
|
876
|
+
return new Promise(function(g, M) {
|
|
877
877
|
var m = [];
|
|
878
878
|
if (c.plugins)
|
|
879
879
|
for (var p = 0; p < c.plugins.length; p += 1)
|
|
880
880
|
o.AMapUI.plugins.indexOf(c.plugins[p]) == -1 && m.push(c.plugins[p]);
|
|
881
881
|
if (s.AMapUI === r.failed)
|
|
882
|
-
|
|
882
|
+
M("前次请求 AMapUI 失败");
|
|
883
883
|
else if (s.AMapUI === r.notload) {
|
|
884
884
|
s.AMapUI = r.loading, o.AMapUI.version = c.version || o.AMapUI.version, p = o.AMapUI.version;
|
|
885
885
|
var f = document.body || document.head, j = document.createElement("script");
|
|
886
886
|
j.type = "text/javascript", j.src = "https://webapi.amap.com/ui/" + p + "/main.js", j.onerror = function(y) {
|
|
887
|
-
s.AMapUI = r.failed,
|
|
887
|
+
s.AMapUI = r.failed, M("请求 AMapUI 失败");
|
|
888
888
|
}, j.onload = function() {
|
|
889
889
|
if (s.AMapUI = r.loaded, m.length)
|
|
890
890
|
window.AMapUI.loadUI(m, function() {
|
|
891
|
-
for (var y = 0,
|
|
891
|
+
for (var y = 0, w = m.length; y < w; y++) {
|
|
892
892
|
var z = m[y].split("/").slice(-1)[0];
|
|
893
893
|
window.AMapUI[z] = arguments[y];
|
|
894
894
|
}
|
|
@@ -900,45 +900,45 @@ var Se = {}, va = {
|
|
|
900
900
|
u.AMapUI.splice(0, 1)[0]();
|
|
901
901
|
}, f.appendChild(j);
|
|
902
902
|
} else
|
|
903
|
-
s.AMapUI === r.loaded ? c.version && c.version !== o.AMapUI.version ?
|
|
904
|
-
for (var y = 0,
|
|
903
|
+
s.AMapUI === r.loaded ? c.version && c.version !== o.AMapUI.version ? M("不允许多个版本 AMapUI 混用") : m.length ? window.AMapUI.loadUI(m, function() {
|
|
904
|
+
for (var y = 0, w = m.length; y < w; y++) {
|
|
905
905
|
var z = m[y].split("/").slice(-1)[0];
|
|
906
906
|
window.AMapUI[z] = arguments[y];
|
|
907
907
|
}
|
|
908
908
|
g();
|
|
909
|
-
}) : g() : c.version && c.version !== o.AMapUI.version ?
|
|
910
|
-
y ?
|
|
911
|
-
for (var
|
|
912
|
-
var
|
|
913
|
-
window.AMapUI[
|
|
909
|
+
}) : g() : c.version && c.version !== o.AMapUI.version ? M("不允许多个版本 AMapUI 混用") : u.AMapUI.push(function(y) {
|
|
910
|
+
y ? M(y) : m.length ? window.AMapUI.loadUI(m, function() {
|
|
911
|
+
for (var w = 0, z = m.length; w < z; w++) {
|
|
912
|
+
var H = m[w].split("/").slice(-1)[0];
|
|
913
|
+
window.AMapUI[H] = arguments[w];
|
|
914
914
|
}
|
|
915
915
|
g();
|
|
916
916
|
}) : g();
|
|
917
917
|
});
|
|
918
918
|
});
|
|
919
919
|
}
|
|
920
|
-
function
|
|
921
|
-
return new Promise(function(g,
|
|
920
|
+
function a(c) {
|
|
921
|
+
return new Promise(function(g, M) {
|
|
922
922
|
if (s.Loca === r.failed)
|
|
923
|
-
|
|
923
|
+
M("前次请求 Loca 失败");
|
|
924
924
|
else if (s.Loca === r.notload) {
|
|
925
925
|
s.Loca = r.loading, o.Loca.version = c.version || o.Loca.version;
|
|
926
926
|
var m = o.Loca.version, p = o.AMap.version.startsWith("2"), f = m.startsWith("2");
|
|
927
927
|
if (p && !f || !p && f)
|
|
928
|
-
|
|
928
|
+
M("JSAPI 与 Loca 版本不对应!!");
|
|
929
929
|
else {
|
|
930
930
|
p = o.key, f = document.body || document.head;
|
|
931
931
|
var j = document.createElement("script");
|
|
932
932
|
j.type = "text/javascript", j.src = "https://webapi.amap.com/loca?v=" + m + "&key=" + p, j.onerror = function(y) {
|
|
933
|
-
s.Loca = r.failed,
|
|
933
|
+
s.Loca = r.failed, M("请求 AMapUI 失败");
|
|
934
934
|
}, j.onload = function() {
|
|
935
935
|
for (s.Loca = r.loaded, g(); u.Loca.length; )
|
|
936
936
|
u.Loca.splice(0, 1)[0]();
|
|
937
937
|
}, f.appendChild(j);
|
|
938
938
|
}
|
|
939
939
|
} else
|
|
940
|
-
s.Loca === r.loaded ? c.version && c.version !== o.Loca.version ?
|
|
941
|
-
y ?
|
|
940
|
+
s.Loca === r.loaded ? c.version && c.version !== o.Loca.version ? M("不允许多个版本 Loca 混用") : g() : c.version && c.version !== o.Loca.version ? M("不允许多个版本 Loca 混用") : u.Loca.push(function(y) {
|
|
941
|
+
y ? M(y) : M();
|
|
942
942
|
});
|
|
943
943
|
});
|
|
944
944
|
}
|
|
@@ -952,27 +952,27 @@ var Se = {}, va = {
|
|
|
952
952
|
typeof c == "function" && (s.AMap === r.loaded ? c(window.AMap) : l.push(c));
|
|
953
953
|
};
|
|
954
954
|
return { load: function(c) {
|
|
955
|
-
return new Promise(function(g,
|
|
955
|
+
return new Promise(function(g, M) {
|
|
956
956
|
if (s.AMap == r.failed)
|
|
957
|
-
|
|
957
|
+
M("");
|
|
958
958
|
else if (s.AMap == r.notload) {
|
|
959
959
|
var m = c.key, p = c.version, f = c.plugins;
|
|
960
|
-
m ? (window.AMap && location.host !== "lbs.amap.com" &&
|
|
960
|
+
m ? (window.AMap && location.host !== "lbs.amap.com" && M("禁止多种API加载方式混用"), o.key = m, o.AMap.version = p || o.AMap.version, o.AMap.plugins = f || o.AMap.plugins, s.AMap = r.loading, p = document.body || document.head, window.___onAPILoaded = function(y) {
|
|
961
961
|
if (delete window.___onAPILoaded, y)
|
|
962
|
-
s.AMap = r.failed,
|
|
962
|
+
s.AMap = r.failed, M(y);
|
|
963
963
|
else
|
|
964
964
|
for (s.AMap = r.loaded, n(c).then(function() {
|
|
965
965
|
g(window.AMap);
|
|
966
|
-
}).catch(
|
|
966
|
+
}).catch(M); l.length; )
|
|
967
967
|
l.splice(0, 1)[0]();
|
|
968
968
|
}, f = document.createElement("script"), f.type = "text/javascript", f.src = "https://webapi.amap.com/maps?callback=___onAPILoaded&v=" + o.AMap.version + "&key=" + m + "&plugin=" + o.AMap.plugins.join(","), f.onerror = function(y) {
|
|
969
|
-
s.AMap = r.failed,
|
|
970
|
-
}, p.appendChild(f)) :
|
|
969
|
+
s.AMap = r.failed, M(y);
|
|
970
|
+
}, p.appendChild(f)) : M("请填写key");
|
|
971
971
|
} else if (s.AMap == r.loaded)
|
|
972
972
|
if (c.key && c.key !== o.key)
|
|
973
|
-
|
|
973
|
+
M("多个不一致的 key");
|
|
974
974
|
else if (c.version && c.version !== o.AMap.version)
|
|
975
|
-
|
|
975
|
+
M("不允许多个版本 JSAPI 混用");
|
|
976
976
|
else {
|
|
977
977
|
if (m = [], c.plugins)
|
|
978
978
|
for (p = 0; p < c.plugins.length; p += 1)
|
|
@@ -980,15 +980,15 @@ var Se = {}, va = {
|
|
|
980
980
|
m.length ? window.AMap.plugin(m, function() {
|
|
981
981
|
n(c).then(function() {
|
|
982
982
|
g(window.AMap);
|
|
983
|
-
}).catch(
|
|
983
|
+
}).catch(M);
|
|
984
984
|
}) : n(c).then(function() {
|
|
985
985
|
g(window.AMap);
|
|
986
|
-
}).catch(
|
|
986
|
+
}).catch(M);
|
|
987
987
|
}
|
|
988
988
|
else if (c.key && c.key !== o.key)
|
|
989
|
-
|
|
989
|
+
M("多个不一致的 key");
|
|
990
990
|
else if (c.version && c.version !== o.AMap.version)
|
|
991
|
-
|
|
991
|
+
M("不允许多个版本 JSAPI 混用");
|
|
992
992
|
else {
|
|
993
993
|
var j = [];
|
|
994
994
|
if (c.plugins)
|
|
@@ -998,10 +998,10 @@ var Se = {}, va = {
|
|
|
998
998
|
j.length ? window.AMap.plugin(j, function() {
|
|
999
999
|
n(c).then(function() {
|
|
1000
1000
|
g(window.AMap);
|
|
1001
|
-
}).catch(
|
|
1001
|
+
}).catch(M);
|
|
1002
1002
|
}) : n(c).then(function() {
|
|
1003
1003
|
g(window.AMap);
|
|
1004
|
-
}).catch(
|
|
1004
|
+
}).catch(M);
|
|
1005
1005
|
});
|
|
1006
1006
|
}
|
|
1007
1007
|
});
|
|
@@ -1013,19 +1013,19 @@ var Se = {}, va = {
|
|
|
1013
1013
|
}, u = { AMap: [], AMapUI: [], Loca: [] };
|
|
1014
1014
|
} };
|
|
1015
1015
|
});
|
|
1016
|
-
})(
|
|
1017
|
-
var
|
|
1016
|
+
})(Aa);
|
|
1017
|
+
var La = function t(e, n) {
|
|
1018
1018
|
if (e === n)
|
|
1019
1019
|
return !0;
|
|
1020
1020
|
if (e && n && typeof e == "object" && typeof n == "object") {
|
|
1021
1021
|
if (e.constructor !== n.constructor)
|
|
1022
1022
|
return !1;
|
|
1023
|
-
var
|
|
1023
|
+
var i, a, r;
|
|
1024
1024
|
if (Array.isArray(e)) {
|
|
1025
|
-
if (
|
|
1025
|
+
if (i = e.length, i != n.length)
|
|
1026
1026
|
return !1;
|
|
1027
|
-
for (
|
|
1028
|
-
if (!t(e[
|
|
1027
|
+
for (a = i; a-- !== 0; )
|
|
1028
|
+
if (!t(e[a], n[a]))
|
|
1029
1029
|
return !1;
|
|
1030
1030
|
return !0;
|
|
1031
1031
|
}
|
|
@@ -1035,13 +1035,13 @@ var ya = function t(e, n) {
|
|
|
1035
1035
|
return e.valueOf() === n.valueOf();
|
|
1036
1036
|
if (e.toString !== Object.prototype.toString)
|
|
1037
1037
|
return e.toString() === n.toString();
|
|
1038
|
-
if (r = Object.keys(e),
|
|
1038
|
+
if (r = Object.keys(e), i = r.length, i !== Object.keys(n).length)
|
|
1039
1039
|
return !1;
|
|
1040
|
-
for (
|
|
1041
|
-
if (!Object.prototype.hasOwnProperty.call(n, r[
|
|
1040
|
+
for (a = i; a-- !== 0; )
|
|
1041
|
+
if (!Object.prototype.hasOwnProperty.call(n, r[a]))
|
|
1042
1042
|
return !1;
|
|
1043
|
-
for (
|
|
1044
|
-
var o = r[
|
|
1043
|
+
for (a = i; a-- !== 0; ) {
|
|
1044
|
+
var o = r[a];
|
|
1045
1045
|
if (!t(e[o], n[o]))
|
|
1046
1046
|
return !1;
|
|
1047
1047
|
}
|
|
@@ -1049,12 +1049,12 @@ var ya = function t(e, n) {
|
|
|
1049
1049
|
}
|
|
1050
1050
|
return e !== e && n !== n;
|
|
1051
1051
|
};
|
|
1052
|
-
const
|
|
1053
|
-
var
|
|
1052
|
+
const et = "__googleMapsScriptId";
|
|
1053
|
+
var X;
|
|
1054
1054
|
(function(t) {
|
|
1055
1055
|
t[t.INITIALIZED = 0] = "INITIALIZED", t[t.LOADING = 1] = "LOADING", t[t.SUCCESS = 2] = "SUCCESS", t[t.FAILURE = 3] = "FAILURE";
|
|
1056
|
-
})(
|
|
1057
|
-
class
|
|
1056
|
+
})(X || (X = {}));
|
|
1057
|
+
class J {
|
|
1058
1058
|
/**
|
|
1059
1059
|
* Creates an instance of Loader using [[LoaderOptions]]. No defaults are set
|
|
1060
1060
|
* using this library, instead the defaults are set by the Google Maps
|
|
@@ -1064,13 +1064,13 @@ class V {
|
|
|
1064
1064
|
* const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
|
|
1065
1065
|
* ```
|
|
1066
1066
|
*/
|
|
1067
|
-
constructor({ apiKey: e, authReferrerPolicy: n, channel:
|
|
1068
|
-
if (this.CALLBACK = "__googleMapsCallback", this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = e, this.authReferrerPolicy = n, this.channel =
|
|
1069
|
-
if (!
|
|
1070
|
-
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(
|
|
1071
|
-
return
|
|
1067
|
+
constructor({ apiKey: e, authReferrerPolicy: n, channel: i, client: a, id: r = et, language: o, libraries: s = [], mapIds: u, nonce: l, region: d, retries: c = 3, url: g = "https://maps.googleapis.com/maps/api/js", version: M }) {
|
|
1068
|
+
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 = r || et, this.language = o, this.libraries = s, this.mapIds = u, this.nonce = l, this.region = d, this.retries = c, this.url = g, this.version = M, J.instance) {
|
|
1069
|
+
if (!La(this.options, J.instance.options))
|
|
1070
|
+
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(J.instance.options)}`);
|
|
1071
|
+
return J.instance;
|
|
1072
1072
|
}
|
|
1073
|
-
|
|
1073
|
+
J.instance = this;
|
|
1074
1074
|
}
|
|
1075
1075
|
get options() {
|
|
1076
1076
|
return {
|
|
@@ -1089,7 +1089,7 @@ class V {
|
|
|
1089
1089
|
};
|
|
1090
1090
|
}
|
|
1091
1091
|
get status() {
|
|
1092
|
-
return this.errors.length ?
|
|
1092
|
+
return this.errors.length ? X.FAILURE : this.done ? X.SUCCESS : this.loading ? X.LOADING : X.INITIALIZED;
|
|
1093
1093
|
}
|
|
1094
1094
|
get failed() {
|
|
1095
1095
|
return this.done && !this.loading && this.errors.length >= this.retries + 1;
|
|
@@ -1120,8 +1120,8 @@ class V {
|
|
|
1120
1120
|
*/
|
|
1121
1121
|
loadPromise() {
|
|
1122
1122
|
return new Promise((e, n) => {
|
|
1123
|
-
this.loadCallback((
|
|
1124
|
-
|
|
1123
|
+
this.loadCallback((i) => {
|
|
1124
|
+
i ? n(i.error) : e(window.google);
|
|
1125
1125
|
});
|
|
1126
1126
|
});
|
|
1127
1127
|
}
|
|
@@ -1180,38 +1180,38 @@ class V {
|
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
|
-
const
|
|
1183
|
+
const Na = [
|
|
1184
1184
|
"AMap.Geolocation",
|
|
1185
1185
|
"AMap.Geocoder",
|
|
1186
1186
|
"AMap.PlaceSearch",
|
|
1187
1187
|
"AMap.Driving",
|
|
1188
1188
|
"AMap.Walking"
|
|
1189
|
-
],
|
|
1189
|
+
], Sa = ["marker", "places", "geometry"];
|
|
1190
1190
|
var re = /* @__PURE__ */ ((t) => (t.LOADING = "LOADING", t.FAILURE = "FAILURE", t.SUCCESS = "SUCCESS", t))(re || {});
|
|
1191
|
-
const
|
|
1191
|
+
const ha = (t) => {
|
|
1192
1192
|
const { onChange: e } = t;
|
|
1193
|
-
let n,
|
|
1194
|
-
const
|
|
1195
|
-
n = s,
|
|
1193
|
+
let n, i;
|
|
1194
|
+
const a = new Promise((s, u) => {
|
|
1195
|
+
n = s, i = u;
|
|
1196
1196
|
}), r = P(
|
|
1197
1197
|
"LOADING"
|
|
1198
1198
|
/* LOADING */
|
|
1199
1199
|
), o = L(() => {
|
|
1200
|
-
const { onChange: s, loading: u, fallback: l, apiKey: d, apiSecret: c, apiServiceHost: g, version:
|
|
1201
|
-
return { ...m, key: d, version:
|
|
1200
|
+
const { onChange: s, loading: u, fallback: l, apiKey: d, apiSecret: c, apiServiceHost: g, version: M, ...m } = t;
|
|
1201
|
+
return { ...m, key: d, version: M != null ? M : "2.0.5.16" };
|
|
1202
1202
|
});
|
|
1203
1203
|
return q(
|
|
1204
1204
|
() => o.value,
|
|
1205
1205
|
(s) => {
|
|
1206
1206
|
const u = (l) => {
|
|
1207
|
-
r.value = l, l === "SUCCESS" && n(), l === "FAILURE" &&
|
|
1207
|
+
r.value = l, l === "SUCCESS" && n(), l === "FAILURE" && i(), e == null || e(r.value);
|
|
1208
1208
|
};
|
|
1209
1209
|
u(
|
|
1210
1210
|
"LOADING"
|
|
1211
1211
|
/* LOADING */
|
|
1212
1212
|
), window._AMapSecurityConfig = t.apiServiceHost ? {
|
|
1213
1213
|
serviceHost: t.apiServiceHost
|
|
1214
|
-
} : { securityJsCode: t.apiSecret },
|
|
1214
|
+
} : { securityJsCode: t.apiSecret }, De.load(s).then(
|
|
1215
1215
|
() => u(
|
|
1216
1216
|
"SUCCESS"
|
|
1217
1217
|
/* SUCCESS */
|
|
@@ -1222,12 +1222,12 @@ const La = (t) => {
|
|
|
1222
1222
|
)
|
|
1223
1223
|
);
|
|
1224
1224
|
}
|
|
1225
|
-
), { statusRef: r, readyPromise:
|
|
1226
|
-
},
|
|
1225
|
+
), { statusRef: r, readyPromise: a };
|
|
1226
|
+
}, Da = (t) => {
|
|
1227
1227
|
const { onChange: e } = t;
|
|
1228
|
-
let n,
|
|
1229
|
-
const
|
|
1230
|
-
n = s,
|
|
1228
|
+
let n, i;
|
|
1229
|
+
const a = new Promise((s, u) => {
|
|
1230
|
+
n = s, i = u;
|
|
1231
1231
|
}), r = P(
|
|
1232
1232
|
"LOADING"
|
|
1233
1233
|
/* LOADING */
|
|
@@ -1238,8 +1238,8 @@ const La = (t) => {
|
|
|
1238
1238
|
return q(
|
|
1239
1239
|
() => o.value,
|
|
1240
1240
|
(s) => {
|
|
1241
|
-
const u = new
|
|
1242
|
-
r.value = d, d === "SUCCESS" && n(), d === "FAILURE" &&
|
|
1241
|
+
const u = new J(s), l = (d) => {
|
|
1242
|
+
r.value = d, d === "SUCCESS" && n(), d === "FAILURE" && i(), e == null || e(r.value);
|
|
1243
1243
|
};
|
|
1244
1244
|
l(
|
|
1245
1245
|
"LOADING"
|
|
@@ -1255,27 +1255,27 @@ const La = (t) => {
|
|
|
1255
1255
|
)
|
|
1256
1256
|
);
|
|
1257
1257
|
}
|
|
1258
|
-
), { statusRef: r, readyPromise:
|
|
1259
|
-
},
|
|
1260
|
-
const { gmapKey: e, amapKey: n, amapSecret:
|
|
1261
|
-
return r === "gmap" ?
|
|
1258
|
+
), { statusRef: r, readyPromise: a };
|
|
1259
|
+
}, wa = (t) => {
|
|
1260
|
+
const { gmapKey: e, amapKey: n, amapSecret: i, amapServiceHost: a, supplier: r, language: o, onChange: s } = t;
|
|
1261
|
+
return r === "gmap" ? Da({
|
|
1262
1262
|
apiKey: e,
|
|
1263
1263
|
language: o,
|
|
1264
1264
|
version: "beta",
|
|
1265
|
-
libraries:
|
|
1265
|
+
libraries: Sa,
|
|
1266
1266
|
onChange: s
|
|
1267
|
-
}) :
|
|
1267
|
+
}) : ha({
|
|
1268
1268
|
apiKey: n,
|
|
1269
|
-
apiSecret:
|
|
1270
|
-
apiServiceHost:
|
|
1271
|
-
plugins:
|
|
1269
|
+
apiSecret: i,
|
|
1270
|
+
apiServiceHost: a,
|
|
1271
|
+
plugins: Na,
|
|
1272
1272
|
onChange: s
|
|
1273
1273
|
});
|
|
1274
1274
|
};
|
|
1275
|
-
var
|
|
1276
|
-
const
|
|
1275
|
+
var xa = "_1d8ur7t0";
|
|
1276
|
+
const Ca = v(function(e, { slots: n, emit: i }) {
|
|
1277
1277
|
const {
|
|
1278
|
-
onDragStart:
|
|
1278
|
+
onDragStart: a,
|
|
1279
1279
|
onDragEnd: r,
|
|
1280
1280
|
mapRef: o,
|
|
1281
1281
|
vectorMapForeign: s = "style_zh_cn",
|
|
@@ -1289,7 +1289,7 @@ const Da = v(function(e, { slots: n, emit: a }) {
|
|
|
1289
1289
|
animateEnable: !!e.animateEnable,
|
|
1290
1290
|
keyboardEnable: !!e.keyboardEnable
|
|
1291
1291
|
})), d = P(), c = P();
|
|
1292
|
-
return
|
|
1292
|
+
return Pn(c), B(() => {
|
|
1293
1293
|
if (c.value || !d.value)
|
|
1294
1294
|
return;
|
|
1295
1295
|
const g = new AMap.Map(d.value, {
|
|
@@ -1301,10 +1301,10 @@ const Da = v(function(e, { slots: n, emit: a }) {
|
|
|
1301
1301
|
}), se(
|
|
1302
1302
|
() => l.value,
|
|
1303
1303
|
(g) => {
|
|
1304
|
-
var
|
|
1305
|
-
(
|
|
1304
|
+
var M;
|
|
1305
|
+
(M = c.value) == null || M.setStatus(g);
|
|
1306
1306
|
}
|
|
1307
|
-
),
|
|
1307
|
+
), Pe(c, e, [
|
|
1308
1308
|
{ name: "center", defaultValue: [0, 0] },
|
|
1309
1309
|
{ name: "zooms", defaultValue: [0, 0] },
|
|
1310
1310
|
{ name: "zoom", defaultValue: 0 },
|
|
@@ -1317,13 +1317,13 @@ const Da = v(function(e, { slots: n, emit: a }) {
|
|
|
1317
1317
|
{ name: "pitch", defaultValue: 0 },
|
|
1318
1318
|
{ name: "mask", defaultValue: [] },
|
|
1319
1319
|
{ name: "labelRejectMask", defaultValue: !1 }
|
|
1320
|
-
]), ae(c, e,
|
|
1320
|
+
]), ae(c, e, i, ["onDragStart", "onDragEnd"]), () => {
|
|
1321
1321
|
var g;
|
|
1322
|
-
return
|
|
1322
|
+
return I("div", { ref: d, class: xa }, (g = n.default) == null ? void 0 : g.call(n));
|
|
1323
1323
|
};
|
|
1324
1324
|
});
|
|
1325
1325
|
let ce = "user";
|
|
1326
|
-
const
|
|
1326
|
+
const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
|
|
1327
1327
|
ce = "api";
|
|
1328
1328
|
try {
|
|
1329
1329
|
e(), setTimeout(() => {
|
|
@@ -1332,18 +1332,18 @@ const Ca = () => ce, Xt = () => ({ executeMapApi: (e) => {
|
|
|
1332
1332
|
} catch (n) {
|
|
1333
1333
|
throw ce = "user", n;
|
|
1334
1334
|
}
|
|
1335
|
-
} }),
|
|
1336
|
-
const
|
|
1337
|
-
const { mapRef: c, onDragStart: g, onDragEnd:
|
|
1335
|
+
} }), Pa = v(function(e, { slots: n, emit: i }) {
|
|
1336
|
+
const a = e.mapRef, r = L(() => {
|
|
1337
|
+
const { mapRef: c, onDragStart: g, onDragEnd: M, ...m } = e;
|
|
1338
1338
|
return m;
|
|
1339
|
-
}), o = r.value, s = P(), u = P(), { executeMapApi: l } =
|
|
1340
|
-
return
|
|
1339
|
+
}), o = r.value, s = P(), u = P(), { executeMapApi: l } = $t(), d = (c) => i(c, { target: u.value });
|
|
1340
|
+
return zn(u), B(() => {
|
|
1341
1341
|
if (u.value || !s.value)
|
|
1342
1342
|
return;
|
|
1343
1343
|
let c;
|
|
1344
1344
|
l(() => {
|
|
1345
1345
|
c = new google.maps.Map(s.value, { ...o });
|
|
1346
|
-
}), u.value = c,
|
|
1346
|
+
}), u.value = c, a == null || a(c);
|
|
1347
1347
|
}), se(
|
|
1348
1348
|
() => r.value,
|
|
1349
1349
|
(c) => {
|
|
@@ -1354,35 +1354,35 @@ const Ca = () => ce, Xt = () => ({ executeMapApi: (e) => {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
), K(u, e, d, ["onDragStart", "onDragEnd"]), () => {
|
|
1356
1356
|
var c;
|
|
1357
|
-
return
|
|
1357
|
+
return I("div", { ref: s }, (c = n.default) == null ? void 0 : c.call(n));
|
|
1358
1358
|
};
|
|
1359
|
-
}),
|
|
1359
|
+
}), zr = V(function(e, {
|
|
1360
1360
|
slots: n
|
|
1361
1361
|
}) {
|
|
1362
1362
|
const {
|
|
1363
|
-
statusRef:
|
|
1364
|
-
readyPromise:
|
|
1365
|
-
} =
|
|
1363
|
+
statusRef: i,
|
|
1364
|
+
readyPromise: a
|
|
1365
|
+
} = wa(e), r = new Proxy(e, {
|
|
1366
1366
|
get(o, s, u) {
|
|
1367
|
-
return s === "status" ?
|
|
1367
|
+
return s === "status" ? i.value : s === "readyPromise" ? a : Reflect.get(o, s, u);
|
|
1368
1368
|
}
|
|
1369
1369
|
});
|
|
1370
|
-
return
|
|
1370
|
+
return bn(r), () => {
|
|
1371
1371
|
var o;
|
|
1372
|
-
return
|
|
1372
|
+
return I("div", [(o = n.default) == null ? void 0 : o.call(n)]);
|
|
1373
1373
|
};
|
|
1374
|
-
}).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier", "language"]),
|
|
1374
|
+
}).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier", "language"]), _t = V(function(e, {
|
|
1375
1375
|
slots: n,
|
|
1376
|
-
emit:
|
|
1376
|
+
emit: i
|
|
1377
1377
|
}) {
|
|
1378
|
-
const
|
|
1378
|
+
const a = A(), r = ({
|
|
1379
1379
|
target: s
|
|
1380
1380
|
}) => {
|
|
1381
1381
|
const {
|
|
1382
1382
|
lng: u,
|
|
1383
1383
|
lat: l
|
|
1384
1384
|
} = s.getCenter();
|
|
1385
|
-
|
|
1385
|
+
i("dragEnd", [u(), l()]);
|
|
1386
1386
|
}, o = ({
|
|
1387
1387
|
target: s
|
|
1388
1388
|
}) => {
|
|
@@ -1390,7 +1390,7 @@ const Ca = () => ce, Xt = () => ({ executeMapApi: (e) => {
|
|
|
1390
1390
|
lng: u,
|
|
1391
1391
|
lat: l
|
|
1392
1392
|
} = s.getCenter();
|
|
1393
|
-
|
|
1393
|
+
i("dragEnd", [u, l]);
|
|
1394
1394
|
};
|
|
1395
1395
|
return () => {
|
|
1396
1396
|
var p, f, j;
|
|
@@ -1399,10 +1399,10 @@ const Ca = () => ce, Xt = () => ({ executeMapApi: (e) => {
|
|
|
1399
1399
|
gmapId: u,
|
|
1400
1400
|
language: l = "zh",
|
|
1401
1401
|
status: d
|
|
1402
|
-
} =
|
|
1402
|
+
} = a, {
|
|
1403
1403
|
mapRef: c,
|
|
1404
1404
|
center: g,
|
|
1405
|
-
zoom:
|
|
1405
|
+
zoom: M
|
|
1406
1406
|
} = e;
|
|
1407
1407
|
if (d === re.LOADING)
|
|
1408
1408
|
return (p = n.loading) == null ? void 0 : p.call(n);
|
|
@@ -1411,24 +1411,24 @@ const Ca = () => ce, Xt = () => ({ executeMapApi: (e) => {
|
|
|
1411
1411
|
const m = (j = n.default) == null ? void 0 : j.call(n);
|
|
1412
1412
|
switch (s) {
|
|
1413
1413
|
case "gmap":
|
|
1414
|
-
return
|
|
1414
|
+
return I(Pa, {
|
|
1415
1415
|
attrs: {
|
|
1416
1416
|
mapRef: c,
|
|
1417
1417
|
mapId: u,
|
|
1418
|
-
center: g ?
|
|
1419
|
-
zoom:
|
|
1418
|
+
center: g ? C(g) : void 0,
|
|
1419
|
+
zoom: M
|
|
1420
1420
|
},
|
|
1421
1421
|
on: {
|
|
1422
1422
|
dragEnd: r
|
|
1423
1423
|
}
|
|
1424
1424
|
}, [m]);
|
|
1425
1425
|
default:
|
|
1426
|
-
return
|
|
1426
|
+
return I(Ca, {
|
|
1427
1427
|
attrs: {
|
|
1428
1428
|
mapRef: c,
|
|
1429
|
-
vectorMapForeign:
|
|
1429
|
+
vectorMapForeign: ma(l),
|
|
1430
1430
|
center: g,
|
|
1431
|
-
zoom:
|
|
1431
|
+
zoom: M
|
|
1432
1432
|
},
|
|
1433
1433
|
on: {
|
|
1434
1434
|
dragEnd: o
|
|
@@ -1436,103 +1436,65 @@ const Ca = () => ce, Xt = () => ({ executeMapApi: (e) => {
|
|
|
1436
1436
|
}, [m]);
|
|
1437
1437
|
}
|
|
1438
1438
|
};
|
|
1439
|
-
}).props(["center", "fallback", "loading", "mapRef", "zoom"]),
|
|
1440
|
-
|
|
1441
|
-
const { onChange: e, onLoad: n, onLoadDefault: a, geoDefaultPosition: i } = t != null ? t : {}, r = D(!1), o = D(!1), s = D(), u = D({
|
|
1442
|
-
accuracy: 0,
|
|
1443
|
-
altitude: 0,
|
|
1444
|
-
altitudeAccuracy: 0,
|
|
1445
|
-
heading: 0,
|
|
1446
|
-
latitude: (d = i == null ? void 0 : i[1]) != null ? d : 0,
|
|
1447
|
-
longitude: (c = i == null ? void 0 : i[0]) != null ? c : 0,
|
|
1448
|
-
speed: 0
|
|
1449
|
-
}), l = D([u.value.longitude, u.value.latitude]);
|
|
1450
|
-
return b(
|
|
1451
|
-
() => !0,
|
|
1452
|
-
(g, I, m) => {
|
|
1453
|
-
r.value = !0;
|
|
1454
|
-
const p = navigator.geolocation.watchPosition(
|
|
1455
|
-
(f) => {
|
|
1456
|
-
const j = f.coords, y = [f.coords.longitude, f.coords.latitude];
|
|
1457
|
-
u.value = j, l.value = y, r.value && (r.value = !1, o.value = !0, n == null || n({ position: y, coordinate: j })), e == null || e({ position: y, coordinate: j });
|
|
1458
|
-
},
|
|
1459
|
-
(f) => {
|
|
1460
|
-
r.value = !1, s.value = f;
|
|
1461
|
-
const j = t == null ? void 0 : t.geoDefaultPosition;
|
|
1462
|
-
j && (a == null || a({ position: j })), console.log("errorRef = ", s);
|
|
1463
|
-
},
|
|
1464
|
-
// todo 要不要 timeout
|
|
1465
|
-
{ timeout: 5e3, maximumAge: 0, enableHighAccuracy: !0 }
|
|
1466
|
-
);
|
|
1467
|
-
m(() => navigator.geolocation.clearWatch(p));
|
|
1468
|
-
},
|
|
1469
|
-
{ immediate: !0 }
|
|
1470
|
-
), {
|
|
1471
|
-
geoError: s,
|
|
1472
|
-
geoPosition: l,
|
|
1473
|
-
geoCoordinate: u,
|
|
1474
|
-
geoLoading: r,
|
|
1475
|
-
geoReady: o
|
|
1476
|
-
};
|
|
1477
|
-
}, ie = v(function(e) {
|
|
1478
|
-
const n = P(), a = ye();
|
|
1439
|
+
}).props(["center", "fallback", "loading", "mapRef", "zoom"]), ie = v(function(e) {
|
|
1440
|
+
const n = P(), i = ye();
|
|
1479
1441
|
return pe(() => {
|
|
1480
1442
|
n.value = new AMap.Polyline({ ...e });
|
|
1481
1443
|
}), ve(() => {
|
|
1482
|
-
var
|
|
1483
|
-
(
|
|
1444
|
+
var a;
|
|
1445
|
+
(a = n.value) == null || a.setMap(null);
|
|
1484
1446
|
}), B(() => {
|
|
1485
1447
|
var r;
|
|
1486
|
-
const
|
|
1487
|
-
|
|
1488
|
-
}),
|
|
1448
|
+
const a = i == null ? void 0 : i.value;
|
|
1449
|
+
a && ((r = n.value) == null || r.setMap(a));
|
|
1450
|
+
}), Pe(n, e, [
|
|
1489
1451
|
{ name: "path", defaultValue: [[0, 0]] },
|
|
1490
1452
|
{ name: "extData", defaultValue: void 0 },
|
|
1491
1453
|
{ name: "draggable", defaultValue: !1 }
|
|
1492
1454
|
]), se(
|
|
1493
1455
|
() => {
|
|
1494
|
-
const { path:
|
|
1456
|
+
const { path: a, extData: r, draggable: o, ...s } = e;
|
|
1495
1457
|
return s;
|
|
1496
1458
|
},
|
|
1497
|
-
(
|
|
1459
|
+
(a) => {
|
|
1498
1460
|
var r;
|
|
1499
|
-
(r = n.value) == null || r.setOptions({ ...
|
|
1461
|
+
(r = n.value) == null || r.setOptions({ ...a });
|
|
1500
1462
|
}
|
|
1501
1463
|
), () => null;
|
|
1502
1464
|
}), ue = v(function(e) {
|
|
1503
|
-
const n = P(),
|
|
1465
|
+
const n = P(), i = je();
|
|
1504
1466
|
return pe(() => {
|
|
1505
1467
|
n.value = new google.maps.Polyline({ ...e });
|
|
1506
1468
|
}), ve(() => {
|
|
1507
|
-
var
|
|
1508
|
-
(
|
|
1469
|
+
var a;
|
|
1470
|
+
(a = n.value) == null || a.setMap(null);
|
|
1509
1471
|
}), B(() => {
|
|
1510
1472
|
var r;
|
|
1511
|
-
const
|
|
1512
|
-
|
|
1473
|
+
const a = i == null ? void 0 : i.value;
|
|
1474
|
+
a && ((r = n.value) == null || r.setMap(a));
|
|
1513
1475
|
}), se(
|
|
1514
1476
|
() => ({ ...e }),
|
|
1515
|
-
(
|
|
1477
|
+
(a) => {
|
|
1516
1478
|
var r;
|
|
1517
|
-
(r = n.value) == null || r.setOptions({ ...
|
|
1479
|
+
(r = n.value) == null || r.setOptions({ ...a });
|
|
1518
1480
|
}
|
|
1519
1481
|
), () => null;
|
|
1520
|
-
}),
|
|
1482
|
+
}), za = v(function(e) {
|
|
1521
1483
|
return () => {
|
|
1522
|
-
const n = window.innerWidth * 0.01,
|
|
1523
|
-
return
|
|
1484
|
+
const n = window.innerWidth * 0.01, i = 2.5 * n, a = 0.35 * n, r = 0.6 * n, o = 1 * n, s = 0.75 * n, u = e.done ? "#96B2CA" : "#487BF4", l = e.done ? "#7693AF" : "#4175F1", d = e.done ? "#7693AF" : "#6C95F5";
|
|
1485
|
+
return I("div", [I(ie, {
|
|
1524
1486
|
attrs: {
|
|
1525
1487
|
path: e.path,
|
|
1526
|
-
strokeWeight:
|
|
1488
|
+
strokeWeight: i + 2 * a + 2 * o,
|
|
1527
1489
|
strokeOpacity: 1,
|
|
1528
1490
|
strokeColor: l,
|
|
1529
1491
|
lineJoin: "round",
|
|
1530
1492
|
lineCap: "round"
|
|
1531
1493
|
}
|
|
1532
|
-
}),
|
|
1494
|
+
}), I(ie, {
|
|
1533
1495
|
attrs: {
|
|
1534
1496
|
path: e.path,
|
|
1535
|
-
strokeWeight:
|
|
1497
|
+
strokeWeight: i + 2 * a,
|
|
1536
1498
|
strokeOpacity: 1,
|
|
1537
1499
|
strokeColor: d,
|
|
1538
1500
|
lineJoin: "round",
|
|
@@ -1540,20 +1502,20 @@ const Ca = () => ce, Xt = () => ({ executeMapApi: (e) => {
|
|
|
1540
1502
|
strokeStyle: "dashed",
|
|
1541
1503
|
strokeDasharray: [s, s * 0.5]
|
|
1542
1504
|
}
|
|
1543
|
-
}),
|
|
1505
|
+
}), I(ie, {
|
|
1544
1506
|
attrs: {
|
|
1545
1507
|
path: e.path,
|
|
1546
|
-
strokeWeight:
|
|
1508
|
+
strokeWeight: i,
|
|
1547
1509
|
strokeOpacity: 1,
|
|
1548
1510
|
strokeColor: u,
|
|
1549
1511
|
lineJoin: "round",
|
|
1550
1512
|
lineCap: "round"
|
|
1551
1513
|
}
|
|
1552
|
-
}),
|
|
1514
|
+
}), I(ie, {
|
|
1553
1515
|
attrs: {
|
|
1554
1516
|
showDir: !0,
|
|
1555
1517
|
path: e.path,
|
|
1556
|
-
strokeWeight:
|
|
1518
|
+
strokeWeight: i + 2 * r,
|
|
1557
1519
|
strokeOpacity: 1,
|
|
1558
1520
|
strokeColor: "transparent",
|
|
1559
1521
|
lineJoin: "round",
|
|
@@ -1561,18 +1523,18 @@ const Ca = () => ce, Xt = () => ({ executeMapApi: (e) => {
|
|
|
1561
1523
|
}
|
|
1562
1524
|
})]);
|
|
1563
1525
|
};
|
|
1564
|
-
}),
|
|
1565
|
-
const n = L(() => e.path.map(
|
|
1526
|
+
}), Ta = v(function(e) {
|
|
1527
|
+
const n = L(() => e.path.map(C));
|
|
1566
1528
|
return () => {
|
|
1567
|
-
const
|
|
1568
|
-
return
|
|
1529
|
+
const i = window.innerWidth * 0.01, a = 10 * i, r = 2.5 * i, o = 0.35 * i, s = 0.75 * i, u = 1 * i, l = e.done ? "#96B2CA" : "#487BF4", d = e.done ? "#7693AF" : "#4175F1", c = e.done ? "#7693AF" : "#6C95F5";
|
|
1530
|
+
return I("div", [I(ue, {
|
|
1569
1531
|
attrs: {
|
|
1570
1532
|
path: n.value,
|
|
1571
1533
|
strokeWeight: r + 2 * o + 2 * u,
|
|
1572
1534
|
strokeOpacity: 1,
|
|
1573
1535
|
strokeColor: d
|
|
1574
1536
|
}
|
|
1575
|
-
}),
|
|
1537
|
+
}), I(ue, {
|
|
1576
1538
|
attrs: {
|
|
1577
1539
|
path: n.value,
|
|
1578
1540
|
icons: [{
|
|
@@ -1587,7 +1549,7 @@ const Ca = () => ce, Xt = () => ({ executeMapApi: (e) => {
|
|
|
1587
1549
|
offset: `${r / 2}px`
|
|
1588
1550
|
}]
|
|
1589
1551
|
}
|
|
1590
|
-
}),
|
|
1552
|
+
}), I(ue, {
|
|
1591
1553
|
attrs: {
|
|
1592
1554
|
path: n.value,
|
|
1593
1555
|
strokeWeight: r,
|
|
@@ -1601,24 +1563,24 @@ const Ca = () => ce, Xt = () => ({ executeMapApi: (e) => {
|
|
|
1601
1563
|
// todo: 3 maybe not responsive
|
|
1602
1564
|
scale: 3
|
|
1603
1565
|
},
|
|
1604
|
-
repeat: `${
|
|
1566
|
+
repeat: `${a}px`
|
|
1605
1567
|
}]
|
|
1606
1568
|
}
|
|
1607
1569
|
})]);
|
|
1608
1570
|
};
|
|
1609
|
-
}),
|
|
1571
|
+
}), Le = v(function(e) {
|
|
1610
1572
|
const n = A();
|
|
1611
|
-
return () => e.path.length ?
|
|
1573
|
+
return () => e.path.length ? Z(n.supplier === "gmap" ? Ta : za, {
|
|
1612
1574
|
attrs: e
|
|
1613
1575
|
}) : null;
|
|
1614
|
-
}),
|
|
1576
|
+
}), Kt = (t) => {
|
|
1615
1577
|
const e = x({ path: [], distance: 0, duration: 0 }), n = new AMap.Driving({});
|
|
1616
1578
|
return q(
|
|
1617
1579
|
() => ({ ...t }),
|
|
1618
|
-
({ from:
|
|
1580
|
+
({ from: i, to: a }) => {
|
|
1619
1581
|
n.search(
|
|
1620
|
-
AMap.LngLat.from(a),
|
|
1621
1582
|
AMap.LngLat.from(i),
|
|
1583
|
+
AMap.LngLat.from(a),
|
|
1622
1584
|
{ waypoints: [] },
|
|
1623
1585
|
(r, o) => {
|
|
1624
1586
|
switch (r) {
|
|
@@ -1626,7 +1588,7 @@ const Ca = () => ce, Xt = () => ({ executeMapApi: (e) => {
|
|
|
1626
1588
|
let s = [];
|
|
1627
1589
|
const l = o.routes[0];
|
|
1628
1590
|
for (const d of l.steps) {
|
|
1629
|
-
const g = d.path.map(({ lng:
|
|
1591
|
+
const g = d.path.map(({ lng: M, lat: m }) => [M, m]);
|
|
1630
1592
|
s = s.concat(g);
|
|
1631
1593
|
}
|
|
1632
1594
|
e.path = s, e.distance = l.distance, e.duration = l.time;
|
|
@@ -1642,30 +1604,30 @@ const Ca = () => ce, Xt = () => ({ executeMapApi: (e) => {
|
|
|
1642
1604
|
);
|
|
1643
1605
|
}
|
|
1644
1606
|
), e;
|
|
1645
|
-
},
|
|
1607
|
+
}, qt = (t) => {
|
|
1646
1608
|
const e = x({ path: [], distance: 0, duration: 0 }), n = new google.maps.DirectionsService();
|
|
1647
1609
|
return q(
|
|
1648
1610
|
() => ({ ...t }),
|
|
1649
|
-
({ from:
|
|
1611
|
+
({ from: i, to: a }) => {
|
|
1650
1612
|
n.route(
|
|
1651
1613
|
{
|
|
1652
|
-
origin: { lng:
|
|
1653
|
-
destination: { lng:
|
|
1614
|
+
origin: { lng: i[0], lat: i[1] },
|
|
1615
|
+
destination: { lng: a[0], lat: a[1] },
|
|
1654
1616
|
travelMode: google.maps.TravelMode.DRIVING
|
|
1655
1617
|
},
|
|
1656
1618
|
(r, o) => {
|
|
1657
1619
|
var s, u, l, d;
|
|
1658
1620
|
switch (o) {
|
|
1659
1621
|
case google.maps.DirectionsStatus.OK: {
|
|
1660
|
-
let c = [], g = 0,
|
|
1622
|
+
let c = [], g = 0, M = 0;
|
|
1661
1623
|
const m = r.routes[0], p = m.overview_path.map((f) => [
|
|
1662
1624
|
f.lng(),
|
|
1663
1625
|
f.lat()
|
|
1664
1626
|
]);
|
|
1665
1627
|
c = c.concat(p);
|
|
1666
1628
|
for (const f of m.legs)
|
|
1667
|
-
g += (u = (s = f.distance) == null ? void 0 : s.value) != null ? u : 0,
|
|
1668
|
-
e.path = c, e.distance = g, e.duration =
|
|
1629
|
+
g += (u = (s = f.distance) == null ? void 0 : s.value) != null ? u : 0, M += (d = (l = f.duration) == null ? void 0 : l.value) != null ? d : 0;
|
|
1630
|
+
e.path = c, e.distance = g, e.duration = M;
|
|
1669
1631
|
return;
|
|
1670
1632
|
}
|
|
1671
1633
|
case google.maps.DirectionsStatus.ZERO_RESULTS:
|
|
@@ -1679,77 +1641,181 @@ const Ca = () => ce, Xt = () => ({ executeMapApi: (e) => {
|
|
|
1679
1641
|
);
|
|
1680
1642
|
}
|
|
1681
1643
|
), e;
|
|
1682
|
-
},
|
|
1644
|
+
}, Tr = (t) => {
|
|
1683
1645
|
const { supplier: e } = A();
|
|
1684
|
-
return e === "gmap" ?
|
|
1685
|
-
},
|
|
1646
|
+
return e === "gmap" ? qt(t) : Kt(t);
|
|
1647
|
+
}, Ea = (t, e, n) => {
|
|
1686
1648
|
if (!n)
|
|
1687
1649
|
return 0;
|
|
1688
|
-
const { x:
|
|
1650
|
+
const { x: i, y: a } = n.lngLatToContainer(t), { x: r, y: o } = n.lngLatToContainer(e), s = Math.atan2(a - o, r - i);
|
|
1689
1651
|
return (Math.PI / 2 - s) / Math.PI * 180;
|
|
1690
|
-
},
|
|
1691
|
-
const { map: e, path: n } = t, [
|
|
1692
|
-
if (!(!
|
|
1693
|
-
return
|
|
1694
|
-
}),
|
|
1695
|
-
const { path: e } = t, [n,
|
|
1696
|
-
if (!(!n || !
|
|
1697
|
-
return google.maps.geometry.spherical.computeHeading(
|
|
1698
|
-
}),
|
|
1652
|
+
}, en = (t) => L(() => {
|
|
1653
|
+
const { map: e, path: n } = t, [i, a] = n;
|
|
1654
|
+
if (!(!i || !a || !e))
|
|
1655
|
+
return Ea(i, a, e);
|
|
1656
|
+
}), tn = (t) => L(() => {
|
|
1657
|
+
const { path: e } = t, [n, i] = e;
|
|
1658
|
+
if (!(!n || !i))
|
|
1659
|
+
return google.maps.geometry.spherical.computeHeading(C(n), C(i));
|
|
1660
|
+
}), Er = (t) => {
|
|
1699
1661
|
const { supplier: e } = A();
|
|
1700
|
-
return e === "gmap" ?
|
|
1701
|
-
},
|
|
1662
|
+
return e === "gmap" ? tn(t) : en(t);
|
|
1663
|
+
}, Za = v(function(e, {
|
|
1702
1664
|
slots: n
|
|
1703
1665
|
}) {
|
|
1704
|
-
const
|
|
1705
|
-
path:
|
|
1666
|
+
const i = ye(), {
|
|
1667
|
+
path: a,
|
|
1706
1668
|
distance: r,
|
|
1707
1669
|
duration: o
|
|
1708
|
-
} =
|
|
1709
|
-
path:
|
|
1710
|
-
map:
|
|
1670
|
+
} = st(Kt(e)), s = en(x({
|
|
1671
|
+
path: a,
|
|
1672
|
+
map: i
|
|
1711
1673
|
}));
|
|
1712
1674
|
return () => {
|
|
1713
1675
|
var u;
|
|
1714
|
-
return
|
|
1715
|
-
path:
|
|
1676
|
+
return I("div", [(u = n.render) == null ? void 0 : u.call(n, x({
|
|
1677
|
+
path: a,
|
|
1716
1678
|
angle: s,
|
|
1717
1679
|
distance: r,
|
|
1718
1680
|
duration: o
|
|
1719
1681
|
}))]);
|
|
1720
1682
|
};
|
|
1721
|
-
}),
|
|
1683
|
+
}), Ra = v(function(e, {
|
|
1722
1684
|
slots: n
|
|
1723
1685
|
}) {
|
|
1724
|
-
const
|
|
1725
|
-
path:
|
|
1686
|
+
const i = je(), {
|
|
1687
|
+
path: a,
|
|
1726
1688
|
distance: r,
|
|
1727
1689
|
duration: o
|
|
1728
|
-
} =
|
|
1729
|
-
path:
|
|
1730
|
-
map:
|
|
1690
|
+
} = st(qt(e)), s = tn(x({
|
|
1691
|
+
path: a,
|
|
1692
|
+
map: i
|
|
1731
1693
|
}));
|
|
1732
1694
|
return () => {
|
|
1733
1695
|
var u;
|
|
1734
|
-
return
|
|
1735
|
-
path:
|
|
1696
|
+
return I("div", [(u = n.render) == null ? void 0 : u.call(n, x({
|
|
1697
|
+
path: a,
|
|
1736
1698
|
angle: s,
|
|
1737
1699
|
distance: r,
|
|
1738
1700
|
duration: o
|
|
1739
1701
|
}))]);
|
|
1740
1702
|
};
|
|
1741
|
-
}),
|
|
1703
|
+
}), Ne = v(function(e, {
|
|
1742
1704
|
slots: n
|
|
1743
1705
|
}) {
|
|
1744
1706
|
const {
|
|
1745
|
-
supplier:
|
|
1707
|
+
supplier: i
|
|
1746
1708
|
} = A();
|
|
1747
|
-
return () =>
|
|
1709
|
+
return () => Z(i === "gmap" ? Ra : Za, {
|
|
1748
1710
|
attrs: e,
|
|
1749
1711
|
scopedSlots: n
|
|
1750
1712
|
});
|
|
1751
|
-
}),
|
|
1752
|
-
|
|
1713
|
+
}), Oa = 20, ka = (t) => {
|
|
1714
|
+
const { mapRef: e, autoFitTimeout: n } = t, i = /* @__PURE__ */ new Set();
|
|
1715
|
+
let a;
|
|
1716
|
+
const r = () => {
|
|
1717
|
+
var m;
|
|
1718
|
+
const u = e.value;
|
|
1719
|
+
if (!u)
|
|
1720
|
+
return;
|
|
1721
|
+
const l = window.innerWidth / 100, [d, c, g, M] = (m = t.padding) != null ? m : [0, 0, 0, 0];
|
|
1722
|
+
console.log([...i]), u.setFitView([...i], !1, [d * l, g * l, M * l, c * l]);
|
|
1723
|
+
}, o = {
|
|
1724
|
+
add: (u) => {
|
|
1725
|
+
i.add(u);
|
|
1726
|
+
},
|
|
1727
|
+
remove: (u) => {
|
|
1728
|
+
i.delete(u);
|
|
1729
|
+
},
|
|
1730
|
+
setFitView: r
|
|
1731
|
+
};
|
|
1732
|
+
return ae(
|
|
1733
|
+
e,
|
|
1734
|
+
{},
|
|
1735
|
+
() => {
|
|
1736
|
+
n && (a && clearTimeout(a), a = setTimeout(() => {
|
|
1737
|
+
a = void 0, r();
|
|
1738
|
+
}, n));
|
|
1739
|
+
},
|
|
1740
|
+
["onDragEnd"]
|
|
1741
|
+
), { registerFitVeiw: o, setFitView: r };
|
|
1742
|
+
};
|
|
1743
|
+
class Ga extends Set {
|
|
1744
|
+
getBound() {
|
|
1745
|
+
const e = new google.maps.LatLngBounds();
|
|
1746
|
+
for (const n of this.values()) {
|
|
1747
|
+
const i = n instanceof google.maps.Marker ? n.getPosition() : n.position;
|
|
1748
|
+
i && e.extend(i);
|
|
1749
|
+
}
|
|
1750
|
+
return e;
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
const Wa = (t) => {
|
|
1754
|
+
const { mapRef: e, autoFitTimeout: n } = t, { executeMapApi: i } = $t(), a = new Ga();
|
|
1755
|
+
let r;
|
|
1756
|
+
const o = () => {
|
|
1757
|
+
var f;
|
|
1758
|
+
const d = e.value;
|
|
1759
|
+
if (!d)
|
|
1760
|
+
return;
|
|
1761
|
+
const c = window.innerWidth / 100, [g, M, m, p] = (f = t.padding) != null ? f : [0, 0, 0, 0];
|
|
1762
|
+
i(
|
|
1763
|
+
() => d.fitBounds(a.getBound(), {
|
|
1764
|
+
top: g * c,
|
|
1765
|
+
right: M * c,
|
|
1766
|
+
bottom: m * c,
|
|
1767
|
+
left: p * c
|
|
1768
|
+
})
|
|
1769
|
+
);
|
|
1770
|
+
}, s = {
|
|
1771
|
+
add: (d) => {
|
|
1772
|
+
a.add(d);
|
|
1773
|
+
},
|
|
1774
|
+
remove: (d) => {
|
|
1775
|
+
a.delete(d);
|
|
1776
|
+
},
|
|
1777
|
+
setFitView: o
|
|
1778
|
+
}, u = (d) => {
|
|
1779
|
+
const c = ba();
|
|
1780
|
+
console.log("handleMoveEndOrZomEnd name, eventSource = ", d, c), !(!n || c !== "user") && (r && clearTimeout(r), r = setTimeout(() => {
|
|
1781
|
+
r = void 0, o();
|
|
1782
|
+
}, n));
|
|
1783
|
+
}, l = na(u, Oa);
|
|
1784
|
+
return K(e, {}, u, [
|
|
1785
|
+
"onDragEnd"
|
|
1786
|
+
]), K(e, {}, l, [
|
|
1787
|
+
"onZoom_changed"
|
|
1788
|
+
]), { registerFitVeiw: s, setFitView: o };
|
|
1789
|
+
}, ze = (t) => {
|
|
1790
|
+
const { supplier: e } = A();
|
|
1791
|
+
return e === "gmap" ? Wa(t) : ka(t);
|
|
1792
|
+
};
|
|
1793
|
+
v(function(e, {
|
|
1794
|
+
slots: n
|
|
1795
|
+
}) {
|
|
1796
|
+
const i = gt(), a = ze({
|
|
1797
|
+
...e,
|
|
1798
|
+
mapRef: i
|
|
1799
|
+
});
|
|
1800
|
+
return () => {
|
|
1801
|
+
var r;
|
|
1802
|
+
return I("div", [(r = n.render) == null ? void 0 : r.call(n, a)]);
|
|
1803
|
+
};
|
|
1804
|
+
});
|
|
1805
|
+
const Ua = v(function(e, {
|
|
1806
|
+
slots: n
|
|
1807
|
+
}) {
|
|
1808
|
+
const {
|
|
1809
|
+
registerOverlay: i
|
|
1810
|
+
} = e, {
|
|
1811
|
+
setFitView: a
|
|
1812
|
+
} = i;
|
|
1813
|
+
return Y(a), () => {
|
|
1814
|
+
var r;
|
|
1815
|
+
return I("div", [(r = n.default) == null ? void 0 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MCAzLjkxOCAyLjA2OCA3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
|
|
1818
|
+
function Ba(t, e, n) {
|
|
1753
1819
|
return e in t ? Object.defineProperty(t, e, {
|
|
1754
1820
|
value: n,
|
|
1755
1821
|
enumerable: !0,
|
|
@@ -1757,64 +1823,232 @@ function Za(t, e, n) {
|
|
|
1757
1823
|
writable: !0
|
|
1758
1824
|
}) : t[e] = n, t;
|
|
1759
1825
|
}
|
|
1760
|
-
function
|
|
1826
|
+
function tt(t, e) {
|
|
1761
1827
|
var n = Object.keys(t);
|
|
1762
1828
|
if (Object.getOwnPropertySymbols) {
|
|
1763
|
-
var
|
|
1764
|
-
e && (
|
|
1765
|
-
return Object.getOwnPropertyDescriptor(t,
|
|
1766
|
-
})), n.push.apply(n,
|
|
1829
|
+
var i = Object.getOwnPropertySymbols(t);
|
|
1830
|
+
e && (i = i.filter(function(a) {
|
|
1831
|
+
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
1832
|
+
})), n.push.apply(n, i);
|
|
1767
1833
|
}
|
|
1768
1834
|
return n;
|
|
1769
1835
|
}
|
|
1770
|
-
function
|
|
1836
|
+
function nt(t) {
|
|
1771
1837
|
for (var e = 1; e < arguments.length; e++) {
|
|
1772
1838
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
1773
|
-
e % 2 ?
|
|
1774
|
-
|
|
1775
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
1776
|
-
Object.defineProperty(t,
|
|
1839
|
+
e % 2 ? tt(Object(n), !0).forEach(function(i) {
|
|
1840
|
+
Ba(t, i, n[i]);
|
|
1841
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : tt(Object(n)).forEach(function(i) {
|
|
1842
|
+
Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(n, i));
|
|
1777
1843
|
});
|
|
1778
1844
|
}
|
|
1779
1845
|
return t;
|
|
1780
1846
|
}
|
|
1781
|
-
var
|
|
1782
|
-
for (var
|
|
1783
|
-
var
|
|
1784
|
-
if (t[
|
|
1847
|
+
var Ya = (t, e, n) => {
|
|
1848
|
+
for (var i of Object.keys(t)) {
|
|
1849
|
+
var a;
|
|
1850
|
+
if (t[i] !== ((a = e[i]) !== null && a !== void 0 ? a : n[i]))
|
|
1785
1851
|
return !1;
|
|
1786
1852
|
}
|
|
1787
1853
|
return !0;
|
|
1788
1854
|
}, ee = (t) => (e) => {
|
|
1789
|
-
var n = t.defaultClassName,
|
|
1790
|
-
for (var
|
|
1791
|
-
var r, o = (r = a
|
|
1855
|
+
var n = t.defaultClassName, i = nt(nt({}, t.defaultVariants), e);
|
|
1856
|
+
for (var a in i) {
|
|
1857
|
+
var r, o = (r = i[a]) !== null && r !== void 0 ? r : t.defaultVariants[a];
|
|
1792
1858
|
if (o != null) {
|
|
1793
1859
|
var s = o;
|
|
1794
1860
|
typeof s == "boolean" && (s = s === !0 ? "true" : "false");
|
|
1795
1861
|
var u = (
|
|
1796
1862
|
// @ts-expect-error
|
|
1797
|
-
t.variantClassNames[
|
|
1863
|
+
t.variantClassNames[a][s]
|
|
1798
1864
|
);
|
|
1799
1865
|
u && (n += " " + u);
|
|
1800
1866
|
}
|
|
1801
1867
|
}
|
|
1802
1868
|
for (var [l, d] of t.compoundVariants)
|
|
1803
|
-
|
|
1869
|
+
Ya(l, i, t.defaultVariants) && (n += " " + d);
|
|
1804
1870
|
return n;
|
|
1805
|
-
},
|
|
1806
|
-
const
|
|
1871
|
+
}, $ = ee({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] }), rn = "_4a4ovk1", on = "_4a4ovk4", sn = "_4a4ovk5", cn = "_4a4ovk3", de = "_4a4ovk0", un = "_4a4ovk2";
|
|
1872
|
+
const Va = V(function(e) {
|
|
1873
|
+
const n = L(() => {
|
|
1874
|
+
var r;
|
|
1875
|
+
const i = e.type === "start" ? an : nn, a = e.description ? Ae(e.description).map((o) => o.type === "normal" ? o.value : `<span class="${sn}">${o.value}</span>`).join("") : "";
|
|
1876
|
+
return !e.description && !e.title ? `<img src="${i}" class="${$({
|
|
1877
|
+
type: e.type
|
|
1878
|
+
})}">` : e.description ? `
|
|
1879
|
+
<div class="${de}">
|
|
1880
|
+
<div class="${rn}">
|
|
1881
|
+
<div class="${cn}">${(r = e.title) != null ? r : ""}</div>
|
|
1882
|
+
<div class="${on}">${a}</div>
|
|
1883
|
+
</div>
|
|
1884
|
+
<img src="${i}" class="${$({
|
|
1885
|
+
type: e.type
|
|
1886
|
+
})}">
|
|
1887
|
+
</div>
|
|
1888
|
+
` : `
|
|
1889
|
+
<div class="${de}">
|
|
1890
|
+
<div class="${un}">${e.title}</div>
|
|
1891
|
+
<img src="${i}" class="${$({
|
|
1892
|
+
type: e.type
|
|
1893
|
+
})}">
|
|
1894
|
+
</div>
|
|
1895
|
+
`;
|
|
1896
|
+
});
|
|
1897
|
+
return () => I(W, {
|
|
1898
|
+
attrs: {
|
|
1899
|
+
registerOverlay: e.registerOverlay,
|
|
1900
|
+
position: e.position,
|
|
1901
|
+
content: n.value,
|
|
1902
|
+
anchor: "bottom-center"
|
|
1903
|
+
}
|
|
1904
|
+
});
|
|
1905
|
+
}).props(["type", "title", "registerOverlay", "position", "description"]), Ha = V(function(e) {
|
|
1906
|
+
const n = L(() => {
|
|
1907
|
+
var r;
|
|
1908
|
+
const i = e.type === "start" ? an : nn, a = e.description ? Ae(e.description).map((o) => o.type === "normal" ? o.value : `<span class="${sn}">${o.value}</span>`).join("") : "";
|
|
1909
|
+
return !e.description && !e.title ? T("img", {
|
|
1910
|
+
class: $({
|
|
1911
|
+
type: e.type
|
|
1912
|
+
}),
|
|
1913
|
+
src: i
|
|
1914
|
+
}) : e.description ? T("div", {
|
|
1915
|
+
class: de
|
|
1916
|
+
}, `
|
|
1917
|
+
<div class="${rn}">
|
|
1918
|
+
<div class="${cn}">${(r = e.title) != null ? r : ""}</div>
|
|
1919
|
+
<div class="${on}">${a}</div>
|
|
1920
|
+
</div>
|
|
1921
|
+
<img src="${i}" class="${$({
|
|
1922
|
+
type: e.type
|
|
1923
|
+
})}">
|
|
1924
|
+
`) : T("div", {
|
|
1925
|
+
class: de
|
|
1926
|
+
}, `
|
|
1927
|
+
<div class="${un}">${e.title}</div>
|
|
1928
|
+
<img src="${i}" class="${$({
|
|
1929
|
+
type: e.type
|
|
1930
|
+
})}">
|
|
1931
|
+
`);
|
|
1932
|
+
});
|
|
1933
|
+
return () => I(U, {
|
|
1934
|
+
attrs: {
|
|
1935
|
+
registerOverlay: e.registerOverlay,
|
|
1936
|
+
position: C(e.position),
|
|
1937
|
+
content: n.value
|
|
1938
|
+
}
|
|
1939
|
+
});
|
|
1940
|
+
}).props(["type", "title", "registerOverlay", "position", "description"]), E = v(function(e) {
|
|
1941
|
+
const n = A();
|
|
1942
|
+
return () => Z(n.supplier === "gmap" ? Ha : Va, {
|
|
1943
|
+
attrs: e
|
|
1944
|
+
});
|
|
1945
|
+
}), Zr = V((t) => {
|
|
1946
|
+
const {
|
|
1947
|
+
registerOverlay: e,
|
|
1948
|
+
mapRef: n,
|
|
1949
|
+
renderDescription: i
|
|
1950
|
+
} = t;
|
|
1951
|
+
return () => {
|
|
1952
|
+
const {
|
|
1953
|
+
from: a,
|
|
1954
|
+
to: r
|
|
1955
|
+
} = t, o = D(a), s = D(r);
|
|
1956
|
+
return I(_t, {
|
|
1957
|
+
attrs: {
|
|
1958
|
+
mapRef: n,
|
|
1959
|
+
center: o,
|
|
1960
|
+
zoom: 13
|
|
1961
|
+
}
|
|
1962
|
+
}, [I(E, {
|
|
1963
|
+
attrs: {
|
|
1964
|
+
type: "start",
|
|
1965
|
+
registerOverlay: e,
|
|
1966
|
+
position: o,
|
|
1967
|
+
title: a.name
|
|
1968
|
+
}
|
|
1969
|
+
}), I(Ne, {
|
|
1970
|
+
attrs: {
|
|
1971
|
+
to: s,
|
|
1972
|
+
from: o,
|
|
1973
|
+
render: ({
|
|
1974
|
+
path: u,
|
|
1975
|
+
distance: l,
|
|
1976
|
+
duration: d
|
|
1977
|
+
}) => [I(Le, {
|
|
1978
|
+
attrs: {
|
|
1979
|
+
path: u
|
|
1980
|
+
}
|
|
1981
|
+
}), I(E, {
|
|
1982
|
+
attrs: {
|
|
1983
|
+
type: "end",
|
|
1984
|
+
registerOverlay: e,
|
|
1985
|
+
position: s,
|
|
1986
|
+
title: r.name,
|
|
1987
|
+
description: i({
|
|
1988
|
+
distance: l,
|
|
1989
|
+
duration: d
|
|
1990
|
+
})
|
|
1991
|
+
}
|
|
1992
|
+
})]
|
|
1993
|
+
}
|
|
1994
|
+
}), I(Ua, {
|
|
1995
|
+
attrs: {
|
|
1996
|
+
registerOverlay: e
|
|
1997
|
+
}
|
|
1998
|
+
})]);
|
|
1999
|
+
};
|
|
2000
|
+
}).props(["fallback", "from", "loading", "mapRef", "registerOverlay", "renderDescription", "to"]), ln = (t) => {
|
|
2001
|
+
var d, c;
|
|
2002
|
+
const { onChange: e, onLoad: n, onLoadDefault: i, geoDefaultPosition: a } = t != null ? t : {}, r = h(!1), o = h(!1), s = h(), u = h({
|
|
2003
|
+
accuracy: 0,
|
|
2004
|
+
altitude: 0,
|
|
2005
|
+
altitudeAccuracy: 0,
|
|
2006
|
+
heading: 0,
|
|
2007
|
+
latitude: (d = a == null ? void 0 : a[1]) != null ? d : 0,
|
|
2008
|
+
longitude: (c = a == null ? void 0 : a[0]) != null ? c : 0,
|
|
2009
|
+
speed: 0
|
|
2010
|
+
}), l = h([u.value.longitude, u.value.latitude]);
|
|
2011
|
+
return b(
|
|
2012
|
+
() => !0,
|
|
2013
|
+
(g, M, m) => {
|
|
2014
|
+
r.value = !0;
|
|
2015
|
+
const p = navigator.geolocation.watchPosition(
|
|
2016
|
+
(f) => {
|
|
2017
|
+
const j = f.coords, y = [f.coords.longitude, f.coords.latitude];
|
|
2018
|
+
u.value = j, l.value = y, r.value && (r.value = !1, o.value = !0, n == null || n({ position: y, coordinate: j })), e == null || e({ position: y, coordinate: j });
|
|
2019
|
+
},
|
|
2020
|
+
(f) => {
|
|
2021
|
+
r.value = !1, s.value = f;
|
|
2022
|
+
const j = t == null ? void 0 : t.geoDefaultPosition;
|
|
2023
|
+
j && (i == null || i({ position: j })), console.log("errorRef = ", s);
|
|
2024
|
+
},
|
|
2025
|
+
// todo 要不要 timeout
|
|
2026
|
+
{ timeout: 5e3, maximumAge: 0, enableHighAccuracy: !0 }
|
|
2027
|
+
);
|
|
2028
|
+
m(() => navigator.geolocation.clearWatch(p));
|
|
2029
|
+
},
|
|
2030
|
+
{ immediate: !0 }
|
|
2031
|
+
), {
|
|
2032
|
+
geoError: s,
|
|
2033
|
+
geoPosition: l,
|
|
2034
|
+
geoCoordinate: u,
|
|
2035
|
+
geoLoading: r,
|
|
2036
|
+
geoReady: o
|
|
2037
|
+
};
|
|
2038
|
+
}, dn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjEiIGhlaWdodD0iNjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD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XVhcmUiIGZpbGw9IiM0ODcxRjEiIGN4PSIzMCIgY3k9IjMwIiByPSI5LjMiLz48L2c+PC9zdmc+";
|
|
2039
|
+
var gn = ee({ defaultClassName: "_1l6offo0", variantClassNames: { size: { small: "_1l6offo1", large: "_1l6offo2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
2040
|
+
const Qa = v(function(e) {
|
|
1807
2041
|
const n = L(() => {
|
|
1808
2042
|
const {
|
|
1809
|
-
size:
|
|
2043
|
+
size: i = "large"
|
|
1810
2044
|
} = e;
|
|
1811
2045
|
return `
|
|
1812
|
-
<img src="${
|
|
1813
|
-
size:
|
|
2046
|
+
<img src="${i === "large" ? dn : G}" class="${gn({
|
|
2047
|
+
size: i
|
|
1814
2048
|
})}">
|
|
1815
2049
|
`;
|
|
1816
2050
|
});
|
|
1817
|
-
return () =>
|
|
2051
|
+
return () => I(W, {
|
|
1818
2052
|
attrs: {
|
|
1819
2053
|
position: e.position,
|
|
1820
2054
|
content: n.value,
|
|
@@ -1822,222 +2056,147 @@ const Oa = v(function(e) {
|
|
|
1822
2056
|
registerOverlay: e.registerOverlay
|
|
1823
2057
|
}
|
|
1824
2058
|
});
|
|
1825
|
-
}),
|
|
2059
|
+
}), Ja = v(function(e) {
|
|
1826
2060
|
const n = L(() => {
|
|
1827
2061
|
const {
|
|
1828
|
-
size:
|
|
1829
|
-
} = e,
|
|
2062
|
+
size: i = "large"
|
|
2063
|
+
} = e, a = i === "large" ? dn : G;
|
|
1830
2064
|
return T("img", {
|
|
1831
|
-
class:
|
|
1832
|
-
size:
|
|
2065
|
+
class: gn({
|
|
2066
|
+
size: i
|
|
1833
2067
|
}),
|
|
1834
|
-
src:
|
|
2068
|
+
src: a
|
|
1835
2069
|
});
|
|
1836
2070
|
});
|
|
1837
|
-
return () =>
|
|
2071
|
+
return () => I(U, {
|
|
1838
2072
|
attrs: {
|
|
1839
|
-
position:
|
|
2073
|
+
position: C(e.position),
|
|
1840
2074
|
content: n.value,
|
|
1841
2075
|
registerOverlay: e.registerOverlay
|
|
1842
2076
|
}
|
|
1843
2077
|
});
|
|
1844
|
-
}),
|
|
2078
|
+
}), Te = v(function(e) {
|
|
1845
2079
|
const n = A();
|
|
1846
|
-
return () =>
|
|
2080
|
+
return () => Z(n.supplier === "gmap" ? Ja : Qa, {
|
|
1847
2081
|
attrs: e
|
|
1848
2082
|
});
|
|
1849
2083
|
});
|
|
1850
|
-
var
|
|
1851
|
-
var
|
|
1852
|
-
const
|
|
2084
|
+
var we = /* @__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))(we || {});
|
|
2085
|
+
var it = ee({ defaultClassName: "", variantClassNames: { textAlign: { left: "fhyw83", right: "fhyw84" } }, defaultVariants: {}, compoundVariants: [] }), at = ee({ defaultClassName: "fhyw85", variantClassNames: { textAlign: { left: "fhyw86", right: "fhyw87" } }, defaultVariants: {}, compoundVariants: [] }), In = "fhyw8b", Mn = ee({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] }), ge = ee({ defaultClassName: "fhyw88", variantClassNames: { hideIcon: { true: "fhyw89", false: "fhyw8a" } }, defaultVariants: {}, compoundVariants: [] });
|
|
2086
|
+
const Fa = V(function(e, {
|
|
1853
2087
|
emit: n
|
|
1854
2088
|
}) {
|
|
1855
|
-
const
|
|
2089
|
+
const i = L(() => {
|
|
1856
2090
|
var s;
|
|
1857
2091
|
return (s = e.textAlign) != null ? s : "right";
|
|
1858
|
-
}),
|
|
2092
|
+
}), a = L(() => {
|
|
1859
2093
|
const {
|
|
1860
2094
|
hideIcon: s = !1
|
|
1861
2095
|
} = e;
|
|
1862
2096
|
return `
|
|
1863
|
-
<div class="${
|
|
1864
|
-
textAlign:
|
|
2097
|
+
<div class="${Mn({
|
|
2098
|
+
textAlign: i.value
|
|
1865
2099
|
})}">
|
|
1866
|
-
<img class="${
|
|
2100
|
+
<img class="${ge({
|
|
1867
2101
|
hideIcon: s
|
|
1868
|
-
})} ${
|
|
1869
|
-
textAlign:
|
|
2102
|
+
})} ${it({
|
|
2103
|
+
textAlign: i.value
|
|
1870
2104
|
})}" src="${G}">
|
|
1871
|
-
<div class="${
|
|
2105
|
+
<div class="${In}">${e.label}</div>
|
|
1872
2106
|
</div>
|
|
1873
2107
|
`;
|
|
1874
2108
|
}), r = L(() => {
|
|
1875
2109
|
const {
|
|
1876
2110
|
hideIcon: s = !1
|
|
1877
2111
|
} = e;
|
|
1878
|
-
return `<img class="${
|
|
2112
|
+
return `<img class="${ge({
|
|
1879
2113
|
hideIcon: s
|
|
1880
|
-
})} ${
|
|
1881
|
-
textAlign:
|
|
2114
|
+
})} ${it({
|
|
2115
|
+
textAlign: i.value
|
|
1882
2116
|
})}" src="${G}">`;
|
|
1883
2117
|
}), o = (s) => {
|
|
1884
2118
|
console.log("on amap marker e = ", s), n("click", e.position);
|
|
1885
2119
|
};
|
|
1886
|
-
return () =>
|
|
2120
|
+
return () => I(W, {
|
|
1887
2121
|
attrs: {
|
|
1888
2122
|
position: e.position,
|
|
1889
|
-
content: e.label ?
|
|
1890
|
-
anchor:
|
|
2123
|
+
content: e.label ? a.value : r.value,
|
|
2124
|
+
anchor: i.value === "left" ? we.middleRight : we.middleLeft
|
|
1891
2125
|
},
|
|
1892
2126
|
on: {
|
|
1893
2127
|
click: o
|
|
1894
2128
|
}
|
|
1895
2129
|
});
|
|
1896
|
-
}).props(["hideIcon", "label", "position", "textAlign"]),
|
|
2130
|
+
}).props(["hideIcon", "label", "position", "textAlign"]), Xa = V(function(e, {
|
|
1897
2131
|
emit: n
|
|
1898
2132
|
}) {
|
|
1899
|
-
const
|
|
2133
|
+
const i = L(() => {
|
|
1900
2134
|
var s;
|
|
1901
2135
|
return (s = e.textAlign) != null ? s : "right";
|
|
1902
|
-
}),
|
|
2136
|
+
}), a = L(() => {
|
|
1903
2137
|
const {
|
|
1904
2138
|
hideIcon: s = !1
|
|
1905
2139
|
} = e;
|
|
1906
2140
|
return T("div", {
|
|
1907
|
-
class: `${
|
|
1908
|
-
textAlign:
|
|
1909
|
-
})} ${
|
|
1910
|
-
textAlign:
|
|
2141
|
+
class: `${Mn({
|
|
2142
|
+
textAlign: i.value
|
|
2143
|
+
})} ${at({
|
|
2144
|
+
textAlign: i.value
|
|
1911
2145
|
})}`
|
|
1912
2146
|
}, `
|
|
1913
|
-
<img class="${
|
|
2147
|
+
<img class="${ge({
|
|
1914
2148
|
hideIcon: s
|
|
1915
2149
|
})}" src="${G}">
|
|
1916
|
-
<div class="${
|
|
2150
|
+
<div class="${In}">${e.label}</div>
|
|
1917
2151
|
`);
|
|
1918
2152
|
}), r = L(() => {
|
|
1919
2153
|
const {
|
|
1920
2154
|
hideIcon: s = !1
|
|
1921
2155
|
} = e;
|
|
1922
2156
|
return T("img", {
|
|
1923
|
-
class: `${
|
|
2157
|
+
class: `${ge({
|
|
1924
2158
|
hideIcon: s
|
|
1925
|
-
})} ${
|
|
1926
|
-
textAlign:
|
|
2159
|
+
})} ${at({
|
|
2160
|
+
textAlign: i.value
|
|
1927
2161
|
})}`,
|
|
1928
2162
|
src: G
|
|
1929
2163
|
});
|
|
1930
2164
|
}), o = (s) => {
|
|
1931
2165
|
console.log("on gmap advanced marker view e = ", s), n("click", e.position);
|
|
1932
2166
|
};
|
|
1933
|
-
return () =>
|
|
2167
|
+
return () => I(U, {
|
|
1934
2168
|
attrs: {
|
|
1935
|
-
position:
|
|
1936
|
-
content: e.label ?
|
|
2169
|
+
position: C(e.position),
|
|
2170
|
+
content: e.label ? a.value : r.value
|
|
1937
2171
|
},
|
|
1938
2172
|
on: {
|
|
1939
2173
|
click: o
|
|
1940
2174
|
}
|
|
1941
2175
|
});
|
|
1942
|
-
}).props(["hideIcon", "label", "position", "textAlign"]),
|
|
2176
|
+
}).props(["hideIcon", "label", "position", "textAlign"]), O = v(function(e, {
|
|
1943
2177
|
emit: n
|
|
1944
2178
|
}) {
|
|
1945
|
-
const
|
|
1946
|
-
return () =>
|
|
2179
|
+
const i = A();
|
|
2180
|
+
return () => Z(i.supplier === "gmap" ? Xa : Fa, {
|
|
1947
2181
|
attrs: e,
|
|
1948
2182
|
on: {
|
|
1949
|
-
click: (
|
|
1950
|
-
}
|
|
1951
|
-
});
|
|
1952
|
-
}), rn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjg0NDciIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkY4QjRBIiBvZmZzZXQ9IjUwLjU5NiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZBOTVBIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xMiAzMC4yMTVjMi4xMzQgMCAzLjg2My0uODkzIDMuODYzLTEuOTk1IDAtMS4xLTEuNzMtMS45OTQtMy44NjMtMS45OTQtMi4xMzQgMC0zLjg2My44OTMtMy44NjMgMS45OTQgMCAxLjEwMiAxLjczIDEuOTk1IDMuODYzIDEuOTk1eiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyNy4wMDZjMi4xMjggMC0uOS0zLjc0MyA1LjYyMS02LjY0M0MxOS44NDIgMTguNDUzIDIyIDE0Ljk1MyAyMiAxMC45NSAyMiA0LjkwMiA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ZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyN2MyLjEyOCAwLS45LTMuNzQyIDUuNjIxLTYuNjQxIDMuMjIxLTEuOTEgNS4zNzktNS40MSA1LjM3OS05LjQxMkMyMiA0LjkwMSAxNy4wNzUgMCAxMSAwUzAgNC45MDEgMCAxMC45NDdjMCAzLjkxOCAyLjA2OCA3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
|
|
1953
|
-
var $ = ee({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] }), sn = "_4a4ovk1", cn = "_4a4ovk4", un = "_4a4ovk5", ln = "_4a4ovk3", ge = "_4a4ovk0", dn = "_4a4ovk2";
|
|
1954
|
-
const Ua = J(function(e) {
|
|
1955
|
-
const n = L(() => {
|
|
1956
|
-
var r;
|
|
1957
|
-
const a = e.type === "start" ? on : rn, i = e.description ? Ae(e.description).map((o) => o.type === "normal" ? o.value : `<span class="${un}">${o.value}</span>`).join("") : "";
|
|
1958
|
-
return !e.description && !e.title ? `<img src="${a}" class="${$({
|
|
1959
|
-
type: e.type
|
|
1960
|
-
})}">` : e.description ? `
|
|
1961
|
-
<div class="${ge}">
|
|
1962
|
-
<div class="${sn}">
|
|
1963
|
-
<div class="${ln}">${(r = e.title) != null ? r : ""}</div>
|
|
1964
|
-
<div class="${cn}">${i}</div>
|
|
1965
|
-
</div>
|
|
1966
|
-
<img src="${a}" class="${$({
|
|
1967
|
-
type: e.type
|
|
1968
|
-
})}">
|
|
1969
|
-
</div>
|
|
1970
|
-
` : `
|
|
1971
|
-
<div class="${ge}">
|
|
1972
|
-
<div class="${dn}">${e.title}</div>
|
|
1973
|
-
<img src="${a}" class="${$({
|
|
1974
|
-
type: e.type
|
|
1975
|
-
})}">
|
|
1976
|
-
</div>
|
|
1977
|
-
`;
|
|
1978
|
-
});
|
|
1979
|
-
return () => M(W, {
|
|
1980
|
-
attrs: {
|
|
1981
|
-
registerOverlay: e.registerOverlay,
|
|
1982
|
-
position: e.position,
|
|
1983
|
-
content: n.value,
|
|
1984
|
-
anchor: "bottom-center"
|
|
1985
|
-
}
|
|
1986
|
-
});
|
|
1987
|
-
}).props(["type", "title", "registerOverlay", "position", "description"]), Ba = J(function(e) {
|
|
1988
|
-
const n = L(() => {
|
|
1989
|
-
var r;
|
|
1990
|
-
const a = e.type === "start" ? on : rn, i = e.description ? Ae(e.description).map((o) => o.type === "normal" ? o.value : `<span class="${un}">${o.value}</span>`).join("") : "";
|
|
1991
|
-
return !e.description && !e.title ? T("img", {
|
|
1992
|
-
class: $({
|
|
1993
|
-
type: e.type
|
|
1994
|
-
}),
|
|
1995
|
-
src: a
|
|
1996
|
-
}) : e.description ? T("div", {
|
|
1997
|
-
class: ge
|
|
1998
|
-
}, `
|
|
1999
|
-
<div class="${sn}">
|
|
2000
|
-
<div class="${ln}">${(r = e.title) != null ? r : ""}</div>
|
|
2001
|
-
<div class="${cn}">${i}</div>
|
|
2002
|
-
</div>
|
|
2003
|
-
<img src="${a}" class="${$({
|
|
2004
|
-
type: e.type
|
|
2005
|
-
})}">
|
|
2006
|
-
`) : T("div", {
|
|
2007
|
-
class: ge
|
|
2008
|
-
}, `
|
|
2009
|
-
<div class="${dn}">${e.title}</div>
|
|
2010
|
-
<img src="${a}" class="${$({
|
|
2011
|
-
type: e.type
|
|
2012
|
-
})}">
|
|
2013
|
-
`);
|
|
2014
|
-
});
|
|
2015
|
-
return () => M(U, {
|
|
2016
|
-
attrs: {
|
|
2017
|
-
registerOverlay: e.registerOverlay,
|
|
2018
|
-
position: w(e.position),
|
|
2019
|
-
content: n.value
|
|
2183
|
+
click: (a) => n("click", a)
|
|
2020
2184
|
}
|
|
2021
2185
|
});
|
|
2022
|
-
}).props(["type", "title", "registerOverlay", "position", "description"]), k = v(function(e) {
|
|
2023
|
-
const n = A();
|
|
2024
|
-
return () => E(n.supplier === "gmap" ? Ba : Ua, {
|
|
2025
|
-
attrs: e
|
|
2026
|
-
});
|
|
2027
2186
|
}), Ie = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0zNC4wODcgMTAuOTZjMCAyLjM2OS0uMDU0IDIuOTgtLjc4MiAzLjcwNC0uNzkzLjc5LTUuMjM2LjgzMy01LjIzNi44MzNsLTQuMTE2LjE5Mi05Ljg5Ni0uMTQ0cy03Ljc5LS4wMjYtOS4xMzEtLjAyNmMtMS4zNDIgMC0yLjQwNi0uODQ3LTIuNDA2LS44NDdDLjE0IDEyLjkzMiAwIDExLjA5IDAgMTEuMDlWNS44NnMuMTQtMS44NDIgMi41Mi0zLjU4M2MwIDAgMS4wNjQtLjg0NiAyLjQwNi0uODQ2IDEuMzQxIDAgOS4xMy0uMDI2IDkuMTMtLjAyNmw5Ljg5Ny0uMTQ0IDQuMTE2LjE5MnM0LjQ4NCAwIDUuMjM2LjgzM2MuNzc4Ljg2Ljc4MiAxLjM3Ljc4MiAzLjc0djQuOTM0eiIgaWQ9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TTEyLjA2NyAxOS43MTZsLTQuNjQ1LjY5MmMtLjQzMS0yLjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";
|
|
2028
|
-
var Me = "_65j3sr1",
|
|
2029
|
-
const
|
|
2187
|
+
var Me = "_65j3sr1", mn = "_4a4ovk5", fn = "_4a4ovk0", pn = "_4a4ovk2";
|
|
2188
|
+
const $a = v(function(e) {
|
|
2030
2189
|
const n = L(() => {
|
|
2031
2190
|
var r;
|
|
2032
|
-
const
|
|
2191
|
+
const i = e.title ? Ae(e.title).map((o) => o.type === "normal" ? o.value : `<span class="${mn}">${o.value}</span>`).join("") : "", a = `transform:rotate(${(r = e.angle) != null ? r : 0}deg)`;
|
|
2033
2192
|
return e.title ? `
|
|
2034
|
-
<div class="${
|
|
2035
|
-
<div class="${
|
|
2036
|
-
<img src="${Ie}" class="${Me}" style="${
|
|
2193
|
+
<div class="${fn}">
|
|
2194
|
+
<div class="${pn}">${i}</div>
|
|
2195
|
+
<img src="${Ie}" class="${Me}" style="${a}">
|
|
2037
2196
|
</div>
|
|
2038
|
-
` : `<img src="${Ie}" class="${Me}" style="${
|
|
2197
|
+
` : `<img src="${Ie}" class="${Me}" style="${a}">`;
|
|
2039
2198
|
});
|
|
2040
|
-
return () =>
|
|
2199
|
+
return () => I(W, {
|
|
2041
2200
|
attrs: {
|
|
2042
2201
|
position: e.position,
|
|
2043
2202
|
content: n.value,
|
|
@@ -2045,64 +2204,64 @@ const Ya = v(function(e) {
|
|
|
2045
2204
|
registerOverlay: e.registerOverlay
|
|
2046
2205
|
}
|
|
2047
2206
|
});
|
|
2048
|
-
}),
|
|
2207
|
+
}), _a = v(function(e) {
|
|
2049
2208
|
const n = L(() => {
|
|
2050
2209
|
var r;
|
|
2051
|
-
const
|
|
2210
|
+
const i = e.title ? Ae(e.title).map((o) => o.type === "normal" ? o.value : `<span class="${mn}">${o.value}</span>`).join("") : "", a = `transform:rotate(${(r = e.angle) != null ? r : 0}deg)`;
|
|
2052
2211
|
return e.title ? T("div", {
|
|
2053
|
-
class:
|
|
2212
|
+
class: fn
|
|
2054
2213
|
}, `
|
|
2055
|
-
<div class="${
|
|
2056
|
-
<img src="${Ie}" class="${Me}" style="${
|
|
2214
|
+
<div class="${pn}">${i}</div>
|
|
2215
|
+
<img src="${Ie}" class="${Me}" style="${a}">
|
|
2057
2216
|
`) : T("img", {
|
|
2058
2217
|
class: Me,
|
|
2059
2218
|
src: Ie,
|
|
2060
|
-
style:
|
|
2219
|
+
style: a
|
|
2061
2220
|
});
|
|
2062
2221
|
});
|
|
2063
|
-
return () =>
|
|
2222
|
+
return () => I(U, {
|
|
2064
2223
|
attrs: {
|
|
2065
|
-
position:
|
|
2224
|
+
position: C(e.position),
|
|
2066
2225
|
content: n.value,
|
|
2067
2226
|
registerOverlay: e.registerOverlay
|
|
2068
2227
|
}
|
|
2069
2228
|
});
|
|
2070
|
-
}),
|
|
2229
|
+
}), Ee = v(function(e) {
|
|
2071
2230
|
const n = A();
|
|
2072
|
-
return () =>
|
|
2231
|
+
return () => Z(n.supplier === "gmap" ? _a : $a, {
|
|
2073
2232
|
attrs: e
|
|
2074
2233
|
});
|
|
2075
|
-
}),
|
|
2234
|
+
}), Ka = v(function(e) {
|
|
2076
2235
|
return () => {
|
|
2077
2236
|
const {
|
|
2078
2237
|
path: n
|
|
2079
2238
|
} = e;
|
|
2080
2239
|
if (n.length === 0)
|
|
2081
2240
|
return null;
|
|
2082
|
-
const
|
|
2083
|
-
return
|
|
2241
|
+
const a = 2 * (window.innerWidth * 0.01);
|
|
2242
|
+
return I(ie, {
|
|
2084
2243
|
attrs: {
|
|
2085
2244
|
path: n,
|
|
2086
|
-
strokeWeight:
|
|
2245
|
+
strokeWeight: a,
|
|
2087
2246
|
strokeOpacity: 1,
|
|
2088
2247
|
strokeColor: "#38A3FE",
|
|
2089
2248
|
strokeStyle: "dashed",
|
|
2090
|
-
strokeDasharray: [
|
|
2249
|
+
strokeDasharray: [a, a * 1.5],
|
|
2091
2250
|
lineJoin: "round",
|
|
2092
2251
|
lineCap: "round"
|
|
2093
2252
|
}
|
|
2094
2253
|
});
|
|
2095
2254
|
};
|
|
2096
|
-
}),
|
|
2097
|
-
const n = L(() => e.path.map(
|
|
2255
|
+
}), qa = v(function(e) {
|
|
2256
|
+
const n = L(() => e.path.map(C));
|
|
2098
2257
|
return () => {
|
|
2099
|
-
const
|
|
2100
|
-
if (
|
|
2258
|
+
const i = n.value;
|
|
2259
|
+
if (i.length === 0)
|
|
2101
2260
|
return null;
|
|
2102
2261
|
const r = 2 * (window.innerWidth * 0.01), o = r / 4;
|
|
2103
|
-
return
|
|
2262
|
+
return I(ue, {
|
|
2104
2263
|
attrs: {
|
|
2105
|
-
path:
|
|
2264
|
+
path: i,
|
|
2106
2265
|
strokeWeight: r,
|
|
2107
2266
|
strokeOpacity: 1,
|
|
2108
2267
|
strokeColor: "transparent",
|
|
@@ -2126,17 +2285,17 @@ const Ya = v(function(e) {
|
|
|
2126
2285
|
}
|
|
2127
2286
|
});
|
|
2128
2287
|
};
|
|
2129
|
-
}),
|
|
2288
|
+
}), vn = v(function(e) {
|
|
2130
2289
|
const n = A();
|
|
2131
|
-
return () =>
|
|
2290
|
+
return () => Z(n.supplier === "gmap" ? qa : Ka, {
|
|
2132
2291
|
attrs: e
|
|
2133
2292
|
});
|
|
2134
|
-
}),
|
|
2293
|
+
}), yn = (t) => {
|
|
2135
2294
|
const e = P([]), n = new AMap.Walking({});
|
|
2136
2295
|
return q(
|
|
2137
2296
|
() => ({ ...t }),
|
|
2138
|
-
({ from:
|
|
2139
|
-
n.search(AMap.LngLat.from(
|
|
2297
|
+
({ from: i, to: a }) => {
|
|
2298
|
+
n.search(AMap.LngLat.from(i), AMap.LngLat.from(a), (r, o) => {
|
|
2140
2299
|
switch (r) {
|
|
2141
2300
|
case "complete": {
|
|
2142
2301
|
let s = [];
|
|
@@ -2146,7 +2305,7 @@ const Ya = v(function(e) {
|
|
|
2146
2305
|
const l = u.routes[0];
|
|
2147
2306
|
console.log("firstRoute = ", l);
|
|
2148
2307
|
for (const d of l.steps) {
|
|
2149
|
-
const c = d.path.map(({ lng: g, lat:
|
|
2308
|
+
const c = d.path.map(({ lng: g, lat: M }) => [g, M]);
|
|
2150
2309
|
s = s.concat(c);
|
|
2151
2310
|
}
|
|
2152
2311
|
e.value = s;
|
|
@@ -2161,15 +2320,15 @@ const Ya = v(function(e) {
|
|
|
2161
2320
|
});
|
|
2162
2321
|
}
|
|
2163
2322
|
), e;
|
|
2164
|
-
},
|
|
2323
|
+
}, jn = (t) => {
|
|
2165
2324
|
const e = P([]), n = new google.maps.DirectionsService();
|
|
2166
2325
|
return q(
|
|
2167
2326
|
() => ({ ...t }),
|
|
2168
|
-
({ from:
|
|
2327
|
+
({ from: i, to: a }) => {
|
|
2169
2328
|
n.route(
|
|
2170
2329
|
{
|
|
2171
|
-
origin: { lng:
|
|
2172
|
-
destination: { lng:
|
|
2330
|
+
origin: { lng: i[0], lat: i[1] },
|
|
2331
|
+
destination: { lng: a[0], lat: a[1] },
|
|
2173
2332
|
travelMode: google.maps.TravelMode.WALKING
|
|
2174
2333
|
},
|
|
2175
2334
|
(r, o) => {
|
|
@@ -2194,146 +2353,146 @@ const Ya = v(function(e) {
|
|
|
2194
2353
|
);
|
|
2195
2354
|
}
|
|
2196
2355
|
), e;
|
|
2197
|
-
},
|
|
2356
|
+
}, Rr = (t) => {
|
|
2198
2357
|
const { supplier: e } = A();
|
|
2199
|
-
return e === "gmap" ?
|
|
2200
|
-
},
|
|
2358
|
+
return e === "gmap" ? jn(t) : yn(t);
|
|
2359
|
+
}, er = v(function(e, {
|
|
2201
2360
|
slots: n
|
|
2202
2361
|
}) {
|
|
2203
|
-
const
|
|
2362
|
+
const i = yn(e);
|
|
2204
2363
|
return () => {
|
|
2205
|
-
var
|
|
2206
|
-
return
|
|
2207
|
-
path:
|
|
2364
|
+
var a;
|
|
2365
|
+
return I("div", [(a = n.render) == null ? void 0 : a.call(n, x({
|
|
2366
|
+
path: i
|
|
2208
2367
|
}))]);
|
|
2209
2368
|
};
|
|
2210
|
-
}),
|
|
2369
|
+
}), tr = v(function(e, {
|
|
2211
2370
|
slots: n
|
|
2212
2371
|
}) {
|
|
2213
|
-
const
|
|
2372
|
+
const i = jn(e);
|
|
2214
2373
|
return () => {
|
|
2215
|
-
var
|
|
2216
|
-
return
|
|
2217
|
-
path:
|
|
2374
|
+
var a;
|
|
2375
|
+
return I("div", [(a = n.render) == null ? void 0 : a.call(n, x({
|
|
2376
|
+
path: i
|
|
2218
2377
|
}))]);
|
|
2219
2378
|
};
|
|
2220
|
-
}),
|
|
2379
|
+
}), An = v(function(e, {
|
|
2221
2380
|
slots: n
|
|
2222
2381
|
}) {
|
|
2223
2382
|
const {
|
|
2224
|
-
supplier:
|
|
2383
|
+
supplier: i
|
|
2225
2384
|
} = A();
|
|
2226
|
-
return () =>
|
|
2385
|
+
return () => Z(i === "gmap" ? tr : er, {
|
|
2227
2386
|
attrs: e,
|
|
2228
2387
|
scopedSlots: n
|
|
2229
2388
|
});
|
|
2230
2389
|
}), me = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";
|
|
2231
|
-
var
|
|
2232
|
-
const
|
|
2233
|
-
const n = L(() => `<img src="${me}" class="${fe}">`),
|
|
2234
|
-
return () =>
|
|
2390
|
+
var Ln = "rrvp0y3", fe = "rrvp0y2";
|
|
2391
|
+
const nr = v(function(e) {
|
|
2392
|
+
const n = L(() => `<img src="${me}" class="${fe}">`), i = L(() => `<img src="${me}" class="${fe} ${Ln}">`);
|
|
2393
|
+
return () => I("div", [I(W, {
|
|
2235
2394
|
attrs: {
|
|
2236
2395
|
position: e.position,
|
|
2237
2396
|
anchor: "bottom-center",
|
|
2238
2397
|
content: n.value
|
|
2239
2398
|
}
|
|
2240
|
-
}),
|
|
2399
|
+
}), I(W, {
|
|
2241
2400
|
attrs: {
|
|
2242
2401
|
position: e.position,
|
|
2243
2402
|
anchor: "bottom-center",
|
|
2244
|
-
content:
|
|
2403
|
+
content: i.value
|
|
2245
2404
|
}
|
|
2246
2405
|
})]);
|
|
2247
|
-
}),
|
|
2406
|
+
}), ir = v(function(e) {
|
|
2248
2407
|
const n = L(() => T("img", {
|
|
2249
2408
|
class: fe,
|
|
2250
2409
|
src: me
|
|
2251
|
-
})),
|
|
2252
|
-
class: `${fe} ${
|
|
2410
|
+
})), i = L(() => T("img", {
|
|
2411
|
+
class: `${fe} ${Ln}`,
|
|
2253
2412
|
src: me
|
|
2254
2413
|
}));
|
|
2255
2414
|
return () => {
|
|
2256
|
-
const
|
|
2257
|
-
return
|
|
2415
|
+
const a = C(e.position);
|
|
2416
|
+
return I("div", [I(U, {
|
|
2258
2417
|
attrs: {
|
|
2259
|
-
position:
|
|
2418
|
+
position: a,
|
|
2260
2419
|
content: n.value
|
|
2261
2420
|
}
|
|
2262
|
-
}),
|
|
2421
|
+
}), I(U, {
|
|
2263
2422
|
attrs: {
|
|
2264
|
-
position:
|
|
2265
|
-
content:
|
|
2423
|
+
position: a,
|
|
2424
|
+
content: i.value
|
|
2266
2425
|
}
|
|
2267
2426
|
})]);
|
|
2268
2427
|
};
|
|
2269
|
-
}),
|
|
2428
|
+
}), ar = v(function(e) {
|
|
2270
2429
|
const n = A();
|
|
2271
|
-
return () =>
|
|
2430
|
+
return () => Z(n.supplier === "gmap" ? ir : nr, {
|
|
2272
2431
|
attrs: e
|
|
2273
2432
|
});
|
|
2274
|
-
}),
|
|
2433
|
+
}), rr = ["book-driverStartService", "dispatched", "driverStartService", "inService", "driverArrived"], rt = v((t, {
|
|
2275
2434
|
emit: e
|
|
2276
|
-
}) => (
|
|
2435
|
+
}) => (Y(() => e("mapMounted")), () => {
|
|
2277
2436
|
const {
|
|
2278
2437
|
from: n,
|
|
2279
|
-
title:
|
|
2280
|
-
registerOverlay:
|
|
2281
|
-
} = t, r =
|
|
2282
|
-
return
|
|
2438
|
+
title: i,
|
|
2439
|
+
registerOverlay: a
|
|
2440
|
+
} = t, r = D(n);
|
|
2441
|
+
return I("div", [I(E, {
|
|
2283
2442
|
attrs: {
|
|
2284
2443
|
type: "start",
|
|
2285
2444
|
position: r,
|
|
2286
|
-
title:
|
|
2287
|
-
registerOverlay:
|
|
2445
|
+
title: i,
|
|
2446
|
+
registerOverlay: a
|
|
2288
2447
|
}
|
|
2289
|
-
}),
|
|
2448
|
+
}), I(ar, {
|
|
2290
2449
|
attrs: {
|
|
2291
2450
|
position: r
|
|
2292
2451
|
}
|
|
2293
|
-
}),
|
|
2452
|
+
}), I(O, {
|
|
2294
2453
|
attrs: {
|
|
2295
2454
|
position: r,
|
|
2296
2455
|
label: n.name,
|
|
2297
2456
|
hideIcon: !0
|
|
2298
2457
|
}
|
|
2299
2458
|
})]);
|
|
2300
|
-
})),
|
|
2459
|
+
})), or = v((t, {
|
|
2301
2460
|
emit: e
|
|
2302
|
-
}) => (
|
|
2461
|
+
}) => (Y(() => e("mapMounted")), () => {
|
|
2303
2462
|
const {
|
|
2304
2463
|
from: n,
|
|
2305
|
-
carPosition:
|
|
2306
|
-
passengerPosition:
|
|
2464
|
+
carPosition: i,
|
|
2465
|
+
passengerPosition: a,
|
|
2307
2466
|
renderTitle: r,
|
|
2308
2467
|
registerOverlay: o
|
|
2309
|
-
} = t, s =
|
|
2310
|
-
return
|
|
2468
|
+
} = t, s = D(n);
|
|
2469
|
+
return I("div", [I(E, {
|
|
2311
2470
|
attrs: {
|
|
2312
2471
|
type: "start",
|
|
2313
2472
|
position: s,
|
|
2314
2473
|
registerOverlay: o
|
|
2315
2474
|
}
|
|
2316
|
-
}),
|
|
2475
|
+
}), I(O, {
|
|
2317
2476
|
attrs: {
|
|
2318
2477
|
position: s,
|
|
2319
2478
|
label: n.name,
|
|
2320
2479
|
hideIcon: !0
|
|
2321
2480
|
}
|
|
2322
|
-
}),
|
|
2481
|
+
}), I(Ne, {
|
|
2323
2482
|
attrs: {
|
|
2324
|
-
from:
|
|
2483
|
+
from: i,
|
|
2325
2484
|
to: s,
|
|
2326
2485
|
render: ({
|
|
2327
2486
|
path: u,
|
|
2328
2487
|
distance: l,
|
|
2329
2488
|
duration: d
|
|
2330
|
-
}) => [
|
|
2489
|
+
}) => [I(Le, {
|
|
2331
2490
|
attrs: {
|
|
2332
2491
|
path: u
|
|
2333
2492
|
}
|
|
2334
|
-
}),
|
|
2493
|
+
}), I(Ee, {
|
|
2335
2494
|
attrs: {
|
|
2336
|
-
position:
|
|
2495
|
+
position: i,
|
|
2337
2496
|
title: r({
|
|
2338
2497
|
distance: l,
|
|
2339
2498
|
duration: d
|
|
@@ -2341,136 +2500,136 @@ const Fa = v(function(e) {
|
|
|
2341
2500
|
}
|
|
2342
2501
|
})]
|
|
2343
2502
|
}
|
|
2344
|
-
}),
|
|
2503
|
+
}), I(An, {
|
|
2345
2504
|
attrs: {
|
|
2346
|
-
from:
|
|
2505
|
+
from: a,
|
|
2347
2506
|
to: s,
|
|
2348
2507
|
render: ({
|
|
2349
2508
|
path: u
|
|
2350
|
-
}) =>
|
|
2509
|
+
}) => I(vn, {
|
|
2351
2510
|
attrs: {
|
|
2352
2511
|
path: u
|
|
2353
2512
|
}
|
|
2354
2513
|
})
|
|
2355
2514
|
}
|
|
2356
|
-
}),
|
|
2515
|
+
}), I(Te, {
|
|
2357
2516
|
attrs: {
|
|
2358
|
-
position:
|
|
2517
|
+
position: a,
|
|
2359
2518
|
registerOverlay: o
|
|
2360
2519
|
}
|
|
2361
2520
|
})]);
|
|
2362
|
-
})),
|
|
2521
|
+
})), sr = v((t, {
|
|
2363
2522
|
emit: e
|
|
2364
|
-
}) => (
|
|
2523
|
+
}) => (Y(() => e("mapMounted")), () => {
|
|
2365
2524
|
const {
|
|
2366
2525
|
from: n,
|
|
2367
|
-
passengerPosition:
|
|
2368
|
-
title:
|
|
2526
|
+
passengerPosition: i,
|
|
2527
|
+
title: a,
|
|
2369
2528
|
registerOverlay: r
|
|
2370
|
-
} = t, o =
|
|
2371
|
-
return
|
|
2529
|
+
} = t, o = D(n);
|
|
2530
|
+
return I("div", [I(E, {
|
|
2372
2531
|
attrs: {
|
|
2373
2532
|
type: "start",
|
|
2374
2533
|
position: o,
|
|
2375
|
-
title:
|
|
2534
|
+
title: a,
|
|
2376
2535
|
registerOverlay: r
|
|
2377
2536
|
}
|
|
2378
|
-
}),
|
|
2537
|
+
}), I(O, {
|
|
2379
2538
|
attrs: {
|
|
2380
2539
|
position: o,
|
|
2381
2540
|
label: n.name,
|
|
2382
2541
|
hideIcon: !0
|
|
2383
2542
|
}
|
|
2384
|
-
}),
|
|
2543
|
+
}), I(Te, {
|
|
2385
2544
|
attrs: {
|
|
2386
|
-
position:
|
|
2545
|
+
position: i,
|
|
2387
2546
|
registerOverlay: r
|
|
2388
2547
|
}
|
|
2389
2548
|
})]);
|
|
2390
|
-
})),
|
|
2549
|
+
})), cr = v((t, {
|
|
2391
2550
|
emit: e
|
|
2392
|
-
}) => (
|
|
2551
|
+
}) => (Y(() => e("mapMounted")), () => {
|
|
2393
2552
|
const {
|
|
2394
2553
|
from: n,
|
|
2395
|
-
carPosition:
|
|
2396
|
-
passengerPosition:
|
|
2554
|
+
carPosition: i,
|
|
2555
|
+
passengerPosition: a,
|
|
2397
2556
|
title: r,
|
|
2398
2557
|
registerOverlay: o
|
|
2399
|
-
} = t, s =
|
|
2400
|
-
return
|
|
2558
|
+
} = t, s = D(n);
|
|
2559
|
+
return I("div", [I(Ee, {
|
|
2401
2560
|
attrs: {
|
|
2402
|
-
position:
|
|
2561
|
+
position: i,
|
|
2403
2562
|
title: r,
|
|
2404
2563
|
registerOverlay: o
|
|
2405
2564
|
}
|
|
2406
|
-
}),
|
|
2565
|
+
}), I(E, {
|
|
2407
2566
|
attrs: {
|
|
2408
2567
|
type: "start",
|
|
2409
2568
|
position: s,
|
|
2410
2569
|
registerOverlay: o
|
|
2411
2570
|
}
|
|
2412
|
-
}),
|
|
2571
|
+
}), I(O, {
|
|
2413
2572
|
attrs: {
|
|
2414
2573
|
position: s,
|
|
2415
2574
|
label: n.name,
|
|
2416
2575
|
hideIcon: !0
|
|
2417
2576
|
}
|
|
2418
|
-
}),
|
|
2577
|
+
}), I(An, {
|
|
2419
2578
|
attrs: {
|
|
2420
|
-
from:
|
|
2579
|
+
from: a,
|
|
2421
2580
|
to: s,
|
|
2422
2581
|
render: ({
|
|
2423
2582
|
path: u
|
|
2424
|
-
}) =>
|
|
2583
|
+
}) => I(vn, {
|
|
2425
2584
|
attrs: {
|
|
2426
2585
|
path: u
|
|
2427
2586
|
}
|
|
2428
2587
|
})
|
|
2429
2588
|
}
|
|
2430
|
-
}),
|
|
2589
|
+
}), I(Te, {
|
|
2431
2590
|
attrs: {
|
|
2432
|
-
position:
|
|
2591
|
+
position: a,
|
|
2433
2592
|
size: "small",
|
|
2434
2593
|
registerOverlay: o
|
|
2435
2594
|
}
|
|
2436
2595
|
})]);
|
|
2437
|
-
})),
|
|
2596
|
+
})), ur = v((t, {
|
|
2438
2597
|
emit: e
|
|
2439
|
-
}) => (
|
|
2598
|
+
}) => (Y(() => e("mapMounted")), () => {
|
|
2440
2599
|
const {
|
|
2441
2600
|
to: n,
|
|
2442
|
-
carPosition:
|
|
2443
|
-
renderTitle:
|
|
2601
|
+
carPosition: i,
|
|
2602
|
+
renderTitle: a,
|
|
2444
2603
|
registerOverlay: r
|
|
2445
|
-
} = t, o =
|
|
2446
|
-
return
|
|
2604
|
+
} = t, o = D(n);
|
|
2605
|
+
return I("div", [I(E, {
|
|
2447
2606
|
attrs: {
|
|
2448
2607
|
type: "end",
|
|
2449
2608
|
position: o,
|
|
2450
2609
|
registerOverlay: r
|
|
2451
2610
|
}
|
|
2452
|
-
}),
|
|
2611
|
+
}), I(O, {
|
|
2453
2612
|
attrs: {
|
|
2454
|
-
position:
|
|
2613
|
+
position: i,
|
|
2455
2614
|
label: "'WebSter Dental Plaza'",
|
|
2456
2615
|
hideIcon: !0
|
|
2457
2616
|
}
|
|
2458
|
-
}),
|
|
2617
|
+
}), I(Ne, {
|
|
2459
2618
|
attrs: {
|
|
2460
|
-
from:
|
|
2619
|
+
from: i,
|
|
2461
2620
|
to: o,
|
|
2462
2621
|
render: ({
|
|
2463
2622
|
path: s,
|
|
2464
2623
|
distance: u,
|
|
2465
2624
|
duration: l
|
|
2466
|
-
}) => [
|
|
2625
|
+
}) => [I(Le, {
|
|
2467
2626
|
attrs: {
|
|
2468
2627
|
path: s
|
|
2469
2628
|
}
|
|
2470
|
-
}),
|
|
2629
|
+
}), I(Ee, {
|
|
2471
2630
|
attrs: {
|
|
2472
|
-
position:
|
|
2473
|
-
title:
|
|
2631
|
+
position: i,
|
|
2632
|
+
title: a({
|
|
2474
2633
|
distance: u,
|
|
2475
2634
|
duration: l
|
|
2476
2635
|
}),
|
|
@@ -2479,78 +2638,78 @@ const Fa = v(function(e) {
|
|
|
2479
2638
|
})]
|
|
2480
2639
|
}
|
|
2481
2640
|
})]);
|
|
2482
|
-
})),
|
|
2641
|
+
})), lr = v((t, {
|
|
2483
2642
|
emit: e
|
|
2484
|
-
}) => (
|
|
2643
|
+
}) => (Y(() => e("mapMounted")), () => {
|
|
2485
2644
|
const {
|
|
2486
2645
|
from: n,
|
|
2487
|
-
to:
|
|
2488
|
-
registerOverlay:
|
|
2489
|
-
} = t, r =
|
|
2490
|
-
return
|
|
2646
|
+
to: i,
|
|
2647
|
+
registerOverlay: a
|
|
2648
|
+
} = t, r = D(n), o = D(i);
|
|
2649
|
+
return I("div", [I(E, {
|
|
2491
2650
|
attrs: {
|
|
2492
2651
|
type: "start",
|
|
2493
2652
|
position: r,
|
|
2494
|
-
registerOverlay:
|
|
2653
|
+
registerOverlay: a
|
|
2495
2654
|
}
|
|
2496
|
-
}),
|
|
2655
|
+
}), I(E, {
|
|
2497
2656
|
attrs: {
|
|
2498
2657
|
type: "end",
|
|
2499
2658
|
position: o,
|
|
2500
|
-
registerOverlay:
|
|
2659
|
+
registerOverlay: a
|
|
2501
2660
|
}
|
|
2502
|
-
}),
|
|
2661
|
+
}), I(O, {
|
|
2503
2662
|
attrs: {
|
|
2504
2663
|
position: r,
|
|
2505
2664
|
label: n.name,
|
|
2506
2665
|
hideIcon: !0
|
|
2507
2666
|
}
|
|
2508
|
-
}),
|
|
2667
|
+
}), I(O, {
|
|
2509
2668
|
attrs: {
|
|
2510
2669
|
position: o,
|
|
2511
|
-
label:
|
|
2670
|
+
label: i.name,
|
|
2512
2671
|
hideIcon: !0
|
|
2513
2672
|
}
|
|
2514
2673
|
})]);
|
|
2515
|
-
})),
|
|
2674
|
+
})), dr = v((t, {
|
|
2516
2675
|
emit: e
|
|
2517
|
-
}) => (
|
|
2676
|
+
}) => (Y(() => e("mapMounted")), () => {
|
|
2518
2677
|
const {
|
|
2519
2678
|
from: n,
|
|
2520
|
-
to:
|
|
2521
|
-
registerOverlay:
|
|
2522
|
-
} = t, r =
|
|
2523
|
-
return
|
|
2679
|
+
to: i,
|
|
2680
|
+
registerOverlay: a
|
|
2681
|
+
} = t, r = D(n), o = D(i);
|
|
2682
|
+
return I("div", [I(E, {
|
|
2524
2683
|
attrs: {
|
|
2525
2684
|
type: "start",
|
|
2526
2685
|
position: r,
|
|
2527
|
-
registerOverlay:
|
|
2686
|
+
registerOverlay: a
|
|
2528
2687
|
}
|
|
2529
|
-
}),
|
|
2688
|
+
}), I(E, {
|
|
2530
2689
|
attrs: {
|
|
2531
2690
|
type: "end",
|
|
2532
2691
|
position: o,
|
|
2533
|
-
registerOverlay:
|
|
2692
|
+
registerOverlay: a
|
|
2534
2693
|
}
|
|
2535
|
-
}),
|
|
2694
|
+
}), I(O, {
|
|
2536
2695
|
attrs: {
|
|
2537
2696
|
position: r,
|
|
2538
2697
|
label: n.name,
|
|
2539
2698
|
hideIcon: !0
|
|
2540
2699
|
}
|
|
2541
|
-
}),
|
|
2700
|
+
}), I(O, {
|
|
2542
2701
|
attrs: {
|
|
2543
2702
|
position: o,
|
|
2544
|
-
label:
|
|
2703
|
+
label: i.name,
|
|
2545
2704
|
hideIcon: !0
|
|
2546
2705
|
}
|
|
2547
|
-
}),
|
|
2706
|
+
}), I(Ne, {
|
|
2548
2707
|
attrs: {
|
|
2549
2708
|
from: r,
|
|
2550
2709
|
to: o,
|
|
2551
2710
|
render: ({
|
|
2552
2711
|
path: s
|
|
2553
|
-
}) =>
|
|
2712
|
+
}) => I(Le, {
|
|
2554
2713
|
attrs: {
|
|
2555
2714
|
path: s,
|
|
2556
2715
|
done: !0
|
|
@@ -2558,162 +2717,162 @@ const Fa = v(function(e) {
|
|
|
2558
2717
|
})
|
|
2559
2718
|
}
|
|
2560
2719
|
})]);
|
|
2561
|
-
})),
|
|
2562
|
-
emit: e
|
|
2563
|
-
}) => {
|
|
2720
|
+
})), Or = V((t) => {
|
|
2564
2721
|
const {
|
|
2565
|
-
from:
|
|
2566
|
-
interval:
|
|
2722
|
+
from: e,
|
|
2723
|
+
interval: n,
|
|
2567
2724
|
registerOverlay: i,
|
|
2568
|
-
mapRef:
|
|
2569
|
-
getDriverPosition:
|
|
2570
|
-
renderStartSerivceTitle:
|
|
2571
|
-
renderInServiceTitle:
|
|
2725
|
+
mapRef: a,
|
|
2726
|
+
getDriverPosition: r,
|
|
2727
|
+
renderStartSerivceTitle: o,
|
|
2728
|
+
renderInServiceTitle: s
|
|
2572
2729
|
} = t, {
|
|
2730
|
+
setFitView: u
|
|
2731
|
+
} = i, {
|
|
2573
2732
|
geoPosition: l
|
|
2574
|
-
} =
|
|
2575
|
-
geoDefaultPosition:
|
|
2576
|
-
}), d = D(
|
|
2577
|
-
return b(() => t.driverStatus, (
|
|
2578
|
-
if (!
|
|
2733
|
+
} = ln({
|
|
2734
|
+
geoDefaultPosition: D(e)
|
|
2735
|
+
}), d = h(D(t.from));
|
|
2736
|
+
return b(() => t.driverStatus, (c, g, M) => {
|
|
2737
|
+
if (!rr.includes(c))
|
|
2579
2738
|
return;
|
|
2580
|
-
const
|
|
2581
|
-
|
|
2582
|
-
},
|
|
2583
|
-
|
|
2739
|
+
const m = setInterval(() => {
|
|
2740
|
+
r().then((p) => d.value = p);
|
|
2741
|
+
}, n);
|
|
2742
|
+
M(() => clearInterval(m));
|
|
2584
2743
|
}, {
|
|
2585
2744
|
immediate: !0
|
|
2586
2745
|
}), () => {
|
|
2587
2746
|
const {
|
|
2588
|
-
driverStatus:
|
|
2589
|
-
from:
|
|
2590
|
-
to:
|
|
2591
|
-
dispatchingTitle:
|
|
2592
|
-
bookDispatchingTitle:
|
|
2593
|
-
bookDispatchedTitle:
|
|
2594
|
-
driverArrivedTitle:
|
|
2595
|
-
} = t,
|
|
2596
|
-
return
|
|
2747
|
+
driverStatus: c,
|
|
2748
|
+
from: g,
|
|
2749
|
+
to: M,
|
|
2750
|
+
dispatchingTitle: m,
|
|
2751
|
+
bookDispatchingTitle: p,
|
|
2752
|
+
bookDispatchedTitle: f,
|
|
2753
|
+
driverArrivedTitle: j
|
|
2754
|
+
} = t, y = d.value;
|
|
2755
|
+
return I(_t, {
|
|
2597
2756
|
attrs: {
|
|
2598
|
-
center:
|
|
2757
|
+
center: D(g),
|
|
2599
2758
|
zoom: 13,
|
|
2600
|
-
mapRef:
|
|
2759
|
+
mapRef: a
|
|
2601
2760
|
}
|
|
2602
|
-
}, [
|
|
2761
|
+
}, [c === "dispatching" ? I(rt, {
|
|
2603
2762
|
attrs: {
|
|
2604
|
-
from:
|
|
2605
|
-
title:
|
|
2763
|
+
from: g,
|
|
2764
|
+
title: m,
|
|
2606
2765
|
registerOverlay: i
|
|
2607
2766
|
},
|
|
2608
2767
|
on: {
|
|
2609
|
-
mapMounted:
|
|
2768
|
+
mapMounted: u
|
|
2610
2769
|
}
|
|
2611
|
-
}) :
|
|
2770
|
+
}) : c === "book-dispatching" ? I(rt, {
|
|
2612
2771
|
attrs: {
|
|
2613
|
-
from:
|
|
2614
|
-
title:
|
|
2772
|
+
from: g,
|
|
2773
|
+
title: p,
|
|
2615
2774
|
registerOverlay: i
|
|
2616
2775
|
},
|
|
2617
2776
|
on: {
|
|
2618
|
-
mapMounted:
|
|
2777
|
+
mapMounted: u
|
|
2619
2778
|
}
|
|
2620
|
-
}) :
|
|
2779
|
+
}) : c === "dispatched" || c === "driverStartService" || c === "book-driverStartService" ? I(or, {
|
|
2621
2780
|
attrs: {
|
|
2622
|
-
from:
|
|
2623
|
-
carPosition:
|
|
2781
|
+
from: g,
|
|
2782
|
+
carPosition: y,
|
|
2624
2783
|
passengerPosition: l.value,
|
|
2625
|
-
renderTitle:
|
|
2784
|
+
renderTitle: o,
|
|
2626
2785
|
registerOverlay: i
|
|
2627
2786
|
},
|
|
2628
2787
|
on: {
|
|
2629
|
-
mapMounted:
|
|
2788
|
+
mapMounted: u
|
|
2630
2789
|
}
|
|
2631
|
-
}) :
|
|
2790
|
+
}) : c === "book-dispatched" ? I(sr, {
|
|
2632
2791
|
attrs: {
|
|
2633
|
-
from:
|
|
2792
|
+
from: g,
|
|
2634
2793
|
passengerPosition: l.value,
|
|
2635
|
-
title:
|
|
2794
|
+
title: f,
|
|
2636
2795
|
registerOverlay: i
|
|
2637
2796
|
},
|
|
2638
2797
|
on: {
|
|
2639
|
-
mapMounted:
|
|
2798
|
+
mapMounted: u
|
|
2640
2799
|
}
|
|
2641
|
-
}) :
|
|
2800
|
+
}) : c === "inService" ? I(ur, {
|
|
2642
2801
|
attrs: {
|
|
2643
|
-
to:
|
|
2644
|
-
carPosition:
|
|
2645
|
-
renderTitle:
|
|
2802
|
+
to: M,
|
|
2803
|
+
carPosition: y,
|
|
2804
|
+
renderTitle: s,
|
|
2646
2805
|
registerOverlay: i
|
|
2647
2806
|
},
|
|
2648
2807
|
on: {
|
|
2649
|
-
mapMounted:
|
|
2808
|
+
mapMounted: u
|
|
2650
2809
|
}
|
|
2651
|
-
}) :
|
|
2810
|
+
}) : c === "driverArrived" ? I(cr, {
|
|
2652
2811
|
attrs: {
|
|
2653
|
-
from:
|
|
2654
|
-
carPosition:
|
|
2812
|
+
from: g,
|
|
2813
|
+
carPosition: y,
|
|
2655
2814
|
passengerPosition: l.value,
|
|
2656
|
-
title:
|
|
2815
|
+
title: j,
|
|
2657
2816
|
registerOverlay: i
|
|
2658
2817
|
},
|
|
2659
2818
|
on: {
|
|
2660
|
-
mapMounted:
|
|
2819
|
+
mapMounted: u
|
|
2661
2820
|
}
|
|
2662
|
-
}) :
|
|
2821
|
+
}) : c === "canceled" ? I(lr, {
|
|
2663
2822
|
attrs: {
|
|
2664
|
-
from:
|
|
2665
|
-
to:
|
|
2823
|
+
from: g,
|
|
2824
|
+
to: M,
|
|
2666
2825
|
registerOverlay: i
|
|
2667
2826
|
}
|
|
2668
|
-
}) :
|
|
2827
|
+
}) : c === "endService" ? I(dr, {
|
|
2669
2828
|
attrs: {
|
|
2670
|
-
from:
|
|
2671
|
-
to:
|
|
2829
|
+
from: g,
|
|
2830
|
+
to: M,
|
|
2672
2831
|
registerOverlay: i
|
|
2673
2832
|
},
|
|
2674
2833
|
on: {
|
|
2675
|
-
mapMounted:
|
|
2834
|
+
mapMounted: u
|
|
2676
2835
|
}
|
|
2677
2836
|
}) : null]);
|
|
2678
2837
|
};
|
|
2679
|
-
}).props(["bookDispatchedTitle", "bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPosition", "interval", "loading", "mapRef", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]),
|
|
2838
|
+
}).props(["bookDispatchedTitle", "bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPosition", "interval", "loading", "mapRef", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]), kr = v(function(e, {
|
|
2680
2839
|
emit: n
|
|
2681
2840
|
}) {
|
|
2682
|
-
return () =>
|
|
2841
|
+
return () => I("div", [e.places.map((i) => I(O, {
|
|
2683
2842
|
attrs: {
|
|
2684
|
-
position:
|
|
2685
|
-
label:
|
|
2843
|
+
position: D(i),
|
|
2844
|
+
label: i.name,
|
|
2686
2845
|
textAlign: "left"
|
|
2687
2846
|
},
|
|
2688
2847
|
on: {
|
|
2689
|
-
click: () => n("click",
|
|
2848
|
+
click: () => n("click", i)
|
|
2690
2849
|
}
|
|
2691
2850
|
}))]);
|
|
2692
2851
|
}), te = () => {
|
|
2693
|
-
const t =
|
|
2852
|
+
const t = h(0);
|
|
2694
2853
|
return { idx: t, update: () => {
|
|
2695
2854
|
t.value += 1;
|
|
2696
2855
|
} };
|
|
2697
|
-
},
|
|
2698
|
-
const { city: e } = t, n =
|
|
2856
|
+
}, gr = (t) => {
|
|
2857
|
+
const { city: e } = t, n = h(e), { readyPromise: i } = A(), a = h(""), r = h([]), { update: o, idx: s } = te(), u = (d) => {
|
|
2699
2858
|
n.value = d, o();
|
|
2700
2859
|
}, l = (d) => {
|
|
2701
|
-
|
|
2860
|
+
a.value = d, o();
|
|
2702
2861
|
};
|
|
2703
2862
|
return b(
|
|
2704
2863
|
() => s.value,
|
|
2705
2864
|
async () => {
|
|
2706
|
-
if (!
|
|
2865
|
+
if (!a.value)
|
|
2707
2866
|
return;
|
|
2708
|
-
await
|
|
2867
|
+
await i, new AMap.PlaceSearch({ city: n.value.name }).search(a.value, (c, g) => {
|
|
2709
2868
|
switch (c) {
|
|
2710
2869
|
case "complete": {
|
|
2711
2870
|
r.value = g.poiList.pois.map(
|
|
2712
|
-
(
|
|
2713
|
-
lat:
|
|
2714
|
-
lng:
|
|
2715
|
-
name:
|
|
2716
|
-
description:
|
|
2871
|
+
(M) => ({
|
|
2872
|
+
lat: M.location.lat,
|
|
2873
|
+
lng: M.location.lng,
|
|
2874
|
+
name: M.name,
|
|
2875
|
+
description: M.address
|
|
2717
2876
|
})
|
|
2718
2877
|
);
|
|
2719
2878
|
return;
|
|
@@ -2730,31 +2889,31 @@ const Fa = v(function(e) {
|
|
|
2730
2889
|
immediate: !0
|
|
2731
2890
|
}
|
|
2732
2891
|
), { setKeyword: l, setCity: u, autoCompletePlaces: r };
|
|
2733
|
-
},
|
|
2734
|
-
const { city: e } = t, n =
|
|
2892
|
+
}, Ir = (t) => {
|
|
2893
|
+
const { city: e } = t, n = h({ ...e }), { readyPromise: i } = A(), a = h(""), r = h([]), { update: o, idx: s } = te(), u = (c) => {
|
|
2735
2894
|
n.value = c, o();
|
|
2736
2895
|
}, l = (c) => {
|
|
2737
|
-
|
|
2896
|
+
a.value = c, o();
|
|
2738
2897
|
}, d = document.createElement("div");
|
|
2739
2898
|
return b(
|
|
2740
2899
|
() => s.value,
|
|
2741
2900
|
async () => {
|
|
2742
|
-
if (!
|
|
2901
|
+
if (!a.value)
|
|
2743
2902
|
return;
|
|
2744
|
-
await
|
|
2903
|
+
await i, new google.maps.places.PlacesService(d).textSearch(
|
|
2745
2904
|
{
|
|
2746
|
-
query:
|
|
2905
|
+
query: a.value,
|
|
2747
2906
|
bounds: n.value.bound
|
|
2748
2907
|
},
|
|
2749
|
-
(g,
|
|
2750
|
-
switch (
|
|
2908
|
+
(g, M) => {
|
|
2909
|
+
switch (M) {
|
|
2751
2910
|
case google.maps.places.PlacesServiceStatus.OK:
|
|
2752
2911
|
r.value = g.map(
|
|
2753
2912
|
({ geometry: m, name: p, formatted_address: f }) => {
|
|
2754
|
-
var j, y,
|
|
2913
|
+
var j, y, w, z;
|
|
2755
2914
|
return {
|
|
2756
2915
|
lng: (y = (j = m == null ? void 0 : m.location) == null ? void 0 : j.lng()) != null ? y : 0,
|
|
2757
|
-
lat: (z = (
|
|
2916
|
+
lat: (z = (w = m == null ? void 0 : m.location) == null ? void 0 : w.lat()) != null ? z : 0,
|
|
2758
2917
|
name: p != null ? p : "",
|
|
2759
2918
|
description: f != null ? f : ""
|
|
2760
2919
|
};
|
|
@@ -2770,22 +2929,22 @@ const Fa = v(function(e) {
|
|
|
2770
2929
|
);
|
|
2771
2930
|
}
|
|
2772
2931
|
), { setKeyword: l, setCity: u, autoCompletePlaces: r };
|
|
2773
|
-
},
|
|
2932
|
+
}, Mr = (t) => {
|
|
2774
2933
|
const { supplier: e } = A();
|
|
2775
|
-
return e === "gmap" ?
|
|
2776
|
-
},
|
|
2777
|
-
var
|
|
2778
|
-
const { cityNameRef: e, onChange: n } = t,
|
|
2934
|
+
return e === "gmap" ? Ir(t) : gr(t);
|
|
2935
|
+
}, mr = (t) => {
|
|
2936
|
+
var a;
|
|
2937
|
+
const { cityNameRef: e, onChange: n } = t, i = x({ name: (a = e.value) != null ? a : "" });
|
|
2779
2938
|
return b(
|
|
2780
2939
|
() => e.value,
|
|
2781
2940
|
(r) => {
|
|
2782
2941
|
const o = r != null ? r : "";
|
|
2783
|
-
|
|
2942
|
+
i.name = o, n == null || n({ name: o });
|
|
2784
2943
|
}
|
|
2785
|
-
),
|
|
2786
|
-
},
|
|
2944
|
+
), i;
|
|
2945
|
+
}, fr = (t) => {
|
|
2787
2946
|
var r;
|
|
2788
|
-
const { cityNameRef: e, onChange: n } = t, { readyPromise:
|
|
2947
|
+
const { cityNameRef: e, onChange: n } = t, { readyPromise: i } = A(), a = x({
|
|
2789
2948
|
name: (r = e.value) != null ? r : "",
|
|
2790
2949
|
bound: {
|
|
2791
2950
|
east: 0,
|
|
@@ -2794,83 +2953,83 @@ const Fa = v(function(e) {
|
|
|
2794
2953
|
west: 0
|
|
2795
2954
|
}
|
|
2796
2955
|
});
|
|
2797
|
-
return
|
|
2956
|
+
return Cn(async () => {
|
|
2798
2957
|
var c, g;
|
|
2799
2958
|
const o = e.value;
|
|
2800
2959
|
if (!o)
|
|
2801
2960
|
return;
|
|
2802
|
-
await
|
|
2961
|
+
await i;
|
|
2803
2962
|
const s = new google.maps.Geocoder(), { results: u } = await s.geocode({
|
|
2804
2963
|
address: o,
|
|
2805
2964
|
componentRestrictions: {
|
|
2806
2965
|
administrativeArea: "administrative_area_level_1"
|
|
2807
2966
|
},
|
|
2808
|
-
language:
|
|
2967
|
+
language: be
|
|
2809
2968
|
});
|
|
2810
2969
|
if (u.length !== 1)
|
|
2811
2970
|
throw new Error("MyError: multiple city found");
|
|
2812
2971
|
const { geometry: l } = u[0], d = (g = (c = l.bounds) == null ? void 0 : c.toJSON()) != null ? g : l.viewport.toJSON();
|
|
2813
|
-
|
|
2814
|
-
}),
|
|
2815
|
-
},
|
|
2972
|
+
a.name = o, a.bound = d, n == null || n({ name: o, bound: d });
|
|
2973
|
+
}), a;
|
|
2974
|
+
}, pr = (t) => {
|
|
2816
2975
|
const { supplier: e } = A();
|
|
2817
|
-
return e === "gmap" ?
|
|
2818
|
-
},
|
|
2819
|
-
const { cityNameRef: e } = t, n =
|
|
2976
|
+
return e === "gmap" ? fr(t) : mr(t);
|
|
2977
|
+
}, Gr = (t) => {
|
|
2978
|
+
const { cityNameRef: e } = t, n = pr({
|
|
2820
2979
|
cityNameRef: e,
|
|
2821
2980
|
onChange: (s) => r(s)
|
|
2822
|
-
}), { autoCompletePlaces:
|
|
2823
|
-
return { autoCompletePlaces:
|
|
2981
|
+
}), { autoCompletePlaces: i, setKeyword: a, setCity: r } = Mr({ city: n });
|
|
2982
|
+
return { autoCompletePlaces: i, setKeyword: a, setCity: r, handleKeywordInput: (s) => {
|
|
2824
2983
|
const u = s.target;
|
|
2825
|
-
|
|
2984
|
+
a(u.value);
|
|
2826
2985
|
} };
|
|
2827
|
-
},
|
|
2828
|
-
const { mapRef: e, onChange: n } = t,
|
|
2829
|
-
Promise.resolve().then(() =>
|
|
2986
|
+
}, vr = (t) => {
|
|
2987
|
+
const { mapRef: e, onChange: n } = t, i = h([0, 0]), a = h(!1), r = () => {
|
|
2988
|
+
Promise.resolve().then(() => a.value = !0);
|
|
2830
2989
|
}, o = (s, { target: u }) => {
|
|
2831
2990
|
var c;
|
|
2832
|
-
|
|
2991
|
+
a.value = !1;
|
|
2833
2992
|
const { lng: l, lat: d } = u.getCenter();
|
|
2834
|
-
|
|
2993
|
+
i.value = [l, d], (c = Rt(n)) == null || c([l, d]);
|
|
2835
2994
|
};
|
|
2836
2995
|
return ae(e, {}, r, [
|
|
2837
2996
|
"onDragStart"
|
|
2838
2997
|
]), ae(e, {}, o, [
|
|
2839
2998
|
"onDragEnd"
|
|
2840
|
-
]), { centerRef:
|
|
2841
|
-
},
|
|
2842
|
-
const { mapRef: e, onChange: n } = t,
|
|
2843
|
-
Promise.resolve().then(() =>
|
|
2999
|
+
]), { centerRef: i, isDragging: a };
|
|
3000
|
+
}, yr = (t) => {
|
|
3001
|
+
const { mapRef: e, onChange: n } = t, i = h([0, 0]), a = h(!1), r = () => {
|
|
3002
|
+
Promise.resolve().then(() => a.value = !0);
|
|
2844
3003
|
}, o = async () => {
|
|
2845
3004
|
var d, c;
|
|
2846
|
-
|
|
3005
|
+
a.value = !1;
|
|
2847
3006
|
const s = (d = e.value) == null ? void 0 : d.getCenter(), u = s == null ? void 0 : s.lng(), l = s == null ? void 0 : s.lat();
|
|
2848
|
-
|
|
3007
|
+
i.value = [u, l], (c = Rt(n)) == null || c([u, l]);
|
|
2849
3008
|
};
|
|
2850
3009
|
return K(e, {}, r, [
|
|
2851
3010
|
"onDragStart"
|
|
2852
3011
|
]), K(e, {}, o, [
|
|
2853
3012
|
"onDragEnd"
|
|
2854
|
-
]), { centerRef:
|
|
2855
|
-
},
|
|
3013
|
+
]), { centerRef: i, isDragging: a };
|
|
3014
|
+
}, jr = (t) => {
|
|
2856
3015
|
const { supplier: e } = A();
|
|
2857
|
-
return e === "gmap" ?
|
|
2858
|
-
},
|
|
2859
|
-
const { pointRef: e, onChange: n } = t, { readyPromise:
|
|
3016
|
+
return e === "gmap" ? yr(t) : vr(t);
|
|
3017
|
+
}, Nn = (t) => {
|
|
3018
|
+
const { pointRef: e, onChange: n } = t, { readyPromise: i } = A(), { idx: a, update: r } = te(), o = x({
|
|
2860
3019
|
lng: e.value[0],
|
|
2861
3020
|
lat: e.value[1],
|
|
2862
3021
|
name: "",
|
|
2863
3022
|
cityName: void 0
|
|
2864
3023
|
});
|
|
2865
3024
|
return b(
|
|
2866
|
-
() =>
|
|
3025
|
+
() => a.value,
|
|
2867
3026
|
async () => {
|
|
2868
|
-
await
|
|
2869
|
-
const s = new AMap.Geocoder({ lang:
|
|
3027
|
+
await i;
|
|
3028
|
+
const s = new AMap.Geocoder({ lang: be }), [u, l] = e.value;
|
|
2870
3029
|
s.getAddress(new AMap.LngLat(u, l), (d, c) => {
|
|
2871
3030
|
switch (d) {
|
|
2872
3031
|
case "complete": {
|
|
2873
|
-
const { formattedAddress: g, addressComponent:
|
|
3032
|
+
const { formattedAddress: g, addressComponent: M } = c.regeocode, m = M.city ? M.city : M.province;
|
|
2874
3033
|
o.name = g, o.lng = u, o.lat = l, o.cityName = m, n == null || n({ lng: u, lat: l, name: g, cityName: m });
|
|
2875
3034
|
return;
|
|
2876
3035
|
}
|
|
@@ -2883,63 +3042,63 @@ const Fa = v(function(e) {
|
|
|
2883
3042
|
});
|
|
2884
3043
|
}
|
|
2885
3044
|
), { place: o, updatePlace: r };
|
|
2886
|
-
},
|
|
2887
|
-
const { pointRef: e, onChange: n } = t, { readyPromise:
|
|
3045
|
+
}, Sn = (t) => {
|
|
3046
|
+
const { pointRef: e, onChange: n } = t, { readyPromise: i } = A(), { idx: a, update: r } = te(), o = x({ lng: e.value[0], lat: e.value[1], name: "" });
|
|
2888
3047
|
return b(
|
|
2889
|
-
() =>
|
|
3048
|
+
() => a.value,
|
|
2890
3049
|
async () => {
|
|
2891
|
-
await
|
|
2892
|
-
const s = new google.maps.Geocoder(), [u, l] = e.value, { results: d } = await s.geocode({ language:
|
|
3050
|
+
await i;
|
|
3051
|
+
const s = new google.maps.Geocoder(), [u, l] = e.value, { results: d } = await s.geocode({ language: be, location: { lng: u, lat: l } }), c = d[0].formatted_address, g = fa(d[0]);
|
|
2893
3052
|
o.name = c, o.lng = u, o.lat = l, n == null || n({ lng: u, lat: l, name: c, cityName: g });
|
|
2894
3053
|
}
|
|
2895
3054
|
), { place: o, updatePlace: r };
|
|
2896
|
-
},
|
|
3055
|
+
}, Wr = (t) => {
|
|
2897
3056
|
const { supplier: e } = A();
|
|
2898
|
-
return e === "gmap" ?
|
|
2899
|
-
},
|
|
2900
|
-
let n = 1 / 0,
|
|
2901
|
-
for (const
|
|
2902
|
-
const r = AMap.GeometryUtil.distance(
|
|
2903
|
-
r >= n || (
|
|
3057
|
+
return e === "gmap" ? Sn(t) : Nn(t);
|
|
3058
|
+
}, Ar = (t, e) => {
|
|
3059
|
+
let n = 1 / 0, i = t;
|
|
3060
|
+
for (const a of e) {
|
|
3061
|
+
const r = AMap.GeometryUtil.distance(D(t), D(a));
|
|
3062
|
+
r >= n || (i = a, n = r);
|
|
2904
3063
|
}
|
|
2905
|
-
return { shortestPlace:
|
|
2906
|
-
},
|
|
2907
|
-
let n = 1 / 0,
|
|
2908
|
-
for (const
|
|
2909
|
-
const r = google.maps.geometry.spherical.computeDistanceBetween(t,
|
|
2910
|
-
r >= n || (
|
|
3064
|
+
return { shortestPlace: i, shortestDistance: n };
|
|
3065
|
+
}, Lr = (t, e) => {
|
|
3066
|
+
let n = 1 / 0, i = t;
|
|
3067
|
+
for (const a of e) {
|
|
3068
|
+
const r = google.maps.geometry.spherical.computeDistanceBetween(t, a);
|
|
3069
|
+
r >= n || (i = a, n = r);
|
|
2911
3070
|
}
|
|
2912
|
-
return { shortestPlace:
|
|
2913
|
-
},
|
|
2914
|
-
const { pointRef: e, getRecomendPlace: n, getLimit:
|
|
3071
|
+
return { shortestPlace: i, shortestDistance: n };
|
|
3072
|
+
}, Nr = (t) => {
|
|
3073
|
+
const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: r, onChangePlace: o } = t, s = h([]), { idx: u, update: l } = te(), { readyPromise: d } = A(), { place: c, updatePlace: g } = Nn({ pointRef: e, onChange: o }), M = x({ ...c });
|
|
2915
3074
|
return b(
|
|
2916
3075
|
() => u.value,
|
|
2917
3076
|
async () => {
|
|
2918
3077
|
await d;
|
|
2919
|
-
const m = await n({ ...c },
|
|
2920
|
-
s.value = m, Object.assign(
|
|
3078
|
+
const m = await n({ ...c }, a), { shortestPlace: p, shortestDistance: f } = Ar(c, m), j = i(a), y = f > j ? c : p;
|
|
3079
|
+
s.value = m, Object.assign(M, { ...y }), r == null || r({ ...y });
|
|
2921
3080
|
}
|
|
2922
|
-
), { recomendPlace:
|
|
2923
|
-
},
|
|
2924
|
-
const { pointRef: e, getRecomendPlace: n, getLimit:
|
|
3081
|
+
), { recomendPlace: M, placeCandidates: s, updateRecomandPlace: l, updatePlace: g };
|
|
3082
|
+
}, Sr = (t) => {
|
|
3083
|
+
const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: r, onChangePlace: o } = t, s = h([]), { idx: u, update: l } = te(), { readyPromise: d } = A(), { place: c, updatePlace: g } = Sn({ pointRef: e, onChange: o }), M = x({ ...c });
|
|
2925
3084
|
return b(
|
|
2926
3085
|
() => u.value,
|
|
2927
3086
|
async () => {
|
|
2928
3087
|
await d;
|
|
2929
|
-
const m = await n({ ...c },
|
|
2930
|
-
s.value = m, Object.assign(
|
|
3088
|
+
const m = await n({ ...c }, a), { shortestPlace: p, shortestDistance: f } = Lr(c, m), j = i(a), y = f > j ? c : p;
|
|
3089
|
+
s.value = m, Object.assign(M, { ...y }), r == null || r({ ...y });
|
|
2931
3090
|
}
|
|
2932
|
-
), { recomendPlace:
|
|
2933
|
-
},
|
|
3091
|
+
), { recomendPlace: M, placeCandidates: s, updateRecomandPlace: l, updatePlace: g };
|
|
3092
|
+
}, hr = (t) => {
|
|
2934
3093
|
const { supplier: e } = A();
|
|
2935
|
-
return e === "gmap" ?
|
|
2936
|
-
},
|
|
2937
|
-
var
|
|
3094
|
+
return e === "gmap" ? Sr(t) : Nr(t);
|
|
3095
|
+
}, Ur = (t) => {
|
|
3096
|
+
var Ze, Re;
|
|
2938
3097
|
const {
|
|
2939
3098
|
mapRef: e,
|
|
2940
3099
|
geoDefaultPosition: n,
|
|
2941
|
-
getRecomendPlace:
|
|
2942
|
-
defaultCenterPoint:
|
|
3100
|
+
getRecomendPlace: i,
|
|
3101
|
+
defaultCenterPoint: a,
|
|
2943
3102
|
recomendPlaceDragLimit: r,
|
|
2944
3103
|
recomendPlaceGeoLimit: o,
|
|
2945
3104
|
onLoadGeoLocation: s,
|
|
@@ -2948,40 +3107,40 @@ const Fa = v(function(e) {
|
|
|
2948
3107
|
onChangeGeoLocation: d,
|
|
2949
3108
|
onChangePlace: c,
|
|
2950
3109
|
onChangeRecomandPlace: g
|
|
2951
|
-
} = t, { readyPromise:
|
|
2952
|
-
lng: (
|
|
2953
|
-
lat: (
|
|
3110
|
+
} = t, { readyPromise: M } = A(), m = x({
|
|
3111
|
+
lng: (Ze = a == null ? void 0 : a[0]) != null ? Ze : 0,
|
|
3112
|
+
lat: (Re = a == null ? void 0 : a[1]) != null ? Re : 0,
|
|
2954
3113
|
name: "",
|
|
2955
3114
|
cityName: void 0
|
|
2956
3115
|
}), p = L(() => [m.lng, m.lat]), f = { source: "geo" }, j = (N) => {
|
|
2957
|
-
f.source = "api", m.lng = N[0], m.lat = N[1],
|
|
3116
|
+
f.source = "api", m.lng = N[0], m.lat = N[1], k();
|
|
2958
3117
|
}, y = (N) => {
|
|
2959
3118
|
f.source = "api", m.lng = N.lng, m.lat = N.lat, m.name = N.name;
|
|
2960
3119
|
};
|
|
2961
|
-
|
|
2962
|
-
f.source = "default",
|
|
3120
|
+
a && M.then(() => {
|
|
3121
|
+
f.source = "default", k();
|
|
2963
3122
|
});
|
|
2964
|
-
const { geoLoading:
|
|
3123
|
+
const { geoLoading: w, geoError: z, geoPosition: H, geoCoordinate: S, geoReady: R } = ln({
|
|
2965
3124
|
geoDefaultPosition: n,
|
|
2966
3125
|
onLoad: async (N) => {
|
|
2967
|
-
|
|
3126
|
+
a || (await M, f.source = "geo", m.lng = N.position[0], m.lat = N.position[1], k()), s == null || s(N);
|
|
2968
3127
|
},
|
|
2969
3128
|
onLoadDefault: async (N) => {
|
|
2970
|
-
|
|
3129
|
+
a || (await M, f.source = "geo", m.lng = N.position[0], m.lat = N.position[1], k()), u == null || u(N);
|
|
2971
3130
|
},
|
|
2972
3131
|
onChange: d
|
|
2973
|
-
}), { isDragging:
|
|
3132
|
+
}), { isDragging: Q } = jr({
|
|
2974
3133
|
mapRef: e,
|
|
2975
3134
|
onChange: (N) => {
|
|
2976
|
-
f.source = "drag", m.lng = N[0], m.lat = N[1],
|
|
3135
|
+
f.source = "drag", m.lng = N[0], m.lat = N[1], k(), l == null || l(N);
|
|
2977
3136
|
}
|
|
2978
|
-
}), { updatePlace:
|
|
3137
|
+
}), { updatePlace: k, updateRecomandPlace: Dn, placeCandidates: wn } = hr({
|
|
2979
3138
|
pointRef: p,
|
|
2980
3139
|
context: f,
|
|
2981
|
-
getRecomendPlace:
|
|
3140
|
+
getRecomendPlace: i,
|
|
2982
3141
|
getLimit: (N) => {
|
|
2983
|
-
const
|
|
2984
|
-
switch (
|
|
3142
|
+
const Oe = N == null ? void 0 : N.source;
|
|
3143
|
+
switch (Oe) {
|
|
2985
3144
|
case "drag":
|
|
2986
3145
|
case "api":
|
|
2987
3146
|
return r;
|
|
@@ -2989,174 +3148,105 @@ const Fa = v(function(e) {
|
|
|
2989
3148
|
case "default":
|
|
2990
3149
|
return o;
|
|
2991
3150
|
default:
|
|
2992
|
-
throw new Error(`MyError: should not call getLimit on source: ${
|
|
3151
|
+
throw new Error(`MyError: should not call getLimit on source: ${Oe}`);
|
|
2993
3152
|
}
|
|
2994
3153
|
},
|
|
2995
3154
|
onChangePlace: (N) => {
|
|
2996
|
-
Object.assign(m, { ...N }), f.source !== "recomend" &&
|
|
3155
|
+
Object.assign(m, { ...N }), f.source !== "recomend" && Dn(), c == null || c(N);
|
|
2997
3156
|
},
|
|
2998
3157
|
onChange: (N) => {
|
|
2999
|
-
f.source = "recomend", Object.assign(m, { ...N }),
|
|
3158
|
+
f.source = "recomend", Object.assign(m, { ...N }), k(), g == null || g(N);
|
|
3000
3159
|
}
|
|
3001
3160
|
});
|
|
3002
3161
|
return {
|
|
3003
|
-
isDragging:
|
|
3004
|
-
geoLoading:
|
|
3162
|
+
isDragging: Q,
|
|
3163
|
+
geoLoading: w,
|
|
3005
3164
|
geoError: z,
|
|
3006
|
-
geoPosition:
|
|
3165
|
+
geoPosition: H,
|
|
3007
3166
|
geoCoordinate: S,
|
|
3008
|
-
geoReady:
|
|
3167
|
+
geoReady: R,
|
|
3009
3168
|
centerPlace: m,
|
|
3010
3169
|
centerPoint: p,
|
|
3011
|
-
placeCandidates:
|
|
3170
|
+
placeCandidates: wn,
|
|
3012
3171
|
setCenterPlaceByRecomand: j,
|
|
3013
3172
|
setCenterByPlace: y
|
|
3014
3173
|
};
|
|
3015
|
-
},
|
|
3174
|
+
}, Dr = () => {
|
|
3016
3175
|
const t = P();
|
|
3017
|
-
return { mapRef: t, panTo: (
|
|
3018
|
-
var
|
|
3019
|
-
return (
|
|
3020
|
-
}, setMap: (
|
|
3021
|
-
t.value =
|
|
3176
|
+
return { mapRef: t, panTo: (i) => {
|
|
3177
|
+
var a;
|
|
3178
|
+
return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(i);
|
|
3179
|
+
}, setMap: (i) => {
|
|
3180
|
+
t.value = i;
|
|
3022
3181
|
} };
|
|
3023
|
-
},
|
|
3182
|
+
}, wr = () => {
|
|
3024
3183
|
const t = P();
|
|
3025
|
-
return { mapRef: t, panTo: (
|
|
3026
|
-
var
|
|
3027
|
-
return (
|
|
3028
|
-
}, setMap: (
|
|
3029
|
-
t.value =
|
|
3184
|
+
return { mapRef: t, panTo: (i) => {
|
|
3185
|
+
var a;
|
|
3186
|
+
return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(C(i));
|
|
3187
|
+
}, setMap: (i) => {
|
|
3188
|
+
t.value = i;
|
|
3030
3189
|
} };
|
|
3031
|
-
},
|
|
3190
|
+
}, hn = () => {
|
|
3032
3191
|
const { supplier: t } = A();
|
|
3033
|
-
return t === "gmap" ?
|
|
3034
|
-
},
|
|
3035
|
-
const {
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
a.delete(u);
|
|
3043
|
-
}
|
|
3044
|
-
}, o = () => {
|
|
3045
|
-
var m;
|
|
3046
|
-
const u = e.value;
|
|
3047
|
-
if (!u)
|
|
3048
|
-
return;
|
|
3049
|
-
const l = window.innerWidth / 100, [d, c, g, I] = (m = t.padding) != null ? m : [0, 0, 0, 0];
|
|
3050
|
-
console.log([...a]), u.setFitView([...a], !1, [d * l, g * l, I * l, c * l]);
|
|
3051
|
-
};
|
|
3052
|
-
return ae(
|
|
3053
|
-
e,
|
|
3054
|
-
{},
|
|
3055
|
-
() => {
|
|
3056
|
-
n && (i && clearTimeout(i), i = setTimeout(() => {
|
|
3057
|
-
i = void 0, o();
|
|
3058
|
-
}, n));
|
|
3059
|
-
},
|
|
3060
|
-
["onDragEnd"]
|
|
3061
|
-
), { registerFitVeiw: r, setFitView: o };
|
|
3062
|
-
};
|
|
3063
|
-
class Sr extends Set {
|
|
3064
|
-
getBound() {
|
|
3065
|
-
const e = new google.maps.LatLngBounds();
|
|
3066
|
-
for (const n of this.values()) {
|
|
3067
|
-
const a = n instanceof google.maps.Marker ? n.getPosition() : n.position;
|
|
3068
|
-
a && e.extend(a);
|
|
3069
|
-
}
|
|
3070
|
-
return e;
|
|
3071
|
-
}
|
|
3072
|
-
}
|
|
3073
|
-
const hr = (t) => {
|
|
3074
|
-
const { mapRef: e, autoFitTimeout: n } = t, { executeMapApi: a } = Xt(), i = new Sr();
|
|
3075
|
-
let r;
|
|
3076
|
-
const o = {
|
|
3077
|
-
add: (d) => {
|
|
3078
|
-
i.add(d);
|
|
3079
|
-
},
|
|
3080
|
-
remove: (d) => {
|
|
3081
|
-
i.delete(d);
|
|
3082
|
-
}
|
|
3083
|
-
}, s = () => {
|
|
3084
|
-
var f;
|
|
3085
|
-
const d = e.value;
|
|
3086
|
-
if (!d)
|
|
3087
|
-
return;
|
|
3088
|
-
const c = window.innerWidth / 100, [g, I, m, p] = (f = t.padding) != null ? f : [0, 0, 0, 0];
|
|
3089
|
-
a(
|
|
3090
|
-
() => d.fitBounds(i.getBound(), {
|
|
3091
|
-
top: g * c,
|
|
3092
|
-
right: I * c,
|
|
3093
|
-
bottom: m * c,
|
|
3094
|
-
left: p * c
|
|
3095
|
-
})
|
|
3096
|
-
);
|
|
3097
|
-
}, u = (d) => {
|
|
3098
|
-
const c = Ca();
|
|
3099
|
-
console.log("handleMoveEndOrZomEnd name, eventSource = ", d, c), !(!n || c !== "user") && (r && clearTimeout(r), r = setTimeout(() => {
|
|
3100
|
-
r = void 0, s();
|
|
3101
|
-
}, n));
|
|
3102
|
-
}, l = qi(u, Lr);
|
|
3103
|
-
return K(e, {}, u, [
|
|
3104
|
-
"onDragEnd"
|
|
3105
|
-
]), K(e, {}, l, [
|
|
3106
|
-
"onZoom_changed"
|
|
3107
|
-
]), { registerFitVeiw: o, setFitView: s };
|
|
3108
|
-
}, Dr = (t) => {
|
|
3109
|
-
const { supplier: e } = A();
|
|
3110
|
-
return e === "gmap" ? hr(t) : Nr(t);
|
|
3111
|
-
}, Wr = () => {
|
|
3112
|
-
const { mapRef: t, setMap: e } = Ar(), { registerFitVeiw: n, setFitView: a } = Dr({
|
|
3192
|
+
return t === "gmap" ? wr() : Dr();
|
|
3193
|
+
}, Br = () => {
|
|
3194
|
+
const { setMap: t, mapRef: e } = hn(), { registerFitVeiw: n, setFitView: i } = ze({
|
|
3195
|
+
mapRef: e,
|
|
3196
|
+
padding: [25, 20, 15, 15]
|
|
3197
|
+
});
|
|
3198
|
+
return { setMap: t, registerFitVeiw: n, setFitView: i };
|
|
3199
|
+
}, Yr = () => {
|
|
3200
|
+
const { mapRef: t, setMap: e } = hn(), { registerFitVeiw: n, setFitView: i } = ze({
|
|
3113
3201
|
mapRef: t,
|
|
3114
3202
|
autoFitTimeout: 5e3,
|
|
3115
3203
|
padding: [25, 20, 15, 15]
|
|
3116
3204
|
});
|
|
3117
|
-
return { setMap: e, registerFitVeiw: n, setFitView:
|
|
3118
|
-
},
|
|
3205
|
+
return { setMap: e, registerFitVeiw: n, setFitView: i };
|
|
3206
|
+
}, xr = () => {
|
|
3119
3207
|
const { status: t } = A();
|
|
3120
|
-
return { apiMapDistance: (n,
|
|
3208
|
+
return { apiMapDistance: (n, i) => {
|
|
3121
3209
|
if (t === re.SUCCESS)
|
|
3122
|
-
return AMap.GeometryUtil.distance(n,
|
|
3210
|
+
return AMap.GeometryUtil.distance(n, i);
|
|
3123
3211
|
} };
|
|
3124
|
-
},
|
|
3212
|
+
}, Cr = () => {
|
|
3125
3213
|
const { status: t } = A();
|
|
3126
|
-
return { apiMapDistance: (n,
|
|
3214
|
+
return { apiMapDistance: (n, i) => {
|
|
3127
3215
|
if (t === re.SUCCESS)
|
|
3128
|
-
return google.maps.geometry.spherical.computeDistanceBetween(
|
|
3216
|
+
return google.maps.geometry.spherical.computeDistanceBetween(C(n), C(i));
|
|
3129
3217
|
} };
|
|
3130
|
-
},
|
|
3218
|
+
}, Vr = () => {
|
|
3131
3219
|
const { supplier: t } = A();
|
|
3132
|
-
return t === "gmap" ?
|
|
3220
|
+
return t === "gmap" ? Cr() : xr();
|
|
3133
3221
|
};
|
|
3134
3222
|
export {
|
|
3135
|
-
|
|
3136
|
-
Zr as
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
vn as
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
Gr as
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3223
|
+
Pr as AddressBox,
|
|
3224
|
+
Zr as BusinessQuotingMap,
|
|
3225
|
+
Or as BusinessTaxiServiceMap,
|
|
3226
|
+
Le as DrivingLine,
|
|
3227
|
+
Ne as DrivingRoute,
|
|
3228
|
+
_t as HeycarMap,
|
|
3229
|
+
zr as MapProvider,
|
|
3230
|
+
Te as PassengerCircle,
|
|
3231
|
+
kr as PickupPoints,
|
|
3232
|
+
O as PlaceCircle,
|
|
3233
|
+
E as StartEndPoint,
|
|
3234
|
+
Ee as TaxiCar,
|
|
3235
|
+
vn as WalkingLine,
|
|
3236
|
+
An as WalkingRoute,
|
|
3237
|
+
ar as WaveCircle,
|
|
3238
|
+
Gr as useBusinessMapAutoComplete,
|
|
3239
|
+
Ur as useBusinessMapRecomendPlace,
|
|
3240
|
+
Br as useBusinessQuotingMap,
|
|
3241
|
+
Yr as useBusinessTaxiServiceMap,
|
|
3242
|
+
Tr as useDrivingRoute,
|
|
3243
|
+
ln as useGeoLocation,
|
|
3244
|
+
hn as useHeycarMap,
|
|
3245
|
+
Er as useMapAngle,
|
|
3246
|
+
jr as useMapDrag,
|
|
3247
|
+
ze as useMapFitView,
|
|
3248
|
+
Vr as useMapGeometry,
|
|
3249
|
+
Wr as useMapPlace,
|
|
3250
|
+
hr as useMapRecomendPlace,
|
|
3251
|
+
Rr as useWalkingRoute
|
|
3162
3252
|
};
|