owntone-server/htdocs/player/js/app.js
chme 503161bdd8 [htdocs] Rebuild player web interface v0.2.0
- Change build system to vue-cli v3
- Remove link to forked-daapd-web github repo in about-page
- "Add next" functionality in details modal dialogs
- Update spotify-web-api and adapt to new spotify playlist endpoints
- Decrease reconnection interval to 3s and display number of retries
- List genre
- List all tracks for an artist
- Change play-button in album/artist/playlist pages to shuffle-button
(starts playback shuffled)
- Change behaviour on clicking a track to turn shuffle mode off before
starting playback
- Show artwork in now playing page
2018-11-23 14:15:29 +01:00

2 lines
124 KiB
JavaScript

(function(t){function s(s){for(var e,l,o=s[0],r=s[1],c=s[2],d=0,m=[];d<o.length;d++)l=o[d],i[l]&&m.push(i[l][0]),i[l]=0;for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e]);u&&u(s);while(m.length)m.shift()();return n.push.apply(n,c||[]),a()}function a(){for(var t,s=0;s<n.length;s++){for(var a=n[s],e=!0,o=1;o<a.length;o++){var r=a[o];0!==i[r]&&(e=!1)}e&&(n.splice(s--,1),t=l(l.s=a[0]))}return t}var e={},i={app:0},n=[];function l(s){if(e[s])return e[s].exports;var a=e[s]={i:s,l:!1,exports:{}};return t[s].call(a.exports,a,a.exports,l),a.l=!0,a.exports}l.m=t,l.c=e,l.d=function(t,s,a){l.o(t,s)||Object.defineProperty(t,s,{enumerable:!0,get:a})},l.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.t=function(t,s){if(1&s&&(t=l(t)),8&s)return t;if(4&s&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(l.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&s&&"string"!=typeof t)for(var e in t)l.d(a,e,function(s){return t[s]}.bind(null,e));return a},l.n=function(t){var s=t&&t.__esModule?function(){return t["default"]}:function(){return t};return l.d(s,"a",s),s},l.o=function(t,s){return Object.prototype.hasOwnProperty.call(t,s)},l.p="/";var o=window["webpackJsonp"]=window["webpackJsonp"]||[],r=o.push.bind(o);o.push=s,o=o.slice();for(var c=0;c<o.length;c++)s(o[c]);var u=r;n.push([0,"chunk-vendors"]),a()})({0:function(t,s,a){t.exports=a("56d7")},"034f":function(t,s,a){"use strict";var e=a("64a9"),i=a.n(e);i.a},"0898":function(t,s,a){"use strict";var e=a("8d58"),i=a.n(e);i.a},"091f":function(t,s,a){},"0d88":function(t,s,a){},"0fc9":function(t,s,a){"use strict";var e=a("7a2a"),i=a.n(e);i.a},"10cd":function(t,s,a){},1253:function(t,s,a){},"12ad":function(t,s,a){},"12eb":function(t,s,a){"use strict";var e=a("f78e"),i=a.n(e);i.a},"17e2":function(t,s,a){},"1d43":function(t,s,a){"use strict";var e=a("2661"),i=a.n(e);i.a},"1f39":function(t,s,a){},"1fda":function(t,s,a){"use strict";var e=a("0d88"),i=a.n(e);i.a},"206f":function(t,s,a){},2282:function(t,s,a){"use strict";var e=a("6821"),i=a.n(e);i.a},2661:function(t,s,a){},2766:function(t,s,a){"use strict";var e=a("f5a8"),i=a.n(e);i.a},"2b2a":function(t,s,a){},"2faf":function(t,s,a){},"304f":function(t,s,a){"use strict";var e=a("17e2"),i=a.n(e);i.a},"37f9":function(t,s,a){},"39bf":function(t,s){},"3e72":function(t,s,a){},4657:function(t,s,a){},"465f":function(t,s,a){"use strict";var e=a("10cd"),i=a.n(e);i.a},4678:function(t,s,a){var e={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-nz":"6f50","./en-nz.js":"6f50","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-tw":"90ea","./zh-tw.js":"90ea"};function i(t){var s=n(t);return a(s)}function n(t){var s=e[t];if(!(s+1)){var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}return s}i.keys=function(){return Object.keys(e)},i.resolve=n,t.exports=i,i.id="4678"},4798:function(t,s,a){},"47d0":function(t,s,a){"use strict";var e=a("3e72"),i=a.n(e);i.a},4839:function(t,s,a){},"4ca2":function(t,s,a){},"4e4b":function(t,s,a){"use strict";var e=a("4657"),i=a.n(e);i.a},"50ca":function(t,s,a){},5223:function(t,s,a){"use strict";var e=a("67c9"),i=a.n(e);i.a},"54c5":function(t,s,a){},"56d7":function(t,s,a){"use strict";a.r(s);a("cadf"),a("551c"),a("097d");var e,i=a("a026"),n=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{attrs:{id:"app"}},[a("navbar-top"),a("vue-progress-bar",{staticClass:"fd-progress-bar"}),a("transition",{attrs:{name:"fade"}},[a("router-view",{directives:[{name:"show",rawName:"v-show",value:!t.show_burger_menu,expression:"!show_burger_menu"}]})],1),a("notifications",{directives:[{name:"show",rawName:"v-show",value:!t.show_burger_menu,expression:"!show_burger_menu"}]}),a("navbar-bottom",{directives:[{name:"show",rawName:"v-show",value:!t.show_burger_menu,expression:"!show_burger_menu"}]})],1)},l=[],o=(a("6762"),a("2fdb"),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"})])]),a("router-link",{staticClass:"navbar-item",attrs:{to:"/music","active-class":"is-active"}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-music"})])]),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.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(),a("router-link",{staticClass:"navbar-item",attrs:{to:"/search","active-class":"is-active"}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-magnify"})])]),a("div",{staticClass:"navbar-burger",class:{"is-active":t.show_burger_menu},on:{click:t.update_show_burger_menu}},[a("span"),a("span"),a("span")])],1),a("div",{staticClass:"navbar-menu",class:{"is-active":t.show_burger_menu}},[a("div",{staticClass:"navbar-start"}),a("div",{staticClass:"navbar-end"},[a("div",{staticClass:"navbar-item has-dropdown is-hoverable"},[t._m(0),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),a("div",{staticClass:"level-item fd-expanded"},[a("div",{staticClass:"fd-expanded"},[a("p",{staticClass:"heading"},[t._v("Volume")]),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)])])])]),a("hr",{staticClass:"navbar-divider"}),t._l(t.outputs,function(t){return a("nav-bar-item-output",{key:t.id,attrs:{output:t}})}),a("hr",{staticClass:"navbar-divider"}),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"}),a("player-button-play-pause",{staticClass:"button"}),a("player-button-next",{staticClass:"button"})],1)]),a("div",{staticClass:"level-item"},[a("div",{staticClass:"buttons has-addons"},[a("player-button-repeat",{staticClass:"button is-light"}),a("player-button-shuffle",{staticClass:"button is-light"}),a("player-button-consume",{staticClass:"button is-light"})],1)])])])])],2)]),a("div",{staticClass:"navbar-item has-dropdown is-hoverable"},[t._m(2),a("div",{staticClass:"navbar-dropdown is-right"},[a("a",{staticClass:"navbar-item",attrs:{href:"/admin.html"}},[t._v("Admin")]),a("hr",{staticClass:"navbar-divider"}),a("a",{staticClass:"navbar-item",on:{click:t.open_about}},[a("div",[a("p",{staticClass:"title is-7"},[t._v("forked-daapd")]),a("p",{staticClass:"subtitle is-7"},[t._v(t._s(t.config.version))])])])])])])])])}),r=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("a",{staticClass:"navbar-link"},[a("span",{staticClass:"icon is-hidden-mobile is-hidden-tablet-only"},[a("i",{staticClass:"mdi mdi-volume-high"})]),a("span",{staticClass:"is-hidden-desktop"},[t._v("Volume")])])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"level-item",staticStyle:{"flex-grow":"0"}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-18px mdi-volume-high"})])])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("a",{staticClass:"navbar-link"},[a("span",{staticClass:"icon is-hidden-mobile is-hidden-tablet-only"},[a("i",{staticClass:"mdi mdi-settings"})]),a("span",{staticClass:"is-hidden-desktop"},[t._v("Settings")])])}],c=a("bc3a"),u=a.n(c),d=a("ade3"),m=(a("20d6"),a("7514"),a("2f62")),p="UPDATE_CONFIG",_="UPDATE_LIBRARY_STATS",h="UPDATE_LIBRARY_AUDIOBOOKS_COUNT",f="UPDATE_LIBRARY_PODCASTS_COUNT",v="UPDATE_OUTPUTS",y="UPDATE_PLAYER_STATUS",b="UPDATE_QUEUE",g="UPDATE_SPOTIFY",C="SPOTIFY_NEW_RELEASES",k="SPOTIFY_FEATURED_PLAYLISTS",w="ADD_NOTIFICATION",x="DELETE_NOTIFICATION",$="ADD_RECENT_SEARCH",q="HIDE_SINGLES",j="SHOW_ONLY_NEXT_ITEMS",P="SHOW_BURGER_MENU";i["a"].use(m["a"]);var A=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:(e={},Object(d["a"])(e,p,function(t,s){t.config=s}),Object(d["a"])(e,_,function(t,s){t.library=s}),Object(d["a"])(e,h,function(t,s){t.audiobooks_count=s}),Object(d["a"])(e,f,function(t,s){t.podcasts_count=s}),Object(d["a"])(e,v,function(t,s){t.outputs=s}),Object(d["a"])(e,y,function(t,s){t.player=s}),Object(d["a"])(e,b,function(t,s){t.queue=s}),Object(d["a"])(e,g,function(t,s){t.spotify=s}),Object(d["a"])(e,C,function(t,s){t.spotify_new_releases=s}),Object(d["a"])(e,k,function(t,s){t.spotify_featured_playlists=s}),Object(d["a"])(e,w,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)}),Object(d["a"])(e,x,function(t,s){var a=t.notifications.list.indexOf(s);-1!==a&&t.notifications.list.splice(a,1)}),Object(d["a"])(e,$,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()}),Object(d["a"])(e,q,function(t,s){t.hide_singles=s}),Object(d["a"])(e,j,function(t,s){t.show_only_next_items=s}),Object(d["a"])(e,P,function(t,s){t.show_burger_menu=s}),e),actions:{add_notification:function(t,s){var a=t.commit,e=t.state,i={id:e.notifications.next_id++,type:s.type,text:s.text,topic:s.topic,timeout:s.timeout};a(w,i),s.timeout>0&&setTimeout(function(){a(x,i)},s.timeout)}}});u.a.interceptors.response.use(function(t){return t},function(t){return A.dispatch("add_notification",{text:"Request failed (status: "+t.request.status+" "+t.request.statusText+", url: "+t.request.responseURL+")",type:"danger"}),Promise.reject(t)});var S={config:function(){return u.a.get("/api/config")},library_stats:function(){return u.a.get("/api/library")},library_update:function(){return u.a.get("/api/update")},library_count:function(t){return u.a.get("/api/library/count?expression="+t)},queue:function(){return u.a.get("/api/queue")},queue_clear:function(){return u.a.put("/api/queue/clear")},queue_remove:function(t){return u.a.delete("/api/queue/items/"+t)},queue_move:function(t,s){return u.a.put("/api/queue/items/"+t+"?new_position="+s)},queue_add:function(t){return u.a.post("/api/queue/items/add?uris="+t)},queue_add_next:function(t){var s=0;return A.getters.now_playing&&A.getters.now_playing.id&&(s=A.getters.now_playing.position+1),u.a.post("/api/queue/items/add?uris="+t+"&position="+s)},player_status:function(){return u.a.get("/api/player")},player_play_uri:function(t,s){var a=this,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.queue_clear().then(function(){return a.player_shuffle(s).then(function(){return a.queue_add(t).then(function(){return a.player_play({position:e})})})})},player_play:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u.a.put("/api/player/play",void 0,{params:t})},player_playpos:function(t){return u.a.put("/api/player/play?position="+t)},player_playid:function(t){return u.a.put("/api/player/play?item_id="+t)},player_pause:function(){return u.a.put("/api/player/pause")},player_next:function(){return u.a.put("/api/player/next")},player_previous:function(){return u.a.put("/api/player/previous")},player_shuffle:function(t){var s=t?"true":"false";return u.a.put("/api/player/shuffle?state="+s)},player_consume:function(t){var s=t?"true":"false";return u.a.put("/api/player/consume?state="+s)},player_repeat:function(t){return u.a.put("/api/player/repeat?state="+t)},player_volume:function(t){return u.a.put("/api/player/volume?volume="+t)},player_output_volume:function(t,s){return u.a.put("/api/player/volume?volume="+s+"&output_id="+t)},player_seek:function(t){return u.a.put("/api/player/seek?position_ms="+t)},outputs:function(){return u.a.get("/api/outputs")},output_update:function(t,s){return u.a.put("/api/outputs/"+t,s)},library_artists:function(){return u.a.get("/api/library/artists?media_kind=music")},library_artist:function(t){return u.a.get("/api/library/artists/"+t)},library_albums:function(t){return t?u.a.get("/api/library/artists/"+t+"/albums"):u.a.get("/api/library/albums?media_kind=music")},library_album:function(t){return u.a.get("/api/library/albums/"+t)},library_album_tracks:function(t){return u.a.get("/api/library/albums/"+t+"/tracks")},library_genres:function(){return u.a.get("/api/library/genres")},library_genre:function(t){var s={type:"albums",media_kind:"music",expression:'genre is "'+t+'"'};return u.a.get("/api/search",{params:s})},library_artist_tracks:function(t){if(t){var s={type:"tracks",expression:'songartistid is "'+t+'"'};return u.a.get("/api/search",{params:s})}},library_podcasts:function(){return u.a.get("/api/library/albums?media_kind=podcast")},library_audiobooks:function(){return u.a.get("/api/library/albums?media_kind=audiobook")},library_playlists:function(){return u.a.get("/api/library/playlists")},library_playlist:function(t){return u.a.get("/api/library/playlists/"+t)},library_playlist_tracks:function(t){return u.a.get("/api/library/playlists/"+t+"/tracks")},search:function(t){return u.a.get("/api/search",{params:t})},spotify:function(){return u.a.get("/api/spotify")}},E=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})])]),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))]),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)])])])])},T=[],O=a("c7e3"),I=a.n(O),L={name:"NavBarItemOutput",components:{RangeSlider:I.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(){S.player_next()},set_volume:function(t){S.player_output_volume(this.output.id,t)},set_enabled:function(){var t={selected:!this.output.selected};S.output_update(this.output.id,t)}}},N=L,B=(a("a83f"),a("2877")),R=Object(B["a"])(N,E,T,!1,null,null,null);R.options.__file="NavBarItemOutput.vue";var M=R.exports,D=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("a",{on:{click:t.toggle_play_pause}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi",class:[t.icon_style,{"mdi-play":!t.is_playing,"mdi-pause":t.is_playing}]})])])},H=[],W={name:"PlayerButtonPlayPause",props:["icon_style"],computed:{is_playing:function(){return"play"===this.$store.state.player.state}},methods:{toggle_play_pause:function(){this.is_playing?S.player_pause():S.player_play()}}},z=W,U=(a("c2c2"),Object(B["a"])(z,D,H,!1,null,null,null));U.options.__file="PlayerButtonPlayPause.vue";var F=U.exports,G=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("a",{on:{click:t.play_next}},[t._m(0)])},Y=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-skip-forward"})])}],Q={name:"PlayerButtonNext",methods:{play_next:function(){S.player_next()}}},J=Q,V=(a("7004"),Object(B["a"])(J,G,Y,!1,null,null,null));V.options.__file="PlayerButtonNext.vue";var K=V.exports,X=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("a",{on:{click:t.play_previous}},[t._m(0)])},Z=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-skip-backward"})])}],tt={name:"PlayerButtonPrevious",methods:{play_previous:function(){S.player_previous()}}},st=tt,at=(a("12eb"),Object(B["a"])(st,X,Z,!1,null,null,null));at.options.__file="PlayerButtonPrevious.vue";var et=at.exports,it=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("a",{class:{"is-warning":t.is_shuffle},on:{click:t.toggle_shuffle_mode}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi",class:{"mdi-shuffle":t.is_shuffle,"mdi-shuffle-disabled":!t.is_shuffle}})])])},nt=[],lt={name:"PlayerButtonShuffle",computed:{is_shuffle:function(){return this.$store.state.player.shuffle}},methods:{toggle_shuffle_mode:function(){S.player_shuffle(!this.is_shuffle)}}},ot=lt,rt=(a("d7e6"),Object(B["a"])(ot,it,nt,!1,null,null,null));rt.options.__file="PlayerButtonShuffle.vue";var ct=rt.exports,ut=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("a",{class:{"is-warning":t.is_consume},on:{click:t.toggle_consume_mode}},[t._m(0)])},dt=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-fire"})])}],mt={name:"PlayerButtonConsume",computed:{is_consume:function(){return this.$store.state.player.consume}},methods:{toggle_consume_mode:function(){S.player_consume(!this.is_consume)}}},pt=mt,_t=(a("c1cb"),Object(B["a"])(pt,ut,dt,!1,null,null,null));_t.options.__file="PlayerButtonConsume.vue";var ht=_t.exports,ft=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("a",{class:{"is-warning":!t.is_repeat_off},on:{click:t.toggle_repeat_mode}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi",class:{"mdi-repeat":t.is_repeat_all,"mdi-repeat-once":t.is_repeat_single,"mdi-repeat-off":t.is_repeat_off}})])])},vt=[],yt=(a("14b9"),{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?S.player_repeat("single"):this.is_repeat_single?S.player_repeat("off"):S.player_repeat("all")}}}),bt=yt,gt=(a("d32e"),Object(B["a"])(bt,ft,vt,!1,null,null,null));gt.options.__file="PlayerButtonRepeat.vue";var Ct=gt.exports,kt={name:"NavbarTop",components:{NavBarItemOutput:M,PlayerButtonPlayPause:F,PlayerButtonNext:K,PlayerButtonPrevious:et,PlayerButtonShuffle:ct,PlayerButtonConsume:ht,PlayerButtonRepeat:Ct,RangeSlider:I.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(P,!this.show_burger_menu)},set_volume:function(t){S.player_volume(t)},open_about:function(){this.$store.commit(P,!1),this.$router.push({path:"/about"})}}},wt=kt,xt=(a("1fda"),Object(B["a"])(wt,o,r,!1,null,null,null));xt.options.__file="NavbarTop.vue";var $t=xt.exports,qt=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"})])]),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 ")])])]),a("player-button-play-pause",{staticClass:"navbar-item fd-margin-left-auto",attrs:{icon_style:"mdi-36px"}})],1)])},jt=[],Pt={name:"NavbarBottom",components:{PlayerButtonPlayPause:F},data:function(){return{}},computed:{state:function(){return this.$store.state.player},now_playing:function(){return this.$store.getters.now_playing}}},At=Pt,St=(a("8bee"),Object(B["a"])(At,qt,jt,!1,null,null,null));St.options.__file="NavbarBottom.vue";var Et=St.exports,Tt=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 ")])}))])])},Ot=[],It={name:"Notifications",components:{},data:function(){return{showNav:!1}},computed:{notifications:function(){return this.$store.state.notifications.list}},methods:{remove:function(t){this.$store.commit(x,t)}}},Lt=It,Nt=(a("cf45"),Object(B["a"])(Lt,Tt,Ot,!1,null,null,null));Nt.options.__file="Notifications.vue";var Bt=Nt.exports,Rt=a("d04d"),Mt=a.n(Rt),Dt={name:"App",components:{NavbarTop:$t,NavbarBottom:Et,Notifications:Bt},template:"<App/>",data:function(){return{token_timer_id:0,reconnect_attempts: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,e){if(s.meta.show_progress){if(void 0!==s.meta.progress){var i=s.meta.progress;t.$Progress.parseMeta(i)}t.$Progress.start()}e()}),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}),S.config().then(function(s){var a=s.data;t.$store.commit(p,a),t.$store.commit(q,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 Mt.a("ws://"+window.location.hostname+":"+t.$store.state.config.websocket_port,"notify",{reconnectInterval:3e3});s.onopen=function(){t.$store.dispatch("add_notification",{text:"Connection to server established",type:"primary",topic:"connection",timeout:2e3}),t.reconnect_attempts=0,s.send(JSON.stringify({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.reconnect_attempts++,t.$store.dispatch("add_notification",{text:"Connection lost. Reconnecting ... ("+t.reconnect_attempts+")",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;S.library_stats().then(function(s){var a=s.data;t.$store.commit(_,a)}),S.library_count("media_kind is audiobook").then(function(s){var a=s.data;t.$store.commit(h,a)}),S.library_count("media_kind is podcast").then(function(s){var a=s.data;t.$store.commit(f,a)})},update_outputs:function(){var t=this;S.outputs().then(function(s){var a=s.data;t.$store.commit(v,a.outputs)})},update_player_status:function(){var t=this;S.player_status().then(function(s){var a=s.data;t.$store.commit(y,a)})},update_queue:function(){var t=this;S.queue().then(function(s){var a=s.data;t.$store.commit(b,a)})},update_spotify:function(){var t=this;S.spotify().then(function(s){var a=s.data;t.$store.commit(g,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(P,!1)},show_burger_menu:function(){this.show_burger_menu?document.querySelector("html").classList.add("is-clipped"):document.querySelector("html").classList.remove("is-clipped")}}},Ht=Dt,Wt=(a("034f"),Object(B["a"])(Ht,n,l,!1,null,null,null));Wt.options.__file="App.vue";var zt=Wt.exports,Ut=a("8c4f"),Ft=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")]),a("p",{staticClass:"title is-4"},[t._v("Queue")])]),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"})]),a("span",[t._v("Hide previous")])]),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"})]),a("span",[t._v("Edit")])]),a("a",{staticClass:"button is-small",on:{click:t.queue_clear}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-delete-empty"})]),a("span",[t._v("Clear")])])])]),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,e){return a("list-item-queue-item",{key:s.id,attrs:{item:s,position:e,current_position:t.current_position,show_only_next_items:t.show_only_next_items,edit_mode:t.edit_mode}})}))],1)],2)},Gt=[],Yt=a("7412"),Qt=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(),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))]),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))])]),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))])]),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.edit_mode?t._e():a("a",{on:{click:function(s){t.show_details_modal=!0}}},[t._m(2)]),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 ")]),a("p",{staticClass:"subtitle"},[t._v("\n "+t._s(t.item.artist)+"\n ")]),a("div",{staticClass:"content is-small"},[a("p",[a("span",{staticClass:"heading"},[t._v("Album")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.item.album))])]),t.item.album_artist?a("p",[a("span",{staticClass:"heading"},[t._v("Album artist")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.item.album_artist))])]):t._e(),t.item.year>0?a("p",[a("span",{staticClass:"heading"},[t._v("Year")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.item.year))])]):t._e(),a("p",[a("span",{staticClass:"heading"},[t._v("Genre")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.item.genre))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Track / Disc")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.item.track_number)+" / "+t._s(t.item.disc_number))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Length")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t._f("duration")(t.item.length_ms)))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Path")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.item.path))])])])]),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"})]),a("span",[t._v("Remove")])]),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"})]),a("span",[t._v("Play")])])])])])],2)],1)]):t._e()},Jt=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon has-text-grey fd-is-movable handle"},[a("i",{staticClass:"mdi mdi-drag-horizontal mdi-18px"})])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon has-text-grey"},[a("i",{staticClass:"mdi mdi-delete mdi-18px"})])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon has-text-dark"},[a("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}],Vt=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")}}}),a("div",{staticClass:"modal-content fd-modal-card"},[t._t("modal-content")],2),a("button",{staticClass:"modal-close is-large",attrs:{"aria-label":"close"},on:{click:function(s){t.$emit("close")}}})]):t._e()])],1)},Kt=[],Xt={name:"ModalDialog",props:["show"]},Zt=Xt,ts=(a("4e4b"),Object(B["a"])(Zt,Vt,Kt,!1,null,null,null));ts.options.__file="ModalDialog.vue";var ss=ts.exports,as={name:"PartQueueItem",components:{ModalDialog:ss},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,S.queue_remove(this.item.id)},play:function(){this.show_details_modal=!1,S.player_play({item_id:this.item.id})}}},es=as,is=(a("b715"),Object(B["a"])(es,Qt,Jt,!1,null,null,null));is.options.__file="ListItemQueueItem.vue";var ns=is.exports,ls=a("1516"),os=a.n(ls),rs={name:"PageQueue",components:{ContentWithHeading:Yt["default"],ListItemQueueItem:ns,draggable:os.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(){S.queue_clear()},update_show_next_items:function(t){this.$store.commit(j,!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],e=a.position+(t.newIndex-t.oldIndex);e!==s&&S.queue_move(a.id,e)}}},cs=rs,us=(a("c905"),Object(B["a"])(cs,Ft,Gt,!1,null,null,null));us.options.__file="PageQueue.vue";var ds=us.exports,ms=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("section",{staticClass:"hero fd-is-fullheight"},[a("div",{staticClass:"hero-head fd-has-padding-left-right"},[a("div",{staticClass:"container has-text-centered fd-has-margin-top"},[a("h1",{staticClass:"title is-4"},[t._v("\n "+t._s(t.now_playing.title)+"\n ")]),a("h2",{staticClass:"title is-6"},[t._v("\n "+t._s(t.now_playing.artist)+"\n ")]),a("h3",{staticClass:"subtitle is-6"},[t._v("\n "+t._s(t.now_playing.album)+"\n ")])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:t.artwork_visible,expression:"artwork_visible"}],staticClass:"hero-body fd-is-fullheight-body has-text-centered"},[a("img",{staticClass:"fd-has-shadow fd-image-fullheight",attrs:{src:t.artwork_url},on:{load:t.artwork_loaded,error:t.artwork_error}})]),a("div",{staticClass:"hero-foot fd-has-padding-left-right"},[a("div",{staticClass:"container has-text-centered fd-has-margin-bottom"},[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),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)))])]),a("div",{staticClass:"buttons has-addons is-centered"},[a("player-button-previous",{staticClass:"button is-medium"}),a("player-button-play-pause",{staticClass:"button is-medium",attrs:{icon_style:"mdi-36px"}}),a("player-button-next",{staticClass:"button is-medium"}),a("player-button-repeat",{staticClass:"button is-medium is-light"}),a("player-button-shuffle",{staticClass:"button is-medium is-light"}),a("player-button-consume",{staticClass:"button is-medium is-light"})],1)])])])},ps=[],_s=(a("f559"),{name:"PageNowPlaying",components:{PlayerButtonPlayPause:F,PlayerButtonNext:K,PlayerButtonPrevious:et,PlayerButtonShuffle:ct,PlayerButtonConsume:ht,PlayerButtonRepeat:Ct,RangeSlider:I.a},data:function(){return{item_progress_ms:0,interval_id:0,artwork_visible:!1}},created:function(){var t=this;this.item_progress_ms=this.state.item_progress_ms,S.player_status().then(function(s){var a=s.data;t.$store.commit(y,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},artwork_url:function(){return this.now_playing.artwork_url&&this.now_playing.artwork_url.startsWith("/")?this.now_playing.artwork_url+"?maxwidth=600&maxheight=600":this.now_playing.artwork_url}},methods:{tick:function(){this.item_progress_ms+=1e3},seek:function(t){var s=this;S.player_seek(t).catch(function(){s.item_progress_ms=s.state.item_progress_ms})},artwork_loaded:function(){this.artwork_visible=!0},artwork_error:function(){this.artwork_visible=!1}},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))}}}),hs=_s,fs=(a("64e8"),Object(B["a"])(hs,ms,ps,!1,null,null,null));fs.options.__file="PageNowPlaying.vue";var vs=fs.exports,ys=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("tabs-music"),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Recently added")]),a("p",{staticClass:"heading"},[t._v("albums")])]),a("template",{slot:"content"},t._l(t.recently_added.items,function(t){return a("list-item-album",{key:t.id,attrs:{album:t}})})),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),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Recently played")]),a("p",{staticClass:"heading"},[t._v("tracks")])]),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}})})),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)},bs=[],gs=(a("386d"),a("ac6a"),a("5df3"),function(t){return{beforeRouteEnter:function(s,a,e){t.load(s).then(function(s){e(function(a){return t.set(a,s)})})},beforeRouteUpdate:function(s,a,e){var i=this;t.load(s).then(function(s){t.set(i,s),e()})}}}),Cs=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"})]),a("span",{},[t._v("Browse")])])]),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"})]),a("span",{},[t._v("Artists")])])]),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"})]),a("span",{},[t._v("Albums")])])]),a("router-link",{attrs:{tag:"li",to:"/music/genres","active-class":"is-active"}},[a("a",[a("span",{staticClass:"icon is-small"},[a("i",{staticClass:"mdi mdi-speaker"})]),a("span",{},[t._v("Genres")])])]),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"})]),a("span",{},[t._v("Spotify")])])]):t._e()],1)])])])])])},ks=[],ws={name:"TabsMusic",computed:{spotify_enabled:function(){return this.$store.state.spotify.webapi_token_valid}}},xs=ws,$s=(a("5223"),Object(B["a"])(xs,Cs,ks,!1,null,null,null));$s.options.__file="TabsMusic.vue";var qs=$s.exports,js=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))]),a("h2",{staticClass:"subtitle is-7 has-text-grey"},[a("b",[t._v(t._s(t.album.artist))])])]),a("div",{staticClass:"media-right"},[a("a",{on:{click:function(s){t.show_details_modal=!0}}},[t._m(0)]),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))])]),a("div",{staticClass:"content is-small"},[t.album.artist&&"audiobook"!==t.media_kind?a("p",[a("span",{staticClass:"heading"},[t._v("Album artist")]),a("a",{staticClass:"title is-6 has-text-link",on:{click:t.open_artist}},[t._v(t._s(t.album.artist))])]):t._e(),t.album.artist&&"audiobook"===t.media_kind?a("p",[a("span",{staticClass:"heading"},[t._v("Album artist")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.album.artist))])]):t._e(),a("p",[a("span",{staticClass:"heading"},[t._v("Tracks")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.album.track_count))])])])]),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"})]),a("span",[t._v("Add")])]),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add_next}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-play mdi-18px"})]),a("span",[t._v("Add Next")])]),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"})]),a("span",[t._v("Play")])])])])])],2)],1)])},Ps=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon has-text-dark"},[a("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}],As={name:"ListItemAlbum",components:{ModalDialog:ss},props:["album","media_kind"],data:function(){return{show_details_modal:!1}},methods:{play:function(){this.show_details_modal=!1,S.player_play_uri(this.album.uri,!1)},queue_add:function(){var t=this;this.show_details_modal=!1,S.queue_add(this.album.uri).then(function(){return t.$store.dispatch("add_notification",{text:"Album tracks appended to queue",type:"info",timeout:2e3})})},queue_add_next:function(){var t=this;this.show_details_modal=!1,S.queue_add_next(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})}}},Ss=As,Es=(a("886e"),Object(B["a"])(Ss,js,Ps,!1,null,null,null));Es.options.__file="ListItemAlbum.vue";var Ts=Es.exports,Os=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))]),a("h2",{staticClass:"subtitle is-7 has-text-grey"},[a("b",[t._v(t._s(t.track.artist))])]),a("h2",{staticClass:"subtitle is-7 has-text-grey"},[t._v(t._s(t.track.album))])]),a("div",{staticClass:"media-right"},[a("a",{on:{click:function(s){t.show_details_modal=!0}}},[t._m(0)]),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 ")]),a("p",{staticClass:"subtitle"},[t._v("\n "+t._s(t.track.artist)+"\n ")]),a("div",{staticClass:"content is-small"},[a("p",[a("span",{staticClass:"heading"},[t._v("Album")]),a("a",{staticClass:"title is-6 has-text-link",on:{click:t.open_album}},[t._v(t._s(t.track.album))])]),t.track.album_artist&&"audiobook"!==t.track.media_kind?a("p",[a("span",{staticClass:"heading"},[t._v("Album artist")]),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.track.date_released?a("p",[a("span",{staticClass:"heading"},[t._v("Release date")]),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")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.track.year))])]):t._e(),a("p",[a("span",{staticClass:"heading"},[t._v("Genre")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.track.genre))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Track / Disc")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.track.track_number)+" / "+t._s(t.track.disc_number))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Length")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t._f("duration")(t.track.length_ms)))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Path")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.track.path))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Type")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.track.media_kind)+" - "+t._s(t.track.data_kind))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Added at")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t._f("time")(t.track.time_added,"L LT")))])])])]),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"})]),a("span",[t._v("Add")])]),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add_next}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-play mdi-18px"})]),a("span",[t._v("Add Next")])]),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"})]),a("span",[t._v("Play")])])])])])],2)],1)])},Is=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon has-text-dark"},[a("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}],Ls={name:"PartTrack",components:{ModalDialog:ss},props:["track","position","context_uri"],data:function(){return{show_details_modal:!1}},methods:{play:function(){this.show_details_modal=!1,S.player_play_uri(this.context_uri,!1,this.position)},play_track:function(){this.show_details_modal=!1,S.player_play_uri(this.track.uri,!1)},queue_add:function(){var t=this;this.show_details_modal=!1,S.queue_add(this.track.uri).then(function(){return t.$store.dispatch("add_notification",{text:"Track appended to queue",type:"info",timeout:2e3})})},queue_add_next:function(){var t=this;this.show_details_modal=!1,S.queue_add_next(this.track.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.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})}}},Ns=Ls,Bs=(a("1d43"),Object(B["a"])(Ns,Os,Is,!1,null,null,null));Bs.options.__file="ListItemTrack.vue";var Rs=Bs.exports,Ms={load:function(t){return Promise.all([S.search({type:"album",expression:"time_added after 8 weeks ago having track_count > 3 order by time_added desc",limit:3}),S.search({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}},Ds={name:"PageBrowse",mixins:[gs(Ms)],components:{ContentWithHeading:Yt["default"],TabsMusic:qs,ListItemAlbum:Ts,ListItemTrack:Rs},data:function(){return{recently_added:{},recently_played:{}}},methods:{open_browse:function(t){this.$router.push({path:"/music/browse/"+t})}}},Hs=Ds,Ws=(a("7aaf"),Object(B["a"])(Hs,ys,bs,!1,null,null,null));Ws.options.__file="PageBrowse.vue";var zs=Ws.exports,Us=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("tabs-music"),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Recently added")]),a("p",{staticClass:"heading"},[t._v("albums")])]),a("template",{slot:"content"},t._l(t.recently_added.items,function(t){return a("list-item-album",{key:t.id,attrs:{album:t}})}))],2)],1)},Fs=[],Gs={load:function(t){return S.search({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}},Ys={name:"PageBrowseType",mixins:[gs(Gs)],components:{ContentWithHeading:Yt["default"],TabsMusic:qs,ListItemAlbum:Ts},data:function(){return{recently_added:{}}}},Qs=Ys,Js=(a("0898"),Object(B["a"])(Qs,Us,Fs,!1,null,null,null));Js.options.__file="PageBrowseRecentlyAdded.vue";var Vs=Js.exports,Ks=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("tabs-music"),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Recently played")]),a("p",{staticClass:"heading"},[t._v("tracks")])]),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}})}))],2)],1)},Xs=[],Zs={load:function(t){return S.search({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}},ta={name:"PageBrowseType",mixins:[gs(Zs)],components:{ContentWithHeading:Yt["default"],TabsMusic:qs,ListItemTrack:Rs},data:function(){return{recently_played:{}}}},sa=ta,aa=(a("6fbb"),Object(B["a"])(sa,Ks,Xs,!1,null,null,null));aa.options.__file="PageBrowseRecentlyPlayed.vue";var ea=aa.exports,ia=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("tabs-music"),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Artists")]),a("p",{staticClass:"heading"},[t._v(t._s(t.artists.total)+" artists")])]),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"})]),a("span",[t._v("Hide singles")])])]),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)},na=[],la=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))])]),a("div",{staticClass:"media-right"},[a("a",{on:{click:function(s){t.show_details_modal=!0}}},[t._m(0)]),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))])]),a("div",{staticClass:"content is-small"},[a("p",[a("span",{staticClass:"heading"},[t._v("Albums")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.artist.album_count))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Tracks")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.artist.track_count))])])])]),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"})]),a("span",[t._v("Add")])]),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add_next}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-play mdi-18px"})]),a("span",[t._v("Add Next")])]),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"})]),a("span",[t._v("Play")])])])])])],2)],1)])},oa=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon has-text-dark"},[a("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}],ra={name:"PartArtist",components:{ModalDialog:ss},props:["artist"],data:function(){return{show_details_modal:!1}},methods:{play:function(){this.show_details_modal=!1,S.player_play_uri(this.artist.uri,!1)},queue_add:function(){var t=this;this.show_details_modal=!1,S.queue_add(this.artist.uri).then(function(){return t.$store.dispatch("add_notification",{text:"Artist tracks appended to queue",type:"info",timeout:2e3})})},queue_add_next:function(){var t=this;this.show_details_modal=!1,S.queue_add_next(this.artist.uri).then(function(){return t.$store.dispatch("add_notification",{text:"Album 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})}}},ca=ra,ua=(a("8da3"),Object(B["a"])(ca,la,oa,!1,null,null,null));ua.options.__file="ListItemArtist.vue";var da=ua.exports,ma={load:function(t){return S.library_artists()},set:function(t,s){t.artists=s.data}},pa={name:"PageArtists",mixins:[gs(ma)],components:{ContentWithHeading:Yt["default"],TabsMusic:qs,ListItemArtist:da},data:function(){return{artists:{}}},computed:{hide_singles:function(){return this.$store.state.hide_singles}},methods:{update_hide_singles:function(t){this.$store.commit(q,!this.hide_singles)}}},_a=pa,ha=(a("da86"),Object(B["a"])(_a,ia,na,!1,null,null,null));ha.options.__file="PageArtists.vue";var fa=ha.exports,va=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))])]),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-shuffle"})]),a("span",[t._v("Shuffle")])])]),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[t._v(t._s(t.artist.album_count)+" albums | "),a("a",{staticClass:"has-text-link",on:{click:t.open_tracks}},[t._v(t._s(t.artist.track_count)+" tracks")])]),t._l(t.albums.items,function(t){return a("list-item-album",{key:t.id,attrs:{album:t}})})],2)],2)},ya=[],ba={load:function(t){return Promise.all([S.library_artist(t.params.artist_id),S.library_albums(t.params.artist_id)])},set:function(t,s){t.artist=s[0].data,t.albums=s[1].data}},ga={name:"PageArtist",mixins:[gs(ba)],components:{ContentWithHeading:Yt["default"],ListItemAlbum:Ts},data:function(){return{artist:{},albums:{}}},methods:{open_tracks:function(){this.$router.push({path:"/music/artists/"+this.artist.id+"/tracks"})},play:function(){S.player_play_uri(this.albums.items.map(function(t){return t.uri}).join(","),!0)}}},Ca=ga,ka=(a("e744"),Object(B["a"])(Ca,va,ya,!1,null,null,null));ka.options.__file="PageArtist.vue";var wa=ka.exports,xa=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("tabs-music"),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Albums")]),a("p",{staticClass:"heading"},[t._v(t._s(t.albums.total)+" albums")])]),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"})]),a("span",[t._v("Hide singles")])])]),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)},$a=[],qa={load:function(t){return S.library_albums()},set:function(t,s){t.albums=s.data}},ja={name:"PageAlbums",mixins:[gs(qa)],components:{ContentWithHeading:Yt["default"],TabsMusic:qs,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(q,!this.hide_singles)}}},Pa=ja,Aa=(a("304f"),Object(B["a"])(Pa,xa,$a,!1,null,null,null));Aa.options.__file="PageAlbums.vue";var Sa=Aa.exports,Ea=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))]),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))])]),a("template",{slot:"heading-right"},[a("div",{staticClass:"buttons is-centered"},[a("a",{staticClass:"button is-small is-dark is-rounded",on:{click:t.play}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-shuffle"})]),a("span",[t._v("Shuffle")])])])]),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[t._v(t._s(t.album.track_count)+" tracks")]),t._l(t.tracks,function(s,e){return a("list-item-track",{key:s.id,attrs:{track:s,position:e,context_uri:t.album.uri}})})],2)],2)},Ta=[],Oa={load:function(t){return Promise.all([S.library_album(t.params.album_id),S.library_album_tracks(t.params.album_id)])},set:function(t,s){t.album=s[0].data,t.tracks=s[1].data.items}},Ia={name:"PageAlbum",mixins:[gs(Oa)],components:{ContentWithHeading:Yt["default"],ListItemTrack:Rs},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(){S.player_play_uri(this.album.uri,!0)}}},La=Ia,Na=(a("47d0"),Object(B["a"])(La,Ea,Ta,!1,null,null,null));Na.options.__file="PageAlbum.vue";var Ba=Na.exports,Ra=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("tabs-music"),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Genres")]),a("p",{staticClass:"heading"},[t._v(t._s(t.genres.total)+" genres")])]),a("template",{slot:"content"},t._l(t.genres.items,function(t){return a("list-item-genre",{key:t.name,attrs:{genre:t}})}))],2)],1)},Ma=[],Da=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_genre}},[a("h1",{staticClass:"title is-6"},[t._v(t._s(t.genre.name))])]),a("div",{staticClass:"media-right"},[a("a",{on:{click:function(s){t.show_details_modal=!0}}},[t._m(0)]),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_genre}},[t._v(t._s(t.genre.name))])])]),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-12px"})]),a("span",[t._v("Add")])]),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add_next}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-play mdi-12px"})]),a("span",[t._v("Add Next")])]),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.play}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-play mdi-12px"})]),a("span",[t._v("Play")])])])])])],2)],1)])},Ha=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon has-text-dark"},[a("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}],Wa=(a("7f7f"),{name:"PartGenre",components:{ModalDialog:ss},props:["genre"],data:function(){return{show_details_modal:!1}},methods:{play:function(){this.show_details_modal=!1,S.library_genre(this.genre.name).then(function(t){var s=t.data;return S.player_play_uri(s.albums.items.map(function(t){return t.uri}).join(","),!1)})},queue_add:function(){var t=this;this.show_details_modal=!1,S.library_genre(this.genre.name).then(function(s){var a=s.data;return S.queue_add(a.albums.items.map(function(t){return t.uri}).join(",")).then(function(){return t.$store.dispatch("add_notification",{text:"Genre albums appended to queue",type:"info",timeout:1500})})})},queue_add_next:function(){var t=this;this.show_details_modal=!1,S.library_genre(this.genre.name).then(function(s){var a=s.data;return S.queue_add_next(a.albums.items.map(function(t){return t.uri}).join(",")).then(function(){return t.$store.dispatch("add_notification",{text:"Genre albums playing next",type:"info",timeout:1500})})})},open_genre:function(){this.show_details_modal=!1,this.$router.push({name:"Genre",params:{genre:this.genre.name}})}}}),za=Wa,Ua=(a("673c"),Object(B["a"])(za,Da,Ha,!1,null,null,null));Ua.options.__file="ListItemGenre.vue";var Fa=Ua.exports,Ga={load:function(t){return S.library_genres()},set:function(t,s){t.genres=s.data}},Ya={name:"PageGenres",mixins:[gs(Ga)],components:{ContentWithHeading:Yt["default"],TabsMusic:qs,ListItemGenre:Fa},data:function(){return{genres:{}}},methods:{}},Qa=Ya,Ja=(a("2282"),Object(B["a"])(Qa,Ra,Ma,!1,null,null,null));Ja.options.__file="PageGenres.vue";var Va=Ja.exports,Ka=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("tabs-music"),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v(t._s(t.name))]),a("p",{staticClass:"heading"},[t._v(t._s(t.genreAlbums.total)+" albums")])]),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-shuffle"})]),a("span",[t._v("Shuffle")])])]),a("template",{slot:"content"},t._l(t.genreAlbums.items,function(s){return a("list-item-albums",{key:s.id,attrs:{album:s,links:t.links}})}))],2)],1)},Xa=[],Za={load:function(t){return S.library_genre(t.params.genre)},set:function(t,s){t.name=t.$route.params.genre,t.genreAlbums=s.data.albums;var a,e=0,i=null;for(a=0;a<t.genreAlbums.items.length;a++){var n=t.genreAlbums.items[a].name_sort.charAt(0).toUpperCase();if(n!==i){var l={};l.n=n,l.a="idx_nav_"+e,t.links.push(l),e++,i=n}}}},te={name:"PageGenre",mixins:[gs(Za)],components:{ContentWithHeading:Yt["default"],TabsMusic:qs,ListItemAlbums:Ts},data:function(){return{name:"",genreAlbums:{},links:[]}},methods:{play:function(){S.player_play_uri(this.genreAlbums.items.map(function(t){return t.uri}).join(","),!0)}}},se=te,ae=(a("2766"),Object(B["a"])(se,Ka,Xa,!1,null,null,null));ae.options.__file="PageGenre.vue";var ee=ae.exports,ie=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(t._s(t.artist.name))])]),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-shuffle"})]),a("span",[t._v("Shuffle")])])]),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[a("a",{staticClass:"has-text-link",on:{click:t.open_artist}},[t._v(t._s(t.artist.album_count)+" albums")]),t._v(" | "+t._s(t.artist.track_count)+" tracks")]),t._l(t.tracks.items,function(t,s){return a("list-item-track",{key:t.id,attrs:{track:t,position:s,context_uri:t.uri}})})],2)],2)],1)},ne=[],le={load:function(t){return Promise.all([S.library_artist(t.params.artist_id),S.library_artist_tracks(t.params.artist_id)])},set:function(t,s){t.artist=s[0].data,t.tracks=s[1].data.tracks}},oe={name:"PageTracks",mixins:[gs(le)],components:{ContentWithHeading:Yt["default"],ListItemTrack:Rs},data:function(){return{artist:{},tracks:{}}},methods:{open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/music/artists/"+this.artist.id})},play:function(){S.player_play_uri(this.tracks.items.map(function(t){return t.uri}).join(","),!0)}}},re=oe,ce=(a("f730"),Object(B["a"])(re,ie,ne,!1,null,null,null));ce.options.__file="PageTracks.vue";var ue=ce.exports,de=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")]),a("p",{staticClass:"heading"},[t._v(t._s(t.albums.total)+" podcasts")])]),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)},me=[],pe={load:function(t){return S.library_podcasts()},set:function(t,s){t.albums=s.data}},_e={name:"PagePodcasts",mixins:[gs(pe)],components:{ContentWithHeading:Yt["default"],ListItemAlbum:Ts},data:function(){return{albums:{}}}},he=_e,fe=(a("c9e7"),Object(B["a"])(he,de,me,!1,null,null,null));fe.options.__file="PagePodcasts.vue";var ve=fe.exports,ye=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))])]),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"})]),a("span",[t._v("Play")])])]),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[t._v(t._s(t.album.track_count)+" tracks")]),t._l(t.tracks,function(s,e){return a("list-item-track",{key:s.id,attrs:{track:s,position:e,context_uri:t.album.uri}})})],2)],2)},be=[],ge={load:function(t){return Promise.all([S.library_album(t.params.album_id),S.library_album_tracks(t.params.album_id)])},set:function(t,s){t.album=s[0].data,t.tracks=s[1].data.items}},Ce={name:"PagePodcast",mixins:[gs(ge)],components:{ContentWithHeading:Yt["default"],ListItemTrack:Rs},data:function(){return{album:{},tracks:[]}},methods:{play:function(){S.player_play_uri(this.album.uri,!1)}}},ke=Ce,we=(a("a1ee"),Object(B["a"])(ke,ye,be,!1,null,null,null));we.options.__file="PagePodcast.vue";var xe=we.exports,$e=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")]),a("p",{staticClass:"heading"},[t._v(t._s(t.albums.total)+" audiobooks")])]),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)},qe=[],je={load:function(t){return S.library_audiobooks()},set:function(t,s){t.albums=s.data}},Pe={name:"PageAudiobooks",mixins:[gs(je)],components:{ContentWithHeading:Yt["default"],ListItemAlbum:Ts},data:function(){return{albums:{}}}},Ae=Pe,Se=(a("f579"),Object(B["a"])(Ae,$e,qe,!1,null,null,null));Se.options.__file="PageAudiobooks.vue";var Ee=Se.exports,Te=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))]),a("div",{staticClass:"title is-4 has-text-grey has-text-weight-normal"},[t._v(t._s(t.album.artist))])]),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"})]),a("span",[t._v("Play")])])]),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[t._v(t._s(t.album.track_count)+" tracks")]),t._l(t.tracks,function(s,e){return a("list-item-track",{key:s.id,attrs:{track:s,position:e,context_uri:t.album.uri}})})],2)],2)},Oe=[],Ie={load:function(t){return Promise.all([S.library_album(t.params.album_id),S.library_album_tracks(t.params.album_id)])},set:function(t,s){t.album=s[0].data,t.tracks=s[1].data.items}},Le={name:"PageAudiobook",mixins:[gs(Ie)],components:{ContentWithHeading:Yt["default"],ListItemTrack:Rs},data:function(){return{album:{},tracks:[]}},methods:{play:function(){S.player_play_uri(this.album.uri,!1)}}},Ne=Le,Be=(a("595b"),Object(B["a"])(Ne,Te,Oe,!1,null,null,null));Be.options.__file="PageAudiobook.vue";var Re=Be.exports,Me=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")]),a("p",{staticClass:"heading"},[t._v(t._s(t.playlists.total)+" playlists")])]),a("template",{slot:"content"},t._l(t.playlists.items,function(t){return a("list-item-playlist",{key:t.id,attrs:{playlist:t}})}))],2)},De=[],He=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))])]),a("div",{staticClass:"media-right"},[a("a",{on:{click:function(s){t.show_details_modal=!0}}},[t._m(0)]),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))])]),a("div",{staticClass:"content is-small"},[a("p",[a("span",{staticClass:"heading"},[t._v("Path")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.playlist.path))])])])]),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"})]),a("span",[t._v("Add")])]),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add_next}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-play mdi-18px"})]),a("span",[t._v("Add Next")])]),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"})]),a("span",[t._v("Play")])])])])])],2)],1)])},We=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon has-text-dark"},[a("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}],ze={name:"PartPlaylist",components:{ModalDialog:ss},props:["playlist"],data:function(){return{show_details_modal:!1}},methods:{play:function(){this.show_details_modal=!1,S.player_play_uri(this.playlist.uri,!1)},queue_add:function(){var t=this;this.show_details_modal=!1,S.queue_add(this.playlist.uri).then(function(){return t.$store.dispatch("add_notification",{text:"Playlist appended to queue",type:"info",timeout:2e3})})},queue_add_next:function(){var t=this;this.show_details_modal=!1,S.queue_add_next(this.playlist.uri).then(function(){return t.$store.dispatch("add_notification",{text:"Album tracks appended to queue",type:"info",timeout:2e3})})},open_playlist:function(){this.show_details_modal=!1,this.$router.push({path:"/playlists/"+this.playlist.id})}}},Ue=ze,Fe=(a("689e"),Object(B["a"])(Ue,He,We,!1,null,null,null));Fe.options.__file="ListItemPlaylist.vue";var Ge=Fe.exports,Ye={load:function(t){return S.library_playlists()},set:function(t,s){t.playlists=s.data}},Qe={name:"PagePlaylists",mixins:[gs(Ye)],components:{ContentWithHeading:Yt["default"],TabsMusic:qs,ListItemPlaylist:Ge},data:function(){return{playlists:{}}}},Je=Qe,Ve=(a("c14a"),Object(B["a"])(Je,Me,De,!1,null,null,null));Ve.options.__file="PagePlaylists.vue";var Ke=Ve.exports,Xe=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))])]),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-shuffle"})]),a("span",[t._v("Shuffle")])])]),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[t._v(t._s(t.tracks.length)+" tracks")]),t._l(t.tracks,function(s,e){return a("list-item-track",{key:s.id,attrs:{track:s,position:e,context_uri:t.playlist.uri}})})],2)],2)},Ze=[],ti={load:function(t){return Promise.all([S.library_playlist(t.params.playlist_id),S.library_playlist_tracks(t.params.playlist_id)])},set:function(t,s){t.playlist=s[0].data,t.tracks=s[1].data.items}},si={name:"PagePlaylist",mixins:[gs(ti)],components:{ContentWithHeading:Yt["default"],ListItemTrack:Rs},data:function(){return{playlist:{},tracks:[]}},methods:{play:function(){S.player_play_uri(this.playlist.uri,!0)}}},ai=si,ei=(a("81ff"),Object(B["a"])(ai,Xe,Ze,!1,null,null,null));ei.options.__file="PagePlaylist.vue";var ii=ei.exports,ni=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._m(0)])])]),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))])}))])])])]),a("tabs-search"),t.show_tracks?a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Tracks")])]),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}})})),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.tracks.total?t._e():a("p",[t._v("No results")])])],2):t._e(),t.show_artists?a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Artists")])]),a("template",{slot:"content"},t._l(t.artists.items,function(t){return a("list-item-artist",{key:t.id,attrs:{artist:t}})})),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.artists.total?t._e():a("p",[t._v("No results")])])],2):t._e(),t.show_albums?a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Albums")])]),a("template",{slot:"content"},t._l(t.albums.items,function(t){return a("list-item-album",{key:t.id,attrs:{album:t}})})),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.albums.total?t._e():a("p",[t._v("No results")])])],2):t._e(),t.show_playlists?a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Playlists")])]),a("template",{slot:"content"},t._l(t.playlists.items,function(t){return a("list-item-playlist",{key:t.id,attrs:{playlist:t}})})),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.playlists.total?t._e():a("p",[t._v("No results")])])],2):t._e()],1)},li=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon is-left"},[a("i",{staticClass:"mdi mdi-magnify"})])}],oi=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"})]),a("span",{},[t._v("Library")])])]),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"})]),a("span",{},[t._v("Spotify")])])])],1)])])])])]):t._e()},ri=[],ci={name:"TabsSearch",computed:{spotify_enabled:function(){return this.$store.state.spotify.webapi_token_valid}}},ui=ci,di=(a("9142"),Object(B["a"])(ui,oi,ri,!1,null,null,null));di.options.__file="TabsSearch.vue";var mi=di.exports,pi={name:"PageSearch",components:{ContentWithHeading:Yt["default"],TabsSearch:mi,ListItemTrack:Rs,ListItemArtist:da,ListItemAlbum:Ts,ListItemPlaylist:Ge},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),S.search(a).then(function(t){var e=t.data;s.tracks=e.tracks?e.tracks:{items:[],total:0},s.artists=e.artists?e.artists:{items:[],total:0},s.albums=e.albums?e.albums:{items:[],total:0},s.playlists=e.playlists?e.playlists:{items:[],total:0},s.$store.commit($,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)}}},_i=pi,hi=(a("465f"),Object(B["a"])(_i,ni,li,!1,null,null,null));hi.options.__file="PageSearch.vue";var fi=hi.exports,vi=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))]),a("h1",{staticClass:"title is-4"},[t._v(t._s(t.config.library_name))])])])])]),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),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")])])]),a("table",{staticClass:"table"},[a("tbody",[a("tr",[a("th",[t._v("Artists")]),a("td",{staticClass:"has-text-right"},[t._v(t._s(t._f("number")(t.library.artists)))])]),a("tr",[a("th",[t._v("Albums")]),a("td",{staticClass:"has-text-right"},[t._v(t._s(t._f("number")(t.library.albums)))])]),a("tr",[a("th",[t._v("Tracks")]),a("td",{staticClass:"has-text-right"},[t._v(t._s(t._f("number")(t.library.songs)))])]),a("tr",[a("th",[t._v("Total playtime")]),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]")))])]),a("tr",[a("th",[t._v("Library updated")]),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"))+")")])])]),a("tr",[a("th",[t._v("Uptime")]),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"))+")")])])])])])])])])])]),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._m(1)])])])])])])},yi=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"level-left"},[a("div",{staticClass:"level-item"},[a("h2",{staticClass:"title is-5"},[t._v("Library")])])])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("p",{staticClass:"is-size-7"},[t._v("Web interface 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/ejurgensen/forked-daapd/network/dependencies"}},[t._v("more")]),t._v(".")])}],bi={name:"PageAbout",computed:{config:function(){return this.$store.state.config},library:function(){return this.$store.state.library}},methods:{update:function(){S.library_update()}},filters:{join:function(t){return t.join(", ")}}},gi=bi,Ci=(a("6fdd"),Object(B["a"])(gi,vi,yi,!1,null,null,null));Ci.options.__file="PageAbout.vue";var ki=Ci.exports,wi=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("tabs-music"),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("New Releases")])]),a("template",{slot:"content"},t._l(t.new_releases,function(t){return a("spotify-list-item-album",{key:t.id,attrs:{album:t}})})),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),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Featured Playlists")])]),a("template",{slot:"content"},t._l(t.featured_playlists,function(t){return a("spotify-list-item-playlist",{key:t.id,attrs:{playlist:t}})})),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)},xi=[],$i=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))]),a("h2",{staticClass:"subtitle is-7 has-text-grey"},[a("b",[t._v(t._s(t.album.artists[0].name))])])]),a("div",{staticClass:"media-right"},[a("a",{on:{click:t.show_details}},[t._m(0)]),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}}),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))])]),a("div",{staticClass:"content is-small"},[a("p",[a("span",{staticClass:"heading"},[t._v("Album artist")]),a("a",{staticClass:"title is-6 has-text-link",on:{click:t.open_artist}},[t._v(t._s(t.album.artists[0].name))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Release date")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.album.release_date))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Type")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.album.album_type))])])])]),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"})]),a("span",[t._v("Add")])]),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add_next}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-play mdi-18px"})]),a("span",[t._v("Add Next")])]),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"})]),a("span",[t._v("Play")])])])])]),a("button",{staticClass:"modal-close is-large",attrs:{"aria-label":"close"},on:{click:t.hide_details}})]):t._e()])],1)])},qi=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon has-text-dark"},[a("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}],ji={name:"SpotifyListItemAlbum",props:["album"],data:function(){return{show_details_modal:!1}},methods:{play:function(){this.show_details_modal=!1,S.player_play_uri(this.album.uri,!1)},queue_add:function(){S.queue_add(this.album.uri).then(this.$store.dispatch("add_notification",{text:"Album tracks appended to queue",type:"info",timeout:3e3})),this.show_details_modal=!1},queue_add_next:function(){var t=this;S.queue_add_next(this.album.uri).then(function(){return t.$store.dispatch("add_notification",{text:"Album 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_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})}}},Pi=ji,Ai=(a("a57d"),Object(B["a"])(Pi,$i,qi,!1,null,null,null));Ai.options.__file="SpotifyListItemAlbum.vue";var Si=Ai.exports,Ei=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))]),a("h2",{staticClass:"subtitle is-7"},[t._v(t._s(t.playlist.owner.display_name))])]),a("div",{staticClass:"media-right"},[a("a",{on:{click:t.show_details}},[t._m(0)]),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}}),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))])]),a("div",{staticClass:"content is-small"},[a("p",[a("span",{staticClass:"heading"},[t._v("Owner")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.playlist.owner.display_name))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Tracks")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.playlist.tracks.total))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Path")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.playlist.uri))])])])]),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"})]),a("span",[t._v("Add")])]),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add_next}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-play mdi-18px"})]),a("span",[t._v("Add Next")])]),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"})]),a("span",[t._v("Play")])])])])]),a("button",{staticClass:"modal-close is-large",attrs:{"aria-label":"close"},on:{click:t.hide_details}})]):t._e()])],1)])},Ti=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon has-text-dark"},[a("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}],Oi={name:"SpotifyListItemPlaylist",props:["playlist"],data:function(){return{show_details_modal:!1}},methods:{play:function(){this.show_details_modal=!1,S.player_play_uri(this.playlist.uri,!1)},queue_add:function(){var t=this;S.queue_add(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},queue_add_next:function(){var t=this;S.queue_add_next(this.playlist.uri).then(function(){return t.$store.dispatch("add_notification",{text:"Playlist 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_playlist:function(){this.show_details_modal=!1,this.$router.push({path:"/music/spotify/playlists/"+this.playlist.id})}}},Ii=Oi,Li=(a("ecfa"),Object(B["a"])(Ii,Ei,Ti,!1,null,null,null));Li.options.__file="SpotifyListItemPlaylist.vue";var Ni=Li.exports,Bi=a("be8d"),Ri=a.n(Bi),Mi={load:function(t){if(A.state.spotify_new_releases.length>0&&A.state.spotify_featured_playlists.length>0)return Promise.resolve();var s=new Ri.a;return s.setAccessToken(A.state.spotify.webapi_token),Promise.all([s.getNewReleases({country:A.state.spotify.webapi_country,limit:50}),s.getFeaturedPlaylists({country:A.state.spotify.webapi_country,limit:50})])},set:function(t,s){s&&(A.commit(C,s[0].albums.items),A.commit(k,s[1].playlists.items))}},Di={name:"SpotifyPageBrowse",mixins:[gs(Mi)],components:{ContentWithHeading:Yt["default"],TabsMusic:qs,SpotifyListItemAlbum:Si,SpotifyListItemPlaylist:Ni},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)}}},Hi=Di,Wi=(a("814b"),Object(B["a"])(Hi,wi,xi,!1,null,null,null));Wi.options.__file="SpotifyPageBrowse.vue";var zi=Wi.exports,Ui=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("tabs-music"),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("New Releases")])]),a("template",{slot:"content"},t._l(t.new_releases,function(t){return a("spotify-list-item-album",{key:t.id,attrs:{album:t}})}))],2)],1)},Fi=[],Gi={load:function(t){if(A.state.spotify_new_releases.length>0)return Promise.resolve();var s=new Ri.a;return s.setAccessToken(A.state.spotify.webapi_token),s.getNewReleases({country:A.state.spotify.webapi_country,limit:50})},set:function(t,s){s&&A.commit(C,s.albums.items)}},Yi={name:"SpotifyPageBrowseNewReleases",mixins:[gs(Gi)],components:{ContentWithHeading:Yt["default"],TabsMusic:qs,SpotifyListItemAlbum:Si},computed:{new_releases:function(){return this.$store.state.spotify_new_releases}}},Qi=Yi,Ji=(a("a37b"),Object(B["a"])(Qi,Ui,Fi,!1,null,null,null));Ji.options.__file="SpotifyPageBrowseNewReleases.vue";var Vi=Ji.exports,Ki=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",[a("tabs-music"),a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Featured Playlists")])]),a("template",{slot:"content"},t._l(t.featured_playlists,function(t){return a("spotify-list-item-playlist",{key:t.id,attrs:{playlist:t}})}))],2)],1)},Xi=[],Zi={load:function(t){if(A.state.spotify_featured_playlists.length>0)return Promise.resolve();var s=new Ri.a;s.setAccessToken(A.state.spotify.webapi_token),s.getFeaturedPlaylists({country:A.state.spotify.webapi_country,limit:50})},set:function(t,s){s&&A.commit(k,s.playlists.items)}},tn={name:"SpotifyPageBrowseFeaturedPlaylists",mixins:[gs(Zi)],components:{ContentWithHeading:Yt["default"],TabsMusic:qs,SpotifyListItemPlaylist:Ni},computed:{featured_playlists:function(){return this.$store.state.spotify_featured_playlists}}},sn=tn,an=(a("f4df"),Object(B["a"])(sn,Ki,Xi,!1,null,null,null));an.options.__file="SpotifyPageBrowseFeaturedPlaylists.vue";var en=an.exports,nn=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))])]),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[t._v(t._s(t.total)+" albums")]),t._l(t.albums,function(t){return a("spotify-list-item-album",{key:t.id,attrs:{album:t}})}),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)},ln=[],on=a("e166"),rn=a.n(on),cn={load:function(t){var s=new Ri.a;return s.setAccessToken(A.state.spotify.webapi_token),Promise.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])}},un={name:"SpotifyPageArtist",mixins:[gs(cn)],components:{ContentWithHeading:Yt["default"],SpotifyListItemAlbum:Si,InfiniteLoading:rn.a},data:function(){return{artist:{},albums:[],total:0,offset:0}},methods:{load_next:function(t){var s=this,a=new Ri.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())}}},dn=un,mn=(a("8f70"),Object(B["a"])(dn,nn,ln,!1,null,null,null));mn.options.__file="SpotifyPageArtist.vue";var pn=mn.exports,_n=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))]),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))])]),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-shuffle"})]),a("span",[t._v("Shuffle")])])]),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[t._v(t._s(t.album.tracks.total)+" tracks")]),t._l(t.album.tracks.items,function(s,e){return a("spotify-list-item-track",{key:s.id,attrs:{track:s,position:e,album:t.album,context_uri:t.album.uri}})})],2)],2)},hn=[],fn=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))]),a("h2",{staticClass:"subtitle is-7 has-text-grey"},[a("b",[t._v(t._s(t.track.artists[0].name))])])]),a("div",{staticClass:"media-right"},[a("a",{on:{click:t.show_details}},[t._m(0)]),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}}),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 ")]),a("p",{staticClass:"subtitle"},[t._v("\n "+t._s(t.track.artists[0].name)+"\n ")]),a("div",{staticClass:"content is-small"},[a("p",[a("span",{staticClass:"heading"},[t._v("Album")]),a("a",{staticClass:"title is-6 has-text-link",on:{click:t.open_album}},[t._v(t._s(t.album.name))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Album artist")]),a("a",{staticClass:"title is-6 has-text-link",on:{click:t.open_artist}},[t._v(t._s(t.album.artists[0].name))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Release date")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.album.release_date))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Track / Disc")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.track.track_number)+" / "+t._s(t.track.disc_number))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Length")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t._f("duration")(t.track.duration_ms)))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Path")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.track.uri))])])])]),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"})]),a("span",[t._v("Add")])]),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add_next}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-play mdi-18px"})]),a("span",[t._v("Add Next")])]),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"})]),a("span",[t._v("Play")])])])])]),a("button",{staticClass:"modal-close is-large",attrs:{"aria-label":"close"},on:{click:t.hide_details}})]):t._e()])],1)])},vn=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon has-text-dark"},[a("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}],yn={name:"SpotifyListItemTrack",props:["track","position","album","context_uri"],data:function(){return{show_details_modal:!1}},methods:{play:function(){this.show_details_modal=!1,S.player_play_uri(this.context_uri,!1,this.position)},queue_add:function(){var t=this;S.queue_add(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},queue_add_next:function(){var t=this;S.queue_add_next(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})}}},bn=yn,gn=(a("7a3b"),Object(B["a"])(bn,fn,vn,!1,null,null,null));gn.options.__file="SpotifyListItemTrack.vue";var Cn=gn.exports,kn={load:function(t){var s=new Ri.a;return s.setAccessToken(A.state.spotify.webapi_token),s.getAlbum(t.params.album_id)},set:function(t,s){t.album=s}},wn={name:"PageAlbum",mixins:[gs(kn)],components:{ContentWithHeading:Yt["default"],SpotifyListItemTrack:Cn},data:function(){return{album:{}}},methods:{open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})},play:function(){this.show_details_modal=!1,S.player_play_uri(this.album.uri,!0)}}},xn=wn,$n=(a("b484"),Object(B["a"])(xn,_n,hn,!1,null,null,null));$n.options.__file="SpotifyPageAlbum.vue";var qn=$n.exports,jn=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))])]),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-shuffle"})]),a("span",[t._v("Shuffle")])])]),a("template",{slot:"content"},[a("p",{staticClass:"heading has-text-centered-mobile"},[t._v(t._s(t.playlist.tracks.total)+" tracks")]),t._l(t.tracks,function(s,e){return a("spotify-list-item-track",{key:s.track.id,attrs:{track:s.track,album:s.track.album,position:e,context_uri:t.playlist.uri}})}),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)},Pn=[],An={load:function(t){var s=new Ri.a;return s.setAccessToken(A.state.spotify.webapi_token),Promise.all([s.getPlaylist(t.params.playlist_id),s.getPlaylistTracks(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])}},Sn={name:"SpotifyPagePlaylist",mixins:[gs(An)],components:{ContentWithHeading:Yt["default"],SpotifyListItemTrack:Cn,InfiniteLoading:rn.a},data:function(){return{playlist:{},tracks:[],total:0,offset:0}},methods:{load_next:function(t){var s=this,a=new Ri.a;a.setAccessToken(this.$store.state.spotify.webapi_token),a.getPlaylistTracks(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(){this.show_details_modal=!1,S.player_play_uri(this.playlist.uri,!0)}}},En=Sn,Tn=(a("a50a"),Object(B["a"])(En,jn,Pn,!1,null,null,null));Tn.options.__file="SpotifyPagePlaylist.vue";var On=Tn.exports,In=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._m(0)])])]),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))])}))])])])]),a("tabs-search"),t.show_tracks?a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Tracks")])]),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}})}),"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),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.tracks.total?t._e():a("p",[t._v("No results")])])],2):t._e(),t.show_artists?a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Artists")])]),a("template",{slot:"content"},[t._l(t.artists.items,function(t){return a("spotify-list-item-artist",{key:t.id,attrs:{artist:t}})}),"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),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.artists.total?t._e():a("p",[t._v("No results")])])],2):t._e(),t.show_albums?a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Albums")])]),a("template",{slot:"content"},[t._l(t.albums.items,function(t){return a("spotify-list-item-album",{key:t.id,attrs:{album:t}})}),"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),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.albums.total?t._e():a("p",[t._v("No results")])])],2):t._e(),t.show_playlists?a("content-with-heading",[a("template",{slot:"heading-left"},[a("p",{staticClass:"title is-4"},[t._v("Playlists")])]),a("template",{slot:"content"},[t._l(t.playlists.items,function(t){return a("spotify-list-item-playlist",{key:t.id,attrs:{playlist:t}})}),"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),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.playlists.total?t._e():a("p",[t._v("No results")])])],2):t._e()],1)},Ln=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon is-left"},[a("i",{staticClass:"mdi mdi-magnify"})])}],Nn=(a("28a5"),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))])]),a("div",{staticClass:"media-right"},[a("a",{on:{click:t.show_details}},[t._m(0)]),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}}),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))])]),a("div",{staticClass:"content is-small"},[a("p",[a("span",{staticClass:"heading"},[t._v("Popularity / Followers")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.artist.popularity)+" / "+t._s(t.artist.followers.total))])]),a("p",[a("span",{staticClass:"heading"},[t._v("Genres")]),a("span",{staticClass:"title is-6"},[t._v(t._s(t.artist.genres.join(", ")))])])])]),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"})]),a("span",[t._v("Add")])]),a("a",{staticClass:"card-footer-item has-text-dark",on:{click:t.queue_add_next}},[a("span",{staticClass:"icon"},[a("i",{staticClass:"mdi mdi-playlist-play mdi-18px"})]),a("span",[t._v("Add Next")])]),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"})]),a("span",[t._v("Play")])])])])]),a("button",{staticClass:"modal-close is-large",attrs:{"aria-label":"close"},on:{click:t.hide_details}})]):t._e()])],1)])}),Bn=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("span",{staticClass:"icon has-text-dark"},[a("i",{staticClass:"mdi mdi-dots-vertical mdi-18px"})])}],Rn={name:"SpotifyListItemArtist",props:["artist"],data:function(){return{show_details_modal:!1}},methods:{play:function(){this.show_details_modal=!1,S.player_play_uri(this.artist.uri,!1)},queue_add:function(){var t=this;S.queue_add(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},queue_add_next:function(){var t=this;S.queue_add_next(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})}}},Mn=Rn,Dn=(a("d663"),Object(B["a"])(Mn,Nn,Bn,!1,null,null,null));Dn.options.__file="SpotifyListItemArtist.vue";var Hn=Dn.exports,Wn={name:"SpotifyPageSearch",components:{ContentWithHeading:Yt["default"],TabsSearch:mi,SpotifyListItemTrack:Cn,SpotifyListItemArtist:Hn,SpotifyListItemAlbum:Si,SpotifyListItemPlaylist:Ni,InfiniteLoading:rn.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($,this.query.query),this.query.type.includes(",")&&this.search_all()},spotify_search:function(){var t=this;return S.spotify().then(function(s){var a=s.data;t.search_param.market=a.webapi_country;var e=new Ri.a;return e.setAccessToken(a.webapi_token),e.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()}}},zn=Wn,Un=(a("0fc9"),Object(B["a"])(zn,In,Ln,!1,null,null,null));Un.options.__file="SpotifyPageSearch.vue";var Fn=Un.exports;i["a"].use(Ut["a"]);var Gn=new Ut["a"]({routes:[{path:"/",name:"PageQueue",component:ds},{path:"/about",name:"About",component:ki},{path:"/now-playing",name:"Now playing",component:vs},{path:"/music",redirect:"/music/browse"},{path:"/music/browse",name:"Browse",component:zs,meta:{show_progress:!0}},{path:"/music/browse/recently_added",name:"Browse Recently Added",component:Vs,meta:{show_progress:!0}},{path:"/music/browse/recently_played",name:"Browse Recently Played",component:ea,meta:{show_progress:!0}},{path:"/music/artists",name:"Artists",component:fa,meta:{show_progress:!0}},{path:"/music/artists/:artist_id",name:"Artist",component:wa,meta:{show_progress:!0}},{path:"/music/artists/:artist_id/tracks",name:"Tracks",component:ue,meta:{show_progress:!0}},{path:"/music/albums",name:"Albums",component:Sa,meta:{show_progress:!0}},{path:"/music/albums/:album_id",name:"Album",component:Ba,meta:{show_progress:!0}},{path:"/music/genres",name:"Genres",component:Va,meta:{show_progress:!0}},{path:"/music/genres/:genre",name:"Genre",component:ee,meta:{show_progress:!0}},{path:"/podcasts",name:"Podcasts",component:ve,meta:{show_progress:!0}},{path:"/podcasts/:album_id",name:"Podcast",component:xe,meta:{show_progress:!0}},{path:"/audiobooks",name:"Audiobooks",component:Ee,meta:{show_progress:!0}},{path:"/audiobooks/:album_id",name:"Audiobook",component:Re,meta:{show_progress:!0}},{path:"/playlists",name:"Playlists",component:Ke,meta:{show_progress:!0}},{path:"/playlists/:playlist_id",name:"Playlist",component:ii,meta:{show_progress:!0}},{path:"/search",redirect:"/search/library"},{path:"/search/library",name:"Search Library",component:fi},{path:"/music/spotify",name:"Spotify",component:zi,meta:{show_progress:!0}},{path:"/music/spotify/new-releases",name:"Spotify Browse New Releases",component:Vi,meta:{show_progress:!0}},{path:"/music/spotify/featured-playlists",name:"Spotify Browse Featured Playlists",component:en,meta:{show_progress:!0}},{path:"/music/spotify/artists/:artist_id",name:"Spotify Artist",component:pn,meta:{show_progress:!0}},{path:"/music/spotify/albums/:album_id",name:"Spotify Album",component:qn,meta:{show_progress:!0}},{path:"/music/spotify/playlists/:playlist_id",name:"Spotify Playlist",component:On,meta:{show_progress:!0}},{path:"/search/spotify",name:"Spotify Search",component:Fn}],scrollBehavior:function(t,s,a){return a?new Promise(function(t,s){setTimeout(function(){t(a)},500)}):{x:0,y:0}}});Gn.beforeEach(function(t,s,a){A.state.show_burger_menu?(A.commit(P,!1),a(!1)):a()});var Yn=a("c1df"),Qn=a.n(Yn),Jn=a("4623"),Vn=a.n(Jn);Vn()(Qn.a),i["a"].filter("duration",function(t,s){return s?Qn.a.duration(t).format(s):Qn.a.duration(t).format("hh:*mm:ss")}),i["a"].filter("time",function(t,s){return s?Qn()(t).format(s):Qn()(t).format()}),i["a"].filter("timeFromNow",function(t,s){return Qn()(t).fromNow(s)}),i["a"].filter("number",function(t){return t.toLocaleString()});var Kn=a("26b9"),Xn=a.n(Kn);i["a"].use(Xn.a,{color:"hsl(204, 86%, 53%)",failedColor:"red",height:"1px"});a("92c6"),a("de2f"),a("2760"),a("e1b4");i["a"].config.productionTip=!1,new i["a"]({el:"#app",router:Gn,store:A,components:{App:zt},template:"<App/>"})},5941:function(t,s,a){},"595b":function(t,s,a){"use strict";var e=a("f340"),i=a.n(e);i.a},"64a6":function(t,s,a){},"64a9":function(t,s,a){},"64e8":function(t,s,a){"use strict";var e=a("7621"),i=a.n(e);i.a},6705:function(t,s,a){},"673c":function(t,s,a){"use strict";var e=a("64a6"),i=a.n(e);i.a},"67c9":function(t,s,a){},6821:function(t,s,a){},"689e":function(t,s,a){"use strict";var e=a("1f39"),i=a.n(e);i.a},"6b23":function(t,s,a){},"6fbb":function(t,s,a){"use strict";var e=a("9619"),i=a.n(e);i.a},"6fdd":function(t,s,a){"use strict";var e=a("b5a8"),i=a.n(e);i.a},7004:function(t,s,a){"use strict";var e=a("8c02"),i=a.n(e);i.a},7412:function(t,s,a){"use strict";var e=a("8dc3"),i=a("91ed"),n=(a("853a"),a("2877")),l=Object(n["a"])(i["default"],e["a"],e["b"],!1,null,null,null);l.options.__file="ContentWithHeading.vue",s["default"]=l.exports},"751f":function(t,s,a){},"75fb":function(t,s,a){},7621:function(t,s,a){},"7a2a":function(t,s,a){},"7a3b":function(t,s,a){"use strict";var e=a("abb3"),i=a.n(e);i.a},"7aaf":function(t,s,a){"use strict";var e=a("6705"),i=a.n(e);i.a},"814b":function(t,s,a){"use strict";var e=a("75fb"),i=a.n(e);i.a},"81f1":function(t,s,a){},"81ff":function(t,s,a){"use strict";var e=a("206f"),i=a.n(e);i.a},"853a":function(t,s,a){"use strict";var e=a("37f9"),i=a.n(e);i.a},"886e":function(t,s,a){"use strict";var e=a("a047"),i=a.n(e);i.a},"89f3":function(t,s,a){},"8bee":function(t,s,a){"use strict";var e=a("12ad"),i=a.n(e);i.a},"8c02":function(t,s,a){},"8d58":function(t,s,a){},"8da3":function(t,s,a){"use strict";var e=a("54c5"),i=a.n(e);i.a},"8dc3":function(t,s,a){"use strict";var e=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("section",{staticClass:"section"},[a("div",{staticClass:"container"},[a("div",{staticClass:"columns is-centered"},[a("div",{staticClass:"column is-four-fifths"},[a("nav",{staticClass:"level"},[a("div",{staticClass:"level-left"},[a("div",{staticClass:"level-item has-text-centered-mobile"},[a("div",[t._t("heading-left")],2)])]),a("div",{staticClass:"level-right has-text-centered-mobile"},[t._t("heading-right")],2)]),t._t("content"),a("div",{staticStyle:{"margin-top":"16px"}},[t._t("footer")],2)],2)])])])},i=[];a.d(s,"a",function(){return e}),a.d(s,"b",function(){return i})},"8f70":function(t,s,a){"use strict";var e=a("9d55"),i=a.n(e);i.a},9142:function(t,s,a){"use strict";var e=a("50ca"),i=a.n(e);i.a},"91ed":function(t,s,a){"use strict";var e=a("39bf"),i=a.n(e);s["default"]=i.a},9236:function(t,s,a){},9619:function(t,s,a){},"99bc":function(t,s,a){},"9d55":function(t,s,a){},a047:function(t,s,a){},a1ee:function(t,s,a){"use strict";var e=a("e755"),i=a.n(e);i.a},a37b:function(t,s,a){"use strict";var e=a("d62a"),i=a.n(e);i.a},a50a:function(t,s,a){"use strict";var e=a("ea0b"),i=a.n(e);i.a},a57d:function(t,s,a){"use strict";var e=a("2faf"),i=a.n(e);i.a},a83f:function(t,s,a){"use strict";var e=a("89f3"),i=a.n(e);i.a},ab83:function(t,s,a){},abb3:function(t,s,a){},b484:function(t,s,a){"use strict";var e=a("c73a"),i=a.n(e);i.a},b5a8:function(t,s,a){},b715:function(t,s,a){"use strict";var e=a("9236"),i=a.n(e);i.a},baa8:function(t,s,a){},c14a:function(t,s,a){"use strict";var e=a("4839"),i=a.n(e);i.a},c1cb:function(t,s,a){"use strict";var e=a("baa8"),i=a.n(e);i.a},c2c2:function(t,s,a){"use strict";var e=a("81f1"),i=a.n(e);i.a},c73a:function(t,s,a){},c905:function(t,s,a){"use strict";var e=a("e93b"),i=a.n(e);i.a},c9e7:function(t,s,a){"use strict";var e=a("5941"),i=a.n(e);i.a},cf45:function(t,s,a){"use strict";var e=a("4798"),i=a.n(e);i.a},d32e:function(t,s,a){"use strict";var e=a("99bc"),i=a.n(e);i.a},d62a:function(t,s,a){},d663:function(t,s,a){"use strict";var e=a("4ca2"),i=a.n(e);i.a},d7e6:function(t,s,a){"use strict";var e=a("e076"),i=a.n(e);i.a},da86:function(t,s,a){"use strict";var e=a("1253"),i=a.n(e);i.a},e076:function(t,s,a){},e1b4:function(t,s,a){},e744:function(t,s,a){"use strict";var e=a("751f"),i=a.n(e);i.a},e755:function(t,s,a){},e93b:function(t,s,a){},ea0b:function(t,s,a){},ecfa:function(t,s,a){"use strict";var e=a("ab83"),i=a.n(e);i.a},f340:function(t,s,a){},f4df:function(t,s,a){"use strict";var e=a("6b23"),i=a.n(e);i.a},f579:function(t,s,a){"use strict";var e=a("2b2a"),i=a.n(e);i.a},f5a8:function(t,s,a){},f730:function(t,s,a){"use strict";var e=a("091f"),i=a.n(e);i.a},f78e:function(t,s,a){}});
//# sourceMappingURL=app.js.map