/* Metro module 15779; source: modules/avatar/native/components/AddAvatarModal.tsx; dependencies: [5, 57, 31, 27, 7624, 661, 33, 4501, 697, 5314, 6597, 1585, 566, 8403, 15780, 8421, 4660, 8400, 8402, 4573, 1244, 15789, 1305, 4578, 15777, 480, 5277, 5282, 5280, 2] */ function _fun121256(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15987:6, offset: 0x0254266b, size: 542 bytes, params: 8, frame: 27 var object3; const env0_0 = require; const closure = AddAvatarModal; 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 userProfileSettingsStore = importDefault(7624) /* metro dependency 7624: UserProfileSettingsStore */; let value = require(661) /* metro dependency 661: Constants */; const Fonts = value.Fonts; const ModalAnimation = value.ModalAnimation; const env0_8 = value.UPLOAD_MEDIUM_SIZE; 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; object3 = {}; const object5 = {'flex': 1, 'backgroundColor': null, 'justifyContent': 'center', 'paddingTop': null, 'alignItems': 'center'}; const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW; object5.backgroundColor = BACKGROUND_BASE_LOW; const NAV_BAR_HEIGHT = (require(5314) /* metro dependency 5314: NavigatorConstantsNative */).NAV_BAR_HEIGHT; object5.paddingTop = NAV_BAR_HEIGHT + 32; object3.container = object5; object3.headerContainer = {'display': 'flex', 'alignItems': 'center'}; object3.buttonContainer = {'marginHorizontal': 16, 'marginBottom': 16}; object3.title = {'marginBottom': 8, 'textAlign': 'center'}; object3.subtitle = {textAlign: 'center'}; object3.errorContainer = {'alignSelf': 'center', 'paddingTop': 24}; const object6 = {}; const textStyles = importDefault(6597) /* metro dependency 6597: TextStyles */; const DISPLAY_MEDIUM = Fonts.DISPLAY_MEDIUM; const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400; copyDataProperties(object6, textStyles(DISPLAY_MEDIUM, RED_400, 12), undefined); object3.errorText = object6; const env0_11 = Reflect.apply(createStyles, value, [object3]); const SLIDE_IN_OUT = ModalAnimation.SLIDE_IN_OUT; closure.modalConfig = {animation: SLIDE_IN_OUT}; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/avatar/native/components/AddAvatarModal.tsx'); exports.default = closure; } function AddAvatarScreen() { // fn#121257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15987:724, offset: 0x02542889, size: 1068 bytes, params: 1, frame: 38 var r0; var moduleValue2; var createPendingImage; const value2 = undefined; const styles = useStyles(); const [property, env0_0] = env0_4(env0_5.useState(false), 2); const [property2, property3] = env0_4(env0_5.useState(), 2); const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom; const fluxModule = require(566) /* metro dependency 566: flux */; const useStateFromStores = fluxModule.useStateFromStores; let object = [UserProfileSettingsStore]; const pendingAvatar = Reflect.apply(useStateFromStores, fluxModule, [object, function() { return UserProfileSettingsStore.getPendingChanges().pendingAvatar; }]); if (property2 != null) { moduleValue2 = require(8403) /* metro dependency 8403: RecentAvatarUtils */; createPendingImage = moduleValue2.createPendingImage; object = {}; object.imageUri = (require(15780) /* metro dependency 15780: PresetAvatarSelect */).DEFAULT_AVATARS[property2]; object.description = (require(8403) /* metro dependency 8403: RecentAvatarUtils */).generateAvatarDescription(); r0 = Reflect.apply(createPendingImage, moduleValue2, [object]); } else { r0 = value2; } const r11 = r0 ?? pendingAvatar; const videoBackgroundModule = require(8421) /* metro dependency 8421: VideoBackground */; const value7 = videoBackgroundModule.memoizedImageSource(r11 == null ? value2 : r11.imageUri); const items2 = [styles.container]; items2[1] = {paddingBottom: bottom > 0 ? bottom : 16}; const Text = (require(4573) /* metro dependency 4573: Text */).Text; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; let string = intl.string; const XQRWvR = (require(1244) /* metro dependency 1244: indexNative */).t.XQRWvR; const items3 = [{Reflect.apply(string, intl, [XQRWvR])}{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.fH9TLT)}]; items3[1] = ((Component) => )(importDefault(15789) /* metro dependency 15789: TouchableUploadAvatar */); const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText; items3[2] = {property && intl.string((require(1244) /* metro dependency 1244: indexNative */).t.XyLlVm)}; const items4 = [{items3}]; items4[1] = ((Component) => )(importDefault(15780) /* metro dependency 15780: PresetAvatarSelect */); const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button; string = intl.string; const PDTjLN = (require(1244) /* metro dependency 1244: indexNative */).t.PDTjLN; items4[2] =