@das-fed/ui 6.4.0-test.5.1 → 6.4.0-test.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/device-panel/index.js +37113 -36843
  3. package/packages/business-components/device-panel/index.js.gz +0 -0
  4. package/packages/business-components/device-panel/src/apis.d.ts +0 -2
  5. package/packages/business-components/device-panel/style.css +1 -1
  6. package/packages/business-components/device-panel/style.css.gz +0 -0
  7. package/packages/business-components/import-button/i18n/index.d.ts +16 -6
  8. package/packages/business-components/import-button/index.js +147 -141
  9. package/packages/business-components/import-button/index.js.gz +0 -0
  10. package/packages/business-components/import-button/style.css +1 -1
  11. package/packages/business-components/process-configuration/i18n/index.d.ts +5 -0
  12. package/packages/business-components/process-configuration/index.js +2 -1
  13. package/packages/business-components/process-configuration/index.js.gz +0 -0
  14. package/packages/business-components/process-configuration/src/hooks/useDeleteDialog.d.ts +2 -3
  15. package/packages/business-components/process-form/index.js +64 -63
  16. package/packages/business-components/process-form/index.js.gz +0 -0
  17. package/packages/business-components/process-form/style.css +1 -1
  18. package/packages/business-components/process-search-form/index.js +56 -56
  19. package/packages/business-components/process-search-form/index.js.gz +0 -0
  20. package/packages/business-components/process-table/index.js +539 -528
  21. package/packages/business-components/process-table/index.js.gz +0 -0
  22. package/packages/components/autocomplete/index.d.ts +13 -4
  23. package/packages/components/autocomplete/index.js +135 -122
  24. package/packages/components/autocomplete/index.js.gz +0 -0
  25. package/packages/components/autocomplete/src/index.vue.d.ts +2 -1
  26. package/packages/components/autocomplete/src/type.d.ts +4 -1
  27. package/packages/components/autocomplete/style.css +1 -1
  28. package/packages/components/autocomplete/style.css.gz +0 -0
  29. package/packages/components/cascader/index.js +41 -40
  30. package/packages/components/cascader/index.js.gz +0 -0
  31. package/packages/components/cascader/style.css +1 -1
  32. package/packages/components/cascader/style.css.gz +0 -0
  33. package/packages/components/date-picker/index.js +238 -237
  34. package/packages/components/date-picker/index.js.gz +0 -0
  35. package/packages/components/date-picker/style.css +1 -1
  36. package/packages/components/date-picker/style.css.gz +0 -0
  37. package/packages/components/edit-table/index.d.ts +9 -9
  38. package/packages/components/edit-table/index.js +2010 -1658
  39. package/packages/components/edit-table/index.js.gz +0 -0
  40. package/packages/components/edit-table/src/hooks/use-validator.d.ts +9 -3
  41. package/packages/components/edit-table/src/index.vue.d.ts +1 -1
  42. package/packages/components/edit-table/src/type.d.ts +13 -0
  43. package/packages/components/edit-table/src/utils.d.ts +9 -5
  44. package/packages/components/edit-table/style.css +1 -1
  45. package/packages/components/edit-table/style.css.gz +0 -0
  46. package/packages/components/form-item/index.js +3 -3
  47. package/packages/components/form-item/index.js.gz +0 -0
  48. package/packages/components/input/index.js +103 -102
  49. package/packages/components/input/index.js.gz +0 -0
  50. package/packages/components/input/style.css +1 -1
  51. package/packages/components/input/style.css.gz +0 -0
  52. package/packages/components/input-dialog-select/index.js +18 -18
  53. package/packages/components/input-dialog-select/index.js.gz +0 -0
  54. package/packages/components/input-dialog-select/style.css +1 -1
  55. package/packages/components/input-dialog-select/style.css.gz +0 -0
  56. package/packages/components/input-number/index.js +63 -63
  57. package/packages/components/input-number/index.js.gz +0 -0
  58. package/packages/components/input-number/src/App.vue.d.ts +1 -3
  59. package/packages/components/input-number/style.css +1 -1
  60. package/packages/components/input-number/style.css.gz +0 -0
  61. package/packages/components/map/index.js +388 -385
  62. package/packages/components/map/index.js.gz +0 -0
  63. package/packages/components/menu-aside/index.js +680 -606
  64. package/packages/components/menu-aside/index.js.gz +0 -0
  65. package/packages/components/search-form/i18n/index.d.ts +5 -0
  66. package/packages/components/search-form/index.js +44 -43
  67. package/packages/components/search-form/index.js.gz +0 -0
  68. package/packages/components/search-form/style.css +1 -1
  69. package/packages/components/search-form/style.css.gz +0 -0
  70. package/packages/components/select/index.js +213 -213
  71. package/packages/components/select/index.js.gz +0 -0
  72. package/packages/components/select/style.css +1 -1
  73. package/packages/components/select/style.css.gz +0 -0
  74. package/packages/components/select-list/index.d.ts +23 -3
  75. package/packages/components/select-list/index.js +599 -565
  76. package/packages/components/select-list/index.js.gz +0 -0
  77. package/packages/components/select-list/src/Index.vue.d.ts +9 -1
  78. package/packages/components/select-list/src/hooks/use-select-list.d.ts +2 -0
  79. package/packages/components/select-list/src/type.d.ts +22 -4
  80. package/packages/components/select-list/style.css +1 -1
  81. package/packages/components/select-list/style.css.gz +0 -0
  82. package/packages/components/special-range-picker-month/index.js +3 -3
  83. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  84. package/packages/components/special-range-picker-year/index.js +42 -42
  85. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  86. package/packages/components/table/i18n/index.d.ts +0 -20
  87. package/packages/components/table/index.js +0 -4
  88. package/packages/components/table/index.js.gz +0 -0
  89. package/packages/components/table/style.css +1 -1
  90. package/packages/components/table/style.css.gz +0 -0
  91. package/packages/components/text-tooltip/index.js +660 -651
  92. package/packages/components/text-tooltip/index.js.gz +0 -0
  93. package/packages/components/text-tooltip/src/type.d.ts +1 -62
  94. package/packages/components/tree/index.js +222 -222
  95. package/packages/components/tree/index.js.gz +0 -0
  96. package/packages/components/tree/src/type.d.ts +1 -0
  97. package/packages/components/tree-select/index.js +374 -345
  98. package/packages/components/tree-select/index.js.gz +0 -0
  99. package/packages/components/tree-select/src/App.vue.d.ts +1 -0
  100. package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +2 -1
  101. package/packages/components/tree-select/src/type.d.ts +3 -0
  102. package/packages/components/tree-select/style.css +1 -1
  103. package/packages/components/tree-select/style.css.gz +0 -0
@@ -1,11 +1,11 @@
1
1
  import '@das-fed/ui/packages/components/map/style.css';
2
- import { ref as S, defineComponent as Ae, shallowRef as I, computed as Se, onMounted as Oe, openBlock as Te, createElementBlock as je, normalizeStyle as Le, createElementVNode as W, withDirectives as Z, createVNode as de, unref as D, withKeys as $e, h as Qt, render as ea, isRef as ta, vShow as Fe, withCtx as aa, createTextVNode as oa, toDisplayString as ra } from "vue";
2
+ import { ref as S, defineComponent as Ae, shallowRef as I, 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 Le, h as Qt, render as ea, isRef as ta, vShow as Fe, withCtx as aa, createTextVNode as oa, toDisplayString as ra } from "vue";
3
3
  import { withInstall as Ee } from "@das-fed/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 E, setI18nRule as na } from "@das-fed/web/packages/i18n/index";
8
+ import { t as P, setI18nRule as na } from "@das-fed/web/packages/i18n/index";
9
9
  import { vDasTooltip as Re } from "@das-fed/ui/packages/components/text-tooltip/index";
10
10
  import { DasMessage as z } from "@das-fed/ui/packages/components/message/index";
11
11
  import { createService as ct } from "@das-fed/utils/create-api-service";
@@ -13,32 +13,32 @@ import { DasButton as la } from "@das-fed/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: n, $autocomplete: u, searchResultList: l, innerInput: r, 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: s, addressInfo: v }, b) => {
17
17
  const C = S();
18
18
  let M;
19
- const k = (O, g, p, w) => {
19
+ const k = (T, g, p, w) => {
20
20
  C.value = p, w && (M = w);
21
- const L = document.createElement("script");
22
- if (L.src = `${location.protocol}//webapi.amap.com/maps?v=1.4.15&key=${O}&plugin=AMap.CitySearch&callback=onLoad`, g) {
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
23
  const d = document.createElement("script");
24
24
  d.innerHTML = `window._AMapSecurityConfig = {
25
25
  securityJsCode: "${g}",
26
26
  }`, document.head.appendChild(d);
27
27
  }
28
- document.head.appendChild(L), window.onLoad = () => {
29
- $();
28
+ document.head.appendChild(j), window.onLoad = () => {
29
+ L();
30
30
  };
31
- }, $ = () => {
32
- var O, g;
31
+ }, L = () => {
32
+ var T, g;
33
33
  if (e.value = AMap, !(typeof e.value > "u")) {
34
34
  try {
35
- const p = ((O = C.value) == null ? void 0 : O.mapOpt) ?? {};
35
+ const p = ((T = C.value) == null ? void 0 : T.mapOpt) ?? {};
36
36
  t.value = new AMap.Map("map", {
37
37
  zoom: 15,
38
38
  ...p
39
39
  });
40
40
  } catch {
41
- n.value = !1, z.error(E("thirdPartyMapErrorRetry"));
41
+ r.value = !1, z.error(P("thirdPartyMapErrorRetry"));
42
42
  }
43
43
  AMap.plugin(["AMap.ToolBar"], () => {
44
44
  t.value.addControl(
@@ -48,36 +48,36 @@ const Q = (e) => {
48
48
  liteStyle: !0
49
49
  })
50
50
  );
51
- }), i(), (g = C.value) != null && g.clickStream || c(), n.value = !1, M && M();
51
+ }), i(), (g = C.value) != null && g.clickStream || c(), r.value = !1, M && M();
52
52
  }
53
53
  }, c = () => {
54
- t.value.on("click", (O) => {
55
- a.value && t.value.remove(a.value), o.value = [O.lnglat.getLng(), O.lnglat.getLat()], h(o.value, !0).then(() => {
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(() => {
56
56
  a.value = new AMap.Marker({
57
57
  position: o.value,
58
- title: r.value
58
+ title: n.value
59
59
  }), t.value.add(a.value), t.value.setCenter(o.value);
60
60
  });
61
61
  });
62
62
  }, i = async () => {
63
- !r.value && !o.value.length && B(), r.value && o.value.length > 0 ? await h(o.value) : r.value ? await A(r.value) : o.value.length > 0 && await h(o.value, !0), r.value && _(r.value, (O, g) => {
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
64
  if (g && g.length) {
65
65
  const p = g.find(
66
- (w) => w.value === r.value || w.info.name === r.value
66
+ (w) => w.value === n.value || w.info.name === n.value
67
67
  );
68
68
  p ? v.value = p.info : v.value = {
69
69
  district: "",
70
70
  address: "",
71
- name: r.value
71
+ name: n.value
72
72
  };
73
73
  }
74
74
  }), a.value = new AMap.Marker({
75
75
  position: o.value,
76
- title: r.value
76
+ title: n.value
77
77
  }), t.value.add(a.value), o.value.length && t.value.setCenter(o.value);
78
- }, h = (O, g = !1) => {
79
- const p = O.join(",");
80
- return new Promise((w, L) => {
78
+ }, h = (T, g = !1) => {
79
+ const p = T.join(",");
80
+ return new Promise((w, j) => {
81
81
  AMap.service("AMap.Geocoder", () => {
82
82
  new AMap.Geocoder({
83
83
  city: "全国"
@@ -85,33 +85,33 @@ const Q = (e) => {
85
85
  var x, m;
86
86
  if (f === "complete" && (y != null && y.regeocode)) {
87
87
  if (g) {
88
- const { province: T = "", city: N = "", district: G = "", township: ne = "" } = y.regeocode.addressComponent;
89
- r.value = y.regeocode.formattedAddress ?? "", v.value = {
90
- district: T + N + G,
88
+ const { province: O = "", city: N = "", district: B = "", township: ne = "" } = y.regeocode.addressComponent;
89
+ n.value = y.regeocode.formattedAddress ?? "", v.value = {
90
+ district: O + N + B,
91
91
  address: ne,
92
- name: r.value.replace(T, "").replace(N, "").replace(G, "").replace(ne, "")
92
+ name: n.value.replace(O, "").replace(N, "").replace(B, "").replace(ne, "")
93
93
  };
94
94
  }
95
95
  s.value = ((m = (x = y.regeocode) == null ? void 0 : x.addressComponent) == null ? void 0 : m.adcode) ?? "", w(y.regeocode);
96
96
  } else
97
- z.error(E("thirdPartyMapErrorRetry")), L();
97
+ z.error(P("thirdPartyMapErrorRetry")), j();
98
98
  });
99
99
  });
100
100
  });
101
- }, A = (O) => new Promise((g, p) => {
101
+ }, A = (T) => new Promise((g, p) => {
102
102
  AMap.service("AMap.Geocoder", () => {
103
103
  new AMap.Geocoder({
104
104
  city: "全国"
105
- }).getLocation(O, (L, d) => {
105
+ }).getLocation(T, (j, d) => {
106
106
  var f, y;
107
- if (L === "complete" && ((f = d.geocodes) != null && f.length)) {
107
+ if (j === "complete" && ((f = d.geocodes) != null && f.length)) {
108
108
  const x = d.geocodes[0].location;
109
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);
110
110
  } else
111
- z.error(E("thirdPartyMapErrorRetry")), p();
111
+ z.error(P("thirdPartyMapErrorRetry")), p();
112
112
  });
113
113
  });
114
- }), B = () => {
114
+ }), R = () => {
115
115
  new AMap.CitySearch().getLocalCity((g, p) => {
116
116
  if (g === "complete" && p.info === "OK") {
117
117
  if (p && p.city && p.bounds) {
@@ -119,10 +119,10 @@ const Q = (e) => {
119
119
  t.value.setBounds(w);
120
120
  }
121
121
  } else
122
- z.error(E("thirdPartyMapErrorRetry"));
122
+ z.error(P("thirdPartyMapErrorRetry"));
123
123
  });
124
- }, _ = (O, g) => {
125
- if (u.value.activated = !0, !O) {
124
+ }, _ = (T, g) => {
125
+ if (u.value.activated = !0, !T) {
126
126
  l.value = [], g([]);
127
127
  return;
128
128
  }
@@ -130,19 +130,19 @@ const Q = (e) => {
130
130
  var p = {
131
131
  city: "全国"
132
132
  }, w = new AMap.Autocomplete(p);
133
- w.search(O, function(L, d) {
133
+ w.search(T, function(j, d) {
134
134
  if (l.value = [], !d || !d.tips) return g([]);
135
135
  let f = d.tips;
136
136
  if (!f || !f.length) return g([]);
137
137
  f = f.map((y) => {
138
- const { district: x = "", address: m = "", name: T = "", location: N = "" } = y;
138
+ const { district: x = "", address: m = "", name: O = "", location: N = "" } = y;
139
139
  return {
140
- value: x + m + T,
140
+ value: x + m + O,
141
141
  point: N,
142
142
  info: {
143
143
  district: x,
144
144
  address: m,
145
- name: T
145
+ name: O
146
146
  }
147
147
  };
148
148
  }), l.value = f.length > 5 ? f.slice(0, 5) : f, g(l.value, f);
@@ -151,23 +151,23 @@ const Q = (e) => {
151
151
  };
152
152
  return {
153
153
  getLocationByInputSearch: _,
154
- handleSelectAddress: (O) => {
155
- r.value = O.value, v.value = O.info, A(O.value).then((g) => {
154
+ handleSelectAddress: (T) => {
155
+ n.value = T.value, v.value = T.info, A(T.value).then((g) => {
156
156
  o.value = [g.lng, g.lat], a.value && t.value.remove(a.value), a.value = new AMap.Marker({
157
157
  position: o.value,
158
- title: r.value
158
+ title: n.value
159
159
  // 鼠标移上去时显示的内容
160
160
  }), t.value.add(a.value), t.value.setCenter(o.value);
161
161
  });
162
162
  },
163
163
  getLocationParse: async () => {
164
- var O;
165
- if (!l.value.length) return z.error(E("thirdPartyMapErrorRetry"));
166
- if (r.value = l.value[0].value, !((O = l.value[0]) != null && O.point))
167
- return z.error(E("thirdPartyMapErrorRetry"));
164
+ var T;
165
+ if (!l.value.length) return z.error(P("thirdPartyMapErrorRetry"));
166
+ if (n.value = l.value[0].value, !((T = l.value[0]) != null && T.point))
167
+ return z.error(P("thirdPartyMapErrorRetry"));
168
168
  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
169
  position: o.value,
170
- title: r.value
170
+ title: n.value
171
171
  // 鼠标移上去时显示的内容
172
172
  }), t.value.add(a.value), t.value.setCenter(o.value), u.value.activated = !1;
173
173
  },
@@ -175,24 +175,24 @@ const Q = (e) => {
175
175
  longitude: o.value[0],
176
176
  latitude: o.value[1],
177
177
  adCode: s.value,
178
- address: r.value,
178
+ address: n.value,
179
179
  addressInfo: v.value
180
180
  }),
181
181
  loadJavascript: k
182
182
  };
183
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 r, o, s, v, b;
184
+ var n, o, s, v, b;
185
185
  const t = ["", "baidu", "gaode", "google"];
186
- let a = null, [n, u] = await sa().run();
187
- if (n)
188
- return [n, a];
186
+ let a = null, [r, u] = await sa().run();
187
+ if (r)
188
+ return [r, a];
189
189
  const l = u.filter((C) => C.enable) || [];
190
190
  if ((l == null ? void 0 : l.length) == 0) return [null, a];
191
191
  if ((l == null ? void 0 : l.length) > 1) {
192
192
  const C = l.filter((M) => t[M.serviceProvider] == e);
193
193
  a = {
194
194
  mapType: e,
195
- akVal: (r = C[0]) == null ? void 0 : r.akValue,
195
+ akVal: (n = C[0]) == null ? void 0 : n.akValue,
196
196
  secretK: (o = C[0]) == null ? void 0 : o.securityKey
197
197
  };
198
198
  } else (l == null ? void 0 : l.length) == 1 && (a = {
@@ -214,15 +214,15 @@ const Q = (e) => {
214
214
  dev: { type: Boolean }
215
215
  },
216
216
  setup(e, { expose: t }) {
217
- const a = e, n = I(null), u = I(null), l = I(null), r = S(!0), o = S(null), s = S([]), v = Se(() => ({
217
+ const a = e, r = I(null), u = I(null), l = I(null), n = S(!0), o = S(null), s = S([]), v = Se(() => ({
218
218
  width: a.width ? Q(a.width) : "100%",
219
219
  height: a.height ? Q(a.height) : "100%"
220
- })), b = S(""), C = S([]), M = S(""), k = S(), { getLocationByInputSearch: $, handleSelectAddress: c, getLocationParse: i, getMapInfo: h, loadJavascript: A } = st(
220
+ })), b = S(""), C = S([]), M = S(""), k = S(), { getLocationByInputSearch: L, handleSelectAddress: c, getLocationParse: i, getMapInfo: h, loadJavascript: A } = st(
221
221
  {
222
- MapGL: n,
222
+ MapGL: r,
223
223
  map: u,
224
224
  marker: l,
225
- mapLoading: r,
225
+ mapLoading: n,
226
226
  $autocomplete: o,
227
227
  searchResultList: s,
228
228
  innerInput: b,
@@ -230,46 +230,46 @@ const Q = (e) => {
230
230
  adCode: M,
231
231
  addressInfo: k
232
232
  }
233
- ), B = async () => {
233
+ ), R = async () => {
234
234
  const _ = {
235
235
  akValue: a.akValue ?? "",
236
236
  secretKey: a.secretKey ?? ""
237
237
  };
238
238
  {
239
- const [j, R] = await Ge("gaode");
240
- j && z.error(E("获取地图配置信息失败")), !j && !R && z.error(E("暂未配置地图")), R && (_.akValue || (_.akValue = R.akVal), _.secretKey || (_.secretKey = R.secretK));
239
+ const [$, G] = await Ge("gaode");
240
+ $ && z.error(P("获取地图配置信息失败")), !$ && !G && z.error(P("暂未配置地图")), G && (_.akValue || (_.akValue = G.akVal), _.secretKey || (_.secretKey = G.secretK));
241
241
  }
242
242
  return _;
243
243
  };
244
244
  return Oe(async () => {
245
245
  a.defaultLongitude && a.defaultLatitude && (C.value = [a.defaultLongitude, a.defaultLatitude]), b.value = a.defaultAddress ?? "";
246
- const { akValue: _, secretKey: j } = await B();
247
- A(_, j);
246
+ const { akValue: _, secretKey: $ } = await R();
247
+ A(_, $);
248
248
  }), t({
249
249
  /** 获取经纬度、地址、行政区划编码 */
250
250
  getMapInfo: h
251
- }), (_, j) => {
252
- const R = Pe, V = ke;
253
- return Te(), je(
251
+ }), (_, $) => {
252
+ const G = Pe, U = ke;
253
+ return Te(), $e(
254
254
  "div",
255
255
  {
256
256
  class: "das-map",
257
- style: Le(v.value)
257
+ style: je(v.value)
258
258
  },
259
259
  [
260
260
  W("div", da, [
261
- Z(de(R, {
261
+ Z(de(G, {
262
262
  ref_key: "$autocomplete",
263
263
  ref: o,
264
264
  modelValue: b.value,
265
- "onUpdate:modelValue": j[0] || (j[0] = (O) => b.value = O),
265
+ "onUpdate:modelValue": $[0] || ($[0] = (T) => b.value = T),
266
266
  modelModifiers: { trim: !0 },
267
- "fetch-suggestions": D($),
268
- placeholder: D(E)("请输入位置"),
267
+ "fetch-suggestions": D(L),
268
+ placeholder: D(P)("请输入位置"),
269
269
  style: { width: "100%" },
270
270
  "trigger-on-focus": !1,
271
271
  onSelect: D(c),
272
- onKeyup: $e(D(i), ["enter", "native"]),
272
+ onKeyup: Le(D(i), ["enter", "native"]),
273
273
  clearable: ""
274
274
  }, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
275
275
  [D(Re)]
@@ -283,8 +283,8 @@ const Q = (e) => {
283
283
  /* NEED_PATCH */
284
284
  ), [
285
285
  [
286
- V,
287
- r.value,
286
+ U,
287
+ n.value,
288
288
  void 0,
289
289
  { lock: !0 }
290
290
  ]
@@ -297,25 +297,25 @@ const Q = (e) => {
297
297
  }
298
298
  }), Be = (e, t) => {
299
299
  const a = e.__vccOpts || e;
300
- for (const [n, u] of t)
301
- a[n] = u;
300
+ for (const [r, u] of t)
301
+ a[r] = u;
302
302
  return a;
303
- }, ga = /* @__PURE__ */ Be(va, [["__scopeId", "data-v-e88a8400"]]), ft = ({ BMap: e, map: t, marker: a, mapLoading: n, $autocomplete: u, searchResultList: l, innerInput: r, innerPoint: o, adCode: s, addressInfo: v }, b) => {
303
+ }, ga = /* @__PURE__ */ Be(va, [["__scopeId", "data-v-e88a8400"]]), ft = ({ BMap: e, map: t, marker: a, mapLoading: r, $autocomplete: u, searchResultList: l, innerInput: n, innerPoint: o, adCode: s, addressInfo: v }, b) => {
304
304
  const C = S();
305
305
  let M;
306
306
  const k = (g, p, w) => {
307
307
  C.value = p, w && (M = w);
308
- const L = document.createElement("script");
309
- L.src = `${location.protocol}//api.map.baidu.com/getscript?type=webgl&v=3.0&ak=${g}&services=&t=20200109192240`, L.onload = () => {
310
- $();
311
- }, document.body.append(L);
312
- }, $ = () => {
308
+ const j = document.createElement("script");
309
+ j.src = `${location.protocol}//api.map.baidu.com/getscript?type=webgl&v=3.0&ak=${g}&services=&t=20200109192240`, j.onload = () => {
310
+ L();
311
+ }, document.body.append(j);
312
+ }, L = () => {
313
313
  var p, w;
314
314
  e.value = window.BMapGL;
315
315
  try {
316
316
  t.value = new e.value.Map("map", ((p = C.value) == null ? void 0 : p.mapOpt) ?? {});
317
317
  } catch {
318
- n.value = !1, z.error(E("thirdPartyMapErrorRetry"));
318
+ r.value = !1, z.error(P("thirdPartyMapErrorRetry"));
319
319
  }
320
320
  const g = new e.value.NavigationControl({
321
321
  // @ts-ignore
@@ -323,22 +323,22 @@ const Q = (e) => {
323
323
  // @ts-ignore
324
324
  type: BMAP_NAVIGATION_CONTROL_ZOOM
325
325
  });
326
- t.value.addControl(g), t.value.enableScrollWheelZoom(!0), i(), (w = C.value) != null && w.clickStream || h(), n.value = !1, M && M();
326
+ t.value.addControl(g), t.value.enableScrollWheelZoom(!0), i(), (w = C.value) != null && w.clickStream || h(), r.value = !1, M && M();
327
327
  }, c = (g) => new Promise((p, w) => {
328
328
  new e.value.Geocoder().getPoint(g, (d) => {
329
- !d || JSON.stringify(d) == "{}" ? (z.error(E("thirdPartyMapErrorRetry")), w()) : (o.value[0] = d.lng, o.value[1] = d.lat, p(d));
329
+ !d || JSON.stringify(d) == "{}" ? (z.error(P("thirdPartyMapErrorRetry")), w()) : (o.value[0] = d.lng, o.value[1] = d.lat, p(d));
330
330
  });
331
331
  }), i = async () => {
332
- !r.value && !o.value.length && B(), r.value && o.value.length > 0 ? await A(o.value[0], o.value[1]) : r.value ? await c(r.value) : o.value.length > 0 && await A(o.value[0], o.value[1], !0), r.value && _(r.value, (g, p) => {
332
+ !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) => {
333
333
  if (p && p.length) {
334
334
  const w = p.find(
335
- (L) => L.value === r.value || L.info.name === r.value
335
+ (j) => j.value === n.value || j.info.name === n.value
336
336
  );
337
337
  w ? v.value = w.info : v.value = {
338
338
  province: "",
339
339
  city: "",
340
340
  address: "",
341
- name: r.value
341
+ name: n.value
342
342
  };
343
343
  }
344
344
  });
@@ -348,28 +348,28 @@ const Q = (e) => {
348
348
  const p = g.latlng.lng, w = g.latlng.lat;
349
349
  o.value = [p, w], A(p, w, !0);
350
350
  });
351
- }, A = (g, p, w = !1, L = "default") => new Promise((d, f) => {
351
+ }, A = (g, p, w = !1, j = "default") => new Promise((d, f) => {
352
352
  const y = new e.value.Geocoder(), x = new e.value.Point(g, p);
353
353
  y.getLocation(x, (m) => {
354
354
  if (w) {
355
- r.value = m.address;
356
- const { province: T = "", city: N = "", district: G = "" } = m.addressComponents;
355
+ n.value = m.address;
356
+ const { province: O = "", city: N = "", district: B = "" } = m.addressComponents;
357
357
  v.value = {
358
- province: T,
358
+ province: O,
359
359
  city: N,
360
- address: N + G,
361
- name: m.address.replace(T, "").replace(N, "").replace(G, "")
360
+ address: N + B,
361
+ name: m.address.replace(O, "").replace(N, "").replace(B, "")
362
362
  };
363
363
  }
364
- m && m.address ? (L == "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: r.value }), t.value.addOverlay(a.value), t.value.centerAndZoom(x, 16)), V(g, p), d(m.address)) : (z.error(E("thirdPartyMapErrorRetry")), f());
364
+ 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)) : (z.error(P("thirdPartyMapErrorRetry")), f());
365
365
  });
366
- }), B = () => {
366
+ }), R = () => {
367
367
  new e.value.LocalCity().get((p) => {
368
368
  const w = p.center;
369
- if (!p.center) return z.error(E("thirdPartyMapErrorRetry"));
369
+ if (!p.center) return z.error(P("thirdPartyMapErrorRetry"));
370
370
  a.value && t.value.clearOverlays();
371
- const L = new e.value.Point(w.lng, w.lat);
372
- t.value.centerAndZoom(L, 13);
371
+ const j = new e.value.Point(w.lng, w.lat);
372
+ t.value.centerAndZoom(j, 13);
373
373
  });
374
374
  }, _ = (g, p) => {
375
375
  if (u.value.activated = !0, l.value = [], !g) {
@@ -377,19 +377,19 @@ const Q = (e) => {
377
377
  return;
378
378
  }
379
379
  new e.value.LocalSearch(t.value, {
380
- onSearchComplete: (L) => {
380
+ onSearchComplete: (j) => {
381
381
  let d = [];
382
- for (let f = 0; f < L.getCurrentNumPois(); f++)
383
- d.push(L.getPoi(f));
382
+ for (let f = 0; f < j.getCurrentNumPois(); f++)
383
+ d.push(j.getPoi(f));
384
384
  if (!d.length) return p([]);
385
385
  d = d.map((f) => {
386
- const { address: y = "", title: x = "", province: m = "", city: T = "", point: N = {} } = f;
386
+ const { address: y = "", title: x = "", province: m = "", city: O = "", point: N = {} } = f;
387
387
  return {
388
388
  value: y == x ? y : y + x,
389
389
  point: N,
390
390
  info: {
391
391
  province: m,
392
- city: T,
392
+ city: O,
393
393
  address: y,
394
394
  name: x
395
395
  }
@@ -397,28 +397,28 @@ const Q = (e) => {
397
397
  }), l.value = d.length > 5 ? d.slice(0, 5) : d, p(l.value, d);
398
398
  }
399
399
  }).search(g);
400
- }, j = (g) => {
400
+ }, $ = (g) => {
401
401
  var p, w;
402
- r.value = g.value, v.value = g.info, A((p = g.point) == null ? void 0 : p.lng, (w = g.point) == null ? void 0 : w.lat);
403
- }, R = () => {
402
+ 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);
403
+ }, G = () => {
404
404
  var g;
405
- if (!l.value.length) return z.error(E("thirdPartyMapErrorRetry"));
406
- if (r.value = l.value[0].value, v.value = l.value[0].info, !((g = l.value[0]) != null && g.point))
407
- return z.error(E("thirdPartyMapErrorRetry"));
405
+ if (!l.value.length) return z.error(P("thirdPartyMapErrorRetry"));
406
+ if (n.value = l.value[0].value, v.value = l.value[0].info, !((g = l.value[0]) != null && g.point))
407
+ return z.error(P("thirdPartyMapErrorRetry"));
408
408
  o.value = [l.value[0].point.lng, l.value[0].point.lat], A(o.value[0], o.value[1]), u.value.activated = !1;
409
- }, V = async (g, p) => {
410
- const [w, L] = await ca().run({ longitude: g, latitude: p });
411
- w || (s.value = L.areaCode);
409
+ }, U = async (g, p) => {
410
+ const [w, j] = await ca().run({ longitude: g, latitude: p });
411
+ w || (s.value = j.areaCode);
412
412
  };
413
413
  return {
414
414
  getLocationByInputSearch: _,
415
- handleSelectAddress: j,
416
- getLocationParse: R,
415
+ handleSelectAddress: $,
416
+ getLocationParse: G,
417
417
  getMapInfo: () => ({
418
418
  longitude: o.value[0],
419
419
  latitude: o.value[1],
420
420
  adCode: s.value,
421
- address: r.value,
421
+ address: n.value,
422
422
  addressInfo: v.value
423
423
  }),
424
424
  loadJavascript: k
@@ -436,15 +436,15 @@ const Q = (e) => {
436
436
  dev: { type: Boolean }
437
437
  },
438
438
  setup(e, { expose: t }) {
439
- const a = e, n = I(null), u = I(null), l = I(null), r = S(!0), o = S(null), s = S([]), v = Se(() => ({
439
+ const a = e, r = I(null), u = I(null), l = I(null), n = S(!0), o = S(null), s = S([]), v = Se(() => ({
440
440
  width: a.width ? Q(a.width) : "100%",
441
441
  height: a.height ? Q(a.height) : "100%"
442
- })), b = S(""), C = S([]), M = S(""), k = S(), { getLocationByInputSearch: $, handleSelectAddress: c, getLocationParse: i, getMapInfo: h, loadJavascript: A } = ft(
442
+ })), b = S(""), C = S([]), M = S(""), k = S(), { getLocationByInputSearch: L, handleSelectAddress: c, getLocationParse: i, getMapInfo: h, loadJavascript: A } = ft(
443
443
  {
444
- BMap: n,
444
+ BMap: r,
445
445
  map: u,
446
446
  marker: l,
447
- mapLoading: r,
447
+ mapLoading: n,
448
448
  $autocomplete: o,
449
449
  searchResultList: s,
450
450
  innerInput: b,
@@ -452,40 +452,40 @@ const Q = (e) => {
452
452
  adCode: M,
453
453
  addressInfo: k
454
454
  }
455
- ), B = async () => {
455
+ ), R = async () => {
456
456
  if (a.akValue) return a.akValue;
457
- const [_, j] = await Ge("baidu");
458
- return _ ? (z.error(E("获取地图配置信息失败")), "") : !_ && !j ? (z.error(E("暂未配置地图")), "") : j.akVal;
457
+ const [_, $] = await Ge("baidu");
458
+ return _ ? (z.error(P("获取地图配置信息失败")), "") : !_ && !$ ? (z.error(P("暂未配置地图")), "") : $.akVal;
459
459
  };
460
460
  return Oe(async () => {
461
461
  a.defaultLongitude && a.defaultLatitude && (C.value = [a.defaultLongitude, a.defaultLatitude]), b.value = a.defaultAddress ?? "";
462
- const _ = await B();
462
+ const _ = await R();
463
463
  A(_);
464
464
  }), t({
465
465
  // 获取经纬度、地址、行政区划信息
466
466
  getMapInfo: h
467
- }), (_, j) => {
468
- const R = Pe, V = ke;
469
- return Te(), je(
467
+ }), (_, $) => {
468
+ const G = Pe, U = ke;
469
+ return Te(), $e(
470
470
  "div",
471
471
  {
472
472
  class: "das-map",
473
- style: Le(v.value)
473
+ style: je(v.value)
474
474
  },
475
475
  [
476
476
  W("div", pa, [
477
- Z(de(R, {
477
+ Z(de(G, {
478
478
  ref_key: "$autocomplete",
479
479
  ref: o,
480
480
  modelValue: b.value,
481
- "onUpdate:modelValue": j[0] || (j[0] = (O) => b.value = O),
481
+ "onUpdate:modelValue": $[0] || ($[0] = (T) => b.value = T),
482
482
  modelModifiers: { trim: !0 },
483
- "fetch-suggestions": D($),
484
- placeholder: D(E)("请输入位置"),
483
+ "fetch-suggestions": D(L),
484
+ placeholder: D(P)("请输入位置"),
485
485
  style: { width: "100%" },
486
486
  "trigger-on-focus": !1,
487
487
  onSelect: D(c),
488
- onKeyup: $e(D(i), ["enter", "native"]),
488
+ onKeyup: Le(D(i), ["enter", "native"]),
489
489
  clearable: ""
490
490
  }, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
491
491
  [D(Re)]
@@ -499,8 +499,8 @@ const Q = (e) => {
499
499
  /* NEED_PATCH */
500
500
  ), [
501
501
  [
502
- V,
503
- r.value,
502
+ U,
503
+ n.value,
504
504
  void 0,
505
505
  { lock: !0 }
506
506
  ]
@@ -529,8 +529,8 @@ function Ma(e) {
529
529
  var t = this.__data__, a = pe(t, e);
530
530
  if (a < 0)
531
531
  return !1;
532
- var n = t.length - 1;
533
- return a == n ? t.pop() : wa.call(t, a, 1), --this.size, !0;
532
+ var r = t.length - 1;
533
+ return a == r ? t.pop() : wa.call(t, a, 1), --this.size, !0;
534
534
  }
535
535
  function xa(e) {
536
536
  var t = this.__data__, a = pe(t, e);
@@ -540,14 +540,14 @@ function Ca(e) {
540
540
  return pe(this.__data__, e) > -1;
541
541
  }
542
542
  function Aa(e, t) {
543
- var a = this.__data__, n = pe(a, e);
544
- return n < 0 ? (++this.size, a.push([e, t])) : a[n][1] = t, this;
543
+ var a = this.__data__, r = pe(a, e);
544
+ return r < 0 ? (++this.size, a.push([e, t])) : a[r][1] = t, this;
545
545
  }
546
546
  function H(e) {
547
547
  var t = -1, a = e == null ? 0 : e.length;
548
548
  for (this.clear(); ++t < a; ) {
549
- var n = e[t];
550
- this.set(n[0], n[1]);
549
+ var r = e[t];
550
+ this.set(r[0], r[1]);
551
551
  }
552
552
  }
553
553
  H.prototype.clear = ba;
@@ -565,19 +565,19 @@ function Oa(e) {
565
565
  function Ta(e) {
566
566
  return this.__data__.get(e);
567
567
  }
568
- function ja(e) {
568
+ function $a(e) {
569
569
  return this.__data__.has(e);
570
570
  }
571
- var vt = typeof global == "object" && global && global.Object === Object && global, La = typeof self == "object" && self && self.Object === Object && self, te = vt || La || Function("return this")(), ee = te.Symbol, gt = Object.prototype, $a = gt.hasOwnProperty, Ea = gt.toString, ue = ee ? ee.toStringTag : void 0;
571
+ 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;
572
572
  function Pa(e) {
573
- var t = $a.call(e, ue), a = e[ue];
573
+ var t = La.call(e, ue), a = e[ue];
574
574
  try {
575
575
  e[ue] = void 0;
576
- var n = !0;
576
+ var r = !0;
577
577
  } catch {
578
578
  }
579
579
  var u = Ea.call(e);
580
- return n && (t ? e[ue] = a : delete e[ue]), u;
580
+ return r && (t ? e[ue] = a : delete e[ue]), u;
581
581
  }
582
582
  var ka = Object.prototype, Ra = ka.toString;
583
583
  function Ga(e) {
@@ -591,12 +591,12 @@ function Y(e) {
591
591
  var t = typeof e;
592
592
  return e != null && (t == "object" || t == "function");
593
593
  }
594
- var za = "[object AsyncFunction]", Na = "[object Function]", Va = "[object GeneratorFunction]", Ua = "[object Proxy]";
594
+ var za = "[object AsyncFunction]", Na = "[object Function]", Ua = "[object GeneratorFunction]", Va = "[object Proxy]";
595
595
  function De(e) {
596
596
  if (!Y(e))
597
597
  return !1;
598
598
  var t = se(e);
599
- return t == Na || t == Va || t == za || t == Ua;
599
+ return t == Na || t == Ua || t == za || t == Va;
600
600
  }
601
601
  var me = te["__core-js_shared__"], Ie = function() {
602
602
  var e = /[^.]+$/.exec(me && me.keys && me.keys.IE_PROTO || "");
@@ -665,8 +665,8 @@ function vo(e, t) {
665
665
  function q(e) {
666
666
  var t = -1, a = e == null ? 0 : e.length;
667
667
  for (this.clear(); ++t < a; ) {
668
- var n = e[t];
669
- this.set(n[0], n[1]);
668
+ var r = e[t];
669
+ this.set(r[0], r[1]);
670
670
  }
671
671
  }
672
672
  q.prototype.clear = ao;
@@ -700,14 +700,14 @@ function mo(e) {
700
700
  return he(this, e).has(e);
701
701
  }
702
702
  function bo(e, t) {
703
- var a = he(this, e), n = a.size;
704
- return a.set(e, t), this.size += a.size == n ? 0 : 1, this;
703
+ var a = he(this, e), r = a.size;
704
+ return a.set(e, t), this.size += a.size == r ? 0 : 1, this;
705
705
  }
706
706
  function ae(e) {
707
707
  var t = -1, a = e == null ? 0 : e.length;
708
708
  for (this.clear(); ++t < a; ) {
709
- var n = e[t];
710
- this.set(n[0], n[1]);
709
+ var r = e[t];
710
+ this.set(r[0], r[1]);
711
711
  }
712
712
  }
713
713
  ae.prototype.clear = go;
@@ -719,10 +719,10 @@ var _o = 200;
719
719
  function wo(e, t) {
720
720
  var a = this.__data__;
721
721
  if (a instanceof H) {
722
- var n = a.__data__;
723
- if (!pt || n.length < _o - 1)
724
- return n.push([e, t]), this.size = ++a.size, this;
725
- a = this.__data__ = new ae(n);
722
+ var r = a.__data__;
723
+ if (!pt || r.length < _o - 1)
724
+ return r.push([e, t]), this.size = ++a.size, this;
725
+ a = this.__data__ = new ae(r);
726
726
  }
727
727
  return a.set(e, t), this.size = a.size, this;
728
728
  }
@@ -733,7 +733,7 @@ function oe(e) {
733
733
  oe.prototype.clear = Sa;
734
734
  oe.prototype.delete = Oa;
735
735
  oe.prototype.get = Ta;
736
- oe.prototype.has = ja;
736
+ oe.prototype.has = $a;
737
737
  oe.prototype.set = wo;
738
738
  var fe = function() {
739
739
  try {
@@ -754,9 +754,9 @@ function _e(e, t, a) {
754
754
  (a !== void 0 && !ge(e[t], a) || a === void 0 && !(t in e)) && Ne(e, t, a);
755
755
  }
756
756
  function Mo(e) {
757
- return function(t, a, n) {
758
- for (var u = -1, l = Object(t), r = n(t), o = r.length; o--; ) {
759
- var s = r[++u];
757
+ return function(t, a, r) {
758
+ for (var u = -1, l = Object(t), n = r(t), o = n.length; o--; ) {
759
+ var s = n[++u];
760
760
  if (a(l[s], s, l) === !1)
761
761
  break;
762
762
  }
@@ -778,12 +778,12 @@ function Oo(e, t) {
778
778
  return new e.constructor(a, e.byteOffset, e.length);
779
779
  }
780
780
  function To(e, t) {
781
- var a = -1, n = e.length;
782
- for (t || (t = Array(n)); ++a < n; )
781
+ var a = -1, r = e.length;
782
+ for (t || (t = Array(r)); ++a < r; )
783
783
  t[a] = e[a];
784
784
  return t;
785
785
  }
786
- var We = Object.create, jo = /* @__PURE__ */ function() {
786
+ var We = Object.create, $o = /* @__PURE__ */ function() {
787
787
  function e() {
788
788
  }
789
789
  return function(t) {
@@ -796,18 +796,18 @@ var We = Object.create, jo = /* @__PURE__ */ function() {
796
796
  return e.prototype = void 0, a;
797
797
  };
798
798
  }();
799
- function Lo(e, t) {
799
+ function jo(e, t) {
800
800
  return function(a) {
801
801
  return e(t(a));
802
802
  };
803
803
  }
804
- var yt = Lo(Object.getPrototypeOf, Object), $o = Object.prototype;
804
+ var yt = jo(Object.getPrototypeOf, Object), Lo = Object.prototype;
805
805
  function mt(e) {
806
- var t = e && e.constructor, a = typeof t == "function" && t.prototype || $o;
806
+ var t = e && e.constructor, a = typeof t == "function" && t.prototype || Lo;
807
807
  return e === a;
808
808
  }
809
809
  function Eo(e) {
810
- return typeof e.constructor == "function" && !mt(e) ? jo(yt(e)) : {};
810
+ return typeof e.constructor == "function" && !mt(e) ? $o(yt(e)) : {};
811
811
  }
812
812
  function re(e) {
813
813
  return e != null && typeof e == "object";
@@ -824,18 +824,18 @@ var bt = Object.prototype, ko = bt.hasOwnProperty, Ro = bt.propertyIsEnumerable,
824
824
  function _t(e) {
825
825
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Go;
826
826
  }
827
- function Ve(e) {
827
+ function Ue(e) {
828
828
  return e != null && _t(e.length) && !De(e);
829
829
  }
830
830
  function Bo(e) {
831
- return re(e) && Ve(e);
831
+ return re(e) && Ue(e);
832
832
  }
833
833
  function Do() {
834
834
  return !1;
835
835
  }
836
- var wt = typeof exports == "object" && exports && !exports.nodeType && exports, Ye = wt && typeof module == "object" && module && !module.nodeType && module, zo = Ye && Ye.exports === wt, Xe = zo ? te.Buffer : void 0, No = Xe ? Xe.isBuffer : void 0, Mt = No || Do, Vo = "[object Object]", Uo = Function.prototype, Fo = Object.prototype, xt = Uo.toString, Ko = Fo.hasOwnProperty, Io = xt.call(Object);
836
+ var wt = typeof exports == "object" && exports && !exports.nodeType && exports, Ye = wt && typeof module == "object" && module && !module.nodeType && module, zo = Ye && Ye.exports === wt, Xe = zo ? te.Buffer : void 0, No = Xe ? Xe.isBuffer : void 0, Mt = No || Do, Uo = "[object Object]", Vo = Function.prototype, Fo = Object.prototype, xt = Vo.toString, Ko = Fo.hasOwnProperty, Io = xt.call(Object);
837
837
  function Ho(e) {
838
- if (!re(e) || se(e) != Vo)
838
+ if (!re(e) || se(e) != Uo)
839
839
  return !1;
840
840
  var t = yt(e);
841
841
  if (t === null)
@@ -843,11 +843,11 @@ function Ho(e) {
843
843
  var a = Ko.call(t, "constructor") && t.constructor;
844
844
  return typeof a == "function" && a instanceof a && xt.call(a) == Io;
845
845
  }
846
- 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]", P = {};
847
- P[ir] = P[cr] = P[sr] = P[dr] = P[fr] = P[vr] = P[gr] = P[pr] = P[hr] = !0;
848
- 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;
846
+ 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 = {};
847
+ E[ir] = E[cr] = E[sr] = E[dr] = E[fr] = E[vr] = E[gr] = E[pr] = E[hr] = !0;
848
+ 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;
849
849
  function yr(e) {
850
- return re(e) && _t(e.length) && !!P[se(e)];
850
+ return re(e) && _t(e.length) && !!E[se(e)];
851
851
  }
852
852
  function mr(e) {
853
853
  return function(t) {
@@ -867,22 +867,22 @@ function Me(e, t) {
867
867
  }
868
868
  var _r = Object.prototype, wr = _r.hasOwnProperty;
869
869
  function Mr(e, t, a) {
870
- var n = e[t];
871
- (!(wr.call(e, t) && ge(n, a)) || a === void 0 && !(t in e)) && Ne(e, t, a);
870
+ var r = e[t];
871
+ (!(wr.call(e, t) && ge(r, a)) || a === void 0 && !(t in e)) && Ne(e, t, a);
872
872
  }
873
- function xr(e, t, a, n) {
873
+ function xr(e, t, a, r) {
874
874
  var u = !a;
875
875
  a || (a = {});
876
- for (var l = -1, r = t.length; ++l < r; ) {
876
+ for (var l = -1, n = t.length; ++l < n; ) {
877
877
  var o = t[l], s = void 0;
878
878
  s === void 0 && (s = e[o]), u ? Ne(a, o, s) : Mr(a, o, s);
879
879
  }
880
880
  return a;
881
881
  }
882
882
  function Cr(e, t) {
883
- for (var a = -1, n = Array(e); ++a < e; )
884
- n[a] = t(a);
885
- return n;
883
+ for (var a = -1, r = Array(e); ++a < e; )
884
+ r[a] = t(a);
885
+ return r;
886
886
  }
887
887
  var Ar = 9007199254740991, Sr = /^(?:0|[1-9]\d*)$/;
888
888
  function St(e, t) {
@@ -890,9 +890,9 @@ function St(e, t) {
890
890
  return t = t ?? Ar, !!t && (a == "number" || a != "symbol" && Sr.test(e)) && e > -1 && e % 1 == 0 && e < t;
891
891
  }
892
892
  function Or(e, t) {
893
- var a = ve(e), n = !a && we(e), u = !a && !n && Mt(e), l = !a && !n && !u && At(e), r = a || n || u || l, o = r ? Cr(e.length, String) : [], s = o.length;
893
+ 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;
894
894
  for (var v in e)
895
- r && // Safari 9 has enumerable `arguments.length` in strict mode.
895
+ n && // Safari 9 has enumerable `arguments.length` in strict mode.
896
896
  (v == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
897
897
  u && (v == "offset" || v == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
898
898
  l && (v == "buffer" || v == "byteLength" || v == "byteOffset") || // Skip index properties.
@@ -906,45 +906,45 @@ function Tr(e) {
906
906
  t.push(a);
907
907
  return t;
908
908
  }
909
- var jr = Object.prototype, Lr = jr.hasOwnProperty;
910
- function $r(e) {
909
+ var $r = Object.prototype, jr = $r.hasOwnProperty;
910
+ function Lr(e) {
911
911
  if (!Y(e))
912
912
  return Tr(e);
913
913
  var t = mt(e), a = [];
914
- for (var n in e)
915
- n == "constructor" && (t || !Lr.call(e, n)) || a.push(n);
914
+ for (var r in e)
915
+ r == "constructor" && (t || !jr.call(e, r)) || a.push(r);
916
916
  return a;
917
917
  }
918
918
  function Ot(e) {
919
- return Ve(e) ? Or(e) : $r(e);
919
+ return Ue(e) ? Or(e) : Lr(e);
920
920
  }
921
921
  function Er(e) {
922
922
  return xr(e, Ot(e));
923
923
  }
924
- function Pr(e, t, a, n, u, l, r) {
925
- var o = Me(e, a), s = Me(t, a), v = r.get(s);
924
+ function Pr(e, t, a, r, u, l, n) {
925
+ var o = Me(e, a), s = Me(t, a), v = n.get(s);
926
926
  if (v) {
927
927
  _e(e, a, v);
928
928
  return;
929
929
  }
930
- var b = l ? l(o, s, a + "", e, t, r) : void 0, C = b === void 0;
930
+ var b = l ? l(o, s, a + "", e, t, n) : void 0, C = b === void 0;
931
931
  if (C) {
932
- var M = ve(s), k = !M && Mt(s), $ = !M && !k && At(s);
933
- b = s, M || k || $ ? ve(o) ? b = o : Bo(o) ? b = To(o) : k ? (C = !1, b = Ao(s)) : $ ? (C = !1, b = Oo(s)) : b = [] : Ho(s) || we(s) ? (b = o, we(o) ? b = Er(o) : (!Y(o) || De(o)) && (b = Eo(s))) : C = !1;
932
+ var M = ve(s), k = !M && Mt(s), L = !M && !k && At(s);
933
+ b = s, M || k || L ? ve(o) ? b = o : Bo(o) ? b = To(o) : k ? (C = !1, b = Ao(s)) : L ? (C = !1, b = Oo(s)) : b = [] : Ho(s) || we(s) ? (b = o, we(o) ? b = Er(o) : (!Y(o) || De(o)) && (b = Eo(s))) : C = !1;
934
934
  }
935
- C && (r.set(s, b), u(b, s, n, l, r), r.delete(s)), _e(e, a, b);
935
+ C && (n.set(s, b), u(b, s, r, l, n), n.delete(s)), _e(e, a, b);
936
936
  }
937
- function Tt(e, t, a, n, u) {
938
- e !== t && xo(t, function(l, r) {
937
+ function Tt(e, t, a, r, u) {
938
+ e !== t && xo(t, function(l, n) {
939
939
  if (u || (u = new oe()), Y(l))
940
- Pr(e, t, r, a, Tt, n, u);
940
+ Pr(e, t, n, a, Tt, r, u);
941
941
  else {
942
- var o = n ? n(Me(e, r), l, r + "", e, t, u) : void 0;
943
- o === void 0 && (o = l), _e(e, r, o);
942
+ var o = r ? r(Me(e, n), l, n + "", e, t, u) : void 0;
943
+ o === void 0 && (o = l), _e(e, n, o);
944
944
  }
945
945
  }, Ot);
946
946
  }
947
- function jt(e) {
947
+ function $t(e) {
948
948
  return e;
949
949
  }
950
950
  function kr(e, t, a) {
@@ -963,12 +963,12 @@ function kr(e, t, a) {
963
963
  var tt = Math.max;
964
964
  function Rr(e, t, a) {
965
965
  return t = tt(t === void 0 ? e.length - 1 : t, 0), function() {
966
- for (var n = arguments, u = -1, l = tt(n.length - t, 0), r = Array(l); ++u < l; )
967
- r[u] = n[t + u];
966
+ for (var r = arguments, u = -1, l = tt(r.length - t, 0), n = Array(l); ++u < l; )
967
+ n[u] = r[t + u];
968
968
  u = -1;
969
969
  for (var o = Array(t + 1); ++u < t; )
970
- o[u] = n[u];
971
- return o[t] = a(r), kr(e, this, o);
970
+ o[u] = r[u];
971
+ return o[t] = a(n), kr(e, this, o);
972
972
  };
973
973
  }
974
974
  function Gr(e) {
@@ -983,12 +983,12 @@ var Br = fe ? function(e, t) {
983
983
  value: Gr(t),
984
984
  writable: !0
985
985
  });
986
- } : jt, Dr = 800, zr = 16, Nr = Date.now;
987
- function Vr(e) {
986
+ } : $t, Dr = 800, zr = 16, Nr = Date.now;
987
+ function Ur(e) {
988
988
  var t = 0, a = 0;
989
989
  return function() {
990
- var n = Nr(), u = zr - (n - a);
991
- if (a = n, u > 0) {
990
+ var r = Nr(), u = zr - (r - a);
991
+ if (a = r, u > 0) {
992
992
  if (++t >= Dr)
993
993
  return arguments[0];
994
994
  } else
@@ -996,63 +996,63 @@ function Vr(e) {
996
996
  return e.apply(void 0, arguments);
997
997
  };
998
998
  }
999
- var Ur = Vr(Br);
999
+ var Vr = Ur(Br);
1000
1000
  function Fr(e, t) {
1001
- return Ur(Rr(e, t, jt), e + "");
1001
+ return Vr(Rr(e, t, $t), e + "");
1002
1002
  }
1003
1003
  function Kr(e, t, a) {
1004
1004
  if (!Y(a))
1005
1005
  return !1;
1006
- var n = typeof t;
1007
- return (n == "number" ? Ve(a) && St(t, a.length) : n == "string" && t in a) ? ge(a[t], e) : !1;
1006
+ var r = typeof t;
1007
+ return (r == "number" ? Ue(a) && St(t, a.length) : r == "string" && t in a) ? ge(a[t], e) : !1;
1008
1008
  }
1009
1009
  function Ir(e) {
1010
1010
  return Fr(function(t, a) {
1011
- var n = -1, u = a.length, l = u > 1 ? a[u - 1] : void 0, r = u > 2 ? a[2] : void 0;
1012
- for (l = e.length > 3 && typeof l == "function" ? (u--, l) : void 0, r && Kr(a[0], a[1], r) && (l = u < 3 ? void 0 : l, u = 1), t = Object(t); ++n < u; ) {
1013
- var o = a[n];
1014
- o && e(t, o, n, l);
1011
+ var r = -1, u = a.length, l = u > 1 ? a[u - 1] : void 0, n = u > 2 ? a[2] : void 0;
1012
+ for (l = e.length > 3 && typeof l == "function" ? (u--, l) : void 0, n && Kr(a[0], a[1], n) && (l = u < 3 ? void 0 : l, u = 1), t = Object(t); ++r < u; ) {
1013
+ var o = a[r];
1014
+ o && e(t, o, r, l);
1015
1015
  }
1016
1016
  return t;
1017
1017
  });
1018
1018
  }
1019
- var Hr = Ir(function(e, t, a, n) {
1020
- Tt(e, t, a, n);
1019
+ var Hr = Ir(function(e, t, a, r) {
1020
+ Tt(e, t, a, r);
1021
1021
  }), Jr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1022
1022
  function Zr(e) {
1023
1023
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1024
1024
  }
1025
- var Lt = { exports: {} };
1025
+ var jt = { exports: {} };
1026
1026
  (function(e) {
1027
1027
  (function(t, a) {
1028
1028
  e.exports ? e.exports = a() : t.coordtransform = a();
1029
1029
  })(Jr, function() {
1030
- var t = 52.35987755982988, a = 3.141592653589793, n = 6378245, u = 0.006693421622965943, l = function(c, i) {
1031
- var c = +c, i = +i, h = c - 65e-4, A = i - 6e-3, B = Math.sqrt(h * h + A * A) - 2e-5 * Math.sin(A * t), _ = Math.atan2(A, h) - 3e-6 * Math.cos(h * t), j = B * Math.cos(_), R = B * Math.sin(_);
1032
- return [j, R];
1033
- }, r = function(i, c) {
1034
- 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), B = h * Math.cos(A) + 65e-4, _ = h * Math.sin(A) + 6e-3;
1035
- return [B, _];
1030
+ var t = 52.35987755982988, a = 3.141592653589793, r = 6378245, u = 0.006693421622965943, l = function(c, i) {
1031
+ 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(_);
1032
+ return [$, G];
1033
+ }, n = function(i, c) {
1034
+ 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;
1035
+ return [R, _];
1036
1036
  }, o = function(i, c) {
1037
1037
  var c = +c, i = +i;
1038
1038
  if (C(i, c))
1039
1039
  return [i, c];
1040
- var h = v(i - 105, c - 35), A = b(i - 105, c - 35), B = c / 180 * a, _ = Math.sin(B);
1040
+ var h = v(i - 105, c - 35), A = b(i - 105, c - 35), R = c / 180 * a, _ = Math.sin(R);
1041
1041
  _ = 1 - u * _ * _;
1042
- var j = Math.sqrt(_);
1043
- h = h * 180 / (n * (1 - u) / (_ * j) * a), A = A * 180 / (n / j * Math.cos(B) * a);
1044
- var R = c + h, V = i + A;
1045
- return [V, R];
1042
+ var $ = Math.sqrt(_);
1043
+ h = h * 180 / (r * (1 - u) / (_ * $) * a), A = A * 180 / (r / $ * Math.cos(R) * a);
1044
+ var G = c + h, U = i + A;
1045
+ return [U, G];
1046
1046
  }, s = function(i, c) {
1047
1047
  var c = +c, i = +i;
1048
1048
  if (C(i, c))
1049
1049
  return [i, c];
1050
- var h = v(i - 105, c - 35), A = b(i - 105, c - 35), B = c / 180 * a, _ = Math.sin(B);
1050
+ var h = v(i - 105, c - 35), A = b(i - 105, c - 35), R = c / 180 * a, _ = Math.sin(R);
1051
1051
  _ = 1 - u * _ * _;
1052
- var j = Math.sqrt(_);
1053
- h = h * 180 / (n * (1 - u) / (_ * j) * a), A = A * 180 / (n / j * Math.cos(B) * a);
1054
- var R = c + h, V = i + A;
1055
- return [i * 2 - V, c * 2 - R];
1052
+ var $ = Math.sqrt(_);
1053
+ h = h * 180 / (r * (1 - u) / (_ * $) * a), A = A * 180 / (r / $ * Math.cos(R) * a);
1054
+ var G = c + h, U = i + A;
1055
+ return [i * 2 - U, c * 2 - G];
1056
1056
  }, v = function(i, c) {
1057
1057
  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));
1058
1058
  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;
@@ -1065,25 +1065,25 @@ var Lt = { exports: {} };
1065
1065
  };
1066
1066
  return {
1067
1067
  bd09togcj02: l,
1068
- gcj02tobd09: r,
1068
+ gcj02tobd09: n,
1069
1069
  wgs84togcj02: o,
1070
1070
  gcj02towgs84: s
1071
1071
  };
1072
1072
  });
1073
- })(Lt);
1074
- var Wr = Lt.exports;
1075
- const $t = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: n, map: u }) => {
1076
- const l = (r, o) => {
1073
+ })(jt);
1074
+ var Wr = jt.exports;
1075
+ const Lt = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: r, map: u }) => {
1076
+ const l = (n, o) => {
1077
1077
  const s = document.createElement("div");
1078
1078
  s.style.cursor = "pointer";
1079
- const v = Qt(r, o);
1079
+ const v = Qt(n, o);
1080
1080
  return ea(v, s), s;
1081
1081
  };
1082
- e.addCustomComponent = (r) => {
1083
- !Array.isArray(r) || (r == null ? void 0 : r.length) === 0 || r.forEach((o) => {
1084
- const { component: s, componentProps: v, lng: b, lat: C, markerOptions: M = {} } = o, k = typeof v == "function" ? v() : v, $ = typeof s == "function" ? s() : s, c = () => l($, k);
1082
+ e.addCustomComponent = (n) => {
1083
+ !Array.isArray(n) || (n == null ? void 0 : n.length) === 0 || n.forEach((o) => {
1084
+ 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);
1085
1085
  if (a.value === "baidu") {
1086
- const i = $t.gcj02tobd09(b, C), h = new n.value.CustomOverlay(c, {
1086
+ const i = Lt.gcj02tobd09(b, C), h = new r.value.CustomOverlay(c, {
1087
1087
  point: { lng: i[0], lat: i[1] },
1088
1088
  ...M
1089
1089
  });
@@ -1092,8 +1092,8 @@ const $t = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: n, map: u }) =>
1092
1092
  });
1093
1093
  }
1094
1094
  if (a.value === "gaode") {
1095
- const i = l($, k), h = new n.value.Marker({ content: i, position: [b, C], ...M });
1096
- u.value.add(h), n.value.event.addListener(h, "click", function(A) {
1095
+ const i = l(L, k), h = new r.value.Marker({ content: i, position: [b, C], ...M });
1096
+ u.value.add(h), r.value.event.addListener(h, "click", function(A) {
1097
1097
  t("click-custom-component", o, A);
1098
1098
  });
1099
1099
  }
@@ -1102,14 +1102,14 @@ const $t = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: n, map: u }) =>
1102
1102
  }, Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1103
1103
  __proto__: null,
1104
1104
  default: qr
1105
- }, Symbol.toStringTag, { value: "Module" })), Xr = (e, t, { type: a, MapGL: n, map: u, innerPoint: l, innerInput: r, adCode: o, addressInfo: s }) => {
1105
+ }, Symbol.toStringTag, { value: "Module" })), Xr = (e, t, { type: a, MapGL: r, map: u, innerPoint: l, innerInput: n, adCode: o, addressInfo: s }) => {
1106
1106
  e.getMapInfo = () => {
1107
1107
  if (a.value === "baidu") {
1108
- const v = $t.bd09togcj02(l.value[0], l.value[1]);
1108
+ const v = Lt.bd09togcj02(l.value[0], l.value[1]);
1109
1109
  return {
1110
1110
  longitude: v[0],
1111
1111
  latitude: v[1],
1112
- address: r.value,
1112
+ address: n.value,
1113
1113
  adCode: o.value,
1114
1114
  addressInfo: s.value
1115
1115
  };
@@ -1118,7 +1118,7 @@ const $t = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: n, map: u }) =>
1118
1118
  return {
1119
1119
  longitude: l.value[0],
1120
1120
  latitude: l.value[1],
1121
- address: r.value,
1121
+ address: n.value,
1122
1122
  adCode: o.value,
1123
1123
  addressInfo: s.value
1124
1124
  };
@@ -1126,7 +1126,7 @@ const $t = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: n, map: u }) =>
1126
1126
  return {
1127
1127
  longitude: l.value[0],
1128
1128
  latitude: l.value[1],
1129
- address: r.value,
1129
+ address: n.value,
1130
1130
  adCode: o.value,
1131
1131
  addressInfo: s.value
1132
1132
  };
@@ -1136,7 +1136,7 @@ const $t = /* @__PURE__ */ Zr(Wr), qr = (e, t, { type: a, MapGL: n, map: u }) =>
1136
1136
  default: Xr
1137
1137
  }, Symbol.toStringTag, { value: "Module" }));
1138
1138
  function en(e, t) {
1139
- for (var a = -1, n = e == null ? 0 : e.length, u = Array(n); ++a < n; )
1139
+ for (var a = -1, r = e == null ? 0 : e.length, u = Array(r); ++a < r; )
1140
1140
  u[a] = t(e[a], a, e);
1141
1141
  return u;
1142
1142
  }
@@ -1159,15 +1159,15 @@ function ye(e) {
1159
1159
  return e == null ? "" : Et(e);
1160
1160
  }
1161
1161
  function rn(e, t, a) {
1162
- var n = -1, u = e.length;
1162
+ var r = -1, u = e.length;
1163
1163
  t < 0 && (t = -t > u ? 0 : u + t), a = a > u ? u : a, a < 0 && (a += u), u = t > a ? 0 : a - t >>> 0, t >>>= 0;
1164
- for (var l = Array(u); ++n < u; )
1165
- l[n] = e[n + t];
1164
+ for (var l = Array(u); ++r < u; )
1165
+ l[r] = e[r + t];
1166
1166
  return l;
1167
1167
  }
1168
1168
  function nn(e, t, a) {
1169
- var n = e.length;
1170
- return a = a === void 0 ? n : a, !t && a >= n ? e : rn(e, t, a);
1169
+ var r = e.length;
1170
+ return a = a === void 0 ? r : a, !t && a >= r ? e : rn(e, t, a);
1171
1171
  }
1172
1172
  var ln = "\\ud800-\\udfff", un = "\\u0300-\\u036f", cn = "\\ufe20-\\ufe2f", sn = "\\u20d0-\\u20ff", dn = un + cn + sn, fn = "\\ufe0e\\ufe0f", vn = "\\u200d", gn = RegExp("[" + vn + ln + dn + fn + "]");
1173
1173
  function Pt(e) {
@@ -1180,21 +1180,21 @@ var kt = "\\ud800-\\udfff", hn = "\\u0300-\\u036f", yn = "\\ufe20-\\ufe2f", mn =
1180
1180
  function Tn(e) {
1181
1181
  return e.match(On) || [];
1182
1182
  }
1183
- function jn(e) {
1183
+ function $n(e) {
1184
1184
  return Pt(e) ? Tn(e) : pn(e);
1185
1185
  }
1186
- function Ln(e) {
1186
+ function jn(e) {
1187
1187
  return function(t) {
1188
1188
  t = ye(t);
1189
- var a = Pt(t) ? jn(t) : void 0, n = a ? a[0] : t.charAt(0), u = a ? nn(a, 1).join("") : t.slice(1);
1190
- return n[e]() + u;
1189
+ var a = Pt(t) ? $n(t) : void 0, r = a ? a[0] : t.charAt(0), u = a ? nn(a, 1).join("") : t.slice(1);
1190
+ return r[e]() + u;
1191
1191
  };
1192
1192
  }
1193
- var $n = Ln("toUpperCase");
1193
+ var Ln = jn("toUpperCase");
1194
1194
  function En(e) {
1195
- return $n(ye(e).toLowerCase());
1195
+ return Ln(ye(e).toLowerCase());
1196
1196
  }
1197
- function Pn(e, t, a, n) {
1197
+ function Pn(e, t, a, r) {
1198
1198
  for (var u = -1, l = e == null ? 0 : e.length; ++u < l; )
1199
1199
  a = t(a, e[u], u, e);
1200
1200
  return a;
@@ -1397,7 +1397,7 @@ var Rn = {
1397
1397
  œ: "oe",
1398
1398
  ʼn: "'n",
1399
1399
  ſ: "s"
1400
- }, Gn = kn(Rn), Bn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Dn = "\\u0300-\\u036f", zn = "\\ufe20-\\ufe2f", Nn = "\\u20d0-\\u20ff", Vn = Dn + zn + Nn, Un = "[" + Vn + "]", Fn = RegExp(Un, "g");
1400
+ }, Gn = kn(Rn), Bn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Dn = "\\u0300-\\u036f", zn = "\\ufe20-\\ufe2f", Nn = "\\u20d0-\\u20ff", Un = Dn + zn + Nn, Vn = "[" + Un + "]", Fn = RegExp(Vn, "g");
1401
1401
  function Kn(e) {
1402
1402
  return e = ye(e), e && e.replace(Bn, Gn).replace(Fn, "");
1403
1403
  }
@@ -1409,7 +1409,7 @@ var Jn = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
1409
1409
  function Zn(e) {
1410
1410
  return Jn.test(e);
1411
1411
  }
1412
- var Nt = "\\ud800-\\udfff", Wn = "\\u0300-\\u036f", qn = "\\ufe20-\\ufe2f", Yn = "\\u20d0-\\u20ff", Xn = Wn + qn + Yn, Vt = "\\u2700-\\u27bf", Ut = "a-z\\xdf-\\xf6\\xf8-\\xff", Qn = "\\xac\\xb1\\xd7\\xf7", el = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", tl = "\\u2000-\\u206f", al = " \\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", Ft = "A-Z\\xc0-\\xd6\\xd8-\\xde", ol = "\\ufe0e\\ufe0f", Kt = Qn + el + tl + al, It = "['’]", rt = "[" + Kt + "]", rl = "[" + Xn + "]", Ht = "\\d+", nl = "[" + Vt + "]", Jt = "[" + Ut + "]", Zt = "[^" + Nt + Kt + Ht + Vt + Ut + Ft + "]", ll = "\\ud83c[\\udffb-\\udfff]", ul = "(?:" + rl + "|" + ll + ")", il = "[^" + Nt + "]", Wt = "(?:\\ud83c[\\udde6-\\uddff]){2}", qt = "[\\ud800-\\udbff][\\udc00-\\udfff]", X = "[" + Ft + "]", cl = "\\u200d", nt = "(?:" + Jt + "|" + Zt + ")", sl = "(?:" + X + "|" + Zt + ")", lt = "(?:" + It + "(?:d|ll|m|re|s|t|ve))?", ut = "(?:" + It + "(?:D|LL|M|RE|S|T|VE))?", Yt = ul + "?", Xt = "[" + ol + "]?", dl = "(?:" + cl + "(?:" + [il, Wt, qt].join("|") + ")" + Xt + Yt + ")*", fl = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", vl = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", gl = Xt + Yt + dl, pl = "(?:" + [nl, Wt, qt].join("|") + ")" + gl, hl = RegExp([
1412
+ var Nt = "\\ud800-\\udfff", Wn = "\\u0300-\\u036f", qn = "\\ufe20-\\ufe2f", Yn = "\\u20d0-\\u20ff", Xn = Wn + qn + Yn, Ut = "\\u2700-\\u27bf", Vt = "a-z\\xdf-\\xf6\\xf8-\\xff", Qn = "\\xac\\xb1\\xd7\\xf7", el = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", tl = "\\u2000-\\u206f", al = " \\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", Ft = "A-Z\\xc0-\\xd6\\xd8-\\xde", ol = "\\ufe0e\\ufe0f", Kt = Qn + el + tl + al, It = "['’]", rt = "[" + Kt + "]", rl = "[" + Xn + "]", Ht = "\\d+", nl = "[" + Ut + "]", Jt = "[" + Vt + "]", Zt = "[^" + Nt + Kt + Ht + Ut + Vt + Ft + "]", ll = "\\ud83c[\\udffb-\\udfff]", ul = "(?:" + rl + "|" + ll + ")", il = "[^" + Nt + "]", Wt = "(?:\\ud83c[\\udde6-\\uddff]){2}", qt = "[\\ud800-\\udbff][\\udc00-\\udfff]", X = "[" + Ft + "]", cl = "\\u200d", nt = "(?:" + Jt + "|" + Zt + ")", sl = "(?:" + X + "|" + Zt + ")", lt = "(?:" + It + "(?:d|ll|m|re|s|t|ve))?", ut = "(?:" + It + "(?:D|LL|M|RE|S|T|VE))?", Yt = ul + "?", Xt = "[" + ol + "]?", dl = "(?:" + cl + "(?:" + [il, Wt, qt].join("|") + ")" + Xt + Yt + ")*", fl = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", vl = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", gl = Xt + Yt + dl, pl = "(?:" + [nl, Wt, qt].join("|") + ")" + gl, hl = RegExp([
1413
1413
  X + "?" + Jt + "+" + lt + "(?=" + [rt, X, "$"].join("|") + ")",
1414
1414
  sl + "+" + ut + "(?=" + [rt, X + nt, "$"].join("|") + ")",
1415
1415
  X + "?" + nt + "+" + lt,
@@ -1438,33 +1438,33 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1438
1438
  const a = Ml(t.replace("./", "").split("/")[0]);
1439
1439
  return e[a] = it[t].default, e;
1440
1440
  }, {}), Cl = (e, t, a) => {
1441
- const n = S({});
1442
- return { mapElement: n, addPlugins: () => {
1443
- const r = Hr({}, (e == null ? void 0 : e.options) || {}, (o, s) => {
1441
+ const r = S({});
1442
+ return { mapElement: r, addPlugins: () => {
1443
+ const n = Hr({}, (e == null ? void 0 : e.options) || {}, (o, s) => {
1444
1444
  if (Array.isArray(o)) return o.concat(s);
1445
1445
  });
1446
- Object.values(xl).forEach((o) => o(n.value, t, a, r.plugins || {}));
1446
+ Object.values(xl).forEach((o) => o(r.value, t, a, n.plugins || {}));
1447
1447
  } };
1448
- }, Al = ({ MapGL: e, map: t, marker: a, mapLoading: n, $autocomplete: u, searchResultList: l, innerInput: r, innerPoint: o, adCode: s, addressInfo: v }, b) => {
1448
+ }, Al = ({ MapGL: e, map: t, marker: a, mapLoading: r, $autocomplete: u, searchResultList: l, innerInput: n, innerPoint: o, adCode: s, addressInfo: v }, b) => {
1449
1449
  const C = S(), M = S(), k = S();
1450
- let $ = null;
1450
+ let L = null;
1451
1451
  const c = S(!1), i = S();
1452
1452
  let h;
1453
1453
  const A = async (d, f, y, x) => {
1454
- i.value = y, x && (h = x);
1455
- const m = document.createElement("script");
1456
- m.src = `https://maps.googleapis.com/maps/api/js?key=${d}&loading=async&libraries=map,marker&callback=onLoad`, document.body.appendChild(m), window.onLoad = () => {
1457
- B();
1454
+ if (i.value = y, x && (h = x), document.getElementById(d)) return R();
1455
+ 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}`;
1456
+ m.setAttribute("id", d), m.setAttribute("src", N), document.body.appendChild(m), window[O] = () => {
1457
+ R();
1458
1458
  };
1459
- }, B = async () => {
1460
- var N, G;
1459
+ }, R = async () => {
1460
+ var N, B;
1461
1461
  const { Map: d } = await google.maps.importLibrary("maps");
1462
1462
  e.value = d;
1463
1463
  const { Place: f, AutocompleteSessionToken: y, AutocompleteSuggestion: x } = await google.maps.importLibrary("places");
1464
1464
  M.value = new y(), k.value = x, C.value = f;
1465
1465
  const { AdvancedMarkerElement: m } = await google.maps.importLibrary("marker");
1466
- $ = m;
1467
- const T = ((N = i.value) == null ? void 0 : N.mapOpt) ?? {};
1466
+ L = m;
1467
+ const O = ((N = i.value) == null ? void 0 : N.mapOpt) ?? {};
1468
1468
  t.value = new d(document.getElementById("map"), {
1469
1469
  zoom: 11,
1470
1470
  mapId: "DEMO_MAP_ID",
@@ -1476,37 +1476,37 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1476
1476
  // 左上角地图类型
1477
1477
  gestureHandling: "greedy",
1478
1478
  // 谷歌地图api缩放去掉ctrl+滚轮缩放,直接鼠标缩放
1479
- ...T
1480
- }), await j(), (G = i.value) != null && G.clickStream || _(), n.value = !1, c.value = !r.value && !o.value.length, h && h();
1479
+ ...O
1480
+ }), await $(), (B = i.value) != null && B.clickStream || _(), r.value = !1, c.value = !n.value && !o.value.length, h && h();
1481
1481
  }, _ = () => {
1482
1482
  var d;
1483
1483
  (d = t.value) == null || d.addListener("click", (f) => {
1484
1484
  var y, x;
1485
- 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()], R(o.value, !0).then(() => {
1486
- var T;
1485
+ 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(() => {
1486
+ var O;
1487
1487
  const m = {
1488
1488
  lng: parseFloat(o.value[0]),
1489
1489
  lat: parseFloat(o.value[1])
1490
1490
  };
1491
- a.value = new $({
1491
+ a.value = new L({
1492
1492
  map: t.value,
1493
1493
  position: m,
1494
- title: r.value
1494
+ title: n.value
1495
1495
  // 鼠标移上去时显示的内容
1496
- }), (T = t.value) == null || T.panTo(m);
1496
+ }), (O = t.value) == null || O.panTo(m);
1497
1497
  });
1498
1498
  });
1499
- }, j = async () => {
1499
+ }, $ = async () => {
1500
1500
  var d;
1501
- if (!r.value && o.value.length, r.value && o.value.length > 0 ? await R(o.value) : r.value ? await V(r.value) : o.value.length > 0 && await R(o.value, !0), r.value && g(r.value, (f, y) => {
1501
+ 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) => {
1502
1502
  if (y && y.length) {
1503
1503
  const x = y.find(
1504
- (m) => m.value === r.value || m.info.name === r.value
1504
+ (m) => m.value === n.value || m.info.name === n.value
1505
1505
  );
1506
1506
  x ? v.value = x.info : v.value = {
1507
1507
  district: "",
1508
1508
  address: "",
1509
- name: r.value
1509
+ name: n.value
1510
1510
  };
1511
1511
  }
1512
1512
  }), o.value.length) {
@@ -1514,48 +1514,50 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1514
1514
  lng: parseFloat(o.value[0]),
1515
1515
  lat: parseFloat(o.value[1])
1516
1516
  };
1517
- a.value = new $({
1517
+ a.value = new L({
1518
1518
  map: t.value,
1519
1519
  position: f,
1520
- title: r.value
1520
+ title: n.value
1521
1521
  // 鼠标移上去时显示的内容
1522
1522
  }), o.value.length && ((d = t.value) == null || d.setCenter(f));
1523
1523
  }
1524
- }, R = (d, f = !1) => (d.join(","), new Promise((y, x) => {
1524
+ }, G = (d, f = !1) => (d.join(","), new Promise((y, x) => {
1525
1525
  new google.maps.Geocoder().geocode({
1526
1526
  location: {
1527
1527
  lng: parseFloat(d[0]),
1528
1528
  lat: parseFloat(d[1])
1529
1529
  }
1530
- }, (T, N) => {
1531
- N === "OK" && (T != null && T.length) ? (f && (r.value = T[0].formatted_address ?? "", v.value = {
1530
+ }, (O, N) => {
1531
+ N === "OK" && (O != null && O.length) ? (f && (n.value = O[0].formatted_address ?? "", v.value = {
1532
1532
  district: "",
1533
1533
  address: "",
1534
- name: r.value
1535
- }), y(T[0])) : (z.error(E("thirdPartyMapErrorRetry")), x());
1534
+ name: n.value
1535
+ }), y(O[0])) : (z.error(P("thirdPartyMapErrorRetry")), x());
1536
1536
  });
1537
- })), V = (d) => new Promise((f, y) => {
1537
+ })), U = (d) => new Promise((f, y) => {
1538
1538
  new google.maps.Geocoder().geocode({
1539
- address: r.value
1540
- }, (m, T) => {
1541
- T === "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] })) : (z.error(E("thirdPartyMapErrorRetry")), y());
1539
+ address: n.value
1540
+ }, (m, O) => {
1541
+ 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] })) : (z.error(P("thirdPartyMapErrorRetry")), y());
1542
1542
  });
1543
- }), O = async () => {
1543
+ }), T = async () => {
1544
1544
  var d;
1545
- navigator.geolocation && ((d = navigator.geolocation) == null || d.getCurrentPosition((f) => {
1545
+ r.value = !0, navigator.geolocation && ((d = navigator.geolocation) == null || d.getCurrentPosition((f) => {
1546
1546
  var x;
1547
1547
  const y = {
1548
1548
  lat: f.coords.latitude,
1549
1549
  lng: f.coords.longitude
1550
1550
  };
1551
- (x = t.value) == null || x.panTo(y), c.value = !1;
1551
+ (x = t.value) == null || x.panTo(y), c.value = !1, r.value = !1;
1552
1552
  }, (f) => {
1553
- z.error(E("获取定位失败"));
1553
+ z.error(P("获取定位失败")), r.value = !1;
1554
1554
  }, {
1555
1555
  // enableHighAccuracy: true,
1556
1556
  // timeout: 5000,
1557
1557
  // maximumAge: 0,
1558
1558
  // enableHighAccuracy: true
1559
+ enableHighAccuracy: !0,
1560
+ timeout: 1e4
1559
1561
  }));
1560
1562
  }, g = async (d, f) => {
1561
1563
  if (u.value.activated = !0, !d) {
@@ -1571,22 +1573,22 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1571
1573
  if (l.value = [], !x) return f([]);
1572
1574
  let m = [];
1573
1575
  await Promise.all(
1574
- x.map((T) => (async () => {
1576
+ x.map((O) => (async () => {
1575
1577
  var J, le;
1576
- let G = (T == null ? void 0 : T.placePrediction).toPlace();
1577
- await G.fetchFields({
1578
+ let B = (O == null ? void 0 : O.placePrediction).toPlace();
1579
+ await B.fetchFields({
1578
1580
  fields: [
1579
1581
  "displayName",
1580
1582
  "formattedAddress",
1581
1583
  "location"
1582
1584
  ]
1583
1585
  });
1584
- const ne = (J = G == null ? void 0 : G.location) == null ? void 0 : J.lng(), U = (le = G == null ? void 0 : G.location) == null ? void 0 : le.lat(), F = {
1586
+ const ne = (J = B == null ? void 0 : B.location) == null ? void 0 : J.lng(), V = (le = B == null ? void 0 : B.location) == null ? void 0 : le.lat(), F = {
1585
1587
  // value: placePrediction?.text?.toString() || '',
1586
- value: G == null ? void 0 : G.formattedAddress,
1587
- point: { lng: ne, lat: U },
1588
+ value: B == null ? void 0 : B.formattedAddress,
1589
+ point: { lng: ne, lat: V },
1588
1590
  info: {
1589
- name: G == null ? void 0 : G.displayName
1591
+ name: B == null ? void 0 : B.displayName
1590
1592
  }
1591
1593
  };
1592
1594
  m.push(F);
@@ -1596,160 +1598,161 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1596
1598
  return {
1597
1599
  getLocationByInputSearch: g,
1598
1600
  handleSelectAddress: (d) => {
1599
- r.value = d.value, v.value = d.info, V(d.value).then((f) => {
1601
+ n.value = d.value, v.value = d.info, U(d.value).then((f) => {
1600
1602
  var y;
1601
- o.value = [f.lng, f.lat], a.value && a.value.setMap(null), a.value = new $({
1603
+ o.value = [f.lng, f.lat], a.value && a.value.setMap(null), a.value = new L({
1602
1604
  map: t.value,
1603
1605
  position: f,
1604
- title: r.value
1606
+ title: n.value
1605
1607
  // 鼠标移上去时显示的内容
1606
1608
  }), (y = t.value) == null || y.panTo(f), c.value = !1;
1607
1609
  });
1608
1610
  },
1609
1611
  getLocationParse: async () => {
1610
1612
  var d, f;
1611
- if (!l.value.length) return z.error(E("thirdPartyMapErrorRetry"));
1612
- if (r.value = l.value[0].value, !((d = l.value[0]) != null && d.point))
1613
- return z.error(E("thirdPartyMapErrorRetry"));
1614
- o.value = [l.value[0].point.lng, l.value[0].point.lat], v.value = l.value[0].info, a.value = new $({
1615
- map: t.value,
1616
- position: l.value[0].point,
1617
- title: r.value
1618
- // 鼠标移上去时显示的内容
1619
- }), (f = t.value) == null || f.panTo(l.value[0].point), c.value = !1, u.value.activated = !1;
1613
+ if (l.value.length) {
1614
+ if (n.value = l.value[0].value, !((d = l.value[0]) != null && d.point))
1615
+ return z.error(P("thirdPartyMapErrorRetry"));
1616
+ o.value = [l.value[0].point.lng, l.value[0].point.lat], v.value = l.value[0].info, a.value = new L({
1617
+ map: t.value,
1618
+ position: l.value[0].point,
1619
+ title: n.value
1620
+ // 鼠标移上去时显示的内容
1621
+ }), (f = t.value) == null || f.panTo(l.value[0].point), c.value = !1, u.value.activated = !1;
1622
+ }
1620
1623
  },
1621
1624
  getMapInfo: () => ({
1622
1625
  longitude: o.value[0],
1623
1626
  latitude: o.value[1],
1624
1627
  adCode: s.value,
1625
- address: r.value,
1628
+ address: n.value,
1626
1629
  addressInfo: v.value
1627
1630
  }),
1628
1631
  loadJavascript: A,
1629
- positionCityLocal: O,
1632
+ positionCityLocal: T,
1630
1633
  showGetLocationBtn: c
1631
1634
  };
1632
1635
  }, Sl = (e, t) => {
1633
- const a = S("gaode"), n = S(), u = S(), l = I(null), r = I(null), o = I(null), s = S(!0), v = S(null), b = S([]), C = Se(() => ({
1636
+ const a = S("gaode"), r = S(), u = S(), l = I(null), n = I(null), o = I(null), s = S(!0), v = S(null), b = S([]), C = Se(() => ({
1634
1637
  width: e.width ? Q(e.width) : "100%",
1635
1638
  height: e.height ? Q(e.height) : "100%"
1636
- })), M = S(""), k = S([]), $ = S(""), c = S(), {
1639
+ })), M = S(""), k = S([]), L = S(""), c = S(), {
1637
1640
  loadJavascript: i,
1638
1641
  getLocationByInputSearch: h,
1639
1642
  handleSelectAddress: A,
1640
- getLocationParse: B
1643
+ getLocationParse: R
1641
1644
  } = ft({
1642
1645
  BMap: l,
1643
- map: r,
1646
+ map: n,
1644
1647
  marker: o,
1645
1648
  mapLoading: s,
1646
1649
  $autocomplete: v,
1647
1650
  searchResultList: b,
1648
1651
  innerInput: M,
1649
1652
  innerPoint: k,
1650
- adCode: $,
1653
+ adCode: L,
1651
1654
  addressInfo: c
1652
1655
  }), {
1653
1656
  loadJavascript: _,
1654
- getLocationByInputSearch: j,
1655
- handleSelectAddress: R,
1656
- getLocationParse: V
1657
+ getLocationByInputSearch: $,
1658
+ handleSelectAddress: G,
1659
+ getLocationParse: U
1657
1660
  } = st({
1658
1661
  MapGL: l,
1659
- map: r,
1662
+ map: n,
1660
1663
  marker: o,
1661
1664
  mapLoading: s,
1662
1665
  $autocomplete: v,
1663
1666
  searchResultList: b,
1664
1667
  innerInput: M,
1665
1668
  innerPoint: k,
1666
- adCode: $,
1669
+ adCode: L,
1667
1670
  addressInfo: c
1668
1671
  }), {
1669
- loadJavascript: O,
1672
+ loadJavascript: T,
1670
1673
  getLocationByInputSearch: g,
1671
1674
  handleSelectAddress: p,
1672
1675
  getLocationParse: w,
1673
- positionCityLocal: L,
1676
+ positionCityLocal: j,
1674
1677
  showGetLocationBtn: d
1675
1678
  } = Al({
1676
1679
  MapGL: l,
1677
- map: r,
1680
+ map: n,
1678
1681
  marker: o,
1679
1682
  mapLoading: s,
1680
1683
  $autocomplete: v,
1681
1684
  searchResultList: b,
1682
1685
  innerInput: M,
1683
1686
  innerPoint: k,
1684
- adCode: $,
1687
+ adCode: L,
1685
1688
  addressInfo: c
1686
1689
  }), { mapElement: f, addPlugins: y } = Cl(e, t, {
1687
1690
  type: a,
1688
1691
  MapGL: l,
1689
- map: r,
1692
+ map: n,
1690
1693
  innerPoint: k,
1691
1694
  innerInput: M,
1692
- adCode: $,
1695
+ adCode: L,
1693
1696
  addressInfo: c
1694
1697
  }), x = () => {
1695
- a.value === "baidu" && i(n.value, { clickStream: !e.clickStream, mapOpt: e.mapOpt }, T), a.value === "gaode" && _(
1696
- n.value,
1698
+ a.value === "baidu" && i(r.value, { clickStream: !e.clickStream, mapOpt: e.mapOpt }, O), a.value === "gaode" && _(
1699
+ r.value,
1697
1700
  u.value,
1698
1701
  { clickStream: !e.clickStream, mapOpt: e.mapOpt },
1699
- T
1700
- ), a.value === "google" && O(
1701
- n.value,
1702
+ O
1703
+ ), a.value === "google" && T(
1704
+ r.value,
1702
1705
  u.value,
1703
1706
  { clickStream: !e.clickStream, mapOpt: e.mapOpt },
1704
- T
1707
+ O
1705
1708
  );
1706
- }, m = async (U) => {
1707
- const [F, J] = await Ge(U);
1709
+ }, m = async (V) => {
1710
+ const [F, J] = await Ge(V);
1708
1711
  if (F) {
1709
1712
  s.value = !1;
1710
1713
  return;
1711
1714
  }
1712
1715
  if (!F && !J) {
1713
- t("no-config-map", E("暂未配置地图")), s.value = !1;
1716
+ t("no-config-map", P("暂未配置地图")), s.value = !1;
1714
1717
  return;
1715
1718
  }
1716
1719
  return J;
1717
1720
  };
1718
1721
  Oe(async () => {
1719
- var U, F, J, le, Ue;
1720
- if (e.defaultLongitude && e.defaultLatitude && (k.value = [e.defaultLongitude, e.defaultLatitude]), M.value = e.defaultAddress ?? "", e != null && e.sdkConfig && ((U = e == null ? void 0 : e.sdkConfig) != null && U.akValue))
1721
- a.value = ((F = e.sdkConfig) == null ? void 0 : F.mapType) ?? "gaode", n.value = (J = e.sdkConfig) == null ? void 0 : J.akValue, u.value = (le = e.sdkConfig) == null ? void 0 : le.secretKey;
1722
+ var V, F, J, le, Ve;
1723
+ 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))
1724
+ a.value = ((F = e.sdkConfig) == null ? void 0 : F.mapType) ?? "gaode", r.value = (J = e.sdkConfig) == null ? void 0 : J.akValue, u.value = (le = e.sdkConfig) == null ? void 0 : le.secretKey;
1722
1725
  else {
1723
- const K = await m((Ue = e == null ? void 0 : e.sdkConfig) == null ? void 0 : Ue.mapType);
1724
- K && (a.value = (K == null ? void 0 : K.mapType) ?? "gaode", n.value = K == null ? void 0 : K.akVal, u.value = K == null ? void 0 : K.secretK);
1726
+ const K = await m((Ve = e == null ? void 0 : e.sdkConfig) == null ? void 0 : Ve.mapType);
1727
+ K && (a.value = (K == null ? void 0 : K.mapType) ?? "gaode", r.value = K == null ? void 0 : K.akVal, u.value = K == null ? void 0 : K.secretK);
1725
1728
  }
1726
1729
  x();
1727
1730
  });
1728
- const T = () => {
1729
- f.value = r.value, y(), a.value === "baidu" && r.value.addEventListener("tilesloaded", () => {
1731
+ const O = () => {
1732
+ f.value = n.value, y(), a.value === "baidu" && n.value.addEventListener("tilesloaded", () => {
1730
1733
  t("update:mapElement", f.value);
1731
- }), a.value === "gaode" && r.value.on("complete", () => {
1734
+ }), a.value === "gaode" && n.value.on("complete", () => {
1732
1735
  t("update:mapElement", f.value);
1733
1736
  }), a.value === "google" && t("update:mapElement", f.value);
1734
1737
  };
1735
1738
  return {
1736
1739
  mapStyle: C,
1737
1740
  innerInput: M,
1738
- getLocationByInputSearch: (U, F) => {
1739
- a.value === "baidu" && h(U, F), a.value === "gaode" && j(U, F), a.value === "google" && g(U, F);
1741
+ getLocationByInputSearch: (V, F) => {
1742
+ a.value === "baidu" && h(V, F), a.value === "gaode" && $(V, F), a.value === "google" && g(V, F);
1740
1743
  },
1741
- handleSelectAddress: (U) => {
1742
- a.value === "baidu" && A(U), a.value === "gaode" && R(U), a.value === "google" && p(U);
1744
+ handleSelectAddress: (V) => {
1745
+ a.value === "baidu" && A(V), a.value === "gaode" && G(V), a.value === "google" && p(V);
1743
1746
  },
1744
1747
  getLocationParse: () => {
1745
- a.value === "baidu" && B(), a.value === "gaode" && V(), a.value === "google" && w();
1748
+ a.value === "baidu" && R(), a.value === "gaode" && U(), a.value === "google" && w();
1746
1749
  },
1747
1750
  mapLoading: s,
1748
1751
  $autocomplete: v,
1749
- googlePositionCityLocal: L,
1752
+ googlePositionCityLocal: j,
1750
1753
  showGetLocationBtn: d
1751
1754
  };
1752
- }, Ol = { class: "search-input" }, Tl = { class: "location-icon1" }, jl = { id: "map" }, Ll = /* @__PURE__ */ Ae({
1755
+ }, Ol = { class: "search-input" }, Tl = { class: "location-icon1" }, $l = { id: "map" }, jl = /* @__PURE__ */ Ae({
1753
1756
  __name: "mixMap",
1754
1757
  props: {
1755
1758
  defaultAddress: {},
@@ -1766,24 +1769,24 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1766
1769
  },
1767
1770
  emits: ["update:mapElement", "no-config-map", "click-custom-component"],
1768
1771
  setup(e, { emit: t }) {
1769
- const a = e, n = t, {
1772
+ const a = e, r = t, {
1770
1773
  mapStyle: u,
1771
1774
  innerInput: l,
1772
- getLocationByInputSearch: r,
1775
+ getLocationByInputSearch: n,
1773
1776
  handleSelectAddress: o,
1774
1777
  getLocationParse: s,
1775
1778
  mapLoading: v,
1776
1779
  $autocomplete: b,
1777
1780
  googlePositionCityLocal: C,
1778
1781
  showGetLocationBtn: M
1779
- } = Sl(a, n);
1780
- return (k, $) => {
1782
+ } = Sl(a, r);
1783
+ return (k, L) => {
1781
1784
  const c = Pe, i = ke;
1782
- return Te(), je(
1785
+ return Te(), $e(
1783
1786
  "div",
1784
1787
  {
1785
1788
  class: "das-map",
1786
- style: Le(D(u))
1789
+ style: je(D(u))
1787
1790
  },
1788
1791
  [
1789
1792
  Z(W(
@@ -1794,14 +1797,14 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1794
1797
  ref_key: "$autocomplete",
1795
1798
  ref: b,
1796
1799
  modelValue: D(l),
1797
- "onUpdate:modelValue": $[0] || ($[0] = (h) => ta(l) ? l.value = h : null),
1800
+ "onUpdate:modelValue": L[0] || (L[0] = (h) => ta(l) ? l.value = h : null),
1798
1801
  modelModifiers: { trim: !0 },
1799
- "fetch-suggestions": D(r),
1800
- placeholder: D(E)("请输入位置"),
1802
+ "fetch-suggestions": D(n),
1803
+ placeholder: D(P)("请输入位置"),
1801
1804
  style: { width: "100%" },
1802
1805
  "trigger-on-focus": !1,
1803
1806
  onSelect: D(o),
1804
- onKeyup: $e(D(s), ["enter", "native"]),
1807
+ onKeyup: Le(D(s), ["enter", "native"]),
1805
1808
  clearable: ""
1806
1809
  }, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"]), [
1807
1810
  [D(Re)]
@@ -1823,7 +1826,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1823
1826
  }, {
1824
1827
  default: aa(() => [
1825
1828
  oa(
1826
- ra(D(E)("Please-Click-Get-Location")),
1829
+ ra(D(P)("Please-Click-Get-Location")),
1827
1830
  1
1828
1831
  /* TEXT */
1829
1832
  )
@@ -1839,7 +1842,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1839
1842
  ]),
1840
1843
  Z(W(
1841
1844
  "div",
1842
- jl,
1845
+ $l,
1843
1846
  null,
1844
1847
  512
1845
1848
  /* NEED_PATCH */
@@ -1857,7 +1860,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1857
1860
  );
1858
1861
  };
1859
1862
  }
1860
- }), $l = /* @__PURE__ */ Be(Ll, [["__scopeId", "data-v-3bb806bb"]]), El = {
1863
+ }), Ll = /* @__PURE__ */ Be(jl, [["__scopeId", "data-v-3bb806bb"]]), El = {
1861
1864
  请输入位置: { "zh-CN": "请输入位置", en: "Please enter location", _appCode: "framework" },
1862
1865
  获取地图配置信息失败: {
1863
1866
  "zh-CN": "获取地图配置信息失败",
@@ -1882,7 +1885,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1882
1885
  }
1883
1886
  };
1884
1887
  na(El);
1885
- const Kl = Ee(ga), Il = () => S(null), Hl = Ee(ma), Jl = () => S(null), Zl = Ee($l), Wl = () => S(null), ql = { title: "Map 地图" };
1888
+ const Kl = Ee(ga), Il = () => S(null), Hl = Ee(ma), Jl = () => S(null), Zl = Ee(Ll), Wl = () => S(null), ql = { title: "Map 地图" };
1886
1889
  export {
1887
1890
  Hl as DasBaiduMap,
1888
1891
  Jl as DasBaiduMapRef,