Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,57 @@
|
||||
/* Metro module 14563; source: modules/premium/powerups/native/BoostProgressBarCoachmark.tsx; dependencies: [31, 27, 1376, 33, 4501, 9112, 1244, 2256, 3868, 8543, 2] */
|
||||
function _fun110123(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14760:6, offset: 0x0236b5d0, size: 232 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_5 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({riveContainer: {'width': 120,
|
||||
'height': 80, 'alignSelf': 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/BoostProgressBarCoachmark.tsx');
|
||||
exports.default = BoostProgressBarCoachmark;
|
||||
}
|
||||
|
||||
function BoostProgressBarCoachmark({targetRef, guild, markAsDismissed}) { // fn#110124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14760:357, offset: 0x0236b6b8, size: 196 bytes, params: 2, frame: 20
|
||||
const styles = useStyles();
|
||||
const binding = env0_3;
|
||||
const value2 = binding.useCallback(function() {
|
||||
markAsDismissed(ContentDismissActionType.USER_DISMISS);
|
||||
}, [markAsDismissed]);
|
||||
const value3 = binding.useCallback(function() {
|
||||
markAsDismissed(ContentDismissActionType.TAKE_ACTION);
|
||||
importDefault(dependencyMap[5]).saveGuild(guild.id, {premiumProgressBarEnabled: true});
|
||||
}, [guild.id, markAsDismissed]);
|
||||
const useMemo = binding.useMemo;
|
||||
(require(8543) /* metro dependency 8543: useCoachmarkNative */).useCoachmark(targetRef, Reflect.apply(useMemo,
|
||||
binding, [_fun110127, [value2, value3, styles.riveContainer]]));
|
||||
return null;
|
||||
}
|
||||
|
||||
function _fun110127() { // fn#110127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14760:609, offset: 0x0236b7e8, size: 228 bytes, params: 1, frame: 18
|
||||
const object2 = {'title': null, 'description': null, 'visible': true, 'position': 'bottom', 'offsetY': 8};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
object2.title = Reflect.apply(string, intl,
|
||||
[(importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).uwV2dH]);
|
||||
string = intl.string;
|
||||
const MIwlcR = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).MIwlcR;
|
||||
object2.description = Reflect.apply(string, intl, [MIwlcR]);
|
||||
object2.onDismiss = env0_3;
|
||||
object2.renderImgComponent = renderImgComponent_110128;
|
||||
object2.buttonLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['0CJWP2']);
|
||||
object2.buttonVariant = 'primary';
|
||||
object2.onButtonPress = env0_4;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function renderImgComponent_110128() { // fn#110128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14760:775, offset: 0x0236b8cc, size: 89 bytes, params: 1, frame: 16
|
||||
const BoostThisServerRive = (require(3868) /* metro dependency 3868: native */).BoostThisServerRive;
|
||||
return (
|
||||
<View style={styles.riveContainer}>
|
||||
<BoostThisServerRive stateMachine="State Machine 1" />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,165 @@
|
||||
/* Metro module 15965; source: modules/premium/powerups/native/EnhancedRoleColorsSelectStyleModal.tsx; dependencies: [27, 15947, 15949, 15946, 482, 33, 4501, 697, 4048, 6630, 15966, 1244, 8177, 6275, 6758, 4080, 9773, 1941, 8206, 15967, 4573, 2256, 4020, 2] */
|
||||
function _fun123442(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16173:6, offset: 0x0258d5f9, size: 284 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.Pressable;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = (require(15947) /* metro dependency 15947: GuildSettingsRolesStore */).RoleColorsStyle;
|
||||
const env0_6 = (require(15949) /* metro dependency 15949: EnhancedRoleColorConstants */).HOLOGRAPHIC_ROLE_COLORS;
|
||||
const env0_7 = (require(15946) /* metro dependency 15946: GuildSettingsRoleConstants */).STYLE_CONFIGS;
|
||||
const env0_8 = (require(482) /* metro dependency 482: Constants */).ThemeTypes;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun123443);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/EnhancedRoleColorsSelectStyleModal.tsx');
|
||||
exports.default = EnhancedRoleColorsSelectStyleModal;
|
||||
}
|
||||
|
||||
function _fun123443(a0) { // fn#123443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16173:285, offset: 0x0258d715, size: 619 bytes, params: 2, frame: 19
|
||||
const object3 = {};
|
||||
const object8 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object8.marginHorizontal = PX_12;
|
||||
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object8.marginBottom = PX_32;
|
||||
object3.container = object8;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.stylesContainer = {'display': 'flex', 'flexDirection': 'row', gap: PX_8};
|
||||
const object9 = {'borderRadius': null, 'overflow': 'hidden', 'height': 100, 'width': 100, 'flex': 1,
|
||||
'backgroundColor': null, 'display': 'flex', 'flexDirection': 'column', 'alignItems': 'center',
|
||||
'justifyContent': 'center'};
|
||||
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object9.backgroundColor = BACKGROUND_BASE_LOWEST;
|
||||
object3.button = object9;
|
||||
const object10 = {'width': 400, 'flex': 1, 'marginStart': null, 'marginVertical': null, 'alignSelf': 'flex-start'};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object10.marginStart = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object10.marginVertical = PX_8;
|
||||
object3.message = object10;
|
||||
const object11 = {'width': '100%', 'textAlign': 'center'};
|
||||
let LIGHT = ThemeTypes.LIGHT;
|
||||
object11.backgroundColor = a0 === LIGHT ? (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW : (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object11.paddingVertical = PX_8;
|
||||
object3.text = object11;
|
||||
const object12 = {};
|
||||
LIGHT = ThemeTypes.LIGHT;
|
||||
object12.backgroundColor = a0 === LIGHT ? (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW : (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object12.padding = PX_8;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object12.marginTop = PX_16;
|
||||
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object3.upsellContainer = object12;
|
||||
object3.upsellText = {textAlign: 'center'};
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object3.selected = {borderWidth: 1, borderColor: BACKGROUND_BRAND};
|
||||
object3.disabled = {opacity: 0.5};
|
||||
return object3;
|
||||
}
|
||||
|
||||
function EnhancedRoleColorsSelectStyleModal({guildId, role, roleStyle, onStyleChanged}) { // fn#123444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16173:1409, offset: 0x0258d980, size: 819 bytes, params: 2, frame: 41
|
||||
var r8;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var object2;
|
||||
var upsellText;
|
||||
var format;
|
||||
var VpEDJc;
|
||||
var object3;
|
||||
var Text2;
|
||||
var object8;
|
||||
var items3;
|
||||
var value;
|
||||
const styles = useStyles((importDefault(4048) /* metro dependency 4048: useTheme */)());
|
||||
const value3 = (require(6630) /* metro dependency 6630: useHasEnhancedRoleColors */).useHasEnhancedRoleColorsForRole(guildId,
|
||||
role);
|
||||
const useGuildSettingsRoleExampleMessageModule = require(15966) /* metro dependency 15966: useGuildSettingsRoleExampleMessage */;
|
||||
const useGuildSettingsRoleExampleMessage = useGuildSettingsRoleExampleMessageModule.useGuildSettingsRoleExampleMessage;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const Mi9Kbe = (require(1244) /* metro dependency 1244: indexNative */).t.Mi9Kbe;
|
||||
const env0_4 = Reflect.apply(useGuildSettingsRoleExampleMessage, useGuildSettingsRoleExampleMessageModule,
|
||||
[Reflect.apply(string, intl, [Mi9Kbe])]);
|
||||
const value5 = new (importDefault(8177) /* metro dependency 8177: RowGenerator */)();
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const object4 = {};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
object4.header = <BottomSheetTitleHeader title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9wVJRB'])} />;
|
||||
const view = <View style={styles.stylesContainer}>{STYLE_CONFIGS.map(_fun123445)}</View>;
|
||||
if (value3) {
|
||||
r8 = !value3;
|
||||
} else {
|
||||
var viewBinding2Props = {style: styles.upsellContainer};
|
||||
object2 = {};
|
||||
upsellText = styles.upsellText;
|
||||
object2.style = upsellText;
|
||||
object2.variant = 'text-sm/semibold';
|
||||
format = intl.format;
|
||||
VpEDJc = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).VpEDJc;
|
||||
object3 = {};
|
||||
Text2 = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var text2Props = {gradientColors: [HOLOGRAPHIC_ROLE_COLORS.primary_color,
|
||||
HOLOGRAPHIC_ROLE_COLORS.secondary_color,
|
||||
HOLOGRAPHIC_ROLE_COLORS.tertiary_color], variant: 'text-sm/semibold'};
|
||||
value = require(4020) /* metro dependency 4020: FabricUtils */;
|
||||
text2Props.experimental_useNativeText = !value.isFabric();
|
||||
object3.magical = <Text2 {...text2Props}>{(require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['+/IHLl'])}</Text2>;
|
||||
value = <Text {...object2}>{Reflect.apply(format, intl, [VpEDJc, object3])}</Text>;
|
||||
items3 = [value];
|
||||
upsellText = styles.upsellText;
|
||||
items3[1] = <Text style={upsellText} variant="text-sm/normal">{intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).FJZeZF)}</Text>;
|
||||
value = <View {...viewBinding2Props}>{items3}</View>;
|
||||
r8 = value;
|
||||
}
|
||||
return (
|
||||
<BottomSheet {...object4}>
|
||||
<View style={styles.container}>
|
||||
{view}
|
||||
{r8}
|
||||
</View>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun123445(a0) { // fn#123445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16173:1886, offset: 0x0258dcb3, size: 334 bytes, params: 2, frame: 24
|
||||
const env0_0 = a0;
|
||||
const r1 = !env0_3 && a0.id !== RoleColorsStyle.SOLID;
|
||||
const pressableProps = {style: [styles.button, roleStyle === a0.id && styles.selected, r1 && styles.disabled],
|
||||
disabled: r1, onPress: onPress_123446};
|
||||
const ChatItem = importDefault(9773) /* metro dependency 9773: ChatItem */;
|
||||
stylesBinding = styles;
|
||||
const chatItem = <ChatItem style={stylesBinding.message} message={env0_4} rowGenerator={env0_5} modifyRow={modifyRow} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const text = stylesBinding.text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Pressable {...pressableProps} key={a0.id}>
|
||||
{chatItem}
|
||||
<Text style={text} variant="text-sm/normal">
|
||||
{intl.string(a0.labelString)}
|
||||
</Text>
|
||||
</Pressable>
|
||||
);
|
||||
}
|
||||
|
||||
function onPress_123446() { // fn#123446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16173:1998, offset: 0x0258de01, size: 61 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
onStyleChanged(env0_0.id);
|
||||
value = environment.__proto__.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
function modifyRow(a0) { // fn#123447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16173:2112, offset: 0x0258de3e, size: 138 bytes, params: 2, frame: 16
|
||||
const enhancedRoleColorUtilsModule = require(1941) /* metro dependency 1941: EnhancedRoleColorUtils */;
|
||||
const value3 = enhancedRoleColorUtilsModule.extractColorStringsFromServerColors(env0_0.colors);
|
||||
a0.message.roleColor = undefined;
|
||||
a0.message.roleColors = (require(8206) /* metro dependency 8206: EnhancedRoleColorUtils */).processColorStrings(value3);
|
||||
a0.message.shouldShowRoleOnName = true;
|
||||
a0.message.avatarURL = importDefault(15967) /* metro dependency 15967: wumpusAvatarPng */;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/* Metro module 14680; source: modules/premium/powerups/native/GuildPowerupsBoostButton.tsx; dependencies: [31, 1867, 1878, 7020, 661, 33, 566, 5180, 1895, 6522, 7019, 2] */
|
||||
function _fun110794(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14877:6, offset: 0x023874ff, size: 212 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const guildBoostSlotStore = importDefault(7020) /* metro dependency 7020: GuildBoostSlotStore */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticsSections;
|
||||
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsBoostButton.tsx');
|
||||
exports.GuildPowerupsBoostButton = GuildPowerupsBoostButton;
|
||||
}
|
||||
|
||||
function GuildPowerupsBoostButton({guildId}) { // fn#110795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14877:300, offset: 0x023875d3, size: 367 bytes, params: 2, frame: 21
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
});
|
||||
const boostSlots = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildBoostSlotStore],
|
||||
function() {
|
||||
return GuildBoostSlotStore.boostSlots;
|
||||
});
|
||||
const value2 = (importDefault(5180) /* metro dependency 5180: useFractionalPremiumInfo */)({forceFetch: true});
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const r5 = currentUser != null ? currentUser.premiumGroupRole : (require(1895) /* metro dependency 1895: user */).PremiumSubscriptionGroupRole.UNSPECIFIED;
|
||||
const binding = env0_3;
|
||||
const useMemo = binding.useMemo;
|
||||
return guild == null ? null : ((Component) => <Component guild={guild} previousGuildSubscriptionSlot={Reflect.apply(useMemo,
|
||||
binding, [_fun110799,
|
||||
[boostSlots]])} analyticsSection={AnalyticsSections.GUILD_POWERUPS_OVERVIEW_SIDEBAR} fractionalPremiumState={value2.fractionalState} onAvailableSlotPress={binding.useCallback(_fun110801,
|
||||
[])} premiumGroupRole={r5} />)(importDefault(7019) /* metro dependency 7019: GuildBoostingSubscribeButton */);
|
||||
}
|
||||
|
||||
function _fun110799() { // fn#110799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14877:635, offset: 0x02387751, size: 47 bytes, params: 1, frame: 11
|
||||
const Object = global.Object;
|
||||
return Object.values(boostSlots).find(function(a0) {
|
||||
return a0.isAvailable();
|
||||
});
|
||||
}
|
||||
|
||||
function _fun110801(a0, a1) { // fn#110801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14877:706, offset: 0x02387780, size: 71 bytes, params: 3, frame: 13
|
||||
var value;
|
||||
if (a1 != null) {
|
||||
value = environment.__proto__;
|
||||
value = require(6522) /* metro dependency 6522: BoostingActionCreators */;
|
||||
value.openTransferModal({guildBoostSlots: [a1], guildId: a0});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Metro module 14641; source: modules/premium/powerups/native/GuildPowerupsBoostGem.tsx; dependencies: [27, 33, 4501, 697, 14642, 2] */
|
||||
function _fun110639(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14838:6, offset: 0x02380e2b, size: 241 bytes, params: 8, frame: 22
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const object = {'width': 100, 'height': 100, 'borderRadius': null, 'backgroundColor': null, 'alignItems': 'center',
|
||||
'justifyContent': 'center', 'alignSelf': 'center'};
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const BACKGROUND_SECONDARY_ALT = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SECONDARY_ALT;
|
||||
object.backgroundColor = BACKGROUND_SECONDARY_ALT;
|
||||
const env0_4 = Reflect.apply(createStyles, createStylesModule, [{boostGemContainer: object}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsBoostGem.tsx');
|
||||
exports.default = GuildPowerupsBoostGem;
|
||||
}
|
||||
|
||||
function GuildPowerupsBoostGem({style, gemWidth, gemHeight}) { // fn#110640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14838:445, offset: 0x02380f1c, size: 113 bytes, params: 2, frame: 19
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View style={[styles.boostGemContainer, style]}>
|
||||
{((Component) => <Component width={gemWidth} height={gemHeight} />)(importDefault(14642) /* metro dependency 14642: BoostGem */)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/* Metro module 14620; source: modules/premium/powerups/native/GuildPowerupsBoostInfo.tsx; dependencies: [27, 8259, 33, 4501, 697, 14621, 7958, 4573, 2] */
|
||||
function _fun110544(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14817:6, offset: 0x0237c878, size: 268 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(8259) /* metro dependency 8259: GuildPowerupsConstants */).BoostInfoType;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [{container: {'flex': 1, 'alignItems': 'center',
|
||||
'justifyContent': 'center', paddingVertical: PX_12}, headerContainer: {'flexDirection': 'row',
|
||||
'alignItems': 'center', 'justifyContent': 'center', 'display': 'flex'}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsBoostInfo.tsx');
|
||||
exports.default = GuildPowerupsBoostInfo;
|
||||
}
|
||||
|
||||
function GuildPowerupsBoostInfo({count, type}) { // fn#110545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14817:486, offset: 0x0237c984, size: 444 bytes, params: 2, frame: 26
|
||||
const styles = useStyles();
|
||||
const guildPowerupsBoostInfoText = (require(14621) /* metro dependency 14621: getGuildPowerupsBoostInfoText */).getGuildPowerupsBoostInfoText(count,
|
||||
type);
|
||||
const BoostGemIcon = (require(7958) /* metro dependency 7958: BoostGemIcon */).BoostGemIcon;
|
||||
let AVAILABLE = BoostInfoType.AVAILABLE;
|
||||
const boostGemIcon = <BoostGemIcon size="sm" color={type === AVAILABLE ? (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GUILD_BOOSTING_PINK : (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
AVAILABLE = BoostInfoType.AVAILABLE;
|
||||
return (
|
||||
<View
|
||||
style={styles.container}
|
||||
accessible
|
||||
accessibilityLabel={'' + count + ', ' + guildPowerupsBoostInfoText}
|
||||
>
|
||||
<View
|
||||
style={styles.headerContainer}
|
||||
importantForAccessibility="no-hide-descendants"
|
||||
accessible={false}
|
||||
>
|
||||
{boostGemIcon}
|
||||
<Text
|
||||
variant="text-lg/medium"
|
||||
color={type !== AVAILABLE ? 'text-subtle' : 'text-strong'}
|
||||
importantForAccessibility="no-hide-descendants"
|
||||
>
|
||||
{count}
|
||||
</Text>
|
||||
</View>
|
||||
<Text
|
||||
variant="text-md/normal"
|
||||
color="text-subtle"
|
||||
importantForAccessibility="no-hide-descendants"
|
||||
>
|
||||
{guildPowerupsBoostInfoText}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,246 @@
|
||||
/* Metro module 14639; source: modules/premium/powerups/native/GuildPowerupsBottomSheet.tsx; dependencies: [27, 4502, 8260, 8259, 33, 4501, 697, 14635, 14636, 14640, 566, 14641, 3868, 14643, 4573, 14644, 14647, 14634, 4068, 1244, 2256, 12310, 14648, 14649, 14650, 14653, 14658, 14659, 4578, 6275, 2] */
|
||||
function _fun110626(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14836:6, offset: 0x023800c9, size: 763 bytes, params: 8, frame: 23
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const env0_5 = (require(8260) /* metro dependency 8260: GameServerConstants */).GAME_SERVER_POWERUP_SKU_ID;
|
||||
let value = require(8259) /* metro dependency 8259: GuildPowerupsConstants */;
|
||||
const env0_6 = value.GuildPowerupType;
|
||||
const env0_7 = value.GUILD_POWERUP_CONFIGURABLE_SKUS_DESKTOP;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
const env0_10 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.padding = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.gap = PX_16;
|
||||
object3.container = object4;
|
||||
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object3.headerContainer = {marginTop: PX_24, alignItems: 'center'};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.statusContainer = {justifyContent: 'center', gap: PX_8};
|
||||
const object6 = {flexDirection: 'column'};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.gap = PX_8;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.marginTop = PX_16;
|
||||
object3.levelContainer = object6;
|
||||
object3.perkContainer = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between'};
|
||||
object3.perkIcon = {'width': 20, 'height': 20};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.perkText = {marginStart: PX_8};
|
||||
const object8 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object8.gap = PX_12;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object8.marginTop = PX_8;
|
||||
object3.footerContainer = object8;
|
||||
object3.image = {'width': '100%', 'height': 160};
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object3.description = {marginHorizontal: PX_24, textAlign: 'center'};
|
||||
const object10 = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'center'};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object10.gap = PX_4;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object10.marginTop = PX_8;
|
||||
object3.cooldownInfo = object10;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.gemContainer = {marginTop: PX_16};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsBottomSheet.tsx');
|
||||
exports.default = GuildPowerupsBottomSheet;
|
||||
}
|
||||
|
||||
function GuildPowerupsBottomSheetHeader({guildId, powerup}) { // fn#110627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14836:1097, offset: 0x023803c4, size: 611 bytes, params: 2, frame: 29
|
||||
const styles = useStyles();
|
||||
const value4 = (require(14636) /* metro dependency 14636: useCalculatePowerupCardStatus */).useCalculatePowerupCardStatus(powerup,
|
||||
(importDefault(14635) /* metro dependency 14635: usePowerupActiveStatus */)(guildId, powerup), false);
|
||||
const r8 = (importDefault(14640) /* metro dependency 14640: useGetGuildPowerupBannerImage */)(powerup, true) ?? '';
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
let skuId = powerup.skuId;
|
||||
const r14 = skuId !== GAME_SERVER_POWERUP_SKU_ID ? undefined : '+';
|
||||
skuId = powerup.skuId;
|
||||
const type = powerup.type;
|
||||
const LEVEL = GuildPowerupType.LEVEL;
|
||||
const r5 = type === LEVEL ? ((Component) => <Component style={styles.gemContainer} />)(importDefault(14641) /* metro dependency 14641: GuildPowerupsBoostGem */) : skuId === GAME_SERVER_POWERUP_SKU_ID ? <View style={styles.image}>{((GameServerHostingRive) => <GameServerHostingRive stateMachine="SM_Auto" dataBinding={{reducedMotion: useReducedMotion}} />)((require(3868) /* metro dependency 3868: native */).GameServerHostingRive)}</View> : ((Component) => <Component imageUrl={r8} style={styles.image} isAnimated />)(importDefault(14643) /* metro dependency 14643: GuildPowerupsImage */);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const text = <Text variant="heading-xl/bold" accessibilityRole="header">{powerup.title}</Text>;
|
||||
const GuildPowerupsCardFooter = (require(14644) /* metro dependency 14644: GuildPowerupsCardFooter */).GuildPowerupsCardFooter;
|
||||
return (
|
||||
<View>
|
||||
{r5}
|
||||
<View style={styles.headerContainer}>
|
||||
{text}
|
||||
<GuildPowerupsCardFooter
|
||||
cost={powerup.cost}
|
||||
costDecorator={r14}
|
||||
status={value4}
|
||||
style={styles.statusContainer}
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildPowerupsBottomSheetLevelBody({powerup}) { // fn#110629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14836:1846, offset: 0x02380627, size: 102 bytes, params: 2, frame: 17
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View style={styles.levelContainer}>
|
||||
{(importDefault(14647) /* metro dependency 14647: useGuildPowerupLevelPerks */)(powerup).map(_fun110630)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildPowerupsBottomSheetBody({powerup}) { // fn#110631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14836:2213, offset: 0x02380763, size: 434 bytes, params: 2, frame: 28
|
||||
var r5;
|
||||
var jsxRuntimeEnv0_10Binding;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var object;
|
||||
var description;
|
||||
var items3;
|
||||
var items2;
|
||||
var intl;
|
||||
const styles = useStyles();
|
||||
const type = powerup.type;
|
||||
const PERK = GuildPowerupType.PERK;
|
||||
if (PERK === type) {
|
||||
jsxRuntimeEnv0_10Binding = jsxRuntimeEnv0_10;
|
||||
object = {};
|
||||
description = styles.description;
|
||||
object.style = description;
|
||||
object.variant = 'text-md/medium';
|
||||
description = powerup.description;
|
||||
items3 = [<Text {...object}>{description}</Text>];
|
||||
r5 = powerup.deactivationCooldownPeriodDays != null && powerup.deactivationCooldownPeriodDays > 0;
|
||||
if (r5) {
|
||||
var viewBindingProps = {style: styles.cooldownInfo};
|
||||
items2 = [((CircleInformationIcon) => <CircleInformationIcon size="xs" color={(importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED} />)((require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon)];
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items2[1] = <Text variant="text-sm/medium" color="text-muted">{intl.formatToPlainString((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).GMhQcE,
|
||||
|
||||
|
||||
{cooldownDays: powerup.deactivationCooldownPeriodDays})}</Text>;
|
||||
r5 = <View {...viewBindingProps}>{items2}</View>;
|
||||
}
|
||||
items3[1] = r5;
|
||||
return (
|
||||
<>
|
||||
{items3}
|
||||
</>
|
||||
);
|
||||
}
|
||||
const LEVEL = GuildPowerupType.LEVEL;
|
||||
if (LEVEL === type) {
|
||||
return <GuildPowerupsBottomSheetLevelBody powerup={powerup} />;
|
||||
}
|
||||
}
|
||||
|
||||
function GuildPowerupsBottomSheetFooter({guildId, powerup}) { // fn#110632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14836:2847, offset: 0x02380915, size: 779 bytes, params: 2, frame: 33
|
||||
var r8;
|
||||
var r5;
|
||||
var value7;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var string;
|
||||
var items2;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(12310) /* metro dependency 12310: useHasAllocateBoostPermission */)(guildId);
|
||||
const {showToggleButton, showConfigureButton,
|
||||
isPowerupActive} = (importDefault(14648) /* metro dependency 14648: useGuildPowerupCardFooterConfig */)(guildId,
|
||||
powerup);
|
||||
const {disabled, reason} = (importDefault(14649) /* metro dependency 14649: useCanGuildPowerupBeToggled */)(guildId,
|
||||
powerup, isPowerupActive);
|
||||
const value5 = (importDefault(14650) /* metro dependency 14650: useGuildPowerupOnActivate */)(guildId, powerup);
|
||||
const env0_1 = value5.onActivate;
|
||||
const isLoading = value5.isLoading;
|
||||
const env0_2 = (importDefault(14653) /* metro dependency 14653: useGuildPowerupOnShowDeactivate */)(guildId,
|
||||
powerup);
|
||||
if (value2) {
|
||||
value7 = GUILD_POWERUP_CONFIGURABLE_SKUS_DESKTOP.has(powerup.skuId);
|
||||
r8 = !showConfigureButton && isPowerupActive;
|
||||
r8 = r8 && powerup.type === GuildPowerupType.PERK;
|
||||
r8 = r8 && value7;
|
||||
r8 = !r8 ? powerup.skuId === GAME_SERVER_POWERUP_SKU_ID : r8;
|
||||
var viewBindingProps = {style: styles.footerContainer};
|
||||
r8 = r8 && ((Text) => <Text style={styles.description} variant="text-md/bold">{intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['jo5++h'])}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
items2 = [r8];
|
||||
r8 = disabled && ((Component) => <Component text={reason ?? ''} />)(importDefault(14659) /* metro dependency 14659: GuildPowerupsDisabledWarning */);
|
||||
items2[1] = r8;
|
||||
items2[2] = showConfigureButton && <Button variant="primary" text={intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).g5Ds69)} onPress={(importDefault(14658) /* metro dependency 14658: useGuildPowerupConfigureCallback */)(guildId,
|
||||
|
||||
powerup)} />;
|
||||
r5 = showToggleButton && powerup.skuId !== GAME_SERVER_POWERUP_SKU_ID;
|
||||
if (r5) {
|
||||
var buttonProps = {variant: isPowerupActive ? 'secondary' : 'primary'};
|
||||
string = intl.string;
|
||||
value = importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */;
|
||||
buttonProps.text = isPowerupActive ? Reflect.apply(string, intl, [value.TZsu1U]) : Reflect.apply(string,
|
||||
intl,
|
||||
[value.gSxlHf]);
|
||||
buttonProps.loading = isLoading;
|
||||
buttonProps.disabled = disabled;
|
||||
buttonProps.onPress = onPress_110633;
|
||||
value = <Button {...buttonProps} />;
|
||||
r5 = value;
|
||||
}
|
||||
items2[3] = r5;
|
||||
return (
|
||||
<View {...viewBindingProps}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function GuildPowerupsBottomSheet({guildId, powerup}) { // fn#110634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14836:3828, offset: 0x02380c58, size: 198 bytes, params: 2, frame: 24
|
||||
const styles = useStyles();
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
return (
|
||||
<BottomSheet startExpanded>
|
||||
<View style={styles.container}>
|
||||
<GuildPowerupsBottomSheetHeader guildId={guildId} powerup={powerup} />
|
||||
<GuildPowerupsBottomSheetBody guildId={guildId} powerup={powerup} />
|
||||
<GuildPowerupsBottomSheetFooter guildId={guildId} powerup={powerup} />
|
||||
</View>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun110630(a0, a1) { // fn#110630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14836:1977, offset: 0x0238068d, size: 214 bytes, params: 3, frame: 22
|
||||
const iconForPerk = (require(14634) /* metro dependency 14634: GuildBoostingMarketingUtils */).getIconForPerk(a0.perkIcon);
|
||||
const stylesBinding = styles;
|
||||
const perkContainer = stylesBinding.perkContainer;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={perkContainer} key={'perk-' + a1 + '-' + a0.perkIcon}>
|
||||
<Text style={stylesBinding.perkText} variant="text-md/medium">
|
||||
{a0.description}
|
||||
</Text>
|
||||
{((Component) => <Component style={stylesBinding.perkIcon} />)(iconForPerk)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildPowerupsBottomSheetFooterOnPress() { // fn#110633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14836:3684, owner: GuildPowerupsBottomSheetFooter.onPress, offset: 0x02380c20, size: 56 bytes, params: 1, frame: 10
|
||||
if (isPowerupActive) {
|
||||
if (env0_2 != null) {
|
||||
env0_2();
|
||||
}
|
||||
} else if (onActivate != null) {
|
||||
onActivate();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* Metro module 14660; source: modules/premium/powerups/native/GuildPowerupsCard.tsx; dependencies: [31, 27, 33, 4501, 697, 674, 6239, 2] */
|
||||
function _fun110719(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14857:6, offset: 0x02383e17, size: 500 bytes, params: 8, frame: 25
|
||||
var object6;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object6 = {};
|
||||
const object7 = {};
|
||||
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
object7.borderColor = BACKGROUND_MOD_MUTED;
|
||||
object7.borderWidth = 1;
|
||||
object7.borderStyle = 'solid';
|
||||
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
|
||||
copyDataProperties(object7, SHADOW_LOW, undefined);
|
||||
object6.cardNormal = object7;
|
||||
const object8 = {};
|
||||
const value2 = importDefault(674) /* metro dependency 674 */;
|
||||
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
|
||||
object8.borderColor = value2(GREEN_360).alpha(0.35).hex();
|
||||
object6.cardActive = object8;
|
||||
const object9 = {};
|
||||
const value5 = value2;
|
||||
let YELLOW_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300;
|
||||
object9.borderColor = value5(YELLOW_300).alpha(0.35).hex();
|
||||
object6.cardExpiring = object9;
|
||||
const object10 = {};
|
||||
const value8 = value2;
|
||||
YELLOW_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300;
|
||||
object10.borderColor = value8(YELLOW_300).alpha(0.35).hex();
|
||||
object6.cardRemoving = object10;
|
||||
const env0_4 = Reflect.apply(createStyles, createStylesModule, [object6]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsCard.tsx');
|
||||
exports.default = GuildPowerupsCard;
|
||||
}
|
||||
|
||||
function GuildPowerupsCard(a0) { // fn#110720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14857:675, offset: 0x0238400b, size: 284 bytes, params: 2, frame: 24
|
||||
const children = a0.children;
|
||||
const containerStyle = a0.containerStyle;
|
||||
const status = a0.status;
|
||||
const object2 = {'children': 0, 'containerStyle': 0, 'status': 0};
|
||||
silentSetPrototypeOf(object2, null, undefined);
|
||||
const value = copyDataProperties({}, a0, object2, undefined);
|
||||
const value3 = undefined;
|
||||
const styles = useStyles();
|
||||
const items2 = [styles.cardNormal];
|
||||
items2[1] = (status == null ? value3 : status.type) === 'active' && styles.cardActive;
|
||||
items2[2] = (status == null ? value3 : status.type) === 'expiring' && styles.cardExpiring;
|
||||
items2[3] = (status == null ? value3 : status.type) === 'removing' && styles.cardRemoving;
|
||||
items2[4] = containerStyle;
|
||||
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
||||
return (
|
||||
<View style={items2}>
|
||||
<Card border="none" {...value}>
|
||||
{children}
|
||||
</Card>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
/* Metro module 14644; source: modules/premium/powerups/native/GuildPowerupsCardFooter.tsx; dependencies: [27, 33, 4501, 4073, 697, 4573, 7684, 1244, 2256, 14645, 14646, 7958, 2] */
|
||||
function _fun110646(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14841:6, offset: 0x02381333, size: 307 bytes, params: 8, frame: 25
|
||||
const env0_0 = require;
|
||||
const closure = GuildPowerupCardFooterActive;
|
||||
const closure2 = GuildPowerupCardFooterExpiring;
|
||||
const closure3 = GuildPowerupCardFooterRemoving;
|
||||
const closure4 = GuildPowerupCardFooterStatus;
|
||||
const closure5 = GuildPowerupCardFooterCost;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {justifyContent: 'space-between'},
|
||||
inline: {'flexDirection': 'row', 'alignItems': 'center', 'gap': 2}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsCardFooter.tsx');
|
||||
exports.GuildPowerupCardFooterActive = closure;
|
||||
exports.GuildPowerupCardFooterExpiring = closure2;
|
||||
exports.GuildPowerupCardFooterRemoving = closure3;
|
||||
exports.GuildPowerupCardFooterStatus = closure4;
|
||||
exports.GuildPowerupCardFooterCost = closure5;
|
||||
exports.GuildPowerupsCardFooter = GuildPowerupsCardFooter;
|
||||
}
|
||||
|
||||
function GuildPowerupCardFooterActive({text}) { // fn#110647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14841:262, offset: 0x02381466, size: 187 bytes, params: 2, frame: 22
|
||||
const styles = useStyles();
|
||||
const CircleCheckIcon = (require(4073) /* metro dependency 4073: CircleCheckIcon */).CircleCheckIcon;
|
||||
const STATUS_POSITIVE = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_POSITIVE;
|
||||
const circleCheckIcon = <CircleCheckIcon size="xs" color={STATUS_POSITIVE} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.inline}>
|
||||
{circleCheckIcon}
|
||||
<Text color="status-positive" variant="text-sm/bold">
|
||||
{text}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildPowerupCardFooterExpiring({dateString}) { // fn#110648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14841:512, offset: 0x02381521, size: 261 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
const CircleErrorIcon = (require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon;
|
||||
const STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING;
|
||||
const circleErrorIcon = <CircleErrorIcon size="xs" color={STATUS_WARNING} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View style={styles.inline}>
|
||||
{circleErrorIcon}
|
||||
<Text color="status-warning" variant="text-sm/bold">
|
||||
{intl.formatToMarkdownString((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['ol/ao/'],
|
||||
{dateString: (importDefault(14645) /* metro dependency 14645: entitlementExpirationDateToString */)(dateString)})}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildPowerupCardFooterRemoving({removingAt}) { // fn#110649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14841:845, offset: 0x02381626, size: 260 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
const CircleErrorIcon = (require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon;
|
||||
const STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING;
|
||||
const circleErrorIcon = <CircleErrorIcon size="xs" color={STATUS_WARNING} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View style={styles.inline}>
|
||||
{circleErrorIcon}
|
||||
<Text color="status-warning" variant="text-sm/bold">
|
||||
{intl.formatToPlainString((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['6e2ry1'],
|
||||
{dateString: (importDefault(14646) /* metro dependency 14646: getGuildPowerupFormattedDateString */)(removingAt)})}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildPowerupCardFooterStatus({status}) { // fn#110650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14841:1176, offset: 0x0238172a, size: 157 bytes, params: 2, frame: 15
|
||||
if (status == null) {
|
||||
return null;
|
||||
}
|
||||
const type = status.type;
|
||||
if (type === 'expiring') {
|
||||
return <GuildPowerupCardFooterExpiring dateString={status.expiringAt} />;
|
||||
}
|
||||
if (type === 'removing') {
|
||||
return <GuildPowerupCardFooterRemoving removingAt={status.removingAt} />;
|
||||
}
|
||||
if (type === 'active') {
|
||||
return <GuildPowerupCardFooterActive text={status.statusText} />;
|
||||
}
|
||||
}
|
||||
|
||||
function GuildPowerupCardFooterCost({cost, costDecorator}) { // fn#110651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14841:1501, offset: 0x023817c7, size: 282 bytes, params: 2, frame: 26
|
||||
var r0;
|
||||
var items2;
|
||||
var Text;
|
||||
var intl;
|
||||
var formatToPlainString;
|
||||
var t2Wbo1;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
if (cost == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.inline};
|
||||
items2 = [((BoostGemIcon) => <BoostGemIcon size="sm" color={(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GUILD_BOOSTING_PINK} />)((require(7958) /* metro dependency 7958: BoostGemIcon */).BoostGemIcon)];
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
t2Wbo1 = (require(1244) /* metro dependency 1244: indexNative */).t.t2Wbo1;
|
||||
value = '';
|
||||
items2[1] = <Text variant="heading-sm/semibold" color="text-subtle">{Reflect.apply(formatToPlainString, intl,
|
||||
[t2Wbo1, {required: cost, decorator: costDecorator ?? value}])}</Text>;
|
||||
value = <View {...viewBindingProps}>{items2}</View>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function GuildPowerupsCardFooter({cost, costDecorator, status, style}) { // fn#110652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14841:2302, offset: 0x023818e1, size: 149 bytes, params: 2, frame: 21
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View style={[styles.inline, styles.container, style]}>
|
||||
<GuildPowerupCardFooterCost cost={cost} costDecorator={costDecorator} />
|
||||
<GuildPowerupCardFooterStatus status={status} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/* Metro module 14597; source: modules/premium/powerups/native/GuildPowerupsChannelRow.tsx; dependencies: [31, 27, 10980, 33, 14598, 7684, 697, 1305, 4501, 14599, 6789, 14607, 14681, 11846, 1244, 2256, 14687, 2] */
|
||||
function _fun110373(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14794:6, offset: 0x02376f0a, size: 263 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const CHANNEL_MARGIN_VERTICAL = (require(10980) /* metro dependency 10980: RedesignChannelListConstants */).CHANNEL_MARGIN_VERTICAL;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const object = {marginVertical: CHANNEL_MARGIN_VERTICAL, marginHorizontal: 8};
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
const env0_6 = Reflect.apply(createStyles, createStylesModule, [{container: object}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsChannelRow.tsx');
|
||||
exports.default = GuildPowerupsChannelRow;
|
||||
}
|
||||
|
||||
function GuildPowerupsChannelRowIndicator({indicator}) { // fn#110374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14794:169, offset: 0x02377011, size: 236 bytes, params: 2, frame: 17
|
||||
if (indicator != null) {
|
||||
var type = indicator.type;
|
||||
var GuildPowerupNotificationIndicatorType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationIndicatorType;
|
||||
var WARNING = GuildPowerupNotificationIndicatorType.WARNING;
|
||||
if (WARNING === type) {
|
||||
const CircleErrorIcon = (require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon;
|
||||
return (
|
||||
<CircleErrorIcon color={(importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING} size="sm" />
|
||||
);
|
||||
}
|
||||
GuildPowerupNotificationIndicatorType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationIndicatorType;
|
||||
var UNREAD = GuildPowerupNotificationIndicatorType.UNREAD;
|
||||
if (UNREAD === type) {
|
||||
const Badge = (require(1305) /* metro dependency 1305: native */).Badge;
|
||||
return <Badge value={indicator.count} isMentionLowImportance />;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function GuildPowerupsChannelRow({guildId}) { // fn#110375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14794:762, offset: 0x023770fd, size: 564 bytes, params: 2, frame: 31
|
||||
const styles = useStyles();
|
||||
const binding = env0_3;
|
||||
const value3 = binding.useRef(null);
|
||||
const value4 = binding.useCallback(_fun110376, [guildId]);
|
||||
const value5 = (importDefault(14607) /* metro dependency 14607: useGuildPowerupsNotifications */)(guildId);
|
||||
(importDefault(14681) /* metro dependency 14681: useGuildPowerupsCoachmark */)(value3, guildId, value5?.popout);
|
||||
const r13 = value5 == null ? (require(11846) /* metro dependency 11846: BaseChannelItem */).ChannelModes.DEFAULT : value5.showUnread ? (require(11846) /* metro dependency 11846: BaseChannelItem */).ChannelModes.UNREAD_IMPORTANT : (require(11846) /* metro dependency 11846: BaseChannelItem */).ChannelModes.DEFAULT;
|
||||
const BaseChannelItem = importDefault(11846) /* metro dependency 11846: BaseChannelItem */;
|
||||
const defaultImport2Props = {onPress: value4, style: styles.container, accessible: true, mode: r13,
|
||||
unread: value5?.showUnread};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
defaultImport2Props.accessibilityLabel = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).yv3DJJ);
|
||||
defaultImport2Props.accessibilityState = {selected: false};
|
||||
const BaseChannelName = (require(11846) /* metro dependency 11846: BaseChannelItem */).BaseChannelName;
|
||||
defaultImport2Props.name = <BaseChannelName name={intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).yv3DJJ)} mode={r13} />;
|
||||
const BaseChannelIcon = (require(11846) /* metro dependency 11846: BaseChannelItem */).BaseChannelIcon;
|
||||
const BoostTier2Icon = (require(14687) /* metro dependency 14687: BoostTier2Icon */).BoostTier2Icon;
|
||||
defaultImport2Props.icon = <BaseChannelIcon mode={r13} IconComponent={BoostTier2Icon} />;
|
||||
defaultImport2Props.channelInfo = <GuildPowerupsChannelRowIndicator indicator={value5?.indicator} />;
|
||||
return (
|
||||
<View ref={value3} collapsable={false}>
|
||||
<BaseChannelItem {...defaultImport2Props} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun110376() { // fn#110376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14794:852, offset: 0x02377331, size: 68 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(14599) /* metro dependency 14599: openGuildPowerupsModal */;
|
||||
const object2 = {};
|
||||
object2.guildId = guildId;
|
||||
const GUILD_POWERUPS_CHANNEL_LIST_ROW = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).GUILD_POWERUPS_CHANNEL_LIST_ROW;
|
||||
object2.analyticsLocation = GUILD_POWERUPS_CHANNEL_LIST_ROW;
|
||||
value(object2);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/* Metro module 14654; source: modules/premium/powerups/native/GuildPowerupsDeactivateAlert.tsx; dependencies: [27, 33, 4501, 697, 14655, 14656, 14657, 4500, 7684, 1244, 2256, 4500, 4573, 2] */
|
||||
function _fun110697(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14851:6, offset: 0x02382e06, size: 300 bytes, params: 8, frame: 23
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {'width': 64, 'height': 64, 'alignItems': 'center', 'justifyContent': 'center',
|
||||
'borderRadius': null, 'backgroundColor': null, 'alignSelf': 'center'};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object4.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object3.headerContainer = object4;
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object3.extraContentContainer = {paddingHorizontal: PX_12};
|
||||
object3.warningText = {textAlign: 'center'};
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsDeactivateAlert.tsx');
|
||||
exports.default = GuildPowerupsDeactivateAlert;
|
||||
}
|
||||
|
||||
function GuildPowerupsDeactivateAlert({guildId, powerup}) { // fn#110698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14851:554, offset: 0x02382f32, size: 914 bytes, params: 2, frame: 35
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(14655) /* metro dependency 14655: useGuildPowerupOnDeactivate */)(guildId, powerup);
|
||||
const env0_0 = value2.onDeactivate;
|
||||
const error = value2.error;
|
||||
const {warningText,
|
||||
vanityUrlWarning} = (importDefault(14656) /* metro dependency 14656: useDeactivateWarningText */)(guildId,
|
||||
powerup);
|
||||
const guildPowerupAnalyticsModule = require(14657) /* metro dependency 14657: GuildPowerupAnalytics */;
|
||||
const useLogPowerupModalOpened = guildPowerupAnalyticsModule.useLogPowerupModalOpened;
|
||||
const ModalType = guildPowerupAnalyticsModule.ModalType;
|
||||
const DEACTIVATE = ModalType.DEACTIVATE;
|
||||
Reflect.apply(useLogPowerupModalOpened, guildPowerupAnalyticsModule, [guildId, powerup, DEACTIVATE]);
|
||||
const AlertModal = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertModal;
|
||||
const object2 = {};
|
||||
const CircleErrorIcon = (require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon;
|
||||
const INTERACTIVE_ICON_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_ICON_DEFAULT;
|
||||
object2.header = <View style={styles.headerContainer}><CircleErrorIcon color={INTERACTIVE_ICON_DEFAULT} size="custom" style={{'width': 40,
|
||||
'height': 40}} /></View>;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.title = intl.formatToPlainString((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).iEBw1M,
|
||||
{perk: powerup.title});
|
||||
object2.content = intl.formatToPlainString((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['7o0K+2'],
|
||||
{perk: powerup.title});
|
||||
const AlertActions = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActions;
|
||||
const items2 = [error != null && <Text style={styles.warningText} variant="text-xs/semibold" color="text-feedback-critical">{error}</Text>];
|
||||
const AlertActionButton = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActionButton;
|
||||
const string = intl.string;
|
||||
const PYPdl4 = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).PYPdl4;
|
||||
items2[1] = <AlertActionButton variant="destructive" onPress={function(a0) {
|
||||
a0.stopPropagation();
|
||||
return onDeactivate();
|
||||
}} text={Reflect.apply(string, intl, [PYPdl4])} key="deactivate" />;
|
||||
items2[2] = <AlertActionButton onPress={function() {
|
||||
}} variant="secondary" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])} key="cancel" />;
|
||||
object2.actions = <AlertActions>{items2}</AlertActions>;
|
||||
object2.extraContent = <View style={styles.extraContentContainer}><Text variant="text-sm/medium" style={styles.warningText}>{warningText}</Text>{vanityUrlWarning != null && <Text style={styles.warningText} variant="text-sm/semibold" color="text-feedback-critical">{vanityUrlWarning}</Text>}</View>;
|
||||
return <AlertModal {...object2} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/* Metro module 14659; source: modules/premium/powerups/native/GuildPowerupsDisabledWarning.tsx; dependencies: [27, 33, 4501, 697, 8129, 4573, 2] */
|
||||
function _fun110717(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14856:6, offset: 0x02383c07, size: 335 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object = {'flexDirection': 'row', 'alignItems': 'center', 'gap': null, 'borderColor': null, 'borderWidth': 1};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object.gap = PX_8;
|
||||
const STATUS_WARNING_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING_BACKGROUND;
|
||||
object.borderColor = STATUS_WARNING_BACKGROUND;
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object.padding = PX_12;
|
||||
const BACKGROUND_FEEDBACK_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_FEEDBACK_WARNING;
|
||||
object.backgroundColor = BACKGROUND_FEEDBACK_WARNING;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [{container: object, text: {flex: 1}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsDisabledWarning.tsx');
|
||||
exports.default = GuildPowerupsDisabledWarning;
|
||||
}
|
||||
|
||||
function GuildPowerupsDisabledWarning({text}) { // fn#110718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14856:545, offset: 0x02383d56, size: 193 bytes, params: 2, frame: 22
|
||||
const styles = useStyles();
|
||||
const WarningIcon = (require(8129) /* metro dependency 8129: WarningIcon */).WarningIcon;
|
||||
const TEXT_FEEDBACK_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_WARNING;
|
||||
const warningIcon = <WarningIcon color={TEXT_FEEDBACK_WARNING} size="md" />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{warningIcon}
|
||||
<Text
|
||||
style={styles.text}
|
||||
variant="text-md/semibold"
|
||||
color="text-feedback-warning"
|
||||
>
|
||||
{text}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/* Metro module 14671; source: modules/premium/powerups/native/GuildPowerupsGameServerCard.tsx; dependencies: [31, 27, 4502, 8255, 33, 4501, 697, 566, 14672, 12304, 14637, 14663, 3868, 2] */
|
||||
function _fun110753(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14868:6, offset: 0x02385dbc, size: 257 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const gameServerStore = importDefault(8255) /* metro dependency 8255: GameServerStore */;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
const env0_7 = Reflect.apply(createStyles, createStylesModule, [{riveContainer: {flex: 1, paddingVertical: PX_8}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsGameServerCard.tsx');
|
||||
exports.default = GuildPowerupsGameServerCard;
|
||||
}
|
||||
|
||||
function GuildPowerupsGameServerCard({guildId}) { // fn#110754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14868:345, offset: 0x02385ebd, size: 373 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
const stateForGuild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GameServerStore],
|
||||
function() {
|
||||
return GameServerStore.getStateForGuild(guildId);
|
||||
});
|
||||
const value2 = (importDefault(14672) /* metro dependency 14672: useGameServerPowerupStatus */)(guildId);
|
||||
const value3 = (importDefault(12304) /* metro dependency 12304: useGameServerPerk */)(guildId);
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
return stateForGuild == null || value3 == null ? null : ((Component) => <Component title={value3.title} description={value3.description} cost={value3.cost} costDecorator="+" riveComponent={<View style={styles.riveContainer}>{((GameServerHostingRive) => <GameServerHostingRive stateMachine="SM_Auto" dataBinding={{reducedMotion: useReducedMotion}} />)((require(3868) /* metro dependency 3868: native */).GameServerHostingRive)}</View>} badge="beta" status={value2} onPress={(importDefault(14637) /* metro dependency 14637: useGuildPowerupOnShowMore */)(guildId,
|
||||
value3)} />)(importDefault(14663) /* metro dependency 14663: GuildPowerupsPerkCard */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/* Metro module 14643; source: modules/premium/powerups/native/GuildPowerupsImage.tsx; dependencies: [4502, 33, 4501, 566, 478, 7601, 5475, 2] */
|
||||
function _fun110643(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14840:6, offset: 0x02381181, size: 186 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': '75%',
|
||||
'height': '100%', 'alignSelf': 'center', 'resizeMode': 'contain'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsImage.tsx');
|
||||
exports.default = GuildPowerupsImage;
|
||||
}
|
||||
|
||||
function GuildPowerupsImage({imageUrl, isAnimated, style}) { // fn#110644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14840:318, offset: 0x0238123b, size: 248 bytes, params: 2, frame: 21
|
||||
var r0;
|
||||
isAnimated = isAnimated === undefined || isAnimated;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const platformUtilsModule = require(478) /* metro dependency 478: PlatformUtils */;
|
||||
if (platformUtilsModule.isAndroid()) {
|
||||
if (isAnimated) {
|
||||
if (useReducedMotion) {
|
||||
value = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
value = ((Component) => <Component style={[styles.image, style]} source={{uri: imageUrl}} />)(value);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = importDefault(7601) /* metro dependency 7601: APNGDecorationNativeComponent */;
|
||||
value = ((Component) => <Component style={[styles.image, style]} url={imageUrl} />)(value);
|
||||
r0 = value;
|
||||
}
|
||||
} else {
|
||||
value = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
value = ((Component) => <Component style={[styles.image, style]} source={{uri: imageUrl}} />)(value);
|
||||
r0 = value;
|
||||
}
|
||||
} else {
|
||||
value = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
value = ((Component) => <Component style={[styles.image, style]} source={{uri: imageUrl}} />)(value);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,261 @@
|
||||
/* Metro module 14631; source: modules/premium/powerups/native/GuildPowerupsLevelCard.tsx; dependencies: [31, 27, 8259, 661, 14632, 33, 4501, 697, 4589, 7958, 14633, 14634, 4573, 1244, 2256, 14635, 14636, 14637, 14660, 14644, 2] */
|
||||
function _fun110585(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14828:6, offset: 0x0237e1fe, size: 1002 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = GuildPowerupLevelBody;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(8259) /* metro dependency 8259: GuildPowerupsConstants */;
|
||||
const env0_5 = value.LevelCardPosition;
|
||||
const env0_6 = value.PowerupActiveStatusType;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_7 = value.BoostedGuildTiers;
|
||||
const env0_8 = value.HorizontalGradient;
|
||||
const env0_9 = (require(14632) /* metro dependency 14632: GuildBoostingMarketingConstants */).TIER_CARDS;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value.jsx;
|
||||
const env0_11 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.cardContainer = {flex: 1};
|
||||
object2.card = {'padding': 0, 'overflow': 'hidden', 'flex': 1};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object2.progressContainer = {marginVertical: PX_24, position: 'relative'};
|
||||
let BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object2.progress = {height: 6, backgroundColor: BACKGROUND_MOD_SUBTLE};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.progressStart = {marginStart: PX_16};
|
||||
const object3 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.marginEnd = PX_16;
|
||||
object3.borderTopEndRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object3.borderBottomEndRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object2.progressEnd = object3;
|
||||
const object4 = {'backgroundColor': null, 'width': 28, 'height': 28, 'start': null, 'top': -11};
|
||||
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
|
||||
object4.backgroundColor = CARD_BACKGROUND_DEFAULT;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.start = PX_16 - 2;
|
||||
object2.boostContainerBackground = object4;
|
||||
const object5 = {'padding': null, 'borderRadius': null, 'position': 'absolute', 'width': 24, 'height': 24,
|
||||
'top': -9, 'start': null, 'alignItems': 'center', 'justifyContent': 'center'};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object5.padding = PX_4;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.start = PX_16;
|
||||
BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object5.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object2.boostContainer = object5;
|
||||
const GUILD_BOOSTING_PINK = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GUILD_BOOSTING_PINK;
|
||||
object2.boostContainerActive = {backgroundColor: GUILD_BOOSTING_PINK};
|
||||
BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object2.boostContainerInactive = {backgroundColor: BACKGROUND_MOD_SUBTLE};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.contentContainer = {'padding': null, 'paddingTop': 0, 'flex': 1, padding: PX_16};
|
||||
const object9 = {flexDirection: 'column'};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object9.marginTop = PX_16;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object9.gap = PX_8;
|
||||
object2.perkRowContainer = object9;
|
||||
object2.perkRow = {'flexDirection': 'row', 'alignItems': 'center'};
|
||||
object2.perkRowStyle = {'flexDirection': 'row', 'alignItems': 'center'};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.perkText = {marginStart: PX_8};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.footerContainer = {marginTop: 'auto', paddingTop: PX_16};
|
||||
const env0_12 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsLevelCard.tsx');
|
||||
exports.default = GuildPowerupsLevelCard;
|
||||
exports.GuildPowerupLevelBody = closure;
|
||||
}
|
||||
|
||||
function GuildLevelPowerupHeader({active, nextActive, position}) { // fn#110586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14828:1616, offset: 0x0237e5e8, size: 519 bytes, params: 2, frame: 23
|
||||
var r7;
|
||||
var boostContainerInactive;
|
||||
var backgroundColor;
|
||||
var items;
|
||||
var boostContainerActive;
|
||||
const styles = useStyles();
|
||||
if (active) {
|
||||
if (nextActive !== false) {
|
||||
boostContainerActive = styles.boostContainerActive;
|
||||
backgroundColor = boostContainerActive.backgroundColor;
|
||||
items = [backgroundColor];
|
||||
boostContainerActive = styles.boostContainerActive;
|
||||
backgroundColor = boostContainerActive.backgroundColor;
|
||||
items[1] = backgroundColor;
|
||||
r7 = items;
|
||||
} else if (active) {
|
||||
if (nextActive === false) {
|
||||
backgroundColor = styles.boostContainerActive.backgroundColor;
|
||||
items = [backgroundColor];
|
||||
backgroundColor = styles.boostContainerInactive.backgroundColor;
|
||||
items[1] = backgroundColor;
|
||||
r7 = items;
|
||||
} else {
|
||||
boostContainerInactive = styles.boostContainerInactive;
|
||||
backgroundColor = boostContainerInactive.backgroundColor;
|
||||
items = [backgroundColor];
|
||||
boostContainerInactive = styles.boostContainerInactive;
|
||||
backgroundColor = boostContainerInactive.backgroundColor;
|
||||
items[1] = backgroundColor;
|
||||
r7 = items;
|
||||
}
|
||||
} else {
|
||||
boostContainerInactive = styles.boostContainerInactive;
|
||||
backgroundColor = boostContainerInactive.backgroundColor;
|
||||
items = [backgroundColor];
|
||||
boostContainerInactive = styles.boostContainerInactive;
|
||||
backgroundColor = boostContainerInactive.backgroundColor;
|
||||
items[1] = backgroundColor;
|
||||
r7 = items;
|
||||
}
|
||||
} else if (active) {
|
||||
if (nextActive === false) {
|
||||
backgroundColor = styles.boostContainerActive.backgroundColor;
|
||||
items = [backgroundColor];
|
||||
backgroundColor = styles.boostContainerInactive.backgroundColor;
|
||||
items[1] = backgroundColor;
|
||||
r7 = items;
|
||||
} else {
|
||||
boostContainerInactive = styles.boostContainerInactive;
|
||||
backgroundColor = boostContainerInactive.backgroundColor;
|
||||
items = [backgroundColor];
|
||||
boostContainerInactive = styles.boostContainerInactive;
|
||||
backgroundColor = boostContainerInactive.backgroundColor;
|
||||
items[1] = backgroundColor;
|
||||
r7 = items;
|
||||
}
|
||||
} else {
|
||||
boostContainerInactive = styles.boostContainerInactive;
|
||||
backgroundColor = boostContainerInactive.backgroundColor;
|
||||
items = [backgroundColor];
|
||||
boostContainerInactive = styles.boostContainerInactive;
|
||||
backgroundColor = boostContainerInactive.backgroundColor;
|
||||
items[1] = backgroundColor;
|
||||
r7 = items;
|
||||
}
|
||||
const defaultImport = importDefault(4589) /* metro dependency 4589 */;
|
||||
const object3 = {};
|
||||
let START = HorizontalGradient.START;
|
||||
object3.start = START;
|
||||
let END = HorizontalGradient.END;
|
||||
object3.end = END;
|
||||
object3.colors = r7;
|
||||
START = LevelCardPosition.START;
|
||||
END = LevelCardPosition.END;
|
||||
object3.style = [styles.progress, position === START && styles.progressStart,
|
||||
position === END && styles.progressEnd];
|
||||
const items2 = [((Component) => <Component {...object3} />)(defaultImport)];
|
||||
items2[1] = <View style={[styles.boostContainer, styles.boostContainerBackground]} />;
|
||||
const items4 = [styles.boostContainer];
|
||||
items4[1] = active && styles.boostContainerActive;
|
||||
const BoostGemIcon = (require(7958) /* metro dependency 7958: BoostGemIcon */).BoostGemIcon;
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
items2[2] = <View style={items4}><BoostGemIcon size="xs" color={WHITE} /></View>;
|
||||
return (
|
||||
<View style={styles.progressContainer}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildPowerupLevelBody({isActive, index}) { // fn#110587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14828:2324, offset: 0x0237e7ef, size: 296 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
const {textColor,
|
||||
iconColor} = (importDefault(14633) /* metro dependency 14633: useGuildPowerupColorConfig */)(isActive);
|
||||
const value3 = iconColor.useMemo(_fun110588, [index, iconColor, textColor, styles]);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View style={styles.perkRowContainer}>
|
||||
{value3}
|
||||
<View style={styles.perkRow}>
|
||||
<Text color={textColor} variant="text-sm/medium">
|
||||
{intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).nIj3LZ)}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildPowerupsLevelCard({guildId, powerup, nextPowerup, index, isScrollingRef}) { // fn#110590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14828:3089, offset: 0x0237ea71, size: 583 bytes, params: 2, frame: 30
|
||||
const styles = useStyles();
|
||||
const value3 = (importDefault(14635) /* metro dependency 14635: usePowerupActiveStatus */)(guildId, powerup);
|
||||
const value4 = (importDefault(14635) /* metro dependency 14635: usePowerupActiveStatus */)(guildId, nextPowerup);
|
||||
const value5 = (require(14636) /* metro dependency 14636: useCalculatePowerupCardStatus */).useCalculatePowerupCardStatus(powerup,
|
||||
value3, false);
|
||||
let type = value3.type;
|
||||
let INACTIVE = PowerupActiveStatusType.INACTIVE;
|
||||
const value6 = type !== INACTIVE;
|
||||
type = value4.type;
|
||||
INACTIVE = PowerupActiveStatusType.INACTIVE;
|
||||
const value7 = type !== INACTIVE;
|
||||
const value8 = (importDefault(14637) /* metro dependency 14637: useGuildPowerupOnShowMore */)(guildId, powerup);
|
||||
const r7 = index === 0 ? LevelCardPosition.START : nextPowerup == null ? LevelCardPosition.END : LevelCardPosition.MIDDLE;
|
||||
const value9 = env0_3.useCallback(_fun110591, [isScrollingRef, value8]);
|
||||
const GuildPowerupsCard = importDefault(14660) /* metro dependency 14660: GuildPowerupsCard */;
|
||||
const guildLevelPowerupHeader = <GuildLevelPowerupHeader position={r7} active={value6} nextActive={nextPowerup != null ? value7 : undefined} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const items2 = [<Text variant="heading-lg/semibold">{powerup.title}</Text>];
|
||||
items2[1] = <GuildPowerupLevelBody isActive={value6} index={index} />;
|
||||
const GuildPowerupsCardFooter = (require(14644) /* metro dependency 14644: GuildPowerupsCardFooter */).GuildPowerupsCardFooter;
|
||||
items2[2] = <View style={styles.footerContainer}><GuildPowerupsCardFooter cost={powerup.cost} status={value5} /></View>;
|
||||
return (
|
||||
<GuildPowerupsCard
|
||||
containerStyle={styles.cardContainer}
|
||||
style={styles.card}
|
||||
onPress={value9}
|
||||
status={value5}
|
||||
>
|
||||
{guildLevelPowerupHeader}
|
||||
<View style={styles.contentContainer}>
|
||||
{items2}
|
||||
</View>
|
||||
</GuildPowerupsCard>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun110588() { // fn#110588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14828:2442, offset: 0x0237e917, size: 113 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
const property = TIER_CARDS[index];
|
||||
if (property == null) {
|
||||
return [];
|
||||
}
|
||||
const tier = property.tier;
|
||||
const TIER_3 = BoostedGuildTiers.TIER_3;
|
||||
return (tier === TIER_3 ? property.perks.slice(0, -1) : property.perks)?.map(_fun110589);
|
||||
}
|
||||
|
||||
function _fun110591() { // fn#110591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14828:3396, offset: 0x0237ecb8, size: 29 bytes, params: 1, frame: 9
|
||||
if (!isScrollingRef.current) {
|
||||
env0_1();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun110589(a0, a1) { // fn#110589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14828:2559, offset: 0x0237e988, size: 233 bytes, params: 3, frame: 24
|
||||
const iconForPerk = (require(14634) /* metro dependency 14634: GuildBoostingMarketingUtils */).getIconForPerk(a0.perkIcon);
|
||||
const stylesBinding = styles;
|
||||
const perkRowStyle = stylesBinding.perkRowStyle;
|
||||
const value4 = ((Component) => <Component color={iconColor} size="sm" />)(iconForPerk);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={perkRowStyle} key={'perk-' + index + '-' + a1}>
|
||||
{value4}
|
||||
<Text
|
||||
color={textColor}
|
||||
style={stylesBinding.perkText}
|
||||
variant="text-sm/medium"
|
||||
>
|
||||
{a0.getCopy()}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/* Metro module 14629; source: modules/premium/powerups/native/GuildPowerupsLevelsSection.tsx; dependencies: [31, 27, 33, 697, 478, 4501, 14630, 1244, 2256, 12333, 14631, 2] */
|
||||
function _fun110576(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14826:6, offset: 0x0237dcd9, size: 363 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.Fragment;
|
||||
const env0_7 = value.jsxs;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
value = require(478) /* metro dependency 478: PlatformUtils */;
|
||||
value = value.isIOS();
|
||||
const r11 = value ? 300 : 325;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.cardContainer = {'width': 250, 'marginEnd': null, 'flex': 1, marginEnd: PX_16};
|
||||
const object4 = {height: r11};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.paddingBottom = PX_8;
|
||||
object2.scroller = object4;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.scrollerContent = {paddingHorizontal: PX_16};
|
||||
const env0_9 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsLevelsSection.tsx');
|
||||
exports.default = GuildPowerupsLevelsSection;
|
||||
}
|
||||
|
||||
function GuildPowerupsLevelsSection({guildId, listings}) { // fn#110577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14826:496, offset: 0x0237de44, size: 379 bytes, params: 2, frame: 29
|
||||
const styles = useStyles();
|
||||
const binding = env0_3;
|
||||
const value2 = binding.useMemo(_fun110578, [listings]);
|
||||
const env0_4 = binding.useRef(false);
|
||||
const value3 = binding.useCallback(_fun110581, []);
|
||||
const jsxRuntimeEnv0_6Binding = jsxRuntimeEnv0_6;
|
||||
const GuildPowerupsSectionHeader = importDefault(14630) /* metro dependency 14630: GuildPowerupsSectionHeader */;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const guildPowerupsSectionHeader = <GuildPowerupsSectionHeader title={intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['TXY/b0'])} description={intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).aJv4PB)} />;
|
||||
const MarketingCardsScroller = (require(12333) /* metro dependency 12333: MarketingCardsScroller */).MarketingCardsScroller;
|
||||
return (
|
||||
<>
|
||||
{guildPowerupsSectionHeader}
|
||||
<MarketingCardsScroller
|
||||
cardMarginRight={PX_16}
|
||||
cardWidth={250}
|
||||
contentContainerStyle={styles.scrollerContent}
|
||||
itemCount={value2.length}
|
||||
onScrollingChange={value3}
|
||||
style={styles.scroller}
|
||||
>
|
||||
{value2.map(_fun110582)}
|
||||
</MarketingCardsScroller>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun110578() { // fn#110578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14826:579, offset: 0x0237dfbf, size: 45 bytes, params: 1, frame: 12
|
||||
return listings.filter(function(a0) {
|
||||
return a0.type === 'singleLevel';
|
||||
}).map(function(a0) {
|
||||
return a0.powerup;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun110582(a0, a1) { // fn#110582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14826:1007, offset: 0x0237e00b, size: 130 bytes, params: 3, frame: 21
|
||||
const value = environment.__proto__;
|
||||
return (
|
||||
<View style={styles.cardContainer} key={a0.skuId}>
|
||||
{((Component) => <Component guildId={guildId} powerup={a0} nextPowerup={env0_3[a1 + 1]} index={a1} isScrollingRef={env0_4} />)(importDefault(14631) /* metro dependency 14631: GuildPowerupsLevelCard */)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
/* Metro module 12302; source: modules/premium/powerups/native/GuildPowerupsMarketingHeader.tsx; dependencies: [31, 27, 8258, 33, 4501, 697, 674, 4573, 12303, 12307, 12310, 1244, 2256, 12311, 2] */
|
||||
function _fun93964(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12488:6, offset: 0x020ccdd3, size: 376 bytes, params: 8, frame: 24
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const guildPowerupsStore = importDefault(8258) /* metro dependency 8258: GuildPowerupsStore */;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object5.padding = PX_12;
|
||||
object5.backgroundColor = (importDefault(674) /* metro dependency 674 */)('#000000').alpha(0.18).hex();
|
||||
object4.container = object5;
|
||||
const object6 = {textAlign: 'center'};
|
||||
object6.color = (importDefault(674) /* metro dependency 674 */)('#FFFFFF').alpha(0.5).hex();
|
||||
object4.text = object6;
|
||||
const env0_7 = Reflect.apply(createStyles, createStylesModule, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsMarketingHeader.tsx');
|
||||
exports.default = GuildPowerupsMarketingHeader;
|
||||
}
|
||||
|
||||
function PerkText({powerup}) { // fn#93965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12488:330, offset: 0x020ccf4b, size: 74 bytes, params: 2, frame: 14
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text color="always-white" variant="text-sm/semibold">
|
||||
{powerup.title}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildPowerupsMarketingHeader({guild}) { // fn#93966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12488:560, offset: 0x020ccf95, size: 516 bytes, params: 2, frame: 33
|
||||
var length;
|
||||
var r12;
|
||||
var r11;
|
||||
var value4;
|
||||
var Text;
|
||||
var intl;
|
||||
var format;
|
||||
var property;
|
||||
var value5;
|
||||
var value6;
|
||||
var intl2;
|
||||
var format2;
|
||||
var MNO3sG;
|
||||
var object;
|
||||
const styles = useStyles();
|
||||
const value3 = (importDefault(12303) /* metro dependency 12303: useMarketablePowerupPerks */)(guild.id);
|
||||
env0_3.useEffect(_fun93967, [guild.id]);
|
||||
if ((importDefault(12310) /* metro dependency 12310: useHasAllocateBoostPermission */)(guild.id)) {
|
||||
length = value3?.length;
|
||||
value4 = 0;
|
||||
if (value4 !== (length ?? value4)) {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var textProps = {style: styles.text, variant: 'text-sm/semibold'};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
format = intl.format;
|
||||
property = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['7lwpzR'];
|
||||
value5 = '';
|
||||
if (value3 == null) {
|
||||
r11 = value5;
|
||||
} else if (value4 === value3.length) {
|
||||
r11 = value5;
|
||||
} else {
|
||||
value6 = (importDefault(12311) /* metro dependency 12311: orderMarketablePerksForDisplay */)(value3);
|
||||
if (value6.length === 1) {
|
||||
r12 = <PerkText powerup={value6[value4]} />;
|
||||
} else {
|
||||
intl2 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
format2 = intl2.format;
|
||||
MNO3sG = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).MNO3sG;
|
||||
object = {};
|
||||
object.perk1 = <PerkText powerup={value6[value4]} />;
|
||||
object.perk2 = <PerkText powerup={value6[1]} />;
|
||||
r12 = Reflect.apply(format2, intl2, [MNO3sG, object]);
|
||||
}
|
||||
r11 = r12;
|
||||
}
|
||||
return (
|
||||
<View {...viewBindingProps}>
|
||||
<Text {...textProps}>
|
||||
{Reflect.apply(format, intl, [property, {perks: r11}])}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun93967() { // fn#93967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12488:653, offset: 0x020cd199, size: 79 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__;
|
||||
if (GuildPowerupsStore.shouldFetchCatalogForGuild(guild.id)) {
|
||||
value = require(12307) /* metro dependency 12307: GuildPowerupsActionCreators */;
|
||||
value.fetchPowerupCatalogForGuild(guild.id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
/* Metro module 14600; source: modules/premium/powerups/native/GuildPowerupsModal.tsx; dependencies: [31, 27, 8259, 33, 4501, 697, 6857, 14601, 14607, 1585, 6771, 14619, 5080, 8254, 5287, 1244, 2256, 9603, 5282, 14620, 14622, 14629, 14661, 14673, 14680, 2] */
|
||||
function _fun110380(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14797:6, offset: 0x023775a5, size: 519 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.ScrollView;
|
||||
const env0_5 = value.View;
|
||||
value = require(8259) /* metro dependency 8259: GuildPowerupsConstants */;
|
||||
const env0_6 = value.BoostInfoType;
|
||||
const env0_7 = value.GuildPowerupType;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.container = {flex: 1, backgroundColor: BACKGROUND_BASE_LOW};
|
||||
const object5 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.paddingHorizontal = PX_16;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.paddingTop = PX_8;
|
||||
object2.headerContainer = object5;
|
||||
const object6 = {'flexDirection': 'row', 'justifyContent': 'space-between', 'borderWidth': 1,
|
||||
'borderStyle': 'solid'};
|
||||
let BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object6.borderColor = BORDER_SUBTLE;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.marginBottom = PX_16;
|
||||
object2.boostInfoContainer = object6;
|
||||
BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object2.boostInfoSeparator = {'width': 1, 'height': '100%', backgroundColor: BORDER_SUBTLE};
|
||||
const PX_96 = (importDefault(697) /* metro dependency 697: native */).space.PX_96;
|
||||
object2.scrollView = {paddingBottom: PX_96};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.boostButtonContainer = {'paddingHorizontal': null, 'position': 'absolute', 'bottom': 0, 'left': 0,
|
||||
'right': 0, paddingHorizontal: PX_16};
|
||||
const env0_10 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsModal.tsx');
|
||||
exports.default = GuildPowerupsModal;
|
||||
}
|
||||
|
||||
function GuildPowerupsModal({guildId, analyticsLocation}) { // fn#110381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14797:917, offset: 0x023777ac, size: 895 bytes, params: 2, frame: 36
|
||||
const value2 = (require(6857) /* metro dependency 6857: GameServerExperiment */).useGameServerEnabled(guildId,
|
||||
'GuildPowerupsModal');
|
||||
(importDefault(14601) /* metro dependency 14601: useLoadGuildPowerups */)(guildId);
|
||||
(require(14607) /* metro dependency 14607: useGuildPowerupsNotifications */).useAutoDismissGuildPowerupsNotifications(guildId);
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const styles = useStyles();
|
||||
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
|
||||
const r6 = analyticsLocation != null ? [analyticsLocation] : [];
|
||||
const items5 = [];
|
||||
arraySpread(items5, r6, 0, undefined);
|
||||
const analyticsLocations = apply(defaultImport, items5, undefined, undefined).analyticsLocations;
|
||||
const value3 = (require(14619) /* metro dependency 14619: powerupListing */).useBuildGuildPowerupsSections(guildId,
|
||||
value2);
|
||||
const value4 = env0_3.useCallback(_fun110382, []);
|
||||
const {available, spent,
|
||||
total} = (importDefault(8254) /* metro dependency 8254: useGuildPowerupsBoostCount */)(guildId);
|
||||
const AnalyticsLocationProvider = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider;
|
||||
const Header = (require(5287) /* metro dependency 5287 */).Header;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const items6 = [<View style={styles.headerContainer}><Header title={intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).hjvcLO)} headerTitle={headerTitle_110383} headerTitleAlign="center" headerLeft={(require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(value4)} /></View>];
|
||||
const GuildPowerupsBoostInfo = importDefault(14620) /* metro dependency 14620: GuildPowerupsBoostInfo */;
|
||||
const AVAILABLE = BoostInfoType.AVAILABLE;
|
||||
const items2 = [<GuildPowerupsBoostInfo count={available} type={AVAILABLE} />];
|
||||
items2[1] = <View style={styles.boostInfoSeparator} />;
|
||||
let value = GuildPowerupsBoostInfo;
|
||||
const SPENT = BoostInfoType.SPENT;
|
||||
items2[2] = ((Component) => <Component count={spent} type={SPENT} />)(value);
|
||||
items2[3] = <View style={styles.boostInfoSeparator} />;
|
||||
value = GuildPowerupsBoostInfo;
|
||||
const TOTAL = BoostInfoType.TOTAL;
|
||||
items2[4] = ((Component) => <Component count={total} type={TOTAL} />)(value);
|
||||
const items3 = [<View style={styles.boostInfoContainer}>{items2}</View>];
|
||||
items3[1] = ((Component) => <Component guildId={guildId} />)(importDefault(14622) /* metro dependency 14622: GuildPowerupsNotificationContainer */);
|
||||
items3[2] = value3.map(_fun110384);
|
||||
items3[3] = ((Component) => <Component guildId={guildId} />)(importDefault(14673) /* metro dependency 14673: GuildPowerupsRecentActivitySection */);
|
||||
items6[1] = <ScrollView contentContainerStyle={styles.scrollView}>{items3}</ScrollView>;
|
||||
const items4 = [styles.boostButtonContainer];
|
||||
items4[1] = {paddingBottom: bottom};
|
||||
const GuildPowerupsBoostButton = (require(14680) /* metro dependency 14680: GuildPowerupsBoostButton */).GuildPowerupsBoostButton;
|
||||
items6[2] = <View style={items4}><GuildPowerupsBoostButton guildId={guildId} /></View>;
|
||||
return (
|
||||
<AnalyticsLocationProvider value={analyticsLocations}>
|
||||
<View style={styles.container}>
|
||||
{items6}
|
||||
</View>
|
||||
</AnalyticsLocationProvider>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun110382() { // fn#110382, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14797:1241, offset: 0x02377b2b, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
}
|
||||
|
||||
function GuildPowerupsModalHeaderTitle() { // fn#110383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14797:1523, owner: GuildPowerupsModal.headerTitle, offset: 0x02377b50, size: 98 bytes, params: 1, frame: 18
|
||||
const GenericHeaderTitle = (require(9603) /* metro dependency 9603: HeaderShared */).GenericHeaderTitle;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<GenericHeaderTitle
|
||||
title={intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).hjvcLO)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun110384(a0) { // fn#110384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14797:1981, offset: 0x02377bb2, size: 171 bytes, params: 2, frame: 17
|
||||
const type = a0.type;
|
||||
const value = environment.__proto__;
|
||||
const LEVEL = GuildPowerupType.LEVEL;
|
||||
if (LEVEL === type) {
|
||||
return ((Component) => <Component guildId={guildId} listings={a0.listings} key={a0.type} />)(importDefault(14629) /* metro dependency 14629: GuildPowerupsLevelsSection */);
|
||||
}
|
||||
const PERK = GuildPowerupType.PERK;
|
||||
if (PERK === type) {
|
||||
return ((Component) => <Component guildId={guildId} listings={a0.listings} key={a0.type} />)(importDefault(14661) /* metro dependency 14661: GuildPowerupsPerksSection */);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,180 @@
|
||||
/* Metro module 14670; source: modules/premium/powerups/native/GuildPowerupsMultiPerkBottomSheet.tsx; dependencies: [27, 33, 4501, 697, 674, 3866, 4048, 12310, 14635, 14636, 14633, 14640, 14649, 14650, 14653, 14643, 1305, 1244, 4573, 14644, 4578, 2256, 1585, 14665, 6275, 6277, 14630, 14659, 2] */
|
||||
function _fun110747(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14867:6, offset: 0x023853cf, size: 334 bytes, params: 8, frame: 22
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
let createStyles = value.createStyles;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [_fun110750]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object5.gap = PX_24;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.marginHorizontal = PX_16;
|
||||
object4.cardsContainer = object5;
|
||||
const object6 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.marginHorizontal = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.marginBottom = PX_16;
|
||||
object4.disabledReasonContainer = object6;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsMultiPerkBottomSheet.tsx');
|
||||
exports.default = GuildPowerupsMultiPerkBottomSheet;
|
||||
}
|
||||
|
||||
function GuildPowerupsMultiPerkCard_110748({guildId, powerup, isNewPerk, forceStaticImage}) { // fn#110748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14867:1254, offset: 0x0238551d, size: 1104 bytes, params: 2, frame: 38
|
||||
var r9;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var string;
|
||||
var Button;
|
||||
var value;
|
||||
const themesModule = require(3866) /* metro dependency 3866: themes */;
|
||||
const styles = useStyles(themesModule.isThemeLight((importDefault(4048) /* metro dependency 4048: useTheme */)()));
|
||||
const value3 = (importDefault(12310) /* metro dependency 12310: useHasAllocateBoostPermission */)(guildId);
|
||||
const value4 = (importDefault(14635) /* metro dependency 14635: usePowerupActiveStatus */)(guildId, powerup);
|
||||
const value5 = (require(14636) /* metro dependency 14636: useCalculatePowerupCardStatus */).useCalculatePowerupCardStatus(powerup,
|
||||
value4, false);
|
||||
const isPowerupActiveStatusActive2 = (require(14635) /* metro dependency 14635: usePowerupActiveStatus */).isPowerupActiveStatusActive(value4);
|
||||
const textColor = (importDefault(14633) /* metro dependency 14633: useGuildPowerupColorConfig */)(isPowerupActiveStatusActive2).textColor;
|
||||
const value6 = (importDefault(14640) /* metro dependency 14640: useGetGuildPowerupBannerImage */)(powerup, true,
|
||||
forceStaticImage);
|
||||
const disabled = (importDefault(14649) /* metro dependency 14649: useCanGuildPowerupBeToggled */)(guildId, powerup,
|
||||
isPowerupActiveStatusActive2).disabled;
|
||||
const value7 = (importDefault(14650) /* metro dependency 14650: useGuildPowerupOnActivate */)(guildId, powerup);
|
||||
const env0_1 = value7.onActivate;
|
||||
const isLoading = value7.isLoading;
|
||||
const env0_2 = (importDefault(14653) /* metro dependency 14653: useGuildPowerupOnShowDeactivate */)(guildId,
|
||||
powerup);
|
||||
const items2 = [styles.container];
|
||||
items2[1] = disabled && value3 && styles.disabled;
|
||||
const view = <View style={[styles.imageContainer, value5?.type === 'active' && styles.imageContainerActive,
|
||||
value5?.type === 'expiring' && styles.imageContainerExpiring,
|
||||
value5?.type === 'removing' && styles.imageContainerRemoving]}>{((Component) => <Component imageUrl={value6 ?? ''} isAnimated={!forceStaticImage} style={styles.image} />)(importDefault(14643) /* metro dependency 14643: GuildPowerupsImage */)}{isNewPerk && ((TextBadge) => <TextBadge text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.y2b7CA)} style={styles.badge} />)((require(1305) /* metro dependency 1305: native */).TextBadge)}</View>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const view2 = <View style={styles.titleContainer}><Text variant="heading-md/semibold" color={textColor}>{powerup.title}</Text>{value5 != null ? ((GuildPowerupCardFooterStatus) => <GuildPowerupCardFooterStatus status={value5} />)((require(14644) /* metro dependency 14644: GuildPowerupsCardFooter */).GuildPowerupCardFooterStatus) : ((GuildPowerupCardFooterCost) => <GuildPowerupCardFooterCost cost={powerup.cost} />)((require(14644) /* metro dependency 14644: GuildPowerupsCardFooter */).GuildPowerupCardFooterCost)}</View>;
|
||||
if (value3) {
|
||||
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
var buttonProps = {disabled: disabled, loading: isLoading,
|
||||
variant: isPowerupActiveStatusActive2 ? 'secondary' : 'primary'};
|
||||
string = intl.string;
|
||||
value = importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */;
|
||||
buttonProps.text = Reflect.apply(string, intl, [isPowerupActiveStatusActive2 ? value.TZsu1U : value.gSxlHf]);
|
||||
buttonProps.onPress = onPress_110749;
|
||||
value = <Button {...buttonProps} />;
|
||||
r9 = value;
|
||||
} else {
|
||||
r9 = value3;
|
||||
}
|
||||
return (
|
||||
<View style={items2}>
|
||||
{view}
|
||||
<View style={styles.bodyContainer}>
|
||||
{view2}
|
||||
{r9}
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun110750(a0) { // fn#110750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14867:162, offset: 0x02385991, size: 604 bytes, params: 2, frame: 18
|
||||
const object2 = {};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.container = {gap: PX_8};
|
||||
const object8 = {};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object8.gap = PX_24;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object8.marginHorizontal = PX_16;
|
||||
object2.cardsContainer = object8;
|
||||
object2.titleContainer = {'flexDirection': 'column', 'gap': 4};
|
||||
object2.bodyContainer = {'justifyContent': 'space-between', 'alignItems': 'center', 'flexDirection': 'row'};
|
||||
const object10 = {};
|
||||
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object10.borderWidth = 1;
|
||||
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
object10.borderColor = BACKGROUND_MOD_MUTED;
|
||||
object10.borderStyle = 'solid';
|
||||
object10.backgroundColor = (importDefault(674) /* metro dependency 674 */)(a0 ? '#000000' : '#ffffff').alpha(0.04).hex();
|
||||
object2.imageContainer = object10;
|
||||
const object11 = {};
|
||||
let value = importDefault(674) /* metro dependency 674 */;
|
||||
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
|
||||
value = value(GREEN_360);
|
||||
value = value.alpha(0.35);
|
||||
object11.borderColor = value.hex();
|
||||
object2.imageContainerActive = object11;
|
||||
const object12 = {};
|
||||
value = importDefault(674) /* metro dependency 674 */;
|
||||
let YELLOW_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300;
|
||||
value = value(YELLOW_300);
|
||||
value = value.alpha(0.35);
|
||||
object12.borderColor = value.hex();
|
||||
object2.imageContainerExpiring = object12;
|
||||
const object13 = {};
|
||||
value = importDefault(674) /* metro dependency 674 */;
|
||||
YELLOW_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300;
|
||||
value = value(YELLOW_300);
|
||||
value = value.alpha(0.35);
|
||||
object13.borderColor = value.hex();
|
||||
object2.imageContainerRemoving = object13;
|
||||
object2.image = {'width': '75%', 'height': 180, 'resizeMode': 'contain'};
|
||||
object2.disabled = {opacity: 0.5};
|
||||
const object14 = {position: 'absolute'};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object14.top = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object14.right = PX_8;
|
||||
object2.badge = object14;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function GuildPowerupsMultiPerkBottomSheet({guildId, listing}) { // fn#110751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14867:2621, offset: 0x02385bed, size: 400 bytes, params: 2, frame: 31
|
||||
var r0;
|
||||
var BottomSheet;
|
||||
var BottomSheetScrollView;
|
||||
var items2;
|
||||
const styles = useStyles();
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const value2 = (importDefault(14665) /* metro dependency 14665: usePowerupGroupConfig */)(guildId, listing);
|
||||
if (value2 == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
|
||||
var bottomSheetScrollViewProps = {contentContainerStyle: {paddingBottom: bottom}};
|
||||
items2 = [((Component) => <Component title={value2.title} description={value2.description} />)(importDefault(14630) /* metro dependency 14630: GuildPowerupsSectionHeader */)];
|
||||
items2[1] = value2.disabledReason != null && <View style={styles.disabledReasonContainer}>{((Component) => <Component text={value2.disabledReason} />)(importDefault(14659) /* metro dependency 14659: GuildPowerupsDisabledWarning */)}</View>;
|
||||
items2[2] = <View style={styles.cardsContainer}>{listing.powerups.map(_fun110752)}</View>;
|
||||
r0 = <BottomSheet scrollable startExpanded><BottomSheetScrollView {...bottomSheetScrollViewProps}>{items2}</BottomSheetScrollView></BottomSheet>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function GuildPowerupsMultiPerkCard_110748OnPress() { // fn#110749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14867:2483, owner: GuildPowerupsMultiPerkCard_110748.onPress, offset: 0x0238596d, size: 36 bytes, params: 1, frame: 10
|
||||
if (env0_0) {
|
||||
env0_2();
|
||||
} else {
|
||||
onActivate();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun110752(a0) { // fn#110752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14867:3116, offset: 0x02385d7d, size: 63 bytes, params: 2, frame: 16
|
||||
return (
|
||||
<GuildPowerupsMultiPerkCard_110748
|
||||
guildId={guildId}
|
||||
powerup={a0}
|
||||
forceStaticImage={env0_1.forceStaticImages}
|
||||
key={a0.skuId}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/* Metro module 14664; source: modules/premium/powerups/native/GuildPowerupsMultiPerkCard.tsx; dependencies: [31, 4502, 33, 14665, 566, 14668, 14669, 14663, 2] */
|
||||
function _fun110728(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14861:6, offset: 0x02384a9a, size: 158 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsMultiPerkCard.tsx');
|
||||
exports.default = GuildPowerupsMultiPerkCard;
|
||||
}
|
||||
|
||||
function GuildPowerupsMultiPerkCard({guildId, listing}) { // fn#110729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14861:236, offset: 0x02384b38, size: 321 bytes, params: 2, frame: 21
|
||||
var r0;
|
||||
var title;
|
||||
var description;
|
||||
var cost;
|
||||
var image;
|
||||
var value;
|
||||
const value2 = (importDefault(14665) /* metro dependency 14665: usePowerupGroupConfig */)(guildId, listing);
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const value3 = (importDefault(14668) /* metro dependency 14668: useMultiPerkStatusValues */)({guildId: guildId,
|
||||
powerups: listing.powerups});
|
||||
if (value3 == null) {
|
||||
r0 = null;
|
||||
} else if (value2 == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
value = importDefault(14663) /* metro dependency 14663: GuildPowerupsPerkCard */;
|
||||
title = value2.title;
|
||||
description = value2.description;
|
||||
cost = value3.cost;
|
||||
image = value2.image;
|
||||
value = ((Component) => <Component title={title} description={description} cost={cost} imageUrl={useReducedMotion ? image.staticUrl : image.animatedUrl} status={value3.status} costDecorator={value3.costDecorator} onPress={env0_3.useCallback(_fun110731,
|
||||
|
||||
[guildId, listing])} badge={value2.badge} />)(value);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun110731() { // fn#110731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14861:433, offset: 0x02384c79, size: 54 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
(importDefault(14669) /* metro dependency 14669: openGuildPowerupsMultiPerkBottomSheet */)({guildId: guildId,
|
||||
listing: listing});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
/* Metro module 14622; source: modules/premium/powerups/native/GuildPowerupsNotificationContainer.tsx; dependencies: [27, 33, 4501, 697, 4573, 14623, 14624, 1244, 2256, 14627, 2] */
|
||||
function _fun110548(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14819:6, offset: 0x0237ccc3, size: 369 bytes, params: 8, frame: 23
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object5.gap = PX_12;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.margin = PX_16;
|
||||
object4.container = object5;
|
||||
const object6 = {};
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.padding = PX_12;
|
||||
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object6.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object6.borderWidth = 1;
|
||||
object6.borderStyle = 'solid';
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object6.borderColor = BORDER_SUBTLE;
|
||||
object4.staffContainer = object6;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsNotificationContainer.tsx');
|
||||
exports.default = GuildPowerupsNotificationContainer;
|
||||
}
|
||||
|
||||
function Tier3OverrideNotice({text}) { // fn#110549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14819:430, offset: 0x0237ce34, size: 104 bytes, params: 2, frame: 18
|
||||
const styles = useStyles();
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.staffContainer}>
|
||||
<Text variant="text-sm/medium">
|
||||
{text}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildPowerupsNotificationContainer({guildId}) { // fn#110550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14819:694, offset: 0x0237ce9c, size: 338 bytes, params: 2, frame: 26
|
||||
var r6;
|
||||
var r0;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var items2;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(14623) /* metro dependency 14623: useGuildPowerupTier3OverrideConfig */)(guildId);
|
||||
const value3 = (importDefault(14624) /* metro dependency 14624: useGuildPowerupExpiringNotificationsConfig */)(guildId);
|
||||
let shouldShow = value2.shouldShow;
|
||||
if (shouldShow) {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
items2 = [<Text variant="eyebrow" color="text-subtle">{intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['3FRirU'])}</Text>];
|
||||
shouldShow = value2.shouldShow;
|
||||
r6 = shouldShow && <Tier3OverrideNotice text={value2.text} />;
|
||||
items2[1] = r6;
|
||||
shouldShow = value3.shouldShow;
|
||||
if (shouldShow) {
|
||||
value = importDefault(14627) /* metro dependency 14627: GuildPowerupsWarning */;
|
||||
value = ((Component) => <Component guildId={guildId} powerupNames={value3.expiringPowerupNames} warnings={value3.warnings} />)(value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = shouldShow;
|
||||
}
|
||||
items2[2] = r6;
|
||||
value = <View {...viewBindingProps}>{items2}</View>;
|
||||
r0 = value;
|
||||
} else {
|
||||
shouldShow = value3.shouldShow;
|
||||
if (shouldShow) {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
items2 = [<Text variant="eyebrow" color="text-subtle">{intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['3FRirU'])}</Text>];
|
||||
shouldShow = value2.shouldShow;
|
||||
r6 = shouldShow && <Tier3OverrideNotice text={value2.text} />;
|
||||
items2[1] = r6;
|
||||
shouldShow = value3.shouldShow;
|
||||
if (shouldShow) {
|
||||
value = importDefault(14627) /* metro dependency 14627: GuildPowerupsWarning */;
|
||||
value = ((Component) => <Component guildId={guildId} powerupNames={value3.expiringPowerupNames} warnings={value3.warnings} />)(value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = shouldShow;
|
||||
}
|
||||
items2[2] = r6;
|
||||
value = <View {...viewBindingProps}>{items2}</View>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/* Metro module 14663; source: modules/premium/powerups/native/GuildPowerupsPerkCard.tsx; dependencies: [31, 27, 33, 4501, 697, 4048, 4002, 14660, 14643, 4589, 4573, 14644, 1305, 1244, 2] */
|
||||
function _fun110726(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14860:6, offset: 0x02384581, size: 433 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.container = {marginHorizontal: PX_16};
|
||||
object2.card = {'padding': 0, 'overflow': 'hidden'};
|
||||
const object4 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.gap = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.padding = PX_16;
|
||||
object2.contentContainer = object4;
|
||||
object2.imageContainer = {'width': '100%', 'height': 160};
|
||||
object2.gradient = {'position': 'absolute', 'left': 0, 'right': 0, 'top': 0, 'height': '100%'};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.headerContainer = {gap: PX_4};
|
||||
const object6 = {position: 'absolute'};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.top = PX_12;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.right = PX_12;
|
||||
object2.badge = object6;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsPerkCard.tsx');
|
||||
exports.default = GuildPowerupsPerkCard;
|
||||
}
|
||||
|
||||
function GuildPowerupsPerkCard(a0) { // fn#110727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14860:655, offset: 0x02384732, size: 872 bytes, params: 2, frame: 33
|
||||
const TextBadge = (require(1305) /* metro dependency 1305: native */).TextBadge;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const title = a0.title;
|
||||
const description = a0.description;
|
||||
const imageUrl = a0.imageUrl;
|
||||
let isImageAnimated = a0.isImageAnimated;
|
||||
isImageAnimated = isImageAnimated === undefined || isImageAnimated;
|
||||
const riveComponent = a0.riveComponent;
|
||||
const style = a0.style;
|
||||
const onPress = a0.onPress;
|
||||
const status = a0.status;
|
||||
const badge = a0.badge;
|
||||
const object2 = {'title': 0, 'description': 0, 'imageUrl': 0, 'isImageAnimated': 0, 'riveComponent': 0, 'style': 0,
|
||||
'onPress': 0, 'status': 0, 'badge': 0};
|
||||
silentSetPrototypeOf(object2, null, undefined);
|
||||
const value = copyDataProperties({}, a0, object2, undefined);
|
||||
const styles = useStyles();
|
||||
const value3 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
|
||||
const sharedModule = require(4002) /* metro dependency 4002: shared */;
|
||||
const r12 = sharedModule.isThemeDark(value3) ? ['#0f101100', '#0f101166'] : ['#0f101100', '#0f10111a'];
|
||||
const GuildPowerupsCard = importDefault(14660) /* metro dependency 14660: GuildPowerupsCard */;
|
||||
const items3 = [styles.container, style];
|
||||
const items5 = [<View style={styles.imageContainer}>{riveComponent ?? ((Component) => <Component imageUrl={imageUrl ?? ''} isAnimated={isImageAnimated} />)(importDefault(14643) /* metro dependency 14643: GuildPowerupsImage */)}{((Component) => <Component colors={r12} style={styles.gradient} />)(importDefault(4589) /* metro dependency 4589 */)}</View>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const view = <View style={styles.headerContainer}><Text variant="heading-md/bold">{title}</Text><Text variant="text-sm/medium">{description}</Text></View>;
|
||||
const GuildPowerupsCardFooter = (require(14644) /* metro dependency 14644: GuildPowerupsCardFooter */).GuildPowerupsCardFooter;
|
||||
items5[1] = <View style={styles.contentContainer}>{view}<GuildPowerupsCardFooter {...value} {...{['status']: status}} /></View>;
|
||||
items5[2] = badge === 'new' && <TextBadge text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.y2b7CA)} style={styles.badge} />;
|
||||
items5[3] = badge === 'beta' && <TextBadge text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oW0eUd)} color={(require(1305) /* metro dependency 1305: native */).BadgeColors.BRAND} style={styles.badge} />;
|
||||
return (
|
||||
<GuildPowerupsCard
|
||||
containerStyle={items3}
|
||||
style={styles.card}
|
||||
status={status}
|
||||
onPress={onPress}
|
||||
>
|
||||
{items5}
|
||||
</GuildPowerupsCard>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/* Metro module 14661; source: modules/premium/powerups/native/GuildPowerupsPerksSection.tsx; dependencies: [27, 33, 4501, 697, 14630, 1244, 2256, 14662, 14664, 14671, 2] */
|
||||
function _fun110721(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14858:6, offset: 0x02384127, size: 231 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.Fragment;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [{container: {flexDirection: 'column', gap: PX_16}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsPerksSection.tsx');
|
||||
exports.default = GuildPowerupPerksSection;
|
||||
}
|
||||
|
||||
function GuildPowerupPerksSection({guildId, listings}) { // fn#110722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14858:342, offset: 0x0238420e, size: 241 bytes, params: 2, frame: 28
|
||||
const styles = useStyles();
|
||||
const jsxRuntimeEnv0_5Binding = jsxRuntimeEnv0_5;
|
||||
const GuildPowerupsSectionHeader = importDefault(14630) /* metro dependency 14630: GuildPowerupsSectionHeader */;
|
||||
const object = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const TV3Vm8 = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).TV3Vm8;
|
||||
object.title = Reflect.apply(string, intl, [TV3Vm8]);
|
||||
string = intl.string;
|
||||
const STx9hp = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).STx9hp;
|
||||
object.description = Reflect.apply(string, intl, [STx9hp]);
|
||||
return (
|
||||
<>
|
||||
<GuildPowerupsSectionHeader {...object} />
|
||||
<View style={styles.container}>
|
||||
{listings.map(_fun110723)}
|
||||
</View>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun110723(a0, a1) { // fn#110723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14858:574, offset: 0x023842ff, size: 295 bytes, params: 3, frame: 20
|
||||
var value;
|
||||
var object;
|
||||
var powerup;
|
||||
const type = a0.type;
|
||||
if (type === 'singlePerk') {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(14662) /* metro dependency 14662: GuildPowerupsSinglePerkCard */;
|
||||
var valueProps = {guildId: guildId};
|
||||
powerup = a0.powerup;
|
||||
valueProps.powerup = powerup;
|
||||
valueProps.badge = a0.badge;
|
||||
powerup = a0.powerup;
|
||||
return ((Component) => <Component {...valueProps} key={powerup.skuId} />)(value);
|
||||
}
|
||||
if (type === 'multiPerk') {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(14664) /* metro dependency 14664: GuildPowerupsMultiPerkCard */;
|
||||
return ((Component) => <Component guildId={guildId} listing={a0} key={'' + a0.group + '-' + a1} />)(value);
|
||||
}
|
||||
if (type === 'gameServer') {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(14671) /* metro dependency 14671: GuildPowerupsGameServerCard */;
|
||||
return ((Component) => <Component guildId={guildId} key={'game-server-' + a1} />)(value);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,172 @@
|
||||
/* Metro module 14689; source: modules/premium/powerups/native/GuildPowerupsProgressBar.tsx; dependencies: [31, 27, 14690, 1867, 33, 697, 4017, 4589, 4501, 632, 14691, 14692, 4504, 14599, 6789, 1244, 2256, 8554, 4573, 6818, 2] */
|
||||
function _fun110832(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14886:6, offset: 0x02388c3a, size: 636 bytes, params: 8, frame: 26
|
||||
var object6;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const StyleSheet = value.StyleSheet;
|
||||
const env0_4 = value.View;
|
||||
const guildBoostingProgressBarPersistedStore = importDefault(14690) /* metro dependency 14690: GuildBoostingProgressBarPersistedStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
value = 2 * PX_4;
|
||||
const env0_9 = ['rgba(255, 115, 250, 0.4)', 'rgba(255, 115, 250, 0.1)'];
|
||||
const env0_10 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).createAnimatedComponent(importDefault(4589) /* metro dependency 4589 */);
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object6 = {};
|
||||
const object7 = {};
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object7.paddingVertical = PX_4;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object7.paddingHorizontal = PX_16;
|
||||
object6.container = object7;
|
||||
const object8 = {height: 30};
|
||||
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
|
||||
object8.backgroundColor = BACKGROUND_MOD_NORMAL;
|
||||
object8.justifyContent = 'center';
|
||||
object6.track = object8;
|
||||
const object9 = {};
|
||||
copyDataProperties(object9, StyleSheet.absoluteFillObject, undefined);
|
||||
object9['padding'] = 2;
|
||||
object6.fillContainer = object9;
|
||||
const object10 = {'height': '100%', 'minWidth': 26, 'borderRadius': null, 'borderWidth': 1,
|
||||
'borderColor': 'rgba(255, 115, 250, 0.2)', 'overflow': 'hidden'};
|
||||
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object6.fill = object10;
|
||||
object6.fillShadow = {'shadowColor': 'rgba(0, 0, 0, 0.14)', 'shadowOffset': null, 'shadowOpacity': 1,
|
||||
'shadowRadius': 4, 'elevation': 2, shadowOffset: {'width': 0, 'height': 1}};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.textContainer = {'flexDirection': 'row', 'justifyContent': 'space-between', 'alignItems': 'center',
|
||||
paddingHorizontal: PX_12};
|
||||
object6.rightContent = {'flexDirection': 'row', 'alignItems': 'center'};
|
||||
const env0_11 = Reflect.apply(createStyles, createStylesModule, [object6]);
|
||||
object6 = {code: 'function GuildPowerupsProgressBarTsx1(){const{animatedFillPercent,animatedFillOpacity}=this.__closure;return{width:animatedFillPercent.get()+"%",opacity:animatedFillOpacity.get()};}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsProgressBar.tsx');
|
||||
exports.default = GuildPowerupsProgressBar;
|
||||
exports.BOOST_PROGRESS_BAR_HEIGHT = value + 30;
|
||||
}
|
||||
|
||||
function GuildPowerupsProgressBar({guildId}) { // fn#110833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14886:1340, offset: 0x02388eb6, size: 1296 bytes, params: 2, frame: 32
|
||||
var object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let env0_3 = undefined;
|
||||
const styles = useStyles();
|
||||
const value3 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([GuildStore],
|
||||
function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
}, [guildId]);
|
||||
const value4 = (importDefault(14691) /* metro dependency 14691: useTotalPossibleBoostCount */)(value3);
|
||||
const value5 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([GuildBoostingProgressBarPersistedStore],
|
||||
_fun110835, [guildId]);
|
||||
let r11 = value3?.premiumSubscriberCount ?? 0;
|
||||
let binding = env0_3;
|
||||
binding.useEffect(_fun110836, [guildId, value5, r11]);
|
||||
const r1 = value4 > 0 ? global.Math.min(value5 / value4 * 100, 100) : 0;
|
||||
env0_3 = r1;
|
||||
const value8 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(r1);
|
||||
const value10 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(r1 > 0 ? 1 : 0);
|
||||
binding = env0_3;
|
||||
binding.useEffect(_fun110837, [value8, value10, r1]);
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = GuildPowerupsProgressBarV;
|
||||
closure.__closure = {animatedFillPercent: value8, animatedFillOpacity: value10};
|
||||
closure.__workletHash = 6718232104000;
|
||||
closure.__initData = env0_12;
|
||||
const value11 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const value12 = binding.useCallback(_fun110840, [guildId]);
|
||||
const r18 = value5 >= value4 ? intl.formatToPlainString((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['Ehpq+7'],
|
||||
{appliedBoostCount: value5}) : intl.formatToPlainString((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['/rbPDs'],
|
||||
{appliedBoostCount: value5, maxBoostCount: value4});
|
||||
const PressableScale = (require(8554) /* metro dependency 8554: native */).PressableScale;
|
||||
object2 = {accessibilityRole: 'button'};
|
||||
const string = intl.string;
|
||||
const NI6Ihe = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).NI6Ihe;
|
||||
object2.accessibilityLabel = Reflect.apply(string, intl, [NI6Ihe]);
|
||||
object2.onPress = value12;
|
||||
object2.style = styles.container;
|
||||
const view = <View style={styles.fillContainer}>{((Component) => <Component style={[styles.fill, styles.fillShadow,
|
||||
value11]} colors={env0_9} useAngle angle={270} />)(env0_10)}</View>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
r11 = r11 >= value4 ? '' + intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).NI6Ihe) + ' 🎉' : intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).NI6Ihe);
|
||||
const text = <Text variant="text-xs/semibold" color="text-default">{r11}</Text>;
|
||||
const text2 = <Text variant="text-xs/semibold" color="text-default" style={{opacity: 0.7}}>{r18}</Text>;
|
||||
const ChevronSmallRightIcon = (require(6818) /* metro dependency 6818: ChevronSmallRightIcon */).ChevronSmallRightIcon;
|
||||
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
|
||||
return (
|
||||
<PressableScale {...object2}>
|
||||
<View style={styles.track}>
|
||||
{view}
|
||||
<View style={styles.textContainer}>
|
||||
{text}
|
||||
<View style={styles.rightContent}>
|
||||
{text2}
|
||||
<ChevronSmallRightIcon size="sm" color={TEXT_DEFAULT} />
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
</PressableScale>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun110835() { // fn#110835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14886:1505, offset: 0x023893c6, size: 43 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return GuildBoostingProgressBarPersistedStore.getCountForGuild(guildId) ?? 0;
|
||||
}
|
||||
|
||||
function _fun110836() { // fn#110836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14886:1635, offset: 0x023893f1, size: 64 bytes, params: 1, frame: 13
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (env0_1 !== env0_2) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(14692) /* metro dependency 14692: GuildBoostingProgressBarActionCreators */;
|
||||
moduleValue.updateGuildPremiumSubscriptionCount(guildId, env0_2);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun110837() { // fn#110837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14886:1817, offset: 0x02389431, size: 136 bytes, params: 1, frame: 22
|
||||
let binding = env0_4;
|
||||
let set = binding.set;
|
||||
const timingModule = require(4504) /* metro dependency 4504: timing */;
|
||||
let withTiming = timingModule.withTiming;
|
||||
Reflect.apply(set, binding, [Reflect.apply(withTiming, timingModule, [env0_3, {duration: 500}])]);
|
||||
binding = env0_5;
|
||||
set = binding.set;
|
||||
const moduleValue2 = timingModule;
|
||||
withTiming = moduleValue2.withTiming;
|
||||
const value = 0;
|
||||
Reflect.apply(set, binding, [Reflect.apply(withTiming, moduleValue2, [env0_3 > value ? 1 : value,
|
||||
{duration: 500}])]);
|
||||
return _fun110838;
|
||||
}
|
||||
|
||||
function GuildPowerupsProgressBarV() { // fn#110839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14886:2026, owner: GuildPowerupsProgressBar.v, offset: 0x023894fe, size: 68 bytes, params: 1, frame: 15
|
||||
const object2 = {};
|
||||
object2.width = '' + env0_4.get() + '%';
|
||||
object2.opacity = env0_5.get();
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun110840() { // fn#110840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14886:2192, offset: 0x02389542, size: 68 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(14599) /* metro dependency 14599: openGuildPowerupsModal */;
|
||||
const object2 = {};
|
||||
object2.guildId = guildId;
|
||||
const GUILD_BOOSTING_SIDEBAR_DISPLAY = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).GUILD_BOOSTING_SIDEBAR_DISPLAY;
|
||||
object2.analyticsLocation = GUILD_BOOSTING_SIDEBAR_DISPLAY;
|
||||
value(object2);
|
||||
}
|
||||
|
||||
function _fun110838() { // fn#110838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14886:1918, offset: 0x023894b9, size: 69 bytes, params: 1, frame: 16
|
||||
const value = environment.__proto__.__proto__;
|
||||
(require(4017) /* metro dependency 4017: ReanimatedRexport */).cancelAnimation(env1_4);
|
||||
(require(4017) /* metro dependency 4017: ReanimatedRexport */).cancelAnimation(env1_5);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
/* Metro module 14673; source: modules/premium/powerups/native/GuildPowerupsRecentActivitySection.tsx; dependencies: [27, 4502, 33, 4501, 697, 14674, 3826, 4788, 566, 8206, 7958, 14677, 12320, 1305, 4573, 14679, 14675, 1244, 2] */
|
||||
function _fun110761(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14870:6, offset: 0x02386227, size: 399 bytes, params: 8, frame: 23
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.marginTop = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.paddingHorizontal = PX_16;
|
||||
object4.sectionContainer = object5;
|
||||
const object6 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.gap = PX_12;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.marginTop = PX_16;
|
||||
object4.boostContainer = object6;
|
||||
object4.boostRowContainer = {'flexDirection': 'row', 'alignItems': 'center', 'gap': 8};
|
||||
object4.boostMessage = {'flex': 1, 'flexDirection': 'row', 'alignItems': 'center'};
|
||||
object4.username = {'maxWidth': 170, 'flexShrink': 1};
|
||||
object4.messageText = {flexShrink: 0};
|
||||
object4.timestamp = {flexShrink: 0};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsRecentActivitySection.tsx');
|
||||
exports.default = GuildPowerupsRecentActivitySection;
|
||||
}
|
||||
|
||||
function GuildPowerupsRecentActivityRow({row, isExpiringBoostsEnabled}) { // fn#110762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14870:549, offset: 0x023863b6, size: 939 bytes, params: 2, frame: 34
|
||||
var r8;
|
||||
var r4;
|
||||
var moduleValue3;
|
||||
var calendarFormat;
|
||||
var Date;
|
||||
var value5;
|
||||
var date;
|
||||
var object;
|
||||
const boost = row.boost;
|
||||
const phase = row.phase;
|
||||
const sortKey = row.sortKey;
|
||||
const styles = useStyles();
|
||||
const {username, roleColor,
|
||||
roleColorStrings} = (require(14674) /* metro dependency 14674: useMaybeGetSortedBoosts */).useGetBoostUserConfig(boost);
|
||||
if (isExpiringBoostsEnabled) {
|
||||
moduleValue3 = require(3826) /* metro dependency 3826: DateUtils */;
|
||||
calendarFormat = moduleValue3.calendarFormat;
|
||||
Date = global.Date;
|
||||
value5 = Object.create(Date.prototype, {constructor: {value: Date}});
|
||||
date = new Date(sortKey);
|
||||
r8 = Reflect.apply(calendarFormat, moduleValue3, [date instanceof Object ? date : value5]);
|
||||
} else {
|
||||
r8 = (require(4788) /* metro dependency 4788: NotificationCenterUtils */).getRelativeTimestamp(sortKey, true);
|
||||
}
|
||||
const roleStyle = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.roleStyle;
|
||||
});
|
||||
const r21 = roleStyle !== 'username' ? {} : roleColor != null ? {color: roleColor} : {};
|
||||
const value8 = (require(8206) /* metro dependency 8206: EnhancedRoleColorUtils */).useProcessColorStringsArray(roleColorStrings);
|
||||
const enhancedRoleColorUtilsModule = require(8206) /* metro dependency 8206: EnhancedRoleColorUtils */;
|
||||
const useIsRoleStyleAndRoleColorsEligibleForERC = enhancedRoleColorUtilsModule.useIsRoleStyleAndRoleColorsEligibleForERC;
|
||||
const guildId = boost.guildId;
|
||||
const userId = boost.userId;
|
||||
const value9 = Reflect.apply(useIsRoleStyleAndRoleColorsEligibleForERC, enhancedRoleColorUtilsModule, [guildId,
|
||||
userId, roleStyle, value8]);
|
||||
const value10 = phase === 'gave';
|
||||
const r10 = value10 ? (require(7958) /* metro dependency 7958: BoostGemIcon */).BoostGemIcon : phase === 'expiring' ? (require(14677) /* metro dependency 14677: BoostTier1Icon */).BoostTier1Icon : (require(12320) /* metro dependency 12320: BoostGemSlashIcon */).BoostGemSlashIcon;
|
||||
if (value10) {
|
||||
object = {};
|
||||
object.color = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GUILD_BOOSTING_PINK;
|
||||
object.size = 'sm';
|
||||
r4 = object;
|
||||
} else {
|
||||
r4 = {size: 'sm'};
|
||||
}
|
||||
const items3 = [((Component) => <Component {...r4} />)(r10)];
|
||||
const items2 = [roleStyle === 'dot' && roleColor != null && ((RoleDot) => <RoleDot size="small" color={roleColor} colors={roleColorStrings} />)((require(1305) /* metro dependency 1305: native */).RoleDot)];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const username2 = styles.username;
|
||||
items2[1] = <Text variant="text-md/medium" color="interactive-text-active" lineClamp={1} style={[username2,
|
||||
r21]} gradientColors={value9 ? value8 : undefined}>{username}</Text>;
|
||||
items2[2] = <Text variant="text-md/medium" color="interactive-text-active">{' '}</Text>;
|
||||
items2[3] = <Text variant="text-md/medium" lineClamp={1} style={styles.messageText}>{(importDefault(14679) /* metro dependency 14679: getBoostRowMessageText */)(row)}</Text>;
|
||||
items3[1] = <View style={styles.boostMessage}>{items2}</View>;
|
||||
items3[2] = <Text variant="text-xs/semibold" style={styles.timestamp}>{r8}</Text>;
|
||||
return (
|
||||
<View style={styles.boostRowContainer}>
|
||||
{items3}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildPowerupsRecentActivitySection({guildId}) { // fn#110764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14870:1908, offset: 0x02386761, size: 296 bytes, params: 2, frame: 26
|
||||
var r0;
|
||||
var Text;
|
||||
var intl;
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(14674) /* metro dependency 14674: useMaybeGetSortedBoosts */)(guildId, 10);
|
||||
const env0_0 = (require(14675) /* metro dependency 14675: ExpiringBoostsExperiment */).useExpiringBoostsEnabled('GuildPowerupsRecentActivity');
|
||||
if (value2.length === 0) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.sectionContainer};
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r0 = <View {...viewBindingProps}><Text variant="heading-lg/semibold" color="text-subtle">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.yM9Krm)}</Text><View style={styles.boostContainer}>{value2.map(_fun110765)}</View></View>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun110765(a0) { // fn#110765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14870:2285, offset: 0x02386889, size: 79 bytes, params: 2, frame: 16
|
||||
const value = environment.__proto__;
|
||||
return (
|
||||
<GuildPowerupsRecentActivityRow
|
||||
row={a0}
|
||||
isExpiringBoostsEnabled={env0_0}
|
||||
key={'boost-' + a0.boost.id}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/* Metro module 14630; source: modules/premium/powerups/native/GuildPowerupsSectionHeader.tsx; dependencies: [27, 33, 4501, 697, 4573, 2] */
|
||||
function _fun110583(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14827:6, offset: 0x0237e08d, size: 210 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
const env0_5 = Reflect.apply(createStyles, value, [{headerContainer: {padding: PX_16}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsSectionHeader.tsx');
|
||||
exports.default = GuildPowerupsSectionHeader;
|
||||
}
|
||||
|
||||
function GuildPowerupsSectionHeader({title, description}) { // fn#110584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14827:316, offset: 0x0237e15f, size: 159 bytes, params: 2, frame: 21
|
||||
const styles = useStyles();
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.headerContainer}>
|
||||
<Text variant="heading-lg/semibold" accessibilityRole="header">
|
||||
{title}
|
||||
</Text>
|
||||
<Text variant="text-md/normal">
|
||||
{description}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* Metro module 14662; source: modules/premium/powerups/native/GuildPowerupsSinglePerkCard.tsx; dependencies: [31, 33, 14640, 14635, 14636, 14637, 14663, 2] */
|
||||
function _fun110724(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14859:6, offset: 0x02384426, size: 138 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsSinglePerkCard.tsx');
|
||||
exports.default = GuildPowerupsSinglePerkCard;
|
||||
}
|
||||
|
||||
function GuildPowerupsSinglePerkCard({guildId, powerup, badge}) { // fn#110725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14859:225, offset: 0x023844b0, size: 209 bytes, params: 2, frame: 22
|
||||
return ((Component) => <Component title={powerup.title} description={powerup.description} cost={powerup.cost} imageUrl={(importDefault(14640) /* metro dependency 14640: useGetGuildPowerupBannerImage */)(powerup,
|
||||
true) ?? ''} status={(require(14636) /* metro dependency 14636: useCalculatePowerupCardStatus */).useCalculatePowerupCardStatus(powerup,
|
||||
(importDefault(14635) /* metro dependency 14635: usePowerupActiveStatus */)(guildId, powerup),
|
||||
false)} onPress={(importDefault(14637) /* metro dependency 14637: useGuildPowerupOnShowMore */)(guildId,
|
||||
powerup)} badge={badge} />)(importDefault(14663) /* metro dependency 14663: GuildPowerupsPerkCard */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* Metro module 14627; source: modules/premium/powerups/native/GuildPowerupsWarning.tsx; dependencies: [31, 27, 33, 4501, 697, 14628, 7684, 4573, 2] */
|
||||
function _fun110567(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14824:6, offset: 0x0237d6a5, size: 440 bytes, params: 8, frame: 22
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {'flexDirection': 'row', 'alignItems': 'flex-start', 'padding': null, 'backgroundColor': null,
|
||||
'borderWidth': 1};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object4.padding = PX_24;
|
||||
const BACKGROUND_FEEDBACK_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_FEEDBACK_WARNING;
|
||||
object4.backgroundColor = BACKGROUND_FEEDBACK_WARNING;
|
||||
const STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING;
|
||||
object4.borderColor = STATUS_WARNING;
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.gap = PX_8;
|
||||
object4.overflow = 'hidden';
|
||||
object3.container = object4;
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.contentContainer = {'flex': 1, 'gap': null, 'alignItems': 'center', gap: PX_4};
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.warningText = {marginTop: PX_4};
|
||||
object3.text = {textAlign: 'center'};
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsWarning.tsx');
|
||||
exports.default = GuildPowerupsWarning;
|
||||
}
|
||||
|
||||
function GuildPowerupsWarning({guildId, powerupNames, warnings}) { // fn#110568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14824:680, offset: 0x0237d85d, size: 362 bytes, params: 2, frame: 29
|
||||
var r0;
|
||||
var items2;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var text;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const {shouldShow, title,
|
||||
description} = (importDefault(14628) /* metro dependency 14628: useGuildPowerupsWarningConfig */)(guildId,
|
||||
powerupNames);
|
||||
if (shouldShow) {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
var viewBindingProps2 = {style: styles.contentContainer};
|
||||
const CircleErrorIcon = (require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon;
|
||||
value = <CircleErrorIcon color={(importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_WARNING} size="md" />;
|
||||
items2 = [value];
|
||||
text = styles.text;
|
||||
items2[1] = <Text variant="text-md/semibold" color="text-feedback-warning" style={text}>{title}</Text>;
|
||||
text = styles.text;
|
||||
items2[2] = <Text variant="text-sm/medium" style={text}>{description}</Text>;
|
||||
items2[3] = warnings?.map(_fun110569);
|
||||
value = <View {...viewBindingProps}><View {...viewBindingProps2}>{items2}</View></View>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun110569(a0, a1) { // fn#110569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14824:1166, offset: 0x0237d9c7, size: 125 bytes, params: 3, frame: 17
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const stylesBinding = styles;
|
||||
return (
|
||||
<Text
|
||||
variant="text-sm/medium"
|
||||
color="text-feedback-warning"
|
||||
style={[stylesBinding.warningText, stylesBinding.text]}
|
||||
key={'warning-' + a1}
|
||||
>
|
||||
{a0}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,185 @@
|
||||
/* Metro module 15964; source: modules/premium/powerups/native/RoleGradientPickerActionSheet.tsx; dependencies: [57, 31, 27, 15949, 33, 4501, 697, 1941, 1360, 4080, 13189, 6275, 6758, 1244, 4578, 4589, 13797, 5278, 673, 2] */
|
||||
function _fun123431(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16172:6, offset: 0x0258cc87, size: 740 bytes, params: 8, frame: 24
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.Pressable;
|
||||
value = require(15949) /* metro dependency 15949: EnhancedRoleColorConstants */;
|
||||
const env0_7 = value.DEFAULT_GRADIENT_ROLE_COLORS;
|
||||
const env0_8 = value.GRADIENT_PRESETS;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object7 = {'paddingVertical': null, 'paddingHorizontal': null, 'flexGrow': 1, 'justifyContent': 'center',
|
||||
'alignItems': 'center'};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object7.paddingVertical = PX_12;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object7.paddingHorizontal = PX_12;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object7.gap = PX_16;
|
||||
object3.body = object7;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.gradientContainer = {'display': 'flex', 'flexDirection': 'row', 'justifyContent': 'center',
|
||||
'alignItems': 'center', paddingHorizontal: PX_8};
|
||||
const object9 = {'left': null, 'right': null, 'position': 'absolute', 'display': 'flex', 'flexDirection': 'row',
|
||||
'justifyContent': 'space-between'};
|
||||
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object9.left = PX_24;
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object9.right = PX_24;
|
||||
object3.dropperContainer = object9;
|
||||
const object11 = {'borderColor': 'white', 'tintColor': 'white', 'padding': null, 'borderRadius': null,
|
||||
'borderWidth': 1};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object11.padding = PX_8;
|
||||
object11.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object3.dropper = object11;
|
||||
const object12 = {'height': 50, 'width': '100%'};
|
||||
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object3.gradient = object12;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.optionContainer = {'display': 'flex', 'flexDirection': 'row', 'gap': null, 'flexWrap': 'wrap',
|
||||
'alignItems': 'center', 'justifyContent': 'center', gap: PX_8};
|
||||
const object13 = {'width': 80, 'height': 50, 'borderRadius': null, 'overflow': 'hidden', 'padding': 2};
|
||||
object13.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object3.pressable = object13;
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object3.selected = {borderWidth: 2, borderColor: BACKGROUND_BRAND};
|
||||
const object14 = {flex: 1};
|
||||
object14.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object3.option = object14;
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/RoleGradientPickerActionSheet.tsx');
|
||||
exports.default = RoleGradientPickerActionSheet;
|
||||
}
|
||||
|
||||
function RoleGradientPickerActionSheet({colors, onSelect}) { // fn#123432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16172:1354, offset: 0x0258cf6b, size: 957 bytes, params: 2, frame: 32
|
||||
var object2;
|
||||
let env0_3 = undefined;
|
||||
const styles = useStyles();
|
||||
let binding = undefined;
|
||||
const useState = binding.useState;
|
||||
const value3 = env0_3(Reflect.apply(useState, binding,
|
||||
[colors == null ? DEFAULT_GRADIENT_ROLE_COLORS : colors.secondary_color != null ? colors : DEFAULT_GRADIENT_ROLE_COLORS]),
|
||||
2);
|
||||
const property = value3[0];
|
||||
env0_3 = value3[1];
|
||||
const Object = global.Object;
|
||||
const values = Object.values;
|
||||
const enhancedRoleColorUtilsModule = require(1941) /* metro dependency 1941: EnhancedRoleColorUtils */;
|
||||
const value4 = Reflect.apply(values, Object,
|
||||
[enhancedRoleColorUtilsModule.extractColorStringsFromServerColors(property)]);
|
||||
const value5 = value4.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
||||
binding = undefined;
|
||||
const value6 = binding.useCallback(_fun123433, [property, onSelect]);
|
||||
const value7 = binding.useCallback(_fun123434, []);
|
||||
const value8 = binding.useCallback(_fun123435, [property, value7]);
|
||||
const value9 = binding.useCallback(_fun123437, [property, value7]);
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
object2 = {};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const XpWmJz = (require(1244) /* metro dependency 1244: indexNative */).t.XpWmJz;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
object2.header = <BottomSheetTitleHeader title={Reflect.apply(string, intl,
|
||||
[XpWmJz])} trailing={<Button variant="secondary" size="sm" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+'])} onPress={value6} />} />;
|
||||
const value10 = ((Component) => <Component style={styles.gradient} colors={value5} start={{'x': 0,
|
||||
'y': 0}} end={{'x': 1, 'y': 0}} />)(importDefault(4589) /* metro dependency 4589 */);
|
||||
const EyeDropperIcon = (require(13797) /* metro dependency 13797: EyeDropperIcon */).EyeDropperIcon;
|
||||
const items3 = [<View style={styles.gradientContainer}>{value10}<View style={styles.dropperContainer}><Pressable style={styles.dropper} onPress={value8}><EyeDropperIcon color="white" size="sm" /></Pressable><Pressable style={styles.dropper} onPress={value9}><EyeDropperIcon color="white" size="sm" /></Pressable></View></View>];
|
||||
items3[1] = <View style={styles.optionContainer}>{GRADIENT_PRESETS.map(_fun123439)}</View>;
|
||||
items3[2] = <Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.yBZMsQ)} onPress={onPress_123441} />;
|
||||
return (
|
||||
<BottomSheet {...object2}>
|
||||
<View style={styles.body}>
|
||||
{items3}
|
||||
</View>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun123433() { // fn#123433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16172:1610, offset: 0x0258d328, size: 53 bytes, params: 1, frame: 12
|
||||
onSelect(env0_2);
|
||||
const value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
function _fun123435() { // fn#123435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16172:1704, offset: 0x0258d35d, size: 97 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = undefined;
|
||||
(importDefault(13189) /* metro dependency 13189: showCustomColorPickerActionSheet */)({color: (env0_2 == null ? value : env0_2.primary_color) ?? 0,
|
||||
onSelect: onSelect_123436}, 'stack');
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun123437() { // fn#123437, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16172:1850, offset: 0x0258d3e7, size: 97 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = undefined;
|
||||
(importDefault(13189) /* metro dependency 13189: showCustomColorPickerActionSheet */)({color: (env0_2 == null ? value : env0_2.secondary_color) ?? 0,
|
||||
onSelect: onSelect_123438}, 'stack');
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun123439(a0) { // fn#123439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16172:2651, offset: 0x0258d471, size: 305 bytes, params: 2, frame: 24
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const pressableOpacityProps = {style: [styles.pressable,
|
||||
a0.start === env0_2.primary_color && a0.end === env0_2.secondary_color && styles.selected],
|
||||
onPress: onPress_123440};
|
||||
const defaultImport = importDefault(4589) /* metro dependency 4589 */;
|
||||
value = Reflect.apply((require(673) /* metro dependency 673: ColorUtils */).int2hex, value, [a0.start]);
|
||||
const items2 = [value];
|
||||
value = require(673) /* metro dependency 673: ColorUtils */;
|
||||
items2[1] = value.int2hex(a0.end);
|
||||
return (
|
||||
<PressableOpacity {...pressableOpacityProps} key={a0.name}>
|
||||
{((Component) => <Component style={styles.option} colors={items2} start={{'x': 0, 'y': 0}} end={{'x': 1,
|
||||
'y': 0}} />)(defaultImport)}
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function RoleGradientPickerActionSheetOnPress() { // fn#123441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16172:3046, owner: RoleGradientPickerActionSheet.onPress, offset: 0x0258d5e2, size: 23 bytes, params: 1, frame: 11
|
||||
env0_3(DEFAULT_GRADIENT_ROLE_COLORS);
|
||||
}
|
||||
|
||||
function onSelect_123436(a0) { // fn#123436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16172:1785, offset: 0x0258d3be, size: 41 bytes, params: 2, frame: 13
|
||||
const binding = env1_4;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env1_2, undefined);
|
||||
object2['primary_color'] = a0;
|
||||
return binding(object2);
|
||||
}
|
||||
|
||||
function onSelect_123438(a0) { // fn#123438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16172:1933, offset: 0x0258d448, size: 41 bytes, params: 2, frame: 13
|
||||
const binding = env1_4;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env1_2, undefined);
|
||||
object2['secondary_color'] = a0;
|
||||
return binding(object2);
|
||||
}
|
||||
|
||||
function onPress_123440() { // fn#123440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16172:2776, offset: 0x0258d5a2, size: 64 bytes, params: 1, frame: 14
|
||||
const binding = env1_4;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env1_2, undefined);
|
||||
const binding2 = env0_0;
|
||||
object2['primary_color'] = binding2.start;
|
||||
object2['secondary_color'] = binding2.end;
|
||||
return binding(object2);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/* Metro module 14633; source: modules/premium/powerups/native/hooks/useGuildPowerupColorConfig.tsx; dependencies: [697, 2] */
|
||||
function _fun110606(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14830:6, offset: 0x0237f3eb, size: 99 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupColorConfig.tsx');
|
||||
exports.default = useGuildPowerupColorConfig;
|
||||
}
|
||||
|
||||
function useGuildPowerupColorConfig(a0) { // fn#110607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14830:204, offset: 0x0237f44e, size: 120 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
if (a0) {
|
||||
object2.textColor = 'text-default';
|
||||
object2.iconColor = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
|
||||
} else {
|
||||
object2.textColor = 'text-muted';
|
||||
object2.iconColor = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 14658; source: modules/premium/powerups/native/hooks/useGuildPowerupConfigureCallback.tsx; dependencies: [31, 661, 4080, 14638, 8188, 9112, 44, 2] */
|
||||
function _fun110714(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14855:6, offset: 0x02383a5c, size: 153 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_4 = constantsModule.GuildSettingsSections;
|
||||
const env0_5 = constantsModule.AnalyticsSections;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupConfigureCallback.tsx');
|
||||
exports.default = useGuildPowerupConfigureCallback;
|
||||
}
|
||||
|
||||
function useGuildPowerupConfigureCallback(a0, a1) { // fn#110715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14855:282, offset: 0x02383af5, size: 60 bytes, params: 3, frame: 15
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return env0_3.useCallback(_fun110716, [a0, a1.skuId]);
|
||||
}
|
||||
|
||||
function _fun110716() { // fn#110716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14855:351, offset: 0x02383b31, size: 214 bytes, params: 1, frame: 18
|
||||
var defaultImport2;
|
||||
const value = environment.__proto__;
|
||||
const defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
const hideActionSheet = defaultImport.hideActionSheet;
|
||||
const GUILD_POWERUPS_BOTTOM_SHEET_KEY = (require(14638) /* metro dependency 14638: openGuildPowerupsBottomSheet */).GUILD_POWERUPS_BOTTOM_SHEET_KEY;
|
||||
Reflect.apply(hideActionSheet, defaultImport, [GUILD_POWERUPS_BOTTOM_SHEET_KEY]);
|
||||
const skuId = require.skuId;
|
||||
const GUILD_POWERUP_ROLE_COLOR_SKU_ID = (require(8188) /* metro dependency 8188: Powerups */).GUILD_POWERUP_ROLE_COLOR_SKU_ID;
|
||||
if (skuId !== GUILD_POWERUP_ROLE_COLOR_SKU_ID) {
|
||||
(importDefault(44) /* metro dependency 44 */)(false, 'Unsupported powerup SKU ID: ' + require.skuId);
|
||||
} else {
|
||||
defaultImport2 = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
defaultImport2.open(env0_0, GuildSettingsSections.ROLES, AnalyticsSections.GUILD_POWERUPS_OVERVIEW_CARD);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
/* Metro module 14650; source: modules/premium/powerups/native/hooks/useGuildPowerupOnActivate.tsx; dependencies: [31, 1867, 7020, 8259, 14651, 566, 14652, 6771, 12300, 8249, 4080, 14638, 6522, 7021, 5080, 7028, 2] */
|
||||
function _fun110670(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:6, offset: 0x023822f4, size: 185 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const guildBoostSlotStore = importDefault(7020) /* metro dependency 7020: GuildBoostSlotStore */;
|
||||
const guildPowerupsConstantsModule = require(8259) /* metro dependency 8259: GuildPowerupsConstants */;
|
||||
const env0_6 = guildPowerupsConstantsModule.BoostPurchaseIntent;
|
||||
const env0_7 = guildPowerupsConstantsModule.GuildPowerupType;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupOnActivate.tsx');
|
||||
exports.default = useGuildPowerupOnActivate;
|
||||
}
|
||||
|
||||
function useGuildPowerupOnActivate(a0, a1) { // fn#110671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:293, offset: 0x023823ad, size: 281 bytes, params: 3, frame: 23
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const {onToggle, isLoading,
|
||||
error} = (importDefault(14651) /* metro dependency 14651: useGuildPowerupOnToggle */)(a0, a1);
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun110672);
|
||||
const env0_3 = guild;
|
||||
const value3 = (importDefault(14652) /* metro dependency 14652: useAvailableBoostCountForPowerup */)(a0, a1);
|
||||
const analyticsLocations = (importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */)().analyticsLocations;
|
||||
const {shouldUseMobileWebRedirectCheckout,
|
||||
handleMobileWebRedirectCheckout} = (importDefault(12300) /* metro dependency 12300: useGuildBoostPurchaseHandler */)('guild_powerup_activation');
|
||||
const binding = env0_3;
|
||||
const useCallback = binding.useCallback;
|
||||
return {onActivate: Reflect.apply(useCallback, binding, [_fun110673, [onToggle, a1, value3, guild,
|
||||
analyticsLocations, shouldUseMobileWebRedirectCheckout, handleMobileWebRedirectCheckout]]),
|
||||
isLoading: isLoading, error: error};
|
||||
}
|
||||
|
||||
function _fun110673() { // fn#110673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:635, offset: 0x023824c6, size: 435 bytes, params: 1, frame: 28
|
||||
var environment;
|
||||
var r5;
|
||||
var value2;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
var value4;
|
||||
var defaultImport;
|
||||
var moduleValue2;
|
||||
var object2;
|
||||
var moduleValue3;
|
||||
var openTransferModal;
|
||||
if (guild != null) {
|
||||
if (require != null) {
|
||||
if (env0_4 >= require.cost) {
|
||||
(function() {
|
||||
onToggle(true);
|
||||
})();
|
||||
} else {
|
||||
value2 = require.cost - env0_4;
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(8249) /* metro dependency 8249: GuildBoostingUtils */;
|
||||
value4 = moduleValue.getAvailableGuildBoostSlots(GuildBoostSlotStore.boostSlots);
|
||||
r5 = require.type === GuildPowerupType.LEVEL ? BoostPurchaseIntent.LEVEL : BoostPurchaseIntent.PERK;
|
||||
defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
defaultImport.hideActionSheet((require(14638) /* metro dependency 14638: openGuildPowerupsBottomSheet */).GUILD_POWERUPS_BOTTOM_SHEET_KEY);
|
||||
if (value4.length > 0) {
|
||||
moduleValue3 = require(6522) /* metro dependency 6522: BoostingActionCreators */;
|
||||
openTransferModal = moduleValue3.openTransferModal;
|
||||
object2 = {};
|
||||
object2.guildBoostSlots = value4.slice(0, value2);
|
||||
object2.guildId = guild.id;
|
||||
object2.intent = r5;
|
||||
object2.onResult = onResult;
|
||||
Reflect.apply(openTransferModal, moduleValue3, [object2]);
|
||||
} else if (shouldUseMobileWebRedirectCheckout) {
|
||||
handleMobileWebRedirectCheckout(analyticsLocations, guild.id);
|
||||
} else {
|
||||
moduleValue2 = require(7021) /* metro dependency 7021: GuildBoostPurchasingUtils */;
|
||||
moduleValue2.launchGuildBoostFlowOrAlert({'page': 'Guild Powerups',
|
||||
'section': 'Powerup Activation'},
|
||||
analyticsLocations, _fun110676, _fun110677, _fun110679);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun110676() { // fn#110676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:1133, offset: 0x02382679, size: 60 bytes, params: 1, frame: 14
|
||||
const defaultImport = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
|
||||
const popWithKey = defaultImport.popWithKey;
|
||||
const PREMIUM_KEY = (require(7028) /* metro dependency 7028: PremiumModal */).PREMIUM_KEY;
|
||||
return Reflect.apply(popWithKey, defaultImport, [PREMIUM_KEY]);
|
||||
}
|
||||
|
||||
function _fun110677() { // fn#110677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:1181, offset: 0x023826b5, size: 164 bytes, params: 1, frame: 19
|
||||
var environment;
|
||||
var openTransferModal;
|
||||
var slice;
|
||||
var value4;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const availableGuildBoostSlots = (require(8249) /* metro dependency 8249: GuildBoostingUtils */).getAvailableGuildBoostSlots(GuildBoostSlotStore.boostSlots);
|
||||
if (availableGuildBoostSlots.length >= env0_1) {
|
||||
value = require(6522) /* metro dependency 6522: BoostingActionCreators */;
|
||||
openTransferModal = value.openTransferModal;
|
||||
slice = availableGuildBoostSlots.slice;
|
||||
value4 = environment.__proto__;
|
||||
Reflect.apply(openTransferModal, value, [{guildBoostSlots: Reflect.apply(slice, availableGuildBoostSlots, [0,
|
||||
require.cost]), guildId: guild.id, intent: env0_2, onResult: onResult_110678}]);
|
||||
}
|
||||
}
|
||||
|
||||
function onResult_110678(a0) { // fn#110678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14847:1348, offset: 0x02382759, size: 23 bytes, params: 2, frame: 9
|
||||
var value;
|
||||
if (a0) {
|
||||
value = environment.__proto__;
|
||||
activatePowerup();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/* Metro module 14653; source: modules/premium/powerups/native/hooks/useGuildPowerupOnShowDeactivate.tsx; dependencies: [31, 33, 14654, 1962, 4497, 2] */
|
||||
function _fun110693(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14850:6, offset: 0x02382cb4, size: 157 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_4 = value.lazy(_fun110694);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupOnShowDeactivate.tsx');
|
||||
exports.default = useGuildPowerupOnShowDeactivate;
|
||||
}
|
||||
|
||||
function _fun110694() { // fn#110694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14850:130, offset: 0x02382d51, size: 45 bytes, params: 1, frame: 13
|
||||
return require(dependencyMap[3])(dependencyMap[2], dependencyMap.paths);
|
||||
}
|
||||
|
||||
function useGuildPowerupOnShowDeactivate(a0, a1) { // fn#110695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14850:275, offset: 0x02382d7e, size: 55 bytes, params: 3, frame: 15
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return env0_2.useCallback(_fun110696, [a0, a1]);
|
||||
}
|
||||
|
||||
function _fun110696() { // fn#110696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14850:343, offset: 0x02382db5, size: 81 bytes, params: 1, frame: 17
|
||||
const value = environment.__proto__;
|
||||
const useAlertStoreNativeModule = require(4497) /* metro dependency 4497: useAlertStoreNative */;
|
||||
useAlertStoreNativeModule.openAlert('guild-powerups-deactivate-alert',
|
||||
((Component) => <Component guildId={env0_0} powerup={require} />)(env1_4));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/* Metro module 14637; source: modules/premium/powerups/native/hooks/useGuildPowerupOnShowMore.tsx; dependencies: [31, 14638, 2] */
|
||||
function _fun110621(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14834:6, offset: 0x0237ff1a, size: 117 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupOnShowMore.tsx');
|
||||
exports.default = useGuildPowerupOnShowMore;
|
||||
}
|
||||
|
||||
function useGuildPowerupOnShowMore(a0, a1) { // fn#110622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14834:217, offset: 0x0237ff8f, size: 55 bytes, params: 3, frame: 15
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return env0_2.useCallback(_fun110623, [a0, a1]);
|
||||
}
|
||||
|
||||
function _fun110623() { // fn#110623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14834:279, offset: 0x0237ffc6, size: 66 bytes, params: 1, frame: 13
|
||||
var value2;
|
||||
if (require != null) {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(14638) /* metro dependency 14638: openGuildPowerupsBottomSheet */)({guildId: env0_0,
|
||||
powerup: require});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,360 @@
|
||||
/* Metro module 14681; source: modules/premium/powerups/native/hooks/useGuildPowerupsCoachmark.tsx; dependencies: [31, 4502, 1867, 8259, 1376, 482, 33, 4501, 697, 566, 4048, 14599, 14598, 14641, 1244, 2256, 14643, 14682, 14640, 8188, 14683, 14684, 14685, 14667, 14686, 8543, 2] */
|
||||
function _fun110802(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:6, offset: 0x023877c7, size: 283 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const guildPowerupsConstantsModule = require(8259) /* metro dependency 8259: GuildPowerupsConstants */;
|
||||
const env0_6 = guildPowerupsConstantsModule.GUILD_TAG_BADGE_PACKS_WAVE_ONE_SKU_ID_SET;
|
||||
const env0_7 = guildPowerupsConstantsModule.GUILD_TAG_BADGE_PACKS_WAVE_TWO_SKU_ID_SET;
|
||||
const env0_8 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
const env0_9 = (require(482) /* metro dependency 482: Constants */).ThemeTypes;
|
||||
const env0_10 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun110803);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/hooks/useGuildPowerupsCoachmark.tsx');
|
||||
exports.default = useGuildPowerupsCoachmark;
|
||||
}
|
||||
|
||||
function _fun110803(a0) { // fn#110803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:322, offset: 0x023878e2, size: 164 bytes, params: 2, frame: 17
|
||||
const object = {height: 120};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object.width = 260 - 2 * PX_16;
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
const LIGHT = ThemeTypes.LIGHT;
|
||||
return {coachmarkImage: object, coachmarkCover: {resizeMode: 'cover'}, boostGemBackground: {'width': 50,
|
||||
'height': 50, backgroundColor: a0 !== LIGHT ? '#0000003D' : '#0000001A'}};
|
||||
}
|
||||
|
||||
function useGuildPowerupsCoachmark(a0, a1, a2) { // fn#110804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:661, offset: 0x02387986, size: 235 bytes, params: 4, frame: 23
|
||||
const env0_0 = a1;
|
||||
const env0_1 = a2;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun110805, [a1]);
|
||||
const styles = useStyles((importDefault(4048) /* metro dependency 4048: useTheme */)());
|
||||
const env0_3 = styles;
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const binding = env0_3;
|
||||
const useMemo = binding.useMemo;
|
||||
(require(8543) /* metro dependency 8543: useCoachmarkNative */).useCoachmark(a0, Reflect.apply(useMemo, binding,
|
||||
[_fun110807, [a1, value2, a2, styles, useReducedMotion]]));
|
||||
}
|
||||
|
||||
function _fun110805() { // fn#110805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:741, offset: 0x02387a71, size: 43 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return GuildStore.getGuild(require)?.name;
|
||||
}
|
||||
|
||||
function _fun110807() { // fn#110807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:896, offset: 0x02387a9c, size: 2759 bytes, params: 1, frame: 30
|
||||
var r6;
|
||||
var r9;
|
||||
var powerups;
|
||||
var value4;
|
||||
var object7;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var object8;
|
||||
var object13;
|
||||
var object14;
|
||||
var object15;
|
||||
var title;
|
||||
var length;
|
||||
var formatToPlainString;
|
||||
var property;
|
||||
var object16;
|
||||
var object17;
|
||||
var object18;
|
||||
var object19;
|
||||
var powerup;
|
||||
const object20 = {'title': '', 'description': '', 'position': 'bottom', 'visible': false};
|
||||
let value = '';
|
||||
object20.onDismiss = function() {
|
||||
};
|
||||
if (importDefault != null) {
|
||||
var closure = function() {
|
||||
importDefault.markAsDismissed(ContentDismissActionType.TAKE_ACTION);
|
||||
importDefault(dependencyMap[11])({guildId: require});
|
||||
};
|
||||
var closure2 = function() {
|
||||
importDefault.markAsDismissed(ContentDismissActionType.USER_DISMISS);
|
||||
};
|
||||
var type = importDefault.type;
|
||||
var GuildPowerupNotificationPopoutType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType;
|
||||
var LEVEL_REACHED = GuildPowerupNotificationPopoutType.LEVEL_REACHED;
|
||||
if (LEVEL_REACHED === type) {
|
||||
object19 = {};
|
||||
copyDataProperties(object19, object20, undefined);
|
||||
object19['visible'] = true;
|
||||
object19['renderImgComponent'] = renderImgComponent_110811;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['Zg/m9K'];
|
||||
powerup = importDefault.powerup;
|
||||
title = powerup.title;
|
||||
value = Reflect.apply(formatToPlainString, intl, [property, {perkName: title}]);
|
||||
object19['title'] = value;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['1EGXSK'];
|
||||
powerup = importDefault.powerup;
|
||||
title = powerup.title;
|
||||
value = Reflect.apply(formatToPlainString, intl, [property, {perkName: title}]);
|
||||
object19['description'] = value;
|
||||
value = intl.string(t.RzWDqY);
|
||||
object19['buttonLabel'] = value;
|
||||
object19['buttonVariant'] = 'primary';
|
||||
object19['onButtonPress'] = closure;
|
||||
object19['onDismiss'] = closure2;
|
||||
return object19;
|
||||
}
|
||||
GuildPowerupNotificationPopoutType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType;
|
||||
var PERKS_AVAILABLE = GuildPowerupNotificationPopoutType.PERKS_AVAILABLE;
|
||||
if (PERKS_AVAILABLE === type) {
|
||||
object18 = {};
|
||||
copyDataProperties(object18, object20, undefined);
|
||||
object18['visible'] = true;
|
||||
object18['renderImgComponent'] = renderImgComponent_110812;
|
||||
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).QpQBPQ);
|
||||
object18['title'] = value;
|
||||
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['6hn0xF']);
|
||||
object18['description'] = value;
|
||||
value = intl.string(t.RzWDqY);
|
||||
object18['buttonLabel'] = value;
|
||||
object18['buttonVariant'] = 'primary';
|
||||
object18['onButtonPress'] = closure;
|
||||
object18['onDismiss'] = closure2;
|
||||
return object18;
|
||||
}
|
||||
GuildPowerupNotificationPopoutType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType;
|
||||
var PERKS_PURCHASABLE = GuildPowerupNotificationPopoutType.PERKS_PURCHASABLE;
|
||||
if (PERKS_PURCHASABLE === type) {
|
||||
powerups = importDefault.powerups;
|
||||
length = powerups.length;
|
||||
if (length === 0) {
|
||||
return object20;
|
||||
}
|
||||
length = powerups.length;
|
||||
if (length >= 3) {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['6Sv+3M'];
|
||||
object16 = {};
|
||||
title = powerups[0].title;
|
||||
object16.perk = title;
|
||||
title = powerups[1].title;
|
||||
object16.perk2 = title;
|
||||
title = powerups[2].title;
|
||||
object16.perk3 = title;
|
||||
r9 = Reflect.apply(formatToPlainString, intl, [property, object16]);
|
||||
} else {
|
||||
r9 = powerups.length === 2 ? intl.formatToPlainString((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).wcQOqC,
|
||||
|
||||
|
||||
|
||||
{perks: value + powerups[0].title + ' & ' + powerups[1].title}) : intl.formatToPlainString((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).ZF8NT6,
|
||||
|
||||
|
||||
|
||||
{perk: powerups[0].title});
|
||||
}
|
||||
object17 = {};
|
||||
copyDataProperties(object17, object20, undefined);
|
||||
object17['visible'] = true;
|
||||
object17['renderImgComponent'] = renderImgComponent_110813;
|
||||
value = intl.formatToPlainString((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).LmpChE,
|
||||
|
||||
|
||||
{guildName: env0_2 ?? value});
|
||||
object17['title'] = value;
|
||||
object17['description'] = r9;
|
||||
value = intl.string(t.RzWDqY);
|
||||
object17['buttonLabel'] = value;
|
||||
object17['buttonVariant'] = 'primary';
|
||||
object17['onButtonPress'] = closure;
|
||||
object17['onDismiss'] = closure2;
|
||||
return object17;
|
||||
}
|
||||
GuildPowerupNotificationPopoutType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType;
|
||||
var NEW_PERK_AVAILABLE = GuildPowerupNotificationPopoutType.NEW_PERK_AVAILABLE;
|
||||
if (NEW_PERK_AVAILABLE === type) {
|
||||
powerups = importDefault.powerups;
|
||||
value4 = powerups.find(function({skuId}) {
|
||||
return skuId === require(dependencyMap[19]).GUILD_POWERUP_GUILD_THEME_SKU_ID;
|
||||
});
|
||||
if (value4 != null) {
|
||||
object15 = {};
|
||||
copyDataProperties(object15, object20, undefined);
|
||||
object15['visible'] = true;
|
||||
object15['renderImgComponent'] = renderImgComponent_110815;
|
||||
object15['title'] = value4.title;
|
||||
object15['description'] = typeof value4.description !== 'string' ? value : value4.description;
|
||||
value = intl.string(t.RzWDqY);
|
||||
object15['buttonLabel'] = value;
|
||||
object15['buttonVariant'] = 'primary';
|
||||
object15['onButtonPress'] = closure;
|
||||
object15['onDismiss'] = closure2;
|
||||
r6 = object15;
|
||||
} else if (powerups.find(_fun110816) != null) {
|
||||
object14 = {};
|
||||
copyDataProperties(object14, object20, undefined);
|
||||
object14['visible'] = true;
|
||||
object14['renderImgComponent'] = renderImgComponent_110817;
|
||||
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).Ygpx4Q);
|
||||
object14['title'] = value;
|
||||
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).mmNkUA);
|
||||
object14['description'] = value;
|
||||
value = intl.string(t.RzWDqY);
|
||||
object14['buttonLabel'] = value;
|
||||
object14['buttonVariant'] = 'primary';
|
||||
object14['onButtonPress'] = closure;
|
||||
object14['onDismiss'] = closure2;
|
||||
r6 = object14;
|
||||
} else if (powerups.find(_fun110818) != null) {
|
||||
object13 = {};
|
||||
copyDataProperties(object13, object20, undefined);
|
||||
object13['visible'] = true;
|
||||
object13['renderImgComponent'] = renderImgComponent_110819;
|
||||
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['kA2c+n']);
|
||||
object13['title'] = value;
|
||||
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).TUilLj);
|
||||
object13['description'] = value;
|
||||
value = intl.string(t.RzWDqY);
|
||||
object13['buttonLabel'] = value;
|
||||
object13['buttonVariant'] = 'primary';
|
||||
object13['onButtonPress'] = closure;
|
||||
object13['onDismiss'] = closure2;
|
||||
r6 = object13;
|
||||
} else if (powerups.find(_fun110820) != null) {
|
||||
object8 = {};
|
||||
copyDataProperties(object8, object20, undefined);
|
||||
object8['visible'] = true;
|
||||
object8['renderImgComponent'] = renderImgComponent_110821;
|
||||
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['kA2c+n']);
|
||||
object8['title'] = value;
|
||||
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).TUilLj);
|
||||
object8['description'] = value;
|
||||
value = intl.string(t.RzWDqY);
|
||||
object8['buttonLabel'] = value;
|
||||
object8['buttonVariant'] = 'primary';
|
||||
object8['onButtonPress'] = closure;
|
||||
object8['onDismiss'] = closure2;
|
||||
r6 = object8;
|
||||
} else if (powerups.find(_fun110822) == null) {
|
||||
r6 = object20;
|
||||
} else {
|
||||
object7 = {};
|
||||
copyDataProperties(object7, object20, undefined);
|
||||
object7['visible'] = true;
|
||||
object7['renderImgComponent'] = renderImgComponent_110823;
|
||||
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).rp0Ff1);
|
||||
object7['title'] = value;
|
||||
value = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['3L/DZq']);
|
||||
object7['description'] = value;
|
||||
value = intl.string(t.RzWDqY);
|
||||
object7['buttonLabel'] = value;
|
||||
object7['buttonVariant'] = 'primary';
|
||||
object7['onButtonPress'] = closure;
|
||||
object7['onDismiss'] = closure2;
|
||||
r6 = object7;
|
||||
}
|
||||
return r6;
|
||||
}
|
||||
GuildPowerupNotificationPopoutType = (require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType;
|
||||
var GAME_SERVER_HOSTING_AVAILABLE = GuildPowerupNotificationPopoutType.GAME_SERVER_HOSTING_AVAILABLE;
|
||||
if (GAME_SERVER_HOSTING_AVAILABLE !== type) {
|
||||
if ((require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType.GAME_SERVER_HOSTING_GUILD_ELIGIBLE !== type) {
|
||||
(require(14598) /* metro dependency 14598: GuildPowerupsNotification */).GuildPowerupNotificationPopoutType.GAME_SERVER_HOSTING_ENABLED;
|
||||
}
|
||||
}
|
||||
}
|
||||
return object20;
|
||||
}
|
||||
|
||||
function renderImgComponent_110811() { // fn#110811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:1264, offset: 0x023885cc, size: 70 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__;
|
||||
return ((Component) => <Component style={styles.boostGemBackground} gemWidth={30} gemHeight={30} />)(importDefault(14641) /* metro dependency 14641: GuildPowerupsBoostGem */);
|
||||
}
|
||||
|
||||
function renderImgComponent_110813() { // fn#110813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:2502, offset: 0x02388612, size: 206 bytes, params: 1, frame: 22
|
||||
var r6;
|
||||
var getGuildPowerupBannerImage;
|
||||
var property;
|
||||
var value3;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const GuildPowerupsImage = importDefault(14643) /* metro dependency 14643: GuildPowerupsImage */;
|
||||
let length = powerups.length;
|
||||
if (length > 1) {
|
||||
r6 = importDefault(14682) /* metro dependency 14682: level_backgroundPng */;
|
||||
} else {
|
||||
value = require(14640) /* metro dependency 14640: useGetGuildPowerupBannerImage */;
|
||||
getGuildPowerupBannerImage = value.getGuildPowerupBannerImage;
|
||||
property = powerups[0];
|
||||
value3 = environment.__proto__;
|
||||
value = Reflect.apply(getGuildPowerupBannerImage, value, [property, useReducedMotion, true]);
|
||||
r6 = value ?? '';
|
||||
}
|
||||
length = powerups.length;
|
||||
value = environment.__proto__;
|
||||
const stylesBinding = styles;
|
||||
return (
|
||||
<GuildPowerupsImage
|
||||
imageUrl={r6}
|
||||
isAnimated={length === 1}
|
||||
style={[stylesBinding.coachmarkImage, stylesBinding.coachmarkCover]}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function renderImgComponent_110815() { // fn#110815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:3124, offset: 0x0238870d, size: 159 bytes, params: 1, frame: 21
|
||||
const value = environment.__proto__.__proto__;
|
||||
const GuildPowerupsImage = importDefault(14643) /* metro dependency 14643: GuildPowerupsImage */;
|
||||
const r5 = (require(14640) /* metro dependency 14640: useGetGuildPowerupBannerImage */).getGuildPowerupBannerImage(env0_1,
|
||||
useReducedMotion, true) ?? (importDefault(14683) /* metro dependency 14683: serverThemePowerupStaticPng */);
|
||||
const stylesBinding = styles;
|
||||
return (
|
||||
<GuildPowerupsImage
|
||||
imageUrl={r5}
|
||||
isAnimated={!useReducedMotion}
|
||||
style={[stylesBinding.coachmarkImage, stylesBinding.coachmarkCover]}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun110816({skuId}) { // fn#110816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:3508, offset: 0x023887ac, size: 45 bytes, params: 2, frame: 12
|
||||
const VANITY_URL_POWERUP_SKU_ID = (require(8188) /* metro dependency 8188: Powerups */).VANITY_URL_POWERUP_SKU_ID;
|
||||
return skuId === VANITY_URL_POWERUP_SKU_ID;
|
||||
}
|
||||
|
||||
function renderImgComponent_110817() { // fn#110817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:3594, offset: 0x023887d9, size: 73 bytes, params: 1, frame: 16
|
||||
const value = environment.__proto__.__proto__;
|
||||
return ((Component) => <Component imageUrl={importDefault(14684) /* metro dependency 14684: vanity_url_powerup_2xGif */} style={styles.coachmarkImage} />)(importDefault(14643) /* metro dependency 14643: GuildPowerupsImage */);
|
||||
}
|
||||
|
||||
function _fun110818({skuId}) { // fn#110818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:3894, offset: 0x02388822, size: 27 bytes, params: 2, frame: 11
|
||||
return GUILD_TAG_BADGE_PACKS_WAVE_TWO_SKU_ID_SET.has(skuId);
|
||||
}
|
||||
|
||||
function renderImgComponent_110819() { // fn#110819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:3950, offset: 0x0238883d, size: 73 bytes, params: 1, frame: 16
|
||||
const value = environment.__proto__.__proto__;
|
||||
return ((Component) => <Component imageUrl={importDefault(14685) /* metro dependency 14685: guild_tag_badge_packs_wave_two_powerup_2xPng */} style={styles.coachmarkImage} />)(importDefault(14643) /* metro dependency 14643: GuildPowerupsImage */);
|
||||
}
|
||||
|
||||
function _fun110820({skuId}) { // fn#110820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:4253, offset: 0x02388886, size: 27 bytes, params: 2, frame: 11
|
||||
return GUILD_TAG_BADGE_PACKS_WAVE_ONE_SKU_ID_SET.has(skuId);
|
||||
}
|
||||
|
||||
function renderImgComponent_110821() { // fn#110821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:4309, offset: 0x023888a1, size: 73 bytes, params: 1, frame: 16
|
||||
const value = environment.__proto__.__proto__;
|
||||
return ((Component) => <Component imageUrl={importDefault(14667) /* metro dependency 14667: groupAnimatedPng */} style={styles.coachmarkImage} />)(importDefault(14643) /* metro dependency 14643: GuildPowerupsImage */);
|
||||
}
|
||||
|
||||
function _fun110822({skuId}) { // fn#110822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:4612, offset: 0x023888ea, size: 45 bytes, params: 2, frame: 12
|
||||
const GUILD_POWERUP_MAX_FILE_SIZE_250_MB_SKU_ID = (require(8188) /* metro dependency 8188: Powerups */).GUILD_POWERUP_MAX_FILE_SIZE_250_MB_SKU_ID;
|
||||
return skuId === GUILD_POWERUP_MAX_FILE_SIZE_250_MB_SKU_ID;
|
||||
}
|
||||
|
||||
function renderImgComponent_110823() { // fn#110823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14878:4714, offset: 0x02388917, size: 80 bytes, params: 1, frame: 16
|
||||
const value = environment.__proto__.__proto__;
|
||||
return ((Component) => <Component imageUrl={importDefault(14686) /* metro dependency 14686: fileUploadStatic2xPng */} isAnimated={false} style={styles.coachmarkImage} />)(importDefault(14643) /* metro dependency 14643: GuildPowerupsImage */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/* Metro module 14665; source: modules/premium/powerups/native/hooks/usePowerupGroupConfig.tsx; dependencies: [31, 8258, 566, 8188, 1244, 2256, 14666, 14667, 1360, 2] */
|
||||
function _fun110732(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14862:6, offset: 0x02384caf, size: 137 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const guildPowerupsStore = importDefault(8258) /* metro dependency 8258: GuildPowerupsStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/hooks/usePowerupGroupConfig.tsx');
|
||||
exports.default = usePowerupGroupConfig;
|
||||
}
|
||||
|
||||
function usePowerupGroupConfig(a0, a1) { // fn#110733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14862:223, offset: 0x02384d38, size: 156 bytes, params: 3, frame: 19
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const value2 = undefined;
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildPowerupsStore], _fun110734);
|
||||
return env0_3.useMemo(_fun110735, [a1,
|
||||
(value3 == null ? value2 : value3[(require(8188) /* metro dependency 8188: Powerups */).GUILD_POWERUP_TAG_SKU_ID]) != null]);
|
||||
}
|
||||
|
||||
function _fun110734() { // fn#110734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14862:297, offset: 0x02384dd4, size: 44 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return GuildPowerupsStore.getStateForGuild(env0_0)?.unlockedPowerups;
|
||||
}
|
||||
|
||||
function _fun110735() { // fn#110735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14862:455, offset: 0x02384e00, size: 308 bytes, params: 1, frame: 20
|
||||
var object2;
|
||||
var value3;
|
||||
var value4;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
if (require.group === 'guildTagsBadgePacks') {
|
||||
object2 = {};
|
||||
value3 = environment.__proto__;
|
||||
value4 = undefined;
|
||||
object2.title = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).KC9HRW);
|
||||
object2.description = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).GJiSmP);
|
||||
object2.image = {staticUrl: importDefault(14666) /* metro dependency 14666: groupStaticPng */,
|
||||
animatedUrl: importDefault(14667) /* metro dependency 14667: groupAnimatedPng */};
|
||||
object2.disabledReason = result ? value4 : intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).lvk1Gc);
|
||||
object2.badge = value4;
|
||||
object2.forceStaticImages = true;
|
||||
return object2;
|
||||
}
|
||||
const globalUtilsModule = require(1360) /* metro dependency 1360: GlobalUtils */;
|
||||
globalUtilsModule.assertNever(require.group);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Metro module 14642; source: modules/premium/powerups/native/images/BoostGem.tsx; dependencies: [31, 33, 7744, 2] */
|
||||
function _fun110641(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14839:6, offset: 0x02380f8d, size: 147 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/images/BoostGem.tsx');
|
||||
exports.default = BoostGem;
|
||||
}
|
||||
|
||||
function BoostGem({width, height, style}) { // fn#110642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14839:226, offset: 0x02381020, size: 353 bytes, params: 2, frame: 20
|
||||
width = width === undefined ? 39 : width;
|
||||
height = height === undefined ? 66 : height;
|
||||
const defaultImport = importDefault(7744) /* metro dependency 7744 */;
|
||||
const Path = (require(7744) /* metro dependency 7744 */).Path;
|
||||
const items2 = [<Path d="M19.3146 0L0 19.4029V46.6865L19.3146 65.9999L38.6293 46.5969V19.388L19.3146 0ZM28.972 42.6566L19.3146 52.3432L9.65732 42.6566V23.388L19.3146 13.6865L28.972 23.388V42.6566Z" fill="#FA6EF6" />];
|
||||
items2[1] = <Path d="M19.3145 0V13.6316L28.9718 23.2941L38.6291 19.3102L19.3145 0Z" fill="#FFADFB" />;
|
||||
items2[2] = <Path d="M9.65732 42.7056L0 46.7269L19.3146 65.9996V52.3419L9.65732 42.7056Z" fill="#E655D4" />;
|
||||
items2[3] = <Path d="M9.65723 23.3317V42.6835L19.3145 52.4118L28.9719 42.6835V23.3317L19.3145 13.5884L9.65723 23.3317Z" fill="#FFCFF9" />;
|
||||
items2[4] = <Path d="M28.9719 23.1273L9.74637 42.7058H9.65723V37.3827L26.3273 20.3823L28.9719 23.1273Z" fill="white" />;
|
||||
items2[5] = <Path d="M28.9717 31.0586V36.3917L16.1689 49.4997L13.52 46.6984L28.9717 31.0586Z" fill="white" />;
|
||||
return ((Component) => <Component width={width} height={height} viewBox="0 0 39 66" fill="none" style={style}>{items2}</Component>)(defaultImport);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 14638; source: modules/premium/powerups/native/utils/openGuildPowerupsBottomSheet.tsx; dependencies: [4080, 14639, 1962, 2] */
|
||||
function _fun110624(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14835:6, offset: 0x02380008, size: 113 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/utils/openGuildPowerupsBottomSheet.tsx');
|
||||
exports.default = openGuildPowerupsBottomSheet;
|
||||
exports.GUILD_POWERUPS_BOTTOM_SHEET_KEY = 'GUILD_POWERUPS_BOTTOM_SHEET_KEY';
|
||||
}
|
||||
|
||||
function openGuildPowerupsBottomSheet(a0) { // fn#110625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14835:246, offset: 0x02380079, size: 80 bytes, params: 2, frame: 16
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
let value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'GUILD_POWERUPS_BOTTOM_SHEET_KEY', a0]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/* Metro module 14599; source: modules/premium/powerups/native/utils/openGuildPowerupsModal.tsx; dependencies: [5080, 14600, 1962, 2] */
|
||||
function _fun110378(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14796:6, offset: 0x023774cd, size: 103 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/utils/openGuildPowerupsModal.tsx');
|
||||
exports.default = function(a0) {
|
||||
var navigationParams = a0.navigationParams;
|
||||
var value = Object.create(null);
|
||||
value.navigationParams = 0;
|
||||
value = copyDataProperties({}, a0, value, navigationParams);
|
||||
importDefault(dependencyMap[0]).pushLazy(require(dependencyMap[2])(dependencyMap[1], dependencyMap.paths),
|
||||
value,
|
||||
'guild_powerups_modal_key', navigationParams);
|
||||
};
|
||||
}
|
||||
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
/* Metro module 14669; source: modules/premium/powerups/native/utils/openGuildPowerupsMultiPerkBottomSheet.tsx; dependencies: [4080, 14670, 1962, 14638, 2] */
|
||||
function _fun110745(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14866:6, offset: 0x0238530a, size: 103 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/utils/openGuildPowerupsMultiPerkBottomSheet.tsx');
|
||||
exports.default = openGuildPowerupsMultiPerkBottomSheet;
|
||||
}
|
||||
|
||||
function openGuildPowerupsMultiPerkBottomSheet(a0) { // fn#110746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14866:215, offset: 0x02385371, size: 94 bytes, params: 2, frame: 18
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
let value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
const GUILD_POWERUPS_BOTTOM_SHEET_KEY = require(dependencyMap[3]).GUILD_POWERUPS_BOTTOM_SHEET_KEY;
|
||||
Reflect.apply(openLazy, defaultImport, [value, GUILD_POWERUPS_BOTTOM_SHEET_KEY, a0]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user