@heycar/heycars-map 0.1.6 → 0.1.8
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/business-components/PickupPoints/PickupPoints.d.ts +2 -2
- package/dist/business-components/WalkingRoute/WalkingRoute.d.ts +13 -0
- package/dist/business-components/WalkingRoute/index.d.ts +1 -0
- package/dist/components/Demo/HeycarDemo.d.ts +1 -0
- package/dist/components/Demo/SearchDemo.d.ts +1 -0
- package/dist/components/Demo/country.d.ts +5 -0
- package/dist/components/Demo/searchResult.d.ts +8 -0
- package/dist/hooks/useGeoLocation.d.ts +8 -4
- package/dist/hooks/useMapAutoComplete.d.ts +42 -0
- package/dist/hooks/useMapCityBound.d.ts +10 -0
- package/dist/hooks/useMapPlace.d.ts +3 -0
- package/dist/hooks/useMapRecomendPlace.d.ts +21 -0
- package/dist/hooks/useWalkingRoute.d.ts +9 -0
- package/dist/hooks-business/useBusinessMapAutoComplete.d.ts +18 -0
- package/dist/hooks-business/useBusinessMapRecomendPlace.d.ts +22 -2
- package/dist/index.cjs +52 -52
- package/dist/index.js +813 -792
- package/dist/types/interface.d.ts +14 -0
- package/dist/utils/transform.d.ts +1 -0
- package/package.json +2 -2
- package/src/App.tsx +1 -0
- package/src/business-components/PickupPoints/PickupPoints.tsx +5 -4
- package/src/business-components/WalkingRoute/WalkingRoute.tsx +48 -0
- package/src/business-components/WalkingRoute/index.ts +1 -0
- package/src/components/Demo/HeycarDemo.tsx +59 -10
- package/src/components/Demo/SearchDemo.tsx +167 -0
- package/src/components/Demo/country.ts +4179 -0
- package/src/components/Demo/searchResult.ts +8235 -0
- package/src/components/GmapAdvancedMarkerView/GmapAdvancedMarkerView.ts +0 -1
- package/src/hooks/useDrivingRoute.ts +1 -1
- package/src/hooks/useGeoLocation.ts +21 -17
- package/src/hooks/useMapAutoComplete.ts +116 -0
- package/src/hooks/useMapCityBound.ts +52 -0
- package/src/hooks/useMapPlace.ts +14 -11
- package/src/hooks/useMapRecomendPlace.ts +7 -9
- package/src/hooks/useWalkingRoute.ts +70 -0
- package/src/hooks-business/useBusinessMapAutoComplete.ts +16 -0
- package/src/hooks-business/useBusinessMapRecomendPlace.ts +47 -14
- package/src/types/amap/place.d.ts +1 -1
- package/src/types/amap/walking.d.ts +3 -1
- package/src/types/interface.ts +16 -0
- package/src/utils/transform.ts +13 -0
- package/todo.md +3 -0
package/dist/index.js
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
var
|
|
5
|
-
const
|
|
6
|
-
var
|
|
7
|
-
const
|
|
8
|
-
var
|
|
9
|
-
const
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
var e =
|
|
1
|
+
import Ft, { defineComponent as Ye, h as f, watch as b, watchPostEffect as R, inject as fe, provide as me, shallowRef as x, onMounted as ne, onUnmounted as ie, computed as y, reactive as P, ref as h } from "vue";
|
|
2
|
+
Ft.util.warn;
|
|
3
|
+
const He = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9Ii44Ii8+PC9zdmc+", Y = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIxN3B4IiB2aWV3Qm94PSIwIDAgMTcgMTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dG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vck1hdHJpeD4KICAgICAgICA8L2ZpbHRlcj4KICAgIDwvZGVmcz4KICAgIDxnIGlkPSIxLjAiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLpppbpobUt5Y2z5pe255So6L2mLeaLluWKqOWFieaghyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIyOC4wMDAwMDAsIC0zMjIuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSLmpK3lnIblvaIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIzMi4wMDAwMDAsIDMyMS4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDx1c2UgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMSIgZmlsdGVyPSJ1cmwoI2ZpbHRlci0yKSIgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICA8dXNlIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSIjMzQ2RUZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=";
|
|
4
|
+
var _t = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, Kt = typeof global == "object" && global && global.Object === Object && global;
|
|
5
|
+
const qt = Kt;
|
|
6
|
+
var en = typeof self == "object" && self && self.Object === Object && self, tn = qt || en || Function("return this")();
|
|
7
|
+
const nn = tn;
|
|
8
|
+
var an = nn.Symbol;
|
|
9
|
+
const H = an;
|
|
10
|
+
var Be = Object.prototype, on = Be.hasOwnProperty, rn = Be.toString, B = H ? H.toStringTag : void 0;
|
|
11
|
+
function cn(t) {
|
|
12
|
+
var e = on.call(t, B), n = t[B];
|
|
13
13
|
try {
|
|
14
|
-
t[
|
|
14
|
+
t[B] = void 0;
|
|
15
15
|
var i = !0;
|
|
16
16
|
} catch {
|
|
17
17
|
}
|
|
18
|
-
var a =
|
|
19
|
-
return i && (e ? t[
|
|
18
|
+
var a = rn.call(t);
|
|
19
|
+
return i && (e ? t[B] = n : delete t[B]), a;
|
|
20
20
|
}
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
return
|
|
21
|
+
var sn = Object.prototype, un = sn.toString;
|
|
22
|
+
function ln(t) {
|
|
23
|
+
return un.call(t);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
return t == null ? t === void 0 ?
|
|
25
|
+
var In = "[object Null]", Mn = "[object Undefined]", Ne = H ? H.toStringTag : void 0;
|
|
26
|
+
function dn(t) {
|
|
27
|
+
return t == null ? t === void 0 ? Mn : In : Ne && Ne in Object(t) ? cn(t) : ln(t);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function gn(t) {
|
|
30
30
|
return t != null && typeof t == "object";
|
|
31
31
|
}
|
|
32
|
-
var
|
|
33
|
-
function
|
|
34
|
-
return typeof t == "symbol" ||
|
|
32
|
+
var fn = "[object Symbol]";
|
|
33
|
+
function mn(t) {
|
|
34
|
+
return typeof t == "symbol" || gn(t) && dn(t) == fn;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function pn(t, e) {
|
|
37
37
|
for (var n = -1, i = t == null ? 0 : t.length, a = Array(i); ++n < i; )
|
|
38
38
|
a[n] = e(t[n], n, t);
|
|
39
39
|
return a;
|
|
40
40
|
}
|
|
41
|
-
var
|
|
42
|
-
const
|
|
43
|
-
var
|
|
44
|
-
function
|
|
41
|
+
var jn = Array.isArray;
|
|
42
|
+
const yn = jn;
|
|
43
|
+
var Ln = 1 / 0, De = H ? H.prototype : void 0, Se = De ? De.toString : void 0;
|
|
44
|
+
function Qe(t) {
|
|
45
45
|
if (typeof t == "string")
|
|
46
46
|
return t;
|
|
47
|
-
if (
|
|
48
|
-
return
|
|
49
|
-
if (
|
|
50
|
-
return
|
|
47
|
+
if (yn(t))
|
|
48
|
+
return pn(t, Qe) + "";
|
|
49
|
+
if (mn(t))
|
|
50
|
+
return Se ? Se.call(t) : "";
|
|
51
51
|
var e = t + "";
|
|
52
|
-
return e == "0" && 1 / t == -
|
|
52
|
+
return e == "0" && 1 / t == -Ln ? "-0" : e;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
return t == null ? "" :
|
|
54
|
+
function Ve(t) {
|
|
55
|
+
return t == null ? "" : Qe(t);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function vn(t, e, n, i) {
|
|
58
58
|
var a = -1, o = t == null ? 0 : t.length;
|
|
59
59
|
for (i && o && (n = t[++a]); ++a < o; )
|
|
60
60
|
n = e(n, t[a], a, t);
|
|
61
61
|
return n;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function An(t) {
|
|
64
64
|
return function(e) {
|
|
65
65
|
return t == null ? void 0 : t[e];
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
var
|
|
68
|
+
var Nn = {
|
|
69
69
|
// Latin-1 Supplement block.
|
|
70
70
|
À: "A",
|
|
71
71
|
Á: "A",
|
|
@@ -258,100 +258,100 @@ var yn = {
|
|
|
258
258
|
œ: "oe",
|
|
259
259
|
ʼn: "'n",
|
|
260
260
|
ſ: "s"
|
|
261
|
-
},
|
|
262
|
-
const
|
|
263
|
-
var
|
|
264
|
-
function
|
|
265
|
-
return t =
|
|
261
|
+
}, Dn = An(Nn);
|
|
262
|
+
const Sn = Dn;
|
|
263
|
+
var xn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Cn = "\\u0300-\\u036f", hn = "\\ufe20-\\ufe2f", wn = "\\u20d0-\\u20ff", bn = Cn + hn + wn, zn = "[" + bn + "]", Pn = RegExp(zn, "g");
|
|
264
|
+
function Zn(t) {
|
|
265
|
+
return t = Ve(t), t && t.replace(xn, Sn).replace(Pn, "");
|
|
266
266
|
}
|
|
267
|
-
var
|
|
268
|
-
function
|
|
269
|
-
return t.match(
|
|
267
|
+
var En = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
268
|
+
function Tn(t) {
|
|
269
|
+
return t.match(En) || [];
|
|
270
270
|
}
|
|
271
|
-
var
|
|
272
|
-
function
|
|
273
|
-
return
|
|
271
|
+
var Rn = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
272
|
+
function Gn(t) {
|
|
273
|
+
return Rn.test(t);
|
|
274
274
|
}
|
|
275
|
-
var
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
275
|
+
var Je = "\\ud800-\\udfff", kn = "\\u0300-\\u036f", On = "\\ufe20-\\ufe2f", Wn = "\\u20d0-\\u20ff", Un = kn + On + Wn, Xe = "\\u2700-\\u27bf", $e = "a-z\\xdf-\\xf6\\xf8-\\xff", Yn = "\\xac\\xb1\\xd7\\xf7", Hn = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Bn = "\\u2000-\\u206f", Qn = " \\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", Fe = "A-Z\\xc0-\\xd6\\xd8-\\xde", Vn = "\\ufe0e\\ufe0f", _e = Yn + Hn + Bn + Qn, Ke = "['’]", xe = "[" + _e + "]", Jn = "[" + Un + "]", qe = "\\d+", Xn = "[" + Xe + "]", et = "[" + $e + "]", tt = "[^" + Je + _e + qe + Xe + $e + Fe + "]", $n = "\\ud83c[\\udffb-\\udfff]", Fn = "(?:" + Jn + "|" + $n + ")", _n = "[^" + Je + "]", nt = "(?:\\ud83c[\\udde6-\\uddff]){2}", it = "[\\ud800-\\udbff][\\udc00-\\udfff]", O = "[" + Fe + "]", Kn = "\\u200d", Ce = "(?:" + et + "|" + tt + ")", qn = "(?:" + O + "|" + tt + ")", he = "(?:" + Ke + "(?:d|ll|m|re|s|t|ve))?", we = "(?:" + Ke + "(?:D|LL|M|RE|S|T|VE))?", at = Fn + "?", ot = "[" + Vn + "]?", ei = "(?:" + Kn + "(?:" + [_n, nt, it].join("|") + ")" + ot + at + ")*", ti = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ni = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", ii = ot + at + ei, ai = "(?:" + [Xn, nt, it].join("|") + ")" + ii, oi = RegExp([
|
|
276
|
+
O + "?" + et + "+" + he + "(?=" + [xe, O, "$"].join("|") + ")",
|
|
277
|
+
qn + "+" + we + "(?=" + [xe, O + Ce, "$"].join("|") + ")",
|
|
278
|
+
O + "?" + Ce + "+" + he,
|
|
279
|
+
O + "+" + we,
|
|
280
|
+
ni,
|
|
281
|
+
ti,
|
|
282
|
+
qe,
|
|
283
|
+
ai
|
|
284
284
|
].join("|"), "g");
|
|
285
|
-
function
|
|
286
|
-
return t.match(
|
|
285
|
+
function ri(t) {
|
|
286
|
+
return t.match(oi) || [];
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
return t =
|
|
288
|
+
function ci(t, e, n) {
|
|
289
|
+
return t = Ve(t), e = n ? void 0 : e, e === void 0 ? Gn(t) ? ri(t) : Tn(t) : t.match(e) || [];
|
|
290
290
|
}
|
|
291
|
-
var
|
|
292
|
-
function
|
|
291
|
+
var si = "['’]", ui = RegExp(si, "g");
|
|
292
|
+
function li(t) {
|
|
293
293
|
return function(e) {
|
|
294
|
-
return
|
|
294
|
+
return vn(ci(Zn(e).replace(ui, "")), t, "");
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
var
|
|
297
|
+
var Ii = li(function(t, e, n) {
|
|
298
298
|
return t + (n ? "-" : "") + e.toLowerCase();
|
|
299
299
|
});
|
|
300
|
-
const
|
|
301
|
-
function
|
|
302
|
-
return
|
|
300
|
+
const rt = Ii;
|
|
301
|
+
function p(t) {
|
|
302
|
+
return Ye({
|
|
303
303
|
name: t.name,
|
|
304
304
|
inheritAttrs: !1,
|
|
305
305
|
setup(e, n) {
|
|
306
|
-
const { attrs: i, slots: a, emit: o } = n, r = i, c = o,
|
|
307
|
-
const M =
|
|
308
|
-
c(I,
|
|
306
|
+
const { attrs: i, slots: a, emit: o } = n, r = i, c = o, u = (I, s) => {
|
|
307
|
+
const M = rt(I);
|
|
308
|
+
c(I, s), I !== M && c(M, s);
|
|
309
309
|
}, l = new Proxy(a, {
|
|
310
|
-
get(I,
|
|
311
|
-
var
|
|
312
|
-
return (
|
|
310
|
+
get(I, s, M) {
|
|
311
|
+
var d;
|
|
312
|
+
return (d = Reflect.get(I, s, M)) != null ? d : Reflect.get(r, s);
|
|
313
313
|
}
|
|
314
314
|
});
|
|
315
|
-
return t(r, { ...n, slots: l, emit:
|
|
315
|
+
return t(r, { ...n, slots: l, emit: u });
|
|
316
316
|
}
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function ct(t) {
|
|
320
320
|
return {
|
|
321
|
-
props: (e) =>
|
|
321
|
+
props: (e) => Ye({
|
|
322
322
|
name: t.name,
|
|
323
323
|
inheritAttrs: !1,
|
|
324
324
|
props: e,
|
|
325
325
|
setup(n, i) {
|
|
326
|
-
const a = n, { slots: o, emit: r } = i, c = r,
|
|
327
|
-
const M =
|
|
328
|
-
c(I,
|
|
326
|
+
const a = n, { slots: o, emit: r } = i, c = r, u = (I, s) => {
|
|
327
|
+
const M = rt(I);
|
|
328
|
+
c(I, s), I !== M && c(M, s);
|
|
329
329
|
}, l = new Proxy(o, {
|
|
330
|
-
get(I,
|
|
331
|
-
var
|
|
332
|
-
return (
|
|
330
|
+
get(I, s, M) {
|
|
331
|
+
var d;
|
|
332
|
+
return (d = Reflect.get(I, s, M)) != null ? d : Reflect.get(a, s);
|
|
333
333
|
}
|
|
334
334
|
});
|
|
335
|
-
return t(a, { ...i, slots: l, emit:
|
|
335
|
+
return t(a, { ...i, slots: l, emit: u });
|
|
336
336
|
}
|
|
337
337
|
})
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
|
-
const
|
|
341
|
-
var
|
|
342
|
-
function
|
|
340
|
+
const z = f, st = "zh-CN", be = (t) => t != null && typeof t == "object" && Number.isFinite(t.lat) && Number.isFinite(t.lng);
|
|
341
|
+
var Mi = typeof WeakMap == "function", ze = Object.keys;
|
|
342
|
+
function $(t, e) {
|
|
343
343
|
return t === e || t !== t && e !== e;
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Pe(t) {
|
|
346
346
|
return t.constructor === Object || t.constructor == null;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Ze(t) {
|
|
349
349
|
return !!t && typeof t.then == "function";
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Ee(t) {
|
|
352
352
|
return !!(t && t.$$typeof);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function di() {
|
|
355
355
|
var t = [];
|
|
356
356
|
return {
|
|
357
357
|
delete: function(e) {
|
|
@@ -376,31 +376,31 @@ function si() {
|
|
|
376
376
|
}
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
|
-
var
|
|
379
|
+
var gi = function(t) {
|
|
380
380
|
return t ? function() {
|
|
381
381
|
return /* @__PURE__ */ new WeakMap();
|
|
382
|
-
} :
|
|
383
|
-
}(
|
|
384
|
-
function
|
|
382
|
+
} : di;
|
|
383
|
+
}(Mi);
|
|
384
|
+
function ut(t) {
|
|
385
385
|
return function(n) {
|
|
386
386
|
var i = t || n;
|
|
387
|
-
return function(o, r, c,
|
|
388
|
-
|
|
389
|
-
var M = !!o && typeof o == "object",
|
|
390
|
-
if (M !==
|
|
387
|
+
return function(o, r, c, u, l, I, s) {
|
|
388
|
+
s === void 0 && (s = gi());
|
|
389
|
+
var M = !!o && typeof o == "object", d = !!r && typeof r == "object";
|
|
390
|
+
if (M !== d)
|
|
391
391
|
return !1;
|
|
392
|
-
if (!M && !
|
|
393
|
-
return i(o, r,
|
|
394
|
-
var
|
|
395
|
-
if (
|
|
396
|
-
return
|
|
397
|
-
|
|
398
|
-
var m = i(o, r,
|
|
399
|
-
return
|
|
392
|
+
if (!M && !d)
|
|
393
|
+
return i(o, r, s);
|
|
394
|
+
var g = s.get(o);
|
|
395
|
+
if (g && s.get(r))
|
|
396
|
+
return g === r;
|
|
397
|
+
s.set(o, r), s.set(r, o);
|
|
398
|
+
var m = i(o, r, s);
|
|
399
|
+
return s.delete(o), s.delete(r), m;
|
|
400
400
|
};
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function fi(t, e, n, i) {
|
|
404
404
|
var a = t.length;
|
|
405
405
|
if (e.length !== a)
|
|
406
406
|
return !1;
|
|
@@ -409,65 +409,65 @@ function Ii(t, e, n, i) {
|
|
|
409
409
|
return !1;
|
|
410
410
|
return !0;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function mi(t, e, n, i) {
|
|
413
413
|
var a = t.size === e.size;
|
|
414
414
|
if (a && t.size) {
|
|
415
415
|
var o = {}, r = 0;
|
|
416
|
-
t.forEach(function(c,
|
|
416
|
+
t.forEach(function(c, u) {
|
|
417
417
|
if (a) {
|
|
418
418
|
var l = !1, I = 0;
|
|
419
|
-
e.forEach(function(
|
|
420
|
-
!l && !o[I] && (l = n(
|
|
419
|
+
e.forEach(function(s, M) {
|
|
420
|
+
!l && !o[I] && (l = n(u, M, r, I, t, e, i) && n(c, s, u, M, t, e, i), l && (o[I] = !0)), I++;
|
|
421
421
|
}), r++, a = l;
|
|
422
422
|
}
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
return a;
|
|
426
426
|
}
|
|
427
|
-
var
|
|
428
|
-
function
|
|
429
|
-
var a =
|
|
430
|
-
if (
|
|
427
|
+
var pi = "_owner", ji = Function.prototype.bind.call(Function.prototype.call, Object.prototype.hasOwnProperty);
|
|
428
|
+
function Te(t, e, n, i) {
|
|
429
|
+
var a = ze(t), o = a.length;
|
|
430
|
+
if (ze(e).length !== o)
|
|
431
431
|
return !1;
|
|
432
432
|
if (o)
|
|
433
433
|
for (var r = void 0; o-- > 0; ) {
|
|
434
|
-
if (r = a[o], r ===
|
|
435
|
-
var c =
|
|
436
|
-
if ((c ||
|
|
434
|
+
if (r = a[o], r === pi) {
|
|
435
|
+
var c = Ee(t), u = Ee(e);
|
|
436
|
+
if ((c || u) && c !== u)
|
|
437
437
|
return !1;
|
|
438
438
|
}
|
|
439
|
-
if (!
|
|
439
|
+
if (!ji(e, r) || !n(t[r], e[r], r, r, t, e, i))
|
|
440
440
|
return !1;
|
|
441
441
|
}
|
|
442
442
|
return !0;
|
|
443
443
|
}
|
|
444
|
-
var
|
|
444
|
+
var yi = function() {
|
|
445
445
|
return /foo/g.flags === "g" ? function(e, n) {
|
|
446
446
|
return e.source === n.source && e.flags === n.flags;
|
|
447
447
|
} : function(e, n) {
|
|
448
448
|
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;
|
|
449
449
|
};
|
|
450
450
|
}();
|
|
451
|
-
function
|
|
451
|
+
function Li(t, e, n, i) {
|
|
452
452
|
var a = t.size === e.size;
|
|
453
453
|
if (a && t.size) {
|
|
454
454
|
var o = {};
|
|
455
455
|
t.forEach(function(r, c) {
|
|
456
456
|
if (a) {
|
|
457
|
-
var
|
|
458
|
-
e.forEach(function(I,
|
|
459
|
-
!
|
|
460
|
-
}), a =
|
|
457
|
+
var u = !1, l = 0;
|
|
458
|
+
e.forEach(function(I, s) {
|
|
459
|
+
!u && !o[l] && (u = n(r, I, c, s, t, e, i), u && (o[l] = !0)), l++;
|
|
460
|
+
}), a = u;
|
|
461
461
|
}
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
464
|
return a;
|
|
465
465
|
}
|
|
466
|
-
var
|
|
466
|
+
var vi = typeof Map == "function", Ai = typeof Set == "function", Re = Object.prototype.valueOf;
|
|
467
467
|
function V(t) {
|
|
468
468
|
var e = (
|
|
469
469
|
/* eslint-disable no-use-before-define */
|
|
470
|
-
typeof t == "function" ? t(n) : function(i, a, o, r, c,
|
|
470
|
+
typeof t == "function" ? t(n) : function(i, a, o, r, c, u, l) {
|
|
471
471
|
return n(i, a, l);
|
|
472
472
|
}
|
|
473
473
|
);
|
|
@@ -475,10 +475,10 @@ function V(t) {
|
|
|
475
475
|
if (i === a)
|
|
476
476
|
return !0;
|
|
477
477
|
if (i && a && typeof i == "object" && typeof a == "object") {
|
|
478
|
-
if (
|
|
479
|
-
return
|
|
478
|
+
if (Pe(i) && Pe(a))
|
|
479
|
+
return Te(i, a, e, o);
|
|
480
480
|
var r = Array.isArray(i), c = Array.isArray(a);
|
|
481
|
-
return r || c ? r === c &&
|
|
481
|
+
return r || c ? r === c && fi(i, a, e, o) : (r = i instanceof Date, c = a instanceof Date, r || c ? r === c && $(i.getTime(), a.getTime()) : (r = i instanceof RegExp, c = a instanceof RegExp, r || c ? r === c && yi(i, a) : Ze(i) || Ze(a) ? i === a : vi && (r = i instanceof Map, c = a instanceof Map, r || c) ? r === c && mi(i, a, e, o) : Ai && (r = i instanceof Set, c = a instanceof Set, r || c) ? r === c && Li(i, a, e, o) : i.valueOf !== Re || a.valueOf !== Re ? $(i.valueOf(), a.valueOf()) : Te(i, a, e, o)));
|
|
482
482
|
}
|
|
483
483
|
return i !== i && a !== a;
|
|
484
484
|
}
|
|
@@ -486,54 +486,63 @@ function V(t) {
|
|
|
486
486
|
}
|
|
487
487
|
V();
|
|
488
488
|
V(function() {
|
|
489
|
-
return
|
|
489
|
+
return $;
|
|
490
490
|
});
|
|
491
|
-
V(
|
|
492
|
-
V(
|
|
493
|
-
const
|
|
491
|
+
V(ut());
|
|
492
|
+
V(ut($));
|
|
493
|
+
const C = ([t, e]) => ({
|
|
494
494
|
lng: t,
|
|
495
495
|
lat: e
|
|
496
|
-
}),
|
|
496
|
+
}), ae = (t) => {
|
|
497
497
|
const e = [], n = t.split("*");
|
|
498
498
|
for (const [i, a] of n.entries())
|
|
499
499
|
a && e.push({ value: a, type: i % 2 === 0 ? "normal" : "emphasize" });
|
|
500
500
|
return e;
|
|
501
|
-
},
|
|
501
|
+
}, lt = (t) => `${t.charAt(2).toLocaleLowerCase()}${t.slice(3)}`, It = (t) => t.slice(2).toLowerCase(), Ni = (t) => {
|
|
502
502
|
switch (t) {
|
|
503
503
|
case "en":
|
|
504
504
|
return "style_en";
|
|
505
505
|
case "zh":
|
|
506
506
|
return "style_zh_cn";
|
|
507
507
|
}
|
|
508
|
-
},
|
|
508
|
+
}, le = (t) => [t.lng, t.lat], k = (t) => (...e) => {
|
|
509
509
|
setTimeout(() => t == null ? void 0 : t(...e));
|
|
510
|
-
},
|
|
511
|
-
|
|
510
|
+
}, Di = (t) => {
|
|
511
|
+
const { address_components: e } = t, n = e.find(
|
|
512
|
+
(a) => a.types[0] === "administrative_area_level_1" || a.types[0] === "administrative_area_level_2"
|
|
513
|
+
);
|
|
514
|
+
if (n)
|
|
515
|
+
return n.long_name;
|
|
516
|
+
const i = e.findIndex((a) => a.types[0] === "country");
|
|
517
|
+
if (i > 0)
|
|
518
|
+
return e[i - 1].long_name;
|
|
519
|
+
}, Mt = V((t) => (e, n) => be(e) || be(n) ? new google.maps.LatLng(e).equals(new google.maps.LatLng(n)) : t(e, n));
|
|
520
|
+
function dt() {
|
|
512
521
|
let t;
|
|
513
522
|
return function(n) {
|
|
514
|
-
return
|
|
523
|
+
return Mt(n, t) || (t = n), t;
|
|
515
524
|
};
|
|
516
525
|
}
|
|
517
|
-
function
|
|
518
|
-
const i =
|
|
526
|
+
function J(t, e, n) {
|
|
527
|
+
const i = dt();
|
|
519
528
|
return b(() => i(t()), e, {
|
|
520
529
|
immediate: !1,
|
|
521
530
|
flush: "post",
|
|
522
531
|
...n
|
|
523
532
|
});
|
|
524
533
|
}
|
|
525
|
-
function
|
|
526
|
-
const i =
|
|
534
|
+
function oe(t, e, n) {
|
|
535
|
+
const i = dt();
|
|
527
536
|
return b(() => i(t()), e, {
|
|
528
537
|
immediate: !0,
|
|
529
538
|
flush: "post",
|
|
530
539
|
...n
|
|
531
540
|
});
|
|
532
541
|
}
|
|
533
|
-
function
|
|
542
|
+
function Si(t) {
|
|
534
543
|
return `set${t.charAt(0).toUpperCase()}${t.slice(1)}`;
|
|
535
544
|
}
|
|
536
|
-
function
|
|
545
|
+
function xi(t, e, n, i) {
|
|
537
546
|
const a = n.map(
|
|
538
547
|
({ name: o }) => () => e[o]
|
|
539
548
|
);
|
|
@@ -542,9 +551,9 @@ function Ai(t, e, n, i) {
|
|
|
542
551
|
(o, r) => {
|
|
543
552
|
const c = t.value;
|
|
544
553
|
if (c)
|
|
545
|
-
for (const [
|
|
546
|
-
const { name: I, defaultValue:
|
|
547
|
-
|
|
554
|
+
for (const [u, l] of o.entries()) {
|
|
555
|
+
const { name: I, defaultValue: s } = n[u], M = r[u];
|
|
556
|
+
Mt(l, M) || c[Si(I)](l != null ? l : s);
|
|
548
557
|
}
|
|
549
558
|
},
|
|
550
559
|
{
|
|
@@ -554,20 +563,20 @@ function Ai(t, e, n, i) {
|
|
|
554
563
|
}
|
|
555
564
|
);
|
|
556
565
|
}
|
|
557
|
-
function
|
|
558
|
-
return
|
|
566
|
+
function pe(t, e, n, i) {
|
|
567
|
+
return xi(t, e, n, {
|
|
559
568
|
immediate: !1,
|
|
560
569
|
...i
|
|
561
570
|
});
|
|
562
571
|
}
|
|
563
|
-
function
|
|
564
|
-
|
|
572
|
+
function Ie(t, e, n, i) {
|
|
573
|
+
R((a) => {
|
|
565
574
|
const o = t == null ? void 0 : t.value;
|
|
566
575
|
if (!o)
|
|
567
576
|
return;
|
|
568
577
|
const r = [];
|
|
569
578
|
for (const c of i) {
|
|
570
|
-
const
|
|
579
|
+
const u = lt(c), l = It(c), I = (s) => n(u, s);
|
|
571
580
|
o.on(l, I), r.push(() => o == null ? void 0 : o.off(l, I));
|
|
572
581
|
}
|
|
573
582
|
a(() => {
|
|
@@ -576,15 +585,15 @@ function ue(t, e, n, i) {
|
|
|
576
585
|
});
|
|
577
586
|
});
|
|
578
587
|
}
|
|
579
|
-
function
|
|
580
|
-
|
|
588
|
+
function Me(t, e, n, i) {
|
|
589
|
+
R((a) => {
|
|
581
590
|
const o = t == null ? void 0 : t.value;
|
|
582
591
|
if (!o)
|
|
583
592
|
return;
|
|
584
593
|
const r = [];
|
|
585
594
|
for (const c of i) {
|
|
586
|
-
const
|
|
587
|
-
r.push(() => google.maps.event.removeListener(
|
|
595
|
+
const u = lt(c), l = It(c), I = (M) => n(u, M), s = o.addListener(l, I);
|
|
596
|
+
r.push(() => google.maps.event.removeListener(s));
|
|
588
597
|
}
|
|
589
598
|
a(() => {
|
|
590
599
|
for (const c of r)
|
|
@@ -592,18 +601,18 @@ function se(t, e, n, i) {
|
|
|
592
601
|
});
|
|
593
602
|
});
|
|
594
603
|
}
|
|
595
|
-
const
|
|
596
|
-
const n =
|
|
597
|
-
return
|
|
604
|
+
const gt = Symbol(), je = () => fe(gt), Ci = (t) => me(gt, t), E = p(function(e) {
|
|
605
|
+
const n = x(), i = je();
|
|
606
|
+
return ne(() => {
|
|
598
607
|
n.value = new AMap.Marker({ ...e });
|
|
599
|
-
}),
|
|
608
|
+
}), ie(() => {
|
|
600
609
|
var a;
|
|
601
610
|
(a = n.value) == null || a.setMap(null);
|
|
602
|
-
}),
|
|
611
|
+
}), R(() => {
|
|
603
612
|
var o;
|
|
604
613
|
const a = i == null ? void 0 : i.value;
|
|
605
614
|
a && ((o = n.value) == null || o.setMap(a));
|
|
606
|
-
}),
|
|
615
|
+
}), pe(n, e, [
|
|
607
616
|
{ name: "anchor", defaultValue: "" },
|
|
608
617
|
{ name: "offset", defaultValue: [0, 0] },
|
|
609
618
|
{ name: "clickable", defaultValue: !1 },
|
|
@@ -618,25 +627,22 @@ const st = Symbol(), fe = () => Me(st), vi = (t) => ge(st, t), Z = j(function(e)
|
|
|
618
627
|
{ name: "title", defaultValue: "" },
|
|
619
628
|
{ name: "extData", defaultValue: "" }
|
|
620
629
|
]), () => null;
|
|
621
|
-
}),
|
|
622
|
-
const n =
|
|
623
|
-
return
|
|
630
|
+
}), ft = Symbol(), ye = () => fe(ft), hi = (t) => me(ft, t), T = p(function(e) {
|
|
631
|
+
const n = x(), i = ye();
|
|
632
|
+
return ne(() => {
|
|
624
633
|
n.value = new google.maps.marker.AdvancedMarkerView({ ...e });
|
|
625
|
-
}),
|
|
634
|
+
}), ie(() => {
|
|
626
635
|
n.value && (n.value.map = null);
|
|
627
|
-
}),
|
|
636
|
+
}), R(() => {
|
|
628
637
|
const a = i == null ? void 0 : i.value;
|
|
629
638
|
!a || !n.value || (n.value.map = a);
|
|
630
|
-
}),
|
|
639
|
+
}), J(
|
|
631
640
|
() => {
|
|
632
641
|
const { content: a, ...o } = e;
|
|
633
642
|
return o;
|
|
634
643
|
},
|
|
635
644
|
(a) => {
|
|
636
|
-
|
|
637
|
-
debugger;
|
|
638
|
-
Object.assign(n.value, a);
|
|
639
|
-
}
|
|
645
|
+
n.value && Object.assign(n.value, a);
|
|
640
646
|
}
|
|
641
647
|
), b(
|
|
642
648
|
() => e.content,
|
|
@@ -647,122 +653,122 @@ const st = Symbol(), fe = () => Me(st), vi = (t) => ge(st, t), Z = j(function(e)
|
|
|
647
653
|
flush: "post"
|
|
648
654
|
}
|
|
649
655
|
), () => null;
|
|
650
|
-
}),
|
|
651
|
-
const t =
|
|
656
|
+
}), mt = Symbol(), S = () => {
|
|
657
|
+
const t = fe(mt);
|
|
652
658
|
if (!t)
|
|
653
659
|
throw new Error("MyError: useMapSupplier should be under MapProvider");
|
|
654
660
|
return t;
|
|
655
|
-
},
|
|
661
|
+
}, wi = (t) => me(mt, t), w = (t, e, n) => {
|
|
656
662
|
const { class: i, ...a } = e != null ? e : {}, o = document.createElement(t);
|
|
657
663
|
return i && (o.className = i), Object.assign(o, a), n && (o.innerHTML = n), o;
|
|
658
|
-
},
|
|
659
|
-
var
|
|
660
|
-
const
|
|
661
|
-
const n =
|
|
662
|
-
<img src="${
|
|
664
|
+
}, pt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+";
|
|
665
|
+
var jt = "rgf09w0";
|
|
666
|
+
const yt = p(function(e) {
|
|
667
|
+
const n = y(() => `
|
|
668
|
+
<img src="${pt}" class="${jt}">
|
|
663
669
|
`);
|
|
664
|
-
return () => f(
|
|
670
|
+
return () => f(E, {
|
|
665
671
|
attrs: {
|
|
666
672
|
position: e.position,
|
|
667
673
|
content: n.value,
|
|
668
674
|
anchor: "bottom-center"
|
|
669
675
|
}
|
|
670
676
|
});
|
|
671
|
-
}),
|
|
672
|
-
const n =
|
|
673
|
-
class:
|
|
674
|
-
src:
|
|
677
|
+
}), Lt = p(function(e) {
|
|
678
|
+
const n = y(() => w("img", {
|
|
679
|
+
class: jt,
|
|
680
|
+
src: pt
|
|
675
681
|
}));
|
|
676
|
-
return () => f(
|
|
682
|
+
return () => f(T, {
|
|
677
683
|
attrs: {
|
|
678
|
-
position:
|
|
684
|
+
position: C(e.position),
|
|
679
685
|
content: n.value
|
|
680
686
|
}
|
|
681
687
|
});
|
|
682
688
|
});
|
|
683
|
-
|
|
684
|
-
const n =
|
|
685
|
-
return () =>
|
|
689
|
+
p(function(e) {
|
|
690
|
+
const n = S();
|
|
691
|
+
return () => z(n.supplier === "gmap" ? Lt : yt, {
|
|
686
692
|
attrs: e
|
|
687
693
|
});
|
|
688
694
|
});
|
|
689
|
-
var
|
|
690
|
-
const
|
|
691
|
-
const n =
|
|
695
|
+
var vt = "_15rq2xn1", At = "_15rq2xn0", Nt = "_15rq2xn3", Dt = "_15rq2xn2", St = "_15rq2xn4", xt = "_15rq2xn6", Ct = "_15rq2xn5";
|
|
696
|
+
const bi = p(function(e) {
|
|
697
|
+
const n = y(() => {
|
|
692
698
|
var i;
|
|
693
699
|
return `
|
|
694
|
-
<div class="${
|
|
695
|
-
<div class="${
|
|
700
|
+
<div class="${At}">
|
|
701
|
+
<div class="${vt}">
|
|
696
702
|
<div>
|
|
697
|
-
<div class="${
|
|
698
|
-
<div class="${
|
|
703
|
+
<div class="${Dt}">${e.title}</div>
|
|
704
|
+
<div class="${Nt}">${(i = e.description) != null ? i : ""}</div>
|
|
699
705
|
</div>
|
|
700
|
-
<img class="${
|
|
706
|
+
<img class="${St}" src="${He}" >
|
|
701
707
|
</div>
|
|
702
|
-
<div class="${
|
|
703
|
-
<img src="${
|
|
708
|
+
<div class="${Ct}"></div>
|
|
709
|
+
<img src="${Y}" class="${xt}">
|
|
704
710
|
</div>
|
|
705
711
|
`;
|
|
706
712
|
});
|
|
707
|
-
return () => e.type === "locator" ? f(
|
|
713
|
+
return () => e.type === "locator" ? f(yt, {
|
|
708
714
|
attrs: {
|
|
709
715
|
position: e.position
|
|
710
716
|
}
|
|
711
|
-
}) : f(
|
|
717
|
+
}) : f(E, {
|
|
712
718
|
attrs: {
|
|
713
719
|
position: e.position,
|
|
714
720
|
content: n.value,
|
|
715
721
|
anchor: "bottom-center"
|
|
716
722
|
}
|
|
717
723
|
});
|
|
718
|
-
}),
|
|
719
|
-
const n =
|
|
724
|
+
}), zi = p(function(e) {
|
|
725
|
+
const n = y(() => {
|
|
720
726
|
var i;
|
|
721
|
-
return
|
|
722
|
-
class:
|
|
727
|
+
return w("div", {
|
|
728
|
+
class: At
|
|
723
729
|
}, `
|
|
724
|
-
<div class="${
|
|
730
|
+
<div class="${vt}">
|
|
725
731
|
<div>
|
|
726
|
-
<div class="${
|
|
727
|
-
<div class="${
|
|
732
|
+
<div class="${Dt}">${e.title}</div>
|
|
733
|
+
<div class="${Nt}">${(i = e.description) != null ? i : ""}</div>
|
|
728
734
|
</div>
|
|
729
|
-
<img class="${
|
|
735
|
+
<img class="${St}" src="${He}" >
|
|
730
736
|
</div>
|
|
731
|
-
<div class="${
|
|
732
|
-
<img src="${
|
|
737
|
+
<div class="${Ct}"></div>
|
|
738
|
+
<img src="${Y}" class="${xt}">
|
|
733
739
|
`);
|
|
734
740
|
});
|
|
735
|
-
return () => e.type === "locator" ? f(
|
|
741
|
+
return () => e.type === "locator" ? f(Lt, {
|
|
736
742
|
attrs: {
|
|
737
743
|
position: e.position
|
|
738
744
|
}
|
|
739
|
-
}) : f(
|
|
745
|
+
}) : f(T, {
|
|
740
746
|
attrs: {
|
|
741
|
-
position:
|
|
747
|
+
position: C(e.position),
|
|
742
748
|
content: n.value
|
|
743
749
|
}
|
|
744
750
|
});
|
|
745
|
-
}),
|
|
746
|
-
const n =
|
|
747
|
-
return () =>
|
|
751
|
+
}), pa = p(function(e) {
|
|
752
|
+
const n = S();
|
|
753
|
+
return () => z(n.supplier === "gmap" ? zi : bi, {
|
|
748
754
|
attrs: e
|
|
749
755
|
});
|
|
750
|
-
}),
|
|
751
|
-
const n =
|
|
752
|
-
return
|
|
756
|
+
}), Q = p(function(e) {
|
|
757
|
+
const n = x(), i = je();
|
|
758
|
+
return ne(() => {
|
|
753
759
|
n.value = new AMap.Polyline({ ...e });
|
|
754
|
-
}),
|
|
760
|
+
}), ie(() => {
|
|
755
761
|
var a;
|
|
756
762
|
(a = n.value) == null || a.setMap(null);
|
|
757
|
-
}),
|
|
763
|
+
}), R(() => {
|
|
758
764
|
var o;
|
|
759
765
|
const a = i == null ? void 0 : i.value;
|
|
760
766
|
a && ((o = n.value) == null || o.setMap(a));
|
|
761
|
-
}),
|
|
767
|
+
}), pe(n, e, [
|
|
762
768
|
{ name: "path", defaultValue: [[0, 0]] },
|
|
763
769
|
{ name: "extData", defaultValue: void 0 },
|
|
764
770
|
{ name: "draggable", defaultValue: !1 }
|
|
765
|
-
]),
|
|
771
|
+
]), J(
|
|
766
772
|
() => {
|
|
767
773
|
const { path: a, extData: o, draggable: r, ...c } = e;
|
|
768
774
|
return c;
|
|
@@ -772,28 +778,28 @@ const Si = j(function(e) {
|
|
|
772
778
|
(o = n.value) == null || o.setOptions({ ...a });
|
|
773
779
|
}
|
|
774
780
|
), () => null;
|
|
775
|
-
}),
|
|
776
|
-
const n =
|
|
777
|
-
return
|
|
781
|
+
}), X = p(function(e) {
|
|
782
|
+
const n = x(), i = ye();
|
|
783
|
+
return ne(() => {
|
|
778
784
|
n.value = new google.maps.Polyline({ ...e });
|
|
779
|
-
}),
|
|
785
|
+
}), ie(() => {
|
|
780
786
|
var a;
|
|
781
787
|
(a = n.value) == null || a.setMap(null);
|
|
782
|
-
}),
|
|
788
|
+
}), R(() => {
|
|
783
789
|
var o;
|
|
784
790
|
const a = i == null ? void 0 : i.value;
|
|
785
791
|
a && ((o = n.value) == null || o.setMap(a));
|
|
786
|
-
}),
|
|
792
|
+
}), J(
|
|
787
793
|
() => ({ ...e }),
|
|
788
794
|
(a) => {
|
|
789
795
|
var o;
|
|
790
796
|
(o = n.value) == null || o.setOptions({ ...a });
|
|
791
797
|
}
|
|
792
798
|
), () => null;
|
|
793
|
-
}),
|
|
799
|
+
}), Pi = p(function(e) {
|
|
794
800
|
return () => {
|
|
795
|
-
const n = window.innerWidth * 0.01, i = 2.5 * n, a = 0.35 * n, o = 0.6 * n, r = 1 * n, c = 0.75 * n,
|
|
796
|
-
return f("div", [f(
|
|
801
|
+
const n = window.innerWidth * 0.01, i = 2.5 * n, a = 0.35 * n, o = 0.6 * n, r = 1 * n, c = 0.75 * n, u = e.done ? "#96B2CA" : "#487BF4", l = e.done ? "#7693AF" : "#4175F1", I = e.done ? "#7693AF" : "#6C95F5";
|
|
802
|
+
return f("div", [f(Q, {
|
|
797
803
|
attrs: {
|
|
798
804
|
path: e.path,
|
|
799
805
|
strokeWeight: i + 2 * a + 2 * r,
|
|
@@ -802,7 +808,7 @@ const Si = j(function(e) {
|
|
|
802
808
|
lineJoin: "round",
|
|
803
809
|
lineCap: "round"
|
|
804
810
|
}
|
|
805
|
-
}), f(
|
|
811
|
+
}), f(Q, {
|
|
806
812
|
attrs: {
|
|
807
813
|
path: e.path,
|
|
808
814
|
strokeWeight: i + 2 * a,
|
|
@@ -813,16 +819,16 @@ const Si = j(function(e) {
|
|
|
813
819
|
strokeStyle: "dashed",
|
|
814
820
|
strokeDasharray: [c, c * 0.5]
|
|
815
821
|
}
|
|
816
|
-
}), f(
|
|
822
|
+
}), f(Q, {
|
|
817
823
|
attrs: {
|
|
818
824
|
path: e.path,
|
|
819
825
|
strokeWeight: i,
|
|
820
826
|
strokeOpacity: 1,
|
|
821
|
-
strokeColor:
|
|
827
|
+
strokeColor: u,
|
|
822
828
|
lineJoin: "round",
|
|
823
829
|
lineCap: "round"
|
|
824
830
|
}
|
|
825
|
-
}), f(
|
|
831
|
+
}), f(Q, {
|
|
826
832
|
attrs: {
|
|
827
833
|
showDir: !0,
|
|
828
834
|
path: e.path,
|
|
@@ -834,33 +840,33 @@ const Si = j(function(e) {
|
|
|
834
840
|
}
|
|
835
841
|
})]);
|
|
836
842
|
};
|
|
837
|
-
}),
|
|
838
|
-
const n =
|
|
843
|
+
}), Zi = p(function(e) {
|
|
844
|
+
const n = y(() => e.path.map(C));
|
|
839
845
|
return () => {
|
|
840
|
-
const i = window.innerWidth * 0.01, a = 10 * i, o = 2.5 * i, r = 0.35 * i, c = 0.75 * i,
|
|
841
|
-
return f("div", [f(
|
|
846
|
+
const i = window.innerWidth * 0.01, a = 10 * i, o = 2.5 * i, r = 0.35 * i, c = 0.75 * i, u = 1 * i, l = e.done ? "#96B2CA" : "#487BF4", I = e.done ? "#7693AF" : "#4175F1", s = e.done ? "#7693AF" : "#6C95F5";
|
|
847
|
+
return f("div", [f(X, {
|
|
842
848
|
attrs: {
|
|
843
849
|
path: n.value,
|
|
844
|
-
strokeWeight: o + 2 * r + 2 *
|
|
850
|
+
strokeWeight: o + 2 * r + 2 * u,
|
|
845
851
|
strokeOpacity: 1,
|
|
846
852
|
strokeColor: I
|
|
847
853
|
}
|
|
848
|
-
}), f(
|
|
854
|
+
}), f(X, {
|
|
849
855
|
attrs: {
|
|
850
856
|
path: n.value,
|
|
851
857
|
icons: [{
|
|
852
858
|
icon: {
|
|
853
859
|
path: "M 0,-0.5 0,0.5",
|
|
854
860
|
strokeWeight: o + 2 * r,
|
|
855
|
-
strokeColor:
|
|
856
|
-
fillColor:
|
|
861
|
+
strokeColor: s,
|
|
862
|
+
fillColor: s,
|
|
857
863
|
scale: 1
|
|
858
864
|
},
|
|
859
865
|
repeat: `${o}px`,
|
|
860
866
|
offset: `${o / 2}px`
|
|
861
867
|
}]
|
|
862
868
|
}
|
|
863
|
-
}), f(
|
|
869
|
+
}), f(X, {
|
|
864
870
|
attrs: {
|
|
865
871
|
path: n.value,
|
|
866
872
|
strokeWeight: o,
|
|
@@ -879,14 +885,14 @@ const Si = j(function(e) {
|
|
|
879
885
|
}
|
|
880
886
|
})]);
|
|
881
887
|
};
|
|
882
|
-
}),
|
|
883
|
-
const n =
|
|
884
|
-
return () => e.path.length ?
|
|
888
|
+
}), ja = p(function(e) {
|
|
889
|
+
const n = S();
|
|
890
|
+
return () => e.path.length ? z(n.supplier === "gmap" ? Zi : Pi, {
|
|
885
891
|
attrs: e
|
|
886
892
|
}) : null;
|
|
887
|
-
}),
|
|
888
|
-
const e =
|
|
889
|
-
return
|
|
893
|
+
}), ht = (t) => {
|
|
894
|
+
const e = x([]), n = new AMap.Driving({});
|
|
895
|
+
return oe(
|
|
890
896
|
() => ({ ...t }),
|
|
891
897
|
({ from: i, to: a }) => {
|
|
892
898
|
n.search(
|
|
@@ -897,10 +903,10 @@ const Si = j(function(e) {
|
|
|
897
903
|
switch (o) {
|
|
898
904
|
case "complete": {
|
|
899
905
|
let c = [];
|
|
900
|
-
const
|
|
901
|
-
for (const l of
|
|
906
|
+
const u = r;
|
|
907
|
+
for (const l of u.routes)
|
|
902
908
|
for (const I of l.steps) {
|
|
903
|
-
const M = I.path.map(({ lng:
|
|
909
|
+
const M = I.path.map(({ lng: d, lat: g }) => [d, g]);
|
|
904
910
|
c = c.concat(M);
|
|
905
911
|
}
|
|
906
912
|
e.value = c;
|
|
@@ -915,113 +921,113 @@ const Si = j(function(e) {
|
|
|
915
921
|
);
|
|
916
922
|
}
|
|
917
923
|
), e;
|
|
918
|
-
},
|
|
919
|
-
const e =
|
|
920
|
-
return
|
|
924
|
+
}, wt = (t) => {
|
|
925
|
+
const e = x([]), n = new google.maps.DirectionsService();
|
|
926
|
+
return oe(
|
|
921
927
|
() => ({ ...t }),
|
|
922
928
|
({ from: i, to: a }) => {
|
|
923
929
|
n.route({
|
|
924
930
|
origin: { lng: i[0], lat: i[1] },
|
|
925
931
|
destination: { lng: a[0], lat: a[1] },
|
|
926
|
-
travelMode: google.maps.TravelMode.
|
|
932
|
+
travelMode: google.maps.TravelMode.DRIVING
|
|
927
933
|
}).then((o) => {
|
|
928
934
|
let r = [];
|
|
929
935
|
o.routes.map((c) => {
|
|
930
|
-
const
|
|
931
|
-
r = r.concat(
|
|
936
|
+
const u = c.overview_path.map((l) => [l.lng(), l.lat()]);
|
|
937
|
+
r = r.concat(u);
|
|
932
938
|
}), e.value = r;
|
|
933
939
|
});
|
|
934
940
|
}
|
|
935
941
|
), e;
|
|
936
|
-
},
|
|
937
|
-
const { supplier: e } =
|
|
938
|
-
return e === "gmap" ?
|
|
939
|
-
},
|
|
942
|
+
}, ya = (t) => {
|
|
943
|
+
const { supplier: e } = S();
|
|
944
|
+
return e === "gmap" ? wt(t) : ht(t);
|
|
945
|
+
}, Ei = (t, e, n) => {
|
|
940
946
|
if (!n)
|
|
941
947
|
return 0;
|
|
942
948
|
const { x: i, y: a } = n.lngLatToContainer(t), { x: o, y: r } = n.lngLatToContainer(e), c = Math.atan2(a - r, o - i);
|
|
943
949
|
return (Math.PI / 2 - c) / Math.PI * 180;
|
|
944
|
-
},
|
|
950
|
+
}, bt = (t) => y(() => {
|
|
945
951
|
const { map: e, path: n } = t, [i, a] = n;
|
|
946
952
|
if (!(!i || !a || !e))
|
|
947
|
-
return
|
|
948
|
-
}),
|
|
953
|
+
return Ei(i, a, e);
|
|
954
|
+
}), zt = (t) => y(() => {
|
|
949
955
|
const { path: e } = t, [n, i] = e;
|
|
950
956
|
if (!(!n || !i))
|
|
951
|
-
return google.maps.geometry.spherical.computeHeading(
|
|
952
|
-
}),
|
|
953
|
-
const { supplier: e } =
|
|
954
|
-
return e === "gmap" ?
|
|
955
|
-
},
|
|
957
|
+
return google.maps.geometry.spherical.computeHeading(C(n), C(i));
|
|
958
|
+
}), La = (t) => {
|
|
959
|
+
const { supplier: e } = S();
|
|
960
|
+
return e === "gmap" ? zt(t) : bt(t);
|
|
961
|
+
}, Ti = p(function(e, {
|
|
956
962
|
slots: n
|
|
957
963
|
}) {
|
|
958
|
-
const i =
|
|
964
|
+
const i = je(), a = ht(e), o = bt(P({
|
|
959
965
|
path: a,
|
|
960
966
|
map: i
|
|
961
967
|
}));
|
|
962
968
|
return () => {
|
|
963
969
|
var r;
|
|
964
|
-
return f("div", [(r = n.render) == null ? void 0 : r.call(n,
|
|
970
|
+
return f("div", [(r = n.render) == null ? void 0 : r.call(n, P({
|
|
965
971
|
path: a,
|
|
966
972
|
angle: o
|
|
967
973
|
}))]);
|
|
968
974
|
};
|
|
969
|
-
}),
|
|
975
|
+
}), Ri = p(function(e, {
|
|
970
976
|
slots: n
|
|
971
977
|
}) {
|
|
972
|
-
const i =
|
|
978
|
+
const i = ye(), a = wt(e), o = zt(P({
|
|
973
979
|
path: a,
|
|
974
980
|
map: i
|
|
975
981
|
}));
|
|
976
982
|
return () => {
|
|
977
983
|
var r;
|
|
978
|
-
return f("div", [(r = n.render) == null ? void 0 : r.call(n,
|
|
984
|
+
return f("div", [(r = n.render) == null ? void 0 : r.call(n, P({
|
|
979
985
|
path: a,
|
|
980
986
|
angle: o
|
|
981
987
|
}))]);
|
|
982
988
|
};
|
|
983
|
-
}),
|
|
989
|
+
}), va = p(function(e, {
|
|
984
990
|
slots: n
|
|
985
991
|
}) {
|
|
986
992
|
const {
|
|
987
993
|
supplier: i
|
|
988
|
-
} =
|
|
989
|
-
return () =>
|
|
994
|
+
} = S();
|
|
995
|
+
return () => z(i === "gmap" ? Ri : Ti, {
|
|
990
996
|
attrs: e,
|
|
991
997
|
scopedSlots: n
|
|
992
998
|
});
|
|
993
|
-
}),
|
|
994
|
-
var
|
|
995
|
-
const
|
|
996
|
-
const n =
|
|
997
|
-
<img src="${
|
|
999
|
+
}), Pt = "data:image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ii8+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjcHJlZml4X19hKSIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjxjaXJjbGUgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVqb2luPSJzcXVhcmUiIGZpbGw9IiM0ODcxRjEiIGN4PSIzMCIgY3k9IjMwIiByPSI5LjMiLz48L2c+PC9zdmc+";
|
|
1000
|
+
var Zt = "_1l6offo0";
|
|
1001
|
+
const Gi = p(function(e) {
|
|
1002
|
+
const n = y(() => `
|
|
1003
|
+
<img src="${Pt}" class="${Zt}">
|
|
998
1004
|
`);
|
|
999
|
-
return () => f(
|
|
1005
|
+
return () => f(E, {
|
|
1000
1006
|
attrs: {
|
|
1001
1007
|
position: e.position,
|
|
1002
1008
|
content: n.value,
|
|
1003
1009
|
anchor: "bottom-center"
|
|
1004
1010
|
}
|
|
1005
1011
|
});
|
|
1006
|
-
}),
|
|
1007
|
-
const n =
|
|
1008
|
-
class:
|
|
1009
|
-
src:
|
|
1012
|
+
}), ki = p(function(e) {
|
|
1013
|
+
const n = y(() => w("img", {
|
|
1014
|
+
class: Zt,
|
|
1015
|
+
src: Pt
|
|
1010
1016
|
}));
|
|
1011
|
-
return () => f(
|
|
1017
|
+
return () => f(T, {
|
|
1012
1018
|
attrs: {
|
|
1013
|
-
position:
|
|
1019
|
+
position: C(e.position),
|
|
1014
1020
|
content: n.value
|
|
1015
1021
|
}
|
|
1016
1022
|
});
|
|
1017
|
-
}),
|
|
1018
|
-
const n =
|
|
1019
|
-
return () =>
|
|
1023
|
+
}), Aa = p(function(e) {
|
|
1024
|
+
const n = S();
|
|
1025
|
+
return () => z(n.supplier === "gmap" ? ki : Gi, {
|
|
1020
1026
|
attrs: e
|
|
1021
1027
|
});
|
|
1022
1028
|
});
|
|
1023
|
-
var
|
|
1024
|
-
function
|
|
1029
|
+
var de = /* @__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))(de || {});
|
|
1030
|
+
function Oi(t, e, n) {
|
|
1025
1031
|
return e in t ? Object.defineProperty(t, e, {
|
|
1026
1032
|
value: n,
|
|
1027
1033
|
enumerable: !0,
|
|
@@ -1029,7 +1035,7 @@ function Ei(t, e, n) {
|
|
|
1029
1035
|
writable: !0
|
|
1030
1036
|
}) : t[e] = n, t;
|
|
1031
1037
|
}
|
|
1032
|
-
function
|
|
1038
|
+
function Ge(t, e) {
|
|
1033
1039
|
var n = Object.keys(t);
|
|
1034
1040
|
if (Object.getOwnPropertySymbols) {
|
|
1035
1041
|
var i = Object.getOwnPropertySymbols(t);
|
|
@@ -1039,226 +1045,226 @@ function Pe(t, e) {
|
|
|
1039
1045
|
}
|
|
1040
1046
|
return n;
|
|
1041
1047
|
}
|
|
1042
|
-
function
|
|
1048
|
+
function ke(t) {
|
|
1043
1049
|
for (var e = 1; e < arguments.length; e++) {
|
|
1044
1050
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
1045
|
-
e % 2 ?
|
|
1046
|
-
|
|
1047
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
1051
|
+
e % 2 ? Ge(Object(n), !0).forEach(function(i) {
|
|
1052
|
+
Oi(t, i, n[i]);
|
|
1053
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ge(Object(n)).forEach(function(i) {
|
|
1048
1054
|
Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(n, i));
|
|
1049
1055
|
});
|
|
1050
1056
|
}
|
|
1051
1057
|
return t;
|
|
1052
1058
|
}
|
|
1053
|
-
var
|
|
1059
|
+
var Wi = (t, e, n) => {
|
|
1054
1060
|
for (var i of Object.keys(t)) {
|
|
1055
1061
|
var a;
|
|
1056
1062
|
if (t[i] !== ((a = e[i]) !== null && a !== void 0 ? a : n[i]))
|
|
1057
1063
|
return !1;
|
|
1058
1064
|
}
|
|
1059
1065
|
return !0;
|
|
1060
|
-
},
|
|
1061
|
-
var n = t.defaultClassName, i =
|
|
1066
|
+
}, re = (t) => (e) => {
|
|
1067
|
+
var n = t.defaultClassName, i = ke(ke({}, t.defaultVariants), e);
|
|
1062
1068
|
for (var a in i) {
|
|
1063
1069
|
var o, r = (o = i[a]) !== null && o !== void 0 ? o : t.defaultVariants[a];
|
|
1064
1070
|
if (r != null) {
|
|
1065
1071
|
var c = r;
|
|
1066
1072
|
typeof c == "boolean" && (c = c === !0 ? "true" : "false");
|
|
1067
|
-
var
|
|
1073
|
+
var u = (
|
|
1068
1074
|
// @ts-expect-error
|
|
1069
1075
|
t.variantClassNames[a][c]
|
|
1070
1076
|
);
|
|
1071
|
-
|
|
1077
|
+
u && (n += " " + u);
|
|
1072
1078
|
}
|
|
1073
1079
|
}
|
|
1074
1080
|
for (var [l, I] of t.compoundVariants)
|
|
1075
|
-
|
|
1081
|
+
Wi(l, i, t.defaultVariants) && (n += " " + I);
|
|
1076
1082
|
return n;
|
|
1077
|
-
},
|
|
1078
|
-
const
|
|
1079
|
-
const n =
|
|
1083
|
+
}, Oe = re({ defaultClassName: "", variantClassNames: { textAlign: { left: "fhyw83", right: "fhyw84" } }, defaultVariants: {}, compoundVariants: [] }), We = re({ defaultClassName: "fhyw85", variantClassNames: { textAlign: { left: "fhyw86", right: "fhyw87" } }, defaultVariants: {}, compoundVariants: [] }), Et = "fhyw89", Tt = re({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] }), F = "fhyw88";
|
|
1084
|
+
const Ui = p(function(e) {
|
|
1085
|
+
const n = y(() => {
|
|
1080
1086
|
var o;
|
|
1081
1087
|
return (o = e.textAlign) != null ? o : "right";
|
|
1082
|
-
}), i =
|
|
1083
|
-
<div class="${
|
|
1088
|
+
}), i = y(() => `
|
|
1089
|
+
<div class="${Tt({
|
|
1084
1090
|
textAlign: n.value
|
|
1085
1091
|
})}" >
|
|
1086
|
-
<img class="${
|
|
1092
|
+
<img class="${F} ${Oe({
|
|
1087
1093
|
textAlign: n.value
|
|
1088
|
-
})}" src="${
|
|
1089
|
-
<div class="${
|
|
1094
|
+
})}" src="${Y}">
|
|
1095
|
+
<div class="${Et}">${e.label}</div>
|
|
1090
1096
|
</div>
|
|
1091
|
-
`), a =
|
|
1097
|
+
`), a = y(() => `<img class="${F} ${Oe({
|
|
1092
1098
|
textAlign: n.value
|
|
1093
|
-
})}" src="${
|
|
1094
|
-
return () => f(
|
|
1099
|
+
})}" src="${Y}">`);
|
|
1100
|
+
return () => f(E, {
|
|
1095
1101
|
attrs: {
|
|
1096
1102
|
position: e.position,
|
|
1097
1103
|
content: e.label ? i.value : a.value,
|
|
1098
|
-
anchor: n.value === "left" ?
|
|
1104
|
+
anchor: n.value === "left" ? de.middleRight : de.middleLeft
|
|
1099
1105
|
}
|
|
1100
1106
|
});
|
|
1101
|
-
}),
|
|
1102
|
-
const n =
|
|
1107
|
+
}), Yi = p(function(e) {
|
|
1108
|
+
const n = y(() => {
|
|
1103
1109
|
var o;
|
|
1104
1110
|
return (o = e.textAlign) != null ? o : "right";
|
|
1105
|
-
}), i =
|
|
1106
|
-
class: `${
|
|
1111
|
+
}), i = y(() => w("div", {
|
|
1112
|
+
class: `${Tt({
|
|
1107
1113
|
textAlign: n.value
|
|
1108
|
-
})} ${
|
|
1114
|
+
})} ${We({
|
|
1109
1115
|
textAlign: n.value
|
|
1110
1116
|
})}`
|
|
1111
1117
|
}, `
|
|
1112
|
-
<img class="${
|
|
1113
|
-
<div class="${
|
|
1114
|
-
`)), a =
|
|
1115
|
-
class: `${
|
|
1118
|
+
<img class="${F}" src="${Y}">
|
|
1119
|
+
<div class="${Et}">${e.label}</div>
|
|
1120
|
+
`)), a = y(() => w("img", {
|
|
1121
|
+
class: `${F} ${We({
|
|
1116
1122
|
textAlign: n.value
|
|
1117
1123
|
})}`,
|
|
1118
|
-
src:
|
|
1124
|
+
src: Y
|
|
1119
1125
|
}));
|
|
1120
|
-
return () => f(
|
|
1126
|
+
return () => f(T, {
|
|
1121
1127
|
attrs: {
|
|
1122
|
-
position:
|
|
1128
|
+
position: C(e.position),
|
|
1123
1129
|
content: e.label ? i.value : a.value
|
|
1124
1130
|
}
|
|
1125
1131
|
});
|
|
1126
|
-
}),
|
|
1127
|
-
const n =
|
|
1128
|
-
return () =>
|
|
1132
|
+
}), Hi = p(function(e) {
|
|
1133
|
+
const n = S();
|
|
1134
|
+
return () => z(n.supplier === "gmap" ? Yi : Ui, {
|
|
1129
1135
|
attrs: e
|
|
1130
1136
|
});
|
|
1131
|
-
}),
|
|
1132
|
-
return () => f("div", [e.
|
|
1137
|
+
}), Na = p(function(e) {
|
|
1138
|
+
return () => f("div", [e.places.map((n) => f(Hi, {
|
|
1133
1139
|
attrs: {
|
|
1134
|
-
position: n,
|
|
1135
|
-
label:
|
|
1140
|
+
position: le(n),
|
|
1141
|
+
label: n.name,
|
|
1136
1142
|
textAlign: "left"
|
|
1137
1143
|
}
|
|
1138
1144
|
}))]);
|
|
1139
|
-
}),
|
|
1140
|
-
var
|
|
1141
|
-
const
|
|
1142
|
-
const n =
|
|
1145
|
+
}), Rt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjg0NDciIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkY4QjRBIiBvZmZzZXQ9IjUwLjU5Ni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GFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
|
|
1146
|
+
var U = re({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] }), kt = "_4a4ovk1", Ot = "_4a4ovk4", Wt = "_4a4ovk5", Ut = "_4a4ovk3", _ = "_4a4ovk0", Yt = "_4a4ovk2";
|
|
1147
|
+
const Bi = p(function(e) {
|
|
1148
|
+
const n = y(() => {
|
|
1143
1149
|
var o;
|
|
1144
|
-
const i = e.type === "start" ?
|
|
1145
|
-
return !e.description && !e.title ? `<img src="${i}" class="${
|
|
1150
|
+
const i = e.type === "start" ? Gt : Rt, a = e.description ? ae(e.description).map((r) => r.type === "normal" ? r.value : `<span class="${Wt}">${r.value}</span>`).join("") : "";
|
|
1151
|
+
return !e.description && !e.title ? `<img src="${i}" class="${U({
|
|
1146
1152
|
type: e.type
|
|
1147
1153
|
})}">` : e.description ? `
|
|
1148
|
-
<div class="${
|
|
1149
|
-
<div class="${
|
|
1150
|
-
<div class="${
|
|
1151
|
-
<div class="${
|
|
1154
|
+
<div class="${_}">
|
|
1155
|
+
<div class="${kt}">
|
|
1156
|
+
<div class="${Ut}">${(o = e.title) != null ? o : ""}</div>
|
|
1157
|
+
<div class="${Ot}">${a}</div>
|
|
1152
1158
|
</div>
|
|
1153
|
-
<img src="${i}" class="${
|
|
1159
|
+
<img src="${i}" class="${U({
|
|
1154
1160
|
type: e.type
|
|
1155
1161
|
})}">
|
|
1156
1162
|
</div>
|
|
1157
1163
|
` : `
|
|
1158
|
-
<div class="${
|
|
1159
|
-
<div class="${
|
|
1160
|
-
<img src="${i}" class="${
|
|
1164
|
+
<div class="${_}">
|
|
1165
|
+
<div class="${Yt}">${e.title}</div>
|
|
1166
|
+
<img src="${i}" class="${U({
|
|
1161
1167
|
type: e.type
|
|
1162
1168
|
})}">
|
|
1163
1169
|
</div>
|
|
1164
1170
|
`;
|
|
1165
1171
|
});
|
|
1166
|
-
return () => f(
|
|
1172
|
+
return () => f(E, {
|
|
1167
1173
|
attrs: {
|
|
1168
1174
|
position: e.position,
|
|
1169
1175
|
content: n.value,
|
|
1170
1176
|
anchor: "bottom-center"
|
|
1171
1177
|
}
|
|
1172
1178
|
});
|
|
1173
|
-
}),
|
|
1174
|
-
const n =
|
|
1179
|
+
}), Qi = p(function(e) {
|
|
1180
|
+
const n = y(() => {
|
|
1175
1181
|
var o;
|
|
1176
|
-
const i = e.type === "start" ?
|
|
1177
|
-
return !e.description && !e.title ?
|
|
1178
|
-
class:
|
|
1182
|
+
const i = e.type === "start" ? Gt : Rt, a = e.description ? ae(e.description).map((r) => r.type === "normal" ? r.value : `<span class="${Wt}">${r.value}</span>`).join("") : "";
|
|
1183
|
+
return !e.description && !e.title ? w("img", {
|
|
1184
|
+
class: U({
|
|
1179
1185
|
type: e.type
|
|
1180
1186
|
}),
|
|
1181
1187
|
src: i
|
|
1182
|
-
}) : e.description ?
|
|
1183
|
-
class:
|
|
1188
|
+
}) : e.description ? w("div", {
|
|
1189
|
+
class: _
|
|
1184
1190
|
}, `
|
|
1185
|
-
<div class="${
|
|
1186
|
-
<div class="${
|
|
1187
|
-
<div class="${
|
|
1191
|
+
<div class="${kt}">
|
|
1192
|
+
<div class="${Ut}">${(o = e.title) != null ? o : ""}</div>
|
|
1193
|
+
<div class="${Ot}">${a}</div>
|
|
1188
1194
|
</div>
|
|
1189
|
-
<img src="${i}" class="${
|
|
1195
|
+
<img src="${i}" class="${U({
|
|
1190
1196
|
type: e.type
|
|
1191
1197
|
})}">
|
|
1192
|
-
`) :
|
|
1193
|
-
class:
|
|
1198
|
+
`) : w("div", {
|
|
1199
|
+
class: _
|
|
1194
1200
|
}, `
|
|
1195
|
-
<div class="${
|
|
1196
|
-
<img src="${i}" class="${
|
|
1201
|
+
<div class="${Yt}">${e.title}</div>
|
|
1202
|
+
<img src="${i}" class="${U({
|
|
1197
1203
|
type: e.type
|
|
1198
1204
|
})}">
|
|
1199
1205
|
`);
|
|
1200
1206
|
});
|
|
1201
|
-
return () => f(
|
|
1207
|
+
return () => f(T, {
|
|
1202
1208
|
attrs: {
|
|
1203
|
-
position:
|
|
1209
|
+
position: C(e.position),
|
|
1204
1210
|
content: n.value
|
|
1205
1211
|
}
|
|
1206
1212
|
});
|
|
1207
|
-
}),
|
|
1208
|
-
const n =
|
|
1209
|
-
return () =>
|
|
1213
|
+
}), Da = p(function(e) {
|
|
1214
|
+
const n = S();
|
|
1215
|
+
return () => z(n.supplier === "gmap" ? Qi : Bi, {
|
|
1210
1216
|
attrs: e
|
|
1211
1217
|
});
|
|
1212
|
-
}),
|
|
1213
|
-
var
|
|
1214
|
-
const
|
|
1215
|
-
const n =
|
|
1218
|
+
}), K = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0zNC4wODcgMTAuOTZjMCAyLjM2OS0uMDU0IDIuOTgtLjc4MiAzLjcwNC0uNzkzLjc5LTUuMjM2LjgzMy01LjIzNi44MzNsLTQuMTE2LjE5Mi05Ljg5Ni0uMTQ0cy03Ljc5LS4wMjYtOS4xMzEtLjAyNmMtMS4zNDIgMC0yLjQwNi0uODQ3LTIuNDA2LS44NDdDLjE0IDEyLjkzMiAwIDExLjA5IDAgMTEuMDlWNS44NnMuMTQtMS44NDIgMi41Mi0zLjU4M2MwIDAgMS4wNjQtLjg0NiAyLjQwNi0uODQ2IDEuMzQxIDAgOS4xMy0uMDI2IDkuMTMtLjAyNmw5Ljg5Ny0uMTQ0IDQuMTE2LjE5MnM0LjQ4NCAwIDUuMjM2LjgzM2MuNzc4Ljg2Ljc4MiAxLjM3Ljc4MiAzLjc0djQuOTM0eiIgaW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D0iTTEyLjA2NyAxOS43MTZsLTQuNjQ1LjY5MmMtLjQzMS0yLjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";
|
|
1219
|
+
var q = "_65j3sr1", Ht = "_4a4ovk5", Bt = "_4a4ovk0", Qt = "_4a4ovk2";
|
|
1220
|
+
const Vi = p(function(e) {
|
|
1221
|
+
const n = y(() => {
|
|
1216
1222
|
var o;
|
|
1217
|
-
const i = e.title ?
|
|
1223
|
+
const i = e.title ? ae(e.title).map((r) => r.type === "normal" ? r.value : `<span class="${Ht}">${r.value}</span>`).join("") : "", a = `transform:rotate(${(o = e.angle) != null ? o : 0}deg)`;
|
|
1218
1224
|
return e.title ? `
|
|
1219
|
-
<div class="${
|
|
1220
|
-
<div class="${
|
|
1221
|
-
<img src="${
|
|
1225
|
+
<div class="${Bt}">
|
|
1226
|
+
<div class="${Qt}">${i}</div>
|
|
1227
|
+
<img src="${K}" class="${q}" style="${a}">
|
|
1222
1228
|
</div>
|
|
1223
|
-
` : `<img src="${
|
|
1229
|
+
` : `<img src="${K}" class="${q}" style="${a}">`;
|
|
1224
1230
|
});
|
|
1225
|
-
return () => f(
|
|
1231
|
+
return () => f(E, {
|
|
1226
1232
|
attrs: {
|
|
1227
1233
|
position: e.position,
|
|
1228
1234
|
content: n.value,
|
|
1229
1235
|
anchor: "bottom-center"
|
|
1230
1236
|
}
|
|
1231
1237
|
});
|
|
1232
|
-
}),
|
|
1233
|
-
const n =
|
|
1238
|
+
}), Ji = p(function(e) {
|
|
1239
|
+
const n = y(() => {
|
|
1234
1240
|
var o;
|
|
1235
|
-
const i = e.title ?
|
|
1236
|
-
return e.title ?
|
|
1237
|
-
class:
|
|
1241
|
+
const i = e.title ? ae(e.title).map((r) => r.type === "normal" ? r.value : `<span class="${Ht}">${r.value}</span>`).join("") : "", a = `transform:rotate(${(o = e.angle) != null ? o : 0}deg)`;
|
|
1242
|
+
return e.title ? w("div", {
|
|
1243
|
+
class: Bt
|
|
1238
1244
|
}, `
|
|
1239
|
-
<div class="${
|
|
1240
|
-
<img src="${
|
|
1241
|
-
`) :
|
|
1242
|
-
class:
|
|
1243
|
-
src:
|
|
1245
|
+
<div class="${Qt}">${i}</div>
|
|
1246
|
+
<img src="${K}" class="${q}" style="${a}">
|
|
1247
|
+
`) : w("img", {
|
|
1248
|
+
class: q,
|
|
1249
|
+
src: K,
|
|
1244
1250
|
style: a
|
|
1245
1251
|
});
|
|
1246
1252
|
});
|
|
1247
|
-
return () => f(
|
|
1253
|
+
return () => f(T, {
|
|
1248
1254
|
attrs: {
|
|
1249
|
-
position:
|
|
1255
|
+
position: C(e.position),
|
|
1250
1256
|
content: n.value
|
|
1251
1257
|
}
|
|
1252
1258
|
});
|
|
1253
|
-
}),
|
|
1254
|
-
const n =
|
|
1255
|
-
return () =>
|
|
1259
|
+
}), Sa = p(function(e) {
|
|
1260
|
+
const n = S();
|
|
1261
|
+
return () => z(n.supplier === "gmap" ? Ji : Vi, {
|
|
1256
1262
|
attrs: e
|
|
1257
1263
|
});
|
|
1258
|
-
}),
|
|
1264
|
+
}), Xi = p(function(e) {
|
|
1259
1265
|
return () => {
|
|
1260
1266
|
const i = 2 * (window.innerWidth * 0.01);
|
|
1261
|
-
return f(
|
|
1267
|
+
return f(Q, {
|
|
1262
1268
|
attrs: {
|
|
1263
1269
|
path: e.path,
|
|
1264
1270
|
strokeWeight: i,
|
|
@@ -1271,11 +1277,11 @@ const Ui = j(function(e) {
|
|
|
1271
1277
|
}
|
|
1272
1278
|
});
|
|
1273
1279
|
};
|
|
1274
|
-
}),
|
|
1275
|
-
const n =
|
|
1280
|
+
}), $i = p(function(e) {
|
|
1281
|
+
const n = y(() => e.path.map(C));
|
|
1276
1282
|
return () => {
|
|
1277
1283
|
const a = 2 * (window.innerWidth * 0.01), o = a / 4;
|
|
1278
|
-
return f(
|
|
1284
|
+
return f(X, {
|
|
1279
1285
|
attrs: {
|
|
1280
1286
|
path: n.value,
|
|
1281
1287
|
strokeWeight: a,
|
|
@@ -1301,65 +1307,65 @@ const Ui = j(function(e) {
|
|
|
1301
1307
|
}
|
|
1302
1308
|
});
|
|
1303
1309
|
};
|
|
1304
|
-
}),
|
|
1305
|
-
const n =
|
|
1306
|
-
return () =>
|
|
1310
|
+
}), xa = p(function(e) {
|
|
1311
|
+
const n = S();
|
|
1312
|
+
return () => z(n.supplier === "gmap" ? $i : Xi, {
|
|
1307
1313
|
attrs: e
|
|
1308
1314
|
});
|
|
1309
|
-
}),
|
|
1310
|
-
var
|
|
1311
|
-
const
|
|
1312
|
-
const n =
|
|
1313
|
-
return () => f("div", [f(
|
|
1315
|
+
}), ee = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";
|
|
1316
|
+
var Vt = "rrvp0y3", te = "rrvp0y2";
|
|
1317
|
+
const Fi = p(function(e) {
|
|
1318
|
+
const n = y(() => `<img src="${ee}" class="${te}">`), i = y(() => `<img src="${ee}" class="${te} ${Vt}">`);
|
|
1319
|
+
return () => f("div", [f(E, {
|
|
1314
1320
|
attrs: {
|
|
1315
1321
|
position: e.position,
|
|
1316
1322
|
anchor: "bottom-center",
|
|
1317
1323
|
content: n.value
|
|
1318
1324
|
}
|
|
1319
|
-
}), f(
|
|
1325
|
+
}), f(E, {
|
|
1320
1326
|
attrs: {
|
|
1321
1327
|
position: e.position,
|
|
1322
1328
|
anchor: "bottom-center",
|
|
1323
1329
|
content: i.value
|
|
1324
1330
|
}
|
|
1325
1331
|
})]);
|
|
1326
|
-
}),
|
|
1327
|
-
const n =
|
|
1328
|
-
class:
|
|
1329
|
-
src:
|
|
1330
|
-
})), i =
|
|
1331
|
-
class: `${
|
|
1332
|
-
src:
|
|
1332
|
+
}), _i = p(function(e) {
|
|
1333
|
+
const n = y(() => w("img", {
|
|
1334
|
+
class: te,
|
|
1335
|
+
src: ee
|
|
1336
|
+
})), i = y(() => w("img", {
|
|
1337
|
+
class: `${te} ${Vt}`,
|
|
1338
|
+
src: ee
|
|
1333
1339
|
}));
|
|
1334
1340
|
return () => {
|
|
1335
|
-
const a =
|
|
1336
|
-
return f("div", [f(
|
|
1341
|
+
const a = C(e.position);
|
|
1342
|
+
return f("div", [f(T, {
|
|
1337
1343
|
attrs: {
|
|
1338
1344
|
position: a,
|
|
1339
1345
|
content: n.value
|
|
1340
1346
|
}
|
|
1341
|
-
}), f(
|
|
1347
|
+
}), f(T, {
|
|
1342
1348
|
attrs: {
|
|
1343
1349
|
position: a,
|
|
1344
1350
|
content: i.value
|
|
1345
1351
|
}
|
|
1346
1352
|
})]);
|
|
1347
1353
|
};
|
|
1348
|
-
}),
|
|
1349
|
-
const n =
|
|
1350
|
-
return () =>
|
|
1354
|
+
}), Ca = p(function(e) {
|
|
1355
|
+
const n = S();
|
|
1356
|
+
return () => z(n.supplier === "gmap" ? _i : Fi, {
|
|
1351
1357
|
attrs: e
|
|
1352
1358
|
});
|
|
1353
1359
|
});
|
|
1354
|
-
var
|
|
1355
|
-
const
|
|
1360
|
+
var Ki = "_1d8ur7t0";
|
|
1361
|
+
const qi = p(function(e, { slots: n, emit: i }) {
|
|
1356
1362
|
const {
|
|
1357
1363
|
onDragStart: a,
|
|
1358
1364
|
onDragEnd: o,
|
|
1359
1365
|
mapRef: r,
|
|
1360
1366
|
vectorMapForeign: c = "style_zh_cn",
|
|
1361
|
-
...
|
|
1362
|
-
} = e, l =
|
|
1367
|
+
...u
|
|
1368
|
+
} = e, l = y(() => ({
|
|
1363
1369
|
dragEnable: !!e.dragEnable,
|
|
1364
1370
|
zoomEnable: !!e.zoomEnable,
|
|
1365
1371
|
jogEnable: !!e.jogEnable,
|
|
@@ -1367,23 +1373,23 @@ const Xi = j(function(e, { slots: n, emit: i }) {
|
|
|
1367
1373
|
rotateEnable: !!e.rotateEnable,
|
|
1368
1374
|
animateEnable: !!e.animateEnable,
|
|
1369
1375
|
keyboardEnable: !!e.keyboardEnable
|
|
1370
|
-
})), I =
|
|
1371
|
-
return
|
|
1372
|
-
if (
|
|
1376
|
+
})), I = x(), s = x();
|
|
1377
|
+
return Ci(s), R(() => {
|
|
1378
|
+
if (s.value || !I.value)
|
|
1373
1379
|
return;
|
|
1374
1380
|
const M = new AMap.Map(I.value, {
|
|
1375
|
-
...
|
|
1381
|
+
...u,
|
|
1376
1382
|
vectorMapForeign: c,
|
|
1377
1383
|
mapStyle: "amap://styles/95498a904992a4c0b866a3e4d7729682"
|
|
1378
1384
|
});
|
|
1379
|
-
|
|
1380
|
-
}),
|
|
1385
|
+
s.value = M, r == null || r(M);
|
|
1386
|
+
}), J(
|
|
1381
1387
|
() => l.value,
|
|
1382
1388
|
(M) => {
|
|
1383
|
-
var
|
|
1384
|
-
(
|
|
1389
|
+
var d;
|
|
1390
|
+
(d = s.value) == null || d.setStatus(M);
|
|
1385
1391
|
}
|
|
1386
|
-
),
|
|
1392
|
+
), pe(s, e, [
|
|
1387
1393
|
{ name: "center", defaultValue: [0, 0] },
|
|
1388
1394
|
{ name: "zooms", defaultValue: [0, 0] },
|
|
1389
1395
|
{ name: "zoom", defaultValue: 0 },
|
|
@@ -1396,157 +1402,157 @@ const Xi = j(function(e, { slots: n, emit: i }) {
|
|
|
1396
1402
|
{ name: "pitch", defaultValue: 0 },
|
|
1397
1403
|
{ name: "mask", defaultValue: [] },
|
|
1398
1404
|
{ name: "labelRejectMask", defaultValue: !1 }
|
|
1399
|
-
]),
|
|
1405
|
+
]), Ie(s, e, i, ["onDragStart", "onDragEnd"]), () => {
|
|
1400
1406
|
var M;
|
|
1401
|
-
return f("div", { ref: I, class:
|
|
1407
|
+
return f("div", { ref: I, class: Ki }, (M = n.default) == null ? void 0 : M.call(n));
|
|
1402
1408
|
};
|
|
1403
1409
|
});
|
|
1404
|
-
var
|
|
1410
|
+
var ge = {}, ea = {
|
|
1405
1411
|
get exports() {
|
|
1406
|
-
return
|
|
1412
|
+
return ge;
|
|
1407
1413
|
},
|
|
1408
1414
|
set exports(t) {
|
|
1409
|
-
|
|
1415
|
+
ge = t;
|
|
1410
1416
|
}
|
|
1411
1417
|
};
|
|
1412
1418
|
(function(t, e) {
|
|
1413
1419
|
(function(n, i) {
|
|
1414
1420
|
t.exports = i();
|
|
1415
|
-
})(
|
|
1416
|
-
function n(
|
|
1421
|
+
})(_t, function() {
|
|
1422
|
+
function n(s) {
|
|
1417
1423
|
var M = [];
|
|
1418
|
-
return
|
|
1424
|
+
return s.AMapUI && M.push(i(s.AMapUI)), s.Loca && M.push(a(s.Loca)), Promise.all(M);
|
|
1419
1425
|
}
|
|
1420
|
-
function i(
|
|
1421
|
-
return new Promise(function(M,
|
|
1422
|
-
var
|
|
1423
|
-
if (
|
|
1424
|
-
for (var m = 0; m <
|
|
1425
|
-
r.AMapUI.plugins.indexOf(
|
|
1426
|
+
function i(s) {
|
|
1427
|
+
return new Promise(function(M, d) {
|
|
1428
|
+
var g = [];
|
|
1429
|
+
if (s.plugins)
|
|
1430
|
+
for (var m = 0; m < s.plugins.length; m += 1)
|
|
1431
|
+
r.AMapUI.plugins.indexOf(s.plugins[m]) == -1 && g.push(s.plugins[m]);
|
|
1426
1432
|
if (c.AMapUI === o.failed)
|
|
1427
|
-
|
|
1433
|
+
d("前次请求 AMapUI 失败");
|
|
1428
1434
|
else if (c.AMapUI === o.notload) {
|
|
1429
|
-
c.AMapUI = o.loading, r.AMapUI.version =
|
|
1430
|
-
var
|
|
1431
|
-
|
|
1432
|
-
c.AMapUI = o.failed,
|
|
1433
|
-
},
|
|
1434
|
-
if (c.AMapUI = o.loaded,
|
|
1435
|
-
window.AMapUI.loadUI(
|
|
1436
|
-
for (var
|
|
1437
|
-
var
|
|
1438
|
-
window.AMapUI[
|
|
1435
|
+
c.AMapUI = o.loading, r.AMapUI.version = s.version || r.AMapUI.version, m = r.AMapUI.version;
|
|
1436
|
+
var v = document.body || document.head, L = document.createElement("script");
|
|
1437
|
+
L.type = "text/javascript", L.src = "https://webapi.amap.com/ui/" + m + "/main.js", L.onerror = function(j) {
|
|
1438
|
+
c.AMapUI = o.failed, d("请求 AMapUI 失败");
|
|
1439
|
+
}, L.onload = function() {
|
|
1440
|
+
if (c.AMapUI = o.loaded, g.length)
|
|
1441
|
+
window.AMapUI.loadUI(g, function() {
|
|
1442
|
+
for (var j = 0, D = g.length; j < D; j++) {
|
|
1443
|
+
var A = g[j].split("/").slice(-1)[0];
|
|
1444
|
+
window.AMapUI[A] = arguments[j];
|
|
1439
1445
|
}
|
|
1440
|
-
for (M();
|
|
1441
|
-
|
|
1446
|
+
for (M(); u.AMapUI.length; )
|
|
1447
|
+
u.AMapUI.splice(0, 1)[0]();
|
|
1442
1448
|
});
|
|
1443
1449
|
else
|
|
1444
|
-
for (M();
|
|
1445
|
-
|
|
1446
|
-
},
|
|
1450
|
+
for (M(); u.AMapUI.length; )
|
|
1451
|
+
u.AMapUI.splice(0, 1)[0]();
|
|
1452
|
+
}, v.appendChild(L);
|
|
1447
1453
|
} else
|
|
1448
|
-
c.AMapUI === o.loaded ?
|
|
1449
|
-
for (var
|
|
1450
|
-
var
|
|
1451
|
-
window.AMapUI[
|
|
1454
|
+
c.AMapUI === o.loaded ? s.version && s.version !== r.AMapUI.version ? d("不允许多个版本 AMapUI 混用") : g.length ? window.AMapUI.loadUI(g, function() {
|
|
1455
|
+
for (var j = 0, D = g.length; j < D; j++) {
|
|
1456
|
+
var A = g[j].split("/").slice(-1)[0];
|
|
1457
|
+
window.AMapUI[A] = arguments[j];
|
|
1452
1458
|
}
|
|
1453
1459
|
M();
|
|
1454
|
-
}) : M() :
|
|
1455
|
-
|
|
1456
|
-
for (var
|
|
1457
|
-
var
|
|
1458
|
-
window.AMapUI[
|
|
1460
|
+
}) : M() : s.version && s.version !== r.AMapUI.version ? d("不允许多个版本 AMapUI 混用") : u.AMapUI.push(function(j) {
|
|
1461
|
+
j ? d(j) : g.length ? window.AMapUI.loadUI(g, function() {
|
|
1462
|
+
for (var D = 0, A = g.length; D < A; D++) {
|
|
1463
|
+
var ue = g[D].split("/").slice(-1)[0];
|
|
1464
|
+
window.AMapUI[ue] = arguments[D];
|
|
1459
1465
|
}
|
|
1460
1466
|
M();
|
|
1461
1467
|
}) : M();
|
|
1462
1468
|
});
|
|
1463
1469
|
});
|
|
1464
1470
|
}
|
|
1465
|
-
function a(
|
|
1466
|
-
return new Promise(function(M,
|
|
1471
|
+
function a(s) {
|
|
1472
|
+
return new Promise(function(M, d) {
|
|
1467
1473
|
if (c.Loca === o.failed)
|
|
1468
|
-
|
|
1474
|
+
d("前次请求 Loca 失败");
|
|
1469
1475
|
else if (c.Loca === o.notload) {
|
|
1470
|
-
c.Loca = o.loading, r.Loca.version =
|
|
1471
|
-
var
|
|
1472
|
-
if (m && !
|
|
1473
|
-
|
|
1476
|
+
c.Loca = o.loading, r.Loca.version = s.version || r.Loca.version;
|
|
1477
|
+
var g = r.Loca.version, m = r.AMap.version.startsWith("2"), v = g.startsWith("2");
|
|
1478
|
+
if (m && !v || !m && v)
|
|
1479
|
+
d("JSAPI 与 Loca 版本不对应!!");
|
|
1474
1480
|
else {
|
|
1475
|
-
m = r.key,
|
|
1476
|
-
var
|
|
1477
|
-
|
|
1478
|
-
c.Loca = o.failed,
|
|
1479
|
-
},
|
|
1480
|
-
for (c.Loca = o.loaded, M();
|
|
1481
|
-
|
|
1482
|
-
},
|
|
1481
|
+
m = r.key, v = document.body || document.head;
|
|
1482
|
+
var L = document.createElement("script");
|
|
1483
|
+
L.type = "text/javascript", L.src = "https://webapi.amap.com/loca?v=" + g + "&key=" + m, L.onerror = function(j) {
|
|
1484
|
+
c.Loca = o.failed, d("请求 AMapUI 失败");
|
|
1485
|
+
}, L.onload = function() {
|
|
1486
|
+
for (c.Loca = o.loaded, M(); u.Loca.length; )
|
|
1487
|
+
u.Loca.splice(0, 1)[0]();
|
|
1488
|
+
}, v.appendChild(L);
|
|
1483
1489
|
}
|
|
1484
1490
|
} else
|
|
1485
|
-
c.Loca === o.loaded ?
|
|
1486
|
-
|
|
1491
|
+
c.Loca === o.loaded ? s.version && s.version !== r.Loca.version ? d("不允许多个版本 Loca 混用") : M() : s.version && s.version !== r.Loca.version ? d("不允许多个版本 Loca 混用") : u.Loca.push(function(j) {
|
|
1492
|
+
j ? d(j) : d();
|
|
1487
1493
|
});
|
|
1488
1494
|
});
|
|
1489
1495
|
}
|
|
1490
1496
|
if (!window)
|
|
1491
1497
|
throw Error("AMap JSAPI can only be used in Browser.");
|
|
1492
1498
|
var o;
|
|
1493
|
-
(function(
|
|
1494
|
-
|
|
1499
|
+
(function(s) {
|
|
1500
|
+
s.notload = "notload", s.loading = "loading", s.loaded = "loaded", s.failed = "failed";
|
|
1495
1501
|
})(o || (o = {}));
|
|
1496
|
-
var r = { key: "", AMap: { version: "1.4.15", plugins: [] }, AMapUI: { version: "1.1", plugins: [] }, Loca: { version: "1.3.2" } }, c = { AMap: o.notload, AMapUI: o.notload, Loca: o.notload },
|
|
1497
|
-
typeof
|
|
1502
|
+
var r = { key: "", AMap: { version: "1.4.15", plugins: [] }, AMapUI: { version: "1.1", plugins: [] }, Loca: { version: "1.3.2" } }, c = { AMap: o.notload, AMapUI: o.notload, Loca: o.notload }, u = { AMap: [], AMapUI: [], Loca: [] }, l = [], I = function(s) {
|
|
1503
|
+
typeof s == "function" && (c.AMap === o.loaded ? s(window.AMap) : l.push(s));
|
|
1498
1504
|
};
|
|
1499
|
-
return { load: function(
|
|
1500
|
-
return new Promise(function(M,
|
|
1505
|
+
return { load: function(s) {
|
|
1506
|
+
return new Promise(function(M, d) {
|
|
1501
1507
|
if (c.AMap == o.failed)
|
|
1502
|
-
|
|
1508
|
+
d("");
|
|
1503
1509
|
else if (c.AMap == o.notload) {
|
|
1504
|
-
var
|
|
1505
|
-
|
|
1506
|
-
if (delete window.___onAPILoaded,
|
|
1507
|
-
c.AMap = o.failed,
|
|
1510
|
+
var g = s.key, m = s.version, v = s.plugins;
|
|
1511
|
+
g ? (window.AMap && location.host !== "lbs.amap.com" && d("禁止多种API加载方式混用"), r.key = g, r.AMap.version = m || r.AMap.version, r.AMap.plugins = v || r.AMap.plugins, c.AMap = o.loading, m = document.body || document.head, window.___onAPILoaded = function(j) {
|
|
1512
|
+
if (delete window.___onAPILoaded, j)
|
|
1513
|
+
c.AMap = o.failed, d(j);
|
|
1508
1514
|
else
|
|
1509
|
-
for (c.AMap = o.loaded, n(
|
|
1515
|
+
for (c.AMap = o.loaded, n(s).then(function() {
|
|
1510
1516
|
M(window.AMap);
|
|
1511
|
-
}).catch(
|
|
1517
|
+
}).catch(d); l.length; )
|
|
1512
1518
|
l.splice(0, 1)[0]();
|
|
1513
|
-
},
|
|
1514
|
-
c.AMap = o.failed,
|
|
1515
|
-
}, m.appendChild(
|
|
1519
|
+
}, v = document.createElement("script"), v.type = "text/javascript", v.src = "https://webapi.amap.com/maps?callback=___onAPILoaded&v=" + r.AMap.version + "&key=" + g + "&plugin=" + r.AMap.plugins.join(","), v.onerror = function(j) {
|
|
1520
|
+
c.AMap = o.failed, d(j);
|
|
1521
|
+
}, m.appendChild(v)) : d("请填写key");
|
|
1516
1522
|
} else if (c.AMap == o.loaded)
|
|
1517
|
-
if (
|
|
1518
|
-
|
|
1519
|
-
else if (
|
|
1520
|
-
|
|
1523
|
+
if (s.key && s.key !== r.key)
|
|
1524
|
+
d("多个不一致的 key");
|
|
1525
|
+
else if (s.version && s.version !== r.AMap.version)
|
|
1526
|
+
d("不允许多个版本 JSAPI 混用");
|
|
1521
1527
|
else {
|
|
1522
|
-
if (
|
|
1523
|
-
for (m = 0; m <
|
|
1524
|
-
r.AMap.plugins.indexOf(
|
|
1525
|
-
|
|
1526
|
-
n(
|
|
1528
|
+
if (g = [], s.plugins)
|
|
1529
|
+
for (m = 0; m < s.plugins.length; m += 1)
|
|
1530
|
+
r.AMap.plugins.indexOf(s.plugins[m]) == -1 && g.push(s.plugins[m]);
|
|
1531
|
+
g.length ? window.AMap.plugin(g, function() {
|
|
1532
|
+
n(s).then(function() {
|
|
1527
1533
|
M(window.AMap);
|
|
1528
|
-
}).catch(
|
|
1529
|
-
}) : n(
|
|
1534
|
+
}).catch(d);
|
|
1535
|
+
}) : n(s).then(function() {
|
|
1530
1536
|
M(window.AMap);
|
|
1531
|
-
}).catch(
|
|
1537
|
+
}).catch(d);
|
|
1532
1538
|
}
|
|
1533
|
-
else if (
|
|
1534
|
-
|
|
1535
|
-
else if (
|
|
1536
|
-
|
|
1539
|
+
else if (s.key && s.key !== r.key)
|
|
1540
|
+
d("多个不一致的 key");
|
|
1541
|
+
else if (s.version && s.version !== r.AMap.version)
|
|
1542
|
+
d("不允许多个版本 JSAPI 混用");
|
|
1537
1543
|
else {
|
|
1538
|
-
var
|
|
1539
|
-
if (
|
|
1540
|
-
for (m = 0; m <
|
|
1541
|
-
r.AMap.plugins.indexOf(
|
|
1544
|
+
var L = [];
|
|
1545
|
+
if (s.plugins)
|
|
1546
|
+
for (m = 0; m < s.plugins.length; m += 1)
|
|
1547
|
+
r.AMap.plugins.indexOf(s.plugins[m]) == -1 && L.push(s.plugins[m]);
|
|
1542
1548
|
I(function() {
|
|
1543
|
-
|
|
1544
|
-
n(
|
|
1549
|
+
L.length ? window.AMap.plugin(L, function() {
|
|
1550
|
+
n(s).then(function() {
|
|
1545
1551
|
M(window.AMap);
|
|
1546
|
-
}).catch(
|
|
1547
|
-
}) : n(
|
|
1552
|
+
}).catch(d);
|
|
1553
|
+
}) : n(s).then(function() {
|
|
1548
1554
|
M(window.AMap);
|
|
1549
|
-
}).catch(
|
|
1555
|
+
}).catch(d);
|
|
1550
1556
|
});
|
|
1551
1557
|
}
|
|
1552
1558
|
});
|
|
@@ -1555,11 +1561,11 @@ var Ie = {}, $i = {
|
|
|
1555
1561
|
AMap: o.notload,
|
|
1556
1562
|
AMapUI: o.notload,
|
|
1557
1563
|
Loca: o.notload
|
|
1558
|
-
},
|
|
1564
|
+
}, u = { AMap: [], AMapUI: [], Loca: [] };
|
|
1559
1565
|
} };
|
|
1560
1566
|
});
|
|
1561
|
-
})(
|
|
1562
|
-
var
|
|
1567
|
+
})(ea);
|
|
1568
|
+
var ta = function t(e, n) {
|
|
1563
1569
|
if (e === n)
|
|
1564
1570
|
return !0;
|
|
1565
1571
|
if (e && n && typeof e == "object" && typeof n == "object") {
|
|
@@ -1594,11 +1600,11 @@ var Fi = function t(e, n) {
|
|
|
1594
1600
|
}
|
|
1595
1601
|
return e !== e && n !== n;
|
|
1596
1602
|
};
|
|
1597
|
-
const
|
|
1598
|
-
var
|
|
1603
|
+
const Ue = "__googleMapsScriptId";
|
|
1604
|
+
var W;
|
|
1599
1605
|
(function(t) {
|
|
1600
1606
|
t[t.INITIALIZED = 0] = "INITIALIZED", t[t.LOADING = 1] = "LOADING", t[t.SUCCESS = 2] = "SUCCESS", t[t.FAILURE = 3] = "FAILURE";
|
|
1601
|
-
})(
|
|
1607
|
+
})(W || (W = {}));
|
|
1602
1608
|
class G {
|
|
1603
1609
|
/**
|
|
1604
1610
|
* Creates an instance of Loader using [[LoaderOptions]]. No defaults are set
|
|
@@ -1609,9 +1615,9 @@ class G {
|
|
|
1609
1615
|
* const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
|
|
1610
1616
|
* ```
|
|
1611
1617
|
*/
|
|
1612
|
-
constructor({ apiKey: e, authReferrerPolicy: n, channel: i, client: a, id: o =
|
|
1613
|
-
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 ||
|
|
1614
|
-
if (!
|
|
1618
|
+
constructor({ apiKey: e, authReferrerPolicy: n, channel: i, client: a, id: o = Ue, language: r, libraries: c = [], mapIds: u, nonce: l, region: I, retries: s = 3, url: M = "https://maps.googleapis.com/maps/api/js", version: d }) {
|
|
1619
|
+
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 || Ue, this.language = r, this.libraries = c, this.mapIds = u, this.nonce = l, this.region = I, this.retries = s, this.url = M, this.version = d, G.instance) {
|
|
1620
|
+
if (!ta(this.options, G.instance.options))
|
|
1615
1621
|
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(G.instance.options)}`);
|
|
1616
1622
|
return G.instance;
|
|
1617
1623
|
}
|
|
@@ -1634,7 +1640,7 @@ class G {
|
|
|
1634
1640
|
};
|
|
1635
1641
|
}
|
|
1636
1642
|
get status() {
|
|
1637
|
-
return this.errors.length ?
|
|
1643
|
+
return this.errors.length ? W.FAILURE : this.done ? W.SUCCESS : this.loading ? W.LOADING : W.INITIALIZED;
|
|
1638
1644
|
}
|
|
1639
1645
|
get failed() {
|
|
1640
1646
|
return this.done && !this.loading && this.errors.length >= this.retries + 1;
|
|
@@ -1725,192 +1731,192 @@ class G {
|
|
|
1725
1731
|
}
|
|
1726
1732
|
}
|
|
1727
1733
|
}
|
|
1728
|
-
var
|
|
1729
|
-
const
|
|
1730
|
-
const a =
|
|
1734
|
+
var Z = /* @__PURE__ */ ((t) => (t.LOADING = "LOADING", t.FAILURE = "FAILURE", t.SUCCESS = "SUCCESS", t))(Z || {});
|
|
1735
|
+
const na = p(function(e, { slots: n, emit: i }) {
|
|
1736
|
+
const a = x(
|
|
1731
1737
|
"LOADING"
|
|
1732
1738
|
/* LOADING */
|
|
1733
|
-
), o =
|
|
1734
|
-
const { onChange: r, fallback: c, loading:
|
|
1739
|
+
), o = y(() => {
|
|
1740
|
+
const { onChange: r, fallback: c, loading: u, ...l } = e;
|
|
1735
1741
|
return l;
|
|
1736
1742
|
});
|
|
1737
|
-
return
|
|
1743
|
+
return oe(
|
|
1738
1744
|
() => o.value,
|
|
1739
1745
|
(r) => {
|
|
1740
|
-
const c = new G(r),
|
|
1746
|
+
const c = new G(r), u = (l) => {
|
|
1741
1747
|
i("change", l), a.value = l;
|
|
1742
1748
|
};
|
|
1743
|
-
|
|
1749
|
+
u(
|
|
1744
1750
|
"LOADING"
|
|
1745
1751
|
/* LOADING */
|
|
1746
1752
|
), c.load().then(
|
|
1747
|
-
() =>
|
|
1753
|
+
() => u(
|
|
1748
1754
|
"SUCCESS"
|
|
1749
1755
|
/* SUCCESS */
|
|
1750
1756
|
),
|
|
1751
|
-
() =>
|
|
1757
|
+
() => u(
|
|
1752
1758
|
"FAILURE"
|
|
1753
1759
|
/* FAILURE */
|
|
1754
1760
|
)
|
|
1755
1761
|
);
|
|
1756
1762
|
}
|
|
1757
1763
|
), () => {
|
|
1758
|
-
var r, c,
|
|
1764
|
+
var r, c, u;
|
|
1759
1765
|
switch (a.value) {
|
|
1760
1766
|
case "SUCCESS":
|
|
1761
1767
|
return (r = n.default) == null ? void 0 : r.call(n);
|
|
1762
1768
|
case "LOADING":
|
|
1763
1769
|
return (c = n.loading) == null ? void 0 : c.call(n);
|
|
1764
1770
|
case "FAILURE":
|
|
1765
|
-
return (
|
|
1771
|
+
return (u = n.fallback) == null ? void 0 : u.call(n);
|
|
1766
1772
|
default:
|
|
1767
1773
|
throw new Error("MyError: unknown loader status");
|
|
1768
1774
|
}
|
|
1769
1775
|
};
|
|
1770
|
-
}),
|
|
1771
|
-
const a =
|
|
1772
|
-
const { onChange: r, loading: c, fallback:
|
|
1773
|
-
return { ...
|
|
1776
|
+
}), ia = p(function(e, { slots: n, emit: i }) {
|
|
1777
|
+
const a = x(Z.LOADING), o = y(() => {
|
|
1778
|
+
const { onChange: r, loading: c, fallback: u, apiKey: l, apiSecret: I, apiServiceHost: s, version: M, ...d } = e;
|
|
1779
|
+
return { ...d, key: l, version: M != null ? M : "2.0.5.16" };
|
|
1774
1780
|
});
|
|
1775
|
-
return
|
|
1781
|
+
return oe(
|
|
1776
1782
|
() => o.value,
|
|
1777
1783
|
(r) => {
|
|
1778
|
-
const c = (
|
|
1779
|
-
i("change",
|
|
1784
|
+
const c = (u) => {
|
|
1785
|
+
i("change", u), a.value = u;
|
|
1780
1786
|
};
|
|
1781
|
-
c(
|
|
1787
|
+
c(Z.LOADING), window._AMapSecurityConfig = e.apiServiceHost ? {
|
|
1782
1788
|
serviceHost: e.apiServiceHost
|
|
1783
|
-
} : { securityJsCode: e.apiSecret },
|
|
1784
|
-
() => c(
|
|
1785
|
-
() => c(
|
|
1789
|
+
} : { securityJsCode: e.apiSecret }, ge.load(r).then(
|
|
1790
|
+
() => c(Z.SUCCESS),
|
|
1791
|
+
() => c(Z.FAILURE)
|
|
1786
1792
|
);
|
|
1787
1793
|
}
|
|
1788
1794
|
), () => {
|
|
1789
|
-
var r, c,
|
|
1795
|
+
var r, c, u;
|
|
1790
1796
|
switch (a.value) {
|
|
1791
|
-
case
|
|
1797
|
+
case Z.SUCCESS:
|
|
1792
1798
|
return (r = n.default) == null ? void 0 : r.call(n);
|
|
1793
|
-
case
|
|
1799
|
+
case Z.LOADING:
|
|
1794
1800
|
return (c = n.loading) == null ? void 0 : c.call(n);
|
|
1795
|
-
case
|
|
1796
|
-
return (
|
|
1801
|
+
case Z.FAILURE:
|
|
1802
|
+
return (u = n.fallback) == null ? void 0 : u.call(n);
|
|
1797
1803
|
default:
|
|
1798
1804
|
throw new Error("MyError: unknown loader status");
|
|
1799
1805
|
}
|
|
1800
1806
|
};
|
|
1801
|
-
}),
|
|
1802
|
-
const a = e.mapRef, o =
|
|
1803
|
-
const { mapRef: I, onDragStart:
|
|
1804
|
-
return
|
|
1805
|
-
}), r = o.value, c =
|
|
1806
|
-
return
|
|
1807
|
-
if (
|
|
1807
|
+
}), aa = p(function(e, { slots: n, emit: i }) {
|
|
1808
|
+
const a = e.mapRef, o = y(() => {
|
|
1809
|
+
const { mapRef: I, onDragStart: s, onDragEnd: M, ...d } = e;
|
|
1810
|
+
return d;
|
|
1811
|
+
}), r = o.value, c = x(), u = x(), l = (I) => i(I, { target: u.value });
|
|
1812
|
+
return hi(u), R(() => {
|
|
1813
|
+
if (u.value || !c.value)
|
|
1808
1814
|
return;
|
|
1809
1815
|
const I = new google.maps.Map(c.value, { ...r });
|
|
1810
|
-
|
|
1811
|
-
}),
|
|
1816
|
+
u.value = I, a == null || a(I);
|
|
1817
|
+
}), J(
|
|
1812
1818
|
() => o.value,
|
|
1813
1819
|
(I) => {
|
|
1814
|
-
var
|
|
1815
|
-
(
|
|
1820
|
+
var s;
|
|
1821
|
+
(s = u.value) == null || s.setOptions({ ...I });
|
|
1816
1822
|
}
|
|
1817
|
-
),
|
|
1823
|
+
), Me(u, e, l, ["onDragStart", "onDragEnd"]), () => {
|
|
1818
1824
|
var I;
|
|
1819
1825
|
return f("div", { ref: c }, (I = n.default) == null ? void 0 : I.call(n));
|
|
1820
1826
|
};
|
|
1821
|
-
}),
|
|
1827
|
+
}), ha = ct(function(e, {
|
|
1822
1828
|
slots: n
|
|
1823
1829
|
}) {
|
|
1824
|
-
return
|
|
1830
|
+
return wi(e), () => {
|
|
1825
1831
|
var i;
|
|
1826
1832
|
return f("div", [(i = n.default) == null ? void 0 : i.call(n)]);
|
|
1827
1833
|
};
|
|
1828
|
-
}).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier"]),
|
|
1834
|
+
}).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier"]), wa = ct(function(e, {
|
|
1829
1835
|
slots: n,
|
|
1830
1836
|
emit: i
|
|
1831
1837
|
}) {
|
|
1832
|
-
const a =
|
|
1838
|
+
const a = S(), o = ({
|
|
1833
1839
|
target: c
|
|
1834
1840
|
}) => {
|
|
1835
1841
|
const {
|
|
1836
|
-
lng:
|
|
1842
|
+
lng: u,
|
|
1837
1843
|
lat: l
|
|
1838
1844
|
} = c.getCenter();
|
|
1839
|
-
i("dragEnd", [
|
|
1845
|
+
i("dragEnd", [u(), l()]);
|
|
1840
1846
|
}, r = ({
|
|
1841
1847
|
target: c
|
|
1842
1848
|
}) => {
|
|
1843
1849
|
const {
|
|
1844
|
-
lng:
|
|
1850
|
+
lng: u,
|
|
1845
1851
|
lat: l
|
|
1846
1852
|
} = c.getCenter();
|
|
1847
|
-
i("dragEnd", [
|
|
1853
|
+
i("dragEnd", [u, l]);
|
|
1848
1854
|
};
|
|
1849
1855
|
return () => {
|
|
1850
|
-
var
|
|
1856
|
+
var A;
|
|
1851
1857
|
const {
|
|
1852
1858
|
gmapKey: c,
|
|
1853
|
-
amapKey:
|
|
1859
|
+
amapKey: u,
|
|
1854
1860
|
amapSecret: l,
|
|
1855
1861
|
amapServiceHost: I,
|
|
1856
|
-
supplier:
|
|
1862
|
+
supplier: s,
|
|
1857
1863
|
gmapId: M
|
|
1858
1864
|
} = a, {
|
|
1859
|
-
mapRef:
|
|
1860
|
-
center:
|
|
1865
|
+
mapRef: d,
|
|
1866
|
+
center: g,
|
|
1861
1867
|
zoom: m,
|
|
1862
|
-
language:
|
|
1868
|
+
language: v = "zh"
|
|
1863
1869
|
} = e, {
|
|
1864
|
-
fallback:
|
|
1865
|
-
loading:
|
|
1866
|
-
} = n,
|
|
1867
|
-
switch (
|
|
1870
|
+
fallback: L,
|
|
1871
|
+
loading: j
|
|
1872
|
+
} = n, D = (A = n.default) == null ? void 0 : A.call(n);
|
|
1873
|
+
switch (s) {
|
|
1868
1874
|
case "gmap":
|
|
1869
|
-
return f(
|
|
1875
|
+
return f(na, {
|
|
1870
1876
|
attrs: {
|
|
1871
1877
|
apiKey: c,
|
|
1872
|
-
language:
|
|
1878
|
+
language: v,
|
|
1873
1879
|
version: "beta",
|
|
1874
1880
|
libraries: ["marker", "places", "geometry"],
|
|
1875
|
-
loading:
|
|
1876
|
-
fallback:
|
|
1881
|
+
loading: j,
|
|
1882
|
+
fallback: L
|
|
1877
1883
|
}
|
|
1878
|
-
}, [f(
|
|
1884
|
+
}, [f(aa, {
|
|
1879
1885
|
attrs: {
|
|
1880
|
-
mapRef:
|
|
1886
|
+
mapRef: d,
|
|
1881
1887
|
mapId: M,
|
|
1882
|
-
center:
|
|
1888
|
+
center: g ? C(g) : void 0,
|
|
1883
1889
|
zoom: m
|
|
1884
1890
|
},
|
|
1885
1891
|
on: {
|
|
1886
1892
|
dragEnd: o
|
|
1887
1893
|
}
|
|
1888
|
-
}, [
|
|
1894
|
+
}, [D])]);
|
|
1889
1895
|
default:
|
|
1890
|
-
return f(
|
|
1896
|
+
return f(ia, {
|
|
1891
1897
|
attrs: {
|
|
1892
|
-
apiKey:
|
|
1898
|
+
apiKey: u,
|
|
1893
1899
|
apiSecret: l,
|
|
1894
1900
|
apiServiceHost: I,
|
|
1895
1901
|
plugins: ["AMap.Geolocation", "AMap.Geocoder", "AMap.PlaceSearch", "AMap.Driving", "AMap.Walker"],
|
|
1896
|
-
loading:
|
|
1897
|
-
fallback:
|
|
1902
|
+
loading: j,
|
|
1903
|
+
fallback: L
|
|
1898
1904
|
}
|
|
1899
|
-
}, [f(
|
|
1905
|
+
}, [f(qi, {
|
|
1900
1906
|
attrs: {
|
|
1901
|
-
mapRef:
|
|
1902
|
-
vectorMapForeign:
|
|
1903
|
-
center:
|
|
1907
|
+
mapRef: d,
|
|
1908
|
+
vectorMapForeign: Ni(v),
|
|
1909
|
+
center: g,
|
|
1904
1910
|
zoom: m
|
|
1905
1911
|
},
|
|
1906
1912
|
on: {
|
|
1907
1913
|
dragEnd: r
|
|
1908
1914
|
}
|
|
1909
|
-
}, [
|
|
1915
|
+
}, [D])]);
|
|
1910
1916
|
}
|
|
1911
1917
|
};
|
|
1912
|
-
}).props(["center", "fallback", "loading", "mapRef", "zoom"]),
|
|
1913
|
-
const {
|
|
1918
|
+
}).props(["center", "fallback", "loading", "mapRef", "zoom"]), oa = (t) => {
|
|
1919
|
+
const { onChange: e, onLoad: n } = t, i = h(!1), a = h(), o = h({
|
|
1914
1920
|
accuracy: 0,
|
|
1915
1921
|
altitude: 0,
|
|
1916
1922
|
altitudeAccuracy: 0,
|
|
@@ -1918,258 +1924,273 @@ const _i = j(function(e, { slots: n, emit: i }) {
|
|
|
1918
1924
|
latitude: 0,
|
|
1919
1925
|
longitude: 0,
|
|
1920
1926
|
speed: 0
|
|
1921
|
-
}), r =
|
|
1922
|
-
return
|
|
1923
|
-
() =>
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
const
|
|
1929
|
-
o.value =
|
|
1927
|
+
}), r = h([o.value.longitude, o.value.latitude]);
|
|
1928
|
+
return b(
|
|
1929
|
+
() => !0,
|
|
1930
|
+
(c, u, l) => {
|
|
1931
|
+
i.value = !0;
|
|
1932
|
+
const I = navigator.geolocation.watchPosition(
|
|
1933
|
+
(s) => {
|
|
1934
|
+
const M = s.coords, d = [s.coords.longitude, s.coords.latitude];
|
|
1935
|
+
o.value = M, r.value = d, i.value && (i.value = !1, n == null || n({ position: d, coordinate: M })), e == null || e({ position: d, coordinate: M });
|
|
1930
1936
|
},
|
|
1931
|
-
(
|
|
1932
|
-
i.value = !1, a.value =
|
|
1937
|
+
(s) => {
|
|
1938
|
+
i.value = !1, a.value = s, console.log("errorRef = ", a);
|
|
1933
1939
|
},
|
|
1934
|
-
//
|
|
1935
|
-
{ timeout: 5e3
|
|
1936
|
-
// { timeout: 5000 }
|
|
1940
|
+
// todo 要不要 timeout
|
|
1941
|
+
{ timeout: 5e3, maximumAge: 0, enableHighAccuracy: !0 }
|
|
1937
1942
|
);
|
|
1943
|
+
l(() => navigator.geolocation.clearWatch(I));
|
|
1938
1944
|
},
|
|
1939
|
-
{
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1945
|
+
{ immediate: !0 }
|
|
1946
|
+
), {
|
|
1947
|
+
geoError: a,
|
|
1948
|
+
geoPosition: r,
|
|
1949
|
+
geoCoordinate: o,
|
|
1950
|
+
geoLoading: i
|
|
1951
|
+
};
|
|
1952
|
+
}, ra = (t) => {
|
|
1953
|
+
const { mapRef: e, onChange: n } = t, i = h([0, 0]), a = h(!1), o = () => {
|
|
1947
1954
|
Promise.resolve().then(() => a.value = !0);
|
|
1948
|
-
}, r = (c, { target:
|
|
1949
|
-
var
|
|
1955
|
+
}, r = (c, { target: u }) => {
|
|
1956
|
+
var s;
|
|
1950
1957
|
a.value = !1;
|
|
1951
|
-
const { lng: l, lat: I } =
|
|
1952
|
-
i.value = [l, I], (
|
|
1958
|
+
const { lng: l, lat: I } = u.getCenter();
|
|
1959
|
+
i.value = [l, I], (s = k(n)) == null || s([l, I]);
|
|
1953
1960
|
};
|
|
1954
|
-
return
|
|
1961
|
+
return Ie(e, {}, o, [
|
|
1955
1962
|
"onDragStart"
|
|
1956
|
-
]),
|
|
1963
|
+
]), Ie(e, {}, r, [
|
|
1957
1964
|
"onDragEnd"
|
|
1958
1965
|
]), { centerRef: i, isDragging: a };
|
|
1959
|
-
},
|
|
1960
|
-
const { mapRef: e, onChange: n } = t, i =
|
|
1966
|
+
}, ca = (t) => {
|
|
1967
|
+
const { mapRef: e, onChange: n } = t, i = h([0, 0]), a = h(!1), o = () => {
|
|
1961
1968
|
Promise.resolve().then(() => a.value = !0);
|
|
1962
1969
|
}, r = async () => {
|
|
1963
|
-
var I,
|
|
1970
|
+
var I, s;
|
|
1964
1971
|
a.value = !1;
|
|
1965
|
-
const c = (I = e.value) == null ? void 0 : I.getCenter(),
|
|
1966
|
-
i.value = [
|
|
1972
|
+
const c = (I = e.value) == null ? void 0 : I.getCenter(), u = c == null ? void 0 : c.lng(), l = c == null ? void 0 : c.lat();
|
|
1973
|
+
i.value = [u, l], (s = k(n)) == null || s([u, l]);
|
|
1967
1974
|
};
|
|
1968
|
-
return
|
|
1975
|
+
return Me(e, {}, o, [
|
|
1969
1976
|
"onDragStart"
|
|
1970
|
-
]),
|
|
1977
|
+
]), Me(e, {}, r, [
|
|
1971
1978
|
"onDragEnd"
|
|
1972
1979
|
]), { centerRef: i, isDragging: a };
|
|
1973
|
-
},
|
|
1974
|
-
const { supplier: e } =
|
|
1975
|
-
return e === "gmap" ?
|
|
1976
|
-
},
|
|
1977
|
-
const e =
|
|
1980
|
+
}, sa = (t) => {
|
|
1981
|
+
const { supplier: e } = S();
|
|
1982
|
+
return e === "gmap" ? ca(t) : ra(t);
|
|
1983
|
+
}, ce = (t) => {
|
|
1984
|
+
const e = h(!!t.value);
|
|
1978
1985
|
return b(
|
|
1979
1986
|
() => t.value,
|
|
1980
1987
|
(n) => {
|
|
1981
1988
|
n && (e.value = !0);
|
|
1982
1989
|
}
|
|
1983
1990
|
), { readyRef: e };
|
|
1984
|
-
},
|
|
1985
|
-
const t =
|
|
1991
|
+
}, se = () => {
|
|
1992
|
+
const t = h(0);
|
|
1986
1993
|
return { idx: t, update: () => {
|
|
1987
1994
|
t.value += 1;
|
|
1988
1995
|
} };
|
|
1989
|
-
},
|
|
1990
|
-
const { mapRef: e, pointRef: n, onChange: i } = t, { readyRef: a } =
|
|
1996
|
+
}, Jt = (t) => {
|
|
1997
|
+
const { mapRef: e, pointRef: n, onChange: i } = t, { readyRef: a } = ce(e), { idx: o, update: r } = se(), c = P({
|
|
1998
|
+
lng: n.value[0],
|
|
1999
|
+
lat: n.value[1],
|
|
2000
|
+
name: "",
|
|
2001
|
+
cityName: void 0
|
|
2002
|
+
});
|
|
1991
2003
|
return b(
|
|
1992
2004
|
() => o.value,
|
|
1993
2005
|
() => {
|
|
1994
|
-
debugger;
|
|
1995
2006
|
if (!a.value)
|
|
1996
2007
|
return;
|
|
1997
|
-
const
|
|
1998
|
-
|
|
1999
|
-
var g,
|
|
2000
|
-
switch (
|
|
2008
|
+
const u = new AMap.Geocoder({ lang: st }), [l, I] = n.value;
|
|
2009
|
+
u.getAddress(new AMap.LngLat(l, I), (s, M) => {
|
|
2010
|
+
var d, g, m;
|
|
2011
|
+
switch (s) {
|
|
2001
2012
|
case "complete": {
|
|
2002
|
-
const
|
|
2003
|
-
c.name =
|
|
2013
|
+
const { formattedAddress: v, addressComponent: L } = M.regeocode, j = (d = L.city) != null ? d : L.province;
|
|
2014
|
+
c.name = v, c.lng = l, c.lat = I, c.cityName = j, (g = k(i)) == null || g({ lng: l, lat: I, name: v, cityName: j });
|
|
2004
2015
|
return;
|
|
2005
2016
|
}
|
|
2006
2017
|
case "no_data":
|
|
2007
|
-
c.name = "", (
|
|
2018
|
+
c.name = "", (m = k(i)) == null || m({ lng: l, lat: I, name: "" });
|
|
2008
2019
|
return;
|
|
2009
2020
|
case "error":
|
|
2010
2021
|
throw M;
|
|
2011
2022
|
}
|
|
2012
2023
|
});
|
|
2013
|
-
},
|
|
2014
|
-
{
|
|
2015
|
-
onTrigger(s) {
|
|
2016
|
-
console.log("useAmapPlace onTrigger: ", s.key, s.newValue, s.oldValue);
|
|
2017
|
-
}
|
|
2018
2024
|
}
|
|
2019
2025
|
), { place: c, updatePlace: r };
|
|
2020
|
-
},
|
|
2021
|
-
const { mapRef: e, pointRef: n, onChange: i } = t, { readyRef: a } =
|
|
2026
|
+
}, Xt = (t) => {
|
|
2027
|
+
const { mapRef: e, pointRef: n, onChange: i } = t, { readyRef: a } = ce(e), { idx: o, update: r } = se(), c = P({ lng: n.value[0], lat: n.value[1], name: "" });
|
|
2022
2028
|
return b(
|
|
2023
2029
|
() => o.value,
|
|
2024
2030
|
async () => {
|
|
2025
2031
|
var g;
|
|
2026
2032
|
if (!a.value)
|
|
2027
2033
|
return;
|
|
2028
|
-
const
|
|
2029
|
-
c.name = M, c.lng = l, c.lat = I, (g =
|
|
2034
|
+
const u = new google.maps.Geocoder(), [l, I] = n.value, { results: s } = await u.geocode({ language: st, location: { lng: l, lat: I } }), M = s[0].formatted_address, d = Di(s[0]);
|
|
2035
|
+
c.name = M, c.lng = l, c.lat = I, (g = k(i)) == null || g({ lng: l, lat: I, name: M, cityName: d });
|
|
2030
2036
|
}
|
|
2031
2037
|
), { place: c, updatePlace: r };
|
|
2032
|
-
},
|
|
2033
|
-
const { supplier: e } =
|
|
2034
|
-
return e === "gmap" ?
|
|
2035
|
-
},
|
|
2038
|
+
}, ba = (t) => {
|
|
2039
|
+
const { supplier: e } = S();
|
|
2040
|
+
return e === "gmap" ? Xt(t) : Jt(t);
|
|
2041
|
+
}, ua = (t, e) => {
|
|
2036
2042
|
let n = 1 / 0, i = t;
|
|
2037
2043
|
for (const a of e) {
|
|
2038
|
-
const o = AMap.GeometryUtil.distance(
|
|
2044
|
+
const o = AMap.GeometryUtil.distance(le(t), le(a));
|
|
2039
2045
|
o >= n || (i = a, n = o);
|
|
2040
2046
|
}
|
|
2041
2047
|
return { shortestPlace: i, shortestDistance: n };
|
|
2042
|
-
},
|
|
2048
|
+
}, la = (t, e) => {
|
|
2043
2049
|
let n = 1 / 0, i = t;
|
|
2044
2050
|
for (const a of e) {
|
|
2045
2051
|
const o = google.maps.geometry.spherical.computeDistanceBetween(t, a);
|
|
2046
2052
|
o >= n || (i = a, n = o);
|
|
2047
2053
|
}
|
|
2048
2054
|
return { shortestPlace: i, shortestDistance: n };
|
|
2049
|
-
},
|
|
2050
|
-
const { pointRef: e, mapRef: n, getRecomendPlace: i, getLimit: a, context: o, onChange: r, onChangePlace: c } = t, { idx:
|
|
2055
|
+
}, Ia = (t) => {
|
|
2056
|
+
const { pointRef: e, mapRef: n, getRecomendPlace: i, getLimit: a, context: o, onChange: r, onChangePlace: c } = t, u = h([]), { idx: l, update: I } = se(), { readyRef: s } = ce(n), { place: M, updatePlace: d } = Jt({ pointRef: e, mapRef: n, onChange: c }), g = P({ ...M });
|
|
2051
2057
|
return b(
|
|
2052
|
-
() =>
|
|
2058
|
+
() => l.value,
|
|
2053
2059
|
async () => {
|
|
2054
|
-
var
|
|
2055
|
-
|
|
2056
|
-
if (!I.value)
|
|
2060
|
+
var A;
|
|
2061
|
+
if (!s.value)
|
|
2057
2062
|
return;
|
|
2058
|
-
const
|
|
2059
|
-
console.log("shortestPlace, shortestDistance = ",
|
|
2060
|
-
const
|
|
2061
|
-
Object.assign(g, { ...
|
|
2062
|
-
},
|
|
2063
|
-
{
|
|
2064
|
-
onTrigger(d) {
|
|
2065
|
-
console.log("UseMapRecomendPlaceProps onTrigger: ", d.key, d.newValue, d.oldValue);
|
|
2066
|
-
}
|
|
2063
|
+
const m = await i({ ...M }, o), { shortestPlace: v, shortestDistance: L } = ua(M, m);
|
|
2064
|
+
console.log("shortestPlace, shortestDistance = ", v, L);
|
|
2065
|
+
const j = a(o), D = L > j ? M : v;
|
|
2066
|
+
u.value = m, Object.assign(g, { ...D }), (A = k(r)) == null || A({ ...D });
|
|
2067
2067
|
}
|
|
2068
|
-
), { recomendPlace: g, updateRecomandPlace:
|
|
2069
|
-
},
|
|
2070
|
-
const { pointRef: e, mapRef: n, getRecomendPlace: i, getLimit: a, context: o, onChange: r, onChangePlace: c } = t, { idx:
|
|
2068
|
+
), { recomendPlace: g, placeCandidates: u, updateRecomandPlace: I, updatePlace: d };
|
|
2069
|
+
}, Ma = (t) => {
|
|
2070
|
+
const { pointRef: e, mapRef: n, getRecomendPlace: i, getLimit: a, context: o, onChange: r, onChangePlace: c } = t, u = h([]), { idx: l, update: I } = se(), { readyRef: s } = ce(n), { place: M, updatePlace: d } = Xt({ pointRef: e, mapRef: n, onChange: c }), g = P({ ...M });
|
|
2071
2071
|
return b(
|
|
2072
|
-
() =>
|
|
2072
|
+
() => l.value,
|
|
2073
2073
|
async () => {
|
|
2074
|
-
var
|
|
2075
|
-
if (!
|
|
2074
|
+
var A;
|
|
2075
|
+
if (!s.value)
|
|
2076
2076
|
return;
|
|
2077
|
-
const
|
|
2078
|
-
Object.assign(g, { ...
|
|
2077
|
+
const m = await i({ ...M }, o), { shortestPlace: v, shortestDistance: L } = la(M, m), j = a(o), D = L > j ? M : v;
|
|
2078
|
+
u.value = m, Object.assign(g, { ...D }), (A = k(r)) == null || A({ ...D });
|
|
2079
2079
|
}
|
|
2080
|
-
), { recomendPlace: g, updateRecomandPlace:
|
|
2081
|
-
},
|
|
2082
|
-
const { supplier: e } =
|
|
2083
|
-
return e === "gmap" ?
|
|
2084
|
-
},
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2080
|
+
), { recomendPlace: g, placeCandidates: u, updateRecomandPlace: I, updatePlace: d };
|
|
2081
|
+
}, da = (t) => {
|
|
2082
|
+
const { supplier: e } = S();
|
|
2083
|
+
return e === "gmap" ? Ma(t) : Ia(t);
|
|
2084
|
+
}, za = (t) => {
|
|
2085
|
+
var Le, ve;
|
|
2086
|
+
const {
|
|
2087
|
+
mapRef: e,
|
|
2088
|
+
getRecomendPlace: n,
|
|
2089
|
+
defaultCenterPoint: i,
|
|
2090
|
+
recomendPlaceDragLimit: a,
|
|
2091
|
+
recomendPlaceGeoLimit: o,
|
|
2092
|
+
onLoadGeoLocation: r,
|
|
2093
|
+
onChangeByDrag: c,
|
|
2094
|
+
onChangeGeoLocation: u,
|
|
2095
|
+
onChangePlace: l,
|
|
2096
|
+
onChangeRecomandPlace: I
|
|
2097
|
+
} = t, s = P({
|
|
2098
|
+
lng: (Le = i == null ? void 0 : i[0]) != null ? Le : 0,
|
|
2099
|
+
lat: (ve = i == null ? void 0 : i[1]) != null ? ve : 0,
|
|
2100
|
+
name: "",
|
|
2101
|
+
cityName: void 0
|
|
2102
|
+
}), M = y(() => [s.lng, s.lat]), d = { source: "geo" }, g = (N) => {
|
|
2103
|
+
d.source = "api", s.lng = N[0], s.lat = N[1], A();
|
|
2104
|
+
};
|
|
2105
|
+
i && Promise.resolve().then(() => {
|
|
2106
|
+
d.source = "default", A();
|
|
2107
|
+
});
|
|
2108
|
+
const { geoLoading: m, geoError: v, geoPosition: L, geoCoordinate: j } = oa({
|
|
2109
|
+
mapRef: e,
|
|
2110
|
+
onLoad: (N) => {
|
|
2111
|
+
i || (d.source = "geo", s.lng = N.position[0], s.lat = N.position[1], A()), r == null || r(N);
|
|
2112
|
+
},
|
|
2113
|
+
onChange: u
|
|
2114
|
+
}), { isDragging: D } = sa({
|
|
2115
|
+
mapRef: e,
|
|
2116
|
+
onChange: (N) => {
|
|
2117
|
+
d.source = "drag", s.lng = N[0], s.lat = N[1], A(), c == null || c(N);
|
|
2103
2118
|
}
|
|
2104
|
-
}), { updatePlace:
|
|
2105
|
-
pointRef:
|
|
2106
|
-
context:
|
|
2107
|
-
getRecomendPlace:
|
|
2108
|
-
getLimit: (
|
|
2109
|
-
const
|
|
2110
|
-
switch (
|
|
2119
|
+
}), { updatePlace: A, updateRecomandPlace: ue, placeCandidates: $t } = da({
|
|
2120
|
+
pointRef: M,
|
|
2121
|
+
context: d,
|
|
2122
|
+
getRecomendPlace: n,
|
|
2123
|
+
getLimit: (N) => {
|
|
2124
|
+
const Ae = N == null ? void 0 : N.source;
|
|
2125
|
+
switch (Ae) {
|
|
2111
2126
|
case "drag":
|
|
2112
|
-
|
|
2127
|
+
case "api":
|
|
2128
|
+
return a;
|
|
2113
2129
|
case "geo":
|
|
2114
|
-
|
|
2130
|
+
case "default":
|
|
2131
|
+
return o;
|
|
2115
2132
|
default:
|
|
2116
|
-
throw new Error(`MyError: should not call getLimit on source: ${
|
|
2133
|
+
throw new Error(`MyError: should not call getLimit on source: ${Ae}`);
|
|
2117
2134
|
}
|
|
2118
2135
|
},
|
|
2119
|
-
mapRef:
|
|
2120
|
-
onChangePlace: (
|
|
2121
|
-
Object.assign(
|
|
2136
|
+
mapRef: e,
|
|
2137
|
+
onChangePlace: (N) => {
|
|
2138
|
+
Object.assign(s, { ...N }), d.source !== "recomend" && ue(), l == null || l(N);
|
|
2122
2139
|
},
|
|
2123
|
-
onChange: (
|
|
2124
|
-
|
|
2140
|
+
onChange: (N) => {
|
|
2141
|
+
d.source = "recomend", Object.assign(s, { ...N }), A(), I == null || I(N);
|
|
2125
2142
|
}
|
|
2126
2143
|
});
|
|
2127
2144
|
return {
|
|
2128
|
-
isDragging:
|
|
2129
|
-
|
|
2130
|
-
geoError:
|
|
2131
|
-
|
|
2132
|
-
|
|
2145
|
+
isDragging: D,
|
|
2146
|
+
geoLoading: m,
|
|
2147
|
+
geoError: v,
|
|
2148
|
+
geoPosition: L,
|
|
2149
|
+
geoCoordinate: j,
|
|
2150
|
+
centerPlace: s,
|
|
2151
|
+
centerPoint: M,
|
|
2152
|
+
placeCandidates: $t,
|
|
2153
|
+
setCenterPlaceByRecomand: g
|
|
2133
2154
|
};
|
|
2134
|
-
},
|
|
2135
|
-
const t =
|
|
2155
|
+
}, ga = () => {
|
|
2156
|
+
const t = x();
|
|
2136
2157
|
return { mapRef: t, panTo: (i) => {
|
|
2137
2158
|
var a;
|
|
2138
2159
|
return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(i);
|
|
2139
2160
|
}, setMap: (i) => {
|
|
2140
2161
|
t.value = i;
|
|
2141
2162
|
} };
|
|
2142
|
-
},
|
|
2143
|
-
const t =
|
|
2163
|
+
}, fa = () => {
|
|
2164
|
+
const t = x();
|
|
2144
2165
|
return { mapRef: t, panTo: (i) => {
|
|
2145
2166
|
var a;
|
|
2146
|
-
return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(
|
|
2167
|
+
return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(C(i));
|
|
2147
2168
|
}, setMap: (i) => {
|
|
2148
2169
|
t.value = i;
|
|
2149
2170
|
} };
|
|
2150
|
-
},
|
|
2151
|
-
const { supplier: t } =
|
|
2152
|
-
return t === "gmap" ?
|
|
2171
|
+
}, Pa = () => {
|
|
2172
|
+
const { supplier: t } = S();
|
|
2173
|
+
return t === "gmap" ? fa() : ga();
|
|
2153
2174
|
};
|
|
2154
2175
|
export {
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2176
|
+
pa as AddressBox,
|
|
2177
|
+
ja as DrivingLine,
|
|
2178
|
+
va as DrivingRoute,
|
|
2179
|
+
wa as HeycarMap,
|
|
2180
|
+
ha as MapProvider,
|
|
2181
|
+
Aa as PassengerCircle,
|
|
2182
|
+
Na as PickupPoints,
|
|
2183
|
+
Hi as PlaceCircle,
|
|
2184
|
+
Da as StartEndPoint,
|
|
2185
|
+
Sa as TaxiCar,
|
|
2186
|
+
xa as WalkingLine,
|
|
2187
|
+
Ca as WaveCircle,
|
|
2188
|
+
za as useBusinessMapRecomendPlace,
|
|
2189
|
+
ya as useDrivingRoute,
|
|
2190
|
+
oa as useGeoLocation,
|
|
2191
|
+
Pa as useHeycarMap,
|
|
2192
|
+
La as useMapAngle,
|
|
2193
|
+
sa as useMapDrag,
|
|
2194
|
+
ba as useMapPlace,
|
|
2195
|
+
da as useMapRecomendPlace
|
|
2175
2196
|
};
|