/* empty css                                              */import{y as m,w as f,r as I,o as v,a as V,b as s,e as l,t as a,g as x}from"./vendor.475775fc.js";const w={class:"ipAddress"},B=a("div",null,"\u2022",-1),g=a("div",null,"\u2022",-1),b=a("div",null,"\u2022",-1),F={__name:"index",props:{data:{type:Object,default:{oneInp:"",twoInp:"",thrInp:"",fouInp:"",type:""}}},setup(d,{emit:y}){const i=d,{proxy:r}=x(),{data:e}=m(i);f(e,u=>{},{deep:!0});const t=function(u,n){u.length>2&&(n=="one"&&(e.value.type=="ip"||e.value.type=="dns")?parseFloat(u)>223&&(e.value.oneInp=223,r.$modal.alert(u+"\u4E0D\u662F\u6709\u6548\u9879\u3002\u8BF7\u6307\u5B9A\u4E00\u4E2A\u4ECB\u4E8E1\u548C223\u95F4\u7684\u503C\u3002",{confirmButtonText:"\u786E\u5B9A",callback:p=>{}})):parseFloat(u)>255&&(n=="one"?e.value.oneInp=255:n=="two"?e.value.twoInp=255:n=="thr"?e.value.thrInp=255:e.value.fouInp=255,r.$modal.alert(u+"\u4E0D\u662F\u6709\u6548\u9879\u3002\u8BF7\u6307\u5B9A\u4E00\u4E2A\u4ECB\u4E8E1\u548C255\u95F4\u7684\u503C\u3002",{confirmButtonText:"\u786E\u5B9A",callback:p=>{}})))};return(u,n)=>{const p=I("el-input");return v(),V("div",w,[s(p,{modelValue:l(e).oneInp,"onUpdate:modelValue":n[0]||(n[0]=o=>l(e).oneInp=o),onInput:n[1]||(n[1]=o=>t(o,"one")),onBlur:n[2]||(n[2]=o=>t(o,"one")),maxlength:"3"},null,8,["modelValue"]),B,s(p,{modelValue:l(e).twoInp,"onUpdate:modelValue":n[3]||(n[3]=o=>l(e).twoInp=o),onInput:n[4]||(n[4]=o=>t(o,"two")),onBlur:n[5]||(n[5]=o=>t(o,"two")),maxlength:"3"},null,8,["modelValue"]),g,s(p,{modelValue:l(e).thrInp,"onUpdate:modelValue":n[6]||(n[6]=o=>l(e).thrInp=o),onInput:n[7]||(n[7]=o=>t(o,"thr")),onBlur:n[8]||(n[8]=o=>t(o,"thr")),maxlength:"3"},null,8,["modelValue"]),b,s(p,{modelValue:l(e).fouInp,"onUpdate:modelValue":n[9]||(n[9]=o=>l(e).fouInp=o),onInput:n[10]||(n[10]=o=>t(o,"for")),onBlur:n[11]||(n[11]=o=>t(o,"fou")),maxlength:"3"},null,8,["modelValue"])])}}};export{F as _};
