decord/source/modules/age_gate/AgeGateModalActionCreators.tsx

58 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 5826
// Function ID: 5827
2026-07-20 16:05:17 +00:00
// Name: openAgeGateModal
2026-08-08 06:10:11 +00:00
// Dependencies: [1221, 676, 698, 709, 5827, 1222, 2]
2026-07-20 16:05:17 +00:00
// Exports: closeAgeGateModal, closeFailedAgeGate, openAgeGateModal, openFailureAgeGateModal, openSuccessAgeGateModal
2026-08-08 06:10:11 +00:00
// Module 5826 (openAgeGateModal)
2026-07-23 10:11:24 +00:00
import { AgeGateAnalyticAction } from "result";
import ME from "ME";
2026-07-29 08:29:29 +00:00
let c4;
let c5;
({ Routes: c4, AnalyticEvents: c5 } = ME);
const result = require("expandEventProperties").fileFinishedImporting("modules/age_gate/AgeGateModalActionCreators.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const openAgeGateModal = function openAgeGateModal(JOIN_LARGE_GUILD_UNDERAGE) {
let obj = importDefault(698);
obj = { section: JOIN_LARGE_GUILD_UNDERAGE };
2026-07-20 16:05:17 +00:00
obj.track(constants2.OPEN_MODAL, { type: "Enter Your Birthday", source: obj });
2026-07-29 08:29:29 +00:00
obj = { type: "AGE_GATE_MODAL_OPEN", source: JOIN_LARGE_GUILD_UNDERAGE };
importDefault(709).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) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
obj.wait(() => callback(table[3]).dispatch({ type: "AGE_GATE_MODAL_CLOSE" }));
2026-07-23 10:11:24 +00:00
if (undefined !== closure_0) {
2026-07-29 08:29:29 +00:00
obj = { source: null, action: null };
obj[0] = closure_0;
obj[1] = AgeGateAnalyticAction.AGE_GATE_CLOSE;
importDefault(698).track(constants2.AGE_GATE_ACTION, obj);
const tmpResult = importDefault(698);
2026-07-20 16:05:17 +00:00
}
};
export const openSuccessAgeGateModal = function openSuccessAgeGateModal(source) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
2026-07-20 16:05:17 +00:00
obj.wait(() => {
2026-07-29 08:29:29 +00:00
callback(table[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-29 08:29:29 +00:00
importDefault(698).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;
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
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-29 08:29:29 +00:00
importDefault(698).track(constants2.AGE_GATE_ACTION, obj);
2026-07-20 16:05:17 +00:00
};
export const closeFailedAgeGate = function closeFailedAgeGate() {
2026-08-08 06:10:11 +00:00
importDefault(5827).logoutInternal();
const obj = importDefault(5827);
2026-07-29 08:29:29 +00:00
require(1222) /* transitionTo */.transitionTo(constants.LOGIN, { source: "age_gate_modal" });
2026-07-20 16:05:17 +00:00
};