3519 lines
202 KiB
TypeScript
3519 lines
202 KiB
TypeScript
/* Metro module 15172; source: components_native/channel_settings/ChannelSettingsOverview.tsx; dependencies: [5, 6, 7, 15, 17, 18, 31, 27, 3786, 1383, 1422, 8149, 1379, 1935, 1867, 3784, 4605, 15173, 3793, 1878, 15174, 661, 1386, 6900, 1243, 482, 33, 4501, 697, 566, 11245, 22, 4863, 8148, 3857, 8096, 1244, 7877, 4800, 3797, 1391, 4002, 15175, 9090, 4496, 4573, 6766, 9112, 4805, 4596, 4008, 4131, 15176, 5282, 9603, 15177, 7981, 7681, 477, 6231, 6808, 5072, 6239, 12809, 15178, 7878, 7988, 7987, 1388, 1390, 1948, 6238, 6860, 9097, 9216, 11243, 4056, 1389, 15179, 8941, 12133, 13467, 10859, 7153, 4076, 4066, 6705, 12148, 4054, 4071, 4572, 11162, 8341, 10083, 5278, 15180, 7972, 3868, 1484, 15181, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
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 GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
|
|
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
|
|
import GuildChannelStore from '../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
|
|
import PermissionStore from '../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
|
|
import JoinedThreadsStore from '../../modules/threads/JoinedThreadsStore.tsx'; /* Metro dependency 3786 */
|
|
import RelationshipStore from '../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
|
|
import ReadStateStore from '../../stores/ReadStateStore.tsx'; /* Metro dependency 4605 */
|
|
import AppAnalyticsUtils from '../../modules/app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */
|
|
import ChannelSettingsActionCreators from '../../actions/ChannelSettingsActionCreators.tsx'; /* Metro dependency 8148 */
|
|
import ChannelSettingsStore from '../../stores/ChannelSettingsStore.tsx'; /* Metro dependency 8149 */
|
|
import AvailableForumTag from '../../modules/forums/native/AvailableForumTag.tsx'; /* Metro dependency 11162 */
|
|
import RegionStore from '../../stores/RegionStore.tsx'; /* Metro dependency 15173 */
|
|
import SpoilerChannelExperiment from '../../modules/channel_settings/SpoilerChannelExperiment.tsx'; /* Metro dependency 15181 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as ConstantsModule from '../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
|
|
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
import * as ConstantsModule2 from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as ThreadConstantsModule from '../../modules/threads/ThreadConstants.tsx'; /* Metro dependency 1243 */
|
|
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as ChannelRecordModule from '../../records/ChannelRecord.tsx'; /* Metro dependency 1383 */
|
|
import * as ChannelConstantsModule from '../../modules/channel/ChannelConstants.tsx'; /* Metro dependency 1386 */
|
|
import * as ThreadSortOrderModule from '../../external/discord_common/js/shared/shared-constants/ThreadSortOrder.tsx'; /* Metro dependency 1388 */
|
|
import * as ForumLayoutModule from '../../external/discord_common/js/shared/shared-constants/ForumLayout.tsx'; /* Metro dependency 1389 */
|
|
import * as ThreadSearchTagSettingModule from '../../external/discord_common/js/shared/shared-constants/ThreadSearchTagSetting.tsx'; /* Metro dependency 1390 */
|
|
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 NativeModule from '../../external/discord_common/js/packages/design/native.tsx'; /* Metro dependency 3868 */
|
|
import * as SharedModule from '../../design/shared.tsx'; /* Metro dependency 4002 */
|
|
import * as LinkIconModule from '../../design/components/Icon/native/redesign/generated/LinkIcon.tsx'; /* Metro dependency 4056 */
|
|
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 TextModule from '../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as UseChannelNameModule from '../../modules/channel/useChannelName.tsx'; /* Metro dependency 4805 */
|
|
import * as AgeGateUtilsModule from '../../modules/age_gate/AgeGateUtils.tsx'; /* Metro dependency 5072 */
|
|
import * as NavigatorHeaderNativeModule from '../../design/components/Navigator/native/NavigatorHeader.native.tsx'; /* Metro dependency 5282 */
|
|
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 CardNativeModule from '../../design/components/Card/native/Card.native.tsx'; /* Metro dependency 6239 */
|
|
import * as ThreadHooksModule from '../../modules/threads/ThreadHooks.tsx'; /* Metro dependency 6860 */
|
|
import * as ForumConstantsModule from '../../modules/forums/ForumConstants.tsx'; /* Metro dependency 6900 */
|
|
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 HeaderSharedModule from '../../modules/main_tabs_v2/native/shared_components/HeaderShared.tsx'; /* Metro dependency 9603 */
|
|
import * as PinIconModule from '../../design/components/Icon/native/redesign/generated/PinIcon.tsx'; /* Metro dependency 11245 */
|
|
import * as LobbyUtilsModule from '../../modules/lobbies/LobbyUtils.tsx'; /* Metro dependency 12133 */
|
|
import * as SliderNativeModule from '../../design/components/Slider/native/Slider.native.tsx'; /* Metro dependency 12809 */
|
|
import * as ChannelSettingsConstantsModule from './ChannelSettingsConstants.tsx'; /* Metro dependency 15174 */
|
|
import * as ChannelSettingsUtilsModule from './ChannelSettingsUtils.tsx'; /* Metro dependency 15177 */
|
|
|
|
function _fun115831(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:6, offset: 0x0246f0fd, size: 1326 bytes, params: 8, frame: 31
|
|
const env0_0 = require;
|
|
const PinImage2 = PinImage;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactModule;
|
|
const constantsModule = ConstantsModule2;
|
|
const env0_27 = constantsModule.AnalyticEvents;
|
|
const env0_28 = constantsModule.BITRATE_DEFAULT;
|
|
const env0_29 = constantsModule.BITRATE_MIN;
|
|
const env0_30 = constantsModule.ChannelSettingsSections;
|
|
const env0_31 = constantsModule.ChannelTypes;
|
|
const env0_32 = constantsModule.ChannelTypesSets;
|
|
const env0_33 = constantsModule.GuildFeatures;
|
|
const env0_34 = constantsModule.GuildSettingsSections;
|
|
const env0_35 = constantsModule.HelpdeskArticles;
|
|
const env0_36 = constantsModule.MAX_CHANNEL_NAME_LENGTH;
|
|
const env0_37 = constantsModule.MAX_VOICE_USER_LIMIT;
|
|
const env0_38 = constantsModule.MAX_STAGE_VOICE_USER_LIMIT;
|
|
const env0_39 = constantsModule.Permissions;
|
|
const env0_40 = constantsModule.SettingsPaneTypes;
|
|
const env0_41 = constantsModule.SLOWMODE_VALUES;
|
|
const env0_42 = constantsModule.VideoQualityMode;
|
|
const Fonts = (ConstantsModule).Fonts;
|
|
const createStyles = CreateStylesModule.createStyles;
|
|
object = {};
|
|
const object2 = {'position': 'absolute', 'top': 2, 'right': -4, 'width': 12, 'height': 12, 'borderRadius': null,
|
|
'justifyContent': 'center', 'alignItems': 'center'};
|
|
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
|
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
|
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
|
object.outer = object2;
|
|
const object3 = {'backgroundColor': null, 'width': 8, 'height': 8};
|
|
const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
|
|
object3.backgroundColor = RED_400;
|
|
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
|
object.badge = object3;
|
|
const env0_51 = Reflect.apply(createStyles, CreateStylesModule, [object]);
|
|
const createLegacyClassComponentStyles = CreateStylesModule.createLegacyClassComponentStyles;
|
|
object = {};
|
|
const object4 = {flex: 1};
|
|
const MOBILE_ACTIONSHEET_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_BACKGROUND;
|
|
object4.backgroundColor = MOBILE_ACTIONSHEET_BACKGROUND;
|
|
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object4.paddingTop = PX_16;
|
|
object.screenContainer = object4;
|
|
object.slider = {marginHorizontal: 15};
|
|
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
|
|
object.stackPadding = {paddingHorizontal: TABLE_ROW_PADDING};
|
|
object.alertText = {marginTop: 16};
|
|
object.tagsWrapper = {'display': 'flex', 'flexDirection': 'row', 'flexWrap': 'wrap'};
|
|
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
|
object.addTagIconButtonWrapper = {justifyContent: 'center', margin: PX_4};
|
|
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
|
object.createTagButton = {'backgroundColor': 'transparent', 'paddingHorizontal': 0, marginTop: PX_4};
|
|
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
|
object.createTagButtonText = {fontFamily: PRIMARY_SEMIBOLD, fontSize: 14};
|
|
const env0_52 = Reflect.apply(createLegacyClassComponentStyles, CreateStylesModule, [object]);
|
|
const PureComponent = value.PureComponent;
|
|
value = _fun115837(PureComponent);
|
|
const ThemeContext = (NativeModule).ThemeContext;
|
|
value.contextType = ThemeContext;
|
|
(FileImportTrackerModule).fileFinishedImporting('components_native/channel_settings/ChannelSettingsOverview.tsx');
|
|
exports.default = ConnectedChannelSettingsOverview;
|
|
exports.PinImage = PinImage2;
|
|
function _isNativeReflectConstruct_115832() { // fn#115832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:1066, offset: 0x0246f62b, 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_115832_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function PinImage({channelId, style}) { // fn#115835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:1590, offset: 0x0246f68d, size: 219 bytes, params: 2, frame: 20
|
|
const styles = useStyles();
|
|
const useStateFromStores = FluxModule.useStateFromStores;
|
|
const r5 = (
|
|
Reflect.apply(useStateFromStores, FluxModule, [[ReadStateStore], function() {
|
|
return ReadStateStore.hasUnreadPins(channelId);
|
|
}])
|
|
? (
|
|
<View style={styles.outer}>
|
|
<View style={styles.badge} />
|
|
</View>
|
|
)
|
|
: undefined
|
|
);
|
|
const PinIcon = (PinIconModule).PinIcon;
|
|
return (
|
|
<View style={style}>
|
|
<PinIcon />
|
|
{r5}
|
|
</View>
|
|
);
|
|
}
|
|
|
|
function _fun115837(a0) { // fn#115837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:2428, offset: 0x0246f785, size: 862 bytes, params: 2, frame: 16
|
|
const ChannelSettingsOverview2 = ChannelSettingsOverview;
|
|
Inherits(ChannelSettingsOverview2, a0);
|
|
return CreateClass(ChannelSettingsOverview2, [{key: 'componentDidMount', value: value_115869},
|
|
{key: 'componentDidUpdate', value: function(a0, a1) {
|
|
this.updateNavigation(a0, a1);
|
|
}}, {key: 'updateNavigation', value: value_115871}, {key: 'renderChannelInfo', value: value_115873},
|
|
{key: 'renderNsfwConfig', value: value_115874}, {key: 'renderThreadSpoiler', value: value_115875},
|
|
{key: 'renderSlowmode', value: value_115876}, {key: 'renderAutoArchiveDuration', value: value_115877},
|
|
{key: 'renderInvitable', value: value_115878}, {key: 'renderDefaultAutoArchiveDuration', value: value_115879},
|
|
{key: 'renderDefaultSortOrder', value: value_115880}, {key: 'renderDefaultTagSetting', value: value_115881},
|
|
{key: 'renderAnnouncement', value: value_115882}, {key: 'renderBitrateSettings', value: value_115883},
|
|
{key: 'renderVideoQualityModeSettings', value: value_115884}, {key: 'renderUserLimitSettings',
|
|
value: value_115885}, {key: 'renderRegionOverride', value: value_115886}, {key: 'showVoiceSettings',
|
|
value: value_115889}, {key: 'renderPermissions', value: value_115890}, {key: 'renderSettingsSection',
|
|
value: value_115892}, {key: 'renderCommonSettingsSection', value: value_115893},
|
|
{key: 'renderDefaultForumLayout', value: value_115897}, {key: 'renderUncommonSettingsSection',
|
|
value: value_115899}, {key: 'renderThreadManagementActions', value: value_115901}, {key: 'renderDeleteButton',
|
|
value: value_115908}, {key: 'renderForumTags', value: value_115910}, {key: 'renderShowMediaDownloadOptions',
|
|
value: value_115915}, {key: 'renderCategory', value: value_115916}, {key: 'renderThreadSettings',
|
|
value: value_115918}, {key: 'renderChannelSettings', value: value_115919}, {key: 'render',
|
|
value: value_115920}]);
|
|
function ChannelSettingsOverview(a0) { // fn#115838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:2440, offset: 0x0246fae3, size: 538 bytes, params: 2, frame: 21
|
|
let binding = env1_4;
|
|
binding(this, ChannelSettingsOverview);
|
|
const items2 = [a0];
|
|
const value3 = env1_7(ChannelSettingsOverview);
|
|
const value6 = env1_6(this, _isNativeReflectConstruct_115832() ? global.Reflect.construct(value3, items2,
|
|
env1_7(this).constructor) : value3.apply(this, items2));
|
|
value6._cooldown = (importDefault(22) /* metro dependency 22 */).findIndex(SLOWMODE_VALUES, _fun115839);
|
|
value6.state = {hasChanges: false};
|
|
value6.pushScreen = pushScreen;
|
|
value6.handleSave = handleSave;
|
|
value6.handleChangeName = handleChangeName;
|
|
value6.handleBlurName = handleBlurName;
|
|
value6.handleChangeTopic = handleChangeTopic;
|
|
value6.handleBitRateChange = handleBitRateChange;
|
|
value6.handleVideoQualityModeChange = handleVideoQualityModeChange;
|
|
value6.handleNsfwChange = handleNsfwChange;
|
|
value6.handleThreadSpoilerChange = handleThreadSpoilerChange;
|
|
value6.handleSlowmodeChange = handleSlowmodeChange;
|
|
value6.handleDefaultAutoArchiveDurationChange = handleDefaultAutoArchiveDurationChange;
|
|
value6.handleAutoArchiveDurationChange = handleAutoArchiveDurationChange;
|
|
value6.handleDefaultSortOrderChange = handleDefaultSortOrderChange;
|
|
value6.handleDefaultTagSettingChange = handleDefaultTagSettingChange;
|
|
value6.handleInvitableChange = handleInvitableChange;
|
|
value6.handleAnnouncementChange = handleAnnouncementChange;
|
|
value6.handleActiveChannelsRemovedChange = handleActiveChannelsRemovedChange;
|
|
value6.handleUserLimitChange = handleUserLimitChange;
|
|
binding = env1_3;
|
|
value6.handleDeleteChannel = binding(_fun115860);
|
|
value6.handleConfirmDeleteChannel = binding(_fun115864);
|
|
value6.handlePressTag = handlePressTag;
|
|
value6.handleToggleRequireTag = handleToggleRequireTag;
|
|
value6.handleToggleShowMediaDownloadOptions = handleToggleShowMediaDownloadOptions;
|
|
value6.getError = getError_115868;
|
|
value6.state.hasChanges = ChannelSettingsStore.hasChanges();
|
|
return value6;
|
|
function _fun115839(a0) { // fn#115839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:2723, offset: 0x0246fcfd, size: 32 bytes, params: 2, frame: 2
|
|
return a0 >= env0_0.props.channel.rateLimitPerUser;
|
|
}
|
|
|
|
function pushScreen(a0) { // fn#115840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:2801, owner: ChannelSettingsOverview.pushScreen, offset: 0x0246fd1d, size: 164 bytes, params: 2, frame: 18
|
|
var defaultImport;
|
|
const value = copyRestArgs(0, undefined);
|
|
const navigation = env0_0.props.navigation;
|
|
const push = navigation.push;
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, undefined);
|
|
apply(push, items2, navigation, undefined);
|
|
const property = value[0];
|
|
const PERMISSIONS = ChannelSettingsSections.PERMISSIONS;
|
|
if (property !== PERMISSIONS) {
|
|
defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
|
defaultImport.trackWithMetadata(AnalyticEvents.SETTINGS_PANE_VIEWED, {settings_type: 'channel',
|
|
origin_pane: SettingsPaneTypes.CHANNEL_SETTINGS, destination_pane: value[0]});
|
|
}
|
|
}
|
|
|
|
function handleSave() { // fn#115841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:3006, owner: ChannelSettingsOverview.handleSave, offset: 0x0246fdc1, size: 389 bytes, params: 1, frame: 21
|
|
var environment;
|
|
var channel;
|
|
var value2;
|
|
var value3;
|
|
var defaultImport;
|
|
var saveChannel;
|
|
var id;
|
|
var object;
|
|
var threadMetadata;
|
|
if (channel2.state.hasChanges) {
|
|
channel = channel2.props.channel;
|
|
var channel2 = channel;
|
|
value2 = environment.__proto__.__proto__;
|
|
value3 = undefined;
|
|
defaultImport = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */;
|
|
saveChannel = defaultImport.saveChannel;
|
|
id = channel.id;
|
|
object = {};
|
|
object.name = channel.name;
|
|
object.type = channel.type;
|
|
object.topic = channel.topic;
|
|
object.position = channel.position;
|
|
object.bitrate = channel.bitrate;
|
|
object.userLimit = channel.userLimit;
|
|
object.defaultAutoArchiveDuration = channel.defaultAutoArchiveDuration;
|
|
object.nsfw = channel.nsfw;
|
|
object.rateLimitPerUser = channel.rateLimitPerUser;
|
|
object.videoQualityMode = channel.videoQualityMode;
|
|
threadMetadata = channel.threadMetadata;
|
|
object.autoArchiveDuration = threadMetadata == null ? value3 : threadMetadata.autoArchiveDuration;
|
|
threadMetadata = channel.threadMetadata;
|
|
object.locked = threadMetadata == null ? value3 : threadMetadata.locked;
|
|
threadMetadata = channel.threadMetadata;
|
|
object.invitable = threadMetadata == null ? value3 : threadMetadata.invitable;
|
|
object.flags = channel.flags;
|
|
object.defaultSortOrder = channel.getDefaultSortOrder();
|
|
object.defaultForumLayout = channel.defaultForumLayout;
|
|
object.defaultTagSetting = channel.getDefaultTagSetting();
|
|
object.iconEmoji = channel.iconEmoji;
|
|
object.themeColor = channel.themeColor;
|
|
Reflect.apply(saveChannel, defaultImport, [id, object]).then(_fun115842);
|
|
channel2.setState({hasChanges: false});
|
|
}
|
|
function _fun115842({status}) { // fn#115842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:3701, offset: 0x0246ff46, size: 210 bytes, params: 2, frame: 18
|
|
var value;
|
|
var defaultImport;
|
|
var open;
|
|
var object;
|
|
var isThread2;
|
|
var intl;
|
|
var string;
|
|
var t;
|
|
if (status === 200) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
|
|
open = defaultImport.open;
|
|
object = {key: 'THREAD_SETTINGS_UPDATED', icon: importDefault(8096) /* metro dependency 8096 */};
|
|
isThread2 = channel.isThread();
|
|
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
string = intl.string;
|
|
t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
object.content = isThread2 ? Reflect.apply(string, intl, [t.n2Y84J]) : Reflect.apply(string, intl,
|
|
[t['FE/ohq']]);
|
|
Reflect.apply(open, defaultImport, [object]);
|
|
value = environment.__proto__;
|
|
env1_0.props.navigation.goBack();
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function handleChangeName(a0) { // fn#115843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:3968, owner: ChannelSettingsOverview.handleChangeName, offset: 0x02470018, size: 197 bytes, params: 2, frame: 16
|
|
var r5;
|
|
var LIMITED_CHANNEL_NAME;
|
|
let value = a0;
|
|
const channel = env0_0.props.channel;
|
|
if (channel.isThread()) {
|
|
value = (importDefault(7877) /* metro dependency 7877: sanitizeThreadName */)(value, false);
|
|
r5 = value;
|
|
} else {
|
|
LIMITED_CHANNEL_NAME = ChannelTypesSets.LIMITED_CHANNEL_NAME;
|
|
if (LIMITED_CHANNEL_NAME.has(channel.type)) {
|
|
value = (require(4800) /* metro dependency 4800: ChannelUtils */).sanitizeGuildTextChannelName(value);
|
|
r5 = value;
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
}
|
|
value = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */;
|
|
value.updateChannel({name: r5});
|
|
env0_0.setState({hasChanges: true});
|
|
}
|
|
|
|
function handleBlurName() { // fn#115844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:4184, owner: ChannelSettingsOverview.handleBlurName, offset: 0x024700dd, size: 140 bytes, params: 1, frame: 16
|
|
var value2;
|
|
var defaultImport;
|
|
var name;
|
|
var value3;
|
|
const channel = env0_0.props.channel;
|
|
if (channel.isThread()) {
|
|
value2 = environment.__proto__.__proto__;
|
|
defaultImport = importDefault(7877) /* metro dependency 7877: sanitizeThreadName */;
|
|
name = channel.name;
|
|
value3 = defaultImport(name, true);
|
|
name = channel.name;
|
|
if (value3 !== name) {
|
|
(importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */).updateChannel({name: value3});
|
|
env0_0.setState({hasChanges: true});
|
|
}
|
|
}
|
|
}
|
|
|
|
function handleChangeTopic(a0) { // fn#115845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:4351, owner: ChannelSettingsOverview.handleChangeTopic, offset: 0x02470169, size: 98 bytes, params: 2, frame: 15
|
|
let value = environment.__proto__.__proto__;
|
|
value = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */;
|
|
const updateChannel = value.updateChannel;
|
|
const object = {};
|
|
object.topic = (importDefault(3797) /* metro dependency 3797: UnicodeEmojis */).translateInlineEmojiToSurrogates(a0);
|
|
Reflect.apply(updateChannel, value, [object]);
|
|
env0_0.setState({hasChanges: true});
|
|
}
|
|
|
|
function handleBitRateChange(a0) { // fn#115846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:4483, owner: ChannelSettingsOverview.handleBitRateChange, offset: 0x024701cb, size: 93 bytes, params: 2, frame: 15
|
|
let value = environment.__proto__.__proto__;
|
|
value = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */;
|
|
const updateChannel = value.updateChannel;
|
|
const object = {};
|
|
const Math = global.Math;
|
|
object.bitrate = Math.round(a0);
|
|
Reflect.apply(updateChannel, value, [object]);
|
|
env0_0.setState({hasChanges: true});
|
|
}
|
|
|
|
function handleVideoQualityModeChange(a0) { // fn#115847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:4595, owner: ChannelSettingsOverview.handleVideoQualityModeChange, offset: 0x02470228, size: 75 bytes, params: 2, frame: 13
|
|
const value = environment.__proto__.__proto__;
|
|
(ChannelSettingsActionCreators).updateChannel({videoQualityMode: a0});
|
|
env0_0.setState({hasChanges: true});
|
|
}
|
|
|
|
function handleNsfwChange(a0) { // fn#115848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:4692, owner: ChannelSettingsOverview.handleNsfwChange, offset: 0x02470273, size: 75 bytes, params: 2, frame: 13
|
|
const value = environment.__proto__.__proto__;
|
|
(ChannelSettingsActionCreators).updateChannel({nsfw: a0});
|
|
env0_0.setState({hasChanges: true});
|
|
}
|
|
|
|
function handleThreadSpoilerChange(a0) { // fn#115849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:4786, owner: ChannelSettingsOverview.handleThreadSpoilerChange, offset: 0x024702be, size: 128 bytes, params: 2, frame: 19
|
|
const binding = env0_0;
|
|
const channel = binding.props.channel;
|
|
let value = environment.__proto__.__proto__;
|
|
const setFlag = FlagUtilsModule.setFlag;
|
|
const flags = channel.flags;
|
|
const IS_SPOILER_CHANNEL = ChannelFlags.IS_SPOILER_CHANNEL;
|
|
const value2 = Reflect.apply(setFlag, FlagUtilsModule, [flags, IS_SPOILER_CHANNEL, a0]);
|
|
value = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */;
|
|
value.updateChannel({flags: value2});
|
|
binding.setState({hasChanges: true});
|
|
}
|
|
|
|
function handleSlowmodeChange(a0) { // fn#115850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:4949, owner: ChannelSettingsOverview.handleSlowmodeChange, offset: 0x0247033e, size: 240 bytes, params: 2, frame: 24
|
|
const binding = env0_0;
|
|
const channel = binding.props.channel;
|
|
const hasChanges = binding.state.hasChanges;
|
|
let value = environment.__proto__.__proto__;
|
|
const Math = global.Math;
|
|
const property = SLOWMODE_VALUES[Math.round(a0)];
|
|
(ChannelSettingsActionCreators).updateChannel({rateLimitPerUser: property});
|
|
const AccessibilityAnnouncer = (SharedModule).AccessibilityAnnouncer;
|
|
const announce = AccessibilityAnnouncer.announce;
|
|
value = require(15175) /* metro dependency 15175: SecondsSliderUtils */;
|
|
const getSecondsSliderLabel = value.getSecondsSliderLabel;
|
|
const intl = (IndexNativeModule).intl;
|
|
Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(getSecondsSliderLabel, value, [property, false,
|
|
intl.string((IndexNativeModule).t.zvDu4h)])]);
|
|
binding.setState({hasChanges: hasChanges || channel.rateLimitPerUser !== property});
|
|
}
|
|
|
|
function handleDefaultAutoArchiveDurationChange(a0) { // fn#115851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:5272, owner: ChannelSettingsOverview.handleDefaultAutoArchiveDurationChange, offset: 0x0247042e, size: 75 bytes, params: 2, frame: 13
|
|
const value = environment.__proto__.__proto__;
|
|
(ChannelSettingsActionCreators).updateChannel({defaultAutoArchiveDuration: a0});
|
|
env0_0.setState({hasChanges: true});
|
|
}
|
|
|
|
function handleAutoArchiveDurationChange(a0) { // fn#115852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:5394, owner: ChannelSettingsOverview.handleAutoArchiveDurationChange, offset: 0x02470479, size: 75 bytes, params: 2, frame: 13
|
|
const value = environment.__proto__.__proto__;
|
|
(ChannelSettingsActionCreators).updateChannel({autoArchiveDuration: a0});
|
|
env0_0.setState({hasChanges: true});
|
|
}
|
|
|
|
function handleDefaultSortOrderChange(a0) { // fn#115853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:5506, owner: ChannelSettingsOverview.handleDefaultSortOrderChange, offset: 0x024704c4, size: 75 bytes, params: 2, frame: 13
|
|
const value = environment.__proto__.__proto__;
|
|
(ChannelSettingsActionCreators).updateChannel({defaultSortOrder: a0});
|
|
env0_0.setState({hasChanges: true});
|
|
}
|
|
|
|
function handleDefaultTagSettingChange(a0) { // fn#115854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:5616, owner: ChannelSettingsOverview.handleDefaultTagSettingChange, offset: 0x0247050f, size: 75 bytes, params: 2, frame: 13
|
|
const value = environment.__proto__.__proto__;
|
|
(ChannelSettingsActionCreators).updateChannel({defaultTagSetting: a0});
|
|
env0_0.setState({hasChanges: true});
|
|
}
|
|
|
|
function handleInvitableChange(a0) { // fn#115855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:5719, owner: ChannelSettingsOverview.handleInvitableChange, offset: 0x0247055a, size: 75 bytes, params: 2, frame: 13
|
|
const value = environment.__proto__.__proto__;
|
|
(ChannelSettingsActionCreators).updateChannel({invitable: a0});
|
|
env0_0.setState({hasChanges: true});
|
|
}
|
|
|
|
function handleAnnouncementChange(a0) { // fn#115856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:5817, owner: ChannelSettingsOverview.handleAnnouncementChange, offset: 0x024705a5, size: 95 bytes, params: 2, frame: 15
|
|
(importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */).updateChannel({type: a0 ? ChannelTypes.GUILD_TEXT : ChannelTypes.GUILD_ANNOUNCEMENT});
|
|
env0_0.setState({hasChanges: true});
|
|
}
|
|
|
|
function handleActiveChannelsRemovedChange(a0) { // fn#115857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:5953, owner: ChannelSettingsOverview.handleActiveChannelsRemovedChange, offset: 0x02470604, size: 131 bytes, params: 2, frame: 19
|
|
const binding = env0_0;
|
|
const channel = binding.props.channel;
|
|
let value = environment.__proto__.__proto__;
|
|
const setFlag = FlagUtilsModule.setFlag;
|
|
const flags = channel.flags;
|
|
const ACTIVE_CHANNELS_REMOVED = ChannelFlags.ACTIVE_CHANNELS_REMOVED;
|
|
const value2 = Reflect.apply(setFlag, FlagUtilsModule, [flags, ACTIVE_CHANNELS_REMOVED, !a0]);
|
|
value = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */;
|
|
value.updateChannel({flags: value2});
|
|
binding.setState({hasChanges: true});
|
|
}
|
|
|
|
function handleUserLimitChange(a0) { // fn#115858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:6123, owner: ChannelSettingsOverview.handleUserLimitChange, offset: 0x02470687, size: 93 bytes, params: 2, frame: 15
|
|
let value = environment.__proto__.__proto__;
|
|
value = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */;
|
|
const updateChannel = value.updateChannel;
|
|
const object = {};
|
|
const Math = global.Math;
|
|
object.userLimit = Math.round(a0);
|
|
Reflect.apply(updateChannel, value, [object]);
|
|
env0_0.setState({hasChanges: true});
|
|
}
|
|
|
|
function* _fun115860() { // fn#115860, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:6231, offset: 0x024706ef, size: 1545 bytes, params: 1, frame: 36
|
|
var environment;
|
|
var r17;
|
|
var r8;
|
|
var features;
|
|
var binding2;
|
|
var intl;
|
|
var string;
|
|
var t;
|
|
var binding3;
|
|
var binding4;
|
|
var value12;
|
|
var show;
|
|
var object;
|
|
var binding5;
|
|
var binding6;
|
|
var binding7;
|
|
var Text;
|
|
var alertText;
|
|
var items3;
|
|
var binding8;
|
|
var TextWithIOSLinkWorkaround;
|
|
var object4;
|
|
var format;
|
|
var binding9;
|
|
var value14;
|
|
var binding10;
|
|
var binding11;
|
|
var binding12;
|
|
var object7;
|
|
var items2;
|
|
var binding13;
|
|
var object8;
|
|
var binding14;
|
|
var value16;
|
|
var computeChannelName;
|
|
var channelName;
|
|
var value17;
|
|
var isThread;
|
|
var binding15;
|
|
var binding16;
|
|
var binding17;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
var binding = env3_52;
|
|
var value4 = binding(ChannelSettingsOverview.context);
|
|
var channel = ChannelSettingsOverview.props.channel;
|
|
binding = env3_20;
|
|
var getGuild = binding.getGuild;
|
|
var getGuildId = channel.getGuildId;
|
|
var value5 = Reflect.apply(getGuild, binding, [Reflect.apply(getGuildId, channel, [])]);
|
|
var value6 = env3_0(env3_2[43]);
|
|
yield value6.isDefaultChannelThresholdMetAfterDelete(channel.getGuildId(), channel.id);
|
|
var value8 = undefined;
|
|
if (false) {
|
|
return value8;
|
|
}
|
|
if (value5 == null) {
|
|
if (value5 == null) {
|
|
binding = env3_0;
|
|
binding14 = env3_2;
|
|
value16 = binding(binding14[48]);
|
|
computeChannelName = value16.computeChannelName;
|
|
binding = env3_25;
|
|
channelName = Reflect.apply(computeChannelName, value16, [channel, binding, env3_24, true]);
|
|
binding = env3_1;
|
|
value17 = binding(binding14[44]);
|
|
show = value17.show;
|
|
object = {};
|
|
if (ChannelSettingsOverview.props.isForumPost) {
|
|
binding = env3_0;
|
|
binding16 = env3_2;
|
|
intl = binding(binding16[36]).intl;
|
|
r8 = intl.string(binding(binding16[36]).t.nEOg1N);
|
|
} else {
|
|
isThread = ChannelSettingsOverview.props.isThread;
|
|
binding = env3_0;
|
|
binding15 = env3_2;
|
|
intl = binding(binding15[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding15[36]).t;
|
|
r8 = isThread ? Reflect.apply(string, intl, [t.H7vTe2]) : Reflect.apply(string, intl,
|
|
[t['8D8Rsb']]);
|
|
}
|
|
object.title = r8;
|
|
binding = env3_0;
|
|
binding17 = env3_2;
|
|
intl = binding(binding17[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding17[36]).t;
|
|
object.body = Reflect.apply(format, intl, [t.a6Gz9J, {channelName: channelName}]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object.cancelText = Reflect.apply(string, intl, [t.gm1Vej]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object.confirmText = Reflect.apply(string, intl, [t.p89ACt]);
|
|
object.onConfirm = ChannelSettingsOverview.handleConfirmDeleteChannel;
|
|
binding = env3_1;
|
|
object.confirmColor = binding(binding17[49]).Colors.RED;
|
|
Reflect.apply(show, value17, [object]);
|
|
} else if (value8) {
|
|
binding = env3_0;
|
|
binding14 = env3_2;
|
|
value16 = binding(binding14[48]);
|
|
computeChannelName = value16.computeChannelName;
|
|
binding = env3_25;
|
|
channelName = Reflect.apply(computeChannelName, value16, [channel, binding, env3_24, true]);
|
|
binding = env3_1;
|
|
value17 = binding(binding14[44]);
|
|
show = value17.show;
|
|
object = {};
|
|
if (ChannelSettingsOverview.props.isForumPost) {
|
|
binding = env3_0;
|
|
binding16 = env3_2;
|
|
intl = binding(binding16[36]).intl;
|
|
r8 = intl.string(binding(binding16[36]).t.nEOg1N);
|
|
} else {
|
|
isThread = ChannelSettingsOverview.props.isThread;
|
|
binding = env3_0;
|
|
binding15 = env3_2;
|
|
intl = binding(binding15[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding15[36]).t;
|
|
r8 = isThread ? Reflect.apply(string, intl, [t.H7vTe2]) : Reflect.apply(string, intl,
|
|
[t['8D8Rsb']]);
|
|
}
|
|
object.title = r8;
|
|
binding = env3_0;
|
|
binding17 = env3_2;
|
|
intl = binding(binding17[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding17[36]).t;
|
|
object.body = Reflect.apply(format, intl, [t.a6Gz9J, {channelName: channelName}]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object.cancelText = Reflect.apply(string, intl, [t.gm1Vej]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object.confirmText = Reflect.apply(string, intl, [t.p89ACt]);
|
|
object.onConfirm = ChannelSettingsOverview.handleConfirmDeleteChannel;
|
|
binding = env3_1;
|
|
object.confirmColor = binding(binding17[49]).Colors.RED;
|
|
Reflect.apply(show, value17, [object]);
|
|
} else {
|
|
binding = env3_1;
|
|
binding9 = env3_2;
|
|
value14 = binding(binding9[44]);
|
|
show = value14.show;
|
|
object = {};
|
|
binding = env3_0;
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object.title = Reflect.apply(string, intl, [t['TY/V+H']]);
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object.confirmText = Reflect.apply(string, intl, [t.BddRzS]);
|
|
binding10 = env3_49;
|
|
binding11 = env3_50;
|
|
binding12 = env3_48;
|
|
Text = binding(binding9[45]).Text;
|
|
object7 = {};
|
|
alertText = value4.alertText;
|
|
object7.style = alertText;
|
|
object7.variant = 'text-md/medium';
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object7.children = Reflect.apply(string, intl, [t.iWlB6h]);
|
|
items2 = [binding12(Text, object7)];
|
|
binding13 = env3_48;
|
|
TextWithIOSLinkWorkaround = binding(binding9[46]).TextWithIOSLinkWorkaround;
|
|
object8 = {};
|
|
alertText = value4.alertText;
|
|
object8.style = alertText;
|
|
object8.variant = 'text-md/medium';
|
|
intl = binding(binding9[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding9[36]).t;
|
|
object8.children = Reflect.apply(format, intl, [t.ajiBwB, {onClick: onClick_115861}]);
|
|
items2[1] = binding13(TextWithIOSLinkWorkaround, object8);
|
|
object.children = binding10(binding11, {children: items2});
|
|
Reflect.apply(show, value14, [object]);
|
|
}
|
|
} else {
|
|
features = value5.features;
|
|
if (features.has(env3_33.COMMUNITY)) {
|
|
if (value5.rulesChannelId === channel.id) {
|
|
if (value5.rulesChannelId === channel.id) {
|
|
binding = env3_0;
|
|
binding3 = env3_2;
|
|
intl = binding(binding3[36]).intl;
|
|
r17 = intl.string(binding(binding3[36]).t.yjrZPl);
|
|
} else {
|
|
binding = env3_0;
|
|
binding2 = env3_2;
|
|
intl = binding(binding2[36]).intl;
|
|
r17 = intl.string(binding(binding2[36]).t['1B1/NB']);
|
|
}
|
|
binding = env3_1;
|
|
binding4 = env3_2;
|
|
value12 = binding(binding4[44]);
|
|
show = value12.show;
|
|
object = {};
|
|
binding = env3_0;
|
|
intl = binding(binding4[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding4[36]).t;
|
|
object.title = Reflect.apply(string, intl, [t['TY/V+H']]);
|
|
intl = binding(binding4[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding4[36]).t;
|
|
object.confirmText = Reflect.apply(string, intl, [t.BddRzS]);
|
|
binding5 = env3_49;
|
|
binding6 = env3_50;
|
|
binding7 = env3_48;
|
|
Text = binding(binding4[45]).Text;
|
|
alertText = value4.alertText;
|
|
items3 = [binding7(Text, {style: alertText, variant: 'text-md/medium', children: r17})];
|
|
binding8 = env3_48;
|
|
TextWithIOSLinkWorkaround = binding(binding4[46]).TextWithIOSLinkWorkaround;
|
|
object4 = {};
|
|
alertText = value4.alertText;
|
|
object4.style = alertText;
|
|
object4.variant = 'text-md/medium';
|
|
intl = binding(binding4[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding4[36]).t;
|
|
object4.children = Reflect.apply(format, intl, [t.LAJbDm, {onClick: onClick_115862}]);
|
|
items3[1] = binding8(TextWithIOSLinkWorkaround, object4);
|
|
object.children = binding5(binding6, {children: items3});
|
|
Reflect.apply(show, value12, [object]);
|
|
} else if (value5.publicUpdatesChannelId !== channel.id) {
|
|
if (value5 == null) {
|
|
binding = env3_0;
|
|
binding14 = env3_2;
|
|
value16 = binding(binding14[48]);
|
|
computeChannelName = value16.computeChannelName;
|
|
binding = env3_25;
|
|
channelName = Reflect.apply(computeChannelName, value16, [channel, binding, env3_24, true]);
|
|
binding = env3_1;
|
|
value17 = binding(binding14[44]);
|
|
show = value17.show;
|
|
object = {};
|
|
if (ChannelSettingsOverview.props.isForumPost) {
|
|
binding = env3_0;
|
|
binding16 = env3_2;
|
|
intl = binding(binding16[36]).intl;
|
|
r8 = intl.string(binding(binding16[36]).t.nEOg1N);
|
|
} else {
|
|
isThread = ChannelSettingsOverview.props.isThread;
|
|
binding = env3_0;
|
|
binding15 = env3_2;
|
|
intl = binding(binding15[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding15[36]).t;
|
|
r8 = isThread ? Reflect.apply(string, intl, [t.H7vTe2]) : Reflect.apply(string, intl,
|
|
[t['8D8Rsb']]);
|
|
}
|
|
object.title = r8;
|
|
binding = env3_0;
|
|
binding17 = env3_2;
|
|
intl = binding(binding17[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding17[36]).t;
|
|
object.body = Reflect.apply(format, intl, [t.a6Gz9J, {channelName: channelName}]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object.cancelText = Reflect.apply(string, intl, [t.gm1Vej]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object.confirmText = Reflect.apply(string, intl, [t.p89ACt]);
|
|
object.onConfirm = ChannelSettingsOverview.handleConfirmDeleteChannel;
|
|
binding = env3_1;
|
|
object.confirmColor = binding(binding17[49]).Colors.RED;
|
|
Reflect.apply(show, value17, [object]);
|
|
} else if (value8) {
|
|
binding = env3_0;
|
|
binding14 = env3_2;
|
|
value16 = binding(binding14[48]);
|
|
computeChannelName = value16.computeChannelName;
|
|
binding = env3_25;
|
|
channelName = Reflect.apply(computeChannelName, value16, [channel, binding, env3_24, true]);
|
|
binding = env3_1;
|
|
value17 = binding(binding14[44]);
|
|
show = value17.show;
|
|
object = {};
|
|
if (ChannelSettingsOverview.props.isForumPost) {
|
|
binding = env3_0;
|
|
binding16 = env3_2;
|
|
intl = binding(binding16[36]).intl;
|
|
r8 = intl.string(binding(binding16[36]).t.nEOg1N);
|
|
} else {
|
|
isThread = ChannelSettingsOverview.props.isThread;
|
|
binding = env3_0;
|
|
binding15 = env3_2;
|
|
intl = binding(binding15[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding15[36]).t;
|
|
r8 = isThread ? Reflect.apply(string, intl, [t.H7vTe2]) : Reflect.apply(string, intl,
|
|
[t['8D8Rsb']]);
|
|
}
|
|
object.title = r8;
|
|
binding = env3_0;
|
|
binding17 = env3_2;
|
|
intl = binding(binding17[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding17[36]).t;
|
|
object.body = Reflect.apply(format, intl, [t.a6Gz9J, {channelName: channelName}]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object.cancelText = Reflect.apply(string, intl, [t.gm1Vej]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object.confirmText = Reflect.apply(string, intl, [t.p89ACt]);
|
|
object.onConfirm = ChannelSettingsOverview.handleConfirmDeleteChannel;
|
|
binding = env3_1;
|
|
object.confirmColor = binding(binding17[49]).Colors.RED;
|
|
Reflect.apply(show, value17, [object]);
|
|
} else {
|
|
binding = env3_1;
|
|
binding9 = env3_2;
|
|
value14 = binding(binding9[44]);
|
|
show = value14.show;
|
|
object = {};
|
|
binding = env3_0;
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object.title = Reflect.apply(string, intl, [t['TY/V+H']]);
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object.confirmText = Reflect.apply(string, intl, [t.BddRzS]);
|
|
binding10 = env3_49;
|
|
binding11 = env3_50;
|
|
binding12 = env3_48;
|
|
Text = binding(binding9[45]).Text;
|
|
object7 = {};
|
|
alertText = value4.alertText;
|
|
object7.style = alertText;
|
|
object7.variant = 'text-md/medium';
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object7.children = Reflect.apply(string, intl, [t.iWlB6h]);
|
|
items2 = [binding12(Text, object7)];
|
|
binding13 = env3_48;
|
|
TextWithIOSLinkWorkaround = binding(binding9[46]).TextWithIOSLinkWorkaround;
|
|
object8 = {};
|
|
alertText = value4.alertText;
|
|
object8.style = alertText;
|
|
object8.variant = 'text-md/medium';
|
|
intl = binding(binding9[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding9[36]).t;
|
|
object8.children = Reflect.apply(format, intl, [t.ajiBwB, {onClick: onClick_115861}]);
|
|
items2[1] = binding13(TextWithIOSLinkWorkaround, object8);
|
|
object.children = binding10(binding11, {children: items2});
|
|
Reflect.apply(show, value14, [object]);
|
|
}
|
|
} else {
|
|
if (value5.rulesChannelId === channel.id) {
|
|
binding = env3_0;
|
|
binding3 = env3_2;
|
|
intl = binding(binding3[36]).intl;
|
|
r17 = intl.string(binding(binding3[36]).t.yjrZPl);
|
|
} else {
|
|
binding = env3_0;
|
|
binding2 = env3_2;
|
|
intl = binding(binding2[36]).intl;
|
|
r17 = intl.string(binding(binding2[36]).t['1B1/NB']);
|
|
}
|
|
binding = env3_1;
|
|
binding4 = env3_2;
|
|
value12 = binding(binding4[44]);
|
|
show = value12.show;
|
|
object = {};
|
|
binding = env3_0;
|
|
intl = binding(binding4[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding4[36]).t;
|
|
object.title = Reflect.apply(string, intl, [t['TY/V+H']]);
|
|
intl = binding(binding4[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding4[36]).t;
|
|
object.confirmText = Reflect.apply(string, intl, [t.BddRzS]);
|
|
binding5 = env3_49;
|
|
binding6 = env3_50;
|
|
binding7 = env3_48;
|
|
Text = binding(binding4[45]).Text;
|
|
alertText = value4.alertText;
|
|
items3 = [binding7(Text, {style: alertText, variant: 'text-md/medium', children: r17})];
|
|
binding8 = env3_48;
|
|
TextWithIOSLinkWorkaround = binding(binding4[46]).TextWithIOSLinkWorkaround;
|
|
object4 = {};
|
|
alertText = value4.alertText;
|
|
object4.style = alertText;
|
|
object4.variant = 'text-md/medium';
|
|
intl = binding(binding4[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding4[36]).t;
|
|
object4.children = Reflect.apply(format, intl, [t.LAJbDm, {onClick: onClick_115862}]);
|
|
items3[1] = binding8(TextWithIOSLinkWorkaround, object4);
|
|
object.children = binding5(binding6, {children: items3});
|
|
Reflect.apply(show, value12, [object]);
|
|
}
|
|
} else if (value5 == null) {
|
|
binding = env3_0;
|
|
binding14 = env3_2;
|
|
value16 = binding(binding14[48]);
|
|
computeChannelName = value16.computeChannelName;
|
|
binding = env3_25;
|
|
channelName = Reflect.apply(computeChannelName, value16, [channel, binding, env3_24, true]);
|
|
binding = env3_1;
|
|
value17 = binding(binding14[44]);
|
|
show = value17.show;
|
|
object = {};
|
|
if (ChannelSettingsOverview.props.isForumPost) {
|
|
binding = env3_0;
|
|
binding16 = env3_2;
|
|
intl = binding(binding16[36]).intl;
|
|
r8 = intl.string(binding(binding16[36]).t.nEOg1N);
|
|
} else {
|
|
isThread = ChannelSettingsOverview.props.isThread;
|
|
binding = env3_0;
|
|
binding15 = env3_2;
|
|
intl = binding(binding15[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding15[36]).t;
|
|
r8 = isThread ? Reflect.apply(string, intl, [t.H7vTe2]) : Reflect.apply(string, intl,
|
|
[t['8D8Rsb']]);
|
|
}
|
|
object.title = r8;
|
|
binding = env3_0;
|
|
binding17 = env3_2;
|
|
intl = binding(binding17[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding17[36]).t;
|
|
object.body = Reflect.apply(format, intl, [t.a6Gz9J, {channelName: channelName}]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object.cancelText = Reflect.apply(string, intl, [t.gm1Vej]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object.confirmText = Reflect.apply(string, intl, [t.p89ACt]);
|
|
object.onConfirm = ChannelSettingsOverview.handleConfirmDeleteChannel;
|
|
binding = env3_1;
|
|
object.confirmColor = binding(binding17[49]).Colors.RED;
|
|
Reflect.apply(show, value17, [object]);
|
|
} else if (value8) {
|
|
binding = env3_0;
|
|
binding14 = env3_2;
|
|
value16 = binding(binding14[48]);
|
|
computeChannelName = value16.computeChannelName;
|
|
binding = env3_25;
|
|
channelName = Reflect.apply(computeChannelName, value16, [channel, binding, env3_24, true]);
|
|
binding = env3_1;
|
|
value17 = binding(binding14[44]);
|
|
show = value17.show;
|
|
object = {};
|
|
if (ChannelSettingsOverview.props.isForumPost) {
|
|
binding = env3_0;
|
|
binding16 = env3_2;
|
|
intl = binding(binding16[36]).intl;
|
|
r8 = intl.string(binding(binding16[36]).t.nEOg1N);
|
|
} else {
|
|
isThread = ChannelSettingsOverview.props.isThread;
|
|
binding = env3_0;
|
|
binding15 = env3_2;
|
|
intl = binding(binding15[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding15[36]).t;
|
|
r8 = isThread ? Reflect.apply(string, intl, [t.H7vTe2]) : Reflect.apply(string, intl,
|
|
[t['8D8Rsb']]);
|
|
}
|
|
object.title = r8;
|
|
binding = env3_0;
|
|
binding17 = env3_2;
|
|
intl = binding(binding17[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding17[36]).t;
|
|
object.body = Reflect.apply(format, intl, [t.a6Gz9J, {channelName: channelName}]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object.cancelText = Reflect.apply(string, intl, [t.gm1Vej]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object.confirmText = Reflect.apply(string, intl, [t.p89ACt]);
|
|
object.onConfirm = ChannelSettingsOverview.handleConfirmDeleteChannel;
|
|
binding = env3_1;
|
|
object.confirmColor = binding(binding17[49]).Colors.RED;
|
|
Reflect.apply(show, value17, [object]);
|
|
} else {
|
|
binding = env3_1;
|
|
binding9 = env3_2;
|
|
value14 = binding(binding9[44]);
|
|
show = value14.show;
|
|
object = {};
|
|
binding = env3_0;
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object.title = Reflect.apply(string, intl, [t['TY/V+H']]);
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object.confirmText = Reflect.apply(string, intl, [t.BddRzS]);
|
|
binding10 = env3_49;
|
|
binding11 = env3_50;
|
|
binding12 = env3_48;
|
|
Text = binding(binding9[45]).Text;
|
|
object7 = {};
|
|
alertText = value4.alertText;
|
|
object7.style = alertText;
|
|
object7.variant = 'text-md/medium';
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object7.children = Reflect.apply(string, intl, [t.iWlB6h]);
|
|
items2 = [binding12(Text, object7)];
|
|
binding13 = env3_48;
|
|
TextWithIOSLinkWorkaround = binding(binding9[46]).TextWithIOSLinkWorkaround;
|
|
object8 = {};
|
|
alertText = value4.alertText;
|
|
object8.style = alertText;
|
|
object8.variant = 'text-md/medium';
|
|
intl = binding(binding9[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding9[36]).t;
|
|
object8.children = Reflect.apply(format, intl, [t.ajiBwB, {onClick: onClick_115861}]);
|
|
items2[1] = binding13(TextWithIOSLinkWorkaround, object8);
|
|
object.children = binding10(binding11, {children: items2});
|
|
Reflect.apply(show, value14, [object]);
|
|
}
|
|
}
|
|
}
|
|
function onClick_115861() { // fn#115861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:7363, offset: 0x02470cf8, size: 105 bytes, params: 1, frame: 15
|
|
const binding = env4_1;
|
|
const binding2 = env4_2;
|
|
binding(binding2[44]).close();
|
|
binding(binding2[33]).close();
|
|
const value4 = binding(binding2[47]);
|
|
const open = value4.open;
|
|
const id = env0_0.id;
|
|
const ONBOARDING = env4_34.ONBOARDING;
|
|
Reflect.apply(open, value4, [id, ONBOARDING]);
|
|
}
|
|
|
|
function onClick_115862() { // fn#115862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:7918, offset: 0x02470d61, size: 105 bytes, params: 1, frame: 15
|
|
const binding = env4_1;
|
|
const binding2 = env4_2;
|
|
binding(binding2[44]).close();
|
|
binding(binding2[33]).close();
|
|
const value4 = binding(binding2[47]);
|
|
const open = value4.open;
|
|
const id = env0_0.id;
|
|
const COMMUNITY = env4_34.COMMUNITY;
|
|
Reflect.apply(open, value4, [id, COMMUNITY]);
|
|
}
|
|
|
|
}
|
|
|
|
function* _fun115864() { // fn#115864, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:8035, offset: 0x02470dd5, size: 348 bytes, params: 1, frame: 19
|
|
var r4;
|
|
var r5;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value3;
|
|
var deleteChannel;
|
|
var id;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var binding3;
|
|
var value7;
|
|
var getRootNavigationRef;
|
|
var value8;
|
|
var value9;
|
|
var isReady;
|
|
var isReady2;
|
|
var goBack;
|
|
var error;
|
|
var binding4;
|
|
var APIError;
|
|
var prototype;
|
|
var value10;
|
|
var aPIError;
|
|
var value11;
|
|
var anyErrorMessage;
|
|
var value13;
|
|
var open;
|
|
var binding5;
|
|
var intl;
|
|
var string;
|
|
var t;
|
|
var CKsXk3;
|
|
if (true) {
|
|
value = environment.__proto__;
|
|
var channel = ChannelSettingsOverview.props.channel;
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env3_1;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env3_2;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[33];
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value3 = binding(property);
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
deleteChannel = value3.deleteChannel;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
id = channel.id;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(deleteChannel, value3, [id]);
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
yield value4;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
if (value6) {
|
|
return value5;
|
|
}
|
|
try {
|
|
binding = env3_0;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding3 = env3_2;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding3[50];
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value7 = binding(property);
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
getRootNavigationRef = value7.getRootNavigationRef;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value8 = Reflect.apply(getRootNavigationRef, value7, []);
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value9 = value8 != null;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
if (value9) {
|
|
try {
|
|
isReady = value8.isReady;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
isReady2 = Reflect.apply(isReady, value8, []);
|
|
r4 = isReady2;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
if (r4) {
|
|
try {
|
|
goBack = value8.goBack;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(goBack, value8, []);
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
}
|
|
}
|
|
} else if (value9) {
|
|
try {
|
|
goBack = value8.goBack;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(goBack, value8, []);
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
binding4 = env3_2;
|
|
APIError = binding(binding4[51]).APIError;
|
|
prototype = APIError.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: APIError}});
|
|
aPIError = new APIError();
|
|
value11 = aPIError instanceof Object ? aPIError : value10;
|
|
anyErrorMessage = value11.getAnyErrorMessage();
|
|
binding = env3_1;
|
|
value13 = binding(binding4[34]);
|
|
open = value13.open;
|
|
if (anyErrorMessage != null) {
|
|
r5 = anyErrorMessage;
|
|
} else {
|
|
binding = env3_0;
|
|
binding5 = env3_2;
|
|
intl = binding(binding5[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[36]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
value = Reflect.apply(string, intl, [CKsXk3]);
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(open, value13, [{key: 'CHANNEL_SETTINGS_DELETE_CHANNEL_ERROR', content: r5}]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function handlePressTag(a0) { // fn#115865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:8381, owner: ChannelSettingsOverview.handlePressTag, offset: 0x02470f31, size: 45 bytes, params: 2, frame: 14
|
|
const binding = env0_0;
|
|
const pushScreen = binding.pushScreen;
|
|
const EDIT_FORUM_TAG = ChannelSettingsSections.EDIT_FORUM_TAG;
|
|
Reflect.apply(pushScreen, binding, [EDIT_FORUM_TAG, {tag: a0}]);
|
|
}
|
|
|
|
function handleToggleRequireTag() { // fn#115866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:8450, owner: ChannelSettingsOverview.handleToggleRequireTag, offset: 0x02470f5e, size: 178 bytes, params: 1, frame: 19
|
|
var binding;
|
|
var channel;
|
|
var hasFlag;
|
|
var REQUIRE_TAG;
|
|
var hasFlag2;
|
|
var moduleValue;
|
|
var setFlag;
|
|
var flags;
|
|
var value2;
|
|
var value;
|
|
let props = env0_0.props;
|
|
if (props.canManageChannels) {
|
|
binding = env0_0;
|
|
props = binding.props;
|
|
channel = props.channel;
|
|
hasFlag = channel.hasFlag;
|
|
value = environment.__proto__.__proto__;
|
|
REQUIRE_TAG = ChannelFlags.REQUIRE_TAG;
|
|
hasFlag2 = Reflect.apply(hasFlag, channel, [REQUIRE_TAG]);
|
|
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
|
|
setFlag = moduleValue.setFlag;
|
|
props = binding.props;
|
|
channel = props.channel;
|
|
flags = channel.flags;
|
|
REQUIRE_TAG = ChannelFlags.REQUIRE_TAG;
|
|
value2 = Reflect.apply(setFlag, moduleValue, [flags, REQUIRE_TAG, !hasFlag2]);
|
|
value = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */;
|
|
value.updateChannel({flags: value2});
|
|
binding.setState({hasChanges: true});
|
|
}
|
|
}
|
|
|
|
function handleToggleShowMediaDownloadOptions() { // fn#115867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:8692, owner: ChannelSettingsOverview.handleToggleShowMediaDownloadOptions, offset: 0x02471010, size: 178 bytes, params: 1, frame: 19
|
|
var binding;
|
|
var channel;
|
|
var hasFlag;
|
|
var HIDE_MEDIA_DOWNLOAD_OPTIONS;
|
|
var hasFlag2;
|
|
var moduleValue;
|
|
var setFlag;
|
|
var flags;
|
|
var value2;
|
|
var value;
|
|
let props = env0_0.props;
|
|
if (props.canManageChannels) {
|
|
binding = env0_0;
|
|
props = binding.props;
|
|
channel = props.channel;
|
|
hasFlag = channel.hasFlag;
|
|
value = environment.__proto__.__proto__;
|
|
HIDE_MEDIA_DOWNLOAD_OPTIONS = ChannelFlags.HIDE_MEDIA_DOWNLOAD_OPTIONS;
|
|
hasFlag2 = Reflect.apply(hasFlag, channel, [HIDE_MEDIA_DOWNLOAD_OPTIONS]);
|
|
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
|
|
setFlag = moduleValue.setFlag;
|
|
props = binding.props;
|
|
channel = props.channel;
|
|
flags = channel.flags;
|
|
HIDE_MEDIA_DOWNLOAD_OPTIONS = ChannelFlags.HIDE_MEDIA_DOWNLOAD_OPTIONS;
|
|
value2 = Reflect.apply(setFlag, moduleValue, [flags, HIDE_MEDIA_DOWNLOAD_OPTIONS, !hasFlag2]);
|
|
value = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */;
|
|
value.updateChannel({flags: value2});
|
|
binding.setState({hasChanges: true});
|
|
}
|
|
}
|
|
|
|
function ChannelSettingsOverviewGetError(a0) { // fn#115868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:8938, owner: ChannelSettingsOverview.getError, offset: 0x024710c2, size: 38 bytes, params: 2, frame: 3
|
|
return env0_0.props.errors?.[a0];
|
|
}
|
|
|
|
}
|
|
|
|
function value_115869() { // fn#115869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:9123, offset: 0x024710e8, size: 181 bytes, params: 1, frame: 16
|
|
this.updateNavigation(undefined, this.state);
|
|
let value = this.props.regions == null;
|
|
if (value && this.props.guild != null) {
|
|
value = environment.__proto__;
|
|
value = importDefault(15176) /* metro dependency 15176: RegionActionCreators */;
|
|
value.fetchRegions(this.props.guild.id);
|
|
}
|
|
value = environment.__proto__;
|
|
const defaultImport = AppAnalyticsUtils;
|
|
const trackWithMetadata = defaultImport.trackWithMetadata;
|
|
const SETTINGS_PANE_VIEWED = AnalyticEvents.SETTINGS_PANE_VIEWED;
|
|
const CHANNEL_SETTINGS = SettingsPaneTypes.CHANNEL_SETTINGS;
|
|
Reflect.apply(trackWithMetadata, defaultImport, [SETTINGS_PANE_VIEWED, {settings_type: 'channel',
|
|
destination_pane: CHANNEL_SETTINGS}]);
|
|
}
|
|
|
|
function value_115871(a0, a1) { // fn#115871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:9488, offset: 0x024711b6, size: 411 bytes, params: 3, frame: 20
|
|
var environment;
|
|
var value;
|
|
const intl = (IndexNativeModule).intl;
|
|
const t = (IndexNativeModule).t;
|
|
const HeaderSubmittingIndicator = (NavigatorHeaderNativeModule).HeaderSubmittingIndicator;
|
|
const props = this.props;
|
|
const navigation = props.navigation;
|
|
const submitting = props.submitting;
|
|
const isThread = props.isThread;
|
|
const type = props.channel.type;
|
|
const isForumPost = props.isForumPost;
|
|
if (a0 == null) {
|
|
value = environment.__proto__;
|
|
navigation.setOptions({headerRight: submitting ? HeaderSubmittingIndicator : _fun115872,
|
|
title: isThread ? isForumPost ? intl.string(t.BsJrhj) : intl.string(t.d4n5Q1) : type === ChannelTypes.GUILD_CATEGORY ? intl.string(t['/uELTj']) : intl.string(t.XPDhcc)});
|
|
} else if (submitting !== a0.submitting) {
|
|
value = environment.__proto__;
|
|
navigation.setOptions({headerRight: submitting ? HeaderSubmittingIndicator : _fun115872,
|
|
title: isThread ? isForumPost ? intl.string(t.BsJrhj) : intl.string(t.d4n5Q1) : type === ChannelTypes.GUILD_CATEGORY ? intl.string(t['/uELTj']) : intl.string(t.XPDhcc)});
|
|
} else if (isThread !== a0.isThread) {
|
|
value = environment.__proto__;
|
|
navigation.setOptions({headerRight: submitting ? HeaderSubmittingIndicator : _fun115872,
|
|
title: isThread ? isForumPost ? intl.string(t.BsJrhj) : intl.string(t.d4n5Q1) : type === ChannelTypes.GUILD_CATEGORY ? intl.string(t['/uELTj']) : intl.string(t.XPDhcc)});
|
|
} else if (type !== a0.channel.type) {
|
|
value = environment.__proto__;
|
|
navigation.setOptions({headerRight: submitting ? HeaderSubmittingIndicator : _fun115872,
|
|
title: isThread ? isForumPost ? intl.string(t.BsJrhj) : intl.string(t.d4n5Q1) : type === ChannelTypes.GUILD_CATEGORY ? intl.string(t['/uELTj']) : intl.string(t.XPDhcc)});
|
|
} else if (this.state.hasChanges !== a1.hasChanges) {
|
|
value = environment.__proto__;
|
|
navigation.setOptions({headerRight: submitting ? HeaderSubmittingIndicator : _fun115872,
|
|
title: isThread ? isForumPost ? intl.string(t.BsJrhj) : intl.string(t.d4n5Q1) : type === ChannelTypes.GUILD_CATEGORY ? intl.string(t['/uELTj']) : intl.string(t.XPDhcc)});
|
|
}
|
|
function _fun115872(a0) { // fn#115872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:9960, offset: 0x02471351, size: 149 bytes, params: 2, frame: 19
|
|
const HeaderTextButton = (HeaderSharedModule).HeaderTextButton;
|
|
const headerTextButtonProps = {...a0};
|
|
headerTextButtonProps['onPress'] = env0_0.handleSave;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
headerTextButtonProps['label'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+']);
|
|
headerTextButtonProps['disabled'] = !hasChanges;
|
|
return <HeaderTextButton {...headerTextButtonProps} />;
|
|
}
|
|
|
|
}
|
|
|
|
function value_115873() { // fn#115873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:10129, offset: 0x024713e6, size: 880 bytes, params: 1, frame: 24
|
|
var r11;
|
|
var r5;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var string;
|
|
var t;
|
|
var isForumLikeChannel2;
|
|
var TextArea;
|
|
var defaultImport;
|
|
const {channel, canManageChannels, canManageThread, canSendMessages, isChannelOwner, isThread,
|
|
isForumPost} = this.props;
|
|
const isGuildTextChannelTypeBinding = isGuildTextChannelType;
|
|
const type = channel.type;
|
|
const value2 = undefined;
|
|
let r1 = isGuildTextChannelTypeBinding(type) && !isThread;
|
|
r1 = !r1 ? ChannelTypesSets.GUILD_THREADS_ONLY.has(channel.type) : r1;
|
|
const getIsChannelNameSettingEditable = ChannelSettingsUtilsModule.getIsChannelNameSettingEditable;
|
|
let object = {canManageThread: canManageThread, canManageChannels: canManageChannels,
|
|
canSendMessages: canSendMessages, isForumPost: isForumPost, isThread: isThread, isChannelOwner: isChannelOwner};
|
|
const value5 = Reflect.apply(getIsChannelNameSettingEditable, ChannelSettingsUtilsModule, [object]);
|
|
const r7 = channel.isForumPost() ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uyVrTN) : isThread ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.j3XWjD) : channel.type === ChannelTypes.GUILD_CATEGORY ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.OCAkGP) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.PVbHDl);
|
|
const TextInput = (TextInputNativeModule).TextInput;
|
|
const channelNameRef = this.props.channelNameRef;
|
|
const textInput = (
|
|
<TextInput
|
|
ref={channelNameRef}
|
|
label={r7}
|
|
accessibilityLabel={r7}
|
|
value={UseChannelNameModule.computeChannelName(channel, UserStore, RelationshipStore)}
|
|
onChange={this.handleChangeName}
|
|
onBlur={this.handleBlurName}
|
|
isDisabled={!value5}
|
|
maxLength={MAX_CHANNEL_NAME_LENGTH}
|
|
errorMessage={this.getError('name')}
|
|
enableAndroidSanitizedInputWorkaround
|
|
/>
|
|
);
|
|
if (r1) {
|
|
isForumLikeChannel2 = channel.isForumLikeChannel();
|
|
string = intl.string;
|
|
t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
r11 = isForumLikeChannel2 ? Reflect.apply(string, intl, [t.yR6HwZ]) : Reflect.apply(string, intl, [t.X8jMDh]);
|
|
TextArea = (require(7681) /* metro dependency 7681: TextAreaNative */).TextArea;
|
|
object = {label: r11, accessibilityLabel: r11};
|
|
defaultImport = importDefault(3797) /* metro dependency 3797: UnicodeEmojis */;
|
|
object.value = defaultImport.translateSurrogatesToInlineEmoji(channel.topic);
|
|
object.onChange = this.handleChangeTopic;
|
|
object.isDisabled = !canManageChannels;
|
|
object.autoCorrect = true;
|
|
object.maxLength = channel.isForumLikeChannel() ? MAX_FORUM_CHANNEL_TOPIC_LENGTH : MAX_CHANNEL_TOPIC_LENGTH;
|
|
object.errorMessage = this.getError('topic');
|
|
r5 = <TextArea {...object} />;
|
|
} else {
|
|
r5 = value2;
|
|
}
|
|
return (
|
|
<>
|
|
{textInput}
|
|
{r5}
|
|
</>
|
|
);
|
|
}
|
|
|
|
function value_115874() { // fn#115874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:11392, offset: 0x02471756, size: 410 bytes, params: 1, frame: 29
|
|
var r0;
|
|
var value3;
|
|
var moduleValue;
|
|
var TableRowGroup;
|
|
var object3;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var TableSwitchRow;
|
|
var object4;
|
|
const {channel, canManageChannels, isNSFWDisabled} = this.props;
|
|
const type = channel.type;
|
|
const value = environment.__proto__;
|
|
const GUILD_TEXT = ChannelTypes.GUILD_TEXT;
|
|
const value2 = null;
|
|
if (type !== GUILD_TEXT) {
|
|
r0 = value2;
|
|
} else if (canManageChannels) {
|
|
value3 = undefined;
|
|
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
|
|
if (moduleValue.isIOS()) {
|
|
r0 = value2;
|
|
} else {
|
|
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
|
var tableRowGroupProps = {helperText: intl.string(t['9eUgwR']), hasIcons: false};
|
|
TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
|
|
r0 = (
|
|
<TableRowGroup {...tableRowGroupProps} key="nsfw-section">
|
|
<TableSwitchRow
|
|
label={intl.string(t.Es25Yf)}
|
|
value={(require(5072) /* metro dependency 5072: AgeGateUtils */).isChannelOrGuildNSFW(channel)}
|
|
onValueChange={this.handleNsfwChange}
|
|
disabled={isNSFWDisabled}
|
|
subLabel={value2 != channel.linkedLobby ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.l6uSVa) : value3}
|
|
/>
|
|
</TableRowGroup>
|
|
);
|
|
}
|
|
} else {
|
|
r0 = value2;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function value_115875() { // fn#115875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:11922, offset: 0x024718f0, size: 282 bytes, params: 1, frame: 26
|
|
var r0;
|
|
var TableRowGroup;
|
|
var object2;
|
|
const intl = (IndexNativeModule).intl;
|
|
const t = (IndexNativeModule).t;
|
|
const {channel, canManageThread, showSpoilerThreadSetting} = this.props;
|
|
let value = null;
|
|
if (showSpoilerThreadSetting) {
|
|
if (channel.isThread()) {
|
|
value = environment.__proto__;
|
|
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
|
value = (
|
|
<TableRowGroup
|
|
helperText={intl.string(t.ddWXHa)}
|
|
hasIcons={false}
|
|
key="thread-spoiler-section"
|
|
>
|
|
{((TableSwitchRow) => <TableSwitchRow label={intl.string(t.TvUHTb)} value={channel.isSpoilerChannel()} onValueChange={this.handleThreadSpoilerChange} disabled={!canManageThread} />)((require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow)}
|
|
</TableRowGroup>
|
|
);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function value_115876() { // fn#115876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:12351, offset: 0x02471a0a, size: 817 bytes, params: 1, frame: 37
|
|
var r7;
|
|
var items4;
|
|
var moduleValue;
|
|
var getSecondsSliderLabel;
|
|
var rateLimitPerUser;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var value4;
|
|
var isThread2;
|
|
var push;
|
|
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
|
|
var object;
|
|
const Card = (CardNativeModule).Card;
|
|
const Text = (TextModule).Text;
|
|
var piZgKF;
|
|
var items2;
|
|
var items3;
|
|
const Slider = (SliderNativeModule).Slider;
|
|
const value2 = env1_52(this.context);
|
|
const {channel, canManageChannels, isThreadModerator} = this.props;
|
|
const type = channel.type;
|
|
const GUILD_TEXT = ChannelTypes.GUILD_TEXT;
|
|
if (type === GUILD_TEXT) {
|
|
if (canManageChannels) {
|
|
items4 = [];
|
|
moduleValue = require(15175) /* metro dependency 15175: SecondsSliderUtils */;
|
|
getSecondsSliderLabel = moduleValue.getSecondsSliderLabel;
|
|
rateLimitPerUser = channel.rateLimitPerUser;
|
|
string = intl.string;
|
|
value4 = Reflect.apply(getSecondsSliderLabel, moduleValue, [rateLimitPerUser, false, Reflect.apply(string,
|
|
intl,
|
|
[t.zvDu4h])]);
|
|
if (channel.isForumLikeChannel()) {
|
|
r7 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['a+1pdO']);
|
|
} else {
|
|
isThread2 = channel.isThread();
|
|
string = intl.string;
|
|
r7 = isThread2 ? Reflect.apply(string, intl, [t.OMmNCv]) : Reflect.apply(string, intl, [t['HEA/DU']]);
|
|
}
|
|
push = items4.push;
|
|
object = {helperText: r7, hasIcons: false};
|
|
string = intl.string;
|
|
piZgKF = t.piZgKF;
|
|
items2 = [
|
|
<Text
|
|
variant="text-md/semibold"
|
|
color="mobile-text-heading-primary"
|
|
style={{flexShrink: 1}}
|
|
>
|
|
{Reflect.apply(string, intl, [piZgKF])}
|
|
</Text>,
|
|
];
|
|
items2[1] = (
|
|
<Text variant="text-md/medium" color="text-muted">
|
|
{value4}
|
|
</Text>
|
|
);
|
|
items3 = [
|
|
<View
|
|
style={{
|
|
'flexDirection': 'row',
|
|
'justifyContent': 'space-between',
|
|
'alignItems': 'center',
|
|
'flexWrap': 'wrap',
|
|
}}
|
|
>
|
|
{items2}
|
|
</View>,
|
|
];
|
|
string = intl.string;
|
|
piZgKF = t.piZgKF;
|
|
items3[1] = (
|
|
<Slider
|
|
style={[value2.slider, {'marginStart': -4, 'marginTop': 8}]}
|
|
value={this._cooldown}
|
|
minimumValue={0}
|
|
maximumValue={SLOWMODE_VALUES.length - 1}
|
|
onValueChange={this.handleSlowmodeChange}
|
|
accessibilityLabel={Reflect.apply(string, intl, [piZgKF])}
|
|
accessibilityValue={{text: value4}}
|
|
/>
|
|
);
|
|
Reflect.apply(push, items4,
|
|
[<TableRowGroup {...object} key="slowmode-section"><Card border="none">{items3}</Card></TableRowGroup>]);
|
|
return items4;
|
|
}
|
|
}
|
|
if (channel.isThread()) {
|
|
if (isThreadModerator) {
|
|
items4 = [];
|
|
moduleValue = require(15175) /* metro dependency 15175: SecondsSliderUtils */;
|
|
getSecondsSliderLabel = moduleValue.getSecondsSliderLabel;
|
|
rateLimitPerUser = channel.rateLimitPerUser;
|
|
string = intl.string;
|
|
value4 = Reflect.apply(getSecondsSliderLabel, moduleValue, [rateLimitPerUser, false, Reflect.apply(string,
|
|
intl,
|
|
[t.zvDu4h])]);
|
|
if (channel.isForumLikeChannel()) {
|
|
r7 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['a+1pdO']);
|
|
} else {
|
|
isThread2 = channel.isThread();
|
|
string = intl.string;
|
|
r7 = isThread2 ? Reflect.apply(string, intl, [t.OMmNCv]) : Reflect.apply(string, intl, [t['HEA/DU']]);
|
|
}
|
|
push = items4.push;
|
|
object = {helperText: r7, hasIcons: false};
|
|
string = intl.string;
|
|
piZgKF = t.piZgKF;
|
|
items2 = [
|
|
<Text
|
|
variant="text-md/semibold"
|
|
color="mobile-text-heading-primary"
|
|
style={{flexShrink: 1}}
|
|
>
|
|
{Reflect.apply(string, intl, [piZgKF])}
|
|
</Text>,
|
|
];
|
|
items2[1] = (
|
|
<Text variant="text-md/medium" color="text-muted">
|
|
{value4}
|
|
</Text>
|
|
);
|
|
items3 = [
|
|
<View
|
|
style={{
|
|
'flexDirection': 'row',
|
|
'justifyContent': 'space-between',
|
|
'alignItems': 'center',
|
|
'flexWrap': 'wrap',
|
|
}}
|
|
>
|
|
{items2}
|
|
</View>,
|
|
];
|
|
string = intl.string;
|
|
piZgKF = t.piZgKF;
|
|
items3[1] = (
|
|
<Slider
|
|
style={[value2.slider, {'marginStart': -4, 'marginTop': 8}]}
|
|
value={this._cooldown}
|
|
minimumValue={0}
|
|
maximumValue={SLOWMODE_VALUES.length - 1}
|
|
onValueChange={this.handleSlowmodeChange}
|
|
accessibilityLabel={Reflect.apply(string, intl, [piZgKF])}
|
|
accessibilityValue={{text: value4}}
|
|
/>
|
|
);
|
|
Reflect.apply(push, items4,
|
|
[<TableRowGroup {...object} key="slowmode-section"><Card border="none">{items3}</Card></TableRowGroup>]);
|
|
return items4;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function value_115877() { // fn#115877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:13567, offset: 0x02471d3b, size: 268 bytes, params: 1, frame: 22
|
|
var r6;
|
|
var value;
|
|
var value2;
|
|
const intl = (IndexNativeModule).intl;
|
|
var string;
|
|
const t = (IndexNativeModule).t;
|
|
var AutoArchiveDurationOptions;
|
|
var object2;
|
|
var threadMetadata;
|
|
const props = this.props;
|
|
const channel = props.channel;
|
|
if (channel.isThread()) {
|
|
if (props.canManageThread) {
|
|
value = environment.__proto__;
|
|
value2 = undefined;
|
|
string = intl.string;
|
|
r6 = props.isForumPost ? Reflect.apply(string, intl, [t['3aJN9M']]) : Reflect.apply(string, intl,
|
|
[t.YUXr4Z]);
|
|
AutoArchiveDurationOptions = (require(15178) /* metro dependency 15178: ThreadAutoArchiveBottomSheet */).AutoArchiveDurationOptions;
|
|
var autoArchiveDurationOptionsProps = {title: intl.string(t.FGjMZS), description: r6};
|
|
threadMetadata = channel.threadMetadata;
|
|
r6 = (threadMetadata == null ? value2 : threadMetadata.autoArchiveDuration) ?? DEFAULT_AUTO_ARCHIVE_DURATION;
|
|
autoArchiveDurationOptionsProps.selected = r6;
|
|
autoArchiveDurationOptionsProps.channel = channel;
|
|
autoArchiveDurationOptionsProps.onSelectDuration = this.handleAutoArchiveDurationChange;
|
|
return <AutoArchiveDurationOptions {...autoArchiveDurationOptionsProps} />;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function value_115878() { // fn#115878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:14054, offset: 0x02471e47, size: 293 bytes, params: 1, frame: 25
|
|
var r0;
|
|
var type;
|
|
var value2;
|
|
var TableRowGroup;
|
|
var object3;
|
|
const intl = (IndexNativeModule).intl;
|
|
const t = (IndexNativeModule).t;
|
|
var TableSwitchRow;
|
|
var object4;
|
|
const {channel, canManageThread} = this.props;
|
|
const threadMetadata = channel.threadMetadata;
|
|
const value = null;
|
|
if (value == threadMetadata) {
|
|
r0 = value;
|
|
} else {
|
|
type = channel.type;
|
|
value2 = environment.__proto__;
|
|
if (type !== ChannelTypes.PRIVATE_THREAD) {
|
|
r0 = value;
|
|
} else {
|
|
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
|
var tableRowGroupProps = {description: intl.string(t.cSyXJk), hasIcons: false};
|
|
TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
|
|
r0 = (
|
|
<TableRowGroup {...tableRowGroupProps} key="thread-invitable-section">
|
|
<TableSwitchRow
|
|
disabled={!canManageThread}
|
|
label={intl.string(t.s2rpNf)}
|
|
value={channel.threadMetadata.invitable}
|
|
onValueChange={this.handleInvitableChange}
|
|
/>
|
|
</TableRowGroup>
|
|
);
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function value_115879() { // fn#115879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:14515, offset: 0x02471f6c, size: 282 bytes, params: 1, frame: 24
|
|
var r0;
|
|
var AutoArchiveDurationOptions;
|
|
var object2;
|
|
const intl = (IndexNativeModule).intl;
|
|
var string;
|
|
const t = (IndexNativeModule).t;
|
|
var isForumLikeChannel2;
|
|
const {channel, canManageChannels} = this.props;
|
|
const value = environment.__proto__;
|
|
const value2 = THREADED_CHANNEL_TYPES.has(channel.type);
|
|
const value3 = null;
|
|
if (value2) {
|
|
if (canManageChannels) {
|
|
AutoArchiveDurationOptions = (require(15178) /* metro dependency 15178: ThreadAutoArchiveBottomSheet */).AutoArchiveDurationOptions;
|
|
var autoArchiveDurationOptionsProps = {title: intl.string(t.FGjMZS),
|
|
selected: (require(7878) /* metro dependency 7878: ThreadAutoArchive */).getAutoArchiveDuration(channel,
|
|
value3), channel: channel, onSelectDuration: this.handleDefaultAutoArchiveDurationChange};
|
|
isForumLikeChannel2 = channel.isForumLikeChannel();
|
|
string = intl.string;
|
|
autoArchiveDurationOptionsProps.description = isForumLikeChannel2 ? Reflect.apply(string, intl,
|
|
[t.fyXclY]) : Reflect.apply(string, intl, [t.W3Noi9]);
|
|
r0 = <AutoArchiveDurationOptions {...autoArchiveDurationOptionsProps} />;
|
|
} else {
|
|
r0 = value3;
|
|
}
|
|
} else {
|
|
r0 = value3;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function value_115880() { // fn#115880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:14967, offset: 0x02472086, size: 443 bytes, params: 1, frame: 24
|
|
var value;
|
|
var value2;
|
|
var TableRadioGroup;
|
|
var object4;
|
|
const intl = (IndexNativeModule).intl;
|
|
const t = (IndexNativeModule).t;
|
|
const TableRadioRow = (TableRadioRowNativeModule).TableRadioRow;
|
|
var object5;
|
|
const ThreadSortOrder = (ThreadSortOrderModule).ThreadSortOrder;
|
|
var items2;
|
|
var object6;
|
|
const props = this.props;
|
|
const channel = props.channel;
|
|
if (channel.isForumLikeChannel()) {
|
|
if (props.canManageChannels) {
|
|
value = channel.getDefaultSortOrder();
|
|
value2 = environment.__proto__;
|
|
TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
|
var tableRadioGroupProps = {title: intl.string(t.gePre2), description: intl.string(t['165cVX']),
|
|
value: value,
|
|
onChange: this.handleDefaultSortOrderChange, hasIcons: false};
|
|
value = <TableRadioRow label={intl.string(t.ElZtzj)} value={ThreadSortOrder.LATEST_ACTIVITY} />;
|
|
items2 = [value];
|
|
items2[1] = <TableRadioRow label={intl.string(t.w28f3F)} value={ThreadSortOrder.CREATION_DATE} />;
|
|
return (
|
|
<TableRadioGroup {...tableRadioGroupProps}>
|
|
{items2}
|
|
</TableRadioGroup>
|
|
);
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function value_115881() { // fn#115881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:15596, offset: 0x02472241, size: 439 bytes, params: 1, frame: 24
|
|
var value;
|
|
var value2;
|
|
var TableRadioGroup;
|
|
var object4;
|
|
const intl = (IndexNativeModule).intl;
|
|
const t = (IndexNativeModule).t;
|
|
const TableRadioRow = (TableRadioRowNativeModule).TableRadioRow;
|
|
var object5;
|
|
const ThreadSearchTagSetting = (ThreadSearchTagSettingModule).ThreadSearchTagSetting;
|
|
var items2;
|
|
var object6;
|
|
const props = this.props;
|
|
const channel = props.channel;
|
|
if (channel.isForumLikeChannel()) {
|
|
if (props.canManageChannels) {
|
|
value = channel.getDefaultTagSetting();
|
|
value2 = environment.__proto__;
|
|
TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
|
var tableRadioGroupProps = {title: intl.string(t.Paxaug), description: intl.string(t.DqOl8J), value: value,
|
|
onChange: this.handleDefaultTagSettingChange, hasIcons: false};
|
|
value = <TableRadioRow label={intl.string(t.rQ0ctQ)} value={ThreadSearchTagSetting.MATCH_SOME} />;
|
|
items2 = [value];
|
|
items2[1] = <TableRadioRow label={intl.string(t.FCXUu0)} value={ThreadSearchTagSetting.MATCH_ALL} />;
|
|
return (
|
|
<TableRadioGroup {...tableRadioGroupProps}>
|
|
{items2}
|
|
</TableRadioGroup>
|
|
);
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function value_115882() { // fn#115882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:16224, offset: 0x024723f8, size: 553 bytes, params: 1, frame: 33
|
|
var features;
|
|
var id;
|
|
var items2;
|
|
var push;
|
|
var TableRowGroup;
|
|
var object;
|
|
var jsxRuntimeEnv1_50Binding;
|
|
const intl = (IndexNativeModule).intl;
|
|
var format;
|
|
const t = (IndexNativeModule).t;
|
|
var tI7KNX;
|
|
var defaultImport;
|
|
var TableSwitchRow;
|
|
var object3;
|
|
var GUILD_ANNOUNCEMENT;
|
|
var handleAnnouncementChange;
|
|
var bind;
|
|
const {channel, canManageChannels, guild} = this.props;
|
|
const isGuildTextChannelTypeBinding = isGuildTextChannelType;
|
|
let type = channel.type;
|
|
const value2 = undefined;
|
|
if (isGuildTextChannelTypeBinding(type)) {
|
|
if (guild == null) {
|
|
return null;
|
|
}
|
|
features = guild.features;
|
|
if (features.has(GuildFeatures.NEWS)) {
|
|
id = channel.id;
|
|
if (id === (guild == null ? value2 : guild.rulesChannelId)) {
|
|
return null;
|
|
}
|
|
id = channel.id;
|
|
if (id === (guild == null ? value2 : guild.publicUpdatesChannelId)) {
|
|
return null;
|
|
}
|
|
items2 = [];
|
|
push = items2.push;
|
|
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
|
object = {};
|
|
jsxRuntimeEnv1_50Binding = jsxRuntimeEnv1_50;
|
|
format = intl.format;
|
|
tI7KNX = t.tI7KNX;
|
|
defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
|
object.description = (
|
|
<>
|
|
{[Reflect.apply(format, intl, [tI7KNX,
|
|
{documentationLink: defaultImport.getArticleURL(HelpdeskArticles.ANNOUNCEMENT_CHANNELS)}]),
|
|
'\n\n',
|
|
intl.string(t['2Ab4Id'])]}
|
|
</>
|
|
);
|
|
object.hasIcons = false;
|
|
TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
|
|
var tableSwitchRowProps = {disabled: !canManageChannels, label: intl.string(t.Au2b7m)};
|
|
type = channel.type;
|
|
GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT;
|
|
tableSwitchRowProps.value = type === GUILD_ANNOUNCEMENT;
|
|
handleAnnouncementChange = this.handleAnnouncementChange;
|
|
bind = handleAnnouncementChange.bind;
|
|
type = channel.type;
|
|
GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT;
|
|
tableSwitchRowProps.onValueChange = Reflect.apply(bind, handleAnnouncementChange, [this,
|
|
type === GUILD_ANNOUNCEMENT]);
|
|
Reflect.apply(push, items2,
|
|
[<TableRowGroup {...object} key="announcement-section"><TableSwitchRow {...tableSwitchRowProps} /></TableRowGroup>]);
|
|
return items2;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function value_115883() { // fn#115883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:16983, offset: 0x02472621, size: 620 bytes, params: 1, frame: 38
|
|
var items4;
|
|
var bitrateLimit;
|
|
var push;
|
|
var TableRowGroup;
|
|
var object2;
|
|
const intl = (IndexNativeModule).intl;
|
|
const t = (IndexNativeModule).t;
|
|
var Card;
|
|
const Text = (TextModule).Text;
|
|
var items2;
|
|
var Math;
|
|
var round;
|
|
var bitrate;
|
|
var items3;
|
|
var Slider;
|
|
var slider;
|
|
var min;
|
|
const value2 = env1_52(this.context);
|
|
const props = this.props;
|
|
const channel = props.channel;
|
|
if (this.showVoiceSettings()) {
|
|
if (props.canManageChannels) {
|
|
items4 = [];
|
|
bitrateLimit = (require(4800) /* metro dependency 4800: ChannelUtils */).getBitrateLimit(props.guild,
|
|
channel);
|
|
push = items4.push;
|
|
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
|
var tableRowGroupProps = {description: intl.format(t.SbQJk5,
|
|
{bitrate: BITRATE_DEFAULT / 1000}), hasIcons: false};
|
|
Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
|
items2 = [
|
|
<Text
|
|
variant="text-md/semibold"
|
|
color="mobile-text-heading-primary"
|
|
style={{flexShrink: 1}}
|
|
>
|
|
{intl.string(t.w2d0vU)}
|
|
</Text>,
|
|
];
|
|
Math = global.Math;
|
|
round = Math.round;
|
|
bitrate = channel.bitrate;
|
|
items2[1] = (
|
|
<Text variant="text-md/medium" color="text-muted">
|
|
{'' + Reflect.apply(round, Math, [bitrate / 1000]) + 'kbps'}
|
|
</Text>
|
|
);
|
|
items3 = [
|
|
<View
|
|
style={{
|
|
'flexDirection': 'row',
|
|
'justifyContent': 'space-between',
|
|
'alignItems': 'center',
|
|
'flexWrap': 'wrap',
|
|
}}
|
|
>
|
|
{items2}
|
|
</View>,
|
|
];
|
|
Slider = (require(12809) /* metro dependency 12809: SliderNative */).Slider;
|
|
slider = value2.slider;
|
|
Math = global.Math;
|
|
min = Math.min;
|
|
bitrate = channel.bitrate;
|
|
items3[1] = (
|
|
<Slider
|
|
style={slider}
|
|
value={Reflect.apply(min, Math, [bitrate, bitrateLimit])}
|
|
minimumValue={BITRATE_MIN}
|
|
maximumValue={bitrateLimit}
|
|
onValueChange={this.handleBitRateChange}
|
|
/>
|
|
);
|
|
Reflect.apply(push, items4,
|
|
[<TableRowGroup {...tableRowGroupProps} key="bitrate-section"><Card>{items3}</Card></TableRowGroup>]);
|
|
return items4;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function value_115884() { // fn#115884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:17899, offset: 0x0247288d, size: 456 bytes, params: 1, frame: 27
|
|
var items3;
|
|
var push;
|
|
var value;
|
|
var TableRadioGroup;
|
|
var object2;
|
|
const intl = (IndexNativeModule).intl;
|
|
var string;
|
|
const t = (IndexNativeModule).t;
|
|
const TableRadioRow = (TableRadioRowNativeModule).TableRadioRow;
|
|
var items2;
|
|
const props = this.props;
|
|
if (this.showVoiceSettings()) {
|
|
if (props.canManageChannels) {
|
|
items3 = [];
|
|
push = items3.push;
|
|
value = environment.__proto__;
|
|
TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
|
var tableRadioGroupProps = {title: intl.string(t.jhJEJs), description: intl.format(t.c5W7Ss, {}),
|
|
value: props.channel.videoQualityMode ?? VideoQualityMode.AUTO,
|
|
onChange: this.handleVideoQualityModeChange,
|
|
hasIcons: false};
|
|
string = intl.string;
|
|
items2 = [
|
|
<TableRadioRow label={Reflect.apply(string, intl, [t.jjKYpu])} value={VideoQualityMode.AUTO} />,
|
|
];
|
|
string = intl.string;
|
|
items2[1] = <TableRadioRow label={Reflect.apply(string, intl,
|
|
[t['7jOoJE']])} value={VideoQualityMode.FULL} />;
|
|
Reflect.apply(push, items3,
|
|
[<TableRadioGroup {...tableRadioGroupProps} key="video-quality-section">{items2}</TableRadioGroup>]);
|
|
return items3;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function value_115885() { // fn#115885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:18518, offset: 0x02472a55, size: 737 bytes, params: 1, frame: 39
|
|
var r25;
|
|
var r14;
|
|
var items4;
|
|
var Math;
|
|
var round;
|
|
var userLimit;
|
|
var value3;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var push;
|
|
var TableRowGroup;
|
|
var object2;
|
|
var isGuildStageVoice2;
|
|
var format;
|
|
var Card;
|
|
const Text = (TextModule).Text;
|
|
var items2;
|
|
var items3;
|
|
var Slider;
|
|
var slider;
|
|
var min;
|
|
const value2 = env1_52(this.context);
|
|
const props = this.props;
|
|
const channel = props.channel;
|
|
if (this.showVoiceSettings()) {
|
|
if (props.canManageChannels) {
|
|
items4 = [];
|
|
Math = global.Math;
|
|
round = Math.round;
|
|
userLimit = channel.userLimit;
|
|
value3 = Reflect.apply(round, Math, [userLimit]);
|
|
r25 = value3 === 0 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.XX5ciX) : intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['3uHFUR'],
|
|
|
|
|
|
{num: value3});
|
|
r14 = channel.isGuildStageVoice() ? MAX_STAGE_VOICE_USER_LIMIT : MAX_VOICE_USER_LIMIT;
|
|
push = items4.push;
|
|
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
|
object2 = {};
|
|
isGuildStageVoice2 = channel.isGuildStageVoice();
|
|
format = intl.format;
|
|
object2.description = isGuildStageVoice2 ? Reflect.apply(format, intl, [t.OqZI8D,
|
|
{}]) : Reflect.apply(format,
|
|
intl,
|
|
[t['8yb3JT'], {}]);
|
|
object2.hasIcons = false;
|
|
Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
|
items2 = [
|
|
<Text
|
|
variant="text-md/semibold"
|
|
color="mobile-text-heading-primary"
|
|
style={{flexShrink: 1}}
|
|
>
|
|
{intl.string(t['/AoSGN'])}
|
|
</Text>,
|
|
];
|
|
items2[1] = (
|
|
<Text variant="text-md/medium" color="text-muted">
|
|
{r25}
|
|
</Text>
|
|
);
|
|
items3 = [
|
|
<View
|
|
style={{
|
|
'flexDirection': 'row',
|
|
'justifyContent': 'space-between',
|
|
'alignItems': 'center',
|
|
'flexWrap': 'wrap',
|
|
}}
|
|
>
|
|
{items2}
|
|
</View>,
|
|
];
|
|
Slider = (require(12809) /* metro dependency 12809: SliderNative */).Slider;
|
|
slider = value2.slider;
|
|
Math = global.Math;
|
|
min = Math.min;
|
|
userLimit = channel.userLimit;
|
|
items3[1] = (
|
|
<Slider
|
|
style={slider}
|
|
value={Reflect.apply(min, Math, [userLimit, r14])}
|
|
minimumValue={0}
|
|
maximumValue={r14}
|
|
onValueChange={this.handleUserLimitChange}
|
|
/>
|
|
);
|
|
Reflect.apply(push, items4,
|
|
[<TableRowGroup {...object2} key="channel-user-limit"><Card>{items3}</Card></TableRowGroup>]);
|
|
return items4;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function value_115886() { // fn#115886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:19580, offset: 0x02472d36, size: 527 bytes, params: 1, frame: 30
|
|
var environment;
|
|
var r11;
|
|
var r1;
|
|
var r15;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var items2;
|
|
var push;
|
|
var TableRowGroup;
|
|
var object2;
|
|
const {regions, channel, canManageChannels, guild} = this.props;
|
|
let value = null;
|
|
if (value != guild) {
|
|
if (this.showVoiceSettings()) {
|
|
if (canManageChannels) {
|
|
if (channel.isGuildStageVoice()) {
|
|
return value;
|
|
}
|
|
r11 = value == regions || regions.length === 0;
|
|
r1 = value != regions ? regions.find(function({id}) {
|
|
return id === channel.rtcRegion;
|
|
}) : value;
|
|
if (value != r1) {
|
|
r15 = r1.name;
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.JEmsap);
|
|
r15 = value;
|
|
}
|
|
items2 = [];
|
|
push = items2.push;
|
|
value = environment.__proto__;
|
|
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
|
Reflect.apply(push, items2,
|
|
[<TableRowGroup title={intl.string(t['Ms8bX+'])} description={intl.string(t['dbTs+z'])} hasIcons={false} key="channel-region-override">{((TableRow) => <TableRow label={intl.string(t['Ms8bX+'])} trailing={((TrailingText) => <TrailingText text={r15} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.TrailingText)} arrow disabled={r11} onPress={onPress_115888} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow)}</TableRowGroup>]);
|
|
return items2;
|
|
}
|
|
return value;
|
|
}
|
|
}
|
|
return value;
|
|
function value_115886OnPress() { // fn#115888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:20206, owner: value_115886.onPress, offset: 0x02472f60, size: 33 bytes, params: 1, frame: 11
|
|
const binding = env0_0;
|
|
const pushScreen = binding.pushScreen;
|
|
const CHANGE_RTC_REGION = ChannelSettingsSections.CHANGE_RTC_REGION;
|
|
return Reflect.apply(pushScreen, binding, [CHANGE_RTC_REGION]);
|
|
}
|
|
|
|
}
|
|
|
|
function value_115889() { // fn#115889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:20313, offset: 0x02472f81, size: 145 bytes, params: 1, frame: 14
|
|
var r1;
|
|
var VoiceInThreadsExperiment;
|
|
const channel = this.props.channel;
|
|
let value = channel != null;
|
|
let r0 = value && channel.guild_id != null;
|
|
if (r0) {
|
|
value = environment.__proto__;
|
|
value = EDITABLE_VOICE_SETTINGS_TYPES.has(channel.type);
|
|
r0 = value;
|
|
}
|
|
if (r0) {
|
|
value = channel.isGuildVocal();
|
|
if (value) {
|
|
r1 = value;
|
|
} else {
|
|
value = environment.__proto__;
|
|
VoiceInThreadsExperiment = (require(6860) /* metro dependency 6860: ThreadHooks */).VoiceInThreadsExperiment;
|
|
r1 = VoiceInThreadsExperiment.getCurrentConfig({guildId: channel.guild_id, location: '9b50bd_1'}).enabled;
|
|
}
|
|
r0 = r1;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function value_115890() { // fn#115890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:20552, offset: 0x02473012, size: 364 bytes, params: 1, frame: 26
|
|
var environment;
|
|
var r0;
|
|
var TableRowGroup;
|
|
var object2;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const {canManageRoles, channel} = this.props;
|
|
let value = null;
|
|
if (canManageRoles) {
|
|
value = environment.__proto__;
|
|
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
|
value = (
|
|
<TableRowGroup helperText={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.UAoMCL)} hasIcons>
|
|
{((TableRow) => <TableRow label={channel.type === ChannelTypes.GUILD_CATEGORY ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.PgkvDf) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.BAZMBn)} arrow icon={((ShieldUserIcon) => <ShieldUserIcon />)((require(9097) /* metro dependency 9097: ShieldUserIcon */).ShieldUserIcon)} onPress={onPress_115891} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow)}
|
|
</TableRowGroup>
|
|
);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
function value_115890OnPress() { // fn#115891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:20906, owner: value_115890.onPress, offset: 0x0247317e, size: 47 bytes, params: 1, frame: 14
|
|
const binding = env0_0;
|
|
const pushScreen = binding.pushScreen;
|
|
const PERMISSIONS = ChannelSettingsSections.PERMISSIONS;
|
|
const OVERVIEW = ChannelSettingsSections.OVERVIEW;
|
|
return Reflect.apply(pushScreen, binding, [PERMISSIONS, {origin: OVERVIEW}]);
|
|
}
|
|
|
|
}
|
|
|
|
function value_115892(a0) { // fn#115892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:21007, offset: 0x024731ad, size: 75 bytes, params: 2, frame: 16
|
|
var r0;
|
|
const length = a0.length;
|
|
let value = null;
|
|
if (length > 0) {
|
|
value = environment.__proto__;
|
|
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
|
value = (
|
|
<TableRowGroup hasIcons>
|
|
{a0}
|
|
</TableRowGroup>
|
|
);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function value_115893() { // fn#115893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:21137, offset: 0x024731f8, size: 632 bytes, params: 1, frame: 26
|
|
var push;
|
|
const TableRow = (TableRowNativeModule).TableRow;
|
|
var object3;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var object5;
|
|
var object6;
|
|
const {channel, canManageChannels} = this.props;
|
|
const items2 = [];
|
|
if (isGuildTextChannelType(channel.type) || channel.isGuildStageVoice()) {
|
|
items2.push(<TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.h850Ss)} arrow icon={((BellIcon) => <BellIcon />)((require(9216) /* metro dependency 9216: BellIcon */).BellIcon)} onPress={onPress_115894} key="rowNotifications" />);
|
|
}
|
|
if (isGuildTextChannelType(channel.type)) {
|
|
items2.push(<TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['mp1N/2'])} arrow icon={<PinImage channelId={channel.id} />} onPress={onPress_115895} disabled={this.props.pinDisabled} key="rowPinnedMessages" />);
|
|
}
|
|
if (canManageChannels && channel.type !== ChannelTypes.GUILD_CATEGORY && !channel.isThread()) {
|
|
items2.push(<TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ngRFjZ)} arrow icon={((LinkIcon) => <LinkIcon />)((require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon)} onPress={onPress_115896} key="rowInstantInvites" />);
|
|
}
|
|
return this.renderSettingsSection(items2);
|
|
function value_115893OnPress() { // fn#115894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:21368, owner: value_115893.onPress, offset: 0x02473470, size: 89 bytes, params: 1, frame: 13
|
|
var r0;
|
|
var binding;
|
|
var moduleValue;
|
|
if (channel.isThread()) {
|
|
moduleValue = require(11243) /* metro dependency 11243: threadActionSheets */;
|
|
r0 = moduleValue.showThreadNotificationsBottomSheet(channel);
|
|
} else {
|
|
binding = env0_0;
|
|
r0 = binding.pushScreen(ChannelSettingsSections.NOTIFICATIONS);
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function value_115893OnPress_115895() { // fn#115895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:21628, owner: value_115893.onPress, offset: 0x024734c9, size: 33 bytes, params: 1, frame: 11
|
|
const binding = env0_0;
|
|
const pushScreen = binding.pushScreen;
|
|
const PINNED_MESSAGES = ChannelSettingsSections.PINNED_MESSAGES;
|
|
return Reflect.apply(pushScreen, binding, [PINNED_MESSAGES]);
|
|
}
|
|
|
|
function value_115893OnPress_115896() { // fn#115896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:21889, owner: value_115893.onPress, offset: 0x024734ea, size: 33 bytes, params: 1, frame: 11
|
|
const binding = env0_0;
|
|
const pushScreen = binding.pushScreen;
|
|
const INSTANT_INVITES = ChannelSettingsSections.INSTANT_INVITES;
|
|
return Reflect.apply(pushScreen, binding, [INSTANT_INVITES]);
|
|
}
|
|
|
|
}
|
|
|
|
function value_115897() { // fn#115897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:22021, offset: 0x0247350b, size: 561 bytes, params: 1, frame: 32
|
|
var environment;
|
|
var r0;
|
|
var TableRowGroup;
|
|
var object3;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var TableRow;
|
|
var object4;
|
|
var TrailingText;
|
|
var defaultForumLayout;
|
|
const ForumLayout = (ForumLayoutModule).ForumLayout;
|
|
var GRID;
|
|
const channel = this.props.channel;
|
|
let value = channel.isForumChannel();
|
|
if (value) {
|
|
value = environment.__proto__;
|
|
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
|
var tableRowGroupProps = {description: intl.string(t.mOSViT), hasIcons: true};
|
|
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
|
var tableRowProps = {label: intl.string(t['kQvoC/'])};
|
|
TrailingText = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow.TrailingText;
|
|
defaultForumLayout = channel.defaultForumLayout;
|
|
GRID = ForumLayout.GRID;
|
|
tableRowProps.trailing = (
|
|
<TrailingText
|
|
text={defaultForumLayout === GRID ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8RswJG']) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4HXEZG'])}
|
|
/>
|
|
);
|
|
tableRowProps.arrow = true;
|
|
defaultForumLayout = channel.defaultForumLayout;
|
|
GRID = ForumLayout.GRID;
|
|
tableRowProps.icon = (
|
|
defaultForumLayout === GRID
|
|
? ((GridSquareIcon) => <GridSquareIcon />)((require(15179) /* metro dependency 15179: GridSquareIcon */).GridSquareIcon)
|
|
: ((ListViewIcon) => <ListViewIcon />)((require(8941) /* metro dependency 8941: ListViewIcon */).ListViewIcon)
|
|
);
|
|
tableRowProps.onPress = onPress_115898;
|
|
value = (
|
|
<TableRowGroup {...tableRowGroupProps} key="default-forum-layout">
|
|
<TableRow {...tableRowProps} key="forumDefaultLayout" />
|
|
</TableRowGroup>
|
|
);
|
|
r0 = value;
|
|
} else {
|
|
r0 = null;
|
|
}
|
|
return r0;
|
|
function value_115897OnPress() { // fn#115898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:22571, owner: value_115897.onPress, offset: 0x0247373c, size: 33 bytes, params: 1, frame: 11
|
|
const binding = env0_0;
|
|
const pushScreen = binding.pushScreen;
|
|
const DEFAULT_FORUM_LAYOUT = ChannelSettingsSections.DEFAULT_FORUM_LAYOUT;
|
|
return Reflect.apply(pushScreen, binding, [DEFAULT_FORUM_LAYOUT]);
|
|
}
|
|
|
|
}
|
|
|
|
function value_115899() { // fn#115899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:22713, offset: 0x0247375d, size: 266 bytes, params: 1, frame: 24
|
|
var environment;
|
|
var push;
|
|
var TableRow;
|
|
var object2;
|
|
var intl;
|
|
const props = this.props;
|
|
const canManageWebhooks = props.canManageWebhooks;
|
|
let r3 = canManageWebhooks !== undefined && canManageWebhooks;
|
|
const channel = props.channel;
|
|
value = environment.__proto__;
|
|
const canUnlinkLobbyChannel2 = (LobbyUtilsModule).canUnlinkLobbyChannel(channel);
|
|
const items2 = [];
|
|
r3 = !r3 ? canUnlinkLobbyChannel2 : r3;
|
|
if (r3) {
|
|
push = items2.push;
|
|
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
|
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
Reflect.apply(push, items2,
|
|
[<TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.CIsNZw)} arrow icon={((PuzzlePieceIcon) => <PuzzlePieceIcon />)((require(13467) /* metro dependency 13467: PuzzlePieceIcon */).PuzzlePieceIcon)} onPress={onPress_115900} key="rowIntegrations" />]);
|
|
}
|
|
return this.renderSettingsSection(items2);
|
|
function value_115899OnPress() { // fn#115900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:22975, owner: value_115899.onPress, offset: 0x02473867, size: 54 bytes, params: 1, frame: 15
|
|
const binding = env0_0;
|
|
const pushScreen = binding.pushScreen;
|
|
const INTEGRATIONS = ChannelSettingsSections.INTEGRATIONS;
|
|
return Reflect.apply(pushScreen, binding, [INTEGRATIONS, {canManageWebhooks: env0_1, canUnlinkLobby: env0_2}]);
|
|
}
|
|
|
|
}
|
|
|
|
function value_115901() { // fn#115901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:23146, offset: 0x0247389d, size: 1141 bytes, params: 1, frame: 31
|
|
var r5;
|
|
const TableRow = (TableRowNativeModule).TableRow;
|
|
var object;
|
|
const intl = (IndexNativeModule).intl;
|
|
var string;
|
|
const t = (IndexNativeModule).t;
|
|
var object8;
|
|
var object9;
|
|
var object10;
|
|
var object11;
|
|
const props = this.props;
|
|
const env0_0 = props.channel;
|
|
const canManageThread = props.canManageThread;
|
|
const isThreadModerator = props.isThreadModerator;
|
|
const isLockedThread = props.isLockedThread;
|
|
const isArchivedThread = props.isArchivedThread;
|
|
const canUnarchiveThread = props.canUnarchiveThread;
|
|
const isForumPost = props.isForumPost;
|
|
const hasJoinedThread = props.hasJoinedThread;
|
|
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
|
|
const value2 = null;
|
|
if (hasJoinedThread) {
|
|
r5 = value2;
|
|
} else {
|
|
var tableRowProps = {icon: ((GroupPlusIcon) => <GroupPlusIcon />)((require(10859) /* metro dependency 10859: GroupPlusIcon */).GroupPlusIcon)};
|
|
string = intl.string;
|
|
tableRowProps.label = isForumPost ? Reflect.apply(string, intl, [t.ihLPiO]) : Reflect.apply(string, intl,
|
|
[t['10kukS']]);
|
|
tableRowProps.onPress = onPress_115902;
|
|
r5 = <TableRow {...tableRowProps} />;
|
|
}
|
|
const items2 = [r5];
|
|
if (isArchivedThread) {
|
|
if (canUnarchiveThread) {
|
|
var tableRowProps = {icon: ((ClockIcon) => <ClockIcon />)((require(4076) /* metro dependency 4076: ClockIcon */).ClockIcon)};
|
|
string = intl.string;
|
|
tableRowProps.label = isForumPost ? Reflect.apply(string, intl, [t.cnRubV]) : Reflect.apply(string, intl,
|
|
[t.S9E4G7]);
|
|
tableRowProps.onPress = onPress_115903;
|
|
r5 = <TableRow {...tableRowProps} />;
|
|
} else {
|
|
r5 = value2;
|
|
}
|
|
} else {
|
|
r5 = value2;
|
|
}
|
|
items2[1] = r5;
|
|
if (isArchivedThread) {
|
|
r5 = value2;
|
|
} else if (canManageThread) {
|
|
var tableRowProps = {icon: ((XLargeIcon) => <XLargeIcon />)((require(4066) /* metro dependency 4066: XLargeIcon */).XLargeIcon)};
|
|
string = intl.string;
|
|
tableRowProps.label = isForumPost ? Reflect.apply(string, intl, [t.BTs4Kb]) : Reflect.apply(string, intl,
|
|
[t.wiIevd]);
|
|
tableRowProps.onPress = onPress_115904;
|
|
r5 = <TableRow {...tableRowProps} />;
|
|
} else {
|
|
r5 = value2;
|
|
}
|
|
items2[2] = r5;
|
|
if (isThreadModerator) {
|
|
if (isLockedThread) {
|
|
var tableRowProps = {icon: ((LockIcon) => <LockIcon />)((require(6705) /* metro dependency 6705: LockIcon */).LockIcon)};
|
|
string = intl.string;
|
|
tableRowProps.label = isForumPost ? Reflect.apply(string, intl, [t['/OKSxp']]) : Reflect.apply(string, intl,
|
|
[t['jeyb/W']]);
|
|
tableRowProps.onPress = onPress_115905;
|
|
r5 = <TableRow {...tableRowProps} />;
|
|
} else {
|
|
r5 = value2;
|
|
}
|
|
} else {
|
|
r5 = value2;
|
|
}
|
|
items2[3] = r5;
|
|
if (isThreadModerator) {
|
|
if (isLockedThread) {
|
|
r5 = value2;
|
|
} else {
|
|
var tableRowProps = {icon: ((LockIcon) => <LockIcon />)((require(6705) /* metro dependency 6705: LockIcon */).LockIcon)};
|
|
string = intl.string;
|
|
tableRowProps.label = isForumPost ? Reflect.apply(string, intl, [t['Ur/0Na']]) : Reflect.apply(string, intl,
|
|
[t.HoCqm8]);
|
|
tableRowProps.onPress = onPress_115906;
|
|
r5 = <TableRow {...tableRowProps} />;
|
|
}
|
|
} else {
|
|
r5 = value2;
|
|
}
|
|
items2[4] = r5;
|
|
const object2 = {};
|
|
const LinkIcon = (LinkIconModule).LinkIcon;
|
|
object2.icon = <LinkIcon />;
|
|
string = intl.string;
|
|
const WqhZss = (IndexNativeModule).t.WqhZss;
|
|
object2.label = Reflect.apply(string, intl, [WqhZss]);
|
|
object2.onPress = onPress_115907;
|
|
items2[5] = <TableRow {...object2} />;
|
|
return (
|
|
<TableRowGroup hasIcons>
|
|
{items2}
|
|
</TableRowGroup>
|
|
);
|
|
function value_115901OnPress() { // fn#115902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:23546, owner: value_115901.onPress, offset: 0x02473d12, size: 52 bytes, params: 1, frame: 13
|
|
let value = environment.__proto__.__proto__;
|
|
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
|
return value.joinThread(channel, 'Context Menu');
|
|
}
|
|
|
|
function value_115901OnPress_115903() { // fn#115903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:23744, owner: value_115901.onPress, offset: 0x02473d46, size: 48 bytes, params: 1, frame: 13
|
|
let value = environment.__proto__.__proto__;
|
|
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
|
return value.unarchiveThread(channel, false);
|
|
}
|
|
|
|
function value_115901OnPress_115904() { // fn#115904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:23942, owner: value_115901.onPress, offset: 0x02473d76, size: 48 bytes, params: 1, frame: 13
|
|
let value = environment.__proto__.__proto__;
|
|
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
|
return value.archiveThread(channel, false);
|
|
}
|
|
|
|
function value_115901OnPress_115905() { // fn#115905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:24141, owner: value_115901.onPress, offset: 0x02473da6, size: 45 bytes, params: 1, frame: 11
|
|
let value = environment.__proto__.__proto__;
|
|
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
|
return value.unlockThread(channel);
|
|
}
|
|
|
|
function value_115901OnPress_115906() { // fn#115906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:24334, owner: value_115901.onPress, offset: 0x02473dd3, size: 45 bytes, params: 1, frame: 11
|
|
let value = environment.__proto__.__proto__;
|
|
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
|
return value.lockThread(channel);
|
|
}
|
|
|
|
function value_115901OnPress_115907() { // fn#115907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:24474, owner: value_115901.onPress, offset: 0x02473e00, size: 56 bytes, params: 1, frame: 13
|
|
let value = environment.__proto__.__proto__;
|
|
value = require(12148) /* metro dependency 12148: ChannelActionSheetUtils */;
|
|
const copyGuildChannelOrThreadLink = value.copyGuildChannelOrThreadLink;
|
|
const channelBinding = channel;
|
|
return Reflect.apply(copyGuildChannelOrThreadLink, value, [channelBinding.guild_id, channelBinding.id]);
|
|
}
|
|
|
|
}
|
|
|
|
function value_115908() { // fn#115908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:24572, offset: 0x02473e38, size: 651 bytes, params: 1, frame: 28
|
|
var environment;
|
|
var r10;
|
|
var r6;
|
|
var r0;
|
|
var type;
|
|
var value2;
|
|
var isThread2;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var TableRowGroup;
|
|
const TableRow = (TableRowNativeModule).TableRow;
|
|
var object;
|
|
var items2;
|
|
const {channel, canManageChannels, isThreadModerator, isForumPost, hasJoinedThread} = this.props;
|
|
const r1 = channel.isThread() ? isThreadModerator : canManageChannels;
|
|
let value = null;
|
|
if (r1) {
|
|
type = channel.type;
|
|
value2 = environment.__proto__;
|
|
if (type === ChannelTypes.GUILD_CATEGORY) {
|
|
r10 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ifbXnL);
|
|
} else if (isForumPost) {
|
|
r10 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nEOg1N);
|
|
} else {
|
|
isThread2 = channel.isThread();
|
|
string = intl.string;
|
|
r10 = isThread2 ? Reflect.apply(string, intl, [t.H7vTe2]) : Reflect.apply(string, intl, [t['8D8Rsb']]);
|
|
}
|
|
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
|
if (hasJoinedThread) {
|
|
var tableRowProps = {variant: 'danger',
|
|
icon: ((UserMinusIcon) => <UserMinusIcon color="text-feedback-critical" />)((require(4054) /* metro dependency 4054: UserMinusIcon */).UserMinusIcon)};
|
|
string = intl.string;
|
|
tableRowProps.label = isForumPost ? Reflect.apply(string, intl, [t['2LsZdT']]) : Reflect.apply(string, intl,
|
|
[t['fa/84m']]);
|
|
tableRowProps.onPress = onPress_115909;
|
|
r6 = <TableRow {...tableRowProps} />;
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
items2 = [r6];
|
|
items2[1] = (
|
|
<TableRow
|
|
variant="danger"
|
|
icon={((TrashIcon) => <TrashIcon color="text-feedback-critical" />)((require(4071) /* metro dependency 4071: TrashIcon */).TrashIcon)}
|
|
label={r10}
|
|
onPress={this.handleDeleteChannel}
|
|
/>
|
|
);
|
|
value = (
|
|
<TableRowGroup hasIcons>
|
|
{items2}
|
|
</TableRowGroup>
|
|
);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
function value_115908OnPress() { // fn#115909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:25183, owner: value_115908.onPress, offset: 0x024740c3, size: 52 bytes, params: 1, frame: 13
|
|
let value = environment.__proto__.__proto__;
|
|
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
|
return value.leaveThread(channel, 'Context Menu');
|
|
}
|
|
|
|
}
|
|
|
|
function value_115910() { // fn#115910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:25416, offset: 0x024740f7, size: 1148 bytes, params: 1, frame: 53
|
|
var r15;
|
|
var r30;
|
|
var r29;
|
|
var r23;
|
|
var r6;
|
|
var availableTags;
|
|
var value7;
|
|
var error;
|
|
var Stack;
|
|
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
|
|
var object;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var jsxRuntimeEnv1_50Binding;
|
|
var items3;
|
|
var IconButton;
|
|
var object3;
|
|
var items2;
|
|
const Text = (TextModule).Text;
|
|
var TableSwitchRow;
|
|
const binding = env1_52;
|
|
const context = this.context;
|
|
const value2 = undefined;
|
|
const value3 = binding(context);
|
|
const {channel, canManageChannels} = this.props;
|
|
const isForumLikeChannel2 = channel.isForumLikeChannel();
|
|
const value4 = null;
|
|
if (isForumLikeChannel2) {
|
|
availableTags = channel.availableTags;
|
|
r15 = value4 == availableTags ? value2 : availableTags.every(function(a0) {
|
|
return a0.moderated;
|
|
});
|
|
r30 = canManageChannels && channel.availableTags.length < MAX_FORUM_TAGS;
|
|
availableTags = channel.availableTags;
|
|
value7 = availableTags.length > 0;
|
|
error = this.getError('available_tags');
|
|
Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
|
var stackProps = {spacing: (importDefault(697) /* metro dependency 697: native */).space.PX_12};
|
|
var tableRowGroupProps = {title: intl.string(t['P/y+sj']),
|
|
description: value7 ? value2 : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3v8kZH']),
|
|
|
|
hasIcons: false};
|
|
var viewBindingProps = {style: value3.tagsWrapper};
|
|
if (value7) {
|
|
jsxRuntimeEnv1_50Binding = jsxRuntimeEnv1_50;
|
|
items3 = [channel.availableTags.map(_fun115912)];
|
|
if (r30) {
|
|
var viewBinding2Props = {style: value3.addTagIconButtonWrapper};
|
|
IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
|
|
r29 = (
|
|
<View {...viewBinding2Props}>
|
|
<IconButton
|
|
icon={((PlusSmallIcon) => <PlusSmallIcon size="sm" color={(importDefault(697) /* metro dependency 697: native */).colors.WHITE} />)((require(10083) /* metro dependency 10083: PlusSmallIcon */).PlusSmallIcon)}
|
|
size="sm"
|
|
onPress={onPress_115913}
|
|
accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/jubeD'])}
|
|
/>
|
|
</View>
|
|
);
|
|
} else {
|
|
r29 = value4;
|
|
}
|
|
items3[1] = r29;
|
|
r23 = (
|
|
<>
|
|
{items3}
|
|
</>
|
|
);
|
|
} else {
|
|
r23 = value4;
|
|
}
|
|
items2 = [
|
|
<TableRowGroup {...tableRowGroupProps}>
|
|
<View {...viewBindingProps}>
|
|
{r23}
|
|
</View>
|
|
</TableRowGroup>,
|
|
];
|
|
items2[1] = (
|
|
value7
|
|
? value4
|
|
: ((PressableOpacity) => <PressableOpacity disabled={!canManageChannels} onPress={onPress_115914} style={value3.createTagButton} accessibilityRole="button"><Text variant="text-sm/semibold" color="text-brand" style={value3.createTagButtonText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.F4is7L)}</Text></PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)
|
|
);
|
|
r6 = value4 != error && error.length > 0;
|
|
r6 = r6 && <Text variant="text-sm/normal" color="text-feedback-critical">{error}</Text>;
|
|
items2[2] = r6;
|
|
TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
|
|
items2[3] = (
|
|
<TableRowGroup hasIcons={false}>
|
|
<TableSwitchRow
|
|
disabled={canManageChannels ? r15 : !canManageChannels}
|
|
label={intl.string(t.yX24uI)}
|
|
value={channel.hasFlag(ChannelFlags.REQUIRE_TAG)}
|
|
onValueChange={this.handleToggleRequireTag}
|
|
/>
|
|
</TableRowGroup>
|
|
);
|
|
return (
|
|
<Stack {...stackProps}>
|
|
{items2}
|
|
</Stack>
|
|
);
|
|
}
|
|
return value4;
|
|
function _fun115912(a0) { // fn#115912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:25995, offset: 0x0247457e, size: 80 bytes, params: 2, frame: 17
|
|
const value = environment.__proto__.__proto__;
|
|
return ((Component) => <Component tag={a0} onPress={env0_0.handlePressTag} disabled={!canManageChannels} key={a0.id} />)(AvailableForumTag);
|
|
}
|
|
|
|
function value_115910OnPress() { // fn#115913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:26229, owner: value_115910.onPress, offset: 0x024745ce, size: 19 bytes, params: 1, frame: 9
|
|
return env0_0.handlePressTag();
|
|
}
|
|
|
|
function value_115910OnPress_115914() { // fn#115914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:26395, owner: value_115910.onPress, offset: 0x024745ce, size: 19 bytes, params: 1, frame: 9
|
|
return env0_0.handlePressTag();
|
|
}
|
|
|
|
}
|
|
|
|
function value_115915() { // fn#115915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:26997, offset: 0x024745e1, size: 273 bytes, params: 1, frame: 26
|
|
var r0;
|
|
var TableRowGroup;
|
|
var TableSwitchRow;
|
|
var object;
|
|
const intl = (IndexNativeModule).intl;
|
|
const t = (IndexNativeModule).t;
|
|
const {channel, canManageChannels} = this.props;
|
|
let value = channel.isMediaChannel();
|
|
if (value) {
|
|
value = environment.__proto__;
|
|
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
|
TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
|
|
value = (
|
|
<TableRowGroup hasIcons={false}>
|
|
<TableSwitchRow
|
|
disabled={!canManageChannels}
|
|
label={intl.string(t.u8LZOt)}
|
|
subLabel={intl.string(t.J4wCc7)}
|
|
value={!channel.hasFlag(ChannelFlags.HIDE_MEDIA_DOWNLOAD_OPTIONS)}
|
|
onValueChange={this.handleToggleShowMediaDownloadOptions}
|
|
/>
|
|
</TableRowGroup>
|
|
);
|
|
r0 = value;
|
|
} else {
|
|
r0 = null;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function value_115916() { // fn#115916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:27411, offset: 0x024746f2, size: 410 bytes, params: 1, frame: 27
|
|
var environment;
|
|
var r12;
|
|
var type;
|
|
var value;
|
|
var moduleValue;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var value3;
|
|
var TableRowGroup;
|
|
var TableRow;
|
|
var object;
|
|
const {hasCategories, category, channel, canManageParent} = this.props;
|
|
if (hasCategories) {
|
|
type = channel.type;
|
|
value = environment.__proto__;
|
|
if (type === ChannelTypes.GUILD_CATEGORY) {
|
|
return null;
|
|
}
|
|
if (category == null) {
|
|
r12 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.GSfOoo);
|
|
} else {
|
|
moduleValue = require(4805) /* metro dependency 4805: useChannelName */;
|
|
r12 = moduleValue.computeChannelName(category, UserStore, RelationshipStore);
|
|
}
|
|
value3 = undefined;
|
|
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
|
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
|
return (
|
|
<TableRowGroup hasIcons>
|
|
<TableRow
|
|
icon={((FolderPlusIcon) => <FolderPlusIcon />)((require(15180) /* metro dependency 15180: FolderPlusIcon */).FolderPlusIcon)}
|
|
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vHCZwr)}
|
|
trailing={((TrailingText) => <TrailingText text={r12} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow.TrailingText)}
|
|
arrow={canManageParent}
|
|
onPress={canManageParent ? _fun115917 : value3}
|
|
/>
|
|
</TableRowGroup>
|
|
);
|
|
}
|
|
return null;
|
|
function _fun115917() { // fn#115917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:27866, offset: 0x0247488c, size: 33 bytes, params: 1, frame: 11
|
|
const binding = env0_0;
|
|
const pushScreen = binding.pushScreen;
|
|
const CHANGE_CATEGORY = ChannelSettingsSections.CHANGE_CATEGORY;
|
|
return Reflect.apply(pushScreen, binding, [CHANGE_CATEGORY]);
|
|
}
|
|
|
|
}
|
|
|
|
function value_115918() { // fn#115918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:27952, offset: 0x024748ad, size: 266 bytes, params: 1, frame: 21
|
|
const value = environment.__proto__;
|
|
const value2 = env1_52(this.context);
|
|
const Form = (NativeModule2).Form;
|
|
const Stack = (StackNativeModule).Stack;
|
|
const PX_24 = (Native).space.PX_24;
|
|
const stackPadding = value2.stackPadding;
|
|
const items2 = [this.renderChannelInfo()];
|
|
items2[1] = this.renderCommonSettingsSection();
|
|
items2[2] = this.renderThreadManagementActions();
|
|
items2[3] = this.renderThreadSpoiler();
|
|
items2[4] = this.renderSlowmode();
|
|
items2[5] = this.renderAutoArchiveDuration();
|
|
items2[6] = this.renderInvitable();
|
|
items2[7] = this.renderDeleteButton();
|
|
return (
|
|
<Form>
|
|
<Stack spacing={PX_24} style={stackPadding}>
|
|
{items2}
|
|
</Stack>
|
|
</Form>
|
|
);
|
|
}
|
|
|
|
function value_115919() { // fn#115919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:28369, offset: 0x024749b7, size: 440 bytes, params: 1, frame: 21
|
|
const value = environment.__proto__;
|
|
const value2 = env1_52(this.context);
|
|
const Form = (NativeModule2).Form;
|
|
const Stack = (StackNativeModule).Stack;
|
|
const PX_24 = (Native).space.PX_24;
|
|
const stackPadding = value2.stackPadding;
|
|
const items2 = [this.renderChannelInfo()];
|
|
items2[1] = this.renderForumTags();
|
|
items2[2] = this.renderCategory();
|
|
items2[3] = this.renderPermissions();
|
|
items2[4] = this.renderCommonSettingsSection();
|
|
items2[5] = this.renderDefaultForumLayout();
|
|
items2[6] = this.renderDefaultSortOrder();
|
|
items2[7] = this.renderDefaultTagSetting();
|
|
items2[8] = this.renderAnnouncement();
|
|
items2[9] = this.renderNsfwConfig();
|
|
items2[10] = this.renderSlowmode();
|
|
items2[11] = this.renderDefaultAutoArchiveDuration();
|
|
items2[12] = this.renderBitrateSettings();
|
|
items2[13] = this.renderVideoQualityModeSettings();
|
|
items2[14] = this.renderUserLimitSettings();
|
|
items2[15] = this.renderRegionOverride();
|
|
items2[16] = this.renderUncommonSettingsSection();
|
|
items2[17] = this.renderShowMediaDownloadOptions();
|
|
items2[18] = this.renderDeleteButton();
|
|
return (
|
|
<Form>
|
|
<Stack spacing={PX_24} style={stackPadding}>
|
|
{items2}
|
|
</Stack>
|
|
</Form>
|
|
);
|
|
}
|
|
|
|
function value_115920() { // fn#115920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:29105, offset: 0x02474b6f, size: 94 bytes, params: 1, frame: 15
|
|
return (
|
|
<View style={env1_52(this.context).screenContainer}>
|
|
{this.props.isThread ? this.renderThreadSettings() : this.renderChannelSettings()}
|
|
</View>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
function ConnectedChannelSettingsOverview({channelId, autoFocusElement}) { // fn#115921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:29436, offset: 0x02474bcd, size: 704 bytes, params: 2, frame: 28
|
|
var r14;
|
|
var r0;
|
|
let value = undefined;
|
|
const value3 = (UseNavigationNativeModule).useNavigation();
|
|
let useStateFromStores = FluxModule.useStateFromStores;
|
|
const channelStoreBinding = ChannelStore;
|
|
const channel = Reflect.apply(useStateFromStores, FluxModule, [[channelStoreBinding], function() {
|
|
return ChannelStore.getChannel(channelId);
|
|
}]);
|
|
useStateFromStores = FluxModule.useStateFromStores;
|
|
const channelSettingsStoreBinding = ChannelSettingsStore;
|
|
const channel2 = Reflect.apply(useStateFromStores, FluxModule, [[channelSettingsStoreBinding], function() {
|
|
return ChannelSettingsStore.getChannel();
|
|
}]);
|
|
const value4 = (ThreadHooksModule).useIsThreadModerator(channel);
|
|
const {isMutedThread, hasJoinedThread} = FluxModule.useStateFromStoresObject([JoinedThreadsStore], _fun115924);
|
|
const value6 = (ThreadHooksModule).useCanManageThread(channel);
|
|
const value8 = FluxModule.useStateFromStoresObject([channelSettingsStoreBinding, GuildStore, channelStoreBinding,
|
|
UserStore, RegionStore, GuildChannelStore, PermissionStore], _fun115925, [channel,
|
|
(AgeGateUtilsModule).useShouldHideChannelContent(channel)]);
|
|
const defaultImport = SpoilerChannelExperiment;
|
|
const useExperiment = defaultImport.useExperiment;
|
|
const enabled = Reflect.apply(useExperiment, defaultImport, [{guildId: channel == null ? value : channel.guild_id,
|
|
location: 'ChannelSettingsOverview_native'}, {autoTrackExposure: true}]).enabled;
|
|
let binding = env0_9;
|
|
const value10 = binding.useRef(null);
|
|
binding.useEffect(_fun115926, [autoFocusElement, value3]);
|
|
if (channel2 != null) {
|
|
binding = env0_53;
|
|
var bindingProps = {...value8};
|
|
bindingProps['channel'] = channel2;
|
|
bindingProps['navigation'] = value3;
|
|
bindingProps['isThreadModerator'] = value4;
|
|
r14 = channel == null ? value : channel.isLockedThread();
|
|
bindingProps['isLockedThread'] = r14;
|
|
r14 = channel == null ? value : channel.isArchivedThread();
|
|
bindingProps['isArchivedThread'] = r14;
|
|
bindingProps['canManageThread'] = value6;
|
|
bindingProps['canUnarchiveThread'] = value8.canUnarchiveThread;
|
|
bindingProps['isMutedThread'] = isMutedThread;
|
|
bindingProps['hasJoinedThread'] = hasJoinedThread;
|
|
bindingProps['isForumPost'] = channel == null ? value : channel.isForumPost();
|
|
bindingProps['channelNameRef'] = value10;
|
|
bindingProps['showSpoilerThreadSetting'] = enabled;
|
|
value = ((Component) => <Component {...bindingProps} />)(binding);
|
|
r0 = value;
|
|
} else {
|
|
r0 = null;
|
|
}
|
|
return r0;
|
|
function _fun115924() { // fn#115924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:29732, offset: 0x02474eb9, size: 99 bytes, params: 1, frame: 16
|
|
const channelBinding = channel;
|
|
const value2 = undefined;
|
|
return {isMutedThread: channelBinding != null ? JoinedThreadsStore.isMuted(channel.id) : value2,
|
|
hasJoinedThread: channel != null ? JoinedThreadsStore.hasJoined(channel.id) : value2};
|
|
}
|
|
|
|
function _fun115925() { // fn#115925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:30002, offset: 0x02474f1c, size: 546 bytes, params: 1, frame: 23
|
|
var r6;
|
|
var object;
|
|
const value = environment.__proto__;
|
|
const {submitting, errors} = ChannelSettingsStore.getProps();
|
|
let channelBinding = channel;
|
|
if (channelBinding == null) {
|
|
object = {isThread: false, submitting: submitting, errors: errors};
|
|
} else {
|
|
var guildStoreBinding = GuildStore;
|
|
var getGuild = guildStoreBinding.getGuild;
|
|
channelBinding = channel;
|
|
var getGuildId = channelBinding.getGuildId;
|
|
var value4 = Reflect.apply(getGuild, guildStoreBinding, [Reflect.apply(getGuildId, channelBinding, [])]);
|
|
var channel2 = ChannelStore.getChannel(channelBinding.parent_id);
|
|
var currentUser = UserStore.getCurrentUser();
|
|
var has = THREAD_CHANNEL_TYPES.has;
|
|
var type = channelBinding.type;
|
|
var value7 = Reflect.apply(has, THREAD_CHANNEL_TYPES, [type]);
|
|
var regionStoreBinding = RegionStore;
|
|
var getRegions = regionStoreBinding.getRegions;
|
|
getGuildId = channelBinding.getGuildId;
|
|
var value8 = Reflect.apply(getRegions, regionStoreBinding, [Reflect.apply(getGuildId, channelBinding, [])]);
|
|
object = {isThread: value7, guild: value4, category: channel2};
|
|
var guildChannelStoreBinding = GuildChannelStore;
|
|
object.hasCategories = guildChannelStoreBinding.hasCategories(channelBinding.guild_id);
|
|
object.pinDisabled = ClassCallCheck;
|
|
var permissionStoreBinding = PermissionStore;
|
|
var can = permissionStoreBinding.can;
|
|
var MANAGE_CHANNELS = Permissions.MANAGE_CHANNELS;
|
|
object.canManageChannels = Reflect.apply(can, permissionStoreBinding, [MANAGE_CHANNELS, channelBinding]);
|
|
r6 = currentUser != null && channel.ownerId === currentUser.id;
|
|
object.isChannelOwner = r6;
|
|
r6 = channel2 != null ? PermissionStore.can(Permissions.MANAGE_CHANNELS,
|
|
channel2) : PermissionStore.can(Permissions.MANAGE_CHANNELS, value4);
|
|
object.canManageParent = r6;
|
|
permissionStoreBinding = PermissionStore;
|
|
can = permissionStoreBinding.can;
|
|
var MANAGE_ROLES = Permissions.MANAGE_ROLES;
|
|
channelBinding = channel;
|
|
object.canManageRoles = Reflect.apply(can, permissionStoreBinding, [MANAGE_ROLES, channelBinding]);
|
|
can = permissionStoreBinding.can;
|
|
var SEND_MESSAGES = Permissions.SEND_MESSAGES;
|
|
object.canSendMessages = Reflect.apply(can, permissionStoreBinding, [SEND_MESSAGES, channelBinding]);
|
|
var isGuildTextChannelTypeBinding = isGuildTextChannelType;
|
|
type = channelBinding.type;
|
|
object.canManageWebhooks = isGuildTextChannelTypeBinding(type) && PermissionStore.can(Permissions.MANAGE_WEBHOOKS,
|
|
|
|
channel);
|
|
var moduleValue = require(6860) /* metro dependency 6860: ThreadHooks */;
|
|
object.canUnarchiveThread = moduleValue.canUnarchiveThread(channel);
|
|
object.regions = value8;
|
|
object.submitting = submitting;
|
|
object.errors = errors;
|
|
object.isNSFWDisabled = isGuildNSFW(value4) || channel.linkedLobby != null;
|
|
}
|
|
return object;
|
|
}
|
|
|
|
function _fun115926() { // fn#115926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:30932, offset: 0x0247513e, size: 34 bytes, params: 1, frame: 13
|
|
return env0_2.addListener('transitionEnd', _fun115927);
|
|
function _fun115927({data}) { // fn#115927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15369:30967, offset: 0x02475160, size: 77 bytes, params: 2, frame: 10
|
|
if (data.closing) {
|
|
return undefined;
|
|
}
|
|
const value = environment.__proto__;
|
|
const autoFocusElementBinding = autoFocusElement;
|
|
const CHANNEL_NAME = ChannelSettingsAutoFocusElement.CHANNEL_NAME;
|
|
if (autoFocusElementBinding !== CHANNEL_NAME) {
|
|
return undefined;
|
|
}
|
|
return env1_5.current?.focus();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun115831, 15172, [5, 6, 7, 15, 17, 18, 31, 27, 3786, 1383, 1422, 8149, 1379, 1935, 1867, 3784, 4605,
|
|
15173, 3793, 1878, 15174, 661, 1386, 6900, 1243, 482, 33, 4501, 697, 566, 11245, 22, 4863, 8148, 3857, 8096,
|
|
1244, 7877, 4800, 3797, 1391, 4002, 15175, 9090, 4496, 4573, 6766, 9112, 4805, 4596, 4008, 4131, 15176, 5282,
|
|
9603, 15177, 7981, 7681, 477, 6231, 6808, 5072, 6239, 12809, 15178, 7878, 7988, 7987, 1388, 1390, 1948, 6238,
|
|
6860, 9097, 9216, 11243, 4056, 1389, 15179, 8941, 12133, 13467, 10859, 7153, 4076, 4066, 6705, 12148, 4054,
|
|
4071, 4572, 11162, 8341, 10083, 5278, 15180, 7972, 3868, 1484, 15181,
|
|
2]) /* metro module 15172, dependencies: [5, 6, 7, 15, 17, 18, 31, 27, 3786, 1383, 1422, 8149, 1379, 1935, 1867, 3784, 4605, 15173, 3793, 1878, 15174, 661, 1386, 6900, 1243, 482, 33, 4501, 697, 566, 11245, 22, 4863, 8148, 3857, 8096, 1244, 7877, 4800, 3797, 1391, 4002, 15175, 9090, 4496, 4573, 6766, 9112, 4805, 4596, 4008, 4131, 15176, 5282, 9603, 15177, 7981, 7681, 477, 6231, 6808, 5072, 6239, 12809, 15178, 7878, 7988, 7987, 1388, 1390, 1948, 6238, 6860, 9097, 9216, 11243, 4056, 1389, 15179, 8941, 12133, 13467, 10859, 7153, 4076, 4066, 6705, 12148, 4054, 4071, 4572, 11162, 8341, 10083, 5278, 15180, 7972, 3868, 1484, 15181, 2] */;
|