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

86 lines
5.0 KiB
TypeScript

/* Metro module 5073; source: stores/GuildNSFWAgreeStore.tsx; dependencies: [6, 7, 15, 17, 18, 587, 5072, 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 StorageModule from '../external/discord_common/js/packages/storage/Storage.tsx'; /* Metro dependency 587 */
function _fun43996(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5251:6, offset: 0x01165274, size: 275 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_7 = {};
const Store = (Flux).Store;
let value = _fun44000(Store);
value.displayName = 'GuildNSFWAgreeStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {GUILD_NSFW_AGREE: GUILD_NSFW_AGREE});
(FileImportTrackerModule).fileFinishedImporting('stores/GuildNSFWAgreeStore.tsx');
exports.default = value;
function _isNativeReflectConstruct_43997() { // fn#43997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5251:148, offset: 0x01165387, 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_43997_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun44000(a0) { // fn#44000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5251:380, offset: 0x011653e5, size: 91 bytes, params: 2, frame: 16
const GuildNSFWAgreeStore2 = GuildNSFWAgreeStore;
Inherits(GuildNSFWAgreeStore2, a0);
return CreateClass(GuildNSFWAgreeStore2, [{key: 'initialize', value: value_44002}, {key: 'didAgree',
value: value_44003}]);
function GuildNSFWAgreeStore() { // fn#44001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5251:392, offset: 0x00c6223c, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, GuildNSFWAgreeStore);
const value3 = env1_5(GuildNSFWAgreeStore);
return env1_4(this, _isNativeReflectConstruct_43997() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function value_44002() { // fn#44002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5251:705, offset: 0x01165440, size: 63 bytes, params: 1, frame: 13
const Storage = (StorageModule).Storage;
env1_7 = Storage.get('GuildNSFWAgreeStore') ?? env1_7;
}
function value_44003(a0) { // fn#44003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5251:785, offset: 0x0116547f, size: 74 bytes, params: 2, frame: 14
return a0 != null && (!(require(5072) /* metro dependency 5072: AgeGateUtils */).shouldAgeVerifyForAgeGate() && (env1_7[a0] || false));
}
}
function GUILD_NSFW_AGREE({guildId}) { // fn#44004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5251:958, offset: 0x011654c9, size: 72 bytes, params: 2, frame: 14
env0_7[guildId] = true;
const Storage = (StorageModule).Storage;
Storage.set('GuildNSFWAgreeStore', env0_7);
}
}
global.__d(_fun43996, 5073, [6, 7, 15, 17, 18, 587, 5072, 566, 694,
2]) /* metro module 5073, dependencies: [6, 7, 15, 17, 18, 587, 5072, 566, 694, 2] */;