function a(){const o=(t,e="success")=>window.toast?window.toast(t,e):null;document.querySelectorAll("[data-copy-key]").forEach(t=>{t.addEventListener("click",async()=>{const e=document.getElementById("api-key-raw"),c=e?e.textContent.trim():"";if(c)try{await navigator.clipboard.writeText(c),o("API key copied to clipboard.","success")}catch{o("Clipboard blocked — select the key and copy it manually.","info")}})}),document.querySelectorAll("[data-copy]").forEach(t=>{t.__copyWired||(t.__copyWired=!0,t.addEventListener("click",async()=>{const e=document.getElementById(t.dataset.copy);if(!e)return;const c=(e.value||e.textContent||"").trim();if(c)try{await navigator.clipboard.writeText(c),o("Copied to clipboard.","success")}catch{o("Clipboard blocked — select and copy manually.","info")}}))})}export{a as default};
