Files
discord-decomp/sources/modules/age_gate/AgeGateStore.tsx
T
2026-07-28 01:06:53 +03:00

80 lines
4.1 KiB
TypeScript

/* Metro module 14307; source: modules/age_gate/AgeGateStore.tsx; dependencies: [6, 7, 15, 17, 18, 1229, 566, 694, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AgeGateConstantsModule from './AgeGateConstants.tsx'; /* Metro dependency 1229 */
function _fun108278(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14504:6, offset: 0x0231ad70, size: 301 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(AgeGateConstantsModule).AGE_GATE_REGISTER_TIMEOUT_MS;
const Store = (Flux).Store;
let value = _fun108282(Store);
value.displayName = 'AgeGateStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{AGE_GATE_PREVENT_UNDERAGE_REGISTRATION: function() {
env0_5 = true;
var Date = global.Date;
Date.now();
}, LOGIN_SUCCESS: function() {
env0_5 = false;
}});
(FileImportTrackerModule).fileFinishedImporting('modules/age_gate/AgeGateStore.tsx');
exports.default = value;
function _isNativeReflectConstruct_108279() { // fn#108279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14504:185, offset: 0x0231ae9d, size: 98 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_108279_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun108282(a0) { // fn#108282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14504:393, offset: 0x0231aeff, size: 74 bytes, params: 2, frame: 15
const AgeGateStore2 = AgeGateStore;
Inherits(AgeGateStore2, a0);
return CreateClass(AgeGateStore2, [{key: 'isUnderageAnonymous', value: value_108284}]);
function AgeGateStore() { // fn#108283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14504:405, offset: 0x00c7a0d6, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, AgeGateStore);
const value3 = env1_3(AgeGateStore);
return env1_2(this, _isNativeReflectConstruct_108279() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function value_108284() { // fn#108284, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
return env1_5;
}
}
}
global.__d(_fun108278, 14307, [6, 7, 15, 17, 18, 1229, 566, 694,
2]) /* metro module 14307, dependencies: [6, 7, 15, 17, 18, 1229, 566, 694, 2] */;