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:"7dbd8d41982f60cc65609aef27901080eb4e4efa",onClick:this.copyContent},t("slot",{key:"aceeb5f0819540433bc2a3f2dc08e0124de37c77"}))}};export{a as x_copy}