decord/source/modules/captcha/useCaptchaModalEffects.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

45 lines
1.3 KiB
TypeScript

// Module ID: 17496
// Function ID: 17497
// Name: useCaptchaModalEffects
// Dependencies: [19, 1074, 5077, 11423, 1241, 2]
// Exports: default
// Module 17496 (useCaptchaModalEffects)
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
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(5077)(() => () => {
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;
};
};