decord/alpha/source/modules/poggermode/trackPoggermodeSettingsUpdated.tsx

75 lines
2.7 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 13961
// Function ID: 13962
// Name: trackPoggermodeSettingsUpdated
2026-10-12 06:59:38 +00:00
// Dependencies: [7367, 1085, 12, 1265, 2]
2026-07-21 22:01:30 +00:00
2026-10-13 12:43:34 +00:00
// Module 13961 (trackPoggermodeSettingsUpdated)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-09 10:00:15 +00:00
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1265 */;
2026-10-12 06:59:38 +00:00
import PoggermodeConstants from "PoggermodeConstants" /* 7367 */;
2026-10-03 08:58:59 +00:00
import module_12 from "module_12" /* 12 */;
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
2026-10-03 08:58:59 +00:00
let c2;
let c3;
2026-07-20 16:05:17 +00:00
function getScreenshakeLocationName(arg0) {
if (constants.CHAT_INPUT === arg0) {
return "chat_input";
2026-10-03 08:58:59 +00:00
} else if (constants.MENTION === arg0) {
2026-07-20 16:05:17 +00:00
return "mention";
2026-10-03 08:58:59 +00:00
} else if (constants.VOICE_USER === arg0) {
2026-07-20 16:05:17 +00:00
return "voice_user";
}
}
function getConfettiLocationName(arg0) {
if (constants2.CHAT_INPUT === arg0) {
return "chat_input";
2026-10-03 08:58:59 +00:00
} else if (constants2.MEMBER_USER === arg0) {
2026-07-20 16:05:17 +00:00
return "member_user";
2026-10-03 08:58:59 +00:00
} else if (constants2.REACTION === arg0) {
2026-07-20 16:05:17 +00:00
return "reaction";
2026-10-03 08:58:59 +00:00
} else if (constants2.CALL_TILE === arg0) {
2026-07-20 16:05:17 +00:00
return "call_tile";
}
}
({ ShakeLocation: c2, ConfettiLocation: c3 } = PoggermodeConstants);
const AnalyticEvents = Constants.AnalyticEvents;
2026-10-03 08:58:59 +00:00
const throttleResult = module_12.throttle((arg0) => {
let combosEnabled;
let combosRequiredCount;
let confettiCount;
let confettiEnabled;
let confettiEnabledLocations;
let confettiSize;
let enabled;
let found;
let found1;
let screenshakeEnabled;
let screenshakeEnabledLocations;
let shakeIntensity;
2026-10-13 12:43:34 +00:00
const f118137 = (item) => {
2026-10-03 08:58:59 +00:00
let tmp;
[, tmp] = item;
2026-07-29 08:29:29 +00:00
return tmp;
2026-10-03 08:58:59 +00:00
};
2026-10-13 12:43:34 +00:00
const f118138 = (item) => {
2026-10-03 08:58:59 +00:00
let tmp;
[tmp] = item;
return closure_0(Number.parseInt(tmp));
2026-10-03 08:58:59 +00:00
};
({ enabled, combosEnabled, combosRequiredCount, screenshakeEnabled, shakeIntensity, screenshakeEnabledLocations, confettiEnabled, confettiSize, confettiCount, confettiEnabledLocations } = arg0);
const tmp = AnalyticsUtilsDefault;
const track = tmp.track;
const POGGERMODE_SETTINGS_UPDATED = AnalyticEvents.POGGERMODE_SETTINGS_UPDATED;
2026-10-13 12:43:34 +00:00
const obj = { enabled, combos_enabled: combosEnabled, combos_required_count: combosRequiredCount, screenshake_enabled: screenshakeEnabled, shake_intensity: shakeIntensity, screenshake_enabled_locations: found.map(f118138), confetti_enabled: confettiEnabled, confetti_size: confettiSize, confetti_count: confettiCount, confetti_enabled_locations: found1.map(f118138) };
2026-10-03 08:58:59 +00:00
const entries = Object.entries(screenshakeEnabledLocations);
2026-10-13 12:43:34 +00:00
found = entries.filter(f118137);
2026-10-03 08:58:59 +00:00
let closure_0 = getConfettiLocationName;
2026-07-29 08:29:29 +00:00
const entries1 = Object.entries(confettiEnabledLocations);
2026-10-13 12:43:34 +00:00
found1 = entries1.filter(f118137);
2026-10-03 08:58:59 +00:00
track(POGGERMODE_SETTINGS_UPDATED, obj);
2026-07-20 16:05:17 +00:00
}, 5000);
2026-10-03 08:58:59 +00:00
const result = size.fileFinishedImporting("modules/poggermode/trackPoggermodeSettingsUpdated.tsx");
export default throttleResult;