decord/source/modules/user_profile/hooks/useTrackUserProfileActivityAction.tsx

47 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 12179
// Function ID: 12180
2026-07-20 16:05:17 +00:00
// Name: useTrackUserProfileActivityAction
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 9259, 8682, 5595, 589, 8683, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 12179 (useTrackUserProfileActivityAction)
2026-07-29 08:29:29 +00:00
import map from "map";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
require("noop").useCallback;
2026-07-23 10:11:24 +00:00
let result = require("UserProfileAnalyticsProvider").fileFinishedImporting("modules/user_profile/hooks/useTrackUserProfileActivityAction.tsx");
2026-07-20 16:05:17 +00:00
export default function useTrackUserProfileActivityAction(activity) {
let display;
2026-07-23 10:11:24 +00:00
let require;
({ user: require, display } = activity);
2026-07-20 16:05:17 +00:00
activity = activity.activity;
const entry = activity.entry;
const stream = activity.stream;
const voiceChannelId = activity.voiceChannelId;
2026-07-29 08:29:29 +00:00
let analyticsLocations = activity.analyticsLocations;
let context;
let trackUserProfileAction;
analyticsLocations = undefined;
2026-07-20 16:05:17 +00:00
let stateFromStores;
2026-07-23 10:11:24 +00:00
const userProfileAnalyticsContext = require(activity[2]).useUserProfileAnalyticsContext();
2026-07-29 08:29:29 +00:00
context = userProfileAnalyticsContext.context;
trackUserProfileAction = userProfileAnalyticsContext.trackUserProfileAction;
if (analyticsLocations == null) {
analyticsLocations = display(activity[3])().analyticsLocations;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let obj = require(activity[2]);
2026-07-29 08:29:29 +00:00
const tmp = require;
const tmp2 = activity;
2026-07-23 10:11:24 +00:00
const items = [stream];
stateFromStores = require(activity[4]).useStateFromStores(items, () => stream.getUserOutbox(id.id));
2026-07-29 08:29:29 +00:00
const items1 = [trackUserProfileAction, context, display, activity, stream, entry, stateFromStores, voiceChannelId, analyticsLocations];
2026-07-23 10:11:24 +00:00
return entry((action) => {
2026-07-20 16:05:17 +00:00
action = action.action;
2026-07-29 08:29:29 +00:00
let obj = { action, analyticsLocations };
2026-07-20 16:05:17 +00:00
trackUserProfileAction(obj);
2026-07-29 08:29:29 +00:00
obj = { action, display, activity, entry, stream, outbox: stateFromStores, voiceChannelId, analyticsLocations };
2026-07-20 16:05:17 +00:00
const merged = Object.assign(context);
2026-07-23 10:11:24 +00:00
const result = outer1_0(activity[5]).trackUserProfileActivityAction(obj);
2026-07-20 16:05:17 +00:00
}, items1);
};