import{cV as u,p as c,u as g,a as h,hH as m,j as t,C as p,hI as y}from"./bundle.CHKSNOJF.js";import{u as C}from"./hooks-Bc71oBPC.js";function f(){const o=u(),{payload:e,setPayload:n}=o,[a,l]=c.useState(e.design?.design.body),{t:i}=g(),{handleBlockChange:d}=C({payload:e,setPayload:n}),s=h();return m(()=>d("body",a||""),500,[a]),t.jsx(p,{title:i("body"),className:"shadow-sm",childrenClassName:"pt-6",padding:"small",height:"full",style:{borderColor:s.$24},headerStyle:{borderColor:s.$20},children:t.jsx(y,{theme:s.name==="invoiceninja.dark"?"vs-dark":"light",defaultLanguage:"twig",language:"twig",value:e.design?.design.body,options:{minimap:{enabled:!1}},onChange:r=>l(r)})})}export{f as default};
