87 lines
4.5 KiB
TypeScript
87 lines
4.5 KiB
TypeScript
/* Metro module 5253; source: modules/tti_analytics/native/AppStartInfo.android.tsx; dependencies: [57, 5, 5254, 4014, 2] */
|
|
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import NativeTTIModule from '../../../external/discord_common/js/packages/rtn-codegen/js/NativeTTIModule.tsx'; /* Metro dependency 5254 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun46711(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5431:6, offset: 0x011ad853, size: 151 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_4 = {};
|
|
object = {getAppUIViewed: getAppUIViewed, getAppStartInfo: getAppStartInfo};
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/tti_analytics/native/AppStartInfo.android.tsx');
|
|
exports.AppStartInfo = object;
|
|
function getAppUIViewed() { // fn#46712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5431:124, offset: 0x011ad8ea, size: 78 bytes, params: 1, frame: 13
|
|
var r1;
|
|
var r0;
|
|
var property;
|
|
const mainActivityCreationTime = (NativeTTIModule).getMainActivityCreationTime();
|
|
const value3 = mainActivityCreationTime != null;
|
|
if (value3) {
|
|
property = env0_4[mainActivityCreationTime];
|
|
if (property) {
|
|
r1 = !!property;
|
|
} else {
|
|
env0_4[mainActivityCreationTime] = true;
|
|
r1 = false;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
r0 = value3;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function getAppStartInfo() { // fn#46713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5431:241, offset: 0x011ad938, size: 27 bytes, params: 1, frame: 11
|
|
return Module00005(_fun46715)();
|
|
function* _fun46715() { // fn#46715, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5431:248, offset: 0x011ad95c, size: 329 bytes, params: 1, frame: 22
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
let binding = env2_0;
|
|
const value3 = binding(env2_1[3]);
|
|
const getAppStartedTimestamp = value3.getAppStartedTimestamp;
|
|
yield Reflect.apply(getAppStartedTimestamp, value3, []);
|
|
const value4 = undefined;
|
|
if (false) {
|
|
return value4;
|
|
}
|
|
if (value4 <= 0) {
|
|
throw new global.Error("NativeTTIManager.getAppStartedTimestamp() returned an invalid timestamp. That's unexpected!");
|
|
}
|
|
const Promise = global.Promise;
|
|
const all = Promise.all;
|
|
binding = env2_0;
|
|
const binding2 = env2_1;
|
|
let object = [binding(binding2[3]).getAppStartType()];
|
|
const value8 = binding(binding2[3]);
|
|
const getLaunchScenario = value8.getLaunchScenario;
|
|
object[1] = Reflect.apply(getLaunchScenario, value8, []);
|
|
const value9 = binding(binding2[3]);
|
|
const getAppFirstVisibleTimestamp = value9.getAppFirstVisibleTimestamp;
|
|
object[2] = Reflect.apply(getAppFirstVisibleTimestamp, value9, []);
|
|
yield Reflect.apply(all, Promise, [object]);
|
|
const value10 = undefined;
|
|
if (false) {
|
|
return value10;
|
|
}
|
|
const value12 = env2_2(value10, 3);
|
|
const property = value12[0];
|
|
const property2 = value12[1];
|
|
const property3 = value12[2];
|
|
object = {app_start_type: property, app_launch_scenario: property2};
|
|
value = env2_0(env2_1[2]);
|
|
value = value.getMainActivityCreationTime();
|
|
if (value != null) {
|
|
object.android_time_creation_to_create_main_activity = value - value4;
|
|
}
|
|
return {appCreatedTime: value4, appFirstVisibleTime: property3, extraProperties: object};
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun46711, 5253, [57, 5, 5254, 4014, 2]) /* metro module 5253, dependencies: [57, 5, 5254, 4014, 2] */;
|