Files
2026-07-28 01:06:53 +03:00

63 lines
3.9 KiB
TypeScript

/* Metro module 10469; source: modules/premium/gifting/GiftingBadgeConstants.tsx; dependencies: [7670, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as BadgeDirectoryStoreModule from '../../badges/BadgeDirectoryStore.tsx'; /* Metro dependency 7670 */
function _fun81014(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:6, offset: 0x01e956e8, size: 139 bytes, params: 8, frame: 19
const closure = function(a0, a1) {
var env0_0 = a1;
return a0.reduce(_fun81016, null);
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let env0_0 = (BadgeDirectoryStoreModule).getSingleRequirementThreshold;
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/GiftingBadgeConstants.tsx');
exports.getTierForProgress = function(a0, a1) {
var env0_0 = a1;
return a0.reduce(_fun81018, null);
};
exports.getNextTierForProgress = closure;
exports.getRemainingGiftsToNextTier = getRemainingGiftsToNextTier;
function getNextTierForProgress(a0, a1) { // fn#81015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:136, offset: 0x01e95773, size: 35 bytes, params: 3, frame: 13
const env0_0 = a1;
return a0.reduce(function(a0, a1) {
var value = a0;
var value2 = a1;
var value4 = getSingleRequirementThreshold(value2);
return require >= value4 ? value : value == null || value4 < getSingleRequirementThreshold(value) ? value2 : value;
}, null);
function _fun81016(a0, a1) { // fn#81016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:190, offset: 0x01e95796, size: 61 bytes, params: 3, frame: 15
const value = a0;
const value2 = a1;
const singleRequirementThreshold = getSingleRequirementThreshold(value2);
return require >= singleRequirementThreshold ? value : value == null || singleRequirementThreshold < getSingleRequirementThreshold(value) ? value2 : value;
}
}
function getTierForProgress(a0, a1) { // fn#81017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:355, offset: 0x01e957d3, size: 35 bytes, params: 3, frame: 13
const env0_0 = a1;
return a0.reduce(function(a0, a1) {
var value = a0;
var value2 = a1;
var value4 = getSingleRequirementThreshold(value2);
return require < value4 ? value : value == null || value4 > getSingleRequirementThreshold(value) ? value2 : value;
}, null);
function _fun81018(a0, a1) { // fn#81018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:405, offset: 0x01e957f6, size: 61 bytes, params: 3, frame: 15
const value = a0;
const value2 = a1;
const singleRequirementThreshold = getSingleRequirementThreshold(value2);
return require < singleRequirementThreshold ? value : value == null || singleRequirementThreshold > getSingleRequirementThreshold(value) ? value2 : value;
}
}
function getRemainingGiftsToNextTier(a0, a1) { // fn#81019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:544, offset: 0x01e95833, size: 45 bytes, params: 3, frame: 15
const nextTierForProgress = getNextTierForProgress(a0, a1);
const value3 = null;
return value3 == nextTierForProgress ? value3 : getSingleRequirementThreshold(nextTierForProgress) - a1;
}
}
global.__d(_fun81014, 10469, [7670, 2]) /* metro module 10469, dependencies: [7670, 2] */;