decord/source/modules/telemetry_ring/native/TelemetryRingLifecycle.tsx
2026-08-07 06:50:47 +00:00

83 lines
3.1 KiB
TypeScript

// Module ID: 1211
// Function ID: 1212
// Name: _updateZoomedInExport
// Dependencies: [1212, 1903, 6816, 676, 4480, 13385, 7075, 709, 13389, 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(13389).clear();
const obj = applyArgumentsResult(13389);
applyArgumentsResult(13385).reset();
};
return applyArgumentsResult;
}
}
const prototype = TelemetryRingLifecycleImpl.prototype;
prototype["_updateZoomedInExport"] = function _updateZoomedInExport() {
const state = getState.getState();
let shouldRunResult = state === AppStates.ACTIVE;
if (shouldRunResult) {
shouldRunResult = importDefault(13385).shouldRun();
const obj = importDefault(13385);
}
const result = importDefault(7075).setShouldCollectHermesInstrumentedStats(shouldRunResult);
if (state === AppStates.ACTIVE) {
let tmp6Result = tmp6(13385);
tmp6Result.start();
} else {
tmp6Result = tmp6(13385);
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(13385).initialize();
const result = self._updateZoomedInExport();
const obj2 = self(13385);
}
};
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(13385);
tmpResult.stop();
tmpResult = tmp(7075);
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;