{"version":3,"sources":["../../../../dev/j/v2/pages/free-mobile-security.js"],"names":["$","avm","require","waypoints","$window","window","$secondaryNav","$media1waypoint","$media2waypoint","$media3waypoint","$media4waypoint","$media5waypoint","$testimonialsWaypoint","$navLinks","$open","$close","setActive","$this","removeClass","addClass","navItemsActivation","on","this","parents","next","$target","prev","find"],"mappings":"CAAA,WACC,YACA,IAAIA,GAAIC,IAAIC,QAAQ,QACnBC,EAAYF,IAAIC,QAAQ,uBACxBE,EAAUJ,EAAEK,QACZC,EAAgBN,EAAE,sBAClBO,EAAkBP,EAAE,kBACpBQ,EAAkBR,EAAE,kBACpBS,EAAkBT,EAAE,kBACpBU,EAAkBV,EAAE,kBACpBW,EAAkBX,EAAE,kBACpBY,EAAwBZ,EAAE,iBAC1Ba,EAAYb,EAAE,aACdc,EAAQd,EAAE,YACVe,EAASf,EAAE,aACXgB,EAAY,SAASC,GACpBJ,EAAUK,YAAY,UACtBD,EAAME,SAAS,WAEhBC,EAAqB,WAChBjB,EAAUI,EAAiB,KAAM,MAAM,IAASS,EAAUhB,EAAE,eAC5DG,EAAUK,EAAiB,KAAM,MAAM,IAASQ,EAAUhB,EAAE,eAC5DG,EAAUM,EAAiB,KAAM,MAAM,IAASO,EAAUhB,EAAE,eAC5DG,EAAUO,EAAiB,KAAM,MAAM,IAASM,EAAUhB,EAAE,eAC5DG,EAAUQ,EAAiB,KAAM,MAAM,IAASK,EAAUhB,EAAE,eAGlEI,GAAQiB,GAAG,gBAAiBD,GAG5BhB,EAAQiB,GAAG,gBAAiB,WACvBlB,EAAUI,EAAiB,KAAM,MAAM,GAC1CD,EAAca,SAAS,cAEvBb,EAAcY,YAAY,aAC1BL,EAAUK,YAAY,WAGnBf,EAAUS,EAAuB,KAAM,MAAM,GAChDN,EAAca,SAAS,UAEvBb,EAAcY,YAAY,YAK5BJ,EAAMO,GAAG,QAAS,WACHrB,EAAEsB,MAAMC,QAAQ,WAAWC,KAAK,WACtCL,SAAS,QACjBnB,EAAEsB,MAAMH,SAAS,YAGlBJ,EAAOM,GAAG,QAAS,WAClB,GAAII,GAAUzB,EAAEsB,MAAMC,QAAQ,UACfE,GAAQC,KAAK,WAAWC,KAAK,YAEhCT,YAAY,UACxBO,EAAQP,YAAY","file":"free-mobile-security.js","sourcesContent":["(function() {\n\t'use strict';\n\tvar $ = avm.require('cash'),\n\t\twaypoints = avm.require('avast.web.waypoints'),\n\t\t$window = $(window),\n\t\t$secondaryNav = $('#secondary-nav-row'),\n\t\t$media1waypoint = $('#privacy-media'),\n\t\t$media2waypoint = $('#media2-anchor'),\n\t\t$media3waypoint = $('#media3-anchor'),\n\t\t$media4waypoint = $('#media4-anchor'),\n\t\t$media5waypoint = $('#media5-anchor'),\n\t\t$testimonialsWaypoint = $('#testimonials'),\n\t\t$navLinks = $('.nav-link'),\n\t\t$open = $('.js-open'),\n\t\t$close = $('.js-close'),\n\t\tsetActive = function($this) {\n\t\t\t$navLinks.removeClass('active');\n\t\t\t$this.addClass('active');\n\t\t},\n\t\tnavItemsActivation = function() {\n\t\t\tif (waypoints($media1waypoint, null, null, true)) { setActive($('#nav-link1')); }\n\t\t\tif (waypoints($media2waypoint, null, null, true)) { setActive($('#nav-link2')); }\n\t\t\tif (waypoints($media3waypoint, null, null, true)) { setActive($('#nav-link3')); }\n\t\t\tif (waypoints($media4waypoint, null, null, true)) { setActive($('#nav-link4')); }\n\t\t\tif (waypoints($media5waypoint, null, null, true)) { setActive($('#nav-link5')); }\n\t\t};\n\n\t$window.on('resize scroll', navItemsActivation);\n\n\t//Secondary navigation: Sticky navigation\n\t$window.on('resize scroll', function() {\n\t\tif (waypoints($media1waypoint, null, null, true)) {\n\t\t\t$secondaryNav.addClass('is-sticky');\n\t\t} else {\n\t\t\t$secondaryNav.removeClass('is-sticky');\n\t\t\t$navLinks.removeClass('active');\n\t\t}\n\n\t\tif (waypoints($testimonialsWaypoint, null, null, true)) {\n\t\t\t$secondaryNav.addClass('hidden');\n\t\t} else {\n\t\t\t$secondaryNav.removeClass('hidden');\n\t\t}\n\t});\n\n\t// Expand/collapse features on 2nd media oject\n\t$open.on('click', function() {\n\t\tvar $target = $(this).parents('section').next('section');\n\t\t$target.addClass('show');\n\t\t$(this).addClass('hidden');\n\t});\n\n\t$close.on('click', function() {\n\t\tvar $target = $(this).parents('section'),\n\t\t\t$openButton = $target.prev('section').find('.js-open');\n\n\t\t$openButton.removeClass('hidden');\n\t\t$target.removeClass('show');\n\t});\n})();\n"]}