1webpackJsonp([1],{"+BHZ":function(t,e){},"+yV/":function(t,e){},"1/oy":function(t,e){},"1KF5":function(t,e){},"1cMe":function(t,e){},"1gxa":function(t,e){},"2HG8":function(t,e){},"34oT":function(t,e){},"3xwC":function(t,e){},"4mLx":function(t,e){},"56c7":function(t,e){},"5wP1":function(t,e){},"6Xdp":function(t,e){},"79mF":function(t,e){},"7Zj2":function(t,e){},"7eoP":function(t,e){},"7sA3":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("gCMD"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,function(){return i[t]})}(s);var r=a("SrSY");var o=function(t){a("AVdg")},l=a("VU/8")(n.a,r.a,!1,o,null,null);e.default=l.exports},"8Fbw":function(t,e){},"8VF9":function(t,e){},"8kKt":function(t,e){},"8lx2":function(t,e){},"8uPp":function(t,e){},"9Gh5":function(t,e){},"9Vrr":function(t,e){},"9y9B":function(t,e){},AHub:function(t,e){},AVdg:function(t,e){},BdiN:function(t,e){},C69L:function(t,e){},CNER:function(t,e){},EQse:function(t,e){},F3dy:function(t,e){},FEYn:function(t,e){},FbdN:function(t,e){},GM7T:function(t,e){},GfHa:function(t,e){},HGmW:function(t,e){},HIl4:function(t,e){},I02T:function(t,e){},I1qX:function(t,e){},IN3B:function(t,e){},Id91:function(t,e){},Ijqi:function(t,e){},JfSH:function(t,e){},JkGH:function(t,e){},KUgd:function(t,e){},LLoh:function(t,e){},LN65:function(t,e){},LpAo:function(t,e){},"MAp+":function(t,e){},NHnr:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("7+uW"),n=a("e6fC"),s=(a("nYAk"),a("QxPg")),r=a("1P+R"),o=a("h17U"),l=a("Dd8w"),c=a.n(l),u=a("NYxO"),d=a("Xxa5"),v=a.n(d),p=a("exGp"),h=a.n(p),m=a("pFYg"),f=a.n(m),b=a("U0v6"),g=a.n(b),_=a("OAwv"),y=a.n(_),w=a("2247"),C=a.n(w),k={render:function(){var t=this.$createElement;return(this._self._c||t)("a",{class:this.cls,attrs:{href:"javascript:false"},on:{click:this.onClick}},[this._t("default")],2)},staticRenderFns:[]};var x=a("VU/8")({name:"LinkButton",props:["u"],computed:{cls:function(){return this.u?"u":"no-u"}},methods:{onClick:function(t){return t.preventDefault(),t.stopPropagation(),this.$emit("click"),!1}}},k,!1,function(t){a("9Gh5")},"data-v-68ba09e8",null).exports,A={name:"AddToPlaylist",components:{FontAwesomeIcon:g.a,LinkButton:x},props:{target:String,video:Object},data:function(){return{working:!1,playlists:null,playlist:null,name:null}},computed:c()({addEnabled:function(){return this.playlist>0||-1===this.playlist&&!!this.name},myVideos:function(){return this.isLoggedIn?this.currentUser.default_playlists.my_videos:null},inMyVideos:function(){return!!this.myVideos&&-1!==this.myVideos.video_ids.indexOf(this.video.id)}},Object(u.c)("profile",["currentUser"]),Object(u.c)("auth",["isLoggedIn"])),watch:{currentUser:"initComponent"},created:function(){this.initComponent()},methods:{initComponent:function(){var t=this;return h()(v.a.mark(function e(){var a,i;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("playlist/listPlaylists",{profile_id:t.currentUser.id});case 2:return a=e.sent,e.t0=C.a,e.next=6,a.all();case 6:e.t1=e.sent,e.t2=function(t){return{value:t.id,text:t.name}},i=(0,e.t0)(e.t1,e.t2),t.inMyVideos||i.unshift({value:t.myVideos.id,text:"Save Video"}),i.push({value:-1,text:"Create new playlist..."}),t.playlists=i,t.inMyVideos||(t.playlist=t.myVideos.id),t.name="";case 14:case"end":return e.stop()}},e,t)}))()},add:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.addEnabled){e.next=2;break}return e.abrupt("return");case 2:if(t.working=!0,-1!==t.playlist){e.next=9;break}return e.next=6,t.$store.dispatch("playlist/createPlaylist",{name:t.name,is_public:!1});case 6:a=e.sent,t.playlist=a.id,t.playlists.splice(t.playlists.length-1,0,{value:a.id,text:a.name});case 9:return e.prev=9,e.next=12,t.$store.dispatch("playlist/appendPlaylistSong",{playlistId:t.playlist,songId:t.video.id});case 12:t.working=!1,e.next=22;break;case 15:return e.prev=15,e.t0=e.catch(9),t.working=!1,t.$store.dispatch("flash/showMessage",{message:e.t0.message,type:"error"}),t.playlist=null,t.close(),e.abrupt("return");case 22:t.playlist===t.myVideos.id?(t.myVideos.video_ids.push(t.video.id),t.$store.dispatch("flash/showMessage",{message:"Video added to your Saved Videos"})):t.$store.dispatch("flash/showMessage",{message:"Video added to playlist"}),t.playlist=null,t.close();case 25:case"end":return e.stop()}},e,t,[[9,15]])}))()},close:function(){this.$refs.popover.$emit("close")}}},S={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-popover",{ref:"popover",attrs:{target:t.target,triggers:"click blur",placement:"bottomleft",title:""}},[a("div",{staticClass:"addToPlaylistPopover"},[a("b-form-group",{attrs:{label:"Add video to"}},[t.playlists?a("b-form-select",{attrs:{options:t.playlists,size:"sm"},model:{value:t.playlist,callback:function(e){t.playlist=e},expression:"playlist"}}):t._e()],1),t._v(" "),-1==t.playlist?a("b-form-group",{attrs:{label:"New playlist name"}},[a("b-form-input",{staticClass:"name",attrs:{size:"sm"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1):t._e(),t._v(" "),a("b-button",{staticClass:"btn-rainbow",attrs:{disabled:!t.addEnabled},on:{click:t.add}}
1,[t._v("\n add\n ")]),t._v(" "),t.working?a("font-awesome-icon",{attrs:{icon:"spinner",size:"lg",spin:""}}):t._e(),t._v(" "),a("LinkButton",{staticClass:"ml-2",attrs:{u:!0},on:{click:t.close}},[t._v("cancel")])],1)])},staticRenderFns:[]};var I=a("VU/8")(A,S,!1,function(t){a("YEiv")},"data-v-c5b01f4e",null).exports,P=a("BO1k"),T=a.n(P),E=a("fZjL"),L=a.n(E),$={displayName:function(t){return t.name||"@"+t.username},avatarImage:function(t){return t.avatar_image||"/static/img/default-avatar.jpg"},heroImage:function(t){return t.hero_image||"/static/img/default-hero.jpg"}},O={getThumbnail:function(t){return t.video_thumbnail||"/static/img/wireframe.svg"},formatDuration:function(t){if(!t.duration)return"-";var e=t.duration%60,a=Math.floor(t.duration/60)%60,i=Math.floor(t.duration/3600)%60;e<10&&(e="0"+e),a<10&&i>0&&(a="0"+a);var n=a+":"+e;return i>0&&(n=i+":"+n),n}};function R(t){var e={};for(var a in t){var i=t[a];if("string"==typeof i)e[a]=i;else{if(!i.length)continue;e[a]=i[0]}}return e}function F(t){var e={},a=function(t){var a=("state_"+t).replace(/(_[a-z])/g,function(t,e){return e[1].toUpperCase()}),i=("error_"+t).replace(/(_[a-z])/g,function(t,e){return e[1].toUpperCase()});e[a]=function(){return this.errors[t]?"invalid":null},e[i]=function(){return this.errors[t]}},i=!0,n=!1,s=void 0;try{for(var r,o=T()(t);!(i=(r=o.next()).done);i=!0){a(r.value)}}catch(t){n=!0,s=t}finally{try{!i&&o.return&&o.return()}finally{if(n)throw s}}return e}var M=a("//Fk"),U=a.n(M),N=a("Zrlr"),V=a.n(N),j=a("wxAW"),D=a.n(j),B=a("mtWM"),H=a.n(B),q=window.SITE_CONFIG.ARTIST_NOTIFICATIONS||[],z=window.SITE_CONFIG.RECAPTCHA_SITE_KEY,W=a("mvHQ"),G=a.n(W),Y=function(t,e){localStorage.setItem(t,G()(e))},K=function(t){var e=localStorage.getItem(t);if(null===e)return e;try{return JSON.parse(e)}catch(t){return null}},X=function(t){localStorage.removeItem(t)},J={base:window.SITE_CONFIG.BASE_URL+"/api/v1/",videoUpload:"https://upload.dacast.com",auth:{login:function(){return"auth/login/"},logout:function(){return"auth/logout/"},register:function(){return"auth/registration/"},social:function(t){return"auth/social/"+t+"/"},resetPassword:function(){return"auth/password/reset/"},confirmResetPassword:function(){return"auth/password/reset/confirm/"},changePassword:function(){return"auth/password/change/"}},profile:{me:function(){return"me/"},notifications:function(){return"notifications/"},avatar:function(){return"me/avatar/"},deactivate:function(){return"me/deactivate/"},hero:function(){return"me/hero/"},list:function(t){return"profiles/"},detail:function(t){return"profiles/"+t+"/"},follow:function(t){return"profiles/"+t+"/follow/"},unfollow:function(t){return"profiles/"+t+"/unfollow/"},following:function(){return"following/"},followers:function(){return"followers/"},block:function(t){return"profiles/"+t+"/block/"},unblock:function(t){return"profiles/"+t+"/unblock/"},report:function(t){return"profiles/"+t+"/report/"},inboxes:function(){return"inboxes/"},conversations:function(t){return"inboxes/"+t+"/conversations/"},messages:function(t,e){return"inboxes/"+t+"/conversations/"+e+"/messages/"},markAsRead:function(t,e){return"inboxes/"+t+"/conversations/"+e+"/mark_as_read/"}},artist:{list:function(){return"artists/"},avatar:function(t){return"artists/avatar/"},hero:function(t){return"artists/hero/"},detail:function(t){return"artists/"+t+"/"},donate:function(t){return"artists/"+t+"/donate/"},report:function(t){return"artists/"+t+"/report/"}},tag:{list:function(){return"tags/"}},song:{publish:{list:function(){return"publish/songs/"},detail:function(t){return"publish/songs/"+t+"/"},thumbnail:function(t){return"publish/songs/"+t+"/thumbnail/"},video:function(t){return"publish/songs/"+t+"/video/"},audio:function(t){return"publish/songs/"+t+"/audio/"}},consume:{list:function(){return"songs/"},detail:function(t){return"songs/"+t+"/"},purchase:function(t){return"songs/"+t+"/purchase/"},listAccess:function(){return"access/"},rate:function(t){return"songs/"+t+"/rate/"},touch:function(t){return"songs/"+t+"/touch/"},report:function(t){return"songs/"+t+"/report/"},commentList:function(t){return"songs/"+t+"/comments/"},commentDetail:function(t,e){return"songs/"+t+"/comments/"+e+"/"},reportComment:function(t,e){return"songs/"+t+"/comments/"+e+"/report/"}}},album:{list:function(){return"albums/"},detail:function(t){return"albums/"+t+"/"},cover:function(t){return"albums/"+t+"/cover/"},purchase:function(t){return"albums/"+t+"/purchase/"}},payment:{token:function(){return"payment/"},history:function(){return"payment/history/"},transactions:function(){return"artist/transactions/"},setupPayout:function(){return"artist/payout/"}},live:{publish:{list:function(){return"publish/live/"},detail:function(t){return"publish/live/"+t+"/"},promo:function(t){return"publish/live/"+t+"/promo/"},start:function(t){return"publish/live/"+t+"/start/"},stop:function(t){return"publish/live/"+t+"/stop/"},block_user:function(t){return"publish/live/"+t+"/block_user/"}}
1,consume:{list:function(){return"live/"},detail:function(t){return"live/"+t+"/"},book:function(t){return"live/"+t+"/book/"},watch:function(t){return"live/"+t+"/watch/"},attend:function(t){return"live/"+t+"/attend/"},ping:function(t){return"live/"+t+"/ping/"},rate:function(t){return"live/"+t+"/rate/"},report:function(t){return"live/"+t+"/report/"},commentList:function(t){return"live/"+t+"/comments/"},commentDetail:function(t,e){return"live/"+t+"/comments/"+e+"/"},reportComment:function(t,e){return"live/"+t+"/comments/"+e+"/report/"},messages:function(t){return"live/"+t+"/messages/"},send_message:function(t){return"live/"+t+"/send_message/"},delete_message:function(t){return"live/"+t+"/delete_message/"}},tickets:{list:function(){return"tickets/"}}},feed:{combined:function(){return"feed/"},by:function(t){return"profiles/"+t+"/feed/"},post:function(){return"publish/feed/"},delete:function(t){return"publish/feed/"+t+"/"},reportUpdate:function(t){return"feed/"+t+"/report/"},commentList:function(t){return"feed/"+t+"/comments/"},commentDetail:function(t,e){return"feed/"+t+"/comments/"+e+"/"},reportUpdateComment:function(t,e){return"feed/"+t+"/comments/"+e+"/report/"}},playlist:{list:function(){return"playlists/"},detail:function(t){return"playlists/"+t+"/"},appendSong:function(t){return"playlists/"+t+"/append/"},prependSong:function(t){return"playlists/"+t+"/prepend/"},removeSong:function(t){return"playlists/"+t+"/remove/"},follow:function(t){return"playlists/"+t+"/follow/"},unfollow:function(t){return"playlists/"+t+"/unfollow/"}},search:{albums:function(){return"search/albums/"},artists:function(){return"search/artists/"},live:function(){return"search/live/"},playlists:function(){return"search/playlists/"},songs:function(){return"search/songs/"},recommended:function(){return"search/recommended/"}}},Q=H.a.create({baseURL:J.base,headers:{"Content-Type":"application/json"}});function Z(t,e,a){return a||(a=e.type),Q.put(t,e,{headers:{"Content-Type":a,"Content-Disposition":"attachment; filename="+encodeURIComponent(e.name)}})}Q.interceptors.request.use(function(t){var e=t.url;if(![J.auth.login(),J.auth.register()].includes(e)){var a=K("auth_token");a&&(t.headers.Authorization="Token "+a)}return t});var tt,et=function(){function t(e){if(V()(this,t),!e)return this.count=0,this.results=[],this._previous=null,void(this._next=null);this.count=e.count||0,this.results=e.results||[],this._previous=e.previous,this._next=e.next}return D()(t,[{key:"next",value:function(){return this._next?Q.get(this._next).then(function(e){return new t(e.data)}):U.a.resolve(new t)}},{key:"previous",value:function(){return this._previous?Q.get(this._previous).then(function(e){return new t(e.data)}):U.a.resolve(new t)}},{key:"all",value:function(){var t=h()(v.a.mark(function t(){var e,a,i,n,s,r,o,l;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=[],a=this;case 2:if(!(a.count>0)){t.next=27;break}for(i=!0,n=!1,s=void 0,t.prev=6,r=T()(a.results);!(i=(o=r.next()).done);i=!0)l=o.value,e.push(l);t.next=14;break;case 10:t.prev=10,t.t0=t.catch(6),n=!0,s=t.t0;case 14:t.prev=14,t.prev=15,!i&&r.return&&r.return();case 17:if(t.prev=17,!n){t.next=20;break}throw s;case 20:return t.finish(17);case 21:return t.finish(14);case 22:return t.next=24,a.next();case 24:a=t.sent,t.next=2;break;case 27:return t.abrupt("return",e);case 28:case"end":return t.stop()}},t,this,[[6,10,14,22],[15,,17,21]])}));return function(){return t.apply(this,arguments)}}()}]),t}(),at=Q,it='<svg aria-hidden="true" data-prefix="fas" data-icon="forward" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="ctl svg-inline--fa fa-forward fa-w-16"><path data-v-b53fc01e="" fill="currentColor" d="M500.5 231.4l-192-160C287.9 54.3 256 68.6 256 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2zm-256 0l-192-160C31.9 54.3 0 68.6 0 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2z" class=""></path></svg>',nt='<svg aria-hidden="true" data-prefix="fas" data-icon="backward" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="ctl svg-inline--fa fa-backward fa-w-16"><path data-v-b53fc01e="" fill="currentColor" d="M11.5 280.6l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2zm256 0l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2z" class=""></path></svg>',st="dacasts3-vh.akamaihd.net",rt="i",ot=["click","touchend"],lt=(tt=h()(v.a.mark(function t(e,a){var i,n,s,r,o,l,c,u,d;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",null);case 2:if(i=e.getPlayerInstance()){t.next=5;break}return t.abrupt("return",null);case 5:if(n=a.dacast_content_id){t.next=8;break}return t.abrupt("return",null);case 8:return i.src?(s=i.src.match(/^(https?:)?\/\/([^/]+)\/([iz])\/secure/))?(st=s[2],rt=s[3]):console.log("[player:getNewSr
1c] can't get stream type and host from current src, using default/old"):console.log("[player:getNewSrc] current src not defined, using default/old stream type/host"),r=n.replace(/_/g,"/"),t.next=12,at.get("https://services.dacast.com/token/"+rt+"/b/"+r);case 12:return o=t.sent,l=o.data.token,c=a.dacast_video_details,u="i"===rt?c.hls:c.hds,d=(d="//"+st+u+l).replace(/\.raw,/,".mp4,"),t.abrupt("return",d);case 19:case"end":return t.stop()}},t,this)})),function(t,e){return tt.apply(this,arguments)});function ct(t,e){var a=window.THEOplayer.videojs.getComponent(e);if(void 0!==a)return a;var i=window.THEOplayer.videojs.getComponent("Button");a=window.THEOplayer.videojs.extend(i,{constructor:function(){i.apply(this,arguments)},buildCSSClass:function(){return"vjs-control vjs-button videojs-custom-button"}}),window.THEOplayer.videojs.registerComponent(e,a)}function ut(t){var e=t.currentTarget.getBoundingClientRect(),a=(t.pageX-e.left)/e.width;return a<0&&(a=0),a>1&&(a=1),a}var dt={name:"MiniPlayer",components:{FontAwesomeIcon:g.a,AddToPlaylist:I},props:[],data:function(){return{duration:null,currentTime:null,isPlaying:!1,isOnline:!1,volume:0,video:null,live:null,videos:[],videoRoute:null,currentPosition:0,
1currentVideoRecorded:!1}},computed:c()({currentMinSec:function(){if(!this.currentTime)return"0:00";if("object"===f()(this.currentTime))return"0:00";var t=Math.floor(this.currentTime/60)+":",e=Math.floor(this.currentTime%60);return e>=10?t+=e:t=t+"0"+e,t},playPauseIcon:function(){return this.isPlaying?"pause":"play"},volumeIcon:function(){return 0===this.volume?"volume-off":this.volume<.4?"volume-down":"volume-up"},volumeBarStyle:function(){return{width:Math.round(100*this.volume)+"%"}},contentTitle:function(){return this.live?this.live.title:this.video?this.video.title:null},artistName:function(){return this.live&&this.live.artist?this.live.artist.name:this.video&&this.video.artist?this.video.artist.name:null},myVideos:function(){return this.isLoggedIn?this.currentUser.default_playlists.my_videos:null},inMyVideos:function(){return!(!this.video||!this.myVide)&&-1!==this.myVideos.video_ids.indexOf(this.video.id)}},Object(u.c)("auth",["isLoggedIn"]),Object(u.c)("profile",["currentUser"]),Object(u.c)("realtime",["notifications"])),methods:c()({receivePlayer:function(t){var e=this,a=t.player,i=t.videoRoute,n=t.video,s=t.videos,r=t.position,o=t.live,l=a.getContentInfo().contentId;console.log("[mini player] received player with content id="+l+" from "+i),this.dacastPlayer=window.dacastPlayer=a,this.videoRoute=i,this.video=n,this.videos=s,this.currentPosition=r,this.live=o,this.isOnline=!!this.live,this.wrapper.appendChild(a.getElement()),this.$el.style.display="flex",this.duration=a.duration(),this.currentTime=a.currentTime(),this.progressCallbackId=window.setInterval(function(){return e.updateProgress()},200),this.currentVideoRecorded=this.currentTime>10,this.live&&(this.livePingIntervalId=window.setInterval(this.ping,1e4),this.ping()),a.on("complete",this.onComplete),window.setTimeout(function(){console.log("[mini player] resuming playback"),a.play()},100)},releasePlayer:function(t){var e=this.dacastPlayer;if(!e||this.videoRoute!==t)return null;console.log("[mini player] releasing player with video route="+t),this.progressCallbackId&&(window.clearInterval(this.progressCallbackId),this.progressCallbackId=null),this.livePingIntervalId&&(window.clearInterval(this.livePingIntervalId),this.livePingIntervalId=null),this.dacastPlayer.off("complete",this.onComplete);var a=this.video,i=this.currentPosition,n=this.live;return this.dacastPlayer=null,this.video=null,this.live=null,this.isPlaying=!1,this.$el.style.display="none",{video:a,stream:n,player:e,position:i}},getCurrentVideo:function(){return this.dacastPlayer?this.video:null},getCurrentLive:function(){return this.dacastPlayer?this.live:null},stopPlayback:function(){this.dacastPlayer&&(console.log("[mini player] stopping playback"),this.progressCallbackId&&(window.clearInterval(this.progressCallbackId),this.progressCallbackId=null),this.livePingIntervalId&&(window.clearInterval(this.livePingIntervalId),this.livePingIntervalId=null),this.dacastPlayer.dispose(),this.dacastPlayer=null,this.video=null,this.live=null,this.isPlaying=!1,this.$el.style.display="none")},getVolume:function(){if(this.dacastPlayer){var t=this.dacastPlayer.getPlayerInstance();if(t)return t.volume}},updateProgress:function(){var t=this.dacastPlayer;if(t){this.duration=t.duration(),this.currentTime=t.currentTime(),this.isPlaying=t.playing();var e=this.getVolume();if(null!==e&&(this.volume=e),this.isPlaying&&!this.live&&(this.$refs.progressBar.style.width=100*this.currentTime/this.duration+"%"),this.live){var a=t.getPlayerInstance();a&&(this.isOnline=a.network.online)}else this.currentTime>10&&this.recordVideo()}},seek:function(t){var e=this.dacastPlayer;if(e){var a=ut(t),i=a*e.duration();console.log("[mini player] seek to "+Math.round(100*a)+"% ("+Math.round(i)+"s)"),e.currentTime(i)}},setVolume:function(t){var e=this.dacastPlayer;if(e){var a=ut(t);a<.1&&(a=0),a>.9&&(a=1),console.log("[mini player] set volume to "+Math.round(100*a)+"%"),e.volume(a),this.volume=a}},togglePlay:function(){var t=this.dacastPlayer;t&&(t.playing()?(console.log("[mini player] pause"),t.pause(),this.isPlaying=!1):(console.log("[mini player] play"),t.play(),this.isPlaying=!0))},toggleMute:function(){var t=this.dacastPlayer;t&&(this.volume=0===this.volume?1:0,t.volume(this.volume))},next:function(){!this.videos||this.videos.length<2||this.switchVideo(this.currentPosition+1)},onComplete:function(){this.next()},prev:function(){!this.videos||this.videos.length<2||this.switchVideo(this.currentPosition-1)},switchVideo:function(t){var e=this;return h()(v.a.mark(function a(){var i;return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e.currentPosition=(t+e.videos.length)%e.videos.length,e.video=e.videos[e.currentPosition],e.currentTime=0,a.next=5,lt(e.dacastPlayer,e.video);case 5:i=a.sent,e.dacastPlayer.stop(),e.dacastPlayer.getPlayerInstance().src=i,e.currentVideoRecorded=!1,e.video&&(e.dacastPlayer.play(),e.updateVideoRoute());case 10:case"end":return a.stop()}},a,e)}))()},backToVideo:function(){this.$router.push(this.videoRoute)},onNotification:function(){if(this.isLoggedIn&&this.notifications.length)for(var t=0;t<this.notifications.length;t++){var e=this.notifications[t],a=e.type,i=e.content;"live-block"===a&&this.live&&this.live.id===i.id&&(this.stopPlayback(),this.$store.dispatch("flash/showMessage",{type:"error",message:"You have been blocked from this Livestream"}))}},recordVideo:function(){this.video&&!this.currentVideoRecorded&&(this.currentVideoRecorded=!0,this.isLoggedIn&&this.$store.dispatch("playlist/addToHistory",this.video.id),this.$store.dispatch("song/recordView",{id:this.video.id}),this.video.view_count=this.video.view_count+1)},ping:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.live){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.$store.dispatch("live/pingLiveEvent",{id:t.live.id});case 4:if(a=e.sent){e.next=7;break}return e.abrupt("return");case 7:a.has_ended&&(t.$store.dispatch("flash/showMessage",{message:a.message||"Live stream has ended"}),t.stopPlayback());case 8:case"end":return e.stop()}},e,t)}))()},updateVideoRoute:function(){if(this.videoRoute&&this.video){var t=new URL("http://example.com"+this.videoRoute),e=y.a.parse(t.search);return 0===t.pathname.indexOf("/video/")?(this.videoRoute="/video/"+this.video.id+t.search,void console.log("[mini player] updating video route to",this.videoRoute)):0===t.pathname.indexOf("/playlist/")||0===t.pathname.indexOf("/album/")?(e.pos=this.currentPosition,this.videoRoute=t.pathname+"?"+y.a.stringify(e),void console.log("[mini player] updating video route to",this.videoRoute)):void console.log("[mini player] not updating unsupported route",this.videoRoute)}}},O),watch:{isLoggedIn:"stopPlayback",notifications:"onNotification"},created:function(){this.$eventHub.$on("stop-playback",this.stopPlayback)},mounted:function(){this.wrapper=document.getElementById("dacast-hidden-player-wrapper"),this.dacastPlayer=null,this.progressCallbackId=null,this.livePingIntervalId=null,this.$store.commit("setMiniPlayer",this)},beforeDestroy:function(){this.$eventHub.$off("stop-playback",this.stopPlayback)}},vt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"row",attrs:{id:"mini-player","align-v":"center"}},[t.video?a("div",{staticClass:"title"},[a("router-link",{attrs:{to:t.videoRoute}},[a("img",{staticClass:"cover",attrs:{src:t.getThumbnail(t.video)}})]),t._v(" "),a("div",{staticClass:"details"},[a("router-link",{staticClass:"song-title",attrs:{to:t.videoRoute}},[t._v("\n "+t._s(t.video.title)+"\n "),t.inMyVideos?a("font-awesome-icon",{attrs:{icon:"check"}}):t._e()],1),t._v(" "),a("router-link",{staticClass:"song-artist",attrs:{to:{name:"artist-about",params:{artistId:t.video.artist.id}}}},[t._v("\n "+t._s(t.video.artist.name)+"\n ")])],1)],1):t._e(),t._v(" "),t.live?a("div",{staticClass:"title"},[t.live.promo_image?a("img",{staticClass:"cover",attrs:{src:t.live.promo_image}}):t._e(),t._v(" "),a("div",{staticClass:"details"},[a("router-link",{staticClass:"song-title",attrs:{to:t.videoRoute}},[t._v("\n "+t._s(t.live.title)+"\n ")]),t._v(" "),a("router-link",{staticClass:"song-artist",attrs:{to:{name:"artist-about",params:{artistId:t.live.artist.id}}}},[t._v("\n "+t._s(t.live.artist.name)+"\n ")])],1)]):t._e(),t._v(" "),t.video?a("div",{staticClass:"playback col-auto"},[a("div",{staticClass:"control"},[t.videos&&t.videos.length?a("font-awesome-icon",{staticClass:"ctl",attrs:{icon:"backward"},on:{click:t.prev}}):t._e(),t._v(" "),a("font-awesome-icon",{staticClass:"ctl",attrs:{icon:t.playPauseIcon},on:{click:t.togglePlay}}),t._v(" "),t.videos&&t.videos.length?a("font-awesome-icon",{staticClass:"ctl",attrs:{icon:"forward"},on:{click:t.next}}):t._e()],1),t._v(" "),a("div",{staticClass:"bar-bg",on:{click:t.seek}},[a("div",{ref:"progressBar",staticClass:"bar-fg"})])]):t._e(),t._v(" "),t.video?a("div",{staticClass:"time"},[t._v("\n "+t._s(t.currentMinSec)+"\n ")]):t._e(),t._v(" "),t.live?a("div",[t.live.is_live&&this.isOnline?a("div",{staticClass:"live online"},[a("font-awesome-icon",{attrs:{icon:"circle"}}),t._v(" Â LIVE\n ")],1):t._e(),t._v(" "),t.live.is_live&&!this.isOnline?a("div",{staticClass:"live ready"},[a("font-awesome-icon",{attrs:{icon:"spinner",spin:""}}),t._v("\n WAITING FOR STREAM\n ")],1):t._e(),t._v(" "),t.live.is_live?t._e():a("div",{staticClass:"live stopped"},[t._v("\n STOPPED\n ")])]):t._e(),t._v(" "),a("div",{staticClass:"volume"},[t.video&&t.isLoggedIn?a("font-awesome-icon",{staticClass:"ctl",attrs:{icon:"list",id:"miniPlayerAddToPlaylist"}}):t._e(),t._v(" "),t.video&&t.isLoggedIn?a("AddToPlaylist",{attrs:{target:"miniPlayerAddToPlaylist",video:t.video}}):t._e(),t._v(" "),a("font-awesome-icon",{staticClass:"ctl",attrs:{icon:t.volumeIcon,"fixed-width":""},on:{click:t.toggleMute}}),t._v(" "),a("div",{staticClass:"bar-bg",on:{click:t.setVolume}},[a("div",{staticClass:"bar-fg",style:t.volumeBarStyle})])],1),t._v(" "),a("font-awesome-icon",{staticClass:"ctl",attrs:{icon:"times"},on:{click:t.stopPlayback}})],1)},staticRenderFns:[]};var pt=a("VU/8")(dt,vt,!1,function(t){a("sK+n")},"data-v-42b5ca50",null).exports,ht={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-navbar",{staticClass:"header",attrs:{toggleable:"lg",type:"dark",fixed:"top",id:"header"}},[a("b-navbar-toggle",{attrs:{target:"nav-collapse"}}),t._v(" "),a("b-navbar-brand",{staticClass:"mr-auto",attrs:{to:{name:"landing"}}},[a("img",{staticClass:"logo",attrs:{src:"/static/img/songback-logo.svg"}})]),t._v(" "),a("b-collapse",{attrs:{"is-nav":"",id:"nav-collapse"}},[a("b-navbar-nav",{staticClass:"flex-grow-1 justify-content-center"},[a("b-nav-item",{attrs:{to:{name:"site-about"}}},[t._v("About")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"discover"}}},[t._v("Browse")])],1),t._v(" "),a("b-navbar-nav",[a("b-nav-item",{attrs:{to:{name:"account-login",query:t.$route.query}}},[t._v("Log In")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"account-signup",query:t.$route.query}}},[t._v("Sign Up")])],1)],1)],1)},staticRenderFns:[]};var mt=a("VU/8")({name:"PublicHeader",components:{}},ht,!1,function(t){a("HGmW")}
1,"data-v-f82adb20",null).exports,ft={name:"SearchBox",components:{FontAwesomeIcon:g.a},data:function(){return{q:""}},methods:{doSearch:function(t){t.preventDefault();var e=this.q.trim();e&&(this.q="",this.$emit("search",e),this.$router.push({name:"discover-results",query:{q:e}}))}}},bt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-form",{staticClass:"search-box",attrs:{inline:""},on:{submit:t.doSearch}},[a("b-form-input",{attrs:{size:"sm",type:"text",placeholder:"Search",autocomplete:"off"},model:{value:t.q,callback:function(e){t.q=e},expression:"q"}}),t._v(" "),a("font-awesome-icon",{attrs:{icon:"search"},on:{click:t.doSearch}})],1)},staticRenderFns:[]};var gt=a("VU/8")(ft,bt,!1,function(t){a("WlQd")},"data-v-0d8eb22e",null).exports,_t={name:"NavLinks",props:{artist:Boolean,withProfileLinks:Boolean},computed:c()({myVideos:function(){return this.currentUser.default_playlists?this.currentUser.default_playlists.my_videos:null},followerCount:function(){var t=this.$store.getters["artist/artist"].follower_count||0;return t+" Follower"+(1===t?"":"s")}},Object(u.c)("profile",["currentUser","isArtist","followedArtists"]))},yt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.artist?a("b-nav",{staticClass:"navlinks",attrs:{vertical:""}},[a("b-nav-item",{staticClass:"nl",attrs:{to:{name:"artist-dashboard"}}},[a("i",{staticClass:"sl-icon-home"}),t._v(" Dashboard\n ")]),t._v(" "),a("b-nav-item",{staticClass:"nl",attrs:{to:{name:"artist-video-list",params:{visibility:"public"}}}},[a("i",{staticClass:"sl-icon-layers"}),t._v(" Videos\n ")]),t._v(" "),a("b-nav-item",{staticClass:"nl",attrs:{to:{name:"artist-album-list",params:{visibility:"public"}}}},[a("i",{staticClass:"sl-icon-playlist"}),t._v(" Albums\n ")]),t._v(" "),a("b-nav-item",{staticClass:"nl",attrs:{to:{name:"artist-my-live-stream-list",params:{visibility:"public"}}}},[a("i",{staticClass:"sl-icon-camrecorder"}),t._v(" Live streams\n ")]),t._v(" "),a("b-nav-item",{staticClass:"nl",attrs:{to:{name:"artist-profile-edit"}}},[a("i",{staticClass:"sl-icon-settings"}),t._v(" Channel\n ")]),t._v(" "),t.withProfileLinks?a("b-nav-item",{staticClass:"nl",attrs:{to:{name:"artist-followers"}}},[a("i",{staticClass:"sl-icon-user"}),t._v(" "+t._s(t.followerCount)+"\n ")]):t._e()],1):a("b-nav",{staticClass:"navlinks",attrs:{vertical:""}},[a("b-nav-item",{staticClass:"nl",attrs:{to:{name:"fan-home"}}},[a("i",{staticClass:"sl-icon-home"}),t._v(" Home\n ")]),t._v(" "),t.withProfileLinks?a("b-nav-item",{staticClass:"nl",attrs:{to:{name:"fan-followed-artists"}}},[a("i",{staticClass:"sl-icon-user"}),t._v(" Following "+t._s(t.followedArtists.length)+"\n ")]):t._e(),t._v(" "),a("b-nav-item",{staticClass:"nl",attrs:{to:{name:"discover"}}},[a("i",{staticClass:"sl-icon-energy"}),t._v(" Browse\n ")]),t._v(" "),a("b-nav-item",{staticClass:"nl",attrs:{to:{name:"fan-playlist-list",meta:{type:"my"}}}},[a("i",{staticClass:"sl-icon-playlist"}),t._v(" Playlists\n ")]),t._v(" "),a("b-nav-item",{staticClass:"nl",attrs:{to:{name:"fan-history"}}},[a("i",{staticClass:"sl-icon-clock"}),t._v(" Recent Plays\n ")]),t._v(" "),t.myVideos?a("b-nav-item",{staticClass:"nl",attrs:{to:{name:"fan-playlist-detail",params:{id:t.myVideos.id}}}},[a("i",{staticClass:"sl-icon-layers"}),t._v(" Saved Videos\n ")]):t._e(),t._v(" "),a("b-nav-item",{staticClass:"nl",attrs:{to:{name:"fan-downloads"}}},[a("i",{staticClass:"sl-icon-cloud-download"}),t._v(" Downloads\n ")]),t._v(" "),a("b-nav-item",{staticClass:"nl",attrs:{to:{name:"fan-watchlist"}}},[a("i",{staticClass:"sl-icon-eye"}),t._v(" Watchlist\n ")])],1)},staticRenderFns:[]};var wt=a("VU/8")(_t,yt,!1,function(t){a("KUgd")},"data-v-ecb96fc2",null).exports,Ct=a("PJh5"),kt=a.n(Ct);kt.a.updateLocale("en",{relativeTime:{future:function(t){return t.includes("seconds")?parseInt(t)<10?"just now":"in a few seconds":"in "+t},past:function(t){return t.includes("seconds")?parseInt(t)<10?"just now":"a few seconds ago":t+" ago"},s:"%d seconds"}});var xt=kt.a,At={name:"Notification",props:{notification:Object,artistMode:Boolean},computed:c()({type:function(){return this.notification.type},content:function(){return this.notification.content},feedUpdateType:function(){return"feed-update"!==this.type?null:this.content.song?"video":this.content.live_event?"live":this.content.album?"album":void 0},when:function(){return xt(this.notification.created_at).fromNow()},liveStreamStart:function(){return"live-upcoming"!==this.type?"":xt(this.content.start).fromNow()},senderName:function(){return this.content.artist?this.content.artist.name:this.content.fan?this.displayName(this.content.fan):""},senderLink:function(){return this.content.artist?{name:"artist-about",params:{artistId:this.content.artist.id}}:this.content.fan?{name:"fan-profile",params:{id:this.content.fan.id}}:null},senderAvatar:function(){return this.content.artist?this.content.artist.avatar_image:this.content.fan?this.avatarImage(this.content.fan):null},getMessage:function(){return"feed-update"===this.type?this.notification.content.text.substr(0,200):""}},Object(u.c)("profile",["isArtist"])),methods:c()({},$)},St={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"notification"},[a("b-dropdown-item",{staticClass:"dropdown-avatar-item"},[t.senderAvatar?a("router-link",{attrs:{to:t.senderLink}},[a("img",{staticClass:"avatar",attrs:{src:t.senderAvatar}})]):t._e()],1),t._v(" "),a("div",{staticClass:"body"},[a("div",{staticClass:"header"},[t.senderName?a("div",{staticClass:"who"},[a("b-dropdown-item",[a("router-link",{attrs:{to:t.senderLink}},[t._v(t._s(t.senderName))])],1)],1):t._e(),t._v(" "),a("div",{staticClass:"when"},[t._v("\n "+t._s(t.when)+"\n ")])]),t._v(" "),"video"===t.feedUpdateType?a("div",{staticClass:"content"},[t._v("\n published video\n "),a("b-dropdown-item",[a("router-link",{attrs:{to:{name:"video-detail",params:{id:t.content.song.id}}}},[t._v(t._s(t.content.song.title))])],1)],1):"album"===t.feedUpdateType?a("div",{staticClass:"content"},[t._v("\n published album\n "),a("b-dropdown-item",[a("router-link",{attrs:{to:{name:"album-detail",params:{id:t.content.album.id}}}},[t._v(t._s(t.content.album.title))])],1)],1):"live"===t.feedUpdateType?a("div",{staticClass:"content"},[t._v("\n announced live stream\n "),a("b-dropdown-item",[a("router-link",{attrs:{to:{name:"artist-live-stream-detail",params:{artistId:t.content.artist.id,liveId:t.content.live_event.id}}}},[t._v(t._s(t.content.live_event.title))])],1)],1):"live-cancel"===t.type?a("div",{staticClass:"content"},[t._v("\n cancelled live stream "+t._s(t.content.title)+"\n ")]):"live-invite"===t.type?a("div",{staticClass:"content"},[t._v("\n invited you to\n "),a("b-dropdown-item",[a("router-link",{attrs:{to:{name:"artist-live-stream-detail",params:{artistId:t.content.artist.id,liveId:t.content.id}}}},[t._v(t._s(t.content.title))])],1)],1):"live-upcoming"===t.type?a("div",{staticClass:"content"},[t._v("\n starts live stream\n "),a("b-dropdown-item",[a("router-link",{attrs:{to:{name:"artist-live-stream-detail",params:{artistId:t.content.artist.id,liveId:t.content.id}}}},[t._v(t._s(t.content.title))])],1),t._v("\n "+t._s(t.liveStreamStart)+"\n ")],1):"live-block"===t.type?a("div",{staticClass:"content"},[t._v("\n has blocked you from\n "),a("b-dropdown-item",[a("router-link",{attrs:{to:{name:"artist-live-stream-detail",params:{artistId:t.content.artist.id,liveId:t.content.id}}}},[t._v(t._s(t.content.title))])],1)],1):"purchase-takedown"===t.type?a("div",{staticClass:"content"},[t._v("\n video\n "),a("b-dropdown-item",[a("router-link",{attrs:{to:{name:"video-detail",params:{id:t.content.id}}}},[t._v(t._s(t.content.title))])],1),t._v("\n was taken down\n ")],1):t.
1isArtist&&"booking"===t.type?a("div",{staticClass:"content"},[t._v("\n booked\n "),a("b-dropdown-item",[a("router-link",{attrs:{to:{name:"artist-live-stream",params:{id:t.content.live_event.id}}}},[t._v(t._s(t.content.live_event.title))])],1)],1):t.isArtist&&"album-purchase"===t.type?a("div",{staticClass:"content"},[t._v("\n purchased\n "),a("b-dropdown-item",[a("router-link",{attrs:{to:{name:"album-detail",params:{id:t.content.album.id}}}},[t._v(t._s(t.content.album.title))])],1)],1):t.isArtist&&"song-purchase"===t.type?a("div",{staticClass:"content"},[t._v("\n purchased\n "),a("b-dropdown-item",[a("router-link",{attrs:{to:{name:"video-detail",params:{id:t.content.song.id}}}},[t._v(t._s(t.content.song.title))])],1)],1):t.isArtist&&"song-takedown"===t.type?a("div",{staticClass:"content"},[a("b-dropdown-item",[a("router-link",{attrs:{to:{name:"video-detail",params:{id:t.content.id}}}},[t._v(t._s(t.content.title))])],1),t._v("\n was taken down\n ")],1):t.isArtist&&"donation"===t.type?a("div",{staticClass:"content"},[t._v("\n donated $"+t._s(t.content.amount)+"\n ")]):a("div",{staticClass:"content"},[t._v("\n "+t._s(t.getMessage)+"\n ")])])],1)},staticRenderFns:[]};var It=a("VU/8")(At,St,!1,function(t){a("fHnX")},"data-v-47fd48b3",null).exports,Pt={name:"PrivateHeader",components:{FontAwesomeIcon:g.a,SearchBox:gt,NavLinks:wt,Notification:It,LinkButton:x},props:["artistMode"],computed:c()({messagesLink:function(){return{name:this.artistMode&&this.isArtist?"artist-messages":"fan-messages"}},relevantNotifications:function(){return this.artistMode?this.artistNotifications:this.fanNotifications},dropdownName:function(){return this.artistMode&&this.isArtist?this.artist.name:this.displayName},homePage:function(){return this.isArtist&&this.artistMode?{name:"artist-dashboard"}:{name:"fan-home"}}},Object(u.c)("profile",["currentUser","avatarImage","displayName","isArtist","fanInbox","artistInbox"]),Object(u.c)("realtime",["artistNotifications","fanNotifications"]),Object(u.c)("artist",["artist"])),methods:{logout:function(){this.$store.dispatch("auth/logout")},markAsRead:function(){this.$store.dispatch("realtime/readNotifications",{artistMode:this.artistMode})},collapseMenu:function(){document.getElementById("nav-collapse").className.match(/show/)&&this.$root.$emit("bv::toggle::collapse","nav-collapse")}}},Tt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-navbar",{attrs:{toggleable:"lg",type:"dark",fixed:"top",id:"header"}},[a("b-navbar-toggle",{attrs:{target:"nav-collapse"}}),t._v(" "),a("b-navbar-brand",{staticClass:"mr-auto",attrs:{to:t.homePage}},[a("img",{staticClass:"logo desktop-only",attrs:{src:"/static/img/songback-logo.svg"}})]),t._v(" "),a("ul",{staticClass:"extra-nav align-items-center"},[a("b-nav-item",{staticStyle:{"list-style":"none"},attrs:{to:t.messagesLink}},[a("font-awesome-icon",{attrs:{icon:"envelope"}}),t._v(" "),t.artistMode&&t.artistInbox&&t.artistInbox.unread_count?a("div",{staticClass:"counter"},[t._v(t._s(t.artistInbox.unread_count))]):t._e(),t._v(" "),!t.artistMode&&t.fanInbox&&t.fanInbox.unread_count?a("div",{staticClass:"counter"},[t._v(t._s(t.fanInbox.unread_count))]):t._e()],1),t._v(" "),a("b-nav-item-dropdown",{staticClass:"sb-dropdown",attrs:{right:"","no-caret":""}},[a("template",{slot:"text"},[a("font-awesome-icon",{attrs:{icon:"bell"}}),t._v(" "),t.relevantNotifications.length>0?a("div",{staticClass:"counter"},[t._v(t._s(t.relevantNotifications.length))]):t._e()],1),t._v(" "),a("div",{staticClass:"scrollable"},t._l(t.relevantNotifications,function(e,i){return a("Notification",{key:i,attrs:{notification:e,artistMode:t.artistMode}})})),t._v(" "),t.relevantNotifications.length?a("b-dropdown-item",{staticClass:"text-center"},[a("LinkButton",{attrs:{u:!0},on:{click:t.markAsRead}},[t._v("mark all as read")])],1):a("b-dropdown-item",[t._v("No new notifications")])],2)],1),t._v(" "),a("b-nav",{staticClass:"mobile-only"},[a("b-nav-item-dropdown",{staticClass:"sb-dropdown",attrs:{right:"","no-caret":""}},[a("template",{slot:"text"},[t.artistMode&&t.isArtist?a("img",{staticClass:"avatar",attrs:{src:t.artist.avatar_image}}):a("img",{staticClass:"avatar",attrs:{src:t.avatarImage}})]),t._v(" "),a("b-dropdown-item",{attrs:{to:{name:"fan-profile-preview"}}},[t._v("Fan Account")]),t._v(" "),t.isArtist?a("b-dropdown-item",{attrs:{to:{name:"artist-dashboard",params:{id:t.currentUser.id}}}},[t._v("Artist Studio")]):a("b-dropdown-item",{attrs:{to:{name:"artist-onboarding"}}},[t._v("Artist Studio")]),t._v(" "),a("b-dropdown-item",{on:{click:t.logout}},[t._v("Logout")])],2)],1),t._v(" "),a("b-collapse",{ref:"navCollapse",attrs:{"is-nav":"",id:"nav-collapse"}},[a("b-navbar-nav",{staticClass:"flex-grow-1 justify-content-center"},[a("SearchBox",{staticClass:"searchbox-nav",on:{search:t.collapseMenu}})],1),t._v(" "),a("NavLinks",{staticClass:"mobile-only",attrs:{withProfileLinks:!0,artist:t.artistMode&&t.isArtist},on:{logout:t.logout}}),t._v(" "),a("b-navbar-nav",{staticClass:"desktop-only-flex"},[a("b-nav-item",{attrs:{to:t.messagesLink}},[a("font-awesome-icon",{attrs:{icon:"envelope"}}),t._v(" "),t.artistMode&&t.artistInbox&&t.artistInbox.unread_count?a("div",{staticClass:"counter"},[t._v(t._s(t.artistInbox.unread_count))]):t._e(),t._v(" "),!t.artistMode&&t.fanInbox&&t.fanInbox.unread_count?a("div",{staticClass:"counter"},[t._v(t._s(t.fanInbox.unread_count))]):t._e()],1),t._v(" "),a("b-nav-item-dropdown",{staticClass:"sb-dropdown",attrs:{right:"","no-caret":""}},[a("template",{slot:"text"},[a("font-awesome-icon",{attrs:{icon:"bell"}}),t._v(" "),t.relevantNotifications.length>0?a("div",{staticClass:"counter"},[t._v(t._s(t.relevantNotifications.length))]):t._e()],1),t._v(" "),a("div",{staticClass:"scrollable"},t._l(t.relevantNotifications,function(e,i){return a("Notification",{key:i,attrs:{notification:e,artistMode:t.artistMode}})})),t._v(" "),t.relevantNotifications.length?a("b-dropdown-item",{staticClass:"text-center"},[a("LinkButton",{attrs:{u:!0},on:{click:t.markAsRead}},[t._v("mark all as read")])],1):a("b-dropdown-item",[t._v("No new notifications")])],2),t._v(" "),a("b-nav-item-dropdown",{staticClass:"sb-dropdown",attrs:{right:""}},[a("template",{slot:"text"},[t.artistMode&&t.isArtist?a("img",{staticClass:"avatar",attrs:{src:t.artist.avatar_image}}):a("img",{staticClass:"avatar",attrs:{src:t.avatarImage}}),t._v(" "),a("span",{staticClass:"name"},[t._v(t._s(t.dropdownName))])]),t._v(" "),a("b-dropdown-item",{attrs:{to:{name:"fan-profile-preview"}}},[t._v("Fan Account")]),t._v(" "),t.isArtist?a("b-dropdown-item",{attrs:{to:{name:"artist-dashboard",params:{id:t.currentUser.id}}}},[t._v("Artist Studio")]):a("b-dropdown-item",{attrs:{to:{name:"artist-onboarding"}}},[t._v("Artist Studio")]),t._v(" "),a("b-dropdown-item",{on:{click:t.logout}},[t._v("Logout")])],2)],1)],1)],1)},staticRenderFns:[]};var Et=a("VU/8")(Pt,Tt,!1,function(t){a("5wP1")},"data-v-7c32ed65",null).exports,Lt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"footer"},[a("div",{staticClass:"left"},[t._v("\n Copyright 2018. Songback LLC. All Rights Reserved.\n ")]),t._v(" "),a("div",[a("router-link",{staticClass:"fl",attrs:{to:{name:"site-about"}}},[t._v("About")]),t._v(" "),a("router-link",{staticClass:"fl",attrs:{to:{name:"site-tos"}}},[t._v("Terms of Use")]),t._v(" "),a("router-link",{staticClass:"fl",attrs:{to:{name:"site-dmca"}}},[t._v("Copyright")]),t._v(" "),a("router-link",{staticClass:"fl",attrs:{to:{name:"site-fees"}}},[t._v("Fees and Payments")]),t._v(" "),a("router-link",{staticClass:"fl",attrs:{to:{name:"site-privacy"}}},[t._v("Privacy")]),t._v(" "),a("router-link",{staticClass:"fl",attrs:{to:{name:"site-press"}}},[t._v("Press")])],1),t._v(" "),a("div",{staticClass:"empty"},[t._v("\n  \n ")])])},staticRenderFns:[]};var $t=a("VU/8")({name:"Footer",components:{}},Lt,!1,function(t){a("FbdN")},"data-v-ea2d18e4",null).exports,Ot={name:"Sidebar",props:["artistMode"],components:{NavLinks:wt},computed:c()({},Object(u.c)("profile",["currentUser","isArtist","avatarImage","followedArtists"]),Object(u.c)("artist",["artist","artistAvatar"]),{displayName:function(){return this.isArtist&&this.artistMode?this.artist.name:this.$store.getters["profile/displayName"]},followerCount:function(){var t=this.artist.follower_count||0;return t+" Follower"+(1===t?"":"s")}})},Rt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sidebar"},[t.artistMode&&t.isArtist?a("img",{staticClass:"avatar",attrs:{src:t.artistAvatar}}):a("img",{staticClass:"avatar",attrs:{src:t.avatarImage}}),t._v(" "),t.isArtist?a("b-dropdown",{staticClass:"artist-dropdown",attrs:{size:"sm",text:t.displayName}},[a("b-dropdown-item",{attrs:{to:{name:"fan-home"}}
1},[t._v("Browse as fan")]),t._v(" "),a("b-dropdown-item",{attrs:{to:{name:"artist-dashboard"}}},[t._v("Artist studio")])],1):t._e(),t._v(" "),t.isArtist?t._e():a("div",{staticClass:"fan-name"},[t._v("\n "+t._s(t.displayName)+"\n ")]),t._v(" "),a("hr"),t._v(" "),t.artistMode?a("router-link",{staticClass:"counter",attrs:{to:{name:"artist-followers"}}},[t._v("\n "+t._s(t.followerCount)+"\n ")]):t._e(),t._v(" "),t.artistMode?t._e():a("router-link",{staticClass:"counter",attrs:{to:{name:"fan-followed-artists"}}},[t._v("\n Following "+t._s(t.followedArtists.length)+"\n ")]),t._v(" "),a("NavLinks",{staticClass:"padded",attrs:{artist:t.artistMode&&t.isArtist}})],1)},staticRenderFns:[]};var Ft={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"position"},[e("div",{class:this.msgClass},[this._v("\n "+this._s(this.message.message)+"\n ")])])},staticRenderFns:[]};var Mt={name:"App",components:{MiniPlayer:pt,PublicHeader:mt,PrivateHeader:Et,Footer:$t,Sidebar:a("VU/8")(Ot,Rt,!1,function(t){a("34oT")},"data-v-1a4ea35e",null).exports,FlashMessage:a("VU/8")({name:"FlashMessage",props:["message"],computed:{msgClass:function(){var t=["flash-message"];return this.message&&this.message.type&&t.push(this.message.type),t}}},Ft,!1,function(t){a("g9Tl")},"data-v-f6099526",null).exports,FontAwesomeIcon:g.a},computed:c()({},Object(u.c)("auth",["isLoggedIn"]),Object(u.c)("profile",["isArtist"]),Object(u.c)("flash",["flashMessage","modalMessage"]),{browseAsArtist:function(){return"artist"===this.$route.meta.requireUserType&&this.isArtist},fluidPage:function(){return!!this.$route.meta.fluidPage},footerClass:function(){return this.fluidPage?"":"mt-3"},showSidebar:function(){return this.isLoggedIn&&!this.$route.meta.hideSidebar}}),watch:{modalMessage:function(t){var e=this;t?this.$refs.modalMessage.show():(this.$refs.modalMessage.hide(),setTimeout(function(){e.$refs.modalMessage.hide()},200))}},created:function(){this.$store.dispatch("social/init"),this.isLoggedIn&&(this.$store.dispatch("profile/getCurrentUser"),this.$store.dispatch("realtime/initNotifications"),this.$store.dispatch("profile/listFollowedArtists"))}},Ut={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"app"}},[t.isLoggedIn?a("PrivateHeader",{attrs:{artistMode:t.browseAsArtist}}):a("PublicHeader"),t._v(" "),a("b-container",{staticClass:"root-container",attrs:{fluid:t.fluidPage}},[a("b-row",{staticClass:"root-row"},[t.showSidebar?a("Sidebar",{attrs:{artistMode:t.browseAsArtist}}):t._e(),t._v(" "),a("b-col",{staticClass:"router-content"},[a("transition",{attrs:{name:"flash-message-fade"}},[t.flashMessage?a("FlashMessage",{attrs:{message:t.flashMessage}}):t._e()],1),t._v(" "),a("router-view")],1)],1)],1),t._v(" "),a("Footer",{class:t.footerClass}),t._v(" "),a("MiniPlayer"),t._v(" "),a("div",{attrs:{id:"dacast-hidden-player-wrapper"}}),t._v(" "),a("div",{attrs:{id:"dacast-temp-player"}}),t._v(" "),a("b-modal",{ref:"modalMessage",staticClass:"no-decorations",attrs:{id:"modalMessage",title:"Please wait ...","no-close-on-esc":"","no-close-on-backdrop":"","hide-header-close":"",centered:""}},[a("div",{staticClass:"content"},[a("font-awesome-icon",{attrs:{icon:"spinner",size:"lg",spin:""}}),t._v(" "),a("br"),t._v("\n "+t._s(t.modalMessage)+"\n ")],1)])],1)},staticRenderFns:[]};var Nt=a("VU/8")(Mt,Ut,!1,function(t){a("9Vrr")},null,null).exports,Vt=a("/ocq"),jt={name:"Landing",data:function(){return{topTimer:null,topSlides:[{hero:{lead:"Join a MUSIC",title:"Live Stream and <br> Video-On-Demand Experience",sub:"Get access to videos, live streams, and downloads of your favorite artists, and interact with them 1-on-1."},box:{heading:"Bring",subheading:"Art to Life",tagline:"A video first experience."}},{hero:{lead:"Create a real connection, and",title:'Fans will "Back" You <br> the Entire Way',sub:"Take fans inside the studio, go behind the scenes, play a private concert, and broadcast it all live!"},box:{heading:"Find",subheading:"An Audience",tagline:"Do it on a single platform."}},{hero:{lead:"Forget number of views/streams, just",title:"Create the Most Valuable<br> Content Possible",sub:"Find tools to completely customize a music experience for fans, one that they'd be willing to pay for."},box:{heading:"Change",subheading:"The Rules",tagline:"Something fans will pay for."}}],currentTopSlide:0}},computed:{topHeroBg:function(){return{"background-image":"url(/static/img/landing/top-"+this.currentTopSlide+".jpg)"}},topHero:function(){return this.topSlides[this.currentTopSlide].hero}},mounted:function(){this.topTimer=setInterval(this.nextSlide,7e3)},beforeDestroy:function(){clearInterval(this.topTimer),this.topTimer=null},methods:{topSlideClass:function(t){var e=["slide"];return t===this.currentTopSlide&&e.push("highlight"),e},nextSlide:function(){this.topSlides.length&&(this.currentTopSlide=(this.currentTopSlide+1)%this.topSlides.length)}}},Dt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"pane top-pane",style:t.topHeroBg},[a("div",{staticClass:"mask"},[a("b-container",[a("b-row",{staticClass:"hero"},[a("b-col",[a("div",[a("div",[a("h3",{domProps:{innerHTML:t._s(t.to
1pHero.lead)}}),t._v(" "),a("h1",{domProps:{innerHTML:t._s(t.topHero.title)}}),t._v(" "),a("h6",{domProps:{innerHTML:t._s(t.topHero.sub)}})]),t._v(" "),a("b-button",{staticClass:"btn-decorated px-4",attrs:{to:{name:"account-signup"}}},[t._v("sign up now")])],1)])],1),t._v(" "),a("b-row",{staticClass:"justify-content-center nav slide-wrapper"},[a("b-col",{attrs:{cols:"12",lg:"10"}},[a("div",{staticClass:"slides"},t._l(t.topSlides,function(e,i){return a("div",{key:i,class:t.topSlideClass(i)},[a("h4",[t._v(t._s(e.box.heading))]),t._v(" "),a("h3",{staticClass:"u"},[t._v(t._s(e.box.subheading))]),t._v(" "),a("h6",[t._v(t._s(e.box.tagline))])])}))])],1)],1)],1)]),t._v(" "),a("div",{staticClass:"pane fan-pane"},[a("b-container",{staticClass:"centered"},[a("b-row",[a("b-col",{staticClass:"text-center hero"},[a("h2",[t._v("Time to meet the artists")]),t._v(" "),a("p",[t._v("\n Search and discover new artists, follow the ones you like, "),a("br"),t._v("\n back the ones you love!\n ")]),t._v(" "),a("router-link",{staticClass:"signup",attrs:{to:{name:"account-signup"}}},[t._v("\n SIGN UP NOW!\n ")])],1)],1),t._v(" "),a("b-row",{staticClass:"promo"},[a("b-col",{staticClass:"text d-flex flex-column justify-content-center",attrs:{cols:"12",lg:"4"}},[a("h2",[t._v("\n Watch your "),a("br"),t._v(" favorite artists\n "),a("div",{staticClass:"live"},[t._v("â live")])]),t._v(" "),a("p",[t._v("\n Get in on live shows, studio sessions,\n backstage Q&Aâs, and private concerts!\n ")])]),t._v(" "),a("b-col",{staticClass:"donate",attrs:{cols:"12",lg:"8"}},[a("img",{attrs:{src:"/static/img/landing/fan-live.png"}})]),t._v(" "),a("div",{staticClass:"borders"})],1)],1)],1),t._v(" "),a("div",{staticClass:"pane playlists-pane"},[a("b-container",{staticClass:"centered"},[a("b-row",{staticClass:"promo"},[a("b-col",{staticClass:"text p-4",attrs:{cols:"12",lg:"4"}},[a("h2",[t._v("\n Watch videos "),a("br"),t._v("\n on-demand\n ")]),t._v(" "),a("p",[t._v("\n Create your own playlists, search by\n genre, mood, or instrument, and\n get real-time updates!\n ")]),t._v(" "),a("b-button",{staticClass:"btn-decorated px-4",attrs:{to:{name:"account-signup"}}},[t._v("sign up now")])],1),t._v(" "),a("b-col",{staticClass:"videos",attrs:{cols:"12",lg:"8"}},[a("img",{attrs:{src:"/static/img/landing/fan-ondemand.png"}})])],1)],1)],1),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pane artists-pane"},[a("div",{staticClass:"hero"},[a("h1",[t._v("Welcome Artists")]),t._v(" "),a("p",[t._v("Put your best content out there!")])]),t._v(" "),a("div",{staticClass:"sub"},[a("div",{staticClass:"sub-item sub-1"},[a("div",{staticClass:"text"},[a("h2",{staticClass:"number"},[t._v("01")]),t._v(" "),a("h2",[a("div",{staticClass:"pink"},[t._v("Join the artist studio")])]),t._v(" "),a("p",[t._v("Post activity of recent uploads, new releases, and of upcoming live streaming events.")])]),t._v(" "),a("div",{staticClass:"img"},[a("img",{attrs:{src:"/static/img/landing/artist-studio.png"}})])]),t._v(" "),a("div",{staticClass:"sub-item sub-2"},[a("div",{staticClass:"bg"},[t._v("Â ")]),t._v(" "),a("div",{staticClass:"text"},[a("h2",{staticClass:"number"},[t._v("02")]),t._v(" "),a("h2",[a("div",{staticClass:"pink"},[t._v("Upload your videos")])]),t._v(" "),a("p",[t._v("Release singles, EPs, albums, or collections. Promote and distribute how you want. Itâs up to you!")])]),t._v(" "),a("div",{staticClass:"img"},[a("img",{attrs:{src:"/static/img/landing/artist-videos.png"}})]),t._v(" "),a("div",{staticClass:"cta"},[a("h3",[t._v("Sell digital"),a("br"),t._v("tracks and"),a("br"),t._v("albums")])])]),t._v(" "),a("div",{staticClass:"sub-item sub-3"},[a("div",{staticClass:"bg"},[t._v("Â ")]),t._v(" "),a("div",{staticClass:"text"},[a("h2",{staticClass:"number"},[t._v("03")]),t._v(" "),a("h2",[a("div",{staticClass:"pink"},[t._v("Create up close & interactive moments")])]),t._v(" "),a("p",[t._v("Share something special. Make it a paid live streaming event, or leave it open for donations.")])]),t._v(" "),a("div",{staticClass:"img"},[a("img",{attrs:{src:"/static/img/landing/artist-live.png"}})]),t._v(" "),a("div",{staticClass:"cta"},[a("h3",[t._v("Receive"),a("br"),t._v("donations"),a("br"),t._v("anytime!")])])])])])}]};var Bt=a("VU/8")(jt,Dt,!1,function(t){a("toH9")},null,null).exports,Ht=a("ESwS"),qt=a("+cKO"),zt={name:"Loader",components:{FontAwesomeIcon:g.a}},Wt={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"loader-container d-flex justify-content-center align-items-center"},[e("font-awesome-icon",{attrs:{icon:"spinner",size:"3x",spin:""}})],1)},staticRenderFns:[]};var Gt=a("VU/8")(zt,Wt,!1,function(t){a("1gxa")},"data-v-f2fed5fe",null).exports,Yt={name:"SocialLogin",computed:c()({},Object(u.c)("social",["fbInitialized","googleInitialized","googleAuth2"])),mou
1nted:function(){this.fbInitialized&&this.googleInitialized&&this.initComponent()},watch:{googleInitialized:"initComponent",fbInitialized:"initComponent"},methods:{initComponent:function(){var t=this,e=arguments;this.googleInitialized&&this.fbInitialized&&(window.gapi.signin2.render("btnGoogleSignIn",{scope:"profile email",width:200,height:40,longtitle:!0,theme:"dark",onsuccess:function(e){t.handleGoogleUser(e)},onfailure:function(){console.log("[social-login:google] error logging in",e)}}),window.FB.Event.subscribe("auth.authResponseChange",function(e){t.handleFbAuth(e)}),window.FB.XFBML.parse(),window.FB.getLoginStatus(function(e){e&&"connected"===e.status&&t.handleFbAuth(e)}))},handleGoogleUser:function(t){var e=this;return h()(v.a.mark(function a(){var i,n;return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return i=t.getAuthResponse(),a.prev=1,a.next=4,e.$store.dispatch("auth/socialAuth",{provider:"google",token:i.id_token});case 4:a.next=12;break;case 6:a.prev=6,a.t0=a.catch(1),n="Unable to log in",a.t0.response&&a.t0.response.data&&a.t0.response.data.message&&(n=a.t0.response.data.message),e.$store.dispatch("flash/showMessage",{message:n,type:"error"}),e.$store.dispatch("social/logout");case 12:case"end":return a.stop()}},a,e,[[1,6]])}))()},handleFbAuth:function(t){var e=this;return h()(v.a.mark(function a(){var i;return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if("connected"===t.status)try{e.$store.dispatch("auth/socialAuth",{provider:"facebook",token:t.authResponse.accessToken})}catch(t){i="Unable to log in",t.response&&t.response.data&&t.response.data.message&&(i=t.response.data.message),e.$store.dispatch("flash/showMessage",{message:i,type:"error"}),e.$store.dispatch("social/logout")}else console.log("[social-login:facebok] error logging in",t);case 1:case"end":return a.stop()}},a,e)}))()}}},Kt={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"sl"},[e("div",{staticClass:"fb-login-button mr-2",attrs:{"data-max-rows":"1","data-size":"large","data-button-type":"login_with","data-show-faces":"false","data-auto-logout-link":"false","data-scope":"public_profile,email","data-use-continue-as":"true"}}),this._v(" "),e("div",{staticClass:"ml-2",attrs:{id:"btnGoogleSignIn"}})])}]};var Xt=a("VU/8")(Yt,Kt,!1,function(t){a("8VF9")},"data-v-d11ccbde",null).exports,Jt={name:"Login",components:{Loader:Gt,SocialLogin:Xt},data:function(){return{form:{username:"",password:"",next:this.$route.query.next}}},mixins:[Ht.validationMixin],validations:{form:{username:{required:qt.required},password:{required:qt.required}}},computed:c()({},Object(u.c)("auth",["isLoading","error"])),methods:c()({},Object(u.b)("auth",["login"]),{getFieldState:function(t){var e=this.$v.form[t];return void 0===e?null:(!e.$dirty||!e.$error)&&null},onSubmit:function(t){this.$v.$touch(),this.$v.$invalid||this.login(this.form)}})},Qt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login"},[a("b-container",[a("b-row",[a("b-col",{attrs:{md:"7",lg:"5"}},[a("div",{staticClass:"form-decorated"},[t.isLoading?a("loader"):t._e(),t._v(" "),t.error?a("div",{staticClass:"errors"},t._l(t.error,function(e,i){return a("b-alert",{key:"error-"+i,attrs:{show:"",variant:"danger"}},[t._v("\n "+t._s(e)+"\n ")])})):t._e(),t._v(" "),a("b-form",{attrs:{novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[a("b-form-group",{attrs:{id:"username",label:"Username","label-for":"username"}},[a("b-form-input",{attrs:{id:"username",type:"text",state:t.getFieldState("username")},model:{value:t.form.username,callback:function(e){t.$set(t.form,"username",e)},expression:"form.username"}}),t._v(" "),a("b-form-invalid-feedback",[t._v("\n Username is required\n ")])],1),t._v(" "),a("b-form-group",{attrs:{id:"password",label:"Password","label-for":"password"}},[a("b-form-input",{attrs:{id:"password",type:"password",state:t.getFieldState("password")},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}}),t._v(" "),a("b-form-invalid-feedback",[t._v("\n Password is required\n ")])],1),t._v(" "),a("b-form-group",[a("router-link",{attrs:{to:{name:"account-forgot-password"}}},[t._v("I forgot my password")])],1),t._v(" "),a("b-button",{staticClass:"btn-decorated",attrs:{type:"submit"}},[t._v("Log in")])],1)],1),t._v(" "),a("social-login",{staticClass:"social-login"})],1)],1)],1)],1)},staticRenderFns:[]};var Zt=a("VU/8")(Jt,Qt,!1,function(t){a("kGz+")},"data-v-5283b2fc",null).exports,te=a("olAn"),ee=qt.helpers.regex("validUsername",/^[a-z0-9]+$/),ae={name:"Signup",components:{Loader:Gt,SocialLogin:Xt,VueRecaptcha:te.a},data:function(){return{form:{email:"",username:"",password:"",repeatPassword:"",terms:!1},RECAPTCHA_SITE_KEY:z}}
1,mixins:[Ht.validationMixin],validations:{form:{email:{required:qt.required,email:qt.email},username:{required:qt.required,validUsername:ee,minLength:Object(qt.minLength)(4)},password:{required:qt.required,minLength:Object(qt.minLength)(8)},repeatPassword:{sameAsPassword:Object(qt.sameAs)("password")},terms:{mustBeChecked:function(t){return t}}}},computed:c()({},Object(u.c)("auth",["isLoading","error"])),methods:c()({},Object(u.b)("auth",["register"]),{getFieldState:function(t){var e=this.$v.form[t];return void 0===e?null:(!e.$dirty||!e.$error)&&null},onSubmit:function(t){this.$v.$touch(),this.$v.$invalid||this.$refs.recaptcha.execute()},onCaptchaVerified:function(t){this.$refs.recaptcha.reset(),this.register({email:this.form.email,username:this.form.username,password:this.form.password,next:this.$route.query.next,recaptchaToken:t})},onCaptchaExpired:function(){this.$refs.recaptcha.reset()}})},ie={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"signup"},[a("b-container",[a("b-row",[a("b-col",{attrs:{md:"6",lg:"5"}},[a("div",{staticClass:"form-decorated"},[t.isLoading?a("loader"):t._e(),t._v(" "),t.error?a("div",{staticClass:"errors"},t._l(t.error,function(e,i){return a("b-alert",{key:"error-"+i,attrs:{show:"",variant:"danger"}},[t._v("\n "+t._s(e)+"\n ")])})):t._e(),t._v(" "),a("b-form",{attrs:{novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[a("b-form-group",{attrs:{id:"email",label:"Your e-mail","label-for":"email"}},[a("b-form-input",{attrs:{id:"email",type:"email",state:t.getFieldState("email")},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}}),t._v(" "),a("b-form-invalid-feedback",[t._v("\n "+t._s(t.$v.form.email.required?"Email must have valid email address":"Email is required")+"\n ")])],1),t._v(" "),a("b-form-group",{attrs:{id:"username",label:"Cho
1ose a username (for fan profile)","label-for":"username"}},[a("b-form-input",{attrs:{id:"username",type:"text",placeholder:"exampleuser",state:t.getFieldState("username")},model:{value:t.form.username,callback:function(e){t.$set(t.form,"username","string"==typeof e?e.trim():e)},expression:"form.username"}}),t._v(" "),a("b-form-invalid-feedback",[t._v("\n "+t._s(t.$v.form.username.required?"Username must contain at least "+t.$v.form.username.$params.minLength.min+" characters (lowercase letters and numbers only)":"Username is required")+"\n ")])],1),t._v(" "),a("b-form-group",{attrs:{id:"password",label:"Choose your password","label-for":"password"}},[a("b-form-input",{attrs:{id:"password",type:"password",state:t.getFieldState("password")},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}}),t._v(" "),a("b-form-invalid-feedback",[t._v("\n "+t._s(t.$v.form.password.required?"Password must have at least "+t.$v.form.password.$params.minLength.min+" characters":"Password is required")+"\n ")])],1),t._v(" "),a("b-form-group",{attrs:{id:"repeat-password",label:"Repeat your password","label-for":"repeat-password"}},[a("b-form-input",{attrs:{id:"repeat-password",type:"password",state:t.getFieldState("repeatPassword")},model:{value:t.form.repeatPassword,callback:function(e){t.$set(t.form,"repeatPassword",e)},expression:"form.repeatPassword"}}),t._v(" "),a("b-form-invalid-feedback",[t._v("\n Password does not match\n ")])],1),t._v(" "),a("b-form-group",{attrs:{id:"terms-of-use",state:t.getFieldState("terms"),"invalid-feedback":"You must agree to Terms of Use"}},[a("b-form-checkbox",{attrs:{id:"terms",state:t.getFieldState("terms")},model:{value:t.form.terms,callback:function(e){t.$set(t.form,"terms",e)},expression:"form.terms"}},[t._v("\n I accept the "),a("a",{attrs:{href:"/site/tos",target:"_blank"}},[t._v("Terms of Use")])])],1),t._v(" "),a("vue-recaptcha",{ref:"recaptcha",attrs:{size:"invisible",sitekey:t.RECAPTCHA_SITE_KEY},on:{verify:t.onCaptchaVerified,expired:t.onCaptchaExpired}}),t._v(" "),a("b-button",{staticClass:"btn-decorated",attrs:{type:"submit"}},[t._v("Sign up")])],1)],1),t._v(" "),a("social-login",{staticClass:"social-login"})],1)],1)],1)],1)},staticRenderFns:[]};var ne=a("VU/8")(ae,ie,!1,function(t){a("wpco")},"data-v-d6c6c856",null).exports,se={name:"ForgotPassword",components:{Loader:Gt},data:function(){return{email:""}},computed:c()({},Object(u.c)("auth",["isLoading","error"])),methods:{onSubmit:function(t){var e=this;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.email){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,e.$store.dispatch("auth/resetPassword",e.email);case 5:t.next=11;break;case 7:return t.prev=7,t.t0=t.catch(2),e.$store.dispatch("flash/showMessage",{message:"Please enter a valid e-mail address",type:"error"}),t.abrupt("return");case 11:e.$store.dispatch("flash/showMessage",{message:"We've sent an email with password reset instructions to your email address"}),e.$router.push({name:"account-login"});case 13:case"end":return t.stop()}},t,e,[[2,7]])}))()}}},re={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login"},[a("b-container",[a("b-row",[a("b-col",{attrs:{md:"7",lg:"5"}},[a("div",{staticClass:"form-decorated"},[t.isLoading?a("loader"):t._e(),t._v(" "),a("b-form",{attrs:{novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[a("b-form-group",{attrs:{id:"email",label:"E-mail address","label-for":"email"}},[a("b-form-input",{attrs:{id:"email",type:"text"},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}})],1),t._v(" "),a("b-button",{staticClass:"btn-decorated",attrs:{type:"submit"}},[t._v("Reset Password")])],1)],1)])],1)],1)],1)},staticRenderFns:[]};var oe=a("VU/8")(se,re,!1,function(t){a("8uPp")},"data-v-73ad6c7c",null).exports,le={name:"ResetPassword",components:{Loader:Gt},data:function(){return{form:{password:"",repeatPassword:""}}}
1,mixins:[Ht.validationMixin],validations:{form:{password:{required:qt.required,minLength:Object(qt.minLength)(8)},repeatPassword:{sameAsPassword:Object(qt.sameAs)("password")}}},computed:c()({},Object(u.c)("auth",["isLoading","error"])),methods:{getFieldState:function(t){var e=this.$v.form[t];return void 0===e?null:(!e.$dirty||!e.$error)&&null},onSubmit:function(t){var e=this;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return");case 3:return t.prev=3,t.next=6,e.$store.dispatch("auth/confirmResetPassword",{uid:e.$route.params.uid,token:e.$route.params.token,password:e.form.password});case 6:t.next=12;break;case 8:return t.prev=8,t.t0=t.catch(3),e.$store.dispatch("flash/showMessage",{message:"Can't change password",type:"error"}),t.abrupt("return");case 12:e.$store.dispatch("flash/showMessage",{message:"Password changed"}),e.$router.push({name:"account-login"});case 14:case"end":return t.stop()}},t,e,[[3,8]])}))()}}},ce={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login"},[a("b-container",[a("b-row",[a("b-col",{attrs:{md:"7",lg:"5"}},[a("div",{staticClass:"form-decorated"},[t.isLoading?a("loader"):t._e(),t._v(" "),a("b-form",{attrs:{novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[a("b-form-group",{attrs:{id:"password",label:"Choose your password","label-for":"password"}},[a("b-form-input",{attrs:{id:"password",type:"password",state:t.getFieldState("password")},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}}),t._v(" "),a("b-form-invalid-feedback",[t._v("\n "+t._s(t.$v.form.password.required?"Password must have at least "+t.$v.form.password.$params.minLength.min+" letters":"Password is required")+"\n ")])],1),t._v(" "),a("b-form-group",{attrs:{id:"repeat-password",label:"Repeat your password","label-for":"repeat-password"}},[a("b-form-input",{attrs:{id:"repeat-password",type:"password",state:t.getFieldState("repeatPassword")},model:{value:t.form.repeatPassword,callback:function(e){t.$set(t.form,"repeatPassword",e)},expression:"form.repeatPassword"}}),t._v(" "),a("b-form-invalid-feedback",[t._v("\n Password does not match\n ")])],1),t._v(" "),a("b-button",{staticClass:"btn-decorated",attrs:{type:"submit"}},[t._v("Reset Password")])],1)],1)]),t._v(" "),a("b-col",{staticClass:"title",attrs:{"align-self":"end"}},[a("h1",[t._v("\n Full "),a("br"),t._v("\n music "),a("br"),t._v("\n experience\n ")])])],1)],1)],1)},staticRenderFns:[]};var ue,de,ve=a("VU/8")(le,ce,!1,function(t){a("agXG")},"data-v-102de337",null).exports,pe=a("bOdI"),he=a.n(pe),me=a("nfWN"),fe=a.n(me),be=function(){var t=h()(v.a.mark(function t(e,a){var i,n=e.dispatch,s=e.commit,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return s("LOGIN_SUCCESS",a),i=void 0,t.prev=2,t.next=5,n("profile/getCurrentUser",null,{root:!0});case 5:i=t.sent,t.next=12;break;case 8:return t.prev=8,t.t0=t.catch(2),n("flash/showMessage",{message:"Unable to log in",type:"error"}),t.abrupt("return");case 12:if(n("song/refreshSongsWithAccess",null,{root:!0}),i.artist?s("artist/setArtist",i.artist,{root:!0}):s("artist/setArtist",{},{root:!0}),n("realtime/initNotifications",null,{root:!0}),n("profile/refreshFollowedArtists",null,{root:!0}),!i.artist||i.artist.stripe_account_id){t.next=19;break}return so.push({name:"artist-onboarding"}),t.abrupt("return");case 19:r?so.push(r):so.push({name:"fan-home"});case 20:case"end":return t.stop()}},t,this,[[2,8]])}));return function(e,a){return t.apply(this,arguments)}}(),ge={namespaced:!0,state:{authToken:K("auth_token"),loading:!1,error:null},getters:{isLoggedIn:function(t){return!!t.authToken},isLoading:function(t){return t.loading},error:function(t){return t.error}},mutations:(ue={},he()(ue,"REGISTER_REQUEST",function(t){t.loading=!0,t.error=null}
1),he()(ue,"REGISTER_SUCCESS",function(t,e){t.loading=!1,t.authToken=null}),he()(ue,"REGISTER_ERROR",function(t,e){t.loading=!1,t.error=e}),he()(ue,"LOGIN_REQUEST",function(t){t.loading=!0,t.error=null}),he()(ue,"LOGIN_SUCCESS",function(t,e){Y("auth_token",e),t.loading=!1,t.authToken=e}),he()(ue,"LOGIN_ERROR",function(t,e){t.loading=!1,t.error=e}),he()(ue,"LOGOUT",function(t){X("auth_token"),t.loading=!1,t.authToken=null}),ue),actions:{register:function(t,e){var a=this,i=t.commit,n=t.dispatch;return h()(v.a.mark(function t(){var s,r,o,l,c,u;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return s=e.username,r=e.email,o=e.password,l=e.recaptchaToken,c=e.next,u=void 0===c?null:c,t.prev=1,i("REGISTER_REQUEST"),t.next=5,at.post(J.auth.register(),{username:s,email:r,password1:o,password2:o,recaptcha_token:l});case 5:return i("REGISTER_SUCCESS"),n("login",{username:s,password:o,next:u}),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(1),i("REGISTER_ERROR",fe()(t.t0.response.data)),t.abrupt("return",!1);case 14:case"end":return t.stop()}},t,a,[[1,10]])}))()},login:function(t,e){var a=this,i=t.commit,n=t.dispatch;return h()(v.a.mark(function t(){var s,r,o,l;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return s=e.username,r=e.password,o=e.next,t.prev=1,i("LOGIN_REQUEST"),t.next=5,at.post(J.auth.login(),{username:s,password:r});case 5:return l=t.sent,t.next=8,be({commit:i,dispatch:n},l.data.key,o);case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),t.t0.response&&t.t0.response.data&&i("LOGIN_ERROR",fe()(t.t0.response.data));case 13:case"end":return t.stop()}},t,a,[[1,10]])}))()},logout:function(t){var e=t.commit,a=t.dispatch;e("LOGOUT"),e("profile/CLEAR_CURRENT_USER",null,{root:!0}),e("artist/setArtist",{},{root:!0}),a("social/logout",null,{root:!0}),a("realtime/stopLiveChat",null,{root:!0}),a("realtime/stopNotifications",null,{root:!0}),so.push("/")},socialAuth:function(t,e){var a=this,i=e.provider,n=e.token;return h()(v.a.mark(function e(){var s;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,at.post(J.auth.social(i),{token:n});case 2:return s=e.sent,e.next=5,be(t,s.data.key);case 5:case"end":return e.stop()}},e,a)}))()},resetPassword:function(t,e){var a=this;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",at.post(J.auth.resetPassword(),{email:e}));case 1:case"end":return t.stop()}},t,a)}))()},confirmResetPassword:function(t,e){var a=this,i=e.uid,n=e.token,s=e.password;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",at.post(J.auth.confirmResetPassword(),{uid:i,token:n,new_password1:s,new_password2:s}));case 1:case"end":return t.stop()}},t,a)}))()},changePassword:function(t,e){var a=this;return h()(v.a.mark(function t(){var i,n;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,at.post(J.auth.changePassword(),{new_password1:e,new_password2:e});case 3:return i=t.sent,t.abrupt("return",i);case 7:throw t.prev=7,t.t0=t.catch(0),n="Can't change password",t.t0.response&&t.t0.response.data&&(t.t0.response.data.new_password1&&(n=t.t0.response.data.new_password1),t.t0.response.data.new_password2&&(n=t.t0.response.data.new_password2)),new Error(n);case 12:case"end":return t.stop()}},t,a,[[0,7]])}))()}}},_e={namespaced:!0,state:{user:K("user_profile")||{},profileCache:{},fanInbox:null,artistInbox:null,followedArtists:null},getters:{currentUser:function(t){return t.user},displayName:function(t){return $.displayName(t.user)},avatarImage:function(t){return $.avatarImage(t.user)},heroImage:function(t){return $.heroImage(t.user)},fanInbox:function(t){return t.fanInbox},artistInbox:function(t){return t.artistInbox},isArtist:function(t){return!(!t.user||!t.user.artist_id)},dobDate:function(t){return t.user&&t.user.dob?new Date(t.user.dob+"T00:00:00Z"):null},followedArtists:function(t){return t.followedArtists||[]}},mutations:(de={},he()(de,"SET_CURRENT_USER",function(t,e){t.user=e,Y("user_profile",e)}),he()(de,"CLEAR_CURRENT_USER",function(t){t.user={},t.fanInbox=null,t.artistInbox=null,X("user_profile")}),he()(de,"SET_FAN_INBOX",function(t,e){t.fanInbox=e}),he()(de,"SET_ARTIST_INBOX",function(t,e){t.artistInbox=e}),he()(de,"SET_USER_DOB",function(t,e){t.user.dob=e?e.toJSON().split(/T/)[0]:null}),he()(de,"CACHE_PROFILE",function(t,e){t.profileCache[e.id]=e}),he()(de,"setFollowedArtists",function(t,e){t.followedArtists=e}),de),actions:{getCurrentUser:function(t){var e=this,a=t.commit,i=t.dispatch,n=t.state;return h()(v.a.mark(function t(){var s;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,at.get(J.profile.me());case 3:return s=t.sent,a("SET_CURRENT_USER",s.data),null===n.fanInbox&&i("getInboxes"),t.abrupt("return",s.data);case 9:t.prev=9,t.t0=t.catch(0);case 11:case"end":return t.stop()}},t,e,[[0,9]])}))()},updateCurrentUser:function(t){var e=this,a=t.commit,i=t.state;return h()(v.a.mark(function t(){var n;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,at.put(J.profile.me(),i.user);case 3:n=t.sent,a("SET_CURRENT_USER",n.data),t.next=9;break;case 7:t.prev=7,t.t0=t.catch(0);case 9:case"end":return t.stop()}},t,e,[[0,7]])}))()},setUserAvatar:function(t,e){var a=this,i=t.dispatch;return h()(v.a.mark(function t(){var n;return v.a.wrap(function(t){for(;;
1)switch(t.prev=t.next){case 0:return n=e.file,t.prev=1,t.next=4,Z(J.profile.avatar(),n);case 4:i("getCurrentUser"),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),i("flash/showMessage",{message:"Error uploading avatar image",type:"error"},{root:!0});case 10:case"end":return t.stop()}},t,a,[[1,7]])}))()},deleteUserAvatar:function(t){var e=this,a=t.dispatch;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,at.delete(J.profile.avatar());case 3:a("getCurrentUser"),t.next=8;break;case 6:t.prev=6,t.t0=t.catch(0);case 8:case"end":return t.stop()}},t,e,[[0,6]])}))()},setUserHeroImage:function(t,e){var a=this,i=t.dispatch;return h()(v.a.mark(function t(){var n;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.file,t.prev=1,t.next=4,Z(J.profile.hero(),n);case 4:i("getCurrentUser"),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),i("flash/showMessage",{message:"Error uploading profile image",type:"error"},{root:!0});case 10:case"end":return t.stop()}},t,a,[[1,7]])}))()},deleteUserHeroImage:function(t){var e=this,a=t.dispatch;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,at.delete(J.profile.hero());case 3:a("getCurrentUser"),t.next=8;break;case 6:t.prev=6,t.t0=t.catch(0);case 8:case"end":return t.stop()}},t,e,[[0,6]])}))()},deactivate:function(t){var e=this,a=t.dispatch;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.post(J.profile.deactivate());case 2:a("auth/logout",!0,{root:!0});case 3:case"end":return t.stop()}},t,e)}))()},findProfile:function(t,e){var a=this,i=e.handle;return h()(v.a.mark(function t(){var e;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.get(J.profile.list(),{params:{handle:i}});case 2:return e=t.sent,t.abrupt("return",e.data);case 4:case"end":return t.stop()}},t,a)}))()},getProfile:function(t,e){var a=t.commit,i=t.state,n=e.id;return n===i.user.id?U.a.resolve(i.user):n in i.profileCache?U.a.resolve(i.profileCache[n]):at.get(J.profile.detail(n)).then(function(t){return a("CACHE_PROFILE",t.data),t.data})},followProfile:function(t,e){var a=this,i=t.dispatch,n=e.id;return h()(v.a.mark(function t(){var e;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.post(J.profile.follow(n));case 2:return e=t.sent,t.next=5,i("refreshFollowedArtists");case 5:return t.abrupt("return",e);case 6:case"end":return t.stop()}},t,a)}))()},unfollowProfile:function(t,e){var a=this,i=t.dispatch,n=e.id;return h()(v.a.mark(function t(){var e;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.post(J.profile.unfollow(n));case 2:return e=t.sent,t.next=5,i("refreshFollowedArtists");case 5:return t.abrupt("return",e);case 6:case"end":return t.stop()}},t,a)}))()},reportProfile:function(t,e){var a=this,i=(t.dispatch,e.id),n=e.reason,s=e.url;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",at.post(J.profile.report(i),{reason:n,url:s}));case 1:case"end":return t.stop()}},t,a)}))()},blockProfile:function(t,e){var a=this,i=(t.dispatch,e.id);return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",at.post(J.profile.block(i)));case 1:case"end":return t.stop()}},t,a)}))()},unblockProfile:function(t,e){var a=this,i=(t.dispatch,e.id);return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",at.post(J.profile.unblock(i)));case 1:case"end":return t.stop()}},t,a)}))()},listBlockedProfiles:function(t){var e=this;return h()(v.a.mark(function t(){var a;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.get(J.profile.list(),{params:{blocked:"1"}});case 2:return a=t.sent,t.abrupt("return",new et(a.data));case 4:case"end":return t.stop()}},t,e)}))()},refreshFollowedArtists:function(t){var e=this,a=t.commit;return h()(v.a.mark(function t(){var i,n,s,r,o,l,c,u;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=[],t.t0=et,t.next=4,at.get(J.profile.following());case 4:t.t1=t.sent.data,n=new t.t0(t.t1);case 6:if(!(n.count>0)){t.next=29;break}for(s=!0,r=!1,o=void 0,t.prev=10,l=T()(n.results);!(s=(c=l.next()).done);s=!0)u=c.value,i.push(u);t.next=18;break;case 14:t.prev=14,t.t2=t.catch(10),r=!0,o=t.t2;case 18:t.prev=18,t.prev=19,!s&&l.return&&l.return();case 21:if(t.prev=21,!r){t.next=24;break}throw o;case 24:return t.finish(21);case 25:return t.finish(18);case 26:n=n.next(),t.next=6;break;case 29:return a("setFollowedArtists",i),t.abrupt("return",i);case 31:case"end":return t.stop()}},t,e,[[10,14,18,26],[19,,21,25]])}))()},listFollowedArtists:function(t){var e=this,a=t.state,i=t.dispatch;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(null===a.followedArtists){t.next=2;break}return t.abrupt("return",a.followedArtists);case 2:return t.abrupt("return",i("refreshFollowedArtists"));case 3:case"end":return t.stop()}},t,e)}))()},listFollowers:function(t){var e=this,a=t.dispatch;return h()(v.a.mark(function t(){var i;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.get(J.profile.followers());case 2:return i=t.sent,a("artist/setFollowerCount",i.data.count,{root:!0}),t.abrupt("return",new et(i.data));case 5:case"end":return t.stop()}},t,e)}))()},getInboxes:function(t){var e=t.commit,a=t.state;return a.fanInbox?U.a.resolve({fanInbox:a.fanInbox,artistInbox:a.artistInbox}):at.get(J.profile.inboxes()).then(function(t){var a=t.data.results,i=null,n=null,
1s=!0,r=!1,o=void 0;try{for(var l,c=T()(a);!(s=(l=c.next()).done);s=!0){var u=l.value;u.is_artist_inbox?n=u:i=u}}catch(t){r=!0,o=t}finally{try{!s&&c.return&&c.return()}finally{if(r)throw o}}return e("SET_FAN_INBOX",i),e("SET_ARTIST_INBOX",n),{fanInbox:i,artistInbox:n}})},listFanConversations:function(t){return(0,t.dispatch)("getInboxes").then(function(t){return at.get(J.profile.conversations(t.fanInbox.id))}).then(function(t){return new et(t.data)})},listArtistConversations:function(t){var e=t.dispatch;if(!t.state.user.artist_id)throw new Error("User is not an artist");return e("getInboxes").then(function(t){return at.get(J.profile.conversations(t.artistInbox.id))}).then(function(t){return new et(t.data)})},listConversations:function(t,e){var a=this,i=(t.dispatch,e.inboxId);return h()(v.a.mark(function t(){var e;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.get(J.profile.conversations(i));case 2:return e=t.sent,t.abrupt("return",new et(e.data));case 4:case"end":return t.stop()}},t,a)}))()},sendMessage:function(t,e){var a=this,i=t.dispatch;return h()(v.a.mark(function t(){var n,s,r,o,l,c,u,d;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.peerId,s=e.text,r=e.inboxId,o=void 0===r?null:r,l=e.sendAsArtist,c=void 0!==l&&l,null!==o){t.next=6;break}return t.next=4,i("getInboxes");case 4:u=t.sent,o=c&&u.artistInbox?u.artistInbox.id:u.fanInbox.id;case 6:return t.next=8,at.post(J.profile.messages(o,n),{text:s});case 8:return d=t.sent,t.abrupt("return",d.data);case 10:case"end":return t.stop()}},t,a)}))()},listMessages:function(t,e){var a=e.inboxId,i=e.peerId;return at.get(J.profile.messages(a,i)).then(function(t){return new et(t.data)})},markAsRead:function(t,e){var a=this;return h()(v.a.mark(function t(){var i,n,s;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.inboxId,n=e.peerId,t.next=3,at.post(J.profile.markAsRead(i,n));case 3:return s=t.sent,t.abrupt("return",s.data.unread_count);case 5:case"end":return t.stop()}},t,a)}))()},donate:function(t,e){var a=e.id,i=e.amount,n=e.liveId,s=void 0===n?void 0:n;return i=Number(i).toFixed(2),at.post(J.artist.donate(a),{amount:i,live_id:s}).then(function(t){return t.data})}}},ye={draft:"Draft (visible only to you)",private:"Private (visible only to your fans)",public:"Public (visible to everyone)"},we={draft:"Draft (visible only to you)",public:"Published (visible to everyone)"},Ce={"music-video":"Music Video",live:"Live Performance",image:"Audio + Image",lyrics:"Lyrics"},ke={namespaced:!0,state:{tags:null,accessible:null},mutations:{setTags:function(t,e){t.tags=e},setSongsWithAccess:function(t,e){t.accessible=e}},getters:{tags:function(t){return t.tags||[]}},actions:{listTags:function(t){var e=t.state,a=t.commit;return e.tags?U.a.resolve(e.tags):at.get(J.tag.list()).then(function(t){return a("setTags",t.data),t.data})},listOwnSongs:function(t,e){return at.get(J.song.publish.list(),{params:e}).then(function(t){return new et(t.data)})},getOwnSong:function(t,e){var a=e.id;return at.get(J.song.publish.detail(a)).then(function(t){return t.data})},createSong:function(t,e){if(e.id)throw new Error("song id is defined, can't create anew");return at.post(J.song.publish.list(),e).then(function(t){return t.data})},updateSong:function(t,e){if(!e.id)throw new Error("song id undefined, can't update song");return at.patch(J.song.publish.detail(e.id),e).then(function(t){return t.data})},deleteSong:function(t,e){var a=e.id;return at.delete(J.song.publish.detail(a)).then(function(t){return t.data})},setVideoThumbnail:function(t,e){var a=t.dispatch,i=e.id,n=e.file;return Z(J.song.publish.thumbnail(i),n).then(function(){return a("getOwnSong",{id:i})})},deleteVideoThumbnail:function(t,e){var a=t.dispatch,i=e.id;return at.delete(J.song.publish.thumbnail(i)).then(function(){return a("getOwnSong",{id:i})})},uploadVideo:function(t,e){var a=e.id,i=e.file;return at.post(J.song.publish.video(a)).then(function(t){return function(t,e){var a=new FormData;for(var i in t)a.append(i,t[i]);a.append("file",e);var n=H.a.defaults.headers.common;H.a.defaults.headers.common={};var s=H.a.post(J.videoUpload,a,{responseType:"document",headers:{}});return H.a.defaults.headers.common=n,s}(t.data,i)}).then(function(t){return t.data})},deleteVideo:function(t,e){var a=e.id;return at.delete(J.song.publish.detail(a)).then(function(t){return t.data})},setAudioTrack:function(t,e){var a=t.dispatch,i=e.id,n=e.file,s=n.type;return"video/mp4"===s&&(s="audio/mp4"),Z(J.song.publish.audio(i),n,s).then(function(){return a("getOwnSong",{id:i})})},deleteAudioTrack:function(t,e){var a=t.dispatch,i=e.id;return at.delete(J.song.publish.audio(i)).then(function(){return a("getOwnSong",{id:i})})},listSongs:function(t,e){return at.get(J.song.consume.list(),{params:e}).then(function(t){return new et(t.data)})},getSong:function(t,e){var a=e.id;return at.get(J.song.consume.detail(a)).then(function(t){return t.data})},purchaseSong:function(t,e){var a=this,i=t.dispatch,n=e.id,s=e.amount;return h()(v.a.mark(function t(){var e;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.post(J.song.consume.purchase(n),{amount:s});case 2:return e=t.sent,t.next=5,i("refreshSongsWithAccess");case 5:return t.abrupt("return",e.data);case 6:case"end":return t.stop()}},t,a)}))()},refreshSongsWithAccess:function(t){var e=this,a=t.commit;return h()(v.a.mark(function t(){var i,n,s,r,o,l,c,u;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=[],n=void 0,t.prev=2,t.t0=et,t.next=6,at.get(J.song.consume.listAccess());case 6:t.t1=t.sent.data,n=new t.t0(t.t1),t.next=14;break;case 10:return t.prev=10,t.t2=t.catch(2),a("setSongsWithAccess",[]),t.abrupt("return",[]);case 14:if(!n.count){t.next=37;break}for(s=!0,r=!1,o=void 0,t.prev=18,l=T()(n.results);!(s=(c=l.next()).done);s=!0)u=c.value,i.push(u);t.next=26;break;case 22:t.prev=22,t.t3=t.catch(18),r=!0,o=t.t3;case 26:t.prev=26,t.prev=27,!s&&l.return&&l.return();case 29:if(t.prev=29,!r){t.next=32;break}throw o;case 32:return t.finish(29);case 33:return t.finish(26);case 34:n=n.next(),t.next=14;break;case 37:return a("setSongsWithAccess",i),t.abrupt("return",i);case 39:case"end":return t.stop()}},t,e,[[2,10],[18,22,26,34],[27,,29,33]])}))()},getSongsWithAccess:function(t){var e=this,a=t.state,i=t.dispatch;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(null===a.accessible){t.next=4;break}return t.abrupt("return",a.accessible);case 4:return t.abrupt("return",i("refreshSongsWithAccess"));case 5:case"end":return t.stop()}},t,e)}))()},likeSong:function(t,e){var a=e.id;return at.post(J.song.consume.rate(a),{rating:1}).then(function(t){return t.data})},dislikeSong:function(t,e){var a=e.id;return at.post(J.song.consume.rate(a),{rating:-1}).then(function(t){return t.data})},unlikeSong:function(t,e){var a=e.id;return at.delete(J.song.consume.rate(a)).then(function(t){return t.data})},reportSong:function(t,e){var a=this,i=(t.dispatch,e.id),n=e.reason,s=e.url;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",at.post(J.song.consume.report(i),{reason:n,url:s}));case 1:case"end":return t.stop()}},t,a)}))()},reportSongComment:function(t,e){var a=this,i=(t.dispatch,e.subjectId),n=e.commentId,s=e.reason,r=e.url;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",at.post(J.song.consume.reportComment(i,n),{reason:s,url:r}));case 1:case"end":return t.stop()}},t,a)}))()},recordView:function(t,e){var a=e.id;return at.post(J.song.consume.touch(a))},getSongComments:function(t,e){var a=e.id;return at.get(J.song.consume.commentList(a)).then(function(t){return new et(t.data)})},postSongComment:function(t,e){var a=e.id,i=e.text,n=e.asArtist,s=void 0!==n&&n;return at.post(J.song.consume.commentList(a),{text:i,as_artist:s}).then(function(t){return t.data})},deleteSongComment:function(t,e){var a=e.songId,i=e.commentId;return at.delete(J.song.consume.commentDetail(a,i)).then(function(t){return t.data})},createAlbum:function(t,e){if(e.id)throw new Error("Album already exists");return at.post(J.album.list(),e).then(function(t){return t.data})},updateAlbum:function(t,e){if(!e.id)throw new Error("Can't update nonexistent album");return at.patch(J.album.detail(e.id),e).then(function(t){return t.data})},deleteAlbum:function(t,e){var a=e.id;return at.delete(J.album.detail(a)).then(function(t){return t.data})},setAlbumCover:function(t,e){var a=t.dispatch,i=e.id,n=e.file;return Z(J.album.cover(i),n).then(function(){return a("getAlbum",{id:i})})},deleteAlbumCover:function(t,e){t.dispatch;var a=e.id;return at.delete(J.album.cover(a)).then(function(t){return t.data})},listAlbums:function(t,e){return at.get(J.album.list(),{params:e}).then(function(t){return new et(t.data)})},getAlbum:function(t,e){var a=e.id;return at.get(J.album.detail(a)).then(function(t){return t.data})},purchaseAlbum:function(t,e){var a=this,i=t.dispatch,n=e.id,s=e.amount;return h()(v.a.mark(function t(){var e;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.post(J.album.purchase(n),{amount:s});case 2:return e=t.sent,t.next=5,i("refreshSongsWithAccess");case 5:return t.abrupt("return",e.data);case 6:case"end":return t.stop()}},t,a)}))()}}},xe={namespaced:!0,state:{},mutations:{},getters:{},actions:{setPaymentToken:function(t,e){var a=t.dispatch,i=e.token;return at.post(J.payment.token(),{token:i}).then(function(t){return a("profile/getCurrentUser",null,{root:!0})})},removeCard:function(t){var e=this,a=t.dispatch;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.delete(J.payment.token());case 2:return t.abrupt("return",a("profile/getCurrentUser",null,{root:!0}));case 3:case"end":return t.stop()}},t,e)}))()},listPayments:function(t){return at.get(J.payment.history()).then(function(t){return new et(t.data)})},listArtistTransactions:function(t,e){return at.get(J.payment.transactions(),{params:e}).then(function(t){return new et(t.data)})},getArtistPayoutSetupLink:function(t,e){var a=this,i=e.next;return h()(v.a.mark(function t(){var e;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.get(J.payment.setupPayout(),{params:{redirect_url:i}});case 2:return e=t.sent,t.abrupt("return",e.data.url);case 4:case"end":return t.stop()}},t,a)}))()}}},Ae={draft:"Draft (visible only to you)",private:"Private (only invited fans may participate)",public:"Public (available to everyone)"},Se={fan2fan:"All comments are visible to everyone",fan2artist:"Fans' comments are only visible to you",disabled:"Chat is disabled"},Ie={namespaced:!0,state:{},mutations:{},getters:{},actions:{listOwnLiveEvents:function(t,e){return at.get(J.live.publish.list(),{params:e}).then(function(t){return new et(t.data)})},createLiveEvent:function(t,e){if(e.id)throw new Error("live event id is defined, can't create anew");return at.post(J.live.publish.list(),e).then(function(t){return t.data})},updateLiveEvent:function(t,e){if(!e.id)throw new Error("live event id undefined, can't update event");return at.patch(J.live.publish.detail(e.id),e).then(function(t){return t.data})},deleteLiveEvent:function(t,e){var a=e.id;return at.delete(J.live.publish.detail(a)).then(function(t){return t.data})},getOwnLiveEvent:function(t,e){var a=e.id;return at.get(J.live.publish.detail(a)).then(function(t){return t.data})},setLiveEventPromo:function(t,e){var a=this,i=t.dispatch,n=e.id,s=e.file;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Z(J.live.publish.promo(n),s);case 2:return t.abrupt("return",i("getOwnLiveEvent",{id:n}));case 3:case"end":return t.stop()}},t,a)}))()},deleteLiveEventPromo:function(t,e){var a=this,i=(t.dispatch,e.id);return h()(v.a.mark(function t(){var e;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.delete(J.live.publish.promo(i));case 2:return e=t.sent,t.abrupt("return",e.data);case 4:case"end":return t.stop()}},t,a)}))()},startLiveEvent:function(t,e){var a=e.id;return at.post(J.live.publish.start(a)).then(function(t){return t.data})},stopLiveEvent:function(t,e){var a=e.id;return at.post(J.live.publish.stop(a)).then(function(t){return t.data})},cancelLiveEvent:function(t,e){var a=e.id;return at.patch(J.live.publish.detail(a),{is_cancelled:!0}).then(function(t){return t.data})},blockUser:function(t,e){var a=this,i=e.eventId,n=e.profileId;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",at.post(J.live.publish.block_user(i),{profile_id:n}));case 1:case"end":return t.stop()}},t,a)}))()},listLiveEvents:function(t,e){return void 0!==e.is_cancelled&&(e.is_cancelled=e.is_cancelled?1:0),at.get(J.live.consume.list(),{params:e}).then(function(t){return new et(t.data)})},getLiveEvent:function(t,e){var a=e.id;return at.get(J.live.consume.detail(a)).then(function(t){return t.data})},bookLiveEvent:function(t,e){var a=e.id,i=e.amount,n=i?{amount:i}:void 0;return at.post(J.live.consume.book(a),n).then(function(t){return t.data})},addToWatchlist:function(t,e){var a=this,i=t.dispatch,n=e.id;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.post(J.live.consume.watch(n));case 2:return t.next=4,i("profile/getCurrentUser",null,{root:!0});case 4:case"end":return t.stop()}},t,a)}))()},removeFromWatchlist:function(t,e){var a=this,i=t.dispatch,n=e.id;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.delete(J.live.consume.watch(n));case 2:return t.next=4,i("profile/getCurrentUser",null,{root:!0});case 4:case"end":return t.stop()}},t,a)}))()},attendLiveEvent:function(t,e){var a=e.id;return at.get(J.live.consume.attend(a)).then(function(t){return t.data})},pingLiveEvent:function(t,e){var a=this,i=e.id;return h()(v.a.mark(function t(){var e;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,at.post(J.live.consume.ping(i));case 3:return e=t.sent,t.abrupt("return",e.data);case 7:if(t.prev=7,t.t0=t.catch(0),!t.t0||!t.t0.response||410!==t.t0.response.status){t.next=13;break}return t.abrupt("return",t.t0.response.data);case 13:return t.abrupt("return",null);case 14:case"end":return t.stop()}},t,a,[[0,7]])}))()},likeLiveEvent:function(t,e){var a=e.id;return at.post(J.live.consume.rate(a),{rating:1}).then(function(t){return t.data})},dislikeLiveEvent:function(t,e){var a=e.id;return at.post(J.live.consume.rate(a),{rating:-1}).then(function(t){return t.data})},unlikeLiveEvent:function(t,e){var a=e.id;return at.delete(J.live.consume.rate(a)).then(function(t){return t.data})},getLiveEventComments:function(t,e){var a=e.id;return at.get(J.live.consume.commentList(a)).then(function(t){return new et(t.data)})},postLiveEventComment:function(t,e){var a=e.id,i=e.text,n=e.asArtist,s=void 0!==n&&n;return at.post(J.live.consume.commentList(a),{text:i,as_artist:s}).then(function(t){return t.data})},deleteLiveEventComment:function(t,e){var a=e.eventId,i=e.commentId;return at.delete(J.live.consume.commentDetail(a,i)).then(function(t){return t.data})},getMessages:function(t,e){var a=this,i=e.id;return h()(v.a.mark(function t(){var e;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.get(J.live.consume.messages(i));case 2:return e=t.sent,t.abrupt("return",e.data);case 4:case"end":return t.stop()}},t,a)}))()},sendMessage:function(t,e){var a=this,i=e.id,n=e.message;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",at.post(J.live.consume.send_message(i),{message:n}));case 1:case"end":return t.stop()}},t,a)}))()},deleteMessage:function(t,e){var a=this,i=e.eventId,n=e.senderId,s=e.time;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",at.post(J.live.consume.delete_message(i),{sender_id:n,time:s}));case 1:case"end":return t.stop()}},t,a)}))()},listTickets:function(t){var e=this;return h()(v.a.mark(function t(){var a;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.get(J.l
1ive.tickets.list());case 2:return a=t.sent,t.abrupt("return",new et(a.data));case 4:case"end":return t.stop()}},t,e)}))()},reportLiveEvent:function(t,e){var a=this,i=(t.dispatch,e.id),n=e.reason,s=e.url;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",at.post(J.live.consume.report(i),{reason:n,url:s}));case 1:case"end":return t.stop()}},t,a)}))()},reportLiveEventComment:function(t,e){var a=this,i=(t.dispatch,e.subjectId),n=e.commentId,s=e.reason,r=e.url;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",at.post(J.live.consume.reportComment(i,n),{reason:s,url:r}));case 1:case"end":return t.stop()}},t,a)}))()}}},Pe={state:{miniPlayer:null},mutations:{setMiniPlayer:function(t,e){t.miniPlayer=e}},getters:{miniPlayer:function(t){return t.miniPlayer}},actions:{}},Te={private:"Private (visible only to selected users)",subscribers:"Visible to subscribers only",public:"Public (visible to all fans and unregistered users)"},Ee={namespaced:!0,state:{},mutations:{},getters:{},actions:{getCombinedFeed:function(t){return at.get(J.feed.combined()).then(function(t){return new et(t.data)})},getUserFeed:function(t,e){var a=e.id;return at.get(J.feed.by(a)).then(function(t){return new et(t.data)})},postUpdate:function(t,e){return at.post(J.feed.post(),e).then(function(t){return t.data})},deleteUpdate:function(t,e){var a=e.id;return at.delete(J.feed.delete(a)).then(function(t){return t.data})},getUpdateComments:function(t,e){var a=e.id;return at.get(J.feed.commentList(a)).then(function(t){return new et(t.data)})},reportUpdate:function(t,e){var a=this,i=(t.dispatch,e.id),n=e.reason,s=e.url;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",at.post(J.feed.reportUpdate(i),{reason:n,url:s}));case 1:case"end":return t.stop()}},t,a)}))()},postUpdateComment:function(t,e){var a=e.id,i=e.text,n=e.asArtist,s=void 0!==n&&n;return at.post(J.feed.commentList(a),{text:i,as_artist:s}).then(function(t){return t.data})}
1,deleteUpdateComment:function(t,e){var a=e.updateId,i=e.commentId;return at.delete(J.feed.commentDetail(a,i)).then(function(t){return t.data})},reportUpdateComment:function(t,e){var a=this,i=(t.dispatch,e.subjectId),n=e.commentId,s=e.reason,r=e.url;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",at.post(J.feed.reportUpdateComment(i,n),{reason:s,url:r}));case 1:case"end":return t.stop()}},t,a)}))()}}},Le={namespaced:!0,state:{},mutations:{},getters:{},actions:{createPlaylist:function(t,e){if(e.id)throw new Error("playlist id is defined, can't create anew");return at.post(J.playlist.list(),e).then(function(t){return t.data})},updatePlaylist:function(t,e){if(!e.id)throw new Error("playlist id undefined, can't update playlist");return at.patch(J.playlist.detail(e.id),e).then(function(t){return t.data})},deletePlaylist:function(t,e){return at.delete(J.playlist.detail(e)).then(function(t){return t.data})},listPlaylists:function(t,e){return at.get(J.playlist.list(),{params:e}).then(function(t){return new et(t.data)})},getPlaylist:function(t,e){var a=e.id;return at.get(J.playlist.detail(a)).then(function(t){return t.data})},appendPlaylistSong:function(t,e){var a=this,i=e.playlistId,n=e.songId;return h()(v.a.mark(function t(){var e;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,at.post(J.playlist.appendSong(i),{song_id:n});case 3:return e=t.sent,t.abrupt("return",e.data);case 7:if(t.prev=7,t.t0=t.catch(0),!(t.t0.response&&t.t0.response.data&&t.t0.response.data.song_id)){t.next=13;break}throw new Error(t.t0.response.data.song_id);case 13:throw new Error("Can't add to playlist");case 14:case"end":return t.stop()}},t,a,[[0,7]])}))()},removePlaylistSong:function(t,e){var a=e.playlistId,i=e.songId;return at.post(J.playlist.removeSong(a),{song_id:i}).then(function(t){return t.data})},addToHistory:function(t,e){var a=this,i=t.rootGetters;t.dispatch;return h()(v.a.mark(function t(){var n,s;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=i["profile/currentUser"].default_playlists.history,t.next=3,at.post(J.playlist.prependSong(n.id),{song_id:e});case 3:s=t.sent,n.video_ids=s.data.video_ids;case 5:case"end":return t.stop()}},t,a)}))()},followPlaylist:function(t,e){var a=this,i=t.dispatch;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.post(J.playlist.follow(e));case 2:return t.abrupt("return",i("profile/getCurrentUser",null,{root:!0}));case 3:case"end":return t.stop()}},t,a)}))()},unfollowPlaylist:function(t,e){var a=this,i=t.dispatch;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.post(J.playlist.unfollow(e));case 2:return t.abrupt("return",i("profile/getCurrentUser",null,{root:!0}));case 3:case"end":return t.stop()}},t,a)}))()}}},$e={namespaced:!0,state:{},mutations:{},getters:{},actions:{searchAlbums:function(t,e){return at.get(J.search.albums(),{params:e}).then(function(t){return new et(t.data)})},searchArtists:function(t,e){return at.get(J.search.artists(),{params:e}).then(function(t){return new et(t.data)})},searchLiveEvents:function(t,e){return at.get(J.search.live(),{params:e}).then(function(t){return new et(t.data)})},searchPlaylists:function(t,e){return at.get(J.search.playlists(),{params:e}).then(function(t){return new et(t.data)})},searchSongs:function(t,e){return at.get(J.search.songs(),{params:e}).then(function(t){return new et(t.data)})},getRecommendations:function(t,e){return at.get(J.search.recommended()).then(function(t){return t.data})}}},Oe={namespaced:!0,state:{timeoutId:null,message:null,modalMessage:null},mutations:{setMessage:function(t,e){var a=e.message,i=e.timeoutId;t.message=a,t.timeoutId=i},setModalMessage:function(t,e){t.modalMessage=e}},getters:{flashMessage:function(t){return t.message},modalMessage:function(t){return t.modalMessage}},actions:{showMessage:function(t,e){var a=t.state,i=t.commit;null!==a.timeoutId&&clearTimeout(a.timeoutId);var n=setTimeout(function(){i("setMessage",{message:null,timeoutId:null})},3e3);i("setMessage",{message:e,timeoutId:n})},showModal:function(t,e){t.state;(0,t.commit)("setModalMessage",e)},hideModal:function(t){t.state;(0,t.commit)("setModalMessage",null)}}},Re={namespaced:!0,state:{artist:K("artist")||{}},mutations:{setArtist:function(t,e){t.artist=e,Y("artist",t.artist)},clearArtist:function(t){t.artist={},X("artist")},setFollowerCount:function(t,e){t.artist.follower_count=e,Y("artist",t.artist)}},getters:{artist:function(t){return t.artist},hasPayoutMethod:function(t){return!!t.artist.stripe_account_id},artistName:function(t){return t.artist.name||(t.artist.profile?t.artist.profile.name||t.artist.profile.username:null)},artistAvatar:function(t){return t.artist.avatar_image||"/static/img/default-avatar.jpg"},artistHero:function(t){return t.artist.hero_image||"/static/img/default-hero.jpg"}},actions:{createArtist:function(t,e){var a=this,i=t.commit,n=t.dispatch;return h()(v.a.mark(function t(){var s;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.post(J.artist.list(),e);case 2:return s=t.sent,i("setArtist",s.data),t.next=6,n("profile/getCurrentUser",null,{root:!0});case 6:return t.abrupt("return",s.data);case 7:case"end":return t.stop()}},t,a)}))()},getCurrentArtist:function(t){var e=this,a=t.commit,i=t.dispatch;t.state;return h()(v.a.mark(function t(){var n;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i("profile/getCurrentUser",null,{root:!0});case 2:if((n=t.sent)&&n.artist){t.next=5;break}return t.abrupt("return",null);case 5:return a("setArtist",n.artist),t.abrupt("return",n.artist);case 7:case"end":return t.stop()}},t,e)}))()},updateArtist:function(t){var e=this,a=t.commit,i=t.state;return h()(v.a.mark(function t(){var n;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.put(J.artist.detail(i.artist.id),i.artist);case 2:return n=t.sent,a("setArtist",n.data),t.abrupt("return",n.data);case 5:case"end":return t.stop()}},t,e)}))()},setFollowerCount:function(t,e){var a=this,i=t.commit;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:i("setFollowerCount",e);case 1:case"end":return t.stop()}},t,a)}))()},setAvatar:function(t,e){var a=this,i=t.dispatch,n=e.file;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Z(J.artist.avatar(),n);case 2:return t.abrupt("return",i("getCurrentArtist"));case 3:case"end":return t.stop()}},t,a)}))()},deleteAvatar:function(t){var e=this,a=t.dispatch;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.delete(J.artist.avatar());case 2:return t.abrupt("return",a("getCurrentArtist"));case 3:case"end":return t.stop()}},t,e)}))()},setHero:function(t,e){var a=this,i=t.dispatch,n=e.file;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Z(J.artist.hero(),n);case 2:return t.abrupt("return",i("getCurrentArtist"));case 3:case"end":return t.stop()}},t,a)}))()},deleteHero:function(t){var e=this,a=t.dispatch;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.delete(J.profile.hero());case 2:return t.abrupt("return",a("getCurrentArtist"));case 3:case"end":return t.stop()}},t,e)}))()},getArtist:function(t,e){var a=this,i=e.id;return h()(v.a.mark(function t(){var e;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.get(J.artist.detail(i));case 2:return e=t.sent,t.abrupt("return",e.data);case 4:case"end":return t.stop()}},t,a)}))()},reportArtist:function(t,e){var a=this,i=(t.dispatch,e.id),n=e.reason,s=e.url;return h()(v.a.mark(function t(){return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",at.post(J.artist.report(i),{reason:n,url:s}));case 1:case"end":return t.stop()}},t,a)}))()}}},Fe=a("jIVf"),Me=a.n(Fe),Ue=a("RyI1"),Ne=a.n(Ue),Ve={namespaced:!0,state:{socket:null,notificationChannel:null,notificationId:null,liveChatChannel:null,liveChatArtistChannel:null,liveChatId:null,liveChatArtistId:null,notifications:[],chatMessages:[],chatNotification:null,latestMessage:null},mutations:{setConfig:function(t,e){var a=e.apiKey,i=e.cluster;t.socket||(t.socket=new Me.a(a,{cluster:i}))},setLiveChatChannel:function(t,e){var a=e.channelId,i=e.channel;t.liveChatId=a,t.liveChatChannel=i,t.chatMessages=[]},setArtistChatChannel:function(t,e){var a=e.channelId,i=e.channel;t.liveChatArtistId=a,t.liveChatArtistChannel=i,t.chatMessages=[]},clearLiveChatChannel:function(t){t.liveChatId=null,t.liveChatChannel=null,t.liveChatArtistId=null,t.liveChatArtistChannel=null,t.chatMessages=[]},addChatMessage:function(t,e){if(t.chatMessages.length){var a=t.chatMessages[t.chatMessages.length-1];if(Math.abs(e.time-a.time)<5&&a.channel===e.channel&&a.action===e.action&&a.message===e.message&&(!a.sender||!e.sender||a.sender.id===e.sender.id))return}t.chatMessages.push(e)},clearChatMessages:function(t){t.chatMessages=[]},deleteChatMessage:function(t,e){var a=t.chatMessages.indexOf(e);-1!==a&&t.chatMessages.splice(a,1)},setChatNotification:function(t,e){t.chatNotification=e},setNotificationChannel:function(t,e){var a=e.channelId,i=e.channel,n=e.initial;t.notificationId=a,t.notificationChannel=i,t.notifications=n}
1,clearNotificationChannel:function(t){t.notificationId=null,t.notificationChannel=null,t.notifications=[]},addNotification:function(t,e){t.notifications.unshift(e)},clearArtistNotifications:function(t){t.notifications=Ne()(t.notifications,function(t){return-1===q.indexOf(t.type)})},clearFanNotifications:function(t){t.notifications=Ne()(t.notifications,function(t){return-1!==q.indexOf(t.type)})},setLatestMessage:function(t,e){t.latestMessage=e}},getters:{notifications:function(t){return t.notifications},artistNotifications:function(t){return Ne()(t.notifications,function(t){return-1!==q.indexOf(t.type)})},fanNotifications:function(t){return Ne()(t.notifications,function(t){return-1===q.indexOf(t.type)})},chatMessages:function(t){return t.chatMessages},chatNotify:function(t){return t.chatNotification},latestMessage:function(t){return t.latestMessage}},actions:{startLiveChat:function(t,e){var a=t.commit,i=t.state,n=t.dispatch,s=e.channelId,r=e.artistChannelId,o=void 0===r?null:r;if(i.socket){if(!s)throw new Error("live chat channel is not defined");if(i.liveChatId!==s||i.artistChannelId!==o){(i.liveChatChannel||i.liveChatArtistChannel)&&n("stopLiveChat");var l=i.socket.subscribe(s);if(l.bind("message",function(t){t.channel="chat",a("addChatMessage",t)}),l.bind("notification",function(t){a("setChatNotification",t)}),a("setLiveChatChannel",{channelId:s,channel:l}),o){var c=i.socket.subscribe(o);c.bind("message",function(t){t.channel="artist-chat",a("addChatMessage",t)}),c.bind("notification",function(t){a("setChatNotification",t)}),a("setArtistChatChannel",{artistChannelId:o,artistChannel:c})}}}},stopLiveChat:function(t){var e=t.commit,a=t.state;a.socket&&(a.liveChatChannel&&(a.liveChatChannel.unbind_all(),a.socket.unsubscribe(a.liveChatId)),a.liveChatArtistChannel&&(a.liveChatArtistChannel.unbind_all(),a.socket.unsubscribe(a.liveChatArtistId)),e("clearLiveChatChannel"))},injectOwnMessage:function(t,e){var a=t.commit,i=t.rootGetters,n=e.message,s=e.action,r=void 0===s?"message":s;a("addChatMessage",{sender:i["profile/currentUser"],time:(new Date).toISOString(),message:n,action:r})},deleteMessage:function(t,e){(0,t.commit)("deleteChatMessage",e)},initNotifications:function(t){var e=this,a=t.commit,i=t.state;t.dispatch;return h()(v.a.mark(function t(){var n,s,r,o;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!i.notificationChannel){t.next=2;break}return t.abrupt("return");case 2:return n=function(t){if("new-message"===t.type){var e=t.content,i=e.inbox,n=e.message,s=i.is_artist_inbox?"SET_ARTIST_INBOX":"SET_FAN_INBOX";a("profile/"+s,i,{root:!0}),n.inbox=i,a("setLatestMessage",n)}else a("addNotification",t)},t.next=5,at.get(J.profile.notifications());case 5:s=t.sent,r=s.data.config,i.socket||a("setConfig",{apiKey:r.api_key,cluster:r.cluster}),(o=i.socket.subscribe(r.channel)).bind("notification",n),a("setNotificationChannel",{channelId:r.channel,channel:o,initial:s.data.notifications});case 11:case"end":return t.stop()}},t,e)}))()},readNotifications:function(t,e){var a=t.commit,i=e.artistMode;a(i?"clearArtistNotifications":"clearFanNotifications"),at.post(J.profile.notifications(),{artist:i})},stopNotifications:function(t){var e=t.state,a=t.commit;e.socket&&(e.notificationChannel&&(e.notificationChannel.unbind_all(),e.socket.unsubscribe(e.notificationId)),a("clearNotificationChannel"))}}},je={namespaced:!0,state:{waitTimerId:null,fbInit:!1,googleAuth2:null},mutations:{setTimer:function(t,e){t.waitTimerId=e},setFacebookInit:function(t){t.fbInit=!0},setGoogleInit:function(t,e){t.googleAuth2=e}},getters:{fbInitialized:function(t){return t.fbInit},googleInitialized:function(t){return!!t.googleAuth2},googleAuth2:function(t){return t.googleAuth2}},actions:{init:function(t){var e=t.state,a=t.commit,i=t.dispatch,n=(t.rootGetters,window.setInterval(function(){void 0!==window.gapi&&void 0!==window.FB&&(window.clearInterval(e.waitTimerId),a("setTimer",null),i("initGoogle"),i("initFacebook"))},200));a("setTimer",n)},logout:function(t,e){var a=t.state;if(a.fbInit)try{window.FB.logout()}catch(t){}a.googleAuth2&&(e&&a.googleAuth2.disconnect(),a.googleAuth2.signOut())},initGoogle:function(t){var e=t.state,a=t.commit,i=t.rootGetters;e.googleAuth2||window.gapi.load("auth2",function(){var t=window.gapi.auth2.init({client_id:i["config/googleClientId"],cookiepolicy:"single_host_origin"});console.log("[social] Google Auth API ready"),a("setGoogleInit",t)})},initFacebook:function(t){var e=t.state,a=t.commit,i=t.rootGetters;e.fbInit||(window.FB.init({appId:i["config/facebookAppId"],autoLogAppEvents:!0,xfbml:!0,version:"v3.1"}),console.log("[social] Facebook Graph API ready"),a("setFacebookInit",!0))}}},De={namespaced:!0,state:{baseUrl:window.SITE_CONFIG.BASE_URL,googleClientId:window.SITE_CONFIG.GOOGLE_CLIENT_ID,facebookAppId:window.SITE_CONFIG.FACEBOOK_APP_ID,stripePublishableKey:window.SITE_CONFIG.STRIPE_PUBLISHABLE_KEY,waitTimerId:null,fbInit:!1,googleAuth2:null},getters:{baseUrl:function(t){return t.baseUrl},googleClientId:function(t){return t.googleClientId},facebookAppId:function(t){return t.facebookAppId},stripePublishableKey:function(t){return t.stripePublishableKey}}};i.a.use(u.a);var Be=new u.a.Store({modules:{auth:ge,profile:_e,song:ke,payment:xe,live:Ie,player:Pe,feed:Ee,playlist:Le,search:$e,flash:Oe,artist:Re,realtime:Ve,social:je,config:De}}),He=function(t,e,a){Be.getters["auth/isLoggedIn"]?a({name:"fan-home"}):a()},qe=[{path:"/",name:"landing",component:Bt,beforeEnter:He,meta:{fluidPage:!0}},{path:"/account/login/",name:"account-login",component:Zt,beforeEnter:He,meta:{fluidPage:!0}},{path:"/account/signup/",name:"account-signup",component:ne,beforeEnter:He,meta:{fluidPage:!0}},{path:"/account/forgot-password/",name:"account-forgot-password",component:oe,beforeEnter:He,meta:{fluidPage:!0}},{path:"/account/reset-password/:uid/:token/",name:"account-reset-password",component:ve,beforeEnter:He,meta:{fluidPage:!0}}],ze=a("l4he"),We=a.n(ze),Ge=a("v+HC"),Ye=a.n(Ge)()();function Ke(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(t=We()(t)),t.replace(/@[A-Za-z0-9]+/g,'<a class="handle-link" href="/$&/">$&</a>')}function Xe(t){return t?Ke(function(t){var e=Ye.match(t);if(!e||!e.length)return t;var a=0,i=!0,n=!1,s=void 0;try{for(var r,o=T()(e);!(i=(r=o.next()).done);i=!0){var l=r.value,c='<a href="'+l.url+'" target="_blank">'+l.text+"</a>";t=t.substring(0,a+l.index)+c+t.substring(a+l.lastIndex),a=a+c.length-(l.lastIndex-l.index)}}catch(t){n=!0,s=t}finally{try{!i&&o.return&&o.return()}finally{if(n)throw s}}return t}(We()(t)),!0).replace(/\r?\n/g,"<br>"):""}var Je={name:"ObjectListTabs",components:{FontAwesomeIcon:g.a},props:{createLink:Object,createLabel:String},watch:{$route:"updateCurrentLabel"},data:function(){return{randomId:"objectListToggle-"+ +new Date+":"+Math.round(1e6*Math.random()),currentTabLabel:null,checkLabelId:null}},mounted:function(){this.updateCurrentLabel(),this.checkLabelId=window.setInterval(this.updateCurrentLabel,250)},updated:function(){this.updateCurrentLabel()},beforeDestroy:function(){this.checkLabelId&&window.clearInterval(this.checkLabelId)},methods:{updateCurrentLabel:function(){if(this.$el.querySelector(".dropnav a.active")){var t=this.$el.querySelector(".dropnav a.active").innerText;this.currentTabLabel!==t&&(this.currentTabLabel=t)}}}},Qe={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("b-row",{staticClass:"list-tabs",attrs:{"align-v":"center"}},[a("b-col",{staticClass:"tabs",attrs:{cols:"8",md:"10",lg:"10"}},[a("b-nav",[t._t("default")],2)],1),t._v(" "),a("b-col",{staticClass:"text-right",attrs:{cols:"4",md:"2",lg:"2"}},[t._t("cmd")],2)],1),t._v(" "),a("div",{staticClass:"nav-toggle text-right"},[t.currentTabLabel?a("b-button",{staticClass:"label-nav",attrs:{id:t.randomId,variant:"secondary"}},[t._v("\n "+t._s(t.currentTabLabel)+"\n ")]):a("b-button",{staticClass:"navbtn",attrs:{id:t.randomId}},[a("font-awesome-icon",{staticClass:"padded",attrs:{icon:"ellipsis-h"}})],1),t._v(" "),a("b-popover",{attrs:{target:t.randomId,placement:"bottomleft",triggers:"click blur"}},[a("b-nav",{staticClass:"dropnav",attrs:{vertical:""}},[t._t("default"),t._v(" "),t._t("mobileCmd")],2)],1)],1)],1)},staticRenderFns:[]};var Ze=a("VU/8")(Je,Qe,!1,function(t){a("oP3W")},"data-v-aece372c",null).exports,ta=window.SITE_CONFIG.GENRE_TAGS,ea=window.SITE_CONFIG.MOOD_TAGS,aa=window.SITE_CONFIG.INSTRUMENT_TAGS,ia=window.SITE_CONFIG.SONG_ROLES,na=["Spam","Sexual content","Hate speech or violence","Harassment or bullying","Mark explicit content"],sa={genre:{Alternative:"alternative_thumbnail.jpg","Ambient Sounds":"ambient_sounds_thumbnail.jpg",Christian:"christian_thumbnail.jpg",Classical:"classical_thumbnail.jpg",Country:"country_thumbnail.jpg",Disco:"disco_thumbnail.png","Easy Listening":"easy_listening_thumbnail.jpg","Electronic/Dance":"electronic_dance_thumbnail.png","Folk & Acoustic":"folk_and_acoustic_thumbnail.jpg",Funk:"funk_thumbnail.jpg","Hip Hop":"hi
1p_hop_thumbnail.jpg","Jazz & Blues":"jazz_blues_thumbnail.png",Latin:"latin_thumbnail.jpg",Lounge:"lounge_thumbnail.jpg",Metal:"metal_thumbnail.png",Pop:"pop_thumbnail.jpg",Punk:"punk_thumbnail.jpg","R&B":"r_b_thumbnail.jpg",Reggae:"reggae_thumbnail.jpg",Rock:"rock_thumbnail.png",Soul:"soul_thumbnail.jpg","All Other":"all_other_thumbnail.png"},mood:{"Bold/Dramatic":"bold-dramatic_thumbnail.jpg","Relax/Hangout":"relax-hang-out_thumbnail.jpg","Calm/Meditative":"calm-meditative_thumbnail.jpg","Edgy/Tense":"edgy-tense_thumbnail.png","Fun/Goofy":"fun-goofy_thumbnail.jpg","Happy/Energized":"happy_energized_thumbnail.jpg","Heartbroken/Sad":"heartbroken-sad_thumbnail.jpg","Inspirational/Moving":"inspirational-moving_thumbnail.png","Sentimental/In Love":"sentimental-in-love_thumbnail.jpg"},instrument:{"Acoustic Guitar":"acoustic_guitar_thumbnail.png","Acoustic Piano":"acoustic_piano_thumbnail.png",Bass:"bass_thumbnail.png",Brass:"brass_thumbnail.png",Drums:"drums_thumbnail.png","Electric Guitar":"electric_guitar_thumbnail.png","Electronic Sounds":"electronic_sounds_thumbnail.png","Keyboard/Organ":"keyboard-organ_thumbnail.png",Other:"other_instruments_thumbnail.png",Percussion:"percussion_thumbnail.png",Strings:"strings_thumbnail.png","Turntable/DJ":"turntable-dj_thumbnail.png",Woodwinds:"woodwinds_thumbnail.png"}},ra={genre:{Alternative:"alternative_hero.jpg","Ambient Sounds":"ambient_sounds_hero.jpg",Christian:"christian_hero.jpg",Classical:"classical_hero.jpg",Country:"country_hero.jpg",Disco:"disco_hero.jpg","Easy Listening":"easy_listening_hero.jpg","Electronic/Dance":"electronic_dance_hero.jpg","Folk & Acoustic":"folk_and_acoustic_hero.jpg",Funk:"funk_hero.jpg","Hip Hop":"hip_hop_hero.jpg","Jazz & Blues":"jazz_blues_hero.jpg",Latin:"latin_hero.jpg",Lounge:"lounge_hero.jpg",Metal:"metal_hero.jpg",Pop:"pop_hero.jpg",Punk:"punk_hero.jpg","R&B":"r_b_hero.jpg",Reggae:"reggae_hero.jpg",Rock:"rock_hero.jpg",Soul:"soul_hero.jpg","All Other":"all_other_hero.jpg"},mood:{"Bold/Dramatic":"bold-dramatic_hero.jpg","Relax/Hangout":"relax-hang-out_hero.jpg","Calm/Meditative":"calm-meditative_hero.jpg","Edgy/Tense":"edgy-tense_hero.jpg","Fun/Goofy":"fun_goofy_hero.jpg","Happy/Energized":"happy_energized_hero.jpg","Heartbroken/Sad":"heartbroken-sad_hero.jpg","Inspirational/Moving":"inspirational-moving_hero.jpg","Sentimental/In Love":"sentimental-in-love_hero.jpg"},instrument:{"Acoustic Guitar":"acoustic_guitar_hero.jpg","Acoustic Piano":"acoustic_piano_hero.jpg",Bass:"bass_hero.jpg",Brass:"brass_hero.jpg",Drums:"drums_hero.jpg","Electric Guitar":"electric_guitar_hero.jpg","Electronic Sounds":"electronic_sounds_hero.jpg","Keyboard/Organ":"keyboard-organ_hero.jpg",Percussion:"percussion_hero.jpg",Strings:"strings_hero.jpg","Turntable/DJ":"turntable-dj_hero.jpg",Woodwinds:"woodwinds_hero.jpg",Other:"other_instruments_hero.jpg"}},oa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGP6zwAAAgcBApocMXEAAAAASUVORK5CYII=",la="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAJCAYAAAA7KqwyAAAAAXNSR0IArs4c6QAAABFJREFUKBVjYBgFoyFAhRAAAAJJAAFEkgypAAAAAElFTkSuQmCC";function ca(t,e,a){if(!a)return oa;var i=t[e];if(!i)return oa;var n=i[a];return n?"/static/img/"+e+"s/"+n:oa}var ua={name:"Report",components:{FontAwesomeIcon:g.a,LinkButton:x},props:{artist:Object,profile:Object,update:Object,live:Object,video:Object,comment:Object,label:String},data:function(){return{randomId:"reportButton-"+ +new Date+":"+Math.round(1e6*Math.random()),working:!1,reason:null,showReportDialog:!1}},computed:c()({reasonOptions:function(){return na},sendEnabled:function(){return!!this.reason},reportClass:function(){var t=["report-popover"];return this.$slots.default&&t.push("divider"),t}},Object(u.c)("auth",["isLoggedIn"])),methods:{send:function(){var t=this;return h()(v.a.mark(function e(){var a,i,n;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.sendEnabled){e.next=2;break}return e.abrupt("return");case 2:if(a=null,i=null,t.comment?t.update?(a="feed/reportUpdateComment",i=t.update.id):t.video?(a="song/reportSongComment",i=t.video.id):t.live&&(a="live/reportLiveEventComment",i=t.live.id):t.profile?(a="profile/reportProfile",i=t.profile.id):t.artist?(a="artist/reportArtist",i=t.artist.id):t.update?(a="feed/reportUpdate",i=t.update.id):t.video?(a="song/reportSong",i=t.video.id):t.live&&(a="live/reportLiveEvent",i=t.live.id),a){e.next=9;break}return console.log("[report] nothing to report"),t.close(),e.abrupt("return");case 9:return n={reason:t.reason,url:t.$route.fullPath},t.comment?(n.subjectId=i,n.commentId=t.comment.id):n.id=i,t.working=!0,e.next=14,t.$store.dispatch(a,n);case 14:t.working=!1,t.$store.dispatch("flash/showMessage",{message:"Thank y
1ou for reporting this"}),t.close();case 17:case"end":return e.stop()}},e,t)}))()},open:function(){this.$refs.popover.$emit("open")},close:function(){this.showReportDialog=!1,this.working=!1,this.reason=null,this.$refs.popover.$emit("close")}}},da={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.isLoggedIn?a("div",{staticClass:"root"},[a("font-awesome-icon",{staticClass:"report-button",attrs:{id:t.randomId,icon:"ellipsis-v","full-width":""}}),t._v(" "),a("b-popover",{ref:"popover",attrs:{target:t.randomId,triggers:"click blur",placement:"bottomleft",title:""}},[a("div",{staticClass:"actions"},[t._t("default"),t._v(" "),a("LinkButton",{on:{click:function(e){t.showReportDialog=!0}}},[t._v(t._s(t.label||"Report"))])],2),t._v(" "),t.showReportDialog?a("div",{class:t.reportClass},[a("b-form-group",[a("b-form-select",{attrs:{options:t.reasonOptions,size:"sm"},model:{value:t.reason,callback:function(e){t.reason=e},expression:"reason"}})],1),t._v(" "),a("b-button",{staticClass:"btn-rainbow",attrs:{disabled:!t.sendEnabled},on:{click:t.send}},[t._v("\n report\n ")]),t._v(" "),t.working?a("font-awesome-icon",{attrs:{icon:"spinner",size:"lg",spin:""}}):t._e(),t._v(" "),a("LinkButton",{staticClass:"ml-2",attrs:{u:!0},on:{click:t.close}},[t._v("cancel")])],1):t._e()])],1):t._e()},staticRenderFns:[]};var va=a("VU/8")(ua,da,!1,function(t){a("jDc+")},"data-v-3b1498a1",null).exports,pa={name:"ArtistProfileTabs",components:{FontAwesomeIcon:g.a,ObjectListTabs:Ze,Report:va},props:{artist:Object},computed:c()({currentArtist:function(){return this.$store.getters["artist/artist"]},isCurrent:function(){var t=this.currentArtist;return t&&t.id===this.artist.id}},Object(u.c)("auth",["isLoggedIn"]))},ha={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.artist?a("ObjectListTabs",{staticClass:"artist-tabs",scopedSlots:t._u([{key:"default",fn:function(e){return[a("b-nav-item",{attrs:{to:{name:"artist-about",params:{artistId:t.artist.id}}}},[t._v("About")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"artist-videos",params:{artistId:t.artist.id}}}},[t._v("Videos")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"artist-albums",params:{id:t.artist.id}}}},[t._v("Albums")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"artist-live-stream-list",params:{artistId:t.artist.id}}}},[t._v("Live Streams")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"artist-activity",params:{artistId:t.artist.id}}}},[t._v("Activity")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"artist-featured",params:{artistId:t.artist.id}}}},[t._v("Featured In")])]}},{key:"cmd",fn:function(e){return!t.isCurrent&&t.isLoggedIn?[a("b-button",{attrs:{variant:"secondary",to:{name:"artist-send-message",params:{artistId:t.artist.id}},size:"sm"}},[a("font-awesome-icon",{attrs:{icon:"comment"}})],1),t._v("\n  \n "),a("Report",{ref:"report",staticClass:"report-artist",attrs:{artist:t.artist,label:"Report artist"}})]:void 0}},{key:"mobileCmd",fn:function(e){return!t.isCurrent&&t.isLoggedIn?[a("b-nav-item",{attrs:{to:{name:"artist-send-message",params:{artistId:t.artist.id}}}},[t._v("Message")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"artist-report",params:{artistId:t.artist.id}}}},[t._v("Report")])]:void 0}}])}):t._e()},staticRenderFns:[]};var ma=a("VU/8")(pa,ha,!1,function(t){a("P9vX")},"data-v-e5d8551a",null).exports,fa=function(t){var e=this,a={finish:null,cancel:null},i=!1,n=t.getters["profile/currentUser"];return a.finish=new U.a(function(s,r){var o,l=window.StripeCheckout.configure({key:t.getters["config/stripePublishableKey"],image:"",locale:"auto",panelLabel:"Save",token:(o=h()(v.a.mark(function a(n){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=!0,e.next=3,t.dispatch("payment/setPaymentToken",{token:n.id});case 3:s();case 4:case"end":return e.stop()}},a,e)})),function(t){return o.apply(this,arguments)}),closed:function(){i||r(new Error("no card"))}});l.open({name:"Songback",description:n.stripe_customer_id?"Update credit card info":"Add credit card",email:n.email,zipCode:!0,allowRememberMe:!1}),a.cancel=function(){l.close(),r(new Error("cancelled"))}}),a},ba={render:function(){var t=this.$createElement,e=this._self._c||t;return e("b-modal",{ref:"creditCardLinked",attrs:{title:"Credit Card Linked","ok-only":!0,
1centered:""}},[e("div",{staticClass:"content"},[e("p",[this._v("\n Your credit card is now linked to your Songback account, and will be used for future purchases automatically.\n ")]),this._v(" "),e("p",[this._v("\n Please visit the "),e("router-link",{attrs:{to:{name:"fan-billing-info"},target:"_blank"}},[this._v("Payments")]),this._v(" page\n to unlink (or remove) your credit card.\n ")],1)])])},staticRenderFns:[]};var ga=a("VU/8")({name:"CreditCardLinked",methods:{show:function(){this.$refs.creditCardLinked.show()}}},ba,!1,function(t){a("b6Tk")},"data-v-7ac6589a",null).exports,_a={name:"Donate",components:{FontAwesomeIcon:g.a,CreditCardLinked:ga},props:{target:String,artist:Object,live:Object},data:function(){return{working:!1,amount:""}},filters:{decimals:function(t){var e=t.trim();return"$"===e[0]&&(e=e.substr(1).trim()),Number(e).toFixed(2)}},computed:{numAmount:function(){var t=this.amount.trim();return t.length&&"$"===t[0]&&(t=t.substr(1).trim()),+t},inputState:function(){if(""!==this.amount)return this.numAmount<2?"invalid":"valid"},sendEnabled:function(){return"valid"===this.inputState}},methods:{showModal:function(){this.$refs["credit-confirm-modal"].show()},hideModal:function(){this.$refs["credit-confirm-modal"].hide(),this.amount=""},send:function(){var t=this;return h()(v.a.mark(function e(){var a,i,n;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.$refs["credit-confirm-modal"].hide(),t.sendEnabled){e.next=3;break}return e.abrupt("return");case 3:if(t.working=!0,t.$store.getters["profile/currentUser"].stripe_customer_id){e.next=17;break}return a=fa(t.$store),e.prev=6,e.next=9,a.finish;case 9:t.$refs.ccLinked.show(),e.next=17;break;case 12:return e.prev=12,e.t0=e.catch(6),console.log("can't capture cc",e.t0),t.working=!1,e.abrupt("return");case 17:return i=void 0,e.prev=18,e.next=21,t.$store.dispatch("profile/donate",{id:t.artist.id,liveId:t.live?t.live.id:void 0,amount:t.numAmount});case 21:i=e.sent,e.next=33;break;case 24:return e.prev=24,e.t1=e.catch(18),n="Error making donation",e.t1.response&&e.t1.response.data&&e.t1.response.data.message&&(n=e.t1.response.data.message),t.$store.dispatch("flash/showMessage",{message:n,type:"error"}),t.$refs.popover.$emit("close"),t.working=!1,t.amount="",e.abrupt("return");case 33:t.live&&"fan2artist"===t.live.chat_type&&(i.fan=t.$store.getters["profile/currentUser"],t.$store.dispatch("realtime/injectOwnMessage",{message:{type:"donation",donation:i},action:"action"})),t.$store.dispatch("flash/showMessage",{message:"Thanks for your support!"}),t.$refs.popover.$emit("close"),t.working=!1,t.amount="";case 38:case"end":return e.stop()}},e,t,[[6,12],[18,24]])}))()}}},ya={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("b-popover",{ref:"popover",attrs:{target:t.target,triggers:"click blur",placement:"bottom",title:""}},[a("div",{staticClass:"donatePopover"},[a("b-form-group",{attrs:{label:"Back the artists you love!",description:"Minimum $2.00",state:t.inputState}},[a("b-form-input",{staticClass:"amount",attrs:{size:"sm",state:t.inputState},model:{value:t.amount,callback:function(e){t.amount=e},expression:"amount"}})],1),t._v(" "),a("b-button",{staticClass:"btn-rainbow",attrs:{disabled:!t.sendEnabled},on:{click:t.showModal}},[a("img",{attrs:{src:"/static/icons/donate.svg"}}),t._v("\n send\n ")]),t._v(" "),t.working?a("font-awesome-icon",{attrs:{icon:"spinner",size:"lg",spin:""}}):t._e()],1)]),t._v(" "),a("CreditCardLinked",{ref:"ccLinked"}),t._v(" "),a("b-modal",{ref:"credit-confirm-modal",attrs:{id:"credit-confirm-modal",title:"Confirm Transaction",centered:""},on:{cancel:t.hideModal,ok:t.send}},[a("div",{staticClass:"content"},[a("p",[t._v("\n $"+t._s(t._f("decimals")(t.amount))+" will be charged to your credit card.\n ")])])])],1)},staticRenderFns:[]};var wa=a("VU/8")(_a,ya,!1,function(t){a("6Xdp")},null,null).exports,Ca={name:"ProfileHero",components:{FontAwesomeIcon:g.a,Donate:wa},props:{user:Object,artist:Object},data:function(){return{isFollowing:!1}},computed:c()({getHero:function(){return this.artist?this.artist.hero_image||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGP6zwAAAgcBApocMXEAAAAASUVORK5CYII=":this.user?this.heroImage(this.user):null},getAvatar:function(){return this.artist?this.artist.avatar_image:this.user?this.avatarImage(this.user):null},getName:function(){return this.artist?this.artist.name:this.user?this.displayName(this.user):""},heroClass:function(){var t=["hero"];return this.artist&&!this.ownProfile&&t.push("artist"),t},heroStyle:function(){return{"background-image":"url("+this.getHero+")"}},ownProfile:function(){var t=this.$store.getters["profile/currentUser"];return!(!this.user||this.user.id!==t.id)||!(!this.artist||!t.artist||this.artist.id!==t.artist.id)}},Object(u.c)("auth",["isLoggedIn"])),created:function(){this.initComponent()},watch:{artist:"initComponent"},methods:c()({follow:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.isLoggedIn){e.next=3;break}return t.$router.push({name:"account-login",query:{next:t.$route.fullPath}}),e.abrupt("return");case 3:if(t.artist&&!t.ownProfile&&!t.isFollowing){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,t.$store.dispatch("profile/followProfile",{id:t.artist.profile.id});case 7:t.initComponent();case 8:case"end":return e.stop()}},e,t)}))()},unfollow:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.isLoggedIn){e.next=3;break}return t.$router.push({name:"account-login",query:{next:t.$route.fullPath}}),e.abrupt("return");case 3:if(t.artist&&!t.ownProfile&&t.isFollowing){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,t.$store.dispatch("profile/unfollowProfile",{id:t.artist.profile.id});case 7:t.initComponent();case 8:case"end":return e.stop()}},e,t)}))()},initComponent:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.artist&&!t.ownProfile){e.next=2;break}return e.abrupt("return");case 2:return e.t0=C.a,e.next=5,t.$store.dispatch("profile/listFollowedArtists");case 5:e.t1=e.sent,e.t2=function(t){return t.id},a=(0,e.t0)(e.t1,e.t2),t.isFollowing=-1!==a.indexOf(t.artist.id);case 9:case"end":return e.stop()}},e,t)}))()},plural:function(t){return 1===t?"":"s"}},$)},ka={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.user||t.artist?a("b-row",[a("b-col",{class:t.heroClass},[a("div",{staticClass:"blurbg",style:t.heroStyle}),t._v(" "),a("h1",[t._v(t._s(t.getName))]),t._v(" "),a("img",{staticClass:"bg",attrs:{src:t.getHero}}),t._v(" "),a("div",{staticClass:"avatar"},[a("img",{attrs:{src:t.getAvatar}})]),t._v(" "),t.artist&&!t.ownProfile&&t.isLoggedIn?a("div",{staticClass:"follow"},[t.isFollowing?a("b-button",{staticClass:"btn-decorated active",on:{click:t.unfollow}},[a("font-awesome-icon",{attrs:{icon:"check"}}),t._v("\n  following\n ")],1):a("b-button",{staticClass:"btn-decorated",on:{click:t.follow}},[a("font-awesome-icon",{attrs:{icon:"plus"}}),t._v("\n  follow\n ")],1)],1):t._e(),t._v(" "),t.artist&&!t.ownProfile&&t.isLoggedIn?a("div",{staticClass:"donate",style:{left:t.isFollowing?"14em":"12em"}},[a("b-button",{staticClass:"btn-decorated",attrs:{id:"btnDonate"}},[a("div",{staticClass:"icon"},[a("img",{attrs:{src:"/static/icons/donate.svg",alt:"Donate"}})]),t._v(" "),a("span",{staticClass:"txt"},[a("font-awesome-icon",{attrs:{icon:"dollar-sign"}}),t._v("\n  donate\n ")],1)]),t._v(" "),a("Donate",{attrs:{target:"btnDonate",artist:t.artist}})],1):t._e(),t._v(" "),t.artist&&void 0!==t.artist.video_count?a("div",{staticClass:"infobox videos"},[a("div",{staticClass:"icon"}
1,[a("img",{attrs:{src:"/static/img/icon-video.png",alt:"Videos"}})]),t._v(" "),a("div",{staticClass:"num"},[t._v(t._s(t.artist.video_count))]),t._v(" "),a("div",{staticClass:"txt"},[t._v("Video"+t._s(t.plural(t.artist.video_count)))])]):t._e(),t._v(" "),t.artist&&void 0!==t.artist.follower_count?a("div",{staticClass:"infobox followers"},[a("div",{staticClass:"icon"},[a("img",{attrs:{src:"/static/img/icon-followers.png",alt:"Followers"}})]),t._v(" "),a("div",{staticClass:"num"},[t._v(t._s(t.artist.follower_count))]),t._v(" "),a("div",{staticClass:"txt"},[t._v("Follower"+t._s(t.plural(t.artist.follower_count)))])]):t._e()])],1):t._e()},staticRenderFns:[]};var xa=a("VU/8")(Ca,ka,!1,function(t){a("vaV9")},"data-v-5ec68e79",null).exports,Aa={name:"ArtistAbout",components:{ArtistProfileTabs:ma,ProfileHero:xa},data:function(){return{artist:null}},computed:{isCurrentUser:function(){return this.artist&&this.artist.profile.id===this.$store.getters["profile/currentUser"].id}},watch:{$route:"initPage"},created:function(){this.initPage()},methods:{initPage:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("artist/getArtist",{id:t.$route.params.artistId});case 3:t.artist=e.sent,e.next=12;break;case 6:e.prev=6,e.t0=e.catch(0),a="Error getting artist information",e.t0.response&&404===e.t0.response.status&&(a="Artist account no longer exists"),t.$store.dispatch("flash/showMessage",{message:a,type:"error"}),t.$router.replace({name:"discover"});case 12:case"end":return e.stop()}},e,t,[[0,6]])}))()},formatText:Xe}},Sa={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[t.artist?a("ProfileHero",{attrs:{artist:t.artist}}):t._e(),t._v(" "),t.artist?a("ArtistProfileTabs",{attrs:{artist:t.artist}}):t._e(),t._v(" "),a("div",{staticClass:"content"},[t.artist?a("b-row",{staticClass:"py-2",attrs:{"align-v":"center"}},[a("b-col",{staticClass:"flex artist-header"},[a("img",{staticClass:"avatar",attrs:{src:t.artist.avatar_image}}),t._v(" "),a("div",[a("h2",[t._v(t._s(t.artist.name))]),t._v(" "),a("h4",[t._v("@"+t._s(t.artist.handle))])])])],1):t._e(),t._v(" "),t.artist?a("b-row",[a("b-col",{domProps:{innerHTML:t._s(t.formatText(this.artist.bio))}})],1):t._e()],1)],1)},staticRenderFns:[]};var Ia=a("VU/8")(Aa,Sa,!1,function(t){a("jFoR")},"data-v-3cbf2d70",null).exports,Pa=a("woOf"),Ta=a.n(Pa),Ea={street_number:"short_name",route:"long_name",locality:"long_name",administrative_area_level_1:"short_name",administrative_area_level_2:"county",country:"long_name",postal_code:"short_name"},La=["locality","administrative_area_level_3"],$a=["locality","sublocality","postal_code","country","administrative_area_level_1","administrative_area_level_2"],Oa={name:"VueGoogleAutocomplete",props:{id:{type:String,required:!0},classname:String,placeholder:{type:String,default:"Start typing"},types:{type:String,default:"address"},country:{type:[String,Array],default:null},enableGeolocation:{type:Boolean,default:!1},geolocationOptions:{type:Object,default:null}},data:function(){return{autocomplete:null,autocompleteText:"",geolocation:{geocoder:null,loc:null,position:null}}},watch:{autocompleteText:function(t,e){this.$emit("inputChange",{newVal:t,oldVal:e},this.id)},country:function(t,e){this.autocomplete.setComponentRestrictions({country:null===this.country?[]:this.country})}},mounted:function(){var t={};this.types&&(t.types=[this.types]),this.country&&(t.componentRestrictions={country:this.country}),this.autocomplete=new google.maps.places.Autocomplete(document.getElementById(this.id),t),this.autocomplete.addListener("place_changed",this.onPlaceChanged)},methods:{onPlaceChanged:function(){var t=this.autocomplete.getPlace();t.geometry?void 0!==t.address_components&&(this.$emit("placechanged",this.formatResult(t),t,this.id),this.autocompleteText=document.getElementById(this.id).value,this.onChange()):this.$emit("no-results-found",t,this.id)},onFocus:function(){this.biasAutocompleteLocation(),this.$emit("focus")},onBlur:function(){this.$emit("blur")},onChange:function(){this.$emit("change",this.autocompleteText)},onKeyPress:function(t){this.$emit("keypress",t)},onKeyUp:function(t){this.$emit("keyup",t)},clear:function(){this.autocompleteText=""},focus:function(){this.$refs.autocomplete.focus()},blur:function(){this.$refs.autocomplete.blur()},update:function(t){this.autocompleteText=t},updateCoordinates:function(t){var e=this;(t||t.lat||t.lng)&&(this.geolocation.geocoder||(this.geolocation.geocoder=new google.maps.Geocoder),this.geolocation.geocoder.geocode({location:t},function(t,a){"OK"===a?(t=e.filterGeocodeResultTypes(t))[0]?(e.$emit("placechanged",e.formatResult(t[0]),t[0],e.id),e.update(t[0].formatted_address)):e.$emit("error","no result for provided coordinates"):e.$emit("error","error getting address from coords")}))},geolocate:function(){var t=this;this.updateGeolocation(function(e,a){t.updateCoordinates(e)})},updateGeolocation:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(navigator.geolocation){var a={};this.geolocationOptions&&Ta()(a,this.geolocationOptions),navigator.geolocation.getCurrentPosition(function(a){var i={lat:a.coords.latitude,lng:a.coords.longitude};t.geolocation.loc=i,t.geolocation.position=a,e&&e(i,a)},function(e){t.$emit("error","Cannot get Coordinates from navigator",e)}
1,a)}},biasAutocompleteLocation:function(){var t=this;this.enableGeolocation&&this.updateGeolocation(function(e,a){var i=new google.maps.Circle({center:e,radius:a.coords.accuracy});t.autocomplete.setBounds(i.getBounds())})},formatResult:function(t){for(var e={},a=0;a<t.address_components.length;a++){var i=t.address_components[a].types[0];if(Ea[i]){var n=t.address_components[a][Ea[i]];e[i]=n}}return e.latitude=t.geometry.location.lat(),e.longitude=t.geometry.location.lng(),e},filterGeocodeResultTypes:function(t){if(!t||!this.types)return t;var e=[],a=[this.types];a.includes("(cities)")&&(a=a.concat(La)),a.includes("(regions)")&&(a=a.concat($a));var i=!0,n=!1,s=void 0;try{for(var r,o=T()(t);!(i=(r=o.next()).done);i=!0){var l=r.value,c=!0,u=!1,d=void 0;try{for(var v,p=T()(l.types);!(c=(v=p.next()).done);c=!0){var h=v.value;if(a.includes(h)){e.push(l);break}}}catch(t){u=!0,d=t}finally{try{!c&&p.return&&p.return()}finally{if(u)throw d}}}}catch(t){n=!0,s=t}finally{try{!i&&o.return&&o.return()}finally{if(n)throw s}}return e}}},Ra={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{directives:[{name:"model",rawName:"v-model",value:t.autocompleteText,expression:"autocompleteText"}],ref:"autocomplete",class:t.classname,attrs:{type:"text",id:t.id,placeholder:t.placeholder},domProps:{value:t.autocompleteText},on:{focus:function(e){t.onFocus()},blur:function(e){t.onBlur()},change:t.onChange,keypress:t.onKeyPress,keyup:t.onKeyUp,input:function(e){e.target.composing||(t.autocompleteText=e.target.value)}}})},staticRenderFns:[]},Fa=a("VU/8")(Oa,Ra,!1,null,null,null).exports,Ma=qt.helpers.regex("validHandle",/^[a-z0-9]+$/),Ua={name:"Onboarding",components:{FontAwesomeIcon:g.a,VueGoogleAutocomplete:Fa,LinkButton:x},mixins:[Ht.validationMixin],validations:{artist:{name:{required:qt.required},handle:{required:qt.required,validHandle:Ma,minLength:Object(qt.minLength)(3)},email:{required:qt.required,email:qt.email},tos:{mustBeChecked:function(t){return t}}}},data:function(){var t=this.$store.getters["profile/isArtist"],e=t?this.$store.getters["artist/artist"]:{tags:[]},a={},i=!0,n=!1,s=void 0;try{for(var r,o=T()(ta);!(i=(r=o.next()).done);i=!0){var l=r.value;a[l]=-1!==e.tags.indexOf(l)}}catch(t){n=!0,s=t}finally{try{!i&&o.return&&o.return()}finally{if(n)throw s}}var c={},u=!0,d=!1,v=void 0;try{for(var p,h=T()(ea);!(u=(p=h.next()).done);u=!0){var m=p.value;c[m]=-1!==e.tags.indexOf(m)}}catch(t){d=!0,v=t}finally{try{!u&&h.return&&h.return()}finally{if(d)throw v}}return{newlyCreated:!1,step:t?"payout":"create",errors:{},genres:ta,moods:ea,genreMap:a,moodMap:c}},computed:c()({},Object(u.c)("profile",["currentUser","displayName","isArtist"]),Object(u.c)("artist",["artist","hasPayoutMethod"]),{selectedMoods:function(){var t=[];for(var e in this.moodMap)this.moodMap[e]&&t.push(e);return t},selectedGenres:function(){var t=[];for(var e in this.genreMap)this.genreMap[e]&&t.push(e);return t}}),created:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("profile/getCurrentUser");case 2:t.isArtist&&t.hasPayoutMethod&&(t.$route.query.payout_success&&t.$store.dispatch("flash/showMessage",{message:"Welcome Artist"}),t.$router.push({name:"artist-profile-edit"})),t.isArtist||(t.artist.handle||(t.artist.handle=t.currentUser.username),t.artist.email||(t.artist.email=t.currentUser.email));case 4:case"end":return e.stop()}},e,t)}))()},methods:{close:function(){this.$router.push({name:"fan-home"})},create:function(){var t=this;if(this.errors={},window.$v=this.$v,this.$v.$touch(),this.$v.$invalid)return this.errors.name=this.$v.artist.name.$error?"Name is required":void 0,this.errors.handle=this.$v.artist.handle.$error?"Invalid handle (lowercase letters only)":void 0,void(this.errors.email=this.$v.artist.email.$error?"Invalid email":void 0);var e={};if(!this.artist.location){var a=document.querySelector("input#location").value;a&&(this.artist.location=a.trim())}this.$store.dispatch("artist/createArtist",this.artist).then(function(){t.$store.dispatch("profile/getCurrentUser")}).then(function(){t.newlyCreated=!0,t.step="genres"}).catch(function(a){for(var i in a.response.data)e[i]=a.response.data[i];t.errors=e})}
1,fieldState:function(t){return this.errors[t]?"invalid":null},fieldError:function(t){return this.errors[t]||null},onPlaceChanged:function(t,e,a){this.artist.location_lat=t.latitude,this.artist.location_lng=t.longitude,this.artist.location=e.formatted_address},onGenre:function(t){var e=this.selectedGenres;e.length>3&&-1!==e.indexOf(t)&&(this.genreMap[t]=!1)},onMood:function(t){var e=this.selectedMoods;e.length>2&&-1!==e.indexOf(t)&&(this.moodMap[t]=!1)},saveGenres:function(){var t=this,e=[],a=!0,i=!1,n=void 0;try{for(var s,r=T()(this.artist.tags);!(a=(s=r.next()).done);a=!0){var o=s.value;-1===ta.indexOf(o)&&e.push(o)}}catch(t){i=!0,n=t}finally{try{!a&&r.return&&r.return()}finally{if(i)throw n}}for(var l in this.genreMap)this.genreMap[l]&&e.push(l);this.artist.tags=e,this.$store.dispatch("artist/updateArtist").then(function(){t.step="moods"})},saveMoods:function(){var t=this,e=[],a=!0,i=!1,n=void 0;try{for(var s,r=T()(this.artist.tags);!(a=(s=r.next()).done);a=!0){var o=s.value;-1===ea.indexOf(o)&&e.push(o)}}catch(t){i=!0,n=t}finally{try{!a&&r.return&&r.return()}finally{if(i)throw n}}for(var l in this.moodMap)this.moodMap[l]&&e.push(l);this.artist.tags=e,this.$store.dispatch("artist/updateArtist").then(function(){t.step="payout"})},setupStripe:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("payment/getArtistPayoutSetupLink",{next:window.location.origin+"/artist/dashboard/"});case 2:a=e.sent,window.location=a;case 4:case"end":return e.stop()}},e,t)}))()}}},Na={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bg",style:{backgroundColor:"genres"===t.step||"moods"===t.step?"#dc3681":"#fff"}},[a("div",{staticClass:"header"},[t._m(0),t._v(" "),"create"===t.step?a("div",{staticClass:"cancel",on:{click:t.close}},[a("font-awesome-icon",{attrs:{icon:"times"}})],1):t._e()]),t._v(" "),a("div",{staticClass:"content"},[a("div",{staticClass:"wizard"},["create"===t.step?a("div",{staticClass:"panel begin"},[a("div",{staticClass:"message"},[a("h1",[t._v("Welcome Artist")]),t._v(" "),a("p",{staticClass:"text"},[t._v("\n This is where your journey begins.\n You have a HUGE responsibility, your\n content will be the heart of yours and\n our business. Try to impress your fans!\n ")]),t._v(" "),a("p",{staticClass:"actions d-md-block d-none"},[a("a",{staticClass:"cancel",attrs:{href:"#"},on:{click:t.close}},[t._v("cancel")]),t._v(" "),a("b-button",{staticClass:"btn-decorated",attrs:{type:"submit",disabled:!t.artist.tos||!t.artist.handle},on:{click:t.create}},[t._v("Start")])],1),t._v(" "),a("p",{staticClass:"d-md-block d-none"},[a("b-form-checkbox",{attrs:{id:"checkbox1",required:""},model:{value:t.artist.tos,callback:function(e){t.$set(t.artist,"tos",e)},expression:"artist.tos"}},[t._v("\n I accept the "),a("a",{attrs:{href:"/site/tos",target:"_blank"}},[t._v("Terms of Use")])])],1)]),t._v(" "),a("div",{staticClass:"form"},[a("b-form-group",{attrs:{id:"nameGroup",label:"Choose your artistic name",state:t.fieldState("name"),"invalid-feedback":t.fieldError("name"),"label-for":"name"}},[a("b-form-input",{attrs:{id:"name",type:"text",required:"",state:t.fieldState("name")},model:{value:t.artist.name,callback:function(e){t.$set(t.artist,"name",e)},expression:"artist.name"}})],1),t._v(" "),a("b-form-group",{attrs:{id:"handleGroup",label:"Artist handle (may match your username)","label-for":"handle",state:t.fieldState("handle"),"invalid-feedback":t.fieldError("handle")}},[a("b-form-input",{attrs:{id:"handle",type:"text",required:"",state:t.fieldState("handle")},model:{value:t.artist.handle,callback:function(e){t.$set(t.artist,"handle",e)},expression:"artist.handle"}})],1),t._v(" "),a("b-form-group",{attrs:{id:"emailGroup",label:"Contact email (will be visible on receipts)","label-for":"email",state:t.fieldState("email"),"invalid-feedback":t.fieldError("email")}},[a("b-form-input",{attrs:{id:"email",type:"email",required:"",state:t.fieldState("email")},model:{value:t.artist.email,callback:function(e){t.$set(t.artist,"email",e)},expression:"artist.email"}})],1),t._v(" "),a("b-form-group",{attrs:{id:"locationGroup",label:"Where are you from?","label-for":"location"}},[a("vue-google-autocomplete",{attrs:{id:"location",classname:"form-control",placeholder:"Start typing",types:"(cities)"},on:{placechanged:t.onPlaceChanged}})],1),t._v(" "),a("b-form-group",{attrs:{id:"bioGroup",label:"Tell your story","label-for":"bio"}},[a("b-form-textarea",{attrs:{id:"bio",rows:5,"max-rows":10,required:"",placeholder:""},model:{value:t.artist.bio,callback:function(e){t.$set(t.artist,"bio",e)},expression:"artist.bio"}})],1),t._v(" "),a("p",{staticClass:"actions align-items-center d-block d-flex d-md-none justify-content-between"},[a("a",{staticClass:"cancel",attrs:{href:"#"},on:{click:t.close}},[t._v("cancel")]),t._v(" "),a("b-button",{staticClass:"btn-decorated",attrs:{type:"submit",disabled:!t.artist.tos||!t.artist.handle||!t.artist.email},on:{click:t.create}},[t._v("Start")])],1),t._v(" "),a("p",{staticClass:"d-md-none d-block"},[a("b-form-checkbox",{attrs:{id:"checkbox1",required:""},model:{value:t.artist.tos,callback:function(e){t.$set(t.artist,"tos",e)},expression:"artist.tos"}},[t._v("\n I accept the "),a("a",{attrs:{href:"/site/tos",target:"_blank"}},[t._v("Terms of Use")])])],1)],1)]):t._e(),t._v(" "),"genres"===t.step?a("div",{staticClass:"panel genres"},[a("div",{staticClass:"message"},[a("h1",[t._v("Help your fans find you")]),t._v(" "),a("p",{staticClass:"text"},[t._v("Choose which genres match your style.")]),t._v(" "),a("p",{staticClass:"align-items-center d-md-flex justify-content-around d-md-block d-none actions"},[a("b-button",{staticClass:"btn-decorated",attrs:{type:"submit"},on:{click:t.saveGenres}},[t._v("Next")]),t._v(" "),a("LinkButton",{staticClass:"m-0",attrs:{u:!0},on:{click:function(e){t.step="moods"}}},[t._v("skip")])],1)]),t._v(" "),a("div",{staticClass:"form"},[t._l(t.genres,function(e){return a("b-button",{key:e,attrs:{pressed:t.genreMap[e]},on:{"update:pressed":function(a){t.$set(t.genreMap,e,a)},click:function(a){t.onGenre(e)}}},[t._v("\n "+t._s(e)+"\n ")])}),t._v(" "),a("div",{staticClass:"info"},[t._v("(Choose up to 3)")]),t._v(" "),a("p",{staticClass:"align-items-center justify-content-around d-md-none d-flex actions"},[a("b-button",{staticClass:"btn-decorated",attrs:{type:"submit"},on:{click:t.saveGenres}},[t._v("Next")]),t._v(" "),a("LinkButton",{staticClass:"m-0",attrs:{u:!0},on:{click:function(e){t.step="moods"}}},[t._v("skip")])],1)],2)]):t._e(),t._v(" "),"moods"===t.step?a("div",{staticClass:"panel genres"},[a("div",{staticClass:"message"},[a("h1",[t._v("Mood is everything")]),t._v(" "),a("p",{staticClass:"text"},[t._v("What should your fans feel?")]),t._v(" "),a("p",{staticClass:"align-items-center d-md-flex justify-content-around d-md-block d-none actions"},[a("b-button",{staticClass:"btn-decorated",attrs:{type:"submit"},on:{click:t.saveMoods}},[t._v("Next")]),t._v(" "),a("LinkButton",{staticClass:"m-0",attrs:{u:!0},on:{click:function(e){t.step="payout"}}},[t._v("skip")])],1)]),t._v(" "),a("div",{staticClass:"form"},[t._l(t.moods,function(e){return a("b-button",{key:e,attrs:{pressed:t.moodMap[e]},on:{"update:pressed":function(a){t.$set(t.moodMap,e,a)},click:function(a){t.onMood(e)}}},[t._v("\n "+t._s(e)+"\n ")])}),t._v(" "),a("div",{staticClass:"info"}
1,[t._v("(Choose up to 2)")]),t._v(" "),a("p",{staticClass:"align-items-center justify-content-around d-md-none d-flex actions"},[a("b-button",{staticClass:"btn-decorated",attrs:{type:"submit"},on:{click:t.saveMoods}},[t._v("Next")]),t._v(" "),a("LinkButton",{staticClass:"m-0",attrs:{u:!0},on:{click:function(e){t.step="payout"}}},[t._v("skip")])],1)],2)]):t._e(),t._v(" "),"payout"===t.step?a("div",{staticClass:"panel payout"},[a("div",{staticClass:"message"},[a("h1",[t._v("Monetize your art")]),t._v(" "),a("p",{staticClass:"text"},[t._v("Set up your payout method to earn money live streaming shows or private concerts, releasing new songs, and receiving donations. (see "),a("router-link",{attrs:{to:{name:"site-fees"},target:"_blank"}},[t._v("Artist Fees and Payments")]),t._v("\n for details)")],1)]),t._v(" "),a("div",{staticClass:"form"},[a("b-button",{staticClass:"btn-rainbow",attrs:{type:"submit"},on:{click:t.setupStripe}},[t._v("set up payouts")])],1)]):t._e()])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logo"},[e("img",{staticClass:"logo",attrs:{src:"/static/img/songback-logo.svg"}})])}]};var Va=a("VU/8")(Ua,Na,!1,function(t){a("MAp+")},"data-v-10e5d72c",null).exports,ja={name:"ArtistEditProfileTabs",components:{ObjectListTabs:Ze}},Da={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ObjectListTabs",{scopedSlots:t._u([{key:"default",fn:function(e){return[a("b-nav-item",{attrs:{to:{name:"artist-profile-edit"}}},[t._v("Artist info")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"artist-my-activity"}}},[t._v("Manage activity")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"artist-blocked-users"}}},[t._v("Blocked users")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"artist-payout-method"}}},[t._v("Payout settings")])]}}])})},staticRenderFns:[]},Ba=a("VU/8")(ja,Da,!1,null,null,null).exports,Ha={name:"Comments",components:{LinkButton:x,Report:va,FontAwesomeIcon:g.a},props:{update:Object,live:Object,video:Object,small:Boolean,canManage:Boolean,collapsed:Boolean},model:{prop:"comments",event:"change"},data:function(){return{comments:null,formVisible:!1,text:"",hidden:!0}},computed:c()({object:function(){return this.update?this.update:this.live?this.live:this.video?this.video:null},commentCount:function(){return null===this.comments?this.video?this.formatCommentCount(this.video.comment_count):this.live?this.formatCommentCount(this.live.comment_count):this.update?this.formatCommentCount(this.update.comments?this.update.comments.length:0):"show comments":this.formatCommentCount(this.comments.length)},avatarClass:function(){return this.small?"small":""}},Object(u.c)("auth",["isLoggedIn"]),Object(u.c)("profile",["currentUser"])),created:function(){this.hidden=this.collapsed,this.initComponent()},watch:{object:{handler:function(t,e){this.live&&t.comment_count===e.comment_count||this.initComponent()}},hidden:"initComponent"},methods:c()({initComponent:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.hidden){e.next=2;break}return e.abrupt("return");case 2:if(t.formVisible=!1,t.text="",!t.update){e.next=8;break}t.comments=t.update.comments,e.next=25;break;case 8:if(!t.live){e.next=16;break}return e.next=11,t.$store.dispatch("live/getLiveEventComments",{id:t.live.id});case 11:return e.next=13,e.sent.all();case 13:t.comments=e.sent,e.next=25;break;case 16:if(!t.video){e.next=24;break}return e.next=19,t.$store.dispatch("song/getSongComments",{id:t.video.id});case 19:return e.next=21,e.sent.all();case 21:t.comments=e.sent,e.next=25;break;case 24:t.comments=[];case 25:case"end":return e.stop()}},e,t)}))()},formatCommentCount:function(t){return 0===t?"no comments":1===t?"1 comment":t+" comments"},formatDate:function(t){return xt(t.created_at).fromNow()},formatText:function(t){return Ke(t.text||"")},showForm:function(){var t=this;this.hidden=!1,i.a.nextTick(function(){t.formVisible=!0})},onKeyUp:function(t){"Enter"===t.key&&this.send()},send:function(){var t=this;return h()(v.a.mark(function e(){var a,i;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.text){e.next=2;break}return e.abrupt("return");case 2:if(a=t.text.trim(),i=null,!t.update){e.next=10;break}return e.next=7,t.$store.dispatch("feed/postUpdateComment",{id:t.update.id,text:a,asArtist:t.canManage});case 7:i=e.sent,e.next=20;break;case 10:if(!t.live){e.next=16;break}return e.next=13,t.$store.dispatch("live/postLiveEventComment",{id:t.live.id,text:a,asArtist:t.canManage});case 13:i=e.sent,e.next=20;break;case 16:if(!t.video){e.next=20;break}return e.next=19,t.$store.dispatch("song/postSongComment",{id:t.video.id,text:a,asArtist:t.canManage});case 19:i=e.sent;case 20:i&&(t.comments.unshift(i),t.video&&t.video.comment_count++,t.live&&t.live.comment_count++),t.formVisible=!1,t.text="";case 23:case"end":return e.stop()}},e,t)}))()},canDeleteComment:function(t){return this.canManage||t.fan.id===this.currentUser.id},deleteComment:function(t){var e=this;return h()(v.a.mark(function a(){var i;return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(e.canDeleteComment(t)){a.next=2;break}return a.abrupt("return");case 2:if(!e.update){a.next=7;break}
1return a.next=5,e.$store.dispatch("feed/deleteUpdateComment",{updateId:e.update.id,commentId:t.id});case 5:a.next=15;break;case 7:if(!e.live){a.next=12;break}return a.next=10,e.$store.dispatch("live/deleteLiveEventComment",{eventId:e.live.id,commentId:t.id});case 10:a.next=15;break;case 12:if(!e.video){a.next=15;break}return a.next=15,e.$store.dispatch("song/deleteSongComment",{songId:e.video.id,commentId:t.id});case 15:-1!==(i=e.comments.indexOf(t))&&e.comments.splice(i,1),e.$store.dispatch("flash/showMessage",{message:"Comment deleted"}),e.video&&e.video.comment_count--,e.live&&e.live.comment_count--;case 20:case"end":return a.stop()}},a,e)}))()},blockUser:function(t){var e=this;return h()(v.a.mark(function a(){return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(e.canManage){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,e.$store.dispatch("profile/blockProfile",{id:t.id});case 4:e.$store.dispatch("flash/showMessage",{message:"User blocked"}),e.initComponent();case 6:case"end":return a.stop()}},a,e)}))()}},$)},qa={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.object?a("div",[a("LinkButton",{attrs:{u:!0},on:{click:function(e){t.hidden=!t.hidden}}},[t._v(t._s(t.commentCount))]),t._v(" "),t.isLoggedIn?a("LinkButton",{attrs:{u:!0},on:{click:t.showForm}},[t._v("post a comment")]):t._e(),t._v(" "),t.isLoggedIn?t._e():a("router-link",{staticClass:"whitelink",attrs:{to:{name:"account-login",query:{next:t.$route.fullPath}}}},[t._v("sign up to leave a comment")]),t._v(" "),t.hidden?t._e():a("div",[t.formVisible?a("div",{staticClass:"post"},[a("b-form-input",{ref:"input",attrs:{size:"sm",required:""},nativeOn:{keyup:function(e){return t.onKeyUp(e)}},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}}),t._v(" "),a("b-button",{staticClass:"send",attrs:{size:"sm"},on:{click:t.send}},[t._v("Send")]),t._v(" "),a("LinkButton",{attrs:{u:!0},on:{click:function(e){t.formVisible=!1}}},[t._v("cancel")])],1):t._e(),t._v(" "),t.comments?a("b-container",t._l(t.comments,function(e){return a("b-row",{key:e.id},[a("b-col",{staticClass:"comment"},[e.artist?a("router-link",{attrs:{to:{name:"artist-about",params:{artistId:e.artist.id}}}},[a("img",{class:t.avatarClass,attrs:{src:e.artist.avatar_image}})]):a("router-link",{attrs:{to:{name:"fan-profile",params:{id:e.fan.id}}}},[a("img",{class:t.avatarClass,attrs:{src:t.avatarImage(e.fan)}})]),t._v(" "),a("div",[a("div",{staticClass:"meta"},[e.artist?a("router-link",{staticClass:"who",attrs:{to:{name:"artist-about",params:{artistId:e.artist.id}}}},[t._v(t._s(e.artist.name))]):a("router-link",{staticClass:"who",attrs:{to:{name:"fan-profile",params:{id:e.fan.id}}}},[t._v(t._s(t.displayName(e.fan)))]),t._v("\n "+t._s(t.formatDate(e))+"\n ")],1),t._v(" "),a("div",{domProps:{innerHTML:t._s(t.formatText(e))}})])],1),t._v(" "),a("b-col",{staticClass:"text-right",attrs:{cols:"1"}},[a("Report",{staticClass:"report-link",attrs:{label:"Report comment",comment:e,update:t.update,live:t.live,video:t.video}},[t.canDeleteComment(e)?a("LinkButton",{on:{click:function(a){t.deleteComment(e)}}},[t._v("Delete comment")]):t._e(),t._v(" "),t.canManage?a("LinkButton",{on:{click:function(a){t.blockUser(e.fan)}}},[t._v("Block user")]):t._e()],1)],1)],1)})):t._e()],1)],1):t._e()},staticRenderFns:[]};var za=a("VU/8")(Ha,qa,!1,function(t){a("bug8")},"data-v-18188a9e",null).exports,Wa=a("yG5q"),Ga=a.n(Wa),Ya={name:"LiveChat",components:{FontAwesomeIcon:g.a,Report:va,LinkButton:x},props:{live:Object,canBan:Boolean},data:function(){return{message:null,backlog:[],channel:null}},computed:c()({messages:function(){return this.backlog.concat(this.$store.getters["realtime/chatMessages"])},isArtist:function(){return this.live&&this.artist.id===this.live.artist.id}},Object(u.c)("profile",["currentUser"]),Object(u.c)("artist",["artist"]),Object(u.c)("realtime",["chatNotify"])),watch:{live:"initComponent",messages:"doScroll",chatNotify:"onChatNotification"},mounted:function(){this.initComponent()},beforeDestroy:function(){this.$store.dispatch("realtime/stopLiveChat")},methods:c()({initComponent:function(){var t=this;return h()(v.a.mark(function e(){var a,i;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("live/getMessages",{id:t.live.id});case 2:t.backlog=e.sent,a=t.live.live_chat_channel,i=t.live.artist_chat_channel,a&&(t.$store.commit("realtime/setConfig",{apiKey:a.api_key,cluster:a.cluster}),t.$store.dispatch("realtime/startLiveChat",{channelId:a.channel,artistChannelId:i?i.channel:null})),t.isArtist&&!i&&console.log("[live-chat] warning: artist channel details not present for artist");case 7:case"end":return e.stop()}},e,t)}))()},fromArtist:function(t){return t.sender.artist&&t.sender.artist.id===this.live.artist.id},formatTime:function(t){return xt.utc(t).fromNow()},formatMessage:function(t){return Ke(t.message||"")},onKeyUp:function(t){"Enter"===t.key&&(this.sendMessage(this.message),this.message=null)},doScroll:function(){var t=this;i.a.nextTick(function(){var e=t.$refs.messages;e.scrollTop=e.scrollHeight-e.clientHeight})},sendMessage:function(t){t&&(t=t.trim())&&("fan2artist"!==this.live.chat_type||this.isArtist||this.$store.dispatch("realtime/injectOwnMessage",{message:t}),this.$store.dispatch("live/sendMessage",{id:this.live.id,message:t}))},deleteMessage:function(t){var e=this;return h()(v.a.mark(function a(){var i;return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(e.isArtist){a.next=2;break}return a.abrupt("return");case 2:-1!==(i=e.backlog.indexOf(t))&&e.backlog.splice(i,1),e.$store.dispatch("realtime/deleteMessage",t),e.$store.dispatch("live/deleteMessage",{eventId:e.live.id,senderId:t.sender.id,time:t.time});case 6:case"end":return a.stop()}},a,e)}))()},isSelf:function(t){return t&&this.live&&t.id===this.currentUser.id},banUser:function(t){this.$emit("ban",t)},onChatNotification:function(t){"block"===t.type&&t.profile_id===this.currentUser.id&&this.$emit("gotBanned")}},$)},Ka={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"live-chat"},[a("div",{ref:"messages",staticClass:"messages"},t._l(t.messages,function(e){return a("div",{key:e.time+0,staticClass:"message"},[a("div",{staticClass:"avatar"},[t.fromArtist(e)?a("router-link",{attrs:{to:{name:"artist-about",params:{artistId:e.sender.artist.id}}}},[a("img",{attrs:{src:e.sender.artist.avatar_image}})]):a("router-link",{attrs:{to:{name:"fan-profile",params:{id:e.sender.id}}}},[a("img",{attrs:{src:t.avatarImage(e.sender)}}
1)])],1),t._v(" "),a("div",{staticClass:"info"},[t.fromArtist(e)?a("div",[a("router-link",{staticClass:"sender",attrs:{to:{name:"artist-about",params:{artistId:e.sender.artist.id}}}},[t._v(t._s(e.sender.artist.name))]),t._v(" "),a("span",{staticClass:"time"},[t._v("\n "+t._s(t.formatTime(e.time))+"\n ")])],1):a("div",[a("router-link",{staticClass:"sender",attrs:{to:{name:"fan-profile",params:{id:e.sender.id}}}},[t._v(t._s(t.displayName(e.sender)))]),t._v(" "),"action"===e.action&&"donation"===e.message.type?a("span",{staticClass:"time"},[t._v("\n donated "+t._s(t.formatTime(e.time))+"\n ")]):a("span",{staticClass:"time"},[t._v("\n "+t._s(t.formatTime(e.time))+"\n ")])],1),t._v(" "),"message"===e.action?a("div",{staticClass:"text",domProps:{innerHTML:t._s(t.formatMessage(e))}}):t._e(),t._v(" "),"action"===e.action&&"donation"===e.message.type?a("div",{staticClass:"text donation"},[a("img",{attrs:{src:"/static/icons/donate.svg"}}),t._v("\n donated $"+t._s(parseFloat(e.message.donation.amount).toFixed(2))+"\n ")]):t._e()]),t._v(" "),"message"===e.action?a("Report",{staticClass:"ban",attrs:{label:"Report message",profile:e.sender}},[t.isArtist?a("LinkButton",{on:{click:function(a){t.deleteMessage(e)}}},[t._v("Delete message")]):t._e(),t._v(" "),t.isArtist&&!t.isSelf(e.sender)?a("LinkButton",{on:{click:function(a){t.banUser(e.sender)}}},[t._v("Block user")]):t._e()],1):t._e()],1)})),t._v(" "),a("div",{staticClass:"send"},[a("b-form-input",{attrs:{type:"text",size:"sm",placeholder:"Post message"},nativeOn:{keyup:function(e){return t.onKeyUp(e)}},model:{value:t.message,callback:function(e){t.message=e},expression:"message"}})],1)])},staticRenderFns:[]};var Xa=a("VU/8")(Ya,Ka,!1,function(t){a("n/Rx")},"data-v-0accd316",null).exports,Ja={color1:"0XCB3590",color2:"0X000000",color3:"0X0000FF",color4:"0X2C2D4C",watermark:{position:0,size:50,url:0,type:0},social:{facebook:!1,twitter:!1,embed:!1},error:{}},Qa={name:"Player",components:{FontAwesomeIcon:g.a,LiveChat:Xa,AddToPlaylist:I,Report:va},model:{prop:"video",event:"change"},props:{pageUrl:String,video:Object,videos:Array,position:Number,live:Object,canBan:Boolean,once:Boolean,autoplay:Boolean},data:function(){return{currentVideo:null,orderedVideos:null,currentPosition:null,dacastPlayer:null,isPlaying:!1,shouldResume:!1,isOnline:!1,statusCallbackId:null,livePingIntervalId:null,isShuffle:!1,liveChatVisible:!1,currentVideoRecorded:!1,controlTimeOut:null}},computed:c()({contentId:function(){return this.live&&this.live.is_live?this.live.dacast_content_id:this.currentVideo?this.currentVideo.dacast_content_id:null},artistAvatar:function(){return this.live&&this.live.artist?this.live.artist.avatar_image:this.currentVideo&&this.currentVideo.artist?this.currentVideo.artist.avatar_image:null},hasContent:function(){return!!this.contentId},contentTitle:function(){return this.live?this.live.title:this.currentVideo?this.currentVideo.title:null},artistName:function(){return this.live&&this.live.artist?this.live.artist.name:this.currentVideo&&this.currentVideo.artist?this.currentVideo.artist.name:null},wrapperStyle:function(){var t={};if(!this.dacastPlayer){var e=null;this.live&&this.live.promo_image&&(e=this.live.promo_image),this.currentVideo&&this.currentVideo.video_thumbnail&&(e=this.currentVideo.video_thumbnail),e&&(t["background-image"]="url("+e+")",t["background-position"]="center",t["background-size"]="cover",t["background-repeat"]="no-repeat")}return t},rootWrapperClass:function(){var t=["wrapper"];return this.live&&t.push("live"),t},myVideos:function(){return this.isLoggedIn?this.$store.getters["profile/currentUser"].default_playlists.my_videos:null},inMyVideos:function(){return!(!this.currentVideo||!this.myVideos)&&-1!==this.myVideos.video_ids.indexOf(this.currentVideo.id)},shuffleClass:function(){var t=["ctl","shuffle"];return this.isShuffle&&t.push("active"),t},liveChatToggleClass:function(){var t=["wide-inline","ctl","add"];return this.liveChatVisible&&t.push("active"),t},hasLiveChat:function(){return this.live&&this.live.is_live&&"disabled"!==this.live.chat_type}},Object(u.c)("auth",["isLoggedIn"])),methods:c()({initComponent:function(){if(this.orderedVideos||(this.orderedVideos=this.videos),this.live)return this.disposePlayer(),this.live.is_live&&this.initPlayer(),void(this.liveChatVisible="disabled"!==this.live.chat_type);this.currentVideo!==this.video&&(console.log("[player] initializing component"),this.currentVideo=this.video,this.currentPosition=void 0!==this.position?this.position:this.findVideoPosition(),this.isPlaying=!1,this.initPlayer())},recalculatePosition:function(){this.orderedVideos=this.videos,this.isShuffle&&this.shuffle(),this.currentPosition=this.findVideoPosition()},reshuffle:function(){this.isShuffle&&this.shuffle(),this.currentPosition=this.findVideoPosition()},hideBigPlayButton:function(){document.querySelector(".custom-big-play-button").classList.add("hidden")},showBigPlayButton:function(){document.querySelector(".custom-big-play-button").classList.remove("hidden")},hidePoster:function(){var t=setInterval(function(){var e=document.querySelector(".theoplayer-poster");e&&(e.classList.add("hidden"),clearInterval(t))},100)},showSpinner:function(){this.hidePoster(),document.querySelector(".custom-spinner").classList.remove("hidden")},hideSpinner:function(){document.querySelector(".custom-spinner").classList.add("hidden")},initPlayer:function(){var t=this,e=this.$store.getters.miniPlayer,a=e.getCurrentVideo();if(a&&this.video&&a.id===this.video.id&&this.once)console.log("[player] created in once mode for content_id="+this.contentId+" that's already playing, ignoring");else{var n=e.releasePlayer(this.pageUrl);if(n)this.disposePlayer(),this.dacastPlayer=n.player,this.currentVideo=n.video,this.currentPosition=n.position,this.isPlaying=n.player.playing(),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(t&&window.THEOplayer){var i=t.getPlayerInstance();if(i){var n=i.ui.getChild("controlBar"),s=n.getChild("PrevButton").el();ot.forEach(function(t){s.addEventListener(t,e)});var r=n.getChild("NextButton").el();ot.forEach(function(t){r.addEventListener(t,a)}),window.theo=i}}}(this.dacastPlayer,this.previous,this.next),this.$refs.dacastPlayerWrapper.appendChild(this.dacastPlayer.getElement()),i.a.nextTick(this.resizePlayer);else{if(console.log("[player] creating new dacast player instance for content_id="+this.contentId+" - ts: "+(new Date).toISOString()),this.shouldResume=!1,this.dacastPlayer){this.dacastPlayer.stop(),this.dacastPlayer.loadVideo(this.contentId),this.showSpinner();
1var s=setInterval(function(){t.dacastPlayer.getContentInfo().contentId===t.contentId&&t.dacastPlayer.duration()&&(t.play(),clearInterval(s))},300);return}this.dacastPlayer=window.dacast(this.contentId,this.$refs.dacastPlayerWrapper,{player:"theo",width:"568",height:"320",theme:Ja}),this.isOnline=!1,this.$emit("online",this.isOnline),this.autoplay?this.showSpinner():(this.showBigPlayButton(),this.hideSpinner())}var r=this.dacastPlayer;r&&(r.on("play",this.onPlay),r.on("pause",this.onPause),r.on("complete",this.onComplete),r.on("error",this.onError),r.on("ready",function e(){r.off("ready",e),t.isPlaying||t.autoplay&&!t.$store.getters.miniPlayer.isPlaying?(console.log("[player] auto-starting playback"),r.play()):console.log("[player] not auto-starting playback; isPlaying="+t.isPlaying+"; autoplay="+t.autoplay+"; miniPlayer.isPlaying="+t.$store.getters.miniPlayer.isPlaying),function(t){if(t&&window.THEOplayer){var e=t.getPlayerInstance();e&&(console.log("[player] adding video duration to dacast player"),e.ui.controlBar.removeChild("ChromecastButton"),e.ui.controlBar.removeChild("AirplayButton"),e.ui.controlBar.addChild("TimeDivider",{},6),e.ui.controlBar.addChild("DurationDisplay",{},7),window.theo=e)}}(r),t.orderedVideos&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(t&&window.THEOplayer){var i=t.getPlayerInstance();if(i){console.log("[player] adding previous/next buttons to dacast player"),ct(0,"PrevButton"),ct(0,"NextButton");var n=i.ui.getChild("controlBar").addChild("PrevButton",{});n.el().innerHTML=nt,ot.forEach(function(t){n.el().addEventListener(t,e)});var s=i.ui.getChild("controlBar").addChild("NextButton",{});s.el().innerHTML=it,ot.forEach(function(t){s.el().addEventListener(t,a)}),window.theo=i,window.btnNext=s}}}(r,t.previous,t.next),t.resizePlayer(),t.currentVideoRecorded=!1,t.playPauseOnTouch(),t.showControl()})),this.statusCallbackId=window.setInterval(this.onStatus,2e3),this.live&&(this.livePingIntervalId=window.setInterval(this.ping,1e4),this.ping())}},isControlShown:function(){return document.querySelector(".vjs-play-control").closest(".vjs-control-bar").classList.contains("show-control")},showControl:function(){if(this.isControlShown())return clearTimeout(this.controlTimeOut),void(this.controlTimeOut=setTimeout(this.hideControl,4e3));var t=document.querySelector(".vjs-play-control").closest(".vjs-control-bar");t.classList.remove("hide-control"),t.classList.add("show-control"),this.controlTimeOut=setTimeout(this.hideControl,4e3)},hideControl:function(){if(this.dacastPlayer&&this.dacastPlayer.paused())return clearTimeout(this.controlTimeOut),void(this.controlTimeOut=setTimeout(this.hideControl,4e3));var t=document.querySelector(".vjs-play-control").closest(".vjs-control-bar");t.classList.remove("show-control"),t.classList.add("hide-control")},playPauseOnTouch:function(){var t=document.querySelector(".theo-player-wrapper:first-child>div");t.addEventListener("touchend",function(e){t===e.target.parentNode&&this.playPause()}.bind(this),!1)},playPause:function(){this.dacastPlayer&&this.dacastPlayer.ready()&&(this.isControlShown()&&this.dacastPlayer.playPause(),this.showControl())},findVideoPosition:function(){if(this.video&&this.orderedVideos)for(var t=0;t<this.orderedVideos.length;t++)if(this.video.id===this.orderedVideos[t].id)return t;return this.position||0},onPlay:function(){var t=this;console.log("[player] playing"),this.hideBigPlayButton(),this.isPlaying=!0,this.live&&(this.isOnline=!0,this.$emit("online",this.isOnline)),this.$eventHub.$emit("stop-playback",this);var e=setInterval(function(){var a=document.querySelector(".vjs-load-progress").style.width;parseFloat(a.replace("%",""))>.01&&t.dacastPlayer.currentTime()<.01?(t.pause(),t.hideSpinner(),clearInterval(e)):t.dacastPlayer.currentTime()>.01&&clearInterval(e)},300),a=setInterval(function(){t.dacastPlayer.currentTime()>.01&&(t.hideSpinner(),clearInterval(a))},100)},onPause:function(){var t=this;this.shouldResume?(console.log("[player] auto-resuming after player handover"),this.shouldResume=!1,window.setTimeout(function(){return t.dacastPlayer.play()},0)):this.live?(console.log("[player:live] disallowing pause"),window.setTimeout(function(){return t.dacastPlayer.play()},0)):(console.log("[player] paused"),this.isPlaying=!1)},onComplete:function(){console.log("[player]Â video complete"),this.isPlaying=!1,this.once||i.a.nextTick(this.next)},onError:function(t){console.log("[player] error",t.dc_type),this.isPlaying=!1,this.live?(this.isOnline=!1,this.$emit("online",this.isOnline)):"VIDEO_IS_OFFLINE"===t.dc_type&&this.refreshToken()},recordView:function(){this.currentVideo&&!this.currentVideoRecorded&&(this.currentVideoRecorded=!0,this.$store.dispatch("song/recordView",{id:this.currentVideo.id}),this.isLoggedIn&&this.$store.dispatch("playlist/addToHistory",this.video.id),this.currentVideo.view_count=this.currentVideo.view_count+1)},refreshToken:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.currentVideo&&t.dacastPlayer){e.next=2;break}return e.abrupt("return");case 2:if(t.dacastPlayer.getPlayerInstance()){e.next=5;break}return e.abrupt("return");case 5:t.initPlayer();case 6:case"end":return e.stop()}},e,t)}))()},onStatus:function(){if(this.dacastPlayer){var t=this.dacastPlayer.getPlayerInstance();t&&(this.isOnline=t.network.online,this.$emit("online",this.isOnline),this.dacastPlayer.currentTime()>10&&this.recordView())}},play:function(){this.dacastPlayer&&(this.autoplay||(this.hideBigPlayButton(),this.showSpinner()),this.dacastPlayer.play())},pause:function(){this.dacastPlayer&&this.dacastPlayer.pause()},disposePlayer:function(){if(this.dacastPlayer){try{this.dacastPlayer.dis
1pose()}catch(t){}this.dacastPlayer=null,this.statusCallbackId&&(window.clearInterval(this.statusCallbackId),this.statusCallbackId=null),this.livePingIntervalId&&(window.clearInterval(this.livePingIntervalId),this.livePingIntervalId=null)}},jumpToVideo:function(t){var e=this;return h()(v.a.mark(function a(){return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(e.orderedVideos&&e.orderedVideos.length){a.next=2;break}return a.abrupt("return");case 2:e.currentPosition=(t+e.orderedVideos.length)%e.orderedVideos.length,e.currentVideo=e.orderedVideos[e.currentPosition],e.currentVideoRecorded=!1,console.log("[player] jumping to position "+e.currentPosition),e.initPlayer(),e.$emit("update:position",e.currentPosition),e.$emit("change",e.currentVideo);case 9:case"end":return a.stop()}},a,e)}))()},next:function(){this.isShuffle&&this.orderedVideos&&this.currentPosition===this.orderedVideos.length-1?(this.shuffle(),this.jumpToVideo(0)):this.jumpToVideo(this.currentPosition+1)},previous:function(){this.jumpToVideo(this.currentPosition-1)},shuffle:function(){this.orderedVideos=Ga()(this.videos)},videoCardClass:function(t){return{"video-card":!0,active:t===this.currentPosition}},resizePlayer:function(){var t=this.$refs.dacastPlayerWrapper;if(t){var e=t.firstElementChild;if(e){var a=e.firstElementChild;if(a){var i=t.getBoundingClientRect();a.style.width="100%",a.style.height="100%",a.style.position="static",e.style.width="100%",e.style.height="100%",t.style.paddingTop="0px",t.style.height=Math.floor(320*i.width/568)+"px"}}}},banUser:function(t){this.$emit("ban",t)},gotBanned:function(){this.$emit("gotBanned")},onStopPlayback:function(t){this!==t&&this.pause()},ping:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.live){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.$store.dispatch("live/pingLiveEvent",{id:t.live.id});case 4:if(a=e.sent){e.next=7;break}return e.abrupt("return");case 7:a.members&&t.$emit("members",a.members),a.is_cancelled?(t.$emit("liveStreamCancelled"),t.disposePlayer()):a.has_ended&&(t.$emit("liveStreamEnd"),t.disposePlayer());case 9:case"end":return e.stop()}},e,t)}))()}},O),watch:{live:"initComponent",video:"initComponent",videos:"recalculatePosition",isShuffle:"reshuffle"},created:function(){this.$eventHub.$on("stop-playback",this.onStopPlayback)},mounted:function(){this.initComponent(),this.resizePlayer(),window.addEventListener("resize",this.resizePlayer)},updated:function(){this.resizePlayer()},beforeDestroy:function(){if(window.removeEventListener("resize",this.resizePlayer),this.$eventHub.$off("stop-playback",this.onStopPlayback),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(t&&window.THEOplayer){var i=t.getPlayerInstance();if(i){var n=i.ui.getChild("controlBar"),s=n.getChild("PrevButton").el();ot.forEach(function(t){s.removeEventListener(t,e)});var r=n.getChild("NextButton").el();ot.forEach(function(t){r.removeEventListener(t,a)}),window.theo=i}}}(this.dacastPlayer,this.previous,this.next),this.isPlaying&&!this.once){var t=this.$store.getters.miniPlayer;this.dacastPlayer.off("play",this.onPlay),this.dacastPlayer.off("pause",this.onPause),this.dacastPlayer.off("complete",this.onComplete),this.dacastPlayer.off("error",this.onError),t.receivePlayer({player:this.dacastPlayer,video:this.video,live:this.live,videos:this.orderedVideos,position:this.currentPosition,videoRoute:this.pageUrl}),this.statusCallbackId&&(window.clearInterval(this.statusCallbackId),this.statusCallbackId=null),this.livePingIntervalId&&(window.clearInterval(this.livePingIntervalId),this.livePingIntervalId=null)}else this.disposePlayer()}},Za={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.rootWrapperClass},[a("div",{staticClass:"player"},[t.live||this.currentVideo?a("div",{staticClass:"header"},[a("div",{staticClass:"artist-avatar"},[a("img",{attrs:{src:t.artistAvatar}})]),t._v(" "),a("div",{staticClass:"now-playing"},[a("div",{staticClass:"title"},[t._v("\n "+t._s(t.contentTitle)+"\n "),t.inMyVideos?a("font-awesome-icon",{staticClass:"added",attrs:{icon:"check"}}):t._e()],1),t._v(" "),a("div",{staticClass:"artist"},[t._v("\n "+t._s(t.artistName)+"\n ")])]),t._v(" "),t.live&&t.live.is_live&&this.isOnline?a("div",{staticClass:"live online"},[a("font-awesome-icon",{attrs:{icon:"circle"}}),t._v(" Â LIVE\n ")],1):t._e(),t._v(" "),t.live&&t.live.is_live&&!this.isOnline?a("div",{staticClass:"live ready"},[a("font-awesome-icon",{attrs:{icon:"spinner",spin:""}}),t._v("\n WAITING FOR STREAM\n ")],1):t._e(),t._v(" "),t.live&&!t.live.is_live?a("div",{staticClass:"live stopped"},[t._v("\n STOPPED\n ")]):t._e(),t._v(" "),t.live?t._e():a("div",{staticClass:"control"},[t.orderedVideos?a("font-awesome-icon",{staticClass:"ctl",attrs:{icon:"backward"},on:{click:t.previous}}):t._e(),t._v(" "),t.isPlaying?a("font-awesome-icon",{staticClass:"ctl",attrs:{icon:"pause"},on:{click:t.pause}}):a("font-awesome-icon",{staticClass:"ctl",attrs:{icon:"play"},on:{click:t.play}}),t._v(" "),t.orderedVideos?a("font-awesome-icon",{staticClass:"ctl",attrs:{icon:"forward"},on:{click:t.next}}):t._e(),t._v(" "),t.currentVideo&&t.isLoggedIn?a("font-awesome-icon",{staticClass:"ctl add",attrs:{icon:"plus",id:"playerAddToPlaylist"+t.currentVideo.id}}):t._e(),t._v(" "),t.currentVideo&&t.isLoggedIn?a("AddToPlaylist",{attrs:{target:"playerAddToPlaylist"+t.currentVideo.id,video:t.currentVideo}}):t._e(),t._v(" "),t.orderedVideos?a("font-awesome-icon",{class:t.shuffleClass,attrs:{icon:"random"},on:{click:function(e){t.isShuffle=!t.isShuffle}}}):t._e(),t._v(" "),t.currentVideo?a("Report",{staticClass:"ctl add",attrs:{video:t.currentVideo,label:"Report video"}}
1):t._e()],1),t._v(" "),t.live?a("div",{staticClass:"control"},[a("Report",{staticClass:"ctl add",attrs:{live:t.live,label:"Report live stream"}}),t._v(" "),t.hasLiveChat?a("font-awesome-icon",{class:t.liveChatToggleClass,attrs:{icon:"comments"},on:{click:function(e){t.liveChatVisible=!t.liveChatVisible}}}):t._e()],1):t._e()]):t._e(),t._v(" "),a("div",{staticClass:"custom-wrapper"},[a("div",{ref:"dacastPlayerWrapper",staticClass:"dacast-wrapper",style:t.wrapperStyle}),t._v(" "),a("div",{staticClass:"custom-spinner hidden"}),t._v(" "),a("div",{staticClass:"custom-big-play-button hidden",on:{click:t.play,touchend:t.play}})])]),t._v(" "),t.orderedVideos?a("div",{staticClass:"playlist wide-flex"},[a("div",{staticClass:"header"},[a("font-awesome-icon",{class:t.shuffleClass,attrs:{icon:"random"},on:{click:function(e){t.isShuffle=!t.isShuffle}}})],1),t._v(" "),a("div",{staticClass:"videos"},t._l(t.orderedVideos,function(e,i){return a("div",{key:e.id,class:t.videoCardClass(i),on:{click:function(e){t.jumpToVideo(i)}}},[a("div",{staticClass:"thumb"},[a("img",{attrs:{src:t.getThumbnail(e)}}),t._v(" "),a("div",{staticClass:"duration"},[t._v("\n "+t._s(t.formatDuration(e))+"\n ")])]),t._v(" "),a("div",{staticClass:"info"},[a("div",{staticClass:"title"},[t._v("\n "+t._s(e.title)+"\n ")]),t._v(" "),a("div",{staticClass:"artist"},[t._v("\n "+t._s(e.artist.name)+"\n ")])])])}))]):t._e(),t._v(" "),t.live&&t.live.is_live&&t.liveChatVisible?a("LiveChat",{attrs:{live:t.live,canBan:t.canBan},on:{ban:t.banUser,gotBanned:t.gotBanned}}):t._e()],1)},staticRenderFns:[]};var ti=a("VU/8")(Qa,Za,!1,function(t){a("oMpI")},"data-v-304049c9",null).exports,ei={name:"VideoCard",components:{FontAwesomeIcon:g.a},props:{video:Object,showDate:Boolean,showArtist:Boolean,showPrivate:Boolean,related:Array,playButton:Boolean,linkToEditor:Boolean},computed:{formatDate:function(){return this.video?xt(this.video.created_at).format("MM/DD/YYYY"):""},videoLink:function(){return this.linkToEditor?{name:"artist-video-edit",params:{id:this.video.id}}:{name:"video-detail",params:{id:this.video.id},query:this.relatedQuery}},relatedQuery:function(){return this.related?{related:C()(this.related,"id").join(",")}:{}},isPrivate:function(){return!!this.video&&"private"===this.video.video_visibility}},methods:c()({onClick:function(){this.playButton&&this.$emit("play")}},O)},ai={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.video?a("div",{staticClass:"video-card"},[a("router-link",{staticStyle:{display:"block"},attrs:{to:this.playButton?{}:t.videoLink}},[a("div",{staticClass:"thumb",on:{click:t.onClick}},[a("img",{attrs:{src:t.getThumbnail(t.video)}}),t._v(" "),a("div",{staticClass:"duration"},[t._v("\n "+t._s(t.formatDuration(t.video))+"\n ")]),t._v(" "),this.playButton?a("div",{staticClass:"play"},[a("div",{staticClass:"play-button"},[a("font-awesome-icon",{attrs:{icon:"play"}})],1)]):t._e()])]),t._v(" "),a("div",{staticClass:"info"},[t.showDate?a("div",{staticClass:"publish-date"},[t._v("\n "+t._s(t.formatDate)),t.showPrivate&&t.isPrivate?a("span",{staticClass:"private"},[t._v("(private)")]):t._e()]):t._e(),t._v(" "),a("div",{staticClass:"title"},[a("router-link",{staticClass:"link",attrs:{to:t.videoLink}},[t._v(t._s(t.video.title))])],1),t._v(" "),t.showArtist?a("div",{staticClass:"artist-name"},[a("router-link",{staticClass:"link",attrs:{to:{name:"artist-about",params:{artistId:t.video.artist.id}}}},[t._v(t._s(t.video.artist.name))])],1):t._e()])],1):t._e()},staticRenderFns:[]};var ii=a("VU/8")(ei,ai,!1,function(t){a("8lx2")},"data-v-3ab9f472",null).exports,ni=a("kbi+"),si=a.n(ni),ri={name:"Buy",components:{FontAwesomeIcon:g.a,CreditCardLinked:ga},props:{video:Object,live:Object,album:Object},data:function(){return{btnId:"btnPurchase"+btoa(Math.random()).substr(3,20),hasAccessTo:!1,working:!1,amount:0}},filters:{decimals:function(t){var e=t.trim();return"$"===e[0]&&(e=e.substr(1).trim()),Number(e).toFixed(2)}},computed:c()({isAvailable:function(){return null!==this.price&&(this.video?this.video.has_digital_download:!this.live||xt(this.live.start).isBefore()&&this.live.is_live)},unavailableLabel:function(){return this.live?this.live.has_ended?"stream finished":"stream not started":"unavailable"},purchaseLabel:function(){return this.live?"get access":"download"},accessLabel:function(){return this.live?"join":"download"},price:function(){return this.video?this.video.track_price:this.live?this.live.price:this.album?this.album.price:null},priceLabel:function(){var t=this.price;return 0===t?"FREE":"$ "+t.toFixed(2)},canPayMore:function(){return this.video?this.video.can_pay_more:this.live?this.live.can_pay_more:this.album?this.album.can_pay_more:void 0},payLabel:function(){return this.video?"Download audio":this.live?"Get access":this.album?"Download album":"Purchase"},minAmountPlaceholder:function(){return"Minimum $"+this.price.toFixed(2)},txtAmount:function(){return"$ "+this.numAmount},numAmount:function(){if(!this.canPayMore)return this.price;var t=this.amount.trim();return t?("$"===t[0]&&(t=t.substr(1).trim()),+t):this.price},inputState:function(){return this.numAmount<this.price?"invalid":"valid"},sendEnabled:function(){return!this.canPayMore||"valid"===this.inputState}},Object(u.c)("auth",["isLoggedIn"])),watch:{price:function(){this.closePopup(),this.checkHasAccessTo()},album:function(){this.checkHasAccessTo()}},created:function(){this.amount=this.price.toFixed(2),this.checkHasAccessTo()},methods:{showModal:function(){this.$refs["credit-confirm-modal"].show()},hideModal:function(){this.$refs["credit-confirm-modal"].hide()},checkHasAccessTo:function(){var t=this;return h()(v.a.mark(function e(){var a,i,n,s,r,o,l,c,u,d,p;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.isLoggedIn){e.next=2;break}return e.abrupt("return");case 2:if(!t.video){e.next=11;break}return e.t0=C.a,e.next=6,t.$store.dispatch("song/getSongsWithAccess");case 6:return e.t1=e.sent,e.t2=function(t){return t.song.id},a=(0,e.t0)(e.t1,e.t2),t.hasAccessTo=-1!==a.indexOf(t.video.id),e.abrupt("return");case 11:if(!t.live){e.next=25;break}return e.next=14,t.$store.dispatch("live/listTickets");case 14:return i=e.sent,e.t3=si.a,e.next=18,i.all();case 18:return e.t4=e.sent,e.t5=function(e){return e.live_event.id===t.live.id}
1,n=(n=(0,e.t3)(e.t4,e.t5))||null,t.$emit("ticket",n),t.hasAccessTo=null!==n,e.abrupt("return");case 25:if(!t.album){e.next=61;break}return e.t6=C.a,e.next=29,t.$store.dispatch("song/getSongsWithAccess");case 29:e.t7=e.sent,e.t8=function(t){return t.song.id},s=(0,e.t6)(e.t7,e.t8),r=!0,o=!0,l=!1,c=void 0,e.prev=36,u=T()(t.album.songs);case 38:if(o=(d=u.next()).done){e.next=46;break}if(p=d.value,-1!==s.indexOf(p.id)){e.next=43;break}return r=!1,e.abrupt("break",46);case 43:o=!0,e.next=38;break;case 46:e.next=52;break;case 48:e.prev=48,e.t9=e.catch(36),l=!0,c=e.t9;case 52:e.prev=52,e.prev=53,!o&&u.return&&u.return();case 55:if(e.prev=55,!l){e.next=58;break}throw c;case 58:return e.finish(55);case 59:return e.finish(52);case 60:t.hasAccessTo=r;case 61:case"end":return e.stop()}},e,t,[[36,48,52,60],[53,,55,59]])}))()},pay:function(){var t=this;return h()(v.a.mark(function e(){var a,i,n,s,r;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.sendEnabled){e.next=2;break}return e.abrupt("return");case 2:if(t.hideModal(),t.working=!0,a=t.canPayMore?t.numAmount:null,t.$store.getters["profile/currentUser"].stripe_customer_id||!t.numAmount){e.next=18;break}return i=fa(t.$store),e.prev=7,e.next=10,i.finish;case 10:t.$refs.ccLinked.show(),e.next=18;break;case 13:return e.prev=13,e.t0=e.catch(7),console.log("can't capture cc",e.t0),t.working=!1,e.abrupt("return");case 18:if(n=void 0,!t.video){e.next=23;break}n=t.$store.dispatch("song/purchaseSong",{id:t.video.id,amount:a}),e.next=35;break;case 23:if(!t.live){e.next=27;break}n=t.$store.dispatch("live/bookLiveEvent",{id:t.live.id,amount:a}),e.next=35;break;case 27:if(!t.album){e.next=31;break}n=t.$store.dispatch("song/purchaseAlbum",{id:t.album.id,amount:a}),e.next=35;break;case 31:return console.log("[pay] error, nothing to pay for"),t.working=!1,t.closePopup(),e.abrupt("return");case 35:return s=!1,e.prev=36,e.next=39,n;case 39:s=!0,e.next=47;break;case 42:e.prev=42,e.t1=e.catch(36),r="Error making payment",e.t1.response&&e.t1.response.data&&e.t1.response.data.message&&(r=e.t1.response.data.message),t.$store.dispatch("flash/showMessage",{message:r,type:"error"});case 47:t.closePopup(),t.working=!1,t.amount="",s&&(t.live?t.$store.dispatch("flash/showMessage",{message:"Access granted!"}):t.$store.dispatch("flash/showMessage",{message:"File downloaded!"}),t.$emit("purchase"),t.checkHasAccessTo());case 51:case"end":return e.stop()}},e,t,[[7,13],[36,42]])}))()},closePopup:function(){var t=this.$refs.popover;t&&t.$emit("close")},flashUnavailable:function(){if(this.video&&this.$store.dispatch("flash/showMessage",{message:"Audio file unavailable for download",type:"error"}),this.album&&this.$store.dispatch("flash/showMessage",{message:"The album can't be purchased as a whole",type:"error"}),this.live){var t="Can't book the live stream at this time",e=xt(this.live.booking_start);this.live.has_ended&&(t="Live stream has finished"),e.isAfter()&&(t="Live stream booking starts "+e.fromNow()),this.$store.dispatch("flash/showMessage",{message:t,type:"error"})}},download:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.hasAccessTo){e.next=2;break}return e.abrupt("return");case 2:if(!t.video){e.next=11;break}return e.t0=si.a,e.next=6,t.$store.dispatch("song/getSongsWithAccess");case 6:return e.t1=e.sent,e.t2=function(e){return e.song.id===t.video.id},(a=(0,e.t0)(e.t1,e.t2))&&(window.location=a.download_url),e.abrupt("return");case 11:if(!t.album){e.next=14;break}return t.$router.push({name:"fan-downloads"}),e.abrupt("return");case 14:t.live&&t.$emit("join",t.live);case 15:case"end":return e.stop()}},e,t)}))()}}},oi={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pay"},[t.isLoggedIn?t._e():a("b-button",{staticClass:"btn-rainbow purchase",attrs:{to:{name:"account-login",query:{next:t.$route.fullPath}}}},[this.live?a("i",{staticClass:"sl-icon-login"}):t._e(),t._v(" "),this.live?t._e():a("font-awesome-icon",{attrs:{icon:"music"}}),t._v("\n  \n "),a("div",{staticClass:"label"},[a("span",{staticClass:"normal"}
1,[t._v(t._s(t.purchaseLabel))])])],1),t._v(" "),t.isLoggedIn&&!t.isAvailable?a("b-button",{staticClass:"purchase",attrs:{variant:"secondary"},on:{click:t.flashUnavailable}},[this.live?a("i",{staticClass:"sl-icon-login"}):t._e(),t._v(" "),this.live?t._e():a("font-awesome-icon",{attrs:{icon:"music"}}),t._v(" "),a("div",{staticClass:"label"},[t._v(" "+t._s(t.unavailableLabel))])],1):t._e(),t._v(" "),t.isLoggedIn&&t.isAvailable&&!t.hasAccessTo?a("b-button",{staticClass:"btn-rainbow purchase",attrs:{id:t.btnId}},[this.live?a("i",{staticClass:"sl-icon-login"}):t._e(),t._v(" "),this.live?t._e():a("font-awesome-icon",{attrs:{icon:"music"}}),t._v("\n  \n "),a("div",{staticClass:"label"},[a("span",{staticClass:"normal"},[t._v(t._s(t.purchaseLabel))])])],1):t._e(),t._v(" "),t.isLoggedIn&&t.isAvailable&&!t.hasAccessTo?a("b-popover",{ref:"popover",attrs:{target:t.btnId,triggers:"click blur",placement:"bottom",title:""}},[a("div",{staticClass:"buyPopover"},[t.canPayMore?a("b-form-group",{staticClass:"text-center",attrs:{label:t.payLabel,description:t.minAmountPlaceholder,state:t.inputState}},[a("small",[t._v("Back the artist(s) a little more "),a("br"),t._v(" by naming your price")]),t._v(" "),a("b-form-input",{ref:"payAmount",staticClass:"amount text-center",attrs:{state:t.inputState},model:{value:t.amount,callback:function(e){t.amount=e},expression:"amount"}})],1):t._e(),t._v(" "),t.canPayMore?t._e():a("div",{staticClass:"info text-center"},[a("div",{staticClass:"msg"},[t._v("\n "+t._s(t.payLabel)+"\n ")]),t._v(" "),a("div",{staticClass:"price"},[t._v("\n "+t._s(t.priceLabel)+"\n ")])]),t._v(" "),a("div",{staticClass:"text-center"},[a("b-button",{staticClass:"btn-rainbow",attrs:{disabled:!t.sendEnabled},on:{click:t.showModal}},[t._v("\n submit\n ")]),t._v(" "),t.working?a("font-awesome-icon",{attrs:{icon:"spinner",size:"lg",spin:""}}):t._e()],1)],1)]):t._e(),t._v(" "),t.isLoggedIn&&t.isAvailable&&t.hasAccessTo?a("b-button",{staticClass:"btn-rainbow purchase available",on:{click:t.download}},[this.live?t._e():a("font-awesome-icon",{attrs:{icon:"check"}}),t._v(" "),this.live?t._e():a("span",[t._v(" ")]),t._v(" "),a("div",{staticClass:"label"},[a("span",{staticClass:"normal"},[t._v(t._s(t.accessLabel))])])],1):t._e(),t._v(" "),a("CreditCardLinked",{ref:"ccLinked"}),t._v(" "),a("b-modal",{ref:"credit-confirm-modal",attrs:{id:"credit-confirm-modal",title:"Confirm Transaction",centered:""},on:{cancel:t.hideModal,ok:t.pay}},[a("div",{staticClass:"content"},[a("p",[t._v("\n $"+t._s(t._f("decimals")(t.amount))+" will be charged to your credit card.\n ")])])])],1)},staticRenderFns:[]};var li=a("VU/8")(ri,oi,!1,function(t){a("if+k")},"data-v-295c1968",null).exports,ci={name:"Share",components:{FontAwesomeIcon:g.a,LinkButton:x},props:{target:String,text:String,shareUrl:String,openGraph:Object},computed:{url:function(){return this.$store.getters["config/baseUrl"]+(this.shareUrl||this.$route.fullPath)}},methods:{close:function(){this.$refs.popover.$emit("close")},shareFb:function(){var t={method:"share",href:this.url};this.openGraph&&(t.object=this.openGraph),window.FB.ui(t,function(t){})},shareTw:function(){var t="http://twitter.com/share?",e={url:this.url,text:this.text||"",via:"songback"};for(var a in e)t+="&"+a+"="+encodeURIComponent(e[a]);window.open(t,"","left=0,top=0,width=550,height=450,personalbar=0,toolbar=0,scrollbars=0,resizable=0")}}},ui={render:function(){var t=this.$createElement,e=this._self._c||t;return e("b-popover",{ref:"popover",attrs:{target:this.target,triggers:"click blur",placement:"bottom",title:""}},[e("div",{staticClass:"sharePopover"},[e("b-button",{staticClass:"share-btn",attrs:{variant:"secondary"},on:{click:this.shareFb}},[e("font-awesome-icon",{attrs:{icon:["fab","facebook"]}}),this._v(" Facebook\n ")],1),this._v(" "),e("b-button",{staticClass:"share-btn mt-1",attrs:{variant:"secondary"},on:{click:this.shareTw}},[e("font-awesome-icon",{attrs:{icon:["fab","twitter"]}}),this._v(" Twitter\n ")],1)],1)])},staticRenderFns:[]};var di=a("VU/8")(ci,ui,!1,function(t){a("EQse")}
1,"data-v-2e15aa4d",null).exports,vi={name:"UserList",components:{FontAwesomeIcon:g.a,LinkButton:x},model:{prop:"users",event:"change"},props:{users:Array,withRoles:Boolean,canAdd:Boolean,canRemove:Boolean,addLabel:String,handleLabel:String,roleLabel:String,removeLabel:String,requireUser:Boolean,forceFan:Boolean},data:function(){return{roles:ia,handle:"",handleState:null,role:"",dropdownVisible:!1}},computed:{},methods:{toggleDropdown:function(){this.dropdownVisible=!this.dropdownVisible},closeDropdown:function(){this.dropdownVisible=!1,this.handle="",this.role="",this.handleState=null},addUser:function(){var t=this;return h()(v.a.mark(function e(){var a,i;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.canAdd&&t.handle&&(!t.withRoles||t.role)){e.next=2;break}return e.abrupt("return");case 2:if(a={handle:t.handle,user:null},t.handleState=null,"@"!==t.handle[0]){e.next=18;break}return e.next=7,t.$store.dispatch("profile/findProfile",{handle:t.handle.substr(1)});case 7:if(!(i=e.sent).count){e.next=14;break}a.user=i.results[0],a.name=a.user.name,t.handleState="valid",e.next=16;break;case 14:return t.handleState="invalid",e.abrupt("return");case 16:e.next=21;break;case 18:if(!t.requireUser){e.next=21;break}return t.handleState="invalid",e.abrupt("return");case 21:t.withRoles&&(a.role=t.role),t.closeDropdown(),t.users.push(a),t.$emit("change",t.users);case 25:case"end":return e.stop()}},e,t)}))()},removeUser:function(t){if(this.canRemove){var e=this.users.indexOf(t);-1!==e&&(this.users.splice(e,1),this.$emit("change",this.users))}},isArtist:function(t){return!!t.user&&(!this.forceFan&&!!t.user.artist&&t.user.artist.handle.toLowerCase()===t.handle.substr(1).toLowerCase())},userName:function(t){return t.user?this.isArtist(t)?t.user.artist.name:"@"+t.user.username:t.handle},userAvatarUrl:function(t){return t.user?this.isArtist(t)?t.user.artist.avatar_image:t.user.avatar_image:null},userLink:function(t){return t.user?!this.forceFan&&t.user.artist?{name:"artist-about",params:{artistId:t.user.artist.id}}:{name:"fan-profile",params:{id:t.user.id}}:null}}},pi={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"userlist"},[t._l(t.users,function(e){return a("div",{key:e.handle,staticClass:"user"},[a("router-link",{attrs:{to:t.userLink(e)}},[t.userAvatarUrl(e)?a("img",{attrs:{src:t.userAvatarUrl(e)}}):t._e()]),t._v(" "),t.userAvatarUrl(e)?t._e():a("i",{staticClass:"sl-icon-user"}),t._v(" "),a("div",{staticClass:"info"},[a("div",{staticClass:"name"},[a("router-link",{attrs:{to:t.userLink(e)}},[t._v(t._s(t.userName(e)))])],1),t._v(" "),t.withRoles?a("div",{staticClass:"role"},[t._v("\n "+t._s(e.role)+"\n ")]):t._e()]),t._v(" "),t.canRemove?a("div",{staticClass:"remove"},[a("LinkButton",{attrs:{u:!0},on:{click:function(a){t.removeUser(e)}}},[t.removeLabel?a("span",[t._v("\n "+t._s(t.removeLabel)+"\n ")]):t._e()]),t._v(" "),t.removeLabel?t._e():a("font-awesome-icon",{staticClass:"fa-remove",attrs:{icon:"times",size:"sm"},on:{click:function(a){t.removeUser(e)}}})],1):t._e()],1)}),t._v(" "),t.canAdd?a("div",{staticClass:"user dropdown"},[a("i",{staticClass:"sl-icon-user-follow"}),t._v(" "),a("div",{staticClass:"info"},[a("LinkButton",{staticClass:"name",on:{click:t.toggleDropdown}},[t._v("\n "+t._s(t.addLabel||"Add user")+"\n ")])],1),t._v(" "),t.dropdownVisible?a("div",{staticClass:"dropdown-menu"},[a("b-form-group",{attrs:{label:t.handleLabel||"User name or handle"}},[a("b-form-input",{attrs:{type:"text",required:"",placeholder:"@handle",size:"sm",state:t.handleState},model:{value:t.handle,callback:function(e){t.handle="string"==typeof e?e.trim():e},expression:"handle"}})],1),t._v(" "),t.withRoles?a("b-form-group",{attrs:{label:t.roleLabel||"Role"}},[a("b-form-select",{attrs:{options:t.roles,size:"sm"},model:{value:t.role,callback:function(e){t.role=e},expression:"role"}})],1):t._e(),t._v(" "),a("b-button",{attrs:{variant:"secondary",size:"sm",disabled:!t.handle},on:{click:t.addUser}},[t._v(t._s(t.addLabel||"Add user"))]),t._v(" "),a("LinkButton",{staticClass:"cancel",attrs:{u:!0},on:{click:t.closeDropdown}},[t._v("cancel")])],1):t._e()]):t._e()],2)},staticRenderFns:[]};
1var hi=a("VU/8")(vi,pi,!1,function(t){a("LLoh")},"data-v-335df435",null).exports,mi={name:"VideoInfo",components:{FontAwesomeIcon:g.a,Pay:li,LinkButton:x,Share:di,Comments:za,UserList:hi},props:{video:Object,expandComments:Boolean,hideComments:Boolean},data:function(){return{showDetails:!1,hasAccessTo:null}},computed:c()({getVideoInfoClass:function(){var t=["video-info"];return this.hideComments||t.push("bottom-border"),t},artist:function(){return this.video?this.video.artist:{}},isCurrentArtist:function(){return this.artist.id===this.$store.getters["profile/currentUser"].artist_id},videoTime:function(){return xt.utc(new Date(this.video.created_at)).fromNow()},likeClass:function(){var t=["like"];return this.video&&this.video.rated_by_user&&t.push("already-liked"),this.isLoggedIn||t.push("disabled"),t},contributors:function(){if(!this.video||!this.video.song_credits||!L()(this.video.song_credits).length)return[];var t=[];for(var e in this.video.song_credits)t.push({handle:this.video.song_credits[e],user:this.video.song_credits_expanded[e],role:e});return t}},Object(u.c)("auth",["isLoggedIn"])),methods:{like:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.video){e.next=2;break}return e.abrupt("return");case 2:if(!t.video.rated_by_user){e.next=16;break}return e.prev=3,e.next=6,t.$store.dispatch("song/unlikeSong",{id:t.video.id});case 6:e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(3),console.error("Error unliking song",e.t0,e.t0.response),e.abrupt("return");case 12:t.video.rated_by_user=!1,t.video.rate_count--,e.next=26;break;case 16:return e.prev=16,e.next=19,t.$store.dispatch("song/likeSong",{id:t.video.id});case 19:e.next=24;break;case 21:e.prev=21,e.t1=e.catch(16),console.error("Error liking song",e.t1,e.t1.response);case 24:t.video.rated_by_user=!0,t.video.rate_count++;case 26:case"end":return e.stop()}},e,t,[[3,8],[16,21]])}))()},formatText:Xe}},fi={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.video?a("div",{class:t.getVideoInfoClass},[t.video?a("b-row",{attrs:{"align-v":"center"}},[a("b-col",[a("router-link",{attrs:{to:{name:"artist-about",params:{artistId:this.artist.id}}}},[a("img",{staticClass:"artist-avatar",attrs:{src:t.artist.avatar_image}})]),t._v(" "),a("h4",[a("router-link",{staticClass:"title-link",attrs:{to:{name:"video-detail",params:{id:t.video.id}}}},[t._v("\n "+t._s(t.video.title)+"\n ")])],1),t._v(" "),a("small",[t._v("\n By\n "),a("router-link",{attrs:{to:{name:"artist-about",params:{artistId:this.artist.id}}}},[t._v(t._s(t.artist.name))]),t._v("\n "+t._s(t.videoTime)+"\n "),a("b-button",{staticClass:"ellipsis",on:{click:function(e){t.showDetails=!t.showDetails}}},[a("font-awesome-icon",{attrs:{icon:"ellipsis-h"}})],1)],1)],1),t._v(" "),a("b-col",{staticClass:"text-right video-info-stats",attrs:{cols:"12",sm:"6"}},[a("span",[a("font-awesome-icon",{attrs:{icon:"eye"}}),t._v(" "+t._s(t.video.view_count))],1),t._v(" "),a("span",{class:t.likeClass},[a("font-awesome-icon",{attrs:{icon:"heart"},on:{click:t.like}}),t._v(" "+t._s(t.video.rate_count))],1),t._v(" "),t.hideComments?t._e():a("span",[a("font-awesome-icon",{attrs:{icon:"comment"}}),t._v(" "+t._s(t.video.comment_count))],1),t._v(" "),t.isCurrentArtist?a("div",{staticClass:"actions"},[a("LinkButton",{attrs:{id:"btnShareVideo"+t.video.id}},[a("font-awesome-icon",{attrs:{icon:"share"}}),a("span",{staticClass:"share-label"},[t._v("Share")])],1),t._v(" "),a("Share",{attrs:{target:"btnShareVideo"+t.video.id,text:t.video.title,shareUrl:t.video.get_absolute_url,openGraph:t.video.opengraph_metadata}})],1):a("div",{staticClass:"actions"},[t.isLoggedIn?a("LinkButton",{attrs:{id:"btnShareVideo"+t.video.id}},[a("font-awesome-icon",{attrs:{icon:"share"}}),a("span",{staticClass:"share-label"},[t._v("Share")])],1):t._e(),t._v(" "),t.isLoggedIn?a("Share",{attrs:{target:"btnShareVideo"+t.video.id,text:t.video.title,shareUrl:t.video.get_absolute_url,openGraph:t.video.opengraph_metadata}}):t._e(),t._v(" "),t.isLoggedIn?t._e():a("router-link",{staticClass:"white-link",attrs:{to:{name:"account-login",query:{next:t.$route.fullPath}}}},[a("font-awesome-icon",{attrs:{icon:"share"}}),t._v("Share\n ")],1),t._v(" "),a("Pay",{attrs:{video:t.video}}
1)],1)])],1):t._e(),t._v(" "),t.showDetails&&this.video?a("b-row",{staticClass:"pt-4"},[a("b-col",{domProps:{innerHTML:t._s(t.formatText(this.video.lyrics))}}),t._v(" "),t.contributors.length?a("b-col",{staticClass:"mt-4",attrs:{cols:"12",lg:"4"}},[a("h5",[a("strong",[t._v("Contributors")])]),t._v(" "),a("UserList",{staticClass:"vertical",attrs:{withRoles:!0},model:{value:t.contributors,callback:function(e){t.contributors=e},expression:"contributors"}})],1):t._e()],1):t._e(),t._v(" "),t.hideComments?t._e():a("Comments",{staticClass:"pt-4",attrs:{video:t.video,collapsed:!t.expandComments}})],1):t._e()},staticRenderFns:[]};var bi=a("VU/8")(mi,fi,!1,function(t){a("+BHZ")},"data-v-28aea69c",null).exports,gi={name:"AlbumCard",props:{album:Object,showArtist:Boolean,largeCover:Boolean},computed:{albumClass:function(){var t=["album"];return this.largeCover&&t.push("large"),t},publishDate:function(){return this.album?xt(this.album.release_date).format("MM/DD/YYYY"):""},songCount:function(){return this.album?0===this.album.songs.length?"no songs":1===this.album.songs.length?"1 song":this.album.songs.length+" songs":""}}},_i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.album?a("div",{class:t.albumClass},[a("router-link",{staticClass:"mb-3",attrs:{to:{name:"album-detail",params:{id:t.album.id}}}},[a("img",{attrs:{src:t.album.cover}})]),t._v(" "),a("div",{staticClass:"info"},[a("div",{staticClass:"publish-date"},[t._v("\n "+t._s(t.publishDate)+"\n ")]),t._v(" "),a("div",{staticClass:"title"},[a("router-link",{staticClass:"title-link",attrs:{to:{name:"album-detail",params:{id:t.album.id}}}},[t._v("\n "+t._s(t.album.title)+"\n ")])],1),t._v(" "),a("div",{staticClass:"songs"},[t._v("\n "+t._s(t.songCount)+"\n ")]),t._v(" "),t.showArtist?a("div",{staticClass:"artist"},[t._v("\n By "),a("router-link",{attrs:{to:{name:"artist-about",params:{artistId:t.album.artist.id}}}},[t._v(t._s(t.album.artist.name))])],1):t._e()])],1):t._e()},staticRenderFns:[]};var yi=a("VU/8")(gi,_i,!1,function(t){a("IN3B")},"data-v-c298b738",null).exports,wi={name:"BigEventCard",components:{FontAwesomeIcon:g.a},props:{event:Object},computed:c()({when:function(){return this.event?xt(this.event.start).format("MMM Do | h:mm a"):""},ticketCount:function(){return this.event.ticket_count||0},eventPrice:function(){if(!this.event.price)return"0";var t=this.event.price.toFixed(2),e=t.match(/(.+)\.00$/);return e&&(t=e[1]),t},amWatching:function(){return!!this.event&&si()(this.currentUser.watchlist,{id:this.event.id})},eventLink:function(){return this.event?{name:"artist-live-stream-detail",params:{artistId:this.event.artist.id,liveId:this.event.id}}:null}},Object(u.c)("auth",["isLoggedIn"]),Object(u.c)("profile",["currentUser"])),methods:{addToWatchlist:function(t){var e=this;return h()(v.a.mark(function a(){var i;return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t.stopPropagation(),t.preventDefault(),a.prev=2,a.next=5,e.$store.dispatch("live/addToWatchlist",{id:e.event.id});case 5:e.event.ticket_count++,e.$store.dispatch("flash/showMessage",{message:"Live stream added to watchlist"}),a.next=13;break;case 9:a.prev=9,a.t0=a.catch(2),i=a.t0.response.data||{},e.$store.dispatch("flash/showMessage",{message:i.detail||"The live stream no longer exists",type:"error"});case 13:case"end":return a.stop()}},a,e,[[2,9]])}))()},removeFromWatchlist:function(t){var e=this;return h()(v.a.mark(function a(){return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t.stopPropagation(),t.preventDefault(),a.next=4,e.$store.dispatch("live/removeFromWatchlist",{id:e.event.id});case 4:e.event.ticket_count--,e.$store.dispatch("flash/showMessage",{message:"Live stream removed from watchlist"});case 6:case"end":return a.stop()}},a,e)}))()},gotoLink:function(){this.eventLink&&this.$router.push(this.eventLink)}}},Ci={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"big-event-card",on:{click:t.gotoLink}},[a("div",{staticClass:"hero",class:{"no-image":!t.event.promo_image}},[t.event.promo_image?a("div",{staticClass:"img-container"},[a("img",{attrs:{src:t.event.promo_image}})]):t._e(),t._v(" "),a("div",{staticClass:"gradient"}),t._v(" "),a("div",{staticClass:"overlay-info"}),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"info"},[t.event.price?a("div",{staticClass:"price"},[t._v("$"+t._s(t.eventPrice))]):a("div",{staticClass:"price free"},[t._v("free")]),t._v(" "),a("div",{staticClass:"title"},[a("h4",[a("router-link",{attrs:{to:t.eventLink}},[t._v(t._s(t.event.title))])],1),t._v(" "),a("div",{staticClass:"when"},[t._v("\n "+t._s(t.when)+"\n ")])]),t._v(" "),a("small",[t._v("\n "+t._s(t.event.artist.name)+" "),a("i",{staticClass:"sl-icon-location-pin"}),t._v(" "+t._s(t.event.location)+"\n ")]),t._v(" "),a("p",{staticClass:"desc"},[t._v("\n "+t._s(t.event.description)+"\n ")]),t._v(" "),a("div",{staticClass:"actions"},[t.amWatching?a("b-button",{staticClass:"remove",attrs:{variant:"danger"},on:{click:t.removeFromWatchlist}},[a("font-awesome-icon",{attrs:{icon:"times"}}),t._v("\n remove from watchlist\n ")],1):t._e(),t._v(" "),t.isLoggedIn&&!t.amWatching?a("b-button",{staticClass:"btn-rainbow add",on:{click:t.addToWatchlist}},[a("font-awesome-icon",{attrs:{icon:"plus"}}),t._v(" Â watchlist\n ")],1):t._e()],1)])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"live"},[e("i",{staticClass:"sl-icon-camrecorder"}),this._v(" "),e("span",{staticClass:"label"},[this._v("live")])])}]};var ki=a("VU/8")(wi,Ci,!1,function(t){a("I1qX")},"data-v-1464df2d",null).exports,xi={name:"Feed",components:{FontAwesomeIcon:g.a,Comments:za,Player:ti,VideoCard:ii,VideoInfo:bi,AddToPlaylist:I,BigEventCard:ki,AlbumCard:yi,Pay:li,Report:va,LinkButton:x},data:function(){return{currentVideo:null}},props:{feed:Array,artist:Object,canManage:Boolean},computed:c()({},Object(u.c)("profile",["currentUser"])),methods:{itemType:function(t){return t.song?"video":t.live_event?"live":t.album?"album":"text"},formatDate:function(t){return xt(t.created_at).fromNow()},formatText:Xe,formatWhat:function(t){return"video"===this.itemType(t)?"published a video":"live"===this.itemType(t)?"announced a live stream":"album"===this.itemType(t)?"released an album":"posted a message"},formatVisibility:function(t){return"subscribers"===t.visibility?"(subscribers only)":"private"===t.visibility?"(private)":void 0},getArtist:function(t){return t.artist?t.artist:this.artist?this.artist:{}},artistLink:function(t){return{name:"artist-about",params:{artistId:this.getArtist(t).id}}},getThumbnail:function(t){return t.song&&t.song.video_thumbnail?t.song.video_thumbnail:la},playVideo:function(t){t.song&&(this.$eventHub.$emit("stop-playback",this),this.currentVideo=t.song)},deleteUpdate:function(t){var e=this;return h()(v.a.mark(function a(){var i;return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(e.canManage){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,e.$store.dispatch("feed/deleteUpdate",{id:t.id});case 4:-1!==(i=e.feed.indexOf(t))&&e.feed.splice(i,1),e.$store.dispatch("flash/showMessage",{message:"Update deleted"});case 7:case"end":return a.stop()}},a,e)}))()}}},Ai={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._l(t.feed,function(e){return a("div",{key:e.id,staticClass:"feed-item"},[a("b-row",[a("b-col",{staticClass:"item-header"},[a("router-link",{staticClass:"who",attrs:{to:t.artistLink(e)}},[a("img",{attrs:{src:t.getArtist(e).avatar_image}})]),t._v(" "),a("div",{staticClass:"meta"},[a("div",{staticClass:"when"},[t._v(t._s(t.formatDate(e)))]),t._v(" "),a("div",{staticClass:"headline"},[a("router-link",{staticClass:"who",attrs:{to:t.artistLink(e)}},[t._v(t._s(t.getArtist(e).name))]),t._v(" "),a("span",{staticClass:"what"},[t._v("\n "+t._s(t.formatWhat(e))+" "+t._s(t.formatVisibility(e))+"\n ")])],1)])],1),t._v(" "),a("b-col",{staticClass:"text-right",attrs:{cols:"1"}},[a("Report",{staticClass:"report-link",attrs:{update:e,label:"Report post"}},[t.canManage?a("LinkButton",{on:{click:function(a){t.deleteUpdate(e)}}},[t._v("Delete post")]):t._e()],1)],1)],1),t._v(" "),"text"===t.itemType(e)?a("b-row",[a("b-col",[a("p",{staticClass:"msg",domProps:{innerHTML:t._s(t.formatText(e.text))}}
1)])],1):t._e(),t._v(" "),"video"===t.itemType(e)?a("div",[a("b-row",{staticClass:"pb-2"},[a("b-col",{staticClass:"player-col",attrs:{cols:"12",lg:"9"}},[t.currentVideo===e.song?a("div",[a("Player",{attrs:{video:e.song,once:!0,autoplay:!0}})],1):a("div",[a("img",{attrs:{src:t.getThumbnail(e)}}),t._v(" "),a("font-awesome-icon",{staticClass:"play",attrs:{icon:"play"},on:{click:function(a){t.playVideo(e)}}})],1)])],1),t._v(" "),a("b-row",[a("b-col",{attrs:{cols:"12",lg:"9"}},[a("VideoInfo",{attrs:{video:e.song,hideComments:!0}})],1)],1)],1):t._e(),t._v(" "),"live"===t.itemType(e)?a("div",[a("b-row",[a("b-col",{attrs:{cols:"12",lg:"9"}},[a("BigEventCard",{attrs:{event:e.live_event}})],1)],1)],1):t._e(),t._v(" "),"album"===t.itemType(e)?a("div",[a("b-row",[a("b-col",{attrs:{cols:"12",sm:"8"}},[a("AlbumCard",{attrs:{album:e.album,showArtist:!0,largeCover:!0}})],1),t._v(" "),e.album.songs.length?a("b-col",{staticClass:"text-right album-actions"},[a("Pay",{attrs:{album:e.album}}),t._v(" "),a("br"),t._v(" "),a("b-button",{staticClass:"play-album",attrs:{variant:"secondary",to:{name:"album-detail",params:{id:e.album.id}}}},[a("font-awesome-icon",{attrs:{icon:"play"}}),a("span",{staticClass:"label"},[t._v(" Â play")])],1)],1):t._e()],1)],1):t._e(),t._v(" "),a("b-row",[a("b-col",{staticClass:"comments"},[a("Comments",{attrs:{update:e,small:!0,canManage:t.canManage,collapsed:!t.canManage}})],1)],1)],1)}))},staticRenderFns:[]};var Si=a("VU/8")(xi,Ai,!1,function(t){a("NlfV")},"data-v-350c513e",null).exports,Ii={name:"Activity",components:{FontAwesomeIcon:g.a,ArtistProfileTabs:ma,ArtistEditProfileTabs:Ba,ProfileHero:xa,Feed:Si,UserList:hi},data:function(){return{artist:null,recipients:[],update:{text:"",visibility:"public"},feed:null}},computed:{isFanView:function(){return this.$route.params.artistId},postVisibilities:function(){return Te}},created:function(){this.fetchData()},watch:{$route:"fetchData"},methods:{fetchData:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!t.$route.params.artistId){e.next=7;break}return e.next=4,t.$store.dispatch("artist/getArtist",{id:t.$route.params.artistId});case 4:t.artist=e.sent,e.next=8;break;case 7:t.artist=t.$store.getters["artist/artist"];case 8:return t.$route.query.thanks&&t.setupThanks(t.$route.query.thanks),e.next=11,t.$store.dispatch("feed/getUserFeed",{id:t.artist.profile.id});case 11:t.feed=e.sent.results,e.next=19;break;case 14:e.prev=14,e.t0=e.catch(0),console.log("[activity] failed to load artist and/or feed information",e.t0),t.artist=null,t.feed=[];case 19:case"end":return e.stop()}},e,t,[[0,14]])}))()},setupThanks:function(t){var e=this;return h()(v.a.mark(function a(){var i;return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.$store.dispatch("profile/findProfile",{handle:t});case 2:(i=a.sent)&&i.count&&(e.recipients=[{handle:"@"+t,user:i.results[0],name:$.displayName(i.results[0])}],e.update.visibility="private",e.update.text="Thanks!");case 4:case"end":return a.stop()}},a,e)}))()},postUpdate:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.update.text){e.next=2;break}return e.abrupt("return");case 2:return"private"===t.update.visibility&&(t.update.recipient_ids=C()(t.recipients,function(t){return t.user?t.user.id:null})),e.next=5,t.$store.dispatch("feed/postUpdate",t.update);case 5:a=e.sent,t.feed?t.feed.unshift(a):t.feed=[a],t.update={text:"",visibility:"public"},t.recipients=[];case 9:case"end":return e.stop()}},e,t)}))()}}},Pi={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",{staticClass:"activity"},[t.isFanView?t._e():a("ArtistEditProfileTabs"),t._v(" "),t.isFanView&&t.artist?a("ProfileHero",{attrs:{artist:t.artist}}):t._e(),t._v(" "),t.isFanView&&t.artist?a("ArtistProfileTabs",{attrs:{artist:t.artist}}):t._e(),t._v(" "),t.isFanView?t._e():a("div",{staticClass:"post-message"},[a("b-row",[a("b-col",[a("b-form-group",{attrs:{label:"Post a message",description:"Post a status update to your followers"}},[a("b-form-textarea",{attrs:{rows:5,"max-rows":10,required:""},model:{value:t.update.text,callback:function(e){t.$set(t.update,"text",e)},expression:"update.text"}})],1)],1)],1),t._v(" "),a("b-row",[a("b-col",[a("b-form-group",{attrs:{horizontal:"",label:"Visibility"}},[a("b-form-select",{attrs:{id:"visibility",options:t.postVisibilities},model:{value:t.update.visibility,callback:function(e){t.$set(t.update,"visibility",e)},expression:"update.visibility"}})],1)],1),t._v(" "),a("b-col",{staticClass:"text-right"},[a("b-button",{staticClass:"btn-rainbow",attrs:{disabled:!t.update.text},on:{click:t.postUpdate}},[t._v("Post update")])],1)],1),t._v(" "),"private"===t.update.visibility?a("b-row",[a("b-col",[a("UserList",{attrs:{canAdd:!0,canRemove:!0,requireUser:!0,forceFan:!0,addLabel:"Add recipient",removeLabel:"Remove recipient"},model:{value:t.recipients,callback:function(e){t.recipients=e},expression:"recipients"}})],1)],1):t._e()],1),t._v(" "),a("Feed",{attrs:{feed:t.feed,artist:t.artist,canManage:!t.isFanView}})],1)},staticRenderFns:[]};var Ti=a("VU/8")(Ii,Pi,!1,function(t){a("JfSH")},"data-v-0839af78",null).exports,Ei=a("rezj"),Li=a.n(Ei),$i=a("RUzx"),Oi=a.n($i),Ri=a("IC97"),Fi=a("SVjV"),Mi=a.n(Fi),Ui={name:"EditLiveStream",components:{FontAwesomeIcon:g.a,Multiselect:Oi.a,LinkButton:x,Datepicker:Ri.a,VueTimepicker:Mi.a,VueGoogleAutocomplete:Fa,UserList:hi,ObjectListTabs:Ze},data:function(){var t=xt().add(1,"hours"),e=xt().startOf("day");return{errors:{},wasPublished:!1,promoFile:null,removedPublishedPromoFile:!1,promoImageHeight:null,uploadProgress:null,liveEventVisibilities:Ae,liveEventChatTypes:Se,live:{},startDate:e.toDate(),invitees:[],startTime:{hh:t.format("hh"),mm:t.format("mm"),a:t.format("a")},datepickerDisabledDates:{to:e.toDate()},duration:"60",instruments:aa}},computed:c()({hasPromo:function(){return this.promoFile||this.live.promo_image},promoFileUrl:function(){return this.promoFile?URL.createObjectURL(this.promoFile):this.live.promo_image?this.live.promo_image:null},timeZone:function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(t){return"local time"}},inviteIds:function(){var t=[],e=!0,a=!1,i=void 0;try{for(var n,s=T()(this.invitees);!(e=(n=s.next()).done);e=!0){var r=n.value;
1r.user&&r.user.id&&t.push(r.user.id)}}catch(t){a=!0,i=t}finally{try{!e&&s.return&&s.return()}finally{if(a)throw i}}return t},cancelLink:function(){return this.live&&this.live.id?this.live.has_ended?{name:"artist-my-live-stream-list",params:{visibility:"past"}}:{name:"artist-live-stream",params:{id:this.live.id}}:{name:"artist-my-live-stream-list",params:{visibility:"draft"}}},startsInTheFuture:function(){return!!this.live&&(!this.live.is_live&&xt().isBefore(this.live.start))},isRecent:function(){return!!this.live&&(!!this.live.is_live||xt().subtract(2,"hours").isBefore(this.live.start))}},F(["title","start","duration","price","limit","visibility","chat_type"])),created:function(){this.fetchData()},watch:{$route:"fetchData"},methods:c()({fetchData:function(){var t=this;return h()(v.a.mark(function e(){var a,i;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.$route.params.id){e.next=3;break}return t.live={},e.abrupt("return");case 3:return a=t.$store.getters["artist/artist"],e.next=6,t.$store.dispatch("live/getOwnLiveEvent",{id:t.$route.params.id});case 6:if((i=e.sent).artist.id===a.id){e.next=10;break}return t.$router.push({name:"artist-dashboard"}),e.abrupt("return");case 10:t.parseLive(i);case 11:case"end":return e.stop()}},e,t)}))()},parseLive:function(t){var e=xt(t.start);this.startDate=e.toDate(),this.startTime={hh:e.format("hh"),mm:e.format("mm"),a:e.format("a")},this.duration=Math.floor((t.duration||0)/60),this.wasPublished="draft"!==t.visibility,this.live=t;var a=[],i=!0,n=!1,s=void 0;try{for(var r,o=T()(t.invited_users);!(i=(r=o.next()).done);i=!0){var l=r.value;a.push({user:l,handle:"@"+l.username,name:l.name||"@"+l.username})}}catch(t){n=!0,s=t}finally{try{!i&&o.return&&o.return()}finally{if(n)throw s}}this.invitees=a},selectPromoFile:function(){this.$refs.fileInput.click()},onPromoFileSelected:function(){1===this.$refs.fileInput.files.length&&(this.promoFile=this.$refs.fileInput.files[0],this.$refs.fileInput.value="")},removePromo:function(){this.promoFile=null,this.live.promo_image&&(this.live.promo_image=null,this.removedPublishedPromoFile=!0)},onPlaceChanged:function(t,e,a){this.live.location_lat=t.latitude,this.live.location_lng=t.longitude,this.live.location=e.formatted_address},saveDraft:function(){this.live.id||(this.live.visibility="draft"),this.saveLiveEvent()},saveLiveEvent:function(){var t=this;return h()(v.a.mark(function e(){var a,i,n,s,r,o;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((a=xt(t.startDate)).hours((parseInt(t.startTime.hh)||0)%12+("pm"===t.startTime.a?12:0)),a.minutes(t.startTime.mm),a.seconds(0),t.live.start=a.toISOString(),isNaN(parseInt(t.duration))&&(t.duration=0),t.duration<=0?(t.duration=60,t.live.duration=3600):t.duration<5?(t.duration=Math.floor(60*t.duration),t.live.duration=60*t.duration):t.live.duration=Math.round(60*t.duration),t.live.invited_user_ids=t.inviteIds,t.live.location||(i=document.querySelector("input#location").value)&&(t.live.location=i.trim()),n=!t.live.id,s=void 0,!n){e.next=30;break}return t.showModal("Creating new live stream ..."),r=Li()(t.live),o=t.live.visibility,r.visibility="draft",e.prev=16,e.next=19,t.$store.dispatch("live/createLiveEvent",r);case 19:s=e.sent,e.next=28;break;case 22:return e.prev=22,e.t0=e.catch(16),t.$store.dispatch("flash/showMessage",{message:"Error while creating live stream",type:"error"}),t.hideModal(),e.t0.response&&e.t0.response.data&&(t.errors=R(e.t0.response.data)),e.abrupt("return");case 28:t.parseLive(s),t.live.visibility=o;case 30:if(!t.removedPublishedPromoFile){e.next=35;break}return t.showModal("Removing old live stream promo ..."),e.next=34,t.$store.dispatch("live/deleteLiveEventPromo",{id:t.live.id});case 34:t.removedPublishedPromoFile=!1;case 35:if(!t.promoFile){e.next=39;break}return t.showModal("Uploading live stream promo image ..."),e.next=39,t.$store.dispatch("live/setLiveEventPromo",{id:t.live.id,file:t.promoFile});case 39:return t.showModal("Saving live stream ..."),e.prev=40,e.next=43,t.$store.dispatch("live/updateLiveEvent",t.live);case 43:s=e.sent,e.next=52;break;case 46:return e.prev=46,e.t1=e.catch(40),t.$store.dispatch("flash/showMessage",{message:"Error while saving live stream",type:"error"}),t.hideModal(),e.t1.response&&e.t1.response.data&&(t.errors=R(e.t1.response.data)),e.abrupt("return");case 52:t.parseLive(s),t.hideModal(),n?t.$store.dispatch("flash/showMessage",{message:"Live stream created"}):t.$store.dispatch("flash/showMessage",{message:"Live stream updated"}),t.$router.push({name:"artist-live-stream",params:{id:t.live.id}});case 56:case"end":return e.stop()}},e,t,[[16,22],[40,46]])}))()},deleteLiveStream:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.live.id){e.next=2;break}return e.abrupt("return");case 2:if("draft"===t.live.visibility){e.next=5;break}
1return t.$store.dispatch("flash/showMessage",{message:"Published live streams can't be deleted, only cancelled",type:"error"}),e.abrupt("return");case 5:return e.prev=5,e.next=8,t.$store.dispatch("live/deleteLiveEvent",{id:t.live.id});case 8:e.next=16;break;case 10:return e.prev=10,e.t0=e.catch(5),a="Can't delete live stream",e.t0.response&&e.t0.response.data&&e.t0.response.data.detail&&(a="Can't delete live stream: "+e.t0.response.data.detail),t.$store.dispatch("flash/showMessage",{message:a,type:"error"}),e.abrupt("return");case 16:t.$store.dispatch("flash/showMessage",{message:"Live stream deleted"}),t.$router.push({name:"artist-my-live-stream-list",params:{visibility:"draft"}});case 18:case"end":return e.stop()}},e,t,[[5,10]])}))()},cancelLiveStream:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.live.id){e.next=2;break}return e.abrupt("return");case 2:if("draft"!==t.live.visibility){e.next=5;break}return t.$store.dispatch("flash/showMessage",{message:"Draft live streams should be deleted instead of cancelled",type:"error"}),e.abrupt("return");case 5:return e.prev=5,e.next=8,t.$store.dispatch("live/cancelLiveEvent",{id:t.live.id});case 8:e.next=16;break;case 10:return e.prev=10,e.t0=e.catch(5),a="Can't cancel live stream",e.t0.response&&e.t0.response.data&&e.t0.response.data.detail&&(a="Can't cancel live stream: "+e.t0.response.data.detail),t.$store.dispatch("flash/showMessage",{message:a,type:"error"}),e.abrupt("return");case 16:t.$store.dispatch("flash/showMessage",{message:"Live stream cancelled"}),t.$router.push({name:"artist-my-live-stream-list",params:{visibility:t.live.visibility}});case 18:case"end":return e.stop()}},e,t,[[5,10]])}))()}},Object(u.b)("flash",["showModal","hideModal"]))},Ni={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("ObjectListTabs",{scopedSlots:t._u([{key:"default",fn:function(e){return[t.live.id?a("b-nav-item",{attrs:{to:{name:"artist-live-stream-edit",params:{id:t.live.id}}}},[t._v("Edit Live Stream")]):t._e(),t._v(" "),t.live.id?a("b-nav-item",{attrs:{to:{name:"artist-live-stream-manage-comments",params:{id:t.live.id}}}},[t._v("Manage Comments")]):t._e(),t._v(" "),t.live.id?t._e():a("b-nav-item",{attrs:{to:{name:"artist-live-stream-create"}}},[t._v("Create Live Stream")])]}},{key:"cmd",fn:function(e){return[a("router-link",{staticClass:"cancel-link",attrs:{to:t.cancelLink}},[t._v("cancel")])]}},{key:"mobileCmd",fn:function(e){return[a("b-nav-item",{attrs:{to:t.cancelLink}},[t._v("cancel")])]}}])}),t._v(" "),a("b-row",{staticClass:"command-row",attrs:{"align-v":"center"}},[a("b-col",[t.live.id?a("h1",[t._v("\n "+t._s(t.live.title)+"\n "),t.live.is_cancelled?a("span",{staticClass:"cancelled"},[t._v("cancelled")]):t._e()]):a("h1",[t._v("\n Create New Live Stream\n "),a("small",[t._v("Video encoder is required ("),a("router-link",{attrs:{to:{name:"site-streaming-guide"},target:"_blank"}},[t._v("detailed guide")]),t._v(")")],1)])]),t._v(" "),!t.live.has_ended||t.isRecent?a("b-col",{attrs:{cols:"*"}},[t.live.id&&"draft"===t.live.visibility?a("LinkButton",{directives:[{name:"b-modal",rawName:"v-b-modal.confirmDelete",modifiers:{confirmDelete:!0}}],attrs:{u:!0}},[t._v("Delete live stream")]):t._e(),t._v(" "),t.live.id&&"draft"!==t.live.visibility&&!t.live.has_ended?a("LinkButton",{directives:[{name:"b-modal",rawName:"v-b-modal.confirmCancel",modifiers:{confirmCancel:!0}}],attrs:{u:!0}},[t._v("Cancel live stream")]):t._e(),t._v(" "),t.live.id?a("b-button",{staticClass:"btn-rainbow",on:{click:t.saveLiveEvent}},[t._v("Update event")]):a("b-button",{staticClass:"btn-rainbow",on:{click:t.saveLiveEvent}},[t._v("Create event")])],1):t._e()],1),t._v(" "),a("b-row",{staticClass:"live-details first"},[t.hasPromo?t._e():a("b-col",{staticClass:"dropzone"},[a("div",{staticClass:"big-info"},[t._v("\n Select promotional image\n ")]),t._v(" "),a("b-button",{staticClass:"btn-rainbow",on:{click:t.selectPromoFile}},[t._v("click here to browse")]),t._v(" "),a("input",{ref:"fileInput",attrs:{type:"file",id:"promofile"},on:{change:t.onPromoFileSelected}}),t._v(" "),a("div",{staticClass:"info"},[t._v("\n Supported formats: .png, .jpg "),a("br"),t._v("\n 1920 x 1080 px recommended\n ")])],1),t._v(" "),t.hasPromo?a("b-col",{staticClass:"promoimage"},[a("img",{attrs:{src:t.promoFileUrl}}),t._v(" "),a("b-button",{staticClass:"remove",attrs:{variant:"danger",size:"xs"},on:{click:t.removePromo}},[a("font-awesome-icon",{attrs:{icon:"times"}})],1)],1):t._e(),t._v(" "),a("b-col",[a("b-form-group",{attrs:{id:"titleGroup",label:"Stream Title",invalidFeedback:t.errorTitle,state:t.stateTitle,"label-for":"title"}},[a("b-form-input",{attrs:{type:"text",placeholder:"Live stream title",state:t.stateTitle},model:{value:t.live.title,callback:function(e){t.$set(t.live,"title",e)},expression:"live.title"}})],1),t._v(" "),a("b-form-group",{attrs:{id:"visibilityGroup",label:"Visibility",invali
1dFeedback:t.errorVisibility,state:t.stateVisibility,"label-for":"visibility"}},[a("b-form-select",{attrs:{id:"visibility",options:t.liveEventVisibilities,state:t.stateVisibility},model:{value:t.live.visibility,callback:function(e){t.$set(t.live,"visibility",e)},expression:"live.visibility"}})],1),t._v(" "),a("b-form-group",{staticClass:"short",attrs:{id:"priceGroup",label:"Event Price (USD)",description:"Free, or minimum $2.00",invalidFeedback:t.errorPrice,state:t.statePrice,"label-for":"price"}},[a("b-form-input",{attrs:{type:"text",required:"",placeholder:"Example: 5.00",state:t.statePrice},model:{value:t.live.price,callback:function(e){t.$set(t.live,"price",e)},expression:"live.price"}})],1),t._v(" "),a("b-form-checkbox",{attrs:{size:"sm"},model:{value:t.live.can_pay_more,callback:function(e){t.$set(t.live,"can_pay_more",e)},expression:"live.can_pay_more"}},[t._v("\n Let fans back you more, and they might pay a little extra\n ")])],1)],1),t._v(" "),a("b-row",{staticClass:"live-details when"},[a("b-col",{staticClass:"mr-3",attrs:{cols:"*"}},[a("b-form-group",{attrs:{id:"startGroup",label:"Date","label-for":"startDate",invalidFeedback:t.errorStart,state:t.stateStart,description:"Date of the event"}},[a("datepicker",{attrs:{id:"startDate","calendar-class":"start",format:"MM/dd/yyyy",disabledDates:t.datepickerDisabledDates},model:{value:t.startDate,callback:function(e){t.startDate=e},expression:"startDate"}})],1)],1),t._v(" "),a("b-col",{staticClass:"mx-3",attrs:{cols:"*"}},[a("b-form-group",{attrs:{id:"startGroup",label:"Starts at","label-for":"startTime",invalidFeedback:t.errorStart,state:t.stateStart,description:"Start time"}},[a("vue-timepicker",{attrs:{format:"hh:mm a"},model:{value:t.startTime,callback:function(e){t.startTime=e},expression:"startTime"}})],1)],1),t._v(" "),a("b-col",{staticClass:"mx-3",attrs:{cols:"*"}},[a("b-form-group",{staticClass:"short",attrs:{id:"durationGroup",label:"Duration","label-for":"duration",invalidFeedback:t.errorDuration,state:t.stateDuration,description:"in minutes"}},[a("b-form-input",{attrs:{id:"duration",type:"text",required:"",placeholder:"minutes",state:t.stateDuration},model:{value:t.duration,callback:function(e){t.duration=e},expression:"duration"}})],1)],1),t._v(" "),a("b-col",{staticClass:"timezone"},[t._v("\n Time zone: "+t._s(t.timeZone)+"\n ")])],1),t._v(" "),a("b-row",[a("b-col",[a("b-form-group",{attrs:{label:"How much you want your fans to interact during live stream?",invalidFeedback:t.errorChatType,state:t.stateChatType,description:"This can't be changed after the live stream has started"}},[a("b-form-select",{attrs:{id:"chat_type",options:t.liveEventChatTypes,state:t.stateChatType},model:{value:t.live.chat_type,callback:function(e){t.$set(t.live,"chat_type",e)},expression:"live.chat_type"}})],1)],1),t._v(" "),a("b-col",[a("b-form-group",{staticClass:"short",attrs:{id:"limitGroup",label:"Attendee limit",description:"Limit number of attendees (optional)",invalidFeedback:t.errorLimit,state:t.stateLimit,"label-for":"limit"}},[a("b-form-input",{attrs:{type:"text",required:"",state:t.stateLimit},model:{value:t.live.limit,callback:function(e){t.$set(t.live,"limit",e)},expression:"live.limit"}})],1)],1)],1),t._v(" "),a("b-row",[a("b-col",[a("b-form-group",{attrs:{id:"locationGroup",label:"Live streaming from","label-for":"location",description:"City or place you're streaming from"}},[a("vue-google-autocomplete",{attrs:{id:"location",classname:"form-control",placeholder:"Pick a location",types:"(cities)",value:t.live.location},on:{placechanged:t.onPlaceChanged}})],1)],1)],1),t._v(" "),a("b-row",[a("b-col",[a("b-form-group",{attrs:{id:"descGroup",label:"Live stream description","label-for":"decription"}},[a("b-form-textarea",{attrs:{id:"description",rows:5,"max-rows":10,required:"",placeholder:"Description of this live stream"},model:{value:t.live.description,callback:function(e){t.$set(t.live,"description",e)},expression:"live.description"}})],1)],1)],1),t._v(" "),a("b-row",[a("b-col",[a("b-form-group",{attrs:{label:"Instruments (up to 5)","label-for":"username"}},[a("multiselect",{attrs:{searchable:!1,multiple:!0,max:5,showNoResults:!1,options:t.instruments},model:{value:t.live.tags,callback:function(e){t.$set(t.live,"tags",e)},expression:"live.tags"}},[a("template",{slot:"maxElements"},[t._v("\n Maximum of 5 options\n ")])],2)],1)],1)],1),t._v(" "),a("b-row",[a("b-col",[t._v("\n Invite participants (use for private events)\n "),a("UserList",{attrs:{withRoles:!1,canAdd:!0,canRemove:!0,requireUser:!0,addLabel:"Invite fan",handleLabel:"User handle"},model:{value:t.invitees,callback:function(e){t.invitees=e},expression:"invitees"}}
1)],1)],1),t._v(" "),t.live.has_ended?t._e():a("b-row",{staticClass:"command-row bottom",attrs:{"align-v":"center"}},[a("b-col",[t.live.id&&"draft"===t.live.visibility?a("LinkButton",{directives:[{name:"b-modal",rawName:"v-b-modal.confirmDelete",modifiers:{confirmDelete:!0}}],attrs:{u:!0}},[t._v("Delete live stream")]):t._e(),t._v(" "),t.live.id&&"draft"!==t.live.visibility?a("LinkButton",{directives:[{name:"b-modal",rawName:"v-b-modal.confirmCancel",modifiers:{confirmCancel:!0}}],attrs:{u:!0}},[t._v("Cancel live stream")]):t._e(),t._v(" "),t.live.id?a("b-button",{staticClass:"btn-rainbow",on:{click:t.saveLiveEvent}},[t._v("Update event")]):a("b-button",{staticClass:"btn-rainbow",on:{click:t.saveLiveEvent}},[t._v("Create event")])],1)],1),t._v(" "),a("b-modal",{ref:"confirmDelete",attrs:{id:"confirmDelete",title:"Delete live stream",centered:""},on:{ok:t.deleteLiveStream}},[a("div",{staticClass:"content"},[a("p",[t._v("\n Are you sure you want to delete this live stream?\n ")])])]),t._v(" "),a("b-modal",{ref:"confirmCancel",attrs:{id:"confirmCancel",title:"Cancel live stream",centered:""},on:{ok:t.cancelLiveStream}},[a("div",{staticClass:"content"},[t.startsInTheFuture?a("p",[t._v("\n Are you sure you want to cancel this live streaming event?\n You will not be able to undo this action.\n ")]):a("p",[t._v("\n Are you sure you want to cancel this live streaming event?\n This will refund any purchases for this live stream automatically.\n You will still be responsible for any applicable processing fees as set forth in Stripe's Service Agreement.\n ")])])])],1)},staticRenderFns:[]};var Vi=a("VU/8")(Ui,Ni,!1,function(t){a("nDbd")},"data-v-054e1c6c",null).exports,ji={name:"Dashboard",components:{FontAwesomeIcon:g.a},data:function(){return{stats:null,start_date:null,before_date:null,transactions:null}},computed:c()({followerCount:function(){var t=this.artist.follower_count||0;return t+" Follower"+(1===t?"":"s")}},Object(u.c)("artist",["artist","artistName","artistAvatar","hasPayoutMethod"])),created:function(){this.initPage()},methods:c()({initPage:function(){var t=this;return h()(v.a.mark(function e(){var a,i,n,s,r,o,l,c;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.hasPayoutMethod){e.next=3;break}return e.next=3,t.$store.dispatch("artist/getCurrentArtist");case 3:return e.next=5,t.$store.dispatch("payment/listArtistTransactions");case 5:return a=e.sent,e.next=8,a.all();case 8:for(t.transactions=e.sent,i={donation:{count:0,total:0},purchase:{count:0,total:0},booking:{count:0,total:0}},n=!0,s=!1,r=void 0,e.prev=13,o=T()(t.transactions);!(n=(l=o.next()).done);n=!0)c=l.value,i[c.type].count++,i[c.type].total+=c.amount;e.next=21;break;case 17:e.prev=17,e.t0=e.catch(13),s=!0,r=e.t0;case 21:e.prev=21,e.prev=22,!n&&o.return&&o.return();case 24:if(e.prev=24,!s){e.next=27;break}throw r;case 27:return e.finish(24);case 28:return e.finish(21);case 29:t.stats=i;case 30:case"end":return e.stop()}},e,t,[[13,17,21,29],[22,,24,28]])}))()},formatDate:function(t){return xt(t.created_at).format("MM/DD/YYYY h:mm a")},getType:function(t){return"booking"===t.type?"live stream":t.type}},$)},Di={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("b-row",{staticClass:"headline",attrs:{"align-v":"center"}},[a("b-col",{attrs:{cols:"*"}},[a("img",{staticClass:"avatar",attrs:{src:t.artistAvatar}})]),t._v(" "),a("b-col",{staticClass:"col-7"},[a("h1",[t._v(t._s(t.artistName))]),t._v(" "),a("router-link",{staticClass:"followers",attrs:{to:{name:"artist-followers"}}},[t._v(t._s(t.followerCount))])],1),t._v(" "),a("b-col",{staticClass:"actions"},[a("router-link",{attrs:{to:{name:"artist-about",params:{artistId:t.artist.id}}}},[a("i",{staticClass:"sl-icon-eye"})]),t._v(" "),a("router-link",{staticClass:"u",attrs:{to:{name:"artist-profile-edit"}}},[t._v("Edit information")])],1)],1),t._v(" "),t.hasPayoutMethod?t._e():a("b-row",[a("b-col",{staticClass:"no-payout-info"},[a("p",[t._v("\n Payouts are not set up.\n ")]),t._v(" "),a("p",[t._v("\n Please make sure that you have successfully connected with Stripe, in order to enable\n payment processing and allow fans to access your content.\n ")]),t._v(" "),a("router-link",{attrs:{to:{name:"artist-onboarding"}}},[t._v("Connect with Stripe")])],1)],1),t._v(" "),t.hasPayoutMethod&&t.stats?a("b-row",{staticClass:"summaries"},[a("b-col",{staticClass:"col-12 col-md-4 pb-3"},[a("div",{staticClass:"donations"},[a("div",{staticClass:"title"},[a("font-awesome-icon",{attrs:{icon:"plus"}}),t._v(" donations")],1),t._v(" "),a("div",{staticClass:"stats"},[a("div",{staticClass:"count"},[t._v(t._s(t.stats.donation.count))]),t._v(" "),a("div",{staticClass:"revenue"},[t._v(t._s(t.stats.donation.total.toFixed(2))+" "),a("span",{staticClass:"currency"},[t._v("US$")])])])])]),t._v(" "),a("b-col",{staticClass:"col-12 col-md-4 pb-3"},[a("div",{staticClass:"downloads"},[a("div",{staticClass:"title"},[a("i",{staticClass:"sl-icon-cloud-download"}),t._v(" downloads")]),t._v(" "),a("div",{staticClass:"stats"},[a("div",{staticClass:"count"},[t._v(t._s(t.stats.purchase.count))]),t._v(" "),a("div",{staticClass:"revenue"},[t._v(t._s(t.stats.purchase.total.toFixed(2))+" "),a("span",{staticClass:"currency"},[t._v("US$")])])])])]),t._v(" "),a("b-col",{staticClass:"col-12 col-md-4 pb-1"},[a("div",{staticClass:"livestreams"},[a("div",{staticClass:"title"},[a("i",{staticClass:"sl-icon-camrecorder"}),t._v(" live streams")]),t._v(" "),a("div",{staticClass:"stats"},[a("div",{staticClass:"count"},[t._v(t._s(t.stats.booking.count))]),t._v(" "),a("div",{staticClass:"revenue"},[t._v(t._s(t.stats.booking.total.toFixed(2))+" "),a("span",{staticClass:"currency"}
1,[t._v("US$")])])])])])],1):t._e(),t._v(" "),t.hasPayoutMethod&&t.transactions?a("b-row",[a("b-col",[a("div",{staticClass:"recent"},[a("div",{staticClass:"heading"},[a("div",{staticClass:"title"},[t._v("Recent Transactions")]),t._v(" "),a("div",{staticClass:"stripe"},[a("a",{attrs:{href:"https://dashboard.stripe.com/",target:"_blank"}},[t._v("Stripe dashboard")])])]),t._v(" "),a("table",{staticClass:"table-responsive-md"},[a("thead",[a("tr",[a("th",{staticClass:"left"},[t._v("User")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Title")]),t._v(" "),a("th",[t._v("Amount")]),t._v(" "),a("th",[t._v("Date")]),t._v(" "),a("th",[t._v(" ")])])]),t._v(" "),a("tbody",t._l(t.transactions,function(e){return a("tr",{key:e.id},[e.fan.is_active?a("td",{staticClass:"left"},[a("router-link",{attrs:{to:{name:"fan-profile",params:{id:e.fan.id}}}},[t._v(t._s(t.displayName(e.fan)))])],1):a("td",{staticClass:"left"},[t._v(t._s(t.displayName(e.fan)))]),t._v(" "),a("td",[t._v(t._s(t.getType(e)))]),t._v(" "),a("td",{staticClass:"left"},[t._v(t._s(e.description))]),t._v(" "),a("td",[t._v("$"+t._s(e.amount.toFixed(2)))]),t._v(" "),a("td",[t._v(t._s(t.formatDate(e)))]),t._v(" "),a("td",[e.fan.is_active?a("router-link",{staticClass:"thanks-link",attrs:{to:{name:"artist-my-activity",query:{thanks:e.fan.username}}}},[t._v("Say thanks")]):t._e()],1)])}))])])])],1):t._e()],1)},staticRenderFns:[]};var Bi=a("VU/8")(ji,Di,!1,function(t){a("tkJl")},"data-v-45ae4cc6",null).exports,Hi=a("DAYN"),qi=a.n(Hi),zi={name:"SongListEditor",model:{prop:"songs",event:"change"},props:{songs:Array,canAdd:Boolean,canRemove:Boolean,canSort:Boolean,availableSongs:Array},components:{FontAwesomeIcon:g.a,Multiselect:Oi.a,draggable:qi.a},data:function(){return{addingSong:!1,sortOptions:{handle:".grip"}}},methods:c()({addSong:function(t){this.addingSong=!1,this.songs.push(t),this.onChange()},removeSong:function(t){var e=this.songs.indexOf(t);-1!==e&&(this.songs.splice(e,1),this.onChange())},onChange:function(){this.$emit("change",this.songs)}},O)},Wi={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"song-list-editor"},[a("draggable",{staticClass:"song-list",attrs:{options:t.sortOptions,list:t.songs,disabled:!t.canSort},on:{change:t.onChange}},t._l(t.songs,function(e){return a("b-row",{key:e.id,staticClass:"song",attrs:{"align-v":"center"}},[t.canSort?a("b-col",{staticClass:"grip",attrs:{cols:"*"}},[a("font-awesome-icon",{attrs:{icon:"th"}})],1):t._e(),t._v(" "),a("b-col",{attrs:{cols:"*"}},[a("router-link",{attrs:{to:{name:"video-detail",params:{id:e.id}}}},[a("img",{attrs:{src:t.getThumbnail(e)}})])],1),t._v(" "),a("b-col",[a("router-link",{attrs:{to:{name:"video-detail",params:{id:e.id}}}},[t._v(t._s(e.title))])],1),t._v(" "),a("b-col",{attrs:{cols:"*"}},[t._v("\n "+t._s(t.formatDuration(e))+"\n ")]),t._v(" "),t.canRemove?a("b-col",{attrs:{cols:"*"}},[a("font-awesome-icon",{staticClass:"remove",attrs:{icon:"times"},on:{click:function(a){t.removeSong(e)}}})],1):t._e()],1)})),t._v(" "),t.canAdd?a("b-row",[t.addingSong?a("b-col",{staticClass:"add-song-btn"},[a("multiselect",{attrs:{searchable:!1,multiple:!1,showNoResults:!1,label:"title",options:t.availableSongs},on:{select:t.addSong,close:function(e){t.addingSong=!1}}})],1):a("b-col",{staticClass:"add-song-btn",on:{click:function(e){t.addingSong=!0}}},[a("font-awesome-icon",{attrs:{icon:"plus"}}),t._v("\n  \n Add song\n ")],1)],1):t._e()],1)},staticRenderFns:[]};var Gi=a("VU/8")(zi,Wi,!1,function(t){a("TgaC")},"data-v-33dc4fce",null).exports,Yi={name:"EditAlbum",components:{FontAwesomeIcon:g.a,Datepicker:Ri.a,SongListEditor:Gi,LinkButton:x},data:function(){return{errors:{},coverFile:null,removedPublishedCoverFile:!1,uploadProgress:null,addingSong:!1,albumVisibilities:we,releaseDate:new Date,album:{},songs:[],allSongs:[]}},computed:c()({hasCover:function(){return this.coverFile||this.album.cover},coverFileUrl:function(){return this.coverFile?URL.createObjectURL(this.coverFile):this.album.cover?this.album.cover:null},availableSongs:function(){var t=[],e=!0,a=!1,i=void 0;try{for(var n,s=T()(this.songs);!(e=(n=s.next()).done);e=!0){var r=n.value;
1t.push(r.id)}}catch(t){a=!0,i=t}finally{try{!e&&s.return&&s.return()}finally{if(a)throw i}}var o=[],l=!0,c=!1,u=void 0;try{for(var d,v=T()(this.allSongs);!(l=(d=v.next()).done);l=!0){var p=d.value;p.has_digital_download&&(-1===t.indexOf(p.id)&&o.push(p))}}catch(t){c=!0,u=t}finally{try{!l&&v.return&&v.return()}finally{if(c)throw u}}return o},cancelLink:function(){return this.album&&this.album.id?{name:"artist-album-list",params:{visibility:this.album.visibility}}:{name:"artist-album-list",params:{visibility:"draft"}}}},F(["title","release_date","price","visibility"])),created:function(){this.fetchData(),this.fetchAllSongs()},watch:{$route:"fetchData"},methods:c()({fetchData:function(){var t=this;return h()(v.a.mark(function e(){var a,i;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.$route.params.id){e.next=3;break}return t.album={},e.abrupt("return");case 3:return a=t.$store.getters["artist/artist"],e.next=6,t.$store.dispatch("song/getAlbum",{id:t.$route.params.id});case 6:if((i=e.sent).artist.id===a.id){e.next=10;break}return t.$router.push({name:"artist-dashboard"}),e.abrupt("return");case 10:t.parseAlbum(i);case 11:case"end":return e.stop()}},e,t)}))()},fetchAllSongs:function(){var t=this;return h()(v.a.mark(function e(){var a,i,n,s,r,o,l,c;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("song/listOwnSongs");case 2:a=e.sent,i=[];case 4:if(!(a&&a.count>0)){e.next=29;break}for(n=!0,s=!1,r=void 0,e.prev=8,o=T()(a.results);!(n=(l=o.next()).done);n=!0)c=l.value,i.push(c);e.next=16;break;case 12:e.prev=12,e.t0=e.catch(8),s=!0,r=e.t0;case 16:e.prev=16,e.prev=17,!n&&o.return&&o.return();case 19:if(e.prev=19,!s){e.next=22;break}throw r;case 22:return e.finish(19);case 23:return e.finish(16);case 24:return e.next=26,a.next();case 26:a=e.sent,e.next=4;break;case 29:t.allSongs=i;case 30:case"end":return e.stop()}},e,t,[[8,12,16,24],[17,,19,23]])}))()},parseAlbum:function(t){this.album=t,this.songs=t.songs,this.releaseDate=xt(t.release_date).toDate()},selectCoverFile:function(){this.$refs.fileInput.click()},onCoverFileSelected:function(){1===this.$refs.fileInput.files.length&&(this.coverFile=this.$refs.fileInput.files[0],this.$refs.fileInput.value="")},removeCover:function(){this.coverFile=null,this.album.cover&&(this.album.cover=null,this.removedPublishedCoverFile=!0)},hasNotPublishedSong:function(){return this.songs.find(function(t){return"public"!==t.video_visibility})},saveAlbum:function(){var t=this;return h()(v.a.mark(function e(){var a,i,n,s,r,o,l,c;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t.album.song_ids=[],a=!0,i=!1,n=void 0,e.prev=4,s=T()(t.songs);!(a=(r=s.next()).done);a=!0)o=r.value,t.album.song_ids.push(o.id);e.next=12;break;case 8:e.prev=8,e.t0=e.catch(4),i=!0,n=e.t0;case 12:e.prev=12,e.prev=13,!a&&s.return&&s.return();case 15:if(e.prev=15,!i){e.next=18;break}throw n;case 18:return e.finish(15);case 19:return e.finish(12);case 20:if("draft"===t.album.visibility||!t.hasNotPublishedSong()){e.next=23;break}return t.$refs.songNotPublishedModal.show(),e.abrupt("return");case 23:return t.album.release_date=xt(t.releaseDate).format("YYYY-MM-DD"),t.showModal("Publishing album ..."),l=!t.album.id,c=void 0,e.prev=27,e.next=30,t.$store.dispatch(l?"song/createAlbum":"song/updateAlbum",t.album);case 30:c=e.sent,e.next=39;break;case 33:return e.prev=33,e.t1=e.catch(27),t.$store.dispatch("flash/showMessage",{message:"Error while saving album",type:"error"}),t.hideModal(),e.t1.response&&e.t1.response.data&&(t.errors=R(e.t1.response.data)),e.abrupt("return");case 39:if(t.parseAlbum(c),!t.removedPublishedCoverFile){e.next=45;break}return t.showModal("Removing album cover ..."),e.next=44,t.$store.dispatch("song/deleteAlbumCover",{id:t.album.id});case 44:t.removedPublishedCoverFile=!1;case 45:if(!t.coverFile){e.next=57;break}return t.showModal("Uploading album cover ..."),e.prev=47,e.next=50,t.$store.dispatch("song/setAlbumCover",{id:t.album.id,file:t.coverFile});case 50:e.next=57;break;case 52:return e.prev=52,e.t2=e.catch(47),t.$store.dispatch("flash/showMessage",{message:"Unsupported image type",type:"error"}),t.hideModal(),e.abrupt("return");case 57:l?t.$store.dispatch("flash/showMessage",{message:"Album created"}):t.$store.dispatch("flash/showMessage",{message:"Album updated"}),t.hideModal(),t.$router.push({name:"artist-album-list",params:{visibility:t.album.visibility}});case 60:case"end":return e.stop()}},e,t,[[4,8,12,20],[13,,15,19],[27,33],[47,52]])}))()},deleteAlbum:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.album.id){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,t.$store.dispatch("song/deleteAlbum",{id:t.album.id});case 5:e.next=13;break;case 7:return e.prev=7,e.t0=e.catch(2),a="Can't delete album",e.t0.response&&e.t0.response.data&&e.t0.response.data.detail&&(a="Can't delete album: "+e.t0.response.data.detail),t.$store.dispatch("flash/showMessage",{message:a,type:"error"}),e.abrupt("return");case 13:t.$store.dispatch("flash/showMessage",{message:"Deleted album"}),t.$router.push({name:"artist-album-list",params:{visibility:"public"}});case 15:case"end":return e.stop()}},e,t,[[2,7]])}))()}},Object(u.b)("flash",["showModal","hideModal"]))},Ki={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("b-row",{staticClass:"headline",attrs:{"align-v":"center"}},[t.album.id?a("b-col",{staticClass:"header",attrs:{cols:"*"}},[t._v("\n Edit Album\n ")]):a("b-col",{staticClass:"header",attrs:{cols:"*"}},[t._v("\n Create Album\n ")]),t._v(" "),a("b-col",{staticClass:"cancel"},[a("router-link",{attrs:{to:t.cancelLink}},[t._v("cancel")])],1)],1),t._v(" "),a("b-row",{staticClass:"command-row",attrs:{"align-v":"center"}},[a("b-col",[t.album.id?a("h1",[t._v("\n "+t._s(t.album.title)+"\n ")]):a("h1",[t._v("\n Create New Album\n ")])]),t._v(" "),a("b-col",{staticClass:"actions",attrs:{cols:"*"}},[t.album.id?a("LinkButton",{directives:[{name:"b-modal",rawName:"v-b-modal.confirmDelete",modifiers:{confirmDelete:!0}}],attrs:{u:!0}},[t._v("Delete album")]):t._e(),t._v(" "),a("b-button",{staticClass:"btn-rainbow",on:{click:t.saveAlbum}},[t._v("Save")])],1)],1),t._v(" "),a("b-row",{staticClass:"album-details first"},[t.hasCover?t._e():a("b-col",{staticClass:"dropzone"},[a("div",{staticClass:"big-info"},[t._v("\n Select album cover\n ")]),t._v(" "),a("b-button",{staticClass:"btn-rainbow",on:{click:t.selectCoverFile}},[t._v("click here to browse")]),t._v(" "),a("input",{ref:"fileInput",attrs:{type:"file",id:"coverfile"},on:{change:t.onCoverFileSelected}}),t._v(" "),a("div",{staticClass:"info"},[t._v("\n Supported formats: .png, .jpg"),a("br"),t._v("\n 370 x 370 px minimum\n ")])],1),t._v(" "),t.hasCover?a("b-col",{staticClass:"coverimage"},[a("img",{attrs:{src:t.coverFileUrl}}),t._v(" "),a("b-button",{staticClass:"remove",attrs:{variant:"danger",size:"xs"},on:{click:t.removeCover}},[a("font-awesome-icon",{attrs:{icon:"times"}})],1)],1):t._e(),t._v(" "),a("b-col",[a("b-form-group",{attrs:{label:"Album Title",invalidFeedback:t.errorTitle,state:t.stateTitle}},[a("b-form-input",{attrs:{type:"text",required:"",placeholder:"Title of the album",state:t.stateTitle},model:{value:t.album.title,callback:function(e){t.$set(t.album,"title",e)},expression:"album.title"}})],1),t._v(" "),a("b-form-group",{staticClass:"short",attrs:{id:"yearGroup",label:"Release Date",invalidFeedback:t.errorReleaseDate,state:t.stateReleaseDate,"label-for":"year"}},[a("datepicker",{attrs:{id:"startDate","calendar-class":"release_date",format:"MM/dd/yyyy"},model:{value:t.releaseDate,callback:function(e){t.releaseDate=e},expression:"releaseDate"}})],1),t._v(" "),a("b-form-group",{attrs:{id:"visibilityGroup",label:"Visibility","label-for":"visibility",invali
1dFeedback:t.errorVisibility,state:t.stateVisibility}},[a("b-form-select",{attrs:{id:"visibility",options:t.albumVisibilities,state:t.stateVisibility},model:{value:t.album.visibility,callback:function(e){t.$set(t.album,"visibility",e)},expression:"album.visibility"}})],1),t._v(" "),a("b-form-group",{staticClass:"short",attrs:{id:"priceGroup",label:"Sale Price (USD)",description:"Free, or minimum $0.50",invalidFeedback:t.errorPrice,state:t.statePrice,"label-for":"price"}},[a("b-form-input",{attrs:{type:"text",required:"",placeholder:"Amount",state:t.statePrice},model:{value:t.album.price,callback:function(e){t.$set(t.album,"price",e)},expression:"album.price"}})],1),t._v(" "),a("b-form-checkbox",{attrs:{size:"sm"},model:{value:t.album.can_pay_more,callback:function(e){t.$set(t.album,"can_pay_more",e)},expression:"album.can_pay_more"}},[t._v("\n Let fans back you more, and they might pay a little extra\n ")])],1)],1),t._v(" "),a("b-row",{staticClass:"add-songs-headline"},[a("b-col",[a("h5",[t._v("Add songs to your album (audio files required for each video)")])])],1),t._v(" "),a("SongListEditor",{attrs:{canAdd:!0,canRemove:!0,canSort:!0,availableSongs:t.availableSongs},model:{value:t.songs,callback:function(e){t.songs=e},expression:"songs"}}),t._v(" "),a("b-row",{staticClass:"command-row bottom",attrs:{"align-v":"center"}},[a("b-col",[t.album.id?a("LinkButton",{directives:[{name:"b-modal",rawName:"v-b-modal.confirmDelete",modifiers:{confirmDelete:!0}}],attrs:{u:!0}},[t._v("Delete album")]):t._e(),t._v(" "),a("b-button",{staticClass:"btn-rainbow",on:{click:t.saveAlbum}},[t._v("Save")])],1)],1),t._v(" "),a("b-modal",{ref:"confirmDelete",attrs:{id:"confirmDelete",title:"Delete album",centered:""},on:{ok:t.deleteAlbum}},[a("div",{staticClass:"content"},[a("p",[t._v("\n Are you sure you want to delete this album?\n ")])])]),t._v(" "),a("b-modal",{ref:"songNotPublishedModal",attrs:{id:"songNotPublishedModal",title:"Error","ok-only":"true",centered:""}},[a("div",{staticClass:"content"},[a("p",[t._v('\n Unable to publish album. Each song must be made "public" individually before publishing.\n ')])])])],1)},staticRenderFns:[]};var Xi=a("VU/8")(Yi,Ki,!1,function(t){a("9y9B")},"data-v-6c2922a1",null).exports,Ji={name:"ArtistEditProfile",components:{ArtistEditProfileTabs:Ba,VueGoogleAutocomplete:Fa,Multiselect:Oi.a},data:function(){return{errors:{},genres:[],moods:[],genreOptions:ta,moodOptions:ea}},computed:c()({},Object(u.c)("artist",["artist","artistAvatar","artistHero"]),F(["name","email"])),created:function(){this.parseTags()},methods:c()({parseTags:function(){this.genres=[],this.moods=[];var t=!0,e=!1,a=void 0;try{for(var i,n=T()(this.artist.tags);!(t=(i=n.next()).done);t=!0){var s=i.value;-1!==ta.indexOf(s)&&this.genres.push(s),-1!==ea.indexOf(s)&&this.moods.push(s)}}catch(t){e=!0,a=t}finally{try{!t&&n.return&&n.return()}finally{if(e)throw a}}},save:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.artist.tags=t.genres.concat(t.moods),e.prev=1,e.next=4,t.$store.dispatch("artist/updateArtist");case 4:t.$store.dispatch("flash/showMessage",{message:"You've updated your artist profile"}),t.$router.push({name:"artist-dashboard"}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),t.$store.dispatch("flash/showMessage",{message:"Error updating artist profile",type:"error"}),e.t0.response&&e.t0.response.data&&(t.errors=R(e.t0.response.data));case 12:case"end":return e.stop()}},e,t,[[1,8]])}))()},cancel:function(){var t=this;this.$store.dispatch("artist/getCurrentArtist").then(function(){t.$router.push({name:"artist-dashboard"})})},selectAvatar:function(){this.$refs.avatarFileInput.click()},updateAvatar:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(1===(a=t.$refs.avatarFileInput).files.length){e.next=3;break}return e.abrupt("return");case 3:return t.showModal("Uploading image ..."),e.next=6,t.$store.dispatch("artist/setAvatar",{file:a.files[0]});case 6:t.hideModal();case 7:case"end":return e.stop()}},e,t)}))()},selectHero:function(){this.$refs.heroFileInput.click()},updateHero:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(1===(a=t.$refs.heroFileInput).files.length){e.next=3;break}return e.abrupt("return");case 3:return t.showModal("Uploading image ..."),e.next=6,t.$store.dispatch("artist/setHero",{file:a.files[0]});case 6:t.hideModal();case 7:case"end":return e.stop()}},e,t)}))()},onPlaceChanged:function(t,e,a){this.artist.location_lat=t.latitude,this.artist.location_lng=t.longitude,this.artist.location=e.formatted_address}},Object(u.b)("flash",["showModal","hideModal"]))},Qi={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("ArtistEditProfileTabs"),t._v(" "),a("b-row",[a("b-col",{staticClass:"hero"},[a("img",{staticClass:"hero",attrs:{src:t.artistHero}}),t._v(" "),a("h1",[t._v(t._s(t.artist.name))]),t._v(" "),a("div",{staticClass:"avatar"},[a("img",{staticClass:"avatar",attrs:{src:t.artistAvatar}}),t._v(" "),a("img",{staticClass:"avatar avatar-change-btn",attrs:{src:"/static/icons/change-picture.png"},on:{click:t.selectAvatar}}),t._v(" "),a("input",{ref:"avatarFileInput",attrs:{type:"file",id:"avatarFileInput"},on:{change:t.updateAvatar}})]),t._v(" "),a("b-button",{staticClass:"btn-secondary",on:{click:t.selectHero}},[t._v("change profile image")]),t._v(" "),a("input",{ref:"heroFileInput",attrs:{type:"file",id:"heroFileInput"},on:{change:t.updateHero}})],1)],1),t._v(" "),a("b-row",{staticClass:"my-1"},[a("b-col",{staticClass:"img-req",attrs:{cols:"12",md:"6"}},[t._v("\n Avatar image: .png, .jpg / 370 x 370 px minimum\n ")]),t._v(" "),a("b-col",{staticClass:"img-req text-right",attrs:{cols:"12",md:"6"}},[t._v("\n Profile image: .png, .jpg / 1140 x 480 px minimum\n ")])],1),t._v(" "),a("b-row",{staticClass:"mt-4"},[a("b-col",[a("b-form-group",{attrs:{id:"handleGroup",label:"Artist Handle","label-for":"handle",description:"Your artist handle (@artist), can't be changed"}},[a("b-form-input",{attrs:{id:"handle",type:"text",required:"",disabled:"",value:"@"+t.artist.handle}})],1)],1),t._v(" "),a("b-col",[a("b-form-group",{attrs:{id:"nameGroup",label:"Name","label-for":"name",invalidFeedback:t.errorName,state:t.stateName,description:"Your artist name"}},[a("b-form-input",{attrs:{id:"name",type:"text",required:"",placeholder:"Enter your artistic name",state:t.stateName},model:{value:t.artist.name,callback:function(e){t.$set(t.artist,"name",e)},expression:"artist.name"}}
1)],1)],1)],1),t._v(" "),a("b-row",[a("b-col",[a("b-form-group",{attrs:{id:"emailGroup",label:"Contact Email","label-for":"email",invalidFeedback:t.errorEmail,state:t.stateEmail,description:"Visible on receipts for those who make purchases or donations"}},[a("b-form-input",{attrs:{id:"name",type:"email",required:"",placeholder:"Enter your official contact e-mail address",state:t.stateEmail},model:{value:t.artist.email,callback:function(e){t.$set(t.artist,"email",e)},expression:"artist.email"}})],1)],1),t._v(" "),a("b-col",[a("b-form-group",{attrs:{id:"locationGroup",label:"Location","label-for":"location",description:"Your location"}},[a("vue-google-autocomplete",{attrs:{id:"location",classname:"form-control",placeholder:"Start typing",types:"(cities)",value:t.artist.location},on:{placechanged:t.onPlaceChanged}})],1)],1)],1),t._v(" "),a("b-row",[a("b-col",[a("b-form-group",{attrs:{id:"bioGroup",label:"Bio","label-for":"bio",description:"Tell us your story"}},[a("b-form-textarea",{attrs:{id:"bio",rows:5,"max-rows":10,required:"",placeholder:"Who are you?"},model:{value:t.artist.bio,callback:function(e){t.$set(t.artist,"bio",e)},expression:"artist.bio"}})],1)],1)],1),t._v(" "),a("b-row",[a("b-col",[a("b-form-group",{attrs:{label:"Genre (up to 3)"}},[a("multiselect",{attrs:{searchable:!1,multiple:!0,max:3,showNoResults:!1,options:t.genreOptions},model:{value:t.genres,callback:function(e){t.genres=e},expression:"genres"}},[a("template",{slot:"maxElements"},[t._v("\n Maximum of 3 options\n ")])],2)],1)],1),t._v(" "),a("b-col",[a("b-form-group",{attrs:{label:"Mood (up to 2)"}},[a("multiselect",{attrs:{searchable:!1,multiple:!0,max:2,showNoResults:!1,options:t.moodOptions},model:{value:t.moods,callback:function(e){t.moods=e},expression:"moods"}},[a("template",{slot:"maxElements"},[t._v("\n Maximum of 2 options\n ")])],2)],1)],1)],1),t._v(" "),a("b-row",{staticClass:"form-actions"},[a("b-col",[a("a",{staticClass:"cancel",attrs:{href:"#"},on:{click:t.cancel}},[t._v("cancel")]),t._v(" "),a("b-button",{staticClass:"btn-rainbow",on:{click:t.save}},[t._v("save information")])],1)],1)],1)},staticRenderFns:[]};var Zi=a("VU/8")(Ji,Qi,!1,function(t){a("iaL3")},"data-v-962c25b2",null).exports,tn={name:"Home",components:{ArtistEditProfileTabs:Ba},computed:c()({},Object(u.c)("artist",["hasPayoutMethod"]))},en={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("ArtistEditProfileTabs"),t._v(" "),a("b-row",[a("b-col",[a("h4",[t._v("Your payout method")])])],1),t._v(" "),a("b-row",[t.hasPayoutMethod?a("b-col",[t._v("\n Your account is connected to Stripe.\n For details, visit your "),a("a",{attrs:{href:"https://dashboard.stripe.com/"}},[t._v("Stripe dashboard")]),t._v(".\n ")]):a("b-col",[t._v("\n Payouts are not set up. Please\n "),a("router-link",{attrs:{to:{name:"artist-onboarding"}}},[t._v("connect with Stripe")]),t._v(" to continue.\n ")],1)],1)],1)},staticRenderFns:[]};var an=a("VU/8")(tn,en,!1,function(t){a("F3dy")},"data-v-7291e4b3",null).exports,nn={name:"Headline",props:{title:String}},sn={render:function(){var t=this.$createElement,e=this._self._c||t;return e("b-row",{staticClass:"headline"},[e("b-col",{staticClass:"title"},[this._v("\n "+this._s(this.title)+"\n ")]),this._v(" "),this.$slots.default?e("b-col",{staticClass:"d-flex align-items-center justify-content-end pr-0"},[this._t("default")],2):this._e()],1)},staticRenderFns:[]};var rn=a("VU/8")(nn,sn,!1,function(t){a("YkTQ")},"data-v-6d1a345b",null).exports,on={name:"AlbumList",components:{FontAwesomeIcon:g.a,ObjectListTabs:Ze,AlbumCard:yi,Pay:li,ArtistProfileTabs:ma,ProfileHero:xa,Headline:rn},data:function(){return{artist:null,albums:[]}},created:function(){this.fetchData()},computed:{isFanView:function(){return!!this.$route.params.artistId}},watch:{$route:"fetchData"},methods:{fetchData:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isFanView){e.next=6;break}return e.next=3,t.$store.dispatch("artist/getArtist",{id:t.$route.params.artistId});case 3:t.artist=e.sent,e.next=10;break;case 6:if(t.artist=t.$store.getters["artist/artist"],t.artist&&t.artist.id){e.next=10;break}return t.$router.push({name:"fan-home"}),e.abrupt("return");case 10:return e.next=12,t.$store.dispatch("song/listAlbums",{artist_id:t.artist.id,visibility:t.$route.params.visibility});case 12:return a=e.sent,e.next=15,a.all();case 15:t.albums=e.sent;case 16:case"end":return e.stop()}},e,t)}))()}}},ln={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;
1return a("b-container",{class:{"mt-0":t.isFanView}},[t.isFanView?t._e():a("Headline",{attrs:{title:"Albums"}}),t._v(" "),t.isFanView?t._e():a("ObjectListTabs",{scopedSlots:t._u([{key:"default",fn:function(e){return[a("b-nav-item",{attrs:{to:{name:"artist-album-list",params:{visibility:"public"}}}},[t._v("Albums")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"artist-album-list",params:{visibility:"draft"}}}},[t._v("Drafts")])]}},{key:"cmd",fn:function(e){return[a("b-button",{staticClass:"btn-rainbow",attrs:{to:{name:"artist-album-create"},size:"sm"}},[a("font-awesome-icon",{attrs:{icon:"plus"}}),t._v(" create album\n ")],1)]}},{key:"mobileCmd",fn:function(e){return[a("b-nav-item",{attrs:{to:{name:"artist-album-create"}}},[a("font-awesome-icon",{attrs:{icon:"plus"}}),t._v(" create album")],1)]}}])}),t._v(" "),t.isFanView&&t.artist?a("ProfileHero",{attrs:{artist:t.artist}}):t._e(),t._v(" "),t.isFanView&&t.artist?a("ArtistProfileTabs",{attrs:{artist:t.artist}}):t._e(),t._v(" "),t._l(t.albums,function(e){return a("b-row",{key:e.id,attrs:{"align-v":"center"}},[a("b-col",{staticClass:"col-12 col-lg-9 thumb py-2"},[a("AlbumCard",{attrs:{album:e,showArtist:t.isFanView}})],1),t._v(" "),t.isFanView&&e.songs.length?a("b-col",{staticClass:"fan-actions col col-12 col-lg-3 pb-4 pb-lg-0 text-right"},[t.isFanView?a("Pay",{attrs:{album:e}}):t._e(),t._v(" "),t.isFanView?a("b-button",{staticClass:"play-album",attrs:{variant:"secondary",to:{name:"album-detail",params:{id:e.id}}}},[a("font-awesome-icon",{attrs:{icon:"play"}}),a("span",{staticClass:"label"},[t._v("  play")])],1):t._e()],1):t._e(),t._v(" "),t.isFanView?t._e():a("b-col",{staticClass:"actions text-right",attrs:{cols:"3"}},[a("b-button",{staticStyle:{},attrs:{to:{name:"artist-album-edit",params:{id:e.id}},size:"sm"}},[a("font-awesome-icon",{attrs:{icon:"pencil-alt"}}),t._v("  edit\n ")],1)],1)],1)})],2)},staticRenderFns:[]};var cn=a("VU/8")(on,ln,!1,function(t){a("4mLx")},"data-v-2a2ec088",null).exports,un={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cookie-info"},[a("span",[t._t("default",[t._v("\n If you have trouble playing the stream, please ensure that your browser allows 3rd-party cookies.\n ")]),t._v(" "),a("a",{directives:[{name:"b-modal",rawName:"v-b-modal.cookieGuide",modifiers:{cookieGuide:!0}}],attrs:{href:"javascript:false;"}},[t._v("learn more")])],2),t._v(" "),a("b-modal",{ref:"cookieGuide",attrs:{id:"cookieGuide",title:"3rd-party cookies","ok-only":!0,centered:""}},[a("div",{staticClass:"content"},[a("p",[t._v("\n If you have trouble playing the video, please check that your browser allows 3rd-party cookies.\n ")]),t._v(" "),a("p",[a("strong",[t._v("Android")]),t._v(": go to "),a("em",[t._v("Settings â Site settings â Cookies")]),t._v(" in the\n Chrome menu and enable the "),a("em",[t._v("Allow third-party cookies")]),t._v(" option.\n ")]),t._v(" "),a("p",[a("strong",[t._v("iOS")]),t._v(": go to "),a("em",[t._v("Settings â Safari")]),t._v(" and disable "),a("em",[t._v("Prevent Cross-Site Tracking")]),t._v("\n and "),a("em",[t._v("Block All Cookies")]),t._v(" options.\n ")]),t._v(" "),a("p",[a("strong",[t._v("Desktop Chrome")]),t._v(": open "),a("em",[t._v("Settings/Preferences â Advanced â Content Settings\n â Cookies")]),t._v(" and disable the "),a("em",[t._v("Block third-party cookies")]),t._v(" option.\n ")]),t._v(" "),a("p",[a("strong",[t._v("Desktop Safari")]),t._v(": in "),a("em",[t._v("Safari â Preferences â Privacy")]),t._v(" disable the\n "),a("em",[t._v("Prevent cross-site tracking")]),t._v(" and "),a("em",[t._v("Block all cookies")]),t._v(" options.\n ")]),t._v(" "),a("p",[a("strong",[t._v("Microsoft Edge")]),t._v(": in "),a("em",[t._v("Settings â Advanced Settings")]),t._v(" set the "),a("em",[t._v("Cookies")]),t._v("\n option to "),a("em",[t._v("Don't block cookies")]),t._v(".\n ")])])])],1)},staticRenderFns:[]};var dn=a("VU/8")(null,un,!1,function(t){a("o75C")},"data-v-74ace470",null).exports,vn={name:"ManageLiveStream",components:{FontAwesomeIcon:g.a,Player:ti,CookieInfo:dn},data:function(){return{live:null,userToBan:null,isOnline:!1,viewers:[]}},computed:c()({when:function(){return this.live?xt(this.live.start).format("MMM Do [at] h:mm a"):""},streamConfig:function(){return this.live&&this.live.dacast_channel_details.config?this.live.dacast_channel_details.config:null}},Object(u.c)("profile",["currentUser"])),watch:{$route:"initPage"},created:function(){this.initPage()},methods:c()({initPage:function(){var t=this;return h()(v.a.mark(function e(){var a,i;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.$store.getters["artist/artist"],e.next=3,t.$store.dispatch("live/getOwnLiveEvent",{id:t.$route.params.id});case 3:if((i=e.sent).artist.id===a.id){e.next=7;break}return t.$router.push({name:"artist-dashboard"}),e.abrupt("return");case 7:t.live=i;case 8:case"end":return e.stop()}},e,t)}))()},stop:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.showModal("Stopping live stream ..."),e.prev=1,e.next=4,t.$store.dispatch("live/stopLiveEvent",{id:t.$route.params.id});case 4:e.next=11;break;case 6:return e.prev=6,e.t0=e.catch(1),t.$store.dispatch("flash/showMessage",{message:"Error stopping live stream",type:"error"}),t.hideModal(),e.abrupt("return");case 11:return e.next=13,t.$store.dispatch("live/getOwnLiveEvent",{id:t.$route.params.id});case 13:t.live=e.sent,t.hideModal(),t.$refs.stoppedMessage.show();case 16:case"end":return e.stop()}},e,t,[[1,6]])}))()},start:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.showModal("Starting live stream ..."),e.prev=1,e.next=4,t.$store.dispatch("live/startLiveEvent",{id:t.$route.params.id});case 4:e.next=11;break;case 6:return e.prev=6,e.t0=e.catch(1),t.$store.dispatch("flash/showMessage",{message:"Error starting live stream",type:"error"}),t.hideModal(),e.abrupt("return");case 11:return e.next=13,t.$store.dispatch("live/getOwnLiveEvent",{id:t.$route.params.id});case 13:t.live=e.sent,t.hideModal(),t.$store.dispatch("flash/showMessage",{message:"Live stream started"});case 16:case"end":return e.stop()}},e,t,[[1,6]])}))()},banUser:function(t){this.userToBan=t,this.$refs.banModal.show()},confirmBanUser:function(){if(this.live&&this.userToBan){var t=this.userToBan;this.userToBan=null,this.$store.dispatch("live/blockUser",{eventId:this.live.id,profileId:t.id})}}},$,Object(u.b)("flash",["showModal","hideModal"]))},pn={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("b-row",{staticClass:"headline",attrs:{"align-v":"center"}},[t.live?a("b-col",[a("h4",[t._v(t._s(t.live.title))]),t._v(" "),a("small",[a("font-awesome-icon",{attrs:{icon:"calendar-alt"}}),t._v("  "+t._s(t.when)+"\n "),t.live.is_live?a("span",[t._v("\n  â  \n "),a("font-awesome-icon",{attrs:{icon:"eye"}}),t._v(" "+t._s(t.viewers.length)+" watching live\n ")],1):t.live.is_cancelled?a("span",{staticClass:"cancelled"},[t._v("\n  â  \n cancelled\n ")]):t.live.has_ended?a("span",[t._v("\n  â  \n ended\n ")]):t._e()],1)]):t._e(),t._v(" "),a("b-col",{staticClass:"text-right",attrs:{cols:"6"}},[t.live&&t.live.is_live?a("b-button",{directives:[{name:"b-modal",rawName:"v-b-modal.stopModal",modifiers:{stopModal:!0}}],attrs:{variant:"secondary",size:"sm"}},[t._v("\n End live stream\n ")]):t._e(),t._v(" "),!t.live||t.live.is_live||t.live.is_cancelled?t._e():a("b-button",{attrs:{variant:"secondary",size:"sm"},on:{click:t.start}},[t._v("\n Start live stream\n ")]),t._v(" "),t.live?a("b-button",{attrs:{variant:"secondary",size:"sm",to:{name:"artist-live-stream-edit",params:{id:t.live.id}}}},[t._v("\n Edit\n ")]):t._e()],1)],1),t._v(" "),a("b-row",[a("b-col",{staticClass:"player-col"},[t.live?a("Player",{attrs:{live:t.live,pageUrl:t.$route.fullPath,canBan:!0,autoplay:!0},on:{members:function(e){t.viewers=e},ban:t.banUser,online:function(e){t.isOnline=e}}}):t._e()],1)],1),t._v(" "),t.live&&"disabled"!=t.live.chat_type&&!t.isOnline?a("b-row",{staticClass:"my-2"},[a("b-col",[a("CookieInfo",[t._v("\n If you have trouble playing the stream, we recommend using Chrome as your browser.\n Please also ensure that your browser allows 3rd-Party cookies.\n ")])],1)],1):t._e(),t._v(" "),t.streamConfig?a("b-row",{staticClass:"mt-4"},[a("b-col",[a("h4",[t._v("Encoder information")])])],1):t._e(),t._v(" "),t.streamConfig?a("b-row",{staticClass:"encoder-info"},[a("b-col",[a("p",[t._v("\n Use this information to set up your video encoder ("),a("router-link",{attrs:{to:{name:"site-streaming-guide"},target:"_blank"}},[t._v("detailed guide")]),t._v("):\n ")],1),t._v(" "),a("b-form-group",{attrs:{label:"Publish URL",horizontal:""}},[a("b-form-input",{attrs:{type:"text",readonly:"",value:t.streamConfig.publishing_point_primary}}
1)],1),t._v(" "),a("b-form-group",{attrs:{label:"Stream Name (Key)",horizontal:""}},[a("b-form-input",{attrs:{type:"text",readonly:"",value:t.streamConfig.stream_name}})],1),t._v(" "),a("b-form-group",{attrs:{label:"Username",horizontal:""}},[a("b-form-input",{attrs:{type:"text",readonly:"",value:t.streamConfig.login}})],1),t._v(" "),a("b-form-group",{attrs:{label:"Password",horizontal:""}},[a("b-form-input",{attrs:{type:"text",readonly:"",value:t.streamConfig.password}})],1)],1)],1):t._e(),t._v(" "),a("b-modal",{ref:"stopModal",attrs:{id:"stopModal",title:"End Live Stream",centered:""},on:{ok:t.stop}},[a("div",{staticClass:"content"},[t._v("\n This live stream cannot be restarted. Are you sure you want to end this live stream?\n ")])]),t._v(" "),a("b-modal",{ref:"stoppedMessage",attrs:{id:"stoppedMessage",title:"Stop Live Stream","ok-only":!0,centered:""}},[a("div",{staticClass:"content"},[a("p",[t._v("\n Live stream stopped.\n ")]),t._v(" "),a("p",[t._v("\n Make sure you also stop your video encoder.\n ")])])]),t._v(" "),a("b-modal",{ref:"banModal",attrs:{id:"banModal",title:"Block user",centered:""},on:{ok:t.confirmBanUser}},[t.userToBan?a("div",{staticClass:"content"},[t._v("\n Block "+t._s(t.displayName(t.userToBan))+"?\n ")]):t._e()])],1)},staticRenderFns:[]};var hn=a("VU/8")(vn,pn,!1,function(t){a("fBku")},"data-v-9e682f98",null).exports,mn={name:"EventCard",components:{FontAwesomeIcon:g.a},props:{live:Object,to:Object,canRemove:Boolean,withWatchlistButton:Boolean},computed:c()({when:function(){return xt(this.live.start).format("MMM Do | h:mm a")},ticketCount:function(){return this.live.ticket_count||0},cardStyle:function(){return{"background-image":"linear-gradient(to bottom, rgba(0,0,0,0), #1c1c30), url('"+this.live.promo_image+"')"}},amWatching:function(){return!!this.live&&si()(this.currentUser.watchlist,{id:this.live.id})},formatPrice:function(){if(!this.live)return"";if(this.hasBooked)return"booked";if(0===this.live.price)return"free";if(null===this.live.price)return"$";var t=this.live.price.toFixed(2),e=t.match(/(.+)\.00$/);return e&&(t=e[1]),"$"+t}},Object(u.c)("auth",["isLoggedIn"]),Object(u.c)("profile",["currentUser"])),methods:{gotoLink:function(){var t=this.to?this.to:{name:"artist-live-stream-detail",params:{artistId:this.live.artist.id,liveId:this.live.id}};this.$router.push(t)},addToWatchlist:function(t){var e=this;return h()(v.a.mark(function a(){return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t.stopPropagation(),t.preventDefault(),a.prev=2,a.next=5,e.$store.dispatch("live/addToWatchlist",{id:e.live.id});case 5:e.live.ticket_count++,e.$store.dispatch("flash/showMessage",{message:"Live stream added to watchlist"}),a.next=12;break;case 9:a.prev=9,a.t0=a.catch(2),e.$store.dispatch("flash/showMessage",{message:"This live event has passed",type:"error"});case 12:case"end":return a.stop()}},a,e,[[2,9]])}))()},removeFromWatchlist:function(t){var e=this;return h()(v.a.mark(function a(){return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t.stopPropagation(),t.preventDefault(),a.next=4,e.$store.dispatch("live/removeFromWatchlist",{id:e.live.id});case 4:e.$store.dispatch("flash/showMessage",{message:"Live stream removed from watchlist"}),e.$emit("remove");case 6:case"end":return a.stop()}},a,e)}))()}}},fn={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"event-card",on:{click:t.gotoLink}},[a("div",{staticClass:"thumb",style:t.cardStyle},[t._m(0)]),t._v(" "),a("div",{staticClass:"info"},[a("div",{staticClass:"title"},[t.live.price?a("div",{staticClass:"price"},[t._v("\n "+t._s(t.formatPrice)+"\n ")]):a("div",{staticClass:"price free"},[t._v("\n "+t._s(t.formatPrice)+"\n ")]),t._v(" "),a("div",{staticClass:"when"},[t._v("\n "+t._s(t.when)+"\n ")])]),t._v(" "),t.to?a("div",{staticClass:"who"},[a("router-link",{ref:"link",attrs:{to:t.to}},[t._v(t._s(t.live.title))])],1):a("div",{staticClass:"who"},[t._v("\n "+t._s(t.live.title)+"\n ")]),t._v(" "),a("small",{staticClass:"who"},[a("router-link",{attrs:{to:{name:"artist-about",params:{artistId:t.live.artist.id}}}},[t._v(t._s(t.live.artist.name))])],1)]),t._v(" "),t.isLoggedIn&&t.withWatchlistButton&&!t.amWatching?a("b-button",{staticClass:"btn-rainbow",attrs:{size:"sm"},on:{click:t.addToWatchlist}},[a("font-awesome-icon",{attrs:{icon:"plus"}}),t._v(" "),a("span",{staticClass:"label"},[t._v("Â watchlist")])],1):t._e(),t._v(" "),t.isLoggedIn&&t.withWatchlistButton&&t.amWatching?a("b-button",{staticClass:"remove-from-watchlist",attrs:{size:"sm"},on:{click:t.removeFromWatchlist}},[a("font-awesome-icon",{attrs:{icon:"times"}}),t._v(" "),a("span",{staticClass:"label"},[t._v("Â remove from watchlist")])],1):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"live"},[e("i",{staticClass:"sl-icon-camrecorder"})])}]};var bn=a("VU/8")(mn,fn,!1,function(t){a("7eoP")},"data-v-32aad1f7",null).exports,gn={name:"LiveStreamList",components:{FontAwesomeIcon:g.a,ObjectListTabs:Ze,EventCard:bn,ArtistProfileTabs:ma,ProfileHero:xa,Headline:rn},data:function(){return{artist:null,liveEvents:[]}},computed:{isFanView:function(){return!!this.$route.params.artistId}},created:function(){this.fetchData()},watch:{$route:"fetchData"},methods:{fetchData:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.$route.params.artistId){e.next=9;break}return e.next=3,t.$store.dispatch("artist/getArtist",{id:t.$route.params.artistId});case 3:return t.artist=e.sent,e.next=6,t.$store.dispatch("live/listLiveEvents",{artist_id:t.artist.id});case 6:t.liveEvents=e.sent.results,e.next=13;break;case 9:return t.artist=t.$store.getters["artist/artist"],e.next=12,t.$store.dispatch("live/listOwnLiveEvents",{visibility:t.$route.params.visibility});case 12:t.liveEvents=e.sent.results;case 13:case"end":return e.stop()}},e,t)}))()},getEventRoute:function(t){return this.isFanView?{name:"artist-live-stream-detail",params:{artistId:this.$route.params.artistId,liveId:t.id}}:t.has_ended?{name:"artist-live-stream-edit",params:{id:t.id}}:{name:"artist-live-stream",params:{id:t.id}}}}},_n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;
1return a("b-container",{class:{"mt-0":t.isFanView}},[t.isFanView?t._e():a("Headline",{attrs:{title:"Live Streams"}}),t._v(" "),t.isFanView?t._e():a("ObjectListTabs",{scopedSlots:t._u([{key:"default",fn:function(e){return[a("b-nav-item",{attrs:{to:{name:"artist-my-live-stream-list",params:{visibility:"public"}}}},[t._v("Public Events")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"artist-my-live-stream-list",params:{visibility:"private"}}}},[t._v("Private Events")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"artist-my-live-stream-list",params:{visibility:"draft"}}}},[t._v("Drafts")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"artist-my-live-stream-list",params:{visibility:"past"}}}},[t._v("Past/Cancelled Live Streams")])]}},{key:"cmd",fn:function(e){return[a("b-button",{staticClass:"btn-rainbow",attrs:{to:{name:"artist-live-stream-create"},size:"sm"}},[a("font-awesome-icon",{attrs:{icon:"plus"}}),t._v(" create live stream\n ")],1)]}},{key:"mobileCmd",fn:function(e){return[a("b-nav-item",{attrs:{to:{name:"artist-live-stream-create"}}},[a("font-awesome-icon",{attrs:{icon:"plus"}}),t._v(" create live stream")],1)]}}])}),t._v(" "),t.isFanView&&t.artist?a("ProfileHero",{attrs:{artist:t.artist}}):t._e(),t._v(" "),t.isFanView&&t.artist?a("ArtistProfileTabs",{attrs:{artist:t.artist}}):t._e(),t._v(" "),a("div",{staticClass:"future"},t._l(t.liveEvents,function(e){return a("EventCard",{key:e.id,attrs:{live:e,withWatchlistButton:t.isFanView,to:t.getEventRoute(e)}})}))],1)},staticRenderFns:[]};var yn=a("VU/8")(gn,_n,!1,function(t){a("xUjp")},"data-v-f38edd14",null).exports,wn=(a("GKiY"),{name:"LiveInfo",components:{FontAwesomeIcon:g.a,Pay:li,Share:di,LinkButton:x,Donate:wa},props:{live:Object,attending:Boolean},data:function(){return{ticket:null}},computed:c()({artist:function(){return this.live?this.live.artist:{}},liveStartsIn:function(){return xt(this.live.start).fromNow()},likeClass:function(){var t=["like"];return this.live&&this.live.rated_by_user&&t.push("already-liked"),this.isLoggedIn||t.push("disabled"),t}},Object(u.c)("auth",["isLoggedIn"])),methods:{like:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.live){e.next=2;break}return e.abrupt("return");case 2:if(!t.live.rated_by_user){e.next=9;break}return e.next=5,t.$store.dispatch("live/unlikeLiveEvent",{id:t.live.id});case 5:t.live.rated_by_user=!1,t.live.rate_count--,e.next=13;break;case 9:return e.next=11,t.$store.dispatch("live/likeLiveEvent",{id:t.live.id});case 11:t.live.rated_by_user=!0,t.live.rate_count++;case 13:case"end":return e.stop()}},e,t)}))()}}}),Cn={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.live?a("b-row",{staticClass:"live-info"},[a("b-col",{staticClass:"col-12 col-lg-7"},[a("div",{staticClass:"d-flex"},[a("div",[a("router-link",{attrs:{to:{name:"artist-about",params:{artistId:this.artist.id}}}},[a("img",{staticClass:"artist-avatar",attrs:{src:t.artist.avatar_image}})])],1),t._v(" "),a("div",[a("h4",[t._v(t._s(t.live.title))]),t._v(" "),a("small",[t._v("\n By\n "),a("router-link",{attrs:{to:{name:"artist-about",params:{artistId:this.artist.id}}}},[t._v(t._s(t.artist.name))]),t._v("\n "+t._s(t.liveStartsIn)+"\n ")],1)])])]),t._v(" "),a("b-col",{staticClass:"col-12 col-lg-5 text-right"},[a("span",{staticClass:"viewed"},[a("font-awesome-icon",{attrs:{icon:"eye"}}),t._v(" "+t._s(t.live.viewer_count))],1),t._v(" "),a("span",{class:t.likeClass},[a("font-awesome-icon",{attrs:{icon:"heart"},on:{click:t.like}}),t._v(" "+t._s(t.live.rate_count))],1),t._v(" "),a("span",{staticClass:"comments"},[a("font-awesome-icon",{attrs:{icon:"comment"}}),t._v(" "+t._s(t.live.comment_count))],1),t._v(" "),a("div",{staticClass:"actions"},[t.isLoggedIn?a("LinkButton",{attrs:{id:"btnShareStream"+t.live.id}},[a("font-awesome-icon",{attrs:{icon:"share"}}),t._v("Share\n ")],1):t._e(),t._v(" "),t.isLoggedIn?a("Share",{attrs:{target:"btnShareStream"+t.live.id}}):t._e(),t._v(" "),t.isLoggedIn?t._e():a("router-link",{staticClass:"white-link",attrs:{to:{name:"account-login",query:{next:t.$route.fullPath}}}},[a("font-awesome-icon",{attrs:{icon:"share"}}),t._v("Share\n ")],1),t._v(" "),t.attending?t._e():a("Pay",{attrs:{live:t.live},on:{ticket:function(e){t.$emit("ticket",e)},join:function(e){t.$emit("join",e)}}}),t._v(" "),t.attending?a("b-button",{staticClass:"btn-rainbow",attrs:{id:"liveDonate"}},[a("img",{attrs:{src:"/static/icons/donate.svg"}}),t._v("\n Donate\n ")]):t._e(),t._v(" "),t.attending?a("Donate",{attrs:{live:t.live,artist:t.live.artist,target:"liveDonate"}}):t._e()],1)])],1):t._e()},staticRenderFns:[]};var kn=a("VU/8")(wn,Cn,!1,function(t){a("BdiN")},"data-v-219e5818",null).exports,xn={name:"LiveStream",components:{FontAwesomeIcon:g.a,Player:ti,ArtistProfileTabs:ma,ProfileHero:xa,LiveInfo:kn,Comments:za,CookieInfo:dn},data:function(){return{artist:null,live:null,ticket:null,isOnline:!1,refreshId:null}},computed:c()({endAt:function(){return this.live?xt(this.live.start).add(this.live.duration,"s"):xt()},startAt:function(){return this.live?xt(this.live.start):xt()},liveStartFromNowText:function(){var t=this.startAt.fromNow();return["just now","in a few seconds"].includes(t)?"in less than 30 seconds":"in a minute"===t?"in about a minute":t},aboutToStart:function(){return!!this.live&&this.startAt.subtract(60,"s").isBefore()},started:function(){return this.startAt.isBefore()&&this.live&&this.live.is_live},ended:function(){return(!this.live||!this.live.is_live)&&this.endAt.isBefore()},when:function(){return this.live?xt(this.live.start).format("MMMM Do [at] h:mm a"):""},formatDuration:function(){return this.live?xt(this.live.start).preciseDiff(this.endAt).replace(/ \d+ seconds?/,""):""},preciseFromNow:function(){return this.live?xt().preciseDiff(this.live.start).replace(/ \d+ seconds?/,""):""},amWatching:function(){return!!this.live&&-1!==C()(this.currentUser.watchlist,"id").indexOf(this.live.id)},formatPrice:function(){return this.live?this.ticket?this.ticket.is_invited?"invited":"booked":0===this.live.price?"free":null===this.live.price?"$":"$"+this.live.price.toFixed(2):""},amAttending:function(){return this.live&&this.live.is_live&&!!this.live.dacast_content_id}},Object(u.c)("profile",["currentUser"]),Object(u.c)("auth",["isLoggedIn"])),watch:{$route:"initPage"},created:function(){this.initPage()},beforeDestroy:function(){this.refreshId&&window.clearInterval(this.refreshId)},methods:{initPage:function(){var t=this;return h()(v.a.mark(function e(){var a,i,n,s;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.$store.getters.miniPlayer){e.next=6;break}if(!(a=t.$store.getters.miniPlayer.getCurrentLive())||a.id!==parseInt(t.$route.params.liveId)){e.next=6;break}return t.artist=a.artist,t.live=a,e.abrupt("return");case 6:return i=t.$store.dispatch("artist/getArtist",{id:t.$route.params.artistId}),n=t.$store.dispatch("live/getLiveEvent",{id:t.$route.params.liveId}),e.prev=8,e.next=11,i;case 11:return t.artist=e.sent,e.next=14,n;case 14:t.live=e.sent,e.next=24;break;case 17:return e.prev=17,e.t0=e.catch(8),s="Error getting live stream information",e.t0.response&&404===e.t0.response.status&&(s="The live stream no longer exists"),t.$store.dispatch("flash/showMessage",{message:s,type:"error"}),t.$router.replace({name:"discover"}),e.abrupt("return");case 24:t.live.artist.id!==t.artist.id&&t.$router.push({name:"artist-live-stream-list",params:{artistId:t.$route.params.artistId}}),t.ended||t.started||(t.refreshId&&window.clearInterval(t.refreshId),t.refreshId=window.setInterval(t.refresh,5e3));case 26:case"end":return e.stop()}},e,t,[[8,17]])}))()},refresh:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.live){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.$store.dispatch("live/getLiveEvent",{id:t.$route.params.liveId});case 4:t.live=e.sent,(t.ended||t.started)&&(window.clearInterval(t.refreshId),t.refreshId=null);case 6:case"end":return e.stop()}},e,t)}))()},addToWatchlist:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("live/addToWatchlist",{id:t.$route.params.liveId});case 2:t.$store.dispatch("flash/showMessage",{message:"Live stream added to watchlist"});case 3:case"end":return e.stop()}},e,t)}))()},removeFromWatchlist:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("live/removeFromWatchlist",{id:t.$route.params.liveId});case 2:t.$store.dispatch("flash/showMessage",{message:"Live stream removed from watchlist"});case 3:case"end":return e.stop()}},e,t)}))()},attend:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.live&&t.ticket){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,t.$store.dispatch("live/attendLiveEvent",{id:t.live.id});case 5:t.live=e.sent,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),t.$store.dispatch("flash/showMessage",{type:"error",message:"Can't join live stream"});case 11:case"end":return e.stop()}},e,t,[[2,8]])}))()},gotBanned:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.$store.dispatch("flash/showMessage",{type:"error",message:"You have been blocked from this live stream"}),t.$router.push({name:"artist-live-stream-list",params:{artistId:t.$route.params.artistId}});case 2:case"end":return e.stop()}},e,t)}))()},onEnd:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.$store.dispatch("flash/showMessage",{message:"The live stream has ended"}),t.$router.push({name:"artist-live-stream-list",params:{artistId:t.$route.params.artistId}});case 2:case"end":return e.stop()}},e,t)}))()},onStreamCancelled:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.$store.dispatch("flash/showMessage",{message:"The live stream has been cancelled"}),t.$router.push({name:"artist-live-stream-list",params:{artistId:t.$route.params.artistId}});case 2:case"end":return e.stop()}},e,t)}))()},updateLiveViewers:function(t){var e=t?t.length:0;this.$set(this.live,"viewer_count",e)},formatText:Xe}},An={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[t.artist?a("ProfileHero",{attrs:{artist:t.artist}}):t._e(),t._v(" "),t.artist?a("ArtistProfileTabs",{attrs:{artist:t.artist}}):t._e(),t._v(" "),t.live?a("b-row",{staticClass:"mb-4"},[a("b-col",{staticClass:"text-center"},[a("font-awesome-icon",{attrs:{icon:"calendar-alt"}}),t._v(" Â "+t._s(t.when)+" "),a("br"),t._v("\n Duration â "+t._s(t.formatDuration)+"\n ")],1)],1):t._e(),t._v(" "),t.live&&t.amAttending?a("b-row",[a("b-col",{staticClass:"player-col"},[a("Player",{attrs:{live:t.live,pageUrl:t.$route.fullPath,autoplay:!0},on:{gotBanned:t.gotBanned,liveStreamCancelled:t.onStreamCancelled,online:function(e){t.isOnline=e},liveStreamEnd:t.onEnd,members:t.updateLiveViewers}})],1)],1):t._e(),t._v(" "),t.live&&!t.amAttending?a("b-row",{staticClass:"upcoming"},[a("b-col",[a("div",{staticClass:"promo"},[a("img",{attrs:{src:t.live.promo_image}}),t._v(" "),a("div",{staticClass:"info"},[a("div",{staticClass:"inforow"},[t.live?a("img",{attrs:{src:t.live.promo_image}}):t._e(),t._v(" "),a("div",{staticClass:"infocol"},[t.ended?a("div",{staticClass:"start"},[t._v("\n This live stream was live "+t._s(t.endAt.fromNow())+"\n ")]):t.started?a("div",{staticClass:"start"},[t._v("\n This live stream is live now\n ")]):t.aboutToStart?a("div",{staticClass:"start"},[t._v("\n This live stream is about to start\n ")]):a("div",{staticClass:"start"},[t._v("\n This live stream starts "+t._s(t.liveStartFromNowText)+"\n ")]),t._v(" "),a("h4",[t._v(t._s(t.live.title))]),t._v(" "),a("div",{staticClass:"where"},[a("i",{staticClass:"sl-icon-location-pin"}),t._v(" "+t._s(t.live.location)+"\n ")]),t._v(" "),a("div",{staticClass:"act"},[a("div",{staticClass:"price"},[t._v("\n "+t._s(t.formatPrice)+"\n ")]),t._v(" "),t.isLoggedIn?a("div",{staticClass:"watchlist"},[t.ticket||t.amWatching||t.aboutToStart?t._e():a("b-button",{staticClass:"btn-rainbow",on:{click:t.addToWatchlist}},[a("font-awesome-icon",{attrs:{icon:"plus"}}),t._v(" Â watchlist\n ")],1),t._v(" "),t.ticket||!t.amWatching||t.aboutToStart?t._e():a("b-button",{staticClass:"btn-danger",on:{click:t.removeFromWatchlist}},[a("font-awesome-icon",{attrs:{icon:"minus"}}),t._v(" Â remove from watchlist\n ")],1),t._v(" "),t.started&&t.ticket?a("b-button",{staticClass:"btn-rainbow",on:{click:t.attend}},[t._v("\n join live stream\n ")]):t._e()],1):a("div",{staticClass:"watchlist"},[a("b-button",{staticClass:"btn-rainbow",attrs:{to:{name:"account-login",query:{next:t.$route.fullPath}}}},[t._v("\n log in to watch\n ")])],1)])])])])])])],1
1):t._e(),t._v(" "),t.live&&"disabled"!=t.live.chat_type&&!t.isOnline?a("b-row",{staticClass:"my-2"},[a("b-col",[a("CookieInfo",[t._v("\n If you have trouble playing the stream, we recommend using Chrome as your browser.\n Please also ensure that your browser allows 3rd-Party cookies.\n ")])],1)],1):t._e(),t._v(" "),t.live?a("LiveInfo",{attrs:{live:t.live,attending:t.amAttending},on:{ticket:function(e){t.ticket=e},join:t.attend}}):t._e(),t._v(" "),t.live?a("b-row",{staticClass:"mb-4"},[a("b-col",{domProps:{innerHTML:t._s(t.formatText(t.live.description))}})],1):t._e(),t._v(" "),t.live?a("Comments",{attrs:{live:t.live}}):t._e()],1)},staticRenderFns:[]};var Sn=a("VU/8")(xn,An,!1,function(t){a("jE7u")},"data-v-0deac033",null).exports,In={name:"SendMessage",components:{ArtistProfileTabs:ma,ProfileHero:xa},data:function(){return{artist:{},message:"",sendAsArtist:!1}},computed:c()({sendOptions:function(){return[{value:!1,text:"Fan (@"+this.currentUser.username+")"},{value:!0,text:"Artist (@"+this.$store.getters["artist/artist"].handle+")"}]}},Object(u.c)("profile",["currentUser","isArtist"])),watch:{$route:"initPage"},created:function(){this.initPage()},methods:{initPage:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.currentArtist||t.$route.params.artistId!==t.currentArtist.id){e.next=3;break}return t.$router.push({name:"artist-messages"}),e.abrupt("return");case 3:return e.next=5,t.$store.dispatch("artist/getArtist",{id:t.$route.params.artistId});case 5:t.artist=e.sent;case 6:case"end":return e.stop()}},e,t)}))()},send:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("profile/sendMessage",{peerId:t.artist.inbox,text:t.message,sendAsArtist:t.sendAsArtist});case 2:t.$store.dispatch("flash/showMessage",{message:"Message sent"}),t.$router.push({name:"fan-messages"});case 4:case"end":return e.stop()}},e,t)}))()}}},Pn={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("ProfileHero",{attrs:{artist:t.artist}}),t._v(" "),a("ArtistProfileTabs",{attrs:{artist:t.artist}}),t._v(" "),a("b-row",[a("b-col",[a("b-form-group",{attrs:{label:"Send Message"}},[a("b-form-textarea",{attrs:{rows:5,"max-rows":10,required:""},model:{value:t.message,callback:function(e){t.message=e},expression:"message"}})],1)],1)],1),t._v(" "),a("b-row",[t.isArtist?a("b-col",[a("b-form-group",{attrs:{horizontal:"",label:"Send as"}},[a("b-form-select",{attrs:{id:"visibility",options:t.sendOptions},model:{value:t.sendAsArtist,callback:function(e){t.sendAsArtist=e},expression:"sendAsArtist"}})],1)],1):t._e(),t._v(" "),a("b-col",{staticClass:"text-right"},[a("b-button",{staticClass:"btn-rainbow",attrs:{disabled:!t.message},on:{click:t.send}},[t._v("Send")])],1)],1)],1)},staticRenderFns:[]};var Tn=a("VU/8")(In,Pn,!1,function(t){a("8Fbw")},"data-v-c5a7bce4",null).exports,En={name:"VideoDetail",components:{FontAwesomeIcon:g.a,Player:ti,VideoInfo:bi,Comments:za,UserList:hi},data:function(){return{video:null,related:[]}},computed:c()({isMyVideo:function(){return this.currentUser.artist_id&&this.video.artist.id===this.artist.id}},Object(u.c)("profile",["currentUser"]),Object(u.c)("artist",["artist"])),created:function(){this.fetchData()},watch:{$route:"fetchData",video:"updateRoute"},methods:c()({fetchData:function(){var t=this;return h()(v.a.mark(function e(){var a,i,n,s,r;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.$route.params,i=t.$route.query.related,!t.video||t.video.id!==+a.id){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,e.next=7,t.$store.dispatch("song/getSong",{id:a.id});case 7:t.video=e.sent,e.next=17;break;case 10:return e.prev=10,e.t0=e.catch(4),n="Error getting video information",e.t0.response&&404===e.t0.response.status&&(n="Video no longer exists"),t.$store.dispatch("flash/showMessage",{message:n,type:"error"}),t.$router.replace({name:"discover"}),e.abrupt("return");case 17:return s=i?{related:i}:{artist:t.video.artist.id},e.next=20,t.$store.dispatch("song/listSongs",s);case 20:if(r=e.sent,!i){e.next=27;break}return e.next=24,r.all();case 24:e.t1=e.sent,e.next=28;break;case 27:e.t1=r.results;case 28:t.related=e.t1;case 29:case"end":return e.stop()}},e,t,[[4,10]])}))()},updateRoute:function(){var t=this.$route;this.video&&this.video.id!==+t.params.id&&this.$router.push({name:t.name,meta:t.meta,params:{id:this.video.id},query:t.query})}},O,$)},Ln={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[t.video?a("b-row",{staticClass:"headline",attrs:{"align-v":"center"}}
1,[a("b-col",[a("h4",[t._v(t._s(t.video.title))])])],1):t._e(),t._v(" "),t.video?a("b-row",[a("b-col",{staticClass:"player-col"},[a("Player",{attrs:{videos:t.related,autoplay:!0,pageUrl:t.$route.fullPath},model:{value:t.video,callback:function(e){t.video=e},expression:"video"}})],1)],1):t._e(),t._v(" "),t.video?a("VideoInfo",{attrs:{video:t.video,expandComments:!0}}):t._e()],1)},staticRenderFns:[]};var $n=a("VU/8")(En,Ln,!1,function(t){a("CNER")},"data-v-66b5fc9a",null).exports,On={name:"EditVideo",components:{FontAwesomeIcon:g.a,Multiselect:Oi.a,LinkButton:x,UserList:hi,ObjectListTabs:Ze},data:function(){return{errors:{},genres:ta,moods:ea,instruments:aa,contributors:[],contributorDropdownVisible:!1,contributorHandle:"",contributorRole:"",videoTypes:Ce,videoVisibilities:ye,videoFile:null,videoError:null,audioFile:null,removedPublishedVideoFile:!1,removedPublishedAudioFile:!1,dacastPlayer:null,uploadProgress:null,publishWithoutAudio:!1,wasPublished:!1,video:{video_visibility:"draft",genres:[],moods:[],instruments:[],contributors:{}}}},computed:c()({hasVideo:function(){return this.videoFile||this.video.dacast_content_id},hasProcessedVideo:function(){return!!this.video.dacast_content_id},hasAudio:function(){return this.audioFile||this.video.audio_track},videoFileUrl:function(){return this.videoFile?URL.createObjectURL(this.videoFile):null},audioFileUrl:function(){return this.video.audio_track?this.video.audio_track:this.audioFile?URL.createObjectURL(this.audioFile):null},cancelLink:function(){return this.video&&this.video.id?{name:"artist-video-list",params:{visibility:this.video.video_visibility}}:{name:"artist-video-list",params:{visibility:"draft"}}},canRemoveAudio:function(){return!this.video.is_purchased&&!this.video.in_album}},F(["title","track_price","video_visibility"])),created:function(){this.initPage()},mounted:function(){i.a.nextTick(this.initDacastPlayer)},beforeDestroy:function(){if(this.dacastPlayer){try{this.dacastPlayer.dispose()}catch(t){}this.dacastPlayer=null}},watch:{$route:"initPage"},methods:c()({initPage:function(){var t=this;if(this.dacastPlayer){try{this.dacastPlayer.dispose()}catch(t){}this.dacastPlayer=null}var e=this.$store.getters["artist/artist"];e&&e.id?this.$route.params.id&&this.$store.dispatch("song/getOwnSong",{id:this.$route.params.id}).then(function(a){a.artist.id===e.id?(t.parseVideo(a),t.wasPublished="draft"!==a.video_visibility,t.video.is_uploading&&setTimeout(t.checkVideoStatus,5e3),i.a.nextTick(t.initDacastPlayer)):t.$router.push({name:"artist-dashboard"})}):this.$router.push({name:"artist-dashboard"})},parseVideo:function(t){t.genres=[],t.moods=[],t.instruments=[];var e=!0,a=!1,i=void 0;try{for(var n,s=T()(t.tags);!(e=(n=s.next()).done);e=!0){var r=n.value;-1!==ta.indexOf(r)&&t.genres.push(r),-1!==ea.indexOf(r)&&t.moods.push(r),-1!==aa.indexOf(r)&&t.instruments.push(r)}}catch(t){a=!0,i=t}finally{try{!e&&s.return&&s.return()}finally{if(a)throw i}}for(var o in this.contributors=[],t.song_credits)this.contributors.push({handle:t.song_credits[o],user:t.song_credits_expanded[o],role:o});this.video=t},checkVideoStatus:function(){var t=this;this.video.id&&this.video.is_uploading&&this.$store.dispatch("song/getOwnSong",{id:this.video.id}).then(function(e){e.is_uploading?setTimeout(t.checkVideoStatus,5e3):(t.video.dacast_content_id=e.dacast_content_id,t.video.dacast_video_details=e.dacast_video_details,t.videoFile=!1,t.removedPublishedVideoFile=!1,i.a.nextTick(t.initDacastPlayer))})},selectVideoFile:function(){this.$refs.fileInput.click()},onVideoFileSelected:function(){var t=this.$refs.fileInput;if(t&&1===t.files.length){this.videoFile=t.files[0],t.value="",this.videoError=null;var e=this;i.a.nextTick(function t(){var a=e.$refs.videoPreview;if(a){if(a.error)return console.error("Video file not recognized",a.error),e.videoFile=null,e.videoError="unsupported-video",void e.$refs.videoSelectedError.show();if(0!==a.readyState){if(a.duration<10)return e.videoError="video-too-short",e.videoFile=null,void e.$refs.videoSelectedError.show();if(a.videoWidth<320||a.videoHeight<240)return e.videoError="video-too-small",e.videoFile=null,void e.$refs.videoSelectedError.
1show();if(a.videoWidth>1920||a.videoHeight>1080)return e.videoError="video-too-large",e.videoFile=null,void e.$refs.videoSelectedError.show();e.videoError=null,e.duration=a.duration,e.$refs.videoSelectedInfo.show()}else window.setTimeout(t,500)}else window.setTimeout(t,100)})}},removeVideoFile:function(){this.videoFile=null,this.video.dacast_content_id&&(this.video.dacast_video_details={},this.video.dacast_content_id=null,this.removedPublishedVideoFile=!0),this.dacastPlayer&&(this.dacastPlayer.dispose(),this.dacastPlayer=null)},removeAudio:function(){this.audioFile=null,this.video.audio_track=null,this.removedPublishedAudioFile=!0},saveWithoutAudio:function(){this.publishWithoutAudio=!0,this.saveVideo()},saveVideo:function(){var t=this;return h()(v.a.mark(function e(){var a,i,n,s,r,o,l,c,u,d,p,h,m,f;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.video.is_taken_down){e.next=3;break}return t.$store.dispatch("flash/showMessage",{message:"Can't modify video that was taken down",type:"error"}),e.abrupt("return");case 3:if("draft"===t.video.video_visibility||t.hasAudio||t.publishWithoutAudio){e.next=6;break}return t.$refs.noAudioModal.show(),e.abrupt("return");case 6:for(t.video.tags=t.video.genres.concat(t.video.moods,t.video.instruments),t.video.song_credits={},a=!0,i=!1,n=void 0,e.prev=11,s=T()(t.contributors);!(a=(r=s.next()).done);a=!0)o=r.value,t.video.song_credits[o.role]=o.handle;e.next=19;break;case 15:e.prev=15,e.t0=e.catch(11),i=!0,n=e.t0;case 19:e.prev=19,e.prev=20,!a&&s.return&&s.return();case 22:if(e.prev=22,!i){e.next=25;break}throw n;case 25:return e.finish(22);case 26:return e.finish(19);case 27:if(t.showModal("Saving video metadata ..."),l=!t.video.id,c=void 0,!l){e.next=48;break}return u=Li()(t.video),d=t.video.video_visibility,u.video_visibility="draft",e.prev=34,e.next=37,t.$store.dispatch("song/createSong",u);case 37:c=e.sent,e.next=46;break;case 40:return e.prev=40,e.t1=e.catch(34),t.$store.dispatch("flash/showMessage",{message:"Error creating video",type:"error"}),t.hideModal(),e.t1.response&&e.t1.response.data&&(t.errors=R(e.t1.response.data)),e.abrupt("return");case 46:t.parseVideo(c),t.video.video_visibility=d;case 48:if(!t.removedPublishedAudioFile){e.next=66;break}return t.showModal("Removing old audio track ..."),e.prev=50,e.next=53,t.$store.dispatch("song/deleteAudioTrack",{id:t.video.id});case 53:e.next=65;break;case 55:return e.prev=55,e.t2=e.catch(50),p="Error removing audio",(h=e.t2.response&&e.t2.response.data).detail&&(p="Error: "+h.detail),t.initPage(),t.$store.dispatch("flash/showMessage",{message:p,type:"error"}),t.hideModal(),t.removedPublishedAudioFile=!1,e.abrupt("return");case 65:t.removedPublishedAudioFile=!1;case 66:if(!t.audioFile){e.next=78;break}return t.showModal("Uploading audio track ..."),e.prev=68,e.next=71,t.$store.dispatch("song/setAudioTrack",{id:t.video.id,file:t.audioFile});case 71:e.next=78;break;case 73:return e.prev=73,e.t3=e.catch(68),t.$store.dispatch("flash/showMessage",{message:"Unsupported audio file format",type:"error"}),t.hideModal(),e.abrupt("return");case 78:if(!t.removedPublishedVideoFile){e.next=83;break}return t.showModal("Removing old video content ..."),e.next=82,t.$store.dispatch("song/deleteVideo",{id:t.video.id});case 82:t.removedPublishedVideoFile=!1;case 83:if(!t.videoFile){e.next=95;break}return t.showModal("Uploading video content ..."),e.prev=85,e.next=88,t.$store.dispatch("song/uploadVideo",{id:t.video.id,file:t.videoFile});case 88:e.next=95;break;case 90:return e.prev=90,e.t4=e.catch(85),t.$store.dispatch("flash/showMessage",{message:"Unsupported video file format or network error",type:"error"}),t.hideModal(),e.abrupt("return");case 95:return e.prev=95,e.next=98,t.$store.dispatch("song/updateSong",t.video);case 98:c=e.sent,e.next=110;break;case 101:return e.prev=101,e.t5=e.catch(95),m="Error creating video",(f=e.t5.response&&e.t5.response.data).detail&&(m="Error: "+f.detail),t.$store.dispatch("flash/showMessage",{message:m,type:"error"}),t.hideModal(),f&&(t.errors=R(f)),e.abrupt("return");case 110:l?t.$store.dispatch("flash/showMessage",{message:"New video created"}):t.$store.dispatch("flash/showMessage",{message:"Video updated"}),t.hideModal(),"draft"===t.video.video_visibility||t.video.wasPublished?t.$router.push({name:"artist-video-list",params:{visibility:t.video.video_visibility}}):t.$refs.videoPublishedInfo.show();case 113:case"end":return e.stop()}},e,t,[[11,15,19,27],[20,,22,26],[34,40],[50,55],[68,73],[85,90],[95,101]])}))()},onClosePublishedInfo:function(){this.$router.push({name:"artist-video-list",params:{visibility:this.video.video_visibility}})},deleteVideo:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.video.id){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,t.$store.dispatch("song/deleteVideo",{id:t.video.id});case 5:e.next=13;break;case 7:return e.prev=7,e.t0=e.catch(2),a="Can't delete video",e.t0.response&&e.t0.response.data&&e.t0.response.data.detail&&(a="Video cannot be deleted - "+e.t0.response.data.detail),t.$store.dispatch("flash/showMessage",{message:a,type:"error"}),e.abrupt("return");case 13:t.$store.dispatch("flash/showMessage",{message:"Deleted video"}),t.$router.push({name:"artist-video-list",params:{visibility:"public"}});case 15:case"end":return e.stop()}},e,t,[[2,7]])}))()},initDacastPlayer:function(){this.video.dacast_content_id&&this.$refs.dacastPlayerWrapper&&(this.dacastPlayer=window.dacast(this.video.dacast_content_id,this.$refs.dacastPlayerWrapper,{player:"theo",width:"426",height:"240",theme:Ja,options:{autoplay:!1}}))}},Object(u.b)("flash",["showModal","hideModal"]))},Rn={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("ObjectListTabs",{scopedSlots:t._u([{key:"default",fn:function(e){return[t.video.id?a("b-nav-item",{attrs:{to:{name:"artist-video-edit",params:{id:t.video.id}}}},[t._v("Edit Video")]):t._e(),t._v(" "),t.video.id?a("b-nav-item",{attrs:{to:{name:"artist-video-manage-comments",params:{id:t.video.id}}}},[t._v("Manage Comments")]):t._e(),t._v(" "),t.video.id?t._e():a("b-nav-item",{attrs:{to:{name:"artist-video-create"}}},[t._v("Upload Video")])]}},{key:"cmd",fn:function(e){return[a("router-link",{staticClass:"cancel-link",attrs:{to:t.cancelLink}},[t._v("cancel")])]}},{key:"mobileCmd",fn:function(e){return[a("b-nav-item",{attrs:{to:t.cancelLink}},[t._v("cancel")])]}}])}),t._v(" "),a("b-row",{staticClass:"command-row",attrs:{"align-v":"center"}},[a("b-col",[t.video.id?a("h1",[t._v("\n "+t._s(t.video.title)+"\n "),t.video.is_taken_down?a("small",{staticClass:"takedown"},[t._v("\n (taken down for "),a("em",[t._v("Terms of Use")]),t._v(" violation)\n ")]):t._e()]):a("h1",[t._v("\n Add New Video\n ")])]),t._v(" "),t.video.is_taken_down?t._e(
1):a("b-col",{attrs:{cols:"*"}},[t.video.id?a("LinkButton",{directives:[{name:"b-modal",rawName:"v-b-modal.confirmDelete",modifiers:{confirmDelete:!0}}],attrs:{u:!0}},[t._v("Delete video")]):t._e(),t._v(" "),a("b-button",{staticClass:"btn-rainbow",on:{click:t.saveVideo}},[t._v("Save")])],1)],1),t._v(" "),a("b-row",{staticClass:"video-details first"},[t.hasVideo||t.video.is_uploading?t._e():a("b-col",{staticClass:"dropzone"},[a("div",{staticClass:"big-info"},[t._v("\n Select a video to upload\n ")]),t._v(" "),a("b-button",{staticClass:"btn-rainbow",on:{click:t.selectVideoFile}},[t._v("click here to browse")]),t._v(" "),a("input",{ref:"fileInput",attrs:{type:"file",id:"videofile"},on:{change:t.onVideoFileSelected}}),t._v(" "),a("div",{attrs:{lass:"info"}},[t._v("\n Formats accepted: .mp4, .mov, .mkv\n ")])],1),t._v(" "),!t.hasVideo&&t.video.is_uploading?a("b-col",{staticClass:"dropzone"},[a("div",{staticClass:"processing"},[a("font-awesome-icon",{attrs:{icon:"spinner",size:"lg",spin:""}}),t._v(" "),a("br"),t._v("\n Processing uploaded video ...\n ")],1)]):t._e(),t._v(" "),t.hasVideo?a("b-col",{staticClass:"videoplayer"},[t.videoFileUrl?a("video",{ref:"videoPreview",attrs:{src:t.videoFileUrl,controls:"true"}}):t._e(),t._v(" "),t.video.dacast_content_id?a("div",{ref:"dacastPlayerWrapper"}):t._e(),t._v(" "),a("b-button",{staticClass:"remove",attrs:{variant:"danger",size:"xs"},on:{click:t.removeVideoFile}},[a("font-awesome-icon",{attrs:{icon:"times"}})],1)],1):t._e(),t._v(" "),a("b-col",[a("b-form-group",{attrs:{id:"titleGroup",label:"Video Title","label-for":"title",invalidFeedback:t.errorTitle,state:t.stateTitle}},[a("b-form-input",{attrs:{type:"text",required:"",placeholder:"Title of the video",state:t.stateTitle},model:{value:t.video.title,callback:function(e){t.$set(t.video,"title",e)},expression:"video.title"}})],1),t._v(" "),a("b-form-checkbox",{model:{value:t.video.is_explicit,callback:function(e){t.$set(t.video,"is_explicit",e)},expression:"video.is_explicit"}},[t._v("\n Explicit Content\n "),a("small",[t._v("\n Strong language or age inappropriate material\n ")])])],1)],1),t._v(" "),a("b-row",{staticClass:"video-details"},[a("b-col",[a("b-form-group",{attrs:{id:"videoTypeGroup",label:"Video Type","label-for":"videoType"}},[a("b-form-select",{attrs:{id:"videoType",options:t.videoTypes},model:{value:t.video.video_type,callback:function(e){t.$set(t.video,"video_type",e)},expression:"video.video_type"}})],1)],1),t._v(" "),a("b-col",[a("b-form-group",{attrs:{id:"visibilityGroup",label:"Visibility","label-for":"visibility",invalidFeedback:t.errorVideoVisibility,state:t.stateVideoVisibility,description:t.hasProcessedVideo?"":"New videos must be saved as draft first"}},[a("b-form-select",{attrs:{id:"visibility",options:t.videoVisibilities,state:t.stateVideoVisibility,disabled:!t.hasProcessedVideo},model:{value:t.video.video_visibility,callback:function(e){t.$set(t.video,"video_visibility",e)},expression:"video.video_visibility"}})],1)],1)],1),t._v(" "),a("b-row",{staticClass:"video-details"},[a("b-col",[a("b-form-group",{attrs:{label:"Genre (up to 3)","label-for":"username"}},[a("multiselect",{attrs:{searchable:!1,multiple:!0,max:3,showNoResults:!1,options:t.genres},model:{value:t.video.genres,callback:function(e){t.$set(t.video,"genres",e)},expression:"video.genres"}},[a("template",{slot:"maxElements"},[t._v("\n Maximum of 3 options\n ")])],2)],1)],1),t._v(" "),a("b-col",[a("b-form-group",{attrs:{label:"Mood (up to 2)","label-for":"username"}},[a("multiselect",{attrs:{searchable:!1,multiple:!0,max:2,showNoResults:!1,options:t.moods},model:{value:t.video.moods,callback:function(e){t.$set(t.video,"moods",e)},expression:"video.moods"}},[a("template",{slot:"maxElements"},[t._v("\n Maximum of 2 options\n ")])],2)],1)],1)],1),t._v(" "),a("b-row",{staticClass:"video-details"},[a("b-col",[a("b-form-group",{attrs:{label:"Instruments (up to 5)","label-for":"username"}},[a("multiselect",{attrs:{searchable:!1,multiple:!0,max:5,showNoResults:!1,options:t.instruments},model:{value:t.video.instruments,callback:function(e){t.$set(t.video,"instruments",e)},expression:"video.instruments"}},[a("template",{slot:"maxElements"},[t._v("\n Maximum of 5 options\n ")])],2)],1)],1)],1),t._v(" "),a("b-row",{staticClass:"video-detail
1s"},[a("b-col",[t._v("\n Credit other contributors\n "),a("small",[t._v("(give a shout out to other artists you collaborated with or anyone else who helped\n behind the scenes)\n ")]),t._v(" "),a("UserList",{attrs:{withRoles:!0,canAdd:!0,canRemove:!0,addLabel:"Add contributor",handleLabel:"Contributor handle",roleLable:"Contributor type",requireUser:!0},model:{value:t.contributors,callback:function(e){t.contributors=e},expression:"contributors"}})],1)],1),t._v(" "),a("b-row",{staticClass:"video-details"},[a("b-col",{staticClass:"audio-col"},[a("b-form-group",{attrs:{label:"Audio file available for download","label-for":"audiofile",description:"Supported audio file formats: AAC (256 Kbps recommended), WAV, FLAC, and AIFF"}},[t.hasAudio?t._e():a("b-form-file",{attrs:{id:"audiofile",placeholder:"Choose a file..."},model:{value:t.audioFile,callback:function(e){t.audioFile=e},expression:"audioFile"}}),t._v(" "),t.hasAudio?a("audio",{attrs:{src:t.audioFileUrl,controls:"true"}}):t._e()],1),t._v(" "),t.hasAudio?a("div",[t.canRemoveAudio?a("LinkButton",{attrs:{u:!0},on:{click:t.removeAudio}},[t._v("remove audio file")]):a("a",{staticClass:"text-muted",attrs:{id:"remove-audio-popover",href:"javascript:false"}},[t._v("remove audio file")]),t._v(" "),a("b-popover",{attrs:{target:"remove-audio-popover",placement:"bottom",triggers:"hover",content:"cannot remove file because part of an album and/or already downloaded"}})],1):t._e()],1),t._v(" "),a("b-col",{attrs:{cols:"*"}},[a("b-form-group",{staticClass:"short",attrs:{label:"Sale Price (USD)",description:"Free, or minimum $0.50","label-for":"trackPrice",invalidFeedback:t.errorTrackPrice,state:t.stateTrackPrice}},[a("b-form-input",{attrs:{id:"trackPrice",type:"text",placeholder:"Example: 2.50",state:t.stateTrackPrice},model:{value:t.video.track_price,callback:function(e){t.$set(t.video,"track_price",e)},expression:"video.track_price"}})],1),t._v(" "),a("b-form-checkbox",{attrs:{size:"sm"},model:{value:t.video.can_pay_more,callback:function(e){t.$set(t.video,"can_pay_more",e)},expression:"video.can_pay_more"}},[t._v("\n Let fans back you more, and they might pay a little extra\n ")])],1)],1),t._v(" "),a("b-row",{staticClass:"video-details last"},[a("b-col",[a("b-form-group",{attrs:{id:"usernameGroup",label:"Lyrics","label-for":"username"}},[a("b-form-textarea",{attrs:{placeholder:"",rows:5},model:{value:t.video.lyrics,callback:function(e){t.$set(t.video,"lyrics",e)},expression:"video.lyrics"}})],1)],1)],1),t._v(" "),t.video.is_taken_down?t._e():a("b-row",{staticClass:"command-row bottom",attrs:{"align-v":"center"}},[a("b-col",[t.video.id?a("LinkButton",{directives:[{name:"b-modal",rawName:"v-b-modal.confirmDelete",modifiers:{confirmDelete:!0}}],attrs:{u:!0}},[t._v("Delete video")]):t._e(),t._v(" "),t.video.id?a("b-button",{staticClass:"btn-rainbow",on:{click:t.saveVideo}},[t._v("Save")]):t._e()],1)],1),t._v(" "),a("b-modal",{ref:"noAudioModal",attrs:{id:"noAudioModal",title:"Publish Video",centered:""},on:{ok:t.saveWithoutAudio}},[a("div",{staticClass:"content"},[a("p",[t._v("\n Donât miss out on extra earning opportunities by uploading an audio file.\n ")]),t._v(" "),a("p",[t._v("\n Do you want to publish this video anyway?\n ")])])]),t._v(" "),a("b-modal",{ref:"confirmDelete",attrs:{id:"confirmDelete",title:"Delete video",centered:""},on:{ok:t.deleteVideo}},[a("div",{staticClass:"content"},[a("p",[t._v("\n Are you sure you want to delete this video?\n ")])])]),t._v(" "),a("b-modal",{ref:"videoSelectedInfo",attrs:{id:"videoSelectedInfo",title:"Video selected","ok-only":!0,centered:""}},[a("div",{staticClass:"content"},[a("p",[t._v("\n Once all the required (and desired) information has been filled out on this form, press âSaveâ to start the video upload process. Processing times will vary.\n ")]),t._v(" "),a("p",[t._v("\n To access videos that have been completely processed, go to the âDraftsâ tab (under âVideosâ), click on the desired thumbnail, then select whether to publish the video as either public or private.\n ")]),t._v(" "),a("p",[t._v("\n Some videos shot with a mobile phone or tablet may be incorrectly displayed (rotated). Before publishing video, please check that your uploaded video is correctly displayed.\n ")]),t._v(" "),a("p",[t._v("\n If video plays sideways or otherwise appears incorrectly, please use a desktop video editor to adjust the format. For optimal results, we recommend convert
1ing to a 16:9 (width/height) aspect ratio, 25 (or 30) FPS, and H.264 video.\n ")])])]),t._v(" "),a("b-modal",{ref:"videoSelectedError",attrs:{id:"videoSelectedError",title:"Unsupported video","ok-only":!0,centered:""}},[a("div",{staticClass:"content"},[a("p",[t._v("\n The following error was encountered:\n ")]),t._v(" "),"unsupported-video"===t.videoError?a("ul",[a("li",[t._v("Video format "),a("u",[t._v("not supported")]),t._v(".")]),t._v(" "),a("li",[t._v("Video formats accepted are: .mp4, .mov, or .mkv.")])]):t._e(),t._v(" "),"video-too-short"===t.videoError?a("ul",[a("li",[t._v("Video length is "),a("u",[t._v("too short")]),t._v(".")]),t._v(" "),a("li",[t._v("Duration of video must be at least 10 seconds.")])]):t._e(),t._v(" "),"video-too-small"===t.videoError?a("ul",[a("li",[t._v("Video resolution is "),a("u",[t._v("too small")]),t._v(".")]),t._v(" "),a("li",[t._v("Minimum video resolution is 320x240.")])]):t._e(),t._v(" "),"video-too-large"===t.videoError?a("ul",[a("li",[t._v("Video resolution is "),a("u",[t._v("too large")]),t._v(".")]),t._v(" "),a("li",[t._v("Maximum video resolution is 1920x1080.")])]):t._e(),t._v(" "),"video-too-short"!==t.videoError?a("p",[t._v("\n To convert the video to a supported format and/or size, use a video converter â\n we recommend trying "),a("a",{attrs:{target:"_blank",href:"https://handbrake.fr"}},[t._v("Handbrake")]),t._v(" (free).\n ")]):t._e()])]),t._v(" "),a("b-modal",{ref:"videoPublishedInfo",attrs:{id:"videoPublishedInfo",title:"Video published","ok-only":!0,centered:""},on:{ok:t.onClosePublishedInfo}},[a("div",{staticClass:"content"},[a("p",[t._v("\n Have you double checked to make sure your video has been formatted correctly?\n ")]),t._v(" "),a("p",[t._v("\n If video plays sideways or otherwise appears incorrectly, please use a desktop video editor to adjust the format. For optimal results, we recommend converting to a 16:9 (width/height) aspect ratio, 25 (or 30) FPS, and H.264 video.\n ")])])])],1)},staticRenderFns:[]};var Fn=a("VU/8")(On,Rn,!1,function(t){a("ywbH")},"data-v-bb911f34",null).exports,Mn={name:"VideoList",components:{ObjectListTabs:Ze,ArtistProfileTabs:ma,ProfileHero:xa,FontAwesomeIcon:g.a,VideoCard:ii,Headline:rn},data:function(){return{pages:null,previous:null,next:null,videos:[],artist:null}},computed:{isFanView:function(){return!!this.$route.params.artistId},filteredVideos:function(){return this.isFanView?this.videos.filter(function(t){return"draft"!==t.video_visibility}):this.videos}},created:function(){this.fetchData()},watch:{$route:"fetchData"},methods:c()({fetchData:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getSongs();case 2:if(a=e.sent){e.next=5;break}return e.abrupt("return");case 5:t.pages=a.pages,t.previous=a.previous,t.next=a.next,t.videos=a.results;case 9:case"end":return e.stop()}},e,t)}))()},getSongs:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(a=t.$route.params.visibility)){e.next=6;break}return t.artist=t.$store.getters["artist/artist"],e.abrupt("return",t.$store.dispatch("song/listOwnSongs",{visibility:"taken-down"===a?void 0:a,taken_down:"taken-down"===a?"1":void 0}));case 6:if(!t.$route.params.artistId){e.next=13;break}return e.next=9,t.$store.dispatch("artist/getArtist",{id:t.$route.params.artistId});case 9:return t.artist=e.sent,e.abrupt("return",t.$store.dispatch("song/listSongs",{artist:t.artist.id}));case 13:return t.artist=null,e.abrupt("return",null);case 15:case"end":return e.stop()}},e,t)}))()}},O)},Un={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",{class:{"mt-0":t.isFanView}},[t.isFanView?t._e():a("Headline",{attrs:{title:"Videos"}}),t._v(" "),t.isFanView?t._e():a("ObjectListTabs",{scopedSlots:t._u([{key:"default",fn:function(e){return[a("b-nav-item",{attrs:{to:{name:"artist-video-list",params:{visibility:"public"}}}},[t._v("Public Videos")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"artist-video-list",params:{visibility:"private"}}}},[t._v("Private Videos")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"artist-video-list",params:{visibility:"draft"}}}},[t._v("Drafts")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"artist-video-list",params:{visibility:"taken-down"}}}},[t._v("Violations")])]}},{key:"cmd",fn:function(e){return[a("b-button",{staticClass:"btn-rainbow",attrs:{to:{name:"artist-video-create"},size:"sm"}},[a("font-awesome-icon",{attrs:{icon:"plus"}}),t._v(" upload video\n ")],1)]}},{key:"mobileCmd",fn:function(e){return[a("b-nav-item",{attrs:{to:{name:"artist-video-create"}}},[a("font-awesome-icon",{attrs:{icon:"plus"}}),t._v(" upload video")],1)]}}])}),t._v(" "),t.isFanView?a("ProfileHero",{attrs:{artist:t.artist}}):t._e(),t._v(" "),t.isFanView?a("ArtistProfileTabs",{attrs:{artist:t.artist}}):t._e(),t._v(" "),a("div",{staticClass:"videos"},t._l(t.filteredVideos,function(e){return a("VideoCard",{key:e.id,attrs:{video:e,showDate:!0,linkToEditor:!t.isFanView,showPrivate:t.is
1FanView}})}))],1)},staticRenderFns:[]};var Nn=a("VU/8")(Mn,Un,!1,function(t){a("Ijqi")},"data-v-e73ef8fe",null).exports,Vn=a("KBYM"),jn=a.n(Vn),Dn={name:"FanProfileTabs",props:["user"],components:{ObjectListTabs:Ze},computed:c()({},Object(u.c)("profile",["currentUser"]))},Bn={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ObjectListTabs",{scopedSlots:t._u([{key:"default",fn:function(e){return[a("b-nav-item",{attrs:{to:{name:"fan-profile",params:{id:t.user.id}}}},[t._v("About")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"fan-profile-playlists",params:{id:t.user.id}}}},[t._v("Playlists")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"fan-featured",params:{id:t.user.id}}}},[t._v("Featured In")])]}},{key:"cmd",fn:function(e){return[t.user.id===t.currentUser.id?a("b-button",{attrs:{variant:"secondary",to:{name:"fan-profile-edit"},size:"sm"}},[t._v("\n Edit Profile\n ")]):t._e(),t._v(" "),t.user.artist_id&&t.user.id!==t.currentUser.id?a("b-button",{attrs:{variant:"secondary",to:{name:"artist-about",params:{artistId:t.user.artist_id}},size:"sm"}},[t._v("\n Artist Profile\n ")]):t._e()]}},{key:"mobileCmd",fn:function(e){return[t.user.id===t.currentUser.id?a("b-nav-item",{attrs:{to:{name:"fan-profile-edit"}}},[t._v("Edit Profile")]):t._e(),t._v(" "),t.user.artist_id&&t.user.id!==t.currentUser.id?a("b-nav-item",{attrs:{to:{name:"artist-about",params:{artistId:t.user.artist_id}}}},[t._v("Artist Profile")]):t._e()]}}])})},staticRenderFns:[]},Hn=a("VU/8")(Dn,Bn,!1,null,null,null).exports,qn={name:"Messages",components:{FanProfileTabs:Hn,Report:va,FontAwesomeIcon:g.a,LinkButton:x},props:{inbox:Object},data:function(){return{conversations:[],activePeer:null,messages:[],text:""}},computed:c()({},Object(u.c)("realtime",["latestMessage"]),Object(u.c)("profile",["currentUser"])),created:function(){this.initComponent()},watch:{inbox:"initComponent",latestMessage:"checkLatestMessage",messages:"doScroll"},methods:c()({initComponent:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("profile/listConversations",{inboxId:t.inbox.id});case 2:return a=e.sent,e.t0=jn.a,e.next=6,a.all();case 6:e.t1=e.sent,e.t2=function(t){return xt().diff(t.last_message.created_at)},t.conversations=(0,e.t0)(e.t1,e.t2),t.conversations.length?t.activateConversation(t.conversations[0]):(t.activePeer=null,t.messages=[]);case 10:case"end":return e.stop()}},e,t)}))()},loadMessages:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.messages=[],t.inbox&&t.activePeer){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,t.$store.dispatch("profile/listMessages",{inboxId:t.inbox.id,peerId:t.activePeer.id});case 5:return a=e.sent,e.next=8,a.all();case 8:t.messages=e.sent,t.messages.reverse();case 10:case"end":return e.stop()}},e,t)}))()},markAsRead:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("profile/markAsRead",{inboxId:t.inbox.id,peerId:t.activePeer.id});case 2:a=e.sent,t.inbox.unread_count=a;case 4:case"end":return e.stop()}},e,t)}))()},checkLatestMessage:function(){var t=this.latestMessage;if(t.inbox.id===this.inbox.id&&this.activePeer&&this.activePeer.id===t.peer){this.messages.push(this.latestMessage),this.markAsRead();var e=!0,a=!1,i=void 0;try{for(var n,s=T()(this.conversations);!(e=(n=s.next()).done);e=!0){var r=n.value;r.peer.id===this.activePeer.id&&(r.unread_count=0)}}catch(t){a=!0,i=t}finally{try{!e&&s.return&&s.return()}finally{if(a)throw i}}}},peerAvatar:function(t,e){return"sent"===e?this.inbox.is_artist_inbox?this.currentUser.artist.avatar_image:this.avatarImage(this.currentUser):t.artist?t.artist.avatar_image:t.profile?this.avatarImage(t.profile):null},peerName:function(t){return t?t.artist?t.artist.name:t.profile?this.displayName(t.profile):"":""},peerLink:function(t){return t.artist?{name:"artist-about",params:{artistId:t.artist.id}}:t.profile?{name:"fan-profile",params:{id:t.profile.id}}:null},conversationClass:function(t){var e=["conversation"];return this.activePeer&&t.peer.id===this.activePeer.id?e.push("active"):t.unread_count>0&&e.push("unread"),e},messageClass:function(t){return["message",t.direction]},formatDate:function(t){return xt(t).fromNow()},linkifyHandles:Ke,activateConversation:function(t){this.activePeer&&this.activePeer.id===t.peer.id||(this.activePeer=t.peer,this.loadMessages(),t.unread_count&&(t.unread_count=0,this.markAsRead()))},blockConversation:function(t){var e=this;return h()(v.a.mark(function a(){return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.$store.dispatch("profile/blockProfile",{id:t.peer.profile.id});case 2:e.$store.dispatch("flash/showMessage",{message:"User blocked"}),e.initComponent();case 4:case"end":return a.stop()}},a,e)}))()},msgLines:function(t){return t.text.split(/[\n\r]+/)},onKeyUp:function(t){"Enter"===t.key&&this.send()},send:function(){var t=this;return h()(v.a.mark(function e(){var a,i;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.activePeer&&t.text.trim()){e.next=2;break}return e.abrupt("return");case 2:return a=void 0,e.prev=3,e.next=6,t.$store.dispatch("profile/sendMessage",{peerId:t.activePeer.id,text:t.text.trim(),inboxId:t.
1inbox.id});case 6:a=e.sent,e.next=15;break;case 9:return e.prev=9,e.t0=e.catch(3),i="Can't send message",e.t0.response&&e.t0.response.data&&e.t0.response.data.recipient&&(i=e.t0.response.data.recipient),t.$store.dispatch("flash/showMessage",{message:i,type:"error"}),e.abrupt("return");case 15:t.text="",t.messages.push(a);case 17:case"end":return e.stop()}},e,t,[[3,9]])}))()},doScroll:function(){var t=this;i.a.nextTick(function(){var e=t.$refs.messages;e&&(e.scrollTop=e.scrollHeight-e.clientHeight)})}},$)},zn={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-row",{staticClass:"wrapper",attrs:{"align-v":"stretch"}},[t.conversations.length>0?a("b-col",{staticClass:"c-dropdown",attrs:{cols:"12"}},[a("b-dropdown",{attrs:{right:""}},[a("template",{slot:"button-content"},[t._v("\n "+t._s(t.peerName(t.activePeer))+"\n ")]),t._v(" "),t._l(t.conversations,function(e){return a("b-dropdown-item",{key:e.peer.id,on:{click:function(a){t.activateConversation(e)}}},[t._v("\n "+t._s(t.peerName(e.peer))+"\n ")])})],2)],1):t._e(),t._v(" "),t.conversations.length>0?a("b-col",{staticClass:"c-wrapper",attrs:{cols:"4"}},[a("div",{staticClass:"scrollable"},t._l(t.conversations,function(e){return a("div",{key:e.peer.id,class:t.conversationClass(e),on:{click:function(a){t.activateConversation(e)}}},[a("img",{attrs:{src:t.peerAvatar(e.peer)}}),t._v(" "),a("div",{staticClass:"info"},[a("router-link",{staticClass:"name",attrs:{to:t.peerLink(e.peer)}},[t._v(t._s(t.peerName(e.peer)))]),t._v(" "),a("div",{staticClass:"time"},[e.unread_count?a("span",{staticClass:"unread-count"},[t._v(t._s(e.unread_count)+" unread,")]):t._e(),t._v("\n "+t._s(t.formatDate(e.last_message.created_at))+"\n ")])],1),t._v(" "),a("div",{staticClass:"actions"},[a("Report",{staticClass:"report-link",attrs:{artist:e.peer.artist,profile:e.peer.profile,label:"Report conversation"}},[a("LinkButton",{on:{click:function(a){t.blockConversation(e)}}},[t._v("Block user")])],1)],1)])}))]):t._e(),t._v(" "),t.conversations.length>0?a("b-col",{staticClass:"m-wrapper"},[a("div",{ref:"messages",staticClass:"messages scrollable"},t._l(t.messages,function(e){return a("div",{key:e.id,class:t.messageClass(e)},[a("img",{attrs:{src:t.peerAvatar(t.activePeer,e.direction)}}),t._v(" "),a("div",{staticClass:"content"},[t._l(t.msgLines(e),function(e,i){return a("p",{key:i,domProps:{innerHTML:t._s(t.linkifyHandles(e))}})}),t._v(" "),a("div",{staticClass:"time"},[t._v("\n "+t._s(t.formatDate(e.created_at))+"\n ")])],2)])})),t._v(" "),t.activePeer?a("div",{staticClass:"post"},[a("b-form-textarea",{ref:"input",attrs:{rows:2,"max-rows":5,required:""},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}}),t._v(" "),a("b-button",{staticClass:"send",attrs:{size:"sm"},on:{click:t.send}},[t._v("Send")])],1):t._e()]):t._e(),t._v(" "),t.conversations.length?t._e():a("b-col",{staticClass:"empty"},[t._v("\n No messages\n ")])],1)},staticRenderFns:[]};var Wn=a("VU/8")(qn,zn,!1,function(t){a("7Zj2")},"data-v-de4bfbd6",null).exports,Gn={name:"FanMessages",components:{Headline:rn,Messages:Wn},computed:c()({},Object(u.c)("artist",["artist"]),Object(u.c)("profile",["artistInbox"]))},Yn={render:function(){var t=this.$createElement,e=this._self._c||t;return e("b-container",{staticClass:"full-height"},[e("Headline",{attrs:{title:"Messages"}}),this._v(" "),this.artistInbox?e("Messages",{attrs:{inbox:this.artistInbox}}):this._e()],1)},staticRenderFns:[]};var Kn=a("VU/8")(Gn,Yn,!1,function(t){a("FEYn")},"data-v-88999dcc",null).exports,Xn={name:"Followers",components:{Headline:rn},data:function(){return{followers:[]}},created:function(){this.initPage()},watch:{$route:"initPage"},methods:c()({initPage:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("profile/listFollowers");case 2:return a=e.sent,e.next=5,a.all();case 5:t.followers=e.sent;case 6:case"end":return e.stop()}},e,t)}))()}},$)},Jn={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("Headline",{attrs:{title:"Followers"}}),t._v(" "),a("b-row",[a("b-col",{staticClass:"list"},t._l(t.followers,function(e){return a("div",{key:e.id,staticClass:"fan"},[a("router-link",{staticClass:"name",attrs:{to:{name:"fan-profile",params:{id:e.id}}}},[a("img",{attrs:{src:t.avatarImage(e)}})]),t._v(" "),a("router-link",{staticClass:"name",attrs:{to:{name:"fan-profile",params:{id:e.id}}}}
1,[t._v(t._s(t.displayName(e)))])],1)}))],1)],1)},staticRenderFns:[]};var Qn=a("VU/8")(Xn,Jn,!1,function(t){a("1cMe")},"data-v-97c7cf08",null).exports,Zn={name:"ManageComments",components:{ObjectListTabs:Ze,Comments:za},data:function(){return{object:null}},computed:{type:function(){return this.$route.meta.contentType},navlinks:function(){return{video:{edit:{routeName:"artist-video-edit",label:"Edit Video"},create:{routeName:"artist-video-create",label:"Upload Video"},commentsRouteName:"artist-video-manage-comments"},live:{edit:{routeName:"artist-live-stream-edit",label:"Edit Live Stream"},create:{routeName:"artist-live-stream-create",label:"Create Live Stream"},commentsRouteName:"artist-live-stream-manage-comments"}}}},created:function(){this.initComponent()},watch:{route:"initComponent"},methods:{initComponent:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("video"!==t.type){e.next=6;break}return e.next=3,t.$store.dispatch("song/getOwnSong",{id:t.$route.params.id});case 3:t.object=e.sent,e.next=10;break;case 6:if("live"!==t.type){e.next=10;break}return e.next=9,t.$store.dispatch("live/getOwnLiveEvent",{id:t.$route.params.id});case 9:t.object=e.sent;case 10:case"end":return e.stop()}},e,t)}))()}}},ts={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("ObjectListTabs",{scopedSlots:t._u([{key:"default",fn:function(e){return[t.object&&t.object.id?a("b-nav-item",{attrs:{to:{name:t.navlinks[t.type].edit.routeName,params:{id:t.object.id}}}},[t._v(t._s(t.navlinks[t.type].edit.label))]):a("b-nav-item",{attrs:{to:{name:t.navlinks[t.type].create.routeName}}},[t._v(t._s(t.navlinks[t.type].create.label))]),t._v(" "),t.object&&t.object.id?a("b-nav-item",{attrs:{to:{name:t.navlinks[t.type].commentsRouteName,params:{id:t.object.id}}}},[t._v("Manage Comments")]):t._e()]}}])}),t._v(" "),t.object?a("h1",[t._v(t._s(t.object.title))]):t._e(),t._v(" "),"video"===t.type?a("Comments",{attrs:{video:t.object,canManage:!0}}):t._e(),t._v(" "),"live"===t.type?a("Comments",{attrs:{live:t.object,canManage:!0}}):t._e()],1)},staticRenderFns:[]};var es=a("VU/8")(Zn,ts,!1,function(t){a("i55J")},"data-v-504ac0b2",null).exports,as={name:"FeaturedVideos",components:{ArtistProfileTabs:ma,FanProfileTabs:Hn,ProfileHero:xa,VideoCard:ii},data:function(){return{artist:null,profile:null,videos:[]}},computed:{},created:function(){this.initPage()},watch:{$route:"initPage"},methods:{initPage:function(){var t=this;return h()(v.a.mark(function e(){var a,i;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=void 0,!t.$route.params.artistId){e.next=9;break}return t.profile=null,e.next=5,t.$store.dispatch("artist/getArtist",{id:t.$route.params.artistId});case 5:t.artist=e.sent,a=t.artist.handle,e.next=14;break;case 9:return t.artist=null,e.next=12,t.$store.dispatch("profile/getProfile",{id:t.$route.params.id});case 12:t.profile=e.sent,a=t.profile.username;case 14:return e.next=16,t.$store.dispatch("song/listSongs",{featured:a});case 16:return i=e.sent,e.next=19,i.all();case 19:t.videos=e.sent;case 20:case"end":return e.stop()}},e,t)}))()}}},is={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[t.artist||t.profile?a("ProfileHero",{attrs:{artist:t.artist,user:t.profile}}):t._e(),t._v(" "),t.artist?a("ArtistProfileTabs",{attrs:{artist:t.artist}}):t._e(),t._v(" "),t.profile?a("FanProfileTabs",{attrs:{user:t.profile}}):t._e(),t._v(" "),a("div",{staticClass:"videos"},t._l(t.videos,function(t){return a("VideoCard",{key:t.id,attrs:{video:t,showDate:!0,showArtist:!0}})}))],1)},staticRenderFns:[]};var ns=a("VU/8")(as,is,!1,function(t){a("kRWh")},"data-v-5f727812",null).exports,ss={name:"FanProfileTabs",components:{ObjectListTabs:Ze},computed:c()({},Object(u.c)("profile",["currentUser"]))},rs={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ObjectListTabs",{scopedSlots:t._u([{key:"default",fn:function(e){return[a("b-nav-item",{attrs:{to:{name:"fan-profile-preview"}}},[t._v("Public profile")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"fan-profile-edit"}}},[t._v("Personal information")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"fan-billing-info"}}},[t._v("Payments")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"fan-blocked-users"}}},[t._v("Blocked users")])]}}])})},staticRenderFns:[]},os=a("VU/8")(ss,rs,!1,null,null,null).exports,ls={name:"Followers",components:{Headline:rn,LinkButton:x,ArtistEditProfileTabs:Ba,FanEditProfileTabs:os},data:function(){return{profiles:[]}},computed:{asArtist:function(){return"artist"===this.$route.meta.requireUserType&&this.$store.getters["profile/isArtist"]}},created:function(){this.initPage()},watch:{$route:"initPage"},methods:c()({initPage:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("profile/listBlockedProfiles");case 2:return a=e.sent,e.next=5,a.all();case 5:t.profiles=e.sent;case 6:case"end":return e.stop()}},e,t)}))()},unblock:function(t){var e=this;return h()(v.a.mark(function a(){return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.$store.dispatch("profile/unblockProfile",{id:t.id});case 2:e.$store.dispatch("flash/showMessage",{message:"User unblocked"}),e.profiles=Ne()(e.profiles,function(e){return e.id!==t.id});case 4:case"end":return a.stop()}},a,e)}))()}},$)},cs={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[t.asArtist?a("ArtistEditProfileTabs"):a("FanEditProfileTabs"),t._v(" "),a("b-row",[a("b-col",{staticClass:"list"},t._l(t.profiles,function(e){return a("div",{key:e.id,staticClass:"fan"},[a("router-link",{staticClass:"name",attrs:{to:{name:"fan-profile",params:{id:e.id}}}},[a("img",{attrs:{src:t.avatarImage(e)}})]),t._v(" "),a("router-link",{staticClass:"name",attrs:{to:{name:"fan-profile",params:{id:e.id}}}},[t._v(t._s(t.displayName(e)))]),t._v(" "),a("small",[a("LinkButton",{attrs:{u:!0},on:{click:function(a){t.unblock(e)}}},[t._v("unblock")])],1)],1)}))],1)],1)},staticRenderFns:[]};var us=a("VU/8")(ls,cs,!1,function(t){a("sRHA")},"data-v-c4c0e804",null).exports,ds={name:"SendMessage",components:{Art
1istProfileTabs:ma,ProfileHero:xa},data:function(){return{artist:null,reason:null}},computed:{reasonOptions:function(){return na},reportLabel:function(){return this.artist&&this.artist.name?"Report "+this.artist.name:"Report Artist"}},watch:{$route:"initPage"},created:function(){this.initPage()},methods:{initPage:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.currentArtist||t.$route.params.artistId!==t.currentArtist.id){e.next=3;break}return t.$router.push({name:"artist-messages"}),e.abrupt("return");case 3:return e.next=5,t.$store.dispatch("artist/getArtist",{id:t.$route.params.artistId});case 5:t.artist=e.sent;case 6:case"end":return e.stop()}},e,t)}))()},send:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.reason){e.next=2;break}return e.abrupt("return");case 2:return t.working=!0,e.next=5,t.$store.dispatch("artist/reportArtist",{id:t.artist.id,reason:t.reason,url:t.$route.fullPath});case 5:t.working=!1,t.$store.dispatch("flash/showMessage",{message:"Thank you for reporting this"}),t.$router.push({name:"artist-about",params:{artistId:t.$route.params.artistId}});case 8:case"end":return e.stop()}},e,t)}))()}}},vs={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("ProfileHero",{attrs:{artist:t.artist}}),t._v(" "),a("ArtistProfileTabs",{attrs:{artist:t.artist}}),t._v(" "),a("b-row",[a("b-col",[a("b-form-group",{attrs:{label:t.reportLabel}},[a("b-form-select",{attrs:{options:t.reasonOptions,size:"sm"},model:{value:t.reason,callback:function(e){t.reason=e},expression:"reason"}})],1)],1)],1),t._v(" "),a("b-row",[a("b-col",[a("b-button",{staticClass:"btn-rainbow",attrs:{disabled:!t.reason},on:{click:t.send}},[t._v("Report")])],1)],1)],1)},staticRenderFns:[]};var ps={requireUserType:"artist"},hs={requireLogin:!0},ms=[{path:"/artist/new/",name:"artist-onboarding",component:Va,meta:{fullScreen:!0,requireLogin:!0}},{path:"/artist/about/edit/",name:"artist-profile-edit",component:Zi,meta:ps},{path:"/artist/about/payout/",name:"artist-payout-method",component:an,meta:ps},{path:"/artist/messages/",name:"artist-messages",component:Kn,meta:ps},{path:"/artist/activity/",name:"artist-my-activity",component:Ti,meta:ps},{path:"/artist/followers/",name:"artist-followers",component:Qn,meta:ps},{path:"/artist/blocked/",name:"artist-blocked-users",component:us,meta:ps},{path:"/artist/dashboard/",name:"artist-dashboard",component:Bi,meta:ps},{path:"/artist/live/create/",name:"artist-live-stream-create",component:Vi,meta:ps},{path:"/artist/live/:visibility/",name:"artist-my-live-stream-list",component:yn,meta:ps},{path:"/artist/live/:id/edit/",name:"artist-live-stream-edit",component:Vi,meta:ps},{path:"/artist/live/:id/comments/",name:"artist-live-stream-manage-comments",component:es,meta:{requireUserType:"artist",contentType:"live"}},{path:"/artist/live/:id/preview/",name:"artist-live-stream",component:hn,meta:ps},{path:"/artist/albums/create/",name:"artist-album-create",component:Xi,meta:ps},{path:"/artist/albums/:id/edit/",name:"artist-album-edit",component:Xi,meta:ps},{path:"/artist/albums/:visibility/",name:"artist-album-list",component:cn,meta:ps},{path:"/artist/videos/:visibility/",name:"artist-video-list",component:Nn,meta:ps},{path:"/artist/videos/create/",name:"artist-video-create",component:Fn,meta:ps},{path:"/artist/videos/:id/edit/",name:"artist-video-edit",component:Fn,meta:ps},{path:"/artist/videos/:id/comments/",name:"artist-video-manage-comments",component:es,meta:{requireUserType:"artist",contentType:"video"}},{path:"/artist/videos/:id/detail/",name:"artist-video-detail",component:$n},{path:"/artist/:artistId/about/",name:"artist-about",component:Ia},{path:"/artist/:artistId/activity/",name:"artist-activity",component:Ti,meta:hs},{path:"/artist/:artistId/message/",name:"artist-send-message",component:Tn,meta:hs},{path:"/artist/:artistId/featured/",name:"artist-featured",component:ns},{path:"/artist/:artistId/report/",name:"artist-report",component:a("VU/8")(ds,vs,!1,function(t){a("s1VS")},"data-v-42d29fe8",null).exports},{path:"/artist/:artistId/videos/",name:"artist-videos",component:Nn},{path:"/artist/:artistId/live/",name:"artist-live-stream-list",component:yn},{path:"/artist/:artistId/live/:liveId/",name:"artist-live-stream-detail",component:Sn},{path:"/artist/:artistId/albums/",name:"artist-albums",component:cn}],fs={name:"Home",components:{FontAwesomeIcon:g.a,Feed:Si,Headline:rn},data:function(){return{feed:null}},computed:c()({},Object(u.c)("profile",["isArtist"])),created:function(){this.initPage()},methods:{initPage:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("feed/getCombinedFeed");case 2:t.feed=e.sent.results;case 3:case"end":return e.stop()}},e,t)}))()}}},bs={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[t.isArtist?a("b-row",[a("b-col",{staticClass:"hero player-col"},[a("h6",[t._v("Welcome")]),t._v(" "),a("h5",[t._v("Interact with your fans"),a("br"),t._v("in the Artist Studio")]),t._v(" "),a("b-button",{staticClass:"btn-rainbow px-4",attrs:{to:{name:"artist-dashboard"}}},[t._v("enter")])],1)],1):a("b-row",[a("b-col",{staticClass:"hero player-col"},[a("h6",[t._v("Get the full experience")]),t._v(" "),a("h5",[t._v("Join the Artist Studio"),a("br"),t._v(" today.")]),t._v(" "),a("b-button",{staticClass:"btn-rainbow px-4",attrs:{to:{name:"artist-onboarding"}}},[t._v("sign up")])],1)],1),t._v(" "),a("Headline",{attrs:{title:"Recent posts"}}),t._v(" "),t.feed?a("Feed",{attrs:{feed:t.feed}}):t._e()],1)},staticRenderFns:[]};var gs=a("VU/8")(fs,bs,!1,function(t){a("Qlyi")},"data-v-e1ec40e8",null).exports,_s={name:"Home",components:{Datepicker:Ri.a,FanEditProfileTabs:os,FontAwesomeIcon:g.a},data:function(){return{pwd1:"",pwd2:"",genderOptions:[{value:"",text:"Unspecified"},{value:"male",text:"Male"},{value:"female",text:"Female"}]}},computed:c()({},Object(u.c)("profile",["currentUser","avatarImage","heroImage","displayName","dobDate","isArtist"]),{pwdMismatchState:function(){return this.pwd1===this.pwd2?null:"invalid"},pwdMismatchDescription:function(){return this.pwd2?this.pwd1===this.pwd2?"Passwords match":"Password mismatch, please check you retyped it correctly":"Repeat your password, to avoid typing mistakes"},pwdMismatchDisabled:function(){return!(this.pwd1&&this.pwd1===this.pwd2)}}),methods:c()({save:function(){var t=this;this.$store.dispatch("profile/updateCurrentUser").then(function(){t.$store.dispatch("flash/showMessage",{message:"You've updated your profile"}),t.$router.push({name:"fan-profile-preview"})})},cancel:function(){var t=this;this.$store.dispatch("profile/getCurrentUser").then(function(){t.$router.push({name:"fan-profile-preview"})})},selectAvatar:function(){this.$refs.avatarFileInput.click()},updateAvatar:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(1===(a=t.$refs.avatarFileInput).files.length){e.next=3;break}return e.abrupt("return");case 3:return t.showModal("Uploading avatar image ..."),e.next=6,t.$store.dispatch("profile/setUserAvatar",{file:a.files[0]});case 6:t.hideModal();case 7:case"end":return e.stop()}},e,t)}))()},selectHero:function(){this.$refs.heroFileInput.click()},updateHero:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(1===(a=t.$refs.heroFileInput).files.length){e.next=3;break}return e.abrupt("return");case 3:return t.showModal("Uploading profile image ..."),e.next=6,t.$store.dispatch("profile/setUserHeroImage",{file:a.files[0]});case 6:t.hideModal();case 7:case"end":return e.stop()}},e,t)}))()},updateDate:function(t){this.$store.commit("profile/SET_USER_DOB",t)},updatePassword:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.pwd1&&t.pwd1===t.pwd2){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,t.$store.dispatch("auth/changePassword",t.pwd1);case 5:t.pwd1="",t.pwd2="",t.$store.dispatch("flash/showMessage",{message:"Password changed"}),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),t.$store.dispatch("flash/showMessage",{message:e.t0.message,type:"error"});case 13:case"end":return e.stop()}},e,t,[[2,10]])}))()},cancelPassword:function(){this.pwd1="",this.pwd2=""},deactivateAccount:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("profile/deactivate");case 2:t.$store.dispatch("flash/showMessage",{message:"Account closed"});case 3:case"end":return e.stop()}},e,t)}))()}},Object(u.b)("flash",["showModal","hideModal"]))},ys={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("FanEditProfileTabs"),t._v(" "),a("b-row",[a("b-col",{staticClass:"hero"},[a("img",{staticClass:"hero",attrs:{src:t.heroImage}}),t._v(" "),a("h1",[t._v(t._s(t.displayName))]),t._v(" "),a("div",{staticClass:"avatar"},[a("img",{staticClass:"avatar",attrs:{src:t.avatarImage}}),t._v(" "),a("img",{staticClass:"avatar avatar-change-btn",attrs:{src:"/static/icons/change-picture.png"},on:{click:t.selectAvatar}}),t._v(" "),a("input",{ref:"avatarFileInput",attrs:{type:"file",id:"avatarFileInput"},on:{change:t.updateAvatar}})]),t._v(" "),a("b-button",{staticClass:"btn-secondary",on:{click:t.selectHero}},[t._v("change profile image")]),t._v(" "),a("input",{ref:"heroFileInput",attrs:{type:"file",id:"heroFileInput"},on:{change:t.updateHero}})],1)],1),t._v(" "),a("b-row",{staticClass:"my-1"},[a("b-col",{staticClass:"img-req",attrs:{cols:"12",md:"6"}},[t._v("\n Avatar image: .png, .jpg / 370 x 370 px minimum\n ")]),t._v(" "),a("b-col",{staticClass:"img-req text-right",attrs:{cols:"12",md:"6"}},[t._v("\n Profile image: .png, .jpg / 1140 x 480 px minimum\n ")])],1),t._v(" "),a("b-row",{staticClass:"my-2"},[a("b-col",[a("h3",[t._v("Personal Information")])])],1),t._v(" "),a("b-row",[a("b-col",{attrs:{cols:"12",lg:"
16"}},[a("b-form-group",{attrs:{label:"User Handle",description:"Your user handle, can't be changed"}},[a("b-form-input",{attrs:{id:"username",type:"text",readonly:"",value:"@"+t.currentUser.username}})],1)],1),t._v(" "),a("b-col",{attrs:{cols:"12",lg:"6"}},[a("b-form-group",{attrs:{label:"E-Mail","label-for":"email",description:"Your e-mail address (won't be shown publicly, can't be changed)"}},[a("b-form-input",{attrs:{id:"email",type:"email",readonly:"",value:t.currentUser.email}})],1)],1)],1),t._v(" "),a("b-row",[a("b-col",{attrs:{cols:"12",lg:"6"}},[a("b-form-group",{attrs:{id:"genderGroup",label:"Gender","label-for":"gender",description:"Your gender (optional, won't be shown publicly)"}},[a("b-form-select",{attrs:{id:"gender",options:t.genderOptions},model:{value:t.currentUser.gender,callback:function(e){t.$set(t.currentUser,"gender",e)},expression:"currentUser.gender"}})],1)],1),t._v(" "),a("b-col",{attrs:{cols:"12",lg:"6"}},[a("b-form-group",{attrs:{id:"dobGroup",label:"Date of Birth","label-for":"dob",description:"Your date of birth (optional, won't be shown publicly)"}},[a("datepicker",{attrs:{id:"dob","calendar-class":"dob",value:t.dobDate,"initial-view":"year",format:"MM/dd/yyyy"},on:{selected:t.updateDate}})],1)],1)],1),t._v(" "),a("b-row",[a("b-col",[a("b-form-group",{attrs:{label:"Explicit Content",description:"If disabled, we'll do our best to keep explicit video content, such as strong language or age inappropriate material, from your view"}},[a("b-form-checkbox",{model:{value:t.currentUser.show_explicit,callback:function(e){t.$set(t.currentUser,"show_explicit",e)},expression:"currentUser.show_explicit"}},[t._v("\n Show explicit content\n ")])],1)],1)],1),t._v(" "),a("b-row",[a("b-col",[a("b-form-group",{attrs:{id:"bioGroup",label:"Bio","label-for":"bio",description:"Tell us something about yourself (optional)"}},[a("b-form-textarea",{attrs:{id:"bio",rows:5,"max-rows":10,required:"",placeholder:"Who are you?"},model:{value:t.currentUser.bio,callback:function(e){t.$set(t.currentUser,"bio",e)},expression:"currentUser.bio"}})],1)],1)],1),t._v(" "),a("b-row",{staticClass:"form-actions"},[a("b-col",[a("a",{staticClass:"cancel",attrs:{href:"#"},on:{click:t.cancel}},[t._v("cancel")]),t._v(" "),a("b-button",{staticClass:"btn-rainbow",on:{click:t.save}},[t._v("save information")])],1)],1),t._v(" "),a("b-row",{staticClass:"my-2"},[a("b-col",[a("h3",[t._v("Update password")])])],1),t._v(" "),a("b-row",[a("b-col",{attrs:{cols:"12",lg:"6"}},[a("b-form-group",{attrs:{id:"pwd1Group",label:"New password","label-for":"pwd1",description:"Type in your new password"}},[a("b-form-input",{attrs:{id:"pwd1",type:"password",required:"",placeholder:"New password"},model:{value:t.pwd1,callback:function(e){t.pwd1=e},expression:"pwd1"}})],1)],1),t._v(" "),a("b-col",{attrs:{cols:"12",lg:"6"}},[a("b-form-group",{attrs:{id:"pwd2Group",label:"Repeat new password","label-for":"pwd2",description:t.pwdMismatchDescription}},[a("b-form-input",{attrs:{id:"pwd2",state:t.pwdMismatchState,type:"password",required:"",placeholder:"Repeat new password"},model:{value:t.pwd2,callback:function(e){t.pwd2=e},expression:"pwd2"}})],1)],1)],1),t._v(" "),a("b-row",{staticClass:"form-actions"},[a("b-col",[a("a",{staticClass:"cancel",attrs:{href:"#"},on:{click:t.cancelPassword}},[t._v("cancel")]),t._v(" "),a("b-button",{staticClass:"btn-rainbow",attrs:{disabled:t.pwdMismatchDisabled},on:{click:t.updatePassword}},[t._v("update password")])],1)],1),t._v(" "),a("b-row",[a("b-col",[a("b-button",{directives:[{name:"b-modal",rawName:"v-b-modal.confirmDeactivate",modifiers:{confirmDeactivate:!0}}],staticClass:"btn btn-danger btn-secondary mt-4 mt-sm-0"},[a("font-awesome-icon",{attrs:{icon:"times"}}),t._v("\n  \n Close account\n ")],1)],1)],1),t._v(" "),a("b-modal",{ref:"confirmDeactivate",attrs:{id:"confirmDeactivate",title:"Close account",centered:""},on:{ok:t.deactivateAccount}},[a("div",{staticClass:"content"},[a("p",[t._v("\n Are you sure you want to close your account?\n ")]),t._v(" "),a("p",[t._v("\n You will lose all access to any purchased
1songs.\n ")]),t._v(" "),t.isArtist?a("p",[t._v("\n All your videos and live streams will be removed from Songback.\n Users who purchased your songs will still have access to them.\n ")]):t._e()])])],1)},staticRenderFns:[]};var ws=a("VU/8")(_s,ys,!1,function(t){a("JkGH")},"data-v-90805070",null).exports,Cs={name:"Home",components:{FanEditProfileTabs:os,FanProfileTabs:Hn,ProfileHero:xa},data:function(){return{user:null}},computed:{publicProfilePreview:function(){return this.$route.meta.profilePreview||!1}},created:function(){this.initPage()},watch:{$route:"initPage"},methods:{initPage:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.$route.params.handle){e.next=2;break}return e.abrupt("return",t.resolveHandle(t.$route.params.handle));case 2:if(!t.publicProfilePreview){e.next=6;break}t.user=t.$store.getters["profile/currentUser"],e.next=16;break;case 6:return e.prev=6,e.next=9,t.$store.dispatch("profile/getProfile",{id:t.$route.params.id});case 9:t.user=e.sent,e.next=16;break;case 12:e.prev=12,e.t0=e.catch(6),t.$store.dispatch("flash/showMessage",{message:"Fan account no longer exists",type:"error"}),t.$router.replace({name:"discover"});case 16:case"end":return e.stop()}},e,t,[[6,12]])}))()},resolveHandle:function(t){var e=this;return h()(v.a.mark(function a(){var i,n;return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.$store.dispatch("profile/findProfile",{handle:t});case 2:if((i=a.sent).count){a.next=7;break}return e.$store.dispatch("flash/showMessage",{message:"No such user",type:"error"}),e.$router.replace({name:"discover"}),a.abrupt("return");case 7:(n=i.results[0]).artist&&n.artist.handle.toLowerCase()===t.toLowerCase()?e.$router.replace({name:"artist-about",params:{artistId:n.artist.id}}):e.$router.replace({name:"fan-profile",params:{id:n.id}});case 9:case"end":return a.stop()}},a,e)}))()},formatText:Xe}},ks={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[t.user?a("ProfileHero",{attrs:{user:t.user}}):t._e(),t._v(" "),t.user?a("FanProfileTabs",{attrs:{user:t.user}}):t._e(),t._v(" "),a("div",{staticClass:"content"},[t.user?a("b-row",[t.user.bio?a("b-col",{domProps:{innerHTML:t._s(t.formatText(t.user.bio))}}):a("b-col",{staticClass:"text-center empty"},[t._v("\n This user hasn't added their personal information yet\n ")])],1):t._e()],1)],1)},staticRenderFns:[]};var xs=a("VU/8")(Cs,ks,!1,function(t){a("+yV/")},"data-v-260b4452",null).exports,As={name:"PlaylistList",components:{},props:["items","exclude"],computed:c()({filteredItems:function(){var t=this;return this.exclude?this.items.filter(function(e){return e.id!==t.exclude.id}):this.items},relatedQuery:function(){return this.items?{related:C()(this.items,"id").join(",")}:{}}},Object(u.c)("profile",["currentUser"])),methods:c()({creatorName:function(t){return t.profile.id===this.currentUser.id?"you":this.displayName(t.profile)},thumbStyle:function(t){var e=null,a=!0,i=!1,n=void 0;try{for(var s,r=T()(t.videos);!(a=(s=r.next()).done);a=!0){var o=s.value;if(o.video_thumbnail){e=o.video_thumbnail;break}}}catch(t){i=!0,n=t}finally{try{!a&&r.return&&r.return()}finally{if(i)throw n}}return e?{"background-image":"url("+e+")"}:{"background-image":"url(/static/img/wireframe.svg)","background-size":"contain"}}},$)},Ss={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"videos",class:{"justify-content-start":t.items.length<=3}},t._l(t.filteredItems,function(e){return a("div",{key:e.id,staticClass:"video-card"},[a("router-link",{attrs:{to:{name:"fan-playlist-detail",params:{id:e.id},query:t.relatedQuery}}},[a("div",{staticClass:"thumb",style:t.thumbStyle(e)},[e.videos.length>1?a("div",{staticClass:"length"},[t._v("\n "+t._s(e.videos.length)+" videos\n ")]):t._e(),t._v(" "),1==e.videos.length?a("div",{staticClass:"length"},[t._v("\n "+t._s(e.videos.length)+" video\n ")]):t._e(),t._v(" "),0==e.videos.length?a("div",{staticClass:"length"},[t._v("\n empty\n ")]):t._e()])]),t._v(" "),a("div",{staticClass:"info"},[a("router-link",{staticClass:"title",attrs:{to:{name:"fan-playlist-detail",params:{id:e.id},query:t.relatedQuery}}},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),a("div",{staticClass:"creator"},[t._v("\n Created by "),a("router-link",{attrs:{to:{name:"fan-profile",params:{id:e.profile.id}}}}
1,[t._v(t._s(t.creatorName(e)))])],1)],1)],1)}))},staticRenderFns:[]};var Is=a("VU/8")(As,Ss,!1,function(t){a("1KF5")},"data-v-e4c88e3e",null).exports,Ps={name:"Home",components:{FanProfileTabs:Hn,PlaylistList:Is,ProfileHero:xa},data:function(){return{user:null,playlists:null}},watch:{$route:"initPage"},created:function(){this.initPage()},methods:{initPage:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.$store.dispatch("profile/getProfile",{id:t.$route.params.id}).then(function(e){t.user=e}),t.$store.dispatch("playlist/listPlaylists",{profile_id:t.$route.params.id}).then(function(){var e=h()(v.a.mark(function e(a){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.all();case 2:t.playlists=e.sent;case 3:case"end":return e.stop()}},e,t)}));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}},e,t)}))()}}},Ts={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[t.user?a("ProfileHero",{attrs:{user:t.user}}):t._e(),t._v(" "),t.user?a("FanProfileTabs",{attrs:{user:t.user}}):t._e(),t._v(" "),t.playlists&&t.playlists.length?a("PlaylistList",{attrs:{items:t.playlists}}):t._e(),t._v(" "),t.playlists&&!t.playlists.length?a("b-row",[a("b-col",{staticClass:"text-center empty"},[t._v("\n This user hasn't created any playlists yet\n ")])],1):t._e()],1)},staticRenderFns:[]};var Es=a("VU/8")(Ps,Ts,!1,function(t){a("LpAo")},"data-v-7e423c1a",null).exports,Ls={name:"MyPlaylists",components:{FontAwesomeIcon:g.a,PlaylistList:Is,ObjectListTabs:Ze,Headline:rn},data:function(){return{playlists:[]}},computed:c()({},Object(u.c)("profile",["currentUser"])),watch:{$route:"initPage"},created:function(){this.initPage()},methods:{initPage:function(){var t=this;return h()(v.a.mark(function e(){var a,i;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=void 0,a="following"===t.$route.meta.type?{follower_id:t.currentUser.id}:{profile_id:t.currentUser.id},e.next=4,t.$store.dispatch("playlist/listPlaylists",a);case 4:return i=e.sent,e.next=7,i.all();case 7:t.playlists=e.sent;case 8:case"end":return e.stop()}},e,t)}))()}}},$s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("Headline",{attrs:{title:"Playlists"}}),t._v(" "),a("ObjectListTabs",{scopedSlots:t._u([{key:"default",fn:function(e){return[a("b-nav-item",{attrs:{to:{name:"fan-playlist-list",meta:{type:"my"}}}},[t._v("My Playlists")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"fan-playlist-following",meta:{type:"following"}}}},[t._v("Playlists Following")])]}},{key:"cmd",fn:function(e){return[a("b-button",{staticClass:"btn-rainbow",attrs:{to:{name:"fan-playlist-create"},size:"sm"}},[a("font-awesome-icon",{attrs:{icon:"plus"}}),t._v(" create playlist\n ")],1)]}},{key:"mobileCmd",fn:function(e){return[a("b-nav-item",{attrs:{to:{name:"fan-playlist-create"}}},[a("font-awesome-icon",{attrs:{icon:"plus"}}),t._v(" create playlist")],1)]}}])}),t._v(" "),t.playlists.length?a("PlaylistList",{attrs:{items:t.playlists}}):t._e(),t._v(" "),t.playlists.length?t._e():a("b-row",["my"===t.$route.meta.type?a("b-col",{staticClass:"text-center empty"},[t._v("\n You haven't created any playlists yet\n ")]):a("b-col",{staticClass:"text-center empty"},[t._v("\n You aren't following any playlists yet\n ")])],1)],1)},staticRenderFns:[]};var Os=a("VU/8")(Ls,$s,!1,function(t){a("I02T")},"data-v-588ecb60",null).exports,Rs=a("XDNX"),Fs=a.n(Rs),Ms={name:"PlaylistDetail",components:{FontAwesomeIcon:g.a,Player:ti,PlaylistList:Is,VideoInfo:bi,Headline:rn,VideoCard:ii},data:function(){return{playlist:{},related:[],position:0,video:null}},computed:c()({videos:function(){return this.playlist&&this.playlist.videos||[]},numVideos:function(){return 0===this.videos.length?"no videos":1===this.videos.length?"1 video":this.videos.length+" videos"},numFollowers:function(){return this.playlist.is_public?this.playlist.follower_count?1===this.playlist.follower_count?"1 follower":this.playlist.follower_count+" followers":"no followers":"private"},playlistDuration:function(){var t=Fs()(this.videos,function(t){return t.duration}),e=Math.floor(t/3600),a=Math.floor(t/60)%60,i=t%60+"s";return a&&(i=a+"min "+i),e&&(i=e+"h "+i),i},isMyPlaylist:function(){return!!this.isLoggedIn&&(this.playlist.profile&&this.currentUser.id===this.playlist.profile.id)},isFollowing:function(){return!!this.isLoggedIn&&-1!==this.currentUser.followed_playlists.indexOf(this.playlist.id)}}
1,Object(u.c)("auth",["isLoggedIn"]),Object(u.c)("profile",["currentUser"])),created:function(){this.fetchData()},watch:{$route:"fetchData",position:"updateQueryString"},methods:c()({fetchData:function(){var t=this;return h()(v.a.mark(function e(){var a,i,n,s;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.$route.params,i=t.$route.query,!t.playlist||t.playlist.id!==+a.id){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,t.$store.dispatch("playlist/getPlaylist",{id:a.id});case 6:return t.playlist=e.sent,t.position=+i.pos||0,t.video=t.videos.length>0?t.videos[t.position%t.videos.length]:null,n=i.related?{related:i.related}:{profile_id:t.playlist.profile.id},e.next=12,t.$store.dispatch("playlist/listPlaylists",n);case 12:if(s=e.sent,!i.related){e.next=19;break}return e.next=16,s.all();case 16:e.t0=e.sent,e.next=20;break;case 19:e.t0=s.results;case 20:t.related=e.t0;case 21:case"end":return e.stop()}},e,t)}))()},follow:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.$store.dispatch("playlist/followPlaylist",t.playlist.id);case 1:case"end":return e.stop()}},e,t)}))()},unfollow:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.$store.dispatch("playlist/unfollowPlaylist",t.playlist.id);case 1:case"end":return e.stop()}},e,t)}))()},deletePlaylist:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("playlist/deletePlaylist",t.playlist.id);case 2:t.$store.dispatch("flash/showMessage",{message:"Playlist deleted"}),t.$router.push({name:"fan-playlists-list"});case 4:case"end":return e.stop()}},e,t)}))()},updateQueryString:function(){var t=this.$route;if(this.position!==+t.query.pos){var e=c()({},t.query);e.pos=this.position,this.$router.push({name:t.name,meta:t.meta,params:{id:this.playlist.id},query:e})}}},O,$)},Us={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("Headline",{attrs:{title:"my-videos"===t.playlist.type?"Saved Videos":t.playlist.name}},["playlist"===t.playlist.type&&t.isLoggedIn?a("b-dropdown",{attrs:{size:"sm","no-caret":"",right:""}},[a("template",{slot:"button-content"},[a("font-awesome-icon",{staticClass:"padded",attrs:{icon:"ellipsis-h"}})],1),t._v(" "),t.isMyPlaylist?a("b-dropdown-item",{attrs:{to:{name:"fan-playlist-edit",params:{id:t.playlist.id}}}},[t._v("Edit playlist")]):t._e(),t._v(" "),t.isMyPlaylist?a("b-dropdown-item",{directives:[{name:"b-modal",rawName:"v-b-modal.deleteModal",modifiers:{deleteModal:!0}}]},[t._v("Delete playlist")]):t._e(),t._v(" "),t.isMyPlaylist||t.isFollowing?t._e():a("b-dropdown-item",{on:{click:t.follow}},[t._v("Follow playlist")]),t._v(" "),!t.isMyPlaylist&&t.isFollowing?a("b-dropdown-item",{on:{click:t.unfollow}},[t._v("Unfollow playlist")]):t._e()],2):t._e(),t._v(" "),"my-videos"===t.playlist.type?a("b-button",{staticClass:"btn-secondary",attrs:{to:{name:"fan-playlist-edit",params:{id:t.playlist.id}},size:"sm"}},[t._v("\n edit\n ")]):t._e()],1),t._v(" "),a("b-row",{staticClass:"subheadline"},[a("b-col",[a("small",[t.playlist.profile?a("span",[t._v("\n Created by\n "),t.isMyPlaylist?a("router-link",{attrs:{to:{name:"fan-profile",params:{id:t.currentUser.id}}}},[t._v("you")]):a("router-link",{attrs:{to:{name:"fan-profile",params:{id:t.playlist.profile.id}}}},[t._v(t._s(t.displayName(t.playlist.profile)))]),t._v("\n â\n ")],1):t._e(),t._v(" "),t.playlist.videos?a("span",[t._v("\n "+t._s(t.numVideos)+",\n "+t._s(t.playlistDuration)+"\n â\n ")]):t._e(),t._v(" "),a("span",[t._v("\n "+t._s(t.numFollowers)+"\n ")])])])],1),t._v(" "),a("b-row",[t.video?a("b-col",{staticClass:"player-col"},[a("Player",{attrs:{videos:t.videos,position:t.position,autoplay:"my-videos"!==t.playlist.type,pageUrl:t.$route.fullPath},on:{"update:position":function(e){t.position=e}},model:{value:t.video,callback:function(e){t.video=e},expression:"video"}}
1)],1):a("b-col",{staticClass:"empty"},[t.isMyPlaylist?a("span",[t._v("\n You have not added any videos yet\n ")]):a("span",[t._v("\n No videos\n ")])])],1),t._v(" "),t.video?a("VideoInfo",{attrs:{video:t.video}}):t._e(),t._v(" "),"playlist"===t.playlist.type?a("div",[t.related.length?a("b-row",[a("b-col",[a("h4",[t._v("More playlists")])])],1):t._e(),t._v(" "),t.related.length?a("PlaylistList",{attrs:{items:t.related,exclude:t.playlist}}):t._e()],1):a("div",[t.videos.length?a("b-row",[a("b-col",[a("h4",[t._v("Videos")])])],1):t._e(),t._v(" "),t.videos?a("div",{staticClass:"videos"},t._l(t.videos,function(t){return a("VideoCard",{key:t.id,attrs:{video:t,showDate:!0,showArtist:!0}})})):t._e()],1),t._v(" "),a("b-modal",{ref:"deleteModal",attrs:{id:"deleteModal",title:"Delete Playlist",centered:""},on:{ok:t.deletePlaylist}},[a("div",{staticClass:"content"},[a("p",[t._v("\n Do you really want to delete this playlist?\n ")])])])],1)},staticRenderFns:[]};var Ns=a("VU/8")(Ms,Us,!1,function(t){a("2HG8")},"data-v-f095f1b2",null).exports,Vs={name:"EditPlaylist",components:{FontAwesomeIcon:g.a,SongListEditor:Gi},mixins:[Ht.validationMixin],data:function(){return{playlist:{},videos:[]}},validations:{playlist:{name:{required:qt.required}}},computed:{isRegularPlaylist:function(){return!this.playlist.type||"playlist"===this.playlist.type}},created:function(){this.fetchData()},watch:{$route:"fetchData"},methods:{fetchData:function(){var t=this;return h()(v.a.mark(function e(){var a,i;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.$route.params.id){e.next=3;break}return t.playlist={},e.abrupt("return");case 3:return a=t.$store.getters["profile/currentUser"],e.next=6,t.$store.dispatch("playlist/getPlaylist",{id:t.$route.params.id});case 6:if((i=e.sent).profile.id===a.id){e.next=10;break}return t.$router.push({name:"fan-playlist-list",meta:{type:"my"}}),e.abrupt("return");case 10:t.parsePlaylist(i);case 11:case"end":return e.stop()}},e,t)}))()},parsePlaylist:function(t){this.playlist=t,this.videos=t.videos},savePlaylist:function(){var t=this;return h()(v.a.mark(function e(){var a,i,n,s,r,o,l,c,u;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.$v.playlist.$invalid){e.next=2;break}return e.abrupt("return");case 2:for(t.$store.dispatch("flash/showModal","Saving ..."),a=[],i=!0,n=!1,s=void 0,e.prev=7,r=T()(t.videos);!(i=(o=r.next()).done);i=!0)l=o.value,a.push(l.id);e.next=15;break;case 11:e.prev=11,e.t0=e.catch(7),n=!0,s=e.t0;case 15:e.prev=15,e.prev=16,!i&&r.return&&r.return();case 18:if(e.prev=18,!n){e.next=21;break}throw s;case 21:return e.finish(18);case 22:return e.finish(15);case 23:return t.playlist.video_ids=a,c=!t.playlist.id,e.next=27,t.$store.dispatch(c?"playlist/createPlaylist":"playlist/updatePlaylist",t.playlist);case 27:u=e.sent,t.parsePlaylist(u),c?t.$store.dispatch("flash/showMessage",{message:"Playlist created"}):"my-videos"===t.playlist.type?(t.$store.dispatch("flash/showMessage",{message:"Saved Videos updated"}),t.playlist.video_ids=a,t.$store.getters["profile/currentUser"].default_playlists.my_videos=t.playlist):t.$store.dispatch("flash/showMessage",{message:"Playlist updated"}),t.$store.dispatch("flash/hideModal"),t.$router.push({name:"fan-playlist-detail",params:{id:t.playlist.id}});case 32:case"end":return e.stop()}},e,t,[[7,11,15,23],[16,,18,22]])}))()}}},js={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("b-row",{staticClass:"headline",attrs:{"align-v":"center"}},[t.playlist.id?a("b-col",{staticClass:"header",attrs:{cols:"*"}},[t._v("\n Edit\n ")]):a("b-col",{staticClass:"header",attrs:{cols:"*"}},[t._v("\n Create\n ")])],1),t._v(" "),a("b-row",{staticClass:"command-row",attrs:{"align-v":"center"}},[a("b-col",["my-videos"===t.playlist.type?a("h1",[t._v("\n Saved Videos\n ")]):t.playlist.id?a("h1",[t._v("\n "+t._s(t.playlist.name)+"\n ")]):a("h1",[t._v("\n Create New Playlist\n ")])]),t._v(" "),a("b-col",{attrs:{cols:"*"}},[t.playlist.id?a("router-link",{attrs:{to:{name:"fan-playlist-detail",params:{id:t.playlist.id}}}},[t._v("cancel")]):a("router-link",{attrs:{to:{name:"fan-playlist-list",meta:{type:"my"}}}},[t._v("cancel")]),t._v(" "),a("b-button",{staticClass:"btn-rainbow",attrs:{disabled:t.$v.playlist.$invali
1d},on:{click:t.savePlaylist}},[t._v("save")])],1)],1),t._v(" "),t.isRegularPlaylist?a("b-row",{staticClass:"playlist-details first"},[a("b-col",[a("b-form-group",{attrs:{label:"Playlist Name","label-for":"name"}},[a("b-form-input",{attrs:{type:"text",required:"",placeholder:"Name of the playlist"},model:{value:t.playlist.name,callback:function(e){t.$set(t.playlist,"name",e)},expression:"playlist.name"}})],1),t._v(" "),a("b-form-checkbox",{model:{value:t.playlist.is_public,callback:function(e){t.$set(t.playlist,"is_public",e)},expression:"playlist.is_public"}},[t._v("\n Publicly available (other users may view and follow it)\n ")])],1)],1):t._e(),t._v(" "),a("b-row",{staticClass:"playlist-details videos-headline"},[a("b-col",[a("h3",[t._v("Videos")])])],1),t._v(" "),a("SongListEditor",{attrs:{canAdd:!1,canRemove:!0,canSort:!0},model:{value:t.videos,callback:function(e){t.videos=e},expression:"videos"}}),t._v(" "),t.videos.length?t._e():a("b-row",{staticClass:"playlist-details no-videos"},[a("b-col",[t._v("\n You have not added any videos yet\n ")])],1)],1)},staticRenderFns:[]};var Ds=a("VU/8")(Vs,js,!1,function(t){a("8kKt")},"data-v-584c7004",null).exports,Bs={name:"History",components:{FontAwesomeIcon:g.a,VideoCard:ii,AddToPlaylist:I,Pay:li,Headline:rn,LinkButton:x},computed:c()({history:function(){return this.currentUser.default_playlists.history}},Object(u.c)("profile",["currentUser"])),data:function(){return{playlist:null,purchasedSongs:null}},created:function(){this.initPage()},methods:{initPage:function(){var t=this;return h()(v.a.mark(function e(){var a;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.$store.dispatch("playlist/getPlaylist",{id:t.history.id}),e.next=3,a;case 3:t.playlist=e.sent;case 4:case"end":return e.stop()}},e,t)}))()},clearHistory:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("playlist/updatePlaylist",{id:t.history.id,video_ids:[]});case 2:t.playlist.videos=[],t.history.video_ids=[];case 4:case"end":return e.stop()}},e,t)}))()},removeVideo:function(t){var e=this;return h()(v.a.mark(function a(){return v.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.$store.dispatch("playlist/removePlaylistSong",{playlistId:e.history.id,songId:t.id});case 2:e.playlist.videos=Ne()(e.playlist.videos,function(e){return e.id!==t.id});case 3:case"end":return a.stop()}},a,e)}))()}}},Hs={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("Headline",{attrs:{title:"Recent Plays"}},[a("b-button",{staticClass:"btn-secondary",on:{click:t.clearHistory}},[a("font-awesome-icon",{attrs:{icon:"times"}}),t._v("  clear history\n ")],1)],1),t._v(" "),t.playlist?a("div",t._l(t.playlist.videos,function(e){return a("b-row",{key:e.id,attrs:{"align-v":"center"}},[a("b-col",{staticClass:"info",attrs:{cols:"8"}},[a("LinkButton",{staticClass:"remove",on:{click:function(a){t.removeVideo(e)}}},[a("font-awesome-icon",{attrs:{icon:"times"}})],1),t._v(" "),a("VideoCard",{staticClass:"horizontal collapse",attrs:{video:e,showDate:!0,showArtist:!0,related:t.playlist.videos}})],1),t._v(" "),a("b-col",{staticClass:"text-right actions",attrs:{cols:"4"}},[a("LinkButton",{staticClass:"remove",on:{click:function(a){t.removeVideo(e)}}},[a("font-awesome-icon",{attrs:{icon:"times"}})],1),t._v(" "),a("font-awesome-icon",{staticClass:"add-button",attrs:{icon:"plus",id:"historyAddToPlaylist"+e.id}}),t._v(" "),a("AddToPlaylist",{attrs:{target:"historyAddToPlaylist"+e.id,video:e}}),t._v(" "),a("Pay",{attrs:{video:e}})],1)],1)})):t._e()],1)},staticRenderFns:[]};var qs=a("VU/8")(Bs,Hs,!1,function(t){a("gd2M")},"data-v-5384dc76",null).exports,zs={name:"Downloads",components:{FontAwesomeIcon:g.a,Headline:rn},data:function(){return{fields:[{key:"title",label:"Title",class:"text-center"},{key:"album",label:"Album",class:"text-center"},{key:"artist",label:"Artist",class:"text-center"},{key:"date",label:"Purchased",class:"text-center"},{key:"dl",label:"Actions",class:"text-center"}],items:[]}},created:function(){this.fetchData()},methods:{fetchData:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=C.a,e.next=3,t.$store.dispatch("song/refreshSongsWithAccess");case 3:e.t1=e.sent,e.t2=function(t){return{artist:t.song.artist,album:t.album,song:t.song,date:xt.utc(new Date(t.created_at)).fromNow(),dl:t.download_url}},t.items=(0,e.t0)(e.t1,e.t2);case 6:case"end":return e.stop()}},e,t)}))()},download:function(t){var e=this;return h()(v.a.mark(function a(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:window.location=t.dl;case 1:case"end":return e.stop()}},a,e)}))()}}},Ws={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("Headline",{attrs:{title:"Digital downloads"}}),t._v(" "),a("b-row",[a("b-col",[a("b-table",{staticClass:"sb-table table-responsive-md",attrs:{items:t.items,fields:t.fields},scopedSlots:t._u([{key:"title",fn:function(e){return[a("router-link",{staticClass:"link",attrs:{to:{name:"video-detail",params:{id:e.item.song.id}}}},[t._v(t._s(e.item.song.title))])]}},{key:"album",fn:function(e){return[e.item.album?a("router-link",{staticClass:"link",attrs:{to:{name:"album-detail",params:{id:e.item.album.id}}}},[t._v(t._s(e.item.album.title))]):a("span",[t._v("-")])]}},{key:"artist",fn:function(e){return[a("router-link",{staticClass:"link",attrs:{to:{name:"artist-about",params:{artistId:e.item.artist.id}}}},[t._v(t._s(e.item.artist.name))])]}},{key:"dl",fn:function(e){return[a("b-button",{staticClass:"btn-secondary dl",attrs:{size:"sm"},on:{click:function(a){t.download(e.item)}}},[a("i",{staticClass:"sl-icon-cloud-download"}),t._v("\n Download\n ")])]}}])})],1)],1)],1)},staticRenderFns:[]};var Gs=a("VU/8")(zs,Ws,!1,function(t){a("3xwC")},"data-v-128bfa72",null).exports,Ys={name:"Watchlist",components:{BigEventCard:ki,EventCard:bn,Headline:rn},data:function(){return{}},created:function(){this.initPage()},computed:{watchlist:function(){return Ne()(this.$store.getters["profile/currentUser"].watchlist,function(t){return xt(t.start).isAfter()})},upcoming:function(){return this.watchlist.length?this.watchlist[0]:null},future:function(){return this.watchlist.length<2?[]:this.watchlist.slice(1)}},methods:{initPage:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("profile/getCurrentUser");case 2:case"end":return e.stop()}},e,t)}))()},startsIn:function(t){return xt(t.start).fromNow()},when:function(t){return xt(t.start).format("MMM Do | h:mm a")}}},Ks={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("Headline",{attrs:{title:"Watchlist"}}),t._v(" "),a("div",{staticClass:"col-12 col-lg-9"},[t.upcoming?a("b-row",[a("b-col",{staticClass:"upcoming"},[t._v("\n Your next live streaming event starts "),a("em",[t._v(t._s(t.startsIn(t.upcoming)))]),t._v(" "),a("BigEventCard",{attrs:{event:t.upcoming}})],1)],1):t._e()],1),t._v(" "),t.future.length?a("b-row",{staticClass:"future-headline"},[a("b-col",[a("h5",[t._v("Other events on your watchlist")])])],1):t._e(),t._v(" "),a("div",{staticClass:"future"},t._l(t.future,function(t){return a("EventCard",{key:t.id,attrs:{live:t,withWatchlistButton:!0}})}))],1)},staticRenderFns:[]};var Xs=a("VU/8")(Ys,Ks,!1,function(t){a("qAdw")},"data-v-b8601630",null).exports,Js={components:{Player:ti},data:function(){return{contentId:null}},computed:{},methods:{},created:function(){var t=this;this.$store.dispatch("attendLiveEvent",{id:this.$route.params.id}).then(function(e){t.contentId=e.dacast_content_id})}},Qs={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("h1",[a("router-link",{attrs:{to:"https://zpl.io/blmD8gG"}},[t._v("Fan - Live Stream")])],1),t._v(" "),a("p",[t._v("\n When the live stream is online (streaming), the content should have a video + live chat widget\n like in "),a("router-link",{attrs:{to:"https://zpl.io/blmDPPD"}},[t._v("Artist Live Stream")]),t._v(" design.\n ")],1),t._v(" "),null!==t.contentId?a("Player",{attrs:{"content-id":t.contentId,autoplay:!0}}):t._e(),t._v(" "),a("p",[t._v("\n This tests the frontend - backend - dacast integration and requires the live event to be created\n on the backend that corresponds to the correct live channel on DaCast. For regular testing of\n video player that hardcodes an existing video file, go to\n "),a("router-link",{attrs:{to:"/video/"}},[t._v("Demo Video Player")]),t._v(" page.\n ")],1),t._v(" "),a("p",[t._v("\n Go back to "),a("router-link",{attrs:{to:"/"}},[t._v("Hello World")]),t._v(" page.\n ")],1)],1)},staticRenderFns:[]};var Zs=a("VU/8")(Js,Qs,!1,function(t){a("tuLD"),a("P7HJ")},"data-v-0db5662c",null).exports,tr={name:"FanMessages",components:{Headline:rn,Messages:Wn},computed:c()({},Object(u.c)("profile",["currentUser","fanInbox"]))},er={render:function(){var t=this.$createElement,e=this._self._c||t;return e("b-container",{staticClass:"container"},[e("Headline",{attrs:{title:"Messages"}}),this._v(" "),this.fanInbox?e("Messages",{attrs:{inbox:this.fanInbox}}):this._e()],1)},staticRenderFns:[]};var ar=a("VU/8")(tr,er,!1,function(t){a("kn1A")},"data-v-aaa5c2e4",null).exports,ir={name:"Home",components:{FontAwesomeIcon:g.a,SearchBox:gt,FanEditProfileTabs:os,ProfileHero:xa,LinkButton:x,CreditCardLinked:ga},data:function(){return{stripeCheckout:null,fields:[{key:"date",label:"Date",class:"text-center"},{key:"title",label:"Title"},{key:"artist",label:"Artist"},{key:"type",label:"Type",class:"text-center"},{key:"amount",label:"Amount",class:"text-center"}],items:[]}},computed:c()({hasBillingInfo:function(){return!!this.currentUser.stripe_customer_id},cardInfo:function(){return this.currentUser.stripe_customer_id&&this.currentUser.stripe_customer_data.sources.data[0]||{}},cardBrand:function(){var t=this.cardInfo;return t?t.brand:""},cardLast4:function(){var t=this.cardInfo;return t?t.last4:""},cardExp:function(){var t=this.cardInfo;return t?t.exp_month+"/"+t.exp_year:""}},Object(u.c)("profile",["currentUser"])),created:function(){this.getPayments()},mounted:function(){window.addEventListener("popstate",this.closeStripeDialog)},beforeDestroy:function(){window.removeEventListener("popstate",this.closeStripeDialog)},methods:{closeStripeDialog:function(){this.stripeCheckout&&(this.stripeCheckout.cancel(),this.stripeCheckout=null)},addCard:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.stripeCheckout=fa(t.$store),e.prev=1,e.next=4,t.stripeCheckout.finish;case 4:t.$refs.ccLinked.show(),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),console.log("can't capture cc",e.t0);case 10:case"end":return e.stop()}},e,t,[[1,7]])}))()},removeCard:function(){this.$store.dispatch("payment/removeCard")},getPayments:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=C.a,e.next=3,t.$store.dispatch("payment/listPayments");case 3:e.t1=e.sent.results,e.t2=function(t){return{artist:t.artist,type:t.is_cancelled?"refunded":t.type,title:t.description,date:xt(t.created_at).format("MM/DD/YYYY h:mm a"),amount:"$ "+t.amount.toFixed(2)}},t.items=(0,e.t0)(e.t1,e.t2);case 6:case"end":return e.stop()}},e,t)}))()},artistLink:function(t){return{name:"artist-about",params:{artistId:t.id}}}}},nr={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("FanEditProfileTabs",{attrs:{user:t.currentUser}}),t._v(" "),a("b-row",[a("b-col",[a("h4",[t._v("Your credit card information")])])],1),t._v(" "),t.hasBillingInfo?a("b-row",[a("b-col",{staticClass:"cc-info cc-present"},[t._v("\n Card linked to account:\n  \n "),a("i",{staticClass:"sl-icon-credit-card"}),t._v(" "+t._s(t.cardBrand)+" "),a("b",[t._v("********"+t._s(t.cardLast4))]),t._v(" exp "),a("b",[t._v(t._s(t.cardExp))]),t._v("\n  \n "),a("LinkButton",{attrs:{u:!0},on:{click:t.addCard}},[t._v("Update card")]),t._v(" "),a("LinkButton",{directives:[{name:"b-modal",rawName:"v-b-modal.confirmRemoveCard",modifiers:{confirmRemoveCard:!0}}],attrs:{u:!0}},[t._v("Remove card")])],1)],1):a("b-row",[a("b-col",{staticClass:"cc-info cc-missing"},[a("i",{staticClass:"sl-icon-credit-card"}),t._v(" "),a("LinkButton",{attrs:{u:!0},on:{click:t.addCard}},[t._v("Add a credit card")]),t._v(" to be able to make purchases and donate to artists.\n ")],1)],1),t._v(" "),a("b-row",{staticClass:"headline"},[a("b-col",[a("h4",[t._v("Purchases")])])],1),t._v(" "),a("b-row",[a("b-col",[a("b-table",{staticClass:"sb-table",attrs:{items:t.items,fields:t.fields},scopedSlots:t._u([{key:"artist",fn:function(e){return a("span",{},[a("router-link",{attrs:{to:t.artistLink(e.value)}},[t._v(t._s(e.value.name))])],1)}}])})],1)],1),t._v(" "),a("b-modal",{ref:"confirmRemoveCard",attrs:{id:"c
1onfirmRemoveCard",title:"Remove credit card",centered:""},on:{ok:t.removeCard}},[a("div",{staticClass:"content"},[a("p",[t._v("\n Would you like to remove your credit card from Songback?\n ")]),t._v(" "),a("p",[t._v("\n You'll need to provide a credit card the next time you make a purchase or donation.\n ")])])]),t._v(" "),a("CreditCardLinked",{ref:"ccLinked"})],1)},staticRenderFns:[]};var sr=a("VU/8")(ir,nr,!1,function(t){a("GM7T")},"data-v-364eb15b",null).exports,rr={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("h1",[e("router-link",{attrs:{to:"https://zpl.io/2pdvBBN"}},[this._v("Fan - Payment History")])],1)])},staticRenderFns:[]};var or=a("VU/8")(null,rr,!1,function(t){a("rur/")},"data-v-6c5fe3f3",null).exports,lr={name:"FollowedArtists",components:{ProfileHero:xa,Headline:rn},data:function(){return{artists:[]}},computed:c()({},Object(u.c)("profile",["currentUser"])),created:function(){this.initPage()},watch:{$route:"initPage"},methods:{initPage:function(){var t=this;return h()(v.a.mark(function e(){return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("profile/listFollowedArtists");case 2:t.artists=e.sent;case 3:case"end":return e.stop()}},e,t)}))()}}},cr={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("Headline",{attrs:{title:"Following"}}),t._v(" "),a("b-row",[t.artists.length?a("b-col",{staticClass:"list"},t._l(t.artists,function(e){return a("div",{key:e.id,staticClass:"artist"},[a("router-link",{staticClass:"name",attrs:{to:{name:"artist-about",params:{artistId:e.id}}}},[a("img",{attrs:{src:e.avatar_image}})]),t._v(" "),a("router-link",{staticClass:"name",attrs:{to:{name:"artist-about",params:{artistId:e.id}}}},[t._v(t._s(e.name))])],1)})):a("b-col",{staticClass:"empty"},[t._v("\n You're not following any artists\n ")])],1)],1)},staticRenderFns:[]};var ur=[{path:"/@:handle/",name:"user-permalink",component:xs},{path:"/home/",name:"fan-home",component:gs,meta:{userType:"fan"}},{path:"/profile/:id/about/",name:"fan-profile",component:xs},{path:"/profile/:id/featured/",name:"fan-featured",component:ns},{path:"/profile/edit/",name:"fan-profile-edit",component:ws},{path:"/profile/preview/",name:"fan-profile-preview",component:xs,meta:{profilePreview:!0}},{path:"/profile/following/",name:"fan-followed-artists",component:a("VU/8")(lr,cr,!1,function(t){a("oKkS")},"data-v-3d301a34",null).exports},{path:"/profile/blocked/",name:"fan-blocked-users",component:us},{path:"/profile/:id/playlists/",name:"fan-profile-playlists",component:Es},{path:"/playlists/create/",name:"fan-playlist-create",component:Ds},{path:"/playlists/my/",name:"fan-playlist-list",component:Os,meta:{type:"my"}},{path:"/playlists/following/",name:"fan-playlist-following",component:Os,meta:{type:"following"}},{path:"/playlist/:id/",name:"fan-playlist-detail",component:Ns},{path:"/playlist/:id/edit/",name:"fan-playlist-edit",component:Ds},{path:"/history/",name:"fan-history",component:qs},{path:"/downloads/",name:"fan-downloads",component:Gs},{path:"/watchlist/",name:"fan-watchlist",component:Xs},{path:"/live/:id/",name:"fan-live-stream",component:Zs},{path:"/profile/messages/",name:"fan-messages",component:ar},{path:"/payments/info/",name:"fan-billing-info",component:sr},{path:"/payments/history/",name:"fan-payment-history",component:or}],dr={name:"DiscoverTabs",components:{ObjectListTabs:Ze},props:{results:Boolean}},vr={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tabs"},[a("ObjectListTabs",{scopedSlots:t._u([{key:"default",fn:function(e){return[a("b-nav-item",{attrs:{to:{name:t.results?"discover-results":"discover"}}},[t._v("Discover")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"discover-genre"}}},[t._v("Genre")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"discover-mood"}}},[t._v("Mood")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"discover-instrument"}}},[t._v("Instrument")])]}}])})],1)},staticRenderFns:[]};var pr=a("VU/8")(dr,vr,!1,function(t){a("C69L")},"data-v-9f39517a",null).exports,hr=a("m4tL"),mr=a.n(hr),fr={name:"DiscoverResults",components:{FontAwesomeIcon:g.a,PlaylistList:Is,LinkButton:x,VideoCard:ii,EventCard:bn},props:{query:String,tag:String,recommended:Boolean,action:String},data:function(){return{type:null,artists:null,albums:null,videos:null,allVideos:null,playlists:null,live_events:null}},computed:c()({},Object(u.c)("profile",["currentUser"])),created:function(){this.search()},watch:{query:"search",type:"search",recommended:"search",action:"clearType"},methods:c()({search:function(){var t=this;return h()(v.a.mark(function e(){var a,i,n,s,r,o,l,c,u,d=(a=h()(v.a.mark(function t(e,a){var i;return v.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:if(i=t.sent){t.next=5;break}return t.abrupt("return",null);case 5:return t.abrupt("return",a?i.all():i.results);case 6:case"end":return t.stop()}},t,this)})),function(t,e){return a.apply(this,arguments)});return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.artists=null,t.albums=null,t.videos=null,t.playlists=null,t.live_events=null,i=null!==t.type,!t.recommended){e.next=17;break}return e.next=9,t.$store.dispatch("search/getRecommendations");case 9:return n=e.sent,t.artists=i?n.artists:mr()(n.artists,3),t.albums=i?n.albums:mr()(n.albums,4),t.allVideos=n.videos,t.videos=i?t.allVideos:mr()(t.allVideos,4),t.playlists=i?n.playlists:mr()(n.playlists,4),t.live_events=i?n.live_events:mr()(n.live_events,4),e.abrupt("return");case 17:if(s={},!t.query){e.next=22;break}s.q=t.query,e.next=27;break;case 22:if(!t.tag){e.next=26;break}s.tags=t.tag,e.next=27;break;case 26:return e.abrupt("return");case 27:return r=U.a.resolve(),o=U.a.resolve(),l=U.a.resolve(),c=U.a.resolve(),u=U.a.resolve(),t.type&&"artist"!==t.type||(r=t.searchArtists(s)),t.type&&"album"!==t.type||(o=t.searchAlbums(s)),t.type&&"song"!==t.type||(l=t.searchSongs(s)),t.type&&"playlist"!==t.type||(c=t.searchPlaylists(s)),t.type&&"live"!==t.type||(u=t.searchLiveEvents(s)),e.t0=C.a,e.next=40,d(r,!!t.type);case 40:return e.t1=e.sent,e.t2=function(t){return t.artist},t.artists=(0,e.t0)(e.t1,e.t2),e.t3=C.a,e.next=46,d(o,!!t.type);case 46:return e.t4=e.sent,e.t5=function(t){return t.album},t.albums=(0,e.t3)(e.t4,e.t5),e.t6=C.a,e.next=52,d(l,!!t.type);case 52:return e.t7=e.sent,e.t8=function(t){return t.song},t.videos=(0,e.t6)(e.t7,e.t8),t.allVideos=t.videos,e.t9=C.a,e.next=59,d(c,!!t.type);case 59:return e.t10=e.sent,e.t11=function(t){return t.playlist},t.playlists=(0,e.t9)(e.t10,e.t11),e.t12=C.a,e.next=65,d(u,!!t.type);case 65:e.t13=e.sent,e.t14=function(t){return t.live_event},t.live_events=(0,e.t12)(e.t13,e.t14),i||(t.artists=mr()(t.artists,3),t.albums=mr()(t.albums,4),t.videos=mr()(t.videos,4),t.playlists=mr()(t.playlists,4),t.live_events=mr()(t.live_events,4));case 69:case"end":return e.stop()}},e,t)}))()},getPublishDate:function(t){return t?xt.utc(t.release_date).format("MM/DD/YYYY"):""},getSongCount:function(t){return 0===t.songs.length?"no songs":1===t.songs.length?"1 song":t.songs.length+" songs"},getArtistSongCount:function(t){return 0===t.video_count?"no videos":1===t.video_count?"1 video":t.video_count+" videos"},lgIf:function(t){return this.type===t?12:6},clearType:function(){this.type=null}},Object(u.b)("search",["searchAlbums","searchArtists","searchPlaylists","searchSongs","searchLiveEvents"]))},br={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("b-row",[t.type&&"artist"!==t.type?t._e():a("b-col",{staticClass:"result-section",attrs:{cols:"12",lg:t.lgIf("artist")}},[a("div",{staticClass:"headline"},[t.recommended?a("div",{staticClass:"title"},[t._v("\n Top Artists\n ")]):a("div",{staticClass:"title"},[t._v("\n Artists\n ")]),t._v(" "),a("div",{staticClass:"more"},[t.type?a("LinkButton",{attrs:{u:!0},on:{click:t.clearType}},[t._v("Back")]):a("LinkButton",{staticClass:"text-nowrap",attrs:{u:!0},on:{click:function(e){t.type="artist"}}},[t._v("See all")])],1)]),t._v(" "),a("div",{staticClass:"items artists"},[t.artists?t._e():a("div",{staticClass:"wait"},[a("font-awesome-icon",{attrs:{icon:"spinner",size:"lg",spin:""}})],1),t._v(" "),t.artists&&!t.artists.length?a("div",{staticClass:"empty pt-3"},[t._v("\n no results\n ")]):t._e(),t._v(" "),t._l(t.artists,function(e){return t.artists?a("div",{key:e.id,staticClass:"item artist pt-3"},[a("router-link",{attrs:{to:{name:"artist-about",params:{artistId:e.id}}}},[a("img",{staticClass:"avatar",attrs:{src:e.avatar_image||"/static/img/default-avatar.jpg"}})]),t._v(" "),a("div",{staticClass:"info"},[a("div",{staticClass:"name"},[a("router-link",{attrs:{to:{name:"artist-about",params:{artistId:e.id}}}},[t._v("\n "+t._s(e.name)+"\n ")])],1),t._v(" "),a("div",{staticClass:"videos"},[t._v("\n "+t._s(t.getArtistSongCount(e))+"\n ")])])],1):t._e()})],2)]),t._v(" "),t.type&&"album"!==t.type?t._e():a("b-col",{staticClass:"result-section",attrs:{cols:"12",lg:t.lgIf("album")}},[a("div",{staticClass:"headline"},[t.recommended?a("div",{staticClass:"title"},[t._v("\n Latest Album Releases\n ")]):a("div",{staticClass:"title"},[t._v("\n Albums\n ")]),t._v(" "),a("div",{staticClass:"more"},[t.type?a("LinkButton",{attrs:{u:!0},on:{click:t.clearType}},[t._v("Back")]):a("LinkButton",{staticClass:"text-nowrap",attrs:{u:!0},on:{click:function(e){t.type="album"}}},[t._v("See all")])],1)]),t._v(" "),a("div",{staticClass:"items pt-3"},[t.albums?t._e():a("div",{staticClass:"wait"},[a("font-awesome-icon",{attrs:{icon:"spinner",size:"lg",spin:""}})],1),t._v(" "),t.albums&&!t.albums.length?a("div",{staticClass:"empty"},[t._v("\n no results\n ")]):t._e(),t._v(" "),t._l(t.albums,function(e){return t.albums?a("div",{key:e.id,staticClass:"item album"},[a("div",[a("router-link",{attrs:{to:{name:"album-detail",params:{id:e.id}}}},[a("img",{staticClass:"cover",attrs:{src:e.cover}})])],1),t._v(" "),a("div",{staticClass:"info"},[a("div",{staticClass:"artist-name"},[a("router-link",{attrs:{to:{name:"artist-about",params:{artistId:e.artist.id}}}},[t._v(t._s(e.artist.name))])],1),t._v(" "),a("div",{staticClass:"name"},[a("router-link",{attrs:{to:{name:"album-detail",params:{id:e.id}}}},[t._v(t._s(e.title))])],1),t._v(" "),a("div",{staticClass:"songs"},[t._v("\n "+t._s(t.getPublishDate(e))+" "),a("br"),t._v(" "+t._s(t.getSongCount(e))+"\n ")])])]):t._e()})],2)])],1),t._v(" "),t.type&&"song"!==t.type?t._e():a("b-row",{staticClass:"pt-4"},[a("b-col",{staticClass:"result-section"},[a("div",{staticClass:"headline"},[t.recommended?a("div",{staticClass:"title"},[t._v("\n Popular Videos\n ")]):a("div",{staticClass:"title"},[t._v("\n Videos\n ")]),t._v(" "),a("div",{staticClass:"more"},[t.type?a("LinkButton",{attrs:{u:!0},on:{click:t.clearType}},[t._v("Back")]):a("LinkButton",{staticClass:"text-nowrap",attrs:{u:!0},on:{click:function(e){t.type="song"}}},[t._v("See all")])],1)]),t._v(" "),a("div",{staticClass:"items popular pt-3",class:{"justify-content-start":!t.videos||t.videos.length<=3}}
1,[t.videos?t._e():a("div",{staticClass:"wait"},[a("font-awesome-icon",{attrs:{icon:"spinner",size:"lg",spin:""}})],1),t._v(" "),t.videos&&!t.videos.length?a("div",{staticClass:"empty"},[t._v("\n no results\n ")]):t._e(),t._v(" "),t._l(t.videos,function(e){return a("VideoCard",{key:e.id,attrs:{video:e,related:t.allVideos,showDate:!0,showArtist:!0}})})],2)])],1),t._v(" "),t.type&&"live"!==t.type?t._e():a("b-row",{staticClass:"pt-4"},[a("b-col",{staticClass:"result-section"},[a("div",{staticClass:"headline"},[t.recommended?a("div",{staticClass:"title"},[t._v("\n Trending Live Streams\n ")]):a("div",{staticClass:"title"},[t._v("\n Live Streams\n ")]),t._v(" "),a("div",{staticClass:"more"},[t.type?a("LinkButton",{attrs:{u:!0},on:{click:t.clearType}},[t._v("Back")]):a("LinkButton",{staticClass:"text-nowrap",attrs:{u:!0},on:{click:function(e){t.type="live"}}},[t._v("See all")])],1)]),t._v(" "),a("div",{staticClass:"items trending pt-3"},[t.live_events?t._e():a("div",{staticClass:"wait"},[a("font-awesome-icon",{attrs:{icon:"spinner",size:"lg",spin:""}})],1),t._v(" "),t.live_events&&!t.live_events.length?a("div",{staticClass:"empty"},[t._v("\n no results\n ")]):t._e(),t._v(" "),t._l(t.live_events,function(t){return a("EventCard",{key:t.id,staticClass:"event-card",attrs:{live:t,withWatchlistButton:!0}})})],2)])],1),t._v(" "),t.recommended||t.type&&"playlist"!==t.type?t._e():a("b-row",{staticClass:"pt-4"},[a("b-col",{staticClass:"result-section"},[a("div",{staticClass:"headline"},[a("div",{staticClass:"title"},[t._v("\n Playlists\n ")]),t._v(" "),a("div",{staticClass:"more"},[t.type?a("LinkButton",{attrs:{u:!0},on:{click:t.clearType}},[t._v("Back")]):a("LinkButton",{staticClass:"text-nowrap",attrs:{u:!0},on:{click:function(e){t.type="playlist"}}},[t._v("See all")])],1)]),t._v(" "),t.playlists?t._e():a("div",{staticClass:"wait"},[a("font-awesome-icon",{attrs:{icon:"spinner",size:"lg",spin:""}})],1),t._v(" "),t.playlists&&!t.playlists.length?a("div",{staticClass:"empty pt-3"},[t._v("\n no results\n ")]):t._e(),t._v(" "),t.playlists&&t.playlists.length?a("PlaylistList",{attrs:{items:t.playlists}}):t._e()],1)],1)],1)},staticRenderFns:[]};var gr=a("VU/8")(fr,br,!1,function(t){a("zGNA")},"data-v-0d70c94b",null).exports,_r={name:"Discover",components:{FontAwesomeIcon:g.a,DiscoverTabs:pr,DiscoverResults:gr},data:function(){return{artists:null,albums:null,videos:null,playlists:null,q:"",query:null}},watch:{$route:"initPage"},created:function(){this.initPage()},methods:{initPage:function(){this.q=this.$route.query.q||"",this.q?this.search():(this.query=null,"results"===this.$route.meta.action&&this.$router.push({name:"discover"}))},onKeyUp:function(t){"Enter"===t.key&&this.search()},search:function(){"results"===this.$route.meta.action?this.query=this.q:this.$router.push({name:"discover-results",query:{q:this.q}})}}},yr={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"hero"},[a("img",{attrs:{src:"/static/img/discover-hero.jpg"}}),t._v(" "),a("div",{staticClass:"wrap"},[a("div",{staticClass:"content"},[a("h1",[t._v("Discover")]),t._v(" "),t._m(0),t._v(" "),a("p",[a("b-form-input",{attrs:{type:"text",placeholder:"Search by artist, lyrics, title, genre, mood, or instrument"},nativeOn:{keyup:function(e){return t.onKeyUp(e)}},model:{value:t.q,callback:function(e){t.q=e},expression:"q"}})],1),t._v(" "),a("p",[a("b-button",{staticClass:"btn-rainbow",on:{click:t.search}},[a("font-awesome-icon",{attrs:{icon:"search"}}),t._v(" Â search\n ")],1)],1)])])]),t._v(" "),a("b-container",{staticClass:"section-container"},[a("DiscoverTabs",{attrs:{results:"results"===t.$route.meta.action}})],1),t._v(" "),a("b-container",{staticClass:"section-container"},[t.query?a("b-row",{staticClass:"py-4"},[a("b-col",[a("h4",[t._v("Your search results")])])],1):t._e(),t._v(" "),t.query?a("DiscoverResults",{attrs:{query:t.query,action:t.$route.meta.action}}):a("DiscoverResults",{attrs:{recommended:!0,action:t.$route.meta.action}})],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"sub"},[this._v("\n Find the best content, filtered and chosen "),e("br"),this._v(" the way you want.\n ")])}]};var wr=a("VU/8")(_r,yr,!1,function(t){a("LN65")},"data-v-d3195568",null).exports,Cr={genre:ta,mood:ea,instrument:aa},kr={name:"DiscoverGenre",components:{FontAwesomeIcon:g.a,DiscoverTabs:pr},computed:{type:function(){return this.$route.meta.type},itemClass:function(){return["item",this.type]},items:function(){return Cr[this.type]}},methods:{itemName:function(t){return t.replace(/\//," / ")}
1,itemLink:function(t){return{name:"discover-"+this.type+"-detail",params:{tag:t}}},getThumbnail:function(t,e){return ca(sa,t,e)}}},xr={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("DiscoverTabs"),t._v(" "),a("b-row",[a("b-col",[a("div",{staticClass:"items"},t._l(t.items,function(e){return a("div",{key:e,class:t.itemClass},[a("router-link",{attrs:{to:t.itemLink(e)}},[a("div",{staticClass:"imgwrap"},[a("img",{attrs:{src:t.getThumbnail(t.type,e)}})]),t._v(" "),"instrument"!==t.type?a("div",{staticClass:"gradient"},[t._v("Â ")]):t._e()]),t._v(" "),a("div",{staticClass:"name"},[a("router-link",{attrs:{to:t.itemLink(e)}},[t._v(t._s(t.itemName(e)))])],1)],1)}))])],1)],1)},staticRenderFns:[]};var Ar=a("VU/8")(kr,xr,!1,function(t){a("WMpW")},"data-v-1d4efa89",null).exports,Sr={name:"Discover",components:{FontAwesomeIcon:g.a,DiscoverTabs:pr,DiscoverResults:gr},data:function(){return{artists:null,albums:null,videos:null,playlists:null,q:"",query:null}},computed:{tagHero:function(){return t=this.type,e=this.tag,ca(ra,t,e);var t,e},type:function(){return this.$route.meta.type},tag:function(){return this.$route.params.tag}},methods:{}},Ir={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tag-detail"},[a("div",{staticClass:"hero"},[a("img",{attrs:{src:t.tagHero}}),t._v(" "),a("div",{staticClass:"wrap"},[a("div",{staticClass:"content"},[a("span",{staticClass:"btn-decorated"},[t._v(t._s(t.tag))])])])]),t._v(" "),a("b-container",{staticClass:"results-container"},[a("DiscoverTabs")],1),t._v(" "),a("b-container",{staticClass:"results-container"},[t.tag?a("DiscoverResults",{attrs:{tag:t.tag}}):t._e()],1)],1)},staticRenderFns:[]};var Pr=a("VU/8")(Sr,Ir,!1,function(t){a("56c7")},"data-v-6c69493b",null).exports,Tr=[{path:"/discover/search/",name:"discover",component:wr,meta:{requireLogin:!0}},{path:"/discover/results/",name:"discover-results",component:wr,meta:{action:"results",requireLogin:!0}},{path:"/discover/genre/",name:"discover-genre",component:Ar,meta:{type:"genre",requireLogin:!0}},{path:"/discover/genre/:tag",name:"discover-genre-detail",component:Pr,meta:{type:"genre",requireLogin:!0}},{path:"/discover/mood/",name:"discover-mood",component:Ar,meta:{type:"mood",requireLogin:!0}},{path:"/discover/mood/:tag",name:"discover-mood-detail",component:Pr,meta:{type:"mood",requireLogin:!0}},{path:"/discover/instrument/",name:"discover-instrument",component:Ar,meta:{type:"instrument",requireLogin:!0}},{path:"/discover/instrument/:tag",name:"discover-instrument-detail",component:Pr,meta:{type:"instrument",requireLogin:!0}}],Er={name:"AlbumDetail",components:{FontAwesomeIcon:g.a,Player:ti,VideoInfo:bi,AlbumCard:yi,Pay:li},data:function(){return{album:null,related:[],position:0,video:null}},computed:c()({songs:function(){return this.album&&this.album.songs||[]},numVideos:function(){return 0===this.songs.length?"no songs":1===this.songs.length?"1 song":this.songs.length+" songs"},filteredRelated:function(){var t=this;return this.album?Ne()(this.related,function(e){return t.album.id!==e.id}):this.related}},Object(u.c)("profile",["currentUser","isArtist"]),Object(u.c)("artist",["artist"])),created:function(){this.fetchData()},watch:{$route:"fetchData",position:"updateQueryString"},methods:c()({fetchData:function(){var t=this;return h()(v.a.mark(function e(){var a,i,n,s,r,o,l,c,u,d;return v.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.$route.params,i=t.$route.query,!t.album||t.album.id!==a.id){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,e.next=7,t.$store.dispatch("song/getAlbum",{id:a.id});case 7:t.album=e.sent,e.next=17;break;case 10:return e.prev=10,e.t0=e.catch(4),n="Error getting album information",e.t0.response&&404===e.t0.response.status&&(n="Album no longer exists"),t.$store.dispatch("flash/showMessage",{message:n,type:"error"}),t.$router.replace({name:"discover"}),e.abrupt("return");case 17:for(s=!0,r=!1,o=void 0,e.prev=20,l=T()(t.album.songs);!(s=(c=l.next()).done);s=!0)c.value.artist=t.album.artist;e.next=28;break;case 24:e.prev=24,e.t1=e.catch(20),r=!0,o=e.t1;case 28:e.prev=28,e.prev=29,!s&&l.return&&l.return();case 31:if(e.prev=31,!r){e.next=34;break}throw o;case 34:return e.finish(31);case 35:return e.finish(28);case 36:return t.position=+i.pos||0,t.video=t.songs.length>0?t.songs[t.position%t.songs.length]:null,u=i.related?{related:i.related}:{artist_id:t.album.artist.id},e.next=41,t.$store.dispatch("song/listAlbums",u);case 41:if(d=e.sent,!i.related){e.next=48;break}return e.next=45,d.all();case 45:e.t2=e.sent,e.next=49;break;case 48:e.t2=d.results;case 49:t.related=e.t2;case 50:case"end":return e.stop()}}
1,e,t,[[4,10],[20,24,28,36],[29,,31,35]])}))()},isNotOwner:function(t){return!this.isArtist||t.artist.id!==this.artist.id},updateQueryString:function(){var t=this.$route;if(this.position!==+t.query.pos){var e=c()({},t.query);e.pos=this.position,this.$router.push({name:t.name,meta:t.meta,params:{id:this.album.id},query:e})}}},O,$)},Lr={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[t.album?a("b-row",{staticClass:"headline",attrs:{"align-v":"start"}},[a("b-col",{attrs:{cols:"12",sm:"9"}},[a("AlbumCard",{attrs:{album:t.album,showArtist:!0}})],1),t._v(" "),a("b-col",{staticClass:"text-right",attrs:{cols:"12",sm:"3"}},[a("Pay",{attrs:{album:t.album}})],1)],1):t._e(),t._v(" "),a("b-row",[t.video?a("b-col",{staticClass:"player-col"},[a("Player",{attrs:{videos:t.songs,position:t.position,autoplay:!0,pageUrl:t.$route.fullPath},on:{"update:position":function(e){t.position=e}},model:{value:t.video,callback:function(e){t.video=e},expression:"video"}})],1):t._e()],1),t._v(" "),t.video?a("VideoInfo",{attrs:{video:t.video}}):t._e(),t._v(" "),t.filteredRelated.length?a("b-row",[a("b-col",[a("h4",[t._v("More albums")])])],1):t._e(),t._v(" "),t._l(t.filteredRelated,function(e){return a("b-row",{key:e.id,staticClass:"py-2",attrs:{"align-v":"start"}},[a("b-col",{attrs:{cols:"12",sm:"9"}},[a("AlbumCard",{attrs:{album:e,showArtist:!0}})],1),t._v(" "),a("b-col",{staticClass:"text-right",attrs:{cols:"3"}},[t.isNotOwner(e)?a("Pay",{attrs:{album:e}}):t._e()],1)],1)})],2)},staticRenderFns:[]};var $r=[{path:"/video/:id/",name:"video-detail",component:$n},{path:"/album/:id/",name:"album-detail",component:a("VU/8")(Er,Lr,!1,function(t){a("T2J2")},"data-v-2b953430",null).exports}],Or={name:"SiteTabs",components:{ObjectListTabs:Ze}},Rr={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ObjectListTabs",{scopedSlots:t._u([{key:"default",fn:function(e){return[a("b-nav-item",{attrs:{to:{name:"site-about"}}},[t._v("About")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"site-tos"}}},[t._v("Terms of Use")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"site-dmca"}}},[t._v("Copyright")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"site-fees"}}},[t._v("Fees & Payments")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"site-privacy"}}},[t._v("Privacy Policy")]),t._v(" "),a("b-nav-item",{attrs:{to:{name:"site-press"}}},[t._v("Press")])]}}])})},staticRenderFns:[]},Fr=a("VU/8")(Or,Rr,!1,null,null,null).exports,Mr={components:{SiteTabs:Fr}},Ur={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("SiteTabs"),t._v(" "),a("b-row",[a("b-col",[a("h1",{staticClass:"text-uppercase"},[t._v("About Us")])])],1),t._v(" "),a("b-row",[a("b-col",[a("p",[t._v("\n Founded in 2017, Songback was built on the belief that artists are talented and more than good enough, and that it is possible for them to be fairly compensated doing what they love.\n ")]),t._v(" "),a("p",[t._v("\n Songbackâs mission is to connect artists with the right audience in meaningful ways, and provide them with the right combination of tools by which they are able to define and experience their own success. We strongly believe this can only be achieved if artists have complete control and flexibility, and are given access to legitimate monetization tools that are relevant in todayâs ever-changing environment. We focus on using progressive and innovative methods to help develop and even sustain artistsâ music careers.\n ")]),t._v(" "),a("p",[t._v("\n For fans, Songback offers a simple multi-sensory experience that is engaging, fulfilling, and meaningful. Fans customize how they discover and consume music, share up close and personal interactions with artists, and support, or âbackâ artists directly in multiple ways. As we like to tell all fans â follow the artists you like, and back the ones you love!\n ")])])],1),t._v(" "),a("b-row",{staticClass:"py-4 my-4"},[a("b-col",{staticClass:"text-center"},[a("h2",[t._v("WELCOME TO THE SONGBACK EXPERIENCE!")])])],1),t._v(" "),a("b-row",{staticClass:"py-4 my-4"},[a("b-col",{staticClass:"text-center"},[a("p",[t._v("\n Contact Information:\n ")]),t._v(" "),a("p",[t._v("\n Songback, LLC "),a("br"),t._v("\n P.O. Box 18011 "),a("br"),t._v("\n Irvine, CA 92623\n ")]),t._v(" "),a("a",{attrs:{href:"mailto:[email protected]"}},[t._v("[email protected]")])])],1)],1)},staticRenderFns:[]};var Nr={components:{SiteTabs:Fr}},Vr={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("SiteTabs"),t._v(" "),a("b-row",[a("b-col",{staticClass:"text-center all-caps"},[a("h1",[t._v("\n Website Terms of Use "),a("br"),t._v("\n Version 1.0 "),a("br"),t._v("\n Last revised on: June 6, 2018\n ")])])],1),t._v(" "),a("b-row",[a("b-col",[a("p",[t._v("\n The website located at "),a("a",{attrs:{href:"http://www.songback.com/"}},[t._v("www.songback.com")]),t._v(" (the â"),a("strong",[t._v("Site")]),t._v("â) is a copyrighted work belonging to Songback LLC. (â"),a("strong",[t._v("Company")]
1),t._v("â, â"),a("strong",[t._v("us")]),t._v("â, â"),a("strong",[t._v("our")]),t._v("â, and â"),a("strong",[t._v("we")]),t._v("â). Certain features of the Site may be subject to additional guidelines, terms, or rules, which will be posted on the Site in connection with such features. All such additional terms, guidelines, and rules are incorporated by reference into these Terms.\n ")]),t._v(" "),a("p",{staticClass:"all-caps"},[t._v("\n These Terms of Use (these â"),a("strong",[t._v("Terms")]),t._v("â) set forth the legally binding terms and conditions that govern your use of the Site. By accessing or using the Site, you are accepting these Terms (on behalf of yourself or the entity that you represent), and you represent and warrant that you have the right, authority, and capacity to enter into these Terms (on behalf of yourself or the entity that you represent). you may not access or use the Site or accept the Terms if you are not EITHER at least 18 years old, ARE AT LEAST A 13-YEAR OLD an emancipated minor, or ARE AT LEAST A 13-YEAR OLD WHO possessES legal parental or guardian consent, and are fully able and competent to enter into the conditions, obligations, affirmations, representations, and warranties set forth in these Terms. and to abide by and comply with these Terms of Service. In any case, you affirm that you are over the age of 13, as the Service is not intended for children under 13. If you do not agree with all of the provisions of these Terms, do not access and/or use the Site.\n ")]),t._v(" "),a("p",{staticClass:"all-caps"},[t._v("\n These terms require the use of arbitration (Section 10.2) on an individual basis to resolve disputes, rather than jury trials or class actions, and also limit the remedies available to you in the event of a dispute.\n ")]),t._v(" "),a("h2",{staticClass:"all-caps"},[t._v("Table of Contents")]),t._v(" "),a("ol",{staticClass:"all-caps"},[a("li",[a("a",{attrs:{href:"#accounts"}},[t._v("Accounts")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#access"}},[t._v("Access to the site")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#content"}},[t._v("User content â fans and artists")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#idemnification"}},[t._v("Indemnification")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#third-party"}},[t._v("Third-party links & ads")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#disclaimers"}},[t._v("Disclaimers")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#liability"}},[t._v("Limitations on liability")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#term"}},[t._v("Term and termination")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#copyright"}},[t._v("Copyright policy")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#general"}},[t._v("General")])])]),t._v(" "),a("h3",{staticClass:"all-caps"},[a("a",{attrs:{name:"accounts"}},[t._v("1. Accounts")])]),t._v(" "),a("p",[a("strong",[t._v("1.1 "),a("span",{staticClass:"spacer"}),t._v(" Account Creation.")]),t._v(" In order to use certain features of the Site, you must register for an account (â"),a("strong",[t._v("Account")]),t._v("â) and provide certain information about yourself as prompted by the account registration form. You represent and warrant that: (a) all required registration information you submit is truthful and accurate; (b) you will maintain the accuracy of such information. You may delete your Account at any time, for any reason, by following the instructions on the Site. Company may suspend or terminate your Account in accordance with Section 8.\n ")]),t._v(" "),a("p",[a("strong",[t._v("1.2 "),a("span",{staticClass:"spacer"}),t._v(" Account Responsibilities.")]),t._v(" You are responsible for maintaining the confidentiality of your Account login information and are fully responsible for all activities that occur under your Account. You agree to immediately notify Company of any unauthorized use, or suspected unauthorized use of your Account or any other breach of security. Company cannot and will not be liable for any loss or damage arising from your failure to comply with the above requirements.\n ")]),t._v(" "),a("p",[a("strong",[t._v("1.3 "),a("span",{staticClass:"spacer"}),t._v(" Third Party Disclosures.")]),t._v(" When necessary, the Company may pass details of your Account and related information to a third party for that third party to charge your credit card, debit card or process other payment methods for goods or services supplied to you through the Site. In such cases, after passing relevant Account details to that third party, the Company will have no further involvement in Your transaction with that third party (and You acknowledge and agree that your purchases made are transactions between you and the third party and not with the Company). The Company shall not reimburse, refund or otherwise give back any monies collected as a result of processing a payment that results in the debiting, charging, or other related transaction on the Site. You should contact the third party (e.g., credit or debit card provider) directly regarding any issues with such third-party transactions, including refunds and disputes.\n ")]),t._v(" "),a("h3",{staticClass:"all-caps"},[a("a",{attrs:{name:"access"}},[t._v("Access to the Site")])]),t._v(" "),a("p",[a("strong",[t._v("2.1 "),a("span",{staticClass:"spacer"}),t._v(" License.")]),t._v(" Subject to these Terms, Company grants you a non-transferable, non-exclusive, revocable, limited license to use and access the Site solely for your own personal, noncommercial use.\n ")]),t._v(" "),a("p",[a("strong",[t._v("2.2 "),a("span",{staticClass:"spacer"}),t._v(" Certain Restrictions.")]),t._v(" The rights granted to you in these Terms are subject to the following restrictions: (a) you shall not license, sell, rent, lease, transfer, assign, distribute, host, or otherwise commercially exploit the Site, whether in whole or in part, or any content displayed on the Site; (b) you shall not modify, make derivative works of, disassemble, reverse compile or reverse engineer any part of the Site; (c) you shall not access the Site in order to build a similar or competitive website, product, or service; and (d) except as expressly stated herein, no part of the Site may be copied, reproduced, distributed, republished, downloaded, displayed, posted or transmitted in any form or by any means. Unless otherwise indicated, any future release, update, or other addition to functionality of the Site shall be subject to these Terms. All copyright and other proprietary notices on the Site (or on any content displayed on the Site) must be retained on all copies thereof.")]),t._v(" "),a("p",[a("strong",[t._v("2.3 "),a("span",{staticClass:"spacer"}),t._v(" Modification.")]),t._v(" Company reserves the right, at any time, to modify, suspend, or discontinue the Site (in whole or in part) with or without notice to you. You agree that Company will not be liable to you or to any third party for any modification, suspension, or discontinuation of the Site or any part thereof.\n ")]),t._v(" "),a("p",[a("strong",[t._v("2.4 "),a("span",{staticClass:"spacer"}),t._v(" No Support or Maintenance.")]),t._v(" You acknowledge and agree that Company will have no obligation to provide you with any supp
1ort or maintenance in connection with the Site.\n ")]),t._v(" "),a("p",[a("strong",[t._v("2.5 "),a("span",{staticClass:"spacer"}),t._v(" Ownership.")]),t._v(" Excluding any User Content that you may provide (defined below), you acknowledge that all the intellectual property rights, including copyrights, patents, trademarks, and trade secrets, in the Site and its content are owned by Company or Companyâs suppliers. Neither these Terms (nor your access to the Site) transfers to you or any third party any rights, title or interest in or to such intellectual property rights, except for the limited access rights expressly set forth in Section 2.1. Company and its suppliers reserve all rights not granted in these Terms. There are no implied licenses granted under these Terms.")]),t._v(" "),a("h3",{staticClass:"all-caps"},[a("a",{attrs:{name:"content"}},[t._v("User Content â Fans and Artists.")])]),t._v(" "),a("p",[a("strong",[t._v("3.1 "),a("span",{staticClass:"spacer"}),t._v(" User.")]),t._v(" âUserâ means any and all individuals, corporations, partnerships or other legally cognizable âpersonsâ who in any way access the Site for any reason or no reason at all. All Users shall be subject to the Terms herein.\n ")]),t._v(" "),a("p",[a("strong",[t._v("3.2 "),a("span",{staticClass:"spacer"}),t._v(" Fans.")]),t._v(" âFanâ or âFansâ shall mean any User (as defined in Section 3.1) who accesses the Site for the purpose of viewing, downloading, listening to, accessing, subscribing to, purchasing, or otherwise interacting with the Site. Any and all Fan(s) shall be subject to the Terms herein including without limitation any terms respecting payment, refunds, reimbursements, cancellation, and other terms relating to Fan(s)â use and interaction with the Site including without limitation the additional terms contained in Section 3.9 (and its subparts).\n ")]),t._v(" "),a("p",[a("strong",[t._v("3.3 "),a("span",{staticClass:"spacer"}),t._v(" Artists.")]),t._v(" âArtistâ or âArtistsâ shall mean any User and/or Fan(s) (as defined in Sections 3.1 and 3.2) who uploads any content whatsoever onto the Site. Artists are subject to the additional terms contained in Section 3.10 (and its subparts).\n ")]),t._v(" "),a("p",[a("strong",[t._v("3.4 "),a("span",{staticClass:"spacer"}),t._v(" User Content.")]),t._v(" âUser Contentâ means any and all information and content that a user submits to, or uses with, the Site (e.g., content in the userâs profile or postings). You are solely responsible for your User Content. You assume all risks associated with use of your User Content, including any reliance on its accuracy, completeness or usefulness by others, or any disclosure of your User Content that personally identifies you or any third party. You hereby represent and warrant that your User Content does not violate our Acceptable Use Policy (defined in Section 3.6). You may not represent or imply to others that your User Content is in any way provided, sponsored or endorsed by Company. Because you alone are responsible for your User Content, you may expose yourself to liability if, for example, your User Content violates the Acceptable Use Policy. Company is not obligated to backup any User Content, and your User Content may be deleted at any time without prior notice. You are solely responsible for creating and maintaining your own backup copies of your User Content if you desire.\n ")]),t._v(" "),a("p",[a("strong",[t._v("3.5 "),a("span",{staticClass:"spacer"}),t._v(" License.")]),t._v(" You hereby grant (and you represent and warrant that you have the right to grant) to Company an irrevocable, nonexclusive, royalty-free and fully paid, worldwide license to reproduce, distribute, publicly display and perform, prepare derivative works of, incorporate into other works, and otherwise use and exploit your User Content, and to grant sublicenses of the foregoing rights, solely for the purposes of including your User Content in the Site. You hereby irrevocably waive (and agree to cause to be waived) any claims and assertions of moral rights or attribution with respect to your User Content.\n ")]),t._v(" "),a("p",[a("strong",[t._v("3.6 "),a("span",{staticClass:"spacer"}),t._v(" Acceptable Use Policy.")]),t._v(" The following terms constitute our â"),a("strong",[t._v("Acceptable Use Policy")]),t._v("â:\n ")]),t._v(" "),a("div",{staticClass:"py-2"},[a("strong",[t._v("(a) "),a("span",{staticClass:"spacer"})]),t._v(" You agree not to use the Site to collect, upload, transmit, display, or distribute any User Content (i) that violates any third-party right, including any copyright, trademark, patent, trade secret, moral right, privacy right, right of publicity, or any other intellectual property or proprietary right; (ii) that is unlawful, harassing, abusive, tortious, threatening, harmful, invasive of anotherâs privacy, vulgar, defamatory, false, intentionally misleading, trade libelous, pornographic, obscene, patently offensive, promotes racism, bigotry, hatred, or physical harm of any kind against any group or individual or is otherwise objectionable; (iii) that is harmful to minors in any way; or (iv) that is in violation of any law, regulation, or obligations or restrictions imposed by any third party.\n ")]),t._v(" "),a("div",{staticClass:"py-2"},[a("strong",[t._v("(b) "),a("span",{staticClass:"spacer"})]),t._v(" In addition, you agree not to: (i) upload, transmit, or distribute to or through the Site any computer viruses, worms, or any software intended to damage or alter a computer system or data; (ii) send through the Site unsolicited or unauthorized advertising, promotional materials, junk mail, spam, chain letters, pyramid schemes, or any other form of duplicative or unsolicited messages, whether commercial or otherwise; (iii) use the Site to harvest, collect, gather or assemble information or data regarding other users, including e-mail addresses, without their consent; (iv) interfere with, disrupt, or create an undue burden on servers or networks connected to the Site, or violate the regulations, policies or procedures of such networks; (v) attempt to gain unauthorized access to the Site (or to other computer systems or networks connected to or used together with the Site), whether through password mining or any other means; (vi) harass or interfere with any other userâs use and enjoyment of the Site; or (vi) use software or automated agents or scripts to produce multiple accounts on the Site, or to generate automated searches, requests, or queries to (or to strip, scrape, or mine data from) the Site (provided, however, that we conditionally grant to the operators of public search engines revocable permission to use spiders to copy materials from the Site for the sole purpose of and solely to the extent necessary for creating publicly available searchable indices of the materials, but not caches or archives of such materials, subject to the parameters set forth in our robots.txt file).\n ")]),t._v(" "),a("p",[a("strong",[t._v("3.7 "),a("span",{staticClass:"spacer"}),t._v(" Enforcement.")]),t._v(" We reserve the right (but have no obligation) to review any User Content, and to investigate and/or take appropriate action against you in our sole discretion if you violate the Acceptable Use Policy or any other provision of these Terms or otherwise create liability for us or any other person. Such action may include remov
1ing or modifying your User Content, terminating your Account in accordance with Section 8, and/or reporting you to law enforcement authorities.\n ")]),t._v(" "),a("p",[a("strong",[t._v("3.8 "),a("span",{staticClass:"spacer"}),t._v(" Feedback.")]),t._v(" If you provide Company with any feedback or suggestions regarding the Site (â"),a("strong",[t._v("Feedback")]),t._v("â), you hereby assign to Company all rights in such Feedback and agree that Company shall have the right to use and fully exploit such Feedback and related information in any manner it deems appropriate. Company will treat any Feedback you provide to Company as non-confidential and non-proprietary. You agree that you will not submit to Company any information or ideas that you consider to be confidential or proprietary.\n ")]),t._v(" "),a("p",[a("strong",[t._v("3.9 "),a("span",{staticClass:"spacer"}),t._v(" Additional Fan(s) Terms.")])]),t._v(" "),a("div",{staticClass:"py-2 pl-4"},[a("p",[t._v("\n 3.9.1 "),a("small",{staticClass:"spacer"}),a("em",[t._v("Credit Card Payments.")]),t._v(" All fees charged by Provider (as defined herein) will be billed to your credit card (âFeesâ). You authorize the card issuer to pay any amounts described herein and associated with your Fees and authorize us (or a billing agent acting on our behalf) to charge all such amounts to your credit card account until you or we, cancel or terminate your Plan as provided herein or these amounts are paid in full, whichever is later.\n ")]),t._v(" "),a("p",[t._v("\n You must provide current, complete and accurate billing and credit card information. You must promptly update all billing information (such as billing address, card number and expiration date) to keep your account current, complete and accurate, and you must promptly contact Company if your credit card is lost or stolen, or if you become aware of a potential breach of account security (such as an unauthorized disclosure or use of your Site username or password).\n ")]),t._v(" "),a("p",[t._v("\n You authorize us to obtain or determine updated or replacement expiration dates for your credit card in the event that the credit card you provided to us expires. We reserve the right to charge any renewal card issued to you to the same extent as the expired card. If payment is not received from your credit card issuer, you agree to pay all amounts due upon demand. You agree to pay all costs of collection, including attorneyâs fees and costs, on any outstanding balance. In certain instances, the issuer of your credit card may charge you a foreign transaction fee or related charges, which you will be responsible to pay. Please check with your bank and credit card issuer for details.\n ")]),t._v(" "),a("p",[t._v("\n 3.9.4 "),a("small",{staticClass:"spacer"}),a("em",[t._v("Pricing.")]),t._v(" Pricing and availability of all Content displayed through the Site are subject to change at any time prior to purchase. Company is not responsible for any discrepancy in pricing between the Provider (as defined herein) and you.\n ")]),t._v(" "),a("p",[t._v("\n 3.9.5 "),a("small",{staticClass:"spacer"}),a("em",[t._v("Taxes.")]),t._v(' "Taxes" means any duties, customs fees, levies or taxes (other than income tax) associated with the sale of Content, including any related penalties or interest. You are responsible for any Taxes and must pay for Content without any reduction for Taxes. If the seller of Content or Company is obligated to collect or pay Taxes, the Taxes will be charged to you. You must comply with any and all applicable tax laws, including the reporting and payment of any Taxes arising in connection with your use of the Site or the purchase of Content on or through the Site. The reporting and payment of any such applicable Taxes are your responsibility.\n ')]),t._v(" "),a("p",[t._v("\n 3.9.6 "),a("small",{staticClass:"spacer"}),a("em",[t._v("All Sales Final.")]),t._v(" All sales are final, and no returns, replacements or refunds are permitted. If a replacement, return or refund is granted for any transaction, as permitted by Companyâs sole discretion, the transaction may be reversed, and you may
1no longer be able to access the Content that you acquired through that transaction. Company is not a party to and disclaims any liability for any and all disputes arising from the download and purchase of User Content (including without limitation from Artists).\n ")]),t._v(" "),a("p",[t._v("\n 3.9.7 "),a("small",{staticClass:"spacer"}),a("em",[t._v("Free Content.")]),t._v(" Company may allow you to download, view or use Content free of charge on the Site. Additional limitations may apply to your access and use of certain free Content.\n ")]),t._v(" "),a("p",[t._v("\n 3.9.8 "),a("small",{staticClass:"spacer"}),a("em",[t._v("Purchase of Content.")]),t._v(" When you buy Content on or using the Site you will enter into a separate sales contract based on these Terms (as applicable) with the seller(s) which will be the provider of the Content (the âProviderâ), including where the Company is acting as an agent for the Provider. The separate sale contract is in addition to these Terms. Your contract for the purchase and use of Content is completed once you receive notification from the Site confirming your purchase of that Content, and performance of this contract begins as soon as the purchase is complete.\n ")])]),t._v(" "),a("p",[a("strong",[t._v("3.10 "),a("span",{staticClass:"spacer"}),t._v(" Additional Artists Terms.")])]),t._v(" "),a("div",{staticClass:"py-2 pl-4"},[a("p",[t._v("\n 3.10.1 "),a("small",{staticClass:"spacer"}),a("em",[t._v("Preamble.")]),t._v(" The Site enables Artists who agree to the terms herein to upload User Content owned or c
1ontrolled by such Artists to the Site, including but not limited to sound recordings (âSound Recordingsâ), videos synchronized with Sound Recordings and other audiovisual works (collectively, âMusic Videosâ), and the musical compositions embodied within Sound Recordings and Music Videos (âMusical Worksâ and, collectively with Sound Recordings and Music Videos, the Artistâs âMusicâ).\n ")]),t._v(" "),a("p",[t._v("\n 3.10.2 "),a("small",{staticClass:"spacer"}),a("em",[t._v("License.")]),t._v(" Artist hereby grants the Company and its authorized sublicensees and distributors, if any, the worldwide, non-exclusive, royalty-free, right and revocable, subject to the limitations set forth herein, license to: reproduce, distribute, publicly perform, publicly display, create derivate works of, communicate to the public, synchronize and otherwise exploit the Music on the Artistâs behalf using any means now known or hereafter developed. Artist further grants Company and its authorized sublicensees and distributors, if any, the worldwide, non-exclusive, royalty-free right and revocable, subject to the limitations herein, license to reproduce, distribute, publicly perform, publicly display, create derivative works of, communicate to the public or otherwise exploit all associated copyrightable works or metadata, including, without limitation, song lyrics and musical notations, album cover artwork, photographs, graphics, and descriptive text (âArtworksâ) in connection with the Site. Artist hereby grants users of the Site a worldwide non-exclusive, royalty-free right and revocable, subject to the terms herein, license to receive public performances and public displays of the Artistâs Music and Artworks and to reproduce the Artistâs Music and Artworks on any and all devices owned or controlled by the user for personal, non-commercial purposes and receive performances and displays of same.\n ")]),t._v(" "),a("p",[t._v("\n 3.10.3 "),a("small",{staticClass:"spacer"}),a("em",[t._v("Additional Representations and Warranties Upon Upload.")]),t._v(" In addition to the Warranties and Representations set forth in the Terms of Use, upon upload of any content, Artist covenants, warrants and represents that Artist owns, controls or has permission to all necessary rights to Artistâs Music and Artworks for the use Artist makes of them on this Site; (i) Artist has full authority to act on behalf of any and all owners of any right, title or interest in and to any Music Artist uploads to the Site and to the Artworks; (ii) Artist has permission to use the name and likeness of each identifiable individual person whose name or likeness is contained or used within the Music and/or Artworks, and to use such individualâs identifying or personal information (to the extent such information is used or contained in the Music and/or Artworks) as contemplated by these Terms of Use, and (iii) Artist is authorized to grant all of the aforementioned rights to the Music and/or Artworks to Company and all users of the Site.\n ")]),t._v(" "),a("p",[t._v("\n 3.10.4 "),a("small",{staticClass:"spacer"}),a("em",[t._v("Third-Party Payments.")]),t._v(" Upon upload, Artist represents and warrants that, to the extent you are the songwriter of any or all of the musical compositions embodied in your Sound Recordings or Music Videos, whether in whole or in part (e.g., as a co-writer), you have the full right, power, and authority to grant the rights set forth in this Agreement notwithstanding the provisions of any agreement you may have entered into with any performing rights organization (âPROâ), whether based in the United States (e.g., ASCAP, BMI or SESAC) or elsewhere, or any music publisher, and that you are solely responsible for taking all steps necessary to inform such PRO or music publisher of your grant of a royalty free license to Company for the public performances and communications to the public of your Musical Works, and that no fees or payments of any kind whatsoever shall be due to any PRO or music publisher for the public performance or communication to the public of your Musical Works. You covenant to indemnify and hold harmless Company from any claims against Company for violations of terms of agreement you may have entered into with third-parties contemplating this relationship including without limitation PROs, music publishers, record companies, unions, guilds, other artists (featured and non-featured vocalists or musicians, sound engineers, producers, etc.), Users and Fans.\n ")]),t._v(" "),a("p",[t._v("\n 3.10.5 "),a("small",{staticClass:"spacer"}),a("em",[t._v("Rates.")]),t._v(" Company may, but is under no obligation, to make royalty payments to Artists in exchange for sales of its User Content. Company may, but is under no obligation, to maintain a "),a("router-link",{attrs:{to:{name:"site-fees"}}},[t._v("Fees & Payments ")]),t._v(" or similar page to inform Artists of Companyâs decision, in its sole discretion, to share revenue from sales of User Content.\n ")],1)]),t._v(" "),a("p",[a("a",{attrs:{name:"idemnification"}},[a("strong",{staticClass:"all-caps"},[t._v("4. "),a("span",{staticClass:"spacer"}),t._v(" Indemnification.")])]),t._v(" You agree to indemnify and hold Company (and its officers, employees, and agents) harmless, including costs and attorneysâ fees, from any claim or demand made by any third party due to or arising out of (a) your use of the Site, (b) your violation of these Terms, (c) your violation of applicable laws or regulations or (d) your User Content. Company reserves the right, at your expense, to assume the exclusive defense and control of any matter for which you are required to indemnify us, and you agree to cooperate with our defense of these claims. You agree not to settle any matter without the prior written consent of Company. Company will use reasonable efforts to notify you of any such claim, action or proceeding upon becoming aware of it.\n ")]),t._v(" "),a("h3",{staticClass:"all-caps"},[a("a",{attrs:{name:"third-party"}},[t._v("5. Third-Party Links & Ads; Other Users.")])]),t._v(" "),a("p",[a("strong",[t._v("5.1 "),a("span",{staticClass:"spacer"}),t._v(" Third-Party Links & Ads.")]),t._v(" The Site may contain links to third-party websites and services, and/or display advertisements for third parties (collectively, âThird-Party Links & Adsâ). Such Third-Party Links & Ads are not under the control of Company, and Company is not responsible for any Third-Party Links & Ads. Company provides access to these Third-Party Links & Ads only as a convenience to you, and does not review, approve, monitor, endorse, warrant, or make any representations with respect to Third-Party Links & Ads. You use all Third-Party Links & Ads at your own risk and should apply a suitable level of caution and discretion in doing so. When you click on any of the Third-Party Links & Ads, the applicable third partyâs terms and policies apply, including the third partyâs privacy and data gathering practices. You should make whatever investigation you feel necessary or appropriate before proceeding with any transaction in connection with such Third-Party Links & Ads.\n ")]),t._v(" "),a("p",[a("strong",[t._v("5.2 "),a("span",{staticClass:"spacer"}),t._v(" Other Users.")]),t._v(" Each Site user is solely responsible for any and all of its own User Content. Because we do not control User Content, you acknowledge and agree that we are not responsible for any User Content, whether provided by you or by others. We make no guarantees regarding the accuracy, currency, suitability, or quality of any User Content. Your interactions with other Site users are solely between you and such users. You agree that Company will not be responsible for any loss or damage incurred as the result of any such interactions. If there is a dispute between you and any Site user, we are under no obligation to become involved.\n ")]),t._v(" "),a("p",[a("strong",[t._v("5.3 "),a("span",{staticClass:"spacer"}),t._v("Release.")]),t._v(" You hereby release and forever discharge the Company (and our officers, employees, agents, successors, and assigns) from, and hereby waive and relinquish, each and every past, present and future dispute, claim, controversy, demand, right, obligation, liability, action and cause of action of every kind and nature (including personal injuries, death, and property damage), that has arisen or arises directly or indirectly out of, or that relates directly or indirectly to, the Site (including any interactions with, or act or omission of, other Site users or any Third-Party Links & Ads). IF YOU ARE A CALIFORNIA RESIDENT, YOU HEREBY WAIVE CALIFORNIA CIVIL CODE SECTION 1542 IN CONNECTION WITH THE FOREGOING, WHICH STATES: âA GENERAL RELEASE DOES NOT EXTEND TO CLAIMS WHICH THE CREDITOR DOES NOT KNOW OR SUSPECT TO EXIST IN HIS OR HER FAVOR AT THE TIME OF EXECUTING THE RELEASE, WHICH IF KNOWN BY HIM OR HER MUST HAVE MATERIALLY AFFECTED HIS OR HER SETTLEMENT WITH THE DEBTOR.â\n ")]),t._v(" "),a("h3",[a("a",{attrs:{name:"disclaimers"}},[t._v("6. Disclaimers.")])]),t._v(" "),a("p",[t._v("\n THE SITE IS PROVIDED ON AN âAS-ISâ AND âAS AVAILABLEâ BASIS, AND COMPANY (AND OU
1R SUPPLIERS) EXPRESSLY DISCLAIM ANY AND ALL WARRANTIES AND CONDITIONS OF ANY KIND, WHETHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING ALL WARRANTIES OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, QUIET ENJOYMENT, ACCURACY, OR NON-INFRINGEMENT. WE (AND OUR SUPPLIERS) MAKE NO WARRANTY THAT THE SITE WILL MEET YOUR REQUIREMENTS, WILL BE AVAILABLE ON AN UNINTERRUPTED, TIMELY, SECURE, OR ERROR-FREE BASIS, OR WILL BE ACCURATE, RELIABLE, FREE OF VIRUSES OR OTHER HARMFUL CODE, COMPLETE, LEGAL, OR SAFE. IF APPLICABLE LAW REQUIRES ANY WARRANTIES WITH RESPECT TO THE SITE, ALL SUCH WARRANTIES ARE LIMITED IN DURATION TO NINETY (90) DAYS FROM THE DATE OF FIRST USE.\n ")]),t._v(" "),a("p",[t._v("\n SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO THE ABOVE EXCLUSION MAY NOT APPLY TO YOU. SOME JURISDICTIONS DO NOT ALLOW LIMITATIONS ON HOW LONG AN IMPLIED WARRANTY LASTS, SO THE ABOVE LIMITATION MAY NOT APPLY TO YOU.\n ")]),t._v(" "),a("h3",[a("a",{attrs:{name:"liability"}},[t._v("7. Limitation on Liability.")])]),t._v(" "),a("p",[t._v("\n TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL COMPANY (OR OUR SUPPLIERS) BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY LOST PROFITS, LOST DATA, COSTS OF PROCUREMENT OF SUBSTITUTE PRODUCTS, OR ANY INDIRECT, CONSEQUENTIAL, EXEMPLARY, INCIDENTAL, SPECIAL OR PUNITIVE DAMAGES ARISING FROM OR RELATING TO THESE TERMS OR YOUR USE OF, OR INABILITY TO USE, THE SITE, EVEN IF COMPANY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. ACCESS TO, AND USE OF, THE SITE IS AT YOUR OWN DISCRETION AND RISK, AND YOU WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE TO YOUR DEVICE OR COMPUTER SYSTEM, OR LOSS OF DATA RESULTING THEREFROM.\n ")]),t._v(" "),a("p",[t._v("\n TO THE MAXIMUM EXTENT PERMITTED BY LAW, NOTWITHSTANDING ANYTHING TO THE CONTRARY CONTAINED HEREIN, OUR LIABILITY TO YOU FOR ANY DAMAGES ARISING FROM OR RELATED TO THIS AGREEMENT (FOR ANY CAUSE WHATSOEVER AND REGARDLESS OF THE FORM OF THE ACTION), WILL AT ALL TIMES BE LIMITED TO A MAXIMUM OF FIFTY US DOLLARS (U.S. $50). THE EXISTENCE OF MORE THAN ONE CLAIM WILL NOT ENLARGE THIS LIMIT. YOU AGREE THAT OUR SUPPLIERS WILL HAVE NO LIABILITY OF ANY KIND ARISING FROM OR RELATING TO THIS AGREEMENT.\n ")]),t._v(" "),a("p",[t._v("\n SOME JURISDICTIONS DO NOT ALLOW THE LIMITATION OR EXCLUSION OF LIABILITY FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE ABOVE LIMITATION OR EXCLUSION MAY NOT APPLY TO YOU.\n ")]),t._v(" "),a("p",[a("strong",{staticClass:"all-caps"},[t._v("8. "),a("span",{staticClass:"spacer"}),a("a",{attrs:{name:"term"}},[t._v("Term and Termination.")])]),t._v(" Subject to this Section, these Terms will remain in full force and effect while you use the Site. We may suspend or terminate your rights to use the Site (including your Account) at any time for any reason at our sole discretion, including for any use of the Site in violation of these Terms. Upon termination of your rights under these Terms, your Account and right to access and use the Site will terminate immediately. You understand that any termination of your Account may involve deletion of your User Content associated with your Account from our live databases. Company will not have any liability whatsoever to you for any termination of your rights under these Terms, including for termination of your Account or deletion of your User Content. Even after your rights under these Terms are terminated, the following provisions of these Terms will remain in effect: Sections 2.2 through 2.5 and Sections 3 through 10 (inclusive).\n ")]),t._v(" "),a("h3",[a("a",{attrs:{name:"copyright"}},[t._v("9. Copyright Policy.")])]),t._v(" "),a("p",[t._v("\n A copy of the Companyâs Copyright Policy is incorporated by reference herein and may be accessed at "),a("router-link",{attrs:{to:{name:"site-dmca"}}},[t._v("Copyright Policy")]),t._v(" page including contact information and specified procedures pursuant to 17 U.S.C. § 512(f) (the Digital Millennium Copyright Act). Generally, the Company reserves the right, in its sole discretion, to remove potentially infringing content upon notification by an alleged copyright owner or upon gaining actual knowledge that potentially infringing content has been uploaded to the Site.\n ")],1),t._v(" "),a("h3",[a("a",{attrs:{name:"general"}},[t._v("10. General")])]),t._v(" "),a("p",[a("strong",[t._v("10.1 "),a("span",{staticClass:"spacer"}),t._v("Changes.")]),t._v(" These Terms are subject to occasional revision, and if we make any substantial changes, we may
1notify you by sending you an e-mail to the last e-mail address you provided to us (if any), and/or by prominently posting notice of the changes on our Site. You are responsible for providing us with your most current e-mail address. In the event that the last e-mail address that you have provided us is not valid, or for any reason is not capable of delivering to you the notice described above, our dispatch of the e-mail containing such notice will nonetheless constitute effective notice of the changes described in the notice. Any changes to these Terms will be effective upon the earlier of thirty (30) calendar days following our dispatch of an e-mail notice to you (if applicable) or thirty (30) calendar days following our posting of notice of the changes on our Site. These changes will be effective immediately for new users of our Site. Continued use of our Site following notice of such changes shall indicate your acknowledgement of such changes and agreement to be bound by the terms and conditions of such changes.\n ")]),t._v(" "),a("p",[a("strong",[t._v("10.2 "),a("span",{staticClass:"spacer"}),t._v(" Dispute Resolution. "),a("em",[t._v("Please read this Arbitration Agreement carefully. It is part of your contract with Company and affects your rights. It contains procedures for MANDATORY BINDING ARBITRATION AND A CLASS ACTION WAIVER.")])])]),t._v(" "),a("div",{staticClass:"py-2 pl-4"},[a("p",[t._v("\n 10.2.1 "),a("em",[t._v("Applicability of Arbitration Agreement.")]),t._v(" All claims and disputes (excluding claims for injunctive or other equitable relief as set forth below) in connection with the Terms or the use of any product or service provided by the Company that cannot be resolved informally or in small claims court shall be resolved by binding arbitration on an individual basis under the terms of this Arbitration Agreement. Unless otherwise agreed to, all arbitration proceedings shall be held in English. This Arbitration Agreement applies to you and the Company, and to any subsidiaries, affiliates, agents, employees, predecessors in interest, successors, and assigns, as well as all authorized or unauthorized users or benef
1iciaries of services or goods provided under the Terms.\n ")]),t._v(" "),a("p",[t._v("\n 10.2.2 "),a("em",[t._v("Notice Requirement and Informal Dispute Resolution.")]),t._v(" Before either party may seek arbitration, the party must first send to the other party a written Notice of Dispute (â"),a("strong",[t._v("Notice")]),t._v("â) describing the nature and basis of the claim or dispute, and the requested relief. A Notice to the Company should be sent to: P.O. Box 18011, Irvine, CA 92623. After the Notice is received, you and the Company may attempt to resolve the claim or dispute informally. If you and the Company do not resolve the claim or dispute within thirty (30) days after the Notice is received, either party may begin an arbitration proceeding. The amount of any settlement offer made by any party may not be disclosed to the arbitrator until after the arbitrator has determined the amount of the award, if any, to which either party is entitled.\n ")]),t._v(" "),a("p",[t._v("\n 10.2.3 "),a("em",[t._v("Arbitration Rules.")]),t._v(" Arbitration shall be initiated through the American Arbitration Association (â"),a("strong",[t._v("AAA")]),t._v("â), an established alternative dispute resolution provider (â"),a("strong",[t._v("ADR Provider")]),t._v("â) that offers arbitration as set forth in this section. If AAA is not available to arbitrate, the parties shall agree to select an alternative ADR Provider. The rules of the ADR Provider shall govern all aspects of the arbitration, including but not limited to the method of initiating and/or demanding arbitration, except to the extent such rules are in conflict with the Terms. The AAA Consumer Arbitration Rules (â"),a("strong",[t._v("Arbitration Rules")]),t._v("â) governing the arbitration are available online at "),a("a",{attrs:{href:"http://www.adr.org/",target:"_blank"}},[t._v("www.adr.org")]),t._v(" or by calling the AAA at 1-800-778-7879. The arbitration shall be conducted by a single, neutral arbitrator. Any claims or disputes where the total amount of the award sought is less than Ten Thousand U.S. Dollars (US $10,000.00) may be resolved through binding non-appearance-based arbitration, at the option of the party seeking relief. For claims or disputes where the total amount of the award sought is Ten Thousand U.S. Dollars (US $10,000.00) or more, the right to a hearing will be determined by the Arbitration Rules. Any hearing will be held in a location within 100 miles of your residence, unless you reside outside of the United States, and unless the parties agree otherwise. If you reside outside of the U.S., the arbitrator shall give the parties reasonable notice of the date, time and place of any oral hearings. Any judgment on the award rendered by the arbitrator may be entered in any court of competent jurisdiction. If the arbitrator grants you an award that is greater than the last settlement offer that the Company made to you prior to the initiation of arbitration, the Company will pay you the greater of the award or $2,500.00. Each party shall bear its own costs (including attorneyâs fees) and disbursements arising out of the arbitration and shall pay an equal share of the fees and costs of the ADR Provider.\n ")]),t._v(" "),a("p",[t._v("\n 10.2.4 "),a("em",[t._v("Additional Rules for Non-Appearance Based Arbitration.")]),t._v(" If non-appearance-based arbitration is elected, the arbitration shall be conducted by telephone, online and/or based solely on written submissions; the specific manner shall be chosen by the party initiating the arbitration. The arbitration shall not involve any personal appearance by the parties or witnesses unless otherwise agreed by the parties.\n ")]),t._v(" "),a("p",[t._v("\n 10.2.5 "),a("em",[t._v("Time Limits.")]),t._v(" If you or the Company pursue arbitration, the arbitration action must be initiated and/or demanded within the statute of limitations (i.e., the legal deadline for filing a claim) and within any deadline imposed under the AAA Rules for the pertinent claim.\n ")]),t._v(" "),a("p",[t._v("\n 10.2.6 "),a("em",[t._v("Authority of Arbitrator.")]),t._v(" If arbitration is initiated, the arbitrator will decide the rights and liabilities, if any, of you and the Company, and the dispute will not be consolidated with any other matters or joined with any other cases or parties. The arbitrator shall have the authority to grant motions dispositive of all or part of any claim. The arbitrator shall have the authority to award monetary damages, and to grant any non-monetary remedy or relief available to an individual under applicable law, the AAA Rules, and the Terms. The arbitrator shall issue a
1written award and statement of decision describing the essential findings and conclusions on which the award is based, including the calculation of any damages awarded. The arbitrator has the same authority to award relief on an individual basis that a judge in a court of law would have. The award of the arbitrator is final and binding upon you and the Company.\n ")]),t._v(" "),a("p",[t._v("\n 10.2.7 "),a("em",[t._v("Waiver of Jury Trial.")]),t._v(" THE PARTIES HEREBY WAIVE THEIR CONSTITUTIONAL AND STATUTORY RIGHTS TO GO TO COURT AND HAVE A TRIAL IN FRONT OF A JUDGE OR A JURY, instead electing that all claims and disputes shall be resolved by arbitration under this Arbitration Agreement. Arbitration procedures are typically more limited, more efficient and less costly than rules applicable in a court and are subject to very limited review by a court. In the event any litigation should arise between you and the Company in any state or federal court in a suit to vacate or enforce an arbitration award or otherwise, YOU AND THE COMPANY WAIVE ALL RIGHTS TO A JURY TRIAL, instead electing that the dispute be resolved by a judge.\n ")]),t._v(" "),a("p",[t._v("\n 10.2.8 "),a("em",[t._v("Waiver of Class or Consolidated Actions.")]),t._v(" ALL CLAIMS AND DISPUTES WITHIN THE SCOPE OF THIS ARBITRATION AGREEMENT MUST BE ARBITRATED OR LITIGATED ON AN INDIVIDUAL BASIS AND NOT ON A CLASS BASIS, AND CLAIMS OF MORE THAN ONE CUSTOMER OR USER CANNOT BE ARBITRATED OR LITIGATED JOINTLY OR CONSOLIDATED WITH THOSE OF ANY OTHER CUSTOMER OR USER.\n ")]),t._v(" "),a("p",[t._v("\n 10.2.9 "),a("em",[t._v("Confidentiality.")]),t._v(" All aspects of the arbitration proceeding, including but not limited to the award of the arbitrator and compliance therewith, shall be strictly confidential. The parties agree to maintain confidentiality unless otherwise required by law. This paragraph shall not prevent a party from submitting to a court of law any information necessary to enforce this Agreement, to enforce an arbitration award, or to seek injunctive or equitable relief.\n ")]),t._v(" "),a("p",[t._v("\n 10.2.10 "),a("em",[t._v("Severability.")]),t._v(" If any part or parts of this Arbitration Agreement are found under the law to be invalid or unenforceable by a court of competent jurisdiction, then such specific part or parts shall be of no force and effect and shall be severed and the remainder of the Agreement shall continue in full force and effect.\n ")]),t._v(" "),a("p",[t._v("\n 10.2.11 "),a("em",[t._v("Right to Waive.")]),t._v(" Any or all of the rights and limitations set forth in this Arbitration Agreement may be waived by the party against whom the claim is asserted. Such waiver shall not waive or affect any other portion of this Arbitration Agreement.\n ")]),t._v(" "),a("p",[t._v("\n 10.2.12 "),a("em",[t._v("Survival of Agreement.")]),t._v(" This Arbitration Agreement will survive the termination of your relationship with Company.\n ")]),t._v(" "),a("p",[t._v("\n 10.2.13 "),a("em",[t._v("Small Claims Court.")]),t._v(" Notwithstanding the foregoing, either you or the Company may bring an individual action in small claims court.\n ")]),t._v(" "),a("p",[t._v("\n 10.2.14 "),a("em",[t._v("Emergency Equitable Relief.")]),t._v(" Notwithstanding the foregoing, either party may seek emergency equitable relief before a state or federal court in order to maintain the status quo pending arbitration. A request for interim measures shall not be deemed a waiver of any other rights or obligations under this Arbitration Agreement.\n ")]),t._v(" "),a("p",[t._v("\n 10.2.15 "),a("em",[t._v("Claims Not Subject to Arbitration.")]),t._v(" Notwithstanding the foregoing, claims of defamation, violation of the Computer Fraud and Abuse Act, and infringement or misappropriation of the other partyâs patent, copyright, trademark or trade secrets shall not be subject to this Arbitration Agreement.\n ")]),t._v(" "),a("p",[t._v("\n 10.2.16 "),a("em",[t._v("Courts.")]),t._v(" In any circumstances where the foregoing Arbitration Agreement permits the parties to litigate in court, the parties hereby agree to submit to the personal jurisdiction of the courts located within "),a("u",[t._v("Orange")]),t._v(" County, California, for such purpose\n ")])]),t._v(" "),a("p",[a("strong",[t._v("10.3 "),a("span",{staticClass:"spacer"}),t._v("Export.")]),t._v(" The Site may be subject to U.S. export control laws and may be subject to export or import regulations in other countries. You agree not to export, reexport, or transfer, directly or indirectly, any U.S. technical data acquired from Company, or any products utilizing such data, in violation of the United States export laws or regulations.\n ")]),t._v(" "),a("p",[a("strong",[t._v("10.4 "),a("span",{staticClass:"spacer"}),t._v("Disclosures.")]),t._v(" Company is located at the address in Section 10.8. If you are a California resident, you may report complaints to the Complaint Assistance Unit of the Division of Consumer Product of the California Department of Consumer Affairs by contacting them in writing at 400 R Street, Sacramento, CA 95814, or by telephone at (800) 952-5210.\n ")]),t._v(" "),a("p",[a("strong",[t._v("10.5 "),a("span",{staticClass:"spacer"}),t._v("Electronic Communications.")]),t._v(" The communications between you and Company use electronic means, whether you use the Site or send us emails, or whether Company posts notices on the Site or communicates with you via email. For contractual purposes, you (a) consent to receive communications from Company in an electronic form; and (b) agree that all terms and conditions, agreements, notices, disclosures, and other communications that Company provides to you electronically satisfy any legal requirement that such communications would satisfy if it were to be in a hardcopy writing. The foregoing does not affect your non-waivable rights.\n ")]),t._v(" "),a("p",[a("strong",[t._v("10.6 "),a("span",{staticClass:"spacer"}),t._v("Entire Terms.")]),t._v(" These Terms constitute the entire agreement between you and Company regarding the use of the Site. Our failure to exercise or enforce any right or provision of these Terms shall not operate as a waiver of such right or provision. The section titles in these Terms are for convenience only and have no legal or contractual effect. The word âincludingâ means âincluding without limitationâ. If any provision of these Terms is, for any reason, held to be invalid or unenforceable, the other provisions of these Terms will be unimpaired and the invalid or unenforceable provision
1will be deemed modified so that it is valid and enforceable to the maximum extent permitted by law. Your relationship to Company is that of an independent contractor, and neither party is an agent or partner of the other. These Terms, and your rights and obligations herein, may not be assigned, subcontracted, delegated, or otherwise transferred by you without Companyâs prior written consent, and any attempted assignment, subcontract, delegation, or transfer in violation of the foregoing will be null and void. Company may freely assign these Terms. The terms and conditions set forth in these Terms shall be binding upon assignees.\n ")]),t._v(" "),a("p",[a("strong",[t._v("10.7 "),a("span",{staticClass:"spacer"}),t._v("Copyright/Trademark Information.")]),t._v(" Copyright © 2018 Songback, LLC. All rights reserved. All trademarks, logos and service marks (â"),a("strong",[t._v("Marks")]),t._v("â) displayed on the Site are our property or the property of other third parties. You are not permitted to use these Marks without our prior written consent or the consent of such third party which may own the Marks.\n ")]),t._v(" "),a("p",[a("strong",[t._v("10.8 "),a("span",{staticClass:"spacer"}),t._v("Contact Information:")])]),t._v(" "),a("div",{staticClass:"py-2",staticStyle:{"padding-left":"82px"}},[t._v("\n Songback, LLC "),a("br"),t._v("\n P.O. Box 18011 "),a("br"),t._v("\n Irvine, CA 92623 "),a("br"),t._v(" "),a("a",{attrs:{href:"mailo:[email protected]"}},[t._v("[email protected]")]),t._v(" "),a("br")])])],1)],1)},staticRenderFns:[]};var jr={components:{SiteTabs:Fr}},Dr={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("SiteTabs"),t._v(" "),a("b-row",[a("b-col",{staticClass:"text-center all-caps"},[a("h1",[t._v("Digital Millennium Copyright Act Policy")])])],1),t._v(" "),a("b-row",[a("b-col",[a("p",[t._v("\n We respect the intellectual property rights of others just as we expect others to respect our rights. Pursuant to Digital Millennium Copyright Act, Title 17, United States Code, Section 512(c), a copyright owner or their agent may submit a takedown notice to us via our DMCA Agent listed below. As an internet service provider, we are entitled to claim immunity from said infringement claims pursuant to the âsafe harborâ provisions of the DMCA. To submit a good faith infringement claim to us, you must submit notice to us that sets forth the following information:\n ")]),t._v(" "),a("h3",[t._v("Notice of Infringement â Claim")]),t._v(" "),a("ol",[a("li",[t._v("A physical or electronic signature of the copyright owner (or someone authorized to act on behalf of the owner);")]),t._v(" "),a("li",[t._v("Identification of the copyrighted work claimed to have been infringed;")]),t._v(" "),a("li",[t._v("Identification of the infringing material to be removed, and information reasonably sufficient to permit the service provider to locate the material. [Please submit the URL of the page in question to assist us in identifying the allegedly offending work];")]),t._v(" "),a("li",[t._v("Information reasonably sufficient to permit the service provider to contact the complaining party including your name, physical address, email address, phone number and fax number;")]),t._v(" "),a("li",[t._v("A statement that the complaining party has a good faith belief that the use of the material is unauthorized by the copyright agent; and")]),t._v(" "),a("li",[t._v("A statement that the information in the notification is accurate, and, under penalty of perjury, that the complaining party is authorized to act on behalf of the copyright owner.")])]),t._v(" "),a("p",[t._v("\n Title 17 USC §512(f) provides civil damage penalties, including costs and attorney fees, against any person who knowingly and materially misrepresents certain information in a notification of infringement under 17 USC §512(c)(3).\n ")]),t._v(" "),a("p",[t._v("\n Please note that we may share the identity and information in any copyright infringement claim we receive with the alleged infringer. In submitting a claim, you understand accept and agree that your identity and claim may be communicated to the alleged infringer.\n ")]),t._v(" "),a("p",[t._v("Send all takedown notices to our DMCA Agent listed below. "),a("strong",[t._v("Please send by email for prompt attention.")])]),t._v(" "),a("h3",[t._v("DMCA Agent")]),t._v(" "),a("p",[t._v("\n Songback LLC"),a("br"),t._v("\n P.O. Box 18011 "),a("br"),t._v("\n Irvine, CA 92623 "),a("br"),t._v("\n Phone: (855) 535-9900 "),a("br"),t._v("\n Email: "),a("a",{attrs:{href:"mailto:[email protected]"}},[t._v("[email protected]")])]),t._v(" "),a("h3",[t._v("Counter Notification - Restoration of Material")]),t._v(" "),a("p",[t._v("\n If you have received a notice of material being takedown because of a copyright infringement claim, you may provide us with a counter notification in an effort to have the material in question restored to the site. Said notification must be given in writing to our DMCA Agent and must contain substantially the following elements pursuant to 17 USC Section 512(g)(3):\n ")]),t._v(" "),a("ol",[a("li",[t._v("Your physical or electronic signature.")]),t._v(" "),a("li",[t._v("A description of the material that has been taken down and the original location of the material before it was taken down.")]),t._v(" "),a("li",[t._v("A statement under penalty of perjury that you have a good faith belief that the material was removed or disabled as a result of mistake or misidentification of the material to be removed or disabled.")]),t._v(" "),a("li",[t._v("Your name, address, and telephone number, and a statement that you consent to the jurisdiction of the federal district court for the judicial district in which the address is located (or if you are outside of the United States, that you consent to jurisdiction of any judicial district in which the service provider may be found), and that the you will accept service of process from the person or company who provided the original infringement notification.")])]),t._v(" "),a("p",[t._v("\n Email your counter notice to our DMCA Agent: "),a("br"),t._v(" "),a("br"),t._v("\n Songback LLC"),a("br"),t._v("\n P.O. Box 18011 "),a("br"),t._v("\n Irvine, CA 92623 "),a("br"),t._v("\n Phone: (855) 535-9900 "),a("br"),t._v("\n Email: "),a("a",{attrs:{href:"mailto:[email protected]"}},[t._v("[email protected]")])]),t._v(" "),a("h3",[t._v("Repeat Infringer Policy")]),t._v(" "),a("p",[t._v("\n We take copyright infringement very seriously. Pursuant to the repeat infringer policy requirements of the Digital Millennium Copyright Act, we maintain a list of DMCA notices from copyright holders and make a good faith effort to identify any repeat infringers. Those that violate our internal repeat infringer policy will have their accounts terminated.\n ")]),t._v(" "),a("p",[t._v("\n Our Business Address: "),a("br"),t._v(" "),a("br"),t._v("\n Songback LLC "),a("br"),t._v("\n PO Box 18011 "),a("br"),t._v("\n Irvine, CA 92623 "),a("br"),t._v(" "),a("a",{attrs:{href:"http://www.songback.com/"}},[t._v("www.songback.com")]),t._v(" "),a("br")])])],1)],1)},staticRenderFns:[]};var Br={components:{SiteTabs:Fr}},Hr={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("SiteTabs"),t._v(" "),a("b-row",[a("b-col",{staticClass:"text-center"},[a("h1",{staticClass:"text-uppercase"},[t._v("Artist Fees and Payments")])])],1),t._v(" "),a("b-row",[a("b-col",[a("p",[a("em",[t._v("\n Songback aims to provide a diverse and dynamic community and platform. We provide Fans with a unique opportunity to support Artists and offer Artists multiple avenues for monetizing their creative works and talents.\n ")])]),t._v(" "),a("p",[t._v("\n Songback provides a platform for Artists to earn money by:\n ")]),t._v(" "),a("ol",[a("li",[t._v("Selling digital content;")]),t._v(" "),a("li",[t._v("Charging for live-streaming event access; and")]),t._v(" "),a("li",[t._v("Receiving donations.")])]),t._v(" "),a("ol",{staticStyle:{"list-style":"upper-roman","font-weight":"bold"}},[a("li",{staticStyle:{"padding-left":"1em"}}
1,[t._v("\n Monetizing Creative Works - For Artists (How Artists Make Money)\n "),a("div",{staticClass:"py-1",staticStyle:{"font-weight":"normal"}},[a("em",[t._v("Artists set prices (in USD) and are responsible for all Stripe fees (see âReceiving Payments for Salesâ). Songback also shares revenue with Artists.")]),t._v(" "),a("ol",{staticClass:"py-2",staticStyle:{"list-style":"decimal"}},[a("li",[a("strong",[t._v("Selling Digital Content or Receiving Donations")]),t._v(" "),a("ol",{staticStyle:{"list-style":"lower-alpha"}},[a("li",[t._v("Artists must set their prices at or above $0.50 for the sale of all digital content.")]),t._v(" "),a("li",[t._v("Artists keep 100% of sales revenue for digital content priced under $2 less applicable taxes, payment processing and like fees as set forth in Section II.")]),t._v(" "),a("li",[t._v("Artists can choose to allow Fans to set pricing above the Artistsâ listed sale price for digital content.")]),t._v(" "),a("li",[t._v("Songback shall share revenue (net of taxes, payment processing and like fees as set forth in Section II) from any single transaction (either sales of digital content, live streams or donations) of $2 or more.")]),t._v(" "),a("li",[t._v("No donations under $2 shall be accepted on Songback.")])])]),t._v(" "),a("li",[a("strong",[t._v("Live-Streaming Events")]),t._v(" "),a("ol",{staticStyle:{"list-style":"lower-alpha"}},[a("li",[t._v("Artists may broadcast a live stream at no cost to Fans, unless Artists themselves charge a fee for access to a live stream, in which case Section 2(f) applies.")]),t._v(" "),a("li",[t._v("If an Artist chooses to set a fee to be charged to Fans, they must charge, at minimum, $2 per Fan viewer.")]),t._v(" "),a("li",[t._v("Artists can choose to allow Fans to set pricing above the Artistsâ listed event price for access to paid live streams.")]),t._v(" "),a("li",[t._v("Fans are able to make donations during the broadcast.")]),t._v(" "),a("li",[t._v("Transactions for all live streams can begin no earlier than 15 minutes prior to the start of a broadcast.")]),t._v(" "),a("li",[t._v("Songback shall share revenues earned from Live-Streaming Events as set forth herein.")])])])])])]),t._v(" "),a("li",{staticStyle:{"padding-left":"1em"}},[t._v("\n Receiving Payments for Sales or Donations - For Artists\n "),a("div",{staticClass:"py-1",staticStyle:{"font-weight":"normal"}},[a("em",[t._v("In order to sell or receive donations on the site, Artists must create and manage their own Stripe account, which Fans may access either on Artistsâ profile page or through a portal during Artistsâ live streams.")]),t._v(" "),a("ol",{staticClass:"py-2",staticStyle:{"list-style":"decimal"}},[a("li",[a("strong",[t._v("Stripeâs Terms Apply.")]),t._v(" As transactions take place for digital content, live streams and donations, Artists use Stripe to control their payouts and are responsible for any and all associated fees as determined by Stripe. All transactions are subject to Stripeâs Service Agreement-US (https://stripe.com/us/legal).")])])])]),t._v(" "),a("li",{staticStyle:{"padding-left":"1em"}},[t._v("\n Revenue Sharing With Artists\n "),a("div",{staticClass:"py-1",staticStyle:{"font-weight":"normal"}},[a("em",[t._v("Songback may, but is not obligated to, share the revenue earned from content uploaded onto Companyâs Site (www.songback.com).")]),t._v(" "),a("ol",{staticClass:"py-2",staticStyle:{"list-style":"decimal"}},[a("li",[a("strong",[t._v("Revenue Sharing Terms.")]),t._v(" Artists may receive revenue from transactions as follows:\n "),a("ol",{staticStyle:{"list-style":"lower-alpha"}},[a("li",[t._v("\n Digital Content\n "),a("ol",{staticStyle:{"list-style":"lower-roman"}},[a("li",[t._v("85% of all revenue earned from digital sales for content priced at or above $2 (less applicable taxes and processing fees as set forth in Stripeâs Service Agreement-US).")])])]),t._v(" "),a("li",[t._v("\n Live-Streaming Events\n "),a("ol",{staticStyle:{"list-style":"lower-roman"}},[a("li",[t._v("85% of all live stream sales (less applicable taxes and processing fees as set forth in Stripeâs Service Agreement-US).")])])]),t._v(" "),a("li",[t._v("Donations\n "),a("ol",{staticStyle:{"list-style":"lower-roman"}},[a("li",[t._v("85% of all donations made to Artists (less applicable taxes and processing fees as set forth in Stripeâs Service Agreement-US).")])])])])])])])])])])],1
1)],1)},staticRenderFns:[]};var qr={components:{SiteTabs:Fr}},zr={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("SiteTabs"),t._v(" "),a("b-row",[a("b-col",{staticClass:"text-center all-caps"},[a("h1",[t._v("\n Songback "),a("br"),t._v("\n Privacy Policy "),a("br"),t._v("\n Last Updated: July 6, 2018\n ")])])],1),t._v(" "),a("b-row",[a("b-col",[a("p",[t._v("\n This privacy policy (â"),a("strong",[t._v("Policy")]),t._v("â) describes how Songback, LLC and its related companies (â"),a("strong",[t._v("Company")]),t._v("â) collect, use and share personal information of consumer users of this Site (the â"),a("strong",[t._v("Site")]),t._v("â). This Policy also applies to any of our other mobile applications or websites that post this Policy. This Policy does not apply to websites or mobile applications that post different statements.\n ")]),t._v(" "),a("h3",{staticClass:"all-caps"},[t._v("WHAT WE COLLECT")]),t._v(" "),a("p",[t._v("\n We get information about you in a range of ways.\n ")]),t._v(" "),a("div",{staticClass:"py-2 pl-4"},[a("p",[a("strong",[t._v("Information You Give Us.")]),t._v(" We collect yourâ name, postal address, email address, phone number, username, password, demographic information (such as your gender and occupation), date of birth, as well as other information you directly give us on our Site. Content that you share either with the Company or with other Site users, including without limitation, emails, reviews, photographs, videos, comments, or music is collected by us.\n ")]),t._v(" "),a("p",[a("strong",[t._v("Information We Get From Others.")]),t._v(" We may get information about you from other sources. We may add this to information we get from this Site.\n ")]),t._v(" "),a("p",[a("strong",[t._v("Information Automatically Collected.")]),t._v(" We automatically log information about you and your device. For example, when visiting our Site, we log your IP address, computer operating system type, browser type, device information, device event information (e.g. crashes), browser language, pages you viewed, how long you spent on a page, access times and information about your use of and actions on our Site.\n ")]),t._v(" "),a("p",[a("strong",[t._v("Geo-Location Information.")]),t._v(" We may request access or permission to and track location-based information from your device, either continuously or while you are using our Site, to provide location-based services including without limitation advertising and personalizing content. If you wish to change our access or permissions, you may do so in your deviceâs settings.\n ")]),t._v(" "),a("p",[a("strong",[t._v("Cookies.")]),t._v(' We may log information using "cookies." Cookies are small data files stored on your computer. We may use both session Cookies (which expire once you close the Site) and persistent Cookies (which stay on your computer or device until you delete them) to provide you with a more personal and interactive experience on our Site. This type of information is collected to make the Site more useful to you and to tailor the experience with us to meet your special interests and needs.\n ')]),t._v(" "),a("p",[a("strong",[t._v("Third-Party Data.")]),t._v(" We may automatically collect and integrate personal data from third-party APIs into the Site. A list of the APIs integrated into the Site and the information that is collected follows:\n ")]),t._v(" "),a("div",{staticClass:"py-2 pl-4"},[a("p",[a("strong",[t._v("Facebook:")]),t._v(" Automated login information as well as email and public profile information (their data (including privacy) policy can be found at "),a("a",{attrs:{href:"https://www.facebook.com/full_data_use_policy",target:"_blank"}},[t._v("https://www.facebook.com/full_data_use_policy")]),t._v(");\n ")]),t._v(" "),a("p",[a("strong",[t._v("Google Accounts:")]),t._v(" Automated login information as well as email and public profile information (their privacy policy can be found at "),a("a",{attrs:{href:"https://policies.google.com/privacy?hl=en&gl=us",target:"_blank"}},[t._v("https://policies.google.com/privacy?hl=en&gl=us")]),t._v(");\n ")]),t._v(" "),a("p",[a("strong",[t._v("DaCast:")]),t._v(" To display and stream live or saved video (their privacy policy can be found at "),a("a",{attrs:{href:"https://www.dacast.com/privacy-policy/",target:"_blank"}},[t._v("https://www.dacast.com/privacy-policy/")]),t._v(");\n ")]),t._v(" "),a("p",[a("strong",[t._v("Stripe:")]),t._v(" To process payments including credit card information (only limited information is shared with Songback so as to process receipts of payment) (their privacy policy can be found at "),a("a",{attrs:{href:"https://stripe.com/us/privacy/",target:"_blank"}},[t._v("https://stripe.com/us/privacy/")]),t._v(" and "),a("a",{attrs:{href:"https://stripe.com/privacy-shield-policy",target:"_blank"}},[t._v("https://stripe.com/privacy-shield-policy")]),t._v(" and "),a("a",{attrs:{href:"https://stripe.com/guides/general-data-protection-regulation",target:"_blank"}},[t._v("https://stripe.com/guides/general-data-protection-regulation")]),t._v(");\n ")]),t._v(" "),a("p",[a("strong",[t._v("Pusher:")]),t._v(" To allow users to engage in live chat and receive real-time notifications through the Site (their privacy policy can be found at "),a("a",{attrs:{href:"https://pusher.com/legal/privacy-policy",target:"_blank"}},[t._v("https://pusher.com/legal/privacy-policy")]),t._v(" and "),a("a",{attrs:{href:"https://pusher.com/legal/data-protection",target:"_blank"}},[t._v("https://pusher.com/legal/data-protection")]),t._v(")\n ")])]),t._v(" "),a("p",[a("strong",[t._v("Google Analytics.")]),t._v(" The Site uses Google Analytics, a web analysis service of Google, Inc., 1600 Amphitheatre Parkway, Mountain Vie
1w, CA 94043 USA, www.google.com (âGoogle Analyticsâ or âGoogleâ). Google Analytics employs cookies that are stored to your computer in order to facilitate an analysis of your use of the Site. The information generated by these cookies, such as time, place and frequency of your visits to the Site, including your IP address, is transmitted to Googleâs location in the US and stored there.\n ")]),t._v(" "),a("p",[t._v("\n Google abbreviates and thereby anonymizes your IP address before transferring it from EU/EEA member states. Google uses this information to analyze your use of the Site, to compile reports for us on internet activity and to provide other services relating to the Site.\n ")]),t._v(" "),a("p",[t._v("\n Google Analytics also offers a deactivation add-on for most current browsers that provides you with more control over what data Google can collect on websites you access. However, the browser deactivation add-on offered by Google Analytics does not prevent information from being transmitted to us or to other web analysis services we may engage.\n ")]),t._v(" "),a("p",[t._v("\n Google Analytics also uses electronic images known as web beacons (sometimes called single pixel .gifs) and are used along with cookies to compile aggregated statistics to analyze how our site is used.\n ")]),t._v(" "),a("p",[t._v("\n For the cases in which personal data is transferred to the US, Google has self-certified pursuant to the EU-US Privacy Shield (https://www.privacyshield.gov/EU-US-Framework).\n ")])]),t._v(" "),a("h3",{staticClass:"all-caps"},[t._v("USE OF PERSONAL INFORMATION")]),t._v(" "),a("p",[t._v("\n We use your personal information as follows:\n ")]),t._v(" "),a("ul",[a("li",[t._v("We use your personal information to operate, maintain, and improve our products and services.")]),t._v(" "),a("li",[t._v("We use your personal information to identify you as the person who uploaded User Content (as defined in the Terms of Use).")]),t._v(" "),a("li",[t._v("We use your personal information to analyze research conducted on our Site, develop new features, and troubleshoot issues on the Site.")]),t._v(" "),a("li",[t._v("We use the date of your birth to enable age restrictions on the Site.")]),t._v(" "),a("li",[t._v("We use your personal information to process and deliver contest entries and rewards.")]),t._v(" "),a("li",[t._v("We use your personal information to respond to comments and questions and provide customer service.")]),t._v(" "),a("li",[t._v("We use your personal information to send information including confirmations, invoices, technical notices, updates, security alerts, and support and administrative messages.")]),t._v(" "),a("li",[t._v("We use your personal information to communicate about discount offerings, promotions, upcoming events, and other news about products and services offered by us and our selected partners.")]),t._v(" "),a("li",[t._v("We use your personal information to link or combine user information with other personal information.")]),t._v(" "),a("li",[t._v("We use your personal information to protect, investigate, and deter against fraudulent, unauthorized, or illegal activity.")]),t._v(" "),a("li",[t._v("We use your personal information to provide and deliver products and services customers request.")]),t._v(" "),a("li",[t._v("We use your personal information to customize content, including advertising and direct, targeted-marketing campaigns on and off the Site.")]),t._v(" "),a("li",[t._v("We use your personal information to measure the success of targeted, direct-marketing campaigns and content customized to your use of the Site and of third-party websites and mobile applications.")])]),t._v(" "),a("h3",[t._v("SHARING OF PERSONAL INFORMATION")]),t._v(" "),a("p",[t._v("\n We may share personal information as follows:\n ")]),t._v(" "),a("ul",[a("li",[t._v("We may share personal information with your consent. For example, you may let us share personal information with others for their own marketing uses. Those uses will be subject to their privacy policies.")]),t._v(" "),a("li",[t._v("We may share personal information when we do a business deal, or negotiate a business deal, involving the sale or transfer of all or a part of our business or assets. These deals can include any merger, financing, acquisition, or bankruptcy transaction or proceeding.")]),t._v(" "),a("li",[t._v("We may share personal information for legal, protection, and safety purposes.")]),t._v(" "),a("ul",[a("li",[t._v("We may share information to comply with laws.")]),t._v(" "),a("li",[t._v("We may share information to respond to lawful requests and legal processes.")]),t._v(" "),a("li",[t._v("We may share information to protect the rights and property of Songback, LLC, our agents, customers, and others. This includes enforcing our agreements, policies, and terms of use.")]),t._v(" "),a("li",[t._v("We may share information in an emergency. This includes protecting the safety of our employees and agents, our customers, or any person.")])]),t._v(" "),a("li",[t._v("We may share personal information with those who need it to do work for us.")]),t._v(" "),a("li",[t._v("We may share personal information with third party services including ad-networks and exchanges that allow us to target ads to you based on the content you are viewing on our Site or on a third-party website or mobile application.")])]),t._v(" "),a("p",[t._v("\n We may al
1so share aggregated and/or anonymized data with others for their own uses.\n ")]),t._v(" "),a("h3",{staticClass:"all-caps"},[t._v("INFORMATION CHOICES AND CHANGES")]),t._v(" "),a("p",[t._v("\n Our marketing emails tell you how to âopt-out.â If you opt out, we may still send you non-marketing emails. Non-marketing emails include emails about your accounts and our business dealings with you.\n ")]),t._v(" "),a("p",[t._v("\n You may send requests about personal information to our Contact Information below. You can request to change contact choices, opt-out of our sharing with others, and update your personal information.\n ")]),t._v(" "),a("p",[t._v("\n You can typically remove and reject cookies from our Site with your browser settings. Many browsers are set to accept cookies until you change your settings. If you remove or reject our cookies, it could affect how our Site works for you.\n ")]),t._v(" "),a("p",[t._v("\n User Content (as defined in the Terms of Use) is deemed not to be personal information and the Site cannot guarantee that User Content will remain private. However, when your account is terminated or the User Content is removed from the Site, either by us or by you, it will not be shared with third-parties.\n ")]),t._v(" "),a("h3",{staticClass:"all-caps"},[t._v("YOUR RIGHTS-EEA RESIDENTS")]),t._v(" "),a("p",[t._v("\n Pursuant to the European Unionâs (EU) General Data Protection Regulation (GDPR), those users in the European Economic Area (EEA), which access this Site are hereby informed that our servers are located in the United States. If you access the Site outside the United States, the information that is transferred to, stored and processed by us in our facilities and by third parties with whom we may share your personal information may be in countries that do not have data protection or other laws as comprehensive as those in your country. We will, however, take all necessary measures to protect your personal information and inform you of the following rights:\n ")]),t._v(" "),a("ul",[a("li",[t._v("The right to be informed")]),t._v(" "),a("ul",[a("li",[t._v("This means if this Site obtains personal information about a user, it will immediately inform them of the collection of such data.")]),t._v(" "),a("li",[t._v("It also means that if this Site obtains personal information about a user from a third-party, it will inform that user of the acquisition of such data within one month, unless obtaining such data would involve a disproportionate effort.")])]),t._v(" "),a("li",[t._v("The right to access")]),t._v(" "),a("ul",[a("li",[t._v("This includes two prongs: (1) the Site will inform any user who requests such information whether any of the userâs personal data is being processed and (2) if such personal data is being processed, information about the use and purpose of the data processed.")])]),t._v(" "),a("li",[t._v("The right to rectification")]),t._v(" "),a("ul",[a("li",[t._v("Any user may use the contact information herein to request inaccurate or incomplete personal data be corrected and the Site will, within one month, respond to such a request.")])]),t._v(" "),a("li",[t._v("The right to erasure (be forgotten)")]),t._v(" "),a("ul",[a("li",[t._v("Within one month of the request, the Site will respond to a request for erasure of personal data.")]),t._v(" "),a("li",[t._v("When responding to requests for erasure the Site will determine whether the purpose for which personal data is used is no longer necessary; whether the user withdraws consent to use personal data; and whether processing of the relevant personal data is required to comply with any other legal obligation.")])]),t._v(" "),a("li",[t._v("The right to restrict processing")]),t._v(" "),a("ul",[a("li",[t._v("This right entails the Site temporarily moving the relevant personal data to another processing system, making it unavailable to users or temporarily removing published data from the Site")])]),t._v(" "),a("li",[t._v("The right to data portability")]),t._v(" "),a("ul",[a("li",[t._v("Users may either receive a copy of their personal data stored on the Siteâs servers or have such personal data transmitted to another controller")])]),t._v(" "),a("li",[t._v("The right to object ")]),t._v(" "),a("ul",[a("li",[t._v("Users have the absolute right to object to the processing of their data for marketing purposes.")]),t._v(" "),a("li",[t._v("Users may also object to the processing of their data so long as they provide specific reasons for their objection; the Site may respond to those objections within one month.")])]),t._v(" "),a("li",[t._v("The right of automated decision-making in profiling")]),t._v(" "),a("ul",[a("li",[t._v("The Site will undertake to consider and document the reasons for undertaking or not undertaking a Data Protection Impact Assessment (DPIA) whenever user personal data will be used in any automated-decision making on the Site.")])])]),t._v(" "),a("p",[a("strong",[t._v("CONTACT INFORMATION.")]),t._v(" We welcome your comments or questions about this privacy policy. You may also contact us at our address: "),a("br"),t._v(" "),a("br"),t._v("\n Songback, LLC "),a("br"),t._v("\n P.O. Box 18011 "),a("br"),t._v("\n Irvine, CA 92623 "),a("br")]),t._v(" "),a("p",[a("strong",[t._v("CHANGES TO THIS PRIVACY POLICY.")]),t._v(" We may change this privacy policy. If we make any changes, we will change the Last Updated date above.\n ")])])],1)],1)},staticRenderFns:[]};var Wr={components:{SiteTabs:Fr}},Gr={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("SiteTabs"),t._v(" "),a("b-row",[a("b-col",{staticClass:"text-center all-caps"},[a("h1",[t._v("\n MEDIA CONTACT\n ")])])],1),t._v(" "),a("b-row",[a("b-col",[a("p",[t._v("\n Feel free to get in touch anytime. Email us with questions or inquiries you have. We would be happy to answer any questions and schedule a meeting/call.\n ")]),t._v(" "),a("p",[a("strong",[t._v("Media Contact Information")]),a("br"),t._v(" "),a("strong",[t._v("Email: ")]),a("a",{attrs:{href:"mailto:[email protected]"}},[t._v("[email protected]")]),a("br"),t._v(" "),a("br"),t._v("\n Songback, LLC "),a("br"),t._v("\n P.O. Box 18011 "),a("br"),t._v("\n Irvine, CA 92623 "),a("br")])])],1)],1)},staticRenderFns:[]};var Yr={components:{SiteTabs:Fr}},Kr={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("SiteTabs"),t._v(" "),a("b-row",[a("b-col",{staticClass:"text-center all-caps"},[a("h1",[t._v("\n Songback Live Streaming Guide\n ")])])],1),t._v(" "),a("b-row",[a("b-col",[a("p",[t._v("\n In order to broadcast a live stream on Songback, encoding software is required. Encoding software will allow you to link your camera, microphone, etc., to our platform.\n ")]),t._v(" "),a("p",[t._v("\n If you are streaming using a camera connected to your computer, we recommend desktop software such as "),a("a",{attrs:{href:"https://obsproject.com/",target:"_blank"}},[t._v("OBS")]),t._v(" or "),a("a",{attrs:{href:"https://www.telestream.net/wirecast/",target:"_blank"}},[t._v("WireCast")]),t._v(".\n ")]),t._v(" "),a("p",[t._v("\n If you're streaming from a mobile phone or tablet, there are many more factors to consider. Try out the "),a("strong",[t._v("myCaster")]),t._v(" app, available for both "),a("a",{attrs:{href:"https://itunes.apple.com/us/app/mycaster/id1109296291?mt=8",target:"_blank"}},[t._v("iOS")]),t._v(" and "),a("a",{attrs:{href:"https://play.google.com/store/apps/details?id=com.bemytv.mycaster.free&hl=en",target:"_blank"}},[t._v("Android")]),t._v(" devices. You'll need the full version to be able to unlock advanced options such as recording while streaming.\n ")]),t._v(" "),a("h3",[t._v("OBS Streaming Guide")]),t._v(" "),a("p",[t._v("\n To stream using OBS, follow these steps:\n ")]),t._v(" "),a("ol",[a("li",[t._v("Open OBS Studio; you will be directed to a blank video panel with several options beneath it.")]),t._v(" "),a("li",[t._v('In the "Sources" list click the add (+) button and select the "Video Capture Device" option.')]),t._v(" "),a("li",[t._v('In the "Properties for Video Capture Device" popup, select your video camera and confirm; if your camera is not listed, check your operating system and drivers manual on how to set up the camera on your computer.')]),t._v(" "),a("li",[t._v('Live feed from the camera should show up in the OBS video panel; if the video is not showing, check that you successfully added your "Video Capture Device" in step 3 and that it appears in the âSourcesâ panel.')]),t._v(" "),a("li",[t._v('Right-click on the video and select "Transform -> Fit to Screen" so the video is properly positioned on the screen.')]),t._v(" "),a("li",[t._v("Click âSettingsâ and follow these steps:\n "),a("ul",[a("li",[t._v('In the "Stream" panel, for "Stream Type" select "Custom Streaming Server".')]),t._v(" "),a("li",[t._v('Fill in the RTMP URL, Stream Key, Username and Password using the information provided on your live stream page on Songback; make sure that the "Use authentication" option is enabled.')]),t._v(" "),a("li",[t._v('In "Streaming -> Output", set the video bitrate to 4000kbps for HD streams, or 2000kbps for half-HD streams. Set the audio bitrate to 128kbps. Enable "advanced encoder settings". Under encoder preset, choose "ultrafast" and for custom encoder settings set "keyint=24 tune=zerolatency".')]),t._v(" "),a("li",[t._v('In "Recording", select a file name to record to, and choose recording quality "same as stream" and mp4 as the recording format.')]),t._v(" "),a("li",[t._v('In "Video" panel, set the base (canvas) and output (scaled) resolution to "1920
1x1080" for HD, or "1280x720".')]),t._v(" "),a("li",[t._v("Apply the changes.")])])]),t._v(" "),a("li",[t._v('Click "Start streaming" to begin streaming, and click "Start recording" to save a local copy of the video.')]),t._v(" "),a("li",[t._v('When your stream is finished, click "Stop streaming" and "Stop recording".')])]),t._v(" "),a("h3",[t._v("myCaster Streaming Guide")]),t._v(" "),a("p",[t._v("\n To stream using myCaster, follow these steps:\n ")]),t._v(" "),a("ol",[a("li",[t._v("Start the myCaster app.")]),t._v(" "),a("li",[t._v('From the selection options in the opening screen, choose "Wowza".')]),t._v(" "),a("li",[t._v('Fill in the RTMP URL, Stream Key, Username and Password for your stream and tap "Continue". (This information is provided on your live stream page on Songback)')]),t._v(" "),a("li",[t._v('Back on myCasterâs opening screen, tap "Start" to prepare the broadcast.')]),t._v(" "),a("li",[t._v('Tap on the gear icon to go into âSettingsâ. Choose the appropriate video resolution and stream quality; video bitrate will be automatically selected. Enable the "Record Stream" option if you want to save the video locally and reuse the content.')]),t._v(" "),a("li",[t._v('Tap "Advanced Settings" and set "Key Frame Interval" to 2 seconds.')]),t._v(" "),a("li",[t._v('Go back to the video preview screen and press the red "Go Live" button to start streaming.')]),t._v(" "),a("li",[t._v('Go back to the video preview screen and press the red "Go Live" button to start streaming.')])]),t._v(" "),a("h3",[t._v("Things to Remember")]),t._v(" "),a("p",[t._v("\n Before broadcasting ANY live stream, keep in mind the following:\n ")]),t._v(" "),a("ul",[a("li",[t._v("There are many variables to broadcasting a live stream successfully. We highly recommend that you create a private test stream to test your equipment, software, and network settings before your live event.")]),t._v(" "),a("li",[t._v("Test your network speed to ensure you have enough bandwidth, using tools such as "),a("a",{attrs:{href:"http://speedtest.net/",target:"_blank"}},[t._v("speedtest.net")]),t._v("; the measured "),a("em",[t._v("upload")]),t._v(" bandwidth should be twice the bitrate you use (or in other words, the bitrate for your stream should not exceed half of your available upload bandwidth).")]),t._v(" "),a("li",[t._v("You should be able to use your encoder to start, stop, and restart the live stream as needed while testing and adjusting your connection. You will "),a("strong",[t._v("not")]),t._v(" be able to end a live stream and restart it on Songback.")]),t._v(" "),a("li",[t._v("Each live stream you create on Songback will have different connection parameters, so you'll need to update your encoder settings for each event.")]),t._v(" "),a("li",[t._v("Encoder software recommendations are provided in the hope that they will be useful, but we can't guarantee their quality.")])])])],1)],1)},staticRenderFns:[]};var Xr={components:{SiteTabs:Fr}},Jr={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("SiteTabs"),t._v(" "),a("b-row",[a("b-col",{staticClass:"text-center all-caps"},[a("h1",[t._v("\n SONGBACK PHOTO CONTEST RULES\n ")])])],1),t._v(" "),a("b-row",[a("b-col",[a("p",{staticClass:"all-caps"},[t._v("\n NO PURCHASE IS NECESSARY TO ENTER OR WIN. A PURCHASE WILL NOT INCREASE YOUR CHANCES OF WINNING. ALL FEDERAL, STATE, LOCAL, AND MUNICIPAL LAWS AND REGULATIONS APPLY. VOID WHERE PROHIBITED.\n ")]),t._v(" "),a("h3",[t._v("1. "),a("small",{staticClass:"spacer"}),t._v(" Eligibility")]),t._v(" "),a("p",[t._v('\n Songback Photo Contest (the "Contest") is open to legal residents of the fifty (50) United States and the District of Columbia who are at least eighteen (18) years old at the time of entry (âContestantsâ) unless prohibited by law, in which case this Contest is void. Employees of Songback, LLC and other companies associated with the promotion of the Contest, and their respective parents, subsidiaries, affiliates and advertising and promotion agencies as well as the immediate family (spouse, parents, siblings, and children) and household members of each such employee are not eligible. The Contest is subject to federal, state, and local laws and regulations.\n ')]),t._v(" "),a("h3",[t._v("2. "),a("small",{staticClass:"spacer"}),t._v(" Sponsor")]),t._v(" "),a("p",[t._v("\n The Contest is sponsored by Songback, LLC (PO Box 18011, Irvine, California 92623).\n ")]),t._v(" "),a("h3",[t._v("3. "),a("small",{staticClass:"spacer"}),t._v(" Agreement to Official Rules")]),t._v(" "),a("p",[t._v("\n Participation in the Contest constitutes entrant's full and unconditional agreement to and acceptance of these Official Rules and the decisions of the Sponsor, which are final and binding. Winning a prize is contingent upon being compliant with these Official Rules and fulfilling all other requirements set forth herein.\n ")]),t._v(" "),a("h3",[t._v("4. "),a("small",{staticClass:"spacer"}),t._v(" Contest Period")]),t._v(" "),a("p",[t._v('\n The Contest begins on December 10, 2018 at 12:00 PM Pacific Standard Time and ends on January 14, 2019 at 11:59 PM Pacific Standard Time (the "Contest Period"). Entries that are submitted before or after the Contest Period will be disqualified. Submissions will be accepted for the duration of the Contest using email.\n ')]),t._v(" "),a("h3",[t._v("5. "),a("small",{staticClass:"spacer"}),t._v(" How to Enter")]),t._v(" "),a("p",[t._v("\n Online: This method of entry will be available by first visiting our website ("),a("router-link",{attrs:{to:{name:"landing"}}},[t._v("www.songback.com")]),t._v(") and signing up and successfully creating both Fan and Artists profile types. Under the Artist profile, publishing at least one public video accessible to all Sponsor users will be required in order to qualify any submitted photo as an eligible entry (âSubmissionâ). Once these steps have been completed, send photo(s) via email using the information provided below:\n ")],1),t._v(" "),a("ul",[a("li",[t._v("Email for submissions: "),a("a",{attrs:{href:"mailto:[email protected]"}},[t._v("[email protected]")])]),t._v(" "),a("li",[t._v("Provide the following in your email:\n "),a("ul",[a("li",[t._v("First and last name")]),t._v(" "),a("li",[t._v("Artist profile link, or handle (@example)")]),t._v(" "),a("li",[t._v("Phone number")]),t._v(" "),a("li",[t._v("Attach photo(s):\n "),a("ul",[a("li",[t._v("Supported formats: .png, .jpg")]),t._v(" "),a("li",[t._v("1600 x 976 px minimum")])])])])])]),t._v(" "),a("p",[t._v("\n Limit two (2) entries per person, band, or group, and per email address for the duration of the Contest Period, regardless of method of entry. Entries received from any person, e-mail address, or household in excess of the stated limitation will be void. All entr
1ies become the property of Sponsor and will not be acknowledged or returned.\n ")]),t._v(" "),a("p",[t._v("\n Simultaneous with submission, Contestants grant Sponsor a worldwide, royalty-free, irrevocable license in perpetuity to reproduce, publicly display, make derivative works, publicly perform and distribute in any manner whatsoever to the Submission or any part thereof.\n ")]),t._v(" "),a("h3",[t._v("6. "),a("small",{staticClass:"spacer"}),t._v(" Prize Selection")]),t._v(" "),a("p",[t._v("\n On or about January 14, 2019, the Sponsor will designate, in its sole discretion and judgment, a panel of judges to select potential winners from among all eligible entries received. The Sponsor will attempt to notify the potential winner via telephone or email on or about January 23, 2019. If the potential winner cannot be contacted within five (5) days after the date of the first attempt to contact him/her, the Sponsor may select an alternate potential winner in his/her place from the remaining non-winning, eligible entries. Sponsor may in its sole discretion use its own methods for determining winners and shall not be liable to any potential winner or any other third-party for its decision to award a prize.\n ")]),t._v(" "),a("h3",[t._v("7. "),a("small",{staticClass:"spacer"}),t._v(" Winner Notification")]),t._v(" "),a("p",[t._v("\n The potential winners will be notified by email or phone. Each potential Grand and First Prize winner (parent/legal guardian if a minor in his/her state of residence) will be required to complete, electronically sign and submit a Declaration of Compliance within five (5) days of the date notice or attempted notice is sent, in order to claim his/her prize. If a potential winner cannot be contacted, or fails to submit the Declaration of Compliance within the required time period (if applicable), or prize is returned as undeliverable, potential winner forfeits prize. If the potential winner is at least 18 but still considered a minor in his/her jurisdiction of residence, Sponsor reserves the right to award the prize in the name of his/her parent or legal guardian, who will be required to sign the Declaration of Compliance on the potential winnerâs behalf and fulfill any other requirements imposed on winner set forth herein. Potential winners must continue to comply with all terms and conditions of these Official Rules, and winning is contingent upon fulfilling all requirements. In the event that a potential winner is disqualified for any reason, Sponsor will award the applicable prize to an alternate winner chosen in Sponsorâs sole discretion. Only three (3) alternate drawings will be held, after which the prize will remain un-awarded. Prizes will be fulfilled approximately 8-10 weeks after the conclusion of the Contest. Sponsor disclaims all responsibility for any failure to notify due to technical failures in Sponsorsâ or potential winnersâ email or telephone systems or the delivery service used to deliver mail or its equivalent.\n ")]),t._v(" "),a("h3",[t._v("8. "),a("small",{staticClass:"spacer"}),t._v(" Prizes")]),t._v(" "),a("p",[t._v("\n Grand Prize: Photo of artist(s) will be placed on Songback's homepage for a 3-month period. Name of the artist, group, or band, and handle (@example) will be overlaid on image for the site's visitors to see. Photo placement shall be decided in Sponsorâs sole discretion and judgment.\n ")]),t._v(" "),a("p",[t._v("\n First Prize: Photo of artist(s) will be placed on Songback's homepage for a 2-month period. Name of the artist, group, or band, and handle (@example) will be overlaid on image for the site's visitors to see. Photo placement shall be decided in Sponsorâs sole discretion and judgment.\n ")]),t._v(" "),a("h3",[t._v("9. "),a("small",{staticClass:"spacer"}),t._v(" General Conditions")]),t._v(" "),a("p",[t._v("\n In the event that the operation, security, or administration of the Contest is impaired in any way for any reason, including, but not limited to fraud, virus, bug, worm, unauthorized human intervention or other technical problem, or in the event the Contest is unable to run as planned for any other reason, as determined by Sponsor in its sole discretion, the Sponsor may, in its sole discretion, either (a) suspend the C
1ontest to address the impairment and then resume the Contest in a manner that best conforms to the spirit of these Official Rules or (b) terminate the Contest and, in the event of termination, award the prize at random from among the eligible, non-suspect entries received up to the time of the impairment. The Sponsor reserves the right in its sole discretion to disqualify any individual from the Contest for any reason whatsoever. Any attempt by any person to damage the website or undermine the legitimate operation of the Contest may be a violation of criminal and civil law, and, should such an attempt be made, the Sponsor reserves the right to seek damages (including attorney's fees) and any other remedies from any such person to the fullest extent permitted by law. Failure by the Sponsor to enforce any provision of these Official Rules shall not constitute a waiver of that provision.\n ")]),t._v(" "),a("p",[t._v("\n Contest will be void ab initio if less than 200 qualified artists participate.\n ")]),t._v(" "),a("h3",[t._v("10. "),a("small",{staticClass:"spacer"}),t._v(" Release and Limitations of Liability")]),t._v(" "),a("p",[t._v("\n By participating in the Contest, entrants agree to release and hold harmless the Sponsor, and each of their respective parents, subsidiaries, affiliates, advertising and promotion agencies, other companies associated with the Contest, and each of their respective officers, directors, employees, shareholders, representatives, and agents (the Released Parties) from and against any claim or cause of action arising out of participation in the Contest or receipt or use of the prize (including any travel or activity related thereto), including, but not limited to: (a) any technical errors associated with the Contest, including lost, interrupted or unavailable Internet Service Provider (ISP), network, server, wireless service provider, or other connections, availability or accessibility or miscommunications or failed computer, satellite, telephone,
1cellular tower or cable transmissions, lines, or technical failure or jumbled, scrambled, delayed, or misdirected transmissions or computer hardware or software malfunctions, failures or difficulties; (b) unauthorized human intervention in the Contest; (c) mechanical, network, electronic, computer, human, printing or typographical errors; (d) application downloads, (e) any other errors or problems in connection with the Contest, including, without limitation, errors that may occur in the administration of the Contest, the announcement of the winner, the cancellation or postponement of the event and/or the flyover, if applicable, the incorrect downloading of the application, the processing of entries application downloads or in any Contest-related materials; or (f) injury, death, losses or damages of any kind, to persons or property which may be caused, directly or indirectly, in whole or in part, from entrants participation in the Contest or acceptance, receipt or misuse of the prize (including any travel or activity related thereto). Entrant further agrees that in any cause of action, the Released Parties liability will be limited to the cost of entering and participating in the Contest, and in no event shall the entrant be entitled to receive attorney's fees. Released Parties are also not responsible for any incorrect or inaccurate information, whether caused by site users, tampering, hacking, or by any equipment or programming associated with or utilized in the Contest. Entrant waives the right to claim any damages whatsoever, including, but not limited to, punitive, consequential, direct, or indirect damages.\n ")]),t._v(" "),a("h3",[t._v("11. "),a("small",{staticClass:"spacer"}),t._v(" Disputes")]),t._v(" "),a("p",[t._v("\n Except where prohibited, each Contestant agrees that any and all disputes, claims and causes of action arising out of, or connected with, the Contest or any prize awarded shall be resolved individually, without resort to any form of class action, and exclusively by the appropriate court located in California. All issues and questions concerning the construction, validity, interpretation and enforceability of these Official Rules, entrants rights and obligations, or the rights and obligations of the Sponsor in connection with the Contest, shall be governed by, and construed in accordance with, the laws of California, without giving effect to any choice of law or conflict of law rules, which would cause the application of the laws of any jurisdiction other than California.\n ")]),t._v(" "),a("h3",[t._v("12. "),a("small",{staticClass:"spacer"}),t._v(" Intellectual Property")]),t._v(" "),a("p",[t._v("\n By entering content, Contestant represents and warrants that Contestantâs entry is an original work of authorship and does not violate any third partyâs proprietary or intellectual property rights. If Contestantâs entry infringes upon the intellectual property right of another, Contestant will be disqualified at the sole discretion of Sponsor. If the content of Contestantâs entry is claimed to constitute infringement of any proprietary or intellectual proprietary rights of any third party, Contestant shall, at their sole expense, defend or settle against such claims. Contestant shall indemnify, defend, and hold harmless Sponsor from and against any suit, proceeding, claims, liability, loss, damage, costs or expense, which Sponsor may incur, suffer, or be required to pay arising out of such infringement or suspected infringement of any third partyâs right. All Contestants, whether they win a prize or not, grant Sponsor permission to use their name, likeness and entry for purposes of advertising and trade without further compensation, unless prohibited by law.\n ")]),t._v(" "),a("h3",[t._v("13. "),a("small",{staticClass:"spacer"}),t._v(" Incorporation of Terms")]),t._v(" "),a("p",[t._v("\n These rules incorporate by reference herein the Terms of Service available at "),a("router-link",{attrs:{to:{name:"site-tos"}}},[t._v("http://www.songback.com/site/tos")]),t._v(" (âTermsâ). To the extent any Official Rules herein differ from the Terms, the Official Rules shall supersede the Terms.\n ")],1)])],1)],1)},staticRenderFns:[]};var Qr={components:{SiteTabs:Fr}},Zr={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-container",[a("SiteTabs"),t._v(" "),a("b-row",[a("b-col",{staticClass:"text-center all-caps"},[a("h1",[t._v("\n SONGBACK VIDEO CONTEST RULES\n ")])])],1),t._v(" "),a("b-row",[a("b-col",[a("p",{staticClass:"all-caps"},[t._v("\n NO PURCHASE IS NECESSARY TO ENTER OR WIN. A PURCHASE WILL NOT INCREASE YOUR CHANCES OF WINNING. ALL FEDERAL, STATE, LOCAL, AND MUNICIPAL LAWS AND REGULATIONS APPLY. VOID WHERE PROHIBITED.\n ")]),t._v(" "),a("h3",[t._v("1. "),a("small",{staticClass:"spacer"}),t._v(" Eligibility")]),t._v(" "),a("p",[t._v('\n Songback Video Contest (the "Contest") is open to legal residents of the fifty (50) United States and the District of Columbia who are at least eighteen (18) years old at the time of entry (âContestantsâ) unless prohibited by law, in which case this Contest is void. Employees of Songback, LLC and other companies associated with the promotion of the Contest, and their respective parents, subsidiaries, affiliates and advertising and promotion agencies as well as the immediate family (spouse, parents, siblings, and children) and household members of each such employee are not eligible. The Contest is subject to federal, state, and local laws and regulations.\n ')]),t._v(" "),a("h3",[t._v("2. "),a("small",{staticClass:"spacer"}),t._v(" Sponsor")]),t._v(" "),a("p",[t._v("\n The Contest is sponsored by Songback, LLC (PO Box 18011, Irvine, California 92623).\n ")]),t._v(" "),a("h3",[t._v("3. "),a("small",{staticClass:"spacer"}),t._v(" Agreement to Official Rules")]),t._v(" "),a("p",[t._v("\n Participation in the Contest constitutes entrant's full and unconditional agreement to and acceptance of these Official Rules and the decisions of the Sponsor, which are final and binding. Winning a prize is contingent upon being compliant with these Official Rules and fulfilling all other requirements set forth herein.\n ")]),t._v(" "),a("h3",[t._v("4. "),a("small",{staticClass:"spacer"}),t._v(" Contest Period")]),t._v(" "),a("p",[t._v('\n The Contest begins on June 18, 2019 at 12:00 PM Pacific Standard Time and ends on July 2, 2019 at 11:59 PM Pacific Standard Time (the "Contest Period"). Entries that are submitted before or after the Contest Period will be disqualified. Submissions will be accepted for the duration of the Contest using email.\n ')]),t._v(" "),a("h3",[t._v("5. "),a("small",{staticClass:"spacer"}),t._v(" How to Enter")]),t._v(" "),a("p",[t._v("\n Online: This method of entry will be available by first visiting our website ("),a("router-link",{attrs:{to:{name:"landing"}}},[t._v("www.songback.com")]),t._v(") and signing up and successfully creating both Fan and Artists profile types. Under the Artist profile, publishing at least one public video accessible to all Sponsor users will be required in order to qualify any submitted video as an eligible entry (âSubmissionâ). Once these steps have been completed, submit entries via email using the information provided below:\n ")],1),t._v(" "),a("ul",[a("li",[t._v("Email for submissions: "),a("a",{attrs:{href:"mailto:[email protected]"}},[t._v("[email protected]")])]),t._v(" "),a("li",[t._v("Provide the following in your email:\n "),a("ul",[a("li",[t._v("First and last name")]),t._v(" "),a("li",[t._v("Artist profile link, or handle (@example)")]),t._v(" "),a("li",[t._v("Phone number")]),t._v(" "),a("li",[t._v("Video link(s)")])])])]),t._v(" "),a("p",[t._v("\n Limit two (2) entries per person, band, or group, and per email address for the duration of the Contest Period, regardless of method of entry. Entries received from any person, e-mail address, or household in excess of the stated limitation will be void. All entr
1ies become the property of Sponsor and will not be acknowledged or returned.\n ")]),t._v(" "),a("p",[t._v("\n Simultaneous with submission, Contestants grant Sponsor a worldwide, royalty-free, irrevocable license in perpetuity to reproduce, publicly display, make derivative works, publicly perform and distribute in any manner whatsoever to the Submission or any part thereof.\n ")]),t._v(" "),a("h3",[t._v("6. "),a("small",{staticClass:"spacer"}),t._v(" Prize Selection")]),t._v(" "),a("p",[t._v("\n On or about July 9, 2019, the Sponsor will designate, in its sole discretion and judgment, a panel of judges to select potential winners from among all eligible entries received. The Sponsor will attempt to notify the potential winner via telephone or email on or about July 9, 2019. If the potential winner cannot be contacted within five (5) days after the date of the first attempt to contact him/her, the Sponsor may select an alternate potential winner in his/her place from the remaining non-winning, eligible entries. Sponsor may in its sole discretion use its own methods for determining winners and shall not be liable to any potential winner or any other third-party for its decision to award a prize.\n ")]),t._v(" "),a("h3",[t._v("7. "),a("small",{staticClass:"spacer"}),t._v(" Winner Notification")]),t._v(" "),a("p",[t._v("\n The potential winners will be notified by email or phone. The potential Grand Prize winner (parent/legal guardian if a minor in his/her state of residence) will be required to complete, electronically sign and submit a Declaration of Compliance within five (5) days of the date notice or attempted notice is sent, in order to claim his/her prize. If a potential winner cannot be contacted, or fails to submit the Declaration of Compliance within the required time period (if applicable), or prize is returned as undeliverable, potential winner forfeits prize. If the potential winner is at least 18 but still considered a minor in his/her jurisdiction of residence, Sponsor reserves the right to award the prize in the name of his/her parent or legal guardian, who will be required to sign the Declaration of Compliance on the potential winnerâs behalf and fulfill any other requirements imposed on winner set forth herein. Potential winners must continue to comply with all terms and conditions of these Official Rules, and winning is contingent upon fulfilling all requirements. In the event that a potential winner is disqualified for any reason, Sponsor will award the applicable prize to an alternate winner chosen in Sponsorâs sole discretion. Only three (3) alternate drawings will be held, after which the prize will remain un-awarded. Prizes will be fulfilled approximately 2-3 weeks after the conclusion of the Contest. Sponsor disclaims all responsibility for any failure to notify due to technical failures in Sponsorsâ or potential winnersâ email or telephone systems or the delivery service used to deliver mail or its equivalent.\n ")]),t._v(" "),a("h3",[t._v("8. "),a("small",{staticClass:"spacer"}),t._v(" Prizes")]),t._v(" "),a("p",[t._v("\n Grand Prize: One (1) Prize is available. The Prize Winner shall receive One Thousand Dollars ($1,000) and it will be sent via PayPal.\n ")]),t._v(" "),a("h3",[t._v("9. "),a("small",{staticClass:"spacer"}),t._v(" General Conditions")]),t._v(" "),a("p",[t._v("\n In the event that the operation, security, or administration of the Contest is impaired in any way for any reason, including, but not limited to fraud, virus, bug, worm, unauthorized human intervention or other technical problem, or in the event the Contest is unable to run as planned for any other reason, as determined by Sponsor in its sole discretion, the Sponsor may, in its sole discretion, either (a) suspend the Contest to address the impairment and then resume the Contest in a manner that best conforms to the spirit of these Official Rules or (b) terminate the Contest and, in the event of termination, award the prize at random from among the eligible, non-suspect entries received up to the time of the impairment. The Sponsor reserves the right in its sole discretion to disqualify any individual from the Contest for any reason whatsoever. Any attempt by any person to damage the website or undermine the legitimate operation of the Contest may be a violation of criminal and civil law, and, should such an attempt be made, the Sponsor reserves the right to seek damages (including attorney's fees) and any other remedies from any such person to the fullest extent permitted by law. Failure by the Sponsor to enforce any provision of these Official Rules shall not constitute a waiver of that provision.\n ")]),t._v(" "),a("p",[t._v("\n Contest will be void ab initio if less than 100 qualified artists participate.\n ")]),t._v(" "),a("h3",[t._v("10. "),a("small",{staticClass:"spacer"}),t._v(" Release and Limitations of Liability")]),t._v(" "),a("p",[t._v("\n By participating in the Contest, entrants agree to release and hold harmless the Sponsor, and each of their respective parents, subsidiaries, affiliates, advertising and promotion agencies, other companies associated with the Contest, and each of their respective officers, directors, employees, shareholders, representatives, and agents (the Released Parties) from and against any claim or cause of action arising out of participation in the Contest or receipt or use of the prize (including any travel or activity related thereto), including, but not limited to: (a) any technical errors associated with the Contest, including lost, interrupted or unavailable Internet Service Provider (ISP), network, server, wireless service provider, or other connections, availability or accessibility or miscommunications or failed computer, satellite, telep
1hone, cellular tower or cable transmissions, lines, or technical failure or jumbled, scrambled, delayed, or misdirected transmissions or computer hardware or software malfunctions, failures or difficulties; (b) unauthorized human intervention in the Contest; (c) mechanical, network, electronic, computer, human, printing or typographical errors; (d) application downloads, (e) any other errors or problems in connection with the Contest, including, without limitation, errors that may occur in the administration of the Contest, the announcement of the winner, the cancellation or postponement of the event and/or the flyover, if applicable, the incorrect downloading of the application, the processing of entries application downloads or in any Contest-related materials; or (f) injury, death, losses or damages of any kind, to persons or property which may be caused, directly or indirectly, in whole or in part, from entrants participation in the Contest or acceptance, receipt or misuse of the prize (including any travel or activity related thereto). Entrant further agrees that in any cause of action, the Released Parties liability will be limited to the cost of entering and participating in the Contest, and in no event shall the entrant be entitled to receive attorney's fees. Released Parties are also not responsible for any incorrect or inaccurate information, whether caused by site users, tampering, hacking, or by any equipment or programming associated with or utilized in the Contest. Entrant waives the right to claim any damages whatsoever, including, but not limited to, punitive, consequential, direct, or indirect damages.\n ")]),t._v(" "),a("h3",[t._v("11. "),a("small",{staticClass:"spacer"}),t._v(" Disputes")]),t._v(" "),a("p",[t._v("\n Except where prohibited, each Contestant agrees that any and all disputes, claims and causes of action arising out of, or connected with, the Contest or any prize awarded shall be resolved individually, without resort to any form of class action, and exclusively by the appropriate court located in California. All issues and questions concerning the construction, validity, interpretation and enforceability of these Official Rules, entrants rights and obligations, or the rights and obligations of the Sponsor in connection with the Contest, shall be governed by, and construed in accordance with, the laws of California, without giving effect to any choice of law or conflict of law rules, which would cause the application of the laws of any jurisdiction other than California.\n ")]),t._v(" "),a("h3",[t._v("12. "),a("small",{staticClass:"spacer"}),t._v(" Intellectual Property")]),t._v(" "),a("p",[t._v("\n By entering content, Contestant represents and warrants that Contestantâs entry is an original work of authorship and does not violate any third partyâs proprietary or intellectual property rights. If Contestantâs entry infringes upon the intellectual property right of another, Contestant will be disqualified at the sole discretion of Sponsor. If the content of Contestantâs entry is claimed to constitute infringement of any proprietary or intellectual proprietary rights of any third party, Contestant shall, at their sole expense, defend or settle against such claims. Contestant shall indemnify, defend, and hold harmless Sponsor from and against any suit, proceeding, claims, liability, loss, damage, costs or expense, which Sponsor may incur, suffer, or be required to pay arising out of such infringement or suspected infringement of any third partyâs right. All Contestants, whether they win a prize or not, grant Sponsor permission to use their name, likeness and entry for purposes of advertising and trade without further compensation, unless prohibited by law.\n ")]),t._v(" "),a("h3",[t._v("13. "),a("small",{staticClass:"spacer"}),t._v(" Incorporation of Terms")]),t._v(" "),a("p",[t._v("\n These rules incorporate by reference herein the Terms of Service available at "),a("router-link",{attrs:{to:{name:"site-tos"}}},[t._v("http://www.songback.com/site/tos")]),t._v(" (âTermsâ). To the extent any Official Rules herein differ from the Terms, the Official Rules shall supersede the Terms.\n ")],1)])],1)],1)},staticRenderFns:[]};var to=[{path:"/site/about/",name:"site-about",component:a("VU/8")(Mr,Ur,!1,function(t){a("79mF")}
1,"data-v-ffa51694",null).exports,meta:{hideSidebar:!0}},{path:"/site/tos/",name:"site-tos",component:a("VU/8")(Nr,Vr,!1,function(t){a("qlHd")},"data-v-e31a0efe",null).exports,meta:{hideSidebar:!0}},{path:"/site/dmca/",name:"site-dmca",component:a("VU/8")(jr,Dr,!1,function(t){a("AHub")},"data-v-5d663d75",null).exports,meta:{hideSidebar:!0}},{path:"/site/fees/",name:"site-fees",component:a("VU/8")(Br,Hr,!1,function(t){a("tcvl")},"data-v-715ee6e5",null).exports,meta:{hideSidebar:!0}},{path:"/site/privacy/",name:"site-privacy",component:a("VU/8")(qr,zr,!1,function(t){a("cc6t")},"data-v-08c7cbcd",null).exports,meta:{hideSidebar:!0}},{path:"/site/press/",name:"site-press",component:a("VU/8")(Wr,Gr,!1,function(t){a("pqX1")},"data-v-70e37064",null).exports,meta:{hideSidebar:!0}},{path:"/site/streaming-guide/",name:"site-streaming-guide",component:a("VU/8")(Yr,Kr,!1,function(t){a("HIl4")},"data-v-4875d9f0",null).exports,meta:{hideSidebar:!0}},{path:"/site/contests/photo-contest-2018-12/",name:"site-rules-photo-contest-2018-12",component:a("VU/8")(Xr,Jr,!1,function(t){a("riWI")},"data-v-0e15d3e4",null).exports,meta:{hideSidebar:!0}},{path:"/site/contests/video-contest-2019-6/",name:"site-rules-video-contest-2019-6",component:a("VU/8")(Qr,Zr,!1,function(t){a("pdYW")},"data-v-a6470700",null).exports,meta:{hideSidebar:!0}}],eo={render:function(){var t=this.$createElement;return(this._self._c||t)("div")},staticRenderFns:[]},ao=a("VU/8")({name:"PageNotFound",mounted:function(){this.$store.dispatch("flash/showMessage",{message:"Page not found",type:"error"}),this.$router.replace({name:"discover"})}},eo,!1,null,null,null).exports;i.a.use(Vt.a);var io=[{path:"*",name:"catchall",component:ao}],no=new Vt.a({mode:"history",routes:[].concat(qe,ur,ms,Tr,$r,to,io),scrollBehavior:function(t,e,a){return{x:0,y:0}}});no.beforeEach(function(t,e,a){Be.getters["auth/isLoggedIn"]?a():t.matched.some(function(t){return t.meta.requireLogin})?a({name:"account-login",query:{next:t.fullPath}}):a()}),no.beforeEach(function(t,e,a){var i=Be.getters["auth/isLoggedIn"]?Be.getters["profile/isArtist"]?"artist":"fan":"anon";t.matched.some(function(t){return t.meta.requireUserType&&t.meta.requireUserType!==i})?a("/"):a()});var so=no,ro=a("/Hyb"),oo=a.n(ro),lo=a("6fN7"),co=a.n(lo);i.a.use(n.a),i.a.config.productionTip=!1,s.default.library.add(r.a,r.b,r.c,r.d,r.e,r.f,r.g,r.h,r.i,r.j,r.k,r.l,r.m,r.n,r.o,r.p,r.q,r.r,r.s,r.t,r.u,r.v,r.w,r.x,r.y,r.z,r.A,r.B,r.C,r.F,r.D,r.E,o.b,o.a),i.a.prototype.$eventHub=new i.a,window.SITE_CONFIG.SENTRY_URL&&oo.a.config(window.SITE_CONFIG.SENTRY_URL).addPlugin(co.a,i.a).install(),new i.a({el:"#app",store:Be,router:so,components:{App:Nt},template:"<App/>"})},NlfV:function(t,e){},P7HJ:function(t,e){},P9vX:function(t,e){},Qlyi:function(t,e){},SrSY:function(t,e,a){"use strict";var i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"time-picker"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.displayTime,expression:"displayTime"}],staticClass:"display-time",attrs:{id:t.id,type:"text",readonly:""},domProps:{value:t.displayTime},on:{click:function(e){return e.stopPropagation(),t.toggleDropdown(e)},input:function(e){e.target.composing||(t.displayTime=e.target.value)}}}),t._v(" "),t.hideClearButton?t._e():a("span",{directives:[{name:"show",rawName:"v-show",value:!t.showDropdown&&t.showClearBtn,expression:"!showDropdown && showClearBtn"}],staticClass:"clear-btn",on:{click:function(e){return e.stopPropagation(),t.clearTime(e)}}},[t._v("Ã")]),t._v(" "),t.showDropdown?a("div",{staticClass:"time-picker-overlay",on:{click:function(e){return e.stopPropagation(),t.toggleDropdown(e)}}}):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.showDropdown,expression:"showDropdown"}],staticClass:"dropdown"},[a("div",{staticClass:"select-list"},[a("ul",{staticClass:"hours"},[a("li",{staticClass:"hint",domProps:{textContent:t._s(t.hourType)}}),t._v(" "),t._l(t.hours,function(e){return a("li",{class:{active:t.hour===e},domProps:{textContent:t._s(e)},on:{click:function(a){a.stopPropagation(),t.select("hour",e)}}})})],2),t._v(" "),a("ul",{staticClass:"minutes"},[a("li",{staticClass:"hint",domProps:{textContent:t._s(t.minuteType)}}),t._v(" "),t._l(t.minutes,function(e){return a("li",{class:{active:t.minute===e},domProps:{textContent:t._s(e)},on:{click:function(a){a.stopPropagation(),t.select("minute",e)}}})})],2),t._v(" "),t.secondType?a("ul",{staticClass:"seconds"},[a("li",{staticClass:"hint",domProps:{textContent:t._s(t.secondType)}}),t._v(" "),t._l(t.seconds,function(e){return a("li",{class:{active:t.second===e},domProps:{textContent:t._s(e)},on:{click:function(a){a.stopPropagation(),t.select("second",e)}}})})],2):t._e(),t._v(" "),t.apmType?a("ul",{staticClass:"apms"},[a("li",{staticClass:"hint",domProps:{textContent:t._s(t.apmType)}}),t._v(" "),t._l(t.apms,function(e){return a("li",{class:{active:t.apm===e},domProps:{textContent:t._s(e)},on:{click:function(a){a.stopPropagation(),t.select("apm",e)}}})})],2):t._e()])])])},staticRenderFns:[]};e.a=i},T2J2:function(t,e){},TgaC:function(t,e){},WMpW:function(t,e){},WlQd:function(t,e){},YEiv:function(t,e){},YkTQ:function(t,e){},agXG:function(t,e){},b6Tk:function(t,e){},bug8:function(t,e){},cc6t:function(t,e){},fBku:function(t,e){},fHnX:function(t,e){},g9Tl:function(t,e){},gCMD:function(t,e,a){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var i=s(a("fZjL")),n=s(a("mvHQ"));function s(t){return t&&t.__esModule?t:{default:t}}var r={HOUR_TOKENS:["HH","H","hh","h","kk","k"],MINUTE_TOKENS:["mm","m"],SECOND_TOKENS:["ss","s"],APM_TOKENS:["A","a"]};e.default={name:"VueTimepicker",props:{value:{type:Object},hideClearButton:{type:Boolean},format:{type:String},minuteInterval:{type:Number},secondInterval:{type:Number},id:{type:String}},data:function(){return{hours:[],minutes:[],seconds:[],apms:[],showDropdown:!1,muteWatch:!1,hourType:"HH",minuteType:"mm",secondType:"",apmType:"",hour:"",minute:"",second:"",apm:"",fullValues:void 0}},computed:{displayTime:function(){var t=String(this.format||"HH:mm");return this.hour&&(t=t.replace(new RegExp(this.hourType,"g"),this.hour)),this.minute&&(t=t.replace(new RegExp(this.minuteType,"g"),this.minute)),this.second&&this.secondType&&(t=t.replace(new RegExp(this.secondType,"g"),this.second)),this.apm&&this.apmType&&(t=t.replace(new RegExp(this.apmType,"g"),this.apm)),t},showClearBtn:function(){return!!(this.hour&&""!==this.hour||this.minute&&""!==this.minute)}},watch:{format:"renderFormat",minuteInterval:function(t){this.renderList("minute",t)},secondInterval:function(t){this.renderList("second",t)},value:"readValues",displayTime:"fillValues"},methods:{formatValue:function(t,e){switch(t){case"H":case"m":case"s":return String(e);case"HH":case"mm":case"ss":return e<10?"0"+e:String(e);case"h":case"k":return String(e+1);case"hh":case"kk":return e+1<10?"0"+(e+1):String(e+1);default:return""}},checkAcceptingType:function(t,e,a){if(!t||!e||!e.length)return"";for(var i=0;i<t.length;i++)if(e.indexOf(t[i])>-1)return t[i];return a||""},renderFormat:function(t){(t=t||this.format)&&t.length||(t="HH:mm"),this.hourType=this.checkAcceptingType(r.HOUR_TOKENS,t,"HH"),this.minuteType=this.checkAcceptingType(r.MINUTE_TOKENS,t,"mm"),this.secondType=this.checkAcceptingType(r.SECOND_TOKENS,t),this.apmType=this.checkAcceptingType(r.APM_TOKENS,t),this.renderHoursList(),this.renderList("minute"),this.secondType&&this.renderList("second"),this.apmType&&this.renderApmList();var e=this;this.$nextTick(function(){e.readValues()})},renderHoursList:function(){var t="h"===this.hourType||"hh"===this.hourType?12:24;this.hours=[];for(var e=0;e<t;e++)this.hours.push(this.formatValue(this.hourType,e))},renderList:function(t,e){if("second"===t)e=e||this.secondInterval;else{if("minute"!==t)return;e=e||this.minuteInterval}0===e?e=60:e>60?(window.console.warn("`"+t+"-interval` should be less than 60. Current value is",e),e=1):e<1?(window.console.warn("`"+t+"-interval` should be NO less than 1. Current value is",e),e=1):e||(e=1),"minute"===t?this.minutes=[]:this.seconds=[];for(var a=0;a<60;a+=e)"minute"===t?this.minutes.push(this.formatValue(this.minuteType,a)):this.seconds.push(this.formatValue(this.secondType,a))},renderApmList:function(){this.apms=[],this.apmType&&(this.apms="A"===this.apmType?["AM","PM"]:["am","pm"])},readValues:function(){if(this.value&&!this.muteWatch){var t=JSON.parse((0,n.default)(this.value||{})),e=(0,i.default)(t);0!==e.length&&(e.indexOf(this.hourType)>-1&&(this.hour=t[this.hourType]),e.indexOf(this.minuteType)>-1&&(this.minute=t[this.minuteType]),e.indexOf(this.secondType)>-1?this.second=t[this.secondType]:this.second=0,e.indexOf(this.apmType)>-1&&(this.apm=t[this.apmType]),this.fillValues())}},fillValues:function(){var t={},e=this.hour,a=this.hourType,i=e||0===e?Number(e):"",n=this.isTwelveHours(a),s=!(!n||!this.apm)&&String(this.apm).toLowerCase();if(r.HOUR_TOKENS.forEach(function(r){if(r!==a){var o=void 0,l=void 0;switch(r){case"H":case"HH":if(!String(i).length)return void(t[r]="");o=n?"pm"===s?i<12?i+12:i:i%12:i%24,t[r]="HH"===r&&o<10?"0"+o:String(o);break;case"k":case"kk":if(!String(i).length)return void(t[r]="");o=n?"pm"===s?i<12?i+12:i:12===i?24:i:0===i?24:i,t[r]="kk"===r&&o<10?"0"+o:String(o);break;case"h":case"hh":if(s)o=i,l=s||"am";else{if(!String(i).length)return t[r]="",t.a="",void(t.A="");i>11?(l="pm",o=12===i?12:i%12):(l=n?"":"am",o=i%12==0?12:i)}t[r]="hh"===r&&o<10?"0"+o:String(o),t.a=l,t.A=l.toUpperCase()}}else t[r]=e}),this.minute||0===this.minute){var o=Number(this.minute);t.m=String(o),t.mm=o<10?"0"+o:String(o)}else t.m="",t.mm="";if(this.second||0===this.second){var l=Number(this.second);t.s=String(l),t.ss=l<10?"0"+l:String(l)}else t.s="",t.ss="";this.fullValues=t,this.updateTimeValue(t),this.$emit("change",{data:t})},updateTimeValue:function(t){this.muteWatch=!0;var e=this,a=JSON.parse((0,n.default)(this.value||{})),s={};
1(0,i.default)(a).forEach(function(e){s[e]=t[e]}),this.$emit("input",s),this.$nextTick(function(){e.muteWatch=!1})},isTwelveHours:function(t){return"h"===t||"hh"===t},toggleDropdown:function(){this.showDropdown=!this.showDropdown},select:function(t,e){"hour"===t?this.hour=e:"minute"===t?this.minute=e:"second"===t?this.second=e:"apm"===t&&(this.apm=e)},clearTime:function(){this.hour="",this.minute="",this.second="",this.apm=""}},mounted:function(){this.renderFormat()}}},gd2M:function(t,e){},i55J:function(t,e){},iaL3:function(t,e){},"if+k":function(t,e){},"jDc+":function(t,e){},jE7u:function(t,e){},jFoR:function(t,e){},"kGz+":function(t,e){},kRWh:function(t,e){},kn1A:function(t,e){},"n/Rx":function(t,e){},nDbd:function(t,e){},nYAk:function(t,e){},o75C:function(t,e){},oKkS:function(t,e){},oMpI:function(t,e){},oP3W:function(t,e){},pdYW:function(t,e){},pqX1:function(t,e){},qAdw:function(t,e){},qlHd:function(t,e){},riWI:function(t,e){},"rur/":function(t,e){},s1VS:function(t,e){},"sK+n":function(t,e){},sRHA:function(t,e){},tcvl:function(t,e){},tkJl:function(t,e){},toH9:function(t,e){},tuLD:function(t,e){},uslO:function(t,e,a){var i={"./af":"3CJN","./af.js":"3CJN","./ar":"3MVc","./ar-dz":"tkWw","./ar-dz.js":"tkWw","./ar-kw":"j8cJ","./ar-kw.js":"j8cJ","./ar-ly":"wPpW","./ar-ly.js":"wPpW","./ar-ma":"dURR","./ar-ma.js":"dURR","./ar-sa":"7OnE","./ar-sa.js":"7OnE","./ar-tn":"BEem","./ar-tn.js":"BEem","./ar.js":"3MVc","./az":"eHwN","./az.js":"eHwN","./be":"3hfc","./be.js":"3hfc","./bg":"lOED","./bg.js":"lOED","./bm":"hng5","./bm.js":"hng5","./bn":"aM0x","./bn.js":"aM0x","./bo":"w2Hs","./bo.js":"w2Hs","./br":"OSsP","./br.js":"OSsP","./bs":"aqvp","./bs.js":"aqvp","./ca":"wIgY","./ca.js":"wIgY","./cs":"ssxj","./cs.js":"ssxj","./cv":"N3vo","./cv.js":"N3vo","./cy":"ZFGz","./cy.js":"ZFGz","./da":"YBA/","./da.js":"YBA/","./de":"DOkx","./de-at":"8v14","./de-at.js":"8v14","./de-ch":"Frex","./de-ch.js":"Frex","./de.js":"DOkx","./dv":"rIuo","./dv.js":"rIuo","./el":"CFqe","./el.js":"CFqe","./en-au":"Sjoy","./en-au.js":"Sjoy","./en-ca":"Tqun","./en-ca.js":"Tqun","./en-gb":"hPuz","./en-gb.js":"hPuz","./en-ie":"ALEw","./en-ie.js":"ALEw","./en-il":"QZk1","./en-il.js":"QZk1","./en-nz":"dyB6","./en-nz.js":"dyB6","./eo":"Nd3h","./eo.js":"Nd3h","./es":"LT9G","./es-do":"7MHZ","./es-do.js":"7MHZ","./es-us":"INcR","./es-us.js":"INcR","./es.js":"LT9G","./et":"XlWM","./et.js":"XlWM","./eu":"sqLM","./eu.js":"sqLM","./fa":"2pmY","./fa.js":"2pmY","./fi":"nS2h","./fi.js":"nS2h","./fo":"OVPi","./fo.js":"OVPi","./fr":"tzHd","./fr-ca":"bXQP","./fr-ca.js":"bXQP","./fr-ch":"VK9h","./fr-ch.js":"VK9h","./fr.js":"tzHd","./fy":"g7KF","./fy.js":"g7KF","./gd":"nLOz","./gd.js":"nLOz","./gl":"FuaP","./gl.js":"FuaP","./gom-latn":"+27R","./gom-latn.js":"+27R","./gu":"rtsW","./gu.js":"rtsW","./he":"Nzt2","./he.js":"Nzt2","./hi":"ETHv","./hi.js":"ETHv","./hr":"V4qH","./hr.js":"V4qH","./hu":"xne+","./hu.js":"xne+","./hy-am":"GrS7","./hy-am.js":"GrS7","./id":"yRTJ","./id.js":"yRTJ","./is":"upln","./is.js":"upln","./it":"FKXc","./it.js":"FKXc","./ja":"ORgI","./ja.js":"ORgI","./jv":"JwiF","./jv.js":"JwiF","./ka":"RnJI","./ka.js":"RnJI","./kk":"j+vx","./kk.js":"j+vx","./km":"5j66","./km.js":"5j66","./kn":"gEQe","./kn.js":"gEQe","./ko":"eBB/","./ko.js":"eBB/","./ky":"6cf8","./ky.js":"6cf8","./lb":"z3hR","./lb.js":"z3hR","./lo":"nE8X","./lo.js":"nE8X","./lt":"/6P1","./lt.js":"/6P1","./lv":"jxEH","./lv.js":"jxEH","./me":"svD2","./me.js":"svD2","./mi":"gEU3","./mi.js":"gEU3","./mk":"Ab7C","./mk.js":"Ab7C","./ml":"oo1B","./ml.js":"oo1B","./mn":"CqHt","./mn.js":"CqHt","./mr":"5vPg","./mr.js":"5vPg","./ms":"ooba","./ms-my":"G++c","./ms-my.js":"G++c","./ms.js":"ooba","./mt":"oCzW","./mt.js":"oCzW","./my":"F+2e","./my.js":"F+2e","./nb":"FlzV","./nb.js":"FlzV","./ne":"/mhn","./ne.js":"/mhn","./nl":"3K28","./nl-be":"Bp2f","./nl-be.js":"Bp2f","./nl.js":"3K28","./nn":"C7av","./nn.js":"C7av","./pa-in":"pfs9","./pa-in.js":"pfs9","./pl":"7LV+","./pl.js":"7LV+","./pt":"ZoSI","./pt-br":"AoDM","./pt-br.js":"AoDM","./pt.js":"ZoSI","./ro":"wT5f","./ro.js":"wT5f","./ru":"ulq9","./ru.js":"ulq9","./sd":"fW1y","./sd.js":"fW1y","./se":"5Omq","./se.js":"5Omq","./si":"Lgqo","./si.js":"Lgqo","./sk":"OUMt","./sk.js":"OUMt","./sl":"2s1U","./sl.js":"2s1U","./sq":"V0td","./sq.js":"V0td","./sr":"f4W3","./sr-cyrl":"c1x4","./sr-cyrl.js":"c1x4","./sr.js":"f4W3","./ss":"7Q8x","./ss.js":"7Q8x","./sv":"F
1pqq","./sv.js":"Fpqq","./sw":"DSXN","./sw.js":"DSXN","./ta":"+7/x","./ta.js":"+7/x","./te":"Nlnz","./te.js":"Nlnz","./tet":"gUgh","./tet.js":"gUgh","./tg":"5SNd","./tg.js":"5SNd","./th":"XzD+","./th.js":"XzD+","./tl-ph":"3LKG","./tl-ph.js":"3LKG","./tlh":"m7yE","./tlh.js":"m7yE","./tr":"k+5o","./tr.js":"k+5o","./tzl":"iNtv","./tzl.js":"iNtv","./tzm":"FRPF","./tzm-latn":"krPU","./tzm-latn.js":"krPU","./tzm.js":"FRPF","./ug-cn":"To0v","./ug-cn.js":"To0v","./uk":"ntHu","./uk.js":"ntHu","./ur":"uSe8","./ur.js":"uSe8","./uz":"XU1s","./uz-latn":"/bsm","./uz-latn.js":"/bsm","./uz.js":"XU1s","./vi":"0X8Q","./vi.js":"0X8Q","./x-pseudo":"e/KL","./x-pseudo.js":"e/KL","./yo":"YXlc","./yo.js":"YXlc","./zh-cn":"Vz2w","./zh-cn.js":"Vz2w","./zh-hk":"ZUyn","./zh-hk.js":"ZUyn","./zh-tw":"BbgG","./zh-tw.js":"BbgG"};function n(t){return a(s(t))}function s(t){var e=i[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}n.keys=function(){return Object.keys(i)},n.resolve=s,t.exports=n,n.id="uslO"},vaV9:function(t,e){},wpco:function(t,e){},xUjp:function(t,e){},ywbH:function(t,e){},zGNA:function(t,e){},zj2Q:function(t,e){}},["NHnr"]); 2//# sourceMappingURL=app.d5463943a56e4ca1f31c.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.