decord/source/modules/captcha/tooling/CaptchaTestActionCreators.tsx

83 lines
2.6 KiB
TypeScript
Raw Normal View History

// Module ID: 15774
// Function ID: 15775
// Name: CaptchaTestActionCreators
// Dependencies: [5, 1074, 1272, 2]
2026-07-20 16:05:17 +00:00
// Exports: testCaptcha
// Module 15774 (CaptchaTestActionCreators)
import HTTPUtils from "HTTPUtils" /* 1272 */;
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
2026-07-23 10:11:24 +00:00
require = fn;
let closure_4 = async function _testCaptcha(decider, options) {
c3 = 0;
c2 = 0;
return (async (arg0, value) => {
if (c2 === 2) {
c2 = 3;
throw new TypeError("Generator functions may not be called on executing generators");
} else if (tmp3 === 3) {
if (arg0 === 1) {
throw value;
} else if (arg0 === 2) {
const obj2 = { value, done: true };
return obj2;
2026-07-29 08:29:29 +00:00
} else {
return { value: "HermesInternal", done: null };
}
} else {
try {
c2 = 2;
if (0 === c3) {
if (arg0 === 1) {
2026-07-29 08:29:29 +00:00
c2 = 3;
throw value;
2026-07-29 08:29:29 +00:00
} else if (arg0 === 2) {
c2 = 3;
const obj3 = { value, done: true };
return obj3;
2026-07-29 08:29:29 +00:00
} else {
const HTTP = HTTPUtils.HTTP;
const request = { url: constants.CAPTCHA_TEST, body: null, rejectWithError: false };
const obj4 = { decider, options };
request.body = obj4;
c3 = 1;
c2 = 1;
const obj5 = { value: HTTP.post(request), done: false };
return obj5;
2026-07-29 08:29:29 +00:00
}
} else if (arg0 === 1) {
c2 = 3;
throw value;
} else if (arg0 === 2) {
c2 = 3;
const obj = { value, done: true };
return obj;
} else {
c2 = 3;
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} catch (tmp10) {
c2 = tmp;
throw tmp10;
2026-07-29 08:29:29 +00:00
}
}
})();
};
const Endpoints = fn(1074).Endpoints;
const size = fn(2);
const result = size.fileFinishedImporting("modules/captcha/tooling/CaptchaTestActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const CaptchaDeciderType = { HCAPTCHA_RQDATA: "hCaptchaRqdata", SMITE_RQDATA: "SmiteRqdata", RECAPTCHA: "Recaptcha", RECAPTCHA_ENTERPRISE: "RecaptchaEnterprise" };
export const HCaptchaDifficulty = { EASY: 1, [1]: "EASY", MODERATE: 2, [2]: "MODERATE", DIFFICULT: 3, [3]: "DIFFICULT", VERY_DIFFICULT: 4, [4]: "VERY_DIFFICULT" };
export const testCaptcha = function testCaptcha() {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = closure_4.apply;
2026-07-29 08:29:29 +00:00
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
};