import{aP as s,P as a,iQ as e,K as t,_ as o}from"./utils-lib.js?v=1761009159";import{c as r,aA as p,g as m,v as i,N as c,y as l}from"./base-lib.js?v=1761009159";import{l as n}from"./form-item.js?v=1761009159";import{f as u}from"./validator.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const{getSet:d}=s(),f=o(r({__name:"index",setup(o,{expose:r}){const f=p("popupClose",()=>{}),{refs:{settingData:_}}=s(),{BtForm:g,submit:h,param:j}=t({data:()=>({path:JSON.parse(JSON.stringify(_.value.docker_compose_path))}),options:()=>m(()=>[n("路径","path",{attrs:{class:"!w-[24rem]",placeholder:"请选择compose文件路径"},rules:[{required:!0,message:"请选择compose文件路径",trigger:["blur","change"]}]},()=>(s=>{u({type:"file",path:s.value.path,change:a=>s.value.path=a})})(j))]),submit:async(s,t,o)=>{await t(),(async(s,t)=>{try{a({request:e({data:JSON.stringify({docker_compose_path:s.value.path})}),loading:"正在设置，请稍候...",message:!0,success:({status:s})=>{s&&(d(),t())}})}catch(o){}})(s,f)}});return r({onConfirm:h}),(s,a)=>(i(),c(l(g),{class:"p-[1.6rem]"}))}}),[["__scopeId","data-v-f0eb99a7"]]);export{f as default};
