45 lines
1.4 KiB
TypeScript
45 lines
1.4 KiB
TypeScript
// Module ID: 16859
|
|
// Function ID: 16860
|
|
// Name: updateDynamicSuperProperties
|
|
// Dependencies: [7207, 503, 10937, 2]
|
|
// Exports: updateDynamicSuperProperties
|
|
|
|
// Module 16859 (updateDynamicSuperProperties)
|
|
import set from "set" /* 2 */;
|
|
import encodeProperties from "encodeProperties" /* 503 */;
|
|
import trackHeartbeat from "trackHeartbeat" /* 7207 */;
|
|
import _modDef10937 from "module_10937" /* 10937 */;
|
|
|
|
let result = set.fileFinishedImporting("modules/analytics/updateDynamicSuperProperties.tsx");
|
|
|
|
export const updateDynamicSuperProperties = function updateDynamicSuperProperties() {
|
|
let obj = trackHeartbeat;
|
|
const activeSessionUnsafe = obj.getActiveSessionUnsafe();
|
|
const superProperties = encodeProperties.getSuperProperties();
|
|
let uuid;
|
|
if (activeSessionUnsafe != null) {
|
|
uuid = activeSessionUnsafe.uuid;
|
|
}
|
|
let prop;
|
|
if (superProperties != null) {
|
|
prop = superProperties.client_heartbeat_session_id;
|
|
}
|
|
obj = {};
|
|
if (uuid !== prop) {
|
|
obj.client_heartbeat_session_id = uuid;
|
|
}
|
|
const obj2 = encodeProperties;
|
|
const tmp = require;
|
|
const state = _modDef10937.getState();
|
|
let client_app_state;
|
|
if (superProperties != null) {
|
|
client_app_state = superProperties.client_app_state;
|
|
}
|
|
if (state !== client_app_state) {
|
|
obj.client_app_state = state;
|
|
}
|
|
if (Object.keys(obj).length > 0) {
|
|
const result = encodeProperties.extendSuperProperties(obj);
|
|
const tmpResult = encodeProperties;
|
|
}
|
|
};
|