Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
42 lines
1.9 KiB
TypeScript
42 lines
1.9 KiB
TypeScript
// Module ID: 13090
|
|
// Function ID: 13091
|
|
// Name: useTrackUserProfileActivityAction
|
|
// Dependencies: [19, 8862, 8253, 7214, 504, 8254, 2]
|
|
// Exports: default
|
|
|
|
// Module 13090 (useTrackUserProfileActivityAction)
|
|
import _mod19 from "module_19" /* 19 */;
|
|
import UserProfileAnalyticsUtils from "UserProfileAnalyticsUtils" /* 8254 */;
|
|
import ContentInventoryOutboxStore from "ContentInventoryOutboxStore" /* 8862 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
_mod19.useCallback;
|
|
let result = size.fileFinishedImporting("modules/user_profile/hooks/useTrackUserProfileActivityAction.tsx");
|
|
|
|
export default function useTrackUserProfileActivityAction(activity) {
|
|
({ user: require, display } = activity);
|
|
activity = activity.activity;
|
|
const entry = activity.entry;
|
|
const stream = activity.stream;
|
|
const voiceChannelId = activity.voiceChannelId;
|
|
let analyticsLocations;
|
|
let stateFromStores;
|
|
const userProfileAnalyticsContext = require("UserProfileAnalyticsContext").useUserProfileAnalyticsContext();
|
|
const context = userProfileAnalyticsContext.context;
|
|
const trackUserProfileAction = userProfileAnalyticsContext.trackUserProfileAction;
|
|
if (analyticsLocations == null) {
|
|
analyticsLocations = display(activity[3])().analyticsLocations;
|
|
}
|
|
const obj = require("UserProfileAnalyticsContext");
|
|
const items = [stream];
|
|
stateFromStores = require("initialize").useStateFromStores(items, () => ContentInventoryOutboxStore.getUserOutbox(id.id));
|
|
const items1 = [trackUserProfileAction, context, display, activity, stream, entry, stateFromStores, voiceChannelId, analyticsLocations];
|
|
return entry((action) => {
|
|
action = action.action;
|
|
trackUserProfileAction({ action, analyticsLocations });
|
|
const merged = Object.assign(context);
|
|
const result = UserProfileAnalyticsUtils.trackUserProfileActivityAction({ action, display, activity, entry, stream, outbox: stateFromStores, voiceChannelId, analyticsLocations });
|
|
}, items1);
|
|
};
|