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,183 +1,240 @@
/* Metro module 16013; source: modules/public_guilds/native/components/EnableCommunityModal/ChannelSetupScreen.tsx; dependencies: [31, 27, 9113, 1379, 1935, 3793, 1878, 8295, 661, 33, 3860, 697, 16002, 566, 4805, 1244, 16003, 4080, 9059, 1962, 9112, 16000, 4573, 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 RelationshipStore from '../../../../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import ActionSheetActionCreators from '../../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import GuildSettingsActionCreators from '../../../../guild_settings/GuildSettingsActionCreators.tsx'; /* Metro dependency 9112 */
import GuildSettingsStore from '../../../../guild_settings/GuildSettingsStore.tsx'; /* Metro dependency 9113 */
import UseEnableCommunityModalIcons from './useEnableCommunityModalIcons.tsx'; /* Metro dependency 16003 */
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 FluxModule from '../../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as GuildChannelStoreModule from '../../../../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
import * as UseTokenModule from '../../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as StackNativeModule from '../../../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as UseChannelNameModule from '../../../../channel/useChannelName.tsx'; /* Metro dependency 4805 */
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 PublicGuildsConstantsModule from '../../../PublicGuildsConstants.tsx'; /* Metro dependency 8295 */
import * as EnableCommunitySharedNavigationModule from './EnableCommunitySharedNavigation.tsx'; /* Metro dependency 16000 */
import * as EnableCommunitySharedStylesModule from './EnableCommunitySharedStyles.tsx'; /* Metro dependency 16002 */
function _fun123789(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16221:6, offset: 0x0259af97, size: 325 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_4 = value.Image;
const env0_5 = value.View;
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
const env0_9 = (require(1935) /* metro dependency 1935: GuildChannelStore */).GUILD_SELECTABLE_CHANNELS_KEY;
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_12 = (require(8295) /* metro dependency 8295: PublicGuildsConstants */).CREATE_NEW_CHANNEL_VALUE;
const env0_13 = (require(661) /* metro dependency 661: Constants */).ChannelTypes;
value = require(33) /* metro dependency 33 */;
const env0_14 = value.jsx;
const env0_15 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/public_guilds/native/components/EnableCommunityModal/ChannelSetupScreen.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/public_guilds/native/components/EnableCommunityModal/ChannelSetupScreen.tsx');
exports.default = ChannelSetupScreen;
}
function ChannelSetupScreen() { // fn#123790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16221:438, offset: 0x0259b0dc, size: 1335 bytes, params: 1, frame: 35
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value2 = undefined;
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 value4 = (require(16002) /* metro dependency 16002: EnableCommunitySharedStyles */).useEnableCommunitySharedStyles();
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStoresObject = fluxModule.useStateFromStoresObject;
const guild = Reflect.apply(useStateFromStoresObject, fluxModule, [[GuildSettingsStore], function() {
return GuildSettingsStore.getProps();
}]).guild;
const {rulesChannel, publicUpdatesChannel} = fluxModule.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;
});
const r24 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(rulesChannel,
true) ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Cla0re);
const r17 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(publicUpdatesChannel,
true) ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Cla0re);
const value10 = (importDefault(16003) /* metro dependency 16003: useEnableCommunityModalIcons */)();
let binding = env0_3;
const value11 = binding.useCallback(_fun123793, [guild == null ? value2 : guild.id]);
var env0_3 = value11;
binding = env0_3;
const value12 = binding.useCallback(_fun123796, [value11, rulesChannel]);
const value13 = binding.useCallback(_fun123798, [value11, publicUpdatesChannel]);
const EnableCommunityModalScreen = (require(16000) /* metro dependency 16000: EnableCommunitySharedNavigation */).EnableCommunityModalScreen;
const EnableCommunityModalSteps = (require(16000) /* metro dependency 16000: EnableCommunitySharedNavigation */).EnableCommunityModalSteps;
const STEP_2 = EnableCommunityModalSteps.STEP_2;
const content = value4.content;
const items3 = [<Image resizeMode="contain" source={value10.channelSetup} />];
const Heading = (require(4573) /* metro dependency 4573: Text */).Heading;
const header = value4.header;
let string = intl.string;
const YtXpEh = (require(1244) /* metro dependency 1244: indexNative */).t.YtXpEh;
items3[1] = <Heading style={header} variant="heading-xl/extrabold" color="mobile-text-heading-primary">{Reflect.apply(string,
intl, [YtXpEh])}</Heading>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items3[2] = <Text style={value4.description} variant="text-md/medium" color="text-subtle">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['J/fYR8'])}</Text>;
const items2 = [<View style={content}>{items3}</View>];
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
let object = {paddingHorizontal: value3};
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const tableRowGroupProps = {helperText: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+Af+Vw']),
hasIcons: false};
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
string = intl.string;
const dYrhCO = (require(1244) /* metro dependency 1244: indexNative */).t.dYrhCO;
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
let TrailingText = TableRow2.TrailingText;
const tableRowGroup = <TableRowGroup {...tableRowGroupProps}><TableRow label={Reflect.apply(string, intl,
[dYrhCO])} trailing={<TrailingText text={r24} />} arrow onPress={value12} /></TableRowGroup>;
const object2 = {};
string = intl.string;
const ZFeonu = (require(1244) /* metro dependency 1244: indexNative */).t.ZFeonu;
object2.helperText = Reflect.apply(string, intl, [ZFeonu]);
object2.hasIcons = false;
string = intl.string;
const vAyDGU = (require(1244) /* metro dependency 1244: indexNative */).t.vAyDGU;
const TableRow3 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
TrailingText = TableRow3.TrailingText;
items2[1] = <Stack spacing={24} style={object}>{tableRowGroup}<TableRowGroup {...object2}><TableRow label={Reflect.apply(string,
intl, [vAyDGU])} trailing={<TrailingText text={r17} />} arrow onPress={value13} /></TableRowGroup></Stack>;
return (
<EnableCommunityModalScreen disableNextStep={false} currentStep={STEP_2}>
{items2}
</EnableCommunityModalScreen>
);
}
function _fun123793() { // fn#123793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16221:1044, offset: 0x0259b673, size: 191 bytes, params: 1, frame: 21
var environment;
var r2;
let value = environment.__proto__;
const channels = GuildChannelStore.getChannels(guild?.id);
const object2 = {};
object2.value = CREATE_NEW_CHANNEL_VALUE;
const intl = require(dependencyMap[15]).intl;
const string = intl.string;
const Cla0re = require(dependencyMap[15]).t.Cla0re;
object2.label = Reflect.apply(string, intl, [Cla0re]);
if (channels == null) {
r2 = [];
} else {
value = channels[GUILD_SELECTABLE_CHANNELS_KEY].filter(function(a0) {
return a0.channel.type === ChannelTypes.GUILD_TEXT;
function ChannelSetupScreen() { // fn#123790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16221:438, offset: 0x0259b0dc, size: 1335 bytes, params: 1, frame: 35
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value2 = undefined;
const useToken = UseTokenModule.useToken;
const TABLE_ROW_PADDING = (Native).modules.mobile.TABLE_ROW_PADDING;
let value3 = Reflect.apply(useToken, UseTokenModule, [TABLE_ROW_PADDING]);
const value4 = (EnableCommunitySharedStylesModule).useEnableCommunitySharedStyles();
const useStateFromStoresObject = FluxModule.useStateFromStoresObject;
const guild = Reflect.apply(useStateFromStoresObject, FluxModule, [[GuildSettingsStore], function() {
return GuildSettingsStore.getProps();
}]).guild;
const {rulesChannel, publicUpdatesChannel} = FluxModule.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;
});
value = value.map(_fun123795);
r2 = value;
const r24 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(rulesChannel,
true) ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Cla0re);
const r17 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(publicUpdatesChannel,
true) ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Cla0re);
const value10 = (UseEnableCommunityModalIcons)();
let binding = env0_3;
const value11 = binding.useCallback(_fun123793, [guild == null ? value2 : guild.id]);
var env0_3 = value11;
binding = env0_3;
const value12 = binding.useCallback(_fun123796, [value11, rulesChannel]);
const value13 = binding.useCallback(_fun123798, [value11, publicUpdatesChannel]);
const EnableCommunityModalScreen = (EnableCommunitySharedNavigationModule).EnableCommunityModalScreen;
const EnableCommunityModalSteps = (EnableCommunitySharedNavigationModule).EnableCommunityModalSteps;
const STEP_2 = EnableCommunityModalSteps.STEP_2;
const content = value4.content;
const items3 = [
<Image resizeMode="contain" source={value10.channelSetup} />,
];
const Heading = (TextModule).Heading;
const header = value4.header;
let string = intl.string;
const YtXpEh = (require(1244) /* metro dependency 1244: indexNative */).t.YtXpEh;
items3[1] = (
<Heading
style={header}
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
>
{Reflect.apply(string, intl, [YtXpEh])}
</Heading>
);
const Text = (TextModule).Text;
items3[2] = (
<Text
style={value4.description}
variant="text-md/medium"
color="text-subtle"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['J/fYR8'])}
</Text>
);
const items2 = [
<View style={content}>
{items3}
</View>,
];
const Stack = (StackNativeModule).Stack;
const object2 = {paddingHorizontal: value3};
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
const tableRowGroupProps = {helperText: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+Af+Vw']),
hasIcons: false};
const TableRow = (TableRowNativeModule).TableRow;
string = intl.string;
const dYrhCO = (require(1244) /* metro dependency 1244: indexNative */).t.dYrhCO;
const TableRow2 = (TableRowNativeModule).TableRow;
let TrailingText = TableRow2.TrailingText;
const tableRowGroup = (
<TableRowGroup {...tableRowGroupProps}>
<TableRow
label={Reflect.apply(string, intl, [dYrhCO])}
trailing={<TrailingText text={r24} />}
arrow
onPress={value12}
/>
</TableRowGroup>
);
const object4 = {};
string = intl.string;
const ZFeonu = (require(1244) /* metro dependency 1244: indexNative */).t.ZFeonu;
object4.helperText = Reflect.apply(string, intl, [ZFeonu]);
object4.hasIcons = false;
string = intl.string;
const vAyDGU = (require(1244) /* metro dependency 1244: indexNative */).t.vAyDGU;
const TableRow3 = (TableRowNativeModule).TableRow;
TrailingText = TableRow3.TrailingText;
items2[1] = (
<Stack spacing={24} style={object2}>
{tableRowGroup}
<TableRowGroup {...object4}>
<TableRow
label={Reflect.apply(string, intl, [vAyDGU])}
trailing={<TrailingText text={r17} />}
arrow
onPress={value13}
/>
</TableRowGroup>
</Stack>
);
return (
<EnableCommunityModalScreen disableNextStep={false} currentStep={STEP_2}>
{items2}
</EnableCommunityModalScreen>
);
function _fun123793() { // fn#123793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16221:1044, offset: 0x0259b673, size: 191 bytes, params: 1, frame: 21
var environment;
var r2;
let value = environment.__proto__;
const channels = GuildChannelStore.getChannels(guild?.id);
const object = {};
object.value = CREATE_NEW_CHANNEL_VALUE;
const intl = require(dependencyMap[15]).intl;
const string = intl.string;
const Cla0re = require(dependencyMap[15]).t.Cla0re;
object.label = Reflect.apply(string, intl, [Cla0re]);
if (channels == null) {
r2 = [];
} else {
value = channels[GUILD_SELECTABLE_CHANNELS_KEY].filter(function(a0) {
return a0.channel.type === ChannelTypes.GUILD_TEXT;
});
value = value.map(_fun123795);
r2 = value;
}
const items2 = [object];
arraySpread(items2, r2, 1, dependencyMap);
return items2;
function _fun123795({channel}) { // fn#123795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16221:1229, offset: 0x0259b752, size: 76 bytes, params: 2, frame: 18
const object = {};
object.value = channel.id;
object.label = UseChannelNameModule.computeChannelName(channel, UserStore, RelationshipStore, true);
return object;
}
}
function _fun123796() { // fn#123796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16221:1357, offset: 0x0259b79e, size: 207 bytes, params: 1, frame: 21
const value2 = undefined;
const defaultImport = importDefault(dependencyMap[17]);
const openLazy = defaultImport.openLazy;
const value3 = require(dependencyMap[19])(dependencyMap[18], dependencyMap.paths);
const object = {};
const intl = require(dependencyMap[15]).intl;
const string = intl.string;
const Yr6nGx = require(dependencyMap[15]).t.Yr6nGx;
object.title = Reflect.apply(string, intl, [Yr6nGx]);
object.items = env0_3();
object.onItemSelect = onItemSelect_123797;
object.selectedItem = (rulesChannel == null ? value2 : rulesChannel.id) ?? CREATE_NEW_CHANNEL_VALUE;
object.hasIcons = false;
Reflect.apply(openLazy, defaultImport, [value3, 'SelectRulesChannel', object]);
return value2;
function onItemSelect_123797(a0) { // fn#123797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16221:1501, offset: 0x0259b86d, size: 70 bytes, params: 2, frame: 15
const value = environment.__proto__.__proto__;
(GuildSettingsActionCreators).updateGuild({rulesChannelId: a0});
(ActionSheetActionCreators).hideActionSheet();
}
}
function _fun123798() { // fn#123798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16221:1661, offset: 0x0259b8b3, size: 207 bytes, params: 1, frame: 21
const value2 = undefined;
const defaultImport = importDefault(dependencyMap[17]);
const openLazy = defaultImport.openLazy;
const value3 = require(dependencyMap[19])(dependencyMap[18], dependencyMap.paths);
const object = {};
const intl = require(dependencyMap[15]).intl;
const string = intl.string;
const VqhxxN = require(dependencyMap[15]).t.VqhxxN;
object.title = Reflect.apply(string, intl, [VqhxxN]);
object.items = env0_3();
object.onItemSelect = onItemSelect_123799;
object.selectedItem = (publicUpdatesChannel == null ? value2 : publicUpdatesChannel.id) ?? CREATE_NEW_CHANNEL_VALUE;
object.hasIcons = false;
Reflect.apply(openLazy, defaultImport, [value3, 'SelectUpdatesChannel', object]);
return value2;
function onItemSelect_123799(a0) { // fn#123799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16221:1807, offset: 0x0259b982, size: 70 bytes, params: 2, frame: 15
const value = environment.__proto__.__proto__;
(GuildSettingsActionCreators).updateGuild({publicUpdatesChannelId: a0});
(ActionSheetActionCreators).hideActionSheet();
}
}
}
const items2 = [object2];
arraySpread(items2, r2, 1, dependencyMap);
return items2;
}
function _fun123796() { // fn#123796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16221:1357, offset: 0x0259b79e, size: 207 bytes, params: 1, frame: 21
const value2 = undefined;
const defaultImport = importDefault(dependencyMap[17]);
const openLazy = defaultImport.openLazy;
const value3 = require(dependencyMap[19])(dependencyMap[18], dependencyMap.paths);
const object2 = {};
const intl = require(dependencyMap[15]).intl;
const string = intl.string;
const Yr6nGx = require(dependencyMap[15]).t.Yr6nGx;
object2.title = Reflect.apply(string, intl, [Yr6nGx]);
object2.items = env0_3();
object2.onItemSelect = onItemSelect_123797;
object2.selectedItem = (rulesChannel == null ? value2 : rulesChannel.id) ?? CREATE_NEW_CHANNEL_VALUE;
object2.hasIcons = false;
Reflect.apply(openLazy, defaultImport, [value3, 'SelectRulesChannel', object2]);
return value2;
}
function _fun123798() { // fn#123798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16221:1661, offset: 0x0259b8b3, size: 207 bytes, params: 1, frame: 21
const value2 = undefined;
const defaultImport = importDefault(dependencyMap[17]);
const openLazy = defaultImport.openLazy;
const value3 = require(dependencyMap[19])(dependencyMap[18], dependencyMap.paths);
const object2 = {};
const intl = require(dependencyMap[15]).intl;
const string = intl.string;
const VqhxxN = require(dependencyMap[15]).t.VqhxxN;
object2.title = Reflect.apply(string, intl, [VqhxxN]);
object2.items = env0_3();
object2.onItemSelect = onItemSelect_123799;
object2.selectedItem = (publicUpdatesChannel == null ? value2 : publicUpdatesChannel.id) ?? CREATE_NEW_CHANNEL_VALUE;
object2.hasIcons = false;
Reflect.apply(openLazy, defaultImport, [value3, 'SelectUpdatesChannel', object2]);
return value2;
}
function _fun123795({channel}) { // fn#123795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16221:1229, offset: 0x0259b752, 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_123797(a0) { // fn#123797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16221:1501, offset: 0x0259b86d, 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_123799(a0) { // fn#123799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16221:1807, offset: 0x0259b982, 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();
}
global.__d(_fun123789, 16013, [31, 27, 9113, 1379, 1935, 3793, 1878, 8295, 661, 33, 3860, 697, 16002, 566, 4805,
1244, 16003, 4080, 9059, 1962, 9112, 16000, 4573, 4572, 6231, 6238,
2]) /* metro module 16013, dependencies: [31, 27, 9113, 1379, 1935, 3793, 1878, 8295, 661, 33, 3860, 697, 16002, 566, 4805, 1244, 16003, 4080, 9059, 1962, 9112, 16000, 4573, 4572, 6231, 6238, 2] */;
@@ -1,33 +1,41 @@
/* Metro module 16012; source: modules/public_guilds/native/components/EnableCommunityModal/CommunityRequirementSatisfiedForm.tsx; dependencies: [31, 27, 33, 3856, 16002, 5278, 2] */
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 JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as EnableCommunitySharedStylesModule from './EnableCommunitySharedStyles.tsx'; /* Metro dependency 16002 */
function _fun123786(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16220:6, offset: 0x0259ae1a, size: 161 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const value = require(33) /* metro dependency 33 */;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/public_guilds/native/components/EnableCommunityModal/CommunityRequirementSatisfiedForm.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/public_guilds/native/components/EnableCommunityModal/CommunityRequirementSatisfiedForm.tsx');
exports.default = CommunityRequirementSatisfiedForm;
}
function CommunityRequirementSatisfiedForm({formSwitchDisabled, children}) { // fn#123787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16220:288, offset: 0x0259aebb, size: 171 bytes, params: 2, frame: 21
const value2 = (EnableCommunitySharedStylesModule).useEnableCommunitySharedStyles();
return (
<View style={value2.communityRequirementSatisfiedFormWrapper}>
{children}
{
formSwitchDisabled
? ((PressableOpacity) => <PressableOpacity accessibilityRole="button" style={value2.communityRequirementSatisfiedFormPressable} onPress={onPress_123788} />)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)
: null
}
</View>
);
function CommunityRequirementSatisfiedFormOnPress() { // fn#123788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16220:602, owner: CommunityRequirementSatisfiedForm.onPress, offset: 0x0259af66, size: 49 bytes, params: 1, frame: 11
var value;
if (formSwitchDisabled) {
value = environment.__proto__;
value = require(3856) /* metro dependency 3856: ToastUtils */;
value.communityRequirementSatisfied();
}
}
function CommunityRequirementSatisfiedForm({formSwitchDisabled, children}) { // fn#123787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16220:288, offset: 0x0259aebb, size: 171 bytes, params: 2, frame: 21
const value2 = (require(16002) /* metro dependency 16002: EnableCommunitySharedStyles */).useEnableCommunitySharedStyles();
return (
<View style={value2.communityRequirementSatisfiedFormWrapper}>
{children}
{formSwitchDisabled ? ((PressableOpacity) => <PressableOpacity accessibilityRole="button" style={value2.communityRequirementSatisfiedFormPressable} onPress={onPress_123788} />)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity) : null}
</View>
);
}
function CommunityRequirementSatisfiedFormOnPress() { // fn#123788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16220:602, owner: CommunityRequirementSatisfiedForm.onPress, offset: 0x0259af66, size: 49 bytes, params: 1, frame: 11
var value;
if (formSwitchDisabled) {
value = environment.__proto__;
value = require(3856) /* metro dependency 3856: ToastUtils */;
value.communityRequirementSatisfied();
}
}
global.__d(_fun123786, 16012, [31, 27, 33, 3856, 16002, 5278,
2]) /* metro module 16012, dependencies: [31, 27, 33, 3856, 16002, 5278, 2] */;
@@ -1,103 +1,125 @@
/* Metro module 15999; source: modules/public_guilds/native/components/EnableCommunityModal/EnableCommunityModal.tsx; dependencies: [31, 33, 16000, 1244, 15998, 5286, 5282, 5277, 8160, 16001, 16013, 16014, 5280, 2] */
import Module08160 from '../../../../../by-id/module-08160.js'; /* Metro dependency 8160 */
import EnableCommunityModalActionCreators from '../../EnableCommunityModalActionCreators.tsx'; /* Metro dependency 15998 */
import SafetyCheckScreen from './SafetyCheckScreen.tsx'; /* Metro dependency 16001 */
import ChannelSetupScreen from './ChannelSetupScreen.tsx'; /* Metro dependency 16013 */
import FinishingTouchesScreen from './FinishingTouchesScreen.tsx'; /* Metro dependency 16014 */
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 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 NavigatorHeaderNativeModule from '../../../../../design/components/Navigator/native/NavigatorHeader.native.tsx'; /* Metro dependency 5282 */
import * as EnableCommunitySharedNavigationModule from './EnableCommunitySharedNavigation.tsx'; /* Metro dependency 16000 */
function _fun123739(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:6, offset: 0x0259976d, size: 218 bytes, params: 8, frame: 19
const env0_0 = require;
let 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;
Object = global.Object;
const keys = Object.keys;
const EnableCommunityModalSteps = (require(16000) /* metro dependency 16000: EnableCommunitySharedNavigation */).EnableCommunityModalSteps;
const EnableCommunityModalSteps = (EnableCommunitySharedNavigationModule).EnableCommunityModalSteps;
const env0_5 = Reflect.apply(keys, Object, [EnableCommunityModalSteps]).length;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/public_guilds/native/components/EnableCommunityModal/EnableCommunityModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/public_guilds/native/components/EnableCommunityModal/EnableCommunityModal.tsx');
exports.default = EnableCommunityModal;
function getScreenTitle(a0) { // fn#123740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:176, offset: 0x02599847, size: 138 bytes, params: 2, frame: 17
const Object = global.Object;
const keys = Object.keys;
const EnableCommunityModalSteps = (EnableCommunitySharedNavigationModule).EnableCommunityModalSteps;
const value4 = Reflect.apply(keys, Object, [EnableCommunityModalSteps]).indexOf(a0) + 1;
const intl = (IndexNativeModule).intl;
return intl.formatToPlainString((IndexNativeModule).t.tInpJj, {number: value4,
total: length});
}
function onModalClose() { // fn#123741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:346, offset: 0x01e68f54, size: 37 bytes, params: 1, frame: 11
(EnableCommunityModalActionCreators).close();
}
function HeaderBackButton_123742(a0) { // fn#123742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:386, offset: 0x025998d1, size: 130 bytes, params: 2, frame: 18
(require(5286) /* metro dependency 5286: useNavigatorBackPressHandlerNative */).useNavigatorBackPressHandler(function() {
onModalClose();
return true;
});
const getHeaderTextButton = NavigatorHeaderNativeModule.getHeaderTextButton;
const intl = (IndexNativeModule).intl;
return Reflect.apply(getHeaderTextButton, NavigatorHeaderNativeModule,
[intl.string((IndexNativeModule).t['13/7kX']), onModalClose])(a0);
}
function EnableCommunityModal() { // fn#123744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:702, offset: 0x02599964, size: 159 bytes, params: 1, frame: 18
const value2 = ReactModule.useMemo(function() {
return _fun123746();
}, []);
const Navigator = (NavigatorNativeModule).Navigator;
const EnableCommunityModalSteps = (EnableCommunitySharedNavigationModule).EnableCommunityModalSteps;
const STEP_1 = EnableCommunityModalSteps.STEP_1;
const intl = (IndexNativeModule).intl;
return (
<Navigator
screens={value2}
initialRouteName={STEP_1}
headerBackTitle={intl.string((IndexNativeModule).t['13/7kX'])}
/>
);
function _fun123745() { // fn#123745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:751, offset: 0x02599a03, size: 17 bytes, params: 1, frame: 9
return getScreens_123746();
function getScreens_123746() { // fn#123746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:755, offset: 0x02599a14, size: 270 bytes, params: 1, frame: 19
const headerRight_1237472 = headerRight_123747;
const object = {};
const EnableCommunityModalSteps = (EnableCommunitySharedNavigationModule).EnableCommunityModalSteps;
const STEP_1 = EnableCommunityModalSteps.STEP_1;
const object2 = {headerRight: headerRight_1237472};
object2.headerLeft = HeaderBackButton_123742;
const getScreenTitleBinding = getScreenTitle;
const STEP_12 = EnableCommunityModalSteps.STEP_1;
object2.headerTitle = getScreenTitleBinding(STEP_12);
object2.render = render_123748;
object[STEP_1] = object2;
const STEP_2 = EnableCommunityModalSteps.STEP_2;
const object3 = {headerRight: headerRight_1237472};
const STEP_22 = EnableCommunityModalSteps.STEP_2;
object3.headerTitle = getScreenTitleBinding(STEP_22);
object3.render = render_123749;
object[STEP_2] = object3;
const STEP_3 = EnableCommunityModalSteps.STEP_3;
const object4 = {headerRight: headerRight_1237472};
const STEP_32 = EnableCommunityModalSteps.STEP_3;
object4.headerTitle = getScreenTitleBinding(STEP_32);
object4.render = render_123750;
object[STEP_3] = object4;
return object;
function getScreens_123746HeaderRight() { // fn#123747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:793, owner: getScreens_123746.headerRight, offset: 0x02599b22, size: 124 bytes, params: 1, frame: 18
const HeaderActionButton = (HeaderActionButtonNativeModule).HeaderActionButton;
const headerActionButtonProps = {source: Module08160, onPress: onModalClose};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
return <HeaderActionButton {...headerActionButtonProps} />;
}
function getScreens_123746Render() { // fn#123748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:1101, owner: getScreens_123746.render, offset: 0x02599b9e, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(SafetyCheckScreen);
}
function getScreens_123746Render_123749() { // fn#123749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:1264, owner: getScreens_123746.render, offset: 0x02599bc5, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(ChannelSetupScreen);
}
function getScreens_123746Render_123750() { // fn#123750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:1428, owner: getScreens_123746.render, offset: 0x023b7803, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(FinishingTouchesScreen);
}
}
}
}
}
function getScreenTitle(a0) { // fn#123740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:176, offset: 0x02599847, size: 138 bytes, params: 2, frame: 17
const Object = global.Object;
const keys = Object.keys;
const EnableCommunityModalSteps = (require(16000) /* metro dependency 16000: EnableCommunitySharedNavigation */).EnableCommunityModalSteps;
const value4 = Reflect.apply(keys, Object, [EnableCommunityModalSteps]).indexOf(a0) + 1;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.tInpJj, {number: value4,
total: length});
}
function HeaderBackButton_123742(a0) { // fn#123742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:386, offset: 0x025998d1, size: 130 bytes, params: 2, frame: 18
(require(5286) /* metro dependency 5286: useNavigatorBackPressHandlerNative */).useNavigatorBackPressHandler(function() {
onModalClose();
return true;
});
const navigatorHeaderNativeModule = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
const getHeaderTextButton = navigatorHeaderNativeModule.getHeaderTextButton;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return Reflect.apply(getHeaderTextButton, navigatorHeaderNativeModule,
[intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX']), onModalClose])(a0);
}
function EnableCommunityModal() { // fn#123744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:702, offset: 0x02599964, size: 159 bytes, params: 1, frame: 18
const value2 = env0_3.useMemo(function() {
return _fun123746();
}, []);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const EnableCommunityModalSteps = (require(16000) /* metro dependency 16000: EnableCommunitySharedNavigation */).EnableCommunityModalSteps;
const STEP_1 = EnableCommunityModalSteps.STEP_1;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<Navigator
screens={value2}
initialRouteName={STEP_1}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function _fun123745() { // fn#123745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:751, offset: 0x02599a03, size: 17 bytes, params: 1, frame: 9
return getScreens_123746();
}
function getScreens_123746() { // fn#123746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:755, offset: 0x02599a14, size: 270 bytes, params: 1, frame: 19
const closure = headerRight_123747;
const object5 = {};
const EnableCommunityModalSteps = (require(16000) /* metro dependency 16000: EnableCommunitySharedNavigation */).EnableCommunityModalSteps;
const STEP_1 = EnableCommunityModalSteps.STEP_1;
const object6 = {headerRight: closure};
object6.headerLeft = HeaderBackButton_123742;
const getScreenTitleBinding = getScreenTitle;
const STEP_12 = EnableCommunityModalSteps.STEP_1;
object6.headerTitle = getScreenTitleBinding(STEP_12);
object6.render = render_123748;
object5[STEP_1] = object6;
const STEP_2 = EnableCommunityModalSteps.STEP_2;
const object7 = {headerRight: closure};
const STEP_22 = EnableCommunityModalSteps.STEP_2;
object7.headerTitle = getScreenTitleBinding(STEP_22);
object7.render = render_123749;
object5[STEP_2] = object7;
const STEP_3 = EnableCommunityModalSteps.STEP_3;
const object8 = {headerRight: closure};
const STEP_32 = EnableCommunityModalSteps.STEP_3;
object8.headerTitle = getScreenTitleBinding(STEP_32);
object8.render = render_123750;
object5[STEP_3] = object8;
return object5;
}
function getScreens_123746HeaderRight() { // fn#123747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:793, owner: getScreens_123746.headerRight, offset: 0x02599b22, size: 124 bytes, params: 1, frame: 18
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
const headerActionButtonProps = {source: importDefault(8160) /* metro dependency 8160 */, onPress: onModalClose};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
return <HeaderActionButton {...headerActionButtonProps} />;
}
function getScreens_123746Render() { // fn#123748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:1101, owner: getScreens_123746.render, offset: 0x02599b9e, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(16001) /* metro dependency 16001: SafetyCheckScreen */);
}
function getScreens_123746Render_123749() { // fn#123749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16207:1264, owner: getScreens_123746.render, offset: 0x02599bc5, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(16013) /* metro dependency 16013: ChannelSetupScreen */);
}
global.__d(_fun123739, 15999, [31, 33, 16000, 1244, 15998, 5286, 5282, 5277, 8160, 16001, 16013, 16014, 5280,
2]) /* metro module 15999, dependencies: [31, 33, 16000, 1244, 15998, 5286, 5282, 5277, 8160, 16001, 16013, 16014, 5280, 2] */;
@@ -1,91 +1,119 @@
/* Metro module 16000; source: modules/public_guilds/native/components/EnableCommunityModal/EnableCommunitySharedNavigation.tsx; dependencies: [31, 27, 9113, 661, 33, 4501, 566, 1484, 694, 15998, 5460, 6618, 4578, 1244, 2] */
import GuildSettingsStore from '../../../../guild_settings/GuildSettingsStore.tsx'; /* Metro dependency 9113 */
import EnableCommunityModalActionCreators from '../../EnableCommunityModalActionCreators.tsx'; /* Metro dependency 15998 */
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 FluxModule from '../../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UseNavigationNativeModule from '../../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun123751(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16208:6, offset: 0x02599bec, size: 346 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_4 = value.View;
const env0_5 = value.ScrollView;
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
const env0_7 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
value = require(33) /* metro dependency 33 */;
const env0_8 = value.jsx;
const env0_9 = value.jsxs;
const env0_10 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'flex': 1,
const env0_10 = (CreateStylesModule).createStyles({container: {'flex': 1,
'height': '100%'}, modal: {'height': '100%', 'flex': 1, 'justifyContent': 'space-between'},
button: {'flexGrow': 0, 'paddingLeft': 16, 'paddingTop': 16, 'paddingRight': 16}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/public_guilds/native/components/EnableCommunityModal/EnableCommunitySharedNavigation.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/public_guilds/native/components/EnableCommunityModal/EnableCommunitySharedNavigation.tsx');
exports.EnableCommunityModalSteps = {STEP_1: 'STEP_1', STEP_2: 'STEP_2', STEP_3: 'STEP_3'};
exports.EnableCommunityModalScreen = EnableCommunityModalScreen;
}
function EnableCommunityModalScreen({onSuccess, disableNextStep, children, buttonText, currentStep}) { // fn#123752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16208:657, offset: 0x02599d46, size: 543 bytes, params: 2, frame: 30
var r15;
var r0;
var SafeAreaPaddingView;
var items2;
var Button;
var intl;
const styles = useStyles();
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStoresObject = fluxModule.useStateFromStoresObject;
const guild = Reflect.apply(useStateFromStoresObject, fluxModule, [[GuildSettingsStore], function() {
return GuildSettingsStore.getProps();
}]).guild;
const r2 = guild == null ? undefined : guild.features.has(GuildFeatures.COMMUNITY);
const env0_3 = r2;
const env0_4 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
env0_3.useEffect(_fun123754, [r2]);
if (guild == null) {
const SceneLoadingIndicator = (require(5460) /* metro dependency 5460: SceneLoadingIndicatorNative */).SceneLoadingIndicator;
r0 = <SceneLoadingIndicator />;
} else {
var scrollViewBindingProps = {style: styles.container};
SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
var safeAreaPaddingViewProps = {bottom: true, style: styles.modal};
items2 = [<View style={{flexGrow: 1}}>{children}</View>];
var viewBindingProps = {style: styles.button};
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
if (buttonText != null) {
r15 = buttonText;
function EnableCommunityModalScreen({onSuccess, disableNextStep, children, buttonText, currentStep}) { // fn#123752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16208:657, offset: 0x02599d46, size: 543 bytes, params: 2, frame: 30
var r15;
var r0;
var SafeAreaPaddingView;
var items2;
var Button;
var intl;
const styles = useStyles();
const useStateFromStoresObject = FluxModule.useStateFromStoresObject;
const guild = Reflect.apply(useStateFromStoresObject, FluxModule, [[GuildSettingsStore], function() {
return GuildSettingsStore.getProps();
}]).guild;
const r2 = guild == null ? undefined : guild.features.has(GuildFeatures.COMMUNITY);
const env0_3 = r2;
const env0_4 = (UseNavigationNativeModule).useNavigation();
env0_3.useEffect(_fun123754, [r2]);
if (guild == null) {
const SceneLoadingIndicator = (require(5460) /* metro dependency 5460: SceneLoadingIndicatorNative */).SceneLoadingIndicator;
r0 = <SceneLoadingIndicator />;
} else {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r15 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.PDTjLN);
var scrollViewBindingProps = {style: styles.container};
SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
var safeAreaPaddingViewProps = {bottom: true, style: styles.modal};
items2 = [
<View style={{flexGrow: 1}}>
{children}
</View>,
];
var viewBindingProps = {style: styles.button};
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
if (buttonText != null) {
r15 = buttonText;
} else {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r15 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.PDTjLN);
}
items2[1] = (
<View {...viewBindingProps}>
<Button
variant="primary"
grow
text={r15}
onPress={onPress_123756}
disabled={disableNextStep}
/>
</View>
);
r0 = (
<ScrollView {...scrollViewBindingProps}>
<SafeAreaPaddingView {...safeAreaPaddingViewProps}>
{items2}
</SafeAreaPaddingView>
</ScrollView>
);
}
items2[1] = <View {...viewBindingProps}><Button variant="primary" grow text={r15} onPress={onPress_123756} disabled={disableNextStep} /></View>;
r0 = <ScrollView {...scrollViewBindingProps}><SafeAreaPaddingView {...safeAreaPaddingViewProps}>{items2}</SafeAreaPaddingView></ScrollView>;
return r0;
function _fun123754() { // fn#123754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16208:930, offset: 0x02599f78, size: 59 bytes, params: 1, frame: 11
var environment;
var value;
if (env0_3) {
value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.wait(_fun123755);
}
function _fun123755() { // fn#123755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16208:952, offset: 0x02599fb3, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
return (EnableCommunityModalActionCreators).close();
}
}
function EnableCommunityModalScreenOnPress() { // fn#123756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16208:1298, owner: EnableCommunityModalScreen.onPress, offset: 0x02599fd8, size: 119 bytes, params: 1, frame: 13
var binding;
const currentStepBinding = currentStep;
const STEP_1 = env1_11.STEP_1;
if (STEP_1 === currentStepBinding) {
binding = env0_4;
binding.push(env1_11.STEP_2);
} else if (env1_11.STEP_2 === currentStepBinding) {
binding = env0_4;
binding.push(env1_11.STEP_3);
} else if (onSuccess != null) {
onSuccess(guild);
}
}
}
return r0;
}
function _fun123754() { // fn#123754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16208:930, offset: 0x02599f78, size: 59 bytes, params: 1, frame: 11
var environment;
var value;
if (env0_3) {
value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.wait(_fun123755);
}
}
function EnableCommunityModalScreenOnPress() { // fn#123756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16208:1298, owner: EnableCommunityModalScreen.onPress, offset: 0x02599fd8, size: 119 bytes, params: 1, frame: 13
var binding;
const currentStepBinding = currentStep;
const STEP_1 = env1_11.STEP_1;
if (STEP_1 === currentStepBinding) {
binding = env0_4;
binding.push(env1_11.STEP_2);
} else if (env1_11.STEP_2 === currentStepBinding) {
binding = env0_4;
binding.push(env1_11.STEP_3);
} else if (onSuccess != null) {
onSuccess(guild);
}
}
function _fun123755() { // fn#123755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16208:952, offset: 0x02599fb3, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
return (importDefault(15998) /* metro dependency 15998: EnableCommunityModalActionCreators */).close();
}
global.__d(_fun123751, 16000, [31, 27, 9113, 661, 33, 4501, 566, 1484, 694, 15998, 5460, 6618, 4578, 1244,
2]) /* metro module 16000, dependencies: [31, 27, 9113, 661, 33, 4501, 566, 1484, 694, 15998, 5460, 6618, 4578, 1244, 2] */;
@@ -1,16 +1,21 @@
/* Metro module 16002; source: modules/public_guilds/native/components/EnableCommunityModal/EnableCommunitySharedStyles.tsx; dependencies: [27, 4501, 2] */
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 CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun123762(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16210:6, offset: 0x0259a76c, size: 222 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(27) /* metro dependency 27 */).Platform;
let value = require(4501) /* metro dependency 4501: createStyles */;
(ReactNativeModule).Platform;
let value = CreateStylesModule;
value = value.createStyles({content: {'alignItems': 'center', 'paddingLeft': 16, 'paddingRight': 16,
'marginTop': 30}, header: {'marginTop': 12, 'textAlign': 'center'}, description: {'marginBottom': 16,
'marginTop': 8, 'textAlign': 'center'}, formHint: {paddingHorizontal: 16},
communityRequirementSatisfiedFormWrapper: {position: 'relative'},
communityRequirementSatisfiedFormPressable: {'position': 'absolute', 'width': 80, 'top': 0, 'right': 0,
'height': '100%'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/public_guilds/native/components/EnableCommunityModal/EnableCommunitySharedStyles.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/public_guilds/native/components/EnableCommunityModal/EnableCommunitySharedStyles.tsx');
exports.useEnableCommunitySharedStyles = value;
}
global.__d(_fun123762, 16002, [27, 4501, 2]) /* metro module 16002, dependencies: [27, 4501, 2] */;
@@ -1,15 +1,30 @@
/* Metro module 16014; source: modules/public_guilds/native/components/EnableCommunityModal/FinishingTouchesScreen.tsx; dependencies: [57, 31, 27, 9113, 1938, 8295, 661, 33, 3860, 697, 566, 3789, 9112, 483, 15961, 16003, 16002, 16000, 1244, 4573, 4572, 6231, 16012, 6808, 1948, 2] */
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 GuildRoleStore from '../../../../../stores/GuildRoleStore.tsx'; /* Metro dependency 1938 */
import HelpdeskUtils from '../../../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import GuildSettingsStore from '../../../../guild_settings/GuildSettingsStore.tsx'; /* Metro dependency 9113 */
import UseEnableCommunityModalIcons from './useEnableCommunityModalIcons.tsx'; /* Metro dependency 16003 */
import CommunityRequirementSatisfiedForm from './CommunityRequirementSatisfiedForm.tsx'; /* Metro dependency 16012 */
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 FluxModule from '../../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as UseTokenModule from '../../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as StackNativeModule from '../../../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as TableRowGroupNativeModule from '../../../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableSwitchRowNativeModule from '../../../../../design/components/TableRow/native/TableSwitchRow.native.tsx'; /* Metro dependency 6808 */
import * as EnableCommunitySharedNavigationModule from './EnableCommunitySharedNavigation.tsx'; /* Metro dependency 16000 */
import * as EnableCommunitySharedStylesModule from './EnableCommunitySharedStyles.tsx'; /* Metro dependency 16002 */
function _fun123800(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16222:6, offset: 0x0259b9c8, size: 318 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
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.Image;
const env0_7 = value.View;
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
const guildRoleStore = importDefault(1938) /* metro dependency 1938: GuildRoleStore */;
value = require(8295) /* metro dependency 8295: PublicGuildsConstants */;
const env0_10 = value.CREATE_NEW_CHANNEL_VALUE;
const env0_11 = value.MODERATOR_PERMISSIONS;
@@ -21,177 +36,237 @@ function _fun123800(global, require, importDefault, importAll, module, exports,
value = require(33) /* metro dependency 33 */;
const env0_16 = value.jsx;
const env0_17 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/public_guilds/native/components/EnableCommunityModal/FinishingTouchesScreen.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/public_guilds/native/components/EnableCommunityModal/FinishingTouchesScreen.tsx');
exports.default = FinishingTouchesScreen;
}
function FinishingTouchesScreen() { // fn#123801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16222:498, offset: 0x0259bb06, size: 1574 bytes, params: 1, frame: 47
const value2 = undefined;
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;
const value3 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_PADDING]);
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStoresObject = fluxModule.useStateFromStoresObject;
const guild = Reflect.apply(useStateFromStoresObject, fluxModule, [[GuildSettingsStore], function() {
return GuildSettingsStore.getProps();
}]).guild;
let binding = env0_5;
let useState = binding.useState;
let defaultMessageNotifications = guild == null ? value2 : guild.defaultMessageNotifications;
const value4 = Reflect.apply(useState, binding, [defaultMessageNotifications]);
binding = env0_4;
let property = binding(value4, 1)[0];
let ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
const value6 = property === ONLY_MENTIONS;
const binding2 = env0_5;
const [property2, property3] = binding(binding2.useState(false), 2);
useState = binding2.useState;
const value9 = binding(Reflect.apply(useState, binding2, [!MODERATOR_PERMISSIONS.some(_fun123803)]), 2);
const property4 = value9[0];
const property5 = value9[1];
useState = binding2.useState;
const property6 = binding(Reflect.apply(useState, binding2, [property4]), 1)[0];
const value10 = binding2.useCallback(_fun123804, [guild == null ? value2 : guild.defaultMessageNotifications,
property]);
const value11 = env0_5.useCallback(_fun123805, []);
const value12 = (importDefault(16003) /* metro dependency 16003: useEnableCommunityModalIcons */)();
const value13 = (require(16002) /* metro dependency 16002: EnableCommunitySharedStyles */).useEnableCommunitySharedStyles();
const EnableCommunityModalScreen = (require(16000) /* metro dependency 16000: EnableCommunitySharedNavigation */).EnableCommunityModalScreen;
const EnableCommunityModalSteps = (require(16000) /* metro dependency 16000: EnableCommunitySharedNavigation */).EnableCommunityModalSteps;
const STEP_3 = EnableCommunityModalSteps.STEP_3;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const XGl4ba = (require(1244) /* metro dependency 1244: indexNative */).t.XGl4ba;
const content = value13.content;
const items3 = [<Image resizeMode="contain" source={value12.finishingTouches} />];
const Heading = (require(4573) /* metro dependency 4573: Text */).Heading;
items3[1] = <Heading style={value13.header} variant="heading-xl/extrabold" color="mobile-text-heading-primary">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Pj/s/a'])}</Heading>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items3[2] = <Text style={value13.description} variant="text-md/medium" color="text-subtle">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['IL7/no'])}</Text>;
const items2 = [<View style={content}>{items3}</View>];
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const object = {paddingHorizontal: value3};
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const CommunityRequirementSatisfiedForm = importDefault(16012) /* metro dependency 16012: CommunityRequirementSatisfiedForm */;
const TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
let format = intl.format;
const K8Eg4P = (require(1244) /* metro dependency 1244: indexNative */).t.K8Eg4P;
defaultMessageNotifications = guild == null ? value2 : guild.defaultMessageNotifications;
ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
const tableRowGroup = <TableRowGroup hasIcons={false}><CommunityRequirementSatisfiedForm formSwitchDisabled={value6}><TableSwitchRow label={Reflect.apply(format,
intl, [K8Eg4P, {infoHook: function() {
return null;
}}])} value={defaultMessageNotifications === ONLY_MENTIONS} disabled={value6} onValueChange={value10} /></CommunityRequirementSatisfiedForm><CommunityRequirementSatisfiedForm formSwitchDisabled={property6}><TableSwitchRow label={intl.format((require(1244) /* metro dependency 1244: indexNative */).t.v8qCoG,
{infoHook: function() {
return null;
}})} value={property4} disabled={property6} onValueChange={property5} /></CommunityRequirementSatisfiedForm></TableRowGroup>;
items2[1] = <Stack spacing={24} style={object}>{tableRowGroup}<TableRowGroup title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['k+b2Cf'])} hasIcons={false}><TableSwitchRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9AG3wI'])} value={property2} onValueChange={property3} /></TableRowGroup></Stack>;
const formHint = value13.formHint;
format = intl.format;
property = (require(1244) /* metro dependency 1244: indexNative */).t['BwbW/Q'];
const object2 = {};
const defaultImport3 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
let getArticleURL = defaultImport3.getArticleURL;
const PUBLIC_GUILD_GUILDLINES = HelpdeskArticles.PUBLIC_GUILD_GUILDLINES;
object2.communityGuidelines = Reflect.apply(getArticleURL, defaultImport3, [PUBLIC_GUILD_GUILDLINES]);
const value = defaultImport3;
getArticleURL = value.getArticleURL;
const FRIEND_COMMUNITY_DISCOVERABLE_GUILD_TYPES = HelpdeskArticles.FRIEND_COMMUNITY_DISCOVERABLE_GUILD_TYPES;
object2.typesOfGuilds = Reflect.apply(getArticleURL, value, [FRIEND_COMMUNITY_DISCOVERABLE_GUILD_TYPES]);
items2[2] = <Text style={formHint} variant="text-xs/medium" color="text-subtle">{Reflect.apply(format, intl,
[property, object2])}</Text>;
return (
<EnableCommunityModalScreen
currentStep={STEP_3}
onSuccess={value11}
disableNextStep={!property2}
buttonText={Reflect.apply(string, intl, [XGl4ba])}
>
{items2}
</EnableCommunityModalScreen>
);
}
function _fun123803(a0) { // fn#123803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16222:818, offset: 0x0259c13f, size: 49 bytes, params: 2, frame: 13
let value = environment.__proto__;
value = importAll(3789) /* metro dependency 3789: PermissionUtils */;
return value.canEveryone(a0, guild);
}
function _fun123804(a0) { // fn#123804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16222:918, offset: 0x0259c170, size: 176 bytes, params: 2, frame: 14
var defaultMessageNotifications;
var value4;
let value = a0;
if (value) {
defaultMessageNotifications = guild?.defaultMessageNotifications;
value4 = environment.__proto__;
if (defaultMessageNotifications !== UserNotificationSettings.ONLY_MENTIONS) {
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({defaultMessageNotifications: UserNotificationSettings.ONLY_MENTIONS});
} else if (!(value || env0_1 == null)) {
value = environment.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.updateGuild({defaultMessageNotifications: env0_1});
function FinishingTouchesScreen() { // fn#123801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16222:498, offset: 0x0259bb06, size: 1574 bytes, params: 1, frame: 47
const value2 = undefined;
const useToken = UseTokenModule.useToken;
const TABLE_ROW_PADDING = (Native).modules.mobile.TABLE_ROW_PADDING;
const value3 = Reflect.apply(useToken, UseTokenModule, [TABLE_ROW_PADDING]);
const useStateFromStoresObject = FluxModule.useStateFromStoresObject;
const guild = Reflect.apply(useStateFromStoresObject, FluxModule, [[GuildSettingsStore], function() {
return GuildSettingsStore.getProps();
}]).guild;
let binding = ReactModule;
let useState = binding.useState;
let defaultMessageNotifications = guild == null ? value2 : guild.defaultMessageNotifications;
const value4 = Reflect.apply(useState, binding, [defaultMessageNotifications]);
binding = Module00057;
let property = binding(value4, 1)[0];
let ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
const value6 = property === ONLY_MENTIONS;
const [property2, property3] = binding(ReactModule.useState(false), 2);
useState = ReactModule.useState;
const value9 = binding(Reflect.apply(useState, ReactModule, [!MODERATOR_PERMISSIONS.some(_fun123803)]), 2);
const property4 = value9[0];
const property5 = value9[1];
useState = ReactModule.useState;
const property6 = binding(Reflect.apply(useState, ReactModule, [property4]), 1)[0];
const value10 = ReactModule.useCallback(_fun123804, [guild == null ? value2 : guild.defaultMessageNotifications,
property]);
const value11 = ReactModule.useCallback(_fun123805, []);
const value12 = (UseEnableCommunityModalIcons)();
const value13 = (EnableCommunitySharedStylesModule).useEnableCommunitySharedStyles();
const EnableCommunityModalScreen = (EnableCommunitySharedNavigationModule).EnableCommunityModalScreen;
const EnableCommunityModalSteps = (EnableCommunitySharedNavigationModule).EnableCommunityModalSteps;
const STEP_3 = EnableCommunityModalSteps.STEP_3;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const XGl4ba = (require(1244) /* metro dependency 1244: indexNative */).t.XGl4ba;
const content = value13.content;
const items3 = [
<Image resizeMode="contain" source={value12.finishingTouches} />,
];
const Heading = (TextModule).Heading;
items3[1] = (
<Heading
style={value13.header}
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Pj/s/a'])}
</Heading>
);
const Text = (TextModule).Text;
items3[2] = (
<Text
style={value13.description}
variant="text-md/medium"
color="text-subtle"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['IL7/no'])}
</Text>
);
const items2 = [
<View style={content}>
{items3}
</View>,
];
const Stack = (StackNativeModule).Stack;
const object = {paddingHorizontal: value3};
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
const TableSwitchRow = (TableSwitchRowNativeModule).TableSwitchRow;
let format = intl.format;
const K8Eg4P = (require(1244) /* metro dependency 1244: indexNative */).t.K8Eg4P;
defaultMessageNotifications = guild == null ? value2 : guild.defaultMessageNotifications;
ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
const tableRowGroup = (
<TableRowGroup hasIcons={false}>
<CommunityRequirementSatisfiedForm formSwitchDisabled={value6}>
<TableSwitchRow
label={Reflect.apply(format, intl, [K8Eg4P, {infoHook: function() {
return null;
}}])}
value={defaultMessageNotifications === ONLY_MENTIONS}
disabled={value6}
onValueChange={value10}
/>
</CommunityRequirementSatisfiedForm>
<CommunityRequirementSatisfiedForm formSwitchDisabled={property6}>
<TableSwitchRow
label={intl.format((require(1244) /* metro dependency 1244: indexNative */).t.v8qCoG,
{infoHook: function() {
return null;
}})}
value={property4}
disabled={property6}
onValueChange={property5}
/>
</CommunityRequirementSatisfiedForm>
</TableRowGroup>
);
items2[1] = (
<Stack spacing={24} style={object}>
{tableRowGroup}
<TableRowGroup
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['k+b2Cf'])}
hasIcons={false}
>
<TableSwitchRow
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9AG3wI'])}
value={property2}
onValueChange={property3}
/>
</TableRowGroup>
</Stack>
);
const formHint = value13.formHint;
format = intl.format;
property = (require(1244) /* metro dependency 1244: indexNative */).t['BwbW/Q'];
const object2 = {};
const defaultImport3 = HelpdeskUtils;
let getArticleURL = defaultImport3.getArticleURL;
const PUBLIC_GUILD_GUILDLINES = HelpdeskArticles.PUBLIC_GUILD_GUILDLINES;
object2.communityGuidelines = Reflect.apply(getArticleURL, defaultImport3, [PUBLIC_GUILD_GUILDLINES]);
const value = defaultImport3;
getArticleURL = value.getArticleURL;
const FRIEND_COMMUNITY_DISCOVERABLE_GUILD_TYPES = HelpdeskArticles.FRIEND_COMMUNITY_DISCOVERABLE_GUILD_TYPES;
object2.typesOfGuilds = Reflect.apply(getArticleURL, value, [FRIEND_COMMUNITY_DISCOVERABLE_GUILD_TYPES]);
items2[2] = (
<Text
style={formHint}
variant="text-xs/medium"
color="text-subtle"
>
{Reflect.apply(format, intl, [property, object2])}
</Text>
);
return (
<EnableCommunityModalScreen
currentStep={STEP_3}
onSuccess={value11}
disableNextStep={!property2}
buttonText={Reflect.apply(string, intl, [XGl4ba])}
>
{items2}
</EnableCommunityModalScreen>
);
function _fun123803(a0) { // fn#123803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16222:818, offset: 0x0259c13f, size: 49 bytes, params: 2, frame: 13
let value = environment.__proto__;
value = importAll(3789) /* metro dependency 3789: PermissionUtils */;
return value.canEveryone(a0, guild);
}
} else if (!(value || env0_1 == null)) {
value = environment.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.updateGuild({defaultMessageNotifications: env0_1});
}
}
function _fun123805(a0) { // fn#123805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16222:1193, offset: 0x0259c220, size: 340 bytes, params: 2, frame: 22
var r10;
var Set;
var features;
var set;
var add;
var value6;
var moduleValue;
var remove;
var permissions;
var value7;
var object3;
var defaultImport;
var saveGuild;
var id;
var object4;
var moduleValue2;
const value = undefined;
const r3 = a0 != null ? GuildRoleStore.getEveryoneRole(a0) : value;
if (r3 != null) {
Set = global.Set;
features = a0.features;
set = new Set();
add = set.add;
value6 = environment.__proto__;
Reflect.apply(add, set, [GuildFeatures.COMMUNITY]);
moduleValue = importAll(483) /* metro dependency 483: BigFlagUtils */;
remove = moduleValue.remove;
permissions = r3.permissions;
value7 = Reflect.apply(remove, moduleValue, [permissions, MODERATOR_PERMISSIONS_FLAG]);
object3 = {};
copyDataProperties(object3, r3, undefined);
object3['permissions'] = value7;
defaultImport = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
saveGuild = defaultImport.saveGuild;
id = a0.id;
object4 = {features: set};
r10 = a0.rulesChannelId ?? CREATE_NEW_CHANNEL_VALUE;
object4.rulesChannelId = r10;
object4.safetyAlertsChannelId = a0.safetyAlertsChannelId;
object4.verificationLevel = a0.verificationLevel;
object4.explicitContentFilter = a0.explicitContentFilter;
r10 = a0.publicUpdatesChannelId ?? CREATE_NEW_CHANNEL_VALUE;
object4.publicUpdatesChannelId = r10;
object4.defaultMessageNotifications = a0.defaultMessageNotifications;
Reflect.apply(saveGuild, defaultImport, [id, object4]);
permissions = r3.permissions;
if (value7 !== permissions) {
moduleValue2 = require(15961) /* metro dependency 15961: GuildSettingsRolesActionCreators */;
moduleValue2.saveRoleSettings(a0.id, [object3]);
function _fun123804(a0) { // fn#123804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16222:918, offset: 0x0259c170, size: 176 bytes, params: 2, frame: 14
var defaultMessageNotifications;
var value4;
let value = a0;
if (value) {
defaultMessageNotifications = guild?.defaultMessageNotifications;
value4 = environment.__proto__;
if (defaultMessageNotifications !== UserNotificationSettings.ONLY_MENTIONS) {
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({defaultMessageNotifications: UserNotificationSettings.ONLY_MENTIONS});
} else if (!(value || env0_1 == null)) {
value = environment.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.updateGuild({defaultMessageNotifications: env0_1});
}
} else if (!(value || env0_1 == null)) {
value = environment.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.updateGuild({defaultMessageNotifications: env0_1});
}
}
function _fun123805(a0) { // fn#123805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16222:1193, offset: 0x0259c220, size: 340 bytes, params: 2, frame: 22
var r10;
var Set;
var features;
var set;
var add;
var value6;
var moduleValue;
var remove;
var permissions;
var value7;
var object;
var defaultImport;
var saveGuild;
var id;
var object2;
var moduleValue2;
const value = undefined;
const r3 = a0 != null ? GuildRoleStore.getEveryoneRole(a0) : value;
if (r3 != null) {
Set = global.Set;
features = a0.features;
set = new Set();
add = set.add;
value6 = environment.__proto__;
Reflect.apply(add, set, [GuildFeatures.COMMUNITY]);
moduleValue = importAll(483) /* metro dependency 483: BigFlagUtils */;
remove = moduleValue.remove;
permissions = r3.permissions;
value7 = Reflect.apply(remove, moduleValue, [permissions, MODERATOR_PERMISSIONS_FLAG]);
object = {};
copyDataProperties(object, r3, undefined);
object['permissions'] = value7;
defaultImport = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
saveGuild = defaultImport.saveGuild;
id = a0.id;
object2 = {features: set};
r10 = a0.rulesChannelId ?? CREATE_NEW_CHANNEL_VALUE;
object2.rulesChannelId = r10;
object2.safetyAlertsChannelId = a0.safetyAlertsChannelId;
object2.verificationLevel = a0.verificationLevel;
object2.explicitContentFilter = a0.explicitContentFilter;
r10 = a0.publicUpdatesChannelId ?? CREATE_NEW_CHANNEL_VALUE;
object2.publicUpdatesChannelId = r10;
object2.defaultMessageNotifications = a0.defaultMessageNotifications;
Reflect.apply(saveGuild, defaultImport, [id, object2]);
permissions = r3.permissions;
if (value7 !== permissions) {
moduleValue2 = require(15961) /* metro dependency 15961: GuildSettingsRolesActionCreators */;
moduleValue2.saveRoleSettings(a0.id, [object]);
}
}
return value;
}
}
return value;
}
global.__d(_fun123800, 16014, [57, 31, 27, 9113, 1938, 8295, 661, 33, 3860, 697, 566, 3789, 9112, 483, 15961, 16003,
16002, 16000, 1244, 4573, 4572, 6231, 16012, 6808, 1948,
2]) /* metro module 16014, dependencies: [57, 31, 27, 9113, 1938, 8295, 661, 33, 3860, 697, 566, 3789, 9112, 483, 15961, 16003, 16002, 16000, 1244, 4573, 4572, 6231, 16012, 6808, 1948, 2] */;
@@ -1,152 +1,207 @@
/* Metro module 16001; source: modules/public_guilds/native/components/EnableCommunityModal/SafetyCheckScreen.tsx; dependencies: [57, 31, 27, 9113, 661, 33, 3860, 697, 16002, 566, 16003, 16000, 4573, 1244, 4572, 6231, 16012, 6808, 9112, 2] */
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 GuildSettingsStore from '../../../../guild_settings/GuildSettingsStore.tsx'; /* Metro dependency 9113 */
import UseEnableCommunityModalIcons from './useEnableCommunityModalIcons.tsx'; /* Metro dependency 16003 */
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 FluxModule from '../../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseTokenModule from '../../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as TableRowGroupNativeModule from '../../../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableSwitchRowNativeModule from '../../../../../design/components/TableRow/native/TableSwitchRow.native.tsx'; /* Metro dependency 6808 */
import * as EnableCommunitySharedStylesModule from './EnableCommunitySharedStyles.tsx'; /* Metro dependency 16002 */
function _fun123757(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16209:6, offset: 0x0259a04f, size: 246 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_5 = value.Image;
const env0_6 = value.View;
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
value = require(661) /* metro dependency 661: Constants */;
const env0_8 = value.VerificationLevels;
const env0_9 = value.GuildExplicitContentFilterTypes;
value = require(33) /* metro dependency 33 */;
const env0_10 = value.jsx;
const env0_11 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/public_guilds/native/components/EnableCommunityModal/SafetyCheckScreen.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/public_guilds/native/components/EnableCommunityModal/SafetyCheckScreen.tsx');
exports.default = SafetyCheckScreen;
}
function SafetyCheckScreen() { // fn#123758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16209:378, offset: 0x0259a145, size: 1266 bytes, params: 1, frame: 41
var r0;
var EnableCommunityModalScreen;
var items4;
var Heading;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var Text;
var items2;
var Stack;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
var object8;
var CommunityRequirementSatisfiedForm;
const TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
var items3;
var object11;
var CommunityRequirementSatisfiedForm2;
var zOuzl7;
const value2 = undefined;
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;
const value3 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_PADDING]);
const value4 = (require(16002) /* metro dependency 16002: EnableCommunitySharedStyles */).useEnableCommunitySharedStyles();
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStoresObject = fluxModule.useStateFromStoresObject;
const guild = Reflect.apply(useStateFromStoresObject, fluxModule, [[GuildSettingsStore], function() {
return GuildSettingsStore.getProps();
}]).guild;
const value5 = (importDefault(16003) /* metro dependency 16003: useEnableCommunityModalIcons */)();
let binding = env0_4;
let useState = binding.useState;
const value6 = null;
const verificationLevel = value6 == guild ? value2 : guild.verificationLevel;
const property = env0_3(Reflect.apply(useState, binding,
[value6 != verificationLevel ? verificationLevel : VerificationLevels.NONE]), 1)[0];
binding = env0_4;
useState = binding.useState;
let explicitContentFilter = value6 == guild ? value2 : guild.explicitContentFilter;
const property2 = env0_3(Reflect.apply(useState, binding,
[value6 != explicitContentFilter ? explicitContentFilter : GuildExplicitContentFilterTypes.ALL_MEMBERS]), 1)[0];
const NONE = VerificationLevels.NONE;
const value10 = property !== NONE;
let ALL_MEMBERS = GuildExplicitContentFilterTypes.ALL_MEMBERS;
const value11 = property2 === ALL_MEMBERS;
if (value6 == guild) {
r0 = value6;
} else {
EnableCommunityModalScreen = (require(16000) /* metro dependency 16000: EnableCommunitySharedNavigation */).EnableCommunityModalScreen;
var enableCommunityModalScreenProps = {currentStep: (require(16000) /* metro dependency 16000: EnableCommunitySharedNavigation */).EnableCommunityModalSteps.STEP_1};
explicitContentFilter = guild.explicitContentFilter;
ALL_MEMBERS = GuildExplicitContentFilterTypes.ALL_MEMBERS;
enableCommunityModalScreenProps.disableNextStep = explicitContentFilter !== ALL_MEMBERS || guild.verificationLevel === VerificationLevels.NONE;
var viewBindingProps = {style: value4.content};
items4 = [<Image resizeMode="contain" source={value5.safetyCheck} />];
Heading = (require(4573) /* metro dependency 4573: Text */).Heading;
string = intl.string;
items4[1] = <Heading style={value4.header} variant="heading-xl/extrabold" color="mobile-text-heading-primary">{Reflect.apply(string,
intl, [t.QrjLYl])}</Heading>;
Text = (require(4573) /* metro dependency 4573: Text */).Text;
string = intl.string;
items4[2] = <Text style={value4.description} variant="text-md/medium" color="text-subtle">{Reflect.apply(string,
intl, [t.i1STwu])}</Text>;
items2 = [<View {...viewBindingProps}>{items4}</View>];
Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
var stackProps = {spacing: 24, style: {paddingHorizontal: value3}};
var tableRowGroupProps = {helperText: intl.string(t.fHiGA0), hasIcons: false};
CommunityRequirementSatisfiedForm = importDefault(16012) /* metro dependency 16012: CommunityRequirementSatisfiedForm */;
string = intl.string;
items3 = [<TableRowGroup {...tableRowGroupProps}><CommunityRequirementSatisfiedForm formSwitchDisabled={value10}><TableSwitchRow label={Reflect.apply(string,
intl,
[t['rkA56+']])} value={guild.verificationLevel !== VerificationLevels.NONE} disabled={value10} onValueChange={onValueChange_123760} /></CommunityRequirementSatisfiedForm></TableRowGroup>];
var tableRowGroupProps2 = {helperText: intl.string(t.b0MaDV), hasIcons: false};
CommunityRequirementSatisfiedForm2 = importDefault(16012) /* metro dependency 16012: CommunityRequirementSatisfiedForm */;
string = intl.string;
zOuzl7 = t.zOuzl7;
explicitContentFilter = guild.explicitContentFilter;
ALL_MEMBERS = GuildExplicitContentFilterTypes.ALL_MEMBERS;
items3[1] = <TableRowGroup {...tableRowGroupProps2}><CommunityRequirementSatisfiedForm2 formSwitchDisabled={value11}><TableSwitchRow label={Reflect.apply(string,
intl,
[zOuzl7])} value={explicitContentFilter === ALL_MEMBERS} disabled={value11} onValueChange={onValueChange_123761} /></CommunityRequirementSatisfiedForm2></TableRowGroup>;
items2[1] = <Stack {...stackProps}>{items3}</Stack>;
r0 = <EnableCommunityModalScreen {...enableCommunityModalScreenProps}>{items2}</EnableCommunityModalScreen>;
}
return r0;
}
function SafetyCheckScreenOnValueChange(a0) { // fn#123760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16209:1722, owner: SafetyCheckScreen.onValueChange, offset: 0x0259a64a, size: 145 bytes, params: 2, frame: 13
var value;
var verificationLevel;
if (a0) {
verificationLevel = guild.verificationLevel;
value = environment.__proto__;
if (verificationLevel < VerificationLevels.LOW) {
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({verificationLevel: VerificationLevels.LOW});
} else if (!a0) {
value = environment.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.updateGuild({verificationLevel: env0_1});
function SafetyCheckScreen() { // fn#123758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16209:378, offset: 0x0259a145, size: 1266 bytes, params: 1, frame: 41
var r0;
var EnableCommunityModalScreen;
var items4;
var Heading;
const intl = (IndexNativeModule).intl;
var string;
const t = (IndexNativeModule).t;
var Text;
var items2;
var Stack;
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
var object;
var CommunityRequirementSatisfiedForm;
const TableSwitchRow = (TableSwitchRowNativeModule).TableSwitchRow;
var items3;
var object2;
var CommunityRequirementSatisfiedForm2;
var zOuzl7;
const value2 = undefined;
const useToken = UseTokenModule.useToken;
const TABLE_ROW_PADDING = (Native).modules.mobile.TABLE_ROW_PADDING;
const value3 = Reflect.apply(useToken, UseTokenModule, [TABLE_ROW_PADDING]);
const value4 = (EnableCommunitySharedStylesModule).useEnableCommunitySharedStyles();
const useStateFromStoresObject = FluxModule.useStateFromStoresObject;
const guild = Reflect.apply(useStateFromStoresObject, FluxModule, [[GuildSettingsStore], function() {
return GuildSettingsStore.getProps();
}]).guild;
const value5 = (UseEnableCommunityModalIcons)();
let binding = ReactModule;
let useState = binding.useState;
const value6 = null;
const verificationLevel = value6 == guild ? value2 : guild.verificationLevel;
const property = Module00057(Reflect.apply(useState, binding,
[value6 != verificationLevel ? verificationLevel : VerificationLevels.NONE]), 1)[0];
binding = ReactModule;
useState = binding.useState;
let explicitContentFilter = value6 == guild ? value2 : guild.explicitContentFilter;
const property2 = Module00057(Reflect.apply(useState, binding,
[value6 != explicitContentFilter ? explicitContentFilter : GuildExplicitContentFilterTypes.ALL_MEMBERS]), 1)[0];
const NONE = VerificationLevels.NONE;
const value10 = property !== NONE;
let ALL_MEMBERS = GuildExplicitContentFilterTypes.ALL_MEMBERS;
const value11 = property2 === ALL_MEMBERS;
if (value6 == guild) {
r0 = value6;
} else {
EnableCommunityModalScreen = (require(16000) /* metro dependency 16000: EnableCommunitySharedNavigation */).EnableCommunityModalScreen;
var enableCommunityModalScreenProps = {currentStep: (require(16000) /* metro dependency 16000: EnableCommunitySharedNavigation */).EnableCommunityModalSteps.STEP_1};
explicitContentFilter = guild.explicitContentFilter;
ALL_MEMBERS = GuildExplicitContentFilterTypes.ALL_MEMBERS;
enableCommunityModalScreenProps.disableNextStep = explicitContentFilter !== ALL_MEMBERS || guild.verificationLevel === VerificationLevels.NONE;
var viewBindingProps = {style: value4.content};
items4 = [
<Image resizeMode="contain" source={value5.safetyCheck} />,
];
Heading = (require(4573) /* metro dependency 4573: Text */).Heading;
string = intl.string;
items4[1] = (
<Heading
style={value4.header}
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
>
{Reflect.apply(string, intl, [t.QrjLYl])}
</Heading>
);
Text = (require(4573) /* metro dependency 4573: Text */).Text;
string = intl.string;
items4[2] = (
<Text
style={value4.description}
variant="text-md/medium"
color="text-subtle"
>
{Reflect.apply(string, intl, [t.i1STwu])}
</Text>
);
items2 = [
<View {...viewBindingProps}>
{items4}
</View>,
];
Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
var stackProps = {spacing: 24, style: {paddingHorizontal: value3}};
var tableRowGroupProps = {helperText: intl.string(t.fHiGA0), hasIcons: false};
CommunityRequirementSatisfiedForm = importDefault(16012) /* metro dependency 16012: CommunityRequirementSatisfiedForm */;
string = intl.string;
items3 = [
<TableRowGroup {...tableRowGroupProps}>
<CommunityRequirementSatisfiedForm formSwitchDisabled={value10}>
<TableSwitchRow
label={Reflect.apply(string, intl, [t['rkA56+']])}
value={guild.verificationLevel !== VerificationLevels.NONE}
disabled={value10}
onValueChange={onValueChange_123760}
/>
</CommunityRequirementSatisfiedForm>
</TableRowGroup>,
];
var tableRowGroupProps2 = {helperText: intl.string(t.b0MaDV), hasIcons: false};
CommunityRequirementSatisfiedForm2 = importDefault(16012) /* metro dependency 16012: CommunityRequirementSatisfiedForm */;
string = intl.string;
zOuzl7 = t.zOuzl7;
explicitContentFilter = guild.explicitContentFilter;
ALL_MEMBERS = GuildExplicitContentFilterTypes.ALL_MEMBERS;
items3[1] = (
<TableRowGroup {...tableRowGroupProps2}>
<CommunityRequirementSatisfiedForm2 formSwitchDisabled={value11}>
<TableSwitchRow
label={Reflect.apply(string, intl, [zOuzl7])}
value={explicitContentFilter === ALL_MEMBERS}
disabled={value11}
onValueChange={onValueChange_123761}
/>
</CommunityRequirementSatisfiedForm2>
</TableRowGroup>
);
items2[1] = (
<Stack {...stackProps}>
{items3}
</Stack>
);
r0 = (
<EnableCommunityModalScreen {...enableCommunityModalScreenProps}>
{items2}
</EnableCommunityModalScreen>
);
}
} else if (!a0) {
value = environment.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.updateGuild({verificationLevel: env0_1});
}
}
function SafetyCheckScreenOnValueChange_123761(a0) { // fn#123761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16209:2141, owner: SafetyCheckScreen.onValueChange, offset: 0x0259a6db, size: 145 bytes, params: 2, frame: 13
var value;
var explicitContentFilter;
if (a0) {
explicitContentFilter = guild.explicitContentFilter;
value = environment.__proto__;
if (explicitContentFilter < GuildExplicitContentFilterTypes.ALL_MEMBERS) {
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({explicitContentFilter: GuildExplicitContentFilterTypes.ALL_MEMBERS});
} else if (!a0) {
value = environment.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.updateGuild({explicitContentFilter: env0_2});
return r0;
function SafetyCheckScreenOnValueChange(a0) { // fn#123760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16209:1722, owner: SafetyCheckScreen.onValueChange, offset: 0x0259a64a, size: 145 bytes, params: 2, frame: 13
var value;
var verificationLevel;
if (a0) {
verificationLevel = guild.verificationLevel;
value = environment.__proto__;
if (verificationLevel < VerificationLevels.LOW) {
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({verificationLevel: VerificationLevels.LOW});
} else if (!a0) {
value = environment.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.updateGuild({verificationLevel: env0_1});
}
} else if (!a0) {
value = environment.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.updateGuild({verificationLevel: env0_1});
}
}
} else if (!a0) {
value = environment.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.updateGuild({explicitContentFilter: env0_2});
function SafetyCheckScreenOnValueChange_123761(a0) { // fn#123761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16209:2141, owner: SafetyCheckScreen.onValueChange, offset: 0x0259a6db, size: 145 bytes, params: 2, frame: 13
var value;
var explicitContentFilter;
if (a0) {
explicitContentFilter = guild.explicitContentFilter;
value = environment.__proto__;
if (explicitContentFilter < GuildExplicitContentFilterTypes.ALL_MEMBERS) {
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({explicitContentFilter: GuildExplicitContentFilterTypes.ALL_MEMBERS});
} else if (!a0) {
value = environment.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.updateGuild({explicitContentFilter: env0_2});
}
} else if (!a0) {
value = environment.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.updateGuild({explicitContentFilter: env0_2});
}
}
}
}
global.__d(_fun123757, 16001, [57, 31, 27, 9113, 661, 33, 3860, 697, 16002, 566, 16003, 16000, 4573, 1244, 4572,
6231, 16012, 6808, 9112,
2]) /* metro module 16001, dependencies: [57, 31, 27, 9113, 661, 33, 3860, 697, 16002, 566, 16003, 16000, 4573, 1244, 4572, 6231, 16012, 6808, 9112, 2] */;
@@ -1,60 +1,65 @@
/* Metro module 16003; source: modules/public_guilds/native/components/EnableCommunityModal/useEnableCommunityModalIcons.tsx; dependencies: [57, 6, 7, 31, 482, 4002, 16004, 16005, 16006, 16010, 16011, 8160, 4048, 2] */
import ClassCallCheck from '../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UseTheme from '../../../../../hooks/useTheme.tsx'; /* Metro dependency 4048 */
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 '../../../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
import * as SharedModule from '../../../../../design/shared.tsx'; /* Metro dependency 4002 */
import * as ChannelSetupModule from '../../../../../design/components/Illustration/native/redesign/generated/ChannelSetup.tsx'; /* Metro dependency 16006 */
function _fun123763(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16211:6, offset: 0x0259a84a, size: 206 bytes, params: 8, frame: 19
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(6) /* metro dependency 6 */;
const env0_5 = importDefault(7) /* metro dependency 7 */;
const env0_6 = importAll(31) /* metro dependency 31 */;
const env0_7 = (require(482) /* metro dependency 482: Constants */).ThemeTypes;
const env0_8 = _fun123764();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/public_guilds/native/components/EnableCommunityModal/useEnableCommunityModalIcons.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/public_guilds/native/components/EnableCommunityModal/useEnableCommunityModalIcons.tsx');
exports.default = useEnableCommunityModalIcons;
function _fun123764() { // fn#123764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16211:159, offset: 0x0259a918, size: 140 bytes, params: 1, frame: 15
return CreateClass(EnableCommunityModalIcons, [{key: 'safetyCheck', get: get_123766}, {key: 'channelSetup',
get: get_123767}, {key: 'finishingTouches', get: get_123768}, {key: 'close', get: function() {
return require(dependencyMap[11]);
}}]);
function EnableCommunityModalIcons(a0) { // fn#123765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16211:180, offset: 0x0259a9a4, size: 51 bytes, params: 2, frame: 14
env1_4(this, EnableCommunityModalIcons);
const LIGHT = ThemeTypes.LIGHT;
this.theme = LIGHT;
this.theme = a0;
}
function get_123766() { // fn#123766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16211:310, offset: 0x0259a9d7, size: 84 bytes, params: 1, frame: 13
const value = environment.__proto__;
return SharedModule.isThemeDark(this.theme) ? require(16004) /* metro dependency 16004 */ : require(16005) /* metro dependency 16005 */;
}
function get_123767() { // fn#123767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16211:402, offset: 0x0259aa2b, size: 47 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (ChannelSetupModule).getChannelSetupSource(this.theme);
}
function get_123768() { // fn#123768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16211:492, offset: 0x0259aa5a, size: 84 bytes, params: 1, frame: 13
const value = environment.__proto__;
return SharedModule.isThemeDark(this.theme) ? require(16010) /* metro dependency 16010 */ : require(16011) /* metro dependency 16011 */;
}
}
function useEnableCommunityModalIcons() { // fn#123770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16211:750, offset: 0x0259aaae, size: 77 bytes, params: 1, frame: 14
const env0_0 = (UseTheme)();
return Module00057(ReactModule.useState(_fun123771), 1)[0];
function _fun123771() { // fn#123771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16211:821, offset: 0x0259aafb, size: 36 bytes, params: 1, frame: 11
let value = environment.__proto__;
const binding = env1_8;
const binding2 = env0_0;
value = Object.create(binding.prototype, {constructor: {value: binding}});
const binding3 = new binding(binding2);
return binding3 instanceof Object ? binding3 : value;
}
}
}
function _fun123764() { // fn#123764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16211:159, offset: 0x0259a918, size: 140 bytes, params: 1, frame: 15
return env0_5(EnableCommunityModalIcons, [{key: 'safetyCheck', get: get_123766}, {key: 'channelSetup',
get: get_123767}, {key: 'finishingTouches', get: get_123768}, {key: 'close', get: function() {
return require(dependencyMap[11]);
}}]);
}
function useEnableCommunityModalIcons() { // fn#123770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16211:750, offset: 0x0259aaae, size: 77 bytes, params: 1, frame: 14
const env0_0 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
return env0_3(env0_6.useState(_fun123771), 1)[0];
}
function EnableCommunityModalIcons(a0) { // fn#123765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16211:180, offset: 0x0259a9a4, size: 51 bytes, params: 2, frame: 14
env1_4(this, EnableCommunityModalIcons);
const LIGHT = ThemeTypes.LIGHT;
this.theme = LIGHT;
this.theme = a0;
}
function get_123766() { // fn#123766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16211:310, offset: 0x0259a9d7, size: 84 bytes, params: 1, frame: 13
const value = environment.__proto__;
const sharedModule = require(4002) /* metro dependency 4002: shared */;
return sharedModule.isThemeDark(this.theme) ? require(16004) /* metro dependency 16004 */ : require(16005) /* metro dependency 16005 */;
}
function get_123767() { // fn#123767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16211:402, offset: 0x0259aa2b, size: 47 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (require(16006) /* metro dependency 16006: ChannelSetup */).getChannelSetupSource(this.theme);
}
function get_123768() { // fn#123768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16211:492, offset: 0x0259aa5a, size: 84 bytes, params: 1, frame: 13
const value = environment.__proto__;
const sharedModule = require(4002) /* metro dependency 4002: shared */;
return sharedModule.isThemeDark(this.theme) ? require(16010) /* metro dependency 16010 */ : require(16011) /* metro dependency 16011 */;
}
function _fun123771() { // fn#123771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16211:821, offset: 0x0259aafb, size: 36 bytes, params: 1, frame: 11
let value = environment.__proto__;
const binding = env1_8;
const binding2 = env0_0;
value = Object.create(binding.prototype, {constructor: {value: binding}});
const binding3 = new binding(binding2);
return binding3 instanceof Object ? binding3 : value;
}
global.__d(_fun123763, 16003, [57, 6, 7, 31, 482, 4002, 16004, 16005, 16006, 16010, 16011, 8160, 4048,
2]) /* metro module 16003, dependencies: [57, 6, 7, 31, 482, 4002, 16004, 16005, 16006, 16010, 16011, 8160, 4048, 2] */;
@@ -1,48 +1,83 @@
/* Metro module 11396; source: modules/public_guilds/native/components/PublicGuildAnnouncementProfile.tsx; dependencies: [31, 27, 33, 4501, 697, 6275, 5475, 8294, 1305, 11397, 4573, 1244, 2] */
import FastImage from '../../../../components_native/common/FastImage.tsx'; /* Metro dependency 5475 */
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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as BottomSheetNativeModule from '../../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
function _fun87327(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11582:6, offset: 0x01fb8a25, size: 301 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'borderRadius': null, 'height': 80, 'width': 80, 'marginVertical': 16};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const env0_6 = Reflect.apply(createStyles, value, [{content: {padding: 16}, avatar: object,
const object2 = {'borderRadius': null, 'height': 80, 'width': 80, 'marginVertical': 16};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const env0_6 = Reflect.apply(createStyles, value, [{content: {padding: 16}, avatar: object2,
nameWrapper: {'flexDirection': 'row', 'alignItems': 'center'}, headerText: {marginLeft: 8},
description: {marginTop: 8}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/public_guilds/native/components/PublicGuildAnnouncementProfile.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/public_guilds/native/components/PublicGuildAnnouncementProfile.tsx');
exports.default = _default_87328;
}
function _default_87328() { // fn#87328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11582:384, offset: 0x01fb8b52, size: 545 bytes, params: 1, frame: 29
const styles = useStyles();
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
let value = importDefault(5475) /* metro dependency 5475: FastImage */;
value = ((Component) => <Component style={styles.avatar} source={(require(8294) /* metro dependency 8294: PublicGuildsUtils */).getPublicSystemMessageAvatar()} />)(value);
const items2 = [value];
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
value = <Icon source={importDefault(11397) /* metro dependency 11397 */} disableColor />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
items2[1] = <View style={styles.nameWrapper}>{value}<Text style={styles.headerText} variant="heading-xl/extrabold" color="mobile-text-heading-primary">{Reflect.apply(string,
intl, [(require(1244) /* metro dependency 1244: indexNative */).t.xfAlNx])}</Text></View>;
string = intl.string;
const BUZ0sl = (require(1244) /* metro dependency 1244: indexNative */).t.BUZ0sl;
items2[2] = <Text style={styles.description} variant="text-sm/medium" color="text-default">{Reflect.apply(string,
intl, [BUZ0sl])}</Text>;
items2[3] = <Text style={styles.description} variant="text-sm/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.w5beJH)}</Text>;
return (
<BottomSheet startExpanded>
<View style={styles.content}>
{items2}
function _default_87328() { // fn#87328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11582:384, offset: 0x01fb8b52, size: 545 bytes, params: 1, frame: 29
const styles = useStyles();
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
let value = FastImage;
value = ((Component) => <Component style={styles.avatar} source={(require(8294) /* metro dependency 8294: PublicGuildsUtils */).getPublicSystemMessageAvatar()} />)(value);
const items2 = [value];
const Icon = (NativeModule).Icon;
value = <Icon source={importDefault(11397) /* metro dependency 11397 */} disableColor />;
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
items2[1] = (
<View style={styles.nameWrapper}>
{value}
<Text
style={styles.headerText}
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
>
{Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.xfAlNx])}
</Text>
</View>
</BottomSheet>
);
);
string = intl.string;
const BUZ0sl = (require(1244) /* metro dependency 1244: indexNative */).t.BUZ0sl;
items2[2] = (
<Text
style={styles.description}
variant="text-sm/medium"
color="text-default"
>
{Reflect.apply(string, intl, [BUZ0sl])}
</Text>
);
items2[3] = (
<Text
style={styles.description}
variant="text-sm/medium"
color="text-default"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.w5beJH)}
</Text>
);
return (
<BottomSheet startExpanded>
<View style={styles.content}>
{items2}
</View>
</BottomSheet>
);
}
}
global.__d(_fun87327, 11396, [31, 27, 33, 4501, 697, 6275, 5475, 8294, 1305, 11397, 4573, 1244,
2]) /* metro module 11396, dependencies: [31, 27, 33, 4501, 697, 6275, 5475, 8294, 1305, 11397, 4573, 1244, 2] */;