platypush/platypush/backend/http/dist/static/js/chunk-5fea187e.4466d92f.js

2 lines
65 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5fea187e"],{"021b":function(t,e,n){"use strict";n("058f")},"03eb":function(t,e,n){"use strict";n("c3da")},"058f":function(t,e,n){},"0d41":function(t,e,n){"use strict";n.r(e);n("c975"),n("d81d"),n("b0c0"),n("d3b7"),n("ac1f"),n("841c"),n("ddb0");var a=n("2909"),c=n("7a23"),s=Object(c["K"])("data-v-2ccb9e3d");Object(c["u"])("data-v-2ccb9e3d");var l={class:"nav-container"},i={class:"view-container"},r={class:"track-info-container"},o={key:0,class:"track-info-content"},u={key:0,class:"row file"},d=Object(c["h"])("div",{class:"col-3 attr"},"File",-1),f={key:1,class:"row artist"},b=Object(c["h"])("div",{class:"col-3 attr"},"Artist",-1),h={class:"col-9 value"},p={key:2,class:"row track-title"},O=Object(c["h"])("div",{class:"col-3 attr"},"Title",-1),v={key:3,class:"row album"},j=Object(c["h"])("div",{class:"col-3 attr"},"Album",-1),m={class:"col-9 value"},y={key:4,class:"row date"},k=Object(c["h"])("div",{class:"col-3 attr"},"Date",-1),g={key:5,class:"row duration"},C=Object(c["h"])("div",{class:"col-3 attr"},"Duration",-1),x={key:6,class:"row track"},w=Object(c["h"])("div",{class:"col-3 attr"},"Track",-1),$={key:7,class:"row disc"},T=Object(c["h"])("div",{class:"col-3 attr"},"Disc",-1),P={class:"playlists-modal-container"},S={class:"filter"},I={class:"playlists"},R=Object(c["h"])("i",{class:"fa fa-plus"},null,-1),A=Object(c["g"])("   Add ");Object(c["s"])();var D=s((function(t,e,n,D,E,F){var M=Object(c["z"])("Loading"),L=Object(c["z"])("Nav"),_=Object(c["z"])("Playlist"),z=Object(c["z"])("Playlists"),N=Object(c["z"])("Search"),V=Object(c["z"])("Library"),q=Object(c["z"])("MediaView"),K=Object(c["z"])("Modal"),J=Object(c["z"])("FormFooter");return Object(c["r"])(),Object(c["e"])(c["a"],null,[n.loading?(Object(c["r"])(),Object(c["e"])(M,{key:0})):(Object(c["r"])(),Object(c["e"])(q,{key:1,"plugin-name":n.pluginName,status:n.status,track:F.track,onPlay:e[28]||(e[28]=function(e){return t.$emit("play",e)}),onPause:e[29]||(e[29]=function(e){return t.$emit("pause")}),onStop:e[30]||(e[30]=function(e){return t.$emit("stop")}),onPrevious:e[31]||(e[31]=function(e){return t.$emit("previous")}),onNext:e[32]||(e[32]=function(e){return t.$emit("next")}),onSetVolume:e[33]||(e[33]=function(e){return t.$emit("set-volume",e)}),onSeek:e[34]||(e[34]=function(e){return t.$emit("seek",e)}),onConsume:e[35]||(e[35]=function(e){return t.$emit("consume",e)}),onRepeat:e[36]||(e[36]=function(e){return t.$emit("repeat",e)}),onRandom:e[37]||(e[37]=function(e){return t.$emit("random",e)}),onSearch:F.search},{default:s((function(){return[Object(c["h"])("main",null,[Object(c["h"])("div",l,[Object(c["h"])(L,{"selected-view":E.selectedView,onInput:e[1]||(e[1]=function(t){return E.selectedView=t})},null,8,["selected-view"])]),Object(c["h"])("div",i,["playing"===E.selectedView?(Object(c["r"])(),Object(c["e"])(_,{key:0,tracks:n.tracks,status:n.status,loading:n.loading,onPlay:e[2]||(e[2]=function(e){return t.$emit("play",e)}),onClear:e[3]||(e[3]=function(e){return t.$emit("clear")}),onSwap:e[4]||(e[4]=function(e){return t.$emit("swap-tracks",e)}),onAdd:e[5]||(e[5]=function(e){return t.$emit("add-to-tracklist",e)}),onRemove:e[6]||(e[6]=function(e){return t.$emit("remove-from-tracklist",e)}),onMove:e[7]||(e[7]=function(e){return t.$emit("tracklist-move",e)}),onSave:e[8]||(e[8]=function(e){return t.$emit("tracklist-save",e)}),onInfo:e[9]||(e[9]=function(e){return t.$emit("info",e)}),onAddToPlaylist:F.openAddToPlaylist,onSearch:F.search},null,8,["tracks","status","loading","onAddToPlaylist","onSearch"])):"playlists"===E.selectedView?(Object(c["r"])(),Object(c["e"])(z,{key:1,playlists:n.playlists,loading:n.loading,"edited-playlist":n.editedPlaylist,tracks:n.editedPlaylistTracks,onPlay:e[10]||(e[10]=function(e){return t.$emit("play-playlist",e)}),onLoad:e[11]||(e[11]=function(e){return t.$emit("load-playlist",e)}),onRemove:e[12]||(e[12]=function(e){return t.$emit("remove-playlist",e)}),onPlaylistEdit:e[13]||(e[13]=function(e){return t.$emit("playlist-edit",e)}),onLoadTrack:e[14]||(e[14]=function(e){return t.$emit("add-to-tracklist-from-edited-playlist",e)}),onRemoveTrack:e[15]||(e[15]=function(e){return t.$emit("remove-from-playlist",e)}),onInfo:e[16]||(e[16]=function(e){return t.$emit("info",e)}),onPlaylistAdd:e[17]||(e[17]=function(e){return t.$emit("playlist-add",e)}),onAddToPlaylist:F.openAddToPlaylist,onTrackMove:e[18]||(e[18]=function(e){return t.$emit("playlist-track-move",e)}),onSearch:F.search},null,8,["playlists","loading","edited-playlist","tracks","onAddToPlaylist","onSearch"])):"search"===E.selectedView?(Object(c["r"])(),Object(c["e"])(N,{key:2,loading:n.loading,onSearch:F.search,results:n.searchResults,onClear:e[19]||(e[19]=function(e){return t.$emit("search-clear")}),onInfo:e[20]||(e[20]=function(e){return t.$emit("info",e)}),onPlay:e[21]||(e[21]=function(e){return t.$emit("play",e)}),onLoad:e[22]||(e[22]=function(e){return t.$emit("add-to-tracklist",e)}),onAddToPlaylist:F.openAddToPlaylist},null,8,["loading","onSearch","results","onAddToPlaylist"])):"library"===E.selectedView?(Object(c["r"])(),Object(c["e"])(V,{key:3,loading:n.loading,onSearch:F.search,results:n.libraryResults,path:n.path,onClear:e[23]||(e[23]=function(e){return t.$emit("search-clear")}),onInfo:e[24]||(e[24]=function(e){return t.$emit("info",e)}),onPlay:e[25]||(e[25]=function(e){return t.$emit("play",e)}),onLoad:e[26]||(e[26]=function(e){return t.$emit("add-to-tracklist",e)}),onAddToPlaylist:F.openAddToPlaylist,onCd:e[27]||(e[27]=function(e){return t.$emit("cd",e)})},null,8,["loading","onSearch","results","path","onAddToPlaylist"])):Object(c["f"])("",!0)])])]})),_:1},8,["plugin-name","status","track","onSearch"])),Object(c["h"])("div",r,[Object(c["h"])(K,{title:"Track info",ref:"trackInfo"},{default:s((function(){return[n.trackInfo?(Object(c["r"])(),Object(c["e"])("div",o,[n.trackInfo.file?(Object(c["r"])(),Object(c["e"])("div",u,[d,Object(c["h"])("div",{class:"col-9 value",textContent:Object(c["C"])(n.trackInfo.file)},null,8,["textContent"])])):Object(c["f"])("",!0),n.trackInfo.artist?(Object(c["r"])(),Object(c["e"])("div",f,[b,Object(c["h"])("div",h,[Object(c["h"])("a",{href:t.$route.fullPath,textContent:Object(c["C"])(n.trackInfo.artist),onClick:e[38]||(e[38]=Object(c["J"])((function(t){return F.search({artist:n.trackInfo.artist})}),["prevent"]))},null,8,["href","textContent"])])])):Object(c["f"])("",!0),n.trackInfo.title?(Object(c["r"])(),Object(c["e"])("div",p,[O,Object(c["h"])("div",{class:"col-9 value",textContent:Object(c["C"])(n.trackInfo.title)},null,8,["textContent"])])):Object(c["f"])("",!0),n.trackInfo.album?(Object(c["r"])(),Object(c["e"])("div",v,[j,Object(c["h"])("div",m,[Object(c["h"])("a",{href:t.$route.fullPath,textContent:Object(c["C"])(n.trackInfo.album),onClick:e[39]||(e[39]=Object(c["J"])((function(t){return F.search({artist:n.trackInfo.artist,album:n.trackInfo.album})}),["prevent"]))},null,8,["href","textContent"])])])):Object(c["f"])("",!0),n.trackInfo.date?(Object(c["r"])(),Object(c["e"])("div",y,[k,Object(c["h"])("div",{class:"col-9 value",textContent:Object(c["C"])(n.trackInfo.date)},null,8,["textContent"])])):Object(c["f"])("",!0),n.trackInfo.time?(Object(c["r"])(),Object(c["e"])("div",g,[C,Object(c["h"])("div",{class:"col-9 value",textContent:Object(c["C"])(t.convertTime(n.trackInfo.time))},null,8,["textContent"])])):Object(c["f"])("",!0),n.trackInfo.track?(Object(c["r"])(),Object(c["e"])("div",x,[w,Object(c["h"])("div",{class:"col-9 value",textContent:Object(c["C"])(n.trackInfo.track)},null,8,["textContent"])])):Object(c["f"])("",!0),n.trackInfo.disc?(Object(c["r"])(),Object(c["e"])("div",$,[T,Object(c["h"])("div",{class:"col-9 value",textContent:Object(c["C"])(n.trackInfo.disc)},null,8,["textContent"])])):Object(c["f"])("",!0)])):Object(c["f"])("",!0)]})),_:1},512)]),Object(c["h"])("div",P,[Object(c["h"])(K,{title:"Playlists",ref:"playlistsModal",onClose:e[42]||(e[42]=function(t){return E.addToPlaylistTrack=null}),onOpen:e[43]||(e[43]=function(t){return E.selectedPlaylists=Object(a["a"])(Array(n.playlists.length).keys()).map((function(){return!1}))})},{default:s((function(){return[Object(c["h"])("div",S,[Object(c["h"])("label",null,[Object(c["I"])(Object(c["h"])("input",{type:"search",placeholder:"Filter","onUpdate:modelValue":e[40]||(e[40]=function(t){return E.playlistFilter=t})},null,512),[[c["F"],E.playlistFilter]])])]),Object(c["h"])("div",I,[(Object(c["r"])(!0),Object(c["e"])(c["a"],null,Object(c["x"])(n.playlists,(function(t,e){var n;return Object(c["r"])(),Object(c["e"])("label",{class:["row playlist",{hidden:(null===(n=E.playlistFilter)||void 0===n?void 0:n.length)>0&&t.name.toLowerCase().indexOf(E.playlistFilter.toLowerCase())<0}],key:e},[Object(c["h"])("input",{type:"checkbox",checked:E.selectedPlaylists[e],onChange:function(t){return E.selectedPlaylists[e]=t.target.checked}},null,40,["checked","onChange"]),Object(c["h"])("span",{class:"name",textContent:Object(c["C"])(t.name)},null,8,["textContent"])],2)})),128))]),Object(c["h"])(J,null,{default:s((function(){return[Object(c["h"])("button",{onClick:e[41]||(e[41]=function(){return F.addToPlaylist.apply(F,arguments)})},[R,A])]})),_:1})]})),_:1},512)])],64)})),E=(n("99af"),n("4de4"),n("a9e3"),n("96cf"),n("1da1")),F=Object(c["K"])("data-v-2495ce8a");Object(c["u"])("data-v-2495ce8a");var M={class:"form-footer"};Object(c["s"])();var L=F((function(t,e,n,a,s,l){return Object(c["r"])(),Object(c["e"])("div",M,[Object(c["y"])(t.$slots,"default")])})),_={name:"FormFooter"};n("03eb");_.render=L,_.__scopeId="data-v-2495ce8a";var z=_,N=n("3a5e"),V=n("714b"),q=(n("a15b"),{name:"Utils",methods:{convertTime:function(t){t=parseFloat(t);var e={};e.h=""+parseInt(t/3600),e.m=""+parseInt(t/60-60*e.h),e.s=""+parseInt(t-(3600*e.h+60*e.m));for(var n=0,a=["m","s"];n<a.length;n++){var c=a[n];parseInt(e[c])<10&&(e[c]="0"+e[c])}var s=[];return parseInt(e.h)&&s.push(e.h),s.push(e.m,e.s),s.join(":")}}}),K=q,J=Object(c["K"])("data-v-711fcb3e");Object(c["u"])("data-v-711fcb3e");var U={class:"media-container"},H={class:"view-container"},B={class:"controls-container"};Object(c["s"])();var Q=J((function(t,e,n,a,s,l){var i=Object(c["z"])("Controls");return Object(c["r"])(),Object(c["e"])("div",U,[Object(c["h"])("div",H,[Object(c["y"])(t.$slots,"default")]),Object(c["h"])("div",B,[Object(c["h"])(i,{status:n.status,track:n.track,onPlay:e[1]||(e[1]=function(e){return t.$emit("play",e)}),onPause:e[2]||(e[2]=function(e){return t.$emit("pause",e)}),onStop:e[3]||(e[3]=function(e){return t.$emit("stop")}),onPrevious:e[4]||(e[4]=function(e){return t.$emit("previous")}),onNext:e[5]||(e[5]=function(e){return t.$emit("next")}),onSeek:e[6]||(e[6]=function(e){return t.$emit("seek",e)}),onSetVolume:e[7]||(e[7]=function(e){return t.$emit("set-volume",e)}),onConsume:e[8]||(e[8]=function(e){return t.$emit("consume",e)}),onRepeat:e[9]||(e[9]=function(e){return t.$emit("repeat",e)}),onRandom:e[10]||(e[10]=function(e){return t.$emit("random",e)}),onSearch:e[11]||(e[11]=function(e){return t.$emit("search",e)})},null,8,["status","track"])])])})),W=(n("38cf"),Object(c["K"])("data-v-39c13028"));Object(c["u"])("data-v-39c13028");var G={class:"row"},X=Object(c["h"])("div",{class:"col-3"},null,-1),Y={class:"col-6"},Z={class:"buttons"},tt=Object(c["h"])("i",{class:"icon fa fa-step-backward"},null,-1),et=Object(c["h"])("i",{class:"icon fa fa-stop"},null,-1),nt=Object(c["h"])("i",{class:"icon fa fa-step-forward"},null,-1),at=Object(c["h"])("div",{class:"col-3"},null,-1),ct={class:"row"},st={class:"col-9 volume-container"},lt={class:"col-1"},it=Object(c["h"])("i",{class:"icon fa fa-volume-up"},null,-1),rt={class:"col-11 volume-slider"},ot={class:"col-3 list-controls"},ut=Object(c["h"])("i",{class:"icon fa fa-utensils"},null,-1),dt=Object(c["h"])("i",{class:"icon fa fa-random"},null,-1),ft=Object(c["h"])("i",{class:"icon fa fa-redo"},null,-1),bt={class:"row"},ht={class:"col-s-2 col-m-1 time"},pt={class:"col-s-8 col-m-10"},Ot={class:"col-s-2 col-m-1 time"},vt={class:"controls"},jt={class:"playback-controls mobile tablet col-2"},mt={key:0,class:"icon play-pause fa fa-pause"},yt={key:1,class:"icon play-pause fa fa-play"},kt={class:"track-container col-s-8 col-m-8 col-l-3"},gt={key:0,class:"track-info"},Ct={class:"title"},xt={key:0,class:"artist"},wt={class:"playback-controls desktop col-6"},$t={class:"row buttons"},Tt=Object(c["h"])("i",{class:"icon fa fa-step-backward"},null,-1),Pt={key:0,class:"icon play-pause fa fa-pause"},St={key:1,class:"icon play-pause fa fa-play"},It=Object(c["h"])("i",{class:"icon fa fa-stop"},null,-1),Rt=Object(c["h"])("i",{class:"icon fa fa-step-forward"},null,-1),At={class:"row"},Dt={class:"col-1 time"},Et={class:"col-10"},Ft={class:"col-1 time"},Mt={class:"col-2 pull-right mobile tablet right-buttons"},Lt={class:"col-3 pull-right desktop"},_t={class:"row list-controls"},zt=Object(c["h"])("i",{class:"icon fa fa-utensils"},null,-1),Nt=Object(c["h"])("i",{class:"icon fa fa-random"},null,-1),Vt=Object(c["h"])("i",{class:"icon fa fa-redo"},null,-1),qt={class:"row volume-container"},Kt={class:"col-2"},Jt=Object(c["h"])("i",{class:"icon fa fa-volume-up"},null,-1),Ut={class:"col-10"};Object(c["s"])();var Ht=W((function(t,e,n,a,s,l){var i,r=Object(c["z"])("Slider");return Object(c["r"])(),Object(c["e"])(c["a"],null,[Object(c["h"])("div",{class:["extension fade-in",{hidden:!s.expanded}]},[Object(c["h"])("div",G,[X,Object(c["h"])("div",Y,[Object(c["h"])("div",Z,[n.buttons.previous?(Object(c["r"])(),Object(c["e"])("button",{key:0,onClick:e[1]||(e[1]=function(e){return t.$emit("previous")}),title:"Play previous track"},[tt])):Object(c["f"])("",!0),n.buttons.stop&&"stop"!==n.status.state?(Object(c["r"])(),Object(c["e"])("button",{key:1,onClick:e[2]||(e[2]=function(e){return t.$emit("stop")}),title:"Stop playback"},[et])):Object(c["f"])("",!0),n.buttons.next?(Object(c["r"])(),Object(c["e"])("button",{key:2,onClick:e[3]||(e[3]=function(e){return t.$emit("next")}),title:"Play next track"},[nt])):Object(c["f"])("",!0)])]),at]),Object(c["h"])("div",ct,[Object(c["h"])("div",st,[Object(c["h"])("div",lt,[Object(c["h"])("button",{disabled:null==n.status.muted,onClick:e[4]||(e[4]=function(e){return t.$emit(n.status.muted?"unmute":"mute")})},[it],8,["disabled"])]),Object(c["h"])("div",rt,[Object(c["h"])(r,{value:n.status.volume,range:n.volumeRange,disabled:null==n.status.volume,onMouseup:e[5]||(e[5]=function(e){return t.$emit("set-volume",e.target.value)})},null,8,["value","range","disabled"])])]),Object(c["h"])("div",ot,[n.buttons.consume?(Object(c["r"])(),Object(c["e"])("button",{key:0,onClick:e[6]||(e[6]=function(e){return t.$emit("consume",!n.status.consume)}),class:{enabled:n.status.consume},title:"Toggle consume mode"},[ut],2)):Object(c["f"])("",!0),n.buttons.random?(Object(c["r"])(),Object(c["e"])("button",{key:1,onClick:e[7]||(e[7]=function(e){return t.$emit("random",!n.status.random)}),class:{enabled:n.status.random},title:"Toggle shuffle"},[dt],2)):Object(c["f"])("",!0),n.buttons.repeat?(Object(c["r"])(),Object(c["e"])("button",{key:2,onClick:e[8]||(e[8]=function(e){return t.$emit("repeat",!n.status.repeat)}),class:{enabled:n.status.repeat},title:"Toggle repeat"},[ft],2)):Object(c["f"])("",!0)])]),Object(c["h"])("div",bt,[Object(c["h"])("div",ht,[Object(c["h"])("span",{class:"elapsed-time",textContent:Object(c["C"])(null!=s.elapsed&&"stop"!==n.status.state?t.convertTime(s.elapsed):"-:--")},null,8,["textContent"])]),Object(c["h"])("div",pt,[Object(c["h"])(r,{value:s.elapsed,range:[0,l.duration],disabled:!l.duration||"stop"===n.status.state,onMouseup:e[9]||(e[9]=function(e){return t.$emit("seek",e.target.value)})},null,8,["value","range","disabled"])]),Object(c["h"])("div",Ot,[Object(c["h"])("span",{class:"total-time",textContent:Object(c["C"])(l.duration&&"stop"!==n.status.state?t.convertTime(l.duration):"-:--")},null,8,["textContent"])])])],2),Object(c["h"])("div",vt,[Object(c["h"])("div",jt,[Object(c["h"])("button",{onClick:e[10]||(e[10]=function(e){return t.$emit("play"===n.status.state?"pause":"play")}),title:"play"===n.status.state?"Pause":"Play"},["play"===n.status.state?(Object(c["r"])(),Object(c["e"])("i",mt)):(Object(c["r"])(),Object(c["e"])("i",yt))],8,["title"])]),Object(c["h"])("div",kt,[n.track&&"stop"!==(null===(i=n.status)||void 0===i?void 0:i.state)?(Object(c["r"])(),Object(c["e"])("div",gt,[Object(c["h"])("div",Ct,[n.track.album?(Object(c["r"])(),Object(c["e"])("a",{key:0,href:t.$route.fullPath,textContent:Object(c["C"])(n.track.title),onClick:e[11]||(e[11]=Object(c["J"])((function(e){return t.$emit("search",{artist:n.track.artist,album:n.track.album})}),["prevent"]))},null,8,["href","textContent"])):(Object(c["r"])(),Object(c["e"])("span",{key:1,textContent:Object(c["C"])(n.track.title)},null,8,["textContent"]))]),n.track.artist?(Object(c["r"])(),Object(c["e"])("div",xt,[Object(c["h"])("a",{href:t.$route.fullPath,textContent:Object(c["C"])(n.track.artist),onClick:e[12]||(e[12]=Object(c["J"])((function(e){return t.$emit("search",{artist:n.track.artist})}),["prevent"]))},null,8,["href","textContent"])])):Object(c["f"])("",!0)])):Object(c["f"])("",!0)]),Object(c["h"])("div",wt,[Object(c["h"])("div",$t,[n.buttons.previous?(Object(c["r"])(),Object(c["e"])("button",{key:0,onClick:e[13]||(e[13]=function(e){return t.$emit("previous")}),title:"Play previous track"},[Tt])):Object(c["f"])("",!0),Object(c["h"])("button",{onClick:e[14]||(e[14]=function(e){return t.$emit("play"===n.status.state?"pause":"play")}),title:"play"===n.status.state?"Pause":"Play"},["play"===n.status.state?(Object(c["r"])(),Object(c["e"])("i",Pt)):(Object(c["r"])(),Object(c["e"])("i",St))],8,["title"]),n.buttons.stop&&"stop"!==n.status.state?(Object(c["r"])(),Object(c["e"])("button",{key:1,onClick:e[15]||(e[15]=function(e){return t.$emit("stop")}),title:"Stop playback"},[It])):Object(c["f"])("",!0),n.buttons.next?(Object(c["r"])(),Object(c["e"])("button",{key:2,onClick:e[16]||(e[16]=function(e){return t.$emit("next")}),title:"Play next track"},[Rt])):Object(c["f"])("",!0)]),Object(c["h"])("div",At,[Object(c["h"])("div",Dt,[Object(c["h"])("span",{class:"elapsed-time",textContent:Object(c["C"])(null!=s.elapsed&&"stop"!==n.status.state?t.convertTime(s.elapsed):"-:--")},null,8,["textContent"])]),Object(c["h"])("div",Et,[Object(c["h"])(r,{value:s.elapsed,range:[0,l.duration],disabled:!l.duration||"stop"===n.status.state,onMouseup:e[17]||(e[17]=function(e){return t.$emit("seek",e.target.value)})},null,8,["value","range","disabled"])]),Object(c["h"])("div",Ft,[Object(c["h"])("span",{class:"total-time",textContent:Object(c["C"])(l.duration&&"stop"!==n.status.state?t.convertTime(l.duration):"-:--")},null,8,["textContent"])])])]),Object(c["h"])("div",Mt,[Object(c["h"])("button",{onClick:e[18]||(e[18]=function(t){return s.expanded=!s.expanded}),title:s.expanded?"Show more controls":"Hide extra controls"},[Object(c["h"])("i",{class:["fas",["fa-chevron-".concat(s.expanded?"down":"up")]]},null,2)],8,["title"])]),Object(c["h"])("div",Lt,[Object(c["h"])("div",_t,[n.buttons.consume?(Object(c["r"])(),Object(c["e"])("button",{key:0,onClick:e[19]||(e[19]=function(e){return t.$emit("consume")}),class:{enabled:n.status.consume},title:"Toggle consume mode"},[zt],2)):Object(c["f"])("",!0),n.buttons.random?(Object(c["r"])(),Object(c["e"])("button",{key:1,onClick:e[20]||(e[20]=function(e){return t.$emit("random")}),class:{enabled:n.status.random},title:"Toggle shuffle"},[Nt],2)):Object(c["f"])("",!0),n.buttons.repeat?(Object(c["r"])(),Object(c["e"])("button",{key:2,onClick:e[21]||(e[21]=function(e){return t.$emit("repeat")}),class:{enabled:n.status.repeat},title:"Toggle repeat"},[Vt],2)):Object(c["f"])("",!0)]),Object(c["h"])("div",qt,[Object(c["h"])("div",Kt,[Object(c["h"])("button",{disabled:null==n.status.muted,onClick:e[22]||(e[22]=function(e){return t.$emit(n.status.muted?"unmute":"mute")})},[Jt],8,["disabled"])]),Object(c["h"])("div",Ut,[Object(c["h"])(r,{value:n.status.volume,range:n.volumeRange,disabled:null==n.status.volume,onMouseup:e[23]||(e[23]=function(e){return t.$emit("set-volume",e.target.value)})},null,8,["value","range","disabled"])])])])])],64)})),Bt=n("3e54"),Qt=n("8285"),Wt={name:"Controls",components:{Slider:Qt["a"]},mixins:[Bt["a"],K],emits:["search","previous","next","play","pause","stop","seek","consume","random","repeat","set-volume","mute","unmute"],props:{track:{type:Object},status:{type:Object,default:function(){}},buttons:{type:Object,default:function(){return{previous:!0,next:!0,stop:!0,consume:!0,random:!0,repeat:!0}}},volumeRange:{type:Array,default:function(){return[0,100]}}},data:function(){var t;return{expanded:!1,lastSync:0,elapsed:null===(t=this.status)||void 0===t?void 0:t.elapsed}},computed:{duration:function(){var t,e;return null!=(null===(t=this.status)||void 0===t?void 0:t.duration)?this.status.duration:null===(e=this.track)||void 0===e?void 0:e.duration}},methods:{getTime:function(){return(new Date).getTime()/1e3}},mounted:function(){var t=this,e=this;this.lastSync=this.getTime(),this.$watch((function(){return t.track}),(function(n){var a;n&&"play"===(null===(a=e.status)||void 0===a?void 0:a.state)||(e.lastSync=t.getTime())})),this.$watch((function(){return t.status}),(function(){e.lastSync=t.getTime()})),setInterval((function(){var n,a;"play"===(null===(n=e.status)||void 0===n?void 0:n.state)&&(e.elapsed=((null===(a=e.status)||void 0===a?void 0:a.elapsed)||0)+Math.round(t.getTime()-e.lastSync))}),1e3)}};n("70d5");Wt.render=Ht,Wt.__scopeId="data-v-39c13028";var Gt=Wt,Xt={name:"View",components:{Controls:Gt},emits:["play","pause","stop","next","previous","set-volume","seek","consume","random","repeat","search"],props:{pluginName:{type:String,required:!0},status:{type:Object,default:function(){}},track:{type:Object}}};n("f3f3");Xt.render=Q,Xt.__scopeId="data-v-711fcb3e";var Yt=Xt,Zt=Object(c["K"])("data-v-edee6494"),te=Zt((function(t,e,n,a,s,l){return Object(c["r"])(),Object(c["e"])("nav",null,[(Object(c["r"])(!0),Object(c["e"])(c["a"],null,Object(c["x"])(n.views,(function(e,a){return Object(c["r"])(),Object(c["e"])("li",{key:a,title:e.displayName,class:{selected:a===n.selectedView},onClick:function(e){return t.$emit("input",a)}},[Object(c["h"])("i",{class:e.iconClass},null,2)],10,["title","onClick"])})),128))])})),ee={name:"Nav",emits:["input"],props:{selectedView:{type:String},collapsed:{type:Boolean,default:!1},views:{type:Object,default:function(){return{playing:{iconClass:"fas fa-play",displayName:"Queue"},search:{iconClass:"fas fa-search",displayName:"Search"},playlists:{iconClass:"fas fa-list-ul",displayName:"Playlists"},library:{iconClass:"fas fa-compact-disc",displayName:"Library"}}}}}};n("981c");ee.render=te,ee.__scopeId="data-v-edee6494";var ne=ee,ae=(n("6062"),n("3ca3"),Object(c["K"])("data-v-341a3890"));Object(c["u"])("data-v-341a3890");var ce={key:1,class:"playlist fade-in"},se={class:"header-container"},le={class:"col-8 filter"},ie={class:"col-4 buttons"},re=Object(c["h"])("i",{class:"fa fa-plus"},null,-1),oe={class:"body",ref:"body"},ue={key:0,class:"no-content"},de={class:"col-10"},fe={class:"title"},be={key:0,class:"artist"},he={key:1,class:"album"},pe={class:"col-2 right-side"},Oe={class:"actions"};Object(c["s"])();var ve=ae((function(t,e,n,s,l,i){var r,o=Object(c["z"])("Loading"),u=Object(c["z"])("DropdownItem"),d=Object(c["z"])("Dropdown"),f=Object(c["z"])("MusicHeader");return n.loading?(Object(c["r"])(),Object(c["e"])(o,{key:0})):(Object(c["r"])(),Object(c["e"])("div",ce,[Object(c["h"])("div",se,[Object(c["h"])(f,{ref:"header"},{default:ae((function(){return[Object(c["h"])("div",le,[Object(c["h"])("label",null,[Object(c["I"])(Object(c["h"])("input",{type:"search",placeholder:"Filter","onUpdate:modelValue":e[1]||(e[1]=function(t){return l.filter=t})},null,512),[[c["F"],l.filter]])])]),Object(c["h"])("div",ie,[Object(c["h"])("button",{title:"Add track",onClick:e[2]||(e[2]=function(){return i.addTrack.apply(i,arguments)})},[re]),Object(c["h"])(d,{title:"Actions","icon-class":"fa fa-ellipsis-h"},{default:ae((function(){var s,r,o,d,f,b,h;return[Object(c["h"])(u,{text:"Save as playlist","icon-class":"fa fa-save",disabled:!(null===(s=n.tracks)||void 0===s?void 0:s.length),onClick:i.playlistSave},null,8,["disabled","onClick"]),2===(null===(r=l.selectedTracks)||void 0===r?void 0:r.length)?(Object(c["r"])(),Object(c["e"])(u,{key:0,text:"Swap tracks","icon-class":"fa fa-retweet",onClick:e[3]||(e[3]=function(e){return t.$emit("swap",l.selectedTracks)})})):Object(c["f"])("",!0),Object(c["h"])(u,{text:l.selectionMode?"End selection":"Start selection","icon-class":"far fa-check-square",disabled:!(null===(o=n.tracks)||void 0===o?void 0:o.length),onClick:e[4]||(e[4]=function(t){return l.selectionMode=!l.selectionMode})},null,8,["text","disabled"]),Object(c["h"])(u,{text:(null===(d=l.selectedTracks)||void 0===d?void 0:d.length)===(null===(f=n.tracks)||void 0===f?void 0:f.length)?"Unselect all":"Select all","icon-class":"fa fa-check-double",disabled:!(null===(b=n.tracks)||void 0===b?void 0:b.length),onClick:e[5]||(e[5]=function(t){return l.selectedTracks=l.selectedTracks.length===n.tracks.length?[]:Object(a["a"])(Array(n.tracks.length).keys())})},null,8,["text","disabled"]),l.selectedTracks.length>0?(Object(c["r"])(),Object(c["e"])(u,{key:1,text:"Remove track"+(l.selectedTracks.length>1?"s":""),"icon-class":"fa fa-trash",onClick:e[6]||(e[6]=function(e){return t.$emit("remove",Object(a["a"])(new Set(l.selectedTracks)))})},null,8,["text"])):Object(c["f"])("",!0),Object(c["h"])(u,{text:"Clear playlist","icon-class":"fa fa-ban",disabled:!(null===(h=n.tracks)||void 0===h?void 0:h.length),onClick:e[7]||(e[7]=function(e){return t.$emit("clear")})},null,8,["disabled"])]})),_:1})])]})),_:1},512)]),Object(c["h"])("div",oe,[(null===(r=n.tracks)||void 0===r?void 0:r.length)?Object(c["f"])("",!0):(Object(c["r"])(),Object(c["e"])("div",ue," No tracks are loaded ")),(Object(c["r"])(!0),Object(c["e"])(c["a"],null,Object(c["x"])(n.tracks,(function(e,s){var r,o,f,b,h;return Object(c["r"])(),Object(c["e"])("div",{class:["row track",{selected:i.selectedTracksSet.has(s),active:(null===(r=n.status)||void 0===r?void 0:r.playingPos)===s,hidden:!i.displayedTracks.has(s)}],onDragstart:function(t){return i.onTrackDragStart(s)},onDragend:function(t){return i.onTrackDragEnd(s)},onDragover:function(t){return i.onTrackDragOver(s)},draggable:"true",key:s,onClick:function(t){return i.onTrackClick(t,s)},onDblclick:function(e){return t.$emit("play",{pos:s})}},[Object(c["h"])("div",de,[Object(c["h"])("div",fe,[Object(c["g"])(Object(c["C"])(e.title||"[No Title]")+" ",1),(null===(o=n.status)||void 0===o?void 0:o.playingPos)!==s||"play"!==(null===(f=n.status)||void 0===f?void 0:f.state)&&"pause"!==(null===(b=n.status)||void 0===b?void 0:b.state)?Object(c["f"])("",!0):(Object(c["r"])(),Object(c["e"])("div",{key:0,class:["playing-icon",{paused:"pause"===(null===(h=n.status)||void 0===h?void 0:h.state)}]},[(Object(c["r"])(!0),Object(c["e"])(c["a"],null,Object(c["x"])(Object(a["a"])(Array(3).keys()),(function(t){return Object(c["r"])(),Object(c["e"])("span",{key:t})})),128))],2))]),e.artist?(Object(c["r"])(),Object(c["e"])("div",be,[Object(c["h"])("a",{href:t.$route.fullPath,textContent:Object(c["C"])(e.artist),onClick:Object(c["J"])((function(n){return t.$emit("search",{artist:e.artist})}),["prevent"])},null,8,["href","textContent","onClick"])])):Object(c["f"])("",!0),e.album?(Object(c["r"])(),Object(c["e"])("div",he,[Object(c["h"])("a",{href:t.$route.fullPath,textContent:Object(c["C"])(e.album),onClick:Object(c["J"])((function(n){return t.$emit("search",{artist:e.artist,album:e.album})}),["prevent"])},null,8,["href","textContent","onClick"])])):Object(c["f"])("",!0)]),Object(c["h"])("div",pe,[Object(c["h"])("span",{class:"duration",textContent:Object(c["C"])(e.time?t.convertTime(e.time):"-:--")},null,8,["textContent"]),Object(c["h"])("span",Oe,[Object(c["h"])(d,{title:"Actions","icon-class":"fa fa-ellipsis-h"},{default:ae((function(){return[Object(c["h"])(u,{text:"Play","icon-class":"fa fa-play",onClick:function(e){return t.$emit("play",{pos:s})}},null,8,["onClick"]),Object(c["h"])(u,{text:"Add to playlist","icon-class":"fa fa-list-ul",onClick:function(n){return t.$emit("add-to-playlist",e)}},null,8,["onClick"]),Object(c["h"])(u,{text:"Remove","icon-class":"fa fa-trash",onClick:function(e){return t.$emit("remove",Object(a["a"])(new Set([].concat(Object(a["a"])(l.selectedTracks),[s]))))}},null,8,["onClick"]),Object(c["h"])(u,{text:"Info","icon-class":"fa fa-info",onClick:function(e){return t.$emit("info",n.tracks[s])}},null,8,["onClick"])]})),_:1})])])],42,["onDragstart","onDragend","onDragover","onClick","onDblclick"])})),128))],512)]))})),je=(n("4160"),n("a434"),n("159b"),Object(c["K"])("data-v-25f0cdf5"));Object(c["u"])("data-v-25f0cdf5");var me={class:"header"};Object(c["s"])();var ye=je((function(t,e,n,a,s,l){return Object(c["r"])(),Object(c["e"])("div",me,[Object(c["y"])(t.$slots,"default")])})),ke={name:"Header"};n("4563");ke.render=ye,ke.__scopeId="data-v-25f0cdf5";var ge=ke,Ce=Object(c["K"])("data-v-44aa9863");Object(c["u"])("data-v-44aa9863");var xe={class:"dropdown-container",ref:"container"};Object(c["s"])();var we=Ce((function(t,e,n,a,s,l){return Object(c["r"])(),Object(c["e"])("div",xe,[Object(c["h"])("button",{title:n.title,ref:"button",onClick:e[1]||(e[1]=Object(c["J"])((function(){return l.toggle.apply(l,arguments)}),["stop"]))},[n.iconClass?(Object(c["r"])(),Object(c["e"])("i",{key:0,class:["icon",n.iconClass]},null,2)):Object(c["f"])("",!0),n.text?(Object(c["r"])(),Object(c["e"])("span",{key:1,class:"text",textContent:Object(c["C"])(n.text)},null,8,["textContent"])):Object(c["f"])("",!0)],8,["title"]),Object(c["h"])("div",{class:["dropdown fade-in",{hidden:!s.visible}],id:n.id,ref:"dropdown"},[Object(c["y"])(t.$slots,"default")],10,["id"])],512)})),$e={name:"Dropdown",emits:["click"],props:{id:{type:String},items:{type:Array,default:function(){return[]}},iconClass:{type:String},text:{type:String},title:{type:String}},data:function(){return{visible:!1}},methods:{documentClickHndl:function(t){if(this.visible){var e=t.target;while(e){if(e===this.$refs.dropdown.element)return;e=e.parentElement}this.close()}},close:function(){this.visible=!1,document.removeEventListener("click",this.documentClickHndl)},open:function(){var t=this;document.addEventListener("click",this.documentClickHndl),this.visible=!0,setTimeout((function(){var e=t.$refs.dropdown;e.style.left=0,e.style.top=parseFloat(getComputedStyle(t.$refs.button).height)+"px",e.getBoundingClientRect().left>window.innerWidth/2&&(e.style.left=-e.clientWidth+parseFloat(getComputedStyle(t.$refs.button).width)+"px"),e.getBoundingClientRect().top>window.innerHeight/2&&(e.style.top=-e.clientHeight+parseFloat(getComputedStyle(t.$refs.button).height)+"px")}),10)},toggle:function(){this.visible?this.close():this.open()}}};n("b224");$e.render=we,$e.__scopeId="data-v-44aa9863";var Te=$e,Pe=Object(c["K"])("data-v-607f43da");Object(c["u"])("data-v-607f43da");var Se={class:"col-1 icon"};Object(c["s"])();var Ie=Pe((function(t,e,n,a,s,l){return Object(c["r"])(),Object(c["e"])("div",{class:"row item",onClick:e[1]||(e[1]=function(){return l.clicked.apply(l,arguments)})},[Object(c["h"])("div",Se,[n.iconClass?(Object(c["r"])(),Object(c["e"])("i",{key:0,class:n.iconClass},null,2)):Object(c["f"])("",!0)]),Object(c["h"])("div",{class:"col-11 text",textContent:Object(c["C"])(n.text)},null,8,["textContent"])])})),Re={name:"DropdownItem",props:{iconClass:{type:String},text:{type:String},disabled:{type:Boolean,default:!1}},methods:{clicked:function(t){this.$parent.$emit("click",t),this.$parent.visible=!1}}};n("021b");Re.render=Ie,Re.__scopeId="data-v-607f43da";var Ae=Re,De={name:"Playlist",mixins:[K],components:{DropdownItem:Ae,Dropdown:Te,MusicHeader:ge},emits:["play","clear","add","remove","swap","search","move","save","info"],props:{tracks:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:!1},status:{type:Object,default:function(){}}},data:function(){return{selectionMode:!1,selectedTracks:[],filter:"",infoTrack:null,sourcePos:null,targetPos:null}},computed:{selectedTracksSet:function(){return new Set(this.selectedTracks)},displayedTracks:function(){var t,e=this,n=Object(a["a"])(Array(this.tracks.length).keys());if(!(null===(t=this.filter)||void 0===t?void 0:t.length))return new Set(n);var c=this,s=(c.filter||"").toLowerCase();return new Set(n.filter((function(t){var n=e.tracks[t];return((null===n||void 0===n?void 0:n.artist)||"").toLowerCase().indexOf(s)>=0||((null===n||void 0===n?void 0:n.title)||"").toLowerCase().indexOf(s)>=0||((null===n||void 0===n?void 0:n.album)||"").toLowerCase().indexOf(s)>=0})))}},methods:{onTrackClick:function(t,e){if(t.shiftKey){var n=this.selectedTracks.sort();n.length?e<n[0]?this.selectedTracks=[].concat(Object(a["a"])(this.selectedTracks),Object(a["a"])(Object(a["a"])(Array(n[0]-e).keys()).map((function(t){return t+e})))):e>n[n.length-1]&&(this.selectedTracks=[].concat(Object(a["a"])(this.selectedTracks),Object(a["a"])(Object(a["a"])(Array(e-n[n.length-1]+1).keys()).map((function(t){return t+n[n.length-1]}))))):this.selectedTracks=[e]}else{var c=this.selectedTracks.indexOf(e);this.selectionMode||t.ctrlKey?c>=0?this.selectedTracks.splice(c,1):this.selectedTracks.push(e):this.selectedTracks=c>=0?[]:[e]}},addTrack:function(){var t=prompt("Item path or URL");(null===t||void 0===t?void 0:t.length)&&this.$emit("add",t)},onTrackDragStart:function(t){this.sourcePos=t},onTrackDragEnd:function(){this.$refs.body.querySelectorAll(".track").forEach((function(t){return t.classList.remove("dragover")})),null!=this.sourcePos&&null!=this.targetPos&&this.sourcePos!==this.targetPos&&(this.$emit("move",{from:this.sourcePos,to:this.targetPos}),this.sourcePos=null,this.targetPos=null)},onTrackDragOver:function(t){this.targetPos=t;var e=this.$refs.body.querySelectorAll(".track");e.forEach((function(t){return t.classList.remove("dragover")})),Object(a["a"])(e)[t].classList.add("dragover")},playlistSave:function(){var t=prompt("Playlist name");(null===t||void 0===t?void 0:t.length)&&this.$emit("save",t)}},mounted:function(){var t=this;this.$watch((function(){var e;return null===(e=t.status)||void 0===e?void 0:e.playingPos}),(function(e){if(null!=e){var n=Object(a["a"])(t.$refs.body.querySelectorAll(".track"))[e],c=n.offsetTop-parseFloat(getComputedStyle(t.$refs.header.$el).height);t.$refs.body.scrollTo(0,c)}}))}};n("9fe6");De.render=ve,De.__scopeId="data-v-341a3890";var Ee=De,Fe=Object(c["K"])("data-v-101dc818");Object(c["u"])("data-v-101dc818");var Me={key:1,class:"editor-container fade-in"},Le={class:"header-container"},_e=Object(c["h"])("i",{class:"fas fa-arrow-left"},null,-1),ze={class:"search-box"},Ne=Object(c["h"])("i",{class:"fas fa-plus"},null,-1),Ve={class:"editor",ref:"editor"},qe={key:0,class:"no-content"},Ke={class:"col-10"},Je={class:"title"},Ue={key:0,class:"artist"},He={key:1,class:"album"},Be={class:"col-2 right-side"},Qe={class:"actions"},We={key:2,class:"playlists fade-in"},Ge={class:"header-container"},Xe={class:"col-8 filter"},Ye={class:"body",ref:"body"},Ze={key:0,class:"no-content"},tn={class:"col-10"},en={class:"col-2 right-side"},nn={class:"actions"};Object(c["s"])();var an=Fe((function(t,e,n,s,l,i){var r,o,u=Object(c["z"])("Loading"),d=Object(c["z"])("MusicHeader"),f=Object(c["z"])("DropdownItem"),b=Object(c["z"])("Dropdown");return n.loading?(Object(c["r"])(),Object(c["e"])(u,{key:0})):n.editedPlaylist?(Object(c["r"])(),Object(c["e"])("div",Me,[Object(c["h"])("div",Le,[Object(c["h"])(d,{ref:"header"},{default:Fe((function(){return[Object(c["h"])("button",{class:"back-btn",title:"Back",onClick:e[1]||(e[1]=function(e){return t.$emit("playlist-edit",null)})},[_e]),Object(c["h"])("label",ze,[Object(c["I"])(Object(c["h"])("input",{type:"search",placeholder:"Filter","onUpdate:modelValue":e[2]||(e[2]=function(t){return l.trackFilter=t})},null,512),[[c["F"],l.trackFilter]])]),Object(c["h"])("button",{class:"add-btn",title:"Add track",onClick:e[3]||(e[3]=function(){return i.addTrack.apply(i,arguments)})},[Ne])]})),_:1},512)]),Object(c["h"])("div",Ve,[(null===(r=n.tracks)||void 0===r?void 0:r.length)?Object(c["f"])("",!0):(Object(c["r"])(),Object(c["e"])("div",qe," No tracks found ")),(Object(c["r"])(!0),Object(c["e"])(c["a"],null,Object(c["x"])(n.tracks,(function(e,s){var r;return Object(c["r"])(),Object(c["e"])("div",{class:["row track",{selected:i.selectedTracksSet.has(s),active:(null===(r=t.status)||void 0===r?void 0:r.playingPos)===s,hidden:!i.displayedTracks.has(s)}],draggable:"true",key:s,onDragstart:function(t){return i.onTrackDragStart(s)},onDragend:function(t){return i.onTrackDragEnd(s)},onDragover:function(t){return i.onTrackDragOver(s)},onClick:function(t){return i.onTrackClick(t,s)},onDblclick:function(e){return t.$emit("load-track",{pos:s,play:!0})}},[Object(c["h"])("div",Ke,[Object(c["h"])("div",Je,Object(c["C"])(e.title||"[No Title]"),1),e.artist?(Object(c["r"])(),Object(c["e"])("div",Ue,[Object(c["h"])("a",{href:t.$route.fullPath,textContent:Object(c["C"])(e.artist),onClick:Object(c["J"])((function(n){return t.$emit("search",{artist:e.artist})}),["prevent"])},null,8,["href","textContent","onClick"])])):Object(c["f"])("",!0),e.album?(Object(c["r"])(),Object(c["e"])("div",He,[Object(c["h"])("a",{href:t.$route.fullPath,textContent:Object(c["C"])(e.album),onClick:Object(c["J"])((function(n){return t.$emit("search",{artist:e.artist,album:e.album})}),["prevent"])},null,8,["href","textContent","onClick"])])):Object(c["f"])("",!0)]),Object(c["h"])("div",Be,[Object(c["h"])("span",{class:"duration",textContent:Object(c["C"])(e.time?t.convertTime(e.time):"-:--")},null,8,["textContent"]),Object(c["h"])("span",Qe,[Object(c["h"])(b,{title:"Actions","icon-class":"fa fa-ellipsis-h"},{default:Fe((function(){return[Object(c["h"])(f,{text:"Play","icon-class":"fa fa-play",onClick:function(e){return t.$emit("load-track",{pos:s,play:!0})}},null,8,["onClick"]),Object(c["h"])(f,{text:"Add to queue","icon-class":"fa fa-plus",onClick:function(e){return t.$emit("load-track",{pos:s,play:!1})}},null,8,["onClick"]),Object(c["h"])(f,{text:"Add to playlist","icon-class":"fa fa-list-ul",onClick:function(n){return t.$emit("add-to-playlist",e)}},null,8,["onClick"]),Object(c["h"])(f,{text:"Remove","icon-class":"fa fa-trash",onClick:function(e){return t.$emit("remove-track",Object(a["a"])(new Set([].concat(Object(a["a"])(l.selectedTracks),[s]))))}},null,8,["onClick"]),Object(c["h"])(f,{text:"Info","icon-class":"fa fa-info",onClick:Object(c["J"])((function(e){return t.$emit("info",n.tracks[s])}),["stop"])},null,8,["onClick"])]})),_:1})])])],42,["onDragstart","onDragend","onDragover","onClick","onDblclick"])})),128))],512)])):(Object(c["r"])(),Object(c["e"])("div",We,[Object(c["h"])("div",Ge,[Object(c["h"])(d,{ref:"header"},{default:Fe((function(){return[Object(c["h"])("div",Xe,[Object(c["h"])("label",null,[Object(c["I"])(Object(c["h"])("input",{type:"search",placeholder:"Filter","onUpdate:modelValue":e[4]||(e[4]=function(t){return l.filter=t})},null,512),[[c["F"],l.filter]])])])]})),_:1},512)]),Object(c["h"])("div",Ye,[(null===(o=n.playlists)||void 0===o?void 0:o.length)?Object(c["f"])("",!0):(Object(c["r"])(),Object(c["e"])("div",Ze," No playlists found ")),(Object(c["r"])(!0),Object(c["e"])(c["a"],null,Object(c["x"])(n.playlists,(function(e,n){return Object(c["r"])(),Object(c["e"])("div",{class:["row playlist",{hidden:!i.displayedPlaylists.has(n)}],key:n,onClick:function(e){return t.$emit("playlist-edit",n)},onDblclick:function(e){return t.$emit("load",n)}},[Object(c["h"])("div",tn,[Object(c["h"])("div",{class:"name",textContent:Object(c["C"])(e.name||"[No Name]")},null,8,["textContent"])]),Object(c["h"])("div",en,[Object(c["h"])("span",nn,[Object(c["h"])(b,{title:"Actions","icon-class":"fa fa-ellipsis-h"},{default:Fe((function(){return[Object(c["h"])(f,{text:"Play","icon-class":"fa fa-play",onClick:Object(c["J"])((function(e){return t.$emit("play",n)}),["stop"])},null,8,["onClick"]),Object(c["h"])(f,{text:"Load","icon-class":"fa fa-list-ul",onClick:Object(c["J"])((function(e){return t.$emit("load",n)}),["stop"])},null,8,["onClick"]),Object(c["h"])(f,{text:"Edit","icon-class":"fa fa-edit",onClick:Object(c["J"])((function(e){return t.$emit("playlist-edit",n)}),["stop"])},null,8,["onClick"]),Object(c["h"])(f,{text:"Remove","icon-class":"fa fa-trash",onClick:Object(c["J"])((function(e){return t.$emit("remove",n)}),["stop"])},null,8,["onClick"])]})),_:1})])])],42,["onClick","onDblclick"])})),128))],512)]))})),cn={name:"Playlists",mixins:[K],components:{DropdownItem:Ae,Dropdown:Te,MusicHeader:ge},emits:["play","load","remove","playlist-edit","search","remove-track","load-track","info","playlist-add","add-to-playlist","track-move"],props:{playlists:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:!1},tracks:{type:Array,default:function(){return[]}},editedPlaylist:{type:Number}},data:function(){return{selectedTracks:[],filter:"",trackFilter:"",sourcePos:null,targetPos:null}},computed:{selectedTracksSet:function(){return new Set(this.selectedTracks)},displayedPlaylists:function(){var t,e=this,n=Object(a["a"])(Array(this.playlists.length).keys());if(!(null===(t=this.filter)||void 0===t?void 0:t.length))return new Set(n);var c=this,s=(c.filter||"").toLowerCase();return new Set(n.filter((function(t){var n=e.playlists[t];return((null===n||void 0===n?void 0:n.name)||"").toLowerCase().indexOf(s)>=0})))},displayedTracks:function(){var t,e=this,n=Object(a["a"])(Array(this.tracks.length).keys());if(!(null===(t=this.trackFilter)||void 0===t?void 0:t.length))return new Set(n);var c=this,s=(c.trackFilter||"").toLowerCase();return new Set(n.filter((function(t){var n=e.tracks[t];return((null===n||void 0===n?void 0:n.artist)||"").toLowerCase().indexOf(s)>=0||((null===n||void 0===n?void 0:n.title)||"").toLowerCase().indexOf(s)>=0||((null===n||void 0===n?void 0:n.album)||"").toLowerCase().indexOf(s)>=0})))}},methods:{onTrackClick:function(t,e){if(t.shiftKey){var n=this.selectedTracks.sort();n.length?e<n[0]?this.selectedTracks=[].concat(Object(a["a"])(this.selectedTracks),Object(a["a"])(Object(a["a"])(Array(n[0]-e).keys()).map((function(t){return t+e})))):e>n[n.length-1]&&(this.selectedTracks=[].concat(Object(a["a"])(this.selectedTracks),Object(a["a"])(Object(a["a"])(Array(e-n[n.length-1]+1).keys()).map((function(t){return t+n[n.length-1]}))))):this.selectedTracks=[e]}else{var c=this.selectedTracks.indexOf(e);t.ctrlKey?c>=0?this.selectedTracks.splice(c,1):this.selectedTracks.push(e):this.selectedTracks=c>=0?[]:[e]}},addTrack:function(){var t=prompt("Track path or URL");(null===t||void 0===t?void 0:t.length)&&this.$emit("playlist-add",t)},onTrackDragStart:function(t){this.sourcePos=t},onTrackDragEnd:function(){this.$refs.editor.querySelectorAll(".track").forEach((function(t){return t.classList.remove("dragover")})),null!=this.sourcePos&&null!=this.targetPos&&this.sourcePos!==this.targetPos&&(this.$emit("track-move",{from:this.sourcePos,to:this.targetPos,playlist:this.editedPlaylist}),this.sourcePos=null,this.targetPos=null)},onTrackDragOver:function(t){this.targetPos=t;var e=this.$refs.editor.querySelectorAll(".track");e.forEach((function(t){return t.classList.remove("dragover")})),Object(a["a"])(e)[t].classList.add("dragover")}}};n("cd4d");cn.render=an,cn.__scopeId="data-v-101dc818";var sn=cn,ln=Object(c["K"])("data-v-bc0f0676");Object(c["u"])("data-v-bc0f0676");var rn={class:"row"},on={class:"row"},un={class:"row"},dn={class:"row"},fn=Object(c["h"])("i",{class:"icon fa fa-times"},null,-1),bn=Object(c["h"])("span",{class:"btn-title"},"Clear",-1),hn=Object(c["h"])("button",{type:"submit"},[Object(c["h"])("i",{class:"icon fa fa-search"}),Object(c["h"])("span",{class:"btn-title"},"Search")],-1),pn={class:"search-box"},On={class:"buttons"},vn=Object(c["h"])("i",{class:"icon fa fa-times"},null,-1),jn=Object(c["h"])("span",{class:"btn-title"},"Clear",-1),mn={class:"results"},yn={class:"col-10"},kn={class:"title"},gn={class:"col-2 right-side"},Cn={class:"actions"};Object(c["s"])();var xn=ln((function(t,e,n,a,s,l){var i=Object(c["z"])("FormFooter"),r=Object(c["z"])("MusicHeader"),o=Object(c["z"])("DropdownItem"),u=Object(c["z"])("Dropdown");return Object(c["r"])(),Object(c["e"])("div",{class:["search fade-in",{"form-collapsed":l.formCollapsed}]},[l.formCollapsed?(Object(c["r"])(),Object(c["e"])(r,{key:1},{default:ln((function(){return[Object(c["h"])("label",pn,[Object(c["I"])(Object(c["h"])("input",{type:"search",placeholder:"Filter","onUpdate:modelValue":e[7]||(e[7]=function(t){return s.filter=t})},null,512),[[c["F"],s.filter]])]),Object(c["h"])("span",On,[Object(c["h"])("button",{onClick:e[8]||(e[8]=function(){return l.clear.apply(l,arguments)})},[vn,jn])])]})),_:1})):(Object(c["r"])(),Object(c["e"])("form",{key:0,class:"search-form",onSubmit:e[6]||(e[6]=Object(c["J"])((function(e){return t.$emit("search",l.filteredQuery)}),["prevent"]))},[Object(c["h"])("div",rn,[Object(c["h"])("label",null,[Object(c["I"])(Object(c["h"])("input",{type:"text",placeholder:"Any","onUpdate:modelValue":e[1]||(e[1]=function(t){return s.query.any=t})},null,512),[[c["F"],s.query.any]])])]),Object(c["h"])("div",on,[Object(c["h"])("label",null,[Object(c["I"])(Object(c["h"])("input",{type:"text",placeholder:"Artist","onUpdate:modelValue":e[2]||(e[2]=function(t){return s.query.artist=t})},null,512),[[c["F"],s.query.artist]])])]),Object(c["h"])("div",un,[Object(c["h"])("label",null,[Object(c["I"])(Object(c["h"])("input",{type:"text",placeholder:"Title","onUpdate:modelValue":e[3]||(e[3]=function(t){return s.query.title=t})},null,512),[[c["F"],s.query.title]])])]),Object(c["h"])("div",dn,[Object(c["h"])("label",null,[Object(c["I"])(Object(c["h"])("input",{type:"text",placeholder:"Album","onUpdate:modelValue":e[4]||(e[4]=function(t){return s.query.album=t})},null,512),[[c["F"],s.query.album]])])]),Object(c["h"])(i,null,{default:ln((function(){return[Object(c["h"])("button",{onClick:e[5]||(e[5]=function(){return l.clear.apply(l,arguments)})},[fn,bn]),hn]})),_:1})],32)),Object(c["h"])("div",mn,[(Object(c["r"])(!0),Object(c["e"])(c["a"],null,Object(c["x"])(n.results,(function(e,n){var a,i;return Object(c["r"])(),Object(c["e"])("div",{class:["row track",{selected:s.selectedResults.has(n),hidden:!l.displayedTracks.has(n)}],key:n,onClick:function(t){return l.resultClick(n,t)}},[Object(c["h"])("div",yn,[Object(c["h"])("div",kn,Object(c["C"])(e.title||"[No Title]"),1),(null===(a=e.artist)||void 0===a?void 0:a.length)?(Object(c["r"])(),Object(c["e"])("div",{key:0,class:"artist",textContent:Object(c["C"])(e.artist)},null,8,["textContent"])):Object(c["f"])("",!0),(null===(i=e.album)||void 0===i?void 0:i.length)?(Object(c["r"])(),Object(c["e"])("div",{key:1,class:"album",textContent:Object(c["C"])(e.album)},null,8,["textContent"])):Object(c["f"])("",!0)]),Object(c["h"])("div",gn,[Object(c["h"])("span",{class:"duration",textContent:Object(c["C"])(e.time&&parseInt(e.time)?t.convertTime(e.time):"-:--")},null,8,["textContent"]),Object(c["h"])("span",Cn,[Object(c["h"])(u,{title:"Actions","icon-class":"fa fa-ellipsis-h"},{default:ln((function(){return[Object(c["h"])(o,{text:"Play","icon-class":"fa fa-play",onClick:function(t){return l.play(n)}},null,8,["onClick"]),Object(c["h"])(o,{text:"Add to queue","icon-class":"fa fa-plus",onClick:function(t){return l.load(n)}},null,8,["onClick"]),Object(c["h"])(o,{text:"Add to playlist","icon-class":"fa fa-list-ul",onClick:function(n){return t.$emit("add-to-playlist",e)}},null,8,["onClick"]),Object(c["h"])(o,{text:"Info","icon-class":"fa fa-info",onClick:function(n){return t.$emit("info",e)}},null,8,["onClick"])]})),_:1})])])],10,["onClick"])})),128))])],2)})),wn=(n("13d5"),n("4fad"),n("3835")),$n={name:"Search",components:{Dropdown:Te,DropdownItem:Ae,FormFooter:z,MusicHeader:ge},mixins:[K],emits:["search","clear","play","load","add-to-playlist","info"],props:{loading:{type:Boolean,default:!1},results:{type:Array}},data:function(){return{selectedResults:new Set,filter:"",query:{any:"",artist:"",title:"",album:""}}},computed:{formCollapsed:function(){var t;return(null===(t=this.results)||void 0===t?void 0:t.length)>0},filteredQuery:function(){return Object.entries(this.query).filter((function(t){var e;return null===(e=t[1])||void 0===e?void 0:e.length})).reduce((function(t,e){var n=Object(wn["a"])(e,2),a=n[0],c=n[1];return t[a]=c,t}),{})},displayedTracks:function(){var t,e=this;return new Set(Object(a["a"])(Array((null===(t=this.results)||void 0===t?void 0:t.length)||0).keys()).filter((function(t){var n,a=e.results[t];if(!(null===(n=e.filter)||void 0===n?void 0:n.length))return a;var c=e.filter.toLowerCase();return((null===a||void 0===a?void 0:a.artist)||"").toLowerCase().indexOf(c)>=0||((null===a||void 0===a?void 0:a.title)||"").toLowerCase().indexOf(c)>=0||((null===a||void 0===a?void 0:a.album)||"").toLowerCase().indexOf(c)>=0})))}},methods:{clear:function(){this.$emit("clear"),this.selectedResults=new Set},resultClick:function(t,e){if(e.shiftKey){if(this.selectedResults.size>0&&!this.selectedResults.has(t)){var n=Object(a["a"])(this.selectedResults),c=Math.min(Math.min(n),t),s=Math.max(Math.max(n),t);this.selectedResults=new Set(Object(a["a"])(Array(s-c+1).keys()).map((function(t){return t+c})))}}else e.ctrlKey||(this.selectedResults=new Set),this.selectedResults.has(t)?this.selectedResults.delete(t):this.selectedResults.add(t)},play:function(t){var e=this;this.$emit("play",this.results[t]),this.selectedResults.size&&this.selectedResults.forEach((function(t){e.$emit("load",t)}))},load:function(t){var e=this;this.selectedResults.has(t)||this.selectedResults.add(t),this.selectedResults.forEach((function(t){e.$emit("load",e.results[t])}))}}};n("8716");$n.render=xn,$n.__scopeId="data-v-bc0f0676";var Tn=$n,Pn=(n("1276"),Object(c["K"])("data-v-6696f4d8"));Object(c["u"])("data-v-6696f4d8");var Sn={class:"library fade-in"},In={class:"search-box"},Rn={class:"results"},An=Object(c["h"])("div",{class:"icon-container"},[Object(c["h"])("i",{class:"icon fa fa-folder"})],-1),Dn=Object(c["h"])("div",{class:"result-container"},[Object(c["h"])("div",{class:"title"},"..")],-1),En={class:"col-10 left-side"},Fn={class:"icon-container"},Mn={key:0,class:"icon fa fa-folder"},Ln={key:1,class:"icon fa fa-music"},_n={class:"info"},zn={class:"title"},Nn={class:"artist-album"},Vn={class:"col-2 right-side"},qn={class:"actions"};Object(c["s"])();var Kn=Pn((function(t,e,n,a,s,l){var i=Object(c["z"])("Loading"),r=Object(c["z"])("MusicHeader"),o=Object(c["z"])("DropdownItem"),u=Object(c["z"])("Dropdown");return Object(c["r"])(),Object(c["e"])("div",Sn,[n.loading?(Object(c["r"])(),Object(c["e"])(i,{key:0})):Object(c["f"])("",!0),Object(c["h"])(r,null,{default:Pn((function(){return[Object(c["h"])("label",In,[Object(c["I"])(Object(c["h"])("input",{type:"search",placeholder:"Filter","onUpdate:modelValue":e[1]||(e[1]=function(t){return s.filter=t})},null,512),[[c["F"],s.filter]])])]})),_:1}),Object(c["h"])("div",Rn,["/"!==n.path?(Object(c["r"])(),Object(c["e"])("div",{key:0,class:"row track back-track",onClick:e[2]||(e[2]=function(){return l.back.apply(l,arguments)})},[An,Dn])):Object(c["f"])("",!0),(Object(c["r"])(!0),Object(c["e"])(c["a"],null,Object(c["x"])(n.results,(function(e,n){var a,i;return Object(c["r"])(),Object(c["e"])("div",{class:["row track",{selected:s.selectedResults.has(n),hidden:!l.displayedResults.has(n)}],key:n,onClick:function(t){return l.resultClick(n,t)}},[Object(c["h"])("div",En,[Object(c["h"])("div",Fn,[e.directory?(Object(c["r"])(),Object(c["e"])("i",Mn)):e.file?(Object(c["r"])(),Object(c["e"])("i",Ln)):Object(c["f"])("",!0)]),Object(c["h"])("div",_n,[Object(c["h"])("div",zn,[e.directory?(Object(c["r"])(),Object(c["e"])("span",{key:0,textContent:Object(c["C"])(e.directory.split("/").pop())},null,8,["textContent"])):e.title?(Object(c["r"])(),Object(c["e"])("span",{key:1,textContent:Object(c["C"])(e.title)},null,8,["textContent"])):Object(c["f"])("",!0)]),Object(c["h"])("div",Nn,[(null===(a=e.artist)||void 0===a?void 0:a.length)?(Object(c["r"])(),Object(c["e"])("div",{key:0,class:"artist",textContent:Object(c["C"])(e.artist)},null,8,["textContent"])):Object(c["f"])("",!0),(null===(i=e.album)||void 0===i?void 0:i.length)?(Object(c["r"])(),Object(c["e"])("div",{key:1,class:"album",textContent:Object(c["C"])(e.album)},null,8,["textContent"])):Object(c["f"])("",!0)])])]),Object(c["h"])("div",Vn,[Object(c["h"])("span",{class:"duration",textContent:Object(c["C"])(e.time&&parseInt(e.time)?t.convertTime(e.time):"-:--")},null,8,["textContent"]),Object(c["h"])("span",qn,[Object(c["h"])(u,{title:"Actions","icon-class":"fa fa-ellipsis-h"},{default:Pn((function(){return[Object(c["h"])(o,{text:"Play","icon-class":"fa fa-play",onClick:function(t){return l.play(n)}},null,8,["onClick"]),Object(c["h"])(o,{text:"Add to queue","icon-class":"fa fa-plus",onClick:function(t){return l.load(n)}},null,8,["onClick"]),Object(c["h"])(o,{text:"Add to playlist","icon-class":"fa fa-list-ul",onClick:function(n){return t.$emit("add-to-playlist",e)}},null,8,["onClick"]),Object(c["h"])(o,{text:"Info","icon-class":"fa fa-info",onClick:function(n){return t.$emit("info",e)}},null,8,["onClick"])]})),_:1})])])],10,["onClick"])})),128))])])})),Jn=(n("fb6a"),{name:"Library",components:{Dropdown:Te,DropdownItem:Ae,MusicHeader:ge,Loading:N["a"]},mixins:[K],emits:["search","play","load","add-to-playlist","info","cd"],props:{loading:{type:Boolean,default:!1},results:{type:Array},path:{type:String}},data:function(){return{selectedResults:new Set,filter:"",query:{any:"",artist:"",title:"",album:""}}},computed:{displayedResults:function(){var t,e=this;return new Set(Object(a["a"])(Array((null===(t=this.results)||void 0===t?void 0:t.length)||0).keys()).filter((function(t){var n,a=e.results[t];if(!(null===(n=e.filter)||void 0===n?void 0:n.length))return a;var c=e.filter.toLowerCase();return((null===a||void 0===a?void 0:a.artist)||"").toLowerCase().indexOf(c)>=0||((null===a||void 0===a?void 0:a.title)||"").toLowerCase().indexOf(c)>=0||((null===a||void 0===a?void 0:a.album)||"").toLowerCase().indexOf(c)>=0||((null===a||void 0===a?void 0:a.directory)||"").toLowerCase().indexOf(c)>=0})))}},methods:{resultClick:function(t,e){if(e.shiftKey){if(this.selectedResults.size>0&&!this.selectedResults.has(t)){var n=Object(a["a"])(this.selectedResults),c=Math.min(Math.min(n),t),s=Math.max(Math.max(n),t);this.selectedResults=new Set(Object(a["a"])(Array(s-c+1).keys()).map((function(t){return t+c})))}}else e.ctrlKey?this.selectedResults.has(t)?this.selectedResults.delete(t):this.selectedResults.add(t):this.results[t].directory?this.$emit("cd",this.results[t].directory):(this.selectedResults=new Set,this.selectedResults.has(t)?this.selectedResults.delete(t):this.selectedResults.add(t))},play:function(t){var e=this;this.$emit("play",this.results[t]),this.selectedResults.size&&this.selectedResults.forEach((function(t){e.$emit("load",t)}))},load:function(t){var e=this;this.selectedResults.has(t)||this.selectedResults.add(t),this.selectedResults.forEach((function(t){e.$emit("load",e.results[t])}))},back:function(){var t=this.path.split("/");this.$emit("cd",t.slice(0,t.length-1).join("/"))}}});n("ea5f");Jn.render=Kn,Jn.__scopeId="data-v-6696f4d8";var Un=Jn,Hn={name:"Music",emits:["play","pause","stop","clear","previous","next","set-volume","seek","consume","repeat","random","status-update","playlist-update","new-playing-track","add-to-tracklist","remove-from-tracklist","swap-tracks","play-playlist","load-playlist","remove-playlist","tracklist-move","tracklist-save","add-to-tracklist-from-edited-playlist","remove-from-playlist","info","playlist-add","add-to-playlist","playlist-track-move","search","search-clear","cd"],mixins:[Bt["a"],K],components:{Loading:N["a"],Modal:V["a"],Nav:ne,MediaView:Yt,Playlist:Ee,Playlists:sn,FormFooter:z,Search:Tn,Library:Un},props:{pluginName:{type:String,required:!0},loading:{type:Boolean,default:!1},config:{type:Object,default:function(){}},tracks:{type:Array,default:function(){return[]}},editedPlaylistTracks:{type:Array,default:function(){return[]}},playlists:{type:Array,default:function(){return[]}},status:{type:Object,default:function(){}},editedPlaylist:{type:Number},trackInfo:{type:String},searchResults:{type:Array},libraryResults:{type:Array},path:{type:String}},data:function(){return{selectedView:"playing",selectedPlaylists:[],addToPlaylistTrack:null,playlistFilter:""}},computed:{track:function(){var t;return null==(null===(t=this.status)||void 0===t?void 0:t.playingPos)?null:this.tracks[this.status.playingPos]}},methods:{onStatusEvent:function(t){var e=this;return Object(E["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.plugin_name===e.pluginName){n.next=2;break}return n.abrupt("return");case 2:e.$emit("status-update",t);case 3:case"end":return n.stop()}}),n)})))()},onPlaylistEvent:function(t){var e=this;return Object(E["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.plugin_name===e.pluginName){n.next=2;break}return n.abrupt("return");case 2:e.$emit("playlist-update",t);case 3:case"end":return n.stop()}}),n)})))()},onNewPlayingTrack:function(t){var e=this;return Object(E["a"])(regeneratorRuntime.mark((function n(){var a,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.plugin_name===e.pluginName){n.next=2;break}return n.abrupt("return");case 2:e.notify({html:"<b>".concat(null===(a=t.track)||void 0===a?void 0:a.artist,"</b><br>").concat(null===(c=t.track)||void 0===c?void 0:c.title),image:{iconClass:"fa fa-play"}}),e.$emit("new-playing-track",t);case 4:case"end":return n.stop()}}),n)})))()},openAddToPlaylist:function(t){var e=this;return Object(E["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.addToPlaylistTrack=t,e.$refs.playlistsModal.isVisible=!0;case 2:case"end":return n.stop()}}),n)})))()},addToPlaylist:function(){var t=this;return Object(E["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$emit("add-to-playlist",{track:t.addToPlaylistTrack,playlists:Object(a["a"])(Array(t.selectedPlaylists.length).keys()).filter((function(e){return t.selectedPlaylists[e]}))}),t.$refs.playlistsModal.isVisible=!1,t.addToPlaylistTrack=null,t.playlistFilter="";case 4:case"end":return e.stop()}}),e)})))()},search:function(t){var e=this;return Object(E["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.$emit("search",t),e.$refs.trackInfo.isVisible=!1,e.selectedView="search";case 3:case"end":return n.stop()}}),n)})))()}},mounted:function(){var t=this;this.subscribe(this.onStatusEvent,"on-status-update","platypush.message.event.music.MusicPlayEvent","platypush.message.event.music.MusicPauseEvent","platypush.message.event.music.MusicStopEvent","platypush.message.event.music.SeekChangeEvent","platypush.message.event.music.VolumeChangeEvent","platypush.message.event.music.MuteChangeEvent","platypush.message.event.music.PlaybackRepeatModeChangeEvent","platypush.message.event.music.PlaybackRandomModeChangeEvent","platypush.message.event.music.PlaybackConsumeModeChangeEvent","platypush.message.event.music.PlaybackSingleModeChangeEvent"),this.subscribe(this.onPlaylistEvent,"on-playlist-update","platypush.message.event.music.PlaylistChangeEvent"),this.subscribe(this.onNewPlayingTrack,"on-new-playing-track","platypush.message.event.music.NewPlayingTrackEvent"),this.$watch((function(){return t.trackInfo}),(function(e){null!=e&&(t.$refs.trackInfo.isVisible=!0)}))},unmounted:function(){this.unsubscribe("on-status-update"),this.unsubscribe("on-playlist-update")}};n("b8b0");Hn.render=D,Hn.__scopeId="data-v-2ccb9e3d";e["default"]=Hn},"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"38cf":function(t,e,n){var a=n("23e7"),c=n("1148");a({target:"String",proto:!0},{repeat:c})},"391b":function(t,e,n){},"3fbf":function(t,e,n){},4563:function(t,e,n){"use strict";n("a0a3")},"577a":function(t,e,n){},6062:function(t,e,n){"use strict";var a=n("6d61"),c=n("6566");t.exports=a("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),c)},6566:function(t,e,n){"use strict";var a=n("9bf2").f,c=n("7c73"),s=n("e2cc"),l=n("0366"),i=n("19aa"),r=n("2266"),o=n("7dd0"),u=n("2626"),d=n("83ab"),f=n("f183").fastKey,b=n("69f3"),h=b.set,p=b.getterFor;t.exports={getConstructor:function(t,e,n,o){var u=t((function(t,a){i(t,u,e),h(t,{type:e,index:c(null),first:void 0,last:void 0,size:0}),d||(t.size=0),void 0!=a&&r(a,t[o],{that:t,AS_ENTRIES:n})})),b=p(e),O=function(t,e,n){var a,c,s=b(t),l=v(t,e);return l?l.value=n:(s.last=l={index:c=f(e,!0),key:e,value:n,previous:a=s.last,next:void 0,removed:!1},s.first||(s.first=l),a&&(a.next=l),d?s.size++:t.size++,"F"!==c&&(s.index[c]=l)),t},v=function(t,e){var n,a=b(t),c=f(e);if("F"!==c)return a.index[c];for(n=a.first;n;n=n.next)if(n.key==e)return n};return s(u.prototype,{clear:function(){var t=this,e=b(t),n=e.index,a=e.first;while(a)a.removed=!0,a.previous&&(a.previous=a.previous.next=void 0),delete n[a.index],a=a.next;e.first=e.last=void 0,d?e.size=0:t.size=0},delete:function(t){var e=this,n=b(e),a=v(e,t);if(a){var c=a.next,s=a.previous;delete n.index[a.index],a.removed=!0,s&&(s.next=c),c&&(c.previous=s),n.first==a&&(n.first=c),n.last==a&&(n.last=s),d?n.size--:e.size--}return!!a},forEach:function(t){var e,n=b(this),a=l(t,arguments.length>1?arguments[1]:void 0,3);while(e=e?e.next:n.first){a(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!v(this,t)}}),s(u.prototype,n?{get:function(t){var e=v(this,t);return e&&e.value},set:function(t,e){return O(this,0===t?0:t,e)}}:{add:function(t){return O(this,t=0===t?0:t,t)}}),d&&a(u.prototype,"size",{get:function(){return b(this).size}}),u},setStrong:function(t,e,n){var a=e+" Iterator",c=p(e),s=p(a);o(t,e,(function(t,e){h(this,{type:a,target:t,state:c(t),kind:e,last:void 0})}),(function(){var t=s(this),e=t.kind,n=t.last;while(n&&n.removed)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(e)}}},"6d61":function(t,e,n){"use strict";var a=n("23e7"),c=n("da84"),s=n("94ca"),l=n("6eeb"),i=n("f183"),r=n("2266"),o=n("19aa"),u=n("861d"),d=n("d039"),f=n("1c7e"),b=n("d44e"),h=n("7156");t.exports=function(t,e,n){var p=-1!==t.indexOf("Map"),O=-1!==t.indexOf("Weak"),v=p?"set":"add",j=c[t],m=j&&j.prototype,y=j,k={},g=function(t){var e=m[t];l(m,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(O&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return O&&!u(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(O&&!u(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(s(t,"function"!=typeof j||!(O||m.forEach&&!d((function(){(new j).entries().next()})))))y=n.getConstructor(e,t,p,v),i.REQUIRED=!0;else if(s(t,!0)){var C=new y,x=C[v](O?{}:-0,1)!=C,w=d((function(){C.has(1)})),$=f((function(t){new j(t)})),T=!O&&d((function(){var t=new j,e=5;while(e--)t[v](e,e);return!t.has(-0)}));$||(y=e((function(e,n){o(e,y,t);var a=h(new j,e,y);return void 0!=n&&r(n,a[v],{that:a,AS_ENTRIES:p}),a})),y.prototype=m,m.constructor=y),(w||T)&&(g("delete"),g("has"),p&&g("get")),(T||x)&&g(v),O&&m.clear&&delete m.clear}return k[t]=y,a({global:!0,forced:y!=j},k),b(y,t),O||n.setStrong(y,t,p),y}},"70d5":function(t,e,n){"use strict";n("9e45")},7198:function(t,e,n){},"7efc":function(t,e,n){},"841c":function(t,e,n){"use strict";var a=n("d784"),c=n("825a"),s=n("1d80"),l=n("129f"),i=n("14c3");a("search",1,(function(t,e,n){return[function(e){var n=s(this),a=void 0==e?void 0:e[t];return void 0!==a?a.call(e,n):new RegExp(e)[t](String(n))},function(t){var a=n(e,t,this);if(a.done)return a.value;var s=c(t),r=String(this),o=s.lastIndex;l(o,0)||(s.lastIndex=0);var u=i(s,r);return l(s.lastIndex,o)||(s.lastIndex=o),null===u?-1:u.index}]}))},8716:function(t,e,n){"use strict";n("f27c")},"981c":function(t,e,n){"use strict";n("7198")},"9e45":function(t,e,n){},"9fe6":function(t,e,n){"use strict";n("577a")},a0a3:function(t,e,n){},a434:function(t,e,n){"use strict";var a=n("23e7"),c=n("23cb"),s=n("a691"),l=n("50c4"),i=n("7b0b"),r=n("65f0"),o=n("8418"),u=n("1dde"),d=n("ae40"),f=u("splice"),b=d("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,p=Math.min,O=9007199254740991,v="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!f||!b},{splice:function(t,e){var n,a,u,d,f,b,j=i(this),m=l(j.length),y=c(t,m),k=arguments.length;if(0===k?n=a=0:1===k?(n=0,a=m-y):(n=k-2,a=p(h(s(e),0),m-y)),m+n-a>O)throw TypeError(v);for(u=r(j,a),d=0;d<a;d++)f=y+d,f in j&&o(u,d,j[f]);if(u.length=a,n<a){for(d=y;d<m-a;d++)f=d+a,b=d+n,f in j?j[b]=j[f]:delete j[b];for(d=m;d>m-a+n;d--)delete j[d-1]}else if(n>a)for(d=m-a;d>y;d--)f=d+a-1,b=d+n-1,f in j?j[b]=j[f]:delete j[b];for(d=0;d<n;d++)j[d+y]=arguments[d+2];return j.length=m-a+n,u}})},a7b8:function(t,e,n){},b224:function(t,e,n){"use strict";n("3fbf")},b8b0:function(t,e,n){"use strict";n("d83f")},bb2f:function(t,e,n){var a=n("d039");t.exports=!a((function(){return Object.isExtensible(Object.preventExtensions({}))}))},c3da:function(t,e,n){},cd4d:function(t,e,n){"use strict";n("391b")},d83f:function(t,e,n){},ea5f:function(t,e,n){"use strict";n("7efc")},f183:function(t,e,n){var a=n("d012"),c=n("861d"),s=n("5135"),l=n("9bf2").f,i=n("90e3"),r=n("bb2f"),o=i("meta"),u=0,d=Object.isExtensible||function(){return!0},f=function(t){l(t,o,{value:{objectID:"O"+ ++u,weakData:{}}})},b=function(t,e){if(!c(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,o)){if(!d(t))return"F";if(!e)return"E";f(t)}return t[o].objectID},h=function(t,e){if(!s(t,o)){if(!d(t))return!0;if(!e)return!1;f(t)}return t[o].weakData},p=function(t){return r&&O.REQUIRED&&d(t)&&!s(t,o)&&f(t),t},O=t.exports={REQUIRED:!1,fastKey:b,getWeakData:h,onFreeze:p};a[o]=!0},f27c:function(t,e,n){},f3f3:function(t,e,n){"use strict";n("a7b8")}}]);
//# sourceMappingURL=chunk-5fea187e.4466d92f.js.map