Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,63 @@
|
||||
/* Metro module 7086; source: modules/applications/message_embed/web/appMessageEmbedTracking.tsx; dependencies: [31, 661, 683, 7087, 7088, 2] */
|
||||
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 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');
|
||||
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.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});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Metro module 7087; source: modules/applications/message_embed/web/appMessageEmbedTrackingConfig.tsx; dependencies: [1226, 7082, 2] */
|
||||
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');
|
||||
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 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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user