Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,56 @@
|
||||
/* Metro module 11966; source: modules/hub/useIsHubRealNamePromptShowing.tsx; dependencies: [31, 11967, 1945, 1867, 1878, 661, 11968, 566, 11969, 2] */
|
||||
function _fun91856(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12152:6, offset: 0x020750ce, size: 229 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 guildPromptsStore = importDefault(11967) /* metro dependency 11967: GuildPromptsStore */;
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
|
||||
const env0_9 = (require(11968) /* metro dependency 11968: Constants */).GuildPrompts;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/useIsHubRealNamePromptShowing.tsx');
|
||||
exports.default = useIsHubRealNamePromptShowing;
|
||||
}
|
||||
|
||||
function useIsHubRealNamePromptShowing(a0) { // fn#91857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12152:282, offset: 0x020751b3, size: 134 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore, GuildPromptsStore,
|
||||
UserStore, GuildMemberStore], _fun91858);
|
||||
env0_3.useEffect(_fun91859, [value2, a0]);
|
||||
return value2 === true;
|
||||
}
|
||||
|
||||
function _fun91858() { // fn#91858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12152:368, offset: 0x02075239, size: 184 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__;
|
||||
const guild = GuildStore.getGuild(env0_0);
|
||||
const value4 = undefined;
|
||||
if ((guild == null ? value4 : guild.features.has(GuildFeatures.HUB)) !== true) {
|
||||
return null;
|
||||
}
|
||||
const hasViewedPrompt = GuildPromptsStore.hasViewedPrompt;
|
||||
const REAL_NAME_PROMPT = GuildPrompts.REAL_NAME_PROMPT;
|
||||
if (Reflect.apply(hasViewedPrompt, GuildPromptsStore, [REAL_NAME_PROMPT, guild.id]) === true) {
|
||||
return null;
|
||||
}
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
if (currentUser == null) {
|
||||
return null;
|
||||
}
|
||||
value = GuildMemberStore.getMember(guild.id, currentUser == null ? value4 : currentUser.id);
|
||||
return (value == null ? value4 : value.nick) == null;
|
||||
}
|
||||
|
||||
function _fun91859() { // fn#91859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12152:667, offset: 0x020752f1, size: 89 bytes, params: 1, frame: 14
|
||||
var value4;
|
||||
var defaultImport;
|
||||
if (env0_0 != null && env0_1 != null) {
|
||||
if (!env0_1) {
|
||||
value4 = environment.__proto__;
|
||||
defaultImport = importDefault(11969) /* metro dependency 11969: GuildPromptsActionCreators */;
|
||||
defaultImport.viewPrompt(GuildPrompts.REAL_NAME_PROMPT, env0_0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user