function c(){document.querySelectorAll("[data-copy]").forEach(t=>{t.__hsCopyWired||(t.__hsCopyWired=!0,t.addEventListener("click",()=>{const e=document.getElementById(t.dataset.copy);if(!e)return;const n=e.value||e.textContent||"";navigator.clipboard.writeText(n).then(()=>{const o=t.textContent;t.textContent="Copied!",setTimeout(()=>{t.textContent=o},1200)}).catch(()=>{try{e.select(),document.execCommand("copy");const o=t.textContent;t.textContent="Copied!",setTimeout(()=>{t.textContent=o},1200)}catch{}})}))})}export{c as default};
