decord/source/modules/verification/native/components/VerifyPhone.tsx

74 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 9298
// Function ID: 72571
2026-07-20 16:05:17 +00:00
// Name: VerifyPhone
2026-07-24 07:16:23 +00:00
// Dependencies: [5, 57, 31, 33, 9275, 9299, 9300, 1212, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-24 07:16:23 +00:00
// Module 9298 (VerifyPhone)
2026-07-23 10:11:24 +00:00
import SmsAutofillManager from "SmsAutofillManager";
import _slicedToArray from "_slicedToArray";
import result from "result";
import { jsx } from "jsxProd";
const require = arg1;
const result = require("result").fileFinishedImporting("modules/verification/native/components/VerifyPhone.tsx");
2026-07-20 16:05:17 +00:00
export default function VerifyPhone(phone) {
let backgroundStyle;
2026-07-23 10:11:24 +00:00
let c4;
2026-07-20 16:05:17 +00:00
let disableKeyboardAvoidingView;
let error;
let onCodeEnteredIntercept;
let tmp4;
phone = phone.phone;
let flag = phone.loading;
if (flag === undefined) {
flag = false;
}
({ error, onCodeEnteredIntercept } = phone);
const onVerified = phone.onVerified;
2026-07-23 10:11:24 +00:00
let SmsAutofillManager;
2026-07-20 16:05:17 +00:00
let callback;
2026-07-23 10:11:24 +00:00
callback = undefined;
2026-07-20 16:05:17 +00:00
({ backgroundStyle, disableKeyboardAvoidingView } = phone);
2026-07-23 10:11:24 +00:00
const tmp = callback(callback.useState(null), 2);
2026-07-20 16:05:17 +00:00
let first = tmp[0];
2026-07-23 10:11:24 +00:00
SmsAutofillManager = tmp[1];
[tmp4, c4] = callback(callback.useState(false), 2);
2026-07-20 16:05:17 +00:00
const items = [onCodeEnteredIntercept, onVerified, phone];
2026-07-23 10:11:24 +00:00
callback = callback.useCallback((() => {
2026-07-20 16:05:17 +00:00
// CreateGeneratorClosureLongIndex (0x67)
let closure_0 = callback(tmp);
return function() {
return callback(...arguments);
};
2026-07-23 10:11:24 +00:00
})(), items);
2026-07-20 16:05:17 +00:00
const items1 = [callback];
2026-07-23 10:11:24 +00:00
const callback1 = callback.useCallback((() => {
2026-07-20 16:05:17 +00:00
// CreateGeneratorClosureLongIndex (0x67)
let closure_0 = callback(tmp);
return function() {
return callback(...arguments);
};
2026-07-23 10:11:24 +00:00
})(), items1);
onCodeEnteredIntercept(onVerified[5])(callback1);
2026-07-20 16:05:17 +00:00
const obj = {};
2026-07-23 10:11:24 +00:00
const tmp3 = callback(callback.useState(false), 2);
2026-07-20 16:05:17 +00:00
const tmp8 = jsx;
2026-07-23 10:11:24 +00:00
const intl = phone(onVerified[7]).intl;
obj.title = intl.string(phone(onVerified[7]).t.Xclkxp);
const intl2 = phone(onVerified[7]).intl;
obj.description = intl2.string(phone(onVerified[7]).t["4qMI6A"]);
2026-07-20 16:05:17 +00:00
if (null != error) {
first = error;
}
obj.error = first;
obj.backgroundStyle = backgroundStyle;
obj.loading = flag;
obj.onCodeEntered = callback;
2026-07-23 10:11:24 +00:00
obj.codeType = phone(onVerified[6]).CodeType.NUMERIC;
2026-07-20 16:05:17 +00:00
obj.disabled = tmp4;
obj.disableKeyboardAvoidingView = disableKeyboardAvoidingView;
2026-07-23 10:11:24 +00:00
return tmp8(onCodeEnteredIntercept(onVerified[6]), obj);
2026-07-20 16:05:17 +00:00
};