decord/source/stores/native/AppStateStore.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

62 lines
1.8 KiB
TypeScript

// Module ID: 1895
// Function ID: 1896
// Name: getState
// Dependencies: [17, 1074, 504, 1242, 1896, 573, 2]
// Module 1895 (getState)
import set from "set" /* 2 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import initializeDefault from "initialize" /* 504 */;
import dispatcherDefault from "dispatcher" /* 573 */;
import ME from "ME" /* 1074 */;
import asyncRequireImpl from "asyncRequireImpl" /* 1896 */;
import promise from "expandEventProperties" /* 1242 */;
const AppStates = ME.AppStates;
const currentState = get_ActivityIndicator.AppState.currentState;
let c2 = null;
const Store = initializeDefault.Store;
class AppStateStore extends Store {
}
const prototype = AppStateStore.prototype;
prototype["getState"] = function getState() {
return currentState;
};
prototype["getLastActiveTime"] = function getLastActiveTime() {
return c2;
};
AppStateStore.displayName = "AppStateStore";
require("expandEventProperties").then((addExtraAnalyticsDecorator) => {
const result = addExtraAnalyticsDecorator.addExtraAnalyticsDecorator((arg0) => {
arg0.client_app_state = closure_1;
});
});
const appStateStore = new AppStateStore(dispatcherDefault, {
APP_STATE_UPDATE: function handleAppStateUpdate(state) {
if (state === state.state) {
return false;
} else {
state = state.state;
if (state === AppStates.ACTIVE) {
const _Date = Date;
closure_2 = Date.now();
}
}
}
});
const obj = {
APP_STATE_UPDATE: function handleAppStateUpdate(state) {
if (state === state.state) {
return false;
} else {
state = state.state;
if (state === AppStates.ACTIVE) {
const _Date = Date;
closure_2 = Date.now();
}
}
}
};
let result = set.fileFinishedImporting("stores/native/AppStateStore.tsx");
export default appStateStore;