104 lines
6.4 KiB
TypeScript
104 lines
6.4 KiB
TypeScript
/* Metro module 8959; source: modules/verification/native/components/ChangeEmailWarning.tsx; dependencies: [31, 27, 1878, 8957, 661, 33, 4501, 697, 1484, 566, 683, 676, 5473, 4573, 1244, 6766, 4578, 8953, 2] */
|
|
function _fun69856(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9144:6, offset: 0x01ce57d2, size: 443 bytes, params: 8, frame: 23
|
|
var object2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importAll(31) /* metro dependency 31 */;
|
|
let value = require(27) /* metro dependency 27 */;
|
|
const env0_4 = value.View;
|
|
const env0_5 = value.ScrollView;
|
|
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
|
const env0_7 = (require(8957) /* metro dependency 8957: VerificationConstants */).COMMON_SCAMS_EDUCATION_HC_ARTICLE;
|
|
const env0_8 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
|
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;
|
|
object2 = {};
|
|
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object2.container = {'flex': 1, 'padding': null, 'alignItems': 'center', 'justifyContent': 'center', padding: PX_16};
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object2.title = {marginTop: PX_16};
|
|
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object2.body = {marginTop: PX_8, textAlign: 'center'};
|
|
const object3 = {flexDirection: 'row'};
|
|
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object3.gap = PX_8;
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object3.marginTop = PX_16;
|
|
object2.buttonContainer = object3;
|
|
const env0_11 = Reflect.apply(createStyles, value, [object2]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/ChangeEmailWarning.tsx');
|
|
exports.default = ChangeEmailWarning;
|
|
}
|
|
|
|
function ChangeEmailWarning({changeEmailReason}) { // fn#69857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9144:653, offset: 0x01ce598d, size: 775 bytes, params: 2, frame: 31
|
|
var r0;
|
|
var items2;
|
|
var Text;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var TextWithIOSLinkWorkaround;
|
|
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
|
var items3;
|
|
var value;
|
|
const styles = useStyles();
|
|
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
|
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
|
return UserStore.getCurrentUser();
|
|
});
|
|
if (currentUser == null) {
|
|
r0 = null;
|
|
} else {
|
|
var viewBindingProps = {style: styles.container};
|
|
items2 = [((TrafficConeSpotIllustration) => <TrafficConeSpotIllustration />)((require(5473) /* metro dependency 5473: native */).TrafficConeSpotIllustration)];
|
|
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
string = intl.string;
|
|
items2[1] = <Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{Reflect.apply(string,
|
|
|
|
intl, [t.hhR7gX])}</Text>;
|
|
TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
|
var textWithIOSLinkWorkaroundProps = {'style': null, 'accessibilityRole': 'header', 'variant': 'text-md/normal',
|
|
'color': 'mobile-text-heading-primary', style: styles.body};
|
|
value = intl.format(t.rqWXUf, {hcArticle: COMMON_SCAMS_EDUCATION_HC_ARTICLE});
|
|
string = intl.string;
|
|
items2[2] = <TextWithIOSLinkWorkaround {...textWithIOSLinkWorkaroundProps}>{[value, '\n\n',
|
|
Reflect.apply(string,
|
|
intl, [t['3LW10C']])]}</TextWithIOSLinkWorkaround>;
|
|
var viewBindingProps2 = {style: styles.buttonContainer};
|
|
string = intl.string;
|
|
value = <Button size="md" variant="tertiary" text={Reflect.apply(string, intl,
|
|
[t.rwTBFs])} onPress={env0_3.useCallback(_fun69859, [value2, changeEmailReason])} shrink />;
|
|
items3 = [value];
|
|
string = intl.string;
|
|
items3[1] = <Button size="md" variant="primary" text={Reflect.apply(string, intl,
|
|
[t['ETE/oC']])} onPress={onPress_69860} shrink />;
|
|
items2[3] = <View {...viewBindingProps2}>{items3}</View>;
|
|
value = <ScrollView keyboardShouldPersistTaps="handled" alwaysBounceVertical={false}><View {...viewBindingProps}>{items2}</View></ScrollView>;
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun69859() { // fn#69859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9144:816, offset: 0x01ce5c94, size: 104 bytes, params: 1, frame: 18
|
|
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
const track = defaultImport.track;
|
|
const USER_ACCOUNT_EMAIL_CHANGE_WARNING_CONTINUE = AnalyticEvents.USER_ACCOUNT_EMAIL_CHANGE_WARNING_CONTINUE;
|
|
Reflect.apply(track, defaultImport, [USER_ACCOUNT_EMAIL_CHANGE_WARNING_CONTINUE,
|
|
{change_email_reason_enum: changeEmailReason}]);
|
|
const binding = env0_1;
|
|
const push = binding.push;
|
|
const VerificationModalScenes = (require(676) /* metro dependency 676: ConstantsIOS */).VerificationModalScenes;
|
|
const ENTER_EMAIL = VerificationModalScenes.ENTER_EMAIL;
|
|
Reflect.apply(push, binding, [ENTER_EMAIL]);
|
|
}
|
|
|
|
function ChangeEmailWarningOnPress() { // fn#69860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9144:1832, owner: ChangeEmailWarning.onPress, offset: 0x01ce5cfc, size: 37 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
return (importDefault(8953) /* metro dependency 8953: EmailVerificationModalActionCreators */).close();
|
|
}
|
|
|