Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,68 @@
|
||||
/* 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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
/* Metro module 15977; source: modules/guild_config_gates/GuildConfigGatesStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun123573(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16185:6, offset: 0x02594402, size: 285 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let env0_5 = {};
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun123577(Store);
|
||||
value.displayName = 'GuildConfigGatesStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{GUILD_CONFIG_GATES_FETCH_SUCCESS: GUILD_CONFIG_GATES_FETCH_SUCCESS, LOGOUT: function() {
|
||||
env0_5 = {};
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_config_gates/GuildConfigGatesStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_123574() { // fn#123574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16185:148, offset: 0x0259451f, 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_123574_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun123577(a0) { // fn#123577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16185:356, offset: 0x02594581, size: 99 bytes, params: 2, frame: 16
|
||||
const closure = GuildConfigGatesStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'hasLoaded', value: value_123579}, {key: 'getGates', value: value_123580}]);
|
||||
}
|
||||
|
||||
function GUILD_CONFIG_GATES_FETCH_SUCCESS({guildId, guildVerificationRoleEnabled, applicationIdentityLinkedRolesEnabled}) { // fn#123581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16185:973, offset: 0x0259461e, size: 47 bytes, params: 2, frame: 5
|
||||
env0_5[guildId] = {guildVerificationRoleEnabled: guildVerificationRoleEnabled,
|
||||
applicationIdentityLinkedRolesEnabled: applicationIdentityLinkedRolesEnabled};
|
||||
}
|
||||
|
||||
function value_123579(a0) { // fn#123579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16185:690, offset: 0x025945e4, size: 22 bytes, params: 2, frame: 2
|
||||
return env1_5[a0] != null;
|
||||
}
|
||||
|
||||
function value_123580(a0) { // fn#123580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16185:744, offset: 0x025945fa, size: 36 bytes, params: 2, frame: 2
|
||||
return env1_5[a0] ?? ({'guildVerificationRoleEnabled': false, 'applicationIdentityLinkedRolesEnabled': false});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user