@heycar/heycars-map 0.2.2 → 0.2.3
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/api/geometry.d.ts +3 -3
- package/dist/business-components/PassengerCircle/PassengerCircle.css.d.ts +14 -1
- package/dist/business-components/PassengerCircle/PassengerCircle.d.ts +1 -0
- package/dist/business-components/PlaceCircle/PlaceCircle.css.d.ts +8 -1
- package/dist/business-components/PlaceCircle/PlaceCircle.d.ts +1 -0
- package/dist/hooks/useDrivingRoute.d.ts +12 -5
- package/dist/hooks/useGeoLocation.d.ts +1 -1
- package/dist/hooks/useMapGeometry.d.ts +10 -0
- package/dist/index.cjs +45 -45
- package/dist/index.d.ts +1 -0
- package/dist/index.js +929 -825
- package/dist/style.css +1 -1
- package/dist/types/interface.d.ts +5 -0
- package/package.json +1 -1
- package/src/api/geometry.ts +3 -4
- package/src/business-components/DrivingRoute/DrivingRoute.tsx +5 -5
- package/src/business-components/PassengerCircle/PassengerCircle.css.ts +19 -6
- package/src/business-components/PassengerCircle/PassengerCircle.tsx +14 -8
- package/src/business-components/PlaceCircle/PlaceCircle.css.ts +14 -4
- package/src/business-components/PlaceCircle/PlaceCircle.tsx +30 -24
- package/src/business-components/WalkingLine/WalkingLine.tsx +6 -2
- package/src/business-components/WalkingRoute/WalkingRoute.tsx +2 -8
- package/src/components/Demo/HeycarDemo.tsx +20 -8
- package/src/hooks/useDrivingRoute.ts +57 -25
- package/src/hooks/useGeoLocation.ts +2 -2
- package/src/hooks/useMapGeometry.ts +27 -0
- package/src/hooks/useMapLoader.ts +1 -1
- package/src/hooks/useWalkingRoute.ts +24 -11
- package/src/index.ts +1 -0
- package/src/types/amap/plugin.d.ts +1 -1
- package/src/types/interface.ts +6 -0
- package/todo.md +10 -5
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
const t =
|
|
1
|
+
import ln, { inject as Ae, provide as Le, watch as b, defineComponent as $e, h as m, watchPostEffect as k, shallowRef as w, onMounted as ge, onUnmounted as Ie, computed as L, reactive as x, toRefs as _e, ref as D, watchEffect as dn } from "vue";
|
|
2
|
+
ln.util.warn;
|
|
3
|
+
const Ke = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9Ii44Ii8+PC9zdmc+", T = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIxN3B4IiB2aWV3Qm94PSIwIDAgMTcgMTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5qSt5ZyG5b2iPC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxjaXJjbGUgaWQ9InBhdGgtMSIgY3g9IjQuNSIgY3k9IjkuNSIgcj0iNC41Ij48L2NpcmNsZT4KICAgICAgICA8ZmlsdGVyIHg9Ii02MS4xJSIgeT0iLTYxLjElIiB3aWR0aD0iMjIyLjIlIiBoZWlnaHQ9IjIyMi4yJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0iZmlsdGVyLTIiPgogICAgICAgICAgICA8ZmVNb3JwaG9sb2d5IHJhZGl1cz0iMSIgb3BlcmF0b3I9ImRpbGF0ZSIgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd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AgICAgIDx1c2UgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMSIgZmlsdGVyPSJ1cmwoI2ZpbHRlci0yKSIgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICA8dXNlIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSIjMzQ2RUZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=", qe = Symbol(), j = () => {
|
|
4
|
+
const t = Ae(qe);
|
|
5
5
|
if (!t)
|
|
6
6
|
throw new Error("MyError: useMapSupplier should be under MapProvider");
|
|
7
7
|
return t;
|
|
8
|
-
},
|
|
8
|
+
}, gn = (t) => Le(qe, t), et = Symbol("amap"), Ne = () => Ae(et), In = (t) => Le(et, t), tt = Symbol("gmap"), Se = () => Ae(tt), Mn = (t) => Le(tt, t), nt = (t) => {
|
|
9
9
|
const { registerOverlay: e, overlayRef: n } = t;
|
|
10
10
|
b(
|
|
11
11
|
() => n.value,
|
|
@@ -14,101 +14,101 @@ const qe = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbn
|
|
|
14
14
|
}
|
|
15
15
|
);
|
|
16
16
|
};
|
|
17
|
-
var
|
|
18
|
-
const
|
|
19
|
-
var
|
|
20
|
-
const
|
|
21
|
-
var
|
|
22
|
-
const V =
|
|
23
|
-
var
|
|
24
|
-
function
|
|
25
|
-
var e =
|
|
17
|
+
var fn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, mn = typeof global == "object" && global && global.Object === Object && global;
|
|
18
|
+
const pn = mn;
|
|
19
|
+
var vn = typeof self == "object" && self && self.Object === Object && self, yn = pn || vn || Function("return this")();
|
|
20
|
+
const it = yn;
|
|
21
|
+
var jn = it.Symbol;
|
|
22
|
+
const V = jn;
|
|
23
|
+
var at = Object.prototype, An = at.hasOwnProperty, Ln = at.toString, $ = V ? V.toStringTag : void 0;
|
|
24
|
+
function Nn(t) {
|
|
25
|
+
var e = An.call(t, $), n = t[$];
|
|
26
26
|
try {
|
|
27
|
-
t[
|
|
27
|
+
t[$] = void 0;
|
|
28
28
|
var i = !0;
|
|
29
29
|
} catch {
|
|
30
30
|
}
|
|
31
|
-
var a =
|
|
32
|
-
return i && (e ? t[
|
|
31
|
+
var a = Ln.call(t);
|
|
32
|
+
return i && (e ? t[$] = n : delete t[$]), a;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
35
|
-
function
|
|
36
|
-
return
|
|
37
|
-
}
|
|
38
|
-
var xn = "[object Null]", hn = "[object Undefined]", Pe = V ? V.toStringTag : void 0;
|
|
39
|
-
function Cn(t) {
|
|
40
|
-
return t == null ? t === void 0 ? hn : xn : Pe && Pe in Object(t) ? Ln(t) : Dn(t);
|
|
34
|
+
var Sn = Object.prototype, Dn = Sn.toString;
|
|
35
|
+
function hn(t) {
|
|
36
|
+
return Dn.call(t);
|
|
41
37
|
}
|
|
38
|
+
var xn = "[object Null]", Cn = "[object Undefined]", we = V ? V.toStringTag : void 0;
|
|
42
39
|
function wn(t) {
|
|
40
|
+
return t == null ? t === void 0 ? Cn : xn : we && we in Object(t) ? Nn(t) : hn(t);
|
|
41
|
+
}
|
|
42
|
+
function bn(t) {
|
|
43
43
|
return t != null && typeof t == "object";
|
|
44
44
|
}
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return typeof t == "symbol" ||
|
|
45
|
+
var Pn = "[object Symbol]";
|
|
46
|
+
function ot(t) {
|
|
47
|
+
return typeof t == "symbol" || bn(t) && wn(t) == Pn;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function zn(t, e) {
|
|
50
50
|
for (var n = -1, i = t == null ? 0 : t.length, a = Array(i); ++n < i; )
|
|
51
51
|
a[n] = e(t[n], n, t);
|
|
52
52
|
return a;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
55
|
-
const Zn =
|
|
56
|
-
var
|
|
57
|
-
function
|
|
54
|
+
var En = Array.isArray;
|
|
55
|
+
const Zn = En;
|
|
56
|
+
var Tn = 1 / 0, be = V ? V.prototype : void 0, Pe = be ? be.toString : void 0;
|
|
57
|
+
function rt(t) {
|
|
58
58
|
if (typeof t == "string")
|
|
59
59
|
return t;
|
|
60
60
|
if (Zn(t))
|
|
61
|
-
return
|
|
62
|
-
if (
|
|
63
|
-
return
|
|
61
|
+
return zn(t, rt) + "";
|
|
62
|
+
if (ot(t))
|
|
63
|
+
return Pe ? Pe.call(t) : "";
|
|
64
64
|
var e = t + "";
|
|
65
|
-
return e == "0" && 1 / t == -
|
|
65
|
+
return e == "0" && 1 / t == -Tn ? "-0" : e;
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
function
|
|
69
|
-
for (var e = t.length; e-- &&
|
|
67
|
+
var Rn = /\s/;
|
|
68
|
+
function Gn(t) {
|
|
69
|
+
for (var e = t.length; e-- && Rn.test(t.charAt(e)); )
|
|
70
70
|
;
|
|
71
71
|
return e;
|
|
72
72
|
}
|
|
73
|
-
var
|
|
74
|
-
function
|
|
75
|
-
return t && t.slice(0,
|
|
73
|
+
var kn = /^\s+/;
|
|
74
|
+
function On(t) {
|
|
75
|
+
return t && t.slice(0, Gn(t) + 1).replace(kn, "");
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function pe(t) {
|
|
78
78
|
var e = typeof t;
|
|
79
79
|
return t != null && (e == "object" || e == "function");
|
|
80
80
|
}
|
|
81
|
-
var
|
|
82
|
-
function
|
|
81
|
+
var ze = 0 / 0, Wn = /^[-+]0x[0-9a-f]+$/i, Un = /^0b[01]+$/i, Bn = /^0o[0-7]+$/i, Yn = parseInt;
|
|
82
|
+
function Ee(t) {
|
|
83
83
|
if (typeof t == "number")
|
|
84
84
|
return t;
|
|
85
|
-
if (
|
|
86
|
-
return
|
|
87
|
-
if (
|
|
85
|
+
if (ot(t))
|
|
86
|
+
return ze;
|
|
87
|
+
if (pe(t)) {
|
|
88
88
|
var e = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
89
|
-
t =
|
|
89
|
+
t = pe(e) ? e + "" : e;
|
|
90
90
|
}
|
|
91
91
|
if (typeof t != "string")
|
|
92
92
|
return t === 0 ? t : +t;
|
|
93
|
-
t =
|
|
94
|
-
var n =
|
|
95
|
-
return n ||
|
|
93
|
+
t = On(t);
|
|
94
|
+
var n = Un.test(t);
|
|
95
|
+
return n || Bn.test(t) ? Yn(t.slice(2), n ? 2 : 8) : Wn.test(t) ? ze : +t;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
return t == null ? "" :
|
|
97
|
+
function st(t) {
|
|
98
|
+
return t == null ? "" : rt(t);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Hn(t, e, n, i) {
|
|
101
101
|
var a = -1, o = t == null ? 0 : t.length;
|
|
102
102
|
for (i && o && (n = t[++a]); ++a < o; )
|
|
103
103
|
n = e(n, t[a], a, t);
|
|
104
104
|
return n;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Vn(t) {
|
|
107
107
|
return function(e) {
|
|
108
108
|
return t == null ? void 0 : t[e];
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
-
var
|
|
111
|
+
var Qn = {
|
|
112
112
|
// Latin-1 Supplement block.
|
|
113
113
|
À: "A",
|
|
114
114
|
Á: "A",
|
|
@@ -301,110 +301,110 @@ var Vn = {
|
|
|
301
301
|
œ: "oe",
|
|
302
302
|
ʼn: "'n",
|
|
303
303
|
ſ: "s"
|
|
304
|
-
},
|
|
305
|
-
const
|
|
306
|
-
var
|
|
307
|
-
function
|
|
308
|
-
return t =
|
|
304
|
+
}, Jn = Vn(Qn);
|
|
305
|
+
const Xn = Jn;
|
|
306
|
+
var Fn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, $n = "\\u0300-\\u036f", _n = "\\ufe20-\\ufe2f", Kn = "\\u20d0-\\u20ff", qn = $n + _n + Kn, ei = "[" + qn + "]", ti = RegExp(ei, "g");
|
|
307
|
+
function ni(t) {
|
|
308
|
+
return t = st(t), t && t.replace(Fn, Xn).replace(ti, "");
|
|
309
309
|
}
|
|
310
|
-
var
|
|
311
|
-
function
|
|
312
|
-
return t.match(
|
|
310
|
+
var ii = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
311
|
+
function ai(t) {
|
|
312
|
+
return t.match(ii) || [];
|
|
313
313
|
}
|
|
314
|
-
var
|
|
315
|
-
function
|
|
316
|
-
return
|
|
314
|
+
var oi = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
315
|
+
function ri(t) {
|
|
316
|
+
return oi.test(t);
|
|
317
317
|
}
|
|
318
|
-
var
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
318
|
+
var ct = "\\ud800-\\udfff", si = "\\u0300-\\u036f", ci = "\\ufe20-\\ufe2f", ui = "\\u20d0-\\u20ff", li = si + ci + ui, ut = "\\u2700-\\u27bf", lt = "a-z\\xdf-\\xf6\\xf8-\\xff", di = "\\xac\\xb1\\xd7\\xf7", gi = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Ii = "\\u2000-\\u206f", Mi = " \\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", dt = "A-Z\\xc0-\\xd6\\xd8-\\xde", fi = "\\ufe0e\\ufe0f", gt = di + gi + Ii + Mi, It = "['’]", Ze = "[" + gt + "]", mi = "[" + li + "]", Mt = "\\d+", pi = "[" + ut + "]", ft = "[" + lt + "]", mt = "[^" + ct + gt + Mt + ut + lt + dt + "]", vi = "\\ud83c[\\udffb-\\udfff]", yi = "(?:" + mi + "|" + vi + ")", ji = "[^" + ct + "]", pt = "(?:\\ud83c[\\udde6-\\uddff]){2}", vt = "[\\ud800-\\udbff][\\udc00-\\udfff]", B = "[" + dt + "]", Ai = "\\u200d", Te = "(?:" + ft + "|" + mt + ")", Li = "(?:" + B + "|" + mt + ")", Re = "(?:" + It + "(?:d|ll|m|re|s|t|ve))?", Ge = "(?:" + It + "(?:D|LL|M|RE|S|T|VE))?", yt = yi + "?", jt = "[" + fi + "]?", Ni = "(?:" + Ai + "(?:" + [ji, pt, vt].join("|") + ")" + jt + yt + ")*", Si = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Di = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", hi = jt + yt + Ni, xi = "(?:" + [pi, pt, vt].join("|") + ")" + hi, Ci = RegExp([
|
|
319
|
+
B + "?" + ft + "+" + Re + "(?=" + [Ze, B, "$"].join("|") + ")",
|
|
320
|
+
Li + "+" + Ge + "(?=" + [Ze, B + Te, "$"].join("|") + ")",
|
|
321
|
+
B + "?" + Te + "+" + Re,
|
|
322
|
+
B + "+" + Ge,
|
|
323
|
+
Di,
|
|
323
324
|
Si,
|
|
324
|
-
|
|
325
|
-
ft,
|
|
325
|
+
Mt,
|
|
326
326
|
xi
|
|
327
327
|
].join("|"), "g");
|
|
328
|
-
function
|
|
329
|
-
return t.match(
|
|
328
|
+
function wi(t) {
|
|
329
|
+
return t.match(Ci) || [];
|
|
330
330
|
}
|
|
331
|
-
function
|
|
332
|
-
return t =
|
|
331
|
+
function bi(t, e, n) {
|
|
332
|
+
return t = st(t), e = n ? void 0 : e, e === void 0 ? ri(t) ? wi(t) : ai(t) : t.match(e) || [];
|
|
333
333
|
}
|
|
334
|
-
var
|
|
335
|
-
function
|
|
334
|
+
var Pi = "['’]", zi = RegExp(Pi, "g");
|
|
335
|
+
function Ei(t) {
|
|
336
336
|
return function(e) {
|
|
337
|
-
return
|
|
337
|
+
return Hn(bi(ni(e).replace(zi, "")), t, "");
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
var Zi = function() {
|
|
341
|
-
return
|
|
341
|
+
return it.Date.now();
|
|
342
342
|
};
|
|
343
|
-
const
|
|
344
|
-
var
|
|
345
|
-
function
|
|
346
|
-
var i, a, o, r, s, u, l = 0,
|
|
343
|
+
const me = Zi;
|
|
344
|
+
var Ti = "Expected a function", Ri = Math.max, Gi = Math.min;
|
|
345
|
+
function ki(t, e, n) {
|
|
346
|
+
var i, a, o, r, s, u, l = 0, d = !1, c = !1, g = !0;
|
|
347
347
|
if (typeof t != "function")
|
|
348
|
-
throw new TypeError(
|
|
349
|
-
e =
|
|
348
|
+
throw new TypeError(Ti);
|
|
349
|
+
e = Ee(e) || 0, pe(n) && (d = !!n.leading, c = "maxWait" in n, o = c ? Ri(Ee(n.maxWait) || 0, e) : o, g = "trailing" in n ? !!n.trailing : g);
|
|
350
350
|
function I(N) {
|
|
351
|
-
var
|
|
352
|
-
return i = a = void 0, l = N, r = t.apply(
|
|
351
|
+
var Z = i, W = a;
|
|
352
|
+
return i = a = void 0, l = N, r = t.apply(W, Z), r;
|
|
353
353
|
}
|
|
354
354
|
function M(N) {
|
|
355
|
-
return l = N, s = setTimeout(
|
|
355
|
+
return l = N, s = setTimeout(A, e), d ? I(N) : r;
|
|
356
356
|
}
|
|
357
357
|
function f(N) {
|
|
358
|
-
var
|
|
359
|
-
return c ?
|
|
358
|
+
var Z = N - u, W = N - l, F = e - Z;
|
|
359
|
+
return c ? Gi(F, o - W) : F;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
362
|
-
var
|
|
363
|
-
return u === void 0 ||
|
|
361
|
+
function p(N) {
|
|
362
|
+
var Z = N - u, W = N - l;
|
|
363
|
+
return u === void 0 || Z >= e || Z < 0 || c && W >= o;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
var N =
|
|
367
|
-
if (
|
|
368
|
-
return
|
|
369
|
-
s = setTimeout(
|
|
365
|
+
function A() {
|
|
366
|
+
var N = me();
|
|
367
|
+
if (p(N))
|
|
368
|
+
return y(N);
|
|
369
|
+
s = setTimeout(A, f(N));
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
return s = void 0,
|
|
371
|
+
function y(N) {
|
|
372
|
+
return s = void 0, g && i ? I(N) : (i = a = void 0, r);
|
|
373
373
|
}
|
|
374
374
|
function h() {
|
|
375
375
|
s !== void 0 && clearTimeout(s), l = 0, i = u = a = s = void 0;
|
|
376
376
|
}
|
|
377
377
|
function P() {
|
|
378
|
-
return s === void 0 ? r :
|
|
378
|
+
return s === void 0 ? r : y(me());
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
var N =
|
|
382
|
-
if (i = arguments, a = this, u = N,
|
|
380
|
+
function O() {
|
|
381
|
+
var N = me(), Z = p(N);
|
|
382
|
+
if (i = arguments, a = this, u = N, Z) {
|
|
383
383
|
if (s === void 0)
|
|
384
384
|
return M(u);
|
|
385
385
|
if (c)
|
|
386
|
-
return clearTimeout(s), s = setTimeout(
|
|
386
|
+
return clearTimeout(s), s = setTimeout(A, e), I(u);
|
|
387
387
|
}
|
|
388
|
-
return s === void 0 && (s = setTimeout(
|
|
388
|
+
return s === void 0 && (s = setTimeout(A, e)), r;
|
|
389
389
|
}
|
|
390
|
-
return
|
|
390
|
+
return O.cancel = h, O.flush = P, O;
|
|
391
391
|
}
|
|
392
|
-
var
|
|
392
|
+
var Oi = Ei(function(t, e, n) {
|
|
393
393
|
return t + (n ? "-" : "") + e.toLowerCase();
|
|
394
394
|
});
|
|
395
|
-
const
|
|
396
|
-
function
|
|
397
|
-
return
|
|
395
|
+
const At = Oi;
|
|
396
|
+
function v(t) {
|
|
397
|
+
return $e({
|
|
398
398
|
name: t.name,
|
|
399
399
|
inheritAttrs: !1,
|
|
400
400
|
setup(e, n) {
|
|
401
|
-
const { attrs: i, slots: a, emit: o } = n, r = i, s = o, u = (
|
|
402
|
-
const
|
|
403
|
-
s(
|
|
401
|
+
const { attrs: i, slots: a, emit: o } = n, r = i, s = o, u = (d, c) => {
|
|
402
|
+
const g = At(d);
|
|
403
|
+
s(d, c), d !== g && s(g, c);
|
|
404
404
|
}, l = new Proxy(a, {
|
|
405
|
-
get(
|
|
405
|
+
get(d, c, g) {
|
|
406
406
|
var I;
|
|
407
|
-
return (I = Reflect.get(
|
|
407
|
+
return (I = Reflect.get(d, c, g)) != null ? I : Reflect.get(r, c);
|
|
408
408
|
}
|
|
409
409
|
});
|
|
410
410
|
return t(r, { ...n, slots: l, emit: u });
|
|
@@ -413,18 +413,18 @@ function p(t) {
|
|
|
413
413
|
}
|
|
414
414
|
function Me(t) {
|
|
415
415
|
return {
|
|
416
|
-
props: (e) =>
|
|
416
|
+
props: (e) => $e({
|
|
417
417
|
name: t.name,
|
|
418
418
|
inheritAttrs: !1,
|
|
419
419
|
props: e,
|
|
420
420
|
setup(n, i) {
|
|
421
|
-
const a = n, { slots: o, emit: r } = i, s = r, u = (
|
|
422
|
-
const
|
|
423
|
-
s(
|
|
421
|
+
const a = n, { slots: o, emit: r } = i, s = r, u = (d, c) => {
|
|
422
|
+
const g = At(d);
|
|
423
|
+
s(d, c), d !== g && s(g, c);
|
|
424
424
|
}, l = new Proxy(o, {
|
|
425
|
-
get(
|
|
425
|
+
get(d, c, g) {
|
|
426
426
|
var I;
|
|
427
|
-
return (I = Reflect.get(
|
|
427
|
+
return (I = Reflect.get(d, c, g)) != null ? I : Reflect.get(a, c);
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
430
|
return t(a, { ...i, slots: l, emit: u });
|
|
@@ -432,21 +432,21 @@ function Me(t) {
|
|
|
432
432
|
})
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
|
-
const
|
|
436
|
-
var
|
|
437
|
-
function
|
|
435
|
+
const E = m, De = "zh-CN", ke = (t) => t != null && typeof t == "object" && Number.isFinite(t.lat) && Number.isFinite(t.lng);
|
|
436
|
+
var Wi = typeof WeakMap == "function", Oe = Object.keys;
|
|
437
|
+
function ae(t, e) {
|
|
438
438
|
return t === e || t !== t && e !== e;
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function We(t) {
|
|
441
441
|
return t.constructor === Object || t.constructor == null;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Ue(t) {
|
|
444
444
|
return !!t && typeof t.then == "function";
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function Be(t) {
|
|
447
447
|
return !!(t && t.$$typeof);
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function Ui() {
|
|
450
450
|
var t = [];
|
|
451
451
|
return {
|
|
452
452
|
delete: function(e) {
|
|
@@ -471,20 +471,20 @@ function Wi() {
|
|
|
471
471
|
}
|
|
472
472
|
};
|
|
473
473
|
}
|
|
474
|
-
var
|
|
474
|
+
var Bi = function(t) {
|
|
475
475
|
return t ? function() {
|
|
476
476
|
return /* @__PURE__ */ new WeakMap();
|
|
477
|
-
} :
|
|
478
|
-
}(
|
|
479
|
-
function
|
|
477
|
+
} : Ui;
|
|
478
|
+
}(Wi);
|
|
479
|
+
function Lt(t) {
|
|
480
480
|
return function(n) {
|
|
481
481
|
var i = t || n;
|
|
482
|
-
return function(o, r, s, u, l,
|
|
483
|
-
c === void 0 && (c =
|
|
484
|
-
var
|
|
485
|
-
if (
|
|
482
|
+
return function(o, r, s, u, l, d, c) {
|
|
483
|
+
c === void 0 && (c = Bi());
|
|
484
|
+
var g = !!o && typeof o == "object", I = !!r && typeof r == "object";
|
|
485
|
+
if (g !== I)
|
|
486
486
|
return !1;
|
|
487
|
-
if (!
|
|
487
|
+
if (!g && !I)
|
|
488
488
|
return i(o, r, c);
|
|
489
489
|
var M = c.get(o);
|
|
490
490
|
if (M && c.get(r))
|
|
@@ -495,7 +495,7 @@ function Nt(t) {
|
|
|
495
495
|
};
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Yi(t, e, n, i) {
|
|
499
499
|
var a = t.length;
|
|
500
500
|
if (e.length !== a)
|
|
501
501
|
return !1;
|
|
@@ -504,62 +504,62 @@ function Bi(t, e, n, i) {
|
|
|
504
504
|
return !1;
|
|
505
505
|
return !0;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Hi(t, e, n, i) {
|
|
508
508
|
var a = t.size === e.size;
|
|
509
509
|
if (a && t.size) {
|
|
510
510
|
var o = {}, r = 0;
|
|
511
511
|
t.forEach(function(s, u) {
|
|
512
512
|
if (a) {
|
|
513
|
-
var l = !1,
|
|
514
|
-
e.forEach(function(c,
|
|
515
|
-
!l && !o[
|
|
513
|
+
var l = !1, d = 0;
|
|
514
|
+
e.forEach(function(c, g) {
|
|
515
|
+
!l && !o[d] && (l = n(u, g, r, d, t, e, i) && n(s, c, u, g, t, e, i), l && (o[d] = !0)), d++;
|
|
516
516
|
}), r++, a = l;
|
|
517
517
|
}
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
520
|
return a;
|
|
521
521
|
}
|
|
522
|
-
var
|
|
523
|
-
function
|
|
524
|
-
var a =
|
|
525
|
-
if (
|
|
522
|
+
var Vi = "_owner", Qi = Function.prototype.bind.call(Function.prototype.call, Object.prototype.hasOwnProperty);
|
|
523
|
+
function Ye(t, e, n, i) {
|
|
524
|
+
var a = Oe(t), o = a.length;
|
|
525
|
+
if (Oe(e).length !== o)
|
|
526
526
|
return !1;
|
|
527
527
|
if (o)
|
|
528
528
|
for (var r = void 0; o-- > 0; ) {
|
|
529
|
-
if (r = a[o], r ===
|
|
530
|
-
var s =
|
|
529
|
+
if (r = a[o], r === Vi) {
|
|
530
|
+
var s = Be(t), u = Be(e);
|
|
531
531
|
if ((s || u) && s !== u)
|
|
532
532
|
return !1;
|
|
533
533
|
}
|
|
534
|
-
if (!
|
|
534
|
+
if (!Qi(e, r) || !n(t[r], e[r], r, r, t, e, i))
|
|
535
535
|
return !1;
|
|
536
536
|
}
|
|
537
537
|
return !0;
|
|
538
538
|
}
|
|
539
|
-
var
|
|
539
|
+
var Ji = function() {
|
|
540
540
|
return /foo/g.flags === "g" ? function(e, n) {
|
|
541
541
|
return e.source === n.source && e.flags === n.flags;
|
|
542
542
|
} : function(e, n) {
|
|
543
543
|
return e.source === n.source && e.global === n.global && e.ignoreCase === n.ignoreCase && e.multiline === n.multiline && e.unicode === n.unicode && e.sticky === n.sticky && e.lastIndex === n.lastIndex;
|
|
544
544
|
};
|
|
545
545
|
}();
|
|
546
|
-
function
|
|
546
|
+
function Xi(t, e, n, i) {
|
|
547
547
|
var a = t.size === e.size;
|
|
548
548
|
if (a && t.size) {
|
|
549
549
|
var o = {};
|
|
550
550
|
t.forEach(function(r, s) {
|
|
551
551
|
if (a) {
|
|
552
552
|
var u = !1, l = 0;
|
|
553
|
-
e.forEach(function(
|
|
554
|
-
!u && !o[l] && (u = n(r,
|
|
553
|
+
e.forEach(function(d, c) {
|
|
554
|
+
!u && !o[l] && (u = n(r, d, s, c, t, e, i), u && (o[l] = !0)), l++;
|
|
555
555
|
}), a = u;
|
|
556
556
|
}
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
559
|
return a;
|
|
560
560
|
}
|
|
561
|
-
var
|
|
562
|
-
function
|
|
561
|
+
var Fi = typeof Map == "function", $i = typeof Set == "function", He = Object.prototype.valueOf;
|
|
562
|
+
function ee(t) {
|
|
563
563
|
var e = (
|
|
564
564
|
/* eslint-disable no-use-before-define */
|
|
565
565
|
typeof t == "function" ? t(n) : function(i, a, o, r, s, u, l) {
|
|
@@ -570,22 +570,22 @@ function K(t) {
|
|
|
570
570
|
if (i === a)
|
|
571
571
|
return !0;
|
|
572
572
|
if (i && a && typeof i == "object" && typeof a == "object") {
|
|
573
|
-
if (
|
|
574
|
-
return
|
|
573
|
+
if (We(i) && We(a))
|
|
574
|
+
return Ye(i, a, e, o);
|
|
575
575
|
var r = Array.isArray(i), s = Array.isArray(a);
|
|
576
|
-
return r || s ? r === s &&
|
|
576
|
+
return r || s ? r === s && Yi(i, a, e, o) : (r = i instanceof Date, s = a instanceof Date, r || s ? r === s && ae(i.getTime(), a.getTime()) : (r = i instanceof RegExp, s = a instanceof RegExp, r || s ? r === s && Ji(i, a) : Ue(i) || Ue(a) ? i === a : Fi && (r = i instanceof Map, s = a instanceof Map, r || s) ? r === s && Hi(i, a, e, o) : $i && (r = i instanceof Set, s = a instanceof Set, r || s) ? r === s && Xi(i, a, e, o) : i.valueOf !== He || a.valueOf !== He ? ae(i.valueOf(), a.valueOf()) : Ye(i, a, e, o)));
|
|
577
577
|
}
|
|
578
578
|
return i !== i && a !== a;
|
|
579
579
|
}
|
|
580
580
|
return n;
|
|
581
581
|
}
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
return
|
|
582
|
+
ee();
|
|
583
|
+
ee(function() {
|
|
584
|
+
return ae;
|
|
585
585
|
});
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
const
|
|
586
|
+
ee(Lt());
|
|
587
|
+
ee(Lt(ae));
|
|
588
|
+
const C = ([t, e]) => ({
|
|
589
589
|
lng: t,
|
|
590
590
|
lat: e
|
|
591
591
|
}), fe = (t) => {
|
|
@@ -593,16 +593,16 @@ const w = ([t, e]) => ({
|
|
|
593
593
|
for (const [i, a] of n.entries())
|
|
594
594
|
a && e.push({ value: a, type: i % 2 === 0 ? "normal" : "emphasize" });
|
|
595
595
|
return e;
|
|
596
|
-
},
|
|
596
|
+
}, Nt = (t) => `${t.charAt(2).toLocaleLowerCase()}${t.slice(3)}`, St = (t) => t.slice(2).toLowerCase(), _i = (t) => {
|
|
597
597
|
switch (t) {
|
|
598
598
|
case "en":
|
|
599
599
|
return "style_en";
|
|
600
600
|
case "zh":
|
|
601
601
|
return "style_zh_cn";
|
|
602
602
|
}
|
|
603
|
-
},
|
|
603
|
+
}, ve = (t) => [t.lng, t.lat], Dt = (t) => (...e) => {
|
|
604
604
|
setTimeout(() => t == null ? void 0 : t(...e));
|
|
605
|
-
},
|
|
605
|
+
}, Ki = (t) => {
|
|
606
606
|
const { address_components: e } = t, n = e.find(
|
|
607
607
|
(a) => a.types[0] === "administrative_area_level_1" || a.types[0] === "administrative_area_level_2"
|
|
608
608
|
);
|
|
@@ -611,15 +611,15 @@ const w = ([t, e]) => ({
|
|
|
611
611
|
const i = e.findIndex((a) => a.types[0] === "country");
|
|
612
612
|
if (i > 0)
|
|
613
613
|
return e[i - 1].long_name;
|
|
614
|
-
}, ht =
|
|
615
|
-
function
|
|
614
|
+
}, ht = ee((t) => (e, n) => ke(e) || ke(n) ? new google.maps.LatLng(e).equals(new google.maps.LatLng(n)) : t(e, n));
|
|
615
|
+
function xt() {
|
|
616
616
|
let t;
|
|
617
617
|
return function(n) {
|
|
618
618
|
return ht(n, t) || (t = n), t;
|
|
619
619
|
};
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
const i =
|
|
621
|
+
function te(t, e, n) {
|
|
622
|
+
const i = xt();
|
|
623
623
|
return b(() => i(t()), e, {
|
|
624
624
|
immediate: !1,
|
|
625
625
|
flush: "post",
|
|
@@ -627,17 +627,17 @@ function q(t, e, n) {
|
|
|
627
627
|
});
|
|
628
628
|
}
|
|
629
629
|
function Q(t, e, n) {
|
|
630
|
-
const i =
|
|
630
|
+
const i = xt();
|
|
631
631
|
return b(() => i(t()), e, {
|
|
632
632
|
immediate: !0,
|
|
633
633
|
flush: "post",
|
|
634
634
|
...n
|
|
635
635
|
});
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function qi(t) {
|
|
638
638
|
return `set${t.charAt(0).toUpperCase()}${t.slice(1)}`;
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function ea(t, e, n, i) {
|
|
641
641
|
const a = n.map(
|
|
642
642
|
({ name: o }) => () => e[o]
|
|
643
643
|
);
|
|
@@ -647,8 +647,8 @@ function qi(t, e, n, i) {
|
|
|
647
647
|
const s = t.value;
|
|
648
648
|
if (s)
|
|
649
649
|
for (const [u, l] of o.entries()) {
|
|
650
|
-
const { name:
|
|
651
|
-
ht(l,
|
|
650
|
+
const { name: d, defaultValue: c } = n[u], g = r[u];
|
|
651
|
+
ht(l, g) || s[qi(d)](l != null ? l : c);
|
|
652
652
|
}
|
|
653
653
|
},
|
|
654
654
|
{
|
|
@@ -658,21 +658,21 @@ function qi(t, e, n, i) {
|
|
|
658
658
|
}
|
|
659
659
|
);
|
|
660
660
|
}
|
|
661
|
-
function
|
|
662
|
-
return
|
|
661
|
+
function he(t, e, n, i) {
|
|
662
|
+
return ea(t, e, n, {
|
|
663
663
|
immediate: !1,
|
|
664
664
|
...i
|
|
665
665
|
});
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
|
|
667
|
+
function oe(t, e, n, i) {
|
|
668
|
+
k((a) => {
|
|
669
669
|
const o = t == null ? void 0 : t.value;
|
|
670
670
|
if (!o)
|
|
671
671
|
return;
|
|
672
672
|
const r = [];
|
|
673
673
|
for (const s of i) {
|
|
674
|
-
const u =
|
|
675
|
-
o.on(l,
|
|
674
|
+
const u = Nt(s), l = St(s), d = (c) => n(u, c);
|
|
675
|
+
o.on(l, d), r.push(() => o == null ? void 0 : o.off(l, d));
|
|
676
676
|
}
|
|
677
677
|
a(() => {
|
|
678
678
|
for (const s of r)
|
|
@@ -680,14 +680,14 @@ function ie(t, e, n, i) {
|
|
|
680
680
|
});
|
|
681
681
|
});
|
|
682
682
|
}
|
|
683
|
-
function
|
|
684
|
-
|
|
683
|
+
function K(t, e, n, i) {
|
|
684
|
+
k((a) => {
|
|
685
685
|
const o = t == null ? void 0 : t.value;
|
|
686
686
|
if (!o)
|
|
687
687
|
return;
|
|
688
688
|
const r = [];
|
|
689
689
|
for (const s of i) {
|
|
690
|
-
const u =
|
|
690
|
+
const u = Nt(s), l = St(s), d = (g) => n(u, g), c = o.addListener(l, d);
|
|
691
691
|
r.push(() => google.maps.event.removeListener(c));
|
|
692
692
|
}
|
|
693
693
|
a(() => {
|
|
@@ -696,18 +696,18 @@ function _(t, e, n, i) {
|
|
|
696
696
|
});
|
|
697
697
|
});
|
|
698
698
|
}
|
|
699
|
-
const
|
|
700
|
-
const { registerOverlay: n } = e, i =
|
|
701
|
-
return
|
|
699
|
+
const R = v(function(e) {
|
|
700
|
+
const { registerOverlay: n } = e, i = w(), a = Ne();
|
|
701
|
+
return ge(() => {
|
|
702
702
|
i.value = new AMap.Marker({ ...e });
|
|
703
|
-
}),
|
|
703
|
+
}), Ie(() => {
|
|
704
704
|
var o;
|
|
705
705
|
(o = i.value) == null || o.setMap(null);
|
|
706
|
-
}),
|
|
706
|
+
}), nt({ registerOverlay: n, overlayRef: i }), k(() => {
|
|
707
707
|
var r;
|
|
708
708
|
const o = a == null ? void 0 : a.value;
|
|
709
709
|
o && ((r = i.value) == null || r.setMap(o));
|
|
710
|
-
}),
|
|
710
|
+
}), he(i, e, [
|
|
711
711
|
{ name: "anchor", defaultValue: "" },
|
|
712
712
|
{ name: "offset", defaultValue: [0, 0] },
|
|
713
713
|
{ name: "clickable", defaultValue: !1 },
|
|
@@ -722,17 +722,17 @@ const T = p(function(e) {
|
|
|
722
722
|
{ name: "title", defaultValue: "" },
|
|
723
723
|
{ name: "extData", defaultValue: "" }
|
|
724
724
|
]), () => null;
|
|
725
|
-
}),
|
|
726
|
-
const { registerOverlay: n } = e, i =
|
|
727
|
-
return
|
|
725
|
+
}), G = v(function(e) {
|
|
726
|
+
const { registerOverlay: n } = e, i = w(), a = Se();
|
|
727
|
+
return nt({ registerOverlay: n, overlayRef: i }), ge(() => {
|
|
728
728
|
const { registerOverlay: o, ...r } = e;
|
|
729
729
|
i.value = new google.maps.marker.AdvancedMarkerView({ ...r });
|
|
730
|
-
}),
|
|
730
|
+
}), Ie(() => {
|
|
731
731
|
i.value && (i.value.map = null);
|
|
732
|
-
}),
|
|
732
|
+
}), k(() => {
|
|
733
733
|
const o = a == null ? void 0 : a.value;
|
|
734
734
|
!o || !i.value || (i.value.map = o);
|
|
735
|
-
}),
|
|
735
|
+
}), te(
|
|
736
736
|
() => {
|
|
737
737
|
const { content: o, registerOverlay: r, ...s } = e;
|
|
738
738
|
return s;
|
|
@@ -752,114 +752,114 @@ const T = p(function(e) {
|
|
|
752
752
|
}), z = (t, e, n) => {
|
|
753
753
|
const { class: i, ...a } = e != null ? e : {}, o = document.createElement(t);
|
|
754
754
|
return i && (o.className = i), Object.assign(o, a), n && (o.innerHTML = n), o;
|
|
755
|
-
},
|
|
756
|
-
var
|
|
757
|
-
const
|
|
755
|
+
}, Ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+";
|
|
756
|
+
var wt = "rgf09w0";
|
|
757
|
+
const bt = v(function(e) {
|
|
758
758
|
const n = L(() => `
|
|
759
|
-
<img src="${
|
|
759
|
+
<img src="${Ct}" class="${wt}">
|
|
760
760
|
`);
|
|
761
|
-
return () => m(
|
|
761
|
+
return () => m(R, {
|
|
762
762
|
attrs: {
|
|
763
763
|
position: e.position,
|
|
764
764
|
content: n.value,
|
|
765
765
|
anchor: "bottom-center"
|
|
766
766
|
}
|
|
767
767
|
});
|
|
768
|
-
}),
|
|
768
|
+
}), Pt = v(function(e) {
|
|
769
769
|
const n = L(() => z("img", {
|
|
770
|
-
class:
|
|
771
|
-
src:
|
|
770
|
+
class: wt,
|
|
771
|
+
src: Ct
|
|
772
772
|
}));
|
|
773
|
-
return () => m(
|
|
773
|
+
return () => m(G, {
|
|
774
774
|
attrs: {
|
|
775
|
-
position:
|
|
775
|
+
position: C(e.position),
|
|
776
776
|
content: n.value
|
|
777
777
|
}
|
|
778
778
|
});
|
|
779
779
|
});
|
|
780
|
-
|
|
781
|
-
const n =
|
|
782
|
-
return () =>
|
|
780
|
+
v(function(e) {
|
|
781
|
+
const n = j();
|
|
782
|
+
return () => E(n.supplier === "gmap" ? Pt : bt, {
|
|
783
783
|
attrs: e
|
|
784
784
|
});
|
|
785
785
|
});
|
|
786
|
-
var
|
|
787
|
-
const
|
|
786
|
+
var zt = "_15rq2xn1", Et = "_15rq2xn0", Zt = "_15rq2xn3", Tt = "_15rq2xn2", Rt = "_15rq2xn4", Gt = "_15rq2xn6", kt = "_15rq2xn5";
|
|
787
|
+
const ta = v(function(e) {
|
|
788
788
|
const n = L(() => {
|
|
789
789
|
var i;
|
|
790
790
|
return `
|
|
791
791
|
<div class="${Et}">
|
|
792
|
-
<div class="${
|
|
792
|
+
<div class="${zt}">
|
|
793
793
|
<div>
|
|
794
|
-
<div class="${
|
|
795
|
-
<div class="${
|
|
794
|
+
<div class="${Tt}">${e.title}</div>
|
|
795
|
+
<div class="${Zt}">${(i = e.description) != null ? i : ""}</div>
|
|
796
796
|
</div>
|
|
797
|
-
<img class="${
|
|
797
|
+
<img class="${Rt}" src="${Ke}" >
|
|
798
798
|
</div>
|
|
799
|
-
<div class="${
|
|
800
|
-
<img src="${
|
|
799
|
+
<div class="${kt}"></div>
|
|
800
|
+
<img src="${T}" class="${Gt}">
|
|
801
801
|
</div>
|
|
802
802
|
`;
|
|
803
803
|
});
|
|
804
|
-
return () => e.type === "locator" ? m(
|
|
804
|
+
return () => e.type === "locator" ? m(bt, {
|
|
805
805
|
attrs: {
|
|
806
806
|
position: e.position
|
|
807
807
|
}
|
|
808
|
-
}) : m(
|
|
808
|
+
}) : m(R, {
|
|
809
809
|
attrs: {
|
|
810
810
|
position: e.position,
|
|
811
811
|
content: n.value,
|
|
812
812
|
anchor: "bottom-center"
|
|
813
813
|
}
|
|
814
814
|
});
|
|
815
|
-
}),
|
|
815
|
+
}), na = v(function(e) {
|
|
816
816
|
const n = L(() => {
|
|
817
817
|
var i;
|
|
818
818
|
return z("div", {
|
|
819
819
|
class: Et
|
|
820
820
|
}, `
|
|
821
|
-
<div class="${
|
|
821
|
+
<div class="${zt}">
|
|
822
822
|
<div>
|
|
823
|
-
<div class="${
|
|
824
|
-
<div class="${
|
|
823
|
+
<div class="${Tt}">${e.title}</div>
|
|
824
|
+
<div class="${Zt}">${(i = e.description) != null ? i : ""}</div>
|
|
825
825
|
</div>
|
|
826
|
-
<img class="${
|
|
826
|
+
<img class="${Rt}" src="${Ke}" >
|
|
827
827
|
</div>
|
|
828
|
-
<div class="${
|
|
829
|
-
<img src="${
|
|
828
|
+
<div class="${kt}"></div>
|
|
829
|
+
<img src="${T}" class="${Gt}">
|
|
830
830
|
`);
|
|
831
831
|
});
|
|
832
|
-
return () => e.type === "locator" ? m(
|
|
832
|
+
return () => e.type === "locator" ? m(Pt, {
|
|
833
833
|
attrs: {
|
|
834
834
|
position: e.position
|
|
835
835
|
}
|
|
836
|
-
}) : m(
|
|
836
|
+
}) : m(G, {
|
|
837
837
|
attrs: {
|
|
838
|
-
position:
|
|
838
|
+
position: C(e.position),
|
|
839
839
|
content: n.value
|
|
840
840
|
}
|
|
841
841
|
});
|
|
842
|
-
}),
|
|
843
|
-
const n =
|
|
844
|
-
return () =>
|
|
842
|
+
}), so = v(function(e) {
|
|
843
|
+
const n = j();
|
|
844
|
+
return () => E(n.supplier === "gmap" ? na : ta, {
|
|
845
845
|
attrs: e
|
|
846
846
|
});
|
|
847
|
-
}),
|
|
848
|
-
const n =
|
|
849
|
-
return
|
|
847
|
+
}), _ = v(function(e) {
|
|
848
|
+
const n = w(), i = Ne();
|
|
849
|
+
return ge(() => {
|
|
850
850
|
n.value = new AMap.Polyline({ ...e });
|
|
851
|
-
}),
|
|
851
|
+
}), Ie(() => {
|
|
852
852
|
var a;
|
|
853
853
|
(a = n.value) == null || a.setMap(null);
|
|
854
|
-
}),
|
|
854
|
+
}), k(() => {
|
|
855
855
|
var o;
|
|
856
856
|
const a = i == null ? void 0 : i.value;
|
|
857
857
|
a && ((o = n.value) == null || o.setMap(a));
|
|
858
|
-
}),
|
|
858
|
+
}), he(n, e, [
|
|
859
859
|
{ name: "path", defaultValue: [[0, 0]] },
|
|
860
860
|
{ name: "extData", defaultValue: void 0 },
|
|
861
861
|
{ name: "draggable", defaultValue: !1 }
|
|
862
|
-
]),
|
|
862
|
+
]), te(
|
|
863
863
|
() => {
|
|
864
864
|
const { path: a, extData: o, draggable: r, ...s } = e;
|
|
865
865
|
return s;
|
|
@@ -869,28 +869,28 @@ const ea = p(function(e) {
|
|
|
869
869
|
(o = n.value) == null || o.setOptions({ ...a });
|
|
870
870
|
}
|
|
871
871
|
), () => null;
|
|
872
|
-
}),
|
|
873
|
-
const n =
|
|
874
|
-
return
|
|
872
|
+
}), ne = v(function(e) {
|
|
873
|
+
const n = w(), i = Se();
|
|
874
|
+
return ge(() => {
|
|
875
875
|
n.value = new google.maps.Polyline({ ...e });
|
|
876
|
-
}),
|
|
876
|
+
}), Ie(() => {
|
|
877
877
|
var a;
|
|
878
878
|
(a = n.value) == null || a.setMap(null);
|
|
879
|
-
}),
|
|
879
|
+
}), k(() => {
|
|
880
880
|
var o;
|
|
881
881
|
const a = i == null ? void 0 : i.value;
|
|
882
882
|
a && ((o = n.value) == null || o.setMap(a));
|
|
883
|
-
}),
|
|
883
|
+
}), te(
|
|
884
884
|
() => ({ ...e }),
|
|
885
885
|
(a) => {
|
|
886
886
|
var o;
|
|
887
887
|
(o = n.value) == null || o.setOptions({ ...a });
|
|
888
888
|
}
|
|
889
889
|
), () => null;
|
|
890
|
-
}),
|
|
890
|
+
}), ia = v(function(e) {
|
|
891
891
|
return () => {
|
|
892
|
-
const n = window.innerWidth * 0.01, i = 2.5 * n, a = 0.35 * n, o = 0.6 * n, r = 1 * n, s = 0.75 * n, u = e.done ? "#96B2CA" : "#487BF4", l = e.done ? "#7693AF" : "#4175F1",
|
|
893
|
-
return m("div", [m(
|
|
892
|
+
const n = window.innerWidth * 0.01, i = 2.5 * n, a = 0.35 * n, o = 0.6 * n, r = 1 * n, s = 0.75 * n, u = e.done ? "#96B2CA" : "#487BF4", l = e.done ? "#7693AF" : "#4175F1", d = e.done ? "#7693AF" : "#6C95F5";
|
|
893
|
+
return m("div", [m(_, {
|
|
894
894
|
attrs: {
|
|
895
895
|
path: e.path,
|
|
896
896
|
strokeWeight: i + 2 * a + 2 * r,
|
|
@@ -899,18 +899,18 @@ const ea = p(function(e) {
|
|
|
899
899
|
lineJoin: "round",
|
|
900
900
|
lineCap: "round"
|
|
901
901
|
}
|
|
902
|
-
}), m(
|
|
902
|
+
}), m(_, {
|
|
903
903
|
attrs: {
|
|
904
904
|
path: e.path,
|
|
905
905
|
strokeWeight: i + 2 * a,
|
|
906
906
|
strokeOpacity: 1,
|
|
907
|
-
strokeColor:
|
|
907
|
+
strokeColor: d,
|
|
908
908
|
lineJoin: "round",
|
|
909
909
|
lineCap: "round",
|
|
910
910
|
strokeStyle: "dashed",
|
|
911
911
|
strokeDasharray: [s, s * 0.5]
|
|
912
912
|
}
|
|
913
|
-
}), m(
|
|
913
|
+
}), m(_, {
|
|
914
914
|
attrs: {
|
|
915
915
|
path: e.path,
|
|
916
916
|
strokeWeight: i,
|
|
@@ -919,7 +919,7 @@ const ea = p(function(e) {
|
|
|
919
919
|
lineJoin: "round",
|
|
920
920
|
lineCap: "round"
|
|
921
921
|
}
|
|
922
|
-
}), m(
|
|
922
|
+
}), m(_, {
|
|
923
923
|
attrs: {
|
|
924
924
|
showDir: !0,
|
|
925
925
|
path: e.path,
|
|
@@ -931,18 +931,18 @@ const ea = p(function(e) {
|
|
|
931
931
|
}
|
|
932
932
|
})]);
|
|
933
933
|
};
|
|
934
|
-
}),
|
|
935
|
-
const n = L(() => e.path.map(
|
|
934
|
+
}), aa = v(function(e) {
|
|
935
|
+
const n = L(() => e.path.map(C));
|
|
936
936
|
return () => {
|
|
937
|
-
const i = window.innerWidth * 0.01, a = 10 * i, o = 2.5 * i, r = 0.35 * i, s = 0.75 * i, u = 1 * i, l = e.done ? "#96B2CA" : "#487BF4",
|
|
938
|
-
return m("div", [m(
|
|
937
|
+
const i = window.innerWidth * 0.01, a = 10 * i, o = 2.5 * i, r = 0.35 * i, s = 0.75 * i, u = 1 * i, l = e.done ? "#96B2CA" : "#487BF4", d = e.done ? "#7693AF" : "#4175F1", c = e.done ? "#7693AF" : "#6C95F5";
|
|
938
|
+
return m("div", [m(ne, {
|
|
939
939
|
attrs: {
|
|
940
940
|
path: n.value,
|
|
941
941
|
strokeWeight: o + 2 * r + 2 * u,
|
|
942
942
|
strokeOpacity: 1,
|
|
943
|
-
strokeColor:
|
|
943
|
+
strokeColor: d
|
|
944
944
|
}
|
|
945
|
-
}), m(
|
|
945
|
+
}), m(ne, {
|
|
946
946
|
attrs: {
|
|
947
947
|
path: n.value,
|
|
948
948
|
icons: [{
|
|
@@ -957,7 +957,7 @@ const ea = p(function(e) {
|
|
|
957
957
|
offset: `${o / 2}px`
|
|
958
958
|
}]
|
|
959
959
|
}
|
|
960
|
-
}), m(
|
|
960
|
+
}), m(ne, {
|
|
961
961
|
attrs: {
|
|
962
962
|
path: n.value,
|
|
963
963
|
strokeWeight: o,
|
|
@@ -976,13 +976,13 @@ const ea = p(function(e) {
|
|
|
976
976
|
}
|
|
977
977
|
})]);
|
|
978
978
|
};
|
|
979
|
-
}),
|
|
980
|
-
const n =
|
|
981
|
-
return () => e.path.length ?
|
|
979
|
+
}), co = v(function(e) {
|
|
980
|
+
const n = j();
|
|
981
|
+
return () => e.path.length ? E(n.supplier === "gmap" ? aa : ia, {
|
|
982
982
|
attrs: e
|
|
983
983
|
}) : null;
|
|
984
|
-
}),
|
|
985
|
-
const e = x([]), n = new AMap.Driving({});
|
|
984
|
+
}), Ot = (t) => {
|
|
985
|
+
const e = x({ path: [], distance: 0, duration: 0 }), n = new AMap.Driving({});
|
|
986
986
|
return Q(
|
|
987
987
|
() => ({ ...t }),
|
|
988
988
|
({ from: i, to: a }) => {
|
|
@@ -994,16 +994,16 @@ const ea = p(function(e) {
|
|
|
994
994
|
switch (o) {
|
|
995
995
|
case "complete": {
|
|
996
996
|
let s = [];
|
|
997
|
-
const
|
|
998
|
-
for (const
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
e.value = s;
|
|
997
|
+
const l = r.routes[0];
|
|
998
|
+
for (const d of l.steps) {
|
|
999
|
+
const g = d.path.map(({ lng: I, lat: M }) => [I, M]);
|
|
1000
|
+
s = s.concat(g);
|
|
1001
|
+
}
|
|
1002
|
+
e.path = s, e.distance = l.distance, e.duration = l.time;
|
|
1004
1003
|
return;
|
|
1005
1004
|
}
|
|
1006
1005
|
case "no_data":
|
|
1006
|
+
e.path = [], e.distance = 0, e.duration = 0;
|
|
1007
1007
|
return;
|
|
1008
1008
|
default:
|
|
1009
1009
|
throw r;
|
|
@@ -1012,113 +1012,114 @@ const ea = p(function(e) {
|
|
|
1012
1012
|
);
|
|
1013
1013
|
}
|
|
1014
1014
|
), e;
|
|
1015
|
-
},
|
|
1016
|
-
const e = x([]), n = new google.maps.DirectionsService();
|
|
1015
|
+
}, Wt = (t) => {
|
|
1016
|
+
const e = x({ path: [], distance: 0, duration: 0 }), n = new google.maps.DirectionsService();
|
|
1017
1017
|
return Q(
|
|
1018
1018
|
() => ({ ...t }),
|
|
1019
1019
|
({ from: i, to: a }) => {
|
|
1020
|
-
n.route(
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
o
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1020
|
+
n.route(
|
|
1021
|
+
{
|
|
1022
|
+
origin: { lng: i[0], lat: i[1] },
|
|
1023
|
+
destination: { lng: a[0], lat: a[1] },
|
|
1024
|
+
travelMode: google.maps.TravelMode.DRIVING
|
|
1025
|
+
},
|
|
1026
|
+
(o, r) => {
|
|
1027
|
+
var s, u, l, d;
|
|
1028
|
+
switch (r) {
|
|
1029
|
+
case google.maps.DirectionsStatus.OK: {
|
|
1030
|
+
let c = [], g = 0, I = 0;
|
|
1031
|
+
const M = o.routes[0], f = M.overview_path.map((p) => [
|
|
1032
|
+
p.lng(),
|
|
1033
|
+
p.lat()
|
|
1034
|
+
]);
|
|
1035
|
+
c = c.concat(f);
|
|
1036
|
+
for (const p of M.legs)
|
|
1037
|
+
g += (u = (s = p.distance) == null ? void 0 : s.value) != null ? u : 0, I += (d = (l = p.duration) == null ? void 0 : l.value) != null ? d : 0;
|
|
1038
|
+
e.path = c, e.distance = g, e.duration = I;
|
|
1039
|
+
return;
|
|
1040
|
+
}
|
|
1041
|
+
case google.maps.DirectionsStatus.ZERO_RESULTS:
|
|
1042
|
+
case google.maps.DirectionsStatus.NOT_FOUND:
|
|
1043
|
+
e.path = [], e.distance = 0, e.duration = 0;
|
|
1044
|
+
return;
|
|
1045
|
+
default:
|
|
1046
|
+
throw new Error(r);
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
);
|
|
1031
1050
|
}
|
|
1032
1051
|
), e;
|
|
1033
|
-
},
|
|
1034
|
-
const { supplier: e } =
|
|
1035
|
-
return e === "gmap" ?
|
|
1036
|
-
},
|
|
1052
|
+
}, uo = (t) => {
|
|
1053
|
+
const { supplier: e } = j();
|
|
1054
|
+
return e === "gmap" ? Wt(t) : Ot(t);
|
|
1055
|
+
}, oa = (t, e, n) => {
|
|
1037
1056
|
if (!n)
|
|
1038
1057
|
return 0;
|
|
1039
1058
|
const { x: i, y: a } = n.lngLatToContainer(t), { x: o, y: r } = n.lngLatToContainer(e), s = Math.atan2(a - r, o - i);
|
|
1040
1059
|
return (Math.PI / 2 - s) / Math.PI * 180;
|
|
1041
|
-
},
|
|
1060
|
+
}, Ut = (t) => L(() => {
|
|
1042
1061
|
const { map: e, path: n } = t, [i, a] = n;
|
|
1043
1062
|
if (!(!i || !a || !e))
|
|
1044
|
-
return
|
|
1045
|
-
}),
|
|
1063
|
+
return oa(i, a, e);
|
|
1064
|
+
}), Bt = (t) => L(() => {
|
|
1046
1065
|
const { path: e } = t, [n, i] = e;
|
|
1047
1066
|
if (!(!n || !i))
|
|
1048
|
-
return google.maps.geometry.spherical.computeHeading(
|
|
1049
|
-
}),
|
|
1050
|
-
const { supplier: e } =
|
|
1051
|
-
return e === "gmap" ?
|
|
1052
|
-
},
|
|
1067
|
+
return google.maps.geometry.spherical.computeHeading(C(n), C(i));
|
|
1068
|
+
}), lo = (t) => {
|
|
1069
|
+
const { supplier: e } = j();
|
|
1070
|
+
return e === "gmap" ? Bt(t) : Ut(t);
|
|
1071
|
+
}, ra = v(function(e, {
|
|
1053
1072
|
slots: n
|
|
1054
1073
|
}) {
|
|
1055
|
-
const i =
|
|
1074
|
+
const i = Ne(), {
|
|
1075
|
+
path: a,
|
|
1076
|
+
distance: o,
|
|
1077
|
+
duration: r
|
|
1078
|
+
} = _e(Ot(e)), s = Ut(x({
|
|
1056
1079
|
path: a,
|
|
1057
1080
|
map: i
|
|
1058
1081
|
}));
|
|
1059
1082
|
return () => {
|
|
1060
|
-
var
|
|
1061
|
-
return m("div", [(
|
|
1083
|
+
var u;
|
|
1084
|
+
return m("div", [(u = n.render) == null ? void 0 : u.call(n, x({
|
|
1062
1085
|
path: a,
|
|
1063
|
-
angle:
|
|
1086
|
+
angle: s,
|
|
1087
|
+
distance: o,
|
|
1088
|
+
duration: r
|
|
1064
1089
|
}))]);
|
|
1065
1090
|
};
|
|
1066
|
-
}),
|
|
1091
|
+
}), sa = v(function(e, {
|
|
1067
1092
|
slots: n
|
|
1068
1093
|
}) {
|
|
1069
|
-
const i =
|
|
1094
|
+
const i = Se(), {
|
|
1095
|
+
path: a,
|
|
1096
|
+
distance: o,
|
|
1097
|
+
duration: r
|
|
1098
|
+
} = _e(Wt(e)), s = Bt(x({
|
|
1070
1099
|
path: a,
|
|
1071
1100
|
map: i
|
|
1072
1101
|
}));
|
|
1073
1102
|
return () => {
|
|
1074
|
-
var
|
|
1075
|
-
return m("div", [(
|
|
1103
|
+
var u;
|
|
1104
|
+
return m("div", [(u = n.render) == null ? void 0 : u.call(n, x({
|
|
1076
1105
|
path: a,
|
|
1077
|
-
angle:
|
|
1106
|
+
angle: s,
|
|
1107
|
+
distance: o,
|
|
1108
|
+
duration: r
|
|
1078
1109
|
}))]);
|
|
1079
1110
|
};
|
|
1080
|
-
}),
|
|
1111
|
+
}), go = v(function(e, {
|
|
1081
1112
|
slots: n
|
|
1082
1113
|
}) {
|
|
1083
1114
|
const {
|
|
1084
1115
|
supplier: i
|
|
1085
|
-
} =
|
|
1086
|
-
return () =>
|
|
1116
|
+
} = j();
|
|
1117
|
+
return () => E(i === "gmap" ? sa : ra, {
|
|
1087
1118
|
attrs: e,
|
|
1088
1119
|
scopedSlots: n
|
|
1089
1120
|
});
|
|
1090
|
-
}),
|
|
1091
|
-
|
|
1092
|
-
const sa = p(function(e) {
|
|
1093
|
-
const n = L(() => `
|
|
1094
|
-
<img src="${Bt}" class="${Yt}">
|
|
1095
|
-
`);
|
|
1096
|
-
return () => m(T, {
|
|
1097
|
-
attrs: {
|
|
1098
|
-
position: e.position,
|
|
1099
|
-
content: n.value,
|
|
1100
|
-
anchor: "bottom-center"
|
|
1101
|
-
}
|
|
1102
|
-
});
|
|
1103
|
-
}), ca = p(function(e) {
|
|
1104
|
-
const n = L(() => z("img", {
|
|
1105
|
-
class: Yt,
|
|
1106
|
-
src: Bt
|
|
1107
|
-
}));
|
|
1108
|
-
return () => m(R, {
|
|
1109
|
-
attrs: {
|
|
1110
|
-
position: w(e.position),
|
|
1111
|
-
content: n.value
|
|
1112
|
-
}
|
|
1113
|
-
});
|
|
1114
|
-
}), uo = p(function(e) {
|
|
1115
|
-
const n = A();
|
|
1116
|
-
return () => Z(n.supplier === "gmap" ? ca : sa, {
|
|
1117
|
-
attrs: e
|
|
1118
|
-
});
|
|
1119
|
-
});
|
|
1120
|
-
var je = /* @__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))(je || {});
|
|
1121
|
-
function ua(t, e, n) {
|
|
1121
|
+
}), Yt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjEiIGhlaWdodD0iNjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTcuMSUiIHk9Ii03LjElIiB3aWR0aD0iMTE0LjMlIiBoZWlnaHQ9IjExNC4zJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWR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
@@ -1126,7 +1127,7 @@ function ua(t, e, n) {
|
|
|
1126
1127
|
writable: !0
|
|
1127
1128
|
}) : t[e] = n, t;
|
|
1128
1129
|
}
|
|
1129
|
-
function
|
|
1130
|
+
function Ve(t, e) {
|
|
1130
1131
|
var n = Object.keys(t);
|
|
1131
1132
|
if (Object.getOwnPropertySymbols) {
|
|
1132
1133
|
var i = Object.getOwnPropertySymbols(t);
|
|
@@ -1136,26 +1137,26 @@ function Je(t, e) {
|
|
|
1136
1137
|
}
|
|
1137
1138
|
return n;
|
|
1138
1139
|
}
|
|
1139
|
-
function
|
|
1140
|
+
function Qe(t) {
|
|
1140
1141
|
for (var e = 1; e < arguments.length; e++) {
|
|
1141
1142
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
1142
|
-
e % 2 ?
|
|
1143
|
-
|
|
1144
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
1143
|
+
e % 2 ? Ve(Object(n), !0).forEach(function(i) {
|
|
1144
|
+
ca(t, i, n[i]);
|
|
1145
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ve(Object(n)).forEach(function(i) {
|
|
1145
1146
|
Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(n, i));
|
|
1146
1147
|
});
|
|
1147
1148
|
}
|
|
1148
1149
|
return t;
|
|
1149
1150
|
}
|
|
1150
|
-
var
|
|
1151
|
+
var ua = (t, e, n) => {
|
|
1151
1152
|
for (var i of Object.keys(t)) {
|
|
1152
1153
|
var a;
|
|
1153
1154
|
if (t[i] !== ((a = e[i]) !== null && a !== void 0 ? a : n[i]))
|
|
1154
1155
|
return !1;
|
|
1155
1156
|
}
|
|
1156
1157
|
return !0;
|
|
1157
|
-
},
|
|
1158
|
-
var n = t.defaultClassName, i =
|
|
1158
|
+
}, J = (t) => (e) => {
|
|
1159
|
+
var n = t.defaultClassName, i = Qe(Qe({}, t.defaultVariants), e);
|
|
1159
1160
|
for (var a in i) {
|
|
1160
1161
|
var o, r = (o = i[a]) !== null && o !== void 0 ? o : t.defaultVariants[a];
|
|
1161
1162
|
if (r != null) {
|
|
@@ -1168,99 +1169,171 @@ var la = (t, e, n) => {
|
|
|
1168
1169
|
u && (n += " " + u);
|
|
1169
1170
|
}
|
|
1170
1171
|
}
|
|
1171
|
-
for (var [l,
|
|
1172
|
-
|
|
1172
|
+
for (var [l, d] of t.compoundVariants)
|
|
1173
|
+
ua(l, i, t.defaultVariants) && (n += " " + d);
|
|
1173
1174
|
return n;
|
|
1174
|
-
},
|
|
1175
|
-
const
|
|
1175
|
+
}, Ht = J({ defaultClassName: "_1l6offo0", variantClassNames: { size: { small: "_1l6offo1", large: "_1l6offo2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
1176
|
+
const la = v(function(e) {
|
|
1176
1177
|
const n = L(() => {
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
})
|
|
1186
|
-
|
|
1187
|
-
</div>
|
|
1188
|
-
`), a = L(() => `<img class="${ae} ${Fe({
|
|
1189
|
-
textAlign: n.value
|
|
1190
|
-
})}" src="${H}">`);
|
|
1191
|
-
return () => m(T, {
|
|
1178
|
+
const {
|
|
1179
|
+
size: i = "large"
|
|
1180
|
+
} = e;
|
|
1181
|
+
return `
|
|
1182
|
+
<img src="${i === "large" ? Yt : T}" class="${Ht({
|
|
1183
|
+
size: i
|
|
1184
|
+
})}">
|
|
1185
|
+
`;
|
|
1186
|
+
});
|
|
1187
|
+
return () => m(R, {
|
|
1192
1188
|
attrs: {
|
|
1193
1189
|
position: e.position,
|
|
1194
|
-
content:
|
|
1195
|
-
anchor:
|
|
1190
|
+
content: n.value,
|
|
1191
|
+
anchor: "bottom-center"
|
|
1196
1192
|
}
|
|
1197
1193
|
});
|
|
1198
|
-
}),
|
|
1194
|
+
}), da = v(function(e) {
|
|
1195
|
+
const n = L(() => {
|
|
1196
|
+
const {
|
|
1197
|
+
size: i = "large"
|
|
1198
|
+
} = e, a = i === "large" ? Yt : T;
|
|
1199
|
+
return z("img", {
|
|
1200
|
+
class: Ht({
|
|
1201
|
+
size: i
|
|
1202
|
+
}),
|
|
1203
|
+
src: a
|
|
1204
|
+
});
|
|
1205
|
+
});
|
|
1206
|
+
return () => m(G, {
|
|
1207
|
+
attrs: {
|
|
1208
|
+
position: C(e.position),
|
|
1209
|
+
content: n.value
|
|
1210
|
+
}
|
|
1211
|
+
});
|
|
1212
|
+
}), Io = v(function(e) {
|
|
1213
|
+
const n = j();
|
|
1214
|
+
return () => E(n.supplier === "gmap" ? da : la, {
|
|
1215
|
+
attrs: e
|
|
1216
|
+
});
|
|
1217
|
+
});
|
|
1218
|
+
var ye = /* @__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))(ye || {});
|
|
1219
|
+
var Je = J({ defaultClassName: "", variantClassNames: { textAlign: { left: "fhyw83", right: "fhyw84" } }, defaultVariants: {}, compoundVariants: [] }), Xe = J({ defaultClassName: "fhyw85", variantClassNames: { textAlign: { left: "fhyw86", right: "fhyw87" } }, defaultVariants: {}, compoundVariants: [] }), Vt = "fhyw8b", Qt = J({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] }), re = J({ defaultClassName: "fhyw88", variantClassNames: { hideIcon: { true: "fhyw89", false: "fhyw8a" } }, defaultVariants: {}, compoundVariants: [] });
|
|
1220
|
+
const ga = v(function(e) {
|
|
1199
1221
|
const n = L(() => {
|
|
1200
1222
|
var o;
|
|
1201
1223
|
return (o = e.textAlign) != null ? o : "right";
|
|
1202
|
-
}), i = L(() =>
|
|
1203
|
-
|
|
1224
|
+
}), i = L(() => {
|
|
1225
|
+
const {
|
|
1226
|
+
hideIcon: o = !1
|
|
1227
|
+
} = e;
|
|
1228
|
+
return `
|
|
1229
|
+
<div class="${Qt({
|
|
1204
1230
|
textAlign: n.value
|
|
1205
|
-
})}
|
|
1231
|
+
})}">
|
|
1232
|
+
<img class="${re({
|
|
1233
|
+
hideIcon: o
|
|
1234
|
+
})} ${Je({
|
|
1206
1235
|
textAlign: n.value
|
|
1207
|
-
})}
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1236
|
+
})}" src="${T}">
|
|
1237
|
+
<div class="${Vt}">${e.label}</div>
|
|
1238
|
+
</div>
|
|
1239
|
+
`;
|
|
1240
|
+
}), a = L(() => {
|
|
1241
|
+
const {
|
|
1242
|
+
hideIcon: o = !1
|
|
1243
|
+
} = e;
|
|
1244
|
+
return `<img class="${re({
|
|
1245
|
+
hideIcon: o
|
|
1246
|
+
})} ${Je({
|
|
1213
1247
|
textAlign: n.value
|
|
1214
|
-
})}
|
|
1215
|
-
|
|
1216
|
-
}));
|
|
1248
|
+
})}" src="${T}">`;
|
|
1249
|
+
});
|
|
1217
1250
|
return () => m(R, {
|
|
1218
1251
|
attrs: {
|
|
1219
|
-
position:
|
|
1252
|
+
position: e.position,
|
|
1253
|
+
content: e.label ? i.value : a.value,
|
|
1254
|
+
anchor: n.value === "left" ? ye.middleRight : ye.middleLeft
|
|
1255
|
+
}
|
|
1256
|
+
});
|
|
1257
|
+
}), Ia = v(function(e) {
|
|
1258
|
+
const n = L(() => {
|
|
1259
|
+
var o;
|
|
1260
|
+
return (o = e.textAlign) != null ? o : "right";
|
|
1261
|
+
}), i = L(() => {
|
|
1262
|
+
const {
|
|
1263
|
+
hideIcon: o = !1
|
|
1264
|
+
} = e;
|
|
1265
|
+
return z("div", {
|
|
1266
|
+
class: `${Qt({
|
|
1267
|
+
textAlign: n.value
|
|
1268
|
+
})} ${Xe({
|
|
1269
|
+
textAlign: n.value
|
|
1270
|
+
})}`
|
|
1271
|
+
}, `
|
|
1272
|
+
<img class="${re({
|
|
1273
|
+
hideIcon: o
|
|
1274
|
+
})}" src="${T}">
|
|
1275
|
+
<div class="${Vt}">${e.label}</div>
|
|
1276
|
+
`);
|
|
1277
|
+
}), a = L(() => {
|
|
1278
|
+
const {
|
|
1279
|
+
hideIcon: o = !1
|
|
1280
|
+
} = e;
|
|
1281
|
+
return z("img", {
|
|
1282
|
+
class: `${re({
|
|
1283
|
+
hideIcon: o
|
|
1284
|
+
})} ${Xe({
|
|
1285
|
+
textAlign: n.value
|
|
1286
|
+
})}`,
|
|
1287
|
+
src: T
|
|
1288
|
+
});
|
|
1289
|
+
});
|
|
1290
|
+
return () => m(G, {
|
|
1291
|
+
attrs: {
|
|
1292
|
+
position: C(e.position),
|
|
1220
1293
|
content: e.label ? i.value : a.value
|
|
1221
1294
|
}
|
|
1222
1295
|
});
|
|
1223
|
-
}),
|
|
1224
|
-
const n =
|
|
1225
|
-
return () =>
|
|
1296
|
+
}), Ma = v(function(e) {
|
|
1297
|
+
const n = j();
|
|
1298
|
+
return () => E(n.supplier === "gmap" ? Ia : ga, {
|
|
1226
1299
|
attrs: e
|
|
1227
1300
|
});
|
|
1228
|
-
}),
|
|
1229
|
-
return () => m("div", [e.places.map((n) => m(
|
|
1301
|
+
}), Mo = v(function(e) {
|
|
1302
|
+
return () => m("div", [e.places.map((n) => m(Ma, {
|
|
1230
1303
|
attrs: {
|
|
1231
|
-
position:
|
|
1304
|
+
position: ve(n),
|
|
1232
1305
|
label: n.name,
|
|
1233
1306
|
textAlign: "left"
|
|
1234
1307
|
}
|
|
1235
1308
|
}))]);
|
|
1236
|
-
}),
|
|
1237
|
-
var
|
|
1238
|
-
const
|
|
1309
|
+
}), Jt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAw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SkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
|
|
1310
|
+
var H = J({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] }), Ft = "_4a4ovk1", $t = "_4a4ovk4", _t = "_4a4ovk5", Kt = "_4a4ovk3", se = "_4a4ovk0", qt = "_4a4ovk2";
|
|
1311
|
+
const fa = Me(function(e) {
|
|
1239
1312
|
const n = L(() => {
|
|
1240
1313
|
var o;
|
|
1241
|
-
const i = e.type === "start" ?
|
|
1242
|
-
return !e.description && !e.title ? `<img src="${i}" class="${
|
|
1314
|
+
const i = e.type === "start" ? Xt : Jt, a = e.description ? fe(e.description).map((r) => r.type === "normal" ? r.value : `<span class="${_t}">${r.value}</span>`).join("") : "";
|
|
1315
|
+
return !e.description && !e.title ? `<img src="${i}" class="${H({
|
|
1243
1316
|
type: e.type
|
|
1244
1317
|
})}">` : e.description ? `
|
|
1245
|
-
<div class="${
|
|
1246
|
-
<div class="${
|
|
1247
|
-
<div class="${
|
|
1248
|
-
<div class="${
|
|
1318
|
+
<div class="${se}">
|
|
1319
|
+
<div class="${Ft}">
|
|
1320
|
+
<div class="${Kt}">${(o = e.title) != null ? o : ""}</div>
|
|
1321
|
+
<div class="${$t}">${a}</div>
|
|
1249
1322
|
</div>
|
|
1250
|
-
<img src="${i}" class="${
|
|
1323
|
+
<img src="${i}" class="${H({
|
|
1251
1324
|
type: e.type
|
|
1252
1325
|
})}">
|
|
1253
1326
|
</div>
|
|
1254
1327
|
` : `
|
|
1255
|
-
<div class="${
|
|
1256
|
-
<div class="${
|
|
1257
|
-
<img src="${i}" class="${
|
|
1328
|
+
<div class="${se}">
|
|
1329
|
+
<div class="${qt}">${e.title}</div>
|
|
1330
|
+
<img src="${i}" class="${H({
|
|
1258
1331
|
type: e.type
|
|
1259
1332
|
})}">
|
|
1260
1333
|
</div>
|
|
1261
1334
|
`;
|
|
1262
1335
|
});
|
|
1263
|
-
return () => m(
|
|
1336
|
+
return () => m(R, {
|
|
1264
1337
|
attrs: {
|
|
1265
1338
|
registerOverlay: e.registerOverlay,
|
|
1266
1339
|
position: e.position,
|
|
@@ -1268,145 +1341,153 @@ const Ma = Me(function(e) {
|
|
|
1268
1341
|
anchor: "bottom-center"
|
|
1269
1342
|
}
|
|
1270
1343
|
});
|
|
1271
|
-
}).props(["type", "title", "registerOverlay", "position", "description"]),
|
|
1344
|
+
}).props(["type", "title", "registerOverlay", "position", "description"]), ma = Me(function(e) {
|
|
1272
1345
|
const n = L(() => {
|
|
1273
1346
|
var o;
|
|
1274
|
-
const i = e.type === "start" ?
|
|
1347
|
+
const i = e.type === "start" ? Xt : Jt, a = e.description ? fe(e.description).map((r) => r.type === "normal" ? r.value : `<span class="${_t}">${r.value}</span>`).join("") : "";
|
|
1275
1348
|
return !e.description && !e.title ? z("img", {
|
|
1276
|
-
class:
|
|
1349
|
+
class: H({
|
|
1277
1350
|
type: e.type
|
|
1278
1351
|
}),
|
|
1279
1352
|
src: i
|
|
1280
1353
|
}) : e.description ? z("div", {
|
|
1281
|
-
class:
|
|
1354
|
+
class: se
|
|
1282
1355
|
}, `
|
|
1283
|
-
<div class="${
|
|
1284
|
-
<div class="${
|
|
1285
|
-
<div class="${
|
|
1356
|
+
<div class="${Ft}">
|
|
1357
|
+
<div class="${Kt}">${(o = e.title) != null ? o : ""}</div>
|
|
1358
|
+
<div class="${$t}">${a}</div>
|
|
1286
1359
|
</div>
|
|
1287
|
-
<img src="${i}" class="${
|
|
1360
|
+
<img src="${i}" class="${H({
|
|
1288
1361
|
type: e.type
|
|
1289
1362
|
})}">
|
|
1290
1363
|
`) : z("div", {
|
|
1291
|
-
class:
|
|
1364
|
+
class: se
|
|
1292
1365
|
}, `
|
|
1293
|
-
<div class="${
|
|
1294
|
-
<img src="${i}" class="${
|
|
1366
|
+
<div class="${qt}">${e.title}</div>
|
|
1367
|
+
<img src="${i}" class="${H({
|
|
1295
1368
|
type: e.type
|
|
1296
1369
|
})}">
|
|
1297
1370
|
`);
|
|
1298
1371
|
});
|
|
1299
|
-
return () => m(
|
|
1372
|
+
return () => m(G, {
|
|
1300
1373
|
attrs: {
|
|
1301
1374
|
registerOverlay: e.registerOverlay,
|
|
1302
|
-
position:
|
|
1375
|
+
position: C(e.position),
|
|
1303
1376
|
content: n.value
|
|
1304
1377
|
}
|
|
1305
1378
|
});
|
|
1306
|
-
}).props(["type", "title", "registerOverlay", "position", "description"]),
|
|
1307
|
-
const n =
|
|
1308
|
-
return () =>
|
|
1379
|
+
}).props(["type", "title", "registerOverlay", "position", "description"]), fo = v(function(e) {
|
|
1380
|
+
const n = j();
|
|
1381
|
+
return () => E(n.supplier === "gmap" ? ma : fa, {
|
|
1309
1382
|
attrs: e
|
|
1310
1383
|
});
|
|
1311
|
-
}),
|
|
1312
|
-
var
|
|
1313
|
-
const
|
|
1384
|
+
}), ce = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0zNC4wODcgMTAuOTZjMCAyLjM2OS0uMDU0IDIuOTgtLjc4MiAzLjcwNC0uNzkzLjc5LTUuMjM2LjgzMy01LjIzNi44MzNsLTQuMTE2LjE5Mi05Ljg5Ni0uMTQ0cy03Ljc5LS4wMjYtOS4x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uNjM3YTIyLjY3MyAyMi42NzMgMCAwMC0uMzAzIDIuNTJjLS4xNDcgMi44ODQuMDIgMy4zMTQuMjMyIDUuMDQ4LjAwNi4wNTcuMDI2LjE1Mi4wNTYuMjc0LTEuNTEzLjI3OC0zIC41NC00LjkxMi41NC0xLjg0NyAwLTMuMjg5LS4yNS00Ljc1LS41MTF2LS4wMDhjLjAzLS4xMzEuMDU1LS4yMzMuMDYtLjI5LjIxOC0xLjc0NC4zOC0yLjE3My4yMzMtNS4wNTN6IiBmaWxsPSIjRjJGQUZGIi8+PHBhdGggZD0iTTEyLjA2NyAxOS43MTZsLTQuNjQ1LjY5MmMtLjQzMS0yLjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";
|
|
1385
|
+
var ue = "_65j3sr1", en = "_4a4ovk5", tn = "_4a4ovk0", nn = "_4a4ovk2";
|
|
1386
|
+
const pa = v(function(e) {
|
|
1314
1387
|
const n = L(() => {
|
|
1315
1388
|
var o;
|
|
1316
|
-
const i = e.title ? fe(e.title).map((r) => r.type === "normal" ? r.value : `<span class="${
|
|
1389
|
+
const i = e.title ? fe(e.title).map((r) => r.type === "normal" ? r.value : `<span class="${en}">${r.value}</span>`).join("") : "", a = `transform:rotate(${(o = e.angle) != null ? o : 0}deg)`;
|
|
1317
1390
|
return e.title ? `
|
|
1318
|
-
<div class="${
|
|
1319
|
-
<div class="${
|
|
1320
|
-
<img src="${
|
|
1391
|
+
<div class="${tn}">
|
|
1392
|
+
<div class="${nn}">${i}</div>
|
|
1393
|
+
<img src="${ce}" class="${ue}" style="${a}">
|
|
1321
1394
|
</div>
|
|
1322
|
-
` : `<img src="${
|
|
1395
|
+
` : `<img src="${ce}" class="${ue}" style="${a}">`;
|
|
1323
1396
|
});
|
|
1324
|
-
return () => m(
|
|
1397
|
+
return () => m(R, {
|
|
1325
1398
|
attrs: {
|
|
1326
1399
|
position: e.position,
|
|
1327
1400
|
content: n.value,
|
|
1328
1401
|
anchor: "bottom-center"
|
|
1329
1402
|
}
|
|
1330
1403
|
});
|
|
1331
|
-
}),
|
|
1404
|
+
}), va = v(function(e) {
|
|
1332
1405
|
const n = L(() => {
|
|
1333
1406
|
var o;
|
|
1334
|
-
const i = e.title ? fe(e.title).map((r) => r.type === "normal" ? r.value : `<span class="${
|
|
1407
|
+
const i = e.title ? fe(e.title).map((r) => r.type === "normal" ? r.value : `<span class="${en}">${r.value}</span>`).join("") : "", a = `transform:rotate(${(o = e.angle) != null ? o : 0}deg)`;
|
|
1335
1408
|
return e.title ? z("div", {
|
|
1336
|
-
class:
|
|
1409
|
+
class: tn
|
|
1337
1410
|
}, `
|
|
1338
|
-
<div class="${
|
|
1339
|
-
<img src="${
|
|
1411
|
+
<div class="${nn}">${i}</div>
|
|
1412
|
+
<img src="${ce}" class="${ue}" style="${a}">
|
|
1340
1413
|
`) : z("img", {
|
|
1341
|
-
class:
|
|
1342
|
-
src:
|
|
1414
|
+
class: ue,
|
|
1415
|
+
src: ce,
|
|
1343
1416
|
style: a
|
|
1344
1417
|
});
|
|
1345
1418
|
});
|
|
1346
|
-
return () => m(
|
|
1419
|
+
return () => m(G, {
|
|
1347
1420
|
attrs: {
|
|
1348
|
-
position:
|
|
1421
|
+
position: C(e.position),
|
|
1349
1422
|
content: n.value
|
|
1350
1423
|
}
|
|
1351
1424
|
});
|
|
1352
|
-
}),
|
|
1353
|
-
const n =
|
|
1354
|
-
return () =>
|
|
1425
|
+
}), mo = v(function(e) {
|
|
1426
|
+
const n = j();
|
|
1427
|
+
return () => E(n.supplier === "gmap" ? va : pa, {
|
|
1355
1428
|
attrs: e
|
|
1356
1429
|
});
|
|
1357
|
-
}),
|
|
1430
|
+
}), ya = v(function(e) {
|
|
1358
1431
|
return () => {
|
|
1359
|
-
const
|
|
1360
|
-
|
|
1432
|
+
const {
|
|
1433
|
+
path: n
|
|
1434
|
+
} = e;
|
|
1435
|
+
if (n.length === 0)
|
|
1436
|
+
return null;
|
|
1437
|
+
const a = 2 * (window.innerWidth * 0.01);
|
|
1438
|
+
return m(_, {
|
|
1361
1439
|
attrs: {
|
|
1362
|
-
path:
|
|
1363
|
-
strokeWeight:
|
|
1440
|
+
path: n,
|
|
1441
|
+
strokeWeight: a,
|
|
1364
1442
|
strokeOpacity: 1,
|
|
1365
1443
|
strokeColor: "#38A3FE",
|
|
1366
1444
|
strokeStyle: "dashed",
|
|
1367
|
-
strokeDasharray: [
|
|
1445
|
+
strokeDasharray: [a, a * 1.5],
|
|
1368
1446
|
lineJoin: "round",
|
|
1369
1447
|
lineCap: "round"
|
|
1370
1448
|
}
|
|
1371
1449
|
});
|
|
1372
1450
|
};
|
|
1373
|
-
}),
|
|
1374
|
-
const n = L(() => e.path.map(
|
|
1451
|
+
}), ja = v(function(e) {
|
|
1452
|
+
const n = L(() => e.path.map(C));
|
|
1375
1453
|
return () => {
|
|
1376
|
-
const
|
|
1377
|
-
|
|
1454
|
+
const i = n.value;
|
|
1455
|
+
if (i.length === 0)
|
|
1456
|
+
return null;
|
|
1457
|
+
const o = 2 * (window.innerWidth * 0.01), r = o / 4;
|
|
1458
|
+
return m(ne, {
|
|
1378
1459
|
attrs: {
|
|
1379
|
-
path:
|
|
1380
|
-
strokeWeight:
|
|
1460
|
+
path: i,
|
|
1461
|
+
strokeWeight: o,
|
|
1381
1462
|
strokeOpacity: 1,
|
|
1382
1463
|
strokeColor: "transparent",
|
|
1383
1464
|
icons: [{
|
|
1384
1465
|
icon: {
|
|
1385
1466
|
path: `
|
|
1386
|
-
M ${
|
|
1387
|
-
m -${
|
|
1388
|
-
a ${
|
|
1389
|
-
a ${
|
|
1467
|
+
M ${r}, ${r}
|
|
1468
|
+
m -${r}, 0
|
|
1469
|
+
a ${r},${r} 0 1,0 ${2 * r},0
|
|
1470
|
+
a ${r},${r} 0 1,0 -${2 * r},0
|
|
1390
1471
|
`,
|
|
1391
1472
|
strokeColor: "#38A3FE",
|
|
1392
1473
|
fillColor: "#38A3FE",
|
|
1393
1474
|
fillOpacity: 1,
|
|
1394
1475
|
strokeOpacity: 1,
|
|
1395
|
-
strokeWeight:
|
|
1476
|
+
strokeWeight: o / 2,
|
|
1396
1477
|
scale: 1
|
|
1397
1478
|
},
|
|
1398
|
-
repeat: `${
|
|
1479
|
+
repeat: `${o * 2}px`
|
|
1399
1480
|
}]
|
|
1400
1481
|
}
|
|
1401
1482
|
});
|
|
1402
1483
|
};
|
|
1403
|
-
}),
|
|
1404
|
-
const n =
|
|
1405
|
-
return () =>
|
|
1484
|
+
}), po = v(function(e) {
|
|
1485
|
+
const n = j();
|
|
1486
|
+
return () => E(n.supplier === "gmap" ? ja : ya, {
|
|
1406
1487
|
attrs: e
|
|
1407
1488
|
});
|
|
1408
|
-
}),
|
|
1409
|
-
const e =
|
|
1489
|
+
}), an = (t) => {
|
|
1490
|
+
const e = w([]), n = new AMap.Walking({});
|
|
1410
1491
|
return Q(
|
|
1411
1492
|
() => ({ ...t }),
|
|
1412
1493
|
({ from: i, to: a }) => {
|
|
@@ -1416,14 +1497,15 @@ const ma = p(function(e) {
|
|
|
1416
1497
|
let s = [];
|
|
1417
1498
|
const u = r;
|
|
1418
1499
|
for (const l of u.routes)
|
|
1419
|
-
for (const
|
|
1420
|
-
const c =
|
|
1500
|
+
for (const d of l.steps) {
|
|
1501
|
+
const c = d.path.map(({ lng: g, lat: I }) => [g, I]);
|
|
1421
1502
|
s = s.concat(c);
|
|
1422
1503
|
}
|
|
1423
1504
|
e.value = s;
|
|
1424
1505
|
return;
|
|
1425
1506
|
}
|
|
1426
1507
|
case "no_data":
|
|
1508
|
+
e.value = [];
|
|
1427
1509
|
return;
|
|
1428
1510
|
default:
|
|
1429
1511
|
throw r;
|
|
@@ -1431,128 +1513,134 @@ const ma = p(function(e) {
|
|
|
1431
1513
|
});
|
|
1432
1514
|
}
|
|
1433
1515
|
), e;
|
|
1434
|
-
},
|
|
1435
|
-
const e =
|
|
1516
|
+
}, on = (t) => {
|
|
1517
|
+
const e = w([]), n = new google.maps.DirectionsService();
|
|
1436
1518
|
return Q(
|
|
1437
1519
|
() => ({ ...t }),
|
|
1438
1520
|
({ from: i, to: a }) => {
|
|
1439
|
-
n.route(
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
o
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1521
|
+
n.route(
|
|
1522
|
+
{
|
|
1523
|
+
origin: { lng: i[0], lat: i[1] },
|
|
1524
|
+
destination: { lng: a[0], lat: a[1] },
|
|
1525
|
+
travelMode: google.maps.TravelMode.WALKING
|
|
1526
|
+
},
|
|
1527
|
+
(o, r) => {
|
|
1528
|
+
switch (r) {
|
|
1529
|
+
case google.maps.DirectionsStatus.OK: {
|
|
1530
|
+
let s = [];
|
|
1531
|
+
o == null || o.routes.map((u) => {
|
|
1532
|
+
const l = u.overview_path.map((d) => [d.lng(), d.lat()]);
|
|
1533
|
+
s = s.concat(l);
|
|
1534
|
+
}), e.value = s;
|
|
1535
|
+
return;
|
|
1536
|
+
}
|
|
1537
|
+
case google.maps.DirectionsStatus.ZERO_RESULTS:
|
|
1538
|
+
case google.maps.DirectionsStatus.NOT_FOUND:
|
|
1539
|
+
e.value = [];
|
|
1540
|
+
return;
|
|
1541
|
+
default:
|
|
1542
|
+
throw new Error(r);
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
);
|
|
1450
1546
|
}
|
|
1451
1547
|
), e;
|
|
1452
|
-
},
|
|
1453
|
-
const { supplier: e } =
|
|
1454
|
-
return e === "gmap" ?
|
|
1455
|
-
},
|
|
1548
|
+
}, vo = (t) => {
|
|
1549
|
+
const { supplier: e } = j();
|
|
1550
|
+
return e === "gmap" ? on(t) : an(t);
|
|
1551
|
+
}, Aa = v(function(e, {
|
|
1456
1552
|
slots: n
|
|
1457
1553
|
}) {
|
|
1458
|
-
const i =
|
|
1459
|
-
path: a,
|
|
1460
|
-
map: i
|
|
1461
|
-
}));
|
|
1554
|
+
const i = an(e);
|
|
1462
1555
|
return () => {
|
|
1463
|
-
var
|
|
1464
|
-
return m("div", [(
|
|
1465
|
-
path:
|
|
1466
|
-
angle: o
|
|
1556
|
+
var a;
|
|
1557
|
+
return m("div", [(a = n.render) == null ? void 0 : a.call(n, x({
|
|
1558
|
+
path: i
|
|
1467
1559
|
}))]);
|
|
1468
1560
|
};
|
|
1469
|
-
}),
|
|
1561
|
+
}), La = v(function(e, {
|
|
1470
1562
|
slots: n
|
|
1471
1563
|
}) {
|
|
1472
|
-
const i =
|
|
1473
|
-
path: a,
|
|
1474
|
-
map: i
|
|
1475
|
-
}));
|
|
1564
|
+
const i = on(e);
|
|
1476
1565
|
return () => {
|
|
1477
|
-
var
|
|
1478
|
-
return m("div", [(
|
|
1479
|
-
path:
|
|
1480
|
-
angle: o
|
|
1566
|
+
var a;
|
|
1567
|
+
return m("div", [(a = n.render) == null ? void 0 : a.call(n, x({
|
|
1568
|
+
path: i
|
|
1481
1569
|
}))]);
|
|
1482
1570
|
};
|
|
1483
|
-
}),
|
|
1571
|
+
}), yo = v(function(e, {
|
|
1484
1572
|
slots: n
|
|
1485
1573
|
}) {
|
|
1486
1574
|
const {
|
|
1487
1575
|
supplier: i
|
|
1488
|
-
} =
|
|
1489
|
-
return () =>
|
|
1576
|
+
} = j();
|
|
1577
|
+
return () => E(i === "gmap" ? La : Aa, {
|
|
1490
1578
|
attrs: e,
|
|
1491
1579
|
scopedSlots: n
|
|
1492
1580
|
});
|
|
1493
|
-
}),
|
|
1494
|
-
var
|
|
1495
|
-
const
|
|
1496
|
-
const n = L(() => `<img src="${
|
|
1497
|
-
return () => m("div", [m(
|
|
1581
|
+
}), le = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";
|
|
1582
|
+
var rn = "rrvp0y3", de = "rrvp0y2";
|
|
1583
|
+
const Na = v(function(e) {
|
|
1584
|
+
const n = L(() => `<img src="${le}" class="${de}">`), i = L(() => `<img src="${le}" class="${de} ${rn}">`);
|
|
1585
|
+
return () => m("div", [m(R, {
|
|
1498
1586
|
attrs: {
|
|
1499
1587
|
position: e.position,
|
|
1500
1588
|
anchor: "bottom-center",
|
|
1501
1589
|
content: n.value
|
|
1502
1590
|
}
|
|
1503
|
-
}), m(
|
|
1591
|
+
}), m(R, {
|
|
1504
1592
|
attrs: {
|
|
1505
1593
|
position: e.position,
|
|
1506
1594
|
anchor: "bottom-center",
|
|
1507
1595
|
content: i.value
|
|
1508
1596
|
}
|
|
1509
1597
|
})]);
|
|
1510
|
-
}),
|
|
1598
|
+
}), Sa = v(function(e) {
|
|
1511
1599
|
const n = L(() => z("img", {
|
|
1512
|
-
class:
|
|
1513
|
-
src:
|
|
1600
|
+
class: de,
|
|
1601
|
+
src: le
|
|
1514
1602
|
})), i = L(() => z("img", {
|
|
1515
|
-
class: `${
|
|
1516
|
-
src:
|
|
1603
|
+
class: `${de} ${rn}`,
|
|
1604
|
+
src: le
|
|
1517
1605
|
}));
|
|
1518
1606
|
return () => {
|
|
1519
|
-
const a =
|
|
1520
|
-
return m("div", [m(
|
|
1607
|
+
const a = C(e.position);
|
|
1608
|
+
return m("div", [m(G, {
|
|
1521
1609
|
attrs: {
|
|
1522
1610
|
position: a,
|
|
1523
1611
|
content: n.value
|
|
1524
1612
|
}
|
|
1525
|
-
}), m(
|
|
1613
|
+
}), m(G, {
|
|
1526
1614
|
attrs: {
|
|
1527
1615
|
position: a,
|
|
1528
1616
|
content: i.value
|
|
1529
1617
|
}
|
|
1530
1618
|
})]);
|
|
1531
1619
|
};
|
|
1532
|
-
}),
|
|
1533
|
-
const n =
|
|
1534
|
-
return () =>
|
|
1620
|
+
}), jo = v(function(e) {
|
|
1621
|
+
const n = j();
|
|
1622
|
+
return () => E(n.supplier === "gmap" ? Sa : Na, {
|
|
1535
1623
|
attrs: e
|
|
1536
1624
|
});
|
|
1537
1625
|
});
|
|
1538
|
-
var
|
|
1626
|
+
var je = {}, Da = {
|
|
1539
1627
|
get exports() {
|
|
1540
|
-
return
|
|
1628
|
+
return je;
|
|
1541
1629
|
},
|
|
1542
1630
|
set exports(t) {
|
|
1543
|
-
|
|
1631
|
+
je = t;
|
|
1544
1632
|
}
|
|
1545
1633
|
};
|
|
1546
1634
|
(function(t, e) {
|
|
1547
1635
|
(function(n, i) {
|
|
1548
1636
|
t.exports = i();
|
|
1549
|
-
})(
|
|
1637
|
+
})(fn, function() {
|
|
1550
1638
|
function n(c) {
|
|
1551
|
-
var
|
|
1552
|
-
return c.AMapUI &&
|
|
1639
|
+
var g = [];
|
|
1640
|
+
return c.AMapUI && g.push(i(c.AMapUI)), c.Loca && g.push(a(c.Loca)), Promise.all(g);
|
|
1553
1641
|
}
|
|
1554
1642
|
function i(c) {
|
|
1555
|
-
return new Promise(function(
|
|
1643
|
+
return new Promise(function(g, I) {
|
|
1556
1644
|
var M = [];
|
|
1557
1645
|
if (c.plugins)
|
|
1558
1646
|
for (var f = 0; f < c.plugins.length; f += 1)
|
|
@@ -1561,63 +1649,63 @@ var Ae = {}, Sa = {
|
|
|
1561
1649
|
I("前次请求 AMapUI 失败");
|
|
1562
1650
|
else if (s.AMapUI === o.notload) {
|
|
1563
1651
|
s.AMapUI = o.loading, r.AMapUI.version = c.version || r.AMapUI.version, f = r.AMapUI.version;
|
|
1564
|
-
var
|
|
1565
|
-
|
|
1652
|
+
var p = document.body || document.head, A = document.createElement("script");
|
|
1653
|
+
A.type = "text/javascript", A.src = "https://webapi.amap.com/ui/" + f + "/main.js", A.onerror = function(y) {
|
|
1566
1654
|
s.AMapUI = o.failed, I("请求 AMapUI 失败");
|
|
1567
|
-
},
|
|
1655
|
+
}, A.onload = function() {
|
|
1568
1656
|
if (s.AMapUI = o.loaded, M.length)
|
|
1569
1657
|
window.AMapUI.loadUI(M, function() {
|
|
1570
|
-
for (var
|
|
1571
|
-
var P = M[
|
|
1572
|
-
window.AMapUI[P] = arguments[
|
|
1658
|
+
for (var y = 0, h = M.length; y < h; y++) {
|
|
1659
|
+
var P = M[y].split("/").slice(-1)[0];
|
|
1660
|
+
window.AMapUI[P] = arguments[y];
|
|
1573
1661
|
}
|
|
1574
|
-
for (
|
|
1662
|
+
for (g(); u.AMapUI.length; )
|
|
1575
1663
|
u.AMapUI.splice(0, 1)[0]();
|
|
1576
1664
|
});
|
|
1577
1665
|
else
|
|
1578
|
-
for (
|
|
1666
|
+
for (g(); u.AMapUI.length; )
|
|
1579
1667
|
u.AMapUI.splice(0, 1)[0]();
|
|
1580
|
-
},
|
|
1668
|
+
}, p.appendChild(A);
|
|
1581
1669
|
} else
|
|
1582
1670
|
s.AMapUI === o.loaded ? c.version && c.version !== r.AMapUI.version ? I("不允许多个版本 AMapUI 混用") : M.length ? window.AMapUI.loadUI(M, function() {
|
|
1583
|
-
for (var
|
|
1584
|
-
var P = M[
|
|
1585
|
-
window.AMapUI[P] = arguments[
|
|
1671
|
+
for (var y = 0, h = M.length; y < h; y++) {
|
|
1672
|
+
var P = M[y].split("/").slice(-1)[0];
|
|
1673
|
+
window.AMapUI[P] = arguments[y];
|
|
1586
1674
|
}
|
|
1587
|
-
|
|
1588
|
-
}) :
|
|
1589
|
-
|
|
1675
|
+
g();
|
|
1676
|
+
}) : g() : c.version && c.version !== r.AMapUI.version ? I("不允许多个版本 AMapUI 混用") : u.AMapUI.push(function(y) {
|
|
1677
|
+
y ? I(y) : M.length ? window.AMapUI.loadUI(M, function() {
|
|
1590
1678
|
for (var h = 0, P = M.length; h < P; h++) {
|
|
1591
|
-
var
|
|
1592
|
-
window.AMapUI[
|
|
1679
|
+
var O = M[h].split("/").slice(-1)[0];
|
|
1680
|
+
window.AMapUI[O] = arguments[h];
|
|
1593
1681
|
}
|
|
1594
|
-
|
|
1595
|
-
}) :
|
|
1682
|
+
g();
|
|
1683
|
+
}) : g();
|
|
1596
1684
|
});
|
|
1597
1685
|
});
|
|
1598
1686
|
}
|
|
1599
1687
|
function a(c) {
|
|
1600
|
-
return new Promise(function(
|
|
1688
|
+
return new Promise(function(g, I) {
|
|
1601
1689
|
if (s.Loca === o.failed)
|
|
1602
1690
|
I("前次请求 Loca 失败");
|
|
1603
1691
|
else if (s.Loca === o.notload) {
|
|
1604
1692
|
s.Loca = o.loading, r.Loca.version = c.version || r.Loca.version;
|
|
1605
|
-
var M = r.Loca.version, f = r.AMap.version.startsWith("2"),
|
|
1606
|
-
if (f && !
|
|
1693
|
+
var M = r.Loca.version, f = r.AMap.version.startsWith("2"), p = M.startsWith("2");
|
|
1694
|
+
if (f && !p || !f && p)
|
|
1607
1695
|
I("JSAPI 与 Loca 版本不对应!!");
|
|
1608
1696
|
else {
|
|
1609
|
-
f = r.key,
|
|
1610
|
-
var
|
|
1611
|
-
|
|
1697
|
+
f = r.key, p = document.body || document.head;
|
|
1698
|
+
var A = document.createElement("script");
|
|
1699
|
+
A.type = "text/javascript", A.src = "https://webapi.amap.com/loca?v=" + M + "&key=" + f, A.onerror = function(y) {
|
|
1612
1700
|
s.Loca = o.failed, I("请求 AMapUI 失败");
|
|
1613
|
-
},
|
|
1614
|
-
for (s.Loca = o.loaded,
|
|
1701
|
+
}, A.onload = function() {
|
|
1702
|
+
for (s.Loca = o.loaded, g(); u.Loca.length; )
|
|
1615
1703
|
u.Loca.splice(0, 1)[0]();
|
|
1616
|
-
},
|
|
1704
|
+
}, p.appendChild(A);
|
|
1617
1705
|
}
|
|
1618
1706
|
} else
|
|
1619
|
-
s.Loca === o.loaded ? c.version && c.version !== r.Loca.version ? I("不允许多个版本 Loca 混用") :
|
|
1620
|
-
|
|
1707
|
+
s.Loca === o.loaded ? c.version && c.version !== r.Loca.version ? I("不允许多个版本 Loca 混用") : g() : c.version && c.version !== r.Loca.version ? I("不允许多个版本 Loca 混用") : u.Loca.push(function(y) {
|
|
1708
|
+
y ? I(y) : I();
|
|
1621
1709
|
});
|
|
1622
1710
|
});
|
|
1623
1711
|
}
|
|
@@ -1627,26 +1715,26 @@ var Ae = {}, Sa = {
|
|
|
1627
1715
|
(function(c) {
|
|
1628
1716
|
c.notload = "notload", c.loading = "loading", c.loaded = "loaded", c.failed = "failed";
|
|
1629
1717
|
})(o || (o = {}));
|
|
1630
|
-
var r = { key: "", AMap: { version: "1.4.15", plugins: [] }, AMapUI: { version: "1.1", plugins: [] }, Loca: { version: "1.3.2" } }, s = { AMap: o.notload, AMapUI: o.notload, Loca: o.notload }, u = { AMap: [], AMapUI: [], Loca: [] }, l = [],
|
|
1718
|
+
var r = { key: "", AMap: { version: "1.4.15", plugins: [] }, AMapUI: { version: "1.1", plugins: [] }, Loca: { version: "1.3.2" } }, s = { AMap: o.notload, AMapUI: o.notload, Loca: o.notload }, u = { AMap: [], AMapUI: [], Loca: [] }, l = [], d = function(c) {
|
|
1631
1719
|
typeof c == "function" && (s.AMap === o.loaded ? c(window.AMap) : l.push(c));
|
|
1632
1720
|
};
|
|
1633
1721
|
return { load: function(c) {
|
|
1634
|
-
return new Promise(function(
|
|
1722
|
+
return new Promise(function(g, I) {
|
|
1635
1723
|
if (s.AMap == o.failed)
|
|
1636
1724
|
I("");
|
|
1637
1725
|
else if (s.AMap == o.notload) {
|
|
1638
|
-
var M = c.key, f = c.version,
|
|
1639
|
-
M ? (window.AMap && location.host !== "lbs.amap.com" && I("禁止多种API加载方式混用"), r.key = M, r.AMap.version = f || r.AMap.version, r.AMap.plugins =
|
|
1640
|
-
if (delete window.___onAPILoaded,
|
|
1641
|
-
s.AMap = o.failed, I(
|
|
1726
|
+
var M = c.key, f = c.version, p = c.plugins;
|
|
1727
|
+
M ? (window.AMap && location.host !== "lbs.amap.com" && I("禁止多种API加载方式混用"), r.key = M, r.AMap.version = f || r.AMap.version, r.AMap.plugins = p || r.AMap.plugins, s.AMap = o.loading, f = document.body || document.head, window.___onAPILoaded = function(y) {
|
|
1728
|
+
if (delete window.___onAPILoaded, y)
|
|
1729
|
+
s.AMap = o.failed, I(y);
|
|
1642
1730
|
else
|
|
1643
1731
|
for (s.AMap = o.loaded, n(c).then(function() {
|
|
1644
|
-
|
|
1732
|
+
g(window.AMap);
|
|
1645
1733
|
}).catch(I); l.length; )
|
|
1646
1734
|
l.splice(0, 1)[0]();
|
|
1647
|
-
},
|
|
1648
|
-
s.AMap = o.failed, I(
|
|
1649
|
-
}, f.appendChild(
|
|
1735
|
+
}, p = document.createElement("script"), p.type = "text/javascript", p.src = "https://webapi.amap.com/maps?callback=___onAPILoaded&v=" + r.AMap.version + "&key=" + M + "&plugin=" + r.AMap.plugins.join(","), p.onerror = function(y) {
|
|
1736
|
+
s.AMap = o.failed, I(y);
|
|
1737
|
+
}, f.appendChild(p)) : I("请填写key");
|
|
1650
1738
|
} else if (s.AMap == o.loaded)
|
|
1651
1739
|
if (c.key && c.key !== r.key)
|
|
1652
1740
|
I("多个不一致的 key");
|
|
@@ -1658,10 +1746,10 @@ var Ae = {}, Sa = {
|
|
|
1658
1746
|
r.AMap.plugins.indexOf(c.plugins[f]) == -1 && M.push(c.plugins[f]);
|
|
1659
1747
|
M.length ? window.AMap.plugin(M, function() {
|
|
1660
1748
|
n(c).then(function() {
|
|
1661
|
-
|
|
1749
|
+
g(window.AMap);
|
|
1662
1750
|
}).catch(I);
|
|
1663
1751
|
}) : n(c).then(function() {
|
|
1664
|
-
|
|
1752
|
+
g(window.AMap);
|
|
1665
1753
|
}).catch(I);
|
|
1666
1754
|
}
|
|
1667
1755
|
else if (c.key && c.key !== r.key)
|
|
@@ -1669,17 +1757,17 @@ var Ae = {}, Sa = {
|
|
|
1669
1757
|
else if (c.version && c.version !== r.AMap.version)
|
|
1670
1758
|
I("不允许多个版本 JSAPI 混用");
|
|
1671
1759
|
else {
|
|
1672
|
-
var
|
|
1760
|
+
var A = [];
|
|
1673
1761
|
if (c.plugins)
|
|
1674
1762
|
for (f = 0; f < c.plugins.length; f += 1)
|
|
1675
|
-
r.AMap.plugins.indexOf(c.plugins[f]) == -1 &&
|
|
1676
|
-
|
|
1677
|
-
|
|
1763
|
+
r.AMap.plugins.indexOf(c.plugins[f]) == -1 && A.push(c.plugins[f]);
|
|
1764
|
+
d(function() {
|
|
1765
|
+
A.length ? window.AMap.plugin(A, function() {
|
|
1678
1766
|
n(c).then(function() {
|
|
1679
|
-
|
|
1767
|
+
g(window.AMap);
|
|
1680
1768
|
}).catch(I);
|
|
1681
1769
|
}) : n(c).then(function() {
|
|
1682
|
-
|
|
1770
|
+
g(window.AMap);
|
|
1683
1771
|
}).catch(I);
|
|
1684
1772
|
});
|
|
1685
1773
|
}
|
|
@@ -1692,8 +1780,8 @@ var Ae = {}, Sa = {
|
|
|
1692
1780
|
}, u = { AMap: [], AMapUI: [], Loca: [] };
|
|
1693
1781
|
} };
|
|
1694
1782
|
});
|
|
1695
|
-
})(
|
|
1696
|
-
var
|
|
1783
|
+
})(Da);
|
|
1784
|
+
var ha = function t(e, n) {
|
|
1697
1785
|
if (e === n)
|
|
1698
1786
|
return !0;
|
|
1699
1787
|
if (e && n && typeof e == "object" && typeof n == "object") {
|
|
@@ -1728,12 +1816,12 @@ var Da = function t(e, n) {
|
|
|
1728
1816
|
}
|
|
1729
1817
|
return e !== e && n !== n;
|
|
1730
1818
|
};
|
|
1731
|
-
const
|
|
1732
|
-
var
|
|
1819
|
+
const Fe = "__googleMapsScriptId";
|
|
1820
|
+
var Y;
|
|
1733
1821
|
(function(t) {
|
|
1734
1822
|
t[t.INITIALIZED = 0] = "INITIALIZED", t[t.LOADING = 1] = "LOADING", t[t.SUCCESS = 2] = "SUCCESS", t[t.FAILURE = 3] = "FAILURE";
|
|
1735
|
-
})(
|
|
1736
|
-
class
|
|
1823
|
+
})(Y || (Y = {}));
|
|
1824
|
+
class U {
|
|
1737
1825
|
/**
|
|
1738
1826
|
* Creates an instance of Loader using [[LoaderOptions]]. No defaults are set
|
|
1739
1827
|
* using this library, instead the defaults are set by the Google Maps
|
|
@@ -1743,13 +1831,13 @@ class W {
|
|
|
1743
1831
|
* const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
|
|
1744
1832
|
* ```
|
|
1745
1833
|
*/
|
|
1746
|
-
constructor({ apiKey: e, authReferrerPolicy: n, channel: i, client: a, id: o =
|
|
1747
|
-
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 = o ||
|
|
1748
|
-
if (!
|
|
1749
|
-
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(
|
|
1750
|
-
return
|
|
1834
|
+
constructor({ apiKey: e, authReferrerPolicy: n, channel: i, client: a, id: o = Fe, language: r, libraries: s = [], mapIds: u, nonce: l, region: d, retries: c = 3, url: g = "https://maps.googleapis.com/maps/api/js", version: I }) {
|
|
1835
|
+
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 = o || Fe, this.language = r, this.libraries = s, this.mapIds = u, this.nonce = l, this.region = d, this.retries = c, this.url = g, this.version = I, U.instance) {
|
|
1836
|
+
if (!ha(this.options, U.instance.options))
|
|
1837
|
+
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(U.instance.options)}`);
|
|
1838
|
+
return U.instance;
|
|
1751
1839
|
}
|
|
1752
|
-
|
|
1840
|
+
U.instance = this;
|
|
1753
1841
|
}
|
|
1754
1842
|
get options() {
|
|
1755
1843
|
return {
|
|
@@ -1768,7 +1856,7 @@ class W {
|
|
|
1768
1856
|
};
|
|
1769
1857
|
}
|
|
1770
1858
|
get status() {
|
|
1771
|
-
return this.errors.length ?
|
|
1859
|
+
return this.errors.length ? Y.FAILURE : this.done ? Y.SUCCESS : this.loading ? Y.LOADING : Y.INITIALIZED;
|
|
1772
1860
|
}
|
|
1773
1861
|
get failed() {
|
|
1774
1862
|
return this.done && !this.loading && this.errors.length >= this.retries + 1;
|
|
@@ -1864,20 +1952,20 @@ const xa = [
|
|
|
1864
1952
|
"AMap.Geocoder",
|
|
1865
1953
|
"AMap.PlaceSearch",
|
|
1866
1954
|
"AMap.Driving",
|
|
1867
|
-
"AMap.
|
|
1868
|
-
],
|
|
1869
|
-
var
|
|
1870
|
-
const
|
|
1955
|
+
"AMap.Walking"
|
|
1956
|
+
], Ca = ["marker", "places", "geometry"];
|
|
1957
|
+
var q = /* @__PURE__ */ ((t) => (t.LOADING = "LOADING", t.FAILURE = "FAILURE", t.SUCCESS = "SUCCESS", t))(q || {});
|
|
1958
|
+
const wa = (t) => {
|
|
1871
1959
|
const { onChange: e } = t;
|
|
1872
1960
|
let n, i;
|
|
1873
1961
|
const a = new Promise((s, u) => {
|
|
1874
1962
|
n = s, i = u;
|
|
1875
|
-
}), o =
|
|
1963
|
+
}), o = w(
|
|
1876
1964
|
"LOADING"
|
|
1877
1965
|
/* LOADING */
|
|
1878
1966
|
), r = L(() => {
|
|
1879
|
-
const { onChange: s, loading: u, fallback: l, apiKey:
|
|
1880
|
-
return { ...M, key:
|
|
1967
|
+
const { onChange: s, loading: u, fallback: l, apiKey: d, apiSecret: c, apiServiceHost: g, version: I, ...M } = t;
|
|
1968
|
+
return { ...M, key: d, version: I != null ? I : "2.0.5.16" };
|
|
1881
1969
|
});
|
|
1882
1970
|
return Q(
|
|
1883
1971
|
() => r.value,
|
|
@@ -1890,7 +1978,7 @@ const Ca = (t) => {
|
|
|
1890
1978
|
/* LOADING */
|
|
1891
1979
|
), window._AMapSecurityConfig = t.apiServiceHost ? {
|
|
1892
1980
|
serviceHost: t.apiServiceHost
|
|
1893
|
-
} : { securityJsCode: t.apiSecret },
|
|
1981
|
+
} : { securityJsCode: t.apiSecret }, je.load(s).then(
|
|
1894
1982
|
() => u(
|
|
1895
1983
|
"SUCCESS"
|
|
1896
1984
|
/* SUCCESS */
|
|
@@ -1902,23 +1990,23 @@ const Ca = (t) => {
|
|
|
1902
1990
|
);
|
|
1903
1991
|
}
|
|
1904
1992
|
), { statusRef: o, readyPromise: a };
|
|
1905
|
-
},
|
|
1993
|
+
}, ba = (t) => {
|
|
1906
1994
|
const { onChange: e } = t;
|
|
1907
1995
|
let n, i;
|
|
1908
1996
|
const a = new Promise((s, u) => {
|
|
1909
1997
|
n = s, i = u;
|
|
1910
|
-
}), o =
|
|
1998
|
+
}), o = w(
|
|
1911
1999
|
"LOADING"
|
|
1912
2000
|
/* LOADING */
|
|
1913
2001
|
), r = L(() => {
|
|
1914
|
-
const { onChange: s, fallback: u, loading: l, ...
|
|
1915
|
-
return
|
|
2002
|
+
const { onChange: s, fallback: u, loading: l, ...d } = t;
|
|
2003
|
+
return d;
|
|
1916
2004
|
});
|
|
1917
2005
|
return Q(
|
|
1918
2006
|
() => r.value,
|
|
1919
2007
|
(s) => {
|
|
1920
|
-
const u = new
|
|
1921
|
-
o.value =
|
|
2008
|
+
const u = new U(s), l = (d) => {
|
|
2009
|
+
o.value = d, d === "SUCCESS" && n(), d === "FAILURE" && i(), e == null || e(o.value);
|
|
1922
2010
|
};
|
|
1923
2011
|
l(
|
|
1924
2012
|
"LOADING"
|
|
@@ -1935,15 +2023,15 @@ const Ca = (t) => {
|
|
|
1935
2023
|
);
|
|
1936
2024
|
}
|
|
1937
2025
|
), { statusRef: o, readyPromise: a };
|
|
1938
|
-
},
|
|
2026
|
+
}, Pa = (t) => {
|
|
1939
2027
|
const { gmapKey: e, amapKey: n, amapSecret: i, amapServiceHost: a, supplier: o, language: r, onChange: s } = t;
|
|
1940
|
-
return o === "gmap" ?
|
|
2028
|
+
return o === "gmap" ? ba({
|
|
1941
2029
|
apiKey: e,
|
|
1942
2030
|
language: r,
|
|
1943
2031
|
version: "beta",
|
|
1944
|
-
libraries:
|
|
2032
|
+
libraries: Ca,
|
|
1945
2033
|
onChange: s
|
|
1946
|
-
}) :
|
|
2034
|
+
}) : wa({
|
|
1947
2035
|
apiKey: n,
|
|
1948
2036
|
apiSecret: i,
|
|
1949
2037
|
apiServiceHost: a,
|
|
@@ -1951,8 +2039,8 @@ const Ca = (t) => {
|
|
|
1951
2039
|
onChange: s
|
|
1952
2040
|
});
|
|
1953
2041
|
};
|
|
1954
|
-
var
|
|
1955
|
-
const
|
|
2042
|
+
var za = "_1d8ur7t0";
|
|
2043
|
+
const Ea = v(function(e, { slots: n, emit: i }) {
|
|
1956
2044
|
const {
|
|
1957
2045
|
onDragStart: a,
|
|
1958
2046
|
onDragEnd: o,
|
|
@@ -1967,23 +2055,23 @@ const za = p(function(e, { slots: n, emit: i }) {
|
|
|
1967
2055
|
rotateEnable: !!e.rotateEnable,
|
|
1968
2056
|
animateEnable: !!e.animateEnable,
|
|
1969
2057
|
keyboardEnable: !!e.keyboardEnable
|
|
1970
|
-
})),
|
|
1971
|
-
return
|
|
1972
|
-
if (c.value || !
|
|
2058
|
+
})), d = w(), c = w();
|
|
2059
|
+
return In(c), k(() => {
|
|
2060
|
+
if (c.value || !d.value)
|
|
1973
2061
|
return;
|
|
1974
|
-
const
|
|
2062
|
+
const g = new AMap.Map(d.value, {
|
|
1975
2063
|
...u,
|
|
1976
2064
|
vectorMapForeign: s,
|
|
1977
2065
|
mapStyle: "amap://styles/95498a904992a4c0b866a3e4d7729682"
|
|
1978
2066
|
});
|
|
1979
|
-
c.value =
|
|
1980
|
-
}),
|
|
2067
|
+
c.value = g, r == null || r(g);
|
|
2068
|
+
}), te(
|
|
1981
2069
|
() => l.value,
|
|
1982
|
-
(
|
|
2070
|
+
(g) => {
|
|
1983
2071
|
var I;
|
|
1984
|
-
(I = c.value) == null || I.setStatus(
|
|
2072
|
+
(I = c.value) == null || I.setStatus(g);
|
|
1985
2073
|
}
|
|
1986
|
-
),
|
|
2074
|
+
), he(c, e, [
|
|
1987
2075
|
{ name: "center", defaultValue: [0, 0] },
|
|
1988
2076
|
{ name: "zooms", defaultValue: [0, 0] },
|
|
1989
2077
|
{ name: "zoom", defaultValue: 0 },
|
|
@@ -1996,65 +2084,65 @@ const za = p(function(e, { slots: n, emit: i }) {
|
|
|
1996
2084
|
{ name: "pitch", defaultValue: 0 },
|
|
1997
2085
|
{ name: "mask", defaultValue: [] },
|
|
1998
2086
|
{ name: "labelRejectMask", defaultValue: !1 }
|
|
1999
|
-
]),
|
|
2000
|
-
var
|
|
2001
|
-
return m("div", { ref:
|
|
2087
|
+
]), oe(c, e, i, ["onDragStart", "onDragEnd"]), () => {
|
|
2088
|
+
var g;
|
|
2089
|
+
return m("div", { ref: d, class: za }, (g = n.default) == null ? void 0 : g.call(n));
|
|
2002
2090
|
};
|
|
2003
2091
|
});
|
|
2004
|
-
let
|
|
2005
|
-
const Za = () =>
|
|
2006
|
-
|
|
2092
|
+
let ie = "user";
|
|
2093
|
+
const Za = () => ie, sn = () => ({ executeMapApi: (e) => {
|
|
2094
|
+
ie = "api";
|
|
2007
2095
|
try {
|
|
2008
2096
|
e(), setTimeout(() => {
|
|
2009
|
-
|
|
2097
|
+
ie = "user";
|
|
2010
2098
|
}, 100);
|
|
2011
2099
|
} catch (n) {
|
|
2012
|
-
throw
|
|
2100
|
+
throw ie = "user", n;
|
|
2013
2101
|
}
|
|
2014
|
-
} }),
|
|
2102
|
+
} }), Ta = v(function(e, { slots: n, emit: i }) {
|
|
2015
2103
|
const a = e.mapRef, o = L(() => {
|
|
2016
|
-
const { mapRef: c, onDragStart:
|
|
2104
|
+
const { mapRef: c, onDragStart: g, onDragEnd: I, ...M } = e;
|
|
2017
2105
|
return M;
|
|
2018
|
-
}), r = o.value, s =
|
|
2019
|
-
return
|
|
2106
|
+
}), r = o.value, s = w(), u = w(), { executeMapApi: l } = sn(), d = (c) => i(c, { target: u.value });
|
|
2107
|
+
return Mn(u), k(() => {
|
|
2020
2108
|
if (u.value || !s.value)
|
|
2021
2109
|
return;
|
|
2022
2110
|
let c;
|
|
2023
2111
|
l(() => {
|
|
2024
2112
|
c = new google.maps.Map(s.value, { ...r });
|
|
2025
2113
|
}), u.value = c, a == null || a(c);
|
|
2026
|
-
}),
|
|
2114
|
+
}), te(
|
|
2027
2115
|
() => o.value,
|
|
2028
2116
|
(c) => {
|
|
2029
2117
|
l(() => {
|
|
2030
|
-
var
|
|
2031
|
-
return (
|
|
2118
|
+
var g;
|
|
2119
|
+
return (g = u.value) == null ? void 0 : g.setOptions({ ...c });
|
|
2032
2120
|
});
|
|
2033
2121
|
}
|
|
2034
|
-
),
|
|
2122
|
+
), K(u, e, d, ["onDragStart", "onDragEnd"]), () => {
|
|
2035
2123
|
var c;
|
|
2036
2124
|
return m("div", { ref: s }, (c = n.default) == null ? void 0 : c.call(n));
|
|
2037
2125
|
};
|
|
2038
|
-
}),
|
|
2126
|
+
}), Ao = Me(function(e, {
|
|
2039
2127
|
slots: n
|
|
2040
2128
|
}) {
|
|
2041
2129
|
const {
|
|
2042
2130
|
statusRef: i,
|
|
2043
2131
|
readyPromise: a
|
|
2044
|
-
} =
|
|
2132
|
+
} = Pa(e), o = new Proxy(e, {
|
|
2045
2133
|
get(r, s, u) {
|
|
2046
2134
|
return s === "status" ? i.value : s === "readyPromise" ? a : Reflect.get(r, s, u);
|
|
2047
2135
|
}
|
|
2048
2136
|
});
|
|
2049
|
-
return
|
|
2137
|
+
return gn(o), () => {
|
|
2050
2138
|
var r;
|
|
2051
2139
|
return m("div", [(r = n.default) == null ? void 0 : r.call(n)]);
|
|
2052
2140
|
};
|
|
2053
|
-
}).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier", "language"]),
|
|
2141
|
+
}).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier", "language"]), Lo = Me(function(e, {
|
|
2054
2142
|
slots: n,
|
|
2055
2143
|
emit: i
|
|
2056
2144
|
}) {
|
|
2057
|
-
const a =
|
|
2145
|
+
const a = j(), o = ({
|
|
2058
2146
|
target: s
|
|
2059
2147
|
}) => {
|
|
2060
2148
|
const {
|
|
@@ -2072,29 +2160,29 @@ const Za = () => te, rn = () => ({ executeMapApi: (e) => {
|
|
|
2072
2160
|
i("dragEnd", [u, l]);
|
|
2073
2161
|
};
|
|
2074
2162
|
return () => {
|
|
2075
|
-
var f,
|
|
2163
|
+
var f, p, A;
|
|
2076
2164
|
const {
|
|
2077
2165
|
supplier: s,
|
|
2078
2166
|
gmapId: u,
|
|
2079
2167
|
language: l = "zh",
|
|
2080
|
-
status:
|
|
2168
|
+
status: d
|
|
2081
2169
|
} = a, {
|
|
2082
2170
|
mapRef: c,
|
|
2083
|
-
center:
|
|
2171
|
+
center: g,
|
|
2084
2172
|
zoom: I
|
|
2085
2173
|
} = e;
|
|
2086
|
-
if (
|
|
2174
|
+
if (d === q.LOADING)
|
|
2087
2175
|
return (f = n.loading) == null ? void 0 : f.call(n);
|
|
2088
|
-
if (
|
|
2089
|
-
return (
|
|
2090
|
-
const M = (
|
|
2176
|
+
if (d === q.FAILURE)
|
|
2177
|
+
return (p = n.fallback) == null ? void 0 : p.call(n);
|
|
2178
|
+
const M = (A = n.default) == null ? void 0 : A.call(n);
|
|
2091
2179
|
switch (s) {
|
|
2092
2180
|
case "gmap":
|
|
2093
|
-
return m(
|
|
2181
|
+
return m(Ta, {
|
|
2094
2182
|
attrs: {
|
|
2095
2183
|
mapRef: c,
|
|
2096
2184
|
mapId: u,
|
|
2097
|
-
center:
|
|
2185
|
+
center: g ? C(g) : void 0,
|
|
2098
2186
|
zoom: I
|
|
2099
2187
|
},
|
|
2100
2188
|
on: {
|
|
@@ -2102,11 +2190,11 @@ const Za = () => te, rn = () => ({ executeMapApi: (e) => {
|
|
|
2102
2190
|
}
|
|
2103
2191
|
}, [M]);
|
|
2104
2192
|
default:
|
|
2105
|
-
return m(
|
|
2193
|
+
return m(Ea, {
|
|
2106
2194
|
attrs: {
|
|
2107
2195
|
mapRef: c,
|
|
2108
|
-
vectorMapForeign:
|
|
2109
|
-
center:
|
|
2196
|
+
vectorMapForeign: _i(l),
|
|
2197
|
+
center: g,
|
|
2110
2198
|
zoom: I
|
|
2111
2199
|
},
|
|
2112
2200
|
on: {
|
|
@@ -2115,26 +2203,26 @@ const Za = () => te, rn = () => ({ executeMapApi: (e) => {
|
|
|
2115
2203
|
}, [M]);
|
|
2116
2204
|
}
|
|
2117
2205
|
};
|
|
2118
|
-
}).props(["center", "fallback", "loading", "mapRef", "zoom"]),
|
|
2206
|
+
}).props(["center", "fallback", "loading", "mapRef", "zoom"]), X = () => {
|
|
2119
2207
|
const t = D(0);
|
|
2120
2208
|
return { idx: t, update: () => {
|
|
2121
2209
|
t.value += 1;
|
|
2122
2210
|
} };
|
|
2123
|
-
},
|
|
2124
|
-
const { city: e } = t, n = D(e), { readyPromise: i } =
|
|
2125
|
-
n.value =
|
|
2126
|
-
}, l = (
|
|
2127
|
-
a.value =
|
|
2211
|
+
}, Ra = (t) => {
|
|
2212
|
+
const { city: e } = t, n = D(e), { readyPromise: i } = j(), a = D(""), o = D([]), { update: r, idx: s } = X(), u = (d) => {
|
|
2213
|
+
n.value = d, r();
|
|
2214
|
+
}, l = (d) => {
|
|
2215
|
+
a.value = d, r();
|
|
2128
2216
|
};
|
|
2129
2217
|
return b(
|
|
2130
2218
|
() => s.value,
|
|
2131
2219
|
async () => {
|
|
2132
2220
|
if (!a.value)
|
|
2133
2221
|
return;
|
|
2134
|
-
await i, new AMap.PlaceSearch({ city: n.value.name }).search(a.value, (c,
|
|
2222
|
+
await i, new AMap.PlaceSearch({ city: n.value.name }).search(a.value, (c, g) => {
|
|
2135
2223
|
switch (c) {
|
|
2136
2224
|
case "complete": {
|
|
2137
|
-
o.value =
|
|
2225
|
+
o.value = g.poiList.pois.map(
|
|
2138
2226
|
(I) => ({
|
|
2139
2227
|
lat: I.location.lat,
|
|
2140
2228
|
lng: I.location.lng,
|
|
@@ -2148,7 +2236,7 @@ const Za = () => te, rn = () => ({ executeMapApi: (e) => {
|
|
|
2148
2236
|
o.value = [];
|
|
2149
2237
|
return;
|
|
2150
2238
|
default:
|
|
2151
|
-
throw
|
|
2239
|
+
throw g;
|
|
2152
2240
|
}
|
|
2153
2241
|
});
|
|
2154
2242
|
},
|
|
@@ -2156,33 +2244,33 @@ const Za = () => te, rn = () => ({ executeMapApi: (e) => {
|
|
|
2156
2244
|
immediate: !0
|
|
2157
2245
|
}
|
|
2158
2246
|
), { setKeyword: l, setCity: u, autoCompletePlaces: o };
|
|
2159
|
-
},
|
|
2160
|
-
const { city: e } = t, n = D({ ...e }), { readyPromise: i } =
|
|
2247
|
+
}, Ga = (t) => {
|
|
2248
|
+
const { city: e } = t, n = D({ ...e }), { readyPromise: i } = j(), a = D(""), o = D([]), { update: r, idx: s } = X(), u = (c) => {
|
|
2161
2249
|
n.value = c, r();
|
|
2162
2250
|
}, l = (c) => {
|
|
2163
2251
|
a.value = c, r();
|
|
2164
|
-
},
|
|
2252
|
+
}, d = document.createElement("div");
|
|
2165
2253
|
return b(
|
|
2166
2254
|
() => s.value,
|
|
2167
2255
|
async () => {
|
|
2168
2256
|
if (!a.value)
|
|
2169
2257
|
return;
|
|
2170
|
-
await i, new google.maps.places.PlacesService(
|
|
2258
|
+
await i, new google.maps.places.PlacesService(d).textSearch(
|
|
2171
2259
|
{
|
|
2172
2260
|
query: a.value,
|
|
2173
2261
|
bounds: n.value.bound
|
|
2174
2262
|
},
|
|
2175
|
-
(
|
|
2263
|
+
(g, I) => {
|
|
2176
2264
|
switch (I) {
|
|
2177
2265
|
case google.maps.places.PlacesServiceStatus.OK:
|
|
2178
|
-
o.value =
|
|
2179
|
-
({ geometry: M, name: f, formatted_address:
|
|
2180
|
-
var
|
|
2266
|
+
o.value = g.map(
|
|
2267
|
+
({ geometry: M, name: f, formatted_address: p }) => {
|
|
2268
|
+
var A, y, h, P;
|
|
2181
2269
|
return {
|
|
2182
|
-
lng: (
|
|
2270
|
+
lng: (y = (A = M == null ? void 0 : M.location) == null ? void 0 : A.lng()) != null ? y : 0,
|
|
2183
2271
|
lat: (P = (h = M == null ? void 0 : M.location) == null ? void 0 : h.lat()) != null ? P : 0,
|
|
2184
2272
|
name: f != null ? f : "",
|
|
2185
|
-
description:
|
|
2273
|
+
description: p != null ? p : ""
|
|
2186
2274
|
};
|
|
2187
2275
|
}
|
|
2188
2276
|
);
|
|
@@ -2196,12 +2284,12 @@ const Za = () => te, rn = () => ({ executeMapApi: (e) => {
|
|
|
2196
2284
|
);
|
|
2197
2285
|
}
|
|
2198
2286
|
), { setKeyword: l, setCity: u, autoCompletePlaces: o };
|
|
2199
|
-
}, Ga = (t) => {
|
|
2200
|
-
const { supplier: e } = A();
|
|
2201
|
-
return e === "gmap" ? Ra(t) : Ta(t);
|
|
2202
2287
|
}, ka = (t) => {
|
|
2288
|
+
const { supplier: e } = j();
|
|
2289
|
+
return e === "gmap" ? Ga(t) : Ra(t);
|
|
2290
|
+
}, Oa = (t) => {
|
|
2203
2291
|
var a;
|
|
2204
|
-
const { cityNameRef: e, onChange: n } = t, i =
|
|
2292
|
+
const { cityNameRef: e, onChange: n } = t, i = x({ name: (a = e.value) != null ? a : "" });
|
|
2205
2293
|
return b(
|
|
2206
2294
|
() => e.value,
|
|
2207
2295
|
(o) => {
|
|
@@ -2209,9 +2297,9 @@ const Za = () => te, rn = () => ({ executeMapApi: (e) => {
|
|
|
2209
2297
|
i.name = r, n == null || n({ name: r });
|
|
2210
2298
|
}
|
|
2211
2299
|
), i;
|
|
2212
|
-
},
|
|
2300
|
+
}, Wa = (t) => {
|
|
2213
2301
|
var o;
|
|
2214
|
-
const { cityNameRef: e, onChange: n } = t, { readyPromise: i } =
|
|
2302
|
+
const { cityNameRef: e, onChange: n } = t, { readyPromise: i } = j(), a = x({
|
|
2215
2303
|
name: (o = e.value) != null ? o : "",
|
|
2216
2304
|
bound: {
|
|
2217
2305
|
east: 0,
|
|
@@ -2220,8 +2308,8 @@ const Za = () => te, rn = () => ({ executeMapApi: (e) => {
|
|
|
2220
2308
|
west: 0
|
|
2221
2309
|
}
|
|
2222
2310
|
});
|
|
2223
|
-
return
|
|
2224
|
-
var c,
|
|
2311
|
+
return dn(async () => {
|
|
2312
|
+
var c, g;
|
|
2225
2313
|
const r = e.value;
|
|
2226
2314
|
if (!r)
|
|
2227
2315
|
return;
|
|
@@ -2235,22 +2323,22 @@ const Za = () => te, rn = () => ({ executeMapApi: (e) => {
|
|
|
2235
2323
|
});
|
|
2236
2324
|
if (u.length !== 1)
|
|
2237
2325
|
throw new Error("MyError: multiple city found");
|
|
2238
|
-
const { geometry: l } = u[0],
|
|
2239
|
-
a.name = r, a.bound =
|
|
2326
|
+
const { geometry: l } = u[0], d = (g = (c = l.bounds) == null ? void 0 : c.toJSON()) != null ? g : l.viewport.toJSON();
|
|
2327
|
+
a.name = r, a.bound = d, n == null || n({ name: r, bound: d });
|
|
2240
2328
|
}), a;
|
|
2241
|
-
},
|
|
2242
|
-
const { supplier: e } =
|
|
2243
|
-
return e === "gmap" ?
|
|
2244
|
-
},
|
|
2245
|
-
const { cityNameRef: e } = t, n =
|
|
2329
|
+
}, Ua = (t) => {
|
|
2330
|
+
const { supplier: e } = j();
|
|
2331
|
+
return e === "gmap" ? Wa(t) : Oa(t);
|
|
2332
|
+
}, No = (t) => {
|
|
2333
|
+
const { cityNameRef: e } = t, n = Ua({
|
|
2246
2334
|
cityNameRef: e,
|
|
2247
2335
|
onChange: (s) => o(s)
|
|
2248
|
-
}), { autoCompletePlaces: i, setKeyword: a, setCity: o } =
|
|
2336
|
+
}), { autoCompletePlaces: i, setKeyword: a, setCity: o } = ka({ city: n });
|
|
2249
2337
|
return { autoCompletePlaces: i, setKeyword: a, setCity: o, handleKeywordInput: (s) => {
|
|
2250
2338
|
const u = s.target;
|
|
2251
2339
|
a(u.value);
|
|
2252
2340
|
} };
|
|
2253
|
-
},
|
|
2341
|
+
}, Ba = 20, Ya = (t) => {
|
|
2254
2342
|
const { mapRef: e, autoFitTimeout: n } = t, i = /* @__PURE__ */ new Set();
|
|
2255
2343
|
let a;
|
|
2256
2344
|
const o = {
|
|
@@ -2265,10 +2353,10 @@ const Za = () => te, rn = () => ({ executeMapApi: (e) => {
|
|
|
2265
2353
|
const u = e.value;
|
|
2266
2354
|
if (!u)
|
|
2267
2355
|
return;
|
|
2268
|
-
const l = window.innerWidth / 100, [
|
|
2269
|
-
console.log([...i]), u.setFitView([...i], !1, [
|
|
2356
|
+
const l = window.innerWidth / 100, [d, c, g, I] = (M = t.padding) != null ? M : [0, 0, 0, 0];
|
|
2357
|
+
console.log([...i]), u.setFitView([...i], !1, [d * l, g * l, I * l, c * l]);
|
|
2270
2358
|
};
|
|
2271
|
-
return
|
|
2359
|
+
return oe(
|
|
2272
2360
|
e,
|
|
2273
2361
|
{},
|
|
2274
2362
|
() => {
|
|
@@ -2279,7 +2367,7 @@ const Za = () => te, rn = () => ({ executeMapApi: (e) => {
|
|
|
2279
2367
|
["onDragEnd"]
|
|
2280
2368
|
), { registerFitVeiw: o, setFitView: r };
|
|
2281
2369
|
};
|
|
2282
|
-
class
|
|
2370
|
+
class Ha extends Set {
|
|
2283
2371
|
getBound() {
|
|
2284
2372
|
const e = new google.maps.LatLngBounds();
|
|
2285
2373
|
for (const n of this.values()) {
|
|
@@ -2289,46 +2377,46 @@ class Ya extends Set {
|
|
|
2289
2377
|
return e;
|
|
2290
2378
|
}
|
|
2291
2379
|
}
|
|
2292
|
-
const
|
|
2293
|
-
const { mapRef: e, autoFitTimeout: n } = t, { executeMapApi: i } =
|
|
2380
|
+
const Va = (t) => {
|
|
2381
|
+
const { mapRef: e, autoFitTimeout: n } = t, { executeMapApi: i } = sn(), a = new Ha();
|
|
2294
2382
|
let o;
|
|
2295
2383
|
const r = {
|
|
2296
|
-
add: (
|
|
2297
|
-
a.add(
|
|
2384
|
+
add: (d) => {
|
|
2385
|
+
a.add(d);
|
|
2298
2386
|
},
|
|
2299
|
-
remove: (
|
|
2300
|
-
a.delete(
|
|
2387
|
+
remove: (d) => {
|
|
2388
|
+
a.delete(d);
|
|
2301
2389
|
}
|
|
2302
2390
|
}, s = () => {
|
|
2303
|
-
var
|
|
2304
|
-
const
|
|
2305
|
-
if (!
|
|
2391
|
+
var p;
|
|
2392
|
+
const d = e.value;
|
|
2393
|
+
if (!d)
|
|
2306
2394
|
return;
|
|
2307
|
-
const c = window.innerWidth / 100, [
|
|
2395
|
+
const c = window.innerWidth / 100, [g, I, M, f] = (p = t.padding) != null ? p : [0, 0, 0, 0];
|
|
2308
2396
|
i(
|
|
2309
|
-
() =>
|
|
2310
|
-
top:
|
|
2397
|
+
() => d.fitBounds(a.getBound(), {
|
|
2398
|
+
top: g * c,
|
|
2311
2399
|
right: I * c,
|
|
2312
2400
|
bottom: M * c,
|
|
2313
2401
|
left: f * c
|
|
2314
2402
|
})
|
|
2315
2403
|
);
|
|
2316
|
-
}, u = (
|
|
2404
|
+
}, u = (d) => {
|
|
2317
2405
|
const c = Za();
|
|
2318
|
-
console.log("handleMoveEndOrZomEnd name, eventSource = ",
|
|
2406
|
+
console.log("handleMoveEndOrZomEnd name, eventSource = ", d, c), !(!n || c !== "user") && (o && clearTimeout(o), o = setTimeout(() => {
|
|
2319
2407
|
o = void 0, s();
|
|
2320
2408
|
}, n));
|
|
2321
|
-
}, l =
|
|
2322
|
-
return
|
|
2409
|
+
}, l = ki(u, Ba);
|
|
2410
|
+
return K(e, {}, u, [
|
|
2323
2411
|
"onDragEnd"
|
|
2324
|
-
]),
|
|
2412
|
+
]), K(e, {}, l, [
|
|
2325
2413
|
"onZoom_changed"
|
|
2326
2414
|
]), { registerFitVeiw: r, setFitView: s };
|
|
2327
|
-
},
|
|
2328
|
-
const { supplier: e } =
|
|
2329
|
-
return e === "gmap" ?
|
|
2330
|
-
},
|
|
2331
|
-
const { onChange: e, onLoad: n } = t, i = D(!1), a = D(!1), o = D(), r = D({
|
|
2415
|
+
}, Qa = (t) => {
|
|
2416
|
+
const { supplier: e } = j();
|
|
2417
|
+
return e === "gmap" ? Va(t) : Ya(t);
|
|
2418
|
+
}, So = (t) => Qa({ ...t, padding: [25, 20, 15, 15] }), Ja = (t) => {
|
|
2419
|
+
const { onChange: e, onLoad: n } = t != null ? t : {}, i = D(!1), a = D(!1), o = D(), r = D({
|
|
2332
2420
|
accuracy: 0,
|
|
2333
2421
|
altitude: 0,
|
|
2334
2422
|
altitudeAccuracy: 0,
|
|
@@ -2339,20 +2427,20 @@ const Ha = (t) => {
|
|
|
2339
2427
|
}), s = D([r.value.longitude, r.value.latitude]);
|
|
2340
2428
|
return b(
|
|
2341
2429
|
() => !0,
|
|
2342
|
-
(u, l,
|
|
2430
|
+
(u, l, d) => {
|
|
2343
2431
|
i.value = !0;
|
|
2344
2432
|
const c = navigator.geolocation.watchPosition(
|
|
2345
|
-
(
|
|
2346
|
-
const I =
|
|
2433
|
+
(g) => {
|
|
2434
|
+
const I = g.coords, M = [g.coords.longitude, g.coords.latitude];
|
|
2347
2435
|
r.value = I, s.value = M, i.value && (i.value = !1, a.value = !0, n == null || n({ position: M, coordinate: I })), e == null || e({ position: M, coordinate: I });
|
|
2348
2436
|
},
|
|
2349
|
-
(
|
|
2350
|
-
i.value = !1, o.value =
|
|
2437
|
+
(g) => {
|
|
2438
|
+
i.value = !1, o.value = g, console.log("errorRef = ", o);
|
|
2351
2439
|
},
|
|
2352
2440
|
// todo 要不要 timeout
|
|
2353
2441
|
{ timeout: 5e3, maximumAge: 0, enableHighAccuracy: !0 }
|
|
2354
2442
|
);
|
|
2355
|
-
|
|
2443
|
+
d(() => navigator.geolocation.clearWatch(c));
|
|
2356
2444
|
},
|
|
2357
2445
|
{ immediate: !0 }
|
|
2358
2446
|
), {
|
|
@@ -2362,39 +2450,39 @@ const Ha = (t) => {
|
|
|
2362
2450
|
geoLoading: i,
|
|
2363
2451
|
geoReady: a
|
|
2364
2452
|
};
|
|
2365
|
-
},
|
|
2453
|
+
}, Xa = (t) => {
|
|
2366
2454
|
const { mapRef: e, onChange: n } = t, i = D([0, 0]), a = D(!1), o = () => {
|
|
2367
2455
|
Promise.resolve().then(() => a.value = !0);
|
|
2368
2456
|
}, r = (s, { target: u }) => {
|
|
2369
2457
|
var c;
|
|
2370
2458
|
a.value = !1;
|
|
2371
|
-
const { lng: l, lat:
|
|
2372
|
-
i.value = [l,
|
|
2459
|
+
const { lng: l, lat: d } = u.getCenter();
|
|
2460
|
+
i.value = [l, d], (c = Dt(n)) == null || c([l, d]);
|
|
2373
2461
|
};
|
|
2374
|
-
return
|
|
2462
|
+
return oe(e, {}, o, [
|
|
2375
2463
|
"onDragStart"
|
|
2376
|
-
]),
|
|
2464
|
+
]), oe(e, {}, r, [
|
|
2377
2465
|
"onDragEnd"
|
|
2378
2466
|
]), { centerRef: i, isDragging: a };
|
|
2379
|
-
},
|
|
2467
|
+
}, Fa = (t) => {
|
|
2380
2468
|
const { mapRef: e, onChange: n } = t, i = D([0, 0]), a = D(!1), o = () => {
|
|
2381
2469
|
Promise.resolve().then(() => a.value = !0);
|
|
2382
2470
|
}, r = async () => {
|
|
2383
|
-
var
|
|
2471
|
+
var d, c;
|
|
2384
2472
|
a.value = !1;
|
|
2385
|
-
const s = (
|
|
2386
|
-
i.value = [u, l], (c =
|
|
2473
|
+
const s = (d = e.value) == null ? void 0 : d.getCenter(), u = s == null ? void 0 : s.lng(), l = s == null ? void 0 : s.lat();
|
|
2474
|
+
i.value = [u, l], (c = Dt(n)) == null || c([u, l]);
|
|
2387
2475
|
};
|
|
2388
|
-
return
|
|
2476
|
+
return K(e, {}, o, [
|
|
2389
2477
|
"onDragStart"
|
|
2390
|
-
]),
|
|
2478
|
+
]), K(e, {}, r, [
|
|
2391
2479
|
"onDragEnd"
|
|
2392
2480
|
]), { centerRef: i, isDragging: a };
|
|
2393
|
-
},
|
|
2394
|
-
const { supplier: e } =
|
|
2395
|
-
return e === "gmap" ?
|
|
2396
|
-
},
|
|
2397
|
-
const { pointRef: e, onChange: n } = t, { readyPromise: i } =
|
|
2481
|
+
}, $a = (t) => {
|
|
2482
|
+
const { supplier: e } = j();
|
|
2483
|
+
return e === "gmap" ? Fa(t) : Xa(t);
|
|
2484
|
+
}, cn = (t) => {
|
|
2485
|
+
const { pointRef: e, onChange: n } = t, { readyPromise: i } = j(), { idx: a, update: o } = X(), r = x({
|
|
2398
2486
|
lng: e.value[0],
|
|
2399
2487
|
lat: e.value[1],
|
|
2400
2488
|
name: "",
|
|
@@ -2405,11 +2493,11 @@ const Ha = (t) => {
|
|
|
2405
2493
|
async () => {
|
|
2406
2494
|
await i;
|
|
2407
2495
|
const s = new AMap.Geocoder({ lang: De }), [u, l] = e.value;
|
|
2408
|
-
s.getAddress(new AMap.LngLat(u, l), (
|
|
2409
|
-
switch (
|
|
2496
|
+
s.getAddress(new AMap.LngLat(u, l), (d, c) => {
|
|
2497
|
+
switch (d) {
|
|
2410
2498
|
case "complete": {
|
|
2411
|
-
const { formattedAddress:
|
|
2412
|
-
r.name =
|
|
2499
|
+
const { formattedAddress: g, addressComponent: I } = c.regeocode, M = I.city ? I.city : I.province;
|
|
2500
|
+
r.name = g, r.lng = u, r.lat = l, r.cityName = M, n == null || n({ lng: u, lat: l, name: g, cityName: M });
|
|
2413
2501
|
return;
|
|
2414
2502
|
}
|
|
2415
2503
|
case "no_data":
|
|
@@ -2421,58 +2509,58 @@ const Ha = (t) => {
|
|
|
2421
2509
|
});
|
|
2422
2510
|
}
|
|
2423
2511
|
), { place: r, updatePlace: o };
|
|
2424
|
-
},
|
|
2425
|
-
const { pointRef: e, onChange: n } = t, { readyPromise: i } =
|
|
2512
|
+
}, un = (t) => {
|
|
2513
|
+
const { pointRef: e, onChange: n } = t, { readyPromise: i } = j(), { idx: a, update: o } = X(), r = x({ lng: e.value[0], lat: e.value[1], name: "" });
|
|
2426
2514
|
return b(
|
|
2427
2515
|
() => a.value,
|
|
2428
2516
|
async () => {
|
|
2429
2517
|
await i;
|
|
2430
|
-
const s = new google.maps.Geocoder(), [u, l] = e.value, { results:
|
|
2431
|
-
r.name = c, r.lng = u, r.lat = l, n == null || n({ lng: u, lat: l, name: c, cityName:
|
|
2518
|
+
const s = new google.maps.Geocoder(), [u, l] = e.value, { results: d } = await s.geocode({ language: De, location: { lng: u, lat: l } }), c = d[0].formatted_address, g = Ki(d[0]);
|
|
2519
|
+
r.name = c, r.lng = u, r.lat = l, n == null || n({ lng: u, lat: l, name: c, cityName: g });
|
|
2432
2520
|
}
|
|
2433
2521
|
), { place: r, updatePlace: o };
|
|
2434
|
-
},
|
|
2435
|
-
const { supplier: e } =
|
|
2436
|
-
return e === "gmap" ?
|
|
2437
|
-
},
|
|
2522
|
+
}, Do = (t) => {
|
|
2523
|
+
const { supplier: e } = j();
|
|
2524
|
+
return e === "gmap" ? un(t) : cn(t);
|
|
2525
|
+
}, _a = (t, e) => {
|
|
2438
2526
|
let n = 1 / 0, i = t;
|
|
2439
2527
|
for (const a of e) {
|
|
2440
|
-
const o = AMap.GeometryUtil.distance(
|
|
2528
|
+
const o = AMap.GeometryUtil.distance(ve(t), ve(a));
|
|
2441
2529
|
o >= n || (i = a, n = o);
|
|
2442
2530
|
}
|
|
2443
2531
|
return { shortestPlace: i, shortestDistance: n };
|
|
2444
|
-
},
|
|
2532
|
+
}, Ka = (t, e) => {
|
|
2445
2533
|
let n = 1 / 0, i = t;
|
|
2446
2534
|
for (const a of e) {
|
|
2447
2535
|
const o = google.maps.geometry.spherical.computeDistanceBetween(t, a);
|
|
2448
2536
|
o >= n || (i = a, n = o);
|
|
2449
2537
|
}
|
|
2450
2538
|
return { shortestPlace: i, shortestDistance: n };
|
|
2451
|
-
},
|
|
2452
|
-
const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: o, onChangePlace: r } = t, s = D([]), { idx: u, update: l } =
|
|
2539
|
+
}, qa = (t) => {
|
|
2540
|
+
const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: o, onChangePlace: r } = t, s = D([]), { idx: u, update: l } = X(), { readyPromise: d } = j(), { place: c, updatePlace: g } = cn({ pointRef: e, onChange: r }), I = x({ ...c });
|
|
2453
2541
|
return b(
|
|
2454
2542
|
() => u.value,
|
|
2455
2543
|
async () => {
|
|
2456
|
-
await
|
|
2457
|
-
const M = await n({ ...c }, a), { shortestPlace: f, shortestDistance:
|
|
2458
|
-
s.value = M, Object.assign(I, { ...
|
|
2544
|
+
await d;
|
|
2545
|
+
const M = await n({ ...c }, a), { shortestPlace: f, shortestDistance: p } = _a(c, M), A = i(a), y = p > A ? c : f;
|
|
2546
|
+
s.value = M, Object.assign(I, { ...y }), o == null || o({ ...y });
|
|
2459
2547
|
}
|
|
2460
|
-
), { recomendPlace: I, placeCandidates: s, updateRecomandPlace: l, updatePlace:
|
|
2461
|
-
},
|
|
2462
|
-
const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: o, onChangePlace: r } = t, s = D([]), { idx: u, update: l } =
|
|
2548
|
+
), { recomendPlace: I, placeCandidates: s, updateRecomandPlace: l, updatePlace: g };
|
|
2549
|
+
}, eo = (t) => {
|
|
2550
|
+
const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: o, onChangePlace: r } = t, s = D([]), { idx: u, update: l } = X(), { readyPromise: d } = j(), { place: c, updatePlace: g } = un({ pointRef: e, onChange: r }), I = x({ ...c });
|
|
2463
2551
|
return b(
|
|
2464
2552
|
() => u.value,
|
|
2465
2553
|
async () => {
|
|
2466
|
-
await
|
|
2467
|
-
const M = await n({ ...c }, a), { shortestPlace: f, shortestDistance:
|
|
2468
|
-
s.value = M, Object.assign(I, { ...
|
|
2554
|
+
await d;
|
|
2555
|
+
const M = await n({ ...c }, a), { shortestPlace: f, shortestDistance: p } = Ka(c, M), A = i(a), y = p > A ? c : f;
|
|
2556
|
+
s.value = M, Object.assign(I, { ...y }), o == null || o({ ...y });
|
|
2469
2557
|
}
|
|
2470
|
-
), { recomendPlace: I, placeCandidates: s, updateRecomandPlace: l, updatePlace:
|
|
2471
|
-
},
|
|
2472
|
-
const { supplier: e } =
|
|
2473
|
-
return e === "gmap" ?
|
|
2474
|
-
},
|
|
2475
|
-
var
|
|
2558
|
+
), { recomendPlace: I, placeCandidates: s, updateRecomandPlace: l, updatePlace: g };
|
|
2559
|
+
}, to = (t) => {
|
|
2560
|
+
const { supplier: e } = j();
|
|
2561
|
+
return e === "gmap" ? eo(t) : qa(t);
|
|
2562
|
+
}, ho = (t) => {
|
|
2563
|
+
var F, xe;
|
|
2476
2564
|
const {
|
|
2477
2565
|
mapRef: e,
|
|
2478
2566
|
getRecomendPlace: n,
|
|
@@ -2483,35 +2571,35 @@ const Ha = (t) => {
|
|
|
2483
2571
|
onChangeByDrag: s,
|
|
2484
2572
|
onChangeGeoLocation: u,
|
|
2485
2573
|
onChangePlace: l,
|
|
2486
|
-
onChangeRecomandPlace:
|
|
2487
|
-
} = t, { readyPromise: c } =
|
|
2488
|
-
lng: (
|
|
2489
|
-
lat: (
|
|
2574
|
+
onChangeRecomandPlace: d
|
|
2575
|
+
} = t, { readyPromise: c } = j(), g = x({
|
|
2576
|
+
lng: (F = i == null ? void 0 : i[0]) != null ? F : 0,
|
|
2577
|
+
lat: (xe = i == null ? void 0 : i[1]) != null ? xe : 0,
|
|
2490
2578
|
name: "",
|
|
2491
2579
|
cityName: void 0
|
|
2492
|
-
}), I = L(() => [
|
|
2493
|
-
M.source = "api",
|
|
2580
|
+
}), I = L(() => [g.lng, g.lat]), M = { source: "geo" }, f = (S) => {
|
|
2581
|
+
M.source = "api", g.lng = S[0], g.lat = S[1], N();
|
|
2494
2582
|
};
|
|
2495
2583
|
i && c.then(() => {
|
|
2496
2584
|
M.source = "default", N();
|
|
2497
2585
|
});
|
|
2498
|
-
const { geoLoading:
|
|
2586
|
+
const { geoLoading: p, geoError: A, geoPosition: y, geoCoordinate: h, geoReady: P } = Ja({
|
|
2499
2587
|
onLoad: async (S) => {
|
|
2500
|
-
i || (await c, M.source = "geo",
|
|
2588
|
+
i || (await c, M.source = "geo", g.lng = S.position[0], g.lat = S.position[1], N()), r == null || r(S);
|
|
2501
2589
|
},
|
|
2502
2590
|
onChange: u
|
|
2503
|
-
}), { isDragging:
|
|
2591
|
+
}), { isDragging: O } = $a({
|
|
2504
2592
|
mapRef: e,
|
|
2505
2593
|
onChange: (S) => {
|
|
2506
|
-
M.source = "drag",
|
|
2594
|
+
M.source = "drag", g.lng = S[0], g.lat = S[1], N(), s == null || s(S);
|
|
2507
2595
|
}
|
|
2508
|
-
}), { updatePlace: N, updateRecomandPlace:
|
|
2596
|
+
}), { updatePlace: N, updateRecomandPlace: Z, placeCandidates: W } = to({
|
|
2509
2597
|
pointRef: I,
|
|
2510
2598
|
context: M,
|
|
2511
2599
|
getRecomendPlace: n,
|
|
2512
2600
|
getLimit: (S) => {
|
|
2513
|
-
const
|
|
2514
|
-
switch (
|
|
2601
|
+
const Ce = S == null ? void 0 : S.source;
|
|
2602
|
+
switch (Ce) {
|
|
2515
2603
|
case "drag":
|
|
2516
2604
|
case "api":
|
|
2517
2605
|
return a;
|
|
@@ -2519,72 +2607,88 @@ const Ha = (t) => {
|
|
|
2519
2607
|
case "default":
|
|
2520
2608
|
return o;
|
|
2521
2609
|
default:
|
|
2522
|
-
throw new Error(`MyError: should not call getLimit on source: ${
|
|
2610
|
+
throw new Error(`MyError: should not call getLimit on source: ${Ce}`);
|
|
2523
2611
|
}
|
|
2524
2612
|
},
|
|
2525
2613
|
onChangePlace: (S) => {
|
|
2526
|
-
Object.assign(
|
|
2614
|
+
Object.assign(g, { ...S }), M.source !== "recomend" && Z(), l == null || l(S);
|
|
2527
2615
|
},
|
|
2528
2616
|
onChange: (S) => {
|
|
2529
|
-
M.source = "recomend", Object.assign(
|
|
2617
|
+
M.source = "recomend", Object.assign(g, { ...S }), N(), d == null || d(S);
|
|
2530
2618
|
}
|
|
2531
2619
|
});
|
|
2532
2620
|
return {
|
|
2533
|
-
isDragging:
|
|
2534
|
-
geoLoading:
|
|
2535
|
-
geoError:
|
|
2536
|
-
geoPosition:
|
|
2621
|
+
isDragging: O,
|
|
2622
|
+
geoLoading: p,
|
|
2623
|
+
geoError: A,
|
|
2624
|
+
geoPosition: y,
|
|
2537
2625
|
geoCoordinate: h,
|
|
2538
2626
|
geoReady: P,
|
|
2539
|
-
centerPlace:
|
|
2627
|
+
centerPlace: g,
|
|
2540
2628
|
centerPoint: I,
|
|
2541
|
-
placeCandidates:
|
|
2629
|
+
placeCandidates: W,
|
|
2542
2630
|
setCenterPlaceByRecomand: f
|
|
2543
2631
|
};
|
|
2544
|
-
},
|
|
2545
|
-
const t =
|
|
2632
|
+
}, no = () => {
|
|
2633
|
+
const t = w();
|
|
2546
2634
|
return { mapRef: t, panTo: (i) => {
|
|
2547
2635
|
var a;
|
|
2548
2636
|
return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(i);
|
|
2549
2637
|
}, setMap: (i) => {
|
|
2550
2638
|
t.value = i;
|
|
2551
2639
|
} };
|
|
2552
|
-
},
|
|
2553
|
-
const t =
|
|
2640
|
+
}, io = () => {
|
|
2641
|
+
const t = w();
|
|
2554
2642
|
return { mapRef: t, panTo: (i) => {
|
|
2555
2643
|
var a;
|
|
2556
|
-
return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(
|
|
2644
|
+
return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(C(i));
|
|
2557
2645
|
}, setMap: (i) => {
|
|
2558
2646
|
t.value = i;
|
|
2559
2647
|
} };
|
|
2560
|
-
},
|
|
2561
|
-
const { supplier: t } =
|
|
2562
|
-
return t === "gmap" ?
|
|
2648
|
+
}, xo = () => {
|
|
2649
|
+
const { supplier: t } = j();
|
|
2650
|
+
return t === "gmap" ? io() : no();
|
|
2651
|
+
}, ao = () => {
|
|
2652
|
+
const { status: t } = j();
|
|
2653
|
+
return { apiMapDistance: (n, i) => {
|
|
2654
|
+
if (t === q.SUCCESS)
|
|
2655
|
+
return AMap.GeometryUtil.distance(n, i);
|
|
2656
|
+
} };
|
|
2657
|
+
}, oo = () => {
|
|
2658
|
+
const { status: t } = j();
|
|
2659
|
+
return { apiMapDistance: (n, i) => {
|
|
2660
|
+
if (t === q.SUCCESS)
|
|
2661
|
+
return google.maps.geometry.spherical.computeDistanceBetween(C(n), C(i));
|
|
2662
|
+
} };
|
|
2663
|
+
}, Co = () => {
|
|
2664
|
+
const { supplier: t } = j();
|
|
2665
|
+
return t === "gmap" ? oo() : ao();
|
|
2563
2666
|
};
|
|
2564
2667
|
export {
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2668
|
+
so as AddressBox,
|
|
2669
|
+
co as DrivingLine,
|
|
2670
|
+
go as DrivingRoute,
|
|
2671
|
+
Lo as HeycarMap,
|
|
2672
|
+
Ao as MapProvider,
|
|
2673
|
+
Io as PassengerCircle,
|
|
2674
|
+
Mo as PickupPoints,
|
|
2675
|
+
Ma as PlaceCircle,
|
|
2676
|
+
fo as StartEndPoint,
|
|
2677
|
+
mo as TaxiCar,
|
|
2678
|
+
po as WalkingLine,
|
|
2679
|
+
yo as WalkingRoute,
|
|
2680
|
+
jo as WaveCircle,
|
|
2681
|
+
No as useBusinessMapAutoComplete,
|
|
2682
|
+
So as useBusinessMapFitView,
|
|
2683
|
+
ho as useBusinessMapRecomendPlace,
|
|
2684
|
+
uo as useDrivingRoute,
|
|
2685
|
+
Ja as useGeoLocation,
|
|
2686
|
+
xo as useHeycarMap,
|
|
2687
|
+
lo as useMapAngle,
|
|
2688
|
+
$a as useMapDrag,
|
|
2689
|
+
Qa as useMapFitView,
|
|
2690
|
+
Co as useMapGeometry,
|
|
2691
|
+
Do as useMapPlace,
|
|
2692
|
+
to as useMapRecomendPlace,
|
|
2693
|
+
vo as useWalkingRoute
|
|
2590
2694
|
};
|