{"version":3,"sources":["../../../../dev/j/v3/pages/free-antivirus-download-test-GLOWEB-8706.js"],"names":["getPlatformName","linkText","includes","document","documentElement","getAttribute","testimonialsJP","tns","container","controlsContainer","preventScrollOnTouch","controlsPosition","navPosition","gutter","slideBy","responsive","768","items","992","1280","avm","require","testimonials","querySelectorAll","forEach","link","addEventListener","event","platformName","this","textContent","trim","window","sdl","push","user","click","element","actionType","id"],"mappings":"CAAA,WACC,YAwDC,SAASA,GAAgBC,GACxB,MAAIA,GAASC,SAAS,OAAe,MACjCD,EAASC,SAAS,WAAmB,UACrCD,EAASC,SAAS,OAAe,MACjCD,EAASC,SAAS,MAAc,KAC7B,UA1DT,GAAY,SAFDC,SAASC,gBAAgBC,aAAa,QAE5B,CACpB,GAAIC,GAAiBC,KACpBC,UAAa,8BACbC,kBAAqB,uCACrBC,qBAAwB,QACxBC,iBAAoB,SACpBC,YAAe,SACfC,OAAU,GACVC,QAAW,OACXC,YACCC,KACCC,MAAS,GAEVC,KACCL,OAAU,IAEXM,MACCF,MAAS,KAMZG,KAAIC,QAAQ,0BAA0Bf,OAEhC,CACN,GAAIgB,GAAef,KAClBC,UAAa,2BACbC,kBAAqB,oCACrBC,qBAAwB,QACxBC,iBAAoB,SACpBC,YAAe,SACfC,OAAU,GACVC,QAAW,OACXC,YACCG,KACCL,OAAU,MAMbO,KAAIC,QAAQ,0BAA0BC,GAQxBnB,SAASoB,iBAAiB,6BAYlCC,QAAQ,SAASC,GACtBA,EAAKC,iBAAiB,QAAS,SAASC,GAEvC,KAAMC,GAAe5B,EAAgB6B,KAAKC,YAAYC,OAGtDC,QAAOC,IAAMD,OAAOC,QACpBD,OAAOC,IAAIC,MACVC,MACCC,OACCC,SACCC,WAAY,2BACZC,GAAIX,KAIPD,MAAO","file":"free-antivirus-download-test-GLOWEB-8706.js","sourcesContent":["(function() {\n\t'use strict';\n\tvar lang = document.documentElement.getAttribute('lang');\n\n\tif (lang == 'ja-jp') {\n\t\tvar testimonialsJP = tns({\n\t\t\t\"container\": \".slider-fad-testimonials-jp\",\n\t\t\t\"controlsContainer\": \".slider-fad-testimonials-jp-controls\",\n\t\t\t\"preventScrollOnTouch\": \"force\",\n\t\t\t\"controlsPosition\": \"bottom\",\n\t\t\t\"navPosition\": \"bottom\",\n\t\t\t\"gutter\": 24,\n\t\t\t\"slideBy\": \"page\",\n\t\t\t\"responsive\": {\n\t\t\t\t\"768\": {\n\t\t\t\t\t\"items\": 2\n\t\t\t\t},\n\t\t\t\t\"992\": {\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\"items\": 2\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// Create a slide counter bellow the Carousel\n\t\tavm.require('avast.web.slideCounter')(testimonialsJP);\n\n\t} else {\n\t\tvar testimonials = tns({\n\t\t\t\"container\": \".slider-fad-testimonials\",\n\t\t\t\"controlsContainer\": \".slider-fad-testimonials-controls\",\n\t\t\t\"preventScrollOnTouch\": \"force\",\n\t\t\t\"controlsPosition\": \"bottom\",\n\t\t\t\"navPosition\": \"bottom\",\n\t\t\t\"gutter\": 24,\n\t\t\t\"slideBy\": \"page\",\n\t\t\t\"responsive\": {\n\t\t\t\t\"992\": {\n\t\t\t\t\t\"gutter\": 32\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// Create a slide counter bellow the Carousel\n\t\tavm.require('avast.web.slideCounter')(testimonials);\n\t}\n\n\n\t\t// **************************************************************************\n\t\t// Avaibility links tracking\n\t\t// **************************************************************************\n\t\t// Select all links within the hero-note and bft-hint divs\n\t\tconst links = document.querySelectorAll('.hero-note a, .bft-hint a');\n\n\t\t// Function to extract platform name based on link text\n\t\tfunction getPlatformName(linkText) {\n\t\t\tif (linkText.includes('Mac')) return 'Mac';\n\t\t\tif (linkText.includes('Android')) return 'Android';\n\t\t\tif (linkText.includes('iOS')) return 'iOS';\n\t\t\tif (linkText.includes('PC')) return 'PC';\n\t\t\treturn 'Unknown';\n\t\t}\n\t\n\t\t// Add click event listener to each link\n\t\tlinks.forEach(function(link) {\n\t\t\tlink.addEventListener('click', function(event) {\t\n\t\t\t\t// Extract platform name based on the link text\n\t\t\t\tconst platformName = getPlatformName(this.textContent.trim());\n\t\n\t\t\t\t// Push info to sdl object\n\t\t\t\twindow.sdl = window.sdl || [];\n\t\t\t\twindow.sdl.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: \"below_cta_platform_click\",\n\t\t\t\t\t\t\t\tid: platformName // name of the link the user clicked on\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\t// **************************************************************************\n\n})();\n"]}