decord/beta/source/modules/captcha/tooling/CaptchaTestUtils.tsx

32 lines
1,001 B
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 16054
// Function ID: 16055
// Name: CaptchaTestUtils
2026-10-12 16:32:48 +00:00
// Dependencies: [16055, 2]
2026-10-12 16:32:48 +00:00
// Module 16054 (CaptchaTestUtils)
import CaptchaTestActionCreators from "CaptchaTestActionCreators" /* 16055 */;
import size from "module_2" /* 2 */;
const entries = Object.entries(CaptchaTestActionCreators.HCaptchaDifficulty);
const mapped = entries.map((item) => {
2026-10-01 14:13:23 +00:00
let str;
let tmp;
[tmp, str] = item;
2026-10-01 14:13:23 +00:00
const obj = { id: str.toString(), label: tmp, value: str };
return obj;
});
const found = mapped.filter(function isHCaptchaDifficulty(value) {
return typeof value.value !== "string";
});
const entries1 = Object.entries(CaptchaTestActionCreators.CaptchaDeciderType);
const mapped1 = entries1.map((item) => {
2026-10-01 14:13:23 +00:00
let tmp;
let tmp2;
[tmp, tmp2] = item;
return { id, label, value: id };
});
const result = size.fileFinishedImporting("modules/captcha/tooling/CaptchaTestUtils.tsx");
export const HCAPTCHA_DIFFICULTY_OPTIONS = found;
export const CAPTCHA_DECIDER_TYPE_OPTIONS = mapped1;