import{aK as t,P as a,cF as s}from"./utils-lib.js?v=1761009159";import{getRewriteTel as r,getComposerVersion as e}from"./site.js?v=1761009159";import{j as o}from"./base-lib.js?v=1761009159";const i=o("SITE-CONFIG-FILE-STORE",()=>({viewFileHistoryEvent:async a=>{try{const t=await r({filename:a.path,history:a.row});return{status:t.data.status,data:t.data.data}}catch(s){return t(s),{status:!1,msg:"获取文件历史失败"}}},recoverFileEvent:async t=>{try{const r=await a({loading:"正在恢复，请稍后...",request:s({filename:t.path,history:t.row}),data:{status:Boolean}});return{msg:r.status?"恢复成功":"恢复失败",status:r.status}}catch(r){}},getComposerPathEvent:async t=>{try{const s=await a({request:e({path:t}),data:{file_path:String}});return{data:s.data.file_path,status:s.status}}catch(s){return{status:!1,msg:"获取composer路径失败"}}}}));export{i as S};
