decord/source/stores/native/AppStateStore.tsx

99 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 6651
2026-07-24 07:16:23 +00:00
// Function ID: 51100
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 27, 653, 566, 675, 1934, 686, 2]
// Module 6651 (_isNativeReflectConstruct)
import ME from "ME";
import initialize from "initialize";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
import { AppStates } from "ME";
import promise from "expandLocation";
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
let ME = !valueOf.call(Reflect.construct(Boolean, [], () => {
2026-07-20 16:05:17 +00:00
}));
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
return ME;
2026-07-20 16:05:17 +00:00
}
const result = _isNativeReflectConstruct();
}
2026-07-23 10:11:24 +00:00
const currentState = require("get ActivityIndicator").AppState.currentState;
let c7 = null;
let tmp2 = ((Store) => {
2026-07-20 16:05:17 +00:00
class AppStateStore {
constructor() {
self = this;
tmp = AppStateStore(this, AppStateStore);
2026-07-23 10:11:24 +00:00
obj = outer1_3(AppStateStore);
tmp2 = outer1_2;
if (outer1_8()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_3;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_3(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(AppStateStore, Store);
let obj = {
key: "getState",
value() {
2026-07-23 10:11:24 +00:00
return outer1_6;
2026-07-20 16:05:17 +00:00
}
};
const items = [obj, ];
obj = {
key: "getLastActiveTime",
value() {
2026-07-23 10:11:24 +00:00
return outer1_7;
2026-07-20 16:05:17 +00:00
}
};
items[1] = obj;
return callback(AppStateStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").Store);
2026-07-20 16:05:17 +00:00
tmp2.displayName = "AppStateStore";
2026-07-23 10:11:24 +00:00
require("expandLocation").then((addExtraAnalyticsDecorator) => {
2026-07-20 16:05:17 +00:00
const result = addExtraAnalyticsDecorator.addExtraAnalyticsDecorator((arg0) => {
2026-07-23 10:11:24 +00:00
arg0.client_app_state = outer1_6;
2026-07-20 16:05:17 +00:00
});
});
2026-07-23 10:11:24 +00:00
tmp2 = new tmp2(require("dispatcher"), {
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;
let closure_7 = Date.now();
}
}
}
});
2026-07-23 10:11:24 +00:00
let obj = {
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;
let closure_7 = Date.now();
}
}
}
};
2026-07-23 10:11:24 +00:00
let result = require("_possibleConstructorReturn").fileFinishedImporting("stores/native/AppStateStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp2;