var l=(t,s,e)=>new Promise((a,n)=>{var r=o=>{try{p(e.next(o))}catch(c){n(c)}},i=o=>{try{p(e.throw(o))}catch(c){n(c)}},p=o=>o.done?a(o.value):Promise.resolve(o.value).then(r,i);p((e=e.apply(t,s)).next())});import{d as m,f,o as g,n as d,u,a2 as w,a3 as h,ac as _}from"./vue-vendor-CxLCUzY4.js";import{useScript as y}from"./useScript-COhlmzyE.js";import{_ as M}from"./index-B_2CoVdl.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";const k="https://maps.googleapis.com/maps/api/js?key=AIzaSyBQWrGwj4gAzKndcbwD5favT9K0wgty_0&signed_in=true",S=m({name:"GoogleMap",props:{width:{type:String,default:"100%"},height:{type:String,default:"calc(100vh - 78px)"}},setup(){const t=f(null),{toPromise:s}=y({src:k});function e(){return l(this,null,function*(){yield s(),yield d();const a=u(t);if(!a)return;const n=window.google,r={lat:116.404,lng:39.915},i=new n.maps.Map(a,{zoom:4,center:r});new n.maps.Marker({position:r,map:i,title:"Hello World!"})})}return g(()=>{e()}),{wrapRef:t}}});function z(t,s,e,a,n,r){return w(),h("div",{ref:"wrapRef",style:_({height:t.height,width:t.width})},null,4)}const R=M(S,[["render",z]]);export{R as default};
