Files
discord-decomp/modules/premium/premium_group/PremiumGroupConstants.tsx
T
2026-11-01 12:12:55 +02:00

68 lines
3.3 KiB
TypeScript

// Metro module 3849 (f3850).
import * as _Constants from "../../../Constants";
import Durations from "../../../utils/Durations";
import HelpdeskUtils from "../../../utils/HelpdeskUtils";
import { intl, t } from "../../../intl/index.native";
import PremiumGroup_messages from "./PremiumGroup.messages";
const { HelpdeskArticles, SubscriptionStatusTypes } = _Constants;
const DAY = Durations.Millis.DAY;
const articleURL = HelpdeskUtils.getArticleURL(HelpdeskArticles.PREMIUM_GROUP_ABOUT);
const r28 = [SubscriptionStatusTypes.CANCELED, SubscriptionStatusTypes.PAUSED, SubscriptionStatusTypes.PAST_DUE, SubscriptionStatusTypes.ACCOUNT_HOLD, SubscriptionStatusTypes.BILLING_RETRY];
const r33 = {
UNKNOWN: "UNKNOWN",
FETCHING: "FETCHING",
PENDING: "PENDING",
ACCEPTED: "ACCEPTED",
REMOVED: "REMOVED",
NOT_FOUND: "NOT_FOUND",
ERROR: "ERROR"
};
const r41 = {
UNKNOWN_USER: 10013,
10013: "UNKNOWN_USER",
BILLING_SUBSCRIPTION_GROUP_MAX_MEMBERS: 100123
};
r41[100123] = "BILLING_SUBSCRIPTION_GROUP_MAX_MEMBERS";
r41.BILLING_SUBSCRIPTION_GROUP_USER_INELIGIBLE = 100124;
r41[100124] = "BILLING_SUBSCRIPTION_GROUP_USER_INELIGIBLE";
r41.BILLING_SUBSCRIPTION_GROUP_INVITE_ALREADY_ACCEPTED = 100125;
r41[100125] = "BILLING_SUBSCRIPTION_GROUP_INVITE_ALREADY_ACCEPTED";
r41.BILLING_SUBSCRIPTION_GROUP_USER_IS_BOT = 100126;
r41[100126] = "BILLING_SUBSCRIPTION_GROUP_USER_IS_BOT";
r41.BILLING_SUBSCRIPTION_GROUP_USER_ALREADY_IN_GROUP = 100127;
r41[100127] = "BILLING_SUBSCRIPTION_GROUP_USER_ALREADY_IN_GROUP";
r41.BILLING_SUBSCRIPTION_GROUP_USER_HAS_FRACTIONAL_NITRO = 100128;
r41[100128] = "BILLING_SUBSCRIPTION_GROUP_USER_HAS_FRACTIONAL_NITRO";
r41.BILLING_SUBSCRIPTION_GROUP_USER_BOOST_ONLY = 100129;
r41[100129] = "BILLING_SUBSCRIPTION_GROUP_USER_BOOST_ONLY";
r41.BILLING_SUBSCRIPTION_GROUP_USER_ACCOUNT_TOO_YOUNG = 100130;
r41[100130] = "BILLING_SUBSCRIPTION_GROUP_USER_ACCOUNT_TOO_YOUNG";
r41.BILLING_SUBSCRIPTION_GROUP_USER_HAS_INELIGIBLE_PLAN = 100131;
r41[100131] = "BILLING_SUBSCRIPTION_GROUP_USER_HAS_INELIGIBLE_PLAN";
r41.BILLING_SUBSCRIPTION_GROUP_USER_ON_COOLDOWN = 100132;
r41[100132] = "BILLING_SUBSCRIPTION_GROUP_USER_ON_COOLDOWN";
r41.BILLING_SUBSCRIPTION_GROUP_USER_ACTIVE_BOOSTS = 100133;
r41[100133] = "BILLING_SUBSCRIPTION_GROUP_USER_ACTIVE_BOOSTS";
r41.BILLING_SUBSCRIPTION_GROUP_USER_ON_GIFT_SUBSCRIPTION = 100135;
r41[100135] = "BILLING_SUBSCRIPTION_GROUP_USER_ON_GIFT_SUBSCRIPTION";
r41.BILLING_SUBSCRIPTION_GROUP_USER_HAS_MOBILE_SUBSCRIPTION = 100136;
r41[100136] = "BILLING_SUBSCRIPTION_GROUP_USER_HAS_MOBILE_SUBSCRIPTION";
r41.BILLING_SUBSCRIPTION_GROUP_USER_INVALID_SUBSCRIPTION = 100137;
r41[100137] = "BILLING_SUBSCRIPTION_GROUP_USER_INVALID_SUBSCRIPTION";
export const TOTAL_PREMIUM_GROUP_MEMBER_SEATS = 5;
export const TOTAL_PREMIUM_GROUP_USERS = 6;
export const MIN_AVAILABLE_SEATS_FOR_REMINDER = 3;
export { DAY as MIN_SUBSCRIPTION_AGE_FOR_PRIMARY_REMINDER_IN_MS };
export const PREMIUM_GROUP_COOLDOWN_MONTHS = 12;
export const PREMIUM_GROUP_ANNOUNCEMENT_MODAL_PROMOTION_KEY = "2026-07-premium-group-announcement-modal";
export { articleURL as HELP_CENTER_LINK };
export { r28 as CANNOT_INVITE_STATUSES };
export function getPremiumGroupProductName() {
return intl.string(PremiumGroup_messages.aFBQ3d);
}
export function getPremiumGroupCountryName() {
return intl.string(t.jI66M4);
}
export { r33 as PremiumGroupInviteState };
export { r41 as PremiumGroupAPIErrorCodes };