"use strict";(this.__LOADABLE_LOADED_CHUNKS__=this.__LOADABLE_LOADED_CHUNKS__||[]).push([[2168],{64132:(e,t,r)=>{r.d(t,{Z:()=>y});var n=r(17),i=r(74763),o=r(72798),a=r(77236),s=r(68062),l=r(82412),d=r(10957),c=r(96832),m=r(34853);class h extends c.PureComponent{constructor(...e){super(...e),this.asyncData=null,this.state={links:void 0},this.getInitialStateAsync=()=>{const{variety:e}=this.props,{artistId:t,ampUrl:r}=this.props;return(0,o.Z)((0,d.SF)({ampUrl:r,id:t})).then((t=>{const r=(0,l.r7)((0,n.Z)(t,["data","similarArtists"]));return r&&r[e]&&r[e].length?{links:r[e].slice(0,3).map((e=>({title:e.artistName,url:(0,s.Yy)(e.artistId,e.artistName)})))}:{}}))},this.getTruncatedLinks=e=>{const{truncate:t}=this.props,r=[];let n=15;return e.forEach((e=>{const i=e.title.length;n+i+2<=t&&(n+=i+2,r.push(e))})),r}}componentDidMount(){this.asyncData=(0,a.Z)(this.getInitialStateAsync()),this.asyncData.then((e=>this.setState(e)))}componentWillUnmount(){this.asyncData&&this.asyncData.cancel()}render(){const{links:e,translate:t,numberOfFeatures:r}=this.props,n=this.state.links||e;if(!n)return(0,m.tZ)("p",{});const o=this.getTruncatedLinks(n);return(0,m.tZ)("p",{children:t("Feat. {artistNames} and more",{artistNames:o.slice(0,r).map(((e,t)=>(0,m.BX)("span",{children:[(0,m.tZ)(i.Z,{title:e.title,to:e.url,children:e.title}),t{r.d(t,{Z:()=>w});var n=r(96596),i=r(17),o=r(11692),a=r(78743),s=r(30465),l=r(83807),d=r(32787),c=r.n(d),m=r(83533),h=r(38656),u=r(78213),p=r(45661),g=r(20755),Z=r(9271),f=r(42254),y=r(23653);const b=s.Z.getInstance(),v=(0,m.ZP)();async function S(e){const{seedId:t,seedType:r}=e;if(!t||!r)return;const o=h.parse(window.location.href),s=c().parse(o.query||{});let d=null,m=null;if(s.autoplay){const h=c().stringify((0,n.Z)(s,"autoplay")),f=o.resolveObject({search:h?`?${h}`:""}).href;if(window.history.pushState({},"",f),s.playedFrom)d=parseInt(s.playedFrom,10)||a.Z.PLAYER_PLAY;else switch(e.seedType){case y.bV.LIVE:d=a.Z.PROF_LIVE_AUTOPLAY;break;case y.bV.ALBUM:d=a.Z.PROF_ALBUM_AUTOPLAY;break;case y.bV.ARTIST:d=a.Z.PROF_ARTIST_AUTOPLAY;break;case y.bV.FAVORITES:d=a.Z.PROF_FAVORITES_AUTOPLAY;break;case y.bV.TRACK:d=a.Z.PROF_SONG_AUTOPLAY;break;case y.bV.PODCAST:d=a.Z.PROF_EPISODE_AUTOPLAY,m=(0,g.PQ)(v.getState())||(0,i.Z)(await(0,u.Z)(v,Z.Xe,(e=>e.length>0)),"[0].id","");break;case y.bV.COLLECTION:d=e.playlistType===l.Z.New4U?a.Z.PROF_NEW4U_AUTOPLAY:a.Z.PROF_PLAYLIST_AUTOPLAY;break;case y.bV.PLAYLIST_RADIO:d=e.playlistType===l.Z.New4U?a.Z.PROF_NEW4U_RADIO_AUTOPLAY:a.Z.PROF_PLAYLIST_RADIO_AUTOPLAY;break;case y.bV.MY_MUSIC:d=a.Z.PROF_MY_SONGS_SONGS;break;default:d=void 0}(0,p.J9)({mediaId:m,playedFrom:d,stationId:t,stationType:r})}}function w(e){(0,f.W7)(v.getState())||(e.seedType!==y.bV.ARTIST||e.customRadioEnabled)&&(b.set("streamInitTime",Date.now()),b.get("inInit")?o.Z.once(o.E.AD_WARMUP_COMPLETE,(()=>{S(e)})):S(e))}},24179:(e,t,r)=>{r.d(t,{Z:()=>n});const n=(0,r(46255).Z)("div",{target:"e1yb1beu0"})((({theme:e})=>({"&:hover":{"+ .image::after":{background:e.colors.transparent.dark},"+ span .image::after":{background:e.colors.transparent.dark}},".play":{borderColor:e.colors.white.primary,bottom:"30%",height:"40%",left:"30%",position:"absolute",width:"40%",zIndex:1,svg:{fill:e.colors.white.primary}}})),"")},26184:(e,t,r)=>{r.d(t,{Z:()=>v});var n=r(35887),i=r(74763),o=r(97216),a=r(93740),s=r(90758),l=r(96092),d=r(74135),c=r(3011),m=r(24586),h=r(23653),u=r(96832),p=r(71130),g=r(34853);var Z=r(32034),f=r(98383),y=r(26621),b=r(11129);const v=(0,n.Z)((0,p.connect)((0,Z.zB)({isAnonymous:b.Ld}),{deleteFromListenHistory:f.Vm,toggleStationSaved:f.nS,deleteRecByTypeAndId:y.P1}))((function({artist:e,deleteRecByTypeAndId:t,deleteFromListenHistory:r,followed:n,isAnonymous:Z,recentlyPlayed:f,tileType:y,toggleStationSaved:b}){const{seedId:v,seedType:S,stationId:w,name:I}=e,T=(0,p.useDispatch)(),k=(0,s.Z)(),O=(0,u.useCallback)((()=>{b(S,v),Z||T((0,m.j_)({title:k("Saved {name} to Your Library",{name:I}),icon:l.G.HeartFilled}))}),[S,v,I]),R=(0,u.useCallback)((()=>{b(S,v),Z||T((0,m.j_)({title:k("Removed {name} from Your Library",{name:I}),icon:l.G.Deleted}))}),[S,v,I]);return(0,g.tZ)(a.Z,{"data-test":"artist-tile-dropdown",children:(0,g.tZ)(d.v,{children:(0,g.BX)(d.v.List,{children:[(0,g.tZ)(o.Z,{shouldShow:!n,children:(0,g.tZ)(d.v.Item,{children:(0,g.tZ)(i.Z,{onClick:O,title:k("Follow Artist"),children:k("Follow Artist")},`save|${v}`)})}),(0,g.tZ)(o.Z,{shouldShow:n,children:(0,g.tZ)(d.v.Item,{children:(0,g.tZ)(i.Z,{dataTest:"remove-artist",onClick:R,title:k("Remove Artist"),children:k("Remove Artist")},`remove|${v}`)})}),(0,g.tZ)(o.Z,{shouldShow:y===c.q2.RECOMMENDATION,children:(0,g.tZ)(d.v.Item,{children:(0,g.tZ)(i.Z,{onClick:()=>{t(S,v)},title:k("Not for Me"),children:k("Not for Me")},`notForMe|${v}`)})}),(0,g.tZ)(o.Z,{shouldShow:f,children:(0,g.tZ)(d.v.Item,{children:(0,g.tZ)(i.Z,{onClick:()=>r({seedId:v,stationId:w,stationType:h.bV.ARTIST}),title:k("Delete"),children:k("Delete")},`delete|${v}`)})})]})})})}))},48014:(e,t,r)=>{r.d(t,{Z:()=>v});var n=r(74763),i=r(97216),o=r(93740),a=r(90758),s=r(96092),l=r(74135),d=r(3011),c=r(24586),m=r(23653),h=r(96832),u=r(71130),p=r(34853);var g=r(32034),Z=r(98383),f=r(26621),y=r(11129),b=r(74300);const v=(0,u.connect)((0,g.zB)({isAnonymous:y.Ld,stations:b.Ep}),{deleteFromListenHistory:Z.Vm,toggleStationSaved:Z.nS,deleteRecByTypeAndId:f.P1})((function({deleteRecByTypeAndId:e,deleteFromListenHistory:t,isAnonymous:r,name:g,recentlyPlayed:Z,seedId:f,seedType:y,stations:b,tileType:v,toggleStationSaved:S}){const w=(0,u.useDispatch)(),I=(0,a.Z)(),T=(0,h.useCallback)((()=>{S(y,f),r||w((0,c.j_)({title:I("Saved {name} to Your Library",{name:g}),icon:s.G.HeartFilled}))}),[]),k=(0,h.useCallback)((()=>{S(y,f),r||w((0,c.j_)({title:I("Removed {name} from Your Library",{name:g}),icon:s.G.Deleted}))}),[]),O=Object.keys(b).filter((e=>b[e].favorite));return(0,p.tZ)(o.Z,{"data-test":"station-tile-dropdown",children:(0,p.tZ)(l.v,{children:(0,p.BX)(l.v.List,{children:[(0,p.tZ)(i.Z,{shouldShow:!O.includes(String(f)),children:(0,p.tZ)(l.v.Item,{children:(0,p.tZ)(n.Z,{dataTest:"save-station",onClick:T,title:I("Follow station"),children:I("Follow station")},`save|${f}`)})}),(0,p.tZ)(i.Z,{shouldShow:O.includes(String(f)),children:(0,p.tZ)(l.v.Item,{children:(0,p.tZ)(n.Z,{dataTest:"remove-station",onClick:k,title:I("Unfollow station"),children:I("Unfollow station")},`remove|${f}`)})}),(0,p.tZ)(i.Z,{shouldShow:v===d.q2.RECOMMENDATION,children:(0,p.tZ)(l.v.Item,{children:(0,p.tZ)(n.Z,{onClick:()=>{e(y,f)},title:I("Not for Me"),children:I("Not for Me")},`notForMe|${f}`)})}),(0,p.tZ)(i.Z,{shouldShow:Z,children:(0,p.tZ)(l.v.Item,{children:(0,p.tZ)(n.Z,{onClick:()=>t({seedId:f,stationType:m.bV.LIVE}),title:I("Delete"),children:I("Delete")},`remove-${f}`)})})]})})})}))},2944:(e,t,r)=>{r.d(t,{gw:()=>p,lH:()=>g,ZP:()=>Z});var n=r(34058),i=r(46255),o=r(95928);const a=(0,i.Z)("div",{target:"e1fbxers0"})((({theme:e})=>({WebkitMaskImage:"-webkit-radial-gradient(white, black)",borderRadius:"0.8rem",marginRight:"1.5rem",maxHeight:"20rem",overflow:"hidden",width:"calc(50% - 1.5rem)",[(0,o.Z)(e.mediaQueries.max.width[768])]:{margin:0,maxHeight:"none",width:"100%"}})),""),s=(0,i.Z)("div",{target:"enzy6dp0"})((({theme:e,showMoreTile:t=!1})=>({alignSelf:"center",color:e.colors.black.secondary,fontSize:"2.2rem",lineHeight:1.35,padding:"0 0.75rem 0 1.5rem",textDecoration:"none",width:t?"inherit":"calc(50% - 1.5rem)",[(0,o.Z)([e.mediaQueries.min.width[768],e.mediaQueries.max.width[1160]])]:{margin:0,width:"100%"},[(0,o.Z)(e.mediaQueries.max.width[1024])]:{fontSize:"1.6rem"},[(0,o.Z)(e.mediaQueries.max.width[768])]:{marginBottom:"1.5rem",padding:"1.5rem 0 0",width:"100%"}})),""),l=(0,i.Z)("li",{target:"e8g3xhf0"})((({theme:e})=>({display:"flex",paddingBottom:"1.5rem",[(0,o.Z)(e.mediaQueries.max.width[768])]:{flexDirection:"column"}})),"");var d=r(54067),c=r(74763),m=r(46699),h=r(90758),u=r(34853);const p=1.77,g=({title:e,isSponsored:t=!1,href:r,img:i,key:o,ops:a=[],tilesInRow:l,translate:h})=>({children:(0,u.tZ)(c.Z,{target:"_blank",to:r,children:(0,u.tZ)(d.ZP,{alt:e,aspectRatio:p,ops:a,src:i})}),dataTest:"news-item-list-item",key:o,title:(0,u.BX)(s,{"data-test":"news-item-item-title",showMoreTile:!0,children:[t?(0,u.tZ)(n.Z,{children:h("Sponsor Content")}):null,(0,u.tZ)(c.Z,{target:"_blank",to:r,children:(0,u.tZ)("div",{children:(0,u.tZ)(m.Z,{lines:2,children:e})})})]}),tilesInRow:l}),Z=function({title:e,isSponsored:t=!1,href:r,img:i,ops:o=[]}){const g=(0,h.Z)();return(0,u.BX)(l,{"data-test":"news-item-list-item",children:[(0,u.tZ)(a,{"data-test":"news-item-image-wrapper",children:(0,u.tZ)(c.Z,{target:"_blank",to:r,children:(0,u.tZ)(d.ZP,{alt:e,aspectRatio:p,background:!0,ops:o,src:i})})}),(0,u.BX)(s,{"data-test":"news-item-item-title",children:[t?(0,u.tZ)(n.Z,{children:g("Sponsor Content")}):null,(0,u.tZ)(c.Z,{target:"_blank",to:r,children:(0,u.tZ)("div",{children:(0,u.tZ)(m.Z,{lines:2,children:e})})})]})]})}},52871:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(34853);const i=function({text:e}){return(0,n.tZ)("div",{children:e})}},61729:(e,t,r)=>{r.d(t,{Z:()=>w});var n=r(73653),i=r(46255);const o=(0,i.Z)("div",{target:"e1cbi3m10"})((({theme:e})=>({backgroundColor:e.colors.gray[300],height:"1.6rem",marginTop:"0.5rem",width:"70%"})),""),a=(0,i.Z)("div",{target:"es9ajjb0"})((({isRoundImage:e=!1,theme:t})=>({backgroundColor:t.colors.gray[300],borderRadius:e?"50%":"0.8rem",paddingTop:"93%",width:"100%"})),""),s=(0,i.Z)("div",{target:"etbbbk60"})((({theme:e})=>({backgroundColor:e.colors.gray[300],height:"1.8rem",marginTop:"0.9rem",width:"50%"})),"");var l=r(74763),d=r(97216);const c=(0,i.Z)("div",{target:"eob3h7n0"})((({hasBottomMargin:e=!0})=>({marginBottom:e?"2.3rem":"0.3rem",overflow:"hidden",position:"relative",textAlign:"center"})),""),m=(0,i.Z)("div",{target:"eniktnm0"})((({titleText:e=!0,theme:t})=>({a:{color:t.colors.gray.medium},color:e?t.colors.gray.medium:t.colors.gray.dark,fontSize:e?t.fonts.size[14]:t.fonts.size.small,lineHeight:e?t.fonts.lineHeight.xsmall:t.fonts.lineHeight.small,marginTop:"0.5rem"})),"");var h=r(70324);const u=(0,i.Z)("div",{target:"e2c1v5u0"})((({isWideTile:e=!1,theme:t})=>({color:t.colors.black.secondary,fontSize:"1.5rem",marginTop:"0.9rem",padding:e?"0 0.3em":"0 1.5em",a:{color:t.colors.black.secondary,textDecoration:"none","&:hover":{textDecoration:"underline"}}})),"");var p=r(46699),g=r(88307),Z=r(61993),f=r(96832);function y(){const[e,t]=(0,f.useState)(!1);return(0,Z.Z)((()=>{g.Z!==e&&t(g.Z)})),e}var b=r(42254),v=r(71130),S=r(34853);const w=function({children:e=null,className:t="",dropdown:r=null,dataTest:i=null,hasBottomMargin:g,hideDummySubtitle:Z=!1,horizontalScroll:f,isDummyTile:w=!1,isRoundImage:I=!1,itemSelected:T,maxImageWidth:k,noHoverEffect:O,noTileOnMobile:R,shareTile:_=!1,singleRow:L=!1,style:A={},subTitle:P="",TileContainer:x=n.Z,tileDelay:N=2,tilePosition:E=0,tilesInRow:C,title:F="",titleSingleLine:D=!1,url:M=""}){const U=(0,v.useSelector)(b.W7),B=y(),V=w?(0,S.tZ)(s,{}):(0,S.tZ)(u,{"data-test":"station-tile-title",children:(0,S.tZ)(l.Z,{itemSelected:T,to:M,children:(0,S.tZ)(p.Z,{lines:D?1:2,children:F})})}),H=w?(0,S.tZ)(d.Z,{shouldShow:!Z,children:(0,S.tZ)(o,{})}):(0,S.tZ)(m,{"data-test":"station-tile-sub-title",titleText:"string"!=typeof F||F,children:P}),j=(0,S.BX)(c,{"data-test":"station-tile-info",hasBottomMargin:g,children:[V,H,r]});return(0,S.BX)(x,{className:t,"data-test":i||"station-tile",horizontalScroll:f,isTouch:B,maxImageWidth:k,noTileOnMobile:R,singleRow:L,style:A,tileDelay:N,tilePosition:E,tilesInRow:C,children:[w?(0,S.tZ)(a,{isRoundImage:I}):(0,S.tZ)(h.Z,{"data-test":"station-tile-thumbnail",isRoundImage:I,mobile:U,noHoverEffect:O,children:e}),_?null:j]})}},25025:(e,t,r)=>{r.d(t,{Z:()=>n});const n=(0,r(46255).Z)("div",{target:"e12wd8eb0"})((({liveTile:e=!1,theme:t})=>({backgroundColor:e?t.colors.white.primary:"none",".image img":{border:e?`0.1rem solid ${t.colors.gray.light}`:"none",padding:e?"1.5rem":0},".image .background":{backgroundPosition:"center",backgroundSize:"cover"}})),"")},74135:(e,t,r)=>{r.d(t,{v:()=>n.Z});var n=r(99883);r(38096)},46699:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(38241),i=r(90758),o=r(96832),a=r(34853);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{current:e}=b,{current:t}=y;e&&t&&c&&g(e.offsetHeight({animation:`${e.keyframes.fadeIn} 300ms ease forwards`,backgroundColor:e.colors.transparent.primary,border:0,color:"dark"===m?e.colors.black.dark:e.colors.white.primary,cursor:"pointer",fontSize:e.fonts.size[14],fontWeight:e.fonts.weight.bold,margin:0,opacity:0,padding:0}),"data-test":"truncate-button",onClick:function(){f((e=>!e)),null==d||d()},type:"button",children:v(Z?"Show Less":"Show More")})]})}},41005:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(46255),i=r(95928);const o=(0,n.Z)("div",{target:"e1g0mz980"})((({theme:e})=>({color:e.colors.white.primary,fontSize:"1.6rem",lineHeight:"2.5rem",paddingRight:"1.5rem",width:"44rem","a, p":{color:e.colors.white.primary},[(0,i.Z)(e.mediaQueries.max.width[768])]:{fontSize:"1.2rem",lineHeight:"1.8rem",width:"100%"}})),"")},77236:(e,t,r)=>{function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;ti});const i=function(e){let t=!1;const r=new Promise(((r,i)=>{Promise.resolve(e).then((e=>t?i({canceled:t}):r(e))).catch((e=>i(n({},e,{canceled:t}))))}));return r.cancel=()=>{t=!0},r}},84460:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ke});var n=r(13258),i=r(41005),o=r(69201),a=r(96135),s=r(89322),l=r(98396),d=r(50854),c=r(6709),m=r(39438),h=r(32931),u=r(52871),p=r(9821),g=r(78743),Z=r(87779),f=r(53485),y=r(28477),b=r(26152),v=r(48683),S=r(96832),w=r(23653),I=r(34853);const T=(0,Z.Z)(p.Z);class k extends S.PureComponent{componentWillUnmount(){const{resetHero:e,setHasHero:t}=this.props;e(),t()}render(){const{backgroundColor:e,mediaServerUrl:t,primaryBackgroundSrc:r,seedId:n,siteUrl:p,station:Z,stationName:S,subscriptionType:k}=this.props;return(0,I.BX)(m.Z,{"data-test":"hero-container",children:[(0,I.tZ)(o.Z,{backgroundColor:e,noMask:!0,primaryBackground:r?(0,I.tZ)(v.Ql,{mediaServerUrl:t,ops:[(0,b.QX)("center"),(0,b.yv)(40)],siteUrl:p,src:r,title:S}):null,tabletBackground:(0,I.tZ)(v.iz,{customBlur:40,mediaServerUrl:t,seedId:n,seedType:w.bV.LIVE,title:S})}),(0,I.tZ)(l.Z,{children:(0,I.BX)(s.Z,{children:[(0,I.tZ)(f.Z,{children:(0,I.tZ)(v.pl,{mediaServerUrl:t,seedId:n,seedType:w.bV.LIVE,title:S})}),(0,I.BX)(a.Z,{children:[(0,I.tZ)(h.Z,{children:(0,I.tZ)(y.Z,{clamp:!0,text:Z.name})}),(0,I.BX)(c.Z,{children:[n?(0,I.tZ)(T,{ButtonComponent:d.Z,playedFrom:g.Z.PROF_GENRE_PLAY,seedId:n,stationId:n,stationType:w.bV.LIVE,subscriptionType:k}):null,(0,I.tZ)(i.Z,{children:(0,I.tZ)(u.Z,{text:Z.description})})]})]})]})})]})}}const O=k;var R=r(55669),_=r(71130),L=r(32034),A=r(20328),P=r(75628),x=r(74300),N=r(89781),E=r(42622);const C=(0,_.connect)((0,L.zB)({backgroundColor:R.Cz,mediaServerUrl:P.C3,noLogo:R.$1,primaryBackgroundSrc:R._I,seedId:A.EY,siteUrl:P.$2,station:x.iD,stationName:A.IX,subscriptionType:N.fE}),{resetHero:E.aW,setHasHero:E.j,setHeroPremiumBackground:E.AV})(O);var F=r(37851),D=r(12771);const M=(0,_.connect)((0,L.zB)({logo:A.fv}))((function({deeplink:e,description:t,keywords:r,logo:n,noAltLink:i,title:o}){return(0,I.BX)(I.HY,{children:[(0,I.tZ)(F.Z,{deeplink:e,image:n,metaDescription:t,noAltLink:i,ogType:"music.radio_station",title:o}),(0,I.tZ)(D.q,{meta:[{content:r,name:"keywords"}]})]})}));var U=r(224),B=r(20015),V=r(46255);function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;tH({},e.mixins.ellipsis,{fontSize:"1.6rem",fontWeight:"normal",lineHeight:"2.16rem",margin:0})),"");var z=r(43012);const Y=(0,V.Z)(z.Z,{target:"e1xvcvs60"})({name:"1vk5cmq",styles:"display:inline-block;height:6rem;margin-right:0;width:6rem"});var $=r(74763);const G=(0,V.Z)("p",{target:"e10jpbff0"})((({theme:e})=>({color:e.colors.gray.medium,fontSize:"1.3rem",lineHeight:"1.755rem"})),""),X=(0,V.Z)("div",{target:"e3jaz7f0"})({name:"1e0bh3g",styles:"align-self:center;display:flex;flex-direction:column;padding-bottom:0;padding-left:1.5rem;padding-right:0.75rem;padding-top:0;width:calc(100% - 6rem)"}),W=(0,V.Z)("div",{target:"e1dz6wsu0"})({name:"1btyg2c",styles:"display:flex;:not(:last-of-type){padding-bottom:1rem;}"}),Q=function({imgSrc:e="",isExternal:t=!1,clickedFrom:r,subTitle:n,target:i,title:o}){const a=t?"_blank":void 0;return(0,I.BX)(W,{"data-test":"content-detail-wrapper",children:[(0,I.tZ)($.Z,{clickedFrom:r,supressDeepLink:!0,target:a,to:i,children:(0,I.tZ)(Y,{alt:o,aspectRatio:1,src:e})}),(0,I.BX)(X,{"data-test":"content-detail-text-container",children:[(0,I.tZ)(j,{children:(0,I.tZ)($.Z,{clickedFrom:r,supressDeepLink:!0,target:a,to:i,children:o})}),(0,I.tZ)(G,{children:n})]})]})};var q=r(62188),K=r(58026),J=r(84685);const ee=function({genres:e,mediaServerUrl:t,seedId:r,siteUrl:n}){const i=(0,J.qM)(),o=(0,K.vK)({mediaServerUrl:t,siteUrl:n},Object.values(e).filter((e=>e.sparkStreamId!==r)).sort(((e,t)=>e.sort-t.sort)).slice(0,3));return(0,I.tZ)(q.Z,{dataTest:"more-genres",header:i("More Genres"),isHidden:!o.length,url:"/genre/",children:o.map((({imgSrc:e,name:t,url:r,id:n})=>(0,I.tZ)(Q,{imgSrc:e,target:r,title:t},n)))})};var te=r(37829),re=r(17),ne=r(26184),ie=r(9969),oe=r(64132),ae=r(48014),se=r(24179),le=r(3654),de=r(25025),ce=r(72798),me=r(46699),he=r(51725),ue=r(18646),pe=r(54067);function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t!(e.seedType===w.bV.LIVE&&e.seedId===i&&t[r]))).map((e=>ge({},e.content,{imgWidth:pe.ul,playedFrom:n})));this.setState({stations:d})}render(){const{favoriteStations:e,header:t,playedFrom:r,url:n}=this.props,{stations:i}=this.state;return i.length?(0,I.tZ)(q.Z,{header:t,url:n,children:(0,I.tZ)(te.Z,{subtitleLines:2,tilesData:i.map((t=>{const{seedId:n,description:i,name:o,seedType:a,url:s,logo:l,rawLogo:d,imgUrl:c}=t,m=e.filter((e=>(0,re.Z)(e,"seedId")===n)),h={[w.bV.LIVE]:(0,I.tZ)(u.Z,{text:i}),[w.bV.ARTIST]:(0,I.tZ)(oe.Z,{artistId:n}),undefined:(0,I.tZ)("div",{children:i})};return{children:(0,I.tZ)($.Z,{css:fe,"data-test":`genre-rec-${a}`,to:s,children:(0,I.BX)(se.Z,{children:[(0,I.tZ)(Ze,{className:"play",deferPlay:!!s,playedFrom:r,stationId:n,stationType:a}),(0,I.tZ)(de.Z,{liveTile:a===w.bV.LIVE,children:(0,I.tZ)(ie.Z,{alt:o,aspectRatio:1,height:pe.ul,id:n,src:l||d||c,type:a,width:pe.ul})})]})}),dropdown:a===w.bV.ARTIST?(0,I.tZ)(ne.Z,{artist:t,followed:!!m.length},`artist-${n}`):(0,I.tZ)(ae.Z,{name:o,seedId:n,seedType:a},`station-${n}`),key:n,subTitle:(0,I.tZ)(me.Z,{lines:2,children:h[a]}),tilesInRow:3,title:o,titleSingleLine:!0,url:s}})),tilesInRow:3,titleLines:1})}):null}}const be=ye;var ve=r(16901),Se=r(77938);const we=(0,_.connect)((0,L.zB)({ampUrl:P.h_,currentMarket:ve.o5,favoriteStations:Se.sg}))(be);var Ie=r(2944),Te=r(67120);class ke extends S.PureComponent{componentDidMount(){const{seedId:e,stationLoaded:t}=this.props;t&&(0,n.Z)({seedId:e,seedType:w.bV.LIVE})}UNSAFE_componentWillReceiveProps({seedId:e,stationLoaded:t}){t!==this.props.stationLoaded&&(0,n.Z)({seedId:e,seedType:w.bV.LIVE})}render(){const{contentLink:e,genres:t,genreId:r,genreName:n,seedId:i,logo:o,translate:a,siteUrl:s,mediaServerUrl:l,articles:d}=this.props,c=(0,K.i8)(r,n),m=a("Find and stream {genreName} music stations for free, only on iHeart.",{genreName:n}),h=(0,I.tZ)(ee,{genres:t,mediaServerUrl:l,seedId:i,siteUrl:s}),u={description:m,logo:o,seedId:i,seedType:"genre",stationName:`${n} Radio`,supportsConnect:!1,url:c};return(0,I.BX)(I.HY,{children:[(0,I.tZ)(M,{deeplink:`/goto/genre/${r}`,description:m,keywords:(0,Te.YY)(a,"Music, Radio, Stations, Playlists, Stream, Free, On Demand, iHeartRadio, iHeart"),title:a("Listen to {genreName} Radio Stations for Free",{genreName:n})}),(0,I.tZ)(C,{}),(0,I.tZ)(U.Z,{seedId:i,seedType:w.bV.LIVE}),(0,I.BX)(B.ZP,{dataTest:B.n3.GenrePage,hasHero:!0,more:h,social:u,title:a("Find {genreName} Stations",{genreName:n}),children:[(0,I.tZ)(we,{genreId:r,header:a("Featured {genreName} Stations",{genreName:n}),playedFrom:g.Z.PROF_GENRE_MAIN_FEATURED_STATIONS,stationId:Number(i),template:"DL"},`DL|${r}`),(0,I.tZ)(we,{genreId:r,header:a("Top {genreName} Stations",{genreName:n}),playedFrom:g.Z.PROF_GENRE_MAIN_TOP_STATIONS,stationId:Number(i),template:"LRRM"},`LRRM|${r}`),(0,I.tZ)(we,{genreId:r,header:a("Top {genreName} Artists",{genreName:n}),playedFrom:g.Z.PROF_GENRE_MAIN_TOP_ARTISTS,stationId:Number(i),template:"CR"},`CR|${r}`),(0,I.tZ)(q.Z,{dataTest:"section-news",header:`${n} News`,children:(0,I.tZ)(te.Z,{aspectRatio:Ie.gw,tilesData:d.map((t=>(0,Ie.lH)({title:t.title,href:`${e}${t.slug}/`,key:t.resource_id,isSponsored:t.is_sponsored,img:t["@img"],ops:[(0,b.QX)("center"),(0,b.bC)(Ie.gw,1)],translate:a,tilesInRow:2}))),tilesInRow:2,titleLines:4})})]})]})}}},34058:(e,t,r)=>{r.d(t,{Z:()=>n});const n=(0,r(46255).Z)("div",{target:"e1gio7pq0"})((({theme:e})=>({color:e.colors.gray.medium,fontSize:"1.3rem",letterSpacing:"0.1rem",lineHeight:"1.38rem",marginBottom:"1rem",textTransform:"uppercase"})),"")},85331:(e,t,r)=>{var n=Object.assign||function(e){for(var t=1;t.*<\/title>/gi,desc:/.*<\/desc>/gi,comment://gi,defs:/.*<\/defs>/gi,width:/ +width="\d+(\.\d+)?(px)?"/gi,height:/ +height="\d+(\.\d+)?(px)?"/gi,fill:/ +fill="(none|#[0-9a-f]+)"/gi,sketchMSShapeGroup:/ +sketch:type="MSShapeGroup"/gi,sketchMSPage:/ +sketch:type="MSPage"/gi,sketchMSLayerGroup:/ +sketch:type="MSLayerGroup"/gi},m=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){var e=this.props,r=e.className,i=e.component,o=e.svg,s=e.fill,d=e.width,m=e.accessibilityLabel,h=e.accessibilityDesc,u=e.classSuffix,p=e.cleanupExceptions,g=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["className","component","svg","fill","width","accessibilityLabel","accessibilityDesc","classSuffix","cleanupExceptions"]),Z=this.props,f=Z.cleanup,y=Z.height;(!0===f||0===f.length&&p.length>0)&&(f=Object.keys(c)),f=f.filter((function(e){return!(p.indexOf(e)>-1)})),d&&void 0===y&&(y=d),delete g.cleanup,delete g.height;var b,v,S,w=(0,l.default)((S=r,(v=r)in(b={SVGInline:!0,"SVGInline--cleaned":f.length})?Object.defineProperty(b,v,{value:S,enumerable:!0,configurable:!0,writable:!0}):b[v]=S,b)),I=w.split(" ").join(u+" ")+u,T=t.cleanupSvg(o,f).replace(//.exec(T)).index+k[0].length;T=T.substr(0,O)+""+h+""+T.substr(O)}if(m){var R=(k=k||//.exec(T)).index+k[0].length-1,_="SVGInline-"+t.idCount+++"-title";T=T.substr(0,R)+' role="img" aria-labelledby="'+_+'"'+T.substr(R,1)+''+m+""+T.substr(R+1)}return a.default.createElement(i,n({},g,{className:w,dangerouslySetInnerHTML:{__html:T}}))}}]),t}(o.Component);m.propTypes={className:s.default.string,classSuffix:s.default.string,component:s.default.oneOfType([s.default.string,s.default.func]),svg:s.default.string.isRequired,fill:s.default.string,cleanup:s.default.oneOfType([s.default.bool,s.default.array]),cleanupExceptions:s.default.array,width:s.default.string,height:s.default.string,accessibilityLabel:s.default.string,accessibilityDesc:s.default.string},m.defaultProps={component:"span",classSuffix:"-svg",cleanup:[],cleanupExceptions:[]},m.idCount=0,m.cleanupSvg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object.keys(c).filter((function(e){return t.indexOf(e)>-1})).reduce((function(e,t){return e.replace(c[t],"")}),e).trim()},t.Z=m}}]); //# sourceMappingURL=GenrePage.www.js.map