@heycar/heycars-map 0.3.8 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/Demo/DemoBusinessRecomendPlace.d.ts +9 -0
- package/dist/business-components/BusinessQuotingMap/BusinessQuotingMap.d.ts +1 -0
- package/dist/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +1 -0
- package/dist/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +1 -6
- package/dist/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +46 -0
- package/dist/index.cjs +46 -46
- package/dist/index.js +717 -714
- package/package.json +9 -8
- package/todo.md +11 -0
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import Zn, { defineComponent as
|
|
1
|
+
import Zn, { defineComponent as At, h as M, computed as h, inject as Ge, provide as ke, watch as b, watchPostEffect as Y, shallowRef as z, onMounted as Ae, onUnmounted as Ne, reactive as P, toRefs as Nt, ref as w, toRef as On, watchEffect as Ee } from "vue";
|
|
2
2
|
Zn.util.warn;
|
|
3
3
|
const We = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+", Ue = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9Ii44Ii8+PC9zdmc+";
|
|
4
4
|
var Gn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, kn = typeof global == "object" && global && global.Object === Object && global;
|
|
5
5
|
const Wn = kn;
|
|
6
6
|
var Un = typeof self == "object" && self && self.Object === Object && self, Bn = Wn || Un || Function("return this")();
|
|
7
|
-
const
|
|
8
|
-
var Vn =
|
|
7
|
+
const St = Bn;
|
|
8
|
+
var Vn = St.Symbol;
|
|
9
9
|
const $ = Vn;
|
|
10
|
-
var
|
|
10
|
+
var ht = Object.prototype, Yn = ht.hasOwnProperty, Hn = ht.toString, te = $ ? $.toStringTag : void 0;
|
|
11
11
|
function Qn(e) {
|
|
12
12
|
var t = Yn.call(e, te), n = e[te];
|
|
13
13
|
try {
|
|
@@ -22,15 +22,15 @@ var Jn = Object.prototype, Fn = Jn.toString;
|
|
|
22
22
|
function Xn(e) {
|
|
23
23
|
return Fn.call(e);
|
|
24
24
|
}
|
|
25
|
-
var $n = "[object Null]", _n = "[object Undefined]",
|
|
25
|
+
var $n = "[object Null]", _n = "[object Undefined]", $e = $ ? $.toStringTag : void 0;
|
|
26
26
|
function Kn(e) {
|
|
27
|
-
return e == null ? e === void 0 ? _n : $n :
|
|
27
|
+
return e == null ? e === void 0 ? _n : $n : $e && $e in Object(e) ? Qn(e) : Xn(e);
|
|
28
28
|
}
|
|
29
29
|
function qn(e) {
|
|
30
30
|
return e != null && typeof e == "object";
|
|
31
31
|
}
|
|
32
32
|
var ei = "[object Symbol]";
|
|
33
|
-
function
|
|
33
|
+
function Dt(e) {
|
|
34
34
|
return typeof e == "symbol" || qn(e) && Kn(e) == ei;
|
|
35
35
|
}
|
|
36
36
|
function ti(e, t) {
|
|
@@ -40,53 +40,53 @@ function ti(e, t) {
|
|
|
40
40
|
}
|
|
41
41
|
var ni = Array.isArray;
|
|
42
42
|
const ii = ni;
|
|
43
|
-
var ai = 1 / 0,
|
|
44
|
-
function
|
|
43
|
+
var ai = 1 / 0, _e = $ ? $.prototype : void 0, Ke = _e ? _e.toString : void 0;
|
|
44
|
+
function wt(e) {
|
|
45
45
|
if (typeof e == "string")
|
|
46
46
|
return e;
|
|
47
47
|
if (ii(e))
|
|
48
|
-
return ti(e,
|
|
49
|
-
if (
|
|
50
|
-
return
|
|
48
|
+
return ti(e, wt) + "";
|
|
49
|
+
if (Dt(e))
|
|
50
|
+
return Ke ? Ke.call(e) : "";
|
|
51
51
|
var t = e + "";
|
|
52
52
|
return t == "0" && 1 / e == -ai ? "-0" : t;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
55
|
-
function
|
|
56
|
-
for (var t = e.length; t-- &&
|
|
54
|
+
var oi = /\s/;
|
|
55
|
+
function ri(e) {
|
|
56
|
+
for (var t = e.length; t-- && oi.test(e.charAt(t)); )
|
|
57
57
|
;
|
|
58
58
|
return t;
|
|
59
59
|
}
|
|
60
60
|
var si = /^\s+/;
|
|
61
61
|
function ci(e) {
|
|
62
|
-
return e && e.slice(0,
|
|
62
|
+
return e && e.slice(0, ri(e) + 1).replace(si, "");
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function ze(e) {
|
|
65
65
|
var t = typeof e;
|
|
66
66
|
return e != null && (t == "object" || t == "function");
|
|
67
67
|
}
|
|
68
|
-
var
|
|
69
|
-
function
|
|
68
|
+
var qe = 0 / 0, ui = /^[-+]0x[0-9a-f]+$/i, li = /^0b[01]+$/i, di = /^0o[0-7]+$/i, gi = parseInt;
|
|
69
|
+
function et(e) {
|
|
70
70
|
if (typeof e == "number")
|
|
71
71
|
return e;
|
|
72
|
-
if (
|
|
73
|
-
return
|
|
74
|
-
if (
|
|
72
|
+
if (Dt(e))
|
|
73
|
+
return qe;
|
|
74
|
+
if (ze(e)) {
|
|
75
75
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
76
|
-
e =
|
|
76
|
+
e = ze(t) ? t + "" : t;
|
|
77
77
|
}
|
|
78
78
|
if (typeof e != "string")
|
|
79
79
|
return e === 0 ? e : +e;
|
|
80
80
|
e = ci(e);
|
|
81
81
|
var n = li.test(e);
|
|
82
|
-
return n || di.test(e) ? gi(e.slice(2), n ? 2 : 8) : ui.test(e) ?
|
|
82
|
+
return n || di.test(e) ? gi(e.slice(2), n ? 2 : 8) : ui.test(e) ? qe : +e;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return e == null ? "" :
|
|
84
|
+
function xt(e) {
|
|
85
|
+
return e == null ? "" : wt(e);
|
|
86
86
|
}
|
|
87
87
|
function Ii(e, t, n, i) {
|
|
88
|
-
var a = -1,
|
|
89
|
-
for (i &&
|
|
88
|
+
var a = -1, o = e == null ? 0 : e.length;
|
|
89
|
+
for (i && o && (n = e[++a]); ++a < o; )
|
|
90
90
|
n = t(n, e[a], a, e);
|
|
91
91
|
return n;
|
|
92
92
|
}
|
|
@@ -292,7 +292,7 @@ var mi = {
|
|
|
292
292
|
const fi = pi;
|
|
293
293
|
var vi = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, yi = "\\u0300-\\u036f", ji = "\\ufe20-\\ufe2f", Li = "\\u20d0-\\u20ff", Ai = yi + ji + Li, Ni = "[" + Ai + "]", Si = RegExp(Ni, "g");
|
|
294
294
|
function hi(e) {
|
|
295
|
-
return e =
|
|
295
|
+
return e = xt(e), e && e.replace(vi, fi).replace(Si, "");
|
|
296
296
|
}
|
|
297
297
|
var Di = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
298
298
|
function wi(e) {
|
|
@@ -302,21 +302,21 @@ var xi = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
|
302
302
|
function Ci(e) {
|
|
303
303
|
return xi.test(e);
|
|
304
304
|
}
|
|
305
|
-
var
|
|
306
|
-
J + "?" +
|
|
307
|
-
Hi + "+" +
|
|
308
|
-
J + "?" +
|
|
309
|
-
J + "+" +
|
|
305
|
+
var Ct = "\\ud800-\\udfff", Pi = "\\u0300-\\u036f", bi = "\\ufe20-\\ufe2f", Ti = "\\u20d0-\\u20ff", Ei = Pi + bi + Ti, Pt = "\\u2700-\\u27bf", bt = "a-z\\xdf-\\xf6\\xf8-\\xff", zi = "\\xac\\xb1\\xd7\\xf7", Ri = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Zi = "\\u2000-\\u206f", Oi = " \\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", Tt = "A-Z\\xc0-\\xd6\\xd8-\\xde", Gi = "\\ufe0e\\ufe0f", Et = zi + Ri + Zi + Oi, zt = "['’]", tt = "[" + Et + "]", ki = "[" + Ei + "]", Rt = "\\d+", Wi = "[" + Pt + "]", Zt = "[" + bt + "]", Ot = "[^" + Ct + Et + Rt + Pt + bt + Tt + "]", Ui = "\\ud83c[\\udffb-\\udfff]", Bi = "(?:" + ki + "|" + Ui + ")", Vi = "[^" + Ct + "]", Gt = "(?:\\ud83c[\\udde6-\\uddff]){2}", kt = "[\\ud800-\\udbff][\\udc00-\\udfff]", J = "[" + Tt + "]", Yi = "\\u200d", nt = "(?:" + Zt + "|" + Ot + ")", Hi = "(?:" + J + "|" + Ot + ")", it = "(?:" + zt + "(?:d|ll|m|re|s|t|ve))?", at = "(?:" + zt + "(?:D|LL|M|RE|S|T|VE))?", Wt = Bi + "?", Ut = "[" + Gi + "]?", Qi = "(?:" + Yi + "(?:" + [Vi, Gt, kt].join("|") + ")" + Ut + Wt + ")*", Ji = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Fi = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Xi = Ut + Wt + Qi, $i = "(?:" + [Wi, Gt, kt].join("|") + ")" + Xi, _i = RegExp([
|
|
306
|
+
J + "?" + Zt + "+" + it + "(?=" + [tt, J, "$"].join("|") + ")",
|
|
307
|
+
Hi + "+" + at + "(?=" + [tt, J + nt, "$"].join("|") + ")",
|
|
308
|
+
J + "?" + nt + "+" + it,
|
|
309
|
+
J + "+" + at,
|
|
310
310
|
Fi,
|
|
311
311
|
Ji,
|
|
312
|
-
|
|
312
|
+
Rt,
|
|
313
313
|
$i
|
|
314
314
|
].join("|"), "g");
|
|
315
315
|
function Ki(e) {
|
|
316
316
|
return e.match(_i) || [];
|
|
317
317
|
}
|
|
318
318
|
function qi(e, t, n) {
|
|
319
|
-
return e =
|
|
319
|
+
return e = xt(e), t = n ? void 0 : t, t === void 0 ? Ci(e) ? Ki(e) : wi(e) : e.match(t) || [];
|
|
320
320
|
}
|
|
321
321
|
var ea = "['’]", ta = RegExp(ea, "g");
|
|
322
322
|
function na(e) {
|
|
@@ -325,29 +325,29 @@ function na(e) {
|
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
327
|
var ia = function() {
|
|
328
|
-
return
|
|
328
|
+
return St.Date.now();
|
|
329
329
|
};
|
|
330
330
|
const Te = ia;
|
|
331
|
-
var aa = "Expected a function",
|
|
331
|
+
var aa = "Expected a function", oa = Math.max, ra = Math.min;
|
|
332
332
|
function sa(e, t, n) {
|
|
333
|
-
var i, a,
|
|
333
|
+
var i, a, o, r, s, u, g = 0, d = !1, c = !1, l = !0;
|
|
334
334
|
if (typeof e != "function")
|
|
335
335
|
throw new TypeError(aa);
|
|
336
|
-
t =
|
|
336
|
+
t = et(t) || 0, ze(n) && (d = !!n.leading, c = "maxWait" in n, o = c ? oa(et(n.maxWait) || 0, t) : o, l = "trailing" in n ? !!n.trailing : l);
|
|
337
337
|
function I(D) {
|
|
338
338
|
var C = i, Z = a;
|
|
339
|
-
return i = a = void 0, g = D,
|
|
339
|
+
return i = a = void 0, g = D, r = e.apply(Z, C), r;
|
|
340
340
|
}
|
|
341
341
|
function m(D) {
|
|
342
|
-
return g = D, s = setTimeout(y, t), d ? I(D) :
|
|
342
|
+
return g = D, s = setTimeout(y, t), d ? I(D) : r;
|
|
343
343
|
}
|
|
344
344
|
function p(D) {
|
|
345
345
|
var C = D - u, Z = D - g, W = t - C;
|
|
346
|
-
return c ?
|
|
346
|
+
return c ? ra(W, o - Z) : W;
|
|
347
347
|
}
|
|
348
348
|
function v(D) {
|
|
349
349
|
var C = D - u, Z = D - g;
|
|
350
|
-
return u === void 0 || C >= t || C < 0 || c && Z >=
|
|
350
|
+
return u === void 0 || C >= t || C < 0 || c && Z >= o;
|
|
351
351
|
}
|
|
352
352
|
function y() {
|
|
353
353
|
var D = Te();
|
|
@@ -356,15 +356,15 @@ function sa(e, t, n) {
|
|
|
356
356
|
s = setTimeout(y, p(D));
|
|
357
357
|
}
|
|
358
358
|
function f(D) {
|
|
359
|
-
return s = void 0, l && i ? I(D) : (i = a = void 0,
|
|
359
|
+
return s = void 0, l && i ? I(D) : (i = a = void 0, r);
|
|
360
360
|
}
|
|
361
361
|
function L() {
|
|
362
362
|
s !== void 0 && clearTimeout(s), g = 0, i = u = a = s = void 0;
|
|
363
363
|
}
|
|
364
364
|
function A() {
|
|
365
|
-
return s === void 0 ?
|
|
365
|
+
return s === void 0 ? r : f(Te());
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function E() {
|
|
368
368
|
var D = Te(), C = v(D);
|
|
369
369
|
if (i = arguments, a = this, u = D, C) {
|
|
370
370
|
if (s === void 0)
|
|
@@ -372,41 +372,41 @@ function sa(e, t, n) {
|
|
|
372
372
|
if (c)
|
|
373
373
|
return clearTimeout(s), s = setTimeout(y, t), I(u);
|
|
374
374
|
}
|
|
375
|
-
return s === void 0 && (s = setTimeout(y, t)),
|
|
375
|
+
return s === void 0 && (s = setTimeout(y, t)), r;
|
|
376
376
|
}
|
|
377
|
-
return
|
|
377
|
+
return E.cancel = L, E.flush = A, E;
|
|
378
378
|
}
|
|
379
379
|
var ca = na(function(e, t, n) {
|
|
380
380
|
return e + (n ? "-" : "") + t.toLowerCase();
|
|
381
381
|
});
|
|
382
|
-
const
|
|
382
|
+
const Bt = ca;
|
|
383
383
|
function j(e) {
|
|
384
|
-
return
|
|
384
|
+
return At({
|
|
385
385
|
inheritAttrs: !1,
|
|
386
386
|
setup(t, n) {
|
|
387
|
-
const { attrs: i, slots: a, emit:
|
|
388
|
-
const l =
|
|
387
|
+
const { attrs: i, slots: a, emit: o } = n, r = i, s = o, u = (d, c) => {
|
|
388
|
+
const l = Bt(d);
|
|
389
389
|
s(d, c), d !== l && s(l, c);
|
|
390
390
|
}, g = new Proxy(a, {
|
|
391
391
|
get(d, c, l) {
|
|
392
392
|
var I;
|
|
393
|
-
return (I = Reflect.get(d, c, l)) != null ? I : Reflect.get(
|
|
393
|
+
return (I = Reflect.get(d, c, l)) != null ? I : Reflect.get(r, c);
|
|
394
394
|
}
|
|
395
395
|
});
|
|
396
|
-
return e(
|
|
396
|
+
return e(r, { ...n, slots: g, emit: u });
|
|
397
397
|
}
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function re(e) {
|
|
401
401
|
return {
|
|
402
|
-
props: (t) =>
|
|
402
|
+
props: (t) => At({
|
|
403
403
|
inheritAttrs: !1,
|
|
404
404
|
props: t,
|
|
405
405
|
setup(n, i) {
|
|
406
|
-
const a = n, { slots:
|
|
407
|
-
const l =
|
|
406
|
+
const a = n, { slots: o, emit: r } = i, s = r, u = (d, c) => {
|
|
407
|
+
const l = Bt(d);
|
|
408
408
|
s(d, c), d !== l && s(l, c);
|
|
409
|
-
}, g = new Proxy(
|
|
409
|
+
}, g = new Proxy(o, {
|
|
410
410
|
get(d, c, l) {
|
|
411
411
|
var I;
|
|
412
412
|
return (I = Reflect.get(d, c, l)) != null ? I : Reflect.get(a, c);
|
|
@@ -418,7 +418,7 @@ function oe(e) {
|
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
420
|
const G = M, ie = "zh-CN";
|
|
421
|
-
var ua = "n8tgem1",
|
|
421
|
+
var ua = "n8tgem1", ot = "n8tgem0", la = "n8tgem5", da = "n8tgem4", ga = "n8tgem2", Ia = "n8tgem3", Ma = "n8tgem7", ma = "n8tgem6";
|
|
422
422
|
const pa = j((e) => {
|
|
423
423
|
const t = h(() => {
|
|
424
424
|
var n;
|
|
@@ -434,17 +434,17 @@ const pa = j((e) => {
|
|
|
434
434
|
const {
|
|
435
435
|
type: i,
|
|
436
436
|
title: a,
|
|
437
|
-
description:
|
|
437
|
+
description: o
|
|
438
438
|
} = e;
|
|
439
439
|
return i === "locator" ? M("div", {
|
|
440
|
-
class:
|
|
440
|
+
class: ot
|
|
441
441
|
}, [M("img", {
|
|
442
442
|
class: Ma,
|
|
443
443
|
attrs: {
|
|
444
444
|
src: We
|
|
445
445
|
}
|
|
446
446
|
})]) : M("div", {
|
|
447
|
-
class:
|
|
447
|
+
class: ot
|
|
448
448
|
}, [M("div", {
|
|
449
449
|
class: ua,
|
|
450
450
|
on: {
|
|
@@ -457,9 +457,9 @@ const pa = j((e) => {
|
|
|
457
457
|
attrs: {
|
|
458
458
|
value: a
|
|
459
459
|
}
|
|
460
|
-
}), !!
|
|
460
|
+
}), !!o && M("div", {
|
|
461
461
|
class: da
|
|
462
|
-
}, [
|
|
462
|
+
}, [o])]), M("img", {
|
|
463
463
|
class: la,
|
|
464
464
|
attrs: {
|
|
465
465
|
src: Ue
|
|
@@ -468,23 +468,23 @@ const pa = j((e) => {
|
|
|
468
468
|
class: ma
|
|
469
469
|
})]);
|
|
470
470
|
};
|
|
471
|
-
}), U = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIxN3B4IiB2aWV3Qm94PSIwIDAgMTcgMTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5qSt5ZyG5b2iPC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxjaXJjbGUgaWQ9InBhdGgtMSIgY3g9IjQuNSIgY3k9IjkuNSIgcj0iNC41Ij48L2NpcmNsZT4KICAgICAgICA8ZmlsdGVyIHg9Ii02MS4xJSIgeT0iLTYxLjElIiB3aWR0aD0iMjIyLjIlIiBoZWlnaHQ9IjIyMi4yJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0iZmlsdGVyLTIiPgogICAgICAgICAgICA8ZmVNb3JwaG9sb2d5IHJhZGl1cz0iMSIgb3BlcmF0b3I9ImRpbGF0ZSIgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd1NwcmVhZE91dGVyMSI+PC9mZU1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0iMSIgZmlsdGVyPSJ1cmwoI2ZpbHRlci0yKSIgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICA8dXNlIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSIjMzQ2RUZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=", Vt = Symbol(), N = () => {
|
|
472
|
+
const e = Ge(Vt);
|
|
473
473
|
if (!e)
|
|
474
474
|
throw new Error("MyError: useMapSupplier should be under MapProvider");
|
|
475
475
|
return e;
|
|
476
|
-
}, va = (e) => ke(
|
|
476
|
+
}, va = (e) => ke(Vt, e), Yt = Symbol("amap"), se = () => Ge(Yt), ya = (e) => ke(Yt, e), Ht = Symbol("gmap"), ce = () => Ge(Ht), ja = (e) => ke(Ht, e), Qt = () => {
|
|
477
477
|
const { supplier: e } = N();
|
|
478
478
|
return e === "gmap" ? ce() : se();
|
|
479
479
|
}, H = (e) => {
|
|
480
|
-
const t =
|
|
480
|
+
const t = Qt();
|
|
481
481
|
b(
|
|
482
482
|
() => t.value,
|
|
483
483
|
(n) => {
|
|
484
484
|
n && Promise.resolve().then(e);
|
|
485
485
|
}
|
|
486
486
|
);
|
|
487
|
-
},
|
|
487
|
+
}, Jt = (e) => {
|
|
488
488
|
const { registerOverlay: t, overlayRef: n } = e;
|
|
489
489
|
b(
|
|
490
490
|
() => n.value,
|
|
@@ -493,17 +493,17 @@ const pa = j((e) => {
|
|
|
493
493
|
}
|
|
494
494
|
);
|
|
495
495
|
}, rt = (e) => e != null && typeof e == "object" && Number.isFinite(e.lat) && Number.isFinite(e.lng);
|
|
496
|
-
var La = typeof WeakMap == "function",
|
|
496
|
+
var La = typeof WeakMap == "function", st = Object.keys;
|
|
497
497
|
function Me(e, t) {
|
|
498
498
|
return e === t || e !== e && t !== t;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function ct(e) {
|
|
501
501
|
return e.constructor === Object || e.constructor == null;
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function ut(e) {
|
|
504
504
|
return !!e && typeof e.then == "function";
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function lt(e) {
|
|
507
507
|
return !!(e && e.$$typeof);
|
|
508
508
|
}
|
|
509
509
|
function Aa() {
|
|
@@ -536,22 +536,22 @@ var Na = function(e) {
|
|
|
536
536
|
return /* @__PURE__ */ new WeakMap();
|
|
537
537
|
} : Aa;
|
|
538
538
|
}(La);
|
|
539
|
-
function
|
|
539
|
+
function Ft(e) {
|
|
540
540
|
return function(n) {
|
|
541
541
|
var i = e || n;
|
|
542
|
-
return function(
|
|
542
|
+
return function(o, r, s, u, g, d, c) {
|
|
543
543
|
c === void 0 && (c = Na());
|
|
544
|
-
var l = !!
|
|
544
|
+
var l = !!o && typeof o == "object", I = !!r && typeof r == "object";
|
|
545
545
|
if (l !== I)
|
|
546
546
|
return !1;
|
|
547
547
|
if (!l && !I)
|
|
548
|
-
return i(
|
|
549
|
-
var m = c.get(
|
|
550
|
-
if (m && c.get(
|
|
551
|
-
return m ===
|
|
552
|
-
c.set(
|
|
553
|
-
var p = i(
|
|
554
|
-
return c.delete(
|
|
548
|
+
return i(o, r, c);
|
|
549
|
+
var m = c.get(o);
|
|
550
|
+
if (m && c.get(r))
|
|
551
|
+
return m === r;
|
|
552
|
+
c.set(o, r), c.set(r, o);
|
|
553
|
+
var p = i(o, r, c);
|
|
554
|
+
return c.delete(o), c.delete(r), p;
|
|
555
555
|
};
|
|
556
556
|
};
|
|
557
557
|
}
|
|
@@ -567,31 +567,31 @@ function Sa(e, t, n, i) {
|
|
|
567
567
|
function ha(e, t, n, i) {
|
|
568
568
|
var a = e.size === t.size;
|
|
569
569
|
if (a && e.size) {
|
|
570
|
-
var
|
|
570
|
+
var o = {}, r = 0;
|
|
571
571
|
e.forEach(function(s, u) {
|
|
572
572
|
if (a) {
|
|
573
573
|
var g = !1, d = 0;
|
|
574
574
|
t.forEach(function(c, l) {
|
|
575
|
-
!g && !
|
|
576
|
-
}),
|
|
575
|
+
!g && !o[d] && (g = n(u, l, r, d, e, t, i) && n(s, c, u, l, e, t, i), g && (o[d] = !0)), d++;
|
|
576
|
+
}), r++, a = g;
|
|
577
577
|
}
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
580
|
return a;
|
|
581
581
|
}
|
|
582
582
|
var Da = "_owner", wa = Function.prototype.bind.call(Function.prototype.call, Object.prototype.hasOwnProperty);
|
|
583
|
-
function
|
|
584
|
-
var a =
|
|
585
|
-
if (
|
|
583
|
+
function dt(e, t, n, i) {
|
|
584
|
+
var a = st(e), o = a.length;
|
|
585
|
+
if (st(t).length !== o)
|
|
586
586
|
return !1;
|
|
587
|
-
if (
|
|
588
|
-
for (var
|
|
589
|
-
if (
|
|
590
|
-
var s =
|
|
587
|
+
if (o)
|
|
588
|
+
for (var r = void 0; o-- > 0; ) {
|
|
589
|
+
if (r = a[o], r === Da) {
|
|
590
|
+
var s = lt(e), u = lt(t);
|
|
591
591
|
if ((s || u) && s !== u)
|
|
592
592
|
return !1;
|
|
593
593
|
}
|
|
594
|
-
if (!wa(t,
|
|
594
|
+
if (!wa(t, r) || !n(e[r], t[r], r, r, e, t, i))
|
|
595
595
|
return !1;
|
|
596
596
|
}
|
|
597
597
|
return !0;
|
|
@@ -606,34 +606,34 @@ var xa = function() {
|
|
|
606
606
|
function Ca(e, t, n, i) {
|
|
607
607
|
var a = e.size === t.size;
|
|
608
608
|
if (a && e.size) {
|
|
609
|
-
var
|
|
610
|
-
e.forEach(function(
|
|
609
|
+
var o = {};
|
|
610
|
+
e.forEach(function(r, s) {
|
|
611
611
|
if (a) {
|
|
612
612
|
var u = !1, g = 0;
|
|
613
613
|
t.forEach(function(d, c) {
|
|
614
|
-
!u && !
|
|
614
|
+
!u && !o[g] && (u = n(r, d, s, c, e, t, i), u && (o[g] = !0)), g++;
|
|
615
615
|
}), a = u;
|
|
616
616
|
}
|
|
617
617
|
});
|
|
618
618
|
}
|
|
619
619
|
return a;
|
|
620
620
|
}
|
|
621
|
-
var Pa = typeof Map == "function", ba = typeof Set == "function",
|
|
621
|
+
var Pa = typeof Map == "function", ba = typeof Set == "function", gt = Object.prototype.valueOf;
|
|
622
622
|
function ue(e) {
|
|
623
623
|
var t = (
|
|
624
624
|
/* eslint-disable no-use-before-define */
|
|
625
|
-
typeof e == "function" ? e(n) : function(i, a,
|
|
625
|
+
typeof e == "function" ? e(n) : function(i, a, o, r, s, u, g) {
|
|
626
626
|
return n(i, a, g);
|
|
627
627
|
}
|
|
628
628
|
);
|
|
629
|
-
function n(i, a,
|
|
629
|
+
function n(i, a, o) {
|
|
630
630
|
if (i === a)
|
|
631
631
|
return !0;
|
|
632
632
|
if (i && a && typeof i == "object" && typeof a == "object") {
|
|
633
|
-
if (
|
|
634
|
-
return
|
|
635
|
-
var
|
|
636
|
-
return
|
|
633
|
+
if (ct(i) && ct(a))
|
|
634
|
+
return dt(i, a, t, o);
|
|
635
|
+
var r = Array.isArray(i), s = Array.isArray(a);
|
|
636
|
+
return r || s ? r === s && Sa(i, a, t, o) : (r = i instanceof Date, s = a instanceof Date, r || s ? r === s && Me(i.getTime(), a.getTime()) : (r = i instanceof RegExp, s = a instanceof RegExp, r || s ? r === s && xa(i, a) : ut(i) || ut(a) ? i === a : Pa && (r = i instanceof Map, s = a instanceof Map, r || s) ? r === s && ha(i, a, t, o) : ba && (r = i instanceof Set, s = a instanceof Set, r || s) ? r === s && Ca(i, a, t, o) : i.valueOf !== gt || a.valueOf !== gt ? Me(i.valueOf(), a.valueOf()) : dt(i, a, t, o)));
|
|
637
637
|
}
|
|
638
638
|
return i !== i && a !== a;
|
|
639
639
|
}
|
|
@@ -643,8 +643,8 @@ ue();
|
|
|
643
643
|
ue(function() {
|
|
644
644
|
return Me;
|
|
645
645
|
});
|
|
646
|
-
ue(
|
|
647
|
-
ue(
|
|
646
|
+
ue(Ft());
|
|
647
|
+
ue(Ft(Me));
|
|
648
648
|
const T = ([e, t]) => ({
|
|
649
649
|
lng: e,
|
|
650
650
|
lat: t
|
|
@@ -653,7 +653,7 @@ const T = ([e, t]) => ({
|
|
|
653
653
|
for (const [i, a] of n.entries())
|
|
654
654
|
a && t.push({ value: a, type: i % 2 === 0 ? "normal" : "emphasize" });
|
|
655
655
|
return t;
|
|
656
|
-
},
|
|
656
|
+
}, Xt = (e) => `${e.charAt(2).toLocaleLowerCase()}${e.slice(3)}`, $t = (e) => e.slice(2).toLowerCase(), Ta = (e) => {
|
|
657
657
|
switch (e) {
|
|
658
658
|
case "en":
|
|
659
659
|
return "style_en";
|
|
@@ -662,7 +662,7 @@ const T = ([e, t]) => ({
|
|
|
662
662
|
}
|
|
663
663
|
}, x = (e) => [e.lng, e.lat], me = (e) => (...t) => {
|
|
664
664
|
Promise.resolve().then(() => e == null ? void 0 : e(...t));
|
|
665
|
-
},
|
|
665
|
+
}, It = (e) => {
|
|
666
666
|
const { address_components: t } = e, n = t.find(
|
|
667
667
|
(a) => a.types[0] === "administrative_area_level_1" || a.types[0] === "administrative_area_level_2"
|
|
668
668
|
);
|
|
@@ -671,11 +671,11 @@ const T = ([e, t]) => ({
|
|
|
671
671
|
const i = t.findIndex((a) => a.types[0] === "country");
|
|
672
672
|
if (i > 0)
|
|
673
673
|
return t[i - 1].long_name;
|
|
674
|
-
},
|
|
674
|
+
}, Ea = (e, t) => e.lng === (t == null ? void 0 : t.lng) && e.lat === (t == null ? void 0 : t.lat), _t = (e, t) => e[0] === (t == null ? void 0 : t[0]) && e[1] === (t == null ? void 0 : t[1]), Kt = ue((e) => (t, n) => rt(t) || rt(n) ? new google.maps.LatLng(t).equals(new google.maps.LatLng(n)) : e(t, n));
|
|
675
675
|
function Be() {
|
|
676
676
|
let e;
|
|
677
677
|
return function(n) {
|
|
678
|
-
return
|
|
678
|
+
return Kt(n, e) || (e = n), e;
|
|
679
679
|
};
|
|
680
680
|
}
|
|
681
681
|
function le(e, t, n) {
|
|
@@ -694,7 +694,7 @@ function K(e, t, n) {
|
|
|
694
694
|
...n
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function za(e, t, n) {
|
|
698
698
|
const i = Be();
|
|
699
699
|
return b(() => i(e()), t, {
|
|
700
700
|
immediate: !0,
|
|
@@ -706,16 +706,16 @@ function Ra(e) {
|
|
|
706
706
|
}
|
|
707
707
|
function Za(e, t, n, i) {
|
|
708
708
|
const a = n.map(
|
|
709
|
-
({ name:
|
|
709
|
+
({ name: o }) => () => t[o]
|
|
710
710
|
);
|
|
711
711
|
b(
|
|
712
712
|
a,
|
|
713
|
-
(
|
|
713
|
+
(o, r) => {
|
|
714
714
|
const s = e.value;
|
|
715
715
|
if (s)
|
|
716
|
-
for (const [u, g] of
|
|
717
|
-
const { name: d, defaultValue: c } = n[u], l =
|
|
718
|
-
|
|
716
|
+
for (const [u, g] of o.entries()) {
|
|
717
|
+
const { name: d, defaultValue: c } = n[u], l = r[u];
|
|
718
|
+
Kt(g, l) || s[Ra(d)](g != null ? g : c);
|
|
719
719
|
}
|
|
720
720
|
},
|
|
721
721
|
{
|
|
@@ -733,47 +733,47 @@ function Ve(e, t, n, i) {
|
|
|
733
733
|
}
|
|
734
734
|
function ae(e, t, n, i) {
|
|
735
735
|
Y((a) => {
|
|
736
|
-
const
|
|
737
|
-
if (!
|
|
736
|
+
const o = e == null ? void 0 : e.value;
|
|
737
|
+
if (!o)
|
|
738
738
|
return;
|
|
739
|
-
const
|
|
739
|
+
const r = [];
|
|
740
740
|
for (const s of i) {
|
|
741
|
-
const u =
|
|
742
|
-
|
|
741
|
+
const u = Xt(s), g = $t(s), d = (c) => n(u, c);
|
|
742
|
+
o.on(g, d), r.push(() => o == null ? void 0 : o.off(g, d));
|
|
743
743
|
}
|
|
744
744
|
a(() => {
|
|
745
|
-
for (const s of
|
|
745
|
+
for (const s of r)
|
|
746
746
|
s();
|
|
747
747
|
});
|
|
748
748
|
});
|
|
749
749
|
}
|
|
750
750
|
function _(e, t, n, i) {
|
|
751
751
|
Y((a) => {
|
|
752
|
-
const
|
|
753
|
-
if (!
|
|
752
|
+
const o = e == null ? void 0 : e.value;
|
|
753
|
+
if (!o)
|
|
754
754
|
return;
|
|
755
|
-
const
|
|
755
|
+
const r = [];
|
|
756
756
|
for (const s of i) {
|
|
757
|
-
const u =
|
|
758
|
-
|
|
757
|
+
const u = Xt(s), g = $t(s), d = (l) => n(u, l), c = o.addListener(g, d);
|
|
758
|
+
r.push(() => google.maps.event.removeListener(c));
|
|
759
759
|
}
|
|
760
760
|
a(() => {
|
|
761
|
-
for (const s of
|
|
761
|
+
for (const s of r)
|
|
762
762
|
s();
|
|
763
763
|
});
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
766
|
const B = j((e, { emit: t }) => {
|
|
767
|
-
const { registerOverlay: n } = e, i =
|
|
767
|
+
const { registerOverlay: n } = e, i = z(), a = se();
|
|
768
768
|
return Ae(() => {
|
|
769
769
|
i.value = new AMap.Marker({ ...e });
|
|
770
770
|
}), Ne(() => {
|
|
771
|
-
var r;
|
|
772
|
-
(r = i.value) == null || r.setMap(null);
|
|
773
|
-
}), Qt({ registerOverlay: n, overlayRef: i }), Y(() => {
|
|
774
771
|
var o;
|
|
775
|
-
|
|
776
|
-
|
|
772
|
+
(o = i.value) == null || o.setMap(null);
|
|
773
|
+
}), Jt({ registerOverlay: n, overlayRef: i }), Y(() => {
|
|
774
|
+
var r;
|
|
775
|
+
const o = a == null ? void 0 : a.value;
|
|
776
|
+
o && ((r = i.value) == null || r.setMap(o));
|
|
777
777
|
}), Ve(i, e, [
|
|
778
778
|
{ name: "anchor", defaultValue: "" },
|
|
779
779
|
{ name: "offset", defaultValue: [0, 0] },
|
|
@@ -791,41 +791,41 @@ const B = j((e, { emit: t }) => {
|
|
|
791
791
|
]), ae(i, e, t, ["onClick"]), () => null;
|
|
792
792
|
}), V = j(
|
|
793
793
|
(e, { emit: t }) => {
|
|
794
|
-
const { registerOverlay: n } = e, i =
|
|
795
|
-
return
|
|
796
|
-
const { registerOverlay:
|
|
794
|
+
const { registerOverlay: n } = e, i = z(), a = ce(), o = (r) => t(r, { target: i.value });
|
|
795
|
+
return Jt({ registerOverlay: n, overlayRef: i }), Ae(() => {
|
|
796
|
+
const { registerOverlay: r, ...s } = e;
|
|
797
797
|
i.value = new google.maps.marker.AdvancedMarkerView({ ...s }), i.value.addListener;
|
|
798
798
|
}), Ne(() => {
|
|
799
799
|
i.value && (i.value.map = null);
|
|
800
800
|
}), Y(() => {
|
|
801
|
-
const
|
|
802
|
-
!
|
|
801
|
+
const r = a == null ? void 0 : a.value;
|
|
802
|
+
!r || !i.value || (i.value.map = r);
|
|
803
803
|
}), le(
|
|
804
804
|
() => {
|
|
805
|
-
const { content:
|
|
805
|
+
const { content: r, registerOverlay: s, ...u } = e;
|
|
806
806
|
return u;
|
|
807
807
|
},
|
|
808
|
-
(
|
|
809
|
-
i.value && Object.assign(i.value,
|
|
808
|
+
(r) => {
|
|
809
|
+
i.value && Object.assign(i.value, r);
|
|
810
810
|
}
|
|
811
811
|
), b(
|
|
812
812
|
() => e.content,
|
|
813
|
-
(
|
|
814
|
-
i.value && (i.value.content =
|
|
813
|
+
(r) => {
|
|
814
|
+
i.value && (i.value.content = r);
|
|
815
815
|
},
|
|
816
816
|
{
|
|
817
817
|
flush: "post"
|
|
818
818
|
}
|
|
819
|
-
), _(i, e,
|
|
819
|
+
), _(i, e, o, ["onClick"]), () => null;
|
|
820
820
|
}
|
|
821
821
|
), R = (e, t, n) => {
|
|
822
|
-
const { class: i, ...a } = t != null ? t : {},
|
|
823
|
-
return i && (
|
|
822
|
+
const { class: i, ...a } = t != null ? t : {}, o = document.createElement(e);
|
|
823
|
+
return i && (o.className = i), Object.assign(o, a), n && (o.innerHTML = n), o;
|
|
824
824
|
};
|
|
825
|
-
var
|
|
826
|
-
const
|
|
825
|
+
var qt = "rgf09w0";
|
|
826
|
+
const en = j((e) => {
|
|
827
827
|
const t = h(() => `
|
|
828
|
-
<img src="${We}" class="${
|
|
828
|
+
<img src="${We}" class="${qt}">
|
|
829
829
|
`);
|
|
830
830
|
return () => M(B, {
|
|
831
831
|
attrs: {
|
|
@@ -834,9 +834,9 @@ const qt = j((e) => {
|
|
|
834
834
|
anchor: "bottom-center"
|
|
835
835
|
}
|
|
836
836
|
});
|
|
837
|
-
}),
|
|
837
|
+
}), tn = j((e) => {
|
|
838
838
|
const t = h(() => R("img", {
|
|
839
|
-
class:
|
|
839
|
+
class: qt,
|
|
840
840
|
src: We
|
|
841
841
|
}));
|
|
842
842
|
return () => M(V, {
|
|
@@ -848,29 +848,29 @@ const qt = j((e) => {
|
|
|
848
848
|
});
|
|
849
849
|
j((e) => {
|
|
850
850
|
const t = N();
|
|
851
|
-
return () => G(t.supplier === "gmap" ?
|
|
851
|
+
return () => G(t.supplier === "gmap" ? tn : en, {
|
|
852
852
|
attrs: e
|
|
853
853
|
});
|
|
854
854
|
});
|
|
855
|
-
var
|
|
855
|
+
var nn = "_15rq2xn1", an = "_15rq2xn0", on = "_15rq2xn3", rn = "_15rq2xn2", sn = "_15rq2xn4", cn = "_15rq2xn6", un = "_15rq2xn5";
|
|
856
856
|
const Oa = j((e) => {
|
|
857
857
|
const t = h(() => {
|
|
858
858
|
var n;
|
|
859
859
|
return `
|
|
860
|
-
<div class="${
|
|
861
|
-
<div class="${
|
|
860
|
+
<div class="${an}">
|
|
861
|
+
<div class="${nn}">
|
|
862
862
|
<div>
|
|
863
863
|
<div class="${rn}">${e.title}</div>
|
|
864
|
-
<div class="${
|
|
864
|
+
<div class="${on}">${(n = e.description) != null ? n : ""}</div>
|
|
865
865
|
</div>
|
|
866
|
-
<img class="${
|
|
866
|
+
<img class="${sn}" src="${Ue}" >
|
|
867
867
|
</div>
|
|
868
|
-
<div class="${
|
|
869
|
-
<img src="${U}" class="${
|
|
868
|
+
<div class="${un}"></div>
|
|
869
|
+
<img src="${U}" class="${cn}">
|
|
870
870
|
</div>
|
|
871
871
|
`;
|
|
872
872
|
});
|
|
873
|
-
return () => e.type === "locator" ? M(
|
|
873
|
+
return () => e.type === "locator" ? M(en, {
|
|
874
874
|
attrs: {
|
|
875
875
|
position: e.position
|
|
876
876
|
}
|
|
@@ -885,20 +885,20 @@ const Oa = j((e) => {
|
|
|
885
885
|
const t = h(() => {
|
|
886
886
|
var n;
|
|
887
887
|
return R("div", {
|
|
888
|
-
class:
|
|
888
|
+
class: an
|
|
889
889
|
}, `
|
|
890
|
-
<div class="${
|
|
890
|
+
<div class="${nn}">
|
|
891
891
|
<div>
|
|
892
892
|
<div class="${rn}">${e.title}</div>
|
|
893
|
-
<div class="${
|
|
893
|
+
<div class="${on}">${(n = e.description) != null ? n : ""}</div>
|
|
894
894
|
</div>
|
|
895
|
-
<img class="${
|
|
895
|
+
<img class="${sn}" src="${Ue}" >
|
|
896
896
|
</div>
|
|
897
|
-
<div class="${
|
|
898
|
-
<img src="${U}" class="${
|
|
897
|
+
<div class="${un}"></div>
|
|
898
|
+
<img src="${U}" class="${cn}">
|
|
899
899
|
`);
|
|
900
900
|
});
|
|
901
|
-
return () => e.type === "locator" ? M(
|
|
901
|
+
return () => e.type === "locator" ? M(tn, {
|
|
902
902
|
attrs: {
|
|
903
903
|
position: e.position
|
|
904
904
|
}
|
|
@@ -908,7 +908,7 @@ const Oa = j((e) => {
|
|
|
908
908
|
content: t.value
|
|
909
909
|
}
|
|
910
910
|
});
|
|
911
|
-
}),
|
|
911
|
+
}), cr = j((e) => {
|
|
912
912
|
const t = N();
|
|
913
913
|
return () => G(t.supplier === "gmap" ? Ga : Oa, {
|
|
914
914
|
attrs: e
|
|
@@ -935,16 +935,16 @@ var Re = {}, ka = {
|
|
|
935
935
|
var m = [];
|
|
936
936
|
if (c.plugins)
|
|
937
937
|
for (var p = 0; p < c.plugins.length; p += 1)
|
|
938
|
-
|
|
939
|
-
if (s.AMapUI ===
|
|
938
|
+
r.AMapUI.plugins.indexOf(c.plugins[p]) == -1 && m.push(c.plugins[p]);
|
|
939
|
+
if (s.AMapUI === o.failed)
|
|
940
940
|
I("前次请求 AMapUI 失败");
|
|
941
|
-
else if (s.AMapUI ===
|
|
942
|
-
s.AMapUI =
|
|
941
|
+
else if (s.AMapUI === o.notload) {
|
|
942
|
+
s.AMapUI = o.loading, r.AMapUI.version = c.version || r.AMapUI.version, p = r.AMapUI.version;
|
|
943
943
|
var v = document.body || document.head, y = document.createElement("script");
|
|
944
944
|
y.type = "text/javascript", y.src = "https://webapi.amap.com/ui/" + p + "/main.js", y.onerror = function(f) {
|
|
945
|
-
s.AMapUI =
|
|
945
|
+
s.AMapUI = o.failed, I("请求 AMapUI 失败");
|
|
946
946
|
}, y.onload = function() {
|
|
947
|
-
if (s.AMapUI =
|
|
947
|
+
if (s.AMapUI = o.loaded, m.length)
|
|
948
948
|
window.AMapUI.loadUI(m, function() {
|
|
949
949
|
for (var f = 0, L = m.length; f < L; f++) {
|
|
950
950
|
var A = m[f].split("/").slice(-1)[0];
|
|
@@ -958,17 +958,17 @@ var Re = {}, ka = {
|
|
|
958
958
|
u.AMapUI.splice(0, 1)[0]();
|
|
959
959
|
}, v.appendChild(y);
|
|
960
960
|
} else
|
|
961
|
-
s.AMapUI ===
|
|
961
|
+
s.AMapUI === o.loaded ? c.version && c.version !== r.AMapUI.version ? I("不允许多个版本 AMapUI 混用") : m.length ? window.AMapUI.loadUI(m, function() {
|
|
962
962
|
for (var f = 0, L = m.length; f < L; f++) {
|
|
963
963
|
var A = m[f].split("/").slice(-1)[0];
|
|
964
964
|
window.AMapUI[A] = arguments[f];
|
|
965
965
|
}
|
|
966
966
|
l();
|
|
967
|
-
}) : l() : c.version && c.version !==
|
|
967
|
+
}) : l() : c.version && c.version !== r.AMapUI.version ? I("不允许多个版本 AMapUI 混用") : u.AMapUI.push(function(f) {
|
|
968
968
|
f ? I(f) : m.length ? window.AMapUI.loadUI(m, function() {
|
|
969
969
|
for (var L = 0, A = m.length; L < A; L++) {
|
|
970
|
-
var
|
|
971
|
-
window.AMapUI[
|
|
970
|
+
var E = m[L].split("/").slice(-1)[0];
|
|
971
|
+
window.AMapUI[E] = arguments[L];
|
|
972
972
|
}
|
|
973
973
|
l();
|
|
974
974
|
}) : l();
|
|
@@ -977,64 +977,64 @@ var Re = {}, ka = {
|
|
|
977
977
|
}
|
|
978
978
|
function a(c) {
|
|
979
979
|
return new Promise(function(l, I) {
|
|
980
|
-
if (s.Loca ===
|
|
980
|
+
if (s.Loca === o.failed)
|
|
981
981
|
I("前次请求 Loca 失败");
|
|
982
|
-
else if (s.Loca ===
|
|
983
|
-
s.Loca =
|
|
984
|
-
var m =
|
|
982
|
+
else if (s.Loca === o.notload) {
|
|
983
|
+
s.Loca = o.loading, r.Loca.version = c.version || r.Loca.version;
|
|
984
|
+
var m = r.Loca.version, p = r.AMap.version.startsWith("2"), v = m.startsWith("2");
|
|
985
985
|
if (p && !v || !p && v)
|
|
986
986
|
I("JSAPI 与 Loca 版本不对应!!");
|
|
987
987
|
else {
|
|
988
|
-
p =
|
|
988
|
+
p = r.key, v = document.body || document.head;
|
|
989
989
|
var y = document.createElement("script");
|
|
990
990
|
y.type = "text/javascript", y.src = "https://webapi.amap.com/loca?v=" + m + "&key=" + p, y.onerror = function(f) {
|
|
991
|
-
s.Loca =
|
|
991
|
+
s.Loca = o.failed, I("请求 AMapUI 失败");
|
|
992
992
|
}, y.onload = function() {
|
|
993
|
-
for (s.Loca =
|
|
993
|
+
for (s.Loca = o.loaded, l(); u.Loca.length; )
|
|
994
994
|
u.Loca.splice(0, 1)[0]();
|
|
995
995
|
}, v.appendChild(y);
|
|
996
996
|
}
|
|
997
997
|
} else
|
|
998
|
-
s.Loca ===
|
|
998
|
+
s.Loca === o.loaded ? c.version && c.version !== r.Loca.version ? I("不允许多个版本 Loca 混用") : l() : c.version && c.version !== r.Loca.version ? I("不允许多个版本 Loca 混用") : u.Loca.push(function(f) {
|
|
999
999
|
f ? I(f) : I();
|
|
1000
1000
|
});
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
1003
|
if (!window)
|
|
1004
1004
|
throw Error("AMap JSAPI can only be used in Browser.");
|
|
1005
|
-
var
|
|
1005
|
+
var o;
|
|
1006
1006
|
(function(c) {
|
|
1007
1007
|
c.notload = "notload", c.loading = "loading", c.loaded = "loaded", c.failed = "failed";
|
|
1008
|
-
})(
|
|
1009
|
-
var
|
|
1010
|
-
typeof c == "function" && (s.AMap ===
|
|
1008
|
+
})(o || (o = {}));
|
|
1009
|
+
var r = { key: "", AMap: { version: "1.4.15", plugins: [] }, AMapUI: { version: "1.1", plugins: [] }, Loca: { version: "1.3.2" } }, s = { AMap: o.notload, AMapUI: o.notload, Loca: o.notload }, u = { AMap: [], AMapUI: [], Loca: [] }, g = [], d = function(c) {
|
|
1010
|
+
typeof c == "function" && (s.AMap === o.loaded ? c(window.AMap) : g.push(c));
|
|
1011
1011
|
};
|
|
1012
1012
|
return { load: function(c) {
|
|
1013
1013
|
return new Promise(function(l, I) {
|
|
1014
|
-
if (s.AMap ==
|
|
1014
|
+
if (s.AMap == o.failed)
|
|
1015
1015
|
I("");
|
|
1016
|
-
else if (s.AMap ==
|
|
1016
|
+
else if (s.AMap == o.notload) {
|
|
1017
1017
|
var m = c.key, p = c.version, v = c.plugins;
|
|
1018
|
-
m ? (window.AMap && location.host !== "lbs.amap.com" && I("禁止多种API加载方式混用"),
|
|
1018
|
+
m ? (window.AMap && location.host !== "lbs.amap.com" && I("禁止多种API加载方式混用"), r.key = m, r.AMap.version = p || r.AMap.version, r.AMap.plugins = v || r.AMap.plugins, s.AMap = o.loading, p = document.body || document.head, window.___onAPILoaded = function(f) {
|
|
1019
1019
|
if (delete window.___onAPILoaded, f)
|
|
1020
|
-
s.AMap =
|
|
1020
|
+
s.AMap = o.failed, I(f);
|
|
1021
1021
|
else
|
|
1022
|
-
for (s.AMap =
|
|
1022
|
+
for (s.AMap = o.loaded, n(c).then(function() {
|
|
1023
1023
|
l(window.AMap);
|
|
1024
1024
|
}).catch(I); g.length; )
|
|
1025
1025
|
g.splice(0, 1)[0]();
|
|
1026
|
-
}, v = document.createElement("script"), v.type = "text/javascript", v.src = "https://webapi.amap.com/maps?callback=___onAPILoaded&v=" +
|
|
1027
|
-
s.AMap =
|
|
1026
|
+
}, 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(f) {
|
|
1027
|
+
s.AMap = o.failed, I(f);
|
|
1028
1028
|
}, p.appendChild(v)) : I("请填写key");
|
|
1029
|
-
} else if (s.AMap ==
|
|
1030
|
-
if (c.key && c.key !==
|
|
1029
|
+
} else if (s.AMap == o.loaded)
|
|
1030
|
+
if (c.key && c.key !== r.key)
|
|
1031
1031
|
I("多个不一致的 key");
|
|
1032
|
-
else if (c.version && c.version !==
|
|
1032
|
+
else if (c.version && c.version !== r.AMap.version)
|
|
1033
1033
|
I("不允许多个版本 JSAPI 混用");
|
|
1034
1034
|
else {
|
|
1035
1035
|
if (m = [], c.plugins)
|
|
1036
1036
|
for (p = 0; p < c.plugins.length; p += 1)
|
|
1037
|
-
|
|
1037
|
+
r.AMap.plugins.indexOf(c.plugins[p]) == -1 && m.push(c.plugins[p]);
|
|
1038
1038
|
m.length ? window.AMap.plugin(m, function() {
|
|
1039
1039
|
n(c).then(function() {
|
|
1040
1040
|
l(window.AMap);
|
|
@@ -1043,15 +1043,15 @@ var Re = {}, ka = {
|
|
|
1043
1043
|
l(window.AMap);
|
|
1044
1044
|
}).catch(I);
|
|
1045
1045
|
}
|
|
1046
|
-
else if (c.key && c.key !==
|
|
1046
|
+
else if (c.key && c.key !== r.key)
|
|
1047
1047
|
I("多个不一致的 key");
|
|
1048
|
-
else if (c.version && c.version !==
|
|
1048
|
+
else if (c.version && c.version !== r.AMap.version)
|
|
1049
1049
|
I("不允许多个版本 JSAPI 混用");
|
|
1050
1050
|
else {
|
|
1051
1051
|
var y = [];
|
|
1052
1052
|
if (c.plugins)
|
|
1053
1053
|
for (p = 0; p < c.plugins.length; p += 1)
|
|
1054
|
-
|
|
1054
|
+
r.AMap.plugins.indexOf(c.plugins[p]) == -1 && y.push(c.plugins[p]);
|
|
1055
1055
|
d(function() {
|
|
1056
1056
|
y.length ? window.AMap.plugin(y, function() {
|
|
1057
1057
|
n(c).then(function() {
|
|
@@ -1064,10 +1064,10 @@ var Re = {}, ka = {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
});
|
|
1066
1066
|
}, reset: function() {
|
|
1067
|
-
delete window.AMap, delete window.AMapUI, delete window.Loca,
|
|
1068
|
-
AMap:
|
|
1069
|
-
AMapUI:
|
|
1070
|
-
Loca:
|
|
1067
|
+
delete window.AMap, delete window.AMapUI, delete window.Loca, r = { key: "", AMap: { version: "1.4.15", plugins: [] }, AMapUI: { version: "1.1", plugins: [] }, Loca: { version: "1.3.2" } }, s = {
|
|
1068
|
+
AMap: o.notload,
|
|
1069
|
+
AMapUI: o.notload,
|
|
1070
|
+
Loca: o.notload
|
|
1071
1071
|
}, u = { AMap: [], AMapUI: [], Loca: [] };
|
|
1072
1072
|
} };
|
|
1073
1073
|
});
|
|
@@ -1078,7 +1078,7 @@ var Wa = function e(t, n) {
|
|
|
1078
1078
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
1079
1079
|
if (t.constructor !== n.constructor)
|
|
1080
1080
|
return !1;
|
|
1081
|
-
var i, a,
|
|
1081
|
+
var i, a, o;
|
|
1082
1082
|
if (Array.isArray(t)) {
|
|
1083
1083
|
if (i = t.length, i != n.length)
|
|
1084
1084
|
return !1;
|
|
@@ -1093,21 +1093,21 @@ var Wa = function e(t, n) {
|
|
|
1093
1093
|
return t.valueOf() === n.valueOf();
|
|
1094
1094
|
if (t.toString !== Object.prototype.toString)
|
|
1095
1095
|
return t.toString() === n.toString();
|
|
1096
|
-
if (
|
|
1096
|
+
if (o = Object.keys(t), i = o.length, i !== Object.keys(n).length)
|
|
1097
1097
|
return !1;
|
|
1098
1098
|
for (a = i; a-- !== 0; )
|
|
1099
|
-
if (!Object.prototype.hasOwnProperty.call(n,
|
|
1099
|
+
if (!Object.prototype.hasOwnProperty.call(n, o[a]))
|
|
1100
1100
|
return !1;
|
|
1101
1101
|
for (a = i; a-- !== 0; ) {
|
|
1102
|
-
var
|
|
1103
|
-
if (!e(t[
|
|
1102
|
+
var r = o[a];
|
|
1103
|
+
if (!e(t[r], n[r]))
|
|
1104
1104
|
return !1;
|
|
1105
1105
|
}
|
|
1106
1106
|
return !0;
|
|
1107
1107
|
}
|
|
1108
1108
|
return t !== t && n !== n;
|
|
1109
1109
|
};
|
|
1110
|
-
const
|
|
1110
|
+
const Mt = "__googleMapsScriptId";
|
|
1111
1111
|
var F;
|
|
1112
1112
|
(function(e) {
|
|
1113
1113
|
e[e.INITIALIZED = 0] = "INITIALIZED", e[e.LOADING = 1] = "LOADING", e[e.SUCCESS = 2] = "SUCCESS", e[e.FAILURE = 3] = "FAILURE";
|
|
@@ -1122,8 +1122,8 @@ class Q {
|
|
|
1122
1122
|
* const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
|
|
1123
1123
|
* ```
|
|
1124
1124
|
*/
|
|
1125
|
-
constructor({ apiKey: t, authReferrerPolicy: n, channel: i, client: a, id:
|
|
1126
|
-
if (this.CALLBACK = "__googleMapsCallback", this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = t, this.authReferrerPolicy = n, this.channel = i, this.client = a, this.id =
|
|
1125
|
+
constructor({ apiKey: t, authReferrerPolicy: n, channel: i, client: a, id: o = Mt, language: r, libraries: s = [], mapIds: u, nonce: g, region: d, retries: c = 3, url: l = "https://maps.googleapis.com/maps/api/js", version: I }) {
|
|
1126
|
+
if (this.CALLBACK = "__googleMapsCallback", this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = t, this.authReferrerPolicy = n, this.channel = i, this.client = a, this.id = o || Mt, this.language = r, this.libraries = s, this.mapIds = u, this.nonce = g, this.region = d, this.retries = c, this.url = l, this.version = I, Q.instance) {
|
|
1127
1127
|
if (!Wa(this.options, Q.instance.options))
|
|
1128
1128
|
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Q.instance.options)}`);
|
|
1129
1129
|
return Q.instance;
|
|
@@ -1245,24 +1245,24 @@ const Ua = [
|
|
|
1245
1245
|
"AMap.Driving",
|
|
1246
1246
|
"AMap.Walking"
|
|
1247
1247
|
], Ba = ["marker", "places", "geometry"];
|
|
1248
|
-
var
|
|
1248
|
+
var oe = /* @__PURE__ */ ((e) => (e.LOADING = "LOADING", e.FAILURE = "FAILURE", e.SUCCESS = "SUCCESS", e))(oe || {});
|
|
1249
1249
|
const Va = (e) => {
|
|
1250
1250
|
const { onChange: t } = e;
|
|
1251
1251
|
let n, i;
|
|
1252
1252
|
const a = new Promise((s, u) => {
|
|
1253
1253
|
n = s, i = u;
|
|
1254
|
-
}),
|
|
1254
|
+
}), o = z(
|
|
1255
1255
|
"LOADING"
|
|
1256
1256
|
/* LOADING */
|
|
1257
|
-
),
|
|
1257
|
+
), r = h(() => {
|
|
1258
1258
|
const { onChange: s, loading: u, fallback: g, apiKey: d, apiSecret: c, apiServiceHost: l, version: I, ...m } = e;
|
|
1259
1259
|
return { ...m, key: d, version: I != null ? I : "2.0.5.16" };
|
|
1260
1260
|
});
|
|
1261
1261
|
return K(
|
|
1262
|
-
() =>
|
|
1262
|
+
() => r.value,
|
|
1263
1263
|
(s) => {
|
|
1264
1264
|
const u = (g) => {
|
|
1265
|
-
|
|
1265
|
+
o.value = g, g === "SUCCESS" && n(), g === "FAILURE" && i(), t == null || t(o.value);
|
|
1266
1266
|
};
|
|
1267
1267
|
u(
|
|
1268
1268
|
"LOADING"
|
|
@@ -1280,24 +1280,24 @@ const Va = (e) => {
|
|
|
1280
1280
|
)
|
|
1281
1281
|
);
|
|
1282
1282
|
}
|
|
1283
|
-
), { statusRef:
|
|
1283
|
+
), { statusRef: o, readyPromise: a };
|
|
1284
1284
|
}, Ya = (e) => {
|
|
1285
1285
|
const { onChange: t } = e;
|
|
1286
1286
|
let n, i;
|
|
1287
1287
|
const a = new Promise((s, u) => {
|
|
1288
1288
|
n = s, i = u;
|
|
1289
|
-
}),
|
|
1289
|
+
}), o = z(
|
|
1290
1290
|
"LOADING"
|
|
1291
1291
|
/* LOADING */
|
|
1292
|
-
),
|
|
1292
|
+
), r = h(() => {
|
|
1293
1293
|
const { onChange: s, fallback: u, loading: g, ...d } = e;
|
|
1294
1294
|
return d;
|
|
1295
1295
|
});
|
|
1296
1296
|
return K(
|
|
1297
|
-
() =>
|
|
1297
|
+
() => r.value,
|
|
1298
1298
|
(s) => {
|
|
1299
1299
|
const u = new Q(s), g = (d) => {
|
|
1300
|
-
|
|
1300
|
+
o.value = d, d === "SUCCESS" && n(), d === "FAILURE" && i(), t == null || t(o.value);
|
|
1301
1301
|
};
|
|
1302
1302
|
g(
|
|
1303
1303
|
"LOADING"
|
|
@@ -1313,12 +1313,12 @@ const Va = (e) => {
|
|
|
1313
1313
|
)
|
|
1314
1314
|
);
|
|
1315
1315
|
}
|
|
1316
|
-
), { statusRef:
|
|
1316
|
+
), { statusRef: o, readyPromise: a };
|
|
1317
1317
|
}, Ha = (e) => {
|
|
1318
|
-
const { gmapKey: t, amapKey: n, amapSecret: i, amapServiceHost: a, supplier:
|
|
1319
|
-
return
|
|
1318
|
+
const { gmapKey: t, amapKey: n, amapSecret: i, amapServiceHost: a, supplier: o, language: r, onChange: s } = e;
|
|
1319
|
+
return o === "gmap" ? Ya({
|
|
1320
1320
|
apiKey: t,
|
|
1321
|
-
language:
|
|
1321
|
+
language: r,
|
|
1322
1322
|
version: "beta",
|
|
1323
1323
|
libraries: Ba,
|
|
1324
1324
|
onChange: s
|
|
@@ -1335,8 +1335,8 @@ const Ja = j((e, { slots: t, emit: n }) => {
|
|
|
1335
1335
|
const {
|
|
1336
1336
|
onDragStart: i,
|
|
1337
1337
|
onDragEnd: a,
|
|
1338
|
-
mapRef:
|
|
1339
|
-
vectorMapForeign:
|
|
1338
|
+
mapRef: o,
|
|
1339
|
+
vectorMapForeign: r = "style_zh_cn",
|
|
1340
1340
|
...s
|
|
1341
1341
|
} = e, u = h(() => ({
|
|
1342
1342
|
dragEnable: !!e.dragEnable,
|
|
@@ -1346,16 +1346,16 @@ const Ja = j((e, { slots: t, emit: n }) => {
|
|
|
1346
1346
|
rotateEnable: !!e.rotateEnable,
|
|
1347
1347
|
animateEnable: !!e.animateEnable,
|
|
1348
1348
|
keyboardEnable: !!e.keyboardEnable
|
|
1349
|
-
})), g =
|
|
1349
|
+
})), g = z(), d = z();
|
|
1350
1350
|
return ya(d), Y(() => {
|
|
1351
1351
|
if (d.value || !g.value)
|
|
1352
1352
|
return;
|
|
1353
1353
|
const c = new AMap.Map(g.value, {
|
|
1354
1354
|
...s,
|
|
1355
|
-
vectorMapForeign:
|
|
1355
|
+
vectorMapForeign: r,
|
|
1356
1356
|
mapStyle: "amap://styles/95498a904992a4c0b866a3e4d7729682"
|
|
1357
1357
|
});
|
|
1358
|
-
d.value = c,
|
|
1358
|
+
d.value = c, o == null || o(c);
|
|
1359
1359
|
}), le(
|
|
1360
1360
|
() => u.value,
|
|
1361
1361
|
(c) => {
|
|
@@ -1381,7 +1381,7 @@ const Ja = j((e, { slots: t, emit: n }) => {
|
|
|
1381
1381
|
};
|
|
1382
1382
|
});
|
|
1383
1383
|
let ge = "user";
|
|
1384
|
-
const Fa = () => ge,
|
|
1384
|
+
const Fa = () => ge, ln = () => ({ executeMapApi: (t) => {
|
|
1385
1385
|
ge = "api";
|
|
1386
1386
|
try {
|
|
1387
1387
|
t(), setTimeout(() => {
|
|
@@ -1396,13 +1396,13 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1396
1396
|
const i = e.mapRef, a = h(() => {
|
|
1397
1397
|
const { mapRef: d, onDragStart: c, onDragEnd: l, ...I } = e;
|
|
1398
1398
|
return I;
|
|
1399
|
-
}),
|
|
1399
|
+
}), o = a.value, r = z(), s = z(), { executeMapApi: u } = ln(), g = (d) => n(d, { target: s.value });
|
|
1400
1400
|
return ja(s), Y(() => {
|
|
1401
|
-
if (s.value || !
|
|
1401
|
+
if (s.value || !r.value)
|
|
1402
1402
|
return;
|
|
1403
1403
|
let d;
|
|
1404
1404
|
u(() => {
|
|
1405
|
-
d = new google.maps.Map(
|
|
1405
|
+
d = new google.maps.Map(r.value, { ...o });
|
|
1406
1406
|
}), s.value = d, i == null || i(d);
|
|
1407
1407
|
}), le(
|
|
1408
1408
|
() => a.value,
|
|
@@ -1414,48 +1414,48 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
), _(s, e, g, ["onDragStart", "onDragEnd"]), () => {
|
|
1416
1416
|
var d;
|
|
1417
|
-
return M("div", { ref:
|
|
1417
|
+
return M("div", { ref: r, class: Xa }, (d = t.default) == null ? void 0 : d.call(t));
|
|
1418
1418
|
};
|
|
1419
|
-
}),
|
|
1419
|
+
}), ur = re(function(t, {
|
|
1420
1420
|
slots: n
|
|
1421
1421
|
}) {
|
|
1422
1422
|
const {
|
|
1423
1423
|
statusRef: i,
|
|
1424
1424
|
readyPromise: a
|
|
1425
|
-
} = Ha(t),
|
|
1426
|
-
get(
|
|
1427
|
-
return s === "status" ? i.value : s === "readyPromise" ? a : Reflect.get(
|
|
1425
|
+
} = Ha(t), o = new Proxy(t, {
|
|
1426
|
+
get(r, s, u) {
|
|
1427
|
+
return s === "status" ? i.value : s === "readyPromise" ? a : Reflect.get(r, s, u);
|
|
1428
1428
|
}
|
|
1429
1429
|
});
|
|
1430
|
-
return va(
|
|
1431
|
-
var
|
|
1432
|
-
return M("div", [(
|
|
1430
|
+
return va(o), () => {
|
|
1431
|
+
var r;
|
|
1432
|
+
return M("div", [(r = n.default) == null ? void 0 : r.call(n)]);
|
|
1433
1433
|
};
|
|
1434
|
-
}).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier", "language"]), he =
|
|
1434
|
+
}).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier", "language"]), he = re((e, {
|
|
1435
1435
|
slots: t,
|
|
1436
1436
|
emit: n
|
|
1437
1437
|
}) => {
|
|
1438
1438
|
const i = N(), a = ({
|
|
1439
|
-
target:
|
|
1439
|
+
target: r
|
|
1440
1440
|
}) => {
|
|
1441
1441
|
const {
|
|
1442
1442
|
lng: s,
|
|
1443
1443
|
lat: u
|
|
1444
|
-
} =
|
|
1444
|
+
} = r.getCenter();
|
|
1445
1445
|
n("dragEnd", [s(), u()]);
|
|
1446
|
-
},
|
|
1447
|
-
target:
|
|
1446
|
+
}, o = ({
|
|
1447
|
+
target: r
|
|
1448
1448
|
}) => {
|
|
1449
1449
|
const {
|
|
1450
1450
|
lng: s,
|
|
1451
1451
|
lat: u
|
|
1452
|
-
} =
|
|
1452
|
+
} = r.getCenter();
|
|
1453
1453
|
n("dragEnd", [s, u]);
|
|
1454
1454
|
};
|
|
1455
1455
|
return () => {
|
|
1456
1456
|
var m, p, v;
|
|
1457
1457
|
const {
|
|
1458
|
-
supplier:
|
|
1458
|
+
supplier: r,
|
|
1459
1459
|
gmapId: s,
|
|
1460
1460
|
language: u = "zh",
|
|
1461
1461
|
status: g
|
|
@@ -1464,12 +1464,12 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1464
1464
|
center: c,
|
|
1465
1465
|
zoom: l
|
|
1466
1466
|
} = e;
|
|
1467
|
-
if (g ===
|
|
1467
|
+
if (g === oe.LOADING)
|
|
1468
1468
|
return (m = t.loading) == null ? void 0 : m.call(t);
|
|
1469
|
-
if (g ===
|
|
1469
|
+
if (g === oe.FAILURE)
|
|
1470
1470
|
return (p = t.fallback) == null ? void 0 : p.call(t);
|
|
1471
1471
|
const I = (v = t.default) == null ? void 0 : v.call(t);
|
|
1472
|
-
switch (
|
|
1472
|
+
switch (r) {
|
|
1473
1473
|
case "gmap":
|
|
1474
1474
|
return M($a, {
|
|
1475
1475
|
attrs: {
|
|
@@ -1491,13 +1491,13 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1491
1491
|
zoom: l
|
|
1492
1492
|
},
|
|
1493
1493
|
on: {
|
|
1494
|
-
dragEnd:
|
|
1494
|
+
dragEnd: o
|
|
1495
1495
|
}
|
|
1496
1496
|
}, [I]);
|
|
1497
1497
|
}
|
|
1498
1498
|
};
|
|
1499
1499
|
}).props(["center", "fallback", "loading", "mapRef", "zoom"]), ne = j((e) => {
|
|
1500
|
-
const t =
|
|
1500
|
+
const t = z(), n = se();
|
|
1501
1501
|
return Ae(() => {
|
|
1502
1502
|
t.value = new AMap.Polyline({ ...e });
|
|
1503
1503
|
}), Ne(() => {
|
|
@@ -1513,8 +1513,8 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1513
1513
|
{ name: "draggable", defaultValue: !1 }
|
|
1514
1514
|
]), le(
|
|
1515
1515
|
() => {
|
|
1516
|
-
const { path: i, extData: a, draggable:
|
|
1517
|
-
return
|
|
1516
|
+
const { path: i, extData: a, draggable: o, ...r } = e;
|
|
1517
|
+
return r;
|
|
1518
1518
|
},
|
|
1519
1519
|
(i) => {
|
|
1520
1520
|
var a;
|
|
@@ -1522,7 +1522,7 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1522
1522
|
}
|
|
1523
1523
|
), () => null;
|
|
1524
1524
|
}), Ie = j((e) => {
|
|
1525
|
-
const t =
|
|
1525
|
+
const t = z(), n = ce();
|
|
1526
1526
|
return Ae(() => {
|
|
1527
1527
|
t.value = new google.maps.Polyline({ ...e });
|
|
1528
1528
|
}), Ne(() => {
|
|
@@ -1540,11 +1540,11 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
), () => null;
|
|
1542
1542
|
}), _a = j((e) => () => {
|
|
1543
|
-
const t = window.innerWidth * 0.01, n = 1 * t, i = 0.13 * t, a = 0.24 * t,
|
|
1543
|
+
const t = window.innerWidth * 0.01, n = 1 * t, i = 0.13 * t, a = 0.24 * t, o = 0.4 * t, r = 0.3 * t, s = e.done ? "#96B2CA" : "#487BF4", u = e.done ? "#7693AF" : "#4175F1", g = e.done ? "#7693AF" : "#6C95F5";
|
|
1544
1544
|
return M("div", [M(ne, {
|
|
1545
1545
|
attrs: {
|
|
1546
1546
|
path: e.path,
|
|
1547
|
-
strokeWeight: n + 2 * i + 2 *
|
|
1547
|
+
strokeWeight: n + 2 * i + 2 * o,
|
|
1548
1548
|
strokeOpacity: 1,
|
|
1549
1549
|
strokeColor: u,
|
|
1550
1550
|
lineJoin: "round",
|
|
@@ -1559,7 +1559,7 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1559
1559
|
lineJoin: "round",
|
|
1560
1560
|
lineCap: "round",
|
|
1561
1561
|
strokeStyle: "dashed",
|
|
1562
|
-
strokeDasharray: [
|
|
1562
|
+
strokeDasharray: [r, r * 0.5]
|
|
1563
1563
|
}
|
|
1564
1564
|
}), M(ne, {
|
|
1565
1565
|
attrs: {
|
|
@@ -1584,11 +1584,11 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1584
1584
|
}), Ka = j((e) => {
|
|
1585
1585
|
const t = h(() => e.path.map(T));
|
|
1586
1586
|
return () => {
|
|
1587
|
-
const n = window.innerWidth * 0.01, i = 10 * n, a = 2.5 * n,
|
|
1587
|
+
const n = window.innerWidth * 0.01, i = 10 * n, a = 2.5 * n, o = 0.35 * n, r = 0.75 * n, s = 1 * n, u = e.done ? "#96B2CA" : "#487BF4", g = e.done ? "#7693AF" : "#4175F1", d = e.done ? "#7693AF" : "#6C95F5";
|
|
1588
1588
|
return M("div", [M(Ie, {
|
|
1589
1589
|
attrs: {
|
|
1590
1590
|
path: t.value,
|
|
1591
|
-
strokeWeight: a + 2 *
|
|
1591
|
+
strokeWeight: a + 2 * o + 2 * s,
|
|
1592
1592
|
strokeOpacity: 1,
|
|
1593
1593
|
strokeColor: g
|
|
1594
1594
|
}
|
|
@@ -1598,7 +1598,7 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1598
1598
|
icons: [{
|
|
1599
1599
|
icon: {
|
|
1600
1600
|
path: "M 0,-0.5 0,0.5",
|
|
1601
|
-
strokeWeight: a + 2 *
|
|
1601
|
+
strokeWeight: a + 2 * o,
|
|
1602
1602
|
strokeColor: d,
|
|
1603
1603
|
fillColor: d,
|
|
1604
1604
|
scale: 1
|
|
@@ -1617,7 +1617,7 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1617
1617
|
icon: {
|
|
1618
1618
|
path: google.maps.SymbolPath.FORWARD_OPEN_ARROW,
|
|
1619
1619
|
strokeColor: "white",
|
|
1620
|
-
strokeWeight:
|
|
1620
|
+
strokeWeight: r,
|
|
1621
1621
|
scale: 3
|
|
1622
1622
|
},
|
|
1623
1623
|
repeat: `${i}px`
|
|
@@ -1630,7 +1630,7 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1630
1630
|
return () => e.path.length ? G(t.supplier === "gmap" ? Ka : _a, {
|
|
1631
1631
|
attrs: e
|
|
1632
1632
|
}) : null;
|
|
1633
|
-
}),
|
|
1633
|
+
}), dn = (e) => {
|
|
1634
1634
|
const t = P({ path: [], distance: 0, duration: 0 }), n = new AMap.Driving({});
|
|
1635
1635
|
return K(
|
|
1636
1636
|
() => ({ ...e }),
|
|
@@ -1639,11 +1639,11 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1639
1639
|
AMap.LngLat.from(i),
|
|
1640
1640
|
AMap.LngLat.from(a),
|
|
1641
1641
|
{ waypoints: [] },
|
|
1642
|
-
(
|
|
1643
|
-
switch (
|
|
1642
|
+
(o, r) => {
|
|
1643
|
+
switch (o) {
|
|
1644
1644
|
case "complete": {
|
|
1645
1645
|
let s = [];
|
|
1646
|
-
const g =
|
|
1646
|
+
const g = r.routes[0];
|
|
1647
1647
|
for (const d of g.steps) {
|
|
1648
1648
|
const l = d.path.map(({ lng: I, lat: m }) => [I, m]);
|
|
1649
1649
|
s = s.concat(l);
|
|
@@ -1655,13 +1655,13 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1655
1655
|
t.path = [], t.distance = 0, t.duration = 0;
|
|
1656
1656
|
return;
|
|
1657
1657
|
default:
|
|
1658
|
-
throw
|
|
1658
|
+
throw r;
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
1661
1661
|
);
|
|
1662
1662
|
}
|
|
1663
1663
|
), t;
|
|
1664
|
-
},
|
|
1664
|
+
}, gn = (e) => {
|
|
1665
1665
|
const t = P({ path: [], distance: 0, duration: 0 }), n = new google.maps.DirectionsService();
|
|
1666
1666
|
return K(
|
|
1667
1667
|
() => ({ ...e }),
|
|
@@ -1672,12 +1672,12 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1672
1672
|
destination: { lng: a[0], lat: a[1] },
|
|
1673
1673
|
travelMode: google.maps.TravelMode.DRIVING
|
|
1674
1674
|
},
|
|
1675
|
-
(
|
|
1675
|
+
(o, r) => {
|
|
1676
1676
|
var s, u, g, d;
|
|
1677
|
-
switch (
|
|
1677
|
+
switch (r) {
|
|
1678
1678
|
case google.maps.DirectionsStatus.OK: {
|
|
1679
1679
|
let c = [], l = 0, I = 0;
|
|
1680
|
-
const m =
|
|
1680
|
+
const m = o.routes[0], p = m.overview_path.map((v) => [
|
|
1681
1681
|
v.lng(),
|
|
1682
1682
|
v.lat()
|
|
1683
1683
|
]);
|
|
@@ -1692,39 +1692,39 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1692
1692
|
t.path = [], t.distance = 0, t.duration = 0;
|
|
1693
1693
|
return;
|
|
1694
1694
|
default:
|
|
1695
|
-
throw new Error(
|
|
1695
|
+
throw new Error(r);
|
|
1696
1696
|
}
|
|
1697
1697
|
}
|
|
1698
1698
|
);
|
|
1699
1699
|
}
|
|
1700
1700
|
), t;
|
|
1701
|
-
},
|
|
1701
|
+
}, lr = (e) => {
|
|
1702
1702
|
const { supplier: t } = N();
|
|
1703
|
-
return t === "gmap" ?
|
|
1703
|
+
return t === "gmap" ? gn(e) : dn(e);
|
|
1704
1704
|
}, qa = (e, t, n) => {
|
|
1705
1705
|
if (!n)
|
|
1706
1706
|
return 0;
|
|
1707
|
-
const { x: i, y: a } = n.lngLatToContainer(e), { x:
|
|
1707
|
+
const { x: i, y: a } = n.lngLatToContainer(e), { x: o, y: r } = n.lngLatToContainer(t), s = Math.atan2(a - r, o - i);
|
|
1708
1708
|
return (Math.PI / 2 - s) / Math.PI * 180;
|
|
1709
|
-
},
|
|
1709
|
+
}, In = (e) => h(() => {
|
|
1710
1710
|
const { map: t, path: n } = e, [i, a] = n;
|
|
1711
1711
|
if (!(!i || !a || !t))
|
|
1712
1712
|
return qa(i, a, t);
|
|
1713
|
-
}),
|
|
1713
|
+
}), Mn = (e) => h(() => {
|
|
1714
1714
|
const { path: t } = e, [n, i] = t;
|
|
1715
1715
|
if (!(!n || !i))
|
|
1716
1716
|
return google.maps.geometry.spherical.computeHeading(T(n), T(i));
|
|
1717
|
-
}),
|
|
1717
|
+
}), dr = (e) => {
|
|
1718
1718
|
const { supplier: t } = N();
|
|
1719
|
-
return t === "gmap" ?
|
|
1720
|
-
},
|
|
1719
|
+
return t === "gmap" ? Mn(e) : In(e);
|
|
1720
|
+
}, eo = j((e, {
|
|
1721
1721
|
slots: t
|
|
1722
1722
|
}) => {
|
|
1723
1723
|
const n = se(), {
|
|
1724
1724
|
path: i,
|
|
1725
1725
|
distance: a,
|
|
1726
|
-
duration:
|
|
1727
|
-
} =
|
|
1726
|
+
duration: o
|
|
1727
|
+
} = Nt(dn(e)), r = In(P({
|
|
1728
1728
|
path: i,
|
|
1729
1729
|
map: n
|
|
1730
1730
|
}));
|
|
@@ -1732,19 +1732,19 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1732
1732
|
var s;
|
|
1733
1733
|
return M("div", [(s = t.render) == null ? void 0 : s.call(t, P({
|
|
1734
1734
|
path: i,
|
|
1735
|
-
angle:
|
|
1735
|
+
angle: r,
|
|
1736
1736
|
distance: a,
|
|
1737
|
-
duration:
|
|
1737
|
+
duration: o
|
|
1738
1738
|
}))]);
|
|
1739
1739
|
};
|
|
1740
|
-
}),
|
|
1740
|
+
}), to = j((e, {
|
|
1741
1741
|
slots: t
|
|
1742
1742
|
}) => {
|
|
1743
1743
|
const n = ce(), {
|
|
1744
1744
|
path: i,
|
|
1745
1745
|
distance: a,
|
|
1746
|
-
duration:
|
|
1747
|
-
} =
|
|
1746
|
+
duration: o
|
|
1747
|
+
} = Nt(gn(e)), r = Mn(P({
|
|
1748
1748
|
path: i,
|
|
1749
1749
|
map: n
|
|
1750
1750
|
}));
|
|
@@ -1752,9 +1752,9 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1752
1752
|
var s;
|
|
1753
1753
|
return M("div", [(s = t.render) == null ? void 0 : s.call(t, P({
|
|
1754
1754
|
path: i,
|
|
1755
|
-
angle:
|
|
1755
|
+
angle: r,
|
|
1756
1756
|
distance: a,
|
|
1757
|
-
duration:
|
|
1757
|
+
duration: o
|
|
1758
1758
|
}))]);
|
|
1759
1759
|
};
|
|
1760
1760
|
}), we = j((e, {
|
|
@@ -1763,41 +1763,41 @@ const $a = j((e, { slots: t, emit: n }) => {
|
|
|
1763
1763
|
const {
|
|
1764
1764
|
supplier: n
|
|
1765
1765
|
} = N();
|
|
1766
|
-
return () => G(n === "gmap" ?
|
|
1766
|
+
return () => G(n === "gmap" ? to : eo, {
|
|
1767
1767
|
attrs: e,
|
|
1768
1768
|
scopedSlots: t
|
|
1769
1769
|
});
|
|
1770
|
-
}),
|
|
1770
|
+
}), no = 20, io = (e) => {
|
|
1771
1771
|
const { mapRef: t, autoFitTimeout: n } = e, i = /* @__PURE__ */ new Set();
|
|
1772
1772
|
let a;
|
|
1773
|
-
const
|
|
1773
|
+
const o = () => {
|
|
1774
1774
|
var m;
|
|
1775
1775
|
const u = t.value;
|
|
1776
1776
|
if (!u)
|
|
1777
1777
|
return;
|
|
1778
1778
|
const g = window.innerWidth / 100, [d, c, l, I] = (m = e.padding) != null ? m : [0, 0, 0, 0];
|
|
1779
1779
|
u.setFitView([...i], !1, [d * g, l * g, I * g, c * g]);
|
|
1780
|
-
},
|
|
1780
|
+
}, r = {
|
|
1781
1781
|
add: (u) => {
|
|
1782
1782
|
i.add(u);
|
|
1783
1783
|
},
|
|
1784
1784
|
remove: (u) => {
|
|
1785
1785
|
i.delete(u);
|
|
1786
1786
|
},
|
|
1787
|
-
setFitView:
|
|
1787
|
+
setFitView: o
|
|
1788
1788
|
};
|
|
1789
1789
|
return ae(
|
|
1790
1790
|
t,
|
|
1791
1791
|
{},
|
|
1792
1792
|
() => {
|
|
1793
1793
|
n && (a && clearTimeout(a), a = setTimeout(() => {
|
|
1794
|
-
a = void 0,
|
|
1794
|
+
a = void 0, o();
|
|
1795
1795
|
}, n));
|
|
1796
1796
|
},
|
|
1797
1797
|
["onDragEnd"]
|
|
1798
|
-
), { registerFitVeiw:
|
|
1798
|
+
), { registerFitVeiw: r, setFitView: o };
|
|
1799
1799
|
};
|
|
1800
|
-
class
|
|
1800
|
+
class ao extends Set {
|
|
1801
1801
|
getBound() {
|
|
1802
1802
|
const t = new google.maps.LatLngBounds();
|
|
1803
1803
|
for (const n of this.values()) {
|
|
@@ -1807,10 +1807,10 @@ class ar extends Set {
|
|
|
1807
1807
|
return t;
|
|
1808
1808
|
}
|
|
1809
1809
|
}
|
|
1810
|
-
const
|
|
1811
|
-
const { mapRef: t, autoFitTimeout: n } = e, { executeMapApi: i } =
|
|
1812
|
-
let
|
|
1813
|
-
const
|
|
1810
|
+
const oo = (e) => {
|
|
1811
|
+
const { mapRef: t, autoFitTimeout: n } = e, { executeMapApi: i } = ln(), a = new ao();
|
|
1812
|
+
let o;
|
|
1813
|
+
const r = () => {
|
|
1814
1814
|
var v;
|
|
1815
1815
|
const d = t.value;
|
|
1816
1816
|
if (!d)
|
|
@@ -1831,26 +1831,26 @@ const rr = (e) => {
|
|
|
1831
1831
|
remove: (d) => {
|
|
1832
1832
|
a.delete(d);
|
|
1833
1833
|
},
|
|
1834
|
-
setFitView:
|
|
1834
|
+
setFitView: r
|
|
1835
1835
|
}, u = () => {
|
|
1836
1836
|
const d = Fa();
|
|
1837
|
-
!n || d !== "user" || (
|
|
1838
|
-
|
|
1837
|
+
!n || d !== "user" || (o && clearTimeout(o), o = setTimeout(() => {
|
|
1838
|
+
o = void 0, r();
|
|
1839
1839
|
}, n));
|
|
1840
|
-
}, g = sa(u,
|
|
1840
|
+
}, g = sa(u, no);
|
|
1841
1841
|
return _(t, {}, u, [
|
|
1842
1842
|
"onDragEnd"
|
|
1843
1843
|
]), _(t, {}, g, [
|
|
1844
1844
|
"onZoom_changed"
|
|
1845
|
-
]), { registerFitVeiw: s, setFitView:
|
|
1845
|
+
]), { registerFitVeiw: s, setFitView: r };
|
|
1846
1846
|
}, xe = (e) => {
|
|
1847
1847
|
const { supplier: t } = N();
|
|
1848
|
-
return t === "gmap" ?
|
|
1848
|
+
return t === "gmap" ? oo(e) : io(e);
|
|
1849
1849
|
};
|
|
1850
1850
|
j((e, {
|
|
1851
1851
|
slots: t
|
|
1852
1852
|
}) => {
|
|
1853
|
-
const n =
|
|
1853
|
+
const n = Qt(), i = xe({
|
|
1854
1854
|
...e,
|
|
1855
1855
|
mapRef: n
|
|
1856
1856
|
});
|
|
@@ -1859,7 +1859,7 @@ j((e, {
|
|
|
1859
1859
|
return M("div", [(a = t.render) == null ? void 0 : a.call(t, i)]);
|
|
1860
1860
|
};
|
|
1861
1861
|
});
|
|
1862
|
-
const
|
|
1862
|
+
const ro = j((e, {
|
|
1863
1863
|
slots: t
|
|
1864
1864
|
}) => {
|
|
1865
1865
|
const {
|
|
@@ -1871,8 +1871,8 @@ const or = j((e, {
|
|
|
1871
1871
|
var a;
|
|
1872
1872
|
return M("div", [(a = t.default) == null ? void 0 : a.call(t)]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zAgNC45MDEgMCAxMC45NDdjMCAzLjkxOCAyLjA2OCA3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
|
|
1875
|
+
function so(e, t, n) {
|
|
1876
1876
|
return t in e ? Object.defineProperty(e, t, {
|
|
1877
1877
|
value: n,
|
|
1878
1878
|
enumerable: !0,
|
|
@@ -1880,7 +1880,7 @@ function sr(e, t, n) {
|
|
|
1880
1880
|
writable: !0
|
|
1881
1881
|
}) : e[t] = n, e;
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1883
|
+
function mt(e, t) {
|
|
1884
1884
|
var n = Object.keys(e);
|
|
1885
1885
|
if (Object.getOwnPropertySymbols) {
|
|
1886
1886
|
var i = Object.getOwnPropertySymbols(e);
|
|
@@ -1890,18 +1890,18 @@ function Mt(e, t) {
|
|
|
1890
1890
|
}
|
|
1891
1891
|
return n;
|
|
1892
1892
|
}
|
|
1893
|
-
function
|
|
1893
|
+
function pt(e) {
|
|
1894
1894
|
for (var t = 1; t < arguments.length; t++) {
|
|
1895
1895
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
1896
|
-
t % 2 ?
|
|
1897
|
-
|
|
1898
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
1896
|
+
t % 2 ? mt(Object(n), !0).forEach(function(i) {
|
|
1897
|
+
so(e, i, n[i]);
|
|
1898
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : mt(Object(n)).forEach(function(i) {
|
|
1899
1899
|
Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(n, i));
|
|
1900
1900
|
});
|
|
1901
1901
|
}
|
|
1902
1902
|
return e;
|
|
1903
1903
|
}
|
|
1904
|
-
var
|
|
1904
|
+
var co = (e, t, n) => {
|
|
1905
1905
|
for (var i of Object.keys(e)) {
|
|
1906
1906
|
var a;
|
|
1907
1907
|
if (e[i] !== ((a = t[i]) !== null && a !== void 0 ? a : n[i]))
|
|
@@ -1909,11 +1909,11 @@ var cr = (e, t, n) => {
|
|
|
1909
1909
|
}
|
|
1910
1910
|
return !0;
|
|
1911
1911
|
}, q = (e) => (t) => {
|
|
1912
|
-
var n = e.defaultClassName, i =
|
|
1912
|
+
var n = e.defaultClassName, i = pt(pt({}, e.defaultVariants), t);
|
|
1913
1913
|
for (var a in i) {
|
|
1914
|
-
var
|
|
1915
|
-
if (
|
|
1916
|
-
var s =
|
|
1914
|
+
var o, r = (o = i[a]) !== null && o !== void 0 ? o : e.defaultVariants[a];
|
|
1915
|
+
if (r != null) {
|
|
1916
|
+
var s = r;
|
|
1917
1917
|
typeof s == "boolean" && (s = s === !0 ? "true" : "false");
|
|
1918
1918
|
var u = (
|
|
1919
1919
|
// @ts-expect-error
|
|
@@ -1923,20 +1923,20 @@ var cr = (e, t, n) => {
|
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
1925
1925
|
for (var [g, d] of e.compoundVariants)
|
|
1926
|
-
|
|
1926
|
+
co(g, i, e.defaultVariants) && (n += " " + d);
|
|
1927
1927
|
return n;
|
|
1928
|
-
}, X = q({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] }),
|
|
1929
|
-
const
|
|
1928
|
+
}, X = q({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] }), fn = "_4a4ovk1", vn = "_4a4ovk4", yn = "_4a4ovk5", jn = "_4a4ovk3", pe = "_4a4ovk0", Ln = "_4a4ovk2";
|
|
1929
|
+
const uo = j((e) => {
|
|
1930
1930
|
const t = h(() => {
|
|
1931
1931
|
var a;
|
|
1932
|
-
const n = e.type === "start" ?
|
|
1932
|
+
const n = e.type === "start" ? pn : mn, i = e.description ? Se(e.description).map((o) => o.type === "normal" ? o.value : `<span class="${yn}">${o.value}</span>`).join("") : "";
|
|
1933
1933
|
return !e.description && !e.title ? `<img src="${n}" class="${X({
|
|
1934
1934
|
type: e.type
|
|
1935
1935
|
})}">` : e.description ? `
|
|
1936
1936
|
<div class="${pe}">
|
|
1937
|
-
<div class="${
|
|
1938
|
-
<div class="${
|
|
1939
|
-
<div class="${
|
|
1937
|
+
<div class="${fn}">
|
|
1938
|
+
<div class="${jn}">${(a = e.title) != null ? a : ""}</div>
|
|
1939
|
+
<div class="${vn}">${i}</div>
|
|
1940
1940
|
</div>
|
|
1941
1941
|
<img src="${n}" class="${X({
|
|
1942
1942
|
type: e.type
|
|
@@ -1944,7 +1944,7 @@ const ur = j((e) => {
|
|
|
1944
1944
|
</div>
|
|
1945
1945
|
` : `
|
|
1946
1946
|
<div class="${pe}">
|
|
1947
|
-
<div class="${
|
|
1947
|
+
<div class="${Ln}">${e.title}</div>
|
|
1948
1948
|
<img src="${n}" class="${X({
|
|
1949
1949
|
type: e.type
|
|
1950
1950
|
})}">
|
|
@@ -1959,10 +1959,10 @@ const ur = j((e) => {
|
|
|
1959
1959
|
anchor: "bottom-center"
|
|
1960
1960
|
}
|
|
1961
1961
|
});
|
|
1962
|
-
}),
|
|
1962
|
+
}), lo = j((e) => {
|
|
1963
1963
|
const t = h(() => {
|
|
1964
1964
|
var a;
|
|
1965
|
-
const n = e.type === "start" ?
|
|
1965
|
+
const n = e.type === "start" ? pn : mn, i = e.description ? Se(e.description).map((o) => o.type === "normal" ? o.value : `<span class="${yn}">${o.value}</span>`).join("") : "";
|
|
1966
1966
|
return !e.description && !e.title ? R("img", {
|
|
1967
1967
|
class: X({
|
|
1968
1968
|
type: e.type
|
|
@@ -1971,9 +1971,9 @@ const ur = j((e) => {
|
|
|
1971
1971
|
}) : e.description ? R("div", {
|
|
1972
1972
|
class: pe
|
|
1973
1973
|
}, `
|
|
1974
|
-
<div class="${
|
|
1975
|
-
<div class="${
|
|
1976
|
-
<div class="${
|
|
1974
|
+
<div class="${fn}">
|
|
1975
|
+
<div class="${jn}">${(a = e.title) != null ? a : ""}</div>
|
|
1976
|
+
<div class="${vn}">${i}</div>
|
|
1977
1977
|
</div>
|
|
1978
1978
|
<img src="${n}" class="${X({
|
|
1979
1979
|
type: e.type
|
|
@@ -1981,7 +1981,7 @@ const ur = j((e) => {
|
|
|
1981
1981
|
`) : R("div", {
|
|
1982
1982
|
class: pe
|
|
1983
1983
|
}, `
|
|
1984
|
-
<div class="${
|
|
1984
|
+
<div class="${Ln}">${e.title}</div>
|
|
1985
1985
|
<img src="${n}" class="${X({
|
|
1986
1986
|
type: e.type
|
|
1987
1987
|
})}">
|
|
@@ -1996,10 +1996,11 @@ const ur = j((e) => {
|
|
|
1996
1996
|
});
|
|
1997
1997
|
}), O = j((e) => {
|
|
1998
1998
|
const t = N();
|
|
1999
|
-
return () => G(t.supplier === "gmap" ?
|
|
1999
|
+
return () => G(t.supplier === "gmap" ? lo : uo, {
|
|
2000
2000
|
attrs: e
|
|
2001
2001
|
});
|
|
2002
|
-
}),
|
|
2002
|
+
}), gr = re((e) => {
|
|
2003
|
+
e.log && console.log(e);
|
|
2003
2004
|
const {
|
|
2004
2005
|
registerOverlay: t,
|
|
2005
2006
|
mapRef: n,
|
|
@@ -2008,9 +2009,9 @@ const ur = j((e) => {
|
|
|
2008
2009
|
return () => {
|
|
2009
2010
|
const {
|
|
2010
2011
|
from: a,
|
|
2011
|
-
to:
|
|
2012
|
-
fromDescription:
|
|
2013
|
-
} = e, s = x(a), u = x(
|
|
2012
|
+
to: o,
|
|
2013
|
+
fromDescription: r
|
|
2014
|
+
} = e, s = x(a), u = x(o);
|
|
2014
2015
|
return M(he, {
|
|
2015
2016
|
attrs: {
|
|
2016
2017
|
mapRef: n,
|
|
@@ -2023,7 +2024,7 @@ const ur = j((e) => {
|
|
|
2023
2024
|
registerOverlay: t,
|
|
2024
2025
|
position: s,
|
|
2025
2026
|
title: a.name,
|
|
2026
|
-
description:
|
|
2027
|
+
description: r
|
|
2027
2028
|
}
|
|
2028
2029
|
}), M(we, {
|
|
2029
2030
|
attrs: {
|
|
@@ -2042,7 +2043,7 @@ const ur = j((e) => {
|
|
|
2042
2043
|
type: "end",
|
|
2043
2044
|
registerOverlay: t,
|
|
2044
2045
|
position: u,
|
|
2045
|
-
title:
|
|
2046
|
+
title: o.name,
|
|
2046
2047
|
description: i({
|
|
2047
2048
|
distance: d,
|
|
2048
2049
|
duration: c
|
|
@@ -2050,23 +2051,23 @@ const ur = j((e) => {
|
|
|
2050
2051
|
}
|
|
2051
2052
|
})]
|
|
2052
2053
|
}
|
|
2053
|
-
}), M(
|
|
2054
|
+
}), M(ro, {
|
|
2054
2055
|
attrs: {
|
|
2055
2056
|
registerOverlay: t
|
|
2056
2057
|
}
|
|
2057
2058
|
})]);
|
|
2058
2059
|
};
|
|
2059
|
-
}).props(["fallback", "from", "loading", "mapRef", "registerOverlay", "renderDescription", "to", "fromDescription"]),
|
|
2060
|
+
}).props(["fallback", "from", "loading", "mapRef", "registerOverlay", "renderDescription", "to", "fromDescription", "log"]), go = 5e3, Ce = (e) => {
|
|
2060
2061
|
var l, I;
|
|
2061
|
-
const { onChange: t, onLoad: n, onLoadDefault: i, onError: a, geoDefaultPosition:
|
|
2062
|
-
let
|
|
2062
|
+
const { onChange: t, onLoad: n, onLoadDefault: i, onError: a, geoDefaultPosition: o } = e != null ? e : {};
|
|
2063
|
+
let r = !1;
|
|
2063
2064
|
const s = w(!1), u = w(!1), g = w(), d = w({
|
|
2064
2065
|
accuracy: 0,
|
|
2065
2066
|
altitude: 0,
|
|
2066
2067
|
altitudeAccuracy: 0,
|
|
2067
2068
|
heading: 0,
|
|
2068
|
-
latitude: (l =
|
|
2069
|
-
longitude: (I =
|
|
2069
|
+
latitude: (l = o == null ? void 0 : o[1]) != null ? l : 0,
|
|
2070
|
+
longitude: (I = o == null ? void 0 : o[0]) != null ? I : 0,
|
|
2070
2071
|
speed: 0
|
|
2071
2072
|
}), c = w([d.value.longitude, d.value.latitude]);
|
|
2072
2073
|
return b(
|
|
@@ -2081,9 +2082,9 @@ const ur = j((e) => {
|
|
|
2081
2082
|
(f) => {
|
|
2082
2083
|
s.value = !1, g.value = f;
|
|
2083
2084
|
const L = e == null ? void 0 : e.geoDefaultPosition;
|
|
2084
|
-
L && !
|
|
2085
|
+
L && !r && (r = !0, i == null || i({ position: L })), a == null || a(f);
|
|
2085
2086
|
},
|
|
2086
|
-
{ timeout:
|
|
2087
|
+
{ timeout: go, maximumAge: 0, enableHighAccuracy: !1 }
|
|
2087
2088
|
);
|
|
2088
2089
|
v(() => navigator.geolocation.clearWatch(y));
|
|
2089
2090
|
},
|
|
@@ -2095,16 +2096,16 @@ const ur = j((e) => {
|
|
|
2095
2096
|
geoLoading: s,
|
|
2096
2097
|
geoReady: u
|
|
2097
2098
|
};
|
|
2098
|
-
},
|
|
2099
|
-
const e =
|
|
2099
|
+
}, Io = () => {
|
|
2100
|
+
const e = z();
|
|
2100
2101
|
return { mapRef: e, panTo: (i) => {
|
|
2101
2102
|
var a;
|
|
2102
2103
|
return (a = e == null ? void 0 : e.value) == null ? void 0 : a.panTo(i);
|
|
2103
2104
|
}, setMap: (i) => {
|
|
2104
2105
|
e.value = i;
|
|
2105
2106
|
} };
|
|
2106
|
-
},
|
|
2107
|
-
const e =
|
|
2107
|
+
}, Mo = () => {
|
|
2108
|
+
const e = z();
|
|
2108
2109
|
return { mapRef: e, panTo: (i) => {
|
|
2109
2110
|
var a;
|
|
2110
2111
|
return (a = e == null ? void 0 : e.value) == null ? void 0 : a.panTo(T(i));
|
|
@@ -2113,49 +2114,49 @@ const ur = j((e) => {
|
|
|
2113
2114
|
} };
|
|
2114
2115
|
}, Pe = () => {
|
|
2115
2116
|
const { supplier: e } = N();
|
|
2116
|
-
return e === "gmap" ?
|
|
2117
|
-
},
|
|
2118
|
-
const { mapRef: t, onChange: n } = e, i = w([0, 0]), a = w(!1),
|
|
2117
|
+
return e === "gmap" ? Mo() : Io();
|
|
2118
|
+
}, mo = (e) => {
|
|
2119
|
+
const { mapRef: t, onChange: n } = e, i = w([0, 0]), a = w(!1), o = () => {
|
|
2119
2120
|
me(() => {
|
|
2120
2121
|
a.value = !0;
|
|
2121
2122
|
})();
|
|
2122
|
-
},
|
|
2123
|
+
}, r = (s, { target: u }) => {
|
|
2123
2124
|
var c;
|
|
2124
2125
|
a.value = !1;
|
|
2125
2126
|
const { lng: g, lat: d } = u.getCenter();
|
|
2126
2127
|
i.value = [g, d], (c = me(n)) == null || c([g, d]);
|
|
2127
2128
|
};
|
|
2128
|
-
return ae(t, {},
|
|
2129
|
+
return ae(t, {}, o, [
|
|
2129
2130
|
"onDragStart"
|
|
2130
|
-
]), ae(t, {},
|
|
2131
|
+
]), ae(t, {}, r, [
|
|
2131
2132
|
"onDragEnd"
|
|
2132
2133
|
]), { centerRef: i, isDragging: a };
|
|
2133
|
-
},
|
|
2134
|
-
const { mapRef: t, onChange: n } = e, i = w([0, 0]), a = w(!1),
|
|
2134
|
+
}, po = (e) => {
|
|
2135
|
+
const { mapRef: t, onChange: n } = e, i = w([0, 0]), a = w(!1), o = () => {
|
|
2135
2136
|
me(() => {
|
|
2136
2137
|
a.value = !0;
|
|
2137
2138
|
})();
|
|
2138
|
-
},
|
|
2139
|
+
}, r = async () => {
|
|
2139
2140
|
var d, c;
|
|
2140
2141
|
a.value = !1;
|
|
2141
2142
|
const s = (d = t.value) == null ? void 0 : d.getCenter(), u = s == null ? void 0 : s.lng(), g = s == null ? void 0 : s.lat();
|
|
2142
2143
|
i.value = [u, g], (c = me(n)) == null || c([u, g]);
|
|
2143
2144
|
};
|
|
2144
|
-
return _(t, {},
|
|
2145
|
+
return _(t, {}, o, [
|
|
2145
2146
|
"onDragStart"
|
|
2146
|
-
]), _(t, {},
|
|
2147
|
+
]), _(t, {}, r, [
|
|
2147
2148
|
"onDragEnd"
|
|
2148
2149
|
]), { centerRef: i, isDragging: a };
|
|
2149
|
-
},
|
|
2150
|
+
}, fo = (e) => {
|
|
2150
2151
|
const { supplier: t } = N();
|
|
2151
|
-
return t === "gmap" ?
|
|
2152
|
+
return t === "gmap" ? po(e) : mo(e);
|
|
2152
2153
|
}, ee = () => {
|
|
2153
2154
|
const e = w(0);
|
|
2154
2155
|
return { idx: e, update: () => {
|
|
2155
2156
|
e.value += 1;
|
|
2156
2157
|
} };
|
|
2157
|
-
},
|
|
2158
|
-
const { onChange: t, onChangeCity: n } = e, i = [...e.pointRef.value], a = w(i), { readyPromise:
|
|
2158
|
+
}, An = (e) => {
|
|
2159
|
+
const { onChange: t, onChangeCity: n } = e, i = [...e.pointRef.value], a = w(i), { readyPromise: o } = N(), r = P({
|
|
2159
2160
|
lng: a.value[0],
|
|
2160
2161
|
lat: a.value[1],
|
|
2161
2162
|
name: ""
|
|
@@ -2170,31 +2171,31 @@ const ur = j((e) => {
|
|
|
2170
2171
|
}, d = (l) => {
|
|
2171
2172
|
a.value = l, u();
|
|
2172
2173
|
}, c = (l) => {
|
|
2173
|
-
|
|
2174
|
+
r.lng = l.lng, r.lat = l.lat, r.name = l.name;
|
|
2174
2175
|
};
|
|
2175
2176
|
return b(
|
|
2176
2177
|
() => s.value,
|
|
2177
2178
|
async () => {
|
|
2178
|
-
await
|
|
2179
|
+
await o;
|
|
2179
2180
|
const l = new AMap.Geocoder({ lang: ie }), [I, m] = a.value;
|
|
2180
2181
|
l.getAddress(new AMap.LngLat(I, m), (p, v) => {
|
|
2181
2182
|
switch (p) {
|
|
2182
2183
|
case "complete": {
|
|
2183
2184
|
const { formattedAddress: y, addressComponent: f } = v.regeocode, L = f.city ? f.city : f.province, A = f.province;
|
|
2184
|
-
|
|
2185
|
+
r.name = y, r.lng = I, r.lat = m, t == null || t({ lng: I, lat: m, name: y }), n == null || n({ cityName: L, cityParentName: A, countryName: "" });
|
|
2185
2186
|
return;
|
|
2186
2187
|
}
|
|
2187
2188
|
case "no_data":
|
|
2188
|
-
|
|
2189
|
+
r.name = "", t == null || t({ lng: I, lat: m, name: "" });
|
|
2189
2190
|
return;
|
|
2190
2191
|
case "error":
|
|
2191
2192
|
throw v;
|
|
2192
2193
|
}
|
|
2193
2194
|
});
|
|
2194
2195
|
}
|
|
2195
|
-
), { place:
|
|
2196
|
-
},
|
|
2197
|
-
const { onChange: t, onChangeCity: n } = e, i = [...e.pointRef.value], a = w(i), { readyPromise:
|
|
2196
|
+
), { place: r, updatePlace: d, setPlace: c, updateCity: g };
|
|
2197
|
+
}, Nn = (e) => {
|
|
2198
|
+
const { onChange: t, onChangeCity: n } = e, i = [...e.pointRef.value], a = w(i), { readyPromise: o } = N(), { idx: r, update: s } = ee(), u = P({
|
|
2198
2199
|
lng: a.value[0],
|
|
2199
2200
|
lat: a.value[1],
|
|
2200
2201
|
name: ""
|
|
@@ -2203,43 +2204,43 @@ const ur = j((e) => {
|
|
|
2203
2204
|
}, d = (l) => {
|
|
2204
2205
|
u.lng = l.lng, u.lat = l.lat, u.name = l.name;
|
|
2205
2206
|
}, c = async (l) => {
|
|
2206
|
-
const I = new google.maps.Geocoder(), { lng: m, lat: p } = l, { results: v } = await I.geocode({ language: ie, location: { lng: m, lat: p } }), y =
|
|
2207
|
+
const I = new google.maps.Geocoder(), { lng: m, lat: p } = l, { results: v } = await I.geocode({ language: ie, location: { lng: m, lat: p } }), y = It(v[0]), f = v.slice(-2)[0].address_components[0].long_name, L = v.slice(-1)[0].address_components[0].long_name;
|
|
2207
2208
|
n == null || n({ cityName: y, cityParentName: f, countryName: L });
|
|
2208
2209
|
};
|
|
2209
2210
|
return b(
|
|
2210
|
-
() =>
|
|
2211
|
+
() => r.value,
|
|
2211
2212
|
async () => {
|
|
2212
|
-
await
|
|
2213
|
-
const l = new google.maps.Geocoder(), [I, m] = a.value, { results: p } = await l.geocode({ language: ie, location: { lng: I, lat: m } }), v = p[0].formatted_address, y =
|
|
2213
|
+
await o;
|
|
2214
|
+
const l = new google.maps.Geocoder(), [I, m] = a.value, { results: p } = await l.geocode({ language: ie, location: { lng: I, lat: m } }), v = p[0].formatted_address, y = It(p[0]), f = p.slice(-2)[0].address_components[0].long_name, L = p.slice(-1)[0].address_components[0].long_name;
|
|
2214
2215
|
u.lng = I, u.lat = m, u.name = v, t == null || t({ lng: I, lat: m, name: v }), n == null || n({ cityName: y, cityParentName: f, countryName: L });
|
|
2215
2216
|
}
|
|
2216
2217
|
), { place: u, updatePlace: g, setPlace: d, updateCity: c };
|
|
2217
|
-
},
|
|
2218
|
+
}, Ir = (e) => {
|
|
2218
2219
|
const { supplier: t } = N();
|
|
2219
|
-
return t === "gmap" ?
|
|
2220
|
-
},
|
|
2220
|
+
return t === "gmap" ? Nn(e) : An(e);
|
|
2221
|
+
}, vo = (e, t) => {
|
|
2221
2222
|
let n = 1 / 0, i = e;
|
|
2222
2223
|
for (const a of t) {
|
|
2223
|
-
const
|
|
2224
|
-
|
|
2224
|
+
const o = AMap.GeometryUtil.distance(x(e), x(a));
|
|
2225
|
+
o >= n || (i = a, n = o);
|
|
2225
2226
|
}
|
|
2226
2227
|
return { shortestPlace: i, shortestDistance: n };
|
|
2227
|
-
},
|
|
2228
|
+
}, yo = (e, t) => {
|
|
2228
2229
|
let n = 1 / 0, i = e;
|
|
2229
2230
|
for (const a of t) {
|
|
2230
|
-
const
|
|
2231
|
-
|
|
2231
|
+
const o = google.maps.geometry.spherical.computeDistanceBetween(e, a);
|
|
2232
|
+
o >= n || (i = a, n = o);
|
|
2232
2233
|
}
|
|
2233
2234
|
return { shortestPlace: i, shortestDistance: n };
|
|
2234
|
-
},
|
|
2235
|
-
const { pointRef: t, getRecomendPlace: n, getLimit: i, context: a, onChange:
|
|
2235
|
+
}, jo = (e) => {
|
|
2236
|
+
const { pointRef: t, getRecomendPlace: n, getLimit: i, context: a, onChange: o, onChangePlace: r, onChangeCity: s } = e, u = w(!0), g = w([]), { idx: d, update: c } = ee(), { readyPromise: l } = N(), { place: I, updatePlace: m, setPlace: p, updateCity: v } = An({
|
|
2236
2237
|
pointRef: t,
|
|
2237
|
-
onChange:
|
|
2238
|
+
onChange: r,
|
|
2238
2239
|
onChangeCity: s
|
|
2239
2240
|
}), y = P({ ...I }), f = h(() => {
|
|
2240
2241
|
const L = t.value;
|
|
2241
2242
|
return g.value.some(
|
|
2242
|
-
(A) =>
|
|
2243
|
+
(A) => _t(x(A), L)
|
|
2243
2244
|
);
|
|
2244
2245
|
});
|
|
2245
2246
|
return b(
|
|
@@ -2248,11 +2249,11 @@ const ur = j((e) => {
|
|
|
2248
2249
|
await l;
|
|
2249
2250
|
const L = await n({ ...I }, a);
|
|
2250
2251
|
if (L === void 0) {
|
|
2251
|
-
u.value = !1, g.value = [], Object.assign(y, { ...I }),
|
|
2252
|
+
u.value = !1, g.value = [], Object.assign(y, { ...I }), o == null || o({ ...I });
|
|
2252
2253
|
return;
|
|
2253
2254
|
}
|
|
2254
|
-
const { shortestPlace: A, shortestDistance:
|
|
2255
|
-
u.value = !0, g.value = L, Object.assign(y, { ...C }),
|
|
2255
|
+
const { shortestPlace: A, shortestDistance: E } = vo(I, L), D = i(a), C = E > D ? I : A;
|
|
2256
|
+
u.value = !0, g.value = L, Object.assign(y, { ...C }), o == null || o({ ...C });
|
|
2256
2257
|
}
|
|
2257
2258
|
), {
|
|
2258
2259
|
recomendPlace: y,
|
|
@@ -2264,15 +2265,15 @@ const ur = j((e) => {
|
|
|
2264
2265
|
setPlace: p,
|
|
2265
2266
|
updateCity: v
|
|
2266
2267
|
};
|
|
2267
|
-
},
|
|
2268
|
-
const { pointRef: t, getRecomendPlace: n, getLimit: i, context: a, onChange:
|
|
2268
|
+
}, Lo = (e) => {
|
|
2269
|
+
const { pointRef: t, getRecomendPlace: n, getLimit: i, context: a, onChange: o, onChangePlace: r, onChangeCity: s } = e, u = w(!0), g = w([]), { idx: d, update: c } = ee(), { readyPromise: l } = N(), { place: I, updatePlace: m, setPlace: p, updateCity: v } = Nn({
|
|
2269
2270
|
pointRef: t,
|
|
2270
|
-
onChange:
|
|
2271
|
+
onChange: r,
|
|
2271
2272
|
onChangeCity: s
|
|
2272
2273
|
}), y = P({ ...I }), f = h(() => {
|
|
2273
2274
|
const L = t.value;
|
|
2274
2275
|
return g.value.some(
|
|
2275
|
-
(A) =>
|
|
2276
|
+
(A) => _t(x(A), L)
|
|
2276
2277
|
);
|
|
2277
2278
|
});
|
|
2278
2279
|
return b(
|
|
@@ -2281,11 +2282,11 @@ const ur = j((e) => {
|
|
|
2281
2282
|
await l;
|
|
2282
2283
|
const L = await n({ ...I }, a);
|
|
2283
2284
|
if (L === void 0) {
|
|
2284
|
-
u.value = !1, g.value = [], Object.assign(y, { ...I }),
|
|
2285
|
+
u.value = !1, g.value = [], Object.assign(y, { ...I }), o == null || o({ ...I });
|
|
2285
2286
|
return;
|
|
2286
2287
|
}
|
|
2287
|
-
const { shortestPlace: A, shortestDistance:
|
|
2288
|
-
u.value = !0, g.value = L, Object.assign(y, { ...C }),
|
|
2288
|
+
const { shortestPlace: A, shortestDistance: E } = yo(I, L), D = i(a), C = E > D ? I : A;
|
|
2289
|
+
u.value = !0, g.value = L, Object.assign(y, { ...C }), o == null || o({ ...C });
|
|
2289
2290
|
}
|
|
2290
2291
|
), {
|
|
2291
2292
|
recomendPlace: y,
|
|
@@ -2297,10 +2298,10 @@ const ur = j((e) => {
|
|
|
2297
2298
|
setPlace: p,
|
|
2298
2299
|
updateCity: v
|
|
2299
2300
|
};
|
|
2300
|
-
},
|
|
2301
|
+
}, Ao = (e) => {
|
|
2301
2302
|
const { supplier: t } = N();
|
|
2302
|
-
return t === "gmap" ?
|
|
2303
|
-
},
|
|
2303
|
+
return t === "gmap" ? Lo(e) : jo(e);
|
|
2304
|
+
}, No = (e) => {
|
|
2304
2305
|
const { interval: t } = e;
|
|
2305
2306
|
let n;
|
|
2306
2307
|
const i = {
|
|
@@ -2308,20 +2309,20 @@ const ur = j((e) => {
|
|
|
2308
2309
|
resolve: void 0
|
|
2309
2310
|
};
|
|
2310
2311
|
return { timerStart: () => {
|
|
2311
|
-
var
|
|
2312
|
-
n && clearTimeout(n), (
|
|
2313
|
-
i.resolve =
|
|
2312
|
+
var o;
|
|
2313
|
+
n && clearTimeout(n), (o = i.resolve) == null || o.call(i), i.promise = new Promise((r) => {
|
|
2314
|
+
i.resolve = r, n = setTimeout(r, t);
|
|
2314
2315
|
});
|
|
2315
2316
|
}, timerStop: i };
|
|
2316
|
-
},
|
|
2317
|
-
var
|
|
2318
|
-
const
|
|
2317
|
+
}, Sn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjEiIGhlaWdodD0iNjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTcuMSUiIHk9Ii03LjElIiB3aWR0aD0iMTE0LjMlIiBoZWlnaHQ9IjExNC4zJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249Ii41IiBpbj0ic2hhZG93T2Zmc2V0T3V0ZXIxIiByZXN1bHQ9InNoYWRvd0JsdXJPdXRlcjEiLz48ZmVDb21wb3NpdGUgaW49InNoYWRvd0JsdXJPdXRlcjEiIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNzc0NTMwMTYgMCIgaW49InNoYWRvd0JsdXJPdXRlcjEiLz48L2ZpbHRlcj48Y2lyY2xlIGlkPSJwcmVmaXhfX2IiIGN4PSIzMCIgY3k9IjMwIiByPSIxMC41Ii8+PC9kZWZzPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC40MDUgLjI2NCkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGNpcmNsZSBzdHJva2Utb3BhY2l0eT0iLjEiIHN0cm9rZT0iIzAwM0RGRiIgZmlsbC1vcGFjaXR5PSIuMTUiIGZpbGw9IiM0ODczRkUiIGN4PSIzMCIgY3k9IjMwIiByPSIyOS41Ii8+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjcHJlZml4X19hKSIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjxjaXJjbGUgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVqb2luPSJzcXVhcmUiIGZpbGw9IiM0ODcxRjEiIGN4PSIzMCIgY3k9IjMwIiByPSI5LjMiLz48L2c+PC9zdmc+";
|
|
2318
|
+
var hn = q({ defaultClassName: "_1l6offo0", variantClassNames: { size: { small: "_1l6offo1", large: "_1l6offo2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
2319
|
+
const So = j((e) => {
|
|
2319
2320
|
const t = h(() => {
|
|
2320
2321
|
const {
|
|
2321
2322
|
size: n = "large"
|
|
2322
2323
|
} = e;
|
|
2323
2324
|
return `
|
|
2324
|
-
<img src="${n === "large" ?
|
|
2325
|
+
<img src="${n === "large" ? Sn : U}" class="${hn({
|
|
2325
2326
|
size: n
|
|
2326
2327
|
})}">
|
|
2327
2328
|
`;
|
|
@@ -2334,13 +2335,13 @@ const Nr = j((e) => {
|
|
|
2334
2335
|
registerOverlay: e.registerOverlay
|
|
2335
2336
|
}
|
|
2336
2337
|
});
|
|
2337
|
-
}),
|
|
2338
|
+
}), ho = j((e) => {
|
|
2338
2339
|
const t = h(() => {
|
|
2339
2340
|
const {
|
|
2340
2341
|
size: n = "large"
|
|
2341
|
-
} = e, i = n === "large" ?
|
|
2342
|
+
} = e, i = n === "large" ? Sn : U;
|
|
2342
2343
|
return R("img", {
|
|
2343
|
-
class:
|
|
2344
|
+
class: hn({
|
|
2344
2345
|
size: n
|
|
2345
2346
|
}),
|
|
2346
2347
|
src: i
|
|
@@ -2355,41 +2356,41 @@ const Nr = j((e) => {
|
|
|
2355
2356
|
});
|
|
2356
2357
|
}), be = j((e) => {
|
|
2357
2358
|
const t = N();
|
|
2358
|
-
return () => G(t.supplier === "gmap" ?
|
|
2359
|
+
return () => G(t.supplier === "gmap" ? ho : So, {
|
|
2359
2360
|
attrs: e
|
|
2360
2361
|
});
|
|
2361
|
-
}),
|
|
2362
|
+
}), Do = () => {
|
|
2362
2363
|
const e = se();
|
|
2363
2364
|
return { apiMapLngLatToVw: (n) => {
|
|
2364
2365
|
var i;
|
|
2365
2366
|
return (i = e == null ? void 0 : e.value) == null ? void 0 : i.lngLatToContainer(n).toArray();
|
|
2366
2367
|
} };
|
|
2367
|
-
},
|
|
2368
|
+
}, wo = () => {
|
|
2368
2369
|
const e = ce();
|
|
2369
2370
|
return { apiMapLngLatToVw: (n) => {
|
|
2370
2371
|
var c, l, I, m, p;
|
|
2371
|
-
const [i, a] = n,
|
|
2372
|
+
const [i, a] = n, o = (c = e == null ? void 0 : e.value) == null ? void 0 : c.getProjection(), r = o == null ? void 0 : o.fromLatLngToPoint({ lng: i, lat: a }), s = (l = r == null ? void 0 : r.x) != null ? l : 0, u = (I = r == null ? void 0 : r.y) != null ? I : 0, d = 2 ** ((p = (m = e == null ? void 0 : e.value) == null ? void 0 : m.getZoom()) != null ? p : 0);
|
|
2372
2373
|
return [s * d, u * d];
|
|
2373
2374
|
} };
|
|
2374
|
-
},
|
|
2375
|
+
}, xo = () => {
|
|
2375
2376
|
const { supplier: e } = N();
|
|
2376
|
-
return e === "gmap" ?
|
|
2377
|
-
},
|
|
2378
|
-
const { widthLimit: t, heightLimit: n } = e, { apiMapLngLatToVw: i } =
|
|
2379
|
-
const u = 100 / window.innerWidth, [g, d] = i(
|
|
2377
|
+
return e === "gmap" ? wo() : Do();
|
|
2378
|
+
}, ft = (e) => e === "left" ? "right" : "left", Co = (e) => {
|
|
2379
|
+
const { widthLimit: t, heightLimit: n } = e, { apiMapLngLatToVw: i } = xo(), a = (r, s) => {
|
|
2380
|
+
const u = 100 / window.innerWidth, [g, d] = i(r), [c, l] = i(s);
|
|
2380
2381
|
return [(c - g) * u, (l - d) * u];
|
|
2381
|
-
},
|
|
2382
|
-
return
|
|
2382
|
+
}, o = w(Array(e.places.length).fill("right"));
|
|
2383
|
+
return za(
|
|
2383
2384
|
() => e.places.map(x),
|
|
2384
|
-
(
|
|
2385
|
-
const s =
|
|
2385
|
+
(r) => {
|
|
2386
|
+
const s = r.map((l, I) => ({ point: l, index: I })).sort(
|
|
2386
2387
|
({ point: [, l] }, { point: [, I] }) => l < I ? 1 : l > I ? -1 : 0
|
|
2387
|
-
), u =
|
|
2388
|
+
), u = r.length, g = Array(u);
|
|
2388
2389
|
let d = "right", c = !1;
|
|
2389
2390
|
for (let l = 0; l < u; l++) {
|
|
2390
2391
|
const { index: I } = s[l];
|
|
2391
2392
|
if (l === u - 1) {
|
|
2392
|
-
g[I] = c ?
|
|
2393
|
+
g[I] = c ? ft(d) : "right";
|
|
2393
2394
|
continue;
|
|
2394
2395
|
}
|
|
2395
2396
|
if (l === 0) {
|
|
@@ -2399,47 +2400,47 @@ const Nr = j((e) => {
|
|
|
2399
2400
|
g[I] = L, d = L;
|
|
2400
2401
|
continue;
|
|
2401
2402
|
}
|
|
2402
|
-
const [m, p] = a(s[l].point, s[l + 1].point), v = c ?
|
|
2403
|
+
const [m, p] = a(s[l].point, s[l + 1].point), v = c ? ft(d) : "right";
|
|
2403
2404
|
g[I] = v, d = v, c = m > -t && m < t && p > -n && p < n;
|
|
2404
2405
|
}
|
|
2405
|
-
|
|
2406
|
+
o.value = g;
|
|
2406
2407
|
}
|
|
2407
|
-
),
|
|
2408
|
+
), o;
|
|
2408
2409
|
};
|
|
2409
2410
|
var Ze = /* @__PURE__ */ ((e) => (e.topLeft = "top-left", e.topCenter = "top-center", e.topRight = "top-right", e.middleLeft = "middle-left", e.center = "center", e.middleRight = "middle-right", e.bottomLeft = "bottom-left", e.bottomCenter = "bottom-center", e.bottomRight = "bottom-right", e))(Ze || {});
|
|
2410
|
-
var
|
|
2411
|
-
const
|
|
2411
|
+
var vt = q({ defaultClassName: "", variantClassNames: { textAlign: { left: "fhyw83", right: "fhyw84" } }, defaultVariants: {}, compoundVariants: [] }), yt = q({ defaultClassName: "fhyw85", variantClassNames: { textAlign: { left: "fhyw86", right: "fhyw87" } }, defaultVariants: {}, compoundVariants: [] }), Dn = "fhyw8b", wn = q({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] }), fe = q({ defaultClassName: "fhyw88", variantClassNames: { hideIcon: { true: "fhyw89", false: "fhyw8a" } }, defaultVariants: {}, compoundVariants: [] });
|
|
2412
|
+
const Po = j((e, {
|
|
2412
2413
|
emit: t
|
|
2413
2414
|
}) => {
|
|
2414
2415
|
const n = h(() => {
|
|
2415
|
-
var
|
|
2416
|
-
return (
|
|
2416
|
+
var r;
|
|
2417
|
+
return (r = e.textAlign) != null ? r : "right";
|
|
2417
2418
|
}), i = h(() => {
|
|
2418
2419
|
const {
|
|
2419
|
-
hideIcon:
|
|
2420
|
+
hideIcon: r = !1
|
|
2420
2421
|
} = e;
|
|
2421
2422
|
return `
|
|
2422
|
-
<div class="${
|
|
2423
|
+
<div class="${wn({
|
|
2423
2424
|
textAlign: n.value
|
|
2424
2425
|
})}">
|
|
2425
2426
|
<img class="${fe({
|
|
2426
|
-
hideIcon:
|
|
2427
|
-
})} ${
|
|
2427
|
+
hideIcon: r
|
|
2428
|
+
})} ${vt({
|
|
2428
2429
|
textAlign: n.value
|
|
2429
2430
|
})}" src="${U}">
|
|
2430
|
-
<div class="${
|
|
2431
|
+
<div class="${Dn}">${e.label}</div>
|
|
2431
2432
|
</div>
|
|
2432
2433
|
`;
|
|
2433
2434
|
}), a = h(() => {
|
|
2434
2435
|
const {
|
|
2435
|
-
hideIcon:
|
|
2436
|
+
hideIcon: r = !1
|
|
2436
2437
|
} = e;
|
|
2437
2438
|
return `<img class="${fe({
|
|
2438
|
-
hideIcon:
|
|
2439
|
-
})} ${
|
|
2439
|
+
hideIcon: r
|
|
2440
|
+
})} ${vt({
|
|
2440
2441
|
textAlign: n.value
|
|
2441
2442
|
})}" src="${U}">`;
|
|
2442
|
-
}),
|
|
2443
|
+
}), o = () => {
|
|
2443
2444
|
t("click", e.position);
|
|
2444
2445
|
};
|
|
2445
2446
|
return () => M(B, {
|
|
@@ -2449,44 +2450,44 @@ const Cr = j((e, {
|
|
|
2449
2450
|
anchor: n.value === "left" ? Ze.middleRight : Ze.middleLeft
|
|
2450
2451
|
},
|
|
2451
2452
|
on: {
|
|
2452
|
-
click:
|
|
2453
|
+
click: o
|
|
2453
2454
|
}
|
|
2454
2455
|
});
|
|
2455
|
-
}),
|
|
2456
|
+
}), bo = j((e, {
|
|
2456
2457
|
emit: t
|
|
2457
2458
|
}) => {
|
|
2458
2459
|
const n = h(() => {
|
|
2459
|
-
var
|
|
2460
|
-
return (
|
|
2460
|
+
var r;
|
|
2461
|
+
return (r = e.textAlign) != null ? r : "right";
|
|
2461
2462
|
}), i = h(() => {
|
|
2462
2463
|
const {
|
|
2463
|
-
hideIcon:
|
|
2464
|
+
hideIcon: r = !1
|
|
2464
2465
|
} = e;
|
|
2465
2466
|
return R("div", {
|
|
2466
|
-
class: `${
|
|
2467
|
+
class: `${wn({
|
|
2467
2468
|
textAlign: n.value
|
|
2468
|
-
})} ${
|
|
2469
|
+
})} ${yt({
|
|
2469
2470
|
textAlign: n.value
|
|
2470
2471
|
})}`
|
|
2471
2472
|
}, `
|
|
2472
2473
|
<img class="${fe({
|
|
2473
|
-
hideIcon:
|
|
2474
|
+
hideIcon: r
|
|
2474
2475
|
})}" src="${U}">
|
|
2475
|
-
<div class="${
|
|
2476
|
+
<div class="${Dn}">${e.label}</div>
|
|
2476
2477
|
`);
|
|
2477
2478
|
}), a = h(() => {
|
|
2478
2479
|
const {
|
|
2479
|
-
hideIcon:
|
|
2480
|
+
hideIcon: r = !1
|
|
2480
2481
|
} = e;
|
|
2481
2482
|
return R("img", {
|
|
2482
2483
|
class: `${fe({
|
|
2483
|
-
hideIcon:
|
|
2484
|
-
})} ${
|
|
2484
|
+
hideIcon: r
|
|
2485
|
+
})} ${yt({
|
|
2485
2486
|
textAlign: n.value
|
|
2486
2487
|
})}`,
|
|
2487
2488
|
src: U
|
|
2488
2489
|
});
|
|
2489
|
-
}),
|
|
2490
|
+
}), o = () => {
|
|
2490
2491
|
t("click", e.position);
|
|
2491
2492
|
};
|
|
2492
2493
|
return () => M(V, {
|
|
@@ -2495,70 +2496,71 @@ const Cr = j((e, {
|
|
|
2495
2496
|
content: e.label ? i.value : a.value
|
|
2496
2497
|
},
|
|
2497
2498
|
on: {
|
|
2498
|
-
click:
|
|
2499
|
+
click: o
|
|
2499
2500
|
}
|
|
2500
2501
|
});
|
|
2501
2502
|
}), k = j((e, {
|
|
2502
2503
|
emit: t
|
|
2503
2504
|
}) => {
|
|
2504
2505
|
const n = N();
|
|
2505
|
-
return () => G(n.supplier === "gmap" ?
|
|
2506
|
+
return () => G(n.supplier === "gmap" ? bo : Po, {
|
|
2506
2507
|
attrs: e,
|
|
2507
2508
|
on: {
|
|
2508
2509
|
click: (i) => t("click", i)
|
|
2509
2510
|
}
|
|
2510
2511
|
});
|
|
2511
|
-
}),
|
|
2512
|
+
}), To = j((e, {
|
|
2512
2513
|
emit: t
|
|
2513
2514
|
}) => {
|
|
2514
2515
|
const {
|
|
2515
2516
|
renderLabel: n
|
|
2516
|
-
} = e, i =
|
|
2517
|
+
} = e, i = Co(P({
|
|
2517
2518
|
places: On(e, "places"),
|
|
2518
2519
|
heightLimit: 9,
|
|
2519
2520
|
widthLimit: 32
|
|
2520
2521
|
}));
|
|
2521
|
-
return () => M("div", [e.places.map((a,
|
|
2522
|
-
const
|
|
2522
|
+
return () => M("div", [e.places.map((a, o) => {
|
|
2523
|
+
const r = i.value[o], s = n ? n(a) : a.name;
|
|
2523
2524
|
return M(k, {
|
|
2524
2525
|
attrs: {
|
|
2525
2526
|
position: x(a),
|
|
2526
2527
|
label: s,
|
|
2527
|
-
textAlign:
|
|
2528
|
+
textAlign: r
|
|
2528
2529
|
},
|
|
2529
2530
|
on: {
|
|
2530
2531
|
click: () => t("click", a)
|
|
2531
2532
|
}
|
|
2532
2533
|
});
|
|
2533
2534
|
})]);
|
|
2534
|
-
}),
|
|
2535
|
+
}), Eo = 30, zo = 100, Ro = 500, Zo = "附近", Mr = re((e, {
|
|
2535
2536
|
emit: t
|
|
2536
2537
|
}) => {
|
|
2537
|
-
var
|
|
2538
|
+
var Je, Fe;
|
|
2539
|
+
e.log && console.log(e);
|
|
2538
2540
|
const {
|
|
2539
2541
|
geoDefaultPosition: n,
|
|
2540
2542
|
getRecomendPlace: i,
|
|
2541
2543
|
mapContext: a
|
|
2542
2544
|
} = e, {
|
|
2543
|
-
mapRef:
|
|
2544
|
-
setMap:
|
|
2545
|
+
mapRef: o,
|
|
2546
|
+
setMap: r
|
|
2545
2547
|
} = Pe(), {
|
|
2546
2548
|
readyPromise: s
|
|
2547
2549
|
} = N(), {
|
|
2548
2550
|
timerStart: u,
|
|
2549
2551
|
timerStop: g
|
|
2550
|
-
} =
|
|
2551
|
-
interval:
|
|
2552
|
+
} = No({
|
|
2553
|
+
interval: Ro
|
|
2552
2554
|
}), d = P({
|
|
2553
|
-
lng: (
|
|
2554
|
-
lat: (
|
|
2555
|
+
lng: (Je = n == null ? void 0 : n[0]) != null ? Je : 0,
|
|
2556
|
+
lat: (Fe = n == null ? void 0 : n[1]) != null ? Fe : 0,
|
|
2555
2557
|
name: ""
|
|
2556
2558
|
}), c = h(() => [d.lng, d.lat]), l = {
|
|
2557
2559
|
source: "geo"
|
|
2558
2560
|
}, I = (S) => {
|
|
2559
2561
|
l.source = "api", A(S);
|
|
2560
2562
|
}, m = (S) => {
|
|
2561
|
-
l.source = "api",
|
|
2563
|
+
l.source = "api", E(S), D(S), C();
|
|
2562
2564
|
}, p = (S) => {
|
|
2563
2565
|
l.source = "api", d.lng = S.lng, d.lat = S.lat, d.name = S.name;
|
|
2564
2566
|
}, {
|
|
@@ -2579,20 +2581,20 @@ const Cr = j((e, {
|
|
|
2579
2581
|
a.setCenterPlaceByUserSpecified = m, a.panToGeoPositionByRecomend = () => y.value ? !1 : (I(v.value), !0);
|
|
2580
2582
|
const {
|
|
2581
2583
|
isDragging: L
|
|
2582
|
-
} =
|
|
2583
|
-
mapRef:
|
|
2584
|
+
} = fo({
|
|
2585
|
+
mapRef: o,
|
|
2584
2586
|
onChange: (S) => {
|
|
2585
2587
|
l.source = "drag", u(), A(S), t("changeByDrag", S);
|
|
2586
2588
|
}
|
|
2587
2589
|
}), {
|
|
2588
2590
|
updatePlace: A,
|
|
2589
|
-
setPlace:
|
|
2591
|
+
setPlace: E,
|
|
2590
2592
|
updateCity: D,
|
|
2591
2593
|
updateRecomandPlace: C,
|
|
2592
2594
|
placeCandidates: Z,
|
|
2593
2595
|
availableRef: W,
|
|
2594
|
-
isElectedRef:
|
|
2595
|
-
} =
|
|
2596
|
+
isElectedRef: Qe
|
|
2597
|
+
} = Ao({
|
|
2596
2598
|
pointRef: c,
|
|
2597
2599
|
context: l,
|
|
2598
2600
|
getRecomendPlace: i,
|
|
@@ -2601,10 +2603,10 @@ const Cr = j((e, {
|
|
|
2601
2603
|
switch (de) {
|
|
2602
2604
|
case "drag":
|
|
2603
2605
|
case "api":
|
|
2604
|
-
return
|
|
2606
|
+
return Eo;
|
|
2605
2607
|
case "geo":
|
|
2606
2608
|
case "default":
|
|
2607
|
-
return
|
|
2609
|
+
return zo;
|
|
2608
2610
|
default:
|
|
2609
2611
|
throw new Error(`MyError: should not call getLimit on source: ${de}`);
|
|
2610
2612
|
}
|
|
@@ -2621,28 +2623,28 @@ const Cr = j((e, {
|
|
|
2621
2623
|
t("changeCity", S);
|
|
2622
2624
|
}
|
|
2623
2625
|
});
|
|
2624
|
-
return
|
|
2626
|
+
return Ee(() => {
|
|
2625
2627
|
a.onChangeCenterPlace({
|
|
2626
2628
|
...d
|
|
2627
2629
|
});
|
|
2628
|
-
}),
|
|
2630
|
+
}), Ee(() => {
|
|
2629
2631
|
a.onChangeRecomendPlaces([...Z.value]);
|
|
2630
2632
|
}), () => {
|
|
2631
|
-
const S = W.value ? d.name : e.unavailableTitle, de = W.value ?
|
|
2633
|
+
const S = W.value ? Qe.value ? d.name : `${d.name} ${Zo}` : e.unavailableTitle, de = W.value ? Qe.value ? e.recomendDescription : e.noRecomendDescription : void 0;
|
|
2632
2634
|
return M(he, {
|
|
2633
2635
|
attrs: {
|
|
2634
2636
|
center: c.value,
|
|
2635
2637
|
zoom: 18,
|
|
2636
|
-
mapRef:
|
|
2638
|
+
mapRef: r
|
|
2637
2639
|
}
|
|
2638
2640
|
}, [!f.value && !y.value && M(be, {
|
|
2639
2641
|
attrs: {
|
|
2640
2642
|
position: v.value
|
|
2641
2643
|
}
|
|
2642
|
-
}), M(
|
|
2644
|
+
}), M(To, {
|
|
2643
2645
|
attrs: {
|
|
2644
2646
|
places: Z.value,
|
|
2645
|
-
renderLabel: (
|
|
2647
|
+
renderLabel: (Xe) => Ea(Xe, d) ? void 0 : Xe.name
|
|
2646
2648
|
},
|
|
2647
2649
|
on: {
|
|
2648
2650
|
click: p
|
|
@@ -2658,15 +2660,15 @@ const Cr = j((e, {
|
|
|
2658
2660
|
}
|
|
2659
2661
|
})]);
|
|
2660
2662
|
};
|
|
2661
|
-
}).props(["geoLoadingTitle", "unavailableTitle", "recomendDescription", "noRecomendDescription", "fallback", "geoDefaultPosition", "getRecomendPlace", "loading", "mapContext"]),
|
|
2662
|
-
var ye = "_65j3sr1",
|
|
2663
|
-
const
|
|
2663
|
+
}).props(["log", "geoLoadingTitle", "unavailableTitle", "recomendDescription", "noRecomendDescription", "fallback", "geoDefaultPosition", "getRecomendPlace", "loading", "mapContext"]), Oo = [116.2317, 39.5427], jt = (e) => e.lng !== void 0 && e.lat !== void 0, ve = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0zNC4wODcgMTAuOTZjMCAyLjM2OS0uMDU0IDIuOTgtLjc4MiAzLjcwNC0uNzkzLjc5LTUuMjM2LjgzMy01LjIzNi44MzNsLTQuMTE2LjE5Mi05Ljg5Ni0uMTQ0cy03Ljc5LS4wMjYtOS4xMzEtLjAyNmMtMS4zNDIgMC0yLjQwNi0uODQ3LTIuNDA2LS44NDdDLjE0IDEyLjkzMiAwIDExLjA5IDAgMTEuMDlWNS44NnMuMTQtMS44NDIgMi41Mi0zLjU4M2MwIDAgMS4wNjQtLjg0NiAyLjQwNi0uODQ2IDEuMzQxIDAgOS4xMy0uMDI2IDkuMTMtLjAyNmw5Ljg5Ny0uMTQ0IDQuMTE2LjE5MnM0LjQ4NCAwIDUuMjM2LjgzM2MuNzc4Ljg2Ljc4MiAxLjM3Ljc4MiAzLjc0djQuOTM0eiIgaWQ9InByZWZpeF9fYiIvPjxwYXRoIGQ9Ik0wIDEuNDkzUzUu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LjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";
|
|
2664
|
+
var ye = "_65j3sr1", xn = "_4a4ovk5", Cn = "_4a4ovk0", Pn = "_4a4ovk2";
|
|
2665
|
+
const Go = j((e) => {
|
|
2664
2666
|
const t = h(() => {
|
|
2665
2667
|
var a;
|
|
2666
|
-
const n = e.title ? Se(e.title).map((
|
|
2668
|
+
const n = e.title ? Se(e.title).map((o) => o.type === "normal" ? o.value : `<span class="${xn}">${o.value}</span>`).join("") : "", i = `transform:rotate(${(a = e.angle) != null ? a : 0}deg)`;
|
|
2667
2669
|
return e.title ? `
|
|
2668
|
-
<div class="${
|
|
2669
|
-
<div class="${
|
|
2670
|
+
<div class="${Cn}">
|
|
2671
|
+
<div class="${Pn}">${n}</div>
|
|
2670
2672
|
<img src="${ve}" class="${ye}" style="${i}">
|
|
2671
2673
|
</div>
|
|
2672
2674
|
` : `<img src="${ve}" class="${ye}" style="${i}">`;
|
|
@@ -2679,14 +2681,14 @@ const Zr = j((e) => {
|
|
|
2679
2681
|
registerOverlay: e.registerOverlay
|
|
2680
2682
|
}
|
|
2681
2683
|
});
|
|
2682
|
-
}),
|
|
2684
|
+
}), ko = j((e) => {
|
|
2683
2685
|
const t = h(() => {
|
|
2684
2686
|
var a;
|
|
2685
|
-
const n = e.title ? Se(e.title).map((
|
|
2687
|
+
const n = e.title ? Se(e.title).map((o) => o.type === "normal" ? o.value : `<span class="${xn}">${o.value}</span>`).join("") : "", i = `transform:rotate(${(a = e.angle) != null ? a : 0}deg)`;
|
|
2686
2688
|
return e.title ? R("div", {
|
|
2687
|
-
class:
|
|
2689
|
+
class: Cn
|
|
2688
2690
|
}, `
|
|
2689
|
-
<div class="${
|
|
2691
|
+
<div class="${Pn}">${n}</div>
|
|
2690
2692
|
<img src="${ve}" class="${ye}" style="${i}">
|
|
2691
2693
|
`) : R("img", {
|
|
2692
2694
|
class: ye,
|
|
@@ -2703,10 +2705,10 @@ const Zr = j((e) => {
|
|
|
2703
2705
|
});
|
|
2704
2706
|
}), Ye = j((e) => {
|
|
2705
2707
|
const t = N();
|
|
2706
|
-
return () => G(t.supplier === "gmap" ?
|
|
2708
|
+
return () => G(t.supplier === "gmap" ? ko : Go, {
|
|
2707
2709
|
attrs: e
|
|
2708
2710
|
});
|
|
2709
|
-
}),
|
|
2711
|
+
}), Wo = j((e) => () => {
|
|
2710
2712
|
const {
|
|
2711
2713
|
path: t
|
|
2712
2714
|
} = e;
|
|
@@ -2725,13 +2727,13 @@ const Zr = j((e) => {
|
|
|
2725
2727
|
lineCap: "round"
|
|
2726
2728
|
}
|
|
2727
2729
|
});
|
|
2728
|
-
}),
|
|
2730
|
+
}), Uo = j((e) => {
|
|
2729
2731
|
const t = h(() => e.path.map(T));
|
|
2730
2732
|
return () => {
|
|
2731
2733
|
const n = t.value;
|
|
2732
2734
|
if (n.length === 0)
|
|
2733
2735
|
return null;
|
|
2734
|
-
const a = 2 * (window.innerWidth * 0.01),
|
|
2736
|
+
const a = 2 * (window.innerWidth * 0.01), o = a / 4;
|
|
2735
2737
|
return M(Ie, {
|
|
2736
2738
|
attrs: {
|
|
2737
2739
|
path: n,
|
|
@@ -2741,10 +2743,10 @@ const Zr = j((e) => {
|
|
|
2741
2743
|
icons: [{
|
|
2742
2744
|
icon: {
|
|
2743
2745
|
path: `
|
|
2744
|
-
M ${
|
|
2745
|
-
m -${
|
|
2746
|
-
a ${
|
|
2747
|
-
a ${
|
|
2746
|
+
M ${o}, ${o}
|
|
2747
|
+
m -${o}, 0
|
|
2748
|
+
a ${o},${o} 0 1,0 ${2 * o},0
|
|
2749
|
+
a ${o},${o} 0 1,0 -${2 * o},0
|
|
2748
2750
|
`,
|
|
2749
2751
|
strokeColor: "#38A3FE",
|
|
2750
2752
|
fillColor: "#38A3FE",
|
|
@@ -2758,21 +2760,21 @@ const Zr = j((e) => {
|
|
|
2758
2760
|
}
|
|
2759
2761
|
});
|
|
2760
2762
|
};
|
|
2761
|
-
}),
|
|
2763
|
+
}), bn = j((e) => {
|
|
2762
2764
|
const t = N();
|
|
2763
|
-
return () => G(t.supplier === "gmap" ?
|
|
2765
|
+
return () => G(t.supplier === "gmap" ? Uo : Wo, {
|
|
2764
2766
|
attrs: e
|
|
2765
2767
|
});
|
|
2766
|
-
}),
|
|
2767
|
-
const t =
|
|
2768
|
+
}), Tn = (e) => {
|
|
2769
|
+
const t = z([]), n = new AMap.Walking({});
|
|
2768
2770
|
return K(
|
|
2769
2771
|
() => ({ ...e }),
|
|
2770
2772
|
({ from: i, to: a }) => {
|
|
2771
|
-
n.search(AMap.LngLat.from(i), AMap.LngLat.from(a), (
|
|
2772
|
-
switch (
|
|
2773
|
+
n.search(AMap.LngLat.from(i), AMap.LngLat.from(a), (o, r) => {
|
|
2774
|
+
switch (o) {
|
|
2773
2775
|
case "complete": {
|
|
2774
2776
|
let s = [];
|
|
2775
|
-
const u =
|
|
2777
|
+
const u = r;
|
|
2776
2778
|
if (!u.routes)
|
|
2777
2779
|
return;
|
|
2778
2780
|
const g = u.routes[0];
|
|
@@ -2787,13 +2789,13 @@ const Zr = j((e) => {
|
|
|
2787
2789
|
t.value = [];
|
|
2788
2790
|
return;
|
|
2789
2791
|
default:
|
|
2790
|
-
throw
|
|
2792
|
+
throw r;
|
|
2791
2793
|
}
|
|
2792
2794
|
});
|
|
2793
2795
|
}
|
|
2794
2796
|
), t;
|
|
2795
|
-
},
|
|
2796
|
-
const t =
|
|
2797
|
+
}, En = (e) => {
|
|
2798
|
+
const t = z([]), n = new google.maps.DirectionsService();
|
|
2797
2799
|
return K(
|
|
2798
2800
|
() => ({ ...e }),
|
|
2799
2801
|
({ from: i, to: a }) => {
|
|
@@ -2803,11 +2805,11 @@ const Zr = j((e) => {
|
|
|
2803
2805
|
destination: { lng: a[0], lat: a[1] },
|
|
2804
2806
|
travelMode: google.maps.TravelMode.WALKING
|
|
2805
2807
|
},
|
|
2806
|
-
(
|
|
2807
|
-
switch (
|
|
2808
|
+
(o, r) => {
|
|
2809
|
+
switch (r) {
|
|
2808
2810
|
case google.maps.DirectionsStatus.OK: {
|
|
2809
2811
|
let s = [];
|
|
2810
|
-
const g =
|
|
2812
|
+
const g = o.routes[0].overview_path.map((d) => [
|
|
2811
2813
|
d.lng(),
|
|
2812
2814
|
d.lat()
|
|
2813
2815
|
]);
|
|
@@ -2819,29 +2821,29 @@ const Zr = j((e) => {
|
|
|
2819
2821
|
t.value = [];
|
|
2820
2822
|
return;
|
|
2821
2823
|
default:
|
|
2822
|
-
throw new Error(
|
|
2824
|
+
throw new Error(r);
|
|
2823
2825
|
}
|
|
2824
2826
|
}
|
|
2825
2827
|
);
|
|
2826
2828
|
}
|
|
2827
2829
|
), t;
|
|
2828
|
-
},
|
|
2830
|
+
}, mr = (e) => {
|
|
2829
2831
|
const { supplier: t } = N();
|
|
2830
|
-
return t === "gmap" ?
|
|
2831
|
-
},
|
|
2832
|
+
return t === "gmap" ? En(e) : Tn(e);
|
|
2833
|
+
}, Bo = j((e, {
|
|
2832
2834
|
slots: t
|
|
2833
2835
|
}) => {
|
|
2834
|
-
const n =
|
|
2836
|
+
const n = Tn(e);
|
|
2835
2837
|
return () => {
|
|
2836
2838
|
var i;
|
|
2837
2839
|
return M("div", [(i = t.render) == null ? void 0 : i.call(t, P({
|
|
2838
2840
|
path: n
|
|
2839
2841
|
}))]);
|
|
2840
2842
|
};
|
|
2841
|
-
}),
|
|
2843
|
+
}), Vo = j((e, {
|
|
2842
2844
|
slots: t
|
|
2843
2845
|
}) => {
|
|
2844
|
-
const n =
|
|
2846
|
+
const n = En(e);
|
|
2845
2847
|
return () => {
|
|
2846
2848
|
var i;
|
|
2847
2849
|
return M("div", [(i = t.render) == null ? void 0 : i.call(t, P({
|
|
@@ -2854,14 +2856,14 @@ const Zr = j((e) => {
|
|
|
2854
2856
|
const {
|
|
2855
2857
|
supplier: n
|
|
2856
2858
|
} = N();
|
|
2857
|
-
return () => G(n === "gmap" ?
|
|
2859
|
+
return () => G(n === "gmap" ? Vo : Bo, {
|
|
2858
2860
|
attrs: e,
|
|
2859
2861
|
scopedSlots: t
|
|
2860
2862
|
});
|
|
2861
2863
|
}), je = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";
|
|
2862
|
-
var
|
|
2863
|
-
const
|
|
2864
|
-
const t = h(() => `<img src="${je}" class="${Le}">`), n = h(() => `<img src="${je}" class="${Le} ${
|
|
2864
|
+
var Rn = "rrvp0y3", Le = "rrvp0y2";
|
|
2865
|
+
const Yo = j((e) => {
|
|
2866
|
+
const t = h(() => `<img src="${je}" class="${Le}">`), n = h(() => `<img src="${je}" class="${Le} ${Rn}">`);
|
|
2865
2867
|
return () => M("div", [M(B, {
|
|
2866
2868
|
attrs: {
|
|
2867
2869
|
position: e.position,
|
|
@@ -2875,12 +2877,12 @@ const Br = j((e) => {
|
|
|
2875
2877
|
content: n.value
|
|
2876
2878
|
}
|
|
2877
2879
|
})]);
|
|
2878
|
-
}),
|
|
2880
|
+
}), Ho = j((e) => {
|
|
2879
2881
|
const t = h(() => R("img", {
|
|
2880
2882
|
class: Le,
|
|
2881
2883
|
src: je
|
|
2882
2884
|
})), n = h(() => R("img", {
|
|
2883
|
-
class: `${Le} ${
|
|
2885
|
+
class: `${Le} ${Rn}`,
|
|
2884
2886
|
src: je
|
|
2885
2887
|
}));
|
|
2886
2888
|
return () => {
|
|
@@ -2897,52 +2899,57 @@ const Br = j((e) => {
|
|
|
2897
2899
|
}
|
|
2898
2900
|
})]);
|
|
2899
2901
|
};
|
|
2900
|
-
}),
|
|
2902
|
+
}), Qo = j((e) => {
|
|
2901
2903
|
const t = N();
|
|
2902
|
-
return () => G(t.supplier === "gmap" ?
|
|
2904
|
+
return () => G(t.supplier === "gmap" ? Ho : Yo, {
|
|
2903
2905
|
attrs: e
|
|
2904
2906
|
});
|
|
2905
|
-
}),
|
|
2907
|
+
}), Lt = j((e, {
|
|
2906
2908
|
emit: t
|
|
2907
2909
|
}) => (H(() => t("mapMounted")), () => {
|
|
2908
2910
|
const {
|
|
2909
2911
|
from: n,
|
|
2910
2912
|
title: i,
|
|
2911
2913
|
registerOverlay: a
|
|
2912
|
-
} = e,
|
|
2914
|
+
} = e, o = x(n);
|
|
2913
2915
|
return M("div", [M(O, {
|
|
2914
2916
|
attrs: {
|
|
2915
2917
|
type: "start",
|
|
2916
|
-
position:
|
|
2918
|
+
position: o,
|
|
2917
2919
|
title: i,
|
|
2918
2920
|
registerOverlay: a
|
|
2919
2921
|
}
|
|
2920
|
-
}), M(
|
|
2922
|
+
}), M(Qo, {
|
|
2921
2923
|
attrs: {
|
|
2922
|
-
position:
|
|
2924
|
+
position: o
|
|
2923
2925
|
}
|
|
2924
2926
|
}), M(k, {
|
|
2925
2927
|
attrs: {
|
|
2926
|
-
position:
|
|
2928
|
+
position: o,
|
|
2927
2929
|
label: n.name,
|
|
2928
2930
|
hideIcon: !0
|
|
2929
2931
|
}
|
|
2930
2932
|
})]);
|
|
2931
|
-
})),
|
|
2933
|
+
})), Jo = j((e, {
|
|
2932
2934
|
emit: t
|
|
2933
2935
|
}) => (H(() => t("mapMounted")), () => {
|
|
2934
2936
|
const {
|
|
2935
2937
|
from: n,
|
|
2936
2938
|
carPosition: i,
|
|
2937
2939
|
passengerPosition: a,
|
|
2938
|
-
renderTitle:
|
|
2939
|
-
registerOverlay:
|
|
2940
|
+
renderTitle: o,
|
|
2941
|
+
registerOverlay: r
|
|
2940
2942
|
} = e, s = x(n);
|
|
2941
|
-
return M("div", [M(
|
|
2943
|
+
return M("div", [!!a && M(be, {
|
|
2944
|
+
attrs: {
|
|
2945
|
+
position: a,
|
|
2946
|
+
registerOverlay: r
|
|
2947
|
+
}
|
|
2948
|
+
}), M(O, {
|
|
2942
2949
|
attrs: {
|
|
2943
2950
|
type: "start",
|
|
2944
2951
|
position: s,
|
|
2945
|
-
registerOverlay:
|
|
2952
|
+
registerOverlay: r
|
|
2946
2953
|
}
|
|
2947
2954
|
}), M(k, {
|
|
2948
2955
|
attrs: {
|
|
@@ -2965,7 +2972,7 @@ const Br = j((e) => {
|
|
|
2965
2972
|
}), M(Ye, {
|
|
2966
2973
|
attrs: {
|
|
2967
2974
|
position: i,
|
|
2968
|
-
title:
|
|
2975
|
+
title: o({
|
|
2969
2976
|
distance: g,
|
|
2970
2977
|
duration: d
|
|
2971
2978
|
})
|
|
@@ -2978,67 +2985,62 @@ const Br = j((e) => {
|
|
|
2978
2985
|
to: s,
|
|
2979
2986
|
render: ({
|
|
2980
2987
|
path: u
|
|
2981
|
-
}) => M(
|
|
2988
|
+
}) => M(bn, {
|
|
2982
2989
|
attrs: {
|
|
2983
2990
|
path: u
|
|
2984
2991
|
}
|
|
2985
2992
|
})
|
|
2986
2993
|
}
|
|
2987
|
-
}), !!a && M(be, {
|
|
2988
|
-
attrs: {
|
|
2989
|
-
position: a,
|
|
2990
|
-
registerOverlay: o
|
|
2991
|
-
}
|
|
2992
2994
|
})]);
|
|
2993
|
-
})),
|
|
2995
|
+
})), Fo = j((e, {
|
|
2994
2996
|
emit: t
|
|
2995
2997
|
}) => (H(() => t("mapMounted")), () => {
|
|
2996
2998
|
const {
|
|
2997
2999
|
from: n,
|
|
2998
3000
|
passengerPosition: i,
|
|
2999
3001
|
title: a,
|
|
3000
|
-
registerOverlay:
|
|
3001
|
-
} = e,
|
|
3002
|
+
registerOverlay: o
|
|
3003
|
+
} = e, r = x(n);
|
|
3002
3004
|
return M("div", [M(O, {
|
|
3003
3005
|
attrs: {
|
|
3004
3006
|
type: "start",
|
|
3005
|
-
position:
|
|
3007
|
+
position: r,
|
|
3006
3008
|
title: a,
|
|
3007
|
-
registerOverlay:
|
|
3009
|
+
registerOverlay: o
|
|
3008
3010
|
}
|
|
3009
3011
|
}), M(k, {
|
|
3010
3012
|
attrs: {
|
|
3011
|
-
position:
|
|
3013
|
+
position: r,
|
|
3012
3014
|
label: n.name,
|
|
3013
3015
|
hideIcon: !0
|
|
3014
3016
|
}
|
|
3015
3017
|
}), !!i && M(be, {
|
|
3016
3018
|
attrs: {
|
|
3017
3019
|
position: i,
|
|
3018
|
-
registerOverlay:
|
|
3020
|
+
registerOverlay: o
|
|
3019
3021
|
}
|
|
3020
3022
|
})]);
|
|
3021
|
-
})),
|
|
3023
|
+
})), Xo = j((e, {
|
|
3022
3024
|
emit: t
|
|
3023
3025
|
}) => (H(() => t("mapMounted")), () => {
|
|
3024
3026
|
const {
|
|
3025
3027
|
from: n,
|
|
3026
3028
|
carPosition: i,
|
|
3027
3029
|
passengerPosition: a,
|
|
3028
|
-
title:
|
|
3029
|
-
registerOverlay:
|
|
3030
|
+
title: o,
|
|
3031
|
+
registerOverlay: r
|
|
3030
3032
|
} = e, s = x(n);
|
|
3031
3033
|
return M("div", [M(Ye, {
|
|
3032
3034
|
attrs: {
|
|
3033
3035
|
position: i,
|
|
3034
|
-
title:
|
|
3035
|
-
registerOverlay:
|
|
3036
|
+
title: o,
|
|
3037
|
+
registerOverlay: r
|
|
3036
3038
|
}
|
|
3037
3039
|
}), M(O, {
|
|
3038
3040
|
attrs: {
|
|
3039
3041
|
type: "start",
|
|
3040
3042
|
position: s,
|
|
3041
|
-
registerOverlay:
|
|
3043
|
+
registerOverlay: r
|
|
3042
3044
|
}
|
|
3043
3045
|
}), M(k, {
|
|
3044
3046
|
attrs: {
|
|
@@ -3052,7 +3054,7 @@ const Br = j((e) => {
|
|
|
3052
3054
|
to: s,
|
|
3053
3055
|
render: ({
|
|
3054
3056
|
path: u
|
|
3055
|
-
}) => M(
|
|
3057
|
+
}) => M(bn, {
|
|
3056
3058
|
attrs: {
|
|
3057
3059
|
path: u
|
|
3058
3060
|
}
|
|
@@ -3062,34 +3064,34 @@ const Br = j((e) => {
|
|
|
3062
3064
|
attrs: {
|
|
3063
3065
|
position: a,
|
|
3064
3066
|
size: "small",
|
|
3065
|
-
registerOverlay:
|
|
3067
|
+
registerOverlay: r
|
|
3066
3068
|
}
|
|
3067
3069
|
})]);
|
|
3068
|
-
})),
|
|
3070
|
+
})), $o = j((e, {
|
|
3069
3071
|
emit: t
|
|
3070
3072
|
}) => (H(() => t("mapMounted")), () => {
|
|
3071
3073
|
const {
|
|
3072
3074
|
to: n,
|
|
3073
3075
|
carPosition: i,
|
|
3074
3076
|
renderTitle: a,
|
|
3075
|
-
registerOverlay:
|
|
3076
|
-
} = e,
|
|
3077
|
+
registerOverlay: o
|
|
3078
|
+
} = e, r = x(n);
|
|
3077
3079
|
return M("div", [M(O, {
|
|
3078
3080
|
attrs: {
|
|
3079
3081
|
type: "end",
|
|
3080
|
-
position:
|
|
3081
|
-
registerOverlay:
|
|
3082
|
+
position: r,
|
|
3083
|
+
registerOverlay: o
|
|
3082
3084
|
}
|
|
3083
3085
|
}), M(k, {
|
|
3084
3086
|
attrs: {
|
|
3085
|
-
position:
|
|
3087
|
+
position: r,
|
|
3086
3088
|
label: n.name,
|
|
3087
3089
|
hideIcon: !0
|
|
3088
3090
|
}
|
|
3089
3091
|
}), M(we, {
|
|
3090
3092
|
attrs: {
|
|
3091
3093
|
from: i,
|
|
3092
|
-
to:
|
|
3094
|
+
to: r,
|
|
3093
3095
|
render: ({
|
|
3094
3096
|
path: s,
|
|
3095
3097
|
distance: u,
|
|
@@ -3105,40 +3107,40 @@ const Br = j((e) => {
|
|
|
3105
3107
|
distance: u,
|
|
3106
3108
|
duration: g
|
|
3107
3109
|
}),
|
|
3108
|
-
registerOverlay:
|
|
3110
|
+
registerOverlay: o
|
|
3109
3111
|
}
|
|
3110
3112
|
})]
|
|
3111
3113
|
}
|
|
3112
3114
|
})]);
|
|
3113
|
-
})),
|
|
3115
|
+
})), _o = j((e, {
|
|
3114
3116
|
emit: t
|
|
3115
3117
|
}) => (H(() => t("mapMounted")), () => {
|
|
3116
3118
|
const {
|
|
3117
3119
|
from: n,
|
|
3118
3120
|
to: i,
|
|
3119
3121
|
registerOverlay: a
|
|
3120
|
-
} = e,
|
|
3122
|
+
} = e, o = x(n), r = x(i);
|
|
3121
3123
|
return M("div", [M(O, {
|
|
3122
3124
|
attrs: {
|
|
3123
3125
|
type: "start",
|
|
3124
|
-
position:
|
|
3126
|
+
position: o,
|
|
3125
3127
|
registerOverlay: a
|
|
3126
3128
|
}
|
|
3127
3129
|
}), M(O, {
|
|
3128
3130
|
attrs: {
|
|
3129
3131
|
type: "end",
|
|
3130
|
-
position:
|
|
3132
|
+
position: r,
|
|
3131
3133
|
registerOverlay: a
|
|
3132
3134
|
}
|
|
3133
3135
|
}), M(k, {
|
|
3134
3136
|
attrs: {
|
|
3135
|
-
position:
|
|
3137
|
+
position: o,
|
|
3136
3138
|
label: n.name,
|
|
3137
3139
|
hideIcon: !0
|
|
3138
3140
|
}
|
|
3139
3141
|
}), M(k, {
|
|
3140
3142
|
attrs: {
|
|
3141
|
-
position:
|
|
3143
|
+
position: r,
|
|
3142
3144
|
label: i.name,
|
|
3143
3145
|
hideIcon: !0
|
|
3144
3146
|
}
|
|
@@ -3150,35 +3152,35 @@ const Br = j((e) => {
|
|
|
3150
3152
|
from: n,
|
|
3151
3153
|
to: i,
|
|
3152
3154
|
registerOverlay: a
|
|
3153
|
-
} = e,
|
|
3155
|
+
} = e, o = x(n), r = x(i);
|
|
3154
3156
|
return M("div", [M(O, {
|
|
3155
3157
|
attrs: {
|
|
3156
3158
|
type: "start",
|
|
3157
|
-
position:
|
|
3159
|
+
position: o,
|
|
3158
3160
|
registerOverlay: a
|
|
3159
3161
|
}
|
|
3160
3162
|
}), M(O, {
|
|
3161
3163
|
attrs: {
|
|
3162
3164
|
type: "end",
|
|
3163
|
-
position:
|
|
3165
|
+
position: r,
|
|
3164
3166
|
registerOverlay: a
|
|
3165
3167
|
}
|
|
3166
3168
|
}), M(k, {
|
|
3167
3169
|
attrs: {
|
|
3168
|
-
position:
|
|
3170
|
+
position: o,
|
|
3169
3171
|
label: n.name,
|
|
3170
3172
|
hideIcon: !0
|
|
3171
3173
|
}
|
|
3172
3174
|
}), M(k, {
|
|
3173
3175
|
attrs: {
|
|
3174
|
-
position:
|
|
3176
|
+
position: r,
|
|
3175
3177
|
label: i.name,
|
|
3176
3178
|
hideIcon: !0
|
|
3177
3179
|
}
|
|
3178
3180
|
}), M(we, {
|
|
3179
3181
|
attrs: {
|
|
3180
|
-
from:
|
|
3181
|
-
to:
|
|
3182
|
+
from: o,
|
|
3183
|
+
to: r,
|
|
3182
3184
|
render: ({
|
|
3183
3185
|
path: s
|
|
3184
3186
|
}) => M(De, {
|
|
@@ -3189,14 +3191,49 @@ const Br = j((e) => {
|
|
|
3189
3191
|
})
|
|
3190
3192
|
}
|
|
3191
3193
|
})]);
|
|
3192
|
-
})),
|
|
3194
|
+
})), pr = j((e) => {
|
|
3195
|
+
const {
|
|
3196
|
+
mapRef: t,
|
|
3197
|
+
setMap: n
|
|
3198
|
+
} = Pe(), {
|
|
3199
|
+
registerFitVeiw: i,
|
|
3200
|
+
setFitView: a
|
|
3201
|
+
} = xe({
|
|
3202
|
+
mapRef: t,
|
|
3203
|
+
autoFitTimeout: 5e3,
|
|
3204
|
+
padding: [25, 20, 15, 15]
|
|
3205
|
+
});
|
|
3206
|
+
return () => {
|
|
3207
|
+
const {
|
|
3208
|
+
from: o,
|
|
3209
|
+
to: r
|
|
3210
|
+
} = e, s = jt(o) && jt(r), u = s ? x(o) : [...Oo];
|
|
3211
|
+
return M(he, {
|
|
3212
|
+
attrs: {
|
|
3213
|
+
center: u,
|
|
3214
|
+
zoom: s ? 13 : 3,
|
|
3215
|
+
mapRef: n
|
|
3216
|
+
}
|
|
3217
|
+
}, [s && M(Oe, {
|
|
3218
|
+
attrs: {
|
|
3219
|
+
from: o,
|
|
3220
|
+
to: r,
|
|
3221
|
+
registerOverlay: i
|
|
3222
|
+
},
|
|
3223
|
+
on: {
|
|
3224
|
+
mapMounted: a
|
|
3225
|
+
}
|
|
3226
|
+
})]);
|
|
3227
|
+
};
|
|
3228
|
+
}), Ko = ["book-driverStartService", "dispatched", "driverStartService", "inService", "driverArrived"], fr = re((e) => {
|
|
3229
|
+
e.log && console.log(e);
|
|
3193
3230
|
const {
|
|
3194
3231
|
from: t,
|
|
3195
3232
|
interval: n,
|
|
3196
3233
|
registerOverlay: i,
|
|
3197
3234
|
mapRef: a,
|
|
3198
|
-
getDriverPosition:
|
|
3199
|
-
renderStartSerivceTitle:
|
|
3235
|
+
getDriverPosition: o,
|
|
3236
|
+
renderStartSerivceTitle: r,
|
|
3200
3237
|
renderInServiceTitle: s
|
|
3201
3238
|
} = e, {
|
|
3202
3239
|
setFitView: u
|
|
@@ -3207,10 +3244,10 @@ const Br = j((e) => {
|
|
|
3207
3244
|
geoDefaultPosition: x(t)
|
|
3208
3245
|
}), c = w(x(e.from));
|
|
3209
3246
|
return b(() => e.driverStatus, (l, I, m) => {
|
|
3210
|
-
if (!
|
|
3247
|
+
if (!Ko.includes(l))
|
|
3211
3248
|
return;
|
|
3212
3249
|
const p = setInterval(() => {
|
|
3213
|
-
|
|
3250
|
+
o().then((v) => c.value = v);
|
|
3214
3251
|
}, n);
|
|
3215
3252
|
m(() => clearInterval(p));
|
|
3216
3253
|
}, {
|
|
@@ -3231,7 +3268,7 @@ const Br = j((e) => {
|
|
|
3231
3268
|
zoom: 13,
|
|
3232
3269
|
mapRef: a
|
|
3233
3270
|
}
|
|
3234
|
-
}, [l === "dispatching" ? M(
|
|
3271
|
+
}, [l === "dispatching" ? M(Lt, {
|
|
3235
3272
|
attrs: {
|
|
3236
3273
|
from: I,
|
|
3237
3274
|
title: p,
|
|
@@ -3240,7 +3277,7 @@ const Br = j((e) => {
|
|
|
3240
3277
|
on: {
|
|
3241
3278
|
mapMounted: u
|
|
3242
3279
|
}
|
|
3243
|
-
}) : l === "book-dispatching" ? M(
|
|
3280
|
+
}) : l === "book-dispatching" ? M(Lt, {
|
|
3244
3281
|
attrs: {
|
|
3245
3282
|
from: I,
|
|
3246
3283
|
title: v,
|
|
@@ -3249,18 +3286,18 @@ const Br = j((e) => {
|
|
|
3249
3286
|
on: {
|
|
3250
3287
|
mapMounted: u
|
|
3251
3288
|
}
|
|
3252
|
-
}) : l === "dispatched" || l === "driverStartService" || l === "book-driverStartService" ? M(
|
|
3289
|
+
}) : l === "dispatched" || l === "driverStartService" || l === "book-driverStartService" ? M(Jo, {
|
|
3253
3290
|
attrs: {
|
|
3254
3291
|
from: I,
|
|
3255
3292
|
carPosition: L,
|
|
3256
3293
|
passengerPosition: A,
|
|
3257
|
-
renderTitle:
|
|
3294
|
+
renderTitle: r,
|
|
3258
3295
|
registerOverlay: i
|
|
3259
3296
|
},
|
|
3260
3297
|
on: {
|
|
3261
3298
|
mapMounted: u
|
|
3262
3299
|
}
|
|
3263
|
-
}) : l === "book-dispatched" ? M(
|
|
3300
|
+
}) : l === "book-dispatched" ? M(Fo, {
|
|
3264
3301
|
attrs: {
|
|
3265
3302
|
from: I,
|
|
3266
3303
|
passengerPosition: A,
|
|
@@ -3270,7 +3307,7 @@ const Br = j((e) => {
|
|
|
3270
3307
|
on: {
|
|
3271
3308
|
mapMounted: u
|
|
3272
3309
|
}
|
|
3273
|
-
}) : l === "inService" ? M(
|
|
3310
|
+
}) : l === "inService" ? M($o, {
|
|
3274
3311
|
attrs: {
|
|
3275
3312
|
to: m,
|
|
3276
3313
|
carPosition: L,
|
|
@@ -3280,7 +3317,7 @@ const Br = j((e) => {
|
|
|
3280
3317
|
on: {
|
|
3281
3318
|
mapMounted: u
|
|
3282
3319
|
}
|
|
3283
|
-
}) : l === "driverArrived" ? M(
|
|
3320
|
+
}) : l === "driverArrived" ? M(Xo, {
|
|
3284
3321
|
attrs: {
|
|
3285
3322
|
from: I,
|
|
3286
3323
|
carPosition: L,
|
|
@@ -3291,7 +3328,7 @@ const Br = j((e) => {
|
|
|
3291
3328
|
on: {
|
|
3292
3329
|
mapMounted: u
|
|
3293
3330
|
}
|
|
3294
|
-
}) : l === "canceled" || l === "canceling" ? M(
|
|
3331
|
+
}) : l === "canceled" || l === "canceling" ? M(_o, {
|
|
3295
3332
|
attrs: {
|
|
3296
3333
|
from: I,
|
|
3297
3334
|
to: m,
|
|
@@ -3320,68 +3357,34 @@ const Br = j((e) => {
|
|
|
3320
3357
|
})
|
|
3321
3358
|
)]);
|
|
3322
3359
|
};
|
|
3323
|
-
}).props(["bookDispatchedTitle", "bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPosition", "interval", "loading", "mapRef", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]),
|
|
3324
|
-
const {
|
|
3325
|
-
mapRef: t,
|
|
3326
|
-
setMap: n
|
|
3327
|
-
} = Pe(), {
|
|
3328
|
-
registerFitVeiw: i,
|
|
3329
|
-
setFitView: a
|
|
3330
|
-
} = xe({
|
|
3331
|
-
mapRef: t,
|
|
3332
|
-
autoFitTimeout: 5e3,
|
|
3333
|
-
padding: [25, 20, 15, 15]
|
|
3334
|
-
});
|
|
3335
|
-
return () => {
|
|
3336
|
-
const {
|
|
3337
|
-
from: r,
|
|
3338
|
-
to: o
|
|
3339
|
-
} = e, s = yt(r) && yt(o), u = s ? x(r) : [...Rr];
|
|
3340
|
-
return M(he, {
|
|
3341
|
-
attrs: {
|
|
3342
|
-
center: u,
|
|
3343
|
-
zoom: s ? 13 : 3,
|
|
3344
|
-
mapRef: n
|
|
3345
|
-
}
|
|
3346
|
-
}, [s && M(Oe, {
|
|
3347
|
-
attrs: {
|
|
3348
|
-
from: r,
|
|
3349
|
-
to: o,
|
|
3350
|
-
registerOverlay: i
|
|
3351
|
-
},
|
|
3352
|
-
on: {
|
|
3353
|
-
mapMounted: a
|
|
3354
|
-
}
|
|
3355
|
-
})]);
|
|
3356
|
-
};
|
|
3357
|
-
}), _r = () => {
|
|
3360
|
+
}).props(["bookDispatchedTitle", "bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPosition", "interval", "loading", "mapRef", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]), qo = () => {
|
|
3358
3361
|
const e = N();
|
|
3359
3362
|
return { apiMapDistance: (n, i) => {
|
|
3360
|
-
if (e.status ===
|
|
3363
|
+
if (e.status === oe.SUCCESS)
|
|
3361
3364
|
return AMap.GeometryUtil.distance(n, i);
|
|
3362
3365
|
} };
|
|
3363
|
-
},
|
|
3366
|
+
}, er = () => {
|
|
3364
3367
|
const e = N();
|
|
3365
3368
|
return { apiMapDistance: (n, i) => {
|
|
3366
|
-
if (e.status ===
|
|
3369
|
+
if (e.status === oe.SUCCESS)
|
|
3367
3370
|
return google.maps.geometry.spherical.computeDistanceBetween(T(n), T(i));
|
|
3368
3371
|
} };
|
|
3369
3372
|
}, He = () => {
|
|
3370
3373
|
const { supplier: e } = N();
|
|
3371
|
-
return e === "gmap" ?
|
|
3372
|
-
},
|
|
3373
|
-
const { city: t } = e, n = w(t), { readyPromise: i } = N(), { apiMapDistance: a } = He(), { geoPosition:
|
|
3374
|
+
return e === "gmap" ? er() : qo();
|
|
3375
|
+
}, tr = (e) => {
|
|
3376
|
+
const { city: t } = e, n = w(t), { readyPromise: i } = N(), { apiMapDistance: a } = He(), { geoPosition: o } = Ce(), r = w(""), s = w([]), { update: u, idx: g } = ee(), d = (l) => {
|
|
3374
3377
|
n.value = l, u();
|
|
3375
3378
|
}, c = (l) => {
|
|
3376
|
-
|
|
3379
|
+
r.value = l, u();
|
|
3377
3380
|
};
|
|
3378
3381
|
return b(
|
|
3379
3382
|
() => g.value,
|
|
3380
3383
|
async () => {
|
|
3381
|
-
if (!
|
|
3384
|
+
if (!r.value)
|
|
3382
3385
|
return;
|
|
3383
|
-
await i, new AMap.PlaceSearch({ city: n.value.name }).search(
|
|
3384
|
-
const p =
|
|
3386
|
+
await i, new AMap.PlaceSearch({ city: n.value.name }).search(r.value, (I, m) => {
|
|
3387
|
+
const p = o.value;
|
|
3385
3388
|
switch (I) {
|
|
3386
3389
|
case "complete": {
|
|
3387
3390
|
s.value = m.poiList.pois.map(
|
|
@@ -3410,35 +3413,35 @@ const Br = j((e) => {
|
|
|
3410
3413
|
immediate: !0
|
|
3411
3414
|
}
|
|
3412
3415
|
), { setKeyword: c, setCity: d, autoCompletePlaces: s };
|
|
3413
|
-
},
|
|
3414
|
-
const { city: t } = e, n = w({ ...t }), { readyPromise: i } = N(), { apiMapDistance: a } = He(), { geoPosition:
|
|
3416
|
+
}, nr = (e) => {
|
|
3417
|
+
const { city: t } = e, n = w({ ...t }), { readyPromise: i } = N(), { apiMapDistance: a } = He(), { geoPosition: o } = Ce(), r = w(""), s = w([]), { update: u, idx: g } = ee(), d = (I) => {
|
|
3415
3418
|
n.value = I, u();
|
|
3416
3419
|
}, c = (I) => {
|
|
3417
|
-
|
|
3420
|
+
r.value = I, u();
|
|
3418
3421
|
}, l = document.createElement("div");
|
|
3419
3422
|
return b(
|
|
3420
3423
|
() => g.value,
|
|
3421
3424
|
async () => {
|
|
3422
|
-
if (!
|
|
3425
|
+
if (!r.value)
|
|
3423
3426
|
return;
|
|
3424
3427
|
await i, new google.maps.places.PlacesService(l).textSearch(
|
|
3425
3428
|
{
|
|
3426
|
-
query:
|
|
3429
|
+
query: r.value,
|
|
3427
3430
|
bounds: n.value.bound
|
|
3428
3431
|
},
|
|
3429
3432
|
(m, p) => {
|
|
3430
|
-
const v =
|
|
3433
|
+
const v = o.value;
|
|
3431
3434
|
switch (p) {
|
|
3432
3435
|
case google.maps.places.PlacesServiceStatus.OK:
|
|
3433
3436
|
s.value = m.map(({ geometry: y, name: f, formatted_address: L }) => {
|
|
3434
3437
|
var D, C, Z, W;
|
|
3435
|
-
const A = (C = (D = y == null ? void 0 : y.location) == null ? void 0 : D.lng()) != null ? C : 0,
|
|
3438
|
+
const A = (C = (D = y == null ? void 0 : y.location) == null ? void 0 : D.lng()) != null ? C : 0, E = (W = (Z = y == null ? void 0 : y.location) == null ? void 0 : Z.lat()) != null ? W : 0;
|
|
3436
3439
|
return {
|
|
3437
3440
|
lng: A,
|
|
3438
|
-
lat:
|
|
3441
|
+
lat: E,
|
|
3439
3442
|
name: f != null ? f : "",
|
|
3440
3443
|
description: L != null ? L : "",
|
|
3441
|
-
distance: v ? a(v, [A,
|
|
3444
|
+
distance: v ? a(v, [A, E]) : void 0
|
|
3442
3445
|
};
|
|
3443
3446
|
});
|
|
3444
3447
|
return;
|
|
@@ -3451,23 +3454,23 @@ const Br = j((e) => {
|
|
|
3451
3454
|
);
|
|
3452
3455
|
}
|
|
3453
3456
|
), { setKeyword: c, setCity: d, autoCompletePlaces: s };
|
|
3454
|
-
},
|
|
3457
|
+
}, ir = (e) => {
|
|
3455
3458
|
const { supplier: t } = N();
|
|
3456
|
-
return t === "gmap" ?
|
|
3457
|
-
},
|
|
3459
|
+
return t === "gmap" ? nr(e) : tr(e);
|
|
3460
|
+
}, ar = (e) => {
|
|
3458
3461
|
var a;
|
|
3459
3462
|
const { cityNameRef: t, onChange: n } = e, i = P({ name: (a = t.value) != null ? a : "" });
|
|
3460
3463
|
return b(
|
|
3461
3464
|
() => t.value,
|
|
3462
|
-
(
|
|
3463
|
-
const
|
|
3464
|
-
i.name =
|
|
3465
|
+
(o) => {
|
|
3466
|
+
const r = o != null ? o : "";
|
|
3467
|
+
i.name = r, n == null || n({ name: r });
|
|
3465
3468
|
}
|
|
3466
3469
|
), i;
|
|
3467
|
-
},
|
|
3468
|
-
var
|
|
3470
|
+
}, or = (e) => {
|
|
3471
|
+
var o;
|
|
3469
3472
|
const { cityNameRef: t, onChange: n } = e, { readyPromise: i } = N(), a = P({
|
|
3470
|
-
name: (
|
|
3473
|
+
name: (o = t.value) != null ? o : "",
|
|
3471
3474
|
bound: {
|
|
3472
3475
|
east: 0,
|
|
3473
3476
|
north: 0,
|
|
@@ -3475,14 +3478,14 @@ const Br = j((e) => {
|
|
|
3475
3478
|
west: 0
|
|
3476
3479
|
}
|
|
3477
3480
|
});
|
|
3478
|
-
return
|
|
3481
|
+
return Ee(async () => {
|
|
3479
3482
|
var c, l;
|
|
3480
|
-
const
|
|
3481
|
-
if (!
|
|
3483
|
+
const r = t.value;
|
|
3484
|
+
if (!r)
|
|
3482
3485
|
return;
|
|
3483
3486
|
await i;
|
|
3484
3487
|
const s = new google.maps.Geocoder(), { results: u } = await s.geocode({
|
|
3485
|
-
address:
|
|
3488
|
+
address: r,
|
|
3486
3489
|
componentRestrictions: {
|
|
3487
3490
|
administrativeArea: "administrative_area_level_1"
|
|
3488
3491
|
},
|
|
@@ -3491,54 +3494,54 @@ const Br = j((e) => {
|
|
|
3491
3494
|
if (u.length !== 1)
|
|
3492
3495
|
throw new Error("MyError: multiple city found");
|
|
3493
3496
|
const { geometry: g } = u[0], d = (l = (c = g.bounds) == null ? void 0 : c.toJSON()) != null ? l : g.viewport.toJSON();
|
|
3494
|
-
a.name =
|
|
3497
|
+
a.name = r, a.bound = d, n == null || n({ name: r, bound: d });
|
|
3495
3498
|
}), a;
|
|
3496
|
-
},
|
|
3499
|
+
}, rr = (e) => {
|
|
3497
3500
|
const { supplier: t } = N();
|
|
3498
|
-
return t === "gmap" ?
|
|
3499
|
-
},
|
|
3500
|
-
const { cityNameRef: t } = e, n =
|
|
3501
|
+
return t === "gmap" ? or(e) : ar(e);
|
|
3502
|
+
}, vr = (e) => {
|
|
3503
|
+
const { cityNameRef: t } = e, n = rr({
|
|
3501
3504
|
cityNameRef: t,
|
|
3502
|
-
onChange: (s) =>
|
|
3503
|
-
}), { autoCompletePlaces: i, setKeyword: a, setCity:
|
|
3504
|
-
return { autoCompletePlaces: i, setKeyword: a, setCity:
|
|
3505
|
+
onChange: (s) => o(s)
|
|
3506
|
+
}), { autoCompletePlaces: i, setKeyword: a, setCity: o } = ir({ city: n });
|
|
3507
|
+
return { autoCompletePlaces: i, setKeyword: a, setCity: o, handleKeywordInput: (s) => {
|
|
3505
3508
|
const u = s.target;
|
|
3506
3509
|
a(u.value);
|
|
3507
3510
|
} };
|
|
3508
|
-
},
|
|
3511
|
+
}, yr = () => {
|
|
3509
3512
|
const { setMap: e, mapRef: t } = Pe(), { registerFitVeiw: n, setFitView: i } = xe({
|
|
3510
3513
|
mapRef: t,
|
|
3511
3514
|
padding: [25, 20, 15, 15]
|
|
3512
3515
|
});
|
|
3513
3516
|
return { setMap: e, registerFitVeiw: n, setFitView: i };
|
|
3514
|
-
},
|
|
3517
|
+
}, jr = () => {
|
|
3515
3518
|
const e = P({
|
|
3516
3519
|
lng: 0,
|
|
3517
3520
|
lat: 0,
|
|
3518
3521
|
name: ""
|
|
3519
|
-
}), t = w([]), { apiMapDistance: n } = He(), i = (
|
|
3522
|
+
}), t = w([]), { apiMapDistance: n } = He(), i = (r) => o.panToGeoPositionByRecomend(r), a = (r) => o.setCenterPlaceByUserSpecified(r), o = {
|
|
3520
3523
|
panToGeoPositionByRecomend: () => {
|
|
3521
3524
|
throw new Error("MyError: panToGeoPositionByRecomend used before assigned");
|
|
3522
3525
|
},
|
|
3523
3526
|
setCenterPlaceByUserSpecified: () => {
|
|
3524
3527
|
throw new Error("MyError: setCenterPlaceByRecomand used before assigned");
|
|
3525
3528
|
},
|
|
3526
|
-
onChangeCenterPlace: (
|
|
3527
|
-
Object.assign(e, { ...
|
|
3529
|
+
onChangeCenterPlace: (r) => {
|
|
3530
|
+
Object.assign(e, { ...r });
|
|
3528
3531
|
},
|
|
3529
|
-
onChangeRecomendPlaces: (
|
|
3530
|
-
t.value = [...
|
|
3532
|
+
onChangeRecomendPlaces: (r) => {
|
|
3533
|
+
t.value = [...r];
|
|
3531
3534
|
}
|
|
3532
3535
|
};
|
|
3533
3536
|
return {
|
|
3534
|
-
mapContext:
|
|
3537
|
+
mapContext: o,
|
|
3535
3538
|
centerPlace: e,
|
|
3536
3539
|
placeCandidates: t,
|
|
3537
3540
|
panToGeoPositionByRecomend: i,
|
|
3538
3541
|
setCenterPlaceByUserSpecified: a,
|
|
3539
3542
|
apiMapDistance: n
|
|
3540
3543
|
};
|
|
3541
|
-
},
|
|
3544
|
+
}, Lr = () => {
|
|
3542
3545
|
const { mapRef: e, setMap: t } = Pe(), { registerFitVeiw: n, setFitView: i } = xe({
|
|
3543
3546
|
mapRef: e,
|
|
3544
3547
|
autoFitTimeout: 5e3,
|
|
@@ -3548,35 +3551,35 @@ const Br = j((e) => {
|
|
|
3548
3551
|
};
|
|
3549
3552
|
export {
|
|
3550
3553
|
fa as AbsoluteAddressBox,
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3554
|
+
cr as AddressBox,
|
|
3555
|
+
gr as BusinessQuotingMap,
|
|
3556
|
+
Mr as BusinessRecomendPlaceMap,
|
|
3557
|
+
pr as BusinessTaxiEndMap,
|
|
3558
|
+
fr as BusinessTaxiServiceMap,
|
|
3556
3559
|
De as DrivingLine,
|
|
3557
3560
|
we as DrivingRoute,
|
|
3558
3561
|
he as HeycarMap,
|
|
3559
|
-
|
|
3562
|
+
ur as MapProvider,
|
|
3560
3563
|
be as PassengerCircle,
|
|
3561
|
-
|
|
3564
|
+
To as PickupPoints,
|
|
3562
3565
|
k as PlaceCircle,
|
|
3563
3566
|
O as StartEndPoint,
|
|
3564
3567
|
Ye as TaxiCar,
|
|
3565
|
-
|
|
3568
|
+
bn as WalkingLine,
|
|
3566
3569
|
zn as WalkingRoute,
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3570
|
+
Qo as WaveCircle,
|
|
3571
|
+
vr as useBusinessMapAutoComplete,
|
|
3572
|
+
yr as useBusinessQuotingMap,
|
|
3573
|
+
jr as useBusinessRecomendPlaceMap,
|
|
3574
|
+
Lr as useBusinessTaxiServiceMap,
|
|
3575
|
+
lr as useDrivingRoute,
|
|
3573
3576
|
Ce as useGeoLocation,
|
|
3574
3577
|
Pe as useHeycarMap,
|
|
3575
|
-
|
|
3576
|
-
|
|
3578
|
+
dr as useMapAngle,
|
|
3579
|
+
fo as useMapDrag,
|
|
3577
3580
|
xe as useMapFitView,
|
|
3578
3581
|
He as useMapGeometry,
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
+
Ir as useMapPlace,
|
|
3583
|
+
Ao as useMapRecomendPlace,
|
|
3584
|
+
mr as useWalkingRoute
|
|
3582
3585
|
};
|