1import{LitElement,html}from"@hh/global.js";class HHBroadcast extends LitElement{static properties={on:{},event:{},data:{}};constructor(){super(),this.method="document",this.on="click",this.handleKeydown=this.handleKeydown.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("click",this.onClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydown),this.removeEventListener("click",this.onClick)}handleKeydown(event){(event.key==="Enter"||event.key===" ")&&(event.preventDefault(),this.onClick(event))}onClick(event){this.method==="document"&&document.body.setAttribute(this.event,this.data)}render(){return html`<slot @click="${this.onClick}" tabindex="0"></slot>`}}customElements.define("hh-broadcast",HHBroadcast); 2//# sourceMappingURL=/cdn/shop/t/1772/assets/component-broadcast.js.map?v=121695876580520204451789367548
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.