Module 286617

572 characters · in no known chunk
Dependencies
Required by (4)
Lazily required by (0)none
Requires (1)
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>r});var i=n(981616);function r(e,t,n,r){let s=e.hasConnectedAccount(),a=(0,i.d3)(e),o=e.getTrack(),l=e.getSyncingWith(),u=e.getActivity(),c=o?.id??u?.sync_id??e.getLastPlayedTrackId(),d=n.id===t.getId(),_=s&&!a,h=null!=c&&c===r?.sync_id,f=u?.party!=null&&r?.party?.id===u.party.id,E=l?.userId!=null&&l?.userId===n.id;return{user:n,activity:r,hasSpotifyAccount:s,canPlaySpotify:a,notPlayable:_,syncingWithParty:f,syncingWithUser:E,isCurrentUser:d,currentUserTrackId:c,playingSameTrack:h,playDisabled:d||_||h,syncDisabled:d||E||f}}}