@heycar/heycars-map 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +15 -0
- package/README.md +18 -0
- package/dist/App.d.ts +1 -0
- package/dist/api/driving.d.ts +12 -0
- package/dist/api/geocoder.d.ts +16 -0
- package/dist/api/geometry.d.ts +20 -0
- package/dist/api/place.d.ts +16 -0
- package/dist/business-components/AddressBox/AddressBox.css.d.ts +7 -0
- package/dist/business-components/AddressBox/AddressBox.d.ts +10 -0
- package/dist/business-components/AddressBox/index.d.ts +1 -0
- package/dist/business-components/AddressLocator/AddressLocator.css.d.ts +1 -0
- package/dist/business-components/AddressLocator/AddressLocator.d.ts +7 -0
- package/dist/business-components/AddressLocator/index.d.ts +1 -0
- package/dist/business-components/DrivingLine/DrivingLine.css.d.ts +1 -0
- package/dist/business-components/DrivingLine/DrivingLine.d.ts +6 -0
- package/dist/business-components/DrivingLine/index.d.ts +1 -0
- package/dist/business-components/PassengerCircle/PassengerCircle.css.d.ts +1 -0
- package/dist/business-components/PassengerCircle/PassengerCircle.d.ts +7 -0
- package/dist/business-components/PassengerCircle/index.d.ts +1 -0
- package/dist/business-components/PlaceCircle/PlaceCircle.css.d.ts +5 -0
- package/dist/business-components/PlaceCircle/PlaceCircle.d.ts +8 -0
- package/dist/business-components/PlaceCircle/index.d.ts +1 -0
- package/dist/business-components/StartEndPoint/StartEndPoint.css.d.ts +20 -0
- package/dist/business-components/StartEndPoint/StartEndPoint.d.ts +9 -0
- package/dist/business-components/StartEndPoint/index.d.ts +1 -0
- package/dist/business-components/TaxiCar/TaxiCar.css.d.ts +3 -0
- package/dist/business-components/TaxiCar/TaxiCar.d.ts +8 -0
- package/dist/business-components/TaxiCar/index.d.ts +1 -0
- package/dist/business-components/WalkingLine/WalkingLine.d.ts +6 -0
- package/dist/business-components/WalkingLine/index.d.ts +1 -0
- package/dist/business-components/WaveCircle/WaveCircle.css.d.ts +4 -0
- package/dist/business-components/WaveCircle/WaveCircle.d.ts +6 -0
- package/dist/business-components/WaveCircle/index.d.ts +1 -0
- package/dist/components/Amap/Amap.css.d.ts +1 -0
- package/dist/components/Amap/Amap.d.ts +7 -0
- package/dist/components/Amap/index.d.ts +1 -0
- package/dist/components/Amap/useAmap.d.ts +399 -0
- package/dist/components/AmapInfoWindow/AmapInfoWindow.d.ts +4 -0
- package/dist/components/AmapInfoWindow/index.d.ts +1 -0
- package/dist/components/AmapLoader/AmapLoader.d.ts +20 -0
- package/dist/components/AmapLoader/index.d.ts +1 -0
- package/dist/components/AmapMarker/AmapMarker.d.ts +2 -0
- package/dist/components/AmapMarker/index.d.ts +1 -0
- package/dist/components/AmapPolygon/AmapPolygon.d.ts +2 -0
- package/dist/components/AmapPolygon/index.d.ts +1 -0
- package/dist/components/AmapPolyline/AmapPolyline.d.ts +2 -0
- package/dist/components/AmapPolyline/index.d.ts +1 -0
- package/dist/components/AmapText/AmapText.d.ts +2 -0
- package/dist/components/AmapText/index.d.ts +1 -0
- package/dist/components/Demo/BusinessDemo.d.ts +2 -0
- package/dist/components/Demo/Demo.css.d.ts +1 -0
- package/dist/components/Demo/Demo.d.ts +2 -0
- package/dist/components/Demo/Hello.d.ts +17 -0
- package/dist/components/Demo/HeycarDemo.d.ts +1 -0
- package/dist/components/Demo/index.d.ts +1 -0
- package/dist/components/Gmap/Gmap.d.ts +5 -0
- package/dist/components/Gmap/index.d.ts +1 -0
- package/dist/components/Gmap/useGmap.d.ts +5 -0
- package/dist/components/GmapAdvancedMarkerView/GmapAdvancedMarkerView.d.ts +3 -0
- package/dist/components/GmapAdvancedMarkerView/index.d.ts +1 -0
- package/dist/components/GmapInfoWindow/GmapInfoWindow.d.ts +5 -0
- package/dist/components/GmapInfoWindow/index.d.ts +1 -0
- package/dist/components/GmapLoader/GmapLoader.d.ts +37 -0
- package/dist/components/GmapLoader/index.d.ts +1 -0
- package/dist/components/GmapMarker/GmapMarker.d.ts +3 -0
- package/dist/components/GmapMarker/index.d.ts +1 -0
- package/dist/components/GmapPolygon/GmapPolygon.d.ts +3 -0
- package/dist/components/GmapPolygon/index.d.ts +1 -0
- package/dist/components/GmapPolyline/GmapPolyline.d.ts +3 -0
- package/dist/components/GmapPolyline/index.d.ts +1 -0
- package/dist/components/MapProvider/MapProvider.d.ts +7 -0
- package/dist/components/MapProvider/index.d.ts +1 -0
- package/dist/components/MapProvider/useMapSupplier.d.ts +11 -0
- package/dist/index.cjs +70 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +1498 -0
- package/dist/main.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/types/amap/marker.d.ts +11 -0
- package/dist/types/helper.d.ts +30 -0
- package/dist/types/interface.d.ts +1 -0
- package/dist/utils/compare.d.ts +21 -0
- package/dist/utils/dom.d.ts +2 -0
- package/dist/utils/transform.d.ts +9 -0
- package/dist/vite.svg +1 -0
- package/esbuild.mjs +40 -0
- package/index.html +13 -0
- package/package.json +94 -0
- package/public/vite.svg +1 -0
- package/src/App.tsx +10 -0
- package/src/api/driving.ts +87 -0
- package/src/api/geocoder.ts +88 -0
- package/src/api/geometry.ts +44 -0
- package/src/api/place.ts +107 -0
- package/src/assets/icons/svg/address-locator.svg +1 -0
- package/src/assets/icons/svg/arrow-right.svg +1 -0
- package/src/assets/icons/svg/end-point.svg +1 -0
- package/src/assets/icons/svg/passenger-circle.svg +1 -0
- package/src/assets/icons/svg/place-circle.svg +22 -0
- package/src/assets/icons/svg/start-point.svg +1 -0
- package/src/assets/icons/svg/taxi-car.svg +1 -0
- package/src/assets/icons/svg/wave-circle.svg +1 -0
- package/src/business-components/AddressBox/AddressBox.css.ts +55 -0
- package/src/business-components/AddressBox/AddressBox.tsx +69 -0
- package/src/business-components/AddressBox/index.ts +1 -0
- package/src/business-components/AddressLocator/AddressLocator.css.ts +7 -0
- package/src/business-components/AddressLocator/AddressLocator.tsx +40 -0
- package/src/business-components/AddressLocator/index.ts +1 -0
- package/src/business-components/DrivingLine/DrivingLine.css.ts +10 -0
- package/src/business-components/DrivingLine/DrivingLine.tsx +124 -0
- package/src/business-components/DrivingLine/index.ts +1 -0
- package/src/business-components/PassengerCircle/PassengerCircle.css.ts +8 -0
- package/src/business-components/PassengerCircle/PassengerCircle.tsx +42 -0
- package/src/business-components/PassengerCircle/index.ts +1 -0
- package/src/business-components/PlaceCircle/PlaceCircle.css.ts +30 -0
- package/src/business-components/PlaceCircle/PlaceCircle.tsx +66 -0
- package/src/business-components/PlaceCircle/index.ts +1 -0
- package/src/business-components/StartEndPoint/StartEndPoint.css.ts +70 -0
- package/src/business-components/StartEndPoint/StartEndPoint.tsx +103 -0
- package/src/business-components/StartEndPoint/index.ts +1 -0
- package/src/business-components/TaxiCar/TaxiCar.css.ts +16 -0
- package/src/business-components/TaxiCar/TaxiCar.tsx +77 -0
- package/src/business-components/TaxiCar/index.ts +1 -0
- package/src/business-components/WalkingLine/WalkingLine.tsx +73 -0
- package/src/business-components/WalkingLine/index.ts +1 -0
- package/src/business-components/WaveCircle/WaveCircle.css.ts +54 -0
- package/src/business-components/WaveCircle/WaveCircle.tsx +56 -0
- package/src/business-components/WaveCircle/index.ts +1 -0
- package/src/components/Amap/Amap.css.ts +3 -0
- package/src/components/Amap/Amap.ts +58 -0
- package/src/components/Amap/index.ts +1 -0
- package/src/components/Amap/useAmap.ts +9 -0
- package/src/components/AmapInfoWindow/AmapInfoWindow.ts +45 -0
- package/src/components/AmapInfoWindow/index.ts +1 -0
- package/src/components/AmapLoader/AmapLoader.ts +68 -0
- package/src/components/AmapLoader/index.ts +1 -0
- package/src/components/AmapMarker/AmapMarker.ts +38 -0
- package/src/components/AmapMarker/index.ts +1 -0
- package/src/components/AmapPolygon/AmapPolygon.ts +41 -0
- package/src/components/AmapPolygon/index.ts +1 -0
- package/src/components/AmapPolyline/AmapPolyline.ts +40 -0
- package/src/components/AmapPolyline/index.ts +1 -0
- package/src/components/AmapText/AmapText.ts +39 -0
- package/src/components/AmapText/index.ts +1 -0
- package/src/components/Demo/BusinessDemo.tsx +117 -0
- package/src/components/Demo/Demo.css.ts +6 -0
- package/src/components/Demo/Demo.tsx +97 -0
- package/src/components/Demo/Hello.tsx +15 -0
- package/src/components/Demo/HeycarDemo.tsx +31 -0
- package/src/components/Demo/TemplateDemo.vue +11 -0
- package/src/components/Demo/index.ts +1 -0
- package/src/components/Gmap/Gmap.ts +34 -0
- package/src/components/Gmap/index.ts +1 -0
- package/src/components/Gmap/useGmap.ts +7 -0
- package/src/components/GmapAdvancedMarkerView/GmapAdvancedMarkerView.ts +48 -0
- package/src/components/GmapAdvancedMarkerView/index.ts +1 -0
- package/src/components/GmapInfoWindow/GmapInfoWindow.ts +38 -0
- package/src/components/GmapInfoWindow/index.ts +1 -0
- package/src/components/GmapLoader/GmapLoader.ts +79 -0
- package/src/components/GmapLoader/index.ts +1 -0
- package/src/components/GmapMarker/GmapMarker.ts +31 -0
- package/src/components/GmapMarker/index.ts +1 -0
- package/src/components/GmapPolygon/GmapPolygon.ts +29 -0
- package/src/components/GmapPolygon/index.ts +1 -0
- package/src/components/GmapPolyline/GmapPolyline.ts +29 -0
- package/src/components/GmapPolyline/index.ts +1 -0
- package/src/components/MapProvider/MapProvider.tsx +64 -0
- package/src/components/MapProvider/index.ts +1 -0
- package/src/components/MapProvider/useMapSupplier.ts +19 -0
- package/src/index.ts +14 -0
- package/src/main.ts +6 -0
- package/src/style.css +0 -0
- package/src/types/amap/autocomplete.d.ts +64 -0
- package/src/types/amap/driving.d.ts +168 -0
- package/src/types/amap/geocoder.d.ts +214 -0
- package/src/types/amap/marker.ts +11 -0
- package/src/types/amap/place.d.ts +114 -0
- package/src/types/amap/plugin.d.ts +27 -0
- package/src/types/amap/walking.d.ts +76 -0
- package/src/types/global.d.ts +10 -0
- package/src/types/helper.ts +139 -0
- package/src/types/interface.ts +1 -0
- package/src/utils/compare.ts +174 -0
- package/src/utils/dom.ts +14 -0
- package/src/utils/transform.ts +27 -0
- package/src/vite-env.d.ts +12 -0
- package/todo.md +1 -0
- package/tsconfig.json +25 -0
- package/tsconfig.node.json +9 -0
- package/vite.config.dev.ts +17 -0
- package/vite.config.ts +40 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,1498 @@
|
|
|
1
|
+
import ce, { defineComponent as jt, h as l, watch as X, watchPostEffect as x, inject as q, provide as tt, shallowRef as v, onMounted as $, onUnmounted as F, computed as L } from "vue";
|
|
2
|
+
ce.util.warn;
|
|
3
|
+
const mt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9Ii44Ii8+PC9zdmc+", T = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIxN3B4IiB2aWV3Qm94PSIwIDAgMTcgMTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5qSt5ZyG5b2iPC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxjaXJjbGUgaWQ9InBhdGgtMSIgY3g9IjQuNSIgY3k9IjkuNSIgcj0iNC41Ij48L2NpcmNsZT4KICAgICAgICA8ZmlsdGVyIHg9Ii02MS4xJSIgeT0iLTYxLjElIiB3aWR0aD0iMjIyLjIlIiBoZWlnaHQ9IjIyMi4yJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0iZmlsdGVyLTIiPgogICAgICAgICAgICA8ZmVNb3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lkPSLmpK3lnIblvaIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIzMi4wMDAwMDAsIDMyMS4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDx1c2UgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMSIgZmlsdGVyPSJ1cmwoI2ZpbHRlci0yKSIgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICA8dXNlIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSIjMzQ2RUZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=";
|
|
4
|
+
var se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
|
+
function M(i) {
|
|
6
|
+
return jt({
|
|
7
|
+
name: i.name,
|
|
8
|
+
inheritAttrs: !1,
|
|
9
|
+
setup(t, e) {
|
|
10
|
+
const { attrs: n, slots: r } = e, a = n, o = new Proxy(r, {
|
|
11
|
+
get(c, u, I) {
|
|
12
|
+
return Reflect.get(c, u, I) ?? Reflect.get(a, u);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
return i(a, { ...e, slots: o });
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function ue(i) {
|
|
20
|
+
return {
|
|
21
|
+
props: (t) => jt({
|
|
22
|
+
name: i.name,
|
|
23
|
+
inheritAttrs: !1,
|
|
24
|
+
props: t,
|
|
25
|
+
setup(e, n) {
|
|
26
|
+
const r = e, { slots: a } = n, o = new Proxy(a, {
|
|
27
|
+
get(c, u, I) {
|
|
28
|
+
return Reflect.get(c, u, I) ?? Reflect.get(r, u);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
return i(r, { ...n, slots: o });
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
const C = l, nt = (i) => i != null && typeof i == "object" && Number.isFinite(i.lat) && Number.isFinite(i.lng);
|
|
37
|
+
var le = typeof WeakMap == "function", at = Object.keys;
|
|
38
|
+
function U(i, t) {
|
|
39
|
+
return i === t || i !== i && t !== t;
|
|
40
|
+
}
|
|
41
|
+
function rt(i) {
|
|
42
|
+
return i.constructor === Object || i.constructor == null;
|
|
43
|
+
}
|
|
44
|
+
function ot(i) {
|
|
45
|
+
return !!i && typeof i.then == "function";
|
|
46
|
+
}
|
|
47
|
+
function ct(i) {
|
|
48
|
+
return !!(i && i.$$typeof);
|
|
49
|
+
}
|
|
50
|
+
function Ie() {
|
|
51
|
+
var i = [];
|
|
52
|
+
return {
|
|
53
|
+
delete: function(t) {
|
|
54
|
+
for (var e = 0; e < i.length; ++e)
|
|
55
|
+
if (i[e][0] === t) {
|
|
56
|
+
i.splice(e, 1);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
get: function(t) {
|
|
61
|
+
for (var e = 0; e < i.length; ++e)
|
|
62
|
+
if (i[e][0] === t)
|
|
63
|
+
return i[e][1];
|
|
64
|
+
},
|
|
65
|
+
set: function(t, e) {
|
|
66
|
+
for (var n = 0; n < i.length; ++n)
|
|
67
|
+
if (i[n][0] === t) {
|
|
68
|
+
i[n][1] = e;
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
i.push([t, e]);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
var Me = function(i) {
|
|
76
|
+
return i ? function() {
|
|
77
|
+
return /* @__PURE__ */ new WeakMap();
|
|
78
|
+
} : Ie;
|
|
79
|
+
}(le);
|
|
80
|
+
function pt(i) {
|
|
81
|
+
return function(e) {
|
|
82
|
+
var n = i || e;
|
|
83
|
+
return function(a, o, c, u, I, p, s) {
|
|
84
|
+
s === void 0 && (s = Me());
|
|
85
|
+
var d = !!a && typeof a == "object", g = !!o && typeof o == "object";
|
|
86
|
+
if (d !== g)
|
|
87
|
+
return !1;
|
|
88
|
+
if (!d && !g)
|
|
89
|
+
return n(a, o, s);
|
|
90
|
+
var j = s.get(a);
|
|
91
|
+
if (j && s.get(o))
|
|
92
|
+
return j === o;
|
|
93
|
+
s.set(a, o), s.set(o, a);
|
|
94
|
+
var m = n(a, o, s);
|
|
95
|
+
return s.delete(a), s.delete(o), m;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function ge(i, t, e, n) {
|
|
100
|
+
var r = i.length;
|
|
101
|
+
if (t.length !== r)
|
|
102
|
+
return !1;
|
|
103
|
+
for (; r-- > 0; )
|
|
104
|
+
if (!e(i[r], t[r], r, r, i, t, n))
|
|
105
|
+
return !1;
|
|
106
|
+
return !0;
|
|
107
|
+
}
|
|
108
|
+
function de(i, t, e, n) {
|
|
109
|
+
var r = i.size === t.size;
|
|
110
|
+
if (r && i.size) {
|
|
111
|
+
var a = {}, o = 0;
|
|
112
|
+
i.forEach(function(c, u) {
|
|
113
|
+
if (r) {
|
|
114
|
+
var I = !1, p = 0;
|
|
115
|
+
t.forEach(function(s, d) {
|
|
116
|
+
!I && !a[p] && (I = e(u, d, o, p, i, t, n) && e(c, s, u, d, i, t, n), I && (a[p] = !0)), p++;
|
|
117
|
+
}), o++, r = I;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
return r;
|
|
122
|
+
}
|
|
123
|
+
var je = "_owner", me = Function.prototype.bind.call(Function.prototype.call, Object.prototype.hasOwnProperty);
|
|
124
|
+
function st(i, t, e, n) {
|
|
125
|
+
var r = at(i), a = r.length;
|
|
126
|
+
if (at(t).length !== a)
|
|
127
|
+
return !1;
|
|
128
|
+
if (a)
|
|
129
|
+
for (var o = void 0; a-- > 0; ) {
|
|
130
|
+
if (o = r[a], o === je) {
|
|
131
|
+
var c = ct(i), u = ct(t);
|
|
132
|
+
if ((c || u) && c !== u)
|
|
133
|
+
return !1;
|
|
134
|
+
}
|
|
135
|
+
if (!me(t, o) || !e(i[o], t[o], o, o, i, t, n))
|
|
136
|
+
return !1;
|
|
137
|
+
}
|
|
138
|
+
return !0;
|
|
139
|
+
}
|
|
140
|
+
var pe = function() {
|
|
141
|
+
return /foo/g.flags === "g" ? function(t, e) {
|
|
142
|
+
return t.source === e.source && t.flags === e.flags;
|
|
143
|
+
} : function(t, e) {
|
|
144
|
+
return t.source === e.source && t.global === e.global && t.ignoreCase === e.ignoreCase && t.multiline === e.multiline && t.unicode === e.unicode && t.sticky === e.sticky && t.lastIndex === e.lastIndex;
|
|
145
|
+
};
|
|
146
|
+
}();
|
|
147
|
+
function Le(i, t, e, n) {
|
|
148
|
+
var r = i.size === t.size;
|
|
149
|
+
if (r && i.size) {
|
|
150
|
+
var a = {};
|
|
151
|
+
i.forEach(function(o, c) {
|
|
152
|
+
if (r) {
|
|
153
|
+
var u = !1, I = 0;
|
|
154
|
+
t.forEach(function(p, s) {
|
|
155
|
+
!u && !a[I] && (u = e(o, p, c, s, i, t, n), u && (a[I] = !0)), I++;
|
|
156
|
+
}), r = u;
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
return r;
|
|
161
|
+
}
|
|
162
|
+
var ye = typeof Map == "function", fe = typeof Set == "function", ut = Object.prototype.valueOf;
|
|
163
|
+
function R(i) {
|
|
164
|
+
var t = (
|
|
165
|
+
/* eslint-disable no-use-before-define */
|
|
166
|
+
typeof i == "function" ? i(e) : function(n, r, a, o, c, u, I) {
|
|
167
|
+
return e(n, r, I);
|
|
168
|
+
}
|
|
169
|
+
);
|
|
170
|
+
function e(n, r, a) {
|
|
171
|
+
if (n === r)
|
|
172
|
+
return !0;
|
|
173
|
+
if (n && r && typeof n == "object" && typeof r == "object") {
|
|
174
|
+
if (rt(n) && rt(r))
|
|
175
|
+
return st(n, r, t, a);
|
|
176
|
+
var o = Array.isArray(n), c = Array.isArray(r);
|
|
177
|
+
return o || c ? o === c && ge(n, r, t, a) : (o = n instanceof Date, c = r instanceof Date, o || c ? o === c && U(n.getTime(), r.getTime()) : (o = n instanceof RegExp, c = r instanceof RegExp, o || c ? o === c && pe(n, r) : ot(n) || ot(r) ? n === r : ye && (o = n instanceof Map, c = r instanceof Map, o || c) ? o === c && de(n, r, t, a) : fe && (o = n instanceof Set, c = r instanceof Set, o || c) ? o === c && Le(n, r, t, a) : n.valueOf !== ut || r.valueOf !== ut ? U(n.valueOf(), r.valueOf()) : st(n, r, t, a)));
|
|
178
|
+
}
|
|
179
|
+
return n !== n && r !== r;
|
|
180
|
+
}
|
|
181
|
+
return e;
|
|
182
|
+
}
|
|
183
|
+
R();
|
|
184
|
+
R(function() {
|
|
185
|
+
return U;
|
|
186
|
+
});
|
|
187
|
+
R(pt());
|
|
188
|
+
R(pt(U));
|
|
189
|
+
const S = ([i, t]) => ({
|
|
190
|
+
lng: i,
|
|
191
|
+
lat: t
|
|
192
|
+
}), K = (i) => {
|
|
193
|
+
const t = [], e = i.split("*");
|
|
194
|
+
for (const [n, r] of e.entries())
|
|
195
|
+
r && t.push({ value: r, type: n % 2 === 0 ? "normal" : "emphasize" });
|
|
196
|
+
return t;
|
|
197
|
+
}, Lt = (i) => `${i.charAt(2).toLocaleLowerCase()}${i.slice(3)}`, yt = (i) => i.slice(2).toLowerCase(), ft = R((i) => (t, e) => nt(t) || nt(e) ? new google.maps.LatLng(t).equals(new google.maps.LatLng(e)) : i(t, e));
|
|
198
|
+
function At() {
|
|
199
|
+
let i;
|
|
200
|
+
return function(e) {
|
|
201
|
+
return ft(e, i) || (i = e), i;
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
function O(i, t, e) {
|
|
205
|
+
const n = At();
|
|
206
|
+
return X(() => n(i()), t, {
|
|
207
|
+
immediate: !1,
|
|
208
|
+
flush: "post",
|
|
209
|
+
...e
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
function Nt(i, t, e) {
|
|
213
|
+
const n = At();
|
|
214
|
+
return X(() => n(i()), t, {
|
|
215
|
+
immediate: !0,
|
|
216
|
+
flush: "post",
|
|
217
|
+
...e
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
function Ae(i) {
|
|
221
|
+
return `set${i.charAt(0).toUpperCase()}${i.slice(1)}`;
|
|
222
|
+
}
|
|
223
|
+
function Ne(i, t, e, n) {
|
|
224
|
+
const r = e.map(
|
|
225
|
+
({ name: a }) => () => t[a]
|
|
226
|
+
);
|
|
227
|
+
X(
|
|
228
|
+
r,
|
|
229
|
+
(a, o) => {
|
|
230
|
+
const c = i.value;
|
|
231
|
+
if (c)
|
|
232
|
+
for (const [u, I] of a.entries()) {
|
|
233
|
+
const { name: p, defaultValue: s } = e[u], d = o[u];
|
|
234
|
+
ft(I, d) || c[Ae(p)](I ?? s);
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
immediate: !0,
|
|
239
|
+
flush: "post",
|
|
240
|
+
...n
|
|
241
|
+
}
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
function et(i, t, e, n) {
|
|
245
|
+
return Ne(i, t, e, {
|
|
246
|
+
immediate: !1,
|
|
247
|
+
...n
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
function ve(i, t, e, n) {
|
|
251
|
+
x((r) => {
|
|
252
|
+
const a = i.value;
|
|
253
|
+
if (!a)
|
|
254
|
+
return;
|
|
255
|
+
const o = [];
|
|
256
|
+
for (const c of n) {
|
|
257
|
+
const u = Lt(c), I = yt(c), p = (s) => e(u, s);
|
|
258
|
+
a.on(I, p), o.push(() => a == null ? void 0 : a.off(I, p));
|
|
259
|
+
}
|
|
260
|
+
r(() => {
|
|
261
|
+
for (const c of o)
|
|
262
|
+
c();
|
|
263
|
+
});
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
function Se(i, t, e, n) {
|
|
267
|
+
x((r) => {
|
|
268
|
+
const a = i.value;
|
|
269
|
+
if (!a)
|
|
270
|
+
return;
|
|
271
|
+
const o = [];
|
|
272
|
+
for (const c of n) {
|
|
273
|
+
const u = Lt(c), I = yt(c), p = (d) => e(u, d), s = a.addListener(I, p);
|
|
274
|
+
o.push(() => google.maps.event.removeListener(s));
|
|
275
|
+
}
|
|
276
|
+
r(() => {
|
|
277
|
+
for (const c of o)
|
|
278
|
+
c();
|
|
279
|
+
});
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
const vt = Symbol(), St = () => q(vt), De = (i) => tt(vt, i), Z = M(function(t) {
|
|
283
|
+
const e = v(), n = St();
|
|
284
|
+
return $(() => {
|
|
285
|
+
e.value = new AMap.Marker({ ...t });
|
|
286
|
+
}), F(() => {
|
|
287
|
+
var r;
|
|
288
|
+
(r = e.value) == null || r.setMap(null);
|
|
289
|
+
}), x(() => {
|
|
290
|
+
var a;
|
|
291
|
+
const r = n == null ? void 0 : n.value;
|
|
292
|
+
r && ((a = e.value) == null || a.setMap(r));
|
|
293
|
+
}), et(e, t, [
|
|
294
|
+
{ name: "anchor", defaultValue: "" },
|
|
295
|
+
{ name: "offset", defaultValue: [0, 0] },
|
|
296
|
+
{ name: "clickable", defaultValue: !1 },
|
|
297
|
+
{ name: "position", defaultValue: [0, 0] },
|
|
298
|
+
{ name: "angle", defaultValue: 0 },
|
|
299
|
+
{ name: "label", defaultValue: void 0 },
|
|
300
|
+
{ name: "zIndex", defaultValue: 0 },
|
|
301
|
+
{ name: "icon", defaultValue: "" },
|
|
302
|
+
{ name: "draggable", defaultValue: !1 },
|
|
303
|
+
{ name: "cursor", defaultValue: "" },
|
|
304
|
+
{ name: "content", defaultValue: "" },
|
|
305
|
+
{ name: "title", defaultValue: "" },
|
|
306
|
+
{ name: "extData", defaultValue: "" }
|
|
307
|
+
]), () => null;
|
|
308
|
+
}), Dt = Symbol(), Ct = () => q(Dt), Ce = (i) => tt(Dt, i), h = M(function(t) {
|
|
309
|
+
const e = v(), n = Ct();
|
|
310
|
+
return $(() => {
|
|
311
|
+
e.value = new google.maps.marker.AdvancedMarkerView({ ...t });
|
|
312
|
+
}), F(() => {
|
|
313
|
+
e.value && (e.value.map = null);
|
|
314
|
+
}), x(() => {
|
|
315
|
+
const r = n == null ? void 0 : n.value;
|
|
316
|
+
!r || !e.value || (e.value.map = r);
|
|
317
|
+
}), O(
|
|
318
|
+
() => {
|
|
319
|
+
const { content: r, ...a } = t;
|
|
320
|
+
return a;
|
|
321
|
+
},
|
|
322
|
+
(r) => {
|
|
323
|
+
if (e.value) {
|
|
324
|
+
debugger;
|
|
325
|
+
Object.assign(e.value, r);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
), X(
|
|
329
|
+
() => t.content,
|
|
330
|
+
(r) => {
|
|
331
|
+
e.value && (e.value.content = r);
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
flush: "post"
|
|
335
|
+
}
|
|
336
|
+
), () => null;
|
|
337
|
+
}), wt = Symbol(), D = () => {
|
|
338
|
+
const i = q(wt);
|
|
339
|
+
if (!i)
|
|
340
|
+
throw new Error("MyError: useMapSupplier should be under MapProvider");
|
|
341
|
+
return i;
|
|
342
|
+
}, we = (i) => tt(wt, i), N = (i, t, e) => {
|
|
343
|
+
const { class: n, ...r } = t ?? {}, a = document.createElement(i);
|
|
344
|
+
return n && (a.className = n), Object.assign(a, r), e && (a.innerHTML = e), a;
|
|
345
|
+
};
|
|
346
|
+
var zt = "_130jqet1", Zt = "_130jqet0", ht = "_130jqet3", xt = "_130jqet2", bt = "_130jqet4", Pt = "_130jqet6", Et = "_130jqet5";
|
|
347
|
+
const ze = M(function(t) {
|
|
348
|
+
const e = L(() => `
|
|
349
|
+
<div class="${Zt}">
|
|
350
|
+
<div class="${zt}">
|
|
351
|
+
<div>
|
|
352
|
+
<div class="${xt}">${t.title}</div>
|
|
353
|
+
<div class="${ht}">${t.description ?? ""}</div>
|
|
354
|
+
</div>
|
|
355
|
+
<img class="${bt}" src="${mt}" >
|
|
356
|
+
</div>
|
|
357
|
+
<div class="${Et}"></div>
|
|
358
|
+
<img src="${T}" class="${Pt}">
|
|
359
|
+
</div>
|
|
360
|
+
`);
|
|
361
|
+
return () => l(Z, {
|
|
362
|
+
attrs: {
|
|
363
|
+
position: t.position,
|
|
364
|
+
content: e.value,
|
|
365
|
+
anchor: "bottom-center"
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
}), Ze = M(function(t) {
|
|
369
|
+
const e = L(() => N("div", {
|
|
370
|
+
class: Zt
|
|
371
|
+
}, `
|
|
372
|
+
<div class="${zt}">
|
|
373
|
+
<div>
|
|
374
|
+
<div class="${xt}">${t.title}</div>
|
|
375
|
+
<div class="${ht}">${t.description ?? ""}</div>
|
|
376
|
+
</div>
|
|
377
|
+
<img class="${bt}" src="${mt}" >
|
|
378
|
+
</div>
|
|
379
|
+
<div class="${Et}"></div>
|
|
380
|
+
<img src="${T}" class="${Pt}">
|
|
381
|
+
`));
|
|
382
|
+
return () => l(h, {
|
|
383
|
+
attrs: {
|
|
384
|
+
position: S(t.position),
|
|
385
|
+
content: e.value
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
}), he = M(function(t) {
|
|
389
|
+
const e = D();
|
|
390
|
+
return () => C(e.supplier === "gmap" ? Ze : ze, {
|
|
391
|
+
attrs: t
|
|
392
|
+
});
|
|
393
|
+
}), Tt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+";
|
|
394
|
+
var Gt = "tdbf070";
|
|
395
|
+
const xe = M(function(t) {
|
|
396
|
+
const e = L(() => `
|
|
397
|
+
<img src="${Tt}" class="${Gt}">
|
|
398
|
+
`);
|
|
399
|
+
return () => l(Z, {
|
|
400
|
+
attrs: {
|
|
401
|
+
position: t.position,
|
|
402
|
+
content: e.value,
|
|
403
|
+
anchor: "bottom-center"
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
}), be = M(function(t) {
|
|
407
|
+
const e = L(() => N("img", {
|
|
408
|
+
class: Gt,
|
|
409
|
+
src: Tt
|
|
410
|
+
}));
|
|
411
|
+
return () => l(h, {
|
|
412
|
+
attrs: {
|
|
413
|
+
position: S(t.position),
|
|
414
|
+
content: e.value
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
}), ci = M(function(t) {
|
|
418
|
+
const e = D();
|
|
419
|
+
return () => C(e.supplier === "gmap" ? be : xe, {
|
|
420
|
+
attrs: t
|
|
421
|
+
});
|
|
422
|
+
}), k = M(function(t) {
|
|
423
|
+
const e = v(), n = St();
|
|
424
|
+
return $(() => {
|
|
425
|
+
e.value = new AMap.Polyline({ ...t });
|
|
426
|
+
}), F(() => {
|
|
427
|
+
var r;
|
|
428
|
+
(r = e.value) == null || r.setMap(null);
|
|
429
|
+
}), x(() => {
|
|
430
|
+
var a;
|
|
431
|
+
const r = n == null ? void 0 : n.value;
|
|
432
|
+
r && ((a = e.value) == null || a.setMap(r));
|
|
433
|
+
}), et(e, t, [
|
|
434
|
+
{ name: "path", defaultValue: [[0, 0]] },
|
|
435
|
+
{ name: "extData", defaultValue: void 0 },
|
|
436
|
+
{ name: "draggable", defaultValue: !1 }
|
|
437
|
+
]), O(
|
|
438
|
+
() => {
|
|
439
|
+
const { path: r, extData: a, draggable: o, ...c } = t;
|
|
440
|
+
return c;
|
|
441
|
+
},
|
|
442
|
+
(r) => {
|
|
443
|
+
var a;
|
|
444
|
+
(a = e.value) == null || a.setOptions({ ...r });
|
|
445
|
+
}
|
|
446
|
+
), () => null;
|
|
447
|
+
}), W = M(function(t) {
|
|
448
|
+
const e = v(), n = Ct();
|
|
449
|
+
return $(() => {
|
|
450
|
+
e.value = new google.maps.Polyline({ ...t });
|
|
451
|
+
}), F(() => {
|
|
452
|
+
var r;
|
|
453
|
+
(r = e.value) == null || r.setMap(null);
|
|
454
|
+
}), x(() => {
|
|
455
|
+
var a;
|
|
456
|
+
const r = n == null ? void 0 : n.value;
|
|
457
|
+
r && ((a = e.value) == null || a.setMap(r));
|
|
458
|
+
}), O(
|
|
459
|
+
() => ({ ...t }),
|
|
460
|
+
(r) => {
|
|
461
|
+
var a;
|
|
462
|
+
(a = e.value) == null || a.setOptions({ ...r });
|
|
463
|
+
}
|
|
464
|
+
), () => null;
|
|
465
|
+
}), Pe = M(function(t) {
|
|
466
|
+
return () => {
|
|
467
|
+
const e = window.innerWidth * 0.01, n = 2.5 * e, r = 0.35 * e, a = 0.6 * e, o = 1 * e, c = 0.75 * e;
|
|
468
|
+
return l("div", [l(k, {
|
|
469
|
+
attrs: {
|
|
470
|
+
path: t.path,
|
|
471
|
+
strokeWeight: n + 2 * r + 2 * o,
|
|
472
|
+
strokeOpacity: 1,
|
|
473
|
+
strokeColor: "#4175F1",
|
|
474
|
+
lineJoin: "round",
|
|
475
|
+
lineCap: "round"
|
|
476
|
+
}
|
|
477
|
+
}), l(k, {
|
|
478
|
+
attrs: {
|
|
479
|
+
path: t.path,
|
|
480
|
+
strokeWeight: n + 2 * r,
|
|
481
|
+
strokeOpacity: 1,
|
|
482
|
+
strokeColor: "#6C95F5",
|
|
483
|
+
lineJoin: "round",
|
|
484
|
+
lineCap: "round",
|
|
485
|
+
strokeStyle: "dashed",
|
|
486
|
+
strokeDasharray: [c, c * 0.5]
|
|
487
|
+
}
|
|
488
|
+
}), l(k, {
|
|
489
|
+
attrs: {
|
|
490
|
+
path: t.path,
|
|
491
|
+
strokeWeight: n,
|
|
492
|
+
strokeOpacity: 1,
|
|
493
|
+
strokeColor: "#487BF4",
|
|
494
|
+
lineJoin: "round",
|
|
495
|
+
lineCap: "round"
|
|
496
|
+
}
|
|
497
|
+
}), l(k, {
|
|
498
|
+
attrs: {
|
|
499
|
+
showDir: !0,
|
|
500
|
+
path: t.path,
|
|
501
|
+
strokeWeight: n + 2 * a,
|
|
502
|
+
strokeOpacity: 1,
|
|
503
|
+
strokeColor: "transparent",
|
|
504
|
+
lineJoin: "round",
|
|
505
|
+
lineCap: "round"
|
|
506
|
+
}
|
|
507
|
+
})]);
|
|
508
|
+
};
|
|
509
|
+
}), Ee = M(function(t) {
|
|
510
|
+
const e = L(() => t.path.map(S));
|
|
511
|
+
return () => {
|
|
512
|
+
const n = window.innerWidth * 0.01, r = 10 * n, a = 2.5 * n, o = 0.35 * n, c = 0.75 * n, u = 1 * n;
|
|
513
|
+
return l("div", [l(W, {
|
|
514
|
+
attrs: {
|
|
515
|
+
path: e.value,
|
|
516
|
+
strokeWeight: a + 2 * o + 2 * u,
|
|
517
|
+
strokeOpacity: 1,
|
|
518
|
+
strokeColor: "#4175F1"
|
|
519
|
+
}
|
|
520
|
+
}), l(W, {
|
|
521
|
+
attrs: {
|
|
522
|
+
path: e.value,
|
|
523
|
+
icons: [{
|
|
524
|
+
icon: {
|
|
525
|
+
path: "M 0,-0.5 0,0.5",
|
|
526
|
+
strokeWeight: a + 2 * o,
|
|
527
|
+
strokeColor: "#6C95F5",
|
|
528
|
+
fillColor: "#6C95F5",
|
|
529
|
+
scale: 1
|
|
530
|
+
},
|
|
531
|
+
repeat: `${a}px`,
|
|
532
|
+
offset: `${a / 2}px`
|
|
533
|
+
}]
|
|
534
|
+
}
|
|
535
|
+
}), l(W, {
|
|
536
|
+
attrs: {
|
|
537
|
+
path: e.value,
|
|
538
|
+
strokeWeight: a,
|
|
539
|
+
strokeOpacity: 1,
|
|
540
|
+
strokeColor: "#487BF4",
|
|
541
|
+
icons: [{
|
|
542
|
+
icon: {
|
|
543
|
+
path: google.maps.SymbolPath.FORWARD_OPEN_ARROW,
|
|
544
|
+
strokeColor: "white",
|
|
545
|
+
strokeWeight: c,
|
|
546
|
+
// todo: 3 maybe not responsive
|
|
547
|
+
scale: 3
|
|
548
|
+
},
|
|
549
|
+
repeat: `${r}px`
|
|
550
|
+
}]
|
|
551
|
+
}
|
|
552
|
+
})]);
|
|
553
|
+
};
|
|
554
|
+
}), si = M(function(t) {
|
|
555
|
+
const e = D();
|
|
556
|
+
return () => C(e.supplier === "gmap" ? Ee : Pe, {
|
|
557
|
+
attrs: t
|
|
558
|
+
});
|
|
559
|
+
}), kt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjEiIGhlaWdodD0iNjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTcuMSUiIHk9Ii03LjElIiB3aWR0aD0iMTE0LjMlIiBoZWlnaHQ9IjExNC4zJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4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(t) {
|
|
562
|
+
const e = L(() => `
|
|
563
|
+
<img src="${kt}" class="${Rt}">
|
|
564
|
+
`);
|
|
565
|
+
return () => l(Z, {
|
|
566
|
+
attrs: {
|
|
567
|
+
position: t.position,
|
|
568
|
+
content: e.value,
|
|
569
|
+
anchor: "bottom-center"
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
}), Ge = M(function(t) {
|
|
573
|
+
const e = L(() => N("img", {
|
|
574
|
+
class: Rt,
|
|
575
|
+
src: kt
|
|
576
|
+
}));
|
|
577
|
+
return () => l(h, {
|
|
578
|
+
attrs: {
|
|
579
|
+
position: S(t.position),
|
|
580
|
+
content: e.value
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
}), ui = M(function(t) {
|
|
584
|
+
const e = D();
|
|
585
|
+
return () => C(e.supplier === "gmap" ? Ge : Te, {
|
|
586
|
+
attrs: t
|
|
587
|
+
});
|
|
588
|
+
});
|
|
589
|
+
var Ot = /* @__PURE__ */ ((i) => (i.topLeft = "top-left", i.topCenter = "top-center", i.topRight = "top-right", i.middleLeft = "middle-left", i.center = "center", i.middleRight = "middle-right", i.bottomLeft = "bottom-left", i.bottomCenter = "bottom-center", i.bottomRight = "bottom-right", i))(Ot || {});
|
|
590
|
+
var lt = "_21u5t51", It = "_21u5t52", Wt = "_21u5t54", Ut = "_21u5t50", Y = "_21u5t53";
|
|
591
|
+
const Yt = M(function(t) {
|
|
592
|
+
const e = L(() => `
|
|
593
|
+
<div class="${Ut}" >
|
|
594
|
+
<img class="${Y} ${lt}" src="${T}">
|
|
595
|
+
<div class="${Wt}">${t.label}</div>
|
|
596
|
+
</div>
|
|
597
|
+
`), n = L(() => `<img class="${Y} ${lt}" src="${T}">`);
|
|
598
|
+
return () => l(Z, {
|
|
599
|
+
attrs: {
|
|
600
|
+
position: t.position,
|
|
601
|
+
content: t.label ? e.value : n.value,
|
|
602
|
+
anchor: Ot.middleLeft
|
|
603
|
+
}
|
|
604
|
+
});
|
|
605
|
+
}), Bt = M(function(t) {
|
|
606
|
+
const e = L(() => N("div", {
|
|
607
|
+
class: `${Ut} ${It}`
|
|
608
|
+
}, `
|
|
609
|
+
<img class="${Y}" src="${T}">
|
|
610
|
+
<div class="${Wt}">${t.label}</div>
|
|
611
|
+
`)), n = L(() => N("img", {
|
|
612
|
+
class: `${Y} ${It}`,
|
|
613
|
+
src: T
|
|
614
|
+
}));
|
|
615
|
+
return () => l(h, {
|
|
616
|
+
attrs: {
|
|
617
|
+
position: S(t.position),
|
|
618
|
+
content: t.label ? e.value : n.value
|
|
619
|
+
}
|
|
620
|
+
});
|
|
621
|
+
}), li = M(function(t) {
|
|
622
|
+
const e = D();
|
|
623
|
+
return () => C(e.supplier === "gmap" ? Bt : Yt, {
|
|
624
|
+
attrs: t
|
|
625
|
+
});
|
|
626
|
+
}), Ht = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjg0NDciIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkY4QjRBIiBvZmZzZXQ9IjUwLjU5NiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZBOTVBIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xMiAzMC4yMTVjMi4xMzQgMCAzLjg2My0uODkzIDMuODYzLTEuOTk1IDAtMS4xLTEuNzMtMS45OTQtMy44NjMtMS45OTQtMi4xMzQgMC0zLjg2My44OTMtMy44NjMgMS45OTQgMCAxLjEwMiAxLjcz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PSJldmVub2RkIj48cGF0aCBkPSJNMTIgMzAuMjE1YzEuOTUgMCAzLjUzMi0uODE2IDMuNTMyLTEuODIzIDAtMS4wMDctMS41ODEtMS44MjMtMy41MzItMS44MjMtMS45NSAwLTMuNTMyLjgxNi0zLjUzMiAxLjgyMyAwIDEuMDA3IDEuNTgxIDEuODIzIDMuNTMyIDEuODIzeiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyN2MyLjEyOCAwLS45LTMuNzQyIDUuNjIxLTYuNjQxIDMuMjIxLTEuOTEgNS4zNzktNS40MSA1LjM3OS05LjQxMkMyMiA0LjkwMSAxNy4wNzUgMCAxMSAwUzAgNC45MDEgMCAxMC45NDdjMCAzLjkxOCAyLjA2OCA3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
|
|
627
|
+
function ke(i, t, e) {
|
|
628
|
+
return t in i ? Object.defineProperty(i, t, {
|
|
629
|
+
value: e,
|
|
630
|
+
enumerable: !0,
|
|
631
|
+
configurable: !0,
|
|
632
|
+
writable: !0
|
|
633
|
+
}) : i[t] = e, i;
|
|
634
|
+
}
|
|
635
|
+
function Mt(i, t) {
|
|
636
|
+
var e = Object.keys(i);
|
|
637
|
+
if (Object.getOwnPropertySymbols) {
|
|
638
|
+
var n = Object.getOwnPropertySymbols(i);
|
|
639
|
+
t && (n = n.filter(function(r) {
|
|
640
|
+
return Object.getOwnPropertyDescriptor(i, r).enumerable;
|
|
641
|
+
})), e.push.apply(e, n);
|
|
642
|
+
}
|
|
643
|
+
return e;
|
|
644
|
+
}
|
|
645
|
+
function gt(i) {
|
|
646
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
647
|
+
var e = arguments[t] != null ? arguments[t] : {};
|
|
648
|
+
t % 2 ? Mt(Object(e), !0).forEach(function(n) {
|
|
649
|
+
ke(i, n, e[n]);
|
|
650
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : Mt(Object(e)).forEach(function(n) {
|
|
651
|
+
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(e, n));
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
return i;
|
|
655
|
+
}
|
|
656
|
+
var Re = (i, t, e) => {
|
|
657
|
+
for (var n of Object.keys(i)) {
|
|
658
|
+
var r;
|
|
659
|
+
if (i[n] !== ((r = t[n]) !== null && r !== void 0 ? r : e[n]))
|
|
660
|
+
return !1;
|
|
661
|
+
}
|
|
662
|
+
return !0;
|
|
663
|
+
}, Oe = (i) => (t) => {
|
|
664
|
+
var e = i.defaultClassName, n = gt(gt({}, i.defaultVariants), t);
|
|
665
|
+
for (var r in n) {
|
|
666
|
+
var a, o = (a = n[r]) !== null && a !== void 0 ? a : i.defaultVariants[r];
|
|
667
|
+
if (o != null) {
|
|
668
|
+
var c = o;
|
|
669
|
+
typeof c == "boolean" && (c = c === !0 ? "true" : "false");
|
|
670
|
+
var u = (
|
|
671
|
+
// @ts-expect-error
|
|
672
|
+
i.variantClassNames[r][c]
|
|
673
|
+
);
|
|
674
|
+
u && (e += " " + u);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
for (var [I, p] of i.compoundVariants)
|
|
678
|
+
Re(I, n, i.defaultVariants) && (e += " " + p);
|
|
679
|
+
return e;
|
|
680
|
+
}, E = Oe({ defaultClassName: "", variantClassNames: { type: { start: "in1agy6", end: "in1agy7" } }, defaultVariants: {}, compoundVariants: [] }), Jt = "in1agy1", Vt = "in1agy4", Xt = "in1agy5", $t = "in1agy3", B = "in1agy0", Ft = "in1agy2";
|
|
681
|
+
const We = M(function(t) {
|
|
682
|
+
const e = L(() => {
|
|
683
|
+
const n = t.type === "start" ? Qt : Ht, r = t.description ? K(t.description).map((a) => a.type === "normal" ? a.value : `<span class="${Xt}">${a.value}</span>`).join("") : "";
|
|
684
|
+
return !t.description && !t.title ? `<img src="${n}" class="${E({
|
|
685
|
+
type: t.type
|
|
686
|
+
})}">` : t.description ? `
|
|
687
|
+
<div class="${B}">
|
|
688
|
+
<div class="${Jt}">
|
|
689
|
+
<div class="${$t}">${t.title ?? ""}</div>
|
|
690
|
+
<div class="${Vt}">${r}</div>
|
|
691
|
+
</div>
|
|
692
|
+
<img src="${n}" class="${E({
|
|
693
|
+
type: t.type
|
|
694
|
+
})}">
|
|
695
|
+
</div>
|
|
696
|
+
` : `
|
|
697
|
+
<div class="${B}">
|
|
698
|
+
<div class="${Ft}">${t.title}</div>
|
|
699
|
+
<img src="${n}" class="${E({
|
|
700
|
+
type: t.type
|
|
701
|
+
})}">
|
|
702
|
+
</div>
|
|
703
|
+
`;
|
|
704
|
+
});
|
|
705
|
+
return () => l(Z, {
|
|
706
|
+
attrs: {
|
|
707
|
+
position: t.position,
|
|
708
|
+
content: e.value,
|
|
709
|
+
anchor: "bottom-center"
|
|
710
|
+
}
|
|
711
|
+
});
|
|
712
|
+
}), Ue = M(function(t) {
|
|
713
|
+
const e = L(() => {
|
|
714
|
+
const n = t.type === "start" ? Qt : Ht, r = t.description ? K(t.description).map((a) => a.type === "normal" ? a.value : `<span class="${Xt}">${a.value}</span>`).join("") : "";
|
|
715
|
+
return !t.description && !t.title ? N("img", {
|
|
716
|
+
class: E({
|
|
717
|
+
type: t.type
|
|
718
|
+
}),
|
|
719
|
+
src: n
|
|
720
|
+
}) : t.description ? N("div", {
|
|
721
|
+
class: B
|
|
722
|
+
}, `
|
|
723
|
+
<div class="${Jt}">
|
|
724
|
+
<div class="${$t}">${t.title ?? ""}</div>
|
|
725
|
+
<div class="${Vt}">${r}</div>
|
|
726
|
+
</div>
|
|
727
|
+
<img src="${n}" class="${E({
|
|
728
|
+
type: t.type
|
|
729
|
+
})}">
|
|
730
|
+
`) : N("div", {
|
|
731
|
+
class: B
|
|
732
|
+
}, `
|
|
733
|
+
<div class="${Ft}">${t.title}</div>
|
|
734
|
+
<img src="${n}" class="${E({
|
|
735
|
+
type: t.type
|
|
736
|
+
})}">
|
|
737
|
+
`);
|
|
738
|
+
});
|
|
739
|
+
return () => l(h, {
|
|
740
|
+
attrs: {
|
|
741
|
+
position: S(t.position),
|
|
742
|
+
content: e.value
|
|
743
|
+
}
|
|
744
|
+
});
|
|
745
|
+
}), Ii = M(function(t) {
|
|
746
|
+
const e = D();
|
|
747
|
+
return () => C(e.supplier === "gmap" ? Ue : We, {
|
|
748
|
+
attrs: t
|
|
749
|
+
});
|
|
750
|
+
}), H = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0zNC4wODcgMTAuOTZjMCAyLjM2OS0uMDU0IDIuOTgtLjc4MiAzLjcwNC0uNzkzLjc5LTUuMjM2LjgzMy01LjIzNi44MzNsLTQuMTE2LjE5Mi05Ljg5Ni0uMTQ0cy03Ljc5LS4wMjYtOS4xMzEtLjAyNmMtMS4zNDIgMC0yLjQwNi0uODQ3LTIuNDA2LS44NDdDLjE0IDEyLjkzMiAwIDExLjA5IDAgMTEuMDlWNS44NnMuMTQtMS44NDIgMi41Mi0zLjU4M2MwI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NTEzLjI3OC0zIC41NC00LjkxMi41NC0xLjg0NyAwLTMuMjg5LS4yNS00Ljc1LS41MTF2LS4wMDhjLjAzLS4xMzEuMDU1LS4yMzMuMDYtLjI5LjIxOC0xLjc0NC4zOC0yLjE3My4yMzMtNS4wNTN6IiBmaWxsPSIjRjJGQUZGIi8+PHBhdGggZD0iTTEyLjA2NyAxOS43MTZsLTQuNjQ1LjY5MmMtLjQzMS0yLjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";
|
|
751
|
+
var Q = "_15yrkbw1", Kt = "in1agy5", _t = "in1agy0", qt = "in1agy2";
|
|
752
|
+
const Ye = M(function(t) {
|
|
753
|
+
const e = L(() => {
|
|
754
|
+
const n = t.title ? K(t.title).map((a) => a.type === "normal" ? a.value : `<span class="${Kt}">${a.value}</span>`).join("") : "";
|
|
755
|
+
if (!t.title)
|
|
756
|
+
return `<img src="${H}" class="${Q}">`;
|
|
757
|
+
const r = `transform:rotate(${t.angle ?? 0}deg)`;
|
|
758
|
+
return `
|
|
759
|
+
<div class="${_t}">
|
|
760
|
+
<div class="${qt}">${n}</div>
|
|
761
|
+
<img src="${H}" class="${Q}" style="${r}">
|
|
762
|
+
</div>
|
|
763
|
+
`;
|
|
764
|
+
});
|
|
765
|
+
return () => l(Z, {
|
|
766
|
+
attrs: {
|
|
767
|
+
position: t.position,
|
|
768
|
+
content: e.value,
|
|
769
|
+
anchor: "bottom-center"
|
|
770
|
+
}
|
|
771
|
+
});
|
|
772
|
+
}), Be = M(function(t) {
|
|
773
|
+
const e = L(() => {
|
|
774
|
+
const n = t.title ? K(t.title).map((a) => a.type === "normal" ? a.value : `<span class="${Kt}">${a.value}</span>`).join("") : "";
|
|
775
|
+
if (!t.title)
|
|
776
|
+
return N("img", {
|
|
777
|
+
class: Q,
|
|
778
|
+
src: H
|
|
779
|
+
});
|
|
780
|
+
const r = `transform:rotate(${t.angle ?? 0}deg)`;
|
|
781
|
+
return N("div", {
|
|
782
|
+
class: _t
|
|
783
|
+
}, `
|
|
784
|
+
<div class="${qt}">${n}</div>
|
|
785
|
+
<img src="${H}" class="${Q}" style="${r}">
|
|
786
|
+
`);
|
|
787
|
+
});
|
|
788
|
+
return () => l(h, {
|
|
789
|
+
attrs: {
|
|
790
|
+
position: S(t.position),
|
|
791
|
+
content: e.value
|
|
792
|
+
}
|
|
793
|
+
});
|
|
794
|
+
}), Mi = M(function(t) {
|
|
795
|
+
const e = D();
|
|
796
|
+
return () => C(e.supplier === "gmap" ? Be : Ye, {
|
|
797
|
+
attrs: t
|
|
798
|
+
});
|
|
799
|
+
}), He = M(function(t) {
|
|
800
|
+
return () => {
|
|
801
|
+
const n = 2 * (window.innerWidth * 0.01);
|
|
802
|
+
return l(k, {
|
|
803
|
+
attrs: {
|
|
804
|
+
path: t.path,
|
|
805
|
+
strokeWeight: n,
|
|
806
|
+
strokeOpacity: 1,
|
|
807
|
+
strokeColor: "#38A3FE",
|
|
808
|
+
strokeStyle: "dashed",
|
|
809
|
+
strokeDasharray: [n, n * 1.5],
|
|
810
|
+
lineJoin: "round",
|
|
811
|
+
lineCap: "round"
|
|
812
|
+
}
|
|
813
|
+
});
|
|
814
|
+
};
|
|
815
|
+
}), Qe = M(function(t) {
|
|
816
|
+
const e = L(() => t.path.map(S));
|
|
817
|
+
return () => {
|
|
818
|
+
const r = 2 * (window.innerWidth * 0.01), a = r / 4;
|
|
819
|
+
return l(W, {
|
|
820
|
+
attrs: {
|
|
821
|
+
path: e.value,
|
|
822
|
+
strokeWeight: r,
|
|
823
|
+
strokeOpacity: 1,
|
|
824
|
+
strokeColor: "transparent",
|
|
825
|
+
icons: [{
|
|
826
|
+
icon: {
|
|
827
|
+
path: `
|
|
828
|
+
M ${a}, ${a}
|
|
829
|
+
m -${a}, 0
|
|
830
|
+
a ${a},${a} 0 1,0 ${2 * a},0
|
|
831
|
+
a ${a},${a} 0 1,0 -${2 * a},0
|
|
832
|
+
`,
|
|
833
|
+
strokeColor: "#38A3FE",
|
|
834
|
+
fillColor: "#38A3FE",
|
|
835
|
+
fillOpacity: 1,
|
|
836
|
+
strokeOpacity: 1,
|
|
837
|
+
strokeWeight: r / 2,
|
|
838
|
+
scale: 1
|
|
839
|
+
},
|
|
840
|
+
repeat: `${r * 2}px`
|
|
841
|
+
}]
|
|
842
|
+
}
|
|
843
|
+
});
|
|
844
|
+
};
|
|
845
|
+
}), gi = M(function(t) {
|
|
846
|
+
const e = D();
|
|
847
|
+
return () => C(e.supplier === "gmap" ? Qe : He, {
|
|
848
|
+
attrs: t
|
|
849
|
+
});
|
|
850
|
+
}), J = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";
|
|
851
|
+
var te = "sjs3323", V = "sjs3322";
|
|
852
|
+
const Je = M(function(t) {
|
|
853
|
+
const e = L(() => `<img src="${J}" class="${V}">`), n = L(() => `<img src="${J}" class="${V} ${te}">`);
|
|
854
|
+
return () => l("div", [l(Z, {
|
|
855
|
+
attrs: {
|
|
856
|
+
position: t.position,
|
|
857
|
+
anchor: "bottom-center",
|
|
858
|
+
content: e.value
|
|
859
|
+
}
|
|
860
|
+
}), l(Z, {
|
|
861
|
+
attrs: {
|
|
862
|
+
position: t.position,
|
|
863
|
+
anchor: "bottom-center",
|
|
864
|
+
content: n.value
|
|
865
|
+
}
|
|
866
|
+
})]);
|
|
867
|
+
}), ee = M(function(t) {
|
|
868
|
+
const e = L(() => N("img", {
|
|
869
|
+
class: V,
|
|
870
|
+
src: J
|
|
871
|
+
})), n = L(() => N("img", {
|
|
872
|
+
class: `${V} ${te}`,
|
|
873
|
+
src: J
|
|
874
|
+
}));
|
|
875
|
+
return () => {
|
|
876
|
+
const r = S(t.position);
|
|
877
|
+
return l("div", [l(h, {
|
|
878
|
+
attrs: {
|
|
879
|
+
position: r,
|
|
880
|
+
content: e.value
|
|
881
|
+
}
|
|
882
|
+
}), l(h, {
|
|
883
|
+
attrs: {
|
|
884
|
+
position: r,
|
|
885
|
+
content: n.value
|
|
886
|
+
}
|
|
887
|
+
})]);
|
|
888
|
+
};
|
|
889
|
+
}), di = M(function(t) {
|
|
890
|
+
const e = D();
|
|
891
|
+
return () => C(e.supplier === "gmap" ? ee : Je, {
|
|
892
|
+
attrs: t
|
|
893
|
+
});
|
|
894
|
+
});
|
|
895
|
+
var Ve = "suvaqb0";
|
|
896
|
+
const ie = M(function(t, { slots: e, emit: n }) {
|
|
897
|
+
const { onMapMove: r, ...a } = t, o = L(() => ({
|
|
898
|
+
dragEnable: !!t.dragEnable,
|
|
899
|
+
zoomEnable: !!t.zoomEnable,
|
|
900
|
+
jogEnable: !!t.jogEnable,
|
|
901
|
+
pitchEnable: !!t.pitchEnable,
|
|
902
|
+
rotateEnable: !!t.rotateEnable,
|
|
903
|
+
animateEnable: !!t.animateEnable,
|
|
904
|
+
keyboardEnable: !!t.keyboardEnable
|
|
905
|
+
})), c = v(), u = v();
|
|
906
|
+
return De(u), x(() => {
|
|
907
|
+
u.value || !c.value || (u.value = new AMap.Map(c.value, { ...a }));
|
|
908
|
+
}), O(
|
|
909
|
+
() => o.value,
|
|
910
|
+
(I) => {
|
|
911
|
+
var p;
|
|
912
|
+
(p = u.value) == null || p.setStatus(I);
|
|
913
|
+
}
|
|
914
|
+
), et(u, t, [
|
|
915
|
+
{ name: "center", defaultValue: [0, 0] },
|
|
916
|
+
{ name: "zooms", defaultValue: [0, 0] },
|
|
917
|
+
{ name: "zoom", defaultValue: 0 },
|
|
918
|
+
{ name: "layers", defaultValue: [] },
|
|
919
|
+
{ name: "limitBounds", defaultValue: [] },
|
|
920
|
+
{ name: "rotation", defaultValue: 0 },
|
|
921
|
+
{ name: "defaultCursor", defaultValue: "" },
|
|
922
|
+
{ name: "mapStyle", defaultValue: "" },
|
|
923
|
+
{ name: "features", defaultValue: [] },
|
|
924
|
+
{ name: "pitch", defaultValue: 0 },
|
|
925
|
+
{ name: "mask", defaultValue: [] },
|
|
926
|
+
{ name: "labelRejectMask", defaultValue: !1 }
|
|
927
|
+
]), ve(u, t, n, ["onMapMove"]), () => {
|
|
928
|
+
var I;
|
|
929
|
+
return l("div", { ref: c, class: Ve }, (I = e.default) == null ? void 0 : I.call(e));
|
|
930
|
+
};
|
|
931
|
+
});
|
|
932
|
+
var _ = {}, Xe = {
|
|
933
|
+
get exports() {
|
|
934
|
+
return _;
|
|
935
|
+
},
|
|
936
|
+
set exports(i) {
|
|
937
|
+
_ = i;
|
|
938
|
+
}
|
|
939
|
+
};
|
|
940
|
+
(function(i, t) {
|
|
941
|
+
(function(e, n) {
|
|
942
|
+
i.exports = n();
|
|
943
|
+
})(se, function() {
|
|
944
|
+
function e(s) {
|
|
945
|
+
var d = [];
|
|
946
|
+
return s.AMapUI && d.push(n(s.AMapUI)), s.Loca && d.push(r(s.Loca)), Promise.all(d);
|
|
947
|
+
}
|
|
948
|
+
function n(s) {
|
|
949
|
+
return new Promise(function(d, g) {
|
|
950
|
+
var j = [];
|
|
951
|
+
if (s.plugins)
|
|
952
|
+
for (var m = 0; m < s.plugins.length; m += 1)
|
|
953
|
+
o.AMapUI.plugins.indexOf(s.plugins[m]) == -1 && j.push(s.plugins[m]);
|
|
954
|
+
if (c.AMapUI === a.failed)
|
|
955
|
+
g("前次请求 AMapUI 失败");
|
|
956
|
+
else if (c.AMapUI === a.notload) {
|
|
957
|
+
c.AMapUI = a.loading, o.AMapUI.version = s.version || o.AMapUI.version, m = o.AMapUI.version;
|
|
958
|
+
var A = document.body || document.head, f = document.createElement("script");
|
|
959
|
+
f.type = "text/javascript", f.src = "https://webapi.amap.com/ui/" + m + "/main.js", f.onerror = function(y) {
|
|
960
|
+
c.AMapUI = a.failed, g("请求 AMapUI 失败");
|
|
961
|
+
}, f.onload = function() {
|
|
962
|
+
if (c.AMapUI = a.loaded, j.length)
|
|
963
|
+
window.AMapUI.loadUI(j, function() {
|
|
964
|
+
for (var y = 0, w = j.length; y < w; y++) {
|
|
965
|
+
var G = j[y].split("/").slice(-1)[0];
|
|
966
|
+
window.AMapUI[G] = arguments[y];
|
|
967
|
+
}
|
|
968
|
+
for (d(); u.AMapUI.length; )
|
|
969
|
+
u.AMapUI.splice(0, 1)[0]();
|
|
970
|
+
});
|
|
971
|
+
else
|
|
972
|
+
for (d(); u.AMapUI.length; )
|
|
973
|
+
u.AMapUI.splice(0, 1)[0]();
|
|
974
|
+
}, A.appendChild(f);
|
|
975
|
+
} else
|
|
976
|
+
c.AMapUI === a.loaded ? s.version && s.version !== o.AMapUI.version ? g("不允许多个版本 AMapUI 混用") : j.length ? window.AMapUI.loadUI(j, function() {
|
|
977
|
+
for (var y = 0, w = j.length; y < w; y++) {
|
|
978
|
+
var G = j[y].split("/").slice(-1)[0];
|
|
979
|
+
window.AMapUI[G] = arguments[y];
|
|
980
|
+
}
|
|
981
|
+
d();
|
|
982
|
+
}) : d() : s.version && s.version !== o.AMapUI.version ? g("不允许多个版本 AMapUI 混用") : u.AMapUI.push(function(y) {
|
|
983
|
+
y ? g(y) : j.length ? window.AMapUI.loadUI(j, function() {
|
|
984
|
+
for (var w = 0, G = j.length; w < G; w++) {
|
|
985
|
+
var oe = j[w].split("/").slice(-1)[0];
|
|
986
|
+
window.AMapUI[oe] = arguments[w];
|
|
987
|
+
}
|
|
988
|
+
d();
|
|
989
|
+
}) : d();
|
|
990
|
+
});
|
|
991
|
+
});
|
|
992
|
+
}
|
|
993
|
+
function r(s) {
|
|
994
|
+
return new Promise(function(d, g) {
|
|
995
|
+
if (c.Loca === a.failed)
|
|
996
|
+
g("前次请求 Loca 失败");
|
|
997
|
+
else if (c.Loca === a.notload) {
|
|
998
|
+
c.Loca = a.loading, o.Loca.version = s.version || o.Loca.version;
|
|
999
|
+
var j = o.Loca.version, m = o.AMap.version.startsWith("2"), A = j.startsWith("2");
|
|
1000
|
+
if (m && !A || !m && A)
|
|
1001
|
+
g("JSAPI 与 Loca 版本不对应!!");
|
|
1002
|
+
else {
|
|
1003
|
+
m = o.key, A = document.body || document.head;
|
|
1004
|
+
var f = document.createElement("script");
|
|
1005
|
+
f.type = "text/javascript", f.src = "https://webapi.amap.com/loca?v=" + j + "&key=" + m, f.onerror = function(y) {
|
|
1006
|
+
c.Loca = a.failed, g("请求 AMapUI 失败");
|
|
1007
|
+
}, f.onload = function() {
|
|
1008
|
+
for (c.Loca = a.loaded, d(); u.Loca.length; )
|
|
1009
|
+
u.Loca.splice(0, 1)[0]();
|
|
1010
|
+
}, A.appendChild(f);
|
|
1011
|
+
}
|
|
1012
|
+
} else
|
|
1013
|
+
c.Loca === a.loaded ? s.version && s.version !== o.Loca.version ? g("不允许多个版本 Loca 混用") : d() : s.version && s.version !== o.Loca.version ? g("不允许多个版本 Loca 混用") : u.Loca.push(function(y) {
|
|
1014
|
+
y ? g(y) : g();
|
|
1015
|
+
});
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
if (!window)
|
|
1019
|
+
throw Error("AMap JSAPI can only be used in Browser.");
|
|
1020
|
+
var a;
|
|
1021
|
+
(function(s) {
|
|
1022
|
+
s.notload = "notload", s.loading = "loading", s.loaded = "loaded", s.failed = "failed";
|
|
1023
|
+
})(a || (a = {}));
|
|
1024
|
+
var o = { key: "", AMap: { version: "1.4.15", plugins: [] }, AMapUI: { version: "1.1", plugins: [] }, Loca: { version: "1.3.2" } }, c = { AMap: a.notload, AMapUI: a.notload, Loca: a.notload }, u = { AMap: [], AMapUI: [], Loca: [] }, I = [], p = function(s) {
|
|
1025
|
+
typeof s == "function" && (c.AMap === a.loaded ? s(window.AMap) : I.push(s));
|
|
1026
|
+
};
|
|
1027
|
+
return { load: function(s) {
|
|
1028
|
+
return new Promise(function(d, g) {
|
|
1029
|
+
if (c.AMap == a.failed)
|
|
1030
|
+
g("");
|
|
1031
|
+
else if (c.AMap == a.notload) {
|
|
1032
|
+
var j = s.key, m = s.version, A = s.plugins;
|
|
1033
|
+
j ? (window.AMap && location.host !== "lbs.amap.com" && g("禁止多种API加载方式混用"), o.key = j, o.AMap.version = m || o.AMap.version, o.AMap.plugins = A || o.AMap.plugins, c.AMap = a.loading, m = document.body || document.head, window.___onAPILoaded = function(y) {
|
|
1034
|
+
if (delete window.___onAPILoaded, y)
|
|
1035
|
+
c.AMap = a.failed, g(y);
|
|
1036
|
+
else
|
|
1037
|
+
for (c.AMap = a.loaded, e(s).then(function() {
|
|
1038
|
+
d(window.AMap);
|
|
1039
|
+
}).catch(g); I.length; )
|
|
1040
|
+
I.splice(0, 1)[0]();
|
|
1041
|
+
}, A = document.createElement("script"), A.type = "text/javascript", A.src = "https://webapi.amap.com/maps?callback=___onAPILoaded&v=" + o.AMap.version + "&key=" + j + "&plugin=" + o.AMap.plugins.join(","), A.onerror = function(y) {
|
|
1042
|
+
c.AMap = a.failed, g(y);
|
|
1043
|
+
}, m.appendChild(A)) : g("请填写key");
|
|
1044
|
+
} else if (c.AMap == a.loaded)
|
|
1045
|
+
if (s.key && s.key !== o.key)
|
|
1046
|
+
g("多个不一致的 key");
|
|
1047
|
+
else if (s.version && s.version !== o.AMap.version)
|
|
1048
|
+
g("不允许多个版本 JSAPI 混用");
|
|
1049
|
+
else {
|
|
1050
|
+
if (j = [], s.plugins)
|
|
1051
|
+
for (m = 0; m < s.plugins.length; m += 1)
|
|
1052
|
+
o.AMap.plugins.indexOf(s.plugins[m]) == -1 && j.push(s.plugins[m]);
|
|
1053
|
+
j.length ? window.AMap.plugin(j, function() {
|
|
1054
|
+
e(s).then(function() {
|
|
1055
|
+
d(window.AMap);
|
|
1056
|
+
}).catch(g);
|
|
1057
|
+
}) : e(s).then(function() {
|
|
1058
|
+
d(window.AMap);
|
|
1059
|
+
}).catch(g);
|
|
1060
|
+
}
|
|
1061
|
+
else if (s.key && s.key !== o.key)
|
|
1062
|
+
g("多个不一致的 key");
|
|
1063
|
+
else if (s.version && s.version !== o.AMap.version)
|
|
1064
|
+
g("不允许多个版本 JSAPI 混用");
|
|
1065
|
+
else {
|
|
1066
|
+
var f = [];
|
|
1067
|
+
if (s.plugins)
|
|
1068
|
+
for (m = 0; m < s.plugins.length; m += 1)
|
|
1069
|
+
o.AMap.plugins.indexOf(s.plugins[m]) == -1 && f.push(s.plugins[m]);
|
|
1070
|
+
p(function() {
|
|
1071
|
+
f.length ? window.AMap.plugin(f, function() {
|
|
1072
|
+
e(s).then(function() {
|
|
1073
|
+
d(window.AMap);
|
|
1074
|
+
}).catch(g);
|
|
1075
|
+
}) : e(s).then(function() {
|
|
1076
|
+
d(window.AMap);
|
|
1077
|
+
}).catch(g);
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
});
|
|
1081
|
+
}, reset: function() {
|
|
1082
|
+
delete window.AMap, delete window.AMapUI, delete window.Loca, o = { key: "", AMap: { version: "1.4.15", plugins: [] }, AMapUI: { version: "1.1", plugins: [] }, Loca: { version: "1.3.2" } }, c = {
|
|
1083
|
+
AMap: a.notload,
|
|
1084
|
+
AMapUI: a.notload,
|
|
1085
|
+
Loca: a.notload
|
|
1086
|
+
}, u = { AMap: [], AMapUI: [], Loca: [] };
|
|
1087
|
+
} };
|
|
1088
|
+
});
|
|
1089
|
+
})(Xe);
|
|
1090
|
+
var $e = function i(t, e) {
|
|
1091
|
+
if (t === e)
|
|
1092
|
+
return !0;
|
|
1093
|
+
if (t && e && typeof t == "object" && typeof e == "object") {
|
|
1094
|
+
if (t.constructor !== e.constructor)
|
|
1095
|
+
return !1;
|
|
1096
|
+
var n, r, a;
|
|
1097
|
+
if (Array.isArray(t)) {
|
|
1098
|
+
if (n = t.length, n != e.length)
|
|
1099
|
+
return !1;
|
|
1100
|
+
for (r = n; r-- !== 0; )
|
|
1101
|
+
if (!i(t[r], e[r]))
|
|
1102
|
+
return !1;
|
|
1103
|
+
return !0;
|
|
1104
|
+
}
|
|
1105
|
+
if (t.constructor === RegExp)
|
|
1106
|
+
return t.source === e.source && t.flags === e.flags;
|
|
1107
|
+
if (t.valueOf !== Object.prototype.valueOf)
|
|
1108
|
+
return t.valueOf() === e.valueOf();
|
|
1109
|
+
if (t.toString !== Object.prototype.toString)
|
|
1110
|
+
return t.toString() === e.toString();
|
|
1111
|
+
if (a = Object.keys(t), n = a.length, n !== Object.keys(e).length)
|
|
1112
|
+
return !1;
|
|
1113
|
+
for (r = n; r-- !== 0; )
|
|
1114
|
+
if (!Object.prototype.hasOwnProperty.call(e, a[r]))
|
|
1115
|
+
return !1;
|
|
1116
|
+
for (r = n; r-- !== 0; ) {
|
|
1117
|
+
var o = a[r];
|
|
1118
|
+
if (!i(t[o], e[o]))
|
|
1119
|
+
return !1;
|
|
1120
|
+
}
|
|
1121
|
+
return !0;
|
|
1122
|
+
}
|
|
1123
|
+
return t !== t && e !== e;
|
|
1124
|
+
};
|
|
1125
|
+
const dt = "__googleMapsScriptId";
|
|
1126
|
+
var P;
|
|
1127
|
+
(function(i) {
|
|
1128
|
+
i[i.INITIALIZED = 0] = "INITIALIZED", i[i.LOADING = 1] = "LOADING", i[i.SUCCESS = 2] = "SUCCESS", i[i.FAILURE = 3] = "FAILURE";
|
|
1129
|
+
})(P || (P = {}));
|
|
1130
|
+
class b {
|
|
1131
|
+
/**
|
|
1132
|
+
* Creates an instance of Loader using [[LoaderOptions]]. No defaults are set
|
|
1133
|
+
* using this library, instead the defaults are set by the Google Maps
|
|
1134
|
+
* JavaScript API server.
|
|
1135
|
+
*
|
|
1136
|
+
* ```
|
|
1137
|
+
* const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
|
|
1138
|
+
* ```
|
|
1139
|
+
*/
|
|
1140
|
+
constructor({ apiKey: t, authReferrerPolicy: e, channel: n, client: r, id: a = dt, language: o, libraries: c = [], mapIds: u, nonce: I, region: p, retries: s = 3, url: d = "https://maps.googleapis.com/maps/api/js", version: g }) {
|
|
1141
|
+
if (this.CALLBACK = "__googleMapsCallback", this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = t, this.authReferrerPolicy = e, this.channel = n, this.client = r, this.id = a || dt, this.language = o, this.libraries = c, this.mapIds = u, this.nonce = I, this.region = p, this.retries = s, this.url = d, this.version = g, b.instance) {
|
|
1142
|
+
if (!$e(this.options, b.instance.options))
|
|
1143
|
+
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(b.instance.options)}`);
|
|
1144
|
+
return b.instance;
|
|
1145
|
+
}
|
|
1146
|
+
b.instance = this;
|
|
1147
|
+
}
|
|
1148
|
+
get options() {
|
|
1149
|
+
return {
|
|
1150
|
+
version: this.version,
|
|
1151
|
+
apiKey: this.apiKey,
|
|
1152
|
+
channel: this.channel,
|
|
1153
|
+
client: this.client,
|
|
1154
|
+
id: this.id,
|
|
1155
|
+
libraries: this.libraries,
|
|
1156
|
+
language: this.language,
|
|
1157
|
+
region: this.region,
|
|
1158
|
+
mapIds: this.mapIds,
|
|
1159
|
+
nonce: this.nonce,
|
|
1160
|
+
url: this.url,
|
|
1161
|
+
authReferrerPolicy: this.authReferrerPolicy
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
1164
|
+
get status() {
|
|
1165
|
+
return this.errors.length ? P.FAILURE : this.done ? P.SUCCESS : this.loading ? P.LOADING : P.INITIALIZED;
|
|
1166
|
+
}
|
|
1167
|
+
get failed() {
|
|
1168
|
+
return this.done && !this.loading && this.errors.length >= this.retries + 1;
|
|
1169
|
+
}
|
|
1170
|
+
/**
|
|
1171
|
+
* CreateUrl returns the Google Maps JavaScript API script url given the [[LoaderOptions]].
|
|
1172
|
+
*
|
|
1173
|
+
* @ignore
|
|
1174
|
+
*/
|
|
1175
|
+
createUrl() {
|
|
1176
|
+
let t = this.url;
|
|
1177
|
+
return t += `?callback=${this.CALLBACK}`, this.apiKey && (t += `&key=${this.apiKey}`), this.channel && (t += `&channel=${this.channel}`), this.client && (t += `&client=${this.client}`), this.libraries.length > 0 && (t += `&libraries=${this.libraries.join(",")}`), this.language && (t += `&language=${this.language}`), this.region && (t += `®ion=${this.region}`), this.version && (t += `&v=${this.version}`), this.mapIds && (t += `&map_ids=${this.mapIds.join(",")}`), this.authReferrerPolicy && (t += `&auth_referrer_policy=${this.authReferrerPolicy}`), t;
|
|
1178
|
+
}
|
|
1179
|
+
deleteScript() {
|
|
1180
|
+
const t = document.getElementById(this.id);
|
|
1181
|
+
t && t.remove();
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* Load the Google Maps JavaScript API script and return a Promise.
|
|
1185
|
+
*/
|
|
1186
|
+
load() {
|
|
1187
|
+
return this.loadPromise();
|
|
1188
|
+
}
|
|
1189
|
+
/**
|
|
1190
|
+
* Load the Google Maps JavaScript API script and return a Promise.
|
|
1191
|
+
*
|
|
1192
|
+
* @ignore
|
|
1193
|
+
*/
|
|
1194
|
+
loadPromise() {
|
|
1195
|
+
return new Promise((t, e) => {
|
|
1196
|
+
this.loadCallback((n) => {
|
|
1197
|
+
n ? e(n.error) : t(window.google);
|
|
1198
|
+
});
|
|
1199
|
+
});
|
|
1200
|
+
}
|
|
1201
|
+
/**
|
|
1202
|
+
* Load the Google Maps JavaScript API script with a callback.
|
|
1203
|
+
*/
|
|
1204
|
+
loadCallback(t) {
|
|
1205
|
+
this.callbacks.push(t), this.execute();
|
|
1206
|
+
}
|
|
1207
|
+
/**
|
|
1208
|
+
* Set the script on document.
|
|
1209
|
+
*/
|
|
1210
|
+
setScript() {
|
|
1211
|
+
if (document.getElementById(this.id)) {
|
|
1212
|
+
this.callback();
|
|
1213
|
+
return;
|
|
1214
|
+
}
|
|
1215
|
+
const t = this.createUrl(), e = document.createElement("script");
|
|
1216
|
+
e.id = this.id, e.type = "text/javascript", e.src = t, e.onerror = this.loadErrorCallback.bind(this), e.defer = !0, e.async = !0, this.nonce && (e.nonce = this.nonce), document.head.appendChild(e);
|
|
1217
|
+
}
|
|
1218
|
+
/**
|
|
1219
|
+
* Reset the loader state.
|
|
1220
|
+
*/
|
|
1221
|
+
reset() {
|
|
1222
|
+
this.deleteScript(), this.done = !1, this.loading = !1, this.errors = [], this.onerrorEvent = null;
|
|
1223
|
+
}
|
|
1224
|
+
resetIfRetryingFailed() {
|
|
1225
|
+
this.failed && this.reset();
|
|
1226
|
+
}
|
|
1227
|
+
loadErrorCallback(t) {
|
|
1228
|
+
if (this.errors.push(t), this.errors.length <= this.retries) {
|
|
1229
|
+
const e = this.errors.length * Math.pow(2, this.errors.length);
|
|
1230
|
+
console.log(`Failed to load Google Maps script, retrying in ${e} ms.`), setTimeout(() => {
|
|
1231
|
+
this.deleteScript(), this.setScript();
|
|
1232
|
+
}, e);
|
|
1233
|
+
} else
|
|
1234
|
+
this.onerrorEvent = t, this.callback();
|
|
1235
|
+
}
|
|
1236
|
+
setCallback() {
|
|
1237
|
+
window.__googleMapsCallback = this.callback.bind(this);
|
|
1238
|
+
}
|
|
1239
|
+
callback() {
|
|
1240
|
+
this.done = !0, this.loading = !1, this.callbacks.forEach((t) => {
|
|
1241
|
+
t(this.onerrorEvent);
|
|
1242
|
+
}), this.callbacks = [];
|
|
1243
|
+
}
|
|
1244
|
+
execute() {
|
|
1245
|
+
if (this.resetIfRetryingFailed(), this.done)
|
|
1246
|
+
this.callback();
|
|
1247
|
+
else {
|
|
1248
|
+
if (window.google && window.google.maps && window.google.maps.version) {
|
|
1249
|
+
console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."), this.callback();
|
|
1250
|
+
return;
|
|
1251
|
+
}
|
|
1252
|
+
this.loading || (this.loading = !0, this.setCallback(), this.setScript());
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
var z = /* @__PURE__ */ ((i) => (i.LOADING = "LOADING", i.FAILURE = "FAILURE", i.SUCCESS = "SUCCESS", i))(z || {});
|
|
1257
|
+
const ne = M(function(t, { slots: e, emit: n }) {
|
|
1258
|
+
const r = v(
|
|
1259
|
+
"LOADING"
|
|
1260
|
+
/* LOADING */
|
|
1261
|
+
), a = L(() => {
|
|
1262
|
+
const { onChange: o, fallback: c, loading: u, ...I } = t;
|
|
1263
|
+
return I;
|
|
1264
|
+
});
|
|
1265
|
+
return Nt(
|
|
1266
|
+
() => a.value,
|
|
1267
|
+
(o) => {
|
|
1268
|
+
const c = new b(o), u = (I) => {
|
|
1269
|
+
n("change", I), r.value = I;
|
|
1270
|
+
};
|
|
1271
|
+
u(
|
|
1272
|
+
"LOADING"
|
|
1273
|
+
/* LOADING */
|
|
1274
|
+
), c.load().then(
|
|
1275
|
+
() => u(
|
|
1276
|
+
"SUCCESS"
|
|
1277
|
+
/* SUCCESS */
|
|
1278
|
+
),
|
|
1279
|
+
() => u(
|
|
1280
|
+
"FAILURE"
|
|
1281
|
+
/* FAILURE */
|
|
1282
|
+
)
|
|
1283
|
+
);
|
|
1284
|
+
}
|
|
1285
|
+
), () => {
|
|
1286
|
+
var o, c, u;
|
|
1287
|
+
switch (r.value) {
|
|
1288
|
+
case "SUCCESS":
|
|
1289
|
+
return (o = e.default) == null ? void 0 : o.call(e);
|
|
1290
|
+
case "LOADING":
|
|
1291
|
+
return (c = e.loading) == null ? void 0 : c.call(e);
|
|
1292
|
+
case "FAILURE":
|
|
1293
|
+
return (u = e.fallback) == null ? void 0 : u.call(e);
|
|
1294
|
+
default:
|
|
1295
|
+
throw new Error("MyError: unknown loader status");
|
|
1296
|
+
}
|
|
1297
|
+
};
|
|
1298
|
+
}), ae = M(function(t, { slots: e, emit: n }) {
|
|
1299
|
+
const r = v(z.LOADING), a = L(() => {
|
|
1300
|
+
const { onChange: o, loading: c, fallback: u, apiKey: I, apiSecret: p, apiServiceHost: s, version: d, ...g } = t;
|
|
1301
|
+
return { ...g, key: I, version: d ?? "2.0" };
|
|
1302
|
+
});
|
|
1303
|
+
return Nt(
|
|
1304
|
+
() => a.value,
|
|
1305
|
+
(o) => {
|
|
1306
|
+
const c = (u) => {
|
|
1307
|
+
n("change", u), r.value = u;
|
|
1308
|
+
};
|
|
1309
|
+
c(z.LOADING), window._AMapSecurityConfig = t.apiServiceHost ? {
|
|
1310
|
+
serviceHost: t.apiServiceHost
|
|
1311
|
+
} : { securityJsCode: t.apiSecret }, _.load(o).then(
|
|
1312
|
+
() => c(z.SUCCESS),
|
|
1313
|
+
() => c(z.FAILURE)
|
|
1314
|
+
);
|
|
1315
|
+
}
|
|
1316
|
+
), () => {
|
|
1317
|
+
var o, c, u;
|
|
1318
|
+
switch (r.value) {
|
|
1319
|
+
case z.SUCCESS:
|
|
1320
|
+
return (o = e.default) == null ? void 0 : o.call(e);
|
|
1321
|
+
case z.LOADING:
|
|
1322
|
+
return (c = e.loading) == null ? void 0 : c.call(e);
|
|
1323
|
+
case z.FAILURE:
|
|
1324
|
+
return (u = e.fallback) == null ? void 0 : u.call(e);
|
|
1325
|
+
default:
|
|
1326
|
+
throw new Error("MyError: unknown loader status");
|
|
1327
|
+
}
|
|
1328
|
+
};
|
|
1329
|
+
}), re = M(function(t, { slots: e, emit: n }) {
|
|
1330
|
+
const r = L(() => {
|
|
1331
|
+
const { onCenter_changed: u, ...I } = t;
|
|
1332
|
+
return I;
|
|
1333
|
+
}), a = r.value, o = v(), c = v();
|
|
1334
|
+
return Ce(c), x(() => {
|
|
1335
|
+
c.value || !o.value || (c.value = new google.maps.Map(o.value, { ...a }));
|
|
1336
|
+
}), O(
|
|
1337
|
+
() => r.value,
|
|
1338
|
+
(u) => {
|
|
1339
|
+
var I;
|
|
1340
|
+
(I = c.value) == null || I.setOptions({ ...u });
|
|
1341
|
+
}
|
|
1342
|
+
), Se(c, t, n, ["onCenter_changed"]), () => {
|
|
1343
|
+
var u;
|
|
1344
|
+
return l("div", { ref: o }, (u = e.default) == null ? void 0 : u.call(e));
|
|
1345
|
+
};
|
|
1346
|
+
});
|
|
1347
|
+
var it = "nb7oxq0";
|
|
1348
|
+
const Fe = "AIzaSyCRtkaNSWMOhOXDOUpJK4OVbm5RIstYj-I", Ke = "d0af0c05331af64a", _e = "81ed1d2b5b77187683717a5f2f19591a", qe = "1dfe626553258a9f91d7c4552c0816d2", ji = M(function() {
|
|
1349
|
+
return () => l(ae, {
|
|
1350
|
+
attrs: {
|
|
1351
|
+
apiKey: _e,
|
|
1352
|
+
apiSecret: qe,
|
|
1353
|
+
loading: () => l("div", ["loading"]),
|
|
1354
|
+
fallback: () => l("div", ["error"]),
|
|
1355
|
+
plugins: ["AMap.AutoComplete"]
|
|
1356
|
+
}
|
|
1357
|
+
}, [l(ie, {
|
|
1358
|
+
class: it,
|
|
1359
|
+
attrs: {
|
|
1360
|
+
center: [0, 0],
|
|
1361
|
+
zoom: 3
|
|
1362
|
+
}
|
|
1363
|
+
}, [l(Yt, {
|
|
1364
|
+
attrs: {
|
|
1365
|
+
position: [0, 0],
|
|
1366
|
+
label: "Kenkey Hut"
|
|
1367
|
+
}
|
|
1368
|
+
})])]);
|
|
1369
|
+
}), mi = M(function() {
|
|
1370
|
+
return () => l(ne, {
|
|
1371
|
+
attrs: {
|
|
1372
|
+
version: "beta",
|
|
1373
|
+
apiKey: Fe,
|
|
1374
|
+
loading: () => l("div", ["loading"]),
|
|
1375
|
+
fallback: () => l("div", ["error"]),
|
|
1376
|
+
libraries: ["places", "marker"]
|
|
1377
|
+
}
|
|
1378
|
+
}, [l(re, {
|
|
1379
|
+
class: it,
|
|
1380
|
+
attrs: {
|
|
1381
|
+
center: {
|
|
1382
|
+
lat: 0,
|
|
1383
|
+
lng: 0
|
|
1384
|
+
},
|
|
1385
|
+
zoom: 3,
|
|
1386
|
+
mapId: Ke
|
|
1387
|
+
}
|
|
1388
|
+
}, [l(Bt, {
|
|
1389
|
+
attrs: {
|
|
1390
|
+
position: [0, 0]
|
|
1391
|
+
}
|
|
1392
|
+
}), l(ee, {
|
|
1393
|
+
attrs: {
|
|
1394
|
+
position: [0, 0]
|
|
1395
|
+
}
|
|
1396
|
+
})])]);
|
|
1397
|
+
}), ti = ue(function(t, {
|
|
1398
|
+
slots: e
|
|
1399
|
+
}) {
|
|
1400
|
+
return we(t), () => {
|
|
1401
|
+
var n;
|
|
1402
|
+
return l("div", [(n = e.default) == null ? void 0 : n.call(e)]);
|
|
1403
|
+
};
|
|
1404
|
+
}).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapKey", "supplier"]), ei = M(function(t, {
|
|
1405
|
+
slots: e
|
|
1406
|
+
}) {
|
|
1407
|
+
const n = D();
|
|
1408
|
+
return () => {
|
|
1409
|
+
var m;
|
|
1410
|
+
const {
|
|
1411
|
+
gmapKey: r,
|
|
1412
|
+
amapKey: a,
|
|
1413
|
+
amapSecret: o,
|
|
1414
|
+
amapServiceHost: c,
|
|
1415
|
+
supplier: u,
|
|
1416
|
+
gmapId: I
|
|
1417
|
+
} = n, {
|
|
1418
|
+
fallback: p,
|
|
1419
|
+
loading: s,
|
|
1420
|
+
center: d,
|
|
1421
|
+
zoom: g
|
|
1422
|
+
} = t, j = (m = e.default) == null ? void 0 : m.call(e);
|
|
1423
|
+
switch (u) {
|
|
1424
|
+
case "gmap":
|
|
1425
|
+
return l(ne, {
|
|
1426
|
+
attrs: {
|
|
1427
|
+
apiKey: r,
|
|
1428
|
+
version: "beta",
|
|
1429
|
+
libraries: ["marker", "places", "geometry"],
|
|
1430
|
+
loading: s,
|
|
1431
|
+
fallback: p
|
|
1432
|
+
}
|
|
1433
|
+
}, [l(re, {
|
|
1434
|
+
attrs: {
|
|
1435
|
+
mapId: I,
|
|
1436
|
+
center: d ? S(d) : void 0,
|
|
1437
|
+
zoom: g
|
|
1438
|
+
}
|
|
1439
|
+
}, [j])]);
|
|
1440
|
+
default:
|
|
1441
|
+
return l(ae, {
|
|
1442
|
+
attrs: {
|
|
1443
|
+
apiKey: a,
|
|
1444
|
+
apiSecret: o,
|
|
1445
|
+
apiServiceHost: c,
|
|
1446
|
+
plugins: ["AMap.Geolocation", "AMap.Geocoder", "AMap.PlaceSearch", "AMap.Driving", "AMap.Walker"],
|
|
1447
|
+
loading: s,
|
|
1448
|
+
fallback: p
|
|
1449
|
+
}
|
|
1450
|
+
}, [l(ie, {
|
|
1451
|
+
attrs: {
|
|
1452
|
+
center: d,
|
|
1453
|
+
zoom: g
|
|
1454
|
+
}
|
|
1455
|
+
}, [j])]);
|
|
1456
|
+
}
|
|
1457
|
+
};
|
|
1458
|
+
}), ii = "AIzaSyCRtkaNSWMOhOXDOUpJK4OVbm5RIstYj-I", ni = "d0af0c05331af64a", ai = "81ed1d2b5b77187683717a5f2f19591a", ri = "1dfe626553258a9f91d7c4552c0816d2", pi = M(function() {
|
|
1459
|
+
return () => l(ti, {
|
|
1460
|
+
attrs: {
|
|
1461
|
+
amapKey: ai,
|
|
1462
|
+
amapSecret: ri,
|
|
1463
|
+
gmapId: ni,
|
|
1464
|
+
gmapKey: ii,
|
|
1465
|
+
supplier: "amap"
|
|
1466
|
+
}
|
|
1467
|
+
}, [l(ei, {
|
|
1468
|
+
class: it,
|
|
1469
|
+
attrs: {
|
|
1470
|
+
fallback: () => l("div", ["error"]),
|
|
1471
|
+
loading: () => l("div", ["loading"]),
|
|
1472
|
+
center: [0, 0],
|
|
1473
|
+
zoom: 3
|
|
1474
|
+
}
|
|
1475
|
+
}, [l(he, {
|
|
1476
|
+
attrs: {
|
|
1477
|
+
position: [0, 0],
|
|
1478
|
+
title: "Martyrs Lawn",
|
|
1479
|
+
description: "您将在此处上车"
|
|
1480
|
+
}
|
|
1481
|
+
})])]);
|
|
1482
|
+
});
|
|
1483
|
+
export {
|
|
1484
|
+
ji as ABusinessDemo,
|
|
1485
|
+
he as AddressBox,
|
|
1486
|
+
ci as AddressLocator,
|
|
1487
|
+
si as DrivingLine,
|
|
1488
|
+
mi as GBusinessDemo,
|
|
1489
|
+
pi as HeycarDemo,
|
|
1490
|
+
ei as HeycarMap,
|
|
1491
|
+
ti as MapProvider,
|
|
1492
|
+
ui as PassengerCircle,
|
|
1493
|
+
li as PlaceCircle,
|
|
1494
|
+
Ii as StartEndPoint,
|
|
1495
|
+
Mi as TaxiCar,
|
|
1496
|
+
gi as WalkingLine,
|
|
1497
|
+
di as WaveCircle
|
|
1498
|
+
};
|