PageSourceSearch

https://wavvi.app/_next/static/chunks/pages/insights/artists/[id]-9bc762665635a686.js

js wavvi.app collected 2026-09-24 10:46:46 UTC 27,621 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a711ddfc-96e7-40f8-bdae-31a488ee8ad6",e._sentryDebugIdIdentifier="sentry-dbid-a711ddfc-96e7-40f8-bdae-31a488ee8ad6")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9536],{6547:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(6029),r=a(13875),i=a(68641),o=a(81929);let l=e=>{let t=(0,r.DP)(),a="light"===t.colorMode,l=a?t.on_surface_300:t.secondary,n=a?t.surface_300:t.grey;return(0,s.jsxs)(o._,{isXSmallGap:!0,justifyContent:"start",children:[(0,s.jsx)(i.A,{name:"dollar-sign",size:"xs",color:l}),(0,s.jsx)(i.A,{name:"dollar-sign",size:"xs",color:e.relativeCost>1?l:n}),(0,s.jsx)(i.A,{name:"dollar-sign",size:"xs",color:e.relativeCost>2?l:n}),(0,s.jsx)(i.A,{name:"dollar-sign",size:"xs",color:4===e.relativeCost?l:n})]})}},18425:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=async(e,t)=>{try{await navigator.clipboard.writeText(e),t&&t()}catch(e){console.error("Failed to copy: ",e)}}},29141:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/insights/artists/[id]",function(){return a(46617)}])},30579:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(6029),r=a(55729),i=a(12364),o=a.n(i),l=a(46465);let n=({isLocked:e,label:t,numLines:a=3,className:i,minWidth:n,isResizable:c,placeholder:d,onChange:p,value:m,isAutoGrow:u,minRows:g,maxRows:h,onHeightChange:f,isTextSolid:y,hasNoBgOrPadding:b,textSize:x,isInBox:w,isInBoxInBox:A,...v})=>{let[k,j]=(0,r.useState)(m||""),_=o()(e=>p?.(e),250),I=e=>{j(e.target.value),_(e.target.value)};return(0,s.jsxs)(l.mO,{className:i,children:[t&&(0,s.jsx)(l.JU,{children:t}),e?(0,s.jsx)(s.Fragment,{children:y?(0,s.jsx)(l.u3,{children:m}):(0,s.jsx)(l.KG,{children:m})}):(0,s.jsx)(s.Fragment,{children:u?(0,s.jsx)(l.Dd,{minRows:g,maxRows:h,$minWidth:n,$isResizable:c,$isInBox:w,$isInBoxInBox:A,onChange:I,onHeightChange:f,...v,value:k,placeholder:d,hasNoBgOrPadding:b,textSize:x}):(0,s.jsx)(l.pd,{numLines:a,$minWidth:n,$isResizable:c,$isInBox:w,$isInBoxInBox:A,onChange:I,...v,value:k,placeholder:d,hasNoBgOrPadding:b,textSize:x})})]})}},32083:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var s=a(6029),r=a(55729),i=a(22286),o=a(18425),l=a(67011),n=a(92334),c=a(30579),d=a(12555),p=a(93852),m=a(69988),u=a(31454),g=a(81929);let h=e=>{let{t}=(0,i.Bd)("common"),[a,h]=(0,r.useState)(!1);return(0,s.jsxs)(u.az,{alignItems:"center",children:[(0,s.jsxs)(g._,{gridTemplateColumns:"1fr auto",children:[(0,s.jsx)(d.tE,{children:e.heading}),(0,s.jsx)(n.A,{iconOnly:!0,icon:"copy",onPress:()=>(0,o.A)(e.text,()=>p.A.success(t("success.copiedToClipboard",{item:e.heading}))),dark:!0,small:!0})]}),(0,s.jsx)(d.MD,{children:(0,s.jsx)(c.A,{value:a?e.text:(0,l.EJ)(e.text,100),isLocked:!0,isTextSolid:!0})}),e.text.length>=100&&(0,s.jsx)(m.A,{children:(0,s.jsx)(n.A,{onPress:()=>h(!a),iconFirst:!0,icon:a?"up":"down",text:a?t("showMoreText.showLess"):t("showMoreText.showMore"),dark:!0,small:!0})})]})}},37553:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var s=a(6029),r=a(86875),i=a(55219),o=a(39191),l=a(49007),n=a(89322),c=a(12555),d=a(11769),p=a(94334),m=a(73399),u=a(72881),g=a(13875);let h=g.Ay.div.withConfig({componentId:"sc-e76e57fe-0"})(["display:grid;grid-auto-flow:column;justify-content:flex-start;grid-gap:","px;align-items:center;position:relative;"],e=>e.theme.spacer),f=g.Ay.div.withConfig({componentId:"sc-e76e57fe-1"})(["display:grid;grid-gap:","px;"],e=>e.theme.smallSpacer),y=g.Ay.div.withConfig({componentId:"sc-e76e57fe-2"})(["background:",";background-size:contain;background-repeat:no-repeat;background-position:left top;height:64px;width:100%;"],e=>`url(${e.url})`),b=e=>{let t=(0,d.Ps)();return(0,s.jsxs)(p.mO,{hasClickHandler:!!e.linkUrl,onClick:()=>e.linkUrl?t(e.linkUrl,e.linkParams):null,children:[(0,s.jsxs)(h,{children:[e.platform&&(0,s.jsx)(n.A,{variant:"circle",size:28,platform:e.platform,onPress:()=>e.profileUrl&&(0,o.A)(e.profileUrl)}),(0,s.jsx)(c.tE,{children:e.heading})]}),(0,s.jsxs)(p.UC,{children:[(e.thumbUrl||!e.hideGraph)&&(0,s.jsxs)(f,{children:[e.thumbUrl&&(0,s.jsx)(y,{url:(0,l.j)(e.thumbUrl)}),(0,s.jsx)(m.A,{trend:e.trend,platform:e.platform})]}),(0,s.jsx)(u.A,{...e})]})]})};var x=a(31454);let w=(0,g.Ay)(x.az).withConfig({componentId:"sc-bb8b727e-0"}
1)(["height:min-content;min-height:248px;grid-template-rows:auto 1fr;"]),A=g.Ay.div.withConfig({componentId:"sc-bb8b727e-1"})(["display:grid;grid-gap:","px;grid-template-columns:repeat( auto-fill,minmax(","px,1fr) );"],e=>e.theme.largeSpacer,e=>e.itemWidth||170),v=g.Ay.div.withConfig({componentId:"sc-bb8b727e-2"})(["display:flex;padding:","px;background:",";box-sizing:border-box;position:relative;transition:transform 0.3s;&:hover{","}border-radius:","px;"],e=>e.theme.largeSpacer,e=>e.theme.surface_200,e=>e.shouldScaleOnHover&&"transform: scale(1.04);",e=>e.theme.borderRadius),k=e=>(0,s.jsxs)(w,{children:[e.heading&&(0,s.jsx)(i.A,{heading:e.heading,subheading:e.subheading,tooltip:e.tooltip,tooltipText:e.tooltipText}),(0,s.jsxs)(A,{itemWidth:e.itemWidth,children:[e.loading?Array.from({length:4},(e,t)=>(0,s.jsx)(r.fk,{height:"140px"},t)):e.data.map(e=>(0,s.jsx)(v,{shouldScaleOnHover:!!e.linkUrl,"data-testid":e.name,children:(0,s.jsx)(b,{...e})},e.name)),e.children]})]})},41905:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(6029),r=a(12555),i=a(96300),o=a(6547),l=a(13875),n=a(31454);let c=l.Ay.div.withConfig({componentId:"sc-a3b746c9-0"})(["display:grid;grid-gap:","px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));"],e=>e.theme.largeSpacer),d=(0,l.Ay)(n.az).withConfig({componentId:"sc-a3b746c9-1"})(["width:100%;"]);var p=a(43412);let m=({options:e,onSelect:t,selectedOptionValue:a})=>(0,s.jsx)(c,{children:e.map((e,l)=>(0,s.jsxs)(d,{direction:"row",alignItems:"center",hasHover:!0,onClick:()=>t(e.value),isActive:e.value===a,background:e.value===a?"secondary":void 0,children:[(0,s.jsxs)(p.Z,{children:[(0,s.jsx)(r.DZ,{colourName:e.isSecondaryDisplayName&&e.value!==a?"secondary":void 0,children:e.displayName}),e.description&&(0,s.jsx)(i.A,{children:e.description})]}),e.relativeCost&&(0,s.jsx)(o.A,{relativeCost:e.relativeCost}),void 0!==e.actualCost&&(0,s.jsx)("span",{children:e.actualCost})]},`${e.value}-${l}`))})},46465:(e,t,a)=>{"use strict";a.d(t,{Dd:()=>c,JU:()=>p,KG:()=>m,mO:()=>l,pd:()=>d,u$:()=>n,u3:()=>u});var s=a(13875),r=a(53016),i=a(97378),o=a(12555);let l=s.Ay.div.withConfig({componentId:"sc-8f0a7cf1-0"})(["display:flex;flex-direction:column;"]),n=(0,s.AH)(["resize:",";overflow:auto;box-sizing:border-box;min-width:",";background-color:",";color:",";border:none;border-radius:","px;font-family:",";font-size:","px;padding:","px;outline:none;width:100%;"," "," "," &:hover{outline:none;}&:active,&:focus{-webkit-appearance:none;box-shadow:inset 0px 0px 0px 1px ",";}&:disabled{opacity:0.6;color:",";}&::placeholder{font-family:",";font-weight:",";font-style:",";font-size:","px;}"],e=>e.$isResizable?"vertical":"none",e=>e.$minWidth?`${e.$minWidth}px`:"initial",e=>e.theme.surface_200,e=>(0,r.W0)(e.theme.surface_200),e=>e.theme.inputBorderRadius,e=>e.theme.bodyTextFont,e=>e.textSize?e.textSize:e.theme.bodyTextFontSize,e=>e.theme.spacer,e=>e.$isInBox&&`background-color: ${e.theme.surface_300};`,e=>e.$isInBoxInBox&&`background-color: ${e.theme.surface_400};`,e=>e.hasNoBgOrPadding&&"background: none; padding: 0;",e=>e.theme.secondary,e=>e.theme.surface_500,e=>e.theme.bodyTextFont,e=>e.theme.bodyItalicFontWeight||"normal",e=>e.theme.placeholderTextFontStyle,e=>e.theme.placeholderTextFontSize),c=(0,s.Ay)(i.A).withConfig({componentId:"sc-8f0a7cf1-1"})(["min-height:","px;",""],e=>20+e.theme.largeSpacer,n),d=s.Ay.textarea.withConfig({componentId:"sc-8f0a7cf1-2"})(["height:","px;",""],e=>20*e.numLines+e.theme.largeSpacer,n),p=(0,s.Ay)(o.tE).withConfig({componentId:"sc-8f0a7cf1-3"})(["margin-bottom:","px;"],e=>e.theme.spacer),m=(0,s.Ay)(o.a3).withConfig({componentId:"sc-8f0a7cf1-4"})(["white-space:pre-line;"]),u=(0,s.Ay)(o.MD).withConfig({componentId:"sc-8f0a7cf1-5"})(["white-space:pre-line;"])},46617:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>Z});var s=a(6029),r=a(34155),i=a(62449),o=a(55729),l=a(22286),n=a(24153),c=a(19626),d=a(36112),p=a.n(d),m=a(49007),u=a(88584),g=a(11769),h=a(44825),f=a(39591),y=a(15092),b=a(77752),x=a(35483);let w=e=>(0,b.l)(e/100,{trimMantissa:!0});var A=a(57165),v=a(77787),k=a(93005),j=a(70788),_=a(62436),I=a(47121),C=a(93522),S=a(91660),T=a(31454),$=a(48732),B=a(87679),P=a(11247),N=a(55219),D=a(44727),O=a(32285),F=a(32083),z=a(85811),H=a(86005),M=a(37553),R=a(28020),E=a(93803),L=a.n(E),U=a(27923);let V=(e,t,a)=>L()(t,t=>{let s=a[t];return e&&e?.[t]&&{name:t,platform:t,heading:U._S0[t],total:e?.[t][s]?.current,trend:e?.[t][s]?.trend||[],metric:a[t]}}
1).filter(Boolean),q={from:(0,n.A)(Date.now(),30),until:new Date},W=()=>{var e,t;let a,r,{t:i}=(0,l.Bd)("insights"),n=(0,g.g)().id,{insightsRelatedArtistMockVisibilityOps:d}=(0,u.D)(),{actId:E}=(0,_.A)(),[L,U]=(0,o.useState)(q),{artist:W,loadingArtist:G}=(0,x.f)(n),{playlists:Z,loading:J}=(e=>{let t=`fanInsights/artists/${e}/playlists`,{data:a,error:s}=(0,h.A)(t,async()=>(0,y.A)(t));return s&&console.error(s),{loading:!s&&!a,playlists:a}})(n),{artistVideos:X,loadingVideos:Y}=(e=>{let t=`fanInsights/artists/${e}/posts`,{data:a,error:s}=(0,A.Ay)(t,async()=>(0,y.A)(t));s&&console.error(s);let r=a?.filter(e=>"youtube"===e.platform_key);return{loadingVideos:!s&&!a,artistVideos:r}})(n),{artistRelatedArtists:K,loadingRelatedArtists:Q}=(e=>{let t=`fanInsights/artists/${e}/relatedArtists`,{data:a,error:s}=(0,A.Ay)(t,async()=>(0,y.A)(t));return s&&console.error(s),{loadingRelatedArtists:!s&&!a,artistRelatedArtists:a}})(n),{data:ee,platformsData:et,loading:ea}=((e,t)=>{let{artist:a,loadingArtist:s}=(0,x.f)(t),r=a?.actName||"this artist",i=new URLSearchParams({from:(0,f.A)(e.from,"yyyy-MM-dd"),until:(0,f.A)(e.until,"yyyy-MM-dd")}),o=`fanInsights/artists/${t}/statsAndTrends?${i.toString()}`,{data:l,error:n}=(0,h.A)(o,async()=>(0,y.A)(o));return n&&console.error(n),{loading:s||!n&&!l,data:{spotify:[l?.spotify?.followers&&{...l?.spotify?.followers,metric:"Followers",platform:"spotify",total:l?.spotify.followers.current,tooltip:"artist.spotify.followers",tooltipText:`How many followers ${r} has on Spotify.`},l?.spotify?.listeners&&{...l?.spotify?.listeners,metric:" Listeners",platform:"spotify",total:l?.spotify.listeners.current,tooltip:"artist.spotify.monthlyListeners",tooltipText:`How many different people listened to ${r}'s music during the selected time period.`},l?.spotify?.popularity&&{...l?.spotify?.popularity,metric:"Popularity",platform:"spotify",total:l?.spotify?.popularity.current,totalAsString:w(l?.spotify?.popularity.current),tooltip:"artist.spotify.popularity",tooltipText:`A score from 0 - 100 provided by Spotify, ranking how popular ${r} is compared to other artists.`},l?.spotify?.playlistReach&&{...l?.spotify?.playlistReach,metric:"Playlist Reach",platform:"spotify",total:l?.spotify.playlistReach.current},l?.spotify?.saveRate&&{...l?.spotify?.saveRate,metric:"Save Rate",platform:"spotify",total:l?.spotify?.saveRate.current,totalAsString:w(l?.spotify?.saveRate.current)},l?.spotify?.streamsPerListener&&{...l?.spotify?.streamsPerListener,metric:"Streams Per Listener",platform:"spotify",total:l?.spotify.streamsPerListener.current}].filter(Boolean),facebook:[l?.facebook?.pageFans&&{...l?.facebook?.pageFans,name:"pageFans",metric:"Page Fans",platform:"facebook",total:l?.facebook?.pageFans.current,tooltip:"artist.facebook.pageFans",tooltipText:`How many subscribers ${r} has on Facebook.`},l?.facebook?.postEngagements&&{...l?.facebook?.postEngagements,name:"postEngagements",metric:"Post Engagements",platform:"facebook",total:l?.facebook?.postEngagements.current,tooltip:"artist.facebook.postEngagements",tooltipText:`How many times people interacted with ${r}'s posts (shares, likes, comments, video views etc).`},l?.facebook?.pageImpressions&&{...l?.facebook?.pageImpressions,name:"pageImpressions",metric:"Page Impressions",platform:"facebook",total:l?.facebook.pageImpressions.current,tooltip:"artist.facebook.pageImpressions",tooltipText:`How many times any content from or about ${r} entered a person’s screen. Includes page, posts, stories, ads, etc.`}].filter(Boolean),instagram:[l?.instagram?.followers&&{...l?.instagram?.followers,metric:"Followers",platform:"instagram",total:l?.instagram?.followers.current,tooltip:"artist.instagram.followers",tooltipText:`How many Instagram followers ${r} has.`},l?.instagram?.profile_views&&{...l?.instagram?.profile_views,metric:"Profile Views",platform:"instagram",total:l?.instagram?.profile_views.current,tooltip:"artist.instagram.profileViews",tooltipText:`How many times people viewed ${r}'s Instagram profile.`},l?.instagram?.reach&&{...l?.instagram?.reach,metric:"Reach",platform:"instagram",total:l?.instagram?.reach.current,tooltip:"artist.instagram.reach",tooltipText:`The number of different people who saw any of ${r}'s media on Instagram at least once today.`}
1,(l?.instagram?.views??l?.instagram?.impressions)&&{...l?.instagram?.views??l?.instagram?.impressions,metric:"Views",platform:"instagram",total:(l?.instagram?.views??l?.instagram?.impressions)?.current,tooltip:"artist.instagram.views",tooltipText:`The number of times anyone viewed any of ${r}'s media on Instagram.`}].filter(Boolean),twitter:[l?.twitter?.followers&&{...l?.twitter?.followers,metric:"Followers",platform:"twitter",total:l?.twitter?.followers.current},l?.twitter?.likes&&{...l?.twitter.likes,metric:"Favourites",platform:"twitter",total:l?.twitter?.likes.current},l?.twitter?.retweets&&{...l?.twitter?.retweets,metric:"Retweets",platform:"twitter",total:l?.twitter?.retweets.current},l?.twitter?.mentions&&{...l?.twitter?.mentions,metric:"Mentions",platform:"twitter",total:l?.twitter?.mentions.current}].filter(Boolean),youtube:[l?.youtube?.subscribers&&{...l?.youtube?.subscribers,metric:"Subscribers",platform:"youtube",total:l?.youtube?.subscribers.current,tooltip:"artist.youtube.followers",tooltipText:`How many subscribers ${r} has on Youtube.`},l?.youtube?.total_views&&{...l?.youtube?.total_views,metric:"Views",platform:"youtube",total:l?.youtube?.total_views.current},l?.youtube?.watch_time&&{...l?.youtube?.watch_time,metric:"Watch Time",platform:"youtube",total:l?.youtube?.watch_time.current},l?.youtube?.average_view_duration&&{...l?.youtube?.average_view_duration,metric:"Average View Duration",platform:"youtube",total:l?.youtube?.average_view_duration.current},l?.youtube?.unique_viewers&&{...l?.youtube?.unique_viewers,metric:"Unique Viewers",platform:"youtube",total:l?.youtube?.unique_viewers.current},l?.youtube?.returning_viewers&&{...l?.youtube?.returning_viewers,metric:"Returning Viewers",platform:"youtube",total:l?.youtube?.returning_viewers.current}].filter(Boolean)},platformsData:l}})(L,n),{data:es,columns:er}=(0,H.A)(Z?.slice(0,10)),ei=(r=W?.genres,r?.map(({name:e,value:t})=>({id:e,label:(0,v.k)(e),value:t,formattedValue:(0,b.l)(t,{mantissa:1,trimMantissa:!0})}))),eo=V(et,R.Dy,C.oP),el=V(et,R.WI,C.Pe),en=(t=K,a=(0,g.Zp)(),t?.map((e,t)=>({...e,url:`https://open.spotify.com/artist/${e.spotifyId}`,profileImage:e.profileImage?.url,title:`${e.related_act_name}${t<3?["\uD83E\uDD47","\uD83E\uDD48","\uD83E\uDD49"][t]:""}`,subtitle:(0,v.k)(e.genres?.[0]),stats:e.popularity?[{name:"Fame score",current:e.popularity/10,currentAsString:`${e.popularity/10}/10`}]:void 0,platforms:(e.trends||[])?.map(e=>({name:e.platform_key,value:e.max})),clickHandler:()=>a(`/insights/artists/${e.act_id}`)}))),ec=X?.length?void 0:{message:i("artist.noVideos")};if(G||!W)return(0,s.jsx)(S.A,{});let ed=(e=W?.actId,null==E||""===E||null==e||""===e||String(E)!==String(e)),ep=W?.openToCollab;return(0,s.jsx)(O.A,{artwork:W.profileImage?.url,info:[{label:i("artist.artistName"),value:W?.actName},W.genres_list&&W.genres_list?.length>0&&{label:i("artist.genres"),value:W?.genres_list?.map(e=>(0,v.k)(e)).join(", ")},W.popularity&&{label:i("artist.popularity"),value:(0,b.l)(W.popularity/100,{mantissa:1,trimMantissa:!0})},W.bio&&{label:i("artist.bio"),element:(0,s.jsx)(F.A,{heading:i("artist.bio"),text:W.bio})},ed&&ep&&{label:i("artist.collaboration"),element:(0,s.jsx)(I.A,{artistName:W?.actName||"",artistId:W?.actId||""})}].filter(Boolean),heading:W?.actName,profiles:(0,j.A)(W?.profiles),children:ea||Y||Q||J?(0,s.jsx)(S.A,{isFullScreen:!0,message:i("common.loading.artistInsights")}):(0,s.jsxs)(s.Fragment,{children:[ee&&Object.values(ee).some(e=>e.length>0)?(0,s.jsx)(T.az,{children:(0,s.jsx)($.A,{handleSelectedTime:U,title:W?.actName,insights:ee,timeFilter:L})}):null,eo.length>0&&(0,s.jsx)(M.A,{heading:i("artist.otherPlatforms"),subheading:i("artist.followerTrends"),tooltip:"artist.otherPlatforms",tooltipText:i("artist.otherPlatformsTooltip",{artistName:W?.actName}),data:eo}),el.length>0&&(0,s.jsx)(M.A,{heading:i("artist.otherStreaming"),subheading:i("artist.listenerTrends"),tooltip:"artist.OtherStreaming",tooltipText:i("artist.otherStreamingTooltip",{artistName:W?.actName}),data:el}),(0,s.jsx)(z.A,{publicArtist:W}),(ei||W?.characteristics)&&d&&(0,s.jsxs)(T.az,{hasLargeGap:!0,children:[ei&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(N.A,{heading:i("artist.artistAnalysis"),subheading:i("artist.genreAndAudio"),tooltip:"insights.playlists.analysis"}),(0,s.jsx)(T.az,{children:(0,s.jsx)(B.A,{heading:i("artist.genre"),subheading:i("artist.genreBreakdown"),tooltip:"insights.playlists.genres",data:ei.map(e=>({...e,displayName:e.label})),pieData:ei})})]}),W?.characteristics&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(T.az,{children:[(0,s.jsx)(N.A,{heading:i("artist.trackCharacteristics"),subheading:i("artist.avgCharacteristics"),tooltip:"insights.artist.characteristics"}),(0,s.jsx)(P.A,{data:W.characteristics.map(({name:e,value:t})=>({displayName:e,value:t,percentage:t,formattedValue:(0,b.l)(t,{mantissa:1,trimMantissa:!0})})),isText:!0})]})})]}),!Y&&X&&X?.length>0&&(0,s.jsx)(D.A,{heading:i("artist.videos"),subheading:i("artist.recentVideos"),loadingMessage:i("artist.loadingVideos"),dataTestId:"recent-videos",data:X?.map(e=>({...e,platform:e.platform_key,score:e.scores?.current,image:(0,m.j)(e?.media_url||""),date:e.posted?(0,k.l)((0,c.A)(e.posted)):"",buttonLabel:i("common.view"),isThumbnail16by9:!0}))||[],columns:[{name:"copy",header:" "},p()(X,"posted")&&{name:"date"},p()(X,e=>e?.views||e?.likes||e?.comments||e?.shares||e?.retweets)&&{name:"stats"},p()(X,"scores.current")&&{name:"score"}
1].filter(Boolean),emptyStateOptions:ec}),K&&K?.length>1&&(0,s.jsx)(D.A,{dataTestId:"insights-carousel-related-artists",heading:i("relatedArtists.title"),subheading:i("relatedArtists.subtitle"),loading:Q,loadingMessage:i("artist.loadingArtists"),data:en||[]}),Z&&!J&&(0,s.jsx)(D.A,{dataTestId:"insights-carousel-playlists",heading:i("playlists.title"),subheading:i("artist.playlistsOn",{artistName:W?.actName}),loading:G,loadingMessage:i("common.loading.playlists"),data:es,columns:er,isList:!0})]})})},G=()=>(0,s.jsx)(r.A,{children:(0,s.jsx)(i.A,{shouldTrackFeatureEngagement:!0,children:(0,s.jsx)(W,{})})}),Z=G;G.auth=!0},47121:(e,t,a)=>{"use strict";a.d(t,{A:()=>w});var s=a(6029),r=a(55729),i=a(22286),o=a(92334),l=a(39048),n=a(67962);let c=[{displayName:"Write a song together",value:"write-song"},{displayName:"Feature on each other's tracks",value:"feature"},{displayName:"Swap spots on playlists",value:"swap-playlists"},{displayName:"Promote each other on Instagram/TikTok",value:"promote-socials"},{displayName:"Follow each other on Spotify",value:"follow-spotify"}];var d=a(12555),p=a(69988),m=a(15092),u=a(93852),g=a(16067),h=a(36263),f=a(62436),y=a(70645),b=a(41905);let x=({isOpen:e,onClose:t,artistName:a,artistId:n})=>{let{t:x}=(0,i.Bd)("account"),{actId:w}=(0,f.A)(),[A,v]=(0,r.useState)(""),[k,j]=(0,r.useState)(!1),_=()=>{v(""),j(!1),t()},I=async()=>{if(!k&&A){(0,l.Ay)("Collaboration: Preference selected",{artistName:a,artistId:n,preference:A}),j(!0);try{await (0,m.A)(`artist/${w}/collaboration-request`,{recipientActId:n,collaborationType:A},"POST"),u.A.success(x("collaboration.requestSent",{artistName:a})),_()}catch(e){(0,h.H)(e),u.A.error((0,g.P)(e)||x("collaboration.requestError")),_()}finally{j(!1)}}};return(0,s.jsx)(y.A,{headerText:x("collaboration.inviteToCollaborate"),size:"xs",isShown:e,hide:_,footer:(0,s.jsxs)(p.A,{numberOnRight:2,children:[(0,s.jsx)(o.A,{text:x("collaboration.cancel"),onPress:_,dark:!0,squishy:!0}),(0,s.jsx)(o.A,{text:x("collaboration.sendRequest"),onPress:I,squishy:!0,disabled:!A||k})]}),children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.OU,{children:x("collaboration.whatToCollaborate")}),(0,s.jsx)(b.A,{options:c,onSelect:v,selectedOptionValue:A})]})})},w=({artistName:e,artistId:t,source:a="artist-profile",onTrackedClick:c,small:d,icon:p,noIcon:m})=>{let{t:u}=(0,i.Bd)("common"),[g,h]=(0,r.useState)(!1),{updateUserJourneyFlags:f}=(0,n.A)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.A,{text:u("actions.connect"),icon:m?void 0:p||"add-artist",onPress:()=>{h(!0),f("requestCollaboration"),(0,l.Ay)("Collaboration: Request button clicked",{artistName:e,artistId:t,source:a}),c?.()},secondary:!0,small:d,squishy:!0}),(0,s.jsx)(x,{isOpen:g,onClose:()=>{h(!1)},artistName:e,artistId:t})]})}},70247:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(44825),r=a(15092),i=a(62436);let o=e=>{let{actId:t}=(0,i.A)(),a=e||t,o=`fanInsights/artists/${a}/discography`,{data:l,error:n}=(0,s.A)(a?o:null,async()=>(0,r.A)(o));return n&&console.error(n),{loading:!n&&!l,publicTracks:l?.tracks||[],publicReleases:l?.releases||[]}}},77787:(e,t,a)=>{"use strict";a.d(t,{k:()=>i});var s=a(21157),r=a.n(s);let i=(e="")=>e.split(" ").map(e=>r()(e)).join(" ")},83458:(e,t,a)=>{"use strict";a.d(t,{Y:()=>r});var s=a(39591);let r=(e,t=!1,a=!1)=>{if(!e)return"";let r="string"==typeof e?new Date(e):e;try{return t?(0,s.A)(r,"EEE, MMM dd, yyyy"):(0,s.A)(r,`MMM dd, yyyy${a?" HH:mm":""}`)}catch(e){return""}}},84075:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(6029),r=a(55729),i=a(76015),o=a(13875),l=a(53016),n=a(62941),c=a(12555);let d=o.Ay.div.withConfig({componentId:"sc-cc94e72e-0"})(["display:grid;grid-auto-flow:column;grid-template-columns:1fr;grid-auto-columns:auto 1fr;grid-gap:","px;align-items:center;width:100%;"],e=>e.theme.spacer),p=(0,o.Ay)(c.tE).withConfig({componentId:"sc-cc94e72e-1"})(["transition:opacity 0.2s;opacity:",";"," @media screen and (max-width:378px){font-size:12px;}"],e=>e.isOn?1:.4,e=>e.alignRight&&"justify-self: end;"),m=e=>
1{let[t,a]=(0,r.useState)(e.isOn),c=(0,o.DP)(),{isInModal:m}=(0,n.k)(),u=e=>(0,l.a3)((0,l.iC)(e));(0,r.useEffect)(()=>{e.isControlled&&a(e.isOn)},[e.isOn,e.isControlled]);let g=()=>e.colour?c[e.colour]:e.isInBoxInBox?c.surface_500:m?c.surface_400:e.isInBox?c.surface_300:c.surface_200,h="button"===e.mode,f=h?e.isOn:t,y=!!e.leftLabel,b=!!e.rightLabel,x=e.isSmall?.75:1;return(0,s.jsxs)(d,{"data-testid":e.dataTestId,children:[e.leftLabel&&(0,s.jsx)(p,{alignRight:!0,isOn:y&&b?!f:f,children:e.leftLabel}),(0,s.jsx)(i.A,{checked:f,onChange:h?()=>{e.isDisabled||e.onClick?.()}:t=>{a(t),e.onChange?.(t)},disabled:e.isDisabled,offHandleColor:u(e.isBothOn?c.secondary:c.vlgrey),onHandleColor:u(e.isBothOn?c.secondary:c[e.onAccent||"primary"]),offColor:u(g()),onColor:u(g()),handleDiameter:30*x,uncheckedIcon:!1,checkedIcon:!1,checkedHandleIcon:e.checkedHandleIcon,uncheckedHandleIcon:e.uncheckedHandleIcon,boxShadow:"0px 1px 5px rgba(0, 0, 0, 0.6)",activeBoxShadow:`0 0 ${2*x}px ${3*x}px ${u(e.isBothOn?c.secondary:c[e.onAccent||"primary"])}`,height:20*x,width:48*x,"data-testid":"switch",tabIndex:0,role:"switch","aria-label":"switch-control"}),e.rightLabel&&(0,s.jsx)(p,{isOn:f,children:e.rightLabel})]})}},85811:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(6029),r=a(55729),i=a(22286),o=a(11769),l=a(93005),n=a(77752),c=a(70247),d=a(84075),p=a(44727),m=a(62436);let u=e=>{let{t}=(0,i.Bd)("insights"),{actId:a}=(0,m.A)(),u=(0,o.Zp)(),[g,h]=(0,o.ok)(),[f,y]=(0,r.useState)(g.get("type")||"tracks"),[b,x]=(0,r.useState)(!1),{loading:w,publicTracks:A,publicReleases:v}=(0,c.A)(e.publicArtist?.actId),k=!!e.publicArtist?.actId,j=A?.map(s=>({...s,url:s.spotify_url,profileImage:s?.artwork?.url,noCountShown:!0,date:s.scheduled_release_date?(0,l.l)(new Date(s.scheduled_release_date)):"",stats:[{name:t("discography.popularity"),current:s.popularity,currentAsString:s.popularity?(0,n.l)(s.popularity/100,{mantissa:1,trimMantissa:!0}):"-"},s.total_streams&&{name:t("discography.streams"),current:s.total_streams}].filter(Boolean),platforms:(s.platforms||[])?.map(e=>({name:e.name,value:e.streams})),clickHandler:()=>u(`/insights/tracks/${k?e.publicArtist?.actId:a}/${s.trackId}`)})),_=j?.length<1||!A,I=v?.map(s=>({title:s.name,profileImage:s.artwork.url,popularity:s.popularity,stats:[s.popularity&&{name:t("discography.popularity"),current:s.popularity,currentAsString:(0,n.l)(s.popularity/100,{mantissa:1,trimMantissa:!0})}].filter(Boolean),platforms:(s.platforms||[])?.map(e=>({name:e.name,value:e.streams})),noCountShown:!0,date:s.release_date?(0,l.l)(new Date(s.release_date)):"",clickHandler:()=>u(`/insights/releases/${k?e.publicArtist?.actId:a}/${s.id}`,{replace:!0})})),C=_?{message:t("discography.emptyMessage")}:void 0;return(0,s.jsx)(p.A,{dataTestId:"top-tracks",heading:t("discography.title"),subheading:k?t("discography.artistCatalogue",{artistName:e.publicArtist?.actName}):t("discography.yourCatalogue"),loading:w,loadingMessage:t("common.loading.topTracks"),data:"tracks"===f?j:I,isPage:e.isPage,isList:e.isList,subHeaderElement:I.length>0?(0,s.jsx)(d.A,{leftLabel:t("discography.tracks"),rightLabel:t("discography.releases"),isOn:"releases"===f,isBothOn:!0,onChange:()=>{var t;x(!b),y(t="tracks"===f?"releases":"tracks"),e.isPage&&(g.set("type",t),h(g))}}):void 0,emptyStateOptions:C,path:k?void 0:"/insights/tracks",params:{type:f},order:e.order,resetScrollPosition:b,scrollResetDirection:"left"})}},86005:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(22286),r=a(39191);let i=(e,t,a)=>{let{t:i}=(0,s.Bd)("insights");return{data:e?.map(e=>({platform:(e.provider||"").toLowerCase().replace(/ /g,""),heading:e.name,subtitle:e.owner_name,image:e.image_url,hideMoreButton:!(e.external_url||e.url),external_url:e.external_url||e.url,stats:[e.followers&&{name:i("playlistData.followers"),current:e.followers},e.best_rank&&{name:i("playlistData.rank"),current:e.best_rank},e.tracks&&{name:i("playlistData.trackCount"),current:e.tracks},e.plays&&{name:i("playlistData.recentPlays"),current:e.plays},e.related_artists_count&&{name:i("playlistData.relatedArtists"),current:e.related_artists_count}
1].filter(Boolean),tag:e.newly_added?{label:i("playlists.badges.new"),colour:"secondary"}:e.algorithmic?{label:i("playlists.badges.algorithmic"),colour:"secondary"}:"spotify"===e.owner_id?{label:i("playlists.badges.editorial"),colour:"secondary"}:e.removed&&t&&!a?{label:i("playlists.badges.removed"),colour:"error"}:void 0,clickHandler:()=>e.external_url||e.url?(0,r.A)(e.external_url||e.url):void 0,tagTooltip:e.algorithmic?i("playlist.algorithmicDescription",{ownerName:e.owner_name,playlistName:e.name}):void 0})),columns:[{name:"title",header:i("playlistData.nameOwnerHeader")},{name:"stats"}].filter(Boolean)}}},93005:(e,t,a)=>{"use strict";a.d(t,{l:()=>l});var s=a(79069),r=a(54853),i=a(39591),o=a(83458);let l=e=>{let t=Date.now();return 0===(0,s.A)(t,e)?(0,r.A)(e,t):(0,s.A)(t,e)>0&&6>(0,s.A)(t,e)?`${(0,i.A)(e,"EEEE")} at ${(0,i.A)(e,"p")}`:(0,o.Y)(e)}}},e=>{e.O(0,[9591,6369,2694,8431,5766,4084,7108,8320,6381,1247,8732,2098,636,6593,8792],()=>e(e.s=29141)),_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.