import{r as o,h as t,H as e}from"./p-4afc0173.js";const c=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(e,{key:"cf335b97f84b055ebd5de911e880c85a440cba84",onClick:this.copyContent},t("slot",{key:"5e797834504f24557bdcce2bb1e1e00636e81a26"}))}};export{c as x_copy}