1import{A as v}from"./AppSubtitle.js";import{A as T}from"./AppTab.js";import{A as b}from"./AppTabs.js";import{A as P}from"./AppTitle.js";import{A as S,a as k,b as y,c as N,d as $}from"./AppTr.js";import{_ as w,c as m,e as a,w as s,b as u,f as g,d as h,h as i,o,i as n,F as C,q as L,t as M}from"./index.js";import{A as x}from"./AppSpinner.js";import{t as B}from"./teamMixin.js";const D={mixins:[B],components:{AppTitle:P,AppSubtitle:v,AppTabs:b,AppTab:T,AppTable:$,AppThead:N,AppTbody:y,AppTr:k,AppTd:S,AppSpinner:x},data(){return{selectedTab:"Summary",tabs:[{title:"Activity",pathName:"ArtistPageActivity",name:this.getTeamName("Activity")},{title:"Devices",pathName:"ArtistPageDevices",name:this.getTeamName("Devices")},{title:"Locations",pathName:"ArtistPageLocations",name:this.getTeamName("Locations")},{title:"Sources",pathName:"ArtistPageSources",name:this.getTeamName("Sources")}],loaded:!1,stats:{browsers:[],cities:[],countries:[],devices:[],operatingSystems:[],services:[],sources:[],summary:{}},link:{}}},methods:{goToTab(e){this.$router.push({name:this.getTeamName(e)}).catch(t=>{})},navigateToMailing(){this.$router.push(this.getTeamUrl("/dashboard/artist-pages/".concat(this.$route.params.page_id,"/mailing")))},async loadLinkStatistics(){try{this.loaded=!1;const[e,t]=await Promise.all([h.getArtistPageStats(this.$route.params.page_id),h.getArtistPage(this.$route.params.page_id)]);this.stats=e,this.artistPage=t,this.loaded=!0}catch(e){this.$router.push("/dashboard/artist-pages")}},onMounted(){this.loadLinkStatistics()}},mounted(){this.onMounted()}},V={class:"header"},F={class:"left"},q={key:1,class:"loading-spinner"};function E(e,t,I,R,p,l){const c=i("app-tab"),d=i("app-tabs"),_=i("app-title"),A=i("router-view"),f=i("app-spinner");return o(),m("div",null,[a(d,{class:"header-tabs"},{default:s(()=>[a(c,{active:!0},{default:s(()=>[...t[0]||(t[0]=[n(" Statistics ",-1)])]),_:1}),a(c,{onClick:l.navigateToMailing},{default:s(()=>[...t[1]||(t[1]=[n(" Mailing Subscribers ",-1)])]),_:1},8,["onClick"])]),_:1}),u("div",V,[u("div",F,[a(_,null,{default:s(()=>[...t[2]||(t[2]=[n("Statistics",-1)])]),_:1})])]),a(d,{class:"tabs"},{default:s(()=>[(o(!0),m(C,null,L(p.tabs,r=>(o(),g(c,{key:r.title,active:e.$route.meta.name===r.name,onClick:U=>l.goToTab(r.pathName)},{default:s(()=>[n(M(r.title),1)]),_:2},1032,["active","onClick"]))),128))]),_:1}),p.loaded?(o(),g(A,{key:0,artistPage:e.artistPage,isPostRelease:!0,stats:p.stats,isArtistPage:!0,class:"content"},null,8,["artistPage","stats"])):(o(),m("div",q,[a(f)]))])}const W=w(D,[["render",E],["__scopeId","data-v-bc6c3133"]]);export{W as default};
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.