{"version":3,"file":"hero.b21d7207be3770f1234c.js","mappings":"4HAAO,ICEDA,EAAkB,WACpB,IAAIC,EAAYC,SAASC,cAAc,yCACnCC,EAAQH,EAAUE,cAAc,SAEhCE,EAAkBJ,EAAUK,aAC5BC,EAAiBN,EAAUO,YAG3BC,EAFaF,EAAiBF,GAChBA,EAAkBE,EAAiB,EAAI,GAAK,GAAK,GACxB,IAEvCE,EAAU,MACVL,EAAMM,MAAMC,OAAS,GAAHC,OAAMH,EAAO,KAEvC,EAEAI,OAAOC,iBAAiB,SDjBA,SAACC,GAAsB,IACvCC,EADuBC,EAAKC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,IAEnC,OAAO,SAAUG,GACTL,GAAOM,aAAaN,GACxBA,EAAQO,WAAWR,EAAME,EAAOI,EACpC,CACJ,CCWkCG,CAASxB,IAE3CA,G","sources":["webpack://global-main/./Foundation/Common/code/Views/Foundation/Common/Debounce.js","webpack://global-main/./Feature/Components/code/Views/Feature/Components/Hero.js"],"sourcesContent":["export const debounce = (func, delay = 100) => {\n var timer;\n return function (event) {\n if (timer) clearTimeout(timer);\n timer = setTimeout(func, delay, event);\n };\n}","import { debounce } from '/Foundation/Common/code/Views/Foundation/Common/Debounce.js'\n\nconst adjustHeroVideo = () => {\n let container = document.querySelector('.hero-component .img-background-layer');\n let video = container.querySelector('video');\n\n let containerHeight = container.clientHeight;\n let containerWidth = container.clientWidth;\n let dimensions = containerWidth / containerHeight;\n let scaleFactor = containerHeight > containerWidth ? 9 / 16 : 16 / 9;\n let scaling = (dimensions / scaleFactor) * 100;\n\n if (scaling > 100)\n video.style.height = `${scaling}%`;\n\n};\n\nwindow.addEventListener('resize', debounce(adjustHeroVideo));\n\nadjustHeroVideo();"],"names":["adjustHeroVideo","container","document","querySelector","video","containerHeight","clientHeight","containerWidth","clientWidth","scaling","style","height","concat","window","addEventListener","func","timer","delay","arguments","length","undefined","event","clearTimeout","setTimeout","debounce"],"sourceRoot":""}