{"version":3,"names":["isTouchDevice","DocumentTouch","touchWindow","window","prefixes","split","mq","query","matchMedia","matches","document","join"],"sources":["src/utils/touch-helper.ts"],"sourcesContent":["export const isTouchDevice = (): boolean => {\n var DocumentTouch: any; //object inside window not supported by typescript\n const touchWindow = window; //make the window object any to support \".DocumentTouch\"\n\n const prefixes = \" -webkit- -moz- -o- -ms- \".split(\" \");\n\n const mq = function (query) {\n return window.matchMedia(query).matches;\n };\n\n if (\"ontouchstart\" in window || (touchWindow.DocumentTouch && document instanceof DocumentTouch)) {\n return true;\n }\n\n // include the 'heartz' as a way to have a non matching MQ to help terminate the join\n // https://git.io/vznFH\n var query = [\"(\", prefixes.join(\"touch-enabled),(\"), \"heartz\", \")\"].join(\"\");\n return mq(query);\n};\n"],"mappings":"MAAaA,EAAgB,KAC3B,IAAIC,EACJ,MAAMC,EAAmBC,OAEzB,MAAMC,EAAW,4BAA4BC,MAAM,KAEnD,MAAMC,EAAK,SAAUC,GACnB,OAAOJ,OAAOK,WAAWD,GAAOE,O,EAGlC,GAAI,iBAAkBN,QAAWD,EAAYD,eAAiBS,oBAAoBT,EAAgB,CAChG,OAAO,I,CAKT,IAAIM,EAAQ,CAAC,IAAKH,EAASO,KAAK,oBAAqB,SAAU,KAAKA,KAAK,IACzE,OAAOL,EAAGC,EAAM,S"}