Files
discord-decomp/sources/modules/guild_member_verification/GuildJoinRequestAnalyticUtils.tsx
T
2026-07-28 01:06:53 +03:00

49 lines
3.6 KiB
TypeScript

/* Metro module 7245; source: modules/guild_member_verification/GuildJoinRequestAnalyticUtils.tsx; dependencies: [1226, 1945, 661, 683, 2] */
import AnalyticsUtils from '../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import AuthenticationStore from '../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import GuildMemberStore from '../../stores/GuildMemberStore.tsx'; /* Metro dependency 1945 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun58235(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7423:6, offset: 0x016c272a, size: 185 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/guild_member_verification/GuildJoinRequestAnalyticUtils.tsx');
exports.trackMemberApplicationViewed = function({guildId, applicationUserId, applicationStatus}) {
var defaultImport = importDefault(dependencyMap[3]);
var GUILD_MEMBER_APPLICATION_VIEWED = AnalyticEvents.GUILD_MEMBER_APPLICATION_VIEWED;
var object = {guild_id: guildId};
object.viewing_user_id = AuthenticationStore.getId();
object.application_user_id = applicationUserId;
object.application_status = applicationStatus;
defaultImport.track(GUILD_MEMBER_APPLICATION_VIEWED, object);
};
exports.trackMemberApplicationAction = function({guildId, actionType, applicationUserId}) {
var defaultImport = importDefault(dependencyMap[3]);
var GUILD_MEMBER_APPLICATION_ACTION = AnalyticEvents.GUILD_MEMBER_APPLICATION_ACTION;
var object = {guild_id: guildId, action_type: actionType, application_user_id: applicationUserId};
object.viewing_user_id = AuthenticationStore.getId();
defaultImport.track(GUILD_MEMBER_APPLICATION_ACTION, object);
};
exports.trackMemberApplicationInterviewMessage = trackMemberApplicationInterviewMessage;
exports.trackMemberVerificationApplicationViewed = function(a0) {
var defaultImport = importDefault(dependencyMap[3]);
var MEMBER_VERIFICATION_APPLICATION_VIEWED = AnalyticEvents.MEMBER_VERIFICATION_APPLICATION_VIEWED;
defaultImport.track(MEMBER_VERIFICATION_APPLICATION_VIEWED, {guild_id: a0});
};
function trackMemberApplicationInterviewMessage({guildId, messageId, channelId, joinRequestStatus, joinRequestUserId}) { // fn#58238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7423:777, offset: 0x016c28b1, size: 170 bytes, params: 2, frame: 21
const id = AuthenticationStore.getId();
const value5 = GuildMemberStore.getMember(guildId, id)?.joinedAt != null;
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const GUILD_MEMBER_APPLICATION_INTERVIEW_MESSAGE = AnalyticEvents.GUILD_MEMBER_APPLICATION_INTERVIEW_MESSAGE;
Reflect.apply(track, defaultImport, [GUILD_MEMBER_APPLICATION_INTERVIEW_MESSAGE, {guild_id: guildId,
channel_id: channelId, message_id: messageId, message_user_id: id, is_member: value5,
join_request_status: joinRequestStatus, join_request_user_id: joinRequestUserId}]);
}
}
global.__d(_fun58235, 7245, [1226, 1945, 661, 683,
2]) /* metro module 7245, dependencies: [1226, 1945, 661, 683, 2] */;