decord/source/modules/verification/ChangeEmailActionCreators.tsx

64 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 8571
// Function ID: 8572
2026-07-20 16:05:17 +00:00
// Name: _confirmEmailChange
2026-08-15 05:55:55 +00:00
// Dependencies: [5, 676, 5227, 503, 2]
2026-07-20 16:05:17 +00:00
// Exports: confirmEmailChange, sendConfirmationCode
2026-08-15 05:55:55 +00:00
// Module 8571 (_confirmEmailChange)
2026-07-23 10:11:24 +00:00
import asyncGeneratorStep from "asyncGeneratorStep";
import { Endpoints } from "ME";
const require = arg1;
2026-07-20 16:05:17 +00:00
function _confirmEmailChange() {
2026-07-29 08:29:29 +00:00
const self = this;
const tmp = callback((arg0) => {
let closure_0 = arg0;
let c2 = 0;
let c1 = 0;
return (function*(arg0, body) {
2026-08-15 05:55:55 +00:00
const obj5 = v0(5227);
2026-08-04 21:03:28 +00:00
const obj1 = { url: null, body: null, trackedActionData: null, rejectWithError: false };
obj1[0] = outer1_4.USER_EMAIL_VERIFY_CODE;
const obj2 = { code: null };
obj2[0] = callback;
obj1[1] = obj2;
const obj3 = { event: null };
obj3[0] = callback(503).NetworkActionNames.USER_ACCOUNT_EMAIL_CHANGE_VERIFY_CODE;
obj1[2] = obj3;
yield obj5.post(obj1);
return body.body;
2026-07-29 08:29:29 +00:00
})();
});
const _confirmEmailChange = 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-08-15 05:55:55 +00:00
const result = require("module_5227").fileFinishedImporting("modules/verification/ChangeEmailActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const sendConfirmationCode = function sendConfirmationCode() {
let flag = arg0;
if (arg0 === undefined) {
flag = false;
}
2026-08-15 05:55:55 +00:00
let obj = importDefault(5227);
2026-07-29 08:29:29 +00:00
obj = { url: Endpoints.USER_EMAIL, trackedActionData: null, rejectWithError: false };
obj = { event: require(503) /* encodeProperties */.NetworkActionNames.USER_ACCOUNT_EMAIL_CHANGE_SEND_CODE, properties: { is_resend: flag } };
obj[1] = obj;
2026-07-20 16:05:17 +00:00
return obj.put(obj);
};
2026-07-29 08:29:29 +00:00
export const confirmEmailChange = function confirmEmailChange(closure_0) {
const self = this;
const apply = _confirmEmailChange.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
};