3255 lines
163 KiB
TypeScript
3255 lines
163 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] */
|
|
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
|
|
var object5;
|
|
const env0_0 = require;
|
|
const closure = PinImage;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_6 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_7 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_8 = importDefault(18) /* metro dependency 18 */;
|
|
let value = importAll(31) /* metro dependency 31 */;
|
|
const env0_10 = (require(27) /* metro dependency 27 */).View;
|
|
const joinedThreadsStore = importDefault(3786) /* metro dependency 3786: JoinedThreadsStore */;
|
|
const channelRecordModule = require(1383) /* metro dependency 1383: ChannelRecord */;
|
|
const env0_12 = channelRecordModule.EDITABLE_VOICE_SETTINGS_TYPES;
|
|
const env0_13 = channelRecordModule.isGuildTextChannelType;
|
|
const env0_14 = channelRecordModule.THREADED_CHANNEL_TYPES;
|
|
const env0_15 = channelRecordModule.THREAD_CHANNEL_TYPES;
|
|
const env0_16 = (require(1422) /* metro dependency 1422: GuildRecord */).isGuildNSFW;
|
|
const channelSettingsStore = importDefault(8149) /* metro dependency 8149: ChannelSettingsStore */;
|
|
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
|
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
|
|
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
|
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
|
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
|
|
const regionStore = importDefault(15173) /* metro dependency 15173: RegionStore */;
|
|
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
|
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
|
const env0_26 = (require(15174) /* metro dependency 15174: ChannelSettingsConstants */).ChannelSettingsAutoFocusElement;
|
|
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
|
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 channelConstantsModule = require(1386) /* metro dependency 1386: ChannelConstants */;
|
|
const env0_43 = channelConstantsModule.ChannelFlags;
|
|
const env0_44 = channelConstantsModule.MAX_CHANNEL_TOPIC_LENGTH;
|
|
const env0_45 = channelConstantsModule.MAX_FORUM_CHANNEL_TOPIC_LENGTH;
|
|
const env0_46 = (require(6900) /* metro dependency 6900: ForumConstants */).MAX_FORUM_TAGS;
|
|
const env0_47 = (require(1243) /* metro dependency 1243: ThreadConstants */).DEFAULT_AUTO_ARCHIVE_DURATION;
|
|
const Fonts = (require(482) /* metro dependency 482: Constants */).Fonts;
|
|
const value5 = require(33) /* metro dependency 33 */;
|
|
const env0_48 = value5.jsx;
|
|
const env0_49 = value5.jsxs;
|
|
const env0_50 = value5.Fragment;
|
|
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = createStylesModule.createStyles;
|
|
object5 = {};
|
|
const object6 = {'position': 'absolute', 'top': 2, 'right': -4, 'width': 12, 'height': 12, 'borderRadius': null,
|
|
'justifyContent': 'center', 'alignItems': 'center'};
|
|
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
|
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
|
object6.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
|
object5.outer = object6;
|
|
const object7 = {'backgroundColor': null, 'width': 8, 'height': 8};
|
|
const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
|
|
object7.backgroundColor = RED_400;
|
|
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
|
object5.badge = object7;
|
|
const env0_51 = Reflect.apply(createStyles, createStylesModule, [object5]);
|
|
const value7 = createStylesModule;
|
|
const createLegacyClassComponentStyles = value7.createLegacyClassComponentStyles;
|
|
object5 = {};
|
|
const object8 = {flex: 1};
|
|
const MOBILE_ACTIONSHEET_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_BACKGROUND;
|
|
object8.backgroundColor = MOBILE_ACTIONSHEET_BACKGROUND;
|
|
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object8.paddingTop = PX_16;
|
|
object5.screenContainer = object8;
|
|
object5.slider = {marginHorizontal: 15};
|
|
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
|
|
object5.stackPadding = {paddingHorizontal: TABLE_ROW_PADDING};
|
|
object5.alertText = {marginTop: 16};
|
|
object5.tagsWrapper = {'display': 'flex', 'flexDirection': 'row', 'flexWrap': 'wrap'};
|
|
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
|
object5.addTagIconButtonWrapper = {justifyContent: 'center', margin: PX_4};
|
|
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
|
object5.createTagButton = {'backgroundColor': 'transparent', 'paddingHorizontal': 0, marginTop: PX_4};
|
|
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
|
object5.createTagButtonText = {fontFamily: PRIMARY_SEMIBOLD, fontSize: 14};
|
|
const env0_52 = Reflect.apply(createLegacyClassComponentStyles, value7, [object5]);
|
|
const PureComponent = value.PureComponent;
|
|
value = _fun115837(PureComponent);
|
|
const ThemeContext = (require(3868) /* metro dependency 3868: native */).ThemeContext;
|
|
value.contextType = ThemeContext;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/channel_settings/ChannelSettingsOverview.tsx');
|
|
exports.default = ConnectedChannelSettingsOverview;
|
|
exports.PinImage = closure;
|
|
}
|
|
|
|
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 fluxModule = require(566) /* metro dependency 566: flux */;
|
|
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 = (require(11245) /* metro dependency 11245: PinIcon */).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 closure = ChannelSettingsOverview;
|
|
env0_8(closure, a0);
|
|
return env0_5(closure, [{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 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 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
|
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
|
|
return ChannelStore.getChannel(channelId);
|
|
});
|
|
const channel2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelSettingsStore],
|
|
function() {
|
|
return ChannelSettingsStore.getChannel();
|
|
});
|
|
const value4 = (require(6860) /* metro dependency 6860: ThreadHooks */).useIsThreadModerator(channel);
|
|
const {isMutedThread,
|
|
hasJoinedThread} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([JoinedThreadsStore],
|
|
_fun115924);
|
|
const value6 = (require(6860) /* metro dependency 6860: ThreadHooks */).useCanManageThread(channel);
|
|
const value8 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ChannelSettingsStore,
|
|
GuildStore, ChannelStore, UserStore, RegionStore, GuildChannelStore, PermissionStore], _fun115925, [channel,
|
|
(require(5072) /* metro dependency 5072: AgeGateUtils */).useShouldHideChannelContent(channel)]);
|
|
const defaultImport = importDefault(15181) /* metro dependency 15181: 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 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 items = [a0];
|
|
const value3 = env1_7(ChannelSettingsOverview);
|
|
const value6 = env1_6(this, _isNativeReflectConstruct_115832() ? global.Reflect.construct(value3, items,
|
|
env1_7(this).constructor) : value3.apply(this, items));
|
|
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 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 = importDefault(4863) /* metro dependency 4863: 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 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
const HeaderSubmittingIndicator = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).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 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 channelSettingsUtilsModule = require(15177) /* metro dependency 15177: ChannelSettingsUtils */;
|
|
const getIsChannelNameSettingEditable = channelSettingsUtilsModule.getIsChannelNameSettingEditable;
|
|
let object2 = {canManageThread: canManageThread, canManageChannels: canManageChannels,
|
|
canSendMessages: canSendMessages, isForumPost: isForumPost, isThread: isThread, isChannelOwner: isChannelOwner};
|
|
const value5 = Reflect.apply(getIsChannelNameSettingEditable, channelSettingsUtilsModule, [object2]);
|
|
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 = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
|
|
const channelNameRef = this.props.channelNameRef;
|
|
const useChannelNameModule = require(4805) /* metro dependency 4805: useChannelName */;
|
|
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;
|
|
object2 = {label: r11, accessibilityLabel: r11};
|
|
defaultImport = importDefault(3797) /* metro dependency 3797: UnicodeEmojis */;
|
|
object2.value = defaultImport.translateSurrogatesToInlineEmoji(channel.topic);
|
|
object2.onChange = this.handleChangeTopic;
|
|
object2.isDisabled = !canManageChannels;
|
|
object2.autoCorrect = true;
|
|
object2.maxLength = channel.isForumLikeChannel() ? MAX_FORUM_CHANNEL_TOPIC_LENGTH : MAX_CHANNEL_TOPIC_LENGTH;
|
|
object2.errorMessage = this.getError('topic');
|
|
r5 = <TextArea {...object2} />;
|
|
} 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 object;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var TableSwitchRow;
|
|
var object2;
|
|
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 object;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).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 = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
|
var object2;
|
|
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
var piZgKF;
|
|
var items2;
|
|
var items3;
|
|
const Slider = (require(12809) /* metro dependency 12809: SliderNative */).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;
|
|
object2 = {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 {...object2} 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;
|
|
object2 = {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 {...object2} 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 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var AutoArchiveDurationOptions;
|
|
var object;
|
|
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 object;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var TableSwitchRow;
|
|
var object2;
|
|
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 object;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).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 object;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
|
var object2;
|
|
const ThreadSortOrder = (require(1388) /* metro dependency 1388: ThreadSortOrder */).ThreadSortOrder;
|
|
var items2;
|
|
var object3;
|
|
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 object;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
|
var object2;
|
|
const ThreadSearchTagSetting = (require(1390) /* metro dependency 1390: ThreadSearchTagSetting */).ThreadSearchTagSetting;
|
|
var items2;
|
|
var object3;
|
|
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 object2;
|
|
var jsxRuntimeEnv1_50Binding;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var format;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var tI7KNX;
|
|
var defaultImport;
|
|
var TableSwitchRow;
|
|
var object4;
|
|
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;
|
|
object2 = {};
|
|
jsxRuntimeEnv1_50Binding = jsxRuntimeEnv1_50;
|
|
format = intl.format;
|
|
tI7KNX = t.tI7KNX;
|
|
defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
|
object2.description = <>{[Reflect.apply(format, intl, [tI7KNX,
|
|
{documentationLink: defaultImport.getArticleURL(HelpdeskArticles.ANNOUNCEMENT_CHANNELS)}]), '\n\n',
|
|
intl.string(t['2Ab4Id'])]}</>;
|
|
object2.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 {...object2} 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 object;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var Card;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).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 object;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).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 object;
|
|
var isGuildStageVoice2;
|
|
var format;
|
|
var Card;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).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;
|
|
object = {};
|
|
isGuildStageVoice2 = channel.isGuildStageVoice();
|
|
format = intl.format;
|
|
object.description = isGuildStageVoice2 ? Reflect.apply(format, intl, [t.OqZI8D,
|
|
{}]) : Reflect.apply(format,
|
|
intl,
|
|
[t['8yb3JT'], {}]);
|
|
object.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 {...object} 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 object;
|
|
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_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 object;
|
|
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_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 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
|
var object;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var object2;
|
|
var object4;
|
|
const {channel, canManageChannels} = this.props;
|
|
const items2 = [];
|
|
if (isGuildTextChannelType(channel.type) || channel.isGuildStageVoice()) {
|
|
push = items2.push;
|
|
Reflect.apply(push, items2,
|
|
[<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)) {
|
|
push = items2.push;
|
|
Reflect.apply(push, items2,
|
|
[<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()) {
|
|
push = items2.push;
|
|
Reflect.apply(push, items2,
|
|
[<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_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 object;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var TableRow;
|
|
var object2;
|
|
var TrailingText;
|
|
var defaultForumLayout;
|
|
const ForumLayout = (require(1389) /* metro dependency 1389: ForumLayout */).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_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 object;
|
|
var intl;
|
|
const props = this.props;
|
|
const canManageWebhooks = props.canManageWebhooks;
|
|
let r3 = canManageWebhooks !== undefined && canManageWebhooks;
|
|
const channel = props.channel;
|
|
value = environment.__proto__;
|
|
const canUnlinkLobbyChannel2 = (require(12133) /* metro dependency 12133: LobbyUtils */).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_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 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
|
var object2;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var object3;
|
|
var object4;
|
|
var object5;
|
|
var object6;
|
|
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 = (require(6231) /* metro dependency 6231: TableRowGroupNative */).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 object = {};
|
|
const LinkIcon = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon;
|
|
object.icon = <LinkIcon />;
|
|
string = intl.string;
|
|
const WqhZss = (require(1244) /* metro dependency 1244: indexNative */).t.WqhZss;
|
|
object.label = Reflect.apply(string, intl, [WqhZss]);
|
|
object.onPress = onPress_115907;
|
|
items2[5] = <TableRow {...object} />;
|
|
return (
|
|
<TableRowGroup hasIcons>
|
|
{items2}
|
|
</TableRowGroup>
|
|
);
|
|
}
|
|
|
|
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 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
|
var object2;
|
|
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_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 = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
|
var object2;
|
|
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 object6;
|
|
var items2;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).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 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 object2;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).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 object2;
|
|
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 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 = (require(7972) /* metro dependency 7972: native */).Form;
|
|
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
|
const PX_24 = (importDefault(697) /* metro dependency 697: 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 = (require(7972) /* metro dependency 7972: native */).Form;
|
|
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
|
const PX_24 = (importDefault(697) /* metro dependency 697: 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 _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 object2;
|
|
const value = environment.__proto__;
|
|
const {submitting, errors} = ChannelSettingsStore.getProps();
|
|
let channelBinding = channel;
|
|
if (channelBinding == null) {
|
|
object2 = {isThread: false, submitting: submitting, errors: errors};
|
|
} else {
|
|
var getGuild = GuildStore.getGuild;
|
|
channelBinding = channel;
|
|
var getGuildId = channelBinding.getGuildId;
|
|
var value4 = Reflect.apply(getGuild, GuildStore, [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 getRegions = RegionStore.getRegions;
|
|
getGuildId = channelBinding.getGuildId;
|
|
var value8 = Reflect.apply(getRegions, RegionStore, [Reflect.apply(getGuildId, channelBinding, [])]);
|
|
object2 = {isThread: value7, guild: value4, category: channel2};
|
|
object2.hasCategories = GuildChannelStore.hasCategories(channelBinding.guild_id);
|
|
object2.pinDisabled = env0_4;
|
|
var can = PermissionStore.can;
|
|
var MANAGE_CHANNELS = Permissions.MANAGE_CHANNELS;
|
|
object2.canManageChannels = Reflect.apply(can, PermissionStore, [MANAGE_CHANNELS, channelBinding]);
|
|
r6 = currentUser != null && channel.ownerId === currentUser.id;
|
|
object2.isChannelOwner = r6;
|
|
r6 = channel2 != null ? PermissionStore.can(Permissions.MANAGE_CHANNELS,
|
|
channel2) : PermissionStore.can(Permissions.MANAGE_CHANNELS, value4);
|
|
object2.canManageParent = r6;
|
|
can = PermissionStore.can;
|
|
var MANAGE_ROLES = Permissions.MANAGE_ROLES;
|
|
channelBinding = channel;
|
|
object2.canManageRoles = Reflect.apply(can, PermissionStore, [MANAGE_ROLES, channelBinding]);
|
|
can = PermissionStore.can;
|
|
var SEND_MESSAGES = Permissions.SEND_MESSAGES;
|
|
object2.canSendMessages = Reflect.apply(can, PermissionStore, [SEND_MESSAGES, channelBinding]);
|
|
var isGuildTextChannelTypeBinding = isGuildTextChannelType;
|
|
type = channelBinding.type;
|
|
object2.canManageWebhooks = isGuildTextChannelTypeBinding(type) && PermissionStore.can(Permissions.MANAGE_WEBHOOKS,
|
|
|
|
channel);
|
|
var moduleValue = require(6860) /* metro dependency 6860: ThreadHooks */;
|
|
object2.canUnarchiveThread = moduleValue.canUnarchiveThread(channel);
|
|
object2.regions = value8;
|
|
object2.submitting = submitting;
|
|
object2.errors = errors;
|
|
object2.isNSFWDisabled = isGuildNSFW(value4) || channel.linkedLobby != null;
|
|
}
|
|
return object2;
|
|
}
|
|
|
|
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 _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 items = [];
|
|
arraySpread(items, value, 0, undefined);
|
|
apply(push, items, 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 ChannelSettingsOverviewHandleSave() { // 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 object2;
|
|
var threadMetadata;
|
|
if (env0_0.state.hasChanges) {
|
|
channel = env0_0.props.channel;
|
|
var env0_0 = channel;
|
|
value2 = environment.__proto__.__proto__;
|
|
value3 = undefined;
|
|
defaultImport = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */;
|
|
saveChannel = defaultImport.saveChannel;
|
|
id = channel.id;
|
|
object2 = {};
|
|
object2.name = channel.name;
|
|
object2.type = channel.type;
|
|
object2.topic = channel.topic;
|
|
object2.position = channel.position;
|
|
object2.bitrate = channel.bitrate;
|
|
object2.userLimit = channel.userLimit;
|
|
object2.defaultAutoArchiveDuration = channel.defaultAutoArchiveDuration;
|
|
object2.nsfw = channel.nsfw;
|
|
object2.rateLimitPerUser = channel.rateLimitPerUser;
|
|
object2.videoQualityMode = channel.videoQualityMode;
|
|
threadMetadata = channel.threadMetadata;
|
|
object2.autoArchiveDuration = threadMetadata == null ? value3 : threadMetadata.autoArchiveDuration;
|
|
threadMetadata = channel.threadMetadata;
|
|
object2.locked = threadMetadata == null ? value3 : threadMetadata.locked;
|
|
threadMetadata = channel.threadMetadata;
|
|
object2.invitable = threadMetadata == null ? value3 : threadMetadata.invitable;
|
|
object2.flags = channel.flags;
|
|
object2.defaultSortOrder = channel.getDefaultSortOrder();
|
|
object2.defaultForumLayout = channel.defaultForumLayout;
|
|
object2.defaultTagSetting = channel.getDefaultTagSetting();
|
|
object2.iconEmoji = channel.iconEmoji;
|
|
object2.themeColor = channel.themeColor;
|
|
Reflect.apply(saveChannel, defaultImport, [id, object2]).then(_fun115842);
|
|
env0_0.setState({hasChanges: false});
|
|
}
|
|
}
|
|
|
|
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 object2 = {};
|
|
object2.topic = (importDefault(3797) /* metro dependency 3797: UnicodeEmojis */).translateInlineEmojiToSurrogates(a0);
|
|
Reflect.apply(updateChannel, value, [object2]);
|
|
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 object2 = {};
|
|
const Math = global.Math;
|
|
object2.bitrate = Math.round(a0);
|
|
Reflect.apply(updateChannel, value, [object2]);
|
|
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__;
|
|
(importDefault(8148) /* metro dependency 8148: 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__;
|
|
(importDefault(8148) /* metro dependency 8148: 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 flagUtilsModule = require(1391) /* metro dependency 1391: FlagUtils */;
|
|
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)];
|
|
(importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */).updateChannel({rateLimitPerUser: property});
|
|
const AccessibilityAnnouncer = (require(4002) /* metro dependency 4002: shared */).AccessibilityAnnouncer;
|
|
const announce = AccessibilityAnnouncer.announce;
|
|
value = require(15175) /* metro dependency 15175: SecondsSliderUtils */;
|
|
const getSecondsSliderLabel = value.getSecondsSliderLabel;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(getSecondsSliderLabel, value, [property, false,
|
|
intl.string((require(1244) /* metro dependency 1244: indexNative */).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__;
|
|
(importDefault(8148) /* metro dependency 8148: 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__;
|
|
(importDefault(8148) /* metro dependency 8148: 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__;
|
|
(importDefault(8148) /* metro dependency 8148: 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__;
|
|
(importDefault(8148) /* metro dependency 8148: 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__;
|
|
(importDefault(8148) /* metro dependency 8148: 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 flagUtilsModule = require(1391) /* metro dependency 1391: FlagUtils */;
|
|
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 object2 = {};
|
|
const Math = global.Math;
|
|
object2.userLimit = Math.round(a0);
|
|
Reflect.apply(updateChannel, value, [object2]);
|
|
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 object2;
|
|
var binding5;
|
|
var binding6;
|
|
var binding7;
|
|
var Text;
|
|
var alertText;
|
|
var items3;
|
|
var binding8;
|
|
var TextWithIOSLinkWorkaround;
|
|
var object3;
|
|
var format;
|
|
var binding9;
|
|
var value14;
|
|
var binding10;
|
|
var binding11;
|
|
var binding12;
|
|
var object5;
|
|
var items2;
|
|
var binding13;
|
|
var object6;
|
|
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;
|
|
object2 = {};
|
|
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']]);
|
|
}
|
|
object2.title = r8;
|
|
binding = env3_0;
|
|
binding17 = env3_2;
|
|
intl = binding(binding17[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding17[36]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.a6Gz9J, {channelName: channelName}]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t.gm1Vej]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.p89ACt]);
|
|
object2.onConfirm = ChannelSettingsOverview.handleConfirmDeleteChannel;
|
|
binding = env3_1;
|
|
object2.confirmColor = binding(binding17[49]).Colors.RED;
|
|
Reflect.apply(show, value17, [object2]);
|
|
} 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;
|
|
object2 = {};
|
|
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']]);
|
|
}
|
|
object2.title = r8;
|
|
binding = env3_0;
|
|
binding17 = env3_2;
|
|
intl = binding(binding17[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding17[36]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.a6Gz9J, {channelName: channelName}]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t.gm1Vej]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.p89ACt]);
|
|
object2.onConfirm = ChannelSettingsOverview.handleConfirmDeleteChannel;
|
|
binding = env3_1;
|
|
object2.confirmColor = binding(binding17[49]).Colors.RED;
|
|
Reflect.apply(show, value17, [object2]);
|
|
} else {
|
|
binding = env3_1;
|
|
binding9 = env3_2;
|
|
value14 = binding(binding9[44]);
|
|
show = value14.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object2.title = Reflect.apply(string, intl, [t['TY/V+H']]);
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.BddRzS]);
|
|
binding10 = env3_49;
|
|
binding11 = env3_50;
|
|
binding12 = env3_48;
|
|
Text = binding(binding9[45]).Text;
|
|
object5 = {};
|
|
alertText = value4.alertText;
|
|
object5.style = alertText;
|
|
object5.variant = 'text-md/medium';
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object5.children = Reflect.apply(string, intl, [t.iWlB6h]);
|
|
items2 = [binding12(Text, object5)];
|
|
binding13 = env3_48;
|
|
TextWithIOSLinkWorkaround = binding(binding9[46]).TextWithIOSLinkWorkaround;
|
|
object6 = {};
|
|
alertText = value4.alertText;
|
|
object6.style = alertText;
|
|
object6.variant = 'text-md/medium';
|
|
intl = binding(binding9[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding9[36]).t;
|
|
object6.children = Reflect.apply(format, intl, [t.ajiBwB, {onClick: onClick_115861}]);
|
|
items2[1] = binding13(TextWithIOSLinkWorkaround, object6);
|
|
object2.children = binding10(binding11, {children: items2});
|
|
Reflect.apply(show, value14, [object2]);
|
|
}
|
|
} 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;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding4[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding4[36]).t;
|
|
object2.title = Reflect.apply(string, intl, [t['TY/V+H']]);
|
|
intl = binding(binding4[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding4[36]).t;
|
|
object2.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;
|
|
object3 = {};
|
|
alertText = value4.alertText;
|
|
object3.style = alertText;
|
|
object3.variant = 'text-md/medium';
|
|
intl = binding(binding4[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding4[36]).t;
|
|
object3.children = Reflect.apply(format, intl, [t.LAJbDm, {onClick: onClick_115862}]);
|
|
items3[1] = binding8(TextWithIOSLinkWorkaround, object3);
|
|
object2.children = binding5(binding6, {children: items3});
|
|
Reflect.apply(show, value12, [object2]);
|
|
} 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;
|
|
object2 = {};
|
|
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']]);
|
|
}
|
|
object2.title = r8;
|
|
binding = env3_0;
|
|
binding17 = env3_2;
|
|
intl = binding(binding17[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding17[36]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.a6Gz9J, {channelName: channelName}]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t.gm1Vej]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.p89ACt]);
|
|
object2.onConfirm = ChannelSettingsOverview.handleConfirmDeleteChannel;
|
|
binding = env3_1;
|
|
object2.confirmColor = binding(binding17[49]).Colors.RED;
|
|
Reflect.apply(show, value17, [object2]);
|
|
} 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;
|
|
object2 = {};
|
|
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']]);
|
|
}
|
|
object2.title = r8;
|
|
binding = env3_0;
|
|
binding17 = env3_2;
|
|
intl = binding(binding17[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding17[36]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.a6Gz9J, {channelName: channelName}]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t.gm1Vej]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.p89ACt]);
|
|
object2.onConfirm = ChannelSettingsOverview.handleConfirmDeleteChannel;
|
|
binding = env3_1;
|
|
object2.confirmColor = binding(binding17[49]).Colors.RED;
|
|
Reflect.apply(show, value17, [object2]);
|
|
} else {
|
|
binding = env3_1;
|
|
binding9 = env3_2;
|
|
value14 = binding(binding9[44]);
|
|
show = value14.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object2.title = Reflect.apply(string, intl, [t['TY/V+H']]);
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.BddRzS]);
|
|
binding10 = env3_49;
|
|
binding11 = env3_50;
|
|
binding12 = env3_48;
|
|
Text = binding(binding9[45]).Text;
|
|
object5 = {};
|
|
alertText = value4.alertText;
|
|
object5.style = alertText;
|
|
object5.variant = 'text-md/medium';
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object5.children = Reflect.apply(string, intl, [t.iWlB6h]);
|
|
items2 = [binding12(Text, object5)];
|
|
binding13 = env3_48;
|
|
TextWithIOSLinkWorkaround = binding(binding9[46]).TextWithIOSLinkWorkaround;
|
|
object6 = {};
|
|
alertText = value4.alertText;
|
|
object6.style = alertText;
|
|
object6.variant = 'text-md/medium';
|
|
intl = binding(binding9[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding9[36]).t;
|
|
object6.children = Reflect.apply(format, intl, [t.ajiBwB, {onClick: onClick_115861}]);
|
|
items2[1] = binding13(TextWithIOSLinkWorkaround, object6);
|
|
object2.children = binding10(binding11, {children: items2});
|
|
Reflect.apply(show, value14, [object2]);
|
|
}
|
|
} 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;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding4[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding4[36]).t;
|
|
object2.title = Reflect.apply(string, intl, [t['TY/V+H']]);
|
|
intl = binding(binding4[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding4[36]).t;
|
|
object2.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;
|
|
object3 = {};
|
|
alertText = value4.alertText;
|
|
object3.style = alertText;
|
|
object3.variant = 'text-md/medium';
|
|
intl = binding(binding4[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding4[36]).t;
|
|
object3.children = Reflect.apply(format, intl, [t.LAJbDm, {onClick: onClick_115862}]);
|
|
items3[1] = binding8(TextWithIOSLinkWorkaround, object3);
|
|
object2.children = binding5(binding6, {children: items3});
|
|
Reflect.apply(show, value12, [object2]);
|
|
}
|
|
} 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;
|
|
object2 = {};
|
|
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']]);
|
|
}
|
|
object2.title = r8;
|
|
binding = env3_0;
|
|
binding17 = env3_2;
|
|
intl = binding(binding17[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding17[36]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.a6Gz9J, {channelName: channelName}]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t.gm1Vej]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.p89ACt]);
|
|
object2.onConfirm = ChannelSettingsOverview.handleConfirmDeleteChannel;
|
|
binding = env3_1;
|
|
object2.confirmColor = binding(binding17[49]).Colors.RED;
|
|
Reflect.apply(show, value17, [object2]);
|
|
} 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;
|
|
object2 = {};
|
|
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']]);
|
|
}
|
|
object2.title = r8;
|
|
binding = env3_0;
|
|
binding17 = env3_2;
|
|
intl = binding(binding17[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding17[36]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.a6Gz9J, {channelName: channelName}]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t.gm1Vej]);
|
|
intl = binding(binding17[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding17[36]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.p89ACt]);
|
|
object2.onConfirm = ChannelSettingsOverview.handleConfirmDeleteChannel;
|
|
binding = env3_1;
|
|
object2.confirmColor = binding(binding17[49]).Colors.RED;
|
|
Reflect.apply(show, value17, [object2]);
|
|
} else {
|
|
binding = env3_1;
|
|
binding9 = env3_2;
|
|
value14 = binding(binding9[44]);
|
|
show = value14.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object2.title = Reflect.apply(string, intl, [t['TY/V+H']]);
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.BddRzS]);
|
|
binding10 = env3_49;
|
|
binding11 = env3_50;
|
|
binding12 = env3_48;
|
|
Text = binding(binding9[45]).Text;
|
|
object5 = {};
|
|
alertText = value4.alertText;
|
|
object5.style = alertText;
|
|
object5.variant = 'text-md/medium';
|
|
intl = binding(binding9[36]).intl;
|
|
string = intl.string;
|
|
t = binding(binding9[36]).t;
|
|
object5.children = Reflect.apply(string, intl, [t.iWlB6h]);
|
|
items2 = [binding12(Text, object5)];
|
|
binding13 = env3_48;
|
|
TextWithIOSLinkWorkaround = binding(binding9[46]).TextWithIOSLinkWorkaround;
|
|
object6 = {};
|
|
alertText = value4.alertText;
|
|
object6.style = alertText;
|
|
object6.variant = 'text-md/medium';
|
|
intl = binding(binding9[36]).intl;
|
|
format = intl.format;
|
|
t = binding(binding9[36]).t;
|
|
object6.children = Reflect.apply(format, intl, [t.ajiBwB, {onClick: onClick_115861}]);
|
|
items2[1] = binding13(TextWithIOSLinkWorkaround, object6);
|
|
object2.children = binding10(binding11, {children: items2});
|
|
Reflect.apply(show, value14, [object2]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
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 _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 = (require(9603) /* metro dependency 9603: HeaderShared */).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_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_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_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_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_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_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_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 _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} />)(importDefault(11162) /* metro dependency 11162: 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 _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 _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();
|
|
}
|
|
|
|
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 object2;
|
|
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;
|
|
object2 = {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;
|
|
object2.content = isThread2 ? Reflect.apply(string, intl, [t.n2Y84J]) : Reflect.apply(string, intl,
|
|
[t['FE/ohq']]);
|
|
Reflect.apply(open, defaultImport, [object2]);
|
|
value = environment.__proto__;
|
|
env1_0.props.navigation.goBack();
|
|
}
|
|
}
|
|
|
|
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]);
|
|
}
|
|
|