{"version":3,"sources":["../../dev/j/windows-detect.js"],"names":["detect","avm","require","detecting","os","isWindows","version","location","href","$","css","isMac","isAndroid"],"mappings":"AAAA,GAAIA,QAASC,IAAIC,QAAQ,gBACrBC,UAAYH,QAEZG,WAAUC,GAAGC,UACa,OAAzBF,UAAUC,GAAGE,QACO,+CAAnBC,SAASC,MACZC,EAAE,UAAUC,IAAI,UAAU,SAGM,QAAzBP,UAAUC,GAAGE,QACC,gDAAnBC,SAASC,MACXC,EAAE,UAAUC,IAAI,UAAU,SAGM,MAAzBP,UAAUC,GAAGE,QACC,8CAAnBC,SAASC,MACXC,EAAE,SAASC,IAAI,UAAU,SAGO,MAAzBP,UAAUC,GAAGE,QACC,8CAAnBC,SAASC,MACXC,EAAE,SAASC,IAAI,UAAU,SAGO,OAAzBP,UAAUC,GAAGE,QACC,+CAAnBC,SAASC,MACXC,EAAE,UAAUC,IAAI,UAAU,SAGM,UAAzBP,UAAUC,GAAGE,SACC,kDAAnBC,SAASC,MACXC,EAAE,aAAaC,IAAI,UAAU,SAIvBP,UAAUC,GAAGO,MAEnBF,EAAE,WAAWC,IAAI,UAAU,SAGrBP,UAAUC,GAAGQ,WAEnBH,EAAE,eAAeC,IAAI,UAAU","file":"windows-detect.js","sourcesContent":["var detect = avm.require('avast.detect');\nvar detecting = detect(); //Browser and OS detection, return following object\n\nif (detecting.os.isWindows) {\n\tif (detecting.os.version === \"10\") {\n\t\tif (location.href !== \"https://www.avast.com/windows-10-antivirus\") {\n\t\t\t$('.os-10').css(\"display\",\"block\");\n\t\t}\t\n\t}\n\telse if (detecting.os.version === \"8.1\") {\n\tif (location.href !== \"https://www.avast.com/windows-8.1-antivirus\") {\n\t\t\t$('.os-81').css(\"display\",\"block\");\n\t\t}\n}\n\telse if (detecting.os.version === \"8\") {\n\tif (location.href !== \"https://www.avast.com/windows-8-antivirus\") {\n\t\t\t$('.os-8').css(\"display\",\"block\");\n\t\t}\n}\n\telse if (detecting.os.version === \"7\") {\n\tif (location.href !== \"https://www.avast.com/windows-7-antivirus\") {\n\t\t\t$('.os-7').css(\"display\",\"block\");\n\t\t}\n}\n\telse if (detecting.os.version === \"XP\") {\n\tif (location.href !== \"https://www.avast.com/windows-xp-antivirus\") {\n\t\t\t$('.os-xp').css(\"display\",\"block\");\n\t\t}\n}\n\telse if (detecting.os.version === \"Vista\") {\n\tif (location.href !== \"https://www.avast.com/windows-vista-antivirus\") {\n\t\t\t$('.os-vista').css(\"display\",\"block\");\n\t\t}\n}\t\t\n} \nelse if (detecting.os.isMac) {\n\t\n\t\t\t$('.os-mac').css(\"display\",\"block\");\n\t\t\n}\nelse if (detecting.os.isAndroid) {\t\n\t\n\t\t\t$('.os-android').css(\"display\",\"block\");\n\t\n}\n\n"]}