/* Metro module 15976; source: modules/guild_config_gates/GuildConfigGates.tsx; dependencies: [5, 15977, 661, 566, 507, 694, 2] */ function _fun123565(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16184:6, offset: 0x0259418e, size: 248 bytes, params: 8, frame: 21 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = importDefault(5) /* metro dependency 5 */; const guildConfigGatesStore = importDefault(15977) /* metro dependency 15977: GuildConfigGatesStore */; const env0_5 = (require(661) /* metro dependency 661: Constants */).Endpoints; const fluxModule = require(566) /* metro dependency 566: flux */; const createFetchStore = fluxModule.createFetchStore; const env0_3 = value(_fun123569); const env0_6 = Reflect.apply(createFetchStore, fluxModule, [guildConfigGatesStore, {getQueryId: function(a0) { var value = a0; var value2 = null; return value2 != value ? value : value2; }, get: function(a0) { var value = null; return value == a0 ? value : GuildConfigGatesStore.hasLoaded(a0) ? GuildConfigGatesStore.getGates(a0) : value; }, load: load_123570}]); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_config_gates/GuildConfigGates.tsx'); exports.useGuildVerificationRoleEnabled = useGuildVerificationRoleEnabled; exports.useApplicationIdentityLinkedRolesEnabled = useApplicationIdentityLinkedRolesEnabled; } function* _fun123569(a0) { // fn#123569, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16184:262, offset: 0x025942dd, size: 195 bytes, params: 2, frame: 18 let value = undefined; if (false) { return value; } if (a0 != null) { value = environment.__proto__; var binding = env1_0; var HTTP = binding(env1_2[4]).HTTP; var get = HTTP.get; binding = env1_5; var GUILD_CONFIG_GATES = binding.GUILD_CONFIG_GATES; yield Reflect.apply(get, HTTP, [Reflect.apply(GUILD_CONFIG_GATES, binding, [a0])]); var value3 = undefined; if (false) { return value3; } var body = value3.body; binding = env1_1; value = binding(env1_2[5]); var dispatch = value.dispatch; var guild_verification_role_enabled = body.guild_verification_role_enabled; var value5 = guild_verification_role_enabled != null; var application_identity_linked_roles_enabled = body.application_identity_linked_roles_enabled; Reflect.apply(dispatch, value, [{type: 'GUILD_CONFIG_GATES_FETCH_SUCCESS', guildId: a0, guildVerificationRoleEnabled: value5 && guild_verification_role_enabled, applicationIdentityLinkedRolesEnabled: application_identity_linked_roles_enabled != null && application_identity_linked_roles_enabled}]); } } function useGuildVerificationRoleEnabled(a0) { // fn#123571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16184:762, offset: 0x025943a0, size: 49 bytes, params: 2, frame: 12 const value = undefined; const data = env0_6(a0).data; const guildVerificationRoleEnabled = data == null ? value : data.guildVerificationRoleEnabled; return guildVerificationRoleEnabled != null && guildVerificationRoleEnabled; } function useApplicationIdentityLinkedRolesEnabled(a0) { // fn#123572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16184:936, offset: 0x025943d1, size: 49 bytes, params: 2, frame: 12 const value = undefined; const data = env0_6(a0).data; const applicationIdentityLinkedRolesEnabled = data == null ? value : data.applicationIdentityLinkedRolesEnabled; return applicationIdentityLinkedRolesEnabled != null && applicationIdentityLinkedRolesEnabled; }