import{Component}from"@theme/component";class CopyToClipboardComponent extends Component{copyToClipboard(){const copyContent=this.getAttribute("text-to-copy");if(!copyContent)return;navigator.clipboard.writeText(copyContent);const copySuccessMessage=this.refs.copySuccessMessage;copySuccessMessage instanceof Element&&copySuccessMessage.classList.remove("visually-hidden")}}customElements.get("copy-to-clipboard-component")||customElements.define("copy-to-clipboard-component",CopyToClipboardComponent);
//# sourceMappingURL=/s/files/1/0677/1399/0759/t/1/assets/copy-to-clipboard.js.map?v=1783078800
