decord/source/modules/analytics/updateDynamicSuperProperties.tsx

46 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 17095
// Function ID: 17096
2026-07-20 16:05:17 +00:00
// Name: updateDynamicSuperProperties
2026-09-02 09:53:35 +00:00
// Dependencies: [7216, 500, 11157, 2]
2026-07-20 16:05:17 +00:00
// Exports: updateDynamicSuperProperties
2026-09-02 09:53:35 +00:00
// Module 17095 (updateDynamicSuperProperties)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import encodeProperties from "encodeProperties" /* 500 */;
import trackHeartbeat from "trackHeartbeat" /* 7216 */;
import _modDef11157 from "module_11157" /* 11157 */;
2026-08-24 06:08:38 +00:00
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-09-02 09:53:35 +00:00
const state = _modDef11157.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
}
};