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