PageSourceSearch

https://offtheave.com/_next/static/chunks/pages/admin/analytics-eb0fb4b8c06335d5.js

js offtheave.com collected 2026-09-28 11:56:58 UTC 20,543 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6535,8272],{2522:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(79065).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},29206:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(79065).A)("heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]])},36535:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(79065).A)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},50632:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(79065).A)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]])},57632:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(79065).A)("film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]])},61970:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>F});var l=a(37876),t=a(14232),r=a(77328),n=a.n(r),i=a(48230),c=a.n(i),o=a(76623),d=a(83592),p=a(16583),m=a(29206),u=a(67295),x=a(88970),h=a(88622),v=a(2522),j=a(50632),y=a(36535),g=a(7052);let b=[{key:"likes",label:"Likes",icon:m.A},{key:"comments",label:"Comments",icon:u.A},{key:"bookmarks",label:"Bookmarks",icon:x.A},{key:"reposts",label:"Reposts",icon:h.A},{key:"shares",label:"Shares",icon:v.A},{key:"follows",label:"Follows",icon:j.A}],N=e=>String(e||"other").replace(/_/g," ").replace(/^\w/,e=>e.toUpperCase());function k(e){let{title:s,rows:a,empty:t,verb:r}=e;return(0,l.jsx)(g.Zp,{title:s,noPad:!0,children:a?a.length?(0,l.jsx)("ul",{children:a.map((e,s)=>{let a=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.YT,{src:e.thumb,size:34}),(0,l.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,l.jsx)("span",{className:"block text-[13px] font-semibold truncate",style:{color:"var(--a-text)"},children:e.title}),(0,l.jsx)("span",{className:"block text-[11px] a-muted",children:e.label})]}),(0,l.jsxs)("span",{className:"a-mono text-xs shrink-0",style:{color:"var(--a-text-2)"},children:[(0,g.L5)(e.count)," ",r]})]});return(0,l.jsx)("li",{style:{borderTop:s?"1px solid var(--a-hair)":"none"},children:e.href?(0,l.jsx)(c(),{href:e.href,className:"px-4 py-2.5 flex items-center gap-3 hover:opacity-90",children:a}):(0,l.jsx)("div",{className:"px-4 py-2.5 flex items-center gap-3",children:a})},"".concat(e.type,"-").concat(e.id))})}):(0,l.jsx)(g.pp,{title:t}):(0,l.jsx)("div",{className:"p-4 space-y-3",children:[0,1,2].map(e=>(0,l.jsx)(g.EA,{height:36},e))})})}function f(e){var s,a;let{range:r}=e,[n,i]=(0,t.useState)(null),[o,p]=(0,t.useState)(!0),[m,u]=(0,t.useState)(""),[x,j]=(0,t.useState)("likes"),[f,A]=(0,t.useState)(null),[_,w]=(0,t.useState)(null),E=(0,t.useCallback)(async()=>{p(!0);try{let e=await d.Ay.get("/api/admin/analytics/engagement",{params:{range:r}});i(e.data),u("")}catch(l){var e,s,a;u((null==l||null==(e=l.response)?void 0:e.status)===404?"Engagement goes live with the next backend restart.":(null==l||null==(a=l.response)||null==(s=a.data)?void 0:s.message)||"Could not load engagement.")}finally{p(!1)}},[r]);(0,t.useEffect)(()=>{E()},[E]);let L=null==n?void 0:n.kpis,C=b.find(e=>e.key===x),S=(null==n||null==(s=n.by_type)?void 0:s[x])||[],M=S.reduce((e,s)=>e+s.value,0),T=((null==n?void 0:n.share_methods)||[]).reduce((e,s)=>e+s.value,0),z=o&&!n;return(0,l.jsxs)("section",{id:"engagement",className:"space-y-4 transition-opacity ".concat(o&&n?"o
1pacity-60":""),style:{scrollMarginTop:80},children:[(0,l.jsx)("h2",{className:"a-label",style:{marginBottom:-4},children:"Engagement"}),m&&(0,l.jsx)(g.$T,{tone:"bad",children:m}),f&&(0,l.jsx)(g.$T,{tone:f.tone,onClose:()=>A(null),children:f.text}),(0,l.jsx)("div",{className:"grid grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4",children:b.map(e=>{let{key:s,label:a,icon:t}=e;return(0,l.jsx)(g.hm,{loading:z&&!m,icon:(0,l.jsx)(t,{size:13}),label:a,value:L?(0,g.VK)(L[s].value):"—",delta:L?(0,l.jsx)(g.Ru,{value:L[s].value,prev:L[s].prev}):null,sub:L&&null!==L[s].prev?"".concat((0,g.L5)(L[s].prev)," the period before"):"",spark:((null==n?void 0:n.series)||[]).map(e=>e[s])},s)})}),(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-3 sm:gap-4",children:[(0,l.jsxs)(g.Zp,{title:C.label,meta:L?"".concat((0,g.L5)(L[x].value)," in period"):"",className:"lg:col-span-2",action:(0,l.jsx)("span",{className:"hidden sm:inline-flex",children:(0,l.jsx)(g.$q,{ariaLabel:"Engagement type",value:x,onChange:j,options:b.map(e=>{let{key:s,label:a}=e;return{value:s,label:a}})})}),children:[(0,l.jsx)("div",{className:"sm:hidden mb-3 a-subnav",style:{margin:"0 0 12px"},children:(0,l.jsx)(g.$q,{ariaLabel:"Engagement type",value:x,onChange:j,options:b.map(e=>{let{key:s,label:a}=e;return{value:s,label:a}})})}),z?(0,l.jsx)(g.EA,{height:200}):((null==n?void 0:n.series)||[]).some(e=>e[x]>0)?(0,l.jsx)(g.Es,{data:n.series,labelFor:e=>(0,g.uv)(e.key),series:[{key:x,label:C.label,cls:"a-s1"}]}):(0,l.jsx)(g.pp,{title:"No ".concat(C.label.toLowerCase()," in this range")})]}),(0,l.jsx)(g.Zp,{title:"".concat(C.label," by type"),meta:M?(0,g.L5)(M):"",children:z?(0,l.jsx)(g.EA,{className:"h-36"}):M?(0,l.jsx)("div",{className:"space-y-3",children:S.map(e=>(0,l.jsx)(g.vJ,{label:N(e.label),value:e.value,total:M},e.label))}):(0,l.jsx)(g.pp,{title:"Nothing to break down"})})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-3 sm:gap-4",children:[(0,l.jsx)(k,{title:"Most shared",rows:n?n.top_shared:null,empty:"No shares in this range",verb:"shares"}),(0,l.jsx)(k,{title:"Most reposted",rows:n?n.top_reposted:null,empty:"No reposts in this range",verb:"reposts"}),(0,l.jsx)(g.Zp,{title:"How people share",meta:T?(0,g.L5)(T):"",children:z?(0,l.jsx)(g.EA,{className:"h-36"}):T?(0,l.jsx)("div",{className:"space-y-3",children:n.share_methods.map(e=>(0,l.jsx)(g.vJ,{label:N(e.label),value:e.value,total:T},e.label))}):(0,l.jsx)(g.pp,{icon:(0,l.jsx)(v.A,{size:16}),title:"No shares in this range"})})]}),(0,l.jsx)(g.Zp,{title:"Latest reposts",noPad:!0,children:z?(0,l.jsx)("div",{className:"p-4 space-y-3",children:[0,1,2].map(e=>(0,l.jsx)(g.EA,{height:40},e))}):(null==n||null==(a=n.recent_reposts)?void 0:a.length)?(0,l.jsx)("ul",{children:n.recent_reposts.map((e,s)=>(0,l.jsxs)("li",{className:"px-4 py-2.5 flex items-start gap-3",style:{borderTop:s?"1px solid var(--a-hair)":"none"},children:[(0,l.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,l.jsx)(g.cU,{user:e,sub:(0,g.fF)(e.created_at),size:26}),(0,l.jsxs)("span",{className:"block text-[12px] mt-1 truncate",style:{color:"var(--a-text-2)",paddingLeft:36},children:["reposted ",e.original_href?(0,l.jsx)(c(),{href:e.original_href,className:"a-link",children:e.original_title}):e.original_title,(0,l.jsxs)("span",{className:"a-muted",children:[" \xb7 ",e.original_label]})]}),e.comment&&(0,l.jsxs)("span",{className:"block text-[12px] a-muted mt-0.5 truncate",style:{paddingLeft:36},title:e.comment,children:["“",e.comment,"”"]})]}),(0,l.jsx)(g.Wy,{items:[{label:"Delete repost",icon:(0,l.jsx)(y.A,{size:14}),danger:!0,onClick:()=>w(e)}]})]},e.id))}):(0,l.jsx)(g.pp,{icon:(0,l.jsx)(h.A,{size:16}),title:"No reposts yet"})}),_&&(0,l.jsx)(g.TM,{title:"Delete this repost?",danger:!0,confirmLabel:"Delete",body:"@".concat(_.username,"'s repost of \"").concat(_.original_title,'" and its notification are removed. The original stays.'),onConfirm:async()=>{var e;A({tone:"good",text:(null==(e=(await d.Ay.delete("/api/admin/reposts/".concat(_.id))).data)?void 0:e.message)||"Deleted."}),E()},onClose:()=>w(null)})]})}var A=a(52417),_=a(9674),w=a(72117),E=a(89183),L=a(66042),C=a(20101),S=a(39815),M=a(20965),T=a(57632),z=a(6149),D=a(79039);let Z=[{value:"7d",label:"7D"},{value:"30d",label:"30D"},{value:"90d",label:"90D"},{value:"ytd",label:"YTD"},{value:"all",label:"All"}],P={MIXTAPE:"Mixtape",AUTOPLAY:"Autoplay",DIRECT:"Direct",YOUTUBE:"YouTube",PLAYLIST:"Playlist",SEARCH:"Search",PROFILE:"Profile",FEED:"Feed",EMBED:"Embed"},U=null;function F(){var e,s;let[a,r]=(0,t.useState)("30d"),[i,m]=(0,t.useState)(null),[u,x]=(0,t.useState)(!0),[h,v]=(0,t.useState)(null),j=(0,t.useCallback)(async e=>{x(!0);try{let s=await d.Ay.get("/api/admin/analytics/overview",{params:{range:e}});m(s.data),v(null)}catch(e){var s,a;v((null==e||null==(a=e.response)||null==(s=a.data)?void 0:s.error)||"Could not load anal
1ytics.")}finally{x(!1)}},[]);(0,t.useEffect)(()=>{j(a)},[a,j]);let y=null==i?void 0:i.kpis,b=(null==i?void 0:i.series)||[],N=(0,t.useMemo)(()=>({users:b.map(e=>e.new_users),plays:b.map(e=>e.music_plays+e.video_plays),rev:b.map(e=>e.revenue)}),[b]),k=e=>(0,g.uv)(e.key),F=u&&!i,R=((null==i?void 0:i.sources)||[]).reduce((e,s)=>e+s.value,0),O=((null==i?void 0:i.geo)||[]).reduce((e,s)=>e+s.value,0),V=y?y.revenue.card+y.revenue.dora+y.revenue.subscriptions:0;return(0,l.jsxs)(o.A,{children:[(0,l.jsx)(n(),{children:(0,l.jsx)("title",{children:"Deep Analytics \xb7 Command"})}),(0,l.jsx)(g.zY,{crumbs:["Overview"],title:"Deep Analytics",subtitle:function(e){if(!e)return"";if("all"===e.key)return"All time";let s=e=>new Date("".concat(e,"T00:00:00Z")).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});return"".concat(s(e.start)," to ").concat(s(e.end)," \xb7 compared with ").concat(s(e.prev_start)," to ").concat(s(e.prev_end))}(null==i?void 0:i.range),actions:(0,l.jsx)(g.$q,{options:Z,value:a,onChange:r,ariaLabel:"Date range"})}),h&&(0,l.jsxs)("div",{className:"a-card mb-4 px-4 py-3 flex items-center gap-2 text-sm",style:{color:"var(--a-bad)",background:"var(--a-bad-bg)",borderColor:"transparent"},children:[(0,l.jsx)(A.A,{size:16})," ",h,(0,l.jsx)("button",{onClick:()=>j(a),className:"ml-auto text-xs font-semibold underline",children:"Retry"})]}),(0,l.jsxs)("div",{className:"space-y-4 transition-opacity ".concat(u&&i?"opacity-60":""),children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 sm:gap-4",children:[(0,l.jsx)(g.hm,{loading:F,icon:(0,l.jsx)(_.A,{size:13}),label:"New users",value:y?(0,g.L5)(y.new_users.value):"",delta:y&&(0,l.jsx)(g.Ru,{value:y.new_users.value,prev:y.new_users.prev}),sub:y?"of ".concat((0,g.L5)(y.new_users.total)," total"):"",spark:N.users}),(0,l.jsx)(g.hm,{loading:F,icon:(0,l.jsx)(w.A,{size:13}),label:"Streams",value:y?(0,g.VK)(y.streams.value):"",delta:y&&(0,l.jsx)(g.Ru,{value:y.streams.value,prev:y.streams.prev}),sub:y?"".concat((0,g.L5)(y.streams.music)," music \xb7 ").concat((0,g.L5)(y.streams.video)," video"):"",spark:N.plays}),(0,l.jsx)(g.hm,{loading:F,icon:(0,l.jsx)(E.A,{size:13}),label:"Active users (7 days)",value:y?(0,g.L5)(y.active.d7):"",sub:y?"".concat((0,g.L5)(y.active.d1)," today \xb7 ").concat((0,g.L5)(y.active.d30)," in 30 days"):""}),(0,l.jsx)(g.hm,{loading:F,icon:(0,l.jsx)(L.A,{size:13}),label:"Gross revenue",value:y?(0,g.S8)(y.revenue.value):"",delta:y&&(0,l.jsx)(g.Ru,{value:y.revenue.value,prev:y.revenue.prev}),sub:y?y.revenue.xp_spent>0?"plus ".concat((0,g.L5)(y.revenue.xp_spent)," XP spent"):"card, $DORA and subscriptions":"",spark:N.rev})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-3 sm:gap-4",children:[(0,l.jsx)(g.Zp,{title:"Streams",meta:y?"".concat((0,g.L5)(y.streams.value)," in period"):"",children:F?(0,l.jsx)(g.EA,{height:200}):b.length?(0,l.jsx)(g.Es,{data:b,labelFor:k,series:[{key:"music_plays",label:"Music",cls:"a-s1"},{key:"video_plays",label:"Video",cls:"a-s3"}]}):(0,l.jsx)(g.pp,{title:"No plays in this range"})}),(0,l.jsx)(g.Zp,{title:"New users",meta:y?"".concat((0,g.L5)(y.new_users.value)," in period"):"",children:F?(0,l.jsx)(g.EA,{height:200}):(0,l.jsx)(g.Es,{data:b,labelFor:k,series:[{key:"new_users",label:"New users",cls:"a-s2"}]})})]}),(0,l.jsx)(f,{range:a}),(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-3 sm:gap-4",children:[(0,l.jsx)(g.Zp,{title:"Revenue",meta:"gross, USD",className:"lg:col-span-2",children:F?(0,l.jsx)(g.EA,{height:200}):b.some(e=>e.revenue>0)?(0,l.jsx)(g.Es,{data:b,labelFor:k,format:e=>(0,g.S8)(e),series:[{key:"revenue",label:"Revenue",cls:"a-s1"}]}):(0,l.jsx)(g.pp,{icon:(0,l.jsx)(L.A,{size:16}),title:"No revenue in this range",text:"Card sales, $DORA sales and paid subscription invoices are counted here."})}),(0,l.jsxs)(g.Zp,{title:"Where it came from",meta:y?(0,g.S8)(V):"",children:[F?(0,l.jsx)(g.EA,{className:"h-24"}):y&&V>0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.vJ,{label:"Card sales",value:y.revenue.card,total:V,format:e=>(0,g.S8)(e)}),(0,l.jsx)(g.vJ,{label:"$DORA sales",value:y.revenue.dora,total:V,format:e=>(0,g.S8)(e)}),(0,l.jsx)(g.vJ,{label:"Subscriptions",value:y.revenue.subscriptions,total:V,format:e=>(0,g.S8)(e)})]}):(0,l.jsx)(g.pp,{title:"Nothing to break down",text:"There was no cash revenue in this range."}),y&&y.revenue.xp_spent>0&&(0,l.jsxs)("p",{className:"text-[11px] a-muted mt-3 pt-3 border-t",style:{borderColor:"var(--a-hair)"},children:["Plus ",(0,l.jsx)("span",{className:"a-mono",children:(0,g.L5)(y.revenue.xp_spent)}
1)," XP spent on XP-priced items (not cash)."]})]})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-3 sm:gap-4",children:[(0,l.jsx)(g.Zp,{title:"Top tracks",meta:"by plays",className:"lg:col-span-2",action:(0,l.jsx)(c(),{href:"/admin/music",className:"a-link",children:"All music →"}),children:F?(0,l.jsx)(g.EA,{className:"h-64"}):(null==i||null==(e=i.top_tracks)?void 0:e.length)?(0,l.jsx)("div",{className:"-mx-2",children:(0,l.jsxs)("table",{className:"a-table a-table-fixed","data-no-stack":!0,children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{className:"a-col-rank",children:"#"}),(0,l.jsx)("th",{children:"Track"}),(0,l.jsx)("th",{className:"a-col-user hidden md:table-cell",children:"Uploader"}),(0,l.jsx)("th",{className:"a-col-num num hidden sm:table-cell",children:"Listeners"}),(0,l.jsx)("th",{className:"a-col-num num",children:"Plays"})]})}),(0,l.jsx)("tbody",{children:i.top_tracks.map((e,s)=>(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{className:"a-mono a-faint",children:s+1}),(0,l.jsx)("td",{children:(0,l.jsxs)(c(),{href:"/music/".concat(e.id,"/").concat((0,p.A)(e.title||"track")),target:"_blank",className:"flex items-center gap-3 min-w-0 group",children:[(0,l.jsx)(g.YT,{src:e.cover_art,size:36}),(0,l.jsxs)("span",{className:"min-w-0 leading-tight",children:[(0,l.jsx)("span",{className:"block text-[13px] font-semibold truncate group-hover:underline",style:{color:"var(--a-text)"},children:e.title}),(0,l.jsxs)("span",{className:"block text-[11px] a-muted truncate md:hidden",children:["@",e.username]})]})]})}),(0,l.jsx)("td",{className:"hidden md:table-cell",children:(0,l.jsx)(g.cU,{user:e,size:24,showName:!1})}),(0,l.jsx)("td",{className:"num hidden sm:table-cell a-muted",children:(0,g.L5)(e.listeners)}),(0,l.jsx)("td",{className:"num",children:(0,g.L5)(e.plays)})]},e.id))})]})}):(0,l.jsx)(g.pp,{icon:(0,l.jsx)(C.A,{size:16}),title:"No plays in this range"})}),(0,l.jsx)(g.Zp,{title:"Top artists",meta:"by plays",children:F?(0,l.jsx)(g.EA,{className:"h-64"}):(null==i||null==(s=i.top_artists)?void 0:s.length)?(0,l.jsx)("ul",{className:"divide-y",style:{borderColor:"var(--a-hair)"},children:i.top_artists.map(e=>(0,l.jsxs)("li",{className:"flex items-center gap-3 py-2 first:pt-0",style:{borderColor:"var(--a-hair)"},children:[(0,l.jsx)("div",{className:"flex-1 min-w-0",children:(0,l.jsx)(g.cU,{user:e,sub:"".concat(e.tracks," track").concat(1===e.tracks?"":"s")})}),(0,l.jsx)("span",{className:"a-mono text-[13px] font-semibold",style:{color:"var(--a-text)"},children:(0,g.VK)(e.plays)})]},e.user_id))}):(0,l.jsx)(g.pp,{icon:(0,l.jsx)(_.A,{size:16}),title:"No artist plays yet"})})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-3 sm:gap-4",children:[(0,l.jsx)(g.Zp,{title:"Newest members",action:(0,l.jsx)(c(),{href:"/admin/users",className:"a-link",children:"Directory →"}),children:F?(0,l.jsx)(g.EA,{className:"h-56"}):(0,l.jsx)("ul",{children:((null==i?void 0:i.newest_members)||[]).map(e=>(0,l.jsxs)("li",{className:"flex items-center gap-3 py-2 border-t first:border-t-0 first:pt-0",style:{borderColor:"var(--a-hair)"},children:[(0,l.jsx)("div",{className:"flex-1 min-w-0",children:(0,l.jsx)(g.cU,{user:e,sub:"joined ".concat((0,g.fF)(e.created_at))})}),(0,l.jsx)("span",{className:"a-tag shrink-0",title:e.last_seen_at?"Last seen ".concat((0,g.fF)(e.last_seen_at)):"Never seen since joining",children:e.last_seen_at?"seen ".concat((0,g.fF)(e.last_seen_at)):"new"})]},e.user_id))})}),(0,l.jsx)(g.Zp,{title:"Uploads",meta:"new in period",className:"lg:col-span-2",children:F?(0,l.jsx)(g.EA,{className:"h-40"}):(0,l.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[["songs","Songs",C.A],["mixtapes","Mixtapes",S.A],["videos","Videos",M.A],["shorts","Shorts",T.A]].map(e=>{var s;let[a,t,r]=e,n=(null==i||null==(s=i.catalog)?void 0:s[a])||{};return(0,l.jsxs)("div",{className:"rounded-lg p-3",style:{background:"var(--a-panel-2)",border:"1px solid var(--a-hair)"},children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,l.jsxs)("span",{className:"text-xs a-muted flex items-center gap-1.5",children:[(0,l.jsx)(r,{size:13}),t]}),(0,l.jsx)(g.Ru,{value:n.value,prev:n.prev})]}),(0,l.jsx)("div",{className:"a-mono text-xl font-semibold mt-2",style:{color:"var(--a-text)"},children:(0,g.L5)(n.value)}),(0,l.jsxs)("div",{className:"text-[11px] a-muted",children:[(0,g.L5)(n.total)," total"]})]},a)})})})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-3 sm:gap-4",children:[(0,l.jsx)(g.Zp,{title:"Play sources",meta:R?"".concat((0,g.L5)(R)," plays"):"",children:F?(0,l.jsx)(g.EA,{className:"h-36"}):R?(i.sources||[]).map(e=>(0,l.jsx)(g.vJ,{label:(e=>{let s=String(e||"").toUpperCase();
1return P[s]||(s?s[0]+s.slice(1).toLowerCase():"Unknown")})(e.label),value:e.value,total:R},e.label)):(0,l.jsx)(g.pp,{icon:(0,l.jsx)(z.A,{size:16}),title:"No source data in this range"})}),(0,l.jsx)(g.Zp,{title:"Top countries",meta:"by plays",children:F?(0,l.jsx)(g.EA,{className:"h-36"}):O?(0,l.jsx)("ul",{children:i.geo.map(e=>(0,l.jsxs)("li",{className:"a-georow border-t first:border-t-0 text-[13px]",style:{borderColor:"var(--a-hair)"},children:[(0,l.jsx)("span",{className:"a-tag text-center",children:e.country}),(0,l.jsx)("span",{className:"truncate",style:{color:"var(--a-text-2)"},children:(e=>{try{return U||(U=new Intl.DisplayNames(["en"],{type:"region"})),U.of(String(e).toUpperCase())||e}catch(s){return e}})(e.country)}),(0,l.jsx)("span",{className:"a-mono font-semibold",style:{color:"var(--a-text)"},children:(0,g.L5)(e.value)}),(0,l.jsxs)("span",{className:"a-mono text-[11px] a-muted text-right",children:[(e.value/O*100).toFixed(e.value/O>=.1?0:1),"%"]})]},e.country))}):(0,l.jsx)(g.pp,{icon:(0,l.jsx)(D.A,{size:16}),title:"No location data in this range"})})]})]})]})}},72117:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(79065).A)("headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]])},79039:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(79065).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},88622:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(79065).A)("repeat-2",[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]])},97431:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/analytics",function(){return a(61970)}])}},e=>{e.O(0,[3954,6623,636,6593,8792],()=>e(e.s=97431)),_N_E=e.O()}]);

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.