import { AnimatorClassSettings , AnimatorRef } from '@arwes/animator' ; import { Bleeps } from '@arwes/bleeps' ; const playTableTransitionBleep = ( bleeps ) : void => { bleeps . readout ?. play ( ) ; } ; const stopTableTransitionBleep = ( bleeps ) : void => { if ( bleeps . readout ?. getIsPlaying ( ) ) { bleeps . readout ?. stop ( ) ; } } ; const onAnimateEntering = ( animator , bleeps ) : void => { playTableTransitionBleep ( bleeps ) ; } ; const onAnimateEntered = ( animator , bleeps ) : void => { stopTableTransitionBleep ( bleeps ) ; } ; const onAnimateExiting = ( animator , bleeps ) : void => { playTableTransitionBleep ( bleeps ) ; } ; const onAnimateExited = ( animator , bleeps ) : void => { stopTableTransitionBleep ( bleeps ) ; } ; const onAnimateUnmount = ( animator , bleeps ) : void => { stopTableTransitionBleep ( bleeps ) ; } ; const animator = { combine : true , manager : 'stagger' , onAnimateEntering , onAnimateEntered , onAnimateExiting , onAnimateExited , onAnimateUnmount } ; export { animator } ;