"use strict";(this.__LOADABLE_LOADED_CHUNKS__=this.__LOADABLE_LOADED_CHUNKS__||[]).push([[3917],{29630:(t,e,r)=>{r.d(e,{Z:()=>a});const a=(0,r(46255).Z)("span",{target:"e1y287ls0"})({name:"eyxn1w",styles:"font-size:3rem;padding:0 0.75rem"})},68630:(t,e,r)=>{r.d(e,{Z:()=>i});var a=r(29630),n=r(34853);const i=function(){return(0,n.tZ)(a.Z,{"data-test":"bullet",children:String.fromCharCode(8226)})}},46699:(t,e,r)=>{r.d(e,{Z:()=>o});var a=r(38241),n=r(90758),i=r(96832),l=r(34853);function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{current:t}=v,{current:e}=g;t&&e&&c&&Z(t.offsetHeight({animation:`${t.keyframes.fadeIn} 300ms ease forwards`,backgroundColor:t.colors.transparent.primary,border:0,color:"dark"===u?t.colors.black.dark:t.colors.white.primary,cursor:"pointer",fontSize:t.fonts.size[14],fontWeight:t.fonts.weight.bold,margin:0,opacity:0,padding:0}),"data-test":"truncate-button",onClick:function(){y((t=>!t)),null==d||d()},type:"button",children:f(b?"Show Less":"Show More")})]})}},41005:(t,e,r)=>{r.d(e,{Z:()=>i});var a=r(46255),n=r(95928);const i=(0,a.Z)("div",{target:"e1g0mz980"})((({theme:t})=>({color:t.colors.white.primary,fontSize:"1.6rem",lineHeight:"2.5rem",paddingRight:"1.5rem",width:"44rem","a, p":{color:t.colors.white.primary},[(0,n.Z)(t.mediaQueries.max.width[768])]:{fontSize:"1.2rem",lineHeight:"1.8rem",width:"100%"}})),"")},63642:(t,e,r)=>{r.r(e),r.d(e,{default:()=>pt});var a=r(17),n=r(68630),i=r(41005),l=r(30095),s=r(38288),o=r.n(s),d=r(69201),c=r(96135),u=r(46255);const m=(0,u.Z)("div",{target:"e2a7o3g0"})({name:"p3eyih",styles:"align-items:center;display:flex;flex-wrap:wrap"});var p=r(89322),h=r(98396),Z=r(50854),b=r(6709),y=r(39438),g=r(32931),v=r(74763),f=r(9821),k=r(78743),A=r(87779),I=r(53485),T=r(28477),w=r(68062),S=r(96832),B=r(48683),L=r(34853);const _=(0,A.Z)(f.Z);class P extends S.PureComponent{componentDidMount(){this.props.setHasHero(!0)}componentWillUnmount(){this.props.resetHero()}render(){const{albumTitle:t,albumId:e,artistId:r,artistName:a,customRadioEnabled:s,explicitLyrics:u,mediaServerUrl:f,releaseDate:A,seedId:S,stationType:P,subscriptionType:H,tracks:N,translate:C}=this.props;return(0,L.BX)(y.Z,{"data-test":"hero-container",children:[(0,L.tZ)(d.Z,{tabletBackground:(0,L.tZ)(B.iz,{customBlur:40,mediaServerUrl:f,seedId:e,seedType:"album"})}),(0,L.tZ)(h.Z,{children:(0,L.BX)(p.Z,{children:[(0,L.tZ)(I.Z,{children:(0,L.tZ)(B.pl,{mediaServerUrl:f,seedId:e,seedType:"album"})}),(0,L.BX)(c.Z,{children:[(0,L.tZ)(g.Z,{"data-test":"artist-album-hero-title",children:(0,L.tZ)(T.Z,{clamp:!0,text:t})}),(0,L.BX)(i.Z,{children:[(0,L.tZ)(v.Z,{to:(0,w.Yy)(r,a),children:a}),(0,L.BX)(m,{children:[o()(A,"MMM YYYY"),(0,L.tZ)(n.Z,{}),C(["1 Song","{n} Songs","n"],{n:Number(N.length)})]}),u?(0,L.tZ)(l.Z,{full:!0}):null]}),(0,L.tZ)(b.Z,{children:s?(0,L.tZ)(_,{artistId:r,ButtonComponent:Z.Z,playedFrom:k.Z.PROF_ALBUM_PLAY,seedId:S,stationId:S,stationType:P,subscriptionType:H}):null})]})]})})]})}}var H=r(55669),N=r(71130),C=r(32034),D=r(34563),O=r(75185),U=r(10003),M=r(75628),$=r(89781),Y=r(3849),x=r(42622),R=r(1085);const E=(0,Y.NC)("translate")((0,N.connect)((0,C.zB)({albumId:D.iU,albumTitle:D.dT,artistId:O.Am,artistName:O.I4,backgroundColor:H.Cz,customRadioEnabled:U.BB,explicitLyrics:D.hP,isFavorite:O.Xp,mediaServerUrl:M.C3,noLogo:H.$1,onDemandEnabled:U.pO,primaryBackgroundSrc:H._I,releaseDate:D.DV,siteUrl:M.$2,tracks:D.pr}),{setHeroPremiumBackground:x.AV,resetHero:x.aW,setHasHero:x.j,subscriptionType:$.fE,toggleFavoriteArtist:R.dU})(P));var z=r(65949);const X=(0,u.Z)("div",{target:"e1e589tg0"})((({theme:t})=>({padding:"1.2rem 0 0 0",p:{color:t.colors.gray.medium,fontSize:"1.2rem",opacity:"0.5"}})),""),V=function({copyright:t,publisher:e}){return t||e?(0,L.tZ)(X,{children:t===e?(0,L.tZ)("p",{children:t}):(0,L.BX)(L.HY,{children:[t?(0,L.tZ)("p",{children:t}):null,e?(0,L.tZ)("p",{children:e}):null]})}):null};var F=r(32758);const j=(0,u.Z)("div",{target:"e1dth73i0"})({name:"14nrdl8",styles:"position:absolute;right:0;top:0"});var W=r(37851),G=r(90758),K=r(62274),q=r(83533),J=(r(27009),r(44812));(0,q.ZP)();var Q=r(12771),tt=r(67120);const et=(0,C.zB)({albumId:D.iU,albumTitle:D.dT,albumTracks:D.pr,artistId:O.Am,artistName:O.I4,pagePath:D.ah,releaseDate:D.DV,siteUrl:M.$2,tracks:D.pr}),rt=(0,N.connect)(et)((function({albumTracks:t,albumId:e,albumTitle:r,siteUrl:a,pagePath:n,artistId:i,artistName:l,tracks:s,releaseDate:o}){const d=(0,G.Z)(),c=(0,tt.YY)(d,"Music, New, Best Station, Listen, Play, Track, Tracks, List, Listing, Lyrics, Download, iHeartRadio, iHeart, Radio"),u=(0,K.Y)(i,l),m=`${l} - ${r}`,p=t.slice(0,3).map((t=>{var e;return null!=(e=null==t?void 0:t.title)?e:""})).join(", "),h=s.map((({id:t,title:e})=>{const r=function({artistId:t,artistName:e,trackId:r,trackName:a}){return t&&r?`/artist/${(0,J.lV)(e)}-${t}/songs/${(0,J.lV)(a)}-${r}`:null}({artistId:i,artistName:l,trackId:t,trackName:e});return{content:(0,w.v_)(a,r),property:"music:song"}})),Z=(0,tt.zt)(a,n),b=o?new Date(o).toISOString():null;return(0,L.BX)("div",{children:[(0,L.tZ)(W.Z,{deeplink:`play/custom/album/${e}`,description:p,image:(0,w.Jo)(e,"album"),legacyDeeplink:`play/custom/album/${e}`,metaDescription:p,ogType:"music.album",title:m,twitterCard:"summary_large_image"}),(0,L.tZ)(Q.q,{meta:[{content:[r,l,...c.split(",")].join(","),name:"keywords"},{content:"audio/vnd.facebook.bridge",property:"og:audio:type"},{content:Z,property:"og:audio"},{content:(0,w.v_)(a,u),property:"music:musician"},{content:b,property:"music:release_date"},...h]})]})}));var at=r(224),nt=r(20015),it=r(46588),lt=r(11415),st=r(8723),ot=r(96092),dt=r(74135),ct=r(23653),ut=r(1805),mt=r(5536);class pt extends S.PureComponent{constructor(...t){super(...t),this.onAddAlbumToPlaylist=()=>{const{albumId:t,addAlbumToPlaylist:e}=this.props;e({albumId:t,component:ut.tn.Overflow,view:ut.Ns.AlbumProfile})},this.onAddAlbumToMyMusic=()=>{const{albumId:t,allAccessPreview:e,isAnonymous:r,isLoggedOut:n,openSignup:i,saveAlbum:l,showNotifyGrowl:s,stationSoftgate:o,translate:d}=this.props,c=(0,a.Z)(o,ct.bV.ARTIST);e&&r?i("all_access_Preview"):n&&c?i("reg-gate"):(l(t),s({icon:ot.G.HeartFilled,title:d("Album saved to Your Library")}))}}render(){const{artistId:t,artistName:e,albumId:r,copyright:a,countryCode:n,isInternationalPlaylistRadioEnabled:i,onDemandEnabled:l,publisher:s,showSaveAlbumHeaderOverflow:o,tracks:d,translate:c,title:u}=this.props;if(!t||!r)return null;let m,p;l?(p=r,m=ct.bV.ALBUM):(p=t,m=ct.bV.ARTIST);const h=(0,L.tZ)(st.Z,{playedFrom:k.Z.PROF_SONG_SIMILAR});return(0,L.BX)(L.HY,{children:[(0,L.tZ)(rt,{}),(0,L.tZ)(E,{seedId:p,stationType:m}),(0,L.tZ)(at.Z,{seedId:t,seedType:"artist"}),(0,L.BX)(nt.ZP,{backLink:(0,w.Yy)(t,e),dataTest:nt.n3.ArtistAlbum,hasHero:!0,more:h,title:e,children:[(0,L.tZ)(it.Z,{title:"Tracks",children:(0,L.tZ)(j,{children:(0,L.tZ)(dt.v,{children:(0,L.BX)(dt.v.List,{children:[i||n===F.Z.US?(0,L.tZ)(dt.v.Item,{children:(0,L.tZ)(v.Z,{onClick:this.onAddAlbumToPlaylist,title:c("Add to Playlist"),children:c("Add to Playlist")},"AddToPlaylist")}):null,o?(0,L.tZ)(dt.v.Item,{children:(0,L.tZ)(v.Z,{onClick:this.onAddAlbumToMyMusic,title:c("Save Album"),children:c("Save Album")},"SaveToMyMusic")}):null,(0,L.tZ)(dt.v.Item,{children:(0,L.tZ)(lt.Z,{seedId:r,seedType:ct.bV.ALBUM,stationName:`${e} - ${u}`,type:mt.y.Link},"shareButton")})]})})})}),(0,L.tZ)(z.Z,{alignTrackRow:"center",artistId:t,artistName:e,playedFrom:k.Z.PROF_ALBUM_PLAY,seedId:p,stationType:m,tracks:d}),(0,L.tZ)(V,{copyright:a,publisher:s})]})]})}}},62274:(t,e,r)=>{r.d(e,{W:()=>i,Y:()=>n});var a=r(44812);function n(t,e){return t?`/artist/${(0,a.lV)(e)}-${t}/`:null}function i(t,e){return t?`${n(t,e)}albums/`:null}}}]); //# sourceMappingURL=Album.www.js.map