{"version":3,"sources":["browserError.js"],"names":["head","document","getElementsByTagName","materialCss","createElement","removeElement","elementId","element","getElementById","parentNode","removeChild","createBrowserError","browser","appendChild","write","isIE","is_ie","ua","navigator","userAgent","indexOf","rel","type","href","test"],"mappings":";AAAA,IAAIA,EAAOC,SAASC,qBAAqB,QAAQ,GAG7CC,EAAcF,SAASG,cAAc,QAKzC,SAASC,EAAcC,GAEjBC,IAAAA,EAAUN,SAASO,eAAeF,GACtCC,EAAQE,WAAWC,YAAYH,GAGjC,SAASI,EAAmBC,GAC1BP,EAAc,QACdL,EAAKa,YAAYV,GACjBF,SAASa,MAAM,0DACfb,SAASa,MAAM,QACfb,SAASa,MAAM,QACfb,SAASa,MAAM,8BACfb,SAASa,MAAM,QACfb,SAASa,MAAM,QACfb,SAASa,MAAM,sCACfb,SAASa,MAAM,8CAAgDF,EAAU,qCACzEX,SAASa,MAAM,0BACfb,SAASa,MACP,uFACEF,EACA,+CAEJX,SAASa,MAAM,SACfb,SAASa,MAAM,QACfb,SAASa,MAAM,0BACfb,SAASa,MAAM,2BACfb,SAASa,MAAM,4BACfb,SAASa,MAAM,2BACfb,SAASa,MAAM,SACfb,SAASa,MAAM,UAIjB,SAASC,IAIAC,OAHPC,GAAKC,UAAUC,UAEHF,GAAGG,QAAQ,UAAY,GAAKH,GAAGG,QAAQ,aAAe,EAzCpEjB,EAAYkB,IAAM,aAClBlB,EAAYmB,KAAO,WACnBnB,EAAYoB,KAAO,+EA4CfR,KACFJ,EAAmB,qBAGjB,OAAOa,KAAKN,UAAUC,YACxBR,EAAmB","file":"browserError.b36912c6.js","sourceRoot":"..\\src","sourcesContent":["var head = document.getElementsByTagName('HEAD')[0];\r\n\r\n// Create new link Element\r\nvar materialCss = document.createElement('link');\r\nmaterialCss.rel = 'stylesheet';\r\nmaterialCss.type = 'text/css';\r\nmaterialCss.href = 'https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.css';\r\n\r\nfunction removeElement(elementId) {\r\n // Removes an element from the document\r\n var element = document.getElementById(elementId);\r\n element.parentNode.removeChild(element);\r\n}\r\n\r\nfunction createBrowserError(browser) {\r\n removeElement('main');\r\n head.appendChild(materialCss);\r\n document.write('
');\r\n document.write('
');\r\n document.write('
');\r\n document.write('
');\r\n document.write('
');\r\n document.write('
');\r\n document.write('
Whoops!
');\r\n document.write('

' + browser + ' is not a supported browser.

');\r\n document.write('
');\r\n document.write(\r\n 'Thank you for coming to Catalyst corporate CECLution. This website does not support ' +\r\n browser +\r\n '. Please use one of the following browsers.'\r\n );\r\n document.write('
');\r\n document.write('');\r\n document.write('
');\r\n}\r\n\r\n/* Sample function that returns boolean in case the browser is Internet Explorer*/\r\nfunction isIE() {\r\n ua = navigator.userAgent;\r\n /* MSIE used to detect old browsers and Trident used to newer ones*/\r\n var is_ie = ua.indexOf('MSIE ') > -1 || ua.indexOf('Trident/') > -1;\r\n return is_ie;\r\n}\r\n\r\n/* Create an alert to show if the browser is IE or not */\r\nif (isIE()) {\r\n createBrowserError('Internet Explorer');\r\n}\r\n\r\nif (/Edge/.test(navigator.userAgent)) {\r\n createBrowserError('Microsoft Edge');\r\n}\r\n"]}