46 lines
3.3 KiB
TypeScript
46 lines
3.3 KiB
TypeScript
/* Metro module 10244; source: modules/user_profile/hooks/useTrackUserProfileActivityAction.tsx; dependencies: [31, 10046, 8514, 6771, 566, 8515, 2] */
|
|
import ContentInventoryOutboxStore from '../../content_inventory/ContentInventoryOutboxStore.tsx'; /* Metro dependency 10046 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as UserProfileAnalyticsContextModule from '../UserProfileAnalyticsContext.tsx'; /* Metro dependency 8514 */
|
|
import * as UserProfileAnalyticsUtilsModule from '../UserProfileAnalyticsUtils.tsx'; /* Metro dependency 8515 */
|
|
|
|
function _fun79570(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10430:6, offset: 0x01e58870, size: 139 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/hooks/useTrackUserProfileActivityAction.tsx');
|
|
exports.default = useTrackUserProfileActivityAction;
|
|
function useTrackUserProfileActivityAction({user, display, activity, entry, stream, voiceChannelId, analyticsLocations}) { // fn#79571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10430:236, offset: 0x01e588fb, size: 284 bytes, params: 2, frame: 24
|
|
const {context,
|
|
trackUserProfileAction} = (UserProfileAnalyticsContextModule).useUserProfileAnalyticsContext();
|
|
const r4 = analyticsLocations ?? (importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */)().analyticsLocations;
|
|
const userOutbox = (require(566) /* metro dependency 566: flux */).useStateFromStores([ContentInventoryOutboxStore],
|
|
function() {
|
|
return ContentInventoryOutboxStore.getUserOutbox(user.id);
|
|
});
|
|
return useCallback(_fun79573, [trackUserProfileAction, context, display, activity, stream, entry, userOutbox,
|
|
voiceChannelId, r4]);
|
|
function _fun79573({action}) { // fn#79573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10430:568, offset: 0x01e58a37, size: 153 bytes, params: 2, frame: 15
|
|
trackUserProfileAction({action: action, analyticsLocations: env0_8});
|
|
const trackUserProfileActivityAction = UserProfileAnalyticsUtilsModule.trackUserProfileActivityAction;
|
|
object = {action: action};
|
|
object.display = display;
|
|
object.activity = activity;
|
|
object.entry = entry;
|
|
object.stream = stream;
|
|
object.outbox = userOutbox;
|
|
object.voiceChannelId = voiceChannelId;
|
|
const binding = env0_8;
|
|
object.analyticsLocations = binding;
|
|
copyDataProperties(object, context, binding);
|
|
Reflect.apply(trackUserProfileActivityAction, UserProfileAnalyticsUtilsModule, [object]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun79570, 10244, [31, 10046, 8514, 6771, 566, 8515,
|
|
2]) /* metro module 10244, dependencies: [31, 10046, 8514, 6771, 566, 8515, 2] */;
|