import{d as g,r as d,g as k,o as c,k as f,w as t,i as s,a as e,l as v,D as A,R as U,Y as z,I as C,J as D,s as R,M as j,_ as q,__tla as J}from"./index-66208f93.js";import{_ as M,__tla as S}from"./Dialog-948825d3.js";import{a as Y,__tla as B}from"./index-fb33f45b.js";import{u as E,__tla as G}from"./useMessage-798a77de.js";let y,H=Promise.all([(()=>{try{return J}catch{}})(),(()=>{try{return S}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return G}catch{}})()]).then(async()=>{y=q(g({name:"SystemAreaForm",__name:"AreaForm",setup(K,{expose:V}){const b=E(),u=d(!1),o=d(!1),a=d({ip:"",result:void 0}),h=k({ip:[{required:!0,message:"IP \u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}),i=d();V({open:async()=>{u.value=!0,w()}});const x=async()=>{if(i&&await i.value.validate()){o.value=!0;try{a.value.result=await Y(a.value.ip.trim()),b.success("\u67E5\u8BE2\u6210\u529F")}finally{o.value=!1}}},w=()=>{var _;a.value={ip:"",result:void 0},(_=i.value)==null||_.resetFields()};return(_,l)=>{const m=z,n=C,I=D,p=R,P=M,F=j;return c(),f(P,{modelValue:e(u),"onUpdate:modelValue":l[3]||(l[3]=r=>U(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(()=>[A((c(),f(I,{ref_key:"formRef",ref:i,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"])),[[F,e(o)]])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/system/area/AreaForm.vue"]])});export{H as __tla,y as default};