import{r as o,h as t,H as e}from"./p-444192d7.js";const a=class{constructor(t){o(this,t),this.content=void 0}copyContent(){navigator.clipboard?navigator.clipboard.writeText(this.content).then((()=>{}),(o=>{console.warn(o)})):this.fallbackCopyTextToClipboard()}fallbackCopyTextToClipboard(){const o=document.createElement("textarea");o.value=this.content,o.style.top="0",o.style.left="0",o.style.position="fixed",document.body.appendChild(o),o.focus(),o.select(),navigator.clipboard?navigator.clipboard.writeText(this.content).catch((o=>{console.warn("Clipboard write failed",o)})):console.warn("Clipboard API not supported"),document.body.removeChild(o)}render(){return t(e,{key:"4b1febe42e5970fe4c0ece871c620a3ed58168fa",onClick:this.copyContent},t("slot",{key:"b7cd8d93eb34ba613b9da9069b522fae2f90f6b2"}))}};export{a as x_copy}