Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
24 lines
937 B
TypeScript
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 } });
|
|
};
|