This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,135 +1,165 @@
/* 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] */
import ModalActionCreators from '../../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import ICYMIInfoScreen from './ICYMIInfoScreen.tsx'; /* Metro dependency 14831 */
import ICYMITopicsScreen from './ICYMITopicsScreen.tsx'; /* Metro dependency 14839 */
import ICYMIJoinGuildsScreen from './ICYMIJoinGuildsScreen.tsx'; /* Metro dependency 14847 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as AnalyticsUtilsModule from '../../../../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as HeaderActionButtonNativeModule from '../../../../design/components/Navigator/native/HeaderActionButton.native.tsx'; /* Metro dependency 5277 */
import * as NavigatorNativeModule from '../../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as ICYMIAnalyticsModule from '../../ICYMIAnalytics.tsx'; /* Metro dependency 9589 */
import * as ICYMIInfoModalTypesModule from './ICYMIInfoModalTypes.tsx'; /* Metro dependency 14830 */
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');
(FileImportTrackerModule).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 object = {extendedOnboarding: extendedOnboarding, skipIntro: skipIntro};
let value = ICYMIInfoModalUseScreens(object);
if (extendedOnboarding) {
StepModal = (require(12805) /* metro dependency 12805: StepModalNative */).StepModal;
object = {screens: value, steps: ReactModule.useMemo(_fun111911, [extendedOnboarding, skipIntro])};
ICYMIInfoScreens = (require(14830) /* metro dependency 14830: ICYMIInfoModalTypes */).ICYMIInfoScreens;
object.initialRouteName = skipIntro ? ICYMIInfoScreens.TOPICS_CLOUD : ICYMIInfoScreens.DEFAULT;
value = <StepModal {...object} />;
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 (NavigatorNativeModule).useNavigatorScreens(_fun111902,
[extendedOnboarding, skipIntro]);
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 object = {};
const value = environment.__proto__.__proto__;
const ICYMIInfoScreens = (ICYMIInfoModalTypesModule).ICYMIInfoScreens;
const DEFAULT = ICYMIInfoScreens.DEFAULT;
const object2 = {};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton();
object2.render = render_111903;
const ImpressionNames = (AnalyticsUtilsModule).ImpressionNames;
const ICYMI_ONBOARDING_OVERVIEW = ImpressionNames.ICYMI_ONBOARDING_OVERVIEW;
object2.impressionName = ICYMI_ONBOARDING_OVERVIEW;
object2.impressionProperties = {extended_onboarding: extendedOnboarding};
object[DEFAULT] = object2;
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;
object[TOPICS_CLOUD] = {headerLeft: r4, headerRight: headerRight_111905, render: render_111907,
impressionName: ICYMI_ONBOARDING_TOPICS};
const JOIN_GUILDS = ICYMIInfoScreens.JOIN_GUILDS;
const object5 = {};
object5.headerLeft = navigatorHeaderNativeModule.getHeaderBackButton();
object5.headerRight = headerRight_111908;
object5.render = render_111910;
const ICYMI_ONBOARDING_SELECT_GUILDS = ImpressionNames.ICYMI_ONBOARDING_SELECT_GUILDS;
object5.impressionName = ICYMI_ONBOARDING_SELECT_GUILDS;
object[JOIN_GUILDS] = object5;
return object;
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} />)(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_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 = (ICYMIAnalyticsModule).ICYMIAnalytics;
ICYMIAnalytics.trackFeedOnboardingScreenSkipped({location: 'topics'});
(ModalActionCreators).pop();
}
}
function render_111907() { // fn#111907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:996, offset: 0x023b7803, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(ICYMITopicsScreen);
}
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 = (HeaderActionButtonNativeModule).HeaderActionButton;
const intl = (IndexNativeModule).intl;
return (
<HeaderActionButton
text={intl.string((IndexNativeModule).t['5Wxrcd'])}
onPress={onPress_111909}
/>
);
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 = (ICYMIAnalyticsModule).ICYMIAnalytics;
ICYMIAnalytics.trackFeedOnboardingScreenSkipped({location: 'guilds'});
(ModalActionCreators).pop();
}
}
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 />)(ICYMIJoinGuildsScreen);
}
}
}
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 = (ICYMIInfoModalTypesModule).ICYMIInfoScreens;
return extendedOnboarding ? skipIntro ? [ICYMIInfoScreens.TOPICS_CLOUD,
ICYMIInfoScreens.JOIN_GUILDS] : [ICYMIInfoScreens.DEFAULT, ICYMIInfoScreens.TOPICS_CLOUD,
ICYMIInfoScreens.JOIN_GUILDS] : [ICYMIInfoScreens.DEFAULT];
}
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();
}
global.__d(_fun111899, 14829, [31, 33, 5280, 14830, 5282, 14831, 480, 5080, 5277, 1244, 9589, 14839, 14847, 10121,
12805,
2]) /* metro module 14829, dependencies: [31, 33, 5280, 14830, 5282, 14831, 480, 5080, 5277, 1244, 9589, 14839, 14847, 10121, 12805, 2] */;
@@ -1,10 +1,13 @@
/* Metro module 14830; source: modules/icymi/native/info_modal/ICYMIInfoModalTypes.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).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'};
}
global.__d(_fun111912, 14830, [2]) /* metro module 14830, dependencies: [2] */;
@@ -1,204 +1,318 @@
/* 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] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseSafeAreaInsetsNative from '../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import UseTheme from '../../../../hooks/useTheme.tsx'; /* Metro dependency 4048 */
import ModalActionCreators from '../../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import FastImage from '../../../../components_native/common/FastImage.tsx'; /* Metro dependency 5475 */
import Module09611 from '../../../../by-id/module-09611.js'; /* Metro dependency 9611 */
import BgFade3xPng from '../../../../external/discord_assets/assets/icymi/bg-fade-3x.png.js'; /* Metro dependency 14834 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as CircleCheckIconModule from '../../../../design/components/Icon/native/redesign/generated/CircleCheckIcon.tsx'; /* Metro dependency 4073 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as NavigatorConstantsNativeModule from '../../../../design/components/Navigator/native/NavigatorConstants.native.tsx'; /* Metro dependency 5314 */
import * as ServerIconModule from '../../../../design/components/Icon/native/redesign/generated/ServerIcon.tsx'; /* Metro dependency 9390 */
import * as HeaderSharedModule from '../../../main_tabs_v2/native/shared_components/HeaderShared.tsx'; /* Metro dependency 9603 */
import * as NewUserIconModule from '../../../../design/components/Icon/native/redesign/generated/NewUserIcon.tsx'; /* Metro dependency 10229 */
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 */;
let value = ReactNativeModule;
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 = {};
object = {};
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object2.container = {'backgroundColor': null, 'position': 'relative', 'flex': 1,
object.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,
const NAV_BAR_HEIGHT = (NavigatorConstantsNativeModule).NAV_BAR_HEIGHT;
object.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,
object.closeIconColor = {backgroundColor: MOBILE_TEXT_HEADING_PRIMARY};
object.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};
object.headerImg = {'position': 'absolute', 'top': 16, 'width': 361, 'height': 240};
object.flashIcon = {'marginBottom': 32, 'marginTop': 132};
object.subContainer = {'flex': 1, 'paddingHorizontal': 16, 'paddingTop': 16};
object.header = {'alignItems': 'center', 'paddingHorizontal': 12};
object.headerText = {'textAlign': 'center', 'marginTop': 8};
const object5 = {'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;
object5.backgroundColor = CARD_BACKGROUND_DEFAULT;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.body = object5;
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',
object.divider = {'height': 1, 'backgroundColor': null, 'marginLeft': 48, backgroundColor: BORDER_SUBTLE};
object.infoRow = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'overflow': 'hidden',
'gap': 16};
const object4 = {padding: 8};
const object7 = {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};
object7.backgroundColor = REDESIGN_BUTTON_TERTIARY_BACKGROUND;
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.infoIcon = object7;
object.infoText = {flexShrink: 1};
object.hint = {margin: 12};
const object8 = {'position': 'absolute', 'bottom': 0};
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object6.left = PX_24;
object8.left = PX_24;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object6.right = PX_24;
object8.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');
object8.paddingBottom = PX_8;
object.footer = object8;
const env0_12 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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;
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} = (UseSafeAreaInsetsNative)();
const value3 = (UseTheme)();
const value4 = (UseNavigationNativeModule).useNavigation();
const value6 = ReactModule.useCallback(Module00005(_fun111916), [extendedOnboarding, value4]);
ReactModule.useLayoutEffect(_fun111919, [value4]);
const [property, env0_2] = Module00057(ReactModule.useState(false), 2);
const jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
const items4 = [{marginTop: top}];
items4[1] = styles.closeIcon;
const HeaderIconButton = (HeaderSharedModule).HeaderIconButton;
const object3 = {source: Module09611, 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;
object3.accessibilityLabel = Reflect.apply(string, intl, [t.cpT0Cq]);
object3.color = styles.closeIconColor.backgroundColor;
const items2 = [
<View style={items4}>
<HeaderIconButton {...object3} />
</View>,
];
const items3 = [styles.container];
items3[1] = {marginBottom: bottom};
const value10 = ((Component) => <Component source={{uri: BgFade3xPng}} style={styles.bgImage} />)(FastImage);
const items5 = [styles.subContainer];
const PX_12 = (Native).space.PX_12;
items5[1] = {marginTop: top + PX_12};
const object4 = {};
const LIGHT = ThemeTypes.LIGHT;
object4.uri = value3 === LIGHT ? importDefault(14835) /* metro dependency 14835: headerImageLight3xPng */ : importDefault(14836) /* metro dependency 14836: headerImageDark3xPng */;
const items6 = [
<FastImage source={object4} style={styles.headerImg} />,
];
items6[1] = <FastImage source={importDefault(14837) /* metro dependency 14837 */} style={styles.flashIcon} />;
const Text = (TextModule).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 = (ServerIconModule).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 = (NewUserIconModule).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 = (CircleCheckIconModule).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 = (ButtonNativeModule).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();
}
}
global.setTimeout(function() {
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(_fun111918, 500);
}, 100);
} else {
env2_1(env2_2[14]).pop();
global.setTimeout(function() {
return dependencyMap(false);
}, 500);
function _fun111918() { // fn#111918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:1915, offset: 0x02080acc, size: 18 bytes, params: 1, frame: 11
return dependencyMap(false);
}
}
}
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 (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 = (TextModule).Text;
return (
<Text
variant="text-xs/medium"
color="text-link"
onPress={onPress_111923}
key={a1}
>
{a0}
</Text>
);
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', {}]);
}
}
}
}
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', {}]);
}
global.__d(_fun111913, 14831, [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]) /* metro module 14831, 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] */;
File diff suppressed because it is too large. Load diff
@@ -1,229 +1,338 @@
/* 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] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UseSafeAreaInsetsNative from '../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import GuildDiscoveryCategoryStore from '../../../global_discovery_servers/GuildDiscoveryCategoryStore.tsx'; /* Metro dependency 14833 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as UseA11yRolesNativeModule from '../../../../external/discord_common/js/packages/design/hooks/useA11yRolesNative.tsx'; /* Metro dependency 3874 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ICYMIAnalyticsModule from '../../ICYMIAnalytics.tsx'; /* Metro dependency 9589 */
import * as GuildSettingsDiscoveryConstantsModule from '../../../guild_settings/discovery/GuildSettingsDiscoveryConstants.tsx'; /* Metro dependency 14840 */
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 */;
let value = ReactNativeModule;
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 = {};
object = {};
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};
object.container = {backgroundColor: BACKGROUND_BASE_LOWER, flex: 1};
const object3 = {'position': 'absolute', 'bottom': 0};
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object8.left = PX_24;
object3.left = PX_24;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object8.right = PX_24;
object3.right = PX_24;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object8.paddingBottom = PX_8;
object2.footer = object8;
const object9 = {};
object3.paddingBottom = PX_8;
object.footer = object3;
const object4 = {};
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object9.marginTop = PX_24;
object4.marginTop = PX_24;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object9.marginBottom = PX_8;
object4.marginBottom = PX_8;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object9.marginHorizontal = PX_24;
object2.title = object9;
const object10 = {};
object4.marginHorizontal = PX_24;
object.title = object4;
const object5 = {};
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object10.marginBottom = PX_24;
object5.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%';
object5.marginHorizontal = PX_24;
object.subtitle = object5;
const object6 = {};
object6.height = StyleSheet.hairlineWidth;
object6.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'};
object6.backgroundColor = BORDER_SUBTLE;
object.separator = object6;
const object7 = {'flex': 1, 'marginHorizontal': null, 'flexWrap': 'wrap', 'flexDirection': 'row'};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object12.marginHorizontal = PX_16;
object7.marginHorizontal = PX_16;
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object12.gap = PX_12;
object2.topicsContainer = object12;
object7.gap = PX_12;
object.topicsContainer = object7;
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');
object.scrollContentContainer = {paddingTop: PX_24};
const env0_13 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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');
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} = (UseA11yRolesNativeModule).useCheckboxA11yNative({checked: selected});
if (r5 == null) {
r0 = null;
} 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]);
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;
}
global.setTimeout(function() {
return dependencyMap(false);
}, 500);
return r0;
}
}
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 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 object;
var Button;
var object2;
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
let useState = ReactModule.useState;
const Set = global.Set;
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
const set = new Set();
const value4 = Reflect.apply(useState, ReactModule, [set instanceof Object ? set : value2]);
const binding2 = env0_4;
const value5 = binding2(value4, 2);
const property = value5[0];
const env0_1 = value5[1];
useState = ReactModule.useState;
const value6 = binding2(Reflect.apply(useState, ReactModule, [false]), 2);
const property2 = value6[0];
const env0_2 = value6[1];
const value7 = (UseNavigationNativeModule).useNavigation();
const value9 = ReactModule.useCallback(value7(_fun111988), [value7, property]);
const value10 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([GuildDiscoveryCategoryStore],
function() {
return GuildDiscoveryCategoryStore.getAllCategories();
});
var env0_4 = ReactModule.useCallback(_fun111991, [property]);
const jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
const Text = (TextModule).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 object;
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;
object = {key: 'ICYMIInfoModal'};
binding = env2_0;
intl = binding(binding3[31]).intl;
object.content = intl.string(binding(binding3[31]).t.CG4Hks);
Reflect.apply(open, value, [object]);
}
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 = (ICYMIAnalyticsModule).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 _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;
}
}
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 _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;
}
global.__d(_fun111983, 14839, [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]) /* metro module 14839, 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] */;