"use strict";(this.__LOADABLE_LOADED_CHUNKS__=this.__LOADABLE_LOADED_CHUNKS__||[]).push([[9393],{64132:(t,e,n)=>{n.d(e,{Z:()=>b});var i=n(17),a=n(74763),s=n(72798),r=n(77236),l=n(68062),o=n(82412),c=n(10957),d=n(96832),u=n(34853);class h extends d.PureComponent{constructor(...t){super(...t),this.asyncData=null,this.state={links:void 0},this.getInitialStateAsync=()=>{const{variety:t}=this.props,{artistId:e,ampUrl:n}=this.props;return(0,s.Z)((0,c.SF)({ampUrl:n,id:e})).then((e=>{const n=(0,o.r7)((0,i.Z)(e,["data","similarArtists"]));return n&&n[t]&&n[t].length?{links:n[t].slice(0,3).map((t=>({title:t.artistName,url:(0,l.Yy)(t.artistId,t.artistName)})))}:{}}))},this.getTruncatedLinks=t=>{const{truncate:e}=this.props,n=[];let i=15;return t.forEach((t=>{const a=t.title.length;i+a+2<=e&&(i+=a+2,n.push(t))})),n}}componentDidMount(){this.asyncData=(0,r.Z)(this.getInitialStateAsync()),this.asyncData.then((t=>this.setState(t)))}componentWillUnmount(){this.asyncData&&this.asyncData.cancel()}render(){const{links:t,translate:e,numberOfFeatures:n}=this.props,i=this.state.links||t;if(!i)return(0,u.tZ)("p",{});const s=this.getTruncatedLinks(i);return(0,u.tZ)("p",{children:e("Feat. {artistNames} and more",{artistNames:s.slice(0,n).map(((t,e)=>(0,u.BX)("span",{children:[(0,u.tZ)(a.Z,{title:t.title,to:t.url,children:t.title}),e{n.d(e,{Z:()=>a});var i=n(34853);const a=function({text:t}){return(0,i.tZ)("div",{children:t})}},93777:(t,e,n)=>{n.d(e,{Z:()=>Z});var i=n(46255);const a=(0,i.Z)("div",{target:"ecxbxng0"})({name:"4qggmi",styles:"opacity:0.5;text-align:center;width:100%"}),s=(0,n(38241).F4)({"0%, 75%":{transform:"scale(1, 1)"},"25%":{transform:"scale(1, 3)"}}),r=(0,i.Z)("div",{target:"e1c3wc5d0"})({textAlign:"center","& > div":{"&:nth-of-type(1)":{animationDelay:"0s"},"&:nth-of-type(2)":{animationDelay:"0.2s"},"&:nth-of-type(3)":{animationDelay:"0.4s"},"&:nth-of-type(4)":{animationDelay:"0.6s"},"&:nth-of-type(5)":{animationDelay:"0.8s"},animation:`${s} 1.2s infinite ease-out`,background:"rgba(0, 0, 0, 0.1)",display:"inline-block",height:"3rem",margin:"0 2px",width:"1rem"}},""),l=(0,i.Z)("div",{target:"e1nl8g990"})({name:"1u41uth",styles:"display:table;height:8rem;width:100%"}),o=(0,i.Z)("div",{target:"e1b4kwbt0"})({name:"4qggmi",styles:"opacity:0.5;text-align:center;width:100%"});var c=n(32420),d=n(34853);var u=n(71130),h=n(32034),m=n(75628);const p=(0,h.zB)({mediaServerUrl:m.C3}),Z=(0,u.connect)(p)((function(){return(0,d.BX)("div",{children:[(0,d.tZ)(a,{children:(0,d.tZ)("img",{alt:"Loading",src:c.W$,width:"200"})}),(0,d.tZ)(l,{children:(0,d.tZ)(o,{children:(0,d.BX)(r,{children:[(0,d.tZ)("div",{}),(0,d.tZ)("div",{}),(0,d.tZ)("div",{}),(0,d.tZ)("div",{}),(0,d.tZ)("div",{})]})})})]})}))},4512:(t,e,n)=>{n.d(e,{iT:()=>p,ZP:()=>I});var i=n(46255),a=n(46699);const s=(0,i.Z)(a.Z,{target:"exlfqss0"})((({theme:t})=>({alignItems:"center",color:t.colors.gray.medium,fontSize:t.fonts.size.xsmall,lineHeight:t.fonts.lineHeight.xsmall,margin:0,padding:0})),"");var r=n(34853),l=n(96832);const o=function({children:t,lines:e=2,dataTest:n}){return l.Children.count(t)>0?(0,r.tZ)(s,{"data-test":n,lines:e,children:t}):null};var c=n(90758),d=n(30063);var u=n(71130),h=n(32034),m=n(34563);const p=(0,u.connect)((0,h.zB)({releaseDate:m.AN,totalSongs:m.bP}))((function({totalSongs:t,releaseDate:e,lines:n=2,dataTest:i}){const a=(0,c.Z)(),s=`${(0,d.Bw)(new Date(e).getUTCMonth()+1,a)} ${new Date(e).getFullYear()}`,l=a(["1 song","{n} songs","n"],{n:t});return(0,r.tZ)(o,{dataTest:i,lines:n,children:`${s} ${String.fromCharCode(8226)} ${l}`})}));var Z=n(64132),v=n(52871),g=n(74300);const b=(0,u.connect)((0,h.zB)({text:g.u4}))(v.Z);var y=n(23653);const f=["stationType","stationId","description","dataTest","lines"];function A(){return A=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,f);const c=w[e];return c?(0,r.tZ)(c,A({dataTest:a,description:i||"",lines:s,stationId:n},l)):(0,r.tZ)(o,{dataTest:a,lines:s,children:i||null})}},77236:(t,e,n)=>{function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;ea});const a=function(t){let e=!1;const n=new Promise(((n,a)=>{Promise.resolve(t).then((t=>e?a({canceled:e}):n(t))).catch((t=>a(i({},t,{canceled:e}))))}));return n.cancel=()=>{e=!0},n}},92664:(t,e,n)=>{n.d(e,{Z:()=>H});const i=(0,n(46255).Z)("div",{target:"eovlm390"})((({limit:t})=>({marginBottom:t>3?"3rem":0})),"");var a=n(9969),s=n(17),r=n(32758),l=n(74763),o=n(97216),c=n(93740),d=n(90758),u=n(31401),h=n(96092),m=n(74135),p=n(24586),Z=n(1805),v=n(23653),g=n(96832),b=n(71130),y=n(34853);const f=(t="all_access_Preview")=>(0,p.it)({context:t});var A=n(98329),w=n(19530),I=n(75185),T=n(32034),S=n(89781),D=n(75628),L=n(11129);const O=(0,b.connect)((0,T.zB)({allAccessPreview:S.Xp,countryCode:D.so,isAnonymous:L.Ld,isLoggedOut:L._o,overflowEntitlements:I.x_,saveAlbumOverflow:S.Q2,stationSoftgate:D.r$,user:A.ZP}),{saveAlbum:w.Z.action})((function({albumId:t,allAccessPreview:e,countryCode:n,overflowEntitlements:i,isAnonymous:a,isLoggedOut:A,saveAlbum:w,saveAlbumOverflow:I,stationSoftgate:T,view:S=Z.Ns.ArtistProfile}){const D=n===r.Z.US||n===r.Z.CA,L=(0,b.useDispatch)(),O=(0,d.Z)(),P=(0,g.useCallback)((()=>{L((0,u.df)({albumId:t,view:S,component:Z.tn.ListAlbumsOverflow}))}),[t,L,S]),_=(0,g.useCallback)((()=>{const n=(0,s.Z)(T,v.bV.ARTIST);e&&a?L(f()):A&&n?L(f("reg-gate")):I&&(w(t),L((0,p.j_)({title:O("Album saved to Your Library"),icon:h.G.HeartFilled})))}),[t]);return D||i.showSave?(0,y.tZ)(c.Z,{children:(0,y.tZ)(m.v,{children:(0,y.BX)(m.v.List,{children:[(0,y.tZ)(o.Z,{shouldShow:i.showSave,children:(0,y.tZ)(m.v.Item,{children:(0,y.tZ)(l.Z,{onClick:_,title:O("Save Album"),underline:!0,children:O("Save Album")},"addToMyMusic")})}),(0,y.tZ)(o.Z,{shouldShow:D,children:(0,y.tZ)(m.v.Item,{children:(0,y.tZ)(l.Z,{onClick:P,title:O("Add to Playlist"),underline:!0,children:O("Add to Playlist")},"addToPlaylist")})})]})})}):null}));var P=n(36012),_=n.n(P),k=n(93777),x=n(9821),B=n(24179),C=n(87779),$=n(61729),M=n(33998),N=n(4512),U=n(68062),E=n(54067);const R=(0,C.Z)(x.Z);var V={name:"4bgdod",styles:"display:block;position:relative"};class F extends g.PureComponent{constructor(...t){super(...t),this.loadItems=()=>{const{artistId:t,nextAlbumLink:e,requestAdditionalAlbums:n}=this.props;n(t,e)}}render(){const{appMounted:t,albums:e,artistId:n,artistName:s,albumPlayback:r,customRadioEnabled:o,nextAlbumLink:c,playedFrom:d,singleRow:u,tilesInRow:h}=this.props,m=u?h:1/0;return e.length?(0,y.tZ)(i,{"data-test":"albums-tiles-wrapper",limit:m,children:(0,y.tZ)(_(),{hasMore:!!c,loader:(0,y.tZ)(k.Z,{},"albums-loader"),loadMore:this.loadItems,pageStart:0,children:(0,y.tZ)(M.Z,{tilesInRow:h,children:e.slice(0,m).map((e=>{const{albumId:i,title:c,image:m}=e,p=(0,U.Mq)(n,s,i,c),g=r&&o?(0,y.tZ)(B.Z,{children:(0,y.tZ)(R,{artistId:n,className:"play",deferPlay:!!p,playedFrom:d,seedId:i,stationId:i,stationType:v.bV.ALBUM})}):null;return(0,y.tZ)($.Z,{"data-test":"album-tile",dropdown:(0,y.tZ)(O,{albumId:i,view:Z.Ns.AlbumProfile},`album-${i}`),singleRow:u,subTitle:(0,y.tZ)(N.iT,{stationId:i}),tilesInRow:h,title:c,titleSingleLine:!0,url:p,children:(0,y.BX)(l.Z,{css:V,to:p,children:[t&&g,(0,y.tZ)(a.Z,{alt:c,aspectRatio:1,height:E.ul,id:i,src:m,type:v.bV.ALBUM,width:E.ul})]})},`album|${i}`)}))})})}):null}}F.defaultProps={limit:1e3};const j=F;var z=n(60067);const q=(0,T.zB)({appMounted:z.ih}),H=(0,b.connect)(q)(j)},62274:(t,e,n)=>{n.d(e,{W:()=>s,Y:()=>a});var i=n(44812);function a(t,e){return t?`/artist/${(0,i.lV)(e)}-${t}/`:null}function s(t,e){return t?`${a(t,e)}albums/`:null}}}]); //# sourceMappingURL=9393.www.js.map