decord/source/modules/premium/native/BoostedGuildTierProgressCircle.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

93 lines
3.9 KiB
TypeScript

// Module ID: 13434
// Function ID: 13435
// Name: BoostedGuildTierProgressCircle
// Dependencies: [19, 17, 673, 21, 4481, 709, 13435, 13439, 13440, 13441, 4387, 4372, 12523, 4477, 2]
// Exports: default
// Module 13434 (BoostedGuildTierProgressCircle)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 709 */;
import getGuildTierFromGuild from "getGuildTierFromGuild" /* 4372 */;
import useGuildAppliedBoostCountDefault from "useGuildAppliedBoostCount" /* 4387 */;
import getTier048PxSource from "getTier048PxSource" /* 13435 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import ME from "ME" /* 673 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4481 */;
require = arg1;
noopAll;
({ View: c3, Image: c4 } = get_ActivityIndicator);
({ AppliedGuildBoostsRequiredForBoostedGuildTier: c5, BoostedGuildTiers: closure_6 } = ME);
({ jsx: error, jsxs: closure_8 } = jsxProd);
createCacheKey = { guildTierProgressCircle: { position: "relative", width: 70, height: 70 }, guildTierBackground: null, guildTierNoneIcon: null, guildTierIcon: null, guildTierName: null };
createCacheKey = { backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGH, width: 64, height: 64, alignItems: "center", justifyContent: "center", borderRadius: ThemesDefault.radii.xxl };
createCacheKey[1] = createCacheKey;
createCacheKey[2] = { width: 18, height: 30 };
createCacheKey[3] = { width: 24, height: 24 };
createCacheKey[4] = { lineHeight: 16, marginTop: 2 };
let closure_9 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("modules/premium/native/BoostedGuildTierProgressCircle.tsx");
export default function BoostedGuildTierProgressCircle(arg0) {
({ guild, theme } = arg0);
const tmp = callback2();
useGuildAppliedBoostCountDefault;
if (guild != null) {
const id = guild.id;
}
if (null == guild) {
let obj = { style: null, children: null };
obj[0] = tmp.guildTierBackground;
obj = { source: null, style: null, accessibilityElementsHidden: true, importantForAccessibility: "no" };
obj[0] = getTier048PxSource.getTier048PxSource(theme);
obj[1] = tmp.guildTierNoneIcon;
obj[1] = callback(closure_4, obj);
return callback(closure_3, obj);
} else {
const nextGuildTierFromGuild = getGuildTierFromGuild.getNextGuildTierFromGuild(guild.id);
let tmp7 = null;
if (null != nextGuildTierFromGuild) {
tmp7 = table[nextGuildTierFromGuild];
}
let num2 = 100;
if (null != tmp7) {
num2 = 100;
if (tmp7 > 0) {
num2 = tmp5 / tmp7 * 100;
}
}
obj = { style: null, percent: null, children: null };
obj[0] = tmp.guildTierProgressCircle;
obj[1] = num2;
obj1 = { style: null, children: null };
obj1[0] = tmp.guildTierBackground;
if (null != guild) {
if (guild.premiumTier !== constants.NONE) {
const premiumTier = guild.premiumTier;
if (tmp13.TIER_1 === premiumTier) {
let tier048PxSource = tmp2(13439);
} else if (tmp13.TIER_2 === premiumTier) {
tier048PxSource = tmp2(13440);
} else if (tmp13.TIER_3 === premiumTier) {
tier048PxSource = tmp2(13441);
}
}
const obj2 = { source: null, style: null, accessibilityElementsHidden: true, importantForAccessibility: "no" };
obj2[0] = tier048PxSource;
obj2[1] = tmp.guildTierIcon;
const items = [tmp8(tmp12, obj2), ];
const obj3 = { style: null, variant: "text-xs/semibold", color: "interactive-text-active", children: null };
obj3[0] = tmp.guildTierName;
let tmp19Result = tmp19(4372);
obj3[3] = tmp19Result.getTierName(guild.premiumTier);
items[1] = tmp8(tmp19(4477).Text, obj3);
obj1[1] = items;
obj[2] = tmp10(tmp11, obj1);
return tmp8(tmp9, obj);
}
tmp19Result = tmp19(13435);
tier048PxSource = tmp19Result.getTier048PxSource(theme);
const obj10 = getGuildTierFromGuild;
}
};