Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,50 @@
|
||||
/* Metro module 8295; source: modules/public_guilds/PublicGuildsConstants.tsx; dependencies: [661, 483, 2] */
|
||||
function _fun66177(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8480:6, offset: 0x01bf094e, size: 438 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const Permissions = (require(661) /* metro dependency 661: Constants */).Permissions;
|
||||
const ADMINISTRATOR = Permissions.ADMINISTRATOR;
|
||||
items2 = [ADMINISTRATOR];
|
||||
const KICK_MEMBERS = Permissions.KICK_MEMBERS;
|
||||
items2[1] = KICK_MEMBERS;
|
||||
const BAN_MEMBERS = Permissions.BAN_MEMBERS;
|
||||
items2[2] = BAN_MEMBERS;
|
||||
const MANAGE_GUILD = Permissions.MANAGE_GUILD;
|
||||
items2[3] = MANAGE_GUILD;
|
||||
const MANAGE_CHANNELS = Permissions.MANAGE_CHANNELS;
|
||||
items2[4] = MANAGE_CHANNELS;
|
||||
const MANAGE_ROLES = Permissions.MANAGE_ROLES;
|
||||
items2[5] = MANAGE_ROLES;
|
||||
const MANAGE_MESSAGES = Permissions.MANAGE_MESSAGES;
|
||||
items2[6] = MANAGE_MESSAGES;
|
||||
const MANAGE_GUILD_EXPRESSIONS = Permissions.MANAGE_GUILD_EXPRESSIONS;
|
||||
items2[7] = MANAGE_GUILD_EXPRESSIONS;
|
||||
const CREATE_GUILD_EXPRESSIONS = Permissions.CREATE_GUILD_EXPRESSIONS;
|
||||
items2[8] = CREATE_GUILD_EXPRESSIONS;
|
||||
const MANAGE_EVENTS = Permissions.MANAGE_EVENTS;
|
||||
items2[9] = MANAGE_EVENTS;
|
||||
const CREATE_EVENTS = Permissions.CREATE_EVENTS;
|
||||
items2[10] = CREATE_EVENTS;
|
||||
const MODERATE_MEMBERS = Permissions.MODERATE_MEMBERS;
|
||||
items2[11] = MODERATE_MEMBERS;
|
||||
const MENTION_EVERYONE = Permissions.MENTION_EVERYONE;
|
||||
items2[12] = MENTION_EVERYONE;
|
||||
const MANAGE_OFFICIAL_MESSAGES = Permissions.MANAGE_OFFICIAL_MESSAGES;
|
||||
items2[13] = MANAGE_OFFICIAL_MESSAGES;
|
||||
let value = importAll(483) /* metro dependency 483: BigFlagUtils */;
|
||||
const combine = value.combine;
|
||||
const items3 = [];
|
||||
value = apply(combine, items3, value, arraySpread(items3, items2, 0, 0));
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/public_guilds/PublicGuildsConstants.tsx');
|
||||
exports.PUBLIC_SUCCESS_MODAL_SEEN_KEY = 'publicSuccessModalSeen';
|
||||
exports.PUBLIC_GUILD_ANNOUNCEMENTS_GUILD_ID = '667560445975986187';
|
||||
exports.PUBLIC_GUILD_UPDATES_WEBHOOK_USER_ID = '669627189624307712';
|
||||
exports.CREATE_NEW_CHANNEL_VALUE = '1';
|
||||
exports.MODERATOR_PERMISSIONS = items2;
|
||||
exports.MODERATOR_PERMISSIONS_FLAG = value;
|
||||
exports.COMMUNITY_UPSELL_MINIMUM_GUILD_SIZE = 1000;
|
||||
exports.ENABLE_COMMUNITY_FLOW_MODAL_KEY = 'Enable Community Modal';
|
||||
exports.EnableCommunityModalSteps = {INTRO: 'intro', SAFETY_CHECK: 'safety_check', BASICS: 'basics',
|
||||
FINISH: 'finish', RULES: 'rules'};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/* Metro module 8294; source: modules/public_guilds/PublicGuildsUtils.tsx; dependencies: [8295, 661, 8296, 8297, 683, 4863, 2] */
|
||||
function _fun66173(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8479:6, offset: 0x01bf0795, size: 194 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const publicGuildsConstantsModule = require(8295) /* metro dependency 8295: PublicGuildsConstants */;
|
||||
const env0_3 = publicGuildsConstantsModule.PUBLIC_GUILD_ANNOUNCEMENTS_GUILD_ID;
|
||||
const env0_4 = publicGuildsConstantsModule.PUBLIC_GUILD_UPDATES_WEBHOOK_USER_ID;
|
||||
const env0_5 = publicGuildsConstantsModule.ENABLE_COMMUNITY_FLOW_MODAL_KEY;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/public_guilds/PublicGuildsUtils.tsx');
|
||||
exports.isPublicSystemMessage = isPublicSystemMessage;
|
||||
exports.getPublicSystemMessageAvatar = function() {
|
||||
return importDefault(dependencyMap[3]);
|
||||
};
|
||||
exports.trackEnableCommunityFlow = trackEnableCommunityFlow;
|
||||
}
|
||||
|
||||
function isPublicSystemMessage(a0) { // fn#66174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8479:349, offset: 0x01bf0857, size: 97 bytes, params: 2, frame: 13
|
||||
let r0 = (importDefault(8296) /* metro dependency 8296: isCrosspost */)(a0) && a0.messageReference.guild_id === PUBLIC_GUILD_ANNOUNCEMENTS_GUILD_ID;
|
||||
r0 = !r0 ? a0.author != null && a0.author.id === PUBLIC_GUILD_UPDATES_WEBHOOK_USER_ID : r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function trackEnableCommunityFlow({fromStep, toStep, guildId}) { // fn#66176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8479:582, offset: 0x01bf08d3, size: 123 bytes, params: 2, frame: 18
|
||||
const defaultImport = importDefault(dependencyMap[4]);
|
||||
const track = defaultImport.track;
|
||||
const USER_FLOW_TRANSITION = AnalyticEvents.USER_FLOW_TRANSITION;
|
||||
const object2 = {};
|
||||
object2.flow_type = ENABLE_COMMUNITY_FLOW_MODAL_KEY;
|
||||
object2.from_step = fromStep;
|
||||
object2.to_step = toStep;
|
||||
const moduleValue = require(dependencyMap[5]);
|
||||
copyDataProperties(object2, moduleValue.collectGuildAnalyticsMetadata(guildId), dependencyMap);
|
||||
Reflect.apply(track, defaultImport, [USER_FLOW_TRANSITION, object2]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Metro module 15998; source: modules/public_guilds/native/EnableCommunityModalActionCreators.tsx; dependencies: [5080, 15999, 1962, 2] */
|
||||
function _fun123736(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16206:6, offset: 0x02599679, size: 122 bytes, params: 8, frame: 18
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {open: open_123737, close: close_123738};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/public_guilds/native/EnableCommunityModalActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function open_123737() { // fn#123737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16206:131, offset: 0x025996f3, size: 79 bytes, params: 1, frame: 16
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const pushLazy = defaultImport.pushLazy;
|
||||
let value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport, [value, undefined, 'ENABLED_COMMUNITY_MODAL_KEY']);
|
||||
}
|
||||
|
||||
function close_123738() { // fn#123738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16206:188, offset: 0x02599742, size: 43 bytes, params: 1, frame: 12
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('ENABLED_COMMUNITY_MODAL_KEY');
|
||||
}
|
||||
|
||||
+183
@@ -0,0 +1,183 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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');
|
||||
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;
|
||||
});
|
||||
value = value.map(_fun123795);
|
||||
r2 = value;
|
||||
}
|
||||
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();
|
||||
}
|
||||
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
/* Metro module 16012; source: modules/public_guilds/native/components/EnableCommunityModal/CommunityRequirementSatisfiedForm.tsx; dependencies: [31, 27, 33, 3856, 16002, 5278, 2] */
|
||||
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');
|
||||
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 = (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();
|
||||
}
|
||||
}
|
||||
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
/* 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] */
|
||||
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 env0_5 = Reflect.apply(keys, Object, [EnableCommunityModalSteps]).length;
|
||||
(require(2) /* metro dependency 2 */).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 = (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 */);
|
||||
}
|
||||
|
||||
+91
@@ -0,0 +1,91 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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,
|
||||
'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');
|
||||
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;
|
||||
} 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>;
|
||||
}
|
||||
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();
|
||||
}
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/* Metro module 16002; source: modules/public_guilds/native/components/EnableCommunityModal/EnableCommunitySharedStyles.tsx; dependencies: [27, 4501, 2] */
|
||||
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 */;
|
||||
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');
|
||||
exports.useEnableCommunitySharedStyles = value;
|
||||
}
|
||||
|
||||
+197
@@ -0,0 +1,197 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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;
|
||||
const env0_12 = value.MODERATOR_PERMISSIONS_FLAG;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_13 = value.GuildFeatures;
|
||||
const env0_14 = value.HelpdeskArticles;
|
||||
const env0_15 = value.UserNotificationSettings;
|
||||
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');
|
||||
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});
|
||||
}
|
||||
} 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]);
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
+152
@@ -0,0 +1,152 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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');
|
||||
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});
|
||||
}
|
||||
} 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});
|
||||
}
|
||||
} else if (!a0) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
value.updateGuild({explicitContentFilter: env0_2});
|
||||
}
|
||||
}
|
||||
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
/* 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] */
|
||||
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');
|
||||
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 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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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,
|
||||
nameWrapper: {'flexDirection': 'row', 'alignItems': 'center'}, headerText: {marginLeft: 8},
|
||||
description: {marginTop: 8}}]);
|
||||
(require(2) /* metro dependency 2 */).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}
|
||||
</View>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user