78 lines
4.8 KiB
TypeScript
78 lines
4.8 KiB
TypeScript
/* Metro module 15976; source: modules/guild_config_gates/GuildConfigGates.tsx; dependencies: [5, 15977, 661, 566, 507, 694, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import GuildConfigGatesStore from './GuildConfigGatesStore.tsx'; /* Metro dependency 15977 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
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 = Module00005;
|
|
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}]);
|
|
(FileImportTrackerModule).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 load_123570() { // fn#123570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16184:601, offset: 0x00d6afe6, size: 30 bytes, params: 1, frame: 13
|
|
return env0_3.apply(this, arguments);
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun123565, 15976, [5, 15977, 661, 566, 507, 694,
|
|
2]) /* metro module 15976, dependencies: [5, 15977, 661, 566, 507, 694, 2] */;
|