45 lines
1.4 KiB
TypeScript
45 lines
1.4 KiB
TypeScript
// Module ID: 16790
|
|
// Function ID: 16791
|
|
// Name: updateDynamicSuperProperties
|
|
// Dependencies: [7154, 503, 10875, 2]
|
|
// Exports: updateDynamicSuperProperties
|
|
|
|
// Module 16790 (updateDynamicSuperProperties)
|
|
import set from "set" /* 2 */;
|
|
import encodeProperties from "encodeProperties" /* 503 */;
|
|
import trackHeartbeat from "trackHeartbeat" /* 7154 */;
|
|
import _modDef10875 from "module_10875" /* 10875 */;
|
|
|
|
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 = _modDef10875.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;
|
|
}
|
|
};
|