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

30 lines
1 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 16294
// Function ID: 16295
2026-07-20 16:05:17 +00:00
// Name: trackAgeGateSubmitted
2026-10-09 10:00:15 +00:00
// Dependencies: [1085, 1265, 4661, 16295, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-09 10:00:15 +00:00
// Module 16294 (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 */;
import _modDef4661 from "module_4661" /* 4661 */;
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-09 10:00:15 +00:00
const formatDateForAPIDefault = tmp(16295);
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-09 10:00:15 +00:00
const obj = _modDef4661();
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
};