(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{115:function(d,u,t){"use strict";t.r(u);var r=function(){var o=this,h=o._self._c;return o.isVisiblePIP?h("PremiumPlayerButton",{attrs:{title:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435 (I)",icon:"player/pip"},on:{click:o.handleTogglePip}}):o._e()},n=[],c=t(408),v=t(45),f={name:"PremiumPlayerButtonPIP",components:{PremiumPlayerButton:v.default},props:{media:{type:Object,required:!0}},data:function(){return{enabledPip:!1}},computed:{isVisiblePIP:function(){return this.enabledPip&&!this.media.audio}},mounted:function(){this.enabledPip=Object(c.a)()},methods:{handleTogglePip:function(){var o=this.media.player;this.enabledPip&&(document.pictureInPictureElement?document.exitPictureInPicture().catch(function(h){console.error("\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u0432\u044B\u0445\u043E\u0434\u0435 \u0438\u0437 \u0440\u0435\u0436\u0438\u043C\u0430 PiP:",h)}):o.requestPictureInPicture().catch(function(h){console.error("\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 PiP:",h)}))}}},g=f,y=t(0),x=Object(y.a)(g,r,n,!1,null,null,null),b=u.default=x.exports},116:function(d,u,t){"use strict";t.r(u);var r=function(){var l=this,o=l._self._c;return o("PremiumPlayerButton",{attrs:{title:"Chromecast",icon:"player/chromecast"},on:{click:l.handleStartChromeCast}})},n=[],c=t(45),v={name:"PremiumPlayerButtonChromecast",components:{PremiumPlayerButton:c.default},props:{media:{type:Object,required:!0},config:{type:Object,required:!0}},methods:{handleStartChromeCast:function(){if(this.$nuxt.$chromecast.available){if(this.$nuxt.$chromecast.connected){this.$nuxt.$chromecast.disconnect(),this.$emit("toggle-chromecast",!1);return}var l=this.media.audio?this.config.audioSrc:this.config.videoSrc;try{this.$nuxt.$chromecast.cast(l,{title:this.config.title,description:this.config.description,poster:this.config.previewSrc,currentTime:this.media.currentTime,videoId:this.media.id}),this.$emit("toggle-chromecast",!0)}catch(o){console.error(o),this.$toast.error("Error connection Chromecast")}}}}},f=v,g=t(0),y=Object(g.a)(f,r,n,!1,null,null,null),x=u.default=y.exports},117:function(d,u,t){"use strict";t.r(u);var r=function(){var o=this,h=o._self._c;return h("PremiumPlayerSettings",{ref:"settings",attrs:{media:o.media,config:o.config,disabled:o.disabled,"is-mobile":o.isMobile,"visible-audio":o.visibleAudio},on:{"visible-settings":o.handleToggleSettings,"change-quality":o.handleChangeQuality,"change-speed":o.handleChangeSpeed,"toggle-audio":o.handleToggleAudio},scopedSlots:o._u([{key:"default",fn:function(C){var j=C.opened;return[h("PremiumPlayerButton",{attrs:{disabled:o.disabled,title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",icon:"settings",rotate:j}})]}}])})},n=[],c=t(358),v=t(45),f={name:"PremiumPlayerButtonSettings",components:{PremiumPlayerButton:v.default,PremiumPlayerSettings:c.default},props:{media:{type:Object,required:!0},config:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},visibleAudio:{type:Boolean,default:!1}},methods:{handleToggleSettings:function(o){this.disabled||this.$emit("visible-settings",o)},handleChangeQuality:function(o){this.disabled||this.$emit("change-quality",o)},handleToggleAudio:function(o){this.disabled||this.$emit("toggle-audio",o)},handleChangeSpeed:function(o){this.disabled||this.$emit("change-speed",o)},handleCloseAllSettings:function(){this.$refs.settings.handleCloseAllSettings()}}},g=f,y=t(0),x=Object(y.a)(g,r,n,!1,null,null,null),b=u.default=x.exports},235:function(d,u,t){var r=t(573);r.__esModule&&(r=r.default),typeof r=="string"&&(r=[[d.i,r,""]]),r.locals&&(d.exports=r.locals);var n=t(8).default,c=n("653536a0",r,!0,{sourceMap:!1})},238:function(d,u,t){var r=t(579);r.__esModule&&(r=r.default),typeof r=="string"&&(r=[[d.i,r,""]]),r.locals&&(d.exports=r.locals);var n=t(8).default,c=n("17552f2c",r,!0,{sourceMap:!1})},244:function(d,u,t){var r=t(591);r.__esModule&&(r=r.default),typeof r=="string"&&(r=[[d.i,r,""]]),r.locals&&(d.exports=r.locals);var n=t(8).default,c=n("76f9c494",r,!0,{sourceMap:!1})},250:function(d,u,t){var r=t(603);r.__esModule&&(r=r.default),typeof r=="string"&&(r=[[d.i,r,""]]),r.locals&&(d.exports=r.locals);var n=t(8).default,c=n("b9beb0ba",r,!0,{sourceMap:!1})},351:function(d,u,t){"use strict";t.r(u);var r=function(){var a=this,i=a._self._c;return i("div",{staticClass:"premium-player-body",on:{touchend:a.handleClickBody,touchmove:a.handleTouchMoveBody,mousedown:a.handleClickBody}},[i("PremiumPlayerNotificationRewind",{attrs:{time:a.totalTime,visible:a.isFastRewind}}),a._v(" "),i("PremiumPlayerNotificationForward",{attrs:{time:a.totalTime,visible:a.isFastForward}}),a._v(" "),i("video",{ref:"video",staticClass:"premium-player-body__media",attrs:{playsinline:"",preload:"none",crossorigin:"anonymous"}}),a._v(" "),a.isVisibleThumbnail?i("div",{staticClass:"premium-player-body__thumbnail",style:a.styleThumbnail}):a._e(),a._v(" "),a.isConnectedChromecast?i("PremiumPlayerBackground",{attrs:{icon:"player/chromecast"}},[a._v(`
    \u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043D\u0430 `+a._s(a.media.chromecastDevice)+`
  `)]):a.media.audio?i("PremiumPlayerBackground",{attrs:{icon:"player/headphone"}},[a._v(`
    \u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u0432 \u0430\u0443\u0434\u0438\u043E\u0440\u0435\u0436\u0438\u043C\u0435
  `)]):a._e()],1)},n=[],c=t(23),v=t.n(c),f=t(36),g=t(46),y=t(352),x=t(353),b=t(354),l={name:"PremiumPlayerBody",components:{PremiumPlayerBackground:b.default,PremiumPlayerNotificationForward:x.default,PremiumPlayerNotificationRewind:y.default},mixins:[g.a],props:{videoSrc:{type:String,required:!0},audioSrc:{type:String,required:!0},media:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},config:{type:Object,default:function(){return{percentVolume:5,fastSeconds:5,percentageRewindPlacement:30}}}},data:function(){return{savedCurrentTime:!1,savedPlayingPlayer:null,isTouchMove:!1,isFastRewind:!1,isFastForward:!1,counter:0,totalTime:0,timeoutMilliseconds:250,currentPosition:null,hls:null}},computed:{isConnectedChromecast:function(){return this.media.chromecastConnected},isVisibleThumbnail:function(){return this.media.thumbnail.currentImage.visible},loadedThumbnail:function(){var a=this.media.thumbnail,i=a.currentImage,e=a.loadedImages;return!i.fileName||!this.isVisibleThumbnail?{image:null}:e.find(function(m){var P=m.fileName;return P===i.fileName})},styleThumbnail:function(){var a;if(!((a=this.loadedThumbnail)!==null&&a!==void 0&&a.image))return{};var i=this.media.thumbnail,e=i.currentImage,m=i.width,P=i.height,p=this.media.size.width+2,B=this.media.size.height+2,S=this.loadedThumbnail.width,E=this.loadedThumbnail.height,O=p/(m-2),T=B/(P-2);return{width:"".concat(p,"px"),height:"".concat(B,"px"),backgroundImage:"url(".concat(this.loadedThumbnail.image.src,")"),backgroundPosition:"".concat(-e.x*O,"px ").concat(-e.y*T,"px"),backgroundSize:"".concat(S*O,"px ").concat(E*T,"px")}}},watch:{counter:function(a){if(a>1)switch(this.currentPosition){case"left":this.handleUpdateTotalTime(),this.handleFastRewind();break;case"right":this.handleUpdateTotalTime(),this.handleFastForward();break;default:this.$emit("fullscreen-toggle");break}}},beforeDestroy:function(){this.handleDestroyVideo()},methods:{handleStopFromChromecast:function(){this.hls&&(this.hls.stopLoad(),this.onBufferCreatedHLS())},handleResumeFromChromecast:function(){this.hls&&(this.hls.startLoad(this.media.currentTime),this.handleResumeBuffering())},handleInitHLS:function(){var a=this;this.hls||(this.$emit("init-player",this.$refs.video),this.hls=new f.a({autoStartLoad:!1,maxBufferLength:60,maxMaxBufferLength:120,maxBufferSize:60*1e3*1e3,backBufferLength:20,maxBufferHole:.5,liveSyncDurationCount:3,liveMaxLatencyDurationCount:5}),this.hls.loadSource(this.media.audio?this.audioSrc:this.videoSrc),this.hls.on(f.a.Events.MANIFEST_PARSED,function(){var i=a.hls.levels.map(function(m){return Math.min(m.height,m.width)}).sort(function(m,P){return Number(P)-Number(m)});a.$emit("update-quality-list",[].concat(v()(i),[-1])),a.hls.attachMedia(a.media.player),a.media.player.addEventListener("loadedmetadata",a.onLoadedDataPlayer);var e=a.media.currentTime;a.hls.startLoad(e),e&&(a.$refs.video.currentTime=e)}),this.media.player.addEventListener("timeupdate",this.onTimeupdatePlayer),this.media.player.addEventListener("progress",this.onProgressPlayer),this.media.player.addEventListener("waiting",this.onWaitingPlayer),this.hls.on(f.a.Events.LEVEL_SWITCHED,this.onSwitchedLevelHLS),this.hls.on(f.a.Events.ERROR,this.onErrorHSL),this.hls.on(f.a.Events.FRAG_BUFFERED,this.onBufferedHLS),this.hls.on(f.a.Events.BUFFER_CREATED,this.onBufferCreatedHLS),this.media.player.addEventListener("play",this.onPlayPlayer),this.media.player.addEventListener("pause",this.onPausePlayer))},handleDestroyVideo:function(){!this.hls||!this.media.player||(this.hls.off(f.a.Events.ERROR),this.hls.off(f.a.Events.FRAG_BUFFERED),this.hls.off(f.a.Events.MANIFEST_PARSED),this.hls.off(f.a.Events.BUFFER_CREATED),this.hls.off(f.a.Events.LEVEL_SWITCHED),this.hls.stopLoad(),this.hls.detachMedia(),this.hls.destroy(),this.hls=null,this.media.player.removeEventListener("loadedmetadata",this.onLoadedDataPlayer),this.media.player.removeEventListener("timeupdate",this.onTimeupdatePlayer),this.media.player.removeEventListener("progress",this.onProgressPlayer),this.media.player.removeEventListener("waiting",this.onWaitingPlayer),this.media.player.removeEventListener("play",this.onPlayPlayer),this.media.player.removeEventListener("pause",this.onPausePlayer))},onSwitchedLevelHLS:function(a,i){this.$emit("update-auto-quality",i.level)},onErrorHSL:function(a,i){i.details===f.a.ErrorDetails.BUFFER_STALLED_ERROR&&this.handleChangeLoadingBuffer(!0)},onBufferCreatedHLS:function(){this.media.isStarted||this.hls.pauseBuffering()},onBufferedHLS:function(){this.media.player&&this.media.player.readyState>=1&&this.media.buffering&&this.handleChangeLoadingBuffer(!1)},onLoadedDataPlayer:function(){this.media.player&&this.$emit("update-metadata",{duration:this.media.player.duration,volume:this.media.player.volume})},onWaitingPlayer:function(){this.isConnectedChromecast||this.media.player&&(this.media.buffered>=this.media.duration||this.handleChangeLoadingBuffer(!0))},onPausePlayer:function(){this.isConnectedChromecast||this.media.player&&this.media.isStarted&&this.$emit("changed-playing",!1)},onPlayPlayer:function(){var a=this;this.isConnectedChromecast||this.media.player&&this.media.isStarted&&(this.savedPlayingPlayer===!1?(this.savedPlayingPlayer=null,setTimeout(function(){a.media.player.pause()},0)):this.$emit("changed-playing",!0))},onTimeupdatePlayer:function(){if(!this.isConnectedChromecast&&this.media.player){var a=this.media.player.currentTime;if("setPositionState"in navigator.mediaSession&&navigator.mediaSession.setPositionState({duration:this.media.duration,playbackRate:this.media.player.playbackRate,position:a}),this.savedCurrentTime&&a===0){this.savedCurrentTime=!1;return}this.handleChangeLoadingBuffer(!1),this.$emit("update-current-time",a)}},onProgressPlayer:function(){if(!this.isConnectedChromecast&&this.media.player){var a=this.media.player.buffered;if(a&&a.length&&this.media.duration>0){for(var i=this.media.currentTime,e=0,m=0;m<a.length;m++){var P=a.start(m),p=a.end(m);if(i>=Math.floor(P)&&i<=Math.ceil(p)){e=p;break}}this.$emit("update-buffer",e)}}},handleUpdateQuality:function(a){var i=this;if(!this.isConnectedChromecast){if(a===-1){this.hls.currentLevel=-1;return}this.hls.levels.forEach(function(e,m){var P=Math.min(e.height,e.width);P===a&&(i.hls.currentLevel=m)})}},handleChangeMedia:function(a){this.isConnectedChromecast||(this.savedCurrentTime=!0,this.savedPlayingPlayer=this.media.playing,this.hls.stopLoad(),this.hls.loadSource(a?this.audioSrc:this.videoSrc))},handleChangeLoadingBuffer:function(a){this.isConnectedChromecast||this.$emit("change-loading-buffer",a)},getPositionClickOfContainer:function(a){var i=this.$el.offsetWidth,e;if(a.type==="mousedown"&&(e=a.offsetX),a.type==="touchend"){var m=a.changedTouches[0],P=this.$el.getBoundingClientRect();e=m.clientX-P.left}var p=1/(100/this.config.percentageRewindPlacement),B=i*p,S=i*(1-p);return e<=B?"left":e>=S?"right":"center"},handleUpdateTotalTime:function(){var a=this;this.counter>1&&(this.totalTime=(this.counter-1)*this.config.fastSeconds),this.startInputTimeout(this.timeoutMilliseconds*3,function(){a.handleResetNotifications()})},handleResumeBuffering:function(){this.hls.resumeBuffering()},handleFastForward:function(){this.isFastForward=!0,this.isFastRewind=!1,this.$emit("fast-forward")},handleFastRewind:function(){this.isFastRewind=!0,this.isFastForward=!1,this.$emit("fast-rewind")},handleResetNotifications:function(){this.isFastForward=!1,this.isFastRewind=!1,this.currentPosition=null,this.counter=0,this.totalTime=0},handleIncreaseCounter:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;a!==null&&this.currentPosition!==a&&(this.currentPosition=a,i!==null&&(this.counter=i)),this.counter+=1},handleUpdatePosition:function(a){this.currentPosition!==a&&(this.currentPosition=a)},handleTouchMoveBody:function(){this.isTouchMove=!0},handleClickBody:function(a){var i=this;if(this.isTouchMove){this.isTouchMove=!1;return}if(!(this.isMobile&&a.type==="mousedown")){var e=this.getPositionClickOfContainer(a);e!==null&&e!==this.currentPosition&&this.handleResetNotifications(),this.handleIncreaseCounter(),this.handleUpdatePosition(e),this.startInputTimeout(Math.ceil(this.timeoutMilliseconds/1.2),function(){i.counter===1&&i.$emit("play-toggle",i.isMobile),i.handleResetNotifications()})}}}},o=l,h=t(572),_=t(0),C=Object(_.a)(o,r,n,!1,null,"7aa5dc1a",null),j=u.default=C.exports},355:function(d,u,t){"use strict";t.r(u);var r=function(){var e=this,m=e._self._c;return m("div",{class:e.classes},[m("div",{staticClass:"premium-player-footer__left"},[e.isMobile?e._e():[m("PremiumPlayerButton",{attrs:{icon:e.playIcon,title:"".concat(e.media.playing?"\u041F\u0430\u0443\u0437\u0430":"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C"," (Space)")},on:{click:e.handleClickPlay}}),e._v(" "),m("div",{staticClass:"premium-player-footer__volume",on:{mousedown:e.handleOpenVolume,mousemove:e.handleOpenVolume,mouseleave:e.handleCloseVolume}},[m("PremiumPlayerButton",{attrs:{disabled:e.isConnectedChromecast},on:{click:e.handleToggleVolume}},[m("VolumeIcon",{attrs:{value:e.media.volume}})],1),e._v(" "),m("TheSlider",{class:{"the-slider--active":e.isMouseVolume||e.isDraggingVolume},attrs:{value:e.media.volume},on:{input:e.handleInputVolume,change:e.handleChangeVolume,mousedown:e.handleSaveVolume,draggable:e.handleChangeDraggableVolume}})],1)],e._v(" "),m("div",{staticClass:"premium-player-footer__duration"},[e._v(`
      `+e._s(e.formatTime(e.media.currentTime))+" / "+e._s(e.formatTime(e.media.duration))+`
    `)]),e._v(" "),e.currentTimecode?m("div",{staticClass:"premium-player-footer__timecode"},[m("i"),e._v(" "),m("span",[e._v(e._s(e.currentTimecode))])]):e._e()],2),e._v(" "),m("div",{staticClass:"premium-player-footer__right"},[e.isMobile?e._e():[e.isConnectedChromecast?e._e():m("PremiumPlayerButtonPIP",{attrs:{media:e.media}}),e._v(" "),e.isAvailableChromecast?m("PremiumPlayerButtonChromecast",{attrs:{media:e.media,config:e.config}}):e._e(),e._v(" "),m("PremiumPlayerButtonSettings",{ref:"settings",attrs:{config:e.config,media:e.media,disabled:e.isConnectedChromecast,"visible-audio":e.visibleAudio},on:{"visible-settings":function(p){return e.$emit("visible-settings",p)},"change-quality":function(p){return e.$emit("change-quality",p)},"change-speed":function(p){return e.$emit("change-speed",p)},"toggle-audio":function(p){return e.$emit("toggle-audio",p)}}})],e._v(" "),m("PremiumPlayerButtonFullscreen",{ref:"fullscreen",attrs:{media:e.media,disabled:e.isConnectedChromecast,"is-mobile":e.isMobile}})],2)])},n=[],c=t(126),v=t(127),f=t(356),g=t(114),y=t(45),x=t(115),b=t(116),l=t(357),o=t(117),h={name:"PremiumPlayerFooter",components:{PremiumPlayerButtonSettings:o.default,PremiumPlayerButtonFullscreen:l.default,PremiumPlayerButtonChromecast:b.default,PremiumPlayerButtonPIP:x.default,PremiumPlayerButton:y.default,VolumeIcon:g.default,TheSlider:f.default},props:{media:{type:Object,required:!0},config:{type:Object,required:!0},visibleAudio:{type:Boolean,default:!1},timecodes:{type:Array,default:function(){return[]}},isMobile:{type:Boolean,default:!1}},data:function(){return{isMouseVolume:!1,isDraggingVolume:!1,tempVolume:0}},computed:{isConnectedChromecast:function(){return this.media.chromecastConnected},isAvailableChromecast:function(){var e;return(e=this.$nuxt.$chromecast)===null||e===void 0?void 0:e.available},classes:function(){return["premium-player-footer",{"premium-player-footer--mobile":this.isMobile}]},currentTimecode:function(){return Object(v.a)(this.timecodes,this.media.currentTime)},playIcon:function(){return this.media.playing?"player/pause":"player/play"}},methods:{handleCloseAllSettings:function(){this.$refs.settings.handleCloseAllSettings()},handleToggleFullscreen:function(){this.$refs.fullscreen.handleToggleFullscreen()},formatTime:function(e){return Object(c.a)(e)},handleChangeDraggableVolume:function(e){this.isDraggingVolume=e,this.$emit("volume-dragging-toggle",e)},handleOpenVolume:function(){this.isConnectedChromecast||(this.isMouseVolume=!0)},handleCloseVolume:function(){this.isConnectedChromecast||(this.isMouseVolume=!1)},handleInputVolume:function(e){this.$emit("update-volume",parseFloat(e))},handleSaveVolume:function(){this.tempVolume=this.media.volume},handleChangeVolume:function(){this.$emit("change-volume",this.tempVolume),this.tempVolume=0},handleToggleVolume:function(){this.isConnectedChromecast||this.$emit("volume-toggle")},handleClickPlay:function(){this.$emit("play-toggle")}}},_=h,C=t(590),j=t(0),s=Object(j.a)(_,r,n,!1,null,"3bbcaf2f",null),a=u.default=s.exports},357:function(d,u,t){"use strict";t.r(u);var r=function(){var l=this,o=l._self._c;return o("PremiumPlayerButton",{attrs:{icon:l.fullscreenIcon,disabled:l.disabled,title:"\u041F\u043E\u043B\u043D\u044B\u0439 \u044D\u043A\u0440\u0430\u043D (F)"},on:{click:l.handleToggleFullscreen}})},n=[],c=t(45),v={name:"PremiumPlayerButtonFullscreen",components:{PremiumPlayerButton:c.default},props:{media:{type:Object,required:!0},disabled:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1}},computed:{fullscreenIcon:function(){return this.media.fullscreen?"player/fullscreen-exit":"player/fullscreen"}},methods:{handleToggleFullscreen:function(){var l,o=document,h=this.$el.closest(".premium-player"),_=this.media.fullscreen;_?o.exitFullscreen?o.exitFullscreen():o.mozCancelFullScreen?o.mozCancelFullScreen():o.webkitExitFullscreen?o.webkitExitFullscreen():o.msExitFullscreen&&o.msExitFullscreen():this.media.player.webkitEnterFullscreen?this.media.player.webkitEnterFullscreen():h.requestFullscreen?h.requestFullscreen({navigationUI:"hide"}):h.mozRequestFullScreen?h.mozRequestFullScreen():h.webkitRequestFullscreen?h.webkitRequestFullscreen():h.msRequestFullscreen&&h.msRequestFullscreen(),this.isMobile&&typeof((l=window.screen.orientation)===null||l===void 0?void 0:l.lock)=="function"&&window.screen.orientation.lock("landscape").catch(function(C){console.error("Error locking orientation:",C)})}}},f=v,g=t(0),y=Object(g.a)(f,r,n,!1,null,"691906ed",null),x=u.default=y.exports},368:function(d,u,t){"use strict";t.r(u);var r=function(){var _=this,C=_._self._c;return C("div",{class:_.classes},[C("h1",{staticClass:"premium-player-header__title"},[_._v(_._s(_.config.title))]),_._v(" "),C("div",{staticClass:"premium-player-header__actions"},[_.isConnectedChromecast?_._e():C("PremiumPlayerButtonPIP",{attrs:{media:_.media}}),_._v(" "),_.isAvailableChromecast?C("PremiumPlayerButtonChromecast",{attrs:{media:_.media,config:_.config}}):_._e(),_._v(" "),C("PremiumPlayerButtonSettings",{ref:"settings",attrs:{config:_.config,media:_.media,"visible-audio":_.visibleAudio,"is-mobile":"",disabled:_.isConnectedChromecast},on:{"visible-settings":function(s){return _.$emit("visible-settings",s)},"change-quality":function(s){return _.$emit("change-quality",s)},"change-speed":function(s){return _.$emit("change-speed",s)},"toggle-audio":function(s){return _.$emit("toggle-audio",s)}}})],1)])},n=[],c=t(115),v=t(117),f=t(116),g={name:"PremiumPlayerHeader",components:{PremiumPlayerButtonChromecast:f.default,PremiumPlayerButtonSettings:v.default,PremiumPlayerButtonPIP:c.default},props:{media:{type:Object,required:!0},config:{type:Object,required:!0},visibleAudio:{type:Boolean,default:!1},opened:{type:Boolean,default:!1}},computed:{isAvailableChromecast:function(){var _;return(_=this.$nuxt.$chromecast)===null||_===void 0?void 0:_.available},isConnectedChromecast:function(){return this.media.chromecastConnected},classes:function(){return["premium-player-header",{"premium-player-header--opened":this.opened||this.isConnectedChromecast}]}},methods:{handleCloseAllSettings:function(){this.$refs.settings.handleCloseAllSettings()}}},y=g,x=t(602),b=t(0),l=Object(b.a)(y,r,n,!1,null,"30a5e268",null),o=u.default=l.exports},45:function(d,u,t){"use strict";t.r(u);var r=function(){var l=this,o=l._self._c;return o("button",l._g({class:l.classes},l.$listeners),[l.$slots.default?l._t("default"):o("svg-icon",{attrs:{name:l.icon}})],2)},n=[],c={name:"PremiumPlayerButton",props:{icon:{type:String,default:""},rotate:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{classes:function(){return["premium-player-button",{"premium-player-button--rotate":this.rotate},{"premium-player-button--disabled":this.disabled}]}}},v=c,f=t(578),g=t(0),y=Object(g.a)(v,r,n,!1,null,"6f9df174",null),x=u.default=y.exports},572:function(d,u,t){"use strict";var r=t(235),n=t.n(r)},573:function(d,u,t){var r=t(7),n=r(function(c){return c[1]});n.push([d.i,".dark-mode[data-v-7aa5dc1a]{--primary-text:255 255 255;--primary-background:0 0 0;--vs-theme-bg:#18191c;--vs-theme-color:#fff;--vs-theme-layout:#1e2023;--vs-theme-bg2:#141417;--vs-theme-code:#141417;--vs-theme-code2:#161619;--vs-bg:#141417}.light-mode[data-v-7aa5dc1a]{--primary-text:0 0 0;--primary-background:255 255 255;--vs-theme-bg:#f4f7f8;--vs-theme-color:#2c3e50;--vs-theme-layout:#fff;--vs-theme-bg2:#eef2f5;--vs-theme-code:#3f3d56;--vs-theme-code2:#363449;--vs-bg:#f4f7f8}[data-v-7aa5dc1a]:root{--premium-player-color:241 177 13;--vs-primary:42,54,77;--container-width:600px;--black:0 0 0;--white:255 255 255;--black-light:33 33 33;--ultramarine:25 13 159;--placeholder:149 149 149;--shuttle-gray:128 128 128;--mine-shaft:52 52 52;--mercury:232 232 232;--border-radius:24px;--border-radius-card:16px;--border-radius-text:8px;--pickled-bluewood:42 54 77;--trinidad:234 91 0;--cream-can:245 205 102;--neptune:113 183 185;--pastel-green:109 234 110;--hampton:241 177 13;--border-gradient:conic-gradient(from 105deg,rgb(var(--trinidad)) 0%,rgb(var(--cream-can)) 25%,rgb(var(--neptune)) 50%,rgb(var(--pastel-green)) 75%,rgb(var(--trinidad)) 100%) border-box}.premium-player-body[data-v-7aa5dc1a]{height:100%;overflow:hidden;position:relative;width:100%}.premium-player-body__thumbnail[data-v-7aa5dc1a]{background:#000;background:rgb(var(--black));bottom:0;margin:auto;right:0}.premium-player-body__media[data-v-7aa5dc1a],.premium-player-body__thumbnail[data-v-7aa5dc1a]{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}",""]),n.locals={},d.exports=n},578:function(d,u,t){"use strict";var r=t(238),n=t.n(r)},579:function(d,u,t){var r=t(7),n=r(function(c){return c[1]});n.push([d.i,".dark-mode[data-v-6f9df174]{--primary-text:255 255 255;--primary-background:0 0 0;--vs-theme-bg:#18191c;--vs-theme-color:#fff;--vs-theme-layout:#1e2023;--vs-theme-bg2:#141417;--vs-theme-code:#141417;--vs-theme-code2:#161619;--vs-bg:#141417}.light-mode[data-v-6f9df174]{--primary-text:0 0 0;--primary-background:255 255 255;--vs-theme-bg:#f4f7f8;--vs-theme-color:#2c3e50;--vs-theme-layout:#fff;--vs-theme-bg2:#eef2f5;--vs-theme-code:#3f3d56;--vs-theme-code2:#363449;--vs-bg:#f4f7f8}[data-v-6f9df174]:root{--premium-player-color:241 177 13;--vs-primary:42,54,77;--container-width:600px;--black:0 0 0;--white:255 255 255;--black-light:33 33 33;--ultramarine:25 13 159;--placeholder:149 149 149;--shuttle-gray:128 128 128;--mine-shaft:52 52 52;--mercury:232 232 232;--border-radius:24px;--border-radius-card:16px;--border-radius-text:8px;--pickled-bluewood:42 54 77;--trinidad:234 91 0;--cream-can:245 205 102;--neptune:113 183 185;--pastel-green:109 234 110;--hampton:241 177 13;--border-gradient:conic-gradient(from 105deg,rgb(var(--trinidad)) 0%,rgb(var(--cream-can)) 25%,rgb(var(--neptune)) 50%,rgb(var(--pastel-green)) 75%,rgb(var(--trinidad)) 100%) border-box}.premium-player-button[data-v-6f9df174]{align-items:center;border-radius:8px;border-radius:var(--border-radius-text);display:flex;height:32px;justify-content:center;position:relative;width:32px}.premium-player-button svg[data-v-6f9df174]{height:24px;width:24px;fill:#fff;fill:rgb(var(--white));pointer-events:none}.premium-player-button--disabled[data-v-6f9df174]{opacity:.6;pointer-events:none}.premium-player-button--rotate svg[data-v-6f9df174]{transform:rotate(90deg)}@media(min-width:992px){.premium-player-button[data-v-6f9df174]:hover .volume-icon__line{background:hsla(0,0%,100%,.6);background:rgb(var(--white)/60%)}.premium-player-button[data-v-6f9df174]:hover svg{fill:hsla(0,0%,100%,.6);fill:rgb(var(--white)/60%)}}",""]),n.locals={},d.exports=n},590:function(d,u,t){"use strict";var r=t(244),n=t.n(r)},591:function(d,u,t){var r=t(7),n=r(function(c){return c[1]});n.push([d.i,'.dark-mode[data-v-3bbcaf2f]{--primary-text:255 255 255;--primary-background:0 0 0;--vs-theme-bg:#18191c;--vs-theme-color:#fff;--vs-theme-layout:#1e2023;--vs-theme-bg2:#141417;--vs-theme-code:#141417;--vs-theme-code2:#161619;--vs-bg:#141417}.light-mode[data-v-3bbcaf2f]{--primary-text:0 0 0;--primary-background:255 255 255;--vs-theme-bg:#f4f7f8;--vs-theme-color:#2c3e50;--vs-theme-layout:#fff;--vs-theme-bg2:#eef2f5;--vs-theme-code:#3f3d56;--vs-theme-code2:#363449;--vs-bg:#f4f7f8}[data-v-3bbcaf2f]:root{--premium-player-color:241 177 13;--vs-primary:42,54,77;--container-width:600px;--black:0 0 0;--white:255 255 255;--black-light:33 33 33;--ultramarine:25 13 159;--placeholder:149 149 149;--shuttle-gray:128 128 128;--mine-shaft:52 52 52;--mercury:232 232 232;--border-radius:24px;--border-radius-card:16px;--border-radius-text:8px;--pickled-bluewood:42 54 77;--trinidad:234 91 0;--cream-can:245 205 102;--neptune:113 183 185;--pastel-green:109 234 110;--hampton:241 177 13;--border-gradient:conic-gradient(from 105deg,rgb(var(--trinidad)) 0%,rgb(var(--cream-can)) 25%,rgb(var(--neptune)) 50%,rgb(var(--pastel-green)) 75%,rgb(var(--trinidad)) 100%) border-box}.premium-player-footer[data-v-3bbcaf2f]{background:linear-gradient(0deg,rgba(0,0,0,.6),transparent);background:linear-gradient(to top,rgba(var(--black)/60%),rgba(var(--black)/0));gap:12px;justify-content:space-between;padding:8px;width:100%}.premium-player-footer[data-v-3bbcaf2f],.premium-player-footer__volume[data-v-3bbcaf2f]{align-items:center;display:flex}.premium-player-footer__volume .the-slider[data-v-3bbcaf2f]{opacity:0;width:0}.premium-player-footer__volume .the-slider--active[data-v-3bbcaf2f]{margin-left:8px;opacity:1;width:60px}.premium-player-footer__timecode[data-v-3bbcaf2f]{align-items:center;color:#fff;color:rgb(var(--white));display:flex;font-size:12px;gap:6px;overflow:hidden}.premium-player-footer__timecode i[data-v-3bbcaf2f]{background:#fff;background:rgb(var(--white));border-radius:50%;display:block;flex-shrink:0;height:3px;margin:0 4px;width:3px}.premium-player-footer__timecode span[data-v-3bbcaf2f]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:991px){.premium-player-footer__timecode[data-v-3bbcaf2f]{font-size:10px}}.premium-player-footer__duration[data-v-3bbcaf2f]{color:#fff;color:rgb(var(--white));font-family:"Premium Mono",monospace;font-size:12px;font-style:normal;letter-spacing:.03em;margin-left:6px;white-space:nowrap}@media(max-width:991px){.premium-player-footer__duration[data-v-3bbcaf2f]{font-size:10px}}.premium-player-footer__line[data-v-3bbcaf2f]{background:#fff;background:rgb(var(--white));height:.5px;left:4px;opacity:0;position:absolute;top:7px;transform:rotate(-45deg);transform-origin:top left;transition:height .2s ease,opacity .2s ease;width:1.5px}.premium-player-footer--mobile .premium-player-footer__duration[data-v-3bbcaf2f]{margin:0}.premium-player-footer--mobile[data-v-3bbcaf2f]{background:none;border-radius:0;margin-bottom:-10px;padding:0 14px 0 20px}.premium-player-footer__left[data-v-3bbcaf2f],.premium-player-footer__right[data-v-3bbcaf2f]{align-items:center;display:grid;grid-auto-flow:column;grid-gap:6px}',""]),n.locals={},d.exports=n},602:function(d,u,t){"use strict";var r=t(250),n=t.n(r)},603:function(d,u,t){var r=t(7),n=r(function(c){return c[1]});n.push([d.i,".dark-mode[data-v-30a5e268]{--primary-text:255 255 255;--primary-background:0 0 0;--vs-theme-bg:#18191c;--vs-theme-color:#fff;--vs-theme-layout:#1e2023;--vs-theme-bg2:#141417;--vs-theme-code:#141417;--vs-theme-code2:#161619;--vs-bg:#141417}.light-mode[data-v-30a5e268]{--primary-text:0 0 0;--primary-background:255 255 255;--vs-theme-bg:#f4f7f8;--vs-theme-color:#2c3e50;--vs-theme-layout:#fff;--vs-theme-bg2:#eef2f5;--vs-theme-code:#3f3d56;--vs-theme-code2:#363449;--vs-bg:#f4f7f8}[data-v-30a5e268]:root{--premium-player-color:241 177 13;--vs-primary:42,54,77;--container-width:600px;--black:0 0 0;--white:255 255 255;--black-light:33 33 33;--ultramarine:25 13 159;--placeholder:149 149 149;--shuttle-gray:128 128 128;--mine-shaft:52 52 52;--mercury:232 232 232;--border-radius:24px;--border-radius-card:16px;--border-radius-text:8px;--pickled-bluewood:42 54 77;--trinidad:234 91 0;--cream-can:245 205 102;--neptune:113 183 185;--pastel-green:109 234 110;--hampton:241 177 13;--border-gradient:conic-gradient(from 105deg,rgb(var(--trinidad)) 0%,rgb(var(--cream-can)) 25%,rgb(var(--neptune)) 50%,rgb(var(--pastel-green)) 75%,rgb(var(--trinidad)) 100%) border-box}.premium-player-header[data-v-30a5e268]{justify-content:space-between;left:0;padding:20px 20px 0;position:absolute;top:0;transition:.2s;width:100%;z-index:2}.premium-player-header[data-v-30a5e268],.premium-player-header__actions[data-v-30a5e268]{align-items:center;display:flex;gap:10px}.premium-player-header__title[data-v-30a5e268]{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.premium-player-header[data-v-30a5e268]:not(.premium-player-header--opened){top:-100%}",""]),n.locals={},d.exports=n}}]);
