This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,63 +1,70 @@
/* Metro module 7086; source: modules/applications/message_embed/web/appMessageEmbedTracking.tsx; dependencies: [31, 661, 683, 7087, 7088, 2] */
import AnalyticsUtils from '../../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
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 ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as AppMessageEmbedTrackingConfigModule from './appMessageEmbedTrackingConfig.tsx'; /* Metro dependency 7087 */
import * as UseIntersectionObserverModule from '../../../../external/discord_common/js/shared/hooks/useIntersectionObserver.tsx'; /* Metro dependency 7088 */
function _fun56527(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7264:6, offset: 0x013caa13, size: 324 bytes, params: 8, frame: 19
const env0_0 = require;
const closure = trackAppEmbedViewed;
const trackAppEmbedViewed2 = trackAppEmbedViewed;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/applications/message_embed/web/appMessageEmbedTracking.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/applications/message_embed/web/appMessageEmbedTracking.tsx');
exports.ClickArea = {VIEW: 'view', PLAY: 'play', CLOUD_PLAY: 'cloud_play', JOIN: 'join', ADD_APP: 'add_app',
JOIN_SERVER: 'join_server', INVITE: 'invite', SYNC: 'sync', CONTENT: 'content', BANNER: 'banner',
STREAM: 'stream', CONNECT_ACCOUNT: 'connect_account'};
exports.trackAppEmbedClick = trackAppEmbedClick;
exports.trackAppEmbedViewed = closure;
exports.trackAppEmbedViewed = trackAppEmbedViewed2;
exports.useTrackAppEmbedViewed = useTrackAppEmbedViewed;
exports.trackAppEmbedLinkSent = function(a0, a1, a2, a3) {
var defaultImport = importDefault(dependencyMap[2]);
var APP_EMBED_LINK_SENT = AnalyticEvents.APP_EMBED_LINK_SENT;
defaultImport.track(APP_EMBED_LINK_SENT, {application_id: a0, link_type: a1, referrer_id: a2, custom_id: a3});
};
}
function trackAppEmbedViewed({appId, linkType, referrerId, customId, guildId, channelId, messageId, appEmbedState}) { // fn#56528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7264:399, offset: 0x013cab57, size: 138 bytes, params: 2, frame: 22
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const APP_EMBED_VIEWED = AnalyticEvents.APP_EMBED_VIEWED;
Reflect.apply(track, defaultImport, [APP_EMBED_VIEWED, {application_id: appId, link_type: linkType,
referrer_id: referrerId, custom_id: customId, guild_id: guildId, channel_id: channelId, message_id: messageId,
app_embed_state: appEmbedState}]);
}
function trackAppEmbedClick({applicationId, linkType, area, referrerId, customId, isDeadEnd, messageId}) { // fn#56529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7264:805, offset: 0x013cabe1, size: 130 bytes, params: 2, frame: 21
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const APP_EMBED_CLICKED = AnalyticEvents.APP_EMBED_CLICKED;
Reflect.apply(track, defaultImport, [APP_EMBED_CLICKED, {application_id: applicationId, link_type: linkType,
area: area, referrer_id: referrerId, custom_id: customId, is_dead_end: isDeadEnd, message_id: messageId}]);
}
function useTrackAppEmbedViewed(a0) { // fn#56530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7264:1112, offset: 0x013cac63, size: 96 bytes, params: 2, frame: 17
const env0_0 = (require(7087) /* metro dependency 7087: appMessageEmbedTrackingConfig */).trackingConfigWithDefaults(a0);
const env0_1 = env0_3.useRef(false);
return (require(7088) /* metro dependency 7088: useIntersectionObserver */).useIsVisible(_fun56531, undefined);
}
function _fun56531(a0) { // fn#56531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7264:1235, offset: 0x013cacc3, size: 177 bytes, params: 2, frame: 12
var binding;
var trackAppEmbedViewedBinding;
let value = a0;
if (!env0_1.current && value) {
env0_1.current = true;
if (env0_0.onView != null) {
env0_0.onView();
}
value = environment.__proto__;
trackAppEmbedViewedBinding = trackAppEmbedViewed;
binding = env0_0;
trackAppEmbedViewedBinding({appId: binding.id, linkType: binding.linkType, referrerId: binding.referrerId,
customId: binding.activityCustomId, guildId: binding.guildId, channelId: binding.channelId,
messageId: binding.messageId, appEmbedState: binding.appEmbedState});
function trackAppEmbedViewed({appId, linkType, referrerId, customId, guildId, channelId, messageId, appEmbedState}) { // fn#56528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7264:399, offset: 0x013cab57, size: 138 bytes, params: 2, frame: 22
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const APP_EMBED_VIEWED = AnalyticEvents.APP_EMBED_VIEWED;
Reflect.apply(track, defaultImport, [APP_EMBED_VIEWED, {application_id: appId, link_type: linkType,
referrer_id: referrerId, custom_id: customId, guild_id: guildId, channel_id: channelId, message_id: messageId,
app_embed_state: appEmbedState}]);
}
function trackAppEmbedClick({applicationId, linkType, area, referrerId, customId, isDeadEnd, messageId}) { // fn#56529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7264:805, offset: 0x013cabe1, size: 130 bytes, params: 2, frame: 21
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const APP_EMBED_CLICKED = AnalyticEvents.APP_EMBED_CLICKED;
Reflect.apply(track, defaultImport, [APP_EMBED_CLICKED, {application_id: applicationId, link_type: linkType,
area: area, referrer_id: referrerId, custom_id: customId, is_dead_end: isDeadEnd, message_id: messageId}]);
}
function useTrackAppEmbedViewed(a0) { // fn#56530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7264:1112, offset: 0x013cac63, size: 96 bytes, params: 2, frame: 17
const env0_0 = (AppMessageEmbedTrackingConfigModule).trackingConfigWithDefaults(a0);
const env0_1 = ReactModule.useRef(false);
return (UseIntersectionObserverModule).useIsVisible(_fun56531, undefined);
function _fun56531(a0) { // fn#56531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7264:1235, offset: 0x013cacc3, size: 177 bytes, params: 2, frame: 12
var binding;
var trackAppEmbedViewedBinding;
let value = a0;
if (!env0_1.current && value) {
env0_1.current = true;
if (env0_0.onView != null) {
env0_0.onView();
}
value = environment.__proto__;
trackAppEmbedViewedBinding = trackAppEmbedViewed;
binding = env0_0;
trackAppEmbedViewedBinding({appId: binding.id, linkType: binding.linkType, referrerId: binding.referrerId,
customId: binding.activityCustomId, guildId: binding.guildId, channelId: binding.channelId,
messageId: binding.messageId, appEmbedState: binding.appEmbedState});
}
}
}
}
global.__d(_fun56527, 7086, [31, 661, 683, 7087, 7088,
2]) /* metro module 7086, dependencies: [31, 661, 683, 7087, 7088, 2] */;
@@ -1,28 +1,31 @@
/* Metro module 7087; source: modules/applications/message_embed/web/appMessageEmbedTrackingConfig.tsx; dependencies: [1226, 7082, 2] */
import AuthenticationStore from '../../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as MessageEmbedConstantsModule from '../MessageEmbedConstants.tsx'; /* Metro dependency 7082 */
function _fun56533(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7265:6, offset: 0x013cadc6, size: 126 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const env0_1 = (require(7082) /* metro dependency 7082: MessageEmbedConstants */).LinkType;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/applications/message_embed/web/appMessageEmbedTrackingConfig.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/applications/message_embed/web/appMessageEmbedTrackingConfig.tsx');
exports.trackingConfigWithDefaults = trackingConfigWithDefaults;
function trackingConfigWithDefaults(a0) { // fn#56534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7265:260, offset: 0x013cae44, size: 285 bytes, params: 2, frame: 14
const object = {};
const value = undefined;
object.id = (a0 == null ? value : a0.id) ?? '0';
object.linkType = (a0 == null ? value : a0.linkType) ?? LinkType.UNKNOWN;
object.referrerId = (a0 == null ? value : a0.referrerId) ?? AuthenticationStore.getId();
object.activityCustomId = a0 == null ? value : a0.activityCustomId;
object.onView = a0 == null ? value : a0.onView;
object.onLinkCopied = a0 == null ? value : a0.onLinkCopied;
object.guildId = a0 == null ? value : a0.guildId;
object.channelId = a0 == null ? value : a0.channelId;
object.messageId = a0 == null ? value : a0.messageId;
const isDeadEnd = a0 == null ? value : a0.isDeadEnd;
object.isDeadEnd = isDeadEnd != null && isDeadEnd;
object.appEmbedState = a0 == null ? value : a0.appEmbedState;
return object;
}
}
function trackingConfigWithDefaults(a0) { // fn#56534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7265:260, offset: 0x013cae44, size: 285 bytes, params: 2, frame: 14
const object2 = {};
const value = undefined;
object2.id = (a0 == null ? value : a0.id) ?? '0';
object2.linkType = (a0 == null ? value : a0.linkType) ?? LinkType.UNKNOWN;
object2.referrerId = (a0 == null ? value : a0.referrerId) ?? AuthenticationStore.getId();
object2.activityCustomId = a0 == null ? value : a0.activityCustomId;
object2.onView = a0 == null ? value : a0.onView;
object2.onLinkCopied = a0 == null ? value : a0.onLinkCopied;
object2.guildId = a0 == null ? value : a0.guildId;
object2.channelId = a0 == null ? value : a0.channelId;
object2.messageId = a0 == null ? value : a0.messageId;
const isDeadEnd = a0 == null ? value : a0.isDeadEnd;
object2.isDeadEnd = isDeadEnd != null && isDeadEnd;
object2.appEmbedState = a0 == null ? value : a0.appEmbedState;
return object2;
}
global.__d(_fun56533, 7087, [1226, 7082, 2]) /* metro module 7087, dependencies: [1226, 7082, 2] */;