/* Metro module 12042; source: modules/nuf/native/components/ChannelPrompt.tsx; dependencies: [5, 57, 31, 27, 1935, 1867, 33, 4501, 5314, 566, 1484, 5282, 1244, 4603, 4131, 6618, 6819, 1423, 4573, 8967, 4578, 8970, 2] */ function _fun92533(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12228:6, offset: 0x0208e36e, size: 430 bytes, params: 8, frame: 23 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(5) /* metro dependency 5 */; const env0_4 = importDefault(57) /* metro dependency 57 */; const env0_5 = importAll(31) /* metro dependency 31 */; let value = require(27) /* metro dependency 27 */; const env0_6 = value.ScrollView; const env0_7 = value.View; const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */; const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */; value = require(33) /* metro dependency 33 */; const env0_10 = value.jsx; const env0_11 = value.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; const NAV_BAR_HEIGHT = (require(5314) /* metro dependency 5314: NavigatorConstantsNative */).NAV_BAR_HEIGHT; const env0_12 = Reflect.apply(createStyles, value, [{flex: {flex: 1}, safePadding: {marginTop: NAV_BAR_HEIGHT, flex: 1}, contentContainer: {paddingHorizontal: 16}, guildIcon: {alignSelf: 'center'}, guildName: {'marginTop': 8, 'textAlign': 'center'}, title: {'marginTop': 16, 'textAlign': 'center'}, subTitle: {'marginTop': 8, 'textAlign': 'center'}, topicInput: {marginTop: 24}, buttonWrapper: {marginTop: 8}, error: {marginTop: 4}}]); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/nuf/native/components/ChannelPrompt.tsx'); exports.default = ChannelPrompt; } function ChannelPrompt({guildId, buttonText, hasBack, hasSkip, onCancel, onSuccess}) { // fn#92534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12228:666, offset: 0x0208e51c, size: 1286 bytes, params: 2, frame: 38 var r9; var r0; var SafeAreaPaddingView; var GuildIcon; var name; var items2; const Text = (require(4573) /* metro dependency 4573: Text */).Text; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; var string; const t = (require(1244) /* metro dependency 1244: indexNative */).t; var FreeFormInputGroup; const env0_3 = onCancel; const env0_4 = onSuccess; var value; const styles = useStyles(); const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() { return GuildStore.getGuild(guildId); }); const binding = env0_5; let useState = binding.useState; const value3 = Reflect.apply(useState, binding, ['']); const binding2 = env0_4; const value4 = binding2(value3, 2); const property = value4[0]; const property2 = value4[1]; useState = binding.useState; const value5 = binding2(Reflect.apply(useState, binding, [false]), 2); const property3 = value5[0]; const env0_6 = value5[1]; useState = binding.useState; const value7 = binding2(Reflect.apply(useState, binding, [null]), 2); const property4 = value7[0]; const env0_7 = value7[1]; binding.useLayoutEffect(_fun92536, [(require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation(), hasBack, hasSkip, onCancel, onSuccess]); const value10 = binding.useCallback(env0_3(_fun92540), [guildId, onSuccess, property]); if (guild == null) { r0 = null; } else { SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView; var safeAreaPaddingViewProps = {top: true, style: styles.safePadding}; var scrollViewBindingProps = {'style': null, 'contentInset': null, 'automaticallyAdjustContentInsets': false, 'keyboardShouldPersistTaps': 'handled', 'alwaysBounceVertical': false, style: styles.flex, contentInset: {top: 0}, contentContainerStyle: styles.contentContainer}; GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */; name = guild.name; items2 = []; name = guild.name; items2[1] = {name}; string = intl.string; items2[2] = {Reflect.apply(string, intl, [t['8VRa7d']])}; string = intl.string; items2[3] = {Reflect.apply(string, intl, [t['+855Pm']])}; FreeFormInputGroup = importDefault(8967) /* metro dependency 8967: FreeFormInputGroup */; items2[4] = ; items2[5] = {((Button) =>