decord/source/modules/age_gate/AgeGateModalActionCreators.tsx

62 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 6060
// Function ID: 6061
2026-07-20 16:05:17 +00:00
// Name: openAgeGateModal
2026-09-03 10:05:34 +00:00
// Dependencies: [1218, 673, 695, 706, 6061, 1219, 2]
2026-07-20 16:05:17 +00:00
// Exports: closeAgeGateModal, closeFailedAgeGate, openAgeGateModal, openFailureAgeGateModal, openSuccessAgeGateModal
2026-09-03 10:05:34 +00:00
// Module 6060 (openAgeGateModal)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import expandEventPropertiesDefault from "expandEventProperties" /* 695 */;
import dispatcherDefault from "dispatcher" /* 706 */;
import result2 from "result" /* 1218 */;
import transitionTo from "transitionTo" /* 1219 */;
2026-09-03 10:05:34 +00:00
import handleLogoutDefault from "handleLogout" /* 6061 */;
2026-09-02 09:53:35 +00:00
import ME from "ME" /* 673 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const AgeGateAnalyticAction = result2.AgeGateAnalyticAction;
2026-07-29 08:29:29 +00:00
({ Routes: c4, AnalyticEvents: c5 } = ME);
2026-08-24 06:08:38 +00:00
const result = set.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) {
2026-08-27 16:17:25 +00:00
let obj = expandEventPropertiesDefault;
2026-07-29 08:29:29 +00:00
obj = { section: JOIN_LARGE_GUILD_UNDERAGE };
2026-08-27 16:17:25 +00:00
obj.track(constants2.OPEN_MODAL, { type: "Enter Your Birthday", source: obj });
obj = { type: "AGE_GATE_MODAL_OPEN", source: JOIN_LARGE_GUILD_UNDERAGE };
2026-08-24 06:08:38 +00:00
dispatcherDefault.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-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
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;
2026-08-24 06:08:38 +00:00
expandEventPropertiesDefault.track(constants2.AGE_GATE_ACTION, obj);
const tmpResult = expandEventPropertiesDefault;
2026-07-20 16:05:17 +00:00
}
};
export const openSuccessAgeGateModal = function openSuccessAgeGateModal(source) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
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-08-24 06:08:38 +00:00
expandEventPropertiesDefault.track(constants2.AGE_GATE_ACTION, obj);
2026-07-20 16:05:17 +00:00
};
export const openFailureAgeGateModal = function openFailureAgeGateModal(source) {
2026-08-24 06:08:38 +00:00
closure_0 = arg1;
let obj = dispatcherDefault;
2026-07-20 16:05:17 +00:00
obj.wait(() => {
2026-08-24 06:08:38 +00:00
let obj = closure_1_1(closure_1_2[3]);
2026-07-23 10:11:24 +00:00
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-08-24 06:08:38 +00:00
expandEventPropertiesDefault.track(constants2.AGE_GATE_ACTION, obj);
2026-07-20 16:05:17 +00:00
};
export const closeFailedAgeGate = function closeFailedAgeGate() {
2026-08-24 06:08:38 +00:00
handleLogoutDefault.logoutInternal();
const obj = handleLogoutDefault;
transitionTo.transitionTo(constants.LOGIN, { source: "age_gate_modal" });
2026-07-20 16:05:17 +00:00
};