Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,135 @@
/* Metro module 14829; source: modules/icymi/native/info_modal/ICYMIInfoModal.tsx; dependencies: [31, 33, 5280, 14830, 5282, 14831, 480, 5080, 5277, 1244, 9589, 14839, 14847, 10121, 12805, 2] */
function _fun111899(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:6, offset: 0x023b736b, size: 142 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 env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/info_modal/ICYMIInfoModal.tsx');
exports.default = ICYMIInfoModal;
}
function ICYMIInfoModal({extendedOnboarding, skipIntro}) { // fn#111900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:215, offset: 0x023b73f9, size: 251 bytes, params: 2, frame: 20
var r0;
var ICYMIInfoScreens;
var StepModal;
let object2 = {extendedOnboarding: extendedOnboarding, skipIntro: skipIntro};
let value = ICYMIInfoModalUseScreens(object2);
if (extendedOnboarding) {
StepModal = (require(12805) /* metro dependency 12805: StepModalNative */).StepModal;
object2 = {screens: value, steps: env0_3.useMemo(_fun111911, [extendedOnboarding, skipIntro])};
ICYMIInfoScreens = (require(14830) /* metro dependency 14830: ICYMIInfoModalTypes */).ICYMIInfoScreens;
object2.initialRouteName = skipIntro ? ICYMIInfoScreens.TOPICS_CLOUD : ICYMIInfoScreens.DEFAULT;
value = <StepModal {...object2} />;
r0 = value;
} else {
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
value = <Modal screens={value} initialRouteName={(require(14830) /* metro dependency 14830: ICYMIInfoModalTypes */).ICYMIInfoScreens.DEFAULT} />;
r0 = value;
}
return r0;
}
function ICYMIInfoModalUseScreens({extendedOnboarding, skipIntro}) { // fn#111901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:281, owner: ICYMIInfoModal.useScreens, offset: 0x023b74f4, size: 83 bytes, params: 2, frame: 15
var environment;
const value = environment.__proto__;
return (require(5280) /* metro dependency 5280: NavigatorNative */).useNavigatorScreens(_fun111902,
[extendedOnboarding, skipIntro]);
}
function _fun111911() { // fn#111911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:1517, offset: 0x023b790e, size: 208 bytes, params: 1, frame: 16
const ICYMIInfoScreens = (require(14830) /* metro dependency 14830: ICYMIInfoModalTypes */).ICYMIInfoScreens;
return extendedOnboarding ? skipIntro ? [ICYMIInfoScreens.TOPICS_CLOUD,
ICYMIInfoScreens.JOIN_GUILDS] : [ICYMIInfoScreens.DEFAULT, ICYMIInfoScreens.TOPICS_CLOUD,
ICYMIInfoScreens.JOIN_GUILDS] : [ICYMIInfoScreens.DEFAULT];
}
function _fun111902() { // fn#111902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:373, offset: 0x023b7547, size: 386 bytes, params: 1, frame: 22
var environment;
const object3 = {};
const value = environment.__proto__.__proto__;
const ICYMIInfoScreens = (require(14830) /* metro dependency 14830: ICYMIInfoModalTypes */).ICYMIInfoScreens;
const DEFAULT = ICYMIInfoScreens.DEFAULT;
const object4 = {};
object4.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton();
object4.render = render_111903;
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
const ICYMI_ONBOARDING_OVERVIEW = ImpressionNames.ICYMI_ONBOARDING_OVERVIEW;
object4.impressionName = ICYMI_ONBOARDING_OVERVIEW;
object4.impressionProperties = {extended_onboarding: extendedOnboarding};
object3[DEFAULT] = object4;
const TOPICS_CLOUD = ICYMIInfoScreens.TOPICS_CLOUD;
const skipIntroBinding = skipIntro;
const navigatorHeaderNativeModule = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
const r4 = skipIntroBinding ? navigatorHeaderNativeModule.getHeaderCloseButton(function() {
return importDefault(dependencyMap[7]).popWithKey(require(dependencyMap[3]).ICYMI_INFO_MODAL_KEY);
}) : navigatorHeaderNativeModule.getHeaderBackButton();
const ICYMI_ONBOARDING_TOPICS = ImpressionNames.ICYMI_ONBOARDING_TOPICS;
object3[TOPICS_CLOUD] = {headerLeft: r4, headerRight: headerRight_111905, render: render_111907,
impressionName: ICYMI_ONBOARDING_TOPICS};
const JOIN_GUILDS = ICYMIInfoScreens.JOIN_GUILDS;
const object6 = {};
object6.headerLeft = navigatorHeaderNativeModule.getHeaderBackButton();
object6.headerRight = headerRight_111908;
object6.render = render_111910;
const ICYMI_ONBOARDING_SELECT_GUILDS = ImpressionNames.ICYMI_ONBOARDING_SELECT_GUILDS;
object6.impressionName = ICYMI_ONBOARDING_SELECT_GUILDS;
object3[JOIN_GUILDS] = object6;
return object3;
}
function render_111903() { // fn#111903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:464, offset: 0x023b76c9, size: 51 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component extendedOnboarding={extendedOnboarding} />)(importDefault(14831) /* metro dependency 14831: ICYMIInfoScreen */);
}
function headerRight_111905() { // fn#111905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:794, offset: 0x023b7738, size: 121 bytes, params: 1, frame: 19
var environment;
var r0;
var HeaderActionButton;
var intl;
let value = environment.__proto__;
const skipIntroBinding = skipIntro;
value = null;
if (skipIntroBinding) {
r0 = value;
} else {
value = environment.__proto__.__proto__.__proto__;
HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
value = <HeaderActionButton text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5Wxrcd'])} onPress={onPress_111906} />;
r0 = value;
}
return r0;
}
function headerRight_111908() { // fn#111908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:1172, offset: 0x023b782a, size: 109 bytes, params: 1, frame: 18
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<HeaderActionButton
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5Wxrcd'])}
onPress={onPress_111909}
/>
);
}
function render_111910() { // fn#111910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:1367, offset: 0x023b78e7, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(14847) /* metro dependency 14847: ICYMIJoinGuildsScreen */);
}
function headerRight_111905OnPress() { // fn#111906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:889, owner: headerRight_111905.onPress, offset: 0x023b77b1, size: 82 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__.__proto__;
const ICYMIAnalytics = (require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics;
ICYMIAnalytics.trackFeedOnboardingScreenSkipped({location: 'topics'});
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
function headerRight_111908OnPress() { // fn#111909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:1260, owner: headerRight_111908.onPress, offset: 0x023b7897, size: 80 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__.__proto__;
const ICYMIAnalytics = (require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics;
ICYMIAnalytics.trackFeedOnboardingScreenSkipped({location: 'guilds'});
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
@@ -0,0 +1,10 @@
/* Metro module 14830; source: modules/icymi/native/info_modal/ICYMIInfoModalTypes.tsx; dependencies: [2] */
function _fun111912(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15027:6, offset: 0x023b79de, size: 135 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/info_modal/ICYMIInfoModalTypes.tsx');
exports.ICYMI_INFO_MODAL_KEY = 'icymi-info-modal';
exports.ICYMI_DISCOVERABLE_GUILDS_PAGE_SIZE = 48;
exports.ICYMIInfoScreens = {DEFAULT: 'default', TOPICS_CLOUD: 'topics_cloud', JOIN_GUILDS: 'join_guilds'};
}
@@ -0,0 +1,204 @@
/* Metro module 14831; source: modules/icymi/native/info_modal/ICYMIInfoScreen.tsx; dependencies: [57, 5, 31, 27, 482, 33, 4501, 697, 5314, 1585, 4048, 1484, 9589, 14832, 5080, 9603, 9611, 1244, 5475, 14834, 14835, 14836, 14837, 4573, 9390, 10229, 4073, 4080, 14838, 1962, 4578, 2] */
function _fun111913(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:6, offset: 0x023b7a65, size: 818 bytes, params: 8, frame: 25
var object2;
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 = importDefault(5) /* metro dependency 5 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_6 = value.View;
const env0_7 = value.ScrollView;
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 = value.Fragment;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object2.container = {'backgroundColor': null, 'position': 'relative', 'flex': 1,
backgroundColor: BACKGROUND_BASE_LOWER};
const NAV_BAR_HEIGHT = (require(5314) /* metro dependency 5314: NavigatorConstantsNative */).NAV_BAR_HEIGHT;
object2.closeIcon = {'position': 'absolute', 'justifyContent': 'center', 'left': 12, 'width': 24, 'height': null,
'zIndex': 2, height: NAV_BAR_HEIGHT};
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
object2.closeIconColor = {backgroundColor: MOBILE_TEXT_HEADING_PRIMARY};
object2.bgImage = {'position': 'absolute', 'top': 0, 'left': 0, 'width': '100%', 'aspectRatio': 1.2515923566878981,
'overflow': 'visible'};
object2.headerImg = {'position': 'absolute', 'top': 16, 'width': 361, 'height': 240};
object2.flashIcon = {'marginBottom': 32, 'marginTop': 132};
object2.subContainer = {'flex': 1, 'paddingHorizontal': 16, 'paddingTop': 16};
object2.header = {'alignItems': 'center', 'paddingHorizontal': 12};
object2.headerText = {'textAlign': 'center', 'marginTop': 8};
const object3 = {'gap': 16, 'padding': 16, 'backgroundColor': null, 'borderRadius': null, 'marginTop': 40};
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
object3.backgroundColor = CARD_BACKGROUND_DEFAULT;
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object2.body = object3;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object2.divider = {'height': 1, 'backgroundColor': null, 'marginLeft': 48, backgroundColor: BORDER_SUBTLE};
object2.infoRow = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'overflow': 'hidden',
'gap': 16};
const object4 = {padding: 8};
const REDESIGN_BUTTON_TERTIARY_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_BUTTON_TERTIARY_BACKGROUND;
object4.backgroundColor = REDESIGN_BUTTON_TERTIARY_BACKGROUND;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.infoIcon = object4;
object2.infoText = {flexShrink: 1};
object2.hint = {margin: 12};
const object6 = {'position': 'absolute', 'bottom': 0};
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object6.left = PX_24;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object6.right = PX_24;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object6.paddingBottom = PX_8;
object2.footer = object6;
const env0_12 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/info_modal/ICYMIInfoScreen.tsx');
exports.default = ICYMIInfoScreen;
}
function ICYMIInfoScreen({extendedOnboarding}) { // fn#111914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:1557, offset: 0x023b7d97, size: 1924 bytes, params: 2, frame: 44
const styles = useStyles();
const {top, bottom} = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
const value3 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
const value4 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const binding = env0_5;
const value6 = binding.useCallback(env0_4(_fun111916), [extendedOnboarding, value4]);
binding.useLayoutEffect(_fun111919, [value4]);
const [property, env0_2] = env0_3(binding.useState(false), 2);
const jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
const items4 = [{marginTop: top}];
items4[1] = styles.closeIcon;
const HeaderIconButton = (require(9603) /* metro dependency 9603: HeaderShared */).HeaderIconButton;
const object = {source: importDefault(9611) /* metro dependency 9611 */, onPress: onPress_111921};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object.accessibilityLabel = Reflect.apply(string, intl, [t.cpT0Cq]);
object.color = styles.closeIconColor.backgroundColor;
const items2 = [<View style={items4}><HeaderIconButton {...object} /></View>];
const items3 = [styles.container];
items3[1] = {marginBottom: bottom};
const value10 = ((Component) => <Component source={{uri: importDefault(14834) /* metro dependency 14834: bgFade3xPng */}} style={styles.bgImage} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
const items5 = [styles.subContainer];
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
items5[1] = {marginTop: top + PX_12};
const FastImage = importDefault(5475) /* metro dependency 5475: FastImage */;
const object2 = {};
const LIGHT = ThemeTypes.LIGHT;
object2.uri = value3 === LIGHT ? importDefault(14835) /* metro dependency 14835: headerImageLight3xPng */ : importDefault(14836) /* metro dependency 14836: headerImageDark3xPng */;
const items6 = [<FastImage source={object2} style={styles.headerImg} />];
items6[1] = <FastImage source={importDefault(14837) /* metro dependency 14837 */} style={styles.flashIcon} />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items6[2] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['jnXV/V'])}</Text>;
items6[3] = <Text variant="text-md/normal" color="text-default" style={styles.headerText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9SjvoK'])}</Text>;
const view = <View style={styles.header}>{items6}</View>;
let infoRow = styles.infoRow;
let infoIcon = styles.infoIcon;
const ServerIcon = (require(9390) /* metro dependency 9390: ServerIcon */).ServerIcon;
const view2 = <View style={infoIcon}><ServerIcon size="sm" color="interactive-text-active" /></View>;
let infoText = styles.infoText;
const items9 = [<View style={infoRow}>{view2}<Text variant="text-md/medium" color="mobile-text-heading-primary" style={infoText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.knxfqR)}</Text></View>];
items9[1] = <View style={styles.divider} />;
infoRow = styles.infoRow;
infoIcon = styles.infoIcon;
const NewUserIcon = (require(10229) /* metro dependency 10229: NewUserIcon */).NewUserIcon;
const view3 = <View style={infoIcon}><NewUserIcon size="sm" color="interactive-text-active" /></View>;
infoText = styles.infoText;
string = intl.string;
const BnUXZi = (require(1244) /* metro dependency 1244: indexNative */).t.BnUXZi;
items9[2] = <View style={infoRow}>{view3}<Text variant="text-md/medium" color="mobile-text-heading-primary" style={infoText}>{Reflect.apply(string,
intl, [BnUXZi])}</Text></View>;
items9[3] = <View style={styles.divider} />;
infoRow = styles.infoRow;
infoIcon = styles.infoIcon;
const CircleCheckIcon = (require(4073) /* metro dependency 4073: CircleCheckIcon */).CircleCheckIcon;
items9[4] = <View style={infoRow}><View style={infoIcon}><CircleCheckIcon size="sm" color="interactive-text-active" /></View><Text variant="text-md/medium" color="mobile-text-heading-primary" style={styles.infoText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.itb1rh)}</Text></View>;
items2[1] = <ScrollView style={items3}>{value10}<View style={items5}>{view}<View><View style={styles.body}>{items9}</View><Text variant="text-xs/medium" color="text-muted" style={styles.hint}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['jVS/hc'],
{feedbackHook: feedbackHook})}</Text></View></View></ScrollView>;
const items13 = [{marginBottom: bottom}];
items13[1] = styles.footer;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
items2[2] = <View style={items13}><Button size="lg" loading={property} text={extendedOnboarding ? Reflect.apply(string,
intl, [t.LhlgY9]) : Reflect.apply(string, intl, [t['+IrDzN']])} onPress={value6} /></View>;
return (
<>
{items2}
</>
);
}
function* _fun111916() { // fn#111916, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:1706, offset: 0x023b8526, size: 186 bytes, params: 1, frame: 18
var environment;
var binding;
var binding2;
if (true) {
value = environment.__proto__;
if (require) {
binding = env2_0;
binding2 = env2_2;
binding(binding2[12]).ICYMIAnalytics.trackFeedOnboardingScreenSkipped({location: 'overview'});
dependencyMap(true);
value = binding(binding2[13]);
yield value.maybeFetchGuildDiscoveryCategories();
value = undefined;
if (false) {
return value;
}
global.setTimeout(function() {
importDefault.navigate('topics_cloud');
global.setTimeout(_fun111918, 500);
}, 100);
} else {
env2_1(env2_2[14]).pop();
}
}
}
function _fun111919() { // fn#111919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:1983, offset: 0x023b8619, size: 37 bytes, params: 1, frame: 12
env0_1.setOptions({header: function() {
return null;
}});
}
function ICYMIInfoScreenOnPress() { // fn#111921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:2194, owner: ICYMIInfoScreen.onPress, offset: 0x023b863e, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
function feedbackHook(a0, a1) { // fn#111922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:3993, owner: ICYMIInfoScreen.feedbackHook, offset: 0x023b8663, size: 80 bytes, params: 3, frame: 15
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
variant="text-xs/medium"
color="text-link"
onPress={onPress_111923}
key={a1}
>
{a0}
</Text>
);
}
function _fun111917() { // fn#111917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:1871, offset: 0x023b85e0, size: 57 bytes, params: 1, frame: 13
importDefault.navigate('topics_cloud');
global.setTimeout(function() {
return dependencyMap(false);
}, 500);
}
function feedbackHookOnPress() { // fn#111923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:4068, owner: ICYMIInfoScreen.feedbackHook.onPress, offset: 0x023b86b3, size: 82 bytes, params: 1, frame: 16
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(dependencyMap[27]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[29]);
value = value(dependencyMap[28], dependencyMap.paths);
return Reflect.apply(openLazy, defaultImport, [value, 'ICYMIFeedbackSheet', {}]);
}
@@ -0,0 +1,474 @@
/* Metro module 14847; source: modules/icymi/native/info_modal/ICYMIJoinGuildsScreen.tsx; dependencies: [5, 57, 31, 27, 4502, 1867, 14846, 661, 33, 14815, 697, 6819, 9390, 4017, 4504, 8671, 566, 1423, 7599, 5475, 5278, 4573, 4578, 4073, 1244, 1585, 9589, 9580, 3857, 5080, 14830, 8416, 2] */
function _fun112165(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:6, offset: 0x023bd37a, size: 395 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_6 = value.View;
const env0_7 = value.StyleSheet;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const icymiPopularGuildsStore = importDefault(14846) /* metro dependency 14846: ICYMIPopularGuildsStore */;
const env0_11 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
value = require(33) /* metro dependency 33 */;
const env0_12 = value.jsx;
const env0_13 = value.jsxs;
const env0_14 = value.Fragment;
const env0_16 = (require(14815) /* metro dependency 14815: createICYMIStyles */).createICYMIStyles(_fun112177);
object = {code: 'function ICYMIJoinGuildsScreenTsx1(){const{withTiming,selectedGuilds,SELECTED_SERVER_SIZE_WITH_BORDER,tokens}=this.__closure;return{opacity:withTiming(selectedGuilds.length>0?1:0),height:withTiming(selectedGuilds.length>0?SELECTED_SERVER_SIZE_WITH_BORDER:0),marginTop:withTiming(selectedGuilds.length>0?tokens.space.PX_24:0)};}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/info_modal/ICYMIJoinGuildsScreen.tsx');
exports.default = ICYMIJoinGuildsScreen;
}
function SelectedServerIcon({guild, index}) { // fn#112166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:2079, offset: 0x023bd505, size: 278 bytes, params: 2, frame: 23
const value2 = env0_16();
const value3 = index < 3;
return (
<View
style={[value2.selectedServerIcon, guild == null && value2.noServerContainer,
guild == null && !value3 && value2.noServerExtraContainer]}
>
{guild != null ? ((Component) => <Component style={value2.guildIconBorder} guild={guild} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.LARGE} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */) : value3 ? ((ServerIcon) => <ServerIcon size="md" color={(importDefault(697) /* metro dependency 697: native */).colors.ICON_MUTED} />)((require(9390) /* metro dependency 9390: ServerIcon */).ServerIcon) : null}
</View>
);
}
function SelectedServersRow({selectedGuilds}) { // fn#112167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:2768, offset: 0x023bd61b, size: 549 bytes, params: 2, frame: 25
var object2;
const value2 = env0_16();
let binding = env0_5;
const value3 = binding.useCallback(_fun112168, [selectedGuilds]);
binding = env0_5;
const useState = binding.useState;
const value5 = env0_4(Reflect.apply(useState, binding, [selectedGuilds.length]), 2);
const property = value5[0];
const env0_2 = value5[1];
const value6 = env0_5.useRef(null);
env0_5.useEffect(_fun112169, [property, selectedGuilds.length]);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const closure = SelectedServersRow_;
object2 = {withTiming: (require(4504) /* metro dependency 4504: timing */).withTiming,
selectedGuilds: selectedGuilds, SELECTED_SERVER_SIZE_WITH_BORDER: env0_15};
object2.tokens = importDefault(697) /* metro dependency 697: native */;
closure.__closure = object2;
closure.__workletHash = 2911488630455;
closure.__initData = env0_17;
const value7 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const items2 = [value2.selectedServersRowContainer, value7];
const FastestListAndroid = importDefault(8671) /* metro dependency 8671: FastestListAndroid */;
const defaultImportProps = {ref: value6, sections: [selectedGuilds.length >= 3 ? selectedGuilds.length + 1 : 3]};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
defaultImportProps.insetStart = PX_24;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
defaultImportProps.insetEnd = PX_12;
defaultImportProps.renderItem = value3;
defaultImportProps.estimatedListSize = 'windowSize';
binding = env0_15;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
defaultImportProps.itemSize = binding + PX_12;
defaultImportProps.horizontal = true;
defaultImportProps.listId = 'selected-servers-list';
defaultImportProps.showsHorizontalScrollIndicator = false;
return (
<View style={items2}>
<FastestListAndroid {...defaultImportProps} />
</View>
);
}
function CutoutGuildBanner({guild}) { // fn#112171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:3869, offset: 0x023bd9d1, size: 514 bytes, params: 2, frame: 26
var object2;
const value3 = env0_16();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const value4 = !useReducedMotion;
const r15 = guild.banner != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getAnimatableSourceWithFallback(useReducedMotion ? value4 : guild.features.has(GuildFeatures.ANIMATED_BANNER),
_fun112173) : undefined;
object2 = {style: value3.bannerImage};
const ClipView = importDefault(7599) /* metro dependency 7599: ClipView */;
const CutoutShape = (require(7599) /* metro dependency 7599: ClipView */).CutoutShape;
const RoundedRect = CutoutShape.RoundedRect;
const clipView = <ClipView cutouts={[{'shape': null, 'x': 8, 'y': 46, 'width': 56, 'height': 56, 'cornerRadius': 20,
shape: RoundedRect}]}>{guild.banner != null ? ((Component) => <Component style={value3.bannerImage} source={r15} resizeMode="cover" />)(importDefault(5475) /* metro dependency 5475: FastImage */) : <View style={[value3.bannerImage,
value3.emptyBanner]} />}</ClipView>;
const GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
const items4 = [value3.guildIcon];
items4[1] = value3.guildIconBorder;
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
const LARGE = GuildIconSizes.LARGE;
return (
<View {...object2}>
{clipView}
<GuildIcon
style={items4}
guild={guild}
size={LARGE}
animate={value4}
/>
</View>
);
}
function FeaturedServer({guild, selected, loading, handlePress}) { // fn#112174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:4538, offset: 0x023bdc1a, size: 744 bytes, params: 2, frame: 36
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const value3 = env0_16();
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun112175);
const value5 = env0_5.useCallback(function() {
handlePress(guild);
}, [guild, handlePress]);
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
const backgroundColor = value3.pressableUnderlayColor.backgroundColor;
const featuredServerContainer = value3.featuredServerContainer;
const cutoutGuildBanner = <CutoutGuildBanner guild={guild} />;
const featuredServerInnerContainer = value3.featuredServerInnerContainer;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const items2 = [<Text maxFontSizeMultiplier={1} style={value3.featuredServerTitle} variant="text-md/semibold" color="mobile-text-heading-primary">{guild.name}</Text>];
items2[1] = <Text maxFontSizeMultiplier={1} lineClamp={2} variant="text-xs/normal" color="text-default">{guild.description}</Text>;
const buttonContainer = value3.buttonContainer;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[2] = <View style={buttonContainer}><Button accessibilityHint="checkbox" accessibilityState={{checked: selected}} disabled={value4} icon={selected ? ((CircleCheckIcon) => <CircleCheckIcon size="sm" color={(importDefault(697) /* metro dependency 697: native */).colors.CONTROL_CONNECTED_TEXT_DEFAULT} />)((require(4073) /* metro dependency 4073: CircleCheckIcon */).CircleCheckIcon) : undefined} text={value4 ? loading ? selected ? intl.string(t['TwueC+']) : intl.string(t.XqMe3N) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cEnaWx) : selected ? intl.string(t['TwueC+']) : intl.string(t.XqMe3N)} size="sm" onPress={value5} variant={value4 ? 'secondary' : selected ? 'active' : 'secondary'} grow /></View>;
return (
<PressableHighlight
underlayColor={backgroundColor}
unstable_pressDelay={50}
style={featuredServerContainer}
onPress={value5}
>
{cutoutGuildBanner}
<View style={featuredServerInnerContainer}>
{items2}
</View>
</PressableHighlight>
);
}
function _fun112177(a0) { // fn#112177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:288, offset: 0x023bdf02, size: 999 bytes, params: 2, frame: 19
const object2 = {};
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object2.container = {'backgroundColor': null, 'position': 'relative', 'flex': 1,
backgroundColor: BACKGROUND_BASE_LOWER, marginHorizontal: a0.margin};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.scrollContentContainer = {paddingTop: PX_8};
const object3 = {'position': 'absolute', 'bottom': 0};
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.left = PX_24;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.right = PX_24;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.paddingBottom = PX_8;
object2.footer = object3;
const object6 = {};
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object6.marginTop = PX_24;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object6.marginBottom = PX_8;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object6.marginHorizontal = PX_24;
object2.title = object6;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.subtitle = {marginHorizontal: PX_24};
const object9 = {};
object9.height = StyleSheet.hairlineWidth;
object9.width = '100%';
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object9.backgroundColor = BORDER_SUBTLE;
object2.separator = object9;
const object10 = {};
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
object10.backgroundColor = CARD_BACKGROUND_DEFAULT;
object10.overflow = 'hidden';
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object10.marginHorizontal = PX_8;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object10.marginVertical = PX_8;
object2.featuredServerContainer = object10;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.featuredServerInnerContainer = {marginHorizontal: PX_12, marginTop: 36};
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.buttonContainer = {marginBottom: PX_12, marginTop: a0.margin};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.featuredServerTitle = {marginBottom: PX_8};
object2.guildIcon = {'position': 'absolute', 'top': 50, 'left': 12};
object2.bannerImage = {'height': 73, 'width': '100%'};
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object2.emptyBanner = {backgroundColor: BACKGROUND_MOD_SUBTLE};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.guildsScrollContainer = {flex: 1, marginHorizontal: PX_8};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.guildsColumn = {'flex': 1, 'flexDirection': 'column', gap: PX_16};
const object11 = {height: env0_15, width: '100%'};
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object11.marginBottom = PX_24;
object2.selectedServersRowContainer = object11;
const object12 = {'flex': 1, 'width': null, 'height': null, 'alignItems': 'center', 'justifyContent': 'center'};
object12.width = env0_15;
object12.height = env0_15;
const BORDER_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_STRONG;
object12.borderColor = BORDER_STRONG;
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object12.borderWidth = 1;
object2.selectedServerIcon = object12;
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
object2.noServerContainer = {backgroundColor: BACKGROUND_MOD_MUTED, borderStyle: 'dashed'};
object2.noServerExtraContainer = {opacity: 0.4};
const INTERACTIVE_BACKGROUND_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_BACKGROUND_ACTIVE;
object2.pressableUnderlayColor = {backgroundColor: INTERACTIVE_BACKGROUND_ACTIVE};
const object13 = {};
object13.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object2.guildIconBorder = object13;
return object2;
}
function ICYMIJoinGuildsScreen() { // fn#112178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:5789, offset: 0x023be2e9, size: 1139 bytes, params: 1, frame: 36
var r5;
var object9;
var Button;
var object11;
const value2 = env0_16();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([ICYMIPopularGuildsStore],
function() {
return ICYMIPopularGuildsStore.getOnboardingGuilds();
});
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([ICYMIPopularGuildsStore],
function() {
return ICYMIPopularGuildsStore.getOnboardingCategoryIds();
});
const currentOnboardingGuildOffset = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIPopularGuildsStore],
function() {
return ICYMIPopularGuildsStore.getCurrentOnboardingGuildOffset();
});
const binding = env0_5Binding;
const useState = binding.useState;
const Set = global.Set;
const value5 = Object.create(Set.prototype, {constructor: {value: Set}});
const set = new Set();
const value8 = env0_4(Reflect.apply(useState, binding, [set instanceof Object ? set : value5]), 2);
const property = value8[0];
const env0_3 = property;
var env0_4 = value8[1];
var [property2, env0_5] = env0_4(env0_5Binding.useState([]), 2);
const [property3, env0_7] = env0_4(env0_5Binding.useState(0), 2);
const value13 = env0_5Binding.useCallback(_fun112182, [property]);
const [property4, env0_10] = env0_4(env0_5Binding.useState(false), 2);
const value17 = env0_5Binding.useCallback(env0_3(_fun112189), [property]);
const value18 = env0_5Binding.useCallback(_fun112190, [value4, currentOnboardingGuildOffset, property3,
value3.length]);
const value19 = env0_5Binding.useCallback(_fun112191, [property4, property, value13]);
const jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const title = value2.title;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const items2 = [<Text variant="heading-xl/semibold" color="mobile-text-heading-primary" style={title}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['19ldCF'])}</Text>];
items2[1] = <Text variant="text-sm/normal" color="text-muted" style={value2.subtitle}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.u0KPUS)}</Text>;
items2[2] = <SelectedServersRow selectedGuilds={property2} />;
items2[3] = <View style={value2.separator} />;
const guildsScrollContainer = value2.guildsScrollContainer;
const MasonryFlashList = (require(8416) /* metro dependency 8416: flashList */).MasonryFlashList;
items2[4] = <View style={guildsScrollContainer}><MasonryFlashList data={value3} extraData={property} contentContainerStyle={value2.scrollContentContainer} contentInset={{bottom: 72 + bottom}} numColumns={2} onEndReached={value18} onEndReachedThreshold={0.5} showsHorizontalScrollIndicator={false} showsVerticalScrollIndicator={false} renderItem={value19} estimatedItemSize={229} /></View>;
const value21 = property.size >= 1;
if (value21) {
var viewProps = {style: [{marginBottom: bottom}, value2.footer]};
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
r5 = <View {...viewProps}><Button loading={property4} size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.K50GHd)} onPress={value17} /></View>;
} else {
r5 = value21;
}
items2[5] = r5;
return (
<>
{items2}
</>
);
}
function _fun112168(a0, a1) { // fn#112168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:2843, offset: 0x023bd840, size: 63 bytes, params: 3, frame: 17
return <SelectedServerIcon guild={a1 < selectedGuilds.length ? selectedGuilds[a1] : undefined} index={a1} />;
}
function _fun112169() { // fn#112169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:2993, offset: 0x023bd87f, size: 136 bytes, params: 1, frame: 13
var current;
if (env0_1 < selectedGuilds.length) {
current = env0_3.current;
if (current != null) {
current.scrollToLocation({'animated': true, 'section': 0, item: selectedGuilds.length});
}
env0_2(selectedGuilds.length);
} else if (env0_1 !== selectedGuilds.length) {
env0_2(selectedGuilds.length);
}
}
function SelectedServersRow_() { // fn#112170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:3188, owner: SelectedServersRow._, offset: 0x023bd907, size: 202 bytes, params: 1, frame: 18
const object2 = {};
const timingModule = require(4504) /* metro dependency 4504: timing */;
let withTiming = timingModule.withTiming;
const length = selectedGuilds.length;
const value3 = 0;
object2.opacity = Reflect.apply(withTiming, timingModule, [length > value3 ? 1 : value3]);
const moduleValue2 = timingModule;
object2.height = moduleValue2.withTiming(selectedGuilds.length > value3 ? env1_15 : value3);
const moduleValue3 = timingModule;
withTiming = moduleValue3.withTiming;
const PX_24 = selectedGuilds.length > value3 ? (importDefault(697) /* metro dependency 697: native */).space.PX_24 : value3;
object2.marginTop = Reflect.apply(withTiming, moduleValue3, [PX_24]);
return object2;
}
function _fun112173(a0) { // fn#112173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:4078, offset: 0x023bdbd3, size: 71 bytes, params: 2, frame: 14
let value = environment.__proto__;
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
const getGuildBannerSource = value.getGuildBannerSource;
const guildBinding = guild;
return Reflect.apply(getGuildBannerSource, value, [{id: guildBinding.id, banner: guildBinding.banner}, a0]);
}
function _fun112182(a0) { // fn#112182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:6215, offset: 0x023be79b, size: 174 bytes, params: 2, frame: 18
const env0_0 = a0;
const ICYMIAnalytics = (require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics;
const trackFeedOnboardingGuildToggled = ICYMIAnalytics.trackFeedOnboardingGuildToggled;
let binding = env0_3;
Reflect.apply(trackFeedOnboardingGuildToggled, ICYMIAnalytics, [{guildId: a0.id, toggled: !binding.has(a0.id)}]);
const value2 = binding.has(a0.id);
binding = env0_4;
if (value2) {
binding(_fun112183);
binding = env0_5;
binding(function(a0) {
return a0.filter(_fun112185);
});
} else {
binding(_fun112186);
binding = env0_5;
binding(_fun112187);
}
}
function* _fun112189() { // fn#112189, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:6515, offset: 0x023be8fa, size: 499 bytes, params: 1, frame: 23
var popWithKey;
var ICYMI_INFO_MODAL_KEY;
var binding4;
if (true) {
value = environment.__proto__;
ICYMIPopularGuildsStore(true);
var binding = env2_1;
var value4 = binding(env2_2[27]);
var gravityJoinGuild = value4.gravityJoinGuild;
var Array = global.Array;
yield Reflect.apply(gravityJoinGuild, value4, [Array.from(env1_3), 'icymi_info_modal']);
if (false) {
return undefined;
}
binding = env2_1;
var binding2 = env2_2;
if (value) {
value = binding(binding2[27]);
yield value.fetchDehydrated({'isReloading': true, 'forceRefresh': true});
value = undefined;
if (false) {
return value;
}
binding = env2_1;
value = binding(env2_2[27]);
yield value.reloadICYMITab();
value = undefined;
if (false) {
return value;
}
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[27]);
value.getGuildChannelScores();
value = binding(binding4[27]);
value.getRecommendedGuilds();
value = binding(binding4[29]);
popWithKey = value.popWithKey;
binding = env2_0;
ICYMI_INFO_MODAL_KEY = binding(binding4[30]).ICYMI_INFO_MODAL_KEY;
} else {
value = binding(binding2[28]);
var open = value.open;
var binding3 = env2_0;
var intl = binding3(binding2[24]).intl;
var string = intl.string;
var CG4Hks = binding3(binding2[24]).t.CG4Hks;
Reflect.apply(open, value, [{key: 'ICYMIInfoModal', content: Reflect.apply(string, intl, [CG4Hks])}]);
value = binding(binding2[27]);
value.fetchDehydrated();
value = binding(binding2[27]);
value.getGuildChannelScores();
value = binding(binding2[27]);
value.getRecommendedGuilds();
value = binding(binding2[29]);
popWithKey = value.popWithKey;
ICYMI_INFO_MODAL_KEY = binding3(binding2[30]).ICYMI_INFO_MODAL_KEY;
}
Reflect.apply(popWithKey, value, [ICYMI_INFO_MODAL_KEY]);
}
}
function _fun112190() { // fn#112190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:7084, offset: 0x023beaed, size: 115 bytes, params: 1, frame: 16
var value2;
var value3;
const binding = env0_6;
let currentOnboardingGuildOffsetBinding = currentOnboardingGuildOffset;
if (!(binding > currentOnboardingGuildOffsetBinding)) {
if (!(env0_0.length >= 150)) {
currentOnboardingGuildOffsetBinding = currentOnboardingGuildOffset;
value2 = environment.__proto__;
value3 = currentOnboardingGuildOffsetBinding + (require(14830) /* metro dependency 14830: ICYMIInfoModalTypes */).ICYMI_DISCOVERABLE_GUILDS_PAGE_SIZE;
env0_7(value3);
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).fetchPopularGuildsFromCategories(env0_1,
value3);
}
}
}
function _fun112191({item}) { // fn#112191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:7258, offset: 0x023beb60, size: 86 bytes, params: 2, frame: 18
const binding = env0_3;
return (
<FeaturedServer
guild={item}
loading={env0_9}
selected={binding.has(item.id)}
handlePress={env0_8}
key={item.id}
/>
);
}
function _fun112183(a0) { // fn#112183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:6328, offset: 0x023be849, size: 58 bytes, params: 2, frame: 11
a0.delete(env0_0.id);
const Set = global.Set;
const value = Object.create(Set.prototype, {constructor: {value: Set}});
const set = new Set(a0);
return set instanceof Object ? set : value;
}
function _fun112184(a0) { // fn#112184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:6364, offset: 0x023be883, size: 24 bytes, params: 2, frame: 11
return a0.filter(_fun112185);
}
function _fun112186(a0) { // fn#112186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:6401, offset: 0x023be8b5, size: 58 bytes, params: 2, frame: 11
a0.add(env0_0.id);
const Set = global.Set;
const value = Object.create(Set.prototype, {constructor: {value: Set}});
const set = new Set(a0);
return set instanceof Object ? set : value;
}
function _fun112185({id}) { // fn#112185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15044:6377, offset: 0x023be89b, size: 26 bytes, params: 2, frame: 2
const id = env1_0.id;
return id !== id;
}
@@ -0,0 +1,229 @@
/* Metro module 14839; source: modules/icymi/native/info_modal/ICYMITopicsScreen.tsx; dependencies: [5, 57, 31, 27, 14833, 14840, 33, 8658, 8835, 6698, 14841, 8841, 6686, 13167, 13140, 9411, 14842, 8656, 14844, 8659, 11141, 4501, 697, 3874, 4578, 1585, 1484, 14846, 1962, 9580, 3857, 1244, 566, 9589, 4573, 2] */
function _fun111983(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:6, offset: 0x023b9cee, size: 720 bytes, params: 8, frame: 24
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_6 = value.View;
const StyleSheet = value.StyleSheet;
const env0_7 = value.ScrollView;
const guildDiscoveryCategoryStore = importDefault(14833) /* metro dependency 14833: GuildDiscoveryCategoryStore */;
const env0_9 = (require(14840) /* metro dependency 14840: GuildSettingsDiscoveryConstants */).GuildPrimaryCategory;
value = require(33) /* metro dependency 33 */;
const env0_10 = value.jsx;
const env0_11 = value.Fragment;
const env0_12 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object2.container = {backgroundColor: BACKGROUND_BASE_LOWER, flex: 1};
const object8 = {'position': 'absolute', 'bottom': 0};
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object8.left = PX_24;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object8.right = PX_24;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object8.paddingBottom = PX_8;
object2.footer = object8;
const object9 = {};
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object9.marginTop = PX_24;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object9.marginBottom = PX_8;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object9.marginHorizontal = PX_24;
object2.title = object9;
const object10 = {};
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object10.marginBottom = PX_24;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object10.marginHorizontal = PX_24;
object2.subtitle = object10;
const object11 = {};
object11.height = StyleSheet.hairlineWidth;
object11.width = '100%';
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object11.backgroundColor = BORDER_SUBTLE;
object2.separator = object11;
const object12 = {'flex': 1, 'marginHorizontal': null, 'flexWrap': 'wrap', 'flexDirection': 'row'};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object12.marginHorizontal = PX_16;
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object12.gap = PX_12;
object2.topicsContainer = object12;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.scrollContentContainer = {paddingTop: PX_24};
const env0_13 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/info_modal/ICYMITopicsScreen.tsx');
exports.default = ICYMITopicsScreen;
}
function WordTopic({topic, categoryid, selected, handlePress}) { // fn#111984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:953, offset: 0x023b9fbe, size: 1199 bytes, params: 2, frame: 21
var r0;
var Button;
var value;
const GAMING = GuildPrimaryCategory.GAMING;
const r5 = GAMING === categoryid ? ((GameControllerIcon) => <GameControllerIcon size="md" color="redesign-button-tertiary-text" />)((require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon) : GuildPrimaryCategory.ENTERTAINMENT === categoryid ? ((TvIcon) => <TvIcon size="md" color="redesign-button-tertiary-text" />)((require(8835) /* metro dependency 8835: TvIcon */).TvIcon) : GuildPrimaryCategory.GENERAL_CHATTING === categoryid ? ((ForumIcon) => <ForumIcon size="md" color="redesign-button-tertiary-text" />)((require(6698) /* metro dependency 6698: ForumIcon */).ForumIcon) : GuildPrimaryCategory.SCIENCE_AND_TECH === categoryid ? ((ScienceIcon) => <ScienceIcon size="md" color="redesign-button-tertiary-text" />)((require(14841) /* metro dependency 14841: ScienceIcon */).ScienceIcon) : GuildPrimaryCategory.MUSIC === categoryid ? ((MusicIcon) => <MusicIcon size="md" color="redesign-button-tertiary-text" />)((require(8841) /* metro dependency 8841: MusicIcon */).MusicIcon) : GuildPrimaryCategory.EDUCATION === categoryid ? ((BookCheckIcon) => <BookCheckIcon size="md" color="redesign-button-tertiary-text" />)((require(6686) /* metro dependency 6686: BookCheckIcon */).BookCheckIcon) : GuildPrimaryCategory.CREATIVE_ARTS === categoryid ? ((PaintPaletteIcon) => <PaintPaletteIcon size="md" color="redesign-button-tertiary-text" />)((require(13167) /* metro dependency 13167: PaintPaletteIcon */).PaintPaletteIcon) : GuildPrimaryCategory.FINANCE === categoryid ? ((PiggyBankIcon) => <PiggyBankIcon size="md" color="redesign-button-tertiary-text" />)((require(13140) /* metro dependency 13140: PiggyBankIcon */).PiggyBankIcon) : GuildPrimaryCategory.BOTS === categoryid ? ((RobotIcon) => <RobotIcon size="md" color="redesign-button-tertiary-text" />)((require(9411) /* metro dependency 9411: RobotIcon */).RobotIcon) : GuildPrimaryCategory.SPORTS === categoryid ? ((MedalIcon) => <MedalIcon size="md" color="redesign-button-tertiary-text" />)((require(14842) /* metro dependency 14842: MedalIcon */).MedalIcon) : GuildPrimaryCategory.TRAVEL_AND_FOOD === categoryid ? ((FoodIcon) => <FoodIcon size="md" color="redesign-button-tertiary-text" />)((require(8656) /* metro dependency 8656: FoodIcon */).FoodIcon) : GuildPrimaryCategory.FASHION_AND_BEAUTY === categoryid ? ((PaintbrushThinIcon) => <PaintbrushThinIcon size="md" color="redesign-button-tertiary-text" />)((require(14844) /* metro dependency 14844: PaintbrushThinIcon */).PaintbrushThinIcon) : GuildPrimaryCategory.FITNESS_AND_HEALTH === categoryid ? ((BicycleIcon) => <BicycleIcon size="md" color="redesign-button-tertiary-text" />)((require(8659) /* metro dependency 8659: BicycleIcon */).BicycleIcon) : categoryid !== 16 ? undefined : ((PencilSparkleIcon) => <PencilSparkleIcon size="md" color="redesign-button-tertiary-text" />)((require(11141) /* metro dependency 11141: PencilSparkleIcon */).PencilSparkleIcon);
const {accessibilityRole,
accessibilityState} = (require(3874) /* metro dependency 3874: useA11yRolesNative */).useCheckboxA11yNative({checked: selected});
if (r5 == null) {
r0 = null;
} else {
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
value = 'tertiary';
value = <Button accessibilityRole={accessibilityRole} accessibilityState={accessibilityState} variant={selected ? 'primary' : value} text={topic} onPress={function() {
return handlePress(categoryid);
}} icon={r5} />;
r0 = value;
}
return r0;
}
function ICYMITopicsScreen() { // fn#111986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:2831, offset: 0x023ba46d, size: 836 bytes, params: 1, frame: 33
var r5;
var object8;
var Button;
var object10;
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const binding = env0_5;
let useState = binding.useState;
const Set = global.Set;
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
const set = new Set();
const value4 = Reflect.apply(useState, binding, [set instanceof Object ? set : value2]);
const binding2 = env0_4;
const value5 = binding2(value4, 2);
const property = value5[0];
const env0_1 = value5[1];
useState = binding.useState;
const value6 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property2 = value6[0];
const env0_2 = value6[1];
const value7 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const value9 = binding.useCallback(value7(_fun111988), [value7, property]);
const value10 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([GuildDiscoveryCategoryStore],
function() {
return GuildDiscoveryCategoryStore.getAllCategories();
});
var env0_4 = binding.useCallback(_fun111991, [property]);
const jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const Y5d99L = (require(1244) /* metro dependency 1244: indexNative */).t.Y5d99L;
const items2 = [<Text variant="heading-xl/semibold" color="mobile-text-heading-primary" style={styles.title}>{Reflect.apply(string,
intl, [Y5d99L])}</Text>];
string = intl.string;
const MGZsfv = (require(1244) /* metro dependency 1244: indexNative */).t.MGZsfv;
items2[1] = <Text variant="text-sm/normal" color="text-muted" style={styles.subtitle}>{Reflect.apply(string, intl,
[MGZsfv])}</Text>;
items2[2] = <View style={styles.separator} />;
items2[3] = <ScrollView showsVerticalScrollIndicator={false} style={styles.container} contentContainerStyle={styles.scrollContentContainer} contentInset={{bottom: 72 + bottom}}><View style={styles.topicsContainer}>{value10.map(_fun111994)}</View></ScrollView>;
const value12 = property.size > 0;
if (value12) {
var viewProps = {style: [{marginBottom: bottom}, styles.footer]};
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
r5 = <View {...viewProps}><Button loading={property2} size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.PDTjLN)} onPress={value9} /></View>;
} else {
r5 = value12;
}
items2[4] = r5;
return (
<>
{items2}
</>
);
}
function* _fun111988() { // fn#111988, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:3021, offset: 0x023ba7bc, size: 311 bytes, params: 1, frame: 23
var environment;
var binding3;
var open;
var object2;
var intl;
if (true) {
value = environment.__proto__;
dependencyMap(true);
var binding = env2_0;
var binding2 = env2_2;
yield binding(binding2[28])(binding2[27], binding2.paths);
if (false) {
return undefined;
}
var value7 = env2_1(env2_2[29]);
var fetchPopularGuildsFromCategories = value7.fetchPopularGuildsFromCategories;
var Array = global.Array;
yield Reflect.apply(fetchPopularGuildsFromCategories, value7, [Array.from(require), 0]);
var value9 = undefined;
if (false) {
return value9;
}
if (value9) {
env1_3.push('join_guilds');
} else {
binding = env2_1;
binding3 = env2_2;
value = binding(binding3[30]);
open = value.open;
object2 = {key: 'ICYMIInfoModal'};
binding = env2_0;
intl = binding(binding3[31]).intl;
object2.content = intl.string(binding(binding3[31]).t.CG4Hks);
Reflect.apply(open, value, [object2]);
}
global.setTimeout(function() {
return dependencyMap(false);
}, 500);
}
}
function _fun111991(a0) { // fn#111991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:3366, offset: 0x023ba91a, size: 128 bytes, params: 2, frame: 17
const env0_0 = a0;
const ICYMIAnalytics = (require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics;
const trackFeedOnboardingCategoryToggled = ICYMIAnalytics.trackFeedOnboardingCategoryToggled;
let binding = env0_0;
Reflect.apply(trackFeedOnboardingCategoryToggled, ICYMIAnalytics, [{categoryId: a0, toggled: !binding.has(a0)}]);
const value2 = binding.has(a0);
binding = env0_1;
if (value2) {
binding(_fun111992);
} else {
binding(_fun111993);
}
}
function _fun111994(a0) { // fn#111994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:4049, offset: 0x023baa04, size: 91 bytes, params: 2, frame: 18
const binding = env0_0;
return (
<WordTopic
selected={binding.has(a0.categoryId)}
topic={a0.name}
categoryid={a0.categoryId}
handlePress={env0_4}
key={a0.categoryId}
/>
);
}
function _fun111992(a0) { // fn#111992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:3475, offset: 0x023ba99a, size: 53 bytes, params: 2, frame: 11
a0.delete(env0_0);
const Set = global.Set;
const value = Object.create(Set.prototype, {constructor: {value: Set}});
const set = new Set(a0);
return set instanceof Object ? set : value;
}
function _fun111993(a0) { // fn#111993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:3508, offset: 0x023ba9cf, size: 53 bytes, params: 2, frame: 11
a0.add(env0_0);
const Set = global.Set;
const value = Object.create(Set.prototype, {constructor: {value: Set}});
const set = new Set(a0);
return set instanceof Object ? set : value;
}