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

27 lines
937 B
TypeScript
Raw Normal View History

// Module ID: 15492
// Function ID: 15493
// Name: CaptchaTestUtils
// Dependencies: [15493, 2]
2026-07-20 16:05:17 +00:00
// Module 15492 (CaptchaTestUtils)
import CaptchaTestActionCreators from "CaptchaTestActionCreators" /* 15493 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const entries = Object.entries(CaptchaTestActionCreators.HCaptchaDifficulty);
const mapped = entries.map((item) => {
[tmp, str] = item;
2026-07-20 16:05:17 +00:00
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
});
const entries1 = Object.entries(CaptchaTestActionCreators.CaptchaDeciderType);
const mapped1 = entries1.map((item) => {
[tmp, tmp2] = item;
2026-07-20 16:05:17 +00:00
return { id, label, value: id };
});
const result = size.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;