Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4941.js (118.4 MB)
61 lines
1.9 KiB
TypeScript
61 lines
1.9 KiB
TypeScript
// Module ID: 12899
|
|
// Function ID: 12900
|
|
// Name: ChatViewPopups
|
|
// Dependencies: [19, 12900, 12904, 12912, 2]
|
|
|
|
// Module 12899 (ChatViewPopups)
|
|
import useIsHubRealNamePromptShowingDefault from "useIsHubRealNamePromptShowing" /* 12900 */;
|
|
import WelcomeScreenUtils from "WelcomeScreenUtils" /* 12904 */;
|
|
import GuildDirectoryNicknameUpsellModalActionCreatorsDefault from "GuildDirectoryNicknameUpsellModalActionCreators" /* 12912 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
class ChatViewPopups {
|
|
constructor(arg0) {
|
|
guildId = global.guildId;
|
|
closure_1 = undefined;
|
|
closure_2 = undefined;
|
|
closure_3 = undefined;
|
|
closure_1 = closure_3.useRef(false);
|
|
tmp = closure_1(closure_2[1])(guildId);
|
|
closure_2 = tmp;
|
|
obj = guildId(closure_2[2]);
|
|
showWelcomeModal = obj.useShowWelcomeModal(guildId, global.channelId);
|
|
closure_3 = showWelcomeModal;
|
|
items = [, , ];
|
|
items[0] = guildId;
|
|
items[1] = showWelcomeModal;
|
|
items[2] = tmp;
|
|
effect = closure_3.useEffect(() => {
|
|
if (!ref.current) {
|
|
if (closure_2) {
|
|
const obj2 = {
|
|
guildId,
|
|
onHide() {
|
|
ref.current = false;
|
|
return false;
|
|
}
|
|
};
|
|
GuildDirectoryNicknameUpsellModalActionCreatorsDefault.open(obj2);
|
|
tmp.current = true;
|
|
} else if (showWelcomeModal) {
|
|
const obj4 = {
|
|
guildId,
|
|
onHide() {
|
|
ref.current = false;
|
|
return false;
|
|
}
|
|
};
|
|
const result = WelcomeScreenUtils.openWelcomeActionSheet(obj4);
|
|
tmp.current = true;
|
|
}
|
|
}
|
|
}, items);
|
|
return null;
|
|
}
|
|
}
|
|
const size = fn(2);
|
|
let result = size.fileFinishedImporting("modules/chat/native/ChatViewPopups.tsx");
|
|
|
|
export default noop.memo(ChatViewPopups);
|
|
export { ChatViewPopups };
|