{"version":3,"file":"zoomv.691.min.js?t=16464e85b6c10b621d46","mappings":"+hCA8BA,QA9BqBA,GACpB,SAAAC,EAAYC,GAAS,IAAAC,EAAA,M,4FAAAC,CAAA,KAAAH,GAAAI,EAAA,qBAMN,WACdF,EAAKG,MAAMC,SAAQ,SAAAC,GAClBA,EAAKC,iBAAiB,QAASN,EAAKO,qBACrC,GACD,IAACL,EAAA,6BAEsB,SAACM,GAEtB,IAAMC,EAAWD,EAAME,OAAOC,aAAa,kBAC3C,GAAiB,YAAbF,GAAuC,kBAAbA,GAA6C,iBAAbA,EAA8B,CAC3F,IAAMG,EAAWJ,EAAME,OAAOC,aAAa,gBAAgBE,eAAiBL,EAAMM,cAAcC,WAAW,GAAGC,YAAYC,OAAOJ,cAC3HK,EAAalB,EAAKmB,cAClBC,EAAY,CACjBZ,MAAO,WACPa,QAASb,EAAME,OAAOY,KACtBV,SAAAA,EACAM,WAAAA,GAEDK,OAAOC,UAAUC,KAAKL,EACvB,CACF,IAzBCM,KAAKvB,MAAQwB,MAAMC,KAAK7B,EAAQ8B,iBAAiB,gBACjDH,KAAKP,cAAgBpB,EAAQY,aAAa,eAC1Ce,KAAKI,cACN,G","sources":["webpack://@hero-digital/zoom/./src/components/foundation/CtaFooterSticky/CtaFooterSticky.js"],"sourcesContent":["class CtaFooterSticky {\r\n\tconstructor(element) {\r\n\t\tthis.links = Array.from(element.querySelectorAll(\".fdn-button\"));\r\n\t\tthis.dataAttribute = element.getAttribute(\"data-cmp-is\");\r\n\t\tthis.addListeners();\r\n\t}\r\n\r\n\taddListeners = () => {\r\n\t\tthis.links.forEach(link => {\r\n\t\t\tlink.addEventListener(\"click\", this.handleCtaFooterClick);\r\n\t\t});\r\n\t}\r\n\r\n\thandleCtaFooterClick = (event) =>{\r\n\t\t\t//event.preventDefault(); //For test purposes\r\n\t\t\tconst linkType = event.target.getAttribute('data-link-type')\r\n\t\t\tif (linkType === 'buy-now' || linkType === 'contact-sales' || linkType === 'request-demo' ) {\r\n\t\t\t\tconst linkText = event.target.getAttribute('data-en-text').toLowerCase() || event.currentTarget.childNodes[0].textContent.trim().toLowerCase();\r\n\t\t\t\tconst uiLocation = this.dataAttribute;\r\n\t\t\t\tconst dataEvent = {\r\n\t\t\t\t\tevent: \"ctaClick\",\r\n\t\t\t\t\tlinkUrl: event.target.href,\r\n\t\t\t\t\tlinkText,\r\n\t\t\t\t\tuiLocation,\r\n\t\t\t\t};\r\n\t\t\t\twindow.dataLayer.push(dataEvent);\r\n\t\t\t}\r\n\t}\r\n}\r\n\r\nexport default CtaFooterSticky;"],"names":["_createClass","CtaFooterSticky","element","_this","_classCallCheck","_defineProperty","links","forEach","link","addEventListener","handleCtaFooterClick","event","linkType","target","getAttribute","linkText","toLowerCase","currentTarget","childNodes","textContent","trim","uiLocation","dataAttribute","dataEvent","linkUrl","href","window","dataLayer","push","this","Array","from","querySelectorAll","addListeners"],"sourceRoot":""}