Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
48 lines
1.5 KiB
TypeScript
48 lines
1.5 KiB
TypeScript
// Module ID: 1895
|
|
// Function ID: 1896
|
|
// Name: AppStateStore
|
|
// Dependencies: [17, 1074, 504, 1242, 1896, 573, 2]
|
|
|
|
// 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 */;
|
|
|
|
const AppStates = Constants.AppStates;
|
|
let state = _mod17.AppState.currentState;
|
|
let closure_2 = null;
|
|
const Store = initializeDefault.Store;
|
|
class AppStateStore extends Store {
|
|
}
|
|
const prototype = AppStateStore.prototype;
|
|
prototype["getState"] = function getState() {
|
|
return state;
|
|
};
|
|
prototype["getLastActiveTime"] = function getLastActiveTime() {
|
|
return closure_2;
|
|
};
|
|
AppStateStore.displayName = "AppStateStore";
|
|
asyncRequireImpl(1242, dependencyMap.paths).then((addExtraAnalyticsDecorator) => {
|
|
const result = addExtraAnalyticsDecorator.addExtraAnalyticsDecorator((arg0) => {
|
|
arg0.client_app_state = client_app_state;
|
|
});
|
|
});
|
|
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();
|
|
}
|
|
}
|
|
}
|
|
});
|
|
let result = size.fileFinishedImporting("stores/native/AppStateStore.tsx");
|
|
|
|
export default appStateStore;
|