import{u as a,l as s}from"./utils-lib.js?v=20260328163632";import{B as e}from"./index158.js?v=20260328163632";import{k as o,r as l,o as t,V as i,W as p,X as n,Z as m,Y as r,O as u,N as c}from"./base-lib.js?v=20260328163632";import"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";import"./ace.js?v=20260328163632";const d={class:"p-20px"},f={class:"mb-10px"},v=o({__name:"config-file",props:{compData:{default:()=>({path:"",config_path:""})}},setup(o,{expose:v}){const _=o,{getFileEvent:j,saveFileEvent:g}=a(),h=l(""),x=()=>{g({filename:_.compData.config_path,data:h.value})};return t((async()=>{const a=await j({filename:_.compData.config_path});h.value=(null==a?void 0:a.data)||(null==a?void 0:a.msg)})),v({onConfirm:x}),(a,o)=>(i(),p("div",d,[n("p",f,m(r(s)("文件位置："))+m(a.compData.path),1),u(r(e),{class:"!h-[500px] rounded-small",modelValue:r(h),"onUpdate:modelValue":o[0]||(o[0]=a=>c(h)?h.value=a:null),onSave:o[1]||(o[1]=a=>x())},null,8,["modelValue"])]))}});export{v as default};
