{"version":3,"file":"youtubeblock.362a45a5b21b92ae1a51.js","mappings":"AACIA,SAASC,iBAAiB,oBAAoBC,SAAQ,SAACC,GACnD,IAAIC,EAAuBD,EAAME,aAClBF,EAAMG,cAAc,gBAC1BC,MAAMC,OAAS,GAAH,OAAMJ,EAAoB,KACnD,IAIAJ,SAASC,iBAAiB,oBAAoBC,SAAQ,SAACC,GACnDA,EAAMM,iBAAiB,SAAS,WAC7B,IAAIC,EAAoBP,EAAMG,cAAc,yBAC7BH,EAAMG,cAAc,0BAC1BC,MAAMI,QAAU,OACzBD,EAAkBH,MAAMI,QAAU,OAClC,IAAIC,EAAST,EAAMG,cAAc,iBACdO,OAAOC,QAAQC,MAAK,SAAAC,GAAC,OAAIA,EAAEC,aAAeL,EAAOM,EAAE,IACzDN,OAAOO,WACvB,GACJ","sources":["webpack://EpiserverFramework/./js/blocks/youtubeblock.js"],"sourcesContent":["function setImgHeight() {\r\n    document.querySelectorAll('.video-container').forEach((video) => {\r\n        var videoContainerHeight = video.offsetHeight;\r\n        var videoImg = video.querySelector('.video-image');\r\n        videoImg.style.height = `${videoContainerHeight}px`;\r\n    });\r\n}\r\n\r\nfunction hideThumbnailOnPlay() {\r\n    document.querySelectorAll('.video-container').forEach((video) => {\r\n        video.addEventListener('click', () => {\r\n           var videoImageWrapper = video.querySelector('.video__image-wrapper');\r\n           var playIcon = video.querySelector('.video__icon-container');\r\n           playIcon.style.display = 'none';\r\n           videoImageWrapper.style.display = 'none';\r\n           var player = video.querySelector('.video-player');\r\n           var playerObject = window.players.find(x => x.ytPlayerId === player.id);\r\n           playerObject.player.playVideo();\r\n        });\r\n    });\r\n}\r\n\r\nsetImgHeight();\r\nhideThumbnailOnPlay();"],"names":["document","querySelectorAll","forEach","video","videoContainerHeight","offsetHeight","querySelector","style","height","addEventListener","videoImageWrapper","display","player","window","players","find","x","ytPlayerId","id","playVideo"],"sourceRoot":""}