import{aP as s,P as a,iB as e,K as t}from"./utils-lib.js?v=1761009159";import{c as r,aA as i,g as o,v as m,x as l,e as p,y as n}from"./base-lib.js?v=1761009159";import{l as u}from"./form-item.js?v=1761009159";import{f as c}from"./validator.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const{refs:{isRefreshTableList:f}}=s(),d={class:"flex flex-col p-[1.6rem] lib-box"},b=r({__name:"index",setup(s,{expose:r}){const b=i("popupClose",()=>{}),{BtForm:h,submit:g}=t({data:()=>({path:"",name:"",id:""}),options:s=>o(()=>[u("路径","path",{attrs:{class:"!w-[24rem]",placeholder:"请输入镜像路径"},rules:[{required:!0,message:"请输入镜像路径",trigger:["blur","change"]}]},()=>(s=>{c({type:"file",change:a=>{s.value.path=a}})})(s))]),submit:async(s,t,r)=>{await t(),(async(s,t)=>{a({request:e({data:JSON.stringify({path:s.value.path})}),message:!0,success:({status:s})=>{s&&(f.value=!0,t())}})})(s,b)}});return r({onConfirm:g}),(s,a)=>(m(),l("div",d,[p(n(h))]))}});export{b as default};
