@heycar/heycars-map 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/business-components/AbsoluteAddressBox/AbsoluteAddressBox.d.ts +2 -0
  2. package/dist/business-components/AbsoluteAddressBox/index.d.ts +1 -0
  3. package/dist/business-components/AddressBox/AddressBox.d.ts +1 -2
  4. package/dist/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +24 -0
  5. package/dist/business-components/BusinessRecomendPlaceMap/index.d.ts +1 -0
  6. package/dist/hooks/useGeoLocation.d.ts +1 -0
  7. package/dist/hooks-business/useBusinessRecomendPlaceMap.d.ts +27 -0
  8. package/dist/hooks-business/{useBusinessMapRecomendPlace.d.ts → useLagecyMapRecomendPlace.d.ts} +2 -2
  9. package/dist/index.cjs +52 -52
  10. package/dist/index.d.ts +2 -1
  11. package/dist/index.js +1067 -996
  12. package/dist/types/interface.d.ts +1 -1
  13. package/package.json +1 -1
  14. package/src/App.tsx +3 -3
  15. package/src/business-components/AbsoluteAddressBox/AbsoluteAddressBox.tsx +8 -0
  16. package/src/business-components/AbsoluteAddressBox/index.ts +1 -0
  17. package/src/business-components/AddressBox/AddressBox.tsx +1 -1
  18. package/src/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.tsx +157 -0
  19. package/src/business-components/BusinessRecomendPlaceMap/index.ts +1 -0
  20. package/src/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.tsx +20 -3
  21. package/src/business-components/PlaceCircle/PlaceCircle.tsx +15 -19
  22. package/src/components/Demo/HeycarDemo.tsx +21 -98
  23. package/src/hooks/useGeoLocation.ts +3 -1
  24. package/src/hooks-business/useBusinessRecomendPlaceMap.ts +45 -0
  25. package/src/hooks-business/{useBusinessMapRecomendPlace.ts → useLagecyMapRecomendPlace.ts} +3 -2
  26. package/src/index.ts +2 -1
  27. package/src/types/interface.ts +11 -1
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
- import xn, { inject as xe, provide as Ce, watch as b, defineComponent as ot, h as I, watchPostEffect as B, shallowRef as P, onMounted as pe, onUnmounted as ve, computed as L, reactive as x, toRefs as st, ref as h, watchEffect as Cn } from "vue";
2
- xn.util.warn;
3
- const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9Ii44Ii8+PC9zdmc+", G = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIxN3B4IiB2aWV3Qm94PSIwIDAgMTcgMTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5qSt5ZyG5b2iPC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxjaXJjbGUgaWQ9InBhdGgtMSIgY3g9IjQuNSIgY3k9IjkuNSIgcj0iNC41Ij48L2NpcmNsZT4KICAgICAgICA8ZmlsdGVyIHg9Ii02MS4xJSIgeT0iLTYxLjElIiB3aWR0aD0iMjIyLjIlIiBoZWlnaHQ9IjIyMi4yJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0iZmlsdGVyLTIiPgogICAgICAgICAgICA8ZmVNb3JwaG9sb2d5IHJhZGl1cz0iMSIgb3BlcmF0b3I9ImRpbGF0ZSIgaW49IlNvdXJjZUFscGhhIiBy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MDApIj4KICAgICAgICAgICAgICAgIDx1c2UgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMSIgZmlsdGVyPSJ1cmwoI2ZpbHRlci0yKSIgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICA8dXNlIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSIjMzQ2RUZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=", ut = Symbol(), A = () => {
4
- const t = xe(ut);
1
+ import Sn, { inject as we, provide as xe, watch as P, defineComponent as ot, h as g, watchPostEffect as U, shallowRef as b, onMounted as me, onUnmounted as pe, computed as N, reactive as w, toRefs as st, ref as D, watchEffect as Se } from "vue";
2
+ Sn.util.warn;
3
+ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9Ii44Ii8+PC9zdmc+", k = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIxN3B4IiB2aWV3Qm94PSIwIDAgMTcgMTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5qSt5ZyG5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AgICA8L2ZpbHRlcj4KICAgIDwvZGVmcz4KICAgIDxnIGlkPSIxLjAiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLpppbpobUt5Y2z5pe255So6L2mLeaLluWKqOWFieaghyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIyOC4wMDAwMDAsIC0zMjIuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSLmpK3lnIblvaIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIzMi4wMDAwMDAsIDMyMS4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDx1c2UgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMSIgZmlsdGVyPSJ1cmwoI2ZpbHRlci0yKSIgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICA8dXNlIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSIjMzQ2RUZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=", ut = Symbol(), L = () => {
4
+ const t = we(ut);
5
5
  if (!t)
6
6
  throw new Error("MyError: useMapSupplier should be under MapProvider");
7
7
  return t;
8
- }, bn = (t) => Ce(ut, t), lt = Symbol("amap"), ye = () => xe(lt), Pn = (t) => Ce(lt, t), dt = Symbol("gmap"), je = () => xe(dt), zn = (t) => Ce(dt, t), gt = () => {
9
- const { supplier: t } = A();
10
- return t === "gmap" ? je() : ye();
11
- }, Y = (t) => {
8
+ }, hn = (t) => xe(ut, t), lt = Symbol("amap"), fe = () => we(lt), Dn = (t) => xe(lt, t), dt = Symbol("gmap"), ve = () => we(dt), Cn = (t) => xe(dt, t), gt = () => {
9
+ const { supplier: t } = L();
10
+ return t === "gmap" ? ve() : fe();
11
+ }, B = (t) => {
12
12
  const e = gt();
13
- b(
13
+ P(
14
14
  () => e.value,
15
15
  (n) => {
16
16
  n && Promise.resolve().then(t);
@@ -18,108 +18,108 @@ const ct = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbn
18
18
  );
19
19
  }, It = (t) => {
20
20
  const { registerOverlay: e, overlayRef: n } = t;
21
- b(
21
+ P(
22
22
  () => n.value,
23
23
  (i, a) => {
24
24
  e && (a && e.remove(a), i && e.add(i));
25
25
  }
26
26
  );
27
27
  };
28
- var Tn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, En = typeof global == "object" && global && global.Object === Object && global;
29
- const Zn = En;
30
- var Rn = typeof self == "object" && self && self.Object === Object && self, On = Zn || Rn || Function("return this")();
31
- const Mt = On;
32
- var kn = Mt.Symbol;
33
- const _ = kn;
34
- var mt = Object.prototype, Gn = mt.hasOwnProperty, Wn = mt.toString, ne = _ ? _.toStringTag : void 0;
35
- function Un(t) {
36
- var e = Gn.call(t, ne), n = t[ne];
28
+ var wn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, xn = typeof global == "object" && global && global.Object === Object && global;
29
+ const Pn = xn;
30
+ var bn = typeof self == "object" && self && self.Object === Object && self, zn = Pn || bn || Function("return this")();
31
+ const Mt = zn;
32
+ var Tn = Mt.Symbol;
33
+ const F = Tn;
34
+ var mt = Object.prototype, En = mt.hasOwnProperty, Rn = mt.toString, ee = F ? F.toStringTag : void 0;
35
+ function Zn(t) {
36
+ var e = En.call(t, ee), n = t[ee];
37
37
  try {
38
- t[ne] = void 0;
38
+ t[ee] = void 0;
39
39
  var i = !0;
40
40
  } catch {
41
41
  }
42
- var a = Wn.call(t);
43
- return i && (e ? t[ne] = n : delete t[ne]), a;
42
+ var a = Rn.call(t);
43
+ return i && (e ? t[ee] = n : delete t[ee]), a;
44
44
  }
45
- var Bn = Object.prototype, Yn = Bn.toString;
46
- function Vn(t) {
47
- return Yn.call(t);
45
+ var On = Object.prototype, kn = On.toString;
46
+ function Gn(t) {
47
+ return kn.call(t);
48
48
  }
49
- var Hn = "[object Null]", Qn = "[object Undefined]", ke = _ ? _.toStringTag : void 0;
50
- function Jn(t) {
51
- return t == null ? t === void 0 ? Qn : Hn : ke && ke in Object(t) ? Un(t) : Vn(t);
49
+ var Wn = "[object Null]", Un = "[object Undefined]", Oe = F ? F.toStringTag : void 0;
50
+ function Bn(t) {
51
+ return t == null ? t === void 0 ? Un : Wn : Oe && Oe in Object(t) ? Zn(t) : Gn(t);
52
52
  }
53
- function Fn(t) {
53
+ function Yn(t) {
54
54
  return t != null && typeof t == "object";
55
55
  }
56
- var Xn = "[object Symbol]";
57
- function ft(t) {
58
- return typeof t == "symbol" || Fn(t) && Jn(t) == Xn;
56
+ var Vn = "[object Symbol]";
57
+ function pt(t) {
58
+ return typeof t == "symbol" || Yn(t) && Bn(t) == Vn;
59
59
  }
60
- function $n(t, e) {
60
+ function Hn(t, e) {
61
61
  for (var n = -1, i = t == null ? 0 : t.length, a = Array(i); ++n < i; )
62
62
  a[n] = e(t[n], n, t);
63
63
  return a;
64
64
  }
65
- var _n = Array.isArray;
66
- const Kn = _n;
67
- var qn = 1 / 0, Ge = _ ? _.prototype : void 0, We = Ge ? Ge.toString : void 0;
68
- function pt(t) {
65
+ var Qn = Array.isArray;
66
+ const Jn = Qn;
67
+ var Fn = 1 / 0, ke = F ? F.prototype : void 0, Ge = ke ? ke.toString : void 0;
68
+ function ft(t) {
69
69
  if (typeof t == "string")
70
70
  return t;
71
- if (Kn(t))
72
- return $n(t, pt) + "";
73
- if (ft(t))
74
- return We ? We.call(t) : "";
71
+ if (Jn(t))
72
+ return Hn(t, ft) + "";
73
+ if (pt(t))
74
+ return Ge ? Ge.call(t) : "";
75
75
  var e = t + "";
76
- return e == "0" && 1 / t == -qn ? "-0" : e;
76
+ return e == "0" && 1 / t == -Fn ? "-0" : e;
77
77
  }
78
- var ei = /\s/;
79
- function ti(t) {
80
- for (var e = t.length; e-- && ei.test(t.charAt(e)); )
78
+ var Xn = /\s/;
79
+ function $n(t) {
80
+ for (var e = t.length; e-- && Xn.test(t.charAt(e)); )
81
81
  ;
82
82
  return e;
83
83
  }
84
- var ni = /^\s+/;
85
- function ii(t) {
86
- return t && t.slice(0, ti(t) + 1).replace(ni, "");
84
+ var _n = /^\s+/;
85
+ function Kn(t) {
86
+ return t && t.slice(0, $n(t) + 1).replace(_n, "");
87
87
  }
88
88
  function he(t) {
89
89
  var e = typeof t;
90
90
  return t != null && (e == "object" || e == "function");
91
91
  }
92
- var Ue = 0 / 0, ai = /^[-+]0x[0-9a-f]+$/i, ri = /^0b[01]+$/i, oi = /^0o[0-7]+$/i, si = parseInt;
93
- function Be(t) {
92
+ var We = 0 / 0, qn = /^[-+]0x[0-9a-f]+$/i, ei = /^0b[01]+$/i, ti = /^0o[0-7]+$/i, ni = parseInt;
93
+ function Ue(t) {
94
94
  if (typeof t == "number")
95
95
  return t;
96
- if (ft(t))
97
- return Ue;
96
+ if (pt(t))
97
+ return We;
98
98
  if (he(t)) {
99
99
  var e = typeof t.valueOf == "function" ? t.valueOf() : t;
100
100
  t = he(e) ? e + "" : e;
101
101
  }
102
102
  if (typeof t != "string")
103
103
  return t === 0 ? t : +t;
104
- t = ii(t);
105
- var n = ri.test(t);
106
- return n || oi.test(t) ? si(t.slice(2), n ? 2 : 8) : ai.test(t) ? Ue : +t;
104
+ t = Kn(t);
105
+ var n = ei.test(t);
106
+ return n || ti.test(t) ? ni(t.slice(2), n ? 2 : 8) : qn.test(t) ? We : +t;
107
107
  }
108
108
  function vt(t) {
109
- return t == null ? "" : pt(t);
109
+ return t == null ? "" : ft(t);
110
110
  }
111
- function ci(t, e, n, i) {
111
+ function ii(t, e, n, i) {
112
112
  var a = -1, r = t == null ? 0 : t.length;
113
113
  for (i && r && (n = t[++a]); ++a < r; )
114
114
  n = e(n, t[a], a, t);
115
115
  return n;
116
116
  }
117
- function ui(t) {
117
+ function ai(t) {
118
118
  return function(e) {
119
119
  return t == null ? void 0 : t[e];
120
120
  };
121
121
  }
122
- var li = {
122
+ var ri = {
123
123
  // Latin-1 Supplement block.
124
124
  À: "A",
125
125
  Á: "A",
@@ -312,85 +312,85 @@ var li = {
312
312
  œ: "oe",
313
313
  ʼn: "'n",
314
314
  ſ: "s"
315
- }, di = ui(li);
316
- const gi = di;
317
- var Ii = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Mi = "\\u0300-\\u036f", mi = "\\ufe20-\\ufe2f", fi = "\\u20d0-\\u20ff", pi = Mi + mi + fi, vi = "[" + pi + "]", yi = RegExp(vi, "g");
318
- function ji(t) {
319
- return t = vt(t), t && t.replace(Ii, gi).replace(yi, "");
315
+ }, oi = ai(ri);
316
+ const si = oi;
317
+ var ci = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, ui = "\\u0300-\\u036f", li = "\\ufe20-\\ufe2f", di = "\\u20d0-\\u20ff", gi = ui + li + di, Ii = "[" + gi + "]", Mi = RegExp(Ii, "g");
318
+ function mi(t) {
319
+ return t = vt(t), t && t.replace(ci, si).replace(Mi, "");
320
320
  }
321
- var Ai = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
322
- function Li(t) {
323
- return t.match(Ai) || [];
321
+ var pi = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
322
+ function fi(t) {
323
+ return t.match(pi) || [];
324
324
  }
325
- var Ni = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
326
- function Si(t) {
327
- return Ni.test(t);
325
+ var vi = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
326
+ function yi(t) {
327
+ return vi.test(t);
328
328
  }
329
- var yt = "\\ud800-\\udfff", hi = "\\u0300-\\u036f", Di = "\\ufe20-\\ufe2f", wi = "\\u20d0-\\u20ff", xi = hi + Di + wi, jt = "\\u2700-\\u27bf", At = "a-z\\xdf-\\xf6\\xf8-\\xff", Ci = "\\xac\\xb1\\xd7\\xf7", bi = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Pi = "\\u2000-\\u206f", zi = " \\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", Lt = "A-Z\\xc0-\\xd6\\xd8-\\xde", Ti = "\\ufe0e\\ufe0f", Nt = Ci + bi + Pi + zi, St = "['’]", Ye = "[" + Nt + "]", Ei = "[" + xi + "]", ht = "\\d+", Zi = "[" + jt + "]", Dt = "[" + At + "]", wt = "[^" + yt + Nt + ht + jt + At + Lt + "]", Ri = "\\ud83c[\\udffb-\\udfff]", Oi = "(?:" + Ei + "|" + Ri + ")", ki = "[^" + yt + "]", xt = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ct = "[\\ud800-\\udbff][\\udc00-\\udfff]", F = "[" + Lt + "]", Gi = "\\u200d", Ve = "(?:" + Dt + "|" + wt + ")", Wi = "(?:" + F + "|" + wt + ")", He = "(?:" + St + "(?:d|ll|m|re|s|t|ve))?", Qe = "(?:" + St + "(?:D|LL|M|RE|S|T|VE))?", bt = Oi + "?", Pt = "[" + Ti + "]?", Ui = "(?:" + Gi + "(?:" + [ki, xt, Ct].join("|") + ")" + Pt + bt + ")*", Bi = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Yi = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Vi = Pt + bt + Ui, Hi = "(?:" + [Zi, xt, Ct].join("|") + ")" + Vi, Qi = RegExp([
330
- F + "?" + Dt + "+" + He + "(?=" + [Ye, F, "$"].join("|") + ")",
331
- Wi + "+" + Qe + "(?=" + [Ye, F + Ve, "$"].join("|") + ")",
332
- F + "?" + Ve + "+" + He,
333
- F + "+" + Qe,
334
- Yi,
335
- Bi,
329
+ var yt = "\\ud800-\\udfff", ji = "\\u0300-\\u036f", Ai = "\\ufe20-\\ufe2f", Li = "\\u20d0-\\u20ff", Ni = ji + Ai + Li, jt = "\\u2700-\\u27bf", At = "a-z\\xdf-\\xf6\\xf8-\\xff", Si = "\\xac\\xb1\\xd7\\xf7", hi = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Di = "\\u2000-\\u206f", Ci = " \\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", Lt = "A-Z\\xc0-\\xd6\\xd8-\\xde", wi = "\\ufe0e\\ufe0f", Nt = Si + hi + Di + Ci, St = "['’]", Be = "[" + Nt + "]", xi = "[" + Ni + "]", ht = "\\d+", Pi = "[" + jt + "]", Dt = "[" + At + "]", Ct = "[^" + yt + Nt + ht + jt + At + Lt + "]", bi = "\\ud83c[\\udffb-\\udfff]", zi = "(?:" + xi + "|" + bi + ")", Ti = "[^" + yt + "]", wt = "(?:\\ud83c[\\udde6-\\uddff]){2}", xt = "[\\ud800-\\udbff][\\udc00-\\udfff]", H = "[" + Lt + "]", Ei = "\\u200d", Ye = "(?:" + Dt + "|" + Ct + ")", Ri = "(?:" + H + "|" + Ct + ")", Ve = "(?:" + St + "(?:d|ll|m|re|s|t|ve))?", He = "(?:" + St + "(?:D|LL|M|RE|S|T|VE))?", Pt = zi + "?", bt = "[" + wi + "]?", Zi = "(?:" + Ei + "(?:" + [Ti, wt, xt].join("|") + ")" + bt + Pt + ")*", Oi = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ki = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Gi = bt + Pt + Zi, Wi = "(?:" + [Pi, wt, xt].join("|") + ")" + Gi, Ui = RegExp([
330
+ H + "?" + Dt + "+" + Ve + "(?=" + [Be, H, "$"].join("|") + ")",
331
+ Ri + "+" + He + "(?=" + [Be, H + Ye, "$"].join("|") + ")",
332
+ H + "?" + Ye + "+" + Ve,
333
+ H + "+" + He,
334
+ ki,
335
+ Oi,
336
336
  ht,
337
- Hi
337
+ Wi
338
338
  ].join("|"), "g");
339
- function Ji(t) {
340
- return t.match(Qi) || [];
339
+ function Bi(t) {
340
+ return t.match(Ui) || [];
341
341
  }
342
- function Fi(t, e, n) {
343
- return t = vt(t), e = n ? void 0 : e, e === void 0 ? Si(t) ? Ji(t) : Li(t) : t.match(e) || [];
342
+ function Yi(t, e, n) {
343
+ return t = vt(t), e = n ? void 0 : e, e === void 0 ? yi(t) ? Bi(t) : fi(t) : t.match(e) || [];
344
344
  }
345
- var Xi = "['’]", $i = RegExp(Xi, "g");
346
- function _i(t) {
345
+ var Vi = "['’]", Hi = RegExp(Vi, "g");
346
+ function Qi(t) {
347
347
  return function(e) {
348
- return ci(Fi(ji(e).replace($i, "")), t, "");
348
+ return ii(Yi(mi(e).replace(Hi, "")), t, "");
349
349
  };
350
350
  }
351
- var Ki = function() {
351
+ var Ji = function() {
352
352
  return Mt.Date.now();
353
353
  };
354
- const Se = Ki;
355
- var qi = "Expected a function", ea = Math.max, ta = Math.min;
356
- function na(t, e, n) {
357
- var i, a, r, o, s, u, l = 0, d = !1, c = !1, g = !0;
354
+ const Ne = Ji;
355
+ var Fi = "Expected a function", Xi = Math.max, $i = Math.min;
356
+ function _i(t, e, n) {
357
+ var i, a, r, o, s, u, l = 0, d = !1, c = !1, I = !0;
358
358
  if (typeof t != "function")
359
- throw new TypeError(qi);
360
- e = Be(e) || 0, he(n) && (d = !!n.leading, c = "maxWait" in n, r = c ? ea(Be(n.maxWait) || 0, e) : r, g = "trailing" in n ? !!n.trailing : g);
359
+ throw new TypeError(Fi);
360
+ e = Ue(e) || 0, he(n) && (d = !!n.leading, c = "maxWait" in n, r = c ? Xi(Ue(n.maxWait) || 0, e) : r, I = "trailing" in n ? !!n.trailing : I);
361
361
  function M(S) {
362
- var R = i, Q = a;
363
- return i = a = void 0, l = S, o = t.apply(Q, R), o;
362
+ var O = i, q = a;
363
+ return i = a = void 0, l = S, o = t.apply(q, O), o;
364
364
  }
365
365
  function m(S) {
366
366
  return l = S, s = setTimeout(j, e), d ? M(S) : o;
367
367
  }
368
368
  function p(S) {
369
- var R = S - u, Q = S - l, k = e - R;
370
- return c ? ta(k, r - Q) : k;
369
+ var O = S - u, q = S - l, Ze = e - O;
370
+ return c ? $i(Ze, r - q) : Ze;
371
371
  }
372
- function f(S) {
373
- var R = S - u, Q = S - l;
374
- return u === void 0 || R >= e || R < 0 || c && Q >= r;
372
+ function y(S) {
373
+ var O = S - u, q = S - l;
374
+ return u === void 0 || O >= e || O < 0 || c && q >= r;
375
375
  }
376
376
  function j() {
377
- var S = Se();
378
- if (f(S))
379
- return y(S);
377
+ var S = Ne();
378
+ if (y(S))
379
+ return f(S);
380
380
  s = setTimeout(j, p(S));
381
381
  }
382
- function y(S) {
383
- return s = void 0, g && i ? M(S) : (i = a = void 0, o);
382
+ function f(S) {
383
+ return s = void 0, I && i ? M(S) : (i = a = void 0, o);
384
384
  }
385
- function w() {
385
+ function h() {
386
386
  s !== void 0 && clearTimeout(s), l = 0, i = u = a = s = void 0;
387
387
  }
388
388
  function z() {
389
- return s === void 0 ? o : y(Se());
389
+ return s === void 0 ? o : f(Ne());
390
390
  }
391
- function H() {
392
- var S = Se(), R = f(S);
393
- if (i = arguments, a = this, u = S, R) {
391
+ function A() {
392
+ var S = Ne(), O = y(S);
393
+ if (i = arguments, a = this, u = S, O) {
394
394
  if (s === void 0)
395
395
  return m(u);
396
396
  if (c)
@@ -398,24 +398,24 @@ function na(t, e, n) {
398
398
  }
399
399
  return s === void 0 && (s = setTimeout(j, e)), o;
400
400
  }
401
- return H.cancel = w, H.flush = z, H;
401
+ return A.cancel = h, A.flush = z, A;
402
402
  }
403
- var ia = _i(function(t, e, n) {
403
+ var Ki = Qi(function(t, e, n) {
404
404
  return t + (n ? "-" : "") + e.toLowerCase();
405
405
  });
406
- const zt = ia;
406
+ const zt = Ki;
407
407
  function v(t) {
408
408
  return ot({
409
409
  name: t.name,
410
410
  inheritAttrs: !1,
411
411
  setup(e, n) {
412
412
  const { attrs: i, slots: a, emit: r } = n, o = i, s = r, u = (d, c) => {
413
- const g = zt(d);
414
- s(d, c), d !== g && s(g, c);
413
+ const I = zt(d);
414
+ s(d, c), d !== I && s(I, c);
415
415
  }, l = new Proxy(a, {
416
- get(d, c, g) {
416
+ get(d, c, I) {
417
417
  var M;
418
- return (M = Reflect.get(d, c, g)) != null ? M : Reflect.get(o, c);
418
+ return (M = Reflect.get(d, c, I)) != null ? M : Reflect.get(o, c);
419
419
  }
420
420
  });
421
421
  return t(o, { ...n, slots: l, emit: u });
@@ -430,12 +430,12 @@ function V(t) {
430
430
  props: e,
431
431
  setup(n, i) {
432
432
  const a = n, { slots: r, emit: o } = i, s = o, u = (d, c) => {
433
- const g = zt(d);
434
- s(d, c), d !== g && s(g, c);
433
+ const I = zt(d);
434
+ s(d, c), d !== I && s(I, c);
435
435
  }, l = new Proxy(r, {
436
- get(d, c, g) {
436
+ get(d, c, I) {
437
437
  var M;
438
- return (M = Reflect.get(d, c, g)) != null ? M : Reflect.get(a, c);
438
+ return (M = Reflect.get(d, c, I)) != null ? M : Reflect.get(a, c);
439
439
  }
440
440
  });
441
441
  return t(a, { ...i, slots: l, emit: u });
@@ -443,21 +443,21 @@ function V(t) {
443
443
  })
444
444
  };
445
445
  }
446
- const Z = I, be = "zh-CN", Je = (t) => t != null && typeof t == "object" && Number.isFinite(t.lat) && Number.isFinite(t.lng);
447
- var aa = typeof WeakMap == "function", Fe = Object.keys;
448
- function le(t, e) {
446
+ const R = g, Pe = "zh-CN", Qe = (t) => t != null && typeof t == "object" && Number.isFinite(t.lat) && Number.isFinite(t.lng);
447
+ var qi = typeof WeakMap == "function", Je = Object.keys;
448
+ function ce(t, e) {
449
449
  return t === e || t !== t && e !== e;
450
450
  }
451
- function Xe(t) {
451
+ function Fe(t) {
452
452
  return t.constructor === Object || t.constructor == null;
453
453
  }
454
- function $e(t) {
454
+ function Xe(t) {
455
455
  return !!t && typeof t.then == "function";
456
456
  }
457
- function _e(t) {
457
+ function $e(t) {
458
458
  return !!(t && t.$$typeof);
459
459
  }
460
- function ra() {
460
+ function ea() {
461
461
  var t = [];
462
462
  return {
463
463
  delete: function(e) {
@@ -482,20 +482,20 @@ function ra() {
482
482
  }
483
483
  };
484
484
  }
485
- var oa = function(t) {
485
+ var ta = function(t) {
486
486
  return t ? function() {
487
487
  return /* @__PURE__ */ new WeakMap();
488
- } : ra;
489
- }(aa);
488
+ } : ea;
489
+ }(qi);
490
490
  function Tt(t) {
491
491
  return function(n) {
492
492
  var i = t || n;
493
493
  return function(r, o, s, u, l, d, c) {
494
- c === void 0 && (c = oa());
495
- var g = !!r && typeof r == "object", M = !!o && typeof o == "object";
496
- if (g !== M)
494
+ c === void 0 && (c = ta());
495
+ var I = !!r && typeof r == "object", M = !!o && typeof o == "object";
496
+ if (I !== M)
497
497
  return !1;
498
- if (!g && !M)
498
+ if (!I && !M)
499
499
  return i(r, o, c);
500
500
  var m = c.get(r);
501
501
  if (m && c.get(o))
@@ -506,7 +506,7 @@ function Tt(t) {
506
506
  };
507
507
  };
508
508
  }
509
- function sa(t, e, n, i) {
509
+ function na(t, e, n, i) {
510
510
  var a = t.length;
511
511
  if (e.length !== a)
512
512
  return !1;
@@ -515,46 +515,46 @@ function sa(t, e, n, i) {
515
515
  return !1;
516
516
  return !0;
517
517
  }
518
- function ca(t, e, n, i) {
518
+ function ia(t, e, n, i) {
519
519
  var a = t.size === e.size;
520
520
  if (a && t.size) {
521
521
  var r = {}, o = 0;
522
522
  t.forEach(function(s, u) {
523
523
  if (a) {
524
524
  var l = !1, d = 0;
525
- e.forEach(function(c, g) {
526
- !l && !r[d] && (l = n(u, g, o, d, t, e, i) && n(s, c, u, g, t, e, i), l && (r[d] = !0)), d++;
525
+ e.forEach(function(c, I) {
526
+ !l && !r[d] && (l = n(u, I, o, d, t, e, i) && n(s, c, u, I, t, e, i), l && (r[d] = !0)), d++;
527
527
  }), o++, a = l;
528
528
  }
529
529
  });
530
530
  }
531
531
  return a;
532
532
  }
533
- var ua = "_owner", la = Function.prototype.bind.call(Function.prototype.call, Object.prototype.hasOwnProperty);
534
- function Ke(t, e, n, i) {
535
- var a = Fe(t), r = a.length;
536
- if (Fe(e).length !== r)
533
+ var aa = "_owner", ra = Function.prototype.bind.call(Function.prototype.call, Object.prototype.hasOwnProperty);
534
+ function _e(t, e, n, i) {
535
+ var a = Je(t), r = a.length;
536
+ if (Je(e).length !== r)
537
537
  return !1;
538
538
  if (r)
539
539
  for (var o = void 0; r-- > 0; ) {
540
- if (o = a[r], o === ua) {
541
- var s = _e(t), u = _e(e);
540
+ if (o = a[r], o === aa) {
541
+ var s = $e(t), u = $e(e);
542
542
  if ((s || u) && s !== u)
543
543
  return !1;
544
544
  }
545
- if (!la(e, o) || !n(t[o], e[o], o, o, t, e, i))
545
+ if (!ra(e, o) || !n(t[o], e[o], o, o, t, e, i))
546
546
  return !1;
547
547
  }
548
548
  return !0;
549
549
  }
550
- var da = function() {
550
+ var oa = function() {
551
551
  return /foo/g.flags === "g" ? function(e, n) {
552
552
  return e.source === n.source && e.flags === n.flags;
553
553
  } : function(e, n) {
554
554
  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;
555
555
  };
556
556
  }();
557
- function ga(t, e, n, i) {
557
+ function sa(t, e, n, i) {
558
558
  var a = t.size === e.size;
559
559
  if (a && t.size) {
560
560
  var r = {};
@@ -569,8 +569,8 @@ function ga(t, e, n, i) {
569
569
  }
570
570
  return a;
571
571
  }
572
- var Ia = typeof Map == "function", Ma = typeof Set == "function", qe = Object.prototype.valueOf;
573
- function oe(t) {
572
+ var ca = typeof Map == "function", ua = typeof Set == "function", Ke = Object.prototype.valueOf;
573
+ function ae(t) {
574
574
  var e = (
575
575
  /* eslint-disable no-use-before-define */
576
576
  typeof t == "function" ? t(n) : function(i, a, r, o, s, u, l) {
@@ -581,39 +581,39 @@ function oe(t) {
581
581
  if (i === a)
582
582
  return !0;
583
583
  if (i && a && typeof i == "object" && typeof a == "object") {
584
- if (Xe(i) && Xe(a))
585
- return Ke(i, a, e, r);
584
+ if (Fe(i) && Fe(a))
585
+ return _e(i, a, e, r);
586
586
  var o = Array.isArray(i), s = Array.isArray(a);
587
- return o || s ? o === s && sa(i, a, e, r) : (o = i instanceof Date, s = a instanceof Date, o || s ? o === s && le(i.getTime(), a.getTime()) : (o = i instanceof RegExp, s = a instanceof RegExp, o || s ? o === s && da(i, a) : $e(i) || $e(a) ? i === a : Ia && (o = i instanceof Map, s = a instanceof Map, o || s) ? o === s && ca(i, a, e, r) : Ma && (o = i instanceof Set, s = a instanceof Set, o || s) ? o === s && ga(i, a, e, r) : i.valueOf !== qe || a.valueOf !== qe ? le(i.valueOf(), a.valueOf()) : Ke(i, a, e, r)));
587
+ return o || s ? o === s && na(i, a, e, r) : (o = i instanceof Date, s = a instanceof Date, o || s ? o === s && ce(i.getTime(), a.getTime()) : (o = i instanceof RegExp, s = a instanceof RegExp, o || s ? o === s && oa(i, a) : Xe(i) || Xe(a) ? i === a : ca && (o = i instanceof Map, s = a instanceof Map, o || s) ? o === s && ia(i, a, e, r) : ua && (o = i instanceof Set, s = a instanceof Set, o || s) ? o === s && sa(i, a, e, r) : i.valueOf !== Ke || a.valueOf !== Ke ? ce(i.valueOf(), a.valueOf()) : _e(i, a, e, r)));
588
588
  }
589
589
  return i !== i && a !== a;
590
590
  }
591
591
  return n;
592
592
  }
593
- oe();
594
- oe(function() {
595
- return le;
593
+ ae();
594
+ ae(function() {
595
+ return ce;
596
596
  });
597
- oe(Tt());
598
- oe(Tt(le));
599
- const C = ([t, e]) => ({
597
+ ae(Tt());
598
+ ae(Tt(ce));
599
+ const x = ([t, e]) => ({
600
600
  lng: t,
601
601
  lat: e
602
- }), Ae = (t) => {
602
+ }), ye = (t) => {
603
603
  const e = [], n = t.split("*");
604
604
  for (const [i, a] of n.entries())
605
605
  a && e.push({ value: a, type: i % 2 === 0 ? "normal" : "emphasize" });
606
606
  return e;
607
- }, Et = (t) => `${t.charAt(2).toLocaleLowerCase()}${t.slice(3)}`, Zt = (t) => t.slice(2).toLowerCase(), ma = (t) => {
607
+ }, Et = (t) => `${t.charAt(2).toLocaleLowerCase()}${t.slice(3)}`, Rt = (t) => t.slice(2).toLowerCase(), la = (t) => {
608
608
  switch (t) {
609
609
  case "en":
610
610
  return "style_en";
611
611
  case "zh":
612
612
  return "style_zh_cn";
613
613
  }
614
- }, D = (t) => [t.lng, t.lat], Rt = (t) => (...e) => {
614
+ }, C = (t) => [t.lng, t.lat], Zt = (t) => (...e) => {
615
615
  setTimeout(() => t == null ? void 0 : t(...e));
616
- }, fa = (t) => {
616
+ }, da = (t) => {
617
617
  const { address_components: e } = t, n = e.find(
618
618
  (a) => a.types[0] === "administrative_area_level_1" || a.types[0] === "administrative_area_level_2"
619
619
  );
@@ -622,44 +622,44 @@ const C = ([t, e]) => ({
622
622
  const i = e.findIndex((a) => a.types[0] === "country");
623
623
  if (i > 0)
624
624
  return e[i - 1].long_name;
625
- }, Ot = oe((t) => (e, n) => Je(e) || Je(n) ? new google.maps.LatLng(e).equals(new google.maps.LatLng(n)) : t(e, n));
625
+ }, Ot = ae((t) => (e, n) => Qe(e) || Qe(n) ? new google.maps.LatLng(e).equals(new google.maps.LatLng(n)) : t(e, n));
626
626
  function kt() {
627
627
  let t;
628
628
  return function(n) {
629
629
  return Ot(n, t) || (t = n), t;
630
630
  };
631
631
  }
632
- function se(t, e, n) {
632
+ function re(t, e, n) {
633
633
  const i = kt();
634
- return b(() => i(t()), e, {
634
+ return P(() => i(t()), e, {
635
635
  immediate: !1,
636
636
  flush: "post",
637
637
  ...n
638
638
  });
639
639
  }
640
- function q(t, e, n) {
640
+ function $(t, e, n) {
641
641
  const i = kt();
642
- return b(() => i(t()), e, {
642
+ return P(() => i(t()), e, {
643
643
  immediate: !0,
644
644
  flush: "post",
645
645
  ...n
646
646
  });
647
647
  }
648
- function pa(t) {
648
+ function ga(t) {
649
649
  return `set${t.charAt(0).toUpperCase()}${t.slice(1)}`;
650
650
  }
651
- function va(t, e, n, i) {
651
+ function Ia(t, e, n, i) {
652
652
  const a = n.map(
653
653
  ({ name: r }) => () => e[r]
654
654
  );
655
- b(
655
+ P(
656
656
  a,
657
657
  (r, o) => {
658
658
  const s = t.value;
659
659
  if (s)
660
660
  for (const [u, l] of r.entries()) {
661
- const { name: d, defaultValue: c } = n[u], g = o[u];
662
- Ot(l, g) || s[pa(d)](l != null ? l : c);
661
+ const { name: d, defaultValue: c } = n[u], I = o[u];
662
+ Ot(l, I) || s[ga(d)](l != null ? l : c);
663
663
  }
664
664
  },
665
665
  {
@@ -669,20 +669,20 @@ function va(t, e, n, i) {
669
669
  }
670
670
  );
671
671
  }
672
- function Pe(t, e, n, i) {
673
- return va(t, e, n, {
672
+ function be(t, e, n, i) {
673
+ return Ia(t, e, n, {
674
674
  immediate: !1,
675
675
  ...i
676
676
  });
677
677
  }
678
- function ae(t, e, n, i) {
679
- B((a) => {
678
+ function ne(t, e, n, i) {
679
+ U((a) => {
680
680
  const r = t == null ? void 0 : t.value;
681
681
  if (!r)
682
682
  return;
683
683
  const o = [];
684
684
  for (const s of i) {
685
- const u = Et(s), l = Zt(s), d = (c) => n(u, c);
685
+ const u = Et(s), l = Rt(s), d = (c) => n(u, c);
686
686
  r.on(l, d), o.push(() => r == null ? void 0 : r.off(l, d));
687
687
  }
688
688
  a(() => {
@@ -691,14 +691,14 @@ function ae(t, e, n, i) {
691
691
  });
692
692
  });
693
693
  }
694
- function K(t, e, n, i) {
695
- B((a) => {
694
+ function X(t, e, n, i) {
695
+ U((a) => {
696
696
  const r = t == null ? void 0 : t.value;
697
697
  if (!r)
698
698
  return;
699
699
  const o = [];
700
700
  for (const s of i) {
701
- const u = Et(s), l = Zt(s), d = (g) => n(u, g), c = r.addListener(l, d);
701
+ const u = Et(s), l = Rt(s), d = (I) => n(u, I), c = r.addListener(l, d);
702
702
  o.push(() => google.maps.event.removeListener(c));
703
703
  }
704
704
  a(() => {
@@ -707,18 +707,18 @@ function K(t, e, n, i) {
707
707
  });
708
708
  });
709
709
  }
710
- const W = v(function(e, { emit: n }) {
711
- const { registerOverlay: i } = e, a = P(), r = ye();
712
- return pe(() => {
710
+ const G = v(function(e, { emit: n }) {
711
+ const { registerOverlay: i } = e, a = b(), r = fe();
712
+ return me(() => {
713
713
  a.value = new AMap.Marker({ ...e });
714
- }), ve(() => {
714
+ }), pe(() => {
715
715
  var o;
716
716
  (o = a.value) == null || o.setMap(null);
717
- }), It({ registerOverlay: i, overlayRef: a }), B(() => {
717
+ }), It({ registerOverlay: i, overlayRef: a }), U(() => {
718
718
  var s;
719
719
  const o = r == null ? void 0 : r.value;
720
720
  o && ((s = a.value) == null || s.setMap(o));
721
- }), Pe(a, e, [
721
+ }), be(a, e, [
722
722
  { name: "anchor", defaultValue: "" },
723
723
  { name: "offset", defaultValue: [0, 0] },
724
724
  { name: "clickable", defaultValue: !1 },
@@ -732,18 +732,18 @@ const W = v(function(e, { emit: n }) {
732
732
  { name: "content", defaultValue: "" },
733
733
  { name: "title", defaultValue: "" },
734
734
  { name: "extData", defaultValue: "" }
735
- ]), ae(a, e, n, ["onClick"]), () => null;
736
- }), U = v(function(e, { emit: n }) {
737
- const { registerOverlay: i } = e, a = P(), r = je(), o = (s) => n(s, { target: a.value });
738
- return It({ registerOverlay: i, overlayRef: a }), pe(() => {
735
+ ]), ne(a, e, n, ["onClick"]), () => null;
736
+ }), W = v(function(e, { emit: n }) {
737
+ const { registerOverlay: i } = e, a = b(), r = ve(), o = (s) => n(s, { target: a.value });
738
+ return It({ registerOverlay: i, overlayRef: a }), me(() => {
739
739
  const { registerOverlay: s, ...u } = e;
740
740
  a.value = new google.maps.marker.AdvancedMarkerView({ ...u }), a.value.addListener;
741
- }), ve(() => {
741
+ }), pe(() => {
742
742
  a.value && (a.value.map = null);
743
- }), B(() => {
743
+ }), U(() => {
744
744
  const s = r == null ? void 0 : r.value;
745
745
  !s || !a.value || (a.value.map = s);
746
- }), se(
746
+ }), re(
747
747
  () => {
748
748
  const { content: s, registerOverlay: u, ...l } = e;
749
749
  return l;
@@ -751,7 +751,7 @@ const W = v(function(e, { emit: n }) {
751
751
  (s) => {
752
752
  a.value && Object.assign(a.value, s);
753
753
  }
754
- ), b(
754
+ ), P(
755
755
  () => e.content,
756
756
  (s) => {
757
757
  a.value && (a.value.content = s);
@@ -759,17 +759,17 @@ const W = v(function(e, { emit: n }) {
759
759
  {
760
760
  flush: "post"
761
761
  }
762
- ), K(a, e, o, ["onClick"]), () => null;
762
+ ), X(a, e, o, ["onClick"]), () => null;
763
763
  }), T = (t, e, n) => {
764
764
  const { class: i, ...a } = e != null ? e : {}, r = document.createElement(t);
765
765
  return i && (r.className = i), Object.assign(r, a), n && (r.innerHTML = n), r;
766
766
  }, Gt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+";
767
767
  var Wt = "rgf09w0";
768
768
  const Ut = v(function(e) {
769
- const n = L(() => `
769
+ const n = N(() => `
770
770
  <img src="${Gt}" class="${Wt}">
771
771
  `);
772
- return () => I(W, {
772
+ return () => g(G, {
773
773
  attrs: {
774
774
  position: e.position,
775
775
  content: n.value,
@@ -777,26 +777,26 @@ const Ut = v(function(e) {
777
777
  }
778
778
  });
779
779
  }), Bt = v(function(e) {
780
- const n = L(() => T("img", {
780
+ const n = N(() => T("img", {
781
781
  class: Wt,
782
782
  src: Gt
783
783
  }));
784
- return () => I(U, {
784
+ return () => g(W, {
785
785
  attrs: {
786
- position: C(e.position),
786
+ position: x(e.position),
787
787
  content: n.value
788
788
  }
789
789
  });
790
790
  });
791
791
  v(function(e) {
792
- const n = A();
793
- return () => Z(n.supplier === "gmap" ? Bt : Ut, {
792
+ const n = L();
793
+ return () => R(n.supplier === "gmap" ? Bt : Ut, {
794
794
  attrs: e
795
795
  });
796
796
  });
797
797
  var Yt = "_15rq2xn1", Vt = "_15rq2xn0", Ht = "_15rq2xn3", Qt = "_15rq2xn2", Jt = "_15rq2xn4", Ft = "_15rq2xn6", Xt = "_15rq2xn5";
798
- const ya = v(function(e) {
799
- const n = L(() => {
798
+ const Ma = v(function(e) {
799
+ const n = N(() => {
800
800
  var i;
801
801
  return `
802
802
  <div class="${Vt}">
@@ -808,23 +808,23 @@ const ya = v(function(e) {
808
808
  <img class="${Jt}" src="${ct}" >
809
809
  </div>
810
810
  <div class="${Xt}"></div>
811
- <img src="${G}" class="${Ft}">
811
+ <img src="${k}" class="${Ft}">
812
812
  </div>
813
813
  `;
814
814
  });
815
- return () => e.type === "locator" ? I(Ut, {
815
+ return () => e.type === "locator" ? g(Ut, {
816
816
  attrs: {
817
817
  position: e.position
818
818
  }
819
- }) : I(W, {
819
+ }) : g(G, {
820
820
  attrs: {
821
821
  position: e.position,
822
822
  content: n.value,
823
823
  anchor: "bottom-center"
824
824
  }
825
825
  });
826
- }), ja = v(function(e) {
827
- const n = L(() => {
826
+ }), ma = v(function(e) {
827
+ const n = N(() => {
828
828
  var i;
829
829
  return T("div", {
830
830
  class: Vt
@@ -837,26 +837,26 @@ const ya = v(function(e) {
837
837
  <img class="${Jt}" src="${ct}" >
838
838
  </div>
839
839
  <div class="${Xt}"></div>
840
- <img src="${G}" class="${Ft}">
840
+ <img src="${k}" class="${Ft}">
841
841
  `);
842
842
  });
843
- return () => e.type === "locator" ? I(Bt, {
843
+ return () => e.type === "locator" ? g(Bt, {
844
844
  attrs: {
845
845
  position: e.position
846
846
  }
847
- }) : I(U, {
847
+ }) : g(W, {
848
848
  attrs: {
849
- position: C(e.position),
849
+ position: x(e.position),
850
850
  content: n.value
851
851
  }
852
852
  });
853
- }), Pr = v(function(e) {
854
- const n = A();
855
- return () => Z(n.supplier === "gmap" ? ja : ya, {
853
+ }), pa = v(function(e) {
854
+ const n = L();
855
+ return () => R(n.supplier === "gmap" ? ma : Ma, {
856
856
  attrs: e
857
857
  });
858
858
  });
859
- var De = {}, Aa = {
859
+ var De = {}, fa = {
860
860
  get exports() {
861
861
  return De;
862
862
  },
@@ -867,13 +867,13 @@ var De = {}, Aa = {
867
867
  (function(t, e) {
868
868
  (function(n, i) {
869
869
  t.exports = i();
870
- })(Tn, function() {
870
+ })(wn, function() {
871
871
  function n(c) {
872
- var g = [];
873
- return c.AMapUI && g.push(i(c.AMapUI)), c.Loca && g.push(a(c.Loca)), Promise.all(g);
872
+ var I = [];
873
+ return c.AMapUI && I.push(i(c.AMapUI)), c.Loca && I.push(a(c.Loca)), Promise.all(I);
874
874
  }
875
875
  function i(c) {
876
- return new Promise(function(g, M) {
876
+ return new Promise(function(I, M) {
877
877
  var m = [];
878
878
  if (c.plugins)
879
879
  for (var p = 0; p < c.plugins.length; p += 1)
@@ -882,63 +882,63 @@ var De = {}, Aa = {
882
882
  M("前次请求 AMapUI 失败");
883
883
  else if (s.AMapUI === r.notload) {
884
884
  s.AMapUI = r.loading, o.AMapUI.version = c.version || o.AMapUI.version, p = o.AMapUI.version;
885
- var f = document.body || document.head, j = document.createElement("script");
886
- j.type = "text/javascript", j.src = "https://webapi.amap.com/ui/" + p + "/main.js", j.onerror = function(y) {
885
+ var y = document.body || document.head, j = document.createElement("script");
886
+ j.type = "text/javascript", j.src = "https://webapi.amap.com/ui/" + p + "/main.js", j.onerror = function(f) {
887
887
  s.AMapUI = r.failed, M("请求 AMapUI 失败");
888
888
  }, j.onload = function() {
889
889
  if (s.AMapUI = r.loaded, m.length)
890
890
  window.AMapUI.loadUI(m, function() {
891
- for (var y = 0, w = m.length; y < w; y++) {
892
- var z = m[y].split("/").slice(-1)[0];
893
- window.AMapUI[z] = arguments[y];
891
+ for (var f = 0, h = m.length; f < h; f++) {
892
+ var z = m[f].split("/").slice(-1)[0];
893
+ window.AMapUI[z] = arguments[f];
894
894
  }
895
- for (g(); u.AMapUI.length; )
895
+ for (I(); u.AMapUI.length; )
896
896
  u.AMapUI.splice(0, 1)[0]();
897
897
  });
898
898
  else
899
- for (g(); u.AMapUI.length; )
899
+ for (I(); u.AMapUI.length; )
900
900
  u.AMapUI.splice(0, 1)[0]();
901
- }, f.appendChild(j);
901
+ }, y.appendChild(j);
902
902
  } else
903
903
  s.AMapUI === r.loaded ? c.version && c.version !== o.AMapUI.version ? M("不允许多个版本 AMapUI 混用") : m.length ? window.AMapUI.loadUI(m, function() {
904
- for (var y = 0, w = m.length; y < w; y++) {
905
- var z = m[y].split("/").slice(-1)[0];
906
- window.AMapUI[z] = arguments[y];
904
+ for (var f = 0, h = m.length; f < h; f++) {
905
+ var z = m[f].split("/").slice(-1)[0];
906
+ window.AMapUI[z] = arguments[f];
907
907
  }
908
- g();
909
- }) : g() : c.version && c.version !== o.AMapUI.version ? M("不允许多个版本 AMapUI 混用") : u.AMapUI.push(function(y) {
910
- y ? M(y) : m.length ? window.AMapUI.loadUI(m, function() {
911
- for (var w = 0, z = m.length; w < z; w++) {
912
- var H = m[w].split("/").slice(-1)[0];
913
- window.AMapUI[H] = arguments[w];
908
+ I();
909
+ }) : I() : c.version && c.version !== o.AMapUI.version ? M("不允许多个版本 AMapUI 混用") : u.AMapUI.push(function(f) {
910
+ f ? M(f) : m.length ? window.AMapUI.loadUI(m, function() {
911
+ for (var h = 0, z = m.length; h < z; h++) {
912
+ var A = m[h].split("/").slice(-1)[0];
913
+ window.AMapUI[A] = arguments[h];
914
914
  }
915
- g();
916
- }) : g();
915
+ I();
916
+ }) : I();
917
917
  });
918
918
  });
919
919
  }
920
920
  function a(c) {
921
- return new Promise(function(g, M) {
921
+ return new Promise(function(I, M) {
922
922
  if (s.Loca === r.failed)
923
923
  M("前次请求 Loca 失败");
924
924
  else if (s.Loca === r.notload) {
925
925
  s.Loca = r.loading, o.Loca.version = c.version || o.Loca.version;
926
- var m = o.Loca.version, p = o.AMap.version.startsWith("2"), f = m.startsWith("2");
927
- if (p && !f || !p && f)
926
+ var m = o.Loca.version, p = o.AMap.version.startsWith("2"), y = m.startsWith("2");
927
+ if (p && !y || !p && y)
928
928
  M("JSAPI 与 Loca 版本不对应!!");
929
929
  else {
930
- p = o.key, f = document.body || document.head;
930
+ p = o.key, y = document.body || document.head;
931
931
  var j = document.createElement("script");
932
- j.type = "text/javascript", j.src = "https://webapi.amap.com/loca?v=" + m + "&key=" + p, j.onerror = function(y) {
932
+ j.type = "text/javascript", j.src = "https://webapi.amap.com/loca?v=" + m + "&key=" + p, j.onerror = function(f) {
933
933
  s.Loca = r.failed, M("请求 AMapUI 失败");
934
934
  }, j.onload = function() {
935
- for (s.Loca = r.loaded, g(); u.Loca.length; )
935
+ for (s.Loca = r.loaded, I(); u.Loca.length; )
936
936
  u.Loca.splice(0, 1)[0]();
937
- }, f.appendChild(j);
937
+ }, y.appendChild(j);
938
938
  }
939
939
  } else
940
- s.Loca === r.loaded ? c.version && c.version !== o.Loca.version ? M("不允许多个版本 Loca 混用") : g() : c.version && c.version !== o.Loca.version ? M("不允许多个版本 Loca 混用") : u.Loca.push(function(y) {
941
- y ? M(y) : M();
940
+ s.Loca === r.loaded ? c.version && c.version !== o.Loca.version ? M("不允许多个版本 Loca 混用") : I() : c.version && c.version !== o.Loca.version ? M("不允许多个版本 Loca 混用") : u.Loca.push(function(f) {
941
+ f ? M(f) : M();
942
942
  });
943
943
  });
944
944
  }
@@ -952,22 +952,22 @@ var De = {}, Aa = {
952
952
  typeof c == "function" && (s.AMap === r.loaded ? c(window.AMap) : l.push(c));
953
953
  };
954
954
  return { load: function(c) {
955
- return new Promise(function(g, M) {
955
+ return new Promise(function(I, M) {
956
956
  if (s.AMap == r.failed)
957
957
  M("");
958
958
  else if (s.AMap == r.notload) {
959
- var m = c.key, p = c.version, f = c.plugins;
960
- m ? (window.AMap && location.host !== "lbs.amap.com" && M("禁止多种API加载方式混用"), o.key = m, o.AMap.version = p || o.AMap.version, o.AMap.plugins = f || o.AMap.plugins, s.AMap = r.loading, p = document.body || document.head, window.___onAPILoaded = function(y) {
961
- if (delete window.___onAPILoaded, y)
962
- s.AMap = r.failed, M(y);
959
+ var m = c.key, p = c.version, y = c.plugins;
960
+ m ? (window.AMap && location.host !== "lbs.amap.com" && M("禁止多种API加载方式混用"), o.key = m, o.AMap.version = p || o.AMap.version, o.AMap.plugins = y || o.AMap.plugins, s.AMap = r.loading, p = document.body || document.head, window.___onAPILoaded = function(f) {
961
+ if (delete window.___onAPILoaded, f)
962
+ s.AMap = r.failed, M(f);
963
963
  else
964
964
  for (s.AMap = r.loaded, n(c).then(function() {
965
- g(window.AMap);
965
+ I(window.AMap);
966
966
  }).catch(M); l.length; )
967
967
  l.splice(0, 1)[0]();
968
- }, f = document.createElement("script"), f.type = "text/javascript", f.src = "https://webapi.amap.com/maps?callback=___onAPILoaded&v=" + o.AMap.version + "&key=" + m + "&plugin=" + o.AMap.plugins.join(","), f.onerror = function(y) {
969
- s.AMap = r.failed, M(y);
970
- }, p.appendChild(f)) : M("请填写key");
968
+ }, y = document.createElement("script"), y.type = "text/javascript", y.src = "https://webapi.amap.com/maps?callback=___onAPILoaded&v=" + o.AMap.version + "&key=" + m + "&plugin=" + o.AMap.plugins.join(","), y.onerror = function(f) {
969
+ s.AMap = r.failed, M(f);
970
+ }, p.appendChild(y)) : M("请填写key");
971
971
  } else if (s.AMap == r.loaded)
972
972
  if (c.key && c.key !== o.key)
973
973
  M("多个不一致的 key");
@@ -979,10 +979,10 @@ var De = {}, Aa = {
979
979
  o.AMap.plugins.indexOf(c.plugins[p]) == -1 && m.push(c.plugins[p]);
980
980
  m.length ? window.AMap.plugin(m, function() {
981
981
  n(c).then(function() {
982
- g(window.AMap);
982
+ I(window.AMap);
983
983
  }).catch(M);
984
984
  }) : n(c).then(function() {
985
- g(window.AMap);
985
+ I(window.AMap);
986
986
  }).catch(M);
987
987
  }
988
988
  else if (c.key && c.key !== o.key)
@@ -997,10 +997,10 @@ var De = {}, Aa = {
997
997
  d(function() {
998
998
  j.length ? window.AMap.plugin(j, function() {
999
999
  n(c).then(function() {
1000
- g(window.AMap);
1000
+ I(window.AMap);
1001
1001
  }).catch(M);
1002
1002
  }) : n(c).then(function() {
1003
- g(window.AMap);
1003
+ I(window.AMap);
1004
1004
  }).catch(M);
1005
1005
  });
1006
1006
  }
@@ -1013,8 +1013,8 @@ var De = {}, Aa = {
1013
1013
  }, u = { AMap: [], AMapUI: [], Loca: [] };
1014
1014
  } };
1015
1015
  });
1016
- })(Aa);
1017
- var La = function t(e, n) {
1016
+ })(fa);
1017
+ var va = function t(e, n) {
1018
1018
  if (e === n)
1019
1019
  return !0;
1020
1020
  if (e && n && typeof e == "object" && typeof n == "object") {
@@ -1049,12 +1049,12 @@ var La = function t(e, n) {
1049
1049
  }
1050
1050
  return e !== e && n !== n;
1051
1051
  };
1052
- const et = "__googleMapsScriptId";
1053
- var X;
1052
+ const qe = "__googleMapsScriptId";
1053
+ var Q;
1054
1054
  (function(t) {
1055
1055
  t[t.INITIALIZED = 0] = "INITIALIZED", t[t.LOADING = 1] = "LOADING", t[t.SUCCESS = 2] = "SUCCESS", t[t.FAILURE = 3] = "FAILURE";
1056
- })(X || (X = {}));
1057
- class J {
1056
+ })(Q || (Q = {}));
1057
+ class Y {
1058
1058
  /**
1059
1059
  * Creates an instance of Loader using [[LoaderOptions]]. No defaults are set
1060
1060
  * using this library, instead the defaults are set by the Google Maps
@@ -1064,13 +1064,13 @@ class J {
1064
1064
  * const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
1065
1065
  * ```
1066
1066
  */
1067
- constructor({ apiKey: e, authReferrerPolicy: n, channel: i, client: a, id: r = et, language: o, libraries: s = [], mapIds: u, nonce: l, region: d, retries: c = 3, url: g = "https://maps.googleapis.com/maps/api/js", version: M }) {
1068
- 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 = r || et, this.language = o, this.libraries = s, this.mapIds = u, this.nonce = l, this.region = d, this.retries = c, this.url = g, this.version = M, J.instance) {
1069
- if (!La(this.options, J.instance.options))
1070
- throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(J.instance.options)}`);
1071
- return J.instance;
1067
+ constructor({ apiKey: e, authReferrerPolicy: n, channel: i, client: a, id: r = qe, language: o, libraries: s = [], mapIds: u, nonce: l, region: d, retries: c = 3, url: I = "https://maps.googleapis.com/maps/api/js", version: M }) {
1068
+ 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 = r || qe, this.language = o, this.libraries = s, this.mapIds = u, this.nonce = l, this.region = d, this.retries = c, this.url = I, this.version = M, Y.instance) {
1069
+ if (!va(this.options, Y.instance.options))
1070
+ throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Y.instance.options)}`);
1071
+ return Y.instance;
1072
1072
  }
1073
- J.instance = this;
1073
+ Y.instance = this;
1074
1074
  }
1075
1075
  get options() {
1076
1076
  return {
@@ -1089,7 +1089,7 @@ class J {
1089
1089
  };
1090
1090
  }
1091
1091
  get status() {
1092
- return this.errors.length ? X.FAILURE : this.done ? X.SUCCESS : this.loading ? X.LOADING : X.INITIALIZED;
1092
+ return this.errors.length ? Q.FAILURE : this.done ? Q.SUCCESS : this.loading ? Q.LOADING : Q.INITIALIZED;
1093
1093
  }
1094
1094
  get failed() {
1095
1095
  return this.done && !this.loading && this.errors.length >= this.retries + 1;
@@ -1180,27 +1180,27 @@ class J {
1180
1180
  }
1181
1181
  }
1182
1182
  }
1183
- const Na = [
1183
+ const ya = [
1184
1184
  "AMap.Geolocation",
1185
1185
  "AMap.Geocoder",
1186
1186
  "AMap.PlaceSearch",
1187
1187
  "AMap.Driving",
1188
1188
  "AMap.Walking"
1189
- ], Sa = ["marker", "places", "geometry"];
1190
- var re = /* @__PURE__ */ ((t) => (t.LOADING = "LOADING", t.FAILURE = "FAILURE", t.SUCCESS = "SUCCESS", t))(re || {});
1191
- const ha = (t) => {
1189
+ ], ja = ["marker", "places", "geometry"];
1190
+ var ie = /* @__PURE__ */ ((t) => (t.LOADING = "LOADING", t.FAILURE = "FAILURE", t.SUCCESS = "SUCCESS", t))(ie || {});
1191
+ const Aa = (t) => {
1192
1192
  const { onChange: e } = t;
1193
1193
  let n, i;
1194
1194
  const a = new Promise((s, u) => {
1195
1195
  n = s, i = u;
1196
- }), r = P(
1196
+ }), r = b(
1197
1197
  "LOADING"
1198
1198
  /* LOADING */
1199
- ), o = L(() => {
1200
- const { onChange: s, loading: u, fallback: l, apiKey: d, apiSecret: c, apiServiceHost: g, version: M, ...m } = t;
1199
+ ), o = N(() => {
1200
+ const { onChange: s, loading: u, fallback: l, apiKey: d, apiSecret: c, apiServiceHost: I, version: M, ...m } = t;
1201
1201
  return { ...m, key: d, version: M != null ? M : "2.0.5.16" };
1202
1202
  });
1203
- return q(
1203
+ return $(
1204
1204
  () => o.value,
1205
1205
  (s) => {
1206
1206
  const u = (l) => {
@@ -1223,22 +1223,22 @@ const ha = (t) => {
1223
1223
  );
1224
1224
  }
1225
1225
  ), { statusRef: r, readyPromise: a };
1226
- }, Da = (t) => {
1226
+ }, La = (t) => {
1227
1227
  const { onChange: e } = t;
1228
1228
  let n, i;
1229
1229
  const a = new Promise((s, u) => {
1230
1230
  n = s, i = u;
1231
- }), r = P(
1231
+ }), r = b(
1232
1232
  "LOADING"
1233
1233
  /* LOADING */
1234
- ), o = L(() => {
1234
+ ), o = N(() => {
1235
1235
  const { onChange: s, fallback: u, loading: l, ...d } = t;
1236
1236
  return d;
1237
1237
  });
1238
- return q(
1238
+ return $(
1239
1239
  () => o.value,
1240
1240
  (s) => {
1241
- const u = new J(s), l = (d) => {
1241
+ const u = new Y(s), l = (d) => {
1242
1242
  r.value = d, d === "SUCCESS" && n(), d === "FAILURE" && i(), e == null || e(r.value);
1243
1243
  };
1244
1244
  l(
@@ -1256,31 +1256,31 @@ const ha = (t) => {
1256
1256
  );
1257
1257
  }
1258
1258
  ), { statusRef: r, readyPromise: a };
1259
- }, wa = (t) => {
1259
+ }, Na = (t) => {
1260
1260
  const { gmapKey: e, amapKey: n, amapSecret: i, amapServiceHost: a, supplier: r, language: o, onChange: s } = t;
1261
- return r === "gmap" ? Da({
1261
+ return r === "gmap" ? La({
1262
1262
  apiKey: e,
1263
1263
  language: o,
1264
1264
  version: "beta",
1265
- libraries: Sa,
1265
+ libraries: ja,
1266
1266
  onChange: s
1267
- }) : ha({
1267
+ }) : Aa({
1268
1268
  apiKey: n,
1269
1269
  apiSecret: i,
1270
1270
  apiServiceHost: a,
1271
- plugins: Na,
1271
+ plugins: ya,
1272
1272
  onChange: s
1273
1273
  });
1274
1274
  };
1275
- var xa = "_1d8ur7t0";
1276
- const Ca = v(function(e, { slots: n, emit: i }) {
1275
+ var Sa = "_1d8ur7t0";
1276
+ const ha = v(function(e, { slots: n, emit: i }) {
1277
1277
  const {
1278
1278
  onDragStart: a,
1279
1279
  onDragEnd: r,
1280
1280
  mapRef: o,
1281
1281
  vectorMapForeign: s = "style_zh_cn",
1282
1282
  ...u
1283
- } = e, l = L(() => ({
1283
+ } = e, l = N(() => ({
1284
1284
  dragEnable: !!e.dragEnable,
1285
1285
  zoomEnable: !!e.zoomEnable,
1286
1286
  jogEnable: !!e.jogEnable,
@@ -1288,23 +1288,23 @@ const Ca = v(function(e, { slots: n, emit: i }) {
1288
1288
  rotateEnable: !!e.rotateEnable,
1289
1289
  animateEnable: !!e.animateEnable,
1290
1290
  keyboardEnable: !!e.keyboardEnable
1291
- })), d = P(), c = P();
1292
- return Pn(c), B(() => {
1291
+ })), d = b(), c = b();
1292
+ return Dn(c), U(() => {
1293
1293
  if (c.value || !d.value)
1294
1294
  return;
1295
- const g = new AMap.Map(d.value, {
1295
+ const I = new AMap.Map(d.value, {
1296
1296
  ...u,
1297
1297
  vectorMapForeign: s,
1298
1298
  mapStyle: "amap://styles/95498a904992a4c0b866a3e4d7729682"
1299
1299
  });
1300
- c.value = g, o == null || o(g);
1301
- }), se(
1300
+ c.value = I, o == null || o(I);
1301
+ }), re(
1302
1302
  () => l.value,
1303
- (g) => {
1303
+ (I) => {
1304
1304
  var M;
1305
- (M = c.value) == null || M.setStatus(g);
1305
+ (M = c.value) == null || M.setStatus(I);
1306
1306
  }
1307
- ), Pe(c, e, [
1307
+ ), be(c, e, [
1308
1308
  { name: "center", defaultValue: [0, 0] },
1309
1309
  { name: "zooms", defaultValue: [0, 0] },
1310
1310
  { name: "zoom", defaultValue: 0 },
@@ -1317,65 +1317,65 @@ const Ca = v(function(e, { slots: n, emit: i }) {
1317
1317
  { name: "pitch", defaultValue: 0 },
1318
1318
  { name: "mask", defaultValue: [] },
1319
1319
  { name: "labelRejectMask", defaultValue: !1 }
1320
- ]), ae(c, e, i, ["onDragStart", "onDragEnd"]), () => {
1321
- var g;
1322
- return I("div", { ref: d, class: xa }, (g = n.default) == null ? void 0 : g.call(n));
1320
+ ]), ne(c, e, i, ["onDragStart", "onDragEnd"]), () => {
1321
+ var I;
1322
+ return g("div", { ref: d, class: Sa }, (I = n.default) == null ? void 0 : I.call(n));
1323
1323
  };
1324
1324
  });
1325
- let ce = "user";
1326
- const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1327
- ce = "api";
1325
+ let oe = "user";
1326
+ const Da = () => oe, $t = () => ({ executeMapApi: (e) => {
1327
+ oe = "api";
1328
1328
  try {
1329
1329
  e(), setTimeout(() => {
1330
- ce = "user";
1330
+ oe = "user";
1331
1331
  }, 100);
1332
1332
  } catch (n) {
1333
- throw ce = "user", n;
1333
+ throw oe = "user", n;
1334
1334
  }
1335
- } }), Pa = v(function(e, { slots: n, emit: i }) {
1336
- const a = e.mapRef, r = L(() => {
1337
- const { mapRef: c, onDragStart: g, onDragEnd: M, ...m } = e;
1335
+ } }), Ca = v(function(e, { slots: n, emit: i }) {
1336
+ const a = e.mapRef, r = N(() => {
1337
+ const { mapRef: c, onDragStart: I, onDragEnd: M, ...m } = e;
1338
1338
  return m;
1339
- }), o = r.value, s = P(), u = P(), { executeMapApi: l } = $t(), d = (c) => i(c, { target: u.value });
1340
- return zn(u), B(() => {
1339
+ }), o = r.value, s = b(), u = b(), { executeMapApi: l } = $t(), d = (c) => i(c, { target: u.value });
1340
+ return Cn(u), U(() => {
1341
1341
  if (u.value || !s.value)
1342
1342
  return;
1343
1343
  let c;
1344
1344
  l(() => {
1345
1345
  c = new google.maps.Map(s.value, { ...o });
1346
1346
  }), u.value = c, a == null || a(c);
1347
- }), se(
1347
+ }), re(
1348
1348
  () => r.value,
1349
1349
  (c) => {
1350
1350
  l(() => {
1351
- var g;
1352
- return (g = u.value) == null ? void 0 : g.setOptions({ ...c });
1351
+ var I;
1352
+ return (I = u.value) == null ? void 0 : I.setOptions({ ...c });
1353
1353
  });
1354
1354
  }
1355
- ), K(u, e, d, ["onDragStart", "onDragEnd"]), () => {
1355
+ ), X(u, e, d, ["onDragStart", "onDragEnd"]), () => {
1356
1356
  var c;
1357
- return I("div", { ref: s }, (c = n.default) == null ? void 0 : c.call(n));
1357
+ return g("div", { ref: s }, (c = n.default) == null ? void 0 : c.call(n));
1358
1358
  };
1359
- }), zr = V(function(e, {
1359
+ }), xr = V(function(e, {
1360
1360
  slots: n
1361
1361
  }) {
1362
1362
  const {
1363
1363
  statusRef: i,
1364
1364
  readyPromise: a
1365
- } = wa(e), r = new Proxy(e, {
1365
+ } = Na(e), r = new Proxy(e, {
1366
1366
  get(o, s, u) {
1367
1367
  return s === "status" ? i.value : s === "readyPromise" ? a : Reflect.get(o, s, u);
1368
1368
  }
1369
1369
  });
1370
- return bn(r), () => {
1370
+ return hn(r), () => {
1371
1371
  var o;
1372
- return I("div", [(o = n.default) == null ? void 0 : o.call(n)]);
1372
+ return g("div", [(o = n.default) == null ? void 0 : o.call(n)]);
1373
1373
  };
1374
- }).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier", "language"]), _t = V(function(e, {
1374
+ }).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier", "language"]), ze = V(function(e, {
1375
1375
  slots: n,
1376
1376
  emit: i
1377
1377
  }) {
1378
- const a = A(), r = ({
1378
+ const a = L(), r = ({
1379
1379
  target: s
1380
1380
  }) => {
1381
1381
  const {
@@ -1393,7 +1393,7 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1393
1393
  i("dragEnd", [u, l]);
1394
1394
  };
1395
1395
  return () => {
1396
- var p, f, j;
1396
+ var p, y, j;
1397
1397
  const {
1398
1398
  supplier: s,
1399
1399
  gmapId: u,
@@ -1401,21 +1401,21 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1401
1401
  status: d
1402
1402
  } = a, {
1403
1403
  mapRef: c,
1404
- center: g,
1404
+ center: I,
1405
1405
  zoom: M
1406
1406
  } = e;
1407
- if (d === re.LOADING)
1407
+ if (d === ie.LOADING)
1408
1408
  return (p = n.loading) == null ? void 0 : p.call(n);
1409
- if (d === re.FAILURE)
1410
- return (f = n.fallback) == null ? void 0 : f.call(n);
1409
+ if (d === ie.FAILURE)
1410
+ return (y = n.fallback) == null ? void 0 : y.call(n);
1411
1411
  const m = (j = n.default) == null ? void 0 : j.call(n);
1412
1412
  switch (s) {
1413
1413
  case "gmap":
1414
- return I(Pa, {
1414
+ return g(Ca, {
1415
1415
  attrs: {
1416
1416
  mapRef: c,
1417
1417
  mapId: u,
1418
- center: g ? C(g) : void 0,
1418
+ center: I ? x(I) : void 0,
1419
1419
  zoom: M
1420
1420
  },
1421
1421
  on: {
@@ -1423,11 +1423,11 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1423
1423
  }
1424
1424
  }, [m]);
1425
1425
  default:
1426
- return I(Ca, {
1426
+ return g(ha, {
1427
1427
  attrs: {
1428
1428
  mapRef: c,
1429
- vectorMapForeign: ma(l),
1430
- center: g,
1429
+ vectorMapForeign: la(l),
1430
+ center: I,
1431
1431
  zoom: M
1432
1432
  },
1433
1433
  on: {
@@ -1436,22 +1436,22 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1436
1436
  }, [m]);
1437
1437
  }
1438
1438
  };
1439
- }).props(["center", "fallback", "loading", "mapRef", "zoom"]), ie = v(function(e) {
1440
- const n = P(), i = ye();
1441
- return pe(() => {
1439
+ }).props(["center", "fallback", "loading", "mapRef", "zoom"]), te = v(function(e) {
1440
+ const n = b(), i = fe();
1441
+ return me(() => {
1442
1442
  n.value = new AMap.Polyline({ ...e });
1443
- }), ve(() => {
1443
+ }), pe(() => {
1444
1444
  var a;
1445
1445
  (a = n.value) == null || a.setMap(null);
1446
- }), B(() => {
1446
+ }), U(() => {
1447
1447
  var r;
1448
1448
  const a = i == null ? void 0 : i.value;
1449
1449
  a && ((r = n.value) == null || r.setMap(a));
1450
- }), Pe(n, e, [
1450
+ }), be(n, e, [
1451
1451
  { name: "path", defaultValue: [[0, 0]] },
1452
1452
  { name: "extData", defaultValue: void 0 },
1453
1453
  { name: "draggable", defaultValue: !1 }
1454
- ]), se(
1454
+ ]), re(
1455
1455
  () => {
1456
1456
  const { path: a, extData: r, draggable: o, ...s } = e;
1457
1457
  return s;
@@ -1461,28 +1461,28 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1461
1461
  (r = n.value) == null || r.setOptions({ ...a });
1462
1462
  }
1463
1463
  ), () => null;
1464
- }), ue = v(function(e) {
1465
- const n = P(), i = je();
1466
- return pe(() => {
1464
+ }), se = v(function(e) {
1465
+ const n = b(), i = ve();
1466
+ return me(() => {
1467
1467
  n.value = new google.maps.Polyline({ ...e });
1468
- }), ve(() => {
1468
+ }), pe(() => {
1469
1469
  var a;
1470
1470
  (a = n.value) == null || a.setMap(null);
1471
- }), B(() => {
1471
+ }), U(() => {
1472
1472
  var r;
1473
1473
  const a = i == null ? void 0 : i.value;
1474
1474
  a && ((r = n.value) == null || r.setMap(a));
1475
- }), se(
1475
+ }), re(
1476
1476
  () => ({ ...e }),
1477
1477
  (a) => {
1478
1478
  var r;
1479
1479
  (r = n.value) == null || r.setOptions({ ...a });
1480
1480
  }
1481
1481
  ), () => null;
1482
- }), za = v(function(e) {
1482
+ }), wa = v(function(e) {
1483
1483
  return () => {
1484
1484
  const n = window.innerWidth * 0.01, i = 2.5 * n, a = 0.35 * n, r = 0.6 * n, o = 1 * n, s = 0.75 * n, u = e.done ? "#96B2CA" : "#487BF4", l = e.done ? "#7693AF" : "#4175F1", d = e.done ? "#7693AF" : "#6C95F5";
1485
- return I("div", [I(ie, {
1485
+ return g("div", [g(te, {
1486
1486
  attrs: {
1487
1487
  path: e.path,
1488
1488
  strokeWeight: i + 2 * a + 2 * o,
@@ -1491,7 +1491,7 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1491
1491
  lineJoin: "round",
1492
1492
  lineCap: "round"
1493
1493
  }
1494
- }), I(ie, {
1494
+ }), g(te, {
1495
1495
  attrs: {
1496
1496
  path: e.path,
1497
1497
  strokeWeight: i + 2 * a,
@@ -1502,7 +1502,7 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1502
1502
  strokeStyle: "dashed",
1503
1503
  strokeDasharray: [s, s * 0.5]
1504
1504
  }
1505
- }), I(ie, {
1505
+ }), g(te, {
1506
1506
  attrs: {
1507
1507
  path: e.path,
1508
1508
  strokeWeight: i,
@@ -1511,7 +1511,7 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1511
1511
  lineJoin: "round",
1512
1512
  lineCap: "round"
1513
1513
  }
1514
- }), I(ie, {
1514
+ }), g(te, {
1515
1515
  attrs: {
1516
1516
  showDir: !0,
1517
1517
  path: e.path,
@@ -1523,18 +1523,18 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1523
1523
  }
1524
1524
  })]);
1525
1525
  };
1526
- }), Ta = v(function(e) {
1527
- const n = L(() => e.path.map(C));
1526
+ }), xa = v(function(e) {
1527
+ const n = N(() => e.path.map(x));
1528
1528
  return () => {
1529
1529
  const i = window.innerWidth * 0.01, a = 10 * i, r = 2.5 * i, o = 0.35 * i, s = 0.75 * i, u = 1 * i, l = e.done ? "#96B2CA" : "#487BF4", d = e.done ? "#7693AF" : "#4175F1", c = e.done ? "#7693AF" : "#6C95F5";
1530
- return I("div", [I(ue, {
1530
+ return g("div", [g(se, {
1531
1531
  attrs: {
1532
1532
  path: n.value,
1533
1533
  strokeWeight: r + 2 * o + 2 * u,
1534
1534
  strokeOpacity: 1,
1535
1535
  strokeColor: d
1536
1536
  }
1537
- }), I(ue, {
1537
+ }), g(se, {
1538
1538
  attrs: {
1539
1539
  path: n.value,
1540
1540
  icons: [{
@@ -1549,7 +1549,7 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1549
1549
  offset: `${r / 2}px`
1550
1550
  }]
1551
1551
  }
1552
- }), I(ue, {
1552
+ }), g(se, {
1553
1553
  attrs: {
1554
1554
  path: n.value,
1555
1555
  strokeWeight: r,
@@ -1568,14 +1568,14 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1568
1568
  }
1569
1569
  })]);
1570
1570
  };
1571
- }), Le = v(function(e) {
1572
- const n = A();
1573
- return () => e.path.length ? Z(n.supplier === "gmap" ? Ta : za, {
1571
+ }), je = v(function(e) {
1572
+ const n = L();
1573
+ return () => e.path.length ? R(n.supplier === "gmap" ? xa : wa, {
1574
1574
  attrs: e
1575
1575
  }) : null;
1576
- }), Kt = (t) => {
1577
- const e = x({ path: [], distance: 0, duration: 0 }), n = new AMap.Driving({});
1578
- return q(
1576
+ }), _t = (t) => {
1577
+ const e = w({ path: [], distance: 0, duration: 0 }), n = new AMap.Driving({});
1578
+ return $(
1579
1579
  () => ({ ...t }),
1580
1580
  ({ from: i, to: a }) => {
1581
1581
  n.search(
@@ -1588,8 +1588,8 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1588
1588
  let s = [];
1589
1589
  const l = o.routes[0];
1590
1590
  for (const d of l.steps) {
1591
- const g = d.path.map(({ lng: M, lat: m }) => [M, m]);
1592
- s = s.concat(g);
1591
+ const I = d.path.map(({ lng: M, lat: m }) => [M, m]);
1592
+ s = s.concat(I);
1593
1593
  }
1594
1594
  e.path = s, e.distance = l.distance, e.duration = l.time;
1595
1595
  return;
@@ -1604,9 +1604,9 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1604
1604
  );
1605
1605
  }
1606
1606
  ), e;
1607
- }, qt = (t) => {
1608
- const e = x({ path: [], distance: 0, duration: 0 }), n = new google.maps.DirectionsService();
1609
- return q(
1607
+ }, Kt = (t) => {
1608
+ const e = w({ path: [], distance: 0, duration: 0 }), n = new google.maps.DirectionsService();
1609
+ return $(
1610
1610
  () => ({ ...t }),
1611
1611
  ({ from: i, to: a }) => {
1612
1612
  n.route(
@@ -1619,15 +1619,15 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1619
1619
  var s, u, l, d;
1620
1620
  switch (o) {
1621
1621
  case google.maps.DirectionsStatus.OK: {
1622
- let c = [], g = 0, M = 0;
1623
- const m = r.routes[0], p = m.overview_path.map((f) => [
1624
- f.lng(),
1625
- f.lat()
1622
+ let c = [], I = 0, M = 0;
1623
+ const m = r.routes[0], p = m.overview_path.map((y) => [
1624
+ y.lng(),
1625
+ y.lat()
1626
1626
  ]);
1627
1627
  c = c.concat(p);
1628
- for (const f of m.legs)
1629
- g += (u = (s = f.distance) == null ? void 0 : s.value) != null ? u : 0, M += (d = (l = f.duration) == null ? void 0 : l.value) != null ? d : 0;
1630
- e.path = c, e.distance = g, e.duration = M;
1628
+ for (const y of m.legs)
1629
+ I += (u = (s = y.distance) == null ? void 0 : s.value) != null ? u : 0, M += (d = (l = y.duration) == null ? void 0 : l.value) != null ? d : 0;
1630
+ e.path = c, e.distance = I, e.duration = M;
1631
1631
  return;
1632
1632
  }
1633
1633
  case google.maps.DirectionsStatus.ZERO_RESULTS:
@@ -1641,76 +1641,76 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1641
1641
  );
1642
1642
  }
1643
1643
  ), e;
1644
- }, Tr = (t) => {
1645
- const { supplier: e } = A();
1646
- return e === "gmap" ? qt(t) : Kt(t);
1647
- }, Ea = (t, e, n) => {
1644
+ }, Pr = (t) => {
1645
+ const { supplier: e } = L();
1646
+ return e === "gmap" ? Kt(t) : _t(t);
1647
+ }, Pa = (t, e, n) => {
1648
1648
  if (!n)
1649
1649
  return 0;
1650
1650
  const { x: i, y: a } = n.lngLatToContainer(t), { x: r, y: o } = n.lngLatToContainer(e), s = Math.atan2(a - o, r - i);
1651
1651
  return (Math.PI / 2 - s) / Math.PI * 180;
1652
- }, en = (t) => L(() => {
1652
+ }, qt = (t) => N(() => {
1653
1653
  const { map: e, path: n } = t, [i, a] = n;
1654
1654
  if (!(!i || !a || !e))
1655
- return Ea(i, a, e);
1656
- }), tn = (t) => L(() => {
1655
+ return Pa(i, a, e);
1656
+ }), en = (t) => N(() => {
1657
1657
  const { path: e } = t, [n, i] = e;
1658
1658
  if (!(!n || !i))
1659
- return google.maps.geometry.spherical.computeHeading(C(n), C(i));
1660
- }), Er = (t) => {
1661
- const { supplier: e } = A();
1662
- return e === "gmap" ? tn(t) : en(t);
1663
- }, Za = v(function(e, {
1659
+ return google.maps.geometry.spherical.computeHeading(x(n), x(i));
1660
+ }), br = (t) => {
1661
+ const { supplier: e } = L();
1662
+ return e === "gmap" ? en(t) : qt(t);
1663
+ }, ba = v(function(e, {
1664
1664
  slots: n
1665
1665
  }) {
1666
- const i = ye(), {
1666
+ const i = fe(), {
1667
1667
  path: a,
1668
1668
  distance: r,
1669
1669
  duration: o
1670
- } = st(Kt(e)), s = en(x({
1670
+ } = st(_t(e)), s = qt(w({
1671
1671
  path: a,
1672
1672
  map: i
1673
1673
  }));
1674
1674
  return () => {
1675
1675
  var u;
1676
- return I("div", [(u = n.render) == null ? void 0 : u.call(n, x({
1676
+ return g("div", [(u = n.render) == null ? void 0 : u.call(n, w({
1677
1677
  path: a,
1678
1678
  angle: s,
1679
1679
  distance: r,
1680
1680
  duration: o
1681
1681
  }))]);
1682
1682
  };
1683
- }), Ra = v(function(e, {
1683
+ }), za = v(function(e, {
1684
1684
  slots: n
1685
1685
  }) {
1686
- const i = je(), {
1686
+ const i = ve(), {
1687
1687
  path: a,
1688
1688
  distance: r,
1689
1689
  duration: o
1690
- } = st(qt(e)), s = tn(x({
1690
+ } = st(Kt(e)), s = en(w({
1691
1691
  path: a,
1692
1692
  map: i
1693
1693
  }));
1694
1694
  return () => {
1695
1695
  var u;
1696
- return I("div", [(u = n.render) == null ? void 0 : u.call(n, x({
1696
+ return g("div", [(u = n.render) == null ? void 0 : u.call(n, w({
1697
1697
  path: a,
1698
1698
  angle: s,
1699
1699
  distance: r,
1700
1700
  duration: o
1701
1701
  }))]);
1702
1702
  };
1703
- }), Ne = v(function(e, {
1703
+ }), Ae = v(function(e, {
1704
1704
  slots: n
1705
1705
  }) {
1706
1706
  const {
1707
1707
  supplier: i
1708
- } = A();
1709
- return () => Z(i === "gmap" ? Ra : Za, {
1708
+ } = L();
1709
+ return () => R(i === "gmap" ? za : ba, {
1710
1710
  attrs: e,
1711
1711
  scopedSlots: n
1712
1712
  });
1713
- }), Oa = 20, ka = (t) => {
1713
+ }), Ta = 20, Ea = (t) => {
1714
1714
  const { mapRef: e, autoFitTimeout: n } = t, i = /* @__PURE__ */ new Set();
1715
1715
  let a;
1716
1716
  const r = () => {
@@ -1718,8 +1718,8 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1718
1718
  const u = e.value;
1719
1719
  if (!u)
1720
1720
  return;
1721
- const l = window.innerWidth / 100, [d, c, g, M] = (m = t.padding) != null ? m : [0, 0, 0, 0];
1722
- console.log([...i]), u.setFitView([...i], !1, [d * l, g * l, M * l, c * l]);
1721
+ const l = window.innerWidth / 100, [d, c, I, M] = (m = t.padding) != null ? m : [0, 0, 0, 0];
1722
+ console.log([...i]), u.setFitView([...i], !1, [d * l, I * l, M * l, c * l]);
1723
1723
  }, o = {
1724
1724
  add: (u) => {
1725
1725
  i.add(u);
@@ -1729,7 +1729,7 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1729
1729
  },
1730
1730
  setFitView: r
1731
1731
  };
1732
- return ae(
1732
+ return ne(
1733
1733
  e,
1734
1734
  {},
1735
1735
  () => {
@@ -1740,7 +1740,7 @@ const ba = () => ce, $t = () => ({ executeMapApi: (e) => {
1740
1740
  ["onDragEnd"]
1741
1741
  ), { registerFitVeiw: o, setFitView: r };
1742
1742
  };
1743
- class Ga extends Set {
1743
+ class Ra extends Set {
1744
1744
  getBound() {
1745
1745
  const e = new google.maps.LatLngBounds();
1746
1746
  for (const n of this.values()) {
@@ -1750,18 +1750,18 @@ class Ga extends Set {
1750
1750
  return e;
1751
1751
  }
1752
1752
  }
1753
- const Wa = (t) => {
1754
- const { mapRef: e, autoFitTimeout: n } = t, { executeMapApi: i } = $t(), a = new Ga();
1753
+ const Za = (t) => {
1754
+ const { mapRef: e, autoFitTimeout: n } = t, { executeMapApi: i } = $t(), a = new Ra();
1755
1755
  let r;
1756
1756
  const o = () => {
1757
- var f;
1757
+ var y;
1758
1758
  const d = e.value;
1759
1759
  if (!d)
1760
1760
  return;
1761
- const c = window.innerWidth / 100, [g, M, m, p] = (f = t.padding) != null ? f : [0, 0, 0, 0];
1761
+ const c = window.innerWidth / 100, [I, M, m, p] = (y = t.padding) != null ? y : [0, 0, 0, 0];
1762
1762
  i(
1763
1763
  () => d.fitBounds(a.getBound(), {
1764
- top: g * c,
1764
+ top: I * c,
1765
1765
  right: M * c,
1766
1766
  bottom: m * c,
1767
1767
  left: p * c
@@ -1776,33 +1776,33 @@ const Wa = (t) => {
1776
1776
  },
1777
1777
  setFitView: o
1778
1778
  }, u = (d) => {
1779
- const c = ba();
1779
+ const c = Da();
1780
1780
  console.log("handleMoveEndOrZomEnd name, eventSource = ", d, c), !(!n || c !== "user") && (r && clearTimeout(r), r = setTimeout(() => {
1781
1781
  r = void 0, o();
1782
1782
  }, n));
1783
- }, l = na(u, Oa);
1784
- return K(e, {}, u, [
1783
+ }, l = _i(u, Ta);
1784
+ return X(e, {}, u, [
1785
1785
  "onDragEnd"
1786
- ]), K(e, {}, l, [
1786
+ ]), X(e, {}, l, [
1787
1787
  "onZoom_changed"
1788
1788
  ]), { registerFitVeiw: s, setFitView: o };
1789
- }, ze = (t) => {
1790
- const { supplier: e } = A();
1791
- return e === "gmap" ? Wa(t) : ka(t);
1789
+ }, Te = (t) => {
1790
+ const { supplier: e } = L();
1791
+ return e === "gmap" ? Za(t) : Ea(t);
1792
1792
  };
1793
1793
  v(function(e, {
1794
1794
  slots: n
1795
1795
  }) {
1796
- const i = gt(), a = ze({
1796
+ const i = gt(), a = Te({
1797
1797
  ...e,
1798
1798
  mapRef: i
1799
1799
  });
1800
1800
  return () => {
1801
1801
  var r;
1802
- return I("div", [(r = n.render) == null ? void 0 : r.call(n, a)]);
1802
+ return g("div", [(r = n.render) == null ? void 0 : r.call(n, a)]);
1803
1803
  };
1804
1804
  });
1805
- const Ua = v(function(e, {
1805
+ const Oa = v(function(e, {
1806
1806
  slots: n
1807
1807
  }) {
1808
1808
  const {
@@ -1810,12 +1810,12 @@ const Ua = v(function(e, {
1810
1810
  } = e, {
1811
1811
  setFitView: a
1812
1812
  } = i;
1813
- return Y(a), () => {
1813
+ return B(a), () => {
1814
1814
  var r;
1815
- return I("div", [(r = n.default) == null ? void 0 : r.call(n)]);
1815
+ return g("div", [(r = n.default) == null ? void 0 : r.call(n)]);
1816
1816
  };
1817
- }), nn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjg0NDciIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkY4QjRBIiBvZmZzZXQ9IjUwLjU5NiUiLz48c3RvcCBzdG9wLWNvb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zUgMCAxMSAwUzAgNC45MDEgMCAxMC45NDdjMCAzLjkxOCAyLjA2OCA3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
1818
+ function ka(t, e, n) {
1819
1819
  return e in t ? Object.defineProperty(t, e, {
1820
1820
  value: n,
1821
1821
  enumerable: !0,
@@ -1823,7 +1823,7 @@ function Ba(t, e, n) {
1823
1823
  writable: !0
1824
1824
  }) : t[e] = n, t;
1825
1825
  }
1826
- function tt(t, e) {
1826
+ function et(t, e) {
1827
1827
  var n = Object.keys(t);
1828
1828
  if (Object.getOwnPropertySymbols) {
1829
1829
  var i = Object.getOwnPropertySymbols(t);
@@ -1833,26 +1833,26 @@ function tt(t, e) {
1833
1833
  }
1834
1834
  return n;
1835
1835
  }
1836
- function nt(t) {
1836
+ function tt(t) {
1837
1837
  for (var e = 1; e < arguments.length; e++) {
1838
1838
  var n = arguments[e] != null ? arguments[e] : {};
1839
- e % 2 ? tt(Object(n), !0).forEach(function(i) {
1840
- Ba(t, i, n[i]);
1841
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : tt(Object(n)).forEach(function(i) {
1839
+ e % 2 ? et(Object(n), !0).forEach(function(i) {
1840
+ ka(t, i, n[i]);
1841
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : et(Object(n)).forEach(function(i) {
1842
1842
  Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(n, i));
1843
1843
  });
1844
1844
  }
1845
1845
  return t;
1846
1846
  }
1847
- var Ya = (t, e, n) => {
1847
+ var Ga = (t, e, n) => {
1848
1848
  for (var i of Object.keys(t)) {
1849
1849
  var a;
1850
1850
  if (t[i] !== ((a = e[i]) !== null && a !== void 0 ? a : n[i]))
1851
1851
  return !1;
1852
1852
  }
1853
1853
  return !0;
1854
- }, ee = (t) => (e) => {
1855
- var n = t.defaultClassName, i = nt(nt({}, t.defaultVariants), e);
1854
+ }, _ = (t) => (e) => {
1855
+ var n = t.defaultClassName, i = tt(tt({}, t.defaultVariants), e);
1856
1856
  for (var a in i) {
1857
1857
  var r, o = (r = i[a]) !== null && r !== void 0 ? r : t.defaultVariants[a];
1858
1858
  if (o != null) {
@@ -1866,35 +1866,35 @@ var Ya = (t, e, n) => {
1866
1866
  }
1867
1867
  }
1868
1868
  for (var [l, d] of t.compoundVariants)
1869
- Ya(l, i, t.defaultVariants) && (n += " " + d);
1869
+ Ga(l, i, t.defaultVariants) && (n += " " + d);
1870
1870
  return n;
1871
- }, $ = ee({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] }), rn = "_4a4ovk1", on = "_4a4ovk4", sn = "_4a4ovk5", cn = "_4a4ovk3", de = "_4a4ovk0", un = "_4a4ovk2";
1872
- const Va = V(function(e) {
1873
- const n = L(() => {
1871
+ }, J = _({ defaultClassName: "", variantClassNames: { type: { start: "_4a4ovk6", end: "_4a4ovk7" } }, defaultVariants: {}, compoundVariants: [] }), an = "_4a4ovk1", rn = "_4a4ovk4", on = "_4a4ovk5", sn = "_4a4ovk3", ue = "_4a4ovk0", cn = "_4a4ovk2";
1872
+ const Wa = V(function(e) {
1873
+ const n = N(() => {
1874
1874
  var r;
1875
- const i = e.type === "start" ? an : nn, a = e.description ? Ae(e.description).map((o) => o.type === "normal" ? o.value : `<span class="${sn}">${o.value}</span>`).join("") : "";
1876
- return !e.description && !e.title ? `<img src="${i}" class="${$({
1875
+ const i = e.type === "start" ? nn : tn, a = e.description ? ye(e.description).map((o) => o.type === "normal" ? o.value : `<span class="${on}">${o.value}</span>`).join("") : "";
1876
+ return !e.description && !e.title ? `<img src="${i}" class="${J({
1877
1877
  type: e.type
1878
1878
  })}">` : e.description ? `
1879
- <div class="${de}">
1880
- <div class="${rn}">
1881
- <div class="${cn}">${(r = e.title) != null ? r : ""}</div>
1882
- <div class="${on}">${a}</div>
1879
+ <div class="${ue}">
1880
+ <div class="${an}">
1881
+ <div class="${sn}">${(r = e.title) != null ? r : ""}</div>
1882
+ <div class="${rn}">${a}</div>
1883
1883
  </div>
1884
- <img src="${i}" class="${$({
1884
+ <img src="${i}" class="${J({
1885
1885
  type: e.type
1886
1886
  })}">
1887
1887
  </div>
1888
1888
  ` : `
1889
- <div class="${de}">
1890
- <div class="${un}">${e.title}</div>
1891
- <img src="${i}" class="${$({
1889
+ <div class="${ue}">
1890
+ <div class="${cn}">${e.title}</div>
1891
+ <img src="${i}" class="${J({
1892
1892
  type: e.type
1893
1893
  })}">
1894
1894
  </div>
1895
1895
  `;
1896
1896
  });
1897
- return () => I(W, {
1897
+ return () => g(G, {
1898
1898
  attrs: {
1899
1899
  registerOverlay: e.registerOverlay,
1900
1900
  position: e.position,
@@ -1902,47 +1902,47 @@ const Va = V(function(e) {
1902
1902
  anchor: "bottom-center"
1903
1903
  }
1904
1904
  });
1905
- }).props(["type", "title", "registerOverlay", "position", "description"]), Ha = V(function(e) {
1906
- const n = L(() => {
1905
+ }).props(["type", "title", "registerOverlay", "position", "description"]), Ua = V(function(e) {
1906
+ const n = N(() => {
1907
1907
  var r;
1908
- const i = e.type === "start" ? an : nn, a = e.description ? Ae(e.description).map((o) => o.type === "normal" ? o.value : `<span class="${sn}">${o.value}</span>`).join("") : "";
1908
+ const i = e.type === "start" ? nn : tn, a = e.description ? ye(e.description).map((o) => o.type === "normal" ? o.value : `<span class="${on}">${o.value}</span>`).join("") : "";
1909
1909
  return !e.description && !e.title ? T("img", {
1910
- class: $({
1910
+ class: J({
1911
1911
  type: e.type
1912
1912
  }),
1913
1913
  src: i
1914
1914
  }) : e.description ? T("div", {
1915
- class: de
1915
+ class: ue
1916
1916
  }, `
1917
- <div class="${rn}">
1918
- <div class="${cn}">${(r = e.title) != null ? r : ""}</div>
1919
- <div class="${on}">${a}</div>
1917
+ <div class="${an}">
1918
+ <div class="${sn}">${(r = e.title) != null ? r : ""}</div>
1919
+ <div class="${rn}">${a}</div>
1920
1920
  </div>
1921
- <img src="${i}" class="${$({
1921
+ <img src="${i}" class="${J({
1922
1922
  type: e.type
1923
1923
  })}">
1924
1924
  `) : T("div", {
1925
- class: de
1925
+ class: ue
1926
1926
  }, `
1927
- <div class="${un}">${e.title}</div>
1928
- <img src="${i}" class="${$({
1927
+ <div class="${cn}">${e.title}</div>
1928
+ <img src="${i}" class="${J({
1929
1929
  type: e.type
1930
1930
  })}">
1931
1931
  `);
1932
1932
  });
1933
- return () => I(U, {
1933
+ return () => g(W, {
1934
1934
  attrs: {
1935
1935
  registerOverlay: e.registerOverlay,
1936
- position: C(e.position),
1936
+ position: x(e.position),
1937
1937
  content: n.value
1938
1938
  }
1939
1939
  });
1940
1940
  }).props(["type", "title", "registerOverlay", "position", "description"]), E = v(function(e) {
1941
- const n = A();
1942
- return () => Z(n.supplier === "gmap" ? Ha : Va, {
1941
+ const n = L();
1942
+ return () => R(n.supplier === "gmap" ? Ua : Wa, {
1943
1943
  attrs: e
1944
1944
  });
1945
- }), Zr = V((t) => {
1945
+ }), zr = V((t) => {
1946
1946
  const {
1947
1947
  registerOverlay: e,
1948
1948
  mapRef: n,
@@ -1952,21 +1952,21 @@ const Va = V(function(e) {
1952
1952
  const {
1953
1953
  from: a,
1954
1954
  to: r
1955
- } = t, o = D(a), s = D(r);
1956
- return I(_t, {
1955
+ } = t, o = C(a), s = C(r);
1956
+ return g(ze, {
1957
1957
  attrs: {
1958
1958
  mapRef: n,
1959
1959
  center: o,
1960
1960
  zoom: 13
1961
1961
  }
1962
- }, [I(E, {
1962
+ }, [g(E, {
1963
1963
  attrs: {
1964
1964
  type: "start",
1965
1965
  registerOverlay: e,
1966
1966
  position: o,
1967
1967
  title: a.name
1968
1968
  }
1969
- }), I(Ne, {
1969
+ }), g(Ae, {
1970
1970
  attrs: {
1971
1971
  to: s,
1972
1972
  from: o,
@@ -1974,11 +1974,11 @@ const Va = V(function(e) {
1974
1974
  path: u,
1975
1975
  distance: l,
1976
1976
  duration: d
1977
- }) => [I(Le, {
1977
+ }) => [g(je, {
1978
1978
  attrs: {
1979
1979
  path: u
1980
1980
  }
1981
- }), I(E, {
1981
+ }), g(E, {
1982
1982
  attrs: {
1983
1983
  type: "end",
1984
1984
  registerOverlay: e,
@@ -1991,64 +1991,197 @@ const Va = V(function(e) {
1991
1991
  }
1992
1992
  })]
1993
1993
  }
1994
- }), I(Ua, {
1994
+ }), g(Oa, {
1995
1995
  attrs: {
1996
1996
  registerOverlay: e
1997
1997
  }
1998
1998
  })]);
1999
1999
  };
2000
- }).props(["fallback", "from", "loading", "mapRef", "registerOverlay", "renderDescription", "to"]), ln = (t) => {
2001
- var d, c;
2002
- const { onChange: e, onLoad: n, onLoadDefault: i, geoDefaultPosition: a } = t != null ? t : {}, r = h(!1), o = h(!1), s = h(), u = h({
2000
+ }).props(["fallback", "from", "loading", "mapRef", "registerOverlay", "renderDescription", "to"]), un = (t) => {
2001
+ var c, I;
2002
+ const { onChange: e, onLoad: n, onLoadDefault: i, onError: a, geoDefaultPosition: r } = t != null ? t : {}, o = D(!1), s = D(!1), u = D(), l = D({
2003
2003
  accuracy: 0,
2004
2004
  altitude: 0,
2005
2005
  altitudeAccuracy: 0,
2006
2006
  heading: 0,
2007
- latitude: (d = a == null ? void 0 : a[1]) != null ? d : 0,
2008
- longitude: (c = a == null ? void 0 : a[0]) != null ? c : 0,
2007
+ latitude: (c = r == null ? void 0 : r[1]) != null ? c : 0,
2008
+ longitude: (I = r == null ? void 0 : r[0]) != null ? I : 0,
2009
2009
  speed: 0
2010
- }), l = h([u.value.longitude, u.value.latitude]);
2011
- return b(
2010
+ }), d = D([l.value.longitude, l.value.latitude]);
2011
+ return P(
2012
2012
  () => !0,
2013
- (g, M, m) => {
2014
- r.value = !0;
2015
- const p = navigator.geolocation.watchPosition(
2016
- (f) => {
2017
- const j = f.coords, y = [f.coords.longitude, f.coords.latitude];
2018
- u.value = j, l.value = y, r.value && (r.value = !1, o.value = !0, n == null || n({ position: y, coordinate: j })), e == null || e({ position: y, coordinate: j });
2013
+ (M, m, p) => {
2014
+ o.value = !0;
2015
+ const y = navigator.geolocation.watchPosition(
2016
+ (j) => {
2017
+ const f = j.coords, h = [j.coords.longitude, j.coords.latitude];
2018
+ l.value = f, d.value = h, o.value && (o.value = !1, s.value = !0, n == null || n({ position: h, coordinate: f })), e == null || e({ position: h, coordinate: f });
2019
2019
  },
2020
- (f) => {
2021
- r.value = !1, s.value = f;
2022
- const j = t == null ? void 0 : t.geoDefaultPosition;
2023
- j && (i == null || i({ position: j })), console.log("errorRef = ", s);
2020
+ (j) => {
2021
+ o.value = !1, u.value = j;
2022
+ const f = t == null ? void 0 : t.geoDefaultPosition;
2023
+ f && (i == null || i({ position: f })), a == null || a(j), console.log("errorRef = ", u);
2024
2024
  },
2025
2025
  // todo 要不要 timeout
2026
2026
  { timeout: 5e3, maximumAge: 0, enableHighAccuracy: !0 }
2027
2027
  );
2028
- m(() => navigator.geolocation.clearWatch(p));
2028
+ p(() => navigator.geolocation.clearWatch(y));
2029
2029
  },
2030
2030
  { immediate: !0 }
2031
2031
  ), {
2032
- geoError: s,
2033
- geoPosition: l,
2034
- geoCoordinate: u,
2035
- geoLoading: r,
2036
- geoReady: o
2032
+ geoError: u,
2033
+ geoPosition: d,
2034
+ geoCoordinate: l,
2035
+ geoLoading: o,
2036
+ geoReady: s
2037
+ };
2038
+ }, Ba = () => {
2039
+ const t = b();
2040
+ return { mapRef: t, panTo: (i) => {
2041
+ var a;
2042
+ return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(i);
2043
+ }, setMap: (i) => {
2044
+ t.value = i;
2045
+ } };
2046
+ }, Ya = () => {
2047
+ const t = b();
2048
+ return { mapRef: t, panTo: (i) => {
2049
+ var a;
2050
+ return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(x(i));
2051
+ }, setMap: (i) => {
2052
+ t.value = i;
2053
+ } };
2054
+ }, Ee = () => {
2055
+ const { supplier: t } = L();
2056
+ return t === "gmap" ? Ya() : Ba();
2057
+ }, Va = (t) => {
2058
+ const { mapRef: e, onChange: n } = t, i = D([0, 0]), a = D(!1), r = () => {
2059
+ Promise.resolve().then(() => a.value = !0);
2060
+ }, o = (s, { target: u }) => {
2061
+ var c;
2062
+ a.value = !1;
2063
+ const { lng: l, lat: d } = u.getCenter();
2064
+ i.value = [l, d], (c = Zt(n)) == null || c([l, d]);
2037
2065
  };
2038
- }, dn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjEiIGhlaWdodD0iNjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTcuMSUiIHk9Ii03LjElIiB3aWR0aD0iMTE0LjMlIiBoZWlnaHQ9IjExNC4zJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249Ii41IiBpbj0ic2hhZG93T2Zmc2V0T3V0ZXIxIiByZXN1bHQ9InNoYWRvd0JsdXJPdXRlcjEiLz48ZmVDb21wb3NpdGUgaW49InNoYWRvd0JsdXJPdXRlcjEiIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNzc0NTMwMTYgMCIgaW49InNoYWRvd0JsdXJPdXRlcjEiLz48L2ZpbHRlcj48Y2lyY2xlIGlkPSJwcmVmaXhfX2IiIGN4PSIzMCIgY3k9IjMwIiByPSIxMC41Ii8+PC9kZWZzPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC40MDUgLjI2NCkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGNpcmNsZSBzdHJva2Utb3BhY2l0eT0iLjEiIHN0cm9rZT0iIzAwM0RGRiIgZmlsbC1vcGFjaXR5PSIuMTUiIGZpbGw9IiM0ODczRkUiIGN4PSIzMCIgY3k9IjMwIiByPSIyOS41Ii8+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjcHJlZml4X19hKSIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjxjaXJjbGUgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVqb2luPSJzcXVhcmUiIGZpbGw9IiM0ODcxRjEiIGN4PSIzMCIgY3k9IjMwIiByPSI5LjMiLz48L2c+PC9zdmc+";
2039
- var gn = ee({ defaultClassName: "_1l6offo0", variantClassNames: { size: { small: "_1l6offo1", large: "_1l6offo2" } }, defaultVariants: {}, compoundVariants: [] });
2040
- const Qa = v(function(e) {
2041
- const n = L(() => {
2066
+ return ne(e, {}, r, [
2067
+ "onDragStart"
2068
+ ]), ne(e, {}, o, [
2069
+ "onDragEnd"
2070
+ ]), { centerRef: i, isDragging: a };
2071
+ }, Ha = (t) => {
2072
+ const { mapRef: e, onChange: n } = t, i = D([0, 0]), a = D(!1), r = () => {
2073
+ Promise.resolve().then(() => a.value = !0);
2074
+ }, o = async () => {
2075
+ var d, c;
2076
+ a.value = !1;
2077
+ const s = (d = e.value) == null ? void 0 : d.getCenter(), u = s == null ? void 0 : s.lng(), l = s == null ? void 0 : s.lat();
2078
+ i.value = [u, l], (c = Zt(n)) == null || c([u, l]);
2079
+ };
2080
+ return X(e, {}, r, [
2081
+ "onDragStart"
2082
+ ]), X(e, {}, o, [
2083
+ "onDragEnd"
2084
+ ]), { centerRef: i, isDragging: a };
2085
+ }, Qa = (t) => {
2086
+ const { supplier: e } = L();
2087
+ return e === "gmap" ? Ha(t) : Va(t);
2088
+ }, K = () => {
2089
+ const t = D(0);
2090
+ return { idx: t, update: () => {
2091
+ t.value += 1;
2092
+ } };
2093
+ }, ln = (t) => {
2094
+ const { pointRef: e, onChange: n } = t, { readyPromise: i } = L(), { idx: a, update: r } = K(), o = w({
2095
+ lng: e.value[0],
2096
+ lat: e.value[1],
2097
+ name: "",
2098
+ cityName: void 0
2099
+ });
2100
+ return P(
2101
+ () => a.value,
2102
+ async () => {
2103
+ await i;
2104
+ const s = new AMap.Geocoder({ lang: Pe }), [u, l] = e.value;
2105
+ s.getAddress(new AMap.LngLat(u, l), (d, c) => {
2106
+ switch (d) {
2107
+ case "complete": {
2108
+ const { formattedAddress: I, addressComponent: M } = c.regeocode, m = M.city ? M.city : M.province;
2109
+ o.name = I, o.lng = u, o.lat = l, o.cityName = m, n == null || n({ lng: u, lat: l, name: I, cityName: m });
2110
+ return;
2111
+ }
2112
+ case "no_data":
2113
+ o.name = "", n == null || n({ lng: u, lat: l, name: "" });
2114
+ return;
2115
+ case "error":
2116
+ throw c;
2117
+ }
2118
+ });
2119
+ }
2120
+ ), { place: o, updatePlace: r };
2121
+ }, dn = (t) => {
2122
+ const { pointRef: e, onChange: n } = t, { readyPromise: i } = L(), { idx: a, update: r } = K(), o = w({ lng: e.value[0], lat: e.value[1], name: "" });
2123
+ return P(
2124
+ () => a.value,
2125
+ async () => {
2126
+ await i;
2127
+ const s = new google.maps.Geocoder(), [u, l] = e.value, { results: d } = await s.geocode({ language: Pe, location: { lng: u, lat: l } }), c = d[0].formatted_address, I = da(d[0]);
2128
+ o.name = c, o.lng = u, o.lat = l, n == null || n({ lng: u, lat: l, name: c, cityName: I });
2129
+ }
2130
+ ), { place: o, updatePlace: r };
2131
+ }, Tr = (t) => {
2132
+ const { supplier: e } = L();
2133
+ return e === "gmap" ? dn(t) : ln(t);
2134
+ }, Ja = (t, e) => {
2135
+ let n = 1 / 0, i = t;
2136
+ for (const a of e) {
2137
+ const r = AMap.GeometryUtil.distance(C(t), C(a));
2138
+ r >= n || (i = a, n = r);
2139
+ }
2140
+ return { shortestPlace: i, shortestDistance: n };
2141
+ }, Fa = (t, e) => {
2142
+ let n = 1 / 0, i = t;
2143
+ for (const a of e) {
2144
+ const r = google.maps.geometry.spherical.computeDistanceBetween(t, a);
2145
+ r >= n || (i = a, n = r);
2146
+ }
2147
+ return { shortestPlace: i, shortestDistance: n };
2148
+ }, Xa = (t) => {
2149
+ const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: r, onChangePlace: o } = t, s = D([]), { idx: u, update: l } = K(), { readyPromise: d } = L(), { place: c, updatePlace: I } = ln({ pointRef: e, onChange: o }), M = w({ ...c });
2150
+ return P(
2151
+ () => u.value,
2152
+ async () => {
2153
+ await d;
2154
+ const m = await n({ ...c }, a), { shortestPlace: p, shortestDistance: y } = Ja(c, m), j = i(a), f = y > j ? c : p;
2155
+ s.value = m, Object.assign(M, { ...f }), r == null || r({ ...f });
2156
+ }
2157
+ ), { recomendPlace: M, placeCandidates: s, updateRecomandPlace: l, updatePlace: I };
2158
+ }, $a = (t) => {
2159
+ const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: r, onChangePlace: o } = t, s = D([]), { idx: u, update: l } = K(), { readyPromise: d } = L(), { place: c, updatePlace: I } = dn({ pointRef: e, onChange: o }), M = w({ ...c });
2160
+ return P(
2161
+ () => u.value,
2162
+ async () => {
2163
+ await d;
2164
+ const m = await n({ ...c }, a), { shortestPlace: p, shortestDistance: y } = Fa(c, m), j = i(a), f = y > j ? c : p;
2165
+ s.value = m, Object.assign(M, { ...f }), r == null || r({ ...f });
2166
+ }
2167
+ ), { recomendPlace: M, placeCandidates: s, updateRecomandPlace: l, updatePlace: I };
2168
+ }, _a = (t) => {
2169
+ const { supplier: e } = L();
2170
+ return e === "gmap" ? $a(t) : Xa(t);
2171
+ }, gn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjEiIGhlaWdodD0iNjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTcuMSUiIHk9Ii03LjElIiB3aWR0aD0iMTE0LjMlIiBoZWlnaHQ9IjExNC4zJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249Ii41IiBpbj0ic2hhZG93T2Zmc2V0T3V0ZXIxIiByZXN1bHQ9InNoYWRvd0JsdXJPdXRlcjEiLz48ZmVDb21wb3NpdGUgaW49InNoYWRvd0JsdXJPdXRlcjEiIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNzc0NTMwMTYgMCIgaW49InNoYWRvd0JsdXJPdXRlcjEiLz48L2ZpbHRlcj48Y2lyY2xlIGlkPSJwcmVmaXhfX2IiIGN4PSIzMCIgY3k9IjMwIiByPSIxMC41Ii8+PC9kZWZzPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC40MDUgLjI2NCkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGNpcmNsZSBzdHJva2Utb3BhY2l0eT0iLjEiIHN0cm9rZT0iIzAwM0RGRiIgZmlsbC1vcGFjaXR5PSIuMTUiIGZpbGw9IiM0ODczRkUiIGN4PSIzMCIgY3k9IjMwIiByPSIyOS41Ii8+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjcHJlZml4X19hKSIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjxjaXJjbGUgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVqb2luPSJzcXVhcmUiIGZpbGw9IiM0ODcxRjEiIGN4PSIzMCIgY3k9IjMwIiByPSI5LjMiLz48L2c+PC9zdmc+";
2172
+ var In = _({ defaultClassName: "_1l6offo0", variantClassNames: { size: { small: "_1l6offo1", large: "_1l6offo2" } }, defaultVariants: {}, compoundVariants: [] });
2173
+ const Ka = v(function(e) {
2174
+ const n = N(() => {
2042
2175
  const {
2043
2176
  size: i = "large"
2044
2177
  } = e;
2045
2178
  return `
2046
- <img src="${i === "large" ? dn : G}" class="${gn({
2179
+ <img src="${i === "large" ? gn : k}" class="${In({
2047
2180
  size: i
2048
2181
  })}">
2049
2182
  `;
2050
2183
  });
2051
- return () => I(W, {
2184
+ return () => g(G, {
2052
2185
  attrs: {
2053
2186
  position: e.position,
2054
2187
  content: n.value,
@@ -2056,147 +2189,269 @@ const Qa = v(function(e) {
2056
2189
  registerOverlay: e.registerOverlay
2057
2190
  }
2058
2191
  });
2059
- }), Ja = v(function(e) {
2060
- const n = L(() => {
2192
+ }), qa = v(function(e) {
2193
+ const n = N(() => {
2061
2194
  const {
2062
2195
  size: i = "large"
2063
- } = e, a = i === "large" ? dn : G;
2196
+ } = e, a = i === "large" ? gn : k;
2064
2197
  return T("img", {
2065
- class: gn({
2198
+ class: In({
2066
2199
  size: i
2067
2200
  }),
2068
2201
  src: a
2069
2202
  });
2070
2203
  });
2071
- return () => I(U, {
2204
+ return () => g(W, {
2072
2205
  attrs: {
2073
- position: C(e.position),
2206
+ position: x(e.position),
2074
2207
  content: n.value,
2075
2208
  registerOverlay: e.registerOverlay
2076
2209
  }
2077
2210
  });
2078
- }), Te = v(function(e) {
2079
- const n = A();
2080
- return () => Z(n.supplier === "gmap" ? Ja : Qa, {
2211
+ }), Le = v(function(e) {
2212
+ const n = L();
2213
+ return () => R(n.supplier === "gmap" ? qa : Ka, {
2081
2214
  attrs: e
2082
2215
  });
2083
2216
  });
2084
- var we = /* @__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))(we || {});
2085
- var it = ee({ defaultClassName: "", variantClassNames: { textAlign: { left: "fhyw83", right: "fhyw84" } }, defaultVariants: {}, compoundVariants: [] }), at = ee({ defaultClassName: "fhyw85", variantClassNames: { textAlign: { left: "fhyw86", right: "fhyw87" } }, defaultVariants: {}, compoundVariants: [] }), In = "fhyw8b", Mn = ee({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] }), ge = ee({ defaultClassName: "fhyw88", variantClassNames: { hideIcon: { true: "fhyw89", false: "fhyw8a" } }, defaultVariants: {}, compoundVariants: [] });
2086
- const Fa = V(function(e, {
2217
+ var Ce = /* @__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))(Ce || {});
2218
+ var nt = _({ defaultClassName: "", variantClassNames: { textAlign: { left: "fhyw83", right: "fhyw84" } }, defaultVariants: {}, compoundVariants: [] }), it = _({ defaultClassName: "fhyw85", variantClassNames: { textAlign: { left: "fhyw86", right: "fhyw87" } }, defaultVariants: {}, compoundVariants: [] }), Mn = "fhyw8b", mn = _({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] }), le = _({ defaultClassName: "fhyw88", variantClassNames: { hideIcon: { true: "fhyw89", false: "fhyw8a" } }, defaultVariants: {}, compoundVariants: [] });
2219
+ const er = v(function(e, {
2087
2220
  emit: n
2088
2221
  }) {
2089
- const i = L(() => {
2222
+ const i = N(() => {
2090
2223
  var s;
2091
2224
  return (s = e.textAlign) != null ? s : "right";
2092
- }), a = L(() => {
2225
+ }), a = N(() => {
2093
2226
  const {
2094
2227
  hideIcon: s = !1
2095
2228
  } = e;
2096
2229
  return `
2097
- <div class="${Mn({
2230
+ <div class="${mn({
2098
2231
  textAlign: i.value
2099
2232
  })}">
2100
- <img class="${ge({
2233
+ <img class="${le({
2101
2234
  hideIcon: s
2102
- })} ${it({
2235
+ })} ${nt({
2103
2236
  textAlign: i.value
2104
- })}" src="${G}">
2105
- <div class="${In}">${e.label}</div>
2237
+ })}" src="${k}">
2238
+ <div class="${Mn}">${e.label}</div>
2106
2239
  </div>
2107
2240
  `;
2108
- }), r = L(() => {
2241
+ }), r = N(() => {
2109
2242
  const {
2110
2243
  hideIcon: s = !1
2111
2244
  } = e;
2112
- return `<img class="${ge({
2245
+ return `<img class="${le({
2113
2246
  hideIcon: s
2114
- })} ${it({
2247
+ })} ${nt({
2115
2248
  textAlign: i.value
2116
- })}" src="${G}">`;
2249
+ })}" src="${k}">`;
2117
2250
  }), o = (s) => {
2118
2251
  console.log("on amap marker e = ", s), n("click", e.position);
2119
2252
  };
2120
- return () => I(W, {
2253
+ return () => g(G, {
2121
2254
  attrs: {
2122
2255
  position: e.position,
2123
2256
  content: e.label ? a.value : r.value,
2124
- anchor: i.value === "left" ? we.middleRight : we.middleLeft
2257
+ anchor: i.value === "left" ? Ce.middleRight : Ce.middleLeft
2125
2258
  },
2126
2259
  on: {
2127
2260
  click: o
2128
2261
  }
2129
2262
  });
2130
- }).props(["hideIcon", "label", "position", "textAlign"]), Xa = V(function(e, {
2263
+ }), tr = v(function(e, {
2131
2264
  emit: n
2132
2265
  }) {
2133
- const i = L(() => {
2266
+ const i = N(() => {
2134
2267
  var s;
2135
2268
  return (s = e.textAlign) != null ? s : "right";
2136
- }), a = L(() => {
2269
+ }), a = N(() => {
2137
2270
  const {
2138
2271
  hideIcon: s = !1
2139
2272
  } = e;
2140
2273
  return T("div", {
2141
- class: `${Mn({
2274
+ class: `${mn({
2142
2275
  textAlign: i.value
2143
- })} ${at({
2276
+ })} ${it({
2144
2277
  textAlign: i.value
2145
2278
  })}`
2146
2279
  }, `
2147
- <img class="${ge({
2280
+ <img class="${le({
2148
2281
  hideIcon: s
2149
- })}" src="${G}">
2150
- <div class="${In}">${e.label}</div>
2282
+ })}" src="${k}">
2283
+ <div class="${Mn}">${e.label}</div>
2151
2284
  `);
2152
- }), r = L(() => {
2285
+ }), r = N(() => {
2153
2286
  const {
2154
2287
  hideIcon: s = !1
2155
2288
  } = e;
2156
2289
  return T("img", {
2157
- class: `${ge({
2290
+ class: `${le({
2158
2291
  hideIcon: s
2159
- })} ${at({
2292
+ })} ${it({
2160
2293
  textAlign: i.value
2161
2294
  })}`,
2162
- src: G
2295
+ src: k
2163
2296
  });
2164
2297
  }), o = (s) => {
2165
2298
  console.log("on gmap advanced marker view e = ", s), n("click", e.position);
2166
2299
  };
2167
- return () => I(U, {
2300
+ return () => g(W, {
2168
2301
  attrs: {
2169
- position: C(e.position),
2302
+ position: x(e.position),
2170
2303
  content: e.label ? a.value : r.value
2171
2304
  },
2172
2305
  on: {
2173
2306
  click: o
2174
2307
  }
2175
2308
  });
2176
- }).props(["hideIcon", "label", "position", "textAlign"]), O = v(function(e, {
2309
+ }), Z = v(function(e, {
2177
2310
  emit: n
2178
2311
  }) {
2179
- const i = A();
2180
- return () => Z(i.supplier === "gmap" ? Xa : Fa, {
2312
+ const i = L();
2313
+ return () => R(i.supplier === "gmap" ? tr : er, {
2181
2314
  attrs: e,
2182
2315
  on: {
2183
2316
  click: (a) => n("click", a)
2184
2317
  }
2185
2318
  });
2186
- }), Ie = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0zNC4wODcgMTAuOTZjMCAyLjM2OS0uMDU0IDIuOTgtLjc4MiAzLjcwNC0uNzkzLjc5LTUuMjM2LjgzMy01LjIzNi44MzNsLTQuMTE2LjE5Mi05Ljg5Ni0uMTQ0cy03Ljc5LS4wMjYtOS4xMzEtLjAyNmMtMS4zNDIgMC0yLjQwNi0uODQ3LTIuNDA2LS44NDdDLjE0IDEyLjkzMiAwIDExLjA5IDAgMTEuMDlWNS44NnMuMTQtMS44NDIgMi41Mi0zLjU4M2MwIDAgMS4wNjQtLjg0NiAyLjQwNi0uODQ2IDEuMzQxIDAgOS4xMy0uMDI2IDkuMTMtLjAyNmw5Ljg5Ny0uMTQ0IDQuMTE2LjE5MnM0LjQ4NCAwIDUuMjM2LjgzM2MuNzc4Ljg2Ljc4MiAxLjM3Ljc4MiAzLjc0djQuOTM0eiIgaWQ9InByZWZpeF9fYiIvPjxwYXRoIGQ9Ik0wIDEuNDkzUzUuNy4xOCA4LjcxOS4wNWMzLjAyLS4xMzEgMy40Ny4wMTcgNS4yODIuMjEuNTA3LjA1MSAzLjI2LjkxIDMuMjYuOTFsLTcuMzAzLjNMMCAxLjQ5NHoiIGlkP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jYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";
2187
- var Me = "_65j3sr1", mn = "_4a4ovk5", fn = "_4a4ovk0", pn = "_4a4ovk2";
2188
- const $a = v(function(e) {
2189
- const n = L(() => {
2319
+ }), nr = v(function(e, {
2320
+ emit: n
2321
+ }) {
2322
+ return () => g("div", [e.places.map((i) => g(Z, {
2323
+ attrs: {
2324
+ position: C(i),
2325
+ label: i.name,
2326
+ textAlign: "left"
2327
+ },
2328
+ on: {
2329
+ click: () => n("click", i)
2330
+ }
2331
+ }))]);
2332
+ }), ir = 30, Er = V((t, {
2333
+ emit: e
2334
+ }) => {
2335
+ var h, z;
2336
+ const {
2337
+ geoDefaultPosition: n,
2338
+ getRecomendPlace: i,
2339
+ mapContext: a
2340
+ } = t, {
2341
+ mapRef: r,
2342
+ setMap: o,
2343
+ panTo: s
2344
+ } = Ee(), {
2345
+ readyPromise: u
2346
+ } = L(), l = w({
2347
+ lng: (h = n == null ? void 0 : n[0]) != null ? h : 0,
2348
+ lat: (z = n == null ? void 0 : n[1]) != null ? z : 0,
2349
+ name: "",
2350
+ cityName: void 0
2351
+ }), d = N(() => [l.lng, l.lat]), c = {
2352
+ source: "geo"
2353
+ }, I = (A) => {
2354
+ c.source = "api", l.lng = A[0], l.lat = A[1], y();
2355
+ };
2356
+ a.setCenterPlaceByRecomand = I, a.panTo = s;
2357
+ const M = (A) => {
2358
+ c.source = "api", l.lng = A.lng, l.lat = A.lat, l.name = A.name;
2359
+ }, {
2360
+ geoPosition: m
2361
+ } = un({
2362
+ geoDefaultPosition: n,
2363
+ onLoad: async (A) => {
2364
+ await u, c.source = "geo", l.lng = A.position[0], l.lat = A.position[1], y(), e("loadGeoLocation", A);
2365
+ },
2366
+ onLoadDefault: async (A) => {
2367
+ await u, c.source = "geo", l.lng = A.position[0], l.lat = A.position[1], y(), e("loadDefaultGeoLocation", A);
2368
+ },
2369
+ onChange: (A) => e("changeGeoLocation", A),
2370
+ onError: (A) => e("geoError", A)
2371
+ }), {
2372
+ isDragging: p
2373
+ } = Qa({
2374
+ mapRef: r,
2375
+ onChange: (A) => {
2376
+ c.source = "drag", l.lng = A[0], l.lat = A[1], y(), e("changeByDrag", A);
2377
+ }
2378
+ }), {
2379
+ updatePlace: y,
2380
+ updateRecomandPlace: j,
2381
+ placeCandidates: f
2382
+ } = _a({
2383
+ pointRef: d,
2384
+ context: c,
2385
+ getRecomendPlace: i,
2386
+ getLimit: (A) => {
2387
+ const S = A == null ? void 0 : A.source;
2388
+ switch (S) {
2389
+ case "drag":
2390
+ case "api":
2391
+ return ir;
2392
+ case "geo":
2393
+ case "default":
2394
+ return 1 / 0;
2395
+ default:
2396
+ throw new Error(`MyError: should not call getLimit on source: ${S}`);
2397
+ }
2398
+ },
2399
+ onChangePlace: (A) => {
2400
+ Object.assign(l, {
2401
+ ...A
2402
+ }), c.source !== "recomend" && j(), e("changePlace", A);
2403
+ },
2404
+ onChange: (A) => {
2405
+ c.source = "recomend", Object.assign(l, {
2406
+ ...A
2407
+ }), y(), e("changeRecomandPlace", A);
2408
+ }
2409
+ });
2410
+ return Se(() => {
2411
+ a.onChangeCenterPlace({
2412
+ ...l
2413
+ });
2414
+ }), Se(() => {
2415
+ a.onChangeRecomendPlaces([...f.value]);
2416
+ }), () => g(ze, {
2417
+ attrs: {
2418
+ center: d.value,
2419
+ zoom: 18,
2420
+ mapRef: o
2421
+ }
2422
+ }, [g(Le, {
2423
+ attrs: {
2424
+ position: m.value
2425
+ }
2426
+ }), g(nr, {
2427
+ attrs: {
2428
+ places: f.value
2429
+ },
2430
+ on: {
2431
+ click: M
2432
+ }
2433
+ }), g(pa, {
2434
+ attrs: {
2435
+ position: d.value,
2436
+ title: t.title,
2437
+ description: t.description,
2438
+ type: p ? "locator" : "box"
2439
+ }
2440
+ })]);
2441
+ }).props(["description", "fallback", "geoDefaultPosition", "getRecomendPlace", "loading", "mapContext", "title"]), de = "data:image/svg+xml;base64,PHN2Zy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My0yLjY0My0uNjYzLTIuNjQzbC0uMDA5LS4xODRjLjc3My43MDggMi42NDUgMS4yMDMgNC44MyAxLjIwMyAyLjI0MyAwIDQuMTU5LS41MjQgNC44OTItMS4yNmwtLjAxMy4yNDFjMC0uMDA0LS4yMTggMS43NjQtLjY0NiAyLjYwNnpNNy40NDcgMjMuOTNhMjAuMTIgMjAuMTIgMCAwMC0uMjk0LTIuNDQydi0uMDY1YzEuNTM4LS4zMiAzLjE2Ny0uNjQ5IDQuODYyLS42NDkgMS42NzUgMCAzLjI5NC4zMjYgNC44MTYuNjM3YTIyLjY3MyAyMi42NzMgMCAwMC0uMzAzIDIuNTJjLS4xNDcgMi44ODQuMDIgMy4zMTQuMjMyIDUuMDQ4LjAwNi4wNTcuMDI2LjE1Mi4wNTYuMjc0LTEuNTEzLjI3OC0zIC41NC00LjkxMi41NC0xLjg0NyAwLTMuMjg5LS4yNS00Ljc1LS41MTF2LS4wMDhjLjAzLS4xMzEuMDU1LS4yMzMuMDYtLjI5LjIxOC0xLjc0NC4zOC0yLjE3My4yMzMtNS4wNTN6IiBmaWxsPSIjRjJGQUZGIi8+PHBhdGggZD0iTTEyLjA2NyAxOS43MTZsLTQuNjQ1LjY5MmMtLjQzMS0yLjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";
2442
+ var ge = "_65j3sr1", pn = "_4a4ovk5", fn = "_4a4ovk0", vn = "_4a4ovk2";
2443
+ const ar = v(function(e) {
2444
+ const n = N(() => {
2190
2445
  var r;
2191
- const i = e.title ? Ae(e.title).map((o) => o.type === "normal" ? o.value : `<span class="${mn}">${o.value}</span>`).join("") : "", a = `transform:rotate(${(r = e.angle) != null ? r : 0}deg)`;
2446
+ const i = e.title ? ye(e.title).map((o) => o.type === "normal" ? o.value : `<span class="${pn}">${o.value}</span>`).join("") : "", a = `transform:rotate(${(r = e.angle) != null ? r : 0}deg)`;
2192
2447
  return e.title ? `
2193
2448
  <div class="${fn}">
2194
- <div class="${pn}">${i}</div>
2195
- <img src="${Ie}" class="${Me}" style="${a}">
2449
+ <div class="${vn}">${i}</div>
2450
+ <img src="${de}" class="${ge}" style="${a}">
2196
2451
  </div>
2197
- ` : `<img src="${Ie}" class="${Me}" style="${a}">`;
2452
+ ` : `<img src="${de}" class="${ge}" style="${a}">`;
2198
2453
  });
2199
- return () => I(W, {
2454
+ return () => g(G, {
2200
2455
  attrs: {
2201
2456
  position: e.position,
2202
2457
  content: n.value,
@@ -2204,34 +2459,34 @@ const $a = v(function(e) {
2204
2459
  registerOverlay: e.registerOverlay
2205
2460
  }
2206
2461
  });
2207
- }), _a = v(function(e) {
2208
- const n = L(() => {
2462
+ }), rr = v(function(e) {
2463
+ const n = N(() => {
2209
2464
  var r;
2210
- const i = e.title ? Ae(e.title).map((o) => o.type === "normal" ? o.value : `<span class="${mn}">${o.value}</span>`).join("") : "", a = `transform:rotate(${(r = e.angle) != null ? r : 0}deg)`;
2465
+ const i = e.title ? ye(e.title).map((o) => o.type === "normal" ? o.value : `<span class="${pn}">${o.value}</span>`).join("") : "", a = `transform:rotate(${(r = e.angle) != null ? r : 0}deg)`;
2211
2466
  return e.title ? T("div", {
2212
2467
  class: fn
2213
2468
  }, `
2214
- <div class="${pn}">${i}</div>
2215
- <img src="${Ie}" class="${Me}" style="${a}">
2469
+ <div class="${vn}">${i}</div>
2470
+ <img src="${de}" class="${ge}" style="${a}">
2216
2471
  `) : T("img", {
2217
- class: Me,
2218
- src: Ie,
2472
+ class: ge,
2473
+ src: de,
2219
2474
  style: a
2220
2475
  });
2221
2476
  });
2222
- return () => I(U, {
2477
+ return () => g(W, {
2223
2478
  attrs: {
2224
- position: C(e.position),
2479
+ position: x(e.position),
2225
2480
  content: n.value,
2226
2481
  registerOverlay: e.registerOverlay
2227
2482
  }
2228
2483
  });
2229
- }), Ee = v(function(e) {
2230
- const n = A();
2231
- return () => Z(n.supplier === "gmap" ? _a : $a, {
2484
+ }), Re = v(function(e) {
2485
+ const n = L();
2486
+ return () => R(n.supplier === "gmap" ? rr : ar, {
2232
2487
  attrs: e
2233
2488
  });
2234
- }), Ka = v(function(e) {
2489
+ }), or = v(function(e) {
2235
2490
  return () => {
2236
2491
  const {
2237
2492
  path: n
@@ -2239,7 +2494,7 @@ const $a = v(function(e) {
2239
2494
  if (n.length === 0)
2240
2495
  return null;
2241
2496
  const a = 2 * (window.innerWidth * 0.01);
2242
- return I(ie, {
2497
+ return g(te, {
2243
2498
  attrs: {
2244
2499
  path: n,
2245
2500
  strokeWeight: a,
@@ -2252,14 +2507,14 @@ const $a = v(function(e) {
2252
2507
  }
2253
2508
  });
2254
2509
  };
2255
- }), qa = v(function(e) {
2256
- const n = L(() => e.path.map(C));
2510
+ }), sr = v(function(e) {
2511
+ const n = N(() => e.path.map(x));
2257
2512
  return () => {
2258
2513
  const i = n.value;
2259
2514
  if (i.length === 0)
2260
2515
  return null;
2261
2516
  const r = 2 * (window.innerWidth * 0.01), o = r / 4;
2262
- return I(ue, {
2517
+ return g(se, {
2263
2518
  attrs: {
2264
2519
  path: i,
2265
2520
  strokeWeight: r,
@@ -2285,14 +2540,14 @@ const $a = v(function(e) {
2285
2540
  }
2286
2541
  });
2287
2542
  };
2288
- }), vn = v(function(e) {
2289
- const n = A();
2290
- return () => Z(n.supplier === "gmap" ? qa : Ka, {
2543
+ }), yn = v(function(e) {
2544
+ const n = L();
2545
+ return () => R(n.supplier === "gmap" ? sr : or, {
2291
2546
  attrs: e
2292
2547
  });
2293
- }), yn = (t) => {
2294
- const e = P([]), n = new AMap.Walking({});
2295
- return q(
2548
+ }), jn = (t) => {
2549
+ const e = b([]), n = new AMap.Walking({});
2550
+ return $(
2296
2551
  () => ({ ...t }),
2297
2552
  ({ from: i, to: a }) => {
2298
2553
  n.search(AMap.LngLat.from(i), AMap.LngLat.from(a), (r, o) => {
@@ -2305,7 +2560,7 @@ const $a = v(function(e) {
2305
2560
  const l = u.routes[0];
2306
2561
  console.log("firstRoute = ", l);
2307
2562
  for (const d of l.steps) {
2308
- const c = d.path.map(({ lng: g, lat: M }) => [g, M]);
2563
+ const c = d.path.map(({ lng: I, lat: M }) => [I, M]);
2309
2564
  s = s.concat(c);
2310
2565
  }
2311
2566
  e.value = s;
@@ -2320,9 +2575,9 @@ const $a = v(function(e) {
2320
2575
  });
2321
2576
  }
2322
2577
  ), e;
2323
- }, jn = (t) => {
2324
- const e = P([]), n = new google.maps.DirectionsService();
2325
- return q(
2578
+ }, An = (t) => {
2579
+ const e = b([]), n = new google.maps.DirectionsService();
2580
+ return $(
2326
2581
  () => ({ ...t }),
2327
2582
  ({ from: i, to: a }) => {
2328
2583
  n.route(
@@ -2354,131 +2609,131 @@ const $a = v(function(e) {
2354
2609
  }
2355
2610
  ), e;
2356
2611
  }, Rr = (t) => {
2357
- const { supplier: e } = A();
2358
- return e === "gmap" ? jn(t) : yn(t);
2359
- }, er = v(function(e, {
2612
+ const { supplier: e } = L();
2613
+ return e === "gmap" ? An(t) : jn(t);
2614
+ }, cr = v(function(e, {
2360
2615
  slots: n
2361
2616
  }) {
2362
- const i = yn(e);
2617
+ const i = jn(e);
2363
2618
  return () => {
2364
2619
  var a;
2365
- return I("div", [(a = n.render) == null ? void 0 : a.call(n, x({
2620
+ return g("div", [(a = n.render) == null ? void 0 : a.call(n, w({
2366
2621
  path: i
2367
2622
  }))]);
2368
2623
  };
2369
- }), tr = v(function(e, {
2624
+ }), ur = v(function(e, {
2370
2625
  slots: n
2371
2626
  }) {
2372
- const i = jn(e);
2627
+ const i = An(e);
2373
2628
  return () => {
2374
2629
  var a;
2375
- return I("div", [(a = n.render) == null ? void 0 : a.call(n, x({
2630
+ return g("div", [(a = n.render) == null ? void 0 : a.call(n, w({
2376
2631
  path: i
2377
2632
  }))]);
2378
2633
  };
2379
- }), An = v(function(e, {
2634
+ }), Ln = v(function(e, {
2380
2635
  slots: n
2381
2636
  }) {
2382
2637
  const {
2383
2638
  supplier: i
2384
- } = A();
2385
- return () => Z(i === "gmap" ? tr : er, {
2639
+ } = L();
2640
+ return () => R(i === "gmap" ? ur : cr, {
2386
2641
  attrs: e,
2387
2642
  scopedSlots: n
2388
2643
  });
2389
- }), me = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";
2390
- var Ln = "rrvp0y3", fe = "rrvp0y2";
2391
- const nr = v(function(e) {
2392
- const n = L(() => `<img src="${me}" class="${fe}">`), i = L(() => `<img src="${me}" class="${fe} ${Ln}">`);
2393
- return () => I("div", [I(W, {
2644
+ }), Ie = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";
2645
+ var Nn = "rrvp0y3", Me = "rrvp0y2";
2646
+ const lr = v(function(e) {
2647
+ const n = N(() => `<img src="${Ie}" class="${Me}">`), i = N(() => `<img src="${Ie}" class="${Me} ${Nn}">`);
2648
+ return () => g("div", [g(G, {
2394
2649
  attrs: {
2395
2650
  position: e.position,
2396
2651
  anchor: "bottom-center",
2397
2652
  content: n.value
2398
2653
  }
2399
- }), I(W, {
2654
+ }), g(G, {
2400
2655
  attrs: {
2401
2656
  position: e.position,
2402
2657
  anchor: "bottom-center",
2403
2658
  content: i.value
2404
2659
  }
2405
2660
  })]);
2406
- }), ir = v(function(e) {
2407
- const n = L(() => T("img", {
2408
- class: fe,
2409
- src: me
2410
- })), i = L(() => T("img", {
2411
- class: `${fe} ${Ln}`,
2412
- src: me
2661
+ }), dr = v(function(e) {
2662
+ const n = N(() => T("img", {
2663
+ class: Me,
2664
+ src: Ie
2665
+ })), i = N(() => T("img", {
2666
+ class: `${Me} ${Nn}`,
2667
+ src: Ie
2413
2668
  }));
2414
2669
  return () => {
2415
- const a = C(e.position);
2416
- return I("div", [I(U, {
2670
+ const a = x(e.position);
2671
+ return g("div", [g(W, {
2417
2672
  attrs: {
2418
2673
  position: a,
2419
2674
  content: n.value
2420
2675
  }
2421
- }), I(U, {
2676
+ }), g(W, {
2422
2677
  attrs: {
2423
2678
  position: a,
2424
2679
  content: i.value
2425
2680
  }
2426
2681
  })]);
2427
2682
  };
2428
- }), ar = v(function(e) {
2429
- const n = A();
2430
- return () => Z(n.supplier === "gmap" ? ir : nr, {
2683
+ }), gr = v(function(e) {
2684
+ const n = L();
2685
+ return () => R(n.supplier === "gmap" ? dr : lr, {
2431
2686
  attrs: e
2432
2687
  });
2433
- }), rr = ["book-driverStartService", "dispatched", "driverStartService", "inService", "driverArrived"], rt = v((t, {
2688
+ }), Ir = ["book-driverStartService", "dispatched", "driverStartService", "inService", "driverArrived"], at = v((t, {
2434
2689
  emit: e
2435
- }) => (Y(() => e("mapMounted")), () => {
2690
+ }) => (B(() => e("mapMounted")), () => {
2436
2691
  const {
2437
2692
  from: n,
2438
2693
  title: i,
2439
2694
  registerOverlay: a
2440
- } = t, r = D(n);
2441
- return I("div", [I(E, {
2695
+ } = t, r = C(n);
2696
+ return g("div", [g(E, {
2442
2697
  attrs: {
2443
2698
  type: "start",
2444
2699
  position: r,
2445
2700
  title: i,
2446
2701
  registerOverlay: a
2447
2702
  }
2448
- }), I(ar, {
2703
+ }), g(gr, {
2449
2704
  attrs: {
2450
2705
  position: r
2451
2706
  }
2452
- }), I(O, {
2707
+ }), g(Z, {
2453
2708
  attrs: {
2454
2709
  position: r,
2455
2710
  label: n.name,
2456
2711
  hideIcon: !0
2457
2712
  }
2458
2713
  })]);
2459
- })), or = v((t, {
2714
+ })), Mr = v((t, {
2460
2715
  emit: e
2461
- }) => (Y(() => e("mapMounted")), () => {
2716
+ }) => (B(() => e("mapMounted")), () => {
2462
2717
  const {
2463
2718
  from: n,
2464
2719
  carPosition: i,
2465
2720
  passengerPosition: a,
2466
2721
  renderTitle: r,
2467
2722
  registerOverlay: o
2468
- } = t, s = D(n);
2469
- return I("div", [I(E, {
2723
+ } = t, s = C(n);
2724
+ return g("div", [g(E, {
2470
2725
  attrs: {
2471
2726
  type: "start",
2472
2727
  position: s,
2473
2728
  registerOverlay: o
2474
2729
  }
2475
- }), I(O, {
2730
+ }), g(Z, {
2476
2731
  attrs: {
2477
2732
  position: s,
2478
2733
  label: n.name,
2479
2734
  hideIcon: !0
2480
2735
  }
2481
- }), I(Ne, {
2736
+ }), g(Ae, {
2482
2737
  attrs: {
2483
2738
  from: i,
2484
2739
  to: s,
@@ -2486,11 +2741,11 @@ const nr = v(function(e) {
2486
2741
  path: u,
2487
2742
  distance: l,
2488
2743
  duration: d
2489
- }) => [I(Le, {
2744
+ }) => [g(je, {
2490
2745
  attrs: {
2491
2746
  path: u
2492
2747
  }
2493
- }), I(Ee, {
2748
+ }), g(Re, {
2494
2749
  attrs: {
2495
2750
  position: i,
2496
2751
  title: r({
@@ -2500,121 +2755,121 @@ const nr = v(function(e) {
2500
2755
  }
2501
2756
  })]
2502
2757
  }
2503
- }), I(An, {
2758
+ }), g(Ln, {
2504
2759
  attrs: {
2505
2760
  from: a,
2506
2761
  to: s,
2507
2762
  render: ({
2508
2763
  path: u
2509
- }) => I(vn, {
2764
+ }) => g(yn, {
2510
2765
  attrs: {
2511
2766
  path: u
2512
2767
  }
2513
2768
  })
2514
2769
  }
2515
- }), I(Te, {
2770
+ }), g(Le, {
2516
2771
  attrs: {
2517
2772
  position: a,
2518
2773
  registerOverlay: o
2519
2774
  }
2520
2775
  })]);
2521
- })), sr = v((t, {
2776
+ })), mr = v((t, {
2522
2777
  emit: e
2523
- }) => (Y(() => e("mapMounted")), () => {
2778
+ }) => (B(() => e("mapMounted")), () => {
2524
2779
  const {
2525
2780
  from: n,
2526
2781
  passengerPosition: i,
2527
2782
  title: a,
2528
2783
  registerOverlay: r
2529
- } = t, o = D(n);
2530
- return I("div", [I(E, {
2784
+ } = t, o = C(n);
2785
+ return g("div", [g(E, {
2531
2786
  attrs: {
2532
2787
  type: "start",
2533
2788
  position: o,
2534
2789
  title: a,
2535
2790
  registerOverlay: r
2536
2791
  }
2537
- }), I(O, {
2792
+ }), g(Z, {
2538
2793
  attrs: {
2539
2794
  position: o,
2540
2795
  label: n.name,
2541
2796
  hideIcon: !0
2542
2797
  }
2543
- }), I(Te, {
2798
+ }), g(Le, {
2544
2799
  attrs: {
2545
2800
  position: i,
2546
2801
  registerOverlay: r
2547
2802
  }
2548
2803
  })]);
2549
- })), cr = v((t, {
2804
+ })), pr = v((t, {
2550
2805
  emit: e
2551
- }) => (Y(() => e("mapMounted")), () => {
2806
+ }) => (B(() => e("mapMounted")), () => {
2552
2807
  const {
2553
2808
  from: n,
2554
2809
  carPosition: i,
2555
2810
  passengerPosition: a,
2556
2811
  title: r,
2557
2812
  registerOverlay: o
2558
- } = t, s = D(n);
2559
- return I("div", [I(Ee, {
2813
+ } = t, s = C(n);
2814
+ return g("div", [g(Re, {
2560
2815
  attrs: {
2561
2816
  position: i,
2562
2817
  title: r,
2563
2818
  registerOverlay: o
2564
2819
  }
2565
- }), I(E, {
2820
+ }), g(E, {
2566
2821
  attrs: {
2567
2822
  type: "start",
2568
2823
  position: s,
2569
2824
  registerOverlay: o
2570
2825
  }
2571
- }), I(O, {
2826
+ }), g(Z, {
2572
2827
  attrs: {
2573
2828
  position: s,
2574
2829
  label: n.name,
2575
2830
  hideIcon: !0
2576
2831
  }
2577
- }), I(An, {
2832
+ }), g(Ln, {
2578
2833
  attrs: {
2579
2834
  from: a,
2580
2835
  to: s,
2581
2836
  render: ({
2582
2837
  path: u
2583
- }) => I(vn, {
2838
+ }) => g(yn, {
2584
2839
  attrs: {
2585
2840
  path: u
2586
2841
  }
2587
2842
  })
2588
2843
  }
2589
- }), I(Te, {
2844
+ }), g(Le, {
2590
2845
  attrs: {
2591
2846
  position: a,
2592
2847
  size: "small",
2593
2848
  registerOverlay: o
2594
2849
  }
2595
2850
  })]);
2596
- })), ur = v((t, {
2851
+ })), fr = v((t, {
2597
2852
  emit: e
2598
- }) => (Y(() => e("mapMounted")), () => {
2853
+ }) => (B(() => e("mapMounted")), () => {
2599
2854
  const {
2600
2855
  to: n,
2601
2856
  carPosition: i,
2602
2857
  renderTitle: a,
2603
2858
  registerOverlay: r
2604
- } = t, o = D(n);
2605
- return I("div", [I(E, {
2859
+ } = t, o = C(n);
2860
+ return g("div", [g(E, {
2606
2861
  attrs: {
2607
2862
  type: "end",
2608
2863
  position: o,
2609
2864
  registerOverlay: r
2610
2865
  }
2611
- }), I(O, {
2866
+ }), g(Z, {
2612
2867
  attrs: {
2613
2868
  position: i,
2614
2869
  label: "'WebSter Dental Plaza'",
2615
2870
  hideIcon: !0
2616
2871
  }
2617
- }), I(Ne, {
2872
+ }), g(Ae, {
2618
2873
  attrs: {
2619
2874
  from: i,
2620
2875
  to: o,
@@ -2622,11 +2877,11 @@ const nr = v(function(e) {
2622
2877
  path: s,
2623
2878
  distance: u,
2624
2879
  duration: l
2625
- }) => [I(Le, {
2880
+ }) => [g(je, {
2626
2881
  attrs: {
2627
2882
  path: s
2628
2883
  }
2629
- }), I(Ee, {
2884
+ }), g(Re, {
2630
2885
  attrs: {
2631
2886
  position: i,
2632
2887
  title: a({
@@ -2638,78 +2893,78 @@ const nr = v(function(e) {
2638
2893
  })]
2639
2894
  }
2640
2895
  })]);
2641
- })), lr = v((t, {
2896
+ })), vr = v((t, {
2642
2897
  emit: e
2643
- }) => (Y(() => e("mapMounted")), () => {
2898
+ }) => (B(() => e("mapMounted")), () => {
2644
2899
  const {
2645
2900
  from: n,
2646
2901
  to: i,
2647
2902
  registerOverlay: a
2648
- } = t, r = D(n), o = D(i);
2649
- return I("div", [I(E, {
2903
+ } = t, r = C(n), o = C(i);
2904
+ return g("div", [g(E, {
2650
2905
  attrs: {
2651
2906
  type: "start",
2652
2907
  position: r,
2653
2908
  registerOverlay: a
2654
2909
  }
2655
- }), I(E, {
2910
+ }), g(E, {
2656
2911
  attrs: {
2657
2912
  type: "end",
2658
2913
  position: o,
2659
2914
  registerOverlay: a
2660
2915
  }
2661
- }), I(O, {
2916
+ }), g(Z, {
2662
2917
  attrs: {
2663
2918
  position: r,
2664
2919
  label: n.name,
2665
2920
  hideIcon: !0
2666
2921
  }
2667
- }), I(O, {
2922
+ }), g(Z, {
2668
2923
  attrs: {
2669
2924
  position: o,
2670
2925
  label: i.name,
2671
2926
  hideIcon: !0
2672
2927
  }
2673
2928
  })]);
2674
- })), dr = v((t, {
2929
+ })), rt = v((t, {
2675
2930
  emit: e
2676
- }) => (Y(() => e("mapMounted")), () => {
2931
+ }) => (B(() => e("mapMounted")), () => {
2677
2932
  const {
2678
2933
  from: n,
2679
2934
  to: i,
2680
2935
  registerOverlay: a
2681
- } = t, r = D(n), o = D(i);
2682
- return I("div", [I(E, {
2936
+ } = t, r = C(n), o = C(i);
2937
+ return g("div", [g(E, {
2683
2938
  attrs: {
2684
2939
  type: "start",
2685
2940
  position: r,
2686
2941
  registerOverlay: a
2687
2942
  }
2688
- }), I(E, {
2943
+ }), g(E, {
2689
2944
  attrs: {
2690
2945
  type: "end",
2691
2946
  position: o,
2692
2947
  registerOverlay: a
2693
2948
  }
2694
- }), I(O, {
2949
+ }), g(Z, {
2695
2950
  attrs: {
2696
2951
  position: r,
2697
2952
  label: n.name,
2698
2953
  hideIcon: !0
2699
2954
  }
2700
- }), I(O, {
2955
+ }), g(Z, {
2701
2956
  attrs: {
2702
2957
  position: o,
2703
2958
  label: i.name,
2704
2959
  hideIcon: !0
2705
2960
  }
2706
- }), I(Ne, {
2961
+ }), g(Ae, {
2707
2962
  attrs: {
2708
2963
  from: r,
2709
2964
  to: o,
2710
2965
  render: ({
2711
2966
  path: s
2712
- }) => I(Le, {
2967
+ }) => g(je, {
2713
2968
  attrs: {
2714
2969
  path: s,
2715
2970
  done: !0
@@ -2717,7 +2972,7 @@ const nr = v(function(e) {
2717
2972
  })
2718
2973
  }
2719
2974
  })]);
2720
- })), Or = V((t) => {
2975
+ })), Zr = V((t) => {
2721
2976
  const {
2722
2977
  from: e,
2723
2978
  interval: n,
@@ -2730,11 +2985,11 @@ const nr = v(function(e) {
2730
2985
  setFitView: u
2731
2986
  } = i, {
2732
2987
  geoPosition: l
2733
- } = ln({
2734
- geoDefaultPosition: D(e)
2735
- }), d = h(D(t.from));
2736
- return b(() => t.driverStatus, (c, g, M) => {
2737
- if (!rr.includes(c))
2988
+ } = un({
2989
+ geoDefaultPosition: C(e)
2990
+ }), d = D(C(t.from));
2991
+ return P(() => t.driverStatus, (c, I, M) => {
2992
+ if (!Ir.includes(c))
2738
2993
  return;
2739
2994
  const m = setInterval(() => {
2740
2995
  r().then((p) => d.value = p);
@@ -2745,41 +3000,41 @@ const nr = v(function(e) {
2745
3000
  }), () => {
2746
3001
  const {
2747
3002
  driverStatus: c,
2748
- from: g,
3003
+ from: I,
2749
3004
  to: M,
2750
3005
  dispatchingTitle: m,
2751
3006
  bookDispatchingTitle: p,
2752
- bookDispatchedTitle: f,
3007
+ bookDispatchedTitle: y,
2753
3008
  driverArrivedTitle: j
2754
- } = t, y = d.value;
2755
- return I(_t, {
3009
+ } = t, f = d.value;
3010
+ return g(ze, {
2756
3011
  attrs: {
2757
- center: D(g),
3012
+ center: C(I),
2758
3013
  zoom: 13,
2759
3014
  mapRef: a
2760
3015
  }
2761
- }, [c === "dispatching" ? I(rt, {
3016
+ }, [c === "dispatching" ? g(at, {
2762
3017
  attrs: {
2763
- from: g,
3018
+ from: I,
2764
3019
  title: m,
2765
3020
  registerOverlay: i
2766
3021
  },
2767
3022
  on: {
2768
3023
  mapMounted: u
2769
3024
  }
2770
- }) : c === "book-dispatching" ? I(rt, {
3025
+ }) : c === "book-dispatching" ? g(at, {
2771
3026
  attrs: {
2772
- from: g,
3027
+ from: I,
2773
3028
  title: p,
2774
3029
  registerOverlay: i
2775
3030
  },
2776
3031
  on: {
2777
3032
  mapMounted: u
2778
3033
  }
2779
- }) : c === "dispatched" || c === "driverStartService" || c === "book-driverStartService" ? I(or, {
3034
+ }) : c === "dispatched" || c === "driverStartService" || c === "book-driverStartService" ? g(Mr, {
2780
3035
  attrs: {
2781
- from: g,
2782
- carPosition: y,
3036
+ from: I,
3037
+ carPosition: f,
2783
3038
  passengerPosition: l.value,
2784
3039
  renderTitle: o,
2785
3040
  registerOverlay: i
@@ -2787,30 +3042,30 @@ const nr = v(function(e) {
2787
3042
  on: {
2788
3043
  mapMounted: u
2789
3044
  }
2790
- }) : c === "book-dispatched" ? I(sr, {
3045
+ }) : c === "book-dispatched" ? g(mr, {
2791
3046
  attrs: {
2792
- from: g,
3047
+ from: I,
2793
3048
  passengerPosition: l.value,
2794
- title: f,
3049
+ title: y,
2795
3050
  registerOverlay: i
2796
3051
  },
2797
3052
  on: {
2798
3053
  mapMounted: u
2799
3054
  }
2800
- }) : c === "inService" ? I(ur, {
3055
+ }) : c === "inService" ? g(fr, {
2801
3056
  attrs: {
2802
3057
  to: M,
2803
- carPosition: y,
3058
+ carPosition: f,
2804
3059
  renderTitle: s,
2805
3060
  registerOverlay: i
2806
3061
  },
2807
3062
  on: {
2808
3063
  mapMounted: u
2809
3064
  }
2810
- }) : c === "driverArrived" ? I(cr, {
3065
+ }) : c === "driverArrived" ? g(pr, {
2811
3066
  attrs: {
2812
- from: g,
2813
- carPosition: y,
3067
+ from: I,
3068
+ carPosition: f,
2814
3069
  passengerPosition: l.value,
2815
3070
  title: j,
2816
3071
  registerOverlay: i
@@ -2818,56 +3073,50 @@ const nr = v(function(e) {
2818
3073
  on: {
2819
3074
  mapMounted: u
2820
3075
  }
2821
- }) : c === "canceled" ? I(lr, {
3076
+ }) : c === "canceled" || c === "canceling" ? g(vr, {
2822
3077
  attrs: {
2823
- from: g,
3078
+ from: I,
2824
3079
  to: M,
2825
3080
  registerOverlay: i
2826
3081
  }
2827
- }) : c === "endService" ? I(dr, {
3082
+ }) : c === "endService" || c === "completed" || c === "banlanceRefund" || c === "waitBanlanceRefund" || c === "rechargePayed" || c === "waitRechargePay" || c === "payed" || c === "waitpay" || c === "refund" || c === "confirmed" ? g(rt, {
2828
3083
  attrs: {
2829
- from: g,
3084
+ from: I,
2830
3085
  to: M,
2831
3086
  registerOverlay: i
2832
3087
  },
2833
3088
  on: {
2834
3089
  mapMounted: u
2835
3090
  }
2836
- }) : null]);
3091
+ }) : (
3092
+ // 匹配不到就显示灰色路线
3093
+ g(rt, {
3094
+ attrs: {
3095
+ from: I,
3096
+ to: M,
3097
+ registerOverlay: i
3098
+ },
3099
+ on: {
3100
+ mapMounted: u
3101
+ }
3102
+ })
3103
+ )]);
2837
3104
  };
2838
- }).props(["bookDispatchedTitle", "bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPosition", "interval", "loading", "mapRef", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]), kr = v(function(e, {
2839
- emit: n
2840
- }) {
2841
- return () => I("div", [e.places.map((i) => I(O, {
2842
- attrs: {
2843
- position: D(i),
2844
- label: i.name,
2845
- textAlign: "left"
2846
- },
2847
- on: {
2848
- click: () => n("click", i)
2849
- }
2850
- }))]);
2851
- }), te = () => {
2852
- const t = h(0);
2853
- return { idx: t, update: () => {
2854
- t.value += 1;
2855
- } };
2856
- }, gr = (t) => {
2857
- const { city: e } = t, n = h(e), { readyPromise: i } = A(), a = h(""), r = h([]), { update: o, idx: s } = te(), u = (d) => {
3105
+ }).props(["bookDispatchedTitle", "bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPosition", "interval", "loading", "mapRef", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]), yr = (t) => {
3106
+ const { city: e } = t, n = D(e), { readyPromise: i } = L(), a = D(""), r = D([]), { update: o, idx: s } = K(), u = (d) => {
2858
3107
  n.value = d, o();
2859
3108
  }, l = (d) => {
2860
3109
  a.value = d, o();
2861
3110
  };
2862
- return b(
3111
+ return P(
2863
3112
  () => s.value,
2864
3113
  async () => {
2865
3114
  if (!a.value)
2866
3115
  return;
2867
- await i, new AMap.PlaceSearch({ city: n.value.name }).search(a.value, (c, g) => {
3116
+ await i, new AMap.PlaceSearch({ city: n.value.name }).search(a.value, (c, I) => {
2868
3117
  switch (c) {
2869
3118
  case "complete": {
2870
- r.value = g.poiList.pois.map(
3119
+ r.value = I.poiList.pois.map(
2871
3120
  (M) => ({
2872
3121
  lat: M.location.lat,
2873
3122
  lng: M.location.lng,
@@ -2881,7 +3130,7 @@ const nr = v(function(e) {
2881
3130
  r.value = [];
2882
3131
  return;
2883
3132
  default:
2884
- throw g;
3133
+ throw I;
2885
3134
  }
2886
3135
  });
2887
3136
  },
@@ -2889,13 +3138,13 @@ const nr = v(function(e) {
2889
3138
  immediate: !0
2890
3139
  }
2891
3140
  ), { setKeyword: l, setCity: u, autoCompletePlaces: r };
2892
- }, Ir = (t) => {
2893
- const { city: e } = t, n = h({ ...e }), { readyPromise: i } = A(), a = h(""), r = h([]), { update: o, idx: s } = te(), u = (c) => {
3141
+ }, jr = (t) => {
3142
+ const { city: e } = t, n = D({ ...e }), { readyPromise: i } = L(), a = D(""), r = D([]), { update: o, idx: s } = K(), u = (c) => {
2894
3143
  n.value = c, o();
2895
3144
  }, l = (c) => {
2896
3145
  a.value = c, o();
2897
3146
  }, d = document.createElement("div");
2898
- return b(
3147
+ return P(
2899
3148
  () => s.value,
2900
3149
  async () => {
2901
3150
  if (!a.value)
@@ -2905,17 +3154,17 @@ const nr = v(function(e) {
2905
3154
  query: a.value,
2906
3155
  bounds: n.value.bound
2907
3156
  },
2908
- (g, M) => {
3157
+ (I, M) => {
2909
3158
  switch (M) {
2910
3159
  case google.maps.places.PlacesServiceStatus.OK:
2911
- r.value = g.map(
2912
- ({ geometry: m, name: p, formatted_address: f }) => {
2913
- var j, y, w, z;
3160
+ r.value = I.map(
3161
+ ({ geometry: m, name: p, formatted_address: y }) => {
3162
+ var j, f, h, z;
2914
3163
  return {
2915
- lng: (y = (j = m == null ? void 0 : m.location) == null ? void 0 : j.lng()) != null ? y : 0,
2916
- lat: (z = (w = m == null ? void 0 : m.location) == null ? void 0 : w.lat()) != null ? z : 0,
3164
+ lng: (f = (j = m == null ? void 0 : m.location) == null ? void 0 : j.lng()) != null ? f : 0,
3165
+ lat: (z = (h = m == null ? void 0 : m.location) == null ? void 0 : h.lat()) != null ? z : 0,
2917
3166
  name: p != null ? p : "",
2918
- description: f != null ? f : ""
3167
+ description: y != null ? y : ""
2919
3168
  };
2920
3169
  }
2921
3170
  );
@@ -2929,22 +3178,22 @@ const nr = v(function(e) {
2929
3178
  );
2930
3179
  }
2931
3180
  ), { setKeyword: l, setCity: u, autoCompletePlaces: r };
2932
- }, Mr = (t) => {
2933
- const { supplier: e } = A();
2934
- return e === "gmap" ? Ir(t) : gr(t);
2935
- }, mr = (t) => {
3181
+ }, Ar = (t) => {
3182
+ const { supplier: e } = L();
3183
+ return e === "gmap" ? jr(t) : yr(t);
3184
+ }, Lr = (t) => {
2936
3185
  var a;
2937
- const { cityNameRef: e, onChange: n } = t, i = x({ name: (a = e.value) != null ? a : "" });
2938
- return b(
3186
+ const { cityNameRef: e, onChange: n } = t, i = w({ name: (a = e.value) != null ? a : "" });
3187
+ return P(
2939
3188
  () => e.value,
2940
3189
  (r) => {
2941
3190
  const o = r != null ? r : "";
2942
3191
  i.name = o, n == null || n({ name: o });
2943
3192
  }
2944
3193
  ), i;
2945
- }, fr = (t) => {
3194
+ }, Nr = (t) => {
2946
3195
  var r;
2947
- const { cityNameRef: e, onChange: n } = t, { readyPromise: i } = A(), a = x({
3196
+ const { cityNameRef: e, onChange: n } = t, { readyPromise: i } = L(), a = w({
2948
3197
  name: (r = e.value) != null ? r : "",
2949
3198
  bound: {
2950
3199
  east: 0,
@@ -2953,8 +3202,8 @@ const nr = v(function(e) {
2953
3202
  west: 0
2954
3203
  }
2955
3204
  });
2956
- return Cn(async () => {
2957
- var c, g;
3205
+ return Se(async () => {
3206
+ var c, I;
2958
3207
  const o = e.value;
2959
3208
  if (!o)
2960
3209
  return;
@@ -2964,289 +3213,111 @@ const nr = v(function(e) {
2964
3213
  componentRestrictions: {
2965
3214
  administrativeArea: "administrative_area_level_1"
2966
3215
  },
2967
- language: be
3216
+ language: Pe
2968
3217
  });
2969
3218
  if (u.length !== 1)
2970
3219
  throw new Error("MyError: multiple city found");
2971
- const { geometry: l } = u[0], d = (g = (c = l.bounds) == null ? void 0 : c.toJSON()) != null ? g : l.viewport.toJSON();
3220
+ const { geometry: l } = u[0], d = (I = (c = l.bounds) == null ? void 0 : c.toJSON()) != null ? I : l.viewport.toJSON();
2972
3221
  a.name = o, a.bound = d, n == null || n({ name: o, bound: d });
2973
3222
  }), a;
2974
- }, pr = (t) => {
2975
- const { supplier: e } = A();
2976
- return e === "gmap" ? fr(t) : mr(t);
2977
- }, Gr = (t) => {
2978
- const { cityNameRef: e } = t, n = pr({
3223
+ }, Sr = (t) => {
3224
+ const { supplier: e } = L();
3225
+ return e === "gmap" ? Nr(t) : Lr(t);
3226
+ }, Or = (t) => {
3227
+ const { cityNameRef: e } = t, n = Sr({
2979
3228
  cityNameRef: e,
2980
3229
  onChange: (s) => r(s)
2981
- }), { autoCompletePlaces: i, setKeyword: a, setCity: r } = Mr({ city: n });
3230
+ }), { autoCompletePlaces: i, setKeyword: a, setCity: r } = Ar({ city: n });
2982
3231
  return { autoCompletePlaces: i, setKeyword: a, setCity: r, handleKeywordInput: (s) => {
2983
3232
  const u = s.target;
2984
3233
  a(u.value);
2985
3234
  } };
2986
- }, vr = (t) => {
2987
- const { mapRef: e, onChange: n } = t, i = h([0, 0]), a = h(!1), r = () => {
2988
- Promise.resolve().then(() => a.value = !0);
2989
- }, o = (s, { target: u }) => {
2990
- var c;
2991
- a.value = !1;
2992
- const { lng: l, lat: d } = u.getCenter();
2993
- i.value = [l, d], (c = Rt(n)) == null || c([l, d]);
2994
- };
2995
- return ae(e, {}, r, [
2996
- "onDragStart"
2997
- ]), ae(e, {}, o, [
2998
- "onDragEnd"
2999
- ]), { centerRef: i, isDragging: a };
3000
- }, yr = (t) => {
3001
- const { mapRef: e, onChange: n } = t, i = h([0, 0]), a = h(!1), r = () => {
3002
- Promise.resolve().then(() => a.value = !0);
3003
- }, o = async () => {
3004
- var d, c;
3005
- a.value = !1;
3006
- const s = (d = e.value) == null ? void 0 : d.getCenter(), u = s == null ? void 0 : s.lng(), l = s == null ? void 0 : s.lat();
3007
- i.value = [u, l], (c = Rt(n)) == null || c([u, l]);
3008
- };
3009
- return K(e, {}, r, [
3010
- "onDragStart"
3011
- ]), K(e, {}, o, [
3012
- "onDragEnd"
3013
- ]), { centerRef: i, isDragging: a };
3014
- }, jr = (t) => {
3015
- const { supplier: e } = A();
3016
- return e === "gmap" ? yr(t) : vr(t);
3017
- }, Nn = (t) => {
3018
- const { pointRef: e, onChange: n } = t, { readyPromise: i } = A(), { idx: a, update: r } = te(), o = x({
3019
- lng: e.value[0],
3020
- lat: e.value[1],
3021
- name: "",
3022
- cityName: void 0
3023
- });
3024
- return b(
3025
- () => a.value,
3026
- async () => {
3027
- await i;
3028
- const s = new AMap.Geocoder({ lang: be }), [u, l] = e.value;
3029
- s.getAddress(new AMap.LngLat(u, l), (d, c) => {
3030
- switch (d) {
3031
- case "complete": {
3032
- const { formattedAddress: g, addressComponent: M } = c.regeocode, m = M.city ? M.city : M.province;
3033
- o.name = g, o.lng = u, o.lat = l, o.cityName = m, n == null || n({ lng: u, lat: l, name: g, cityName: m });
3034
- return;
3035
- }
3036
- case "no_data":
3037
- o.name = "", n == null || n({ lng: u, lat: l, name: "" });
3038
- return;
3039
- case "error":
3040
- throw c;
3041
- }
3042
- });
3043
- }
3044
- ), { place: o, updatePlace: r };
3045
- }, Sn = (t) => {
3046
- const { pointRef: e, onChange: n } = t, { readyPromise: i } = A(), { idx: a, update: r } = te(), o = x({ lng: e.value[0], lat: e.value[1], name: "" });
3047
- return b(
3048
- () => a.value,
3049
- async () => {
3050
- await i;
3051
- const s = new google.maps.Geocoder(), [u, l] = e.value, { results: d } = await s.geocode({ language: be, location: { lng: u, lat: l } }), c = d[0].formatted_address, g = fa(d[0]);
3052
- o.name = c, o.lng = u, o.lat = l, n == null || n({ lng: u, lat: l, name: c, cityName: g });
3053
- }
3054
- ), { place: o, updatePlace: r };
3055
- }, Wr = (t) => {
3056
- const { supplier: e } = A();
3057
- return e === "gmap" ? Sn(t) : Nn(t);
3058
- }, Ar = (t, e) => {
3059
- let n = 1 / 0, i = t;
3060
- for (const a of e) {
3061
- const r = AMap.GeometryUtil.distance(D(t), D(a));
3062
- r >= n || (i = a, n = r);
3063
- }
3064
- return { shortestPlace: i, shortestDistance: n };
3065
- }, Lr = (t, e) => {
3066
- let n = 1 / 0, i = t;
3067
- for (const a of e) {
3068
- const r = google.maps.geometry.spherical.computeDistanceBetween(t, a);
3069
- r >= n || (i = a, n = r);
3070
- }
3071
- return { shortestPlace: i, shortestDistance: n };
3072
- }, Nr = (t) => {
3073
- const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: r, onChangePlace: o } = t, s = h([]), { idx: u, update: l } = te(), { readyPromise: d } = A(), { place: c, updatePlace: g } = Nn({ pointRef: e, onChange: o }), M = x({ ...c });
3074
- return b(
3075
- () => u.value,
3076
- async () => {
3077
- await d;
3078
- const m = await n({ ...c }, a), { shortestPlace: p, shortestDistance: f } = Ar(c, m), j = i(a), y = f > j ? c : p;
3079
- s.value = m, Object.assign(M, { ...y }), r == null || r({ ...y });
3080
- }
3081
- ), { recomendPlace: M, placeCandidates: s, updateRecomandPlace: l, updatePlace: g };
3082
- }, Sr = (t) => {
3083
- const { pointRef: e, getRecomendPlace: n, getLimit: i, context: a, onChange: r, onChangePlace: o } = t, s = h([]), { idx: u, update: l } = te(), { readyPromise: d } = A(), { place: c, updatePlace: g } = Sn({ pointRef: e, onChange: o }), M = x({ ...c });
3084
- return b(
3085
- () => u.value,
3086
- async () => {
3087
- await d;
3088
- const m = await n({ ...c }, a), { shortestPlace: p, shortestDistance: f } = Lr(c, m), j = i(a), y = f > j ? c : p;
3089
- s.value = m, Object.assign(M, { ...y }), r == null || r({ ...y });
3090
- }
3091
- ), { recomendPlace: M, placeCandidates: s, updateRecomandPlace: l, updatePlace: g };
3092
- }, hr = (t) => {
3093
- const { supplier: e } = A();
3094
- return e === "gmap" ? Sr(t) : Nr(t);
3095
- }, Ur = (t) => {
3096
- var Ze, Re;
3097
- const {
3235
+ }, kr = () => {
3236
+ const { setMap: t, mapRef: e } = Ee(), { registerFitVeiw: n, setFitView: i } = Te({
3098
3237
  mapRef: e,
3099
- geoDefaultPosition: n,
3100
- getRecomendPlace: i,
3101
- defaultCenterPoint: a,
3102
- recomendPlaceDragLimit: r,
3103
- recomendPlaceGeoLimit: o,
3104
- onLoadGeoLocation: s,
3105
- onLoadDefaultGeoLocation: u,
3106
- onChangeByDrag: l,
3107
- onChangeGeoLocation: d,
3108
- onChangePlace: c,
3109
- onChangeRecomandPlace: g
3110
- } = t, { readyPromise: M } = A(), m = x({
3111
- lng: (Ze = a == null ? void 0 : a[0]) != null ? Ze : 0,
3112
- lat: (Re = a == null ? void 0 : a[1]) != null ? Re : 0,
3238
+ padding: [25, 20, 15, 15]
3239
+ });
3240
+ return { setMap: t, registerFitVeiw: n, setFitView: i };
3241
+ }, hr = () => {
3242
+ const { status: t } = L();
3243
+ return { apiMapDistance: (n, i) => {
3244
+ if (t === ie.SUCCESS)
3245
+ return AMap.GeometryUtil.distance(n, i);
3246
+ } };
3247
+ }, Dr = () => {
3248
+ const { status: t } = L();
3249
+ return { apiMapDistance: (n, i) => {
3250
+ if (t === ie.SUCCESS)
3251
+ return google.maps.geometry.spherical.computeDistanceBetween(x(n), x(i));
3252
+ } };
3253
+ }, Cr = () => {
3254
+ const { supplier: t } = L();
3255
+ return t === "gmap" ? Dr() : hr();
3256
+ }, Gr = () => {
3257
+ const t = w({
3258
+ lng: 0,
3259
+ lat: 0,
3113
3260
  name: "",
3114
3261
  cityName: void 0
3115
- }), p = L(() => [m.lng, m.lat]), f = { source: "geo" }, j = (N) => {
3116
- f.source = "api", m.lng = N[0], m.lat = N[1], k();
3117
- }, y = (N) => {
3118
- f.source = "api", m.lng = N.lng, m.lat = N.lat, m.name = N.name;
3119
- };
3120
- a && M.then(() => {
3121
- f.source = "default", k();
3122
- });
3123
- const { geoLoading: w, geoError: z, geoPosition: H, geoCoordinate: S, geoReady: R } = ln({
3124
- geoDefaultPosition: n,
3125
- onLoad: async (N) => {
3126
- a || (await M, f.source = "geo", m.lng = N.position[0], m.lat = N.position[1], k()), s == null || s(N);
3127
- },
3128
- onLoadDefault: async (N) => {
3129
- a || (await M, f.source = "geo", m.lng = N.position[0], m.lat = N.position[1], k()), u == null || u(N);
3262
+ }), e = D([]), { apiMapDistance: n } = Cr(), i = (o) => r.panTo(o), a = (o) => r.setCenterPlaceByRecomand(o), r = {
3263
+ panTo: () => {
3264
+ throw new Error("MyError: panTo used before assigned");
3130
3265
  },
3131
- onChange: d
3132
- }), { isDragging: Q } = jr({
3133
- mapRef: e,
3134
- onChange: (N) => {
3135
- f.source = "drag", m.lng = N[0], m.lat = N[1], k(), l == null || l(N);
3136
- }
3137
- }), { updatePlace: k, updateRecomandPlace: Dn, placeCandidates: wn } = hr({
3138
- pointRef: p,
3139
- context: f,
3140
- getRecomendPlace: i,
3141
- getLimit: (N) => {
3142
- const Oe = N == null ? void 0 : N.source;
3143
- switch (Oe) {
3144
- case "drag":
3145
- case "api":
3146
- return r;
3147
- case "geo":
3148
- case "default":
3149
- return o;
3150
- default:
3151
- throw new Error(`MyError: should not call getLimit on source: ${Oe}`);
3152
- }
3266
+ setCenterPlaceByRecomand: () => {
3267
+ throw new Error("MyError: setCenterPlaceByRecomand used before assigned");
3153
3268
  },
3154
- onChangePlace: (N) => {
3155
- Object.assign(m, { ...N }), f.source !== "recomend" && Dn(), c == null || c(N);
3269
+ onChangeCenterPlace: (o) => {
3270
+ Object.assign(t, { ...o });
3156
3271
  },
3157
- onChange: (N) => {
3158
- f.source = "recomend", Object.assign(m, { ...N }), k(), g == null || g(N);
3272
+ onChangeRecomendPlaces: (o) => {
3273
+ e.value = [...o];
3159
3274
  }
3160
- });
3275
+ };
3161
3276
  return {
3162
- isDragging: Q,
3163
- geoLoading: w,
3164
- geoError: z,
3165
- geoPosition: H,
3166
- geoCoordinate: S,
3167
- geoReady: R,
3168
- centerPlace: m,
3169
- centerPoint: p,
3170
- placeCandidates: wn,
3171
- setCenterPlaceByRecomand: j,
3172
- setCenterByPlace: y
3277
+ mapContext: r,
3278
+ centerPlace: t,
3279
+ placeCandidates: e,
3280
+ panTo: i,
3281
+ setCenterPlaceByRecomand: a,
3282
+ apiMapDistance: n
3173
3283
  };
3174
- }, Dr = () => {
3175
- const t = P();
3176
- return { mapRef: t, panTo: (i) => {
3177
- var a;
3178
- return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(i);
3179
- }, setMap: (i) => {
3180
- t.value = i;
3181
- } };
3182
- }, wr = () => {
3183
- const t = P();
3184
- return { mapRef: t, panTo: (i) => {
3185
- var a;
3186
- return (a = t == null ? void 0 : t.value) == null ? void 0 : a.panTo(C(i));
3187
- }, setMap: (i) => {
3188
- t.value = i;
3189
- } };
3190
- }, hn = () => {
3191
- const { supplier: t } = A();
3192
- return t === "gmap" ? wr() : Dr();
3193
- }, Br = () => {
3194
- const { setMap: t, mapRef: e } = hn(), { registerFitVeiw: n, setFitView: i } = ze({
3195
- mapRef: e,
3196
- padding: [25, 20, 15, 15]
3197
- });
3198
- return { setMap: t, registerFitVeiw: n, setFitView: i };
3199
- }, Yr = () => {
3200
- const { mapRef: t, setMap: e } = hn(), { registerFitVeiw: n, setFitView: i } = ze({
3284
+ }, Wr = () => {
3285
+ const { mapRef: t, setMap: e } = Ee(), { registerFitVeiw: n, setFitView: i } = Te({
3201
3286
  mapRef: t,
3202
3287
  autoFitTimeout: 5e3,
3203
3288
  padding: [25, 20, 15, 15]
3204
3289
  });
3205
3290
  return { setMap: e, registerFitVeiw: n, setFitView: i };
3206
- }, xr = () => {
3207
- const { status: t } = A();
3208
- return { apiMapDistance: (n, i) => {
3209
- if (t === re.SUCCESS)
3210
- return AMap.GeometryUtil.distance(n, i);
3211
- } };
3212
- }, Cr = () => {
3213
- const { status: t } = A();
3214
- return { apiMapDistance: (n, i) => {
3215
- if (t === re.SUCCESS)
3216
- return google.maps.geometry.spherical.computeDistanceBetween(C(n), C(i));
3217
- } };
3218
- }, Vr = () => {
3219
- const { supplier: t } = A();
3220
- return t === "gmap" ? Cr() : xr();
3221
3291
  };
3222
3292
  export {
3223
- Pr as AddressBox,
3224
- Zr as BusinessQuotingMap,
3225
- Or as BusinessTaxiServiceMap,
3226
- Le as DrivingLine,
3227
- Ne as DrivingRoute,
3228
- _t as HeycarMap,
3229
- zr as MapProvider,
3230
- Te as PassengerCircle,
3231
- kr as PickupPoints,
3232
- O as PlaceCircle,
3293
+ pa as AddressBox,
3294
+ zr as BusinessQuotingMap,
3295
+ Er as BusinessRecomendPlaceMap,
3296
+ Zr as BusinessTaxiServiceMap,
3297
+ je as DrivingLine,
3298
+ Ae as DrivingRoute,
3299
+ ze as HeycarMap,
3300
+ xr as MapProvider,
3301
+ Le as PassengerCircle,
3302
+ nr as PickupPoints,
3303
+ Z as PlaceCircle,
3233
3304
  E as StartEndPoint,
3234
- Ee as TaxiCar,
3235
- vn as WalkingLine,
3236
- An as WalkingRoute,
3237
- ar as WaveCircle,
3238
- Gr as useBusinessMapAutoComplete,
3239
- Ur as useBusinessMapRecomendPlace,
3240
- Br as useBusinessQuotingMap,
3241
- Yr as useBusinessTaxiServiceMap,
3242
- Tr as useDrivingRoute,
3243
- ln as useGeoLocation,
3244
- hn as useHeycarMap,
3245
- Er as useMapAngle,
3246
- jr as useMapDrag,
3247
- ze as useMapFitView,
3248
- Vr as useMapGeometry,
3249
- Wr as useMapPlace,
3250
- hr as useMapRecomendPlace,
3305
+ Re as TaxiCar,
3306
+ yn as WalkingLine,
3307
+ Ln as WalkingRoute,
3308
+ gr as WaveCircle,
3309
+ Or as useBusinessMapAutoComplete,
3310
+ kr as useBusinessQuotingMap,
3311
+ Gr as useBusinessRecomendPlaceMap,
3312
+ Wr as useBusinessTaxiServiceMap,
3313
+ Pr as useDrivingRoute,
3314
+ un as useGeoLocation,
3315
+ Ee as useHeycarMap,
3316
+ br as useMapAngle,
3317
+ Qa as useMapDrag,
3318
+ Te as useMapFitView,
3319
+ Cr as useMapGeometry,
3320
+ Tr as useMapPlace,
3321
+ _a as useMapRecomendPlace,
3251
3322
  Rr as useWalkingRoute
3252
3323
  };