decord/source/modules/safety_flows/SafetyFlowsActionCreators.tsx
2026-08-08 06:10:11 +00:00

188 lines
5.6 KiB
TypeScript

// Module ID: 16943
// Function ID: 16944
// Name: _getCurrentTask
// Dependencies: [5, 676, 5127, 503, 4203, 2]
// Exports: completeTask, getCurrentTask, resendVerificationCode
// Module 16943 (_getCurrentTask)
import set from "set";
import { Endpoints } from "ME";
const require = arg1;
function _getCurrentTask() {
const self = this;
const tmp = callback(function*() {
let closure_0 = tmp4;
const obj1 = { url: null, trackedActionData: null, rejectWithError: true };
obj1[0] = outer1_4.SAFETY_FLOWS_TASK;
const obj2 = { event: null };
obj2[0] = outer1_0(503).NetworkActionNames.USER_VERIFY;
obj1[1] = obj2;
closure_0 = yield v0(5127).get(obj1);
let body = null;
if (204 !== closure_0.status) {
body = closure_0.body;
}
return body;
});
const _getCurrentTask = tmp;
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}
function _completeTask() {
const self = this;
const tmp = callback((arg0) => {
let closure_0 = arg0;
let c2 = 0;
let c1 = 0;
return (function*(arg0, body) {
const obj1 = { url: null, body: null, trackedActionData: null, rejectWithError: true };
obj1[0] = outer1_4.SAFETY_FLOWS_TASK;
obj1[1] = callback;
const obj2 = { event: null };
obj2[0] = callback(503).NetworkActionNames.USER_VERIFY;
obj1[2] = obj2;
yield v0(5127).post(obj1);
return body.body;
})();
});
const _completeTask = tmp;
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}
function _resendVerificationCode() {
const self = this;
const tmp = callback((arg0) => {
let closure_0 = arg0;
let c5 = 0;
let c6 = 0;
let c4 = 0;
return (function*(arg0) {
if (c6 === 2) {
c6 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp6 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
return { value: "HermesInternal", done: null };
}
} else {
try {
c6 = 2;
if (0 === c5) {
if (arg0 === 1) {
c6 = 3;
throw arg1;
} else if (arg0 === 2) {
c6 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
const table = tmp3;
const callback2 = tmp7;
let constants = 1;
let obj5 = outer1_1(outer1_2[2]);
const obj1 = { url: null, body: null, trackedActionData: null, rejectWithError: true };
obj1[0] = constants.SAFETY_FLOWS_RESEND_VERIFICATION_CODE;
const obj2 = { flow_id: null };
obj2[0] = callback;
obj1[1] = obj2;
const obj3 = { event: null };
obj3[0] = callback(outer1_2[3]).NetworkActionNames.USER_VERIFY;
obj1[2] = obj3;
c5 = 2;
c6 = 1;
const obj4 = { value: null, done: false };
obj4[0] = obj5.post(obj1);
return obj4;
}
} else if (1 === tmp7) {
constants = 0;
callback = set;
const tmp17 = new callback2(table[4])(callback);
throw tmp17;
} else if (arg0 === 1) {
c6 = 3;
throw arg1;
} else if (arg0 === 2) {
constants = 0;
c6 = 3;
obj5 = { value: null, done: true };
obj5[0] = arg1;
return obj5;
} else {
constants = 0;
c6 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
}
} catch (tmp19) {
set = tmp19;
if (tmp4 === constants) {
c6 = tmp2;
throw tmp19;
} else {
c5 = tmp;
}
}
}
})();
});
const _resendVerificationCode = tmp;
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}
const result = require("module_5127").fileFinishedImporting("modules/safety_flows/SafetyFlowsActionCreators.tsx");
export const getCurrentTask = function getCurrentTask() {
const self = this;
const apply = _getCurrentTask.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};
export const completeTask = function completeTask(arg0) {
const self = this;
const apply = _completeTask.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};
export const resendVerificationCode = function resendVerificationCode(outer1_0) {
const self = this;
const apply = _resendVerificationCode.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};