@heycar/heycars-map 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/business-components/PickupPoints/PickupPoints.d.ts +2 -2
- package/dist/hooks/useMapRecomendPlace.d.ts +15 -0
- package/dist/hooks-business/useBusinessMapRecomendPlace.d.ts +5 -0
- package/dist/index.cjs +19 -19
- package/dist/index.js +371 -394
- package/package.json +2 -2
- package/src/business-components/PickupPoints/PickupPoints.tsx +5 -4
- package/src/components/Demo/HeycarDemo.tsx +12 -9
- package/src/components/GmapAdvancedMarkerView/GmapAdvancedMarkerView.ts +0 -1
- package/src/hooks/useGeoLocation.ts +20 -29
- package/src/hooks/useMapPlace.ts +0 -6
- package/src/hooks/useMapRecomendPlace.ts +7 -9
- package/src/hooks-business/useBusinessMapRecomendPlace.ts +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { Place } from "../../types/interface";
|
|
1
2
|
export interface PickupPointsProps {
|
|
2
|
-
|
|
3
|
-
labels: string[];
|
|
3
|
+
places: Place[];
|
|
4
4
|
}
|
|
5
5
|
export declare const PickupPoints: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<PickupPointsProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<PickupPointsProps, Required<PickupPointsProps>>, never, PickupPointsProps, {}>;
|
|
@@ -412,6 +412,11 @@ export declare const useAmapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<{
|
|
|
412
412
|
lat: number;
|
|
413
413
|
name: string;
|
|
414
414
|
};
|
|
415
|
+
placeCandidates: Ref<{
|
|
416
|
+
lng: number;
|
|
417
|
+
lat: number;
|
|
418
|
+
name: string;
|
|
419
|
+
}[]>;
|
|
415
420
|
updateRecomandPlace: () => void;
|
|
416
421
|
updatePlace: () => void;
|
|
417
422
|
};
|
|
@@ -421,6 +426,11 @@ export declare const useGmapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<g
|
|
|
421
426
|
lat: number;
|
|
422
427
|
name: string;
|
|
423
428
|
};
|
|
429
|
+
placeCandidates: Ref<{
|
|
430
|
+
lng: number;
|
|
431
|
+
lat: number;
|
|
432
|
+
name: string;
|
|
433
|
+
}[]>;
|
|
424
434
|
updateRecomandPlace: () => void;
|
|
425
435
|
updatePlace: () => void;
|
|
426
436
|
};
|
|
@@ -825,6 +835,11 @@ export declare const useMapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<{
|
|
|
825
835
|
lat: number;
|
|
826
836
|
name: string;
|
|
827
837
|
};
|
|
838
|
+
placeCandidates: Ref<{
|
|
839
|
+
lng: number;
|
|
840
|
+
lat: number;
|
|
841
|
+
name: string;
|
|
842
|
+
}[]>;
|
|
828
843
|
updateRecomandPlace: () => void;
|
|
829
844
|
updatePlace: () => void;
|
|
830
845
|
};
|
|
@@ -25,5 +25,10 @@ export declare const useBusinessMapRecomendPlace: (props: UseBusinessMapRecomend
|
|
|
25
25
|
name: string;
|
|
26
26
|
};
|
|
27
27
|
centerPoint: import("vue-demi").ComputedRef<Point>;
|
|
28
|
+
placeCandidates: import("vue-demi").Ref<{
|
|
29
|
+
lng: number;
|
|
30
|
+
lat: number;
|
|
31
|
+
name: string;
|
|
32
|
+
}[]>;
|
|
28
33
|
};
|
|
29
34
|
export {};
|
package/dist/index.cjs
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue");u.util.warn;const xe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub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3N2Zz4=";var kt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Ot=typeof global=="object"&&global&&global.Object===Object&&global;const Wt=Ot;var Ut=typeof self=="object"&&self&&self.Object===Object&&self,Yt=Wt||Ut||Function("return this")();const Ht=Yt;var Bt=Ht.Symbol;const R=Bt;var Ce=Object.prototype,Vt=Ce.hasOwnProperty,Qt=Ce.toString,G=R?R.toStringTag:void 0;function Jt(t){var e=Vt.call(t,G),n=t[G];try{t[G]=void 0;var i=!0}catch{}var a=Qt.call(t);return i&&(e?t[G]=n:delete t[G]),a}var Xt=Object.prototype,$t=Xt.toString;function Ft(t){return $t.call(t)}var _t="[object Null]",Kt="[object Undefined]",ce=R?R.toStringTag:void 0;function qt(t){return t==null?t===void 0?Kt:_t:ce&&ce in Object(t)?Jt(t):Ft(t)}function en(t){return t!=null&&typeof t=="object"}var tn="[object Symbol]";function nn(t){return typeof t=="symbol"||en(t)&&qt(t)==tn}function an(t,e){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=e(t[n],n,t);return a}var on=Array.isArray;const rn=on;var cn=1/0,ue=R?R.prototype:void 0,se=ue?ue.toString:void 0;function we(t){if(typeof t=="string")return t;if(rn(t))return an(t,we)+"";if(nn(t))return se?se.call(t):"";var e=t+"";return e=="0"&&1/t==-cn?"-0":e}function be(t){return t==null?"":we(t)}function un(t,e,n,i){var a=-1,o=t==null?0:t.length;for(i&&o&&(n=t[++a]);++a<o;)n=e(n,t[a],a,t);return n}function sn(t){return function(e){return t==null?void 0:t[e]}}var ln={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N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ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},In=sn(ln);const dn=In;var Mn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gn="\\u0300-\\u036f",fn="\\ufe20-\\ufe2f",mn="\\u20d0-\\u20ff",pn=gn+fn+mn,jn="["+pn+"]",yn=RegExp(jn,"g");function Ln(t){return t=be(t),t&&t.replace(Mn,dn).replace(yn,"")}var vn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function An(t){return t.match(vn)||[]}var Nn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hn(t){return Nn.test(t)}var Pe="\\ud800-\\udfff",Dn="\\u0300-\\u036f",Sn="\\ufe20-\\ufe2f",xn="\\u20d0-\\u20ff",Cn=Dn+Sn+xn,ze="\\u2700-\\u27bf",Ze="a-z\\xdf-\\xf6\\xf8-\\xff",wn="\\xac\\xb1\\xd7\\xf7",bn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pn="\\u2000-\\u206f",zn=" \\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",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",Zn="\\ufe0e\\ufe0f",Te=wn+bn+Pn+zn,Re="['’]",le="["+Te+"]",En="["+Cn+"]",Ge="\\d+",Tn="["+ze+"]",ke="["+Ze+"]",Oe="[^"+Pe+Te+Ge+ze+Ze+Ee+"]",Rn="\\ud83c[\\udffb-\\udfff]",Gn="(?:"+En+"|"+Rn+")",kn="[^"+Pe+"]",We="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",z="["+Ee+"]",On="\\u200d",Ie="(?:"+ke+"|"+Oe+")",Wn="(?:"+z+"|"+Oe+")",de="(?:"+Re+"(?:d|ll|m|re|s|t|ve))?",Me="(?:"+Re+"(?:D|LL|M|RE|S|T|VE))?",Ye=Gn+"?",He="["+Zn+"]?",Un="(?:"+On+"(?:"+[kn,We,Ue].join("|")+")"+He+Ye+")*",Yn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Hn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bn=He+Ye+Un,Vn="(?:"+[Tn,We,Ue].join("|")+")"+Bn,Qn=RegExp([z+"?"+ke+"+"+de+"(?="+[le,z,"$"].join("|")+")",Wn+"+"+Me+"(?="+[le,z+Ie,"$"].join("|")+")",z+"?"+Ie+"+"+de,z+"+"+Me,Hn,Yn,Ge,Vn].join("|"),"g");function Jn(t){return t.match(Qn)||[]}function Xn(t,e,n){return t=be(t),e=n?void 0:e,e===void 0?hn(t)?Jn(t):An(t):t.match(e)||[]}var $n="['’]",Fn=RegExp($n,"g");function _n(t){return function(e){return un(Xn(Ln(e).replace(Fn,"")),t,"")}}var Kn=_n(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});const Be=Kn;function j(t){return u.defineComponent({name:t.name,inheritAttrs:!1,setup(e,n){const{attrs:i,slots:a,emit:o}=n,r=i,c=o,l=(d,s)=>{const M=Be(d);c(d,s),d!==M&&c(M,s)},I=new Proxy(a,{get(d,s,M){var g;return(g=Reflect.get(d,s,M))!=null?g:Reflect.get(r,s)}});return t(r,{...n,slots:I,emit:l})}})}function Ve(t){return{props:e=>u.defineComponent({name:t.name,inheritAttrs:!1,props:e,setup(n,i){const a=n,{slots:o,emit:r}=i,c=r,l=(d,s)=>{const M=Be(d);c(d,s),d!==M&&c(M,s)},I=new Proxy(o,{get(d,s,M){var g;return(g=Reflect.get(d,s,M))!=null?g:Reflect.get(a,s)}});return t(a,{...i,slots:I,emit:l})}})}}const D=u.h,Qe="zh-CN",ge=t=>t!=null&&typeof t=="object"&&Number.isFinite(t.lat)&&Number.isFinite(t.lng);var qn=typeof WeakMap=="function",fe=Object.keys;function Y(t,e){return t===e||t!==t&&e!==e}function me(t){return t.constructor===Object||t.constructor==null}function pe(t){return!!t&&typeof t.then=="function"}function je(t){return!!(t&&t.$$typeof)}function ei(){var t=[];return{delete:function(e){for(var n=0;n<t.length;++n)if(t[n][0]===e){t.splice(n,1);return}},get:function(e){for(var n=0;n<t.length;++n)if(t[n][0]===e)return t[n][1]},set:function(e,n){for(var i=0;i<t.length;++i)if(t[i][0]===e){t[i][1]=n;return}t.push([e,n])}}}var ti=function(t){return t?function(){return new WeakMap}:ei}(qn);function Je(t){return function(n){var i=t||n;return function(o,r,c,l,I,d,s){s===void 0&&(s=ti());var M=!!o&&typeof o=="object",g=!!r&&typeof r=="object";if(M!==g)return!1;if(!M&&!g)return i(o,r,s);var f=s.get(o);if(f&&s.get(r))return f===r;s.set(o,r),s.set(r,o);var m=i(o,r,s);return s.delete(o),s.delete(r),m}}}function ni(t,e,n,i){var a=t.length;if(e.length!==a)return!1;for(;a-- >0;)if(!n(t[a],e[a],a,a,t,e,i))return!1;return!0}function ii(t,e,n,i){var a=t.size===e.size;if(a&&t.size){var o={},r=0;t.forEach(function(c,l){if(a){var I=!1,d=0;e.forEach(function(s,M){!I&&!o[d]&&(I=n(l,M,r,d,t,e,i)&&n(c,s,l,M,t,e,i),I&&(o[d]=!0)),d++}),r++,a=I}})}return a}var ai="_owner",oi=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function ye(t,e,n,i){var a=fe(t),o=a.length;if(fe(e).length!==o)return!1;if(o)for(var r=void 0;o-- >0;){if(r=a[o],r===ai){var c=je(t),l=je(e);if((c||l)&&c!==l)return!1}if(!oi(e,r)||!n(t[r],e[r],r,r,t,e,i))return!1}return!0}var ri=function(){return/foo/g.flags==="g"?function(e,n){return e.source===n.source&&e.flags===n.flags}:function(e,n){return e.source===n.source&&e.global===n.global&&e.ignoreCase===n.ignoreCase&&e.multiline===n.multiline&&e.unicode===n.unicode&&e.sticky===n.sticky&&e.lastIndex===n.lastIndex}}();function ci(t,e,n,i){var a=t.size===e.size;if(a&&t.size){var o={};t.forEach(function(r,c){if(a){var l=!1,I=0;e.forEach(function(d,s){!l&&!o[I]&&(l=n(r,d,c,s,t,e,i),l&&(o[I]=!0)),I++}),a=l}})}return a}var ui=typeof Map=="function",si=typeof Set=="function",Le=Object.prototype.valueOf;function O(t){var e=typeof t=="function"?t(n):function(i,a,o,r,c,l,I){return n(i,a,I)};function n(i,a,o){if(i===a)return!0;if(i&&a&&typeof i=="object"&&typeof a=="object"){if(me(i)&&me(a))return ye(i,a,e,o);var r=Array.isArray(i),c=Array.isArray(a);return r||c?r===c&&ni(i,a,e,o):(r=i instanceof Date,c=a instanceof Date,r||c?r===c&&Y(i.getTime(),a.getTime()):(r=i instanceof RegExp,c=a instanceof RegExp,r||c?r===c&&ri(i,a):pe(i)||pe(a)?i===a:ui&&(r=i instanceof Map,c=a instanceof Map,r||c)?r===c&&ii(i,a,e,o):si&&(r=i instanceof Set,c=a instanceof Set,r||c)?r===c&&ci(i,a,e,o):i.valueOf!==Le||a.valueOf!==Le?Y(i.valueOf(),a.valueOf()):ye(i,a,e,o)))}return i!==i&&a!==a}return n}O();O(function(){return Y});O(Je());O(Je(Y));const N=([t,e])=>({lng:t,lat:e}),$=t=>{const e=[],n=t.split("*");for(const[i,a]of n.entries())a&&e.push({value:a,type:i%2===0?"normal":"emphasize"});return e},Xe=t=>`${t.charAt(2).toLocaleLowerCase()}${t.slice(3)}`,$e=t=>t.slice(2).toLowerCase(),li=t=>{switch(t){case"en":return"style_en";case"zh":return"style_zh_cn"}},ve=t=>[t.lng,t.lat],P=t=>(...e)=>{setTimeout(()=>t==null?void 0:t(...e))},Fe=O(t=>(e,n)=>ge(e)||ge(n)?new google.maps.LatLng(e).equals(new google.maps.LatLng(n)):t(e,n));function _e(){let t;return function(n){return Fe(n,t)||(t=n),t}}function W(t,e,n){const i=_e();return u.watch(()=>i(t()),e,{immediate:!1,flush:"post",...n})}function F(t,e,n){const i=_e();return u.watch(()=>i(t()),e,{immediate:!0,flush:"post",...n})}function Ii(t){return`set${t.charAt(0).toUpperCase()}${t.slice(1)}`}function di(t,e,n,i){const a=n.map(({name:o})=>()=>e[o]);u.watch(a,(o,r)=>{const c=t.value;if(c)for(const[l,I]of o.entries()){const{name:d,defaultValue:s}=n[l],M=r[l];Fe(I,M)||c[Ii(d)](I!=null?I:s)}},{immediate:!0,flush:"post",...i})}function ae(t,e,n,i){return di(t,e,n,{immediate:!1,...i})}function ee(t,e,n,i){u.watchPostEffect(a=>{const o=t==null?void 0:t.value;if(!o)return;const r=[];for(const c of i){const l=Xe(c),I=$e(c),d=s=>n(l,s);o.on(I,d),r.push(()=>o==null?void 0:o.off(I,d))}a(()=>{for(const c of r)c()})})}function te(t,e,n,i){u.watchPostEffect(a=>{const o=t==null?void 0:t.value;if(!o)return;const r=[];for(const c of i){const l=Xe(c),I=$e(c),d=M=>n(l,M),s=o.addListener(I,d);r.push(()=>google.maps.event.removeListener(s))}a(()=>{for(const c of r)c()})})}const Ke=Symbol(),oe=()=>u.inject(Ke),Mi=t=>u.provide(Ke,t),C=j(function(e){const n=u.shallowRef(),i=oe();return u.onMounted(()=>{n.value=new AMap.Marker({...e})}),u.onUnmounted(()=>{var a;(a=n.value)==null||a.setMap(null)}),u.watchPostEffect(()=>{var o;const a=i==null?void 0:i.value;a&&((o=n.value)==null||o.setMap(a))}),ae(n,e,[{name:"anchor",defaultValue:""},{name:"offset",defaultValue:[0,0]},{name:"clickable",defaultValue:!1},{name:"position",defaultValue:[0,0]},{name:"angle",defaultValue:0},{name:"label",defaultValue:void 0},{name:"zIndex",defaultValue:0},{name:"icon",defaultValue:""},{name:"draggable",defaultValue:!1},{name:"cursor",defaultValue:""},{name:"content",defaultValue:""},{name:"title",defaultValue:""},{name:"extData",defaultValue:""}]),()=>null}),qe=Symbol(),re=()=>u.inject(qe),gi=t=>u.provide(qe,t),w=j(function(e){const n=u.shallowRef(),i=re();return u.onMounted(()=>{n.value=new google.maps.marker.AdvancedMarkerView({...e})}),u.onUnmounted(()=>{n.value&&(n.value.map=null)}),u.watchPostEffect(()=>{const a=i==null?void 0:i.value;!a||!n.value||(n.value.map=a)}),W(()=>{const{content:a,...o}=e;return o},a=>{if(n.value){debugger;Object.assign(n.value,a)}}),u.watch(()=>e.content,a=>{n.value&&(n.value.content=a)},{flush:"post"}),()=>null}),et=Symbol(),A=()=>{const t=u.inject(et);if(!t)throw new Error("MyError: useMapSupplier should be under MapProvider");return t},fi=t=>u.provide(et,t),h=(t,e,n)=>{const{class:i,...a}=e!=null?e:{},o=document.createElement(t);return i&&(o.className=i),Object.assign(o,a),n&&(o.innerHTML=n),o},tt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+";var nt="rgf09w0";const it=j(function(e){const n=u.computed(()=>`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue");u.util.warn;const Ce="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9Ii44Ii8+PC9zdmc+",T="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIxN3B4IiB2aWV3Qm94PSIwIDAgMTcgMTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5qSt5ZyG5b2iPC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxjaXJjbGUgaWQ9InBhdGgtMSIgY3g9IjQuNSIgY3k9IjkuNSIgcj0iNC41Ij48L2NpcmNsZT4KICAgICAgICA8ZmlsdGVyIHg9Ii02MS4xJSIgeT0iLTYxLjElIiB3aWR0aD0iMjIyLjIlIiBoZWlnaHQ9IjIyMi4yJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJv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IyOC4wMDAwMDAsIC0zMjIuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSLmpK3lnIblvaIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIzMi4wMDAwMDAsIDMyMS4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDx1c2UgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMSIgZmlsdGVyPSJ1cmwoI2ZpbHRlci0yKSIgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICA8dXNlIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSIjMzQ2RUZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=";var kt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Ot=typeof global=="object"&&global&&global.Object===Object&&global;const Wt=Ot;var Ut=typeof self=="object"&&self&&self.Object===Object&&self,Yt=Wt||Ut||Function("return this")();const Ht=Yt;var Bt=Ht.Symbol;const R=Bt;var xe=Object.prototype,Qt=xe.hasOwnProperty,Vt=xe.toString,G=R?R.toStringTag:void 0;function Jt(t){var e=Qt.call(t,G),n=t[G];try{t[G]=void 0;var i=!0}catch{}var a=Vt.call(t);return i&&(e?t[G]=n:delete t[G]),a}var Xt=Object.prototype,$t=Xt.toString;function Ft(t){return $t.call(t)}var _t="[object Null]",Kt="[object Undefined]",ue=R?R.toStringTag:void 0;function qt(t){return t==null?t===void 0?Kt:_t:ue&&ue in Object(t)?Jt(t):Ft(t)}function en(t){return t!=null&&typeof t=="object"}var tn="[object Symbol]";function nn(t){return typeof t=="symbol"||en(t)&&qt(t)==tn}function an(t,e){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=e(t[n],n,t);return a}var on=Array.isArray;const rn=on;var cn=1/0,se=R?R.prototype:void 0,le=se?se.toString:void 0;function we(t){if(typeof t=="string")return t;if(rn(t))return an(t,we)+"";if(nn(t))return le?le.call(t):"";var e=t+"";return e=="0"&&1/t==-cn?"-0":e}function be(t){return t==null?"":we(t)}function un(t,e,n,i){var a=-1,o=t==null?0:t.length;for(i&&o&&(n=t[++a]);++a<o;)n=e(n,t[a],a,t);return n}function sn(t){return function(e){return t==null?void 0:t[e]}}var ln={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j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\xf6\\xf8-\\xff",wn="\\xac\\xb1\\xd7\\xf7",bn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pn="\\u2000-\\u206f",zn=" \\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",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",Zn="\\ufe0e\\ufe0f",Te=wn+bn+Pn+zn,Re="['’]",Ie="["+Te+"]",En="["+xn+"]",Ge="\\d+",Tn="["+ze+"]",ke="["+Ze+"]",Oe="[^"+Pe+Te+Ge+ze+Ze+Ee+"]",Rn="\\ud83c[\\udffb-\\udfff]",Gn="(?:"+En+"|"+Rn+")",kn="[^"+Pe+"]",We="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",z="["+Ee+"]",On="\\u200d",de="(?:"+ke+"|"+Oe+")",Wn="(?:"+z+"|"+Oe+")",Me="(?:"+Re+"(?:d|ll|m|re|s|t|ve))?",ge="(?:"+Re+"(?:D|LL|M|RE|S|T|VE))?",Ye=Gn+"?",He="["+Zn+"]?",Un="(?:"+On+"(?:"+[kn,We,Ue].join("|")+")"+He+Ye+")*",Yn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Hn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bn=He+Ye+Un,Qn="(?:"+[Tn,We,Ue].join("|")+")"+Bn,Vn=RegExp([z+"?"+ke+"+"+Me+"(?="+[Ie,z,"$"].join("|")+")",Wn+"+"+ge+"(?="+[Ie,z+de,"$"].join("|")+")",z+"?"+de+"+"+Me,z+"+"+ge,Hn,Yn,Ge,Qn].join("|"),"g");function Jn(t){return t.match(Vn)||[]}function Xn(t,e,n){return t=be(t),e=n?void 0:e,e===void 0?hn(t)?Jn(t):An(t):t.match(e)||[]}var $n="['’]",Fn=RegExp($n,"g");function _n(t){return function(e){return un(Xn(vn(e).replace(Fn,"")),t,"")}}var Kn=_n(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});const Be=Kn;function j(t){return u.defineComponent({name:t.name,inheritAttrs:!1,setup(e,n){const{attrs:i,slots:a,emit:o}=n,r=i,c=o,l=(d,s)=>{const M=Be(d);c(d,s),d!==M&&c(M,s)},I=new Proxy(a,{get(d,s,M){var g;return(g=Reflect.get(d,s,M))!=null?g:Reflect.get(r,s)}});return t(r,{...n,slots:I,emit:l})}})}function Qe(t){return{props:e=>u.defineComponent({name:t.name,inheritAttrs:!1,props:e,setup(n,i){const a=n,{slots:o,emit:r}=i,c=r,l=(d,s)=>{const M=Be(d);c(d,s),d!==M&&c(M,s)},I=new Proxy(o,{get(d,s,M){var g;return(g=Reflect.get(d,s,M))!=null?g:Reflect.get(a,s)}});return t(a,{...i,slots:I,emit:l})}})}}const S=u.h,Ve="zh-CN",fe=t=>t!=null&&typeof t=="object"&&Number.isFinite(t.lat)&&Number.isFinite(t.lng);var qn=typeof WeakMap=="function",me=Object.keys;function Y(t,e){return t===e||t!==t&&e!==e}function pe(t){return t.constructor===Object||t.constructor==null}function je(t){return!!t&&typeof t.then=="function"}function ye(t){return!!(t&&t.$$typeof)}function ei(){var t=[];return{delete:function(e){for(var n=0;n<t.length;++n)if(t[n][0]===e){t.splice(n,1);return}},get:function(e){for(var n=0;n<t.length;++n)if(t[n][0]===e)return t[n][1]},set:function(e,n){for(var i=0;i<t.length;++i)if(t[i][0]===e){t[i][1]=n;return}t.push([e,n])}}}var ti=function(t){return t?function(){return new WeakMap}:ei}(qn);function Je(t){return function(n){var i=t||n;return function(o,r,c,l,I,d,s){s===void 0&&(s=ti());var M=!!o&&typeof o=="object",g=!!r&&typeof r=="object";if(M!==g)return!1;if(!M&&!g)return i(o,r,s);var m=s.get(o);if(m&&s.get(r))return m===r;s.set(o,r),s.set(r,o);var p=i(o,r,s);return s.delete(o),s.delete(r),p}}}function ni(t,e,n,i){var a=t.length;if(e.length!==a)return!1;for(;a-- >0;)if(!n(t[a],e[a],a,a,t,e,i))return!1;return!0}function ii(t,e,n,i){var a=t.size===e.size;if(a&&t.size){var o={},r=0;t.forEach(function(c,l){if(a){var I=!1,d=0;e.forEach(function(s,M){!I&&!o[d]&&(I=n(l,M,r,d,t,e,i)&&n(c,s,l,M,t,e,i),I&&(o[d]=!0)),d++}),r++,a=I}})}return a}var ai="_owner",oi=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function ve(t,e,n,i){var a=me(t),o=a.length;if(me(e).length!==o)return!1;if(o)for(var r=void 0;o-- >0;){if(r=a[o],r===ai){var c=ye(t),l=ye(e);if((c||l)&&c!==l)return!1}if(!oi(e,r)||!n(t[r],e[r],r,r,t,e,i))return!1}return!0}var ri=function(){return/foo/g.flags==="g"?function(e,n){return e.source===n.source&&e.flags===n.flags}:function(e,n){return e.source===n.source&&e.global===n.global&&e.ignoreCase===n.ignoreCase&&e.multiline===n.multiline&&e.unicode===n.unicode&&e.sticky===n.sticky&&e.lastIndex===n.lastIndex}}();function ci(t,e,n,i){var a=t.size===e.size;if(a&&t.size){var o={};t.forEach(function(r,c){if(a){var l=!1,I=0;e.forEach(function(d,s){!l&&!o[I]&&(l=n(r,d,c,s,t,e,i),l&&(o[I]=!0)),I++}),a=l}})}return a}var ui=typeof Map=="function",si=typeof Set=="function",Le=Object.prototype.valueOf;function O(t){var e=typeof t=="function"?t(n):function(i,a,o,r,c,l,I){return n(i,a,I)};function n(i,a,o){if(i===a)return!0;if(i&&a&&typeof i=="object"&&typeof a=="object"){if(pe(i)&&pe(a))return ve(i,a,e,o);var r=Array.isArray(i),c=Array.isArray(a);return r||c?r===c&&ni(i,a,e,o):(r=i instanceof Date,c=a instanceof Date,r||c?r===c&&Y(i.getTime(),a.getTime()):(r=i instanceof RegExp,c=a instanceof RegExp,r||c?r===c&&ri(i,a):je(i)||je(a)?i===a:ui&&(r=i instanceof Map,c=a instanceof Map,r||c)?r===c&&ii(i,a,e,o):si&&(r=i instanceof Set,c=a instanceof Set,r||c)?r===c&&ci(i,a,e,o):i.valueOf!==Le||a.valueOf!==Le?Y(i.valueOf(),a.valueOf()):ve(i,a,e,o)))}return i!==i&&a!==a}return n}O();O(function(){return Y});O(Je());O(Je(Y));const h=([t,e])=>({lng:t,lat:e}),$=t=>{const e=[],n=t.split("*");for(const[i,a]of n.entries())a&&e.push({value:a,type:i%2===0?"normal":"emphasize"});return e},Xe=t=>`${t.charAt(2).toLocaleLowerCase()}${t.slice(3)}`,$e=t=>t.slice(2).toLowerCase(),li=t=>{switch(t){case"en":return"style_en";case"zh":return"style_zh_cn"}},ee=t=>[t.lng,t.lat],P=t=>(...e)=>{setTimeout(()=>t==null?void 0:t(...e))},Fe=O(t=>(e,n)=>fe(e)||fe(n)?new google.maps.LatLng(e).equals(new google.maps.LatLng(n)):t(e,n));function _e(){let t;return function(n){return Fe(n,t)||(t=n),t}}function W(t,e,n){const i=_e();return u.watch(()=>i(t()),e,{immediate:!1,flush:"post",...n})}function F(t,e,n){const i=_e();return u.watch(()=>i(t()),e,{immediate:!0,flush:"post",...n})}function Ii(t){return`set${t.charAt(0).toUpperCase()}${t.slice(1)}`}function di(t,e,n,i){const a=n.map(({name:o})=>()=>e[o]);u.watch(a,(o,r)=>{const c=t.value;if(c)for(const[l,I]of o.entries()){const{name:d,defaultValue:s}=n[l],M=r[l];Fe(I,M)||c[Ii(d)](I!=null?I:s)}},{immediate:!0,flush:"post",...i})}function oe(t,e,n,i){return di(t,e,n,{immediate:!1,...i})}function te(t,e,n,i){u.watchPostEffect(a=>{const o=t==null?void 0:t.value;if(!o)return;const r=[];for(const c of i){const l=Xe(c),I=$e(c),d=s=>n(l,s);o.on(I,d),r.push(()=>o==null?void 0:o.off(I,d))}a(()=>{for(const c of r)c()})})}function ne(t,e,n,i){u.watchPostEffect(a=>{const o=t==null?void 0:t.value;if(!o)return;const r=[];for(const c of i){const l=Xe(c),I=$e(c),d=M=>n(l,M),s=o.addListener(I,d);r.push(()=>google.maps.event.removeListener(s))}a(()=>{for(const c of r)c()})})}const Ke=Symbol(),re=()=>u.inject(Ke),Mi=t=>u.provide(Ke,t),x=j(function(e){const n=u.shallowRef(),i=re();return u.onMounted(()=>{n.value=new AMap.Marker({...e})}),u.onUnmounted(()=>{var a;(a=n.value)==null||a.setMap(null)}),u.watchPostEffect(()=>{var o;const a=i==null?void 0:i.value;a&&((o=n.value)==null||o.setMap(a))}),oe(n,e,[{name:"anchor",defaultValue:""},{name:"offset",defaultValue:[0,0]},{name:"clickable",defaultValue:!1},{name:"position",defaultValue:[0,0]},{name:"angle",defaultValue:0},{name:"label",defaultValue:void 0},{name:"zIndex",defaultValue:0},{name:"icon",defaultValue:""},{name:"draggable",defaultValue:!1},{name:"cursor",defaultValue:""},{name:"content",defaultValue:""},{name:"title",defaultValue:""},{name:"extData",defaultValue:""}]),()=>null}),qe=Symbol(),ce=()=>u.inject(qe),gi=t=>u.provide(qe,t),w=j(function(e){const n=u.shallowRef(),i=ce();return u.onMounted(()=>{n.value=new google.maps.marker.AdvancedMarkerView({...e})}),u.onUnmounted(()=>{n.value&&(n.value.map=null)}),u.watchPostEffect(()=>{const a=i==null?void 0:i.value;!a||!n.value||(n.value.map=a)}),W(()=>{const{content:a,...o}=e;return o},a=>{n.value&&Object.assign(n.value,a)}),u.watch(()=>e.content,a=>{n.value&&(n.value.content=a)},{flush:"post"}),()=>null}),et=Symbol(),A=()=>{const t=u.inject(et);if(!t)throw new Error("MyError: useMapSupplier should be under MapProvider");return t},fi=t=>u.provide(et,t),D=(t,e,n)=>{const{class:i,...a}=e!=null?e:{},o=document.createElement(t);return i&&(o.className=i),Object.assign(o,a),n&&(o.innerHTML=n),o},tt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+";var nt="rgf09w0";const it=j(function(e){const n=u.computed(()=>`
|
|
2
2
|
<img src="${tt}" class="${nt}">
|
|
3
|
-
`);return()=>u.h(
|
|
3
|
+
`);return()=>u.h(x,{attrs:{position:e.position,content:n.value,anchor:"bottom-center"}})}),at=j(function(e){const n=u.computed(()=>D("img",{class:nt,src:tt}));return()=>u.h(w,{attrs:{position:h(e.position),content:n.value}})});j(function(e){const n=A();return()=>S(n.supplier==="gmap"?at:it,{attrs:e})});var ot="_15rq2xn1",rt="_15rq2xn0",ct="_15rq2xn3",ut="_15rq2xn2",st="_15rq2xn4",lt="_15rq2xn6",It="_15rq2xn5";const mi=j(function(e){const n=u.computed(()=>{var i;return`
|
|
4
4
|
<div class="${rt}">
|
|
5
5
|
<div class="${ot}">
|
|
6
6
|
<div>
|
|
7
7
|
<div class="${ut}">${e.title}</div>
|
|
8
8
|
<div class="${ct}">${(i=e.description)!=null?i:""}</div>
|
|
9
9
|
</div>
|
|
10
|
-
<img class="${st}" src="${
|
|
10
|
+
<img class="${st}" src="${Ce}" >
|
|
11
11
|
</div>
|
|
12
12
|
<div class="${It}"></div>
|
|
13
13
|
<img src="${T}" class="${lt}">
|
|
14
14
|
</div>
|
|
15
|
-
`});return()=>e.type==="locator"?u.h(it,{attrs:{position:e.position}}):u.h(
|
|
15
|
+
`});return()=>e.type==="locator"?u.h(it,{attrs:{position:e.position}}):u.h(x,{attrs:{position:e.position,content:n.value,anchor:"bottom-center"}})}),pi=j(function(e){const n=u.computed(()=>{var i;return D("div",{class:rt},`
|
|
16
16
|
<div class="${ot}">
|
|
17
17
|
<div>
|
|
18
18
|
<div class="${ut}">${e.title}</div>
|
|
19
19
|
<div class="${ct}">${(i=e.description)!=null?i:""}</div>
|
|
20
20
|
</div>
|
|
21
|
-
<img class="${st}" src="${
|
|
21
|
+
<img class="${st}" src="${Ce}" >
|
|
22
22
|
</div>
|
|
23
23
|
<div class="${It}"></div>
|
|
24
24
|
<img src="${T}" class="${lt}">
|
|
25
|
-
`)});return()=>e.type==="locator"?u.h(at,{attrs:{position:e.position}}):u.h(w,{attrs:{position:
|
|
25
|
+
`)});return()=>e.type==="locator"?u.h(at,{attrs:{position:e.position}}):u.h(w,{attrs:{position:h(e.position),content:n.value}})}),ji=j(function(e){const n=A();return()=>S(n.supplier==="gmap"?pi:mi,{attrs:e})}),k=j(function(e){const n=u.shallowRef(),i=re();return u.onMounted(()=>{n.value=new AMap.Polyline({...e})}),u.onUnmounted(()=>{var a;(a=n.value)==null||a.setMap(null)}),u.watchPostEffect(()=>{var o;const a=i==null?void 0:i.value;a&&((o=n.value)==null||o.setMap(a))}),oe(n,e,[{name:"path",defaultValue:[[0,0]]},{name:"extData",defaultValue:void 0},{name:"draggable",defaultValue:!1}]),W(()=>{const{path:a,extData:o,draggable:r,...c}=e;return c},a=>{var o;(o=n.value)==null||o.setOptions({...a})}),()=>null}),U=j(function(e){const n=u.shallowRef(),i=ce();return u.onMounted(()=>{n.value=new google.maps.Polyline({...e})}),u.onUnmounted(()=>{var a;(a=n.value)==null||a.setMap(null)}),u.watchPostEffect(()=>{var o;const a=i==null?void 0:i.value;a&&((o=n.value)==null||o.setMap(a))}),W(()=>({...e}),a=>{var o;(o=n.value)==null||o.setOptions({...a})}),()=>null}),yi=j(function(e){return()=>{const n=window.innerWidth*.01,i=2.5*n,a=.35*n,o=.6*n,r=1*n,c=.75*n,l=e.done?"#96B2CA":"#487BF4",I=e.done?"#7693AF":"#4175F1",d=e.done?"#7693AF":"#6C95F5";return u.h("div",[u.h(k,{attrs:{path:e.path,strokeWeight:i+2*a+2*r,strokeOpacity:1,strokeColor:I,lineJoin:"round",lineCap:"round"}}),u.h(k,{attrs:{path:e.path,strokeWeight:i+2*a,strokeOpacity:1,strokeColor:d,lineJoin:"round",lineCap:"round",strokeStyle:"dashed",strokeDasharray:[c,c*.5]}}),u.h(k,{attrs:{path:e.path,strokeWeight:i,strokeOpacity:1,strokeColor:l,lineJoin:"round",lineCap:"round"}}),u.h(k,{attrs:{showDir:!0,path:e.path,strokeWeight:i+2*o,strokeOpacity:1,strokeColor:"transparent",lineJoin:"round",lineCap:"round"}})])}}),vi=j(function(e){const n=u.computed(()=>e.path.map(h));return()=>{const i=window.innerWidth*.01,a=10*i,o=2.5*i,r=.35*i,c=.75*i,l=1*i,I=e.done?"#96B2CA":"#487BF4",d=e.done?"#7693AF":"#4175F1",s=e.done?"#7693AF":"#6C95F5";return u.h("div",[u.h(U,{attrs:{path:n.value,strokeWeight:o+2*r+2*l,strokeOpacity:1,strokeColor:d}}),u.h(U,{attrs:{path:n.value,icons:[{icon:{path:"M 0,-0.5 0,0.5",strokeWeight:o+2*r,strokeColor:s,fillColor:s,scale:1},repeat:`${o}px`,offset:`${o/2}px`}]}}),u.h(U,{attrs:{path:n.value,strokeWeight:o,strokeOpacity:1,strokeColor:I,icons:[{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW,strokeColor:"white",strokeWeight:c,scale:3},repeat:`${a}px`}]}})])}}),Li=j(function(e){const n=A();return()=>e.path.length?S(n.supplier==="gmap"?vi:yi,{attrs:e}):null}),dt=t=>{const e=u.shallowRef([]),n=new AMap.Driving({});return F(()=>({...t}),({from:i,to:a})=>{n.search(AMap.LngLat.from(i),AMap.LngLat.from(a),{waypoints:[]},(o,r)=>{switch(o){case"complete":{let c=[];const l=r;for(const I of l.routes)for(const d of I.steps){const M=d.path.map(({lng:g,lat:m})=>[g,m]);c=c.concat(M)}e.value=c;return}case"no_data":return;default:throw r}})}),e},Mt=t=>{const e=u.shallowRef([]),n=new google.maps.DirectionsService;return F(()=>({...t}),({from:i,to:a})=>{n.route({origin:{lng:i[0],lat:i[1]},destination:{lng:a[0],lat:a[1]},travelMode:google.maps.TravelMode.WALKING}).then(o=>{let r=[];o.routes.map(c=>{const l=c.overview_path.map(I=>[I.lng(),I.lat()]);r=r.concat(l)}),e.value=r})}),e},Ai=t=>{const{supplier:e}=A();return e==="gmap"?Mt(t):dt(t)},Ni=(t,e,n)=>{if(!n)return 0;const{x:i,y:a}=n.lngLatToContainer(t),{x:o,y:r}=n.lngLatToContainer(e),c=Math.atan2(a-r,o-i);return(Math.PI/2-c)/Math.PI*180},gt=t=>u.computed(()=>{const{map:e,path:n}=t,[i,a]=n;if(!(!i||!a||!e))return Ni(i,a,e)}),ft=t=>u.computed(()=>{const{path:e}=t,[n,i]=e;if(!(!n||!i))return google.maps.geometry.spherical.computeHeading(h(n),h(i))}),hi=t=>{const{supplier:e}=A();return e==="gmap"?ft(t):gt(t)},Di=j(function(e,{slots:n}){const i=re(),a=dt(e),o=gt(u.reactive({path:a,map:i}));return()=>{var r;return u.h("div",[(r=n.render)==null?void 0:r.call(n,u.reactive({path:a,angle:o}))])}}),Si=j(function(e,{slots:n}){const i=ce(),a=Mt(e),o=ft(u.reactive({path:a,map:i}));return()=>{var r;return u.h("div",[(r=n.render)==null?void 0:r.call(n,u.reactive({path:a,angle:o}))])}}),Ci=j(function(e,{slots:n}){const{supplier:i}=A();return()=>S(i==="gmap"?Si:Di,{attrs:e,scopedSlots:n})}),mt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjEiIGhlaWdodD0iNjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTcuMSUiIHk9Ii03LjElIiB3aWR0aD0iMTE0LjMlIiBoZWlnaHQ9IjExNC4zJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249Ii41IiBpbj0ic2hhZG93T2Zmc2V0T3V0ZXIxIiByZXN1bHQ9InNoYWRvd0JsdXJPdXRlcjEiLz48ZmVDb21wb3NpdGUgaW49InNoYWRvd0JsdXJPdXRlcjEiIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNzc0NTMwMTYgMCIgaW49InNoYWRvd0JsdXJPdXRlcjEiLz48L2ZpbHRlcj48Y2lyY2xlIGlkPSJwcmVmaXhfX2IiIGN4PSIzMCIgY3k9IjMwIiByPSIxMC41Ii8+PC9kZWZzPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC40MDUgLjI2NCkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGNpcmNsZSBzdHJva2Utb3BhY2l0eT0iLjEiIHN0cm9rZT0iIzAwM0RGRiIgZmlsbC1vcGFjaXR5PSIuMTUiIGZpbGw9IiM0ODczRkUiIGN4PSIzMCIgY3k9IjMwIiByPSIyOS41Ii8+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjcHJlZml4X19hKSIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjxjaXJjbGUgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVqb2luPSJzcXVhcmUiIGZpbGw9IiM0ODcxRjEiIGN4PSIzMCIgY3k9IjMwIiByPSI5LjMiLz48L2c+PC9zdmc+";var pt="_1l6offo0";const xi=j(function(e){const n=u.computed(()=>`
|
|
26
26
|
<img src="${mt}" class="${pt}">
|
|
27
|
-
`);return()=>u.h(
|
|
27
|
+
`);return()=>u.h(x,{attrs:{position:e.position,content:n.value,anchor:"bottom-center"}})}),wi=j(function(e){const n=u.computed(()=>D("img",{class:pt,src:mt}));return()=>u.h(w,{attrs:{position:h(e.position),content:n.value}})}),bi=j(function(e){const n=A();return()=>S(n.supplier==="gmap"?wi:xi,{attrs:e})});var ie=(t=>(t.topLeft="top-left",t.topCenter="top-center",t.topRight="top-right",t.middleLeft="middle-left",t.center="center",t.middleRight="middle-right",t.bottomLeft="bottom-left",t.bottomCenter="bottom-center",t.bottomRight="bottom-right",t))(ie||{});function Pi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ae(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function Ne(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ae(Object(n),!0).forEach(function(i){Pi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var zi=(t,e,n)=>{for(var i of Object.keys(t)){var a;if(t[i]!==((a=e[i])!==null&&a!==void 0?a:n[i]))return!1}return!0},_=t=>e=>{var n=t.defaultClassName,i=Ne(Ne({},t.defaultVariants),e);for(var a in i){var o,r=(o=i[a])!==null&&o!==void 0?o:t.defaultVariants[a];if(r!=null){var c=r;typeof c=="boolean"&&(c=c===!0?"true":"false");var l=t.variantClassNames[a][c];l&&(n+=" "+l)}}for(var[I,d]of t.compoundVariants)zi(I,i,t.defaultVariants)&&(n+=" "+d);return n},he=_({defaultClassName:"",variantClassNames:{textAlign:{left:"fhyw83",right:"fhyw84"}},defaultVariants:{},compoundVariants:[]}),De=_({defaultClassName:"fhyw85",variantClassNames:{textAlign:{left:"fhyw86",right:"fhyw87"}},defaultVariants:{},compoundVariants:[]}),jt="fhyw89",yt=_({defaultClassName:"fhyw80",variantClassNames:{textAlign:{left:"fhyw81",right:"fhyw82"}},defaultVariants:{},compoundVariants:[]}),H="fhyw88";const Zi=j(function(e){const n=u.computed(()=>{var o;return(o=e.textAlign)!=null?o:"right"}),i=u.computed(()=>`
|
|
28
28
|
<div class="${yt({textAlign:n.value})}" >
|
|
29
29
|
<img class="${H} ${he({textAlign:n.value})}" src="${T}">
|
|
30
30
|
<div class="${jt}">${e.label}</div>
|
|
31
31
|
</div>
|
|
32
|
-
`),a=u.computed(()=>`<img class="${H} ${he({textAlign:n.value})}" src="${T}">`);return()=>u.h(
|
|
32
|
+
`),a=u.computed(()=>`<img class="${H} ${he({textAlign:n.value})}" src="${T}">`);return()=>u.h(x,{attrs:{position:e.position,content:e.label?i.value:a.value,anchor:n.value==="left"?ie.middleRight:ie.middleLeft}})}),Ei=j(function(e){const n=u.computed(()=>{var o;return(o=e.textAlign)!=null?o:"right"}),i=u.computed(()=>D("div",{class:`${yt({textAlign:n.value})} ${De({textAlign:n.value})}`},`
|
|
33
33
|
<img class="${H}" src="${T}">
|
|
34
34
|
<div class="${jt}">${e.label}</div>
|
|
35
|
-
`)),a=u.computed(()=>
|
|
35
|
+
`)),a=u.computed(()=>D("img",{class:`${H} ${De({textAlign:n.value})}`,src:T}));return()=>u.h(w,{attrs:{position:h(e.position),content:e.label?i.value:a.value}})}),vt=j(function(e){const n=A();return()=>S(n.supplier==="gmap"?Ei:Zi,{attrs:e})}),Ti=j(function(e){return()=>u.h("div",[e.places.map(n=>u.h(vt,{attrs:{position:ee(n),label:n.name,textAlign:"left"}}))])}),Lt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjg0NDciIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkY4QjRBIiBvZmZzZXQ9IjUwLjU5NiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZBOTVBIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xMiAzMC4yMTVjMi4xMzQgMCAzLjg2My0uODkzIDMuODYzLTEuOTk1IDAtMS4xLTEuNzMtMS45OTQtMy44NjMtMS45OTQtMi4xMzQgMC0zLjg2My44OTMtMy44NjMgMS45OTQgMCAxLjEwMiAxLjczIDEuOTk1IDMuODYzIDEuOTk1eiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxw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tMS4wMDctMS41ODEtMS44MjMtMy41MzItMS44MjMtMS45NSAwLTMuNTMyLjgxNi0zLjUzMiAxLjgyMyAwIDEuMDA3IDEuNTgxIDEuODIzIDMuNTMyIDEuODIzeiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyN2MyLjEyOCAwLS45LTMuNzQyIDUuNjIxLTYuNjQxIDMuMjIxLTEuOTEgNS4zNzktNS40MSA1LjM3OS05LjQxMkMyMiA0LjkwMSAxNy4wNzUgMCAxMSAwUzAgNC45MDEgMCAxMC45NDdjMCAzLjkxOCAyLjA2OCA3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";var E=_({defaultClassName:"",variantClassNames:{type:{start:"_4a4ovk6",end:"_4a4ovk7"}},defaultVariants:{},compoundVariants:[]}),Nt="_4a4ovk1",ht="_4a4ovk4",Dt="_4a4ovk5",St="_4a4ovk3",B="_4a4ovk0",Ct="_4a4ovk2";const Ri=j(function(e){const n=u.computed(()=>{var o;const i=e.type==="start"?At:Lt,a=e.description?$(e.description).map(r=>r.type==="normal"?r.value:`<span class="${Dt}">${r.value}</span>`).join(""):"";return!e.description&&!e.title?`<img src="${i}" class="${E({type:e.type})}">`:e.description?`
|
|
36
36
|
<div class="${B}">
|
|
37
37
|
<div class="${Nt}">
|
|
38
38
|
<div class="${St}">${(o=e.title)!=null?o:""}</div>
|
|
@@ -42,29 +42,29 @@
|
|
|
42
42
|
</div>
|
|
43
43
|
`:`
|
|
44
44
|
<div class="${B}">
|
|
45
|
-
<div class="${
|
|
45
|
+
<div class="${Ct}">${e.title}</div>
|
|
46
46
|
<img src="${i}" class="${E({type:e.type})}">
|
|
47
47
|
</div>
|
|
48
|
-
`});return()=>u.h(
|
|
48
|
+
`});return()=>u.h(x,{attrs:{position:e.position,content:n.value,anchor:"bottom-center"}})}),Gi=j(function(e){const n=u.computed(()=>{var o;const i=e.type==="start"?At:Lt,a=e.description?$(e.description).map(r=>r.type==="normal"?r.value:`<span class="${Dt}">${r.value}</span>`).join(""):"";return!e.description&&!e.title?D("img",{class:E({type:e.type}),src:i}):e.description?D("div",{class:B},`
|
|
49
49
|
<div class="${Nt}">
|
|
50
50
|
<div class="${St}">${(o=e.title)!=null?o:""}</div>
|
|
51
51
|
<div class="${ht}">${a}</div>
|
|
52
52
|
</div>
|
|
53
53
|
<img src="${i}" class="${E({type:e.type})}">
|
|
54
|
-
`):
|
|
55
|
-
<div class="${
|
|
54
|
+
`):D("div",{class:B},`
|
|
55
|
+
<div class="${Ct}">${e.title}</div>
|
|
56
56
|
<img src="${i}" class="${E({type:e.type})}">
|
|
57
|
-
`)});return()=>u.h(w,{attrs:{position:
|
|
57
|
+
`)});return()=>u.h(w,{attrs:{position:h(e.position),content:n.value}})}),ki=j(function(e){const n=A();return()=>S(n.supplier==="gmap"?Gi:Ri,{attrs:e})}),Q="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0zNC4wODcgMTAuOTZjMCAyLjM2OS0uMDU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IgMjAuMTIgMCAwMC0uMjk0LTIuNDQydi0uMDY1YzEuNTM4LS4zMiAzLjE2Ny0uNjQ5IDQuODYyLS42NDkgMS42NzUgMCAzLjI5NC4zMjYgNC44MTYuNjM3YTIyLjY3MyAyMi42NzMgMCAwMC0uMzAzIDIuNTJjLS4xNDcgMi44ODQuMDIgMy4zMTQuMjMyIDUuMDQ4LjAwNi4wNTcuMDI2LjE1Mi4wNTYuMjc0LTEuNTEzLjI3OC0zIC41NC00LjkxMi41NC0xLjg0NyAwLTMuMjg5LS4yNS00Ljc1LS41MTF2LS4wMDhjLjAzLS4xMzEuMDU1LS4yMzMuMDYtLjI5LjIxOC0xLjc0NC4zOC0yLjE3My4yMzMtNS4wNTN6IiBmaWxsPSIjRjJGQUZGIi8+PHBhdGggZD0iTTEyLjA2NyAxOS43MTZsLTQuNjQ1LjY5MmMtLjQzMS0yLjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";var V="_65j3sr1",xt="_4a4ovk5",wt="_4a4ovk0",bt="_4a4ovk2";const Oi=j(function(e){const n=u.computed(()=>{var o;const i=e.title?$(e.title).map(r=>r.type==="normal"?r.value:`<span class="${xt}">${r.value}</span>`).join(""):"",a=`transform:rotate(${(o=e.angle)!=null?o:0}deg)`;return e.title?`
|
|
58
58
|
<div class="${wt}">
|
|
59
59
|
<div class="${bt}">${i}</div>
|
|
60
|
-
<img src="${
|
|
60
|
+
<img src="${Q}" class="${V}" style="${a}">
|
|
61
61
|
</div>
|
|
62
|
-
`:`<img src="${
|
|
62
|
+
`:`<img src="${Q}" class="${V}" style="${a}">`});return()=>u.h(x,{attrs:{position:e.position,content:n.value,anchor:"bottom-center"}})}),Wi=j(function(e){const n=u.computed(()=>{var o;const i=e.title?$(e.title).map(r=>r.type==="normal"?r.value:`<span class="${xt}">${r.value}</span>`).join(""):"",a=`transform:rotate(${(o=e.angle)!=null?o:0}deg)`;return e.title?D("div",{class:wt},`
|
|
63
63
|
<div class="${bt}">${i}</div>
|
|
64
|
-
<img src="${
|
|
65
|
-
`):
|
|
64
|
+
<img src="${Q}" class="${V}" style="${a}">
|
|
65
|
+
`):D("img",{class:V,src:Q,style:a})});return()=>u.h(w,{attrs:{position:h(e.position),content:n.value}})}),Ui=j(function(e){const n=A();return()=>S(n.supplier==="gmap"?Wi:Oi,{attrs:e})}),Yi=j(function(e){return()=>{const i=2*(window.innerWidth*.01);return u.h(k,{attrs:{path:e.path,strokeWeight:i,strokeOpacity:1,strokeColor:"#38A3FE",strokeStyle:"dashed",strokeDasharray:[i,i*1.5],lineJoin:"round",lineCap:"round"}})}}),Hi=j(function(e){const n=u.computed(()=>e.path.map(h));return()=>{const a=2*(window.innerWidth*.01),o=a/4;return u.h(U,{attrs:{path:n.value,strokeWeight:a,strokeOpacity:1,strokeColor:"transparent",icons:[{icon:{path:`
|
|
66
66
|
M ${o}, ${o}
|
|
67
67
|
m -${o}, 0
|
|
68
68
|
a ${o},${o} 0 1,0 ${2*o},0
|
|
69
69
|
a ${o},${o} 0 1,0 -${2*o},0
|
|
70
|
-
`,strokeColor:"#38A3FE",fillColor:"#38A3FE",fillOpacity:1,strokeOpacity:1,strokeWeight:a/2,scale:1},repeat:`${a*2}px`}]}})}}),Bi=j(function(e){const n=A();return()=>D(n.supplier==="gmap"?Hi:Yi,{attrs:e})}),J="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";var Pt="rrvp0y3",X="rrvp0y2";const Vi=j(function(e){const n=u.computed(()=>`<img src="${J}" class="${X}">`),i=u.computed(()=>`<img src="${J}" class="${X} ${Pt}">`);return()=>u.h("div",[u.h(C,{attrs:{position:e.position,anchor:"bottom-center",content:n.value}}),u.h(C,{attrs:{position:e.position,anchor:"bottom-center",content:i.value}})])}),Qi=j(function(e){const n=u.computed(()=>h("img",{class:X,src:J})),i=u.computed(()=>h("img",{class:`${X} ${Pt}`,src:J}));return()=>{const a=N(e.position);return u.h("div",[u.h(w,{attrs:{position:a,content:n.value}}),u.h(w,{attrs:{position:a,content:i.value}})])}}),Ji=j(function(e){const n=A();return()=>D(n.supplier==="gmap"?Qi:Vi,{attrs:e})});var Xi="_1d8ur7t0";const $i=j(function(e,{slots:n,emit:i}){const{onDragStart:a,onDragEnd:o,mapRef:r,vectorMapForeign:c="style_zh_cn",...l}=e,I=u.computed(()=>({dragEnable:!!e.dragEnable,zoomEnable:!!e.zoomEnable,jogEnable:!!e.jogEnable,pitchEnable:!!e.pitchEnable,rotateEnable:!!e.rotateEnable,animateEnable:!!e.animateEnable,keyboardEnable:!!e.keyboardEnable})),d=u.shallowRef(),s=u.shallowRef();return Mi(s),u.watchPostEffect(()=>{if(s.value||!d.value)return;const M=new AMap.Map(d.value,{...l,vectorMapForeign:c,mapStyle:"amap://styles/95498a904992a4c0b866a3e4d7729682"});s.value=M,r==null||r(M)}),W(()=>I.value,M=>{var g;(g=s.value)==null||g.setStatus(M)}),ae(s,e,[{name:"center",defaultValue:[0,0]},{name:"zooms",defaultValue:[0,0]},{name:"zoom",defaultValue:0},{name:"layers",defaultValue:[]},{name:"limitBounds",defaultValue:[]},{name:"rotation",defaultValue:0},{name:"defaultCursor",defaultValue:""},{name:"mapStyle",defaultValue:""},{name:"features",defaultValue:[]},{name:"pitch",defaultValue:0},{name:"mask",defaultValue:[]},{name:"labelRejectMask",defaultValue:!1}]),ee(s,e,i,["onDragStart","onDragEnd"]),()=>{var M;return u.h("div",{ref:d,class:Xi},(M=n.default)==null?void 0:M.call(n))}});var ie={},Fi={get exports(){return ie},set exports(t){ie=t}};(function(t,e){(function(n,i){t.exports=i()})(kt,function(){function n(s){var M=[];return s.AMapUI&&M.push(i(s.AMapUI)),s.Loca&&M.push(a(s.Loca)),Promise.all(M)}function i(s){return new Promise(function(M,g){var f=[];if(s.plugins)for(var m=0;m<s.plugins.length;m+=1)r.AMapUI.plugins.indexOf(s.plugins[m])==-1&&f.push(s.plugins[m]);if(c.AMapUI===o.failed)g("前次请求 AMapUI 失败");else if(c.AMapUI===o.notload){c.AMapUI=o.loading,r.AMapUI.version=s.version||r.AMapUI.version,m=r.AMapUI.version;var L=document.body||document.head,p=document.createElement("script");p.type="text/javascript",p.src="https://webapi.amap.com/ui/"+m+"/main.js",p.onerror=function(y){c.AMapUI=o.failed,g("请求 AMapUI 失败")},p.onload=function(){if(c.AMapUI=o.loaded,f.length)window.AMapUI.loadUI(f,function(){for(var y=0,v=f.length;y<v;y++){var S=f[y].split("/").slice(-1)[0];window.AMapUI[S]=arguments[y]}for(M();l.AMapUI.length;)l.AMapUI.splice(0,1)[0]()});else for(M();l.AMapUI.length;)l.AMapUI.splice(0,1)[0]()},L.appendChild(p)}else c.AMapUI===o.loaded?s.version&&s.version!==r.AMapUI.version?g("不允许多个版本 AMapUI 混用"):f.length?window.AMapUI.loadUI(f,function(){for(var y=0,v=f.length;y<v;y++){var S=f[y].split("/").slice(-1)[0];window.AMapUI[S]=arguments[y]}M()}):M():s.version&&s.version!==r.AMapUI.version?g("不允许多个版本 AMapUI 混用"):l.AMapUI.push(function(y){y?g(y):f.length?window.AMapUI.loadUI(f,function(){for(var v=0,S=f.length;v<S;v++){var Gt=f[v].split("/").slice(-1)[0];window.AMapUI[Gt]=arguments[v]}M()}):M()})})}function a(s){return new Promise(function(M,g){if(c.Loca===o.failed)g("前次请求 Loca 失败");else if(c.Loca===o.notload){c.Loca=o.loading,r.Loca.version=s.version||r.Loca.version;var f=r.Loca.version,m=r.AMap.version.startsWith("2"),L=f.startsWith("2");if(m&&!L||!m&&L)g("JSAPI 与 Loca 版本不对应!!");else{m=r.key,L=document.body||document.head;var p=document.createElement("script");p.type="text/javascript",p.src="https://webapi.amap.com/loca?v="+f+"&key="+m,p.onerror=function(y){c.Loca=o.failed,g("请求 AMapUI 失败")},p.onload=function(){for(c.Loca=o.loaded,M();l.Loca.length;)l.Loca.splice(0,1)[0]()},L.appendChild(p)}}else c.Loca===o.loaded?s.version&&s.version!==r.Loca.version?g("不允许多个版本 Loca 混用"):M():s.version&&s.version!==r.Loca.version?g("不允许多个版本 Loca 混用"):l.Loca.push(function(y){y?g(y):g()})})}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var o;(function(s){s.notload="notload",s.loading="loading",s.loaded="loaded",s.failed="failed"})(o||(o={}));var r={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},c={AMap:o.notload,AMapUI:o.notload,Loca:o.notload},l={AMap:[],AMapUI:[],Loca:[]},I=[],d=function(s){typeof s=="function"&&(c.AMap===o.loaded?s(window.AMap):I.push(s))};return{load:function(s){return new Promise(function(M,g){if(c.AMap==o.failed)g("");else if(c.AMap==o.notload){var f=s.key,m=s.version,L=s.plugins;f?(window.AMap&&location.host!=="lbs.amap.com"&&g("禁止多种API加载方式混用"),r.key=f,r.AMap.version=m||r.AMap.version,r.AMap.plugins=L||r.AMap.plugins,c.AMap=o.loading,m=document.body||document.head,window.___onAPILoaded=function(y){if(delete window.___onAPILoaded,y)c.AMap=o.failed,g(y);else for(c.AMap=o.loaded,n(s).then(function(){M(window.AMap)}).catch(g);I.length;)I.splice(0,1)[0]()},L=document.createElement("script"),L.type="text/javascript",L.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+r.AMap.version+"&key="+f+"&plugin="+r.AMap.plugins.join(","),L.onerror=function(y){c.AMap=o.failed,g(y)},m.appendChild(L)):g("请填写key")}else if(c.AMap==o.loaded)if(s.key&&s.key!==r.key)g("多个不一致的 key");else if(s.version&&s.version!==r.AMap.version)g("不允许多个版本 JSAPI 混用");else{if(f=[],s.plugins)for(m=0;m<s.plugins.length;m+=1)r.AMap.plugins.indexOf(s.plugins[m])==-1&&f.push(s.plugins[m]);f.length?window.AMap.plugin(f,function(){n(s).then(function(){M(window.AMap)}).catch(g)}):n(s).then(function(){M(window.AMap)}).catch(g)}else if(s.key&&s.key!==r.key)g("多个不一致的 key");else if(s.version&&s.version!==r.AMap.version)g("不允许多个版本 JSAPI 混用");else{var p=[];if(s.plugins)for(m=0;m<s.plugins.length;m+=1)r.AMap.plugins.indexOf(s.plugins[m])==-1&&p.push(s.plugins[m]);d(function(){p.length?window.AMap.plugin(p,function(){n(s).then(function(){M(window.AMap)}).catch(g)}):n(s).then(function(){M(window.AMap)}).catch(g)})}})},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,r={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},c={AMap:o.notload,AMapUI:o.notload,Loca:o.notload},l={AMap:[],AMapUI:[],Loca:[]}}}})})(Fi);var _i=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var i,a,o;if(Array.isArray(e)){if(i=e.length,i!=n.length)return!1;for(a=i;a--!==0;)if(!t(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),i=o.length,i!==Object.keys(n).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=i;a--!==0;){var r=o[a];if(!t(e[r],n[r]))return!1}return!0}return e!==e&&n!==n};const Se="__googleMapsScriptId";var Z;(function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"})(Z||(Z={}));class b{constructor({apiKey:e,authReferrerPolicy:n,channel:i,client:a,id:o=Se,language:r,libraries:c=[],mapIds:l,nonce:I,region:d,retries:s=3,url:M="https://maps.googleapis.com/maps/api/js",version:g}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=n,this.channel=i,this.client=a,this.id=o||Se,this.language=r,this.libraries=c,this.mapIds=l,this.nonce=I,this.region=d,this.retries=s,this.url=M,this.version=g,b.instance){if(!_i(this.options,b.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(b.instance.options)}`);return b.instance}b.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?Z.FAILURE:this.done?Z.SUCCESS:this.loading?Z.LOADING:Z.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+=`?callback=${this.CALLBACK}`,this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`®ion=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,n)=>{this.loadCallback(i=>{i?n(i.error):e(window.google)})})}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}const e=this.createUrl(),n=document.createElement("script");n.id=this.id,n.type="text/javascript",n.src=e,n.onerror=this.loadErrorCallback.bind(this),n.defer=!0,n.async=!0,this.nonce&&(n.nonce=this.nonce),document.head.appendChild(n)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=e,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){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();return}this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}var x=(t=>(t.LOADING="LOADING",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t))(x||{});const Ki=j(function(e,{slots:n,emit:i}){const a=u.shallowRef("LOADING"),o=u.computed(()=>{const{onChange:r,fallback:c,loading:l,...I}=e;return I});return F(()=>o.value,r=>{const c=new b(r),l=I=>{i("change",I),a.value=I};l("LOADING"),c.load().then(()=>l("SUCCESS"),()=>l("FAILURE"))}),()=>{var r,c,l;switch(a.value){case"SUCCESS":return(r=n.default)==null?void 0:r.call(n);case"LOADING":return(c=n.loading)==null?void 0:c.call(n);case"FAILURE":return(l=n.fallback)==null?void 0:l.call(n);default:throw new Error("MyError: unknown loader status")}}}),qi=j(function(e,{slots:n,emit:i}){const a=u.shallowRef(x.LOADING),o=u.computed(()=>{const{onChange:r,loading:c,fallback:l,apiKey:I,apiSecret:d,apiServiceHost:s,version:M,...g}=e;return{...g,key:I,version:M!=null?M:"2.0.5.16"}});return F(()=>o.value,r=>{const c=l=>{i("change",l),a.value=l};c(x.LOADING),window._AMapSecurityConfig=e.apiServiceHost?{serviceHost:e.apiServiceHost}:{securityJsCode:e.apiSecret},ie.load(r).then(()=>c(x.SUCCESS),()=>c(x.FAILURE))}),()=>{var r,c,l;switch(a.value){case x.SUCCESS:return(r=n.default)==null?void 0:r.call(n);case x.LOADING:return(c=n.loading)==null?void 0:c.call(n);case x.FAILURE:return(l=n.fallback)==null?void 0:l.call(n);default:throw new Error("MyError: unknown loader status")}}}),ea=j(function(e,{slots:n,emit:i}){const a=e.mapRef,o=u.computed(()=>{const{mapRef:d,onDragStart:s,onDragEnd:M,...g}=e;return g}),r=o.value,c=u.shallowRef(),l=u.shallowRef(),I=d=>i(d,{target:l.value});return gi(l),u.watchPostEffect(()=>{if(l.value||!c.value)return;const d=new google.maps.Map(c.value,{...r});l.value=d,a==null||a(d)}),W(()=>o.value,d=>{var s;(s=l.value)==null||s.setOptions({...d})}),te(l,e,I,["onDragStart","onDragEnd"]),()=>{var d;return u.h("div",{ref:c},(d=n.default)==null?void 0:d.call(n))}}),ta=Ve(function(e,{slots:n}){return fi(e),()=>{var i;return u.h("div",[(i=n.default)==null?void 0:i.call(n)])}}).props(["amapKey","amapSecret","amapServiceHost","gmapId","gmapKey","supplier"]),na=Ve(function(e,{slots:n,emit:i}){const a=A(),o=({target:c})=>{const{lng:l,lat:I}=c.getCenter();i("dragEnd",[l(),I()])},r=({target:c})=>{const{lng:l,lat:I}=c.getCenter();i("dragEnd",[l,I])};return()=>{var S;const{gmapKey:c,amapKey:l,amapSecret:I,amapServiceHost:d,supplier:s,gmapId:M}=a,{mapRef:g,center:f,zoom:m,language:L="zh"}=e,{fallback:p,loading:y}=n,v=(S=n.default)==null?void 0:S.call(n);switch(s){case"gmap":return u.h(Ki,{attrs:{apiKey:c,language:L,version:"beta",libraries:["marker","places","geometry"],loading:y,fallback:p}},[u.h(ea,{attrs:{mapRef:g,mapId:M,center:f?N(f):void 0,zoom:m},on:{dragEnd:o}},[v])]);default:return u.h(qi,{attrs:{apiKey:l,apiSecret:I,apiServiceHost:d,plugins:["AMap.Geolocation","AMap.Geocoder","AMap.PlaceSearch","AMap.Driving","AMap.Walker"],loading:y,fallback:p}},[u.h($i,{attrs:{mapRef:g,vectorMapForeign:li(L),center:f,zoom:m},on:{dragEnd:r}},[v])])}}}).props(["center","fallback","loading","mapRef","zoom"]),zt=t=>{const{mapRef:e,onChange:n}=t,i=u.ref(!1),a=u.ref(),o=u.ref({accuracy:0,altitude:0,altitudeAccuracy:0,heading:0,latitude:0,longitude:0,speed:0}),r=u.ref([o.value.longitude,o.value.latitude]);return u.watchEffect(()=>{debugger;e.value,i.value=!0,navigator.geolocation.getCurrentPosition(c=>{i.value=!1;const l=c.coords,I=[c.coords.longitude,c.coords.latitude];o.value=l,r.value=I,n==null||n({position:I,coordinate:l})},c=>{i.value=!1,a.value=c,console.log("errorRef = ",a)},{timeout:5e3*1e3})},{onTrigger(c){console.log("useGeoLocation onTrigger: ",c.key,c.newValue,c.oldValue)}}),{errorRef:a,positionRef:r,coordinateRef:o,loading:i}},ia=t=>{const{mapRef:e,onChange:n}=t,i=u.ref([0,0]),a=u.ref(!1),o=()=>{Promise.resolve().then(()=>a.value=!0)},r=(c,{target:l})=>{var s;a.value=!1;const{lng:I,lat:d}=l.getCenter();i.value=[I,d],(s=P(n))==null||s([I,d])};return ee(e,{},o,["onDragStart"]),ee(e,{},r,["onDragEnd"]),{centerRef:i,isDragging:a}},aa=t=>{const{mapRef:e,onChange:n}=t,i=u.ref([0,0]),a=u.ref(!1),o=()=>{Promise.resolve().then(()=>a.value=!0)},r=async()=>{var d,s;a.value=!1;const c=(d=e.value)==null?void 0:d.getCenter(),l=c==null?void 0:c.lng(),I=c==null?void 0:c.lat();i.value=[l,I],(s=P(n))==null||s([l,I])};return te(e,{},o,["onDragStart"]),te(e,{},r,["onDragEnd"]),{centerRef:i,isDragging:a}},Zt=t=>{const{supplier:e}=A();return e==="gmap"?aa(t):ia(t)},K=t=>{const e=u.ref(!!t.value);return u.watch(()=>t.value,n=>{n&&(e.value=!0)}),{readyRef:e}},q=()=>{const t=u.ref(0);return{idx:t,update:()=>{t.value+=1}}},Et=t=>{const{mapRef:e,pointRef:n,onChange:i}=t,{readyRef:a}=K(e),{idx:o,update:r}=q(),c=u.reactive({lng:n.value[0],lat:n.value[1],name:""});return u.watch(()=>o.value,()=>{debugger;if(!a.value)return;const l=new AMap.Geocoder({lang:Qe}),[I,d]=n.value;l.getAddress(new AMap.LngLat(I,d),(s,M)=>{var g,f;switch(s){case"complete":{const m=M.regeocode.formattedAddress;c.name=m,c.lng=I,c.lat=d,(g=P(i))==null||g({lng:I,lat:d,name:m});return}case"no_data":c.name="",(f=P(i))==null||f({lng:I,lat:d,name:""});return;case"error":throw M}})},{onTrigger(l){console.log("useAmapPlace onTrigger: ",l.key,l.newValue,l.oldValue)}}),{place:c,updatePlace:r}},Tt=t=>{const{mapRef:e,pointRef:n,onChange:i}=t,{readyRef:a}=K(e),{idx:o,update:r}=q(),c=u.reactive({lng:n.value[0],lat:n.value[1],name:""});return u.watch(()=>o.value,async()=>{var g;if(!a.value)return;const l=new google.maps.Geocoder,[I,d]=n.value,{results:s}=await l.geocode({language:Qe,location:{lng:I,lat:d}}),M=s[0].formatted_address;c.name=M,c.lng=I,c.lat=d,(g=P(i))==null||g({lng:I,lat:d,name:M})}),{place:c,updatePlace:r}},oa=t=>{const{supplier:e}=A();return e==="gmap"?Tt(t):Et(t)},ra=(t,e)=>{let n=1/0,i=t;for(const a of e){const o=AMap.GeometryUtil.distance(ve(t),ve(a));o>=n||(i=a,n=o)}return{shortestPlace:i,shortestDistance:n}},ca=(t,e)=>{let n=1/0,i=t;for(const a of e){const o=google.maps.geometry.spherical.computeDistanceBetween(t,a);o>=n||(i=a,n=o)}return{shortestPlace:i,shortestDistance:n}},ua=t=>{const{pointRef:e,mapRef:n,getRecomendPlace:i,getLimit:a,context:o,onChange:r,onChangePlace:c}=t,{idx:l,update:I}=q(),{readyRef:d}=K(n),{place:s,updatePlace:M}=Et({pointRef:e,mapRef:n,onChange:c}),g=u.reactive({...s});return u.watch(()=>l.value,async()=>{var v;debugger;if(!d.value)return;const f=await i({...s},o),{shortestPlace:m,shortestDistance:L}=ra(s,f);console.log("shortestPlace, shortestDistance = ",m,L);const p=a(o),y=L>p?s:m;Object.assign(g,{...y}),(v=P(r))==null||v({...y})},{onTrigger(f){console.log("UseMapRecomendPlaceProps onTrigger: ",f.key,f.newValue,f.oldValue)}}),{recomendPlace:g,updateRecomandPlace:I,updatePlace:M}},sa=t=>{const{pointRef:e,mapRef:n,getRecomendPlace:i,getLimit:a,context:o,onChange:r,onChangePlace:c}=t,{idx:l,update:I}=q(),{readyRef:d}=K(n),{place:s,updatePlace:M}=Tt({pointRef:e,mapRef:n,onChange:c}),g=u.reactive({...s});return u.watch(()=>l.value,async()=>{var v;if(!d.value)return;const f=await i({...s},o),{shortestPlace:m,shortestDistance:L}=ca(s,f),p=a(o),y=L>p?s:m;Object.assign(g,{...y}),(v=P(r))==null||v({...y})}),{recomendPlace:g,updateRecomandPlace:I,updatePlace:M}},Rt=t=>{const{supplier:e}=A();return e==="gmap"?sa(t):ua(t)},la=t=>{const e=u.reactive({lng:0,lat:0,name:""}),n=u.computed(()=>[e.lng,e.lat]),i={source:"geo"},{mapRef:a,getRecomendPlace:o,recomendPlaceDragLimit:r,recomendPlaceGeoLimit:c,onChangeByDrag:l,onChangeGeoLocation:I,onChangePlace:d,onChangeRecomandPlace:s}=t,{loading:M,errorRef:g}=zt({mapRef:a,onChange:p=>{i.source="geo",e.lng=p.position[0],e.lat=p.position[1],m(),I==null||I(p)}}),{isDragging:f}=Zt({mapRef:a,onChange:p=>{i.source="drag",e.lng=p[0],e.lat=p[1],m(),l==null||l(p)}}),{updatePlace:m,updateRecomandPlace:L}=Rt({pointRef:n,context:i,getRecomendPlace:o,getLimit:p=>{const y=p==null?void 0:p.source;switch(y){case"drag":return r;case"geo":return c;default:throw new Error(`MyError: should not call getLimit on source: ${y}`)}},mapRef:a,onChangePlace:p=>{Object.assign(e,{...p}),i.source!=="recomend"&&L(),d==null||d(p)},onChange:p=>{i.source="recomend",Object.assign(e,{...p}),m(),s==null||s(p)}});return{isDragging:f,isGeoLoading:M,geoError:g,centerPlace:e,centerPoint:n}},Ia=()=>{const t=u.shallowRef();return{mapRef:t,panTo:i=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.panTo(i)},setMap:i=>{t.value=i}}},da=()=>{const t=u.shallowRef();return{mapRef:t,panTo:i=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.panTo(N(i))},setMap:i=>{t.value=i}}},Ma=()=>{const{supplier:t}=A();return t==="gmap"?da():Ia()};exports.AddressBox=ji;exports.DrivingLine=vi;exports.DrivingRoute=xi;exports.HeycarMap=na;exports.MapProvider=ta;exports.PassengerCircle=bi;exports.PickupPoints=Ti;exports.PlaceCircle=Lt;exports.StartEndPoint=ki;exports.TaxiCar=Ui;exports.WalkingLine=Bi;exports.WaveCircle=Ji;exports.useBusinessMapRecomendPlace=la;exports.useDrivingRoute=Ai;exports.useGeoLocation=zt;exports.useHeycarMap=Ma;exports.useMapAngle=hi;exports.useMapDrag=Zt;exports.useMapPlace=oa;exports.useMapRecomendPlace=Rt;
|
|
70
|
+
`,strokeColor:"#38A3FE",fillColor:"#38A3FE",fillOpacity:1,strokeOpacity:1,strokeWeight:a/2,scale:1},repeat:`${a*2}px`}]}})}}),Bi=j(function(e){const n=A();return()=>S(n.supplier==="gmap"?Hi:Yi,{attrs:e})}),J="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";var Pt="rrvp0y3",X="rrvp0y2";const Qi=j(function(e){const n=u.computed(()=>`<img src="${J}" class="${X}">`),i=u.computed(()=>`<img src="${J}" class="${X} ${Pt}">`);return()=>u.h("div",[u.h(x,{attrs:{position:e.position,anchor:"bottom-center",content:n.value}}),u.h(x,{attrs:{position:e.position,anchor:"bottom-center",content:i.value}})])}),Vi=j(function(e){const n=u.computed(()=>D("img",{class:X,src:J})),i=u.computed(()=>D("img",{class:`${X} ${Pt}`,src:J}));return()=>{const a=h(e.position);return u.h("div",[u.h(w,{attrs:{position:a,content:n.value}}),u.h(w,{attrs:{position:a,content:i.value}})])}}),Ji=j(function(e){const n=A();return()=>S(n.supplier==="gmap"?Vi:Qi,{attrs:e})});var Xi="_1d8ur7t0";const $i=j(function(e,{slots:n,emit:i}){const{onDragStart:a,onDragEnd:o,mapRef:r,vectorMapForeign:c="style_zh_cn",...l}=e,I=u.computed(()=>({dragEnable:!!e.dragEnable,zoomEnable:!!e.zoomEnable,jogEnable:!!e.jogEnable,pitchEnable:!!e.pitchEnable,rotateEnable:!!e.rotateEnable,animateEnable:!!e.animateEnable,keyboardEnable:!!e.keyboardEnable})),d=u.shallowRef(),s=u.shallowRef();return Mi(s),u.watchPostEffect(()=>{if(s.value||!d.value)return;const M=new AMap.Map(d.value,{...l,vectorMapForeign:c,mapStyle:"amap://styles/95498a904992a4c0b866a3e4d7729682"});s.value=M,r==null||r(M)}),W(()=>I.value,M=>{var g;(g=s.value)==null||g.setStatus(M)}),oe(s,e,[{name:"center",defaultValue:[0,0]},{name:"zooms",defaultValue:[0,0]},{name:"zoom",defaultValue:0},{name:"layers",defaultValue:[]},{name:"limitBounds",defaultValue:[]},{name:"rotation",defaultValue:0},{name:"defaultCursor",defaultValue:""},{name:"mapStyle",defaultValue:""},{name:"features",defaultValue:[]},{name:"pitch",defaultValue:0},{name:"mask",defaultValue:[]},{name:"labelRejectMask",defaultValue:!1}]),te(s,e,i,["onDragStart","onDragEnd"]),()=>{var M;return u.h("div",{ref:d,class:Xi},(M=n.default)==null?void 0:M.call(n))}});var ae={},Fi={get exports(){return ae},set exports(t){ae=t}};(function(t,e){(function(n,i){t.exports=i()})(kt,function(){function n(s){var M=[];return s.AMapUI&&M.push(i(s.AMapUI)),s.Loca&&M.push(a(s.Loca)),Promise.all(M)}function i(s){return new Promise(function(M,g){var m=[];if(s.plugins)for(var p=0;p<s.plugins.length;p+=1)r.AMapUI.plugins.indexOf(s.plugins[p])==-1&&m.push(s.plugins[p]);if(c.AMapUI===o.failed)g("前次请求 AMapUI 失败");else if(c.AMapUI===o.notload){c.AMapUI=o.loading,r.AMapUI.version=s.version||r.AMapUI.version,p=r.AMapUI.version;var v=document.body||document.head,y=document.createElement("script");y.type="text/javascript",y.src="https://webapi.amap.com/ui/"+p+"/main.js",y.onerror=function(f){c.AMapUI=o.failed,g("请求 AMapUI 失败")},y.onload=function(){if(c.AMapUI=o.loaded,m.length)window.AMapUI.loadUI(m,function(){for(var f=0,L=m.length;f<L;f++){var N=m[f].split("/").slice(-1)[0];window.AMapUI[N]=arguments[f]}for(M();l.AMapUI.length;)l.AMapUI.splice(0,1)[0]()});else for(M();l.AMapUI.length;)l.AMapUI.splice(0,1)[0]()},v.appendChild(y)}else c.AMapUI===o.loaded?s.version&&s.version!==r.AMapUI.version?g("不允许多个版本 AMapUI 混用"):m.length?window.AMapUI.loadUI(m,function(){for(var f=0,L=m.length;f<L;f++){var N=m[f].split("/").slice(-1)[0];window.AMapUI[N]=arguments[f]}M()}):M():s.version&&s.version!==r.AMapUI.version?g("不允许多个版本 AMapUI 混用"):l.AMapUI.push(function(f){f?g(f):m.length?window.AMapUI.loadUI(m,function(){for(var L=0,N=m.length;L<N;L++){var Gt=m[L].split("/").slice(-1)[0];window.AMapUI[Gt]=arguments[L]}M()}):M()})})}function a(s){return new Promise(function(M,g){if(c.Loca===o.failed)g("前次请求 Loca 失败");else if(c.Loca===o.notload){c.Loca=o.loading,r.Loca.version=s.version||r.Loca.version;var m=r.Loca.version,p=r.AMap.version.startsWith("2"),v=m.startsWith("2");if(p&&!v||!p&&v)g("JSAPI 与 Loca 版本不对应!!");else{p=r.key,v=document.body||document.head;var y=document.createElement("script");y.type="text/javascript",y.src="https://webapi.amap.com/loca?v="+m+"&key="+p,y.onerror=function(f){c.Loca=o.failed,g("请求 AMapUI 失败")},y.onload=function(){for(c.Loca=o.loaded,M();l.Loca.length;)l.Loca.splice(0,1)[0]()},v.appendChild(y)}}else c.Loca===o.loaded?s.version&&s.version!==r.Loca.version?g("不允许多个版本 Loca 混用"):M():s.version&&s.version!==r.Loca.version?g("不允许多个版本 Loca 混用"):l.Loca.push(function(f){f?g(f):g()})})}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var o;(function(s){s.notload="notload",s.loading="loading",s.loaded="loaded",s.failed="failed"})(o||(o={}));var r={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},c={AMap:o.notload,AMapUI:o.notload,Loca:o.notload},l={AMap:[],AMapUI:[],Loca:[]},I=[],d=function(s){typeof s=="function"&&(c.AMap===o.loaded?s(window.AMap):I.push(s))};return{load:function(s){return new Promise(function(M,g){if(c.AMap==o.failed)g("");else if(c.AMap==o.notload){var m=s.key,p=s.version,v=s.plugins;m?(window.AMap&&location.host!=="lbs.amap.com"&&g("禁止多种API加载方式混用"),r.key=m,r.AMap.version=p||r.AMap.version,r.AMap.plugins=v||r.AMap.plugins,c.AMap=o.loading,p=document.body||document.head,window.___onAPILoaded=function(f){if(delete window.___onAPILoaded,f)c.AMap=o.failed,g(f);else for(c.AMap=o.loaded,n(s).then(function(){M(window.AMap)}).catch(g);I.length;)I.splice(0,1)[0]()},v=document.createElement("script"),v.type="text/javascript",v.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+r.AMap.version+"&key="+m+"&plugin="+r.AMap.plugins.join(","),v.onerror=function(f){c.AMap=o.failed,g(f)},p.appendChild(v)):g("请填写key")}else if(c.AMap==o.loaded)if(s.key&&s.key!==r.key)g("多个不一致的 key");else if(s.version&&s.version!==r.AMap.version)g("不允许多个版本 JSAPI 混用");else{if(m=[],s.plugins)for(p=0;p<s.plugins.length;p+=1)r.AMap.plugins.indexOf(s.plugins[p])==-1&&m.push(s.plugins[p]);m.length?window.AMap.plugin(m,function(){n(s).then(function(){M(window.AMap)}).catch(g)}):n(s).then(function(){M(window.AMap)}).catch(g)}else if(s.key&&s.key!==r.key)g("多个不一致的 key");else if(s.version&&s.version!==r.AMap.version)g("不允许多个版本 JSAPI 混用");else{var y=[];if(s.plugins)for(p=0;p<s.plugins.length;p+=1)r.AMap.plugins.indexOf(s.plugins[p])==-1&&y.push(s.plugins[p]);d(function(){y.length?window.AMap.plugin(y,function(){n(s).then(function(){M(window.AMap)}).catch(g)}):n(s).then(function(){M(window.AMap)}).catch(g)})}})},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,r={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},c={AMap:o.notload,AMapUI:o.notload,Loca:o.notload},l={AMap:[],AMapUI:[],Loca:[]}}}})})(Fi);var _i=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var i,a,o;if(Array.isArray(e)){if(i=e.length,i!=n.length)return!1;for(a=i;a--!==0;)if(!t(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),i=o.length,i!==Object.keys(n).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=i;a--!==0;){var r=o[a];if(!t(e[r],n[r]))return!1}return!0}return e!==e&&n!==n};const Se="__googleMapsScriptId";var Z;(function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"})(Z||(Z={}));class b{constructor({apiKey:e,authReferrerPolicy:n,channel:i,client:a,id:o=Se,language:r,libraries:c=[],mapIds:l,nonce:I,region:d,retries:s=3,url:M="https://maps.googleapis.com/maps/api/js",version:g}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=n,this.channel=i,this.client=a,this.id=o||Se,this.language=r,this.libraries=c,this.mapIds=l,this.nonce=I,this.region=d,this.retries=s,this.url=M,this.version=g,b.instance){if(!_i(this.options,b.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(b.instance.options)}`);return b.instance}b.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?Z.FAILURE:this.done?Z.SUCCESS:this.loading?Z.LOADING:Z.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+=`?callback=${this.CALLBACK}`,this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`®ion=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,n)=>{this.loadCallback(i=>{i?n(i.error):e(window.google)})})}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}const e=this.createUrl(),n=document.createElement("script");n.id=this.id,n.type="text/javascript",n.src=e,n.onerror=this.loadErrorCallback.bind(this),n.defer=!0,n.async=!0,this.nonce&&(n.nonce=this.nonce),document.head.appendChild(n)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=e,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){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();return}this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}var C=(t=>(t.LOADING="LOADING",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t))(C||{});const Ki=j(function(e,{slots:n,emit:i}){const a=u.shallowRef("LOADING"),o=u.computed(()=>{const{onChange:r,fallback:c,loading:l,...I}=e;return I});return F(()=>o.value,r=>{const c=new b(r),l=I=>{i("change",I),a.value=I};l("LOADING"),c.load().then(()=>l("SUCCESS"),()=>l("FAILURE"))}),()=>{var r,c,l;switch(a.value){case"SUCCESS":return(r=n.default)==null?void 0:r.call(n);case"LOADING":return(c=n.loading)==null?void 0:c.call(n);case"FAILURE":return(l=n.fallback)==null?void 0:l.call(n);default:throw new Error("MyError: unknown loader status")}}}),qi=j(function(e,{slots:n,emit:i}){const a=u.shallowRef(C.LOADING),o=u.computed(()=>{const{onChange:r,loading:c,fallback:l,apiKey:I,apiSecret:d,apiServiceHost:s,version:M,...g}=e;return{...g,key:I,version:M!=null?M:"2.0.5.16"}});return F(()=>o.value,r=>{const c=l=>{i("change",l),a.value=l};c(C.LOADING),window._AMapSecurityConfig=e.apiServiceHost?{serviceHost:e.apiServiceHost}:{securityJsCode:e.apiSecret},ae.load(r).then(()=>c(C.SUCCESS),()=>c(C.FAILURE))}),()=>{var r,c,l;switch(a.value){case C.SUCCESS:return(r=n.default)==null?void 0:r.call(n);case C.LOADING:return(c=n.loading)==null?void 0:c.call(n);case C.FAILURE:return(l=n.fallback)==null?void 0:l.call(n);default:throw new Error("MyError: unknown loader status")}}}),ea=j(function(e,{slots:n,emit:i}){const a=e.mapRef,o=u.computed(()=>{const{mapRef:d,onDragStart:s,onDragEnd:M,...g}=e;return g}),r=o.value,c=u.shallowRef(),l=u.shallowRef(),I=d=>i(d,{target:l.value});return gi(l),u.watchPostEffect(()=>{if(l.value||!c.value)return;const d=new google.maps.Map(c.value,{...r});l.value=d,a==null||a(d)}),W(()=>o.value,d=>{var s;(s=l.value)==null||s.setOptions({...d})}),ne(l,e,I,["onDragStart","onDragEnd"]),()=>{var d;return u.h("div",{ref:c},(d=n.default)==null?void 0:d.call(n))}}),ta=Qe(function(e,{slots:n}){return fi(e),()=>{var i;return u.h("div",[(i=n.default)==null?void 0:i.call(n)])}}).props(["amapKey","amapSecret","amapServiceHost","gmapId","gmapKey","supplier"]),na=Qe(function(e,{slots:n,emit:i}){const a=A(),o=({target:c})=>{const{lng:l,lat:I}=c.getCenter();i("dragEnd",[l(),I()])},r=({target:c})=>{const{lng:l,lat:I}=c.getCenter();i("dragEnd",[l,I])};return()=>{var N;const{gmapKey:c,amapKey:l,amapSecret:I,amapServiceHost:d,supplier:s,gmapId:M}=a,{mapRef:g,center:m,zoom:p,language:v="zh"}=e,{fallback:y,loading:f}=n,L=(N=n.default)==null?void 0:N.call(n);switch(s){case"gmap":return u.h(Ki,{attrs:{apiKey:c,language:v,version:"beta",libraries:["marker","places","geometry"],loading:f,fallback:y}},[u.h(ea,{attrs:{mapRef:g,mapId:M,center:m?h(m):void 0,zoom:p},on:{dragEnd:o}},[L])]);default:return u.h(qi,{attrs:{apiKey:l,apiSecret:I,apiServiceHost:d,plugins:["AMap.Geolocation","AMap.Geocoder","AMap.PlaceSearch","AMap.Driving","AMap.Walker"],loading:f,fallback:y}},[u.h($i,{attrs:{mapRef:g,vectorMapForeign:li(v),center:m,zoom:p},on:{dragEnd:r}},[L])])}}}).props(["center","fallback","loading","mapRef","zoom"]),zt=t=>{const{mapRef:e,onChange:n}=t,i=u.ref(!1),a=u.ref(),o=u.ref({accuracy:0,altitude:0,altitudeAccuracy:0,heading:0,latitude:0,longitude:0,speed:0}),r=u.ref([o.value.longitude,o.value.latitude]);return u.watchEffect(()=>{e.value,i.value=!0,navigator.geolocation.getCurrentPosition(c=>{i.value=!1;const l=c.coords,I=[c.coords.longitude,c.coords.latitude];o.value=l,r.value=I,n==null||n({position:I,coordinate:l})},c=>{i.value=!1,a.value=c,console.log("errorRef = ",a)})}),{errorRef:a,positionRef:r,coordinateRef:o,loading:i}},ia=t=>{const{mapRef:e,onChange:n}=t,i=u.ref([0,0]),a=u.ref(!1),o=()=>{Promise.resolve().then(()=>a.value=!0)},r=(c,{target:l})=>{var s;a.value=!1;const{lng:I,lat:d}=l.getCenter();i.value=[I,d],(s=P(n))==null||s([I,d])};return te(e,{},o,["onDragStart"]),te(e,{},r,["onDragEnd"]),{centerRef:i,isDragging:a}},aa=t=>{const{mapRef:e,onChange:n}=t,i=u.ref([0,0]),a=u.ref(!1),o=()=>{Promise.resolve().then(()=>a.value=!0)},r=async()=>{var d,s;a.value=!1;const c=(d=e.value)==null?void 0:d.getCenter(),l=c==null?void 0:c.lng(),I=c==null?void 0:c.lat();i.value=[l,I],(s=P(n))==null||s([l,I])};return ne(e,{},o,["onDragStart"]),ne(e,{},r,["onDragEnd"]),{centerRef:i,isDragging:a}},Zt=t=>{const{supplier:e}=A();return e==="gmap"?aa(t):ia(t)},K=t=>{const e=u.ref(!!t.value);return u.watch(()=>t.value,n=>{n&&(e.value=!0)}),{readyRef:e}},q=()=>{const t=u.ref(0);return{idx:t,update:()=>{t.value+=1}}},Et=t=>{const{mapRef:e,pointRef:n,onChange:i}=t,{readyRef:a}=K(e),{idx:o,update:r}=q(),c=u.reactive({lng:n.value[0],lat:n.value[1],name:""});return u.watch(()=>o.value,()=>{if(!a.value)return;const l=new AMap.Geocoder({lang:Ve}),[I,d]=n.value;l.getAddress(new AMap.LngLat(I,d),(s,M)=>{var g,m;switch(s){case"complete":{const p=M.regeocode.formattedAddress;c.name=p,c.lng=I,c.lat=d,(g=P(i))==null||g({lng:I,lat:d,name:p});return}case"no_data":c.name="",(m=P(i))==null||m({lng:I,lat:d,name:""});return;case"error":throw M}})}),{place:c,updatePlace:r}},Tt=t=>{const{mapRef:e,pointRef:n,onChange:i}=t,{readyRef:a}=K(e),{idx:o,update:r}=q(),c=u.reactive({lng:n.value[0],lat:n.value[1],name:""});return u.watch(()=>o.value,async()=>{var g;if(!a.value)return;const l=new google.maps.Geocoder,[I,d]=n.value,{results:s}=await l.geocode({language:Ve,location:{lng:I,lat:d}}),M=s[0].formatted_address;c.name=M,c.lng=I,c.lat=d,(g=P(i))==null||g({lng:I,lat:d,name:M})}),{place:c,updatePlace:r}},oa=t=>{const{supplier:e}=A();return e==="gmap"?Tt(t):Et(t)},ra=(t,e)=>{let n=1/0,i=t;for(const a of e){const o=AMap.GeometryUtil.distance(ee(t),ee(a));o>=n||(i=a,n=o)}return{shortestPlace:i,shortestDistance:n}},ca=(t,e)=>{let n=1/0,i=t;for(const a of e){const o=google.maps.geometry.spherical.computeDistanceBetween(t,a);o>=n||(i=a,n=o)}return{shortestPlace:i,shortestDistance:n}},ua=t=>{const{pointRef:e,mapRef:n,getRecomendPlace:i,getLimit:a,context:o,onChange:r,onChangePlace:c}=t,l=u.ref([]),{idx:I,update:d}=q(),{readyRef:s}=K(n),{place:M,updatePlace:g}=Et({pointRef:e,mapRef:n,onChange:c}),m=u.reactive({...M});return u.watch(()=>I.value,async()=>{var N;if(!s.value)return;const p=await i({...M},o),{shortestPlace:v,shortestDistance:y}=ra(M,p);console.log("shortestPlace, shortestDistance = ",v,y);const f=a(o),L=y>f?M:v;l.value=p,Object.assign(m,{...L}),(N=P(r))==null||N({...L})}),{recomendPlace:m,placeCandidates:l,updateRecomandPlace:d,updatePlace:g}},sa=t=>{const{pointRef:e,mapRef:n,getRecomendPlace:i,getLimit:a,context:o,onChange:r,onChangePlace:c}=t,l=u.ref([]),{idx:I,update:d}=q(),{readyRef:s}=K(n),{place:M,updatePlace:g}=Tt({pointRef:e,mapRef:n,onChange:c}),m=u.reactive({...M});return u.watch(()=>I.value,async()=>{var N;if(!s.value)return;const p=await i({...M},o),{shortestPlace:v,shortestDistance:y}=ca(M,p),f=a(o),L=y>f?M:v;l.value=p,Object.assign(m,{...L}),(N=P(r))==null||N({...L})}),{recomendPlace:m,placeCandidates:l,updateRecomandPlace:d,updatePlace:g}},Rt=t=>{const{supplier:e}=A();return e==="gmap"?sa(t):ua(t)},la=t=>{const e=u.reactive({lng:0,lat:0,name:""}),n=u.computed(()=>[e.lng,e.lat]),i={source:"geo"},{mapRef:a,getRecomendPlace:o,recomendPlaceDragLimit:r,recomendPlaceGeoLimit:c,onChangeByDrag:l,onChangeGeoLocation:I,onChangePlace:d,onChangeRecomandPlace:s}=t,{loading:M,errorRef:g}=zt({mapRef:a,onChange:f=>{i.source="geo",e.lng=f.position[0],e.lat=f.position[1],p(),I==null||I(f)}}),{isDragging:m}=Zt({mapRef:a,onChange:f=>{i.source="drag",e.lng=f[0],e.lat=f[1],p(),l==null||l(f)}}),{updatePlace:p,updateRecomandPlace:v,placeCandidates:y}=Rt({pointRef:n,context:i,getRecomendPlace:o,getLimit:f=>{const L=f==null?void 0:f.source;switch(L){case"drag":return r;case"geo":return c;default:throw new Error(`MyError: should not call getLimit on source: ${L}`)}},mapRef:a,onChangePlace:f=>{Object.assign(e,{...f}),i.source!=="recomend"&&v(),d==null||d(f)},onChange:f=>{i.source="recomend",Object.assign(e,{...f}),p(),s==null||s(f)}});return{isDragging:m,isGeoLoading:M,geoError:g,centerPlace:e,centerPoint:n,placeCandidates:y}},Ia=()=>{const t=u.shallowRef();return{mapRef:t,panTo:i=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.panTo(i)},setMap:i=>{t.value=i}}},da=()=>{const t=u.shallowRef();return{mapRef:t,panTo:i=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.panTo(h(i))},setMap:i=>{t.value=i}}},Ma=()=>{const{supplier:t}=A();return t==="gmap"?da():Ia()};exports.AddressBox=ji;exports.DrivingLine=Li;exports.DrivingRoute=Ci;exports.HeycarMap=na;exports.MapProvider=ta;exports.PassengerCircle=bi;exports.PickupPoints=Ti;exports.PlaceCircle=vt;exports.StartEndPoint=ki;exports.TaxiCar=Ui;exports.WalkingLine=Bi;exports.WaveCircle=Ji;exports.useBusinessMapRecomendPlace=la;exports.useDrivingRoute=Ai;exports.useGeoLocation=zt;exports.useHeycarMap=Ma;exports.useMapAngle=hi;exports.useMapDrag=Zt;exports.useMapPlace=oa;exports.useMapRecomendPlace=Rt;
|