@heycar/heycars-map 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/business-components/BusinessRecomendPlaceMap/useFirstWorkflowRecomendLoading.d.ts +4 -0
- package/dist/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +0 -1
- package/dist/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +1 -1
- package/dist/business-components/PassengerCircle/PassengerCircle.css.d.ts +3 -3
- package/dist/index.cjs +57 -53
- package/dist/index.js +1240 -1253
- package/dist/style.css +1 -1
- package/dist/utils/transform.d.ts +2 -1
- package/package.json +1 -1
- package/todo.md +51 -19
package/dist/index.js
CHANGED
|
@@ -1,144 +1,101 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import qn, { defineComponent as Et, h as g, computed as w, inject as He, provide as Je, watch as T, onMounted as ne, onUnmounted as ge, watchPostEffect as Y, shallowRef as R, reactive as Z, toRefs as Rt, ref as C, toRef as ei, watchEffect as ke } from "vue";
|
|
2
|
+
qn.util.warn;
|
|
3
3
|
const Qe = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+", Fe = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9Ii44Ii8+PC9zdmc+";
|
|
4
|
-
var
|
|
5
|
-
const
|
|
6
|
-
var
|
|
7
|
-
const
|
|
8
|
-
var
|
|
9
|
-
const
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
var e =
|
|
4
|
+
var ti = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, ni = typeof global == "object" && global && global.Object === Object && global;
|
|
5
|
+
const ii = ni;
|
|
6
|
+
var ai = typeof self == "object" && self && self.Object === Object && self, oi = ii || ai || Function("return this")();
|
|
7
|
+
const zt = oi;
|
|
8
|
+
var ri = zt.Symbol;
|
|
9
|
+
const q = ri;
|
|
10
|
+
var Ot = Object.prototype, si = Ot.hasOwnProperty, ci = Ot.toString, ce = q ? q.toStringTag : void 0;
|
|
11
|
+
function ui(t) {
|
|
12
|
+
var e = si.call(t, ce), n = t[ce];
|
|
13
13
|
try {
|
|
14
|
-
t[
|
|
14
|
+
t[ce] = void 0;
|
|
15
15
|
var i = !0;
|
|
16
16
|
} catch {
|
|
17
17
|
}
|
|
18
|
-
var a =
|
|
19
|
-
return i && (e ? t[
|
|
18
|
+
var a = ci.call(t);
|
|
19
|
+
return i && (e ? t[ce] = n : delete t[ce]), a;
|
|
20
20
|
}
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
return
|
|
21
|
+
var li = Object.prototype, di = li.toString;
|
|
22
|
+
function gi(t) {
|
|
23
|
+
return di.call(t);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
return t == null ? t === void 0 ?
|
|
25
|
+
var mi = "[object Null]", Ii = "[object Undefined]", ct = q ? q.toStringTag : void 0;
|
|
26
|
+
function Mi(t) {
|
|
27
|
+
return t == null ? t === void 0 ? Ii : mi : ct && ct in Object(t) ? ui(t) : gi(t);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function fi(t) {
|
|
30
30
|
return t != null && typeof t == "object";
|
|
31
31
|
}
|
|
32
|
-
var
|
|
33
|
-
function
|
|
34
|
-
return typeof t == "symbol" ||
|
|
32
|
+
var pi = "[object Symbol]";
|
|
33
|
+
function Gt(t) {
|
|
34
|
+
return typeof t == "symbol" || fi(t) && Mi(t) == pi;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function vi(t, e) {
|
|
37
37
|
for (var n = -1, i = t == null ? 0 : t.length, a = Array(i); ++n < i; )
|
|
38
38
|
a[n] = e(t[n], n, t);
|
|
39
39
|
return a;
|
|
40
40
|
}
|
|
41
|
-
var
|
|
42
|
-
const
|
|
43
|
-
var
|
|
44
|
-
function
|
|
41
|
+
var yi = Array.isArray;
|
|
42
|
+
const ji = yi;
|
|
43
|
+
var Li = 1 / 0, ut = q ? q.prototype : void 0, lt = ut ? ut.toString : void 0;
|
|
44
|
+
function kt(t) {
|
|
45
45
|
if (typeof t == "string")
|
|
46
46
|
return t;
|
|
47
|
-
if (
|
|
48
|
-
return
|
|
49
|
-
if (
|
|
50
|
-
return
|
|
47
|
+
if (ji(t))
|
|
48
|
+
return vi(t, kt) + "";
|
|
49
|
+
if (Gt(t))
|
|
50
|
+
return lt ? lt.call(t) : "";
|
|
51
51
|
var e = t + "";
|
|
52
|
-
return e == "0" && 1 / t == -
|
|
52
|
+
return e == "0" && 1 / t == -Li ? "-0" : e;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
55
|
-
function
|
|
56
|
-
for (var e = t.length; e-- &&
|
|
54
|
+
var Ai = /\s/;
|
|
55
|
+
function Si(t) {
|
|
56
|
+
for (var e = t.length; e-- && Ai.test(t.charAt(e)); )
|
|
57
57
|
;
|
|
58
58
|
return e;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
61
|
-
function
|
|
62
|
-
return t && t.slice(0,
|
|
60
|
+
var Ni = /^\s+/;
|
|
61
|
+
function hi(t) {
|
|
62
|
+
return t && t.slice(0, Si(t) + 1).replace(Ni, "");
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function We(t) {
|
|
65
65
|
var e = typeof t;
|
|
66
66
|
return t != null && (e == "object" || e == "function");
|
|
67
67
|
}
|
|
68
|
-
var
|
|
69
|
-
function
|
|
68
|
+
var dt = 0 / 0, Di = /^[-+]0x[0-9a-f]+$/i, wi = /^0b[01]+$/i, Ci = /^0o[0-7]+$/i, Pi = parseInt;
|
|
69
|
+
function gt(t) {
|
|
70
70
|
if (typeof t == "number")
|
|
71
71
|
return t;
|
|
72
|
-
if (
|
|
73
|
-
return
|
|
74
|
-
if (
|
|
72
|
+
if (Gt(t))
|
|
73
|
+
return dt;
|
|
74
|
+
if (We(t)) {
|
|
75
75
|
var e = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
76
|
-
t =
|
|
76
|
+
t = We(e) ? e + "" : e;
|
|
77
77
|
}
|
|
78
78
|
if (typeof t != "string")
|
|
79
79
|
return t === 0 ? t : +t;
|
|
80
|
-
t =
|
|
81
|
-
var n =
|
|
82
|
-
return n ||
|
|
83
|
-
}
|
|
84
|
-
function Zi(t, e, n, i) {
|
|
85
|
-
for (var a = t.length, o = n + (i ? 1 : -1); i ? o-- : ++o < a; )
|
|
86
|
-
if (e(t[o], o, t))
|
|
87
|
-
return o;
|
|
88
|
-
return -1;
|
|
89
|
-
}
|
|
90
|
-
function Oi(t) {
|
|
91
|
-
return t !== t;
|
|
92
|
-
}
|
|
93
|
-
function Gi(t, e, n) {
|
|
94
|
-
for (var i = n - 1, a = t.length; ++i < a; )
|
|
95
|
-
if (t[i] === e)
|
|
96
|
-
return i;
|
|
97
|
-
return -1;
|
|
98
|
-
}
|
|
99
|
-
function Bt(t, e, n) {
|
|
100
|
-
return e === e ? Gi(t, e, n) : Zi(t, Oi, n);
|
|
101
|
-
}
|
|
102
|
-
function Xe(t) {
|
|
103
|
-
return t == null ? "" : $e(t);
|
|
104
|
-
}
|
|
105
|
-
function ki(t, e, n) {
|
|
106
|
-
var i = -1, a = t.length;
|
|
107
|
-
e < 0 && (e = -e > a ? 0 : a + e), n = n > a ? a : n, n < 0 && (n += a), a = e > n ? 0 : n - e >>> 0, e >>>= 0;
|
|
108
|
-
for (var o = Array(a); ++i < a; )
|
|
109
|
-
o[i] = t[i + e];
|
|
110
|
-
return o;
|
|
111
|
-
}
|
|
112
|
-
function Wi(t, e, n) {
|
|
113
|
-
var i = t.length;
|
|
114
|
-
return n = n === void 0 ? i : n, !e && n >= i ? t : ki(t, e, n);
|
|
115
|
-
}
|
|
116
|
-
var Ui = "\\ud800-\\udfff", Bi = "\\u0300-\\u036f", Vi = "\\ufe20-\\ufe2f", Yi = "\\u20d0-\\u20ff", Hi = Bi + Vi + Yi, Ji = "\\ufe0e\\ufe0f", Qi = "\\u200d", Fi = RegExp("[" + Qi + Ui + Hi + Ji + "]");
|
|
117
|
-
function $i(t) {
|
|
118
|
-
return Fi.test(t);
|
|
119
|
-
}
|
|
120
|
-
function Xi(t) {
|
|
121
|
-
return t.split("");
|
|
80
|
+
t = hi(t);
|
|
81
|
+
var n = wi.test(t);
|
|
82
|
+
return n || Ci.test(t) ? Pi(t.slice(2), n ? 2 : 8) : Di.test(t) ? dt : +t;
|
|
122
83
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
return t.match(ca) || [];
|
|
126
|
-
}
|
|
127
|
-
function ft(t) {
|
|
128
|
-
return $i(t) ? ua(t) : Xi(t);
|
|
84
|
+
function Wt(t) {
|
|
85
|
+
return t == null ? "" : kt(t);
|
|
129
86
|
}
|
|
130
|
-
function
|
|
87
|
+
function xi(t, e, n, i) {
|
|
131
88
|
var a = -1, o = t == null ? 0 : t.length;
|
|
132
89
|
for (i && o && (n = t[++a]); ++a < o; )
|
|
133
90
|
n = e(n, t[a], a, t);
|
|
134
91
|
return n;
|
|
135
92
|
}
|
|
136
|
-
function
|
|
93
|
+
function bi(t) {
|
|
137
94
|
return function(e) {
|
|
138
95
|
return t == null ? void 0 : t[e];
|
|
139
96
|
};
|
|
140
97
|
}
|
|
141
|
-
var
|
|
98
|
+
var Zi = {
|
|
142
99
|
// Latin-1 Supplement block.
|
|
143
100
|
À: "A",
|
|
144
101
|
Á: "A",
|
|
@@ -331,148 +288,130 @@ var ga = {
|
|
|
331
288
|
œ: "oe",
|
|
332
289
|
ʼn: "'n",
|
|
333
290
|
ſ: "s"
|
|
334
|
-
},
|
|
335
|
-
const
|
|
336
|
-
var
|
|
337
|
-
function
|
|
338
|
-
return t =
|
|
291
|
+
}, Ti = bi(Zi);
|
|
292
|
+
const Ei = Ti;
|
|
293
|
+
var Ri = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, zi = "\\u0300-\\u036f", Oi = "\\ufe20-\\ufe2f", Gi = "\\u20d0-\\u20ff", ki = zi + Oi + Gi, Wi = "[" + ki + "]", Ui = RegExp(Wi, "g");
|
|
294
|
+
function Bi(t) {
|
|
295
|
+
return t = Wt(t), t && t.replace(Ri, Ei).replace(Ui, "");
|
|
339
296
|
}
|
|
340
|
-
var
|
|
341
|
-
function
|
|
342
|
-
return t.match(
|
|
297
|
+
var Vi = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
298
|
+
function Yi(t) {
|
|
299
|
+
return t.match(Vi) || [];
|
|
343
300
|
}
|
|
344
|
-
var
|
|
345
|
-
function
|
|
346
|
-
return
|
|
301
|
+
var Hi = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
302
|
+
function Ji(t) {
|
|
303
|
+
return Hi.test(t);
|
|
347
304
|
}
|
|
348
|
-
var
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
305
|
+
var Ut = "\\ud800-\\udfff", Qi = "\\u0300-\\u036f", Fi = "\\ufe20-\\ufe2f", Xi = "\\u20d0-\\u20ff", $i = Qi + Fi + Xi, Bt = "\\u2700-\\u27bf", Vt = "a-z\\xdf-\\xf6\\xf8-\\xff", _i = "\\xac\\xb1\\xd7\\xf7", Ki = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", qi = "\\u2000-\\u206f", ea = " \\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", Yt = "A-Z\\xc0-\\xd6\\xd8-\\xde", ta = "\\ufe0e\\ufe0f", Ht = _i + Ki + qi + ea, Jt = "['’]", mt = "[" + Ht + "]", na = "[" + $i + "]", Qt = "\\d+", ia = "[" + Bt + "]", Ft = "[" + Vt + "]", Xt = "[^" + Ut + Ht + Qt + Bt + Vt + Yt + "]", aa = "\\ud83c[\\udffb-\\udfff]", oa = "(?:" + na + "|" + aa + ")", ra = "[^" + Ut + "]", $t = "(?:\\ud83c[\\udde6-\\uddff]){2}", _t = "[\\ud800-\\udbff][\\udc00-\\udfff]", $ = "[" + Yt + "]", sa = "\\u200d", It = "(?:" + Ft + "|" + Xt + ")", ca = "(?:" + $ + "|" + Xt + ")", Mt = "(?:" + Jt + "(?:d|ll|m|re|s|t|ve))?", ft = "(?:" + Jt + "(?:D|LL|M|RE|S|T|VE))?", Kt = oa + "?", qt = "[" + ta + "]?", ua = "(?:" + sa + "(?:" + [ra, $t, _t].join("|") + ")" + qt + Kt + ")*", la = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", da = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", ga = qt + Kt + ua, ma = "(?:" + [ia, $t, _t].join("|") + ")" + ga, Ia = RegExp([
|
|
306
|
+
$ + "?" + Ft + "+" + Mt + "(?=" + [mt, $, "$"].join("|") + ")",
|
|
307
|
+
ca + "+" + ft + "(?=" + [mt, $ + It, "$"].join("|") + ")",
|
|
308
|
+
$ + "?" + It + "+" + Mt,
|
|
309
|
+
$ + "+" + ft,
|
|
310
|
+
da,
|
|
311
|
+
la,
|
|
312
|
+
Qt,
|
|
313
|
+
ma
|
|
357
314
|
].join("|"), "g");
|
|
358
|
-
function
|
|
359
|
-
return t.match(
|
|
315
|
+
function Ma(t) {
|
|
316
|
+
return t.match(Ia) || [];
|
|
360
317
|
}
|
|
361
|
-
function
|
|
362
|
-
return t =
|
|
318
|
+
function fa(t, e, n) {
|
|
319
|
+
return t = Wt(t), e = n ? void 0 : e, e === void 0 ? Ji(t) ? Ma(t) : Yi(t) : t.match(e) || [];
|
|
363
320
|
}
|
|
364
|
-
var
|
|
365
|
-
function
|
|
321
|
+
var pa = "['’]", va = RegExp(pa, "g");
|
|
322
|
+
function ya(t) {
|
|
366
323
|
return function(e) {
|
|
367
|
-
return
|
|
324
|
+
return xi(fa(Bi(e).replace(va, "")), t, "");
|
|
368
325
|
};
|
|
369
326
|
}
|
|
370
|
-
var
|
|
371
|
-
return
|
|
327
|
+
var ja = function() {
|
|
328
|
+
return zt.Date.now();
|
|
372
329
|
};
|
|
373
|
-
const
|
|
374
|
-
var
|
|
375
|
-
function
|
|
376
|
-
var i, a, o, r, s, c, d = 0,
|
|
330
|
+
const ze = ja;
|
|
331
|
+
var La = "Expected a function", Aa = Math.max, Sa = Math.min;
|
|
332
|
+
function Na(t, e, n) {
|
|
333
|
+
var i, a, o, r, s, c, d = 0, m = !1, u = !1, l = !0;
|
|
377
334
|
if (typeof t != "function")
|
|
378
|
-
throw new TypeError(
|
|
379
|
-
e =
|
|
380
|
-
function
|
|
381
|
-
var
|
|
382
|
-
return i = a = void 0, d =
|
|
335
|
+
throw new TypeError(La);
|
|
336
|
+
e = gt(e) || 0, We(n) && (m = !!n.leading, u = "maxWait" in n, o = u ? Aa(gt(n.maxWait) || 0, e) : o, l = "trailing" in n ? !!n.trailing : l);
|
|
337
|
+
function I(h) {
|
|
338
|
+
var x = i, b = a;
|
|
339
|
+
return i = a = void 0, d = h, r = t.apply(b, x), r;
|
|
383
340
|
}
|
|
384
|
-
function M(
|
|
385
|
-
return d =
|
|
341
|
+
function M(h) {
|
|
342
|
+
return d = h, s = setTimeout(p, e), m ? I(h) : r;
|
|
386
343
|
}
|
|
387
|
-
function
|
|
388
|
-
var
|
|
389
|
-
return u ?
|
|
344
|
+
function f(h) {
|
|
345
|
+
var x = h - c, b = h - d, U = e - x;
|
|
346
|
+
return u ? Sa(U, o - b) : U;
|
|
390
347
|
}
|
|
391
|
-
function
|
|
392
|
-
var
|
|
393
|
-
return c === void 0 ||
|
|
348
|
+
function y(h) {
|
|
349
|
+
var x = h - c, b = h - d;
|
|
350
|
+
return c === void 0 || x >= e || x < 0 || u && b >= o;
|
|
394
351
|
}
|
|
395
|
-
function
|
|
396
|
-
var
|
|
397
|
-
if (
|
|
398
|
-
return v(
|
|
399
|
-
s = setTimeout(
|
|
352
|
+
function p() {
|
|
353
|
+
var h = ze();
|
|
354
|
+
if (y(h))
|
|
355
|
+
return v(h);
|
|
356
|
+
s = setTimeout(p, f(h));
|
|
400
357
|
}
|
|
401
|
-
function v(
|
|
402
|
-
return s = void 0, l && i ?
|
|
358
|
+
function v(h) {
|
|
359
|
+
return s = void 0, l && i ? I(h) : (i = a = void 0, r);
|
|
403
360
|
}
|
|
404
361
|
function L() {
|
|
405
362
|
s !== void 0 && clearTimeout(s), d = 0, i = c = a = s = void 0;
|
|
406
363
|
}
|
|
407
|
-
function
|
|
408
|
-
return s === void 0 ? r : v(
|
|
364
|
+
function S() {
|
|
365
|
+
return s === void 0 ? r : v(ze());
|
|
409
366
|
}
|
|
410
367
|
function D() {
|
|
411
|
-
var
|
|
412
|
-
if (i = arguments, a = this, c =
|
|
368
|
+
var h = ze(), x = y(h);
|
|
369
|
+
if (i = arguments, a = this, c = h, x) {
|
|
413
370
|
if (s === void 0)
|
|
414
371
|
return M(c);
|
|
415
372
|
if (u)
|
|
416
|
-
return clearTimeout(s), s = setTimeout(
|
|
373
|
+
return clearTimeout(s), s = setTimeout(p, e), I(c);
|
|
417
374
|
}
|
|
418
|
-
return s === void 0 && (s = setTimeout(
|
|
375
|
+
return s === void 0 && (s = setTimeout(p, e)), r;
|
|
419
376
|
}
|
|
420
|
-
return D.cancel = L, D.flush =
|
|
377
|
+
return D.cancel = L, D.flush = S, D;
|
|
421
378
|
}
|
|
422
|
-
var
|
|
379
|
+
var ha = ya(function(t, e, n) {
|
|
423
380
|
return t + (n ? "-" : "") + e.toLowerCase();
|
|
424
381
|
});
|
|
425
|
-
const
|
|
426
|
-
function ro(t, e) {
|
|
427
|
-
for (var n = t.length; n-- && Bt(e, t[n], 0) > -1; )
|
|
428
|
-
;
|
|
429
|
-
return n;
|
|
430
|
-
}
|
|
431
|
-
function so(t, e) {
|
|
432
|
-
for (var n = -1, i = t.length; ++n < i && Bt(e, t[n], 0) > -1; )
|
|
433
|
-
;
|
|
434
|
-
return n;
|
|
435
|
-
}
|
|
436
|
-
function co(t, e, n) {
|
|
437
|
-
if (t = Xe(t), t && (n || e === void 0))
|
|
438
|
-
return Ut(t);
|
|
439
|
-
if (!t || !(e = $e(e)))
|
|
440
|
-
return t;
|
|
441
|
-
var i = ft(t), a = ft(e), o = so(i, a), r = ro(i, a) + 1;
|
|
442
|
-
return Wi(i, o, r).join("");
|
|
443
|
-
}
|
|
382
|
+
const en = ha;
|
|
444
383
|
function j(t) {
|
|
445
|
-
return
|
|
384
|
+
return Et({
|
|
446
385
|
name: t.name,
|
|
447
386
|
inheritAttrs: !1,
|
|
448
387
|
setup(e, n) {
|
|
449
|
-
const { attrs: i, slots: a, emit: o } = n, r = i, s = o, c = (
|
|
450
|
-
const l =
|
|
451
|
-
s(
|
|
388
|
+
const { attrs: i, slots: a, emit: o } = n, r = i, s = o, c = (m, u) => {
|
|
389
|
+
const l = en(m);
|
|
390
|
+
s(m, u), m !== l && s(l, u);
|
|
452
391
|
}, d = new Proxy(a, {
|
|
453
|
-
get(
|
|
454
|
-
var
|
|
455
|
-
return (
|
|
392
|
+
get(m, u, l) {
|
|
393
|
+
var I;
|
|
394
|
+
return (I = Reflect.get(m, u, l)) != null ? I : Reflect.get(r, u);
|
|
456
395
|
}
|
|
457
396
|
});
|
|
458
397
|
return t(r, { ...n, slots: d, emit: c });
|
|
459
398
|
}
|
|
460
399
|
});
|
|
461
400
|
}
|
|
462
|
-
function
|
|
401
|
+
function me(t) {
|
|
463
402
|
return {
|
|
464
|
-
props: (e) =>
|
|
403
|
+
props: (e) => Et({
|
|
465
404
|
name: t.name,
|
|
466
405
|
inheritAttrs: !1,
|
|
467
406
|
props: e,
|
|
468
407
|
setup(n, i) {
|
|
469
|
-
const a = n, { slots: o, emit: r } = i, s = r, c = (
|
|
470
|
-
const l =
|
|
471
|
-
s(
|
|
408
|
+
const a = n, { slots: o, emit: r } = i, s = r, c = (m, u) => {
|
|
409
|
+
const l = en(m);
|
|
410
|
+
s(m, u), m !== l && s(l, u);
|
|
472
411
|
}, d = new Proxy(o, {
|
|
473
|
-
get(
|
|
474
|
-
var
|
|
475
|
-
return (
|
|
412
|
+
get(m, u, l) {
|
|
413
|
+
var I;
|
|
414
|
+
return (I = Reflect.get(m, u, l)) != null ? I : Reflect.get(a, u);
|
|
476
415
|
}
|
|
477
416
|
});
|
|
478
417
|
return t(a, { ...i, slots: d, emit: c });
|
|
@@ -480,16 +419,16 @@ function de(t) {
|
|
|
480
419
|
})
|
|
481
420
|
};
|
|
482
421
|
}
|
|
483
|
-
const k = g,
|
|
484
|
-
var
|
|
485
|
-
const
|
|
422
|
+
const k = g, le = "zh-CN";
|
|
423
|
+
var Da = "n8tgem1", pt = "n8tgem0", wa = "n8tgem5", Ca = "n8tgem4", Pa = "n8tgem2", xa = "n8tgem3", ba = "n8tgem7", Za = "n8tgem6";
|
|
424
|
+
const Ta = j(function(e) {
|
|
486
425
|
const n = w(() => {
|
|
487
426
|
var i;
|
|
488
427
|
return (i = e.value) == null ? void 0 : i.split(`
|
|
489
428
|
`).flatMap((a, o) => o === 0 ? a : [g("br"), a]);
|
|
490
429
|
});
|
|
491
430
|
return () => g("div", [n.value]);
|
|
492
|
-
}),
|
|
431
|
+
}), Ea = j(function(e, {
|
|
493
432
|
emit: n
|
|
494
433
|
}) {
|
|
495
434
|
const i = () => n("click");
|
|
@@ -500,47 +439,47 @@ const po = j(function(e) {
|
|
|
500
439
|
description: r
|
|
501
440
|
} = e;
|
|
502
441
|
return a === "locator" ? g("div", {
|
|
503
|
-
class:
|
|
442
|
+
class: pt
|
|
504
443
|
}, [g("img", {
|
|
505
|
-
class:
|
|
444
|
+
class: ba,
|
|
506
445
|
attrs: {
|
|
507
446
|
src: Qe
|
|
508
447
|
}
|
|
509
448
|
})]) : g("div", {
|
|
510
|
-
class:
|
|
449
|
+
class: pt
|
|
511
450
|
}, [g("div", {
|
|
512
|
-
class:
|
|
451
|
+
class: Da,
|
|
513
452
|
on: {
|
|
514
453
|
click: i
|
|
515
454
|
}
|
|
516
455
|
}, [g("div", {
|
|
517
|
-
class:
|
|
518
|
-
}, [g(
|
|
519
|
-
class:
|
|
456
|
+
class: Pa
|
|
457
|
+
}, [g(Ta, {
|
|
458
|
+
class: xa,
|
|
520
459
|
attrs: {
|
|
521
460
|
value: o
|
|
522
461
|
}
|
|
523
462
|
}), !!r && g("div", {
|
|
524
|
-
class:
|
|
463
|
+
class: Ca
|
|
525
464
|
}, [r])]), g("img", {
|
|
526
|
-
class:
|
|
465
|
+
class: wa,
|
|
527
466
|
attrs: {
|
|
528
467
|
src: Fe
|
|
529
468
|
}
|
|
530
469
|
})]), g("i", {
|
|
531
|
-
class:
|
|
470
|
+
class: Za
|
|
532
471
|
})]);
|
|
533
472
|
};
|
|
534
|
-
}),
|
|
535
|
-
const t = He(
|
|
473
|
+
}), ee = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIxN3B4IiB2aWV3Qm94PSIwIDAgMTcgMTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5qSt5ZyG5b2iPC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxjaXJjbGUgaWQ9InBhdGgtMSIgY3g9IjQuNSIgY3k9IjkuNSIgcj0iNC41Ij48L2NpcmNsZT4KICAgICAgICA8ZmlsdGVyIHg9Ii02MS4xJSIgeT0iLTYxLjElIiB3aWR0aD0iMjIyLjIlIiBoZWlnaHQ9IjIyMi4yJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0iZmlsdGVyLTIiPgogICAgICAgICAgICA8ZmVNb3JwaG9sb2d5IHJhZGl1cz0iMSIgb3BlcmF0b3I9ImRpbGF0ZSIgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9In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ICAgICAgICAgICAgIDx1c2UgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMSIgZmlsdGVyPSJ1cmwoI2ZpbHRlci0yKSIgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICA8dXNlIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSIjMzQ2RUZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=", tn = Symbol(), N = () => {
|
|
474
|
+
const t = He(tn);
|
|
536
475
|
if (!t)
|
|
537
476
|
throw new Error("MyError: useMapSupplier should be under MapProvider");
|
|
538
477
|
return t;
|
|
539
|
-
},
|
|
540
|
-
const { supplier: t } =
|
|
541
|
-
return t === "gmap" ?
|
|
542
|
-
},
|
|
543
|
-
const e =
|
|
478
|
+
}, Ra = (t) => Je(tn, t), nn = Symbol("amap"), Ie = () => He(nn), za = (t) => Je(nn, t), an = Symbol("gmap"), Me = () => He(an), Oa = (t) => Je(an, t), on = () => {
|
|
479
|
+
const { supplier: t } = N();
|
|
480
|
+
return t === "gmap" ? Me() : Ie();
|
|
481
|
+
}, Ga = (t) => {
|
|
482
|
+
const e = on();
|
|
544
483
|
T(
|
|
545
484
|
() => e.value,
|
|
546
485
|
(n) => {
|
|
@@ -550,30 +489,30 @@ const po = j(function(e) {
|
|
|
550
489
|
immediate: !0
|
|
551
490
|
}
|
|
552
491
|
);
|
|
553
|
-
},
|
|
492
|
+
}, rn = () => new Promise((t) => Ga(t)), sn = (t) => {
|
|
554
493
|
const { registerOverlay: e, overlayRef: n } = t;
|
|
555
494
|
ne(() => {
|
|
556
495
|
const i = n.value;
|
|
557
496
|
i && (e == null || e.add(i));
|
|
558
|
-
}),
|
|
497
|
+
}), ge(() => {
|
|
559
498
|
const i = n.value;
|
|
560
499
|
i && (e == null || e.remove(i));
|
|
561
500
|
});
|
|
562
|
-
},
|
|
563
|
-
var
|
|
564
|
-
function
|
|
501
|
+
}, vt = (t) => t != null && typeof t == "object" && Number.isFinite(t.lat) && Number.isFinite(t.lng);
|
|
502
|
+
var ka = typeof WeakMap == "function", yt = Object.keys;
|
|
503
|
+
function Le(t, e) {
|
|
565
504
|
return t === e || t !== t && e !== e;
|
|
566
505
|
}
|
|
567
|
-
function
|
|
506
|
+
function jt(t) {
|
|
568
507
|
return t.constructor === Object || t.constructor == null;
|
|
569
508
|
}
|
|
570
|
-
function
|
|
509
|
+
function Lt(t) {
|
|
571
510
|
return !!t && typeof t.then == "function";
|
|
572
511
|
}
|
|
573
|
-
function
|
|
512
|
+
function At(t) {
|
|
574
513
|
return !!(t && t.$$typeof);
|
|
575
514
|
}
|
|
576
|
-
function
|
|
515
|
+
function Wa() {
|
|
577
516
|
var t = [];
|
|
578
517
|
return {
|
|
579
518
|
delete: function(e) {
|
|
@@ -598,31 +537,31 @@ function ho() {
|
|
|
598
537
|
}
|
|
599
538
|
};
|
|
600
539
|
}
|
|
601
|
-
var
|
|
540
|
+
var Ua = function(t) {
|
|
602
541
|
return t ? function() {
|
|
603
542
|
return /* @__PURE__ */ new WeakMap();
|
|
604
|
-
} :
|
|
605
|
-
}(
|
|
606
|
-
function
|
|
543
|
+
} : Wa;
|
|
544
|
+
}(ka);
|
|
545
|
+
function cn(t) {
|
|
607
546
|
return function(n) {
|
|
608
547
|
var i = t || n;
|
|
609
|
-
return function(o, r, s, c, d,
|
|
610
|
-
u === void 0 && (u =
|
|
611
|
-
var l = !!o && typeof o == "object",
|
|
612
|
-
if (l !==
|
|
548
|
+
return function(o, r, s, c, d, m, u) {
|
|
549
|
+
u === void 0 && (u = Ua());
|
|
550
|
+
var l = !!o && typeof o == "object", I = !!r && typeof r == "object";
|
|
551
|
+
if (l !== I)
|
|
613
552
|
return !1;
|
|
614
|
-
if (!l && !
|
|
553
|
+
if (!l && !I)
|
|
615
554
|
return i(o, r, u);
|
|
616
555
|
var M = u.get(o);
|
|
617
556
|
if (M && u.get(r))
|
|
618
557
|
return M === r;
|
|
619
558
|
u.set(o, r), u.set(r, o);
|
|
620
|
-
var
|
|
621
|
-
return u.delete(o), u.delete(r),
|
|
559
|
+
var f = i(o, r, u);
|
|
560
|
+
return u.delete(o), u.delete(r), f;
|
|
622
561
|
};
|
|
623
562
|
};
|
|
624
563
|
}
|
|
625
|
-
function
|
|
564
|
+
function Ba(t, e, n, i) {
|
|
626
565
|
var a = t.length;
|
|
627
566
|
if (e.length !== a)
|
|
628
567
|
return !1;
|
|
@@ -631,61 +570,61 @@ function Do(t, e, n, i) {
|
|
|
631
570
|
return !1;
|
|
632
571
|
return !0;
|
|
633
572
|
}
|
|
634
|
-
function
|
|
573
|
+
function Va(t, e, n, i) {
|
|
635
574
|
var a = t.size === e.size;
|
|
636
575
|
if (a && t.size) {
|
|
637
576
|
var o = {}, r = 0;
|
|
638
577
|
t.forEach(function(s, c) {
|
|
639
578
|
if (a) {
|
|
640
|
-
var d = !1,
|
|
579
|
+
var d = !1, m = 0;
|
|
641
580
|
e.forEach(function(u, l) {
|
|
642
|
-
!d && !o[
|
|
581
|
+
!d && !o[m] && (d = n(c, l, r, m, t, e, i) && n(s, u, c, l, t, e, i), d && (o[m] = !0)), m++;
|
|
643
582
|
}), r++, a = d;
|
|
644
583
|
}
|
|
645
584
|
});
|
|
646
585
|
}
|
|
647
586
|
return a;
|
|
648
587
|
}
|
|
649
|
-
var
|
|
650
|
-
function
|
|
651
|
-
var a =
|
|
652
|
-
if (
|
|
588
|
+
var Ya = "_owner", Ha = Function.prototype.bind.call(Function.prototype.call, Object.prototype.hasOwnProperty);
|
|
589
|
+
function St(t, e, n, i) {
|
|
590
|
+
var a = yt(t), o = a.length;
|
|
591
|
+
if (yt(e).length !== o)
|
|
653
592
|
return !1;
|
|
654
593
|
if (o)
|
|
655
594
|
for (var r = void 0; o-- > 0; ) {
|
|
656
|
-
if (r = a[o], r ===
|
|
657
|
-
var s =
|
|
595
|
+
if (r = a[o], r === Ya) {
|
|
596
|
+
var s = At(t), c = At(e);
|
|
658
597
|
if ((s || c) && s !== c)
|
|
659
598
|
return !1;
|
|
660
599
|
}
|
|
661
|
-
if (!
|
|
600
|
+
if (!Ha(e, r) || !n(t[r], e[r], r, r, t, e, i))
|
|
662
601
|
return !1;
|
|
663
602
|
}
|
|
664
603
|
return !0;
|
|
665
604
|
}
|
|
666
|
-
var
|
|
605
|
+
var Ja = function() {
|
|
667
606
|
return /foo/g.flags === "g" ? function(e, n) {
|
|
668
607
|
return e.source === n.source && e.flags === n.flags;
|
|
669
608
|
} : function(e, n) {
|
|
670
609
|
return e.source === n.source && e.global === n.global && e.ignoreCase === n.ignoreCase && e.multiline === n.multiline && e.unicode === n.unicode && e.sticky === n.sticky && e.lastIndex === n.lastIndex;
|
|
671
610
|
};
|
|
672
611
|
}();
|
|
673
|
-
function
|
|
612
|
+
function Qa(t, e, n, i) {
|
|
674
613
|
var a = t.size === e.size;
|
|
675
614
|
if (a && t.size) {
|
|
676
615
|
var o = {};
|
|
677
616
|
t.forEach(function(r, s) {
|
|
678
617
|
if (a) {
|
|
679
618
|
var c = !1, d = 0;
|
|
680
|
-
e.forEach(function(
|
|
681
|
-
!c && !o[d] && (c = n(r,
|
|
619
|
+
e.forEach(function(m, u) {
|
|
620
|
+
!c && !o[d] && (c = n(r, m, s, u, t, e, i), c && (o[d] = !0)), d++;
|
|
682
621
|
}), a = c;
|
|
683
622
|
}
|
|
684
623
|
});
|
|
685
624
|
}
|
|
686
625
|
return a;
|
|
687
626
|
}
|
|
688
|
-
var
|
|
627
|
+
var Fa = typeof Map == "function", Xa = typeof Set == "function", Nt = Object.prototype.valueOf;
|
|
689
628
|
function fe(t) {
|
|
690
629
|
var e = (
|
|
691
630
|
/* eslint-disable no-use-before-define */
|
|
@@ -697,10 +636,10 @@ function fe(t) {
|
|
|
697
636
|
if (i === a)
|
|
698
637
|
return !0;
|
|
699
638
|
if (i && a && typeof i == "object" && typeof a == "object") {
|
|
700
|
-
if (
|
|
701
|
-
return
|
|
639
|
+
if (jt(i) && jt(a))
|
|
640
|
+
return St(i, a, e, o);
|
|
702
641
|
var r = Array.isArray(i), s = Array.isArray(a);
|
|
703
|
-
return r || s ? r === s &&
|
|
642
|
+
return r || s ? r === s && Ba(i, a, e, o) : (r = i instanceof Date, s = a instanceof Date, r || s ? r === s && Le(i.getTime(), a.getTime()) : (r = i instanceof RegExp, s = a instanceof RegExp, r || s ? r === s && Ja(i, a) : Lt(i) || Lt(a) ? i === a : Fa && (r = i instanceof Map, s = a instanceof Map, r || s) ? r === s && Va(i, a, e, o) : Xa && (r = i instanceof Set, s = a instanceof Set, r || s) ? r === s && Qa(i, a, e, o) : i.valueOf !== Nt || a.valueOf !== Nt ? Le(i.valueOf(), a.valueOf()) : St(i, a, e, o)));
|
|
704
643
|
}
|
|
705
644
|
return i !== i && a !== a;
|
|
706
645
|
}
|
|
@@ -708,30 +647,44 @@ function fe(t) {
|
|
|
708
647
|
}
|
|
709
648
|
fe();
|
|
710
649
|
fe(function() {
|
|
711
|
-
return
|
|
650
|
+
return Le;
|
|
712
651
|
});
|
|
713
|
-
fe(
|
|
714
|
-
fe(
|
|
715
|
-
const
|
|
652
|
+
fe(cn());
|
|
653
|
+
fe(cn(Le));
|
|
654
|
+
const E = ([t, e]) => ({
|
|
716
655
|
lng: t,
|
|
717
656
|
lat: e
|
|
718
|
-
}),
|
|
657
|
+
}), xe = (t) => {
|
|
719
658
|
const e = [], n = t.split("*");
|
|
720
659
|
for (const [i, a] of n.entries())
|
|
721
660
|
a && e.push({ value: a, type: i % 2 === 0 ? "normal" : "emphasize" });
|
|
722
661
|
return e;
|
|
723
|
-
},
|
|
662
|
+
}, un = (t) => `${t.charAt(2).toLocaleLowerCase()}${t.slice(3)}`, ln = (t) => t.slice(2).toLowerCase(), $a = (t) => {
|
|
724
663
|
switch (t) {
|
|
725
664
|
case "en":
|
|
726
665
|
return "style_en";
|
|
727
666
|
case "zh":
|
|
728
667
|
return "style_zh_cn";
|
|
729
668
|
}
|
|
730
|
-
},
|
|
669
|
+
}, P = (t) => [t.lng, t.lat], Ae = (t) => (...e) => {
|
|
731
670
|
Promise.resolve().then(() => t == null ? void 0 : t(...e));
|
|
732
|
-
},
|
|
733
|
-
setTimeout(() =>
|
|
734
|
-
|
|
671
|
+
}, Oe = (t) => (...e) => new Promise((n) => {
|
|
672
|
+
setTimeout(() => {
|
|
673
|
+
const i = t == null ? void 0 : t(...e);
|
|
674
|
+
n(i);
|
|
675
|
+
}, 1e3);
|
|
676
|
+
}), _a = (t) => {
|
|
677
|
+
let e = 0;
|
|
678
|
+
return (...n) => {
|
|
679
|
+
e += 1;
|
|
680
|
+
const i = e;
|
|
681
|
+
return new Promise((a, o) => {
|
|
682
|
+
t(...n).then((r) => {
|
|
683
|
+
i === e && a(r);
|
|
684
|
+
}, o);
|
|
685
|
+
});
|
|
686
|
+
};
|
|
687
|
+
}, ht = (t) => {
|
|
735
688
|
const { address_components: e } = t, n = e.find(
|
|
736
689
|
(a) => a.types[0] === "administrative_area_level_1" || a.types[0] === "administrative_area_level_2"
|
|
737
690
|
);
|
|
@@ -740,15 +693,15 @@ const R = ([t, e]) => ({
|
|
|
740
693
|
const i = e.findIndex((a) => a.types[0] === "country");
|
|
741
694
|
if (i > 0)
|
|
742
695
|
return e[i - 1].long_name;
|
|
743
|
-
},
|
|
744
|
-
function
|
|
696
|
+
}, Ka = (t, e) => t.lng === (e == null ? void 0 : e.lng) && t.lat === (e == null ? void 0 : e.lat), dn = (t, e) => t[0] === (e == null ? void 0 : e[0]) && t[1] === (e == null ? void 0 : e[1]), gn = fe((t) => (e, n) => vt(e) || vt(n) ? new google.maps.LatLng(e).equals(new google.maps.LatLng(n)) : t(e, n));
|
|
697
|
+
function Xe() {
|
|
745
698
|
let t;
|
|
746
699
|
return function(n) {
|
|
747
|
-
return
|
|
700
|
+
return gn(n, t) || (t = n), t;
|
|
748
701
|
};
|
|
749
702
|
}
|
|
750
|
-
function
|
|
751
|
-
const i =
|
|
703
|
+
function pe(t, e, n) {
|
|
704
|
+
const i = Xe();
|
|
752
705
|
return T(() => i(t()), e, {
|
|
753
706
|
immediate: !1,
|
|
754
707
|
flush: "post",
|
|
@@ -756,24 +709,24 @@ function Me(t, e, n) {
|
|
|
756
709
|
});
|
|
757
710
|
}
|
|
758
711
|
function ie(t, e, n) {
|
|
759
|
-
const i =
|
|
712
|
+
const i = Xe();
|
|
760
713
|
return T(() => i(t()), e, {
|
|
761
714
|
immediate: !0,
|
|
762
715
|
flush: "post",
|
|
763
716
|
...n
|
|
764
717
|
});
|
|
765
718
|
}
|
|
766
|
-
function
|
|
767
|
-
const i =
|
|
719
|
+
function qa(t, e, n) {
|
|
720
|
+
const i = Xe();
|
|
768
721
|
return T(() => i(t()), e, {
|
|
769
722
|
immediate: !0,
|
|
770
723
|
...n
|
|
771
724
|
});
|
|
772
725
|
}
|
|
773
|
-
function
|
|
726
|
+
function eo(t) {
|
|
774
727
|
return `set${t.charAt(0).toUpperCase()}${t.slice(1)}`;
|
|
775
728
|
}
|
|
776
|
-
function
|
|
729
|
+
function to(t, e, n, i) {
|
|
777
730
|
const a = n.map(
|
|
778
731
|
({ name: o }) => () => e[o]
|
|
779
732
|
);
|
|
@@ -783,8 +736,8 @@ function Go(t, e, n, i) {
|
|
|
783
736
|
const s = t.value;
|
|
784
737
|
if (s)
|
|
785
738
|
for (const [c, d] of o.entries()) {
|
|
786
|
-
const { name:
|
|
787
|
-
|
|
739
|
+
const { name: m, defaultValue: u } = n[c], l = r[c];
|
|
740
|
+
gn(d, l) || s[eo(m)](d != null ? d : u);
|
|
788
741
|
}
|
|
789
742
|
},
|
|
790
743
|
{
|
|
@@ -794,21 +747,21 @@ function Go(t, e, n, i) {
|
|
|
794
747
|
}
|
|
795
748
|
);
|
|
796
749
|
}
|
|
797
|
-
function
|
|
798
|
-
return
|
|
750
|
+
function $e(t, e, n, i) {
|
|
751
|
+
return to(t, e, n, {
|
|
799
752
|
immediate: !1,
|
|
800
753
|
...i
|
|
801
754
|
});
|
|
802
755
|
}
|
|
803
756
|
function te(t, e, n, i) {
|
|
804
|
-
|
|
757
|
+
Y((a) => {
|
|
805
758
|
const o = t == null ? void 0 : t.value;
|
|
806
759
|
if (!o)
|
|
807
760
|
return;
|
|
808
761
|
const r = [];
|
|
809
762
|
for (const s of i) {
|
|
810
|
-
const c =
|
|
811
|
-
o.on(d,
|
|
763
|
+
const c = un(s), d = ln(s), m = (u) => n(c, u);
|
|
764
|
+
o.on(d, m), r.push(() => o == null ? void 0 : o.off(d, m));
|
|
812
765
|
}
|
|
813
766
|
a(() => {
|
|
814
767
|
for (const s of r)
|
|
@@ -816,14 +769,14 @@ function te(t, e, n, i) {
|
|
|
816
769
|
});
|
|
817
770
|
});
|
|
818
771
|
}
|
|
819
|
-
function
|
|
820
|
-
|
|
772
|
+
function Q(t, e, n, i) {
|
|
773
|
+
Y((a) => {
|
|
821
774
|
const o = t == null ? void 0 : t.value;
|
|
822
775
|
if (!o)
|
|
823
776
|
return;
|
|
824
777
|
const r = [];
|
|
825
778
|
for (const s of i) {
|
|
826
|
-
const c =
|
|
779
|
+
const c = un(s), d = ln(s), m = (l) => n(c, l), u = o.addListener(d, m);
|
|
827
780
|
r.push(() => google.maps.event.removeListener(u));
|
|
828
781
|
}
|
|
829
782
|
a(() => {
|
|
@@ -832,18 +785,18 @@ function F(t, e, n, i) {
|
|
|
832
785
|
});
|
|
833
786
|
});
|
|
834
787
|
}
|
|
835
|
-
const
|
|
836
|
-
const { registerOverlay: i } = e, a =
|
|
788
|
+
const B = j(function(e, { emit: n }) {
|
|
789
|
+
const { registerOverlay: i } = e, a = R(), o = Ie();
|
|
837
790
|
return ne(() => {
|
|
838
791
|
a.value = new AMap.Marker({ ...e });
|
|
839
|
-
}),
|
|
792
|
+
}), ge(() => {
|
|
840
793
|
var r;
|
|
841
794
|
(r = a.value) == null || r.setMap(null);
|
|
842
|
-
}),
|
|
795
|
+
}), sn({ registerOverlay: i, overlayRef: a }), Y(() => {
|
|
843
796
|
var s;
|
|
844
797
|
const r = o == null ? void 0 : o.value;
|
|
845
798
|
r && ((s = a.value) == null || s.setMap(r));
|
|
846
|
-
}),
|
|
799
|
+
}), $e(a, e, [
|
|
847
800
|
{ name: "anchor", defaultValue: "" },
|
|
848
801
|
{ name: "offset", defaultValue: [0, 0] },
|
|
849
802
|
{ name: "clickable", defaultValue: !1 },
|
|
@@ -858,17 +811,17 @@ const V = j(function(e, { emit: n }) {
|
|
|
858
811
|
{ name: "title", defaultValue: "" },
|
|
859
812
|
{ name: "extData", defaultValue: "" }
|
|
860
813
|
]), te(a, e, n, ["onClick"]), () => null;
|
|
861
|
-
}),
|
|
862
|
-
const { registerOverlay: i } = e, a =
|
|
863
|
-
return
|
|
814
|
+
}), V = j(function(e, { emit: n }) {
|
|
815
|
+
const { registerOverlay: i } = e, a = R(), o = Me(), r = (s) => n(s, { target: a.value });
|
|
816
|
+
return sn({ registerOverlay: i, overlayRef: a }), ne(() => {
|
|
864
817
|
const { registerOverlay: s, ...c } = e;
|
|
865
818
|
a.value = new google.maps.marker.AdvancedMarkerView({ ...c }), a.value.addListener;
|
|
866
|
-
}),
|
|
819
|
+
}), ge(() => {
|
|
867
820
|
a.value && (a.value.map = null);
|
|
868
|
-
}),
|
|
821
|
+
}), Y(() => {
|
|
869
822
|
const s = o == null ? void 0 : o.value;
|
|
870
823
|
!s || !a.value || (a.value.map = s);
|
|
871
|
-
}),
|
|
824
|
+
}), pe(
|
|
872
825
|
() => {
|
|
873
826
|
const { content: s, registerOverlay: c, ...d } = e;
|
|
874
827
|
return d;
|
|
@@ -884,104 +837,104 @@ const V = j(function(e, { emit: n }) {
|
|
|
884
837
|
{
|
|
885
838
|
flush: "post"
|
|
886
839
|
}
|
|
887
|
-
),
|
|
888
|
-
}),
|
|
840
|
+
), Q(a, e, r, ["onClick"]), () => null;
|
|
841
|
+
}), G = (t, e, n) => {
|
|
889
842
|
const { class: i, ...a } = e != null ? e : {}, o = document.createElement(t);
|
|
890
843
|
return i && (o.className = i), Object.assign(o, a), n && (o.innerHTML = n), o;
|
|
891
844
|
};
|
|
892
|
-
var
|
|
893
|
-
const
|
|
845
|
+
var mn = "rgf09w0";
|
|
846
|
+
const In = j(function(e) {
|
|
894
847
|
const n = w(() => `
|
|
895
|
-
<img src="${Qe}" class="${
|
|
848
|
+
<img src="${Qe}" class="${mn}">
|
|
896
849
|
`);
|
|
897
|
-
return () => g(
|
|
850
|
+
return () => g(B, {
|
|
898
851
|
attrs: {
|
|
899
852
|
position: e.position,
|
|
900
853
|
content: n.value,
|
|
901
854
|
anchor: "bottom-center"
|
|
902
855
|
}
|
|
903
856
|
});
|
|
904
|
-
}),
|
|
905
|
-
const n = w(() =>
|
|
906
|
-
class:
|
|
857
|
+
}), Mn = j(function(e) {
|
|
858
|
+
const n = w(() => G("img", {
|
|
859
|
+
class: mn,
|
|
907
860
|
src: Qe
|
|
908
861
|
}));
|
|
909
|
-
return () => g(
|
|
862
|
+
return () => g(V, {
|
|
910
863
|
attrs: {
|
|
911
|
-
position:
|
|
864
|
+
position: E(e.position),
|
|
912
865
|
content: n.value
|
|
913
866
|
}
|
|
914
867
|
});
|
|
915
868
|
});
|
|
916
869
|
j(function(e) {
|
|
917
|
-
const n =
|
|
918
|
-
return () => k(n.supplier === "gmap" ?
|
|
870
|
+
const n = N();
|
|
871
|
+
return () => k(n.supplier === "gmap" ? Mn : In, {
|
|
919
872
|
attrs: e
|
|
920
873
|
});
|
|
921
874
|
});
|
|
922
|
-
var
|
|
923
|
-
const
|
|
875
|
+
var fn = "_15rq2xn1", pn = "_15rq2xn0", vn = "_15rq2xn3", yn = "_15rq2xn2", jn = "_15rq2xn4", Ln = "_15rq2xn6", An = "_15rq2xn5";
|
|
876
|
+
const no = j(function(e) {
|
|
924
877
|
const n = w(() => {
|
|
925
878
|
var i;
|
|
926
879
|
return `
|
|
927
|
-
<div class="${
|
|
928
|
-
<div class="${
|
|
880
|
+
<div class="${pn}">
|
|
881
|
+
<div class="${fn}">
|
|
929
882
|
<div>
|
|
930
|
-
<div class="${
|
|
931
|
-
<div class="${
|
|
883
|
+
<div class="${yn}">${e.title}</div>
|
|
884
|
+
<div class="${vn}">${(i = e.description) != null ? i : ""}</div>
|
|
932
885
|
</div>
|
|
933
|
-
<img class="${
|
|
886
|
+
<img class="${jn}" src="${Fe}" >
|
|
934
887
|
</div>
|
|
935
|
-
<div class="${
|
|
936
|
-
<img src="${
|
|
888
|
+
<div class="${An}"></div>
|
|
889
|
+
<img src="${ee}" class="${Ln}">
|
|
937
890
|
</div>
|
|
938
891
|
`;
|
|
939
892
|
});
|
|
940
|
-
return () => e.type === "locator" ? g(
|
|
893
|
+
return () => e.type === "locator" ? g(In, {
|
|
941
894
|
attrs: {
|
|
942
895
|
position: e.position
|
|
943
896
|
}
|
|
944
|
-
}) : g(
|
|
897
|
+
}) : g(B, {
|
|
945
898
|
attrs: {
|
|
946
899
|
position: e.position,
|
|
947
900
|
content: n.value,
|
|
948
901
|
anchor: "bottom-center"
|
|
949
902
|
}
|
|
950
903
|
});
|
|
951
|
-
}),
|
|
904
|
+
}), io = j(function(e) {
|
|
952
905
|
const n = w(() => {
|
|
953
906
|
var i;
|
|
954
|
-
return
|
|
955
|
-
class:
|
|
907
|
+
return G("div", {
|
|
908
|
+
class: pn
|
|
956
909
|
}, `
|
|
957
|
-
<div class="${
|
|
910
|
+
<div class="${fn}">
|
|
958
911
|
<div>
|
|
959
|
-
<div class="${
|
|
960
|
-
<div class="${
|
|
912
|
+
<div class="${yn}">${e.title}</div>
|
|
913
|
+
<div class="${vn}">${(i = e.description) != null ? i : ""}</div>
|
|
961
914
|
</div>
|
|
962
|
-
<img class="${
|
|
915
|
+
<img class="${jn}" src="${Fe}" >
|
|
963
916
|
</div>
|
|
964
|
-
<div class="${
|
|
965
|
-
<img src="${
|
|
917
|
+
<div class="${An}"></div>
|
|
918
|
+
<img src="${ee}" class="${Ln}">
|
|
966
919
|
`);
|
|
967
920
|
});
|
|
968
|
-
return () => e.type === "locator" ? g(
|
|
921
|
+
return () => e.type === "locator" ? g(Mn, {
|
|
969
922
|
attrs: {
|
|
970
923
|
position: e.position
|
|
971
924
|
}
|
|
972
|
-
}) : g(
|
|
925
|
+
}) : g(V, {
|
|
973
926
|
attrs: {
|
|
974
|
-
position:
|
|
927
|
+
position: E(e.position),
|
|
975
928
|
content: n.value
|
|
976
929
|
}
|
|
977
930
|
});
|
|
978
|
-
}),
|
|
979
|
-
const n =
|
|
980
|
-
return () => k(n.supplier === "gmap" ?
|
|
931
|
+
}), kr = j(function(e) {
|
|
932
|
+
const n = N();
|
|
933
|
+
return () => k(n.supplier === "gmap" ? io : no, {
|
|
981
934
|
attrs: e
|
|
982
935
|
});
|
|
983
936
|
});
|
|
984
|
-
var Ue = {},
|
|
937
|
+
var Ue = {}, ao = {
|
|
985
938
|
get exports() {
|
|
986
939
|
return Ue;
|
|
987
940
|
},
|
|
@@ -992,30 +945,30 @@ var Ue = {}, Uo = {
|
|
|
992
945
|
(function(t, e) {
|
|
993
946
|
(function(n, i) {
|
|
994
947
|
t.exports = i();
|
|
995
|
-
})(
|
|
948
|
+
})(ti, function() {
|
|
996
949
|
function n(u) {
|
|
997
950
|
var l = [];
|
|
998
951
|
return u.AMapUI && l.push(i(u.AMapUI)), u.Loca && l.push(a(u.Loca)), Promise.all(l);
|
|
999
952
|
}
|
|
1000
953
|
function i(u) {
|
|
1001
|
-
return new Promise(function(l,
|
|
954
|
+
return new Promise(function(l, I) {
|
|
1002
955
|
var M = [];
|
|
1003
956
|
if (u.plugins)
|
|
1004
|
-
for (var
|
|
1005
|
-
r.AMapUI.plugins.indexOf(u.plugins[
|
|
957
|
+
for (var f = 0; f < u.plugins.length; f += 1)
|
|
958
|
+
r.AMapUI.plugins.indexOf(u.plugins[f]) == -1 && M.push(u.plugins[f]);
|
|
1006
959
|
if (s.AMapUI === o.failed)
|
|
1007
|
-
|
|
960
|
+
I("前次请求 AMapUI 失败");
|
|
1008
961
|
else if (s.AMapUI === o.notload) {
|
|
1009
|
-
s.AMapUI = o.loading, r.AMapUI.version = u.version || r.AMapUI.version,
|
|
1010
|
-
var
|
|
1011
|
-
|
|
1012
|
-
s.AMapUI = o.failed,
|
|
1013
|
-
},
|
|
962
|
+
s.AMapUI = o.loading, r.AMapUI.version = u.version || r.AMapUI.version, f = r.AMapUI.version;
|
|
963
|
+
var y = document.body || document.head, p = document.createElement("script");
|
|
964
|
+
p.type = "text/javascript", p.src = "https://webapi.amap.com/ui/" + f + "/main.js", p.onerror = function(v) {
|
|
965
|
+
s.AMapUI = o.failed, I("请求 AMapUI 失败");
|
|
966
|
+
}, p.onload = function() {
|
|
1014
967
|
if (s.AMapUI = o.loaded, M.length)
|
|
1015
968
|
window.AMapUI.loadUI(M, function() {
|
|
1016
969
|
for (var v = 0, L = M.length; v < L; v++) {
|
|
1017
|
-
var
|
|
1018
|
-
window.AMapUI[
|
|
970
|
+
var S = M[v].split("/").slice(-1)[0];
|
|
971
|
+
window.AMapUI[S] = arguments[v];
|
|
1019
972
|
}
|
|
1020
973
|
for (l(); c.AMapUI.length; )
|
|
1021
974
|
c.AMapUI.splice(0, 1)[0]();
|
|
@@ -1023,17 +976,17 @@ var Ue = {}, Uo = {
|
|
|
1023
976
|
else
|
|
1024
977
|
for (l(); c.AMapUI.length; )
|
|
1025
978
|
c.AMapUI.splice(0, 1)[0]();
|
|
1026
|
-
},
|
|
979
|
+
}, y.appendChild(p);
|
|
1027
980
|
} else
|
|
1028
|
-
s.AMapUI === o.loaded ? u.version && u.version !== r.AMapUI.version ?
|
|
981
|
+
s.AMapUI === o.loaded ? u.version && u.version !== r.AMapUI.version ? I("不允许多个版本 AMapUI 混用") : M.length ? window.AMapUI.loadUI(M, function() {
|
|
1029
982
|
for (var v = 0, L = M.length; v < L; v++) {
|
|
1030
|
-
var
|
|
1031
|
-
window.AMapUI[
|
|
983
|
+
var S = M[v].split("/").slice(-1)[0];
|
|
984
|
+
window.AMapUI[S] = arguments[v];
|
|
1032
985
|
}
|
|
1033
986
|
l();
|
|
1034
|
-
}) : l() : u.version && u.version !== r.AMapUI.version ?
|
|
1035
|
-
v ?
|
|
1036
|
-
for (var L = 0,
|
|
987
|
+
}) : l() : u.version && u.version !== r.AMapUI.version ? I("不允许多个版本 AMapUI 混用") : c.AMapUI.push(function(v) {
|
|
988
|
+
v ? I(v) : M.length ? window.AMapUI.loadUI(M, function() {
|
|
989
|
+
for (var L = 0, S = M.length; L < S; L++) {
|
|
1037
990
|
var D = M[L].split("/").slice(-1)[0];
|
|
1038
991
|
window.AMapUI[D] = arguments[L];
|
|
1039
992
|
}
|
|
@@ -1043,27 +996,27 @@ var Ue = {}, Uo = {
|
|
|
1043
996
|
});
|
|
1044
997
|
}
|
|
1045
998
|
function a(u) {
|
|
1046
|
-
return new Promise(function(l,
|
|
999
|
+
return new Promise(function(l, I) {
|
|
1047
1000
|
if (s.Loca === o.failed)
|
|
1048
|
-
|
|
1001
|
+
I("前次请求 Loca 失败");
|
|
1049
1002
|
else if (s.Loca === o.notload) {
|
|
1050
1003
|
s.Loca = o.loading, r.Loca.version = u.version || r.Loca.version;
|
|
1051
|
-
var M = r.Loca.version,
|
|
1052
|
-
if (
|
|
1053
|
-
|
|
1004
|
+
var M = r.Loca.version, f = r.AMap.version.startsWith("2"), y = M.startsWith("2");
|
|
1005
|
+
if (f && !y || !f && y)
|
|
1006
|
+
I("JSAPI 与 Loca 版本不对应!!");
|
|
1054
1007
|
else {
|
|
1055
|
-
|
|
1056
|
-
var
|
|
1057
|
-
|
|
1058
|
-
s.Loca = o.failed,
|
|
1059
|
-
},
|
|
1008
|
+
f = r.key, y = document.body || document.head;
|
|
1009
|
+
var p = document.createElement("script");
|
|
1010
|
+
p.type = "text/javascript", p.src = "https://webapi.amap.com/loca?v=" + M + "&key=" + f, p.onerror = function(v) {
|
|
1011
|
+
s.Loca = o.failed, I("请求 AMapUI 失败");
|
|
1012
|
+
}, p.onload = function() {
|
|
1060
1013
|
for (s.Loca = o.loaded, l(); c.Loca.length; )
|
|
1061
1014
|
c.Loca.splice(0, 1)[0]();
|
|
1062
|
-
},
|
|
1015
|
+
}, y.appendChild(p);
|
|
1063
1016
|
}
|
|
1064
1017
|
} else
|
|
1065
|
-
s.Loca === o.loaded ? u.version && u.version !== r.Loca.version ?
|
|
1066
|
-
v ?
|
|
1018
|
+
s.Loca === o.loaded ? u.version && u.version !== r.Loca.version ? I("不允许多个版本 Loca 混用") : l() : u.version && u.version !== r.Loca.version ? I("不允许多个版本 Loca 混用") : c.Loca.push(function(v) {
|
|
1019
|
+
v ? I(v) : I();
|
|
1067
1020
|
});
|
|
1068
1021
|
});
|
|
1069
1022
|
}
|
|
@@ -1073,60 +1026,60 @@ var Ue = {}, Uo = {
|
|
|
1073
1026
|
(function(u) {
|
|
1074
1027
|
u.notload = "notload", u.loading = "loading", u.loaded = "loaded", u.failed = "failed";
|
|
1075
1028
|
})(o || (o = {}));
|
|
1076
|
-
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 }, c = { AMap: [], AMapUI: [], Loca: [] }, d = [],
|
|
1029
|
+
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 }, c = { AMap: [], AMapUI: [], Loca: [] }, d = [], m = function(u) {
|
|
1077
1030
|
typeof u == "function" && (s.AMap === o.loaded ? u(window.AMap) : d.push(u));
|
|
1078
1031
|
};
|
|
1079
1032
|
return { load: function(u) {
|
|
1080
|
-
return new Promise(function(l,
|
|
1033
|
+
return new Promise(function(l, I) {
|
|
1081
1034
|
if (s.AMap == o.failed)
|
|
1082
|
-
|
|
1035
|
+
I("");
|
|
1083
1036
|
else if (s.AMap == o.notload) {
|
|
1084
|
-
var M = u.key,
|
|
1085
|
-
M ? (window.AMap && location.host !== "lbs.amap.com" &&
|
|
1037
|
+
var M = u.key, f = u.version, y = u.plugins;
|
|
1038
|
+
M ? (window.AMap && location.host !== "lbs.amap.com" && I("禁止多种API加载方式混用"), r.key = M, r.AMap.version = f || r.AMap.version, r.AMap.plugins = y || r.AMap.plugins, s.AMap = o.loading, f = document.body || document.head, window.___onAPILoaded = function(v) {
|
|
1086
1039
|
if (delete window.___onAPILoaded, v)
|
|
1087
|
-
s.AMap = o.failed,
|
|
1040
|
+
s.AMap = o.failed, I(v);
|
|
1088
1041
|
else
|
|
1089
1042
|
for (s.AMap = o.loaded, n(u).then(function() {
|
|
1090
1043
|
l(window.AMap);
|
|
1091
|
-
}).catch(
|
|
1044
|
+
}).catch(I); d.length; )
|
|
1092
1045
|
d.splice(0, 1)[0]();
|
|
1093
|
-
},
|
|
1094
|
-
s.AMap = o.failed,
|
|
1095
|
-
},
|
|
1046
|
+
}, y = document.createElement("script"), y.type = "text/javascript", y.src = "https://webapi.amap.com/maps?callback=___onAPILoaded&v=" + r.AMap.version + "&key=" + M + "&plugin=" + r.AMap.plugins.join(","), y.onerror = function(v) {
|
|
1047
|
+
s.AMap = o.failed, I(v);
|
|
1048
|
+
}, f.appendChild(y)) : I("请填写key");
|
|
1096
1049
|
} else if (s.AMap == o.loaded)
|
|
1097
1050
|
if (u.key && u.key !== r.key)
|
|
1098
|
-
|
|
1051
|
+
I("多个不一致的 key");
|
|
1099
1052
|
else if (u.version && u.version !== r.AMap.version)
|
|
1100
|
-
|
|
1053
|
+
I("不允许多个版本 JSAPI 混用");
|
|
1101
1054
|
else {
|
|
1102
1055
|
if (M = [], u.plugins)
|
|
1103
|
-
for (
|
|
1104
|
-
r.AMap.plugins.indexOf(u.plugins[
|
|
1056
|
+
for (f = 0; f < u.plugins.length; f += 1)
|
|
1057
|
+
r.AMap.plugins.indexOf(u.plugins[f]) == -1 && M.push(u.plugins[f]);
|
|
1105
1058
|
M.length ? window.AMap.plugin(M, function() {
|
|
1106
1059
|
n(u).then(function() {
|
|
1107
1060
|
l(window.AMap);
|
|
1108
|
-
}).catch(
|
|
1061
|
+
}).catch(I);
|
|
1109
1062
|
}) : n(u).then(function() {
|
|
1110
1063
|
l(window.AMap);
|
|
1111
|
-
}).catch(
|
|
1064
|
+
}).catch(I);
|
|
1112
1065
|
}
|
|
1113
1066
|
else if (u.key && u.key !== r.key)
|
|
1114
|
-
|
|
1067
|
+
I("多个不一致的 key");
|
|
1115
1068
|
else if (u.version && u.version !== r.AMap.version)
|
|
1116
|
-
|
|
1069
|
+
I("不允许多个版本 JSAPI 混用");
|
|
1117
1070
|
else {
|
|
1118
|
-
var
|
|
1071
|
+
var p = [];
|
|
1119
1072
|
if (u.plugins)
|
|
1120
|
-
for (
|
|
1121
|
-
r.AMap.plugins.indexOf(u.plugins[
|
|
1122
|
-
|
|
1123
|
-
|
|
1073
|
+
for (f = 0; f < u.plugins.length; f += 1)
|
|
1074
|
+
r.AMap.plugins.indexOf(u.plugins[f]) == -1 && p.push(u.plugins[f]);
|
|
1075
|
+
m(function() {
|
|
1076
|
+
p.length ? window.AMap.plugin(p, function() {
|
|
1124
1077
|
n(u).then(function() {
|
|
1125
1078
|
l(window.AMap);
|
|
1126
|
-
}).catch(
|
|
1079
|
+
}).catch(I);
|
|
1127
1080
|
}) : n(u).then(function() {
|
|
1128
1081
|
l(window.AMap);
|
|
1129
|
-
}).catch(
|
|
1082
|
+
}).catch(I);
|
|
1130
1083
|
});
|
|
1131
1084
|
}
|
|
1132
1085
|
});
|
|
@@ -1138,8 +1091,8 @@ var Ue = {}, Uo = {
|
|
|
1138
1091
|
}, c = { AMap: [], AMapUI: [], Loca: [] };
|
|
1139
1092
|
} };
|
|
1140
1093
|
});
|
|
1141
|
-
})(
|
|
1142
|
-
var
|
|
1094
|
+
})(ao);
|
|
1095
|
+
var oo = function t(e, n) {
|
|
1143
1096
|
if (e === n)
|
|
1144
1097
|
return !0;
|
|
1145
1098
|
if (e && n && typeof e == "object" && typeof n == "object") {
|
|
@@ -1174,12 +1127,12 @@ var Bo = function t(e, n) {
|
|
|
1174
1127
|
}
|
|
1175
1128
|
return e !== e && n !== n;
|
|
1176
1129
|
};
|
|
1177
|
-
const
|
|
1178
|
-
var
|
|
1130
|
+
const Dt = "__googleMapsScriptId";
|
|
1131
|
+
var _;
|
|
1179
1132
|
(function(t) {
|
|
1180
1133
|
t[t.INITIALIZED = 0] = "INITIALIZED", t[t.LOADING = 1] = "LOADING", t[t.SUCCESS = 2] = "SUCCESS", t[t.FAILURE = 3] = "FAILURE";
|
|
1181
|
-
})(
|
|
1182
|
-
class
|
|
1134
|
+
})(_ || (_ = {}));
|
|
1135
|
+
class J {
|
|
1183
1136
|
/**
|
|
1184
1137
|
* Creates an instance of Loader using [[LoaderOptions]]. No defaults are set
|
|
1185
1138
|
* using this library, instead the defaults are set by the Google Maps
|
|
@@ -1189,13 +1142,13 @@ class Q {
|
|
|
1189
1142
|
* const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
|
|
1190
1143
|
* ```
|
|
1191
1144
|
*/
|
|
1192
|
-
constructor({ apiKey: e, authReferrerPolicy: n, channel: i, client: a, id: o =
|
|
1193
|
-
if (this.CALLBACK = "__googleMapsCallback", this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = e, this.authReferrerPolicy = n, this.channel = i, this.client = a, this.id = o ||
|
|
1194
|
-
if (!
|
|
1195
|
-
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(
|
|
1196
|
-
return
|
|
1145
|
+
constructor({ apiKey: e, authReferrerPolicy: n, channel: i, client: a, id: o = Dt, language: r, libraries: s = [], mapIds: c, nonce: d, region: m, retries: u = 3, url: l = "https://maps.googleapis.com/maps/api/js", version: I }) {
|
|
1146
|
+
if (this.CALLBACK = "__googleMapsCallback", this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = e, this.authReferrerPolicy = n, this.channel = i, this.client = a, this.id = o || Dt, this.language = r, this.libraries = s, this.mapIds = c, this.nonce = d, this.region = m, this.retries = u, this.url = l, this.version = I, J.instance) {
|
|
1147
|
+
if (!oo(this.options, J.instance.options))
|
|
1148
|
+
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(J.instance.options)}`);
|
|
1149
|
+
return J.instance;
|
|
1197
1150
|
}
|
|
1198
|
-
|
|
1151
|
+
J.instance = this;
|
|
1199
1152
|
}
|
|
1200
1153
|
get options() {
|
|
1201
1154
|
return {
|
|
@@ -1214,7 +1167,7 @@ class Q {
|
|
|
1214
1167
|
};
|
|
1215
1168
|
}
|
|
1216
1169
|
get status() {
|
|
1217
|
-
return this.errors.length ?
|
|
1170
|
+
return this.errors.length ? _.FAILURE : this.done ? _.SUCCESS : this.loading ? _.LOADING : _.INITIALIZED;
|
|
1218
1171
|
}
|
|
1219
1172
|
get failed() {
|
|
1220
1173
|
return this.done && !this.loading && this.errors.length >= this.retries + 1;
|
|
@@ -1305,25 +1258,25 @@ class Q {
|
|
|
1305
1258
|
}
|
|
1306
1259
|
}
|
|
1307
1260
|
}
|
|
1308
|
-
const
|
|
1261
|
+
const ro = [
|
|
1309
1262
|
"AMap.Geolocation",
|
|
1310
1263
|
"AMap.Geocoder",
|
|
1311
1264
|
"AMap.PlaceSearch",
|
|
1312
1265
|
"AMap.Driving",
|
|
1313
1266
|
"AMap.Walking"
|
|
1314
|
-
],
|
|
1315
|
-
var
|
|
1316
|
-
const
|
|
1267
|
+
], so = ["marker", "places", "geometry"];
|
|
1268
|
+
var de = /* @__PURE__ */ ((t) => (t.LOADING = "LOADING", t.FAILURE = "FAILURE", t.SUCCESS = "SUCCESS", t))(de || {});
|
|
1269
|
+
const co = (t) => {
|
|
1317
1270
|
const { onChange: e } = t;
|
|
1318
1271
|
let n, i;
|
|
1319
1272
|
const a = new Promise((s, c) => {
|
|
1320
1273
|
n = s, i = c;
|
|
1321
|
-
}), o =
|
|
1274
|
+
}), o = R(
|
|
1322
1275
|
"LOADING"
|
|
1323
1276
|
/* LOADING */
|
|
1324
1277
|
), r = w(() => {
|
|
1325
|
-
const { onChange: s, loading: c, fallback: d, apiKey:
|
|
1326
|
-
return { ...M, key:
|
|
1278
|
+
const { onChange: s, loading: c, fallback: d, apiKey: m, apiSecret: u, apiServiceHost: l, version: I, ...M } = t;
|
|
1279
|
+
return { ...M, key: m, version: I != null ? I : "2.0.5.16" };
|
|
1327
1280
|
});
|
|
1328
1281
|
return ie(
|
|
1329
1282
|
() => r.value,
|
|
@@ -1348,23 +1301,23 @@ const Ho = (t) => {
|
|
|
1348
1301
|
);
|
|
1349
1302
|
}
|
|
1350
1303
|
), { statusRef: o, readyPromise: a };
|
|
1351
|
-
},
|
|
1304
|
+
}, uo = (t) => {
|
|
1352
1305
|
const { onChange: e } = t;
|
|
1353
1306
|
let n, i;
|
|
1354
1307
|
const a = new Promise((s, c) => {
|
|
1355
1308
|
n = s, i = c;
|
|
1356
|
-
}), o =
|
|
1309
|
+
}), o = R(
|
|
1357
1310
|
"LOADING"
|
|
1358
1311
|
/* LOADING */
|
|
1359
1312
|
), r = w(() => {
|
|
1360
|
-
const { onChange: s, fallback: c, loading: d, ...
|
|
1361
|
-
return
|
|
1313
|
+
const { onChange: s, fallback: c, loading: d, ...m } = t;
|
|
1314
|
+
return m;
|
|
1362
1315
|
});
|
|
1363
1316
|
return ie(
|
|
1364
1317
|
() => r.value,
|
|
1365
1318
|
(s) => {
|
|
1366
|
-
const c = new
|
|
1367
|
-
o.value =
|
|
1319
|
+
const c = new J(s), d = (m) => {
|
|
1320
|
+
o.value = m, m === "SUCCESS" && n(), m === "FAILURE" && i(), e == null || e(o.value);
|
|
1368
1321
|
};
|
|
1369
1322
|
d(
|
|
1370
1323
|
"LOADING"
|
|
@@ -1381,24 +1334,24 @@ const Ho = (t) => {
|
|
|
1381
1334
|
);
|
|
1382
1335
|
}
|
|
1383
1336
|
), { statusRef: o, readyPromise: a };
|
|
1384
|
-
},
|
|
1337
|
+
}, lo = (t) => {
|
|
1385
1338
|
const { gmapKey: e, amapKey: n, amapSecret: i, amapServiceHost: a, supplier: o, language: r, onChange: s } = t;
|
|
1386
|
-
return o === "gmap" ?
|
|
1339
|
+
return o === "gmap" ? uo({
|
|
1387
1340
|
apiKey: e,
|
|
1388
1341
|
language: r,
|
|
1389
1342
|
version: "beta",
|
|
1390
|
-
libraries:
|
|
1343
|
+
libraries: so,
|
|
1391
1344
|
onChange: s
|
|
1392
|
-
}) :
|
|
1345
|
+
}) : co({
|
|
1393
1346
|
apiKey: n,
|
|
1394
1347
|
apiSecret: i,
|
|
1395
1348
|
apiServiceHost: a,
|
|
1396
|
-
plugins:
|
|
1349
|
+
plugins: ro,
|
|
1397
1350
|
onChange: s
|
|
1398
1351
|
});
|
|
1399
1352
|
};
|
|
1400
|
-
var
|
|
1401
|
-
const
|
|
1353
|
+
var go = "_1d8ur7t0";
|
|
1354
|
+
const mo = j(function(e, { slots: n, emit: i }) {
|
|
1402
1355
|
const {
|
|
1403
1356
|
onDragStart: a,
|
|
1404
1357
|
onDragEnd: o,
|
|
@@ -1406,7 +1359,7 @@ const $o = j(function(e, { slots: n, emit: i }) {
|
|
|
1406
1359
|
mapRef: s,
|
|
1407
1360
|
vectorMapForeign: c = "style_zh_cn",
|
|
1408
1361
|
...d
|
|
1409
|
-
} = e,
|
|
1362
|
+
} = e, m = w(() => ({
|
|
1410
1363
|
dragEnable: !!e.dragEnable,
|
|
1411
1364
|
zoomEnable: !!e.zoomEnable,
|
|
1412
1365
|
jogEnable: !!e.jogEnable,
|
|
@@ -1414,23 +1367,23 @@ const $o = j(function(e, { slots: n, emit: i }) {
|
|
|
1414
1367
|
rotateEnable: !!e.rotateEnable,
|
|
1415
1368
|
animateEnable: !!e.animateEnable,
|
|
1416
1369
|
keyboardEnable: !!e.keyboardEnable
|
|
1417
|
-
})), u =
|
|
1418
|
-
return
|
|
1370
|
+
})), u = R(), l = R();
|
|
1371
|
+
return za(l), Y(() => {
|
|
1419
1372
|
if (l.value || !u.value)
|
|
1420
1373
|
return;
|
|
1421
|
-
const
|
|
1374
|
+
const I = new AMap.Map(u.value, {
|
|
1422
1375
|
...d,
|
|
1423
1376
|
vectorMapForeign: c,
|
|
1424
1377
|
mapStyle: "amap://styles/95498a904992a4c0b866a3e4d7729682"
|
|
1425
1378
|
});
|
|
1426
|
-
l.value =
|
|
1427
|
-
}),
|
|
1428
|
-
() =>
|
|
1429
|
-
(
|
|
1379
|
+
window.GlobalAmap = I, l.value = I, s == null || s(I);
|
|
1380
|
+
}), pe(
|
|
1381
|
+
() => m.value,
|
|
1382
|
+
(I) => {
|
|
1430
1383
|
var M;
|
|
1431
|
-
(M = l.value) == null || M.setStatus(
|
|
1384
|
+
(M = l.value) == null || M.setStatus(I);
|
|
1432
1385
|
}
|
|
1433
|
-
),
|
|
1386
|
+
), $e(l, e, [
|
|
1434
1387
|
{ name: "center", defaultValue: [0, 0] },
|
|
1435
1388
|
{ name: "zooms", defaultValue: [0, 0] },
|
|
1436
1389
|
{ name: "zoom", defaultValue: 0 },
|
|
@@ -1444,35 +1397,35 @@ const $o = j(function(e, { slots: n, emit: i }) {
|
|
|
1444
1397
|
{ name: "mask", defaultValue: [] },
|
|
1445
1398
|
{ name: "labelRejectMask", defaultValue: !1 }
|
|
1446
1399
|
]), te(l, e, i, ["onDragStart", "onDragEnd", "onZoomEnd"]), () => {
|
|
1447
|
-
var
|
|
1448
|
-
return g("div", { ref: u, class:
|
|
1400
|
+
var I;
|
|
1401
|
+
return g("div", { ref: u, class: go }, (I = n.default) == null ? void 0 : I.call(n));
|
|
1449
1402
|
};
|
|
1450
1403
|
});
|
|
1451
|
-
let
|
|
1452
|
-
const
|
|
1453
|
-
|
|
1404
|
+
let ye = "user";
|
|
1405
|
+
const Io = () => ye, Sn = () => ({ executeMapApi: (e) => {
|
|
1406
|
+
ye = "api";
|
|
1454
1407
|
try {
|
|
1455
1408
|
e(), setTimeout(() => {
|
|
1456
|
-
|
|
1409
|
+
ye = "user";
|
|
1457
1410
|
}, 100);
|
|
1458
1411
|
} catch (n) {
|
|
1459
|
-
throw
|
|
1412
|
+
throw ye = "user", n;
|
|
1460
1413
|
}
|
|
1461
1414
|
} });
|
|
1462
|
-
var
|
|
1463
|
-
const
|
|
1415
|
+
var Mo = "_7anfuo0";
|
|
1416
|
+
const fo = j(function(e, { slots: n, emit: i }) {
|
|
1464
1417
|
const a = e.mapRef, o = w(() => {
|
|
1465
|
-
const { mapRef: u, onDragStart: l, onDragEnd:
|
|
1466
|
-
return
|
|
1467
|
-
}), r = o.value, s =
|
|
1468
|
-
return
|
|
1418
|
+
const { mapRef: u, onDragStart: l, onDragEnd: I, onZoom_change: M, ...f } = e;
|
|
1419
|
+
return f;
|
|
1420
|
+
}), r = o.value, s = R(), c = R(), { executeMapApi: d } = Sn(), m = (u) => i(u, { target: c.value });
|
|
1421
|
+
return Oa(c), Y(() => {
|
|
1469
1422
|
if (c.value || !s.value)
|
|
1470
1423
|
return;
|
|
1471
1424
|
let u;
|
|
1472
1425
|
d(() => {
|
|
1473
|
-
u = new google.maps.Map(s.value, { ...r });
|
|
1426
|
+
u = new google.maps.Map(s.value, { ...r }), window.GlobalGmap = u;
|
|
1474
1427
|
}), c.value = u, a == null || a(u);
|
|
1475
|
-
}),
|
|
1428
|
+
}), pe(
|
|
1476
1429
|
() => o.value,
|
|
1477
1430
|
(u) => {
|
|
1478
1431
|
d(() => {
|
|
@@ -1480,34 +1433,34 @@ const Ko = j(function(e, { slots: n, emit: i }) {
|
|
|
1480
1433
|
return (l = c.value) == null ? void 0 : l.setOptions({ ...u });
|
|
1481
1434
|
});
|
|
1482
1435
|
}
|
|
1483
|
-
),
|
|
1436
|
+
), Q(c, e, m, [
|
|
1484
1437
|
"onDragStart",
|
|
1485
1438
|
"onDragEnd",
|
|
1486
1439
|
"onZoom_change"
|
|
1487
1440
|
]), () => {
|
|
1488
1441
|
var u;
|
|
1489
|
-
return g("div", { ref: s, class:
|
|
1442
|
+
return g("div", { ref: s, class: Mo }, (u = n.default) == null ? void 0 : u.call(n));
|
|
1490
1443
|
};
|
|
1491
|
-
}),
|
|
1444
|
+
}), Wr = me(function(e, {
|
|
1492
1445
|
slots: n
|
|
1493
1446
|
}) {
|
|
1494
1447
|
const {
|
|
1495
1448
|
statusRef: i,
|
|
1496
1449
|
readyPromise: a
|
|
1497
|
-
} =
|
|
1450
|
+
} = lo(e), o = new Proxy(e, {
|
|
1498
1451
|
get(r, s, c) {
|
|
1499
1452
|
return s === "status" ? i.value : s === "readyPromise" ? a : Reflect.get(r, s, c);
|
|
1500
1453
|
}
|
|
1501
1454
|
});
|
|
1502
|
-
return
|
|
1455
|
+
return Ra(o), () => {
|
|
1503
1456
|
var r;
|
|
1504
1457
|
return g("div", [(r = n.default) == null ? void 0 : r.call(n)]);
|
|
1505
1458
|
};
|
|
1506
|
-
}).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier", "language"]),
|
|
1459
|
+
}).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier", "language"]), be = me(function(e, {
|
|
1507
1460
|
slots: n,
|
|
1508
1461
|
emit: i
|
|
1509
1462
|
}) {
|
|
1510
|
-
const a =
|
|
1463
|
+
const a = N(), o = ({
|
|
1511
1464
|
target: s
|
|
1512
1465
|
}) => {
|
|
1513
1466
|
const {
|
|
@@ -1525,31 +1478,31 @@ const Ko = j(function(e, { slots: n, emit: i }) {
|
|
|
1525
1478
|
i("dragEnd", [c, d]);
|
|
1526
1479
|
};
|
|
1527
1480
|
return () => {
|
|
1528
|
-
var
|
|
1481
|
+
var y, p, v;
|
|
1529
1482
|
const {
|
|
1530
1483
|
supplier: s,
|
|
1531
1484
|
gmapId: c,
|
|
1532
1485
|
language: d = "zh",
|
|
1533
|
-
status:
|
|
1486
|
+
status: m
|
|
1534
1487
|
} = a, {
|
|
1535
1488
|
mapRef: u,
|
|
1536
1489
|
center: l,
|
|
1537
|
-
zoom:
|
|
1490
|
+
zoom: I,
|
|
1538
1491
|
touchEnable: M = !0
|
|
1539
1492
|
} = e;
|
|
1540
|
-
if (
|
|
1541
|
-
return (
|
|
1542
|
-
if (
|
|
1543
|
-
return (
|
|
1544
|
-
const
|
|
1493
|
+
if (m === de.LOADING)
|
|
1494
|
+
return (y = n.loading) == null ? void 0 : y.call(n);
|
|
1495
|
+
if (m === de.FAILURE)
|
|
1496
|
+
return (p = n.fallback) == null ? void 0 : p.call(n);
|
|
1497
|
+
const f = (v = n.default) == null ? void 0 : v.call(n);
|
|
1545
1498
|
switch (s) {
|
|
1546
1499
|
case "gmap":
|
|
1547
|
-
return g(
|
|
1500
|
+
return g(fo, {
|
|
1548
1501
|
attrs: {
|
|
1549
1502
|
mapRef: u,
|
|
1550
1503
|
mapId: c,
|
|
1551
|
-
center: l ?
|
|
1552
|
-
zoom:
|
|
1504
|
+
center: l ? E(l) : void 0,
|
|
1505
|
+
zoom: I,
|
|
1553
1506
|
disableDefaultUI: M,
|
|
1554
1507
|
disableDoubleClickZoom: M,
|
|
1555
1508
|
gestureHandling: M ? "auto" : "none",
|
|
@@ -1562,14 +1515,14 @@ const Ko = j(function(e, { slots: n, emit: i }) {
|
|
|
1562
1515
|
on: {
|
|
1563
1516
|
dragEnd: o
|
|
1564
1517
|
}
|
|
1565
|
-
}, [
|
|
1518
|
+
}, [f]);
|
|
1566
1519
|
default:
|
|
1567
|
-
return g(
|
|
1520
|
+
return g(mo, {
|
|
1568
1521
|
attrs: {
|
|
1569
1522
|
mapRef: u,
|
|
1570
|
-
vectorMapForeign:
|
|
1523
|
+
vectorMapForeign: $a(d),
|
|
1571
1524
|
center: l,
|
|
1572
|
-
zoom:
|
|
1525
|
+
zoom: I,
|
|
1573
1526
|
dragEnable: M,
|
|
1574
1527
|
zoomEnable: M,
|
|
1575
1528
|
rotateEnable: M,
|
|
@@ -1582,25 +1535,25 @@ const Ko = j(function(e, { slots: n, emit: i }) {
|
|
|
1582
1535
|
on: {
|
|
1583
1536
|
dragEnd: r
|
|
1584
1537
|
}
|
|
1585
|
-
}, [
|
|
1538
|
+
}, [f]);
|
|
1586
1539
|
}
|
|
1587
1540
|
};
|
|
1588
|
-
}).props(["center", "fallback", "loading", "mapRef", "zoom", "touchEnable"]),
|
|
1589
|
-
const n =
|
|
1541
|
+
}).props(["center", "fallback", "loading", "mapRef", "zoom", "touchEnable"]), ue = j(function(e) {
|
|
1542
|
+
const n = R(), i = Ie();
|
|
1590
1543
|
return ne(() => {
|
|
1591
1544
|
n.value = new AMap.Polyline({ ...e });
|
|
1592
|
-
}),
|
|
1545
|
+
}), ge(() => {
|
|
1593
1546
|
var a;
|
|
1594
1547
|
(a = n.value) == null || a.setMap(null);
|
|
1595
|
-
}),
|
|
1548
|
+
}), Y(() => {
|
|
1596
1549
|
var o;
|
|
1597
1550
|
const a = i == null ? void 0 : i.value;
|
|
1598
1551
|
a && ((o = n.value) == null || o.setMap(a));
|
|
1599
|
-
}),
|
|
1552
|
+
}), $e(n, e, [
|
|
1600
1553
|
{ name: "path", defaultValue: [[0, 0]] },
|
|
1601
1554
|
{ name: "extData", defaultValue: void 0 },
|
|
1602
1555
|
{ name: "draggable", defaultValue: !1 }
|
|
1603
|
-
]),
|
|
1556
|
+
]), pe(
|
|
1604
1557
|
() => {
|
|
1605
1558
|
const { path: a, extData: o, draggable: r, ...s } = e;
|
|
1606
1559
|
return s;
|
|
@@ -1610,28 +1563,28 @@ const Ko = j(function(e, { slots: n, emit: i }) {
|
|
|
1610
1563
|
(o = n.value) == null || o.setOptions({ ...a });
|
|
1611
1564
|
}
|
|
1612
1565
|
), () => null;
|
|
1613
|
-
}),
|
|
1614
|
-
const n =
|
|
1566
|
+
}), je = j(function(e) {
|
|
1567
|
+
const n = R(), i = Me();
|
|
1615
1568
|
return ne(() => {
|
|
1616
1569
|
n.value = new google.maps.Polyline({ ...e });
|
|
1617
|
-
}),
|
|
1570
|
+
}), ge(() => {
|
|
1618
1571
|
var a;
|
|
1619
1572
|
(a = n.value) == null || a.setMap(null);
|
|
1620
|
-
}),
|
|
1573
|
+
}), Y(() => {
|
|
1621
1574
|
var o;
|
|
1622
1575
|
const a = i == null ? void 0 : i.value;
|
|
1623
1576
|
a && ((o = n.value) == null || o.setMap(a));
|
|
1624
|
-
}),
|
|
1577
|
+
}), pe(
|
|
1625
1578
|
() => ({ ...e }),
|
|
1626
1579
|
(a) => {
|
|
1627
1580
|
var o;
|
|
1628
1581
|
(o = n.value) == null || o.setOptions({ ...a });
|
|
1629
1582
|
}
|
|
1630
1583
|
), () => null;
|
|
1631
|
-
}),
|
|
1584
|
+
}), po = j(function(e) {
|
|
1632
1585
|
return () => {
|
|
1633
|
-
const n = window.innerWidth * 0.01, i = 1 * n, a = 0.13 * n, o = 0.24 * n, r = 0.4 * n, s = 0.3 * n, c = e.done ? "#96B2CA" : "#487BF4", d = e.done ? "#7693AF" : "#4175F1",
|
|
1634
|
-
return g("div", [g(
|
|
1586
|
+
const n = window.innerWidth * 0.01, i = 1 * n, a = 0.13 * n, o = 0.24 * n, r = 0.4 * n, s = 0.3 * n, c = e.done ? "#96B2CA" : "#487BF4", d = e.done ? "#7693AF" : "#4175F1", m = e.done ? "#7693AF" : "#6C95F5";
|
|
1587
|
+
return g("div", [g(ue, {
|
|
1635
1588
|
attrs: {
|
|
1636
1589
|
path: e.path,
|
|
1637
1590
|
strokeWeight: i + 2 * a + 2 * r,
|
|
@@ -1640,18 +1593,18 @@ const Ko = j(function(e, { slots: n, emit: i }) {
|
|
|
1640
1593
|
lineJoin: "round",
|
|
1641
1594
|
lineCap: "round"
|
|
1642
1595
|
}
|
|
1643
|
-
}), g(
|
|
1596
|
+
}), g(ue, {
|
|
1644
1597
|
attrs: {
|
|
1645
1598
|
path: e.path,
|
|
1646
1599
|
strokeWeight: i + 2 * a,
|
|
1647
1600
|
strokeOpacity: 1,
|
|
1648
|
-
strokeColor:
|
|
1601
|
+
strokeColor: m,
|
|
1649
1602
|
lineJoin: "round",
|
|
1650
1603
|
lineCap: "round",
|
|
1651
1604
|
strokeStyle: "dashed",
|
|
1652
1605
|
strokeDasharray: [s, s * 0.5]
|
|
1653
1606
|
}
|
|
1654
|
-
}), g(
|
|
1607
|
+
}), g(ue, {
|
|
1655
1608
|
attrs: {
|
|
1656
1609
|
path: e.path,
|
|
1657
1610
|
strokeWeight: i,
|
|
@@ -1660,7 +1613,7 @@ const Ko = j(function(e, { slots: n, emit: i }) {
|
|
|
1660
1613
|
lineJoin: "round",
|
|
1661
1614
|
lineCap: "round"
|
|
1662
1615
|
}
|
|
1663
|
-
}), g(
|
|
1616
|
+
}), g(ue, {
|
|
1664
1617
|
attrs: {
|
|
1665
1618
|
showDir: !0,
|
|
1666
1619
|
path: e.path,
|
|
@@ -1672,18 +1625,18 @@ const Ko = j(function(e, { slots: n, emit: i }) {
|
|
|
1672
1625
|
}
|
|
1673
1626
|
})]);
|
|
1674
1627
|
};
|
|
1675
|
-
}),
|
|
1676
|
-
const n = w(() => e.path.map(
|
|
1628
|
+
}), vo = j(function(e) {
|
|
1629
|
+
const n = w(() => e.path.map(E));
|
|
1677
1630
|
return () => {
|
|
1678
|
-
const i = window.innerWidth * 0.01, a = 10 * i, o = 2.5 * i, r = 0.35 * i, s = 0.75 * i, c = 1 * i, d = e.done ? "#96B2CA" : "#487BF4",
|
|
1679
|
-
return g("div", [g(
|
|
1631
|
+
const i = window.innerWidth * 0.01, a = 10 * i, o = 2.5 * i, r = 0.35 * i, s = 0.75 * i, c = 1 * i, d = e.done ? "#96B2CA" : "#487BF4", m = e.done ? "#7693AF" : "#4175F1", u = e.done ? "#7693AF" : "#6C95F5";
|
|
1632
|
+
return g("div", [g(je, {
|
|
1680
1633
|
attrs: {
|
|
1681
1634
|
path: n.value,
|
|
1682
1635
|
strokeWeight: o + 2 * r + 2 * c,
|
|
1683
1636
|
strokeOpacity: 1,
|
|
1684
|
-
strokeColor:
|
|
1637
|
+
strokeColor: m
|
|
1685
1638
|
}
|
|
1686
|
-
}), g(
|
|
1639
|
+
}), g(je, {
|
|
1687
1640
|
attrs: {
|
|
1688
1641
|
path: n.value,
|
|
1689
1642
|
icons: [{
|
|
@@ -1698,7 +1651,7 @@ const Ko = j(function(e, { slots: n, emit: i }) {
|
|
|
1698
1651
|
offset: `${o / 2}px`
|
|
1699
1652
|
}]
|
|
1700
1653
|
}
|
|
1701
|
-
}), g(
|
|
1654
|
+
}), g(je, {
|
|
1702
1655
|
attrs: {
|
|
1703
1656
|
path: n.value,
|
|
1704
1657
|
strokeWeight: o,
|
|
@@ -1716,13 +1669,13 @@ const Ko = j(function(e, { slots: n, emit: i }) {
|
|
|
1716
1669
|
}
|
|
1717
1670
|
})]);
|
|
1718
1671
|
};
|
|
1719
|
-
}),
|
|
1720
|
-
const n =
|
|
1721
|
-
return () => e.path.length ? k(n.supplier === "gmap" ?
|
|
1672
|
+
}), ae = j(function(e) {
|
|
1673
|
+
const n = N();
|
|
1674
|
+
return () => e.path.length ? k(n.supplier === "gmap" ? vo : po, {
|
|
1722
1675
|
attrs: e
|
|
1723
1676
|
}) : null;
|
|
1724
|
-
}),
|
|
1725
|
-
const e =
|
|
1677
|
+
}), Nn = (t) => {
|
|
1678
|
+
const e = Z({ path: [], distance: 0, duration: 0 }), n = new AMap.Driving({});
|
|
1726
1679
|
return ie(
|
|
1727
1680
|
() => ({ ...t }),
|
|
1728
1681
|
({ from: i, to: a }) => {
|
|
@@ -1735,8 +1688,8 @@ const Ko = j(function(e, { slots: n, emit: i }) {
|
|
|
1735
1688
|
case "complete": {
|
|
1736
1689
|
let s = [];
|
|
1737
1690
|
const d = r.routes[0];
|
|
1738
|
-
for (const
|
|
1739
|
-
const l =
|
|
1691
|
+
for (const m of d.steps) {
|
|
1692
|
+
const l = m.path.map(({ lng: I, lat: M }) => [I, M]);
|
|
1740
1693
|
s = s.concat(l);
|
|
1741
1694
|
}
|
|
1742
1695
|
e.path = s, e.distance = d.distance, e.duration = d.time;
|
|
@@ -1752,8 +1705,8 @@ const Ko = j(function(e, { slots: n, emit: i }) {
|
|
|
1752
1705
|
);
|
|
1753
1706
|
}
|
|
1754
1707
|
), e;
|
|
1755
|
-
},
|
|
1756
|
-
const e =
|
|
1708
|
+
}, hn = (t) => {
|
|
1709
|
+
const e = Z({ path: [], distance: 0, duration: 0 }), n = new google.maps.DirectionsService();
|
|
1757
1710
|
return ie(
|
|
1758
1711
|
() => ({ ...t }),
|
|
1759
1712
|
({ from: i, to: a }) => {
|
|
@@ -1764,18 +1717,18 @@ const Ko = j(function(e, { slots: n, emit: i }) {
|
|
|
1764
1717
|
travelMode: google.maps.TravelMode.DRIVING
|
|
1765
1718
|
},
|
|
1766
1719
|
(o, r) => {
|
|
1767
|
-
var s, c, d,
|
|
1720
|
+
var s, c, d, m;
|
|
1768
1721
|
switch (r) {
|
|
1769
1722
|
case google.maps.DirectionsStatus.OK: {
|
|
1770
|
-
let u = [], l = 0,
|
|
1771
|
-
const M = o.routes[0],
|
|
1772
|
-
|
|
1773
|
-
|
|
1723
|
+
let u = [], l = 0, I = 0;
|
|
1724
|
+
const M = o.routes[0], f = M.overview_path.map((y) => [
|
|
1725
|
+
y.lng(),
|
|
1726
|
+
y.lat()
|
|
1774
1727
|
]);
|
|
1775
|
-
u = u.concat(
|
|
1776
|
-
for (const
|
|
1777
|
-
l += (c = (s =
|
|
1778
|
-
e.path = u, e.distance = l, e.duration =
|
|
1728
|
+
u = u.concat(f);
|
|
1729
|
+
for (const y of M.legs)
|
|
1730
|
+
l += (c = (s = y.distance) == null ? void 0 : s.value) != null ? c : 0, I += (m = (d = y.duration) == null ? void 0 : d.value) != null ? m : 0;
|
|
1731
|
+
e.path = u, e.distance = l, e.duration = I;
|
|
1779
1732
|
return;
|
|
1780
1733
|
}
|
|
1781
1734
|
case google.maps.DirectionsStatus.ZERO_RESULTS:
|
|
@@ -1789,80 +1742,80 @@ const Ko = j(function(e, { slots: n, emit: i }) {
|
|
|
1789
1742
|
);
|
|
1790
1743
|
}
|
|
1791
1744
|
), e;
|
|
1792
|
-
},
|
|
1793
|
-
const { supplier: e } =
|
|
1794
|
-
return e === "gmap" ?
|
|
1795
|
-
},
|
|
1745
|
+
}, Ur = (t) => {
|
|
1746
|
+
const { supplier: e } = N();
|
|
1747
|
+
return e === "gmap" ? hn(t) : Nn(t);
|
|
1748
|
+
}, yo = (t, e, n) => {
|
|
1796
1749
|
if (!n)
|
|
1797
1750
|
return 0;
|
|
1798
1751
|
const { x: i, y: a } = n.lngLatToContainer(t), { x: o, y: r } = n.lngLatToContainer(e), s = Math.atan2(a - r, o - i);
|
|
1799
1752
|
return (Math.PI / 2 - s) / Math.PI * 180;
|
|
1800
|
-
},
|
|
1753
|
+
}, Dn = (t) => w(() => {
|
|
1801
1754
|
const { map: e, path: n } = t, [i, a] = n;
|
|
1802
1755
|
if (!(!i || !a || !e))
|
|
1803
|
-
return
|
|
1804
|
-
}),
|
|
1756
|
+
return yo(i, a, e);
|
|
1757
|
+
}), wn = (t) => w(() => {
|
|
1805
1758
|
const { path: e } = t, [n, i] = e;
|
|
1806
1759
|
if (!(!n || !i))
|
|
1807
|
-
return google.maps.geometry.spherical.computeHeading(
|
|
1808
|
-
}),
|
|
1809
|
-
const { supplier: e } =
|
|
1810
|
-
return e === "gmap" ?
|
|
1811
|
-
},
|
|
1760
|
+
return google.maps.geometry.spherical.computeHeading(E(n), E(i));
|
|
1761
|
+
}), Br = (t) => {
|
|
1762
|
+
const { supplier: e } = N();
|
|
1763
|
+
return e === "gmap" ? wn(t) : Dn(t);
|
|
1764
|
+
}, jo = j(function(e, {
|
|
1812
1765
|
slots: n
|
|
1813
1766
|
}) {
|
|
1814
|
-
const i =
|
|
1767
|
+
const i = Ie(), {
|
|
1815
1768
|
path: a,
|
|
1816
1769
|
distance: o,
|
|
1817
1770
|
duration: r
|
|
1818
|
-
} =
|
|
1771
|
+
} = Rt(Nn(e)), s = Dn(Z({
|
|
1819
1772
|
path: a,
|
|
1820
1773
|
map: i
|
|
1821
1774
|
}));
|
|
1822
1775
|
return () => {
|
|
1823
1776
|
var c;
|
|
1824
|
-
return g("div", [(c = n.render) == null ? void 0 : c.call(n,
|
|
1777
|
+
return g("div", [(c = n.render) == null ? void 0 : c.call(n, Z({
|
|
1825
1778
|
path: a,
|
|
1826
1779
|
angle: s,
|
|
1827
1780
|
distance: o,
|
|
1828
1781
|
duration: r
|
|
1829
1782
|
}))]);
|
|
1830
1783
|
};
|
|
1831
|
-
}),
|
|
1784
|
+
}), Lo = j(function(e, {
|
|
1832
1785
|
slots: n
|
|
1833
1786
|
}) {
|
|
1834
|
-
const i =
|
|
1787
|
+
const i = Me(), {
|
|
1835
1788
|
path: a,
|
|
1836
1789
|
distance: o,
|
|
1837
1790
|
duration: r
|
|
1838
|
-
} =
|
|
1791
|
+
} = Rt(hn(e)), s = wn(Z({
|
|
1839
1792
|
path: a,
|
|
1840
1793
|
map: i
|
|
1841
1794
|
}));
|
|
1842
1795
|
return () => {
|
|
1843
1796
|
var c;
|
|
1844
|
-
return g("div", [(c = n.render) == null ? void 0 : c.call(n,
|
|
1797
|
+
return g("div", [(c = n.render) == null ? void 0 : c.call(n, Z({
|
|
1845
1798
|
path: a,
|
|
1846
1799
|
angle: s,
|
|
1847
1800
|
distance: o,
|
|
1848
1801
|
duration: r
|
|
1849
1802
|
}))]);
|
|
1850
1803
|
};
|
|
1851
|
-
}),
|
|
1804
|
+
}), oe = j(function(e, {
|
|
1852
1805
|
slots: n
|
|
1853
1806
|
}) {
|
|
1854
1807
|
const {
|
|
1855
1808
|
supplier: i
|
|
1856
|
-
} =
|
|
1857
|
-
return () => k(i === "gmap" ?
|
|
1809
|
+
} = N();
|
|
1810
|
+
return () => k(i === "gmap" ? Lo : jo, {
|
|
1858
1811
|
attrs: e,
|
|
1859
1812
|
scopedSlots: n
|
|
1860
1813
|
});
|
|
1861
|
-
}),
|
|
1862
|
-
window.availableLogKeys =
|
|
1863
|
-
const
|
|
1864
|
-
|
|
1865
|
-
},
|
|
1814
|
+
}), Cn = /* @__PURE__ */ new Set(), Ao = (t) => new URLSearchParams(location.search).has(`log-${t}`);
|
|
1815
|
+
window.availableLogKeys = Cn;
|
|
1816
|
+
const So = (t, ...e) => {
|
|
1817
|
+
Cn.add(t), Ao(t) && console.log(t, ...e);
|
|
1818
|
+
}, No = 20, ho = (t) => {
|
|
1866
1819
|
const { mapRef: e, autoFitTimeout: n } = t, i = /* @__PURE__ */ new Set();
|
|
1867
1820
|
let a;
|
|
1868
1821
|
const o = () => {
|
|
@@ -1870,8 +1823,8 @@ const or = (t, ...e) => {
|
|
|
1870
1823
|
const c = e.value;
|
|
1871
1824
|
if (!c)
|
|
1872
1825
|
return;
|
|
1873
|
-
const d = window.innerWidth / 100, [
|
|
1874
|
-
|
|
1826
|
+
const d = window.innerWidth / 100, [m, u, l, I] = (M = t.padding) != null ? M : [0, 0, 0, 0];
|
|
1827
|
+
So("setFitView", "overlayGroup = ", i), c.setFitView([...i], !1, [m * d, l * d, I * d, u * d]);
|
|
1875
1828
|
}, r = {
|
|
1876
1829
|
add: (c) => {
|
|
1877
1830
|
i.add(c);
|
|
@@ -1892,7 +1845,7 @@ const or = (t, ...e) => {
|
|
|
1892
1845
|
["onDragEnd"]
|
|
1893
1846
|
), { registerFitVeiw: r, setFitView: o };
|
|
1894
1847
|
};
|
|
1895
|
-
class
|
|
1848
|
+
class Do extends Set {
|
|
1896
1849
|
getBound() {
|
|
1897
1850
|
const e = new google.maps.LatLngBounds();
|
|
1898
1851
|
for (const n of this.values()) {
|
|
@@ -1902,50 +1855,50 @@ class cr extends Set {
|
|
|
1902
1855
|
return e;
|
|
1903
1856
|
}
|
|
1904
1857
|
}
|
|
1905
|
-
const
|
|
1906
|
-
const { mapRef: e, autoFitTimeout: n } = t, { executeMapApi: i } =
|
|
1858
|
+
const wo = (t) => {
|
|
1859
|
+
const { mapRef: e, autoFitTimeout: n } = t, { executeMapApi: i } = Sn(), a = new Do();
|
|
1907
1860
|
let o;
|
|
1908
1861
|
const r = () => {
|
|
1909
|
-
var
|
|
1910
|
-
const
|
|
1911
|
-
if (!
|
|
1862
|
+
var y;
|
|
1863
|
+
const m = e.value;
|
|
1864
|
+
if (!m)
|
|
1912
1865
|
return;
|
|
1913
|
-
const u = window.innerWidth / 100, [l,
|
|
1866
|
+
const u = window.innerWidth / 100, [l, I, M, f] = (y = t.padding) != null ? y : [0, 0, 0, 0];
|
|
1914
1867
|
i(
|
|
1915
|
-
() =>
|
|
1868
|
+
() => m.fitBounds(a.getBound(), {
|
|
1916
1869
|
top: l * u,
|
|
1917
|
-
right:
|
|
1870
|
+
right: I * u,
|
|
1918
1871
|
bottom: M * u,
|
|
1919
|
-
left:
|
|
1872
|
+
left: f * u
|
|
1920
1873
|
})
|
|
1921
1874
|
);
|
|
1922
1875
|
}, s = {
|
|
1923
|
-
add: (
|
|
1924
|
-
a.add(
|
|
1876
|
+
add: (m) => {
|
|
1877
|
+
a.add(m);
|
|
1925
1878
|
},
|
|
1926
|
-
remove: (
|
|
1927
|
-
a.delete(
|
|
1879
|
+
remove: (m) => {
|
|
1880
|
+
a.delete(m);
|
|
1928
1881
|
},
|
|
1929
1882
|
setFitView: r
|
|
1930
1883
|
}, c = () => {
|
|
1931
|
-
const
|
|
1932
|
-
!n ||
|
|
1884
|
+
const m = Io();
|
|
1885
|
+
!n || m !== "user" || (o && clearTimeout(o), o = setTimeout(() => {
|
|
1933
1886
|
o = void 0, r();
|
|
1934
1887
|
}, n));
|
|
1935
|
-
}, d =
|
|
1936
|
-
return
|
|
1888
|
+
}, d = Na(c, No);
|
|
1889
|
+
return Q(e, {}, c, [
|
|
1937
1890
|
"onDragEnd"
|
|
1938
|
-
]),
|
|
1891
|
+
]), Q(e, {}, d, [
|
|
1939
1892
|
"onZoom_changed"
|
|
1940
1893
|
]), { registerFitVeiw: s, setFitView: r };
|
|
1941
|
-
},
|
|
1942
|
-
const { supplier: e } =
|
|
1943
|
-
return e === "gmap" ?
|
|
1894
|
+
}, Ze = (t) => {
|
|
1895
|
+
const { supplier: e } = N();
|
|
1896
|
+
return e === "gmap" ? wo(t) : ho(t);
|
|
1944
1897
|
};
|
|
1945
1898
|
j(function(e, {
|
|
1946
1899
|
slots: n
|
|
1947
1900
|
}) {
|
|
1948
|
-
const i =
|
|
1901
|
+
const i = on(), a = Ze({
|
|
1949
1902
|
...e,
|
|
1950
1903
|
mapRef: i
|
|
1951
1904
|
});
|
|
@@ -1954,10 +1907,10 @@ j(function(e, {
|
|
|
1954
1907
|
return g("div", [(o = n.render) == null ? void 0 : o.call(n, a)]);
|
|
1955
1908
|
};
|
|
1956
1909
|
});
|
|
1957
|
-
const
|
|
1910
|
+
const W = j(function(e, {
|
|
1958
1911
|
slots: n
|
|
1959
1912
|
}) {
|
|
1960
|
-
const i =
|
|
1913
|
+
const i = rn(), {
|
|
1961
1914
|
registerOverlay: a
|
|
1962
1915
|
} = e, {
|
|
1963
1916
|
setFitView: o
|
|
@@ -1969,7 +1922,7 @@ const U = j(function(e, {
|
|
|
1969
1922
|
return g("div", [(r = n.default) == null ? void 0 : r.call(n)]);
|
|
1970
1923
|
};
|
|
1971
1924
|
});
|
|
1972
|
-
function
|
|
1925
|
+
function Co(t) {
|
|
1973
1926
|
const {
|
|
1974
1927
|
add: e,
|
|
1975
1928
|
remove: n,
|
|
@@ -1985,10 +1938,10 @@ function lr(t) {
|
|
|
1985
1938
|
setFitView: i
|
|
1986
1939
|
};
|
|
1987
1940
|
}
|
|
1988
|
-
const
|
|
1941
|
+
const _e = j(function(e, {
|
|
1989
1942
|
slots: n
|
|
1990
1943
|
}) {
|
|
1991
|
-
const i =
|
|
1944
|
+
const i = rn(), {
|
|
1992
1945
|
registerOverlay: a
|
|
1993
1946
|
} = e, {
|
|
1994
1947
|
setFitView: o
|
|
@@ -2001,8 +1954,8 @@ const qe = j(function(e, {
|
|
|
2001
1954
|
var r;
|
|
2002
1955
|
return g("div", [(r = n.default) == null ? void 0 : r.call(n)]);
|
|
2003
1956
|
};
|
|
2004
|
-
}),
|
|
2005
|
-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A3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
|
|
1958
|
+
function Po(t, e, n) {
|
|
2006
1959
|
return e in t ? Object.defineProperty(t, e, {
|
|
2007
1960
|
value: n,
|
|
2008
1961
|
enumerable: !0,
|
|
@@ -2010,7 +1963,7 @@ function dr(t, e, n) {
|
|
|
2010
1963
|
writable: !0
|
|
2011
1964
|
}) : t[e] = n, t;
|
|
2012
1965
|
}
|
|
2013
|
-
function
|
|
1966
|
+
function wt(t, e) {
|
|
2014
1967
|
var n = Object.keys(t);
|
|
2015
1968
|
if (Object.getOwnPropertySymbols) {
|
|
2016
1969
|
var i = Object.getOwnPropertySymbols(t);
|
|
@@ -2020,26 +1973,26 @@ function xt(t, e) {
|
|
|
2020
1973
|
}
|
|
2021
1974
|
return n;
|
|
2022
1975
|
}
|
|
2023
|
-
function
|
|
1976
|
+
function Ct(t) {
|
|
2024
1977
|
for (var e = 1; e < arguments.length; e++) {
|
|
2025
1978
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
2026
|
-
e % 2 ?
|
|
2027
|
-
|
|
2028
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
1979
|
+
e % 2 ? wt(Object(n), !0).forEach(function(i) {
|
|
1980
|
+
Po(t, i, n[i]);
|
|
1981
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : wt(Object(n)).forEach(function(i) {
|
|
2029
1982
|
Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(n, i));
|
|
2030
1983
|
});
|
|
2031
1984
|
}
|
|
2032
1985
|
return t;
|
|
2033
1986
|
}
|
|
2034
|
-
var
|
|
1987
|
+
var xo = (t, e, n) => {
|
|
2035
1988
|
for (var i of Object.keys(t)) {
|
|
2036
1989
|
var a;
|
|
2037
1990
|
if (t[i] !== ((a = e[i]) !== null && a !== void 0 ? a : n[i]))
|
|
2038
1991
|
return !1;
|
|
2039
1992
|
}
|
|
2040
1993
|
return !0;
|
|
2041
|
-
},
|
|
2042
|
-
var n = t.defaultClassName, i =
|
|
1994
|
+
}, re = (t) => (e) => {
|
|
1995
|
+
var n = t.defaultClassName, i = Ct(Ct({}, t.defaultVariants), e);
|
|
2043
1996
|
for (var a in i) {
|
|
2044
1997
|
var o, r = (o = i[a]) !== null && o !== void 0 ? o : t.defaultVariants[a];
|
|
2045
1998
|
if (r != null) {
|
|
@@ -2052,36 +2005,38 @@ var gr = (t, e, n) => {
|
|
|
2052
2005
|
c && (n += " " + c);
|
|
2053
2006
|
}
|
|
2054
2007
|
}
|
|
2055
|
-
for (var [d,
|
|
2056
|
-
|
|
2008
|
+
for (var [d, m] of t.compoundVariants)
|
|
2009
|
+
xo(d, i, t.defaultVariants) && (n += " " + m);
|
|
2057
2010
|
return n;
|
|
2058
|
-
},
|
|
2059
|
-
const
|
|
2011
|
+
}, K = re({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] }), bn = "_4a4ovk1", Zn = "_4a4ovk4", Tn = "_4a4ovk5", Se = "_4a4ovk3", Ne = "_4a4ovk0", En = "_4a4ovk2";
|
|
2012
|
+
const bo = j(function(e) {
|
|
2060
2013
|
const n = w(() => {
|
|
2061
2014
|
var o;
|
|
2062
|
-
const i = e.type === "start" ?
|
|
2063
|
-
return !e.description && !e.title ? `<img src="${i}" class="${
|
|
2015
|
+
const i = e.type === "start" ? xn : Pn, a = e.description ? xe(e.description).map((r) => r.type === "normal" ? r.value : `<span class="${Tn}">${r.value}</span>`).join("") : "";
|
|
2016
|
+
return !e.description && !e.title ? `<img src="${i}" class="${K({
|
|
2064
2017
|
type: e.type
|
|
2065
2018
|
})}">` : e.description ? `
|
|
2066
|
-
<div class="${
|
|
2067
|
-
<div class="${
|
|
2068
|
-
<div class="${
|
|
2069
|
-
<div class="${
|
|
2019
|
+
<div class="${Ne}">
|
|
2020
|
+
<div class="${bn}">
|
|
2021
|
+
<div class="${Se}">${(o = e.title) != null ? o : ""}</div>
|
|
2022
|
+
<div class="${Zn}">${a}</div>
|
|
2070
2023
|
</div>
|
|
2071
|
-
<img src="${i}" class="${
|
|
2024
|
+
<img src="${i}" class="${K({
|
|
2072
2025
|
type: e.type
|
|
2073
2026
|
})}">
|
|
2074
2027
|
</div>
|
|
2075
2028
|
` : `
|
|
2076
|
-
<div class="${
|
|
2077
|
-
<div class="${
|
|
2078
|
-
|
|
2029
|
+
<div class="${Ne}">
|
|
2030
|
+
<div class="${En}">
|
|
2031
|
+
<div class="${Se}">${e.title}</div>
|
|
2032
|
+
</div>
|
|
2033
|
+
<img src="${i}" class="${K({
|
|
2079
2034
|
type: e.type
|
|
2080
2035
|
})}">
|
|
2081
2036
|
</div>
|
|
2082
2037
|
`;
|
|
2083
2038
|
});
|
|
2084
|
-
return () => g(
|
|
2039
|
+
return () => g(B, {
|
|
2085
2040
|
attrs: {
|
|
2086
2041
|
registerOverlay: e.registerOverlay,
|
|
2087
2042
|
position: e.position,
|
|
@@ -2089,65 +2044,67 @@ const mr = j(function(e) {
|
|
|
2089
2044
|
anchor: "bottom-center"
|
|
2090
2045
|
}
|
|
2091
2046
|
});
|
|
2092
|
-
}),
|
|
2047
|
+
}), Zo = j(function(e) {
|
|
2093
2048
|
const n = w(() => {
|
|
2094
2049
|
var o;
|
|
2095
|
-
const i = e.type === "start" ?
|
|
2096
|
-
return !e.description && !e.title ?
|
|
2097
|
-
class:
|
|
2050
|
+
const i = e.type === "start" ? xn : Pn, a = e.description ? xe(e.description).map((r) => r.type === "normal" ? r.value : `<span class="${Tn}">${r.value}</span>`).join("") : "";
|
|
2051
|
+
return !e.description && !e.title ? G("img", {
|
|
2052
|
+
class: K({
|
|
2098
2053
|
type: e.type
|
|
2099
2054
|
}),
|
|
2100
2055
|
src: i
|
|
2101
|
-
}) : e.description ?
|
|
2102
|
-
class:
|
|
2056
|
+
}) : e.description ? G("div", {
|
|
2057
|
+
class: Ne
|
|
2103
2058
|
}, `
|
|
2104
|
-
<div class="${
|
|
2105
|
-
<div class="${
|
|
2106
|
-
<div class="${
|
|
2059
|
+
<div class="${bn}">
|
|
2060
|
+
<div class="${Se}">${(o = e.title) != null ? o : ""}</div>
|
|
2061
|
+
<div class="${Zn}">${a}</div>
|
|
2107
2062
|
</div>
|
|
2108
|
-
<img src="${i}" class="${
|
|
2063
|
+
<img src="${i}" class="${K({
|
|
2109
2064
|
type: e.type
|
|
2110
2065
|
})}">
|
|
2111
|
-
`) :
|
|
2112
|
-
class:
|
|
2066
|
+
`) : G("div", {
|
|
2067
|
+
class: Ne
|
|
2113
2068
|
}, `
|
|
2114
|
-
<div class="${
|
|
2115
|
-
|
|
2069
|
+
<div class="${En}">
|
|
2070
|
+
<div class="${Se}">${e.title}</div>
|
|
2071
|
+
</div>
|
|
2072
|
+
<img src="${i}" class="${K({
|
|
2116
2073
|
type: e.type
|
|
2117
2074
|
})}">
|
|
2118
2075
|
`);
|
|
2119
2076
|
});
|
|
2120
|
-
return () => g(
|
|
2077
|
+
return () => g(V, {
|
|
2121
2078
|
attrs: {
|
|
2122
2079
|
registerOverlay: e.registerOverlay,
|
|
2123
|
-
position:
|
|
2080
|
+
position: E(e.position),
|
|
2124
2081
|
content: n.value
|
|
2125
2082
|
}
|
|
2126
2083
|
});
|
|
2127
|
-
}),
|
|
2128
|
-
const n =
|
|
2129
|
-
return () => k(n.supplier === "gmap" ?
|
|
2084
|
+
}), z = j(function(e) {
|
|
2085
|
+
const n = N();
|
|
2086
|
+
return () => k(n.supplier === "gmap" ? Zo : bo, {
|
|
2130
2087
|
attrs: e
|
|
2131
2088
|
});
|
|
2132
|
-
}),
|
|
2089
|
+
}), Vr = me(function(e) {
|
|
2133
2090
|
const {
|
|
2134
2091
|
registerOverlay: n,
|
|
2135
2092
|
mapRef: i,
|
|
2136
2093
|
renderDescription: a
|
|
2137
|
-
} = e, o =
|
|
2094
|
+
} = e, o = Co(n);
|
|
2138
2095
|
return () => {
|
|
2139
2096
|
const {
|
|
2140
2097
|
from: r,
|
|
2141
2098
|
to: s,
|
|
2142
2099
|
fromDescription: c
|
|
2143
|
-
} = e, d =
|
|
2144
|
-
return g(
|
|
2100
|
+
} = e, d = P(r), m = P(s);
|
|
2101
|
+
return g(be, {
|
|
2145
2102
|
attrs: {
|
|
2146
2103
|
mapRef: i,
|
|
2147
2104
|
center: d,
|
|
2148
2105
|
zoom: 13
|
|
2149
2106
|
}
|
|
2150
|
-
}, [g(
|
|
2107
|
+
}, [g(z, {
|
|
2151
2108
|
attrs: {
|
|
2152
2109
|
type: "start",
|
|
2153
2110
|
registerOverlay: n,
|
|
@@ -2155,39 +2112,39 @@ const mr = j(function(e) {
|
|
|
2155
2112
|
title: r.name,
|
|
2156
2113
|
description: c
|
|
2157
2114
|
}
|
|
2158
|
-
}), g(
|
|
2115
|
+
}), g(oe, {
|
|
2159
2116
|
attrs: {
|
|
2160
|
-
to:
|
|
2117
|
+
to: m,
|
|
2161
2118
|
from: d,
|
|
2162
2119
|
render: ({
|
|
2163
2120
|
path: u,
|
|
2164
2121
|
distance: l,
|
|
2165
|
-
duration:
|
|
2166
|
-
}) => [g(
|
|
2122
|
+
duration: I
|
|
2123
|
+
}) => [g(ae, {
|
|
2167
2124
|
attrs: {
|
|
2168
2125
|
path: u
|
|
2169
2126
|
}
|
|
2170
|
-
}), g(
|
|
2127
|
+
}), g(z, {
|
|
2171
2128
|
attrs: {
|
|
2172
2129
|
type: "end",
|
|
2173
2130
|
registerOverlay: o,
|
|
2174
|
-
position:
|
|
2131
|
+
position: m,
|
|
2175
2132
|
title: s.name,
|
|
2176
2133
|
description: a({
|
|
2177
2134
|
distance: l,
|
|
2178
|
-
duration:
|
|
2135
|
+
duration: I
|
|
2179
2136
|
})
|
|
2180
2137
|
}
|
|
2181
2138
|
})]
|
|
2182
2139
|
}
|
|
2183
|
-
}), g(
|
|
2140
|
+
}), g(W, {
|
|
2184
2141
|
attrs: {
|
|
2185
2142
|
registerOverlay: n
|
|
2186
2143
|
}
|
|
2187
2144
|
})]);
|
|
2188
2145
|
};
|
|
2189
|
-
}).props(["fallback", "from", "loading", "mapRef", "registerOverlay", "renderDescription", "to", "fromDescription", "log"]),
|
|
2190
|
-
const { readyPromise: t } =
|
|
2146
|
+
}).props(["fallback", "from", "loading", "mapRef", "registerOverlay", "renderDescription", "to", "fromDescription", "log"]), To = () => {
|
|
2147
|
+
const { readyPromise: t } = N();
|
|
2191
2148
|
async function e(n) {
|
|
2192
2149
|
return await t, new Promise((i, a) => {
|
|
2193
2150
|
AMap.convertFrom(
|
|
@@ -2204,68 +2161,68 @@ const mr = j(function(e) {
|
|
|
2204
2161
|
});
|
|
2205
2162
|
}
|
|
2206
2163
|
return { toGcj02: e };
|
|
2207
|
-
},
|
|
2208
|
-
const { supplier: t } =
|
|
2209
|
-
return t === "gmap" ?
|
|
2210
|
-
},
|
|
2211
|
-
var
|
|
2212
|
-
const { onChange: e, onLoad: n, onLoadDefault: i, onError: a, geoDefaultPosition: o } = t != null ? t : {}, { toGcj02: r } =
|
|
2164
|
+
}, Eo = () => ({ toGcj02: async (e) => e }), Ro = () => {
|
|
2165
|
+
const { supplier: t } = N();
|
|
2166
|
+
return t === "gmap" ? Eo() : To();
|
|
2167
|
+
}, zo = 5e3, Te = (t) => {
|
|
2168
|
+
var I, M;
|
|
2169
|
+
const { onChange: e, onLoad: n, onLoadDefault: i, onError: a, geoDefaultPosition: o } = t != null ? t : {}, { toGcj02: r } = Ro();
|
|
2213
2170
|
let s = !1;
|
|
2214
|
-
const c = C(!1), d = C(!1),
|
|
2171
|
+
const c = C(!1), d = C(!1), m = C(), u = C({
|
|
2215
2172
|
accuracy: 0,
|
|
2216
2173
|
altitude: 0,
|
|
2217
2174
|
altitudeAccuracy: 0,
|
|
2218
2175
|
heading: 0,
|
|
2219
|
-
latitude: (
|
|
2176
|
+
latitude: (I = o == null ? void 0 : o[1]) != null ? I : 0,
|
|
2220
2177
|
longitude: (M = o == null ? void 0 : o[0]) != null ? M : 0,
|
|
2221
2178
|
speed: 0
|
|
2222
2179
|
}), l = C([u.value.longitude, u.value.latitude]);
|
|
2223
2180
|
return T(
|
|
2224
2181
|
() => !0,
|
|
2225
|
-
(
|
|
2182
|
+
(f, y, p) => {
|
|
2226
2183
|
c.value = !0;
|
|
2227
2184
|
const v = navigator.geolocation.watchPosition(
|
|
2228
2185
|
async (L) => {
|
|
2229
|
-
const
|
|
2230
|
-
console.log("wgsPoint, point = ", D,
|
|
2186
|
+
const S = L.coords, D = [L.coords.longitude, L.coords.latitude], h = await r(D);
|
|
2187
|
+
console.log("wgsPoint, point = ", D, h), u.value = S, l.value = h, c.value && (c.value = !1, d.value = !0, n == null || n({ position: h, coordinate: S })), e == null || e({ position: h, coordinate: S });
|
|
2231
2188
|
},
|
|
2232
2189
|
(L) => {
|
|
2233
|
-
c.value = !1,
|
|
2234
|
-
const
|
|
2235
|
-
|
|
2190
|
+
c.value = !1, m.value = L;
|
|
2191
|
+
const S = t == null ? void 0 : t.geoDefaultPosition;
|
|
2192
|
+
S && !s && (s = !0, i == null || i({ position: S })), a == null || a(L);
|
|
2236
2193
|
},
|
|
2237
|
-
{ timeout:
|
|
2194
|
+
{ timeout: zo, maximumAge: 0, enableHighAccuracy: !1 }
|
|
2238
2195
|
);
|
|
2239
|
-
|
|
2196
|
+
p(() => navigator.geolocation.clearWatch(v));
|
|
2240
2197
|
},
|
|
2241
2198
|
{ immediate: !0 }
|
|
2242
2199
|
), {
|
|
2243
|
-
geoError:
|
|
2200
|
+
geoError: m,
|
|
2244
2201
|
geoPosition: l,
|
|
2245
2202
|
geoCoordinate: u,
|
|
2246
2203
|
geoLoading: c,
|
|
2247
2204
|
geoReady: d
|
|
2248
2205
|
};
|
|
2249
|
-
},
|
|
2250
|
-
const t =
|
|
2206
|
+
}, Oo = () => {
|
|
2207
|
+
const t = R();
|
|
2251
2208
|
return { mapRef: t, panTo: (i) => {
|
|
2252
2209
|
var a;
|
|
2253
2210
|
return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(i);
|
|
2254
2211
|
}, setMap: (i) => {
|
|
2255
2212
|
t.value = i;
|
|
2256
2213
|
} };
|
|
2257
|
-
},
|
|
2258
|
-
const t =
|
|
2214
|
+
}, Go = () => {
|
|
2215
|
+
const t = R();
|
|
2259
2216
|
return { mapRef: t, panTo: (i) => {
|
|
2260
2217
|
var a;
|
|
2261
|
-
return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(
|
|
2218
|
+
return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(E(i));
|
|
2262
2219
|
}, setMap: (i) => {
|
|
2263
2220
|
t.value = i;
|
|
2264
2221
|
} };
|
|
2265
2222
|
}, Ee = () => {
|
|
2266
|
-
const { supplier: t } =
|
|
2267
|
-
return t === "gmap" ?
|
|
2268
|
-
},
|
|
2223
|
+
const { supplier: t } = N();
|
|
2224
|
+
return t === "gmap" ? Go() : Oo();
|
|
2225
|
+
}, ko = (t) => {
|
|
2269
2226
|
const { mapRef: e, onChange: n } = t, i = C([0, 0]), a = C(!1), o = () => {
|
|
2270
2227
|
Ae(() => {
|
|
2271
2228
|
a.value = !0;
|
|
@@ -2273,52 +2230,52 @@ const mr = j(function(e) {
|
|
|
2273
2230
|
}, r = (s, { target: c }) => {
|
|
2274
2231
|
var u;
|
|
2275
2232
|
a.value = !1;
|
|
2276
|
-
const { lng: d, lat:
|
|
2277
|
-
i.value = [d,
|
|
2233
|
+
const { lng: d, lat: m } = c.getCenter();
|
|
2234
|
+
i.value = [d, m], (u = Ae(n)) == null || u([d, m]);
|
|
2278
2235
|
};
|
|
2279
2236
|
return te(e, {}, o, [
|
|
2280
2237
|
"onDragStart"
|
|
2281
2238
|
]), te(e, {}, r, [
|
|
2282
2239
|
"onDragEnd"
|
|
2283
2240
|
]), { centerRef: i, isDragging: a };
|
|
2284
|
-
},
|
|
2241
|
+
}, Wo = (t) => {
|
|
2285
2242
|
const { mapRef: e, onChange: n } = t, i = C([0, 0]), a = C(!1), o = () => {
|
|
2286
2243
|
Ae(() => {
|
|
2287
2244
|
a.value = !0;
|
|
2288
2245
|
})();
|
|
2289
2246
|
}, r = async () => {
|
|
2290
|
-
var
|
|
2247
|
+
var m, u;
|
|
2291
2248
|
a.value = !1;
|
|
2292
|
-
const s = (
|
|
2249
|
+
const s = (m = e.value) == null ? void 0 : m.getCenter(), c = s == null ? void 0 : s.lng(), d = s == null ? void 0 : s.lat();
|
|
2293
2250
|
i.value = [c, d], (u = Ae(n)) == null || u([c, d]);
|
|
2294
2251
|
};
|
|
2295
|
-
return
|
|
2252
|
+
return Q(e, {}, o, [
|
|
2296
2253
|
"onDragStart"
|
|
2297
|
-
]),
|
|
2254
|
+
]), Q(e, {}, r, [
|
|
2298
2255
|
"onDragEnd"
|
|
2299
2256
|
]), { centerRef: i, isDragging: a };
|
|
2300
|
-
},
|
|
2301
|
-
const { supplier: e } =
|
|
2302
|
-
return e === "gmap" ?
|
|
2303
|
-
},
|
|
2257
|
+
}, Uo = (t) => {
|
|
2258
|
+
const { supplier: e } = N();
|
|
2259
|
+
return e === "gmap" ? Wo(t) : ko(t);
|
|
2260
|
+
}, se = () => {
|
|
2304
2261
|
const t = C(0);
|
|
2305
2262
|
return { idx: t, update: () => {
|
|
2306
2263
|
t.value += 1;
|
|
2307
2264
|
} };
|
|
2308
|
-
},
|
|
2309
|
-
const { onChange: e, onChangeCity: n } = t, i = [...t.pointRef.value], a = C(i), { readyPromise: o } =
|
|
2265
|
+
}, Rn = (t) => {
|
|
2266
|
+
const { onChange: e, onChangeCity: n } = t, i = [...t.pointRef.value], a = C(i), { readyPromise: o } = N(), r = Z({
|
|
2310
2267
|
lng: a.value[0],
|
|
2311
2268
|
lat: a.value[1],
|
|
2312
2269
|
name: ""
|
|
2313
|
-
}), { idx: s, update: c } =
|
|
2314
|
-
const
|
|
2315
|
-
|
|
2316
|
-
if (
|
|
2270
|
+
}), { idx: s, update: c } = se(), d = (l) => {
|
|
2271
|
+
const I = new AMap.Geocoder({ lang: le }), { lng: M, lat: f } = l;
|
|
2272
|
+
I.getAddress(new AMap.LngLat(M, f), (y, p) => {
|
|
2273
|
+
if (y !== "complete")
|
|
2317
2274
|
return;
|
|
2318
|
-
const { addressComponent: v } =
|
|
2319
|
-
n == null || n({ cityName: L, cityParentName:
|
|
2275
|
+
const { addressComponent: v } = p.regeocode, L = v.city ? v.city : v.province, S = v.province;
|
|
2276
|
+
n == null || n({ cityName: L, cityParentName: S, countryName: "" });
|
|
2320
2277
|
});
|
|
2321
|
-
},
|
|
2278
|
+
}, m = (l) => {
|
|
2322
2279
|
a.value = l, c();
|
|
2323
2280
|
}, u = (l) => {
|
|
2324
2281
|
r.lng = l.lng, r.lat = l.lat, r.name = l.name;
|
|
@@ -2327,166 +2284,166 @@ const mr = j(function(e) {
|
|
|
2327
2284
|
() => [s.value],
|
|
2328
2285
|
async () => {
|
|
2329
2286
|
await o;
|
|
2330
|
-
const l = new AMap.Geocoder({ lang:
|
|
2331
|
-
l.getAddress(new AMap.LngLat(
|
|
2332
|
-
switch (
|
|
2287
|
+
const l = new AMap.Geocoder({ lang: le }), [I, M] = a.value;
|
|
2288
|
+
l.getAddress(new AMap.LngLat(I, M), (f, y) => {
|
|
2289
|
+
switch (f) {
|
|
2333
2290
|
case "complete": {
|
|
2334
|
-
const { formattedAddress:
|
|
2335
|
-
r.name =
|
|
2291
|
+
const { formattedAddress: p, addressComponent: v } = y.regeocode, L = v.city ? v.city : v.province, S = v.province;
|
|
2292
|
+
r.name = p, r.lng = I, r.lat = M, e == null || e({ lng: I, lat: M, name: p }), n == null || n({ cityName: L, cityParentName: S, countryName: "" });
|
|
2336
2293
|
return;
|
|
2337
2294
|
}
|
|
2338
2295
|
case "no_data":
|
|
2339
|
-
r.name = "", r.lng =
|
|
2296
|
+
r.name = "", r.lng = I, r.lat = M, e == null || e({ lng: I, lat: M, name: "" });
|
|
2340
2297
|
return;
|
|
2341
2298
|
case "error":
|
|
2342
|
-
throw
|
|
2299
|
+
throw y;
|
|
2343
2300
|
}
|
|
2344
2301
|
});
|
|
2345
2302
|
}
|
|
2346
|
-
), { place: r, updatePlace:
|
|
2347
|
-
},
|
|
2348
|
-
const { onChange: e, onChangeCity: n } = t, i = [...t.pointRef.value], a = C(i), { readyPromise: o } =
|
|
2303
|
+
), { place: r, updatePlace: m, setPlace: u, updateCity: d };
|
|
2304
|
+
}, zn = (t) => {
|
|
2305
|
+
const { onChange: e, onChangeCity: n } = t, i = [...t.pointRef.value], a = C(i), { readyPromise: o } = N(), { idx: r, update: s } = se(), c = Z({
|
|
2349
2306
|
lng: a.value[0],
|
|
2350
2307
|
lat: a.value[1],
|
|
2351
2308
|
name: ""
|
|
2352
2309
|
}), d = (l) => {
|
|
2353
2310
|
a.value = l, s();
|
|
2354
|
-
},
|
|
2311
|
+
}, m = (l) => {
|
|
2355
2312
|
c.lng = l.lng, c.lat = l.lat, c.name = l.name;
|
|
2356
2313
|
}, u = async (l) => {
|
|
2357
|
-
const
|
|
2358
|
-
n == null || n({ cityName:
|
|
2314
|
+
const I = new google.maps.Geocoder(), { lng: M, lat: f } = l, { results: y } = await I.geocode({ language: le, location: { lng: M, lat: f } }), p = ht(y[0]), v = y.slice(-2)[0].address_components[0].long_name, L = y.slice(-1)[0].address_components[0].long_name;
|
|
2315
|
+
n == null || n({ cityName: p, cityParentName: v, countryName: L });
|
|
2359
2316
|
};
|
|
2360
2317
|
return T(
|
|
2361
2318
|
() => r.value,
|
|
2362
2319
|
async () => {
|
|
2363
2320
|
await o;
|
|
2364
|
-
const l = new google.maps.Geocoder(), [
|
|
2365
|
-
c.lng =
|
|
2321
|
+
const l = new google.maps.Geocoder(), [I, M] = a.value, { results: f } = await l.geocode({ language: le, location: { lng: I, lat: M } }), y = f[0].formatted_address, p = ht(f[0]), v = f.slice(-2)[0].address_components[0].long_name, L = f.slice(-1)[0].address_components[0].long_name;
|
|
2322
|
+
c.lng = I, c.lat = M, c.name = y, e == null || e({ lng: I, lat: M, name: y }), n == null || n({ cityName: p, cityParentName: v, countryName: L });
|
|
2366
2323
|
}
|
|
2367
|
-
), { place: c, updatePlace: d, setPlace:
|
|
2368
|
-
},
|
|
2369
|
-
const { supplier: e } =
|
|
2370
|
-
return e === "gmap" ?
|
|
2371
|
-
},
|
|
2324
|
+
), { place: c, updatePlace: d, setPlace: m, updateCity: u };
|
|
2325
|
+
}, Yr = (t) => {
|
|
2326
|
+
const { supplier: e } = N();
|
|
2327
|
+
return e === "gmap" ? zn(t) : Rn(t);
|
|
2328
|
+
}, Bo = (t, e) => {
|
|
2372
2329
|
let n = 1 / 0, i = t;
|
|
2373
2330
|
for (const a of e) {
|
|
2374
|
-
const o = AMap.GeometryUtil.distance(
|
|
2331
|
+
const o = AMap.GeometryUtil.distance(P(t), P(a));
|
|
2375
2332
|
o >= n || (i = a, n = o);
|
|
2376
2333
|
}
|
|
2377
2334
|
return { shortestPlace: i, shortestDistance: n };
|
|
2378
|
-
},
|
|
2335
|
+
}, Vo = (t, e) => {
|
|
2379
2336
|
let n = 1 / 0, i = t;
|
|
2380
2337
|
for (const a of e) {
|
|
2381
2338
|
const o = google.maps.geometry.spherical.computeDistanceBetween(t, a);
|
|
2382
2339
|
o >= n || (i = a, n = o);
|
|
2383
2340
|
}
|
|
2384
2341
|
return { shortestPlace: i, shortestDistance: n };
|
|
2385
|
-
},
|
|
2386
|
-
const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: o, onChangePlace: r, onChangeCity: s } = t, c = C(!0), d = C([]), { idx:
|
|
2342
|
+
}, Yo = (t) => {
|
|
2343
|
+
const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: o, onChangePlace: r, onChangeCity: s } = t, c = C(!0), d = C([]), { idx: m, update: u } = se(), { readyPromise: l } = N(), { place: I, updatePlace: M, setPlace: f, updateCity: y } = Rn({
|
|
2387
2344
|
pointRef: e,
|
|
2388
2345
|
onChange: r,
|
|
2389
2346
|
onChangeCity: s
|
|
2390
|
-
}),
|
|
2391
|
-
const
|
|
2347
|
+
}), p = Z({ ...I }), v = w(() => {
|
|
2348
|
+
const S = e.value;
|
|
2392
2349
|
return d.value.some(
|
|
2393
|
-
(D) =>
|
|
2350
|
+
(D) => dn(P(D), S)
|
|
2394
2351
|
);
|
|
2395
|
-
}), L = async (
|
|
2396
|
-
const D = await n({ ...
|
|
2352
|
+
}), L = async (S) => {
|
|
2353
|
+
const D = await n({ ...S }, a);
|
|
2397
2354
|
c.value = D !== void 0, d.value = D != null ? D : [];
|
|
2398
2355
|
};
|
|
2399
2356
|
return T(
|
|
2400
|
-
() =>
|
|
2357
|
+
() => m.value,
|
|
2401
2358
|
async () => {
|
|
2402
2359
|
await l;
|
|
2403
|
-
const
|
|
2404
|
-
if (
|
|
2405
|
-
c.value = !1, d.value = [], Object.assign(
|
|
2360
|
+
const S = await n({ ...I }, a);
|
|
2361
|
+
if (S === void 0) {
|
|
2362
|
+
c.value = !1, d.value = [], Object.assign(p, { ...I }), o == null || o({ ...I });
|
|
2406
2363
|
return;
|
|
2407
2364
|
}
|
|
2408
|
-
const { shortestPlace: D, shortestDistance:
|
|
2409
|
-
c.value = !0, d.value =
|
|
2365
|
+
const { shortestPlace: D, shortestDistance: h } = Bo(I, S), x = i(a), b = h > x ? I : D;
|
|
2366
|
+
c.value = !0, d.value = S, Object.assign(p, { ...b }), o == null || o({ ...b });
|
|
2410
2367
|
}
|
|
2411
2368
|
), {
|
|
2412
|
-
recomendPlace:
|
|
2369
|
+
recomendPlace: p,
|
|
2413
2370
|
placeCandidates: d,
|
|
2414
2371
|
availableRef: c,
|
|
2415
2372
|
isElectedRef: v,
|
|
2416
2373
|
updateRecomandPlace: u,
|
|
2417
2374
|
updatePlaceCandidates: L,
|
|
2418
2375
|
updatePlace: M,
|
|
2419
|
-
setPlace:
|
|
2420
|
-
updateCity:
|
|
2376
|
+
setPlace: f,
|
|
2377
|
+
updateCity: y
|
|
2421
2378
|
};
|
|
2422
|
-
},
|
|
2423
|
-
const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: o, onChangePlace: r, onChangeCity: s } = t, c = C(!0), d = C([]), { idx:
|
|
2379
|
+
}, Ho = (t) => {
|
|
2380
|
+
const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: o, onChangePlace: r, onChangeCity: s } = t, c = C(!0), d = C([]), { idx: m, update: u } = se(), { readyPromise: l } = N(), { place: I, updatePlace: M, setPlace: f, updateCity: y } = zn({
|
|
2424
2381
|
pointRef: e,
|
|
2425
2382
|
onChange: r,
|
|
2426
2383
|
onChangeCity: s
|
|
2427
|
-
}),
|
|
2428
|
-
const
|
|
2384
|
+
}), p = Z({ ...I }), v = w(() => {
|
|
2385
|
+
const S = e.value;
|
|
2429
2386
|
return d.value.some(
|
|
2430
|
-
(D) =>
|
|
2387
|
+
(D) => dn(P(D), S)
|
|
2431
2388
|
);
|
|
2432
|
-
}), L = async (
|
|
2433
|
-
const D = await n({ ...
|
|
2389
|
+
}), L = async (S) => {
|
|
2390
|
+
const D = await n({ ...S }, a);
|
|
2434
2391
|
c.value = D !== void 0, d.value = D != null ? D : [];
|
|
2435
2392
|
};
|
|
2436
2393
|
return T(
|
|
2437
|
-
() =>
|
|
2394
|
+
() => m.value,
|
|
2438
2395
|
async () => {
|
|
2439
2396
|
await l;
|
|
2440
|
-
const
|
|
2441
|
-
if (
|
|
2442
|
-
c.value = !1, d.value = [], Object.assign(
|
|
2397
|
+
const S = await n({ ...I }, a);
|
|
2398
|
+
if (S === void 0) {
|
|
2399
|
+
c.value = !1, d.value = [], Object.assign(p, { ...I }), o == null || o({ ...I });
|
|
2443
2400
|
return;
|
|
2444
2401
|
}
|
|
2445
|
-
const { shortestPlace: D, shortestDistance:
|
|
2446
|
-
c.value = !0, d.value =
|
|
2402
|
+
const { shortestPlace: D, shortestDistance: h } = Vo(I, S), x = i(a), b = h > x ? I : D;
|
|
2403
|
+
c.value = !0, d.value = S, Object.assign(p, { ...b }), o == null || o({ ...b });
|
|
2447
2404
|
}
|
|
2448
2405
|
), {
|
|
2449
|
-
recomendPlace:
|
|
2406
|
+
recomendPlace: p,
|
|
2450
2407
|
placeCandidates: d,
|
|
2451
2408
|
availableRef: c,
|
|
2452
2409
|
isElectedRef: v,
|
|
2453
2410
|
updateRecomandPlace: u,
|
|
2454
2411
|
updatePlaceCandidates: L,
|
|
2455
2412
|
updatePlace: M,
|
|
2456
|
-
setPlace:
|
|
2457
|
-
updateCity:
|
|
2413
|
+
setPlace: f,
|
|
2414
|
+
updateCity: y
|
|
2458
2415
|
};
|
|
2459
|
-
},
|
|
2460
|
-
const { supplier: e } =
|
|
2461
|
-
return e === "gmap" ?
|
|
2462
|
-
},
|
|
2416
|
+
}, Jo = (t) => {
|
|
2417
|
+
const { supplier: e } = N();
|
|
2418
|
+
return e === "gmap" ? Ho(t) : Yo(t);
|
|
2419
|
+
}, On = 13, Qo = (t) => {
|
|
2463
2420
|
var s, c, d;
|
|
2464
|
-
const { onChange: e, mapRef: n, defaultValue: i } = t, a = C((d = (c = (s = n.value) == null ? void 0 : s.getZoom()) != null ? c : i) != null ? d :
|
|
2421
|
+
const { onChange: e, mapRef: n, defaultValue: i } = t, a = C((d = (c = (s = n.value) == null ? void 0 : s.getZoom()) != null ? c : i) != null ? d : On), o = (m) => {
|
|
2465
2422
|
var u;
|
|
2466
|
-
a.value =
|
|
2423
|
+
a.value = m, (u = n.value) == null || u.setZoom(m);
|
|
2467
2424
|
};
|
|
2468
|
-
return te(n, {}, (
|
|
2425
|
+
return te(n, {}, (m, { target: u }) => {
|
|
2469
2426
|
const l = u.getZoom();
|
|
2470
2427
|
a.value = l, e == null || e(l);
|
|
2471
2428
|
}, [
|
|
2472
2429
|
"onZoomEnd"
|
|
2473
2430
|
]), { zoomRef: a, setZoom: o };
|
|
2474
|
-
},
|
|
2431
|
+
}, Fo = (t) => {
|
|
2475
2432
|
var s, c, d;
|
|
2476
|
-
const { onChange: e, mapRef: n, defaultValue: i } = t, a = C((d = (c = (s = n.value) == null ? void 0 : s.getZoom()) != null ? c : i) != null ? d :
|
|
2433
|
+
const { onChange: e, mapRef: n, defaultValue: i } = t, a = C((d = (c = (s = n.value) == null ? void 0 : s.getZoom()) != null ? c : i) != null ? d : On), o = (m) => {
|
|
2477
2434
|
var u;
|
|
2478
|
-
a.value =
|
|
2435
|
+
a.value = m, (u = n.value) == null || u.setZoom(m);
|
|
2479
2436
|
};
|
|
2480
|
-
return
|
|
2437
|
+
return Q(n, {}, (m, { target: u }) => {
|
|
2481
2438
|
const l = u.getZoom();
|
|
2482
2439
|
a.value = l, e == null || e(l);
|
|
2483
2440
|
}, [
|
|
2484
2441
|
"onZoom_change"
|
|
2485
2442
|
]), { zoomRef: a, setZoom: o };
|
|
2486
|
-
},
|
|
2487
|
-
const { supplier: e } =
|
|
2488
|
-
return e === "gmap" ?
|
|
2489
|
-
},
|
|
2443
|
+
}, Xo = (t) => {
|
|
2444
|
+
const { supplier: e } = N();
|
|
2445
|
+
return e === "gmap" ? Fo(t) : Qo(t);
|
|
2446
|
+
}, $o = (t) => {
|
|
2490
2447
|
const { interval: e } = t;
|
|
2491
2448
|
let n;
|
|
2492
2449
|
const i = {
|
|
@@ -2499,20 +2456,20 @@ const mr = j(function(e) {
|
|
|
2499
2456
|
i.resolve = r, n = setTimeout(r, e);
|
|
2500
2457
|
});
|
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ZXIxIi8+PC9maWx0ZXI+PGNpcmNsZSBpZD0icHJlZml4X19iIiBjeD0iMTU3IiBjeT0iMzUyIiByPSIxMCIvPjwvZGVmcz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTQzIC0zMzgpIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjx1c2UgZmlsbD0iIzAwMCIgZmlsdGVyPSJ1cmwoI3ByZWZpeF9fYSkiIHhsaW5rOmhyZWY9IiNwcmVmaXhfX2IiLz48Y2lyY2xlIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyLjQiIHN0cm9rZS1saW5lam9pbj0ic3F1YXJlIiBmaWxsPSIjNDg3MUYxIiBjeD0iMTU3IiBjeT0iMzUyIiByPSI4LjgiLz48L2c+PC9zdmc+";
|
|
2460
|
+
var Wn = re({ defaultClassName: "_1l6offo0", variantClassNames: { size: { small: "_1l6offo1", large: "_1l6offo2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
2461
|
+
const _o = j(function(e) {
|
|
2505
2462
|
const n = w(() => {
|
|
2506
2463
|
const {
|
|
2507
2464
|
size: i = "large"
|
|
2508
2465
|
} = e;
|
|
2509
2466
|
return `
|
|
2510
|
-
<img src="${i === "large" ?
|
|
2467
|
+
<img src="${i === "large" ? Gn : kn}" class="${Wn({
|
|
2511
2468
|
size: i
|
|
2512
2469
|
})}">
|
|
2513
2470
|
`;
|
|
2514
2471
|
});
|
|
2515
|
-
return () => g(
|
|
2472
|
+
return () => g(B, {
|
|
2516
2473
|
attrs: {
|
|
2517
2474
|
position: e.position,
|
|
2518
2475
|
content: n.value,
|
|
@@ -2520,31 +2477,31 @@ const Tr = j(function(e) {
|
|
|
2520
2477
|
registerOverlay: e.registerOverlay
|
|
2521
2478
|
}
|
|
2522
2479
|
});
|
|
2523
|
-
}),
|
|
2480
|
+
}), Ko = j(function(e) {
|
|
2524
2481
|
const n = w(() => {
|
|
2525
2482
|
const {
|
|
2526
2483
|
size: i = "large"
|
|
2527
|
-
} = e, a = i === "large" ?
|
|
2528
|
-
return
|
|
2529
|
-
class:
|
|
2484
|
+
} = e, a = i === "large" ? Gn : kn;
|
|
2485
|
+
return G("img", {
|
|
2486
|
+
class: Wn({
|
|
2530
2487
|
size: i
|
|
2531
2488
|
}),
|
|
2532
2489
|
src: a
|
|
2533
2490
|
});
|
|
2534
2491
|
});
|
|
2535
|
-
return () => g(
|
|
2492
|
+
return () => g(V, {
|
|
2536
2493
|
attrs: {
|
|
2537
|
-
position:
|
|
2494
|
+
position: E(e.position),
|
|
2538
2495
|
content: n.value,
|
|
2539
2496
|
registerOverlay: e.registerOverlay
|
|
2540
2497
|
}
|
|
2541
2498
|
});
|
|
2542
2499
|
}), Be = j(function(e) {
|
|
2543
|
-
const n =
|
|
2544
|
-
return () => k(n.supplier === "gmap" ?
|
|
2500
|
+
const n = N();
|
|
2501
|
+
return () => k(n.supplier === "gmap" ? Ko : _o, {
|
|
2545
2502
|
attrs: e
|
|
2546
2503
|
});
|
|
2547
|
-
}),
|
|
2504
|
+
}), Re = j(function(e) {
|
|
2548
2505
|
return () => {
|
|
2549
2506
|
const {
|
|
2550
2507
|
position: n,
|
|
@@ -2562,64 +2519,64 @@ const Tr = j(function(e) {
|
|
|
2562
2519
|
size: "small",
|
|
2563
2520
|
registerOverlay: a
|
|
2564
2521
|
}
|
|
2565
|
-
}), g(
|
|
2522
|
+
}), g(_e, {
|
|
2566
2523
|
attrs: {
|
|
2567
2524
|
registerOverlay: a,
|
|
2568
2525
|
fitViewKey: JSON.stringify(n)
|
|
2569
2526
|
}
|
|
2570
2527
|
})]) : null;
|
|
2571
2528
|
};
|
|
2572
|
-
}),
|
|
2573
|
-
const t =
|
|
2529
|
+
}), qo = () => {
|
|
2530
|
+
const t = Ie();
|
|
2574
2531
|
return { apiMapLngLatToVw: (n) => {
|
|
2575
2532
|
var i;
|
|
2576
2533
|
return (i = t == null ? void 0 : t.value) == null ? void 0 : i.lngLatToContainer(n).toArray();
|
|
2577
2534
|
} };
|
|
2578
|
-
},
|
|
2579
|
-
const t =
|
|
2535
|
+
}, er = () => {
|
|
2536
|
+
const t = Me();
|
|
2580
2537
|
return { apiMapLngLatToVw: (n) => {
|
|
2581
|
-
var u, l,
|
|
2582
|
-
const [i, a] = n, o = (u = t == null ? void 0 : t.value) == null ? void 0 : u.getProjection(), r = o == null ? void 0 : o.fromLatLngToPoint({ lng: i, lat: a }), s = (l = r == null ? void 0 : r.x) != null ? l : 0, c = (
|
|
2583
|
-
return [s *
|
|
2538
|
+
var u, l, I, M, f;
|
|
2539
|
+
const [i, a] = n, o = (u = t == null ? void 0 : t.value) == null ? void 0 : u.getProjection(), r = o == null ? void 0 : o.fromLatLngToPoint({ lng: i, lat: a }), s = (l = r == null ? void 0 : r.x) != null ? l : 0, c = (I = r == null ? void 0 : r.y) != null ? I : 0, m = 2 ** ((f = (M = t == null ? void 0 : t.value) == null ? void 0 : M.getZoom()) != null ? f : 0);
|
|
2540
|
+
return [s * m, c * m];
|
|
2584
2541
|
} };
|
|
2585
|
-
},
|
|
2586
|
-
const { supplier: t } =
|
|
2587
|
-
return t === "gmap" ?
|
|
2588
|
-
},
|
|
2589
|
-
const { widthLimit: e, heightLimit: n } = t, { apiMapLngLatToVw: i } =
|
|
2590
|
-
const c = 100 / window.innerWidth, [d,
|
|
2591
|
-
return [(u - d) * c, (l -
|
|
2542
|
+
}, tr = () => {
|
|
2543
|
+
const { supplier: t } = N();
|
|
2544
|
+
return t === "gmap" ? er() : qo();
|
|
2545
|
+
}, Pt = (t) => t === "left" ? "right" : "left", nr = (t) => {
|
|
2546
|
+
const { widthLimit: e, heightLimit: n } = t, { apiMapLngLatToVw: i } = tr(), a = (r, s) => {
|
|
2547
|
+
const c = 100 / window.innerWidth, [d, m] = i(r), [u, l] = i(s);
|
|
2548
|
+
return [(u - d) * c, (l - m) * c];
|
|
2592
2549
|
}, o = C(Array(t.places.length).fill("right"));
|
|
2593
|
-
return
|
|
2594
|
-
() => t.places.map(
|
|
2550
|
+
return qa(
|
|
2551
|
+
() => t.places.map(P),
|
|
2595
2552
|
(r) => {
|
|
2596
|
-
const s = r.map((l,
|
|
2597
|
-
({ point: [, l] }, { point: [,
|
|
2553
|
+
const s = r.map((l, I) => ({ point: l, index: I })).sort(
|
|
2554
|
+
({ point: [, l] }, { point: [, I] }) => l < I ? 1 : l > I ? -1 : 0
|
|
2598
2555
|
), c = r.length, d = Array(c);
|
|
2599
|
-
let
|
|
2556
|
+
let m = "right", u = !1;
|
|
2600
2557
|
for (let l = 0; l < c; l++) {
|
|
2601
|
-
const { index:
|
|
2558
|
+
const { index: I } = s[l];
|
|
2602
2559
|
if (l === c - 1) {
|
|
2603
|
-
d[
|
|
2560
|
+
d[I] = u ? Pt(m) : "right";
|
|
2604
2561
|
continue;
|
|
2605
2562
|
}
|
|
2606
2563
|
if (l === 0) {
|
|
2607
|
-
const [
|
|
2608
|
-
u =
|
|
2609
|
-
const L = u &&
|
|
2610
|
-
d[
|
|
2564
|
+
const [p, v] = a(s[l].point, s[l + 1].point);
|
|
2565
|
+
u = p > -e && p < e && v > -n && v < n;
|
|
2566
|
+
const L = u && p > 0 ? "left" : "right";
|
|
2567
|
+
d[I] = L, m = L;
|
|
2611
2568
|
continue;
|
|
2612
2569
|
}
|
|
2613
|
-
const [M,
|
|
2614
|
-
d[
|
|
2570
|
+
const [M, f] = a(s[l].point, s[l + 1].point), y = u ? Pt(m) : "right";
|
|
2571
|
+
d[I] = y, m = y, u = M > -e && M < e && f > -n && f < n;
|
|
2615
2572
|
}
|
|
2616
2573
|
o.value = d;
|
|
2617
2574
|
}
|
|
2618
2575
|
), o;
|
|
2619
2576
|
};
|
|
2620
2577
|
var Ve = /* @__PURE__ */ ((t) => (t.topLeft = "top-left", t.topCenter = "top-center", t.topRight = "top-right", t.middleLeft = "middle-left", t.center = "center", t.middleRight = "middle-right", t.bottomLeft = "bottom-left", t.bottomCenter = "bottom-center", t.bottomRight = "bottom-right", t))(Ve || {});
|
|
2621
|
-
var
|
|
2622
|
-
const
|
|
2578
|
+
var xt = re({ defaultClassName: "", variantClassNames: { textAlign: { left: "fhyw83", right: "fhyw84" } }, defaultVariants: {}, compoundVariants: [] }), bt = re({ defaultClassName: "fhyw85", variantClassNames: { textAlign: { left: "fhyw86", right: "fhyw87" } }, defaultVariants: {}, compoundVariants: [] }), Un = "fhyw8b", Bn = re({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] }), he = re({ defaultClassName: "fhyw88", variantClassNames: { hideIcon: { true: "fhyw89", false: "fhyw8a" } }, defaultVariants: {}, compoundVariants: [] });
|
|
2579
|
+
const ir = j(function(e, {
|
|
2623
2580
|
emit: n
|
|
2624
2581
|
}) {
|
|
2625
2582
|
const i = w(() => {
|
|
@@ -2630,30 +2587,30 @@ const kr = j(function(e, {
|
|
|
2630
2587
|
hideIcon: s = !1
|
|
2631
2588
|
} = e;
|
|
2632
2589
|
return `
|
|
2633
|
-
<div class="${
|
|
2590
|
+
<div class="${Bn({
|
|
2634
2591
|
textAlign: i.value
|
|
2635
2592
|
})}">
|
|
2636
|
-
<img class="${
|
|
2593
|
+
<img class="${he({
|
|
2637
2594
|
hideIcon: s
|
|
2638
|
-
})} ${
|
|
2595
|
+
})} ${xt({
|
|
2639
2596
|
textAlign: i.value
|
|
2640
|
-
})}" src="${
|
|
2641
|
-
<div class="${
|
|
2597
|
+
})}" src="${ee}">
|
|
2598
|
+
<div class="${Un}">${e.label}</div>
|
|
2642
2599
|
</div>
|
|
2643
2600
|
`;
|
|
2644
2601
|
}), o = w(() => {
|
|
2645
2602
|
const {
|
|
2646
2603
|
hideIcon: s = !1
|
|
2647
2604
|
} = e;
|
|
2648
|
-
return `<img class="${
|
|
2605
|
+
return `<img class="${he({
|
|
2649
2606
|
hideIcon: s
|
|
2650
|
-
})} ${
|
|
2607
|
+
})} ${xt({
|
|
2651
2608
|
textAlign: i.value
|
|
2652
|
-
})}" src="${
|
|
2609
|
+
})}" src="${ee}">`;
|
|
2653
2610
|
}), r = () => {
|
|
2654
2611
|
n("click", e.position);
|
|
2655
2612
|
};
|
|
2656
|
-
return () => g(
|
|
2613
|
+
return () => g(B, {
|
|
2657
2614
|
attrs: {
|
|
2658
2615
|
position: e.position,
|
|
2659
2616
|
content: e.label ? a.value : o.value,
|
|
@@ -2663,7 +2620,7 @@ const kr = j(function(e, {
|
|
|
2663
2620
|
click: r
|
|
2664
2621
|
}
|
|
2665
2622
|
});
|
|
2666
|
-
}),
|
|
2623
|
+
}), ar = j(function(e, {
|
|
2667
2624
|
emit: n
|
|
2668
2625
|
}) {
|
|
2669
2626
|
const i = w(() => {
|
|
@@ -2673,67 +2630,67 @@ const kr = j(function(e, {
|
|
|
2673
2630
|
const {
|
|
2674
2631
|
hideIcon: s = !1
|
|
2675
2632
|
} = e;
|
|
2676
|
-
return
|
|
2677
|
-
class: `${
|
|
2633
|
+
return G("div", {
|
|
2634
|
+
class: `${Bn({
|
|
2678
2635
|
textAlign: i.value
|
|
2679
|
-
})} ${
|
|
2636
|
+
})} ${bt({
|
|
2680
2637
|
textAlign: i.value
|
|
2681
2638
|
})}`
|
|
2682
2639
|
}, `
|
|
2683
|
-
<img class="${
|
|
2640
|
+
<img class="${he({
|
|
2684
2641
|
hideIcon: s
|
|
2685
|
-
})}" src="${
|
|
2686
|
-
<div class="${
|
|
2642
|
+
})}" src="${ee}">
|
|
2643
|
+
<div class="${Un}">${e.label}</div>
|
|
2687
2644
|
`);
|
|
2688
2645
|
}), o = w(() => {
|
|
2689
2646
|
const {
|
|
2690
2647
|
hideIcon: s = !1
|
|
2691
2648
|
} = e;
|
|
2692
|
-
return
|
|
2693
|
-
class: `${
|
|
2649
|
+
return G("img", {
|
|
2650
|
+
class: `${he({
|
|
2694
2651
|
hideIcon: s
|
|
2695
|
-
})} ${
|
|
2652
|
+
})} ${bt({
|
|
2696
2653
|
textAlign: i.value
|
|
2697
2654
|
})}`,
|
|
2698
|
-
src:
|
|
2655
|
+
src: ee
|
|
2699
2656
|
});
|
|
2700
2657
|
}), r = () => {
|
|
2701
2658
|
n("click", e.position);
|
|
2702
2659
|
};
|
|
2703
|
-
return () => g(
|
|
2660
|
+
return () => g(V, {
|
|
2704
2661
|
attrs: {
|
|
2705
|
-
position:
|
|
2662
|
+
position: E(e.position),
|
|
2706
2663
|
content: e.label ? a.value : o.value
|
|
2707
2664
|
},
|
|
2708
2665
|
on: {
|
|
2709
2666
|
click: r
|
|
2710
2667
|
}
|
|
2711
2668
|
});
|
|
2712
|
-
}),
|
|
2669
|
+
}), O = j(function(e, {
|
|
2713
2670
|
emit: n
|
|
2714
2671
|
}) {
|
|
2715
|
-
const i =
|
|
2716
|
-
return () => k(i.supplier === "gmap" ?
|
|
2672
|
+
const i = N();
|
|
2673
|
+
return () => k(i.supplier === "gmap" ? ar : ir, {
|
|
2717
2674
|
attrs: e,
|
|
2718
2675
|
on: {
|
|
2719
2676
|
click: (a) => n("click", a)
|
|
2720
2677
|
}
|
|
2721
2678
|
});
|
|
2722
|
-
}),
|
|
2679
|
+
}), or = j(function(e, {
|
|
2723
2680
|
emit: n
|
|
2724
2681
|
}) {
|
|
2725
2682
|
const {
|
|
2726
2683
|
renderLabel: i
|
|
2727
|
-
} = e, a =
|
|
2728
|
-
places:
|
|
2684
|
+
} = e, a = nr(Z({
|
|
2685
|
+
places: ei(e, "places"),
|
|
2729
2686
|
heightLimit: 9,
|
|
2730
2687
|
widthLimit: 32
|
|
2731
2688
|
}));
|
|
2732
2689
|
return () => g("div", [e.places.map((o, r) => {
|
|
2733
2690
|
const s = a.value[r], c = i ? i(o) : o.name;
|
|
2734
|
-
return g(
|
|
2691
|
+
return g(O, {
|
|
2735
2692
|
attrs: {
|
|
2736
|
-
position:
|
|
2693
|
+
position: P(o),
|
|
2737
2694
|
label: c,
|
|
2738
2695
|
textAlign: s
|
|
2739
2696
|
},
|
|
@@ -2742,173 +2699,181 @@ const kr = j(function(e, {
|
|
|
2742
2699
|
}
|
|
2743
2700
|
});
|
|
2744
2701
|
})]);
|
|
2745
|
-
}),
|
|
2702
|
+
}), rr = () => {
|
|
2703
|
+
const t = C(!0);
|
|
2704
|
+
return { isFirstWorkflowRecomendLoadingRef: t, completeFirstWorkflowRecomend: () => {
|
|
2705
|
+
t.value && (t.value = !1);
|
|
2706
|
+
} };
|
|
2707
|
+
}, sr = 10, cr = 100, ur = 500, lr = 13, dr = "当前位置", gr = 8, Ge = 17, Hr = me(function(e, {
|
|
2746
2708
|
emit: n
|
|
2747
2709
|
}) {
|
|
2748
|
-
var
|
|
2710
|
+
var ot, rt;
|
|
2749
2711
|
const {
|
|
2750
2712
|
geoDefaultPosition: i,
|
|
2751
2713
|
getRecomendPlace: a,
|
|
2752
2714
|
getDefaultCenterPlace: o,
|
|
2753
2715
|
mapContext: r
|
|
2754
|
-
} = e, {
|
|
2755
|
-
mapRef:
|
|
2756
|
-
setMap:
|
|
2716
|
+
} = e, s = _a(a), {
|
|
2717
|
+
mapRef: c,
|
|
2718
|
+
setMap: d
|
|
2757
2719
|
} = Ee(), {
|
|
2758
|
-
readyPromise:
|
|
2759
|
-
} =
|
|
2760
|
-
zoomRef:
|
|
2761
|
-
setZoom:
|
|
2762
|
-
} =
|
|
2763
|
-
mapRef:
|
|
2764
|
-
defaultValue:
|
|
2720
|
+
readyPromise: m
|
|
2721
|
+
} = N(), {
|
|
2722
|
+
zoomRef: u,
|
|
2723
|
+
setZoom: l
|
|
2724
|
+
} = Xo({
|
|
2725
|
+
mapRef: c,
|
|
2726
|
+
defaultValue: gr
|
|
2727
|
+
}), {
|
|
2728
|
+
timerStart: I,
|
|
2729
|
+
timerStop: M
|
|
2730
|
+
} = $o({
|
|
2731
|
+
interval: ur
|
|
2765
2732
|
}), {
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
} =
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
lng: (rt = i == null ? void 0 : i[0]) != null ? rt : 0,
|
|
2772
|
-
lat: (st = i == null ? void 0 : i[1]) != null ? st : 0,
|
|
2733
|
+
isFirstWorkflowRecomendLoadingRef: f,
|
|
2734
|
+
completeFirstWorkflowRecomend: y
|
|
2735
|
+
} = rr(), p = Z({
|
|
2736
|
+
lng: (ot = i == null ? void 0 : i[0]) != null ? ot : 0,
|
|
2737
|
+
lat: (rt = i == null ? void 0 : i[1]) != null ? rt : 0,
|
|
2773
2738
|
name: ""
|
|
2774
|
-
}),
|
|
2739
|
+
}), v = w(() => [p.lng, p.lat]), L = {
|
|
2775
2740
|
source: "geo"
|
|
2776
|
-
},
|
|
2777
|
-
|
|
2778
|
-
},
|
|
2779
|
-
|
|
2780
|
-
},
|
|
2781
|
-
|
|
2782
|
-
},
|
|
2783
|
-
o().then(
|
|
2741
|
+
}, S = (A) => {
|
|
2742
|
+
L.source = "api", ve(A);
|
|
2743
|
+
}, D = (A) => {
|
|
2744
|
+
L.source = "api", p.lng = A.lng, p.lat = A.lat, p.name = A.name, Oe(l)(Ge), $n(A), Kn(A);
|
|
2745
|
+
}, h = (A) => {
|
|
2746
|
+
L.source = "api", p.lng = A.lng, p.lat = A.lat, p.name = A.name;
|
|
2747
|
+
}, x = new Promise((A) => {
|
|
2748
|
+
o().then(A).catch(() => A(void 0));
|
|
2784
2749
|
}), {
|
|
2785
|
-
geoPosition:
|
|
2786
|
-
geoError:
|
|
2787
|
-
geoLoading:
|
|
2788
|
-
} =
|
|
2750
|
+
geoPosition: b,
|
|
2751
|
+
geoError: U,
|
|
2752
|
+
geoLoading: tt
|
|
2753
|
+
} = Te({
|
|
2789
2754
|
geoDefaultPosition: i,
|
|
2790
|
-
onLoad: async (
|
|
2791
|
-
await
|
|
2755
|
+
onLoad: async (A) => {
|
|
2756
|
+
await m, L.source = "geo", ve(A.position), n("loadGeoLocation", A);
|
|
2792
2757
|
},
|
|
2793
|
-
onLoadDefault: async (
|
|
2794
|
-
await
|
|
2795
|
-
const
|
|
2796
|
-
|
|
2758
|
+
onLoadDefault: async (A) => {
|
|
2759
|
+
await m;
|
|
2760
|
+
const H = await x;
|
|
2761
|
+
L.source = "geo", n("loadDefaultGeoLocation", A), H ? D(H) : (ve(A.position), await Oe(l)(Ge)), y();
|
|
2797
2762
|
},
|
|
2798
|
-
onChange: (
|
|
2799
|
-
onError: (
|
|
2763
|
+
onChange: (A) => n("changeGeoLocation", A),
|
|
2764
|
+
onError: (A) => n("geoError", A)
|
|
2800
2765
|
});
|
|
2801
|
-
r.setCenterPlaceByUserSpecified =
|
|
2766
|
+
r.setCenterPlaceByUserSpecified = D, r.panToGeoPositionByRecomend = () => U.value ? !1 : (S(b.value), !0);
|
|
2802
2767
|
const {
|
|
2803
|
-
isDragging:
|
|
2804
|
-
} =
|
|
2805
|
-
mapRef:
|
|
2806
|
-
onChange: (
|
|
2807
|
-
|
|
2768
|
+
isDragging: Xn
|
|
2769
|
+
} = Uo({
|
|
2770
|
+
mapRef: c,
|
|
2771
|
+
onChange: (A) => {
|
|
2772
|
+
L.source = "drag", I(), ve(A), n("changeByDrag", A);
|
|
2808
2773
|
}
|
|
2809
2774
|
}), {
|
|
2810
|
-
updatePlace:
|
|
2811
|
-
updateCity:
|
|
2812
|
-
updateRecomandPlace:
|
|
2813
|
-
updatePlaceCandidates:
|
|
2814
|
-
placeCandidates:
|
|
2815
|
-
availableRef:
|
|
2816
|
-
isElectedRef:
|
|
2817
|
-
} =
|
|
2818
|
-
pointRef:
|
|
2819
|
-
context:
|
|
2820
|
-
getRecomendPlace:
|
|
2821
|
-
getLimit: (
|
|
2822
|
-
const
|
|
2823
|
-
switch (
|
|
2775
|
+
updatePlace: ve,
|
|
2776
|
+
updateCity: $n,
|
|
2777
|
+
updateRecomandPlace: _n,
|
|
2778
|
+
updatePlaceCandidates: Kn,
|
|
2779
|
+
placeCandidates: nt,
|
|
2780
|
+
availableRef: it,
|
|
2781
|
+
isElectedRef: at
|
|
2782
|
+
} = Jo({
|
|
2783
|
+
pointRef: v,
|
|
2784
|
+
context: L,
|
|
2785
|
+
getRecomendPlace: s,
|
|
2786
|
+
getLimit: (A) => {
|
|
2787
|
+
const H = A == null ? void 0 : A.source;
|
|
2788
|
+
switch (H) {
|
|
2824
2789
|
case "drag":
|
|
2825
|
-
return
|
|
2790
|
+
return sr;
|
|
2826
2791
|
case "api":
|
|
2827
2792
|
case "geo":
|
|
2828
2793
|
case "default":
|
|
2829
|
-
return
|
|
2794
|
+
return cr;
|
|
2830
2795
|
default:
|
|
2831
|
-
throw new Error(`MyError: should not call getLimit on source: ${
|
|
2796
|
+
throw new Error(`MyError: should not call getLimit on source: ${H}`);
|
|
2832
2797
|
}
|
|
2833
2798
|
},
|
|
2834
|
-
onChangePlace: (
|
|
2835
|
-
|
|
2799
|
+
onChangePlace: (A) => {
|
|
2800
|
+
L.source !== "recomend" && _n(), n("changePlace", A);
|
|
2836
2801
|
},
|
|
2837
|
-
onChange: async (
|
|
2838
|
-
await
|
|
2839
|
-
...
|
|
2840
|
-
}),
|
|
2802
|
+
onChange: async (A) => {
|
|
2803
|
+
await M.promise, L.source = "recomend", Object.assign(p, {
|
|
2804
|
+
...A
|
|
2805
|
+
}), n("changeRecomandPlace", A), await Oe(l)(Ge), y();
|
|
2841
2806
|
},
|
|
2842
|
-
onChangeCity: (
|
|
2843
|
-
n("changeCity",
|
|
2807
|
+
onChangeCity: (A) => {
|
|
2808
|
+
n("changeCity", A);
|
|
2844
2809
|
}
|
|
2845
2810
|
});
|
|
2846
|
-
return
|
|
2811
|
+
return ke(() => {
|
|
2847
2812
|
r.onChangeCenterPlace({
|
|
2848
|
-
...
|
|
2813
|
+
...p
|
|
2849
2814
|
});
|
|
2850
|
-
}),
|
|
2851
|
-
r.onChangeRecomendPlaces([...
|
|
2815
|
+
}), ke(() => {
|
|
2816
|
+
r.onChangeRecomendPlaces([...nt.value]);
|
|
2852
2817
|
}), () => {
|
|
2853
|
-
const
|
|
2854
|
-
return g(
|
|
2818
|
+
const A = it.value ? at.value ? p.name : dr : e.unavailableTitle, H = it.value ? at.value ? e.recomendDescription : e.noRecomendDescription : void 0;
|
|
2819
|
+
return g(be, {
|
|
2855
2820
|
attrs: {
|
|
2856
|
-
center:
|
|
2857
|
-
zoom:
|
|
2858
|
-
mapRef:
|
|
2821
|
+
center: v.value,
|
|
2822
|
+
zoom: u.value,
|
|
2823
|
+
mapRef: d
|
|
2859
2824
|
}
|
|
2860
|
-
}, [!
|
|
2825
|
+
}, [!tt.value && !U.value && g(Be, {
|
|
2861
2826
|
attrs: {
|
|
2862
|
-
position:
|
|
2827
|
+
position: b.value
|
|
2863
2828
|
}
|
|
2864
|
-
}),
|
|
2829
|
+
}), u.value >= lr && g(or, {
|
|
2865
2830
|
attrs: {
|
|
2866
|
-
places:
|
|
2867
|
-
renderLabel: (
|
|
2831
|
+
places: nt.value,
|
|
2832
|
+
renderLabel: (st) => Ka(st, p) ? void 0 : st.name
|
|
2868
2833
|
},
|
|
2869
2834
|
on: {
|
|
2870
|
-
click:
|
|
2835
|
+
click: h
|
|
2871
2836
|
}
|
|
2872
|
-
}),
|
|
2837
|
+
}), tt.value || f.value ? null : g(Ea, {
|
|
2873
2838
|
attrs: {
|
|
2874
|
-
title:
|
|
2875
|
-
description:
|
|
2876
|
-
type:
|
|
2839
|
+
title: A,
|
|
2840
|
+
description: H,
|
|
2841
|
+
type: Xn.value ? "locator" : "box"
|
|
2877
2842
|
},
|
|
2878
2843
|
on: {
|
|
2879
2844
|
click: () => n("clickLocator")
|
|
2880
2845
|
}
|
|
2881
2846
|
})]);
|
|
2882
2847
|
};
|
|
2883
|
-
}).props(["log", "geoLoadingTitle", "unavailableTitle", "recomendDescription", "noRecomendDescription", "fallback", "geoDefaultPosition", "getRecomendPlace", "getDefaultCenterPlace", "loading", "mapContext"]),
|
|
2884
|
-
const t =
|
|
2848
|
+
}).props(["log", "geoLoadingTitle", "unavailableTitle", "recomendDescription", "noRecomendDescription", "fallback", "geoDefaultPosition", "getRecomendPlace", "getDefaultCenterPlace", "loading", "mapContext"]), mr = [116.2317, 39.5427], Zt = (t) => t.lng !== void 0 && t.lat !== void 0, Ir = () => {
|
|
2849
|
+
const t = N();
|
|
2885
2850
|
return { apiMapDistance: (n, i) => {
|
|
2886
|
-
if (t.status ===
|
|
2851
|
+
if (t.status === de.SUCCESS)
|
|
2887
2852
|
return AMap.GeometryUtil.distance(n, i);
|
|
2888
2853
|
} };
|
|
2889
|
-
},
|
|
2890
|
-
const t =
|
|
2854
|
+
}, Mr = () => {
|
|
2855
|
+
const t = N();
|
|
2891
2856
|
return { apiMapDistance: (n, i) => {
|
|
2892
|
-
if (t.status ===
|
|
2893
|
-
return google.maps.geometry.spherical.computeDistanceBetween(
|
|
2857
|
+
if (t.status === de.SUCCESS)
|
|
2858
|
+
return google.maps.geometry.spherical.computeDistanceBetween(E(n), E(i));
|
|
2894
2859
|
} };
|
|
2895
2860
|
}, X = () => {
|
|
2896
|
-
const { supplier: t } =
|
|
2897
|
-
return t === "gmap" ?
|
|
2898
|
-
},
|
|
2899
|
-
var
|
|
2900
|
-
const
|
|
2861
|
+
const { supplier: t } = N();
|
|
2862
|
+
return t === "gmap" ? Mr() : Ir();
|
|
2863
|
+
}, De = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0zNC4wODcgMTAuOTZjMCAyLjM2OS0uMDU0IDIuOTgtLjc4MiAzLjcwNC0uNzkzLjc5LTUuMjM2LjgzMy01LjIzNi44MzNsLTQuMTE2LjE5Mi05Ljg5Ni0uMTQ0cy03Ljc5LS4wMjYtOS4xMzEtLjAyNmMtMS4zNDIgMC0yLjQwNi0uODQ3LTIuNDA2LS44NDdDLjE0IDEyLjkzMiAwIDExLjA5IDAgMTEuMDlWNS44NnMuMTQtMS44NDIgMi41Mi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TYuMjc0LTEuNTEzLjI3OC0zIC41NC00LjkxMi41NC0xLjg0NyAwLTMuMjg5LS4yNS00Ljc1LS41MTF2LS4wMDhjLjAzLS4xMzEuMDU1LS4yMzMuMDYtLjI5LjIxOC0xLjc0NC4zOC0yLjE3My4yMzMtNS4wNTN6IiBmaWxsPSIjRjJGQUZGIi8+PHBhdGggZD0iTTEyLjA2NyAxOS43MTZsLTQuNjQ1LjY5MmMtLjQzMS0yLjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";
|
|
2864
|
+
var we = "_65j3sr1", Vn = "_4a4ovk5", Yn = "_4a4ovk0", Hn = "_4a4ovk2";
|
|
2865
|
+
const fr = j(function(e) {
|
|
2901
2866
|
const n = w(() => {
|
|
2902
2867
|
var o;
|
|
2903
|
-
const i = e.title ?
|
|
2868
|
+
const i = e.title ? xe(e.title).map((r) => r.type === "normal" ? r.value : `<span class="${Vn}">${r.value}</span>`).join("") : "", a = `transform:rotate(${(o = e.angle) != null ? o : 0}deg)`;
|
|
2904
2869
|
return e.title ? `
|
|
2905
|
-
<div class="${
|
|
2906
|
-
<div class="${
|
|
2907
|
-
<img src="${
|
|
2870
|
+
<div class="${Yn}">
|
|
2871
|
+
<div class="${Hn}">${i}</div>
|
|
2872
|
+
<img src="${De}" class="${we}" style="${a}">
|
|
2908
2873
|
</div>
|
|
2909
|
-
` : `<img src="${
|
|
2874
|
+
` : `<img src="${De}" class="${we}" style="${a}">`;
|
|
2910
2875
|
});
|
|
2911
|
-
return () => g(
|
|
2876
|
+
return () => g(B, {
|
|
2912
2877
|
attrs: {
|
|
2913
2878
|
position: e.position,
|
|
2914
2879
|
content: n.value,
|
|
@@ -2916,34 +2881,34 @@ const Kr = j(function(e) {
|
|
|
2916
2881
|
registerOverlay: e.registerOverlay
|
|
2917
2882
|
}
|
|
2918
2883
|
});
|
|
2919
|
-
}),
|
|
2884
|
+
}), pr = j(function(e) {
|
|
2920
2885
|
const n = w(() => {
|
|
2921
2886
|
var o;
|
|
2922
|
-
const i = e.title ?
|
|
2923
|
-
return e.title ?
|
|
2924
|
-
class:
|
|
2887
|
+
const i = e.title ? xe(e.title).map((r) => r.type === "normal" ? r.value : `<span class="${Vn}">${r.value}</span>`).join("") : "", a = `transform:rotate(${(o = e.angle) != null ? o : 0}deg)`;
|
|
2888
|
+
return e.title ? G("div", {
|
|
2889
|
+
class: Yn
|
|
2925
2890
|
}, `
|
|
2926
|
-
<div class="${
|
|
2927
|
-
<img src="${
|
|
2928
|
-
`) :
|
|
2929
|
-
class:
|
|
2930
|
-
src:
|
|
2891
|
+
<div class="${Hn}">${i}</div>
|
|
2892
|
+
<img src="${De}" class="${we}" style="${a}">
|
|
2893
|
+
`) : G("img", {
|
|
2894
|
+
class: we,
|
|
2895
|
+
src: De,
|
|
2931
2896
|
style: a
|
|
2932
2897
|
});
|
|
2933
2898
|
});
|
|
2934
|
-
return () => g(
|
|
2899
|
+
return () => g(V, {
|
|
2935
2900
|
attrs: {
|
|
2936
|
-
position:
|
|
2901
|
+
position: E(e.position),
|
|
2937
2902
|
content: n.value,
|
|
2938
2903
|
registerOverlay: e.registerOverlay
|
|
2939
2904
|
}
|
|
2940
2905
|
});
|
|
2941
|
-
}),
|
|
2942
|
-
const n =
|
|
2943
|
-
return () => k(n.supplier === "gmap" ?
|
|
2906
|
+
}), Ke = j(function(e) {
|
|
2907
|
+
const n = N();
|
|
2908
|
+
return () => k(n.supplier === "gmap" ? pr : fr, {
|
|
2944
2909
|
attrs: e
|
|
2945
2910
|
});
|
|
2946
|
-
}),
|
|
2911
|
+
}), vr = j(function(e) {
|
|
2947
2912
|
return () => {
|
|
2948
2913
|
const {
|
|
2949
2914
|
path: n
|
|
@@ -2951,7 +2916,7 @@ const Kr = j(function(e) {
|
|
|
2951
2916
|
if (n.length === 0)
|
|
2952
2917
|
return null;
|
|
2953
2918
|
const a = 2 * (window.innerWidth * 0.01);
|
|
2954
|
-
return g(
|
|
2919
|
+
return g(ue, {
|
|
2955
2920
|
attrs: {
|
|
2956
2921
|
path: n,
|
|
2957
2922
|
strokeWeight: a,
|
|
@@ -2964,14 +2929,14 @@ const Kr = j(function(e) {
|
|
|
2964
2929
|
}
|
|
2965
2930
|
});
|
|
2966
2931
|
};
|
|
2967
|
-
}),
|
|
2968
|
-
const n = w(() => e.path.map(
|
|
2932
|
+
}), yr = j(function(e) {
|
|
2933
|
+
const n = w(() => e.path.map(E));
|
|
2969
2934
|
return () => {
|
|
2970
2935
|
const i = n.value;
|
|
2971
2936
|
if (i.length === 0)
|
|
2972
2937
|
return null;
|
|
2973
2938
|
const o = 2 * (window.innerWidth * 0.01), r = o / 4;
|
|
2974
|
-
return g(
|
|
2939
|
+
return g(je, {
|
|
2975
2940
|
attrs: {
|
|
2976
2941
|
path: i,
|
|
2977
2942
|
strokeWeight: o,
|
|
@@ -2997,13 +2962,13 @@ const Kr = j(function(e) {
|
|
|
2997
2962
|
}
|
|
2998
2963
|
});
|
|
2999
2964
|
};
|
|
3000
|
-
}),
|
|
3001
|
-
const n =
|
|
3002
|
-
return () => k(n.supplier === "gmap" ?
|
|
2965
|
+
}), qe = j(function(e) {
|
|
2966
|
+
const n = N();
|
|
2967
|
+
return () => k(n.supplier === "gmap" ? yr : vr, {
|
|
3003
2968
|
attrs: e
|
|
3004
2969
|
});
|
|
3005
|
-
}),
|
|
3006
|
-
const e =
|
|
2970
|
+
}), Jn = (t) => {
|
|
2971
|
+
const e = R([]), n = new AMap.Walking({});
|
|
3007
2972
|
return ie(
|
|
3008
2973
|
() => ({ ...t }),
|
|
3009
2974
|
({ from: i, to: a }) => {
|
|
@@ -3015,8 +2980,8 @@ const Kr = j(function(e) {
|
|
|
3015
2980
|
if (!c.routes)
|
|
3016
2981
|
return;
|
|
3017
2982
|
const d = c.routes[0];
|
|
3018
|
-
for (const
|
|
3019
|
-
const u =
|
|
2983
|
+
for (const m of d.steps) {
|
|
2984
|
+
const u = m.path.map(({ lng: l, lat: I }) => [l, I]);
|
|
3020
2985
|
s = s.concat(u);
|
|
3021
2986
|
}
|
|
3022
2987
|
e.value = s;
|
|
@@ -3031,8 +2996,8 @@ const Kr = j(function(e) {
|
|
|
3031
2996
|
});
|
|
3032
2997
|
}
|
|
3033
2998
|
), e;
|
|
3034
|
-
},
|
|
3035
|
-
const e =
|
|
2999
|
+
}, Qn = (t) => {
|
|
3000
|
+
const e = R([]), n = new google.maps.DirectionsService();
|
|
3036
3001
|
return ie(
|
|
3037
3002
|
() => ({ ...t }),
|
|
3038
3003
|
({ from: i, to: a }) => {
|
|
@@ -3046,9 +3011,9 @@ const Kr = j(function(e) {
|
|
|
3046
3011
|
switch (r) {
|
|
3047
3012
|
case google.maps.DirectionsStatus.OK: {
|
|
3048
3013
|
let s = [];
|
|
3049
|
-
const d = o.routes[0].overview_path.map((
|
|
3050
|
-
|
|
3051
|
-
|
|
3014
|
+
const d = o.routes[0].overview_path.map((m) => [
|
|
3015
|
+
m.lng(),
|
|
3016
|
+
m.lat()
|
|
3052
3017
|
]);
|
|
3053
3018
|
s = s.concat(d), e.value = s;
|
|
3054
3019
|
return;
|
|
@@ -3064,114 +3029,114 @@ const Kr = j(function(e) {
|
|
|
3064
3029
|
);
|
|
3065
3030
|
}
|
|
3066
3031
|
), e;
|
|
3067
|
-
},
|
|
3068
|
-
const { supplier: e } =
|
|
3069
|
-
return e === "gmap" ?
|
|
3070
|
-
},
|
|
3032
|
+
}, Jr = (t) => {
|
|
3033
|
+
const { supplier: e } = N();
|
|
3034
|
+
return e === "gmap" ? Qn(t) : Jn(t);
|
|
3035
|
+
}, jr = j(function(e, {
|
|
3071
3036
|
slots: n
|
|
3072
3037
|
}) {
|
|
3073
|
-
const i =
|
|
3038
|
+
const i = Jn(e);
|
|
3074
3039
|
return () => {
|
|
3075
3040
|
var a;
|
|
3076
|
-
return g("div", [(a = n.render) == null ? void 0 : a.call(n,
|
|
3041
|
+
return g("div", [(a = n.render) == null ? void 0 : a.call(n, Z({
|
|
3077
3042
|
path: i
|
|
3078
3043
|
}))]);
|
|
3079
3044
|
};
|
|
3080
|
-
}),
|
|
3045
|
+
}), Lr = j(function(e, {
|
|
3081
3046
|
slots: n
|
|
3082
3047
|
}) {
|
|
3083
|
-
const i =
|
|
3048
|
+
const i = Qn(e);
|
|
3084
3049
|
return () => {
|
|
3085
3050
|
var a;
|
|
3086
|
-
return g("div", [(a = n.render) == null ? void 0 : a.call(n,
|
|
3051
|
+
return g("div", [(a = n.render) == null ? void 0 : a.call(n, Z({
|
|
3087
3052
|
path: i
|
|
3088
3053
|
}))]);
|
|
3089
3054
|
};
|
|
3090
|
-
}),
|
|
3055
|
+
}), et = j(function(e, {
|
|
3091
3056
|
slots: n
|
|
3092
3057
|
}) {
|
|
3093
3058
|
const {
|
|
3094
3059
|
supplier: i
|
|
3095
|
-
} =
|
|
3096
|
-
return () => k(i === "gmap" ?
|
|
3060
|
+
} = N();
|
|
3061
|
+
return () => k(i === "gmap" ? Lr : jr, {
|
|
3097
3062
|
attrs: e,
|
|
3098
3063
|
scopedSlots: n
|
|
3099
3064
|
});
|
|
3100
|
-
}),
|
|
3101
|
-
var
|
|
3102
|
-
const
|
|
3103
|
-
const n = w(() => `<img src="${
|
|
3104
|
-
return () => g("div", [g(
|
|
3065
|
+
}), Ce = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";
|
|
3066
|
+
var Fn = "rrvp0y3", Pe = "rrvp0y2";
|
|
3067
|
+
const Ar = j(function(e) {
|
|
3068
|
+
const n = w(() => `<img src="${Ce}" class="${Pe}">`), i = w(() => `<img src="${Ce}" class="${Pe} ${Fn}">`);
|
|
3069
|
+
return () => g("div", [g(B, {
|
|
3105
3070
|
attrs: {
|
|
3106
3071
|
position: e.position,
|
|
3107
3072
|
anchor: "bottom-center",
|
|
3108
3073
|
content: n.value
|
|
3109
3074
|
}
|
|
3110
|
-
}), g(
|
|
3075
|
+
}), g(B, {
|
|
3111
3076
|
attrs: {
|
|
3112
3077
|
position: e.position,
|
|
3113
3078
|
anchor: "bottom-center",
|
|
3114
3079
|
content: i.value
|
|
3115
3080
|
}
|
|
3116
3081
|
})]);
|
|
3117
|
-
}),
|
|
3118
|
-
const n = w(() =>
|
|
3119
|
-
class:
|
|
3120
|
-
src:
|
|
3121
|
-
})), i = w(() =>
|
|
3122
|
-
class: `${
|
|
3123
|
-
src:
|
|
3082
|
+
}), Sr = j(function(e) {
|
|
3083
|
+
const n = w(() => G("img", {
|
|
3084
|
+
class: Pe,
|
|
3085
|
+
src: Ce
|
|
3086
|
+
})), i = w(() => G("img", {
|
|
3087
|
+
class: `${Pe} ${Fn}`,
|
|
3088
|
+
src: Ce
|
|
3124
3089
|
}));
|
|
3125
3090
|
return () => {
|
|
3126
|
-
const a =
|
|
3127
|
-
return g("div", [g(
|
|
3091
|
+
const a = E(e.position);
|
|
3092
|
+
return g("div", [g(V, {
|
|
3128
3093
|
attrs: {
|
|
3129
3094
|
position: a,
|
|
3130
3095
|
content: n.value
|
|
3131
3096
|
}
|
|
3132
|
-
}), g(
|
|
3097
|
+
}), g(V, {
|
|
3133
3098
|
attrs: {
|
|
3134
3099
|
position: a,
|
|
3135
3100
|
content: i.value
|
|
3136
3101
|
}
|
|
3137
3102
|
})]);
|
|
3138
3103
|
};
|
|
3139
|
-
}),
|
|
3140
|
-
const n =
|
|
3141
|
-
return () => k(n.supplier === "gmap" ?
|
|
3104
|
+
}), Nr = j(function(e) {
|
|
3105
|
+
const n = N();
|
|
3106
|
+
return () => k(n.supplier === "gmap" ? Sr : Ar, {
|
|
3142
3107
|
attrs: e
|
|
3143
3108
|
});
|
|
3144
|
-
}),
|
|
3109
|
+
}), F = 2e3, Tt = j(function(e) {
|
|
3145
3110
|
return () => {
|
|
3146
3111
|
const {
|
|
3147
3112
|
from: n,
|
|
3148
3113
|
title: i,
|
|
3149
3114
|
registerOverlay: a
|
|
3150
|
-
} = e, o =
|
|
3151
|
-
return g("div", [g(
|
|
3115
|
+
} = e, o = P(n);
|
|
3116
|
+
return g("div", [g(z, {
|
|
3152
3117
|
attrs: {
|
|
3153
3118
|
type: "start",
|
|
3154
3119
|
position: o,
|
|
3155
3120
|
title: i,
|
|
3156
3121
|
registerOverlay: a
|
|
3157
3122
|
}
|
|
3158
|
-
}), g(
|
|
3123
|
+
}), g(Nr, {
|
|
3159
3124
|
attrs: {
|
|
3160
3125
|
position: o
|
|
3161
3126
|
}
|
|
3162
|
-
}), g(
|
|
3127
|
+
}), g(O, {
|
|
3163
3128
|
attrs: {
|
|
3164
3129
|
position: o,
|
|
3165
3130
|
label: n.name,
|
|
3166
3131
|
hideIcon: !0
|
|
3167
3132
|
}
|
|
3168
|
-
}), g(
|
|
3133
|
+
}), g(W, {
|
|
3169
3134
|
attrs: {
|
|
3170
3135
|
registerOverlay: a
|
|
3171
3136
|
}
|
|
3172
3137
|
})]);
|
|
3173
3138
|
};
|
|
3174
|
-
}),
|
|
3139
|
+
}), hr = j(function(e) {
|
|
3175
3140
|
const {
|
|
3176
3141
|
apiMapDistance: n
|
|
3177
3142
|
} = X();
|
|
@@ -3181,56 +3146,56 @@ const as = j(function(e) {
|
|
|
3181
3146
|
to: a,
|
|
3182
3147
|
passengerPosition: o,
|
|
3183
3148
|
registerOverlay: r
|
|
3184
|
-
} = e, s =
|
|
3185
|
-
return g("div", [g(
|
|
3149
|
+
} = e, s = P(i), c = P(a), d = o ? n(o, s) : void 0;
|
|
3150
|
+
return g("div", [g(oe, {
|
|
3186
3151
|
attrs: {
|
|
3187
3152
|
to: c,
|
|
3188
3153
|
from: s,
|
|
3189
3154
|
render: ({
|
|
3190
|
-
path:
|
|
3191
|
-
}) => g(
|
|
3155
|
+
path: m
|
|
3156
|
+
}) => g(ae, {
|
|
3192
3157
|
attrs: {
|
|
3193
|
-
path:
|
|
3158
|
+
path: m
|
|
3194
3159
|
}
|
|
3195
3160
|
})
|
|
3196
3161
|
}
|
|
3197
|
-
}), g(
|
|
3162
|
+
}), g(Re, {
|
|
3163
|
+
attrs: {
|
|
3164
|
+
position: o,
|
|
3165
|
+
condition: !!d && d < F,
|
|
3166
|
+
registerOverlay: r
|
|
3167
|
+
}
|
|
3168
|
+
}), g(z, {
|
|
3198
3169
|
attrs: {
|
|
3199
3170
|
type: "start",
|
|
3200
3171
|
registerOverlay: r,
|
|
3201
3172
|
position: s
|
|
3202
3173
|
}
|
|
3203
|
-
}), g(
|
|
3174
|
+
}), g(z, {
|
|
3204
3175
|
attrs: {
|
|
3205
3176
|
type: "end",
|
|
3206
3177
|
registerOverlay: r,
|
|
3207
3178
|
position: c
|
|
3208
3179
|
}
|
|
3209
|
-
}), g(
|
|
3180
|
+
}), g(O, {
|
|
3210
3181
|
attrs: {
|
|
3211
3182
|
position: s,
|
|
3212
3183
|
label: i.name,
|
|
3213
3184
|
hideIcon: !0
|
|
3214
3185
|
}
|
|
3215
|
-
}), g(
|
|
3186
|
+
}), g(O, {
|
|
3216
3187
|
attrs: {
|
|
3217
3188
|
position: c,
|
|
3218
3189
|
label: a.name,
|
|
3219
3190
|
hideIcon: !0
|
|
3220
3191
|
}
|
|
3221
|
-
}), g(
|
|
3222
|
-
attrs: {
|
|
3223
|
-
position: o,
|
|
3224
|
-
condition: !!d && d < $,
|
|
3225
|
-
registerOverlay: r
|
|
3226
|
-
}
|
|
3227
|
-
}), g(U, {
|
|
3192
|
+
}), g(W, {
|
|
3228
3193
|
attrs: {
|
|
3229
3194
|
registerOverlay: r
|
|
3230
3195
|
}
|
|
3231
3196
|
})]);
|
|
3232
3197
|
};
|
|
3233
|
-
}),
|
|
3198
|
+
}), Dr = j(function(e) {
|
|
3234
3199
|
const {
|
|
3235
3200
|
apiMapDistance: n
|
|
3236
3201
|
} = X();
|
|
@@ -3241,38 +3206,38 @@ const as = j(function(e) {
|
|
|
3241
3206
|
passengerPosition: o,
|
|
3242
3207
|
renderTitle: r,
|
|
3243
3208
|
registerOverlay: s
|
|
3244
|
-
} = e, c =
|
|
3245
|
-
return g("div", [g(
|
|
3209
|
+
} = e, c = P(i), d = o ? n(o, c) : void 0;
|
|
3210
|
+
return g("div", [g(Re, {
|
|
3246
3211
|
attrs: {
|
|
3247
3212
|
position: o,
|
|
3248
|
-
condition: !!d && d <
|
|
3213
|
+
condition: !!d && d < F,
|
|
3249
3214
|
registerOverlay: s
|
|
3250
3215
|
}
|
|
3251
|
-
}), g(
|
|
3216
|
+
}), g(z, {
|
|
3252
3217
|
attrs: {
|
|
3253
3218
|
type: "start",
|
|
3254
3219
|
position: c,
|
|
3255
3220
|
registerOverlay: s
|
|
3256
3221
|
}
|
|
3257
|
-
}), g(
|
|
3222
|
+
}), g(O, {
|
|
3258
3223
|
attrs: {
|
|
3259
3224
|
position: c,
|
|
3260
3225
|
label: i.name,
|
|
3261
3226
|
hideIcon: !0
|
|
3262
3227
|
}
|
|
3263
|
-
}), a[0] !== c[0] || a[1] !== c[1] ? g(
|
|
3228
|
+
}), a[0] !== c[0] || a[1] !== c[1] ? g(oe, {
|
|
3264
3229
|
attrs: {
|
|
3265
3230
|
from: a,
|
|
3266
3231
|
to: c,
|
|
3267
3232
|
render: ({
|
|
3268
|
-
path:
|
|
3233
|
+
path: m,
|
|
3269
3234
|
distance: u,
|
|
3270
3235
|
duration: l
|
|
3271
|
-
}) => [g(
|
|
3236
|
+
}) => [g(ae, {
|
|
3272
3237
|
attrs: {
|
|
3273
|
-
path:
|
|
3238
|
+
path: m
|
|
3274
3239
|
}
|
|
3275
|
-
}), g(
|
|
3240
|
+
}), g(Ke, {
|
|
3276
3241
|
attrs: {
|
|
3277
3242
|
position: a,
|
|
3278
3243
|
title: r({
|
|
@@ -3281,80 +3246,103 @@ const as = j(function(e) {
|
|
|
3281
3246
|
}),
|
|
3282
3247
|
registerOverlay: s
|
|
3283
3248
|
}
|
|
3284
|
-
}), g(
|
|
3249
|
+
}), g(_e, {
|
|
3285
3250
|
attrs: {
|
|
3286
3251
|
registerOverlay: s,
|
|
3287
3252
|
fitViewKey: JSON.stringify(a)
|
|
3288
3253
|
}
|
|
3289
3254
|
})]
|
|
3290
3255
|
}
|
|
3291
|
-
}) : null, !!o && d && d
|
|
3256
|
+
}) : null, !!o && d && d < F && g(et, {
|
|
3292
3257
|
attrs: {
|
|
3293
3258
|
from: o,
|
|
3294
3259
|
to: c,
|
|
3295
3260
|
render: ({
|
|
3296
|
-
path:
|
|
3297
|
-
}) => g(
|
|
3261
|
+
path: m
|
|
3262
|
+
}) => g(qe, {
|
|
3298
3263
|
attrs: {
|
|
3299
|
-
path:
|
|
3264
|
+
path: m
|
|
3300
3265
|
}
|
|
3301
3266
|
})
|
|
3302
3267
|
}
|
|
3303
|
-
}), g(
|
|
3268
|
+
}), g(W, {
|
|
3304
3269
|
attrs: {
|
|
3305
3270
|
registerOverlay: s
|
|
3306
3271
|
}
|
|
3307
3272
|
})]);
|
|
3308
3273
|
};
|
|
3309
|
-
}),
|
|
3274
|
+
}), wr = j(function(e) {
|
|
3310
3275
|
const {
|
|
3311
3276
|
apiMapDistance: n
|
|
3312
3277
|
} = X();
|
|
3313
3278
|
return () => {
|
|
3314
3279
|
const {
|
|
3315
3280
|
from: i,
|
|
3316
|
-
|
|
3317
|
-
|
|
3281
|
+
to: a,
|
|
3282
|
+
passengerPosition: o,
|
|
3318
3283
|
registerOverlay: r
|
|
3319
|
-
} = e, s =
|
|
3320
|
-
return g("div", [g(
|
|
3284
|
+
} = e, s = P(i), c = P(a), d = o ? n(o, s) : void 0;
|
|
3285
|
+
return g("div", [g(oe, {
|
|
3321
3286
|
attrs: {
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3287
|
+
to: c,
|
|
3288
|
+
from: s,
|
|
3289
|
+
render: ({
|
|
3290
|
+
path: m
|
|
3291
|
+
}) => g(ae, {
|
|
3292
|
+
attrs: {
|
|
3293
|
+
path: m
|
|
3294
|
+
}
|
|
3295
|
+
})
|
|
3296
|
+
}
|
|
3297
|
+
}), !!o && d && d < F && g(et, {
|
|
3298
|
+
attrs: {
|
|
3299
|
+
from: o,
|
|
3300
|
+
to: s,
|
|
3301
|
+
render: ({
|
|
3302
|
+
path: m
|
|
3303
|
+
}) => g(qe, {
|
|
3304
|
+
attrs: {
|
|
3305
|
+
path: m
|
|
3306
|
+
}
|
|
3307
|
+
})
|
|
3308
|
+
}
|
|
3309
|
+
}), g(Re, {
|
|
3310
|
+
attrs: {
|
|
3311
|
+
position: o,
|
|
3312
|
+
condition: !!d && d < F,
|
|
3325
3313
|
registerOverlay: r
|
|
3326
3314
|
}
|
|
3327
|
-
}), g(
|
|
3315
|
+
}), g(z, {
|
|
3316
|
+
attrs: {
|
|
3317
|
+
type: "start",
|
|
3318
|
+
registerOverlay: r,
|
|
3319
|
+
position: s
|
|
3320
|
+
}
|
|
3321
|
+
}), g(z, {
|
|
3322
|
+
attrs: {
|
|
3323
|
+
type: "end",
|
|
3324
|
+
registerOverlay: r,
|
|
3325
|
+
position: c
|
|
3326
|
+
}
|
|
3327
|
+
}), g(O, {
|
|
3328
3328
|
attrs: {
|
|
3329
3329
|
position: s,
|
|
3330
3330
|
label: i.name,
|
|
3331
3331
|
hideIcon: !0
|
|
3332
3332
|
}
|
|
3333
|
-
}), g(
|
|
3334
|
-
attrs: {
|
|
3335
|
-
position: a,
|
|
3336
|
-
condition: !!c && c < $,
|
|
3337
|
-
registerOverlay: r
|
|
3338
|
-
}
|
|
3339
|
-
}), !!a && c && c <= $ && g(nt, {
|
|
3333
|
+
}), g(O, {
|
|
3340
3334
|
attrs: {
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
path: d
|
|
3345
|
-
}) => g(tt, {
|
|
3346
|
-
attrs: {
|
|
3347
|
-
path: d
|
|
3348
|
-
}
|
|
3349
|
-
})
|
|
3335
|
+
position: c,
|
|
3336
|
+
label: a.name,
|
|
3337
|
+
hideIcon: !0
|
|
3350
3338
|
}
|
|
3351
|
-
}), g(
|
|
3339
|
+
}), g(W, {
|
|
3352
3340
|
attrs: {
|
|
3353
3341
|
registerOverlay: r
|
|
3354
3342
|
}
|
|
3355
3343
|
})]);
|
|
3356
3344
|
};
|
|
3357
|
-
}),
|
|
3345
|
+
}), Cr = j(function(e) {
|
|
3358
3346
|
const {
|
|
3359
3347
|
apiMapDistance: n
|
|
3360
3348
|
} = X();
|
|
@@ -3365,70 +3353,58 @@ const as = j(function(e) {
|
|
|
3365
3353
|
passengerPosition: o,
|
|
3366
3354
|
title: r,
|
|
3367
3355
|
registerOverlay: s
|
|
3368
|
-
} = e, c =
|
|
3369
|
-
return g("div", [g(et, {
|
|
3356
|
+
} = e, c = P(i), d = o ? n(o, c) : void 0;
|
|
3357
|
+
return g("div", [!!o && d && d < F && g(et, {
|
|
3358
|
+
attrs: {
|
|
3359
|
+
from: o,
|
|
3360
|
+
to: c,
|
|
3361
|
+
render: ({
|
|
3362
|
+
path: m
|
|
3363
|
+
}) => g(qe, {
|
|
3364
|
+
attrs: {
|
|
3365
|
+
path: m
|
|
3366
|
+
}
|
|
3367
|
+
})
|
|
3368
|
+
}
|
|
3369
|
+
}), g(Re, {
|
|
3370
|
+
attrs: {
|
|
3371
|
+
position: o,
|
|
3372
|
+
condition: !!d && d < F,
|
|
3373
|
+
registerOverlay: s
|
|
3374
|
+
}
|
|
3375
|
+
}), g(Ke, {
|
|
3370
3376
|
attrs: {
|
|
3371
3377
|
position: a,
|
|
3372
3378
|
title: r,
|
|
3373
3379
|
registerOverlay: s
|
|
3374
3380
|
}
|
|
3375
|
-
}), g(
|
|
3381
|
+
}), g(z, {
|
|
3376
3382
|
attrs: {
|
|
3377
3383
|
type: "start",
|
|
3378
3384
|
position: c,
|
|
3379
3385
|
registerOverlay: s
|
|
3380
3386
|
}
|
|
3381
|
-
}), g(
|
|
3387
|
+
}), g(O, {
|
|
3382
3388
|
attrs: {
|
|
3383
3389
|
position: c,
|
|
3384
3390
|
label: i.name,
|
|
3385
3391
|
hideIcon: !0
|
|
3386
3392
|
}
|
|
3387
|
-
}),
|
|
3388
|
-
attrs: {
|
|
3389
|
-
from: o,
|
|
3390
|
-
to: c,
|
|
3391
|
-
render: ({
|
|
3392
|
-
path: f
|
|
3393
|
-
}) => g(tt, {
|
|
3394
|
-
attrs: {
|
|
3395
|
-
path: f
|
|
3396
|
-
}
|
|
3397
|
-
})
|
|
3398
|
-
}
|
|
3399
|
-
}), g(Te, {
|
|
3400
|
-
attrs: {
|
|
3401
|
-
position: o,
|
|
3402
|
-
condition: !!d && d < $,
|
|
3403
|
-
registerOverlay: s
|
|
3404
|
-
}
|
|
3405
|
-
}), g(U, {
|
|
3393
|
+
}), g(W, {
|
|
3406
3394
|
attrs: {
|
|
3407
3395
|
registerOverlay: s
|
|
3408
3396
|
}
|
|
3409
3397
|
})]);
|
|
3410
3398
|
};
|
|
3411
|
-
}),
|
|
3399
|
+
}), Pr = j(function(e) {
|
|
3412
3400
|
return () => {
|
|
3413
3401
|
const {
|
|
3414
3402
|
to: n,
|
|
3415
3403
|
carPosition: i,
|
|
3416
3404
|
renderTitle: a,
|
|
3417
3405
|
registerOverlay: o
|
|
3418
|
-
} = e, r =
|
|
3419
|
-
return g("div", [g(
|
|
3420
|
-
attrs: {
|
|
3421
|
-
type: "end",
|
|
3422
|
-
position: r,
|
|
3423
|
-
registerOverlay: o
|
|
3424
|
-
}
|
|
3425
|
-
}), g(G, {
|
|
3426
|
-
attrs: {
|
|
3427
|
-
position: r,
|
|
3428
|
-
label: n.name,
|
|
3429
|
-
hideIcon: !0
|
|
3430
|
-
}
|
|
3431
|
-
}), g(pe, {
|
|
3406
|
+
} = e, r = P(n);
|
|
3407
|
+
return g("div", [g(oe, {
|
|
3432
3408
|
attrs: {
|
|
3433
3409
|
from: i,
|
|
3434
3410
|
to: r,
|
|
@@ -3436,11 +3412,11 @@ const as = j(function(e) {
|
|
|
3436
3412
|
path: s,
|
|
3437
3413
|
distance: c,
|
|
3438
3414
|
duration: d
|
|
3439
|
-
}) => [g(
|
|
3415
|
+
}) => [g(ae, {
|
|
3440
3416
|
attrs: {
|
|
3441
3417
|
path: s
|
|
3442
3418
|
}
|
|
3443
|
-
}), g(
|
|
3419
|
+
}), g(Ke, {
|
|
3444
3420
|
attrs: {
|
|
3445
3421
|
position: i,
|
|
3446
3422
|
title: a({
|
|
@@ -3449,51 +3425,63 @@ const as = j(function(e) {
|
|
|
3449
3425
|
}),
|
|
3450
3426
|
registerOverlay: o
|
|
3451
3427
|
}
|
|
3452
|
-
}), g(
|
|
3428
|
+
}), g(_e, {
|
|
3453
3429
|
attrs: {
|
|
3454
3430
|
registerOverlay: o,
|
|
3455
3431
|
fitViewKey: JSON.stringify(i)
|
|
3456
3432
|
}
|
|
3457
3433
|
})]
|
|
3458
3434
|
}
|
|
3459
|
-
}), g(
|
|
3435
|
+
}), g(z, {
|
|
3436
|
+
attrs: {
|
|
3437
|
+
type: "end",
|
|
3438
|
+
position: r,
|
|
3439
|
+
registerOverlay: o
|
|
3440
|
+
}
|
|
3441
|
+
}), g(O, {
|
|
3442
|
+
attrs: {
|
|
3443
|
+
position: r,
|
|
3444
|
+
label: n.name,
|
|
3445
|
+
hideIcon: !0
|
|
3446
|
+
}
|
|
3447
|
+
}), g(W, {
|
|
3460
3448
|
attrs: {
|
|
3461
3449
|
registerOverlay: o
|
|
3462
3450
|
}
|
|
3463
3451
|
})]);
|
|
3464
3452
|
};
|
|
3465
|
-
}),
|
|
3453
|
+
}), xr = j(function(e) {
|
|
3466
3454
|
return () => {
|
|
3467
3455
|
const {
|
|
3468
3456
|
from: n,
|
|
3469
3457
|
to: i,
|
|
3470
3458
|
registerOverlay: a
|
|
3471
|
-
} = e, o =
|
|
3472
|
-
return g("div", [g(
|
|
3459
|
+
} = e, o = P(n), r = P(i);
|
|
3460
|
+
return g("div", [g(z, {
|
|
3473
3461
|
attrs: {
|
|
3474
3462
|
type: "start",
|
|
3475
3463
|
position: o,
|
|
3476
3464
|
registerOverlay: a
|
|
3477
3465
|
}
|
|
3478
|
-
}), g(
|
|
3466
|
+
}), g(z, {
|
|
3479
3467
|
attrs: {
|
|
3480
3468
|
type: "end",
|
|
3481
3469
|
position: r,
|
|
3482
3470
|
registerOverlay: a
|
|
3483
3471
|
}
|
|
3484
|
-
}), g(
|
|
3472
|
+
}), g(O, {
|
|
3485
3473
|
attrs: {
|
|
3486
3474
|
position: o,
|
|
3487
3475
|
label: n.name,
|
|
3488
3476
|
hideIcon: !0
|
|
3489
3477
|
}
|
|
3490
|
-
}), g(
|
|
3478
|
+
}), g(O, {
|
|
3491
3479
|
attrs: {
|
|
3492
3480
|
position: r,
|
|
3493
3481
|
label: i.name,
|
|
3494
3482
|
hideIcon: !0
|
|
3495
3483
|
}
|
|
3496
|
-
}), g(
|
|
3484
|
+
}), g(W, {
|
|
3497
3485
|
attrs: {
|
|
3498
3486
|
registerOverlay: a
|
|
3499
3487
|
}
|
|
@@ -3505,57 +3493,57 @@ const as = j(function(e) {
|
|
|
3505
3493
|
from: n,
|
|
3506
3494
|
to: i,
|
|
3507
3495
|
registerOverlay: a
|
|
3508
|
-
} = e, o =
|
|
3509
|
-
return g("div", [g(
|
|
3496
|
+
} = e, o = P(n), r = P(i);
|
|
3497
|
+
return g("div", [g(oe, {
|
|
3498
|
+
attrs: {
|
|
3499
|
+
from: o,
|
|
3500
|
+
to: r,
|
|
3501
|
+
render: ({
|
|
3502
|
+
path: s
|
|
3503
|
+
}) => g(ae, {
|
|
3504
|
+
attrs: {
|
|
3505
|
+
path: s,
|
|
3506
|
+
done: !0
|
|
3507
|
+
}
|
|
3508
|
+
})
|
|
3509
|
+
}
|
|
3510
|
+
}), g(z, {
|
|
3510
3511
|
attrs: {
|
|
3511
3512
|
type: "start",
|
|
3512
3513
|
position: o,
|
|
3513
3514
|
registerOverlay: a
|
|
3514
3515
|
}
|
|
3515
|
-
}), g(
|
|
3516
|
+
}), g(z, {
|
|
3516
3517
|
attrs: {
|
|
3517
3518
|
type: "end",
|
|
3518
3519
|
position: r,
|
|
3519
3520
|
registerOverlay: a
|
|
3520
3521
|
}
|
|
3521
|
-
}), g(
|
|
3522
|
+
}), g(O, {
|
|
3522
3523
|
attrs: {
|
|
3523
3524
|
position: o,
|
|
3524
3525
|
label: n.name,
|
|
3525
3526
|
hideIcon: !0
|
|
3526
3527
|
}
|
|
3527
|
-
}), g(
|
|
3528
|
+
}), g(O, {
|
|
3528
3529
|
attrs: {
|
|
3529
3530
|
position: r,
|
|
3530
3531
|
label: i.name,
|
|
3531
3532
|
hideIcon: !0
|
|
3532
3533
|
}
|
|
3533
|
-
}), g(
|
|
3534
|
-
attrs: {
|
|
3535
|
-
from: o,
|
|
3536
|
-
to: r,
|
|
3537
|
-
render: ({
|
|
3538
|
-
path: s
|
|
3539
|
-
}) => g(Ie, {
|
|
3540
|
-
attrs: {
|
|
3541
|
-
path: s,
|
|
3542
|
-
done: !0
|
|
3543
|
-
}
|
|
3544
|
-
})
|
|
3545
|
-
}
|
|
3546
|
-
}), g(U, {
|
|
3534
|
+
}), g(W, {
|
|
3547
3535
|
attrs: {
|
|
3548
3536
|
registerOverlay: a
|
|
3549
3537
|
}
|
|
3550
3538
|
})]);
|
|
3551
3539
|
};
|
|
3552
|
-
}),
|
|
3540
|
+
}), Qr = j(function(e) {
|
|
3553
3541
|
const {
|
|
3554
3542
|
mapRef: n,
|
|
3555
3543
|
setMap: i
|
|
3556
3544
|
} = Ee(), {
|
|
3557
3545
|
registerFitVeiw: a
|
|
3558
|
-
} =
|
|
3546
|
+
} = Ze({
|
|
3559
3547
|
mapRef: n,
|
|
3560
3548
|
autoFitTimeout: 5e3,
|
|
3561
3549
|
padding: [25, 20, 15, 15]
|
|
@@ -3564,8 +3552,8 @@ const as = j(function(e) {
|
|
|
3564
3552
|
const {
|
|
3565
3553
|
from: o,
|
|
3566
3554
|
to: r
|
|
3567
|
-
} = e, s =
|
|
3568
|
-
return g(
|
|
3555
|
+
} = e, s = Zt(o) && Zt(r), c = s ? P(o) : [...mr];
|
|
3556
|
+
return g(be, {
|
|
3569
3557
|
attrs: {
|
|
3570
3558
|
center: c,
|
|
3571
3559
|
zoom: 3,
|
|
@@ -3580,7 +3568,7 @@ const as = j(function(e) {
|
|
|
3580
3568
|
}
|
|
3581
3569
|
})]);
|
|
3582
3570
|
};
|
|
3583
|
-
}),
|
|
3571
|
+
}), br = ["book-driverStartService", "dispatched", "driverStartService", "inService", "driverArrived"], Fr = me(function(e) {
|
|
3584
3572
|
const {
|
|
3585
3573
|
from: n,
|
|
3586
3574
|
interval: i,
|
|
@@ -3591,93 +3579,92 @@ const as = j(function(e) {
|
|
|
3591
3579
|
renderInServiceTitle: c
|
|
3592
3580
|
} = e, {
|
|
3593
3581
|
geoPosition: d,
|
|
3594
|
-
geoError:
|
|
3595
|
-
} =
|
|
3596
|
-
geoDefaultPosition:
|
|
3597
|
-
}), u = C(
|
|
3598
|
-
return T(() => e.driverStatus, (l,
|
|
3599
|
-
if (!
|
|
3582
|
+
geoError: m
|
|
3583
|
+
} = Te({
|
|
3584
|
+
geoDefaultPosition: P(n)
|
|
3585
|
+
}), u = C(P(e.from));
|
|
3586
|
+
return T(() => e.driverStatus, (l, I, M) => {
|
|
3587
|
+
if (!br.includes(l))
|
|
3600
3588
|
return;
|
|
3601
|
-
const
|
|
3602
|
-
r().then((
|
|
3589
|
+
const f = setInterval(() => {
|
|
3590
|
+
r().then((y) => u.value = y);
|
|
3603
3591
|
}, i);
|
|
3604
|
-
M(() => clearInterval(
|
|
3592
|
+
M(() => clearInterval(f));
|
|
3605
3593
|
}, {
|
|
3606
3594
|
immediate: !0
|
|
3607
3595
|
}), () => {
|
|
3608
3596
|
const {
|
|
3609
3597
|
driverStatus: l,
|
|
3610
|
-
from:
|
|
3598
|
+
from: I,
|
|
3611
3599
|
to: M,
|
|
3612
|
-
dispatchingTitle:
|
|
3613
|
-
bookDispatchingTitle:
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
center: x(m),
|
|
3600
|
+
dispatchingTitle: f,
|
|
3601
|
+
bookDispatchingTitle: y,
|
|
3602
|
+
driverArrivedTitle: p
|
|
3603
|
+
} = e, v = u.value, L = m.value ? void 0 : d.value;
|
|
3604
|
+
return g(be, {
|
|
3605
|
+
attrs: {
|
|
3606
|
+
center: P(I),
|
|
3620
3607
|
zoom: 13,
|
|
3621
3608
|
mapRef: o
|
|
3622
3609
|
}
|
|
3623
|
-
}, [l === "dispatching" ? g(
|
|
3610
|
+
}, [l === "dispatching" ? g(Tt, {
|
|
3624
3611
|
attrs: {
|
|
3625
|
-
from:
|
|
3626
|
-
title:
|
|
3612
|
+
from: I,
|
|
3613
|
+
title: f,
|
|
3627
3614
|
registerOverlay: a
|
|
3628
3615
|
}
|
|
3629
|
-
}) : l === "book-dispatching" ? g(
|
|
3616
|
+
}) : l === "book-dispatching" ? g(Tt, {
|
|
3630
3617
|
attrs: {
|
|
3631
|
-
from:
|
|
3632
|
-
title:
|
|
3618
|
+
from: I,
|
|
3619
|
+
title: y,
|
|
3633
3620
|
registerOverlay: a
|
|
3634
3621
|
}
|
|
3635
|
-
}) : l === "assign" || l === "confirmed" ? g(
|
|
3622
|
+
}) : l === "assign" || l === "confirmed" ? g(hr, {
|
|
3636
3623
|
attrs: {
|
|
3637
|
-
from:
|
|
3624
|
+
from: I,
|
|
3638
3625
|
to: M,
|
|
3639
|
-
passengerPosition:
|
|
3626
|
+
passengerPosition: L,
|
|
3640
3627
|
registerOverlay: a
|
|
3641
3628
|
}
|
|
3642
|
-
}) : l === "dispatched" || l === "driverStartService" || l === "book-driverStartService" ? g(
|
|
3629
|
+
}) : l === "dispatched" || l === "driverStartService" || l === "book-driverStartService" ? g(Dr, {
|
|
3643
3630
|
attrs: {
|
|
3644
|
-
from:
|
|
3645
|
-
carPosition:
|
|
3646
|
-
passengerPosition:
|
|
3631
|
+
from: I,
|
|
3632
|
+
carPosition: v,
|
|
3633
|
+
passengerPosition: L,
|
|
3647
3634
|
renderTitle: s,
|
|
3648
3635
|
registerOverlay: a
|
|
3649
3636
|
}
|
|
3650
|
-
}) : l === "book-dispatched" ? g(
|
|
3637
|
+
}) : l === "book-dispatched" ? g(wr, {
|
|
3651
3638
|
attrs: {
|
|
3652
|
-
from:
|
|
3653
|
-
|
|
3654
|
-
|
|
3639
|
+
from: I,
|
|
3640
|
+
to: M,
|
|
3641
|
+
passengerPosition: L,
|
|
3655
3642
|
registerOverlay: a
|
|
3656
3643
|
}
|
|
3657
|
-
}) : l === "inService" ? g(
|
|
3644
|
+
}) : l === "inService" ? g(Pr, {
|
|
3658
3645
|
attrs: {
|
|
3659
3646
|
to: M,
|
|
3660
|
-
carPosition:
|
|
3647
|
+
carPosition: v,
|
|
3661
3648
|
renderTitle: c,
|
|
3662
3649
|
registerOverlay: a
|
|
3663
3650
|
}
|
|
3664
|
-
}) : l === "driverArrived" ? g(
|
|
3651
|
+
}) : l === "driverArrived" ? g(Cr, {
|
|
3665
3652
|
attrs: {
|
|
3666
|
-
from:
|
|
3667
|
-
carPosition:
|
|
3668
|
-
passengerPosition:
|
|
3669
|
-
title:
|
|
3653
|
+
from: I,
|
|
3654
|
+
carPosition: v,
|
|
3655
|
+
passengerPosition: L,
|
|
3656
|
+
title: p,
|
|
3670
3657
|
registerOverlay: a
|
|
3671
3658
|
}
|
|
3672
|
-
}) : l === "canceled" || l === "canceling" ? g(
|
|
3659
|
+
}) : l === "canceled" || l === "canceling" ? g(xr, {
|
|
3673
3660
|
attrs: {
|
|
3674
|
-
from:
|
|
3661
|
+
from: I,
|
|
3675
3662
|
to: M,
|
|
3676
3663
|
registerOverlay: a
|
|
3677
3664
|
}
|
|
3678
3665
|
}) : l === "endService" || l === "completed" || l === "banlanceRefund" || l === "waitBanlanceRefund" || l === "rechargePayed" || l === "waitRechargePay" || l === "payed" || l === "waitpay" || l === "refund" ? g(Ye, {
|
|
3679
3666
|
attrs: {
|
|
3680
|
-
from:
|
|
3667
|
+
from: I,
|
|
3681
3668
|
to: M,
|
|
3682
3669
|
registerOverlay: a
|
|
3683
3670
|
}
|
|
@@ -3685,15 +3672,15 @@ const as = j(function(e) {
|
|
|
3685
3672
|
// 匹配不到就显示灰色路线
|
|
3686
3673
|
g(Ye, {
|
|
3687
3674
|
attrs: {
|
|
3688
|
-
from:
|
|
3675
|
+
from: I,
|
|
3689
3676
|
to: M,
|
|
3690
3677
|
registerOverlay: a
|
|
3691
3678
|
}
|
|
3692
3679
|
})
|
|
3693
3680
|
)]);
|
|
3694
3681
|
};
|
|
3695
|
-
}).props(["
|
|
3696
|
-
const { city: e } = t, n = C(e), { readyPromise: i } =
|
|
3682
|
+
}).props(["bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPosition", "interval", "loading", "mapRef", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]), Zr = (t) => {
|
|
3683
|
+
const { city: e } = t, n = C(e), { readyPromise: i } = N(), { apiMapDistance: a } = X(), { geoPosition: o } = Te(), r = C(""), s = C([]), { update: c, idx: d } = se(), m = (l) => {
|
|
3697
3684
|
n.value = l, c();
|
|
3698
3685
|
}, u = (l) => {
|
|
3699
3686
|
r.value = l, c();
|
|
@@ -3703,19 +3690,19 @@ const as = j(function(e) {
|
|
|
3703
3690
|
async () => {
|
|
3704
3691
|
if (!r.value)
|
|
3705
3692
|
return;
|
|
3706
|
-
await i, new AMap.PlaceSearch({ city: n.value.name }).search(r.value, (
|
|
3707
|
-
const
|
|
3708
|
-
switch (
|
|
3693
|
+
await i, new AMap.PlaceSearch({ city: n.value.name }).search(r.value, (I, M) => {
|
|
3694
|
+
const f = o.value;
|
|
3695
|
+
switch (I) {
|
|
3709
3696
|
case "complete": {
|
|
3710
3697
|
s.value = M.poiList.pois.map(
|
|
3711
|
-
(
|
|
3712
|
-
const { lat:
|
|
3698
|
+
(y) => {
|
|
3699
|
+
const { lat: p, lng: v } = y.location;
|
|
3713
3700
|
return {
|
|
3714
|
-
lat:
|
|
3701
|
+
lat: p,
|
|
3715
3702
|
lng: v,
|
|
3716
|
-
name:
|
|
3717
|
-
description:
|
|
3718
|
-
distance:
|
|
3703
|
+
name: y.name,
|
|
3704
|
+
description: y.address,
|
|
3705
|
+
distance: f ? a(f, [v, p]) : void 0
|
|
3719
3706
|
};
|
|
3720
3707
|
}
|
|
3721
3708
|
);
|
|
@@ -3732,12 +3719,12 @@ const as = j(function(e) {
|
|
|
3732
3719
|
{
|
|
3733
3720
|
immediate: !0
|
|
3734
3721
|
}
|
|
3735
|
-
), { setKeyword: u, setCity:
|
|
3736
|
-
},
|
|
3737
|
-
const { city: e } = t, n = C({ ...e }), { readyPromise: i } =
|
|
3738
|
-
n.value =
|
|
3739
|
-
}, u = (
|
|
3740
|
-
r.value =
|
|
3722
|
+
), { setKeyword: u, setCity: m, autoCompletePlaces: s };
|
|
3723
|
+
}, Tr = (t) => {
|
|
3724
|
+
const { city: e } = t, n = C({ ...e }), { readyPromise: i } = N(), { apiMapDistance: a } = X(), { geoPosition: o } = Te(), r = C(""), s = C([]), { update: c, idx: d } = se(), m = (I) => {
|
|
3725
|
+
n.value = I, c();
|
|
3726
|
+
}, u = (I) => {
|
|
3727
|
+
r.value = I, c();
|
|
3741
3728
|
}, l = document.createElement("div");
|
|
3742
3729
|
return T(
|
|
3743
3730
|
() => d.value,
|
|
@@ -3749,19 +3736,19 @@ const as = j(function(e) {
|
|
|
3749
3736
|
query: r.value,
|
|
3750
3737
|
bounds: n.value.bound
|
|
3751
3738
|
},
|
|
3752
|
-
(M,
|
|
3753
|
-
const
|
|
3754
|
-
switch (
|
|
3739
|
+
(M, f) => {
|
|
3740
|
+
const y = o.value;
|
|
3741
|
+
switch (f) {
|
|
3755
3742
|
case google.maps.places.PlacesServiceStatus.OK:
|
|
3756
|
-
s.value = M.map(({ geometry:
|
|
3757
|
-
var
|
|
3758
|
-
const
|
|
3743
|
+
s.value = M.map(({ geometry: p, name: v, formatted_address: L }) => {
|
|
3744
|
+
var h, x, b, U;
|
|
3745
|
+
const S = (x = (h = p == null ? void 0 : p.location) == null ? void 0 : h.lng()) != null ? x : 0, D = (U = (b = p == null ? void 0 : p.location) == null ? void 0 : b.lat()) != null ? U : 0;
|
|
3759
3746
|
return {
|
|
3760
|
-
lng:
|
|
3747
|
+
lng: S,
|
|
3761
3748
|
lat: D,
|
|
3762
3749
|
name: v != null ? v : "",
|
|
3763
3750
|
description: L != null ? L : "",
|
|
3764
|
-
distance:
|
|
3751
|
+
distance: y ? a(y, [S, D]) : void 0
|
|
3765
3752
|
};
|
|
3766
3753
|
});
|
|
3767
3754
|
return;
|
|
@@ -3773,13 +3760,13 @@ const as = j(function(e) {
|
|
|
3773
3760
|
}
|
|
3774
3761
|
);
|
|
3775
3762
|
}
|
|
3776
|
-
), { setKeyword: u, setCity:
|
|
3777
|
-
},
|
|
3778
|
-
const { supplier: e } =
|
|
3779
|
-
return e === "gmap" ?
|
|
3780
|
-
},
|
|
3763
|
+
), { setKeyword: u, setCity: m, autoCompletePlaces: s };
|
|
3764
|
+
}, Er = (t) => {
|
|
3765
|
+
const { supplier: e } = N();
|
|
3766
|
+
return e === "gmap" ? Tr(t) : Zr(t);
|
|
3767
|
+
}, Rr = (t) => {
|
|
3781
3768
|
var a;
|
|
3782
|
-
const { cityNameRef: e, onChange: n } = t, i =
|
|
3769
|
+
const { cityNameRef: e, onChange: n } = t, i = Z({ name: (a = e.value) != null ? a : "" });
|
|
3783
3770
|
return T(
|
|
3784
3771
|
() => e.value,
|
|
3785
3772
|
(o) => {
|
|
@@ -3787,9 +3774,9 @@ const as = j(function(e) {
|
|
|
3787
3774
|
i.name = r, n == null || n({ name: r });
|
|
3788
3775
|
}
|
|
3789
3776
|
), i;
|
|
3790
|
-
},
|
|
3777
|
+
}, zr = (t) => {
|
|
3791
3778
|
var o;
|
|
3792
|
-
const { cityNameRef: e, onChange: n } = t, { readyPromise: i } =
|
|
3779
|
+
const { cityNameRef: e, onChange: n } = t, { readyPromise: i } = N(), a = Z({
|
|
3793
3780
|
name: (o = e.value) != null ? o : "",
|
|
3794
3781
|
bound: {
|
|
3795
3782
|
east: 0,
|
|
@@ -3798,7 +3785,7 @@ const as = j(function(e) {
|
|
|
3798
3785
|
west: 0
|
|
3799
3786
|
}
|
|
3800
3787
|
});
|
|
3801
|
-
return
|
|
3788
|
+
return ke(async () => {
|
|
3802
3789
|
var u, l;
|
|
3803
3790
|
const r = e.value;
|
|
3804
3791
|
if (!r)
|
|
@@ -3809,33 +3796,33 @@ const as = j(function(e) {
|
|
|
3809
3796
|
componentRestrictions: {
|
|
3810
3797
|
administrativeArea: "administrative_area_level_1"
|
|
3811
3798
|
},
|
|
3812
|
-
language:
|
|
3799
|
+
language: le
|
|
3813
3800
|
});
|
|
3814
3801
|
if (c.length !== 1)
|
|
3815
3802
|
throw new Error("MyError: multiple city found");
|
|
3816
|
-
const { geometry: d } = c[0],
|
|
3817
|
-
a.name = r, a.bound =
|
|
3803
|
+
const { geometry: d } = c[0], m = (l = (u = d.bounds) == null ? void 0 : u.toJSON()) != null ? l : d.viewport.toJSON();
|
|
3804
|
+
a.name = r, a.bound = m, n == null || n({ name: r, bound: m });
|
|
3818
3805
|
}), a;
|
|
3819
|
-
},
|
|
3820
|
-
const { supplier: e } =
|
|
3821
|
-
return e === "gmap" ?
|
|
3822
|
-
},
|
|
3823
|
-
const { cityNameRef: e } = t, n =
|
|
3806
|
+
}, Or = (t) => {
|
|
3807
|
+
const { supplier: e } = N();
|
|
3808
|
+
return e === "gmap" ? zr(t) : Rr(t);
|
|
3809
|
+
}, Xr = (t) => {
|
|
3810
|
+
const { cityNameRef: e } = t, n = Or({
|
|
3824
3811
|
cityNameRef: e,
|
|
3825
3812
|
onChange: (s) => o(s)
|
|
3826
|
-
}), { autoCompletePlaces: i, setKeyword: a, setCity: o } =
|
|
3813
|
+
}), { autoCompletePlaces: i, setKeyword: a, setCity: o } = Er({ city: n });
|
|
3827
3814
|
return { autoCompletePlaces: i, setKeyword: a, setCity: o, handleKeywordInput: (s) => {
|
|
3828
3815
|
const c = s.target;
|
|
3829
3816
|
a(c.value);
|
|
3830
3817
|
} };
|
|
3831
|
-
},
|
|
3832
|
-
const { setMap: t, mapRef: e } = Ee(), { registerFitVeiw: n, setFitView: i } =
|
|
3818
|
+
}, $r = () => {
|
|
3819
|
+
const { setMap: t, mapRef: e } = Ee(), { registerFitVeiw: n, setFitView: i } = Ze({
|
|
3833
3820
|
mapRef: e,
|
|
3834
3821
|
padding: [19, 26, 19, 26]
|
|
3835
3822
|
});
|
|
3836
3823
|
return { setMap: t, registerFitVeiw: n, setFitView: i };
|
|
3837
|
-
},
|
|
3838
|
-
const t =
|
|
3824
|
+
}, _r = () => {
|
|
3825
|
+
const t = Z({
|
|
3839
3826
|
lng: 0,
|
|
3840
3827
|
lat: 0,
|
|
3841
3828
|
name: ""
|
|
@@ -3861,8 +3848,8 @@ const as = j(function(e) {
|
|
|
3861
3848
|
setCenterPlaceByUserSpecified: a,
|
|
3862
3849
|
apiMapDistance: n
|
|
3863
3850
|
};
|
|
3864
|
-
},
|
|
3865
|
-
const { mapRef: t, setMap: e } = Ee(), { registerFitVeiw: n, setFitView: i } =
|
|
3851
|
+
}, Kr = () => {
|
|
3852
|
+
const { mapRef: t, setMap: e } = Ee(), { registerFitVeiw: n, setFitView: i } = Ze({
|
|
3866
3853
|
mapRef: t,
|
|
3867
3854
|
autoFitTimeout: 5e3,
|
|
3868
3855
|
padding: [19, 26, 19, 26]
|
|
@@ -3870,36 +3857,36 @@ const as = j(function(e) {
|
|
|
3870
3857
|
return { setMap: e, registerFitVeiw: n, setFitView: i };
|
|
3871
3858
|
};
|
|
3872
3859
|
export {
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3860
|
+
Ea as AbsoluteAddressBox,
|
|
3861
|
+
kr as AddressBox,
|
|
3862
|
+
Vr as BusinessQuotingMap,
|
|
3863
|
+
Hr as BusinessRecomendPlaceMap,
|
|
3864
|
+
Qr as BusinessTaxiEndMap,
|
|
3865
|
+
Fr as BusinessTaxiServiceMap,
|
|
3866
|
+
ae as DrivingLine,
|
|
3867
|
+
oe as DrivingRoute,
|
|
3868
|
+
be as HeycarMap,
|
|
3869
|
+
Wr as MapProvider,
|
|
3883
3870
|
Be as PassengerCircle,
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3871
|
+
or as PickupPoints,
|
|
3872
|
+
O as PlaceCircle,
|
|
3873
|
+
z as StartEndPoint,
|
|
3874
|
+
Ke as TaxiCar,
|
|
3875
|
+
qe as WalkingLine,
|
|
3876
|
+
et as WalkingRoute,
|
|
3877
|
+
Nr as WaveCircle,
|
|
3878
|
+
Xr as useBusinessMapAutoComplete,
|
|
3879
|
+
$r as useBusinessQuotingMap,
|
|
3880
|
+
_r as useBusinessRecomendPlaceMap,
|
|
3881
|
+
Kr as useBusinessTaxiServiceMap,
|
|
3882
|
+
Ur as useDrivingRoute,
|
|
3883
|
+
Te as useGeoLocation,
|
|
3897
3884
|
Ee as useHeycarMap,
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3885
|
+
Br as useMapAngle,
|
|
3886
|
+
Uo as useMapDrag,
|
|
3887
|
+
Ze as useMapFitView,
|
|
3901
3888
|
X as useMapGeometry,
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3889
|
+
Yr as useMapPlace,
|
|
3890
|
+
Jo as useMapRecomendPlace,
|
|
3891
|
+
Jr as useWalkingRoute
|
|
3905
3892
|
};
|