Files
discord-decomp/sources/modules/game_detection/calculateSteamReviewScoreDescription.tsx
2026-07-28 01:06:53 +03:00

26 lines
2.2 KiB
TypeScript

/* Metro module 9996; source: modules/game_detection/calculateSteamReviewScoreDescription.tsx; dependencies: [4269, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as GameDetectionTypesModule from './GameDetectionTypes.tsx'; /* Metro dependency 4269 */
function _fun78147(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10182:6, offset: 0x01e1cebd, size: 96 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/game_detection/calculateSteamReviewScoreDescription.tsx');
exports.calculateSteamReviewScoreDescription = calculateSteamReviewScoreDescription;
function calculateSteamReviewScoreDescription(a0, a1, a2) { // fn#78148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10182:228, offset: 0x01e1cf1d, size: 521 bytes, params: 4, frame: 16
const SteamReviewScoreDescription = (GameDetectionTypesModule).SteamReviewScoreDescription;
const value = 50;
const r4 = a2 ? 0 : value;
const value3 = 500;
const r1 = a2 ? 100 : value3;
const r5 = a2 ? 0 : value;
let r0 = a2 ? 100 : value3;
r0 = a0 == null || a1 == null || a1 < 10 ? SteamReviewScoreDescription.NO_USER_REVIEWS : a0 >= 80 ? a1 < r4 ? SteamReviewScoreDescription.POSITIVE : a1 < r1 || a0 < 95 ? SteamReviewScoreDescription.VERY_POSITIVE : SteamReviewScoreDescription.OVERWHELMINGLY_POSITIVE : a0 >= 70 ? SteamReviewScoreDescription.MOSTLY_POSITIVE : a0 >= 40 ? SteamReviewScoreDescription.MIXED : a0 >= 20 ? SteamReviewScoreDescription.MOSTLY_NEGATIVE : a1 < r5 ? SteamReviewScoreDescription.NEGATIVE : a1 < r0 ? SteamReviewScoreDescription.VERY_NEGATIVE : SteamReviewScoreDescription.OVERWHELMINGLY_NEGATIVE;
return r0;
}
}
global.__d(_fun78147, 9996, [4269, 2]) /* metro module 9996, dependencies: [4269, 2] */;