Files
discord-decomp/sources/modules/verification/native/components/VerifyPhone.tsx
T
2026-07-27 16:20:00 +03:00

210 lines
7.5 KiB
TypeScript

/* Metro module 9024; source: modules/verification/native/components/VerifyPhone.tsx; dependencies: [5, 57, 31, 33, 9016, 9025, 9026, 1244, 2] */
function _fun70198(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:6, offset: 0x01cf24f6, size: 174 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/VerifyPhone.tsx');
exports.default = VerifyPhone;
}
function VerifyPhone({phone, loading, error, onCodeEnteredIntercept, onVerified, backgroundStyle, disableKeyboardAvoidingView}) { // fn#70199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:241, offset: 0x01cf25a4, size: 456 bytes, params: 2, frame: 29
var object2;
loading = !(loading === undefined) && loading;
let env0_4 = undefined;
const binding = undefined;
let useState = binding.useState;
const value2 = Reflect.apply(useState, binding, [null]);
const binding2 = env0_4;
const value3 = binding2(value2, 2);
const property = value3[0];
const env0_3 = value3[1];
useState = binding.useState;
const value4 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property2 = value4[0];
env0_4 = value4[1];
const value6 = binding.useCallback(_fun70200(), [onCodeEnteredIntercept, onVerified, phone]);
(importDefault(9025) /* metro dependency 9025: useSmsAutofillAndroid */)(binding.useCallback(_fun70204(), [value6]));
const CodeField = importDefault(9026) /* metro dependency 9026: CodeField */;
object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const Xclkxp = (require(1244) /* metro dependency 1244: indexNative */).t.Xclkxp;
object2.title = Reflect.apply(string, intl, [Xclkxp]);
object2.description = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4qMI6A']);
object2.error = error ?? property;
object2.backgroundStyle = backgroundStyle;
object2.loading = loading;
object2.onCodeEntered = value6;
const CodeType = (require(9026) /* metro dependency 9026: CodeField */).CodeType;
const NUMERIC = CodeType.NUMERIC;
object2.codeType = NUMERIC;
object2.disabled = property2;
object2.disableKeyboardAvoidingView = disableKeyboardAvoidingView;
return <CodeField {...object2} />;
}
function _fun70200() { // fn#70200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:482, offset: 0x01cf276c, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun70202);
return _fun70203;
}
function _fun70204() { // fn#70204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:738, offset: 0x01cf284f, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun70206);
return _fun70207;
}
function* _fun70202(a0) { // fn#70202, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:502, offset: 0x01cf279b, size: 180 bytes, params: 2, frame: 20
var message;
var value4;
var defaultImport;
var value5;
var value6;
var binding;
var binding2;
var property;
var value8;
var verifyPhone;
var value9;
var value10;
var value11;
var token;
var error;
var body;
let value = undefined;
if (true) {
value = undefined;
reducibleJoin4: while (true) {
reduciblePort35: while (true) {
exceptionLanding32: while (true) {
try {
} catch (error) {
break exceptionLanding32;
}
break reducibleJoin4;
}
binding = env2_3;
body = error.body;
reducibleJoin34: while (true) {
if (body == null) {
message = value;
break reducibleJoin34;
}
message = body.message;
break reducibleJoin34;
}
binding(message);
break reduciblePort35;
}
return value;
}
try {
value4 = importDefault == null;
} catch (error) {
break exceptionLanding32;
}
if (!value4) {
try {
} catch (error) {
break exceptionLanding32;
}
try {
defaultImport = importDefault(a0);
} catch (error) {
break exceptionLanding32;
}
yield defaultImport;
try {
value5 = undefined;
value6 = false;
} catch (error) {
break exceptionLanding32;
}
if (value6) {
return value5;
}
reducibleJoin13: while (true) {
if (value5) {
return value;
}
break reducibleJoin13;
}
}
try {
binding = env3_1;
} catch (error) {
break exceptionLanding32;
}
try {
binding2 = env3_2;
} catch (error) {
break exceptionLanding32;
}
try {
property = binding2[4];
} catch (error) {
break exceptionLanding32;
}
try {
value8 = binding(property);
} catch (error) {
break exceptionLanding32;
}
try {
verifyPhone = value8.verifyPhone;
} catch (error) {
break exceptionLanding32;
}
try {
} catch (error) {
break exceptionLanding32;
}
try {
value9 = Reflect.apply(verifyPhone, value8, [require, a0, false]);
} catch (error) {
break exceptionLanding32;
}
yield value9;
try {
value10 = undefined;
value11 = false;
} catch (error) {
break exceptionLanding32;
}
if (value11) {
return value10;
}
try {
token = value10.token;
} catch (error) {
break exceptionLanding32;
}
try {
} catch (error) {
break exceptionLanding32;
}
try {
dependencyMap(token);
} catch (error) {
break exceptionLanding32;
}
}
return value;
}
function* _fun70206(a0) { // fn#70206, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:758, offset: 0x01cf287e, size: 65 bytes, params: 2, frame: 13
if (true) {
value = environment.__proto__.__proto__;
env2_4(true);
yield env2_5(a0);
if (false) {
return undefined;
}
env2_4(false);
}
}