2026-08-06 08:05:19 +00:00
|
|
|
// Module ID: 16876
|
|
|
|
|
// Function ID: 16877
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: handleAppStateChanged
|
2026-08-06 08:05:19 +00:00
|
|
|
// Dependencies: [1218, 6797, 676, 3, 10, 709, 4356, 16875, 6855, 4126, 9, 698, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-06 08:05:19 +00:00
|
|
|
// Module 16876 (handleAppStateChanged)
|
2026-07-29 08:29:29 +00:00
|
|
|
import fetchFingerprint from "fetchFingerprint";
|
|
|
|
|
import getState from "getState";
|
2026-07-23 10:11:24 +00:00
|
|
|
import ME from "ME";
|
|
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
let c5;
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_6;
|
|
|
|
|
const require = arg1;
|
2026-07-29 08:29:29 +00:00
|
|
|
({ AnalyticEvents: c5, AppStates: closure_6 } = ME);
|
|
|
|
|
const error = new require("timestamp")("index.native.tsx");
|
|
|
|
|
const tmp3 = new require("timestamp")("index.native.tsx");
|
2026-07-23 10:11:24 +00:00
|
|
|
let result = require("ME").fileFinishedImporting("modules/core/native/handleAppStateChanged.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function handleAppStateChanged(state) {
|
|
|
|
|
state = state.getState();
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = importDefault(10);
|
2026-07-23 10:11:24 +00:00
|
|
|
obj.markAndLog(closure_7, "\u{1F3C3}", "AppState changing from " + state + " to " + state);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = { type: "APP_STATE_UPDATE", state };
|
2026-07-29 08:29:29 +00:00
|
|
|
importDefault(709).dispatch(obj);
|
|
|
|
|
let isAuthenticatedResult = state === constants2.BACKGROUND && state === tmp6.ACTIVE;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (isAuthenticatedResult) {
|
|
|
|
|
isAuthenticatedResult = authenticated.isAuthenticated();
|
|
|
|
|
}
|
|
|
|
|
if (isAuthenticatedResult) {
|
2026-08-06 08:05:19 +00:00
|
|
|
isAuthenticatedResult = require(4356) /* createRTCConnection */.default.isDisconnected();
|
|
|
|
|
const _default = require(4356) /* createRTCConnection */.default;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (isAuthenticatedResult) {
|
2026-08-06 08:05:19 +00:00
|
|
|
let tmp2Result = tmp2(16875);
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp2Result.deferUpdate();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (state === constants2.ACTIVE) {
|
2026-08-06 08:05:19 +00:00
|
|
|
require(6855) /* getDeviceMetadata */.trackAppOpened("launcher");
|
|
|
|
|
const obj5 = require(6855) /* getDeviceMetadata */;
|
|
|
|
|
const result = require(4126) /* setSystemTheme */.setSystemThemeIfNeeded();
|
|
|
|
|
const obj6 = require(4126) /* setSystemTheme */;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp2Result = tmp2(9);
|
|
|
|
|
tmp2Result.appStateChanged(state);
|
|
|
|
|
if (tmp8) {
|
|
|
|
|
tmp2(698).track(constants.APP_BACKGROUND, {});
|
|
|
|
|
const tmp2Result1 = tmp2(698);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|