"use strict";(this.__LOADABLE_LOADED_CHUNKS__=this.__LOADABLE_LOADED_CHUNKS__||[]).push([[8335],{30160:(t,e,o)=>{o.d(e,{Z:()=>y});var n=o(35887),r=o(74763),i=o(97216),a=o(93740),l=o(1851),c=o(90758),u=o(66480),s=o(11129),f=o(96092),d=o(74135),h=o(24586),g=o(23653),p=o(78356),v=o(96832),m=o(71130),b=o(34853);var w=o(98383);const y=(0,n.Z)((0,m.connect)(null,{deleteFromListenHistory:w.Vm,toggleStationSaved:w.nS}))((function({deleteFromListenHistory:t,followed:e,recentlyPlayed:o,seedId:n,title:w,toggleStationSaved:y}){const Z=(0,m.useDispatch)(),C=(0,c.Z)(),x=(0,l.Z)(),S=(0,m.useSelector)(s._o),_=(0,v.useCallback)((()=>{S?Z((0,h.it)({context:"reg-gate"})):(Z((0,p.Ly)({followed:!e,seedId:n})),x.track(e?u.z.UnfollowPodcast:u.z.FollowPodcast,{podcast:w,podcastId:n}),x.track(u.z.Subscribe,{id:n,name:w,type:g.bV.PODCAST}),Z((0,h.j_)({title:C("Followed {title}",{title:w}),icon:f.G.HeartFilled})))}),[n,w]),k=(0,v.useCallback)((()=>{y(g.bV.PODCAST,n),Z((0,h.j_)({title:C("Unfollowed {title}",{title:w}),icon:f.G.Deleted}))}),[n,w]);return(0,b.tZ)(a.Z,{"data-test":"podcast-tile-dropdown",children:(0,b.tZ)(d.v,{children:(0,b.BX)(d.v.List,{children:[(0,b.tZ)(i.Z,{shouldShow:!e,children:(0,b.tZ)(d.v.Item,{children:(0,b.tZ)(r.Z,{dataTest:"podcast-follow-button",onClick:_,title:C("Follow Podcast"),children:C("Follow Podcast")},`follow-${n}`)})}),(0,b.tZ)(i.Z,{shouldShow:e,children:(0,b.tZ)(d.v.Item,{children:(0,b.tZ)(r.Z,{dataTest:"podcast-unfollow-button",onClick:k,title:C("Unfollow Podcast"),children:C("Unfollow Podcast")},`unFollow-${n}`)})}),(0,b.tZ)(i.Z,{shouldShow:o,children:(0,b.tZ)(d.v.Item,{children:(0,b.tZ)(r.Z,{onClick:()=>t({seedId:n,stationType:g.bV.PODCAST}),title:C("Delete"),children:C("Delete")},`remove-${n}`)})})]})})})}))},33876:(t,e,o)=>{function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;el});const r=(0,o(46255).Z)("div",{target:"evwyw6w0"})((({applyMobileStyles:t,hideCount:e=!1,theme:o})=>n({background:o.colors.blueNew[600],borderRadius:"4px",color:o.colors.white.primary,fontSize:"1.5rem",fontWeight:o.fonts.weight.medium,padding:"0 .5rem",position:"absolute",right:".5rem",top:".45rem",zIndex:o.zIndex.feedback},t?{marginBottom:".25rem",right:"2.5rem",top:"inherit"}:{},e?{display:"inline-block",fontSize:"1.25rem",marginRight:"1rem",position:"initial"}:{})),"");var i=o(90758),a=o(34853);const l=({applyMobileStyles:t=!1,hideCount:e=!1,newEpisodeCount:o})=>{const n=(0,i.Z)();return o?(0,a.BX)(r,{applyMobileStyles:t,hideCount:e,children:[e?"":o," ",n("NEW")]}):null}},50447:(t,e,o)=>{o.d(e,{Z:()=>s});var n=o(9969),r=o(30160),i=o(74763),a=o(33876),l=o(37829),c=o(46699),u=o(34853);const s=function({aspectRatio:t=1,displayLimit:e,hasBottomMargin:o,imgWidth:s,itemSelectedLocation:f,podcasts:d=[],tilesInRow:h=4}){if(!d.length)return null;const g=d.map((e=>{const{title:l,description:d,imgUrl:g,url:p,followed:v,seedType:m,seedId:b,newEpisodeCount:w}=e,y=(0,u.tZ)(c.Z,{lines:2,children:d}),Z={id:b,location:f,name:l,type:m};return{children:(0,u.BX)(i.Z,{itemSelected:Z,to:p,children:[(0,u.tZ)(a.Z,{newEpisodeCount:w}),(0,u.tZ)(n.Z,{alt:l,aspectRatio:t,height:s,id:b,src:g,type:m,width:s})]}),dropdown:(0,u.tZ)(r.Z,{followed:v,seedId:b,title:l},`dropdown-${b}`),hasBottomMargin:o,itemSelected:Z,key:b,subTitle:y,tilesInRow:h,title:l,titleSingleLine:!0,url:p}}));return(0,u.tZ)(l.Z,{aspectRatio:t,displayLimit:e,subtitleLines:2,tilesData:g,tilesInRow:h,titleLines:1})}},74135:(t,e,o)=>{o.d(e,{v:()=>n.Z});var n=o(99883);o(38096)},1851:(t,e,o)=>{o.d(e,{Z:()=>i});var n=o(8126),r=o(96832);const i=()=>(0,r.useContext)(n.Z)},7015:(t,e,o)=>{o.d(e,{Z:()=>c});var n=o(46423);const r=o(63042).Z;function i(t,e){let o=[0,0,0];if(t)try{const n=e.getColor(t,5);n&&(o=function(t){const e=[[0,0,0],[60,162,221],[96,186,198],[113,114,119],[120,210,151],[160,113,220],[226,44,58],[241,117,195],[252,158,101],[253,211,111]];let o,n=1/0,r=e[0];for(let i=1;i[0,0,0]},function(){return[0,0,0]}]};var l=o(96832);const c=function(t=50){const[e,o]=(0,l.useMemo)(a,[]),[n,r]=(0,l.useState)({background:["black"]});return[(0,l.useCallback)((n=>{const i=o(n.currentTarget,e),a={background:[`rgb(${i[0]},${i[1]},${i[2]})`,`linear-gradient(rgba(${i[0]},${i[1]},${i[2]}, 0.5), transparent ${t}%)`]};r(a)}),[e,o,t]),n]}},36304:(t,e,o)=>{o.d(e,{Z:()=>c});var n=o(46255),r=o(96596),i=o(96832);const a=["as"],l=t=>{let{as:e="h1"}=t,o=function(t,e){if(null==t)return{};var o,n,r={},i=Object.keys(t);for(n=0;n=0||(r[o]=t[o]);return r}(t,a);return i.createElement(e,(0,r.Z)(o,["color"]))},c=(0,n.Z)(l,{target:"et1iy6n0"})((({color:t,theme:e})=>({color:"function"==typeof t?t(e.colors):e.colors.gray[600],fontSize:e.fonts.size[40],fontWeight:e.fonts.weight.bold,letterSpacing:"-0.1rem",lineHeight:e.fonts.lineHeight[46],marginBottom:"1rem",transition:"all 300ms ease-in-out"})),"")},85462:(t,e,o)=>{o.d(e,{s:()=>n});const n={"16:9":[800,450]}},34058:(t,e,o)=>{o.d(e,{Z:()=>n});const n=(0,o(46255).Z)("div",{target:"e1gio7pq0"})((({theme:t})=>({color:t.colors.gray.medium,fontSize:"1.3rem",letterSpacing:"0.1rem",lineHeight:"1.38rem",marginBottom:"1rem",textTransform:"uppercase"})),"")},63042:(t,e,o)=>{if(o.d(e,{Z:()=>l}),!n)var n={map:function(t,e){var o={};return e?t.map((function(t,n){return o.index=n,e.call(o,t)})):t.slice()},naturalOrder:function(t,e){return te?1:0},sum:function(t,e){var o={};return t.reduce(e?function(t,n,r){return o.index=r,t+e.call(o,n)}:function(t,e){return t+e},0)},max:function(t,e){return Math.max.apply(null,e?n.map(t,e):t)}};var r=function(){var t=5,e=8-t;function o(e,o,n){return(e<<2*t)+(o<f/2){for(r=e.copy(),i=e.copy(),a=(o=l-e[c])<=(n=e[u]-l)?Math.min(e[u]-1,~~(l+n/2)):Math.max(e[c],~~(l-1-o/2));!d[a];)a++;for(s=h[a];!s&&d[a-1];)s=h[--a];return r[u]=a,i[c]=r[u]+1,[r,i]}}(a==r?"r":a==i?"g":"b")}}return i.prototype={volume:function(t){var e=this;return e._volume&&!t||(e._volume=(e.r2-e.r1+1)*(e.g2-e.g1+1)*(e.b2-e.b1+1)),e._volume},count:function(t){var e=this,n=e.histo;if(!e._count_set||t){var r,i,a,l=0;for(r=e.r1;r<=e.r2;r++)for(i=e.g1;i<=e.g2;i++)for(a=e.b1;a<=e.b2;a++)l+=n[o(r,i,a)]||0;e._count=l,e._count_set=!0}return e._count},copy:function(){var t=this;return new i(t.r1,t.r2,t.g1,t.g2,t.b1,t.b2,t.histo)},avg:function(e){var n=this,r=n.histo;if(!n._avg||e){var i,a,l,c,u=0,s=1<<8-t,f=0,d=0,h=0;for(a=n.r1;a<=n.r2;a++)for(l=n.g1;l<=n.g2;l++)for(c=n.b1;c<=n.b2;c++)u+=i=r[o(a,l,c)]||0,f+=i*(a+.5)*s,d+=i*(l+.5)*s,h+=i*(c+.5)*s;n._avg=u?[~~(f/u),~~(d/u),~~(h/u)]:[~~(s*(n.r1+n.r2+1)/2),~~(s*(n.g1+n.g2+1)/2),~~(s*(n.b1+n.b2+1)/2)]}return n._avg},contains:function(t){var o=this,n=t[0]>>e;return gval=t[1]>>e,bval=t[2]>>e,n>=o.r1&&n<=o.r2&&gval>=o.g1&&gval<=o.g2&&bval>=o.b1&&bval<=o.b2}},a.prototype={push:function(t){this.vboxes.push({vbox:t,color:t.avg()})},palette:function(){return this.vboxes.map((function(t){return t.color}))},size:function(){return this.vboxes.size()},map:function(t){for(var e=this.vboxes,o=0;o251&&r[1]>251&&r[2]>251&&(t[o].color=[255,255,255])}},{quantize:function(c,u){if(!c.length||u<2||u>256)return!1;var s=function(n){var r,i=new Array(1<<3*t);return n.forEach((function(t){r=o(t[0]>>e,t[1]>>e,t[2]>>e),i[r]=(i[r]||0)+1})),i}(c);s.forEach((function(){}));var f=function(t,o){var n,r,a,l=1e6,c=0,u=1e6,s=0,f=1e6,d=0;return t.forEach((function(t){(n=t[0]>>e)c&&(c=n),(r=t[1]>>e)s&&(s=r),(a=t[2]>>e)d&&(d=a)})),new i(l,c,u,s,f,d,o)}(c,s),d=new r((function(t,e){return n.naturalOrder(t.count(),e.count())}));function h(t,e){for(var o,n=t.size(),r=0;r<1e3;){if(n>=e)return;if(r++>1e3)return;if((o=t.pop()).count()){var i=l(s,o),a=i[0],c=i[1];if(!a)return;t.push(a),c&&(t.push(c),n++)}else t.push(o),r++}}d.push(f),h(d,.75*u);for(var g=new r((function(t,e){return n.naturalOrder(t.count()*t.volume(),e.count()*e.volume())}));d.size();)g.push(d.pop());h(g,u);for(var p=new a;g.size();)p.push(g.pop());return p}}}().quantize,a=function(t){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.width=this.canvas.width=t.naturalWidth,this.height=this.canvas.height=t.naturalHeight,this.context.drawImage(t,0,0,this.width,this.height)};a.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height)};var l=function(){};l.prototype.getColor=function(t,e){return void 0===e&&(e=10),this.getPalette(t,5,e)[0]},l.prototype.getPalette=function(t,e,o){var n=function(t){var e=t.colorCount,o=t.quality;if(void 0!==e&&Number.isInteger(e)){if(1===e)throw new Error("colorCount should be between 2 and 20. To get one color, call getColor() instead of getPalette()");e=Math.max(e,2),e=Math.min(e,20)}else e=10;return(void 0===o||!Number.isInteger(o)||o<1)&&(o=10),{colorCount:e,quality:o}}({colorCount:e,quality:o}),i=new a(t),l=function(t,e,o){for(var n,r,i,a,l,c=t,u=[],s=0;s=125)&&(r>250&&i>250&&a>250||u.push([r,i,a]));return u}(i.getImageData().data,i.width*i.height,n.quality),c=r(l,n.colorCount);return c?c.palette():null},l.prototype.getColorFromUrl=function(t,e,o){var n=this,r=document.createElement("img");r.addEventListener("load",(function(){var i=n.getPalette(r,5,o);e(i[0],t)})),r.src=t},l.prototype.getImageData=function(t,e){var o=new XMLHttpRequest;o.open("GET",t,!0),o.responseType="arraybuffer",o.onload=function(){if(200==this.status){var t=new Uint8Array(this.response);i=t.length;for(var o=new Array(i),n=0;n