Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
// Module ID: 10870
|
|
// Function ID: 10871
|
|
// Name: useShowBadgeProgress
|
|
// Dependencies: [6198, 1074, 504, 10859, 2]
|
|
// Exports: default
|
|
|
|
// Module 10870 (useShowBadgeProgress)
|
|
import initialize from "initialize" /* 504 */;
|
|
import BadgeUtils from "BadgeUtils" /* 10859 */;
|
|
import ConsentStore from "ConsentStore" /* 6198 */;
|
|
|
|
require = fn;
|
|
const Consents = fn(1074).Consents;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/badges/useShowBadgeProgress.tsx");
|
|
|
|
export default function useShowBadgeProgress(arg0) {
|
|
({ badge, viewerBadge, isViewingOtherUser } = arg0);
|
|
const items = [ConsentStore];
|
|
const stateFromStores = initialize.useStateFromStores(items, () => ConsentStore.hasConsented(constants.PERSONALIZATION));
|
|
if (viewerBadge == null) {
|
|
viewerBadge = badge;
|
|
}
|
|
const tmpResult = BadgeUtils;
|
|
const tmp4 = null != BadgeUtils.findTier(viewerBadge, viewerBadge.next_tier);
|
|
const tmpResult2 = BadgeUtils;
|
|
let owned = !isViewingOtherUser;
|
|
if (!isViewingOtherUser) {
|
|
owned = viewerBadge.owned;
|
|
}
|
|
if (owned) {
|
|
owned = tmp4;
|
|
}
|
|
if (owned) {
|
|
owned = !tmp5;
|
|
}
|
|
return owned;
|
|
};
|