import{r as o,h as t,H as c}from"./p-40eb06b7.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:"0d00222c32d5f65842a653b08def7df4e6b3987b",onClick:this.copyContent},t("slot",{key:"698353c486befc03e1b4b274f0a6ecc07be285dc"}))}};export{e as x_copy}