import{_ as u}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{_ as h}from"./index.vue_vue_type_script_setup_true_lang-CgKUoL60.js?v=1773287522785";import{bm as k,h7 as g}from"./index-BTglIPU2.js?v=1773287522785";import{k as v,R as x,r as b,e as S,$ as w,Z as C,a0 as o,a9 as p,_ as $,S as a}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as D}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./index-K4YGya6V.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const y={class:"p-20px pb-8px"},B={class:"w-240px"},q=v({__name:"index",setup(R,{expose:i}){const r=k(),{t:m}=x(),n=b(null),e=S({path:r.setting.docker_compose_path}),c={path:{trigger:["blur","input"],validator:()=>e.path.trim()===""?new Error(m("Docker.Setting.compose.index_3")):!0}};return i({onConfirm:async()=>{var t;await((t=n.value)==null?void 0:t.validate()),await g({docker_compose_path:e.path.trim()}),r.getSetting()}}),(t,s)=>{const _=h,l=D,f=u;return w(),C("div",y,[o(f,{ref_key:"formRef",ref:n,model:a(e),rules:c},{default:p(()=>[o(l,{label:t.$t("Docker.Setting.compose.index_1"),path:"path"},{default:p(()=>[$("div",B,[o(_,{value:a(e).path,"onUpdate:value":s[0]||(s[0]=d=>a(e).path=d),"checked-type":["file"],placeholder:t.$t("Docker.Setting.compose.index_2")},null,8,["value","placeholder"])])]),_:1},8,["label"])]),_:1},8,["model"])])}}});export{q as default};
