{"version":3,"names":["isKeyboardClickEvent","evt","KeyboardEvent","MouseEvent","detail","isNullOrUndefined","clientX","clientY"],"sources":["src/utils/eventHelper.ts"],"sourcesContent":["import { isNullOrUndefined } from './collection';\n\n/**\n * Given a \"click\" event, it will return true if the event is coming from a keyboard interaction, false otherwise\n * @param {Event} evt The event\n * @returns {boolean} True if keyboard, false if mouse\n */\nexport const isKeyboardClickEvent = (evt: Event): boolean =>\n  evt instanceof KeyboardEvent ||\n  (evt instanceof MouseEvent &&\n    (evt.detail === 0 || isNullOrUndefined(evt.detail)) &&\n    (evt.clientX === 0 || isNullOrUndefined(evt.clientX)) &&\n    (evt.clientY === 0 || isNullOrUndefined(evt.clientY)));\n"],"mappings":"0CAOaA,EAAwBC,GACnCA,aAAeC,eACdD,aAAeE,aACbF,EAAIG,SAAW,GAAKC,EAAkBJ,EAAIG,WAC1CH,EAAIK,UAAY,GAAKD,EAAkBJ,EAAIK,YAC3CL,EAAIM,UAAY,GAAKF,EAAkBJ,EAAIM,U"}