87 lines
3.4 KiB
TypeScript
87 lines
3.4 KiB
TypeScript
// Module ID: 1235
|
|
// Function ID: 1236
|
|
// Name: _updateZoomedInExport
|
|
// Dependencies: [1236, 1371, 1895, 1074, 1898, 1899, 1359, 573, 1903, 2]
|
|
|
|
// Module 1235 (_updateZoomedInExport)
|
|
import dispatcherDefault from "dispatcher" /* 573 */;
|
|
import getHermesInstrumentedStatsSummaryDefault from "getHermesInstrumentedStatsSummary" /* 1359 */;
|
|
import initializeDefault from "initialize" /* 1898 */;
|
|
import shouldRunDefault from "shouldRun" /* 1899 */;
|
|
import closure_2 from "initialize" /* 1236 */;
|
|
import closure_3 from "mergeGuildAvatar" /* 1371 */;
|
|
import closure_4 from "getState" /* 1895 */;
|
|
import { AppStates } from "ME" /* 1074 */;
|
|
|
|
initializeDefault;
|
|
class TelemetryRingLifecycleImpl extends tmp2 {
|
|
constructor() {
|
|
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
|
|
closure_0 = applyArgumentsResult;
|
|
applyArgumentsResult._initialized = false;
|
|
applyArgumentsResult._experimentUnsubscribe = null;
|
|
applyArgumentsResult._handleEligibilityChange = function _handleEligibilityChange() {
|
|
const result = applyArgumentsResult._updateZoomedInExport();
|
|
};
|
|
applyArgumentsResult._handleLogout = function _handleLogout() {
|
|
applyArgumentsResult(1903).clear();
|
|
const obj = applyArgumentsResult(1903);
|
|
applyArgumentsResult(1899).reset();
|
|
};
|
|
return applyArgumentsResult;
|
|
}
|
|
}
|
|
const prototype = TelemetryRingLifecycleImpl.prototype;
|
|
prototype["_updateZoomedInExport"] = function _updateZoomedInExport() {
|
|
const state = closure_4.getState();
|
|
let shouldRunResult = state === AppStates.ACTIVE;
|
|
if (shouldRunResult) {
|
|
shouldRunResult = shouldRunDefault.shouldRun();
|
|
const obj = shouldRunDefault;
|
|
}
|
|
const result = getHermesInstrumentedStatsSummaryDefault.setShouldCollectHermesInstrumentedStats(shouldRunResult);
|
|
if (state === AppStates.ACTIVE) {
|
|
let tmp6Result = tmp6(1899);
|
|
tmp6Result.start();
|
|
} else {
|
|
tmp6Result = tmp6(1899);
|
|
tmp6Result.stop();
|
|
}
|
|
};
|
|
prototype["_initialize"] = function _initialize() {
|
|
let self = this;
|
|
self = this;
|
|
if (!this._initialized) {
|
|
self._initialized = true;
|
|
const subscription = self(573).subscribe("LOGOUT", self._handleLogout);
|
|
closure_4.addChangeListener(self._handleEligibilityChange);
|
|
closure_3.addChangeListener(self._handleEligibilityChange);
|
|
closure_2.addChangeListener(self._handleEligibilityChange);
|
|
self._experimentUnsubscribe = () => {
|
|
closure_1_2.removeChangeListener(self._handleEligibilityChange);
|
|
};
|
|
const obj = self(573);
|
|
self(1899).initialize();
|
|
const result = self._updateZoomedInExport();
|
|
const obj2 = self(1899);
|
|
}
|
|
};
|
|
prototype["_terminate"] = function _terminate() {
|
|
const self = this;
|
|
dispatcherDefault.unsubscribe("LOGOUT", this._handleLogout);
|
|
closure_4.removeChangeListener(this._handleEligibilityChange);
|
|
closure_3.removeChangeListener(this._handleEligibilityChange);
|
|
if (null != this._experimentUnsubscribe) {
|
|
const result = self._experimentUnsubscribe();
|
|
self._experimentUnsubscribe = null;
|
|
}
|
|
let tmpResult = tmp(1899);
|
|
tmpResult.stop();
|
|
tmpResult = tmp(1359);
|
|
const result1 = tmpResult.setShouldCollectHermesInstrumentedStats(false);
|
|
self._initialized = false;
|
|
};
|
|
const telemetryRingLifecycleImpl = new TelemetryRingLifecycleImpl();
|
|
let result = require("set").fileFinishedImporting("modules/telemetry_ring/native/TelemetryRingLifecycle.tsx");
|
|
|
|
export default telemetryRingLifecycleImpl;
|