2 lines
28 KiB
JavaScript
2 lines
28 KiB
JavaScript
|
"use strict";(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[3935],{3511:(e,n,i)=>{i.d(n,{P:()=>u});var a=i(59496),t=i(74991),d=i(3802),l=i(54299),o=i(24952),m=i(96768),s=i(20920),k=i(88794),c=i(68776),r=i(4637);const u=a.memo((function(e){const{images:n,name:i,uri:u,onClick:S,isHero:v,testId:N,index:p,requestId:F,color:y}=e;let g;const f=(0,a.useCallback)((()=>(0,r.jsx)(m.x,{isCircular:!0,isHero:v,images:n,color:y,FallbackComponent:e=>(0,r.jsx)(t.a,{iconSize:64,...e})})),[y,n,v]),h=(0,a.useCallback)((()=>v?(0,r.jsx)(k.k,{children:d.ag.get("card.tag.profile")}):d.ag.get("card.tag.profile")),[v]);return g=v?(0,r.jsx)(s.Z,{index:p,onClick:S,headerText:i,featureIdentifier:"profile",uri:u,isPlayable:!1,renderCardImage:f,renderSubHeaderContent:h,testId:N,requestId:F}):(0,r.jsx)(o.C,{index:p,onClick:S,headerText:i,featureIdentifier:"profile",uri:u,isPlayable:!1,renderCardImage:f,renderSubHeaderContent:h,testId:N,requestId:F}),(0,r.jsx)(l._,{menu:(0,r.jsx)(c.I,{uri:u}),children:g})}))},5945:(e,n,i)=>{i.d(n,{X:()=>k});var a=i(59496),t=i(84875),d=i.n(t),l=i(62517),o=i(52052),m=i(57968),s=i(4637);const k=(0,a.memo)((({children:e,isLoading:n,showAll:i})=>{const t=(0,a.useCallback)((({columnCount:n})=>(0,s.jsx)(s.Fragment,{children:i?e:Array.isArray(e)&&e.filter(((e,i)=>i<n))})),[e,i]);return Array.isArray(e)&&0===e.length?null:(0,s.jsxs)("section",{className:m.Z.skeletonShelf,"data-testid":"skeleton-shelf",children:[(0,s.jsx)("div",{className:m.Z.header,children:(0,s.jsx)("div",{className:m.Z.topRow,children:(0,s.jsx)("div",{className:m.Z.titleWrapper,children:(0,s.jsx)(o.C,{as:"span",charCount:25,className:m.Z.title,isLoading:n})})})}),(0,s.jsx)(l.T,{className:d()(m.Z.shelfGrid,{[m.Z.showAll]:i}),render:t})]})}))},46617:(e,n,i)=>{i.d(n,{b3:()=>y,xf:()=>g});var a=i(72071);const t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"homeDisplayText"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HomeFeatureDisplayText"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"text"},name:{kind:"Name",value:"transformedLabel"}}]}}]},d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"homeImage"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Image"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sources"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"width"}},{kind:"Field",name:{kind:"Name",value:"height"}}]}},{kind:"Field",name:{kind:"Name",value:"extractedColors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"colorDark"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hex"}},{kind:"Field",name:{kind:"Name",value:"isFallback"}}]}}]}}]}}]},l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"homeAlbum"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Album"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uri"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"coverArt"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"homeImage"}}]}},{kind:"Field",name:{kind:"Name",value:"artists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"4"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uri"}},{kind:"Field",name:{kind:"Name",value:"profile"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]}}]},o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"homeArtist"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Artist"}},selectionSet:{kind:"S
|
||
|
//# sourceMappingURL=3935.js.map
|