Ben Lin
2024-04-25 e404c076586d9682c3d782a4ecb0dc254f0bfd48
1
var m=(i,p,o)=>new Promise((a,r)=>{var l=t=>{try{e(o.next(t))}catch(n){r(n)}},s=t=>{try{e(o.throw(t))}catch(n){r(n)}},e=t=>t.done?a(t.value):Promise.resolve(t.value).then(l,s);e((o=o.apply(i,p)).next())});import{u}from"./useScript-67586b5e.js";import{d as f,k as g,o as w,q as d,u as h,_,$ as y,af as z}from"./vue-1631514e.js";import{_ as k,__tla as v}from"./index-f0df2f76.js";import"./antd-057b41b1.js";let c,M=Promise.all([(()=>{try{return v}catch(i){}})()]).then(()=>m(void 0,null,function*(){const i="https://maps.googleapis.com/maps/api/js?key=AIzaSyBQWrGwj4gAzKndcbwD5favT9K0wgty_0&signed_in=true",p=f({name:"GoogleMap",props:{width:{type:String,default:"100%"},height:{type:String,default:"calc(100vh - 78px)"}},setup(){const a=g(null),{toPromise:r}=u({src:i});function l(){return m(this,null,function*(){yield r(),yield d();const s=h(a);if(!s)return;const e=window.google,t={lat:116.404,lng:39.915},n=new e.maps.Map(s,{zoom:4,center:t});new e.maps.Marker({position:t,map:n,title:"Hello World!"})})}return w(()=>{l()}),{wrapRef:a}}});function o(a,r,l,s,e,t){return _(),y("div",{ref:"wrapRef",style:z({height:a.height,width:a.width})},null,4)}c=k(p,[["render",o]])}));export{M as __tla,c as default};