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