class t{host;config;constructor(t,i){this.host=t,this.config=i}hostDidLoad(){this.host.el.hasAttribute("tabindex")||console.warn("Interactive element does not have a tabindex attribute!",this.host.el),this.host.el.addEventListener("keydown",this.handleKeyDown.bind(this)),this.host.el.addEventListener("click",this.handleActivation.bind(this))}handleKeyDown=t=>{(this.config?.keys??["Enter"," "]).includes(t.key)&&(t.preventDefault(),this.handleActivation(t))};handleActivation=t=>{this.host.lmvzActivation.emit(),this.config?.localHandler&&this.config.localHandler(t)}}export{t as E}