2026-07-29 08:29:29 +00:00
|
|
|
// Module ID: 1211
|
|
|
|
|
// Function ID: 1212
|
|
|
|
|
// Name: _updateZoomedInExport
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [1212, 1922, 7421, 676, 4726, 13616, 5427, 709, 13620, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
// Module 1211 (_updateZoomedInExport)
|
2026-08-24 06:08:38 +00:00
|
|
|
import dispatcherDefault from "dispatcher" /* 709 */;
|
|
|
|
|
import initializeDefault from "initialize" /* 4726 */;
|
|
|
|
|
import getHermesInstrumentedStatsSummaryDefault from "getHermesInstrumentedStatsSummary" /* 5427 */;
|
|
|
|
|
import shouldRunDefault from "shouldRun" /* 13616 */;
|
|
|
|
|
import closure_2 from "initialize" /* 1212 */;
|
|
|
|
|
import closure_3 from "mergeGuildAvatar" /* 1922 */;
|
|
|
|
|
import closure_4 from "getState" /* 7421 */;
|
|
|
|
|
import { AppStates } from "ME" /* 676 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
initializeDefault;
|
2026-07-29 08:29:29 +00:00
|
|
|
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() {
|
2026-08-24 06:08:38 +00:00
|
|
|
applyArgumentsResult(13620).clear();
|
|
|
|
|
const obj = applyArgumentsResult(13620);
|
|
|
|
|
applyArgumentsResult(13616).reset();
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const prototype = TelemetryRingLifecycleImpl.prototype;
|
|
|
|
|
prototype["_updateZoomedInExport"] = function _updateZoomedInExport() {
|
2026-08-24 06:08:38 +00:00
|
|
|
const state = closure_4.getState();
|
2026-07-29 08:29:29 +00:00
|
|
|
let shouldRunResult = state === AppStates.ACTIVE;
|
|
|
|
|
if (shouldRunResult) {
|
2026-08-24 06:08:38 +00:00
|
|
|
shouldRunResult = shouldRunDefault.shouldRun();
|
|
|
|
|
const obj = shouldRunDefault;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = getHermesInstrumentedStatsSummaryDefault.setShouldCollectHermesInstrumentedStats(shouldRunResult);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (state === AppStates.ACTIVE) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let tmp6Result = tmp6(13616);
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp6Result.start();
|
|
|
|
|
} else {
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp6Result = tmp6(13616);
|
2026-07-29 08:29:29 +00:00
|
|
|
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);
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_4.addChangeListener(self._handleEligibilityChange);
|
|
|
|
|
closure_3.addChangeListener(self._handleEligibilityChange);
|
|
|
|
|
closure_2.addChangeListener(self._handleEligibilityChange);
|
2026-07-29 08:29:29 +00:00
|
|
|
self._experimentUnsubscribe = () => {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_1_2.removeChangeListener(self._handleEligibilityChange);
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
const obj = self(709);
|
2026-08-24 06:08:38 +00:00
|
|
|
self(13616).initialize();
|
2026-07-29 08:29:29 +00:00
|
|
|
const result = self._updateZoomedInExport();
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj2 = self(13616);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
prototype["_terminate"] = function _terminate() {
|
|
|
|
|
const self = this;
|
2026-08-24 06:08:38 +00:00
|
|
|
dispatcherDefault.unsubscribe("LOGOUT", this._handleLogout);
|
|
|
|
|
closure_4.removeChangeListener(this._handleEligibilityChange);
|
|
|
|
|
closure_3.removeChangeListener(this._handleEligibilityChange);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (null != this._experimentUnsubscribe) {
|
|
|
|
|
const result = self._experimentUnsubscribe();
|
|
|
|
|
self._experimentUnsubscribe = null;
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
let tmpResult = tmp(13616);
|
2026-07-29 08:29:29 +00:00
|
|
|
tmpResult.stop();
|
2026-08-24 06:08:38 +00:00
|
|
|
tmpResult = tmp(5427);
|
2026-07-29 08:29:29 +00:00
|
|
|
const result1 = tmpResult.setShouldCollectHermesInstrumentedStats(false);
|
|
|
|
|
self._initialized = false;
|
|
|
|
|
};
|
|
|
|
|
const telemetryRingLifecycleImpl = new TelemetryRingLifecycleImpl();
|
2026-08-24 06:08:38 +00:00
|
|
|
let result = require("set").fileFinishedImporting("modules/telemetry_ring/native/TelemetryRingLifecycle.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default telemetryRingLifecycleImpl;
|