import{d as k,r as i,e as g,o as f,x as c,w as t,f as s,a as e,y,z as U,l as A,R as C,C as R,H as z,G as H,K as j,_ as q,__tla as D}from"./index-8dc1e40a.js";import{_ as G,__tla as K}from"./Dialog-41802231.js";import{a as S,__tla as X}from"./index-fb53bc47.js";import{u as B,__tla as E}from"./useMessage-7a27dd80.js";let v,J=Promise.all([(()=>{try{return D}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return E}catch{}})()]).then(async()=>{v=q(k({name:"SystemAreaForm",__name:"AreaForm",setup(L,{expose:V}){const b=B(),u=i(!1),o=i(!1),a=i({ip:"",result:void 0}),h=g({ip:[{required:!0,message:"IP \u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}),d=i();V({open:async()=>{u.value=!0,x()}});const w=async()=>{if(d&&await d.value.validate()){o.value=!0;try{a.value.result=await S(a.value.ip.trim()),b.success("\u67E5\u8BE2\u6210\u529F")}finally{o.value=!1}}},x=()=>{var _;a.value={ip:"",result:void 0},(_=d.value)==null||_.resetFields()};return(_,l)=>{const m=C,n=R,P=z,p=H,F=G,I=j;return f(),c(F,{modelValue:e(u),"onUpdate:modelValue":l[3]||(l[3]=r=>A(u)?u.value=r:null),title:"IP \u67E5\u8BE2"},{footer:t(()=>[s(p,{disabled:e(o),type:"primary",onClick:w},{default:t(()=>[y("\u786E \u5B9A")]),_:1},8,["disabled"]),s(p,{onClick:l[2]||(l[2]=r=>u.value=!1)},{default:t(()=>[y("\u53D6 \u6D88")]),_:1})]),default:t(()=>[U((f(),c(P,{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"])),[[I,e(o)]])]),_:1},8,["modelValue"])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/system/area/AreaForm.vue"]])});export{J as __tla,v as default};
