import{c as e,s,q as a,v as o,x as t,z as i,e as r,y as l,Q as m,B as n,C as p,G as c}from"./base-lib.js?v=1761009159";import{B as d}from"./index115.js?v=1761009159";import{c as j}from"./index48.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./ace.js?v=1761009159";import"./utils-lib.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./index112.js?v=1761009159";import"./index107.js?v=1761009159";import"./store3.js?v=1761009159";import"./store4.js?v=1761009159";import"./config.js?v=1761009159";import"./store5.js?v=1761009159";import"./hooks.js?v=1761009159";const f={class:"flex flex-col p-[2rem] h-[100%]"},x={class:"flex-1"},v={class:"mt-[1rem] flex justify-end"},u=e({__name:"index",setup(e,{expose:u}){const _=j(),{content:h,path:y}=s(_);return a(()=>_.getMemoData()),u({onCancel:()=>{_.getOverviewData()}}),(e,s)=>{const a=d,j=c;return o(),t("div",f,[s[2]||(s[2]=i("div",{class:"text-secondary h-[2rem] leading-[2rem] mb-[1rem]"},"提示：Ctrl+S 保存",-1)),i("div",x,[r(a,{ref:"aceEditorRef",id:"memo-file",class:"h-48rem",filePath:l(y),modelValue:l(h),"onUpdate:modelValue":s[0]||(s[0]=e=>m(h)?h.value=e:null),onSave:l(_).saveFileEvent},null,8,["filePath","modelValue","onSave"])]),i("div",v,[r(j,{type:"primary",onClick:l(_).saveFileEvent,class:"h-[3.2rem] px-[12px]"},{default:n(()=>s[1]||(s[1]=[p("保存",-1)])),_:1,__:[1]},8,["onClick"])])])}}});export{u as default};
