62 lines
3.5 KiB
TypeScript
62 lines
3.5 KiB
TypeScript
/* Metro module 11965; source: modules/chat/native/ChatViewPopups.tsx; dependencies: [31, 11966, 11970, 11978, 2] */
|
|
import UseIsHubRealNamePromptShowing from '../../hub/useIsHubRealNamePromptShowing.tsx'; /* Metro dependency 11966 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as WelcomeScreenUtilsModule from '../../../utils/native/WelcomeScreenUtils.tsx'; /* Metro dependency 11970 */
|
|
|
|
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 ChatViewPopups2 = ChatViewPopups;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactModule;
|
|
value = value.memo(ChatViewPopups2);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/chat/native/ChatViewPopups.tsx');
|
|
exports.default = value;
|
|
exports.ChatViewPopups = ChatViewPopups2;
|
|
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 = (UseIsHubRealNamePromptShowing)(guildId);
|
|
const value3 = (WelcomeScreenUtilsModule).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;
|
|
}
|
|
|
|
function onHide_91855() { // fn#91855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12151:379, offset: 0x020750bd, size: 17 bytes, params: 1, frame: 2
|
|
env1_1.current = false;
|
|
return false;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun91851, 11965, [31, 11966, 11970, 11978,
|
|
2]) /* metro module 11965, dependencies: [31, 11966, 11970, 11978, 2] */;
|