import{C as e,Ot as t,T as n,Tt as r,U as i,_ as a,at as o,g as s,h as c,jt as l,q as u,v as d,y as f}from"./D2zWjF09.js";import{bt as p,v as m}from"./Co3OAyKc.js";import{t as h}from"./CHHO6nw6.js";import{c as g,n as _}from"#entry";function v(e=2e3){let{copy:t,copied:n}=p({legacy:!0,copiedDuring:e});return{copy:t,copied:n}}var y=Object.assign(n({__name:`DevtoolsCopyButton`,props:{text:{}},setup(n){let{copy:s,copied:c}=v();return(l,u)=>{let d=g,f=m;return i(),a(f,{text:r(c)?`Copied!`:`Copy`},{default:o(()=>[e(d,{icon:r(c)?`carbon:checkmark`:`carbon:copy`,"aria-label":r(c)?`Copied`:`Copy to clipboard`,class:t(r(c)?`text-[var(--seo-green)]`:``),onClick:u[0]||=e=>r(s)(n.text)},null,8,[`icon`,`aria-label`,`class`])]),_:1},8,[`text`])}}}),{__name:`DevtoolsCopyButton`}),b=[`innerHTML`],x=Object.assign(n({__name:`OCodeBlock`,props:{code:{},lang:{},lines:{type:Boolean,default:!1},transformRendered:{type:Function}},setup(e){let n=c(()=>{let t=_(e.code,e.lang);return e.transformRendered?e.transformRendered(t.value||``):t.value});return(a,o)=>(i(),f(`pre`,{class:t([`code-block p-5`,e.lines?`code-block-lines`:``]),innerHTML:r(n)},null,10,b))}}),{__name:`OCodeBlock`}),S={class:`devtools-snippet`},C={key:0,class:`devtools-snippet-header`},w={class:`devtools-snippet-label`},T=Object.assign(h(n({__name:`DevtoolsSnippet`,props:{label:{},code:{},lang:{default:`js`}},setup(t){return(n,r)=>{let a=y,o=x;return i(),f(`div`,S,[t.label||n.$slots.header?(i(),f(`div`,C,[u(n.$slots,`header`,{},()=>[s(`code`,w,l(t.label),1)],!0),e(a,{text:t.code},null,8,[`text`])])):d(``,!0),e(o,{code:t.code,lang:t.lang,class:`devtools-snippet-block`},null,8,[`code`,`lang`])])}}}),[[`__scopeId`,`data-v-bd254481`]]),{__name:`DevtoolsSnippet`});export{T as t};