1class CopyButton extends HTMLElement{connectedCallback(){this.addEventListener("click",this.#onClick),this.addEventListener("keydown",this.#onKeydown)}disconnectedCallback(){this.removeEventListener("click",this.#onClick),this.removeEventListener("keydown",this.#onKeydown)}get url(){return this.dataset.url||window.location.href}#onClick=()=>{this.#copyToClipboard(this.url).then(()=>{this.#showConfirmation()})};#onKeydown=event=>{(event.key==="Enter"||event.key===" ")&&(event.preventDefault(),this.#onClick())};async#copyToClipboard(text){if(navigator.clipboard?.writeText)return navigator.clipboard.writeText(text)}#showConfirmation(){this.classList.add("is-copied"),clearTimeout(this.confirmationTimeout),this.confirmationTimeout=setTimeout(()=>{this.classList.remove("is-copied")},2e3)}}customElements.define("copy-button",CopyButton); 2//# sourceMappingURL=/cdn/shop/t/252/assets/copy-button.js.map?v=25058596936196156901788273623
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.