decord/source/modules/age_gate/AgeGateActionCreators.tsx

45 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 15226
// Function ID: 15227
2026-07-20 16:05:17 +00:00
// Name: submitDateOfBirth
2026-08-15 05:55:55 +00:00
// Dependencies: [1221, 676, 15225, 698, 530, 709, 2]
2026-07-20 16:05:17 +00:00
// Exports: logoutUnderageNewUser, preventUnderageRegistration, submitDateOfBirth
2026-08-15 05:55:55 +00:00
// Module 15226 (submitDateOfBirth)
2026-07-23 10:11:24 +00:00
import { AgeGateAnalyticAction } from "result";
import ME from "ME";
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c4;
let c5;
({ AnalyticEvents: c4, Endpoints: c5 } = ME);
2026-07-23 10:11:24 +00:00
const result = require("trackAgeGateSubmitted").fileFinishedImporting("modules/age_gate/AgeGateActionCreators.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const submitDateOfBirth = function submitDateOfBirth(c0, outer1_2) {
const _require = outer1_2;
2026-08-15 05:55:55 +00:00
importDefault(15225)(c0, outer1_2);
2026-07-29 08:29:29 +00:00
let obj = importDefault(698);
obj = { source: outer1_2, action: AgeGateAnalyticAction.AGE_GATE_SUBMITTED };
2026-07-20 16:05:17 +00:00
obj.track(constants.AGE_GATE_ACTION, obj);
2026-07-29 08:29:29 +00:00
const HTTP = _require(530).HTTP;
obj = { url: constants2.ME, oldFormErrors: true, body: null, rejectWithError: false };
obj[2] = { date_of_birth: c0.format("YYYY-MM-DD") };
const obj1 = { date_of_birth: c0.format("YYYY-MM-DD") };
2026-07-20 16:05:17 +00:00
return HTTP.patch(obj).then((user) => {
2026-07-23 10:11:24 +00:00
let obj = outer1_1(outer1_2[5]);
2026-07-20 16:05:17 +00:00
obj.dispatch({ type: "CURRENT_USER_UPDATE", user: user.body });
2026-07-23 10:11:24 +00:00
obj = { source: closure_0, action: outer1_3.AGE_GATE_SUCCESS };
outer1_1(outer1_2[3]).track(outer1_4.AGE_GATE_ACTION, obj);
2026-07-20 16:05:17 +00:00
});
};
export const preventUnderageRegistration = function preventUnderageRegistration(REGISTER) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
2026-07-20 16:05:17 +00:00
obj.dispatch({ type: "AGE_GATE_PREVENT_UNDERAGE_REGISTRATION" });
obj = { source: REGISTER, action: AgeGateAnalyticAction.AGE_GATE_PREVENT_UNDERAGE_REGISTRATION };
2026-07-29 08:29:29 +00:00
importDefault(698).track(constants.AGE_GATE_ACTION, obj);
2026-07-20 16:05:17 +00:00
};
export const logoutUnderageNewUser = function logoutUnderageNewUser(source) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
2026-07-20 16:05:17 +00:00
obj.dispatch({ type: "AGE_GATE_LOGOUT_UNDERAGE_NEW_USER" });
obj = { source, action: AgeGateAnalyticAction.AGE_GATE_LOGOUT_UNDERAGE_NEW_USER };
2026-07-29 08:29:29 +00:00
importDefault(698).track(constants.AGE_GATE_ACTION, obj);
2026-07-20 16:05:17 +00:00
};