/* Metro module 12250; source: components_native/premium/GuildBoostingUpsell.tsx; dependencies: [31, 27, 4896, 1880, 33, 4501, 697, 12229, 1244, 7958, 12251, 12252, 12254, 9097, 12255, 7950, 12256, 10976, 12257, 10319, 12258, 7948, 12259, 8633, 566, 7563, 12260, 4048, 7522, 4002, 7531, 7532, 4573, 7971, 12264, 12265, 12266, 2] */ function _fun93697(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12436:6, offset: 0x020bf57b, size: 489 bytes, params: 8, frame: 25 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); importAll(31) /* metro dependency 31 */; let value = require(27) /* metro dependency 27 */; const StyleSheet = value.StyleSheet; const env0_3 = value.View; const env0_4 = value.Image; const sortedGuildStore = importDefault(4896) /* metro dependency 4896: SortedGuildStore */; const env0_6 = (require(1880) /* metro dependency 1880: PremiumConstants */).FractionalPremiumStates; value = require(33) /* metro dependency 33 */; const env0_7 = value.jsx; const env0_8 = value.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; const object = {'marginTop': 32, 'paddingTop': 16}; object.borderTopWidth = 2 * StyleSheet.hairlineWidth; const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE; object.borderTopColor = BORDER_SUBTLE; const env0_9 = Reflect.apply(createStyles, value, [{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: object, subscriptionUpsell: {marginTop: 32}}]); const closure = FEATURES_PREMIUM_GUILD_USER; (require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/premium/GuildBoostingUpsell.tsx'); exports.default = GuildBoostingUpsell; exports.FEATURES_PREMIUM_GUILD_USER = closure; } function FEATURES_PREMIUM_GUILD_USER() { // fn#93698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12436:796, offset: 0x020bf764, size: 350 bytes, params: 1, frame: 19 let object2 = {}; object2.icon = importDefault(12229) /* metro dependency 12229 */; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; let string = intl.string; const t = (require(1244) /* metro dependency 1244: indexNative */).t; object2.label = Reflect.apply(string, intl, [t['GS+bL0']]); const BoostGemIcon = (require(7958) /* metro dependency 7958: BoostGemIcon */).BoostGemIcon; object2.IconComponent = BoostGemIcon; const GUILD_BOOSTING_PINK = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GUILD_BOOSTING_PINK; object2.color = GUILD_BOOSTING_PINK; const items2 = [object2]; object2 = {icon: importDefault(12251) /* metro dependency 12251 */}; object2.label = intl.string(t.a7LWeM); object2.IconComponent = IconComponent_93699; items2[1] = object2; object2 = {icon: importDefault(12254) /* metro dependency 12254 */}; string = intl.string; const E76jz8 = t.E76jz8; object2.label = Reflect.apply(string, intl, [E76jz8]); const YELLOW_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300; object2.color = YELLOW_300; const ShieldUserIcon = (require(9097) /* metro dependency 9097: ShieldUserIcon */).ShieldUserIcon; object2.IconComponent = ShieldUserIcon; items2[2] = object2; return items2; } function GuildBoostingUpsell({onLearnMorePremium, fractionalState, isInReverseTrial, hasAvailableSlots}) { // fn#93700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12436:1258, offset: 0x020bf91d, size: 2157 bytes, params: 2, frame: 40 var r10; var r13; var r0; var items6; const Text = (require(4573) /* metro dependency 4573: Text */).Text; var title; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; var string; const t = (require(1244) /* metro dependency 1244: indexNative */).t; var cardText; var items2; var defaultImport3; var features; var defaultImport4; var object; var object2; var unsafe_rawColors; var items3; var object3; var object4; var object5; var object6; var value9; var items4; var object7; var items5; var items7; var value; const styles = useStyles(); const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([SortedGuildStore], function() { return SortedGuildStore.getFlattenedGuildIds().length > 0; }); const value3 = (require(7563) /* metro dependency 7563: useSubscriptionPlansLoaded */).useSubscriptionPlansLoaded(); const value4 = (require(12260) /* metro dependency 12260: GuildSubscriptionNoGuilds */).useGuildSubscriptionNoGuildsSource(); const value5 = (importDefault(4048) /* metro dependency 4048: useTheme */)(); const NONE = FractionalPremiumStates.NONE; if (fractionalState === NONE) { var viewBindingProps = {style: styles.root}; var viewBindingProps2 = {style: styles.header}; items6 = []; var imageBindingProps = {style: styles.logoPremiumGuild}; r10 = (require(4002) /* metro dependency 4002: shared */).isThemeDark(value5) ? importDefault(7531) /* metro dependency 7531 */ : importDefault(7532) /* metro dependency 7532 */; imageBindingProps.source = r10; items6[1] = ; title = styles.title; string = intl.string; items6[2] = {Reflect.apply(string, intl, [t.hw6WTd])}; cardText = styles.cardText; string = intl.string; items6[3] = {Reflect.apply(string, intl, [t.K5jBdG])}; items2 = [{items6}]; title = styles.title; string = intl.string; items2[1] = {Reflect.apply(string, intl, [t.RvfRTB])}; defaultImport3 = importDefault(7971) /* metro dependency 7971: PremiumFeatureList */; features = styles.features; items2[2] = ((Component) => )(defaultImport3); title = styles.title; string = intl.string; items2[3] = {Reflect.apply(string, intl, [t['/pVhjb']])}; defaultImport4 = importDefault(7971) /* metro dependency 7971: PremiumFeatureList */; object = {}; features = styles.features; object.style = features; object2 = {icon: importDefault(12255) /* metro dependency 12255 */}; object2.label = intl.string(t.Ts7BVI); object2.IconComponent = (require(7950) /* metro dependency 7950: ReactionIcon */).ReactionIcon; unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors; object2.color = unsafe_rawColors.PREMIUM_PERK_YELLOW; items3 = [object2]; object3 = {icon: importDefault(12256) /* metro dependency 12256 */}; object3.label = intl.string(t.QcJbt6); object3.IconComponent = (require(10976) /* metro dependency 10976: StickerIcon */).StickerIcon; unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors; object3.color = unsafe_rawColors.PREMIUM_PERK_PURPLE; items3[1] = object3; object4 = {icon: importDefault(12257) /* metro dependency 12257 */}; object4.label = intl.string(t.rFNkf5); object4.color = '#4173da'; object4.IconComponent = (require(10319) /* metro dependency 10319: HeadphonesIcon */).HeadphonesIcon; items3[2] = object4; object5 = {icon: importDefault(12258) /* metro dependency 12258 */}; object5.label = intl.string(t['BpjjS/']); object5.IconComponent = (require(7948) /* metro dependency 7948: UploadIcon */).UploadIcon; unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors; object5.color = unsafe_rawColors.GUILD_BOOSTING_PINK; items3[3] = object5; object6 = {icon: importDefault(12259) /* metro dependency 12259 */}; object6.label = intl.string(t['9g5Lgb']); object6.IconComponent = (require(8633) /* metro dependency 8633: StarIcon */).StarIcon; unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors; object6.color = unsafe_rawColors.PREMIUM_PERK_GOLD; items3[4] = object6; object.features = items3; items2[4] = ((Component) => )(defaultImport4); var viewBinding2Props = {style: styles.upsell}; value9 = null; r13 = value3 ? fractionalState !== FractionalPremiumStates.NONE ? value9 : ((Component) => )(importDefault(12264) /* metro dependency 12264: PremiumSubscriptionPricingUpsell */) : value9; items4 = [r13]; if (isInReverseTrial) { r13 = value9; } else { object7 = {}; if (value2) { cardText = styles.cardText; string = intl.string; items7 = [{Reflect.apply(string, intl, [t.WRzob8])}]; cardText = styles.cardText; string = intl.string; items7[1] = {Reflect.apply(string, intl, [t.j4bXcm])}; items7[2] = ((Component) => )(importDefault(12265) /* metro dependency 12265: GuildBoostingGuildList */); object7.children = items7; } else { items5 = []; cardText = styles.cardText; string = intl.string; items5[1] = {Reflect.apply(string, intl, [t.FHm4bZ])}; cardText = styles.cardText; string = intl.string; items5[2] = {Reflect.apply(string, intl, [t.PSLiiu])}; object7.children = items5; } r13 = ; } items4[1] = r13; if (value3) { value = importDefault(12266) /* metro dependency 12266: PremiumSubscriptionUpsell */; value = ((Component) => )(value); r10 = value; } else { r10 = value9; } items4[2] = r10; items2[5] = {items4}; value = {items2}; r0 = value; } else if (isInReverseTrial) { var viewBindingProps = {style: styles.root}; var viewBindingProps2 = {style: styles.header}; items6 = []; var imageBindingProps = {style: styles.logoPremiumGuild}; r10 = (require(4002) /* metro dependency 4002: shared */).isThemeDark(value5) ? importDefault(7531) /* metro dependency 7531 */ : importDefault(7532) /* metro dependency 7532 */; imageBindingProps.source = r10; items6[1] = ; title = styles.title; string = intl.string; items6[2] = {Reflect.apply(string, intl, [t.hw6WTd])}; cardText = styles.cardText; string = intl.string; items6[3] = {Reflect.apply(string, intl, [t.K5jBdG])}; items2 = [{items6}]; title = styles.title; string = intl.string; items2[1] = {Reflect.apply(string, intl, [t.RvfRTB])}; defaultImport3 = importDefault(7971) /* metro dependency 7971: PremiumFeatureList */; features = styles.features; items2[2] = ((Component) => )(defaultImport3); title = styles.title; string = intl.string; items2[3] = {Reflect.apply(string, intl, [t['/pVhjb']])}; defaultImport4 = importDefault(7971) /* metro dependency 7971: PremiumFeatureList */; object = {}; features = styles.features; object.style = features; object2 = {icon: importDefault(12255) /* metro dependency 12255 */}; object2.label = intl.string(t.Ts7BVI); object2.IconComponent = (require(7950) /* metro dependency 7950: ReactionIcon */).ReactionIcon; unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors; object2.color = unsafe_rawColors.PREMIUM_PERK_YELLOW; items3 = [object2]; object3 = {icon: importDefault(12256) /* metro dependency 12256 */}; object3.label = intl.string(t.QcJbt6); object3.IconComponent = (require(10976) /* metro dependency 10976: StickerIcon */).StickerIcon; unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors; object3.color = unsafe_rawColors.PREMIUM_PERK_PURPLE; items3[1] = object3; object4 = {icon: importDefault(12257) /* metro dependency 12257 */}; object4.label = intl.string(t.rFNkf5); object4.color = '#4173da'; object4.IconComponent = (require(10319) /* metro dependency 10319: HeadphonesIcon */).HeadphonesIcon; items3[2] = object4; object5 = {icon: importDefault(12258) /* metro dependency 12258 */}; object5.label = intl.string(t['BpjjS/']); object5.IconComponent = (require(7948) /* metro dependency 7948: UploadIcon */).UploadIcon; unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors; object5.color = unsafe_rawColors.GUILD_BOOSTING_PINK; items3[3] = object5; object6 = {icon: importDefault(12259) /* metro dependency 12259 */}; object6.label = intl.string(t['9g5Lgb']); object6.IconComponent = (require(8633) /* metro dependency 8633: StarIcon */).StarIcon; unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors; object6.color = unsafe_rawColors.PREMIUM_PERK_GOLD; items3[4] = object6; object.features = items3; items2[4] = ((Component) => )(defaultImport4); var viewBinding2Props = {style: styles.upsell}; value9 = null; r13 = value3 ? fractionalState !== FractionalPremiumStates.NONE ? value9 : ((Component) => )(importDefault(12264) /* metro dependency 12264: PremiumSubscriptionPricingUpsell */) : value9; items4 = [r13]; if (isInReverseTrial) { r13 = value9; } else { object7 = {}; if (value2) { cardText = styles.cardText; string = intl.string; items7 = [{Reflect.apply(string, intl, [t.WRzob8])}]; cardText = styles.cardText; string = intl.string; items7[1] = {Reflect.apply(string, intl, [t.j4bXcm])}; items7[2] = ((Component) => )(importDefault(12265) /* metro dependency 12265: GuildBoostingGuildList */); object7.children = items7; } else { items5 = []; cardText = styles.cardText; string = intl.string; items5[1] = {Reflect.apply(string, intl, [t.FHm4bZ])}; cardText = styles.cardText; string = intl.string; items5[2] = {Reflect.apply(string, intl, [t.PSLiiu])}; object7.children = items5; } r13 = ; } items4[1] = r13; if (value3) { value = importDefault(12266) /* metro dependency 12266: PremiumSubscriptionUpsell */; value = ((Component) => )(value); r10 = value; } else { r10 = value9; } items4[2] = r10; items2[5] = {items4}; value = {items2}; r0 = value; } else if (hasAvailableSlots) { var viewBindingProps = {style: styles.root}; var viewBindingProps2 = {style: styles.header}; items6 = []; var imageBindingProps = {style: styles.logoPremiumGuild}; r10 = (require(4002) /* metro dependency 4002: shared */).isThemeDark(value5) ? importDefault(7531) /* metro dependency 7531 */ : importDefault(7532) /* metro dependency 7532 */; imageBindingProps.source = r10; items6[1] = ; title = styles.title; string = intl.string; items6[2] = {Reflect.apply(string, intl, [t.hw6WTd])}; cardText = styles.cardText; string = intl.string; items6[3] = {Reflect.apply(string, intl, [t.K5jBdG])}; items2 = [{items6}]; title = styles.title; string = intl.string; items2[1] = {Reflect.apply(string, intl, [t.RvfRTB])}; defaultImport3 = importDefault(7971) /* metro dependency 7971: PremiumFeatureList */; features = styles.features; items2[2] = ((Component) => )(defaultImport3); title = styles.title; string = intl.string; items2[3] = {Reflect.apply(string, intl, [t['/pVhjb']])}; defaultImport4 = importDefault(7971) /* metro dependency 7971: PremiumFeatureList */; object = {}; features = styles.features; object.style = features; object2 = {icon: importDefault(12255) /* metro dependency 12255 */}; object2.label = intl.string(t.Ts7BVI); object2.IconComponent = (require(7950) /* metro dependency 7950: ReactionIcon */).ReactionIcon; unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors; object2.color = unsafe_rawColors.PREMIUM_PERK_YELLOW; items3 = [object2]; object3 = {icon: importDefault(12256) /* metro dependency 12256 */}; object3.label = intl.string(t.QcJbt6); object3.IconComponent = (require(10976) /* metro dependency 10976: StickerIcon */).StickerIcon; unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors; object3.color = unsafe_rawColors.PREMIUM_PERK_PURPLE; items3[1] = object3; object4 = {icon: importDefault(12257) /* metro dependency 12257 */}; object4.label = intl.string(t.rFNkf5); object4.color = '#4173da'; object4.IconComponent = (require(10319) /* metro dependency 10319: HeadphonesIcon */).HeadphonesIcon; items3[2] = object4; object5 = {icon: importDefault(12258) /* metro dependency 12258 */}; object5.label = intl.string(t['BpjjS/']); object5.IconComponent = (require(7948) /* metro dependency 7948: UploadIcon */).UploadIcon; unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors; object5.color = unsafe_rawColors.GUILD_BOOSTING_PINK; items3[3] = object5; object6 = {icon: importDefault(12259) /* metro dependency 12259 */}; object6.label = intl.string(t['9g5Lgb']); object6.IconComponent = (require(8633) /* metro dependency 8633: StarIcon */).StarIcon; unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors; object6.color = unsafe_rawColors.PREMIUM_PERK_GOLD; items3[4] = object6; object.features = items3; items2[4] = ((Component) => )(defaultImport4); var viewBinding2Props = {style: styles.upsell}; value9 = null; r13 = value3 ? fractionalState !== FractionalPremiumStates.NONE ? value9 : ((Component) => )(importDefault(12264) /* metro dependency 12264: PremiumSubscriptionPricingUpsell */) : value9; items4 = [r13]; if (isInReverseTrial) { r13 = value9; } else { object7 = {}; if (value2) { cardText = styles.cardText; string = intl.string; items7 = [{Reflect.apply(string, intl, [t.WRzob8])}]; cardText = styles.cardText; string = intl.string; items7[1] = {Reflect.apply(string, intl, [t.j4bXcm])}; items7[2] = ((Component) => )(importDefault(12265) /* metro dependency 12265: GuildBoostingGuildList */); object7.children = items7; } else { items5 = []; cardText = styles.cardText; string = intl.string; items5[1] = {Reflect.apply(string, intl, [t.FHm4bZ])}; cardText = styles.cardText; string = intl.string; items5[2] = {Reflect.apply(string, intl, [t.PSLiiu])}; object7.children = items5; } r13 = ; } items4[1] = r13; if (value3) { value = importDefault(12266) /* metro dependency 12266: PremiumSubscriptionUpsell */; value = ((Component) => )(value); r10 = value; } else { r10 = value9; } items4[2] = r10; items2[5] = {items4}; value = {items2}; r0 = value; } else { r0 = null; } return r0; } function FEATURES_PREMIUM_GUILD_USERIconComponent(a0) { // fn#93699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12436:1022, owner: FEATURES_PREMIUM_GUILD_USER.IconComponent, offset: 0x020bf8c2, size: 91 bytes, params: 2, frame: 16 const BoostTier3Icon = (require(12252) /* metro dependency 12252: BoostTier3Icon */).BoostTier3Icon; const boostTier3IconProps = {...a0}; const GUILD_BOOSTING_PINK = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GUILD_BOOSTING_PINK; boostTier3IconProps['color'] = GUILD_BOOSTING_PINK; return ; }