Files
discord-decomp/sources/modules/oauth2/native/ErrorResult.tsx
T
2026-07-28 01:06:53 +03:00

67 lines
4.3 KiB
TypeScript

/* Metro module 9351; source: modules/oauth2/native/ErrorResult.tsx; dependencies: [31, 27, 33, 4501, 697, 6618, 9352, 4573, 1244, 4578, 5080, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import Module09352 from '../../../by-id/module-09352.js'; /* Metro dependency 9352 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as SafeAreaViewModule from '../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
function _fun73087(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9537:6, offset: 0x01d5dfb1, size: 322 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.Image;
const env0_4 = value.View;
value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object = {};
const BACKGROUND_BASE_LOWER = (Native).colors.BACKGROUND_BASE_LOWER;
object.container = {'flex': 1, 'backgroundColor': null, 'gap': 16, 'paddingHorizontal': 16,
'justifyContent': 'center', 'flexDirection': 'column', backgroundColor: BACKGROUND_BASE_LOWER};
object.inner = {'flex': 1, 'flexDirection': 'column', 'alignItems': 'center', 'justifyContent': 'center'};
object.text = {'marginTop': 24, 'textAlign': 'center'};
const TEXT_FEEDBACK_WARNING = (Native).colors.TEXT_FEEDBACK_WARNING;
object.image = {tintColor: TEXT_FEEDBACK_WARNING};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/oauth2/native/ErrorResult.tsx');
exports.default = ErrorResult;
function ErrorResult({error, hideFooter}) { // fn#73088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9537:591, offset: 0x01d5e0f3, size: 405 bytes, params: 2, frame: 28
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
const image = <Image source={Module09352} style={styles.image} />;
const Text = (TextModule).Text;
return (
<SafeAreaPaddingView bottom style={styles.container}>
<View style={styles.inner}>
{image}
<Text style={styles.text} variant="text-md/medium">
{error ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mqn873)}
</Text>
</View>
{
hideFooter
? null
: ((Button) => <Button size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)} onPress={onPress_73089} />)((require(4578) /* metro dependency 4578: ButtonNative */).Button)
}
</SafeAreaPaddingView>
);
function ErrorResultOnPress() { // fn#73089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9537:989, owner: ErrorResult.onPress, offset: 0x01d5e288, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (ModalActionCreators).pop();
}
}
}
global.__d(_fun73087, 9351, [31, 27, 33, 4501, 697, 6618, 9352, 4573, 1244, 4578, 5080,
2]) /* metro module 9351, dependencies: [31, 27, 33, 4501, 697, 6618, 9352, 4573, 1244, 4578, 5080, 2] */;