// Module ID: 10459 // Function ID: 10460 // Name: getTierForProgress // Dependencies: [8973, 2] // Exports: getNextTierForProgress, getRemainingGiftsToNextTier, getTierForProgress // Module 10459 (getTierForProgress) import set from "set" /* 2 */; import initialize from "initialize" /* 8973 */; let closure_0 = initialize.getSingleRequirementThreshold; const result = set.fileFinishedImporting("modules/premium/gifting/GiftingBadgeConstants.tsx"); export const getTierForProgress = function getTierForProgress(arr) { closure_0 = arg1; return arr.reduce((arg0, arg1) => { let tmp = arg0; const tmp3 = callback(arg1); let tmp4 = arg0; if (callback >= tmp3) { if (null == tmp) { tmp = arg1; } tmp4 = tmp; } return tmp4; }, null); }; export const getNextTierForProgress = function getNextTierForProgress(arr) { closure_0 = arg1; return arr.reduce((arg0, arg1) => { let tmp = arg0; const tmp3 = callback(arg1); let tmp4 = arg0; if (callback < tmp3) { if (null == tmp) { tmp = arg1; } tmp4 = tmp; } return tmp4; }, null); }; export const getRemainingGiftsToNextTier = function getRemainingGiftsToNextTier(arr) { const callback = arg1; const reduced = arr.reduce((arg0, arg1) => { let tmp = arg0; const tmp3 = callback(arg1); let tmp4 = arg0; if (callback < tmp3) { if (null == tmp) { tmp = arg1; } tmp4 = tmp; } return tmp4; }, null); let diff = null; if (null != reduced) { diff = callback(reduced) - arg1; } return diff; };