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

30 lines
1 KiB
TypeScript
Raw Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 16689
// Function ID: 16690
2026-07-20 16:05:17 +00:00
// Name: trackAgeGateSubmitted
2026-10-13 12:43:34 +00:00
// Dependencies: [1085, 1265, 4702, 16690, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-13 12:43:34 +00:00
// Module 16689 (trackAgeGateSubmitted)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-09 10:00:15 +00:00
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1265 */;
2026-10-10 08:08:14 +00:00
import _modDef4702 from "module_4702" /* 4702 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-08 09:57:35 +00:00
let tmp;
2026-10-13 12:43:34 +00:00
const formatDateForAPIDefault = tmp(16690);
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/auth/experiment/trackAgeGateSubmitted.tsx");
2026-07-20 16:05:17 +00:00
2026-10-08 09:57:35 +00:00
export default function trackAgeGateSubmitted(date, section) {
2026-10-03 08:58:59 +00:00
const track = AnalyticsUtilsDefault.track;
const AGE_GATE_SUBMITTED = AnalyticEvents.AGE_GATE_SUBMITTED;
AnalyticsUtilsDefault;
2026-10-08 09:57:35 +00:00
let tmp4 = null;
2026-10-10 08:08:14 +00:00
const obj = _modDef4702();
2026-10-08 09:57:35 +00:00
if (obj.diff(date, "years") < 18) {
tmp4 = formatDateForAPIDefault(date);
2026-07-20 16:05:17 +00:00
}
2026-10-08 09:57:35 +00:00
const obj2 = { dob: tmp4, dob_day: date.date(), dob_month: date.month() + 1, dob_year: date.year(), source: { section } };
2026-10-03 08:58:59 +00:00
track(AGE_GATE_SUBMITTED, obj2);
2026-07-20 16:05:17 +00:00
};