Files
2026-07-28 01:06:53 +03:00

95 lines
4.6 KiB
TypeScript

/* Metro module 7030; source: stores/native/AppStateStore.tsx; dependencies: [6, 7, 15, 17, 18, 27, 661, 566, 683, 1962, 694, 2] */
function _fun55720(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7208:6, offset: 0x013af805, size: 360 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(dependencyMap[0]);
const env0_1 = importDefault(dependencyMap[1]);
const env0_2 = importDefault(dependencyMap[2]);
const env0_3 = importDefault(dependencyMap[3]);
const env0_4 = importDefault(dependencyMap[4]);
const AppState = require(dependencyMap[5]).AppState;
const env0_5 = require(dependencyMap[6]).AppStates;
let env0_6 = AppState.currentState;
const Store = importDefault(dependencyMap[7]).Store;
let value = _fun55724(Store);
value.displayName = 'AppStateStore';
require(dependencyMap[9])(dependencyMap[8], dependencyMap.paths).then(function({addExtraAnalyticsDecorator}) {
addExtraAnalyticsDecorator(_fun55729);
});
value = new value(importDefault(dependencyMap[10]), {APP_STATE_UPDATE: function(a0) {
if (currentState === a0.state) {
return false;
}
var property = a0.state;
env0_6 = property;
if (property === AppStates.ACTIVE) {
env0_7 = global.Date.now();
}
}});
require(dependencyMap[11]).fileFinishedImporting('stores/native/AppStateStore.tsx');
exports.default = value;
function _isNativeReflectConstruct_55721() { // fn#55721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7208:187, offset: 0x013af96d, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_55721_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun55724(a0) { // fn#55724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7208:414, offset: 0x013af9cb, size: 93 bytes, params: 2, frame: 16
const AppStateStore2 = AppStateStore;
env0_4(AppStateStore2, a0);
return env0_1(AppStateStore2, [{key: 'getState', value: function() {
return currentState;
}}, {key: 'getLastActiveTime', value: value_55727}]);
function AppStateStore() { // fn#55725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7208:426, offset: 0x00e4046a, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, AppStateStore);
const value3 = env1_3(AppStateStore);
return env1_2(this, _isNativeReflectConstruct_55721() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function value_55727() { // fn#55727, offset: 0x00fbd9cb, size: 9 bytes, params: 1, frame: 1
return env1_7;
}
}
function _fun55728({addExtraAnalyticsDecorator}) { // fn#55728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7208:858, offset: 0x013afa28, size: 25 bytes, params: 2, frame: 11
addExtraAnalyticsDecorator(function(a0) {
a0.client_app_state = currentState;
});
function _fun55729(a0) { // fn#55729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7208:896, offset: 0x013afa41, size: 20 bytes, params: 2, frame: 2
a0.client_app_state = currentState;
}
}
}
global.__d(_fun55720, 7030, [6, 7, 15, 17, 18, 27, 661, 566, 683, 1962, 694,
2]) /* metro module 7030, dependencies: [6, 7, 15, 17, 18, 27, 661, 566, 683, 1962, 694, 2] */;