dotfiles/.config/spicetify/Extracted/Raw/xpui/xpui-routes-view.js

2 lines
12 KiB
JavaScript
Raw Normal View History

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