{"version":3,"sources":["webpack://frontendplaceholder/./Src/Scripts/controllers/program-page.js"],"names":["constructor","elem","querySelectorAll","forEach","x","style","display","heroVideo","querySelector","heroImg","play","gsap","to","duration","opacity"],"mappings":"wMAAA,c,UAEe,MACXA,YAAYC,GACSA,EAAKC,iBAAiB,2BAE1BC,SAAQC,IACb,GAAwB,SAApBA,EAAEC,MAAMC,QACR,OAGJ,MAAMC,EAAYH,EAAEI,cAAc,4BAClC,GAAID,EAAW,CACX,MAAME,EAAUL,EAAEI,cAAc,4BAChCD,EAAUG,OACVC,OAAKC,GAAGH,EAAS,CAAEI,SAAU,EAAGC,QAAS,IACzCH,OAAKC,GAAGL,EAAW,CAAEM,SAAU,EAAGC,QAAS","file":"2282.a2890c49a305f1b96dc0.js","sourcesContent":["import { gsap } from 'gsap';\n\nexport default class EventPage {\n constructor(elem) {\n const heroElms = elem.querySelectorAll('[data-event-page__hero]');\n const startVideos = function () {\n heroElms.forEach(x => {\n if (x.style.display === 'none') {\n return;\n }\n\n const heroVideo = x.querySelector('.event-page__hero__video');\n if (heroVideo) {\n const heroImg = x.querySelector('.event-page__hero__image');\n heroVideo.play();\n gsap.to(heroImg, { duration: 2, opacity: 0 });\n gsap.to(heroVideo, { duration: 2, opacity: 1 });\n }\n });\n };\n\n startVideos();\n }\n}\n"],"sourceRoot":""}