90 lines
5.1 KiB
TypeScript
90 lines
5.1 KiB
TypeScript
/* Metro module 14584; source: modules/guild_sidebar/native/GuildMFAWarning.tsx; dependencies: [5, 31, 27, 661, 33, 4501, 697, 8518, 1948, 1962, 3853, 5278, 14585, 4573, 1244, 1305, 2] */
|
|
function _fun110312(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14781:6, offset: 0x0237434d, size: 385 bytes, params: 8, frame: 23
|
|
var object2;
|
|
const env0_0 = require;
|
|
const handlePress_110313 = function() {
|
|
return _handlePress.apply(this, arguments);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
importAll(31) /* metro dependency 31 */;
|
|
const env0_4 = (require(27) /* metro dependency 27 */).Image;
|
|
let value = require(661) /* metro dependency 661: Constants */;
|
|
const Fonts = value.Fonts;
|
|
const env0_5 = value.HelpdeskArticles;
|
|
value = require(33) /* metro dependency 33 */;
|
|
const env0_6 = value.jsx;
|
|
const env0_7 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
object2 = {};
|
|
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
|
object2.MFAWarning = {'backgroundColor': null, 'padding': 10, 'alignItems': 'center',
|
|
backgroundColor: BACKGROUND_BASE_LOW};
|
|
object2.MFAWarningIcon = {'marginVertical': 10, 'width': 98, 'height': 53};
|
|
const BLUE_345 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLUE_345;
|
|
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
|
object2.MFAWarningLink = {color: BLUE_345, fontFamily: PRIMARY_SEMIBOLD};
|
|
const env0_8 = Reflect.apply(createStyles, value, [object2]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/GuildMFAWarning.tsx');
|
|
exports.default = GuildMFAWarning;
|
|
exports.getScaledGuildMFAWarningHeight = getScaledGuildMFAWarningHeight;
|
|
}
|
|
|
|
function _handlePress() { // fn#110314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14781:527, offset: 0x023744ce, size: 50 bytes, params: 1, frame: 14
|
|
return env0_3(_fun110316).apply(this, arguments);
|
|
}
|
|
|
|
function GuildMFAWarning() { // fn#110317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14781:808, offset: 0x02374589, size: 341 bytes, params: 1, frame: 24
|
|
const styles = useStyles();
|
|
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
|
const handlePress_110313Binding = handlePress_110313;
|
|
const items3 = [<Image style={styles.MFAWarningIcon} source={importDefault(14585) /* metro dependency 14585 */} />];
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const ZIf8Ag = (require(1244) /* metro dependency 1244: indexNative */).t.ZIf8Ag;
|
|
const items2 = [Reflect.apply(string, intl, [ZIf8Ag])];
|
|
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
|
items2[1] = <LegacyText style={styles.MFAWarningLink}>{' '}{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hvVgAZ)}</LegacyText>;
|
|
items3[1] = <Text variant="text-xs/medium" color="text-default">{items2}</Text>;
|
|
return (
|
|
<PressableOpacity
|
|
accessibilityRole="button"
|
|
style={styles.MFAWarning}
|
|
onPress={handlePress_110313Binding}
|
|
>
|
|
{items3}
|
|
</PressableOpacity>
|
|
);
|
|
}
|
|
|
|
function getScaledGuildMFAWarningHeight(a0) { // fn#110318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14781:1259, offset: 0x023746de, size: 73 bytes, params: 2, frame: 13
|
|
let value = require(8518) /* metro dependency 8518: useScaledTextLineHeightAndroid */;
|
|
value = value.scaleTextLineHeight('text-xs/medium', a0);
|
|
return 83 + 5 * value + 10 + 10;
|
|
}
|
|
|
|
function* _fun110316() { // fn#110316, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14781:574, offset: 0x0237450b, size: 126 bytes, params: 1, frame: 17
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_0;
|
|
var binding2 = env2_2;
|
|
var value3 = binding(binding2[9]);
|
|
var property = binding2[8];
|
|
yield value3(property, binding2.paths);
|
|
var value4 = undefined;
|
|
if (false) {
|
|
return value4;
|
|
}
|
|
property = value4.default;
|
|
var value6 = env2_1(env2_2[10]);
|
|
var openURL = value6.openURL;
|
|
var getArticleURL = property.getArticleURL;
|
|
var SETTING_UP_TWO_FACTOR = env2_5.SETTING_UP_TWO_FACTOR;
|
|
Reflect.apply(openURL, value6, [Reflect.apply(getArticleURL, property, [SETTING_UP_TWO_FACTOR])]);
|
|
}
|
|
}
|
|
|