import{r as o,h as t,H as c}from"./p-d85247d2.js";const e=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();try{document.execCommand("copy")}catch(o){console.warn(o)}document.body.removeChild(o)}render(){return t(c,{key:"a289df472974df8a42fc9cb039ff54e1878baf33",onClick:this.copyContent},t("slot",{key:"bfc68f693f295687825567501ac1f0120e02f179"}))}};export{e as x_copy}