dotfiles/.config/spicetify/Extracted/Raw/xpui/browse-v2.js

2 lines
20 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([[3817],{37120:(e,n,i)=>{i.d(n,{Z:()=>r});var t=i(24952),a=i(96768),s=i(4637);const r=({name:e,uri:n,images:i,isHero:r,testId:o,description:l,index:d,requestId:c,color:m})=>(0,s.jsx)(t.C,{index:d,featureIdentifier:"artist_concerts",headerText:e,uri:n,isPlayable:!1,renderCardImage:()=>(0,s.jsx)(a.x,{isHero:r,images:i,color:m}),renderSubHeaderContent:()=>(0,s.jsx)("span",{children:l||""}),testId:o,requestId:c})},87956:(e,n,i)=>{i.d(n,{T:()=>r});var t=i(24952),a=i(96768),s=i(4637);const r=({name:e,uri:n,href:i,images:r,isHero:o,testId:l,description:d,index:c,requestId:m,color:u})=>(0,s.jsx)(t.C,{index:c,featureIdentifier:"merch",onClick:()=>{window.open(i,"_blank")},headerText:e,uri:n,isPlayable:!1,renderCardImage:()=>(0,s.jsx)(a.x,{isHero:o,images:r,color:u}),renderSubHeaderContent:()=>(0,s.jsx)("span",{children:d||""}),testId:l,requestId:m,delegateNavigation:!0})},3511:(e,n,i)=>{i.d(n,{P:()=>k});var t=i(59496),a=i(74991),s=i(3802),r=i(54299),o=i(24952),l=i(96768),d=i(20920),c=i(88794),m=i(68776),u=i(4637);const k=t.memo((function(e){const{images:n,name:i,uri:k,onClick:p,isHero:f,testId:g,index:b,requestId:x,color:S}=e;let v;const N=(0,t.useCallback)((()=>(0,u.jsx)(l.x,{isCircular:!0,isHero:f,images:n,color:S,FallbackComponent:e=>(0,u.jsx)(a.a,{iconSize:64,...e})})),[S,n,f]),h=(0,t.useCallback)((()=>f?(0,u.jsx)(c.k,{children:s.ag.get("card.tag.profile")}):s.ag.get("card.tag.profile")),[f]);return v=f?(0,u.jsx)(d.Z,{index:b,onClick:p,headerText:i,featureIdentifier:"profile",uri:k,isPlayable:!1,renderCardImage:N,renderSubHeaderContent:h,testId:g,requestId:x}):(0,u.jsx)(o.C,{index:b,onClick:p,headerText:i,featureIdentifier:"profile",uri:k,isPlayable:!1,renderCardImage:N,renderSubHeaderContent:h,testId:g,requestId:x}),(0,u.jsx)(r._,{menu:(0,u.jsx)(m.I,{uri:k}),children:v})}))},27776:(e,n,i)=>{i.r(n),i.d(n,{BrowsePage:()=>W});var t=i(59496),a=i(84875),s=i.n(a),r=i(60161),o=i(3802),l=i(33971),d=i(96170),c=i(94041),m=i(35725),u=i(41226),k=i(16743),p=i(73997),f=i(4637);const g=({images:e,color:n=c.k77,title:i})=>{const t=0===e.length?u.fR.SMALL:u.fR.DEFAULT;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(u.gF,{backgroundImages:e,backgroundColor:n,size:t,children:[(0,f.jsx)(k.W,{children:i?(0,f.jsx)(p.i,{text:i}):null}),(0,f.jsx)(u.sP,{children:i?(0,f.jsx)(u.xd,{children:i}):null})]}),(0,f.jsx)(m.H,{color:n})]})};var b=i(28418),x=i(29251),S=i(76160),v=i(79642),N=i(88333),h=i(71534);const y={chips:"T8Vmv6htAP7bht774xG5",chip:"BX1DapBHMyHxwyF1aFRv"};function I({section:e}){return(0,f.jsx)("div",{className:y.chips,children:e.sectionItems.items.map((e=>function(e){return"BrowseSectionContainerWrapper"===e.content.__typename&&"BrowseSectionContainer"===e.content.data.__typename&&e.content.data.data?.cardRepresentation?.title?.transformedLabel?(0,f.jsxs)(S.A,{as:N.Z,href:(0,h.t1)(e.uri),className:y.chip,children:[e.content.data.data.cardRepresentation.title.transformedLabel,(0,f.jsx)(v.V,{iconSize:12})]},e.uri):null}(e)))})}var w=i(46117),C=i(69527);const j=({section:e,position:n,showAll:i})=>{const a=(0,t.useMemo)((()=>e.sectionItems.items.map(((e,n)=>(0,w.O)(e,n))).filter(b.K)),[e.sectionItems.items]);switch(e.data?.__typename){case"BrowseGenericSectionData":return(0,f.jsx)(C.q,{title:e.data?.title?.transformedLabel??"",tagline:e.data?.subtitle?.transformedLabel??"",total:e.sectionItems.totalCount,seeAllUri:(0,h.px)(e.uri),index:n,id:e.uri,showAll:i,children:a});case"BrowseGridSectionData":return(0,f.jsx)(C.q,{title:e.data?.title?.transformedLabel??"",tagline:e.data?.subtitle?.transformedLabel??"",total:e.sectionItems.totalCount,index:n,id:e.uri,showAll:!0,children:a});case"BrowseRelatedSectionData":return(0,f.jsx)(I,{section:e});case"BrowseSingleItemSectionData":case"BrowseUnsupportedSectionData":case void 0:return null;default:return(0,x._)(e.data),null}};var F=i(6548);const _=({uri:e,fallback:n})=>{const{section:i,error:t,fetchNextItems:a}=(0,F.X)(e),s=i?.data?.title?.transformedLabel,r=i?.data?.
//# sourceMappingURL=browse-v2.js.map