138 lines
7.8 KiB
TypeScript
138 lines
7.8 KiB
TypeScript
/* Metro module 4879; source: modules/app_analytics/clickstream/ClickstreamEvents.tsx; dependencies: [661, 2] */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun42763(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#42763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:6, offset: 0x01141d65, size: 107 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/app_analytics/clickstream/ClickstreamEvents.tsx');
|
|
exports.getClickstreamDrainEvent = getClickstreamDrainEvent;
|
|
function getClickstreamDrainEvent(a0, a1) { // fn#42764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:237, offset: 0x01141dd0, size: 534 bytes, params: 3, frame: 14
|
|
var object;
|
|
const Date = global.Date;
|
|
let date = new Date();
|
|
const GUILD_VIEWED_CLICKSTREAM = AnalyticEvents.GUILD_VIEWED_CLICKSTREAM;
|
|
if (GUILD_VIEWED_CLICKSTREAM === a0) {
|
|
object = {};
|
|
object.time_minus = a1.map(_fun42765);
|
|
object.rtc_states = a1.map(function(a0) {
|
|
return a0.rtc_state;
|
|
});
|
|
object.guild_ids = a1.map(_fun42767);
|
|
return object;
|
|
}
|
|
const FRIENDS_LIST_VIEWED_CLICKSTREAM = AnalyticEvents.FRIENDS_LIST_VIEWED_CLICKSTREAM;
|
|
if (FRIENDS_LIST_VIEWED_CLICKSTREAM === a0) {
|
|
object = {};
|
|
object.time_minus = a1.map(_fun42768);
|
|
object.rtc_states = a1.map(function(a0) {
|
|
return a0.rtc_state;
|
|
});
|
|
object.tab_opened = a1.map(_fun42770);
|
|
object.num_friends = a1.map(_fun42771);
|
|
object.now_playing_visible = a1.map(_fun42772);
|
|
object.now_playing_num_cards = a1.map(_fun42773);
|
|
return object;
|
|
}
|
|
const CHANNEL_OPENED_CLICKSTREAM = AnalyticEvents.CHANNEL_OPENED_CLICKSTREAM;
|
|
if (CHANNEL_OPENED_CLICKSTREAM === a0) {
|
|
object = {};
|
|
object.time_minus = a1.map(_fun42774);
|
|
object.rtc_states = a1.map(function(a0) {
|
|
return a0.rtc_state;
|
|
});
|
|
object.channel_ids = a1.map(_fun42776);
|
|
object.channel_types = a1.map(_fun42777);
|
|
return object;
|
|
}
|
|
const CHANNEL_LATEST_MESSAGES_LOADED_CLICKSTREAM = AnalyticEvents.CHANNEL_LATEST_MESSAGES_LOADED_CLICKSTREAM;
|
|
if (CHANNEL_LATEST_MESSAGES_LOADED_CLICKSTREAM === a0) {
|
|
object = {};
|
|
object.time_minus = a1.map(_fun42778);
|
|
object.rtc_states = a1.map(function(a0) {
|
|
return a0.rtc_state;
|
|
});
|
|
object.load_duration_ms = a1.map(_fun42780);
|
|
object.were_messages_cached = a1.map(_fun42781);
|
|
object.is_first_load = a1.map(_fun42782);
|
|
return object;
|
|
}
|
|
const Error = global.Error;
|
|
date = 'getClickstreamDrainEvent: Unknown event: ' + a0;
|
|
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
const error = new Error(date);
|
|
throw error instanceof Object ? error : value2;
|
|
function _fun42765({timestamp}) { // fn#42765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:366, offset: 0x01141fe6, size: 42 bytes, params: 2, frame: 10
|
|
let getTime = ConstantsModule.AnalyticEvents.getTime;
|
|
const value = Reflect.apply(getTime, ConstantsModule.AnalyticEvents, []);
|
|
getTime = timestamp.getTime;
|
|
return value - Reflect.apply(getTime, timestamp, []);
|
|
}
|
|
|
|
function _fun42768({timestamp}) { // fn#42768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:546, offset: 0x01141fe6, size: 42 bytes, params: 2, frame: 10
|
|
let getTime = ConstantsModule.AnalyticEvents.getTime;
|
|
const value = Reflect.apply(getTime, ConstantsModule.AnalyticEvents, []);
|
|
getTime = timestamp.getTime;
|
|
return value - Reflect.apply(getTime, timestamp, []);
|
|
}
|
|
|
|
function _fun42774({timestamp}) { // fn#42774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:874, offset: 0x01141fe6, size: 42 bytes, params: 2, frame: 10
|
|
let getTime = ConstantsModule.AnalyticEvents.getTime;
|
|
const value = Reflect.apply(getTime, ConstantsModule.AnalyticEvents, []);
|
|
getTime = timestamp.getTime;
|
|
return value - Reflect.apply(getTime, timestamp, []);
|
|
}
|
|
|
|
function _fun42778({timestamp}) { // fn#42778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:1110, offset: 0x01141fe6, size: 42 bytes, params: 2, frame: 10
|
|
let getTime = ConstantsModule.AnalyticEvents.getTime;
|
|
const value = Reflect.apply(getTime, ConstantsModule.AnalyticEvents, []);
|
|
getTime = timestamp.getTime;
|
|
return value - Reflect.apply(getTime, timestamp, []);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun42767(a0) { // fn#42767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:457, offset: 0x0114201b, size: 10 bytes, params: 2, frame: 1
|
|
return a0.guild_id;
|
|
}
|
|
|
|
function _fun42770(a0) { // fn#42770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:638, offset: 0x01142025, size: 11 bytes, params: 2, frame: 1
|
|
return a0.tab_opened;
|
|
}
|
|
|
|
function _fun42771(a0) { // fn#42771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:675, offset: 0x01142030, size: 11 bytes, params: 2, frame: 1
|
|
return a0.num_friends;
|
|
}
|
|
|
|
function _fun42772(a0) { // fn#42772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:721, offset: 0x0114203b, size: 11 bytes, params: 2, frame: 1
|
|
return a0.now_playing_visible;
|
|
}
|
|
|
|
function _fun42773(a0) { // fn#42773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:777, offset: 0x01142046, size: 11 bytes, params: 2, frame: 1
|
|
return a0.now_playing_num_cards;
|
|
}
|
|
|
|
function _fun42776(a0) { // fn#42776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:967, offset: 0x011312d3, size: 10 bytes, params: 2, frame: 1
|
|
return a0.channel_id;
|
|
}
|
|
|
|
function _fun42777(a0) { // fn#42777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:1006, offset: 0x01142051, size: 11 bytes, params: 2, frame: 1
|
|
return a0.channel_type;
|
|
}
|
|
|
|
function _fun42780(a0) { // fn#42780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:1208, offset: 0x0114205c, size: 11 bytes, params: 2, frame: 1
|
|
return a0.load_duration_ms;
|
|
}
|
|
|
|
function _fun42781(a0) { // fn#42781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:1260, offset: 0x01142067, size: 11 bytes, params: 2, frame: 1
|
|
return a0.were_messages_cached;
|
|
}
|
|
|
|
function _fun42782(a0) { // fn#42782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5057:1309, offset: 0x01142072, size: 11 bytes, params: 2, frame: 1
|
|
return a0.is_first_load;
|
|
}
|
|
|
|
global.__d(_fun42763, 4879, [661, 2]) /* metro module 4879, dependencies: [661, 2] */;
|