import{r as s,c as t,h as i}from"./p-52e3bb32.js";import{K as a,k as h}from"./p-517dd6a0.js";const e=class{constructor(i){s(this,i),this.afOnEsc=t(this,"afOnEsc",7),this.afOnEnter=t(this,"afOnEnter",7),this.afOnTab=t(this,"afOnTab",7),this.afOnSpace=t(this,"afOnSpace",7),this.afOnShiftTab=t(this,"afOnShiftTab",7),this.afOnUp=t(this,"afOnUp",7),this.afOnDown=t(this,"afOnDown",7),this.afOnLeft=t(this,"afOnLeft",7),this.afOnRight=t(this,"afOnRight",7),this.afOnHome=t(this,"afOnHome",7),this.afOnEnd=t(this,"afOnEnd",7),this.afOnKeyUp=t(this,"afOnKeyUp",7)}keyupHandler(s){switch(h(s)){case a.SHIFT_TAB:this.afOnShiftTab.emit(s);break;case a.DOWN_ARROW:this.afOnDown.emit(s),this.afOnKeyUp.emit(s);break;case a.UP_ARROW:this.afOnUp.emit(s),this.afOnKeyUp.emit(s);break;case a.LEFT_ARROW:this.afOnLeft.emit(s),this.afOnKeyUp.emit(s);break;case a.RIGHT_ARROW:this.afOnRight.emit(s),this.afOnKeyUp.emit(s);break;case a.ENTER:this.afOnEnter.emit(s),this.afOnKeyUp.emit(s);break;case a.ESCAPE:this.afOnEsc.emit(s),this.afOnKeyUp.emit(s);break;case a.TAB:this.afOnTab.emit(s),this.afOnKeyUp.emit(s);break;case a.SPACE:this.afOnSpace.emit(s),this.afOnKeyUp.emit(s);break;case a.HOME:this.afOnHome.emit(s),this.afOnKeyUp.emit(s);break;case a.END:this.afOnEnd.emit(s),this.afOnKeyUp.emit(s);break;case a.ANY:this.afOnKeyUp.emit(s);break;default:return void this.afOnKeyUp.emit(s)}}render(){return i("slot",{key:"61588adf83a082a6b1b9135cc1f96b1e32f791bb"})}};export{e as digi_util_keyup_handler}