import{d as g,r as i,e as k,o as f,v as c,w as t,f as s,a as e,n as v,x as F,P as C,W as U,A as z,D,C as j,I as q,_ as R,__tla as S}from"./index-04f8d540.js";import{_ as W,__tla as B}from"./Dialog-9afb5ba5.js";import{a as E,__tla as G}from"./index-1fff4ad2.js";import{u as H,__tla as J}from"./useMessage-9c37e840.js";let y,K=Promise.all([(()=>{try{return S}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return J}catch{}})()]).then(async()=>{y=R(g({name:"SystemAreaForm",__name:"AreaForm",setup(L,{expose:V}){const b=H(),u=i(!1),o=i(!1),a=i({ip:"",result:void 0}),h=k({ip:[{required:!0,message:"IP \u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}),d=i();V({open:async()=>{u.value=!0,P()}});const x=async()=>{if(d&&await d.value.validate()){o.value=!0;try{a.value.result=await E(a.value.ip.trim()),b.success("\u67E5\u8BE2\u6210\u529F")}finally{o.value=!1}}},P=()=>{var _;a.value={ip:"",result:void 0},(_=d.value)==null||_.resetFields()};return(_,l)=>{const m=U,n=z,w=D,p=j,I=W,A=q;return f(),c(I,{modelValue:e(u),"onUpdate:modelValue":l[3]||(l[3]=r=>C(u)?u.value=r:null),title:"IP \u67E5\u8BE2"},{footer:t(()=>[s(p,{disabled:e(o),type:"primary",onClick:x},{default:t(()=>[v("\u786E \u5B9A")]),_:1},8,["disabled"]),s(p,{onClick:l[2]||(l[2]=r=>u.value=!1)},{default:t(()=>[v("\u53D6 \u6D88")]),_:1})]),default:t(()=>[F((f(),c(w,{ref_key:"formRef",ref:d,model:e(a),rules:e(h),"label-width":"80px"},{default:t(()=>[s(n,{label:"IP",prop:"ip"},{default:t(()=>[s(m,{modelValue:e(a).ip,"onUpdate:modelValue":l[0]||(l[0]=r=>e(a).ip=r),placeholder:"\u8BF7\u8F93\u5165 IP \u5730\u5740"},null,8,["modelValue"])]),_:1}),s(n,{label:"\u5730\u5740",prop:"result"},{default:t(()=>[s(m,{modelValue:e(a).result,"onUpdate:modelValue":l[1]||(l[1]=r=>e(a).result=r),placeholder:"\u5C55\u793A\u67E5\u8BE2 IP \u7ED3\u679C",readonly:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[A,e(o)]])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/system/area/AreaForm.vue"]])});export{K as __tla,y as default};
