import{_ as h,a5 as C,b as E,r as P,ah as f,o as k,y as w,q as s,v as _,p as l,P as N,x as b,n as a,s as I,k as x,m as B,l as D,bv as M,D as R}from"./index.8d733f79.js";import{E as S}from"./el-input-number.60463ef8.js";import"./index.28f6da25.js";const U={class:"content-wrap"},j={class:"dialog-footer"},O=C({name:"PositionMapModal"}),T=Object.assign(O,{emits:["confirm"],setup(z,{expose:g,emit:F}){const{t:m}=E(),{proxy:i}=R(),r=P(!1),o=f({timesNum:20,sideNum:20}),v=f({timesNum:[{required:!0,message:m("doubleFreqNumP"),trigger:"blur"}],sideNum:[{required:!0,message:m("edgeFreqNumP"),trigger:"blur"}]});function V(e,t){o.timesNum=e,o.sideNum=t,r.value=!0}function q(){!i.$refs.setFormRef||i.$refs.setFormRef.validate(e=>{e?(F("confirm",o),u()):console.log("error submit!")})}function u(){r.value=!1}return g({showModal:V}),(e,t)=>{const d=S,c=x,$=B,p=D,y=M;return k(),w(y,{title:e.$t("cursorSet"),modelValue:a(r),"onUpdate:modelValue":t[2]||(t[2]=n=>I(r)?r.value=n:null),width:"400px","align-center":!0,onClose:u},{footer:s(()=>[_("div",j,[l(p,{onClick:u},{default:s(()=>[N(b(e.$t("cancel")),1)]),_:1}),l(p,{type:"primary",onClick:q},{default:s(()=>[N(b(e.$t("confirm")),1)]),_:1})])]),default:s(()=>[_("div",U,[l($,{ref:"setFormRef",model:a(o),rules:a(v)},{default:s(()=>[l(c,{label:e.$t("doubleFreqNum"),prop:"timesNum"},{default:s(()=>[l(d,{class:"input-number",modelValue:a(o).timesNum,"onUpdate:modelValue":t[0]||(t[0]=n=>a(o).timesNum=n),placeholder:e.$t("doubleFreqNumP"),precision:0,min:1,max:99,controls:!1},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l(c,{label:e.$t("edgeFreqNum"),prop:"sideNum"},{default:s(()=>[l(d,{class:"input-number",modelValue:a(o).sideNum,"onUpdate:modelValue":t[1]||(t[1]=n=>a(o).sideNum=n),placeholder:e.$t("edgeFreqNumP"),precision:0,min:1,max:99,controls:!1},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])])]),_:1},8,["title","modelValue"])}}}),J=h(T,[["__scopeId","data-v-f24568d9"]]);export{J as default};
