decord/source/modules/hub/native/components/HubEmailConnectionPinVerify.tsx

93 lines
3.8 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 11799
// Function ID: 91618
2026-07-20 16:05:17 +00:00
// Name: presentResendToast
2026-07-24 07:16:23 +00:00
// Dependencies: [57, 5, 31, 27, 1838, 33, 4130, 3831, 11800, 11801, 10913, 22, 11793, 1212, 4029, 5737, 11788, 11802, 4126, 9300, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-24 07:16:23 +00:00
// Module 11799 (presentResendToast)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
import closure_4 from "jsxProd";
import result from "result";
import get_ActivityIndicator from "get ActivityIndicator";
import closure_8 from "_createForOfIteratorHelperLoose";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_10;
let closure_6;
let closure_7;
let closure_9;
const require = arg1;
2026-07-20 16:05:17 +00:00
function presentResendToast(content) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(3831);
2026-07-24 07:16:23 +00:00
obj = { key: "HUB_EMAIL_RESET", content, icon: importDefault(11800) };
2026-07-20 16:05:17 +00:00
obj.open(obj);
}
2026-07-23 10:11:24 +00:00
({ View: closure_6, Image: closure_7 } = get_ActivityIndicator);
({ jsx: closure_9, jsxs: closure_10 } = jsxProd);
let closure_11 = _createForOfIteratorHelperLoose.createStyles({ container: { alignItems: "center" }, title: { marginBottom: 8, textAlign: "center" }, description: { textAlign: "center", marginBottom: 24 }, label: { textAlign: "center", marginBottom: 12 }, error: { alignSelf: "center", marginVertical: 8 } });
const result = require("result").fileFinishedImporting("modules/hub/native/components/HubEmailConnectionPinVerify.tsx");
2026-07-20 16:05:17 +00:00
export default function HubEmailConnectionPinVerify(email) {
2026-07-23 10:11:24 +00:00
let importDefault;
2026-07-20 16:05:17 +00:00
let onClose;
email = email.email;
2026-07-23 10:11:24 +00:00
({ guildId: importDefault, onClose } = email);
2026-07-20 16:05:17 +00:00
let callback;
function _handleCodeEntered(arg0) {
// CreateGeneratorClosureLongIndex (0x67)
const obj = _handleCodeEntered(tmp);
return obj(...arguments);
}
const tmp = callback3();
const items = [onClose];
const effect = React.useEffect(() => {
2026-07-23 10:11:24 +00:00
outer1_1(onClose[9]).initialize(() => {
outer1_2(true);
outer2_1(onClose[10])();
2026-07-20 16:05:17 +00:00
});
return () => {
2026-07-23 10:11:24 +00:00
outer2_1(onClose[9]).terminate();
2026-07-20 16:05:17 +00:00
};
}, items);
let obj = importDefault(tmp3);
// CreateGeneratorClosureLongIndex (0x67)
const tmp5 = callback(React.useState(null), 2);
const first = tmp5[0];
callback = tmp5[1];
obj = {};
obj = { style: tmp.container };
2026-07-23 10:11:24 +00:00
const obj1 = { source: importDefault(onClose[17]) };
2026-07-20 16:05:17 +00:00
const items1 = [callback2(closure_7, obj1), , , , , ];
2026-07-23 10:11:24 +00:00
const obj2 = { style: tmp.title, accessibilityRole: "header", variant: "heading-xl/extrabold", color: "mobile-text-heading-primary" };
const intl = email(onClose[13]).intl;
obj2.children = intl.string(email(onClose[13]).t.SJ3Lxc);
items1[1] = callback2(email(onClose[18]).Text, obj2);
const obj3 = { style: tmp.description, variant: "text-sm/medium", color: "text-default" };
const intl2 = email(onClose[13]).intl;
obj3.children = intl2.format(email(onClose[13]).t["b+W0oq"], { onClick: obj.throttle(_handleCodeEntered(onClose[11]), 1000), email });
2026-07-24 07:16:23 +00:00
items1[2] = callback2(email(onClose[18]).Text, obj3);
2026-07-23 10:11:24 +00:00
const obj4 = { style: tmp.label, variant: "text-sm/semibold", color: "text-muted" };
const intl3 = email(onClose[13]).intl;
obj4.children = intl3.string(email(onClose[13]).t.rpWT1s);
items1[3] = callback2(email(onClose[18]).Text, obj4);
2026-07-20 16:05:17 +00:00
const obj5 = {
2026-07-23 10:11:24 +00:00
hasError: false,
count: 8,
2026-07-20 16:05:17 +00:00
onCodeEntered: function handleCodeEntered(arg0) {
return _handleCodeEntered(...arguments);
},
2026-07-24 07:16:23 +00:00
codeType: email(onClose[19]).CodeType.ALPHANUMERIC
2026-07-20 16:05:17 +00:00
};
2026-07-24 07:16:23 +00:00
items1[4] = callback2(email(onClose[19]).CodeBlocks, obj5);
2026-07-20 16:05:17 +00:00
let tmp9 = null != first;
if (tmp9) {
2026-07-23 10:11:24 +00:00
const obj6 = { variant: "text-sm/medium", color: "text-feedback-critical", style: tmp.error, children: first.getAnyErrorMessage() };
tmp9 = callback2(email(onClose[18]).Text, obj6);
2026-07-20 16:05:17 +00:00
}
items1[5] = tmp9;
obj.children = items1;
obj.children = closure_10(closure_6, obj);
2026-07-23 10:11:24 +00:00
return callback2(email(onClose[16]).HubEmailConnectionScreen, obj);
2026-07-20 16:05:17 +00:00
};