decord/source/modules/auth/experiment/trackAgeGateSubmitted.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

24 lines
880 B
TypeScript

// Module ID: 15959
// Function ID: 15960
// Name: trackAgeGateSubmitted
// Dependencies: [1074, 1242, 4153, 2]
// Exports: default
// Module 15959 (trackAgeGateSubmitted)
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 1242 */;
const AnalyticEvents = ME.AnalyticEvents;
const result = set.fileFinishedImporting("modules/auth/experiment/trackAgeGateSubmitted.tsx");
export default function trackAgeGateSubmitted(format, section) {
let obj = expandEventPropertiesDefault;
let formatResult = null;
if (obj2.diff(format, "years") < 18) {
formatResult = format.format("YYYY-MM-DD");
}
obj = { dob: formatResult, dob_day: format.date(), dob_month: format.month() + 1, dob_year: format.year(), source: obj };
obj = { section };
obj.track(AnalyticEvents.AGE_GATE_SUBMITTED, obj);
};