"use strict";(this.__LOADABLE_LOADED_CHUNKS__=this.__LOADABLE_LOADED_CHUNKS__||[]).push([[222],{64132:(e,t,r)=>{r.d(t,{Z:()=>v});var i=r(17),n=r(74763),s=r(72798),a=r(77236),o=r(68062),l=r(82412),d=r(10957),c=r(96832),u=r(34853);class p 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,s.Z)((0,d.SF)({ampUrl:r,id:t})).then((t=>{const r=(0,l.r7)((0,i.Z)(t,["data","similarArtists"]));return r&&r[e]&&r[e].length?{links:r[e].slice(0,3).map((e=>({title:e.artistName,url:(0,o.Yy)(e.artistId,e.artistName)})))}:{}}))},this.getTruncatedLinks=e=>{const{truncate:t}=this.props,r=[];let i=15;return e.forEach((e=>{const n=e.title.length;i+n+2<=t&&(i+=n+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,i=this.state.links||e;if(!i)return(0,u.tZ)("p",{});const s=this.getTruncatedLinks(i);return(0,u.tZ)("p",{children:t("Feat. {artistNames} and more",{artistNames:s.slice(0,r).map(((e,t)=>(0,u.BX)("span",{children:[(0,u.tZ)(n.Z,{title:e.title,to:e.url,children:e.title}),t{r.d(t,{Z:()=>i});const i=(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}}})),"")},10881:(e,t,r)=>{r.d(t,{Z:()=>u});var i=r(43012),n=r(12024),s=r(34853);const a=["width","blurSigma","src","mediaServerUrl","siteUrl"];function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(n[r]=e[r]);return n}(e,a);const p=(0,n.p9)({mediaServerUrl:d,siteUrl:c},{blurSigma:r,width:t},l),h=(0,n.WP)({mediaServerUrl:d,siteUrl:c},{blurSigma:r,width:t});return(0,s.tZ)(i.Z,o({defaultSrc:h,src:p},u))}))},9821:(e,t,r)=>{r.d(t,{Z:()=>k});var i=r(35887),n=r(48199),s=r(78761),a=r(34853);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,h.iG)(t)?(0,h.jX)(n,s)||r:i,w=(e,{playlistUserId:t,playlistId:r,stationType:i})=>(0,h.iG)(i)?(0,g.n1)(e,{playlistId:r,playlistUserId:t}):i,I=(0,p.zB)({allAccessPreview:m.im,canPlayAlbum:c.eU,canPlayMyMusic:c.nA,canPlayPlaylist:c.jw,canPlayPlaylistRadio:c.NO,canStartArtistRadio:c.MC,canStartSongRadio:c.Km,curated:g.o7,currentAlbumId:f.iU,currentAlbumTitle:f.dT,entitlements:c.HF,isMuted:y.rs,isTrialEligible:c.jc,profileId:v.v4,stationId:S,stationType:w,station:(e,t)=>{var r;const i=w(e,t),n=S(0,t);return null!=(r=(0,b.gs)(e,{id:n,type:i}))?r:{}},subscriptionType:c.fE}),k=(0,i.Z)((e=>t=>{const r=o({adsPlayer:(0,s.Z)()},t);return(0,a.tZ)(e,o({},r))}),(e=>t=>{const r=d({adsPlayerState:(0,l.Z)()},t);return(0,a.tZ)(e,d({},r))}),(0,u.connect)(I,{toggleMute:Z.$t}))(n.Z)},80571:(e,t,r)=>{r.d(t,{Z:()=>p});var i=r(46255),n=r(43012);const s=(0,i.Z)(n.Z,{target:"e154agbc0"})((({size:e})=>({borderRadius:e/2,height:e,overflow:"hidden",width:e})),"");var a=r(27009),o=r(26152),l=r(75628),d=r(11129),c=r(71130),u=r(34853);const p=function({dataTest:e,size:t}){const r=(0,c.useSelector)(l.C3),i=(0,c.useSelector)(d.v4);return(0,u.tZ)(s,{alt:"Profile",aspectRatio:1,background:!0,"data-test":null!=e?e:"profile-Img",size:t,src:(0,a.Sc)((0,a.J_)(r,i),(0,a.VH)((0,o.E9)((0,o.Tj)(t,t))()))()})}},62188:(e,t,r)=>{r.d(t,{Z:()=>m});var i=r(41665),n=r(74763),s=r(61465),a=r(46255);const o=(0,a.Z)("p",{target:"eqxru840"})((({theme:e})=>({color:e.colors.gray[400],fontSize:e.fonts.size[16],marginBottom:"3rem"})),"");var l=r(95928);const d=(0,a.Z)("section",{target:"e1odsxr60"})((({fullWidth:e=!1,hasBorder:t=!0,hasExtraPadding:r=!0,hasMobileBottomLink:i=!1,suppressFirstOfType:n,theme:s})=>({borderTop:t?`1px solid ${s.colors.gray[300]}`:"none",padding:r?"3rem 0":"1.5rem 0",position:"relative",width:e?"100%":"initial",":first-of-type":n?{}:{borderTopWidth:"0",paddingTop:"0"},table:{tableLayout:"fixed",width:"100%"},[(0,l.Z)(s.mediaQueries.max.width[599])]:{paddingBottom:i?"6rem":"1rem"}})),"");var c=r(96832),u=r(34853),p={name:"1q01m3q",styles:"margin:0 0 -2px 0"};class h extends c.Component{constructor(...e){super(...e),this.onHeaderClick=()=>(this.props.onHeaderClick&&"function"==typeof this.props.onHeaderClick&&this.props.onHeaderClick(),!0)}render(){const{as:e="h3",dataTest:t,hasBorder:r,hasExtraPadding:a,hasMobileBottomLink:l,suppressFirstOfType:c}=this.props;let h,m,{children:f}=this.props,g=null;return this.props.isEmpty&&this.props.emptyMessage&&this.props.appendEmpty?g=(0,u.tZ)("span",{children:this.props.emptyMessage}):this.props.isEmpty&&this.props.emptyMessage&&!this.props.appendEmpty&&(f=this.props.emptyMessage),this.props.header&&(h="string"==typeof this.props.header?this.props.url?(0,u.tZ)(s.Z,{as:e,children:(0,u.BX)(n.Z,{dataTest:"section-header",onClick:this.onHeaderClick,supressDeepLink:!0,to:this.props.url,children:[this.props.header," ",(0,u.tZ)(i.Z,{css:p})]})}):(0,u.tZ)(s.Z,{as:e,"data-test":"section-header",children:this.props.header}):this.props.header),this.props.subheader&&(m=(0,u.tZ)(o,{children:this.props.subheader})),this.props.isHidden?null:(0,u.BX)(d,{"data-test":t,fullWidth:this.props.fullWidth,hasBorder:r,hasExtraPadding:a,hasMobileBottomLink:l,suppressFirstOfType:c,children:[h,m,f,g]})}}h.defaultProps={appendEmpty:!1,emptyMessage:"",fullWidth:!1,hasBorder:!1,hasExtraPadding:!0,hasMobileBottomLink:!1,header:void 0,isEmpty:!1,isHidden:!1,onHeaderClick:void 0,subheader:"",suppressFirstOfType:!1,url:""};const m=h},82987:(e,t,r)=>{r.d(t,{p:()=>s,$:()=>c});const i=(e,t,r)=>[{key:"application/json+oembed",href:`${e}/oembed?url=${encodeURIComponent(t)}&format=json`,rel:"alternate",title:r,type:"application/json+oembed"},{key:"text/xml+oembed",href:`${e}/oembed?url=${encodeURIComponent(t)}&format=xml`,rel:"alternate",title:r,type:"text/xml+oembed"}];var n=r(67120);const s=({pagePath:e,siteUrl:t,title:r})=>[...i(t,(0,n.zt)(t,e),r)];var a=r(32787),o=r.n(a);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const t={};return e&&(t.embed=!0),Object.keys(t).length?`?${r=t,o().stringify((i=r,Object.keys(i).sort().reduce(((e,t)=>l({},e,{[t]:i[t]})),{})))}`:"";var r,i},c=({height:e,addEmbedToLink:t=!1,pagePath:r,siteUrl:i,width:s})=>{const a=(0,n.zt)(i,r),o=a+d({embed:t}),l=a+d({embed:!0}),c=a+d({embed:t});return[{content:"audio",key:"twitter:card",property:"twitter:card"},{content:c,key:"twitter:url",name:"twitter:url"},{content:c,key:"twitter:player",name:"twitter:player"},{content:`${s}`,key:"twitter:player:width",name:"twitter:player:width"},{content:`${e}`,key:"twitter:player:height",name:"twitter:player:height"},{content:"text/html",key:"og:video:type",property:"og:video:type"},{content:"audio/vnd.facebook.bridge",key:"og:audio:type",property:"og:audio:type"},{content:o,key:"og:url",property:"og:url"},{content:o,key:"og:audio",property:"og:audio"},{content:l,key:"og:video:url",property:"og:video:url"},{content:l,key:"og:video:secure_url",property:"og:video:secure_url"},{content:`${s}`,key:"og:video:width",property:"og:video:width"},{content:`${e}`,key:"og:video:height",property:"og:video:height"}]}},41005:(e,t,r)=>{r.d(t,{Z:()=>s});var i=r(46255),n=r(95928);const s=(0,i.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,n.Z)(e.mediaQueries.max.width[768])]:{fontSize:"1.2rem",lineHeight:"1.8rem",width:"100%"}})),"")},61465:(e,t,r)=>{r.d(t,{Z:()=>i});const i=(0,r(46255).Z)("h3",{target:"efo90df0"})((({hasBackLink:e,hasMobileBottomLink:t,noWrap:r,theme:i})=>({fontSize:i.fonts.size[22],fontWeight:"bold",lineHeight:i.fonts.lineHeight[24],overflow:r?"visible":"hidden",paddingBottom:"1.5rem",paddingLeft:e?"2rem":0,position:t?"initial":"relative",textOverflow:r?"inherit":"ellipsis",width:"100%",whiteSpace:r?"normal":"nowrap",a:{"&:hover":{textDecoration:"none"}}})),"")},41665:(e,t,r)=>{r.d(t,{Z:()=>o});var i=r(80942),n=r(34853);const s=["data-test","fill"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(n[r]=e[r]);return n}(e,s);return(0,n.tZ)("svg",a({"data-test":t,fill:r,height:"18",viewBox:"0 0 7 12",width:"20",xmlns:"http://www.w3.org/2000/svg"},o,{children:(0,n.tZ)("path",{d:"M0.310078 0.710022C-0.0799219 1.10002 -0.0799219 1.73002 0.310078 2.12002L4.19008 6.00002L0.310078 9.88002C-0.0799219 10.27 -0.0799219 10.9 0.310078 11.29C0.700078 11.68 1.33008 11.68 1.72008 11.29L6.31008 6.70002C6.70008 6.31002 6.70008 5.68002 6.31008 5.29002L1.72008 0.700022C1.34008 0.320022 0.700078 0.320022 0.310078 0.710022Z"})}))}},77236:(e,t,r)=>{function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tn});const n=function(e){let t=!1;const r=new Promise(((r,n)=>{Promise.resolve(e).then((e=>t?n({canceled:t}):r(e))).catch((e=>n(i({},e,{canceled:t}))))}));return r.cancel=()=>{t=!0},r}},51359:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_e});var i=r(9969),n=r(64132),s=r(37851),a=r(90758),o=r(27009),l=r(12771),d=r(82987),c=r(67120),u=r(33567),p=r(34853);var h=r(71130),m=r(32034),f=r(12243),g=r(75628);const y=(0,h.connect)((0,m.zB)({favoriteArtists:f.kp,mediaServerUrl:g.C3,siteUrl:g.$2}))((function({favoriteArtists:e,mediaServerUrl:t,seedId:r,siteUrl:i,name:n=""}){var h;const m=(0,a.Z)(),f=e.slice(0,3).map((e=>{var t;return null!=(t=null==e?void 0:e.name)?t:""})).join(", "),g=m("{name}'s Favorites Radio",{name:n}),y=(0,c.YY)(m,"favorite songs, favorite music, personal radio station, personalized radio station, custom radio station"),v=`favorites/${n}-favorites-radio-${r}`,b=(0,o.Sc)((0,o.kG)(t,{id:r,resourceType:"favorites"}))(),{height:Z,fixedWidth:S}=null!=(h=u.I.FAVORITES)?h:{};return(0,p.BX)(p.HY,{children:[(0,p.tZ)(s.Z,{description:f,image:b,metaDescription:f,noAltLink:!0,ogType:"music.playlist",title:g}),(0,p.tZ)(l.q,{link:(0,d.p)({pagePath:v,siteUrl:i,title:g}),meta:[{content:y,name:"keywords"},...(0,d.$)({pagePath:v,siteUrl:i,height:Z,width:S})]})]})}));var v=r(93202),b=r(41005),Z=r(69201),S=r(96135),w=r(89322),I=r(98396),k=r(50854),O=r(6709),T=r(39438),x=r(62270),P=r(32931),E=r(54067),R=r(9821),F=r(78743),j=r(87779),N=r(80571),C=r(97216),U=r(53485),A=r(28477),M=r(26152),B=r(96832),_=r(23653),L=r(48683);const $=(0,j.Z)(R.Z),H=x.Z.withComponent("div",{target:"e13m0rbn0"});class z extends B.PureComponent{render(){const{customRadioEnabled:e,displayName:t,image:r,hasMFR:i,isMFR:n,mediaServerUrl:s,name:a,title:o,translate:l,userId:d}=this.props;let{seedId:c}=this.props;!c&&n&&(c=null==d?void 0:d.toString());const u=r&&e?(0,p.tZ)(E.ZP,{alt:"Hero Image",background:!0,ops:[(0,M.QX)("center"),(0,M.yv)(40)],src:r}):null,h=o&&-1===o.indexOf("Favorites Radio")?`${o} Favorites Radio`:o,m=`${t}'s Profile`;return(0,p.BX)(T.Z,{"data-test":"hero-container",children:[(0,p.tZ)(Z.Z,{backgroundColor:e?v.Z.red.primary:v.Z.black.secondary,noMask:!0,primaryBackground:u}),(0,p.tZ)(I.Z,{children:(0,p.BX)(w.Z,{children:[(0,p.tZ)(U.Z,{children:e?(0,p.tZ)(L.pl,{alt:a,mediaServerUrl:s,seedId:d||c,seedType:_.bV.FAVORITES}):(0,p.tZ)(H,{alt:"Profile Picture",children:(0,p.tZ)(N.Z,{size:195})})}),(0,p.BX)(S.Z,{children:[(0,p.tZ)(P.Z,{children:(0,p.tZ)(A.Z,{clamp:!0,text:e||!n?h:m})}),(0,p.tZ)(C.Z,{shouldShow:e,children:(0,p.BX)(O.Z,{children:[!n||i?(0,p.tZ)($,{ButtonComponent:k.Z,playedFrom:F.Z.PROF_FAVORITES_PLAY,seedId:c,stationId:c,stationType:_.bV.FAVORITES}):null,(0,p.tZ)(b.Z,{children:l("All your favorite songs and artists.")})]})})]})]})})]})}}var D=r(1441),V=r(10003),X=r(36599),W=r(3849);const G=(0,D.qC)((0,W.NC)("translate"),(0,h.connect)((0,m.zB)({customRadioEnabled:V.BB,displayName:(0,X.R5)(16),hasMFR:f.Nm,image:f.UA,mediaServerUrl:g.C3,seedId:f.jn,title:f.oY})))(z);var Y=r(74763),q=r(2514),Q=r(20015),K=r(24179),J=r(17),ee=r(59277),te=r(85826),re=r(45420),ie=r(46255);const ne=(0,ie.Z)("h1",{target:"e17oi5rf0"})({name:"1khvu0j",styles:"display:inline;font-size:inherit;font-weight:inherit;line-height:inherit"});var se=r(95928);const ae=(0,ie.Z)("button",{target:"e1v9myu20"})((({theme:e})=>({backgroundColor:e.colors.transparent.primary,border:"none",minWidth:"unset",padding:0,paddingLeft:"0.8rem",width:"3rem",[(0,se.Z)(e.mediaQueries.max.width[640])]:{width:"3rem"}})),"");var oe=r(76683);const le=(0,ie.Z)(oe.Z,{target:"e1dopqf20"})({name:"1kymkw5",styles:"font-size:1.6rem"}),de=(0,ie.Z)("span",{target:"e13be4150"})({name:"1bmnxg7",styles:"white-space:nowrap"}),ce=r(75085).Z.withComponent("section",{target:"e1vsmhmg0"});function ue({name:e,onEdit:t,className:r}){return(0,p.tZ)(ce,{className:r,children:(0,p.BX)(ne,{children:[e," Favorites",(0,p.BX)(de,{children:[" Radio",t?(0,p.tZ)(ae,{"data-test":"mfrname-editbtn",onClick:t,children:(0,p.tZ)(le,{name:"pencil"})}):null]})]})})}var pe=r(11129),he=r(24586);const me=(0,re.Z)()(te.Z),fe=({canEdit:e=!1,className:t,currentName:r="My",onSave:i})=>{const[n,s]=(0,B.useState)(!1),a=(0,h.useSelector)(pe._o),o=(0,h.useDispatch)();return n?(0,p.tZ)(me,{className:t,getErrorMessage:e=>e?1===e.length?"Name must be at least 2 characters.":"":"Rename your Favorites Radio station now.",initialValue:r,onCancel:()=>{s(!1)},onSave:e=>{s(!1),i&&i(e)}}):(0,p.tZ)(ue,{className:t,name:r,onEdit:e?()=>{a?o((0,he.it)({context:"reg-gate"})):s(!0)}:void 0})};var ge=r(72798),ye=r(88645),ve=r(53455),be=r(42622);class Ze extends B.Component{constructor(...e){super(...e),this.state=this.getInitialState(),this.onSubmit=e=>{const{ampUrl:t,profileId:r,sessionId:i,setHeroTitle:n,setMyFavoritesRadioName:s}=this.props,a=e.trim(),o=`${e} Favorites Radio`;return(0,ge.Z)((0,ye.Gt)({ampUrl:t,profileId:r,seedId:r,sessionId:i})).then((({data:e})=>{let l=this.state.stationId;const d=(0,J.Z)(e,["value","id"]);if(d?(l=d,ee.Z.setItem("ihr-favorites-id",d)):l=ee.Z.getItem("ihr-favorites-id"),!a)return!1;(0,ge.Z)((0,ye.e5)({ampUrl:t,name:a,profileId:r,sessionId:i,stationId:l})).then((({data:e})=>{if(e.success)return n(o),s(o),ee.Z.setItem("ihr-favorites-name",a),!0}),(()=>{}))})),!1}}getInitialState(){let e=this.props.stationName||"My",t="";return e.indexOf(" Favorites Radio")>-1&&(t=e.split(" Favorites Radio")[0],e=e.split(" Favorites Radio")[0]),{origionalName:t,stationId:this.props.stationId,stationName:e,validated:!1}}UNSAFE_componentWillReceiveProps(e){let t=e.stationName;t.indexOf(" Favorites Radio")&&(t=t.split(" Favorites Radio")[0]),this.setState({stationName:t})}render(){return(0,p.tZ)("div",{children:(0,p.tZ)(fe,{canEdit:!0,currentName:this.state.stationName,onSave:this.onSubmit})})}}const Se=(0,m.zB)({ampUrl:g.h_,profileId:pe.v4,sessionId:pe.MQ}),we={setHeroTitle:be.Td,setMyFavoritesRadioName:ve.fA},Ie=(0,h.connect)(Se,we)(Ze);var ke=r(62188),Oe=r(96083),Te=r(61729),xe=r(33998),Pe=r(29929),Ee=r(98383),Re=r(61993),Fe=r(1085),je=r(20755),Ne=r(60067),Ce=r(36154),Ue=r(73634),Ae=r(44812);const Me=(0,j.Z)(R.Z);var Be={name:"4bgdod",styles:"display:block;position:relative"};const _e=function(){var e,t,r;const s=(0,h.useDispatch)(),o=(0,a.Z)(),[l,d]=(0,B.useState)((0,h.useSelector)(f.kp)),[c,m]=(0,B.useState)((0,h.useSelector)(f.jn)),[v,b]=(0,B.useState)((0,h.useSelector)(f.QF)),[Z,S]=(0,B.useState)((0,h.useSelector)(f.oY)),[w,I]=(0,B.useState)(),{"favorites.named":k}=null!=(e=(0,h.useSelector)(X.Iz))?e:{},O=(0,h.useSelector)(f.Nm),T=(0,h.useSelector)(pe.Ld),{id:x}=null!=(t=(0,h.useSelector)(Ne.IO))?t:{},{pathname:P}=null!=(r=(0,h.useSelector)(je.k$))?r:{},R=(0,h.useSelector)(pe.v4),j=(0,h.useSelector)(g.$2),N=(0,h.useSelector)(f.oY),C=(0,h.useSelector)(je.fg),U=(0,h.useSelector)(g.h_),A=(0,h.useSelector)(je.vZ),M=(0,h.useSelector)(f.Qg),L=null!=A?A:M;(0,Re.Z)((()=>{(async()=>{await(0,ge.Z)((0,ye.cc)(L,U,{bustCache:!0})).then((e=>I(e.data)))})(),T||!1!==O||s((0,ve.mI)(void 0)),T&&!C&&s((0,he.it)({context:"reg-gate"}))})),(0,B.useEffect)((()=>{if(w){const{artists:e,description:t,imagePath:r,link:i,name:n,seedId:a,slug:o}=(0,Ce.c4)(w,L);m(a),d(e),b(o),S(n),s((0,Fe.L7)(e)),s((0,ve.Cs)({artists:e,description:t,imagePath:r,link:i,name:n,seedId:a,slug:o})),s((0,be.j)(!0))}}),[w,d,s,L,U]);const{correctSlug:$,getStationInfo:H,isActiveUser:z,needStationInfo:D,needsToNameStation:V,showHowToPage:W}=function({favoritesNamed:e,hasMFR:t,isAnonymous:r,modalId:i,profileId:n,seedId:s,slug:a,urlSlugId:o}){const[l,d]=(0,B.useState)(),[c,u]=(0,B.useState)(),[p,h]=(0,B.useState)(),[m,f]=(0,B.useState)(!1),[g,y]=(0,B.useState)(!1),v=(0,B.useCallback)((()=>()=>(0,Ee.yn)(_.bV.FAVORITES,n)),[n]),b=(0,B.useCallback)((()=>()=>(0,ve.V6)(Number(o||s),{bustCache:!0})),[s,o]);return(0,B.useEffect)((()=>{n&&void 0===p&&h(!r&&(!o&&!s||Number(o||s)===Number(n)))}),[p,r,n,s,o]),(0,B.useEffect)((()=>{!l&&void 0!==p&&null!=a&&a.includes(String(p?n:o))&&d(a)}),[l,p,n,a,o]),(0,B.useEffect)((()=>{void 0===c&&void 0!==p&&(p&&!t?u(v):p||null!=a&&a.includes(String(o))?u(null):u(b))}),[b,v,c,t,p,a,o]),(0,B.useEffect)((()=>{(p&&!1===t&&c||r&&!o)&&y(!0)}),[c,t,p,r,o]),(0,B.useEffect)((()=>{f(!(!t||!p||e||i===Pe.eO.NewFavorites))}),[e,t,p,i]),{correctSlug:l,getStationInfo:c,isActiveUser:p,needStationInfo:!!c,needsToNameStation:m,showHowToPage:g}}({favoritesNamed:k,hasMFR:O,isAnonymous:T,modalId:x,profileId:R,seedId:c,slug:v,urlSlugId:C});(0,B.useEffect)((()=>{W&&(window.location=`${j}/content/how-to-create-the-most-awesome-radio-station-ever-with-my-favorites-radio/?cmp=ihr-favorites-noteligible`)}),[W,j]),(0,B.useEffect)((()=>{V&&s((0,he.h7)({context:null,id:Pe.eO.NewFavorites}))}),[s,V,P]),(0,B.useEffect)((()=>{D&&s(null==H?void 0:H())}),[s,H,D]),(0,B.useEffect)((()=>{$&&s((0,Ue.c4)({path:`/favorites/${$}/`,replace:!0}))}),[$,s]);const J=z?(0,p.tZ)(Ie,{stationName:N}):null,ee={dimensions:u.I.FAVORITES,hideDescription:!0,seedId:c,seedType:_.bV.FAVORITES,stationName:N,url:P};return c?(0,p.BX)(p.HY,{children:[(0,p.tZ)(y,{name:Z,seedId:c}),(0,p.tZ)(G,{isMFR:z}),(0,p.BX)(Q.ZP,{dataTest:Q.n3.Favorites,hasHero:!0,heading:J,social:ee,title:N,children:[(0,p.tZ)(Oe.Z,{type:"top",children:(0,p.tZ)(q.Z,{color:e=>e.gray.medium,children:z||!R?o("Welcome to Your Favorites Radio, a personalized station containing your favorite songs and artists. The more you thumb up and save stations on iHeart, the better your listening experience will be."):o("Listen to {title}. Thumb up songs to add them to your own Your Favorites Radio station. Find it under My Stations.",{title:N})})}),(0,p.tZ)(ke.Z,{header:o("Featured Artists On This Station"),children:(0,p.tZ)(xe.Z,{tilesInRow:3,children:null==l?void 0:l.map((({name:e,artistId:t})=>{const r=`/artist/${(0,Ae.lV)(e)}-${t}/`;return(0,p.tZ)(Te.Z,{isRoundImage:!0,subTitle:(0,p.tZ)(n.Z,{artistId:t},`featuring|${t}`),tilesInRow:3,title:e,url:r,children:(0,p.BX)(Y.Z,{css:Be,to:r,children:[(0,p.tZ)(K.Z,{children:(0,p.tZ)(Me,{className:"play",deferPlay:!0,playedFrom:F.Z.PROF_FAVORITES_MAIN_ARTISTS,seedId:t,stationId:t,stationType:_.bV.ARTIST})}),(0,p.tZ)(i.Z,{alt:e,aspectRatio:1,height:E.ul,id:t,type:_.bV.ARTIST,width:E.ul})]})},`myFavorites|${t}`)}))})})]})]}):null}},85331:(e,t,r)=>{var i=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},u=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),n(t,[{key:"render",value:function(){var e=this.props,r=e.className,n=e.component,s=e.svg,o=e.fill,d=e.width,u=e.accessibilityLabel,p=e.accessibilityDesc,h=e.classSuffix,m=e.cleanupExceptions,f=function(e,t){var r={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}(e,["className","component","svg","fill","width","accessibilityLabel","accessibilityDesc","classSuffix","cleanupExceptions"]),g=this.props,y=g.cleanup,v=g.height;(!0===y||0===y.length&&m.length>0)&&(y=Object.keys(c)),y=y.filter((function(e){return!(m.indexOf(e)>-1)})),d&&void 0===v&&(v=d),delete f.cleanup,delete f.height;var b,Z,S,w=(0,l.default)((S=r,(Z=r)in(b={SVGInline:!0,"SVGInline--cleaned":y.length})?Object.defineProperty(b,Z,{value:S,enumerable:!0,configurable:!0,writable:!0}):b[Z]=S,b)),I=w.split(" ").join(h+" ")+h,k=t.cleanupSvg(s,y).replace(//.exec(k)).index+O[0].length;k=k.substr(0,T)+""+p+""+k.substr(T)}if(u){var x=(O=O||//.exec(k)).index+O[0].length-1,P="SVGInline-"+t.idCount+++"-title";k=k.substr(0,x)+' role="img" aria-labelledby="'+P+'"'+k.substr(x,1)+''+u+""+k.substr(x+1)}return a.default.createElement(n,i({},f,{className:w,dangerouslySetInnerHTML:{__html:k}}))}}]),t}(s.Component);u.propTypes={className:o.default.string,classSuffix:o.default.string,component:o.default.oneOfType([o.default.string,o.default.func]),svg:o.default.string.isRequired,fill:o.default.string,cleanup:o.default.oneOfType([o.default.bool,o.default.array]),cleanupExceptions:o.default.array,width:o.default.string,height:o.default.string,accessibilityLabel:o.default.string,accessibilityDesc:o.default.string},u.defaultProps={component:"span",classSuffix:"-svg",cleanup:[],cleanupExceptions:[]},u.idCount=0,u.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=u}}]); //# sourceMappingURL=Favorites.www.js.map