/* 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] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import AvatarUtils from '../../../utils/AvatarUtils.tsx'; /* Metro dependency 1423 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import PermissionStore from '../../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import RelationshipStore from '../../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import GuildMemberCountStore from '../../../stores/GuildMemberCountStore.tsx'; /* Metro dependency 4111 */
import AlertActionCreators from '../../../actions/native/AlertActionCreators.tsx'; /* Metro dependency 4496 */
import Alert from '../../../components_native/common/Alert.tsx'; /* Metro dependency 4596 */
import GuildSettingsActionCreators from '../GuildSettingsActionCreators.tsx'; /* Metro dependency 9112 */
import GuildSettingsStore from '../GuildSettingsStore.tsx'; /* Metro dependency 9113 */
import OpenChannelPicker from '../../channel/native/openChannelPicker.tsx'; /* Metro dependency 11265 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as FlagUtilsModule from '../../../external/discord_common/js/shared/utils/FlagUtils.tsx'; /* Metro dependency 1391 */
import * as GuildRecordModule from '../../../records/GuildRecord.tsx'; /* Metro dependency 1422 */
import * as UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as GuildChannelStoreModule from '../../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
import * as NativeModule from '../../../external/discord_common/js/packages/design/native.tsx'; /* Metro dependency 3868 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as StackNativeModule from '../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as HeaderActionButtonNativeModule from '../../../design/components/Navigator/native/HeaderActionButton.native.tsx'; /* Metro dependency 5277 */
import * as NavigatorHeaderNativeModule from '../../../design/components/Navigator/native/NavigatorHeader.native.tsx'; /* Metro dependency 5282 */
import * as NavScrimAndroidModule from '../../../design/components/Navigator/native/NavScrim.android.tsx'; /* Metro dependency 5462 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as ShowSimpleActionSheetModule from '../../action_sheet/native/showSimpleActionSheet.tsx'; /* Metro dependency 6802 */
import * as TableSwitchRowNativeModule from '../../../design/components/TableRow/native/TableSwitchRow.native.tsx'; /* Metro dependency 6808 */
import * as TextAreaNativeModule from '../../../design/components/TextInput/native/TextArea.native.tsx'; /* Metro dependency 7681 */
import * as NativeModule2 from '../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
import * as TextInputNativeModule from '../../../design/components/TextInput/native/TextInput.native.tsx'; /* Metro dependency 7981 */
import * as TableRadioRowNativeModule from '../../../design/components/TableRow/native/TableRadioRow.native.tsx'; /* Metro dependency 7987 */
import * as TableRadioGroupNativeModule from '../../../design/components/TableRow/native/TableRadioGroup.native.tsx'; /* Metro dependency 7988 */
import * as GuildRoleSubscriptionSystemMessageUtilsModule from '../../guild_role_subscriptions/GuildRoleSubscriptionSystemMessageUtils.tsx'; /* Metro dependency 8235 */
import * as ChannelSummariesExperimentModule from '../../../experiments/ChannelSummariesExperiment.tsx'; /* Metro dependency 9867 */
import * as PastVcActivityMessagesExperimentModule from '../../voice_calls/PastVcActivityMessagesExperiment.tsx'; /* Metro dependency 15685 */
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});
let value = ReactModule;
const createLegacyClassComponentStyles = CreateStylesModule.createLegacyClassComponentStyles;
const TABLE_ROW_PADDING = (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 = (NativeModule).ThemeContext;
value.contextType = ThemeContext;
(FileImportTrackerModule).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 GuildSettingsModalOverview2 = GuildSettingsModalOverview;
Inherits(GuildSettingsModalOverview2, a0);
return CreateClass(GuildSettingsModalOverview2, [{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 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_122123;
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 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__;
(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__;
(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 = OpenChannelPicker;
const object = {};
const binding = env0_0;
object.guildId = binding.props.guild.id;
object.channelType = GUILD_VOCAL_CHANNELS_KEY;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.noChannelOptionLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wGiHkK);
object.onSelect = onSelect_122126;
object.filterFn = function(a0) {
return a0.channel.type === ChannelTypes.GUILD_VOICE;
};
const afkChannel = binding.props.afkChannel;
value = null;
object.selectedChannel = value != afkChannel ? afkChannel : value;
defaultImport(object);
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 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 = OpenChannelPicker;
const object = {};
const binding = env0_0;
object.guildId = binding.props.guild.id;
object.channelType = GUILD_SELECTABLE_CHANNELS_KEY;
object.filterFn = function(a0) {
return a0.channel.type === ChannelTypes.GUILD_TEXT;
};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.noChannelOptionLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ibUhoa);
object.onSelect = onSelect_122130;
const systemChannel = binding.props.systemChannel;
value = null;
object.selectedChannel = value != systemChannel ? systemChannel : value;
defaultImport(object);
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 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 showSimpleActionSheet = ShowSimpleActionSheetModule.showSimpleActionSheet;
const object = {'key': 'AFKTimeout', 'options': null, 'hasIcons': false};
object.options = env2_28.map(function(a0) {
var env0_0 = a0;
return {label: a0.label(), onPress: _fun122140};
});
Reflect.apply(showSimpleActionSheet, ShowSimpleActionSheetModule, [object]);
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 object = {};
object.label = a0.label();
object.onPress = onPress_122140;
return object;
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__;
(GuildSettingsActionCreators).updateGuild({afkTimeout: env0_0.value});
}
}
}
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 = AlertActionCreators;
const show = defaultImport.show;
const object = {};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
object.title = Reflect.apply(string, intl, [t.l3hWP6]);
const format = intl.format;
const property = t['Zuo+Vd'];
const binding = env0_0;
object.body = Reflect.apply(format, intl, [property, {name: binding.props.guild.name}]);
object.cancelText = intl.string(t.gm1Vej);
object.confirmText = intl.string(t.p89ACt);
object.onConfirm = binding.handleConfirmDeleteServer;
const Colors = (Alert).Colors;
const RED = Colors.RED;
object.confirmColor = RED;
Reflect.apply(show, defaultImport, [object]);
}
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__;
(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 = 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__;
(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__;
(GuildSettingsActionCreators).updateGuild({premiumProgressBarEnabled: a0});
}
}
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 object;
var intl;
const {navigation, submitting, hasChanges} = this.props;
let value = a0 != null;
if (!(value && submitting === a0.submitting && hasChanges === a0.hasChanges)) {
setOptions = navigation.setOptions;
object = {};
value = environment.__proto__;
value = undefined;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/dp6yY']);
object.headerLeft = submitting ? function() {
return null;
} : value;
object.headerRight = submitting ? _fun122152 : hasChanges ? _fun122153 : value;
Reflect.apply(setOptions, navigation, [object]);
}
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 = (NavigatorHeaderNativeModule).HeaderSubmittingIndicator;
return