"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./main-BB7fFseo.cjs"),l=a=>(e.pushScopeId("data-v-30a53c84"),a=a(),e.popScopeId(),a),d={class:"map-navigation"},p={class:"tit"},m=l(()=>e.createBaseVNode("i",{class:"iconfont icon-form-location"},null,-1)),_=["src"],u=e.defineComponent({__name:"MapNavigation",props:{attrs:{}},setup(a){const o=a,c=e.inject("editable"),n=e.inject("formMode"),i=(t,s)=>`https://apis.map.qq.com/ws/staticmap/v2/?key=${e.globalInject.qqMapKey}&center=${s},${t}&zoom=16&size=480*180&scale=2`,r=()=>{if(c)return;const t=document.createElement("a");t.href=`https://uri.amap.com/marker?position=${o.attrs.lng},${o.attrs.lat}&name=${o.attrs.name}&src=mypage&coordinate=gaode&callnative=0`,t.target="_blank",t.click()};return(t,s)=>(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(e._sfc_main),e.createVNode(e.ChoosenView,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1),e.createBaseVNode("div",{class:e.normalizeClass(["map-box",{disabled:e.unref(n)==="answer-preview"}]),onClick:r},[e.createBaseVNode("div",p,[m,e.createBaseVNode("span",null,e.toDisplayString(t.attrs.name),1)]),e.createBaseVNode("img",{src:i(t.attrs.lng,t.attrs.lat),alt:""},null,8,_)],2),e.createVNode(e._sfc_main$2)]),_:1})]))}}),f=e._export_sfc(u,[["__scopeId","data-v-30a53c84"]]);exports.default=f;
