/* Metro module 10483; source: modules/user_profile/native/AddFriendNicknameModal.tsx; dependencies: [5, 57, 31, 27, 3793, 1878, 33, 4501, 697, 566, 1244, 5080, 8783, 5467, 4596, 4573, 6985, 3995, 2] */ function _fun81114(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10669:6, offset: 0x01e9a4d2, size: 343 bytes, params: 8, frame: 21 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 */; const env0_6 = (require(27) /* metro dependency 27 */).View; const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */; const userStore = importDefault(1878) /* metro dependency 1878: UserStore */; let value = require(33) /* metro dependency 33 */; const env0_9 = value.jsx; const env0_10 = value.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; const BACKGROUND_SCRIM = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SCRIM; const env0_11 = Reflect.apply(createStyles, value, [{container: {'flex': 1, 'backgroundColor': null, 'justifyContent': 'center', 'alignItems': 'center', backgroundColor: BACKGROUND_SCRIM}, title: {textAlign: 'center'}, description: {'marginTop': 8, 'marginBottom': 16, 'textAlign': 'center', 'lineHeight': 18}}]); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/native/AddFriendNicknameModal.tsx'); exports.default = AddFriendNicknameModal; } function AddFriendNicknameModal({userId, showUserProfile}) { // fn#81115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10669:526, offset: 0x01e9a629, size: 855 bytes, params: 2, frame: 32 const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; let env0_4 = undefined; const styles = useStyles(); const binding = undefined; const [env0_2, env0_3] = env0_4(binding.useState(false), 2); const nickname = (require(566) /* metro dependency 566: flux */).useStateFromStores([RelationshipStore], function() { return RelationshipStore.getNickname(userId); }); env0_4 = binding.useRef(nickname ?? null); const value5 = undefined.useCallback(_fun81117, []); const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() { return UserStore.getUser(userId); }); const r20 = nickname == null ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.BGYkaH) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8pOYUE']); const value8 = undefined.useCallback(_fun81119, [showUserProfile]); const value9 = _fun81120(); const KeyboardAwareView = importDefault(5467) /* metro dependency 5467: KeyboardAwareView */; const Alert = importDefault(4596) /* metro dependency 4596: Alert */; const alertProps = {confirmText: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+']), onConfirm: value9, cancelText: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC']), onCancel: value8}; const Text = (require(4573) /* metro dependency 4573: Text */).Text; const items2 = [{r20}]; items2[1] = {intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NdQ+lP'])}; const TextField = (require(6985) /* metro dependency 6985: TextFieldNative */).TextField; items2[2] = ; return ( {items2} ); } function _fun81119() { // fn#81119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10669:924, offset: 0x01e9a9af, size: 58 bytes, params: 1, frame: 12 const value = environment.__proto__; (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop(); if (showUserProfile != null) { showUserProfile(); } } function _fun81120() { // fn#81120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10669:966, offset: 0x01e9a9e9, size: 36 bytes, params: 1, frame: 12 const env0_0 = env1_3(_fun81122); return _fun81123; } function* _fun81122() { // fn#81122, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10669:986, offset: 0x01e9aa18, size: 171 bytes, params: 1, frame: 18 var binding; var binding2; var property; var value4; var updateRelationship; var current; var value5; var value7; var value8; var value9; var error; if (true) { value = environment.__proto__.__proto__; if (!dependencyMap) { env2_3(true); try { binding = env3_1; } catch (error) { env2_3(false); throw error; } try { binding2 = env3_2; } catch (error) { env2_3(false); throw error; } try { property = binding2[12]; } catch (error) { env2_3(false); throw error; } try { value4 = binding(property); } catch (error) { env2_3(false); throw error; } try { updateRelationship = value4.updateRelationship; } catch (error) { env2_3(false); throw error; } try { } catch (error) { env2_3(false); throw error; } try { binding = env2_4; } catch (error) { env2_3(false); throw error; } try { current = binding.current; } catch (error) { env2_3(false); throw error; } try { value5 = current != null; } catch (error) { env2_3(false); throw error; } try { value7 = Reflect.apply(updateRelationship, value4, [require, value5 ? current : '']); } catch (error) { env2_3(false); throw error; } yield value7; try { value8 = undefined; value9 = false; } catch (error) { env2_3(false); throw error; } if (value9) { env2_3(false); return value8; } try { binding = env2_5; } catch (error) { env2_3(false); throw error; } try { binding(); } catch (error) { env2_3(false); throw error; } env2_3(false); } } }