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