// Module ID: 13403 // Function ID: 13404 // Name: useActivateDeviceStepTracking // Dependencies: [19, 1074, 7712, 13404, 1241, 2] // Exports: useActivateDeviceStepTracking // Module 13403 (useActivateDeviceStepTracking) import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */; import usePreviousDefault from "usePrevious" /* 7712 */; import ActivateDeviceUtils from "ActivateDeviceUtils" /* 13404 */; import noop from "module_19" /* 19 */; require = fn; const AnalyticEvents = fn(1074).AnalyticEvents; const size = fn(2); let result = size.fileFinishedImporting("modules/activate_device/useActivateDeviceStepTracking.tsx"); export const useActivateDeviceStepTracking = function useActivateDeviceStepTracking(arg0) { closure_0 = arg0; const tmp = usePreviousDefault(arg0); importDefault = tmp; const items = [tmp, arg0]; const effect = noop.useEffect(() => { if (closure_0 !== closure_1) { let tmp3 = "user-code-input" !== tmp.type; if (tmp3) { tmp3 = "handoff" !== tmp.type; } let result = null; if (tmp3) { result = ActivateDeviceUtils.clientIdToActivateDevicePlatform(tmp.userCodeData.clientId); } let type; if (tmp2 != null) { type = tmp2.type; } const obj3 = { previous_step: type, current_step: tmp.type, platform_type: result }; AnalyticsUtilsDefault.track(AnalyticEvents.DEVICE_LINK_STEP, obj3); } }, items); };