import{a5 as E,r as m,o as h,y,q as l,v as M,p as u,P as c,x as f,n as p,s as _,j as b,l as w,bv as B,D}from"./index.8d733f79.js";const I={class:"dialog-footer"},x=E({name:"PositionMapModal"}),j=Object.assign(x,{emits:["markerEmit"],setup(N,{expose:v,emit:k}){const{proxy:V}=D(),t=m(!1),e=m("");let i;function g(a,o,s){i=s,a&&o&&(e.value=`${a} , ${o}`),t.value=!0}function $(){if(!e.value){V.$modal.msgError("\u8BF7\u586B\u5199\u6807\u6CE8\u4FE1\u606F");return}k("markerEmit",e.value,i),n()}function n(){e.value="",t.value=!1}return v({showModal:g}),(a,o)=>{const s=b,d=w,C=B;return h(),y(C,{title:a.$t("markerInfo"),modelValue:p(t),"onUpdate:modelValue":o[1]||(o[1]=r=>_(t)?t.value=r:null),width:"400px","align-center":!0,onClose:n},{footer:l(()=>[M("div",I,[u(d,{onClick:n},{default:l(()=>[c(f(a.$t("cancel")),1)]),_:1}),u(d,{type:"primary",onClick:$},{default:l(()=>[c(f(a.$t("confirm")),1)]),_:1})])]),default:l(()=>[u(s,{modelValue:p(e),"onUpdate:modelValue":o[0]||(o[0]=r=>_(e)?e.value=r:null),maxlength:30,placeholder:a.$t("markerInfoP")},null,8,["modelValue","placeholder"])]),_:1},8,["title","modelValue"])}}});export{j as default};
