import{d as n,cI as r,N as u,o as c,n as i,w as e,a as t,P as m,e as d,dx as f,cC as _,V as p,f as V,O as C,H as x,s as N}from"../../../js/index-lT0LPxUj.js";const v=N("h3",null,"Code template",-1),h=n({__name:"ModelEditor",setup(T){const l=r(),a=u(()=>l.model);return(k,o)=>(c(),i(x,null,{default:e(()=>[t(C,{title:a.value.label,subtitle:"model editor"},{default:e(()=>[t(m,null,{default:e(()=>[v,t(d(f),{ref:"codeMirror",style:{"font-size":"0.75rem",width:"100%"},modelValue:a.value.codeTemplate,"onUpdate:modelValue":o[0]||(o[0]=s=>a.value.codeTemplate=s)},null,8,["modelValue"])]),_:1}),t(_,null,{default:e(()=>[t(p,{onClick:d(l).save},{default:e(()=>[V("Save")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["title"])]),_:1}))}});export{h as default};
