decord/source/modules/chat/native/ChatViewPopups.tsx

61 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11870
// Function ID: 11871
2026-07-20 16:05:17 +00:00
// Name: ChatViewPopups
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 11871, 11875, 11883, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 11870 (ChatViewPopups)
import useIsHubRealNamePromptShowingDefault from "useIsHubRealNamePromptShowing" /* 11871 */;
import importAllResult from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
class ChatViewPopups {
constructor(arg0) {
guildId = global.guildId;
2026-08-24 06:08:38 +00:00
closure_1 = undefined;
closure_2 = undefined;
closure_3 = undefined;
closure_1 = closure_3.useRef(false);
2026-07-23 10:11:24 +00:00
tmp = require("useIsHubRealNamePromptShowing")(guildId);
2026-08-24 06:08:38 +00:00
closure_2 = tmp;
2026-07-23 10:11:24 +00:00
obj = require("useShowWelcomeModal");
2026-07-20 16:05:17 +00:00
showWelcomeModal = obj.useShowWelcomeModal(guildId, global.channelId);
2026-08-24 06:08:38 +00:00
closure_3 = showWelcomeModal;
2026-07-20 16:05:17 +00:00
items = [, , ];
items[0] = guildId;
items[1] = showWelcomeModal;
items[2] = tmp;
2026-08-24 06:08:38 +00:00
effect = closure_3.useEffect(() => {
2026-07-20 16:05:17 +00:00
if (!ref.current) {
2026-08-24 06:08:38 +00:00
if (dependencyMap) {
2026-07-29 08:29:29 +00:00
let obj = { guildId: null, onHide: null };
obj[0] = guildId;
obj[1] = function onHide() {
closure_1.current = false;
return false;
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
ref(11883).open(obj);
2026-07-29 08:29:29 +00:00
tmp.current = true;
2026-08-24 06:08:38 +00:00
const obj3 = ref(11883);
2026-07-20 16:05:17 +00:00
} else if (showWelcomeModal) {
2026-08-24 06:08:38 +00:00
obj = guildId(11875);
2026-07-29 08:29:29 +00:00
obj = { guildId: null, onHide: null };
obj[0] = guildId;
obj[1] = function onHide() {
closure_1.current = false;
return false;
2026-07-20 16:05:17 +00:00
};
const result = obj.openWelcomeActionSheet(obj);
2026-07-29 08:29:29 +00:00
tmp.current = true;
2026-07-20 16:05:17 +00:00
}
}
}, items);
return null;
}
}
2026-07-29 08:29:29 +00:00
let c3 = importAllResult;
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo(ChatViewPopups);
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("modules/chat/native/ChatViewPopups.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;
export { ChatViewPopups };