decord/source/modules/premium/premium_group/PremiumGroupConstants.tsx
2026-08-25 06:04:03 +00:00

38 lines
3.6 KiB
TypeScript

// Module ID: 4057
// Function ID: 4058
// Name: SubscriptionStatusTypes
// Dependencies: [676, 687, 1995, 1236, 2921, 2]
// Exports: getPremiumGroupCountryName, getPremiumGroupProductName
// Module 4057 (SubscriptionStatusTypes)
import set from "set" /* 2 */;
import setDefault from "set" /* 687 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import messagesProxyDefault from "messagesProxy" /* 2921 */;
import ME from "ME" /* 676 */;
import importDefaultResult from "combined" /* 1995 */;
({ SubscriptionStatusTypes, HelpdeskArticles } = ME);
const items = [, , , , ];
({ CANCELED: arr[0], PAUSED: arr[1], PAST_DUE: arr[2], ACCOUNT_HOLD: arr[3], BILLING_RETRY: arr[4] } = SubscriptionStatusTypes);
const articleURL = importDefaultResult.getArticleURL(HelpdeskArticles.PREMIUM_GROUP_ABOUT);
const result = set.fileFinishedImporting("modules/premium/premium_group/PremiumGroupConstants.tsx");
export const TOTAL_PREMIUM_GROUP_MEMBER_SEATS = 5;
export const TOTAL_PREMIUM_GROUP_USERS = 6;
export const MIN_AVAILABLE_SEATS_FOR_REMINDER = 3;
export const MIN_SUBSCRIPTION_AGE_FOR_PRIMARY_REMINDER_IN_MS = setDefault.Millis.DAY;
export const PREMIUM_GROUP_COOLDOWN_MONTHS = 12;
export const PREMIUM_GROUP_ANNOUNCEMENT_MODAL_PROMOTION_KEY = "2026-07-premium-group-announcement-modal";
export const HELP_CENTER_LINK = articleURL;
export const CANNOT_INVITE_STATUSES = items;
export const getPremiumGroupProductName = function getPremiumGroupProductName() {
const intl = getSystemLocale.intl;
return intl.string(messagesProxyDefault.aFBQ3d);
};
export const getPremiumGroupCountryName = function getPremiumGroupCountryName() {
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.jI66M4);
};
export const PremiumGroupInviteState = { UNKNOWN: "UNKNOWN", FETCHING: "FETCHING", PENDING: "PENDING", ACCEPTED: "ACCEPTED", REMOVED: "REMOVED", NOT_FOUND: "NOT_FOUND", ERROR: "ERROR" };
export const PremiumGroupAPIErrorCodes = { UNKNOWN_USER: 10013, [10013]: "UNKNOWN_USER", BILLING_SUBSCRIPTION_GROUP_MAX_MEMBERS: 100123, [100123]: "BILLING_SUBSCRIPTION_GROUP_MAX_MEMBERS", BILLING_SUBSCRIPTION_GROUP_USER_INELIGIBLE: 100124, [100124]: "BILLING_SUBSCRIPTION_GROUP_USER_INELIGIBLE", BILLING_SUBSCRIPTION_GROUP_INVITE_ALREADY_ACCEPTED: 100125, [100125]: "BILLING_SUBSCRIPTION_GROUP_INVITE_ALREADY_ACCEPTED", BILLING_SUBSCRIPTION_GROUP_USER_IS_BOT: 100126, [100126]: "BILLING_SUBSCRIPTION_GROUP_USER_IS_BOT", BILLING_SUBSCRIPTION_GROUP_USER_ALREADY_IN_GROUP: 100127, [100127]: "BILLING_SUBSCRIPTION_GROUP_USER_ALREADY_IN_GROUP", BILLING_SUBSCRIPTION_GROUP_USER_HAS_FRACTIONAL_NITRO: 100128, [100128]: "BILLING_SUBSCRIPTION_GROUP_USER_HAS_FRACTIONAL_NITRO", BILLING_SUBSCRIPTION_GROUP_USER_BOOST_ONLY: 100129, [100129]: "BILLING_SUBSCRIPTION_GROUP_USER_BOOST_ONLY", BILLING_SUBSCRIPTION_GROUP_USER_ACCOUNT_TOO_YOUNG: 100130, [100130]: "BILLING_SUBSCRIPTION_GROUP_USER_ACCOUNT_TOO_YOUNG", BILLING_SUBSCRIPTION_GROUP_USER_HAS_INELIGIBLE_PLAN: 100131, [100131]: "BILLING_SUBSCRIPTION_GROUP_USER_HAS_INELIGIBLE_PLAN", BILLING_SUBSCRIPTION_GROUP_USER_ON_COOLDOWN: 100132, [100132]: "BILLING_SUBSCRIPTION_GROUP_USER_ON_COOLDOWN", BILLING_SUBSCRIPTION_GROUP_USER_ACTIVE_BOOSTS: 100133, [100133]: "BILLING_SUBSCRIPTION_GROUP_USER_ACTIVE_BOOSTS", BILLING_SUBSCRIPTION_GROUP_USER_ON_GIFT_SUBSCRIPTION: 100135, [100135]: "BILLING_SUBSCRIPTION_GROUP_USER_ON_GIFT_SUBSCRIPTION", BILLING_SUBSCRIPTION_GROUP_USER_HAS_MOBILE_SUBSCRIPTION: 100136, [100136]: "BILLING_SUBSCRIPTION_GROUP_USER_HAS_MOBILE_SUBSCRIPTION", BILLING_SUBSCRIPTION_GROUP_USER_INVALID_SUBSCRIPTION: 100137, [100137]: "BILLING_SUBSCRIPTION_GROUP_USER_INVALID_SUBSCRIPTION" };