import{a5 as I,b,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 w,l as B,bv as D,D as P}from"./index.8d733f79.js";const x={class:"dialog-footer"},N=I({name:"PositionMapModal"}),U=Object.assign(N,{emits:["markerEmit"],setup(j,{expose:k,emit:v}){const{t:V}=b(),{proxy:g}=P(),t=m(!1),e=m("");let i;function $(a,o,s){t.value=!0,i=s,a&&o&&(e.value=`${a} , ${o}`)}function C(){if(!e.value){g.$modal.msgError(V("markerInfoP"));return}v("markerEmit",e.value,i),n()}function n(){e.value="",t.value=!1}return k({showModal:$}),(a,o)=>{const s=w,d=B,E=D;return h(),y(E,{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",x,[u(d,{onClick:n},{default:l(()=>[c(f(a.$t("cancel")),1)]),_:1}),u(d,{type:"primary",onClick:C},{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{U as default};
