Files
discord-decomp/sources/modules/nuf/native/NewUserAnalyticsUtils.tsx
T
2026-07-27 16:20:00 +03:00

25 lines
1.5 KiB
TypeScript

/* Metro module 12000; source: modules/nuf/native/NewUserAnalyticsUtils.tsx; dependencies: [661, 683, 2] */
function _fun92198(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12186:6, offset: 0x0207f70c, size: 124 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/nuf/native/NewUserAnalyticsUtils.tsx');
exports.trackNUFStep = trackNUFStep;
}
function trackNUFStep(a0, a1, a2) { // fn#92199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12186:218, offset: 0x0207f788, size: 149 bytes, params: 4, frame: 19
const Date = global.Date;
const value3 = (Date.now() - env0_3) / 1000;
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const NUO_TRANSITION = AnalyticEvents.NUO_TRANSITION;
const object2 = {};
copyDataProperties(object2, a2, undefined);
object2['flow_type'] = 'Mobile NUX Post Reg';
object2['from_step'] = a0;
object2['to_step'] = a1;
object2['seconds_on_from_step'] = value3;
Reflect.apply(track, defaultImport, [NUO_TRANSITION, object2]);
}