decord/source/modules/analytics/updateDynamicSuperProperties.tsx

46 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 16589
// Function ID: 16590
2026-07-20 16:05:17 +00:00
// Name: updateDynamicSuperProperties
2026-08-24 06:08:38 +00:00
// Dependencies: [5059, 503, 10540, 2]
2026-07-20 16:05:17 +00:00
// Exports: updateDynamicSuperProperties
2026-08-24 06:08:38 +00:00
// Module 16589 (updateDynamicSuperProperties)
import set from "set" /* 2 */;
import encodeProperties from "encodeProperties" /* 503 */;
import trackHeartbeat from "trackHeartbeat" /* 5059 */;
import _modDef10540 from "module_10540" /* 10540 */;
let result = set.fileFinishedImporting("modules/analytics/updateDynamicSuperProperties.tsx");
2026-07-20 16:05:17 +00:00
export const updateDynamicSuperProperties = function updateDynamicSuperProperties() {
2026-08-24 06:08:38 +00:00
let obj = trackHeartbeat;
2026-07-20 16:05:17 +00:00
const activeSessionUnsafe = obj.getActiveSessionUnsafe();
2026-08-24 06:08:38 +00:00
const superProperties = encodeProperties.getSuperProperties();
2026-07-20 16:05:17 +00:00
let uuid;
2026-07-29 08:29:29 +00:00
if (activeSessionUnsafe != null) {
2026-07-20 16:05:17 +00:00
uuid = activeSessionUnsafe.uuid;
}
let prop;
2026-07-29 08:29:29 +00:00
if (superProperties != null) {
2026-07-20 16:05:17 +00:00
prop = superProperties.client_heartbeat_session_id;
}
2026-07-29 08:29:29 +00:00
obj = {};
2026-07-20 16:05:17 +00:00
if (uuid !== prop) {
obj.client_heartbeat_session_id = uuid;
}
2026-08-24 06:08:38 +00:00
const obj2 = encodeProperties;
2026-07-29 08:29:29 +00:00
const tmp = require;
2026-08-24 06:08:38 +00:00
const state = _modDef10540.getState();
2026-07-20 16:05:17 +00:00
let client_app_state;
2026-07-29 08:29:29 +00:00
if (superProperties != null) {
2026-07-20 16:05:17 +00:00
client_app_state = superProperties.client_app_state;
}
if (state !== client_app_state) {
obj.client_app_state = state;
}
if (Object.keys(obj).length > 0) {
2026-08-24 06:08:38 +00:00
const result = encodeProperties.extendSuperProperties(obj);
const tmpResult = encodeProperties;
2026-07-20 16:05:17 +00:00
}
};