"use strict";(this.__LOADABLE_LOADED_CHUNKS__=this.__LOADABLE_LOADED_CHUNKS__||[]).push([[8607],{26184:(e,t,l)=>{l.d(t,{Z:()=>S});var o=l(35887),i=l(74763),n=l(97216),d=l(93740),s=l(90758),r=l(96092),a=l(74135),c=l(3011),h=l(24586),Z=l(23653),y=l(96832),u=l(71130),m=l(34853);var p=l(32034),v=l(98383),w=l(26621),I=l(11129);const S=(0,o.Z)((0,u.connect)((0,p.zB)({isAnonymous:I.Ld}),{deleteFromListenHistory:v.Vm,toggleStationSaved:v.nS,deleteRecByTypeAndId:w.P1}))((function({artist:e,deleteRecByTypeAndId:t,deleteFromListenHistory:l,followed:o,isAnonymous:p,recentlyPlayed:v,tileType:w,toggleStationSaved:I}){const{seedId:S,seedType:T,stationId:f,name:C}=e,P=(0,u.useDispatch)(),b=(0,s.Z)(),g=(0,y.useCallback)((()=>{I(T,S),p||P((0,h.j_)({title:b("Saved {name} to Your Library",{name:C}),icon:r.G.HeartFilled}))}),[T,S,C]),D=(0,y.useCallback)((()=>{I(T,S),p||P((0,h.j_)({title:b("Removed {name} from Your Library",{name:C}),icon:r.G.Deleted}))}),[T,S,C]);return(0,m.tZ)(d.Z,{"data-test":"artist-tile-dropdown",children:(0,m.tZ)(a.v,{children:(0,m.BX)(a.v.List,{children:[(0,m.tZ)(n.Z,{shouldShow:!o,children:(0,m.tZ)(a.v.Item,{children:(0,m.tZ)(i.Z,{onClick:g,title:b("Follow Artist"),children:b("Follow Artist")},`save|${S}`)})}),(0,m.tZ)(n.Z,{shouldShow:o,children:(0,m.tZ)(a.v.Item,{children:(0,m.tZ)(i.Z,{dataTest:"remove-artist",onClick:D,title:b("Remove Artist"),children:b("Remove Artist")},`remove|${S}`)})}),(0,m.tZ)(n.Z,{shouldShow:w===c.q2.RECOMMENDATION,children:(0,m.tZ)(a.v.Item,{children:(0,m.tZ)(i.Z,{onClick:()=>{t(T,S)},title:b("Not for Me"),children:b("Not for Me")},`notForMe|${S}`)})}),(0,m.tZ)(n.Z,{shouldShow:v,children:(0,m.tZ)(a.v.Item,{children:(0,m.tZ)(i.Z,{onClick:()=>l({seedId:S,stationId:f,stationType:Z.bV.ARTIST}),title:b("Delete"),children:b("Delete")},`delete|${S}`)})})]})})})}))},48014:(e,t,l)=>{l.d(t,{Z:()=>S});var o=l(74763),i=l(97216),n=l(93740),d=l(90758),s=l(96092),r=l(74135),a=l(3011),c=l(24586),h=l(23653),Z=l(96832),y=l(71130),u=l(34853);var m=l(32034),p=l(98383),v=l(26621),w=l(11129),I=l(74300);const S=(0,y.connect)((0,m.zB)({isAnonymous:w.Ld,stations:I.Ep}),{deleteFromListenHistory:p.Vm,toggleStationSaved:p.nS,deleteRecByTypeAndId:v.P1})((function({deleteRecByTypeAndId:e,deleteFromListenHistory:t,isAnonymous:l,name:m,recentlyPlayed:p,seedId:v,seedType:w,stations:I,tileType:S,toggleStationSaved:T}){const f=(0,y.useDispatch)(),C=(0,d.Z)(),P=(0,Z.useCallback)((()=>{T(w,v),l||f((0,c.j_)({title:C("Saved {name} to Your Library",{name:m}),icon:s.G.HeartFilled}))}),[]),b=(0,Z.useCallback)((()=>{T(w,v),l||f((0,c.j_)({title:C("Removed {name} from Your Library",{name:m}),icon:s.G.Deleted}))}),[]),g=Object.keys(I).filter((e=>I[e].favorite));return(0,u.tZ)(n.Z,{"data-test":"station-tile-dropdown",children:(0,u.tZ)(r.v,{children:(0,u.BX)(r.v.List,{children:[(0,u.tZ)(i.Z,{shouldShow:!g.includes(String(v)),children:(0,u.tZ)(r.v.Item,{children:(0,u.tZ)(o.Z,{dataTest:"save-station",onClick:P,title:C("Follow station"),children:C("Follow station")},`save|${v}`)})}),(0,u.tZ)(i.Z,{shouldShow:g.includes(String(v)),children:(0,u.tZ)(r.v.Item,{children:(0,u.tZ)(o.Z,{dataTest:"remove-station",onClick:b,title:C("Unfollow station"),children:C("Unfollow station")},`remove|${v}`)})}),(0,u.tZ)(i.Z,{shouldShow:S===a.q2.RECOMMENDATION,children:(0,u.tZ)(r.v.Item,{children:(0,u.tZ)(o.Z,{onClick:()=>{e(w,v)},title:C("Not for Me"),children:C("Not for Me")},`notForMe|${v}`)})}),(0,u.tZ)(i.Z,{shouldShow:p,children:(0,u.tZ)(r.v.Item,{children:(0,u.tZ)(o.Z,{onClick:()=>t({seedId:v,stationType:h.bV.LIVE}),title:C("Delete"),children:C("Delete")},`remove-${v}`)})})]})})})}))},15024:(e,t,l)=>{l.d(t,{Z:()=>g});var o=l(35887),i=l(74763),n=l(88413),d=l(97216),s=l(93740),r=l(12024),a=l(74135),c=l(96832),h=l(3011),Z=l(23653),y=l(34853);class u extends c.PureComponent{constructor(...e){super(...e),this.onRemovePlaylist=()=>{const{name:e,openRemovePlaylistModal:t,playlistId:l,userId:o}=this.props;t({playlist:{id:l,name:e},userId:o})}}onToggleFollowed(e){const{updateFollowPlaylists:t,id:l,showPlaylistFollowedGrowl:o}=this.props,{playlistId:i,userId:n}=(0,r.HE)(l);t({followed:e,playlistId:i,playlistUserId:n,seedId:l}),o({isFollowed:e})}onDismissRec(){const{deleteRecByTypeAndId:e,recType:t,seedId:l,seedType:o}=this.props;e(o,l,t)}getOptions(){const{curated:e,deletable:t,deleteFromListenHistory:l,followed:o,id:d,recentlyPlayed:s,seedId:r,tracks:c,translate:u,tileType:m,url:p,writeable:v,showPlaylistButtons:w}=this.props,I=[];return(null==c?void 0:c.length)>0&&v&&I.push((0,y.tZ)(a.v.Item,{children:(0,y.tZ)(n.Z.Consumer,{children:({update:e})=>(0,y.tZ)(i.Z,{dataTest:"edit-playlist",onClick:()=>(e(!0),!0),title:u("Edit Playlist"),to:p,children:u("Edit Playlist")})},`edit-${d}`)},"menu-item-edit-playlist")),s&&I.push((0,y.tZ)(a.v.Item,{children:(0,y.tZ)(i.Z,{onClick:()=>l({seedId:d,stationId:d,stationType:Z.bV.COLLECTION}),title:u("Delete"),children:u("Delete")},`remove|${d}`)},"menu-item-remove-playlist")),t&&!e&&m&&I.push((0,y.tZ)(a.v.Item,{children:(0,y.tZ)(i.Z,{dataTest:"delete-playlist",onClick:this.onRemovePlaylist,title:u("Delete Playlist"),children:u("Delete Playlist")},`delete|${d}`)},"menu-item-delete-playlist")),o&&e&&I.push((0,y.tZ)(a.v.Item,{children:(0,y.tZ)(i.Z,{onClick:()=>this.onToggleFollowed(!1),title:u("Unfollow Playlist"),children:u("Unfollow Playlist")},`unfollow|${d}`)},"menu-item-un-follow-playlist")),!o&&e&&w&&I.push((0,y.tZ)(a.v.Item,{children:(0,y.tZ)(i.Z,{onClick:()=>this.onToggleFollowed(!0),title:u("Follow Playlist"),children:u("Follow Playlist")},`follow|${d}`)},"menu-item-follow-playlist")),m===h.q2.RECOMMENDATION&&I.push((0,y.tZ)(a.v.Item,{children:(0,y.tZ)(i.Z,{onClick:()=>this.onDismissRec(),title:u("Not for Me"),children:u("Not for Me")},`notForMe|${r}`)},"menu-item-not-for-me-playlist")),I}render(){const e=this.getOptions();return(0,y.tZ)(d.Z,{shouldShow:e.length>0,children:(0,y.tZ)(s.Z,{"data-test":"station-tile-dropdown",children:(0,y.tZ)(a.v,{children:(0,y.tZ)(a.v.List,{children:e})})})})}}const m=u;var p=l(71130),v=l(32034),w=l(98383),I=l(26621),S=l(89781),T=l(67088),f=l(3849),C=l(24586),P=l(55017),b=l(31401);const g=(0,o.Z)((0,f.NC)("translate"),(0,p.connect)((0,v.zB)({canEditPlaylist:S.Vy,showPlaylistButtons:T.oL}),{deleteFromListenHistory:w.Vm,deleteRecByTypeAndId:I.P1,openRemovePlaylistModal:C.jB,removeMyMusicCollection:P.vD,showPlaylistFollowedGrowl:C.KB,updateFollowPlaylists:b.TE}))(m)},30160:(e,t,l)=>{l.d(t,{Z:()=>S});var o=l(35887),i=l(74763),n=l(97216),d=l(93740),s=l(1851),r=l(90758),a=l(66480),c=l(11129),h=l(96092),Z=l(74135),y=l(24586),u=l(23653),m=l(78356),p=l(96832),v=l(71130),w=l(34853);var I=l(98383);const S=(0,o.Z)((0,v.connect)(null,{deleteFromListenHistory:I.Vm,toggleStationSaved:I.nS}))((function({deleteFromListenHistory:e,followed:t,recentlyPlayed:l,seedId:o,title:I,toggleStationSaved:S}){const T=(0,v.useDispatch)(),f=(0,r.Z)(),C=(0,s.Z)(),P=(0,v.useSelector)(c._o),b=(0,p.useCallback)((()=>{P?T((0,y.it)({context:"reg-gate"})):(T((0,m.Ly)({followed:!t,seedId:o})),C.track(t?a.z.UnfollowPodcast:a.z.FollowPodcast,{podcast:I,podcastId:o}),C.track(a.z.Subscribe,{id:o,name:I,type:u.bV.PODCAST}),T((0,y.j_)({title:f("Followed {title}",{title:I}),icon:h.G.HeartFilled})))}),[o,I]),g=(0,p.useCallback)((()=>{S(u.bV.PODCAST,o),T((0,y.j_)({title:f("Unfollowed {title}",{title:I}),icon:h.G.Deleted}))}),[o,I]);return(0,w.tZ)(d.Z,{"data-test":"podcast-tile-dropdown",children:(0,w.tZ)(Z.v,{children:(0,w.BX)(Z.v.List,{children:[(0,w.tZ)(n.Z,{shouldShow:!t,children:(0,w.tZ)(Z.v.Item,{children:(0,w.tZ)(i.Z,{dataTest:"podcast-follow-button",onClick:b,title:f("Follow Podcast"),children:f("Follow Podcast")},`follow-${o}`)})}),(0,w.tZ)(n.Z,{shouldShow:t,children:(0,w.tZ)(Z.v.Item,{children:(0,w.tZ)(i.Z,{dataTest:"podcast-unfollow-button",onClick:g,title:f("Unfollow Podcast"),children:f("Unfollow Podcast")},`unFollow-${o}`)})}),(0,w.tZ)(n.Z,{shouldShow:l,children:(0,w.tZ)(Z.v.Item,{children:(0,w.tZ)(i.Z,{onClick:()=>e({seedId:o,stationType:u.bV.PODCAST}),title:f("Delete"),children:f("Delete")},`remove-${o}`)})})]})})})}))},70841:(e,t,l)=>{l.d(t,{Z:()=>Z});var o=l(26184),i=l(48014),n=l(15024),d=l(83807),s=l(30160),r=l(12024),a=l(3011),c=l(23653),h=l(34853);function Z(e,t,l,Z){const{author:y,curated:u,deletable:m,favorite:p,name:v,ownerId:w,playlistId:I,recType:S,responseType:T,seedId:f,seedType:C,tileType:P,tracks:b,url:g,writeable:D}=l;if((0,r.iG)(C)){const l=String(t)===String(w);return(0,h.tZ)(n.Z,{canEditPlaylist:T!==a.q2.CURATED&&C===c.bV.COLLECTION,curated:u||T===a.q2.CURATED,deletable:m&&"iHeartRadio"!==y,followed:e,id:f,name:v,playlistId:I,recentlyPlayed:Z,recType:S,tileType:I===d.Z.New4U?null:P,tracks:b||[],url:g,userId:t,writeable:D&&l},`dropdown-${I}`)}return C===c.bV.ARTIST?(0,h.tZ)(o.Z,{artist:l,followed:p||e,recentlyPlayed:Z,tileType:P},`artist-${f}`):C===c.bV.LIVE?(0,h.tZ)(i.Z,{name:v,recentlyPlayed:Z,seedId:f,seedType:C,tileType:P},`station-${f}`):C===c.bV.PODCAST?(0,h.tZ)(s.Z,{followed:p||e,recentlyPlayed:Z,seedId:f,title:v},`dropdown-${f}`):null}},10881:(e,t,l)=>{l.d(t,{Z:()=>h});var o=l(43012),i=l(12024),n=l(34853);const d=["width","blurSigma","src","mediaServerUrl","siteUrl"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[l]=e[l]);return i}(e,d);const Z=(0,i.p9)({mediaServerUrl:a,siteUrl:c},{blurSigma:l,width:t},r),y=(0,i.WP)({mediaServerUrl:a,siteUrl:c},{blurSigma:l,width:t});return(0,n.tZ)(o.Z,s({defaultSrc:y,src:Z},h))}))},1851:(e,t,l)=>{l.d(t,{Z:()=>n});var o=l(8126),i=l(96832);const n=()=>(0,i.useContext)(o.Z)}}]); //# sourceMappingURL=8607.www.js.map