decord/source/stores/AnalyticsTrackingStore.tsx

65 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 7068
// Function ID: 7069
2026-07-20 16:05:17 +00:00
// Name: result
2026-08-25 06:04:03 +00:00
// Dependencies: [1218, 676, 503, 709, 7069, 698, 696, 7079, 2]
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 7068 (result)
2026-08-24 06:08:38 +00:00
import encodeProperties2 from "encodeProperties" /* 503 */;
import expandEventProperties from "expandEventProperties" /* 698 */;
import dispatcherDefault from "dispatcher" /* 709 */;
2026-08-25 06:04:03 +00:00
import trackHeartbeat from "trackHeartbeat" /* 7069 */;
2026-08-24 06:08:38 +00:00
import importDefaultResult from "fetchFingerprint" /* 1218 */;
import encodeProperties from "encodeProperties" /* 503 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
encodeProperties = {
2026-08-24 06:08:38 +00:00
dispatcher: dispatcherDefault,
2026-07-29 08:29:29 +00:00
actionHandler: encodeProperties,
2026-07-23 10:11:24 +00:00
TRACKING_URL: require("ME").Endpoints.TRACK,
2026-07-20 16:05:17 +00:00
waitFor: items,
getFingerprint: importDefaultResult.getFingerprint,
getSessionId() {
2026-08-24 06:08:38 +00:00
const session = trackHeartbeat.getSession();
2026-07-20 16:05:17 +00:00
return session.then((uuid) => {
2026-07-29 08:29:29 +00:00
let sessionId;
if (uuid != null) {
sessionId = uuid.uuid;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return { sessionId };
2026-07-20 16:05:17 +00:00
});
},
getLaunchSignature() {
2026-08-24 06:08:38 +00:00
return expandEventProperties.launchSignature;
2026-07-20 16:05:17 +00:00
},
2026-08-03 11:20:01 +00:00
scheduleWhenIdle: require("setOriginWindow").requestSafeIdleCallback,
sendUnloadRequest: require("sendUnloadRequest").sendUnloadRequest
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
encodeProperties = {
2026-07-20 16:05:17 +00:00
CONNECTION_OPEN(arg0) {
2026-08-24 06:08:38 +00:00
return encodeProperties2.AnalyticsActionHandlers.handleConnectionOpen(arg0);
2026-07-20 16:05:17 +00:00
},
OVERLAY_INITIALIZE(arg0) {
2026-08-24 06:08:38 +00:00
return encodeProperties2.AnalyticsActionHandlers.handleConnectionOpen(arg0);
2026-07-20 16:05:17 +00:00
},
CURRENT_USER_UPDATE(arg0) {
2026-08-24 06:08:38 +00:00
return encodeProperties2.AnalyticsActionHandlers.handleConnectionOpen(arg0);
2026-07-20 16:05:17 +00:00
},
CONNECTION_CLOSED() {
2026-08-24 06:08:38 +00:00
return encodeProperties2.AnalyticsActionHandlers.handleConnectionClosed();
2026-07-20 16:05:17 +00:00
},
FINGERPRINT() {
2026-08-24 06:08:38 +00:00
return encodeProperties2.AnalyticsActionHandlers.handleFingerprint();
2026-07-20 16:05:17 +00:00
},
TRACK(arg0) {
2026-08-24 06:08:38 +00:00
return encodeProperties2.AnalyticsActionHandlers.handleTrack(arg0);
2026-07-20 16:05:17 +00:00
},
SET_ANALYTICS_TOKEN(arg0) {
2026-08-24 06:08:38 +00:00
return encodeProperties2.AnalyticsActionHandlers.handleSetAnalyticsToken(arg0);
2026-07-20 16:05:17 +00:00
}
};
2026-07-23 10:11:24 +00:00
items = [importDefaultResult];
2026-07-29 08:29:29 +00:00
encodeProperties = encodeProperties.analyticsTrackingStoreMaker(encodeProperties);
2026-08-24 06:08:38 +00:00
const result1 = require("set").fileFinishedImporting("stores/AnalyticsTrackingStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default encodeProperties;