/* 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 ; } 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 = (HeaderActionButtonNativeModule).HeaderActionButton; const handleOverviewSaveChanges = env0_0.handleOverviewSaveChanges; const intl = (IndexNativeModule).intl; return ( ); } } 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 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__; (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 = (TextInputNativeModule).TextInput; const intl = (IndexNativeModule).intl; return ( ); } 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 = (TableRowGroupNativeModule).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 = (TableRowNativeModule).TableRow; const string = intl.string; const KuYcnU = (require(1244) /* metro dependency 1244: indexNative */).t.KuYcnU; const value11 = !canManage; const TableRow2 = (TableRowNativeModule).TableRow; let TrailingText = TableRow2.TrailingText; const tableRow = ( } 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 = (TableRowNativeModule).TableRow; TrailingText = TableRow3.TrailingText; tableRowProps.trailing = ; tableRowProps.arrow = true; tableRowProps.onPress = this.handleAFKTimeoutChange; return ( {tableRow} ); } 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 object2; var moduleValue11; var object3; var moduleValue12; var object11; 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 = (GuildRoleSubscriptionSystemMessageUtilsModule).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 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 = (TableRowGroupNativeModule).TableRowGroup; const object = {}; let string = intl.string; const DP39VH = (require(1244) /* metro dependency 1244: indexNative */).t.DP39VH; object.title = Reflect.apply(string, intl, [DP39VH]); string = intl.string; const BT9zR3 = (require(1244) /* metro dependency 1244: indexNative */).t.BT9zR3; object.description = Reflect.apply(string, intl, [BT9zR3]); object.hasIcons = false; const TableRow = (TableRowNativeModule).TableRow; string = intl.string; const GK18KJ = (require(1244) /* metro dependency 1244: indexNative */).t.GK18KJ; const value2 = !canManage; const TableRow2 = (TableRowNativeModule).TableRow; const TrailingText = TableRow2.TrailingText; const items2 = [ } arrow onPress={this.handleSystemChannelChange} />, ]; const TableSwitchRow = (TableSwitchRowNativeModule).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] = ; 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] = ; 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] = ; 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] = ; 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 = ; } 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 = ; } 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 = ; } items2[7] = r5; return ( {items2} ); } 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 = (TableRadioGroupNativeModule).TableRadioGroup; const object = {}; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; let string = intl.string; object.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; object.description = Reflect.apply(string, intl, [PA2MZv]); object.value = guild.defaultMessageNotifications; object.onChange = onChange_122163; object.hasIcons = false; const TableRadioRow = (TableRadioRowNativeModule).TableRadioRow; const object2 = {}; const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES; object2.value = ALL_MESSAGES; object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['n/bTaY']); object2.subLabel = guildMemberCount != null && guildMemberCount >= MAX_MEMBERS_NOTIFY_ALL_MESSAGES ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['L+P4t2']) : value2; const value4 = !canManage; object2.disabled = value4; const tableRadioRow = ; const ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS; const format = intl.format; const L2hmYy = (require(1244) /* metro dependency 1244: indexNative */).t.L2hmYy; return ( {tableRadioRow} ); 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_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 object2; const intl = (IndexNativeModule).intl; const t = (IndexNativeModule).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 = ( {((TableSwitchRow) => )((require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow)} ); } 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 object2; const intl = (IndexNativeModule).intl; const t = (IndexNativeModule).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 = ( {((Component) => )(value)} ); r0 = value; } else { r0 = null; } return r0; 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 (AvatarUtils).getGuildSplashSource({id: id, splash: splash, size: a1}); } } 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 = (IndexNativeModule).intl; var format; const t = (IndexNativeModule).t; var property; var object3; var defaultImport; var value2; var TableRowGroup; var TableSwitchRow; var object4; var features; const {guild, canManage} = this.props; 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) => )((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 ( ); } 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 = (TextAreaNativeModule).TextArea; var object2; const intl = (IndexNativeModule).intl; const t = (IndexNativeModule).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 = (