27 lines
1 KiB
TypeScript
27 lines
1 KiB
TypeScript
// Module ID: 15585
|
|
// Function ID: 15586
|
|
// Name: trackAgeGateSubmitted
|
|
// Dependencies: [1086, 1253, 4424, 2]
|
|
// Exports: default
|
|
|
|
// Module 15585 (trackAgeGateSubmitted)
|
|
import Constants from "Constants" /* 1086 */;
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1253 */;
|
|
import _modDef4424 from "module_4424" /* 4424 */;
|
|
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 track = AnalyticsUtilsDefault.track;
|
|
const AGE_GATE_SUBMITTED = AnalyticEvents.AGE_GATE_SUBMITTED;
|
|
AnalyticsUtilsDefault;
|
|
let formatResult = null;
|
|
const obj = _modDef4424();
|
|
if (obj.diff(format, "years") < 18) {
|
|
formatResult = format.format("YYYY-MM-DD");
|
|
}
|
|
const obj2 = { dob: formatResult, dob_day: format.date(), dob_month: format.month() + 1, dob_year: format.year(), source: { section } };
|
|
track(AGE_GATE_SUBMITTED, obj2);
|
|
};
|