Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,79 @@
/* Metro module 11982; source: components_native/warnings/GuildNSFW.tsx; dependencies: [29, 31, 1867, 1229, 33, 566, 5072, 4813, 6593, 5263, 5074, 1244, 11983, 2] */
function _fun91972(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12168:6, offset: 0x020785e1, size: 210 bytes, params: 8, frame: 19
const env0_0 = require;
const env0_3 = ['modalType'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const env0_7 = (require(1229) /* metro dependency 1229: AgeGateConstants */).AgeGateSource;
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/warnings/GuildNSFW.tsx');
exports.default = GuildNSFW;
}
function GuildNSFW(a0) { // fn#91973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12168:190, offset: 0x020786b3, size: 576 bytes, params: 2, frame: 21
var object2;
const env0_0 = a0;
const closure = onDisagree;
const value2 = undefined;
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun91975);
const value3 = (require(5072) /* metro dependency 5072: AgeGateUtils */).useAgeGateVerifyContentForGuild(guild);
const modalType = value3.modalType;
let binding = env0_4;
const value4 = binding(value3, env0_3);
const ageVerificationUtilsModule = require(4813) /* metro dependency 4813: AgeVerificationUtils */;
const useMaybePerformReactiveCheckForSource = ageVerificationUtilsModule.useMaybePerformReactiveCheckForSource;
const NSFW_SERVER = AgeGateSource.NSFW_SERVER;
Reflect.apply(useMaybePerformReactiveCheckForSource, ageVerificationUtilsModule, [NSFW_SERVER]);
binding = env0_5;
const value5 = binding.useCallback(function() {
var defaultImport = importDefault(dependencyMap[9]);
var object = {};
object.entryPoint = require(dependencyMap[10]).AgeVerificationModalEntryPoint.NSFW_GUILD;
defaultImport.showAgeVerificationGetStartedModal(object);
}, []);
object2 = {};
copyDataProperties(object2, value4, binding);
object2['guildId'] = guild == null ? value2 : guild.id;
object2['channelId'] = a0.channelId;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2['disagreement'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/g10LC']);
const NsfwSpaceWarningModalType = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).NsfwSpaceWarningModalType;
const NSFW_CHANNEL_AGE_VERIFY = NsfwSpaceWarningModalType.NSFW_CHANNEL_AGE_VERIFY;
if (NSFW_CHANNEL_AGE_VERIFY === modalType) {
return ((Component) => <Component modalType={modalType} onAgree={value5} onDisagree={closure} {...object2} />)(importDefault(11983) /* metro dependency 11983: GatedContent */);
}
const GUILD_LARGE_SERVER = NsfwSpaceWarningModalType.GUILD_LARGE_SERVER;
if (GUILD_LARGE_SERVER === modalType) {
return ((Component) => <Component modalType={modalType} onAgree={value5} onDisagree={closure} {...object2} />)(importDefault(11983) /* metro dependency 11983: GatedContent */);
}
const NSFW_CHANNEL_UNDERAGE = NsfwSpaceWarningModalType.NSFW_CHANNEL_UNDERAGE;
if (NSFW_CHANNEL_UNDERAGE === modalType) {
return ((Component) => <Component modalType={modalType} disagreementButtonVariant="primary" onDisagree={closure} {...object2} />)(importDefault(11983) /* metro dependency 11983: GatedContent */);
}
return ((Component) => <Component modalType={modalType} onAgree={onAgree} onDisagree={closure} {...object2} />)(importDefault(11983) /* metro dependency 11983: GatedContent */);
}
function onDisagree() { // fn#91974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12168:346, owner: GuildNSFW.onDisagree, offset: 0x020788f3, size: 76 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
const nsfwReturnToSafety = value.nsfwReturnToSafety;
const binding = env0_0;
Reflect.apply(nsfwReturnToSafety, value, [binding.guildId]);
if (binding.onReturnToSafety != null) {
env0_0.onReturnToSafety();
}
}
function _fun91975() { // fn#91975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12168:250, offset: 0x0207893f, size: 32 bytes, params: 1, frame: 11
return GuildStore.getGuild(env0_0.guildId);
}
function GuildNSFWOnAgree() { // fn#91977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12168:1189, owner: GuildNSFW.onAgree, offset: 0x020789a8, size: 50 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
value.nsfwAgree(env0_0.guildId);
}