83 lines
3.1 KiB
TypeScript
83 lines
3.1 KiB
TypeScript
// Module ID: 1211
|
|
// Function ID: 1212
|
|
// Name: _updateZoomedInExport
|
|
// Dependencies: [1212, 1922, 7383, 676, 4720, 13558, 5422, 709, 13562, 2]
|
|
|
|
// Module 1211 (_updateZoomedInExport)
|
|
import initialize from "initialize";
|
|
import mergeGuildAvatar from "mergeGuildAvatar";
|
|
import getState from "getState";
|
|
import { AppStates } from "ME";
|
|
import "initialize";
|
|
|
|
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(13562).clear();
|
|
const obj = applyArgumentsResult(13562);
|
|
applyArgumentsResult(13558).reset();
|
|
};
|
|
return applyArgumentsResult;
|
|
}
|
|
}
|
|
const prototype = TelemetryRingLifecycleImpl.prototype;
|
|
prototype["_updateZoomedInExport"] = function _updateZoomedInExport() {
|
|
const state = getState.getState();
|
|
let shouldRunResult = state === AppStates.ACTIVE;
|
|
if (shouldRunResult) {
|
|
shouldRunResult = importDefault(13558).shouldRun();
|
|
const obj = importDefault(13558);
|
|
}
|
|
const result = importDefault(5422).setShouldCollectHermesInstrumentedStats(shouldRunResult);
|
|
if (state === AppStates.ACTIVE) {
|
|
let tmp6Result = tmp6(13558);
|
|
tmp6Result.start();
|
|
} else {
|
|
tmp6Result = tmp6(13558);
|
|
tmp6Result.stop();
|
|
}
|
|
};
|
|
prototype["_initialize"] = function _initialize() {
|
|
let self = this;
|
|
self = this;
|
|
if (!this._initialized) {
|
|
self._initialized = true;
|
|
const subscription = self(709).subscribe("LOGOUT", self._handleLogout);
|
|
getState.addChangeListener(self._handleEligibilityChange);
|
|
mergeGuildAvatar.addChangeListener(self._handleEligibilityChange);
|
|
initialize.addChangeListener(self._handleEligibilityChange);
|
|
self._experimentUnsubscribe = () => {
|
|
outer1_2.removeChangeListener(self._handleEligibilityChange);
|
|
};
|
|
const obj = self(709);
|
|
self(13558).initialize();
|
|
const result = self._updateZoomedInExport();
|
|
const obj2 = self(13558);
|
|
}
|
|
};
|
|
prototype["_terminate"] = function _terminate() {
|
|
const self = this;
|
|
importDefault(709).unsubscribe("LOGOUT", this._handleLogout);
|
|
getState.removeChangeListener(this._handleEligibilityChange);
|
|
mergeGuildAvatar.removeChangeListener(this._handleEligibilityChange);
|
|
if (null != this._experimentUnsubscribe) {
|
|
const result = self._experimentUnsubscribe();
|
|
self._experimentUnsubscribe = null;
|
|
}
|
|
let tmpResult = tmp(13558);
|
|
tmpResult.stop();
|
|
tmpResult = tmp(5422);
|
|
const result1 = tmpResult.setShouldCollectHermesInstrumentedStats(false);
|
|
self._initialized = false;
|
|
};
|
|
const telemetryRingLifecycleImpl = new TelemetryRingLifecycleImpl();
|
|
let result = require("getState").fileFinishedImporting("modules/telemetry_ring/native/TelemetryRingLifecycle.tsx");
|
|
|
|
export default telemetryRingLifecycleImpl;
|