53 lines
3.4 KiB
TypeScript
53 lines
3.4 KiB
TypeScript
/* Metro module 9351; source: modules/oauth2/native/ErrorResult.tsx; dependencies: [31, 27, 33, 4501, 697, 6618, 9352, 4573, 1244, 4578, 5080, 2] */
|
|
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
|
|
var object2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
let value = require(27) /* metro dependency 27 */;
|
|
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;
|
|
object2 = {};
|
|
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
|
object2.container = {'flex': 1, 'backgroundColor': null, 'gap': 16, 'paddingHorizontal': 16,
|
|
'justifyContent': 'center', 'flexDirection': 'column', backgroundColor: BACKGROUND_BASE_LOWER};
|
|
object2.inner = {'flex': 1, 'flexDirection': 'column', 'alignItems': 'center', 'justifyContent': 'center'};
|
|
object2.text = {'marginTop': 24, 'textAlign': 'center'};
|
|
const TEXT_FEEDBACK_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_WARNING;
|
|
object2.image = {tintColor: TEXT_FEEDBACK_WARNING};
|
|
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
|
(require(2) /* metro dependency 2 */).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 = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
|
const image = <Image source={importDefault(9352) /* metro dependency 9352 */} style={styles.image} />;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).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 (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
|
}
|
|
|