decord/alpha/source/modules/auth/experiment/trackAgeGateSubmitted.tsx

25 lines
937 B
TypeScript
Raw Normal View History

// Module ID: 15799
// Function ID: 15800
2026-07-20 16:05:17 +00:00
// Name: trackAgeGateSubmitted
// Dependencies: [1074, 1241, 4450, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 15799 (trackAgeGateSubmitted)
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import _modDef4450 from "module_4450" /* 4450 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/auth/experiment/trackAgeGateSubmitted.tsx");
2026-07-20 16:05:17 +00:00
export default function trackAgeGateSubmitted(format, section) {
const obj = AnalyticsUtilsDefault;
2026-07-20 16:05:17 +00:00
let formatResult = null;
2026-07-29 08:29:29 +00:00
if (obj2.diff(format, "years") < 18) {
2026-07-20 16:05:17 +00:00
formatResult = format.format("YYYY-MM-DD");
}
obj2 = _modDef4450();
obj.track(AnalyticEvents.AGE_GATE_SUBMITTED, { dob: formatResult, dob_day: format.date(), dob_month: format.month() + 1, dob_year: format.year(), source: { section } });
2026-07-20 16:05:17 +00:00
};