2026-09-14 20:04:03 +00:00
|
|
|
// Module ID: 16056
|
|
|
|
|
// Function ID: 16057
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: trackAgeGateSubmitted
|
2026-09-14 20:04:03 +00:00
|
|
|
// Dependencies: [1074, 1240, 4228, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-14 20:04:03 +00:00
|
|
|
// Module 16056 (trackAgeGateSubmitted)
|
2026-09-10 05:38:07 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-09-14 20:04:03 +00:00
|
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1240 */;
|
2026-09-12 13:45:10 +00:00
|
|
|
import _modDef4228 from "module_4228" /* 4228 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +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) {
|
2026-09-10 05:38:07 +00:00
|
|
|
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");
|
|
|
|
|
}
|
2026-09-12 13:45:10 +00:00
|
|
|
obj2 = _modDef4228();
|
2026-09-10 05:38:07 +00:00
|
|
|
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
|
|
|
};
|