{"version":3,"file":"refreshedproductheroblock.f62948ee.js","mappings":"AACIA,OAAOC,YAAcD,OAAOC,aAAe,CAAC,EAC5CD,OAAOC,YAAYC,0BAA4BF,OAAOC,YAAYC,2BAA6B,CAAC,EAChGF,OAAOC,YAAYC,0BAA0BC,KAAO,WAIhD,IAAIC,EAAQC,SAASC,iBAAiB,4BAClCC,EAAWF,SAASC,iBAAiB,2BACrCE,EAASH,SAASC,iBAAiB,wBAEnCG,EAAmBJ,SAASC,iBAAiB,8BAC7CI,EAAWL,SAASC,iBAAiB,2BACrCK,EAAcN,SAASC,iBAAiB,iBAE5CN,OAAOY,iBAAiB,UAAU,WAC9B,IAAK,IAAIC,EAAI,EAAGA,EAAIT,EAAMU,OAAQD,IAAK,CACnC,IAAIE,EAAcX,EAAMS,GAAGG,aAAeT,EAASM,GAAGG,aAClDC,KAAKjB,OAAOkB,WAAa,MACzBH,GAAe,KAEnBP,EAAOK,GAAGM,MAAMC,OAASL,EAAc,IAC3C,CAEA,IAASF,EAAI,EAAGA,EAAIH,EAASI,OAAQD,IAC7BE,EAAc,GACdJ,EAAYE,GAAGG,aAAeN,EAASG,GAAGG,aAC1CD,GAAeJ,EAAYE,GAAGG,aAG9BD,GAAeL,EAASG,GAAGG,aAE/BP,EAAiBI,GAAGM,MAAMC,OAASL,EAAc,IAEzD,IAEAf,OAAOqB,cAAc,IAAIC,MAAM,UACnC,EAEAtB,OAAOC,YAAYC,0BAA0BqB,WAAY","sources":["webpack://advanced-web/./UI/js/core/modules/refreshedproductheroblock.js"],"sourcesContent":["(function () {\r\n window.oneadvanced = window.oneadvanced || {};\r\n window.oneadvanced.refreshedproductheroblock = window.oneadvanced.refreshedproductheroblock || {};\r\n window.oneadvanced.refreshedproductheroblock.init = function () {\r\n //console.log(\"initializing refreshedproductheroblock js.......\");\r\n\r\n //Below code is used to add the height for the product-hero__image class on resize\r\n var image = document.querySelectorAll(\".product-hero__image img\");\r\n var features = document.querySelectorAll(\".product-hero__features\");\r\n var parent = document.querySelectorAll(\".product-hero__image\");\r\n\r\n var productheroblock = document.querySelectorAll(\".refreshedproductheroblock\");\r\n var gradient = document.querySelectorAll(\".product-hero__gradient\");\r\n var producthero = document.querySelectorAll(\".product-hero\");\r\n\r\n window.addEventListener(\"resize\", function () {\r\n for (var i = 0; i < image.length; i++) {\r\n var totalHeight = image[i].clientHeight + features[i].clientHeight;\r\n if (this.window.innerWidth > 639) {\r\n totalHeight -= 100;\r\n }\r\n parent[i].style.height = totalHeight + \"px\";\r\n }\r\n\r\n for (var i = 0; i < gradient.length; i++) {\r\n var totalHeight = 40;\r\n if (producthero[i].clientHeight > gradient[i].clientHeight) {\r\n totalHeight += producthero[i].clientHeight;\r\n }\r\n else {\r\n totalHeight += gradient[i].clientHeight;\r\n }\r\n productheroblock[i].style.height = totalHeight + \"px\";\r\n }\r\n });\r\n\r\n window.dispatchEvent(new Event('resize'));\r\n };\r\n\r\n window.oneadvanced.refreshedproductheroblock.hasLoaded = true;\r\n})();"],"names":["window","oneadvanced","refreshedproductheroblock","init","image","document","querySelectorAll","features","parent","productheroblock","gradient","producthero","addEventListener","i","length","totalHeight","clientHeight","this","innerWidth","style","height","dispatchEvent","Event","hasLoaded"],"sourceRoot":""}