{"version":3,"sources":["../../dev/j/homepage-v2.js"],"names":["$","length","tns","container","controlsContainer","preventScrollOnTouch","controlsPosition","controls","navPosition","mouseDrag","speed","center","slideBy","fixedWidth","gutter","loop","responsive","768","1280","1600","document","ready","performanceCookiesEnabled","activeGroups","window","OptanonActiveGroups","split","includes","jumpshotBanner","querySelector","avastGlobals","web","locale","localStorage","getItem","style","display","addEventListener","e","setItem","sdl","push","user","click","element","actionType","component","path","sdlObj","screen","id","event","classList","add"],"mappings":"CAAA,WACC,YAEA,IAAIA,EAAE,8BAA8BC,OAAS,EAC5C,CAA0BC,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,WAYfd,EAAEoB,UAAUC,MAAM,WAYhB,QAASC,KACR,GACCC,GAAeC,OAAOC,mBAIvB,OAA4B,gBAAjBF,IAEHA,EAAaG,MAAM,KAAKC,SALH,SAZ/B,GAAIC,GAAiBR,SAASS,cAAc,mBAGb,UAA3BC,aAAaC,IAAIC,QAAwC,OAAnBJ,GAA2F,OAAhEK,aAAaC,QAAQ,yCAGzFN,EAAeO,MAAMC,QAAU,QAiB/BR,EAAeC,cAAc,KAAKQ,iBAAiB,QAAS,SAASC,GAEpEL,aAAaM,QAAQ,sCAAuC,QAGxDjB,KACHkB,IAAIC,MACHC,MACCC,OACCC,SACCC,WAAY,QACZC,UAAW,OACXC,KAAM,IAAMC,OAAOC,OAAOjB,OAAS,QACnCkB,GAAI,qBAIPC,MAAO,yBAMVvB,EAAeC,cAAc,UAAUQ,iBAAiB,QAAS,SAAUC,GAE1EL,aAAaM,QAAQ,sCAAuC,QAG5DX,EAAewB,UAAUC,IAAI,QAGzB/B,KACHkB,IAAIC,MACHC,MACCC,OACCC,SACCC,WAAY,QACZC,UAAW,YACXC,KAAM,IAAMC,OAAOC,OAAOjB,OAAS,aACnCkB,GAAI,qBAIPC,MAAO","file":"homepage-v2.js","sourcesContent":["(function() {\n\t'use strict';\n\n\tif ($('.slider-sliderSliNotiSecSm').length > 0) {\n\t\tvar sliderInfNotiSecMed = tns({\n\t\t\t\"container\": \".slider-sliderSliNotiSecSm\",\n\t\t\t\"controlsContainer\": \".slider-sliderSliNotiSecSm-controls\",\n\t\t\t\"preventScrollOnTouch\": \"force\",\n\t\t\t\"controlsPosition\": \"bottom\",\n\t\t\t\"controls\": false,\n\t\t\t\"navPosition\": \"bottom\",\n\t\t\t\"mouseDrag\": true,\n\t\t\t\"speed\": 400,\n\t\t\t\"center\": false,\n\t\t\t\"slideBy\": 1,\n\t\t\t\"fixedWidth\": 250,\n\t\t\t\"gutter\": 16,\n\t\t\t\"loop\": false,\n\t\t\t\"responsive\": {\n\t\t\t\t\"768\": {\n\t\t\t\t\t\"slideBy\": 1,\n\t\t\t\t\t\"controls\": false,\n\t\t\t\t\t\"fixedWidth\": 316,\n\t\t\t\t\t\"gutter\": 32\n\t\t\t\t},\n\t\t\t\t\"1280\": {\n\t\t\t\t\t\"slideBy\": 1,\n\t\t\t\t\t\"controls\": true,\n\t\t\t\t\t\"fixedWidth\": 316,\n\t\t\t\t\t\"gutter\": 64\n\t\t\t\t},\n\t\t\t\t\"1600\": {\n\t\t\t\t\t\"slideBy\": 1,\n\t\t\t\t\t\"controls\": true,\n\t\t\t\t\t\"fixedWidth\": 316,\n\t\t\t\t\t\"gutter\": 64\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n})();\n\n\n//\n//\tJumpshot – Banner –– GLOWEB-8731\n//\n$(document).ready(function(){\n\n\t// Get DOM reference to the banner\n\tvar jumpshotBanner = document.querySelector('.jumpshot-banner');\n\n\t// Don't show the Banner to visitors, which already interacted with it (by clicking the \"here\" link or the \"close\" button)\n\tif (avastGlobals.web.locale == 'en-us' && jumpshotBanner !== null && localStorage.getItem('visitorInteractedWithJumpshotBanner') === null) {\n\n\t\t// Show the banner\n\t\tjumpshotBanner.style.display = 'block';\n\n\t\t// Check if Performance cookies are enabled\n\t\tfunction performanceCookiesEnabled() {\n\t\t\tvar\n\t\t\t\tactiveGroups = window.OptanonActiveGroups,\n\t\t\t\tperformanceCookiesGroupID = 'C0002';\t// Optanon code for Performance cookies\n\n\t\t\t// Ensure activeGroups is defined and is a string\n\t\t\tif (typeof activeGroups === 'string') {\n\t\t\t\t// Check if the groupID is present in the array\n\t\t\t\treturn activeGroups.split(',').includes(performanceCookiesGroupID);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\n\t\t//\tBanner –– Link\n\t\tjumpshotBanner.querySelector('a').addEventListener('click', function(e){\n\t\t\t// Set indicator of visitor's interaction with the banner\n\t\t\tlocalStorage.setItem('visitorInteractedWithJumpshotBanner', 'true');\n\n\t\t\t// Track visitor only if Performance Cookies are enabled\n\t\t\tif (performanceCookiesEnabled()) {\n\t\t\t\tsdl.push({\n\t\t\t\t\tuser: {\n\t\t\t\t\t\tclick: {\n\t\t\t\t\t\t\telement: {\n\t\t\t\t\t\t\t\tactionType: 'click', // 👉 TODO: Verify with @OndrejSubrt\n\t\t\t\t\t\t\t\tcomponent: 'link', // 👉 TODO: Verify with @OndrejSubrt\n\t\t\t\t\t\t\t\tpath: '/' + sdlObj.screen.locale + '/link', // 👉 TODO: Verify with @OndrejSubrt\n\t\t\t\t\t\t\t\tid: 'jumpshot-banner' // 👉 TODO: Verify with @OndrejSubrt\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tevent: 'user.click.element'\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\t//\tBanner – Close button\n\t\tjumpshotBanner.querySelector('button').addEventListener('click', function (e) {\n\t\t\t// Set indicator of visitor's interaction with the banner\n\t\t\tlocalStorage.setItem('visitorInteractedWithJumpshotBanner', 'true');\n\n\t\t\t// Hide the banner\n\t\t\tjumpshotBanner.classList.add('hide');\n\n\t\t\t// Track visitor only if Performance Cookies are enabled\n\t\t\tif (performanceCookiesEnabled()) {\n\t\t\t\tsdl.push({\n\t\t\t\t\tuser: {\n\t\t\t\t\t\tclick: {\n\t\t\t\t\t\t\telement: {\n\t\t\t\t\t\t\t\tactionType: 'close',\n\t\t\t\t\t\t\t\tcomponent: 'cmp-alert', // 👉 TODO: Verify with @OndrejSubrt\n\t\t\t\t\t\t\t\tpath: '/' + sdlObj.screen.locale + '/cmp-alert', // 👉 TODO: Verify with @OndrejSubrt\n\t\t\t\t\t\t\t\tid: 'jumpshot-banner' // 👉 TODO: Verify with @OndrejSubrt\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tevent: 'user.click.element'\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n});\n"]}