2 lines
8.7 KiB
JavaScript
2 lines
8.7 KiB
JavaScript
|
"use strict";(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[3706],{37120:(e,i,r)=>{r.d(i,{Z:()=>t});var s=r(24952),n=r(96768),a=r(4637);const t=({name:e,uri:i,images:r,isHero:t,testId:o,description:d,index:u,requestId:c,color:l})=>(0,a.jsx)(s.C,{index:u,featureIdentifier:"artist_concerts",headerText:e,uri:i,isPlayable:!1,renderCardImage:()=>(0,a.jsx)(n.x,{isHero:t,images:r,color:l}),renderSubHeaderContent:()=>(0,a.jsx)("span",{children:d||""}),testId:o,requestId:c})},84871:(e,i,r)=>{r.d(i,{q:()=>H});var s=r(50346),n=r(22548),a=r(24952),t=r(96768),o=r(20920),d=r(88794),u=r(4637);const c=({name:e="",uri:i="",images:r=[],isHero:s,onClick:n,testId:c,index:l})=>s?(0,u.jsx)(o.Z,{featureIdentifier:"unknown",index:l,onClick:n,headerText:e,uri:i,isPlayable:!1,renderCardImage:()=>(0,u.jsx)(t.x,{isHero:s,images:r}),renderSubHeaderContent:()=>(0,u.jsx)(d.k,{}),testId:c}):(0,u.jsx)(a.C,{index:l,featureIdentifier:"unknown",onClick:n,headerText:e,uri:i,isPlayable:!1,renderCardImage:()=>(0,u.jsx)(t.x,{isHero:s,images:r}),renderSubHeaderContent:()=>(0,u.jsx)("span",{}),testId:c});var l=r(40408),m=r(12741),x=r(28604),g=r(79823),I=r(37120),p=r(78677),C=r(87956),h=r(75523),j=r(3511),f=r(36876),y=r(58089),b=r(16500),k=r(22981);const H=({entity:e,index:i,testId:r,isHero:a=!1})=>{const t=((0,s.EC)(e.uri)||{}).type,o={testId:r,isHero:a,index:i,sharingInfo:e.sharingInfo};if(("string"==typeof e.uri||e.uri instanceof String)&&e.uri.startsWith("spotify:merch:"))return(0,u.jsx)(C.T,{...o,name:e.name,uri:e.uri,href:e.href,images:e.images,description:e.description});if(("string"==typeof e.uri||e.uri instanceof String)&&e.uri.startsWith("spotify:artist:")&&e.uri.endsWith(":concerts"))return(0,u.jsx)(I.Z,{...o,name:e.name,uri:e.uri,images:e.images,description:e.description});switch(t){case s.JM.ALBUM:case s.JM.COLLECTION_ALBUM:{const i=e;return(0,u.jsx)(x.r,{...o,name:i.name,uri:i.uri,images:i.images,artists:i.artists})}case s.JM.ARTIST:{const i=e;return(0,u.jsx)(g.I,{...o,name:i.name,uri:i.uri,images:i.images})}case s.JM.EPISODE:{const i=e;return(0,u.jsx)(p.B,{...o,name:i.name,uri:i.uri,images:i.images,showImages:i.show?.images||[],durationMilliseconds:i.duration_ms,releaseDate:i.release_date,resume_point:i.resume_point,description:i.description,isExplicit:i.explicit,is19PlusOnly:!!i.tags?.includes("MOGEF-19+")})}case s.JM.PLAYLIST:case s.JM.PLAYLIST_V2:{const i=e,r=i.owner?.display_name||e.owner?.displayName||"";return(0,u.jsx)(h.Z,{...o,name:i.name,uri:i.uri,images:i.images,description:i.description,authorName:r})}case s.JM.PROFILE:return(0,u.jsx)(j.P,{...o,name:e.name,uri:e.uri,images:e.images});case s.JM.SHOW:{const i=e;return(0,u.jsx)(y._,{...o,name:i.name,uri:i.uri,images:i.images,publisher:i.publisher,mediaType:{audio:m.E.AUDIO,video:m.E.VIDEO,mixed:m.E.MIXED}[i.media_type]??m.E.AUDIO})}case s.JM.APPLICATION:return(0,u.jsx)(n.s,{...o,name:e.name,uri:e.uri,images:e.images,description:e.description});case s.JM.RADIO:return(0,u.jsx)(f.I,{testId:r,index:i,name:e.name,uri:e.uri,images:e.images});case s.JM.TRACK:{const i=e;return(0,u.jsx)(b.G,{...o,name:i.name,uri:i.uri,images:i.album?.images||[],artists:i.artists,album:i.album,isExplicit:i.explicit,is19PlusOnly:i.tags?.includes("MOGEF-19+")})}case s.JM.COLLECTION:return e.uri.endsWith("your-episodes")?(0,u.jsx)(k.T,{index:i}):(0,u.jsx)(l.p,{index:i});default:return console.warn("Rendering a generic Card for unknown type:",t),(0,u.jsx)(c,{...o,name:e.name,uri:e.uri,images:e.images})}}},22548:(e,i,r)=>{r.d(i,{s:()=>u});var s=r(3802),n=r(24952),a=r(96768),t=r(20920),o=r(88794),d=r(4637);const u=({name:e,uri:i,images:r,isHero:u,onClick:c,testId:l,description:m,index:x,requestId:g,color:I})=>u?(0,d.jsx)(t.Z,{featureIdentifier:"genre",index:x,onClick:c,headerText:e,uri:i,isPlayable:!1,renderCardImage:()=>(0,d.jsx)(a.x,{isHero:u,images:r,color:I}),renderSubHeaderContent:()=>(0,d.jsx)(o.k,{children:m||s.ag.get("card.tag.genre")}),testId:l,requestId:g}):(0,d.jsx)(n.C,{index:x,featureIdentifier:"genre",onClick:c,headerText:e,uri:i,i
|
||
|
//# sourceMappingURL=3706.js.map
|