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