/* Metro module 9387; source: modules/connections/native/FederatedSocialModal.tsx; dependencies: [5, 57, 31, 661, 33, 4501, 4915, 1244, 5042, 3853, 9388, 6618, 4573, 8967, 1305, 4578, 5282, 5280, 2] */ import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */ import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */ import Platforms from '../../../lib/Platforms.tsx'; /* Metro dependency 4915 */ 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 JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */ import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */ import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */ import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */ import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */ import * as NavigatorNativeModule from '../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */ import * as SafeAreaViewModule from '../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */ import * as FederatedSocialUtilsModule from '../FederatedSocialUtils.tsx'; /* Metro dependency 9388 */ function _fun73226(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9573:6, offset: 0x01d63694, size: 279 bytes, params: 8, frame: 20 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_9 = (CreateStylesModule).createStyles({container: {padding: 16}, description: {textAlign: 'center'}, input: {'paddingHorizontal': 0, 'paddingVertical': 0, 'marginVertical': 16}}); (FileImportTrackerModule).fileFinishedImporting('modules/connections/native/FederatedSocialModal.tsx'); exports.default = FederatedSocialModal; function FederatedSocialModal(a0) { // fn#73227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9573:423, offset: 0x01d637ab, size: 296 bytes, params: 2, frame: 22 const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const env0_0 = a0; const value2 = undefined; const value3 = (Platforms).get(a0.platformType); const r12 = (value3 == null ? value2 : value3.name) ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['bU/GZm']); const object = {}; const object2 = {}; object2.headerTitle = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['ImMhq+'], {serviceName: r12}); object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton(a0.onClose); object2.render = render_73228; object.root = object2; const Navigator = (NavigatorNativeModule).Navigator; return ; function FederatedSocialModalRender() { // fn#73228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9573:720, owner: FederatedSocialModal.render, offset: 0x01d638d3, size: 25 bytes, params: 1, frame: 11 return FederatedSocialModalScreen(env0_0); function FederatedSocialModalScreen({location, successRedirect, platformType, onClose}) { // fn#73229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9573:724, owner: FederatedSocialModal.render.FederatedSocialModalScreen, offset: 0x01d638ec, size: 767 bytes, params: 2, frame: 34 var environment; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; let value = environment.__proto__.__proto__; const styles = useStyles(); const binding = env2_5; let useState = binding.useState; const value3 = Reflect.apply(useState, binding, ['']); const binding2 = env2_4; const value4 = binding2(value3, 2); const property = value4[0]; const property2 = value4[1]; useState = binding.useState; const value5 = binding2(Reflect.apply(useState, binding, [null]), 2); const property3 = value5[0]; const env0_5 = value5[1]; useState = binding.useState; const value6 = binding2(Reflect.apply(useState, binding, [false]), 2); const property4 = value6[0]; const env0_6 = value6[1]; const r24 = (importDefault(4915) /* metro dependency 4915: Platforms */).get(platformType)?.name ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['bU/GZm']); const value9 = _fun73230(); const exampleHandle = (FederatedSocialUtilsModule).getExampleHandle(platformType); const value11 = (FederatedSocialUtilsModule).validateHandle(property, platformType); const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView; const Text = (TextModule).Text; const items2 = [ {intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['7TByKh'], {serviceName: r24})} , ]; value = importDefault(8967) /* metro dependency 8967: FreeFormInputGroup */; let string = intl.string; const tZ9QFR = (require(1244) /* metro dependency 1244: indexNative */).t.tZ9QFR; const ClearButtonVisibility = (NativeModule).ClearButtonVisibility; const WITH_CONTENT = ClearButtonVisibility.WITH_CONTENT; items2[1] = ((Component) => )(value); const Button = (ButtonNativeModule).Button; string = intl.string; const PDTjLN = (require(1244) /* metro dependency 1244: indexNative */).t.PDTjLN; items2[2] = (