import{d as h,u as m,a as C,r as k,t as w,b,o as v,e as l,f as t,g as e,Q as s,_ as x,w as a,h as V,i as Q,n as g}from"./index-DTMcTdxe.js";import{u as y}from"./CodeEditor-Bsg_ZLfA.js";const B={class:"border-2 code-editor"},E={class:"code-editor__actions"},A={class:"inline-block"},L={class:"inline-block"},z=h({__name:"CodeViewer",props:{value:{}},setup(r){const o=m(),c=r,n=C(),i=k(null),{copyContent:u,collapseAll:_,expandAll:p}=y(i,{initialValue:w(c,"value")});return(N,d)=>(v(),b("div",B,[l("div",{ref_key:"editor",ref:i,class:"full-width full-height"},null,512),l("div",E,[l("div",A,[t(s,{round:"",flat:"",dense:"",icon:"unfold_more",title:e(o)("shared.code_editor.actions.expand_all.title"),onClick:e(p)},null,8,["title","onClick"]),t(s,{round:"",flat:"",dense:"",icon:"unfold_less",title:e(o)("shared.code_editor.actions.collapse_all.title"),onClick:e(_)},null,8,["title","onClick"]),t(x,{round:"",flat:"",dense:"","custom-handler":e(u)},null,8,["custom-handler"])]),l("div",L,[t(s,{icon:"settings",round:"",flat:"",dense:""},{default:a(()=>[t(V,{style:{"white-space":"nowrap"},anchor:"bottom right",self:"top end"},{default:a(()=>[t(Q,{dense:"",class:"q-py-sm"},{default:a(()=>[t(g,{modelValue:e(n).wrapLines,"onUpdate:modelValue":d[0]||(d[0]=f=>e(n).wrapLines=f),size:"32px",dense:"",label:e(o)("shared.code_editor.actions.wrap_lines.label"),title:e(o)("shared.code_editor.actions.wrap_lines.title")},null,8,["modelValue","label","title"])]),_:1})]),_:1})]),_:1})])])]))}});export{z as default};
//# sourceMappingURL=CodeViewer-DQSD1sD2.js.map
