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

27 lines
856 B
TypeScript
Raw Normal View History

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