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

2 lines
32 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([[2499],{3511:(e,a,i)=>{i.d(a,{P:()=>g});var t=i(59496),r=i(74991),o=i(3802),s=i(54299),l=i(24952),n=i(96768),d=i(20920),u=i(88794),c=i(68776),m=i(4637);const g=t.memo((function(e){const{images:a,name:i,uri:g,onClick:p,isHero:h,testId:f,index:v,requestId:x,color:b}=e;let y;const k=(0,t.useCallback)((()=>(0,m.jsx)(n.x,{isCircular:!0,isHero:h,images:a,color:b,FallbackComponent:e=>(0,m.jsx)(r.a,{iconSize:64,...e})})),[b,a,h]),I=(0,t.useCallback)((()=>h?(0,m.jsx)(u.k,{children:o.ag.get("card.tag.profile")}):o.ag.get("card.tag.profile")),[h]);return y=h?(0,m.jsx)(d.Z,{index:v,onClick:p,headerText:i,featureIdentifier:"profile",uri:g,isPlayable:!1,renderCardImage:k,renderSubHeaderContent:I,testId:f,requestId:x}):(0,m.jsx)(l.C,{index:v,onClick:p,headerText:i,featureIdentifier:"profile",uri:g,isPlayable:!1,renderCardImage:k,renderSubHeaderContent:I,testId:f,requestId:x}),(0,m.jsx)(s._,{menu:(0,m.jsx)(c.I,{uri:g}),children:y})}))},1828:(e,a,i)=>{i.d(a,{T:()=>c});var t=i(6142),r=i(68415),o=i(66721),s=i(78297),l=i(41226);const n="profile-editImage-imageContainer",d="profile-editImage-editImageButtonContainer";var u=i(4637);const c=function({onClick:e,name:a,images:i,canEdit:c,placeholderType:m,shape:g=l.Kc.SQUARE,dragUri:p=""}){const[h,f]=(0,r.R)(i),v=(0,o.VO)(h,f)===o.KO.loaded,x=(0,t.O)([p],a);return(0,u.jsxs)("div",{className:n,"data-testid":`${m}-image`,draggable:!!p,onDragStart:x,children:[(0,u.jsx)(l.Oe,{loading:"eager",name:a,images:i,placeholderType:m,shape:g}),c&&(0,u.jsx)("div",{className:d,children:(0,u.jsx)(s.F,{overlay:v,onClick:e,rounded:g===l.Kc.CIRCLE})})]})}},75811:(e,a,i)=>{i.r(a),i.d(a,{default:()=>Sa});var t=i(59496),r=i(89605),o=i(47792),s=i(50346),l=i(84875),n=i.n(l),d=i(3802),u=i(3511),c=i(23627),m=i(5488),g=i(17652),p=i(85270);const h="profile-userOverview-container",f="profile-userOverview-section",v="profile-userOverview-subPage",x="profile-userOverview-imageContainer",b="profile-userOverview-topTrackSubPage",y="profile-userOverview-title",k="profile-userOverview-header";var I=i(4637);const j=e=>{const{uri:a}=e,{data:i,loading:t,error:r}=(0,g.J)(p.n5.getFollowers,[a]),o=i?.profiles;return t?(0,I.jsx)(c.h,{hasError:null!==r,errorMessage:d.ag.get("error.not_found.title.page")}):(0,I.jsx)(m.P,{className:n()("contentSpacing",v),title:d.ag.get("followers"),total:o?.length,showAll:!0,children:o?.map(((e,a)=>(0,I.jsx)(u.P,{index:a,uri:e.uri,name:e.name,images:[{url:e.image_url}]},e.uri)))})},_=e=>{const{uri:a}=e,{data:i,loading:t,error:r}=(0,g.J)(p.n5.getFollowing,[a]),o=i?.profiles;return t?(0,I.jsx)(c.h,{hasError:null!==r,errorMessage:d.ag.get("error.not_found.title.page")}):(0,I.jsx)(m.P,{className:n()("contentSpacing",v),title:d.ag.get("following"),total:o?.length,showAll:!0,children:o?.map(((e,a)=>(0,I.jsx)(u.P,{index:a,uri:e.uri,name:e.name,images:[{url:e.image_url}]},e.uri)))})};var N=i(61740),P=i(56162),w=i(10204),S=i(4270),R=i(35394),C=i(79823),T=i(75523),O=i(68776),A=i(91703),D=i(1828),U=i(41226),E=i(49663),M=i(16743),F=i(73997),W=i(88959),L=i(83680),H=i(11216),J=i(79475),K=i(71316),B=i(68415),Q=i(66721);const G="profile-userEditDetails-image",Z="valcBm4lLe9qFBcg0sFY",z="tAIzXn8C9KriGwGuBfWg",V="PsrXxenHUFXYM1ub1xWw",q="U_VWfeeLWnDPhUTxCmrQ",$=function({onClickEdit:e,onClickRemove:a,name:i,images:t}){const[r,o]=(0,B.R)(t),s=(0,Q.VO)(r,o)===Q.KO.loaded;return(0,I.jsxs)("div",{className:G,children:[(0,I.jsx)(U.Oe,{loading:"eager",name:i,images:t,placeholderType:"user",shape:U.Kc.CIRCLE}),(0,I.jsxs)("div",{className:n()(Z,{[V]:s}),children:[(0,I.jsx)("button",{className:z,"aria-haspopup":"true",onClick:e,type:"button",children:(0,I.jsx)(P.D,{variant:"ballad",children:d.ag.get("user.edit-details.choose-photo")})}),(0,I.jsx)("div",{className:n()(q,"icon"),children:(0,I.jsx)(K.y,{iconSize:48,"aria-hidden":!0})}),(0,I.jsx)("button",{className:z,onClick:a,type:"button",children:(0,I.jsx)(P.D,{variant:"ballad",children:d.ag.get("user.edit-details.remove-photo")})})]})]})};var X=
//# sourceMappingURL=xpui-routes-profile.js.map