decord/beta/source/modules/captcha/useCaptchaModalEffects.tsx
github-actions 9b6fea255e chore: update source for beta 346.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-18 19:45:33 +00:00

45 lines
1.3 KiB
TypeScript

// Module ID: 17402
// Function ID: 17403
// Name: useCaptchaModalEffects
// Dependencies: [19, 1074, 5073, 11414, 1240, 2]
// Exports: default
// Module 17402 (useCaptchaModalEffects)
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1240 */;
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;
};
};