Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,95 @@
|
||||
/* Metro module 9492; source: modules/quests/QuestBarRenderDelayTracker.tsx; dependencies: [6, 7, 661, 4826, 4831, 683, 9493, 2] */
|
||||
function _fun74090(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9678:6, offset: 0x01d805b7, size: 180 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
let value = _fun74091();
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/QuestBarRenderDelayTracker.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun74091() { // fn#74091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9678:153, offset: 0x01d8066b, size: 163 bytes, params: 1, frame: 15
|
||||
return env0_4(QuestBarRenderDelayTracker, [{key: 'clearTimeoutTimer', value: function() {
|
||||
if (this.timeoutTimer != null) {
|
||||
global.clearTimeout(this.timeoutTimer);
|
||||
this.timeoutTimer = null;
|
||||
}
|
||||
}}, {key: 'sendMetric', value: value_74094}, {key: 'startTracking', value: function(a0) {
|
||||
var env0_0 = this;
|
||||
var env0_1 = a0;
|
||||
this.clearTracking();
|
||||
this.startTime = global.performance.now();
|
||||
this.questId = a0;
|
||||
this.timeoutTimer = global.setTimeout(_fun74096, 30000);
|
||||
}}, {key: 'stopTracking', value: value_74097}, {key: 'clearTracking', value: function() {
|
||||
this.clearTimeoutTimer();
|
||||
this.startTime = null;
|
||||
this.questId = null;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function QuestBarRenderDelayTracker() { // fn#74092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9678:174, offset: 0x01d8070e, size: 47 bytes, params: 1, frame: 13
|
||||
env1_3(this, QuestBarRenderDelayTracker);
|
||||
this.startTime = null;
|
||||
this.questId = null;
|
||||
this.timeoutTimer = null;
|
||||
}
|
||||
|
||||
function value_74094(a0, a1, a2) { // fn#74094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9678:461, offset: 0x01d8076b, size: 229 bytes, params: 4, frame: 22
|
||||
var defaultImport;
|
||||
var distribution;
|
||||
var QUEST_BAR_RENDER_DELAY;
|
||||
var defaultImport2;
|
||||
var track;
|
||||
const Math = global.Math;
|
||||
let value = Math.random();
|
||||
if (!(value > 0.1)) {
|
||||
value = environment.__proto__;
|
||||
defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
|
||||
distribution = defaultImport.distribution;
|
||||
QUEST_BAR_RENDER_DELAY = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.QUEST_BAR_RENDER_DELAY;
|
||||
Reflect.apply(distribution, defaultImport, [{name: QUEST_BAR_RENDER_DELAY, tags: ['quest_id:' + a0,
|
||||
'timeout:' + a1]}, a2]);
|
||||
defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport2.track;
|
||||
QUEST_BAR_RENDER_DELAY = AnalyticEvents.QUEST_BAR_RENDER_DELAY;
|
||||
Reflect.apply(track, defaultImport2, [QUEST_BAR_RENDER_DELAY, {quest_id: a0, timeout: a1, duration: a2}]);
|
||||
}
|
||||
}
|
||||
|
||||
function value_74095(a0) { // fn#74095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9678:713, offset: 0x01d80850, size: 90 bytes, params: 2, frame: 15
|
||||
const env0_1 = a0;
|
||||
this.clearTracking();
|
||||
const performance = global.performance;
|
||||
this.startTime = performance.now();
|
||||
this.questId = a0;
|
||||
this.timeoutTimer = global.setTimeout(_fun74096, 30000);
|
||||
}
|
||||
|
||||
function value_74097(a0) { // fn#74097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9678:886, offset: 0x01d808c7, size: 187 bytes, params: 2, frame: 20
|
||||
let value = a1;
|
||||
const r4 = value !== undefined ? value : false;
|
||||
if (this.startTime !== null) {
|
||||
if (this.questId === a0) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(9493) /* metro dependency 9493: DiscordAppStateNative */;
|
||||
value = value.getState();
|
||||
if (value === 'active') {
|
||||
value = 30000;
|
||||
value = global.Math.min(r4 ? value : global.Math.round(global.performance.now() - this.startTime),
|
||||
value);
|
||||
this.sendMetric(a0, r4, value);
|
||||
}
|
||||
this.clearTracking();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun74096() { // fn#74096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9678:824, offset: 0x01d808aa, size: 29 bytes, params: 1, frame: 13
|
||||
env0_0.stopTracking(env0_1, true);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user