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

2 lines
26 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([[2342],{49630:(e,i,n)=>{n.d(i,{E:()=>d});var a=n(98340),t=n(43438),l=n(57559),s=n(4637);const d=({album:e,index:i,artistURI:n})=>(0,s.jsx)(a.ZP,{value:"card",index:i,children:(0,s.jsx)(l.i,{index:i,latest:!1,showType:!0,...(0,t.B$)(e,n,e.name)})})},68562:(e,i,n)=>{n.d(i,{R:()=>m});var a=n(3802),t=n(98340),l=n(73972),s=n(43438),d=n(49630),r=n(5488),o=n(4637);const m=({albums:e,artistName:i,artistId:n,artistUri:m,className:c})=>e?(0,o.jsx)(t.ZP,{value:"shelf/albums",children:(0,o.jsx)(r.P,{total:e.totalCount,title:a.ag.get("rich-page.popular-albums-by-artist",{artist:i}),seeAllUri:`${(0,s.GJ)(n)}:discography:${l.VZ.Album.toLowerCase()}`,seeAllLabel:a.ag.get("shelf.see-all"),alwaysShowSeeAll:!0,className:c,children:(0,s.Hr)(e.items).map(((e,i)=>(0,o.jsx)(d.E,{album:e,index:i,artistURI:m},e.uri)))})}):null},48687:(e,i,n)=>{n.d(i,{V:()=>o});var a=n(3802),t=n(98340),l=n(43438),s=n(79823),d=n(5488),r=n(4637);const o=({artistId:e,className:i,fansAlsoLike:n,title:o})=>(0,r.jsx)(t.ZP,{value:"shelf/fans-also-like",children:(0,r.jsx)(d.P,{total:n.length,title:o??a.ag.get("rich-page.fans-also-like"),seeAllUri:`${(0,l.GJ)(e)}:related`,className:i,children:n.map(((e,i)=>(0,r.jsx)(t.ZP,{value:"card",index:i,children:(0,r.jsx)(s.I,{index:i,uri:e.uri,name:e.profile.name,images:e.visuals.avatarImage?.sources||[]})},e.uri)))})})},30226:(e,i,n)=>{n.d(i,{j:()=>o});var a=n(59496),t=n(56162),l=n(3802),s=n(48607),d=n(29655),r=n(4637);const o=({artistName:e,artistUri:i,headerClassName:n,rowClassName:o,topTracks:m,topTracksTransformer:c,uri:u})=>{const k=(0,a.useMemo)((()=>m?.items.map((e=>c(e,u)))),[m?.items,c,u]),{usePlayContextItem:v}=(0,s.n)({uri:i},{featureIdentifier:"artist"});return k&&k.length>0?(0,r.jsxs)("div",{className:o,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(t.D,{variant:"mesto",children:l.ag.get("rich-page.popular-tracks")}),(0,r.jsx)(t.D,{as:"h2",variant:"canon",semanticColor:"textBase",className:n,children:e})]}),(0,r.jsx)(d.k,{nrTracks:k.length,initialTracks:k,usePlayContextItem:v})]}):null}},35021:(e,i,n)=>{n.d(i,{y:()=>m});var a=n(3802),t=n(98340),l=n(73972),s=n(43438),d=n(49630),r=n(5488),o=n(4637);const m=({artistId:e,artistName:i,artistUri:n,className:m,singles:c})=>c?(0,o.jsx)(t.ZP,{value:"shelf/singles-and-eps",children:(0,o.jsx)(r.P,{total:c.totalCount,title:a.ag.get("rich-page.popular-singles-and-eps-by-artist",{artist:i}),seeAllUri:`${(0,s.GJ)(e)}:discography:${l.VZ.Single.toLowerCase()}`,seeAllLabel:a.ag.get("shelf.see-all"),alwaysShowSeeAll:!0,className:m,children:(0,s.Hr)(c.items).map(((e,i)=>(0,o.jsx)(d.E,{album:e,index:i,artistURI:n},e.uri)))})}):null},58566:(e,i,n)=>{n.r(i),n.d(i,{default:()=>We});var a=n(59496),t=n(61740),l=n(89605),s=n(56162),d=n(16004),r=n(77675),o=n(36844),m=n(80546),c=n(3802),u=n(4270),k=n(14241),v=n(13655),g=n(35394),S=n(57559),p=n(88513),N=n(91703),h=n(41226),y=n(16743),x=n(73997),F=n(23627),j=n(44743),b=n(29335),f=n(36472),A=n(64320),I=n(4055),C=n(4637);const T=({children:e,content:i,onIntercept:n=(()=>{})})=>{const t=(0,I.g)();let l;try{l=a.Children.only(e)}catch(i){return(0,C.jsx)(C.Fragment,{children:e})}return t?(0,C.jsx)(A.Nt,{trigger:"click",action:"open",placement:"bottom",offset:[0,20],content:i,children:a.cloneElement(l,{onClick:n})}):(0,C.jsx)(C.Fragment,{children:e})};var U=n(30366),D=n(79475),P=n(96848),w=n(98340),R=n(95634),V=n(95663);const L="WHINADihyTCx2VFxwY8X",E=({title:e,description:i})=>{const n=(0,t.I0)(),l=(0,P.qT)(),d=(0,V.o)();return(0,a.useEffect)((()=>{d({intent:"open-upsell",type:"view"})}),[d]),(0,C.jsx)(A.yv,{children:(0,C.jsxs)("div",{className:L,children:[(0,C.jsx)(s.D,{as:"p",variant:"cello",children:e}),(0,C.jsx)(s.D,{as:"p",variant:"mesto",children:i}),(0,C.jsxs)("div",{children:[(0,C.jsx)(U.o,{onClick:()=>{d({intent:"close-upsell",type:"click"}),l({type:"close"})},children:c.ag.get("action-trigger.button.not-now")}),(0,C.jsx)(D.D,{onClick:()=>{d({intent:"login",type:"click"}),n((0,R.sX)())},children:c.ag.get("lo
//# sourceMappingURL=xpui-routes-album.js.map