@heycar/heycars-map 0.2.9 → 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/DemoBusinessTaxiEnd.d.ts +4 -1
- 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 +2 -1
- package/dist/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.d.ts +4 -3
- package/dist/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +2 -1
- 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 +6 -6
- 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.js +644 -628
- 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 +3 -3
- package/src/Demo/DemoBusinessRecomendPlace.tsx +42 -12
- package/src/Demo/DemoBusinessTaxiEnd.tsx +34 -9
- package/src/api/contants.ts +3 -0
- package/src/business-components/AddressBox/AddressBox.tsx +4 -1
- package/src/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.tsx +8 -3
- package/src/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.tsx +21 -11
- package/src/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.tsx +3 -0
- 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/useMapLog.ts +12 -0
- package/src/hooks/useMapPlace.ts +8 -3
- package/src/types/amap/geocoder.d.ts +2 -0
- package/src/types/interface.ts +1 -1
- package/src/utils/helper.ts +5 -0
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
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+5qSt5ZyG5b2iPC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxjaXJjbGUgaWQ9InBhdGgtMSIgY3g9IjQuNSIgY3k9IjkuNSIgc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RoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLpppbpobUt5Y2z5pe255So6L2mLeaLluWKqOWFieaghyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIyOC4wMDAwMDAsIC0zMjIuMDAwMDAwKSI+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 =
|
|
10
|
+
return t === "gmap" ? je() : ye();
|
|
11
|
+
}, Y = (t) => {
|
|
12
|
+
const e = Mt();
|
|
13
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,
|
|
@@ -25,101 +25,101 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbn
|
|
|
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,69 +312,69 @@ var ri = {
|
|
|
312
312
|
œ: "oe",
|
|
313
313
|
ʼn: "'n",
|
|
314
314
|
ſ: "s"
|
|
315
|
-
},
|
|
316
|
-
const
|
|
317
|
-
var
|
|
318
|
-
function mi(t) {
|
|
319
|
-
return t = vt(t), t && t.replace(ci, si).replace(Mi, "");
|
|
320
|
-
}
|
|
321
|
-
var fi = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
315
|
+
}, ci = oi(si);
|
|
316
|
+
const ui = ci;
|
|
317
|
+
var li = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, di = "\\u0300-\\u036f", gi = "\\ufe20-\\ufe2f", Ii = "\\u20d0-\\u20ff", Mi = di + gi + Ii, mi = "[" + Mi + "]", fi = RegExp(mi, "g");
|
|
322
318
|
function pi(t) {
|
|
323
|
-
return 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
|
|
354
|
+
const we = Xi;
|
|
355
|
+
var $i = "Expected a function", _i = Math.max, Ki = Math.min;
|
|
356
|
+
function qi(t, e, n) {
|
|
357
357
|
var i, a, r, o, s, u, l = 0, d = !1, c = !1, g = !0;
|
|
358
358
|
if (typeof t != "function")
|
|
359
|
-
throw new TypeError(
|
|
360
|
-
e =
|
|
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
361
|
function M(p) {
|
|
362
|
-
var T = i,
|
|
363
|
-
return i = a = void 0, l = p, o = t.apply(
|
|
362
|
+
var T = i, ee = a;
|
|
363
|
+
return i = a = void 0, l = p, o = t.apply(ee, T), o;
|
|
364
364
|
}
|
|
365
365
|
function m(p) {
|
|
366
366
|
return l = p, s = setTimeout(A, e), d ? M(p) : o;
|
|
367
367
|
}
|
|
368
368
|
function f(p) {
|
|
369
|
-
var T = p - u,
|
|
370
|
-
return c ?
|
|
369
|
+
var T = p - u, ee = p - l, ke = e - T;
|
|
370
|
+
return c ? Ki(ke, r - ee) : ke;
|
|
371
371
|
}
|
|
372
372
|
function j(p) {
|
|
373
|
-
var T = p - u,
|
|
374
|
-
return u === void 0 || T >= e || T < 0 || c &&
|
|
373
|
+
var T = p - u, ee = p - l;
|
|
374
|
+
return u === void 0 || T >= e || T < 0 || c && ee >= r;
|
|
375
375
|
}
|
|
376
376
|
function A() {
|
|
377
|
-
var p =
|
|
377
|
+
var p = we();
|
|
378
378
|
if (j(p))
|
|
379
379
|
return y(p);
|
|
380
380
|
s = setTimeout(A, f(p));
|
|
@@ -386,10 +386,10 @@ function _i(t, e, n) {
|
|
|
386
386
|
s !== void 0 && clearTimeout(s), l = 0, i = u = a = s = void 0;
|
|
387
387
|
}
|
|
388
388
|
function b() {
|
|
389
|
-
return s === void 0 ? o : y(
|
|
389
|
+
return s === void 0 ? o : y(we());
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
var p =
|
|
391
|
+
function k() {
|
|
392
|
+
var p = we(), T = j(p);
|
|
393
393
|
if (i = arguments, a = this, u = p, T) {
|
|
394
394
|
if (s === void 0)
|
|
395
395
|
return m(u);
|
|
@@ -398,19 +398,19 @@ function _i(t, e, n) {
|
|
|
398
398
|
}
|
|
399
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 g =
|
|
413
|
+
const g = Et(d);
|
|
414
414
|
s(d, c), d !== g && s(g, c);
|
|
415
415
|
}, l = new Proxy(a, {
|
|
416
416
|
get(d, c, g) {
|
|
@@ -422,15 +422,15 @@ function v(t) {
|
|
|
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 g =
|
|
433
|
+
const g = Et(d);
|
|
434
434
|
s(d, c), d !== g && s(g, c);
|
|
435
435
|
}, l = new Proxy(r, {
|
|
436
436
|
get(d, c, g) {
|
|
@@ -443,21 +443,21 @@ function V(t) {
|
|
|
443
443
|
})
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
|
-
const R = I,
|
|
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,16 +482,16 @@ 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 =
|
|
494
|
+
c === void 0 && (c = ia());
|
|
495
495
|
var g = !!r && typeof r == "object", M = !!o && typeof o == "object";
|
|
496
496
|
if (g !== M)
|
|
497
497
|
return !1;
|
|
@@ -506,7 +506,7 @@ function Tt(t) {
|
|
|
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,7 +515,7 @@ 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;
|
|
@@ -530,31 +530,31 @@ function ia(t, e, n, i) {
|
|
|
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
|
-
|
|
597
|
+
re(Rt());
|
|
598
|
+
re(Rt(le));
|
|
599
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
|
-
}, D = (t) => [t.lng, t.lat],
|
|
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,33 +622,33 @@ const w = ([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 =
|
|
632
|
+
function oe(t, e, n) {
|
|
633
|
+
const i = Wt();
|
|
634
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 =
|
|
640
|
+
function _(t, e, n) {
|
|
641
|
+
const i = Wt();
|
|
642
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
|
);
|
|
@@ -659,7 +659,7 @@ function Ia(t, e, n, i) {
|
|
|
659
659
|
if (s)
|
|
660
660
|
for (const [u, l] of r.entries()) {
|
|
661
661
|
const { name: d, defaultValue: c } = n[u], g = o[u];
|
|
662
|
-
|
|
662
|
+
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 = P(), r =
|
|
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 = P(), r =
|
|
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;
|
|
@@ -759,29 +759,33 @@ 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 () => I(
|
|
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
|
-
}),
|
|
783
|
+
}), Vt = v(function(e) {
|
|
780
784
|
const n = N(() => z("img", {
|
|
781
|
-
class:
|
|
782
|
-
src:
|
|
785
|
+
class: Bt,
|
|
786
|
+
src: Ut
|
|
783
787
|
}));
|
|
784
|
-
return () => I(
|
|
788
|
+
return () => I(U, {
|
|
785
789
|
attrs: {
|
|
786
790
|
position: w(e.position),
|
|
787
791
|
content: n.value
|
|
@@ -790,84 +794,86 @@ const Ut = v(function(e) {
|
|
|
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" ? I(
|
|
820
|
+
return () => e.type === "locator" ? I(Yt, {
|
|
816
821
|
attrs: {
|
|
817
822
|
position: e.position
|
|
818
823
|
}
|
|
819
|
-
}) : I(
|
|
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
835
|
return z("div", {
|
|
830
|
-
class:
|
|
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" ? I(
|
|
849
|
+
return () => e.type === "locator" ? I(Vt, {
|
|
844
850
|
attrs: {
|
|
845
851
|
position: e.position
|
|
846
852
|
}
|
|
847
|
-
}) : I(
|
|
853
|
+
}) : I(U, {
|
|
848
854
|
attrs: {
|
|
849
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
878
|
var g = [];
|
|
873
879
|
return c.AMapUI && g.push(i(c.AMapUI)), c.Loca && g.push(a(c.Loca)), Promise.all(g);
|
|
@@ -909,8 +915,8 @@ var xe = {}, pa = {
|
|
|
909
915
|
}) : g() : c.version && c.version !== o.AMapUI.version ? M("不允许多个版本 AMapUI 混用") : u.AMapUI.push(function(y) {
|
|
910
916
|
y ? M(y) : m.length ? window.AMapUI.loadUI(m, function() {
|
|
911
917
|
for (var S = 0, b = m.length; S < b; S++) {
|
|
912
|
-
var
|
|
913
|
-
window.AMapUI[
|
|
918
|
+
var k = m[S].split("/").slice(-1)[0];
|
|
919
|
+
window.AMapUI[k] = arguments[S];
|
|
914
920
|
}
|
|
915
921
|
g();
|
|
916
922
|
}) : g();
|
|
@@ -1013,8 +1019,8 @@ var xe = {}, pa = {
|
|
|
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,15 +1186,15 @@ 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) => {
|
|
@@ -1200,7 +1206,7 @@ const Aa = (t) => {
|
|
|
1200
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,7 +1229,7 @@ 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) => {
|
|
@@ -1235,10 +1241,10 @@ const Aa = (t) => {
|
|
|
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,
|
|
@@ -1289,7 +1295,7 @@ const ha = v(function(e, { slots: n, emit: i }) {
|
|
|
1289
1295
|
animateEnable: !!e.animateEnable,
|
|
1290
1296
|
keyboardEnable: !!e.keyboardEnable
|
|
1291
1297
|
})), d = P(), c = P();
|
|
1292
|
-
return
|
|
1298
|
+
return wn(c), B(() => {
|
|
1293
1299
|
if (c.value || !d.value)
|
|
1294
1300
|
return;
|
|
1295
1301
|
const g = new AMap.Map(d.value, {
|
|
@@ -1298,13 +1304,13 @@ const ha = v(function(e, { slots: n, emit: i }) {
|
|
|
1298
1304
|
mapStyle: "amap://styles/95498a904992a4c0b866a3e4d7729682"
|
|
1299
1305
|
});
|
|
1300
1306
|
c.value = g, o == null || o(g);
|
|
1301
|
-
}),
|
|
1307
|
+
}), oe(
|
|
1302
1308
|
() => l.value,
|
|
1303
1309
|
(g) => {
|
|
1304
1310
|
var M;
|
|
1305
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,34 +1323,34 @@ 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
|
-
]),
|
|
1326
|
+
]), ie(c, e, i, ["onDragStart", "onDragEnd"]), () => {
|
|
1321
1327
|
var g;
|
|
1322
|
-
return I("div", { ref: d, class:
|
|
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
1343
|
const { mapRef: c, onDragStart: g, onDragEnd: M, ...m } = e;
|
|
1338
1344
|
return m;
|
|
1339
|
-
}), o = r.value, s = P(), u = P(), { executeMapApi: l } =
|
|
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(() => {
|
|
@@ -1352,29 +1358,30 @@ const Da = () => oe, $t = () => ({ executeMapApi: (e) => {
|
|
|
1352
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
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
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
|
}) => {
|
|
@@ -1404,14 +1411,14 @@ const Da = () => oe, $t = () => ({ executeMapApi: (e) => {
|
|
|
1404
1411
|
center: g,
|
|
1405
1412
|
zoom: M
|
|
1406
1413
|
} = e;
|
|
1407
|
-
if (d ===
|
|
1414
|
+
if (d === ae.LOADING)
|
|
1408
1415
|
return (f = n.loading) == null ? void 0 : f.call(n);
|
|
1409
|
-
if (d ===
|
|
1416
|
+
if (d === ae.FAILURE)
|
|
1410
1417
|
return (j = n.fallback) == null ? void 0 : j.call(n);
|
|
1411
1418
|
const m = (A = n.default) == null ? void 0 : A.call(n);
|
|
1412
1419
|
switch (s) {
|
|
1413
1420
|
case "gmap":
|
|
1414
|
-
return I(
|
|
1421
|
+
return I(xa, {
|
|
1415
1422
|
attrs: {
|
|
1416
1423
|
mapRef: c,
|
|
1417
1424
|
mapId: u,
|
|
@@ -1423,10 +1430,10 @@ const Da = () => oe, $t = () => ({ executeMapApi: (e) => {
|
|
|
1423
1430
|
}
|
|
1424
1431
|
}, [m]);
|
|
1425
1432
|
default:
|
|
1426
|
-
return I(
|
|
1433
|
+
return I(Ca, {
|
|
1427
1434
|
attrs: {
|
|
1428
1435
|
mapRef: c,
|
|
1429
|
-
vectorMapForeign:
|
|
1436
|
+
vectorMapForeign: ga(l),
|
|
1430
1437
|
center: g,
|
|
1431
1438
|
zoom: M
|
|
1432
1439
|
},
|
|
@@ -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 = P(), i =
|
|
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 = P(), i =
|
|
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 I("div", [I(
|
|
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
|
-
}), I(
|
|
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
|
-
}), I(
|
|
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
|
-
}), I(
|
|
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
|
-
}),
|
|
1533
|
+
}), ba = v(function(e) {
|
|
1527
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 I("div", [I(
|
|
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
|
-
}), I(
|
|
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
|
-
}), I(
|
|
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
|
-
}),
|
|
1583
|
+
}), qt = (t) => {
|
|
1577
1584
|
const e = C({ path: [], distance: 0, duration: 0 }), n = new AMap.Driving({});
|
|
1578
|
-
return
|
|
1585
|
+
return _(
|
|
1579
1586
|
() => ({ ...t }),
|
|
1580
1587
|
({ from: i, to: a }) => {
|
|
1581
1588
|
n.search(
|
|
@@ -1604,9 +1611,9 @@ const Da = () => oe, $t = () => ({ executeMapApi: (e) => {
|
|
|
1604
1611
|
);
|
|
1605
1612
|
}
|
|
1606
1613
|
), e;
|
|
1607
|
-
},
|
|
1614
|
+
}, en = (t) => {
|
|
1608
1615
|
const e = C({ path: [], distance: 0, duration: 0 }), n = new google.maps.DirectionsService();
|
|
1609
|
-
return
|
|
1616
|
+
return _(
|
|
1610
1617
|
() => ({ ...t }),
|
|
1611
1618
|
({ from: i, to: a }) => {
|
|
1612
1619
|
n.route(
|
|
@@ -1641,33 +1648,33 @@ 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
1666
|
return google.maps.geometry.spherical.computeHeading(w(n), w(i));
|
|
1660
|
-
}),
|
|
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
|
}));
|
|
@@ -1680,14 +1687,14 @@ const Da = () => oe, $t = () => ({ executeMapApi: (e) => {
|
|
|
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
|
}));
|
|
@@ -1700,17 +1707,17 @@ const Da = () => oe, $t = () => ({ executeMapApi: (e) => {
|
|
|
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 = () => {
|
|
@@ -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,8 +1757,8 @@ 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
1764
|
var j;
|
|
@@ -1776,24 +1783,24 @@ 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
|
});
|
|
@@ -1802,7 +1809,7 @@ v(function(e, {
|
|
|
1802
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
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,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd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cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+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 tt(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 () => I(
|
|
1904
|
+
return () => I(W, {
|
|
1898
1905
|
attrs: {
|
|
1899
1906
|
registerOverlay: e.registerOverlay,
|
|
1900
1907
|
position: e.position,
|
|
@@ -1902,35 +1909,35 @@ 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" ?
|
|
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("") : "";
|
|
1909
1916
|
return !e.description && !e.title ? z("img", {
|
|
1910
|
-
class:
|
|
1917
|
+
class: F({
|
|
1911
1918
|
type: e.type
|
|
1912
1919
|
}),
|
|
1913
1920
|
src: i
|
|
1914
1921
|
}) : e.description ? z("div", {
|
|
1915
|
-
class:
|
|
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
1931
|
`) : z("div", {
|
|
1925
|
-
class:
|
|
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 () => I(
|
|
1940
|
+
return () => I(U, {
|
|
1934
1941
|
attrs: {
|
|
1935
1942
|
registerOverlay: e.registerOverlay,
|
|
1936
1943
|
position: w(e.position),
|
|
@@ -1939,10 +1946,10 @@ const Wa = V(function(e) {
|
|
|
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,
|
|
@@ -1953,7 +1960,7 @@ const Wa = V(function(e) {
|
|
|
1953
1960
|
from: a,
|
|
1954
1961
|
to: r
|
|
1955
1962
|
} = t, o = D(a), s = D(r);
|
|
1956
|
-
return I(
|
|
1963
|
+
return I(Le, {
|
|
1957
1964
|
attrs: {
|
|
1958
1965
|
mapRef: n,
|
|
1959
1966
|
center: o,
|
|
@@ -1966,7 +1973,7 @@ const Wa = V(function(e) {
|
|
|
1966
1973
|
position: o,
|
|
1967
1974
|
title: a.name
|
|
1968
1975
|
}
|
|
1969
|
-
}), I(
|
|
1976
|
+
}), I(Se, {
|
|
1970
1977
|
attrs: {
|
|
1971
1978
|
to: s,
|
|
1972
1979
|
from: o,
|
|
@@ -1974,7 +1981,7 @@ const Wa = V(function(e) {
|
|
|
1974
1981
|
path: u,
|
|
1975
1982
|
distance: l,
|
|
1976
1983
|
duration: d
|
|
1977
|
-
}) => [I(
|
|
1984
|
+
}) => [I(Ne, {
|
|
1978
1985
|
attrs: {
|
|
1979
1986
|
path: u
|
|
1980
1987
|
}
|
|
@@ -1991,13 +1998,13 @@ const Wa = V(function(e) {
|
|
|
1991
1998
|
}
|
|
1992
1999
|
})]
|
|
1993
2000
|
}
|
|
1994
|
-
}), I(
|
|
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"]),
|
|
2007
|
+
}).props(["fallback", "from", "loading", "mapRef", "registerOverlay", "renderDescription", "to"]), dn = (t) => {
|
|
2001
2008
|
var c, g;
|
|
2002
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,
|
|
@@ -2035,7 +2042,7 @@ const Wa = V(function(e) {
|
|
|
2035
2042
|
geoLoading: o,
|
|
2036
2043
|
geoReady: s
|
|
2037
2044
|
};
|
|
2038
|
-
},
|
|
2045
|
+
}, Va = () => {
|
|
2039
2046
|
const t = P();
|
|
2040
2047
|
return { mapRef: t, panTo: (i) => {
|
|
2041
2048
|
var a;
|
|
@@ -2043,7 +2050,7 @@ const Wa = V(function(e) {
|
|
|
2043
2050
|
}, setMap: (i) => {
|
|
2044
2051
|
t.value = i;
|
|
2045
2052
|
} };
|
|
2046
|
-
},
|
|
2053
|
+
}, Ha = () => {
|
|
2047
2054
|
const t = P();
|
|
2048
2055
|
return { mapRef: t, panTo: (i) => {
|
|
2049
2056
|
var a;
|
|
@@ -2051,47 +2058,47 @@ const Wa = V(function(e) {
|
|
|
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
|
-
},
|
|
2063
|
+
return t === "gmap" ? Ha() : Va();
|
|
2064
|
+
}, Qa = (t) => {
|
|
2058
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
|
-
},
|
|
2078
|
+
}, Ja = (t) => {
|
|
2072
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
|
-
},
|
|
2094
|
+
return e === "gmap" ? Ja(t) : Qa(t);
|
|
2095
|
+
}, q = () => {
|
|
2089
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: "",
|
|
@@ -2101,12 +2108,12 @@ const Wa = V(function(e) {
|
|
|
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: g, addressComponent: M } = c.regeocode, m = M.city ? M.city : M.province;
|
|
2109
|
-
o.name = g, o.lng = u, o.lat = l, o.cityName = m, n == null || n({ lng: u, lat: l, name: g, cityName: m });
|
|
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,35 +2125,35 @@ 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 } =
|
|
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: "" });
|
|
2123
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
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 = h(!0), u = h([]), { idx: l, update: d } =
|
|
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 });
|
|
2150
2157
|
return x(
|
|
2151
2158
|
() => l.value,
|
|
2152
2159
|
async () => {
|
|
@@ -2156,7 +2163,7 @@ const Wa = V(function(e) {
|
|
|
2156
2163
|
s.value = !1, u.value = [], Object.assign(m, { ...g }), r == null || r({ ...g });
|
|
2157
2164
|
return;
|
|
2158
2165
|
}
|
|
2159
|
-
const { shortestPlace: j, shortestDistance: A } =
|
|
2166
|
+
const { shortestPlace: j, shortestDistance: A } = Xa(g, f), y = i(a), S = A > y ? g : j;
|
|
2160
2167
|
s.value = !0, u.value = f, Object.assign(m, { ...S }), r == null || r({ ...S });
|
|
2161
2168
|
}
|
|
2162
2169
|
), {
|
|
@@ -2166,8 +2173,8 @@ const Wa = V(function(e) {
|
|
|
2166
2173
|
updateRecomandPlace: d,
|
|
2167
2174
|
updatePlace: M
|
|
2168
2175
|
};
|
|
2169
|
-
},
|
|
2170
|
-
const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: r, onChangePlace: o } = t, s = h(!0), u = h([]), { idx: l, update: d } =
|
|
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 });
|
|
2171
2178
|
return x(
|
|
2172
2179
|
() => l.value,
|
|
2173
2180
|
async () => {
|
|
@@ -2177,7 +2184,7 @@ const Wa = V(function(e) {
|
|
|
2177
2184
|
s.value = !1, u.value = [], Object.assign(m, { ...g }), r == null || r({ ...g });
|
|
2178
2185
|
return;
|
|
2179
2186
|
}
|
|
2180
|
-
const { shortestPlace: j, shortestDistance: A } =
|
|
2187
|
+
const { shortestPlace: j, shortestDistance: A } = $a(g, f), y = i(a), S = A > y ? g : j;
|
|
2181
2188
|
s.value = !0, u.value = f, Object.assign(m, { ...S }), r == null || r({ ...S });
|
|
2182
2189
|
}
|
|
2183
2190
|
), {
|
|
@@ -2187,23 +2194,24 @@ const Wa = V(function(e) {
|
|
|
2187
2194
|
updateRecomandPlace: d,
|
|
2188
2195
|
updatePlace: M
|
|
2189
2196
|
};
|
|
2190
|
-
},
|
|
2197
|
+
}, qa = (t) => {
|
|
2191
2198
|
const { supplier: e } = L();
|
|
2192
|
-
return e === "gmap" ?
|
|
2193
|
-
},
|
|
2194
|
-
var
|
|
2195
|
-
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");
|
|
2196
2204
|
const n = N(() => {
|
|
2197
2205
|
const {
|
|
2198
2206
|
size: i = "large"
|
|
2199
2207
|
} = e;
|
|
2200
2208
|
return `
|
|
2201
|
-
<img src="${i === "large" ?
|
|
2209
|
+
<img src="${i === "large" ? Mn : G}" class="${mn({
|
|
2202
2210
|
size: i
|
|
2203
2211
|
})}">
|
|
2204
2212
|
`;
|
|
2205
2213
|
});
|
|
2206
|
-
return () => I(
|
|
2214
|
+
return () => I(W, {
|
|
2207
2215
|
attrs: {
|
|
2208
2216
|
position: e.position,
|
|
2209
2217
|
content: n.value,
|
|
@@ -2211,34 +2219,35 @@ const Ka = v(function(e) {
|
|
|
2211
2219
|
registerOverlay: e.registerOverlay
|
|
2212
2220
|
}
|
|
2213
2221
|
});
|
|
2214
|
-
}),
|
|
2222
|
+
}), tr = v(function(e) {
|
|
2223
|
+
O(e, "GPassengerCircle");
|
|
2215
2224
|
const n = N(() => {
|
|
2216
2225
|
const {
|
|
2217
2226
|
size: i = "large"
|
|
2218
|
-
} = e, a = i === "large" ?
|
|
2227
|
+
} = e, a = i === "large" ? Mn : G;
|
|
2219
2228
|
return z("img", {
|
|
2220
|
-
class:
|
|
2229
|
+
class: mn({
|
|
2221
2230
|
size: i
|
|
2222
2231
|
}),
|
|
2223
2232
|
src: a
|
|
2224
2233
|
});
|
|
2225
2234
|
});
|
|
2226
|
-
return () => I(
|
|
2235
|
+
return () => I(U, {
|
|
2227
2236
|
attrs: {
|
|
2228
2237
|
position: w(e.position),
|
|
2229
2238
|
content: n.value,
|
|
2230
2239
|
registerOverlay: e.registerOverlay
|
|
2231
2240
|
}
|
|
2232
2241
|
});
|
|
2233
|
-
}),
|
|
2242
|
+
}), Ce = v(function(e) {
|
|
2234
2243
|
const n = L();
|
|
2235
|
-
return () => R(n.supplier === "gmap" ?
|
|
2244
|
+
return () => R(n.supplier === "gmap" ? tr : er, {
|
|
2236
2245
|
attrs: e
|
|
2237
2246
|
});
|
|
2238
2247
|
});
|
|
2239
|
-
var
|
|
2240
|
-
var
|
|
2241
|
-
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, {
|
|
2242
2251
|
emit: n
|
|
2243
2252
|
}) {
|
|
2244
2253
|
const i = N(() => {
|
|
@@ -2249,40 +2258,40 @@ const er = v(function(e, {
|
|
|
2249
2258
|
hideIcon: s = !1
|
|
2250
2259
|
} = e;
|
|
2251
2260
|
return `
|
|
2252
|
-
<div class="${
|
|
2261
|
+
<div class="${pn({
|
|
2253
2262
|
textAlign: i.value
|
|
2254
2263
|
})}">
|
|
2255
|
-
<img class="${
|
|
2264
|
+
<img class="${ge({
|
|
2256
2265
|
hideIcon: s
|
|
2257
|
-
})} ${
|
|
2266
|
+
})} ${at({
|
|
2258
2267
|
textAlign: i.value
|
|
2259
|
-
})}" src="${
|
|
2260
|
-
<div class="${
|
|
2268
|
+
})}" src="${G}">
|
|
2269
|
+
<div class="${fn}">${e.label}</div>
|
|
2261
2270
|
</div>
|
|
2262
2271
|
`;
|
|
2263
2272
|
}), r = N(() => {
|
|
2264
2273
|
const {
|
|
2265
2274
|
hideIcon: s = !1
|
|
2266
2275
|
} = e;
|
|
2267
|
-
return `<img class="${
|
|
2276
|
+
return `<img class="${ge({
|
|
2268
2277
|
hideIcon: s
|
|
2269
|
-
})} ${
|
|
2278
|
+
})} ${at({
|
|
2270
2279
|
textAlign: i.value
|
|
2271
|
-
})}" src="${
|
|
2280
|
+
})}" src="${G}">`;
|
|
2272
2281
|
}), o = (s) => {
|
|
2273
2282
|
console.log("on amap marker e = ", s), n("click", e.position);
|
|
2274
2283
|
};
|
|
2275
|
-
return () => I(
|
|
2284
|
+
return () => I(W, {
|
|
2276
2285
|
attrs: {
|
|
2277
2286
|
position: e.position,
|
|
2278
2287
|
content: e.label ? a.value : r.value,
|
|
2279
|
-
anchor: i.value === "left" ?
|
|
2288
|
+
anchor: i.value === "left" ? be.middleRight : be.middleLeft
|
|
2280
2289
|
},
|
|
2281
2290
|
on: {
|
|
2282
2291
|
click: o
|
|
2283
2292
|
}
|
|
2284
2293
|
});
|
|
2285
|
-
}),
|
|
2294
|
+
}), ir = v(function(e, {
|
|
2286
2295
|
emit: n
|
|
2287
2296
|
}) {
|
|
2288
2297
|
const i = N(() => {
|
|
@@ -2293,33 +2302,33 @@ const er = v(function(e, {
|
|
|
2293
2302
|
hideIcon: s = !1
|
|
2294
2303
|
} = e;
|
|
2295
2304
|
return z("div", {
|
|
2296
|
-
class: `${
|
|
2305
|
+
class: `${pn({
|
|
2297
2306
|
textAlign: i.value
|
|
2298
|
-
})} ${
|
|
2307
|
+
})} ${rt({
|
|
2299
2308
|
textAlign: i.value
|
|
2300
2309
|
})}`
|
|
2301
2310
|
}, `
|
|
2302
|
-
<img class="${
|
|
2311
|
+
<img class="${ge({
|
|
2303
2312
|
hideIcon: s
|
|
2304
|
-
})}" src="${
|
|
2305
|
-
<div class="${
|
|
2313
|
+
})}" src="${G}">
|
|
2314
|
+
<div class="${fn}">${e.label}</div>
|
|
2306
2315
|
`);
|
|
2307
2316
|
}), r = N(() => {
|
|
2308
2317
|
const {
|
|
2309
2318
|
hideIcon: s = !1
|
|
2310
2319
|
} = e;
|
|
2311
2320
|
return z("img", {
|
|
2312
|
-
class: `${
|
|
2321
|
+
class: `${ge({
|
|
2313
2322
|
hideIcon: s
|
|
2314
|
-
})} ${
|
|
2323
|
+
})} ${rt({
|
|
2315
2324
|
textAlign: i.value
|
|
2316
2325
|
})}`,
|
|
2317
|
-
src:
|
|
2326
|
+
src: G
|
|
2318
2327
|
});
|
|
2319
2328
|
}), o = (s) => {
|
|
2320
2329
|
console.log("on gmap advanced marker view e = ", s), n("click", e.position);
|
|
2321
2330
|
};
|
|
2322
|
-
return () => I(
|
|
2331
|
+
return () => I(U, {
|
|
2323
2332
|
attrs: {
|
|
2324
2333
|
position: w(e.position),
|
|
2325
2334
|
content: e.label ? a.value : r.value
|
|
@@ -2332,16 +2341,16 @@ const er = v(function(e, {
|
|
|
2332
2341
|
emit: n
|
|
2333
2342
|
}) {
|
|
2334
2343
|
const i = L();
|
|
2335
|
-
return () => R(i.supplier === "gmap" ?
|
|
2344
|
+
return () => R(i.supplier === "gmap" ? ir : nr, {
|
|
2336
2345
|
attrs: e,
|
|
2337
2346
|
on: {
|
|
2338
2347
|
click: (a) => n("click", a)
|
|
2339
2348
|
}
|
|
2340
2349
|
});
|
|
2341
|
-
}),
|
|
2350
|
+
}), ar = v(function(e, {
|
|
2342
2351
|
emit: n
|
|
2343
2352
|
}) {
|
|
2344
|
-
return () => I("div", [e.places.map((i) => I(Z, {
|
|
2353
|
+
return O(e, "PickupPoints"), () => I("div", [e.places.map((i) => I(Z, {
|
|
2345
2354
|
attrs: {
|
|
2346
2355
|
position: D(i),
|
|
2347
2356
|
label: i.name,
|
|
@@ -2351,10 +2360,11 @@ const er = v(function(e, {
|
|
|
2351
2360
|
click: () => n("click", i)
|
|
2352
2361
|
}
|
|
2353
2362
|
}))]);
|
|
2354
|
-
}),
|
|
2363
|
+
}), rr = 30, Or = H((t, {
|
|
2355
2364
|
emit: e
|
|
2356
2365
|
}) => {
|
|
2357
|
-
var b,
|
|
2366
|
+
var b, k;
|
|
2367
|
+
O(t, "BusinessRecomendPlaceMap");
|
|
2358
2368
|
const {
|
|
2359
2369
|
geoDefaultPosition: n,
|
|
2360
2370
|
getRecomendPlace: i,
|
|
@@ -2363,11 +2373,11 @@ const er = v(function(e, {
|
|
|
2363
2373
|
mapRef: r,
|
|
2364
2374
|
setMap: o,
|
|
2365
2375
|
panTo: s
|
|
2366
|
-
} =
|
|
2376
|
+
} = De(), {
|
|
2367
2377
|
readyPromise: u
|
|
2368
2378
|
} = L(), l = C({
|
|
2369
2379
|
lng: (b = n == null ? void 0 : n[0]) != null ? b : 0,
|
|
2370
|
-
lat: (
|
|
2380
|
+
lat: (k = n == null ? void 0 : n[1]) != null ? k : 0,
|
|
2371
2381
|
name: "",
|
|
2372
2382
|
cityName: void 0
|
|
2373
2383
|
}), d = N(() => [l.lng, l.lat]), c = {
|
|
@@ -2380,7 +2390,7 @@ const er = v(function(e, {
|
|
|
2380
2390
|
c.source = "api", l.lng = p.lng, l.lat = p.lat, l.name = p.name;
|
|
2381
2391
|
}, {
|
|
2382
2392
|
geoPosition: m
|
|
2383
|
-
} =
|
|
2393
|
+
} = dn({
|
|
2384
2394
|
geoDefaultPosition: n,
|
|
2385
2395
|
onLoad: async (p) => {
|
|
2386
2396
|
await u, c.source = "geo", l.lng = p.position[0], l.lat = p.position[1], j(), e("loadGeoLocation", p);
|
|
@@ -2392,7 +2402,7 @@ const er = v(function(e, {
|
|
|
2392
2402
|
onError: (p) => e("geoError", p)
|
|
2393
2403
|
}), {
|
|
2394
2404
|
isDragging: f
|
|
2395
|
-
} =
|
|
2405
|
+
} = Fa({
|
|
2396
2406
|
mapRef: r,
|
|
2397
2407
|
onChange: (p) => {
|
|
2398
2408
|
c.source = "drag", l.lng = p[0], l.lat = p[1], j(), e("changeByDrag", p);
|
|
@@ -2402,7 +2412,7 @@ const er = v(function(e, {
|
|
|
2402
2412
|
updateRecomandPlace: A,
|
|
2403
2413
|
placeCandidates: y,
|
|
2404
2414
|
availableRef: S
|
|
2405
|
-
} =
|
|
2415
|
+
} = qa({
|
|
2406
2416
|
pointRef: d,
|
|
2407
2417
|
context: c,
|
|
2408
2418
|
getRecomendPlace: i,
|
|
@@ -2411,7 +2421,7 @@ const er = v(function(e, {
|
|
|
2411
2421
|
switch (T) {
|
|
2412
2422
|
case "drag":
|
|
2413
2423
|
case "api":
|
|
2414
|
-
return
|
|
2424
|
+
return rr;
|
|
2415
2425
|
case "geo":
|
|
2416
2426
|
case "default":
|
|
2417
2427
|
return 1 / 0;
|
|
@@ -2430,54 +2440,57 @@ const er = v(function(e, {
|
|
|
2430
2440
|
}), j(), e("changeRecomandPlace", p);
|
|
2431
2441
|
}
|
|
2432
2442
|
});
|
|
2433
|
-
return
|
|
2443
|
+
return ue(() => {
|
|
2434
2444
|
a.onChangeCenterPlace({
|
|
2435
2445
|
...l
|
|
2436
2446
|
});
|
|
2437
|
-
}),
|
|
2447
|
+
}), ue(() => {
|
|
2438
2448
|
a.onChangeRecomendPlaces([...y.value]);
|
|
2439
2449
|
}), () => {
|
|
2440
2450
|
const p = S.value ? y.value.length > 0 ? t.recomendDescription : t.noRecomendDescription : void 0;
|
|
2441
|
-
return I(
|
|
2451
|
+
return I(Le, {
|
|
2442
2452
|
attrs: {
|
|
2443
2453
|
center: d.value,
|
|
2444
2454
|
zoom: 18,
|
|
2445
|
-
mapRef: o
|
|
2455
|
+
mapRef: o,
|
|
2456
|
+
log: t.log
|
|
2446
2457
|
}
|
|
2447
|
-
}, [I(
|
|
2458
|
+
}, [I(Ce, {
|
|
2448
2459
|
attrs: {
|
|
2449
2460
|
position: m.value
|
|
2450
2461
|
}
|
|
2451
|
-
}), I(
|
|
2462
|
+
}), I(ar, {
|
|
2452
2463
|
attrs: {
|
|
2453
|
-
places: y.value
|
|
2464
|
+
places: y.value,
|
|
2465
|
+
log: t.log
|
|
2454
2466
|
},
|
|
2455
2467
|
on: {
|
|
2456
2468
|
click: M
|
|
2457
2469
|
}
|
|
2458
|
-
}), I(
|
|
2470
|
+
}), I(va, {
|
|
2459
2471
|
attrs: {
|
|
2460
2472
|
position: d.value,
|
|
2461
2473
|
title: S.value ? l.name : t.unavailableTitle,
|
|
2462
2474
|
description: p,
|
|
2463
|
-
type: f.value ? "locator" : "box"
|
|
2475
|
+
type: f.value ? "locator" : "box",
|
|
2476
|
+
log: t.log
|
|
2464
2477
|
}
|
|
2465
2478
|
})]);
|
|
2466
2479
|
};
|
|
2467
|
-
}).props(["unavailableTitle", "recomendDescription", "noRecomendDescription", "fallback", "geoDefaultPosition", "getRecomendPlace", "loading", "mapContext"]),
|
|
2468
|
-
var
|
|
2469
|
-
const
|
|
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,PHN2ZyB3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yLjY0My0uNjYzLTIuNjQzbC0uMDA5LS4xODRjLjc3My43MDggMi42NDUgMS4yMDMgNC44MyAxLjIwMyAyLjI0MyAwIDQuMTU5LS41MjQgNC44OTItMS4yNmwtLjAxMy4yNDFjMC0uMDA0LS4yMTggMS43NjQtLjY0NiAyLjYwNnpNNy40NDcgMjMuOTNhMjAuMTIgMjAuMTIgMCAwMC0uMjk0LTIuNDQydi0uMDY1YzEuNTM4LS4zMiAzLjE2Ny0uNjQ5IDQuODYyLS42NDkgMS42NzUgMCAzLjI5NC4zMjYgNC44MTYuNjM3YTIyLjY3MyAyMi42NzMgMCAwMC0uMzAzIDIuNTJjLS4xNDcgMi44ODQuMDIgMy4zMTQuMjMyIDUuMDQ4LjAwNi4wNTcuMDI2LjE1Mi4wNTYuMjc0LTEuNTEzLjI3OC0zIC41NC00LjkxMi41NC0xLjg0NyAwLTMuMjg5LS4yNS00Ljc1LS41MTF2LS4wMDhjLjAzLS4xMzEuMDU1LS4yMzMuMDYtLjI5LjIxOC0xLjc0NC4zOC0yLjE3My4yMzMtNS4wNTN6IiBmaWxsPSIjRjJGQUZGIi8+PHBhdGggZD0iTTEyLjA2NyAxOS43MTZsLTQuNjQ1LjY5MmMtLjQzMS0yLjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";
|
|
2481
|
+
var Me = "_65j3sr1", vn = "_4a4ovk5", yn = "_4a4ovk0", jn = "_4a4ovk2";
|
|
2482
|
+
const sr = v(function(e) {
|
|
2470
2483
|
const n = N(() => {
|
|
2471
2484
|
var r;
|
|
2472
|
-
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)`;
|
|
2473
2486
|
return e.title ? `
|
|
2474
|
-
<div class="${
|
|
2475
|
-
<div class="${
|
|
2476
|
-
<img src="${
|
|
2487
|
+
<div class="${yn}">
|
|
2488
|
+
<div class="${jn}">${i}</div>
|
|
2489
|
+
<img src="${Ie}" class="${Me}" style="${a}">
|
|
2477
2490
|
</div>
|
|
2478
|
-
` : `<img src="${
|
|
2491
|
+
` : `<img src="${Ie}" class="${Me}" style="${a}">`;
|
|
2479
2492
|
});
|
|
2480
|
-
return () => I(
|
|
2493
|
+
return () => I(W, {
|
|
2481
2494
|
attrs: {
|
|
2482
2495
|
position: e.position,
|
|
2483
2496
|
content: n.value,
|
|
@@ -2485,34 +2498,34 @@ const ar = v(function(e) {
|
|
|
2485
2498
|
registerOverlay: e.registerOverlay
|
|
2486
2499
|
}
|
|
2487
2500
|
});
|
|
2488
|
-
}),
|
|
2501
|
+
}), cr = v(function(e) {
|
|
2489
2502
|
const n = N(() => {
|
|
2490
2503
|
var r;
|
|
2491
|
-
const i = e.title ?
|
|
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)`;
|
|
2492
2505
|
return e.title ? z("div", {
|
|
2493
|
-
class:
|
|
2506
|
+
class: yn
|
|
2494
2507
|
}, `
|
|
2495
|
-
<div class="${
|
|
2496
|
-
<img src="${
|
|
2508
|
+
<div class="${jn}">${i}</div>
|
|
2509
|
+
<img src="${Ie}" class="${Me}" style="${a}">
|
|
2497
2510
|
`) : z("img", {
|
|
2498
|
-
class:
|
|
2499
|
-
src:
|
|
2511
|
+
class: Me,
|
|
2512
|
+
src: Ie,
|
|
2500
2513
|
style: a
|
|
2501
2514
|
});
|
|
2502
2515
|
});
|
|
2503
|
-
return () => I(
|
|
2516
|
+
return () => I(U, {
|
|
2504
2517
|
attrs: {
|
|
2505
2518
|
position: w(e.position),
|
|
2506
2519
|
content: n.value,
|
|
2507
2520
|
registerOverlay: e.registerOverlay
|
|
2508
2521
|
}
|
|
2509
2522
|
});
|
|
2510
|
-
}),
|
|
2523
|
+
}), Oe = v(function(e) {
|
|
2511
2524
|
const n = L();
|
|
2512
|
-
return () => R(n.supplier === "gmap" ?
|
|
2525
|
+
return () => R(n.supplier === "gmap" ? cr : sr, {
|
|
2513
2526
|
attrs: e
|
|
2514
2527
|
});
|
|
2515
|
-
}),
|
|
2528
|
+
}), ur = v(function(e) {
|
|
2516
2529
|
return () => {
|
|
2517
2530
|
const {
|
|
2518
2531
|
path: n
|
|
@@ -2520,7 +2533,7 @@ const ar = v(function(e) {
|
|
|
2520
2533
|
if (n.length === 0)
|
|
2521
2534
|
return null;
|
|
2522
2535
|
const a = 2 * (window.innerWidth * 0.01);
|
|
2523
|
-
return I(
|
|
2536
|
+
return I(ne, {
|
|
2524
2537
|
attrs: {
|
|
2525
2538
|
path: n,
|
|
2526
2539
|
strokeWeight: a,
|
|
@@ -2533,14 +2546,14 @@ const ar = v(function(e) {
|
|
|
2533
2546
|
}
|
|
2534
2547
|
});
|
|
2535
2548
|
};
|
|
2536
|
-
}),
|
|
2549
|
+
}), lr = v(function(e) {
|
|
2537
2550
|
const n = N(() => e.path.map(w));
|
|
2538
2551
|
return () => {
|
|
2539
2552
|
const i = n.value;
|
|
2540
2553
|
if (i.length === 0)
|
|
2541
2554
|
return null;
|
|
2542
2555
|
const r = 2 * (window.innerWidth * 0.01), o = r / 4;
|
|
2543
|
-
return I(
|
|
2556
|
+
return I(ce, {
|
|
2544
2557
|
attrs: {
|
|
2545
2558
|
path: i,
|
|
2546
2559
|
strokeWeight: r,
|
|
@@ -2566,14 +2579,14 @@ const ar = v(function(e) {
|
|
|
2566
2579
|
}
|
|
2567
2580
|
});
|
|
2568
2581
|
};
|
|
2569
|
-
}),
|
|
2582
|
+
}), An = v(function(e) {
|
|
2570
2583
|
const n = L();
|
|
2571
|
-
return () => R(n.supplier === "gmap" ?
|
|
2584
|
+
return () => R(n.supplier === "gmap" ? lr : ur, {
|
|
2572
2585
|
attrs: e
|
|
2573
2586
|
});
|
|
2574
|
-
}),
|
|
2587
|
+
}), Ln = (t) => {
|
|
2575
2588
|
const e = P([]), n = new AMap.Walking({});
|
|
2576
|
-
return
|
|
2589
|
+
return _(
|
|
2577
2590
|
() => ({ ...t }),
|
|
2578
2591
|
({ from: i, to: a }) => {
|
|
2579
2592
|
n.search(AMap.LngLat.from(i), AMap.LngLat.from(a), (r, o) => {
|
|
@@ -2601,9 +2614,9 @@ const ar = v(function(e) {
|
|
|
2601
2614
|
});
|
|
2602
2615
|
}
|
|
2603
2616
|
), e;
|
|
2604
|
-
},
|
|
2617
|
+
}, Nn = (t) => {
|
|
2605
2618
|
const e = P([]), n = new google.maps.DirectionsService();
|
|
2606
|
-
return
|
|
2619
|
+
return _(
|
|
2607
2620
|
() => ({ ...t }),
|
|
2608
2621
|
({ from: i, to: a }) => {
|
|
2609
2622
|
n.route(
|
|
@@ -2634,86 +2647,86 @@ const ar = v(function(e) {
|
|
|
2634
2647
|
);
|
|
2635
2648
|
}
|
|
2636
2649
|
), e;
|
|
2637
|
-
},
|
|
2650
|
+
}, kr = (t) => {
|
|
2638
2651
|
const { supplier: e } = L();
|
|
2639
|
-
return e === "gmap" ?
|
|
2640
|
-
},
|
|
2652
|
+
return e === "gmap" ? Nn(t) : Ln(t);
|
|
2653
|
+
}, dr = v(function(e, {
|
|
2641
2654
|
slots: n
|
|
2642
2655
|
}) {
|
|
2643
|
-
const i =
|
|
2656
|
+
const i = Ln(e);
|
|
2644
2657
|
return () => {
|
|
2645
2658
|
var a;
|
|
2646
2659
|
return I("div", [(a = n.render) == null ? void 0 : a.call(n, C({
|
|
2647
2660
|
path: i
|
|
2648
2661
|
}))]);
|
|
2649
2662
|
};
|
|
2650
|
-
}),
|
|
2663
|
+
}), gr = v(function(e, {
|
|
2651
2664
|
slots: n
|
|
2652
2665
|
}) {
|
|
2653
|
-
const i =
|
|
2666
|
+
const i = Nn(e);
|
|
2654
2667
|
return () => {
|
|
2655
2668
|
var a;
|
|
2656
2669
|
return I("div", [(a = n.render) == null ? void 0 : a.call(n, C({
|
|
2657
2670
|
path: i
|
|
2658
2671
|
}))]);
|
|
2659
2672
|
};
|
|
2660
|
-
}),
|
|
2673
|
+
}), Sn = v(function(e, {
|
|
2661
2674
|
slots: n
|
|
2662
2675
|
}) {
|
|
2663
2676
|
const {
|
|
2664
2677
|
supplier: i
|
|
2665
2678
|
} = L();
|
|
2666
|
-
return () => R(i === "gmap" ?
|
|
2679
|
+
return () => R(i === "gmap" ? gr : dr, {
|
|
2667
2680
|
attrs: e,
|
|
2668
2681
|
scopedSlots: n
|
|
2669
2682
|
});
|
|
2670
|
-
}),
|
|
2671
|
-
var
|
|
2672
|
-
const
|
|
2673
|
-
const n = N(() => `<img src="${
|
|
2674
|
-
return () => I("div", [I(
|
|
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, {
|
|
2675
2688
|
attrs: {
|
|
2676
2689
|
position: e.position,
|
|
2677
2690
|
anchor: "bottom-center",
|
|
2678
2691
|
content: n.value
|
|
2679
2692
|
}
|
|
2680
|
-
}), I(
|
|
2693
|
+
}), I(W, {
|
|
2681
2694
|
attrs: {
|
|
2682
2695
|
position: e.position,
|
|
2683
2696
|
anchor: "bottom-center",
|
|
2684
2697
|
content: i.value
|
|
2685
2698
|
}
|
|
2686
2699
|
})]);
|
|
2687
|
-
}),
|
|
2700
|
+
}), Mr = v(function(e) {
|
|
2688
2701
|
const n = N(() => z("img", {
|
|
2689
|
-
class:
|
|
2690
|
-
src:
|
|
2702
|
+
class: fe,
|
|
2703
|
+
src: me
|
|
2691
2704
|
})), i = N(() => z("img", {
|
|
2692
|
-
class: `${
|
|
2693
|
-
src:
|
|
2705
|
+
class: `${fe} ${hn}`,
|
|
2706
|
+
src: me
|
|
2694
2707
|
}));
|
|
2695
2708
|
return () => {
|
|
2696
2709
|
const a = w(e.position);
|
|
2697
|
-
return I("div", [I(
|
|
2710
|
+
return I("div", [I(U, {
|
|
2698
2711
|
attrs: {
|
|
2699
2712
|
position: a,
|
|
2700
2713
|
content: n.value
|
|
2701
2714
|
}
|
|
2702
|
-
}), I(
|
|
2715
|
+
}), I(U, {
|
|
2703
2716
|
attrs: {
|
|
2704
2717
|
position: a,
|
|
2705
2718
|
content: i.value
|
|
2706
2719
|
}
|
|
2707
2720
|
})]);
|
|
2708
2721
|
};
|
|
2709
|
-
}),
|
|
2722
|
+
}), mr = v(function(e) {
|
|
2710
2723
|
const n = L();
|
|
2711
|
-
return () => R(n.supplier === "gmap" ?
|
|
2724
|
+
return () => R(n.supplier === "gmap" ? Mr : Ir, {
|
|
2712
2725
|
attrs: e
|
|
2713
2726
|
});
|
|
2714
|
-
}),
|
|
2727
|
+
}), fr = ["book-driverStartService", "dispatched", "driverStartService", "inService", "driverArrived"], st = v((t, {
|
|
2715
2728
|
emit: e
|
|
2716
|
-
}) => (
|
|
2729
|
+
}) => (Y(() => e("mapMounted")), () => {
|
|
2717
2730
|
const {
|
|
2718
2731
|
from: n,
|
|
2719
2732
|
title: i,
|
|
@@ -2726,7 +2739,7 @@ const lr = v(function(e) {
|
|
|
2726
2739
|
title: i,
|
|
2727
2740
|
registerOverlay: a
|
|
2728
2741
|
}
|
|
2729
|
-
}), I(
|
|
2742
|
+
}), I(mr, {
|
|
2730
2743
|
attrs: {
|
|
2731
2744
|
position: r
|
|
2732
2745
|
}
|
|
@@ -2737,9 +2750,9 @@ const lr = v(function(e) {
|
|
|
2737
2750
|
hideIcon: !0
|
|
2738
2751
|
}
|
|
2739
2752
|
})]);
|
|
2740
|
-
})),
|
|
2753
|
+
})), pr = v((t, {
|
|
2741
2754
|
emit: e
|
|
2742
|
-
}) => (
|
|
2755
|
+
}) => (Y(() => e("mapMounted")), () => {
|
|
2743
2756
|
const {
|
|
2744
2757
|
from: n,
|
|
2745
2758
|
carPosition: i,
|
|
@@ -2759,7 +2772,7 @@ const lr = v(function(e) {
|
|
|
2759
2772
|
label: n.name,
|
|
2760
2773
|
hideIcon: !0
|
|
2761
2774
|
}
|
|
2762
|
-
}), I(
|
|
2775
|
+
}), I(Se, {
|
|
2763
2776
|
attrs: {
|
|
2764
2777
|
from: i,
|
|
2765
2778
|
to: s,
|
|
@@ -2767,11 +2780,11 @@ const lr = v(function(e) {
|
|
|
2767
2780
|
path: u,
|
|
2768
2781
|
distance: l,
|
|
2769
2782
|
duration: d
|
|
2770
|
-
}) => [I(
|
|
2783
|
+
}) => [I(Ne, {
|
|
2771
2784
|
attrs: {
|
|
2772
2785
|
path: u
|
|
2773
2786
|
}
|
|
2774
|
-
}), I(
|
|
2787
|
+
}), I(Oe, {
|
|
2775
2788
|
attrs: {
|
|
2776
2789
|
position: i,
|
|
2777
2790
|
title: r({
|
|
@@ -2781,27 +2794,27 @@ const lr = v(function(e) {
|
|
|
2781
2794
|
}
|
|
2782
2795
|
})]
|
|
2783
2796
|
}
|
|
2784
|
-
}), I(
|
|
2797
|
+
}), I(Sn, {
|
|
2785
2798
|
attrs: {
|
|
2786
2799
|
from: a,
|
|
2787
2800
|
to: s,
|
|
2788
2801
|
render: ({
|
|
2789
2802
|
path: u
|
|
2790
|
-
}) => I(
|
|
2803
|
+
}) => I(An, {
|
|
2791
2804
|
attrs: {
|
|
2792
2805
|
path: u
|
|
2793
2806
|
}
|
|
2794
2807
|
})
|
|
2795
2808
|
}
|
|
2796
|
-
}), I(
|
|
2809
|
+
}), I(Ce, {
|
|
2797
2810
|
attrs: {
|
|
2798
2811
|
position: a,
|
|
2799
2812
|
registerOverlay: o
|
|
2800
2813
|
}
|
|
2801
2814
|
})]);
|
|
2802
|
-
})),
|
|
2815
|
+
})), vr = v((t, {
|
|
2803
2816
|
emit: e
|
|
2804
|
-
}) => (
|
|
2817
|
+
}) => (Y(() => e("mapMounted")), () => {
|
|
2805
2818
|
const {
|
|
2806
2819
|
from: n,
|
|
2807
2820
|
passengerPosition: i,
|
|
@@ -2821,15 +2834,15 @@ const lr = v(function(e) {
|
|
|
2821
2834
|
label: n.name,
|
|
2822
2835
|
hideIcon: !0
|
|
2823
2836
|
}
|
|
2824
|
-
}), I(
|
|
2837
|
+
}), I(Ce, {
|
|
2825
2838
|
attrs: {
|
|
2826
2839
|
position: i,
|
|
2827
2840
|
registerOverlay: r
|
|
2828
2841
|
}
|
|
2829
2842
|
})]);
|
|
2830
|
-
})),
|
|
2843
|
+
})), yr = v((t, {
|
|
2831
2844
|
emit: e
|
|
2832
|
-
}) => (
|
|
2845
|
+
}) => (Y(() => e("mapMounted")), () => {
|
|
2833
2846
|
const {
|
|
2834
2847
|
from: n,
|
|
2835
2848
|
carPosition: i,
|
|
@@ -2837,7 +2850,7 @@ const lr = v(function(e) {
|
|
|
2837
2850
|
title: r,
|
|
2838
2851
|
registerOverlay: o
|
|
2839
2852
|
} = t, s = D(n);
|
|
2840
|
-
return I("div", [I(
|
|
2853
|
+
return I("div", [I(Oe, {
|
|
2841
2854
|
attrs: {
|
|
2842
2855
|
position: i,
|
|
2843
2856
|
title: r,
|
|
@@ -2855,28 +2868,28 @@ const lr = v(function(e) {
|
|
|
2855
2868
|
label: n.name,
|
|
2856
2869
|
hideIcon: !0
|
|
2857
2870
|
}
|
|
2858
|
-
}), I(
|
|
2871
|
+
}), I(Sn, {
|
|
2859
2872
|
attrs: {
|
|
2860
2873
|
from: a,
|
|
2861
2874
|
to: s,
|
|
2862
2875
|
render: ({
|
|
2863
2876
|
path: u
|
|
2864
|
-
}) => I(
|
|
2877
|
+
}) => I(An, {
|
|
2865
2878
|
attrs: {
|
|
2866
2879
|
path: u
|
|
2867
2880
|
}
|
|
2868
2881
|
})
|
|
2869
2882
|
}
|
|
2870
|
-
}), I(
|
|
2883
|
+
}), I(Ce, {
|
|
2871
2884
|
attrs: {
|
|
2872
2885
|
position: a,
|
|
2873
2886
|
size: "small",
|
|
2874
2887
|
registerOverlay: o
|
|
2875
2888
|
}
|
|
2876
2889
|
})]);
|
|
2877
|
-
})),
|
|
2890
|
+
})), jr = v((t, {
|
|
2878
2891
|
emit: e
|
|
2879
|
-
}) => (
|
|
2892
|
+
}) => (Y(() => e("mapMounted")), () => {
|
|
2880
2893
|
const {
|
|
2881
2894
|
to: n,
|
|
2882
2895
|
carPosition: i,
|
|
@@ -2895,7 +2908,7 @@ const lr = v(function(e) {
|
|
|
2895
2908
|
label: "'WebSter Dental Plaza'",
|
|
2896
2909
|
hideIcon: !0
|
|
2897
2910
|
}
|
|
2898
|
-
}), I(
|
|
2911
|
+
}), I(Se, {
|
|
2899
2912
|
attrs: {
|
|
2900
2913
|
from: i,
|
|
2901
2914
|
to: o,
|
|
@@ -2903,11 +2916,11 @@ const lr = v(function(e) {
|
|
|
2903
2916
|
path: s,
|
|
2904
2917
|
distance: u,
|
|
2905
2918
|
duration: l
|
|
2906
|
-
}) => [I(
|
|
2919
|
+
}) => [I(Ne, {
|
|
2907
2920
|
attrs: {
|
|
2908
2921
|
path: s
|
|
2909
2922
|
}
|
|
2910
|
-
}), I(
|
|
2923
|
+
}), I(Oe, {
|
|
2911
2924
|
attrs: {
|
|
2912
2925
|
position: i,
|
|
2913
2926
|
title: a({
|
|
@@ -2919,9 +2932,9 @@ const lr = v(function(e) {
|
|
|
2919
2932
|
})]
|
|
2920
2933
|
}
|
|
2921
2934
|
})]);
|
|
2922
|
-
})),
|
|
2935
|
+
})), Ar = v((t, {
|
|
2923
2936
|
emit: e
|
|
2924
|
-
}) => (
|
|
2937
|
+
}) => (Y(() => e("mapMounted")), () => {
|
|
2925
2938
|
const {
|
|
2926
2939
|
from: n,
|
|
2927
2940
|
to: i,
|
|
@@ -2952,9 +2965,9 @@ const lr = v(function(e) {
|
|
|
2952
2965
|
hideIcon: !0
|
|
2953
2966
|
}
|
|
2954
2967
|
})]);
|
|
2955
|
-
})),
|
|
2968
|
+
})), ze = v((t, {
|
|
2956
2969
|
emit: e
|
|
2957
|
-
}) => (
|
|
2970
|
+
}) => (O(t, "SectionEndService"), Y(() => e("mapMounted")), () => {
|
|
2958
2971
|
const {
|
|
2959
2972
|
from: n,
|
|
2960
2973
|
to: i,
|
|
@@ -2984,13 +2997,13 @@ const lr = v(function(e) {
|
|
|
2984
2997
|
label: i.name,
|
|
2985
2998
|
hideIcon: !0
|
|
2986
2999
|
}
|
|
2987
|
-
}), I(
|
|
3000
|
+
}), I(Se, {
|
|
2988
3001
|
attrs: {
|
|
2989
3002
|
from: r,
|
|
2990
3003
|
to: o,
|
|
2991
3004
|
render: ({
|
|
2992
3005
|
path: s
|
|
2993
|
-
}) => I(
|
|
3006
|
+
}) => I(Ne, {
|
|
2994
3007
|
attrs: {
|
|
2995
3008
|
path: s,
|
|
2996
3009
|
done: !0
|
|
@@ -2998,7 +3011,7 @@ const lr = v(function(e) {
|
|
|
2998
3011
|
})
|
|
2999
3012
|
}
|
|
3000
3013
|
})]);
|
|
3001
|
-
})),
|
|
3014
|
+
})), Gr = H((t) => {
|
|
3002
3015
|
const {
|
|
3003
3016
|
from: e,
|
|
3004
3017
|
interval: n,
|
|
@@ -3011,11 +3024,11 @@ const lr = v(function(e) {
|
|
|
3011
3024
|
setFitView: u
|
|
3012
3025
|
} = i, {
|
|
3013
3026
|
geoPosition: l
|
|
3014
|
-
} =
|
|
3027
|
+
} = dn({
|
|
3015
3028
|
geoDefaultPosition: D(e)
|
|
3016
3029
|
}), d = h(D(t.from));
|
|
3017
3030
|
return x(() => t.driverStatus, (c, g, M) => {
|
|
3018
|
-
if (!
|
|
3031
|
+
if (!fr.includes(c))
|
|
3019
3032
|
return;
|
|
3020
3033
|
const m = setInterval(() => {
|
|
3021
3034
|
r().then((f) => d.value = f);
|
|
@@ -3033,13 +3046,13 @@ const lr = v(function(e) {
|
|
|
3033
3046
|
bookDispatchedTitle: j,
|
|
3034
3047
|
driverArrivedTitle: A
|
|
3035
3048
|
} = t, y = d.value;
|
|
3036
|
-
return I(
|
|
3049
|
+
return I(Le, {
|
|
3037
3050
|
attrs: {
|
|
3038
3051
|
center: D(g),
|
|
3039
3052
|
zoom: 13,
|
|
3040
3053
|
mapRef: a
|
|
3041
3054
|
}
|
|
3042
|
-
}, [c === "dispatching" ? I(
|
|
3055
|
+
}, [c === "dispatching" ? I(st, {
|
|
3043
3056
|
attrs: {
|
|
3044
3057
|
from: g,
|
|
3045
3058
|
title: m,
|
|
@@ -3048,7 +3061,7 @@ const lr = v(function(e) {
|
|
|
3048
3061
|
on: {
|
|
3049
3062
|
mapMounted: u
|
|
3050
3063
|
}
|
|
3051
|
-
}) : c === "book-dispatching" ? I(
|
|
3064
|
+
}) : c === "book-dispatching" ? I(st, {
|
|
3052
3065
|
attrs: {
|
|
3053
3066
|
from: g,
|
|
3054
3067
|
title: f,
|
|
@@ -3057,7 +3070,7 @@ const lr = v(function(e) {
|
|
|
3057
3070
|
on: {
|
|
3058
3071
|
mapMounted: u
|
|
3059
3072
|
}
|
|
3060
|
-
}) : c === "dispatched" || c === "driverStartService" || c === "book-driverStartService" ? I(
|
|
3073
|
+
}) : c === "dispatched" || c === "driverStartService" || c === "book-driverStartService" ? I(pr, {
|
|
3061
3074
|
attrs: {
|
|
3062
3075
|
from: g,
|
|
3063
3076
|
carPosition: y,
|
|
@@ -3068,7 +3081,7 @@ const lr = v(function(e) {
|
|
|
3068
3081
|
on: {
|
|
3069
3082
|
mapMounted: u
|
|
3070
3083
|
}
|
|
3071
|
-
}) : c === "book-dispatched" ? I(
|
|
3084
|
+
}) : c === "book-dispatched" ? I(vr, {
|
|
3072
3085
|
attrs: {
|
|
3073
3086
|
from: g,
|
|
3074
3087
|
passengerPosition: l.value,
|
|
@@ -3078,7 +3091,7 @@ const lr = v(function(e) {
|
|
|
3078
3091
|
on: {
|
|
3079
3092
|
mapMounted: u
|
|
3080
3093
|
}
|
|
3081
|
-
}) : c === "inService" ? I(
|
|
3094
|
+
}) : c === "inService" ? I(jr, {
|
|
3082
3095
|
attrs: {
|
|
3083
3096
|
to: M,
|
|
3084
3097
|
carPosition: y,
|
|
@@ -3088,7 +3101,7 @@ const lr = v(function(e) {
|
|
|
3088
3101
|
on: {
|
|
3089
3102
|
mapMounted: u
|
|
3090
3103
|
}
|
|
3091
|
-
}) : c === "driverArrived" ? I(
|
|
3104
|
+
}) : c === "driverArrived" ? I(yr, {
|
|
3092
3105
|
attrs: {
|
|
3093
3106
|
from: g,
|
|
3094
3107
|
carPosition: y,
|
|
@@ -3099,13 +3112,13 @@ const lr = v(function(e) {
|
|
|
3099
3112
|
on: {
|
|
3100
3113
|
mapMounted: u
|
|
3101
3114
|
}
|
|
3102
|
-
}) : c === "canceled" || c === "canceling" ? I(
|
|
3115
|
+
}) : c === "canceled" || c === "canceling" ? I(Ar, {
|
|
3103
3116
|
attrs: {
|
|
3104
3117
|
from: g,
|
|
3105
3118
|
to: M,
|
|
3106
3119
|
registerOverlay: i
|
|
3107
3120
|
}
|
|
3108
|
-
}) : c === "endService" || c === "completed" || c === "banlanceRefund" || c === "waitBanlanceRefund" || c === "rechargePayed" || c === "waitRechargePay" || c === "payed" || c === "waitpay" || c === "refund" || c === "confirmed" ? I(
|
|
3121
|
+
}) : c === "endService" || c === "completed" || c === "banlanceRefund" || c === "waitBanlanceRefund" || c === "rechargePayed" || c === "waitRechargePay" || c === "payed" || c === "waitpay" || c === "refund" || c === "confirmed" ? I(ze, {
|
|
3109
3122
|
attrs: {
|
|
3110
3123
|
from: g,
|
|
3111
3124
|
to: M,
|
|
@@ -3116,7 +3129,7 @@ const lr = v(function(e) {
|
|
|
3116
3129
|
}
|
|
3117
3130
|
}) : (
|
|
3118
3131
|
// 匹配不到就显示灰色路线
|
|
3119
|
-
I(
|
|
3132
|
+
I(ze, {
|
|
3120
3133
|
attrs: {
|
|
3121
3134
|
from: g,
|
|
3122
3135
|
to: M,
|
|
@@ -3128,14 +3141,15 @@ const lr = v(function(e) {
|
|
|
3128
3141
|
})
|
|
3129
3142
|
)]);
|
|
3130
3143
|
};
|
|
3131
|
-
}).props(["bookDispatchedTitle", "bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPosition", "interval", "loading", "mapRef", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]),
|
|
3144
|
+
}).props(["bookDispatchedTitle", "bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPosition", "interval", "loading", "mapRef", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]), Wr = v((t) => {
|
|
3145
|
+
O(t, "BusinessTaxiEndMap");
|
|
3132
3146
|
const {
|
|
3133
3147
|
mapRef: e,
|
|
3134
3148
|
setMap: n
|
|
3135
|
-
} =
|
|
3149
|
+
} = De(), {
|
|
3136
3150
|
registerFitVeiw: i,
|
|
3137
3151
|
setFitView: a
|
|
3138
|
-
} =
|
|
3152
|
+
} = he({
|
|
3139
3153
|
mapRef: e,
|
|
3140
3154
|
autoFitTimeout: 5e3,
|
|
3141
3155
|
padding: [25, 20, 15, 15]
|
|
@@ -3144,26 +3158,28 @@ const lr = v(function(e) {
|
|
|
3144
3158
|
const {
|
|
3145
3159
|
from: r,
|
|
3146
3160
|
to: o
|
|
3147
|
-
} = t;
|
|
3148
|
-
return I(
|
|
3161
|
+
} = t, s = ot(r) && ot(o), u = s ? D(r) : [...or];
|
|
3162
|
+
return I(Le, {
|
|
3149
3163
|
attrs: {
|
|
3150
|
-
center:
|
|
3151
|
-
zoom: 13,
|
|
3152
|
-
mapRef: n
|
|
3164
|
+
center: u,
|
|
3165
|
+
zoom: s ? 13 : 3,
|
|
3166
|
+
mapRef: n,
|
|
3167
|
+
log: t.log
|
|
3153
3168
|
}
|
|
3154
|
-
}, [I(
|
|
3169
|
+
}, [s && I(ze, {
|
|
3155
3170
|
attrs: {
|
|
3156
3171
|
from: r,
|
|
3157
3172
|
to: o,
|
|
3158
|
-
registerOverlay: i
|
|
3173
|
+
registerOverlay: i,
|
|
3174
|
+
log: t.log
|
|
3159
3175
|
},
|
|
3160
3176
|
on: {
|
|
3161
3177
|
mapMounted: a
|
|
3162
3178
|
}
|
|
3163
3179
|
})]);
|
|
3164
3180
|
};
|
|
3165
|
-
}),
|
|
3166
|
-
const { city: e } = t, n = h(e), { readyPromise: i } = L(), a = h(""), r = h([]), { update: o, idx: s } =
|
|
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) => {
|
|
3167
3183
|
n.value = d, o();
|
|
3168
3184
|
}, l = (d) => {
|
|
3169
3185
|
a.value = d, o();
|
|
@@ -3198,8 +3214,8 @@ const lr = v(function(e) {
|
|
|
3198
3214
|
immediate: !0
|
|
3199
3215
|
}
|
|
3200
3216
|
), { setKeyword: l, setCity: u, autoCompletePlaces: r };
|
|
3201
|
-
},
|
|
3202
|
-
const { city: e } = t, n = h({ ...e }), { readyPromise: i } = L(), a = h(""), r = h([]), { update: o, idx: s } =
|
|
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) => {
|
|
3203
3219
|
n.value = c, o();
|
|
3204
3220
|
}, l = (c) => {
|
|
3205
3221
|
a.value = c, o();
|
|
@@ -3238,10 +3254,10 @@ const lr = v(function(e) {
|
|
|
3238
3254
|
);
|
|
3239
3255
|
}
|
|
3240
3256
|
), { setKeyword: l, setCity: u, autoCompletePlaces: r };
|
|
3241
|
-
},
|
|
3257
|
+
}, Sr = (t) => {
|
|
3242
3258
|
const { supplier: e } = L();
|
|
3243
|
-
return e === "gmap" ?
|
|
3244
|
-
},
|
|
3259
|
+
return e === "gmap" ? Nr(t) : Lr(t);
|
|
3260
|
+
}, hr = (t) => {
|
|
3245
3261
|
var a;
|
|
3246
3262
|
const { cityNameRef: e, onChange: n } = t, i = C({ name: (a = e.value) != null ? a : "" });
|
|
3247
3263
|
return x(
|
|
@@ -3251,7 +3267,7 @@ const lr = v(function(e) {
|
|
|
3251
3267
|
i.name = o, n == null || n({ name: o });
|
|
3252
3268
|
}
|
|
3253
3269
|
), i;
|
|
3254
|
-
},
|
|
3270
|
+
}, Dr = (t) => {
|
|
3255
3271
|
var r;
|
|
3256
3272
|
const { cityNameRef: e, onChange: n } = t, { readyPromise: i } = L(), a = C({
|
|
3257
3273
|
name: (r = e.value) != null ? r : "",
|
|
@@ -3262,7 +3278,7 @@ const lr = v(function(e) {
|
|
|
3262
3278
|
west: 0
|
|
3263
3279
|
}
|
|
3264
3280
|
});
|
|
3265
|
-
return
|
|
3281
|
+
return ue(async () => {
|
|
3266
3282
|
var c, g;
|
|
3267
3283
|
const o = e.value;
|
|
3268
3284
|
if (!o)
|
|
@@ -3273,53 +3289,53 @@ const lr = v(function(e) {
|
|
|
3273
3289
|
componentRestrictions: {
|
|
3274
3290
|
administrativeArea: "administrative_area_level_1"
|
|
3275
3291
|
},
|
|
3276
|
-
language:
|
|
3292
|
+
language: Re
|
|
3277
3293
|
});
|
|
3278
3294
|
if (u.length !== 1)
|
|
3279
3295
|
throw new Error("MyError: multiple city found");
|
|
3280
3296
|
const { geometry: l } = u[0], d = (g = (c = l.bounds) == null ? void 0 : c.toJSON()) != null ? g : l.viewport.toJSON();
|
|
3281
3297
|
a.name = o, a.bound = d, n == null || n({ name: o, bound: d });
|
|
3282
3298
|
}), a;
|
|
3283
|
-
},
|
|
3299
|
+
}, Cr = (t) => {
|
|
3284
3300
|
const { supplier: e } = L();
|
|
3285
|
-
return e === "gmap" ?
|
|
3286
|
-
},
|
|
3287
|
-
const { cityNameRef: e } = t, n =
|
|
3301
|
+
return e === "gmap" ? Dr(t) : hr(t);
|
|
3302
|
+
}, Ur = (t) => {
|
|
3303
|
+
const { cityNameRef: e } = t, n = Cr({
|
|
3288
3304
|
cityNameRef: e,
|
|
3289
3305
|
onChange: (s) => r(s)
|
|
3290
|
-
}), { autoCompletePlaces: i, setKeyword: a, setCity: r } =
|
|
3306
|
+
}), { autoCompletePlaces: i, setKeyword: a, setCity: r } = Sr({ city: n });
|
|
3291
3307
|
return { autoCompletePlaces: i, setKeyword: a, setCity: r, handleKeywordInput: (s) => {
|
|
3292
3308
|
const u = s.target;
|
|
3293
3309
|
a(u.value);
|
|
3294
3310
|
} };
|
|
3295
|
-
},
|
|
3296
|
-
const { setMap: t, mapRef: e } =
|
|
3311
|
+
}, Br = () => {
|
|
3312
|
+
const { setMap: t, mapRef: e } = De(), { registerFitVeiw: n, setFitView: i } = he({
|
|
3297
3313
|
mapRef: e,
|
|
3298
3314
|
padding: [25, 20, 15, 15]
|
|
3299
3315
|
});
|
|
3300
3316
|
return { setMap: t, registerFitVeiw: n, setFitView: i };
|
|
3301
|
-
},
|
|
3317
|
+
}, wr = () => {
|
|
3302
3318
|
const t = L();
|
|
3303
3319
|
return { apiMapDistance: (n, i) => {
|
|
3304
|
-
if (t.status ===
|
|
3320
|
+
if (t.status === ae.SUCCESS)
|
|
3305
3321
|
return AMap.GeometryUtil.distance(n, i);
|
|
3306
3322
|
} };
|
|
3307
|
-
},
|
|
3323
|
+
}, xr = () => {
|
|
3308
3324
|
const t = L();
|
|
3309
3325
|
return { apiMapDistance: (n, i) => {
|
|
3310
|
-
if (t.status ===
|
|
3326
|
+
if (t.status === ae.SUCCESS)
|
|
3311
3327
|
return google.maps.geometry.spherical.computeDistanceBetween(w(n), w(i));
|
|
3312
3328
|
} };
|
|
3313
|
-
},
|
|
3329
|
+
}, Pr = () => {
|
|
3314
3330
|
const { supplier: t } = L();
|
|
3315
|
-
return t === "gmap" ?
|
|
3316
|
-
},
|
|
3331
|
+
return t === "gmap" ? xr() : wr();
|
|
3332
|
+
}, Yr = () => {
|
|
3317
3333
|
const t = C({
|
|
3318
3334
|
lng: 0,
|
|
3319
3335
|
lat: 0,
|
|
3320
3336
|
name: "",
|
|
3321
3337
|
cityName: void 0
|
|
3322
|
-
}), e = h([]), { apiMapDistance: n } =
|
|
3338
|
+
}), e = h([]), { apiMapDistance: n } = Pr(), i = (o) => r.panTo(o), a = (o) => r.setCenterPlaceByRecomand(o), r = {
|
|
3323
3339
|
panTo: () => {
|
|
3324
3340
|
throw new Error("MyError: panTo used before assigned");
|
|
3325
3341
|
},
|
|
@@ -3341,8 +3357,8 @@ const lr = v(function(e) {
|
|
|
3341
3357
|
setCenterPlaceByRecomand: a,
|
|
3342
3358
|
apiMapDistance: n
|
|
3343
3359
|
};
|
|
3344
|
-
},
|
|
3345
|
-
const { mapRef: t, setMap: e } =
|
|
3360
|
+
}, Vr = () => {
|
|
3361
|
+
const { mapRef: t, setMap: e } = De(), { registerFitVeiw: n, setFitView: i } = he({
|
|
3346
3362
|
mapRef: t,
|
|
3347
3363
|
autoFitTimeout: 5e3,
|
|
3348
3364
|
padding: [25, 20, 15, 15]
|
|
@@ -3350,35 +3366,35 @@ const lr = v(function(e) {
|
|
|
3350
3366
|
return { setMap: e, registerFitVeiw: n, setFitView: i };
|
|
3351
3367
|
};
|
|
3352
3368
|
export {
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
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,
|
|
3364
3380
|
Z as PlaceCircle,
|
|
3365
3381
|
E as StartEndPoint,
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
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
|
|
3384
3400
|
};
|