50 lines
2.5 KiB
TypeScript
50 lines
2.5 KiB
TypeScript
/* Metro module 11965; source: modules/chat/native/ChatViewPopups.tsx; dependencies: [31, 11966, 11970, 11978, 2] */
|
|
function _fun91851(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12151:6, offset: 0x02074ee8, size: 139 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const closure = ChatViewPopups;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = importAll(31) /* metro dependency 31 */;
|
|
value = value.memo(closure);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat/native/ChatViewPopups.tsx');
|
|
exports.default = value;
|
|
exports.ChatViewPopups = closure;
|
|
}
|
|
|
|
function ChatViewPopups({channelId, guildId}) { // fn#91852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12151:106, offset: 0x02074f73, size: 147 bytes, params: 2, frame: 18
|
|
const env0_1 = env0_3.useRef(false);
|
|
const value2 = (importDefault(11966) /* metro dependency 11966: useIsHubRealNamePromptShowing */)(guildId);
|
|
const value3 = (require(11970) /* metro dependency 11970: WelcomeScreenUtils */).useShowWelcomeModal(guildId,
|
|
channelId);
|
|
var env0_3 = value3;
|
|
env0_3.useEffect(_fun91853, [guildId, value3, value2]);
|
|
return null;
|
|
}
|
|
|
|
function _fun91853() { // fn#91853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12151:242, offset: 0x02075006, size: 183 bytes, params: 1, frame: 14
|
|
var environment;
|
|
var value2;
|
|
var value3;
|
|
if (!env0_1.current) {
|
|
if (env0_2) {
|
|
value3 = environment.__proto__;
|
|
(importDefault(11978) /* metro dependency 11978: GuildDirectoryNicknameUpsellModalActionCreators */).open({guildId: guildId,
|
|
|
|
|
|
onHide: onHide});
|
|
env0_1.current = true;
|
|
} else if (env0_3) {
|
|
value2 = environment.__proto__;
|
|
(require(11970) /* metro dependency 11970: WelcomeScreenUtils */).openWelcomeActionSheet({guildId: guildId,
|
|
onHide: onHide_91855});
|
|
env0_1.current = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
function onHide() { // fn#91854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12151:293, offset: 0x020750bd, size: 17 bytes, params: 1, frame: 2
|
|
env1_1.current = false;
|
|
return false;
|
|
}
|
|
|