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