decord/stable/source/modules/auth/experiment/trackAgeGateSubmitted.tsx
github-actions 57c2214117 chore: update source for stable 347.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-29 21:26:22 +00:00

24 lines
937 B
TypeScript

// Module ID: 16293
// Function ID: 16294
// Name: trackAgeGateSubmitted
// Dependencies: [1074, 1241, 4380, 2]
// Exports: default
// Module 16293 (trackAgeGateSubmitted)
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import _modDef4380 from "module_4380" /* 4380 */;
import size from "module_2" /* 2 */;
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/auth/experiment/trackAgeGateSubmitted.tsx");
export default function trackAgeGateSubmitted(format, section) {
const obj = AnalyticsUtilsDefault;
let formatResult = null;
if (obj2.diff(format, "years") < 18) {
formatResult = format.format("YYYY-MM-DD");
}
obj2 = _modDef4380();
obj.track(AnalyticEvents.AGE_GATE_SUBMITTED, { dob: formatResult, dob_day: format.date(), dob_month: format.month() + 1, dob_year: format.year(), source: { section } });
};