Initial commit

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

No files matched your search

@@ -0,0 +1,932 @@
/* Metro module 15872; source: modules/guild_settings/native/GuildSettingsModalOverview.tsx; dependencies: [6, 7, 15, 17, 18, 31, 1422, 1379, 1935, 4111, 3784, 3793, 1878, 9113, 661, 33, 4501, 697, 1244, 9112, 11265, 6802, 4496, 4596, 3856, 5282, 5277, 1391, 7981, 4805, 6231, 6238, 8235, 15685, 6808, 7988, 7987, 14555, 1948, 15873, 1423, 9867, 1305, 7681, 6719, 7972, 4572, 5462, 3868, 1484, 566, 2] */
function _fun122112(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:6, offset: 0x0255a49b, size: 776 bytes, params: 8, frame: 24
const env0_0 = require;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_8 = (require(1422) /* metro dependency 1422: GuildRecord */).isGuildOwnerWithRequiredMfaLevel;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildChannelStoreModule = require(1935) /* metro dependency 1935: GuildChannelStore */;
const env0_10 = guildChannelStoreModule.GUILD_SELECTABLE_CHANNELS_KEY;
const env0_11 = guildChannelStoreModule.GUILD_VOCAL_CHANNELS_KEY;
const guildMemberCountStore = importDefault(4111) /* metro dependency 4111: GuildMemberCountStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_17 = constantsModule.UserNotificationSettings;
const env0_18 = constantsModule.ChannelTypes;
const env0_19 = constantsModule.Permissions;
const env0_20 = constantsModule.GuildFeatures;
const env0_21 = constantsModule.HelpdeskArticles;
const env0_22 = constantsModule.SystemChannelFlags;
const env0_23 = constantsModule.MAX_MEMBERS_NOTIFY_ALL_MESSAGES;
const value4 = require(33) /* metro dependency 33 */;
const env0_24 = value4.jsx;
const env0_25 = value4.jsxs;
const env0_26 = value4.Fragment;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createLegacyClassComponentStyles = createStylesModule.createLegacyClassComponentStyles;
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
const env0_27 = Reflect.apply(createLegacyClassComponentStyles, createStylesModule, [{overview: {flex: 1},
overviewContent: {paddingTop: 16}, stackPadding: {paddingHorizontal: TABLE_ROW_PADDING}}]);
Object = global.Object;
const env0_28 = Object.freeze([{value: 60, label: function() {
return require(dependencyMap[18]).intl.formatToPlainString(require(dependencyMap[18]).t.iXLF9W, {minutes: 1});
}}, {value: 300, label: function() {
return require(dependencyMap[18]).intl.formatToPlainString(require(dependencyMap[18]).t.iXLF9W, {minutes: 5});
}}, {value: 900, label: function() {
return require(dependencyMap[18]).intl.formatToPlainString(require(dependencyMap[18]).t.iXLF9W, {minutes: 15});
}}, {value: 1800, label: function() {
return require(dependencyMap[18]).intl.formatToPlainString(require(dependencyMap[18]).t.iXLF9W, {minutes: 30});
}}, {value: 3600, label: function() {
return require(dependencyMap[18]).intl.formatToPlainString(require(dependencyMap[18]).t.xCjYxK, {hours: 1});
}}]);
const PureComponent = value.PureComponent;
value = _fun122121(PureComponent);
const ThemeContext = (require(3868) /* metro dependency 3868: native */).ThemeContext;
value.contextType = ThemeContext;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalOverview.tsx');
exports.default = ConnectedGuildSettingsModalOverview;
}
function _isNativeReflectConstruct_122113() { // fn#122113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:550, offset: 0x0255a7a3, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_122113_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun122121(a0) { // fn#122121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:1376, offset: 0x0255a972, size: 517 bytes, params: 2, frame: 16
const closure = GuildSettingsModalOverview;
env0_7(closure, a0);
return env0_4(closure, [{key: 'componentDidMount', value: function() {
this.updateNavigator();
}}, {key: 'componentDidUpdate', value: value_122149}, {key: 'updateNavigator', value: value_122150},
{key: 'componentWillUnmount', value: value_122154}, {key: 'getError', value: function(a0) {
var property = this.props.errors;
return property == null || property[a0] == null ? undefined : property[a0][0];
}}, {key: 'handleSystemChannelFlagsChange', value: value_122156}, {key: 'handleDefaultNotificationsChange',
value: value_122157}, {key: 'renderGuildName', value: value_122158}, {key: 'renderAFKSettings',
value: value_122159}, {key: 'renderSystemMessageSettings', value: value_122161},
{key: 'renderDefaultNotificationSettings', value: value_122162}, {key: 'renderBoostProgressBar',
value: value_122164}, {key: 'renderSplash', value: value_122165}, {key: 'renderSummaries', value: value_122167},
{key: 'renderDescription', value: value_122168}, {key: 'renderBanner', value: value_122169},
{key: 'renderDeleteGuild', value: value_122171}, {key: 'render', value: value_122172}]);
}
function ConnectedGuildSettingsModalOverview({contentContainerStyle}) { // fn#122173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:14110, offset: 0x0255cdf3, size: 358 bytes, params: 2, frame: 28
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const {submitting, hasChanges, errors,
guild} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildSettingsStore],
function() {
var object = {};
object.guild = GuildSettingsStore.getGuild();
object.submitting = GuildSettingsStore.isSubmitting();
object.hasChanges = GuildSettingsStore.hasChanges();
object.errors = GuildSettingsStore.getErrors();
return object;
}, []);
const fluxModule = require(566) /* metro dependency 566: flux */;
let useStateFromStores = fluxModule.useStateFromStores;
const value4 = Reflect.apply(useStateFromStores, fluxModule, [[PermissionStore], function() {
var MANAGE_GUILD = Permissions.MANAGE_GUILD;
return PermissionStore.can(MANAGE_GUILD, guild);
}, [guild]]);
const moduleValue4 = fluxModule;
useStateFromStores = moduleValue4.useStateFromStores;
return guild != null ? ((Component) => <Component navigation={value2} guild={guild} submitting={submitting} hasChanges={hasChanges} canManage={value4} afkChannel={Reflect.apply(useStateFromStores,
moduleValue4, [[ChannelStore], function() {
return ChannelStore.getChannel(guild?.afkChannelId);
}])} systemChannel={fluxModule.useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(guild?.systemChannelId);
})} guildMemberCount={fluxModule.useStateFromStores([GuildMemberCountStore], function() {
return GuildMemberCountStore.getMemberCount(guild?.id);
})} errors={errors} contentContainerStyle={contentContainerStyle} />)(env0_29) : null;
}
function GuildSettingsModalOverview(a0) { // fn#122122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:1388, offset: 0x0255ab77, size: 379 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, GuildSettingsModalOverview);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(GuildSettingsModalOverview);
binding = env1_5;
if (_isNativeReflectConstruct_122113()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.handleNameChange = handleNameChange;
value.handleDescriptionChange = handleDescriptionChange;
value.handleAfkChannelChange = handleAfkChannelChange;
value.handleSystemChannelChange = handleSystemChannelChange;
value.handleSystemJoinMessages = handleSystemJoinMessages;
value.handleSystemJoinMessageReplies = handleSystemJoinMessageReplies;
value.handleSystemPremiumSubscribe = handleSystemPremiumSubscribe;
value.handleSystemReminderNotifications = handleSystemReminderNotifications;
value.handleSystemGuildRoleSubscriptionPurchaseMessages = handleSystemGuildRoleSubscriptionPurchaseMessages;
value.handleSystemGuildRoleSubscriptionPurchaseMessageReplies = handleSystemGuildRoleSubscriptionPurchaseMessageReplies;
value.handleSystemVoiceSessionMessages = handleSystemVoiceSessionMessages;
value.handleAFKTimeoutChange = handleAFKTimeoutChange;
value.handleDeleteServer = handleDeleteServer;
value.handleConfirmDeleteServer = handleConfirmDeleteServer;
value.handleSplashChange = handleSplashChange;
value.handleSummariesToggle = handleSummariesToggle;
value.handleBannerChange = handleBannerChange;
value.handleOverviewSaveChanges = handleOverviewSaveChanges;
value.handleBoostProgressBarToggle = handleBoostProgressBarToggle;
return value;
}
function value_122149(a0) { // fn#122149, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:4951, offset: 0x0255b4ad, size: 110 bytes, params: 2, frame: 12
const errors = this.props.errors;
this.updateNavigator(a0);
let value = a0.errors.message !== errors.message;
if (value && errors.message != null) {
value = environment.__proto__;
value = require(3856) /* metro dependency 3856: ToastUtils */;
value.presentError(errors.message);
}
}
function value_122150(a0) { // fn#122150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:5122, offset: 0x0255b51b, size: 200 bytes, params: 2, frame: 20
var environment;
var setOptions;
var object2;
var intl;
const {navigation, submitting, hasChanges} = this.props;
let value = a0 != null;
if (!(value && submitting === a0.submitting && hasChanges === a0.hasChanges)) {
setOptions = navigation.setOptions;
object2 = {};
value = environment.__proto__;
value = undefined;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/dp6yY']);
object2.headerLeft = submitting ? function() {
return null;
} : value;
object2.headerRight = submitting ? _fun122152 : hasChanges ? _fun122153 : value;
Reflect.apply(setOptions, navigation, [object2]);
}
}
function value_122154() { // fn#122154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:5563, offset: 0x0255b681, size: 56 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.cancelChanges(this.props.guild.id);
}
function value_122156(a0, a1) { // fn#122156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:5769, offset: 0x0255b6ea, size: 99 bytes, params: 3, frame: 18
const guild = this.props.guild;
let value = environment.__proto__;
const flagUtilsModule = require(1391) /* metro dependency 1391: FlagUtils */;
const value2 = flagUtilsModule.setFlag(guild.systemChannelFlags, a0, a1);
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.updateGuild({systemChannelFlags: value2});
}
function value_122157(a0) { // fn#122157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:5944, offset: 0x0255b74d, size: 48 bytes, params: 2, frame: 13
const value = environment.__proto__;
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({defaultMessageNotifications: a0});
}
function value_122158() { // fn#122158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:6041, offset: 0x0255b77d, size: 163 bytes, params: 1, frame: 21
const {guild, canManage} = this.props;
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<TextInput
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.dBih7e)}
value={guild.name}
isDisabled={!canManage}
onChange={this.handleNameChange}
errorMessage={this.getError('name')}
/>
);
}
function value_122159() { // fn#122159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:6296, offset: 0x0255b820, size: 692 bytes, params: 1, frame: 31
var environment;
var r17;
var value2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var value4;
var moduleValue;
const {guild, canManage, afkChannel} = this.props;
const value = null;
if (value != afkChannel) {
value4 = environment.__proto__;
moduleValue = require(4805) /* metro dependency 4805: useChannelName */;
r17 = moduleValue.computeChannelName(afkChannel, UserStore, RelationshipStore);
} else {
value2 = environment.__proto__;
r17 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wGiHkK);
}
const r1 = value != guild.afkChannelId ? env1_28.find(function({value}) {
return value === guild.afkTimeout;
}) : value;
const r13 = value != r1 ? r1.label() : env1_28[1].label();
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const tableRowGroupProps = {title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qyGmGt),
description: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ffEOKP), hasIcons: false};
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const string = intl.string;
const KuYcnU = (require(1244) /* metro dependency 1244: indexNative */).t.KuYcnU;
const value11 = !canManage;
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
let TrailingText = TableRow2.TrailingText;
const tableRow = <TableRow label={Reflect.apply(string, intl,
[KuYcnU])} disabled={value11} trailing={<TrailingText text={r17} />} arrow onPress={this.handleAfkChannelChange} />;
const tableRowProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.brhYaR),
disabled: canManage ? value == guild.afkChannelId : value11};
const TableRow3 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
TrailingText = TableRow3.TrailingText;
tableRowProps.trailing = <TrailingText text={r13} />;
tableRowProps.arrow = true;
tableRowProps.onPress = this.handleAFKTimeoutChange;
return (
<TableRowGroup {...tableRowGroupProps}>
{tableRow}
<TableRow {...tableRowProps} />
</TableRowGroup>
);
}
function value_122161() { // fn#122161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:7122, offset: 0x0255baef, size: 1700 bytes, params: 1, frame: 35
var r14;
var r8;
var r7;
var r5;
var value;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var moduleValue;
var moduleValue3;
var moduleValue4;
var moduleValue6;
var object8;
var moduleValue11;
var object9;
var moduleValue12;
var object10;
var moduleValue13;
const {guild, canManage, systemChannel} = this.props;
if (systemChannel != null) {
value = environment.__proto__;
moduleValue = require(4805) /* metro dependency 4805: useChannelName */;
value = moduleValue.computeChannelName(systemChannel, UserStore, RelationshipStore);
r14 = value;
} else {
value = environment.__proto__;
value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ibUhoa);
r14 = value;
}
value = environment.__proto__;
const isEligibleForRoleSubscriptionPurchaseSystemMessageSettings2 = (require(8235) /* metro dependency 8235: GuildRoleSubscriptionSystemMessageUtils */).isEligibleForRoleSubscriptionPurchaseSystemMessageSettings(guild);
if (isEligibleForRoleSubscriptionPurchaseSystemMessageSettings2) {
r8 = isEligibleForRoleSubscriptionPurchaseSystemMessageSettings2;
} else {
moduleValue3 = require(1391) /* metro dependency 1391: FlagUtils */;
r8 = moduleValue3.hasFlag(guild.systemChannelFlags,
SystemChannelFlags.SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS);
}
if (isEligibleForRoleSubscriptionPurchaseSystemMessageSettings2) {
r7 = isEligibleForRoleSubscriptionPurchaseSystemMessageSettings2;
} else {
moduleValue4 = require(1391) /* metro dependency 1391: FlagUtils */;
r7 = moduleValue4.hasFlag(guild.systemChannelFlags,
SystemChannelFlags.SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES);
}
const pastVcActivityMessagesExperimentModule = require(15685) /* metro dependency 15685: PastVcActivityMessagesExperiment */;
const isPastVcActivityMessagesEnabled2 = pastVcActivityMessagesExperimentModule.isPastVcActivityMessagesEnabled(guild.id,
'GuildSettingsModalOverview');
if (isPastVcActivityMessagesEnabled2) {
r5 = isPastVcActivityMessagesEnabled2;
} else {
moduleValue6 = require(1391) /* metro dependency 1391: FlagUtils */;
r5 = moduleValue6.hasFlag(guild.systemChannelFlags, SystemChannelFlags.SUPPRESS_VOICE_SESSION_NOTIFICATIONS);
}
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const object2 = {};
let string = intl.string;
const DP39VH = (require(1244) /* metro dependency 1244: indexNative */).t.DP39VH;
object2.title = Reflect.apply(string, intl, [DP39VH]);
string = intl.string;
const BT9zR3 = (require(1244) /* metro dependency 1244: indexNative */).t.BT9zR3;
object2.description = Reflect.apply(string, intl, [BT9zR3]);
object2.hasIcons = false;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
string = intl.string;
const GK18KJ = (require(1244) /* metro dependency 1244: indexNative */).t.GK18KJ;
const value2 = !canManage;
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const TrailingText = TableRow2.TrailingText;
const items2 = [<TableRow label={Reflect.apply(string, intl,
[GK18KJ])} disabled={value2} trailing={<TrailingText text={r14} />} arrow onPress={this.handleSystemChannelChange} />];
const TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
const tableSwitchRowProps2 = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+f0bXQ']),
disabled: value2};
const flagUtilsModule = require(1391) /* metro dependency 1391: FlagUtils */;
let hasFlag = flagUtilsModule.hasFlag;
let systemChannelFlags = guild.systemChannelFlags;
const SUPPRESS_JOIN_NOTIFICATIONS = SystemChannelFlags.SUPPRESS_JOIN_NOTIFICATIONS;
tableSwitchRowProps2.value = !Reflect.apply(hasFlag, flagUtilsModule, [systemChannelFlags,
SUPPRESS_JOIN_NOTIFICATIONS]);
tableSwitchRowProps2.onValueChange = this.handleSystemJoinMessages;
items2[1] = <TableSwitchRow {...tableSwitchRowProps2} />;
const tableSwitchRowProps3 = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['72k7jf']),
disabled: value2};
const moduleValue8 = flagUtilsModule;
hasFlag = moduleValue8.hasFlag;
systemChannelFlags = guild.systemChannelFlags;
const SUPPRESS_JOIN_NOTIFICATION_REPLIES = SystemChannelFlags.SUPPRESS_JOIN_NOTIFICATION_REPLIES;
tableSwitchRowProps3.value = !Reflect.apply(hasFlag, moduleValue8, [systemChannelFlags,
SUPPRESS_JOIN_NOTIFICATION_REPLIES]);
tableSwitchRowProps3.onValueChange = this.handleSystemJoinMessageReplies;
items2[2] = <TableSwitchRow {...tableSwitchRowProps3} />;
const tableSwitchRowProps4 = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2L8NCN']),
disabled: value2};
const moduleValue9 = flagUtilsModule;
hasFlag = moduleValue9.hasFlag;
systemChannelFlags = guild.systemChannelFlags;
const SUPPRESS_PREMIUM_SUBSCRIPTIONS = SystemChannelFlags.SUPPRESS_PREMIUM_SUBSCRIPTIONS;
tableSwitchRowProps4.value = !Reflect.apply(hasFlag, moduleValue9, [systemChannelFlags,
SUPPRESS_PREMIUM_SUBSCRIPTIONS]);
tableSwitchRowProps4.onValueChange = this.handleSystemPremiumSubscribe;
items2[3] = <TableSwitchRow {...tableSwitchRowProps4} />;
const tableSwitchRowProps5 = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NvnW+V']),
disabled: value2};
const moduleValue10 = flagUtilsModule;
hasFlag = moduleValue10.hasFlag;
systemChannelFlags = guild.systemChannelFlags;
const SUPPRESS_GUILD_REMINDER_NOTIFICATIONS = SystemChannelFlags.SUPPRESS_GUILD_REMINDER_NOTIFICATIONS;
tableSwitchRowProps5.value = !Reflect.apply(hasFlag, moduleValue10, [systemChannelFlags,
SUPPRESS_GUILD_REMINDER_NOTIFICATIONS]);
tableSwitchRowProps5.onValueChange = this.handleSystemReminderNotifications;
items2[4] = <TableSwitchRow {...tableSwitchRowProps5} />;
if (r8) {
var tableSwitchRowProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['54n19R']),
disabled: value2};
moduleValue11 = flagUtilsModule;
tableSwitchRowProps.value = !moduleValue11.hasFlag(guild.systemChannelFlags,
SystemChannelFlags.SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS);
tableSwitchRowProps.onValueChange = this.handleSystemGuildRoleSubscriptionPurchaseMessages;
r8 = <TableSwitchRow {...tableSwitchRowProps} />;
}
items2[5] = r8;
if (r7) {
var tableSwitchRowProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['IhF5d+']),
disabled: value2};
moduleValue12 = flagUtilsModule;
tableSwitchRowProps.value = !moduleValue12.hasFlag(guild.systemChannelFlags,
SystemChannelFlags.SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES);
tableSwitchRowProps.onValueChange = this.handleSystemGuildRoleSubscriptionPurchaseMessageReplies;
r7 = <TableSwitchRow {...tableSwitchRowProps} />;
}
items2[6] = r7;
if (r5) {
var tableSwitchRowProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.IMtHBW),
disabled: value2};
moduleValue13 = flagUtilsModule;
tableSwitchRowProps.value = !moduleValue13.hasFlag(guild.systemChannelFlags,
SystemChannelFlags.SUPPRESS_VOICE_SESSION_NOTIFICATIONS);
tableSwitchRowProps.onValueChange = this.handleSystemVoiceSessionMessages;
r5 = <TableSwitchRow {...tableSwitchRowProps} />;
}
items2[7] = r5;
return (
<TableRowGroup {...object2}>
{items2}
</TableRowGroup>
);
}
function value_122162() { // fn#122162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:9731, offset: 0x0255c193, size: 513 bytes, params: 1, frame: 25
const {guild, canManage, guildMemberCount} = this.props;
const value2 = undefined;
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
const object3 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object3.title = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['23TVhl']]);
string = intl.string;
const PA2MZv = (require(1244) /* metro dependency 1244: indexNative */).t.PA2MZv;
object3.description = Reflect.apply(string, intl, [PA2MZv]);
object3.value = guild.defaultMessageNotifications;
object3.onChange = onChange_122163;
object3.hasIcons = false;
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
const object4 = {};
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
object4.value = ALL_MESSAGES;
object4.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['n/bTaY']);
object4.subLabel = guildMemberCount != null && guildMemberCount >= MAX_MEMBERS_NOTIFY_ALL_MESSAGES ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['L+P4t2']) : value2;
const value4 = !canManage;
object4.disabled = value4;
const tableRadioRow = <TableRadioRow {...object4} />;
const ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
const format = intl.format;
const L2hmYy = (require(1244) /* metro dependency 1244: indexNative */).t.L2hmYy;
return (
<TableRadioGroup {...object3}>
{tableRadioRow}
<TableRadioRow
value={ONLY_MENTIONS}
label={Reflect.apply(format, intl, [L2hmYy, {}])}
disabled={value4}
/>
</TableRadioGroup>
);
}
function value_122164() { // fn#122164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:10386, offset: 0x0255c3ad, size: 327 bytes, params: 1, frame: 24
var r0;
var TableRowGroup;
var object;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const {guild, canManage} = this.props;
const value = environment.__proto__;
if ((require(14555) /* metro dependency 14555: MobileBoostProgressBarExperiment */).getMobileBoostProgressBarEnabled('GuildSettingsModalOverview')) {
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
r0 = <TableRowGroup title={intl.string(t['0morVD'])} description={intl.string(t.O87mwg)} hasIcons={false}>{((TableSwitchRow) => <TableSwitchRow label={intl.string(t.Dl4mJS)} disabled={!canManage} value={guild.premiumProgressBarEnabled} onValueChange={this.handleBoostProgressBarToggle} />)((require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow)}</TableRowGroup>;
} else {
r0 = null;
}
return r0;
}
function value_122165() { // fn#122165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:10869, offset: 0x0255c4f4, size: 391 bytes, params: 1, frame: 26
var environment;
var r0;
var TableRowGroup;
var object;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var format;
var ZYA9PV;
var defaultImport;
const {guild, canManage} = this.props;
const features = guild.features;
const has = features.has;
let value = environment.__proto__;
const INVITE_SPLASH = GuildFeatures.INVITE_SPLASH;
if (Reflect.apply(has, features, [INVITE_SPLASH])) {
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
var tableRowGroupProps = {title: intl.string(t.tzGY0q), description: intl.string(t.FEFkkG)};
format = intl.format;
ZYA9PV = t.ZYA9PV;
defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
tableRowGroupProps.helperText = Reflect.apply(format, intl, [ZYA9PV,
{articleURL: defaultImport.getArticleURL(HelpdeskArticles.GUILD_INVITE_SPLASH)}]);
tableRowGroupProps.hasIcons = false;
value = importDefault(15873) /* metro dependency 15873: AssetChooser */;
value = <TableRowGroup {...tableRowGroupProps}>{((Component) => <Component disabled={!canManage} guild={guild} rawSource={guild.splash} getSource={getSource_122166} onChooseAsset={this.handleSplashChange} size={{'width': 1920,
'height': 1080}} />)(value)}</TableRowGroup>;
r0 = value;
} else {
r0 = null;
}
return r0;
}
function value_122167() { // fn#122167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:11455, offset: 0x0255c6c1, size: 415 bytes, params: 1, frame: 25
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var format;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var property;
var object;
var defaultImport;
var value2;
var TableRowGroup;
var TableSwitchRow;
var object2;
var features;
const {guild, canManage} = this.props;
const channelSummariesExperimentModule = require(9867) /* metro dependency 9867: ChannelSummariesExperiment */;
if (channelSummariesExperimentModule.canGuildUseConversationSummaries(guild, false)) {
format = intl.format;
property = t['c6Cy/h'];
defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
value2 = Reflect.apply(format, intl, [property,
{helpdeskArticle: defaultImport.getArticleURL(HelpdeskArticles.CONVERSATION_SUMMARIES)}]);
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
var tableRowGroupProps = {title: intl.string(t.XPDhcc), description: value2, hasIcons: false};
TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
var tableSwitchRowProps = {label: intl.string(t.vmEDQs),
trailing: ((BetaTag) => <BetaTag />)((require(1305) /* metro dependency 1305: native */).BetaTag)};
features = guild.features;
tableSwitchRowProps.value = features.has(GuildFeatures.SUMMARIES_ENABLED_BY_USER);
tableSwitchRowProps.disabled = !canManage;
tableSwitchRowProps.onValueChange = this.handleSummariesToggle;
return (
<TableRowGroup {...tableRowGroupProps}>
<TableSwitchRow {...tableSwitchRowProps} />
</TableRowGroup>
);
}
return null;
}
function value_122168() { // fn#122168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:12046, offset: 0x0255c860, size: 356 bytes, params: 1, frame: 24
var r0;
const TextArea = (require(7681) /* metro dependency 7681: TextAreaNative */).TextArea;
var object;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const {guild, canManage} = this.props;
let features = guild.features;
const has = features.has;
const value = environment.__proto__;
const VERIFIED = GuildFeatures.VERIFIED;
if (Reflect.apply(has, features, [VERIFIED])) {
r0 = <TextArea label={intl.string(t['RSfm+i'])} description={intl.string(t['/B6PRw'])} maxLength={(require(6719) /* metro dependency 6719: GuildProfileLimits */).MAX_DESCRIPTION_LENGTH} value={guild.description ?? ''} isDisabled={!canManage} onChange={this.handleDescriptionChange} placeholder={intl.string(t.Nvfowl)} />;
} else {
features = guild.features;
if (features.has(GuildFeatures.DISCOVERABLE)) {
r0 = <TextArea label={intl.string(t['RSfm+i'])} description={intl.string(t['/B6PRw'])} maxLength={(require(6719) /* metro dependency 6719: GuildProfileLimits */).MAX_DESCRIPTION_LENGTH} value={guild.description ?? ''} isDisabled={!canManage} onChange={this.handleDescriptionChange} placeholder={intl.string(t.Nvfowl)} />;
} else {
r0 = null;
}
}
return r0;
}
function value_122169() { // fn#122169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:12507, offset: 0x0255c9c4, size: 392 bytes, params: 1, frame: 25
var environment;
var TableRowGroup;
var object;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var format;
var vBcWUv;
var defaultImport;
const {guild, canManage} = this.props;
const features = guild.features;
const has = features.has;
const value = environment.__proto__;
const BANNER = GuildFeatures.BANNER;
if (Reflect.apply(has, features, [BANNER])) {
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
var tableRowGroupProps = {title: intl.string(t['0r0AzF']), description: intl.string(t.UfqmIb)};
format = intl.format;
vBcWUv = t.vBcWUv;
defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
tableRowGroupProps.helperText = Reflect.apply(format, intl, [vBcWUv,
{articleURL: defaultImport.getArticleURL(HelpdeskArticles.GUILD_BANNER_SPLASH)}]);
tableRowGroupProps.hasIcons = false;
return (
<TableRowGroup {...tableRowGroupProps}>
{((Component) => <Component disabled={!canManage} guild={guild} rawSource={guild.banner} getSource={getSource_122170} onChooseAsset={this.handleBannerChange} size={{'width': 960,
'height': 540}} />)(importDefault(15873) /* metro dependency 15873: AssetChooser */)}
</TableRowGroup>
);
}
return null;
}
function value_122171() { // fn#122171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:13124, offset: 0x0255cb90, size: 209 bytes, params: 1, frame: 22
var r0;
var TableRowGroup;
var TableRow;
var intl;
const guild = this.props.guild;
const value = environment.__proto__;
const currentUser = UserStore.getCurrentUser();
const value3 = null;
if (value3 != currentUser) {
if (isGuildOwnerWithRequiredMfaLevel(guild, currentUser)) {
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r0 = <TableRowGroup hasIcons={false}><TableRow variant="danger" label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.l3hWP6)} onPress={this.handleDeleteServer} /></TableRowGroup>;
} else {
r0 = value3;
}
} else {
r0 = value3;
}
return r0;
}
function value_122172() { // fn#122172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:13396, offset: 0x0255cc61, size: 402 bytes, params: 1, frame: 23
let value = environment.__proto__;
const value2 = env1_27(this.context);
const jsxRuntimeEnv1_26Binding = jsxRuntimeEnv1_26;
const Form = (require(7972) /* metro dependency 7972: native */).Form;
const overview = value2.overview;
const items3 = [value2.overviewContent];
items3[1] = this.props.contentContainerStyle;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const stackPadding = value2.stackPadding;
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
const items2 = [this.renderGuildName()];
items2[1] = this.renderSummaries();
items2[2] = this.renderAFKSettings();
items2[3] = this.renderSystemMessageSettings();
items2[4] = this.renderDefaultNotificationSettings();
items2[5] = this.renderBoostProgressBar();
items2[6] = this.renderDescription();
items2[7] = this.renderBanner();
items2[8] = this.renderSplash();
items2[9] = this.renderDeleteGuild();
value = <Form style={overview} contentContainerStyle={items3}><Stack style={stackPadding} spacing={PX_24}>{items2}</Stack></Form>;
const NavScrim = (require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim;
return (
<>
{value}
<NavScrim />
</>
);
}
function GuildSettingsModalOverviewHandleNameChange(a0) { // fn#122123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:1671, owner: GuildSettingsModalOverview.handleNameChange, offset: 0x0255acf2, size: 47 bytes, params: 2, frame: 13
const value = environment.__proto__.__proto__;
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({name: a0});
}
function handleDescriptionChange(a0) { // fn#122124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:1733, owner: GuildSettingsModalOverview.handleDescriptionChange, offset: 0x0255ad21, size: 47 bytes, params: 2, frame: 13
const value = environment.__proto__.__proto__;
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({description: a0});
}
function handleAfkChannelChange() { // fn#122125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:1801, owner: GuildSettingsModalOverview.handleAfkChannelChange, offset: 0x0255ad50, size: 179 bytes, params: 1, frame: 18
var environment;
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(11265) /* metro dependency 11265: openChannelPicker */;
const object2 = {};
const binding = env0_0;
object2.guildId = binding.props.guild.id;
object2.channelType = GUILD_VOCAL_CHANNELS_KEY;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.noChannelOptionLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wGiHkK);
object2.onSelect = onSelect_122126;
object2.filterFn = function(a0) {
return a0.channel.type === ChannelTypes.GUILD_VOICE;
};
const afkChannel = binding.props.afkChannel;
value = null;
object2.selectedChannel = value != afkChannel ? afkChannel : value;
defaultImport(object2);
}
function handleSystemChannelChange() { // fn#122128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:2118, owner: GuildSettingsModalOverview.handleSystemChannelChange, offset: 0x0255ae63, size: 179 bytes, params: 1, frame: 18
var environment;
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(11265) /* metro dependency 11265: openChannelPicker */;
const object2 = {};
const binding = env0_0;
object2.guildId = binding.props.guild.id;
object2.channelType = GUILD_SELECTABLE_CHANNELS_KEY;
object2.filterFn = function(a0) {
return a0.channel.type === ChannelTypes.GUILD_TEXT;
};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.noChannelOptionLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ibUhoa);
object2.onSelect = onSelect_122130;
const systemChannel = binding.props.systemChannel;
value = null;
object2.selectedChannel = value != systemChannel ? systemChannel : value;
defaultImport(object2);
}
function handleSystemJoinMessages(a0) { // fn#122131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:2443, owner: GuildSettingsModalOverview.handleSystemJoinMessages, offset: 0x0255af76, size: 42 bytes, params: 2, frame: 13
const binding = env0_0;
const handleSystemChannelFlagsChange = binding.handleSystemChannelFlagsChange;
const SUPPRESS_JOIN_NOTIFICATIONS = SystemChannelFlags.SUPPRESS_JOIN_NOTIFICATIONS;
Reflect.apply(handleSystemChannelFlagsChange, binding, [SUPPRESS_JOIN_NOTIFICATIONS, !a0]);
}
function handleSystemJoinMessageReplies(a0) { // fn#122132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:2548, owner: GuildSettingsModalOverview.handleSystemJoinMessageReplies, offset: 0x0255afa0, size: 42 bytes, params: 2, frame: 13
const binding = env0_0;
const handleSystemChannelFlagsChange = binding.handleSystemChannelFlagsChange;
const SUPPRESS_JOIN_NOTIFICATION_REPLIES = SystemChannelFlags.SUPPRESS_JOIN_NOTIFICATION_REPLIES;
Reflect.apply(handleSystemChannelFlagsChange, binding, [SUPPRESS_JOIN_NOTIFICATION_REPLIES, !a0]);
}
function handleSystemPremiumSubscribe(a0) { // fn#122133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:2658, owner: GuildSettingsModalOverview.handleSystemPremiumSubscribe, offset: 0x0255afca, size: 42 bytes, params: 2, frame: 13
const binding = env0_0;
const handleSystemChannelFlagsChange = binding.handleSystemChannelFlagsChange;
const SUPPRESS_PREMIUM_SUBSCRIPTIONS = SystemChannelFlags.SUPPRESS_PREMIUM_SUBSCRIPTIONS;
Reflect.apply(handleSystemChannelFlagsChange, binding, [SUPPRESS_PREMIUM_SUBSCRIPTIONS, !a0]);
}
function handleSystemReminderNotifications(a0) { // fn#122134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:2769, owner: GuildSettingsModalOverview.handleSystemReminderNotifications, offset: 0x0255aff4, size: 42 bytes, params: 2, frame: 13
const binding = env0_0;
const handleSystemChannelFlagsChange = binding.handleSystemChannelFlagsChange;
const SUPPRESS_GUILD_REMINDER_NOTIFICATIONS = SystemChannelFlags.SUPPRESS_GUILD_REMINDER_NOTIFICATIONS;
Reflect.apply(handleSystemChannelFlagsChange, binding, [SUPPRESS_GUILD_REMINDER_NOTIFICATIONS, !a0]);
}
function handleSystemGuildRoleSubscriptionPurchaseMessages(a0) { // fn#122135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:2903, owner: GuildSettingsModalOverview.handleSystemGuildRoleSubscriptionPurchaseMessages, offset: 0x0255b01e, size: 42 bytes, params: 2, frame: 13
const binding = env0_0;
const handleSystemChannelFlagsChange = binding.handleSystemChannelFlagsChange;
const SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS = SystemChannelFlags.SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS;
Reflect.apply(handleSystemChannelFlagsChange, binding, [SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS, !a0]);
}
function handleSystemGuildRoleSubscriptionPurchaseMessageReplies(a0) { // fn#122136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3055, owner: GuildSettingsModalOverview.handleSystemGuildRoleSubscriptionPurchaseMessageReplies, offset: 0x0255b048, size: 42 bytes, params: 2, frame: 13
const binding = env0_0;
const handleSystemChannelFlagsChange = binding.handleSystemChannelFlagsChange;
const SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES = SystemChannelFlags.SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES;
Reflect.apply(handleSystemChannelFlagsChange, binding, [SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES,
!a0]);
}
function handleSystemVoiceSessionMessages(a0) { // fn#122137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3191, owner: GuildSettingsModalOverview.handleSystemVoiceSessionMessages, offset: 0x0255b072, size: 42 bytes, params: 2, frame: 13
const binding = env0_0;
const handleSystemChannelFlagsChange = binding.handleSystemChannelFlagsChange;
const SUPPRESS_VOICE_SESSION_NOTIFICATIONS = SystemChannelFlags.SUPPRESS_VOICE_SESSION_NOTIFICATIONS;
Reflect.apply(handleSystemChannelFlagsChange, binding, [SUPPRESS_VOICE_SESSION_NOTIFICATIONS, !a0]);
}
function handleAFKTimeoutChange() { // fn#122138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3297, owner: GuildSettingsModalOverview.handleAFKTimeoutChange, offset: 0x0255b09c, size: 81 bytes, params: 1, frame: 15
const showSimpleActionSheetModule = require(6802) /* metro dependency 6802: showSimpleActionSheet */;
const showSimpleActionSheet = showSimpleActionSheetModule.showSimpleActionSheet;
const object2 = {'key': 'AFKTimeout', 'options': null, 'hasIcons': false};
object2.options = env2_28.map(function(a0) {
var env0_0 = a0;
return {label: a0.label(), onPress: _fun122140};
});
Reflect.apply(showSimpleActionSheet, showSimpleActionSheetModule, [object2]);
}
function handleDeleteServer() { // fn#122141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3481, owner: GuildSettingsModalOverview.handleDeleteServer, offset: 0x0255b14b, size: 312 bytes, params: 1, frame: 23
const defaultImport = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
const show = defaultImport.show;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object2.title = Reflect.apply(string, intl, [t.l3hWP6]);
const format = intl.format;
const property = t['Zuo+Vd'];
const binding = env0_0;
object2.body = Reflect.apply(format, intl, [property, {name: binding.props.guild.name}]);
object2.cancelText = intl.string(t.gm1Vej);
object2.confirmText = intl.string(t.p89ACt);
object2.onConfirm = binding.handleConfirmDeleteServer;
const Colors = (importDefault(4596) /* metro dependency 4596: Alert */).Colors;
const RED = Colors.RED;
object2.confirmColor = RED;
Reflect.apply(show, defaultImport, [object2]);
}
function handleConfirmDeleteServer() { // fn#122142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3826, owner: GuildSettingsModalOverview.handleConfirmDeleteServer, offset: 0x0255b283, size: 60 bytes, params: 1, frame: 12
let value = environment.__proto__.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.deleteGuild(env0_0.props.guild.id);
}
function handleSplashChange(a0) { // fn#122143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3892, owner: GuildSettingsModalOverview.handleSplashChange, offset: 0x0255b2bf, size: 48 bytes, params: 2, frame: 13
const value = environment.__proto__.__proto__;
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({splash: a0});
}
function handleSummariesToggle(a0) { // fn#122144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3954, owner: GuildSettingsModalOverview.handleSummariesToggle, offset: 0x0255b2ef, size: 150 bytes, params: 2, frame: 13
var value2;
var add;
var value3;
const guild = env0_0.props.guild;
const Set = global.Set;
const set = new Set(guild.features);
if (a0) {
add = set.add;
value3 = environment.__proto__.__proto__;
Reflect.apply(add, set, [GuildFeatures.SUMMARIES_ENABLED_BY_USER]);
} else {
value2 = environment.__proto__.__proto__;
set.delete(GuildFeatures.SUMMARIES_ENABLED_BY_USER);
}
const defaultImport = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
defaultImport.updateGuild({features: set});
}
function handleBannerChange(a0) { // fn#122145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:4132, owner: GuildSettingsModalOverview.handleBannerChange, offset: 0x0255b385, size: 48 bytes, params: 2, frame: 13
const value = environment.__proto__.__proto__;
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({banner: a0});
}
function handleOverviewSaveChanges() { // fn#122146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:4198, owner: GuildSettingsModalOverview.handleOverviewSaveChanges, offset: 0x0255b3b5, size: 200 bytes, params: 1, frame: 27
const {id, name, icon, afkChannelId, afkTimeout, systemChannelId, safetyAlertsChannelId, systemChannelFlags,
defaultMessageNotifications, splash, banner, description, features,
premiumProgressBarEnabled} = env0_0.props.guild;
let value = environment.__proto__.__proto__;
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
value.saveGuild(id, {name: name, icon: icon, afkChannelId: afkChannelId, afkTimeout: afkTimeout,
systemChannelId: systemChannelId, systemChannelFlags: systemChannelFlags,
safetyAlertsChannelId: safetyAlertsChannelId, defaultMessageNotifications: defaultMessageNotifications,
splash: splash, banner: banner, description: description, features: features,
premiumProgressBarEnabled: premiumProgressBarEnabled});
}
function handleBoostProgressBarToggle(a0) { // fn#122147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:4724, owner: GuildSettingsModalOverview.handleBoostProgressBarToggle, offset: 0x0255b47d, size: 48 bytes, params: 2, frame: 13
const value = environment.__proto__.__proto__;
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({premiumProgressBarEnabled: a0});
}
function _fun122152() { // fn#122152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:5347, offset: 0x0255b5e3, size: 45 bytes, params: 1, frame: 13
const HeaderSubmittingIndicator = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).HeaderSubmittingIndicator;
return <HeaderSubmittingIndicator />;
}
function _fun122153() { // fn#122153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:5394, offset: 0x0255b610, size: 113 bytes, params: 1, frame: 18
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
const handleOverviewSaveChanges = env0_0.handleOverviewSaveChanges;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<HeaderActionButton
onPress={handleOverviewSaveChanges}
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+'])}
/>
);
}
function value_122162OnChange(a0) { // fn#122163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:9985, owner: value_122162.onChange, offset: 0x0255c394, size: 25 bytes, params: 2, frame: 11
return env0_0.handleDefaultNotificationsChange(a0);
}
function value_122165GetSource({id, splash}, a1) { // fn#122166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:11276, owner: value_122165.getSource, offset: 0x0255c67b, size: 70 bytes, params: 3, frame: 13
const value = environment.__proto__.__proto__;
return (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildSplashSource({id: id, splash: splash,
size: a1});
}
function value_122169GetSource(a0) { // fn#122170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:12926, owner: value_122169.getSource, offset: 0x0255cb4c, size: 68 bytes, params: 2, frame: 14
const features = a0.features;
const has = features.has;
const value = environment.__proto__.__proto__;
const ANIMATED_BANNER = GuildFeatures.ANIMATED_BANNER;
return (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildBannerSource(a0, Reflect.apply(has,
features, [ANIMATED_BANNER]));
}
function handleAfkChannelChangeOnSelect(a0) { // fn#122126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:1922, owner: GuildSettingsModalOverview.handleAfkChannelChange.onSelect, offset: 0x0255ae03, size: 64 bytes, params: 2, frame: 15
let value = environment.__proto__.__proto__.__proto__;
value = undefined;
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({afkChannelId: a0 == null ? value : a0.id});
return value;
}
function handleSystemChannelChangeOnSelect(a0) { // fn#122130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:2285, owner: GuildSettingsModalOverview.handleSystemChannelChange.onSelect, offset: 0x0255af36, size: 64 bytes, params: 2, frame: 15
let value = environment.__proto__.__proto__.__proto__;
value = undefined;
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({systemChannelId: a0 == null ? value : a0.id});
return value;
}
function _fun122139(a0) { // fn#122139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3366, offset: 0x0255b0ed, size: 37 bytes, params: 2, frame: 11
const env0_0 = a0;
const object2 = {};
object2.label = a0.label();
object2.onPress = onPress_122140;
return object2;
}
function onPress_122140() { // fn#122140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16080:3387, offset: 0x0255b112, size: 57 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__.__proto__;
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({afkTimeout: env0_0.value});
}