decord/source/modules/analytics/updateDynamicSuperProperties.tsx

40 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 16014
// Function ID: 123750
2026-07-20 16:05:17 +00:00
// Name: updateDynamicSuperProperties
2026-07-25 08:10:48 +00:00
// Dependencies: [5693, 480, 9413, 2]
2026-07-20 16:05:17 +00:00
// Exports: updateDynamicSuperProperties
2026-07-25 08:10:48 +00:00
// Module 16014 (updateDynamicSuperProperties)
2026-07-23 10:11:24 +00:00
let result = require("canUIRequestGatewaySocket").fileFinishedImporting("modules/analytics/updateDynamicSuperProperties.tsx");
2026-07-20 16:05:17 +00:00
export const updateDynamicSuperProperties = function updateDynamicSuperProperties() {
2026-07-25 08:10:48 +00:00
let obj = require(5693) /* stopAnalyticsHeartbeat */;
2026-07-20 16:05:17 +00:00
const activeSessionUnsafe = obj.getActiveSessionUnsafe();
2026-07-23 10:11:24 +00:00
const superProperties = require(480) /* isThrottled */.getSuperProperties();
2026-07-20 16:05:17 +00:00
obj = {};
let uuid;
if (null != activeSessionUnsafe) {
uuid = activeSessionUnsafe.uuid;
}
let prop;
if (null != superProperties) {
prop = superProperties.client_heartbeat_session_id;
}
if (uuid !== prop) {
obj.client_heartbeat_session_id = uuid;
}
2026-07-23 10:11:24 +00:00
const obj2 = require(480) /* isThrottled */;
2026-07-25 08:10:48 +00:00
const state = importDefault(9413).getState();
2026-07-20 16:05:17 +00:00
let client_app_state;
if (null != superProperties) {
client_app_state = superProperties.client_app_state;
}
if (state !== client_app_state) {
obj.client_app_state = state;
}
if (Object.keys(obj).length > 0) {
2026-07-23 10:11:24 +00:00
const result = require(480) /* isThrottled */.extendSuperProperties(obj);
const obj5 = require(480) /* isThrottled */;
2026-07-20 16:05:17 +00:00
}
};