229 lines
11 KiB
TypeScript
229 lines
11 KiB
TypeScript
// Module ID: 12997
|
|
// Function ID: 12998
|
|
// Name: FEATURES_PREMIUM_GUILD_USER
|
|
// Dependencies: [19, 17, 5262, 1924, 21, 4380, 712, 12976, 1236, 7840, 12998, 12999, 13001, 9153, 13002, 7800, 13003, 7851, 13004, 12088, 13005, 7803, 13006, 8891, 589, 12895, 13007, 4315, 7753, 1363, 7762, 7763, 4376, 8781, 13011, 13012, 13013, 2]
|
|
// Exports: default
|
|
|
|
// Module 12997 (FEATURES_PREMIUM_GUILD_USER)
|
|
import noopAll from "noop" /* 19 */;
|
|
import initialize from "initialize" /* 589 */;
|
|
import ThemesDefault from "Themes" /* 712 */;
|
|
import getSystemLocale from "getSystemLocale" /* 1236 */;
|
|
import AccessibilityAnnouncer from "AccessibilityAnnouncer" /* 1363 */;
|
|
import useThemeDefault from "useTheme" /* 4315 */;
|
|
import Text from "Text" /* 4376 */;
|
|
import ReactionIcon from "ReactionIcon" /* 7800 */;
|
|
import UploadIcon from "UploadIcon" /* 7803 */;
|
|
import BoostGemIcon from "BoostGemIcon" /* 7840 */;
|
|
import StickerIcon from "StickerIcon" /* 7851 */;
|
|
import PremiumFeatureListDefault from "PremiumFeatureList" /* 8781 */;
|
|
import StarIcon from "StarIcon" /* 8891 */;
|
|
import ShieldUserIcon from "ShieldUserIcon" /* 9153 */;
|
|
import HeadphonesIcon from "HeadphonesIcon" /* 12088 */;
|
|
import getSubscriptionPlansLoaded from "getSubscriptionPlansLoaded" /* 12895 */;
|
|
import registerAssetDefault from "registerAsset" /* 12976 */;
|
|
import registerAssetDefault2 from "registerAsset" /* 12998 */;
|
|
import registerAssetDefault3 from "registerAsset" /* 13001 */;
|
|
import registerAssetDefault4 from "registerAsset" /* 13002 */;
|
|
import registerAssetDefault5 from "registerAsset" /* 13003 */;
|
|
import registerAssetDefault6 from "registerAsset" /* 13004 */;
|
|
import registerAssetDefault7 from "registerAsset" /* 13005 */;
|
|
import registerAssetDefault8 from "registerAsset" /* 13006 */;
|
|
import getGuildSubscriptionNoGuildsSource from "getGuildSubscriptionNoGuildsSource" /* 13007 */;
|
|
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
|
|
import closure_5 from "insertUnsortedGuilds" /* 5262 */;
|
|
import { FractionalPremiumStates } from "GuildFeatures" /* 1924 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4380 */;
|
|
|
|
require = arg1;
|
|
noopAll;
|
|
({ View: c3, Image: c4, StyleSheet } = get_ActivityIndicator);
|
|
({ jsx: error, jsxs: closure_8 } = jsxProd);
|
|
createCacheKey = { root: { paddingHorizontal: 16, paddingVertical: 32 }, title: { marginTop: 16 }, features: { marginTop: 16 }, cardText: { lineHeight: 20, marginTop: 8, textAlign: "center" }, guildList: { marginTop: 16 }, logoPremiumGuild: { resizeMode: "contain", width: "100%", height: 34, maxWidth: 320, marginTop: 16 }, imgPremiumGuild: { width: 95, height: 65 }, imgNoGuilds: { width: 178, height: 112, marginTop: 32 }, header: { alignItems: "center" }, upsell: null, subscriptionUpsell: null };
|
|
createCacheKey = { marginTop: 32, paddingTop: 16, borderTopWidth: 2 * StyleSheet.hairlineWidth, borderTopColor: ThemesDefault.colors.BORDER_SUBTLE };
|
|
createCacheKey[9] = createCacheKey;
|
|
createCacheKey[10] = { marginTop: 32 };
|
|
let closure_9 = createCacheKey.createStyles(createCacheKey);
|
|
class FEATURES_PREMIUM_GUILD_USER {
|
|
constructor() {
|
|
obj = { icon: require("registerAsset"), label: null, IconComponent: null, color: null };
|
|
intl = require("getSystemLocale").intl;
|
|
obj[1] = intl.string(require("getSystemLocale").t["GS+bL0"]);
|
|
obj[2] = require("BoostGemIcon").BoostGemIcon;
|
|
obj[3] = require("Themes").unsafe_rawColors.GUILD_BOOSTING_PINK;
|
|
items = [, , ];
|
|
items[0] = obj;
|
|
obj = { icon: require("registerAsset"), label: null, IconComponent: null };
|
|
intl2 = require("getSystemLocale").intl;
|
|
obj[1] = intl2.string(require("getSystemLocale").t.a7LWeM);
|
|
obj[2] = function IconComponent(arg0) {
|
|
const obj = {};
|
|
const merged = Object.assign(arg0);
|
|
obj.color = callback2(712).unsafe_rawColors.GUILD_BOOSTING_PINK;
|
|
return callback3(callback(12999).BoostTier3Icon, obj);
|
|
};
|
|
items[1] = obj;
|
|
obj1 = { icon: require("registerAsset"), label: null, color: null, IconComponent: null };
|
|
intl3 = require("getSystemLocale").intl;
|
|
obj1[1] = intl3.string(require("getSystemLocale").t.E76jz8);
|
|
obj1[2] = require("Themes").unsafe_rawColors.YELLOW_300;
|
|
obj1[3] = require("ShieldUserIcon").ShieldUserIcon;
|
|
items[2] = obj1;
|
|
return items;
|
|
}
|
|
}
|
|
const result = require("set").fileFinishedImporting("components_native/premium/GuildBoostingUpsell.tsx");
|
|
|
|
export default function GuildBoostingUpsell(arg0) {
|
|
({ fractionalState, isInReverseTrial } = arg0);
|
|
({ onLearnMorePremium, hasAvailableSlots } = arg0);
|
|
const tmp = callback2();
|
|
let obj = initialize;
|
|
const items = [closure_5];
|
|
const stateFromStores = obj.useStateFromStores(items, () => flattenedGuildIds.getFlattenedGuildIds().length > 0);
|
|
obj1 = getSubscriptionPlansLoaded;
|
|
const subscriptionPlansLoaded = obj1.useSubscriptionPlansLoaded();
|
|
let obj2 = getGuildSubscriptionNoGuildsSource;
|
|
const guildSubscriptionNoGuildsSource = obj2.useGuildSubscriptionNoGuildsSource();
|
|
if (fractionalState !== FractionalPremiumStates.NONE) {
|
|
if (!isInReverseTrial) {
|
|
let tmp11Result = null;
|
|
}
|
|
return tmp11Result;
|
|
}
|
|
obj = { style: tmp.root, children: null };
|
|
obj = { style: tmp.header, children: null };
|
|
obj1 = { style: tmp.imgPremiumGuild, source: tmp7(7753) };
|
|
const items1 = [callback(closure_4, obj1), , , ];
|
|
obj2 = { style: tmp.logoPremiumGuild, source: null };
|
|
const tmp8 = useThemeDefault();
|
|
const tmp9 = FractionalPremiumStates;
|
|
if (tmp2Result.isThemeDark(tmp8)) {
|
|
let tmp7Result = tmp7(7762);
|
|
} else {
|
|
tmp7Result = tmp7(7763);
|
|
}
|
|
obj2[1] = tmp7Result;
|
|
items1[1] = callback(closure_4, obj2);
|
|
const obj3 = { style: tmp.title, accessibilityRole: "header", variant: "heading-lg/semibold", color: "mobile-text-heading-primary", children: null };
|
|
const intl = tmp2(1236).intl;
|
|
obj3[4] = intl.string(getSystemLocale.t.hw6WTd);
|
|
items1[2] = callback(Text.Text, obj3);
|
|
const obj4 = { style: tmp.cardText, variant: "text-md/medium", children: null };
|
|
const intl2 = tmp2(1236).intl;
|
|
obj4[2] = intl2.string(getSystemLocale.t.K5jBdG);
|
|
items1[3] = callback(Text.Text, obj4);
|
|
obj[1] = items1;
|
|
const items2 = [closure_8(closure_3, obj), , , , , ];
|
|
const obj5 = { style: tmp.title, accessibilityRole: "header", variant: "heading-lg/semibold", color: "mobile-text-heading-primary", children: null };
|
|
const intl3 = tmp2(1236).intl;
|
|
obj5[4] = intl3.string(getSystemLocale.t.RvfRTB);
|
|
items2[1] = callback(Text.Text, obj5);
|
|
const obj6 = { style: tmp.features, features: null };
|
|
tmp7Result = tmp7(8781);
|
|
obj6[1] = FEATURES_PREMIUM_GUILD_USER();
|
|
items2[2] = callback(tmp7Result, obj6);
|
|
const obj7 = { style: tmp.title, accessibilityRole: "header", variant: "heading-lg/semibold", color: "mobile-text-heading-primary", children: null };
|
|
const intl4 = tmp2(1236).intl;
|
|
obj7[4] = intl4.string(getSystemLocale.t["/pVhjb"]);
|
|
items2[3] = callback(Text.Text, obj7);
|
|
const obj8 = { style: tmp.features, features: null };
|
|
const obj9 = { icon: null, label: null, IconComponent: null, color: null };
|
|
tmp2Result = AccessibilityAnnouncer;
|
|
obj9[0] = registerAssetDefault4;
|
|
const intl5 = tmp2(1236).intl;
|
|
obj9[1] = intl5.string(getSystemLocale.t.Ts7BVI);
|
|
obj9[2] = ReactionIcon.ReactionIcon;
|
|
obj9[3] = ThemesDefault.unsafe_rawColors.PREMIUM_PERK_YELLOW;
|
|
const items3 = [obj9, , , , ];
|
|
const obj10 = { icon: registerAssetDefault5, label: null, IconComponent: null, color: null };
|
|
const intl6 = tmp2(1236).intl;
|
|
obj10[1] = intl6.string(getSystemLocale.t.QcJbt6);
|
|
obj10[2] = StickerIcon.StickerIcon;
|
|
obj10[3] = ThemesDefault.unsafe_rawColors.PREMIUM_PERK_PURPLE;
|
|
items3[1] = obj10;
|
|
const obj11 = { icon: registerAssetDefault6, label: null, color: "#4173da", IconComponent: null };
|
|
const intl7 = tmp2(1236).intl;
|
|
obj11[1] = intl7.string(getSystemLocale.t.rFNkf5);
|
|
obj11[3] = HeadphonesIcon.HeadphonesIcon;
|
|
items3[2] = obj11;
|
|
const obj12 = { icon: registerAssetDefault7, label: null, IconComponent: null, color: null };
|
|
const intl8 = tmp2(1236).intl;
|
|
obj12[1] = intl8.string(getSystemLocale.t["BpjjS/"]);
|
|
obj12[2] = UploadIcon.UploadIcon;
|
|
obj12[3] = ThemesDefault.unsafe_rawColors.GUILD_BOOSTING_PINK;
|
|
items3[3] = obj12;
|
|
const obj13 = { icon: registerAssetDefault8, label: null, IconComponent: null, color: null };
|
|
const intl9 = tmp2(1236).intl;
|
|
obj13[1] = intl9.string(getSystemLocale.t["9g5Lgb"]);
|
|
obj13[2] = StarIcon.StarIcon;
|
|
obj13[3] = ThemesDefault.unsafe_rawColors.PREMIUM_PERK_GOLD;
|
|
items3[4] = obj13;
|
|
obj8[1] = items3;
|
|
items2[4] = callback(PremiumFeatureListDefault, obj8);
|
|
const obj14 = { style: tmp.upsell, children: null };
|
|
let tmp13Result = null;
|
|
if (subscriptionPlansLoaded) {
|
|
tmp13Result = null;
|
|
if (fractionalState === tmp9.NONE) {
|
|
tmp13Result = tmp13(tmp7(13011), {});
|
|
}
|
|
}
|
|
const items4 = [tmp13Result, , ];
|
|
if (isInReverseTrial) {
|
|
items4[1] = null;
|
|
tmp13Result = null;
|
|
if (subscriptionPlansLoaded) {
|
|
const obj15 = { onLearnMorePremium: null, style: null };
|
|
obj15[0] = onLearnMorePremium;
|
|
obj15[1] = tmp.subscriptionUpsell;
|
|
tmp13Result = tmp13(tmp7(13013), obj15);
|
|
}
|
|
items4[2] = tmp13Result;
|
|
obj14[1] = items4;
|
|
items2[5] = tmp11(tmp12, obj14);
|
|
obj[1] = items2;
|
|
tmp11Result = tmp11(tmp12, obj);
|
|
} else {
|
|
const obj16 = { children: null };
|
|
if (stateFromStores) {
|
|
const obj17 = { style: null, variant: "text-md/medium", children: null };
|
|
obj17[0] = tmp.cardText;
|
|
const intl12 = tmp2(1236).intl;
|
|
obj17[2] = intl12.string(tmp2(1236).t.WRzob8);
|
|
const items5 = [tmp13(tmp2(4376).Text, obj17), , ];
|
|
const obj18 = { style: null, variant: "text-md/bold", children: null };
|
|
const items6 = [tmp.cardText];
|
|
obj18[0] = items6;
|
|
const intl13 = tmp2(1236).intl;
|
|
obj18[2] = intl13.string(tmp2(1236).t.j4bXcm);
|
|
items5[1] = tmp13(tmp2(4376).Text, obj18);
|
|
const obj19 = { style: null };
|
|
obj19[0] = tmp.guildList;
|
|
items5[2] = tmp13(tmp7(13012), obj19);
|
|
obj16[0] = items5;
|
|
let tmp19 = obj16;
|
|
} else {
|
|
const obj20 = { style: null, source: null };
|
|
obj20[0] = tmp.imgNoGuilds;
|
|
obj20[1] = guildSubscriptionNoGuildsSource;
|
|
const items7 = [tmp13(tmp14, obj20), , ];
|
|
const obj21 = { style: null, variant: "text-md/bold", children: null };
|
|
const items8 = [tmp.cardText];
|
|
obj21[0] = items8;
|
|
const intl10 = tmp2(1236).intl;
|
|
obj21[2] = intl10.string(tmp2(1236).t.FHm4bZ);
|
|
items7[1] = tmp13(tmp2(4376).Text, obj21);
|
|
const obj22 = { style: null, variant: "text-md/medium", children: null };
|
|
obj22[0] = tmp.cardText;
|
|
const intl11 = tmp2(1236).intl;
|
|
obj22[2] = intl11.string(tmp2(1236).t.PSLiiu);
|
|
items7[2] = tmp13(tmp2(4376).Text, obj22);
|
|
obj16[0] = items7;
|
|
tmp19 = obj16;
|
|
}
|
|
tmp11Result = tmp11(tmp12, tmp19);
|
|
}
|
|
};
|
|
export { FEATURES_PREMIUM_GUILD_USER };
|