/* 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] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import Module14585 from '../../../by-id/module-14585.js'; /* Metro dependency 14585 */
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 ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as PressablesModule from '../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as UseScaledTextLineHeightAndroidModule from '../../screen/native/useScaledTextLineHeight.android.tsx'; /* Metro dependency 8518 */
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
const env0_0 = require;
const handlePress_110313 = function() {
return _handlePress_110314.apply(this, arguments);
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
ReactModule;
let value = ConstantsModule;
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;
object = {};
const BACKGROUND_BASE_LOW = (Native).colors.BACKGROUND_BASE_LOW;
object.MFAWarning = {'backgroundColor': null, 'padding': 10, 'alignItems': 'center',
backgroundColor: BACKGROUND_BASE_LOW};
object.MFAWarningIcon = {'marginVertical': 10, 'width': 98, 'height': 53};
const BLUE_345 = (Native).unsafe_rawColors.BLUE_345;
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
object.MFAWarningLink = {color: BLUE_345, fontFamily: PRIMARY_SEMIBOLD};
const env0_8 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/guild_sidebar/native/GuildMFAWarning.tsx');
exports.default = GuildMFAWarning;
exports.getScaledGuildMFAWarningHeight = getScaledGuildMFAWarningHeight;
function _handlePress_110314() { // 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 Module00005(_fun110316).apply(this, arguments);
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])]);
}
}
}
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 = (PressablesModule).PressableOpacity;
const handlePress_110313Binding = handlePress_110313;
const items3 = [
,
];
const Text = (TextModule).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 = (NativeModule).LegacyText;
items2[1] = (
{' '}
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hvVgAZ)}
);
items3[1] = (
{items2}
);
return (
{items3}
);
}
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 = UseScaledTextLineHeightAndroidModule;
value = value.scaleTextLineHeight('text-xs/medium', a0);
return 83 + 5 * value + 10 + 10;
}
}
global.__d(_fun110312, 14584, [5, 31, 27, 661, 33, 4501, 697, 8518, 1948, 1962, 3853, 5278, 14585, 4573, 1244, 1305,
2]) /* metro module 14584, dependencies: [5, 31, 27, 661, 33, 4501, 697, 8518, 1948, 1962, 3853, 5278, 14585, 4573, 1244, 1305, 2] */;