decord/source/modules/age_gate/AgeGateModalActionCreators.tsx

56 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 5587
// Function ID: 47425
2026-07-20 16:05:17 +00:00
// Name: openAgeGateModal
2026-07-24 07:16:23 +00:00
// Dependencies: [1197, 653, 675, 686, 5588, 1198, 2]
2026-07-20 16:05:17 +00:00
// Exports: closeAgeGateModal, closeFailedAgeGate, openAgeGateModal, openFailureAgeGateModal, openSuccessAgeGateModal
2026-07-24 07:16:23 +00:00
// Module 5587 (openAgeGateModal)
2026-07-23 10:11:24 +00:00
import { AgeGateAnalyticAction } from "result";
import ME from "ME";
let closure_4;
let closure_5;
({ Routes: closure_4, AnalyticEvents: closure_5 } = ME);
const result = require("expandLocation").fileFinishedImporting("modules/age_gate/AgeGateModalActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const openAgeGateModal = function openAgeGateModal(NSFW_VOICE_CHANNEL) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(675);
2026-07-20 16:05:17 +00:00
obj = { section: NSFW_VOICE_CHANNEL };
obj.track(constants2.OPEN_MODAL, { type: "Enter Your Birthday", source: obj });
obj = { type: "AGE_GATE_MODAL_OPEN", source: NSFW_VOICE_CHANNEL };
2026-07-23 10:11:24 +00:00
importDefault(686).dispatch(obj);
2026-07-20 16:05:17 +00:00
};
2026-07-23 10:11:24 +00:00
export const closeAgeGateModal = function closeAgeGateModal(closure_0) {
let obj = importDefault(686);
obj.wait(() => outer1_1(outer1_2[3]).dispatch({ type: "AGE_GATE_MODAL_CLOSE" }));
if (undefined !== closure_0) {
obj = { source: closure_0, action: AgeGateAnalyticAction.AGE_GATE_CLOSE };
importDefault(675).track(constants2.AGE_GATE_ACTION, obj);
const obj2 = importDefault(675);
2026-07-20 16:05:17 +00:00
}
};
export const openSuccessAgeGateModal = function openSuccessAgeGateModal(source) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(686);
2026-07-20 16:05:17 +00:00
obj.wait(() => {
2026-07-23 10:11:24 +00:00
outer1_1(outer1_2[3]).dispatch({ type: "AGE_GATE_SUCCESS_MODAL_OPEN" });
2026-07-20 16:05:17 +00:00
});
obj = { source, action: AgeGateAnalyticAction.AGE_GATE_SUCCESS };
2026-07-23 10:11:24 +00:00
importDefault(675).track(constants2.AGE_GATE_ACTION, obj);
2026-07-20 16:05:17 +00:00
};
export const openFailureAgeGateModal = function openFailureAgeGateModal(source) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg1;
let obj = importDefault(686);
2026-07-20 16:05:17 +00:00
obj.wait(() => {
2026-07-23 10:11:24 +00:00
let obj = outer1_1(outer1_2[3]);
obj = { type: "AGE_GATE_FAILURE_MODAL_OPEN", underageMessage: closure_0 };
2026-07-20 16:05:17 +00:00
obj.dispatch(obj);
});
obj = { source, action: AgeGateAnalyticAction.AGE_GATE_FAILURE };
2026-07-23 10:11:24 +00:00
importDefault(675).track(constants2.AGE_GATE_ACTION, obj);
2026-07-20 16:05:17 +00:00
};
export const closeFailedAgeGate = function closeFailedAgeGate() {
2026-07-24 07:16:23 +00:00
importDefault(5588).logoutInternal();
const obj = importDefault(5588);
2026-07-23 10:11:24 +00:00
require(1198) /* shouldNavigate */.transitionTo(constants.LOGIN, { source: "age_gate_modal" });
2026-07-20 16:05:17 +00:00
};