@heycar/heycars-map 0.3.3 → 0.3.4

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.
@@ -9,6 +9,7 @@ export declare const useAmapAutoComplete: (props: UseMapAutoCompleteProps) => {
9
9
  autoCompletePlaces: import("vue-demi").Ref<{
10
10
  placeId?: string | undefined;
11
11
  description: string;
12
+ distance?: number | undefined;
12
13
  lng: number;
13
14
  lat: number;
14
15
  name: string;
@@ -23,6 +24,7 @@ export declare const useGmapAutoComplete: (props: UseMapAutoCompleteProps) => {
23
24
  autoCompletePlaces: import("vue-demi").Ref<{
24
25
  placeId?: string | undefined;
25
26
  description: string;
27
+ distance?: number | undefined;
26
28
  lng: number;
27
29
  lat: number;
28
30
  name: string;
@@ -37,6 +39,7 @@ export declare const useMapAutoComplete: (props: UseMapAutoCompleteProps) => {
37
39
  autoCompletePlaces: import("vue-demi").Ref<{
38
40
  placeId?: string | undefined;
39
41
  description: string;
42
+ distance?: number | undefined;
40
43
  lng: number;
41
44
  lat: number;
42
45
  name: string;
@@ -7,6 +7,7 @@ export declare const useBusinessMapAutoComplete: (props: UseBusinessMapAutoCompl
7
7
  autoCompletePlaces: Ref<{
8
8
  placeId?: string | undefined;
9
9
  description: string;
10
+ distance?: number | undefined;
10
11
  lng: number;
11
12
  lat: number;
12
13
  name: string;
package/dist/index.cjs CHANGED
@@ -1,70 +1,70 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");const xe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+",Pe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9Ii44Ii8+PC9zdmc+";var Ln=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Sn=typeof global=="object"&&global&&global.Object===Object&&global;const Nn=Sn;var wn=typeof self=="object"&&self&&self.Object===Object&&self,Dn=Nn||wn||Function("return this")();const rt=Dn;var Cn=rt.Symbol;const V=Cn;var st=Object.prototype,xn=st.hasOwnProperty,Pn=st.toString,$=V?V.toStringTag:void 0;function bn(t){var e=xn.call(t,$),n=t[$];try{t[$]=void 0;var i=!0}catch{}var a=Pn.call(t);return i&&(e?t[$]=n:delete t[$]),a}var Rn=Object.prototype,Tn=Rn.toString;function En(t){return Tn.call(t)}var zn="[object Null]",Zn="[object Undefined]",ze=V?V.toStringTag:void 0;function On(t){return t==null?t===void 0?Zn:zn:ze&&ze in Object(t)?bn(t):En(t)}function kn(t){return t!=null&&typeof t=="object"}var Gn="[object Symbol]";function ct(t){return typeof t=="symbol"||kn(t)&&On(t)==Gn}function Wn(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 Un=Array.isArray;const Bn=Un;var Yn=1/0,Ze=V?V.prototype:void 0,Oe=Ze?Ze.toString:void 0;function ut(t){if(typeof t=="string")return t;if(Bn(t))return Wn(t,ut)+"";if(ct(t))return Oe?Oe.call(t):"";var e=t+"";return e=="0"&&1/t==-Yn?"-0":e}var Vn=/\s/;function Hn(t){for(var e=t.length;e--&&Vn.test(t.charAt(e)););return e}var Qn=/^\s+/;function Jn(t){return t&&t.slice(0,Hn(t)+1).replace(Qn,"")}function Ne(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ke=0/0,Fn=/^[-+]0x[0-9a-f]+$/i,Xn=/^0b[01]+$/i,$n=/^0o[0-7]+$/i,_n=parseInt;function Ge(t){if(typeof t=="number")return t;if(ct(t))return ke;if(Ne(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Ne(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Jn(t);var n=Xn.test(t);return n||$n.test(t)?_n(t.slice(2),n?2:8):Fn.test(t)?ke:+t}function lt(t){return t==null?"":ut(t)}function Kn(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 qn(t){return function(e){return t==null?void 0:t[e]}}var ei={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",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:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ti=qn(ei);const ni=ti;var ii=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ai="\\u0300-\\u036f",oi="\\ufe20-\\ufe2f",ri="\\u20d0-\\u20ff",si=ai+oi+ri,ci="["+si+"]",ui=RegExp(ci,"g");function li(t){return t=lt(t),t&&t.replace(ii,ni).replace(ui,"")}var di=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function gi(t){return t.match(di)||[]}var Mi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Ii(t){return Mi.test(t)}var dt="\\ud800-\\udfff",mi="\\u0300-\\u036f",fi="\\ufe20-\\ufe2f",vi="\\u20d0-\\u20ff",pi=mi+fi+vi,gt="\\u2700-\\u27bf",Mt="a-z\\xdf-\\xf6\\xf8-\\xff",yi="\\xac\\xb1\\xd7\\xf7",hi="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ji="\\u2000-\\u206f",Ai=" \\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",It="A-Z\\xc0-\\xd6\\xd8-\\xde",Li="\\ufe0e\\ufe0f",mt=yi+hi+ji+Ai,ft="['’]",We="["+mt+"]",Si="["+pi+"]",vt="\\d+",Ni="["+gt+"]",pt="["+Mt+"]",yt="[^"+dt+mt+vt+gt+Mt+It+"]",wi="\\ud83c[\\udffb-\\udfff]",Di="(?:"+Si+"|"+wi+")",Ci="[^"+dt+"]",ht="(?:\\ud83c[\\udde6-\\uddff]){2}",jt="[\\ud800-\\udbff][\\udc00-\\udfff]",U="["+It+"]",xi="\\u200d",Ue="(?:"+pt+"|"+yt+")",Pi="(?:"+U+"|"+yt+")",Be="(?:"+ft+"(?:d|ll|m|re|s|t|ve))?",Ye="(?:"+ft+"(?:D|LL|M|RE|S|T|VE))?",At=Di+"?",Lt="["+Li+"]?",bi="(?:"+xi+"(?:"+[Ci,ht,jt].join("|")+")"+Lt+At+")*",Ri="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ti="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ei=Lt+At+bi,zi="(?:"+[Ni,ht,jt].join("|")+")"+Ei,Zi=RegExp([U+"?"+pt+"+"+Be+"(?="+[We,U,"$"].join("|")+")",Pi+"+"+Ye+"(?="+[We,U+Ue,"$"].join("|")+")",U+"?"+Ue+"+"+Be,U+"+"+Ye,Ti,Ri,vt,zi].join("|"),"g");function Oi(t){return t.match(Zi)||[]}function ki(t,e,n){return t=lt(t),e=n?void 0:e,e===void 0?Ii(t)?Oi(t):gi(t):t.match(e)||[]}var Gi="['’]",Wi=RegExp(Gi,"g");function Ui(t){return function(e){return Kn(ki(li(e).replace(Wi,"")),t,"")}}var Bi=function(){return rt.Date.now()};const Se=Bi;var Yi="Expected a function",Vi=Math.max,Hi=Math.min;function Qi(t,e,n){var i,a,o,r,c,l,d=0,g=!1,u=!1,M=!0;if(typeof t!="function")throw new TypeError(Yi);e=Ge(e)||0,Ne(n)&&(g=!!n.leading,u="maxWait"in n,o=u?Vi(Ge(n.maxWait)||0,e):o,M="trailing"in n?!!n.trailing:M);function I(N){var R=i,z=a;return i=a=void 0,d=N,r=t.apply(z,R),r}function m(N){return d=N,c=setTimeout(h,e),g?I(N):r}function v(N){var R=N-l,z=N-d,X=e-R;return u?Hi(X,o-z):X}function p(N){var R=N-l,z=N-d;return l===void 0||R>=e||R<0||u&&z>=o}function h(){var N=Se();if(p(N))return f(N);c=setTimeout(h,v(N))}function f(N){return c=void 0,M&&i?I(N):(i=a=void 0,r)}function S(){c!==void 0&&clearTimeout(c),d=0,i=l=a=c=void 0}function w(){return c===void 0?r:f(Se())}function x(){var N=Se(),R=p(N);if(i=arguments,a=this,l=N,R){if(c===void 0)return m(l);if(u)return clearTimeout(c),c=setTimeout(h,e),I(l)}return c===void 0&&(c=setTimeout(h,e)),r}return x.cancel=S,x.flush=w,x}var Ji=Ui(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});const St=Ji;s.util.warn;function y(t){return s.defineComponent({name:t.name,inheritAttrs:!1,setup(e,n){const{attrs:i,slots:a,emit:o}=n,r=i,c=o,l=(g,u)=>{const M=St(g);c(g,u),g!==M&&c(M,u)},d=new Proxy(a,{get(g,u,M){var I;return(I=Reflect.get(g,u,M))!=null?I:Reflect.get(r,u)}});return t(r,{...n,slots:d,emit:l})}})}function te(t){return{props:e=>s.defineComponent({name:t.name,inheritAttrs:!1,props:e,setup(n,i){const a=n,{slots:o,emit:r}=i,c=r,l=(g,u)=>{const M=St(g);c(g,u),g!==M&&c(M,u)},d=new Proxy(o,{get(g,u,M){var I;return(I=Reflect.get(g,u,M))!=null?I:Reflect.get(a,u)}});return t(a,{...i,slots:d,emit:l})}})}}const E=s.h,K="zh-CN";var Fi="n8tgem1",Ve="n8tgem0",Xi="n8tgem5",$i="n8tgem4",_i="n8tgem2",Ki="n8tgem3",qi="n8tgem7",ea="n8tgem6";const Nt=y(function(e,{emit:n}){const i=()=>n("click");return()=>{const{type:a,title:o,description:r}=e;return a==="locator"?s.h("div",{class:Ve},[s.h("img",{class:qi,attrs:{src:xe}})]):s.h("div",{class:Ve},[s.h("div",{class:Fi,on:{click:i}},[s.h("div",{class:_i},[s.h("div",{class:Ki},[o]),r&&s.h("div",{class:$i},[r])]),s.h("img",{class:Xi,attrs:{src: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)throw new Error("MyError: useMapSupplier should be under MapProvider");return t},ta=t=>s.provide(wt,t),Dt=Symbol("amap"),he=()=>s.inject(Dt),na=t=>s.provide(Dt,t),Ct=Symbol("gmap"),je=()=>s.inject(Ct),ia=t=>s.provide(Ct,t),xt=()=>{const{supplier:t}=A();return t==="gmap"?je():he()},G=t=>{const e=xt();s.watch(()=>e.value,n=>{n&&Promise.resolve().then(t)})},Pt=t=>{const{registerOverlay:e,overlayRef:n}=t;s.watch(()=>n.value,(i,a)=>{e&&(a&&e.remove(a),i&&e.add(i))})},He=t=>t!=null&&typeof t=="object"&&Number.isFinite(t.lat)&&Number.isFinite(t.lng);var aa=typeof WeakMap=="function",Qe=Object.keys;function Me(t,e){return t===e||t!==t&&e!==e}function Je(t){return t.constructor===Object||t.constructor==null}function Fe(t){return!!t&&typeof t.then=="function"}function Xe(t){return!!(t&&t.$$typeof)}function oa(){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 ra=function(t){return t?function(){return new WeakMap}:oa}(aa);function bt(t){return function(n){var i=t||n;return function(o,r,c,l,d,g,u){u===void 0&&(u=ra());var M=!!o&&typeof o=="object",I=!!r&&typeof r=="object";if(M!==I)return!1;if(!M&&!I)return i(o,r,u);var m=u.get(o);if(m&&u.get(r))return m===r;u.set(o,r),u.set(r,o);var v=i(o,r,u);return u.delete(o),u.delete(r),v}}}function sa(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 ca(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 d=!1,g=0;e.forEach(function(u,M){!d&&!o[g]&&(d=n(l,M,r,g,t,e,i)&&n(c,u,l,M,t,e,i),d&&(o[g]=!0)),g++}),r++,a=d}})}return a}var ua="_owner",la=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function $e(t,e,n,i){var a=Qe(t),o=a.length;if(Qe(e).length!==o)return!1;if(o)for(var r=void 0;o-- >0;){if(r=a[o],r===ua){var c=Xe(t),l=Xe(e);if((c||l)&&c!==l)return!1}if(!la(e,r)||!n(t[r],e[r],r,r,t,e,i))return!1}return!0}var da=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 ga(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,d=0;e.forEach(function(g,u){!l&&!o[d]&&(l=n(r,g,c,u,t,e,i),l&&(o[d]=!0)),d++}),a=l}})}return a}var Ma=typeof Map=="function",Ia=typeof Set=="function",_e=Object.prototype.valueOf;function ne(t){var e=typeof t=="function"?t(n):function(i,a,o,r,c,l,d){return n(i,a,d)};function n(i,a,o){if(i===a)return!0;if(i&&a&&typeof i=="object"&&typeof a=="object"){if(Je(i)&&Je(a))return $e(i,a,e,o);var r=Array.isArray(i),c=Array.isArray(a);return r||c?r===c&&sa(i,a,e,o):(r=i instanceof Date,c=a instanceof Date,r||c?r===c&&Me(i.getTime(),a.getTime()):(r=i instanceof RegExp,c=a instanceof RegExp,r||c?r===c&&da(i,a):Fe(i)||Fe(a)?i===a:Ma&&(r=i instanceof Map,c=a instanceof Map,r||c)?r===c&&ca(i,a,e,o):Ia&&(r=i instanceof Set,c=a instanceof Set,r||c)?r===c&&ga(i,a,e,o):i.valueOf!==_e||a.valueOf!==_e?Me(i.valueOf(),a.valueOf()):$e(i,a,e,o)))}return i!==i&&a!==a}return n}ne();ne(function(){return Me});ne(bt());ne(bt(Me));const C=([t,e])=>({lng:t,lat:e}),Ae=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},Rt=t=>`${t.charAt(2).toLocaleLowerCase()}${t.slice(3)}`,Tt=t=>t.slice(2).toLowerCase(),ma=t=>{switch(t){case"en":return"style_en";case"zh":return"style_zh_cn"}},D=t=>[t.lng,t.lat],Et=t=>(...e)=>{setTimeout(()=>t==null?void 0:t(...e))},Ke=t=>{const{address_components:e}=t,n=e.find(a=>a.types[0]==="administrative_area_level_1"||a.types[0]==="administrative_area_level_2");if(n)return n.long_name;const i=e.findIndex(a=>a.types[0]==="country");if(i>0)return e[i-1].long_name},zt=ne(t=>(e,n)=>He(e)||He(n)?new google.maps.LatLng(e).equals(new google.maps.LatLng(n)):t(e,n));function Zt(){let t;return function(n){return zt(n,t)||(t=n),t}}function ie(t,e,n){const i=Zt();return s.watch(()=>i(t()),e,{immediate:!1,flush:"post",...n})}function Q(t,e,n){const i=Zt();return s.watch(()=>i(t()),e,{immediate:!0,flush:"post",...n})}function fa(t){return`set${t.charAt(0).toUpperCase()}${t.slice(1)}`}function va(t,e,n,i){const a=n.map(({name:o})=>()=>e[o]);s.watch(a,(o,r)=>{const c=t.value;if(c)for(const[l,d]of o.entries()){const{name:g,defaultValue:u}=n[l],M=r[l];zt(d,M)||c[fa(g)](d!=null?d:u)}},{immediate:!0,flush:"post",...i})}function be(t,e,n,i){return va(t,e,n,{immediate:!1,...i})}function q(t,e,n,i){s.watchPostEffect(a=>{const o=t==null?void 0:t.value;if(!o)return;const r=[];for(const c of i){const l=Rt(c),d=Tt(c),g=u=>n(l,u);o.on(d,g),r.push(()=>o==null?void 0:o.off(d,g))}a(()=>{for(const c of r)c()})})}function H(t,e,n,i){s.watchPostEffect(a=>{const o=t==null?void 0:t.value;if(!o)return;const r=[];for(const c of i){const l=Rt(c),d=Tt(c),g=M=>n(l,M),u=o.addListener(d,g);r.push(()=>google.maps.event.removeListener(u))}a(()=>{for(const c of r)c()})})}const O=y(function(e,{emit:n}){const{registerOverlay:i}=e,a=s.shallowRef(),o=he();return s.onMounted(()=>{a.value=new AMap.Marker({...e})}),s.onUnmounted(()=>{var r;(r=a.value)==null||r.setMap(null)}),Pt({registerOverlay:i,overlayRef:a}),s.watchPostEffect(()=>{var c;const r=o==null?void 0:o.value;r&&((c=a.value)==null||c.setMap(r))}),be(a,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:""}]),q(a,e,n,["onClick"]),()=>null}),k=y(function(e,{emit:n}){const{registerOverlay:i}=e,a=s.shallowRef(),o=je(),r=c=>n(c,{target:a.value});return Pt({registerOverlay:i,overlayRef:a}),s.onMounted(()=>{const{registerOverlay:c,...l}=e;a.value=new google.maps.marker.AdvancedMarkerView({...l}),a.value.addListener}),s.onUnmounted(()=>{a.value&&(a.value.map=null)}),s.watchPostEffect(()=>{const c=o==null?void 0:o.value;!c||!a.value||(a.value.map=c)}),ie(()=>{const{content:c,registerOverlay:l,...d}=e;return d},c=>{a.value&&Object.assign(a.value,c)}),s.watch(()=>e.content,c=>{a.value&&(a.value.content=c)},{flush:"post"}),H(a,e,r,["onClick"]),()=>null}),L=(t,e)=>{s.watchEffect(()=>{t.log&&console.log(`log ${e} props = `,{...t})})},pa=(t,e,n,i)=>{s.watchEffect(()=>{t.log&&console.log(`log ${e} ${i} = `,{...n})})},P=(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};var Ot="rgf09w0";const kt=y(function(e){const n=s.computed(()=>`
2
- <img src="${xe}" class="${Ot}">
3
- `);return()=>s.h(O,{attrs:{position:e.position,content:n.value,anchor:"bottom-center"}})}),Gt=y(function(e){const n=s.computed(()=>P("img",{class:Ot,src:xe}));return()=>s.h(k,{attrs:{position:C(e.position),content:n.value}})});y(function(e){const n=A();return()=>E(n.supplier==="gmap"?Gt:kt,{attrs:e})});var Wt="_15rq2xn1",Ut="_15rq2xn0",Bt="_15rq2xn3",Yt="_15rq2xn2",Vt="_15rq2xn4",Ht="_15rq2xn6",Qt="_15rq2xn5";const ya=y(function(e){L(e,"AAddressBox");const n=s.computed(()=>{var i;return`
4
- <div class="${Ut}">
5
- <div class="${Wt}">
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");const be="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+",Re="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNC00IDQiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIG9wYWNpdHk9Ii44Ii8+PC9zdmc+";var Ln=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Sn=typeof global=="object"&&global&&global.Object===Object&&global;const Nn=Sn;var wn=typeof self=="object"&&self&&self.Object===Object&&self,Dn=Nn||wn||Function("return this")();const st=Dn;var Cn=st.Symbol;const H=Cn;var ct=Object.prototype,xn=ct.hasOwnProperty,Pn=ct.toString,$=H?H.toStringTag:void 0;function bn(t){var e=xn.call(t,$),n=t[$];try{t[$]=void 0;var i=!0}catch{}var a=Pn.call(t);return i&&(e?t[$]=n:delete t[$]),a}var Rn=Object.prototype,Tn=Rn.toString;function En(t){return Tn.call(t)}var zn="[object Null]",Zn="[object Undefined]",Ze=H?H.toStringTag:void 0;function On(t){return t==null?t===void 0?Zn:zn:Ze&&Ze in Object(t)?bn(t):En(t)}function kn(t){return t!=null&&typeof t=="object"}var Gn="[object Symbol]";function ut(t){return typeof t=="symbol"||kn(t)&&On(t)==Gn}function Wn(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 Un=Array.isArray;const Bn=Un;var Yn=1/0,Oe=H?H.prototype:void 0,ke=Oe?Oe.toString:void 0;function lt(t){if(typeof t=="string")return t;if(Bn(t))return Wn(t,lt)+"";if(ut(t))return ke?ke.call(t):"";var e=t+"";return e=="0"&&1/t==-Yn?"-0":e}var Vn=/\s/;function Hn(t){for(var e=t.length;e--&&Vn.test(t.charAt(e)););return e}var Qn=/^\s+/;function Jn(t){return t&&t.slice(0,Hn(t)+1).replace(Qn,"")}function De(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ge=0/0,Fn=/^[-+]0x[0-9a-f]+$/i,Xn=/^0b[01]+$/i,$n=/^0o[0-7]+$/i,_n=parseInt;function We(t){if(typeof t=="number")return t;if(ut(t))return Ge;if(De(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=De(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Jn(t);var n=Xn.test(t);return n||$n.test(t)?_n(t.slice(2),n?2:8):Fn.test(t)?Ge:+t}function dt(t){return t==null?"":lt(t)}function Kn(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 qn(t){return function(e){return t==null?void 0:t[e]}}var ei={À:"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",Ě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[]}var Mi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Ii(t){return Mi.test(t)}var gt="\\ud800-\\udfff",mi="\\u0300-\\u036f",fi="\\ufe20-\\ufe2f",vi="\\u20d0-\\u20ff",pi=mi+fi+vi,Mt="\\u2700-\\u27bf",It="a-z\\xdf-\\xf6\\xf8-\\xff",yi="\\xac\\xb1\\xd7\\xf7",hi="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ji="\\u2000-\\u206f",Ai=" \\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",mt="A-Z\\xc0-\\xd6\\xd8-\\xde",Li="\\ufe0e\\ufe0f",ft=yi+hi+ji+Ai,vt="['’]",Ue="["+ft+"]",Si="["+pi+"]",pt="\\d+",Ni="["+Mt+"]",yt="["+It+"]",ht="[^"+gt+ft+pt+Mt+It+mt+"]",wi="\\ud83c[\\udffb-\\udfff]",Di="(?:"+Si+"|"+wi+")",Ci="[^"+gt+"]",jt="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",B="["+mt+"]",xi="\\u200d",Be="(?:"+yt+"|"+ht+")",Pi="(?:"+B+"|"+ht+")",Ye="(?:"+vt+"(?:d|ll|m|re|s|t|ve))?",Ve="(?:"+vt+"(?:D|LL|M|RE|S|T|VE))?",Lt=Di+"?",St="["+Li+"]?",bi="(?:"+xi+"(?:"+[Ci,jt,At].join("|")+")"+St+Lt+")*",Ri="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ti="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ei=St+Lt+bi,zi="(?:"+[Ni,jt,At].join("|")+")"+Ei,Zi=RegExp([B+"?"+yt+"+"+Ye+"(?="+[Ue,B,"$"].join("|")+")",Pi+"+"+Ve+"(?="+[Ue,B+Be,"$"].join("|")+")",B+"?"+Be+"+"+Ye,B+"+"+Ve,Ti,Ri,pt,zi].join("|"),"g");function Oi(t){return t.match(Zi)||[]}function ki(t,e,n){return t=dt(t),e=n?void 0:e,e===void 0?Ii(t)?Oi(t):gi(t):t.match(e)||[]}var Gi="['’]",Wi=RegExp(Gi,"g");function Ui(t){return function(e){return Kn(ki(li(e).replace(Wi,"")),t,"")}}var Bi=function(){return st.Date.now()};const we=Bi;var Yi="Expected a function",Vi=Math.max,Hi=Math.min;function Qi(t,e,n){var i,a,o,r,c,l,d=0,g=!1,u=!1,M=!0;if(typeof t!="function")throw new TypeError(Yi);e=We(e)||0,De(n)&&(g=!!n.leading,u="maxWait"in n,o=u?Vi(We(n.maxWait)||0,e):o,M="trailing"in n?!!n.trailing:M);function I(L){var P=i,T=a;return i=a=void 0,d=L,r=t.apply(T,P),r}function m(L){return d=L,c=setTimeout(y,e),g?I(L):r}function v(L){var P=L-l,T=L-d,Z=e-P;return u?Hi(Z,o-T):Z}function p(L){var P=L-l,T=L-d;return l===void 0||P>=e||P<0||u&&T>=o}function y(){var L=we();if(p(L))return f(L);c=setTimeout(y,v(L))}function f(L){return c=void 0,M&&i?I(L):(i=a=void 0,r)}function N(){c!==void 0&&clearTimeout(c),d=0,i=l=a=c=void 0}function w(){return c===void 0?r:f(we())}function C(){var L=we(),P=p(L);if(i=arguments,a=this,l=L,P){if(c===void 0)return m(l);if(u)return clearTimeout(c),c=setTimeout(y,e),I(l)}return c===void 0&&(c=setTimeout(y,e)),r}return C.cancel=N,C.flush=w,C}var Ji=Ui(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});const Nt=Ji;s.util.warn;function h(t){return s.defineComponent({name:t.name,inheritAttrs:!1,setup(e,n){const{attrs:i,slots:a,emit:o}=n,r=i,c=o,l=(g,u)=>{const M=Nt(g);c(g,u),g!==M&&c(M,u)},d=new Proxy(a,{get(g,u,M){var I;return(I=Reflect.get(g,u,M))!=null?I:Reflect.get(r,u)}});return t(r,{...n,slots:d,emit:l})}})}function te(t){return{props:e=>s.defineComponent({name:t.name,inheritAttrs:!1,props:e,setup(n,i){const a=n,{slots:o,emit:r}=i,c=r,l=(g,u)=>{const M=Nt(g);c(g,u),g!==M&&c(M,u)},d=new Proxy(o,{get(g,u,M){var I;return(I=Reflect.get(g,u,M))!=null?I:Reflect.get(a,u)}});return t(a,{...i,slots:d,emit:l})}})}}const z=s.h,K="zh-CN";var Fi="n8tgem1",He="n8tgem0",Xi="n8tgem5",$i="n8tgem4",_i="n8tgem2",Ki="n8tgem3",qi="n8tgem7",ea="n8tgem6";const wt=h(function(e,{emit:n}){const i=()=>n("click");return()=>{const{type:a,title:o,description:r}=e;return a==="locator"?s.h("div",{class:He},[s.h("img",{class:qi,attrs:{src:be}})]):s.h("div",{class:He},[s.h("div",{class:Fi,on:{click:i}},[s.h("div",{class:_i},[s.h("div",{class:Ki},[o]),r&&s.h("div",{class:$i},[r])]),s.h("img",{class:Xi,attrs:{src:Re}})]),s.h("i",{class:ea})])}}),O="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIxN3B4IiB2aWV3Qm94PSIwIDAgMTcgMTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5qSt5ZyG5b2iPC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxjaXJjbGUgaWQ9InBhdGgtMSIgY3g9IjQuNSIgY3k9IjkuNSIgcj0iNC41Ij48L2NpcmNsZT4KICAgICAgICA8ZmlsdGVyIHg9Ii02MS4xJSIgeT0iLTYxLjElI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SLpppbpobUt5Y2z5pe255So6L2mLeaLluWKqOWFieaghyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIyOC4wMDAwMDAsIC0zMjIuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSLmpK3lnIblvaIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIzMi4wMDAwMDAsIDMyMS4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDx1c2UgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMSIgZmlsdGVyPSJ1cmwoI2ZpbHRlci0yKSIgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICA8dXNlIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSIjMzQ2RUZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=",Dt=Symbol(),A=()=>{const t=s.inject(Dt);if(!t)throw new Error("MyError: useMapSupplier should be under MapProvider");return t},ta=t=>s.provide(Dt,t),Ct=Symbol("amap"),je=()=>s.inject(Ct),na=t=>s.provide(Ct,t),xt=Symbol("gmap"),Ae=()=>s.inject(xt),ia=t=>s.provide(xt,t),Pt=()=>{const{supplier:t}=A();return t==="gmap"?Ae():je()},W=t=>{const e=Pt();s.watch(()=>e.value,n=>{n&&Promise.resolve().then(t)})},bt=t=>{const{registerOverlay:e,overlayRef:n}=t;s.watch(()=>n.value,(i,a)=>{e&&(a&&e.remove(a),i&&e.add(i))})},Qe=t=>t!=null&&typeof t=="object"&&Number.isFinite(t.lat)&&Number.isFinite(t.lng);var aa=typeof WeakMap=="function",Je=Object.keys;function Ie(t,e){return t===e||t!==t&&e!==e}function Fe(t){return t.constructor===Object||t.constructor==null}function Xe(t){return!!t&&typeof t.then=="function"}function $e(t){return!!(t&&t.$$typeof)}function oa(){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 ra=function(t){return t?function(){return new WeakMap}:oa}(aa);function Rt(t){return function(n){var i=t||n;return function(o,r,c,l,d,g,u){u===void 0&&(u=ra());var M=!!o&&typeof o=="object",I=!!r&&typeof r=="object";if(M!==I)return!1;if(!M&&!I)return i(o,r,u);var m=u.get(o);if(m&&u.get(r))return m===r;u.set(o,r),u.set(r,o);var v=i(o,r,u);return u.delete(o),u.delete(r),v}}}function sa(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 ca(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 d=!1,g=0;e.forEach(function(u,M){!d&&!o[g]&&(d=n(l,M,r,g,t,e,i)&&n(c,u,l,M,t,e,i),d&&(o[g]=!0)),g++}),r++,a=d}})}return a}var ua="_owner",la=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function _e(t,e,n,i){var a=Je(t),o=a.length;if(Je(e).length!==o)return!1;if(o)for(var r=void 0;o-- >0;){if(r=a[o],r===ua){var c=$e(t),l=$e(e);if((c||l)&&c!==l)return!1}if(!la(e,r)||!n(t[r],e[r],r,r,t,e,i))return!1}return!0}var da=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 ga(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,d=0;e.forEach(function(g,u){!l&&!o[d]&&(l=n(r,g,c,u,t,e,i),l&&(o[d]=!0)),d++}),a=l}})}return a}var Ma=typeof Map=="function",Ia=typeof Set=="function",Ke=Object.prototype.valueOf;function ne(t){var e=typeof t=="function"?t(n):function(i,a,o,r,c,l,d){return n(i,a,d)};function n(i,a,o){if(i===a)return!0;if(i&&a&&typeof i=="object"&&typeof a=="object"){if(Fe(i)&&Fe(a))return _e(i,a,e,o);var r=Array.isArray(i),c=Array.isArray(a);return r||c?r===c&&sa(i,a,e,o):(r=i instanceof Date,c=a instanceof Date,r||c?r===c&&Ie(i.getTime(),a.getTime()):(r=i instanceof RegExp,c=a instanceof RegExp,r||c?r===c&&da(i,a):Xe(i)||Xe(a)?i===a:Ma&&(r=i instanceof Map,c=a instanceof Map,r||c)?r===c&&ca(i,a,e,o):Ia&&(r=i instanceof Set,c=a instanceof Set,r||c)?r===c&&ga(i,a,e,o):i.valueOf!==Ke||a.valueOf!==Ke?Ie(i.valueOf(),a.valueOf()):_e(i,a,e,o)))}return i!==i&&a!==a}return n}ne();ne(function(){return Ie});ne(Rt());ne(Rt(Ie));const x=([t,e])=>({lng:t,lat:e}),Le=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},Tt=t=>`${t.charAt(2).toLocaleLowerCase()}${t.slice(3)}`,Et=t=>t.slice(2).toLowerCase(),ma=t=>{switch(t){case"en":return"style_en";case"zh":return"style_zh_cn"}},D=t=>[t.lng,t.lat],zt=t=>(...e)=>{setTimeout(()=>t==null?void 0:t(...e))},qe=t=>{const{address_components:e}=t,n=e.find(a=>a.types[0]==="administrative_area_level_1"||a.types[0]==="administrative_area_level_2");if(n)return n.long_name;const i=e.findIndex(a=>a.types[0]==="country");if(i>0)return e[i-1].long_name},Zt=ne(t=>(e,n)=>Qe(e)||Qe(n)?new google.maps.LatLng(e).equals(new google.maps.LatLng(n)):t(e,n));function Ot(){let t;return function(n){return Zt(n,t)||(t=n),t}}function ie(t,e,n){const i=Ot();return s.watch(()=>i(t()),e,{immediate:!1,flush:"post",...n})}function J(t,e,n){const i=Ot();return s.watch(()=>i(t()),e,{immediate:!0,flush:"post",...n})}function fa(t){return`set${t.charAt(0).toUpperCase()}${t.slice(1)}`}function va(t,e,n,i){const a=n.map(({name:o})=>()=>e[o]);s.watch(a,(o,r)=>{const c=t.value;if(c)for(const[l,d]of o.entries()){const{name:g,defaultValue:u}=n[l],M=r[l];Zt(d,M)||c[fa(g)](d!=null?d:u)}},{immediate:!0,flush:"post",...i})}function Te(t,e,n,i){return va(t,e,n,{immediate:!1,...i})}function q(t,e,n,i){s.watchPostEffect(a=>{const o=t==null?void 0:t.value;if(!o)return;const r=[];for(const c of i){const l=Tt(c),d=Et(c),g=u=>n(l,u);o.on(d,g),r.push(()=>o==null?void 0:o.off(d,g))}a(()=>{for(const c of r)c()})})}function Q(t,e,n,i){s.watchPostEffect(a=>{const o=t==null?void 0:t.value;if(!o)return;const r=[];for(const c of i){const l=Tt(c),d=Et(c),g=M=>n(l,M),u=o.addListener(d,g);r.push(()=>google.maps.event.removeListener(u))}a(()=>{for(const c of r)c()})})}const k=h(function(e,{emit:n}){const{registerOverlay:i}=e,a=s.shallowRef(),o=je();return s.onMounted(()=>{a.value=new AMap.Marker({...e})}),s.onUnmounted(()=>{var r;(r=a.value)==null||r.setMap(null)}),bt({registerOverlay:i,overlayRef:a}),s.watchPostEffect(()=>{var c;const r=o==null?void 0:o.value;r&&((c=a.value)==null||c.setMap(r))}),Te(a,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:""}]),q(a,e,n,["onClick"]),()=>null}),G=h(function(e,{emit:n}){const{registerOverlay:i}=e,a=s.shallowRef(),o=Ae(),r=c=>n(c,{target:a.value});return bt({registerOverlay:i,overlayRef:a}),s.onMounted(()=>{const{registerOverlay:c,...l}=e;a.value=new google.maps.marker.AdvancedMarkerView({...l}),a.value.addListener}),s.onUnmounted(()=>{a.value&&(a.value.map=null)}),s.watchPostEffect(()=>{const c=o==null?void 0:o.value;!c||!a.value||(a.value.map=c)}),ie(()=>{const{content:c,registerOverlay:l,...d}=e;return d},c=>{a.value&&Object.assign(a.value,c)}),s.watch(()=>e.content,c=>{a.value&&(a.value.content=c)},{flush:"post"}),Q(a,e,r,["onClick"]),()=>null}),S=(t,e)=>{s.watchEffect(()=>{t.log&&console.log(`log ${e} props = `,{...t})})},pa=(t,e,n,i)=>{s.watchEffect(()=>{t.log&&console.log(`log ${e} ${i} = `,{...n})})},b=(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};var kt="rgf09w0";const Gt=h(function(e){const n=s.computed(()=>`
2
+ <img src="${be}" class="${kt}">
3
+ `);return()=>s.h(k,{attrs:{position:e.position,content:n.value,anchor:"bottom-center"}})}),Wt=h(function(e){const n=s.computed(()=>b("img",{class:kt,src:be}));return()=>s.h(G,{attrs:{position:x(e.position),content:n.value}})});h(function(e){const n=A();return()=>z(n.supplier==="gmap"?Wt:Gt,{attrs:e})});var Ut="_15rq2xn1",Bt="_15rq2xn0",Yt="_15rq2xn3",Vt="_15rq2xn2",Ht="_15rq2xn4",Qt="_15rq2xn6",Jt="_15rq2xn5";const ya=h(function(e){S(e,"AAddressBox");const n=s.computed(()=>{var i;return`
4
+ <div class="${Bt}">
5
+ <div class="${Ut}">
6
6
  <div>
7
- <div class="${Yt}">${e.title}</div>
8
- <div class="${Bt}">${(i=e.description)!=null?i:""}</div>
7
+ <div class="${Vt}">${e.title}</div>
8
+ <div class="${Yt}">${(i=e.description)!=null?i:""}</div>
9
9
  </div>
10
- <img class="${Vt}" src="${Pe}" >
10
+ <img class="${Ht}" src="${Re}" >
11
11
  </div>
12
- <div class="${Qt}"></div>
13
- <img src="${Z}" class="${Ht}">
12
+ <div class="${Jt}"></div>
13
+ <img src="${O}" class="${Qt}">
14
14
  </div>
15
- `});return()=>e.type==="locator"?s.h(kt,{attrs:{position:e.position}}):s.h(O,{attrs:{position:e.position,content:n.value,anchor:"bottom-center"}})}),ha=y(function(e){L(e,"GAddressBox");const n=s.computed(()=>{var i;return P("div",{class:Ut},`
16
- <div class="${Wt}">
15
+ `});return()=>e.type==="locator"?s.h(Gt,{attrs:{position:e.position}}):s.h(k,{attrs:{position:e.position,content:n.value,anchor:"bottom-center"}})}),ha=h(function(e){S(e,"GAddressBox");const n=s.computed(()=>{var i;return b("div",{class:Bt},`
16
+ <div class="${Ut}">
17
17
  <div>
18
- <div class="${Yt}">${e.title}</div>
19
- <div class="${Bt}">${(i=e.description)!=null?i:""}</div>
18
+ <div class="${Vt}">${e.title}</div>
19
+ <div class="${Yt}">${(i=e.description)!=null?i:""}</div>
20
20
  </div>
21
- <img class="${Vt}" src="${Pe}" >
21
+ <img class="${Ht}" src="${Re}" >
22
22
  </div>
23
- <div class="${Qt}"></div>
24
- <img src="${Z}" class="${Ht}">
25
- `)});return()=>e.type==="locator"?s.h(Gt,{attrs:{position:e.position}}):s.h(k,{attrs:{position:C(e.position),content:n.value}})}),ja=y(function(e){const n=A();return()=>E(n.supplier==="gmap"?ha:ya,{attrs:e})});var we={},Aa={get exports(){return we},set exports(t){we=t}};(function(t,e){(function(n,i){t.exports=i()})(Ln,function(){function n(u){var M=[];return u.AMapUI&&M.push(i(u.AMapUI)),u.Loca&&M.push(a(u.Loca)),Promise.all(M)}function i(u){return new Promise(function(M,I){var m=[];if(u.plugins)for(var v=0;v<u.plugins.length;v+=1)r.AMapUI.plugins.indexOf(u.plugins[v])==-1&&m.push(u.plugins[v]);if(c.AMapUI===o.failed)I("前次请求 AMapUI 失败");else if(c.AMapUI===o.notload){c.AMapUI=o.loading,r.AMapUI.version=u.version||r.AMapUI.version,v=r.AMapUI.version;var p=document.body||document.head,h=document.createElement("script");h.type="text/javascript",h.src="https://webapi.amap.com/ui/"+v+"/main.js",h.onerror=function(f){c.AMapUI=o.failed,I("请求 AMapUI 失败")},h.onload=function(){if(c.AMapUI=o.loaded,m.length)window.AMapUI.loadUI(m,function(){for(var f=0,S=m.length;f<S;f++){var w=m[f].split("/").slice(-1)[0];window.AMapUI[w]=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]()},p.appendChild(h)}else c.AMapUI===o.loaded?u.version&&u.version!==r.AMapUI.version?I("不允许多个版本 AMapUI 混用"):m.length?window.AMapUI.loadUI(m,function(){for(var f=0,S=m.length;f<S;f++){var w=m[f].split("/").slice(-1)[0];window.AMapUI[w]=arguments[f]}M()}):M():u.version&&u.version!==r.AMapUI.version?I("不允许多个版本 AMapUI 混用"):l.AMapUI.push(function(f){f?I(f):m.length?window.AMapUI.loadUI(m,function(){for(var S=0,w=m.length;S<w;S++){var x=m[S].split("/").slice(-1)[0];window.AMapUI[x]=arguments[S]}M()}):M()})})}function a(u){return new Promise(function(M,I){if(c.Loca===o.failed)I("前次请求 Loca 失败");else if(c.Loca===o.notload){c.Loca=o.loading,r.Loca.version=u.version||r.Loca.version;var m=r.Loca.version,v=r.AMap.version.startsWith("2"),p=m.startsWith("2");if(v&&!p||!v&&p)I("JSAPI 与 Loca 版本不对应!!");else{v=r.key,p=document.body||document.head;var h=document.createElement("script");h.type="text/javascript",h.src="https://webapi.amap.com/loca?v="+m+"&key="+v,h.onerror=function(f){c.Loca=o.failed,I("请求 AMapUI 失败")},h.onload=function(){for(c.Loca=o.loaded,M();l.Loca.length;)l.Loca.splice(0,1)[0]()},p.appendChild(h)}}else c.Loca===o.loaded?u.version&&u.version!==r.Loca.version?I("不允许多个版本 Loca 混用"):M():u.version&&u.version!==r.Loca.version?I("不允许多个版本 Loca 混用"):l.Loca.push(function(f){f?I(f):I()})})}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var o;(function(u){u.notload="notload",u.loading="loading",u.loaded="loaded",u.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:[]},d=[],g=function(u){typeof u=="function"&&(c.AMap===o.loaded?u(window.AMap):d.push(u))};return{load:function(u){return new Promise(function(M,I){if(c.AMap==o.failed)I("");else if(c.AMap==o.notload){var m=u.key,v=u.version,p=u.plugins;m?(window.AMap&&location.host!=="lbs.amap.com"&&I("禁止多种API加载方式混用"),r.key=m,r.AMap.version=v||r.AMap.version,r.AMap.plugins=p||r.AMap.plugins,c.AMap=o.loading,v=document.body||document.head,window.___onAPILoaded=function(f){if(delete window.___onAPILoaded,f)c.AMap=o.failed,I(f);else for(c.AMap=o.loaded,n(u).then(function(){M(window.AMap)}).catch(I);d.length;)d.splice(0,1)[0]()},p=document.createElement("script"),p.type="text/javascript",p.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+r.AMap.version+"&key="+m+"&plugin="+r.AMap.plugins.join(","),p.onerror=function(f){c.AMap=o.failed,I(f)},v.appendChild(p)):I("请填写key")}else if(c.AMap==o.loaded)if(u.key&&u.key!==r.key)I("多个不一致的 key");else if(u.version&&u.version!==r.AMap.version)I("不允许多个版本 JSAPI 混用");else{if(m=[],u.plugins)for(v=0;v<u.plugins.length;v+=1)r.AMap.plugins.indexOf(u.plugins[v])==-1&&m.push(u.plugins[v]);m.length?window.AMap.plugin(m,function(){n(u).then(function(){M(window.AMap)}).catch(I)}):n(u).then(function(){M(window.AMap)}).catch(I)}else if(u.key&&u.key!==r.key)I("多个不一致的 key");else if(u.version&&u.version!==r.AMap.version)I("不允许多个版本 JSAPI 混用");else{var h=[];if(u.plugins)for(v=0;v<u.plugins.length;v+=1)r.AMap.plugins.indexOf(u.plugins[v])==-1&&h.push(u.plugins[v]);g(function(){h.length?window.AMap.plugin(h,function(){n(u).then(function(){M(window.AMap)}).catch(I)}):n(u).then(function(){M(window.AMap)}).catch(I)})}})},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:[]}}}})})(Aa);var La=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 qe="__googleMapsScriptId";var B;(function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"})(B||(B={}));class W{constructor({apiKey:e,authReferrerPolicy:n,channel:i,client:a,id:o=qe,language:r,libraries:c=[],mapIds:l,nonce:d,region:g,retries:u=3,url:M="https://maps.googleapis.com/maps/api/js",version:I}){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||qe,this.language=r,this.libraries=c,this.mapIds=l,this.nonce=d,this.region=g,this.retries=u,this.url=M,this.version=I,W.instance){if(!La(this.options,W.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(W.instance.options)}`);return W.instance}W.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?B.FAILURE:this.done?B.SUCCESS:this.loading?B.LOADING:B.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+=`&region=${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())}}}const Sa=["AMap.Geolocation","AMap.Geocoder","AMap.PlaceSearch","AMap.Driving","AMap.Walking"],Na=["marker","places","geometry"];var ee=(t=>(t.LOADING="LOADING",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t))(ee||{});const wa=t=>{const{onChange:e}=t;let n,i;const a=new Promise((c,l)=>{n=c,i=l}),o=s.shallowRef("LOADING"),r=s.computed(()=>{const{onChange:c,loading:l,fallback:d,apiKey:g,apiSecret:u,apiServiceHost:M,version:I,...m}=t;return{...m,key:g,version:I!=null?I:"2.0.5.16"}});return Q(()=>r.value,c=>{const l=d=>{o.value=d,d==="SUCCESS"&&n(),d==="FAILURE"&&i(),e==null||e(o.value)};l("LOADING"),window._AMapSecurityConfig=t.apiServiceHost?{serviceHost:t.apiServiceHost}:{securityJsCode:t.apiSecret},we.load(c).then(()=>l("SUCCESS"),()=>l("FAILURE"))}),{statusRef:o,readyPromise:a}},Da=t=>{const{onChange:e}=t;let n,i;const a=new Promise((c,l)=>{n=c,i=l}),o=s.shallowRef("LOADING"),r=s.computed(()=>{const{onChange:c,fallback:l,loading:d,...g}=t;return g});return Q(()=>r.value,c=>{const l=new W(c),d=g=>{o.value=g,g==="SUCCESS"&&n(),g==="FAILURE"&&i(),e==null||e(o.value)};d("LOADING"),l.load().then(()=>d("SUCCESS"),()=>d("FAILURE"))}),{statusRef:o,readyPromise:a}},Ca=t=>{const{gmapKey:e,amapKey:n,amapSecret:i,amapServiceHost:a,supplier:o,language:r,onChange:c}=t;return o==="gmap"?Da({apiKey:e,language:r,version:"beta",libraries:Na,onChange:c}):wa({apiKey:n,apiSecret:i,apiServiceHost:a,plugins:Sa,onChange:c})};var xa="_1d8ur7t0";const Pa=y(function(e,{slots:n,emit:i}){const{onDragStart:a,onDragEnd:o,mapRef:r,vectorMapForeign:c="style_zh_cn",...l}=e,d=s.computed(()=>({dragEnable:!!e.dragEnable,zoomEnable:!!e.zoomEnable,jogEnable:!!e.jogEnable,pitchEnable:!!e.pitchEnable,rotateEnable:!!e.rotateEnable,animateEnable:!!e.animateEnable,keyboardEnable:!!e.keyboardEnable})),g=s.shallowRef(),u=s.shallowRef();return na(u),s.watchPostEffect(()=>{if(u.value||!g.value)return;const M=new AMap.Map(g.value,{...l,vectorMapForeign:c,mapStyle:"amap://styles/95498a904992a4c0b866a3e4d7729682"});u.value=M,r==null||r(M)}),ie(()=>d.value,M=>{var I;(I=u.value)==null||I.setStatus(M)}),be(u,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}]),q(u,e,i,["onDragStart","onDragEnd"]),()=>{var M;return s.h("div",{ref:g,class:xa},(M=n.default)==null?void 0:M.call(n))}});let de="user";const ba=()=>de,Jt=()=>({executeMapApi:e=>{de="api";try{e(),setTimeout(()=>{de="user"},100)}catch(n){throw de="user",n}}});var Ra="_7anfuo0";const Ta=y(function(e,{slots:n,emit:i}){const a=e.mapRef,o=s.computed(()=>{const{mapRef:u,onDragStart:M,onDragEnd:I,...m}=e;return m}),r=o.value,c=s.shallowRef(),l=s.shallowRef(),{executeMapApi:d}=Jt(),g=u=>i(u,{target:l.value});return ia(l),s.watchPostEffect(()=>{if(l.value||!c.value)return;let u;d(()=>{u=new google.maps.Map(c.value,{...r})}),l.value=u,a==null||a(u)}),ie(()=>o.value,u=>{d(()=>{var M;return(M=l.value)==null?void 0:M.setOptions({...u})})}),H(l,e,g,["onDragStart","onDragEnd"]),()=>{var u;return s.h("div",{ref:c,class:Ra},(u=n.default)==null?void 0:u.call(n))}}),Ea=te(function(e,{slots:n}){const{statusRef:i,readyPromise:a}=Ca(e),o=new Proxy(e,{get(r,c,l){return c==="status"?i.value:c==="readyPromise"?a:Reflect.get(r,c,l)}});return ta(o),()=>{var r;return s.h("div",[(r=n.default)==null?void 0:r.call(n)])}}).props(["amapKey","amapSecret","amapServiceHost","gmapId","gmapKey","supplier","language"]),ae=te(function(e,{slots:n,emit:i}){L(e,"HeycarMap");const a=A(),o=({target:c})=>{const{lng:l,lat:d}=c.getCenter();i("dragEnd",[l(),d()])},r=({target:c})=>{const{lng:l,lat:d}=c.getCenter();i("dragEnd",[l,d])};return()=>{var v,p,h;const{supplier:c,gmapId:l,language:d="zh",status:g}=a,{mapRef:u,center:M,zoom:I}=e;if(g===ee.LOADING)return(v=n.loading)==null?void 0:v.call(n);if(g===ee.FAILURE)return(p=n.fallback)==null?void 0:p.call(n);const m=(h=n.default)==null?void 0:h.call(n);switch(c){case"gmap":return s.h(Ta,{attrs:{mapRef:u,mapId:l,center:M?C(M):void 0,zoom:I},on:{dragEnd:o}},[m]);default:return s.h(Pa,{attrs:{mapRef:u,vectorMapForeign:ma(d),center:M,zoom:I},on:{dragEnd:r}},[m])}}}).props(["center","fallback","loading","mapRef","zoom"]),_=y(function(e){const n=s.shallowRef(),i=he();return s.onMounted(()=>{n.value=new AMap.Polyline({...e})}),s.onUnmounted(()=>{var a;(a=n.value)==null||a.setMap(null)}),s.watchPostEffect(()=>{var o;const a=i==null?void 0:i.value;a&&((o=n.value)==null||o.setMap(a))}),be(n,e,[{name:"path",defaultValue:[[0,0]]},{name:"extData",defaultValue:void 0},{name:"draggable",defaultValue:!1}]),ie(()=>{const{path:a,extData:o,draggable:r,...c}=e;return c},a=>{var o;(o=n.value)==null||o.setOptions({...a})}),()=>null}),ge=y(function(e){const n=s.shallowRef(),i=je();return s.onMounted(()=>{n.value=new google.maps.Polyline({...e})}),s.onUnmounted(()=>{var a;(a=n.value)==null||a.setMap(null)}),s.watchPostEffect(()=>{var o;const a=i==null?void 0:i.value;a&&((o=n.value)==null||o.setMap(a))}),ie(()=>({...e}),a=>{var o;(o=n.value)==null||o.setOptions({...a})}),()=>null}),za=y(function(e){return L(e,"ADrivingLine"),()=>{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",d=e.done?"#7693AF":"#4175F1",g=e.done?"#7693AF":"#6C95F5";return s.h("div",[s.h(_,{attrs:{path:e.path,strokeWeight:i+2*a+2*r,strokeOpacity:1,strokeColor:d,lineJoin:"round",lineCap:"round"}}),s.h(_,{attrs:{path:e.path,strokeWeight:i+2*a,strokeOpacity:1,strokeColor:g,lineJoin:"round",lineCap:"round",strokeStyle:"dashed",strokeDasharray:[c,c*.5]}}),s.h(_,{attrs:{path:e.path,strokeWeight:i,strokeOpacity:1,strokeColor:l,lineJoin:"round",lineCap:"round"}}),s.h(_,{attrs:{showDir:!0,path:e.path,strokeWeight:i+2*o,strokeOpacity:1,strokeColor:"transparent",lineJoin:"round",lineCap:"round"}})])}}),Za=y(function(e){L(e,"ADrivingLine");const n=s.computed(()=>e.path.map(C));return()=>{const i=window.innerWidth*.01,a=10*i,o=2.5*i,r=.35*i,c=.75*i,l=1*i,d=e.done?"#96B2CA":"#487BF4",g=e.done?"#7693AF":"#4175F1",u=e.done?"#7693AF":"#6C95F5";return s.h("div",[s.h(ge,{attrs:{path:n.value,strokeWeight:o+2*r+2*l,strokeOpacity:1,strokeColor:g}}),s.h(ge,{attrs:{path:n.value,icons:[{icon:{path:"M 0,-0.5 0,0.5",strokeWeight:o+2*r,strokeColor:u,fillColor:u,scale:1},repeat:`${o}px`,offset:`${o/2}px`}]}}),s.h(ge,{attrs:{path:n.value,strokeWeight:o,strokeOpacity:1,strokeColor:d,icons:[{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW,strokeColor:"white",strokeWeight:c,scale:3},repeat:`${a}px`}]}})])}}),oe=y(function(e){const n=A();return()=>e.path.length?E(n.supplier==="gmap"?Za:za,{attrs:e}):null}),Ft=t=>{const e=s.reactive({path:[],distance:0,duration:0}),n=new AMap.Driving({});return Q(()=>({...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 d=r.routes[0];for(const g of d.steps){const M=g.path.map(({lng:I,lat:m})=>[I,m]);c=c.concat(M)}e.path=c,e.distance=d.distance,e.duration=d.time;return}case"no_data":e.path=[],e.distance=0,e.duration=0;return;default:throw r}})}),e},Xt=t=>{const e=s.reactive({path:[],distance:0,duration:0}),n=new google.maps.DirectionsService;return Q(()=>({...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.DRIVING},(o,r)=>{var c,l,d,g;switch(r){case google.maps.DirectionsStatus.OK:{let u=[],M=0,I=0;const m=o.routes[0],v=m.overview_path.map(p=>[p.lng(),p.lat()]);u=u.concat(v);for(const p of m.legs)M+=(l=(c=p.distance)==null?void 0:c.value)!=null?l:0,I+=(g=(d=p.duration)==null?void 0:d.value)!=null?g:0;e.path=u,e.distance=M,e.duration=I;return}case google.maps.DirectionsStatus.ZERO_RESULTS:case google.maps.DirectionsStatus.NOT_FOUND:e.path=[],e.distance=0,e.duration=0;return;default:throw new Error(r)}})}),e},Oa=t=>{const{supplier:e}=A();return e==="gmap"?Xt(t):Ft(t)},ka=(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},$t=t=>s.computed(()=>{const{map:e,path:n}=t,[i,a]=n;if(!(!i||!a||!e))return ka(i,a,e)}),_t=t=>s.computed(()=>{const{path:e}=t,[n,i]=e;if(!(!n||!i))return google.maps.geometry.spherical.computeHeading(C(n),C(i))}),Ga=t=>{const{supplier:e}=A();return e==="gmap"?_t(t):$t(t)},Wa=y(function(e,{slots:n}){L(e,"ADrivingRoute");const i=he(),{path:a,distance:o,duration:r}=s.toRefs(Ft(e)),c=$t(s.reactive({path:a,map:i}));return()=>{var l;return s.h("div",[(l=n.render)==null?void 0:l.call(n,s.reactive({path:a,angle:c,distance:o,duration:r}))])}}),Ua=y(function(e,{slots:n}){L(e,"GDrivingRoute");const i=je(),{path:a,distance:o,duration:r}=s.toRefs(Xt(e)),c=_t(s.reactive({path:a,map:i}));return()=>{var l;return s.h("div",[(l=n.render)==null?void 0:l.call(n,s.reactive({path:a,angle:c,distance:o,duration:r}))])}}),re=y(function(e,{slots:n}){const{supplier:i}=A();return()=>E(i==="gmap"?Ua:Wa,{attrs:e,scopedSlots:n})}),Ba=20,Ya=t=>{const{mapRef:e,autoFitTimeout:n}=t,i=new Set;let a;const o=()=>{var m;const l=e.value;if(!l)return;const d=window.innerWidth/100,[g,u,M,I]=(m=t.padding)!=null?m:[0,0,0,0];console.log([...i]),l.setFitView([...i],!1,[g*d,M*d,I*d,u*d])},r={add:l=>{i.add(l)},remove:l=>{i.delete(l)},setFitView:o};return q(e,{},()=>{n&&(a&&clearTimeout(a),a=setTimeout(()=>{a=void 0,o()},n))},["onDragEnd"]),{registerFitVeiw:r,setFitView:o}};class Va extends Set{getBound(){const e=new google.maps.LatLngBounds;for(const n of this.values()){const i=n instanceof google.maps.Marker?n.getPosition():n.position;i&&e.extend(i)}return e}}const Ha=t=>{const{mapRef:e,autoFitTimeout:n}=t,{executeMapApi:i}=Jt(),a=new Va;let o;const r=()=>{var p;const g=e.value;if(!g)return;const u=window.innerWidth/100,[M,I,m,v]=(p=t.padding)!=null?p:[0,0,0,0];i(()=>g.fitBounds(a.getBound(),{top:M*u,right:I*u,bottom:m*u,left:v*u}))},c={add:g=>{a.add(g)},remove:g=>{a.delete(g)},setFitView:r},l=g=>{const u=ba();console.log("handleMoveEndOrZomEnd name, eventSource = ",g,u),!(!n||u!=="user")&&(o&&clearTimeout(o),o=setTimeout(()=>{o=void 0,r()},n))},d=Qi(l,Ba);return H(e,{},l,["onDragEnd"]),H(e,{},d,["onZoom_changed"]),{registerFitVeiw:c,setFitView:r}},se=t=>{const{supplier:e}=A();return e==="gmap"?Ha(t):Ya(t)};y(function(e,{slots:n}){const i=xt(),a=se({...e,mapRef:i});return()=>{var o;return s.h("div",[(o=n.render)==null?void 0:o.call(n,a)])}});const Qa=y(function(e,{slots:n}){const{registerOverlay:i}=e,{setFitView:a}=i;return G(a),()=>{var o;return s.h("div",[(o=n.default)==null?void 0:o.call(n)])}}),Kt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjg0NDciIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkY4QjRBIiBvZmZzZXQ9IjUwLjU5NiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZBOTVBIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xMiAzMC4yMTVjMi4xMzQgMCAzLjg2My0uODkzIDMuODYzLTEuOTk1IDAtMS4xLTEuNzMtMS45OTQtMy44NjMtMS45OTQtMi4xMzQgMC0zL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ZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTIgMzAuMjE1YzEuOTUgMCAzLjUzMi0uODE2IDMuNTMyLTEuODIzIDAtMS4wMDctMS41ODEtMS44MjMtMy41MzItMS44MjMtMS45NSAwLTMuNTMyLjgxNi0zLjUzMiAxLjgyMyAwIDEuMDA3IDEuNTgxIDEuODIzIDMuNTMyIDEuODIzeiIgZmlsbC1vcGFjaXR5PSIuNSIgZmlsbD0iIzQzNDg1QSIvPjxwYXRoIGQ9Ik0xMSAyN2MyLjEyOCAwLS45LTMuNzQyIDUuNjIxLTYuNjQxIDMuMjIxLTEuOTEgNS4zNzktNS40MSA1LjM3OS05LjQxMkMyMiA0LjkwMSAxNy4wNzUgMCAxMSAwUzAgNC45MDEgMCAxMC45NDdjMCAzLjkxOCAyLjA2OCA3LjM1NSA1LjE3NyA5LjI5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";function Ja(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function et(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 tt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?et(Object(n),!0).forEach(function(i){Ja(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var Fa=(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},J=t=>e=>{var n=t.defaultClassName,i=tt(tt({},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[d,g]of t.compoundVariants)Fa(d,i,t.defaultVariants)&&(n+=" "+g);return n},Y=J({defaultClassName:"",variantClassNames:{type:{start:"_4a4ovk6",end:"_4a4ovk7"}},defaultVariants:{},compoundVariants:[]}),en="_4a4ovk1",tn="_4a4ovk4",nn="_4a4ovk5",an="_4a4ovk3",Ie="_4a4ovk0",on="_4a4ovk2";const Xa=y(function(e){L(e,"AStartEndPoint");const n=s.computed(()=>{var o;const i=e.type==="start"?qt:Kt,a=e.description?Ae(e.description).map(r=>r.type==="normal"?r.value:`<span class="${nn}">${r.value}</span>`).join(""):"";return!e.description&&!e.title?`<img src="${i}" class="${Y({type:e.type})}">`:e.description?`
26
- <div class="${Ie}">
27
- <div class="${en}">
28
- <div class="${an}">${(o=e.title)!=null?o:""}</div>
29
- <div class="${tn}">${a}</div>
23
+ <div class="${Jt}"></div>
24
+ <img src="${O}" class="${Qt}">
25
+ `)});return()=>e.type==="locator"?s.h(Wt,{attrs:{position:e.position}}):s.h(G,{attrs:{position:x(e.position),content:n.value}})}),ja=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?ha:ya,{attrs:e})});var Ce={},Aa={get exports(){return Ce},set exports(t){Ce=t}};(function(t,e){(function(n,i){t.exports=i()})(Ln,function(){function n(u){var M=[];return u.AMapUI&&M.push(i(u.AMapUI)),u.Loca&&M.push(a(u.Loca)),Promise.all(M)}function i(u){return new Promise(function(M,I){var m=[];if(u.plugins)for(var v=0;v<u.plugins.length;v+=1)r.AMapUI.plugins.indexOf(u.plugins[v])==-1&&m.push(u.plugins[v]);if(c.AMapUI===o.failed)I("前次请求 AMapUI 失败");else if(c.AMapUI===o.notload){c.AMapUI=o.loading,r.AMapUI.version=u.version||r.AMapUI.version,v=r.AMapUI.version;var p=document.body||document.head,y=document.createElement("script");y.type="text/javascript",y.src="https://webapi.amap.com/ui/"+v+"/main.js",y.onerror=function(f){c.AMapUI=o.failed,I("请求 AMapUI 失败")},y.onload=function(){if(c.AMapUI=o.loaded,m.length)window.AMapUI.loadUI(m,function(){for(var f=0,N=m.length;f<N;f++){var w=m[f].split("/").slice(-1)[0];window.AMapUI[w]=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]()},p.appendChild(y)}else c.AMapUI===o.loaded?u.version&&u.version!==r.AMapUI.version?I("不允许多个版本 AMapUI 混用"):m.length?window.AMapUI.loadUI(m,function(){for(var f=0,N=m.length;f<N;f++){var w=m[f].split("/").slice(-1)[0];window.AMapUI[w]=arguments[f]}M()}):M():u.version&&u.version!==r.AMapUI.version?I("不允许多个版本 AMapUI 混用"):l.AMapUI.push(function(f){f?I(f):m.length?window.AMapUI.loadUI(m,function(){for(var N=0,w=m.length;N<w;N++){var C=m[N].split("/").slice(-1)[0];window.AMapUI[C]=arguments[N]}M()}):M()})})}function a(u){return new Promise(function(M,I){if(c.Loca===o.failed)I("前次请求 Loca 失败");else if(c.Loca===o.notload){c.Loca=o.loading,r.Loca.version=u.version||r.Loca.version;var m=r.Loca.version,v=r.AMap.version.startsWith("2"),p=m.startsWith("2");if(v&&!p||!v&&p)I("JSAPI 与 Loca 版本不对应!!");else{v=r.key,p=document.body||document.head;var y=document.createElement("script");y.type="text/javascript",y.src="https://webapi.amap.com/loca?v="+m+"&key="+v,y.onerror=function(f){c.Loca=o.failed,I("请求 AMapUI 失败")},y.onload=function(){for(c.Loca=o.loaded,M();l.Loca.length;)l.Loca.splice(0,1)[0]()},p.appendChild(y)}}else c.Loca===o.loaded?u.version&&u.version!==r.Loca.version?I("不允许多个版本 Loca 混用"):M():u.version&&u.version!==r.Loca.version?I("不允许多个版本 Loca 混用"):l.Loca.push(function(f){f?I(f):I()})})}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var o;(function(u){u.notload="notload",u.loading="loading",u.loaded="loaded",u.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:[]},d=[],g=function(u){typeof u=="function"&&(c.AMap===o.loaded?u(window.AMap):d.push(u))};return{load:function(u){return new Promise(function(M,I){if(c.AMap==o.failed)I("");else if(c.AMap==o.notload){var m=u.key,v=u.version,p=u.plugins;m?(window.AMap&&location.host!=="lbs.amap.com"&&I("禁止多种API加载方式混用"),r.key=m,r.AMap.version=v||r.AMap.version,r.AMap.plugins=p||r.AMap.plugins,c.AMap=o.loading,v=document.body||document.head,window.___onAPILoaded=function(f){if(delete window.___onAPILoaded,f)c.AMap=o.failed,I(f);else for(c.AMap=o.loaded,n(u).then(function(){M(window.AMap)}).catch(I);d.length;)d.splice(0,1)[0]()},p=document.createElement("script"),p.type="text/javascript",p.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+r.AMap.version+"&key="+m+"&plugin="+r.AMap.plugins.join(","),p.onerror=function(f){c.AMap=o.failed,I(f)},v.appendChild(p)):I("请填写key")}else if(c.AMap==o.loaded)if(u.key&&u.key!==r.key)I("多个不一致的 key");else if(u.version&&u.version!==r.AMap.version)I("不允许多个版本 JSAPI 混用");else{if(m=[],u.plugins)for(v=0;v<u.plugins.length;v+=1)r.AMap.plugins.indexOf(u.plugins[v])==-1&&m.push(u.plugins[v]);m.length?window.AMap.plugin(m,function(){n(u).then(function(){M(window.AMap)}).catch(I)}):n(u).then(function(){M(window.AMap)}).catch(I)}else if(u.key&&u.key!==r.key)I("多个不一致的 key");else if(u.version&&u.version!==r.AMap.version)I("不允许多个版本 JSAPI 混用");else{var y=[];if(u.plugins)for(v=0;v<u.plugins.length;v+=1)r.AMap.plugins.indexOf(u.plugins[v])==-1&&y.push(u.plugins[v]);g(function(){y.length?window.AMap.plugin(y,function(){n(u).then(function(){M(window.AMap)}).catch(I)}):n(u).then(function(){M(window.AMap)}).catch(I)})}})},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:[]}}}})})(Aa);var La=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 et="__googleMapsScriptId";var Y;(function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"})(Y||(Y={}));class U{constructor({apiKey:e,authReferrerPolicy:n,channel:i,client:a,id:o=et,language:r,libraries:c=[],mapIds:l,nonce:d,region:g,retries:u=3,url:M="https://maps.googleapis.com/maps/api/js",version:I}){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||et,this.language=r,this.libraries=c,this.mapIds=l,this.nonce=d,this.region=g,this.retries=u,this.url=M,this.version=I,U.instance){if(!La(this.options,U.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(U.instance.options)}`);return U.instance}U.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?Y.FAILURE:this.done?Y.SUCCESS:this.loading?Y.LOADING:Y.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+=`&region=${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())}}}const Sa=["AMap.Geolocation","AMap.Geocoder","AMap.PlaceSearch","AMap.Driving","AMap.Walking"],Na=["marker","places","geometry"];var ee=(t=>(t.LOADING="LOADING",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t))(ee||{});const wa=t=>{const{onChange:e}=t;let n,i;const a=new Promise((c,l)=>{n=c,i=l}),o=s.shallowRef("LOADING"),r=s.computed(()=>{const{onChange:c,loading:l,fallback:d,apiKey:g,apiSecret:u,apiServiceHost:M,version:I,...m}=t;return{...m,key:g,version:I!=null?I:"2.0.5.16"}});return J(()=>r.value,c=>{const l=d=>{o.value=d,d==="SUCCESS"&&n(),d==="FAILURE"&&i(),e==null||e(o.value)};l("LOADING"),window._AMapSecurityConfig=t.apiServiceHost?{serviceHost:t.apiServiceHost}:{securityJsCode:t.apiSecret},Ce.load(c).then(()=>l("SUCCESS"),()=>l("FAILURE"))}),{statusRef:o,readyPromise:a}},Da=t=>{const{onChange:e}=t;let n,i;const a=new Promise((c,l)=>{n=c,i=l}),o=s.shallowRef("LOADING"),r=s.computed(()=>{const{onChange:c,fallback:l,loading:d,...g}=t;return g});return J(()=>r.value,c=>{const l=new U(c),d=g=>{o.value=g,g==="SUCCESS"&&n(),g==="FAILURE"&&i(),e==null||e(o.value)};d("LOADING"),l.load().then(()=>d("SUCCESS"),()=>d("FAILURE"))}),{statusRef:o,readyPromise:a}},Ca=t=>{const{gmapKey:e,amapKey:n,amapSecret:i,amapServiceHost:a,supplier:o,language:r,onChange:c}=t;return o==="gmap"?Da({apiKey:e,language:r,version:"beta",libraries:Na,onChange:c}):wa({apiKey:n,apiSecret:i,apiServiceHost:a,plugins:Sa,onChange:c})};var xa="_1d8ur7t0";const Pa=h(function(e,{slots:n,emit:i}){const{onDragStart:a,onDragEnd:o,mapRef:r,vectorMapForeign:c="style_zh_cn",...l}=e,d=s.computed(()=>({dragEnable:!!e.dragEnable,zoomEnable:!!e.zoomEnable,jogEnable:!!e.jogEnable,pitchEnable:!!e.pitchEnable,rotateEnable:!!e.rotateEnable,animateEnable:!!e.animateEnable,keyboardEnable:!!e.keyboardEnable})),g=s.shallowRef(),u=s.shallowRef();return na(u),s.watchPostEffect(()=>{if(u.value||!g.value)return;const M=new AMap.Map(g.value,{...l,vectorMapForeign:c,mapStyle:"amap://styles/95498a904992a4c0b866a3e4d7729682"});u.value=M,r==null||r(M)}),ie(()=>d.value,M=>{var I;(I=u.value)==null||I.setStatus(M)}),Te(u,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}]),q(u,e,i,["onDragStart","onDragEnd"]),()=>{var M;return s.h("div",{ref:g,class:xa},(M=n.default)==null?void 0:M.call(n))}});let ge="user";const ba=()=>ge,Ft=()=>({executeMapApi:e=>{ge="api";try{e(),setTimeout(()=>{ge="user"},100)}catch(n){throw ge="user",n}}});var Ra="_7anfuo0";const Ta=h(function(e,{slots:n,emit:i}){const a=e.mapRef,o=s.computed(()=>{const{mapRef:u,onDragStart:M,onDragEnd:I,...m}=e;return m}),r=o.value,c=s.shallowRef(),l=s.shallowRef(),{executeMapApi:d}=Ft(),g=u=>i(u,{target:l.value});return ia(l),s.watchPostEffect(()=>{if(l.value||!c.value)return;let u;d(()=>{u=new google.maps.Map(c.value,{...r})}),l.value=u,a==null||a(u)}),ie(()=>o.value,u=>{d(()=>{var M;return(M=l.value)==null?void 0:M.setOptions({...u})})}),Q(l,e,g,["onDragStart","onDragEnd"]),()=>{var u;return s.h("div",{ref:c,class:Ra},(u=n.default)==null?void 0:u.call(n))}}),Ea=te(function(e,{slots:n}){const{statusRef:i,readyPromise:a}=Ca(e),o=new Proxy(e,{get(r,c,l){return c==="status"?i.value:c==="readyPromise"?a:Reflect.get(r,c,l)}});return ta(o),()=>{var r;return s.h("div",[(r=n.default)==null?void 0:r.call(n)])}}).props(["amapKey","amapSecret","amapServiceHost","gmapId","gmapKey","supplier","language"]),ae=te(function(e,{slots:n,emit:i}){S(e,"HeycarMap");const a=A(),o=({target:c})=>{const{lng:l,lat:d}=c.getCenter();i("dragEnd",[l(),d()])},r=({target:c})=>{const{lng:l,lat:d}=c.getCenter();i("dragEnd",[l,d])};return()=>{var v,p,y;const{supplier:c,gmapId:l,language:d="zh",status:g}=a,{mapRef:u,center:M,zoom:I}=e;if(g===ee.LOADING)return(v=n.loading)==null?void 0:v.call(n);if(g===ee.FAILURE)return(p=n.fallback)==null?void 0:p.call(n);const m=(y=n.default)==null?void 0:y.call(n);switch(c){case"gmap":return s.h(Ta,{attrs:{mapRef:u,mapId:l,center:M?x(M):void 0,zoom:I},on:{dragEnd:o}},[m]);default:return s.h(Pa,{attrs:{mapRef:u,vectorMapForeign:ma(d),center:M,zoom:I},on:{dragEnd:r}},[m])}}}).props(["center","fallback","loading","mapRef","zoom"]),_=h(function(e){const n=s.shallowRef(),i=je();return s.onMounted(()=>{n.value=new AMap.Polyline({...e})}),s.onUnmounted(()=>{var a;(a=n.value)==null||a.setMap(null)}),s.watchPostEffect(()=>{var o;const a=i==null?void 0:i.value;a&&((o=n.value)==null||o.setMap(a))}),Te(n,e,[{name:"path",defaultValue:[[0,0]]},{name:"extData",defaultValue:void 0},{name:"draggable",defaultValue:!1}]),ie(()=>{const{path:a,extData:o,draggable:r,...c}=e;return c},a=>{var o;(o=n.value)==null||o.setOptions({...a})}),()=>null}),Me=h(function(e){const n=s.shallowRef(),i=Ae();return s.onMounted(()=>{n.value=new google.maps.Polyline({...e})}),s.onUnmounted(()=>{var a;(a=n.value)==null||a.setMap(null)}),s.watchPostEffect(()=>{var o;const a=i==null?void 0:i.value;a&&((o=n.value)==null||o.setMap(a))}),ie(()=>({...e}),a=>{var o;(o=n.value)==null||o.setOptions({...a})}),()=>null}),za=h(function(e){return S(e,"ADrivingLine"),()=>{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",d=e.done?"#7693AF":"#4175F1",g=e.done?"#7693AF":"#6C95F5";return s.h("div",[s.h(_,{attrs:{path:e.path,strokeWeight:i+2*a+2*r,strokeOpacity:1,strokeColor:d,lineJoin:"round",lineCap:"round"}}),s.h(_,{attrs:{path:e.path,strokeWeight:i+2*a,strokeOpacity:1,strokeColor:g,lineJoin:"round",lineCap:"round",strokeStyle:"dashed",strokeDasharray:[c,c*.5]}}),s.h(_,{attrs:{path:e.path,strokeWeight:i,strokeOpacity:1,strokeColor:l,lineJoin:"round",lineCap:"round"}}),s.h(_,{attrs:{showDir:!0,path:e.path,strokeWeight:i+2*o,strokeOpacity:1,strokeColor:"transparent",lineJoin:"round",lineCap:"round"}})])}}),Za=h(function(e){S(e,"ADrivingLine");const n=s.computed(()=>e.path.map(x));return()=>{const i=window.innerWidth*.01,a=10*i,o=2.5*i,r=.35*i,c=.75*i,l=1*i,d=e.done?"#96B2CA":"#487BF4",g=e.done?"#7693AF":"#4175F1",u=e.done?"#7693AF":"#6C95F5";return s.h("div",[s.h(Me,{attrs:{path:n.value,strokeWeight:o+2*r+2*l,strokeOpacity:1,strokeColor:g}}),s.h(Me,{attrs:{path:n.value,icons:[{icon:{path:"M 0,-0.5 0,0.5",strokeWeight:o+2*r,strokeColor:u,fillColor:u,scale:1},repeat:`${o}px`,offset:`${o/2}px`}]}}),s.h(Me,{attrs:{path:n.value,strokeWeight:o,strokeOpacity:1,strokeColor:d,icons:[{icon:{path:google.maps.SymbolPath.FORWARD_OPEN_ARROW,strokeColor:"white",strokeWeight:c,scale:3},repeat:`${a}px`}]}})])}}),oe=h(function(e){const n=A();return()=>e.path.length?z(n.supplier==="gmap"?Za:za,{attrs:e}):null}),Xt=t=>{const e=s.reactive({path:[],distance:0,duration:0}),n=new AMap.Driving({});return J(()=>({...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 d=r.routes[0];for(const g of d.steps){const M=g.path.map(({lng:I,lat:m})=>[I,m]);c=c.concat(M)}e.path=c,e.distance=d.distance,e.duration=d.time;return}case"no_data":e.path=[],e.distance=0,e.duration=0;return;default:throw r}})}),e},$t=t=>{const e=s.reactive({path:[],distance:0,duration:0}),n=new google.maps.DirectionsService;return J(()=>({...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.DRIVING},(o,r)=>{var c,l,d,g;switch(r){case google.maps.DirectionsStatus.OK:{let u=[],M=0,I=0;const m=o.routes[0],v=m.overview_path.map(p=>[p.lng(),p.lat()]);u=u.concat(v);for(const p of m.legs)M+=(l=(c=p.distance)==null?void 0:c.value)!=null?l:0,I+=(g=(d=p.duration)==null?void 0:d.value)!=null?g:0;e.path=u,e.distance=M,e.duration=I;return}case google.maps.DirectionsStatus.ZERO_RESULTS:case google.maps.DirectionsStatus.NOT_FOUND:e.path=[],e.distance=0,e.duration=0;return;default:throw new Error(r)}})}),e},Oa=t=>{const{supplier:e}=A();return e==="gmap"?$t(t):Xt(t)},ka=(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},_t=t=>s.computed(()=>{const{map:e,path:n}=t,[i,a]=n;if(!(!i||!a||!e))return ka(i,a,e)}),Kt=t=>s.computed(()=>{const{path:e}=t,[n,i]=e;if(!(!n||!i))return google.maps.geometry.spherical.computeHeading(x(n),x(i))}),Ga=t=>{const{supplier:e}=A();return e==="gmap"?Kt(t):_t(t)},Wa=h(function(e,{slots:n}){S(e,"ADrivingRoute");const i=je(),{path:a,distance:o,duration:r}=s.toRefs(Xt(e)),c=_t(s.reactive({path:a,map:i}));return()=>{var l;return s.h("div",[(l=n.render)==null?void 0:l.call(n,s.reactive({path:a,angle:c,distance:o,duration:r}))])}}),Ua=h(function(e,{slots:n}){S(e,"GDrivingRoute");const i=Ae(),{path:a,distance:o,duration:r}=s.toRefs($t(e)),c=Kt(s.reactive({path:a,map:i}));return()=>{var l;return s.h("div",[(l=n.render)==null?void 0:l.call(n,s.reactive({path:a,angle:c,distance:o,duration:r}))])}}),re=h(function(e,{slots:n}){const{supplier:i}=A();return()=>z(i==="gmap"?Ua:Wa,{attrs:e,scopedSlots:n})}),Ba=20,Ya=t=>{const{mapRef:e,autoFitTimeout:n}=t,i=new Set;let a;const o=()=>{var m;const l=e.value;if(!l)return;const d=window.innerWidth/100,[g,u,M,I]=(m=t.padding)!=null?m:[0,0,0,0];console.log([...i]),l.setFitView([...i],!1,[g*d,M*d,I*d,u*d])},r={add:l=>{i.add(l)},remove:l=>{i.delete(l)},setFitView:o};return q(e,{},()=>{n&&(a&&clearTimeout(a),a=setTimeout(()=>{a=void 0,o()},n))},["onDragEnd"]),{registerFitVeiw:r,setFitView:o}};class Va extends Set{getBound(){const e=new google.maps.LatLngBounds;for(const n of this.values()){const i=n instanceof google.maps.Marker?n.getPosition():n.position;i&&e.extend(i)}return e}}const Ha=t=>{const{mapRef:e,autoFitTimeout:n}=t,{executeMapApi:i}=Ft(),a=new Va;let o;const r=()=>{var p;const g=e.value;if(!g)return;const u=window.innerWidth/100,[M,I,m,v]=(p=t.padding)!=null?p:[0,0,0,0];i(()=>g.fitBounds(a.getBound(),{top:M*u,right:I*u,bottom:m*u,left:v*u}))},c={add:g=>{a.add(g)},remove:g=>{a.delete(g)},setFitView:r},l=g=>{const u=ba();console.log("handleMoveEndOrZomEnd name, eventSource = ",g,u),!(!n||u!=="user")&&(o&&clearTimeout(o),o=setTimeout(()=>{o=void 0,r()},n))},d=Qi(l,Ba);return Q(e,{},l,["onDragEnd"]),Q(e,{},d,["onZoom_changed"]),{registerFitVeiw:c,setFitView:r}},se=t=>{const{supplier:e}=A();return e==="gmap"?Ha(t):Ya(t)};h(function(e,{slots:n}){const i=Pt(),a=se({...e,mapRef:i});return()=>{var o;return s.h("div",[(o=n.render)==null?void 0:o.call(n,a)])}});const Qa=h(function(e,{slots:n}){const{registerOverlay:i}=e,{setFitView:a}=i;return W(a),()=>{var o;return s.h("div",[(o=n.default)==null?void 0:o.call(n)])}}),qt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3Mi4zMzklIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJwcmVmaXhfX2EiPjxzdG9wIHN0b3AtY29sb3I9IiNGRjg0NDciIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkY4QjRBIiBvZmZzZXQ9IjUwLjU5NiUiLz48c3RvcCBzdG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1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";function Ja(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tt(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 nt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tt(Object(n),!0).forEach(function(i){Ja(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var Fa=(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},F=t=>e=>{var n=t.defaultClassName,i=nt(nt({},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[d,g]of t.compoundVariants)Fa(d,i,t.defaultVariants)&&(n+=" "+g);return n},V=F({defaultClassName:"",variantClassNames:{type:{start:"_4a4ovk6",end:"_4a4ovk7"}},defaultVariants:{},compoundVariants:[]}),tn="_4a4ovk1",nn="_4a4ovk4",an="_4a4ovk5",on="_4a4ovk3",me="_4a4ovk0",rn="_4a4ovk2";const Xa=h(function(e){S(e,"AStartEndPoint");const n=s.computed(()=>{var o;const i=e.type==="start"?en:qt,a=e.description?Le(e.description).map(r=>r.type==="normal"?r.value:`<span class="${an}">${r.value}</span>`).join(""):"";return!e.description&&!e.title?`<img src="${i}" class="${V({type:e.type})}">`:e.description?`
26
+ <div class="${me}">
27
+ <div class="${tn}">
28
+ <div class="${on}">${(o=e.title)!=null?o:""}</div>
29
+ <div class="${nn}">${a}</div>
30
30
  </div>
31
- <img src="${i}" class="${Y({type:e.type})}">
31
+ <img src="${i}" class="${V({type:e.type})}">
32
32
  </div>
33
33
  `:`
34
- <div class="${Ie}">
35
- <div class="${on}">${e.title}</div>
36
- <img src="${i}" class="${Y({type:e.type})}">
34
+ <div class="${me}">
35
+ <div class="${rn}">${e.title}</div>
36
+ <img src="${i}" class="${V({type:e.type})}">
37
37
  </div>
38
- `});return()=>s.h(O,{attrs:{registerOverlay:e.registerOverlay,position:e.position,content:n.value,anchor:"bottom-center"}})}),$a=y(function(e){L(e,"GStartEndPoint");const n=s.computed(()=>{var o;const i=e.type==="start"?qt:Kt,a=e.description?Ae(e.description).map(r=>r.type==="normal"?r.value:`<span class="${nn}">${r.value}</span>`).join(""):"";return!e.description&&!e.title?P("img",{class:Y({type:e.type}),src:i}):e.description?P("div",{class:Ie},`
39
- <div class="${en}">
40
- <div class="${an}">${(o=e.title)!=null?o:""}</div>
41
- <div class="${tn}">${a}</div>
38
+ `});return()=>s.h(k,{attrs:{registerOverlay:e.registerOverlay,position:e.position,content:n.value,anchor:"bottom-center"}})}),$a=h(function(e){S(e,"GStartEndPoint");const n=s.computed(()=>{var o;const i=e.type==="start"?en:qt,a=e.description?Le(e.description).map(r=>r.type==="normal"?r.value:`<span class="${an}">${r.value}</span>`).join(""):"";return!e.description&&!e.title?b("img",{class:V({type:e.type}),src:i}):e.description?b("div",{class:me},`
39
+ <div class="${tn}">
40
+ <div class="${on}">${(o=e.title)!=null?o:""}</div>
41
+ <div class="${nn}">${a}</div>
42
42
  </div>
43
- <img src="${i}" class="${Y({type:e.type})}">
44
- `):P("div",{class:Ie},`
45
- <div class="${on}">${e.title}</div>
46
- <img src="${i}" class="${Y({type:e.type})}">
47
- `)});return()=>s.h(k,{attrs:{registerOverlay:e.registerOverlay,position:C(e.position),content:n.value}})}),b=y(function(e){const n=A();return()=>E(n.supplier==="gmap"?$a:Xa,{attrs:e})}),_a=te(t=>{const{registerOverlay:e,mapRef:n,renderDescription:i}=t;return()=>{const{from:a,to:o}=t,r=D(a),c=D(o);return s.h(ae,{attrs:{mapRef:n,center:r,zoom:13}},[s.h(b,{attrs:{type:"start",registerOverlay:e,position:r,title:a.name}}),s.h(re,{attrs:{to:c,from:r,render:({path:l,distance:d,duration:g})=>[s.h(oe,{attrs:{path:l}}),s.h(b,{attrs:{type:"end",registerOverlay:e,position:c,title:o.name,description:i({distance:d,duration:g})}})]}}),s.h(Qa,{attrs:{registerOverlay:e}})])}}).props(["fallback","from","loading","mapRef","registerOverlay","renderDescription","to"]),Re=t=>{var M,I;const{onChange:e,onLoad:n,onLoadDefault:i,onError:a,geoDefaultPosition:o}=t!=null?t:{};let r=!1;const c=s.ref(!1),l=s.ref(!1),d=s.ref(),g=s.ref({accuracy:0,altitude:0,altitudeAccuracy:0,heading:0,latitude:(M=o==null?void 0:o[1])!=null?M:0,longitude:(I=o==null?void 0:o[0])!=null?I:0,speed:0}),u=s.ref([g.value.longitude,g.value.latitude]);return s.watch(()=>!0,(m,v,p)=>{c.value=!0;const h=navigator.geolocation.watchPosition(f=>{const S=f.coords,w=[f.coords.longitude,f.coords.latitude];g.value=S,u.value=w,c.value&&(c.value=!1,l.value=!0,n==null||n({position:w,coordinate:S})),e==null||e({position:w,coordinate:S})},f=>{c.value=!1,d.value=f;const S=t==null?void 0:t.geoDefaultPosition;S&&!r&&(r=!0,i==null||i({position:S})),a==null||a(f),console.log("errorRef = ",d)},{timeout:3e3,maximumAge:0,enableHighAccuracy:!1});p(()=>navigator.geolocation.clearWatch(h))},{immediate:!0}),{geoError:d,geoPosition:u,geoCoordinate:g,geoLoading:c,geoReady:l}},Ka=()=>{const t=s.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}}},qa=()=>{const t=s.shallowRef();return{mapRef:t,panTo:i=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.panTo(C(i))},setMap:i=>{t.value=i}}},ce=()=>{const{supplier:t}=A();return t==="gmap"?qa():Ka()},eo=t=>{const{mapRef:e,onChange:n}=t,i=s.ref([0,0]),a=s.ref(!1),o=()=>{},r=(c,{target:l})=>{var u;console.log("on DragEnd ------"),a.value=!1;const{lng:d,lat:g}=l.getCenter();i.value=[d,g],(u=Et(n))==null||u([d,g])};return q(e,{},o,["onDragStart"]),q(e,{},r,["onDragEnd"]),{centerRef:i,isDragging:a}},to=t=>{const{mapRef:e,onChange:n}=t,i=s.ref([0,0]),a=s.ref(!1),o=()=>{},r=async()=>{var g,u;a.value=!1;const c=(g=e.value)==null?void 0:g.getCenter(),l=c==null?void 0:c.lng(),d=c==null?void 0:c.lat();i.value=[l,d],(u=Et(n))==null||u([l,d])};return H(e,{},o,["onDragStart"]),H(e,{},r,["onDragEnd"]),{centerRef:i,isDragging:a}},rn=t=>{const{supplier:e}=A();return e==="gmap"?to(t):eo(t)},F=()=>{const t=s.ref(0);return{idx:t,update:()=>{t.value+=1}}},sn=t=>{const{onChange:e,onChangeCity:n}=t,i=[...t.pointRef.value],a=s.ref(i),{readyPromise:o}=A(),r=s.reactive({lng:a.value[0],lat:a.value[1],name:""}),{idx:c,update:l}=F(),d=M=>{const I=new AMap.Geocoder({lang:K}),{lng:m,lat:v}=M;I.getAddress(new AMap.LngLat(m,v),(p,h)=>{if(p!=="complete")return;const{addressComponent:f}=h.regeocode,S=f.city?f.city:f.province,w=f.province;n==null||n({cityName:S,cityParentName:w})})},g=M=>{a.value=M,l()},u=M=>{r.lng=M.lng,r.lat=M.lat,r.name=M.name};return s.watch(()=>c.value,async()=>{await o;const M=new AMap.Geocoder({lang:K}),[I,m]=a.value;M.getAddress(new AMap.LngLat(I,m),(v,p)=>{switch(v){case"complete":{const{formattedAddress:h,addressComponent:f}=p.regeocode,S=f.city?f.city:f.province,w=f.province;r.name=h,r.lng=I,r.lat=m,e==null||e({lng:I,lat:m,name:h}),n==null||n({cityName:S,cityParentName:w});return}case"no_data":r.name="",e==null||e({lng:I,lat:m,name:""});return;case"error":throw p}})}),{place:r,updatePlace:g,setPlace:u,updateCity:d}},cn=t=>{const{pointRef:e,onChange:n,onChangeCity:i}=t,{readyPromise:a}=A(),{idx:o,update:r}=F(),c=s.reactive({lng:e.value[0],lat:e.value[1],name:""}),l=g=>{c.lng=g.lng,c.lat=g.lat,c.name=g.name},d=async g=>{const u=new google.maps.Geocoder,{lng:M,lat:I}=g,{results:m}=await u.geocode({language:K,location:{lng:M,lat:I}}),v=Ke(m[0]),p=m.slice(-2)[0].address_components[0].long_name;i==null||i({cityName:v,cityParentName:p})};return s.watch(()=>o.value,async()=>{await a;const g=new google.maps.Geocoder,[u,M]=e.value,{results:I}=await g.geocode({language:K,location:{lng:u,lat:M}}),m=I[0].formatted_address,v=Ke(I[0]),p=I.slice(-2)[0].address_components[0].long_name;c.lng=u,c.lat=M,c.name=m,n==null||n({lng:u,lat:M,name:m}),i==null||i({cityName:v,cityParentName:p})}),{place:c,updatePlace:r,setPlace:l,updateCity:d}},no=t=>{const{supplier:e}=A();return e==="gmap"?cn(t):sn(t)},io=(t,e)=>{let n=1/0,i=t;for(const a of e){const o=AMap.GeometryUtil.distance(D(t),D(a));o>=n||(i=a,n=o)}return{shortestPlace:i,shortestDistance:n}},ao=(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}},oo=t=>{const{pointRef:e,getRecomendPlace:n,getLimit:i,context:a,onChange:o,onChangePlace:r,onChangeCity:c}=t,l=s.ref(!0),d=s.ref([]),{idx:g,update:u}=F(),{readyPromise:M}=A(),{place:I,updatePlace:m,setPlace:v,updateCity:p}=sn({pointRef:e,onChange:r,onChangeCity:c}),h=s.reactive({...I});return s.watch(()=>g.value,async()=>{await M;const f=await n({...I},a);if(f===void 0){l.value=!1,d.value=[],Object.assign(h,{...I}),o==null||o({...I});return}const{shortestPlace:S,shortestDistance:w}=io(I,f),x=i(a),N=w>x?I:S;l.value=!0,d.value=f,Object.assign(h,{...N}),o==null||o({...N})}),{recomendPlace:h,placeCandidates:d,availableRef:l,updateRecomandPlace:u,updatePlace:m,setPlace:v,updateCity:p}},ro=t=>{const{pointRef:e,getRecomendPlace:n,getLimit:i,context:a,onChange:o,onChangePlace:r,onChangeCity:c}=t,l=s.ref(!0),d=s.ref([]),{idx:g,update:u}=F(),{readyPromise:M}=A(),{place:I,updatePlace:m,setPlace:v,updateCity:p}=cn({pointRef:e,onChange:r,onChangeCity:c}),h=s.reactive({...I});return s.watch(()=>g.value,async()=>{await M;const f=await n({...I},a);if(f===void 0){l.value=!1,d.value=[],Object.assign(h,{...I}),o==null||o({...I});return}const{shortestPlace:S,shortestDistance:w}=ao(I,f),x=i(a),N=w>x?I:S;l.value=!0,d.value=f,Object.assign(h,{...N}),o==null||o({...N})}),{recomendPlace:h,placeCandidates:d,availableRef:l,updateRecomandPlace:u,updatePlace:m,setPlace:v,updateCity:p}},un=t=>{const{supplier:e}=A();return e==="gmap"?ro(t):oo(t)},ln="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjEiIGhlaWdodD0iNjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTcuMSUiIHk9Ii03LjElIiB3aWR0aD0iMTE0LjMlIiBoZWlnaHQ9IjExNC4zJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249Ii41IiBpbj0ic2hhZG93T2Zmc2V0T3V0ZXIxIiByZXN1bHQ9InNoYWRvd0JsdXJPdXRlcjEiLz48ZmVDb21wb3NpdGUgaW49InNoYWRvd0JsdXJPdXRlcjEiIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNzc0NTMwMTYgMCIgaW49InNoYWRvd0JsdXJPdXRlcjEiLz48L2ZpbHRlcj48Y2lyY2xlIGlkPSJwcmVmaXhfX2IiIGN4PSIzMCIgY3k9IjMwIiByPSIxMC41Ii8+PC9kZWZzPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC40MDUgLjI2NCkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGNpcmNsZSBzdHJva2Utb3BhY2l0eT0iLjEiIHN0cm9rZT0iIzAwM0RGRiIgZmlsbC1vcGFjaXR5PSIuMTUiIGZpbGw9IiM0ODczRkUiIGN4PSIzMCIgY3k9IjMwIiByPSIyOS41Ii8+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjcHJlZml4X19hKSIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjxjaXJjbGUgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVqb2luPSJzcXVhcmUiIGZpbGw9IiM0ODcxRjEiIGN4PSIzMCIgY3k9IjMwIiByPSI5LjMiLz48L2c+PC9zdmc+";var dn=J({defaultClassName:"_1l6offo0",variantClassNames:{size:{small:"_1l6offo1",large:"_1l6offo2"}},defaultVariants:{},compoundVariants:[]});const so=y(function(e){L(e,"APassengerCircle");const n=s.computed(()=>{const{size:i="large"}=e;return`
48
- <img src="${i==="large"?ln:Z}" class="${dn({size:i})}">
49
- `});return()=>s.h(O,{attrs:{position:e.position,content:n.value,anchor:"bottom-center",registerOverlay:e.registerOverlay}})}),co=y(function(e){L(e,"GPassengerCircle");const n=s.computed(()=>{const{size:i="large"}=e,a=i==="large"?ln:Z;return P("img",{class:dn({size:i}),src:a})});return()=>s.h(k,{attrs:{position:C(e.position),content:n.value,registerOverlay:e.registerOverlay}})}),ue=y(function(e){const n=A();return()=>E(n.supplier==="gmap"?co:so,{attrs:e})});var De=(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))(De||{});var nt=J({defaultClassName:"",variantClassNames:{textAlign:{left:"fhyw83",right:"fhyw84"}},defaultVariants:{},compoundVariants:[]}),it=J({defaultClassName:"fhyw85",variantClassNames:{textAlign:{left:"fhyw86",right:"fhyw87"}},defaultVariants:{},compoundVariants:[]}),gn="fhyw8b",Mn=J({defaultClassName:"fhyw80",variantClassNames:{textAlign:{left:"fhyw81",right:"fhyw82"}},defaultVariants:{},compoundVariants:[]}),me=J({defaultClassName:"fhyw88",variantClassNames:{hideIcon:{true:"fhyw89",false:"fhyw8a"}},defaultVariants:{},compoundVariants:[]});const uo=y(function(e,{emit:n}){L(e,"APlaceCircle");const i=s.computed(()=>{var c;return(c=e.textAlign)!=null?c:"right"}),a=s.computed(()=>{const{hideIcon:c=!1}=e;return`
50
- <div class="${Mn({textAlign:i.value})}">
51
- <img class="${me({hideIcon:c})} ${nt({textAlign:i.value})}" src="${Z}">
52
- <div class="${gn}">${e.label}</div>
43
+ <img src="${i}" class="${V({type:e.type})}">
44
+ `):b("div",{class:me},`
45
+ <div class="${rn}">${e.title}</div>
46
+ <img src="${i}" class="${V({type:e.type})}">
47
+ `)});return()=>s.h(G,{attrs:{registerOverlay:e.registerOverlay,position:x(e.position),content:n.value}})}),R=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?$a:Xa,{attrs:e})}),_a=te(t=>{const{registerOverlay:e,mapRef:n,renderDescription:i}=t;return()=>{const{from:a,to:o}=t,r=D(a),c=D(o);return s.h(ae,{attrs:{mapRef:n,center:r,zoom:13}},[s.h(R,{attrs:{type:"start",registerOverlay:e,position:r,title:a.name}}),s.h(re,{attrs:{to:c,from:r,render:({path:l,distance:d,duration:g})=>[s.h(oe,{attrs:{path:l}}),s.h(R,{attrs:{type:"end",registerOverlay:e,position:c,title:o.name,description:i({distance:d,duration:g})}})]}}),s.h(Qa,{attrs:{registerOverlay:e}})])}}).props(["fallback","from","loading","mapRef","registerOverlay","renderDescription","to"]),ce=t=>{var M,I;const{onChange:e,onLoad:n,onLoadDefault:i,onError:a,geoDefaultPosition:o}=t!=null?t:{};let r=!1;const c=s.ref(!1),l=s.ref(!1),d=s.ref(),g=s.ref({accuracy:0,altitude:0,altitudeAccuracy:0,heading:0,latitude:(M=o==null?void 0:o[1])!=null?M:0,longitude:(I=o==null?void 0:o[0])!=null?I:0,speed:0}),u=s.ref([g.value.longitude,g.value.latitude]);return s.watch(()=>!0,(m,v,p)=>{c.value=!0;const y=navigator.geolocation.watchPosition(f=>{const N=f.coords,w=[f.coords.longitude,f.coords.latitude];g.value=N,u.value=w,c.value&&(c.value=!1,l.value=!0,n==null||n({position:w,coordinate:N})),e==null||e({position:w,coordinate:N})},f=>{c.value=!1,d.value=f;const N=t==null?void 0:t.geoDefaultPosition;N&&!r&&(r=!0,i==null||i({position:N})),a==null||a(f),console.log("errorRef = ",d)},{timeout:3e3,maximumAge:0,enableHighAccuracy:!1});p(()=>navigator.geolocation.clearWatch(y))},{immediate:!0}),{geoError:d,geoPosition:u,geoCoordinate:g,geoLoading:c,geoReady:l}},Ka=()=>{const t=s.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}}},qa=()=>{const t=s.shallowRef();return{mapRef:t,panTo:i=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.panTo(x(i))},setMap:i=>{t.value=i}}},ue=()=>{const{supplier:t}=A();return t==="gmap"?qa():Ka()},eo=t=>{const{mapRef:e,onChange:n}=t,i=s.ref([0,0]),a=s.ref(!1),o=()=>{},r=(c,{target:l})=>{var u;console.log("on DragEnd ------"),a.value=!1;const{lng:d,lat:g}=l.getCenter();i.value=[d,g],(u=zt(n))==null||u([d,g])};return q(e,{},o,["onDragStart"]),q(e,{},r,["onDragEnd"]),{centerRef:i,isDragging:a}},to=t=>{const{mapRef:e,onChange:n}=t,i=s.ref([0,0]),a=s.ref(!1),o=()=>{},r=async()=>{var g,u;a.value=!1;const c=(g=e.value)==null?void 0:g.getCenter(),l=c==null?void 0:c.lng(),d=c==null?void 0:c.lat();i.value=[l,d],(u=zt(n))==null||u([l,d])};return Q(e,{},o,["onDragStart"]),Q(e,{},r,["onDragEnd"]),{centerRef:i,isDragging:a}},sn=t=>{const{supplier:e}=A();return e==="gmap"?to(t):eo(t)},X=()=>{const t=s.ref(0);return{idx:t,update:()=>{t.value+=1}}},cn=t=>{const{onChange:e,onChangeCity:n}=t,i=[...t.pointRef.value],a=s.ref(i),{readyPromise:o}=A(),r=s.reactive({lng:a.value[0],lat:a.value[1],name:""}),{idx:c,update:l}=X(),d=M=>{const I=new AMap.Geocoder({lang:K}),{lng:m,lat:v}=M;I.getAddress(new AMap.LngLat(m,v),(p,y)=>{if(p!=="complete")return;const{addressComponent:f}=y.regeocode,N=f.city?f.city:f.province,w=f.province;n==null||n({cityName:N,cityParentName:w})})},g=M=>{a.value=M,l()},u=M=>{r.lng=M.lng,r.lat=M.lat,r.name=M.name};return s.watch(()=>c.value,async()=>{await o;const M=new AMap.Geocoder({lang:K}),[I,m]=a.value;M.getAddress(new AMap.LngLat(I,m),(v,p)=>{switch(v){case"complete":{const{formattedAddress:y,addressComponent:f}=p.regeocode,N=f.city?f.city:f.province,w=f.province;r.name=y,r.lng=I,r.lat=m,e==null||e({lng:I,lat:m,name:y}),n==null||n({cityName:N,cityParentName:w});return}case"no_data":r.name="",e==null||e({lng:I,lat:m,name:""});return;case"error":throw p}})}),{place:r,updatePlace:g,setPlace:u,updateCity:d}},un=t=>{const{pointRef:e,onChange:n,onChangeCity:i}=t,{readyPromise:a}=A(),{idx:o,update:r}=X(),c=s.reactive({lng:e.value[0],lat:e.value[1],name:""}),l=g=>{c.lng=g.lng,c.lat=g.lat,c.name=g.name},d=async g=>{const u=new google.maps.Geocoder,{lng:M,lat:I}=g,{results:m}=await u.geocode({language:K,location:{lng:M,lat:I}}),v=qe(m[0]),p=m.slice(-2)[0].address_components[0].long_name;i==null||i({cityName:v,cityParentName:p})};return s.watch(()=>o.value,async()=>{await a;const g=new google.maps.Geocoder,[u,M]=e.value,{results:I}=await g.geocode({language:K,location:{lng:u,lat:M}}),m=I[0].formatted_address,v=qe(I[0]),p=I.slice(-2)[0].address_components[0].long_name;c.lng=u,c.lat=M,c.name=m,n==null||n({lng:u,lat:M,name:m}),i==null||i({cityName:v,cityParentName:p})}),{place:c,updatePlace:r,setPlace:l,updateCity:d}},no=t=>{const{supplier:e}=A();return e==="gmap"?un(t):cn(t)},io=(t,e)=>{let n=1/0,i=t;for(const a of e){const o=AMap.GeometryUtil.distance(D(t),D(a));o>=n||(i=a,n=o)}return{shortestPlace:i,shortestDistance:n}},ao=(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}},oo=t=>{const{pointRef:e,getRecomendPlace:n,getLimit:i,context:a,onChange:o,onChangePlace:r,onChangeCity:c}=t,l=s.ref(!0),d=s.ref([]),{idx:g,update:u}=X(),{readyPromise:M}=A(),{place:I,updatePlace:m,setPlace:v,updateCity:p}=cn({pointRef:e,onChange:r,onChangeCity:c}),y=s.reactive({...I});return s.watch(()=>g.value,async()=>{await M;const f=await n({...I},a);if(f===void 0){l.value=!1,d.value=[],Object.assign(y,{...I}),o==null||o({...I});return}const{shortestPlace:N,shortestDistance:w}=io(I,f),C=i(a),L=w>C?I:N;l.value=!0,d.value=f,Object.assign(y,{...L}),o==null||o({...L})}),{recomendPlace:y,placeCandidates:d,availableRef:l,updateRecomandPlace:u,updatePlace:m,setPlace:v,updateCity:p}},ro=t=>{const{pointRef:e,getRecomendPlace:n,getLimit:i,context:a,onChange:o,onChangePlace:r,onChangeCity:c}=t,l=s.ref(!0),d=s.ref([]),{idx:g,update:u}=X(),{readyPromise:M}=A(),{place:I,updatePlace:m,setPlace:v,updateCity:p}=un({pointRef:e,onChange:r,onChangeCity:c}),y=s.reactive({...I});return s.watch(()=>g.value,async()=>{await M;const f=await n({...I},a);if(f===void 0){l.value=!1,d.value=[],Object.assign(y,{...I}),o==null||o({...I});return}const{shortestPlace:N,shortestDistance:w}=ao(I,f),C=i(a),L=w>C?I:N;l.value=!0,d.value=f,Object.assign(y,{...L}),o==null||o({...L})}),{recomendPlace:y,placeCandidates:d,availableRef:l,updateRecomandPlace:u,updatePlace:m,setPlace:v,updateCity:p}},ln=t=>{const{supplier:e}=A();return e==="gmap"?ro(t):oo(t)},dn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjEiIGhlaWdodD0iNjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTcuMSUiIHk9Ii03LjElIiB3aWR0aD0iMTE0LjMlIiBoZWlnaHQ9IjExNC4zJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249Ii41IiBpbj0ic2hhZG93T2Zmc2V0T3V0ZXIxIiByZXN1bHQ9InNoYWRvd0JsdXJPdXRlcjEiLz48ZmVDb21wb3NpdGUgaW49InNoYWRvd0JsdXJPdXRlcjEiIGluMj0iU291cmNlQWxwaGEiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNzc0NTMwMTYgMCIgaW49InNoYWRvd0JsdXJPdXRlcjEiLz48L2ZpbHRlcj48Y2lyY2xlIGlkPSJwcmVmaXhfX2IiIGN4PSIzMCIgY3k9IjMwIiByPSIxMC41Ii8+PC9kZWZzPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC40MDUgLjI2NCkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGNpcmNsZSBzdHJva2Utb3BhY2l0eT0iLjEiIHN0cm9rZT0iIzAwM0RGRiIgZmlsbC1vcGFjaXR5PSIuMTUiIGZpbGw9IiM0ODczRkUiIGN4PSIzMCIgY3k9IjMwIiByPSIyOS41Ii8+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjcHJlZml4X19hKSIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjxjaXJjbGUgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVqb2luPSJzcXVhcmUiIGZpbGw9IiM0ODcxRjEiIGN4PSIzMCIgY3k9IjMwIiByPSI5LjMiLz48L2c+PC9zdmc+";var gn=F({defaultClassName:"_1l6offo0",variantClassNames:{size:{small:"_1l6offo1",large:"_1l6offo2"}},defaultVariants:{},compoundVariants:[]});const so=h(function(e){S(e,"APassengerCircle");const n=s.computed(()=>{const{size:i="large"}=e;return`
48
+ <img src="${i==="large"?dn:O}" class="${gn({size:i})}">
49
+ `});return()=>s.h(k,{attrs:{position:e.position,content:n.value,anchor:"bottom-center",registerOverlay:e.registerOverlay}})}),co=h(function(e){S(e,"GPassengerCircle");const n=s.computed(()=>{const{size:i="large"}=e,a=i==="large"?dn:O;return b("img",{class:gn({size:i}),src:a})});return()=>s.h(G,{attrs:{position:x(e.position),content:n.value,registerOverlay:e.registerOverlay}})}),le=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?co:so,{attrs:e})});var xe=(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))(xe||{});var it=F({defaultClassName:"",variantClassNames:{textAlign:{left:"fhyw83",right:"fhyw84"}},defaultVariants:{},compoundVariants:[]}),at=F({defaultClassName:"fhyw85",variantClassNames:{textAlign:{left:"fhyw86",right:"fhyw87"}},defaultVariants:{},compoundVariants:[]}),Mn="fhyw8b",In=F({defaultClassName:"fhyw80",variantClassNames:{textAlign:{left:"fhyw81",right:"fhyw82"}},defaultVariants:{},compoundVariants:[]}),fe=F({defaultClassName:"fhyw88",variantClassNames:{hideIcon:{true:"fhyw89",false:"fhyw8a"}},defaultVariants:{},compoundVariants:[]});const uo=h(function(e,{emit:n}){S(e,"APlaceCircle");const i=s.computed(()=>{var c;return(c=e.textAlign)!=null?c:"right"}),a=s.computed(()=>{const{hideIcon:c=!1}=e;return`
50
+ <div class="${In({textAlign:i.value})}">
51
+ <img class="${fe({hideIcon:c})} ${it({textAlign:i.value})}" src="${O}">
52
+ <div class="${Mn}">${e.label}</div>
53
53
  </div>
54
- `}),o=s.computed(()=>{const{hideIcon:c=!1}=e;return`<img class="${me({hideIcon:c})} ${nt({textAlign:i.value})}" src="${Z}">`}),r=c=>{console.log("on amap marker e = ",c),n("click",e.position)};return()=>s.h(O,{attrs:{position:e.position,content:e.label?a.value:o.value,anchor:i.value==="left"?De.middleRight:De.middleLeft},on:{click:r}})}),lo=y(function(e,{emit:n}){L(e,"GPlaceCircle");const i=s.computed(()=>{var c;return(c=e.textAlign)!=null?c:"right"}),a=s.computed(()=>{const{hideIcon:c=!1}=e;return P("div",{class:`${Mn({textAlign:i.value})} ${it({textAlign:i.value})}`},`
55
- <img class="${me({hideIcon:c})}" src="${Z}">
56
- <div class="${gn}">${e.label}</div>
57
- `)}),o=s.computed(()=>{const{hideIcon:c=!1}=e;return P("img",{class:`${me({hideIcon:c})} ${it({textAlign:i.value})}`,src:Z})}),r=c=>{console.log("on gmap advanced marker view e = ",c),n("click",e.position)};return()=>s.h(k,{attrs:{position:C(e.position),content:e.label?a.value:o.value},on:{click:r}})}),T=y(function(e,{emit:n}){const i=A();return()=>E(i.supplier==="gmap"?lo:uo,{attrs:e,on:{click:a=>n("click",a)}})}),In=y(function(e,{emit:n}){return L(e,"PickupPoints"),()=>s.h("div",[e.places.map(i=>s.h(T,{attrs:{position:D(i),label:i.name,textAlign:"left"},on:{click:()=>n("click",i)}}))])}),go=30,Mo=te((t,{emit:e})=>{var z,X;L(t,"BusinessRecomendPlaceMap");const{geoDefaultPosition:n,getRecomendPlace:i,mapContext:a}=t,{mapRef:o,setMap:r}=ce(),{readyPromise:c}=A(),l=s.reactive({lng:(z=n==null?void 0:n[0])!=null?z:0,lat:(X=n==null?void 0:n[1])!=null?X:0,name:""}),d=s.computed(()=>[l.lng,l.lat]),g={source:"geo"},u=j=>{g.source="api",f(j)},M=j=>{g.source="api",S(j),w(j),x()},I=j=>{g.source="api",l.lng=j.lng,l.lat=j.lat,l.name=j.name},{geoPosition:m,geoError:v,geoLoading:p}=Re({geoDefaultPosition:n,onLoad:async j=>{await c,g.source="geo",f(j.position),e("loadGeoLocation",j)},onLoadDefault:async j=>{await c,g.source="geo",f(j.position),e("loadDefaultGeoLocation",j)},onChange:j=>e("changeGeoLocation",j),onError:j=>e("geoError",j)});a.setCenterPlaceByUserSpecified=M,a.panToGeoPositionByRecomend=()=>v.value?!1:(u(m.value),!0);const{isDragging:h}=rn({mapRef:o,onChange:j=>{g.source="drag",f(j),e("changeByDrag",j)}}),{updatePlace:f,setPlace:S,updateCity:w,updateRecomandPlace:x,placeCandidates:N,availableRef:R}=un({pointRef:d,context:g,getRecomendPlace:i,getLimit:j=>{const le=j==null?void 0:j.source;switch(le){case"drag":case"api":return go;case"geo":case"default":return 1/0;default:throw new Error(`MyError: should not call getLimit on source: ${le}`)}},onChangePlace:j=>{g.source!=="recomend"&&x(),e("changePlace",j)},onChange:j=>{g.source="recomend",Object.assign(l,{...j}),e("changeRecomandPlace",j)},onChangeCity:j=>{e("changeCity",j)}});return s.watchEffect(()=>{a.onChangeCenterPlace({...l})}),s.watchEffect(()=>{a.onChangeRecomendPlaces([...N.value])}),()=>{const j=p.value?t.geoLoadingTitle:R.value?l.name:t.unavailableTitle,le=R.value?N.value.length>0?t.recomendDescription:t.noRecomendDescription:void 0;return s.h(ae,{attrs:{center:d.value,zoom:18,mapRef:r,log:t.log}},[s.h(ue,{attrs:{position:m.value}}),s.h(In,{attrs:{places:N.value,log:t.log},on:{click:I}}),s.h(Nt,{attrs:{title:j,description:le,type:h.value?"locator":"box",log:t.log},on:{click:()=>e("clickLocator")}})])}}).props(["log","geoLoadingTitle","unavailableTitle","recomendDescription","noRecomendDescription","fallback","geoDefaultPosition","getRecomendPlace","loading","mapContext"]),Io=[116.2317,39.5427],at=t=>t.lng!==void 0&&t.lat!==void 0,fe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0zNC4wODcgMTAuOTZjMCAyLjM2OS0uMDU0IDIuOTgtLjc4MiAzLjcwNC0uNzkzLjc5LTUuMjM2LjgzMy01LjIzNi44MzNsLTQuMTE2LjE5Mi05Ljg5Ni0uMTQ0cy03Ljc5LS4wMjYtOS4xMzEtLjAyNmMtMS4zNDIgMC0yLjQwNi0uODQ3LTIuNDA2LS44NDdDLjE0IDEyL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DIgMy4zMTQuMjMyIDUuMDQ4LjAwNi4wNTcuMDI2LjE1Mi4wNTYuMjc0LTEuNTEzLjI3OC0zIC41NC00LjkxMi41NC0xLjg0NyAwLTMuMjg5LS4yNS00Ljc1LS41MTF2LS4wMDhjLjAzLS4xMzEuMDU1LS4yMzMuMDYtLjI5LjIxOC0xLjc0NC4zOC0yLjE3My4yMzMtNS4wNTN6IiBmaWxsPSIjRjJGQUZGIi8+PHBhdGggZD0iTTEyLjA2NyAxOS43MTZsLTQuNjQ1LjY5MmMtLjQzMS0yLjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";var ve="_65j3sr1",mn="_4a4ovk5",fn="_4a4ovk0",vn="_4a4ovk2";const mo=y(function(e){L(e,"ATaxiCar");const n=s.computed(()=>{var o;const i=e.title?Ae(e.title).map(r=>r.type==="normal"?r.value:`<span class="${mn}">${r.value}</span>`).join(""):"",a=`transform:rotate(${(o=e.angle)!=null?o:0}deg)`;return e.title?`
58
- <div class="${fn}">
59
- <div class="${vn}">${i}</div>
60
- <img src="${fe}" class="${ve}" style="${a}">
54
+ `}),o=s.computed(()=>{const{hideIcon:c=!1}=e;return`<img class="${fe({hideIcon:c})} ${it({textAlign:i.value})}" src="${O}">`}),r=c=>{console.log("on amap marker e = ",c),n("click",e.position)};return()=>s.h(k,{attrs:{position:e.position,content:e.label?a.value:o.value,anchor:i.value==="left"?xe.middleRight:xe.middleLeft},on:{click:r}})}),lo=h(function(e,{emit:n}){S(e,"GPlaceCircle");const i=s.computed(()=>{var c;return(c=e.textAlign)!=null?c:"right"}),a=s.computed(()=>{const{hideIcon:c=!1}=e;return b("div",{class:`${In({textAlign:i.value})} ${at({textAlign:i.value})}`},`
55
+ <img class="${fe({hideIcon:c})}" src="${O}">
56
+ <div class="${Mn}">${e.label}</div>
57
+ `)}),o=s.computed(()=>{const{hideIcon:c=!1}=e;return b("img",{class:`${fe({hideIcon:c})} ${at({textAlign:i.value})}`,src:O})}),r=c=>{console.log("on gmap advanced marker view e = ",c),n("click",e.position)};return()=>s.h(G,{attrs:{position:x(e.position),content:e.label?a.value:o.value},on:{click:r}})}),E=h(function(e,{emit:n}){const i=A();return()=>z(i.supplier==="gmap"?lo:uo,{attrs:e,on:{click:a=>n("click",a)}})}),mn=h(function(e,{emit:n}){return S(e,"PickupPoints"),()=>s.h("div",[e.places.map(i=>s.h(E,{attrs:{position:D(i),label:i.name,textAlign:"left"},on:{click:()=>n("click",i)}}))])}),go=30,Mo=te((t,{emit:e})=>{var T,Z;S(t,"BusinessRecomendPlaceMap");const{geoDefaultPosition:n,getRecomendPlace:i,mapContext:a}=t,{mapRef:o,setMap:r}=ue(),{readyPromise:c}=A(),l=s.reactive({lng:(T=n==null?void 0:n[0])!=null?T:0,lat:(Z=n==null?void 0:n[1])!=null?Z:0,name:""}),d=s.computed(()=>[l.lng,l.lat]),g={source:"geo"},u=j=>{g.source="api",f(j)},M=j=>{g.source="api",N(j),w(j),C()},I=j=>{g.source="api",l.lng=j.lng,l.lat=j.lat,l.name=j.name},{geoPosition:m,geoError:v,geoLoading:p}=ce({geoDefaultPosition:n,onLoad:async j=>{await c,g.source="geo",f(j.position),e("loadGeoLocation",j)},onLoadDefault:async j=>{await c,g.source="geo",f(j.position),e("loadDefaultGeoLocation",j)},onChange:j=>e("changeGeoLocation",j),onError:j=>e("geoError",j)});a.setCenterPlaceByUserSpecified=M,a.panToGeoPositionByRecomend=()=>v.value?!1:(u(m.value),!0);const{isDragging:y}=sn({mapRef:o,onChange:j=>{g.source="drag",f(j),e("changeByDrag",j)}}),{updatePlace:f,setPlace:N,updateCity:w,updateRecomandPlace:C,placeCandidates:L,availableRef:P}=ln({pointRef:d,context:g,getRecomendPlace:i,getLimit:j=>{const de=j==null?void 0:j.source;switch(de){case"drag":case"api":return go;case"geo":case"default":return 1/0;default:throw new Error(`MyError: should not call getLimit on source: ${de}`)}},onChangePlace:j=>{g.source!=="recomend"&&C(),e("changePlace",j)},onChange:j=>{g.source="recomend",Object.assign(l,{...j}),e("changeRecomandPlace",j)},onChangeCity:j=>{e("changeCity",j)}});return s.watchEffect(()=>{a.onChangeCenterPlace({...l})}),s.watchEffect(()=>{a.onChangeRecomendPlaces([...L.value])}),()=>{const j=p.value?t.geoLoadingTitle:P.value?l.name:t.unavailableTitle,de=P.value?L.value.length>0?t.recomendDescription:t.noRecomendDescription:void 0;return s.h(ae,{attrs:{center:d.value,zoom:18,mapRef:r,log:t.log}},[s.h(le,{attrs:{position:m.value}}),s.h(mn,{attrs:{places:L.value,log:t.log},on:{click:I}}),s.h(wt,{attrs:{title:j,description:de,type:y.value?"locator":"box",log:t.log},on:{click:()=>e("clickLocator")}})])}}).props(["log","geoLoadingTitle","unavailableTitle","recomendDescription","noRecomendDescription","fallback","geoDefaultPosition","getRecomendPlace","loading","mapContext"]),Io=[116.2317,39.5427],ot=t=>t.lng!==void 0&&t.lat!==void 0,ve="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0zNC4wODcgMTAuOTZjMCAyLjM2OS0uMDU0IDIuOTgtLjc4MiAzLjcwNC0uNzkzLjc5LTUuMjM2LjgzMy01LjIzNi44MzNsLTQuMTE2LjE5Mi05Ljg5Ni0uMTQ0cy03Ljc5LS4wMjYtOS4xMzEtLjAyNmMtMS4zNDIgMC0yLjQwNi0uODQ3LTIuNDA2LS44NDdDLjE0IDEyLjkzMiAwIDExLjA5IDAgMTEuMDlWNS44NnMuMTQtMS44NDIgMi41Mi0zLj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jc0LTEuNTEzLjI3OC0zIC41NC00LjkxMi41NC0xLjg0NyAwLTMuMjg5LS4yNS00Ljc1LS41MTF2LS4wMDhjLjAzLS4xMzEuMDU1LS4yMzMuMDYtLjI5LjIxOC0xLjc0NC4zOC0yLjE3My4yMzMtNS4wNTN6IiBmaWxsPSIjRjJGQUZGIi8+PHBhdGggZD0iTTEyLjA2NyAxOS43MTZsLTQuNjQ1LjY5MmMtLjQzMS0yLjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";var pe="_65j3sr1",fn="_4a4ovk5",vn="_4a4ovk0",pn="_4a4ovk2";const mo=h(function(e){S(e,"ATaxiCar");const n=s.computed(()=>{var o;const i=e.title?Le(e.title).map(r=>r.type==="normal"?r.value:`<span class="${fn}">${r.value}</span>`).join(""):"",a=`transform:rotate(${(o=e.angle)!=null?o:0}deg)`;return e.title?`
58
+ <div class="${vn}">
59
+ <div class="${pn}">${i}</div>
60
+ <img src="${ve}" class="${pe}" style="${a}">
61
61
  </div>
62
- `:`<img src="${fe}" class="${ve}" style="${a}">`});return()=>s.h(O,{attrs:{position:e.position,content:n.value,anchor:"bottom-center",registerOverlay:e.registerOverlay}})}),fo=y(function(e){L(e,"GTaxiCar");const n=s.computed(()=>{var o;const i=e.title?Ae(e.title).map(r=>r.type==="normal"?r.value:`<span class="${mn}">${r.value}</span>`).join(""):"",a=`transform:rotate(${(o=e.angle)!=null?o:0}deg)`;return e.title?P("div",{class:fn},`
63
- <div class="${vn}">${i}</div>
64
- <img src="${fe}" class="${ve}" style="${a}">
65
- `):P("img",{class:ve,src:fe,style:a})});return()=>s.h(k,{attrs:{position:C(e.position),content:n.value,registerOverlay:e.registerOverlay}})}),Le=y(function(e){const n=A();return()=>E(n.supplier==="gmap"?fo:mo,{attrs:e})}),vo=y(function(e){return L(e,"AWalkingLine"),()=>{const{path:n}=e;if(n.length===0)return null;const a=2*(window.innerWidth*.01);return s.h(_,{attrs:{path:n,strokeWeight:a,strokeOpacity:1,strokeColor:"#38A3FE",strokeStyle:"dashed",strokeDasharray:[a,a*1.5],lineJoin:"round",lineCap:"round"}})}}),po=y(function(e){L(e,"GWalkingLine");const n=s.computed(()=>e.path.map(C));return()=>{const i=n.value;if(i.length===0)return null;const o=2*(window.innerWidth*.01),r=o/4;return s.h(ge,{attrs:{path:i,strokeWeight:o,strokeOpacity:1,strokeColor:"transparent",icons:[{icon:{path:`
62
+ `:`<img src="${ve}" class="${pe}" style="${a}">`});return()=>s.h(k,{attrs:{position:e.position,content:n.value,anchor:"bottom-center",registerOverlay:e.registerOverlay}})}),fo=h(function(e){S(e,"GTaxiCar");const n=s.computed(()=>{var o;const i=e.title?Le(e.title).map(r=>r.type==="normal"?r.value:`<span class="${fn}">${r.value}</span>`).join(""):"",a=`transform:rotate(${(o=e.angle)!=null?o:0}deg)`;return e.title?b("div",{class:vn},`
63
+ <div class="${pn}">${i}</div>
64
+ <img src="${ve}" class="${pe}" style="${a}">
65
+ `):b("img",{class:pe,src:ve,style:a})});return()=>s.h(G,{attrs:{position:x(e.position),content:n.value,registerOverlay:e.registerOverlay}})}),Se=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?fo:mo,{attrs:e})}),vo=h(function(e){return S(e,"AWalkingLine"),()=>{const{path:n}=e;if(n.length===0)return null;const a=2*(window.innerWidth*.01);return s.h(_,{attrs:{path:n,strokeWeight:a,strokeOpacity:1,strokeColor:"#38A3FE",strokeStyle:"dashed",strokeDasharray:[a,a*1.5],lineJoin:"round",lineCap:"round"}})}}),po=h(function(e){S(e,"GWalkingLine");const n=s.computed(()=>e.path.map(x));return()=>{const i=n.value;if(i.length===0)return null;const o=2*(window.innerWidth*.01),r=o/4;return s.h(Me,{attrs:{path:i,strokeWeight:o,strokeOpacity:1,strokeColor:"transparent",icons:[{icon:{path:`
66
66
  M ${r}, ${r}
67
67
  m -${r}, 0
68
68
  a ${r},${r} 0 1,0 ${2*r},0
69
69
  a ${r},${r} 0 1,0 -${2*r},0
70
- `,strokeColor:"#38A3FE",fillColor:"#38A3FE",fillOpacity:1,strokeOpacity:1,strokeWeight:o/2,scale:1},repeat:`${o*2}px`}]}})}}),Te=y(function(e){const n=A();return()=>E(n.supplier==="gmap"?po:vo,{attrs:e})}),pn=t=>{const e=s.shallowRef([]),n=new AMap.Walking({});return Q(()=>({...t}),({from:i,to:a})=>{n.search(AMap.LngLat.from(i),AMap.LngLat.from(a),(o,r)=>{switch(o){case"complete":{let c=[];const l=r;if(!l.routes)return;const d=l.routes[0];console.log("firstRoute = ",d);for(const g of d.steps){const u=g.path.map(({lng:M,lat:I})=>[M,I]);c=c.concat(u)}e.value=c;return}case"no_data":e.value=[];return;default:throw r}})}),e},yn=t=>{const e=s.shallowRef([]),n=new google.maps.DirectionsService;return Q(()=>({...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},(o,r)=>{switch(r){case google.maps.DirectionsStatus.OK:{let c=[];const d=o.routes[0].overview_path.map(g=>[g.lng(),g.lat()]);c=c.concat(d),e.value=c;return}case google.maps.DirectionsStatus.ZERO_RESULTS:case google.maps.DirectionsStatus.NOT_FOUND:e.value=[];return;default:throw new Error(r)}})}),e},yo=t=>{const{supplier:e}=A();return e==="gmap"?yn(t):pn(t)},ho=y(function(e,{slots:n}){L(e,"AWalkingRoute");const i=pn(e);return()=>{var a;return s.h("div",[(a=n.render)==null?void 0:a.call(n,s.reactive({path:i}))])}}),jo=y(function(e,{slots:n}){L(e,"GWalkingRoute");const i=yn(e);return()=>{var a;return s.h("div",[(a=n.render)==null?void 0:a.call(n,s.reactive({path:i}))])}}),Ee=y(function(e,{slots:n}){const{supplier:i}=A();return()=>E(i==="gmap"?jo:ho,{attrs:e,scopedSlots:n})}),pe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";var hn="rrvp0y3",ye="rrvp0y2";const Ao=y(function(e){L(e,"AWaveCircle");const n=s.computed(()=>`<img src="${pe}" class="${ye}">`),i=s.computed(()=>`<img src="${pe}" class="${ye} ${hn}">`);return()=>s.h("div",[s.h(O,{attrs:{position:e.position,anchor:"bottom-center",content:n.value}}),s.h(O,{attrs:{position:e.position,anchor:"bottom-center",content:i.value}})])}),Lo=y(function(e){L(e,"GWaveCircle");const n=s.computed(()=>P("img",{class:ye,src:pe})),i=s.computed(()=>P("img",{class:`${ye} ${hn}`,src:pe}));return()=>{const a=C(e.position);return s.h("div",[s.h(k,{attrs:{position:a,content:n.value}}),s.h(k,{attrs:{position:a,content:i.value}})])}}),jn=y(function(e){const n=A();return()=>E(n.supplier==="gmap"?Lo:Ao,{attrs:e})}),So=["book-driverStartService","dispatched","driverStartService","inService","driverArrived"],ot=y((t,{emit:e})=>(L(t,"SectionDispatching"),G(()=>e("mapMounted")),()=>{const{from:n,title:i,registerOverlay:a}=t,o=D(n);return s.h("div",[s.h(b,{attrs:{type:"start",position:o,title:i,registerOverlay:a,log:t.log}}),s.h(jn,{attrs:{position:o,log:t.log}}),s.h(T,{attrs:{position:o,label:n.name,hideIcon:!0,log:t.log}})])})),No=y((t,{emit:e})=>(L(t,"SectionDriverStartService"),G(()=>e("mapMounted")),()=>{const{from:n,carPosition:i,passengerPosition:a,renderTitle:o,registerOverlay:r}=t,c=D(n);return s.h("div",[s.h(b,{attrs:{type:"start",position:c,registerOverlay:r,log:t.log}}),s.h(T,{attrs:{position:c,label:n.name,hideIcon:!0,log:t.log}}),s.h(re,{attrs:{from:i,to:c,log:t.log,render:({path:l,distance:d,duration:g})=>[s.h(oe,{attrs:{path:l,log:t.log}}),s.h(Le,{attrs:{position:i,title:o({distance:d,duration:g}),log:t.log}})]}}),s.h(Ee,{attrs:{from:a,to:c,log:t.log,render:({path:l})=>s.h(Te,{attrs:{path:l,log:t.log}})}}),s.h(ue,{attrs:{position:a,registerOverlay:r,log:t.log}})])})),wo=y((t,{emit:e})=>(L(t,"SectionBookDispatched"),G(()=>e("mapMounted")),()=>{const{from:n,passengerPosition:i,title:a,registerOverlay:o}=t,r=D(n);return s.h("div",[s.h(b,{attrs:{type:"start",position:r,title:a,registerOverlay:o,log:t.log}}),s.h(T,{attrs:{position:r,label:n.name,hideIcon:!0,log:t.log}}),s.h(ue,{attrs:{position:i,registerOverlay:o,log:t.log}})])})),Do=y((t,{emit:e})=>(L(t,"SectionDriverArrived"),G(()=>e("mapMounted")),()=>{const{from:n,carPosition:i,passengerPosition:a,title:o,registerOverlay:r}=t,c=D(n);return s.h("div",[s.h(Le,{attrs:{position:i,title:o,registerOverlay:r,log:t.log}}),s.h(b,{attrs:{type:"start",position:c,registerOverlay:r,log:t.log}}),s.h(T,{attrs:{position:c,label:n.name,hideIcon:!0,log:t.log}}),s.h(Ee,{attrs:{from:a,to:c,log:t.log,render:({path:l})=>s.h(Te,{attrs:{path:l}})}}),s.h(ue,{attrs:{position:a,size:"small",registerOverlay:r,log:t.log}})])})),Co=y((t,{emit:e})=>(L(t,"SectionInService"),G(()=>e("mapMounted")),()=>{const{to:n,carPosition:i,renderTitle:a,registerOverlay:o}=t,r=D(n);return s.h("div",[s.h(b,{attrs:{type:"end",position:r,registerOverlay:o,log:t.log}}),s.h(T,{attrs:{position:i,label:"'WebSter Dental Plaza'",hideIcon:!0,log:t.log}}),s.h(re,{attrs:{from:i,to:r,log:t.log,render:({path:c,distance:l,duration:d})=>[s.h(oe,{attrs:{path:c,log:t.log}}),s.h(Le,{attrs:{position:i,title:a({distance:l,duration:d}),registerOverlay:o,log:t.log}})]}})])})),xo=y((t,{emit:e})=>(L(t,"SectionCanceled"),G(()=>e("mapMounted")),()=>{const{from:n,to:i,registerOverlay:a}=t,o=D(n),r=D(i);return s.h("div",[s.h(b,{attrs:{type:"start",position:o,registerOverlay:a,log:t.log}}),s.h(b,{attrs:{type:"end",position:r,registerOverlay:a,log:t.log}}),s.h(T,{attrs:{position:o,label:n.name,hideIcon:!0,log:t.log}}),s.h(T,{attrs:{position:r,label:i.name,hideIcon:!0,log:t.log}})])})),Ce=y((t,{emit:e})=>(L(t,"SectionEndService"),G(()=>e("mapMounted")),()=>{const{from:n,to:i,registerOverlay:a}=t,o=D(n),r=D(i);return s.h("div",[s.h(b,{attrs:{type:"start",position:o,registerOverlay:a,log:t.log}}),s.h(b,{attrs:{type:"end",position:r,registerOverlay:a,log:t.log}}),s.h(T,{attrs:{position:o,label:n.name,hideIcon:!0,log:t.log}}),s.h(T,{attrs:{position:r,label:i.name,hideIcon:!0,log:t.log}}),s.h(re,{attrs:{from:o,to:r,render:({path:c})=>s.h(oe,{attrs:{path:c,done:!0,log:t.log}}),log:t.log}})])})),Po=te(t=>{L(t,"BusinessTaxiServiceMap");const{from:e,interval:n,registerOverlay:i,mapRef:a,getDriverPosition:o,renderStartSerivceTitle:r,renderInServiceTitle:c}=t,{setFitView:l}=i,{geoPosition:d}=Re({geoDefaultPosition:D(e)}),g=s.ref(D(t.from));return s.watch(()=>t.driverStatus,(u,M,I)=>{if(!So.includes(u))return;const m=setInterval(()=>{o().then(v=>g.value=v)},n);I(()=>clearInterval(m))},{immediate:!0}),()=>{const{driverStatus:u,from:M,to:I,dispatchingTitle:m,bookDispatchingTitle:v,bookDispatchedTitle:p,driverArrivedTitle:h}=t,f=g.value;return s.h(ae,{attrs:{center:D(M),zoom:13,mapRef:a,log:t.log}},[u==="dispatching"?s.h(ot,{attrs:{from:M,title:m,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="book-dispatching"?s.h(ot,{attrs:{from:M,title:v,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="dispatched"||u==="driverStartService"||u==="book-driverStartService"?s.h(No,{attrs:{from:M,carPosition:f,passengerPosition:d.value,renderTitle:r,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="book-dispatched"?s.h(wo,{attrs:{from:M,passengerPosition:d.value,title:p,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="inService"?s.h(Co,{attrs:{to:I,carPosition:f,renderTitle:c,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="driverArrived"?s.h(Do,{attrs:{from:M,carPosition:f,passengerPosition:d.value,title:h,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="canceled"||u==="canceling"?s.h(xo,{attrs:{from:M,to:I,registerOverlay:i,log:t.log}}):u==="endService"||u==="completed"||u==="banlanceRefund"||u==="waitBanlanceRefund"||u==="rechargePayed"||u==="waitRechargePay"||u==="payed"||u==="waitpay"||u==="refund"||u==="confirmed"?s.h(Ce,{attrs:{from:M,to:I,registerOverlay:i,log:t.log},on:{mapMounted:l}}):s.h(Ce,{attrs:{from:M,to:I,registerOverlay:i,log:t.log},on:{mapMounted:l}})])}}).props(["log","bookDispatchedTitle","bookDispatchingTitle","dispatchingTitle","driverArrivedTitle","driverStatus","fallback","from","getDriverPosition","interval","loading","mapRef","renderInServiceTitle","renderStartSerivceTitle","to","registerOverlay"]),bo=y(t=>{L(t,"BusinessTaxiEndMap");const{mapRef:e,setMap:n}=ce(),{registerFitVeiw:i,setFitView:a}=se({mapRef:e,autoFitTimeout:5e3,padding:[25,20,15,15]});return()=>{const{from:o,to:r}=t,c=at(o)&&at(r),l=c?D(o):[...Io],d=c?13:3;return s.h(ae,{attrs:{center:l,zoom:d,mapRef:n,log:t.log}},[c&&s.h(Ce,{attrs:{from:o,to:r,registerOverlay:i,log:t.log},on:{mapMounted:a}})])}}),Ro=t=>{const{city:e}=t,n=s.ref(e);pa(t,"useAmapAutoComplete",n,"cityRef");const{readyPromise:i}=A(),a=s.ref(""),o=s.ref([]),{update:r,idx:c}=F(),l=g=>{n.value=g,r()},d=g=>{a.value=g,r()};return s.watch(()=>c.value,async()=>{if(!a.value)return;await i,new AMap.PlaceSearch({city:n.value.name}).search(a.value,(u,M)=>{switch(u){case"complete":{o.value=M.poiList.pois.map(I=>({lat:I.location.lat,lng:I.location.lng,name:I.name,description:I.address}));return}case"no_data":o.value=[];return;default:throw M}})},{immediate:!0}),{setKeyword:d,setCity:l,autoCompletePlaces:o}},To=t=>{const{city:e}=t,n=s.ref({...e}),{readyPromise:i}=A(),a=s.ref(""),o=s.ref([]),{update:r,idx:c}=F(),l=u=>{n.value=u,r()},d=u=>{a.value=u,r()},g=document.createElement("div");return s.watch(()=>c.value,async()=>{if(!a.value)return;await i,new google.maps.places.PlacesService(g).textSearch({query:a.value,bounds:n.value.bound},(M,I)=>{switch(I){case google.maps.places.PlacesServiceStatus.OK:o.value=M.map(({geometry:m,name:v,formatted_address:p})=>{var h,f,S,w;return{lng:(f=(h=m==null?void 0:m.location)==null?void 0:h.lng())!=null?f:0,lat:(w=(S=m==null?void 0:m.location)==null?void 0:S.lat())!=null?w:0,name:v!=null?v:"",description:p!=null?p:""}});return;case google.maps.places.PlacesServiceStatus.ZERO_RESULTS:case google.maps.places.PlacesServiceStatus.NOT_FOUND:o.value=[];return}})}),{setKeyword:d,setCity:l,autoCompletePlaces:o}},Eo=t=>{const{supplier:e}=A();return e==="gmap"?To(t):Ro(t)},zo=t=>{var a;const{cityNameRef:e,onChange:n}=t,i=s.reactive({name:(a=e.value)!=null?a:""});return s.watch(()=>e.value,o=>{const r=o!=null?o:"";i.name=r,n==null||n({name:r})}),i},Zo=t=>{var o;const{cityNameRef:e,onChange:n}=t,{readyPromise:i}=A(),a=s.reactive({name:(o=e.value)!=null?o:"",bound:{east:0,north:0,south:0,west:0}});return s.watchEffect(async()=>{var u,M;const r=e.value;if(!r)return;await i;const c=new google.maps.Geocoder,{results:l}=await c.geocode({address:r,componentRestrictions:{administrativeArea:"administrative_area_level_1"},language:K});if(l.length!==1)throw new Error("MyError: multiple city found");const{geometry:d}=l[0],g=(M=(u=d.bounds)==null?void 0:u.toJSON())!=null?M:d.viewport.toJSON();a.name=r,a.bound=g,n==null||n({name:r,bound:g})}),a},Oo=t=>{const{supplier:e}=A();return e==="gmap"?Zo(t):zo(t)},ko=t=>{const{cityNameRef:e}=t,n=Oo({cityNameRef:e,onChange:c=>o(c)}),{autoCompletePlaces:i,setKeyword:a,setCity:o}=Eo({city:n,log:t.log});return{autoCompletePlaces:i,setKeyword:a,setCity:o,handleKeywordInput:c=>{const l=c.target;a(l.value)}}},Go=()=>{const{setMap:t,mapRef:e}=ce(),{registerFitVeiw:n,setFitView:i}=se({mapRef:e,padding:[25,20,15,15]});return{setMap:t,registerFitVeiw:n,setFitView:i}},Wo=()=>{const t=A();return{apiMapDistance:(n,i)=>{if(t.status===ee.SUCCESS)return AMap.GeometryUtil.distance(n,i)}}},Uo=()=>{const t=A();return{apiMapDistance:(n,i)=>{if(t.status===ee.SUCCESS)return google.maps.geometry.spherical.computeDistanceBetween(C(n),C(i))}}},An=()=>{const{supplier:t}=A();return t==="gmap"?Uo():Wo()},Bo=()=>{const t=s.reactive({lng:0,lat:0,name:""}),e=s.ref([]),{apiMapDistance:n}=An(),i=r=>o.panToGeoPositionByRecomend(r),a=r=>o.setCenterPlaceByUserSpecified(r),o={panToGeoPositionByRecomend:()=>{throw new Error("MyError: panToGeoPositionByRecomend used before assigned")},setCenterPlaceByUserSpecified:()=>{throw new Error("MyError: setCenterPlaceByRecomand used before assigned")},onChangeCenterPlace:r=>{Object.assign(t,{...r})},onChangeRecomendPlaces:r=>{e.value=[...r]}};return{mapContext:o,centerPlace:t,placeCandidates:e,panToGeoPositionByRecomend:i,setCenterPlaceByUserSpecified:a,apiMapDistance:n}},Yo=()=>{const{mapRef:t,setMap:e}=ce(),{registerFitVeiw:n,setFitView:i}=se({mapRef:t,autoFitTimeout:5e3,padding:[25,20,15,15]});return{setMap:e,registerFitVeiw:n,setFitView:i}};exports.AbsoluteAddressBox=Nt;exports.AddressBox=ja;exports.BusinessQuotingMap=_a;exports.BusinessRecomendPlaceMap=Mo;exports.BusinessTaxiEndMap=bo;exports.BusinessTaxiServiceMap=Po;exports.DrivingLine=oe;exports.DrivingRoute=re;exports.HeycarMap=ae;exports.MapProvider=Ea;exports.PassengerCircle=ue;exports.PickupPoints=In;exports.PlaceCircle=T;exports.StartEndPoint=b;exports.TaxiCar=Le;exports.WalkingLine=Te;exports.WalkingRoute=Ee;exports.WaveCircle=jn;exports.useBusinessMapAutoComplete=ko;exports.useBusinessQuotingMap=Go;exports.useBusinessRecomendPlaceMap=Bo;exports.useBusinessTaxiServiceMap=Yo;exports.useDrivingRoute=Oa;exports.useGeoLocation=Re;exports.useHeycarMap=ce;exports.useMapAngle=Ga;exports.useMapDrag=rn;exports.useMapFitView=se;exports.useMapGeometry=An;exports.useMapPlace=no;exports.useMapRecomendPlace=un;exports.useWalkingRoute=yo;
70
+ `,strokeColor:"#38A3FE",fillColor:"#38A3FE",fillOpacity:1,strokeOpacity:1,strokeWeight:o/2,scale:1},repeat:`${o*2}px`}]}})}}),Ee=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?po:vo,{attrs:e})}),yn=t=>{const e=s.shallowRef([]),n=new AMap.Walking({});return J(()=>({...t}),({from:i,to:a})=>{n.search(AMap.LngLat.from(i),AMap.LngLat.from(a),(o,r)=>{switch(o){case"complete":{let c=[];const l=r;if(!l.routes)return;const d=l.routes[0];console.log("firstRoute = ",d);for(const g of d.steps){const u=g.path.map(({lng:M,lat:I})=>[M,I]);c=c.concat(u)}e.value=c;return}case"no_data":e.value=[];return;default:throw r}})}),e},hn=t=>{const e=s.shallowRef([]),n=new google.maps.DirectionsService;return J(()=>({...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},(o,r)=>{switch(r){case google.maps.DirectionsStatus.OK:{let c=[];const d=o.routes[0].overview_path.map(g=>[g.lng(),g.lat()]);c=c.concat(d),e.value=c;return}case google.maps.DirectionsStatus.ZERO_RESULTS:case google.maps.DirectionsStatus.NOT_FOUND:e.value=[];return;default:throw new Error(r)}})}),e},yo=t=>{const{supplier:e}=A();return e==="gmap"?hn(t):yn(t)},ho=h(function(e,{slots:n}){S(e,"AWalkingRoute");const i=yn(e);return()=>{var a;return s.h("div",[(a=n.render)==null?void 0:a.call(n,s.reactive({path:i}))])}}),jo=h(function(e,{slots:n}){S(e,"GWalkingRoute");const i=hn(e);return()=>{var a;return s.h("div",[(a=n.render)==null?void 0:a.call(n,s.reactive({path:i}))])}}),ze=h(function(e,{slots:n}){const{supplier:i}=A();return()=>z(i==="gmap"?jo:ho,{attrs:e,scopedSlots:n})}),ye="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTE5IiBoZWlnaHQ9IjExOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgY3g9IjUwJSIgY3k9IjUwJSIgZng9IjUwJSIgZnk9IjUwJSIgcj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGNpcmNsZSBjeD0iMTkxLjM5NCIgY3k9IjIzOCIgcj0iNTkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTE3OSkiIGZpbGw9InVybCgjcHJlZml4X19hKSIgZmlsbC1ydWxlPSJldmVub2RkIiBvcGFjaXR5PSIuMiIvPjwvc3ZnPg==";var jn="rrvp0y3",he="rrvp0y2";const Ao=h(function(e){S(e,"AWaveCircle");const n=s.computed(()=>`<img src="${ye}" class="${he}">`),i=s.computed(()=>`<img src="${ye}" class="${he} ${jn}">`);return()=>s.h("div",[s.h(k,{attrs:{position:e.position,anchor:"bottom-center",content:n.value}}),s.h(k,{attrs:{position:e.position,anchor:"bottom-center",content:i.value}})])}),Lo=h(function(e){S(e,"GWaveCircle");const n=s.computed(()=>b("img",{class:he,src:ye})),i=s.computed(()=>b("img",{class:`${he} ${jn}`,src:ye}));return()=>{const a=x(e.position);return s.h("div",[s.h(G,{attrs:{position:a,content:n.value}}),s.h(G,{attrs:{position:a,content:i.value}})])}}),An=h(function(e){const n=A();return()=>z(n.supplier==="gmap"?Lo:Ao,{attrs:e})}),So=["book-driverStartService","dispatched","driverStartService","inService","driverArrived"],rt=h((t,{emit:e})=>(S(t,"SectionDispatching"),W(()=>e("mapMounted")),()=>{const{from:n,title:i,registerOverlay:a}=t,o=D(n);return s.h("div",[s.h(R,{attrs:{type:"start",position:o,title:i,registerOverlay:a,log:t.log}}),s.h(An,{attrs:{position:o,log:t.log}}),s.h(E,{attrs:{position:o,label:n.name,hideIcon:!0,log:t.log}})])})),No=h((t,{emit:e})=>(S(t,"SectionDriverStartService"),W(()=>e("mapMounted")),()=>{const{from:n,carPosition:i,passengerPosition:a,renderTitle:o,registerOverlay:r}=t,c=D(n);return s.h("div",[s.h(R,{attrs:{type:"start",position:c,registerOverlay:r,log:t.log}}),s.h(E,{attrs:{position:c,label:n.name,hideIcon:!0,log:t.log}}),s.h(re,{attrs:{from:i,to:c,log:t.log,render:({path:l,distance:d,duration:g})=>[s.h(oe,{attrs:{path:l,log:t.log}}),s.h(Se,{attrs:{position:i,title:o({distance:d,duration:g}),log:t.log}})]}}),s.h(ze,{attrs:{from:a,to:c,log:t.log,render:({path:l})=>s.h(Ee,{attrs:{path:l,log:t.log}})}}),s.h(le,{attrs:{position:a,registerOverlay:r,log:t.log}})])})),wo=h((t,{emit:e})=>(S(t,"SectionBookDispatched"),W(()=>e("mapMounted")),()=>{const{from:n,passengerPosition:i,title:a,registerOverlay:o}=t,r=D(n);return s.h("div",[s.h(R,{attrs:{type:"start",position:r,title:a,registerOverlay:o,log:t.log}}),s.h(E,{attrs:{position:r,label:n.name,hideIcon:!0,log:t.log}}),s.h(le,{attrs:{position:i,registerOverlay:o,log:t.log}})])})),Do=h((t,{emit:e})=>(S(t,"SectionDriverArrived"),W(()=>e("mapMounted")),()=>{const{from:n,carPosition:i,passengerPosition:a,title:o,registerOverlay:r}=t,c=D(n);return s.h("div",[s.h(Se,{attrs:{position:i,title:o,registerOverlay:r,log:t.log}}),s.h(R,{attrs:{type:"start",position:c,registerOverlay:r,log:t.log}}),s.h(E,{attrs:{position:c,label:n.name,hideIcon:!0,log:t.log}}),s.h(ze,{attrs:{from:a,to:c,log:t.log,render:({path:l})=>s.h(Ee,{attrs:{path:l}})}}),s.h(le,{attrs:{position:a,size:"small",registerOverlay:r,log:t.log}})])})),Co=h((t,{emit:e})=>(S(t,"SectionInService"),W(()=>e("mapMounted")),()=>{const{to:n,carPosition:i,renderTitle:a,registerOverlay:o}=t,r=D(n);return s.h("div",[s.h(R,{attrs:{type:"end",position:r,registerOverlay:o,log:t.log}}),s.h(E,{attrs:{position:i,label:"'WebSter Dental Plaza'",hideIcon:!0,log:t.log}}),s.h(re,{attrs:{from:i,to:r,log:t.log,render:({path:c,distance:l,duration:d})=>[s.h(oe,{attrs:{path:c,log:t.log}}),s.h(Se,{attrs:{position:i,title:a({distance:l,duration:d}),registerOverlay:o,log:t.log}})]}})])})),xo=h((t,{emit:e})=>(S(t,"SectionCanceled"),W(()=>e("mapMounted")),()=>{const{from:n,to:i,registerOverlay:a}=t,o=D(n),r=D(i);return s.h("div",[s.h(R,{attrs:{type:"start",position:o,registerOverlay:a,log:t.log}}),s.h(R,{attrs:{type:"end",position:r,registerOverlay:a,log:t.log}}),s.h(E,{attrs:{position:o,label:n.name,hideIcon:!0,log:t.log}}),s.h(E,{attrs:{position:r,label:i.name,hideIcon:!0,log:t.log}})])})),Pe=h((t,{emit:e})=>(S(t,"SectionEndService"),W(()=>e("mapMounted")),()=>{const{from:n,to:i,registerOverlay:a}=t,o=D(n),r=D(i);return s.h("div",[s.h(R,{attrs:{type:"start",position:o,registerOverlay:a,log:t.log}}),s.h(R,{attrs:{type:"end",position:r,registerOverlay:a,log:t.log}}),s.h(E,{attrs:{position:o,label:n.name,hideIcon:!0,log:t.log}}),s.h(E,{attrs:{position:r,label:i.name,hideIcon:!0,log:t.log}}),s.h(re,{attrs:{from:o,to:r,render:({path:c})=>s.h(oe,{attrs:{path:c,done:!0,log:t.log}}),log:t.log}})])})),Po=te(t=>{S(t,"BusinessTaxiServiceMap");const{from:e,interval:n,registerOverlay:i,mapRef:a,getDriverPosition:o,renderStartSerivceTitle:r,renderInServiceTitle:c}=t,{setFitView:l}=i,{geoPosition:d}=ce({geoDefaultPosition:D(e)}),g=s.ref(D(t.from));return s.watch(()=>t.driverStatus,(u,M,I)=>{if(!So.includes(u))return;const m=setInterval(()=>{o().then(v=>g.value=v)},n);I(()=>clearInterval(m))},{immediate:!0}),()=>{const{driverStatus:u,from:M,to:I,dispatchingTitle:m,bookDispatchingTitle:v,bookDispatchedTitle:p,driverArrivedTitle:y}=t,f=g.value;return s.h(ae,{attrs:{center:D(M),zoom:13,mapRef:a,log:t.log}},[u==="dispatching"?s.h(rt,{attrs:{from:M,title:m,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="book-dispatching"?s.h(rt,{attrs:{from:M,title:v,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="dispatched"||u==="driverStartService"||u==="book-driverStartService"?s.h(No,{attrs:{from:M,carPosition:f,passengerPosition:d.value,renderTitle:r,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="book-dispatched"?s.h(wo,{attrs:{from:M,passengerPosition:d.value,title:p,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="inService"?s.h(Co,{attrs:{to:I,carPosition:f,renderTitle:c,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="driverArrived"?s.h(Do,{attrs:{from:M,carPosition:f,passengerPosition:d.value,title:y,registerOverlay:i,log:t.log},on:{mapMounted:l}}):u==="canceled"||u==="canceling"?s.h(xo,{attrs:{from:M,to:I,registerOverlay:i,log:t.log}}):u==="endService"||u==="completed"||u==="banlanceRefund"||u==="waitBanlanceRefund"||u==="rechargePayed"||u==="waitRechargePay"||u==="payed"||u==="waitpay"||u==="refund"||u==="confirmed"?s.h(Pe,{attrs:{from:M,to:I,registerOverlay:i,log:t.log},on:{mapMounted:l}}):s.h(Pe,{attrs:{from:M,to:I,registerOverlay:i,log:t.log},on:{mapMounted:l}})])}}).props(["log","bookDispatchedTitle","bookDispatchingTitle","dispatchingTitle","driverArrivedTitle","driverStatus","fallback","from","getDriverPosition","interval","loading","mapRef","renderInServiceTitle","renderStartSerivceTitle","to","registerOverlay"]),bo=h(t=>{S(t,"BusinessTaxiEndMap");const{mapRef:e,setMap:n}=ue(),{registerFitVeiw:i,setFitView:a}=se({mapRef:e,autoFitTimeout:5e3,padding:[25,20,15,15]});return()=>{const{from:o,to:r}=t,c=ot(o)&&ot(r),l=c?D(o):[...Io],d=c?13:3;return s.h(ae,{attrs:{center:l,zoom:d,mapRef:n,log:t.log}},[c&&s.h(Pe,{attrs:{from:o,to:r,registerOverlay:i,log:t.log},on:{mapMounted:a}})])}}),Ro=()=>{const t=A();return{apiMapDistance:(n,i)=>{if(t.status===ee.SUCCESS)return AMap.GeometryUtil.distance(n,i)}}},To=()=>{const t=A();return{apiMapDistance:(n,i)=>{if(t.status===ee.SUCCESS)return google.maps.geometry.spherical.computeDistanceBetween(x(n),x(i))}}},Ne=()=>{const{supplier:t}=A();return t==="gmap"?To():Ro()},Eo=t=>{const{city:e}=t,n=s.ref(e);pa(t,"useAmapAutoComplete",n,"cityRef");const{readyPromise:i}=A(),{apiMapDistance:a}=Ne(),{geoPosition:o}=ce(),r=s.ref(""),c=s.ref([]),{update:l,idx:d}=X(),g=M=>{n.value=M,l()},u=M=>{r.value=M,l()};return s.watch(()=>d.value,async()=>{if(!r.value)return;await i,new AMap.PlaceSearch({city:n.value.name}).search(r.value,(I,m)=>{const v=o.value;switch(I){case"complete":{c.value=m.poiList.pois.map(p=>{const{lat:y,lng:f}=p.location;return{lat:y,lng:f,name:p.name,description:p.address,distance:v?a(v,[f,y]):void 0}});return}case"no_data":c.value=[];return;default:throw m}})},{immediate:!0}),{setKeyword:u,setCity:g,autoCompletePlaces:c}},zo=t=>{const{city:e}=t,n=s.ref({...e}),{readyPromise:i}=A(),{apiMapDistance:a}=Ne(),{geoPosition:o}=ce(),r=s.ref(""),c=s.ref([]),{update:l,idx:d}=X(),g=I=>{n.value=I,l()},u=I=>{r.value=I,l()},M=document.createElement("div");return s.watch(()=>d.value,async()=>{if(!r.value)return;await i,new google.maps.places.PlacesService(M).textSearch({query:r.value,bounds:n.value.bound},(m,v)=>{const p=o.value;switch(v){case google.maps.places.PlacesServiceStatus.OK:c.value=m.map(({geometry:y,name:f,formatted_address:N})=>{var L,P,T,Z;const w=(P=(L=y==null?void 0:y.location)==null?void 0:L.lng())!=null?P:0,C=(Z=(T=y==null?void 0:y.location)==null?void 0:T.lat())!=null?Z:0;return{lng:w,lat:C,name:f!=null?f:"",description:N!=null?N:"",distance:p?a(p,[w,C]):void 0}});return;case google.maps.places.PlacesServiceStatus.ZERO_RESULTS:case google.maps.places.PlacesServiceStatus.NOT_FOUND:c.value=[];return}})}),{setKeyword:u,setCity:g,autoCompletePlaces:c}},Zo=t=>{const{supplier:e}=A();return e==="gmap"?zo(t):Eo(t)},Oo=t=>{var a;const{cityNameRef:e,onChange:n}=t,i=s.reactive({name:(a=e.value)!=null?a:""});return s.watch(()=>e.value,o=>{const r=o!=null?o:"";i.name=r,n==null||n({name:r})}),i},ko=t=>{var o;const{cityNameRef:e,onChange:n}=t,{readyPromise:i}=A(),a=s.reactive({name:(o=e.value)!=null?o:"",bound:{east:0,north:0,south:0,west:0}});return s.watchEffect(async()=>{var u,M;const r=e.value;if(!r)return;await i;const c=new google.maps.Geocoder,{results:l}=await c.geocode({address:r,componentRestrictions:{administrativeArea:"administrative_area_level_1"},language:K});if(l.length!==1)throw new Error("MyError: multiple city found");const{geometry:d}=l[0],g=(M=(u=d.bounds)==null?void 0:u.toJSON())!=null?M:d.viewport.toJSON();a.name=r,a.bound=g,n==null||n({name:r,bound:g})}),a},Go=t=>{const{supplier:e}=A();return e==="gmap"?ko(t):Oo(t)},Wo=t=>{const{cityNameRef:e}=t,n=Go({cityNameRef:e,onChange:c=>o(c)}),{autoCompletePlaces:i,setKeyword:a,setCity:o}=Zo({city:n,log:t.log});return{autoCompletePlaces:i,setKeyword:a,setCity:o,handleKeywordInput:c=>{const l=c.target;a(l.value)}}},Uo=()=>{const{setMap:t,mapRef:e}=ue(),{registerFitVeiw:n,setFitView:i}=se({mapRef:e,padding:[25,20,15,15]});return{setMap:t,registerFitVeiw:n,setFitView:i}},Bo=()=>{const t=s.reactive({lng:0,lat:0,name:""}),e=s.ref([]),{apiMapDistance:n}=Ne(),i=r=>o.panToGeoPositionByRecomend(r),a=r=>o.setCenterPlaceByUserSpecified(r),o={panToGeoPositionByRecomend:()=>{throw new Error("MyError: panToGeoPositionByRecomend used before assigned")},setCenterPlaceByUserSpecified:()=>{throw new Error("MyError: setCenterPlaceByRecomand used before assigned")},onChangeCenterPlace:r=>{Object.assign(t,{...r})},onChangeRecomendPlaces:r=>{e.value=[...r]}};return{mapContext:o,centerPlace:t,placeCandidates:e,panToGeoPositionByRecomend:i,setCenterPlaceByUserSpecified:a,apiMapDistance:n}},Yo=()=>{const{mapRef:t,setMap:e}=ue(),{registerFitVeiw:n,setFitView:i}=se({mapRef:t,autoFitTimeout:5e3,padding:[25,20,15,15]});return{setMap:e,registerFitVeiw:n,setFitView:i}};exports.AbsoluteAddressBox=wt;exports.AddressBox=ja;exports.BusinessQuotingMap=_a;exports.BusinessRecomendPlaceMap=Mo;exports.BusinessTaxiEndMap=bo;exports.BusinessTaxiServiceMap=Po;exports.DrivingLine=oe;exports.DrivingRoute=re;exports.HeycarMap=ae;exports.MapProvider=Ea;exports.PassengerCircle=le;exports.PickupPoints=mn;exports.PlaceCircle=E;exports.StartEndPoint=R;exports.TaxiCar=Se;exports.WalkingLine=Ee;exports.WalkingRoute=ze;exports.WaveCircle=An;exports.useBusinessMapAutoComplete=Wo;exports.useBusinessQuotingMap=Uo;exports.useBusinessRecomendPlaceMap=Bo;exports.useBusinessTaxiServiceMap=Yo;exports.useDrivingRoute=Oa;exports.useGeoLocation=ce;exports.useHeycarMap=ue;exports.useMapAngle=Ga;exports.useMapDrag=sn;exports.useMapFitView=se;exports.useMapGeometry=Ne;exports.useMapPlace=no;exports.useMapRecomendPlace=ln;exports.useWalkingRoute=yo;