Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
+151
@@ -0,0 +1,151 @@
|
||||
/* Metro module 8937; source: modules/guild_member_verification/hooks/useCanReapplyToRejectedMemberVerificationApplication.tsx; dependencies: [5, 57, 31, 4097, 3970, 661, 566, 6717, 2] */
|
||||
function _fun69741(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9122:6, offset: 0x01ce108d, size: 207 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
const inviteStore = importDefault(4097) /* metro dependency 4097: InviteStore */;
|
||||
const userGuildJoinRequestStore = importDefault(3970) /* metro dependency 3970: UserGuildJoinRequestStore */;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_member_verification/hooks/useCanReapplyToRejectedMemberVerificationApplication.tsx');
|
||||
exports.useCanReapplyToRejectedMemberVerificationApplication = useCanReapplyToRejectedMemberVerificationApplication;
|
||||
}
|
||||
|
||||
function useCanReapplyToRejectedMemberVerificationApplication(a0) { // fn#69742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9122:355, offset: 0x01ce115c, size: 219 bytes, params: 2, frame: 19
|
||||
const env0_0 = a0;
|
||||
const binding = env0_5;
|
||||
const [property, env0_1] = env0_4(binding.useState(true), 2);
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildJoinRequestStore],
|
||||
_fun69743);
|
||||
binding.useEffect(_fun69748, [a0, binding.useCallback(_fun69744(), [])]);
|
||||
return {canReapply: value4 != null && value4.features.has(GuildFeatures.MEMBER_VERIFICATION_MANUAL_APPROVAL),
|
||||
isLoading: property};
|
||||
}
|
||||
|
||||
function _fun69743() { // fn#69743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9122:498, offset: 0x01ce1237, size: 42 bytes, params: 1, frame: 12
|
||||
return env0_0 != null ? UserGuildJoinRequestStore.getJoinRequestGuild(env0_0) : undefined;
|
||||
}
|
||||
|
||||
function _fun69744() { // fn#69744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9122:560, offset: 0x01ce1261, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun69746);
|
||||
return _fun69747;
|
||||
}
|
||||
|
||||
function _fun69748() { // fn#69748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9122:778, offset: 0x01ce1320, size: 58 bytes, params: 1, frame: 12
|
||||
if (env0_0 == null) {
|
||||
env0_1(false);
|
||||
} else {
|
||||
env0_1(true);
|
||||
env0_2(env0_0);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun69746(a0) { // fn#69746, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9122:580, offset: 0x01ce1290, size: 144 bytes, params: 2, frame: 17
|
||||
var binding;
|
||||
var getInviteKeyForGuildId;
|
||||
var value3;
|
||||
var value4;
|
||||
var binding2;
|
||||
var property;
|
||||
var fetchVerificationForm;
|
||||
var value5;
|
||||
var value6;
|
||||
var error;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
try {
|
||||
binding = env3_6;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
getInviteKeyForGuildId = binding.getInviteKeyForGuildId;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value3 = Reflect.apply(getInviteKeyForGuildId, binding, [a0]);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value4 = value3 == null;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(false);
|
||||
throw error;
|
||||
}
|
||||
if (value4) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(false);
|
||||
} else {
|
||||
try {
|
||||
binding = env3_1;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding2[7];
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value = binding(property);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
fetchVerificationForm = value.fetchVerificationForm;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(fetchVerificationForm, value, [a0, value3]);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(false);
|
||||
throw error;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value5 = false;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(false);
|
||||
throw error;
|
||||
}
|
||||
if (value5) {
|
||||
value6 = environment.__proto__.__proto__;
|
||||
importDefault(false);
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
importDefault(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/* Metro module 8936; source: modules/guild_member_verification/hooks/useCurrentUserGuildJoinRequest.tsx; dependencies: [3970, 566, 2] */
|
||||
function _fun69738(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9121:6, offset: 0x01ce0fa8, size: 114 bytes, params: 8, frame: 18
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const userGuildJoinRequestStore = importDefault(3970) /* metro dependency 3970: UserGuildJoinRequestStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_member_verification/hooks/useCurrentUserGuildJoinRequest.tsx');
|
||||
exports.useCurrentUserGuildJoinRequest = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[1]).useStateFromStores([UserGuildJoinRequestStore], _fun69740, [a0]);
|
||||
};
|
||||
}
|
||||
|
||||
function useCurrentUserGuildJoinRequest(a0) { // fn#69739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9121:247, offset: 0x01ce101a, size: 75 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildJoinRequestStore], _fun69740,
|
||||
[a0]);
|
||||
}
|
||||
|
||||
function _fun69740() { // fn#69740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9121:329, offset: 0x01ce1065, size: 40 bytes, params: 1, frame: 12
|
||||
const value2 = null;
|
||||
return value2 != env0_0 ? UserGuildJoinRequestStore.getRequest(env0_0) : value2;
|
||||
}
|
||||
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
/* Metro module 11950; source: modules/guild_member_verification/hooks/useGetJoinRequestAndGuildForInterviewChannel.tsx; dependencies: [57, 31, 1867, 3784, 7068, 3970, 661, 21, 566, 8934, 2] */
|
||||
function _fun91708(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12136:6, offset: 0x0206ee4a, size: 223 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const guildJoinRequestStore = importDefault(7068) /* metro dependency 7068: GuildJoinRequestStore */;
|
||||
const userGuildJoinRequestStore = importDefault(3970) /* metro dependency 3970: UserGuildJoinRequestStore */;
|
||||
const env0_9 = (require(661) /* metro dependency 661: Constants */).Permissions;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_member_verification/hooks/useGetJoinRequestAndGuildForInterviewChannel.tsx');
|
||||
exports.default = useGetJoinRequestAndGuildForInterviewChannel;
|
||||
}
|
||||
|
||||
function useGetJoinRequestAndGuildForInterviewChannel(a0) { // fn#91709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12136:311, offset: 0x0206ef29, size: 292 bytes, params: 2, frame: 20
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, [false]);
|
||||
const binding2 = env0_3;
|
||||
const value3 = binding2(value2, 2);
|
||||
const property = value3[0];
|
||||
const env0_0 = value3[1];
|
||||
useState = binding.useState;
|
||||
const value4 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value4[0];
|
||||
const env0_2 = value4[1];
|
||||
const value5 = (importDefault(21) /* metro dependency 21: SnowflakeUtils */).cast(a0);
|
||||
const value = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildJoinRequestStore,
|
||||
UserGuildJoinRequestStore, GuildStore, PermissionStore], _fun91710);
|
||||
const joinRequest = value.joinRequest;
|
||||
const guild = value.guild;
|
||||
binding.useEffect(_fun91711, [guild, property2]);
|
||||
binding.useEffect(_fun91712, [joinRequest, value5]);
|
||||
return {loading: property, joinRequest: joinRequest, joinRequestGuild: guild};
|
||||
}
|
||||
|
||||
function _fun91710() { // fn#91710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12136:516, offset: 0x0206f04d, size: 142 bytes, params: 1, frame: 16
|
||||
const value = environment.__proto__;
|
||||
const request = GuildJoinRequestStore.getRequest(env0_3);
|
||||
if (request == null) {
|
||||
return {'joinRequest': null, 'isModmin': false, 'guild': null};
|
||||
}
|
||||
const r1 = GuildStore.getGuild(request.guildId) ?? UserGuildJoinRequestStore.getJoinRequestGuild(request.guildId);
|
||||
return {joinRequest: request, isModmin: r1 != null && PermissionStore.can(Permissions.KICK_MEMBERS, r1), guild: r1};
|
||||
}
|
||||
|
||||
function _fun91711() { // fn#91711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12136:798, offset: 0x0206f0db, size: 73 bytes, params: 1, frame: 12
|
||||
var value;
|
||||
if (!(guild != null || env0_1)) {
|
||||
env0_2(true);
|
||||
value = environment.__proto__;
|
||||
value = importDefault(8934) /* metro dependency 8934: GuildJoinRequestActionCreators */;
|
||||
value.fetchRequestToJoinGuilds();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun91712() { // fn#91712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12136:880, offset: 0x0206f124, size: 88 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
var value2;
|
||||
if (joinRequest == null) {
|
||||
env0_0(true);
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(8934) /* metro dependency 8934: GuildJoinRequestActionCreators */).fetchJoinRequestForInterview(env0_3).finally(_fun91713);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 9320; source: modules/guild_member_verification/hooks/useGetJoinRequestGuild.tsx; dependencies: [31, 3970, 566, 8934, 2] */
|
||||
function _fun72810(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9506:6, offset: 0x01d5496f, size: 137 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const userGuildJoinRequestStore = importDefault(3970) /* metro dependency 3970: UserGuildJoinRequestStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_member_verification/hooks/useGetJoinRequestGuild.tsx');
|
||||
exports.default = useGetGuildJoinRequest;
|
||||
}
|
||||
|
||||
function useGetGuildJoinRequest(a0) { // fn#72811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9506:226, offset: 0x01d549f8, size: 135 bytes, params: 2, frame: 20
|
||||
const env0_0 = a0;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildJoinRequestStore],
|
||||
_fun72812);
|
||||
env0_3.useEffect(_fun72814,
|
||||
[(require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildJoinRequestStore], function() {
|
||||
return UserGuildJoinRequestStore.hasFetchedRequestToJoinGuilds;
|
||||
})]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun72812() { // fn#72812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9506:299, offset: 0x01d54a7f, size: 40 bytes, params: 1, frame: 12
|
||||
const value2 = null;
|
||||
return value2 == env0_0 ? value2 : UserGuildJoinRequestStore.getRequest(env0_0);
|
||||
}
|
||||
|
||||
function _fun72814() { // fn#72814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9506:426, offset: 0x01d54ab6, size: 49 bytes, params: 1, frame: 11
|
||||
var value;
|
||||
if (!hasFetchedRequestToJoinGuilds) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(8934) /* metro dependency 8934: GuildJoinRequestActionCreators */;
|
||||
value.fetchRequestToJoinGuilds();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/* Metro module 15008; source: modules/guild_member_verification/hooks/useOtherGuildJoinRequestsForUser.tsx; dependencies: [31, 7068, 566, 8934, 2] */
|
||||
function _fun113450(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15205:6, offset: 0x023fa856, size: 137 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const guildJoinRequestStore = importDefault(7068) /* metro dependency 7068: GuildJoinRequestStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_member_verification/hooks/useOtherGuildJoinRequestsForUser.tsx');
|
||||
exports.useOtherGuildJoinRequestsForUser = useOtherGuildJoinRequestsForUser;
|
||||
}
|
||||
|
||||
function useOtherGuildJoinRequestsForUser({guildId, userId, selectedJoinRequestId}) { // fn#113451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15205:263, offset: 0x023fa8df, size: 175 bytes, params: 2, frame: 20
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildJoinRequestStore],
|
||||
function() {
|
||||
return GuildJoinRequestStore.getRequestsForUser(guildId, userId);
|
||||
}, [guildId, userId]);
|
||||
const binding = value2;
|
||||
binding.useEffect(_fun113453, [guildId, userId, value2]);
|
||||
return binding.useMemo(_fun113454, [value2, selectedJoinRequestId]);
|
||||
}
|
||||
|
||||
function _fun113453() { // fn#113453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15205:447, offset: 0x023fa9b0, size: 62 bytes, params: 1, frame: 13
|
||||
var value2;
|
||||
var defaultImport;
|
||||
if (env0_3 == null) {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(8934) /* metro dependency 8934: GuildJoinRequestActionCreators */;
|
||||
defaultImport.fetchGuildJoinRequestsForUser(guildId, userId);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun113454() { // fn#113454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15205:526, offset: 0x023fa9ee, size: 71 bytes, params: 1, frame: 12
|
||||
let value = (env0_3 ?? []).filter(function({joinRequestId}) {
|
||||
return joinRequestId !== selectedJoinRequestId;
|
||||
});
|
||||
value = value.slice();
|
||||
return value.sort(function(a0, a1) {
|
||||
var Date = global.Date;
|
||||
var value2 = new Date(a1.createdAt);
|
||||
value2 = value2.getTime();
|
||||
Date = global.Date;
|
||||
var createdAt2 = a0.createdAt;
|
||||
var value3 = Object.create(Date.prototype, {constructor: {value: Date}});
|
||||
var value4 = new Date(createdAt2);
|
||||
return value2 - (value4 instanceof Object ? value4 : value3).getTime();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,514 @@
|
||||
/* Metro module 15010; source: modules/guild_member_verification/hooks/usePaginatedMemberApplications.tsx; dependencies: [5, 57, 31, 3972, 21, 8934, 4131, 2] */
|
||||
function _fun113461(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15207:6, offset: 0x023fac3a, size: 202 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
const MAX_RESULTS_PER_PAGE = (require(3972) /* metro dependency 3972: MemberVerificationTypes */).MAX_RESULTS_PER_PAGE;
|
||||
const MAX_VISIBLE_PAGES = (require(3972) /* metro dependency 3972: MemberVerificationTypes */).MAX_VISIBLE_PAGES;
|
||||
const value = MAX_RESULTS_PER_PAGE * MAX_VISIBLE_PAGES;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_member_verification/hooks/usePaginatedMemberApplications.tsx');
|
||||
exports.MEMBER_APPLICATION_FETCH_LIMIT = value;
|
||||
exports.usePaginatedMemberApplications = usePaginatedMemberApplications;
|
||||
}
|
||||
|
||||
function usePaginatedMemberApplications({guildId, guildJoinRequests}) { // fn#113462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15207:363, offset: 0x023fad04, size: 174 bytes, params: 2, frame: 19
|
||||
const binding = env0_5;
|
||||
const env0_2 = binding.useRef(false);
|
||||
let value = env0_4(binding.useState(null), 2);
|
||||
const property = value[0];
|
||||
var env0_4 = value[1];
|
||||
var env0_5 = binding.useRef(null);
|
||||
const env0_6 = binding.useRef(false);
|
||||
const useCallback = binding.useCallback;
|
||||
value = _fun113463();
|
||||
value = Reflect.apply(useCallback, binding, [value, [property, guildId, guildJoinRequests]]);
|
||||
return {fetchNextPage: value, error: property};
|
||||
}
|
||||
|
||||
function _fun113463() { // fn#113463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15207:545, offset: 0x023fadb2, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun113465);
|
||||
return _fun113466;
|
||||
}
|
||||
|
||||
function* _fun113465(a0, a1) { // fn#113465, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15207:565, offset: 0x023fade1, size: 680 bytes, params: 3, frame: 29
|
||||
var r7;
|
||||
var r14;
|
||||
var r10;
|
||||
var object2;
|
||||
var value;
|
||||
var value2;
|
||||
var current;
|
||||
var HermesInternal;
|
||||
var concat;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var binding;
|
||||
var binding2;
|
||||
var GuildJoinRequestApplicationStatuses;
|
||||
var SUBMITTED;
|
||||
var value7;
|
||||
var GuildJoinRequestSortOrders;
|
||||
var TIMESTAMP_DESC;
|
||||
var length;
|
||||
var property;
|
||||
var object3;
|
||||
var actionedAt;
|
||||
var joinRequestId;
|
||||
var value8;
|
||||
var fromTimestamp;
|
||||
var Date;
|
||||
var prototype;
|
||||
var value9;
|
||||
var date;
|
||||
var value10;
|
||||
var getTime;
|
||||
var binding3;
|
||||
var value11;
|
||||
var fetchGuildJoinRequests;
|
||||
var guildJoinRequests;
|
||||
var value12;
|
||||
var value13;
|
||||
var value14;
|
||||
var body;
|
||||
var guild_join_requests;
|
||||
var value15;
|
||||
var error;
|
||||
var binding4;
|
||||
var value16;
|
||||
var APIError;
|
||||
var aPIError;
|
||||
var value18;
|
||||
var getAnyErrorMessage;
|
||||
var value19;
|
||||
exceptionLanding73: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
current = dependencyMap.current;
|
||||
if (!current) {
|
||||
HermesInternal = global.HermesInternal;
|
||||
concat = HermesInternal.concat;
|
||||
value3 = '' + a0 + '-' + a1;
|
||||
current = env2_5.current;
|
||||
value4 = false;
|
||||
reducibleJoin4: while (true) {
|
||||
if (value3 === current) {
|
||||
r7 = value4;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
env2_5.current = value3;
|
||||
env2_6.current = value4;
|
||||
value5 = true;
|
||||
r7 = value5;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
current = env2_6.current;
|
||||
reducibleJoin74: while (true) {
|
||||
if (current) {
|
||||
break reducibleJoin74;
|
||||
}
|
||||
reducibleJoin7: while (true) {
|
||||
if (env2_3 == null) {
|
||||
break reducibleJoin7;
|
||||
}
|
||||
env2_4(null);
|
||||
break reducibleJoin7;
|
||||
}
|
||||
value6 = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_0;
|
||||
binding2 = env3_2;
|
||||
GuildJoinRequestApplicationStatuses = binding(binding2[3]).GuildJoinRequestApplicationStatuses;
|
||||
SUBMITTED = GuildJoinRequestApplicationStatuses.SUBMITTED;
|
||||
value7 = a1 === SUBMITTED;
|
||||
GuildJoinRequestSortOrders = binding(binding2[3]).GuildJoinRequestSortOrders;
|
||||
TIMESTAMP_DESC = GuildJoinRequestSortOrders.TIMESTAMP_DESC;
|
||||
if (a0 === TIMESTAMP_DESC) {
|
||||
reducibleJoin22: while (true) {
|
||||
reducibleJoin21: while (true) {
|
||||
if (r7) {
|
||||
break reducibleJoin21;
|
||||
}
|
||||
length = importDefault.length;
|
||||
if (length === 0) {
|
||||
break reducibleJoin21;
|
||||
}
|
||||
length = importDefault.length;
|
||||
property = importDefault[length - 1];
|
||||
if (value7) {
|
||||
joinRequestId = property.joinRequestId;
|
||||
r10 = joinRequestId;
|
||||
} else {
|
||||
actionedAt = property.actionedAt;
|
||||
r10 = actionedAt;
|
||||
}
|
||||
object2 = {before: r10};
|
||||
break reducibleJoin22;
|
||||
}
|
||||
binding = env3_1;
|
||||
value8 = binding(env3_2[4]);
|
||||
fromTimestamp = value8.fromTimestamp;
|
||||
Date = global.Date;
|
||||
prototype = Date.prototype;
|
||||
value9 = Object.create(prototype, {constructor: {value: Date}});
|
||||
date = new Date();
|
||||
value10 = date instanceof Object ? date : value9;
|
||||
getTime = value10.getTime;
|
||||
object2 = {before: Reflect.apply(fromTimestamp, value8, [Reflect.apply(getTime, value10, [])])};
|
||||
break reducibleJoin22;
|
||||
}
|
||||
} else {
|
||||
reducibleJoin22: while (true) {
|
||||
reducibleJoin14: while (true) {
|
||||
if (r7) {
|
||||
break reducibleJoin14;
|
||||
}
|
||||
length = importDefault.length;
|
||||
if (length === 0) {
|
||||
break reducibleJoin14;
|
||||
}
|
||||
length = importDefault.length;
|
||||
property = importDefault[length - 1];
|
||||
if (value7) {
|
||||
joinRequestId = property.joinRequestId;
|
||||
r14 = joinRequestId;
|
||||
} else {
|
||||
actionedAt = property.actionedAt;
|
||||
r14 = actionedAt;
|
||||
}
|
||||
object2 = {after: r14};
|
||||
break reducibleJoin22;
|
||||
}
|
||||
object2 = {after: require};
|
||||
break reducibleJoin22;
|
||||
}
|
||||
}
|
||||
reducibleJoin24: while (true) {
|
||||
reduciblePort72: while (true) {
|
||||
exceptionLanding56: while (true) {
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
break reducibleJoin24;
|
||||
}
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
binding4 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
property = binding4[6];
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
value16 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
APIError = value16.APIError;
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
prototype = APIError.prototype;
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
aPIError = new APIError();
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
value18 = aPIError instanceof Object ? aPIError : undefined;
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
getAnyErrorMessage = value18.getAnyErrorMessage;
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
value19 = Reflect.apply(getAnyErrorMessage, value18, []);
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
binding(value19);
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
break reduciblePort72;
|
||||
}
|
||||
dependencyMap.current = value4;
|
||||
break reducibleJoin74;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
dependencyMap.current = true;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env3_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding3 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding3[5];
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value11 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
fetchGuildJoinRequests = value11.fetchGuildJoinRequests;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object3.guildId = require;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object3.status = a1;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env3_6;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object3.limit = binding;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object3.force = true;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
copyDataProperties(object3, object2, undefined);
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
guildJoinRequests = Reflect.apply(fetchGuildJoinRequests, value11, [object3]);
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
yield guildJoinRequests;
|
||||
try {
|
||||
try {
|
||||
value12 = undefined;
|
||||
value13 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
if (value13) {
|
||||
dependencyMap.current = value4;
|
||||
return value12;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value14 = value12 == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
reducibleJoin54: while (true) {
|
||||
if (value14) {
|
||||
break reducibleJoin54;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
body = value12.body;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
guild_join_requests = body.guild_join_requests;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
length = guild_join_requests.length;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env3_6;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value15 = length < binding;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
if (value15) {
|
||||
try {
|
||||
try {
|
||||
binding = env2_6;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding.current = true;
|
||||
} catch (error) {
|
||||
break exceptionLanding56;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding73;
|
||||
}
|
||||
break reducibleJoin54;
|
||||
}
|
||||
break reducibleJoin54;
|
||||
}
|
||||
dependencyMap.current = value4;
|
||||
break reducibleJoin74;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
dependencyMap.current = value4;
|
||||
throw error;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/* Metro module 8925; source: modules/guild_member_verification/hooks/usePreviewDisabledGuild.tsx; dependencies: [31, 1867, 6616, 566, 6717, 1418, 2] */
|
||||
function _fun69640(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9110:6, offset: 0x01c7943e, size: 153 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const memberVerificationFormStore = importDefault(6616) /* metro dependency 6616: MemberVerificationFormStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_member_verification/hooks/usePreviewDisabledGuild.tsx');
|
||||
exports.default = usePreviewDisabledGuild;
|
||||
}
|
||||
|
||||
function usePreviewDisabledGuild(a0) { // fn#69641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9110:237, offset: 0x01c794d7, size: 184 bytes, params: 2, frame: 20
|
||||
var r1;
|
||||
var r0;
|
||||
const env0_0 = a0;
|
||||
var value;
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun69642);
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([MemberVerificationFormStore],
|
||||
_fun69643);
|
||||
env0_3.useEffect(_fun69644, [a0]);
|
||||
const value3 = null;
|
||||
if (value3 != guild) {
|
||||
r0 = guild;
|
||||
} else {
|
||||
if (value3 != value2) {
|
||||
value = require(1418) /* metro dependency 1418: GuildRecordUtils */;
|
||||
value = value.fromVerificationGateGuild(value2);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value3;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun69643() { // fn#69643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9110:365, offset: 0x01c795aa, size: 42 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return MemberVerificationFormStore.get(env0_0)?.guild;
|
||||
}
|
||||
|
||||
function _fun69644() { // fn#69644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9110:440, offset: 0x01c795d4, size: 57 bytes, params: 1, frame: 12
|
||||
var value2;
|
||||
if (env0_0 != null) {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(6717) /* metro dependency 6717: MemberVerificationActionCreators */).fetchVerificationForm(env0_0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
/* Metro module 6664; source: modules/guild_member_verification/hooks/useShowMemberVerificationGate.tsx; dependencies: [1945, 1867, 1878, 6665, 566, 2] */
|
||||
function _fun52612(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6842:6, offset: 0x0133310a, size: 159 bytes, params: 8, frame: 20
|
||||
let env0_0 = require;
|
||||
const closure = shouldShowMembershipVerificationGate;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_member_verification/hooks/useShowMemberVerificationGate.tsx');
|
||||
exports.shouldShowMembershipVerificationGate = closure;
|
||||
exports.useShowMemberVerificationGate = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[4]).useStateFromStores([GuildStore, UserStore, GuildMemberStore], _fun52615, [a0]);
|
||||
};
|
||||
}
|
||||
|
||||
function shouldShowMembershipVerificationGate(a0) { // fn#52613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6842:126, offset: 0x013331a9, size: 266 bytes, params: 2, frame: 19
|
||||
var r1;
|
||||
var r0;
|
||||
var r2;
|
||||
var r6;
|
||||
var item3;
|
||||
var item4;
|
||||
var moduleValue;
|
||||
let value = a1;
|
||||
const value2 = undefined;
|
||||
const iterator = (value !== value2 ? value : [GuildStore, UserStore, GuildMemberStore])[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const r3 = item2 === value2 ? value2 : item;
|
||||
if (value) {
|
||||
r0 = item2;
|
||||
r1 = value;
|
||||
r2 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value = item3 === value2;
|
||||
if (value) {
|
||||
r0 = item3;
|
||||
r1 = value;
|
||||
r2 = value2;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r1 = value;
|
||||
r2 = item;
|
||||
}
|
||||
}
|
||||
if (r1) {
|
||||
r6 = value2;
|
||||
} else {
|
||||
item4 = Reflect.apply(iterator2, r0, []);
|
||||
item = item4.value;
|
||||
item4 = item4.done ? undefined : r0;
|
||||
value = item4 === value2;
|
||||
if (value) {
|
||||
r0 = item4;
|
||||
r1 = value;
|
||||
r6 = value2;
|
||||
} else {
|
||||
r0 = item4;
|
||||
r1 = value;
|
||||
r6 = item;
|
||||
}
|
||||
}
|
||||
if (!r1) {
|
||||
r0.return();
|
||||
}
|
||||
if (a0 == null) {
|
||||
return false;
|
||||
}
|
||||
value = r3.getGuild(a0);
|
||||
const currentUser = r2.getCurrentUser();
|
||||
r0 = currentUser != null && ((r6.getMember(a0, currentUser.id) == null ? value2 : r6.getMember(a0,
|
||||
currentUser.id).isPending) ?? (r6.getMember(a0, currentUser.id) == null ? value2 : r6.getMember(a0,
|
||||
currentUser.id).isPending) != null);
|
||||
if (r0) {
|
||||
moduleValue = require(6665) /* metro dependency 6665: MemberVerificationUtils */;
|
||||
value = !!moduleValue.guildHasVerificationGate(value);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useShowMemberVerificationGate(a0) { // fn#52614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6842:599, offset: 0x013332b3, size: 89 bytes, params: 2, frame: 17
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore, UserStore, GuildMemberStore],
|
||||
_fun52615, [a0]);
|
||||
}
|
||||
|
||||
function _fun52615() { // fn#52615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6842:684, offset: 0x0133330c, size: 65 bytes, params: 1, frame: 15
|
||||
return env0_0 != null && shouldShowMembershipVerificationGate(env0_0, [GuildStore, UserStore, GuildMemberStore]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/* Metro module 15009; source: modules/guild_member_verification/hooks/useSortedMemberApplications.tsx; dependencies: [31, 7068, 566, 3972, 2] */
|
||||
function _fun113457(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15206:6, offset: 0x023faaad, size: 133 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const guildJoinRequestStore = importDefault(7068) /* metro dependency 7068: GuildJoinRequestStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_member_verification/hooks/useSortedMemberApplications.tsx');
|
||||
exports.useSortedMemberApplications = useSortedMemberApplications;
|
||||
}
|
||||
|
||||
function useSortedMemberApplications({guildId, applicationStatus, sortOrder}) { // fn#113458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15206:251, offset: 0x023fab32, size: 149 bytes, params: 2, frame: 19
|
||||
const env0_2 = sortOrder;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildJoinRequestStore],
|
||||
function() {
|
||||
return GuildJoinRequestStore.getRequests(guildId, applicationStatus);
|
||||
}, [applicationStatus, guildId]);
|
||||
const binding = env0_2;
|
||||
const useMemo = binding.useMemo;
|
||||
return {guildJoinRequests: Reflect.apply(useMemo, binding, [_fun113460, [sortOrder, value2]])};
|
||||
}
|
||||
|
||||
function _fun113460() { // fn#113460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15206:438, offset: 0x023fabe7, size: 83 bytes, params: 1, frame: 15
|
||||
var r0;
|
||||
var binding;
|
||||
var items2;
|
||||
const sortOrderBinding = sortOrder;
|
||||
const GuildJoinRequestSortOrders = (require(3972) /* metro dependency 3972: MemberVerificationTypes */).GuildJoinRequestSortOrders;
|
||||
const TIMESTAMP_DESC = GuildJoinRequestSortOrders.TIMESTAMP_DESC;
|
||||
if (sortOrderBinding === TIMESTAMP_DESC) {
|
||||
binding = env0_3;
|
||||
items2 = [];
|
||||
arraySpread(items2, binding, 0, require);
|
||||
r0 = items2.reverse();
|
||||
} else {
|
||||
r0 = env0_3;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/* Metro module 14596; source: modules/guild_member_verification/hooks/useSubmittedGuildJoinRequestTotal.tsx; dependencies: [7068, 566, 2] */
|
||||
function _fun110370(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14793:6, offset: 0x02376e1c, size: 114 bytes, params: 8, frame: 18
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const guildJoinRequestStore = importDefault(7068) /* metro dependency 7068: GuildJoinRequestStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_member_verification/hooks/useSubmittedGuildJoinRequestTotal.tsx');
|
||||
exports.useSubmittedGuildJoinRequestTotal = function({guildId}) {
|
||||
var env0_0 = guildId;
|
||||
return require(dependencyMap[1]).useStateFromStores([GuildJoinRequestStore], _fun110372, [guildId]);
|
||||
};
|
||||
}
|
||||
|
||||
function useSubmittedGuildJoinRequestTotal({guildId}) { // fn#110371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14793:253, offset: 0x02376e8e, size: 80 bytes, params: 2, frame: 16
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildJoinRequestStore], _fun110372,
|
||||
[guildId]);
|
||||
}
|
||||
|
||||
function _fun110372() { // fn#110372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14793:348, offset: 0x02376ede, size: 44 bytes, params: 1, frame: 12
|
||||
return guildId != null ? GuildJoinRequestStore.getSubmittedGuildJoinRequestTotal(guildId) : undefined;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user