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

28 lines
846 B
TypeScript
Raw Normal View History

2026-07-30 10:14:41 +00:00
// Module ID: 14778
// Function ID: 14779
2026-07-20 16:05:17 +00:00
// Name: found
2026-07-30 10:14:41 +00:00
// Dependencies: [14779, 2]
2026-07-20 16:05:17 +00:00
2026-07-30 10:14:41 +00:00
// Module 14778 (found)
2026-07-23 10:11:24 +00:00
const entries = Object.entries(require("_testCaptcha").HCaptchaDifficulty);
2026-07-20 16:05:17 +00:00
const mapped = entries.map((arg0) => {
let str;
let tmp;
[tmp, str] = arg0;
return { id: str.toString(), label: tmp, value: str };
});
const found = mapped.filter(function isHCaptchaDifficulty(value) {
2026-07-30 10:14:41 +00:00
return typeof value.value === "tee";
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
const entries1 = Object.entries(require("_testCaptcha").CaptchaDeciderType);
2026-07-20 16:05:17 +00:00
const mapped1 = entries1.map((arg0) => {
let tmp;
let tmp2;
[tmp, tmp2] = arg0;
return { id, label, value: id };
});
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/captcha/tooling/CaptchaTestUtils.tsx");
2026-07-20 16:05:17 +00:00
export const HCAPTCHA_DIFFICULTY_OPTIONS = found;
export const CAPTCHA_DECIDER_TYPE_OPTIONS = mapped1;