import{d as n,cJ as r,P as u,o as c,n as i,w as e,a as t,B as m,e as d,dD as f,cC as _,V as p,f as V,z as C,J as v,s as x}from"../../../js/index-BVJsRopY.js";const B=x("h3",null,"Code template",-1),h=n({__name:"ModelEditor",setup(N){const l=r(),a=u(()=>l.model);return(T,o)=>(c(),i(v,null,{default:e(()=>[t(C,{title:a.value.label,subtitle:"model editor"},{default:e(()=>[t(m,null,{default:e(()=>[B,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};
