{"version":3,"sources":["webpack:///./src/js/modules/localVideo.js"],"names":["Module","this","dom","playButton","el","querySelector","video","addEventListener","handlePlay","bind","style","display","classList","add","controls","play","Component"],"mappings":"0oBAEMA,E,ieAEFC,KAAKC,IAAM,CACTC,WAAYF,KAAKG,GAAGC,cAAc,wCAClCC,MAAOL,KAAKG,GAAGC,cAAc,Y,qCAK/BJ,KAAKC,IAAIC,WAAWI,iBAAiB,QAASN,KAAKO,WAAWC,KAAKR,S,mCAInEA,KAAKC,IAAIC,WAAWO,MAAMC,QAAU,OACpCV,KAAKC,IAAII,MAAMM,UAAUC,IAAI,qBAC7BZ,KAAKC,IAAII,MAAMQ,UAAW,EAC1Bb,KAAKC,IAAII,MAAMS,W,GAlBnB,MAEqBC,W,UAoBNhB","file":"60.556cbf34dcb9414685fb.js","sourcesContent":["import { Component } from '@verndale/core';\n\nclass Module extends Component {\n setupDefaults() {\n this.dom = {\n playButton: this.el.querySelector('.vimeo-v2__video-play-button-wrapper'),\n video: this.el.querySelector('video')\n };\n }\n\n addListeners() {\n this.dom.playButton.addEventListener('click', this.handlePlay.bind(this));\n }\n\n handlePlay() {\n this.dom.playButton.style.display = 'none';\n this.dom.video.classList.add('local-video--play');\n this.dom.video.controls = true;\n this.dom.video.play();\n }\n}\n\nexport default Module;\n"],"sourceRoot":""}