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,18 +1,32 @@
/* Metro module 15992; source: modules/guild_settings/community/native/GuildSettingsModalCommunity.tsx; dependencies: [31, 1379, 1935, 3784, 3793, 1878, 9113, 14840, 661, 33, 4501, 697, 3860, 1484, 566, 9112, 1244, 5277, 5282, 4805, 4080, 9059, 1962, 7972, 4572, 6231, 6238, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ChannelStore from '../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UserStore from '../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import GuildChannelStore from '../../../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
import PermissionStore from '../../../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import RelationshipStore from '../../../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import ActionSheetActionCreators from '../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import GuildSettingsActionCreators from '../../GuildSettingsActionCreators.tsx'; /* Metro dependency 9112 */
import GuildSettingsStore from '../../GuildSettingsStore.tsx'; /* Metro dependency 9113 */
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 ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as GuildChannelStoreModule from '../../../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
import * as UseTokenModule from '../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as UseChannelNameModule from '../../../channel/useChannelName.tsx'; /* Metro dependency 4805 */
import * as HeaderActionButtonNativeModule from '../../../../design/components/Navigator/native/HeaderActionButton.native.tsx'; /* Metro dependency 5277 */
import * as NavigatorHeaderNativeModule from '../../../../design/components/Navigator/native/NavigatorHeader.native.tsx'; /* Metro dependency 5282 */
import * as TableRowGroupNativeModule from '../../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableRowNativeModule from '../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as GuildSettingsDiscoveryConstantsModule from '../../discovery/GuildSettingsDiscoveryConstants.tsx'; /* Metro dependency 14840 */
function _fun123686(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:6, offset: 0x025978c0, size: 413 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
const env0_6 = (require(1935) /* metro dependency 1935: GuildChannelStore */).GUILD_SELECTABLE_CHANNELS_KEY;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
const env0_11 = (require(14840) /* metro dependency 14840: GuildSettingsDiscoveryConstants */).calculateLocaleOptions;
let value = require(661) /* metro dependency 661: Constants */;
let value = ConstantsModule;
const env0_12 = value.ChannelTypes;
const env0_13 = value.GuildFeatures;
const env0_14 = value.GuildSettingsSections;
@@ -22,373 +36,398 @@ function _fun123686(global, require, importDefault, importAll, module, exports,
const env0_17 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
const PX_16 = (Native).space.PX_16;
const env0_18 = Reflect.apply(createStyles, value, [{overview: {flex: 1}, overviewContent: {paddingTop: PX_16}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/community/native/GuildSettingsModalCommunity.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/guild_settings/community/native/GuildSettingsModalCommunity.tsx');
exports.default = GuildSettingsModalCommunity;
}
function GuildSettingsModalCommunity({guildId, onClose}) { // fn#123687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:564, offset: 0x02597a5d, size: 1581 bytes, params: 2, frame: 45
var r31;
var r30;
var r9;
var r0;
var Form;
var Stack;
var moduleValue6;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
var object4;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
var object5;
var TrailingText;
var value16;
var items2;
var moduleValue7;
var object7;
var object8;
var object10;
var object11;
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
const useToken = useTokenModule.useToken;
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
let value3 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_PADDING]);
const styles = useStyles();
const value4 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildSettingsStore],
function() {
return GuildSettingsStore.getProps();
});
const submitting = value5.submitting;
const env0_3 = submitting;
const hasChanges = value5.hasChanges;
const guild = value5.guild;
const {canManage,
isAdmin} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([PermissionStore],
_fun123689);
const {rulesChannel,
publicUpdatesChannel} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ChannelStore],
function() {
var object = {};
var getChannel = ChannelStore.getChannel;
var guildBinding = guild;
var value3 = undefined;
object.rulesChannel = Reflect.apply(getChannel, ChannelStore,
[guildBinding == null ? value3 : guild.rulesChannelId]);
object.publicUpdatesChannel = ChannelStore.getChannel(guild == null ? value3 : guild.publicUpdatesChannelId);
return object;
});
let binding = env0_3;
binding.useEffect(_fun123691, [guild, value4, onClose]);
const value8 = binding.useCallback(_fun123692, [guild]);
const value10 = guild != null;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const r18 = value10 ? Reflect.apply(string, intl, [t.aQzVF8]) : Reflect.apply(string, intl, [t.kQzUNk]);
binding = env0_3;
binding.useEffect(_fun123693, [guild, value4, submitting, hasChanges, onClose]);
const value13 = binding.useCallback(_fun123700, [guildId]);
const value14 = binding.useCallback(_fun123703, [value13, rulesChannel]);
const value15 = binding.useCallback(_fun123705, [value13, publicUpdatesChannel]);
const env0_11 = env0_3.useCallback(_fun123707, [guild?.preferredLocale]);
if (guild == null) {
r0 = null;
} else {
Form = (require(7972) /* metro dependency 7972: native */).Form;
var formProps = {style: styles.overview, contentContainerStyle: styles.overviewContent};
Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
var stackProps = {style: {paddingHorizontal: value3},
spacing: (importDefault(697) /* metro dependency 697: native */).space.PX_24};
if (rulesChannel != null) {
moduleValue6 = require(4805) /* metro dependency 4805: useChannelName */;
r31 = moduleValue6.computeChannelName(rulesChannel, UserStore, RelationshipStore, true);
} else {
r31 = null;
}
var tableRowGroupProps = {helperText: intl.string(t['3q1TEo']), hasIcons: false};
var tableRowProps = {label: intl.string(t.U5BW0c), disabled: !canManage};
TrailingText = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow.TrailingText;
value16 = '';
r30 = r31 ?? value16;
tableRowProps.trailing = <TrailingText text={r30} />;
tableRowProps.arrow = true;
tableRowProps.onPress = value14;
items2 = [<TableRowGroup {...tableRowGroupProps}><TableRow {...tableRowProps} /></TableRowGroup>];
if (publicUpdatesChannel != null) {
moduleValue7 = require(4805) /* metro dependency 4805: useChannelName */;
r30 = moduleValue7.computeChannelName(publicUpdatesChannel, UserStore, RelationshipStore, true);
} else {
r30 = null;
}
var tableRowGroupProps2 = {helperText: intl.string(t['Fg6O/5']), hasIcons: false};
var tableRowProps2 = {label: intl.string(t.vAyDGU), disabled: !isAdmin};
TrailingText = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow.TrailingText;
tableRowProps2.trailing = <TrailingText text={r30 ?? value16} />;
tableRowProps2.arrow = true;
tableRowProps2.onPress = value15;
items2[1] = <TableRowGroup {...tableRowGroupProps2}><TableRow {...tableRowProps2} /></TableRowGroup>;
items2[2] = _fun123709();
if (isAdmin) {
r9 = <TableRowGroup helperText={r18} hasIcons={false}><TableRow variant="danger" onPress={value8} label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.c1BmbC)} disabled={!value10} /></TableRowGroup>;
} else {
r9 = null;
}
items2[3] = r9;
r0 = <Form {...formProps}><Stack {...stackProps}>{items2}</Stack></Form>;
}
return r0;
}
function _fun123689() { // fn#123689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:865, offset: 0x0259809d, size: 107 bytes, params: 1, frame: 17
return {canManage: guild != null && PermissionStore.can(Permissions.MANAGE_GUILD, guild),
isAdmin: guild != null && PermissionStore.can(Permissions.ADMINISTRATOR, guild)};
}
function _fun123691() { // fn#123691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:1226, offset: 0x02598168, size: 134 bytes, params: 1, frame: 14
var value5;
var defaultImport;
var setSection;
var COMMUNITY_INTRO;
var binding;
var replace;
if (!(guild != null && guild.features.has(GuildFeatures.COMMUNITY))) {
value5 = environment.__proto__;
defaultImport = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
setSection = defaultImport.setSection;
COMMUNITY_INTRO = GuildSettingsSections.COMMUNITY_INTRO;
Reflect.apply(setSection, defaultImport, [COMMUNITY_INTRO]);
binding = env0_2;
replace = binding.replace;
COMMUNITY_INTRO = GuildSettingsSections.COMMUNITY_INTRO;
Reflect.apply(replace, binding, [COMMUNITY_INTRO, {onClose: onClose}]);
}
}
function _fun123692() { // fn#123692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:1383, offset: 0x025981ee, size: 167 bytes, params: 1, frame: 15
var Set;
var features;
var set;
var value2;
var defaultImport;
let guildBinding = guild;
if (guildBinding != null) {
Set = global.Set;
guildBinding = guild;
features = guildBinding.features;
set = new Set();
value2 = environment.__proto__;
set.delete(GuildFeatures.COMMUNITY);
set.delete(GuildFeatures.DISCOVERABLE);
defaultImport = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
defaultImport.saveGuild(guildBinding.id, {'features': null, 'rulesChannelId': null,
'publicUpdatesChannelId': null,
features: set, preferredLocale: guildBinding.preferredLocale});
}
}
function _fun123693() { // fn#123693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:1708, offset: 0x02598295, size: 122 bytes, params: 1, frame: 15
env0_2.setOptions({headerLeft: submitting ? function() {
return null;
} : hasChanges ? _fun123697 : undefined,
headerRight: submitting ? _fun123698 : hasChanges ? _fun123699 : undefined});
}
function _fun123700() { // fn#123700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:2475, offset: 0x025984da, size: 81 bytes, params: 1, frame: 13
var environment;
var r0;
let value = environment.__proto__;
const channels = GuildChannelStore.getChannels(guildId);
if (channels == null) {
r0 = [];
} else {
value = channels[GUILD_SELECTABLE_CHANNELS_KEY].filter(function(a0) {
return a0.channel.type === ChannelTypes.GUILD_TEXT;
function GuildSettingsModalCommunity({guildId, onClose}) { // fn#123687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:564, offset: 0x02597a5d, size: 1581 bytes, params: 2, frame: 45
var r31;
var r30;
var r9;
var r0;
var Form;
var Stack;
var moduleValue6;
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
var object;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
var object2;
var TrailingText;
var value16;
var items2;
var moduleValue7;
var object3;
var object6;
var object9;
var object12;
const useToken = UseTokenModule.useToken;
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
let value3 = Reflect.apply(useToken, UseTokenModule, [TABLE_ROW_PADDING]);
const styles = useStyles();
const value4 = (UseNavigationNativeModule).useNavigation();
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildSettingsStore],
function() {
return GuildSettingsStore.getProps();
});
value = value.map(_fun123702);
r0 = value;
const submitting = value5.submitting;
const submitting2 = submitting;
const hasChanges = value5.hasChanges;
const guild = value5.guild;
const {canManage,
isAdmin} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([PermissionStore],
_fun123689);
const {rulesChannel,
publicUpdatesChannel} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ChannelStore],
function() {
var object = {};
var channelStoreBinding = ChannelStore;
var getChannel = channelStoreBinding.getChannel;
var guildBinding = guild;
var value3 = undefined;
object.rulesChannel = Reflect.apply(getChannel, channelStoreBinding,
[guildBinding == null ? value3 : guild.rulesChannelId]);
object.publicUpdatesChannel = ChannelStore.getChannel(guild == null ? value3 : guild.publicUpdatesChannelId);
return object;
});
let binding = submitting2;
binding.useEffect(_fun123691, [guild, value4, onClose]);
const value8 = binding.useCallback(_fun123692, [guild]);
const value10 = guild != null;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const r18 = value10 ? Reflect.apply(string, intl, [t.aQzVF8]) : Reflect.apply(string, intl, [t.kQzUNk]);
binding = submitting2;
binding.useEffect(_fun123693, [guild, value4, submitting, hasChanges, onClose]);
const value13 = binding.useCallback(_fun123700, [guildId]);
const value14 = binding.useCallback(_fun123703, [value13, rulesChannel]);
const value15 = binding.useCallback(_fun123705, [value13, publicUpdatesChannel]);
const env0_11 = submitting2.useCallback(_fun123707, [guild?.preferredLocale]);
if (guild == null) {
r0 = null;
} else {
Form = (require(7972) /* metro dependency 7972: native */).Form;
var formProps = {style: styles.overview, contentContainerStyle: styles.overviewContent};
Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
var stackProps = {style: {paddingHorizontal: value3},
spacing: (importDefault(697) /* metro dependency 697: native */).space.PX_24};
if (rulesChannel != null) {
moduleValue6 = require(4805) /* metro dependency 4805: useChannelName */;
r31 = moduleValue6.computeChannelName(rulesChannel, UserStore, RelationshipStore, true);
} else {
r31 = null;
}
var tableRowGroupProps = {helperText: intl.string(t['3q1TEo']), hasIcons: false};
var tableRowProps = {label: intl.string(t.U5BW0c), disabled: !canManage};
TrailingText = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow.TrailingText;
value16 = '';
r30 = r31 ?? value16;
tableRowProps.trailing = <TrailingText text={r30} />;
tableRowProps.arrow = true;
tableRowProps.onPress = value14;
items2 = [
<TableRowGroup {...tableRowGroupProps}>
<TableRow {...tableRowProps} />
</TableRowGroup>,
];
if (publicUpdatesChannel != null) {
moduleValue7 = require(4805) /* metro dependency 4805: useChannelName */;
r30 = moduleValue7.computeChannelName(publicUpdatesChannel, UserStore, RelationshipStore, true);
} else {
r30 = null;
}
var tableRowGroupProps2 = {helperText: intl.string(t['Fg6O/5']), hasIcons: false};
var tableRowProps2 = {label: intl.string(t.vAyDGU), disabled: !isAdmin};
TrailingText = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow.TrailingText;
tableRowProps2.trailing = <TrailingText text={r30 ?? value16} />;
tableRowProps2.arrow = true;
tableRowProps2.onPress = value15;
items2[1] = (
<TableRowGroup {...tableRowGroupProps2}>
<TableRow {...tableRowProps2} />
</TableRowGroup>
);
items2[2] = _fun123709();
if (isAdmin) {
r9 = (
<TableRowGroup helperText={r18} hasIcons={false}>
<TableRow
variant="danger"
onPress={value8}
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.c1BmbC)}
disabled={!value10}
/>
</TableRowGroup>
);
} else {
r9 = null;
}
items2[3] = r9;
r0 = (
<Form {...formProps}>
<Stack {...stackProps}>
{items2}
</Stack>
</Form>
);
}
return r0;
function _fun123689() { // fn#123689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:865, offset: 0x0259809d, size: 107 bytes, params: 1, frame: 17
return {canManage: guild != null && PermissionStore.can(Permissions.MANAGE_GUILD, guild),
isAdmin: guild != null && PermissionStore.can(Permissions.ADMINISTRATOR, guild)};
}
function _fun123691() { // fn#123691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:1226, offset: 0x02598168, size: 134 bytes, params: 1, frame: 14
var value5;
var defaultImport;
var setSection;
var COMMUNITY_INTRO;
var binding;
var replace;
if (!(guild != null && guild.features.has(GuildFeatures.COMMUNITY))) {
value5 = environment.__proto__;
defaultImport = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
setSection = defaultImport.setSection;
COMMUNITY_INTRO = GuildSettingsSections.COMMUNITY_INTRO;
Reflect.apply(setSection, defaultImport, [COMMUNITY_INTRO]);
binding = env0_2;
replace = binding.replace;
COMMUNITY_INTRO = GuildSettingsSections.COMMUNITY_INTRO;
Reflect.apply(replace, binding, [COMMUNITY_INTRO, {onClose: onClose}]);
}
}
function _fun123692() { // fn#123692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:1383, offset: 0x025981ee, size: 167 bytes, params: 1, frame: 15
var Set;
var features;
var set;
var value2;
var defaultImport;
let guildBinding = guild;
if (guildBinding != null) {
Set = global.Set;
guildBinding = guild;
features = guildBinding.features;
set = new Set();
value2 = environment.__proto__;
set.delete(GuildFeatures.COMMUNITY);
set.delete(GuildFeatures.DISCOVERABLE);
defaultImport = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
defaultImport.saveGuild(guildBinding.id, {'features': null, 'rulesChannelId': null,
'publicUpdatesChannelId': null,
features: set, preferredLocale: guildBinding.preferredLocale});
}
}
function _fun123693() { // fn#123693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:1708, offset: 0x02598295, size: 122 bytes, params: 1, frame: 15
env0_2.setOptions({headerLeft: submitting ? function() {
return null;
} : hasChanges ? _fun123697 : undefined,
headerRight: submitting ? _fun123698 : hasChanges ? _fun123699 : undefined});
function handlePublicCancelChanges() { // fn#123694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:1713, offset: 0x0259830f, size: 80 bytes, params: 1, frame: 13
var value2;
var defaultImport;
if (guild != null) {
value2 = environment.__proto__.__proto__;
defaultImport = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
defaultImport.cancelChanges(guild.id);
}
if (onClose != null) {
onClose();
}
}
function handlePublicSaveChanges() { // fn#123695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:1801, offset: 0x0259835f, size: 120 bytes, params: 1, frame: 18
var id;
var rulesChannelId;
var publicUpdatesChannelId;
var preferredLocale;
var features;
var safetyAlertsChannelId;
let value = environment.__proto__;
let guildBinding = guild;
if (guildBinding != null) {
guildBinding = guild;
id = guildBinding.id;
rulesChannelId = guildBinding.rulesChannelId;
publicUpdatesChannelId = guildBinding.publicUpdatesChannelId;
preferredLocale = guildBinding.preferredLocale;
features = guildBinding.features;
safetyAlertsChannelId = guildBinding.safetyAlertsChannelId;
value = environment.__proto__.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.saveGuild(id, {rulesChannelId: rulesChannelId, safetyAlertsChannelId: safetyAlertsChannelId,
publicUpdatesChannelId: publicUpdatesChannelId, preferredLocale: preferredLocale, features: features});
}
}
function _fun123697() { // fn#123697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:2122, offset: 0x025983d7, size: 107 bytes, params: 1, frame: 18
const HeaderActionButton = (HeaderActionButtonNativeModule).HeaderActionButton;
const handlePublicCancelChangesBinding = handlePublicCancelChanges;
const intl = (IndexNativeModule).intl;
return (
<HeaderActionButton
onPress={handlePublicCancelChangesBinding}
text={intl.string((IndexNativeModule).t['ETE/oC'])}
/>
);
}
function _fun123698() { // fn#123698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:2262, offset: 0x02598442, size: 45 bytes, params: 1, frame: 13
const HeaderSubmittingIndicator = (NavigatorHeaderNativeModule).HeaderSubmittingIndicator;
return <HeaderSubmittingIndicator />;
}
function _fun123699() { // fn#123699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:2309, offset: 0x0259846f, size: 107 bytes, params: 1, frame: 18
const HeaderActionButton = (HeaderActionButtonNativeModule).HeaderActionButton;
const handlePublicSaveChangesBinding = handlePublicSaveChanges;
const intl = (IndexNativeModule).intl;
return (
<HeaderActionButton
onPress={handlePublicSaveChangesBinding}
text={intl.string((IndexNativeModule).t['R3BPH+'])}
/>
);
}
}
function _fun123700() { // fn#123700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:2475, offset: 0x025984da, size: 81 bytes, params: 1, frame: 13
var environment;
var r0;
let value = environment.__proto__;
const channels = GuildChannelStore.getChannels(guildId);
if (channels == null) {
r0 = [];
} else {
value = channels[GUILD_SELECTABLE_CHANNELS_KEY].filter(function(a0) {
return a0.channel.type === ChannelTypes.GUILD_TEXT;
});
value = value.map(_fun123702);
r0 = value;
}
return r0;
function _fun123702({channel}) { // fn#123702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:2584, offset: 0x0259854b, size: 76 bytes, params: 2, frame: 18
const object = {};
object.value = channel.id;
object.label = UseChannelNameModule.computeChannelName(channel, UserStore, RelationshipStore, true);
return object;
}
}
function _fun123703() { // fn#123703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:2687, offset: 0x02598597, size: 199 bytes, params: 1, frame: 20
var environment;
let value = environment.__proto__;
const value2 = undefined;
const defaultImport = importDefault(dependencyMap[20]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[22]);
value = value(dependencyMap[21], dependencyMap.paths);
const object = {};
const intl = require(dependencyMap[16]).intl;
const string = intl.string;
const Yr6nGx = require(dependencyMap[16]).t.Yr6nGx;
object.title = Reflect.apply(string, intl, [Yr6nGx]);
object.items = env0_9();
object.onItemSelect = onItemSelect_123704;
object.selectedItem = rulesChannel == null ? value2 : rulesChannel.id;
object.hasIcons = false;
Reflect.apply(openLazy, defaultImport, [value, 'SelectRulesChannel', object]);
return value2;
function onItemSelect_123704(a0) { // fn#123704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:2825, offset: 0x0259865e, size: 70 bytes, params: 2, frame: 15
const value = environment.__proto__.__proto__;
(GuildSettingsActionCreators).updateGuild({rulesChannelId: a0});
(ActionSheetActionCreators).hideActionSheet();
}
}
function _fun123705() { // fn#123705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:2971, offset: 0x025986a4, size: 199 bytes, params: 1, frame: 20
var environment;
let value = environment.__proto__;
const value2 = undefined;
const defaultImport = importDefault(dependencyMap[20]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[22]);
value = value(dependencyMap[21], dependencyMap.paths);
const object = {};
const intl = require(dependencyMap[16]).intl;
const string = intl.string;
const VqhxxN = require(dependencyMap[16]).t.VqhxxN;
object.title = Reflect.apply(string, intl, [VqhxxN]);
object.items = env0_9();
object.onItemSelect = onItemSelect_123706;
object.selectedItem = publicUpdatesChannel == null ? value2 : publicUpdatesChannel.id;
object.hasIcons = false;
Reflect.apply(openLazy, defaultImport, [value, 'SelectUpdatesChannel', object]);
return value2;
function onItemSelect_123706(a0) { // fn#123706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:3111, offset: 0x0259876b, size: 70 bytes, params: 2, frame: 15
const value = environment.__proto__.__proto__;
(GuildSettingsActionCreators).updateGuild({publicUpdatesChannelId: a0});
(ActionSheetActionCreators).hideActionSheet();
}
}
function _fun123707() { // fn#123707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:3300, offset: 0x025987b1, size: 181 bytes, params: 1, frame: 21
const defaultImport = importDefault(dependencyMap[20]);
const openLazy = defaultImport.openLazy;
const value2 = require(dependencyMap[22])(dependencyMap[21], dependencyMap.paths);
const object = {};
const intl = require(dependencyMap[16]).intl;
object.title = intl.string(require(dependencyMap[16]).t['dXE8/D']);
object.items = calculateLocaleOptions();
object.onItemSelect = onItemSelect_123708;
object.selectedItem = preferredLocale;
object.hasIcons = false;
Reflect.apply(openLazy, defaultImport, [value2, 'SelectLocale', object]);
function onItemSelect_123708(a0) { // fn#123708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:3435, offset: 0x02598866, size: 70 bytes, params: 2, frame: 15
const value = environment.__proto__.__proto__;
(GuildSettingsActionCreators).updateGuild({preferredLocale: a0});
(ActionSheetActionCreators).hideActionSheet();
}
}
function _fun123709() { // fn#123709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:4376, offset: 0x025988ac, size: 325 bytes, params: 1, frame: 24
const env0_0 = guild.preferredLocale;
const calculateLocaleOptionsBinding = calculateLocaleOptions;
const value3 = undefined;
const value5 = calculateLocaleOptionsBinding().find(function({value}) {
return value === preferredLocale;
});
const label = value5 == null ? value3 : value5.label;
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object.helperText = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['l2g81/']]);
object.hasIcons = false;
const TableRow = (TableRowNativeModule).TableRow;
string = intl.string;
const VeC8vc = (require(1244) /* metro dependency 1244: indexNative */).t.VeC8vc;
const canManageBinding = canManage;
const TableRow2 = (TableRowNativeModule).TableRow;
const TrailingText = TableRow2.TrailingText;
return (
<TableRowGroup {...object}>
<TableRow
label={Reflect.apply(string, intl, [VeC8vc])}
disabled={!canManageBinding}
trailing={<TrailingText text={label ?? ''} />}
arrow
onPress={env0_11}
/>
</TableRowGroup>
);
}
}
return r0;
}
function _fun123703() { // fn#123703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:2687, offset: 0x02598597, size: 199 bytes, params: 1, frame: 20
var environment;
let value = environment.__proto__;
const value2 = undefined;
const defaultImport = importDefault(dependencyMap[20]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[22]);
value = value(dependencyMap[21], dependencyMap.paths);
const object2 = {};
const intl = require(dependencyMap[16]).intl;
const string = intl.string;
const Yr6nGx = require(dependencyMap[16]).t.Yr6nGx;
object2.title = Reflect.apply(string, intl, [Yr6nGx]);
object2.items = env0_9();
object2.onItemSelect = onItemSelect_123704;
object2.selectedItem = rulesChannel == null ? value2 : rulesChannel.id;
object2.hasIcons = false;
Reflect.apply(openLazy, defaultImport, [value, 'SelectRulesChannel', object2]);
return value2;
}
function _fun123705() { // fn#123705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:2971, offset: 0x025986a4, size: 199 bytes, params: 1, frame: 20
var environment;
let value = environment.__proto__;
const value2 = undefined;
const defaultImport = importDefault(dependencyMap[20]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[22]);
value = value(dependencyMap[21], dependencyMap.paths);
const object2 = {};
const intl = require(dependencyMap[16]).intl;
const string = intl.string;
const VqhxxN = require(dependencyMap[16]).t.VqhxxN;
object2.title = Reflect.apply(string, intl, [VqhxxN]);
object2.items = env0_9();
object2.onItemSelect = onItemSelect_123706;
object2.selectedItem = publicUpdatesChannel == null ? value2 : publicUpdatesChannel.id;
object2.hasIcons = false;
Reflect.apply(openLazy, defaultImport, [value, 'SelectUpdatesChannel', object2]);
return value2;
}
function _fun123707() { // fn#123707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:3300, offset: 0x025987b1, size: 181 bytes, params: 1, frame: 21
const defaultImport = importDefault(dependencyMap[20]);
const openLazy = defaultImport.openLazy;
const value2 = require(dependencyMap[22])(dependencyMap[21], dependencyMap.paths);
const object2 = {};
const intl = require(dependencyMap[16]).intl;
object2.title = intl.string(require(dependencyMap[16]).t['dXE8/D']);
object2.items = calculateLocaleOptions();
object2.onItemSelect = onItemSelect_123708;
object2.selectedItem = preferredLocale;
object2.hasIcons = false;
Reflect.apply(openLazy, defaultImport, [value2, 'SelectLocale', object2]);
}
function _fun123709() { // fn#123709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:4376, offset: 0x025988ac, size: 325 bytes, params: 1, frame: 24
const env0_0 = guild.preferredLocale;
const calculateLocaleOptionsBinding = calculateLocaleOptions;
const value3 = undefined;
const value5 = calculateLocaleOptionsBinding().find(function({value}) {
return value === preferredLocale;
});
const label = value5 == null ? value3 : value5.label;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object2.helperText = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['l2g81/']]);
object2.hasIcons = false;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
string = intl.string;
const VeC8vc = (require(1244) /* metro dependency 1244: indexNative */).t.VeC8vc;
const canManageBinding = canManage;
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const TrailingText = TableRow2.TrailingText;
return (
<TableRowGroup {...object2}>
<TableRow
label={Reflect.apply(string, intl, [VeC8vc])}
disabled={!canManageBinding}
trailing={<TrailingText text={label ?? ''} />}
arrow
onPress={env0_11}
/>
</TableRowGroup>
);
}
function handlePublicCancelChanges() { // fn#123694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:1713, offset: 0x0259830f, size: 80 bytes, params: 1, frame: 13
var value2;
var defaultImport;
if (guild != null) {
value2 = environment.__proto__.__proto__;
defaultImport = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
defaultImport.cancelChanges(guild.id);
}
if (onClose != null) {
onClose();
}
}
function handlePublicSaveChanges() { // fn#123695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:1801, offset: 0x0259835f, size: 120 bytes, params: 1, frame: 18
var id;
var rulesChannelId;
var publicUpdatesChannelId;
var preferredLocale;
var features;
var safetyAlertsChannelId;
let value = environment.__proto__;
let guildBinding = guild;
if (guildBinding != null) {
guildBinding = guild;
id = guildBinding.id;
rulesChannelId = guildBinding.rulesChannelId;
publicUpdatesChannelId = guildBinding.publicUpdatesChannelId;
preferredLocale = guildBinding.preferredLocale;
features = guildBinding.features;
safetyAlertsChannelId = guildBinding.safetyAlertsChannelId;
value = environment.__proto__.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.saveGuild(id, {rulesChannelId: rulesChannelId, safetyAlertsChannelId: safetyAlertsChannelId,
publicUpdatesChannelId: publicUpdatesChannelId, preferredLocale: preferredLocale, features: features});
}
}
function _fun123697() { // fn#123697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:2122, offset: 0x025983d7, size: 107 bytes, params: 1, frame: 18
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
const handlePublicCancelChangesBinding = handlePublicCancelChanges;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<HeaderActionButton
onPress={handlePublicCancelChangesBinding}
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}
/>
);
}
function _fun123698() { // fn#123698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:2262, offset: 0x02598442, size: 45 bytes, params: 1, frame: 13
const HeaderSubmittingIndicator = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).HeaderSubmittingIndicator;
return <HeaderSubmittingIndicator />;
}
function _fun123699() { // fn#123699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:2309, offset: 0x0259846f, size: 107 bytes, params: 1, frame: 18
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
const handlePublicSaveChangesBinding = handlePublicSaveChanges;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<HeaderActionButton
onPress={handlePublicSaveChangesBinding}
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+'])}
/>
);
}
function _fun123702({channel}) { // fn#123702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:2584, offset: 0x0259854b, size: 76 bytes, params: 2, frame: 18
const object2 = {};
object2.value = channel.id;
object2.label = (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(channel, UserStore,
RelationshipStore, true);
return object2;
}
function onItemSelect_123704(a0) { // fn#123704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:2825, offset: 0x0259865e, size: 70 bytes, params: 2, frame: 15
const value = environment.__proto__.__proto__;
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({rulesChannelId: a0});
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function onItemSelect_123706(a0) { // fn#123706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:3111, offset: 0x0259876b, size: 70 bytes, params: 2, frame: 15
const value = environment.__proto__.__proto__;
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({publicUpdatesChannelId: a0});
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function onItemSelect_123708(a0) { // fn#123708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16200:3435, offset: 0x02598866, size: 70 bytes, params: 2, frame: 15
const value = environment.__proto__.__proto__;
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({preferredLocale: a0});
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
global.__d(_fun123686, 15992, [31, 1379, 1935, 3784, 3793, 1878, 9113, 14840, 661, 33, 4501, 697, 3860, 1484, 566,
9112, 1244, 5277, 5282, 4805, 4080, 9059, 1962, 7972, 4572, 6231, 6238,
2]) /* metro module 15992, dependencies: [31, 1379, 1935, 3784, 3793, 1878, 9113, 14840, 661, 33, 4501, 697, 3860, 1484, 566, 9112, 1244, 5277, 5282, 4805, 4080, 9059, 1962, 7972, 4572, 6231, 6238, 2] */;
@@ -1,16 +1,29 @@
/* Metro module 15993; source: modules/guild_settings/community/native/GuildSettingsModalCommunityIntro.tsx; dependencies: [31, 27, 1867, 3784, 661, 33, 4501, 697, 11046, 1244, 4573, 14783, 4068, 1484, 566, 694, 9112, 15994, 6766, 1948, 4578, 15998, 3856, 5462, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import GuildStore from '../../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import HelpdeskUtils from '../../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import PermissionStore from '../../../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
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 CircleInformationIconModule from '../../../../design/components/Icon/native/redesign/generated/CircleInformationIcon.tsx'; /* Metro dependency 4068 */
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 NavScrimAndroidModule from '../../../../design/components/Navigator/native/NavScrim.android.tsx'; /* Metro dependency 5462 */
import * as TextWithIOSLinkWorkaroundModule from '../../../a11y/native/TextWithIOSLinkWorkaround.tsx'; /* Metro dependency 6766 */
import * as AnalyticsIconModule from '../../../../design/components/Icon/native/redesign/generated/AnalyticsIcon.tsx'; /* Metro dependency 11046 */
import * as LightbulbIconModule from '../../../../design/components/Icon/native/redesign/generated/LightbulbIcon.tsx'; /* Metro dependency 14783 */
import * as IntroHeaderModule from '../../../../design/components/Illustration/native/redesign/generated/IntroHeader.tsx'; /* Metro dependency 15994 */
function _fun123711(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:6, offset: 0x025989f1, size: 578 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_4 = value.View;
const env0_5 = value.Image;
const env0_6 = value.ScrollView;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
value = require(661) /* metro dependency 661: Constants */;
const env0_9 = value.HelpdeskArticles;
const env0_10 = value.GuildFeatures;
@@ -22,174 +35,239 @@ function _fun123711(global, require, importDefault, importAll, module, exports,
const env0_15 = value.Fragment;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object2.container = {height: '100%'};
object2.contentPadding = {padding: 16};
object2.header = {'textAlign': 'center', 'marginBottom': 8};
object2.body = {'textAlign': 'center', 'marginBottom': 24};
object2.details = {'textAlign': 'center', 'marginTop': 24};
object2.headerImage = {width: '100%'};
object2.features = {'marginTop': 32, 'marginBottom': 32};
const object3 = {'backgroundColor': null, 'flex': 1, 'flexDirection': 'row', 'padding': 16, 'borderRadius': null,
object = {};
object.container = {height: '100%'};
object.contentPadding = {padding: 16};
object.header = {'textAlign': 'center', 'marginBottom': 8};
object.body = {'textAlign': 'center', 'marginBottom': 24};
object.details = {'textAlign': 'center', 'marginTop': 24};
object.headerImage = {width: '100%'};
object.features = {'marginTop': 32, 'marginBottom': 32};
const object4 = {'backgroundColor': null, 'flex': 1, 'flexDirection': 'row', 'padding': 16, 'borderRadius': null,
'marginTop': 8, 'alignItems': 'flex-start'};
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.sm;
object2.featureCard = object3;
object4.backgroundColor = CARD_BACKGROUND_DEFAULT;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.featureCard = object4;
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
object2.featureIcon = {'backgroundColor': null, 'borderRadius': 40, 'marginRight': 16, 'padding': 8,
object.featureIcon = {'backgroundColor': null, 'borderRadius': 40, 'marginRight': 16, 'padding': 8,
backgroundColor: BACKGROUND_MOD_STRONG};
object2.featureDescription = {'overflow': 'hidden', 'flex': 1};
const env0_16 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/community/native/GuildSettingsModalCommunityIntro.tsx');
object.featureDescription = {'overflow': 'hidden', 'flex': 1};
const env0_16 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/guild_settings/community/native/GuildSettingsModalCommunityIntro.tsx');
exports.default = GuildSettingsModalCommunityIntro;
}
function FeatureCard({icon, header, body}) { // fn#123712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:914, offset: 0x02598c33, size: 223 bytes, params: 2, frame: 23
const styles = useStyles();
const view = <View style={styles.featureIcon}>{icon()}</View>;
const Heading = (require(4573) /* metro dependency 4573: Text */).Heading;
const heading = <Heading variant="text-md/semibold" color="mobile-text-heading-primary">{header}</Heading>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={styles.featureCard}>
{view}
<View style={styles.featureDescription}>
{heading}
<Text variant="text-sm/medium" color="text-default">
{body}
</Text>
function FeatureCard({icon, header, body}) { // fn#123712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:914, offset: 0x02598c33, size: 223 bytes, params: 2, frame: 23
const styles = useStyles();
const view = (
<View style={styles.featureIcon}>
{icon()}
</View>
</View>
);
}
);
const Heading = (TextModule).Heading;
const heading = (
<Heading variant="text-md/semibold" color="mobile-text-heading-primary">
{header}
</Heading>
);
const Text = (TextModule).Text;
return (
<View style={styles.featureCard}>
{view}
<View style={styles.featureDescription}>
{heading}
<Text variant="text-sm/medium" color="text-default">
{body}
</Text>
</View>
</View>
);
}
function GuildSettingsModalCommunityIntro({guildId, onClose, contentContainerStyle}) { // fn#123713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:1377, offset: 0x02598d12, size: 1273 bytes, params: 2, frame: 34
const styles = useStyles();
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildId);
});
const env0_3 = guild;
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore], _fun123715);
env0_3.useEffect(_fun123716, [guild, value2, onClose]);
const value4 = (require(15994) /* metro dependency 15994: IntroHeader */).useIntroHeaderSource();
const jsxRuntimeEnv0_15Binding = jsxRuntimeEnv0_15;
const items4 = [styles.contentPadding, contentContainerStyle];
const items2 = [<Image resizeMode="contain" source={value4} style={styles.headerImage} />];
const Heading = (require(4573) /* metro dependency 4573: Text */).Heading;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
items2[1] = <Heading style={styles.header} variant="heading-xl/extrabold" color="mobile-text-heading-primary">{Reflect.apply(string,
intl, [(require(1244) /* metro dependency 1244: indexNative */).t['M/gBcA']])}</Heading>;
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
let format = intl.format;
const property = (require(1244) /* metro dependency 1244: indexNative */).t['52EgsM'];
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport.getArticleURL;
const FRIEND_COMMUNITY_DISCOVERABLE_GUILD_TYPES = HelpdeskArticles.FRIEND_COMMUNITY_DISCOVERABLE_GUILD_TYPES;
items2[2] = <TextWithIOSLinkWorkaround style={styles.body} variant="text-md/medium" color="text-default">{Reflect.apply(format,
intl, [property, {helpdeskArticle: Reflect.apply(getArticleURL, defaultImport,
[FRIEND_COMMUNITY_DISCOVERABLE_GUILD_TYPES])}])}</TextWithIOSLinkWorkaround>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
const LhlgY9 = (require(1244) /* metro dependency 1244: indexNative */).t.LhlgY9;
items2[3] = <Button text={Reflect.apply(string, intl, [LhlgY9])} onPress={onPress_123718} disabled={!value3} />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
string = intl.string;
const HgTI2N = (require(1244) /* metro dependency 1244: indexNative */).t.HgTI2N;
items2[4] = <Text style={styles.details} variant="text-sm/medium" color="text-default">{Reflect.apply(string, intl,
[HgTI2N])}</Text>;
const object = {icon: icon_123719};
object.header = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oVQF2y);
format = intl.format;
const A6G7ak = (require(1244) /* metro dependency 1244: indexNative */).t.A6G7ak;
object.body = Reflect.apply(format, intl, [A6G7ak, {featureHook: featureHook}]);
const items3 = [object];
const object2 = {icon: icon_123721};
object2.header = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['0rJl9y']);
format = intl.format;
const XsCNky = (require(1244) /* metro dependency 1244: indexNative */).t.XsCNky;
object2.body = Reflect.apply(format, intl, [XsCNky, {infoHook: function() {
return null;
}, featureHook: featureHook_123723}]);
items3[1] = object2;
const object3 = {icon: icon_123724};
string = intl.string;
const W2kLJC = (require(1244) /* metro dependency 1244: indexNative */).t.W2kLJC;
object3.header = Reflect.apply(string, intl, [W2kLJC]);
object3.body = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hyNkHz);
items3[2] = object3;
items2[5] = <View style={styles.features}>{items3.map(_fun123725)}</View>;
const scrollView = <ScrollView style={styles.container} contentContainerStyle={items4}>{items2}</ScrollView>;
const NavScrim = (require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim;
return (
<>
{scrollView}
<NavScrim />
</>
);
}
function _fun123715() { // fn#123715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:1593, offset: 0x0259920b, size: 51 bytes, params: 1, frame: 14
return guild != null && PermissionStore.can(Permissions.ADMINISTRATOR, guild);
}
function _fun123716() { // fn#123716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:1646, offset: 0x0259923e, size: 137 bytes, params: 1, frame: 14
var environment;
var value5;
var binding;
if (guild != null && guild.features.has(GuildFeatures.COMMUNITY)) {
value5 = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(function() {
return importDefault(dependencyMap[16]).setSection(GuildSettingsSections.COMMUNITY);
function GuildSettingsModalCommunityIntro({guildId, onClose, contentContainerStyle}) { // fn#123713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:1377, offset: 0x02598d12, size: 1273 bytes, params: 2, frame: 34
const styles = useStyles();
const value2 = (UseNavigationNativeModule).useNavigation();
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildId);
});
binding = env0_2;
binding.replace(GuildSettingsSections.COMMUNITY, {onClose: onClose});
const guild2 = guild;
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore], _fun123715);
guild2.useEffect(_fun123716, [guild, value2, onClose]);
const value4 = (IntroHeaderModule).useIntroHeaderSource();
const jsxRuntimeEnv0_15Binding = jsxRuntimeEnv0_15;
const items4 = [styles.contentPadding, contentContainerStyle];
const items2 = [
<Image
resizeMode="contain"
source={value4}
style={styles.headerImage}
/>,
];
const Heading = (TextModule).Heading;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
items2[1] = (
<Heading
style={styles.header}
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
>
{Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['M/gBcA']])}
</Heading>
);
const TextWithIOSLinkWorkaround = (TextWithIOSLinkWorkaroundModule).TextWithIOSLinkWorkaround;
let format = intl.format;
const property = (require(1244) /* metro dependency 1244: indexNative */).t['52EgsM'];
const defaultImport = HelpdeskUtils;
const getArticleURL = defaultImport.getArticleURL;
const FRIEND_COMMUNITY_DISCOVERABLE_GUILD_TYPES = HelpdeskArticles.FRIEND_COMMUNITY_DISCOVERABLE_GUILD_TYPES;
items2[2] = (
<TextWithIOSLinkWorkaround
style={styles.body}
variant="text-md/medium"
color="text-default"
>
{Reflect.apply(format, intl, [property, {helpdeskArticle: Reflect.apply(getArticleURL, defaultImport,
[FRIEND_COMMUNITY_DISCOVERABLE_GUILD_TYPES])}])}
</TextWithIOSLinkWorkaround>
);
const Button = (ButtonNativeModule).Button;
string = intl.string;
const LhlgY9 = (require(1244) /* metro dependency 1244: indexNative */).t.LhlgY9;
items2[3] = (
<Button
text={Reflect.apply(string, intl, [LhlgY9])}
onPress={onPress_123718}
disabled={!value3}
/>
);
const Text = (TextModule).Text;
string = intl.string;
const HgTI2N = (require(1244) /* metro dependency 1244: indexNative */).t.HgTI2N;
items2[4] = (
<Text
style={styles.details}
variant="text-sm/medium"
color="text-default"
>
{Reflect.apply(string, intl, [HgTI2N])}
</Text>
);
const object4 = {icon: icon_123719};
object4.header = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oVQF2y);
format = intl.format;
const A6G7ak = (require(1244) /* metro dependency 1244: indexNative */).t.A6G7ak;
object4.body = Reflect.apply(format, intl, [A6G7ak, {featureHook: featureHook}]);
const items3 = [object4];
const object5 = {icon: icon_123721};
object5.header = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['0rJl9y']);
format = intl.format;
const XsCNky = (require(1244) /* metro dependency 1244: indexNative */).t.XsCNky;
object5.body = Reflect.apply(format, intl, [XsCNky, {infoHook: function() {
return null;
}, featureHook: featureHook_123723}]);
items3[1] = object5;
const object6 = {icon: icon_123724};
string = intl.string;
const W2kLJC = (require(1244) /* metro dependency 1244: indexNative */).t.W2kLJC;
object6.header = Reflect.apply(string, intl, [W2kLJC]);
object6.body = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hyNkHz);
items3[2] = object6;
items2[5] = (
<View style={styles.features}>
{items3.map(_fun123725)}
</View>
);
const scrollView = (
<ScrollView style={styles.container} contentContainerStyle={items4}>
{items2}
</ScrollView>
);
const NavScrim = (NavScrimAndroidModule).NavScrim;
return (
<>
{scrollView}
<NavScrim />
</>
);
function _fun123715() { // fn#123715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:1593, offset: 0x0259920b, size: 51 bytes, params: 1, frame: 14
return guild != null && PermissionStore.can(Permissions.ADMINISTRATOR, guild);
}
function _fun123716() { // fn#123716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:1646, offset: 0x0259923e, size: 137 bytes, params: 1, frame: 14
var environment;
var value5;
var binding;
if (guild != null && guild.features.has(GuildFeatures.COMMUNITY)) {
value5 = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(function() {
return importDefault(dependencyMap[16]).setSection(GuildSettingsSections.COMMUNITY);
});
binding = env0_2;
binding.replace(GuildSettingsSections.COMMUNITY, {onClose: onClose});
}
}
function GuildSettingsModalCommunityIntroOnPress() { // fn#123718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:2443, owner: GuildSettingsModalCommunityIntro.onPress, offset: 0x025992f7, size: 83 bytes, params: 1, frame: 12
const value = environment.__proto__;
if (env0_4) {
(importDefault(15998) /* metro dependency 15998: EnableCommunityModalActionCreators */).open();
} else {
(require(3856) /* metro dependency 3856: ToastUtils */).communityAdminOnly();
}
}
function GuildSettingsModalCommunityIntroIcon() { // fn#123719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:2677, owner: GuildSettingsModalCommunityIntro.icon, offset: 0x0259934a, size: 76 bytes, params: 1, frame: 16
const AnalyticsIcon = (AnalyticsIconModule).AnalyticsIcon;
const GREEN_360 = (Native).unsafe_rawColors.GREEN_360;
return <AnalyticsIcon color={GREEN_360} />;
}
function GuildSettingsModalCommunityIntroFeatureHook(a0, a1) { // fn#123720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:2849, owner: GuildSettingsModalCommunityIntro.featureHook, offset: 0x02599396, size: 67 bytes, params: 3, frame: 15
const Text = (TextModule).Text;
return (
<Text
variant="text-sm/semibold"
color="mobile-text-heading-primary"
key={a1}
>
{a0}
</Text>
);
}
function GuildSettingsModalCommunityIntroIcon_123721() { // fn#123721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:2960, owner: GuildSettingsModalCommunityIntro.icon, offset: 0x025993d9, size: 76 bytes, params: 1, frame: 16
const LightbulbIcon = (LightbulbIconModule).LightbulbIcon;
const YELLOW_300 = (Native).unsafe_rawColors.YELLOW_300;
return <LightbulbIcon color={YELLOW_300} />;
}
function GuildSettingsModalCommunityIntroFeatureHook_123723(a0, a1) { // fn#123723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:3155, owner: GuildSettingsModalCommunityIntro.featureHook, offset: 0x02599396, size: 67 bytes, params: 3, frame: 15
const Text = (TextModule).Text;
return (
<Text
variant="text-sm/semibold"
color="mobile-text-heading-primary"
key={a1}
>
{a0}
</Text>
);
}
function GuildSettingsModalCommunityIntroIcon_123724() { // fn#123724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:3266, owner: GuildSettingsModalCommunityIntro.icon, offset: 0x02599425, size: 76 bytes, params: 1, frame: 16
const CircleInformationIcon = (CircleInformationIconModule).CircleInformationIcon;
const PLATFORM_PARTNER = (Native).unsafe_rawColors.PLATFORM_PARTNER;
return <CircleInformationIcon color={PLATFORM_PARTNER} />;
}
function _fun123725(a0, a1) { // fn#123725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:3449, offset: 0x02599471, size: 37 bytes, params: 3, frame: 15
return <FeatureCard {...a0} key={a1} />;
}
}
}
function GuildSettingsModalCommunityIntroOnPress() { // fn#123718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:2443, owner: GuildSettingsModalCommunityIntro.onPress, offset: 0x025992f7, size: 83 bytes, params: 1, frame: 12
const value = environment.__proto__;
if (env0_4) {
(importDefault(15998) /* metro dependency 15998: EnableCommunityModalActionCreators */).open();
} else {
(require(3856) /* metro dependency 3856: ToastUtils */).communityAdminOnly();
}
}
function GuildSettingsModalCommunityIntroIcon() { // fn#123719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:2677, owner: GuildSettingsModalCommunityIntro.icon, offset: 0x0259934a, size: 76 bytes, params: 1, frame: 16
const AnalyticsIcon = (require(11046) /* metro dependency 11046: AnalyticsIcon */).AnalyticsIcon;
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
return <AnalyticsIcon color={GREEN_360} />;
}
function GuildSettingsModalCommunityIntroFeatureHook(a0, a1) { // fn#123720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:2849, owner: GuildSettingsModalCommunityIntro.featureHook, offset: 0x02599396, size: 67 bytes, params: 3, frame: 15
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
variant="text-sm/semibold"
color="mobile-text-heading-primary"
key={a1}
>
{a0}
</Text>
);
}
function GuildSettingsModalCommunityIntroIcon_123721() { // fn#123721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:2960, owner: GuildSettingsModalCommunityIntro.icon, offset: 0x025993d9, size: 76 bytes, params: 1, frame: 16
const LightbulbIcon = (require(14783) /* metro dependency 14783: LightbulbIcon */).LightbulbIcon;
const YELLOW_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300;
return <LightbulbIcon color={YELLOW_300} />;
}
function GuildSettingsModalCommunityIntroIcon_123724() { // fn#123724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:3266, owner: GuildSettingsModalCommunityIntro.icon, offset: 0x02599425, size: 76 bytes, params: 1, frame: 16
const CircleInformationIcon = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
const PLATFORM_PARTNER = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PLATFORM_PARTNER;
return <CircleInformationIcon color={PLATFORM_PARTNER} />;
}
function _fun123725(a0, a1) { // fn#123725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16201:3449, offset: 0x02599471, size: 37 bytes, params: 3, frame: 15
return <FeatureCard {...a0} key={a1} />;
}
global.__d(_fun123711, 15993, [31, 27, 1867, 3784, 661, 33, 4501, 697, 11046, 1244, 4573, 14783, 4068, 1484, 566,
694, 9112, 15994, 6766, 1948, 4578, 15998, 3856, 5462,
2]) /* metro module 15993, dependencies: [31, 27, 1867, 3784, 661, 33, 4501, 697, 11046, 1244, 4573, 14783, 4068, 1484, 566, 694, 9112, 15994, 6766, 1948, 4578, 15998, 3856, 5462, 2] */;