2026-10-12 16:32:48 +00:00
|
|
|
// Module ID: 12544
|
|
|
|
|
// Function ID: 12545
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: useIsHubRealNamePromptShowing
|
2026-10-12 16:32:48 +00:00
|
|
|
// Dependencies: [19, 12545, 2125, 2087, 1390, 1085, 12546, 558, 576, 504, 12547, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-12 16:32:48 +00:00
|
|
|
// Module 12544 (useIsHubRealNamePromptShowing)
|
2026-10-07 22:43:51 +00:00
|
|
|
import Constants from "Constants" /* 1085 */;
|
2026-10-12 16:32:48 +00:00
|
|
|
import Constants2 from "Constants" /* 12546 */;
|
|
|
|
|
import GuildPromptsActionCreatorsDefault from "GuildPromptsActionCreators" /* 12547 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import react from "react" /* 19 */;
|
2026-10-12 16:32:48 +00:00
|
|
|
import GuildPromptsStore from "GuildPromptsStore" /* 12545 */;
|
|
|
|
|
import GuildMemberStore from "GuildMemberStore" /* 2125 */;
|
|
|
|
|
import GuildStore from "GuildStore" /* 2087 */;
|
|
|
|
|
import UserStore from "UserStore" /* 1390 */;
|
2026-10-02 13:37:24 +00:00
|
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
const require = globalThis.__r;
|
2026-10-01 14:13:23 +00:00
|
|
|
let _require;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
const GuildFeatures = Constants.GuildFeatures;
|
|
|
|
|
const GuildPrompts = Constants2.GuildPrompts;
|
2026-10-12 16:32:48 +00:00
|
|
|
let tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useIsHubRealNamePromptShowing(arg0) {
|
2026-10-02 13:37:24 +00:00
|
|
|
let closure_0;
|
|
|
|
|
let first;
|
|
|
|
|
let tmp9;
|
|
|
|
|
_require = arg0;
|
|
|
|
|
let tmp = _require;
|
|
|
|
|
let tmp2 = dependencyMap;
|
|
|
|
|
let obj = require("react");
|
|
|
|
|
const cResult = obj.c(7);
|
|
|
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
|
|
|
const items = [GuildStore, , , ];
|
|
|
|
|
items[1] = GuildPromptsStore;
|
|
|
|
|
items[2] = UserStore;
|
|
|
|
|
items[3] = GuildMemberStore;
|
|
|
|
|
cResult[0] = items;
|
|
|
|
|
first = items;
|
|
|
|
|
} else {
|
|
|
|
|
first = cResult[0];
|
|
|
|
|
}
|
|
|
|
|
if (cResult[1] !== arg0) {
|
|
|
|
|
const fn = function _() {
|
|
|
|
|
const guild = GuildStore.getGuild(closure_0);
|
|
|
|
|
let hasItem;
|
|
|
|
|
if (guild != null) {
|
|
|
|
|
const features = guild.features;
|
|
|
|
|
hasItem = features.has(GuildFeatures.HUB);
|
|
|
|
|
}
|
|
|
|
|
if (true !== hasItem) {
|
|
|
|
|
return null;
|
|
|
|
|
} else if (true === GuildPromptsStore.hasViewedPrompt(GuildPrompts.REAL_NAME_PROMPT, guild.id)) {
|
|
|
|
|
return null;
|
|
|
|
|
} else {
|
|
|
|
|
const currentUser = UserStore.getCurrentUser();
|
|
|
|
|
if (null == currentUser) {
|
|
|
|
|
return null;
|
|
|
|
|
} else {
|
|
|
|
|
let id1;
|
|
|
|
|
const getMember = GuildMemberStore.getMember;
|
|
|
|
|
const id = guild.id;
|
|
|
|
|
if (currentUser != null) {
|
|
|
|
|
id1 = currentUser.id;
|
|
|
|
|
}
|
|
|
|
|
const member = getMember(id, id1);
|
|
|
|
|
let nick;
|
|
|
|
|
if (member != null) {
|
|
|
|
|
nick = member.nick;
|
|
|
|
|
}
|
|
|
|
|
return null == nick;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
cResult[1] = arg0;
|
|
|
|
|
cResult[2] = fn;
|
|
|
|
|
tmp9 = fn;
|
|
|
|
|
} else {
|
|
|
|
|
tmp9 = cResult[2];
|
|
|
|
|
}
|
|
|
|
|
const tmpResult = tmp(504);
|
|
|
|
|
const stateFromStores = tmpResult.useStateFromStores(first, tmp9);
|
|
|
|
|
if (cResult[3] === arg0) {
|
|
|
|
|
let tmp11;
|
|
|
|
|
let tmp12;
|
|
|
|
|
if (cResult[4] === stateFromStores) {
|
|
|
|
|
tmp11 = cResult[5];
|
|
|
|
|
tmp12 = cResult[6];
|
|
|
|
|
}
|
|
|
|
|
const effect = react.useEffect(tmp11, tmp12);
|
|
|
|
|
return true === stateFromStores;
|
|
|
|
|
}
|
2026-10-12 16:32:48 +00:00
|
|
|
class R {
|
2026-10-02 13:37:24 +00:00
|
|
|
constructor() {
|
|
|
|
|
let tmp2 = null != closure_0;
|
|
|
|
|
const tmp = closure_0;
|
|
|
|
|
if (tmp2) {
|
|
|
|
|
tmp2 = null != stateFromStores;
|
|
|
|
|
}
|
|
|
|
|
if (tmp2) {
|
|
|
|
|
const tmp4 = stateFromStores;
|
|
|
|
|
if (!tmp4) {
|
|
|
|
|
const obj = GuildPromptsActionCreatorsDefault;
|
|
|
|
|
obj.viewPrompt(GuildPrompts.REAL_NAME_PROMPT, tmp);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const items1 = [stateFromStores, arg0];
|
|
|
|
|
cResult[3] = arg0;
|
|
|
|
|
cResult[4] = stateFromStores;
|
2026-10-12 16:32:48 +00:00
|
|
|
cResult[5] = R;
|
2026-10-02 13:37:24 +00:00
|
|
|
cResult[6] = items1;
|
|
|
|
|
tmp12 = items1;
|
2026-10-12 16:32:48 +00:00
|
|
|
tmp11 = R;
|
|
|
|
|
}) : (function useIsHubRealNamePromptShowing(arg0) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let closure_0;
|
2026-09-18 19:45:33 +00:00
|
|
|
_require = arg0;
|
2026-10-01 14:13:23 +00:00
|
|
|
let obj = require("get initialized");
|
2026-09-18 19:45:33 +00:00
|
|
|
const items = [GuildStore, GuildPromptsStore, UserStore, GuildMemberStore];
|
2026-10-01 14:13:23 +00:00
|
|
|
const stateFromStores = obj.useStateFromStores(items, () => {
|
2026-09-26 17:57:22 +00:00
|
|
|
const guild = GuildStore.getGuild(closure_0);
|
2026-09-18 19:45:33 +00:00
|
|
|
let hasItem;
|
|
|
|
|
if (guild != null) {
|
|
|
|
|
const features = guild.features;
|
|
|
|
|
hasItem = features.has(GuildFeatures.HUB);
|
|
|
|
|
}
|
|
|
|
|
if (true !== hasItem) {
|
|
|
|
|
return null;
|
|
|
|
|
} else if (true === GuildPromptsStore.hasViewedPrompt(GuildPrompts.REAL_NAME_PROMPT, guild.id)) {
|
|
|
|
|
return null;
|
|
|
|
|
} else {
|
|
|
|
|
const currentUser = UserStore.getCurrentUser();
|
|
|
|
|
if (null == currentUser) {
|
|
|
|
|
return null;
|
|
|
|
|
} else {
|
2026-10-01 14:13:23 +00:00
|
|
|
let id1;
|
|
|
|
|
const getMember = GuildMemberStore.getMember;
|
|
|
|
|
const id = guild.id;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (currentUser != null) {
|
2026-10-01 14:13:23 +00:00
|
|
|
id1 = currentUser.id;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const member = getMember(id, id1);
|
2026-09-18 19:45:33 +00:00
|
|
|
let nick;
|
|
|
|
|
if (member != null) {
|
|
|
|
|
nick = member.nick;
|
|
|
|
|
}
|
|
|
|
|
return null == nick;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
const items1 = [stateFromStores, arg0];
|
2026-10-01 14:13:23 +00:00
|
|
|
const effect = react.useEffect(() => {
|
2026-09-18 19:45:33 +00:00
|
|
|
let tmp2 = null != closure_0;
|
2026-10-01 14:13:23 +00:00
|
|
|
const tmp = closure_0;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (tmp2) {
|
|
|
|
|
tmp2 = null != stateFromStores;
|
|
|
|
|
}
|
|
|
|
|
if (tmp2) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const tmp4 = stateFromStores;
|
|
|
|
|
if (!tmp4) {
|
|
|
|
|
const obj = GuildPromptsActionCreatorsDefault;
|
|
|
|
|
obj.viewPrompt(GuildPrompts.REAL_NAME_PROMPT, tmp);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, items1);
|
|
|
|
|
return true === stateFromStores;
|
2026-10-02 13:37:24 +00:00
|
|
|
});
|
|
|
|
|
const result = size.fileFinishedImporting("modules/hub/useIsHubRealNamePromptShowing.tsx");
|
|
|
|
|
|
|
|
|
|
export default tmp2;
|