Module 286617

559 characters · in 1481cf06e4758feb.js
Dependencies
Lazily required by (0)none
Requires (1)
Lazily requires (0)none
Source Raw
function(t,e,n){n.d(e,{A:()=>r});var i=n(981616);function r(t,e,n,r){let l=t.hasConnectedAccount(),o=(0,i.d3)(t),a=t.getTrack(),u=t.getSyncingWith(),c=t.getActivity(),d=a?.id??c?.sync_id??t.getLastPlayedTrackId(),s=n.id===e.getId(),A=l&&!o,p=null!=d&&d===r?.sync_id,f=c?.party!=null&&r?.party?.id===c.party.id,y=u?.userId!=null&&u?.userId===n.id;return{user:n,activity:r,hasSpotifyAccount:l,canPlaySpotify:o,notPlayable:A,syncingWithParty:f,syncingWithUser:y,isCurrentUser:s,currentUserTrackId:d,playingSameTrack:p,playDisabled:s||A||p,syncDisabled:s||y||f}}}