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

28 lines
849 B
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 14881
// Function ID: 14882
2026-07-20 16:05:17 +00:00
// Name: found
2026-08-05 07:35:12 +00:00
// Dependencies: [14882, 2]
2026-07-20 16:05:17 +00:00
2026-08-05 07:35:12 +00:00
// Module 14881 (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-08-04 21:03:28 +00:00
return typeof value.value !== "string";
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;