decord/source/modules/age_gate/AgeGateModalActionCreators.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

48 lines
2.5 KiB
TypeScript

// Module ID: 7284
// Function ID: 7285
// Name: AgeGateModalActionCreators
// Dependencies: [1098, 1074, 1242, 573, 6664, 1100, 2]
// Exports: closeAgeGateModal, closeFailedAgeGate, openAgeGateModal, openFailureAgeGateModal, openSuccessAgeGateModal
// Module 7284 (AgeGateModalActionCreators)
import DispatcherDefault from "Dispatcher" /* 573 */;
import AgeGateConstants from "AgeGateConstants" /* 1098 */;
import router_utils from "router_utils" /* 1100 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
import AuthenticationActionCreatorsDefault from "AuthenticationActionCreators" /* 6664 */;
import Constants from "Constants" /* 1074 */;
import size from "module_2" /* 2 */;
const AgeGateAnalyticAction = AgeGateConstants.AgeGateAnalyticAction;
({ Routes: closure_4, AnalyticEvents: hasOwnProperty } = Constants);
const result = size.fileFinishedImporting("modules/age_gate/AgeGateModalActionCreators.tsx");
export const openAgeGateModal = function openAgeGateModal(JOIN_LARGE_GUILD_UNDERAGE) {
AnalyticsUtilsDefault.track(constants2.OPEN_MODAL, { type: "Enter Your Birthday", source: { section: JOIN_LARGE_GUILD_UNDERAGE } });
const obj2 = { type: "Enter Your Birthday", source: { section: JOIN_LARGE_GUILD_UNDERAGE } };
DispatcherDefault.dispatch({ type: "AGE_GATE_MODAL_OPEN", source: JOIN_LARGE_GUILD_UNDERAGE });
};
export const closeAgeGateModal = function closeAgeGateModal(source) {
DispatcherDefault.wait(() => DispatcherDefault.dispatch({ type: "AGE_GATE_MODAL_CLOSE" }));
if (undefined !== source) {
const obj2 = { source, action: AgeGateAnalyticAction.AGE_GATE_CLOSE };
AnalyticsUtilsDefault.track(constants2.AGE_GATE_ACTION, obj2);
const tmpResult = AnalyticsUtilsDefault;
}
};
export const openSuccessAgeGateModal = function openSuccessAgeGateModal(source) {
DispatcherDefault.wait(() => {
DispatcherDefault.dispatch({ type: "AGE_GATE_SUCCESS_MODAL_OPEN" });
});
AnalyticsUtilsDefault.track(constants2.AGE_GATE_ACTION, { source, action: AgeGateAnalyticAction.AGE_GATE_SUCCESS });
};
export const openFailureAgeGateModal = function openFailureAgeGateModal(source, underageMessage) {
DispatcherDefault.wait(() => {
DispatcherDefault.dispatch({ type: "AGE_GATE_FAILURE_MODAL_OPEN", underageMessage });
});
AnalyticsUtilsDefault.track(constants2.AGE_GATE_ACTION, { source, action: AgeGateAnalyticAction.AGE_GATE_FAILURE });
};
export const closeFailedAgeGate = function closeFailedAgeGate() {
AuthenticationActionCreatorsDefault.logoutInternal();
router_utils.transitionTo(constants.LOGIN, { source: "age_gate_modal" });
};