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