dotfiles/.config/spicetify/Extracted/Raw/xpui/6639.js

2 lines
15 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([[6639],{86639:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Pe});var a=n(59496),i=n(61740),s=n(89605),r=n(42065),l=n(47792),o=n(50346),c=n(3802),d=n(92403),u=n(4270),m=n(35394),h=n(73444),g=n(65321),x=n(91703),y=n(77312),p=n(38440),f=n(9284),b=n(6142),I=n(95663),j=n(64826),R=n(69812),v=n(48607),k=n(96170),C=n(91044),P=n(55847),w=n(95167),E=n(97355),U=n(53417),T=n(72502),A=n(32812),S=n(98340),B=n(73972),_=n(75207),F=n(48122),N=n(67187),M=n(96959),D=n(84229),L=n(97302),O=n(61108),z=n(24280),$=n(28106),K=n(59200),J=n(20195),X=n(4882),Z=n(90303),Q=n(43064),H=n(94033),G=n(57016),V=n(84875),W=n.n(V),Y=n(3289);const q="TRDgmejiOzKjissuLFSx";var ee=n(4637);const te=({onClick:e=(()=>{}),className:t,label:n,ariaLabel:a=n,Icon:i})=>(0,ee.jsx)(Y._,{label:n,children:(0,ee.jsx)("button",{type:"button","aria-label":a,className:W()(q,t),onClick:e,children:(0,ee.jsx)(i,{iconSize:16})})});var ne=n(78048);const ae=a.memo((function({uri:e,uid:t,name:n,durationMs:a,artists:i,album:s,isMOGEFRestricted:r,isExplicit:l,isPlayable:d,index:u,playIndex:m=null,imgUrl:h,contextUri:g,usePlayContextItem:x,isEnhanced:y,playContextPageIndex:p,isFirstRecommendation:f,add:b,remove:I,canBeRemovedFromPlaylist:j,addedBy:R,addedAt:v}){const C=(0,Q._)(e),P=(0,ne.k)(e,d),{badges:E,hasBadges:U}=(0,H.r)({downloadAvailability:C,isExplicit:l,isMOGEFRestricted:r,isEnhanced:y}),T=u+1,A=i.items.map((e=>({uri:e.uri,name:e.profile.name}))),B=(0,ee.jsx)(D.$,{uri:e,uid:t,albumUri:s?.uri,artists:A,contextUri:g,isRecommendation:y,removePlaylistItems:()=>I([t]),removeRecommendation:()=>I([t]),addRecommendation:()=>b(t),canBeRemovedFromPlaylist:j}),V=A?.map((e=>e.name)).join(c.ag.getSeparator())||"",{isActive:W,isPlaying:Y,triggerPlay:q,togglePlay:ae}=x({uid:t,uri:e,index:m??u,pageIndex:p}),{spec:ie,logger:se}=(0,k.fU)(w.r,{data:{position:u,reason:"",uri:e}}),re=(0,ee.jsx)(te,{onClick:()=>{b(t),se.logInteraction(ie.addRecommendationButtonFactory().hitAddToPlaylist({playlist:g,itemToBeAdded:e}))},label:c.ag.get("web-player.enhance.button_label_keep_in_playlist"),Icon:F.G});return(0,ee.jsx)(S.ZP,{value:"row",index:u,children:(0,ee.jsx)(K._P,{menu:B,children:(0,ee.jsxs)($.c,{uri:e,contextUri:g,index:u,onTriggerPlay:(e,t)=>{q({loggingParams:t})},isActive:W,ariaRowIndex:u+1,isPlayable:P,ageRestricted:r,dragMetadata:{name:n,createdBy:V},spec:ie,removePlaylistItems:e=>I(e.map((e=>e.uid))),children:[(0,ee.jsx)(O.Dd,{ariaColIndex:0,children:(0,ee.jsx)(O.Du,{uri:e,playAriaLabel:c.ag.get("tracklist.a11y.play",n,V),onClick:(e,t)=>{ae({loggingParams:t})},isPlaying:Y,isActive:W,spec:ie,children:(0,ee.jsx)(O.km,{children:T})})}),(0,ee.jsxs)(O.vZ,{ariaColIndex:1,children:[(0,ee.jsx)(O.lD,{src:h}),(0,ee.jsxs)(O.vm,{children:[(0,ee.jsx)(O.Wh,{titleText:n,children:n}),U&&(0,ee.jsxs)(O.g3,{children:[E.enhanced&&(0,ee.jsx)(N._,{iconSize:16,className:z.Z.enhanced,title:c.ag.get("web-player.enhance.button_text_enhanced"),"aria-label":c.ag.get("web-player.enhance.button_text_enhanced")}),E.download&&(0,ee.jsx)(J.G,{size:16}),E.explicit&&(0,ee.jsx)(X.N,{}),E.paid&&(0,ee.jsx)(L.g,{}),E.nineteen&&(0,ee.jsx)(Z.X,{className:z.Z.nineteen,size:16})]}),(0,ee.jsx)(O.K9,{children:(0,ee.jsx)(O.T6,{artists:A,spec:ie})})]})]}),(0,ee.jsx)(O.UA,{ariaColIndex:2,children:s&&(0,ee.jsx)(O.BM,{uri:s.uri,name:s.name,creatorUri:A?.[0]?.uri,spec:ie,children:s.name})}),(0,ee.jsx)(O.UA,{ariaColIndex:3,children:(0,ee.jsx)(O.p_,{name:R?.name||R?.id||"",uri:R?.id&&(0,o.QK)(R.id).toURI()||"",imageUrl:R?.avatar?.sources&&(0,_.X)(R?.avatar?.sources,{desiredWidth:24,desiredLabel:"small"})?.url||"",showAvatar:!0})}),(0,ee.jsx)(O.UA,{ariaColIndex:4,children:v?(0,ee.jsx)(O.Op,{dateAdded:v}):null}),(0,ee.jsxs)(O.mU,{ariaColIndex:5,children:[y?(0,ee.jsxs)(ee.Fragment,{children:[f?(0,ee.jsx)(G.T,{id:"enhance-add-recommendation",bodyText:c.ag.get("web-player.enhance.onboarding.add-recommendation-to-playlist"),shouldScrollIntoView:!0,children:re}):re,(0,ee.jsx)(te,{onClick:()=>{I([t]),se.logInteraction(ie.removeRe
//# sourceMappingURL=6639.js.map