@das-fed/upf-ui 6.4.0-dev.215 → 6.4.0-dev.216

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 (96) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/ai-panel/index-B4pMosXu.js +143 -0
  3. package/packages/business-components/ai-panel/index-B4pMosXu.js.gz +0 -0
  4. package/packages/business-components/ai-panel/{index-BybM3Q9u.js → index-BgyMyjJo.js} +711 -700
  5. package/packages/business-components/ai-panel/index-BgyMyjJo.js.gz +0 -0
  6. package/packages/business-components/ai-panel/{index-CwdJKHy0.js → index-Bw7rNZmA.js} +9 -9
  7. package/packages/business-components/ai-panel/index-Bw7rNZmA.js.gz +0 -0
  8. package/packages/business-components/ai-panel/index.js +1 -1
  9. package/packages/business-components/device-panel/index.js +8873 -8773
  10. package/packages/business-components/device-panel/index.js.gz +0 -0
  11. package/packages/business-components/echarts/index.js +2056 -2049
  12. package/packages/business-components/echarts/index.js.gz +0 -0
  13. package/packages/business-components/process-configuration/index.js +50 -50
  14. package/packages/business-components/process-configuration/index.js.gz +0 -0
  15. package/packages/business-components/process-form/index.js +149 -149
  16. package/packages/business-components/process-form/index.js.gz +0 -0
  17. package/packages/business-components/process-search-form/index.js +60 -60
  18. package/packages/business-components/process-search-form/index.js.gz +0 -0
  19. package/packages/business-components/process-table/index.js +130 -128
  20. package/packages/business-components/process-table/index.js.gz +0 -0
  21. package/packages/business-components/urgent-panel/index.js +904 -896
  22. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  23. package/packages/business-components/user-org-dialog/index.js +249 -246
  24. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  25. package/packages/business-components/video-dialog/index.js +1 -0
  26. package/packages/business-components/video-dialog/index.js.gz +0 -0
  27. package/packages/components/autocomplete/index.js +12 -6
  28. package/packages/components/autocomplete/index.js.gz +0 -0
  29. package/packages/components/calendar/index.js +104 -104
  30. package/packages/components/calendar/index.js.gz +0 -0
  31. package/packages/components/cascader/index.js +27 -27
  32. package/packages/components/cascader/index.js.gz +0 -0
  33. package/packages/components/checkbox/index.js +54 -54
  34. package/packages/components/checkbox/index.js.gz +0 -0
  35. package/packages/components/date-picker/index.js +459 -459
  36. package/packages/components/date-picker/index.js.gz +0 -0
  37. package/packages/components/dimple-layout/index.js +63 -61
  38. package/packages/components/dimple-layout/index.js.gz +0 -0
  39. package/packages/components/dropdown/index.js +23 -22
  40. package/packages/components/dropdown/index.js.gz +0 -0
  41. package/packages/components/edit-table/index.js +224 -223
  42. package/packages/components/edit-table/index.js.gz +0 -0
  43. package/packages/components/error-overlay-model/index.js +44 -42
  44. package/packages/components/error-overlay-model/index.js.gz +0 -0
  45. package/packages/components/form-item/index.js +67 -63
  46. package/packages/components/form-item/index.js.gz +0 -0
  47. package/packages/components/image-viewer/index.js +32 -32
  48. package/packages/components/image-viewer/index.js.gz +0 -0
  49. package/packages/components/input/index.js +51 -51
  50. package/packages/components/input/index.js.gz +0 -0
  51. package/packages/components/input-number/index.js +44 -44
  52. package/packages/components/input-number/index.js.gz +0 -0
  53. package/packages/components/live-player/index.js +834 -832
  54. package/packages/components/live-player/index.js.gz +0 -0
  55. package/packages/components/map/index.js +437 -431
  56. package/packages/components/map/index.js.gz +0 -0
  57. package/packages/components/menu-aside/index.js +1 -1
  58. package/packages/components/menu-aside/index.js.gz +0 -0
  59. package/packages/components/message/index.js +6 -6
  60. package/packages/components/message/index.js.gz +0 -0
  61. package/packages/components/radio-tabs/index.js +33 -33
  62. package/packages/components/radio-tabs/index.js.gz +0 -0
  63. package/packages/components/rich-editor/index.js +4586 -4556
  64. package/packages/components/rich-editor/index.js.gz +0 -0
  65. package/packages/components/scrollbar/index.js +135 -135
  66. package/packages/components/scrollbar/index.js.gz +0 -0
  67. package/packages/components/search/index.js +2 -2
  68. package/packages/components/search/index.js.gz +0 -0
  69. package/packages/components/select/index.js +92 -92
  70. package/packages/components/select/index.js.gz +0 -0
  71. package/packages/components/select-list/index.js +10 -6
  72. package/packages/components/select-list/index.js.gz +0 -0
  73. package/packages/components/special-range-picker-month/index.js +16 -14
  74. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  75. package/packages/components/special-range-picker-year/index.js +53 -51
  76. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  77. package/packages/components/spin/index.js +35 -35
  78. package/packages/components/spin/index.js.gz +0 -0
  79. package/packages/components/split-panel/index.js +102 -101
  80. package/packages/components/split-panel/index.js.gz +0 -0
  81. package/packages/components/table/index.js +604 -599
  82. package/packages/components/table/index.js.gz +0 -0
  83. package/packages/components/time-line/index.js +1 -1
  84. package/packages/components/time-line/index.js.gz +0 -0
  85. package/packages/components/tree/index.js +182 -173
  86. package/packages/components/tree/index.js.gz +0 -0
  87. package/packages/components/tree-select/index.js +81 -81
  88. package/packages/components/tree-select/index.js.gz +0 -0
  89. package/packages/components/tree-table/index.js +2 -2
  90. package/packages/components/tree-table/index.js.gz +0 -0
  91. package/packages/components/tree-v2/index.js +1240 -1208
  92. package/packages/components/tree-v2/index.js.gz +0 -0
  93. package/packages/business-components/ai-panel/index-BybM3Q9u.js.gz +0 -0
  94. package/packages/business-components/ai-panel/index-CgWRv2Ge.js +0 -142
  95. package/packages/business-components/ai-panel/index-CgWRv2Ge.js.gz +0 -0
  96. package/packages/business-components/ai-panel/index-CwdJKHy0.js.gz +0 -0
@@ -1,66 +1,68 @@
1
1
  import '@das-fed/upf-ui/packages/components/map/style.css';
2
- import { ref as S, defineComponent as Ae, shallowRef as H, computed as Se, onMounted as Oe, openBlock as Te, createElementBlock as $e, normalizeStyle as je, createElementVNode as W, withDirectives as Z, createVNode as de, unref as B, withKeys as Le, h as Qt, render as ea, isRef as ta, vShow as Ke, withCtx as aa, createTextVNode as oa, toDisplayString as ra } from "vue";
3
- import { withInstall as Ee } from "@das-fed/upf-utils/with-install/index";
2
+ import { ref as S, defineComponent as Ae, shallowRef as H, computed as Se, onMounted as Oe, openBlock as Te, createElementBlock as $e, normalizeStyle as je, createElementVNode as W, withDirectives as Z, createVNode as de, unref as D, withKeys as Ee, h as Qt, render as ea, isRef as ta, vShow as Ke, withCtx as aa, createTextVNode as oa, toDisplayString as ra } from "vue";
3
+ import { withInstall as Le } from "@das-fed/upf-utils/with-install/index";
4
4
  import { ElAutocomplete as Pe, ElLoadingDirective as ke } from "element-plus/es";
5
5
  import "element-plus/es/components/base/style/css";
6
6
  import "element-plus/es/components/loading/style/css";
7
7
  import "element-plus/es/components/autocomplete/style/css";
8
- import { t as P, setI18nRule as na } from "@das-fed/upf-web/packages/i18n/index";
8
+ import { t as k, setI18nRule as na } from "@das-fed/upf-web/packages/i18n/index";
9
9
  import { vDasTooltip as Re } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
10
- import { DasMessage as D } from "@das-fed/upf-ui/packages/components/message/index";
11
- import { createService as ct } from "@das-fed/upf-utils/create-api-service";
10
+ import { DasMessage as N } from "@das-fed/upf-ui/packages/components/message/index";
11
+ import { createService as it } from "@das-fed/upf-utils/create-api-service";
12
12
  import { DasButton as la } from "@das-fed/upf-ui/packages/components/button/index";
13
13
  const Q = (e) => {
14
14
  if (e)
15
15
  return typeof e == "string" && hasCssUnit(e) ? e : e + "px";
16
- }, st = ({ MapGL: e, map: t, marker: a, mapLoading: r, $autocomplete: u, searchResultList: l, innerInput: n, innerPoint: o, adCode: s, addressInfo: v }, b) => {
16
+ }, st = ({ MapGL: e, map: t, marker: a, mapLoading: r, $autocomplete: u, searchResultList: l, innerInput: n, innerPoint: o, adCode: d, addressInfo: v }, b) => {
17
17
  const C = S();
18
18
  let M;
19
- const k = (T, g, p, w) => {
19
+ const R = (O, g, p, w) => {
20
20
  C.value = p, w && (M = w);
21
- const j = document.createElement("script");
22
- if (j.src = `${location.protocol}//webapi.amap.com/maps?v=1.4.15&key=${T}&plugin=AMap.CitySearch&callback=onLoad`, g) {
23
- const d = document.createElement("script");
24
- d.innerHTML = `window._AMapSecurityConfig = {
21
+ const $ = document.createElement("script");
22
+ if ($.src = `${location.protocol}//webapi.amap.com/maps?v=1.4.15&key=${O}&plugin=AMap.CitySearch&callback=onLoad`, g) {
23
+ const s = document.createElement("script");
24
+ s.innerHTML = `window._AMapSecurityConfig = {
25
25
  securityJsCode: "${g}",
26
- }`, document.head.appendChild(d);
26
+ }`, document.head.appendChild(s);
27
27
  }
28
- document.head.appendChild(j), window.onLoad = () => {
29
- L();
28
+ document.head.appendChild($), window.onLoad = () => {
29
+ E();
30
30
  };
31
- }, L = () => {
32
- var T, g;
33
- if (e.value = AMap, !(typeof e.value > "u")) {
34
- try {
35
- const p = ((T = C.value) == null ? void 0 : T.mapOpt) ?? {};
36
- t.value = new AMap.Map("map", {
37
- zoom: 15,
38
- ...p
39
- });
40
- } catch {
41
- r.value = !1, D.error(P("thirdPartyMapErrorRetry"));
42
- }
43
- AMap.plugin(["AMap.ToolBar"], () => {
44
- t.value.addControl(
45
- // @ts-ignore
46
- new AMap.ToolBar({
47
- // 简易缩放模式,默认为 false
48
- liteStyle: !0
49
- })
50
- );
51
- }), i(), (g = C.value) != null && g.clickStream || c(), r.value = !1, M && M();
31
+ }, E = () => {
32
+ var O, g;
33
+ if (e.value = AMap, console.log("AMap", e.value), typeof e.value > "u") {
34
+ console.log("AK值无效");
35
+ return;
36
+ }
37
+ try {
38
+ const p = ((O = C.value) == null ? void 0 : O.mapOpt) ?? {};
39
+ t.value = new AMap.Map("map", {
40
+ zoom: 15,
41
+ ...p
42
+ });
43
+ } catch {
44
+ r.value = !1, N.error(k("thirdPartyMapErrorRetry"));
52
45
  }
53
- }, c = () => {
54
- t.value.on("click", (T) => {
55
- a.value && t.value.remove(a.value), o.value = [T.lnglat.getLng(), T.lnglat.getLat()], h(o.value, !0).then(() => {
46
+ AMap.plugin(["AMap.ToolBar"], () => {
47
+ t.value.addControl(
48
+ // @ts-ignore
49
+ new AMap.ToolBar({
50
+ // 简易缩放模式,默认为 false
51
+ liteStyle: !0
52
+ })
53
+ );
54
+ }), c(), (g = C.value) != null && g.clickStream || i(), r.value = !1, M && M();
55
+ }, i = () => {
56
+ t.value.on("click", (O) => {
57
+ a.value && t.value.remove(a.value), o.value = [O.lnglat.getLng(), O.lnglat.getLat()], h(o.value, !0).then(() => {
56
58
  a.value = new AMap.Marker({
57
59
  position: o.value,
58
60
  title: n.value
59
- }), t.value.add(a.value), t.value.setCenter(o.value);
61
+ }), t.value.add(a.value), t.value.setCenter(o.value), console.log("当前的地址坐标信息:", o.value, n.value);
60
62
  });
61
63
  });
62
- }, i = async () => {
63
- !n.value && !o.value.length && R(), n.value && o.value.length > 0 ? await h(o.value) : n.value ? await A(n.value) : o.value.length > 0 && await h(o.value, !0), n.value && _(n.value, (T, g) => {
64
+ }, c = async () => {
65
+ !n.value && !o.value.length && G(), n.value && o.value.length > 0 ? await h(o.value) : n.value ? await A(n.value) : o.value.length > 0 && await h(o.value, !0), n.value && _(n.value, (O, g) => {
64
66
  if (g && g.length) {
65
67
  const p = g.find(
66
68
  (w) => w.value === n.value || w.info.name === n.value
@@ -75,54 +77,54 @@ const Q = (e) => {
75
77
  position: o.value,
76
78
  title: n.value
77
79
  }), t.value.add(a.value), o.value.length && t.value.setCenter(o.value);
78
- }, h = (T, g = !1) => {
79
- const p = T.join(",");
80
- return new Promise((w, j) => {
80
+ }, h = (O, g = !1) => {
81
+ const p = O.join(",");
82
+ return new Promise((w, $) => {
81
83
  AMap.service("AMap.Geocoder", () => {
82
84
  new AMap.Geocoder({
83
85
  city: "全国"
84
- }).getAddress(p, (f, y) => {
85
- var x, m;
86
- if (f === "complete" && (y != null && y.regeocode)) {
86
+ }).getAddress(p, (f, m) => {
87
+ var x, y;
88
+ if (console.log(`${p}逆地址解析=======`, f, m), f === "complete" && (m != null && m.regeocode)) {
87
89
  if (g) {
88
- const { province: O = "", city: N = "", district: z = "", township: ne = "" } = y.regeocode.addressComponent;
89
- n.value = y.regeocode.formattedAddress ?? "", v.value = {
90
- district: O + N + z,
90
+ const { province: T = "", city: z = "", district: L = "", township: ne = "" } = m.regeocode.addressComponent;
91
+ n.value = m.regeocode.formattedAddress ?? "", v.value = {
92
+ district: T + z + L,
91
93
  address: ne,
92
- name: n.value.replace(O, "").replace(N, "").replace(z, "").replace(ne, "")
94
+ name: n.value.replace(T, "").replace(z, "").replace(L, "").replace(ne, "")
93
95
  };
94
96
  }
95
- s.value = ((m = (x = y.regeocode) == null ? void 0 : x.addressComponent) == null ? void 0 : m.adcode) ?? "", w(y.regeocode);
97
+ d.value = ((y = (x = m.regeocode) == null ? void 0 : x.addressComponent) == null ? void 0 : y.adcode) ?? "", w(m.regeocode);
96
98
  } else
97
- D.error(P("thirdPartyMapErrorRetry")), j();
99
+ N.error(k("thirdPartyMapErrorRetry")), $();
98
100
  });
99
101
  });
100
102
  });
101
- }, A = (T) => new Promise((g, p) => {
103
+ }, A = (O) => new Promise((g, p) => {
102
104
  AMap.service("AMap.Geocoder", () => {
103
105
  new AMap.Geocoder({
104
106
  city: "全国"
105
- }).getLocation(T, (j, d) => {
106
- var f, y;
107
- if (j === "complete" && ((f = d.geocodes) != null && f.length)) {
108
- const x = d.geocodes[0].location;
109
- o.value[0] = x.lng, o.value[1] = x.lat, s.value = ((y = d.geocodes[0]) == null ? void 0 : y.adcode) ?? "", g(d.geocodes[0].location);
107
+ }).getLocation(O, ($, s) => {
108
+ var f, m;
109
+ if (console.log(`${O}地址解析出经纬度=======`, $, s), $ === "complete" && ((f = s.geocodes) != null && f.length)) {
110
+ const x = s.geocodes[0].location;
111
+ o.value[0] = x.lng, o.value[1] = x.lat, d.value = ((m = s.geocodes[0]) == null ? void 0 : m.adcode) ?? "", g(s.geocodes[0].location);
110
112
  } else
111
- D.error(P("thirdPartyMapErrorRetry")), p();
113
+ N.error(k("thirdPartyMapErrorRetry")), p();
112
114
  });
113
115
  });
114
- }), R = () => {
116
+ }), G = () => {
115
117
  new AMap.CitySearch().getLocalCity((g, p) => {
116
- if (g === "complete" && p.info === "OK") {
118
+ if (console.log("您当前所在城市:", g, p), g === "complete" && p.info === "OK") {
117
119
  if (p && p.city && p.bounds) {
118
120
  const w = p.bounds;
119
121
  t.value.setBounds(w);
120
122
  }
121
123
  } else
122
- D.error(P("thirdPartyMapErrorRetry"));
124
+ N.error(k("thirdPartyMapErrorRetry"));
123
125
  });
124
- }, _ = (T, g) => {
125
- if (u.value.activated = !0, !T) {
126
+ }, _ = (O, g) => {
127
+ if (u.value.activated = !0, !O) {
126
128
  l.value = [], g([]);
127
129
  return;
128
130
  }
@@ -130,19 +132,19 @@ const Q = (e) => {
130
132
  var p = {
131
133
  city: "全国"
132
134
  }, w = new AMap.Autocomplete(p);
133
- w.search(T, function(j, d) {
134
- if (l.value = [], !d || !d.tips) return g([]);
135
- let f = d.tips;
135
+ w.search(O, function($, s) {
136
+ if (l.value = [], !s || !s.tips) return g([]);
137
+ let f = s.tips;
136
138
  if (!f || !f.length) return g([]);
137
- f = f.map((y) => {
138
- const { district: x = "", address: m = "", name: O = "", location: N = "" } = y;
139
+ f = f.map((m) => {
140
+ const { district: x = "", address: y = "", name: T = "", location: z = "" } = m;
139
141
  return {
140
- value: x + m + O,
141
- point: N,
142
+ value: x + y + T,
143
+ point: z,
142
144
  info: {
143
145
  district: x,
144
- address: m,
145
- name: O
146
+ address: y,
147
+ name: T
146
148
  }
147
149
  };
148
150
  }), l.value = f.length > 5 ? f.slice(0, 5) : f, g(l.value, f);
@@ -151,8 +153,8 @@ const Q = (e) => {
151
153
  };
152
154
  return {
153
155
  getLocationByInputSearch: _,
154
- handleSelectAddress: (T) => {
155
- n.value = T.value, v.value = T.info, A(T.value).then((g) => {
156
+ handleSelectAddress: (O) => {
157
+ n.value = O.value, v.value = O.info, A(O.value).then((g) => {
156
158
  o.value = [g.lng, g.lat], a.value && t.value.remove(a.value), a.value = new AMap.Marker({
157
159
  position: o.value,
158
160
  title: n.value
@@ -161,10 +163,10 @@ const Q = (e) => {
161
163
  });
162
164
  },
163
165
  getLocationParse: async () => {
164
- var T;
165
- if (!l.value.length) return D.error(P("thirdPartyMapErrorRetry"));
166
- if (n.value = l.value[0].value, !((T = l.value[0]) != null && T.point))
167
- return D.error(P("thirdPartyMapErrorRetry"));
166
+ var O;
167
+ if (!l.value.length) return N.error(k("thirdPartyMapErrorRetry"));
168
+ if (console.log("检索列表:", l.value), n.value = l.value[0].value, !((O = l.value[0]) != null && O.point))
169
+ return N.error(k("thirdPartyMapErrorRetry"));
168
170
  o.value = [l.value[0].point.lng, l.value[0].point.lat], v.value = l.value[0].info, await h(o.value), a.value = new AMap.Marker({
169
171
  position: o.value,
170
172
  title: n.value
@@ -174,14 +176,14 @@ const Q = (e) => {
174
176
  getMapInfo: () => ({
175
177
  longitude: o.value[0],
176
178
  latitude: o.value[1],
177
- adCode: s.value,
179
+ adCode: d.value,
178
180
  address: n.value,
179
181
  addressInfo: v.value
180
182
  }),
181
- loadJavascript: k
183
+ loadJavascript: R
182
184
  };
183
- }, dt = "v1", ua = ct(`/api/tool/map/${dt}`), ia = ct(`/api/system-config/${dt}`), ca = ua.get("/regeo"), sa = ia.get("/platform/map/list"), Ge = async (e) => {
184
- var n, o, s, v, b;
185
+ }, dt = "v1", ua = it(`/api/tool/map/${dt}`), ca = it(`/api/system-config/${dt}`), ia = ua.get("/regeo"), sa = ca.get("/platform/map/list"), ze = async (e) => {
186
+ var n, o, d, v, b;
185
187
  const t = ["", "baidu", "gaode", "google"];
186
188
  let a = null, [r, u] = await sa().run();
187
189
  if (r)
@@ -196,7 +198,7 @@ const Q = (e) => {
196
198
  secretK: (o = C[0]) == null ? void 0 : o.securityKey
197
199
  };
198
200
  } else (l == null ? void 0 : l.length) == 1 && (a = {
199
- mapType: t[(s = l[0]) == null ? void 0 : s.serviceProvider],
201
+ mapType: t[(d = l[0]) == null ? void 0 : d.serviceProvider],
200
202
  akVal: (v = l[0]) == null ? void 0 : v.akValue,
201
203
  secretK: (b = l[0]) == null ? void 0 : b.securityKey
202
204
  });
@@ -214,61 +216,61 @@ const Q = (e) => {
214
216
  dev: { type: Boolean }
215
217
  },
216
218
  setup(e, { expose: t }) {
217
- const a = e, r = H(null), u = H(null), l = H(null), n = S(!0), o = S(null), s = S([]), v = Se(() => ({
219
+ const a = e, r = H(null), u = H(null), l = H(null), n = S(!0), o = S(null), d = S([]), v = Se(() => ({
218
220
  width: a.width ? Q(a.width) : "100%",
219
221
  height: a.height ? Q(a.height) : "100%"
220
- })), b = S(""), C = S([]), M = S(""), k = S(), { getLocationByInputSearch: L, handleSelectAddress: c, getLocationParse: i, getMapInfo: h, loadJavascript: A } = st(
222
+ })), b = S(""), C = S([]), M = S(""), R = S(), { getLocationByInputSearch: E, handleSelectAddress: i, getLocationParse: c, getMapInfo: h, loadJavascript: A } = st(
221
223
  {
222
224
  MapGL: r,
223
225
  map: u,
224
226
  marker: l,
225
227
  mapLoading: n,
226
228
  $autocomplete: o,
227
- searchResultList: s,
229
+ searchResultList: d,
228
230
  innerInput: b,
229
231
  innerPoint: C,
230
232
  adCode: M,
231
- addressInfo: k
233
+ addressInfo: R
232
234
  }
233
- ), R = async () => {
235
+ ), G = async () => {
234
236
  const _ = {
235
237
  akValue: a.akValue ?? "",
236
238
  secretKey: a.secretKey ?? ""
237
239
  };
238
240
  {
239
- const [$, G] = await Ge("gaode");
240
- $ && D.error(P("获取地图配置信息失败")), !$ && !G && D.error(P("暂未配置地图")), G && (_.akValue || (_.akValue = G.akVal), _.secretKey || (_.secretKey = G.secretK));
241
+ const [j, B] = await ze("gaode");
242
+ j && N.error(k("获取地图配置信息失败")), !j && !B && N.error(k("暂未配置地图")), B && (_.akValue || (_.akValue = B.akVal), _.secretKey || (_.secretKey = B.secretK));
241
243
  }
242
244
  return _;
243
245
  };
244
246
  return Oe(async () => {
245
247
  a.defaultLongitude && a.defaultLatitude && (C.value = [a.defaultLongitude, a.defaultLatitude]), b.value = a.defaultAddress ?? "";
246
- const { akValue: _, secretKey: $ } = await R();
247
- A(_, $);
248
+ const { akValue: _, secretKey: j } = await G();
249
+ A(_, j);
248
250
  }), t({
249
251
  /** 获取经纬度、地址、行政区划编码 */
250
252
  getMapInfo: h
251
- }), (_, $) => {
252
- const G = Pe, U = ke;
253
+ }), (_, j) => {
254
+ const B = Pe, U = ke;
253
255
  return Te(), $e("div", {
254
256
  class: "das-map",
255
257
  style: je(v.value)
256
258
  }, [
257
259
  W("div", da, [
258
- Z(de(G, {
260
+ Z(de(B, {
259
261
  ref_key: "$autocomplete",
260
262
  ref: o,
261
263
  modelValue: b.value,
262
- "onUpdate:modelValue": $[0] || ($[0] = (T) => b.value = T),
263
- "fetch-suggestions": B(L),
264
- placeholder: B(P)("请输入位置"),
264
+ "onUpdate:modelValue": j[0] || (j[0] = (O) => b.value = O),
265
+ "fetch-suggestions": D(E),
266
+ placeholder: D(k)("请输入位置"),
265
267
  style: { width: "100%" },
266
268
  "trigger-on-focus": !1,
267
- onSelect: B(c),
268
- onKeyup: Le(B(i), ["enter", "native"]),
269
+ onSelect: D(i),
270
+ onKeyup: Ee(D(c), ["enter", "native"]),
269
271
  clearable: ""
270
272
  }, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
271
- [B(Re)]
273
+ [D(Re)]
272
274
  ])
273
275
  ]),
274
276
  Z(W("div", fa, null, 512), [
@@ -282,27 +284,27 @@ const Q = (e) => {
282
284
  ], 4);
283
285
  };
284
286
  }
285
- }), ze = (e, t) => {
287
+ }), Ge = (e, t) => {
286
288
  const a = e.__vccOpts || e;
287
289
  for (const [r, u] of t)
288
290
  a[r] = u;
289
291
  return a;
290
- }, ga = /* @__PURE__ */ ze(va, [["__scopeId", "data-v-15845511"]]), ft = ({ BMap: e, map: t, marker: a, mapLoading: r, $autocomplete: u, searchResultList: l, innerInput: n, innerPoint: o, adCode: s, addressInfo: v }, b) => {
292
+ }, ga = /* @__PURE__ */ Ge(va, [["__scopeId", "data-v-15845511"]]), ft = ({ BMap: e, map: t, marker: a, mapLoading: r, $autocomplete: u, searchResultList: l, innerInput: n, innerPoint: o, adCode: d, addressInfo: v }, b) => {
291
293
  const C = S();
292
294
  let M;
293
- const k = (g, p, w) => {
295
+ const R = (g, p, w) => {
294
296
  C.value = p, w && (M = w);
295
- const j = document.createElement("script");
296
- j.src = `${location.protocol}//api.map.baidu.com/getscript?type=webgl&v=3.0&ak=${g}&services=&t=20200109192240`, j.onload = () => {
297
- L();
298
- }, document.body.append(j);
299
- }, L = () => {
297
+ const $ = document.createElement("script");
298
+ $.src = `${location.protocol}//api.map.baidu.com/getscript?type=webgl&v=3.0&ak=${g}&services=&t=20200109192240`, $.onload = () => {
299
+ E();
300
+ }, document.body.append($);
301
+ }, E = () => {
300
302
  var p, w;
301
303
  e.value = window.BMapGL;
302
304
  try {
303
305
  t.value = new e.value.Map("map", ((p = C.value) == null ? void 0 : p.mapOpt) ?? {});
304
306
  } catch {
305
- r.value = !1, D.error(P("thirdPartyMapErrorRetry"));
307
+ r.value = !1, N.error(k("thirdPartyMapErrorRetry"));
306
308
  }
307
309
  const g = new e.value.NavigationControl({
308
310
  // @ts-ignore
@@ -310,16 +312,16 @@ const Q = (e) => {
310
312
  // @ts-ignore
311
313
  type: BMAP_NAVIGATION_CONTROL_ZOOM
312
314
  });
313
- t.value.addControl(g), t.value.enableScrollWheelZoom(!0), i(), (w = C.value) != null && w.clickStream || h(), r.value = !1, M && M();
314
- }, c = (g) => new Promise((p, w) => {
315
- new e.value.Geocoder().getPoint(g, (d) => {
316
- !d || JSON.stringify(d) == "{}" ? (D.error(P("thirdPartyMapErrorRetry")), w()) : (o.value[0] = d.lng, o.value[1] = d.lat, p(d));
315
+ t.value.addControl(g), t.value.enableScrollWheelZoom(!0), c(), (w = C.value) != null && w.clickStream || h(), r.value = !1, M && M();
316
+ }, i = (g) => new Promise((p, w) => {
317
+ new e.value.Geocoder().getPoint(g, (s) => {
318
+ console.log(`${g}地址解析=======`, s), !s || JSON.stringify(s) == "{}" ? (N.error(k("thirdPartyMapErrorRetry")), w()) : (console.log("当前的地址信息:", s), o.value[0] = s.lng, o.value[1] = s.lat, p(s));
317
319
  });
318
- }), i = async () => {
319
- !n.value && !o.value.length && R(), n.value && o.value.length > 0 ? await A(o.value[0], o.value[1]) : n.value ? await c(n.value) : o.value.length > 0 && await A(o.value[0], o.value[1], !0), n.value && _(n.value, (g, p) => {
320
+ }), c = async () => {
321
+ !n.value && !o.value.length && G(), n.value && o.value.length > 0 ? await A(o.value[0], o.value[1]) : n.value ? await i(n.value) : o.value.length > 0 && await A(o.value[0], o.value[1], !0), n.value && _(n.value, (g, p) => {
320
322
  if (p && p.length) {
321
323
  const w = p.find(
322
- (j) => j.value === n.value || j.info.name === n.value
324
+ ($) => $.value === n.value || $.info.name === n.value
323
325
  );
324
326
  w ? v.value = w.info : v.value = {
325
327
  province: "",
@@ -335,28 +337,28 @@ const Q = (e) => {
335
337
  const p = g.latlng.lng, w = g.latlng.lat;
336
338
  o.value = [p, w], A(p, w, !0);
337
339
  });
338
- }, A = (g, p, w = !1, j = "default") => new Promise((d, f) => {
339
- const y = new e.value.Geocoder(), x = new e.value.Point(g, p);
340
- y.getLocation(x, (m) => {
341
- if (w) {
342
- n.value = m.address;
343
- const { province: O = "", city: N = "", district: z = "" } = m.addressComponents;
340
+ }, A = (g, p, w = !1, $ = "default") => new Promise((s, f) => {
341
+ const m = new e.value.Geocoder(), x = new e.value.Point(g, p);
342
+ m.getLocation(x, (y) => {
343
+ if (console.log("逆地址解析=======", y), w) {
344
+ n.value = y.address;
345
+ const { province: T = "", city: z = "", district: L = "" } = y.addressComponents;
344
346
  v.value = {
345
- province: O,
346
- city: N,
347
- address: N + z,
348
- name: m.address.replace(O, "").replace(N, "").replace(z, "")
347
+ province: T,
348
+ city: z,
349
+ address: z + L,
350
+ name: y.address.replace(T, "").replace(z, "").replace(L, "")
349
351
  };
350
352
  }
351
- m && m.address ? (j == "default" && (o.value[0] = m.point.lng, o.value[1] = m.point.lat, a.value && t.value.clearOverlays(), a.value = new e.value.Marker(x, { title: n.value }), t.value.addOverlay(a.value), t.value.centerAndZoom(x, 16)), U(g, p), d(m.address)) : (D.error(P("thirdPartyMapErrorRetry")), f());
353
+ y && y.address ? ($ == "default" && (o.value[0] = y.point.lng, o.value[1] = y.point.lat, console.log("当前的地址坐标信息:", y, o.value), a.value && t.value.clearOverlays(), a.value = new e.value.Marker(x, { title: n.value }), t.value.addOverlay(a.value), t.value.centerAndZoom(x, 16)), U(g, p), s(y.address)) : (N.error(k("thirdPartyMapErrorRetry")), f());
352
354
  });
353
- }), R = () => {
355
+ }), G = () => {
354
356
  new e.value.LocalCity().get((p) => {
355
357
  const w = p.center;
356
- if (!p.center) return D.error(P("thirdPartyMapErrorRetry"));
358
+ if (console.log("您当前所在城市:", p.center), !p.center) return N.error(k("thirdPartyMapErrorRetry"));
357
359
  a.value && t.value.clearOverlays();
358
- const j = new e.value.Point(w.lng, w.lat);
359
- t.value.centerAndZoom(j, 13);
360
+ const $ = new e.value.Point(w.lng, w.lat);
361
+ t.value.centerAndZoom($, 13);
360
362
  });
361
363
  }, _ = (g, p) => {
362
364
  if (u.value.activated = !0, l.value = [], !g) {
@@ -364,51 +366,51 @@ const Q = (e) => {
364
366
  return;
365
367
  }
366
368
  new e.value.LocalSearch(t.value, {
367
- onSearchComplete: (j) => {
368
- let d = [];
369
- for (let f = 0; f < j.getCurrentNumPois(); f++)
370
- d.push(j.getPoi(f));
371
- if (!d.length) return p([]);
372
- d = d.map((f) => {
373
- const { address: y = "", title: x = "", province: m = "", city: O = "", point: N = {} } = f;
369
+ onSearchComplete: ($) => {
370
+ let s = [];
371
+ for (let f = 0; f < $.getCurrentNumPois(); f++)
372
+ s.push($.getPoi(f));
373
+ if (!s.length) return p([]);
374
+ s = s.map((f) => {
375
+ const { address: m = "", title: x = "", province: y = "", city: T = "", point: z = {} } = f;
374
376
  return {
375
- value: y == x ? y : y + x,
376
- point: N,
377
+ value: m == x ? m : m + x,
378
+ point: z,
377
379
  info: {
378
- province: m,
379
- city: O,
380
- address: y,
380
+ province: y,
381
+ city: T,
382
+ address: m,
381
383
  name: x
382
384
  }
383
385
  };
384
- }), l.value = d.length > 5 ? d.slice(0, 5) : d, p(l.value, d);
386
+ }), l.value = s.length > 5 ? s.slice(0, 5) : s, p(l.value, s);
385
387
  }
386
388
  }).search(g);
387
- }, $ = (g) => {
389
+ }, j = (g) => {
388
390
  var p, w;
389
391
  n.value = g.value, v.value = g.info, A((p = g.point) == null ? void 0 : p.lng, (w = g.point) == null ? void 0 : w.lat);
390
- }, G = () => {
392
+ }, B = () => {
391
393
  var g;
392
- if (!l.value.length) return D.error(P("thirdPartyMapErrorRetry"));
393
- if (n.value = l.value[0].value, v.value = l.value[0].info, !((g = l.value[0]) != null && g.point))
394
- return D.error(P("thirdPartyMapErrorRetry"));
394
+ if (!l.value.length) return N.error(k("thirdPartyMapErrorRetry"));
395
+ if (console.log("检索列表:", l.value), n.value = l.value[0].value, v.value = l.value[0].info, !((g = l.value[0]) != null && g.point))
396
+ return N.error(k("thirdPartyMapErrorRetry"));
395
397
  o.value = [l.value[0].point.lng, l.value[0].point.lat], A(o.value[0], o.value[1]), u.value.activated = !1;
396
398
  }, U = async (g, p) => {
397
- const [w, j] = await ca().run({ longitude: g, latitude: p });
398
- w || (s.value = j.areaCode);
399
+ const [w, $] = await ia().run({ longitude: g, latitude: p });
400
+ w || (d.value = $.areaCode);
399
401
  };
400
402
  return {
401
403
  getLocationByInputSearch: _,
402
- handleSelectAddress: $,
403
- getLocationParse: G,
404
+ handleSelectAddress: j,
405
+ getLocationParse: B,
404
406
  getMapInfo: () => ({
405
407
  longitude: o.value[0],
406
408
  latitude: o.value[1],
407
- adCode: s.value,
409
+ adCode: d.value,
408
410
  address: n.value,
409
411
  addressInfo: v.value
410
412
  }),
411
- loadJavascript: k
413
+ loadJavascript: R
412
414
  };
413
415
  }, pa = { class: "search-input" }, ha = { id: "map" }, ya = /* @__PURE__ */ Ae({
414
416
  __name: "baiduMap",
@@ -423,55 +425,55 @@ const Q = (e) => {
423
425
  dev: { type: Boolean }
424
426
  },
425
427
  setup(e, { expose: t }) {
426
- const a = e, r = H(null), u = H(null), l = H(null), n = S(!0), o = S(null), s = S([]), v = Se(() => ({
428
+ const a = e, r = H(null), u = H(null), l = H(null), n = S(!0), o = S(null), d = S([]), v = Se(() => ({
427
429
  width: a.width ? Q(a.width) : "100%",
428
430
  height: a.height ? Q(a.height) : "100%"
429
- })), b = S(""), C = S([]), M = S(""), k = S(), { getLocationByInputSearch: L, handleSelectAddress: c, getLocationParse: i, getMapInfo: h, loadJavascript: A } = ft(
431
+ })), b = S(""), C = S([]), M = S(""), R = S(), { getLocationByInputSearch: E, handleSelectAddress: i, getLocationParse: c, getMapInfo: h, loadJavascript: A } = ft(
430
432
  {
431
433
  BMap: r,
432
434
  map: u,
433
435
  marker: l,
434
436
  mapLoading: n,
435
437
  $autocomplete: o,
436
- searchResultList: s,
438
+ searchResultList: d,
437
439
  innerInput: b,
438
440
  innerPoint: C,
439
441
  adCode: M,
440
- addressInfo: k
442
+ addressInfo: R
441
443
  }
442
- ), R = async () => {
444
+ ), G = async () => {
443
445
  if (a.akValue) return a.akValue;
444
- const [_, $] = await Ge("baidu");
445
- return _ ? (D.error(P("获取地图配置信息失败")), "") : !_ && !$ ? (D.error(P("暂未配置地图")), "") : $.akVal;
446
+ const [_, j] = await ze("baidu");
447
+ return _ ? (N.error(k("获取地图配置信息失败")), "") : !_ && !j ? (N.error(k("暂未配置地图")), "") : j.akVal;
446
448
  };
447
449
  return Oe(async () => {
448
450
  a.defaultLongitude && a.defaultLatitude && (C.value = [a.defaultLongitude, a.defaultLatitude]), b.value = a.defaultAddress ?? "";
449
- const _ = await R();
451
+ const _ = await G();
450
452
  A(_);
451
453
  }), t({
452
454
  // 获取经纬度、地址、行政区划信息
453
455
  getMapInfo: h
454
- }), (_, $) => {
455
- const G = Pe, U = ke;
456
+ }), (_, j) => {
457
+ const B = Pe, U = ke;
456
458
  return Te(), $e("div", {
457
459
  class: "das-map",
458
460
  style: je(v.value)
459
461
  }, [
460
462
  W("div", pa, [
461
- Z(de(G, {
463
+ Z(de(B, {
462
464
  ref_key: "$autocomplete",
463
465
  ref: o,
464
466
  modelValue: b.value,
465
- "onUpdate:modelValue": $[0] || ($[0] = (T) => b.value = T),
466
- "fetch-suggestions": B(L),
467
- placeholder: B(P)("请输入位置"),
467
+ "onUpdate:modelValue": j[0] || (j[0] = (O) => b.value = O),
468
+ "fetch-suggestions": D(E),
469
+ placeholder: D(k)("请输入位置"),
468
470
  style: { width: "100%" },
469
471
  "trigger-on-focus": !1,
470
- onSelect: B(c),
471
- onKeyup: Le(B(i), ["enter", "native"]),
472
+ onSelect: D(i),
473
+ onKeyup: Ee(D(c), ["enter", "native"]),
472
474
  clearable: ""
473
475
  }, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
474
- [B(Re)]
476
+ [D(Re)]
475
477
  ])
476
478
  ]),
477
479
  Z(W("div", ha, null, 512), [
@@ -485,7 +487,7 @@ const Q = (e) => {
485
487
  ], 4);
486
488
  };
487
489
  }
488
- }), ma = /* @__PURE__ */ ze(ya, [["__scopeId", "data-v-42e64d2c"]]);
490
+ }), ma = /* @__PURE__ */ Ge(ya, [["__scopeId", "data-v-42e64d2c"]]);
489
491
  function ba() {
490
492
  this.__data__ = [], this.size = 0;
491
493
  }
@@ -542,24 +544,24 @@ function Ta(e) {
542
544
  function $a(e) {
543
545
  return this.__data__.has(e);
544
546
  }
545
- var vt = typeof global == "object" && global && global.Object === Object && global, ja = typeof self == "object" && self && self.Object === Object && self, te = vt || ja || Function("return this")(), ee = te.Symbol, gt = Object.prototype, La = gt.hasOwnProperty, Ea = gt.toString, ue = ee ? ee.toStringTag : void 0;
547
+ var vt = typeof global == "object" && global && global.Object === Object && global, ja = typeof self == "object" && self && self.Object === Object && self, te = vt || ja || Function("return this")(), ee = te.Symbol, gt = Object.prototype, Ea = gt.hasOwnProperty, La = gt.toString, ue = ee ? ee.toStringTag : void 0;
546
548
  function Pa(e) {
547
- var t = La.call(e, ue), a = e[ue];
549
+ var t = Ea.call(e, ue), a = e[ue];
548
550
  try {
549
551
  e[ue] = void 0;
550
552
  var r = !0;
551
553
  } catch {
552
554
  }
553
- var u = Ea.call(e);
555
+ var u = La.call(e);
554
556
  return r && (t ? e[ue] = a : delete e[ue]), u;
555
557
  }
556
558
  var ka = Object.prototype, Ra = ka.toString;
557
- function Ga(e) {
559
+ function za(e) {
558
560
  return Ra.call(e);
559
561
  }
560
- var za = "[object Null]", Ba = "[object Undefined]", Fe = ee ? ee.toStringTag : void 0;
562
+ var Ga = "[object Null]", Ba = "[object Undefined]", Fe = ee ? ee.toStringTag : void 0;
561
563
  function se(e) {
562
- return e == null ? e === void 0 ? Ba : za : Fe && Fe in Object(e) ? Pa(e) : Ga(e);
564
+ return e == null ? e === void 0 ? Ba : Ga : Fe && Fe in Object(e) ? Pa(e) : za(e);
563
565
  }
564
566
  function Y(e) {
565
567
  var t = typeof e;
@@ -609,9 +611,9 @@ function De(e, t) {
609
611
  var a = to(e, t);
610
612
  return eo(a) ? a : void 0;
611
613
  }
612
- var pt = De(te, "Map"), ce = De(Object, "create");
614
+ var pt = De(te, "Map"), ie = De(Object, "create");
613
615
  function ao() {
614
- this.__data__ = ce ? ce(null) : {}, this.size = 0;
616
+ this.__data__ = ie ? ie(null) : {}, this.size = 0;
615
617
  }
616
618
  function oo(e) {
617
619
  var t = this.has(e) && delete this.__data__[e];
@@ -620,21 +622,21 @@ function oo(e) {
620
622
  var ro = "__lodash_hash_undefined__", no = Object.prototype, lo = no.hasOwnProperty;
621
623
  function uo(e) {
622
624
  var t = this.__data__;
623
- if (ce) {
625
+ if (ie) {
624
626
  var a = t[e];
625
627
  return a === ro ? void 0 : a;
626
628
  }
627
629
  return lo.call(t, e) ? t[e] : void 0;
628
630
  }
629
- var io = Object.prototype, co = io.hasOwnProperty;
631
+ var co = Object.prototype, io = co.hasOwnProperty;
630
632
  function so(e) {
631
633
  var t = this.__data__;
632
- return ce ? t[e] !== void 0 : co.call(t, e);
634
+ return ie ? t[e] !== void 0 : io.call(t, e);
633
635
  }
634
636
  var fo = "__lodash_hash_undefined__";
635
637
  function vo(e, t) {
636
638
  var a = this.__data__;
637
- return this.size += this.has(e) ? 0 : 1, a[e] = ce && t === void 0 ? fo : t, this;
639
+ return this.size += this.has(e) ? 0 : 1, a[e] = ie && t === void 0 ? fo : t, this;
638
640
  }
639
641
  function q(e) {
640
642
  var t = -1, a = e == null ? 0 : e.length;
@@ -730,8 +732,8 @@ function _e(e, t, a) {
730
732
  function Mo(e) {
731
733
  return function(t, a, r) {
732
734
  for (var u = -1, l = Object(t), n = r(t), o = n.length; o--; ) {
733
- var s = n[++u];
734
- if (a(l[s], s, l) === !1)
735
+ var d = n[++u];
736
+ if (a(l[d], d, l) === !1)
735
737
  break;
736
738
  }
737
739
  return t;
@@ -775,12 +777,12 @@ function jo(e, t) {
775
777
  return e(t(a));
776
778
  };
777
779
  }
778
- var yt = jo(Object.getPrototypeOf, Object), Lo = Object.prototype;
780
+ var yt = jo(Object.getPrototypeOf, Object), Eo = Object.prototype;
779
781
  function mt(e) {
780
- var t = e && e.constructor, a = typeof t == "function" && t.prototype || Lo;
782
+ var t = e && e.constructor, a = typeof t == "function" && t.prototype || Eo;
781
783
  return e === a;
782
784
  }
783
- function Eo(e) {
785
+ function Lo(e) {
784
786
  return typeof e.constructor == "function" && !mt(e) ? $o(yt(e)) : {};
785
787
  }
786
788
  function re(e) {
@@ -794,14 +796,14 @@ var bt = Object.prototype, ko = bt.hasOwnProperty, Ro = bt.propertyIsEnumerable,
794
796
  return arguments;
795
797
  }()) ? qe : function(e) {
796
798
  return re(e) && ko.call(e, "callee") && !Ro.call(e, "callee");
797
- }, ve = Array.isArray, Go = 9007199254740991;
799
+ }, ve = Array.isArray, zo = 9007199254740991;
798
800
  function _t(e) {
799
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Go;
801
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= zo;
800
802
  }
801
803
  function Ue(e) {
802
804
  return e != null && _t(e.length) && !Be(e);
803
805
  }
804
- function zo(e) {
806
+ function Go(e) {
805
807
  return re(e) && Ue(e);
806
808
  }
807
809
  function Bo() {
@@ -817,20 +819,20 @@ function Io(e) {
817
819
  var a = Fo.call(t, "constructor") && t.constructor;
818
820
  return typeof a == "function" && a instanceof a && xt.call(a) == Ho;
819
821
  }
820
- var Jo = "[object Arguments]", Zo = "[object Array]", Wo = "[object Boolean]", qo = "[object Date]", Yo = "[object Error]", Xo = "[object Function]", Qo = "[object Map]", er = "[object Number]", tr = "[object Object]", ar = "[object RegExp]", or = "[object Set]", rr = "[object String]", nr = "[object WeakMap]", lr = "[object ArrayBuffer]", ur = "[object DataView]", ir = "[object Float32Array]", cr = "[object Float64Array]", sr = "[object Int8Array]", dr = "[object Int16Array]", fr = "[object Int32Array]", vr = "[object Uint8Array]", gr = "[object Uint8ClampedArray]", pr = "[object Uint16Array]", hr = "[object Uint32Array]", E = {};
821
- E[ir] = E[cr] = E[sr] = E[dr] = E[fr] = E[vr] = E[gr] = E[pr] = E[hr] = !0;
822
- E[Jo] = E[Zo] = E[lr] = E[Wo] = E[ur] = E[qo] = E[Yo] = E[Xo] = E[Qo] = E[er] = E[tr] = E[ar] = E[or] = E[rr] = E[nr] = !1;
822
+ var Jo = "[object Arguments]", Zo = "[object Array]", Wo = "[object Boolean]", qo = "[object Date]", Yo = "[object Error]", Xo = "[object Function]", Qo = "[object Map]", er = "[object Number]", tr = "[object Object]", ar = "[object RegExp]", or = "[object Set]", rr = "[object String]", nr = "[object WeakMap]", lr = "[object ArrayBuffer]", ur = "[object DataView]", cr = "[object Float32Array]", ir = "[object Float64Array]", sr = "[object Int8Array]", dr = "[object Int16Array]", fr = "[object Int32Array]", vr = "[object Uint8Array]", gr = "[object Uint8ClampedArray]", pr = "[object Uint16Array]", hr = "[object Uint32Array]", P = {};
823
+ P[cr] = P[ir] = P[sr] = P[dr] = P[fr] = P[vr] = P[gr] = P[pr] = P[hr] = !0;
824
+ P[Jo] = P[Zo] = P[lr] = P[Wo] = P[ur] = P[qo] = P[Yo] = P[Xo] = P[Qo] = P[er] = P[tr] = P[ar] = P[or] = P[rr] = P[nr] = !1;
823
825
  function yr(e) {
824
- return re(e) && _t(e.length) && !!E[se(e)];
826
+ return re(e) && _t(e.length) && !!P[se(e)];
825
827
  }
826
828
  function mr(e) {
827
829
  return function(t) {
828
830
  return e(t);
829
831
  };
830
832
  }
831
- var Ct = typeof exports == "object" && exports && !exports.nodeType && exports, ie = Ct && typeof module == "object" && module && !module.nodeType && module, br = ie && ie.exports === Ct, be = br && vt.process, Qe = function() {
833
+ var Ct = typeof exports == "object" && exports && !exports.nodeType && exports, ce = Ct && typeof module == "object" && module && !module.nodeType && module, br = ce && ce.exports === Ct, be = br && vt.process, Qe = function() {
832
834
  try {
833
- var e = ie && ie.require && ie.require("util").types;
835
+ var e = ce && ce.require && ce.require("util").types;
834
836
  return e || be && be.binding && be.binding("util");
835
837
  } catch {
836
838
  }
@@ -848,8 +850,8 @@ function xr(e, t, a, r) {
848
850
  var u = !a;
849
851
  a || (a = {});
850
852
  for (var l = -1, n = t.length; ++l < n; ) {
851
- var o = t[l], s = void 0;
852
- s === void 0 && (s = e[o]), u ? Ne(a, o, s) : Mr(a, o, s);
853
+ var o = t[l], d = void 0;
854
+ d === void 0 && (d = e[o]), u ? Ne(a, o, d) : Mr(a, o, d);
853
855
  }
854
856
  return a;
855
857
  }
@@ -864,13 +866,13 @@ function St(e, t) {
864
866
  return t = t ?? Ar, !!t && (a == "number" || a != "symbol" && Sr.test(e)) && e > -1 && e % 1 == 0 && e < t;
865
867
  }
866
868
  function Or(e, t) {
867
- var a = ve(e), r = !a && we(e), u = !a && !r && Mt(e), l = !a && !r && !u && At(e), n = a || r || u || l, o = n ? Cr(e.length, String) : [], s = o.length;
869
+ var a = ve(e), r = !a && we(e), u = !a && !r && Mt(e), l = !a && !r && !u && At(e), n = a || r || u || l, o = n ? Cr(e.length, String) : [], d = o.length;
868
870
  for (var v in e)
869
871
  n && // Safari 9 has enumerable `arguments.length` in strict mode.
870
872
  (v == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
871
873
  u && (v == "offset" || v == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
872
874
  l && (v == "buffer" || v == "byteLength" || v == "byteOffset") || // Skip index properties.
873
- St(v, s)) || o.push(v);
875
+ St(v, d)) || o.push(v);
874
876
  return o;
875
877
  }
876
878
  function Tr(e) {
@@ -881,7 +883,7 @@ function Tr(e) {
881
883
  return t;
882
884
  }
883
885
  var $r = Object.prototype, jr = $r.hasOwnProperty;
884
- function Lr(e) {
886
+ function Er(e) {
885
887
  if (!Y(e))
886
888
  return Tr(e);
887
889
  var t = mt(e), a = [];
@@ -890,23 +892,23 @@ function Lr(e) {
890
892
  return a;
891
893
  }
892
894
  function Ot(e) {
893
- return Ue(e) ? Or(e) : Lr(e);
895
+ return Ue(e) ? Or(e) : Er(e);
894
896
  }
895
- function Er(e) {
897
+ function Lr(e) {
896
898
  return xr(e, Ot(e));
897
899
  }
898
900
  function Pr(e, t, a, r, u, l, n) {
899
- var o = Me(e, a), s = Me(t, a), v = n.get(s);
901
+ var o = Me(e, a), d = Me(t, a), v = n.get(d);
900
902
  if (v) {
901
903
  _e(e, a, v);
902
904
  return;
903
905
  }
904
- var b = l ? l(o, s, a + "", e, t, n) : void 0, C = b === void 0;
906
+ var b = l ? l(o, d, a + "", e, t, n) : void 0, C = b === void 0;
905
907
  if (C) {
906
- var M = ve(s), k = !M && Mt(s), L = !M && !k && At(s);
907
- b = s, M || k || L ? ve(o) ? b = o : zo(o) ? b = To(o) : k ? (C = !1, b = Ao(s)) : L ? (C = !1, b = Oo(s)) : b = [] : Io(s) || we(s) ? (b = o, we(o) ? b = Er(o) : (!Y(o) || Be(o)) && (b = Eo(s))) : C = !1;
908
+ var M = ve(d), R = !M && Mt(d), E = !M && !R && At(d);
909
+ b = d, M || R || E ? ve(o) ? b = o : Go(o) ? b = To(o) : R ? (C = !1, b = Ao(d)) : E ? (C = !1, b = Oo(d)) : b = [] : Io(d) || we(d) ? (b = o, we(o) ? b = Lr(o) : (!Y(o) || Be(o)) && (b = Lo(d))) : C = !1;
908
910
  }
909
- C && (n.set(s, b), u(b, s, r, l, n), n.delete(s)), _e(e, a, b);
911
+ C && (n.set(d, b), u(b, d, r, l, n), n.delete(d)), _e(e, a, b);
910
912
  }
911
913
  function Tt(e, t, a, r, u) {
912
914
  e !== t && xo(t, function(l, n) {
@@ -945,16 +947,16 @@ function Rr(e, t, a) {
945
947
  return o[t] = a(n), kr(e, this, o);
946
948
  };
947
949
  }
948
- function Gr(e) {
950
+ function zr(e) {
949
951
  return function() {
950
952
  return e;
951
953
  };
952
954
  }
953
- var zr = fe ? function(e, t) {
955
+ var Gr = fe ? function(e, t) {
954
956
  return fe(e, "toString", {
955
957
  configurable: !0,
956
958
  enumerable: !1,
957
- value: Gr(t),
959
+ value: zr(t),
958
960
  writable: !0
959
961
  });
960
962
  } : $t, Br = 800, Dr = 16, Nr = Date.now;
@@ -970,7 +972,7 @@ function Ur(e) {
970
972
  return e.apply(void 0, arguments);
971
973
  };
972
974
  }
973
- var Vr = Ur(zr);
975
+ var Vr = Ur(Gr);
974
976
  function Kr(e, t) {
975
977
  return Vr(Rr(e, t, $t), e + "");
976
978
  }
@@ -1001,64 +1003,64 @@ var jt = { exports: {} };
1001
1003
  (function(t, a) {
1002
1004
  e.exports ? e.exports = a() : t.coordtransform = a();
1003
1005
  })(Jr, function() {
1004
- var t = 52.35987755982988, a = 3.141592653589793, r = 6378245, u = 0.006693421622965943, l = function(c, i) {
1005
- var c = +c, i = +i, h = c - 65e-4, A = i - 6e-3, R = Math.sqrt(h * h + A * A) - 2e-5 * Math.sin(A * t), _ = Math.atan2(A, h) - 3e-6 * Math.cos(h * t), $ = R * Math.cos(_), G = R * Math.sin(_);
1006
- return [$, G];
1007
- }, n = function(i, c) {
1008
- var c = +c, i = +i, h = Math.sqrt(i * i + c * c) + 2e-5 * Math.sin(c * t), A = Math.atan2(c, i) + 3e-6 * Math.cos(i * t), R = h * Math.cos(A) + 65e-4, _ = h * Math.sin(A) + 6e-3;
1009
- return [R, _];
1010
- }, o = function(i, c) {
1011
- var c = +c, i = +i;
1012
- if (C(i, c))
1013
- return [i, c];
1014
- var h = v(i - 105, c - 35), A = b(i - 105, c - 35), R = c / 180 * a, _ = Math.sin(R);
1006
+ var t = 52.35987755982988, a = 3.141592653589793, r = 6378245, u = 0.006693421622965943, l = function(i, c) {
1007
+ var i = +i, c = +c, h = i - 65e-4, A = c - 6e-3, G = Math.sqrt(h * h + A * A) - 2e-5 * Math.sin(A * t), _ = Math.atan2(A, h) - 3e-6 * Math.cos(h * t), j = G * Math.cos(_), B = G * Math.sin(_);
1008
+ return [j, B];
1009
+ }, n = function(c, i) {
1010
+ var i = +i, c = +c, h = Math.sqrt(c * c + i * i) + 2e-5 * Math.sin(i * t), A = Math.atan2(i, c) + 3e-6 * Math.cos(c * t), G = h * Math.cos(A) + 65e-4, _ = h * Math.sin(A) + 6e-3;
1011
+ return [G, _];
1012
+ }, o = function(c, i) {
1013
+ var i = +i, c = +c;
1014
+ if (C(c, i))
1015
+ return [c, i];
1016
+ var h = v(c - 105, i - 35), A = b(c - 105, i - 35), G = i / 180 * a, _ = Math.sin(G);
1015
1017
  _ = 1 - u * _ * _;
1016
- var $ = Math.sqrt(_);
1017
- h = h * 180 / (r * (1 - u) / (_ * $) * a), A = A * 180 / (r / $ * Math.cos(R) * a);
1018
- var G = c + h, U = i + A;
1019
- return [U, G];
1020
- }, s = function(i, c) {
1021
- var c = +c, i = +i;
1022
- if (C(i, c))
1023
- return [i, c];
1024
- var h = v(i - 105, c - 35), A = b(i - 105, c - 35), R = c / 180 * a, _ = Math.sin(R);
1018
+ var j = Math.sqrt(_);
1019
+ h = h * 180 / (r * (1 - u) / (_ * j) * a), A = A * 180 / (r / j * Math.cos(G) * a);
1020
+ var B = i + h, U = c + A;
1021
+ return [U, B];
1022
+ }, d = function(c, i) {
1023
+ var i = +i, c = +c;
1024
+ if (C(c, i))
1025
+ return [c, i];
1026
+ var h = v(c - 105, i - 35), A = b(c - 105, i - 35), G = i / 180 * a, _ = Math.sin(G);
1025
1027
  _ = 1 - u * _ * _;
1026
- var $ = Math.sqrt(_);
1027
- h = h * 180 / (r * (1 - u) / (_ * $) * a), A = A * 180 / (r / $ * Math.cos(R) * a);
1028
- var G = c + h, U = i + A;
1029
- return [i * 2 - U, c * 2 - G];
1030
- }, v = function(i, c) {
1031
- var c = +c, i = +i, h = -100 + 2 * i + 3 * c + 0.2 * c * c + 0.1 * i * c + 0.2 * Math.sqrt(Math.abs(i));
1032
- return h += (20 * Math.sin(6 * i * a) + 20 * Math.sin(2 * i * a)) * 2 / 3, h += (20 * Math.sin(c * a) + 40 * Math.sin(c / 3 * a)) * 2 / 3, h += (160 * Math.sin(c / 12 * a) + 320 * Math.sin(c * a / 30)) * 2 / 3, h;
1033
- }, b = function(i, c) {
1034
- var c = +c, i = +i, h = 300 + i + 2 * c + 0.1 * i * i + 0.1 * i * c + 0.1 * Math.sqrt(Math.abs(i));
1035
- return h += (20 * Math.sin(6 * i * a) + 20 * Math.sin(2 * i * a)) * 2 / 3, h += (20 * Math.sin(i * a) + 40 * Math.sin(i / 3 * a)) * 2 / 3, h += (150 * Math.sin(i / 12 * a) + 300 * Math.sin(i / 30 * a)) * 2 / 3, h;
1036
- }, C = function(i, c) {
1037
- var c = +c, i = +i;
1038
- return !(i > 73.66 && i < 135.05 && c > 3.86 && c < 53.55);
1028
+ var j = Math.sqrt(_);
1029
+ h = h * 180 / (r * (1 - u) / (_ * j) * a), A = A * 180 / (r / j * Math.cos(G) * a);
1030
+ var B = i + h, U = c + A;
1031
+ return [c * 2 - U, i * 2 - B];
1032
+ }, v = function(c, i) {
1033
+ var i = +i, c = +c, h = -100 + 2 * c + 3 * i + 0.2 * i * i + 0.1 * c * i + 0.2 * Math.sqrt(Math.abs(c));
1034
+ return h += (20 * Math.sin(6 * c * a) + 20 * Math.sin(2 * c * a)) * 2 / 3, h += (20 * Math.sin(i * a) + 40 * Math.sin(i / 3 * a)) * 2 / 3, h += (160 * Math.sin(i / 12 * a) + 320 * Math.sin(i * a / 30)) * 2 / 3, h;
1035
+ }, b = function(c, i) {
1036
+ var i = +i, c = +c, h = 300 + c + 2 * i + 0.1 * c * c + 0.1 * c * i + 0.1 * Math.sqrt(Math.abs(c));
1037
+ return h += (20 * Math.sin(6 * c * a) + 20 * Math.sin(2 * c * a)) * 2 / 3, h += (20 * Math.sin(c * a) + 40 * Math.sin(c / 3 * a)) * 2 / 3, h += (150 * Math.sin(c / 12 * a) + 300 * Math.sin(c / 30 * a)) * 2 / 3, h;
1038
+ }, C = function(c, i) {
1039
+ var i = +i, c = +c;
1040
+ return !(c > 73.66 && c < 135.05 && i > 3.86 && i < 53.55);
1039
1041
  };
1040
1042
  return {
1041
1043
  bd09togcj02: l,
1042
1044
  gcj02tobd09: n,
1043
1045
  wgs84togcj02: o,
1044
- gcj02towgs84: s
1046
+ gcj02towgs84: d
1045
1047
  };
1046
1048
  });
1047
1049
  })(jt);
1048
1050
  var Wr = jt.exports;
1049
- const Lt = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: r, map: u }) => {
1051
+ const Et = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: r, map: u }) => {
1050
1052
  const l = (n, o) => {
1051
- const s = document.createElement("div");
1052
- s.style.cursor = "pointer";
1053
+ const d = document.createElement("div");
1054
+ d.style.cursor = "pointer";
1053
1055
  const v = Qt(n, o);
1054
- return ea(v, s), s;
1056
+ return ea(v, d), d;
1055
1057
  };
1056
1058
  e.addCustomComponent = (n) => {
1057
1059
  !Array.isArray(n) || (n == null ? void 0 : n.length) === 0 || n.forEach((o) => {
1058
- const { component: s, componentProps: v, lng: b, lat: C, markerOptions: M = {} } = o, k = typeof v == "function" ? v() : v, L = typeof s == "function" ? s() : s, c = () => l(L, k);
1060
+ const { component: d, componentProps: v, lng: b, lat: C, markerOptions: M = {} } = o, R = typeof v == "function" ? v() : v, E = typeof d == "function" ? d() : d, i = () => l(E, R);
1059
1061
  if (a.value === "baidu") {
1060
- const i = Lt.gcj02tobd09(b, C), h = new r.value.CustomOverlay(c, {
1061
- point: { lng: i[0], lat: i[1] },
1062
+ const c = Et.gcj02tobd09(b, C), h = new r.value.CustomOverlay(i, {
1063
+ point: { lng: c[0], lat: c[1] },
1062
1064
  ...M
1063
1065
  });
1064
1066
  u.value.addOverlay(h), h.addEventListener("click", function(A) {
@@ -1066,7 +1068,7 @@ const Lt = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: r, map: u }) =>
1066
1068
  });
1067
1069
  }
1068
1070
  if (a.value === "gaode") {
1069
- const i = l(L, k), h = new r.value.Marker({ content: i, position: [b, C], ...M });
1071
+ const c = l(E, R), h = new r.value.Marker({ content: c, position: [b, C], ...M });
1070
1072
  u.value.add(h), r.value.event.addListener(h, "click", function(A) {
1071
1073
  t("click-custom-component", o, A);
1072
1074
  });
@@ -1076,16 +1078,16 @@ const Lt = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: r, map: u }) =>
1076
1078
  }, Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1077
1079
  __proto__: null,
1078
1080
  default: qr
1079
- }, Symbol.toStringTag, { value: "Module" })), Xr = (e, t, { type: a, MapGL: r, map: u, innerPoint: l, innerInput: n, adCode: o, addressInfo: s }) => {
1081
+ }, Symbol.toStringTag, { value: "Module" })), Xr = (e, t, { type: a, MapGL: r, map: u, innerPoint: l, innerInput: n, adCode: o, addressInfo: d }) => {
1080
1082
  e.getMapInfo = () => {
1081
1083
  if (a.value === "baidu") {
1082
- const v = Lt.bd09togcj02(l.value[0], l.value[1]);
1084
+ const v = Et.bd09togcj02(l.value[0], l.value[1]);
1083
1085
  return {
1084
1086
  longitude: v[0],
1085
1087
  latitude: v[1],
1086
1088
  address: n.value,
1087
1089
  adCode: o.value,
1088
- addressInfo: s.value
1090
+ addressInfo: d.value
1089
1091
  };
1090
1092
  }
1091
1093
  if (a.value === "gaode")
@@ -1094,7 +1096,7 @@ const Lt = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: r, map: u }) =>
1094
1096
  latitude: l.value[1],
1095
1097
  address: n.value,
1096
1098
  adCode: o.value,
1097
- addressInfo: s.value
1099
+ addressInfo: d.value
1098
1100
  };
1099
1101
  if (a.value === "google")
1100
1102
  return {
@@ -1102,7 +1104,7 @@ const Lt = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: r, map: u }) =>
1102
1104
  latitude: l.value[1],
1103
1105
  address: n.value,
1104
1106
  adCode: o.value,
1105
- addressInfo: s.value
1107
+ addressInfo: d.value
1106
1108
  };
1107
1109
  };
1108
1110
  }, Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -1119,18 +1121,18 @@ function an(e) {
1119
1121
  return typeof e == "symbol" || re(e) && se(e) == tn;
1120
1122
  }
1121
1123
  var at = ee ? ee.prototype : void 0, ot = at ? at.toString : void 0;
1122
- function Et(e) {
1124
+ function Lt(e) {
1123
1125
  if (typeof e == "string")
1124
1126
  return e;
1125
1127
  if (ve(e))
1126
- return en(e, Et) + "";
1128
+ return en(e, Lt) + "";
1127
1129
  if (an(e))
1128
1130
  return ot ? ot.call(e) : "";
1129
1131
  var t = e + "";
1130
1132
  return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
1131
1133
  }
1132
1134
  function ye(e) {
1133
- return e == null ? "" : Et(e);
1135
+ return e == null ? "" : Lt(e);
1134
1136
  }
1135
1137
  function on(e, t, a) {
1136
1138
  var r = -1, u = e.length;
@@ -1150,7 +1152,7 @@ function Pt(e) {
1150
1152
  function gn(e) {
1151
1153
  return e.split("");
1152
1154
  }
1153
- var kt = "\\ud800-\\udfff", pn = "\\u0300-\\u036f", hn = "\\ufe20-\\ufe2f", yn = "\\u20d0-\\u20ff", mn = pn + hn + yn, bn = "\\ufe0e\\ufe0f", _n = "[" + kt + "]", xe = "[" + mn + "]", Ce = "\\ud83c[\\udffb-\\udfff]", wn = "(?:" + xe + "|" + Ce + ")", Rt = "[^" + kt + "]", Gt = "(?:\\ud83c[\\udde6-\\uddff]){2}", zt = "[\\ud800-\\udbff][\\udc00-\\udfff]", Mn = "\\u200d", Bt = wn + "?", Dt = "[" + bn + "]?", xn = "(?:" + Mn + "(?:" + [Rt, Gt, zt].join("|") + ")" + Dt + Bt + ")*", Cn = Dt + Bt + xn, An = "(?:" + [Rt + xe + "?", xe, Gt, zt, _n].join("|") + ")", Sn = RegExp(Ce + "(?=" + Ce + ")|" + An + Cn, "g");
1155
+ var kt = "\\ud800-\\udfff", pn = "\\u0300-\\u036f", hn = "\\ufe20-\\ufe2f", yn = "\\u20d0-\\u20ff", mn = pn + hn + yn, bn = "\\ufe0e\\ufe0f", _n = "[" + kt + "]", xe = "[" + mn + "]", Ce = "\\ud83c[\\udffb-\\udfff]", wn = "(?:" + xe + "|" + Ce + ")", Rt = "[^" + kt + "]", zt = "(?:\\ud83c[\\udde6-\\uddff]){2}", Gt = "[\\ud800-\\udbff][\\udc00-\\udfff]", Mn = "\\u200d", Bt = wn + "?", Dt = "[" + bn + "]?", xn = "(?:" + Mn + "(?:" + [Rt, zt, Gt].join("|") + ")" + Dt + Bt + ")*", Cn = Dt + Bt + xn, An = "(?:" + [Rt + xe + "?", xe, zt, Gt, _n].join("|") + ")", Sn = RegExp(Ce + "(?=" + Ce + ")|" + An + Cn, "g");
1154
1156
  function On(e) {
1155
1157
  return e.match(Sn) || [];
1156
1158
  }
@@ -1165,10 +1167,10 @@ function $n(e) {
1165
1167
  };
1166
1168
  }
1167
1169
  var jn = $n("toUpperCase");
1168
- function Ln(e) {
1170
+ function En(e) {
1169
1171
  return jn(ye(e).toLowerCase());
1170
1172
  }
1171
- function En(e, t, a, r) {
1173
+ function Ln(e, t, a, r) {
1172
1174
  for (var u = -1, l = e == null ? 0 : e.length; ++u < l; )
1173
1175
  a = t(a, e[u], u, e);
1174
1176
  return a;
@@ -1371,9 +1373,9 @@ var kn = {
1371
1373
  œ: "oe",
1372
1374
  ʼn: "'n",
1373
1375
  ſ: "s"
1374
- }, Rn = Pn(kn), Gn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, zn = "\\u0300-\\u036f", Bn = "\\ufe20-\\ufe2f", Dn = "\\u20d0-\\u20ff", Nn = zn + Bn + Dn, Un = "[" + Nn + "]", Vn = RegExp(Un, "g");
1376
+ }, Rn = Pn(kn), zn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Gn = "\\u0300-\\u036f", Bn = "\\ufe20-\\ufe2f", Dn = "\\u20d0-\\u20ff", Nn = Gn + Bn + Dn, Un = "[" + Nn + "]", Vn = RegExp(Un, "g");
1375
1377
  function Kn(e) {
1376
- return e = ye(e), e && e.replace(Gn, Rn).replace(Vn, "");
1378
+ return e = ye(e), e && e.replace(zn, Rn).replace(Vn, "");
1377
1379
  }
1378
1380
  var Fn = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
1379
1381
  function Hn(e) {
@@ -1383,9 +1385,9 @@ var In = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
1383
1385
  function Jn(e) {
1384
1386
  return In.test(e);
1385
1387
  }
1386
- var Nt = "\\ud800-\\udfff", Zn = "\\u0300-\\u036f", Wn = "\\ufe20-\\ufe2f", qn = "\\u20d0-\\u20ff", Yn = Zn + Wn + qn, Ut = "\\u2700-\\u27bf", Vt = "a-z\\xdf-\\xf6\\xf8-\\xff", Xn = "\\xac\\xb1\\xd7\\xf7", Qn = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", el = "\\u2000-\\u206f", tl = " \\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", Kt = "A-Z\\xc0-\\xd6\\xd8-\\xde", al = "\\ufe0e\\ufe0f", Ft = Xn + Qn + el + tl, Ht = "['’]", rt = "[" + Ft + "]", ol = "[" + Yn + "]", It = "\\d+", rl = "[" + Ut + "]", Jt = "[" + Vt + "]", Zt = "[^" + Nt + Ft + It + Ut + Vt + Kt + "]", nl = "\\ud83c[\\udffb-\\udfff]", ll = "(?:" + ol + "|" + nl + ")", ul = "[^" + Nt + "]", Wt = "(?:\\ud83c[\\udde6-\\uddff]){2}", qt = "[\\ud800-\\udbff][\\udc00-\\udfff]", X = "[" + Kt + "]", il = "\\u200d", nt = "(?:" + Jt + "|" + Zt + ")", cl = "(?:" + X + "|" + Zt + ")", lt = "(?:" + Ht + "(?:d|ll|m|re|s|t|ve))?", ut = "(?:" + Ht + "(?:D|LL|M|RE|S|T|VE))?", Yt = ll + "?", Xt = "[" + al + "]?", sl = "(?:" + il + "(?:" + [ul, Wt, qt].join("|") + ")" + Xt + Yt + ")*", dl = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", fl = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", vl = Xt + Yt + sl, gl = "(?:" + [rl, Wt, qt].join("|") + ")" + vl, pl = RegExp([
1388
+ var Nt = "\\ud800-\\udfff", Zn = "\\u0300-\\u036f", Wn = "\\ufe20-\\ufe2f", qn = "\\u20d0-\\u20ff", Yn = Zn + Wn + qn, Ut = "\\u2700-\\u27bf", Vt = "a-z\\xdf-\\xf6\\xf8-\\xff", Xn = "\\xac\\xb1\\xd7\\xf7", Qn = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", el = "\\u2000-\\u206f", tl = " \\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", Kt = "A-Z\\xc0-\\xd6\\xd8-\\xde", al = "\\ufe0e\\ufe0f", Ft = Xn + Qn + el + tl, Ht = "['’]", rt = "[" + Ft + "]", ol = "[" + Yn + "]", It = "\\d+", rl = "[" + Ut + "]", Jt = "[" + Vt + "]", Zt = "[^" + Nt + Ft + It + Ut + Vt + Kt + "]", nl = "\\ud83c[\\udffb-\\udfff]", ll = "(?:" + ol + "|" + nl + ")", ul = "[^" + Nt + "]", Wt = "(?:\\ud83c[\\udde6-\\uddff]){2}", qt = "[\\ud800-\\udbff][\\udc00-\\udfff]", X = "[" + Kt + "]", cl = "\\u200d", nt = "(?:" + Jt + "|" + Zt + ")", il = "(?:" + X + "|" + Zt + ")", lt = "(?:" + Ht + "(?:d|ll|m|re|s|t|ve))?", ut = "(?:" + Ht + "(?:D|LL|M|RE|S|T|VE))?", Yt = ll + "?", Xt = "[" + al + "]?", sl = "(?:" + cl + "(?:" + [ul, Wt, qt].join("|") + ")" + Xt + Yt + ")*", dl = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", fl = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", vl = Xt + Yt + sl, gl = "(?:" + [rl, Wt, qt].join("|") + ")" + vl, pl = RegExp([
1387
1389
  X + "?" + Jt + "+" + lt + "(?=" + [rt, X, "$"].join("|") + ")",
1388
- cl + "+" + ut + "(?=" + [rt, X + nt, "$"].join("|") + ")",
1390
+ il + "+" + ut + "(?=" + [rt, X + nt, "$"].join("|") + ")",
1389
1391
  X + "?" + nt + "+" + lt,
1390
1392
  X + "+" + ut,
1391
1393
  fl,
@@ -1402,44 +1404,44 @@ function yl(e, t, a) {
1402
1404
  var ml = "['’]", bl = RegExp(ml, "g");
1403
1405
  function _l(e) {
1404
1406
  return function(t) {
1405
- return En(yl(Kn(t).replace(bl, "")), e, "");
1407
+ return Ln(yl(Kn(t).replace(bl, "")), e, "");
1406
1408
  };
1407
1409
  }
1408
1410
  var wl = _l(function(e, t, a) {
1409
- return t = t.toLowerCase(), e + (a ? Ln(t) : t);
1411
+ return t = t.toLowerCase(), e + (a ? En(t) : t);
1410
1412
  });
1411
- const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./get-map-info/index.ts": Qr }), Ml = Object.keys(it).reduce((e, t) => {
1413
+ const ct = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./get-map-info/index.ts": Qr }), Ml = Object.keys(ct).reduce((e, t) => {
1412
1414
  const a = wl(t.replace("./", "").split("/")[0]);
1413
- return e[a] = it[t].default, e;
1415
+ return e[a] = ct[t].default, e;
1414
1416
  }, {}), xl = (e, t, a) => {
1415
1417
  const r = S({});
1416
1418
  return { mapElement: r, addPlugins: () => {
1417
- const n = Ir({}, (e == null ? void 0 : e.options) || {}, (o, s) => {
1418
- if (Array.isArray(o)) return o.concat(s);
1419
+ const n = Ir({}, (e == null ? void 0 : e.options) || {}, (o, d) => {
1420
+ if (Array.isArray(o)) return o.concat(d);
1419
1421
  });
1420
1422
  Object.values(Ml).forEach((o) => o(r.value, t, a, n.plugins || {}));
1421
1423
  } };
1422
- }, Cl = ({ MapGL: e, map: t, marker: a, mapLoading: r, $autocomplete: u, searchResultList: l, innerInput: n, innerPoint: o, adCode: s, addressInfo: v }, b) => {
1423
- const C = S(), M = S(), k = S();
1424
- let L = null;
1425
- const c = S(!1), i = S();
1424
+ }, Cl = ({ MapGL: e, map: t, marker: a, mapLoading: r, $autocomplete: u, searchResultList: l, innerInput: n, innerPoint: o, adCode: d, addressInfo: v }, b) => {
1425
+ const C = S(), M = S(), R = S();
1426
+ let E = null;
1427
+ const i = S(!1), c = S();
1426
1428
  let h;
1427
- const A = async (d, f, y, x) => {
1428
- if (i.value = y, x && (h = x), document.getElementById(d)) return R();
1429
- const m = document.createElement("script"), O = `mapLoad${(/* @__PURE__ */ new Date()).getTime()}`, N = `https://maps.googleapis.com/maps/api/js?key=${d}&loading=async&callback=${O}`;
1430
- m.setAttribute("id", d), m.setAttribute("src", N), document.body.appendChild(m), window[O] = () => {
1431
- R();
1429
+ const A = async (s, f, m, x) => {
1430
+ if (c.value = m, x && (h = x), document.getElementById(s)) return G();
1431
+ const y = document.createElement("script"), T = `mapLoad${(/* @__PURE__ */ new Date()).getTime()}`, z = `https://maps.googleapis.com/maps/api/js?key=${s}&loading=async&callback=${T}`;
1432
+ y.setAttribute("id", s), y.setAttribute("src", z), document.body.appendChild(y), window[T] = () => {
1433
+ G();
1432
1434
  };
1433
- }, R = async () => {
1434
- var N, z;
1435
- const { Map: d } = await google.maps.importLibrary("maps");
1436
- e.value = d;
1437
- const { Place: f, AutocompleteSessionToken: y, AutocompleteSuggestion: x } = await google.maps.importLibrary("places");
1438
- M.value = new y(), k.value = x, C.value = f;
1439
- const { AdvancedMarkerElement: m } = await google.maps.importLibrary("marker");
1440
- L = m;
1441
- const O = ((N = i.value) == null ? void 0 : N.mapOpt) ?? {};
1442
- t.value = new d(document.getElementById("map"), {
1435
+ }, G = async () => {
1436
+ var z, L;
1437
+ const { Map: s } = await google.maps.importLibrary("maps");
1438
+ e.value = s;
1439
+ const { Place: f, AutocompleteSessionToken: m, AutocompleteSuggestion: x } = await google.maps.importLibrary("places");
1440
+ M.value = new m(), R.value = x, C.value = f;
1441
+ const { AdvancedMarkerElement: y } = await google.maps.importLibrary("marker");
1442
+ E = y;
1443
+ const T = ((z = c.value) == null ? void 0 : z.mapOpt) ?? {};
1444
+ t.value = new s(document.getElementById("map"), {
1443
1445
  zoom: 11,
1444
1446
  mapId: "DEMO_MAP_ID",
1445
1447
  fullscreenControl: !1,
@@ -1450,32 +1452,32 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1450
1452
  // 左上角地图类型
1451
1453
  gestureHandling: "greedy",
1452
1454
  // 谷歌地图api缩放去掉ctrl+滚轮缩放,直接鼠标缩放
1453
- ...O
1454
- }), await $(), (z = i.value) != null && z.clickStream || _(), r.value = !1, c.value = !n.value && !o.value.length, h && h();
1455
+ ...T
1456
+ }), await j(), (L = c.value) != null && L.clickStream || _(), r.value = !1, i.value = !n.value && !o.value.length, h && h();
1455
1457
  }, _ = () => {
1456
- var d;
1457
- (d = t.value) == null || d.addListener("click", (f) => {
1458
- var y, x;
1459
- a.value && a.value.setMap(null), o.value = [(y = f == null ? void 0 : f.latLng) == null ? void 0 : y.lng(), (x = f == null ? void 0 : f.latLng) == null ? void 0 : x.lat()], G(o.value, !0).then(() => {
1460
- var O;
1461
- const m = {
1458
+ var s;
1459
+ (s = t.value) == null || s.addListener("click", (f) => {
1460
+ var m, x;
1461
+ a.value && a.value.setMap(null), o.value = [(m = f == null ? void 0 : f.latLng) == null ? void 0 : m.lng(), (x = f == null ? void 0 : f.latLng) == null ? void 0 : x.lat()], B(o.value, !0).then(() => {
1462
+ var T;
1463
+ const y = {
1462
1464
  lng: parseFloat(o.value[0]),
1463
1465
  lat: parseFloat(o.value[1])
1464
1466
  };
1465
- a.value = new L({
1467
+ a.value = new E({
1466
1468
  map: t.value,
1467
- position: m,
1469
+ position: y,
1468
1470
  title: n.value
1469
1471
  // 鼠标移上去时显示的内容
1470
- }), (O = t.value) == null || O.panTo(m);
1472
+ }), (T = t.value) == null || T.panTo(y), console.log("当前的地址坐标信息:", o.value, n.value);
1471
1473
  });
1472
1474
  });
1473
- }, $ = async () => {
1474
- var d;
1475
- if (!n.value && o.value.length, n.value && o.value.length > 0 ? await G(o.value) : n.value ? await U(n.value) : o.value.length > 0 && await G(o.value, !0), n.value && g(n.value, (f, y) => {
1476
- if (y && y.length) {
1477
- const x = y.find(
1478
- (m) => m.value === n.value || m.info.name === n.value
1475
+ }, j = async () => {
1476
+ var s;
1477
+ if (!n.value && o.value.length, n.value && o.value.length > 0 ? await B(o.value) : n.value ? await U(n.value) : o.value.length > 0 && await B(o.value, !0), n.value && g(n.value, (f, m) => {
1478
+ if (m && m.length) {
1479
+ const x = m.find(
1480
+ (y) => y.value === n.value || y.info.name === n.value
1479
1481
  );
1480
1482
  x ? v.value = x.info : v.value = {
1481
1483
  district: "",
@@ -1488,43 +1490,47 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1488
1490
  lng: parseFloat(o.value[0]),
1489
1491
  lat: parseFloat(o.value[1])
1490
1492
  };
1491
- a.value = new L({
1493
+ a.value = new E({
1492
1494
  map: t.value,
1493
1495
  position: f,
1494
1496
  title: n.value
1495
1497
  // 鼠标移上去时显示的内容
1496
- }), o.value.length && ((d = t.value) == null || d.setCenter(f));
1498
+ }), o.value.length && ((s = t.value) == null || s.setCenter(f));
1497
1499
  }
1498
- }, G = (d, f = !1) => (d.join(","), new Promise((y, x) => {
1499
- new google.maps.Geocoder().geocode({
1500
- location: {
1501
- lng: parseFloat(d[0]),
1502
- lat: parseFloat(d[1])
1503
- }
1504
- }, (O, N) => {
1505
- N === "OK" && (O != null && O.length) ? (f && (n.value = O[0].formatted_address ?? "", v.value = {
1506
- district: "",
1507
- address: "",
1508
- name: n.value
1509
- }), y(O[0])) : (D.error(P("thirdPartyMapErrorRetry")), x());
1500
+ }, B = (s, f = !1) => {
1501
+ const m = s.join(",");
1502
+ return new Promise((x, y) => {
1503
+ new google.maps.Geocoder().geocode({
1504
+ location: {
1505
+ lng: parseFloat(s[0]),
1506
+ lat: parseFloat(s[1])
1507
+ }
1508
+ }, (z, L) => {
1509
+ console.log(`${m}逆地址解析=======`, L, z, f), L === "OK" && (z != null && z.length) ? (f && (n.value = z[0].formatted_address ?? "", v.value = {
1510
+ district: "",
1511
+ address: "",
1512
+ name: n.value
1513
+ }), x(z[0])) : (N.error(k("thirdPartyMapErrorRetry")), y());
1514
+ });
1510
1515
  });
1511
- })), U = (d) => new Promise((f, y) => {
1516
+ }, U = (s) => new Promise((f, m) => {
1512
1517
  new google.maps.Geocoder().geocode({
1513
1518
  address: n.value
1514
- }, (m, O) => {
1515
- O === "OK" && (m != null && m.length) ? (o.value[0] = m[0].geometry.location.lng(), o.value[1] = m[0].geometry.location.lat(), f({ lng: o.value[0], lat: o.value[1] })) : (D.error(P("thirdPartyMapErrorRetry")), y());
1519
+ }, (y, T) => {
1520
+ console.log(`${s}地址解析出经纬度=======`, T, y), T === "OK" && (y != null && y.length) ? (o.value[0] = y[0].geometry.location.lng(), o.value[1] = y[0].geometry.location.lat(), f({ lng: o.value[0], lat: o.value[1] })) : (N.error(k("thirdPartyMapErrorRetry")), m());
1516
1521
  });
1517
- }), T = async () => {
1518
- var d;
1519
- r.value = !0, navigator.geolocation && ((d = navigator.geolocation) == null || d.getCurrentPosition((f) => {
1522
+ }), O = async () => {
1523
+ var s;
1524
+ console.log("定位到当前城市"), r.value = !0, navigator.geolocation && ((s = navigator.geolocation) == null || s.getCurrentPosition((f) => {
1520
1525
  var x;
1521
- const y = {
1526
+ console.log("当前城市: ", f);
1527
+ const m = {
1522
1528
  lat: f.coords.latitude,
1523
1529
  lng: f.coords.longitude
1524
1530
  };
1525
- (x = t.value) == null || x.panTo(y), c.value = !1, r.value = !1;
1531
+ (x = t.value) == null || x.panTo(m), i.value = !1, r.value = !1;
1526
1532
  }, (f) => {
1527
- D.error(P("获取定位失败")), r.value = !1;
1533
+ console.error("获取定位失败: ", f), N.error(k("获取定位失败")), r.value = !1;
1528
1534
  }, {
1529
1535
  // enableHighAccuracy: true,
1530
1536
  // timeout: 5000,
@@ -1533,177 +1539,177 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1533
1539
  enableHighAccuracy: !0,
1534
1540
  timeout: 1e4
1535
1541
  }));
1536
- }, g = async (d, f) => {
1537
- if (u.value.activated = !0, !d) {
1542
+ }, g = async (s, f) => {
1543
+ if (u.value.activated = !0, !s) {
1538
1544
  l.value = [], f([]);
1539
1545
  return;
1540
1546
  }
1541
- let y = {
1542
- input: d,
1547
+ let m = {
1548
+ input: s,
1543
1549
  origin: { lng: parseFloat(o.value[0]), lat: parseFloat(o.value[1]) },
1544
1550
  sessionToken: M.value
1545
1551
  };
1546
- const { suggestions: x } = await k.value.fetchAutocompleteSuggestions(y);
1552
+ const { suggestions: x } = await R.value.fetchAutocompleteSuggestions(m);
1547
1553
  if (l.value = [], !x) return f([]);
1548
- let m = [];
1554
+ let y = [];
1549
1555
  await Promise.all(
1550
- x.map((O) => (async () => {
1556
+ x.map((T) => (async () => {
1551
1557
  var J, le;
1552
- let z = (O == null ? void 0 : O.placePrediction).toPlace();
1553
- await z.fetchFields({
1558
+ let L = (T == null ? void 0 : T.placePrediction).toPlace();
1559
+ await L.fetchFields({
1554
1560
  fields: [
1555
1561
  "displayName",
1556
1562
  "formattedAddress",
1557
1563
  "location"
1558
1564
  ]
1559
1565
  });
1560
- const ne = (J = z == null ? void 0 : z.location) == null ? void 0 : J.lng(), V = (le = z == null ? void 0 : z.location) == null ? void 0 : le.lat(), K = {
1566
+ const ne = (J = L == null ? void 0 : L.location) == null ? void 0 : J.lng(), V = (le = L == null ? void 0 : L.location) == null ? void 0 : le.lat(), K = {
1561
1567
  // value: placePrediction?.text?.toString() || '',
1562
- value: z == null ? void 0 : z.formattedAddress,
1568
+ value: L == null ? void 0 : L.formattedAddress,
1563
1569
  point: { lng: ne, lat: V },
1564
1570
  info: {
1565
- name: z == null ? void 0 : z.displayName
1571
+ name: L == null ? void 0 : L.displayName
1566
1572
  }
1567
1573
  };
1568
- m.push(K);
1574
+ y.push(K);
1569
1575
  })())
1570
- ), l.value = m.length > 5 ? m.slice(0, 5) : m, f(l.value, m);
1576
+ ), l.value = y.length > 5 ? y.slice(0, 5) : y, f(l.value, y);
1571
1577
  };
1572
1578
  return {
1573
1579
  getLocationByInputSearch: g,
1574
- handleSelectAddress: (d) => {
1575
- n.value = d.value, v.value = d.info, U(d.value).then((f) => {
1576
- var y;
1577
- o.value = [f.lng, f.lat], a.value && a.value.setMap(null), a.value = new L({
1580
+ handleSelectAddress: (s) => {
1581
+ n.value = s.value, v.value = s.info, U(s.value).then((f) => {
1582
+ var m;
1583
+ o.value = [f.lng, f.lat], a.value && a.value.setMap(null), a.value = new E({
1578
1584
  map: t.value,
1579
1585
  position: f,
1580
1586
  title: n.value
1581
1587
  // 鼠标移上去时显示的内容
1582
- }), (y = t.value) == null || y.panTo(f), c.value = !1;
1588
+ }), (m = t.value) == null || m.panTo(f), i.value = !1;
1583
1589
  });
1584
1590
  },
1585
1591
  getLocationParse: async () => {
1586
- var d, f;
1592
+ var s, f;
1587
1593
  if (l.value.length) {
1588
- if (n.value = l.value[0].value, !((d = l.value[0]) != null && d.point))
1589
- return D.error(P("thirdPartyMapErrorRetry"));
1590
- o.value = [l.value[0].point.lng, l.value[0].point.lat], v.value = l.value[0].info, a.value = new L({
1594
+ if (console.log("检索列表:", l.value), n.value = l.value[0].value, !((s = l.value[0]) != null && s.point))
1595
+ return N.error(k("thirdPartyMapErrorRetry"));
1596
+ o.value = [l.value[0].point.lng, l.value[0].point.lat], v.value = l.value[0].info, a.value = new E({
1591
1597
  map: t.value,
1592
1598
  position: l.value[0].point,
1593
1599
  title: n.value
1594
1600
  // 鼠标移上去时显示的内容
1595
- }), (f = t.value) == null || f.panTo(l.value[0].point), c.value = !1, u.value.activated = !1;
1601
+ }), (f = t.value) == null || f.panTo(l.value[0].point), i.value = !1, u.value.activated = !1;
1596
1602
  }
1597
1603
  },
1598
1604
  getMapInfo: () => ({
1599
1605
  longitude: o.value[0],
1600
1606
  latitude: o.value[1],
1601
- adCode: s.value,
1607
+ adCode: d.value,
1602
1608
  address: n.value,
1603
1609
  addressInfo: v.value
1604
1610
  }),
1605
1611
  loadJavascript: A,
1606
- positionCityLocal: T,
1607
- showGetLocationBtn: c
1612
+ positionCityLocal: O,
1613
+ showGetLocationBtn: i
1608
1614
  };
1609
1615
  }, Al = (e, t) => {
1610
- const a = S("gaode"), r = S(), u = S(), l = H(null), n = H(null), o = H(null), s = S(!0), v = S(null), b = S([]), C = Se(() => ({
1616
+ const a = S("gaode"), r = S(), u = S(), l = H(null), n = H(null), o = H(null), d = S(!0), v = S(null), b = S([]), C = Se(() => ({
1611
1617
  width: e.width ? Q(e.width) : "100%",
1612
1618
  height: e.height ? Q(e.height) : "100%"
1613
- })), M = S(""), k = S([]), L = S(""), c = S(), {
1614
- loadJavascript: i,
1619
+ })), M = S(""), R = S([]), E = S(""), i = S(), {
1620
+ loadJavascript: c,
1615
1621
  getLocationByInputSearch: h,
1616
1622
  handleSelectAddress: A,
1617
- getLocationParse: R
1623
+ getLocationParse: G
1618
1624
  } = ft({
1619
1625
  BMap: l,
1620
1626
  map: n,
1621
1627
  marker: o,
1622
- mapLoading: s,
1628
+ mapLoading: d,
1623
1629
  $autocomplete: v,
1624
1630
  searchResultList: b,
1625
1631
  innerInput: M,
1626
- innerPoint: k,
1627
- adCode: L,
1628
- addressInfo: c
1632
+ innerPoint: R,
1633
+ adCode: E,
1634
+ addressInfo: i
1629
1635
  }), {
1630
1636
  loadJavascript: _,
1631
- getLocationByInputSearch: $,
1632
- handleSelectAddress: G,
1637
+ getLocationByInputSearch: j,
1638
+ handleSelectAddress: B,
1633
1639
  getLocationParse: U
1634
1640
  } = st({
1635
1641
  MapGL: l,
1636
1642
  map: n,
1637
1643
  marker: o,
1638
- mapLoading: s,
1644
+ mapLoading: d,
1639
1645
  $autocomplete: v,
1640
1646
  searchResultList: b,
1641
1647
  innerInput: M,
1642
- innerPoint: k,
1643
- adCode: L,
1644
- addressInfo: c
1648
+ innerPoint: R,
1649
+ adCode: E,
1650
+ addressInfo: i
1645
1651
  }), {
1646
- loadJavascript: T,
1652
+ loadJavascript: O,
1647
1653
  getLocationByInputSearch: g,
1648
1654
  handleSelectAddress: p,
1649
1655
  getLocationParse: w,
1650
- positionCityLocal: j,
1651
- showGetLocationBtn: d
1656
+ positionCityLocal: $,
1657
+ showGetLocationBtn: s
1652
1658
  } = Cl({
1653
1659
  MapGL: l,
1654
1660
  map: n,
1655
1661
  marker: o,
1656
- mapLoading: s,
1662
+ mapLoading: d,
1657
1663
  $autocomplete: v,
1658
1664
  searchResultList: b,
1659
1665
  innerInput: M,
1660
- innerPoint: k,
1661
- adCode: L,
1662
- addressInfo: c
1663
- }), { mapElement: f, addPlugins: y } = xl(e, t, {
1666
+ innerPoint: R,
1667
+ adCode: E,
1668
+ addressInfo: i
1669
+ }), { mapElement: f, addPlugins: m } = xl(e, t, {
1664
1670
  type: a,
1665
1671
  MapGL: l,
1666
1672
  map: n,
1667
- innerPoint: k,
1673
+ innerPoint: R,
1668
1674
  innerInput: M,
1669
- adCode: L,
1670
- addressInfo: c
1675
+ adCode: E,
1676
+ addressInfo: i
1671
1677
  }), x = () => {
1672
- a.value === "baidu" && i(r.value, { clickStream: !e.clickStream, mapOpt: e.mapOpt }, O), a.value === "gaode" && _(
1678
+ a.value === "baidu" && c(r.value, { clickStream: !e.clickStream, mapOpt: e.mapOpt }, T), a.value === "gaode" && _(
1673
1679
  r.value,
1674
1680
  u.value,
1675
1681
  { clickStream: !e.clickStream, mapOpt: e.mapOpt },
1676
- O
1677
- ), a.value === "google" && T(
1682
+ T
1683
+ ), a.value === "google" && O(
1678
1684
  r.value,
1679
1685
  u.value,
1680
1686
  { clickStream: !e.clickStream, mapOpt: e.mapOpt },
1681
- O
1687
+ T
1682
1688
  );
1683
- }, m = async (V) => {
1684
- const [K, J] = await Ge(V);
1689
+ }, y = async (V) => {
1690
+ const [K, J] = await ze(V);
1685
1691
  if (K) {
1686
- s.value = !1;
1692
+ d.value = !1;
1687
1693
  return;
1688
1694
  }
1689
1695
  if (!K && !J) {
1690
- t("no-config-map", P("暂未配置地图")), s.value = !1;
1696
+ t("no-config-map", k("暂未配置地图")), d.value = !1;
1691
1697
  return;
1692
1698
  }
1693
1699
  return J;
1694
1700
  };
1695
1701
  Oe(async () => {
1696
1702
  var V, K, J, le, Ve;
1697
- if (e.defaultLongitude && e.defaultLatitude && (k.value = [e.defaultLongitude, e.defaultLatitude]), M.value = e.defaultAddress ?? "", e != null && e.sdkConfig && ((V = e == null ? void 0 : e.sdkConfig) != null && V.akValue))
1703
+ if (e.defaultLongitude && e.defaultLatitude && (R.value = [e.defaultLongitude, e.defaultLatitude]), M.value = e.defaultAddress ?? "", e != null && e.sdkConfig && ((V = e == null ? void 0 : e.sdkConfig) != null && V.akValue))
1698
1704
  a.value = ((K = e.sdkConfig) == null ? void 0 : K.mapType) ?? "gaode", r.value = (J = e.sdkConfig) == null ? void 0 : J.akValue, u.value = (le = e.sdkConfig) == null ? void 0 : le.secretKey;
1699
1705
  else {
1700
- const F = await m((Ve = e == null ? void 0 : e.sdkConfig) == null ? void 0 : Ve.mapType);
1706
+ const F = await y((Ve = e == null ? void 0 : e.sdkConfig) == null ? void 0 : Ve.mapType);
1701
1707
  F && (a.value = (F == null ? void 0 : F.mapType) ?? "gaode", r.value = F == null ? void 0 : F.akVal, u.value = F == null ? void 0 : F.secretK);
1702
1708
  }
1703
1709
  x();
1704
1710
  });
1705
- const O = () => {
1706
- f.value = n.value, y(), a.value === "baidu" && n.value.addEventListener("tilesloaded", () => {
1711
+ const T = () => {
1712
+ f.value = n.value, m(), a.value === "baidu" && n.value.addEventListener("tilesloaded", () => {
1707
1713
  t("update:mapElement", f.value);
1708
1714
  }), a.value === "gaode" && n.value.on("complete", () => {
1709
1715
  t("update:mapElement", f.value);
@@ -1713,18 +1719,18 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1713
1719
  mapStyle: C,
1714
1720
  innerInput: M,
1715
1721
  getLocationByInputSearch: (V, K) => {
1716
- a.value === "baidu" && h(V, K), a.value === "gaode" && $(V, K), a.value === "google" && g(V, K);
1722
+ a.value === "baidu" && h(V, K), a.value === "gaode" && j(V, K), a.value === "google" && g(V, K);
1717
1723
  },
1718
1724
  handleSelectAddress: (V) => {
1719
- a.value === "baidu" && A(V), a.value === "gaode" && G(V), a.value === "google" && p(V);
1725
+ a.value === "baidu" && A(V), a.value === "gaode" && B(V), a.value === "google" && p(V);
1720
1726
  },
1721
1727
  getLocationParse: () => {
1722
- a.value === "baidu" && R(), a.value === "gaode" && U(), a.value === "google" && w();
1728
+ a.value === "baidu" && G(), a.value === "gaode" && U(), a.value === "google" && w();
1723
1729
  },
1724
- mapLoading: s,
1730
+ mapLoading: d,
1725
1731
  $autocomplete: v,
1726
- googlePositionCityLocal: j,
1727
- showGetLocationBtn: d
1732
+ googlePositionCityLocal: $,
1733
+ showGetLocationBtn: s
1728
1734
  };
1729
1735
  }, Sl = { class: "search-input" }, Ol = { class: "location-icon1" }, Tl = { id: "map" }, $l = /* @__PURE__ */ Ae({
1730
1736
  __name: "mixMap",
@@ -1748,55 +1754,55 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1748
1754
  innerInput: l,
1749
1755
  getLocationByInputSearch: n,
1750
1756
  handleSelectAddress: o,
1751
- getLocationParse: s,
1757
+ getLocationParse: d,
1752
1758
  mapLoading: v,
1753
1759
  $autocomplete: b,
1754
1760
  googlePositionCityLocal: C,
1755
1761
  showGetLocationBtn: M
1756
1762
  } = Al(a, r);
1757
- return (k, L) => {
1758
- const c = Pe, i = ke;
1763
+ return (R, E) => {
1764
+ const i = Pe, c = ke;
1759
1765
  return Te(), $e("div", {
1760
1766
  class: "das-map",
1761
- style: je(B(u))
1767
+ style: je(D(u))
1762
1768
  }, [
1763
1769
  Z(W("div", Sl, [
1764
- Z(de(c, {
1770
+ Z(de(i, {
1765
1771
  ref_key: "$autocomplete",
1766
1772
  ref: b,
1767
- modelValue: B(l),
1768
- "onUpdate:modelValue": L[0] || (L[0] = (h) => ta(l) ? l.value = h : null),
1769
- "fetch-suggestions": B(n),
1770
- placeholder: B(P)("请输入位置"),
1773
+ modelValue: D(l),
1774
+ "onUpdate:modelValue": E[0] || (E[0] = (h) => ta(l) ? l.value = h : null),
1775
+ "fetch-suggestions": D(n),
1776
+ placeholder: D(k)("请输入位置"),
1771
1777
  style: { width: "100%" },
1772
1778
  "trigger-on-focus": !1,
1773
- onSelect: B(o),
1774
- onKeyup: Le(B(s), ["enter", "native"]),
1779
+ onSelect: D(o),
1780
+ onKeyup: Ee(D(d), ["enter", "native"]),
1775
1781
  clearable: ""
1776
1782
  }, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
1777
- [B(Re)]
1783
+ [D(Re)]
1778
1784
  ])
1779
1785
  ], 512), [
1780
1786
  [Ke, a.showSearch]
1781
1787
  ]),
1782
1788
  Z(W("div", Ol, [
1783
- de(B(la), {
1789
+ de(D(la), {
1784
1790
  block: "",
1785
1791
  size: "large",
1786
- onClick: B(C)
1792
+ onClick: D(C)
1787
1793
  }, {
1788
1794
  default: aa(() => [
1789
- oa(ra(B(P)("Please-Click-Get-Location")), 1)
1795
+ oa(ra(D(k)("Please-Click-Get-Location")), 1)
1790
1796
  ]),
1791
1797
  _: 1
1792
1798
  }, 8, ["onClick"])
1793
1799
  ], 512), [
1794
- [Ke, B(M)]
1800
+ [Ke, D(M)]
1795
1801
  ]),
1796
1802
  Z(W("div", Tl, null, 512), [
1797
1803
  [
1798
- i,
1799
- B(v),
1804
+ c,
1805
+ D(v),
1800
1806
  void 0,
1801
1807
  { lock: !0 }
1802
1808
  ]
@@ -1804,7 +1810,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1804
1810
  ], 4);
1805
1811
  };
1806
1812
  }
1807
- }), jl = /* @__PURE__ */ ze($l, [["__scopeId", "data-v-398b4cef"]]), Ll = {
1813
+ }), jl = /* @__PURE__ */ Ge($l, [["__scopeId", "data-v-398b4cef"]]), El = {
1808
1814
  请输入位置: { "zh-CN": "请输入位置", en: "Please enter location", "zh-MO": "請輸入位置", _appCode: "framework" },
1809
1815
  获取地图配置信息失败: {
1810
1816
  "zh-CN": "获取地图配置信息失败",
@@ -1832,8 +1838,8 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1832
1838
  _appCode: "framework"
1833
1839
  }
1834
1840
  };
1835
- na(Ll);
1836
- const Kl = Ee(ga), Fl = () => S(null), Hl = Ee(ma), Il = () => S(null), Jl = Ee(jl), Zl = () => S(null), Wl = { title: "Map 地图" };
1841
+ na(El);
1842
+ const Kl = Le(ga), Fl = () => S(null), Hl = Le(ma), Il = () => S(null), Jl = Le(jl), Zl = () => S(null), Wl = { title: "Map 地图" };
1837
1843
  export {
1838
1844
  Hl as DasBaiduMap,
1839
1845
  Il as DasBaiduMapRef,