(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{1438:function(t,e,o){"use strict";var n=o(830);o.n(n).a},1439:function(t,e,o){(e=o(182)(!1)).push([t.i,".youtube-autoplay{overflow:hidden}.youtube-autoplay__iframe{opacity:0}.youtube-autoplay__cover,.youtube-autoplay__iframe{position:absolute;left:0;top:0;width:100%;height:100%;transition:opacity .15s}.youtube-autoplay__cover{padding-top:0;background-color:#fbfbfb}.youtube-autoplay_shown .youtube-autoplay__iframe{opacity:1}.youtube-autoplay_shown .youtube-autoplay__cover{opacity:0;pointer-events:none}",""]),t.exports=e},1744:function(t,e,o){"use strict";o.r(e);o(39),o(28),o(18),o(13),o(35);var n=o(14),r=(o(59),o(4)),c=o(115),l=o(2),h=o(1);function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,o)}return e}function y(t){for(var i=1;i=0&&(this.loadYoutubeAPI(),this.cleanWatchersObservers())}},prepareWatchersObservers:function(){"function"==typeof window.IntersectionObserver?this.initObserver():(this.unwatchScrollTop=this.$watch("scrollTop",this.handleScrollChange),this.unwatchBreakpoint=this.$watch("breakpoint",this.handleScrollChange),this.handleScrollChange())},cleanWatchersObservers:function(){this.observer&&"function"==typeof this.observer.disconnect&&this.observer.disconnect(),this.observer=null,this.raf&&"function"==typeof window.cancelAnimationFrame&&window.cancelAnimationFrame(this.raf),"function"==typeof this.unwatchScrollTop&&this.unwatchScrollTop(),this.unwatchScrollTop=null,"function"==typeof this.unwatchBreakpoint&&this.unwatchBreakpoint(),this.unwatchBreakpoint=null},handleYoutubeApiReady:function(){if(this.videoId&&!this.isVideoShown&&"object"===Object(n.a)(window.YT)&&"function"==typeof window.YT.Player)try{this.player=new window.YT.Player(this.id,{width:"300",height:"200",videoId:this.videoId,playerVars:{autoplay:this.shouldVideoAutoplay?1:0,cc_load_policy:3,controls:1,disablekb:1,iv_load_policy:3,modestbranding:1,loop:1,playlist:this.shouldVideoAutoplay?this.videoId:void 0,rel:0},events:{onReady:this.handleVideoReady,onStateChange:this.handleStateChange}})}catch(t){}},handleVideoReady:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.target;e&&(this.isVideoShown=!0,!this.isIOS&&this.shouldVideoAutoplay&&("function"==typeof e.mute&&e.mute(),"function"==typeof e.playVideo&&e.playVideo()))},handleStateChange:function(t){1===t.data&&this.$emit("playing")},loadYoutubeAPI:function(){if(this.isYoutubeApiReady||"object"===Object(n.a)(window.YT))this.handleYoutubeApiReady();else{window.onYouTubePlayerAPIReady=this.setYoutubeApiReady;var script=window.document.createElement("script");script.src="https://www.youtube.com/iframe_api",script.async=!0,window.document.head.appendChild(script)}}})},w=(o(1438),o(143)),component=Object(w.a)(f,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"youtube-autoplay",class:this.isVideoShown&&"youtube-autoplay_shown"},[e("div",{staticClass:"youtube-autoplay__iframe",attrs:{id:this.id}}),this.isVideoShown?this._e():e("LazyImage",{staticClass:"youtube-autoplay__cover",attrs:{theme:this.theme,src:this.cover}})],1)}),[],!1,null,null,null);e.default=component.exports},830:function(t,e,o){var content=o(1439);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(183).default)("bd60be52",content,!0,{sourceMap:!1})}}]); //# sourceMappingURL=9b4364aa66b2a3e4cb5a.js.map