mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 16:15:57 -05:00
2 lines
108 KiB
JavaScript
2 lines
108 KiB
JavaScript
webpackJsonp([1],{"3CuR":function(t,s){},"46DV":function(t,s){},"46T3":function(t,s){},"4Suh":function(t,s){},"4XX/":function(t,s,a){"use strict";var i=a("3CuR"),e=a.n(i),n=a("Ho37");var l=function(t){a("BQ2u")},o=a("VU/8")(e.a,n.a,!1,l,null,null);s.default=o.exports},"6/Lu":function(t,s){},"6vIy":function(t,s){},"8QY/":function(t,s){},ASWg:function(t,s){},BQ2u:function(t,s){},CwkH:function(t,s){},E6Sb:function(t,s){},Ebb7:function(t,s){},GK12:function(t,s){},Gxly:function(t,s){},Ho37:function(t,s,a){"use strict";var i={render:function(){var t=this.$createElement,s=this._self._c||t;return s("section",{staticClass:"section"},[s("div",{staticClass:"container"},[s("div",{staticClass:"columns is-centered"},[s("div",{staticClass:"column is-four-fifths"},[s("nav",{staticClass:"level"},[s("div",{staticClass:"level-left"},[s("div",{staticClass:"level-item has-text-centered-mobile"},[s("div",[this._t("heading-left")],2)])]),this._v(" "),s("div",{staticClass:"level-right has-text-centered-mobile"},[this._t("heading-right")],2)]),this._v(" "),this._t("content"),this._v(" "),s("div",{staticStyle:{"margin-top":"16px"}},[this._t("footer")],2)],2)])])])},staticRenderFns:[]};s.a=i},Izzv:function(t,s){},JCHG:function(t,s){},KS7U:function(t,s){},Lq5b:function(t,s){},M8ZA:function(t,s){},NHnr:function(t,s,a){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i,e=a("7+uW"),n=a("mvHQ"),l=a.n(n),o=a("//Fk"),r=a.n(o),c=a("mtWM"),u=a.n(c),d=a("bOdI"),_=a.n(d),m=a("NYxO");e.a.use(m.a);var p=new m.a.Store({state:{config:{websocket_port:0,version:"",buildoptions:[]},library:{artists:0,albums:0,songs:0,db_playtime:0,updating:!1},audiobooks_count:{},podcasts_count:{},outputs:[],player:{state:"stop",repeat:"off",consume:!1,shuffle:!1,volume:0,item_id:0,item_length_ms:0,item_progress_ms:0},queue:{version:0,count:0,items:[]},spotify:{},spotify_new_releases:[],spotify_featured_playlists:[],notifications:{next_id:1,list:[]},recent_searches:[],hide_singles:!1,show_only_next_items:!1,show_burger_menu:!1},getters:{now_playing:function(t){var s=t.queue.items.find(function(s){return s.id===t.player.item_id});return void 0===s?{}:s}},mutations:(i={},_()(i,"UPDATE_CONFIG",function(t,s){t.config=s}),_()(i,"UPDATE_LIBRARY_STATS",function(t,s){t.library=s}),_()(i,"UPDATE_LIBRARY_AUDIOBOOKS_COUNT",function(t,s){t.audiobooks_count=s}),_()(i,"UPDATE_LIBRARY_PODCASTS_COUNT",function(t,s){t.podcasts_count=s}),_()(i,"UPDATE_OUTPUTS",function(t,s){t.outputs=s}),_()(i,"UPDATE_PLAYER_STATUS",function(t,s){t.player=s}),_()(i,"UPDATE_QUEUE",function(t,s){t.queue=s}),_()(i,"UPDATE_SPOTIFY",function(t,s){t.spotify=s}),_()(i,"SPOTIFY_NEW_RELEASES",function(t,s){t.spotify_new_releases=s}),_()(i,"SPOTIFY_FEATURED_PLAYLISTS",function(t,s){t.spotify_featured_playlists=s}),_()(i,"ADD_NOTIFICATION",function(t,s){if(s.topic){var a=t.notifications.list.findIndex(function(t){return t.topic===s.topic});if(a>=0)return void t.notifications.list.splice(a,1,s)}t.notifications.list.push(s)}),_()(i,"DELETE_NOTIFICATION",function(t,s){var a=t.notifications.list.indexOf(s);-1!==a&&t.notifications.list.splice(a,1)}),_()(i,"ADD_RECENT_SEARCH",function(t,s){var a=t.recent_searches.findIndex(function(t){return t===s});a>=0&&t.recent_searches.splice(a,1),t.recent_searches.splice(0,0,s),t.recent_searches.length>5&&t.recent_searches.pop()}),_()(i,"HIDE_SINGLES",function(t,s){t.hide_singles=s}),_()(i,"SHOW_ONLY_NEXT_ITEMS",function(t,s){t.show_only_next_items=s}),_()(i,"SHOW_BURGER_MENU",function(t,s){t.show_burger_menu=s}),i),actions:{add_notification:function(t,s){var a=t.commit,i={id:t.state.notifications.next_id++,type:s.type,text:s.text,topic:s.topic,timeout:s.timeout};a("ADD_NOTIFICATION",i),s.timeout>0&&setTimeout(function(){a("DELETE_NOTIFICATION",i)},s.timeout)}}});u.a.interceptors.response.use(function(t){return t},function(t){return p.dispatch("add_notification",{text:"Request failed (status: "+t.request.status+" "+t.request.statusText+", url: "+t.request.responseURL+")",type:"danger"}),r.a.reject(t)});var h=function(){return u.a.get("/api/config")},f=function(){return u.a.get("/api/library")},v=function(){return u.a.get("/api/update")},y=function(t){return u.a.get("/api/library/count?expression="+t)},b=function(){return u.a.get("/api/queue")},C=function(){return u.a.put("/api/queue/clear")},g=function(t){return u.a.delete("/api/queue/items/"+t)},k=function(t,s){return u.a.put("/api/queue/items/"+t+"?new_position="+s)},w=function(t){return u.a.post("/api/queue/items/add?uris="+t)},x=function(){return u.a.get("/api/player")},$=function(){return u.a.put("/api/player/play")},q=function(t){return u.a.put("/api/player/play?position="+t)},P=function(t){return u.a.put("/api/player/play?item_id="+t)},E=function(){return u.a.put("/api/player/pause")},A=function(){return u.a.put("/api/player/next")},S=function(){return u.a.put("/api/player/previous")},j=function(t){var s=t?"true":"false";return u.a.put("/api/player/shuffle?state="+s)},T=function(t){var s=t?"true":"false";return u.a.put("/api/player/consume?state="+s)},R=function(t){return u.a.put("/api/player/repeat?state="+t)},U=function(t){return u.a.put("/api/player/volume?volume="+t)},I=function(t,s){return u.a.put("/api/player/volume?volume="+s+"&output_id="+t)},L=function(t){return u.a.put("/api/player/seek?position_ms="+t)},N=function(){return u.a.get("/api/outputs")},F=function(t,s){return u.a.put("/api/outputs/"+t,s)},B=function(){return u.a.get("/api/library/artists?media_kind=music")},V=function(t){return u.a.get("/api/library/artists/"+t)},O=function(t){return t?u.a.get("/api/library/artists/"+t+"/albums"):u.a.get("/api/library/albums?media_kind=music")},D=function(t){return u.a.get("/api/library/albums/"+t)},H=function(t){return u.a.get("/api/library/albums/"+t+"/tracks")},z=function(){return u.a.get("/api/library/albums?media_kind=podcast")},W=function(){return u.a.get("/api/library/albums?media_kind=audiobook")},M=function(){return u.a.get("/api/library/playlists")},Y=function(t){return u.a.get("/api/library/playlists/"+t)},G=function(t){return u.a.get("/api/library/playlists/"+t+"/tracks")},X=function(t){return u.a.get("/api/search",{params:t})},Q=function(){return u.a.get("/api/spotify")},K=a("G4W2"),Z=a.n(K),J={name:"NavBarItemOutput",components:{RangeSlider:Z.a},props:["output"],computed:{type_class:function(){return"AirPlay"===this.output.type?"mdi-airplay":"fifo"===this.output.type?"mdi-pipe":"mdi-server"},volume:function(){return this.output.selected?this.output.volume:0}},methods:{play_next:function(){A()},set_volume:function(t){I(this.output.id,t)},set_enabled:function(){var t={selected:!this.output.selected};F(this.output.id,t)}}},tt={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"navbar-item"},[a("div",{staticClass:"level is-mobile"},[a("div",{staticClass:"level-left fd-expanded"},[a("div",{staticClass:"level-item",staticStyle:{"flex-grow":"0"}},[a("span",{staticClass:"icon fd-has-action",class:{"has-text-grey-light":!t.output.selected},on:{click:t.set_enabled}},[a("i",{staticClass:"mdi mdi-18px",class:t.type_class})])]),t._v(" "),a("div",{staticClass:"level-item fd-expanded"},[a("div",{staticClass:"fd-expanded"},[a("p",{staticClass:"heading",class:{"has-text-grey-light":!t.output.selected}},[t._v(t._s(t.output.name))]),t._v(" "),a("range-slider",{staticClass:"slider fd-has-action",attrs:{min:"0",max:"100",step:"1",disabled:!t.output.selected,value:t.volume},on:{change:t.set_volume}})],1)])])])])},staticRenderFns:[]};var st=a("VU/8")(J,tt,!1,function(t){a("PYzs")},null,null).exports,at={name:"PlayerButtonPlayPause",props:["icon_style"],computed:{is_playing:function(){return"play"===this.$store.state.player.state}},methods:{toggle_play_pause:function(){this.is_playing?E():$()}}},it={render:function(){var t=this.$createElement,s=this._self._c||t;return s("a",{on:{click:this.toggle_play_pause}},[s("span",{staticClass:"icon"},[s("i",{staticClass:"mdi",class:[this.icon_style,{"mdi-play":!this.is_playing,"mdi-pause":this.is_playing}]})])])},staticRenderFns:[]};var et=a("VU/8")(at,it,!1,function(t){a("vg9s")},null,null).exports,nt={name:"PlayerButtonNext",methods:{play_next:function(){A()}}},lt={render:function(){var t=this.$createElement;return(this._self._c||t)("a",{on:{click:this.play_next}},[this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("span",{staticClass:"icon"},[s("i",{staticClass:"mdi mdi-skip-forward"})])}]};var ot=a("VU/8")(nt,lt,!1,function(t){a("8QY/")},null,null).exports,rt={name:"PlayerButtonPrevious",methods:{play_previous:function(){S()}}},ct={render:function(){var t=this.$createElement;return(this._self._c||t)("a",{on:{click:this.play_previous}},[this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("span",{staticClass:"icon"},[s("i",{staticClass:"mdi mdi-skip-backward"})])}]};var ut=a("VU/8")(rt,ct,!1,function(t){a("UoeZ")},null,null).exports,dt={name:"PlayerButtonShuffle",computed:{is_shuffle:function(){return this.$store.state.player.shuffle}},methods:{toggle_shuffle_mode:function(){j(!this.is_shuffle)}}},_t={render:function(){var t=this.$createElement,s=this._self._c||t;return s("a",{class:{"is-warning":this.is_shuffle},on:{click:this.toggle_shuffle_mode}},[s("span",{staticClass:"icon"},[s("i",{staticClass:"mdi",class:{"mdi-shuffle":this.is_shuffle,"mdi-shuffle-disabled":!this.is_shuffle}})])])},staticRenderFns:[]};var mt=a("VU/8")(dt,_t,!1,function(t){a("lzC2")},null,null).exports,pt={name:"PlayerButtonConsume",computed:{is_consume:function(){return this.$store.state.player.consume}},methods:{toggle_consume_mode:function(){T(!this.is_consume)}}},ht={render:function(){var t=this.$createElement;return(this._self._c||t)("a",{class:{"is-warning":this.is_consume},on:{click:this.toggle_consume_mode}},[this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("span",{staticClass:"icon"},[s("i",{staticClass:"mdi mdi-fire"})])}]};var ft=a("VU/8")(pt,ht,!1,function(t){a("46T3")},null,null).exports,vt={name:"PlayerButtonRepeat",data:function(){return{}},computed:{is_repeat_all:function(){return"all"===this.$store.state.player.repeat},is_repeat_single:function(){return"single"===this.$store.state.player.repeat},is_repeat_off:function(){return!this.is_repeat_all&&!this.is_repeat_single}},methods:{toggle_repeat_mode:function(){this.is_repeat_all?R("single"):this.is_repeat_single?R("off"):R("all")}}},yt={render:function(){var t=this.$createElement,s=this._self._c||t;return s("a",{class:{"is-warning":!this.is_repeat_off},on:{click:this.toggle_repeat_mode}},[s("span",{staticClass:"icon"},[s("i",{staticClass:"mdi",class:{"mdi-repeat":this.is_repeat_all,"mdi-repeat-once":this.is_repeat_single,"mdi-repeat-off":this.is_repeat_off}})])])},staticRenderFns:[]};var bt=a("VU/8")(vt,yt,!1,function(t){a("pNGj")},null,null).exports,Ct={name:"NavbarTop",components:{NavBarItemOutput:st,PlayerButtonPlayPause:et,PlayerButtonNext:ot,PlayerButtonPrevious:ut,PlayerButtonShuffle:mt,PlayerButtonConsume:ft,PlayerButtonRepeat:bt,RangeSlider:Z.a},data:function(){return{search_query:""}},computed:{outputs:function(){return this.$store.state.outputs},player:function(){return this.$store.state.player},config:function(){return this.$store.state.config},library:function(){return this.$store.state.library},audiobooks:function(){return this.$store.state.audiobooks_count},podcasts:function(){return this.$store.state.podcasts_count},show_burger_menu:function(){return this.$store.state.show_burger_menu}},methods:{update_show_burger_menu:function(){this.$store.commit("SHOW_BURGER_MENU",!this.show_burger_menu)},set_volume:function(t){U(t)},open_about:function(){this.$store.commit("SHOW_BURGER_MENU",!1),this.$router.push({path:"/about"})}}},gt={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("nav",{staticClass:"navbar is-light is-fixed-top",attrs:{role:"navigation","aria-label":"main navigation"}},[a("div",{staticClass:"navbar-brand"},[a("router-link",{staticClass:"navbar-item",attrs:{to:"/playlists","active-class":"is-active"}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-library-music"})])]),t._v(" "),a("router-link",{staticClass:"navbar-item",attrs:{to:"/music","active-class":"is-active"}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-music"})])]),t._v(" "),t.podcasts.tracks>0?a("router-link",{staticClass:"navbar-item",attrs:{to:"/podcasts","active-class":"is-active"}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-microphone"})])]):t._e(),t._v(" "),t.audiobooks.tracks>0?a("router-link",{staticClass:"navbar-item",attrs:{to:"/audiobooks","active-class":"is-active"}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-book-open-variant"})])]):t._e(),t._v(" "),a("router-link",{staticClass:"navbar-item",attrs:{to:"/search","active-class":"is-active"}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-magnify"})])]),t._v(" "),a("div",{staticClass:"navbar-burger",class:{"is-active":t.show_burger_menu},on:{click:t.update_show_burger_menu}},[a("span"),t._v(" "),a("span"),t._v(" "),a("span")])],1),t._v(" "),a("div",{staticClass:"navbar-menu",class:{"is-active":t.show_burger_menu}},[a("div",{staticClass:"navbar-start"}),t._v(" "),a("div",{staticClass:"navbar-end"},[a("div",{staticClass:"navbar-item has-dropdown is-hoverable"},[t._m(0),t._v(" "),a("div",{staticClass:"navbar-dropdown is-right"},[a("div",{staticClass:"navbar-item"},[a("div",{staticClass:"level is-mobile"},[a("div",{staticClass:"level-left fd-expanded"},[t._m(1),t._v(" "),a("div",{staticClass:"level-item fd-expanded"},[a("div",{staticClass:"fd-expanded"},[a("p",{staticClass:"heading"},[t._v("Volume")]),t._v(" "),a("range-slider",{staticClass:"slider fd-has-action",attrs:{min:"0",max:"100",step:"1",value:t.player.volume},on:{change:t.set_volume}})],1)])])])]),t._v(" "),a("hr",{staticClass:"navbar-divider"}),t._v(" "),t._l(t.outputs,function(t){return a("nav-bar-item-output",{key:t.id,attrs:{output:t}})}),t._v(" "),a("hr",{staticClass:"navbar-divider"}),t._v(" "),a("div",{staticClass:"navbar-item"},[a("div",{staticClass:"level is-mobile"},[a("div",{staticClass:"level-left"},[a("div",{staticClass:"level-item"},[a("div",{staticClass:"buttons has-addons"},[a("player-button-previous",{staticClass:"button"}),t._v(" "),a("player-button-play-pause",{staticClass:"button"}),t._v(" "),a("player-button-next",{staticClass:"button"})],1)]),t._v(" "),a("div",{staticClass:"level-item"},[a("div",{staticClass:"buttons has-addons"},[a("player-button-repeat",{staticClass:"button is-light"}),t._v(" "),a("player-button-shuffle",{staticClass:"button is-light"}),t._v(" "),a("player-button-consume",{staticClass:"button is-light"})],1)])])])])],2)]),t._v(" "),a("div",{staticClass:"navbar-item has-dropdown is-hoverable"},[t._m(2),t._v(" "),a("div",{staticClass:"navbar-dropdown is-right"},[a("a",{staticClass:"navbar-item",attrs:{href:"/admin.html"}},[t._v("Admin")]),t._v(" "),a("hr",{staticClass:"navbar-divider"}),t._v(" "),a("a",{staticClass:"navbar-item",on:{click:t.open_about}},[a("div",[a("p",{staticClass:"title is-7"},[t._v("forked-daapd")]),t._v(" "),a("p",{staticClass:"subtitle is-7"},[t._v(t._s(t.config.version))])])])])])])])])},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("a",{staticClass:"navbar-link"},[s("span",{staticClass:"icon is-hidden-mobile is-hidden-tablet-only"},[s("i",{staticClass:"mdi mdi-volume-high"})]),this._v(" "),s("span",{staticClass:"is-hidden-desktop"},[this._v("Volume")])])},function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"level-item",staticStyle:{"flex-grow":"0"}},[s("span",{staticClass:"icon"},[s("i",{staticClass:"mdi mdi-18px mdi-volume-high"})])])},function(){var t=this.$createElement,s=this._self._c||t;return s("a",{staticClass:"navbar-link"},[s("span",{staticClass:"icon is-hidden-mobile is-hidden-tablet-only"},[s("i",{staticClass:"mdi mdi-settings"})]),this._v(" "),s("span",{staticClass:"is-hidden-desktop"},[this._v("Settings")])])}]};var kt=a("VU/8")(Ct,gt,!1,function(t){a("aEwK")},null,null).exports,wt={name:"NavbarBottom",components:{PlayerButtonPlayPause:et},data:function(){return{}},computed:{state:function(){return this.$store.state.player},now_playing:function(){return this.$store.getters.now_playing}}},xt={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("nav",{staticClass:"navbar is-dark is-fixed-bottom",attrs:{role:"navigation","aria-label":"player controls"}},[a("div",{staticClass:"navbar-brand fd-expanded"},[a("router-link",{staticClass:"navbar-item",attrs:{to:"/","active-class":"is-active",exact:""}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-24px mdi-playlist-play"})])]),t._v(" "),a("router-link",{staticClass:"navbar-item is-expanded is-clipped",attrs:{to:"/now-playing","active-class":"is-active",exact:""}},[a("div",[a("p",{staticClass:"is-size-7 fd-is-text-clipped"},[a("strong",[t._v(t._s(t.now_playing.title))]),a("br"),t._v("\n "+t._s(t.now_playing.artist)+"\n ")])])]),t._v(" "),a("player-button-play-pause",{staticClass:"navbar-item fd-margin-left-auto",attrs:{icon_style:"mdi-36px"}})],1)])},staticRenderFns:[]};var $t=a("VU/8")(wt,xt,!1,function(t){a("YBai")},null,null).exports,qt={name:"Notifications",components:{},data:function(){return{showNav:!1}},computed:{notifications:function(){return this.$store.state.notifications.list}},methods:{remove:function(t){this.$store.commit("DELETE_NOTIFICATION",t)}}},Pt={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("section",{staticClass:"fd-notifications"},[a("div",{staticClass:"columns is-centered"},[a("div",{staticClass:"column is-half"},t._l(t.notifications,function(s){return a("div",{key:s.id,staticClass:"notification has-shadow ",class:["notification",s.type?"is-"+s.type:""]},[a("button",{staticClass:"delete",on:{click:function(a){t.remove(s)}}}),t._v("\n "+t._s(s.text)+"\n ")])}))])])},staticRenderFns:[]};var Et=a("VU/8")(qt,Pt,!1,function(t){a("pBbC")},null,null).exports,At=a("e/7n"),St=a.n(At),jt={name:"App",components:{NavbarTop:kt,NavbarBottom:$t,Notifications:Et},template:"<App/>",data:function(){return{token_timer_id:0}},computed:{show_burger_menu:function(){return this.$store.state.show_burger_menu}},created:function(){var t=this;this.connect(),this.$Progress.start(),this.$router.beforeEach(function(s,a,i){if(s.meta.show_progress){if(void 0!==s.meta.progress){var e=s.meta.progress;t.$Progress.parseMeta(e)}t.$Progress.start()}i()}),this.$router.afterEach(function(s,a){s.meta.show_progress&&t.$Progress.finish()})},methods:{connect:function(){var t=this;this.$store.dispatch("add_notification",{text:"Connecting to forked-daapd",type:"info",topic:"connection",timeout:2e3}),h().then(function(s){var a=s.data;t.$store.commit("UPDATE_CONFIG",a),t.$store.commit("HIDE_SINGLES",a.hide_singles),document.title=a.library_name,t.open_ws(),t.$Progress.finish()}).catch(function(){t.$store.dispatch("add_notification",{text:"Failed to connect to forked-daapd",type:"danger",topic:"connection"})})},open_ws:function(){if(this.$store.state.config.websocket_port<=0)this.$store.dispatch("add_notification",{text:"Missing websocket port",type:"danger"});else{var t=this,s=new St.a("ws://"+window.location.hostname+":"+t.$store.state.config.websocket_port,"notify",{reconnectInterval:5e3});s.onopen=function(){t.$store.dispatch("add_notification",{text:"Connection to server established",type:"primary",topic:"connection",timeout:2e3}),s.send(l()({notify:["update","player","options","outputs","volume","spotify"]})),t.update_outputs(),t.update_player_status(),t.update_library_stats(),t.update_queue(),t.update_spotify()},s.onclose=function(){},s.onerror=function(){t.$store.dispatch("add_notification",{text:"Connection lost. Reconnecting ...",type:"danger",topic:"connection"})},s.onmessage=function(s){var a=JSON.parse(s.data);a.notify.includes("update")&&t.update_library_stats(),(a.notify.includes("player")||a.notify.includes("options")||a.notify.includes("volume"))&&t.update_player_status(),(a.notify.includes("outputs")||a.notify.includes("volume"))&&t.update_outputs(),a.notify.includes("queue")&&t.update_queue(),a.notify.includes("spotify")&&t.update_spotify()}}},update_library_stats:function(){var t=this;f().then(function(s){var a=s.data;t.$store.commit("UPDATE_LIBRARY_STATS",a)}),y("media_kind is audiobook").then(function(s){var a=s.data;t.$store.commit("UPDATE_LIBRARY_AUDIOBOOKS_COUNT",a)}),y("media_kind is podcast").then(function(s){var a=s.data;t.$store.commit("UPDATE_LIBRARY_PODCASTS_COUNT",a)})},update_outputs:function(){var t=this;N().then(function(s){var a=s.data;t.$store.commit("UPDATE_OUTPUTS",a.outputs)})},update_player_status:function(){var t=this;x().then(function(s){var a=s.data;t.$store.commit("UPDATE_PLAYER_STATUS",a)})},update_queue:function(){var t=this;b().then(function(s){var a=s.data;t.$store.commit("UPDATE_QUEUE",a)})},update_spotify:function(){var t=this;Q().then(function(s){var a=s.data;t.$store.commit("UPDATE_SPOTIFY",a),t.token_timer_id>0&&(console.log("clear old timer: "+t.token_timer_id),window.clearTimeout(t.token_timer_id),t.token_timer_id=0),a.webapi_token_expires_in>0&&a.webapi_token&&(t.token_timer_id=window.setTimeout(t.update_spotify,1e3*a.webapi_token_expires_in),console.log("new timer: "+t.token_timer_id+", expires in "+a.webapi_token_expires_in+" seconds"))})}},watch:{$route:function(t,s){this.$store.commit("SHOW_BURGER_MENU",!1)},show_burger_menu:function(){this.show_burger_menu?document.querySelector("html").classList.add("is-clipped"):document.querySelector("html").classList.remove("is-clipped")}}},Tt={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{attrs:{id:"app"}},[s("navbar-top"),this._v(" "),s("vue-progress-bar",{staticClass:"fd-progress-bar"}),this._v(" "),s("transition",{attrs:{name:"fade"}},[s("router-view",{directives:[{name:"show",rawName:"v-show",value:!this.show_burger_menu,expression:"!show_burger_menu"}]})],1),this._v(" "),s("notifications",{directives:[{name:"show",rawName:"v-show",value:!this.show_burger_menu,expression:"!show_burger_menu"}]}),this._v(" "),s("navbar-bottom",{directives:[{name:"show",rawName:"v-show",value:!this.show_burger_menu,expression:"!show_burger_menu"}]})],1)},staticRenderFns:[]};var Rt=a("VU/8")(jt,Tt,!1,function(t){a("mD7o")},null,null).exports,Ut=a("/ocq"),It=a("4XX/"),Lt={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("transition",{attrs:{name:"fade"}},[t.show?a("div",{staticClass:"modal is-active"},[a("div",{staticClass:"modal-background",on:{click:function(s){t.$emit("close")}}}),t._v(" "),a("div",{staticClass:"modal-content fd-modal-card"},[t._t("modal-content")],2),t._v(" "),a("button",{staticClass:"modal-close is-large",attrs:{"aria-label":"close"},on:{click:function(s){t.$emit("close")}}})]):t._e()])],1)},staticRenderFns:[]};var Nt=a("VU/8")({name:"ModalDialog",props:["show"]},Lt,!1,function(t){a("NhMS")},null,null).exports,Ft={name:"PartQueueItem",components:{ModalDialog:Nt},props:["item","position","current_position","show_only_next_items","edit_mode"],data:function(){return{show_details_modal:!1}},computed:{state:function(){return this.$store.state.player},is_next:function(){return this.current_position<0||this.position>=this.current_position}},methods:{remove:function(){this.show_details_modal=!1,g(this.item.id)},play:function(){this.show_details_modal=!1,P(this.item.id)}}},Bt={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return t.is_next||!t.show_only_next_items?a("div",{staticClass:"media"},[t.edit_mode?a("div",{staticClass:"media-left"},[t._m(0)]):t._e(),t._v(" "),a("div",{staticClass:"media-content fd-has-action is-clipped",on:{click:t.play}},[a("h1",{staticClass:"title is-6",class:{"has-text-primary":t.item.id===t.state.item_id,"has-text-grey-light":!t.is_next}},[t._v(t._s(t.item.title))]),t._v(" "),a("h2",{staticClass:"subtitle is-7",class:{"has-text-primary":t.item.id===t.state.item_id,"has-text-grey-light":!t.is_next,"has-text-grey":t.is_next&&t.item.id!==t.state.item_id}},[a("b",[t._v(t._s(t.item.artist))])]),t._v(" "),a("h2",{staticClass:"subtitle is-7",class:{"has-text-primary":t.item.id===t.state.item_id,"has-text-grey-light":!t.is_next,"has-text-grey":t.is_next&&t.item.id!==t.state.item_id}},[t._v(t._s(t.item.album))])]),t._v(" "),a("div",{staticClass:"media-right"},[t.item.id!==t.state.item_id&&t.edit_mode?a("a",{on:{click:t.remove}},[t._m(1)]):t._e(),t._v(" "),t.edit_mode?t._e():a("a",{on:{click:function(s){t.show_details_modal=!0}}},[t._m(2)]),t._v(" "),t.edit_mode?t._e():a("modal-dialog",{attrs:{show:t.show_details_modal},on:{close:function(s){t.show_details_modal=!1}}},[a("template",{slot:"modal-content"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-content"},[a("p",{staticClass:"title is-4"},[t._v("\n "+t._s(t.item.title)+"\n ")]),t._v(" "),a("p",{staticClass:"subtitle"},[t._v("\n "+t._s(t.item.artist)+"\n ")]),t._v(" "),a("div",{staticClass:"content is-small"},[a("p",[a("span",{staticClass:"heading"},[t._v("Album")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.item.album))])]),t._v(" "),t.item.album_artist?a("p",[a("span",{staticClass:"heading"},[t._v("Album artist")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.item.album_artist))])]):t._e(),t._v(" "),t.item.year>0?a("p",[a("span",{staticClass:"heading"},[t._v("Year")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.item.year))])]):t._e(),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Genre")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.item.genre))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Track / Disc")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.item.track_number)+" / "+t._s(t.item.disc_number))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Length")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t._f("duration")(t.item.length_ms)))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Path")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.item.path))])])])]),t._v(" "),a("footer",{staticClass:"card-footer"},[a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.remove}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-delete mdi-18px"})]),t._v(" "),a("span",[t._v("Remove")])]),t._v(" "),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.play}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-play mdi-18px"})]),t._v(" "),a("span",[t._v("Play")])])])])])],2)],1)]):t._e()},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("span",{staticClass:"icon has-text-grey fd-is-movable handle"},[s("i",{staticClass:"mdi mdi-drag-horizontal mdi-18px"})])},function(){var t=this.$createElement,s=this._self._c||t;return s("span",{staticClass:"icon has-text-grey"},[s("i",{staticClass:"mdi mdi-delete mdi-18px"})])},function(){var t=this.$createElement,s=this._self._c||t;return s("span",{staticClass:"icon has-text-dark"},[s("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}]};var Vt=a("VU/8")(Ft,Bt,!1,function(t){a("Lq5b")},null,null).exports,Ot=a("DAYN"),Dt=a.n(Ot),Ht={name:"PageQueue",components:{ContentWithHeading:It.default,ListItemQueueItem:Vt,draggable:Dt.a},data:function(){return{edit_mode:!1}},computed:{state:function(){return this.$store.state.player},queue:function(){return this.$store.state.queue},queue_items:{get:function(){return this.$store.state.queue.items},set:function(t){}},current_position:function(){var t=this.$store.getters.now_playing;return void 0===t||void 0===t.position?-1:this.$store.getters.now_playing.position},show_only_next_items:function(){return this.$store.state.show_only_next_items}},methods:{queue_clear:function(){C()},update_show_next_items:function(t){this.$store.commit("SHOW_ONLY_NEXT_ITEMS",!this.show_only_next_items)},move_item:function(t){var s=this.show_only_next_items?t.oldIndex+this.current_position:t.oldIndex,a=this.queue_items[s],i=a.position+(t.newIndex-t.oldIndex);i!==s&&k(a.id,i)}}},zt={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"heading"},[t._v(t._s(t.queue.count)+" tracks")]),t._v(" "),a("p",{staticClass:"title is-4"},[t._v("Queue")])]),t._v(" "),a("template",{slot:"heading-right"},[a("div",{staticClass:"buttons is-centered"},[a("a",{staticClass:"button is-small",class:{"is-info":t.show_only_next_items},on:{click:t.update_show_next_items}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-arrow-collapse-down"})]),t._v(" "),a("span",[t._v("Hide previous")])]),t._v(" "),a("a",{staticClass:"button is-small",class:{"is-info":t.edit_mode},on:{click:function(s){t.edit_mode=!t.edit_mode}}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-pencil"})]),t._v(" "),a("span",[t._v("Edit")])]),t._v(" "),a("a",{staticClass:"button is-small",on:{click:t.queue_clear}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-delete-empty"})]),t._v(" "),a("span",[t._v("Clear")])])])]),t._v(" "),a("template",{slot:"content"},[a("draggable",{attrs:{options:{handle:".handle"}},on:{end:t.move_item},model:{value:t.queue_items,callback:function(s){t.queue_items=s},expression:"queue_items"}},t._l(t.queue_items,function(s,i){return a("list-item-queue-item",{key:s.id,attrs:{item:s,position:i,current_position:t.current_position,show_only_next_items:t.show_only_next_items,edit_mode:t.edit_mode}})}))],1)],2)},staticRenderFns:[]};var Wt=a("VU/8")(Ht,zt,!1,function(t){a("VrO6")},null,null).exports,Mt={name:"PageNowPlaying",components:{PlayerButtonPlayPause:et,PlayerButtonNext:ot,PlayerButtonPrevious:ut,PlayerButtonShuffle:mt,PlayerButtonConsume:ft,PlayerButtonRepeat:bt,RangeSlider:Z.a},data:function(){return{item_progress_ms:0,interval_id:0}},created:function(){var t=this;this.item_progress_ms=this.state.item_progress_ms,x().then(function(s){var a=s.data;t.$store.commit("UPDATE_PLAYER_STATUS",a),"play"===t.state.state&&(t.interval_id=window.setInterval(t.tick,1e3))})},destroyed:function(){this.interval_id>0&&(window.clearTimeout(this.interval_id),this.interval_id=0)},computed:{state:function(){return this.$store.state.player},now_playing:function(){return this.$store.getters.now_playing}},methods:{tick:function(){this.item_progress_ms+=1e3},seek:function(t){var s=this;L(t).catch(function(){s.item_progress_ms=s.state.item_progress_ms})}},watch:{state:function(){this.interval_id>0&&(window.clearTimeout(this.interval_id),this.interval_id=0),this.item_progress_ms=this.state.item_progress_ms,"play"===this.state.state&&(this.interval_id=window.setInterval(this.tick,1e3))}}},Yt={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("section",{staticClass:"hero"},[a("div",{staticClass:"hero-body"},[a("div",{staticClass:"container has-text-centered"},[a("p",{staticClass:"heading"},[t._v("NOW PLAYING")]),t._v(" "),a("h1",{staticClass:"title is-3"},[t._v("\n "+t._s(t.now_playing.title)+"\n ")]),t._v(" "),a("h2",{staticClass:"title is-5"},[t._v("\n "+t._s(t.now_playing.artist)+"\n ")]),t._v(" "),a("h3",{staticClass:"subtitle is-5"},[t._v("\n "+t._s(t.now_playing.album)+"\n ")]),t._v(" "),a("p",{staticClass:"control has-text-centered fd-progress-now-playing"},[a("range-slider",{staticClass:"seek-slider fd-has-action",attrs:{min:"0",max:t.state.item_length_ms,value:t.item_progress_ms,disabled:"stop"===t.state.state,step:"1000"},on:{change:t.seek}})],1),t._v(" "),a("p",{staticClass:"content"},[a("span",[t._v(t._s(t._f("duration")(t.item_progress_ms))+" / "+t._s(t._f("duration")(t.now_playing.length_ms)))])]),t._v(" "),a("p",{staticClass:"control has-text-centered"},[a("player-button-previous",{staticClass:"button is-medium"}),t._v(" "),a("player-button-play-pause",{staticClass:"button is-medium",attrs:{icon_style:"mdi-36px"}}),t._v(" "),a("player-button-next",{staticClass:"button is-medium"}),t._v(" "),a("player-button-repeat",{staticClass:"button is-medium is-light"}),t._v(" "),a("player-button-shuffle",{staticClass:"button is-medium is-light"}),t._v(" "),a("player-button-consume",{staticClass:"button is-medium is-light"})],1)])])])},staticRenderFns:[]};var Gt=a("VU/8")(Mt,Yt,!1,function(t){a("6/Lu")},null,null).exports,Xt=function(t){return{beforeRouteEnter:function(s,a,i){t.load(s).then(function(s){i(function(a){return t.set(a,s)})})},beforeRouteUpdate:function(s,a,i){var e=this;t.load(s).then(function(s){t.set(e,s),i()})}}},Qt={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("section",{staticClass:"section fd-tabs-section"},[a("div",{staticClass:"container"},[a("div",{staticClass:"columns is-centered"},[a("div",{staticClass:"column is-four-fifths"},[a("div",{staticClass:"tabs is-centered is-small"},[a("ul",[a("router-link",{attrs:{tag:"li",to:"/music/browse","active-class":"is-active"}},[a("a",[a("span",{staticClass:"icon is-small"},[a("i",{staticClass:"mdi mdi-web"})]),t._v(" "),a("span",{},[t._v("Browse")])])]),t._v(" "),a("router-link",{attrs:{tag:"li",to:"/music/artists","active-class":"is-active"}},[a("a",[a("span",{staticClass:"icon is-small"},[a("i",{staticClass:"mdi mdi-artist"})]),t._v(" "),a("span",{},[t._v("Artists")])])]),t._v(" "),a("router-link",{attrs:{tag:"li",to:"/music/albums","active-class":"is-active"}},[a("a",[a("span",{staticClass:"icon is-small"},[a("i",{staticClass:"mdi mdi-album"})]),t._v(" "),a("span",{},[t._v("Albums")])])]),t._v(" "),t.spotify_enabled?a("router-link",{attrs:{tag:"li",to:"/music/spotify","active-class":"is-active"}},[a("a",[a("span",{staticClass:"icon is-small"},[a("i",{staticClass:"mdi mdi-spotify"})]),t._v(" "),a("span",{},[t._v("Spotify")])])]):t._e()],1)])])])])])},staticRenderFns:[]};var Kt=a("VU/8")({name:"TabsMusic",computed:{spotify_enabled:function(){return this.$store.state.spotify.webapi_token_valid}}},Qt,!1,function(t){a("QhXh")},null,null).exports,Zt={name:"ListItemAlbum",components:{ModalDialog:Nt},props:["album","media_kind"],data:function(){return{show_details_modal:!1}},methods:{play:function(){var t=this;this.show_details_modal=!1,C().then(function(){return w(t.album.uri).then(function(){return $()})})},queue_add:function(){var t=this;this.show_details_modal=!1,w(this.album.uri).then(function(){return t.$store.dispatch("add_notification",{text:"Album tracks appended to queue",type:"info",timeout:2e3})})},open_album:function(){this.show_details_modal=!1,"podcast"===this.media_kind?this.$router.push({path:"/podcasts/"+this.album.id}):"audiobook"===this.media_kind?this.$router.push({path:"/audiobooks/"+this.album.id}):this.$router.push({path:"/music/albums/"+this.album.id})},open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/music/artists/"+this.album.artist_id})}}},Jt={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"media"},[a("div",{staticClass:"media-content fd-has-action is-clipped",on:{click:t.open_album}},[a("h1",{staticClass:"title is-6"},[t._v(t._s(t.album.name))]),t._v(" "),a("h2",{staticClass:"subtitle is-7 has-text-grey"},[a("b",[t._v(t._s(t.album.artist))])])]),t._v(" "),a("div",{staticClass:"media-right"},[a("a",{on:{click:function(s){t.show_details_modal=!0}}},[t._m(0)]),t._v(" "),a("modal-dialog",{attrs:{show:t.show_details_modal},on:{close:function(s){t.show_details_modal=!1}}},[a("template",{slot:"modal-content"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-content"},[a("p",{staticClass:"title is-4"},[a("a",{staticClass:"has-text-link",on:{click:t.open_album}},[t._v(t._s(t.album.name))])]),t._v(" "),a("div",{staticClass:"content is-small"},[t.album.artist&&"audiobook"!==t.media_kind?a("p",[a("span",{staticClass:"heading"},[t._v("Album artist")]),t._v(" "),a("a",{staticClass:"title is-6 has-text-link",on:{click:t.open_artist}},[t._v(t._s(t.album.artist))])]):t._e(),t._v(" "),t.album.artist&&"audiobook"===t.media_kind?a("p",[a("span",{staticClass:"heading"},[t._v("Album artist")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.album.artist))])]):t._e(),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Tracks")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.album.track_count))])])])]),t._v(" "),a("footer",{staticClass:"card-footer"},[a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-plus mdi-18px"})]),t._v(" "),a("span",[t._v("Add")])]),t._v(" "),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.play}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-play mdi-18px"})]),t._v(" "),a("span",[t._v("Play")])])])])])],2)],1)])},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("span",{staticClass:"icon has-text-dark"},[s("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}]};var ts=a("VU/8")(Zt,Jt,!1,function(t){a("Gxly")},null,null).exports,ss={name:"PartTrack",components:{ModalDialog:Nt},props:["track","position","context_uri"],data:function(){return{show_details_modal:!1}},methods:{play:function(){var t=this;this.show_details_modal=!1,C().then(function(){return w(t.context_uri).then(function(){return q(t.position)})})},play_track:function(){var t=this;this.show_details_modal=!1,C().then(function(){return w(t.track.uri).then(function(){return $()})})},queue_add:function(){var t=this;this.show_details_modal=!1,w(this.track.uri).then(function(){return t.$store.dispatch("add_notification",{text:"Track appended to queue",type:"info",timeout:2e3})})},open_album:function(){this.show_details_modal=!1,"podcast"===this.track.media_kind?this.$router.push({path:"/podcasts/"+this.track.album_id}):"audiobook"===this.track.media_kind?this.$router.push({path:"/audiobooks/"+this.track.album_id}):this.$router.push({path:"/music/albums/"+this.track.album_id})},open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/music/artists/"+this.track.album_artist_id})}}},as={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"media"},[a("div",{staticClass:"media-content fd-has-action is-clipped",on:{click:t.play}},[a("h1",{staticClass:"title is-6"},[t._v(t._s(t.track.title))]),t._v(" "),a("h2",{staticClass:"subtitle is-7 has-text-grey"},[a("b",[t._v(t._s(t.track.artist))])]),t._v(" "),a("h2",{staticClass:"subtitle is-7 has-text-grey"},[t._v(t._s(t.track.album))])]),t._v(" "),a("div",{staticClass:"media-right"},[a("a",{on:{click:function(s){t.show_details_modal=!0}}},[t._m(0)]),t._v(" "),a("modal-dialog",{attrs:{show:t.show_details_modal},on:{close:function(s){t.show_details_modal=!1}}},[a("template",{slot:"modal-content"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-content"},[a("p",{staticClass:"title is-4"},[t._v("\n "+t._s(t.track.title)+"\n ")]),t._v(" "),a("p",{staticClass:"subtitle"},[t._v("\n "+t._s(t.track.artist)+"\n ")]),t._v(" "),a("div",{staticClass:"content is-small"},[a("p",[a("span",{staticClass:"heading"},[t._v("Album")]),t._v(" "),a("a",{staticClass:"title is-6 has-text-link",on:{click:t.open_album}},[t._v(t._s(t.track.album))])]),t._v(" "),t.track.album_artist&&"audiobook"!==t.track.media_kind?a("p",[a("span",{staticClass:"heading"},[t._v("Album artist")]),t._v(" "),a("a",{staticClass:"title is-6 has-text-link",on:{click:t.open_artist}},[t._v(t._s(t.track.album_artist))])]):t._e(),t._v(" "),t.track.date_released?a("p",[a("span",{staticClass:"heading"},[t._v("Release date")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t._f("time")(t.track.date_released,"L")))])]):t.track.year>0?a("p",[a("span",{staticClass:"heading"},[t._v("Year")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.track.year))])]):t._e(),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Genre")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.track.genre))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Track / Disc")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.track.track_number)+" / "+t._s(t.track.disc_number))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Length")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t._f("duration")(t.track.length_ms)))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Path")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.track.path))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Type")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.track.media_kind)+" - "+t._s(t.track.data_kind))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Added at")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t._f("time")(t.track.time_added,"L LT")))])])])]),t._v(" "),a("footer",{staticClass:"card-footer"},[a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-plus mdi-18px"})]),t._v(" "),a("span",[t._v("Add")])]),t._v(" "),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.play_track}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-play mdi-18px"})]),t._v(" "),a("span",[t._v("Play")])])])])])],2)],1)])},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("span",{staticClass:"icon has-text-dark"},[s("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}]};var is=a("VU/8")(ss,as,!1,function(t){a("r/Bk")},null,null).exports,es={name:"PageBrowse",mixins:[Xt({load:function(t){return r.a.all([X({type:"album",expression:"time_added after 8 weeks ago having track_count > 3 order by time_added desc",limit:3}),X({type:"track",expression:"time_played after 8 weeks ago order by time_played desc",limit:3})])},set:function(t,s){t.recently_added=s[0].data.albums,t.recently_played=s[1].data.tracks}})],components:{ContentWithHeading:It.default,TabsMusic:Kt,ListItemAlbum:ts,ListItemTrack:is},data:function(){return{recently_added:{},recently_played:{}}},methods:{open_browse:function(t){this.$router.push({path:"/music/browse/"+t})}}},ns={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("tabs-music"),t._v(" "),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Recently added")]),t._v(" "),a("p",{staticClass:"heading"},[t._v("albums")])]),t._v(" "),a("template",{slot:"content"},t._l(t.recently_added.items,function(t){return a("list-item-album",{key:t.id,attrs:{album:t}})})),t._v(" "),a("template",{slot:"footer"},[a("nav",{staticClass:"level"},[a("p",{staticClass:"level-item"},[a("a",{staticClass:"button is-light is-small is-rounded",on:{click:function(s){t.open_browse("recently_added")}}},[t._v("Show more")])])])])],2),t._v(" "),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Recently played")]),t._v(" "),a("p",{staticClass:"heading"},[t._v("tracks")])]),t._v(" "),a("template",{slot:"content"},t._l(t.recently_played.items,function(t){return a("list-item-track",{key:t.id,attrs:{track:t,position:0,context_uri:t.uri}})})),t._v(" "),a("template",{slot:"footer"},[a("nav",{staticClass:"level"},[a("p",{staticClass:"level-item"},[a("a",{staticClass:"button is-light is-small is-rounded",on:{click:function(s){t.open_browse("recently_played")}}},[t._v("Show more")])])])])],2)],1)},staticRenderFns:[]};var ls=a("VU/8")(es,ns,!1,function(t){a("t+t1")},null,null).exports,os={name:"PageBrowseType",mixins:[Xt({load:function(t){return X({type:"album",expression:"time_added after 8 weeks ago having track_count > 3 order by time_added desc",limit:50})},set:function(t,s){t.recently_added=s.data.albums}})],components:{ContentWithHeading:It.default,TabsMusic:Kt,ListItemAlbum:ts},data:function(){return{recently_added:{}}}},rs={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",[s("tabs-music"),this._v(" "),s("content-with-heading",[s("template",{slot:"heading-left"},[s("p",{staticClass:"title is-4"},[this._v("Recently added")]),this._v(" "),s("p",{staticClass:"heading"},[this._v("albums")])]),this._v(" "),s("template",{slot:"content"},this._l(this.recently_added.items,function(t){return s("list-item-album",{key:t.id,attrs:{album:t}})}))],2)],1)},staticRenderFns:[]};var cs=a("VU/8")(os,rs,!1,function(t){a("pmh5")},null,null).exports,us={name:"PageBrowseType",mixins:[Xt({load:function(t){return X({type:"track",expression:"time_played after 8 weeks ago order by time_played desc",limit:50})},set:function(t,s){t.recently_played=s.data.tracks}})],components:{ContentWithHeading:It.default,TabsMusic:Kt,ListItemTrack:is},data:function(){return{recently_played:{}}}},ds={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",[s("tabs-music"),this._v(" "),s("content-with-heading",[s("template",{slot:"heading-left"},[s("p",{staticClass:"title is-4"},[this._v("Recently played")]),this._v(" "),s("p",{staticClass:"heading"},[this._v("tracks")])]),this._v(" "),s("template",{slot:"content"},this._l(this.recently_played.items,function(t){return s("list-item-track",{key:t.id,attrs:{track:t,position:0,context_uri:t.uri}})}))],2)],1)},staticRenderFns:[]};var _s=a("VU/8")(us,ds,!1,function(t){a("vPL1")},null,null).exports,ms={name:"PartArtist",components:{ModalDialog:Nt},props:["artist"],data:function(){return{show_details_modal:!1}},methods:{play:function(){var t=this;this.show_details_modal=!1,C().then(function(){return w(t.artist.uri).then(function(){return $()})})},queue_add:function(){var t=this;this.show_details_modal=!1,w(this.artist.uri).then(function(){return t.$store.dispatch("add_notification",{text:"Artist tracks appended to queue",type:"info",timeout:2e3})})},open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/music/artists/"+this.artist.id})}}},ps={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"media"},[a("div",{staticClass:"media-content fd-has-action is-clipped",on:{click:t.open_artist}},[a("h1",{staticClass:"title is-6"},[t._v(t._s(t.artist.name))])]),t._v(" "),a("div",{staticClass:"media-right"},[a("a",{on:{click:function(s){t.show_details_modal=!0}}},[t._m(0)]),t._v(" "),a("modal-dialog",{attrs:{show:t.show_details_modal},on:{close:function(s){t.show_details_modal=!1}}},[a("template",{slot:"modal-content"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-content"},[a("p",{staticClass:"title is-4"},[a("a",{staticClass:"has-text-link",on:{click:t.open_artist}},[t._v(t._s(t.artist.name))])]),t._v(" "),a("div",{staticClass:"content is-small"},[a("p",[a("span",{staticClass:"heading"},[t._v("Albums")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.artist.album_count))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Tracks")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.artist.track_count))])])])]),t._v(" "),a("footer",{staticClass:"card-footer"},[a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-plus mdi-18px"})]),t._v(" "),a("span",[t._v("Add")])]),t._v(" "),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.play}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-play mdi-18px"})]),t._v(" "),a("span",[t._v("Play")])])])])])],2)],1)])},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("span",{staticClass:"icon has-text-dark"},[s("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}]};var hs=a("VU/8")(ms,ps,!1,function(t){a("M8ZA")},null,null).exports,fs={name:"PageArtists",mixins:[Xt({load:function(t){return B()},set:function(t,s){t.artists=s.data}})],components:{ContentWithHeading:It.default,TabsMusic:Kt,ListItemArtist:hs},data:function(){return{artists:{}}},computed:{hide_singles:function(){return this.$store.state.hide_singles}},methods:{update_hide_singles:function(t){this.$store.commit("HIDE_SINGLES",!this.hide_singles)}}},vs={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("tabs-music"),t._v(" "),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Artists")]),t._v(" "),a("p",{staticClass:"heading"},[t._v(t._s(t.artists.total)+" artists")])]),t._v(" "),a("template",{slot:"heading-right"},[a("a",{staticClass:"button is-small",class:{"is-info":t.hide_singles},on:{click:t.update_hide_singles}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-numeric-1-box-multiple-outline"})]),t._v(" "),a("span",[t._v("Hide singles")])])]),t._v(" "),a("template",{slot:"content"},t._l(t.artists.items,function(s){return!t.hide_singles||s.track_count>2*s.album_count?a("list-item-artist",{key:s.id,attrs:{artist:s}}):t._e()}))],2)],1)},staticRenderFns:[]};var ys=a("VU/8")(fs,vs,!1,function(t){a("4Suh")},null,null).exports,bs={name:"PageArtist",mixins:[Xt({load:function(t){return r.a.all([V(t.params.artist_id),O(t.params.artist_id)])},set:function(t,s){t.artist=s[0].data,t.albums=s[1].data}})],components:{ContentWithHeading:It.default,ListItemAlbum:ts},data:function(){return{artist:{},albums:{}}},methods:{}},Cs={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v(t._s(t.artist.name))])]),t._v(" "),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[t._v(t._s(t.artist.album_count)+" albums | "+t._s(t.artist.track_count)+" tracks")]),t._v(" "),t._l(t.albums.items,function(t){return a("list-item-album",{key:t.id,attrs:{album:t}})})],2)],2)},staticRenderFns:[]};var gs=a("VU/8")(bs,Cs,!1,function(t){a("VqdC")},null,null).exports,ks={name:"PageAlbums",mixins:[Xt({load:function(t){return O()},set:function(t,s){t.albums=s.data}})],components:{ContentWithHeading:It.default,TabsMusic:Kt,ListItemAlbum:ts},data:function(){return{albums:{}}},computed:{hide_singles:function(){return this.$store.state.hide_singles}},methods:{update_hide_singles:function(t){this.$store.commit("HIDE_SINGLES",!this.hide_singles)}}},ws={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("tabs-music"),t._v(" "),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Albums")]),t._v(" "),a("p",{staticClass:"heading"},[t._v(t._s(t.albums.total)+" albums")])]),t._v(" "),a("template",{slot:"heading-right"},[a("a",{staticClass:"button is-small",class:{"is-info":t.hide_singles},on:{click:t.update_hide_singles}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-numeric-1-box-multiple-outline"})]),t._v(" "),a("span",[t._v("Hide singles")])])]),t._v(" "),a("template",{slot:"content"},t._l(t.albums.items,function(s){return!t.hide_singles||s.track_count>2?a("list-item-album",{key:s.id,attrs:{album:s}}):t._e()}))],2)],1)},staticRenderFns:[]};var xs=a("VU/8")(ks,ws,!1,function(t){a("mL6y")},null,null).exports,$s={name:"PageAlbum",mixins:[Xt({load:function(t){return r.a.all([D(t.params.album_id),H(t.params.album_id)])},set:function(t,s){t.album=s[0].data,t.tracks=s[1].data.items}})],components:{ContentWithHeading:It.default,ListItemTrack:is},data:function(){return{album:{},tracks:[]}},methods:{open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/music/artists/"+this.album.artist_id})},play:function(){var t=this;C().then(function(){return w(t.album.uri).then(function(){return $()})})}}},qs={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("content-with-heading",[a("template",{slot:"heading-left"},[a("div",{staticClass:"title is-4"},[t._v(t._s(t.album.name))]),t._v(" "),a("a",{staticClass:"title is-4 has-text-link has-text-weight-normal",on:{click:t.open_artist}},[t._v(t._s(t.album.artist))])]),t._v(" "),a("template",{slot:"heading-right"},[a("a",{staticClass:"button is-small is-dark is-rounded",on:{click:t.play}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-play"})]),t._v(" "),a("span",[t._v("Play")])])]),t._v(" "),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[t._v(t._s(t.album.track_count)+" tracks")]),t._v(" "),t._l(t.tracks,function(s,i){return a("list-item-track",{key:s.id,attrs:{track:s,position:i,context_uri:t.album.uri}})})],2)],2)},staticRenderFns:[]};var Ps=a("VU/8")($s,qs,!1,function(t){a("KS7U")},null,null).exports,Es={name:"PagePodcasts",mixins:[Xt({load:function(t){return z()},set:function(t,s){t.albums=s.data}})],components:{ContentWithHeading:It.default,ListItemAlbum:ts},data:function(){return{albums:{}}}},As={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Podcasts")]),t._v(" "),a("p",{staticClass:"heading"},[t._v(t._s(t.albums.total)+" podcasts")])]),t._v(" "),a("template",{slot:"content"},t._l(t.albums.items,function(t){return a("list-item-album",{key:t.id,attrs:{album:t,media_kind:"podcast"}})}))],2)],1)},staticRenderFns:[]};var Ss=a("VU/8")(Es,As,!1,function(t){a("ng1r")},null,null).exports,js={name:"PagePodcast",mixins:[Xt({load:function(t){return r.a.all([D(t.params.album_id),H(t.params.album_id)])},set:function(t,s){t.album=s[0].data,t.tracks=s[1].data.items}})],components:{ContentWithHeading:It.default,ListItemTrack:is},data:function(){return{album:{},tracks:[]}},methods:{play:function(){var t=this;C().then(function(){return w(t.album.uri).then(function(){return $()})})}}},Ts={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("content-with-heading",[a("template",{slot:"heading-left"},[a("div",{staticClass:"title is-4"},[t._v(t._s(t.album.name))])]),t._v(" "),a("template",{slot:"heading-right"},[a("a",{staticClass:"button is-small is-dark is-rounded",on:{click:t.play}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-play"})]),t._v(" "),a("span",[t._v("Play")])])]),t._v(" "),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[t._v(t._s(t.album.track_count)+" tracks")]),t._v(" "),t._l(t.tracks,function(s,i){return a("list-item-track",{key:s.id,attrs:{track:s,position:i,context_uri:t.album.uri}})})],2)],2)},staticRenderFns:[]};var Rs=a("VU/8")(js,Ts,!1,function(t){a("ASWg")},null,null).exports,Us={name:"PageAudiobooks",mixins:[Xt({load:function(t){return W()},set:function(t,s){t.albums=s.data}})],components:{ContentWithHeading:It.default,ListItemAlbum:ts},data:function(){return{albums:{}}}},Is={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Audiobooks")]),t._v(" "),a("p",{staticClass:"heading"},[t._v(t._s(t.albums.total)+" audiobooks")])]),t._v(" "),a("template",{slot:"content"},t._l(t.albums.items,function(t){return a("list-item-album",{key:t.id,attrs:{album:t,media_kind:"audiobook"}})}))],2)],1)},staticRenderFns:[]};var Ls=a("VU/8")(Us,Is,!1,function(t){a("o2oR")},null,null).exports,Ns={name:"PageAudiobook",mixins:[Xt({load:function(t){return r.a.all([D(t.params.album_id),H(t.params.album_id)])},set:function(t,s){t.album=s[0].data,t.tracks=s[1].data.items}})],components:{ContentWithHeading:It.default,ListItemTrack:is},data:function(){return{album:{},tracks:[]}},methods:{play:function(){var t=this;C().then(function(){return w(t.album.uri).then(function(){return $()})})}}},Fs={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("content-with-heading",[a("template",{slot:"heading-left"},[a("div",{staticClass:"title is-4"},[t._v(t._s(t.album.name))]),t._v(" "),a("div",{staticClass:"title is-4 has-text-grey has-text-weight-normal"},[t._v(t._s(t.album.artist))])]),t._v(" "),a("template",{slot:"heading-right"},[a("a",{staticClass:"button is-small is-dark is-rounded",on:{click:t.play}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-play"})]),t._v(" "),a("span",[t._v("Play")])])]),t._v(" "),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[t._v(t._s(t.album.track_count)+" tracks")]),t._v(" "),t._l(t.tracks,function(s,i){return a("list-item-track",{key:s.id,attrs:{track:s,position:i,context_uri:t.album.uri}})})],2)],2)},staticRenderFns:[]};var Bs=a("VU/8")(Ns,Fs,!1,function(t){a("Izzv")},null,null).exports,Vs={name:"PartPlaylist",components:{ModalDialog:Nt},props:["playlist"],data:function(){return{show_details_modal:!1}},methods:{play:function(){var t=this;this.show_details_modal=!1,C().then(function(){return w(t.playlist.uri).then(function(){return $()})})},queue_add:function(){var t=this;this.show_details_modal=!1,w(this.playlist.uri).then(function(){return t.$store.dispatch("add_notification",{text:"Playlist appended to queue",type:"info",timeout:2e3})})},open_playlist:function(){this.show_details_modal=!1,this.$router.push({path:"/playlists/"+this.playlist.id})}}},Os={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"media"},[a("div",{staticClass:"media-content fd-has-action is-clipped",on:{click:t.open_playlist}},[a("h1",{staticClass:"title is-6"},[t._v(t._s(t.playlist.name))])]),t._v(" "),a("div",{staticClass:"media-right"},[a("a",{on:{click:function(s){t.show_details_modal=!0}}},[t._m(0)]),t._v(" "),a("modal-dialog",{attrs:{show:t.show_details_modal},on:{close:function(s){t.show_details_modal=!1}}},[a("template",{slot:"modal-content"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-content"},[a("p",{staticClass:"title is-4"},[a("a",{staticClass:"has-text-link",on:{click:t.open_playlist}},[t._v(t._s(t.playlist.name))])]),t._v(" "),a("div",{staticClass:"content is-small"},[a("p",[a("span",{staticClass:"heading"},[t._v("Path")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.playlist.path))])])])]),t._v(" "),a("footer",{staticClass:"card-footer"},[a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-plus mdi-18px"})]),t._v(" "),a("span",[t._v("Add")])]),t._v(" "),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.play}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-play mdi-18px"})]),t._v(" "),a("span",[t._v("Play")])])])])])],2)],1)])},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("span",{staticClass:"icon has-text-dark"},[s("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}]};var Ds=a("VU/8")(Vs,Os,!1,function(t){a("mqPL")},null,null).exports,Hs={name:"PagePlaylists",mixins:[Xt({load:function(t){return M()},set:function(t,s){t.playlists=s.data}})],components:{ContentWithHeading:It.default,TabsMusic:Kt,ListItemPlaylist:Ds},data:function(){return{playlists:{}}}},zs={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Playlists")]),t._v(" "),a("p",{staticClass:"heading"},[t._v(t._s(t.playlists.total)+" playlists")])]),t._v(" "),a("template",{slot:"content"},t._l(t.playlists.items,function(t){return a("list-item-playlist",{key:t.id,attrs:{playlist:t}})}))],2)},staticRenderFns:[]};var Ws=a("VU/8")(Hs,zs,!1,function(t){a("gNcJ")},null,null).exports,Ms={name:"PagePlaylist",mixins:[Xt({load:function(t){return r.a.all([Y(t.params.playlist_id),G(t.params.playlist_id)])},set:function(t,s){t.playlist=s[0].data,t.tracks=s[1].data.items}})],components:{ContentWithHeading:It.default,ListItemTrack:is},data:function(){return{playlist:{},tracks:[]}},methods:{play:function(){var t=this;C().then(function(){return w(t.playlist.uri).then(function(){return $()})})}}},Ys={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("content-with-heading",[a("template",{slot:"heading-left"},[a("div",{staticClass:"title is-4"},[t._v(t._s(t.playlist.name))])]),t._v(" "),a("template",{slot:"heading-right"},[a("a",{staticClass:"button is-small is-dark is-rounded",on:{click:t.play}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-play"})]),t._v(" "),a("span",[t._v("Play")])])]),t._v(" "),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[t._v(t._s(t.tracks.length)+" tracks")]),t._v(" "),t._l(t.tracks,function(s,i){return a("list-item-track",{key:s.id,attrs:{track:s,position:i,context_uri:t.playlist.uri}})})],2)],2)},staticRenderFns:[]};var Gs=a("VU/8")(Ms,Ys,!1,function(t){a("ZBwk")},null,null).exports,Xs={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return t.spotify_enabled?a("section",{staticClass:"section fd-tabs-section"},[a("div",{staticClass:"container"},[a("div",{staticClass:"columns is-centered"},[a("div",{staticClass:"column is-four-fifths"},[a("div",{staticClass:"tabs is-centered is-small is-toggle is-toggle-rounded"},[a("ul",[a("router-link",{attrs:{tag:"li",to:{path:"/search/library",query:t.$route.query},"active-class":"is-active"}},[a("a",[a("span",{staticClass:"icon is-small"},[a("i",{staticClass:"mdi mdi-library-books"})]),t._v(" "),a("span",{},[t._v("Library")])])]),t._v(" "),a("router-link",{attrs:{tag:"li",to:{path:"/search/spotify",query:t.$route.query},"active-class":"is-active"}},[a("a",[a("span",{staticClass:"icon is-small"},[a("i",{staticClass:"mdi mdi-spotify"})]),t._v(" "),a("span",{},[t._v("Spotify")])])])],1)])])])])]):t._e()},staticRenderFns:[]};var Qs=a("VU/8")({name:"TabsSearch",computed:{spotify_enabled:function(){return this.$store.state.spotify.webapi_token_valid}}},Xs,!1,function(t){a("CwkH")},null,null).exports,Ks={name:"PageSearch",components:{ContentWithHeading:It.default,TabsSearch:Qs,ListItemTrack:is,ListItemArtist:hs,ListItemAlbum:ts,ListItemPlaylist:Ds},data:function(){return{search_query:"",tracks:{items:[],total:0},artists:{items:[],total:0},albums:{items:[],total:0},playlists:{items:[],total:0}}},computed:{recent_searches:function(){return this.$store.state.recent_searches},show_tracks:function(){return this.$route.query.type&&this.$route.query.type.includes("track")},show_all_tracks_button:function(){return this.tracks.total>this.tracks.items.length},show_artists:function(){return this.$route.query.type&&this.$route.query.type.includes("artist")},show_all_artists_button:function(){return this.artists.total>this.artists.items.length},show_albums:function(){return this.$route.query.type&&this.$route.query.type.includes("album")},show_all_albums_button:function(){return this.albums.total>this.albums.items.length},show_playlists:function(){return this.$route.query.type&&this.$route.query.type.includes("playlist")},show_all_playlists_button:function(){return this.playlists.total>this.playlists.items.length}},methods:{search:function(t){var s=this;if(!t.query.query||""===t.query.query)return this.search_query="",void this.$refs.search_field.focus();var a={type:t.query.type,query:t.query.query,media_kind:"music"};t.query.limit&&(a.limit=t.query.limit,a.offset=t.query.offset),X(a).then(function(t){var i=t.data;s.tracks=i.tracks?i.tracks:{items:[],total:0},s.artists=i.artists?i.artists:{items:[],total:0},s.albums=i.albums?i.albums:{items:[],total:0},s.playlists=i.playlists?i.playlists:{items:[],total:0},s.$store.commit("ADD_RECENT_SEARCH",a.query)})},new_search:function(){this.search_query&&(this.$router.push({path:"/search/library",query:{type:"track,artist,album,playlist",query:this.search_query,limit:3,offset:0}}),this.$refs.search_field.blur())},open_search_tracks:function(){this.$router.push({path:"/search/library",query:{type:"track",query:this.$route.query.query}})},open_search_artists:function(){this.$router.push({path:"/search/library",query:{type:"artist",query:this.$route.query.query}})},open_search_albums:function(){this.$router.push({path:"/search/library",query:{type:"album",query:this.$route.query.query}})},open_search_playlists:function(){this.$router.push({path:"/search/library",query:{type:"playlist",query:this.$route.query.query}})},open_recent_search:function(t){this.search_query=t,this.new_search()}},mounted:function(){this.search(this.$route)},watch:{$route:function(t,s){this.search(t)}}},Zs={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("section",{staticClass:"section fd-tabs-section"},[a("div",{staticClass:"container"},[a("div",{staticClass:"columns is-centered"},[a("div",{staticClass:"column is-four-fifths"},[a("form",{on:{submit:function(s){return s.preventDefault(),t.new_search(s)}}},[a("div",{staticClass:"field"},[a("p",{staticClass:"control is-expanded has-icons-left"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.search_query,expression:"search_query"}],ref:"search_field",staticClass:"input is-rounded is-shadowless",attrs:{type:"text",placeholder:"Search"},domProps:{value:t.search_query},on:{input:function(s){s.target.composing||(t.search_query=s.target.value)}}}),t._v(" "),t._m(0)])])]),t._v(" "),a("div",{staticClass:"tags",staticStyle:{"margin-top":"16px"}},t._l(t.recent_searches,function(s){return a("a",{key:s,staticClass:"tag",on:{click:function(a){t.open_recent_search(s)}}},[t._v(t._s(s))])}))])])])]),t._v(" "),a("tabs-search"),t._v(" "),t.show_tracks?a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Tracks")])]),t._v(" "),a("template",{slot:"content"},t._l(t.tracks.items,function(t){return a("list-item-track",{key:t.id,attrs:{track:t,position:0,context_uri:t.uri}})})),t._v(" "),a("template",{slot:"footer"},[t.show_all_tracks_button?a("nav",{staticClass:"level"},[a("p",{staticClass:"level-item"},[a("a",{staticClass:"button is-light is-small is-rounded",on:{click:t.open_search_tracks}},[t._v("Show all "+t._s(t.tracks.total)+" tracks")])])]):t._e(),t._v(" "),t.tracks.total?t._e():a("p",[t._v("No results")])])],2):t._e(),t._v(" "),t.show_artists?a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Artists")])]),t._v(" "),a("template",{slot:"content"},t._l(t.artists.items,function(t){return a("list-item-artist",{key:t.id,attrs:{artist:t}})})),t._v(" "),a("template",{slot:"footer"},[t.show_all_artists_button?a("nav",{staticClass:"level"},[a("p",{staticClass:"level-item"},[a("a",{staticClass:"button is-light is-small is-rounded",on:{click:t.open_search_artists}},[t._v("Show all "+t._s(t.artists.total)+" artists")])])]):t._e(),t._v(" "),t.artists.total?t._e():a("p",[t._v("No results")])])],2):t._e(),t._v(" "),t.show_albums?a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Albums")])]),t._v(" "),a("template",{slot:"content"},t._l(t.albums.items,function(t){return a("list-item-album",{key:t.id,attrs:{album:t}})})),t._v(" "),a("template",{slot:"footer"},[t.show_all_albums_button?a("nav",{staticClass:"level"},[a("p",{staticClass:"level-item"},[a("a",{staticClass:"button is-light is-small is-rounded",on:{click:t.open_search_albums}},[t._v("Show all "+t._s(t.albums.total)+" albums")])])]):t._e(),t._v(" "),t.albums.total?t._e():a("p",[t._v("No results")])])],2):t._e(),t._v(" "),t.show_playlists?a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Playlists")])]),t._v(" "),a("template",{slot:"content"},t._l(t.playlists.items,function(t){return a("list-item-playlist",{key:t.id,attrs:{playlist:t}})})),t._v(" "),a("template",{slot:"footer"},[t.show_all_playlists_button?a("nav",{staticClass:"level"},[a("p",{staticClass:"level-item"},[a("a",{staticClass:"button is-light is-small is-rounded",on:{click:t.open_search_playlists}},[t._v("Show all "+t._s(t.playlists.total)+" playlists")])])]):t._e(),t._v(" "),t.playlists.total?t._e():a("p",[t._v("No results")])])],2):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("span",{staticClass:"icon is-left"},[s("i",{staticClass:"mdi mdi-magnify"})])}]};var Js=a("VU/8")(Ks,Zs,!1,function(t){a("Ebb7")},null,null).exports,ta={name:"PageAbout",data:function(){return{version:"0.1.0"}},computed:{config:function(){return this.$store.state.config},library:function(){return this.$store.state.library}},methods:{update:function(){v()}},filters:{join:function(t){return t.join(", ")}}},sa={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("section",{staticClass:"section"},[a("div",{staticClass:"container"},[a("div",{staticClass:"columns is-centered"},[a("div",{staticClass:"column is-four-fifths has-text-centered-mobile"},[a("p",{staticClass:"heading"},[a("b",[t._v("forked-daapd")]),t._v(" - version "+t._s(t.config.version))]),t._v(" "),a("h1",{staticClass:"title is-4"},[t._v(t._s(t.config.library_name))])])])])]),t._v(" "),a("section",{staticClass:"section"},[a("div",{staticClass:"container"},[a("div",{staticClass:"columns is-centered"},[a("div",{staticClass:"column is-four-fifths"},[a("div",{staticClass:"content"},[a("nav",{staticClass:"level is-mobile"},[t._m(0),t._v(" "),a("div",{staticClass:"level-right"},[a("a",{staticClass:"button is-small is-outlined is-link",class:{"is-loading":t.library.updating},on:{click:t.update}},[t._v("Update")])])]),t._v(" "),a("table",{staticClass:"table"},[a("tbody",[a("tr",[a("th",[t._v("Artists")]),t._v(" "),a("td",{staticClass:"has-text-right"},[t._v(t._s(t._f("number")(t.library.artists)))])]),t._v(" "),a("tr",[a("th",[t._v("Albums")]),t._v(" "),a("td",{staticClass:"has-text-right"},[t._v(t._s(t._f("number")(t.library.albums)))])]),t._v(" "),a("tr",[a("th",[t._v("Tracks")]),t._v(" "),a("td",{staticClass:"has-text-right"},[t._v(t._s(t._f("number")(t.library.songs)))])]),t._v(" "),a("tr",[a("th",[t._v("Total playtime")]),t._v(" "),a("td",{staticClass:"has-text-right"},[t._v(t._s(t._f("duration")(1e3*t.library.db_playtime,"y [years], d [days], h [hours], m [minutes]")))])]),t._v(" "),a("tr",[a("th",[t._v("Library updated")]),t._v(" "),a("td",{staticClass:"has-text-right"},[t._v(t._s(t._f("timeFromNow")(t.library.updated_at))+" "),a("span",{staticClass:"has-text-grey"},[t._v("("+t._s(t._f("time")(t.library.updated_at,"MMM Do, h:mm"))+")")])])]),t._v(" "),a("tr",[a("th",[t._v("Uptime")]),t._v(" "),a("td",{staticClass:"has-text-right"},[t._v(t._s(t._f("timeFromNow")(t.library.started_at,!0))+" "),a("span",{staticClass:"has-text-grey"},[t._v("("+t._s(t._f("time")(t.library.started_at,"MMM Do, h:mm"))+")")])])])])])])])])])]),t._v(" "),a("section",{staticClass:"section"},[a("div",{staticClass:"container"},[a("div",{staticClass:"columns is-centered"},[a("div",{staticClass:"column is-four-fifths"},[a("div",{staticClass:"content has-text-centered-mobile"},[a("p",{staticClass:"is-size-7"},[t._v("Compiled with support for "+t._s(t._f("join")(t.config.buildoptions))+".")]),t._v(" "),a("p",{staticClass:"is-size-7"},[a("a",{attrs:{href:"https://github.com/chme/forked-daapd-web"}},[t._v("Web interface")]),t._v(" v"+t._s(t.version)+" built with "),a("a",{attrs:{href:"http://bulma.io"}},[t._v("Bulma")]),t._v(", "),a("a",{attrs:{href:"https://materialdesignicons.com/"}},[t._v("Material Design Icons")]),t._v(", "),a("a",{attrs:{href:"https://vuejs.org/"}},[t._v("Vue.js")]),t._v(", "),a("a",{attrs:{href:"https://github.com/mzabriskie/axios"}},[t._v("axios")]),t._v(" and "),a("a",{attrs:{href:"https://github.com/chme/forked-daapd-web/network/dependencies"}},[t._v("more")]),t._v(".")])])])])])])])},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"level-left"},[s("div",{staticClass:"level-item"},[s("h2",{staticClass:"title is-5"},[this._v("Library")])])])}]};var aa=a("VU/8")(ta,sa,!1,function(t){a("kZj4")},null,null).exports,ia={name:"SpotifyListItemAlbum",props:["album"],data:function(){return{show_details_modal:!1}},methods:{play:function(){var t=this;C().then(function(){return w(t.album.uri).then(function(){return $()})}),this.show_details_modal=!1},queue_add:function(){w(this.album.uri).then(this.$store.dispatch("add_notification",{text:"Album tracks appended to queue",type:"info",timeout:3e3})),this.show_details_modal=!1},show_details:function(){this.show_details_modal=!0},hide_details:function(){this.show_details_modal=!1},open_album:function(){this.$router.push({path:"/music/spotify/albums/"+this.album.id})},open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})}}},ea={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"media"},[a("div",{staticClass:"media-content fd-has-action is-clipped",on:{click:t.open_album}},[a("h1",{staticClass:"title is-6"},[t._v(t._s(t.album.name))]),t._v(" "),a("h2",{staticClass:"subtitle is-7 has-text-grey"},[a("b",[t._v(t._s(t.album.artists[0].name))])])]),t._v(" "),a("div",{staticClass:"media-right"},[a("a",{on:{click:t.show_details}},[t._m(0)]),t._v(" "),a("transition",{attrs:{name:"fade"}},[t.show_details_modal?a("div",{staticClass:"modal is-active"},[a("div",{staticClass:"modal-background",on:{click:t.hide_details}}),t._v(" "),a("div",{staticClass:"modal-content"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-content"},[a("p",{staticClass:"title is-4"},[a("a",{staticClass:"has-text-link",on:{click:t.open_album}},[t._v(t._s(t.album.name))])]),t._v(" "),a("div",{staticClass:"content is-small"},[a("p",[a("span",{staticClass:"heading"},[t._v("Album artist")]),t._v(" "),a("a",{staticClass:"title is-6 has-text-link",on:{click:t.open_artist}},[t._v(t._s(t.album.artists[0].name))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Release date")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.album.release_date))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Type")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.album.album_type))])])])]),t._v(" "),a("footer",{staticClass:"card-footer"},[a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-plus mdi-18px"})]),t._v(" "),a("span",[t._v("Add")])]),t._v(" "),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.play}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-play mdi-18px"})]),t._v(" "),a("span",[t._v("Play")])])])])]),t._v(" "),a("button",{staticClass:"modal-close is-large",attrs:{"aria-label":"close"},on:{click:t.hide_details}})]):t._e()])],1)])},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("span",{staticClass:"icon has-text-dark"},[s("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}]};var na=a("VU/8")(ia,ea,!1,function(t){a("Xo9t")},null,null).exports,la={name:"SpotifyListItemPlaylist",props:["playlist"],data:function(){return{show_details_modal:!1}},methods:{play:function(){var t=this;C().then(function(){return w(t.playlist.uri).then(function(){return $()})}),this.show_details_modal=!1},queue_add:function(){var t=this;w(this.playlist.uri).then(function(){return t.$store.dispatch("add_notification",{text:"Playlist appended to queue",type:"info",timeout:2e3})}),this.show_details_modal=!1},show_details:function(){this.show_details_modal=!0},hide_details:function(){this.show_details_modal=!1},open_playlist:function(){this.show_details_modal=!1,this.$router.push({path:"/music/spotify/playlists/"+this.playlist.owner.id+"/"+this.playlist.id})}}},oa={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"media"},[a("div",{staticClass:"media-content fd-has-action is-clipped",on:{click:t.open_playlist}},[a("h1",{staticClass:"title is-6"},[t._v(t._s(t.playlist.name))]),t._v(" "),a("h2",{staticClass:"subtitle is-7"},[t._v(t._s(t.playlist.owner.display_name))])]),t._v(" "),a("div",{staticClass:"media-right"},[a("a",{on:{click:t.show_details}},[t._m(0)]),t._v(" "),a("transition",{attrs:{name:"fade"}},[t.show_details_modal?a("div",{staticClass:"modal is-active"},[a("div",{staticClass:"modal-background",on:{click:t.hide_details}}),t._v(" "),a("div",{staticClass:"modal-content"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-content"},[a("p",{staticClass:"title is-4"},[a("a",{staticClass:"has-text-link",on:{click:t.open_playlist}},[t._v(t._s(t.playlist.name))])]),t._v(" "),a("div",{staticClass:"content is-small"},[a("p",[a("span",{staticClass:"heading"},[t._v("Owner")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.playlist.owner.display_name))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Tracks")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.playlist.tracks.total))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Path")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.playlist.uri))])])])]),t._v(" "),a("footer",{staticClass:"card-footer"},[a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-plus mdi-18px"})]),t._v(" "),a("span",[t._v("Add")])]),t._v(" "),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.play}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-play mdi-18px"})]),t._v(" "),a("span",[t._v("Play")])])])])]),t._v(" "),a("button",{staticClass:"modal-close is-large",attrs:{"aria-label":"close"},on:{click:t.hide_details}})]):t._e()])],1)])},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("span",{staticClass:"icon has-text-dark"},[s("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}]};var ra=a("VU/8")(la,oa,!1,function(t){a("u995")},null,null).exports,ca=a("vRVh"),ua=a.n(ca),da={name:"SpotifyPageBrowse",mixins:[Xt({load:function(t){if(p.state.spotify_new_releases.length>0&&p.state.spotify_featured_playlists.length>0)return r.a.resolve();var s=new ua.a;return s.setAccessToken(p.state.spotify.webapi_token),r.a.all([s.getNewReleases({country:p.state.spotify.webapi_country,limit:50}),s.getFeaturedPlaylists({country:p.state.spotify.webapi_country,limit:50})])},set:function(t,s){s&&(p.commit("SPOTIFY_NEW_RELEASES",s[0].albums.items),p.commit("SPOTIFY_FEATURED_PLAYLISTS",s[1].playlists.items))}})],components:{ContentWithHeading:It.default,TabsMusic:Kt,SpotifyListItemAlbum:na,SpotifyListItemPlaylist:ra},computed:{new_releases:function(){return this.$store.state.spotify_new_releases.slice(0,3)},featured_playlists:function(){return this.$store.state.spotify_featured_playlists.slice(0,3)}}},_a={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("tabs-music"),t._v(" "),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("New Releases")])]),t._v(" "),a("template",{slot:"content"},t._l(t.new_releases,function(t){return a("spotify-list-item-album",{key:t.id,attrs:{album:t}})})),t._v(" "),a("template",{slot:"footer"},[a("nav",{staticClass:"level"},[a("p",{staticClass:"level-item"},[a("router-link",{staticClass:"button is-light is-small is-rounded",attrs:{to:"/music/spotify/new-releases"}},[t._v("\n Show more\n ")])],1)])])],2),t._v(" "),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Featured Playlists")])]),t._v(" "),a("template",{slot:"content"},t._l(t.featured_playlists,function(t){return a("spotify-list-item-playlist",{key:t.id,attrs:{playlist:t}})})),t._v(" "),a("template",{slot:"footer"},[a("nav",{staticClass:"level"},[a("p",{staticClass:"level-item"},[a("router-link",{staticClass:"button is-light is-small is-rounded",attrs:{to:"/music/spotify/featured-playlists"}},[t._v("\n Show more\n ")])],1)])])],2)],1)},staticRenderFns:[]};var ma=a("VU/8")(da,_a,!1,function(t){a("E6Sb")},null,null).exports,pa={name:"SpotifyPageBrowseNewReleases",mixins:[Xt({load:function(t){if(p.state.spotify_new_releases.length>0)return r.a.resolve();var s=new ua.a;return s.setAccessToken(p.state.spotify.webapi_token),s.getNewReleases({country:p.state.spotify.webapi_country,limit:50})},set:function(t,s){s&&p.commit("SPOTIFY_NEW_RELEASES",s.albums.items)}})],components:{ContentWithHeading:It.default,TabsMusic:Kt,SpotifyListItemAlbum:na},computed:{new_releases:function(){return this.$store.state.spotify_new_releases}}},ha={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",[s("tabs-music"),this._v(" "),s("content-with-heading",[s("template",{slot:"heading-left"},[s("p",{staticClass:"title is-4"},[this._v("New Releases")])]),this._v(" "),s("template",{slot:"content"},this._l(this.new_releases,function(t){return s("spotify-list-item-album",{key:t.id,attrs:{album:t}})}))],2)],1)},staticRenderFns:[]};var fa=a("VU/8")(pa,ha,!1,function(t){a("yLL2")},null,null).exports,va={name:"SpotifyPageBrowseFeaturedPlaylists",mixins:[Xt({load:function(t){if(p.state.spotify_featured_playlists.length>0)return r.a.resolve();var s=new ua.a;s.setAccessToken(p.state.spotify.webapi_token),s.getFeaturedPlaylists({country:p.state.spotify.webapi_country,limit:50})},set:function(t,s){s&&p.commit("SPOTIFY_FEATURED_PLAYLISTS",s.playlists.items)}})],components:{ContentWithHeading:It.default,TabsMusic:Kt,SpotifyListItemPlaylist:ra},computed:{featured_playlists:function(){return this.$store.state.spotify_featured_playlists}}},ya={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",[s("tabs-music"),this._v(" "),s("content-with-heading",[s("template",{slot:"heading-left"},[s("p",{staticClass:"title is-4"},[this._v("Featured Playlists")])]),this._v(" "),s("template",{slot:"content"},this._l(this.featured_playlists,function(t){return s("spotify-list-item-playlist",{key:t.id,attrs:{playlist:t}})}))],2)],1)},staticRenderFns:[]};var ba=a("VU/8")(va,ya,!1,function(t){a("6vIy")},null,null).exports,Ca=a("qK+J"),ga=a.n(Ca),ka={name:"SpotifyPageArtist",mixins:[Xt({load:function(t){var s=new ua.a;return s.setAccessToken(p.state.spotify.webapi_token),r.a.all([s.getArtist(t.params.artist_id),s.getArtistAlbums(t.params.artist_id,{limit:50,offset:0,include_groups:"album,single"})])},set:function(t,s){t.artist=s[0],t.albums=[],t.total=0,t.offset=0,t.append_albums(s[1])}})],components:{ContentWithHeading:It.default,SpotifyListItemAlbum:na,InfiniteLoading:ga.a},data:function(){return{artist:{},albums:[],total:0,offset:0}},methods:{load_next:function(t){var s=this,a=new ua.a;a.setAccessToken(this.$store.state.spotify.webapi_token),a.getArtistAlbums(this.artist.id,{limit:50,offset:this.offset,include_groups:"album,single"}).then(function(a){s.append_albums(a,t)})},append_albums:function(t,s){this.albums=this.albums.concat(t.items),this.total=t.total,this.offset+=t.limit,s&&(s.loaded(),this.offset>=this.total&&s.complete())}}},wa={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v(t._s(t.artist.name))])]),t._v(" "),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[t._v(t._s(t.total)+" albums")]),t._v(" "),t._l(t.albums,function(t){return a("spotify-list-item-album",{key:t.id,attrs:{album:t}})}),t._v(" "),t.offset<t.total?a("infinite-loading",{on:{infinite:t.load_next}},[a("span",{attrs:{slot:"no-more"},slot:"no-more"},[t._v(".")])]):t._e()],2)],2)},staticRenderFns:[]};var xa=a("VU/8")(ka,wa,!1,function(t){a("iWn4")},null,null).exports,$a={name:"SpotifyListItemTrack",props:["track","position","album","context_uri"],data:function(){return{show_details_modal:!1}},methods:{play:function(){var t=this;C().then(function(){return w(t.context_uri).then(function(){return q(t.position)})}),this.show_details_modal=!1},queue_add:function(){var t=this;w(this.track.uri).then(function(){return t.$store.dispatch("add_notification",{text:"Track appended to queue",type:"info",timeout:2e3})}),this.show_details_modal=!1},show_details:function(){this.show_details_modal=!0},hide_details:function(){this.show_details_modal=!1},open_album:function(){this.show_details_modal=!1,this.$router.push({path:"/music/spotify/albums/"+this.album.id})},open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})}}},qa={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"media"},[a("div",{staticClass:"media-content fd-has-action is-clipped",on:{click:t.play}},[a("h1",{staticClass:"title is-6"},[t._v(t._s(t.track.name))]),t._v(" "),a("h2",{staticClass:"subtitle is-7 has-text-grey"},[a("b",[t._v(t._s(t.track.artists[0].name))])])]),t._v(" "),a("div",{staticClass:"media-right"},[a("a",{on:{click:t.show_details}},[t._m(0)]),t._v(" "),a("transition",{attrs:{name:"fade"}},[t.show_details_modal?a("div",{staticClass:"modal is-active"},[a("div",{staticClass:"modal-background",on:{click:t.hide_details}}),t._v(" "),a("div",{staticClass:"modal-content"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-content"},[a("p",{staticClass:"title is-4"},[t._v("\n "+t._s(t.track.name)+"\n ")]),t._v(" "),a("p",{staticClass:"subtitle"},[t._v("\n "+t._s(t.track.artists[0].name)+"\n ")]),t._v(" "),a("div",{staticClass:"content is-small"},[a("p",[a("span",{staticClass:"heading"},[t._v("Album")]),t._v(" "),a("a",{staticClass:"title is-6 has-text-link",on:{click:t.open_album}},[t._v(t._s(t.album.name))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Album artist")]),t._v(" "),a("a",{staticClass:"title is-6 has-text-link",on:{click:t.open_artist}},[t._v(t._s(t.album.artists[0].name))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Release date")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.album.release_date))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Track / Disc")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.track.track_number)+" / "+t._s(t.track.disc_number))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Length")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t._f("duration")(t.track.duration_ms)))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Path")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.track.uri))])])])]),t._v(" "),a("footer",{staticClass:"card-footer"},[a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-plus mdi-18px"})]),t._v(" "),a("span",[t._v("Add")])]),t._v(" "),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.play}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-play mdi-18px"})]),t._v(" "),a("span",[t._v("Play")])])])])]),t._v(" "),a("button",{staticClass:"modal-close is-large",attrs:{"aria-label":"close"},on:{click:t.hide_details}})]):t._e()])],1)])},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("span",{staticClass:"icon has-text-dark"},[s("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}]};var Pa=a("VU/8")($a,qa,!1,function(t){a("qI6n")},null,null).exports,Ea={name:"PageAlbum",mixins:[Xt({load:function(t){var s=new ua.a;return s.setAccessToken(p.state.spotify.webapi_token),s.getAlbum(t.params.album_id)},set:function(t,s){t.album=s}})],components:{ContentWithHeading:It.default,SpotifyListItemTrack:Pa},data:function(){return{album:{}}},methods:{open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})},play:function(){var t=this;C().then(function(){return w(t.album.uri).then(function(){return $()})}),this.show_details_modal=!1}}},Aa={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("content-with-heading",[a("template",{slot:"heading-left"},[a("div",{staticClass:"title is-4"},[t._v(t._s(t.album.name))]),t._v(" "),a("a",{staticClass:"title is-4 has-text-link has-text-weight-normal",on:{click:t.open_artist}},[t._v(t._s(t.album.artists[0].name))])]),t._v(" "),a("template",{slot:"heading-right"},[a("a",{staticClass:"button is-small is-dark is-rounded",on:{click:t.play}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-play"})]),t._v(" "),a("span",[t._v("Play")])])]),t._v(" "),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[t._v(t._s(t.album.tracks.total)+" tracks")]),t._v(" "),t._l(t.album.tracks.items,function(s,i){return a("spotify-list-item-track",{key:s.id,attrs:{track:s,position:i,album:t.album,context_uri:t.album.uri}})})],2)],2)},staticRenderFns:[]};var Sa=a("VU/8")(Ea,Aa,!1,function(t){a("V4uA")},null,null).exports,ja={name:"SpotifyPagePlaylist",mixins:[Xt({load:function(t){var s=new ua.a;return s.setAccessToken(p.state.spotify.webapi_token),r.a.all([s.getPlaylist(t.params.user_id,t.params.playlist_id),s.getPlaylistTracks(t.params.user_id,t.params.playlist_id,{limit:50,offset:0})])},set:function(t,s){t.playlist=s[0],t.tracks=[],t.total=0,t.offset=0,t.append_tracks(s[1])}})],components:{ContentWithHeading:It.default,SpotifyListItemTrack:Pa,InfiniteLoading:ga.a},data:function(){return{playlist:{},tracks:[],total:0,offset:0}},methods:{load_next:function(t){var s=this,a=new ua.a;a.setAccessToken(this.$store.state.spotify.webapi_token),a.getPlaylistTracks(this.playlist.owner.id,this.playlist.id,{limit:50,offset:this.offset}).then(function(a){s.append_tracks(a,t)})},append_tracks:function(t,s){this.tracks=this.tracks.concat(t.items),this.total=t.total,this.offset+=t.limit,s&&(s.loaded(),this.offset>=this.total&&s.complete())},play:function(){var t=this;C().then(function(){return w(t.playlist.uri).then(function(){return $()})}),this.show_details_modal=!1}}},Ta={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("content-with-heading",[a("template",{slot:"heading-left"},[a("div",{staticClass:"title is-4"},[t._v(t._s(t.playlist.name))])]),t._v(" "),a("template",{slot:"heading-right"},[a("a",{staticClass:"button is-small is-dark is-rounded",on:{click:t.play}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-play"})]),t._v(" "),a("span",[t._v("Play")])])]),t._v(" "),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[t._v(t._s(t.playlist.tracks.total)+" tracks")]),t._v(" "),t._l(t.tracks,function(s,i){return a("spotify-list-item-track",{key:s.track.id,attrs:{track:s.track,album:s.track.album,position:i,context_uri:t.playlist.uri}})}),t._v(" "),t.offset<t.total?a("infinite-loading",{on:{infinite:t.load_next}},[a("span",{attrs:{slot:"no-more"},slot:"no-more"},[t._v(".")])]):t._e()],2)],2)},staticRenderFns:[]};var Ra=a("VU/8")(ja,Ta,!1,function(t){a("fqbX")},null,null).exports,Ua={name:"SpotifyListItemArtist",props:["artist"],data:function(){return{show_details_modal:!1}},methods:{play:function(){var t=this;C().then(function(){return w(t.artist.uri).then(function(){return $()})}),this.show_details_modal=!1},queue_add:function(){var t=this;w(this.artist.uri).then(function(){return t.$store.dispatch("add_notification",{text:"Artist tracks appended to queue",type:"info",timeout:2e3})}),this.show_details_modal=!1},show_details:function(){this.show_details_modal=!0},hide_details:function(){this.show_details_modal=!1},open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/music/spotify/artists/"+this.artist.id})}}},Ia={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"media"},[a("div",{staticClass:"media-content fd-has-action is-clipped",on:{click:t.open_artist}},[a("h1",{staticClass:"title is-6"},[t._v(t._s(t.artist.name))])]),t._v(" "),a("div",{staticClass:"media-right"},[a("a",{on:{click:t.show_details}},[t._m(0)]),t._v(" "),a("transition",{attrs:{name:"fade"}},[t.show_details_modal?a("div",{staticClass:"modal is-active"},[a("div",{staticClass:"modal-background",on:{click:t.hide_details}}),t._v(" "),a("div",{staticClass:"modal-content"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-content"},[a("p",{staticClass:"title is-4"},[a("a",{staticClass:"has-text-link",on:{click:t.open_artist}},[t._v(t._s(t.artist.name))])]),t._v(" "),a("div",{staticClass:"content is-small"},[a("p",[a("span",{staticClass:"heading"},[t._v("Popularity / Followers")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.artist.popularity)+" / "+t._s(t.artist.followers.total))])]),t._v(" "),a("p",[a("span",{staticClass:"heading"},[t._v("Genres")]),t._v(" "),a("span",{staticClass:"title is-6"},[t._v(t._s(t.artist.genres.join(", ")))])])])]),t._v(" "),a("footer",{staticClass:"card-footer"},[a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-plus mdi-18px"})]),t._v(" "),a("span",[t._v("Add")])]),t._v(" "),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.play}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-play mdi-18px"})]),t._v(" "),a("span",[t._v("Play")])])])])]),t._v(" "),a("button",{staticClass:"modal-close is-large",attrs:{"aria-label":"close"},on:{click:t.hide_details}})]):t._e()])],1)])},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("span",{staticClass:"icon has-text-dark"},[s("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}]};var La=a("VU/8")(Ua,Ia,!1,function(t){a("46DV")},null,null).exports,Na={name:"SpotifyPageSearch",components:{ContentWithHeading:It.default,TabsSearch:Qs,SpotifyListItemTrack:Pa,SpotifyListItemArtist:La,SpotifyListItemAlbum:na,SpotifyListItemPlaylist:ra,InfiniteLoading:ga.a},data:function(){return{search_query:"",tracks:{items:[],total:0},artists:{items:[],total:0},albums:{items:[],total:0},playlists:{items:[],total:0},query:{},search_param:{}}},computed:{recent_searches:function(){return this.$store.state.recent_searches},show_tracks:function(){return this.$route.query.type&&this.$route.query.type.includes("track")},show_all_tracks_button:function(){return this.tracks.total>this.tracks.items.length},show_artists:function(){return this.$route.query.type&&this.$route.query.type.includes("artist")},show_all_artists_button:function(){return this.artists.total>this.artists.items.length},show_albums:function(){return this.$route.query.type&&this.$route.query.type.includes("album")},show_all_albums_button:function(){return this.albums.total>this.albums.items.length},show_playlists:function(){return this.$route.query.type&&this.$route.query.type.includes("playlist")},show_all_playlists_button:function(){return this.playlists.total>this.playlists.items.length}},methods:{reset:function(){this.tracks={items:[],total:0},this.artists={items:[],total:0},this.albums={items:[],total:0},this.playlists={items:[],total:0}},search:function(){if(this.reset(),!this.query.query||""===this.query.query)return this.search_query="",void this.$refs.search_field.focus();this.search_param.limit=this.query.limit?this.query.limit:50,this.search_param.offset=this.query.offset?this.query.offset:0,this.$store.commit("ADD_RECENT_SEARCH",this.query.query),this.query.type.includes(",")&&this.search_all()},spotify_search:function(){var t=this;return Q().then(function(s){var a=s.data;t.search_param.market=a.webapi_country;var i=new ua.a;return i.setAccessToken(a.webapi_token),i.search(t.query.query,t.query.type.split(","),t.search_param)})},search_all:function(){var t=this;this.spotify_search().then(function(s){t.tracks=s.tracks?s.tracks:{items:[],total:0},t.artists=s.artists?s.artists:{items:[],total:0},t.albums=s.albums?s.albums:{items:[],total:0},t.playlists=s.playlists?s.playlists:{items:[],total:0}})},search_tracks_next:function(t){var s=this;this.spotify_search().then(function(a){s.tracks.items=s.tracks.items.concat(a.tracks.items),s.tracks.total=a.tracks.total,s.search_param.offset+=a.tracks.limit,t.loaded(),s.search_param.offset>=s.tracks.total&&t.complete()})},search_artists_next:function(t){var s=this;this.spotify_search().then(function(a){s.artists.items=s.artists.items.concat(a.artists.items),s.artists.total=a.artists.total,s.search_param.offset+=a.artists.limit,t.loaded(),s.search_param.offset>=s.artists.total&&t.complete()})},search_albums_next:function(t){var s=this;this.spotify_search().then(function(a){s.albums.items=s.albums.items.concat(a.albums.items),s.albums.total=a.albums.total,s.search_param.offset+=a.albums.limit,t.loaded(),s.search_param.offset>=s.albums.total&&t.complete()})},search_playlists_next:function(t){var s=this;this.spotify_search().then(function(a){s.playlists.items=s.playlists.items.concat(a.playlists.items),s.playlists.total=a.playlists.total,s.search_param.offset+=a.playlists.limit,t.loaded(),s.search_param.offset>=s.playlists.total&&t.complete()})},new_search:function(){this.search_query&&(this.$router.push({path:"/search/spotify",query:{type:"track,artist,album,playlist",query:this.search_query,limit:3,offset:0}}),this.$refs.search_field.blur())},open_search_tracks:function(){this.$router.push({path:"/search/spotify",query:{type:"track",query:this.$route.query.query}})},open_search_artists:function(){this.$router.push({path:"/search/spotify",query:{type:"artist",query:this.$route.query.query}})},open_search_albums:function(){this.$router.push({path:"/search/spotify",query:{type:"album",query:this.$route.query.query}})},open_search_playlists:function(){this.$router.push({path:"/search/spotify",query:{type:"playlist",query:this.$route.query.query}})},open_recent_search:function(t){this.search_query=t,this.new_search()}},mounted:function(){this.query=this.$route.query,this.search()},watch:{$route:function(t,s){this.query=t.query,this.search()}}},Fa={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("section",{staticClass:"section fd-tabs-section"},[a("div",{staticClass:"container"},[a("div",{staticClass:"columns is-centered"},[a("div",{staticClass:"column is-four-fifths"},[a("form",{on:{submit:function(s){return s.preventDefault(),t.new_search(s)}}},[a("div",{staticClass:"field"},[a("p",{staticClass:"control is-expanded has-icons-left"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.search_query,expression:"search_query"}],ref:"search_field",staticClass:"input is-rounded is-shadowless",attrs:{type:"text",placeholder:"Search"},domProps:{value:t.search_query},on:{input:function(s){s.target.composing||(t.search_query=s.target.value)}}}),t._v(" "),t._m(0)])])]),t._v(" "),a("div",{staticClass:"tags",staticStyle:{"margin-top":"16px"}},t._l(t.recent_searches,function(s){return a("a",{key:s,staticClass:"tag",on:{click:function(a){t.open_recent_search(s)}}},[t._v(t._s(s))])}))])])])]),t._v(" "),a("tabs-search"),t._v(" "),t.show_tracks?a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Tracks")])]),t._v(" "),a("template",{slot:"content"},[t._l(t.tracks.items,function(t){return a("spotify-list-item-track",{key:t.id,attrs:{track:t,album:t.album,position:0,context_uri:t.uri}})}),t._v(" "),"track"===t.query.type?a("infinite-loading",{on:{infinite:t.search_tracks_next}},[a("span",{attrs:{slot:"no-more"},slot:"no-more"},[t._v(".")])]):t._e()],2),t._v(" "),a("template",{slot:"footer"},[t.show_all_tracks_button?a("nav",{staticClass:"level"},[a("p",{staticClass:"level-item"},[a("a",{staticClass:"button is-light is-small is-rounded",on:{click:t.open_search_tracks}},[t._v("Show all "+t._s(t.tracks.total)+" tracks")])])]):t._e(),t._v(" "),t.tracks.total?t._e():a("p",[t._v("No results")])])],2):t._e(),t._v(" "),t.show_artists?a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Artists")])]),t._v(" "),a("template",{slot:"content"},[t._l(t.artists.items,function(t){return a("spotify-list-item-artist",{key:t.id,attrs:{artist:t}})}),t._v(" "),"artist"===t.query.type?a("infinite-loading",{on:{infinite:t.search_artists_next}},[a("span",{attrs:{slot:"no-more"},slot:"no-more"},[t._v(".")])]):t._e()],2),t._v(" "),a("template",{slot:"footer"},[t.show_all_artists_button?a("nav",{staticClass:"level"},[a("p",{staticClass:"level-item"},[a("a",{staticClass:"button is-light is-small is-rounded",on:{click:t.open_search_artists}},[t._v("Show all "+t._s(t.artists.total)+" artists")])])]):t._e(),t._v(" "),t.artists.total?t._e():a("p",[t._v("No results")])])],2):t._e(),t._v(" "),t.show_albums?a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Albums")])]),t._v(" "),a("template",{slot:"content"},[t._l(t.albums.items,function(t){return a("spotify-list-item-album",{key:t.id,attrs:{album:t}})}),t._v(" "),"album"===t.query.type?a("infinite-loading",{on:{infinite:t.search_albums_next}},[a("span",{attrs:{slot:"no-more"},slot:"no-more"},[t._v(".")])]):t._e()],2),t._v(" "),a("template",{slot:"footer"},[t.show_all_albums_button?a("nav",{staticClass:"level"},[a("p",{staticClass:"level-item"},[a("a",{staticClass:"button is-light is-small is-rounded",on:{click:t.open_search_albums}},[t._v("Show all "+t._s(t.albums.total)+" albums")])])]):t._e(),t._v(" "),t.albums.total?t._e():a("p",[t._v("No results")])])],2):t._e(),t._v(" "),t.show_playlists?a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Playlists")])]),t._v(" "),a("template",{slot:"content"},[t._l(t.playlists.items,function(t){return a("spotify-list-item-playlist",{key:t.id,attrs:{playlist:t}})}),t._v(" "),"playlist"===t.query.type?a("infinite-loading",{on:{infinite:t.search_playlists_next}},[a("span",{attrs:{slot:"no-more"},slot:"no-more"},[t._v(".")])]):t._e()],2),t._v(" "),a("template",{slot:"footer"},[t.show_all_playlists_button?a("nav",{staticClass:"level"},[a("p",{staticClass:"level-item"},[a("a",{staticClass:"button is-light is-small is-rounded",on:{click:t.open_search_playlists}},[t._v("Show all "+t._s(t.playlists.total)+" playlists")])])]):t._e(),t._v(" "),t.playlists.total?t._e():a("p",[t._v("No results")])])],2):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("span",{staticClass:"icon is-left"},[s("i",{staticClass:"mdi mdi-magnify"})])}]};var Ba=a("VU/8")(Na,Fa,!1,function(t){a("ntS2")},null,null).exports;e.a.use(Ut.a);var Va=new Ut.a({routes:[{path:"/",name:"PageQueue",component:Wt},{path:"/about",name:"About",component:aa},{path:"/now-playing",name:"Now playing",component:Gt},{path:"/music",redirect:"/music/browse"},{path:"/music/browse",name:"Browse",component:ls,meta:{show_progress:!0}},{path:"/music/browse/recently_added",name:"Browse Recently Added",component:cs,meta:{show_progress:!0}},{path:"/music/browse/recently_played",name:"Browse Recently Played",component:_s,meta:{show_progress:!0}},{path:"/music/artists",name:"Artists",component:ys,meta:{show_progress:!0}},{path:"/music/artists/:artist_id",name:"Artist",component:gs,meta:{show_progress:!0}},{path:"/music/albums",name:"Albums",component:xs,meta:{show_progress:!0}},{path:"/music/albums/:album_id",name:"Album",component:Ps,meta:{show_progress:!0}},{path:"/podcasts",name:"Podcasts",component:Ss,meta:{show_progress:!0}},{path:"/podcasts/:album_id",name:"Podcast",component:Rs,meta:{show_progress:!0}},{path:"/audiobooks",name:"Audiobooks",component:Ls,meta:{show_progress:!0}},{path:"/audiobooks/:album_id",name:"Audiobook",component:Bs,meta:{show_progress:!0}},{path:"/playlists",name:"Playlists",component:Ws,meta:{show_progress:!0}},{path:"/playlists/:playlist_id",name:"Playlist",component:Gs,meta:{show_progress:!0}},{path:"/search",redirect:"/search/library"},{path:"/search/library",name:"Search Library",component:Js},{path:"/music/spotify",name:"Spotify",component:ma,meta:{show_progress:!0}},{path:"/music/spotify/new-releases",name:"Spotify Browse New Releases",component:fa,meta:{show_progress:!0}},{path:"/music/spotify/featured-playlists",name:"Spotify Browse Featured Playlists",component:ba,meta:{show_progress:!0}},{path:"/music/spotify/artists/:artist_id",name:"Spotify Artist",component:xa,meta:{show_progress:!0}},{path:"/music/spotify/albums/:album_id",name:"Spotify Album",component:Sa,meta:{show_progress:!0}},{path:"/music/spotify/playlists/:user_id/:playlist_id",name:"Spotify Playlist",component:Ra,meta:{show_progress:!0}},{path:"/search/spotify",name:"Spotify Search",component:Ba}],scrollBehavior:function(t,s,a){return a?new r.a(function(t,s){setTimeout(function(){t(a)},500)}):{x:0,y:0}}});Va.beforeEach(function(t,s,a){p.state.show_burger_menu?(p.commit("SHOW_BURGER_MENU",!1),a(!1)):a()});var Oa=a("PJh5"),Da=a.n(Oa),Ha=a("SdwT");a.n(Ha)()(Da.a),e.a.filter("duration",function(t,s){return s?Da.a.duration(t).format(s):Da.a.duration(t).format("hh:*mm:ss")}),e.a.filter("time",function(t,s){return s?Da()(t).format(s):Da()(t).format()}),e.a.filter("timeFromNow",function(t,s){return Da()(t).fromNow(s)}),e.a.filter("number",function(t){return t.toLocaleString()});var za=a("zYko"),Wa=a.n(za);e.a.use(Wa.a,{color:"hsl(204, 86%, 53%)",failedColor:"red",height:"1px"});a("GK12"),a("JCHG"),a("Z7gM"),a("RKf/");e.a.config.productionTip=!1,new e.a({el:"#app",router:Va,store:p,components:{App:Rt},template:"<App/>"})},NhMS:function(t,s){},PYzs:function(t,s){},QhXh:function(t,s){},"RKf/":function(t,s){},UoeZ:function(t,s){},V4uA:function(t,s){},VqdC:function(t,s){},VrO6:function(t,s){},Xo9t:function(t,s){},YBai:function(t,s){},Z7gM:function(t,s){},ZBwk:function(t,s){},aEwK:function(t,s){},fqbX:function(t,s){},gNcJ:function(t,s){},iWn4:function(t,s){},kZj4:function(t,s){},lzC2:function(t,s){},mD7o:function(t,s){},mL6y:function(t,s){},mqPL:function(t,s){},ng1r:function(t,s){},ntS2:function(t,s){},o2oR:function(t,s){},pBbC:function(t,s){},pNGj:function(t,s){},pmh5:function(t,s){},qI6n:function(t,s){},"r/Bk":function(t,s){},"t+t1":function(t,s){},u995:function(t,s){},uslO:function(t,s,a){var i={"./af":"3CJN","./af.js":"3CJN","./ar":"3MVc","./ar-dz":"tkWw","./ar-dz.js":"tkWw","./ar-kw":"j8cJ","./ar-kw.js":"j8cJ","./ar-ly":"wPpW","./ar-ly.js":"wPpW","./ar-ma":"dURR","./ar-ma.js":"dURR","./ar-sa":"7OnE","./ar-sa.js":"7OnE","./ar-tn":"BEem","./ar-tn.js":"BEem","./ar.js":"3MVc","./az":"eHwN","./az.js":"eHwN","./be":"3hfc","./be.js":"3hfc","./bg":"lOED","./bg.js":"lOED","./bm":"hng5","./bm.js":"hng5","./bn":"aM0x","./bn.js":"aM0x","./bo":"w2Hs","./bo.js":"w2Hs","./br":"OSsP","./br.js":"OSsP","./bs":"aqvp","./bs.js":"aqvp","./ca":"wIgY","./ca.js":"wIgY","./cs":"ssxj","./cs.js":"ssxj","./cv":"N3vo","./cv.js":"N3vo","./cy":"ZFGz","./cy.js":"ZFGz","./da":"YBA/","./da.js":"YBA/","./de":"DOkx","./de-at":"8v14","./de-at.js":"8v14","./de-ch":"Frex","./de-ch.js":"Frex","./de.js":"DOkx","./dv":"rIuo","./dv.js":"rIuo","./el":"CFqe","./el.js":"CFqe","./en-au":"Sjoy","./en-au.js":"Sjoy","./en-ca":"Tqun","./en-ca.js":"Tqun","./en-gb":"hPuz","./en-gb.js":"hPuz","./en-ie":"ALEw","./en-ie.js":"ALEw","./en-il":"QZk1","./en-il.js":"QZk1","./en-nz":"dyB6","./en-nz.js":"dyB6","./eo":"Nd3h","./eo.js":"Nd3h","./es":"LT9G","./es-do":"7MHZ","./es-do.js":"7MHZ","./es-us":"INcR","./es-us.js":"INcR","./es.js":"LT9G","./et":"XlWM","./et.js":"XlWM","./eu":"sqLM","./eu.js":"sqLM","./fa":"2pmY","./fa.js":"2pmY","./fi":"nS2h","./fi.js":"nS2h","./fo":"OVPi","./fo.js":"OVPi","./fr":"tzHd","./fr-ca":"bXQP","./fr-ca.js":"bXQP","./fr-ch":"VK9h","./fr-ch.js":"VK9h","./fr.js":"tzHd","./fy":"g7KF","./fy.js":"g7KF","./gd":"nLOz","./gd.js":"nLOz","./gl":"FuaP","./gl.js":"FuaP","./gom-latn":"+27R","./gom-latn.js":"+27R","./gu":"rtsW","./gu.js":"rtsW","./he":"Nzt2","./he.js":"Nzt2","./hi":"ETHv","./hi.js":"ETHv","./hr":"V4qH","./hr.js":"V4qH","./hu":"xne+","./hu.js":"xne+","./hy-am":"GrS7","./hy-am.js":"GrS7","./id":"yRTJ","./id.js":"yRTJ","./is":"upln","./is.js":"upln","./it":"FKXc","./it.js":"FKXc","./ja":"ORgI","./ja.js":"ORgI","./jv":"JwiF","./jv.js":"JwiF","./ka":"RnJI","./ka.js":"RnJI","./kk":"j+vx","./kk.js":"j+vx","./km":"5j66","./km.js":"5j66","./kn":"gEQe","./kn.js":"gEQe","./ko":"eBB/","./ko.js":"eBB/","./ky":"6cf8","./ky.js":"6cf8","./lb":"z3hR","./lb.js":"z3hR","./lo":"nE8X","./lo.js":"nE8X","./lt":"/6P1","./lt.js":"/6P1","./lv":"jxEH","./lv.js":"jxEH","./me":"svD2","./me.js":"svD2","./mi":"gEU3","./mi.js":"gEU3","./mk":"Ab7C","./mk.js":"Ab7C","./ml":"oo1B","./ml.js":"oo1B","./mn":"CqHt","./mn.js":"CqHt","./mr":"5vPg","./mr.js":"5vPg","./ms":"ooba","./ms-my":"G++c","./ms-my.js":"G++c","./ms.js":"ooba","./mt":"oCzW","./mt.js":"oCzW","./my":"F+2e","./my.js":"F+2e","./nb":"FlzV","./nb.js":"FlzV","./ne":"/mhn","./ne.js":"/mhn","./nl":"3K28","./nl-be":"Bp2f","./nl-be.js":"Bp2f","./nl.js":"3K28","./nn":"C7av","./nn.js":"C7av","./pa-in":"pfs9","./pa-in.js":"pfs9","./pl":"7LV+","./pl.js":"7LV+","./pt":"ZoSI","./pt-br":"AoDM","./pt-br.js":"AoDM","./pt.js":"ZoSI","./ro":"wT5f","./ro.js":"wT5f","./ru":"ulq9","./ru.js":"ulq9","./sd":"fW1y","./sd.js":"fW1y","./se":"5Omq","./se.js":"5Omq","./si":"Lgqo","./si.js":"Lgqo","./sk":"OUMt","./sk.js":"OUMt","./sl":"2s1U","./sl.js":"2s1U","./sq":"V0td","./sq.js":"V0td","./sr":"f4W3","./sr-cyrl":"c1x4","./sr-cyrl.js":"c1x4","./sr.js":"f4W3","./ss":"7Q8x","./ss.js":"7Q8x","./sv":"Fpqq","./sv.js":"Fpqq","./sw":"DSXN","./sw.js":"DSXN","./ta":"+7/x","./ta.js":"+7/x","./te":"Nlnz","./te.js":"Nlnz","./tet":"gUgh","./tet.js":"gUgh","./tg":"5SNd","./tg.js":"5SNd","./th":"XzD+","./th.js":"XzD+","./tl-ph":"3LKG","./tl-ph.js":"3LKG","./tlh":"m7yE","./tlh.js":"m7yE","./tr":"k+5o","./tr.js":"k+5o","./tzl":"iNtv","./tzl.js":"iNtv","./tzm":"FRPF","./tzm-latn":"krPU","./tzm-latn.js":"krPU","./tzm.js":"FRPF","./ug-cn":"To0v","./ug-cn.js":"To0v","./uk":"ntHu","./uk.js":"ntHu","./ur":"uSe8","./ur.js":"uSe8","./uz":"XU1s","./uz-latn":"/bsm","./uz-latn.js":"/bsm","./uz.js":"XU1s","./vi":"0X8Q","./vi.js":"0X8Q","./x-pseudo":"e/KL","./x-pseudo.js":"e/KL","./yo":"YXlc","./yo.js":"YXlc","./zh-cn":"Vz2w","./zh-cn.js":"Vz2w","./zh-hk":"ZUyn","./zh-hk.js":"ZUyn","./zh-tw":"BbgG","./zh-tw.js":"BbgG"};function e(t){return a(n(t))}function n(t){var s=i[t];if(!(s+1))throw new Error("Cannot find module '"+t+"'.");return s}e.keys=function(){return Object.keys(i)},e.resolve=n,t.exports=e,e.id="uslO"},vPL1:function(t,s){},vg9s:function(t,s){},yLL2:function(t,s){}},["NHnr"]);
|
|
//# sourceMappingURL=app.js.map
|