decord/source/modules/poggermode/trackPoggermodeSettingsUpdated.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

63 lines
2.5 KiB
TypeScript

// Module ID: 7947
// Function ID: 7948
// Name: trackPoggermodeSettingsUpdated
// Dependencies: [7787, 1074, 12, 1241, 2]
// Module 7947 (trackPoggermodeSettingsUpdated)
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import PoggermodeConstants from "PoggermodeConstants" /* 7787 */;
import apply from "module_12" /* 12 */;
import size from "module_2" /* 2 */;
function getScreenshakeLocationName(arg0) {
if (constants.CHAT_INPUT === arg0) {
return "chat_input";
} else if (tmp.MENTION === arg0) {
return "mention";
} else if (tmp.VOICE_USER === arg0) {
return "voice_user";
}
}
function getConfettiLocationName(arg0) {
if (constants2.CHAT_INPUT === arg0) {
return "chat_input";
} else if (tmp.MEMBER_USER === arg0) {
return "member_user";
} else if (tmp.REACTION === arg0) {
return "reaction";
} else if (tmp.CALL_TILE === arg0) {
return "call_tile";
}
}
({ ShakeLocation: c2, ConfettiLocation: c3 } = PoggermodeConstants);
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/poggermode/trackPoggermodeSettingsUpdated.tsx");
export default apply.throttle((arg0) => {
({ enabled, combosEnabled, combosRequiredCount, screenshakeEnabled, shakeIntensity, screenshakeEnabledLocations, confettiEnabled, confettiSize, confettiCount, confettiEnabledLocations } = arg0);
const obj2 = { enabled, combos_enabled: combosEnabled, combos_required_count: combosRequiredCount, screenshake_enabled: screenshakeEnabled, shake_intensity: shakeIntensity, screenshake_enabled_locations: null, confetti_enabled: null, confetti_size: null, confetti_count: null, confetti_enabled_locations: null };
const entries = Object.entries(screenshakeEnabledLocations);
const found = entries.filter((item) => {
[, tmp] = item;
return tmp;
});
obj2.screenshake_enabled_locations = found.map((item) => {
[tmp] = item;
return closure_0(Number.parseInt(tmp));
});
obj2.confetti_enabled = confettiEnabled;
obj2.confetti_size = confettiSize;
obj2.confetti_count = confettiCount;
closure_0 = getConfettiLocationName;
const entries1 = Object.entries(confettiEnabledLocations);
const found1 = entries1.filter((item) => {
[, tmp] = item;
return tmp;
});
obj2.confetti_enabled_locations = found1.map((item) => {
[tmp] = item;
return closure_0(Number.parseInt(tmp));
});
AnalyticsUtilsDefault.track(AnalyticEvents.POGGERMODE_SETTINGS_UPDATED, obj2);
}, 5000);