2026-08-25 06:04:03 +00:00
|
|
|
// Module ID: 15319
|
|
|
|
|
// Function ID: 15320
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: trackAgeGateSubmitted
|
2026-08-25 06:04:03 +00:00
|
|
|
// Dependencies: [676, 698, 3979, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-25 06:04:03 +00:00
|
|
|
// Module 15319 (trackAgeGateSubmitted)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
|
|
|
|
import ME from "ME" /* 676 */;
|
|
|
|
|
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
const AnalyticEvents = ME.AnalyticEvents;
|
|
|
|
|
const result = set.fileFinishedImporting("modules/auth/experiment/trackAgeGateSubmitted.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function trackAgeGateSubmitted(format, section) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = expandEventPropertiesDefault;
|
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-07-29 08:29:29 +00:00
|
|
|
obj = { dob: formatResult, dob_day: format.date(), dob_month: format.month() + 1, dob_year: format.year(), source: obj };
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = { section };
|
|
|
|
|
obj.track(AnalyticEvents.AGE_GATE_SUBMITTED, obj);
|
|
|
|
|
};
|