{"version":3,"sources":["../../dev/j/battery-saver-for-windows.js"],"names":["$infoBox","$","on","$self","this","$target","targetOpened","hasClass","removeClass","addClass","detectedOS","avastGlobals","detect","os","name","toLowerCase","$window","window","$buttons","waypoints","avm","require","attr","length","filter","e","preventDefault","targetSection","animate","scrollTop","offset","top","Vue","el","delimiters","data","sliderInfNotiSecMed","tns","container","controlsContainer","preventScrollOnTouch","controlsPosition","controls","navPosition","mouseDrag","speed","center","slideBy","fixedWidth","gutter","loop","responsive","768","1280","1600"],"mappings":"AAkEA,GAlEA,WACC,YAEA,IAAIA,GAAWC,EAAE,eACjBD,GAASE,GAAG,QAAS,WACpB,GAAIC,GAAQF,EAAEG,MACbC,EAAUF,EACVG,IAAiBD,EAAQE,SAAS,SAGnCP,GAASQ,YAAY,UAGjBF,EACHD,EAAQG,YAAY,UAEpBH,EAAQI,SAAS,WAMnB,IAAIC,GAAaC,aAAaC,OAAOC,GAAGC,KAAKC,cAC1CC,EAAUf,EAAEgB,QACZC,EAAWjB,EAAE,iBACbkB,EAAYC,IAAIC,QAAQ,sBA0B1B,IAvBAH,EAASI,KAAK,YAAY,GAEtBrB,EAAE,eAAesB,SACnBP,EAAQd,GAAG,gBAAiB,WACtBiB,EAAUlB,EAAE,oBAAqB,KAAM,MAAM,IAC/CA,EAAE,eAAeQ,SAAS,aAC1BS,EAASI,KAAK,WAAW,KAEzBrB,EAAE,eAAeO,YAAY,aAC7BU,EAASI,KAAK,YAAY,MAI9BJ,EAASM,OAAO,eAAetB,GAAG,QAAS,SAASuB,GAClDA,EAAEC,gBACF,IAAIC,GAAgB1B,EAAEA,EAAEG,MAAMkB,KAAK,QACnCrB,GAAE,cAAc2B,SACdC,UAAWF,EAAcJ,OAASI,EAAcG,SAASC,IAAM,OAMjE9B,EAzB0B,+BAyBGsB,OAC/B,CAAU,GAAIS,MACZC,GA3B0B,8BA4B1BC,YAAa,KAAM,MACnBC,MACEzB,WAAYA,SAUhBT,EAAE,8BAA8BsB,OAAS,EAC5C,GAAIa,qBAAsBC,KACzBC,UAAa,6BACbC,kBAAqB,sCACrBC,qBAAwB,QACxBC,iBAAoB,SACpBC,UAAY,EACZC,YAAe,SACfC,WAAa,EACbC,MAAS,IACTC,QAAU,EACVC,QAAW,EACXC,WAAc,IACdC,OAAU,GACVC,MAAQ,EACRC,YACCC,KACCL,QAAW,EACXL,UAAY,EACZM,WAAc,IACdC,OAAU,IAEXI,MACCN,QAAW,EACXL,UAAY,EACZM,WAAc,IACdC,OAAU,IAEXK,MACCP,QAAW,EACXL,UAAY,EACZM,WAAc,IACdC,OAAU,MAMd,IAAIhD,EAAE,sCAAsCsB,OAAS,EACpD,GAAIa,qBAAsBC,KACzBC,UAAa,qCACbC,kBAAqB,8CACrBC,qBAAwB,QACxBC,iBAAoB,SACpBC,UAAY,EACZC,YAAe,SACfC,WAAa,EACbC,MAAS,IACTC,QAAU,EACVC,QAAW,EACXC,WAAc,IACdC,OAAU,GACVC,MAAQ,EACRC,YACCC,KACCL,QAAW,EACXL,UAAY,EACZM,WAAc,IACdC,OAAU,IAEXI,MACCN,QAAW,EACXL,UAAY,EACZM,WAAc,IACdC,OAAU,IAEXK,MACCP,QAAW,EACXL,UAAY,EACZM,WAAc,IACdC,OAAU","file":"battery-saver-for-windows.js","sourcesContent":["(function() {\n\t'use strict';\n\n\tvar $infoBox = $('.js-question');\n\t$infoBox.on('click', function() {\n\t\tvar $self = $(this),\n\t\t\t$target = $self,\n\t\t\ttargetOpened = !!$target.hasClass('expand');\n\n\t\t// Close all boxes\n\t\t$infoBox.removeClass('expand');\n\n\t\t// Check current box for toggle\n\t\tif (targetOpened) {\n\t\t\t$target.removeClass('expand');\n\t\t} else {\n\t\t\t$target.addClass('expand');\n\t\t}\n\t});\n\n\n\t\t\t// THIS COULD BE REPLACED WITH AFTER FILE USES SNIPPET\n\tvar detectedOS = avastGlobals.detect.os.name.toLowerCase(),\n $window = $(window),\n $buttons = $('.sticky-bar a'),\n waypoints = avm.require('avast.web.waypoints'),\n platformDetectionSelector = '#sticky-bar-platform-detect'\n\n $buttons.attr(\"tabindex\",-1);\n\n if ($('.sticky-bar').length) {\n $window.on('resize scroll', function () {\n if (waypoints($('.sticky-waypoint'), null, null, true)) {\n $('.sticky-bar').addClass('is-sticky');\n $buttons.attr(\"tabindex\",0);\n } else {\n $('.sticky-bar').removeClass('is-sticky');\n $buttons.attr(\"tabindex\",-1);\n }\n });\n\n $buttons.filter('[href^=\"#\"]').on('click', function(e) {\n e.preventDefault()\n var targetSection = $($(this).attr('href'))\n $('html, body').animate({\n scrollTop: targetSection.length ? targetSection.offset().top : 0,\n })\n })\n }\n\n\n if ($(platformDetectionSelector).length) {\n var app = new Vue({\n el: platformDetectionSelector,\n delimiters: [\"<%\", \"%>\"],\n data: {\n detectedOS: detectedOS,\n }\n })\n }\n // end of possible code removal\n\n\n})();\n\n// carousel controllers\nif ($('.slider-sliderSliNotiSecSm').length > 0) {\n\tvar sliderInfNotiSecMed = tns({\n\t\t\"container\": \".slider-sliderSliNotiSecSm\",\n\t\t\"controlsContainer\": \".slider-sliderSliNotiSecSm-controls\",\n\t\t\"preventScrollOnTouch\": \"force\",\n\t\t\"controlsPosition\": \"bottom\",\n\t\t\"controls\": false,\n\t\t\"navPosition\": \"bottom\",\n\t\t\"mouseDrag\": true,\n\t\t\"speed\": 400,\n\t\t\"center\": false,\n\t\t\"slideBy\": 1,\n\t\t\"fixedWidth\": 250,\n\t\t\"gutter\": 16,\n\t\t\"loop\": false,\n\t\t\"responsive\": {\n\t\t\t\"768\": {\n\t\t\t\t\"slideBy\": 1,\n\t\t\t\t\"controls\": false,\n\t\t\t\t\"fixedWidth\": 316,\n\t\t\t\t\"gutter\": 32\n\t\t\t},\n\t\t\t\"1280\": {\n\t\t\t\t\"slideBy\": 1,\n\t\t\t\t\"controls\": true,\n\t\t\t\t\"fixedWidth\": 316,\n\t\t\t\t\"gutter\": 64\n\t\t\t},\n\t\t\t\"1600\": {\n\t\t\t\t\"slideBy\": 1,\n\t\t\t\t\"controls\": true,\n\t\t\t\t\"fixedWidth\": 316,\n\t\t\t\t\"gutter\": 64\n\t\t\t}\n\t\t}\n\t});\n}\n\nif ($('.slider-sliderSliNotiSecSmFeatures').length > 0) {\n\tvar sliderInfNotiSecMed = tns({\n\t\t\"container\": \".slider-sliderSliNotiSecSmFeatures\",\n\t\t\"controlsContainer\": \".slider-sliderSliNotiSecSmFeatures-controls\",\n\t\t\"preventScrollOnTouch\": \"force\",\n\t\t\"controlsPosition\": \"bottom\",\n\t\t\"controls\": false,\n\t\t\"navPosition\": \"bottom\",\n\t\t\"mouseDrag\": true,\n\t\t\"speed\": 400,\n\t\t\"center\": false,\n\t\t\"slideBy\": 1,\n\t\t\"fixedWidth\": 250,\n\t\t\"gutter\": 16,\n\t\t\"loop\": false,\n\t\t\"responsive\": {\n\t\t\t\"768\": {\n\t\t\t\t\"slideBy\": 1,\n\t\t\t\t\"controls\": false,\n\t\t\t\t\"fixedWidth\": 316,\n\t\t\t\t\"gutter\": 32\n\t\t\t},\n\t\t\t\"1280\": {\n\t\t\t\t\"slideBy\": 1,\n\t\t\t\t\"controls\": true,\n\t\t\t\t\"fixedWidth\": 316,\n\t\t\t\t\"gutter\": 64\n\t\t\t},\n\t\t\t\"1600\": {\n\t\t\t\t\"slideBy\": 1,\n\t\t\t\t\"controls\": true,\n\t\t\t\t\"fixedWidth\": 290,\n\t\t\t\t\"gutter\": 64\n\t\t\t}\n\t\t}\n\t});\n}\n"]}