decord/source/modules/guild_sidebar/native/GuildMFAWarning.tsx

131 lines
4.6 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 15461
// Function ID: 15462
2026-07-20 16:05:17 +00:00
// Name: handlePress
2026-08-15 05:55:55 +00:00
// Dependencies: [5, 19, 17, 676, 21, 4661, 712, 9288, 1993, 2007, 4090, 5433, 15462, 4734, 1236, 1297, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, getScaledGuildMFAWarningHeight
2026-08-15 05:55:55 +00:00
// Module 15461 (handlePress)
2026-07-29 08:29:29 +00:00
import closure_3 from "createCacheKey";
import "noop";
2026-07-23 10:11:24 +00:00
import { Image } from "get ActivityIndicator";
import ME from "ME";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let Fonts;
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
let error;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function handlePress() {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = _handlePress.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
function _handlePress() {
2026-07-29 08:29:29 +00:00
const self = this;
const tmp = callback(function*() {
if (c3 === 2) {
c3 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp4 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-15 05:55:55 +00:00
return { value: "HermesInternal", done: "HermesInternal" };
2026-07-29 08:29:29 +00:00
}
} else {
try {
c3 = 2;
if (0 === paths) {
if (arg0 === 1) {
c3 = 3;
throw arg1;
} else if (arg0 === 2) {
c3 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
const callback = tmp5;
let articleURL = tmp2;
articleURL = undefined;
paths = 1;
c3 = 1;
const obj1 = { value: null, done: false };
obj1[0] = outer1_0(paths[9])(paths[8], paths.paths);
return obj1;
}
} else if (arg0 === 1) {
c3 = 3;
throw arg1;
} else if (arg0 === 2) {
c3 = 3;
const obj2 = { value: null, done: true };
obj2[0] = arg1;
return obj2;
} else {
articleURL = arg1.default;
obj = callback(paths[10]);
obj.openURL(articleURL.getArticleURL(constants.SETTING_UP_TWO_FACTOR));
c3 = 3;
2026-08-15 05:55:55 +00:00
return { value: "HermesInternal", done: "HermesInternal" };
2026-07-29 08:29:29 +00:00
}
} catch (tmp17) {
c3 = tmp;
throw tmp17;
}
}
});
const _handlePress = tmp;
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
({ HelpdeskArticles: c5, Fonts } = ME);
({ jsx: closure_6, jsxs: error } = jsxProd);
createCacheKey = { MFAWarning: null, MFAWarningIcon: null, MFAWarningLink: null };
createCacheKey = { backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOW, padding: 10, alignItems: "center" };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { marginVertical: 10, width: 98, height: 53 };
createCacheKey[2] = { color: require("Themes").unsafe_rawColors.BLUE_345, fontFamily: Fonts.PRIMARY_SEMIBOLD };
createCacheKey = createCacheKey.createStyles(createCacheKey);
let obj1 = { color: require("Themes").unsafe_rawColors.BLUE_345, fontFamily: Fonts.PRIMARY_SEMIBOLD };
2026-07-23 10:11:24 +00:00
const result = require("get ActivityIndicator").fileFinishedImporting("modules/guild_sidebar/native/GuildMFAWarning.tsx");
2026-07-20 16:05:17 +00:00
export default function GuildMFAWarning() {
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
let obj = { accessibilityRole: "button", style: tmp.MFAWarning, onPress: handlePress, children: null };
obj = { style: tmp.MFAWarningIcon, source: null };
2026-08-15 05:55:55 +00:00
obj[1] = importDefault(15462);
2026-07-20 16:05:17 +00:00
const items = [callback2(Image, obj), ];
2026-07-29 08:29:29 +00:00
obj = { variant: "text-xs/medium", color: "text-default", children: null };
const intl = require(1236) /* getSystemLocale */.intl;
const items1 = [intl.string(require(1236) /* getSystemLocale */.t.ZIf8Ag), ];
const obj1 = { style: tmp.MFAWarningLink, children: null };
const intl2 = require(1236) /* getSystemLocale */.intl;
const items2 = [" ", intl2.string(require(1236) /* getSystemLocale */.t.hvVgAZ)];
obj1[1] = items2;
items1[1] = callback3(require(1297) /* Button */.LegacyText, obj1);
obj[2] = items1;
2026-08-15 05:55:55 +00:00
items[1] = callback3(require(4734) /* Text */.Text, obj);
2026-07-29 08:29:29 +00:00
obj[3] = items;
2026-08-15 05:55:55 +00:00
return callback3(require(5433) /* PressableBase */.PressableOpacity, obj);
2026-07-20 16:05:17 +00:00
};
export const getScaledGuildMFAWarningHeight = function getScaledGuildMFAWarningHeight(fontScale) {
2026-08-15 05:55:55 +00:00
return 83 + 5 * require(9288) /* map */.scaleTextLineHeight("text-xs/medium", fontScale) + 10 + 10;
2026-07-20 16:05:17 +00:00
};