2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 12169
|
|
|
|
|
// Function ID: 12170
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useTrackUserProfileActivityAction
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [19, 9236, 8971, 7177, 589, 8972, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 12169 (useTrackUserProfileActivityAction)
|
|
|
|
|
import set from "set" /* 2 */;
|
|
|
|
|
import noop from "noop" /* 19 */;
|
|
|
|
|
import closure_4 from "map" /* 9236 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
noop.useCallback;
|
|
|
|
|
let result = set.fileFinishedImporting("modules/user_profile/hooks/useTrackUserProfileActivityAction.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useTrackUserProfileActivityAction(activity) {
|
2026-07-23 10:11:24 +00:00
|
|
|
({ 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-08-24 06:08:38 +00:00
|
|
|
const result = closure_1_0(activity[5]).trackUserProfileActivityAction(obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items1);
|
|
|
|
|
};
|