@heycar/heycars-map 0.2.4 → 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 +24 -0
- package/dist/business-components/BusinessTaxiServiceMap/index.d.ts +1 -0
- package/dist/business-components/FitView/FitView.d.ts +9 -0
- package/dist/business-components/FitView/index.d.ts +1 -0
- package/dist/business-components/PassengerCircle/PassengerCircle.d.ts +18309 -4
- package/dist/business-components/PickupPoints/PickupPoints.d.ts +2 -1
- package/dist/business-components/PlaceCircle/PlaceCircle.d.ts +5 -3
- package/dist/business-components/TaxiCar/TaxiCar.d.ts +18309 -4
- package/dist/business-components/WalkingRoute/WalkingRoute.d.ts +0 -1
- package/dist/components/AmapMarker/AmapMarker.d.ts +5 -2
- package/dist/components/Demo/DemoBusinessQuoting.d.ts +1 -0
- package/dist/components/Demo/DemoBusinessTaxiService.d.ts +2 -0
- package/dist/components/GmapAdvancedMarkerView/GmapAdvancedMarkerView.d.ts +5 -2
- package/dist/hooks/useGeoLocation.d.ts +4 -0
- package/dist/hooks/useMap.d.ts +4 -0
- package/dist/hooks/useMapAutoComplete.d.ts +3 -0
- package/dist/hooks/useMapFitView.d.ts +6 -2296
- 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 +6 -1
- package/dist/hooks-business/{useBusinessMapFitView.d.ts → useBusinessQuotingMap.d.ts} +494 -742
- package/dist/hooks-business/useBusinessTaxiServiceMap.d.ts +2049 -0
- package/dist/index.cjs +56 -56
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2389 -1921
- package/dist/types/interface.d.ts +2 -0
- package/dist/utils/compare.d.ts +1 -1
- package/package.json +1 -1
- package/src/App.tsx +4 -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 +358 -0
- package/src/business-components/BusinessTaxiServiceMap/index.ts +1 -0
- package/src/business-components/FitView/FitView.tsx +14 -0
- package/src/business-components/FitView/index.ts +1 -0
- package/src/business-components/PassengerCircle/PassengerCircle.tsx +26 -8
- package/src/business-components/PickupPoints/PickupPoints.tsx +8 -2
- package/src/business-components/PlaceCircle/PlaceCircle.tsx +29 -5
- package/src/business-components/TaxiCar/TaxiCar.tsx +18 -6
- package/src/business-components/WalkingRoute/WalkingRoute.tsx +0 -1
- package/src/components/AmapMarker/AmapMarker.ts +10 -3
- package/src/components/Demo/DemoBusinessQuoting.tsx +39 -0
- package/src/components/Demo/DemoBusinessTaxiService.tsx +53 -0
- package/src/components/Demo/HeycarDemo.tsx +19 -10
- package/src/components/GmapAdvancedMarkerView/GmapAdvancedMarkerView.ts +15 -4
- package/src/hooks/useGeoLocation.ts +7 -3
- package/src/hooks/useMap.ts +15 -1
- package/src/hooks/useMapFitView.ts +8 -1
- package/src/hooks/useOverlay.ts +1 -0
- package/src/hooks/useWalkingRoute.ts +14 -9
- package/src/hooks-business/useBusinessMapRecomendPlace.ts +24 -0
- package/src/hooks-business/useBusinessQuotingMap.ts +11 -0
- package/src/hooks-business/useBusinessTaxiServiceMap.ts +12 -0
- package/src/index.ts +2 -1
- package/src/types/interface.ts +13 -0
- package/src/utils/compare.ts +4 -1
- package/todo.md +7 -0
- 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+5qSt5ZyG5b2iPC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxjaXJjbGUgaWQ9InBhdGgtMSIgY3g9IjQuNSIgY3k9IjkuNSIgcj0iNC41Ij48L2NpcmNsZT4KICAgICAgICA8ZmlsdGVyIHg9Ii02MS4xJSIgeT0iLTYxLjElIiB3aWR0aD0iMjIyLjIlIiBoZWlnaHQ9IjIyMi4yJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0iZmlsdGVyLTIiPgogICAgICAgICAgICA8ZmVNb3JwaG9sb2d5IHJhZGl1cz0iMSIgb3BlcmF0b3I9ImRpbGF0ZSIgaW49IlNvdXJjZUFscGhhIiByZXN1b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4KICAgICAgICAgICAgICAgIDx1c2UgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMSIgZmlsdGVyPSJ1cmwoI2ZpbHRlci0yKSIgeGxpbms6aHJlZj0iI3BhdGgtMSI+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 (
|
|
63
|
-
return
|
|
71
|
+
if (Fn(t))
|
|
72
|
+
return Jn(t, mt) + "";
|
|
73
|
+
if (Mt(t))
|
|
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 Qn = {
|
|
|
301
312
|
œ: "oe",
|
|
302
313
|
ʼn: "'n",
|
|
303
314
|
ſ: "s"
|
|
304
|
-
},
|
|
305
|
-
const
|
|
306
|
-
var
|
|
307
|
-
function
|
|
308
|
-
return t =
|
|
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");
|
|
318
|
+
function pi(t) {
|
|
319
|
+
return t = ft(t), t && t.replace(li, ui).replace(fi, "");
|
|
309
320
|
}
|
|
310
|
-
var
|
|
311
|
-
function
|
|
312
|
-
return t.match(
|
|
321
|
+
var vi = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
322
|
+
function yi(t) {
|
|
323
|
+
return t.match(vi) || [];
|
|
313
324
|
}
|
|
314
|
-
var
|
|
315
|
-
function
|
|
316
|
-
return
|
|
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
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
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,
|
|
335
|
+
Gi,
|
|
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 =
|
|
350
|
-
function I(
|
|
351
|
-
var Z =
|
|
352
|
-
return
|
|
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);
|
|
361
|
+
function I(S) {
|
|
362
|
+
var Z = a, H = i;
|
|
363
|
+
return a = i = void 0, l = S, o = t.apply(H, Z), o;
|
|
353
364
|
}
|
|
354
|
-
function
|
|
355
|
-
return l =
|
|
365
|
+
function m(S) {
|
|
366
|
+
return l = S, s = setTimeout(j, e), d ? I(S) : o;
|
|
356
367
|
}
|
|
357
|
-
function
|
|
358
|
-
var Z =
|
|
359
|
-
return c ?
|
|
368
|
+
function p(S) {
|
|
369
|
+
var Z = S - u, H = S - l, O = e - Z;
|
|
370
|
+
return c ? Ki(O, r - H) : O;
|
|
360
371
|
}
|
|
361
|
-
function
|
|
362
|
-
var Z =
|
|
363
|
-
return u === void 0 || Z >= e || Z < 0 || c &&
|
|
372
|
+
function f(S) {
|
|
373
|
+
var Z = S - u, H = S - l;
|
|
374
|
+
return u === void 0 || Z >= e || Z < 0 || c && H >= r;
|
|
364
375
|
}
|
|
365
|
-
function
|
|
366
|
-
var
|
|
367
|
-
if (
|
|
368
|
-
return
|
|
369
|
-
s = setTimeout(
|
|
376
|
+
function j() {
|
|
377
|
+
var S = Le();
|
|
378
|
+
if (f(S))
|
|
379
|
+
return y(S);
|
|
380
|
+
s = setTimeout(j, p(S));
|
|
370
381
|
}
|
|
371
|
-
function
|
|
372
|
-
return s = void 0, g &&
|
|
382
|
+
function y(S) {
|
|
383
|
+
return s = void 0, g && a ? I(S) : (a = i = void 0, o);
|
|
373
384
|
}
|
|
374
385
|
function h() {
|
|
375
|
-
s !== void 0 && clearTimeout(s), l = 0,
|
|
386
|
+
s !== void 0 && clearTimeout(s), l = 0, a = u = i = s = void 0;
|
|
376
387
|
}
|
|
377
|
-
function
|
|
378
|
-
return s === void 0 ?
|
|
388
|
+
function z() {
|
|
389
|
+
return s === void 0 ? o : y(Le());
|
|
379
390
|
}
|
|
380
|
-
function
|
|
381
|
-
var
|
|
382
|
-
if (
|
|
391
|
+
function Y() {
|
|
392
|
+
var S = Le(), Z = f(S);
|
|
393
|
+
if (a = arguments, i = this, u = S, Z) {
|
|
383
394
|
if (s === void 0)
|
|
384
|
-
return
|
|
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
|
|
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
|
|
396
|
-
function
|
|
397
|
-
return
|
|
406
|
+
const bt = ea;
|
|
407
|
+
function v(t) {
|
|
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 =
|
|
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 Ui() {
|
|
|
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
|
|
490
|
-
if (
|
|
491
|
-
return
|
|
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
|
|
562
|
-
function
|
|
572
|
+
var la = typeof Map == "function", da = typeof Set == "function", Ke = Object.prototype.valueOf;
|
|
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
|
-
|
|
583
|
-
|
|
584
|
-
return
|
|
593
|
+
oe();
|
|
594
|
+
oe(function() {
|
|
595
|
+
return le;
|
|
585
596
|
});
|
|
586
|
-
|
|
587
|
-
|
|
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 b(() =>
|
|
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 b(() =>
|
|
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
655
|
b(
|
|
645
|
-
|
|
646
|
-
(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
const
|
|
700
|
-
const { registerOverlay:
|
|
701
|
-
return
|
|
710
|
+
const W = v(function(e, { emit: n }) {
|
|
711
|
+
const { registerOverlay: a } = e, i = P(), r = ye();
|
|
712
|
+
return pe(() => {
|
|
702
713
|
i.value = new AMap.Marker({ ...e });
|
|
703
|
-
}),
|
|
714
|
+
}), ve(() => {
|
|
704
715
|
var o;
|
|
705
716
|
(o = i.value) == null || o.setMap(null);
|
|
706
|
-
}),
|
|
707
|
-
var
|
|
708
|
-
const o =
|
|
709
|
-
o && ((
|
|
710
|
-
}),
|
|
717
|
+
}), dt({ registerOverlay: a, overlayRef: i }), B(() => {
|
|
718
|
+
var s;
|
|
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,1508 +732,1983 @@ const R = y(function(e) {
|
|
|
721
732
|
{ name: "content", defaultValue: "" },
|
|
722
733
|
{ name: "title", defaultValue: "" },
|
|
723
734
|
{ name: "extData", defaultValue: "" }
|
|
724
|
-
]), () => null;
|
|
725
|
-
}),
|
|
726
|
-
const { registerOverlay:
|
|
727
|
-
return
|
|
728
|
-
const { registerOverlay:
|
|
729
|
-
i.value = new google.maps.marker.AdvancedMarkerView({ ...
|
|
730
|
-
}),
|
|
735
|
+
]), ae(i, e, n, ["onClick"]), () => null;
|
|
736
|
+
}), U = v(function(e, { emit: n }) {
|
|
737
|
+
const { registerOverlay: a } = e, i = P(), r = je(), o = (s) => n(s, { target: i.value });
|
|
738
|
+
return dt({ registerOverlay: a, overlayRef: i }), pe(() => {
|
|
739
|
+
const { registerOverlay: s, ...u } = e;
|
|
740
|
+
i.value = new google.maps.marker.AdvancedMarkerView({ ...u }), i.value.addListener;
|
|
741
|
+
}), ve(() => {
|
|
731
742
|
i.value && (i.value.map = null);
|
|
732
|
-
}),
|
|
733
|
-
const
|
|
734
|
-
!
|
|
735
|
-
}),
|
|
743
|
+
}), B(() => {
|
|
744
|
+
const s = r == null ? void 0 : r.value;
|
|
745
|
+
!s || !i.value || (i.value.map = s);
|
|
746
|
+
}), se(
|
|
736
747
|
() => {
|
|
737
|
-
const { content:
|
|
738
|
-
return
|
|
748
|
+
const { content: s, registerOverlay: u, ...l } = e;
|
|
749
|
+
return l;
|
|
739
750
|
},
|
|
740
|
-
(
|
|
741
|
-
i.value && Object.assign(i.value,
|
|
751
|
+
(s) => {
|
|
752
|
+
i.value && Object.assign(i.value, s);
|
|
742
753
|
}
|
|
743
754
|
), b(
|
|
744
755
|
() => e.content,
|
|
745
|
-
(
|
|
746
|
-
i.value && (i.value.content =
|
|
756
|
+
(s) => {
|
|
757
|
+
i.value && (i.value.content = s);
|
|
747
758
|
},
|
|
748
759
|
{
|
|
749
760
|
flush: "post"
|
|
750
761
|
}
|
|
751
|
-
), () => null;
|
|
752
|
-
}),
|
|
753
|
-
const { class:
|
|
754
|
-
return
|
|
755
|
-
},
|
|
756
|
-
var
|
|
757
|
-
const
|
|
762
|
+
), K(i, e, o, ["onClick"]), () => null;
|
|
763
|
+
}), T = (t, e, n) => {
|
|
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+";
|
|
767
|
+
var kt = "rgf09w0";
|
|
768
|
+
const Gt = v(function(e) {
|
|
758
769
|
const n = L(() => `
|
|
759
|
-
<img src="${
|
|
770
|
+
<img src="${Ot}" class="${kt}">
|
|
760
771
|
`);
|
|
761
|
-
return () =>
|
|
772
|
+
return () => M(W, {
|
|
762
773
|
attrs: {
|
|
763
774
|
position: e.position,
|
|
764
775
|
content: n.value,
|
|
765
776
|
anchor: "bottom-center"
|
|
766
777
|
}
|
|
767
778
|
});
|
|
768
|
-
}),
|
|
769
|
-
const n = L(() =>
|
|
770
|
-
class:
|
|
771
|
-
src:
|
|
779
|
+
}), Wt = v(function(e) {
|
|
780
|
+
const n = L(() => T("img", {
|
|
781
|
+
class: kt,
|
|
782
|
+
src: Ot
|
|
772
783
|
}));
|
|
773
|
-
return () =>
|
|
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
|
-
|
|
781
|
-
const n =
|
|
782
|
-
return () => E(n.supplier === "gmap" ?
|
|
791
|
+
v(function(e) {
|
|
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
|
});
|
|
804
|
-
return () => e.type === "locator" ?
|
|
815
|
+
return () => e.type === "locator" ? M(Gt, {
|
|
805
816
|
attrs: {
|
|
806
817
|
position: e.position
|
|
807
818
|
}
|
|
808
|
-
}) :
|
|
819
|
+
}) : M(W, {
|
|
809
820
|
attrs: {
|
|
810
821
|
position: e.position,
|
|
811
822
|
content: n.value,
|
|
812
823
|
anchor: "bottom-center"
|
|
813
824
|
}
|
|
814
825
|
});
|
|
815
|
-
}),
|
|
826
|
+
}), pa = v(function(e) {
|
|
816
827
|
const n = L(() => {
|
|
817
|
-
var
|
|
818
|
-
return
|
|
819
|
-
class:
|
|
828
|
+
var a;
|
|
829
|
+
return T("div", {
|
|
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" ?
|
|
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
|
-
})
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
() => {
|
|
864
|
-
const { path: a, extData: o, draggable: r, ...s } = e;
|
|
865
|
-
return s;
|
|
866
|
-
},
|
|
867
|
-
(a) => {
|
|
868
|
-
var o;
|
|
869
|
-
(o = n.value) == null || o.setOptions({ ...a });
|
|
870
|
-
}
|
|
871
|
-
), () => null;
|
|
872
|
-
}), ie = y(function(e) {
|
|
873
|
-
const n = w(), i = Se();
|
|
874
|
-
return Ie(() => {
|
|
875
|
-
n.value = new google.maps.Polyline({ ...e });
|
|
876
|
-
}), Me(() => {
|
|
877
|
-
var a;
|
|
878
|
-
(a = n.value) == null || a.setMap(null);
|
|
879
|
-
}), k(() => {
|
|
880
|
-
var o;
|
|
881
|
-
const a = i == null ? void 0 : i.value;
|
|
882
|
-
a && ((o = n.value) == null || o.setMap(a));
|
|
883
|
-
}), ne(
|
|
884
|
-
() => ({ ...e }),
|
|
885
|
-
(a) => {
|
|
886
|
-
var o;
|
|
887
|
-
(o = n.value) == null || o.setOptions({ ...a });
|
|
858
|
+
});
|
|
859
|
+
var Se = {}, va = {
|
|
860
|
+
get exports() {
|
|
861
|
+
return Se;
|
|
862
|
+
},
|
|
863
|
+
set exports(t) {
|
|
864
|
+
Se = t;
|
|
865
|
+
}
|
|
866
|
+
};
|
|
867
|
+
(function(t, e) {
|
|
868
|
+
(function(n, a) {
|
|
869
|
+
t.exports = a();
|
|
870
|
+
})(bn, function() {
|
|
871
|
+
function n(c) {
|
|
872
|
+
var g = [];
|
|
873
|
+
return c.AMapUI && g.push(a(c.AMapUI)), c.Loca && g.push(i(c.Loca)), Promise.all(g);
|
|
888
874
|
}
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
}
|
|
922
|
-
}), m(K, {
|
|
923
|
-
attrs: {
|
|
924
|
-
showDir: !0,
|
|
925
|
-
path: e.path,
|
|
926
|
-
strokeWeight: i + 2 * o,
|
|
927
|
-
strokeOpacity: 1,
|
|
928
|
-
strokeColor: "transparent",
|
|
929
|
-
lineJoin: "round",
|
|
930
|
-
lineCap: "round"
|
|
931
|
-
}
|
|
932
|
-
})]);
|
|
933
|
-
};
|
|
934
|
-
}), aa = y(function(e) {
|
|
935
|
-
const n = L(() => e.path.map(C));
|
|
936
|
-
return () => {
|
|
937
|
-
const i = window.innerWidth * 0.01, a = 10 * i, o = 2.5 * i, r = 0.35 * i, s = 0.75 * i, u = 1 * i, l = e.done ? "#96B2CA" : "#487BF4", d = e.done ? "#7693AF" : "#4175F1", c = e.done ? "#7693AF" : "#6C95F5";
|
|
938
|
-
return m("div", [m(ie, {
|
|
939
|
-
attrs: {
|
|
940
|
-
path: n.value,
|
|
941
|
-
strokeWeight: o + 2 * r + 2 * u,
|
|
942
|
-
strokeOpacity: 1,
|
|
943
|
-
strokeColor: d
|
|
944
|
-
}
|
|
945
|
-
}), m(ie, {
|
|
946
|
-
attrs: {
|
|
947
|
-
path: n.value,
|
|
948
|
-
icons: [{
|
|
949
|
-
icon: {
|
|
950
|
-
path: "M 0,-0.5 0,0.5",
|
|
951
|
-
strokeWeight: o + 2 * r,
|
|
952
|
-
strokeColor: c,
|
|
953
|
-
fillColor: c,
|
|
954
|
-
scale: 1
|
|
955
|
-
},
|
|
956
|
-
repeat: `${o}px`,
|
|
957
|
-
offset: `${o / 2}px`
|
|
958
|
-
}]
|
|
959
|
-
}
|
|
960
|
-
}), m(ie, {
|
|
961
|
-
attrs: {
|
|
962
|
-
path: n.value,
|
|
963
|
-
strokeWeight: o,
|
|
964
|
-
strokeOpacity: 1,
|
|
965
|
-
strokeColor: l,
|
|
966
|
-
icons: [{
|
|
967
|
-
icon: {
|
|
968
|
-
path: google.maps.SymbolPath.FORWARD_OPEN_ARROW,
|
|
969
|
-
strokeColor: "white",
|
|
970
|
-
strokeWeight: s,
|
|
971
|
-
// todo: 3 maybe not responsive
|
|
972
|
-
scale: 3
|
|
973
|
-
},
|
|
974
|
-
repeat: `${a}px`
|
|
975
|
-
}]
|
|
976
|
-
}
|
|
977
|
-
})]);
|
|
978
|
-
};
|
|
979
|
-
}), co = y(function(e) {
|
|
980
|
-
const n = j();
|
|
981
|
-
return () => e.path.length ? E(n.supplier === "gmap" ? aa : ia, {
|
|
982
|
-
attrs: e
|
|
983
|
-
}) : null;
|
|
984
|
-
}), Ot = (t) => {
|
|
985
|
-
const e = x({ path: [], distance: 0, duration: 0 }), n = new AMap.Driving({});
|
|
986
|
-
return J(
|
|
987
|
-
() => ({ ...t }),
|
|
988
|
-
({ from: i, to: a }) => {
|
|
989
|
-
n.search(
|
|
990
|
-
AMap.LngLat.from(i),
|
|
991
|
-
AMap.LngLat.from(a),
|
|
992
|
-
{ waypoints: [] },
|
|
993
|
-
(o, r) => {
|
|
994
|
-
switch (o) {
|
|
995
|
-
case "complete": {
|
|
996
|
-
let s = [];
|
|
997
|
-
const l = r.routes[0];
|
|
998
|
-
for (const d of l.steps) {
|
|
999
|
-
const g = d.path.map(({ lng: I, lat: M }) => [I, M]);
|
|
1000
|
-
s = s.concat(g);
|
|
1001
|
-
}
|
|
1002
|
-
e.path = s, e.distance = l.distance, e.duration = l.time;
|
|
1003
|
-
return;
|
|
875
|
+
function a(c) {
|
|
876
|
+
return new Promise(function(g, I) {
|
|
877
|
+
var m = [];
|
|
878
|
+
if (c.plugins)
|
|
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)
|
|
882
|
+
I("前次请求 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)
|
|
890
|
+
window.AMapUI.loadUI(m, function() {
|
|
891
|
+
for (var y = 0, h = m.length; y < h; y++) {
|
|
892
|
+
var z = m[y].split("/").slice(-1)[0];
|
|
893
|
+
window.AMapUI[z] = arguments[y];
|
|
894
|
+
}
|
|
895
|
+
for (g(); u.AMapUI.length; )
|
|
896
|
+
u.AMapUI.splice(0, 1)[0]();
|
|
897
|
+
});
|
|
898
|
+
else
|
|
899
|
+
for (g(); u.AMapUI.length; )
|
|
900
|
+
u.AMapUI.splice(0, 1)[0]();
|
|
901
|
+
}, f.appendChild(j);
|
|
902
|
+
} else
|
|
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++) {
|
|
905
|
+
var z = m[y].split("/").slice(-1)[0];
|
|
906
|
+
window.AMapUI[z] = arguments[y];
|
|
1004
907
|
}
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
908
|
+
g();
|
|
909
|
+
}) : g() : c.version && c.version !== o.AMapUI.version ? I("不允许多个版本 AMapUI 混用") : u.AMapUI.push(function(y) {
|
|
910
|
+
y ? I(y) : m.length ? window.AMapUI.loadUI(m, function() {
|
|
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];
|
|
914
|
+
}
|
|
915
|
+
g();
|
|
916
|
+
}) : g();
|
|
917
|
+
});
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
function i(c) {
|
|
921
|
+
return new Promise(function(g, I) {
|
|
922
|
+
if (s.Loca === r.failed)
|
|
923
|
+
I("前次请求 Loca 失败");
|
|
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)
|
|
928
|
+
I("JSAPI 与 Loca 版本不对应!!");
|
|
929
|
+
else {
|
|
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; )
|
|
936
|
+
u.Loca.splice(0, 1)[0]();
|
|
937
|
+
}, f.appendChild(j);
|
|
1010
938
|
}
|
|
1011
|
-
}
|
|
1012
|
-
|
|
939
|
+
} else
|
|
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) {
|
|
941
|
+
y ? I(y) : I();
|
|
942
|
+
});
|
|
943
|
+
});
|
|
1013
944
|
}
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
(
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
945
|
+
if (!window)
|
|
946
|
+
throw Error("AMap JSAPI can only be used in Browser.");
|
|
947
|
+
var r;
|
|
948
|
+
(function(c) {
|
|
949
|
+
c.notload = "notload", c.loading = "loading", c.loaded = "loaded", c.failed = "failed";
|
|
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));
|
|
953
|
+
};
|
|
954
|
+
return { load: function(c) {
|
|
955
|
+
return new Promise(function(g, I) {
|
|
956
|
+
if (s.AMap == r.failed)
|
|
957
|
+
I("");
|
|
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) {
|
|
961
|
+
if (delete window.___onAPILoaded, y)
|
|
962
|
+
s.AMap = r.failed, I(y);
|
|
963
|
+
else
|
|
964
|
+
for (s.AMap = r.loaded, n(c).then(function() {
|
|
965
|
+
g(window.AMap);
|
|
966
|
+
}).catch(I); l.length; )
|
|
967
|
+
l.splice(0, 1)[0]();
|
|
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)
|
|
973
|
+
I("多个不一致的 key");
|
|
974
|
+
else if (c.version && c.version !== o.AMap.version)
|
|
975
|
+
I("不允许多个版本 JSAPI 混用");
|
|
976
|
+
else {
|
|
977
|
+
if (m = [], c.plugins)
|
|
978
|
+
for (p = 0; p < c.plugins.length; p += 1)
|
|
979
|
+
o.AMap.plugins.indexOf(c.plugins[p]) == -1 && m.push(c.plugins[p]);
|
|
980
|
+
m.length ? window.AMap.plugin(m, function() {
|
|
981
|
+
n(c).then(function() {
|
|
982
|
+
g(window.AMap);
|
|
983
|
+
}).catch(I);
|
|
984
|
+
}) : n(c).then(function() {
|
|
985
|
+
g(window.AMap);
|
|
986
|
+
}).catch(I);
|
|
1047
987
|
}
|
|
988
|
+
else if (c.key && c.key !== o.key)
|
|
989
|
+
I("多个不一致的 key");
|
|
990
|
+
else if (c.version && c.version !== o.AMap.version)
|
|
991
|
+
I("不允许多个版本 JSAPI 混用");
|
|
992
|
+
else {
|
|
993
|
+
var j = [];
|
|
994
|
+
if (c.plugins)
|
|
995
|
+
for (p = 0; p < c.plugins.length; p += 1)
|
|
996
|
+
o.AMap.plugins.indexOf(c.plugins[p]) == -1 && j.push(c.plugins[p]);
|
|
997
|
+
d(function() {
|
|
998
|
+
j.length ? window.AMap.plugin(j, function() {
|
|
999
|
+
n(c).then(function() {
|
|
1000
|
+
g(window.AMap);
|
|
1001
|
+
}).catch(I);
|
|
1002
|
+
}) : n(c).then(function() {
|
|
1003
|
+
g(window.AMap);
|
|
1004
|
+
}).catch(I);
|
|
1005
|
+
});
|
|
1048
1006
|
}
|
|
1049
|
-
);
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
},
|
|
1056
|
-
|
|
1057
|
-
return 0;
|
|
1058
|
-
const { x: i, y: a } = n.lngLatToContainer(t), { x: o, y: r } = n.lngLatToContainer(e), s = Math.atan2(a - r, o - i);
|
|
1059
|
-
return (Math.PI / 2 - s) / Math.PI * 180;
|
|
1060
|
-
}, Ut = (t) => L(() => {
|
|
1061
|
-
const { map: e, path: n } = t, [i, a] = n;
|
|
1062
|
-
if (!(!i || !a || !e))
|
|
1063
|
-
return oa(i, a, e);
|
|
1064
|
-
}), Bt = (t) => L(() => {
|
|
1065
|
-
const { path: e } = t, [n, i] = e;
|
|
1066
|
-
if (!(!n || !i))
|
|
1067
|
-
return google.maps.geometry.spherical.computeHeading(C(n), C(i));
|
|
1068
|
-
}), lo = (t) => {
|
|
1069
|
-
const { supplier: e } = j();
|
|
1070
|
-
return e === "gmap" ? Bt(t) : Ut(t);
|
|
1071
|
-
}, ra = y(function(e, {
|
|
1072
|
-
slots: n
|
|
1073
|
-
}) {
|
|
1074
|
-
const i = Ne(), {
|
|
1075
|
-
path: a,
|
|
1076
|
-
distance: o,
|
|
1077
|
-
duration: r
|
|
1078
|
-
} = _e(Ot(e)), s = Ut(x({
|
|
1079
|
-
path: a,
|
|
1080
|
-
map: i
|
|
1081
|
-
}));
|
|
1082
|
-
return () => {
|
|
1083
|
-
var u;
|
|
1084
|
-
return m("div", [(u = n.render) == null ? void 0 : u.call(n, x({
|
|
1085
|
-
path: a,
|
|
1086
|
-
angle: s,
|
|
1087
|
-
distance: o,
|
|
1088
|
-
duration: r
|
|
1089
|
-
}))]);
|
|
1090
|
-
};
|
|
1091
|
-
}), sa = y(function(e, {
|
|
1092
|
-
slots: n
|
|
1093
|
-
}) {
|
|
1094
|
-
const i = Se(), {
|
|
1095
|
-
path: a,
|
|
1096
|
-
distance: o,
|
|
1097
|
-
duration: r
|
|
1098
|
-
} = _e(Wt(e)), s = Bt(x({
|
|
1099
|
-
path: a,
|
|
1100
|
-
map: i
|
|
1101
|
-
}));
|
|
1102
|
-
return () => {
|
|
1103
|
-
var u;
|
|
1104
|
-
return m("div", [(u = n.render) == null ? void 0 : u.call(n, x({
|
|
1105
|
-
path: a,
|
|
1106
|
-
angle: s,
|
|
1107
|
-
distance: o,
|
|
1108
|
-
duration: r
|
|
1109
|
-
}))]);
|
|
1110
|
-
};
|
|
1111
|
-
}), go = y(function(e, {
|
|
1112
|
-
slots: n
|
|
1113
|
-
}) {
|
|
1114
|
-
const {
|
|
1115
|
-
supplier: i
|
|
1116
|
-
} = j();
|
|
1117
|
-
return () => E(i === "gmap" ? sa : ra, {
|
|
1118
|
-
attrs: e,
|
|
1119
|
-
scopedSlots: n
|
|
1007
|
+
});
|
|
1008
|
+
}, reset: function() {
|
|
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
|
|
1013
|
+
}, u = { AMap: [], AMapUI: [], Loca: [] };
|
|
1014
|
+
} };
|
|
1120
1015
|
});
|
|
1121
|
-
})
|
|
1122
|
-
function
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
return
|
|
1136
|
-
}
|
|
1016
|
+
})(va);
|
|
1017
|
+
var ya = function t(e, n) {
|
|
1018
|
+
if (e === n)
|
|
1019
|
+
return !0;
|
|
1020
|
+
if (e && n && typeof e == "object" && typeof n == "object") {
|
|
1021
|
+
if (e.constructor !== n.constructor)
|
|
1022
|
+
return !1;
|
|
1023
|
+
var a, i, r;
|
|
1024
|
+
if (Array.isArray(e)) {
|
|
1025
|
+
if (a = e.length, a != n.length)
|
|
1026
|
+
return !1;
|
|
1027
|
+
for (i = a; i-- !== 0; )
|
|
1028
|
+
if (!t(e[i], n[i]))
|
|
1029
|
+
return !1;
|
|
1030
|
+
return !0;
|
|
1031
|
+
}
|
|
1032
|
+
if (e.constructor === RegExp)
|
|
1033
|
+
return e.source === n.source && e.flags === n.flags;
|
|
1034
|
+
if (e.valueOf !== Object.prototype.valueOf)
|
|
1035
|
+
return e.valueOf() === n.valueOf();
|
|
1036
|
+
if (e.toString !== Object.prototype.toString)
|
|
1037
|
+
return e.toString() === n.toString();
|
|
1038
|
+
if (r = Object.keys(e), a = r.length, a !== Object.keys(n).length)
|
|
1039
|
+
return !1;
|
|
1040
|
+
for (i = a; i-- !== 0; )
|
|
1041
|
+
if (!Object.prototype.hasOwnProperty.call(n, r[i]))
|
|
1042
|
+
return !1;
|
|
1043
|
+
for (i = a; i-- !== 0; ) {
|
|
1044
|
+
var o = r[i];
|
|
1045
|
+
if (!t(e[o], n[o]))
|
|
1046
|
+
return !1;
|
|
1047
|
+
}
|
|
1048
|
+
return !0;
|
|
1137
1049
|
}
|
|
1138
|
-
return n;
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1050
|
+
return e !== e && n !== n;
|
|
1051
|
+
};
|
|
1052
|
+
const qe = "__googleMapsScriptId";
|
|
1053
|
+
var F;
|
|
1054
|
+
(function(t) {
|
|
1055
|
+
t[t.INITIALIZED = 0] = "INITIALIZED", t[t.LOADING = 1] = "LOADING", t[t.SUCCESS = 2] = "SUCCESS", t[t.FAILURE = 3] = "FAILURE";
|
|
1056
|
+
})(F || (F = {}));
|
|
1057
|
+
class V {
|
|
1058
|
+
/**
|
|
1059
|
+
* Creates an instance of Loader using [[LoaderOptions]]. No defaults are set
|
|
1060
|
+
* using this library, instead the defaults are set by the Google Maps
|
|
1061
|
+
* JavaScript API server.
|
|
1062
|
+
*
|
|
1063
|
+
* ```
|
|
1064
|
+
* const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
|
|
1065
|
+
* ```
|
|
1066
|
+
*/
|
|
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))
|
|
1070
|
+
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(V.instance.options)}`);
|
|
1071
|
+
return V.instance;
|
|
1072
|
+
}
|
|
1073
|
+
V.instance = this;
|
|
1074
|
+
}
|
|
1075
|
+
get options() {
|
|
1076
|
+
return {
|
|
1077
|
+
version: this.version,
|
|
1078
|
+
apiKey: this.apiKey,
|
|
1079
|
+
channel: this.channel,
|
|
1080
|
+
client: this.client,
|
|
1081
|
+
id: this.id,
|
|
1082
|
+
libraries: this.libraries,
|
|
1083
|
+
language: this.language,
|
|
1084
|
+
region: this.region,
|
|
1085
|
+
mapIds: this.mapIds,
|
|
1086
|
+
nonce: this.nonce,
|
|
1087
|
+
url: this.url,
|
|
1088
|
+
authReferrerPolicy: this.authReferrerPolicy
|
|
1089
|
+
};
|
|
1090
|
+
}
|
|
1091
|
+
get status() {
|
|
1092
|
+
return this.errors.length ? F.FAILURE : this.done ? F.SUCCESS : this.loading ? F.LOADING : F.INITIALIZED;
|
|
1093
|
+
}
|
|
1094
|
+
get failed() {
|
|
1095
|
+
return this.done && !this.loading && this.errors.length >= this.retries + 1;
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* CreateUrl returns the Google Maps JavaScript API script url given the [[LoaderOptions]].
|
|
1099
|
+
*
|
|
1100
|
+
* @ignore
|
|
1101
|
+
*/
|
|
1102
|
+
createUrl() {
|
|
1103
|
+
let e = this.url;
|
|
1104
|
+
return e += `?callback=${this.CALLBACK}`, this.apiKey && (e += `&key=${this.apiKey}`), this.channel && (e += `&channel=${this.channel}`), this.client && (e += `&client=${this.client}`), this.libraries.length > 0 && (e += `&libraries=${this.libraries.join(",")}`), this.language && (e += `&language=${this.language}`), this.region && (e += `®ion=${this.region}`), this.version && (e += `&v=${this.version}`), this.mapIds && (e += `&map_ids=${this.mapIds.join(",")}`), this.authReferrerPolicy && (e += `&auth_referrer_policy=${this.authReferrerPolicy}`), e;
|
|
1105
|
+
}
|
|
1106
|
+
deleteScript() {
|
|
1107
|
+
const e = document.getElementById(this.id);
|
|
1108
|
+
e && e.remove();
|
|
1109
|
+
}
|
|
1110
|
+
/**
|
|
1111
|
+
* Load the Google Maps JavaScript API script and return a Promise.
|
|
1112
|
+
*/
|
|
1113
|
+
load() {
|
|
1114
|
+
return this.loadPromise();
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Load the Google Maps JavaScript API script and return a Promise.
|
|
1118
|
+
*
|
|
1119
|
+
* @ignore
|
|
1120
|
+
*/
|
|
1121
|
+
loadPromise() {
|
|
1122
|
+
return new Promise((e, n) => {
|
|
1123
|
+
this.loadCallback((a) => {
|
|
1124
|
+
a ? n(a.error) : e(window.google);
|
|
1125
|
+
});
|
|
1147
1126
|
});
|
|
1148
1127
|
}
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
if (t[i] !== ((a = e[i]) !== null && a !== void 0 ? a : n[i]))
|
|
1155
|
-
return !1;
|
|
1128
|
+
/**
|
|
1129
|
+
* Load the Google Maps JavaScript API script with a callback.
|
|
1130
|
+
*/
|
|
1131
|
+
loadCallback(e) {
|
|
1132
|
+
this.callbacks.push(e), this.execute();
|
|
1156
1133
|
}
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
typeof s == "boolean" && (s = s === !0 ? "true" : "false");
|
|
1165
|
-
var u = (
|
|
1166
|
-
// @ts-expect-error
|
|
1167
|
-
t.variantClassNames[a][s]
|
|
1168
|
-
);
|
|
1169
|
-
u && (n += " " + u);
|
|
1134
|
+
/**
|
|
1135
|
+
* Set the script on document.
|
|
1136
|
+
*/
|
|
1137
|
+
setScript() {
|
|
1138
|
+
if (document.getElementById(this.id)) {
|
|
1139
|
+
this.callback();
|
|
1140
|
+
return;
|
|
1170
1141
|
}
|
|
1142
|
+
const e = this.createUrl(), n = document.createElement("script");
|
|
1143
|
+
n.id = this.id, n.type = "text/javascript", n.src = e, n.onerror = this.loadErrorCallback.bind(this), n.defer = !0, n.async = !0, this.nonce && (n.nonce = this.nonce), document.head.appendChild(n);
|
|
1171
1144
|
}
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1145
|
+
/**
|
|
1146
|
+
* Reset the loader state.
|
|
1147
|
+
*/
|
|
1148
|
+
reset() {
|
|
1149
|
+
this.deleteScript(), this.done = !1, this.loading = !1, this.errors = [], this.onerrorEvent = null;
|
|
1150
|
+
}
|
|
1151
|
+
resetIfRetryingFailed() {
|
|
1152
|
+
this.failed && this.reset();
|
|
1153
|
+
}
|
|
1154
|
+
loadErrorCallback(e) {
|
|
1155
|
+
if (this.errors.push(e), this.errors.length <= this.retries) {
|
|
1156
|
+
const n = this.errors.length * Math.pow(2, this.errors.length);
|
|
1157
|
+
console.log(`Failed to load Google Maps script, retrying in ${n} ms.`), setTimeout(() => {
|
|
1158
|
+
this.deleteScript(), this.setScript();
|
|
1159
|
+
}, n);
|
|
1160
|
+
} else
|
|
1161
|
+
this.onerrorEvent = e, this.callback();
|
|
1162
|
+
}
|
|
1163
|
+
setCallback() {
|
|
1164
|
+
window.__googleMapsCallback = this.callback.bind(this);
|
|
1165
|
+
}
|
|
1166
|
+
callback() {
|
|
1167
|
+
this.done = !0, this.loading = !1, this.callbacks.forEach((e) => {
|
|
1168
|
+
e(this.onerrorEvent);
|
|
1169
|
+
}), this.callbacks = [];
|
|
1170
|
+
}
|
|
1171
|
+
execute() {
|
|
1172
|
+
if (this.resetIfRetryingFailed(), this.done)
|
|
1173
|
+
this.callback();
|
|
1174
|
+
else {
|
|
1175
|
+
if (window.google && window.google.maps && window.google.maps.version) {
|
|
1176
|
+
console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."), this.callback();
|
|
1177
|
+
return;
|
|
1178
|
+
}
|
|
1179
|
+
this.loading || (this.loading = !0, this.setCallback(), this.setScript());
|
|
1192
1180
|
}
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
const ja = [
|
|
1184
|
+
"AMap.Geolocation",
|
|
1185
|
+
"AMap.Geocoder",
|
|
1186
|
+
"AMap.PlaceSearch",
|
|
1187
|
+
"AMap.Driving",
|
|
1188
|
+
"AMap.Walking"
|
|
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) => {
|
|
1192
|
+
const { onChange: e } = t;
|
|
1193
|
+
let n, a;
|
|
1194
|
+
const i = new Promise((s, u) => {
|
|
1195
|
+
n = s, a = u;
|
|
1196
|
+
}), r = P(
|
|
1197
|
+
"LOADING"
|
|
1198
|
+
/* LOADING */
|
|
1199
|
+
), o = L(() => {
|
|
1200
|
+
const { onChange: s, loading: u, fallback: l, apiKey: d, apiSecret: c, apiServiceHost: g, version: I, ...m } = t;
|
|
1201
|
+
return { ...m, key: d, version: I != null ? I : "2.0.5.16" };
|
|
1193
1202
|
});
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1203
|
+
return q(
|
|
1204
|
+
() => o.value,
|
|
1205
|
+
(s) => {
|
|
1206
|
+
const u = (l) => {
|
|
1207
|
+
r.value = l, l === "SUCCESS" && n(), l === "FAILURE" && a(), e == null || e(r.value);
|
|
1208
|
+
};
|
|
1209
|
+
u(
|
|
1210
|
+
"LOADING"
|
|
1211
|
+
/* LOADING */
|
|
1212
|
+
), window._AMapSecurityConfig = t.apiServiceHost ? {
|
|
1213
|
+
serviceHost: t.apiServiceHost
|
|
1214
|
+
} : { securityJsCode: t.apiSecret }, Se.load(s).then(
|
|
1215
|
+
() => u(
|
|
1216
|
+
"SUCCESS"
|
|
1217
|
+
/* SUCCESS */
|
|
1218
|
+
),
|
|
1219
|
+
() => u(
|
|
1220
|
+
"FAILURE"
|
|
1221
|
+
/* FAILURE */
|
|
1222
|
+
)
|
|
1223
|
+
);
|
|
1210
1224
|
}
|
|
1225
|
+
), { statusRef: r, readyPromise: i };
|
|
1226
|
+
}, Na = (t) => {
|
|
1227
|
+
const { onChange: e } = t;
|
|
1228
|
+
let n, a;
|
|
1229
|
+
const i = new Promise((s, u) => {
|
|
1230
|
+
n = s, a = u;
|
|
1231
|
+
}), r = P(
|
|
1232
|
+
"LOADING"
|
|
1233
|
+
/* LOADING */
|
|
1234
|
+
), o = L(() => {
|
|
1235
|
+
const { onChange: s, fallback: u, loading: l, ...d } = t;
|
|
1236
|
+
return d;
|
|
1211
1237
|
});
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
})}">
|
|
1232
|
-
<img class="${se({
|
|
1233
|
-
hideIcon: o
|
|
1234
|
-
})} ${Je({
|
|
1235
|
-
textAlign: n.value
|
|
1236
|
-
})}" src="${T}">
|
|
1237
|
-
<div class="${Vt}">${e.label}</div>
|
|
1238
|
-
</div>
|
|
1239
|
-
`;
|
|
1240
|
-
}), a = L(() => {
|
|
1241
|
-
const {
|
|
1242
|
-
hideIcon: o = !1
|
|
1243
|
-
} = e;
|
|
1244
|
-
return `<img class="${se({
|
|
1245
|
-
hideIcon: o
|
|
1246
|
-
})} ${Je({
|
|
1247
|
-
textAlign: n.value
|
|
1248
|
-
})}" src="${T}">`;
|
|
1249
|
-
});
|
|
1250
|
-
return () => m(R, {
|
|
1251
|
-
attrs: {
|
|
1252
|
-
position: e.position,
|
|
1253
|
-
content: e.label ? i.value : a.value,
|
|
1254
|
-
anchor: n.value === "left" ? ye.middleRight : ye.middleLeft
|
|
1238
|
+
return q(
|
|
1239
|
+
() => o.value,
|
|
1240
|
+
(s) => {
|
|
1241
|
+
const u = new V(s), l = (d) => {
|
|
1242
|
+
r.value = d, d === "SUCCESS" && n(), d === "FAILURE" && a(), e == null || e(r.value);
|
|
1243
|
+
};
|
|
1244
|
+
l(
|
|
1245
|
+
"LOADING"
|
|
1246
|
+
/* LOADING */
|
|
1247
|
+
), u.load().then(
|
|
1248
|
+
() => l(
|
|
1249
|
+
"SUCCESS"
|
|
1250
|
+
/* SUCCESS */
|
|
1251
|
+
),
|
|
1252
|
+
() => l(
|
|
1253
|
+
"FAILURE"
|
|
1254
|
+
/* FAILURE */
|
|
1255
|
+
)
|
|
1256
|
+
);
|
|
1255
1257
|
}
|
|
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({
|
|
1262
|
+
apiKey: e,
|
|
1263
|
+
language: o,
|
|
1264
|
+
version: "beta",
|
|
1265
|
+
libraries: Aa,
|
|
1266
|
+
onChange: s
|
|
1267
|
+
}) : La({
|
|
1268
|
+
apiKey: n,
|
|
1269
|
+
apiSecret: a,
|
|
1270
|
+
apiServiceHost: i,
|
|
1271
|
+
plugins: ja,
|
|
1272
|
+
onChange: s
|
|
1256
1273
|
});
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
const {
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
});
|
|
1290
|
-
return () => m(G, {
|
|
1291
|
-
attrs: {
|
|
1292
|
-
position: C(e.position),
|
|
1293
|
-
content: e.label ? i.value : a.value
|
|
1294
|
-
}
|
|
1295
|
-
});
|
|
1296
|
-
}).props(["hideIcon", "label", "position", "textAlign"]), Ma = y(function(e) {
|
|
1297
|
-
const n = j();
|
|
1298
|
-
return () => E(n.supplier === "gmap" ? Ia : ga, {
|
|
1299
|
-
attrs: e
|
|
1300
|
-
});
|
|
1301
|
-
}), Mo = y(function(e) {
|
|
1302
|
-
return () => m("div", [e.places.map((n) => m(Ma, {
|
|
1303
|
-
attrs: {
|
|
1304
|
-
position: ve(n),
|
|
1305
|
-
label: n.name,
|
|
1306
|
-
textAlign: "left"
|
|
1307
|
-
}
|
|
1308
|
-
}))]);
|
|
1309
|
-
}), Jt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9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Bmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
|
|
1310
|
-
var H = X({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] }), Ft = "_4a4ovk1", $t = "_4a4ovk4", _t = "_4a4ovk5", Kt = "_4a4ovk3", ce = "_4a4ovk0", qt = "_4a4ovk2";
|
|
1311
|
-
const fa = Q(function(e) {
|
|
1312
|
-
const n = L(() => {
|
|
1313
|
-
var o;
|
|
1314
|
-
const i = e.type === "start" ? Xt : Jt, a = e.description ? fe(e.description).map((r) => r.type === "normal" ? r.value : `<span class="${_t}">${r.value}</span>`).join("") : "";
|
|
1315
|
-
return !e.description && !e.title ? `<img src="${i}" class="${H({
|
|
1316
|
-
type: e.type
|
|
1317
|
-
})}">` : e.description ? `
|
|
1318
|
-
<div class="${ce}">
|
|
1319
|
-
<div class="${Ft}">
|
|
1320
|
-
<div class="${Kt}">${(o = e.title) != null ? o : ""}</div>
|
|
1321
|
-
<div class="${$t}">${a}</div>
|
|
1322
|
-
</div>
|
|
1323
|
-
<img src="${i}" class="${H({
|
|
1324
|
-
type: e.type
|
|
1325
|
-
})}">
|
|
1326
|
-
</div>
|
|
1327
|
-
` : `
|
|
1328
|
-
<div class="${ce}">
|
|
1329
|
-
<div class="${qt}">${e.title}</div>
|
|
1330
|
-
<img src="${i}" class="${H({
|
|
1331
|
-
type: e.type
|
|
1332
|
-
})}">
|
|
1333
|
-
</div>
|
|
1334
|
-
`;
|
|
1335
|
-
});
|
|
1336
|
-
return () => m(R, {
|
|
1337
|
-
attrs: {
|
|
1338
|
-
registerOverlay: e.registerOverlay,
|
|
1339
|
-
position: e.position,
|
|
1340
|
-
content: n.value,
|
|
1341
|
-
anchor: "bottom-center"
|
|
1274
|
+
};
|
|
1275
|
+
var ha = "_1d8ur7t0";
|
|
1276
|
+
const Da = v(function(e, { slots: n, emit: a }) {
|
|
1277
|
+
const {
|
|
1278
|
+
onDragStart: i,
|
|
1279
|
+
onDragEnd: r,
|
|
1280
|
+
mapRef: o,
|
|
1281
|
+
vectorMapForeign: s = "style_zh_cn",
|
|
1282
|
+
...u
|
|
1283
|
+
} = e, l = L(() => ({
|
|
1284
|
+
dragEnable: !!e.dragEnable,
|
|
1285
|
+
zoomEnable: !!e.zoomEnable,
|
|
1286
|
+
jogEnable: !!e.jogEnable,
|
|
1287
|
+
pitchEnable: !!e.pitchEnable,
|
|
1288
|
+
rotateEnable: !!e.rotateEnable,
|
|
1289
|
+
animateEnable: !!e.animateEnable,
|
|
1290
|
+
keyboardEnable: !!e.keyboardEnable
|
|
1291
|
+
})), d = P(), c = P();
|
|
1292
|
+
return Cn(c), B(() => {
|
|
1293
|
+
if (c.value || !d.value)
|
|
1294
|
+
return;
|
|
1295
|
+
const g = new AMap.Map(d.value, {
|
|
1296
|
+
...u,
|
|
1297
|
+
vectorMapForeign: s,
|
|
1298
|
+
mapStyle: "amap://styles/95498a904992a4c0b866a3e4d7729682"
|
|
1299
|
+
});
|
|
1300
|
+
c.value = g, o == null || o(g);
|
|
1301
|
+
}), se(
|
|
1302
|
+
() => l.value,
|
|
1303
|
+
(g) => {
|
|
1304
|
+
var I;
|
|
1305
|
+
(I = c.value) == null || I.setStatus(g);
|
|
1342
1306
|
}
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1307
|
+
), we(c, e, [
|
|
1308
|
+
{ name: "center", defaultValue: [0, 0] },
|
|
1309
|
+
{ name: "zooms", defaultValue: [0, 0] },
|
|
1310
|
+
{ name: "zoom", defaultValue: 0 },
|
|
1311
|
+
{ name: "layers", defaultValue: [] },
|
|
1312
|
+
{ name: "limitBounds", defaultValue: [] },
|
|
1313
|
+
{ name: "rotation", defaultValue: 0 },
|
|
1314
|
+
{ name: "defaultCursor", defaultValue: "" },
|
|
1315
|
+
{ name: "mapStyle", defaultValue: "" },
|
|
1316
|
+
{ name: "features", defaultValue: [] },
|
|
1317
|
+
{ name: "pitch", defaultValue: 0 },
|
|
1318
|
+
{ name: "mask", defaultValue: [] },
|
|
1319
|
+
{ name: "labelRejectMask", defaultValue: !1 }
|
|
1320
|
+
]), ae(c, e, a, ["onDragStart", "onDragEnd"]), () => {
|
|
1321
|
+
var g;
|
|
1322
|
+
return M("div", { ref: d, class: ha }, (g = n.default) == null ? void 0 : g.call(n));
|
|
1323
|
+
};
|
|
1324
|
+
});
|
|
1325
|
+
let ce = "user";
|
|
1326
|
+
const Ca = () => ce, Xt = () => ({ executeMapApi: (e) => {
|
|
1327
|
+
ce = "api";
|
|
1328
|
+
try {
|
|
1329
|
+
e(), setTimeout(() => {
|
|
1330
|
+
ce = "user";
|
|
1331
|
+
}, 100);
|
|
1332
|
+
} catch (n) {
|
|
1333
|
+
throw ce = "user", n;
|
|
1334
|
+
}
|
|
1335
|
+
} }), xa = v(function(e, { slots: n, emit: a }) {
|
|
1336
|
+
const i = e.mapRef, r = L(() => {
|
|
1337
|
+
const { mapRef: c, onDragStart: g, onDragEnd: I, ...m } = e;
|
|
1338
|
+
return m;
|
|
1339
|
+
}), o = r.value, s = P(), u = P(), { executeMapApi: l } = Xt(), d = (c) => a(c, { target: u.value });
|
|
1340
|
+
return xn(u), B(() => {
|
|
1341
|
+
if (u.value || !s.value)
|
|
1342
|
+
return;
|
|
1343
|
+
let c;
|
|
1344
|
+
l(() => {
|
|
1345
|
+
c = new google.maps.Map(s.value, { ...o });
|
|
1346
|
+
}), u.value = c, i == null || i(c);
|
|
1347
|
+
}), se(
|
|
1348
|
+
() => r.value,
|
|
1349
|
+
(c) => {
|
|
1350
|
+
l(() => {
|
|
1351
|
+
var g;
|
|
1352
|
+
return (g = u.value) == null ? void 0 : g.setOptions({ ...c });
|
|
1353
|
+
});
|
|
1377
1354
|
}
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
})
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
<div class="${tn}">
|
|
1392
|
-
<div class="${nn}">${i}</div>
|
|
1393
|
-
<img src="${ue}" class="${le}" style="${a}">
|
|
1394
|
-
</div>
|
|
1395
|
-
` : `<img src="${ue}" class="${le}" style="${a}">`;
|
|
1396
|
-
});
|
|
1397
|
-
return () => m(R, {
|
|
1398
|
-
attrs: {
|
|
1399
|
-
position: e.position,
|
|
1400
|
-
content: n.value,
|
|
1401
|
-
anchor: "bottom-center"
|
|
1355
|
+
), K(u, e, d, ["onDragStart", "onDragEnd"]), () => {
|
|
1356
|
+
var c;
|
|
1357
|
+
return M("div", { ref: s }, (c = n.default) == null ? void 0 : c.call(n));
|
|
1358
|
+
};
|
|
1359
|
+
}), Pr = J(function(e, {
|
|
1360
|
+
slots: n
|
|
1361
|
+
}) {
|
|
1362
|
+
const {
|
|
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);
|
|
1402
1368
|
}
|
|
1403
1369
|
});
|
|
1404
|
-
|
|
1405
|
-
const n = L(() => {
|
|
1370
|
+
return Dn(r), () => {
|
|
1406
1371
|
var o;
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
}
|
|
1430
|
-
}), ya = y(function(e) {
|
|
1372
|
+
return M("div", [(o = n.default) == null ? void 0 : o.call(n)]);
|
|
1373
|
+
};
|
|
1374
|
+
}).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier", "language"]), wa = J(function(e, {
|
|
1375
|
+
slots: n,
|
|
1376
|
+
emit: a
|
|
1377
|
+
}) {
|
|
1378
|
+
const i = A(), r = ({
|
|
1379
|
+
target: s
|
|
1380
|
+
}) => {
|
|
1381
|
+
const {
|
|
1382
|
+
lng: u,
|
|
1383
|
+
lat: l
|
|
1384
|
+
} = s.getCenter();
|
|
1385
|
+
a("dragEnd", [u(), l()]);
|
|
1386
|
+
}, o = ({
|
|
1387
|
+
target: s
|
|
1388
|
+
}) => {
|
|
1389
|
+
const {
|
|
1390
|
+
lng: u,
|
|
1391
|
+
lat: l
|
|
1392
|
+
} = s.getCenter();
|
|
1393
|
+
a("dragEnd", [u, l]);
|
|
1394
|
+
};
|
|
1431
1395
|
return () => {
|
|
1396
|
+
var p, f, j;
|
|
1432
1397
|
const {
|
|
1433
|
-
|
|
1398
|
+
supplier: s,
|
|
1399
|
+
gmapId: u,
|
|
1400
|
+
language: l = "zh",
|
|
1401
|
+
status: d
|
|
1402
|
+
} = i, {
|
|
1403
|
+
mapRef: c,
|
|
1404
|
+
center: g,
|
|
1405
|
+
zoom: I
|
|
1434
1406
|
} = e;
|
|
1435
|
-
if (
|
|
1436
|
-
return null;
|
|
1437
|
-
|
|
1438
|
-
|
|
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);
|
|
1412
|
+
switch (s) {
|
|
1413
|
+
case "gmap":
|
|
1414
|
+
return M(xa, {
|
|
1415
|
+
attrs: {
|
|
1416
|
+
mapRef: c,
|
|
1417
|
+
mapId: u,
|
|
1418
|
+
center: g ? w(g) : void 0,
|
|
1419
|
+
zoom: I
|
|
1420
|
+
},
|
|
1421
|
+
on: {
|
|
1422
|
+
dragEnd: r
|
|
1423
|
+
}
|
|
1424
|
+
}, [m]);
|
|
1425
|
+
default:
|
|
1426
|
+
return M(Da, {
|
|
1427
|
+
attrs: {
|
|
1428
|
+
mapRef: c,
|
|
1429
|
+
vectorMapForeign: ga(l),
|
|
1430
|
+
center: g,
|
|
1431
|
+
zoom: I
|
|
1432
|
+
},
|
|
1433
|
+
on: {
|
|
1434
|
+
dragEnd: o
|
|
1435
|
+
}
|
|
1436
|
+
}, [m]);
|
|
1437
|
+
}
|
|
1438
|
+
};
|
|
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({
|
|
1442
|
+
accuracy: 0,
|
|
1443
|
+
altitude: 0,
|
|
1444
|
+
altitudeAccuracy: 0,
|
|
1445
|
+
heading: 0,
|
|
1446
|
+
latitude: (d = i == null ? void 0 : i[1]) != null ? d : 0,
|
|
1447
|
+
longitude: (c = i == null ? void 0 : i[0]) != null ? c : 0,
|
|
1448
|
+
speed: 0
|
|
1449
|
+
}), l = D([u.value.longitude, u.value.latitude]);
|
|
1450
|
+
return b(
|
|
1451
|
+
() => !0,
|
|
1452
|
+
(g, I, m) => {
|
|
1453
|
+
r.value = !0;
|
|
1454
|
+
const p = navigator.geolocation.watchPosition(
|
|
1455
|
+
(f) => {
|
|
1456
|
+
const j = f.coords, y = [f.coords.longitude, f.coords.latitude];
|
|
1457
|
+
u.value = j, l.value = y, r.value && (r.value = !1, o.value = !0, n == null || n({ position: y, coordinate: j })), e == null || e({ position: y, coordinate: j });
|
|
1458
|
+
},
|
|
1459
|
+
(f) => {
|
|
1460
|
+
r.value = !1, s.value = f;
|
|
1461
|
+
const j = t == null ? void 0 : t.geoDefaultPosition;
|
|
1462
|
+
j && (a == null || a({ position: j })), console.log("errorRef = ", s);
|
|
1463
|
+
},
|
|
1464
|
+
// todo 要不要 timeout
|
|
1465
|
+
{ timeout: 5e3, maximumAge: 0, enableHighAccuracy: !0 }
|
|
1466
|
+
);
|
|
1467
|
+
m(() => navigator.geolocation.clearWatch(p));
|
|
1468
|
+
},
|
|
1469
|
+
{ immediate: !0 }
|
|
1470
|
+
), {
|
|
1471
|
+
geoError: s,
|
|
1472
|
+
geoPosition: l,
|
|
1473
|
+
geoCoordinate: u,
|
|
1474
|
+
geoLoading: r,
|
|
1475
|
+
geoReady: o
|
|
1476
|
+
};
|
|
1477
|
+
}, ie = v(function(e) {
|
|
1478
|
+
const n = P(), a = ye();
|
|
1479
|
+
return pe(() => {
|
|
1480
|
+
n.value = new AMap.Polyline({ ...e });
|
|
1481
|
+
}), ve(() => {
|
|
1482
|
+
var i;
|
|
1483
|
+
(i = n.value) == null || i.setMap(null);
|
|
1484
|
+
}), B(() => {
|
|
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, [
|
|
1489
|
+
{ name: "path", defaultValue: [[0, 0]] },
|
|
1490
|
+
{ name: "extData", defaultValue: void 0 },
|
|
1491
|
+
{ name: "draggable", defaultValue: !1 }
|
|
1492
|
+
]), se(
|
|
1493
|
+
() => {
|
|
1494
|
+
const { path: i, extData: r, draggable: o, ...s } = e;
|
|
1495
|
+
return s;
|
|
1496
|
+
},
|
|
1497
|
+
(i) => {
|
|
1498
|
+
var r;
|
|
1499
|
+
(r = n.value) == null || r.setOptions({ ...i });
|
|
1500
|
+
}
|
|
1501
|
+
), () => null;
|
|
1502
|
+
}), ue = v(function(e) {
|
|
1503
|
+
const n = P(), a = je();
|
|
1504
|
+
return pe(() => {
|
|
1505
|
+
n.value = new google.maps.Polyline({ ...e });
|
|
1506
|
+
}), ve(() => {
|
|
1507
|
+
var i;
|
|
1508
|
+
(i = n.value) == null || i.setMap(null);
|
|
1509
|
+
}), B(() => {
|
|
1510
|
+
var r;
|
|
1511
|
+
const i = a == null ? void 0 : a.value;
|
|
1512
|
+
i && ((r = n.value) == null || r.setMap(i));
|
|
1513
|
+
}), se(
|
|
1514
|
+
() => ({ ...e }),
|
|
1515
|
+
(i) => {
|
|
1516
|
+
var r;
|
|
1517
|
+
(r = n.value) == null || r.setOptions({ ...i });
|
|
1518
|
+
}
|
|
1519
|
+
), () => null;
|
|
1520
|
+
}), ba = v(function(e) {
|
|
1521
|
+
return () => {
|
|
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, {
|
|
1439
1524
|
attrs: {
|
|
1440
|
-
path:
|
|
1441
|
-
strokeWeight: a,
|
|
1525
|
+
path: e.path,
|
|
1526
|
+
strokeWeight: a + 2 * i + 2 * o,
|
|
1442
1527
|
strokeOpacity: 1,
|
|
1443
|
-
strokeColor:
|
|
1528
|
+
strokeColor: l,
|
|
1529
|
+
lineJoin: "round",
|
|
1530
|
+
lineCap: "round"
|
|
1531
|
+
}
|
|
1532
|
+
}), M(ie, {
|
|
1533
|
+
attrs: {
|
|
1534
|
+
path: e.path,
|
|
1535
|
+
strokeWeight: a + 2 * i,
|
|
1536
|
+
strokeOpacity: 1,
|
|
1537
|
+
strokeColor: d,
|
|
1538
|
+
lineJoin: "round",
|
|
1539
|
+
lineCap: "round",
|
|
1444
1540
|
strokeStyle: "dashed",
|
|
1445
|
-
strokeDasharray: [
|
|
1541
|
+
strokeDasharray: [s, s * 0.5]
|
|
1542
|
+
}
|
|
1543
|
+
}), M(ie, {
|
|
1544
|
+
attrs: {
|
|
1545
|
+
path: e.path,
|
|
1546
|
+
strokeWeight: a,
|
|
1547
|
+
strokeOpacity: 1,
|
|
1548
|
+
strokeColor: u,
|
|
1446
1549
|
lineJoin: "round",
|
|
1447
1550
|
lineCap: "round"
|
|
1448
1551
|
}
|
|
1449
|
-
})
|
|
1552
|
+
}), M(ie, {
|
|
1553
|
+
attrs: {
|
|
1554
|
+
showDir: !0,
|
|
1555
|
+
path: e.path,
|
|
1556
|
+
strokeWeight: a + 2 * r,
|
|
1557
|
+
strokeOpacity: 1,
|
|
1558
|
+
strokeColor: "transparent",
|
|
1559
|
+
lineJoin: "round",
|
|
1560
|
+
lineCap: "round"
|
|
1561
|
+
}
|
|
1562
|
+
})]);
|
|
1450
1563
|
};
|
|
1451
|
-
}),
|
|
1452
|
-
const n = L(() => e.path.map(
|
|
1564
|
+
}), Pa = v(function(e) {
|
|
1565
|
+
const n = L(() => e.path.map(w));
|
|
1453
1566
|
return () => {
|
|
1454
|
-
const i =
|
|
1455
|
-
|
|
1456
|
-
return null;
|
|
1457
|
-
const o = 2 * (window.innerWidth * 0.01), r = o / 4;
|
|
1458
|
-
return m(ie, {
|
|
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, {
|
|
1459
1569
|
attrs: {
|
|
1460
|
-
path:
|
|
1461
|
-
strokeWeight: o,
|
|
1570
|
+
path: n.value,
|
|
1571
|
+
strokeWeight: r + 2 * o + 2 * u,
|
|
1462
1572
|
strokeOpacity: 1,
|
|
1463
|
-
strokeColor:
|
|
1573
|
+
strokeColor: d
|
|
1574
|
+
}
|
|
1575
|
+
}), M(ue, {
|
|
1576
|
+
attrs: {
|
|
1577
|
+
path: n.value,
|
|
1464
1578
|
icons: [{
|
|
1465
1579
|
icon: {
|
|
1466
|
-
path:
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
a ${r},${r} 0 1,0 -${2 * r},0
|
|
1471
|
-
`,
|
|
1472
|
-
strokeColor: "#38A3FE",
|
|
1473
|
-
fillColor: "#38A3FE",
|
|
1474
|
-
fillOpacity: 1,
|
|
1475
|
-
strokeOpacity: 1,
|
|
1476
|
-
strokeWeight: o / 2,
|
|
1580
|
+
path: "M 0,-0.5 0,0.5",
|
|
1581
|
+
strokeWeight: r + 2 * o,
|
|
1582
|
+
strokeColor: c,
|
|
1583
|
+
fillColor: c,
|
|
1477
1584
|
scale: 1
|
|
1478
1585
|
},
|
|
1479
|
-
repeat: `${
|
|
1586
|
+
repeat: `${r}px`,
|
|
1587
|
+
offset: `${r / 2}px`
|
|
1480
1588
|
}]
|
|
1481
1589
|
}
|
|
1482
|
-
})
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1590
|
+
}), M(ue, {
|
|
1591
|
+
attrs: {
|
|
1592
|
+
path: n.value,
|
|
1593
|
+
strokeWeight: r,
|
|
1594
|
+
strokeOpacity: 1,
|
|
1595
|
+
strokeColor: l,
|
|
1596
|
+
icons: [{
|
|
1597
|
+
icon: {
|
|
1598
|
+
path: google.maps.SymbolPath.FORWARD_OPEN_ARROW,
|
|
1599
|
+
strokeColor: "white",
|
|
1600
|
+
strokeWeight: s,
|
|
1601
|
+
// todo: 3 maybe not responsive
|
|
1602
|
+
scale: 3
|
|
1603
|
+
},
|
|
1604
|
+
repeat: `${i}px`
|
|
1605
|
+
}]
|
|
1606
|
+
}
|
|
1607
|
+
})]);
|
|
1608
|
+
};
|
|
1609
|
+
}), be = v(function(e) {
|
|
1610
|
+
const n = A();
|
|
1611
|
+
return () => e.path.length ? E(n.supplier === "gmap" ? Pa : ba, {
|
|
1612
|
+
attrs: e
|
|
1613
|
+
}) : null;
|
|
1614
|
+
}), $t = (t) => {
|
|
1615
|
+
const e = x({ path: [], distance: 0, duration: 0 }), n = new AMap.Driving({});
|
|
1616
|
+
return q(
|
|
1492
1617
|
() => ({ ...t }),
|
|
1493
|
-
({ from:
|
|
1494
|
-
n.search(
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1618
|
+
({ from: a, to: i }) => {
|
|
1619
|
+
n.search(
|
|
1620
|
+
AMap.LngLat.from(a),
|
|
1621
|
+
AMap.LngLat.from(i),
|
|
1622
|
+
{ waypoints: [] },
|
|
1623
|
+
(r, o) => {
|
|
1624
|
+
switch (r) {
|
|
1625
|
+
case "complete": {
|
|
1626
|
+
let s = [];
|
|
1627
|
+
const l = o.routes[0];
|
|
1500
1628
|
for (const d of l.steps) {
|
|
1501
|
-
const
|
|
1502
|
-
s = s.concat(
|
|
1629
|
+
const g = d.path.map(({ lng: I, lat: m }) => [I, m]);
|
|
1630
|
+
s = s.concat(g);
|
|
1503
1631
|
}
|
|
1504
|
-
|
|
1505
|
-
|
|
1632
|
+
e.path = s, e.distance = l.distance, e.duration = l.time;
|
|
1633
|
+
return;
|
|
1634
|
+
}
|
|
1635
|
+
case "no_data":
|
|
1636
|
+
e.path = [], e.distance = 0, e.duration = 0;
|
|
1637
|
+
return;
|
|
1638
|
+
default:
|
|
1639
|
+
throw o;
|
|
1506
1640
|
}
|
|
1507
|
-
case "no_data":
|
|
1508
|
-
e.value = [];
|
|
1509
|
-
return;
|
|
1510
|
-
default:
|
|
1511
|
-
throw r;
|
|
1512
1641
|
}
|
|
1513
|
-
|
|
1642
|
+
);
|
|
1514
1643
|
}
|
|
1515
1644
|
), e;
|
|
1516
|
-
},
|
|
1517
|
-
const e =
|
|
1518
|
-
return
|
|
1645
|
+
}, _t = (t) => {
|
|
1646
|
+
const e = x({ path: [], distance: 0, duration: 0 }), n = new google.maps.DirectionsService();
|
|
1647
|
+
return q(
|
|
1519
1648
|
() => ({ ...t }),
|
|
1520
|
-
({ from:
|
|
1649
|
+
({ from: a, to: i }) => {
|
|
1521
1650
|
n.route(
|
|
1522
1651
|
{
|
|
1523
|
-
origin: { lng:
|
|
1524
|
-
destination: { lng:
|
|
1525
|
-
travelMode: google.maps.TravelMode.
|
|
1652
|
+
origin: { lng: a[0], lat: a[1] },
|
|
1653
|
+
destination: { lng: i[0], lat: i[1] },
|
|
1654
|
+
travelMode: google.maps.TravelMode.DRIVING
|
|
1526
1655
|
},
|
|
1527
|
-
(
|
|
1528
|
-
|
|
1656
|
+
(r, o) => {
|
|
1657
|
+
var s, u, l, d;
|
|
1658
|
+
switch (o) {
|
|
1529
1659
|
case google.maps.DirectionsStatus.OK: {
|
|
1530
|
-
let
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1660
|
+
let c = [], g = 0, I = 0;
|
|
1661
|
+
const m = r.routes[0], p = m.overview_path.map((f) => [
|
|
1662
|
+
f.lng(),
|
|
1663
|
+
f.lat()
|
|
1664
|
+
]);
|
|
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;
|
|
1668
|
+
e.path = c, e.distance = g, e.duration = I;
|
|
1535
1669
|
return;
|
|
1536
1670
|
}
|
|
1537
1671
|
case google.maps.DirectionsStatus.ZERO_RESULTS:
|
|
1538
1672
|
case google.maps.DirectionsStatus.NOT_FOUND:
|
|
1539
|
-
e.
|
|
1673
|
+
e.path = [], e.distance = 0, e.duration = 0;
|
|
1540
1674
|
return;
|
|
1541
1675
|
default:
|
|
1542
|
-
throw new Error(
|
|
1676
|
+
throw new Error(o);
|
|
1543
1677
|
}
|
|
1544
1678
|
}
|
|
1545
1679
|
);
|
|
1546
1680
|
}
|
|
1547
1681
|
), e;
|
|
1548
|
-
},
|
|
1549
|
-
const { supplier: e } =
|
|
1550
|
-
return e === "gmap" ?
|
|
1551
|
-
},
|
|
1682
|
+
}, zr = (t) => {
|
|
1683
|
+
const { supplier: e } = A();
|
|
1684
|
+
return e === "gmap" ? _t(t) : $t(t);
|
|
1685
|
+
}, za = (t, e, n) => {
|
|
1686
|
+
if (!n)
|
|
1687
|
+
return 0;
|
|
1688
|
+
const { x: a, y: i } = n.lngLatToContainer(t), { x: r, y: o } = n.lngLatToContainer(e), s = Math.atan2(i - o, r - a);
|
|
1689
|
+
return (Math.PI / 2 - s) / Math.PI * 180;
|
|
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, {
|
|
1552
1702
|
slots: n
|
|
1553
1703
|
}) {
|
|
1554
|
-
const
|
|
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
|
|
1711
|
+
}));
|
|
1555
1712
|
return () => {
|
|
1556
|
-
var
|
|
1557
|
-
return
|
|
1558
|
-
path: i
|
|
1713
|
+
var u;
|
|
1714
|
+
return M("div", [(u = n.render) == null ? void 0 : u.call(n, x({
|
|
1715
|
+
path: i,
|
|
1716
|
+
angle: s,
|
|
1717
|
+
distance: r,
|
|
1718
|
+
duration: o
|
|
1559
1719
|
}))]);
|
|
1560
1720
|
};
|
|
1561
|
-
}),
|
|
1721
|
+
}), Ea = v(function(e, {
|
|
1562
1722
|
slots: n
|
|
1563
1723
|
}) {
|
|
1564
|
-
const
|
|
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
|
|
1731
|
+
}));
|
|
1565
1732
|
return () => {
|
|
1566
|
-
var
|
|
1567
|
-
return
|
|
1568
|
-
path: i
|
|
1733
|
+
var u;
|
|
1734
|
+
return M("div", [(u = n.render) == null ? void 0 : u.call(n, x({
|
|
1735
|
+
path: i,
|
|
1736
|
+
angle: s,
|
|
1737
|
+
distance: r,
|
|
1738
|
+
duration: o
|
|
1569
1739
|
}))]);
|
|
1570
1740
|
};
|
|
1571
|
-
}),
|
|
1741
|
+
}), Pe = v(function(e, {
|
|
1572
1742
|
slots: n
|
|
1573
1743
|
}) {
|
|
1574
1744
|
const {
|
|
1575
|
-
supplier:
|
|
1576
|
-
} =
|
|
1577
|
-
return () => E(
|
|
1745
|
+
supplier: a
|
|
1746
|
+
} = A();
|
|
1747
|
+
return () => E(a === "gmap" ? Ea : Ta, {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NpcmNsZSBzdHJva2Utb3BhY2l0eT0iLjEiIHN0cm9rZT0iIzAwM0RGRiIgZmlsbC1vcGFjaXR5PSIuMTUiIGZpbGw9IiM0ODczRkUiIGN4PSIzMCIgY3k9IjMwIiByPSIyOS41Ii8+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjcHJlZml4X19hKSIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjxjaXJjbGUgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVqb2luPSJzcXVhcmUiIGZpbGw9IiM0ODcxRjEiIGN4PSIzMCIgY3k9IjMwIiByPSI5LjMiLz48L2c+PC9zdmc+";
|
|
1752
|
+
function Za(t, e, n) {
|
|
1753
|
+
return e in t ? Object.defineProperty(t, e, {
|
|
1754
|
+
value: n,
|
|
1755
|
+
enumerable: !0,
|
|
1756
|
+
configurable: !0,
|
|
1757
|
+
writable: !0
|
|
1758
|
+
}) : t[e] = n, t;
|
|
1759
|
+
}
|
|
1760
|
+
function et(t, e) {
|
|
1761
|
+
var n = Object.keys(t);
|
|
1762
|
+
if (Object.getOwnPropertySymbols) {
|
|
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);
|
|
1767
|
+
}
|
|
1768
|
+
return n;
|
|
1769
|
+
}
|
|
1770
|
+
function tt(t) {
|
|
1771
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1772
|
+
var n = arguments[e] != null ? arguments[e] : {};
|
|
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));
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
return t;
|
|
1780
|
+
}
|
|
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]))
|
|
1785
|
+
return !1;
|
|
1786
|
+
}
|
|
1787
|
+
return !0;
|
|
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;
|
|
1794
|
+
typeof s == "boolean" && (s = s === !0 ? "true" : "false");
|
|
1795
|
+
var u = (
|
|
1796
|
+
// @ts-expect-error
|
|
1797
|
+
t.variantClassNames[i][s]
|
|
1798
|
+
);
|
|
1799
|
+
u && (n += " " + u);
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
for (var [l, d] of t.compoundVariants)
|
|
1803
|
+
Ra(l, a, t.defaultVariants) && (n += " " + d);
|
|
1804
|
+
return n;
|
|
1805
|
+
}, tn = ee({ defaultClassName: "_1l6offo0", variantClassNames: { size: { small: "_1l6offo1", large: "_1l6offo2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
1806
|
+
const Oa = v(function(e) {
|
|
1807
|
+
const n = L(() => {
|
|
1808
|
+
const {
|
|
1809
|
+
size: a = "large"
|
|
1810
|
+
} = e;
|
|
1811
|
+
return `
|
|
1812
|
+
<img src="${a === "large" ? en : G}" class="${tn({
|
|
1813
|
+
size: a
|
|
1814
|
+
})}">
|
|
1815
|
+
`;
|
|
1816
|
+
});
|
|
1817
|
+
return () => M(W, {
|
|
1586
1818
|
attrs: {
|
|
1587
1819
|
position: e.position,
|
|
1820
|
+
content: n.value,
|
|
1588
1821
|
anchor: "bottom-center",
|
|
1822
|
+
registerOverlay: e.registerOverlay
|
|
1823
|
+
}
|
|
1824
|
+
});
|
|
1825
|
+
}), ka = v(function(e) {
|
|
1826
|
+
const n = L(() => {
|
|
1827
|
+
const {
|
|
1828
|
+
size: a = "large"
|
|
1829
|
+
} = e, i = a === "large" ? en : G;
|
|
1830
|
+
return T("img", {
|
|
1831
|
+
class: tn({
|
|
1832
|
+
size: a
|
|
1833
|
+
}),
|
|
1834
|
+
src: i
|
|
1835
|
+
});
|
|
1836
|
+
});
|
|
1837
|
+
return () => M(U, {
|
|
1838
|
+
attrs: {
|
|
1839
|
+
position: w(e.position),
|
|
1840
|
+
content: n.value,
|
|
1841
|
+
registerOverlay: e.registerOverlay
|
|
1842
|
+
}
|
|
1843
|
+
});
|
|
1844
|
+
}), ze = v(function(e) {
|
|
1845
|
+
const n = A();
|
|
1846
|
+
return () => E(n.supplier === "gmap" ? ka : Oa, {
|
|
1847
|
+
attrs: e
|
|
1848
|
+
});
|
|
1849
|
+
});
|
|
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, {
|
|
1853
|
+
emit: n
|
|
1854
|
+
}) {
|
|
1855
|
+
const a = L(() => {
|
|
1856
|
+
var s;
|
|
1857
|
+
return (s = e.textAlign) != null ? s : "right";
|
|
1858
|
+
}), i = L(() => {
|
|
1859
|
+
const {
|
|
1860
|
+
hideIcon: s = !1
|
|
1861
|
+
} = e;
|
|
1862
|
+
return `
|
|
1863
|
+
<div class="${an({
|
|
1864
|
+
textAlign: a.value
|
|
1865
|
+
})}">
|
|
1866
|
+
<img class="${de({
|
|
1867
|
+
hideIcon: s
|
|
1868
|
+
})} ${nt({
|
|
1869
|
+
textAlign: a.value
|
|
1870
|
+
})}" src="${G}">
|
|
1871
|
+
<div class="${nn}">${e.label}</div>
|
|
1872
|
+
</div>
|
|
1873
|
+
`;
|
|
1874
|
+
}), r = L(() => {
|
|
1875
|
+
const {
|
|
1876
|
+
hideIcon: s = !1
|
|
1877
|
+
} = e;
|
|
1878
|
+
return `<img class="${de({
|
|
1879
|
+
hideIcon: s
|
|
1880
|
+
})} ${nt({
|
|
1881
|
+
textAlign: a.value
|
|
1882
|
+
})}" src="${G}">`;
|
|
1883
|
+
}), o = (s) => {
|
|
1884
|
+
console.log("on amap marker e = ", s), n("click", e.position);
|
|
1885
|
+
};
|
|
1886
|
+
return () => M(W, {
|
|
1887
|
+
attrs: {
|
|
1888
|
+
position: e.position,
|
|
1889
|
+
content: e.label ? i.value : r.value,
|
|
1890
|
+
anchor: a.value === "left" ? he.middleRight : he.middleLeft
|
|
1891
|
+
},
|
|
1892
|
+
on: {
|
|
1893
|
+
click: o
|
|
1894
|
+
}
|
|
1895
|
+
});
|
|
1896
|
+
}).props(["hideIcon", "label", "position", "textAlign"]), Wa = J(function(e, {
|
|
1897
|
+
emit: n
|
|
1898
|
+
}) {
|
|
1899
|
+
const a = L(() => {
|
|
1900
|
+
var s;
|
|
1901
|
+
return (s = e.textAlign) != null ? s : "right";
|
|
1902
|
+
}), i = L(() => {
|
|
1903
|
+
const {
|
|
1904
|
+
hideIcon: s = !1
|
|
1905
|
+
} = e;
|
|
1906
|
+
return T("div", {
|
|
1907
|
+
class: `${an({
|
|
1908
|
+
textAlign: a.value
|
|
1909
|
+
})} ${it({
|
|
1910
|
+
textAlign: a.value
|
|
1911
|
+
})}`
|
|
1912
|
+
}, `
|
|
1913
|
+
<img class="${de({
|
|
1914
|
+
hideIcon: s
|
|
1915
|
+
})}" src="${G}">
|
|
1916
|
+
<div class="${nn}">${e.label}</div>
|
|
1917
|
+
`);
|
|
1918
|
+
}), r = L(() => {
|
|
1919
|
+
const {
|
|
1920
|
+
hideIcon: s = !1
|
|
1921
|
+
} = e;
|
|
1922
|
+
return T("img", {
|
|
1923
|
+
class: `${de({
|
|
1924
|
+
hideIcon: s
|
|
1925
|
+
})} ${it({
|
|
1926
|
+
textAlign: a.value
|
|
1927
|
+
})}`,
|
|
1928
|
+
src: G
|
|
1929
|
+
});
|
|
1930
|
+
}), o = (s) => {
|
|
1931
|
+
console.log("on gmap advanced marker view e = ", s), n("click", e.position);
|
|
1932
|
+
};
|
|
1933
|
+
return () => M(U, {
|
|
1934
|
+
attrs: {
|
|
1935
|
+
position: w(e.position),
|
|
1936
|
+
content: e.label ? i.value : r.value
|
|
1937
|
+
},
|
|
1938
|
+
on: {
|
|
1939
|
+
click: o
|
|
1940
|
+
}
|
|
1941
|
+
});
|
|
1942
|
+
}).props(["hideIcon", "label", "position", "textAlign"]), R = v(function(e, {
|
|
1943
|
+
emit: n
|
|
1944
|
+
}) {
|
|
1945
|
+
const a = A();
|
|
1946
|
+
return () => E(a.supplier === "gmap" ? Wa : Ga, {
|
|
1947
|
+
attrs: e,
|
|
1948
|
+
on: {
|
|
1949
|
+
click: (i) => n("click", i)
|
|
1950
|
+
}
|
|
1951
|
+
});
|
|
1952
|
+
}), rn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm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WZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
|
|
1953
|
+
var $ = ee({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] }), sn = "_4a4ovk1", cn = "_4a4ovk4", un = "_4a4ovk5", ln = "_4a4ovk3", ge = "_4a4ovk0", dn = "_4a4ovk2";
|
|
1954
|
+
const Ua = J(function(e) {
|
|
1955
|
+
const n = L(() => {
|
|
1956
|
+
var r;
|
|
1957
|
+
const a = e.type === "start" ? on : rn, i = e.description ? Ae(e.description).map((o) => o.type === "normal" ? o.value : `<span class="${un}">${o.value}</span>`).join("") : "";
|
|
1958
|
+
return !e.description && !e.title ? `<img src="${a}" class="${$({
|
|
1959
|
+
type: e.type
|
|
1960
|
+
})}">` : e.description ? `
|
|
1961
|
+
<div class="${ge}">
|
|
1962
|
+
<div class="${sn}">
|
|
1963
|
+
<div class="${ln}">${(r = e.title) != null ? r : ""}</div>
|
|
1964
|
+
<div class="${cn}">${i}</div>
|
|
1965
|
+
</div>
|
|
1966
|
+
<img src="${a}" class="${$({
|
|
1967
|
+
type: e.type
|
|
1968
|
+
})}">
|
|
1969
|
+
</div>
|
|
1970
|
+
` : `
|
|
1971
|
+
<div class="${ge}">
|
|
1972
|
+
<div class="${dn}">${e.title}</div>
|
|
1973
|
+
<img src="${a}" class="${$({
|
|
1974
|
+
type: e.type
|
|
1975
|
+
})}">
|
|
1976
|
+
</div>
|
|
1977
|
+
`;
|
|
1978
|
+
});
|
|
1979
|
+
return () => M(W, {
|
|
1980
|
+
attrs: {
|
|
1981
|
+
registerOverlay: e.registerOverlay,
|
|
1982
|
+
position: e.position,
|
|
1983
|
+
content: n.value,
|
|
1984
|
+
anchor: "bottom-center"
|
|
1985
|
+
}
|
|
1986
|
+
});
|
|
1987
|
+
}).props(["type", "title", "registerOverlay", "position", "description"]), Ba = J(function(e) {
|
|
1988
|
+
const n = L(() => {
|
|
1989
|
+
var r;
|
|
1990
|
+
const a = e.type === "start" ? on : rn, i = e.description ? Ae(e.description).map((o) => o.type === "normal" ? o.value : `<span class="${un}">${o.value}</span>`).join("") : "";
|
|
1991
|
+
return !e.description && !e.title ? T("img", {
|
|
1992
|
+
class: $({
|
|
1993
|
+
type: e.type
|
|
1994
|
+
}),
|
|
1995
|
+
src: a
|
|
1996
|
+
}) : e.description ? T("div", {
|
|
1997
|
+
class: ge
|
|
1998
|
+
}, `
|
|
1999
|
+
<div class="${sn}">
|
|
2000
|
+
<div class="${ln}">${(r = e.title) != null ? r : ""}</div>
|
|
2001
|
+
<div class="${cn}">${i}</div>
|
|
2002
|
+
</div>
|
|
2003
|
+
<img src="${a}" class="${$({
|
|
2004
|
+
type: e.type
|
|
2005
|
+
})}">
|
|
2006
|
+
`) : T("div", {
|
|
2007
|
+
class: ge
|
|
2008
|
+
}, `
|
|
2009
|
+
<div class="${dn}">${e.title}</div>
|
|
2010
|
+
<img src="${a}" class="${$({
|
|
2011
|
+
type: e.type
|
|
2012
|
+
})}">
|
|
2013
|
+
`);
|
|
2014
|
+
});
|
|
2015
|
+
return () => M(U, {
|
|
2016
|
+
attrs: {
|
|
2017
|
+
registerOverlay: e.registerOverlay,
|
|
2018
|
+
position: w(e.position),
|
|
1589
2019
|
content: n.value
|
|
1590
2020
|
}
|
|
1591
|
-
})
|
|
2021
|
+
});
|
|
2022
|
+
}).props(["type", "title", "registerOverlay", "position", "description"]), k = v(function(e) {
|
|
2023
|
+
const n = A();
|
|
2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
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)`;
|
|
2033
|
+
return e.title ? `
|
|
2034
|
+
<div class="${In}">
|
|
2035
|
+
<div class="${Mn}">${a}</div>
|
|
2036
|
+
<img src="${Ie}" class="${Me}" style="${i}">
|
|
2037
|
+
</div>
|
|
2038
|
+
` : `<img src="${Ie}" class="${Me}" style="${i}">`;
|
|
2039
|
+
});
|
|
2040
|
+
return () => M(W, {
|
|
1592
2041
|
attrs: {
|
|
1593
2042
|
position: e.position,
|
|
2043
|
+
content: n.value,
|
|
1594
2044
|
anchor: "bottom-center",
|
|
1595
|
-
|
|
2045
|
+
registerOverlay: e.registerOverlay
|
|
1596
2046
|
}
|
|
1597
|
-
})
|
|
1598
|
-
}),
|
|
1599
|
-
const n = L(() =>
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
2047
|
+
});
|
|
2048
|
+
}), Ha = v(function(e) {
|
|
2049
|
+
const n = L(() => {
|
|
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)`;
|
|
2052
|
+
return e.title ? T("div", {
|
|
2053
|
+
class: In
|
|
2054
|
+
}, `
|
|
2055
|
+
<div class="${Mn}">${a}</div>
|
|
2056
|
+
<img src="${Ie}" class="${Me}" style="${i}">
|
|
2057
|
+
`) : T("img", {
|
|
2058
|
+
class: Me,
|
|
2059
|
+
src: Ie,
|
|
2060
|
+
style: i
|
|
2061
|
+
});
|
|
2062
|
+
});
|
|
2063
|
+
return () => M(U, {
|
|
2064
|
+
attrs: {
|
|
2065
|
+
position: w(e.position),
|
|
2066
|
+
content: n.value,
|
|
2067
|
+
registerOverlay: e.registerOverlay
|
|
2068
|
+
}
|
|
2069
|
+
});
|
|
2070
|
+
}), Te = v(function(e) {
|
|
2071
|
+
const n = A();
|
|
2072
|
+
return () => E(n.supplier === "gmap" ? Ha : Ya, {
|
|
2073
|
+
attrs: e
|
|
2074
|
+
});
|
|
2075
|
+
}), Va = v(function(e) {
|
|
1606
2076
|
return () => {
|
|
1607
|
-
const
|
|
1608
|
-
|
|
2077
|
+
const {
|
|
2078
|
+
path: n
|
|
2079
|
+
} = e;
|
|
2080
|
+
if (n.length === 0)
|
|
2081
|
+
return null;
|
|
2082
|
+
const i = 2 * (window.innerWidth * 0.01);
|
|
2083
|
+
return M(ie, {
|
|
1609
2084
|
attrs: {
|
|
1610
|
-
|
|
1611
|
-
|
|
2085
|
+
path: n,
|
|
2086
|
+
strokeWeight: i,
|
|
2087
|
+
strokeOpacity: 1,
|
|
2088
|
+
strokeColor: "#38A3FE",
|
|
2089
|
+
strokeStyle: "dashed",
|
|
2090
|
+
strokeDasharray: [i, i * 1.5],
|
|
2091
|
+
lineJoin: "round",
|
|
2092
|
+
lineCap: "round"
|
|
1612
2093
|
}
|
|
1613
|
-
})
|
|
2094
|
+
});
|
|
2095
|
+
};
|
|
2096
|
+
}), Qa = v(function(e) {
|
|
2097
|
+
const n = L(() => e.path.map(w));
|
|
2098
|
+
return () => {
|
|
2099
|
+
const a = n.value;
|
|
2100
|
+
if (a.length === 0)
|
|
2101
|
+
return null;
|
|
2102
|
+
const r = 2 * (window.innerWidth * 0.01), o = r / 4;
|
|
2103
|
+
return M(ue, {
|
|
1614
2104
|
attrs: {
|
|
1615
|
-
|
|
1616
|
-
|
|
2105
|
+
path: a,
|
|
2106
|
+
strokeWeight: r,
|
|
2107
|
+
strokeOpacity: 1,
|
|
2108
|
+
strokeColor: "transparent",
|
|
2109
|
+
icons: [{
|
|
2110
|
+
icon: {
|
|
2111
|
+
path: `
|
|
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
|
|
2116
|
+
`,
|
|
2117
|
+
strokeColor: "#38A3FE",
|
|
2118
|
+
fillColor: "#38A3FE",
|
|
2119
|
+
fillOpacity: 1,
|
|
2120
|
+
strokeOpacity: 1,
|
|
2121
|
+
strokeWeight: r / 2,
|
|
2122
|
+
scale: 1
|
|
2123
|
+
},
|
|
2124
|
+
repeat: `${r * 2}px`
|
|
2125
|
+
}]
|
|
1617
2126
|
}
|
|
1618
|
-
})
|
|
2127
|
+
});
|
|
1619
2128
|
};
|
|
1620
|
-
}),
|
|
1621
|
-
const n =
|
|
1622
|
-
return () => E(n.supplier === "gmap" ?
|
|
2129
|
+
}), mn = v(function(e) {
|
|
2130
|
+
const n = A();
|
|
2131
|
+
return () => E(n.supplier === "gmap" ? Qa : Va, {
|
|
1623
2132
|
attrs: e
|
|
1624
2133
|
});
|
|
1625
|
-
})
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
function i(c) {
|
|
1643
|
-
return new Promise(function(g, I) {
|
|
1644
|
-
var M = [];
|
|
1645
|
-
if (c.plugins)
|
|
1646
|
-
for (var f = 0; f < c.plugins.length; f += 1)
|
|
1647
|
-
r.AMapUI.plugins.indexOf(c.plugins[f]) == -1 && M.push(c.plugins[f]);
|
|
1648
|
-
if (s.AMapUI === o.failed)
|
|
1649
|
-
I("前次请求 AMapUI 失败");
|
|
1650
|
-
else if (s.AMapUI === o.notload) {
|
|
1651
|
-
s.AMapUI = o.loading, r.AMapUI.version = c.version || r.AMapUI.version, f = r.AMapUI.version;
|
|
1652
|
-
var p = document.body || document.head, A = document.createElement("script");
|
|
1653
|
-
A.type = "text/javascript", A.src = "https://webapi.amap.com/ui/" + f + "/main.js", A.onerror = function(v) {
|
|
1654
|
-
s.AMapUI = o.failed, I("请求 AMapUI 失败");
|
|
1655
|
-
}, A.onload = function() {
|
|
1656
|
-
if (s.AMapUI = o.loaded, M.length)
|
|
1657
|
-
window.AMapUI.loadUI(M, function() {
|
|
1658
|
-
for (var v = 0, h = M.length; v < h; v++) {
|
|
1659
|
-
var P = M[v].split("/").slice(-1)[0];
|
|
1660
|
-
window.AMapUI[P] = arguments[v];
|
|
1661
|
-
}
|
|
1662
|
-
for (g(); u.AMapUI.length; )
|
|
1663
|
-
u.AMapUI.splice(0, 1)[0]();
|
|
1664
|
-
});
|
|
1665
|
-
else
|
|
1666
|
-
for (g(); u.AMapUI.length; )
|
|
1667
|
-
u.AMapUI.splice(0, 1)[0]();
|
|
1668
|
-
}, p.appendChild(A);
|
|
1669
|
-
} else
|
|
1670
|
-
s.AMapUI === o.loaded ? c.version && c.version !== r.AMapUI.version ? I("不允许多个版本 AMapUI 混用") : M.length ? window.AMapUI.loadUI(M, function() {
|
|
1671
|
-
for (var v = 0, h = M.length; v < h; v++) {
|
|
1672
|
-
var P = M[v].split("/").slice(-1)[0];
|
|
1673
|
-
window.AMapUI[P] = arguments[v];
|
|
2134
|
+
}), fn = (t) => {
|
|
2135
|
+
const e = P([]), n = new AMap.Walking({});
|
|
2136
|
+
return q(
|
|
2137
|
+
() => ({ ...t }),
|
|
2138
|
+
({ from: a, to: i }) => {
|
|
2139
|
+
n.search(AMap.LngLat.from(a), AMap.LngLat.from(i), (r, o) => {
|
|
2140
|
+
switch (r) {
|
|
2141
|
+
case "complete": {
|
|
2142
|
+
let s = [];
|
|
2143
|
+
const u = o;
|
|
2144
|
+
if (!u.routes)
|
|
2145
|
+
return;
|
|
2146
|
+
const l = u.routes[0];
|
|
2147
|
+
console.log("firstRoute = ", l);
|
|
2148
|
+
for (const d of l.steps) {
|
|
2149
|
+
const c = d.path.map(({ lng: g, lat: I }) => [g, I]);
|
|
2150
|
+
s = s.concat(c);
|
|
1674
2151
|
}
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
v ? I(v) : M.length ? window.AMapUI.loadUI(M, function() {
|
|
1678
|
-
for (var h = 0, P = M.length; h < P; h++) {
|
|
1679
|
-
var O = M[h].split("/").slice(-1)[0];
|
|
1680
|
-
window.AMapUI[O] = arguments[h];
|
|
1681
|
-
}
|
|
1682
|
-
g();
|
|
1683
|
-
}) : g();
|
|
1684
|
-
});
|
|
1685
|
-
});
|
|
1686
|
-
}
|
|
1687
|
-
function a(c) {
|
|
1688
|
-
return new Promise(function(g, I) {
|
|
1689
|
-
if (s.Loca === o.failed)
|
|
1690
|
-
I("前次请求 Loca 失败");
|
|
1691
|
-
else if (s.Loca === o.notload) {
|
|
1692
|
-
s.Loca = o.loading, r.Loca.version = c.version || r.Loca.version;
|
|
1693
|
-
var M = r.Loca.version, f = r.AMap.version.startsWith("2"), p = M.startsWith("2");
|
|
1694
|
-
if (f && !p || !f && p)
|
|
1695
|
-
I("JSAPI 与 Loca 版本不对应!!");
|
|
1696
|
-
else {
|
|
1697
|
-
f = r.key, p = document.body || document.head;
|
|
1698
|
-
var A = document.createElement("script");
|
|
1699
|
-
A.type = "text/javascript", A.src = "https://webapi.amap.com/loca?v=" + M + "&key=" + f, A.onerror = function(v) {
|
|
1700
|
-
s.Loca = o.failed, I("请求 AMapUI 失败");
|
|
1701
|
-
}, A.onload = function() {
|
|
1702
|
-
for (s.Loca = o.loaded, g(); u.Loca.length; )
|
|
1703
|
-
u.Loca.splice(0, 1)[0]();
|
|
1704
|
-
}, p.appendChild(A);
|
|
2152
|
+
e.value = s;
|
|
2153
|
+
return;
|
|
1705
2154
|
}
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
2155
|
+
case "no_data":
|
|
2156
|
+
e.value = [];
|
|
2157
|
+
return;
|
|
2158
|
+
default:
|
|
2159
|
+
throw o;
|
|
2160
|
+
}
|
|
1710
2161
|
});
|
|
1711
2162
|
}
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
else if (c.version && c.version !== r.AMap.version)
|
|
1742
|
-
I("不允许多个版本 JSAPI 混用");
|
|
1743
|
-
else {
|
|
1744
|
-
if (M = [], c.plugins)
|
|
1745
|
-
for (f = 0; f < c.plugins.length; f += 1)
|
|
1746
|
-
r.AMap.plugins.indexOf(c.plugins[f]) == -1 && M.push(c.plugins[f]);
|
|
1747
|
-
M.length ? window.AMap.plugin(M, function() {
|
|
1748
|
-
n(c).then(function() {
|
|
1749
|
-
g(window.AMap);
|
|
1750
|
-
}).catch(I);
|
|
1751
|
-
}) : n(c).then(function() {
|
|
1752
|
-
g(window.AMap);
|
|
1753
|
-
}).catch(I);
|
|
2163
|
+
), e;
|
|
2164
|
+
}, pn = (t) => {
|
|
2165
|
+
const e = P([]), n = new google.maps.DirectionsService();
|
|
2166
|
+
return q(
|
|
2167
|
+
() => ({ ...t }),
|
|
2168
|
+
({ from: a, to: i }) => {
|
|
2169
|
+
n.route(
|
|
2170
|
+
{
|
|
2171
|
+
origin: { lng: a[0], lat: a[1] },
|
|
2172
|
+
destination: { lng: i[0], lat: i[1] },
|
|
2173
|
+
travelMode: google.maps.TravelMode.WALKING
|
|
2174
|
+
},
|
|
2175
|
+
(r, o) => {
|
|
2176
|
+
switch (o) {
|
|
2177
|
+
case google.maps.DirectionsStatus.OK: {
|
|
2178
|
+
let s = [];
|
|
2179
|
+
const l = r.routes[0].overview_path.map((d) => [
|
|
2180
|
+
d.lng(),
|
|
2181
|
+
d.lat()
|
|
2182
|
+
]);
|
|
2183
|
+
s = s.concat(l), e.value = s;
|
|
2184
|
+
return;
|
|
2185
|
+
}
|
|
2186
|
+
case google.maps.DirectionsStatus.ZERO_RESULTS:
|
|
2187
|
+
case google.maps.DirectionsStatus.NOT_FOUND:
|
|
2188
|
+
e.value = [];
|
|
2189
|
+
return;
|
|
2190
|
+
default:
|
|
2191
|
+
throw new Error(o);
|
|
1754
2192
|
}
|
|
1755
|
-
else if (c.key && c.key !== r.key)
|
|
1756
|
-
I("多个不一致的 key");
|
|
1757
|
-
else if (c.version && c.version !== r.AMap.version)
|
|
1758
|
-
I("不允许多个版本 JSAPI 混用");
|
|
1759
|
-
else {
|
|
1760
|
-
var A = [];
|
|
1761
|
-
if (c.plugins)
|
|
1762
|
-
for (f = 0; f < c.plugins.length; f += 1)
|
|
1763
|
-
r.AMap.plugins.indexOf(c.plugins[f]) == -1 && A.push(c.plugins[f]);
|
|
1764
|
-
d(function() {
|
|
1765
|
-
A.length ? window.AMap.plugin(A, function() {
|
|
1766
|
-
n(c).then(function() {
|
|
1767
|
-
g(window.AMap);
|
|
1768
|
-
}).catch(I);
|
|
1769
|
-
}) : n(c).then(function() {
|
|
1770
|
-
g(window.AMap);
|
|
1771
|
-
}).catch(I);
|
|
1772
|
-
});
|
|
1773
2193
|
}
|
|
1774
|
-
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
2194
|
+
);
|
|
2195
|
+
}
|
|
2196
|
+
), e;
|
|
2197
|
+
}, Er = (t) => {
|
|
2198
|
+
const { supplier: e } = A();
|
|
2199
|
+
return e === "gmap" ? pn(t) : fn(t);
|
|
2200
|
+
}, Ja = v(function(e, {
|
|
2201
|
+
slots: n
|
|
2202
|
+
}) {
|
|
2203
|
+
const a = fn(e);
|
|
2204
|
+
return () => {
|
|
2205
|
+
var i;
|
|
2206
|
+
return M("div", [(i = n.render) == null ? void 0 : i.call(n, x({
|
|
2207
|
+
path: a
|
|
2208
|
+
}))]);
|
|
2209
|
+
};
|
|
2210
|
+
}), Xa = v(function(e, {
|
|
2211
|
+
slots: n
|
|
2212
|
+
}) {
|
|
2213
|
+
const a = pn(e);
|
|
2214
|
+
return () => {
|
|
2215
|
+
var i;
|
|
2216
|
+
return M("div", [(i = n.render) == null ? void 0 : i.call(n, x({
|
|
2217
|
+
path: a
|
|
2218
|
+
}))]);
|
|
2219
|
+
};
|
|
2220
|
+
}), vn = v(function(e, {
|
|
2221
|
+
slots: n
|
|
2222
|
+
}) {
|
|
2223
|
+
const {
|
|
2224
|
+
supplier: a
|
|
2225
|
+
} = A();
|
|
2226
|
+
return () => E(a === "gmap" ? Xa : Ja, {
|
|
2227
|
+
attrs: e,
|
|
2228
|
+
scopedSlots: n
|
|
1782
2229
|
});
|
|
1783
|
-
})
|
|
1784
|
-
var
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
if (i = e.length, i != n.length)
|
|
1793
|
-
return !1;
|
|
1794
|
-
for (a = i; a-- !== 0; )
|
|
1795
|
-
if (!t(e[a], n[a]))
|
|
1796
|
-
return !1;
|
|
1797
|
-
return !0;
|
|
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}">`);
|
|
2234
|
+
return () => M("div", [M(W, {
|
|
2235
|
+
attrs: {
|
|
2236
|
+
position: e.position,
|
|
2237
|
+
anchor: "bottom-center",
|
|
2238
|
+
content: n.value
|
|
1798
2239
|
}
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
return e.toString() === n.toString();
|
|
1805
|
-
if (o = Object.keys(e), i = o.length, i !== Object.keys(n).length)
|
|
1806
|
-
return !1;
|
|
1807
|
-
for (a = i; a-- !== 0; )
|
|
1808
|
-
if (!Object.prototype.hasOwnProperty.call(n, o[a]))
|
|
1809
|
-
return !1;
|
|
1810
|
-
for (a = i; a-- !== 0; ) {
|
|
1811
|
-
var r = o[a];
|
|
1812
|
-
if (!t(e[r], n[r]))
|
|
1813
|
-
return !1;
|
|
2240
|
+
}), M(W, {
|
|
2241
|
+
attrs: {
|
|
2242
|
+
position: e.position,
|
|
2243
|
+
anchor: "bottom-center",
|
|
2244
|
+
content: a.value
|
|
1814
2245
|
}
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
})
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
2246
|
+
})]);
|
|
2247
|
+
}), $a = v(function(e) {
|
|
2248
|
+
const n = L(() => T("img", {
|
|
2249
|
+
class: fe,
|
|
2250
|
+
src: me
|
|
2251
|
+
})), a = L(() => T("img", {
|
|
2252
|
+
class: `${fe} ${yn}`,
|
|
2253
|
+
src: me
|
|
2254
|
+
}));
|
|
2255
|
+
return () => {
|
|
2256
|
+
const i = w(e.position);
|
|
2257
|
+
return M("div", [M(U, {
|
|
2258
|
+
attrs: {
|
|
2259
|
+
position: i,
|
|
2260
|
+
content: n.value
|
|
2261
|
+
}
|
|
2262
|
+
}), M(U, {
|
|
2263
|
+
attrs: {
|
|
2264
|
+
position: i,
|
|
2265
|
+
content: a.value
|
|
2266
|
+
}
|
|
2267
|
+
})]);
|
|
2268
|
+
};
|
|
2269
|
+
}), _a = v(function(e) {
|
|
2270
|
+
const n = A();
|
|
2271
|
+
return () => E(n.supplier === "gmap" ? $a : Fa, {
|
|
2272
|
+
attrs: e
|
|
2273
|
+
});
|
|
2274
|
+
}), Ka = ["book-driverStartService", "dispatched", "driverStartService", "inService", "driverArrived"], at = v((t, {
|
|
2275
|
+
emit: e
|
|
2276
|
+
}) => (Q(() => e("mapMounted")), () => {
|
|
2277
|
+
const {
|
|
2278
|
+
from: n,
|
|
2279
|
+
title: a,
|
|
2280
|
+
registerOverlay: i
|
|
2281
|
+
} = t, r = C(n);
|
|
2282
|
+
return M("div", [M(k, {
|
|
2283
|
+
attrs: {
|
|
2284
|
+
type: "start",
|
|
2285
|
+
position: r,
|
|
2286
|
+
title: a,
|
|
2287
|
+
registerOverlay: i
|
|
1839
2288
|
}
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
return {
|
|
1844
|
-
version: this.version,
|
|
1845
|
-
apiKey: this.apiKey,
|
|
1846
|
-
channel: this.channel,
|
|
1847
|
-
client: this.client,
|
|
1848
|
-
id: this.id,
|
|
1849
|
-
libraries: this.libraries,
|
|
1850
|
-
language: this.language,
|
|
1851
|
-
region: this.region,
|
|
1852
|
-
mapIds: this.mapIds,
|
|
1853
|
-
nonce: this.nonce,
|
|
1854
|
-
url: this.url,
|
|
1855
|
-
authReferrerPolicy: this.authReferrerPolicy
|
|
1856
|
-
};
|
|
1857
|
-
}
|
|
1858
|
-
get status() {
|
|
1859
|
-
return this.errors.length ? Y.FAILURE : this.done ? Y.SUCCESS : this.loading ? Y.LOADING : Y.INITIALIZED;
|
|
1860
|
-
}
|
|
1861
|
-
get failed() {
|
|
1862
|
-
return this.done && !this.loading && this.errors.length >= this.retries + 1;
|
|
1863
|
-
}
|
|
1864
|
-
/**
|
|
1865
|
-
* CreateUrl returns the Google Maps JavaScript API script url given the [[LoaderOptions]].
|
|
1866
|
-
*
|
|
1867
|
-
* @ignore
|
|
1868
|
-
*/
|
|
1869
|
-
createUrl() {
|
|
1870
|
-
let e = this.url;
|
|
1871
|
-
return e += `?callback=${this.CALLBACK}`, this.apiKey && (e += `&key=${this.apiKey}`), this.channel && (e += `&channel=${this.channel}`), this.client && (e += `&client=${this.client}`), this.libraries.length > 0 && (e += `&libraries=${this.libraries.join(",")}`), this.language && (e += `&language=${this.language}`), this.region && (e += `®ion=${this.region}`), this.version && (e += `&v=${this.version}`), this.mapIds && (e += `&map_ids=${this.mapIds.join(",")}`), this.authReferrerPolicy && (e += `&auth_referrer_policy=${this.authReferrerPolicy}`), e;
|
|
1872
|
-
}
|
|
1873
|
-
deleteScript() {
|
|
1874
|
-
const e = document.getElementById(this.id);
|
|
1875
|
-
e && e.remove();
|
|
1876
|
-
}
|
|
1877
|
-
/**
|
|
1878
|
-
* Load the Google Maps JavaScript API script and return a Promise.
|
|
1879
|
-
*/
|
|
1880
|
-
load() {
|
|
1881
|
-
return this.loadPromise();
|
|
1882
|
-
}
|
|
1883
|
-
/**
|
|
1884
|
-
* Load the Google Maps JavaScript API script and return a Promise.
|
|
1885
|
-
*
|
|
1886
|
-
* @ignore
|
|
1887
|
-
*/
|
|
1888
|
-
loadPromise() {
|
|
1889
|
-
return new Promise((e, n) => {
|
|
1890
|
-
this.loadCallback((i) => {
|
|
1891
|
-
i ? n(i.error) : e(window.google);
|
|
1892
|
-
});
|
|
1893
|
-
});
|
|
1894
|
-
}
|
|
1895
|
-
/**
|
|
1896
|
-
* Load the Google Maps JavaScript API script with a callback.
|
|
1897
|
-
*/
|
|
1898
|
-
loadCallback(e) {
|
|
1899
|
-
this.callbacks.push(e), this.execute();
|
|
1900
|
-
}
|
|
1901
|
-
/**
|
|
1902
|
-
* Set the script on document.
|
|
1903
|
-
*/
|
|
1904
|
-
setScript() {
|
|
1905
|
-
if (document.getElementById(this.id)) {
|
|
1906
|
-
this.callback();
|
|
1907
|
-
return;
|
|
2289
|
+
}), M(_a, {
|
|
2290
|
+
attrs: {
|
|
2291
|
+
position: r
|
|
1908
2292
|
}
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
*/
|
|
1915
|
-
reset() {
|
|
1916
|
-
this.deleteScript(), this.done = !1, this.loading = !1, this.errors = [], this.onerrorEvent = null;
|
|
1917
|
-
}
|
|
1918
|
-
resetIfRetryingFailed() {
|
|
1919
|
-
this.failed && this.reset();
|
|
1920
|
-
}
|
|
1921
|
-
loadErrorCallback(e) {
|
|
1922
|
-
if (this.errors.push(e), this.errors.length <= this.retries) {
|
|
1923
|
-
const n = this.errors.length * Math.pow(2, this.errors.length);
|
|
1924
|
-
console.log(`Failed to load Google Maps script, retrying in ${n} ms.`), setTimeout(() => {
|
|
1925
|
-
this.deleteScript(), this.setScript();
|
|
1926
|
-
}, n);
|
|
1927
|
-
} else
|
|
1928
|
-
this.onerrorEvent = e, this.callback();
|
|
1929
|
-
}
|
|
1930
|
-
setCallback() {
|
|
1931
|
-
window.__googleMapsCallback = this.callback.bind(this);
|
|
1932
|
-
}
|
|
1933
|
-
callback() {
|
|
1934
|
-
this.done = !0, this.loading = !1, this.callbacks.forEach((e) => {
|
|
1935
|
-
e(this.onerrorEvent);
|
|
1936
|
-
}), this.callbacks = [];
|
|
1937
|
-
}
|
|
1938
|
-
execute() {
|
|
1939
|
-
if (this.resetIfRetryingFailed(), this.done)
|
|
1940
|
-
this.callback();
|
|
1941
|
-
else {
|
|
1942
|
-
if (window.google && window.google.maps && window.google.maps.version) {
|
|
1943
|
-
console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."), this.callback();
|
|
1944
|
-
return;
|
|
1945
|
-
}
|
|
1946
|
-
this.loading || (this.loading = !0, this.setCallback(), this.setScript());
|
|
2293
|
+
}), M(R, {
|
|
2294
|
+
attrs: {
|
|
2295
|
+
position: r,
|
|
2296
|
+
label: n.name,
|
|
2297
|
+
hideIcon: !0
|
|
1947
2298
|
}
|
|
1948
|
-
}
|
|
1949
|
-
}
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
"LOADING"
|
|
1965
|
-
/* LOADING */
|
|
1966
|
-
), r = L(() => {
|
|
1967
|
-
const { onChange: s, loading: u, fallback: l, apiKey: d, apiSecret: c, apiServiceHost: g, version: I, ...M } = t;
|
|
1968
|
-
return { ...M, key: d, version: I != null ? I : "2.0.5.16" };
|
|
1969
|
-
});
|
|
1970
|
-
return J(
|
|
1971
|
-
() => r.value,
|
|
1972
|
-
(s) => {
|
|
1973
|
-
const u = (l) => {
|
|
1974
|
-
o.value = l, l === "SUCCESS" && n(), l === "FAILURE" && i(), e == null || e(o.value);
|
|
1975
|
-
};
|
|
1976
|
-
u(
|
|
1977
|
-
"LOADING"
|
|
1978
|
-
/* LOADING */
|
|
1979
|
-
), window._AMapSecurityConfig = t.apiServiceHost ? {
|
|
1980
|
-
serviceHost: t.apiServiceHost
|
|
1981
|
-
} : { securityJsCode: t.apiSecret }, je.load(s).then(
|
|
1982
|
-
() => u(
|
|
1983
|
-
"SUCCESS"
|
|
1984
|
-
/* SUCCESS */
|
|
1985
|
-
),
|
|
1986
|
-
() => u(
|
|
1987
|
-
"FAILURE"
|
|
1988
|
-
/* FAILURE */
|
|
1989
|
-
)
|
|
1990
|
-
);
|
|
2299
|
+
})]);
|
|
2300
|
+
})), qa = v((t, {
|
|
2301
|
+
emit: e
|
|
2302
|
+
}) => (Q(() => e("mapMounted")), () => {
|
|
2303
|
+
const {
|
|
2304
|
+
from: n,
|
|
2305
|
+
carPosition: a,
|
|
2306
|
+
passengerPosition: i,
|
|
2307
|
+
renderTitle: r,
|
|
2308
|
+
registerOverlay: o
|
|
2309
|
+
} = t, s = C(n);
|
|
2310
|
+
return M("div", [M(k, {
|
|
2311
|
+
attrs: {
|
|
2312
|
+
type: "start",
|
|
2313
|
+
position: s,
|
|
2314
|
+
registerOverlay: o
|
|
1991
2315
|
}
|
|
1992
|
-
),
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
n = s, i = u;
|
|
1998
|
-
}), o = w(
|
|
1999
|
-
"LOADING"
|
|
2000
|
-
/* LOADING */
|
|
2001
|
-
), r = L(() => {
|
|
2002
|
-
const { onChange: s, fallback: u, loading: l, ...d } = t;
|
|
2003
|
-
return d;
|
|
2004
|
-
});
|
|
2005
|
-
return J(
|
|
2006
|
-
() => r.value,
|
|
2007
|
-
(s) => {
|
|
2008
|
-
const u = new U(s), l = (d) => {
|
|
2009
|
-
o.value = d, d === "SUCCESS" && n(), d === "FAILURE" && i(), e == null || e(o.value);
|
|
2010
|
-
};
|
|
2011
|
-
l(
|
|
2012
|
-
"LOADING"
|
|
2013
|
-
/* LOADING */
|
|
2014
|
-
), u.load().then(
|
|
2015
|
-
() => l(
|
|
2016
|
-
"SUCCESS"
|
|
2017
|
-
/* SUCCESS */
|
|
2018
|
-
),
|
|
2019
|
-
() => l(
|
|
2020
|
-
"FAILURE"
|
|
2021
|
-
/* FAILURE */
|
|
2022
|
-
)
|
|
2023
|
-
);
|
|
2316
|
+
}), M(R, {
|
|
2317
|
+
attrs: {
|
|
2318
|
+
position: s,
|
|
2319
|
+
label: n.name,
|
|
2320
|
+
hideIcon: !0
|
|
2024
2321
|
}
|
|
2025
|
-
),
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2322
|
+
}), M(Pe, {
|
|
2323
|
+
attrs: {
|
|
2324
|
+
from: a,
|
|
2325
|
+
to: s,
|
|
2326
|
+
render: ({
|
|
2327
|
+
path: u,
|
|
2328
|
+
distance: l,
|
|
2329
|
+
duration: d
|
|
2330
|
+
}) => [M(be, {
|
|
2331
|
+
attrs: {
|
|
2332
|
+
path: u
|
|
2333
|
+
}
|
|
2334
|
+
}), M(Te, {
|
|
2335
|
+
attrs: {
|
|
2336
|
+
position: a,
|
|
2337
|
+
title: r({
|
|
2338
|
+
distance: l,
|
|
2339
|
+
duration: d
|
|
2340
|
+
})
|
|
2341
|
+
}
|
|
2342
|
+
})]
|
|
2343
|
+
}
|
|
2344
|
+
}), M(vn, {
|
|
2345
|
+
attrs: {
|
|
2346
|
+
from: i,
|
|
2347
|
+
to: s,
|
|
2348
|
+
render: ({
|
|
2349
|
+
path: u
|
|
2350
|
+
}) => M(mn, {
|
|
2351
|
+
attrs: {
|
|
2352
|
+
path: u
|
|
2353
|
+
}
|
|
2354
|
+
})
|
|
2355
|
+
}
|
|
2356
|
+
}), M(ze, {
|
|
2357
|
+
attrs: {
|
|
2358
|
+
position: i,
|
|
2359
|
+
registerOverlay: o
|
|
2360
|
+
}
|
|
2361
|
+
})]);
|
|
2362
|
+
})), er = v((t, {
|
|
2363
|
+
emit: e
|
|
2364
|
+
}) => (Q(() => e("mapMounted")), () => {
|
|
2044
2365
|
const {
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
})
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2366
|
+
from: n,
|
|
2367
|
+
passengerPosition: a,
|
|
2368
|
+
title: i,
|
|
2369
|
+
registerOverlay: r
|
|
2370
|
+
} = t, o = C(n);
|
|
2371
|
+
return M("div", [M(k, {
|
|
2372
|
+
attrs: {
|
|
2373
|
+
type: "start",
|
|
2374
|
+
position: o,
|
|
2375
|
+
title: i,
|
|
2376
|
+
registerOverlay: r
|
|
2377
|
+
}
|
|
2378
|
+
}), M(R, {
|
|
2379
|
+
attrs: {
|
|
2380
|
+
position: o,
|
|
2381
|
+
label: n.name,
|
|
2382
|
+
hideIcon: !0
|
|
2383
|
+
}
|
|
2384
|
+
}), M(ze, {
|
|
2385
|
+
attrs: {
|
|
2386
|
+
position: a,
|
|
2387
|
+
registerOverlay: r
|
|
2388
|
+
}
|
|
2389
|
+
})]);
|
|
2390
|
+
})), tr = v((t, {
|
|
2391
|
+
emit: e
|
|
2392
|
+
}) => (Q(() => e("mapMounted")), () => {
|
|
2393
|
+
const {
|
|
2394
|
+
from: n,
|
|
2395
|
+
carPosition: a,
|
|
2396
|
+
passengerPosition: i,
|
|
2397
|
+
title: r,
|
|
2398
|
+
registerOverlay: o
|
|
2399
|
+
} = t, s = C(n);
|
|
2400
|
+
return M("div", [M(Te, {
|
|
2401
|
+
attrs: {
|
|
2402
|
+
position: a,
|
|
2403
|
+
title: r,
|
|
2404
|
+
registerOverlay: o
|
|
2405
|
+
}
|
|
2406
|
+
}), M(k, {
|
|
2407
|
+
attrs: {
|
|
2408
|
+
type: "start",
|
|
2409
|
+
position: s,
|
|
2410
|
+
registerOverlay: o
|
|
2411
|
+
}
|
|
2412
|
+
}), M(R, {
|
|
2413
|
+
attrs: {
|
|
2414
|
+
position: s,
|
|
2415
|
+
label: n.name,
|
|
2416
|
+
hideIcon: !0
|
|
2417
|
+
}
|
|
2418
|
+
}), M(vn, {
|
|
2419
|
+
attrs: {
|
|
2420
|
+
from: i,
|
|
2421
|
+
to: s,
|
|
2422
|
+
render: ({
|
|
2423
|
+
path: u
|
|
2424
|
+
}) => M(mn, {
|
|
2425
|
+
attrs: {
|
|
2426
|
+
path: u
|
|
2427
|
+
}
|
|
2428
|
+
})
|
|
2073
2429
|
}
|
|
2074
|
-
),
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
{ name: "limitBounds", defaultValue: [] },
|
|
2080
|
-
{ name: "rotation", defaultValue: 0 },
|
|
2081
|
-
{ name: "defaultCursor", defaultValue: "" },
|
|
2082
|
-
{ name: "mapStyle", defaultValue: "" },
|
|
2083
|
-
{ name: "features", defaultValue: [] },
|
|
2084
|
-
{ name: "pitch", defaultValue: 0 },
|
|
2085
|
-
{ name: "mask", defaultValue: [] },
|
|
2086
|
-
{ name: "labelRejectMask", defaultValue: !1 }
|
|
2087
|
-
]), re(c, e, i, ["onDragStart", "onDragEnd"]), () => {
|
|
2088
|
-
var g;
|
|
2089
|
-
return m("div", { ref: d, class: za }, (g = n.default) == null ? void 0 : g.call(n));
|
|
2090
|
-
};
|
|
2091
|
-
});
|
|
2092
|
-
let ae = "user";
|
|
2093
|
-
const Za = () => ae, sn = () => ({ executeMapApi: (e) => {
|
|
2094
|
-
ae = "api";
|
|
2095
|
-
try {
|
|
2096
|
-
e(), setTimeout(() => {
|
|
2097
|
-
ae = "user";
|
|
2098
|
-
}, 100);
|
|
2099
|
-
} catch (n) {
|
|
2100
|
-
throw ae = "user", n;
|
|
2101
|
-
}
|
|
2102
|
-
} }), Ta = y(function(e, { slots: n, emit: i }) {
|
|
2103
|
-
const a = e.mapRef, o = L(() => {
|
|
2104
|
-
const { mapRef: c, onDragStart: g, onDragEnd: I, ...M } = e;
|
|
2105
|
-
return M;
|
|
2106
|
-
}), r = o.value, s = w(), u = w(), { executeMapApi: l } = sn(), d = (c) => i(c, { target: u.value });
|
|
2107
|
-
return Mn(u), k(() => {
|
|
2108
|
-
if (u.value || !s.value)
|
|
2109
|
-
return;
|
|
2110
|
-
let c;
|
|
2111
|
-
l(() => {
|
|
2112
|
-
c = new google.maps.Map(s.value, { ...r });
|
|
2113
|
-
}), u.value = c, a == null || a(c);
|
|
2114
|
-
}), ne(
|
|
2115
|
-
() => o.value,
|
|
2116
|
-
(c) => {
|
|
2117
|
-
l(() => {
|
|
2118
|
-
var g;
|
|
2119
|
-
return (g = u.value) == null ? void 0 : g.setOptions({ ...c });
|
|
2120
|
-
});
|
|
2430
|
+
}), M(ze, {
|
|
2431
|
+
attrs: {
|
|
2432
|
+
position: i,
|
|
2433
|
+
size: "small",
|
|
2434
|
+
registerOverlay: o
|
|
2121
2435
|
}
|
|
2122
|
-
)
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
}), Ao = Q(function(e, {
|
|
2127
|
-
slots: n
|
|
2128
|
-
}) {
|
|
2436
|
+
})]);
|
|
2437
|
+
})), nr = v((t, {
|
|
2438
|
+
emit: e
|
|
2439
|
+
}) => (Q(() => e("mapMounted")), () => {
|
|
2129
2440
|
const {
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2441
|
+
to: n,
|
|
2442
|
+
carPosition: a,
|
|
2443
|
+
renderTitle: i,
|
|
2444
|
+
registerOverlay: r
|
|
2445
|
+
} = t, o = C(n);
|
|
2446
|
+
return M("div", [M(k, {
|
|
2447
|
+
attrs: {
|
|
2448
|
+
type: "end",
|
|
2449
|
+
position: o,
|
|
2450
|
+
registerOverlay: r
|
|
2135
2451
|
}
|
|
2136
|
-
})
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2452
|
+
}), M(R, {
|
|
2453
|
+
attrs: {
|
|
2454
|
+
position: a,
|
|
2455
|
+
label: "'WebSter Dental Plaza'",
|
|
2456
|
+
hideIcon: !0
|
|
2457
|
+
}
|
|
2458
|
+
}), M(Pe, {
|
|
2459
|
+
attrs: {
|
|
2460
|
+
from: a,
|
|
2461
|
+
to: o,
|
|
2462
|
+
render: ({
|
|
2463
|
+
path: s,
|
|
2464
|
+
distance: u,
|
|
2465
|
+
duration: l
|
|
2466
|
+
}) => [M(be, {
|
|
2467
|
+
attrs: {
|
|
2468
|
+
path: s
|
|
2469
|
+
}
|
|
2470
|
+
}), M(Te, {
|
|
2471
|
+
attrs: {
|
|
2472
|
+
position: a,
|
|
2473
|
+
title: i({
|
|
2474
|
+
distance: u,
|
|
2475
|
+
duration: l
|
|
2476
|
+
}),
|
|
2477
|
+
registerOverlay: r
|
|
2478
|
+
}
|
|
2479
|
+
})]
|
|
2480
|
+
}
|
|
2481
|
+
})]);
|
|
2482
|
+
})), ir = v((t, {
|
|
2483
|
+
emit: e
|
|
2484
|
+
}) => (Q(() => e("mapMounted")), () => {
|
|
2485
|
+
const {
|
|
2486
|
+
from: n,
|
|
2487
|
+
to: a,
|
|
2488
|
+
registerOverlay: i
|
|
2489
|
+
} = t, r = C(n), o = C(a);
|
|
2490
|
+
return M("div", [M(k, {
|
|
2491
|
+
attrs: {
|
|
2492
|
+
type: "start",
|
|
2493
|
+
position: r,
|
|
2494
|
+
registerOverlay: i
|
|
2495
|
+
}
|
|
2496
|
+
}), M(k, {
|
|
2497
|
+
attrs: {
|
|
2498
|
+
type: "end",
|
|
2499
|
+
position: o,
|
|
2500
|
+
registerOverlay: i
|
|
2501
|
+
}
|
|
2502
|
+
}), M(R, {
|
|
2503
|
+
attrs: {
|
|
2504
|
+
position: r,
|
|
2505
|
+
label: n.name,
|
|
2506
|
+
hideIcon: !0
|
|
2507
|
+
}
|
|
2508
|
+
}), M(R, {
|
|
2509
|
+
attrs: {
|
|
2510
|
+
position: o,
|
|
2511
|
+
label: a.name,
|
|
2512
|
+
hideIcon: !0
|
|
2513
|
+
}
|
|
2514
|
+
})]);
|
|
2515
|
+
})), ar = v((t, {
|
|
2516
|
+
emit: e
|
|
2517
|
+
}) => (Q(() => e("mapMounted")), () => {
|
|
2518
|
+
const {
|
|
2519
|
+
from: n,
|
|
2520
|
+
to: a,
|
|
2521
|
+
registerOverlay: i
|
|
2522
|
+
} = t, r = C(n), o = C(a);
|
|
2523
|
+
return M("div", [M(k, {
|
|
2524
|
+
attrs: {
|
|
2525
|
+
type: "start",
|
|
2526
|
+
position: r,
|
|
2527
|
+
registerOverlay: i
|
|
2528
|
+
}
|
|
2529
|
+
}), M(k, {
|
|
2530
|
+
attrs: {
|
|
2531
|
+
type: "end",
|
|
2532
|
+
position: o,
|
|
2533
|
+
registerOverlay: i
|
|
2534
|
+
}
|
|
2535
|
+
}), M(R, {
|
|
2536
|
+
attrs: {
|
|
2537
|
+
position: r,
|
|
2538
|
+
label: n.name,
|
|
2539
|
+
hideIcon: !0
|
|
2540
|
+
}
|
|
2541
|
+
}), M(R, {
|
|
2542
|
+
attrs: {
|
|
2543
|
+
position: o,
|
|
2544
|
+
label: a.name,
|
|
2545
|
+
hideIcon: !0
|
|
2546
|
+
}
|
|
2547
|
+
}), M(Pe, {
|
|
2548
|
+
attrs: {
|
|
2549
|
+
from: r,
|
|
2550
|
+
to: o,
|
|
2551
|
+
render: ({
|
|
2552
|
+
path: s
|
|
2553
|
+
}) => M(be, {
|
|
2554
|
+
attrs: {
|
|
2555
|
+
path: s,
|
|
2556
|
+
done: !0
|
|
2557
|
+
}
|
|
2558
|
+
})
|
|
2559
|
+
}
|
|
2560
|
+
})]);
|
|
2561
|
+
})), Zr = J((t, {
|
|
2562
|
+
emit: e
|
|
2563
|
+
}) => {
|
|
2564
|
+
const {
|
|
2565
|
+
from: n,
|
|
2566
|
+
interval: a,
|
|
2567
|
+
registerOverlay: i,
|
|
2568
|
+
mapRef: r,
|
|
2569
|
+
getDriverPosition: o,
|
|
2570
|
+
renderStartSerivceTitle: s,
|
|
2571
|
+
renderInServiceTitle: u
|
|
2572
|
+
} = t, {
|
|
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))
|
|
2579
|
+
return;
|
|
2580
|
+
const p = setInterval(() => {
|
|
2581
|
+
o().then((f) => d.value = f);
|
|
2582
|
+
}, a);
|
|
2583
|
+
m(() => clearInterval(p));
|
|
2584
|
+
}, {
|
|
2585
|
+
immediate: !0
|
|
2586
|
+
}), () => {
|
|
2156
2587
|
const {
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
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, {
|
|
2597
|
+
attrs: {
|
|
2598
|
+
center: C(I),
|
|
2599
|
+
zoom: 13,
|
|
2600
|
+
mapRef: r
|
|
2601
|
+
}
|
|
2602
|
+
}, [g === "dispatching" ? M(at, {
|
|
2603
|
+
attrs: {
|
|
2604
|
+
from: I,
|
|
2605
|
+
title: p,
|
|
2606
|
+
registerOverlay: i
|
|
2607
|
+
},
|
|
2608
|
+
on: {
|
|
2609
|
+
mapMounted: c
|
|
2610
|
+
}
|
|
2611
|
+
}) : g === "book-dispatching" ? M(at, {
|
|
2612
|
+
attrs: {
|
|
2613
|
+
from: I,
|
|
2614
|
+
title: f,
|
|
2615
|
+
registerOverlay: i
|
|
2616
|
+
},
|
|
2617
|
+
on: {
|
|
2618
|
+
mapMounted: c
|
|
2619
|
+
}
|
|
2620
|
+
}) : g === "dispatched" || g === "driverStartService" || g === "book-driverStartService" ? M(qa, {
|
|
2621
|
+
attrs: {
|
|
2622
|
+
from: I,
|
|
2623
|
+
carPosition: h,
|
|
2624
|
+
passengerPosition: l.value,
|
|
2625
|
+
renderTitle: s,
|
|
2626
|
+
registerOverlay: i
|
|
2627
|
+
},
|
|
2628
|
+
on: {
|
|
2629
|
+
mapMounted: c
|
|
2630
|
+
}
|
|
2631
|
+
}) : g === "book-dispatched" ? M(er, {
|
|
2632
|
+
attrs: {
|
|
2633
|
+
from: I,
|
|
2634
|
+
passengerPosition: l.value,
|
|
2635
|
+
title: j,
|
|
2636
|
+
registerOverlay: i
|
|
2637
|
+
},
|
|
2638
|
+
on: {
|
|
2639
|
+
mapMounted: c
|
|
2640
|
+
}
|
|
2641
|
+
}) : g === "inService" ? M(nr, {
|
|
2642
|
+
attrs: {
|
|
2643
|
+
to: m,
|
|
2644
|
+
carPosition: h,
|
|
2645
|
+
renderTitle: u,
|
|
2646
|
+
registerOverlay: i
|
|
2647
|
+
},
|
|
2648
|
+
on: {
|
|
2649
|
+
mapMounted: c
|
|
2650
|
+
}
|
|
2651
|
+
}) : g === "driverArrived" ? M(tr, {
|
|
2652
|
+
attrs: {
|
|
2653
|
+
from: I,
|
|
2654
|
+
carPosition: h,
|
|
2655
|
+
passengerPosition: l.value,
|
|
2656
|
+
title: y,
|
|
2657
|
+
registerOverlay: i
|
|
2658
|
+
},
|
|
2659
|
+
on: {
|
|
2660
|
+
mapMounted: c
|
|
2661
|
+
}
|
|
2662
|
+
}) : g === "canceled" ? M(ir, {
|
|
2663
|
+
attrs: {
|
|
2664
|
+
from: I,
|
|
2665
|
+
to: m,
|
|
2666
|
+
registerOverlay: i
|
|
2667
|
+
}
|
|
2668
|
+
}) : g === "endService" ? M(ar, {
|
|
2669
|
+
attrs: {
|
|
2670
|
+
from: I,
|
|
2671
|
+
to: m,
|
|
2672
|
+
registerOverlay: i
|
|
2673
|
+
},
|
|
2674
|
+
on: {
|
|
2675
|
+
mapMounted: c
|
|
2676
|
+
}
|
|
2677
|
+
}) : null]);
|
|
2161
2678
|
};
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
} = e;
|
|
2174
|
-
if (d === ee.LOADING)
|
|
2175
|
-
return (f = n.loading) == null ? void 0 : f.call(n);
|
|
2176
|
-
if (d === ee.FAILURE)
|
|
2177
|
-
return (p = n.fallback) == null ? void 0 : p.call(n);
|
|
2178
|
-
const M = (A = n.default) == null ? void 0 : A.call(n);
|
|
2179
|
-
switch (s) {
|
|
2180
|
-
case "gmap":
|
|
2181
|
-
return m(Ta, {
|
|
2182
|
-
attrs: {
|
|
2183
|
-
mapRef: c,
|
|
2184
|
-
mapId: u,
|
|
2185
|
-
center: g ? C(g) : void 0,
|
|
2186
|
-
zoom: I
|
|
2187
|
-
},
|
|
2188
|
-
on: {
|
|
2189
|
-
dragEnd: o
|
|
2190
|
-
}
|
|
2191
|
-
}, [M]);
|
|
2192
|
-
default:
|
|
2193
|
-
return m(Ea, {
|
|
2194
|
-
attrs: {
|
|
2195
|
-
mapRef: c,
|
|
2196
|
-
vectorMapForeign: _i(l),
|
|
2197
|
-
center: g,
|
|
2198
|
-
zoom: I
|
|
2199
|
-
},
|
|
2200
|
-
on: {
|
|
2201
|
-
dragEnd: r
|
|
2202
|
-
}
|
|
2203
|
-
}, [M]);
|
|
2679
|
+
}).props(["bookDispatchedTitle", "bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPosition", "interval", "loading", "mapRef", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]), Rr = v(function(e, {
|
|
2680
|
+
emit: n
|
|
2681
|
+
}) {
|
|
2682
|
+
return () => M("div", [e.places.map((a) => M(R, {
|
|
2683
|
+
attrs: {
|
|
2684
|
+
position: C(a),
|
|
2685
|
+
label: a.name,
|
|
2686
|
+
textAlign: "left"
|
|
2687
|
+
},
|
|
2688
|
+
on: {
|
|
2689
|
+
click: () => n("click", a)
|
|
2204
2690
|
}
|
|
2205
|
-
};
|
|
2206
|
-
})
|
|
2691
|
+
}))]);
|
|
2692
|
+
}), te = () => {
|
|
2207
2693
|
const t = D(0);
|
|
2208
2694
|
return { idx: t, update: () => {
|
|
2209
2695
|
t.value += 1;
|
|
2210
2696
|
} };
|
|
2211
|
-
},
|
|
2212
|
-
const { city: e } = t, n = D(e), { readyPromise:
|
|
2213
|
-
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();
|
|
2214
2700
|
}, l = (d) => {
|
|
2215
|
-
|
|
2701
|
+
i.value = d, o();
|
|
2216
2702
|
};
|
|
2217
2703
|
return b(
|
|
2218
2704
|
() => s.value,
|
|
2219
2705
|
async () => {
|
|
2220
|
-
if (!
|
|
2706
|
+
if (!i.value)
|
|
2221
2707
|
return;
|
|
2222
|
-
await
|
|
2708
|
+
await a, new AMap.PlaceSearch({ city: n.value.name }).search(i.value, (c, g) => {
|
|
2223
2709
|
switch (c) {
|
|
2224
2710
|
case "complete": {
|
|
2225
|
-
|
|
2711
|
+
r.value = g.poiList.pois.map(
|
|
2226
2712
|
(I) => ({
|
|
2227
2713
|
lat: I.location.lat,
|
|
2228
2714
|
lng: I.location.lng,
|
|
@@ -2233,7 +2719,7 @@ const Za = () => ae, sn = () => ({ executeMapApi: (e) => {
|
|
|
2233
2719
|
return;
|
|
2234
2720
|
}
|
|
2235
2721
|
case "no_data":
|
|
2236
|
-
|
|
2722
|
+
r.value = [];
|
|
2237
2723
|
return;
|
|
2238
2724
|
default:
|
|
2239
2725
|
throw g;
|
|
@@ -2243,64 +2729,64 @@ const Za = () => ae, sn = () => ({ executeMapApi: (e) => {
|
|
|
2243
2729
|
{
|
|
2244
2730
|
immediate: !0
|
|
2245
2731
|
}
|
|
2246
|
-
), { setKeyword: l, setCity: u, autoCompletePlaces:
|
|
2247
|
-
},
|
|
2248
|
-
const { city: e } = t, n = D({ ...e }), { readyPromise:
|
|
2249
|
-
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();
|
|
2250
2736
|
}, l = (c) => {
|
|
2251
|
-
|
|
2737
|
+
i.value = c, o();
|
|
2252
2738
|
}, d = document.createElement("div");
|
|
2253
2739
|
return b(
|
|
2254
2740
|
() => s.value,
|
|
2255
2741
|
async () => {
|
|
2256
|
-
if (!
|
|
2742
|
+
if (!i.value)
|
|
2257
2743
|
return;
|
|
2258
|
-
await
|
|
2744
|
+
await a, new google.maps.places.PlacesService(d).textSearch(
|
|
2259
2745
|
{
|
|
2260
|
-
query:
|
|
2746
|
+
query: i.value,
|
|
2261
2747
|
bounds: n.value.bound
|
|
2262
2748
|
},
|
|
2263
2749
|
(g, I) => {
|
|
2264
2750
|
switch (I) {
|
|
2265
2751
|
case google.maps.places.PlacesServiceStatus.OK:
|
|
2266
|
-
|
|
2267
|
-
({ geometry:
|
|
2268
|
-
var
|
|
2752
|
+
r.value = g.map(
|
|
2753
|
+
({ geometry: m, name: p, formatted_address: f }) => {
|
|
2754
|
+
var j, y, h, z;
|
|
2269
2755
|
return {
|
|
2270
|
-
lng: (
|
|
2271
|
-
lat: (
|
|
2272
|
-
name:
|
|
2273
|
-
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 : ""
|
|
2274
2760
|
};
|
|
2275
2761
|
}
|
|
2276
2762
|
);
|
|
2277
2763
|
return;
|
|
2278
2764
|
case google.maps.places.PlacesServiceStatus.ZERO_RESULTS:
|
|
2279
2765
|
case google.maps.places.PlacesServiceStatus.NOT_FOUND:
|
|
2280
|
-
|
|
2766
|
+
r.value = [];
|
|
2281
2767
|
return;
|
|
2282
2768
|
}
|
|
2283
2769
|
}
|
|
2284
2770
|
);
|
|
2285
2771
|
}
|
|
2286
|
-
), { setKeyword: l, setCity: u, autoCompletePlaces:
|
|
2287
|
-
},
|
|
2288
|
-
const { supplier: e } =
|
|
2289
|
-
return e === "gmap" ?
|
|
2290
|
-
},
|
|
2291
|
-
var
|
|
2292
|
-
const { cityNameRef: e, onChange: n } = t,
|
|
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 : "" });
|
|
2293
2779
|
return b(
|
|
2294
2780
|
() => e.value,
|
|
2295
|
-
(
|
|
2296
|
-
const
|
|
2297
|
-
|
|
2298
|
-
}
|
|
2299
|
-
),
|
|
2300
|
-
},
|
|
2301
|
-
var
|
|
2302
|
-
const { cityNameRef: e, onChange: n } = t, { readyPromise:
|
|
2303
|
-
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 : "",
|
|
2304
2790
|
bound: {
|
|
2305
2791
|
east: 0,
|
|
2306
2792
|
north: 0,
|
|
@@ -2308,387 +2794,369 @@ const Za = () => ae, sn = () => ({ executeMapApi: (e) => {
|
|
|
2308
2794
|
west: 0
|
|
2309
2795
|
}
|
|
2310
2796
|
});
|
|
2311
|
-
return
|
|
2797
|
+
return hn(async () => {
|
|
2312
2798
|
var c, g;
|
|
2313
|
-
const
|
|
2314
|
-
if (!
|
|
2799
|
+
const o = e.value;
|
|
2800
|
+
if (!o)
|
|
2315
2801
|
return;
|
|
2316
|
-
await
|
|
2802
|
+
await a;
|
|
2317
2803
|
const s = new google.maps.Geocoder(), { results: u } = await s.geocode({
|
|
2318
|
-
address:
|
|
2804
|
+
address: o,
|
|
2319
2805
|
componentRestrictions: {
|
|
2320
2806
|
administrativeArea: "administrative_area_level_1"
|
|
2321
2807
|
},
|
|
2322
|
-
language:
|
|
2808
|
+
language: xe
|
|
2323
2809
|
});
|
|
2324
2810
|
if (u.length !== 1)
|
|
2325
2811
|
throw new Error("MyError: multiple city found");
|
|
2326
2812
|
const { geometry: l } = u[0], d = (g = (c = l.bounds) == null ? void 0 : c.toJSON()) != null ? g : l.viewport.toJSON();
|
|
2327
|
-
|
|
2328
|
-
}),
|
|
2329
|
-
},
|
|
2330
|
-
const { supplier: e } =
|
|
2331
|
-
return e === "gmap" ?
|
|
2332
|
-
},
|
|
2333
|
-
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({
|
|
2334
2820
|
cityNameRef: e,
|
|
2335
|
-
onChange: (s) =>
|
|
2336
|
-
}), { autoCompletePlaces:
|
|
2337
|
-
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) => {
|
|
2338
2824
|
const u = s.target;
|
|
2339
|
-
|
|
2825
|
+
i(u.value);
|
|
2340
2826
|
} };
|
|
2341
|
-
},
|
|
2342
|
-
const { mapRef: e,
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
add: (u) => {
|
|
2346
|
-
i.add(u);
|
|
2347
|
-
},
|
|
2348
|
-
remove: (u) => {
|
|
2349
|
-
i.delete(u);
|
|
2350
|
-
}
|
|
2351
|
-
}, r = () => {
|
|
2352
|
-
var M;
|
|
2353
|
-
const u = e.value;
|
|
2354
|
-
if (!u)
|
|
2355
|
-
return;
|
|
2356
|
-
const l = window.innerWidth / 100, [d, c, g, I] = (M = t.padding) != null ? M : [0, 0, 0, 0];
|
|
2357
|
-
console.log([...i]), u.setFitView([...i], !1, [d * l, g * l, I * l, c * l]);
|
|
2358
|
-
};
|
|
2359
|
-
return re(
|
|
2360
|
-
e,
|
|
2361
|
-
{},
|
|
2362
|
-
() => {
|
|
2363
|
-
n && (a && clearTimeout(a), a = setTimeout(() => {
|
|
2364
|
-
a = void 0, r();
|
|
2365
|
-
}, n));
|
|
2366
|
-
},
|
|
2367
|
-
["onDragEnd"]
|
|
2368
|
-
), { registerFitVeiw: o, setFitView: r };
|
|
2369
|
-
};
|
|
2370
|
-
class Ha extends Set {
|
|
2371
|
-
getBound() {
|
|
2372
|
-
const e = new google.maps.LatLngBounds();
|
|
2373
|
-
for (const n of this.values()) {
|
|
2374
|
-
const i = n instanceof google.maps.Marker ? n.getPosition() : n.position;
|
|
2375
|
-
i && e.extend(i);
|
|
2376
|
-
}
|
|
2377
|
-
return e;
|
|
2378
|
-
}
|
|
2379
|
-
}
|
|
2380
|
-
const Va = (t) => {
|
|
2381
|
-
const { mapRef: e, autoFitTimeout: n } = t, { executeMapApi: i } = sn(), a = new Ha();
|
|
2382
|
-
let o;
|
|
2383
|
-
const r = {
|
|
2384
|
-
add: (d) => {
|
|
2385
|
-
a.add(d);
|
|
2386
|
-
},
|
|
2387
|
-
remove: (d) => {
|
|
2388
|
-
a.delete(d);
|
|
2389
|
-
}
|
|
2390
|
-
}, s = () => {
|
|
2391
|
-
var p;
|
|
2392
|
-
const d = e.value;
|
|
2393
|
-
if (!d)
|
|
2394
|
-
return;
|
|
2395
|
-
const c = window.innerWidth / 100, [g, I, M, f] = (p = t.padding) != null ? p : [0, 0, 0, 0];
|
|
2396
|
-
i(
|
|
2397
|
-
() => d.fitBounds(a.getBound(), {
|
|
2398
|
-
top: g * c,
|
|
2399
|
-
right: I * c,
|
|
2400
|
-
bottom: M * c,
|
|
2401
|
-
left: f * c
|
|
2402
|
-
})
|
|
2403
|
-
);
|
|
2404
|
-
}, u = (d) => {
|
|
2405
|
-
const c = Za();
|
|
2406
|
-
console.log("handleMoveEndOrZomEnd name, eventSource = ", d, c), !(!n || c !== "user") && (o && clearTimeout(o), o = setTimeout(() => {
|
|
2407
|
-
o = void 0, s();
|
|
2408
|
-
}, n));
|
|
2409
|
-
}, l = ki(u, Ba);
|
|
2410
|
-
return q(e, {}, u, [
|
|
2411
|
-
"onDragEnd"
|
|
2412
|
-
]), q(e, {}, l, [
|
|
2413
|
-
"onZoom_changed"
|
|
2414
|
-
]), { registerFitVeiw: r, setFitView: s };
|
|
2415
|
-
}, Qa = (t) => {
|
|
2416
|
-
const { supplier: e } = j();
|
|
2417
|
-
return e === "gmap" ? Va(t) : Ya(t);
|
|
2418
|
-
}, So = (t) => Qa({ ...t, padding: [25, 20, 15, 15] }), Ja = (t) => {
|
|
2419
|
-
const { onChange: e, onLoad: n } = t != null ? t : {}, i = D(!1), a = D(!1), o = D(), r = D({
|
|
2420
|
-
accuracy: 0,
|
|
2421
|
-
altitude: 0,
|
|
2422
|
-
altitudeAccuracy: 0,
|
|
2423
|
-
heading: 0,
|
|
2424
|
-
latitude: 0,
|
|
2425
|
-
longitude: 0,
|
|
2426
|
-
speed: 0
|
|
2427
|
-
}), s = D([r.value.longitude, r.value.latitude]);
|
|
2428
|
-
return b(
|
|
2429
|
-
() => !0,
|
|
2430
|
-
(u, l, d) => {
|
|
2431
|
-
i.value = !0;
|
|
2432
|
-
const c = navigator.geolocation.watchPosition(
|
|
2433
|
-
(g) => {
|
|
2434
|
-
const I = g.coords, M = [g.coords.longitude, g.coords.latitude];
|
|
2435
|
-
r.value = I, s.value = M, i.value && (i.value = !1, a.value = !0, n == null || n({ position: M, coordinate: I })), e == null || e({ position: M, coordinate: I });
|
|
2436
|
-
},
|
|
2437
|
-
(g) => {
|
|
2438
|
-
i.value = !1, o.value = g, console.log("errorRef = ", o);
|
|
2439
|
-
},
|
|
2440
|
-
// todo 要不要 timeout
|
|
2441
|
-
{ timeout: 5e3, maximumAge: 0, enableHighAccuracy: !0 }
|
|
2442
|
-
);
|
|
2443
|
-
d(() => navigator.geolocation.clearWatch(c));
|
|
2444
|
-
},
|
|
2445
|
-
{ immediate: !0 }
|
|
2446
|
-
), {
|
|
2447
|
-
geoError: o,
|
|
2448
|
-
geoPosition: s,
|
|
2449
|
-
geoCoordinate: r,
|
|
2450
|
-
geoLoading: i,
|
|
2451
|
-
geoReady: a
|
|
2452
|
-
};
|
|
2453
|
-
}, Xa = (t) => {
|
|
2454
|
-
const { mapRef: e, onChange: n } = t, i = D([0, 0]), a = D(!1), o = () => {
|
|
2455
|
-
Promise.resolve().then(() => a.value = !0);
|
|
2456
|
-
}, 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 }) => {
|
|
2457
2831
|
var c;
|
|
2458
|
-
|
|
2832
|
+
i.value = !1;
|
|
2459
2833
|
const { lng: l, lat: d } = u.getCenter();
|
|
2460
|
-
|
|
2834
|
+
a.value = [l, d], (c = Et(n)) == null || c([l, d]);
|
|
2461
2835
|
};
|
|
2462
|
-
return
|
|
2836
|
+
return ae(e, {}, r, [
|
|
2463
2837
|
"onDragStart"
|
|
2464
|
-
]),
|
|
2838
|
+
]), ae(e, {}, o, [
|
|
2465
2839
|
"onDragEnd"
|
|
2466
|
-
]), { centerRef:
|
|
2467
|
-
},
|
|
2468
|
-
const { mapRef: e, onChange: n } = t,
|
|
2469
|
-
Promise.resolve().then(() =>
|
|
2470
|
-
},
|
|
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 () => {
|
|
2471
2845
|
var d, c;
|
|
2472
|
-
|
|
2846
|
+
i.value = !1;
|
|
2473
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();
|
|
2474
|
-
|
|
2848
|
+
a.value = [u, l], (c = Et(n)) == null || c([u, l]);
|
|
2475
2849
|
};
|
|
2476
|
-
return
|
|
2850
|
+
return K(e, {}, r, [
|
|
2477
2851
|
"onDragStart"
|
|
2478
|
-
]),
|
|
2852
|
+
]), K(e, {}, o, [
|
|
2479
2853
|
"onDragEnd"
|
|
2480
|
-
]), { centerRef:
|
|
2481
|
-
},
|
|
2482
|
-
const { supplier: e } =
|
|
2483
|
-
return e === "gmap" ?
|
|
2484
|
-
},
|
|
2485
|
-
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({
|
|
2486
2860
|
lng: e.value[0],
|
|
2487
2861
|
lat: e.value[1],
|
|
2488
2862
|
name: "",
|
|
2489
2863
|
cityName: void 0
|
|
2490
2864
|
});
|
|
2491
2865
|
return b(
|
|
2492
|
-
() =>
|
|
2866
|
+
() => i.value,
|
|
2493
2867
|
async () => {
|
|
2494
|
-
await
|
|
2495
|
-
const s = new AMap.Geocoder({ lang:
|
|
2868
|
+
await a;
|
|
2869
|
+
const s = new AMap.Geocoder({ lang: xe }), [u, l] = e.value;
|
|
2496
2870
|
s.getAddress(new AMap.LngLat(u, l), (d, c) => {
|
|
2497
2871
|
switch (d) {
|
|
2498
2872
|
case "complete": {
|
|
2499
|
-
const { formattedAddress: g, addressComponent: I } = c.regeocode,
|
|
2500
|
-
|
|
2873
|
+
const { formattedAddress: g, addressComponent: I } = c.regeocode, m = I.city ? I.city : I.province;
|
|
2874
|
+
o.name = g, o.lng = u, o.lat = l, o.cityName = m, n == null || n({ lng: u, lat: l, name: g, cityName: m });
|
|
2501
2875
|
return;
|
|
2502
2876
|
}
|
|
2503
2877
|
case "no_data":
|
|
2504
|
-
|
|
2878
|
+
o.name = "", n == null || n({ lng: u, lat: l, name: "" });
|
|
2505
2879
|
return;
|
|
2506
2880
|
case "error":
|
|
2507
2881
|
throw c;
|
|
2508
2882
|
}
|
|
2509
2883
|
});
|
|
2510
2884
|
}
|
|
2511
|
-
), { place:
|
|
2512
|
-
},
|
|
2513
|
-
const { pointRef: e, onChange: n } = t, { readyPromise:
|
|
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: "" });
|
|
2514
2888
|
return b(
|
|
2515
|
-
() =>
|
|
2889
|
+
() => i.value,
|
|
2516
2890
|
async () => {
|
|
2517
|
-
await
|
|
2518
|
-
const s = new google.maps.Geocoder(), [u, l] = e.value, { results: d } = await s.geocode({ language:
|
|
2519
|
-
|
|
2520
|
-
}
|
|
2521
|
-
), { place:
|
|
2522
|
-
},
|
|
2523
|
-
const { supplier: e } =
|
|
2524
|
-
return e === "gmap" ?
|
|
2525
|
-
},
|
|
2526
|
-
let n = 1 / 0,
|
|
2527
|
-
for (const
|
|
2528
|
-
const
|
|
2529
|
-
|
|
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);
|
|
2530
2904
|
}
|
|
2531
|
-
return { shortestPlace:
|
|
2532
|
-
},
|
|
2533
|
-
let n = 1 / 0,
|
|
2534
|
-
for (const
|
|
2535
|
-
const
|
|
2536
|
-
|
|
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);
|
|
2537
2911
|
}
|
|
2538
|
-
return { shortestPlace:
|
|
2539
|
-
},
|
|
2540
|
-
const { pointRef: e, getRecomendPlace: n, getLimit:
|
|
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 });
|
|
2541
2915
|
return b(
|
|
2542
2916
|
() => u.value,
|
|
2543
2917
|
async () => {
|
|
2544
2918
|
await d;
|
|
2545
|
-
const
|
|
2546
|
-
s.value =
|
|
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 });
|
|
2547
2921
|
}
|
|
2548
2922
|
), { recomendPlace: I, placeCandidates: s, updateRecomandPlace: l, updatePlace: g };
|
|
2549
|
-
},
|
|
2550
|
-
const { pointRef: e, getRecomendPlace: n, getLimit:
|
|
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 });
|
|
2551
2925
|
return b(
|
|
2552
2926
|
() => u.value,
|
|
2553
2927
|
async () => {
|
|
2554
2928
|
await d;
|
|
2555
|
-
const
|
|
2556
|
-
s.value =
|
|
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 });
|
|
2557
2931
|
}
|
|
2558
2932
|
), { recomendPlace: I, placeCandidates: s, updateRecomandPlace: l, updatePlace: g };
|
|
2559
|
-
},
|
|
2560
|
-
const { supplier: e } =
|
|
2561
|
-
return e === "gmap" ?
|
|
2562
|
-
},
|
|
2563
|
-
var
|
|
2933
|
+
}, vr = (t) => {
|
|
2934
|
+
const { supplier: e } = A();
|
|
2935
|
+
return e === "gmap" ? pr(t) : fr(t);
|
|
2936
|
+
}, Gr = (t) => {
|
|
2937
|
+
var Ee, Ze;
|
|
2564
2938
|
const {
|
|
2565
2939
|
mapRef: e,
|
|
2566
|
-
|
|
2940
|
+
geoDefaultPosition: n,
|
|
2941
|
+
getRecomendPlace: a,
|
|
2567
2942
|
defaultCenterPoint: i,
|
|
2568
|
-
recomendPlaceDragLimit:
|
|
2943
|
+
recomendPlaceDragLimit: r,
|
|
2569
2944
|
recomendPlaceGeoLimit: o,
|
|
2570
|
-
onLoadGeoLocation:
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2945
|
+
onLoadGeoLocation: s,
|
|
2946
|
+
onLoadDefaultGeoLocation: u,
|
|
2947
|
+
onChangeByDrag: l,
|
|
2948
|
+
onChangeGeoLocation: d,
|
|
2949
|
+
onChangePlace: c,
|
|
2950
|
+
onChangeRecomandPlace: g
|
|
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,
|
|
2578
2954
|
name: "",
|
|
2579
2955
|
cityName: void 0
|
|
2580
|
-
}),
|
|
2581
|
-
|
|
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();
|
|
2958
|
+
}, y = (N) => {
|
|
2959
|
+
f.source = "api", m.lng = N.lng, m.lat = N.lat, m.name = N.name;
|
|
2582
2960
|
};
|
|
2583
|
-
i &&
|
|
2584
|
-
|
|
2961
|
+
i && I.then(() => {
|
|
2962
|
+
f.source = "default", O();
|
|
2585
2963
|
});
|
|
2586
|
-
const { geoLoading:
|
|
2587
|
-
|
|
2588
|
-
|
|
2964
|
+
const { geoLoading: h, geoError: z, geoPosition: Y, geoCoordinate: S, geoReady: Z } = Ft({
|
|
2965
|
+
geoDefaultPosition: n,
|
|
2966
|
+
onLoad: async (N) => {
|
|
2967
|
+
i || (await I, f.source = "geo", m.lng = N.position[0], m.lat = N.position[1], O()), s == null || s(N);
|
|
2968
|
+
},
|
|
2969
|
+
onLoadDefault: async (N) => {
|
|
2970
|
+
i || (await I, f.source = "geo", m.lng = N.position[0], m.lat = N.position[1], O()), u == null || u(N);
|
|
2589
2971
|
},
|
|
2590
|
-
onChange:
|
|
2591
|
-
}), { isDragging:
|
|
2972
|
+
onChange: d
|
|
2973
|
+
}), { isDragging: H } = Ir({
|
|
2592
2974
|
mapRef: e,
|
|
2593
|
-
onChange: (
|
|
2594
|
-
|
|
2595
|
-
}
|
|
2596
|
-
}), { updatePlace:
|
|
2597
|
-
pointRef:
|
|
2598
|
-
context:
|
|
2599
|
-
getRecomendPlace:
|
|
2600
|
-
getLimit: (
|
|
2601
|
-
const
|
|
2602
|
-
switch (
|
|
2975
|
+
onChange: (N) => {
|
|
2976
|
+
f.source = "drag", m.lng = N[0], m.lat = N[1], O(), l == null || l(N);
|
|
2977
|
+
}
|
|
2978
|
+
}), { updatePlace: O, updateRecomandPlace: Ln, placeCandidates: Nn } = vr({
|
|
2979
|
+
pointRef: p,
|
|
2980
|
+
context: f,
|
|
2981
|
+
getRecomendPlace: a,
|
|
2982
|
+
getLimit: (N) => {
|
|
2983
|
+
const Re = N == null ? void 0 : N.source;
|
|
2984
|
+
switch (Re) {
|
|
2603
2985
|
case "drag":
|
|
2604
2986
|
case "api":
|
|
2605
|
-
return
|
|
2987
|
+
return r;
|
|
2606
2988
|
case "geo":
|
|
2607
2989
|
case "default":
|
|
2608
2990
|
return o;
|
|
2609
2991
|
default:
|
|
2610
|
-
throw new Error(`MyError: should not call getLimit on source: ${
|
|
2992
|
+
throw new Error(`MyError: should not call getLimit on source: ${Re}`);
|
|
2611
2993
|
}
|
|
2612
2994
|
},
|
|
2613
|
-
onChangePlace: (
|
|
2614
|
-
Object.assign(
|
|
2995
|
+
onChangePlace: (N) => {
|
|
2996
|
+
Object.assign(m, { ...N }), f.source !== "recomend" && Ln(), c == null || c(N);
|
|
2615
2997
|
},
|
|
2616
|
-
onChange: (
|
|
2617
|
-
|
|
2998
|
+
onChange: (N) => {
|
|
2999
|
+
f.source = "recomend", Object.assign(m, { ...N }), O(), g == null || g(N);
|
|
2618
3000
|
}
|
|
2619
3001
|
});
|
|
2620
3002
|
return {
|
|
2621
|
-
isDragging:
|
|
2622
|
-
geoLoading:
|
|
2623
|
-
geoError:
|
|
2624
|
-
geoPosition:
|
|
2625
|
-
geoCoordinate:
|
|
2626
|
-
geoReady:
|
|
2627
|
-
centerPlace:
|
|
2628
|
-
centerPoint:
|
|
2629
|
-
placeCandidates:
|
|
2630
|
-
setCenterPlaceByRecomand:
|
|
3003
|
+
isDragging: H,
|
|
3004
|
+
geoLoading: h,
|
|
3005
|
+
geoError: z,
|
|
3006
|
+
geoPosition: Y,
|
|
3007
|
+
geoCoordinate: S,
|
|
3008
|
+
geoReady: Z,
|
|
3009
|
+
centerPlace: m,
|
|
3010
|
+
centerPoint: p,
|
|
3011
|
+
placeCandidates: Nn,
|
|
3012
|
+
setCenterPlaceByRecomand: j,
|
|
3013
|
+
setCenterByPlace: y
|
|
2631
3014
|
};
|
|
2632
|
-
},
|
|
2633
|
-
const t =
|
|
2634
|
-
return { mapRef: t, panTo: (
|
|
2635
|
-
var
|
|
2636
|
-
return (
|
|
2637
|
-
}, setMap: (
|
|
2638
|
-
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;
|
|
2639
3022
|
} };
|
|
2640
|
-
},
|
|
2641
|
-
const t =
|
|
2642
|
-
return { mapRef: t, panTo: (
|
|
2643
|
-
var
|
|
2644
|
-
return (
|
|
2645
|
-
}, setMap: (
|
|
2646
|
-
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;
|
|
2647
3030
|
} };
|
|
2648
|
-
},
|
|
2649
|
-
const { supplier: t } =
|
|
2650
|
-
return t === "gmap" ?
|
|
2651
|
-
},
|
|
2652
|
-
const {
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
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);
|
|
2656
3123
|
} };
|
|
2657
|
-
},
|
|
2658
|
-
const { status: t } =
|
|
2659
|
-
return { apiMapDistance: (n,
|
|
2660
|
-
if (t ===
|
|
2661
|
-
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));
|
|
2662
3129
|
} };
|
|
2663
|
-
},
|
|
2664
|
-
const { supplier: t } =
|
|
2665
|
-
return t === "gmap" ?
|
|
3130
|
+
}, Ur = () => {
|
|
3131
|
+
const { supplier: t } = A();
|
|
3132
|
+
return t === "gmap" ? xr() : Cr();
|
|
2666
3133
|
};
|
|
2667
3134
|
export {
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
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,
|
|
3143
|
+
R as PlaceCircle,
|
|
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
|
|
2694
3162
|
};
|