decord/source/stores/native/AppStateStore.tsx

49 lines
1.5 KiB
TypeScript
Raw Normal View History

// Module ID: 1895
// Function ID: 1896
// Name: AppStateStore
// Dependencies: [17, 1074, 504, 1242, 1896, 573, 2]
2026-07-23 10:11:24 +00:00
// Module 1895 (AppStateStore)
import _mod17 from "module_17" /* 17 */;
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
import Constants from "Constants" /* 1074 */;
import asyncRequireImpl from "asyncRequireImpl" /* 1896 */;
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
const AppStates = Constants.AppStates;
let state = _mod17.AppState.currentState;
let closure_2 = null;
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class AppStateStore extends Store {
}
const prototype = AppStateStore.prototype;
prototype["getState"] = function getState() {
return state;
2026-07-29 08:29:29 +00:00
};
prototype["getLastActiveTime"] = function getLastActiveTime() {
return closure_2;
2026-07-29 08:29:29 +00:00
};
AppStateStore.displayName = "AppStateStore";
asyncRequireImpl(1242, dependencyMap.paths).then((addExtraAnalyticsDecorator) => {
2026-07-20 16:05:17 +00:00
const result = addExtraAnalyticsDecorator.addExtraAnalyticsDecorator((arg0) => {
arg0.client_app_state = client_app_state;
2026-07-20 16:05:17 +00:00
});
});
const appStateStore = new AppStateStore(DispatcherDefault, {
2026-07-20 16:05:17 +00:00
APP_STATE_UPDATE: function handleAppStateUpdate(state) {
2026-07-23 10:11:24 +00:00
if (state === state.state) {
2026-07-20 16:05:17 +00:00
return false;
} else {
state = state.state;
if (state === AppStates.ACTIVE) {
const _Date = Date;
2026-08-24 06:08:38 +00:00
closure_2 = Date.now();
2026-07-20 16:05:17 +00:00
}
}
}
});
let result = size.fileFinishedImporting("stores/native/AppStateStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default appStateStore;