2026-10-13 12:43:34 +00:00
|
|
|
// Module ID: 16367
|
|
|
|
|
// Function ID: 16368
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: CaptchaTestUtils
|
2026-10-13 12:43:34 +00:00
|
|
|
// Dependencies: [16368, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-13 12:43:34 +00:00
|
|
|
// Module 16367 (CaptchaTestUtils)
|
|
|
|
|
import CaptchaTestActionCreators from "CaptchaTestActionCreators" /* 16368 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const entries = Object.entries(CaptchaTestActionCreators.HCaptchaDifficulty);
|
|
|
|
|
const mapped = entries.map((item) => {
|
2026-10-03 08:58:59 +00:00
|
|
|
let str;
|
|
|
|
|
let tmp;
|
2026-09-10 05:38:07 +00:00
|
|
|
[tmp, str] = item;
|
2026-10-03 08:58:59 +00:00
|
|
|
const obj = { id: str.toString(), label: tmp, value: str };
|
|
|
|
|
return obj;
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
|
|
|
|
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-09-10 05:38:07 +00:00
|
|
|
const entries1 = Object.entries(CaptchaTestActionCreators.CaptchaDeciderType);
|
|
|
|
|
const mapped1 = entries1.map((item) => {
|
2026-10-03 08:58:59 +00:00
|
|
|
let tmp;
|
|
|
|
|
let tmp2;
|
2026-09-10 05:38:07 +00:00
|
|
|
[tmp, tmp2] = item;
|
2026-07-20 16:05:17 +00:00
|
|
|
return { id, label, value: id };
|
|
|
|
|
});
|
2026-09-10 05:38:07 +00:00
|
|
|
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;
|