// Module ID: 12321 // Function ID: 12322 // Name: getUserProfileLiveActivities // Dependencies: [676, 12, 2] // Exports: getUserProfileLiveActivities, getUserProfileStackedActivityCards // Module 12321 (getUserProfileLiveActivities) import { ActivityTypes } from "ME"; const result = require("set").fileFinishedImporting("modules/user_profile/utils/UserProfileStackedActivityCardUtils.tsx"); export const getUserProfileLiveActivities = function getUserProfileLiveActivities(stateFromStores) { return require(12) /* apply */.uniqWith(stateFromStores.filter((type) => { type = type.type; return type !== constants.CUSTOM_STATUS && type !== constants.HANG_STATUS; }), (application_id, application_id2) => { let tmp = null != application_id.application_id && null != application_id2.application_id && application_id.application_id === application_id2.application_id; if (!tmp) { tmp = null != application_id.name && null != application_id2.name && application_id.name === application_id2.name; const tmp2 = null != application_id.name && null != application_id2.name && application_id.name === application_id2.name; } return tmp; }); }; export const getUserProfileStackedActivityCards = function getUserProfileStackedActivityCards(arg0) { let isPrivate; let live; let stream; let voiceActivity; let voiceChannel; ({ stream, live } = arg0); if (live === undefined) { live = []; } ({ voiceChannel, isPrivate, voiceActivity } = arg0); if (isPrivate === undefined) { isPrivate = false; } const items = []; if (null != stream) { let obj = { type: "stream", stream: null }; obj[1] = stream; items.push(obj); } for (const item10015 of live) { obj = { type: "live", activity: null }; obj[1] = item10015; let arr = items.push(obj); continue; } if (!isPrivate) { isPrivate = null != stream; } if (!isPrivate) { isPrivate = null != voiceActivity; } if (!isPrivate) { isPrivate = null == voiceChannel; } if (!isPrivate) { obj = { type: "voice", voiceChannel: null }; obj[1] = voiceChannel; items.push(obj); } return items; };