decord/source/modules/touch_analytics/TouchEventAnalyticsManager.android.tsx

70 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 14425
// Function ID: 14426
2026-07-29 08:29:29 +00:00
// Name: updateEnabledState
2026-09-02 09:53:35 +00:00
// Dependencies: [1921, 14061, 14426, 4662, 2]
2026-07-20 16:05:17 +00:00
2026-09-02 09:53:35 +00:00
// Module 14425 (updateEnabledState)
2026-09-01 10:26:29 +00:00
import initializeDefault from "initialize" /* 4662 */;
2026-09-02 09:53:35 +00:00
import apexExperiment from "apexExperiment" /* 14061 */;
import enforcingDefault from "enforcing" /* 14426 */;
import closure_3 from "mergeGuildAvatar" /* 1921 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
function updateEnabledState() {
2026-08-24 06:08:38 +00:00
const currentUser = closure_3.getCurrentUser();
2026-07-20 16:05:17 +00:00
let isStaffResult;
2026-07-29 08:29:29 +00:00
if (currentUser != null) {
2026-07-20 16:05:17 +00:00
isStaffResult = currentUser.isStaff();
}
let result = true === isStaffResult;
if (!result) {
2026-08-24 06:08:38 +00:00
result = apexExperiment.isZoomedExperimentEnabled();
const obj2 = apexExperiment;
2026-07-20 16:05:17 +00:00
}
if (result) {
2026-07-29 08:29:29 +00:00
if (!c4) {
try {
2026-08-24 06:08:38 +00:00
enforcingDefault.enableTouchLogging();
2026-07-29 08:29:29 +00:00
c4 = true;
2026-08-24 06:08:38 +00:00
const obj3 = enforcingDefault;
2026-07-29 08:29:29 +00:00
} catch (err) {
c4 = false;
}
2026-07-20 16:05:17 +00:00
}
}
if (!result) {
2026-07-29 08:29:29 +00:00
if (c4) {
try {
2026-08-24 06:08:38 +00:00
enforcingDefault.disableTouchLogging();
2026-07-29 08:29:29 +00:00
c4 = false;
2026-08-24 06:08:38 +00:00
const obj4 = enforcingDefault;
2026-07-29 08:29:29 +00:00
} catch (err) {
2026-07-20 16:05:17 +00:00
}
}
}
}
2026-07-29 08:29:29 +00:00
let c4 = false;
2026-08-24 06:08:38 +00:00
initializeDefault;
2026-07-29 08:29:29 +00:00
class TouchEventAnalyticsManager extends tmp2 {
}
const prototype = TouchEventAnalyticsManager.prototype;
prototype["_initialize"] = function _initialize() {
updateEnabledState();
2026-08-24 06:08:38 +00:00
closure_3.addChangeListener(updateEnabledState);
2026-07-29 08:29:29 +00:00
};
prototype["_terminate"] = function _terminate() {
2026-08-24 06:08:38 +00:00
closure_3.removeChangeListener(updateEnabledState);
2026-07-29 08:29:29 +00:00
if (c4) {
try {
2026-08-24 06:08:38 +00:00
enforcingDefault.disableTouchLogging();
2026-07-29 08:29:29 +00:00
c4 = false;
2026-08-24 06:08:38 +00:00
const obj = enforcingDefault;
2026-07-29 08:29:29 +00:00
} catch (err) {
}
}
};
const touchEventAnalyticsManager = new TouchEventAnalyticsManager();
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("modules/touch_analytics/TouchEventAnalyticsManager.android.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default touchEventAnalyticsManager;