decord/source/modules/captcha/useCaptchaModalEffects.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

45 lines
1.3 KiB
TypeScript

// Module ID: 17400
// Function ID: 17401
// Name: useCaptchaModalEffects
// Dependencies: [19, 1074, 5073, 11410, 1242, 2]
// Exports: default
// Module 17400 (useCaptchaModalEffects)
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
import noop from "module_19" /* 19 */;
const require = globalThis.__r;
const require = fn;
const AnalyticEvents = fn(1074).AnalyticEvents;
const size = fn(2);
const result = size.fileFinishedImporting("modules/captcha/useCaptchaModalEffects.tsx");
export default function useCaptchaModalEffects(arg0) {
({ onReject: require, analyticsType } = arg0);
if (analyticsType === undefined) {
analyticsType = "Guild Join Captcha";
}
dependencyMap = noop.useRef(true);
analyticsType(5073)(() => () => {
if (ref.current) {
if (closure_1_0 != null) {
tmp(require("SharedCaptchaUtils").CaptchaError.CANCEL);
}
}
});
const items = [analyticsType];
const effect = noop.useEffect(() => {
AnalyticsUtilsDefault.track(AnalyticEvents.OPEN_MODAL, { type: analyticsType });
return () => {
if (ref.current) {
const obj2 = { type };
analyticsType(ref[4]).track(constants.MODAL_DISMISSED, obj2);
const obj = analyticsType(ref[4]);
}
};
}, items);
return () => {
closure_2.current = false;
};
};