229 lines
9.7 KiB
TypeScript
229 lines
9.7 KiB
TypeScript
// Metro module 4077 (f4078).
|
|
import { BoostedGuildFeatures } from "../../PremiumConstants";
|
|
import { GAME_SERVER_POWERUP_SKU_ID } from "../../game_server/GameServerConstants";
|
|
import { BoostedGuildTiers, GuildFeatures } from "../../../../Constants";
|
|
import { GUILD_POWERUP_LEVEL_1_SKU_ID, GUILD_POWERUP_LEVEL_2_SKU_ID, GUILD_POWERUP_LEVEL_3_SKU_ID, GUILD_POWERUP_TAG_SKU_ID, GUILD_POWERUP_ROLE_COLOR_SKU_ID, GUILD_TAGS_BADGE_PACK_PETS_POWERUP_SKU_ID, GUILD_TAGS_BADGE_PACK_FLEX_POWERUP_SKU_ID, GUILD_TAGS_BADGE_PACK_PLANT_POWERUP_SKU_ID, GUILD_TAGS_BADGE_PACK_CREEPY_CRAWLIES_POWERUP_SKU_ID, VANITY_URL_POWERUP_SKU_ID, GUILD_POWERUP_MAX_FILE_SIZE_250_MB_SKU_ID, GUILD_POWERUP_GUILD_THEME_SKU_ID } from "../../../../_bundle/Module4080";
|
|
import { DismissibleGuildContent } from "../../../../_bundle/Module1358";
|
|
import { PerkIcons } from "../../../../utils/GuildBoostingUtils";
|
|
import { intl, t } from "../../../../intl/index.native";
|
|
import { FileUploadPowerupHoldoutExperiment } from "../experiments/FileUploadPowerupHoldoutExperiment";
|
|
import { getFileUpload250MbPowerupEnabled } from "../experiments/FileUpload250MbPowerupExperiment";
|
|
import { getServerThemeUserEnabled } from "../experiments/ServerThemeUserExperiment";
|
|
import { getServerThemeEnabled } from "../experiments/ServerThemeExperiment";
|
|
import { getGameServerEnabled } from "../../game_server/GameServerExperiment";
|
|
const r32 = {
|
|
PERK: "perk",
|
|
LEVEL: "level"
|
|
};
|
|
const set4 = new Set([GUILD_POWERUP_LEVEL_1_SKU_ID, GUILD_POWERUP_LEVEL_2_SKU_ID, GUILD_POWERUP_LEVEL_3_SKU_ID, GUILD_POWERUP_TAG_SKU_ID, GUILD_POWERUP_ROLE_COLOR_SKU_ID, GUILD_TAGS_BADGE_PACK_PETS_POWERUP_SKU_ID, GUILD_TAGS_BADGE_PACK_FLEX_POWERUP_SKU_ID, GUILD_TAGS_BADGE_PACK_PLANT_POWERUP_SKU_ID, GUILD_TAGS_BADGE_PACK_CREEPY_CRAWLIES_POWERUP_SKU_ID]);
|
|
const set3 = new Set([GuildFeatures.GUILD_TAGS, GuildFeatures.ENHANCED_ROLE_COLORS, GuildFeatures.GUILD_TAGS_BADGE_PACK_PETS, GuildFeatures.GUILD_TAGS_BADGE_PACK_FLEX, GuildFeatures.GUILD_TAGS_BADGE_PACK_PLANT, GuildFeatures.GUILD_TAGS_BADGE_PACK_CREEPY_CRAWLIES]);
|
|
const r27 = {};
|
|
r27[BoostedGuildTiers.TIER_1] = GUILD_POWERUP_LEVEL_1_SKU_ID;
|
|
r27[BoostedGuildTiers.TIER_2] = GUILD_POWERUP_LEVEL_2_SKU_ID;
|
|
r27[BoostedGuildTiers.TIER_3] = GUILD_POWERUP_LEVEL_3_SKU_ID;
|
|
r27[BoostedGuildTiers.NONE] = void 0;
|
|
const r26 = {};
|
|
r26[GUILD_POWERUP_LEVEL_1_SKU_ID] = BoostedGuildTiers.TIER_1;
|
|
r26[GUILD_POWERUP_LEVEL_2_SKU_ID] = BoostedGuildTiers.TIER_2;
|
|
r26[GUILD_POWERUP_LEVEL_3_SKU_ID] = BoostedGuildTiers.TIER_3;
|
|
const r25 = {};
|
|
r25[BoostedGuildTiers.TIER_1] = DismissibleGuildContent.GUILD_POWERUP_LEVEL_1_COACHMARK;
|
|
r25[BoostedGuildTiers.TIER_2] = DismissibleGuildContent.GUILD_POWERUP_LEVEL_2_COACHMARK;
|
|
r25[BoostedGuildTiers.TIER_3] = DismissibleGuildContent.GUILD_POWERUP_LEVEL_3_COACHMARK;
|
|
r25[BoostedGuildTiers.NONE] = void 0;
|
|
const r24 = [[GUILD_POWERUP_TAG_SKU_ID], [GUILD_POWERUP_ROLE_COLOR_SKU_ID], [VANITY_URL_POWERUP_SKU_ID], [GUILD_TAGS_BADGE_PACK_PETS_POWERUP_SKU_ID, GUILD_TAGS_BADGE_PACK_FLEX_POWERUP_SKU_ID], [GUILD_TAGS_BADGE_PACK_PLANT_POWERUP_SKU_ID, GUILD_TAGS_BADGE_PACK_CREEPY_CRAWLIES_POWERUP_SKU_ID], [GUILD_POWERUP_MAX_FILE_SIZE_250_MB_SKU_ID], [GUILD_POWERUP_GUILD_THEME_SKU_ID]];
|
|
const r23 = {};
|
|
r23[GAME_SERVER_POWERUP_SKU_ID] = "beta";
|
|
r23[GUILD_POWERUP_MAX_FILE_SIZE_250_MB_SKU_ID] = "beta";
|
|
r23[GUILD_POWERUP_GUILD_THEME_SKU_ID] = "beta";
|
|
const set2 = new Set([GUILD_POWERUP_TAG_SKU_ID, GUILD_POWERUP_ROLE_COLOR_SKU_ID, VANITY_URL_POWERUP_SKU_ID, GUILD_TAGS_BADGE_PACK_PETS_POWERUP_SKU_ID, GUILD_TAGS_BADGE_PACK_FLEX_POWERUP_SKU_ID, GUILD_TAGS_BADGE_PACK_PLANT_POWERUP_SKU_ID, GUILD_TAGS_BADGE_PACK_CREEPY_CRAWLIES_POWERUP_SKU_ID, GUILD_POWERUP_GUILD_THEME_SKU_ID]);
|
|
const set = new Set([GUILD_POWERUP_ROLE_COLOR_SKU_ID, GUILD_POWERUP_TAG_SKU_ID]);
|
|
const r17 = {};
|
|
r17[GuildFeatures.VANITY_URL] = {
|
|
boostPrice: 5,
|
|
includedInLevel: BoostedGuildTiers.TIER_3
|
|
};
|
|
r17[GuildFeatures.GUILD_TAGS] = {
|
|
boostPrice: 3
|
|
};
|
|
r17[GuildFeatures.ENHANCED_ROLE_COLORS] = {
|
|
boostPrice: 3
|
|
};
|
|
r17[GuildFeatures.GUILD_TAGS_BADGE_PACK_PETS] = {
|
|
boostPrice: 3
|
|
};
|
|
r17[GuildFeatures.GUILD_TAGS_BADGE_PACK_FLEX] = {
|
|
boostPrice: 5
|
|
};
|
|
r17[GuildFeatures.GUILD_TAGS_BADGE_PACK_PLANT] = {
|
|
boostPrice: 3
|
|
};
|
|
r17[GuildFeatures.GUILD_TAGS_BADGE_PACK_CREEPY_CRAWLIES] = {
|
|
boostPrice: 2
|
|
};
|
|
r17[GuildFeatures.MAX_FILE_SIZE_250_MB] = {
|
|
boostPrice: 4,
|
|
isEnabled: (a0) => {
|
|
const enabled = FileUploadPowerupHoldoutExperiment.getConfig({
|
|
location: "GuildPowerupsConstants"
|
|
}).enabled;
|
|
return enabled ? !enabled : getFileUpload250MbPowerupEnabled(a0, "GuildPowerupsConstants");
|
|
}
|
|
};
|
|
r17[GuildFeatures.GUILD_THEME] = {
|
|
boostPrice: 3,
|
|
isEnabled: (a0) => getServerThemeUserEnabled("GuildPowerupsConstants") && getServerThemeEnabled(a0, "GuildPowerupsConstants")
|
|
};
|
|
const r16 = {};
|
|
r16[GuildFeatures.GAME_SERVERS] = {
|
|
boostPrice: 3,
|
|
isEnabled: (a0) => getGameServerEnabled(a0, "GuildPowerupsConstants")
|
|
};
|
|
const r15 = {};
|
|
r15[VANITY_URL_POWERUP_SKU_ID] = BoostedGuildTiers.TIER_3;
|
|
const r14 = {
|
|
INACTIVE: "inactive",
|
|
POWERUP_ACTIVATED: "powerup_activated",
|
|
LEVEL_ACTIVATED: "level_activated",
|
|
TIER_OVERRIDE_ACTIVATED: "tier_override_activated"
|
|
};
|
|
const r13 = {
|
|
VANITY_URL: 1,
|
|
1: "VANITY_URL",
|
|
GUILD_TAG_BADGE_PACKS_WAVE_ONE: 2,
|
|
2: "GUILD_TAG_BADGE_PACKS_WAVE_ONE",
|
|
GAME_SERVER_HOSTING: 3,
|
|
3: "GAME_SERVER_HOSTING",
|
|
GUILD_TAG_BADGE_PACKS_WAVE_TWO: 4,
|
|
4: "GUILD_TAG_BADGE_PACKS_WAVE_TWO",
|
|
FILE_UPLOAD_250_MB: 5,
|
|
5: "FILE_UPLOAD_250_MB",
|
|
GUILD_THEME: 6,
|
|
6: "GUILD_THEME",
|
|
GUILD_TAG: 7,
|
|
7: "GUILD_TAG"
|
|
};
|
|
const set5 = new Set([GUILD_TAGS_BADGE_PACK_PETS_POWERUP_SKU_ID, GUILD_TAGS_BADGE_PACK_FLEX_POWERUP_SKU_ID]);
|
|
const set6 = new Set([GUILD_TAGS_BADGE_PACK_PLANT_POWERUP_SKU_ID, GUILD_TAGS_BADGE_PACK_CREEPY_CRAWLIES_POWERUP_SKU_ID]);
|
|
const r278 = {};
|
|
r278[r13.VANITY_URL] = new Set([VANITY_URL_POWERUP_SKU_ID]);
|
|
r278[r13.GUILD_TAG_BADGE_PACKS_WAVE_ONE] = set5;
|
|
r278[r13.GAME_SERVER_HOSTING] = new Set();
|
|
r278[r13.GUILD_TAG_BADGE_PACKS_WAVE_TWO] = set6;
|
|
r278[r13.FILE_UPLOAD_250_MB] = new Set([GUILD_POWERUP_MAX_FILE_SIZE_250_MB_SKU_ID]);
|
|
r278[r13.GUILD_THEME] = new Set([GUILD_POWERUP_GUILD_THEME_SKU_ID]);
|
|
r278[r13.GUILD_TAG] = new Set([GUILD_POWERUP_TAG_SKU_ID]);
|
|
const r330 = {
|
|
AVAILABLE: 0,
|
|
0: "AVAILABLE",
|
|
SPENT: 1,
|
|
1: "SPENT",
|
|
TOTAL: 2,
|
|
2: "TOTAL"
|
|
};
|
|
const r335 = {
|
|
LEVEL: 0,
|
|
0: "LEVEL",
|
|
PERK: 1,
|
|
1: "PERK"
|
|
};
|
|
const r338 = {
|
|
START: "start",
|
|
MIDDLE: "middle",
|
|
END: "end"
|
|
};
|
|
const r342 = {
|
|
FULL: "full",
|
|
HALF: "half",
|
|
NONE: "none"
|
|
};
|
|
export { r32 as GuildPowerupType };
|
|
export const GUILD_POWERUP_APPLICATION_ID = "1340102344645283891";
|
|
export { set4 as GUILD_POWERUP_TIER_3_OVERRIDDEN_SKUS };
|
|
export { set3 as GUILD_POWERUP_TIER_3_OVERRIDDEN_PURCHASABLE_FEATURES };
|
|
export const GUILD_POWERUP_MIGRATION_USER_ID = "525479941211684874";
|
|
export { r27 as BOOSTING_TIER_TO_LEVEL_SKU_ID };
|
|
export { r26 as LEVEL_SKU_ID_TO_BOOSTING_TIER };
|
|
export { r25 as BOOSTING_TIER_TO_LEVEL_UNLOCKED_DC };
|
|
export const GUILD_POWERUP_MODAL_KEY = "guild_powerup_modal";
|
|
export { r24 as GUILD_POWERUP_NEW_PERK_GROUPS };
|
|
export { r23 as PERK_SKU_BADGES };
|
|
export { set2 as GUILD_POWERUP_CONFIGURABLE_SKUS_DESKTOP };
|
|
export { set as GUILD_POWERUP_CONFIGURABLE_SKUS_MOBILE };
|
|
export const GUILD_FEATURE_TO_PERK = () => {
|
|
const r3 = {};
|
|
r3[GuildFeatures.VIDEO_QUALITY_1080_60FPS] = {
|
|
perkIcon: PerkIcons.STREAM,
|
|
description: intl.string(t.y4ft4D)
|
|
};
|
|
r3[GuildFeatures.AUDIO_BITRATE_128_KBPS] = {
|
|
perkIcon: PerkIcons.AUDIO,
|
|
description: intl.formatToPlainString(t.zoT1ZE, {
|
|
bitrate: BoostedGuildFeatures[BoostedGuildTiers.TIER_1].limits.bitrate / 1000
|
|
})
|
|
};
|
|
r3[GuildFeatures.INVITE_SPLASH] = {
|
|
perkIcon: PerkIcons.CUSTOMIZATION,
|
|
description: intl.string(t.Qwlpov)
|
|
};
|
|
r3[GuildFeatures.ANIMATED_ICON] = {
|
|
perkIcon: PerkIcons.ANIMATED,
|
|
description: intl.string(t.PbAyub)
|
|
};
|
|
r3[GuildFeatures.AUDIO_BITRATE_256_KBPS] = {
|
|
perkIcon: PerkIcons.AUDIO,
|
|
description: intl.formatToPlainString(t.zoT1ZE, {
|
|
bitrate: BoostedGuildFeatures[BoostedGuildTiers.TIER_2].limits.bitrate / 1000
|
|
})
|
|
};
|
|
r3[GuildFeatures.ROLE_ICONS] = {
|
|
perkIcon: PerkIcons.CUSTOM_ROLE_ICON,
|
|
description: intl.string(t["6PV6Qc"])
|
|
};
|
|
r3[GuildFeatures.MAX_FILE_SIZE_50_MB] = {
|
|
perkIcon: PerkIcons.UPLOAD,
|
|
description: intl.formatToPlainString(t.aFRl53, {
|
|
uploadSizeLimit: intl.string(t.M6qV8j)
|
|
})
|
|
};
|
|
r3[GuildFeatures.BANNER] = {
|
|
perkIcon: PerkIcons.CUSTOMIZATION,
|
|
description: intl.string(t["1a5rjl"])
|
|
};
|
|
r3[GuildFeatures.ANIMATED_BANNER] = {
|
|
perkIcon: PerkIcons.ANIMATED,
|
|
description: intl.string(t["1+Vmh9"])
|
|
};
|
|
r3[GuildFeatures.AUDIO_BITRATE_384_KBPS] = {
|
|
perkIcon: PerkIcons.AUDIO,
|
|
description: intl.formatToPlainString(t.zoT1ZE, {
|
|
bitrate: BoostedGuildFeatures[BoostedGuildTiers.TIER_3].limits.bitrate / 1000
|
|
})
|
|
};
|
|
r3[GuildFeatures.VANITY_URL] = {
|
|
perkIcon: PerkIcons.VANITY,
|
|
description: intl.string(t["5XZKy/"])
|
|
};
|
|
r3[GuildFeatures.MAX_FILE_SIZE_100_MB] = {
|
|
perkIcon: PerkIcons.UPLOAD,
|
|
description: intl.formatToPlainString(t.aFRl53, {
|
|
uploadSizeLimit: intl.string(t.yMOW8D)
|
|
})
|
|
};
|
|
return r3;
|
|
};
|
|
export const GUILD_THEME_POWERUP_BOOST_PRICE = 3;
|
|
export { r17 as PURCHASABLE_PREMIUM_FEATURES_BOOST_INFO };
|
|
export { r16 as MULTIPLE_PURCHASEABLE_PREMIUM_FEATURES_BOOST_INFO };
|
|
export { r15 as POWERUPS_INCLUDED_IN_LEVEL };
|
|
export { r14 as PowerupActiveStatusType };
|
|
export { r13 as GuildPowerupNewPerkMarketingVersion };
|
|
export { set5 as GUILD_TAG_BADGE_PACKS_WAVE_ONE_SKU_ID_SET };
|
|
export { set6 as GUILD_TAG_BADGE_PACKS_WAVE_TWO_SKU_ID_SET };
|
|
export { r278 as NEW_PERK_MARKETING_VERSION_TO_POWERUP_SKU_ID_SET };
|
|
export const POWERUP_ID_QUERY_PARAM = "powerupId";
|
|
export { r330 as BoostInfoType };
|
|
export { r335 as BoostPurchaseIntent };
|
|
export { r338 as LevelCardPosition };
|
|
export { r342 as LevelCardGradient };
|