Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,33 @@
/* Metro module 15126; source: modules/app_analytics/track/channel_opened/getChannelOpenedRouteTrackingProps.tsx; dependencies: [1379, 7162, 1230, 2] */
function _fun115319(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15323:6, offset: 0x0245c84c, size: 114 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_analytics/track/channel_opened/getChannelOpenedRouteTrackingProps.tsx');
exports.getChannelOpenedRouteTrackingProps = getChannelOpenedRouteTrackingProps;
}
function getChannelOpenedRouteTrackingProps(a0) { // fn#115320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15323:258, offset: 0x0245c8be, size: 153 bytes, params: 2, frame: 16
var r3;
var r6;
var value;
const value2 = undefined;
const moduleValue = require(dependencyMap[1]);
const value4 = moduleValue.collectThreadMetadata(ChannelStore.getChannel(a0), true);
const location = value4 == null ? value2 : value4.location;
if (location != null) {
r3 = location;
r6 = ChannelStore;
} else {
value = require(dependencyMap[2]);
value = value.getLastRouteChangeSource();
r3 = value;
r6 = dependencyMap;
}
const object2 = {};
copyDataProperties(object2, value4 ?? ({}), r6);
copyDataProperties(object2, r3 != null ? {location: r3} : {}, r6);
return object2;
}
@@ -0,0 +1,62 @@
/* Metro module 7163; source: modules/app_analytics/track/channel_opened/trackChannelOpenedClickstream.tsx; dependencies: [1379, 661, 1386, 4878, 2] */
function _fun57491(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7341:6, offset: 0x013e6fb0, size: 166 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_3 = constantsModule.ChannelTypes;
const env0_4 = constantsModule.AnalyticEvents;
const env0_5 = (require(1386) /* metro dependency 1386: ChannelConstants */).StaticChannelRoute;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_analytics/track/channel_opened/trackChannelOpenedClickstream.tsx');
exports.default = trackChannelOpenedClickstream;
}
function trackChannelOpenedClickstream({channelId}) { // fn#57492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7341:301, offset: 0x013e7056, size: 280 bytes, params: 2, frame: 19
const CHANNEL_BROWSER = StaticChannelRoute.CHANNEL_BROWSER;
if (CHANNEL_BROWSER !== channelId) {
var GUILD_HOME = StaticChannelRoute.GUILD_HOME;
if (GUILD_HOME === channelId) {
return undefined;
}
var GUILD_SHOP = StaticChannelRoute.GUILD_SHOP;
if (GUILD_SHOP === channelId) {
return undefined;
}
var GAME_SHOP = StaticChannelRoute.GAME_SHOP;
if (GAME_SHOP === channelId) {
return undefined;
}
var MEMBER_APPLICATIONS = StaticChannelRoute.MEMBER_APPLICATIONS;
if (MEMBER_APPLICATIONS === channelId) {
return undefined;
}
var ROLE_SUBSCRIPTIONS = StaticChannelRoute.ROLE_SUBSCRIPTIONS;
if (ROLE_SUBSCRIPTIONS === channelId) {
return undefined;
}
var CUSTOMIZE_COMMUNITY = StaticChannelRoute.CUSTOMIZE_COMMUNITY;
if (CUSTOMIZE_COMMUNITY === channelId) {
return undefined;
}
var MEMBER_SAFETY = StaticChannelRoute.MEMBER_SAFETY;
if (MEMBER_SAFETY === channelId) {
return undefined;
}
var GUILD_ONBOARDING = StaticChannelRoute.GUILD_ONBOARDING;
if (GUILD_ONBOARDING === channelId) {
return undefined;
}
var GUILD_BOOSTS = StaticChannelRoute.GUILD_BOOSTS;
if (GUILD_BOOSTS === channelId) {
return undefined;
}
var moduleValue = require(4878) /* metro dependency 4878: Clickstream */;
var trackClickstream = moduleValue.trackClickstream;
var CHANNEL_OPENED_CLICKSTREAM = AnalyticEvents.CHANNEL_OPENED_CLICKSTREAM;
var object2 = {channel_id: channelId};
object2.channel_type = ChannelStore.getChannel(channelId)?.type ?? ChannelTypes.UNKNOWN;
Reflect.apply(trackClickstream, moduleValue, [CHANNEL_OPENED_CLICKSTREAM, object2]);
}
}
@@ -0,0 +1,53 @@
/* Metro module 15137; source: modules/app_analytics/track/friends_list_viewed/getTrackFriendsListViewedData.native.tsx; dependencies: [11996, 5244, 5242, 5040, 3793, 661, 3829, 1391, 15138, 11997, 2] */
function _fun115390(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15334:6, offset: 0x0245f173, size: 220 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(11996) /* metro dependency 11996: ContactSyncPersistedStore */).useContactSyncStore;
const friendSuggestionStore = importDefault(5244) /* metro dependency 5244: FriendSuggestionStore */;
const gameRelationshipStore = importDefault(5242) /* metro dependency 5242: GameRelationshipStore */;
const connectedAccountsStore = importDefault(5040) /* metro dependency 5040: ConnectedAccountsStore */;
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_8 = constantsModule.PlatformTypes;
const env0_9 = constantsModule.FriendDiscoveryFlags;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_analytics/track/friends_list_viewed/getTrackFriendsListViewedData.native.tsx');
exports.default = getTrackFriendsListViewedData;
}
function getTrackFriendsListViewedData() { // fn#115391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15334:352, offset: 0x0245f24f, size: 402 bytes, params: 1, frame: 22
const getLocalAccount = ConnectedAccountsStore.getLocalAccount;
const CONTACTS = PlatformTypes.CONTACTS;
const value2 = Reflect.apply(getLocalAccount, ConnectedAccountsStore, [CONTACTS]);
const FriendDiscoverySettings = (require(3829) /* metro dependency 3829: UserSettings */).FriendDiscoverySettings;
const setting = FriendDiscoverySettings.getSetting();
const flagUtilsModule = require(1391) /* metro dependency 1391: FlagUtils */;
let hasFlag = flagUtilsModule.hasFlag;
const FIND_BY_PHONE = FriendDiscoveryFlags.FIND_BY_PHONE;
const hasFlag2 = Reflect.apply(hasFlag, flagUtilsModule, [setting, FIND_BY_PHONE]);
const moduleValue2 = flagUtilsModule;
hasFlag = moduleValue2.hasFlag;
const FIND_BY_EMAIL = FriendDiscoveryFlags.FIND_BY_EMAIL;
const hasFlag3 = Reflect.apply(hasFlag, moduleValue2, [setting, FIND_BY_EMAIL]);
const suggestionCount = FriendSuggestionStore.getSuggestionCount();
const getState = useContactSyncStore.getState;
const upsellCTADismissed = Reflect.apply(getState, useContactSyncStore, []).upsellCTADismissed;
const object2 = {};
object2.num_friends = RelationshipStore.getFriendCount();
copyDataProperties(object2, (importDefault(15138) /* metro dependency 15138: getFriendStatusCounts */)(),
importDefault);
object2['num_outgoing_requests'] = RelationshipStore.getOutgoingCount();
object2['num_incoming_requests'] = RelationshipStore.getPendingCount();
object2['num_game_friends'] = GameRelationshipStore.getGameFriendCount();
object2['num_game_outgoing_requests'] = GameRelationshipStore.getPendingOutgoingCount();
object2['num_game_incoming_requests'] = GameRelationshipStore.getPendingIncomingCount();
object2['num_suggestions'] = suggestionCount;
object2['was_dismissed'] = upsellCTADismissed;
let value = require(11997) /* metro dependency 11997: ContactSyncUtils */;
value = value.isContactSyncEnabled(value2);
object2['contact_sync_is_enabled'] = value;
object2['is_discoverable_email'] = hasFlag3;
object2['is_discoverable_phone'] = hasFlag2;
return object2;
}
@@ -0,0 +1,16 @@
/* Metro module 15139; source: modules/app_analytics/track/friends_list_viewed/trackFriendListClicked.tsx; dependencies: [661, 15137, 683, 2] */
function _fun115397(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15336:6, offset: 0x0245f6d8, size: 120 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_analytics/track/friends_list_viewed/trackFriendListClicked.tsx');
exports.default = function({tab_opened, source}) {
var value2 = importDefault(dependencyMap[1])();
var defaultImport = importDefault(dependencyMap[2]);
var FRIENDS_LIST_CLICKED = AnalyticEvents.FRIENDS_LIST_CLICKED;
var object = {tab_opened: tab_opened, source: source};
copyDataProperties(object, value2, tab_opened);
defaultImport.track(FRIENDS_LIST_CLICKED, object);
};
}
@@ -0,0 +1,29 @@
/* Metro module 15136; source: modules/app_analytics/track/friends_list_viewed/trackFriendListViewed.tsx; dependencies: [661, 15137, 683, 4878, 2] */
function _fun115388(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15333:6, offset: 0x0245f016, size: 124 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_analytics/track/friends_list_viewed/trackFriendListViewed.tsx');
exports.default = trackFriendsListViewed;
}
function trackFriendsListViewed({tab_opened, source}) { // fn#115389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15333:238, offset: 0x0245f092, size: 225 bytes, params: 2, frame: 21
const value2 = (importDefault(15137) /* metro dependency 15137: getTrackFriendsListViewedDataNative */)();
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const FRIENDS_LIST_VIEWED = AnalyticEvents.FRIENDS_LIST_VIEWED;
const object2 = {tab_opened: tab_opened, source: source};
copyDataProperties(object2, value2, undefined);
Reflect.apply(track, defaultImport, [FRIENDS_LIST_VIEWED, object2]);
const clickstreamModule = require(4878) /* metro dependency 4878: Clickstream */;
const trackClickstream = clickstreamModule.trackClickstream;
const FRIENDS_LIST_VIEWED_CLICKSTREAM = AnalyticEvents.FRIENDS_LIST_VIEWED_CLICKSTREAM;
const num_friends = value2.num_friends;
const now_playing_visible = value2.now_playing_visible;
Reflect.apply(trackClickstream, clickstreamModule, [FRIENDS_LIST_VIEWED_CLICKSTREAM,
{tab_opened: tab_opened ?? 'tabless', num_friends: num_friends ?? 0,
now_playing_visible: now_playing_visible != null && now_playing_visible,
now_playing_num_cards: value2.now_playing_num_cards ?? 0}]);
}